@florid-kit/components 0.8.34 → 0.8.35

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 pt = globalThis, Et = pt.ShadowRoot && (pt.ShadyCSS === void 0 || pt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, St = Symbol(), Nt = /* @__PURE__ */ new WeakMap();
6
+ const pt = globalThis, St = pt.ShadowRoot && (pt.ShadyCSS === void 0 || pt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Lt = Symbol(), Nt = /* @__PURE__ */ new WeakMap();
7
7
  let Yt = class {
8
- constructor(t, e, r) {
9
- if (this._$cssResult$ = !0, r !== St) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
8
+ constructor(t, e, n) {
9
+ if (this._$cssResult$ = !0, n !== Lt) 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 (Et && t === void 0) {
16
- const r = e !== void 0 && e.length === 1;
17
- r && (t = Nt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Nt.set(e, t));
15
+ if (St && t === void 0) {
16
+ const n = e !== void 0 && e.length === 1;
17
+ n && (t = Nt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), n && Nt.set(e, t));
18
18
  }
19
19
  return t;
20
20
  }
@@ -22,22 +22,22 @@ let Yt = class {
22
22
  return this.cssText;
23
23
  }
24
24
  };
25
- const se = (o) => new Yt(typeof o == "string" ? o : o + "", void 0, St), g = (o, ...t) => {
26
- const e = o.length === 1 ? o[0] : t.reduce((r, i, n) => r + ((s) => {
25
+ const se = (o) => new Yt(typeof o == "string" ? o : o + "", void 0, Lt), g = (o, ...t) => {
26
+ const e = o.length === 1 ? o[0] : t.reduce((n, i, r) => n + ((s) => {
27
27
  if (s._$cssResult$ === !0) return s.cssText;
28
28
  if (typeof s == "number") return s;
29
29
  throw Error("Value passed to 'css' function must be a 'css' function result: " + s + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
30
- })(i) + o[n + 1], o[0]);
31
- return new Yt(e, o, St);
30
+ })(i) + o[r + 1], o[0]);
31
+ return new Yt(e, o, Lt);
32
32
  }, ae = (o, t) => {
33
- if (Et) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
33
+ if (St) o.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
34
34
  else for (const e of t) {
35
- const r = document.createElement("style"), i = pt.litNonce;
36
- i !== void 0 && r.setAttribute("nonce", i), r.textContent = e.cssText, o.appendChild(r);
35
+ const n = document.createElement("style"), i = pt.litNonce;
36
+ i !== void 0 && n.setAttribute("nonce", i), n.textContent = e.cssText, o.appendChild(n);
37
37
  }
38
- }, Rt = Et ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
38
+ }, Rt = St ? (o) => o : (o) => o instanceof CSSStyleSheet ? ((t) => {
39
39
  let e = "";
40
- for (const r of t.cssRules) e += r.cssText;
40
+ for (const n of t.cssRules) e += n.cssText;
41
41
  return se(e);
42
42
  })(o) : o;
43
43
  /**
@@ -45,7 +45,7 @@ const se = (o) => new Yt(typeof o == "string" ? o : o + "", void 0, St), g = (o,
45
45
  * Copyright 2017 Google LLC
46
46
  * SPDX-License-Identifier: BSD-3-Clause
47
47
  */
48
- const { is: le, defineProperty: ce, getOwnPropertyDescriptor: he, getOwnPropertyNames: de, getOwnPropertySymbols: pe, getPrototypeOf: ue } = Object, j = globalThis, Ft = j.trustedTypes, ve = Ft ? Ft.emptyScript : "", mt = j.reactiveElementPolyfillSupport, tt = (o, t) => o, ut = { toAttribute(o, t) {
48
+ const { is: le, defineProperty: ce, getOwnPropertyDescriptor: he, getOwnPropertyNames: de, getOwnPropertySymbols: pe, getPrototypeOf: ue } = Object, j = globalThis, Ft = j.trustedTypes, ve = Ft ? Ft.emptyScript : "", xt = j.reactiveElementPolyfillSupport, tt = (o, t) => o, ut = { toAttribute(o, t) {
49
49
  switch (t) {
50
50
  case Boolean:
51
51
  o = o ? ve : null;
@@ -73,7 +73,7 @@ const { is: le, defineProperty: ce, getOwnPropertyDescriptor: he, getOwnProperty
73
73
  }
74
74
  }
75
75
  return e;
76
- } }, Lt = (o, t) => !le(o, t), Vt = { attribute: !0, type: String, converter: ut, reflect: !1, useDefault: !1, hasChanged: Lt };
76
+ } }, Pt = (o, t) => !le(o, t), Vt = { attribute: !0, type: String, converter: ut, reflect: !1, useDefault: !1, hasChanged: Pt };
77
77
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), j.litPropertyMetadata ?? (j.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
78
78
  let G = class extends HTMLElement {
79
79
  static addInitializer(t) {
@@ -84,19 +84,19 @@ let G = class extends HTMLElement {
84
84
  }
85
85
  static createProperty(t, e = Vt) {
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 r = Symbol(), i = this.getPropertyDescriptor(t, r, e);
87
+ const n = Symbol(), i = this.getPropertyDescriptor(t, n, e);
88
88
  i !== void 0 && ce(this.prototype, t, i);
89
89
  }
90
90
  }
91
- static getPropertyDescriptor(t, e, r) {
92
- const { get: i, set: n } = he(this.prototype, t) ?? { get() {
91
+ static getPropertyDescriptor(t, e, n) {
92
+ const { get: i, set: r } = he(this.prototype, t) ?? { get() {
93
93
  return this[e];
94
94
  }, set(s) {
95
95
  this[e] = s;
96
96
  } };
97
97
  return { get: i, set(s) {
98
98
  const h = i == null ? void 0 : i.call(this);
99
- n == null || n.call(this, s), this.requestUpdate(t, h, r);
99
+ r == null || r.call(this, s), this.requestUpdate(t, h, n);
100
100
  }, configurable: !0, enumerable: !0 };
101
101
  }
102
102
  static getPropertyOptions(t) {
@@ -110,17 +110,17 @@ let G = class extends HTMLElement {
110
110
  static finalize() {
111
111
  if (this.hasOwnProperty(tt("finalized"))) return;
112
112
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(tt("properties"))) {
113
- const e = this.properties, r = [...de(e), ...pe(e)];
114
- for (const i of r) this.createProperty(i, e[i]);
113
+ const e = this.properties, n = [...de(e), ...pe(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 [r, i] of e) this.elementProperties.set(r, i);
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, r] of this.elementProperties) {
123
- const i = this._$Eu(e, r);
122
+ for (const [e, n] of this.elementProperties) {
123
+ const i = this._$Eu(e, n);
124
124
  i !== void 0 && this._$Eh.set(i, e);
125
125
  }
126
126
  this.elementStyles = this.finalizeStyles(this.styles);
@@ -128,14 +128,14 @@ let G = class extends HTMLElement {
128
128
  static finalizeStyles(t) {
129
129
  const e = [];
130
130
  if (Array.isArray(t)) {
131
- const r = new Set(t.flat(1 / 0).reverse());
132
- for (const i of r) e.unshift(Rt(i));
131
+ const n = new Set(t.flat(1 / 0).reverse());
132
+ for (const i of n) e.unshift(Rt(i));
133
133
  } else t !== void 0 && e.push(Rt(t));
134
134
  return e;
135
135
  }
136
136
  static _$Eu(t, e) {
137
- const r = e.attribute;
138
- return r === !1 ? void 0 : typeof r == "string" ? r : 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,7 +154,7 @@ let G = class extends HTMLElement {
154
154
  }
155
155
  _$E_() {
156
156
  const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
157
- for (const r of e.keys()) this.hasOwnProperty(r) && (t.set(r, this[r]), delete this[r]);
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() {
@@ -164,8 +164,8 @@ let G = class extends HTMLElement {
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 r;
168
- return (r = e.hostConnected) == null ? void 0 : r.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 G = class extends HTMLElement {
173
173
  disconnectedCallback() {
174
174
  var t;
175
175
  (t = this._$EO) == null || t.forEach((e) => {
176
- var r;
177
- return (r = e.hostDisconnected) == null ? void 0 : r.call(e);
176
+ var n;
177
+ return (n = e.hostDisconnected) == null ? void 0 : n.call(e);
178
178
  });
179
179
  }
180
- attributeChangedCallback(t, e, r) {
181
- this._$AK(t, r);
180
+ attributeChangedCallback(t, e, n) {
181
+ this._$AK(t, n);
182
182
  }
183
183
  _$ET(t, e) {
184
- var n;
185
- const r = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, r);
186
- if (i !== void 0 && r.reflect === !0) {
187
- const s = (((n = r.converter) == null ? void 0 : n.toAttribute) !== void 0 ? r.converter : ut).toAttribute(e, r.type);
184
+ var r;
185
+ const n = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, n);
186
+ if (i !== void 0 && n.reflect === !0) {
187
+ const s = (((r = n.converter) == null ? void 0 : r.toAttribute) !== void 0 ? n.converter : ut).toAttribute(e, n.type);
188
188
  this._$Em = t, s == null ? this.removeAttribute(i) : this.setAttribute(i, s), this._$Em = null;
189
189
  }
190
190
  }
191
191
  _$AK(t, e) {
192
- var n, s;
193
- const r = this.constructor, i = r._$Eh.get(t);
192
+ var r, s;
193
+ const n = this.constructor, i = n._$Eh.get(t);
194
194
  if (i !== void 0 && this._$Em !== i) {
195
- const h = r.getPropertyOptions(i), c = typeof h.converter == "function" ? { fromAttribute: h.converter } : ((n = h.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? h.converter : ut;
195
+ const h = n.getPropertyOptions(i), c = typeof h.converter == "function" ? { fromAttribute: h.converter } : ((r = h.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? h.converter : ut;
196
196
  this._$Em = i, this[i] = c.fromAttribute(e, h.type) ?? ((s = this._$Ej) == null ? void 0 : s.get(i)) ?? null, this._$Em = null;
197
197
  }
198
198
  }
199
- requestUpdate(t, e, r) {
199
+ requestUpdate(t, e, n) {
200
200
  var i;
201
201
  if (t !== void 0) {
202
- const n = this.constructor, s = this[t];
203
- if (r ?? (r = n.getPropertyOptions(t)), !((r.hasChanged ?? Lt)(s, e) || r.useDefault && r.reflect && s === ((i = this._$Ej) == null ? void 0 : i.get(t)) && !this.hasAttribute(n._$Eu(t, r)))) return;
204
- this.C(t, e, r);
202
+ const r = this.constructor, s = this[t];
203
+ if (n ?? (n = r.getPropertyOptions(t)), !((n.hasChanged ?? Pt)(s, e) || n.useDefault && n.reflect && s === ((i = this._$Ej) == null ? void 0 : i.get(t)) && !this.hasAttribute(r._$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: r, reflect: i, wrapped: n }, s) {
209
- r && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, s ?? e ?? this[t]), n !== !0 || s !== void 0) || (this._$AL.has(t) || (this.hasUpdated || r || (e = void 0), this._$AL.set(t, e)), i === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
208
+ C(t, e, { useDefault: n, reflect: i, wrapped: r }, s) {
209
+ n && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, s ?? e ?? this[t]), r !== !0 || s !== 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,25 +222,25 @@ let G = class extends HTMLElement {
222
222
  return this.performUpdate();
223
223
  }
224
224
  performUpdate() {
225
- var r;
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
- for (const [n, s] of this._$Ep) this[n] = s;
229
+ for (const [r, s] of this._$Ep) this[r] = s;
230
230
  this._$Ep = void 0;
231
231
  }
232
232
  const i = this.constructor.elementProperties;
233
- if (i.size > 0) for (const [n, s] of i) {
234
- const { wrapped: h } = s, c = this[n];
235
- h !== !0 || this._$AL.has(n) || c === void 0 || this.C(n, void 0, s, c);
233
+ if (i.size > 0) for (const [r, s] of i) {
234
+ const { wrapped: h } = s, c = this[r];
235
+ h !== !0 || this._$AL.has(r) || c === void 0 || this.C(r, void 0, s, c);
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), (r = this._$EO) == null || r.forEach((i) => {
242
- var n;
243
- return (n = i.hostUpdate) == null ? void 0 : n.call(i);
241
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (n = this._$EO) == null || n.forEach((i) => {
242
+ var r;
243
+ return (r = i.hostUpdate) == null ? void 0 : r.call(i);
244
244
  }), this.update(e)) : this._$EM();
245
245
  } catch (i) {
246
246
  throw t = !1, this._$EM(), i;
@@ -251,9 +251,9 @@ let G = class extends HTMLElement {
251
251
  }
252
252
  _$AE(t) {
253
253
  var e;
254
- (e = this._$EO) == null || e.forEach((r) => {
254
+ (e = this._$EO) == null || e.forEach((n) => {
255
255
  var i;
256
- return (i = r.hostUpdated) == null ? void 0 : i.call(r);
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,38 +276,38 @@ let G = class extends HTMLElement {
276
276
  firstUpdated(t) {
277
277
  }
278
278
  };
279
- G.elementStyles = [], G.shadowRootOptions = { mode: "open" }, G[tt("elementProperties")] = /* @__PURE__ */ new Map(), G[tt("finalized")] = /* @__PURE__ */ new Map(), mt == null || mt({ ReactiveElement: G }), (j.reactiveElementVersions ?? (j.reactiveElementVersions = [])).push("2.1.0");
279
+ G.elementStyles = [], G.shadowRootOptions = { mode: "open" }, G[tt("elementProperties")] = /* @__PURE__ */ new Map(), G[tt("finalized")] = /* @__PURE__ */ new Map(), xt == null || xt({ ReactiveElement: G }), (j.reactiveElementVersions ?? (j.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 et = globalThis, vt = et.trustedTypes, Zt = vt ? vt.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, te = "$lit$", T = `lit$${Math.random().toFixed(9).slice(2)}$`, ee = "?" + T, be = `<${ee}>`, Z = document, it = () => Z.createComment(""), rt = (o) => o === null || typeof o != "object" && typeof o != "function", It = Array.isArray, fe = (o) => It(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", xt = `[
286
- \f\r]`, Y = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, qt = /-->/g, Wt = />/g, R = RegExp(`>|${xt}(?:([^\\s"'>=/]+)(${xt}*=${xt}*(?:[^
285
+ const et = globalThis, vt = et.trustedTypes, Zt = vt ? vt.createPolicy("lit-html", { createHTML: (o) => o }) : void 0, te = "$lit$", T = `lit$${Math.random().toFixed(9).slice(2)}$`, ee = "?" + T, be = `<${ee}>`, Z = document, it = () => Z.createComment(""), nt = (o) => o === null || typeof o != "object" && typeof o != "function", It = Array.isArray, fe = (o) => It(o) || typeof (o == null ? void 0 : o[Symbol.iterator]) == "function", wt = `[
286
+ \f\r]`, Y = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, qt = /-->/g, Wt = />/g, R = RegExp(`>|${wt}(?:([^\\s"'>=/]+)(${wt}*=${wt}*(?:[^
287
287
  \f\r"'\`<>=]|("|')|))|$)`, "g"), Kt = /'/g, Gt = /"/g, oe = /^(?:script|style|textarea|title)$/i, ge = (o) => (t, ...e) => ({ _$litType$: o, strings: t, values: e }), l = ge(1), U = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Xt = /* @__PURE__ */ new WeakMap(), F = Z.createTreeWalker(Z, 129);
288
288
  function ie(o, t) {
289
289
  if (!It(o) || !o.hasOwnProperty("raw")) throw Error("invalid template strings array");
290
290
  return Zt !== void 0 ? Zt.createHTML(t) : t;
291
291
  }
292
292
  const ye = (o, t) => {
293
- const e = o.length - 1, r = [];
294
- let i, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = Y;
293
+ const e = o.length - 1, n = [];
294
+ let i, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", s = Y;
295
295
  for (let h = 0; h < e; h++) {
296
296
  const c = o[h];
297
297
  let f, m, p = -1, O = 0;
298
298
  for (; O < c.length && (s.lastIndex = O, m = s.exec(c), m !== null); ) O = s.lastIndex, s === Y ? m[1] === "!--" ? s = qt : m[1] !== void 0 ? s = Wt : m[2] !== void 0 ? (oe.test(m[2]) && (i = RegExp("</" + m[2], "g")), s = R) : m[3] !== void 0 && (s = R) : s === R ? m[0] === ">" ? (s = i ?? Y, p = -1) : m[1] === void 0 ? p = -2 : (p = s.lastIndex - m[2].length, f = m[1], s = m[3] === void 0 ? R : m[3] === '"' ? Gt : Kt) : s === Gt || s === Kt ? s = R : s === qt || s === Wt ? s = Y : (s = R, i = void 0);
299
299
  const M = s === R && o[h + 1].startsWith("/>") ? " " : "";
300
- n += s === Y ? c + be : p >= 0 ? (r.push(f), c.slice(0, p) + te + c.slice(p) + T + M) : c + T + (p === -2 ? h : M);
300
+ r += s === Y ? c + be : p >= 0 ? (n.push(f), c.slice(0, p) + te + c.slice(p) + T + M) : c + T + (p === -2 ? h : M);
301
301
  }
302
- return [ie(o, n + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
302
+ return [ie(o, r + (o[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), n];
303
303
  };
304
- class nt {
305
- constructor({ strings: t, _$litType$: e }, r) {
304
+ class rt {
305
+ constructor({ strings: t, _$litType$: e }, n) {
306
306
  let i;
307
307
  this.parts = [];
308
- let n = 0, s = 0;
308
+ let r = 0, s = 0;
309
309
  const h = t.length - 1, c = this.parts, [f, m] = ye(t, e);
310
- if (this.el = nt.createElement(f, r), F.currentNode = this.el.content, e === 2 || e === 3) {
310
+ if (this.el = rt.createElement(f, n), F.currentNode = this.el.content, e === 2 || e === 3) {
311
311
  const p = this.el.content.firstChild;
312
312
  p.replaceWith(...p.childNodes);
313
313
  }
@@ -315,35 +315,35 @@ class nt {
315
315
  if (i.nodeType === 1) {
316
316
  if (i.hasAttributes()) for (const p of i.getAttributeNames()) if (p.endsWith(te)) {
317
317
  const O = m[s++], M = i.getAttribute(p).split(T), dt = /([.?@])?(.*)/.exec(O);
318
- c.push({ type: 1, index: n, name: dt[2], strings: M, ctor: dt[1] === "." ? xe : dt[1] === "?" ? we : dt[1] === "@" ? $e : ft }), i.removeAttribute(p);
319
- } else p.startsWith(T) && (c.push({ type: 6, index: n }), i.removeAttribute(p));
318
+ c.push({ type: 1, index: r, name: dt[2], strings: M, ctor: dt[1] === "." ? xe : dt[1] === "?" ? we : dt[1] === "@" ? $e : ft }), i.removeAttribute(p);
319
+ } else p.startsWith(T) && (c.push({ type: 6, index: r }), i.removeAttribute(p));
320
320
  if (oe.test(i.tagName)) {
321
321
  const p = i.textContent.split(T), O = p.length - 1;
322
322
  if (O > 0) {
323
323
  i.textContent = vt ? vt.emptyScript : "";
324
- for (let M = 0; M < O; M++) i.append(p[M], it()), F.nextNode(), c.push({ type: 2, index: ++n });
324
+ for (let M = 0; M < O; M++) i.append(p[M], it()), F.nextNode(), c.push({ type: 2, index: ++r });
325
325
  i.append(p[O], it());
326
326
  }
327
327
  }
328
- } else if (i.nodeType === 8) if (i.data === ee) c.push({ type: 2, index: n });
328
+ } else if (i.nodeType === 8) if (i.data === ee) c.push({ type: 2, index: r });
329
329
  else {
330
330
  let p = -1;
331
- for (; (p = i.data.indexOf(T, p + 1)) !== -1; ) c.push({ type: 7, index: n }), p += T.length - 1;
331
+ for (; (p = i.data.indexOf(T, p + 1)) !== -1; ) c.push({ type: 7, index: r }), p += T.length - 1;
332
332
  }
333
- n++;
333
+ r++;
334
334
  }
335
335
  }
336
336
  static createElement(t, e) {
337
- const r = Z.createElement("template");
338
- return r.innerHTML = t, r;
337
+ const n = Z.createElement("template");
338
+ return n.innerHTML = t, n;
339
339
  }
340
340
  }
341
- function X(o, t, e = o, r) {
341
+ function X(o, t, e = o, n) {
342
342
  var s, h;
343
343
  if (t === U) return t;
344
- let i = r !== void 0 ? (s = e._$Co) == null ? void 0 : s[r] : e._$Cl;
345
- const n = rt(t) ? void 0 : t._$litDirective$;
346
- return (i == null ? void 0 : i.constructor) !== n && ((h = i == null ? void 0 : i._$AO) == null || h.call(i, !1), n === void 0 ? i = void 0 : (i = new n(o), i._$AT(o, e, r)), r !== void 0 ? (e._$Co ?? (e._$Co = []))[r] = i : e._$Cl = i), i !== void 0 && (t = X(o, i._$AS(o, t.values), i, r)), t;
344
+ let i = n !== void 0 ? (s = e._$Co) == null ? void 0 : s[n] : e._$Cl;
345
+ const r = nt(t) ? void 0 : t._$litDirective$;
346
+ return (i == null ? void 0 : i.constructor) !== r && ((h = i == null ? void 0 : i._$AO) == null || h.call(i, !1), r === void 0 ? i = void 0 : (i = new r(o), i._$AT(o, e, n)), n !== void 0 ? (e._$Co ?? (e._$Co = []))[n] = i : e._$Cl = i), i !== void 0 && (t = X(o, i._$AS(o, t.values), i, n)), t;
347
347
  }
348
348
  class me {
349
349
  constructor(t, e) {
@@ -356,21 +356,21 @@ class me {
356
356
  return this._$AM._$AU;
357
357
  }
358
358
  u(t) {
359
- const { el: { content: e }, parts: r } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? Z).importNode(e, !0);
359
+ const { el: { content: e }, parts: n } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? Z).importNode(e, !0);
360
360
  F.currentNode = i;
361
- let n = F.nextNode(), s = 0, h = 0, c = r[0];
361
+ let r = F.nextNode(), s = 0, h = 0, c = n[0];
362
362
  for (; c !== void 0; ) {
363
363
  if (s === c.index) {
364
364
  let f;
365
- c.type === 2 ? f = new ht(n, n.nextSibling, this, t) : c.type === 1 ? f = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (f = new _e(n, this, t)), this._$AV.push(f), c = r[++h];
365
+ c.type === 2 ? f = new ht(r, r.nextSibling, this, t) : c.type === 1 ? f = new c.ctor(r, c.name, c.strings, this, t) : c.type === 6 && (f = new _e(r, this, t)), this._$AV.push(f), c = n[++h];
366
366
  }
367
- s !== (c == null ? void 0 : c.index) && (n = F.nextNode(), s++);
367
+ s !== (c == null ? void 0 : c.index) && (r = F.nextNode(), s++);
368
368
  }
369
369
  return F.currentNode = Z, i;
370
370
  }
371
371
  p(t) {
372
372
  let e = 0;
373
- for (const r of this._$AV) r !== void 0 && (r.strings !== void 0 ? (r._$AI(t, r, e), e += r.strings.length - 2) : r._$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
376
  class ht {
@@ -378,8 +378,8 @@ class ht {
378
378
  var t;
379
379
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
380
380
  }
381
- constructor(t, e, r, i) {
382
- this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = r, this.options = i, this._$Cv = (i == null ? void 0 : i.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 ht {
393
393
  return this._$AB;
394
394
  }
395
395
  _$AI(t, e = this) {
396
- t = X(this, t, e), rt(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== U && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : fe(t) ? this.k(t) : this._(t);
396
+ t = X(this, t, e), nt(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== U && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : fe(t) ? this.k(t) : this._(t);
397
397
  }
398
398
  O(t) {
399
399
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -402,12 +402,12 @@ class ht {
402
402
  this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
403
403
  }
404
404
  _(t) {
405
- this._$AH !== d && rt(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Z.createTextNode(t)), this._$AH = t;
405
+ this._$AH !== d && nt(this._$AH) ? this._$AA.nextSibling.data = t : this.T(Z.createTextNode(t)), this._$AH = t;
406
406
  }
407
407
  $(t) {
408
- var n;
409
- const { values: e, _$litType$: r } = t, i = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = nt.createElement(ie(r.h, r.h[0]), this.options)), r);
410
- if (((n = this._$AH) == null ? void 0 : n._$AD) === i) this._$AH.p(e);
408
+ var r;
409
+ const { values: e, _$litType$: n } = t, i = typeof n == "number" ? this._$AC(t) : (n.el === void 0 && (n.el = rt.createElement(ie(n.h, n.h[0]), this.options)), n);
410
+ if (((r = this._$AH) == null ? void 0 : r._$AD) === i) this._$AH.p(e);
411
411
  else {
412
412
  const s = new me(i, this), h = s.u(this.options);
413
413
  s.p(e), this.T(h), this._$AH = s;
@@ -415,18 +415,18 @@ class ht {
415
415
  }
416
416
  _$AC(t) {
417
417
  let e = Xt.get(t.strings);
418
- return e === void 0 && Xt.set(t.strings, e = new nt(t)), e;
418
+ return e === void 0 && Xt.set(t.strings, e = new rt(t)), e;
419
419
  }
420
420
  k(t) {
421
421
  It(this._$AH) || (this._$AH = [], this._$AR());
422
422
  const e = this._$AH;
423
- let r, i = 0;
424
- for (const n of t) i === e.length ? e.push(r = new ht(this.O(it()), this.O(it()), this, this.options)) : r = e[i], r._$AI(n), i++;
425
- i < e.length && (this._$AR(r && r._$AB.nextSibling, i), e.length = i);
423
+ let n, i = 0;
424
+ for (const r of t) i === e.length ? e.push(n = new ht(this.O(it()), this.O(it()), this, this.options)) : n = e[i], n._$AI(r), 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 r;
429
- for ((r = this._$AP) == null ? void 0 : r.call(this, !1, !0, e); t && t !== this._$AB; ) {
428
+ var n;
429
+ for ((n = this._$AP) == null ? void 0 : n.call(this, !1, !0, e); t && t !== this._$AB; ) {
430
430
  const i = t.nextSibling;
431
431
  t.remove(), t = i;
432
432
  }
@@ -443,17 +443,17 @@ class ft {
443
443
  get _$AU() {
444
444
  return this._$AM._$AU;
445
445
  }
446
- constructor(t, e, r, i, n) {
447
- this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = n, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$AH = Array(r.length - 1).fill(new String()), this.strings = r) : this._$AH = d;
446
+ constructor(t, e, n, i, r) {
447
+ this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = r, 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, r, i) {
450
- const n = this.strings;
449
+ _$AI(t, e = this, n, i) {
450
+ const r = this.strings;
451
451
  let s = !1;
452
- if (n === void 0) t = X(this, t, e, 0), s = !rt(t) || t !== this._$AH && t !== U, s && (this._$AH = t);
452
+ if (r === void 0) t = X(this, t, e, 0), s = !nt(t) || t !== this._$AH && t !== U, s && (this._$AH = t);
453
453
  else {
454
454
  const h = t;
455
455
  let c, f;
456
- for (t = n[0], c = 0; c < n.length - 1; c++) f = X(this, h[r + c], e, c), f === U && (f = this._$AH[c]), s || (s = !rt(f) || f !== this._$AH[c]), f === d ? t = d : t !== d && (t += (f ?? "") + n[c + 1]), this._$AH[c] = f;
456
+ for (t = r[0], c = 0; c < r.length - 1; c++) f = X(this, h[n + c], e, c), f === U && (f = this._$AH[c]), s || (s = !nt(f) || f !== this._$AH[c]), f === d ? t = d : t !== d && (t += (f ?? "") + r[c + 1]), this._$AH[c] = f;
457
457
  }
458
458
  s && !i && this.j(t);
459
459
  }
@@ -478,13 +478,13 @@ class we extends ft {
478
478
  }
479
479
  }
480
480
  class $e extends ft {
481
- constructor(t, e, r, i, n) {
482
- super(t, e, r, i, n), this.type = 5;
481
+ constructor(t, e, n, i, r) {
482
+ super(t, e, n, i, r), this.type = 5;
483
483
  }
484
484
  _$AI(t, e = this) {
485
485
  if ((t = X(this, t, e, 0) ?? d) === U) return;
486
- const r = this._$AH, i = t === d && r !== d || t.capture !== r.capture || t.once !== r.once || t.passive !== r.passive, n = t !== d && (r === d || i);
487
- i && this.element.removeEventListener(this.name, this, r), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
486
+ const n = this._$AH, i = t === d && n !== d || t.capture !== n.capture || t.once !== n.once || t.passive !== n.passive, r = t !== d && (n === d || i);
487
+ i && this.element.removeEventListener(this.name, this, n), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
488
488
  }
489
489
  handleEvent(t) {
490
490
  var e;
@@ -492,8 +492,8 @@ class $e extends ft {
492
492
  }
493
493
  }
494
494
  class _e {
495
- constructor(t, e, r) {
496
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = r;
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;
@@ -502,14 +502,14 @@ class _e {
502
502
  X(this, t);
503
503
  }
504
504
  }
505
- const wt = et.litHtmlPolyfillSupport;
506
- wt == null || wt(nt, ht), (et.litHtmlVersions ?? (et.litHtmlVersions = [])).push("3.3.0");
505
+ const $t = et.litHtmlPolyfillSupport;
506
+ $t == null || $t(rt, ht), (et.litHtmlVersions ?? (et.litHtmlVersions = [])).push("3.3.0");
507
507
  const Ce = (o, t, e) => {
508
- const r = (e == null ? void 0 : e.renderBefore) ?? t;
509
- let i = r._$litPart$;
508
+ const n = (e == null ? void 0 : e.renderBefore) ?? t;
509
+ let i = n._$litPart$;
510
510
  if (i === void 0) {
511
- const n = (e == null ? void 0 : e.renderBefore) ?? null;
512
- r._$litPart$ = i = new ht(t.insertBefore(it(), n), n, void 0, e ?? {});
511
+ const r = (e == null ? void 0 : e.renderBefore) ?? null;
512
+ n._$litPart$ = i = new ht(t.insertBefore(it(), r), r, void 0, e ?? {});
513
513
  }
514
514
  return i._$AI(o), i;
515
515
  };
@@ -546,8 +546,8 @@ let u = class extends G {
546
546
  };
547
547
  var Qt;
548
548
  u._$litElement$ = !0, u.finalized = !0, (Qt = V.litElementHydrateSupport) == null || Qt.call(V, { LitElement: u });
549
- const $t = V.litElementPolyfillSupport;
550
- $t == null || $t({ LitElement: u });
549
+ const _t = V.litElementPolyfillSupport;
550
+ _t == null || _t({ LitElement: u });
551
551
  (V.litElementVersions ?? (V.litElementVersions = [])).push("4.2.0");
552
552
  /**
553
553
  * @license
@@ -564,10 +564,10 @@ const x = (o) => (t, e) => {
564
564
  * Copyright 2017 Google LLC
565
565
  * SPDX-License-Identifier: BSD-3-Clause
566
566
  */
567
- const ke = { attribute: !0, type: String, converter: ut, reflect: !1, hasChanged: Lt }, Ae = (o = ke, t, e) => {
568
- const { kind: r, metadata: i } = e;
569
- let n = globalThis.litPropertyMetadata.get(i);
570
- if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), r === "setter" && ((o = Object.create(o)).wrapped = !0), n.set(e.name, o), r === "accessor") {
567
+ const ke = { attribute: !0, type: String, converter: ut, reflect: !1, hasChanged: Pt }, Ae = (o = ke, t, e) => {
568
+ const { kind: n, metadata: i } = e;
569
+ let r = globalThis.litPropertyMetadata.get(i);
570
+ if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), n === "setter" && ((o = Object.create(o)).wrapped = !0), r.set(e.name, o), n === "accessor") {
571
571
  const { name: s } = e;
572
572
  return { set(h) {
573
573
  const c = t.get.call(this);
@@ -576,19 +576,19 @@ const ke = { attribute: !0, type: String, converter: ut, reflect: !1, hasChanged
576
576
  return h !== void 0 && this.C(s, void 0, o, h), h;
577
577
  } };
578
578
  }
579
- if (r === "setter") {
579
+ if (n === "setter") {
580
580
  const { name: s } = e;
581
581
  return function(h) {
582
582
  const c = this[s];
583
583
  t.call(this, h), this.requestUpdate(s, c, o);
584
584
  };
585
585
  }
586
- throw Error("Unsupported decorator location: " + r);
586
+ throw Error("Unsupported decorator location: " + n);
587
587
  };
588
588
  function a(o) {
589
- return (t, e) => typeof e == "object" ? Ae(o, t, e) : ((r, i, n) => {
590
- const s = i.hasOwnProperty(n);
591
- return i.constructor.createProperty(n, r), s ? Object.getOwnPropertyDescriptor(i, n) : void 0;
589
+ return (t, e) => typeof e == "object" ? Ae(o, t, e) : ((n, i, r) => {
590
+ const s = i.hasOwnProperty(r);
591
+ return i.constructor.createProperty(r, n), s ? Object.getOwnPropertyDescriptor(i, r) : void 0;
592
592
  })(o, t, e);
593
593
  }
594
594
  /**
@@ -599,7 +599,7 @@ function a(o) {
599
599
  function q(o) {
600
600
  return a({ ...o, state: !0, attribute: !1 });
601
601
  }
602
- const Pt = g`
602
+ const gt = g`
603
603
  outline: 1px dashed var(--button-border-color);
604
604
  outline-offset: 2px;
605
605
  outline: dashed black;
@@ -614,12 +614,12 @@ g`
614
614
  * Copyright 2023 Google LLC
615
615
  * SPDX-License-Identifier: Apache-2.0
616
616
  */
617
- const Ot = Symbol("internals"), _t = Symbol("privateInternals");
617
+ const Ot = Symbol("internals"), Ct = Symbol("privateInternals");
618
618
  function Bt(o) {
619
619
  var t;
620
620
  class e extends o {
621
621
  get [(t = Ot, t)]() {
622
- return this[_t] || (this[_t] = this.attachInternals()), this[_t];
622
+ return this[Ct] || (this[Ct] = this.attachInternals()), this[Ct];
623
623
  }
624
624
  }
625
625
  return e;
@@ -632,11 +632,11 @@ function Bt(o) {
632
632
  function Ee(o) {
633
633
  o.addInitializer((t) => {
634
634
  const e = t;
635
- e.addEventListener("click", async (r) => {
636
- const { type: i, [Ot]: n } = e, { form: s } = n;
635
+ e.addEventListener("click", async (n) => {
636
+ const { type: i, [Ot]: r } = e, { form: s } = r;
637
637
  if (!(!s || i === "button") && (await new Promise((h) => {
638
638
  setTimeout(h);
639
- }), !r.defaultPrevented)) {
639
+ }), !n.defaultPrevented)) {
640
640
  if (i === "reset") {
641
641
  s.reset();
642
642
  return;
@@ -651,7 +651,7 @@ function Ee(o) {
651
651
  });
652
652
  },
653
653
  { capture: !0, once: !0 }
654
- ), n.setFormValue(e.value), s.requestSubmit();
654
+ ), r.setFormValue(e.value), s.requestSubmit();
655
655
  }
656
656
  });
657
657
  });
@@ -662,10 +662,10 @@ const Se = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
662
662
  `, Le = `<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
- `, Ie = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
665
+ `, Pe = `<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
+ `, Ie = `<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
671
  `, Oe = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -742,8 +742,8 @@ const Se = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="h
742
742
  </svg>`, W = {
743
743
  wishlist: Se,
744
744
  playerv: Le,
745
- chevronRight: Ie,
746
- chevronLeft: Pe,
745
+ chevronRight: Pe,
746
+ chevronLeft: Ie,
747
747
  icoPlus: je,
748
748
  icoMinus: Ue,
749
749
  "star-0": Oe,
@@ -777,8 +777,8 @@ let Ht = class {
777
777
  get _$AU() {
778
778
  return this._$AM._$AU;
779
779
  }
780
- _$AT(t, e, r) {
781
- this._$Ct = t, this._$AM = e, this._$Ci = r;
780
+ _$AT(t, e, n) {
781
+ this._$Ct = t, this._$AM = e, this._$Ci = n;
782
782
  }
783
783
  _$AS(t, e) {
784
784
  return this.update(t, e);
@@ -792,7 +792,7 @@ let Ht = class {
792
792
  * Copyright 2017 Google LLC
793
793
  * SPDX-License-Identifier: BSD-3-Clause
794
794
  */
795
- class Ct extends Ht {
795
+ class kt extends Ht {
796
796
  constructor(t) {
797
797
  if (super(t), this.it = d, t.type !== zt.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
798
798
  }
@@ -806,20 +806,20 @@ class Ct extends Ht {
806
806
  return e.raw = e, this._t = { _$litType$: this.constructor.resultType, strings: e, values: [] };
807
807
  }
808
808
  }
809
- Ct.directiveName = "unsafeHTML", Ct.resultType = 1;
809
+ kt.directiveName = "unsafeHTML", kt.resultType = 1;
810
810
  /**
811
811
  * @license
812
812
  * Copyright 2017 Google LLC
813
813
  * SPDX-License-Identifier: BSD-3-Clause
814
814
  */
815
- class kt extends Ct {
815
+ class At extends kt {
816
816
  }
817
- kt.directiveName = "unsafeSVG", kt.resultType = 2;
818
- const S = Dt(kt);
819
- var Qe = Object.defineProperty, Ye = Object.getOwnPropertyDescriptor, w = (o, t, e, r) => {
820
- for (var i = r > 1 ? void 0 : r ? Ye(t, e) : t, n = o.length - 1, s; n >= 0; n--)
821
- (s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
822
- return r && i && Qe(t, e, i), i;
817
+ At.directiveName = "unsafeSVG", At.resultType = 2;
818
+ const S = Dt(At);
819
+ var Qe = Object.defineProperty, Ye = Object.getOwnPropertyDescriptor, w = (o, t, e, n) => {
820
+ for (var i = n > 1 ? void 0 : n ? Ye(t, e) : t, r = o.length - 1, s; r >= 0; r--)
821
+ (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
822
+ return n && i && Qe(t, e, i), i;
823
823
  };
824
824
  const to = Bt(u);
825
825
  let v = class extends to {
@@ -999,7 +999,7 @@ v.styles = g`
999
999
  }
1000
1000
 
1001
1001
  .button:focus-visible {
1002
- ${Pt};
1002
+ ${gt};
1003
1003
  }
1004
1004
 
1005
1005
  span.text + span.text::before {
@@ -1120,10 +1120,10 @@ w([
1120
1120
  v = w([
1121
1121
  x("o-button")
1122
1122
  ], v);
1123
- var eo = Object.defineProperty, oo = Object.getOwnPropertyDescriptor, gt = (o, t, e, r) => {
1124
- for (var i = r > 1 ? void 0 : r ? oo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
1125
- (s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
1126
- return r && i && eo(t, e, i), i;
1123
+ var eo = Object.defineProperty, oo = Object.getOwnPropertyDescriptor, yt = (o, t, e, n) => {
1124
+ for (var i = n > 1 ? void 0 : n ? oo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
1125
+ (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
1126
+ return n && i && eo(t, e, i), i;
1127
1127
  };
1128
1128
  let J = class extends u {
1129
1129
  constructor() {
@@ -1232,16 +1232,16 @@ J.styles = g`
1232
1232
  white-space: nowrap !important;
1233
1233
  }
1234
1234
  `;
1235
- gt([
1235
+ yt([
1236
1236
  a({ type: String, reflect: !0 })
1237
1237
  ], J.prototype, "status", 2);
1238
- gt([
1238
+ yt([
1239
1239
  a({ type: String, reflect: !0 })
1240
1240
  ], J.prototype, "ariaDescribedBy", 2);
1241
- gt([
1241
+ yt([
1242
1242
  a({ type: String, reflect: !0 })
1243
1243
  ], J.prototype, "label", 2);
1244
- J = gt([
1244
+ J = yt([
1245
1245
  x("o-wishlist-button")
1246
1246
  ], J);
1247
1247
  /**
@@ -1250,10 +1250,10 @@ J = gt([
1250
1250
  * SPDX-License-Identifier: BSD-3-Clause
1251
1251
  */
1252
1252
  const $ = (o) => o ?? d;
1253
- var io = Object.defineProperty, ro = Object.getOwnPropertyDescriptor, I = (o, t, e, r) => {
1254
- for (var i = r > 1 ? void 0 : r ? ro(t, e) : t, n = o.length - 1, s; n >= 0; n--)
1255
- (s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
1256
- return r && i && io(t, e, i), i;
1253
+ var io = Object.defineProperty, no = Object.getOwnPropertyDescriptor, P = (o, t, e, n) => {
1254
+ for (var i = n > 1 ? void 0 : n ? no(t, e) : t, r = o.length - 1, s; r >= 0; r--)
1255
+ (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
1256
+ return n && i && io(t, e, i), i;
1257
1257
  };
1258
1258
  let _ = class extends u {
1259
1259
  constructor() {
@@ -1266,7 +1266,7 @@ let _ = class extends u {
1266
1266
  const o = W[this.icon] ?? "", t = `icon-${this.icon}`, e = o.replace(
1267
1267
  "<svg",
1268
1268
  '<svg aria-hidden="true" focusable="false" part="svg"'
1269
- ), r = this.showSrLabel ? l`<span class="sr-only">${this.srLabel}</span>` : null, i = this.showSrLabel ? null : "icon";
1269
+ ), n = this.showSrLabel ? l`<span class="sr-only">${this.srLabel}</span>` : null, i = this.showSrLabel ? null : "icon";
1270
1270
  return l`
1271
1271
  ${this.type === "span" ? l`
1272
1272
  <span class="icon icon-button ${this.size} ${this.bgstyle} ${this.status} ${t}" ?disabled="${this.disabled}">
@@ -1280,7 +1280,7 @@ let _ = class extends u {
1280
1280
  ?disabled="${this.disabled}"
1281
1281
  >
1282
1282
  ${S(e)}
1283
- ${r}
1283
+ ${n}
1284
1284
  </button>
1285
1285
  `}
1286
1286
  `;
@@ -1493,40 +1493,40 @@ _.styles = g`
1493
1493
  display: none;
1494
1494
  }
1495
1495
  `;
1496
- I([
1496
+ P([
1497
1497
  a({ type: String, reflect: !0 })
1498
1498
  ], _.prototype, "bgstyle", 2);
1499
- I([
1499
+ P([
1500
1500
  a({ type: String, reflect: !0 })
1501
1501
  ], _.prototype, "size", 2);
1502
- I([
1502
+ P([
1503
1503
  a({ type: String, reflect: !0 })
1504
1504
  ], _.prototype, "status", 2);
1505
- I([
1505
+ P([
1506
1506
  a({ type: String, reflect: !0 })
1507
1507
  ], _.prototype, "type", 2);
1508
- I([
1508
+ P([
1509
1509
  a({ type: String })
1510
1510
  ], _.prototype, "strokewidth", 2);
1511
- I([
1511
+ P([
1512
1512
  a({ type: String })
1513
1513
  ], _.prototype, "icon", 2);
1514
- I([
1514
+ P([
1515
1515
  a({ type: Boolean, reflect: !0 })
1516
1516
  ], _.prototype, "disabled", 2);
1517
- I([
1517
+ P([
1518
1518
  a({ type: Boolean })
1519
1519
  ], _.prototype, "showSrLabel", 2);
1520
- I([
1520
+ P([
1521
1521
  a({ type: String })
1522
1522
  ], _.prototype, "srLabel", 2);
1523
- _ = I([
1523
+ _ = P([
1524
1524
  x("o-icon-button")
1525
1525
  ], _);
1526
- var no = Object.defineProperty, so = Object.getOwnPropertyDescriptor, K = (o, t, e, r) => {
1527
- for (var i = r > 1 ? void 0 : r ? so(t, e) : t, n = o.length - 1, s; n >= 0; n--)
1528
- (s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
1529
- return r && i && no(t, e, i), i;
1526
+ var ro = Object.defineProperty, so = Object.getOwnPropertyDescriptor, K = (o, t, e, n) => {
1527
+ for (var i = n > 1 ? void 0 : n ? so(t, e) : t, r = o.length - 1, s; r >= 0; r--)
1528
+ (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
1529
+ return n && i && ro(t, e, i), i;
1530
1530
  };
1531
1531
  let B = class extends u {
1532
1532
  constructor() {
@@ -1675,10 +1675,10 @@ K([
1675
1675
  B = K([
1676
1676
  x("o-link")
1677
1677
  ], B);
1678
- var ao = Object.defineProperty, lo = Object.getOwnPropertyDescriptor, yt = (o, t, e, r) => {
1679
- for (var i = r > 1 ? void 0 : r ? lo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
1680
- (s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
1681
- return r && i && ao(t, e, i), i;
1678
+ var ao = Object.defineProperty, lo = Object.getOwnPropertyDescriptor, mt = (o, t, e, n) => {
1679
+ for (var i = n > 1 ? void 0 : n ? lo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
1680
+ (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
1681
+ return n && i && ao(t, e, i), i;
1682
1682
  };
1683
1683
  let Q = class extends u {
1684
1684
  constructor() {
@@ -1688,8 +1688,8 @@ let Q = class extends u {
1688
1688
  const o = [];
1689
1689
  for (let t = 0; t < 5; t++) {
1690
1690
  const e = this.rating - t;
1691
- let r;
1692
- e >= 1 ? r = 100 : e <= 0 ? r = 0 : r = Math.round(e * 100 / 25) * 25, o.push(`star-${r}`);
1691
+ let n;
1692
+ e >= 1 ? n = 100 : e <= 0 ? n = 0 : n = Math.round(e * 100 / 25) * 25, o.push(`star-${n}`);
1693
1693
  }
1694
1694
  return o;
1695
1695
  }
@@ -1741,16 +1741,16 @@ Q.styles = g`
1741
1741
  cursor: pointer;
1742
1742
  }
1743
1743
  `;
1744
- yt([
1744
+ mt([
1745
1745
  a({ type: Number })
1746
1746
  ], Q.prototype, "rating", 2);
1747
- yt([
1747
+ mt([
1748
1748
  a({ type: String })
1749
1749
  ], Q.prototype, "reviewCount", 2);
1750
- yt([
1750
+ mt([
1751
1751
  a({ type: String })
1752
1752
  ], Q.prototype, "href", 2);
1753
- Q = yt([
1753
+ Q = mt([
1754
1754
  x("o-rating")
1755
1755
  ], Q);
1756
1756
  /**
@@ -1765,10 +1765,10 @@ const co = (o) => o.strings === void 0;
1765
1765
  * SPDX-License-Identifier: BSD-3-Clause
1766
1766
  */
1767
1767
  const ot = (o, t) => {
1768
- var r;
1768
+ var n;
1769
1769
  const e = o._$AN;
1770
1770
  if (e === void 0) return !1;
1771
- for (const i of e) (r = i._$AO) == null || r.call(i, t, !1), ot(i, t);
1771
+ for (const i of e) (n = i._$AO) == null || n.call(i, t, !1), ot(i, t);
1772
1772
  return !0;
1773
1773
  }, bt = (o) => {
1774
1774
  let t, e;
@@ -1776,7 +1776,7 @@ const ot = (o, t) => {
1776
1776
  if ((t = o._$AM) === void 0) break;
1777
1777
  e = t._$AN, e.delete(o), o = t;
1778
1778
  } while ((e == null ? void 0 : e.size) === 0);
1779
- }, re = (o) => {
1779
+ }, ne = (o) => {
1780
1780
  for (let t; t = o._$AM; o = t) {
1781
1781
  let e = t._$AN;
1782
1782
  if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
@@ -1785,12 +1785,12 @@ const ot = (o, t) => {
1785
1785
  }
1786
1786
  };
1787
1787
  function ho(o) {
1788
- this._$AN !== void 0 ? (bt(this), this._$AM = o, re(this)) : this._$AM = o;
1788
+ this._$AN !== void 0 ? (bt(this), this._$AM = o, ne(this)) : this._$AM = o;
1789
1789
  }
1790
1790
  function po(o, t = !1, e = 0) {
1791
- const r = this._$AH, i = this._$AN;
1792
- if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(r)) for (let n = e; n < r.length; n++) ot(r[n], !1), bt(r[n]);
1793
- else r != null && (ot(r, !1), bt(r));
1791
+ const n = this._$AH, i = this._$AN;
1792
+ if (i !== void 0 && i.size !== 0) if (t) if (Array.isArray(n)) for (let r = e; r < n.length; r++) ot(n[r], !1), bt(n[r]);
1793
+ else n != null && (ot(n, !1), bt(n));
1794
1794
  else ot(this, o);
1795
1795
  }
1796
1796
  const uo = (o) => {
@@ -1800,12 +1800,12 @@ class vo extends Ht {
1800
1800
  constructor() {
1801
1801
  super(...arguments), this._$AN = void 0;
1802
1802
  }
1803
- _$AT(t, e, r) {
1804
- super._$AT(t, e, r), re(this), this.isConnected = t._$AU;
1803
+ _$AT(t, e, n) {
1804
+ super._$AT(t, e, n), ne(this), this.isConnected = t._$AU;
1805
1805
  }
1806
1806
  _$AO(t, e = !0) {
1807
- var r, i;
1808
- t !== this.isConnected && (this.isConnected = t, t ? (r = this.reconnected) == null || r.call(this) : (i = this.disconnected) == null || i.call(this)), e && (ot(this, t), bt(this));
1807
+ var n, i;
1808
+ t !== this.isConnected && (this.isConnected = t, t ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), e && (ot(this, t), bt(this));
1809
1809
  }
1810
1810
  setValue(t) {
1811
1811
  if (co(this._$Ct)) this._$Ct._$AI(t, this);
@@ -1827,23 +1827,23 @@ class bo extends vo {
1827
1827
  return d;
1828
1828
  }
1829
1829
  update(t, [e]) {
1830
- var r;
1831
- this.element !== t.element && (this.element = t.element), this.host = ((r = t.options) === null || r === void 0 ? void 0 : r.host) || this.element, this.apply(e), this.groom(e), this.prevData = { ...e };
1830
+ var n;
1831
+ this.element !== t.element && (this.element = t.element), this.host = ((n = t.options) === null || n === void 0 ? void 0 : n.host) || this.element, this.apply(e), this.groom(e), this.prevData = { ...e };
1832
1832
  }
1833
1833
  apply(t) {
1834
1834
  if (!t)
1835
1835
  return;
1836
- const { prevData: e, element: r } = this;
1836
+ const { prevData: e, element: n } = this;
1837
1837
  for (const i in t) {
1838
- const n = t[i];
1839
- n !== e[i] && (r[i] = n);
1838
+ const r = t[i];
1839
+ r !== e[i] && (n[i] = r);
1840
1840
  }
1841
1841
  }
1842
1842
  groom(t) {
1843
- const { prevData: e, element: r } = this;
1843
+ const { prevData: e, element: n } = this;
1844
1844
  if (e)
1845
1845
  for (const i in e)
1846
- (!t || !(i in t) && r[i] === e[i]) && (r[i] = void 0);
1846
+ (!t || !(i in t) && n[i] === e[i]) && (n[i] = void 0);
1847
1847
  }
1848
1848
  }
1849
1849
  class fo extends bo {
@@ -1853,23 +1853,23 @@ class fo extends bo {
1853
1853
  apply(t) {
1854
1854
  if (t)
1855
1855
  for (const e in t) {
1856
- const r = t[e];
1857
- r !== this.eventData[e] && this.applyEvent(e, r);
1856
+ const n = t[e];
1857
+ n !== this.eventData[e] && this.applyEvent(e, n);
1858
1858
  }
1859
1859
  }
1860
1860
  applyEvent(t, e) {
1861
- const { prevData: r, element: i } = this;
1862
- this.eventData[t] = e, r[t] && i.removeEventListener(t, this, e), i.addEventListener(t, this, e);
1861
+ const { prevData: n, element: i } = this;
1862
+ this.eventData[t] = e, n[t] && i.removeEventListener(t, this, e), i.addEventListener(t, this, e);
1863
1863
  }
1864
1864
  groom(t) {
1865
- const { prevData: e, element: r } = this;
1865
+ const { prevData: e, element: n } = this;
1866
1866
  if (e)
1867
1867
  for (const i in e)
1868
- (!t || !(i in t) && r[i] === e[i]) && this.groomEvent(i, e[i]);
1868
+ (!t || !(i in t) && n[i] === e[i]) && this.groomEvent(i, e[i]);
1869
1869
  }
1870
1870
  groomEvent(t, e) {
1871
- const { element: r } = this;
1872
- delete this.eventData[t], r.removeEventListener(t, this, e);
1871
+ const { element: n } = this;
1872
+ delete this.eventData[t], n.removeEventListener(t, this, e);
1873
1873
  }
1874
1874
  handleEvent(t) {
1875
1875
  const e = this.eventData[t.type];
@@ -1877,16 +1877,16 @@ class fo extends bo {
1877
1877
  }
1878
1878
  disconnected() {
1879
1879
  const { eventData: t, element: e } = this;
1880
- for (const r in t) {
1881
- const i = r.slice(1), n = t[r];
1882
- e.removeEventListener(i, this, n);
1880
+ for (const n in t) {
1881
+ const i = n.slice(1), r = t[n];
1882
+ e.removeEventListener(i, this, r);
1883
1883
  }
1884
1884
  }
1885
1885
  reconnected() {
1886
1886
  const { eventData: t, element: e } = this;
1887
- for (const r in t) {
1888
- const i = r.slice(1), n = t[r];
1889
- e.addEventListener(i, this, n);
1887
+ for (const n in t) {
1888
+ const i = n.slice(1), r = t[n];
1889
+ e.addEventListener(i, this, r);
1890
1890
  }
1891
1891
  }
1892
1892
  }
@@ -1894,61 +1894,63 @@ class go extends fo {
1894
1894
  apply(t) {
1895
1895
  if (!t)
1896
1896
  return;
1897
- const { prevData: e, element: r } = this;
1897
+ const { prevData: e, element: n } = this;
1898
1898
  for (const i in t) {
1899
- const n = t[i];
1900
- if (n === e[i])
1899
+ const r = t[i];
1900
+ if (r === e[i])
1901
1901
  continue;
1902
1902
  const s = i.slice(1);
1903
1903
  switch (i[0]) {
1904
1904
  case "@":
1905
- this.eventData[s] = n, this.applyEvent(s, n);
1905
+ this.eventData[s] = r, this.applyEvent(s, r);
1906
1906
  break;
1907
1907
  case ".":
1908
- r[s] = n;
1908
+ n[s] = r;
1909
1909
  break;
1910
1910
  case "?":
1911
- n ? r.setAttribute(s, "") : r.removeAttribute(s);
1911
+ r ? n.setAttribute(s, "") : n.removeAttribute(s);
1912
1912
  break;
1913
1913
  default:
1914
- n != null ? r.setAttribute(i, String(n)) : r.removeAttribute(i);
1914
+ r != null ? n.setAttribute(i, String(r)) : n.removeAttribute(i);
1915
1915
  break;
1916
1916
  }
1917
1917
  }
1918
1918
  }
1919
1919
  groom(t) {
1920
- const { prevData: e, element: r } = this;
1920
+ const { prevData: e, element: n } = this;
1921
1921
  if (e)
1922
1922
  for (const i in e) {
1923
- const n = i.slice(1);
1924
- if (!t || !(i in t) && r[n] === e[i])
1923
+ const r = i.slice(1);
1924
+ if (!t || !(i in t) && n[r] === e[i])
1925
1925
  switch (i[0]) {
1926
1926
  case "@":
1927
- this.groomEvent(n, e[i]);
1927
+ this.groomEvent(r, e[i]);
1928
1928
  break;
1929
1929
  case ".":
1930
- r[n] = void 0;
1930
+ n[r] = void 0;
1931
1931
  break;
1932
1932
  case "?":
1933
- r.removeAttribute(n);
1933
+ n.removeAttribute(r);
1934
1934
  break;
1935
1935
  default:
1936
- r.removeAttribute(i);
1936
+ n.removeAttribute(i);
1937
1937
  break;
1938
1938
  }
1939
1939
  }
1940
1940
  }
1941
1941
  }
1942
1942
  const Jt = Dt(go);
1943
- var yo = Object.defineProperty, mo = Object.getOwnPropertyDescriptor, y = (o, t, e, r) => {
1944
- for (var i = r > 1 ? void 0 : r ? mo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
1945
- (s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
1946
- return r && i && yo(t, e, i), i;
1943
+ var yo = Object.defineProperty, mo = Object.getOwnPropertyDescriptor, y = (o, t, e, n) => {
1944
+ for (var i = n > 1 ? void 0 : n ? mo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
1945
+ (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
1946
+ return n && i && yo(t, e, i), i;
1947
1947
  };
1948
1948
  let b = class extends u {
1949
1949
  constructor() {
1950
1950
  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.firstButtonProps = {}, this.onFirstButtonClickClose = !1, this.secondButtonLabel = "", this.secondButtonVariant = "secondary", this.secondButtonProps = {}, this.onSecondButtonClickClose = !1, this.disablePortal = !1, this.zIndex = 99, this.initialized = !1, this.previousFocusedElement = null, this.handleKeyDown = (o) => {
1951
1951
  this.open && (o.key === "Escape" ? this.closePanel() : o.key === "Tab" && this.trapFocus(o));
1952
+ }, this.handleClosePanel = (o) => {
1953
+ o instanceof KeyboardEvent && o.key !== "Enter" && o.key !== " " || (o.preventDefault(), o.stopPropagation(), this.closePanel());
1952
1954
  };
1953
1955
  }
1954
1956
  connectedCallback() {
@@ -1960,10 +1962,11 @@ let b = class extends u {
1960
1962
  document.body.style.overflow = "", document.body.removeAttribute("data-side-panel"), window.removeEventListener("keydown", this.handleKeyDown), super.disconnectedCallback();
1961
1963
  }
1962
1964
  trapFocus(o) {
1965
+ console.log("Side panel opened");
1963
1966
  const t = this.getFocusableElements();
1964
1967
  if (t.length === 0) return;
1965
- const e = t[0], r = t[t.length - 1];
1966
- o.shiftKey && document.activeElement === e ? (o.preventDefault(), r.focus()) : !o.shiftKey && document.activeElement === r && (o.preventDefault(), e.focus());
1968
+ const e = t[0], n = t[t.length - 1];
1969
+ o.shiftKey && document.activeElement === e ? (o.preventDefault(), n.focus()) : !o.shiftKey && document.activeElement === n && (o.preventDefault(), e.focus());
1967
1970
  }
1968
1971
  getFocusableElements() {
1969
1972
  const o = this.renderRoot.querySelector(".panel");
@@ -1975,8 +1978,13 @@ let b = class extends u {
1975
1978
  }
1976
1979
  openPanel() {
1977
1980
  this.previousFocusedElement = document.activeElement, this.open = !0, document.body.style.overflow = "hidden", document.body.setAttribute("data-side-panel", "open"), this.updateComplete.then(() => {
1978
- const o = this.getFocusableElements()[0];
1979
- o == null || o.focus();
1981
+ var o, t;
1982
+ if (this.showHeader)
1983
+ (t = (o = this.shadowRoot) == null ? void 0 : o.querySelector(".panel")) == null || t.focus();
1984
+ else {
1985
+ const e = this.getFocusableElements()[0];
1986
+ e == null || e.focus();
1987
+ }
1980
1988
  }), this.dispatchEvent(
1981
1989
  new CustomEvent("open", { bubbles: !0, composed: !0 })
1982
1990
  );
@@ -1988,32 +1996,51 @@ let b = class extends u {
1988
1996
  );
1989
1997
  }
1990
1998
  handleFirstClick(o) {
1991
- this.onFirstButtonClickClose && this.closePanel();
1999
+ o instanceof KeyboardEvent && o.key !== "Enter" && o.key !== " " || (o.preventDefault(), o.stopPropagation(), this.onFirstButtonClickClose && this.closePanel(), this.dispatchEvent(
2000
+ new CustomEvent("click", {
2001
+ bubbles: !0,
2002
+ composed: !0,
2003
+ cancelable: !0,
2004
+ detail: {
2005
+ button: "first"
2006
+ }
2007
+ })
2008
+ ));
1992
2009
  }
1993
- handleSecondaryClick(o) {
1994
- this.onSecondButtonClickClose && this.closePanel();
2010
+ handleSecondClick(o) {
2011
+ o instanceof KeyboardEvent && o.key !== "Enter" && o.key !== " " || (o.preventDefault(), o.stopPropagation(), this.onSecondButtonClickClose && this.closePanel(), this.dispatchEvent(
2012
+ new CustomEvent("click", {
2013
+ bubbles: !0,
2014
+ composed: !0,
2015
+ cancelable: !0,
2016
+ detail: {
2017
+ button: "second"
2018
+ }
2019
+ })
2020
+ ));
1995
2021
  }
1996
2022
  updated() {
1997
2023
  this.style.setProperty("--z-overlay", `${this.zIndex || 99}`), this.style.setProperty("--z-panel", `${this.zIndex ? this.zIndex + 1 : 99}`);
1998
2024
  }
1999
2025
  render() {
2000
2026
  return l`
2001
- <div class="overlay" style="z-index: ${this.zIndex}" @click=${this.closePanel}></div>
2027
+ <div class="overlay" style="z-index: ${this.zIndex}" @click=${this.handleClosePanel}></div>
2002
2028
  <div
2003
2029
  class="panel"
2004
2030
  role="dialog"
2005
2031
  aria-modal="true"
2006
2032
  aria-labelledby="panel-title"
2007
2033
  style="z-index: ${this.zIndex + 1}"
2034
+ tabindex="-1"
2008
2035
  >
2009
2036
 
2010
2037
  ${this.showHeader ? l`
2011
2038
  <div class="header">
2012
2039
  ${this.showHeaderStartIcon ? l`
2013
- <o-icon-button icon="arrowLeft" size="small" class="return-btn" bgstyle="background-light" @click=${this.closePanel} aria-label="${this.closeButtonLabel}"></o-icon-button>
2040
+ <o-icon-button icon="arrowLeft" size="small" class="return-btn" bgstyle="background-light" @click=${this.handleClosePanel} @keydown=${this.handleClosePanel} aria-label="${this.closeButtonLabel}"></o-icon-button>
2014
2041
  ` : null}
2015
2042
  <h2 id="panel-title" class="panel-title">${this.headerTitle}</h2>
2016
- <o-icon-button icon="cross" size="small" class="close-btn" bgstyle="background-light" @click=${this.closePanel} aria-label="${this.closeButtonLabel}"></o-icon-button>
2043
+ <o-icon-button icon="cross" size="small" class="close-btn" bgstyle="background-light" @click=${this.handleClosePanel} @keydown=${this.handleClosePanel} aria-label="${this.closeButtonLabel}"></o-icon-button>
2017
2044
  </div>
2018
2045
  ` : null}
2019
2046
 
@@ -2027,6 +2054,7 @@ let b = class extends u {
2027
2054
  <o-button
2028
2055
  variant="${this.firstButtonVariant}"
2029
2056
  @click=${this.handleFirstClick}
2057
+ @keydown=${this.handleFirstClick}
2030
2058
  ${Jt(this.firstButtonProps)}
2031
2059
  >
2032
2060
  ${this.firstButtonLabel}
@@ -2036,7 +2064,8 @@ let b = class extends u {
2036
2064
  ${this.secondButtonVariant && this.secondButtonLabel ? l`
2037
2065
  <o-button
2038
2066
  variant="${this.secondButtonVariant}"
2039
- @click=${this.handleSecondaryClick}
2067
+ @click=${this.handleSecondClick}
2068
+ @keydown=${this.handleSecondClick}
2040
2069
  ${Jt(this.secondButtonProps)}
2041
2070
  >
2042
2071
  ${this.secondButtonLabel}
@@ -2148,6 +2177,13 @@ b.styles = g`
2148
2177
  }
2149
2178
  }
2150
2179
 
2180
+ .panel:focus,
2181
+ .panel:focus-visible,
2182
+ .close-btn:focus,
2183
+ .close-btn:focus-visible {
2184
+ ${gt}
2185
+ }
2186
+
2151
2187
  .content {
2152
2188
  flex: 1 1 auto;
2153
2189
  overflow-y: auto;
@@ -2244,10 +2280,10 @@ y([
2244
2280
  b = y([
2245
2281
  x("o-side-panel")
2246
2282
  ], b);
2247
- var xo = Object.defineProperty, wo = Object.getOwnPropertyDescriptor, N = (o, t, e, r) => {
2248
- for (var i = r > 1 ? void 0 : r ? wo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
2249
- (s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
2250
- return r && i && xo(t, e, i), i;
2283
+ var xo = Object.defineProperty, wo = Object.getOwnPropertyDescriptor, N = (o, t, e, n) => {
2284
+ for (var i = n > 1 ? void 0 : n ? wo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
2285
+ (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
2286
+ return n && i && xo(t, e, i), i;
2251
2287
  };
2252
2288
  let L = class extends u {
2253
2289
  constructor() {
@@ -2301,7 +2337,7 @@ let L = class extends u {
2301
2337
  return l`
2302
2338
  <ul class="scroll-container" style="max-width: ${this.maxWidth};">
2303
2339
  ${this.thumbnails.map((o, t) => {
2304
- const e = this.disabledIndexes.includes(t), r = this.activeIndex === t, i = o.type === "video", n = i ? `video ${t}` : `${this.altressource} ${t + 1}`;
2340
+ const e = this.disabledIndexes.includes(t), n = this.activeIndex === t, i = o.type === "video", r = i ? `video ${t}` : `${this.altressource} ${t + 1}`;
2305
2341
  return l`
2306
2342
  <li class="thumb-wrapper">
2307
2343
  <button
@@ -2309,14 +2345,14 @@ let L = class extends u {
2309
2345
  data-index="${t}"
2310
2346
  ?disabled=${e}
2311
2347
  aria-selected="${this.focusedIndex === t}"
2312
- aria-current=${r ? "true" : "false"}
2348
+ aria-current=${n ? "true" : "false"}
2313
2349
  tabindex="${this.disabledIndexes.includes(t) ? -1 : 0}"
2314
2350
  @click=${() => this.selectThumbnail(t)}
2315
2351
  @keydown=${this.handleKeyDown}
2316
2352
  @focus=${(s) => this.onFocus(s)}
2317
2353
  @blur=${(s) => this.onBlur(s)}
2318
2354
  >
2319
- <img alt="${n}" src="${o.src}" />
2355
+ <img alt="${r}" src="${o.src}" />
2320
2356
  </button>
2321
2357
  ${i ? l`<div class="play-icon-wrapper">${this.playerIconTemplate}</div>` : null}
2322
2358
  </li>
@@ -2456,10 +2492,10 @@ N([
2456
2492
  L = N([
2457
2493
  x("thumbnail-navigation")
2458
2494
  ], L);
2459
- var $o = Object.defineProperty, _o = Object.getOwnPropertyDescriptor, Mt = (o, t, e, r) => {
2460
- for (var i = r > 1 ? void 0 : r ? _o(t, e) : t, n = o.length - 1, s; n >= 0; n--)
2461
- (s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
2462
- return r && i && $o(t, e, i), i;
2495
+ var $o = Object.defineProperty, _o = Object.getOwnPropertyDescriptor, Mt = (o, t, e, n) => {
2496
+ for (var i = n > 1 ? void 0 : n ? _o(t, e) : t, r = o.length - 1, s; r >= 0; r--)
2497
+ (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
2498
+ return n && i && $o(t, e, i), i;
2463
2499
  };
2464
2500
  let st = class extends u {
2465
2501
  constructor() {
@@ -2536,10 +2572,10 @@ Mt([
2536
2572
  st = Mt([
2537
2573
  x("o-tag")
2538
2574
  ], st);
2539
- var Co = Object.defineProperty, ko = Object.getOwnPropertyDescriptor, Tt = (o, t, e, r) => {
2540
- for (var i = r > 1 ? void 0 : r ? ko(t, e) : t, n = o.length - 1, s; n >= 0; n--)
2541
- (s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
2542
- return r && i && Co(t, e, i), i;
2575
+ var Co = Object.defineProperty, ko = Object.getOwnPropertyDescriptor, Tt = (o, t, e, n) => {
2576
+ for (var i = n > 1 ? void 0 : n ? ko(t, e) : t, r = o.length - 1, s; r >= 0; r--)
2577
+ (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
2578
+ return n && i && Co(t, e, i), i;
2543
2579
  };
2544
2580
  let at = class extends u {
2545
2581
  constructor() {
@@ -2656,10 +2692,10 @@ Tt([
2656
2692
  at = Tt([
2657
2693
  x("o-tooltip")
2658
2694
  ], at);
2659
- var Ao = Object.defineProperty, Eo = Object.getOwnPropertyDescriptor, z = (o, t, e, r) => {
2660
- for (var i = r > 1 ? void 0 : r ? Eo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
2661
- (s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
2662
- return r && i && Ao(t, e, i), i;
2695
+ var Ao = Object.defineProperty, Eo = Object.getOwnPropertyDescriptor, z = (o, t, e, n) => {
2696
+ for (var i = n > 1 ? void 0 : n ? Eo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
2697
+ (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
2698
+ return n && i && Ao(t, e, i), i;
2663
2699
  };
2664
2700
  let A = class extends u {
2665
2701
  constructor() {
@@ -2760,13 +2796,13 @@ let A = class extends u {
2760
2796
  style=${`width: ${this.width};`}
2761
2797
  >
2762
2798
  ${this.options.map(
2763
- (e, r) => l`
2799
+ (e, n) => l`
2764
2800
  <li
2765
- id="option-${r}"
2801
+ id="option-${n}"
2766
2802
  role="option"
2767
2803
  aria-selected="${e.value === this.value}"
2768
- tabindex="${r === this.activeIndex ? "0" : "-1"}"
2769
- class="${r === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
2804
+ tabindex="${n === this.activeIndex ? "0" : "-1"}"
2805
+ class="${n === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
2770
2806
  @click=${() => this.selectOption(e)}
2771
2807
  >
2772
2808
  ${e.url ? l`
@@ -2951,17 +2987,17 @@ z([
2951
2987
  A = z([
2952
2988
  x("o-dropdown")
2953
2989
  ], A);
2954
- var So = Object.getOwnPropertyDescriptor, Lo = (o, t, e, r) => {
2955
- for (var i = r > 1 ? void 0 : r ? So(t, e) : t, n = o.length - 1, s; n >= 0; n--)
2956
- (s = o[n]) && (i = s(i) || i);
2990
+ var So = Object.getOwnPropertyDescriptor, Lo = (o, t, e, n) => {
2991
+ for (var i = n > 1 ? void 0 : n ? So(t, e) : t, r = o.length - 1, s; r >= 0; r--)
2992
+ (s = o[r]) && (i = s(i) || i);
2957
2993
  return i;
2958
2994
  };
2959
- let At = class extends u {
2995
+ let Et = class extends u {
2960
2996
  render() {
2961
2997
  return l` <span class="dots"></span> `;
2962
2998
  }
2963
2999
  };
2964
- At.styles = g`
3000
+ Et.styles = g`
2965
3001
  :host {
2966
3002
  display: flex;
2967
3003
  align-items: center;
@@ -3013,13 +3049,13 @@ At.styles = g`
3013
3049
  }
3014
3050
  }
3015
3051
  `;
3016
- At = Lo([
3052
+ Et = Lo([
3017
3053
  x("o-dots")
3018
- ], At);
3019
- var Io = Object.defineProperty, Po = Object.getOwnPropertyDescriptor, P = (o, t, e, r) => {
3020
- for (var i = r > 1 ? void 0 : r ? Po(t, e) : t, n = o.length - 1, s; n >= 0; n--)
3021
- (s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
3022
- return r && i && Io(t, e, i), i;
3054
+ ], Et);
3055
+ var Po = Object.defineProperty, Io = Object.getOwnPropertyDescriptor, I = (o, t, e, n) => {
3056
+ for (var i = n > 1 ? void 0 : n ? Io(t, e) : t, r = o.length - 1, s; r >= 0; r--)
3057
+ (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
3058
+ return n && i && Po(t, e, i), i;
3023
3059
  };
3024
3060
  let C = class extends u {
3025
3061
  constructor() {
@@ -3130,14 +3166,14 @@ let C = class extends u {
3130
3166
  style=${`width: ${this.width};`}
3131
3167
  >
3132
3168
  ${this.options.map(
3133
- (e, r) => l`
3169
+ (e, n) => l`
3134
3170
  <li
3135
- id="option-${r}"
3171
+ id="option-${n}"
3136
3172
  role="option"
3137
3173
  aria-selected="${e.value === this.value}"
3138
3174
  aria-disabled="${e.disabled ? "true" : "false"}"
3139
- tabindex="${r === this.activeIndex ? "0" : "-1"}"
3140
- class="${r === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
3175
+ tabindex="${n === this.activeIndex ? "0" : "-1"}"
3176
+ class="${n === this.activeIndex ? "active" : ""} ${e.disabled ? "disabled" : ""}"
3141
3177
  @click=${() => this.selectOption(e)}
3142
3178
  >
3143
3179
  <a href="${$(e.url)}">
@@ -3334,34 +3370,34 @@ C.styles = g`
3334
3370
  display: none;
3335
3371
  }
3336
3372
  `;
3337
- P([
3373
+ I([
3338
3374
  a({ type: Array, reflect: !0 })
3339
3375
  ], C.prototype, "options", 2);
3340
- P([
3376
+ I([
3341
3377
  a({ type: String, reflect: !0 })
3342
3378
  ], C.prototype, "value", 2);
3343
- P([
3379
+ I([
3344
3380
  a({ type: String, reflect: !0 })
3345
3381
  ], C.prototype, "name", 2);
3346
- P([
3382
+ I([
3347
3383
  a({ type: String, reflect: !0 })
3348
3384
  ], C.prototype, "additionaltext", 2);
3349
- P([
3385
+ I([
3350
3386
  a({ type: Boolean, reflect: !0 })
3351
3387
  ], C.prototype, "disabled", 2);
3352
- P([
3388
+ I([
3353
3389
  a({ type: String, reflect: !0 })
3354
3390
  ], C.prototype, "width", 2);
3355
- P([
3391
+ I([
3356
3392
  q()
3357
3393
  ], C.prototype, "open", 2);
3358
- P([
3394
+ I([
3359
3395
  q()
3360
3396
  ], C.prototype, "activeIndex", 2);
3361
- P([
3397
+ I([
3362
3398
  q()
3363
3399
  ], C.prototype, "menuWidth", 2);
3364
- C = P([
3400
+ C = I([
3365
3401
  x("o-dropdown-variant")
3366
3402
  ], C);
3367
3403
  /**
@@ -3369,36 +3405,36 @@ C = P([
3369
3405
  * Copyright 2018 Google LLC
3370
3406
  * SPDX-License-Identifier: BSD-3-Clause
3371
3407
  */
3372
- const ne = "important", Oo = " !" + ne, Bo = Dt(class extends Ht {
3408
+ const re = "important", Oo = " !" + re, Bo = Dt(class extends Ht {
3373
3409
  constructor(o) {
3374
3410
  var t;
3375
3411
  if (super(o), o.type !== zt.ATTRIBUTE || o.name !== "style" || ((t = o.strings) == null ? void 0 : t.length) > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
3376
3412
  }
3377
3413
  render(o) {
3378
3414
  return Object.keys(o).reduce((t, e) => {
3379
- const r = o[e];
3380
- return r == null ? t : t + `${e = e.includes("-") ? e : e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${r};`;
3415
+ const n = o[e];
3416
+ return n == null ? t : t + `${e = e.includes("-") ? e : e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${n};`;
3381
3417
  }, "");
3382
3418
  }
3383
3419
  update(o, [t]) {
3384
3420
  const { style: e } = o.element;
3385
3421
  if (this.ft === void 0) return this.ft = new Set(Object.keys(t)), this.render(t);
3386
- for (const r of this.ft) t[r] == null && (this.ft.delete(r), r.includes("-") ? e.removeProperty(r) : e[r] = null);
3387
- for (const r in t) {
3388
- const i = t[r];
3422
+ for (const n of this.ft) t[n] == null && (this.ft.delete(n), n.includes("-") ? e.removeProperty(n) : e[n] = null);
3423
+ for (const n in t) {
3424
+ const i = t[n];
3389
3425
  if (i != null) {
3390
- this.ft.add(r);
3391
- const n = typeof i == "string" && i.endsWith(Oo);
3392
- r.includes("-") || n ? e.setProperty(r, n ? i.slice(0, -11) : i, n ? ne : "") : e[r] = i;
3426
+ this.ft.add(n);
3427
+ const r = typeof i == "string" && i.endsWith(Oo);
3428
+ n.includes("-") || r ? e.setProperty(n, r ? i.slice(0, -11) : i, r ? re : "") : e[n] = i;
3393
3429
  }
3394
3430
  }
3395
3431
  return U;
3396
3432
  }
3397
3433
  });
3398
- var zo = Object.defineProperty, Do = Object.getOwnPropertyDescriptor, jt = (o, t, e, r) => {
3399
- for (var i = r > 1 ? void 0 : r ? Do(t, e) : t, n = o.length - 1, s; n >= 0; n--)
3400
- (s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
3401
- return r && i && zo(t, e, i), i;
3434
+ var zo = Object.defineProperty, Do = Object.getOwnPropertyDescriptor, jt = (o, t, e, n) => {
3435
+ for (var i = n > 1 ? void 0 : n ? Do(t, e) : t, r = o.length - 1, s; r >= 0; r--)
3436
+ (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
3437
+ return n && i && zo(t, e, i), i;
3402
3438
  };
3403
3439
  let lt = class extends u {
3404
3440
  constructor() {
@@ -3509,10 +3545,10 @@ jt([
3509
3545
  lt = jt([
3510
3546
  x("o-reassurance")
3511
3547
  ], lt);
3512
- var Ho = Object.defineProperty, Mo = Object.getOwnPropertyDescriptor, D = (o, t, e, r) => {
3513
- for (var i = r > 1 ? void 0 : r ? Mo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
3514
- (s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
3515
- return r && i && Ho(t, e, i), i;
3548
+ var Ho = Object.defineProperty, Mo = Object.getOwnPropertyDescriptor, D = (o, t, e, n) => {
3549
+ for (var i = n > 1 ? void 0 : n ? Mo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
3550
+ (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
3551
+ return n && i && Ho(t, e, i), i;
3516
3552
  };
3517
3553
  const To = Bt(u);
3518
3554
  let k = class extends To {
@@ -3610,7 +3646,7 @@ k.styles = g`
3610
3646
  }
3611
3647
 
3612
3648
  &:focus-visible {
3613
- ${Pt};
3649
+ ${gt};
3614
3650
  }
3615
3651
  }
3616
3652
 
@@ -3651,10 +3687,10 @@ D([
3651
3687
  k = D([
3652
3688
  x("o-chip")
3653
3689
  ], k);
3654
- var jo = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, Ut = (o, t, e, r) => {
3655
- for (var i = r > 1 ? void 0 : r ? Uo(t, e) : t, n = o.length - 1, s; n >= 0; n--)
3656
- (s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
3657
- return r && i && jo(t, e, i), i;
3690
+ var jo = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, Ut = (o, t, e, n) => {
3691
+ for (var i = n > 1 ? void 0 : n ? Uo(t, e) : t, r = o.length - 1, s; r >= 0; r--)
3692
+ (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
3693
+ return n && i && jo(t, e, i), i;
3658
3694
  };
3659
3695
  let ct = class extends u {
3660
3696
  constructor() {
@@ -3689,10 +3725,10 @@ Ut([
3689
3725
  ct = Ut([
3690
3726
  x("o-chipset")
3691
3727
  ], ct);
3692
- var No = Object.defineProperty, Ro = Object.getOwnPropertyDescriptor, H = (o, t, e, r) => {
3693
- for (var i = r > 1 ? void 0 : r ? Ro(t, e) : t, n = o.length - 1, s; n >= 0; n--)
3694
- (s = o[n]) && (i = (r ? s(t, e, i) : s(i)) || i);
3695
- return r && i && No(t, e, i), i;
3728
+ var No = Object.defineProperty, Ro = Object.getOwnPropertyDescriptor, H = (o, t, e, n) => {
3729
+ for (var i = n > 1 ? void 0 : n ? Ro(t, e) : t, r = o.length - 1, s; r >= 0; r--)
3730
+ (s = o[r]) && (i = (n ? s(t, e, i) : s(i)) || i);
3731
+ return n && i && No(t, e, i), i;
3696
3732
  };
3697
3733
  const Fo = Bt(u);
3698
3734
  let E = class extends Fo {
@@ -3821,7 +3857,7 @@ E.styles = g`
3821
3857
  }
3822
3858
 
3823
3859
  .button:focus-visible {
3824
- ${Pt};
3860
+ ${gt};
3825
3861
  }
3826
3862
 
3827
3863
  span.text + span.text::before {