@record-evolution/widget-navbar 1.0.9 → 1.0.10

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.
@@ -1,21 +1,15 @@
1
- /* @license Copyright (c) 2025 IronFlock GmbH. All rights reserved.*/
2
- /**
3
- * @license
4
- * Copyright 2019 Google LLC
5
- * SPDX-License-Identifier: BSD-3-Clause
6
- */
7
- const Y = globalThis, ut = Y.ShadowRoot && (Y.ShadyCSS === void 0 || Y.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, vt = Symbol(), wt = /* @__PURE__ */ new WeakMap();
1
+ const Y = globalThis, ut = Y.ShadowRoot && (Y.ShadyCSS === void 0 || Y.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, vt = /* @__PURE__ */ Symbol(), wt = /* @__PURE__ */ new WeakMap();
8
2
  let Ut = class {
9
- constructor(t, e, r) {
10
- if (this._$cssResult$ = !0, r !== vt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
3
+ constructor(t, e, i) {
4
+ if (this._$cssResult$ = !0, i !== vt) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
11
5
  this.cssText = t, this.t = e;
12
6
  }
13
7
  get styleSheet() {
14
8
  let t = this.o;
15
9
  const e = this.t;
16
10
  if (ut && t === void 0) {
17
- const r = e !== void 0 && e.length === 1;
18
- r && (t = wt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && wt.set(e, t));
11
+ const i = e !== void 0 && e.length === 1;
12
+ i && (t = wt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && wt.set(e, t));
19
13
  }
20
14
  return t;
21
15
  }
@@ -24,32 +18,27 @@ let Ut = class {
24
18
  }
25
19
  };
26
20
  const ee = (s) => new Ut(typeof s == "string" ? s : s + "", void 0, vt), $ = (s, ...t) => {
27
- const e = s.length === 1 ? s[0] : t.reduce(((r, i, o) => r + ((a) => {
21
+ const e = s.length === 1 ? s[0] : t.reduce(((i, r, o) => i + ((a) => {
28
22
  if (a._$cssResult$ === !0) return a.cssText;
29
23
  if (typeof a == "number") return a;
30
24
  throw Error("Value passed to 'css' function must be a 'css' function result: " + a + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
31
- })(i) + s[o + 1]), s[0]);
25
+ })(r) + s[o + 1]), s[0]);
32
26
  return new Ut(e, s, vt);
33
- }, re = (s, t) => {
27
+ }, ie = (s, t) => {
34
28
  if (ut) s.adoptedStyleSheets = t.map(((e) => e instanceof CSSStyleSheet ? e : e.styleSheet));
35
29
  else for (const e of t) {
36
- const r = document.createElement("style"), i = Y.litNonce;
37
- i !== void 0 && r.setAttribute("nonce", i), r.textContent = e.cssText, s.appendChild(r);
30
+ const i = document.createElement("style"), r = Y.litNonce;
31
+ r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, s.appendChild(i);
38
32
  }
39
33
  }, Ct = ut ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
40
34
  let e = "";
41
- for (const r of t.cssRules) e += r.cssText;
35
+ for (const i of t.cssRules) e += i.cssText;
42
36
  return ee(e);
43
37
  })(s) : s;
44
- /**
45
- * @license
46
- * Copyright 2017 Google LLC
47
- * SPDX-License-Identifier: BSD-3-Clause
48
- */
49
- const { is: ie, defineProperty: se, getOwnPropertyDescriptor: oe, getOwnPropertyNames: ae, getOwnPropertySymbols: ne, getPrototypeOf: ce } = Object, J = globalThis, Et = J.trustedTypes, le = Et ? Et.emptyScript : "", de = J.reactiveElementPolyfillSupport, U = (s, t) => s, Z = { toAttribute(s, t) {
38
+ const { is: re, defineProperty: se, getOwnPropertyDescriptor: oe, getOwnPropertyNames: ae, getOwnPropertySymbols: ne, getPrototypeOf: le } = Object, J = globalThis, Et = J.trustedTypes, ce = Et ? Et.emptyScript : "", de = J.reactiveElementPolyfillSupport, U = (s, t) => s, Z = { toAttribute(s, t) {
50
39
  switch (t) {
51
40
  case Boolean:
52
- s = s ? le : null;
41
+ s = s ? ce : null;
53
42
  break;
54
43
  case Object:
55
44
  case Array:
@@ -74,8 +63,8 @@ const { is: ie, defineProperty: se, getOwnPropertyDescriptor: oe, getOwnProperty
74
63
  }
75
64
  }
76
65
  return e;
77
- } }, mt = (s, t) => !ie(s, t), St = { attribute: !0, type: String, converter: Z, reflect: !1, useDefault: !1, hasChanged: mt };
78
- Symbol.metadata ??= Symbol("metadata"), J.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
66
+ } }, mt = (s, t) => !re(s, t), St = { attribute: !0, type: String, converter: Z, reflect: !1, useDefault: !1, hasChanged: mt };
67
+ Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), J.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
79
68
  let k = class extends HTMLElement {
80
69
  static addInitializer(t) {
81
70
  this._$Ei(), (this.l ??= []).push(t);
@@ -85,19 +74,19 @@ let k = class extends HTMLElement {
85
74
  }
86
75
  static createProperty(t, e = St) {
87
76
  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) {
88
- const r = Symbol(), i = this.getPropertyDescriptor(t, r, e);
89
- i !== void 0 && se(this.prototype, t, i);
77
+ const i = /* @__PURE__ */ Symbol(), r = this.getPropertyDescriptor(t, i, e);
78
+ r !== void 0 && se(this.prototype, t, r);
90
79
  }
91
80
  }
92
- static getPropertyDescriptor(t, e, r) {
93
- const { get: i, set: o } = oe(this.prototype, t) ?? { get() {
81
+ static getPropertyDescriptor(t, e, i) {
82
+ const { get: r, set: o } = oe(this.prototype, t) ?? { get() {
94
83
  return this[e];
95
84
  }, set(a) {
96
85
  this[e] = a;
97
86
  } };
98
- return { get: i, set(a) {
99
- const c = i?.call(this);
100
- o?.call(this, a), this.requestUpdate(t, c, r);
87
+ return { get: r, set(a) {
88
+ const l = r?.call(this);
89
+ o?.call(this, a), this.requestUpdate(t, l, i);
101
90
  }, configurable: !0, enumerable: !0 };
102
91
  }
103
92
  static getPropertyOptions(t) {
@@ -105,38 +94,38 @@ let k = class extends HTMLElement {
105
94
  }
106
95
  static _$Ei() {
107
96
  if (this.hasOwnProperty(U("elementProperties"))) return;
108
- const t = ce(this);
97
+ const t = le(this);
109
98
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
110
99
  }
111
100
  static finalize() {
112
101
  if (this.hasOwnProperty(U("finalized"))) return;
113
102
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(U("properties"))) {
114
- const e = this.properties, r = [...ae(e), ...ne(e)];
115
- for (const i of r) this.createProperty(i, e[i]);
103
+ const e = this.properties, i = [...ae(e), ...ne(e)];
104
+ for (const r of i) this.createProperty(r, e[r]);
116
105
  }
117
106
  const t = this[Symbol.metadata];
118
107
  if (t !== null) {
119
108
  const e = litPropertyMetadata.get(t);
120
- if (e !== void 0) for (const [r, i] of e) this.elementProperties.set(r, i);
109
+ if (e !== void 0) for (const [i, r] of e) this.elementProperties.set(i, r);
121
110
  }
122
111
  this._$Eh = /* @__PURE__ */ new Map();
123
- for (const [e, r] of this.elementProperties) {
124
- const i = this._$Eu(e, r);
125
- i !== void 0 && this._$Eh.set(i, e);
112
+ for (const [e, i] of this.elementProperties) {
113
+ const r = this._$Eu(e, i);
114
+ r !== void 0 && this._$Eh.set(r, e);
126
115
  }
127
116
  this.elementStyles = this.finalizeStyles(this.styles);
128
117
  }
129
118
  static finalizeStyles(t) {
130
119
  const e = [];
131
120
  if (Array.isArray(t)) {
132
- const r = new Set(t.flat(1 / 0).reverse());
133
- for (const i of r) e.unshift(Ct(i));
121
+ const i = new Set(t.flat(1 / 0).reverse());
122
+ for (const r of i) e.unshift(Ct(r));
134
123
  } else t !== void 0 && e.push(Ct(t));
135
124
  return e;
136
125
  }
137
126
  static _$Eu(t, e) {
138
- const r = e.attribute;
139
- return r === !1 ? void 0 : typeof r == "string" ? r : typeof t == "string" ? t.toLowerCase() : void 0;
127
+ const i = e.attribute;
128
+ return i === !1 ? void 0 : typeof i == "string" ? i : typeof t == "string" ? t.toLowerCase() : void 0;
140
129
  }
141
130
  constructor() {
142
131
  super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
@@ -152,12 +141,12 @@ let k = class extends HTMLElement {
152
141
  }
153
142
  _$E_() {
154
143
  const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
155
- for (const r of e.keys()) this.hasOwnProperty(r) && (t.set(r, this[r]), delete this[r]);
144
+ for (const i of e.keys()) this.hasOwnProperty(i) && (t.set(i, this[i]), delete this[i]);
156
145
  t.size > 0 && (this._$Ep = t);
157
146
  }
158
147
  createRenderRoot() {
159
148
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
160
- return re(t, this.constructor.elementStyles), t;
149
+ return ie(t, this.constructor.elementStyles), t;
161
150
  }
162
151
  connectedCallback() {
163
152
  this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(((t) => t.hostConnected?.()));
@@ -167,35 +156,35 @@ let k = class extends HTMLElement {
167
156
  disconnectedCallback() {
168
157
  this._$EO?.forEach(((t) => t.hostDisconnected?.()));
169
158
  }
170
- attributeChangedCallback(t, e, r) {
171
- this._$AK(t, r);
159
+ attributeChangedCallback(t, e, i) {
160
+ this._$AK(t, i);
172
161
  }
173
162
  _$ET(t, e) {
174
- const r = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, r);
175
- if (i !== void 0 && r.reflect === !0) {
176
- const o = (r.converter?.toAttribute !== void 0 ? r.converter : Z).toAttribute(e, r.type);
177
- this._$Em = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$Em = null;
163
+ const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
164
+ if (r !== void 0 && i.reflect === !0) {
165
+ const o = (i.converter?.toAttribute !== void 0 ? i.converter : Z).toAttribute(e, i.type);
166
+ this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
178
167
  }
179
168
  }
180
169
  _$AK(t, e) {
181
- const r = this.constructor, i = r._$Eh.get(t);
182
- if (i !== void 0 && this._$Em !== i) {
183
- const o = r.getPropertyOptions(i), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : o.converter?.fromAttribute !== void 0 ? o.converter : Z;
184
- this._$Em = i;
185
- const c = a.fromAttribute(e, o.type);
186
- this[i] = c ?? this._$Ej?.get(i) ?? c, this._$Em = null;
170
+ const i = this.constructor, r = i._$Eh.get(t);
171
+ if (r !== void 0 && this._$Em !== r) {
172
+ const o = i.getPropertyOptions(r), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : o.converter?.fromAttribute !== void 0 ? o.converter : Z;
173
+ this._$Em = r;
174
+ const l = a.fromAttribute(e, o.type);
175
+ this[r] = l ?? this._$Ej?.get(r) ?? l, this._$Em = null;
187
176
  }
188
177
  }
189
- requestUpdate(t, e, r) {
178
+ requestUpdate(t, e, i) {
190
179
  if (t !== void 0) {
191
- const i = this.constructor, o = this[t];
192
- if (r ??= i.getPropertyOptions(t), !((r.hasChanged ?? mt)(o, e) || r.useDefault && r.reflect && o === this._$Ej?.get(t) && !this.hasAttribute(i._$Eu(t, r)))) return;
193
- this.C(t, e, r);
180
+ const r = this.constructor, o = this[t];
181
+ if (i ??= r.getPropertyOptions(t), !((i.hasChanged ?? mt)(o, e) || i.useDefault && i.reflect && o === this._$Ej?.get(t) && !this.hasAttribute(r._$Eu(t, i)))) return;
182
+ this.C(t, e, i);
194
183
  }
195
184
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
196
185
  }
197
- C(t, e, { useDefault: r, reflect: i, wrapped: o }, a) {
198
- r && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t) && (this._$Ej.set(t, a ?? e ?? this[t]), o !== !0 || a !== void 0) || (this._$AL.has(t) || (this.hasUpdated || r || (e = void 0), this._$AL.set(t, e)), i === !0 && this._$Em !== t && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t));
186
+ C(t, e, { useDefault: i, reflect: r, wrapped: o }, a) {
187
+ i && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t) && (this._$Ej.set(t, a ?? e ?? this[t]), o !== !0 || a !== void 0) || (this._$AL.has(t) || (this.hasUpdated || i || (e = void 0), this._$AL.set(t, e)), r === !0 && this._$Em !== t && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t));
199
188
  }
200
189
  async _$EP() {
201
190
  this.isUpdatePending = !0;
@@ -214,21 +203,21 @@ let k = class extends HTMLElement {
214
203
  if (!this.isUpdatePending) return;
215
204
  if (!this.hasUpdated) {
216
205
  if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
217
- for (const [i, o] of this._$Ep) this[i] = o;
206
+ for (const [r, o] of this._$Ep) this[r] = o;
218
207
  this._$Ep = void 0;
219
208
  }
220
- const r = this.constructor.elementProperties;
221
- if (r.size > 0) for (const [i, o] of r) {
222
- const { wrapped: a } = o, c = this[i];
223
- a !== !0 || this._$AL.has(i) || c === void 0 || this.C(i, void 0, o, c);
209
+ const i = this.constructor.elementProperties;
210
+ if (i.size > 0) for (const [r, o] of i) {
211
+ const { wrapped: a } = o, l = this[r];
212
+ a !== !0 || this._$AL.has(r) || l === void 0 || this.C(r, void 0, o, l);
224
213
  }
225
214
  }
226
215
  let t = !1;
227
216
  const e = this._$AL;
228
217
  try {
229
- t = this.shouldUpdate(e), t ? (this.willUpdate(e), this._$EO?.forEach(((r) => r.hostUpdate?.())), this.update(e)) : this._$EM();
230
- } catch (r) {
231
- throw t = !1, this._$EM(), r;
218
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), this._$EO?.forEach(((i) => i.hostUpdate?.())), this.update(e)) : this._$EM();
219
+ } catch (i) {
220
+ throw t = !1, this._$EM(), i;
232
221
  }
233
222
  t && this._$AE(e);
234
223
  }
@@ -258,72 +247,67 @@ let k = class extends HTMLElement {
258
247
  }
259
248
  };
260
249
  k.elementStyles = [], k.shadowRootOptions = { mode: "open" }, k[U("elementProperties")] = /* @__PURE__ */ new Map(), k[U("finalized")] = /* @__PURE__ */ new Map(), de?.({ ReactiveElement: k }), (J.reactiveElementVersions ??= []).push("2.1.1");
261
- /**
262
- * @license
263
- * Copyright 2017 Google LLC
264
- * SPDX-License-Identifier: BSD-3-Clause
265
- */
266
- const bt = globalThis, X = bt.trustedTypes, Tt = X ? X.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Ht = "$lit$", w = `lit$${Math.random().toFixed(9).slice(2)}$`, Lt = "?" + w, he = `<${Lt}>`, R = document, H = () => R.createComment(""), L = (s) => s === null || typeof s != "object" && typeof s != "function", yt = Array.isArray, pe = (s) => yt(s) || typeof s?.[Symbol.iterator] == "function", it = `[
267
- \f\r]`, z = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, It = /-->/g, Pt = />/g, T = RegExp(`>|${it}(?:([^\\s"'>=/]+)(${it}*=${it}*(?:[^
268
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Rt = /'/g, kt = /"/g, Bt = /^(?:script|style|textarea|title)$/i, fe = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), A = fe(1), C = Symbol.for("lit-noChange"), v = Symbol.for("lit-nothing"), Ot = /* @__PURE__ */ new WeakMap(), P = R.createTreeWalker(R, 129);
250
+ const bt = globalThis, X = bt.trustedTypes, Tt = X ? X.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Ht = "$lit$", w = `lit$${Math.random().toFixed(9).slice(2)}$`, Lt = "?" + w, he = `<${Lt}>`, R = document, H = () => R.createComment(""), L = (s) => s === null || typeof s != "object" && typeof s != "function", yt = Array.isArray, pe = (s) => yt(s) || typeof s?.[Symbol.iterator] == "function", rt = `[
251
+ \f\r]`, z = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, It = /-->/g, Pt = />/g, T = RegExp(`>|${rt}(?:([^\\s"'>=/]+)(${rt}*=${rt}*(?:[^
252
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Rt = /'/g, kt = /"/g, Bt = /^(?:script|style|textarea|title)$/i, fe = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), A = fe(1), C = /* @__PURE__ */ Symbol.for("lit-noChange"), v = /* @__PURE__ */ Symbol.for("lit-nothing"), Ot = /* @__PURE__ */ new WeakMap(), P = R.createTreeWalker(R, 129);
269
253
  function Ft(s, t) {
270
254
  if (!yt(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
271
255
  return Tt !== void 0 ? Tt.createHTML(t) : t;
272
256
  }
273
257
  const ue = (s, t) => {
274
- const e = s.length - 1, r = [];
275
- let i, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", a = z;
276
- for (let c = 0; c < e; c++) {
277
- const n = s[c];
278
- let d, p, l = -1, f = 0;
279
- for (; f < n.length && (a.lastIndex = f, p = a.exec(n), p !== null); ) f = a.lastIndex, a === z ? p[1] === "!--" ? a = It : p[1] !== void 0 ? a = Pt : p[2] !== void 0 ? (Bt.test(p[2]) && (i = RegExp("</" + p[2], "g")), a = T) : p[3] !== void 0 && (a = T) : a === T ? p[0] === ">" ? (a = i ?? z, l = -1) : p[1] === void 0 ? l = -2 : (l = a.lastIndex - p[2].length, d = p[1], a = p[3] === void 0 ? T : p[3] === '"' ? kt : Rt) : a === kt || a === Rt ? a = T : a === It || a === Pt ? a = z : (a = T, i = void 0);
280
- const u = a === T && s[c + 1].startsWith("/>") ? " " : "";
281
- o += a === z ? n + he : l >= 0 ? (r.push(d), n.slice(0, l) + Ht + n.slice(l) + w + u) : n + w + (l === -2 ? c : u);
282
- }
283
- return [Ft(s, o + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), r];
258
+ const e = s.length - 1, i = [];
259
+ let r, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", a = z;
260
+ for (let l = 0; l < e; l++) {
261
+ const n = s[l];
262
+ let d, p, c = -1, f = 0;
263
+ for (; f < n.length && (a.lastIndex = f, p = a.exec(n), p !== null); ) f = a.lastIndex, a === z ? p[1] === "!--" ? a = It : p[1] !== void 0 ? a = Pt : p[2] !== void 0 ? (Bt.test(p[2]) && (r = RegExp("</" + p[2], "g")), a = T) : p[3] !== void 0 && (a = T) : a === T ? p[0] === ">" ? (a = r ?? z, c = -1) : p[1] === void 0 ? c = -2 : (c = a.lastIndex - p[2].length, d = p[1], a = p[3] === void 0 ? T : p[3] === '"' ? kt : Rt) : a === kt || a === Rt ? a = T : a === It || a === Pt ? a = z : (a = T, r = void 0);
264
+ const u = a === T && s[l + 1].startsWith("/>") ? " " : "";
265
+ o += a === z ? n + he : c >= 0 ? (i.push(d), n.slice(0, c) + Ht + n.slice(c) + w + u) : n + w + (c === -2 ? l : u);
266
+ }
267
+ return [Ft(s, o + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
284
268
  };
285
269
  class B {
286
- constructor({ strings: t, _$litType$: e }, r) {
287
- let i;
270
+ constructor({ strings: t, _$litType$: e }, i) {
271
+ let r;
288
272
  this.parts = [];
289
273
  let o = 0, a = 0;
290
- const c = t.length - 1, n = this.parts, [d, p] = ue(t, e);
291
- if (this.el = B.createElement(d, r), P.currentNode = this.el.content, e === 2 || e === 3) {
292
- const l = this.el.content.firstChild;
293
- l.replaceWith(...l.childNodes);
274
+ const l = t.length - 1, n = this.parts, [d, p] = ue(t, e);
275
+ if (this.el = B.createElement(d, i), P.currentNode = this.el.content, e === 2 || e === 3) {
276
+ const c = this.el.content.firstChild;
277
+ c.replaceWith(...c.childNodes);
294
278
  }
295
- for (; (i = P.nextNode()) !== null && n.length < c; ) {
296
- if (i.nodeType === 1) {
297
- if (i.hasAttributes()) for (const l of i.getAttributeNames()) if (l.endsWith(Ht)) {
298
- const f = p[a++], u = i.getAttribute(l).split(w), b = /([.?@])?(.*)/.exec(f);
299
- n.push({ type: 1, index: o, name: b[2], strings: u, ctor: b[1] === "." ? me : b[1] === "?" ? be : b[1] === "@" ? ye : Q }), i.removeAttribute(l);
300
- } else l.startsWith(w) && (n.push({ type: 6, index: o }), i.removeAttribute(l));
301
- if (Bt.test(i.tagName)) {
302
- const l = i.textContent.split(w), f = l.length - 1;
279
+ for (; (r = P.nextNode()) !== null && n.length < l; ) {
280
+ if (r.nodeType === 1) {
281
+ if (r.hasAttributes()) for (const c of r.getAttributeNames()) if (c.endsWith(Ht)) {
282
+ const f = p[a++], u = r.getAttribute(c).split(w), b = /([.?@])?(.*)/.exec(f);
283
+ n.push({ type: 1, index: o, name: b[2], strings: u, ctor: b[1] === "." ? me : b[1] === "?" ? be : b[1] === "@" ? ye : Q }), r.removeAttribute(c);
284
+ } else c.startsWith(w) && (n.push({ type: 6, index: o }), r.removeAttribute(c));
285
+ if (Bt.test(r.tagName)) {
286
+ const c = r.textContent.split(w), f = c.length - 1;
303
287
  if (f > 0) {
304
- i.textContent = X ? X.emptyScript : "";
305
- for (let u = 0; u < f; u++) i.append(l[u], H()), P.nextNode(), n.push({ type: 2, index: ++o });
306
- i.append(l[f], H());
288
+ r.textContent = X ? X.emptyScript : "";
289
+ for (let u = 0; u < f; u++) r.append(c[u], H()), P.nextNode(), n.push({ type: 2, index: ++o });
290
+ r.append(c[f], H());
307
291
  }
308
292
  }
309
- } else if (i.nodeType === 8) if (i.data === Lt) n.push({ type: 2, index: o });
293
+ } else if (r.nodeType === 8) if (r.data === Lt) n.push({ type: 2, index: o });
310
294
  else {
311
- let l = -1;
312
- for (; (l = i.data.indexOf(w, l + 1)) !== -1; ) n.push({ type: 7, index: o }), l += w.length - 1;
295
+ let c = -1;
296
+ for (; (c = r.data.indexOf(w, c + 1)) !== -1; ) n.push({ type: 7, index: o }), c += w.length - 1;
313
297
  }
314
298
  o++;
315
299
  }
316
300
  }
317
301
  static createElement(t, e) {
318
- const r = R.createElement("template");
319
- return r.innerHTML = t, r;
302
+ const i = R.createElement("template");
303
+ return i.innerHTML = t, i;
320
304
  }
321
305
  }
322
- function O(s, t, e = s, r) {
306
+ function O(s, t, e = s, i) {
323
307
  if (t === C) return t;
324
- let i = r !== void 0 ? e._$Co?.[r] : e._$Cl;
308
+ let r = i !== void 0 ? e._$Co?.[i] : e._$Cl;
325
309
  const o = L(t) ? void 0 : t._$litDirective$;
326
- return i?.constructor !== o && (i?._$AO?.(!1), o === void 0 ? i = void 0 : (i = new o(s), i._$AT(s, e, r)), r !== void 0 ? (e._$Co ??= [])[r] = i : e._$Cl = i), i !== void 0 && (t = O(s, i._$AS(s, t.values), i, r)), t;
310
+ return r?.constructor !== o && (r?._$AO?.(!1), o === void 0 ? r = void 0 : (r = new o(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ??= [])[i] = r : e._$Cl = r), r !== void 0 && (t = O(s, r._$AS(s, t.values), r, i)), t;
327
311
  }
328
312
  let ve = class {
329
313
  constructor(t, e) {
@@ -336,29 +320,29 @@ let ve = class {
336
320
  return this._$AM._$AU;
337
321
  }
338
322
  u(t) {
339
- const { el: { content: e }, parts: r } = this._$AD, i = (t?.creationScope ?? R).importNode(e, !0);
340
- P.currentNode = i;
341
- let o = P.nextNode(), a = 0, c = 0, n = r[0];
323
+ const { el: { content: e }, parts: i } = this._$AD, r = (t?.creationScope ?? R).importNode(e, !0);
324
+ P.currentNode = r;
325
+ let o = P.nextNode(), a = 0, l = 0, n = i[0];
342
326
  for (; n !== void 0; ) {
343
327
  if (a === n.index) {
344
328
  let d;
345
- n.type === 2 ? d = new M(o, o.nextSibling, this, t) : n.type === 1 ? d = new n.ctor(o, n.name, n.strings, this, t) : n.type === 6 && (d = new ge(o, this, t)), this._$AV.push(d), n = r[++c];
329
+ n.type === 2 ? d = new M(o, o.nextSibling, this, t) : n.type === 1 ? d = new n.ctor(o, n.name, n.strings, this, t) : n.type === 6 && (d = new ge(o, this, t)), this._$AV.push(d), n = i[++l];
346
330
  }
347
331
  a !== n?.index && (o = P.nextNode(), a++);
348
332
  }
349
- return P.currentNode = R, i;
333
+ return P.currentNode = R, r;
350
334
  }
351
335
  p(t) {
352
336
  let e = 0;
353
- 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++;
337
+ 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++;
354
338
  }
355
339
  };
356
340
  class M {
357
341
  get _$AU() {
358
342
  return this._$AM?._$AU ?? this._$Cv;
359
343
  }
360
- constructor(t, e, r, i) {
361
- this.type = 2, this._$AH = v, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = r, this.options = i, this._$Cv = i?.isConnected ?? !0;
344
+ constructor(t, e, i, r) {
345
+ this.type = 2, this._$AH = v, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = r, this._$Cv = r?.isConnected ?? !0;
362
346
  }
363
347
  get parentNode() {
364
348
  let t = this._$AA.parentNode;
@@ -384,10 +368,10 @@ class M {
384
368
  this._$AH !== v && L(this._$AH) ? this._$AA.nextSibling.data = t : this.T(R.createTextNode(t)), this._$AH = t;
385
369
  }
386
370
  $(t) {
387
- const { values: e, _$litType$: r } = t, i = typeof r == "number" ? this._$AC(t) : (r.el === void 0 && (r.el = B.createElement(Ft(r.h, r.h[0]), this.options)), r);
388
- if (this._$AH?._$AD === i) this._$AH.p(e);
371
+ const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = B.createElement(Ft(i.h, i.h[0]), this.options)), i);
372
+ if (this._$AH?._$AD === r) this._$AH.p(e);
389
373
  else {
390
- const o = new ve(i, this), a = o.u(this.options);
374
+ const o = new ve(r, this), a = o.u(this.options);
391
375
  o.p(e), this.T(a), this._$AH = o;
392
376
  }
393
377
  }
@@ -398,14 +382,14 @@ class M {
398
382
  k(t) {
399
383
  yt(this._$AH) || (this._$AH = [], this._$AR());
400
384
  const e = this._$AH;
401
- let r, i = 0;
402
- for (const o of t) i === e.length ? e.push(r = new M(this.O(H()), this.O(H()), this, this.options)) : r = e[i], r._$AI(o), i++;
403
- i < e.length && (this._$AR(r && r._$AB.nextSibling, i), e.length = i);
385
+ let i, r = 0;
386
+ for (const o of t) r === e.length ? e.push(i = new M(this.O(H()), this.O(H()), this, this.options)) : i = e[r], i._$AI(o), r++;
387
+ r < e.length && (this._$AR(i && i._$AB.nextSibling, r), e.length = r);
404
388
  }
405
389
  _$AR(t = this._$AA.nextSibling, e) {
406
390
  for (this._$AP?.(!1, !0, e); t !== this._$AB; ) {
407
- const r = t.nextSibling;
408
- t.remove(), t = r;
391
+ const i = t.nextSibling;
392
+ t.remove(), t = i;
409
393
  }
410
394
  }
411
395
  setConnected(t) {
@@ -419,19 +403,19 @@ class Q {
419
403
  get _$AU() {
420
404
  return this._$AM._$AU;
421
405
  }
422
- constructor(t, e, r, i, o) {
423
- this.type = 1, this._$AH = v, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = o, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$AH = Array(r.length - 1).fill(new String()), this.strings = r) : this._$AH = v;
406
+ constructor(t, e, i, r, o) {
407
+ this.type = 1, this._$AH = v, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = o, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = v;
424
408
  }
425
- _$AI(t, e = this, r, i) {
409
+ _$AI(t, e = this, i, r) {
426
410
  const o = this.strings;
427
411
  let a = !1;
428
412
  if (o === void 0) t = O(this, t, e, 0), a = !L(t) || t !== this._$AH && t !== C, a && (this._$AH = t);
429
413
  else {
430
- const c = t;
414
+ const l = t;
431
415
  let n, d;
432
- for (t = o[0], n = 0; n < o.length - 1; n++) d = O(this, c[r + n], e, n), d === C && (d = this._$AH[n]), a ||= !L(d) || d !== this._$AH[n], d === v ? t = v : t !== v && (t += (d ?? "") + o[n + 1]), this._$AH[n] = d;
416
+ for (t = o[0], n = 0; n < o.length - 1; n++) d = O(this, l[i + n], e, n), d === C && (d = this._$AH[n]), a ||= !L(d) || d !== this._$AH[n], d === v ? t = v : t !== v && (t += (d ?? "") + o[n + 1]), this._$AH[n] = d;
433
417
  }
434
- a && !i && this.j(t);
418
+ a && !r && this.j(t);
435
419
  }
436
420
  j(t) {
437
421
  t === v ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
@@ -454,21 +438,21 @@ class be extends Q {
454
438
  }
455
439
  }
456
440
  class ye extends Q {
457
- constructor(t, e, r, i, o) {
458
- super(t, e, r, i, o), this.type = 5;
441
+ constructor(t, e, i, r, o) {
442
+ super(t, e, i, r, o), this.type = 5;
459
443
  }
460
444
  _$AI(t, e = this) {
461
445
  if ((t = O(this, t, e, 0) ?? v) === C) return;
462
- const r = this._$AH, i = t === v && r !== v || t.capture !== r.capture || t.once !== r.once || t.passive !== r.passive, o = t !== v && (r === v || i);
463
- i && this.element.removeEventListener(this.name, this, r), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
446
+ const i = this._$AH, r = t === v && i !== v || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== v && (i === v || r);
447
+ r && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
464
448
  }
465
449
  handleEvent(t) {
466
450
  typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, t) : this._$AH.handleEvent(t);
467
451
  }
468
452
  }
469
453
  class ge {
470
- constructor(t, e, r) {
471
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = r;
454
+ constructor(t, e, i) {
455
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
472
456
  }
473
457
  get _$AU() {
474
458
  return this._$AM._$AU;
@@ -480,19 +464,14 @@ class ge {
480
464
  const _e = { I: M }, $e = bt.litHtmlPolyfillSupport;
481
465
  $e?.(B, M), (bt.litHtmlVersions ??= []).push("3.3.1");
482
466
  const xe = (s, t, e) => {
483
- const r = e?.renderBefore ?? t;
484
- let i = r._$litPart$;
485
- if (i === void 0) {
467
+ const i = e?.renderBefore ?? t;
468
+ let r = i._$litPart$;
469
+ if (r === void 0) {
486
470
  const o = e?.renderBefore ?? null;
487
- r._$litPart$ = i = new M(t.insertBefore(H(), o), o, void 0, e ?? {});
471
+ i._$litPart$ = r = new M(t.insertBefore(H(), o), o, void 0, e ?? {});
488
472
  }
489
- return i._$AI(s), i;
473
+ return r._$AI(s), r;
490
474
  };
491
- /**
492
- * @license
493
- * Copyright 2017 Google LLC
494
- * SPDX-License-Identifier: BSD-3-Clause
495
- */
496
475
  const gt = globalThis;
497
476
  let g = class extends k {
498
477
  constructor() {
@@ -520,107 +499,67 @@ g._$litElement$ = !0, g.finalized = !0, gt.litElementHydrateSupport?.({ LitEleme
520
499
  const Ae = gt.litElementPolyfillSupport;
521
500
  Ae?.({ LitElement: g });
522
501
  (gt.litElementVersions ??= []).push("4.2.1");
523
- /**
524
- * @license
525
- * Copyright 2017 Google LLC
526
- * SPDX-License-Identifier: BSD-3-Clause
527
- */
528
502
  const S = (s) => (t, e) => {
529
503
  e !== void 0 ? e.addInitializer((() => {
530
504
  customElements.define(s, t);
531
505
  })) : customElements.define(s, t);
532
506
  };
533
- /**
534
- * @license
535
- * Copyright 2017 Google LLC
536
- * SPDX-License-Identifier: BSD-3-Clause
537
- */
538
507
  const we = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: mt }, Ce = (s = we, t, e) => {
539
- const { kind: r, metadata: i } = e;
540
- let o = globalThis.litPropertyMetadata.get(i);
541
- if (o === void 0 && globalThis.litPropertyMetadata.set(i, o = /* @__PURE__ */ new Map()), r === "setter" && ((s = Object.create(s)).wrapped = !0), o.set(e.name, s), r === "accessor") {
508
+ const { kind: i, metadata: r } = e;
509
+ let o = globalThis.litPropertyMetadata.get(r);
510
+ if (o === void 0 && globalThis.litPropertyMetadata.set(r, o = /* @__PURE__ */ new Map()), i === "setter" && ((s = Object.create(s)).wrapped = !0), o.set(e.name, s), i === "accessor") {
542
511
  const { name: a } = e;
543
- return { set(c) {
512
+ return { set(l) {
544
513
  const n = t.get.call(this);
545
- t.set.call(this, c), this.requestUpdate(a, n, s);
546
- }, init(c) {
547
- return c !== void 0 && this.C(a, void 0, s, c), c;
514
+ t.set.call(this, l), this.requestUpdate(a, n, s);
515
+ }, init(l) {
516
+ return l !== void 0 && this.C(a, void 0, s, l), l;
548
517
  } };
549
518
  }
550
- if (r === "setter") {
519
+ if (i === "setter") {
551
520
  const { name: a } = e;
552
- return function(c) {
521
+ return function(l) {
553
522
  const n = this[a];
554
- t.call(this, c), this.requestUpdate(a, n, s);
523
+ t.call(this, l), this.requestUpdate(a, n, s);
555
524
  };
556
525
  }
557
- throw Error("Unsupported decorator location: " + r);
526
+ throw Error("Unsupported decorator location: " + i);
558
527
  };
559
528
  function m(s) {
560
- return (t, e) => typeof e == "object" ? Ce(s, t, e) : ((r, i, o) => {
561
- const a = i.hasOwnProperty(o);
562
- return i.constructor.createProperty(o, r), a ? Object.getOwnPropertyDescriptor(i, o) : void 0;
529
+ return (t, e) => typeof e == "object" ? Ce(s, t, e) : ((i, r, o) => {
530
+ const a = r.hasOwnProperty(o);
531
+ return r.constructor.createProperty(o, i), a ? Object.getOwnPropertyDescriptor(r, o) : void 0;
563
532
  })(s, t, e);
564
533
  }
565
- /**
566
- * @license
567
- * Copyright 2017 Google LLC
568
- * SPDX-License-Identifier: BSD-3-Clause
569
- */
570
534
  function F(s) {
571
535
  return m({ ...s, state: !0, attribute: !1 });
572
536
  }
573
- /**
574
- * @license
575
- * Copyright 2017 Google LLC
576
- * SPDX-License-Identifier: BSD-3-Clause
577
- */
578
537
  const _t = (s, t, e) => (e.configurable = !0, e.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(s, t, e), e);
579
- /**
580
- * @license
581
- * Copyright 2017 Google LLC
582
- * SPDX-License-Identifier: BSD-3-Clause
583
- */
584
538
  function tt(s, t) {
585
- return (e, r, i) => {
539
+ return (e, i, r) => {
586
540
  const o = (a) => a.renderRoot?.querySelector(s) ?? null;
587
- return _t(e, r, { get() {
541
+ return _t(e, i, { get() {
588
542
  return o(this);
589
543
  } });
590
544
  };
591
545
  }
592
- /**
593
- * @license
594
- * Copyright 2021 Google LLC
595
- * SPDX-License-Identifier: BSD-3-Clause
596
- */
597
546
  function jt(s) {
598
547
  return (t, e) => {
599
- const { slot: r, selector: i } = s ?? {}, o = "slot" + (r ? `[name=${r}]` : ":not([name])");
548
+ const { slot: i, selector: r } = s ?? {}, o = "slot" + (i ? `[name=${i}]` : ":not([name])");
600
549
  return _t(t, e, { get() {
601
- const a = this.renderRoot?.querySelector(o), c = a?.assignedElements(s) ?? [];
602
- return i === void 0 ? c : c.filter(((n) => n.matches(i)));
550
+ const a = this.renderRoot?.querySelector(o), l = a?.assignedElements(s) ?? [];
551
+ return r === void 0 ? l : l.filter(((n) => n.matches(r)));
603
552
  } });
604
553
  };
605
554
  }
606
- /**
607
- * @license
608
- * Copyright 2017 Google LLC
609
- * SPDX-License-Identifier: BSD-3-Clause
610
- */
611
555
  function Ee(s) {
612
556
  return (t, e) => {
613
- const { slot: r } = s ?? {}, i = "slot" + (r ? `[name=${r}]` : ":not([name])");
557
+ const { slot: i } = s ?? {}, r = "slot" + (i ? `[name=${i}]` : ":not([name])");
614
558
  return _t(t, e, { get() {
615
- return this.renderRoot?.querySelector(i)?.assignedNodes(s) ?? [];
559
+ return this.renderRoot?.querySelector(r)?.assignedNodes(s) ?? [];
616
560
  } });
617
561
  };
618
562
  }
619
- /**
620
- * @license
621
- * Copyright 2017 Google LLC
622
- * SPDX-License-Identifier: BSD-3-Clause
623
- */
624
563
  const Wt = { ATTRIBUTE: 1, CHILD: 2 }, Vt = (s) => (...t) => ({ _$litDirective$: s, values: t });
625
564
  class Gt {
626
565
  constructor(t) {
@@ -628,8 +567,8 @@ class Gt {
628
567
  get _$AU() {
629
568
  return this._$AM._$AU;
630
569
  }
631
- _$AT(t, e, r) {
632
- this._$Ct = t, this._$AM = e, this._$Ci = r;
570
+ _$AT(t, e, i) {
571
+ this._$Ct = t, this._$AM = e, this._$Ci = i;
633
572
  }
634
573
  _$AS(t, e) {
635
574
  return this.update(t, e);
@@ -638,27 +577,22 @@ class Gt {
638
577
  return this.render(...e);
639
578
  }
640
579
  }
641
- /**
642
- * @license
643
- * Copyright 2020 Google LLC
644
- * SPDX-License-Identifier: BSD-3-Clause
645
- */
646
580
  const { I: Se } = _e, Mt = () => document.createComment(""), D = (s, t, e) => {
647
- const r = s._$AA.parentNode, i = t === void 0 ? s._$AB : t._$AA;
581
+ const i = s._$AA.parentNode, r = t === void 0 ? s._$AB : t._$AA;
648
582
  if (e === void 0) {
649
- const o = r.insertBefore(Mt(), i), a = r.insertBefore(Mt(), i);
583
+ const o = i.insertBefore(Mt(), r), a = i.insertBefore(Mt(), r);
650
584
  e = new Se(o, a, s, s.options);
651
585
  } else {
652
- const o = e._$AB.nextSibling, a = e._$AM, c = a !== s;
653
- if (c) {
586
+ const o = e._$AB.nextSibling, a = e._$AM, l = a !== s;
587
+ if (l) {
654
588
  let n;
655
589
  e._$AQ?.(s), e._$AM = s, e._$AP !== void 0 && (n = s._$AU) !== a._$AU && e._$AP(n);
656
590
  }
657
- if (o !== i || c) {
591
+ if (o !== r || l) {
658
592
  let n = e._$AA;
659
593
  for (; n !== o; ) {
660
594
  const d = n.nextSibling;
661
- r.insertBefore(n, i), n = d;
595
+ i.insertBefore(n, r), n = d;
662
596
  }
663
597
  }
664
598
  }
@@ -666,72 +600,62 @@ const { I: Se } = _e, Mt = () => document.createComment(""), D = (s, t, e) => {
666
600
  }, I = (s, t, e = s) => (s._$AI(t, e), s), Te = {}, Ie = (s, t = Te) => s._$AH = t, Pe = (s) => s._$AH, st = (s) => {
667
601
  s._$AR(), s._$AA.remove();
668
602
  };
669
- /**
670
- * @license
671
- * Copyright 2017 Google LLC
672
- * SPDX-License-Identifier: BSD-3-Clause
673
- */
674
603
  const Nt = (s, t, e) => {
675
- const r = /* @__PURE__ */ new Map();
676
- for (let i = t; i <= e; i++) r.set(s[i], i);
677
- return r;
604
+ const i = /* @__PURE__ */ new Map();
605
+ for (let r = t; r <= e; r++) i.set(s[r], r);
606
+ return i;
678
607
  }, Re = Vt(class extends Gt {
679
608
  constructor(s) {
680
609
  if (super(s), s.type !== Wt.CHILD) throw Error("repeat() can only be used in text expressions");
681
610
  }
682
611
  dt(s, t, e) {
683
- let r;
684
- e === void 0 ? e = t : t !== void 0 && (r = t);
685
- const i = [], o = [];
612
+ let i;
613
+ e === void 0 ? e = t : t !== void 0 && (i = t);
614
+ const r = [], o = [];
686
615
  let a = 0;
687
- for (const c of s) i[a] = r ? r(c, a) : a, o[a] = e(c, a), a++;
688
- return { values: o, keys: i };
616
+ for (const l of s) r[a] = i ? i(l, a) : a, o[a] = e(l, a), a++;
617
+ return { values: o, keys: r };
689
618
  }
690
619
  render(s, t, e) {
691
620
  return this.dt(s, t, e).values;
692
621
  }
693
- update(s, [t, e, r]) {
694
- const i = Pe(s), { values: o, keys: a } = this.dt(t, e, r);
695
- if (!Array.isArray(i)) return this.ut = a, o;
696
- const c = this.ut ??= [], n = [];
697
- let d, p, l = 0, f = i.length - 1, u = 0, b = o.length - 1;
698
- for (; l <= f && u <= b; ) if (i[l] === null) l++;
699
- else if (i[f] === null) f--;
700
- else if (c[l] === a[u]) n[u] = I(i[l], o[u]), l++, u++;
701
- else if (c[f] === a[b]) n[b] = I(i[f], o[b]), f--, b--;
702
- else if (c[l] === a[b]) n[b] = I(i[l], o[b]), D(s, n[b + 1], i[l]), l++, b--;
703
- else if (c[f] === a[u]) n[u] = I(i[f], o[u]), D(s, i[l], i[f]), f--, u++;
704
- else if (d === void 0 && (d = Nt(a, u, b), p = Nt(c, l, f)), d.has(c[l])) if (d.has(c[f])) {
705
- const x = p.get(a[u]), rt = x !== void 0 ? i[x] : null;
706
- if (rt === null) {
707
- const At = D(s, i[l]);
622
+ update(s, [t, e, i]) {
623
+ const r = Pe(s), { values: o, keys: a } = this.dt(t, e, i);
624
+ if (!Array.isArray(r)) return this.ut = a, o;
625
+ const l = this.ut ??= [], n = [];
626
+ let d, p, c = 0, f = r.length - 1, u = 0, b = o.length - 1;
627
+ for (; c <= f && u <= b; ) if (r[c] === null) c++;
628
+ else if (r[f] === null) f--;
629
+ else if (l[c] === a[u]) n[u] = I(r[c], o[u]), c++, u++;
630
+ else if (l[f] === a[b]) n[b] = I(r[f], o[b]), f--, b--;
631
+ else if (l[c] === a[b]) n[b] = I(r[c], o[b]), D(s, n[b + 1], r[c]), c++, b--;
632
+ else if (l[f] === a[u]) n[u] = I(r[f], o[u]), D(s, r[c], r[f]), f--, u++;
633
+ else if (d === void 0 && (d = Nt(a, u, b), p = Nt(l, c, f)), d.has(l[c])) if (d.has(l[f])) {
634
+ const x = p.get(a[u]), it = x !== void 0 ? r[x] : null;
635
+ if (it === null) {
636
+ const At = D(s, r[c]);
708
637
  I(At, o[u]), n[u] = At;
709
- } else n[u] = I(rt, o[u]), D(s, i[l], rt), i[x] = null;
638
+ } else n[u] = I(it, o[u]), D(s, r[c], it), r[x] = null;
710
639
  u++;
711
- } else st(i[f]), f--;
712
- else st(i[l]), l++;
640
+ } else st(r[f]), f--;
641
+ else st(r[c]), c++;
713
642
  for (; u <= b; ) {
714
643
  const x = D(s, n[b + 1]);
715
644
  I(x, o[u]), n[u++] = x;
716
645
  }
717
- for (; l <= f; ) {
718
- const x = i[l++];
646
+ for (; c <= f; ) {
647
+ const x = r[c++];
719
648
  x !== null && st(x);
720
649
  }
721
650
  return this.ut = a, Ie(s, n), C;
722
651
  }
723
652
  });
724
- function h(s, t, e, r) {
725
- var i = arguments.length, o = i < 3 ? t : r === null ? r = Object.getOwnPropertyDescriptor(t, e) : r, a;
726
- if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(s, t, e, r);
727
- else for (var c = s.length - 1; c >= 0; c--) (a = s[c]) && (o = (i < 3 ? a(o) : i > 3 ? a(t, e, o) : a(t, e)) || o);
728
- return i > 3 && o && Object.defineProperty(t, e, o), o;
653
+ function h(s, t, e, i) {
654
+ var r = arguments.length, o = r < 3 ? t : i === null ? i = Object.getOwnPropertyDescriptor(t, e) : i, a;
655
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(s, t, e, i);
656
+ else for (var l = s.length - 1; l >= 0; l--) (a = s[l]) && (o = (r < 3 ? a(o) : r > 3 ? a(t, e, o) : a(t, e)) || o);
657
+ return r > 3 && o && Object.defineProperty(t, e, o), o;
729
658
  }
730
- /**
731
- * @license
732
- * Copyright 2022 Google LLC
733
- * SPDX-License-Identifier: Apache-2.0
734
- */
735
659
  class ke extends g {
736
660
  render() {
737
661
  return A`<slot></slot>`;
@@ -744,29 +668,14 @@ class ke extends g {
744
668
  this.setAttribute("aria-hidden", "true");
745
669
  }
746
670
  }
747
- /**
748
- * @license
749
- * Copyright 2024 Google LLC
750
- * SPDX-License-Identifier: Apache-2.0
751
- */
752
671
  const Oe = $`:host{font-size:var(--mdif4-icon-size, 24px);width:var(--mdif4-icon-size, 24px);height:var(--mdif4-icon-size, 24px);color:inherit;font-variation-settings:inherit;font-weight:400;font-family:var(--mdif4-icon-font, Material Symbols Outlined);display:inline-flex;font-style:normal;place-items:center;place-content:center;line-height:1;overflow:hidden;letter-spacing:normal;text-transform:none;user-select:none;white-space:nowrap;word-wrap:normal;flex-shrink:0;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale}::slotted(svg){fill:currentColor}::slotted(*){height:100%;width:100%}
753
672
  `;
754
- /**
755
- * @license
756
- * Copyright 2022 Google LLC
757
- * SPDX-License-Identifier: Apache-2.0
758
- */
759
673
  let at = class extends ke {
760
674
  };
761
675
  at.styles = [Oe];
762
676
  at = h([
763
677
  S("mdif4-icon")
764
678
  ], at);
765
- /**
766
- * @license
767
- * Copyright 2023 Google LLC
768
- * SPDX-License-Identifier: Apache-2.0
769
- */
770
679
  class et extends g {
771
680
  constructor() {
772
681
  super(...arguments), this.inset = !1, this.insetStart = !1, this.insetEnd = !1;
@@ -781,29 +690,14 @@ h([
781
690
  h([
782
691
  m({ type: Boolean, reflect: !0, attribute: "inset-end" })
783
692
  ], et.prototype, "insetEnd", void 0);
784
- /**
785
- * @license
786
- * Copyright 2024 Google LLC
787
- * SPDX-License-Identifier: Apache-2.0
788
- */
789
693
  const Me = $`:host{box-sizing:border-box;color:var(--mdif4-divider-color, var(--mdif4-sys-color-outline-variant, #cac4d0));display:flex;height:var(--mdif4-divider-thickness, 1px);width:100%}:host([inset]),:host([inset-start]){padding-inline-start:16px}:host([inset]),:host([inset-end]){padding-inline-end:16px}:host::before{background:currentColor;content:"";height:100%;width:100%}@media(forced-colors: active){:host::before{background:CanvasText}}
790
694
  `;
791
- /**
792
- * @license
793
- * Copyright 2023 Google LLC
794
- * SPDX-License-Identifier: Apache-2.0
795
- */
796
695
  let nt = class extends et {
797
696
  };
798
697
  nt.styles = [Me];
799
698
  nt = h([
800
699
  S("mdif4-divider")
801
700
  ], nt);
802
- /**
803
- * @license
804
- * Copyright 2022 Google LLC
805
- * SPDX-License-Identifier: Apache-2.0
806
- */
807
701
  class Ne extends g {
808
702
  connectedCallback() {
809
703
  super.connectedCallback(), this.setAttribute("aria-hidden", "true");
@@ -812,30 +706,15 @@ class Ne extends g {
812
706
  return A`<span class="shadow"></span>`;
813
707
  }
814
708
  }
815
- /**
816
- * @license
817
- * Copyright 2024 Google LLC
818
- * SPDX-License-Identifier: Apache-2.0
819
- */
820
709
  const ze = $`:host,.shadow,.shadow::before,.shadow::after{border-radius:inherit;inset:0;position:absolute;transition-duration:inherit;transition-property:inherit;transition-timing-function:inherit}:host{display:flex;pointer-events:none;transition-property:box-shadow,opacity}.shadow::before,.shadow::after{content:"";transition-property:box-shadow,opacity;--_level: var(--mdif4-elevation-level, 0);--_shadow-color: var(--mdif4-elevation-shadow-color, var(--mdif4-sys-color-shadow, #000))}.shadow::before{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 3,1) + 2*clamp(0,var(--_level) - 4,1))) calc(1px*(2*clamp(0,var(--_level),1) + clamp(0,var(--_level) - 2,1) + clamp(0,var(--_level) - 4,1))) 0px var(--_shadow-color);opacity:.3}.shadow::after{box-shadow:0px calc(1px*(clamp(0,var(--_level),1) + clamp(0,var(--_level) - 1,1) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(3*clamp(0,var(--_level),2) + 2*clamp(0,var(--_level) - 2,3))) calc(1px*(clamp(0,var(--_level),4) + 2*clamp(0,var(--_level) - 4,1))) var(--_shadow-color);opacity:.15}
821
710
  `;
822
- /**
823
- * @license
824
- * Copyright 2022 Google LLC
825
- * SPDX-License-Identifier: Apache-2.0
826
- */
827
- let ct = class extends Ne {
711
+ let lt = class extends Ne {
828
712
  };
829
- ct.styles = [ze];
830
- ct = h([
713
+ lt.styles = [ze];
714
+ lt = h([
831
715
  S("mdif4-elevation")
832
- ], ct);
833
- /**
834
- * @license
835
- * Copyright 2023 Google LLC
836
- * SPDX-License-Identifier: Apache-2.0
837
- */
838
- const Kt = Symbol("attachableController");
716
+ ], lt);
717
+ const Kt = /* @__PURE__ */ Symbol("attachableController");
839
718
  let qt;
840
719
  qt = new MutationObserver((s) => {
841
720
  for (const t of s)
@@ -883,11 +762,6 @@ class Yt {
883
762
  this.onControlChange(this.currentControl, t), this.currentControl = t;
884
763
  }
885
764
  }
886
- /**
887
- * @license
888
- * Copyright 2021 Google LLC
889
- * SPDX-License-Identifier: Apache-2.0
890
- */
891
765
  const De = ["focusin", "focusout", "pointerdown"];
892
766
  class $t extends g {
893
767
  constructor() {
@@ -932,8 +806,8 @@ class $t extends g {
932
806
  }
933
807
  }
934
808
  onControlChange(t, e) {
935
- for (const r of De)
936
- t?.removeEventListener(r, this), e?.addEventListener(r, this);
809
+ for (const i of De)
810
+ t?.removeEventListener(i, this), e?.addEventListener(i, this);
937
811
  }
938
812
  update(t) {
939
813
  t.has("visible") && this.dispatchEvent(new Event("visibility-changed")), super.update(t);
@@ -945,30 +819,15 @@ h([
945
819
  h([
946
820
  m({ type: Boolean, reflect: !0 })
947
821
  ], $t.prototype, "inward", void 0);
948
- const zt = Symbol("handledByFocusRing");
949
- /**
950
- * @license
951
- * Copyright 2024 Google LLC
952
- * SPDX-License-Identifier: Apache-2.0
953
- */
822
+ const zt = /* @__PURE__ */ Symbol("handledByFocusRing");
954
823
  const Ue = $`:host{animation-delay:0s,calc(var(--mdif4-focus-ring-duration, 600ms)*.25);animation-duration:calc(var(--mdif4-focus-ring-duration, 600ms)*.25),calc(var(--mdif4-focus-ring-duration, 600ms)*.75);animation-timing-function:cubic-bezier(0.2, 0, 0, 1);box-sizing:border-box;color:var(--mdif4-focus-ring-color, var(--mdif4-sys-color-secondary, #625b71));display:none;pointer-events:none;position:absolute}:host([visible]){display:flex}:host(:not([inward])){animation-name:outward-grow,outward-shrink;border-end-end-radius:calc(var(--mdif4-focus-ring-shape-end-end, var(--mdif4-focus-ring-shape, var(--mdif4-sys-shape-corner-full, 9999px))) + var(--mdif4-focus-ring-outward-offset, 2px));border-end-start-radius:calc(var(--mdif4-focus-ring-shape-end-start, var(--mdif4-focus-ring-shape, var(--mdif4-sys-shape-corner-full, 9999px))) + var(--mdif4-focus-ring-outward-offset, 2px));border-start-end-radius:calc(var(--mdif4-focus-ring-shape-start-end, var(--mdif4-focus-ring-shape, var(--mdif4-sys-shape-corner-full, 9999px))) + var(--mdif4-focus-ring-outward-offset, 2px));border-start-start-radius:calc(var(--mdif4-focus-ring-shape-start-start, var(--mdif4-focus-ring-shape, var(--mdif4-sys-shape-corner-full, 9999px))) + var(--mdif4-focus-ring-outward-offset, 2px));inset:calc(-1*var(--mdif4-focus-ring-outward-offset, 2px));outline:var(--mdif4-focus-ring-width, 3px) solid currentColor}:host([inward]){animation-name:inward-grow,inward-shrink;border-end-end-radius:calc(var(--mdif4-focus-ring-shape-end-end, var(--mdif4-focus-ring-shape, var(--mdif4-sys-shape-corner-full, 9999px))) - var(--mdif4-focus-ring-inward-offset, 0px));border-end-start-radius:calc(var(--mdif4-focus-ring-shape-end-start, var(--mdif4-focus-ring-shape, var(--mdif4-sys-shape-corner-full, 9999px))) - var(--mdif4-focus-ring-inward-offset, 0px));border-start-end-radius:calc(var(--mdif4-focus-ring-shape-start-end, var(--mdif4-focus-ring-shape, var(--mdif4-sys-shape-corner-full, 9999px))) - var(--mdif4-focus-ring-inward-offset, 0px));border-start-start-radius:calc(var(--mdif4-focus-ring-shape-start-start, var(--mdif4-focus-ring-shape, var(--mdif4-sys-shape-corner-full, 9999px))) - var(--mdif4-focus-ring-inward-offset, 0px));border:var(--mdif4-focus-ring-width, 3px) solid currentColor;inset:var(--mdif4-focus-ring-inward-offset, 0px)}@keyframes outward-grow{from{outline-width:0}to{outline-width:var(--mdif4-focus-ring-active-width, 8px)}}@keyframes outward-shrink{from{outline-width:var(--mdif4-focus-ring-active-width, 8px)}}@keyframes inward-grow{from{border-width:0}to{border-width:var(--mdif4-focus-ring-active-width, 8px)}}@keyframes inward-shrink{from{border-width:var(--mdif4-focus-ring-active-width, 8px)}}@media(prefers-reduced-motion){:host{animation:none}}
955
824
  `;
956
- /**
957
- * @license
958
- * Copyright 2021 Google LLC
959
- * SPDX-License-Identifier: Apache-2.0
960
- */
961
- let lt = class extends $t {
825
+ let ct = class extends $t {
962
826
  };
963
- lt.styles = [Ue];
964
- lt = h([
827
+ ct.styles = [Ue];
828
+ ct = h([
965
829
  S("mdif4-focus-ring")
966
- ], lt);
967
- /**
968
- * @license
969
- * Copyright 2018 Google LLC
970
- * SPDX-License-Identifier: BSD-3-Clause
971
- */
830
+ ], ct);
972
831
  const Zt = Vt(class extends Gt {
973
832
  constructor(s) {
974
833
  if (super(s), s.type !== Wt.ATTRIBUTE || s.name !== "class" || s.strings?.length > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
@@ -978,33 +837,23 @@ const Zt = Vt(class extends Gt {
978
837
  }
979
838
  update(s, [t]) {
980
839
  if (this.st === void 0) {
981
- this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter(((r) => r !== ""))));
982
- for (const r in t) t[r] && !this.nt?.has(r) && this.st.add(r);
840
+ this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter(((i) => i !== ""))));
841
+ for (const i in t) t[i] && !this.nt?.has(i) && this.st.add(i);
983
842
  return this.render(t);
984
843
  }
985
844
  const e = s.element.classList;
986
- for (const r of this.st) r in t || (e.remove(r), this.st.delete(r));
987
- for (const r in t) {
988
- const i = !!t[r];
989
- i === this.st.has(r) || this.nt?.has(r) || (i ? (e.add(r), this.st.add(r)) : (e.remove(r), this.st.delete(r)));
845
+ for (const i of this.st) i in t || (e.remove(i), this.st.delete(i));
846
+ for (const i in t) {
847
+ const r = !!t[i];
848
+ r === this.st.has(i) || this.nt?.has(i) || (r ? (e.add(i), this.st.add(i)) : (e.remove(i), this.st.delete(i)));
990
849
  }
991
850
  return C;
992
851
  }
993
852
  });
994
- /**
995
- * @license
996
- * Copyright 2021 Google LLC
997
- * SPDX-License-Identifier: Apache-2.0
998
- */
999
853
  const Xt = {
1000
854
  STANDARD: "cubic-bezier(0.2, 0, 0, 1)",
1001
855
  EMPHASIZED: "cubic-bezier(.3,0,0,1)"
1002
856
  };
1003
- /**
1004
- * @license
1005
- * Copyright 2022 Google LLC
1006
- * SPDX-License-Identifier: Apache-2.0
1007
- */
1008
857
  const He = 450, Dt = 225, Le = 0.2, Be = 10, Fe = 75, je = 0.35, We = "::after", Ve = "forwards";
1009
858
  var y;
1010
859
  (function(s) {
@@ -1107,27 +956,27 @@ class j extends g {
1107
956
  this.disabled || this.endPressAnimation();
1108
957
  }
1109
958
  determineRippleSize() {
1110
- const { height: t, width: e } = this.getBoundingClientRect(), r = Math.max(t, e), i = Math.max(je * r, Fe), o = this.currentCSSZoom ?? 1, a = Math.floor(r * Le / o), n = Math.sqrt(e ** 2 + t ** 2) + Be;
959
+ const { height: t, width: e } = this.getBoundingClientRect(), i = Math.max(t, e), r = Math.max(je * i, Fe), o = this.currentCSSZoom ?? 1, a = Math.floor(i * Le / o), n = Math.sqrt(e ** 2 + t ** 2) + Be;
1111
960
  this.initialSize = a;
1112
- const d = (n + i) / a;
961
+ const d = (n + r) / a;
1113
962
  this.rippleScale = `${d / o}`, this.rippleSize = `${a}px`;
1114
963
  }
1115
964
  getNormalizedPointerEventCoords(t) {
1116
- const { scrollX: e, scrollY: r } = window, { left: i, top: o } = this.getBoundingClientRect(), a = e + i, c = r + o, { pageX: n, pageY: d } = t, p = this.currentCSSZoom ?? 1;
965
+ const { scrollX: e, scrollY: i } = window, { left: r, top: o } = this.getBoundingClientRect(), a = e + r, l = i + o, { pageX: n, pageY: d } = t, p = this.currentCSSZoom ?? 1;
1117
966
  return {
1118
967
  x: (n - a) / p,
1119
- y: (d - c) / p
968
+ y: (d - l) / p
1120
969
  };
1121
970
  }
1122
971
  getTranslationCoordinates(t) {
1123
- const { height: e, width: r } = this.getBoundingClientRect(), i = this.currentCSSZoom ?? 1, o = {
1124
- x: (r / i - this.initialSize) / 2,
1125
- y: (e / i - this.initialSize) / 2
972
+ const { height: e, width: i } = this.getBoundingClientRect(), r = this.currentCSSZoom ?? 1, o = {
973
+ x: (i / r - this.initialSize) / 2,
974
+ y: (e / r - this.initialSize) / 2
1126
975
  };
1127
976
  let a;
1128
977
  return t instanceof PointerEvent ? a = this.getNormalizedPointerEventCoords(t) : a = {
1129
- x: r / i / 2,
1130
- y: e / i / 2
978
+ x: i / r / 2,
979
+ y: e / r / 2
1131
980
  }, a = {
1132
981
  x: a.x - this.initialSize / 2,
1133
982
  y: a.y - this.initialSize / 2
@@ -1137,14 +986,14 @@ class j extends g {
1137
986
  if (!this.mdRoot)
1138
987
  return;
1139
988
  this.pressed = !0, this.growAnimation?.cancel(), this.determineRippleSize();
1140
- const { startPoint: e, endPoint: r } = this.getTranslationCoordinates(t), i = `${e.x}px, ${e.y}px`, o = `${r.x}px, ${r.y}px`;
989
+ const { startPoint: e, endPoint: i } = this.getTranslationCoordinates(t), r = `${e.x}px, ${e.y}px`, o = `${i.x}px, ${i.y}px`;
1141
990
  this.growAnimation = this.mdRoot.animate({
1142
991
  top: [0, 0],
1143
992
  left: [0, 0],
1144
993
  height: [this.rippleSize, this.rippleSize],
1145
994
  width: [this.rippleSize, this.rippleSize],
1146
995
  transform: [
1147
- `translate(${i}) scale(1)`,
996
+ `translate(${r}) scale(1)`,
1148
997
  `translate(${o}) scale(${this.rippleScale})`
1149
998
  ]
1150
999
  }, {
@@ -1162,8 +1011,8 @@ class j extends g {
1162
1011
  this.pressed = !1;
1163
1012
  return;
1164
1013
  }
1165
- await new Promise((r) => {
1166
- setTimeout(r, Dt - e);
1014
+ await new Promise((i) => {
1015
+ setTimeout(i, Dt - e);
1167
1016
  }), this.growAnimation === t && (this.pressed = !1);
1168
1017
  }
1169
1018
  /**
@@ -1214,8 +1063,8 @@ class j extends g {
1214
1063
  }
1215
1064
  }
1216
1065
  onControlChange(t, e) {
1217
- for (const r of Ge)
1218
- t?.removeEventListener(r, this), e?.addEventListener(r, this);
1066
+ for (const i of Ge)
1067
+ t?.removeEventListener(i, this), e?.addEventListener(i, this);
1219
1068
  }
1220
1069
  }
1221
1070
  h([
@@ -1230,35 +1079,20 @@ h([
1230
1079
  h([
1231
1080
  tt(".surface")
1232
1081
  ], j.prototype, "mdRoot", void 0);
1233
- /**
1234
- * @license
1235
- * Copyright 2024 Google LLC
1236
- * SPDX-License-Identifier: Apache-2.0
1237
- */
1238
1082
  const Ye = $`:host{display:flex;margin:auto;pointer-events:none}:host([disabled]){display:none}@media(forced-colors: active){:host{display:none}}:host,.surface{border-radius:inherit;position:absolute;inset:0;overflow:hidden}.surface{-webkit-tap-highlight-color:rgba(0,0,0,0)}.surface::before,.surface::after{content:"";opacity:0;position:absolute}.surface::before{background-color:var(--mdif4-ripple-hover-color, var(--mdif4-sys-color-on-surface, #1d1b20));inset:0;transition:opacity 15ms linear,background-color 15ms linear}.surface::after{background:radial-gradient(closest-side, var(--mdif4-ripple-pressed-color, var(--mdif4-sys-color-on-surface, #1d1b20)) max(100% - 70px, 65%), transparent 100%);transform-origin:center center;transition:opacity 375ms linear}.hovered::before{background-color:var(--mdif4-ripple-hover-color, var(--mdif4-sys-color-on-surface, #1d1b20));opacity:var(--mdif4-ripple-hover-opacity, 0.08)}.pressed::after{opacity:var(--mdif4-ripple-pressed-opacity, 0.12);transition-duration:105ms}
1239
1083
  `;
1240
- /**
1241
- * @license
1242
- * Copyright 2022 Google LLC
1243
- * SPDX-License-Identifier: Apache-2.0
1244
- */
1245
1084
  let dt = class extends j {
1246
1085
  };
1247
1086
  dt.styles = [Ye];
1248
1087
  dt = h([
1249
1088
  S("mdif4-ripple")
1250
1089
  ], dt);
1251
- /**
1252
- * @license
1253
- * Copyright 2023 Google LLC
1254
- * SPDX-License-Identifier: Apache-2.0
1255
- */
1256
- const V = Symbol("isFocusable"), ot = Symbol("privateIsFocusable"), G = Symbol("externalTabIndex"), K = Symbol("isUpdatingTabIndex"), q = Symbol("updateTabIndex");
1090
+ const V = /* @__PURE__ */ Symbol("isFocusable"), ot = /* @__PURE__ */ Symbol("privateIsFocusable"), G = /* @__PURE__ */ Symbol("externalTabIndex"), K = /* @__PURE__ */ Symbol("isUpdatingTabIndex"), q = /* @__PURE__ */ Symbol("updateTabIndex");
1257
1091
  function Ze(s) {
1258
- var t, e, r;
1259
- class i extends s {
1092
+ var t, e, i;
1093
+ class r extends s {
1260
1094
  constructor() {
1261
- super(...arguments), this[t] = !0, this[e] = null, this[r] = !1;
1095
+ super(...arguments), this[t] = !0, this[e] = null, this[i] = !1;
1262
1096
  }
1263
1097
  get [V]() {
1264
1098
  return this[ot];
@@ -1269,12 +1103,12 @@ function Ze(s) {
1269
1103
  connectedCallback() {
1270
1104
  super.connectedCallback(), this[q]();
1271
1105
  }
1272
- attributeChangedCallback(a, c, n) {
1106
+ attributeChangedCallback(a, l, n) {
1273
1107
  if (a !== "tabindex") {
1274
- super.attributeChangedCallback(a, c, n);
1108
+ super.attributeChangedCallback(a, l, n);
1275
1109
  return;
1276
1110
  }
1277
- if (this.requestUpdate("tabIndex", Number(c ?? -1)), !this[K]) {
1111
+ if (this.requestUpdate("tabIndex", Number(l ?? -1)), !this[K]) {
1278
1112
  if (!this.hasAttribute("tabindex")) {
1279
1113
  this[G] = null, this[q]();
1280
1114
  return;
@@ -1282,21 +1116,16 @@ function Ze(s) {
1282
1116
  this[G] = this.tabIndex;
1283
1117
  }
1284
1118
  }
1285
- [(t = ot, e = G, r = K, q)]() {
1286
- const a = this[V] ? 0 : -1, c = this[G] ?? a;
1287
- this[K] = !0, this.tabIndex = c, this[K] = !1;
1119
+ [(t = ot, e = G, i = K, q)]() {
1120
+ const a = this[V] ? 0 : -1, l = this[G] ?? a;
1121
+ this[K] = !0, this.tabIndex = l, this[K] = !1;
1288
1122
  }
1289
1123
  }
1290
1124
  return h([
1291
1125
  m({ noAccessor: !0 })
1292
- ], i.prototype, "tabIndex", void 0), i;
1126
+ ], r.prototype, "tabIndex", void 0), r;
1293
1127
  }
1294
- /**
1295
- * @license
1296
- * Copyright 2023 Google LLC
1297
- * SPDX-License-Identifier: Apache-2.0
1298
- */
1299
- const Jt = Symbol("animateIndicator"), Xe = Ze(g);
1128
+ const Jt = /* @__PURE__ */ Symbol("animateIndicator"), Xe = Ze(g);
1300
1129
  class _ extends Xe {
1301
1130
  /**
1302
1131
  * @deprecated use `active`
@@ -1348,8 +1177,8 @@ class _ extends Xe {
1348
1177
  [Jt](t) {
1349
1178
  if (!this.indicator)
1350
1179
  return;
1351
- this.indicator.getAnimations().forEach((r) => {
1352
- r.cancel();
1180
+ this.indicator.getAnimations().forEach((i) => {
1181
+ i.cancel();
1353
1182
  });
1354
1183
  const e = this.getKeyframes(t);
1355
1184
  e !== null && this.indicator.animate(e, {
@@ -1361,8 +1190,8 @@ class _ extends Xe {
1361
1190
  const e = Je();
1362
1191
  if (!this.active)
1363
1192
  return e ? [{ opacity: 1 }, { transform: "none" }] : null;
1364
- const r = {}, i = t.indicator?.getBoundingClientRect() ?? {}, o = i.left, a = i.width, c = this.indicator.getBoundingClientRect(), n = c.left, d = c.width, p = a / d;
1365
- return !e && o !== void 0 && n !== void 0 && !isNaN(p) ? r.transform = `translateX(${(o - n).toFixed(4)}px) scaleX(${p.toFixed(4)})` : r.opacity = 0, [r, { transform: "none" }];
1193
+ const i = {}, r = t.indicator?.getBoundingClientRect() ?? {}, o = r.left, a = r.width, l = this.indicator.getBoundingClientRect(), n = l.left, d = l.width, p = a / d;
1194
+ return !e && o !== void 0 && n !== void 0 && !isNaN(p) ? i.transform = `translateX(${(o - n).toFixed(4)}px) scaleX(${p.toFixed(4)})` : i.opacity = 0, [i, { transform: "none" }];
1366
1195
  }
1367
1196
  handleSlotChange() {
1368
1197
  this.iconOnly = !1;
@@ -1407,11 +1236,6 @@ h([
1407
1236
  function Je() {
1408
1237
  return window.matchMedia("(prefers-reduced-motion: reduce)").matches;
1409
1238
  }
1410
- /**
1411
- * @license
1412
- * Copyright 2023 Google LLC
1413
- * SPDX-License-Identifier: Apache-2.0
1414
- */
1415
1239
  class N extends g {
1416
1240
  /**
1417
1241
  * The currently selected tab, `null` only when there are no tab children.
@@ -1434,8 +1258,8 @@ class N extends g {
1434
1258
  }
1435
1259
  set activeTabIndex(t) {
1436
1260
  const e = () => {
1437
- const r = this.tabs[t];
1438
- r && this.activateTab(r);
1261
+ const i = this.tabs[t];
1262
+ i && this.activateTab(i);
1439
1263
  };
1440
1264
  if (!this.slotElement) {
1441
1265
  this.updateComplete.then(e);
@@ -1465,8 +1289,8 @@ class N extends g {
1465
1289
  return;
1466
1290
  for (const f of this.tabs)
1467
1291
  await f.updateComplete;
1468
- const r = t.offsetLeft, i = t.offsetWidth, o = this.scrollLeft, a = this.offsetWidth, c = 48, n = r - c, d = r + i - a + c, p = Math.min(n, Math.max(d, o)), l = this.focusedTab ? "auto" : "instant";
1469
- this.tabsScrollerElement.scrollTo({ behavior: l, top: 0, left: p });
1292
+ const i = t.offsetLeft, r = t.offsetWidth, o = this.scrollLeft, a = this.offsetWidth, l = 48, n = i - l, d = i + r - a + l, p = Math.min(n, Math.max(d, o)), c = this.focusedTab ? "auto" : "instant";
1293
+ this.tabsScrollerElement.scrollTo({ behavior: c, top: 0, left: p });
1470
1294
  }
1471
1295
  render() {
1472
1296
  return A`
@@ -1483,17 +1307,17 @@ class N extends g {
1483
1307
  await 0, !(t.defaultPrevented || !Qe(e) || e.active) && this.activateTab(e);
1484
1308
  }
1485
1309
  activateTab(t) {
1486
- const { tabs: e } = this, r = this.activeTab;
1487
- if (!(!e.includes(t) || r === t)) {
1488
- for (const i of e)
1489
- i.active = i === t;
1490
- if (r) {
1310
+ const { tabs: e } = this, i = this.activeTab;
1311
+ if (!(!e.includes(t) || i === t)) {
1312
+ for (const r of e)
1313
+ r.active = r === t;
1314
+ if (i) {
1491
1315
  if (!this.dispatchEvent(new Event("change", { bubbles: !0, cancelable: !0 }))) {
1492
1316
  for (const o of e)
1493
- o.active = o === r;
1317
+ o.active = o === i;
1494
1318
  return;
1495
1319
  }
1496
- t[Jt](r);
1320
+ t[Jt](i);
1497
1321
  }
1498
1322
  this.updateFocusableTab(t), this.scrollToTab(t);
1499
1323
  }
@@ -1505,26 +1329,26 @@ class N extends g {
1505
1329
  // focus item on keydown and optionally select it
1506
1330
  async handleKeydown(t) {
1507
1331
  await 0;
1508
- const e = t.key === "ArrowLeft", r = t.key === "ArrowRight", i = t.key === "Home", o = t.key === "End";
1509
- if (t.defaultPrevented || !e && !r && !i && !o)
1332
+ const e = t.key === "ArrowLeft", i = t.key === "ArrowRight", r = t.key === "Home", o = t.key === "End";
1333
+ if (t.defaultPrevented || !e && !i && !r && !o)
1510
1334
  return;
1511
1335
  const { tabs: a } = this;
1512
1336
  if (a.length < 2)
1513
1337
  return;
1514
1338
  t.preventDefault();
1515
- let c;
1516
- if (i || o)
1517
- c = i ? 0 : a.length - 1;
1339
+ let l;
1340
+ if (r || o)
1341
+ l = r ? 0 : a.length - 1;
1518
1342
  else {
1519
- const p = getComputedStyle(this).direction === "rtl" ? e : r, { focusedTab: l } = this;
1520
- if (!l)
1521
- c = p ? 0 : a.length - 1;
1343
+ const p = getComputedStyle(this).direction === "rtl" ? e : i, { focusedTab: c } = this;
1344
+ if (!c)
1345
+ l = p ? 0 : a.length - 1;
1522
1346
  else {
1523
- const f = this.tabs.indexOf(l);
1524
- c = p ? f + 1 : f - 1, c >= a.length ? c = 0 : c < 0 && (c = a.length - 1);
1347
+ const f = this.tabs.indexOf(c);
1348
+ l = p ? f + 1 : f - 1, l >= a.length ? l = 0 : l < 0 && (l = a.length - 1);
1525
1349
  }
1526
1350
  }
1527
- const n = a[c];
1351
+ const n = a[l];
1528
1352
  n.focus(), this.autoActivate ? this.activateTab(n) : this.updateFocusableTab(n);
1529
1353
  }
1530
1354
  // scroll to item on keyup.
@@ -1560,29 +1384,14 @@ h([
1560
1384
  function Qe(s) {
1561
1385
  return s instanceof HTMLElement && s.hasAttribute("mdif4-tab");
1562
1386
  }
1563
- /**
1564
- * @license
1565
- * Copyright 2024 Google LLC
1566
- * SPDX-License-Identifier: Apache-2.0
1567
- */
1568
- const tr = $`:host{box-sizing:border-box;display:flex;flex-direction:column;overflow:auto;scroll-behavior:smooth;scrollbar-width:none;position:relative}:host([hidden]){display:none}:host::-webkit-scrollbar{display:none}.tabs{align-items:end;display:flex;height:100%;overflow:inherit;scroll-behavior:inherit;scrollbar-width:inherit;justify-content:space-between;width:100%}::slotted(*){flex:1}::slotted([active]){z-index:1}
1387
+ const ti = $`:host{box-sizing:border-box;display:flex;flex-direction:column;overflow:auto;scroll-behavior:smooth;scrollbar-width:none;position:relative}:host([hidden]){display:none}:host::-webkit-scrollbar{display:none}.tabs{align-items:end;display:flex;height:100%;overflow:inherit;scroll-behavior:inherit;scrollbar-width:inherit;justify-content:space-between;width:100%}::slotted(*){flex:1}::slotted([active]){z-index:1}
1569
1388
  `;
1570
- /**
1571
- * @license
1572
- * Copyright 2023 Google LLC
1573
- * SPDX-License-Identifier: Apache-2.0
1574
- */
1575
1389
  let ht = class extends N {
1576
1390
  };
1577
- ht.styles = [tr];
1391
+ ht.styles = [ti];
1578
1392
  ht = h([
1579
1393
  S("mdif4-tabs")
1580
1394
  ], ht);
1581
- /**
1582
- * @license
1583
- * Copyright 2023 Google LLC
1584
- * SPDX-License-Identifier: Apache-2.0
1585
- */
1586
1395
  class Qt extends _ {
1587
1396
  constructor() {
1588
1397
  super(...arguments), this.inlineIcon = !1;
@@ -1597,67 +1406,37 @@ class Qt extends _ {
1597
1406
  h([
1598
1407
  m({ type: Boolean, attribute: "inline-icon" })
1599
1408
  ], Qt.prototype, "inlineIcon", void 0);
1600
- /**
1601
- * @license
1602
- * Copyright 2024 Google LLC
1603
- * SPDX-License-Identifier: Apache-2.0
1604
- */
1605
- const er = $`:host{--_active-indicator-color: var(--mdif4-primary-tab-active-indicator-color, var(--mdif4-sys-color-primary, #6750a4));--_active-indicator-height: var(--mdif4-primary-tab-active-indicator-height, 3px);--_active-indicator-shape: var(--mdif4-primary-tab-active-indicator-shape, 3px 3px 0px 0px);--_active-hover-state-layer-color: var(--mdif4-primary-tab-active-hover-state-layer-color, var(--mdif4-sys-color-primary, #6750a4));--_active-hover-state-layer-opacity: var(--mdif4-primary-tab-active-hover-state-layer-opacity, 0.08);--_active-pressed-state-layer-color: var(--mdif4-primary-tab-active-pressed-state-layer-color, var(--mdif4-sys-color-primary, #6750a4));--_active-pressed-state-layer-opacity: var(--mdif4-primary-tab-active-pressed-state-layer-opacity, 0.12);--_container-color: var(--mdif4-primary-tab-container-color, var(--mdif4-sys-color-surface, #fef7ff));--_container-elevation: var(--mdif4-primary-tab-container-elevation, 0);--_container-height: var(--mdif4-primary-tab-container-height, 48px);--_with-icon-and-label-text-container-height: var(--mdif4-primary-tab-with-icon-and-label-text-container-height, 64px);--_hover-state-layer-color: var(--mdif4-primary-tab-hover-state-layer-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--mdif4-primary-tab-hover-state-layer-opacity, 0.08);--_pressed-state-layer-color: var(--mdif4-primary-tab-pressed-state-layer-color, var(--mdif4-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--mdif4-primary-tab-pressed-state-layer-opacity, 0.12);--_active-focus-icon-color: var(--mdif4-primary-tab-active-focus-icon-color, var(--mdif4-sys-color-primary, #6750a4));--_active-hover-icon-color: var(--mdif4-primary-tab-active-hover-icon-color, var(--mdif4-sys-color-primary, #6750a4));--_active-icon-color: var(--mdif4-primary-tab-active-icon-color, var(--mdif4-sys-color-primary, #6750a4));--_active-pressed-icon-color: var(--mdif4-primary-tab-active-pressed-icon-color, var(--mdif4-sys-color-primary, #6750a4));--_icon-size: var(--mdif4-primary-tab-icon-size, 24px);--_focus-icon-color: var(--mdif4-primary-tab-focus-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-icon-color: var(--mdif4-primary-tab-hover-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_icon-color: var(--mdif4-primary-tab-icon-color, var(--mdif4-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--mdif4-primary-tab-pressed-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_label-text-font: var(--mdif4-primary-tab-label-text-font, var(--mdif4-sys-typescale-title-small-font, var(--mdif4-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--mdif4-primary-tab-label-text-line-height, var(--mdif4-sys-typescale-title-small-line-height, 1.25rem));--_label-text-size: var(--mdif4-primary-tab-label-text-size, var(--mdif4-sys-typescale-title-small-size, 0.875rem));--_label-text-weight: var(--mdif4-primary-tab-label-text-weight, var(--mdif4-sys-typescale-title-small-weight, var(--mdif4-ref-typeface-weight-medium, 500)));--_active-focus-label-text-color: var(--mdif4-primary-tab-active-focus-label-text-color, var(--mdif4-sys-color-primary, #6750a4));--_active-hover-label-text-color: var(--mdif4-primary-tab-active-hover-label-text-color, var(--mdif4-sys-color-primary, #6750a4));--_active-label-text-color: var(--mdif4-primary-tab-active-label-text-color, var(--mdif4-sys-color-primary, #6750a4));--_active-pressed-label-text-color: var(--mdif4-primary-tab-active-pressed-label-text-color, var(--mdif4-sys-color-primary, #6750a4));--_focus-label-text-color: var(--mdif4-primary-tab-focus-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--mdif4-primary-tab-hover-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_label-text-color: var(--mdif4-primary-tab-label-text-color, var(--mdif4-sys-color-on-surface-variant, #49454f));--_pressed-label-text-color: var(--mdif4-primary-tab-pressed-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_container-shape-start-start: var(--mdif4-primary-tab-container-shape-start-start, var(--mdif4-primary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)));--_container-shape-start-end: var(--mdif4-primary-tab-container-shape-start-end, var(--mdif4-primary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)));--_container-shape-end-end: var(--mdif4-primary-tab-container-shape-end-end, var(--mdif4-primary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)));--_container-shape-end-start: var(--mdif4-primary-tab-container-shape-end-start, var(--mdif4-primary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)))}.content.stacked{flex-direction:column;gap:2px}.content.stacked.has-icon.has-label{height:var(--_with-icon-and-label-text-container-height)}
1409
+ const ei = $`:host{--_active-indicator-color: var(--mdif4-primary-tab-active-indicator-color, var(--mdif4-sys-color-primary, #6750a4));--_active-indicator-height: var(--mdif4-primary-tab-active-indicator-height, 3px);--_active-indicator-shape: var(--mdif4-primary-tab-active-indicator-shape, 3px 3px 0px 0px);--_active-hover-state-layer-color: var(--mdif4-primary-tab-active-hover-state-layer-color, var(--mdif4-sys-color-primary, #6750a4));--_active-hover-state-layer-opacity: var(--mdif4-primary-tab-active-hover-state-layer-opacity, 0.08);--_active-pressed-state-layer-color: var(--mdif4-primary-tab-active-pressed-state-layer-color, var(--mdif4-sys-color-primary, #6750a4));--_active-pressed-state-layer-opacity: var(--mdif4-primary-tab-active-pressed-state-layer-opacity, 0.12);--_container-color: var(--mdif4-primary-tab-container-color, var(--mdif4-sys-color-surface, #fef7ff));--_container-elevation: var(--mdif4-primary-tab-container-elevation, 0);--_container-height: var(--mdif4-primary-tab-container-height, 48px);--_with-icon-and-label-text-container-height: var(--mdif4-primary-tab-with-icon-and-label-text-container-height, 64px);--_hover-state-layer-color: var(--mdif4-primary-tab-hover-state-layer-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--mdif4-primary-tab-hover-state-layer-opacity, 0.08);--_pressed-state-layer-color: var(--mdif4-primary-tab-pressed-state-layer-color, var(--mdif4-sys-color-primary, #6750a4));--_pressed-state-layer-opacity: var(--mdif4-primary-tab-pressed-state-layer-opacity, 0.12);--_active-focus-icon-color: var(--mdif4-primary-tab-active-focus-icon-color, var(--mdif4-sys-color-primary, #6750a4));--_active-hover-icon-color: var(--mdif4-primary-tab-active-hover-icon-color, var(--mdif4-sys-color-primary, #6750a4));--_active-icon-color: var(--mdif4-primary-tab-active-icon-color, var(--mdif4-sys-color-primary, #6750a4));--_active-pressed-icon-color: var(--mdif4-primary-tab-active-pressed-icon-color, var(--mdif4-sys-color-primary, #6750a4));--_icon-size: var(--mdif4-primary-tab-icon-size, 24px);--_focus-icon-color: var(--mdif4-primary-tab-focus-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-icon-color: var(--mdif4-primary-tab-hover-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_icon-color: var(--mdif4-primary-tab-icon-color, var(--mdif4-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--mdif4-primary-tab-pressed-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_label-text-font: var(--mdif4-primary-tab-label-text-font, var(--mdif4-sys-typescale-title-small-font, var(--mdif4-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--mdif4-primary-tab-label-text-line-height, var(--mdif4-sys-typescale-title-small-line-height, 1.25rem));--_label-text-size: var(--mdif4-primary-tab-label-text-size, var(--mdif4-sys-typescale-title-small-size, 0.875rem));--_label-text-weight: var(--mdif4-primary-tab-label-text-weight, var(--mdif4-sys-typescale-title-small-weight, var(--mdif4-ref-typeface-weight-medium, 500)));--_active-focus-label-text-color: var(--mdif4-primary-tab-active-focus-label-text-color, var(--mdif4-sys-color-primary, #6750a4));--_active-hover-label-text-color: var(--mdif4-primary-tab-active-hover-label-text-color, var(--mdif4-sys-color-primary, #6750a4));--_active-label-text-color: var(--mdif4-primary-tab-active-label-text-color, var(--mdif4-sys-color-primary, #6750a4));--_active-pressed-label-text-color: var(--mdif4-primary-tab-active-pressed-label-text-color, var(--mdif4-sys-color-primary, #6750a4));--_focus-label-text-color: var(--mdif4-primary-tab-focus-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--mdif4-primary-tab-hover-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_label-text-color: var(--mdif4-primary-tab-label-text-color, var(--mdif4-sys-color-on-surface-variant, #49454f));--_pressed-label-text-color: var(--mdif4-primary-tab-pressed-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_container-shape-start-start: var(--mdif4-primary-tab-container-shape-start-start, var(--mdif4-primary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)));--_container-shape-start-end: var(--mdif4-primary-tab-container-shape-start-end, var(--mdif4-primary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)));--_container-shape-end-end: var(--mdif4-primary-tab-container-shape-end-end, var(--mdif4-primary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)));--_container-shape-end-start: var(--mdif4-primary-tab-container-shape-end-start, var(--mdif4-primary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)))}.content.stacked{flex-direction:column;gap:2px}.content.stacked.has-icon.has-label{height:var(--_with-icon-and-label-text-container-height)}
1606
1410
  `;
1607
- /**
1608
- * @license
1609
- * Copyright 2024 Google LLC
1610
- * SPDX-License-Identifier: Apache-2.0
1611
- */
1612
1411
  const te = $`:host{display:inline-flex;align-items:center;justify-content:center;outline:none;padding:0 16px;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0);vertical-align:middle;user-select:none;font-family:var(--_label-text-font);font-size:var(--_label-text-size);line-height:var(--_label-text-line-height);font-weight:var(--_label-text-weight);color:var(--_label-text-color);z-index:0;--mdif4-ripple-hover-color: var(--_hover-state-layer-color);--mdif4-ripple-hover-opacity: var(--_hover-state-layer-opacity);--mdif4-ripple-pressed-color: var(--_pressed-state-layer-color);--mdif4-ripple-pressed-opacity: var(--_pressed-state-layer-opacity);--mdif4-elevation-level: var(--_container-elevation)}mdif4-focus-ring{--mdif4-focus-ring-shape: 8px}:host([active]) mdif4-focus-ring{margin-bottom:calc(var(--_active-indicator-height) + 1px)}.button::before{background:var(--_container-color);content:"";inset:0;position:absolute;z-index:-1}.button::before,mdif4-ripple,mdif4-elevation{border-start-start-radius:var(--_container-shape-start-start);border-start-end-radius:var(--_container-shape-start-end);border-end-end-radius:var(--_container-shape-end-end);border-end-start-radius:var(--_container-shape-end-start)}.content{position:relative;box-sizing:border-box;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;height:var(--_container-height);gap:8px}.indicator{position:absolute;box-sizing:border-box;z-index:-1;transform-origin:bottom left;background:var(--_active-indicator-color);border-radius:var(--_active-indicator-shape);height:var(--_active-indicator-height);inset:auto 0 0 0;opacity:0}::slotted([slot=icon]){display:inline-flex;position:relative;writing-mode:horizontal-tb;fill:currentColor;color:var(--_icon-color);font-size:var(--_icon-size);width:var(--_icon-size);height:var(--_icon-size)}:host(:hover){color:var(--_hover-label-text-color);cursor:pointer}:host(:hover) ::slotted([slot=icon]){color:var(--_hover-icon-color)}:host(:focus){color:var(--_focus-label-text-color)}:host(:focus) ::slotted([slot=icon]){color:var(--_focus-icon-color)}:host(:active){color:var(--_pressed-label-text-color)}:host(:active) ::slotted([slot=icon]){color:var(--_pressed-icon-color)}:host([active]) .indicator{opacity:1}:host([active]){color:var(--_active-label-text-color);--mdif4-ripple-hover-color: var(--_active-hover-state-layer-color);--mdif4-ripple-hover-opacity: var(--_active-hover-state-layer-opacity);--mdif4-ripple-pressed-color: var(--_active-pressed-state-layer-color);--mdif4-ripple-pressed-opacity: var(--_active-pressed-state-layer-opacity)}:host([active]) ::slotted([slot=icon]){color:var(--_active-icon-color)}:host([active]:hover){color:var(--_active-hover-label-text-color)}:host([active]:hover) ::slotted([slot=icon]){color:var(--_active-hover-icon-color)}:host([active]:focus){color:var(--_active-focus-label-text-color)}:host([active]:focus) ::slotted([slot=icon]){color:var(--_active-focus-icon-color)}:host([active]:active){color:var(--_active-pressed-label-text-color)}:host([active]:active) ::slotted([slot=icon]){color:var(--_active-pressed-icon-color)}:host,::slotted(*){white-space:nowrap}@media(forced-colors: active){.indicator{background:CanvasText}}
1613
1412
  `;
1614
- /**
1615
- * @license
1616
- * Copyright 2023 Google LLC
1617
- * SPDX-License-Identifier: Apache-2.0
1618
- */
1619
1413
  let pt = class extends Qt {
1620
1414
  };
1621
- pt.styles = [te, er];
1415
+ pt.styles = [te, ei];
1622
1416
  pt = h([
1623
1417
  S("mdif4-primary-tab")
1624
1418
  ], pt);
1625
- /**
1626
- * @license
1627
- * Copyright 2023 Google LLC
1628
- * SPDX-License-Identifier: Apache-2.0
1629
- */
1630
- class rr extends _ {
1419
+ class ii extends _ {
1631
1420
  constructor() {
1632
1421
  super(...arguments), this.fullWidthIndicator = !0;
1633
1422
  }
1634
1423
  }
1635
- /**
1636
- * @license
1637
- * Copyright 2024 Google LLC
1638
- * SPDX-License-Identifier: Apache-2.0
1639
- */
1640
- const ir = $`:host{--_active-indicator-color: var(--mdif4-secondary-tab-active-indicator-color, var(--mdif4-sys-color-primary, #6750a4));--_active-indicator-height: var(--mdif4-secondary-tab-active-indicator-height, 2px);--_active-label-text-color: var(--mdif4-secondary-tab-active-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_container-color: var(--mdif4-secondary-tab-container-color, var(--mdif4-sys-color-surface, #fef7ff));--_container-elevation: var(--mdif4-secondary-tab-container-elevation, 0);--_container-height: var(--mdif4-secondary-tab-container-height, 48px);--_focus-label-text-color: var(--mdif4-secondary-tab-focus-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--mdif4-secondary-tab-hover-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-state-layer-color: var(--mdif4-secondary-tab-hover-state-layer-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--mdif4-secondary-tab-hover-state-layer-opacity, 0.08);--_label-text-font: var(--mdif4-secondary-tab-label-text-font, var(--mdif4-sys-typescale-title-small-font, var(--mdif4-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--mdif4-secondary-tab-label-text-line-height, var(--mdif4-sys-typescale-title-small-line-height, 1.25rem));--_label-text-size: var(--mdif4-secondary-tab-label-text-size, var(--mdif4-sys-typescale-title-small-size, 0.875rem));--_label-text-weight: var(--mdif4-secondary-tab-label-text-weight, var(--mdif4-sys-typescale-title-small-weight, var(--mdif4-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--mdif4-secondary-tab-pressed-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_pressed-state-layer-color: var(--mdif4-secondary-tab-pressed-state-layer-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_pressed-state-layer-opacity: var(--mdif4-secondary-tab-pressed-state-layer-opacity, 0.12);--_active-focus-icon-color: var(--mdif4-secondary-tab-active-focus-icon-color, );--_active-focus-label-text-color: var(--mdif4-secondary-tab-active-focus-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_active-hover-icon-color: var(--mdif4-secondary-tab-active-hover-icon-color, );--_active-hover-label-text-color: var(--mdif4-secondary-tab-active-hover-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_active-hover-state-layer-color: var(--mdif4-secondary-tab-active-hover-state-layer-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_active-hover-state-layer-opacity: var(--mdif4-secondary-tab-active-hover-state-layer-opacity, 0.08);--_active-icon-color: var(--mdif4-secondary-tab-active-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_active-indicator-shape: var(--mdif4-secondary-tab-active-indicator-shape, 0);--_active-pressed-icon-color: var(--mdif4-secondary-tab-active-pressed-icon-color, );--_active-pressed-label-text-color: var(--mdif4-secondary-tab-active-pressed-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_active-pressed-state-layer-color: var(--mdif4-secondary-tab-active-pressed-state-layer-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_active-pressed-state-layer-opacity: var(--mdif4-secondary-tab-active-pressed-state-layer-opacity, 0.12);--_label-text-color: var(--mdif4-secondary-tab-label-text-color, var(--mdif4-sys-color-on-surface-variant, #49454f));--_focus-icon-color: var(--mdif4-secondary-tab-focus-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-icon-color: var(--mdif4-secondary-tab-hover-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_icon-size: var(--mdif4-secondary-tab-icon-size, 24px);--_icon-color: var(--mdif4-secondary-tab-icon-color, var(--mdif4-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--mdif4-secondary-tab-pressed-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_container-shape-start-start: var(--mdif4-secondary-tab-container-shape-start-start, var(--mdif4-secondary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)));--_container-shape-start-end: var(--mdif4-secondary-tab-container-shape-start-end, var(--mdif4-secondary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)));--_container-shape-end-end: var(--mdif4-secondary-tab-container-shape-end-end, var(--mdif4-secondary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)));--_container-shape-end-start: var(--mdif4-secondary-tab-container-shape-end-start, var(--mdif4-secondary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)))}
1424
+ const ri = $`:host{--_active-indicator-color: var(--mdif4-secondary-tab-active-indicator-color, var(--mdif4-sys-color-primary, #6750a4));--_active-indicator-height: var(--mdif4-secondary-tab-active-indicator-height, 2px);--_active-label-text-color: var(--mdif4-secondary-tab-active-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_container-color: var(--mdif4-secondary-tab-container-color, var(--mdif4-sys-color-surface, #fef7ff));--_container-elevation: var(--mdif4-secondary-tab-container-elevation, 0);--_container-height: var(--mdif4-secondary-tab-container-height, 48px);--_focus-label-text-color: var(--mdif4-secondary-tab-focus-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-label-text-color: var(--mdif4-secondary-tab-hover-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-state-layer-color: var(--mdif4-secondary-tab-hover-state-layer-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-state-layer-opacity: var(--mdif4-secondary-tab-hover-state-layer-opacity, 0.08);--_label-text-font: var(--mdif4-secondary-tab-label-text-font, var(--mdif4-sys-typescale-title-small-font, var(--mdif4-ref-typeface-plain, Roboto)));--_label-text-line-height: var(--mdif4-secondary-tab-label-text-line-height, var(--mdif4-sys-typescale-title-small-line-height, 1.25rem));--_label-text-size: var(--mdif4-secondary-tab-label-text-size, var(--mdif4-sys-typescale-title-small-size, 0.875rem));--_label-text-weight: var(--mdif4-secondary-tab-label-text-weight, var(--mdif4-sys-typescale-title-small-weight, var(--mdif4-ref-typeface-weight-medium, 500)));--_pressed-label-text-color: var(--mdif4-secondary-tab-pressed-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_pressed-state-layer-color: var(--mdif4-secondary-tab-pressed-state-layer-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_pressed-state-layer-opacity: var(--mdif4-secondary-tab-pressed-state-layer-opacity, 0.12);--_active-focus-icon-color: var(--mdif4-secondary-tab-active-focus-icon-color, );--_active-focus-label-text-color: var(--mdif4-secondary-tab-active-focus-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_active-hover-icon-color: var(--mdif4-secondary-tab-active-hover-icon-color, );--_active-hover-label-text-color: var(--mdif4-secondary-tab-active-hover-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_active-hover-state-layer-color: var(--mdif4-secondary-tab-active-hover-state-layer-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_active-hover-state-layer-opacity: var(--mdif4-secondary-tab-active-hover-state-layer-opacity, 0.08);--_active-icon-color: var(--mdif4-secondary-tab-active-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_active-indicator-shape: var(--mdif4-secondary-tab-active-indicator-shape, 0);--_active-pressed-icon-color: var(--mdif4-secondary-tab-active-pressed-icon-color, );--_active-pressed-label-text-color: var(--mdif4-secondary-tab-active-pressed-label-text-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_active-pressed-state-layer-color: var(--mdif4-secondary-tab-active-pressed-state-layer-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_active-pressed-state-layer-opacity: var(--mdif4-secondary-tab-active-pressed-state-layer-opacity, 0.12);--_label-text-color: var(--mdif4-secondary-tab-label-text-color, var(--mdif4-sys-color-on-surface-variant, #49454f));--_focus-icon-color: var(--mdif4-secondary-tab-focus-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_hover-icon-color: var(--mdif4-secondary-tab-hover-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_icon-size: var(--mdif4-secondary-tab-icon-size, 24px);--_icon-color: var(--mdif4-secondary-tab-icon-color, var(--mdif4-sys-color-on-surface-variant, #49454f));--_pressed-icon-color: var(--mdif4-secondary-tab-pressed-icon-color, var(--mdif4-sys-color-on-surface, #1d1b20));--_container-shape-start-start: var(--mdif4-secondary-tab-container-shape-start-start, var(--mdif4-secondary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)));--_container-shape-start-end: var(--mdif4-secondary-tab-container-shape-start-end, var(--mdif4-secondary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)));--_container-shape-end-end: var(--mdif4-secondary-tab-container-shape-end-end, var(--mdif4-secondary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)));--_container-shape-end-start: var(--mdif4-secondary-tab-container-shape-end-start, var(--mdif4-secondary-tab-container-shape, var(--mdif4-sys-shape-corner-none, 0px)))}
1641
1425
  `;
1642
- /**
1643
- * @license
1644
- * Copyright 2023 Google LLC
1645
- * SPDX-License-Identifier: Apache-2.0
1646
- */
1647
- let ft = class extends rr {
1426
+ let ft = class extends ii {
1648
1427
  };
1649
- ft.styles = [te, ir];
1428
+ ft.styles = [te, ri];
1650
1429
  ft = h([
1651
1430
  S("mdif4-secondary-tab")
1652
1431
  ], ft);
1653
- var sr = Object.defineProperty, W = (s, t, e, r) => {
1654
- for (var i = void 0, o = s.length - 1, a; o >= 0; o--)
1655
- (a = s[o]) && (i = a(t, e, i) || i);
1656
- return i && sr(t, e, i), i;
1432
+ var si = Object.defineProperty, W = (s, t, e, i) => {
1433
+ for (var r = void 0, o = s.length - 1, a; o >= 0; o--)
1434
+ (a = s[o]) && (r = a(t, e, r) || r);
1435
+ return r && si(t, e, r), r;
1657
1436
  };
1658
1437
  const xt = class xt extends g {
1659
1438
  constructor() {
1660
- super(...arguments), this.version = "1.0.9";
1439
+ super(...arguments), this.version = "1.0.10";
1661
1440
  }
1662
1441
  update(t) {
1663
1442
  t.has("theme") && this.registerTheme(this.theme), super.update(t);
@@ -1666,8 +1445,8 @@ const xt = class xt extends g {
1666
1445
  this.registerTheme(this.theme);
1667
1446
  }
1668
1447
  registerTheme(t) {
1669
- const e = getComputedStyle(this).getPropertyValue("--re-text-color").trim(), r = getComputedStyle(this).getPropertyValue("--re-tile-background-color").trim();
1670
- this.themeBgColor = r || this.theme?.theme_object?.backgroundColor, this.themeTitleColor = e || this.theme?.theme_object?.title?.textStyle?.color;
1448
+ const e = getComputedStyle(this).getPropertyValue("--re-text-color").trim(), i = getComputedStyle(this).getPropertyValue("--re-tile-background-color").trim();
1449
+ this.themeBgColor = i || this.theme?.theme_object?.backgroundColor, this.themeTitleColor = e || this.theme?.theme_object?.title?.textStyle?.color;
1671
1450
  }
1672
1451
  handleNavItemClick(t) {
1673
1452
  const e = new CustomEvent("nav-submit", {
@@ -1688,15 +1467,15 @@ const xt = class xt extends g {
1688
1467
  }
1689
1468
  matchesRoute(t) {
1690
1469
  if (t === void 0) return !1;
1691
- const e = this.trimRoute(decodeURIComponent(this.route || "/")), r = this.trimRoute(t);
1692
- return t.startsWith("/") ? e.startsWith(r) : e.endsWith(r) || e === r;
1470
+ const e = this.trimRoute(decodeURIComponent(this.route || "/")), i = this.trimRoute(t);
1471
+ return t.startsWith("/") ? e.startsWith(i) : e.endsWith(i) || e === i;
1693
1472
  }
1694
1473
  render() {
1695
- const t = this.inputData?.style?.fontSize ?? 16, e = (this.inputData?.style?.fontSize ?? 16) * 1.5, r = this.inputData?.style?.color || this.themeTitleColor || "black", i = this.inputData?.style?.backgroundColor || this.themeBgColor || "white";
1474
+ const t = this.inputData?.style?.fontSize ?? 16, e = (this.inputData?.style?.fontSize ?? 16) * 1.5, i = this.inputData?.style?.color || this.themeTitleColor || "black", r = this.inputData?.style?.backgroundColor || this.themeBgColor || "white";
1696
1475
  return A`
1697
1476
  <div
1698
1477
  class="wrapper"
1699
- style="background-color: ${i}; color: ${r};
1478
+ style="background-color: ${r}; color: ${i};
1700
1479
  font-weight: ${this.inputData?.style?.fontWeight};
1701
1480
  font-size: ${t}px;"
1702
1481
  >
@@ -1716,14 +1495,14 @@ const xt = class xt extends g {
1716
1495
  <mdif4-secondary-tab
1717
1496
  ?active=${this.matchesRoute(this.addSlashes(o))}
1718
1497
  style="font-size: ${t}px;
1719
- --mdif4-secondary-tab-container-color: ${i};
1720
- color: ${r};"
1498
+ --mdif4-secondary-tab-container-color: ${r};
1499
+ color: ${i};"
1721
1500
  @click=${() => this.handleNavItemClick(this.addSlashes(o))}
1722
1501
  >
1723
1502
  ${o.iconName ? A`
1724
1503
  <mdif4-icon
1725
1504
  slot="icon"
1726
- style="font-size: ${e}px;width: ${e}px;color: ${r}"
1505
+ style="font-size: ${e}px;width: ${e}px;color: ${i}"
1727
1506
  >
1728
1507
  ${o.iconName}
1729
1508
  </mdif4-icon>
@@ -1770,6 +1549,8 @@ xt.styles = $`
1770
1549
  margin: 0;
1771
1550
  padding: 0px;
1772
1551
  font-size: 1.2em;
1552
+ line-height: 2.5;
1553
+ height: 48px;
1773
1554
  }
1774
1555
  `;
1775
1556
  let E = xt;
@@ -1788,7 +1569,7 @@ W([
1788
1569
  W([
1789
1570
  F()
1790
1571
  ], E.prototype, "themeTitleColor");
1791
- window.customElements.define("widget-navbar-1.0.9", E);
1572
+ window.customElements.define("widget-navbar-1.0.10", E);
1792
1573
  export {
1793
1574
  E as WidgetNavbar
1794
1575
  };