xactsize-webcomponents 1.0.17 → 1.0.18

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,8 +1,8 @@
1
1
  const wA = (l, A, t) => {
2
2
  const r = l[A];
3
- return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((e, p) => {
3
+ return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((e, V) => {
4
4
  (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
5
- p.bind(
5
+ V.bind(
6
6
  null,
7
7
  new Error(
8
8
  "Unknown variable dynamic import: " + A + (A.split("/").length !== t ? ". Note that variables only represent file names one level deep." : "")
@@ -16,16 +16,16 @@ const wA = (l, A, t) => {
16
16
  * Copyright 2019 Google LLC
17
17
  * SPDX-License-Identifier: BSD-3-Clause
18
18
  */
19
- const B = globalThis, uA = B.ShadowRoot && (B.ShadyCSS === void 0 || B.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, dA = Symbol(), TA = /* @__PURE__ */ new WeakMap();
19
+ const g = globalThis, yA = g.ShadowRoot && (g.ShadyCSS === void 0 || g.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, uA = Symbol(), TA = /* @__PURE__ */ new WeakMap();
20
20
  let ZA = class {
21
21
  constructor(A, t, r) {
22
- if (this._$cssResult$ = !0, r !== dA) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
22
+ if (this._$cssResult$ = !0, r !== uA) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
23
23
  this.cssText = A, this.t = t;
24
24
  }
25
25
  get styleSheet() {
26
26
  let A = this.o;
27
27
  const t = this.t;
28
- if (uA && A === void 0) {
28
+ if (yA && A === void 0) {
29
29
  const r = t !== void 0 && t.length === 1;
30
30
  r && (A = TA.get(t)), A === void 0 && ((this.o = A = new CSSStyleSheet()).replaceSync(this.cssText), r && TA.set(t, A));
31
31
  }
@@ -35,20 +35,20 @@ let ZA = class {
35
35
  return this.cssText;
36
36
  }
37
37
  };
38
- const YA = (l) => new ZA(typeof l == "string" ? l : l + "", void 0, dA), N = (l, ...A) => {
39
- const t = l.length === 1 ? l[0] : A.reduce((r, e, p) => r + ((V) => {
40
- if (V._$cssResult$ === !0) return V.cssText;
41
- if (typeof V == "number") return V;
42
- throw Error("Value passed to 'css' function must be a 'css' function result: " + V + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
43
- })(e) + l[p + 1], l[0]);
44
- return new ZA(t, l, dA);
38
+ const YA = (l) => new ZA(typeof l == "string" ? l : l + "", void 0, uA), Z = (l, ...A) => {
39
+ const t = l.length === 1 ? l[0] : A.reduce((r, e, V) => r + ((p) => {
40
+ if (p._$cssResult$ === !0) return p.cssText;
41
+ if (typeof p == "number") return p;
42
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + p + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
43
+ })(e) + l[V + 1], l[0]);
44
+ return new ZA(t, l, uA);
45
45
  }, CA = (l, A) => {
46
- if (uA) l.adoptedStyleSheets = A.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
46
+ if (yA) l.adoptedStyleSheets = A.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
47
47
  else for (const t of A) {
48
- const r = document.createElement("style"), e = B.litNonce;
48
+ const r = document.createElement("style"), e = g.litNonce;
49
49
  e !== void 0 && r.setAttribute("nonce", e), r.textContent = t.cssText, l.appendChild(r);
50
50
  }
51
- }, XA = uA ? (l) => l : (l) => l instanceof CSSStyleSheet ? ((A) => {
51
+ }, XA = yA ? (l) => l : (l) => l instanceof CSSStyleSheet ? ((A) => {
52
52
  let t = "";
53
53
  for (const r of A.cssRules) t += r.cssText;
54
54
  return YA(t);
@@ -58,7 +58,7 @@ const YA = (l) => new ZA(typeof l == "string" ? l : l + "", void 0, dA), N = (l,
58
58
  * Copyright 2017 Google LLC
59
59
  * SPDX-License-Identifier: BSD-3-Clause
60
60
  */
61
- const { is: DA, defineProperty: QA, getOwnPropertyDescriptor: gA, getOwnPropertyNames: BA, getOwnPropertySymbols: _A, getPrototypeOf: $A } = Object, s = globalThis, xA = s.trustedTypes, At = xA ? xA.emptyScript : "", eA = s.reactiveElementPolyfillSupport, z = (l, A) => l, _ = { toAttribute(l, A) {
61
+ const { is: DA, defineProperty: QA, getOwnPropertyDescriptor: gA, getOwnPropertyNames: BA, getOwnPropertySymbols: _A, getPrototypeOf: $A } = Object, s = globalThis, xA = s.trustedTypes, At = xA ? xA.emptyScript : "", lA = s.reactiveElementPolyfillSupport, H = (l, A) => l, B = { toAttribute(l, A) {
62
62
  switch (A) {
63
63
  case Boolean:
64
64
  l = l ? At : null;
@@ -86,9 +86,9 @@ const { is: DA, defineProperty: QA, getOwnPropertyDescriptor: gA, getOwnProperty
86
86
  }
87
87
  }
88
88
  return t;
89
- } }, jA = (l, A) => !DA(l, A), KA = { attribute: !0, type: String, converter: _, reflect: !1, useDefault: !1, hasChanged: jA };
89
+ } }, dA = (l, A) => !DA(l, A), KA = { attribute: !0, type: String, converter: B, reflect: !1, useDefault: !1, hasChanged: dA };
90
90
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), s.litPropertyMetadata ?? (s.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
91
- let m = class extends HTMLElement {
91
+ let P = class extends HTMLElement {
92
92
  static addInitializer(A) {
93
93
  this._$Ei(), (this.l ?? (this.l = [])).push(A);
94
94
  }
@@ -102,27 +102,27 @@ let m = class extends HTMLElement {
102
102
  }
103
103
  }
104
104
  static getPropertyDescriptor(A, t, r) {
105
- const { get: e, set: p } = gA(this.prototype, A) ?? { get() {
105
+ const { get: e, set: V } = gA(this.prototype, A) ?? { get() {
106
106
  return this[t];
107
- }, set(V) {
108
- this[t] = V;
107
+ }, set(p) {
108
+ this[t] = p;
109
109
  } };
110
- return { get: e, set(V) {
110
+ return { get: e, set(p) {
111
111
  const S = e == null ? void 0 : e.call(this);
112
- p == null || p.call(this, V), this.requestUpdate(A, S, r);
112
+ V == null || V.call(this, p), this.requestUpdate(A, S, r);
113
113
  }, configurable: !0, enumerable: !0 };
114
114
  }
115
115
  static getPropertyOptions(A) {
116
116
  return this.elementProperties.get(A) ?? KA;
117
117
  }
118
118
  static _$Ei() {
119
- if (this.hasOwnProperty(z("elementProperties"))) return;
119
+ if (this.hasOwnProperty(H("elementProperties"))) return;
120
120
  const A = $A(this);
121
121
  A.finalize(), A.l !== void 0 && (this.l = [...A.l]), this.elementProperties = new Map(A.elementProperties);
122
122
  }
123
123
  static finalize() {
124
- if (this.hasOwnProperty(z("finalized"))) return;
125
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(z("properties"))) {
124
+ if (this.hasOwnProperty(H("finalized"))) return;
125
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(H("properties"))) {
126
126
  const t = this.properties, r = [...BA(t), ..._A(t)];
127
127
  for (const e of r) this.createProperty(e, t[e]);
128
128
  }
@@ -194,32 +194,32 @@ let m = class extends HTMLElement {
194
194
  this._$AK(A, r);
195
195
  }
196
196
  _$ET(A, t) {
197
- var p;
197
+ var V;
198
198
  const r = this.constructor.elementProperties.get(A), e = this.constructor._$Eu(A, r);
199
199
  if (e !== void 0 && r.reflect === !0) {
200
- const V = (((p = r.converter) == null ? void 0 : p.toAttribute) !== void 0 ? r.converter : _).toAttribute(t, r.type);
201
- this._$Em = A, V == null ? this.removeAttribute(e) : this.setAttribute(e, V), this._$Em = null;
200
+ const p = (((V = r.converter) == null ? void 0 : V.toAttribute) !== void 0 ? r.converter : B).toAttribute(t, r.type);
201
+ this._$Em = A, p == null ? this.removeAttribute(e) : this.setAttribute(e, p), this._$Em = null;
202
202
  }
203
203
  }
204
204
  _$AK(A, t) {
205
- var p, V;
205
+ var V, p;
206
206
  const r = this.constructor, e = r._$Eh.get(A);
207
207
  if (e !== void 0 && this._$Em !== e) {
208
- const S = r.getPropertyOptions(e), n = typeof S.converter == "function" ? { fromAttribute: S.converter } : ((p = S.converter) == null ? void 0 : p.fromAttribute) !== void 0 ? S.converter : _;
209
- this._$Em = e, this[e] = n.fromAttribute(t, S.type) ?? ((V = this._$Ej) == null ? void 0 : V.get(e)) ?? null, this._$Em = null;
208
+ const S = r.getPropertyOptions(e), n = typeof S.converter == "function" ? { fromAttribute: S.converter } : ((V = S.converter) == null ? void 0 : V.fromAttribute) !== void 0 ? S.converter : B;
209
+ this._$Em = e, this[e] = n.fromAttribute(t, S.type) ?? ((p = this._$Ej) == null ? void 0 : p.get(e)) ?? null, this._$Em = null;
210
210
  }
211
211
  }
212
212
  requestUpdate(A, t, r) {
213
213
  var e;
214
214
  if (A !== void 0) {
215
- const p = this.constructor, V = this[A];
216
- if (r ?? (r = p.getPropertyOptions(A)), !((r.hasChanged ?? jA)(V, t) || r.useDefault && r.reflect && V === ((e = this._$Ej) == null ? void 0 : e.get(A)) && !this.hasAttribute(p._$Eu(A, r)))) return;
215
+ const V = this.constructor, p = this[A];
216
+ if (r ?? (r = V.getPropertyOptions(A)), !((r.hasChanged ?? dA)(p, t) || r.useDefault && r.reflect && p === ((e = this._$Ej) == null ? void 0 : e.get(A)) && !this.hasAttribute(V._$Eu(A, r)))) return;
217
217
  this.C(A, t, r);
218
218
  }
219
219
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
220
220
  }
221
- C(A, t, { useDefault: r, reflect: e, wrapped: p }, V) {
222
- r && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(A) && (this._$Ej.set(A, V ?? t ?? this[A]), p !== !0 || V !== void 0) || (this._$AL.has(A) || (this.hasUpdated || r || (t = void 0), this._$AL.set(A, t)), e === !0 && this._$Em !== A && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(A));
221
+ C(A, t, { useDefault: r, reflect: e, wrapped: V }, p) {
222
+ r && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(A) && (this._$Ej.set(A, p ?? t ?? this[A]), V !== !0 || p !== void 0) || (this._$AL.has(A) || (this.hasUpdated || r || (t = void 0), this._$AL.set(A, t)), e === !0 && this._$Em !== A && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(A));
223
223
  }
224
224
  async _$EP() {
225
225
  this.isUpdatePending = !0;
@@ -239,21 +239,21 @@ let m = class extends HTMLElement {
239
239
  if (!this.isUpdatePending) return;
240
240
  if (!this.hasUpdated) {
241
241
  if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
242
- for (const [p, V] of this._$Ep) this[p] = V;
242
+ for (const [V, p] of this._$Ep) this[V] = p;
243
243
  this._$Ep = void 0;
244
244
  }
245
245
  const e = this.constructor.elementProperties;
246
- if (e.size > 0) for (const [p, V] of e) {
247
- const { wrapped: S } = V, n = this[p];
248
- S !== !0 || this._$AL.has(p) || n === void 0 || this.C(p, void 0, V, n);
246
+ if (e.size > 0) for (const [V, p] of e) {
247
+ const { wrapped: S } = p, n = this[V];
248
+ S !== !0 || this._$AL.has(V) || n === void 0 || this.C(V, void 0, p, n);
249
249
  }
250
250
  }
251
251
  let A = !1;
252
252
  const t = this._$AL;
253
253
  try {
254
254
  A = this.shouldUpdate(t), A ? (this.willUpdate(t), (r = this._$EO) == null || r.forEach((e) => {
255
- var p;
256
- return (p = e.hostUpdate) == null ? void 0 : p.call(e);
255
+ var V;
256
+ return (V = e.hostUpdate) == null ? void 0 : V.call(e);
257
257
  }), this.update(t)) : this._$EM();
258
258
  } catch (e) {
259
259
  throw A = !1, this._$EM(), e;
@@ -289,61 +289,61 @@ let m = class extends HTMLElement {
289
289
  firstUpdated(A) {
290
290
  }
291
291
  };
292
- m.elementStyles = [], m.shadowRootOptions = { mode: "open" }, m[z("elementProperties")] = /* @__PURE__ */ new Map(), m[z("finalized")] = /* @__PURE__ */ new Map(), eA == null || eA({ ReactiveElement: m }), (s.reactiveElementVersions ?? (s.reactiveElementVersions = [])).push("2.1.0");
292
+ P.elementStyles = [], P.shadowRootOptions = { mode: "open" }, P[H("elementProperties")] = /* @__PURE__ */ new Map(), P[H("finalized")] = /* @__PURE__ */ new Map(), lA == null || lA({ ReactiveElement: P }), (s.reactiveElementVersions ?? (s.reactiveElementVersions = [])).push("2.1.0");
293
293
  /**
294
294
  * @license
295
295
  * Copyright 2017 Google LLC
296
296
  * SPDX-License-Identifier: BSD-3-Clause
297
297
  */
298
- const G = globalThis, $ = G.trustedTypes, UA = $ ? $.createPolicy("lit-html", { createHTML: (l) => l }) : void 0, NA = "$lit$", W = `lit$${Math.random().toFixed(9).slice(2)}$`, RA = "?" + W, tt = `<${RA}>`, L = document, F = () => L.createComment(""), M = (l) => l === null || typeof l != "object" && typeof l != "function", cA = Array.isArray, lt = (l) => cA(l) || typeof (l == null ? void 0 : l[Symbol.iterator]) == "function", rA = `[
299
- \f\r]`, H = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, WA = /-->/g, sA = />/g, i = RegExp(`>|${rA}(?:([^\\s"'>=/]+)(${rA}*=${rA}*(?:[^
300
- \f\r"'\`<>=]|("|')|))|$)`, "g"), iA = /'/g, vA = /"/g, HA = /^(?:script|style|textarea|title)$/i, et = (l) => (A, ...t) => ({ _$litType$: l, strings: A, values: t }), T = et(1), f = Symbol.for("lit-noChange"), c = Symbol.for("lit-nothing"), OA = /* @__PURE__ */ new WeakMap(), O = L.createTreeWalker(L, 129);
298
+ const z = globalThis, _ = z.trustedTypes, UA = _ ? _.createPolicy("lit-html", { createHTML: (l) => l }) : void 0, NA = "$lit$", W = `lit$${Math.random().toFixed(9).slice(2)}$`, RA = "?" + W, tt = `<${RA}>`, L = document, G = () => L.createComment(""), F = (l) => l === null || typeof l != "object" && typeof l != "function", jA = Array.isArray, lt = (l) => jA(l) || typeof (l == null ? void 0 : l[Symbol.iterator]) == "function", eA = `[
299
+ \f\r]`, R = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, WA = /-->/g, sA = />/g, i = RegExp(`>|${eA}(?:([^\\s"'>=/]+)(${eA}*=${eA}*(?:[^
300
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), iA = /'/g, vA = /"/g, HA = /^(?:script|style|textarea|title)$/i, et = (l) => (A, ...t) => ({ _$litType$: l, strings: A, values: t }), T = et(1), f = Symbol.for("lit-noChange"), j = Symbol.for("lit-nothing"), OA = /* @__PURE__ */ new WeakMap(), O = L.createTreeWalker(L, 129);
301
301
  function zA(l, A) {
302
- if (!cA(l) || !l.hasOwnProperty("raw")) throw Error("invalid template strings array");
302
+ if (!jA(l) || !l.hasOwnProperty("raw")) throw Error("invalid template strings array");
303
303
  return UA !== void 0 ? UA.createHTML(A) : A;
304
304
  }
305
305
  const rt = (l, A) => {
306
306
  const t = l.length - 1, r = [];
307
- let e, p = A === 2 ? "<svg>" : A === 3 ? "<math>" : "", V = H;
307
+ let e, V = A === 2 ? "<svg>" : A === 3 ? "<math>" : "", p = R;
308
308
  for (let S = 0; S < t; S++) {
309
309
  const n = l[S];
310
310
  let d, k, y = -1, x = 0;
311
- for (; x < n.length && (V.lastIndex = x, k = V.exec(n), k !== null); ) x = V.lastIndex, V === H ? k[1] === "!--" ? V = WA : k[1] !== void 0 ? V = sA : k[2] !== void 0 ? (HA.test(k[2]) && (e = RegExp("</" + k[2], "g")), V = i) : k[3] !== void 0 && (V = i) : V === i ? k[0] === ">" ? (V = e ?? H, y = -1) : k[1] === void 0 ? y = -2 : (y = V.lastIndex - k[2].length, d = k[1], V = k[3] === void 0 ? i : k[3] === '"' ? vA : iA) : V === vA || V === iA ? V = i : V === WA || V === sA ? V = H : (V = i, e = void 0);
312
- const U = V === i && l[S + 1].startsWith("/>") ? " " : "";
313
- p += V === H ? n + tt : y >= 0 ? (r.push(d), n.slice(0, y) + NA + n.slice(y) + W + U) : n + W + (y === -2 ? S : U);
311
+ for (; x < n.length && (p.lastIndex = x, k = p.exec(n), k !== null); ) x = p.lastIndex, p === R ? k[1] === "!--" ? p = WA : k[1] !== void 0 ? p = sA : k[2] !== void 0 ? (HA.test(k[2]) && (e = RegExp("</" + k[2], "g")), p = i) : k[3] !== void 0 && (p = i) : p === i ? k[0] === ">" ? (p = e ?? R, y = -1) : k[1] === void 0 ? y = -2 : (y = p.lastIndex - k[2].length, d = k[1], p = k[3] === void 0 ? i : k[3] === '"' ? vA : iA) : p === vA || p === iA ? p = i : p === WA || p === sA ? p = R : (p = i, e = void 0);
312
+ const U = p === i && l[S + 1].startsWith("/>") ? " " : "";
313
+ V += p === R ? n + tt : y >= 0 ? (r.push(d), n.slice(0, y) + NA + n.slice(y) + W + U) : n + W + (y === -2 ? S : U);
314
314
  }
315
- return [zA(l, p + (l[t] || "<?>") + (A === 2 ? "</svg>" : A === 3 ? "</math>" : "")), r];
315
+ return [zA(l, V + (l[t] || "<?>") + (A === 2 ? "</svg>" : A === 3 ? "</math>" : "")), r];
316
316
  };
317
- class h {
317
+ class M {
318
318
  constructor({ strings: A, _$litType$: t }, r) {
319
319
  let e;
320
320
  this.parts = [];
321
- let p = 0, V = 0;
321
+ let V = 0, p = 0;
322
322
  const S = A.length - 1, n = this.parts, [d, k] = rt(A, t);
323
- if (this.el = h.createElement(d, r), O.currentNode = this.el.content, t === 2 || t === 3) {
323
+ if (this.el = M.createElement(d, r), O.currentNode = this.el.content, t === 2 || t === 3) {
324
324
  const y = this.el.content.firstChild;
325
325
  y.replaceWith(...y.childNodes);
326
326
  }
327
327
  for (; (e = O.nextNode()) !== null && n.length < S; ) {
328
328
  if (e.nodeType === 1) {
329
329
  if (e.hasAttributes()) for (const y of e.getAttributeNames()) if (y.endsWith(NA)) {
330
- const x = k[V++], U = e.getAttribute(y).split(W), Q = /([.?@])?(.*)/.exec(x);
331
- n.push({ type: 1, index: p, name: Q[2], strings: U, ctor: Q[1] === "." ? Vt : Q[1] === "?" ? qt : Q[1] === "@" ? nt : lA }), e.removeAttribute(y);
332
- } else y.startsWith(W) && (n.push({ type: 6, index: p }), e.removeAttribute(y));
330
+ const x = k[p++], U = e.getAttribute(y).split(W), D = /([.?@])?(.*)/.exec(x);
331
+ n.push({ type: 1, index: V, name: D[2], strings: U, ctor: D[1] === "." ? pt : D[1] === "?" ? qt : D[1] === "@" ? nt : tA }), e.removeAttribute(y);
332
+ } else y.startsWith(W) && (n.push({ type: 6, index: V }), e.removeAttribute(y));
333
333
  if (HA.test(e.tagName)) {
334
334
  const y = e.textContent.split(W), x = y.length - 1;
335
335
  if (x > 0) {
336
- e.textContent = $ ? $.emptyScript : "";
337
- for (let U = 0; U < x; U++) e.append(y[U], F()), O.nextNode(), n.push({ type: 2, index: ++p });
338
- e.append(y[x], F());
336
+ e.textContent = _ ? _.emptyScript : "";
337
+ for (let U = 0; U < x; U++) e.append(y[U], G()), O.nextNode(), n.push({ type: 2, index: ++V });
338
+ e.append(y[x], G());
339
339
  }
340
340
  }
341
- } else if (e.nodeType === 8) if (e.data === RA) n.push({ type: 2, index: p });
341
+ } else if (e.nodeType === 8) if (e.data === RA) n.push({ type: 2, index: V });
342
342
  else {
343
343
  let y = -1;
344
- for (; (y = e.data.indexOf(W, y + 1)) !== -1; ) n.push({ type: 7, index: p }), y += W.length - 1;
344
+ for (; (y = e.data.indexOf(W, y + 1)) !== -1; ) n.push({ type: 7, index: V }), y += W.length - 1;
345
345
  }
346
- p++;
346
+ V++;
347
347
  }
348
348
  }
349
349
  static createElement(A, t) {
@@ -351,14 +351,14 @@ class h {
351
351
  return r.innerHTML = A, r;
352
352
  }
353
353
  }
354
- function Z(l, A, t = l, r) {
355
- var V, S;
354
+ function m(l, A, t = l, r) {
355
+ var p, S;
356
356
  if (A === f) return A;
357
- let e = r !== void 0 ? (V = t._$Co) == null ? void 0 : V[r] : t._$Cl;
358
- const p = M(A) ? void 0 : A._$litDirective$;
359
- return (e == null ? void 0 : e.constructor) !== p && ((S = e == null ? void 0 : e._$AO) == null || S.call(e, !1), p === void 0 ? e = void 0 : (e = new p(l), e._$AT(l, t, r)), r !== void 0 ? (t._$Co ?? (t._$Co = []))[r] = e : t._$Cl = e), e !== void 0 && (A = Z(l, e._$AS(l, A.values), e, r)), A;
357
+ let e = r !== void 0 ? (p = t._$Co) == null ? void 0 : p[r] : t._$Cl;
358
+ const V = F(A) ? void 0 : A._$litDirective$;
359
+ return (e == null ? void 0 : e.constructor) !== V && ((S = e == null ? void 0 : e._$AO) == null || S.call(e, !1), V === void 0 ? e = void 0 : (e = new V(l), e._$AT(l, t, r)), r !== void 0 ? (t._$Co ?? (t._$Co = []))[r] = e : t._$Cl = e), e !== void 0 && (A = m(l, e._$AS(l, A.values), e, r)), A;
360
360
  }
361
- class pt {
361
+ class Vt {
362
362
  constructor(A, t) {
363
363
  this._$AV = [], this._$AN = void 0, this._$AD = A, this._$AM = t;
364
364
  }
@@ -371,13 +371,13 @@ class pt {
371
371
  u(A) {
372
372
  const { el: { content: t }, parts: r } = this._$AD, e = ((A == null ? void 0 : A.creationScope) ?? L).importNode(t, !0);
373
373
  O.currentNode = e;
374
- let p = O.nextNode(), V = 0, S = 0, n = r[0];
374
+ let V = O.nextNode(), p = 0, S = 0, n = r[0];
375
375
  for (; n !== void 0; ) {
376
- if (V === n.index) {
376
+ if (p === n.index) {
377
377
  let d;
378
- n.type === 2 ? d = new w(p, p.nextSibling, this, A) : n.type === 1 ? d = new n.ctor(p, n.name, n.strings, this, A) : n.type === 6 && (d = new St(p, this, A)), this._$AV.push(d), n = r[++S];
378
+ n.type === 2 ? d = new w(V, V.nextSibling, this, A) : n.type === 1 ? d = new n.ctor(V, n.name, n.strings, this, A) : n.type === 6 && (d = new St(V, this, A)), this._$AV.push(d), n = r[++S];
379
379
  }
380
- V !== (n == null ? void 0 : n.index) && (p = O.nextNode(), V++);
380
+ p !== (n == null ? void 0 : n.index) && (V = O.nextNode(), p++);
381
381
  }
382
382
  return O.currentNode = L, e;
383
383
  }
@@ -392,7 +392,7 @@ class w {
392
392
  return ((A = this._$AM) == null ? void 0 : A._$AU) ?? this._$Cv;
393
393
  }
394
394
  constructor(A, t, r, e) {
395
- this.type = 2, this._$AH = c, this._$AN = void 0, this._$AA = A, this._$AB = t, this._$AM = r, this.options = e, this._$Cv = (e == null ? void 0 : e.isConnected) ?? !0;
395
+ this.type = 2, this._$AH = j, this._$AN = void 0, this._$AA = A, this._$AB = t, this._$AM = r, this.options = e, this._$Cv = (e == null ? void 0 : e.isConnected) ?? !0;
396
396
  }
397
397
  get parentNode() {
398
398
  let A = this._$AA.parentNode;
@@ -406,7 +406,7 @@ class w {
406
406
  return this._$AB;
407
407
  }
408
408
  _$AI(A, t = this) {
409
- A = Z(this, A, t), M(A) ? A === c || A == null || A === "" ? (this._$AH !== c && this._$AR(), this._$AH = c) : A !== this._$AH && A !== f && this._(A) : A._$litType$ !== void 0 ? this.$(A) : A.nodeType !== void 0 ? this.T(A) : lt(A) ? this.k(A) : this._(A);
409
+ A = m(this, A, t), F(A) ? A === j || A == null || A === "" ? (this._$AH !== j && this._$AR(), this._$AH = j) : A !== this._$AH && A !== f && this._(A) : A._$litType$ !== void 0 ? this.$(A) : A.nodeType !== void 0 ? this.T(A) : lt(A) ? this.k(A) : this._(A);
410
410
  }
411
411
  O(A) {
412
412
  return this._$AA.parentNode.insertBefore(A, this._$AB);
@@ -415,26 +415,26 @@ class w {
415
415
  this._$AH !== A && (this._$AR(), this._$AH = this.O(A));
416
416
  }
417
417
  _(A) {
418
- this._$AH !== c && M(this._$AH) ? this._$AA.nextSibling.data = A : this.T(L.createTextNode(A)), this._$AH = A;
418
+ this._$AH !== j && F(this._$AH) ? this._$AA.nextSibling.data = A : this.T(L.createTextNode(A)), this._$AH = A;
419
419
  }
420
420
  $(A) {
421
- var p;
422
- const { values: t, _$litType$: r } = A, e = typeof r == "number" ? this._$AC(A) : (r.el === void 0 && (r.el = h.createElement(zA(r.h, r.h[0]), this.options)), r);
423
- if (((p = this._$AH) == null ? void 0 : p._$AD) === e) this._$AH.p(t);
421
+ var V;
422
+ const { values: t, _$litType$: r } = A, e = typeof r == "number" ? this._$AC(A) : (r.el === void 0 && (r.el = M.createElement(zA(r.h, r.h[0]), this.options)), r);
423
+ if (((V = this._$AH) == null ? void 0 : V._$AD) === e) this._$AH.p(t);
424
424
  else {
425
- const V = new pt(e, this), S = V.u(this.options);
426
- V.p(t), this.T(S), this._$AH = V;
425
+ const p = new Vt(e, this), S = p.u(this.options);
426
+ p.p(t), this.T(S), this._$AH = p;
427
427
  }
428
428
  }
429
429
  _$AC(A) {
430
430
  let t = OA.get(A.strings);
431
- return t === void 0 && OA.set(A.strings, t = new h(A)), t;
431
+ return t === void 0 && OA.set(A.strings, t = new M(A)), t;
432
432
  }
433
433
  k(A) {
434
- cA(this._$AH) || (this._$AH = [], this._$AR());
434
+ jA(this._$AH) || (this._$AH = [], this._$AR());
435
435
  const t = this._$AH;
436
436
  let r, e = 0;
437
- for (const p of A) e === t.length ? t.push(r = new w(this.O(F()), this.O(F()), this, this.options)) : r = t[e], r._$AI(p), e++;
437
+ for (const V of A) e === t.length ? t.push(r = new w(this.O(G()), this.O(G()), this, this.options)) : r = t[e], r._$AI(V), e++;
438
438
  e < t.length && (this._$AR(r && r._$AB.nextSibling, e), t.length = e);
439
439
  }
440
440
  _$AR(A = this._$AA.nextSibling, t) {
@@ -449,55 +449,55 @@ class w {
449
449
  this._$AM === void 0 && (this._$Cv = A, (t = this._$AP) == null || t.call(this, A));
450
450
  }
451
451
  }
452
- class lA {
452
+ class tA {
453
453
  get tagName() {
454
454
  return this.element.tagName;
455
455
  }
456
456
  get _$AU() {
457
457
  return this._$AM._$AU;
458
458
  }
459
- constructor(A, t, r, e, p) {
460
- this.type = 1, this._$AH = c, this._$AN = void 0, this.element = A, this.name = t, this._$AM = e, this.options = p, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$AH = Array(r.length - 1).fill(new String()), this.strings = r) : this._$AH = c;
459
+ constructor(A, t, r, e, V) {
460
+ this.type = 1, this._$AH = j, this._$AN = void 0, this.element = A, this.name = t, this._$AM = e, this.options = V, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$AH = Array(r.length - 1).fill(new String()), this.strings = r) : this._$AH = j;
461
461
  }
462
462
  _$AI(A, t = this, r, e) {
463
- const p = this.strings;
464
- let V = !1;
465
- if (p === void 0) A = Z(this, A, t, 0), V = !M(A) || A !== this._$AH && A !== f, V && (this._$AH = A);
463
+ const V = this.strings;
464
+ let p = !1;
465
+ if (V === void 0) A = m(this, A, t, 0), p = !F(A) || A !== this._$AH && A !== f, p && (this._$AH = A);
466
466
  else {
467
467
  const S = A;
468
468
  let n, d;
469
- for (A = p[0], n = 0; n < p.length - 1; n++) d = Z(this, S[r + n], t, n), d === f && (d = this._$AH[n]), V || (V = !M(d) || d !== this._$AH[n]), d === c ? A = c : A !== c && (A += (d ?? "") + p[n + 1]), this._$AH[n] = d;
469
+ for (A = V[0], n = 0; n < V.length - 1; n++) d = m(this, S[r + n], t, n), d === f && (d = this._$AH[n]), p || (p = !F(d) || d !== this._$AH[n]), d === j ? A = j : A !== j && (A += (d ?? "") + V[n + 1]), this._$AH[n] = d;
470
470
  }
471
- V && !e && this.j(A);
471
+ p && !e && this.j(A);
472
472
  }
473
473
  j(A) {
474
- A === c ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, A ?? "");
474
+ A === j ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, A ?? "");
475
475
  }
476
476
  }
477
- class Vt extends lA {
477
+ class pt extends tA {
478
478
  constructor() {
479
479
  super(...arguments), this.type = 3;
480
480
  }
481
481
  j(A) {
482
- this.element[this.name] = A === c ? void 0 : A;
482
+ this.element[this.name] = A === j ? void 0 : A;
483
483
  }
484
484
  }
485
- class qt extends lA {
485
+ class qt extends tA {
486
486
  constructor() {
487
487
  super(...arguments), this.type = 4;
488
488
  }
489
489
  j(A) {
490
- this.element.toggleAttribute(this.name, !!A && A !== c);
490
+ this.element.toggleAttribute(this.name, !!A && A !== j);
491
491
  }
492
492
  }
493
- class nt extends lA {
494
- constructor(A, t, r, e, p) {
495
- super(A, t, r, e, p), this.type = 5;
493
+ class nt extends tA {
494
+ constructor(A, t, r, e, V) {
495
+ super(A, t, r, e, V), this.type = 5;
496
496
  }
497
497
  _$AI(A, t = this) {
498
- if ((A = Z(this, A, t, 0) ?? c) === f) return;
499
- const r = this._$AH, e = A === c && r !== c || A.capture !== r.capture || A.once !== r.once || A.passive !== r.passive, p = A !== c && (r === c || e);
500
- e && this.element.removeEventListener(this.name, this, r), p && this.element.addEventListener(this.name, this, A), this._$AH = A;
498
+ if ((A = m(this, A, t, 0) ?? j) === f) return;
499
+ const r = this._$AH, e = A === j && r !== j || A.capture !== r.capture || A.once !== r.once || A.passive !== r.passive, V = A !== j && (r === j || e);
500
+ e && this.element.removeEventListener(this.name, this, r), V && this.element.addEventListener(this.name, this, A), this._$AH = A;
501
501
  }
502
502
  handleEvent(A) {
503
503
  var t;
@@ -512,17 +512,17 @@ class St {
512
512
  return this._$AM._$AU;
513
513
  }
514
514
  _$AI(A) {
515
- Z(this, A);
515
+ m(this, A);
516
516
  }
517
517
  }
518
- const pA = G.litHtmlPolyfillSupport;
519
- pA == null || pA(h, w), (G.litHtmlVersions ?? (G.litHtmlVersions = [])).push("3.3.0");
518
+ const rA = z.litHtmlPolyfillSupport;
519
+ rA == null || rA(M, w), (z.litHtmlVersions ?? (z.litHtmlVersions = [])).push("3.3.0");
520
520
  const at = (l, A, t) => {
521
521
  const r = (t == null ? void 0 : t.renderBefore) ?? A;
522
522
  let e = r._$litPart$;
523
523
  if (e === void 0) {
524
- const p = (t == null ? void 0 : t.renderBefore) ?? null;
525
- r._$litPart$ = e = new w(A.insertBefore(F(), p), p, void 0, t ?? {});
524
+ const V = (t == null ? void 0 : t.renderBefore) ?? null;
525
+ r._$litPart$ = e = new w(A.insertBefore(G(), V), V, void 0, t ?? {});
526
526
  }
527
527
  return e._$AI(l), e;
528
528
  };
@@ -532,7 +532,7 @@ const at = (l, A, t) => {
532
532
  * SPDX-License-Identifier: BSD-3-Clause
533
533
  */
534
534
  const b = globalThis;
535
- let X = class extends m {
535
+ let X = class extends P {
536
536
  constructor() {
537
537
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
538
538
  }
@@ -567,7 +567,7 @@ VA == null || VA({ LitElement: X });
567
567
  * Copyright 2017 Google LLC
568
568
  * SPDX-License-Identifier: BSD-3-Clause
569
569
  */
570
- const R = (l) => (A, t) => {
570
+ const N = (l) => (A, t) => {
571
571
  t !== void 0 ? t.addInitializer(() => {
572
572
  customElements.define(l, A);
573
573
  }) : customElements.define(l, A);
@@ -577,31 +577,31 @@ const R = (l) => (A, t) => {
577
577
  * Copyright 2017 Google LLC
578
578
  * SPDX-License-Identifier: BSD-3-Clause
579
579
  */
580
- const yt = { attribute: !0, type: String, converter: _, reflect: !1, hasChanged: jA }, ut = (l = yt, A, t) => {
580
+ const yt = { attribute: !0, type: String, converter: B, reflect: !1, hasChanged: dA }, ut = (l = yt, A, t) => {
581
581
  const { kind: r, metadata: e } = t;
582
- let p = globalThis.litPropertyMetadata.get(e);
583
- if (p === void 0 && globalThis.litPropertyMetadata.set(e, p = /* @__PURE__ */ new Map()), r === "setter" && ((l = Object.create(l)).wrapped = !0), p.set(t.name, l), r === "accessor") {
584
- const { name: V } = t;
582
+ let V = globalThis.litPropertyMetadata.get(e);
583
+ if (V === void 0 && globalThis.litPropertyMetadata.set(e, V = /* @__PURE__ */ new Map()), r === "setter" && ((l = Object.create(l)).wrapped = !0), V.set(t.name, l), r === "accessor") {
584
+ const { name: p } = t;
585
585
  return { set(S) {
586
586
  const n = A.get.call(this);
587
- A.set.call(this, S), this.requestUpdate(V, n, l);
587
+ A.set.call(this, S), this.requestUpdate(p, n, l);
588
588
  }, init(S) {
589
- return S !== void 0 && this.C(V, void 0, l, S), S;
589
+ return S !== void 0 && this.C(p, void 0, l, S), S;
590
590
  } };
591
591
  }
592
592
  if (r === "setter") {
593
- const { name: V } = t;
593
+ const { name: p } = t;
594
594
  return function(S) {
595
- const n = this[V];
596
- A.call(this, S), this.requestUpdate(V, n, l);
595
+ const n = this[p];
596
+ A.call(this, S), this.requestUpdate(p, n, l);
597
597
  };
598
598
  }
599
599
  throw Error("Unsupported decorator location: " + r);
600
600
  };
601
- function j(l) {
602
- return (A, t) => typeof t == "object" ? ut(l, A, t) : ((r, e, p) => {
603
- const V = e.hasOwnProperty(p);
604
- return e.constructor.createProperty(p, r), V ? Object.getOwnPropertyDescriptor(e, p) : void 0;
601
+ function c(l) {
602
+ return (A, t) => typeof t == "object" ? ut(l, A, t) : ((r, e, V) => {
603
+ const p = e.hasOwnProperty(V);
604
+ return e.constructor.createProperty(V, r), p ? Object.getOwnPropertyDescriptor(e, V) : void 0;
605
605
  })(l, A, t);
606
606
  }
607
607
  /**
@@ -610,14 +610,14 @@ function j(l) {
610
610
  * SPDX-License-Identifier: BSD-3-Clause
611
611
  */
612
612
  function J(l) {
613
- return j({ ...l, state: !0, attribute: !1 });
613
+ return c({ ...l, state: !0, attribute: !1 });
614
614
  }
615
615
  /**
616
616
  * @license
617
617
  * Copyright 2021 Google LLC
618
618
  * SPDX-License-Identifier: BSD-3-Clause
619
619
  */
620
- const SA = "lit-localize-status";
620
+ const nA = "lit-localize-status";
621
621
  /**
622
622
  * @license
623
623
  * Copyright 2021 Google LLC
@@ -653,10 +653,10 @@ class ct {
653
653
  }, this.host = A;
654
654
  }
655
655
  hostConnected() {
656
- window.addEventListener(SA, this.__litLocalizeEventHandler);
656
+ window.addEventListener(nA, this.__litLocalizeEventHandler);
657
657
  }
658
658
  hostDisconnected() {
659
- window.removeEventListener(SA, this.__litLocalizeEventHandler);
659
+ window.removeEventListener(nA, this.__litLocalizeEventHandler);
660
660
  }
661
661
  }
662
662
  const kt = (l) => l.addController(new ct(l)), Jt = kt;
@@ -693,10 +693,10 @@ const K = [];
693
693
  for (let l = 0; l < 256; l++)
694
694
  K[l] = (l >> 4 & 15).toString(16) + (l & 15).toString(16);
695
695
  function Tt(l) {
696
- let A = 0, t = 8997, r = 0, e = 33826, p = 0, V = 40164, S = 0, n = 52210;
696
+ let A = 0, t = 8997, r = 0, e = 33826, V = 0, p = 40164, S = 0, n = 52210;
697
697
  for (let d = 0; d < l.length; d++)
698
- t ^= l.charCodeAt(d), A = t * 435, r = e * 435, p = V * 435, S = n * 435, p += t << 8, S += e << 8, r += A >>> 16, t = A & 65535, p += r >>> 16, e = r & 65535, n = S + (p >>> 16) & 65535, V = p & 65535;
699
- return K[n >> 8] + K[n & 255] + K[V >> 8] + K[V & 255] + K[e >> 8] + K[e & 255] + K[t >> 8] + K[t & 255];
698
+ t ^= l.charCodeAt(d), A = t * 435, r = e * 435, V = p * 435, S = n * 435, V += t << 8, S += e << 8, r += A >>> 16, t = A & 65535, V += r >>> 16, e = r & 65535, n = S + (V >>> 16) & 65535, p = V & 65535;
699
+ return K[n >> 8] + K[n & 255] + K[p >> 8] + K[p & 255] + K[e >> 8] + K[e & 255] + K[t >> 8] + K[t & 255];
700
700
  }
701
701
  /**
702
702
  * @license
@@ -728,10 +728,10 @@ function Wt(l, A, t) {
728
728
  e.values
729
729
  );
730
730
  {
731
- let p = LA.get(e);
732
- return p === void 0 && (p = e.values, LA.set(e, p)), {
731
+ let V = LA.get(e);
732
+ return V === void 0 && (V = e.values, LA.set(e, V)), {
733
733
  ...e,
734
- values: p.map((V) => A.values[V])
734
+ values: V.map((p) => A.values[p])
735
735
  };
736
736
  }
737
737
  }
@@ -748,30 +748,30 @@ function st(l) {
748
748
  * Copyright 2021 Google LLC
749
749
  * SPDX-License-Identifier: BSD-3-Clause
750
750
  */
751
- function qA(l) {
752
- window.dispatchEvent(new CustomEvent(SA, { detail: l }));
751
+ function pA(l) {
752
+ window.dispatchEvent(new CustomEvent(nA, { detail: l }));
753
753
  }
754
- let AA = "", nA, hA, tA, aA, EA, v = new MA();
754
+ let $ = "", qA, hA, AA, SA, EA, v = new MA();
755
755
  v.resolve();
756
- let g = 0;
757
- const it = (l) => (jt((A, t) => Wt(EA, A, t)), AA = hA = l.sourceLocale, tA = new Set(l.targetLocales), tA.add(l.sourceLocale), aA = l.loadLocale, { getLocale: vt, setLocale: Ot }), vt = () => AA, Ot = (l) => {
758
- if (l === (nA ?? AA))
756
+ let Q = 0;
757
+ const it = (l) => (jt((A, t) => Wt(EA, A, t)), $ = hA = l.sourceLocale, AA = new Set(l.targetLocales), AA.add(l.sourceLocale), SA = l.loadLocale, { getLocale: vt, setLocale: Ot }), vt = () => $, Ot = (l) => {
758
+ if (l === (qA ?? $))
759
759
  return v.promise;
760
- if (!tA || !aA)
760
+ if (!AA || !SA)
761
761
  throw new Error("Internal error");
762
- if (!tA.has(l))
762
+ if (!AA.has(l))
763
763
  throw new Error("Invalid locale code");
764
- g++;
765
- const A = g;
766
- return nA = l, v.settled && (v = new MA()), qA({ status: "loading", loadingLocale: l }), (l === hA ? (
764
+ Q++;
765
+ const A = Q;
766
+ return qA = l, v.settled && (v = new MA()), pA({ status: "loading", loadingLocale: l }), (l === hA ? (
767
767
  // We could switch to the source locale synchronously, but we prefer to
768
768
  // queue it on a microtask so that switching locales is consistently
769
769
  // asynchronous.
770
770
  Promise.resolve({ templates: void 0 })
771
- ) : aA(l)).then((r) => {
772
- g === A && (AA = l, nA = void 0, EA = r.templates, qA({ status: "ready", readyLocale: l }), v.resolve());
771
+ ) : SA(l)).then((r) => {
772
+ Q === A && ($ = l, qA = void 0, EA = r.templates, pA({ status: "ready", readyLocale: l }), v.resolve());
773
773
  }, (r) => {
774
- g === A && (qA({
774
+ Q === A && (pA({
775
775
  status: "error",
776
776
  errorLocale: l,
777
777
  errorMessage: r.toString()
@@ -818,22 +818,22 @@ const Pt = ft(class extends ot {
818
818
  update(l, [A]) {
819
819
  var r, e;
820
820
  if (this.st === void 0) {
821
- this.st = /* @__PURE__ */ new Set(), l.strings !== void 0 && (this.nt = new Set(l.strings.join(" ").split(/\s/).filter((p) => p !== "")));
822
- for (const p in A) A[p] && !((r = this.nt) != null && r.has(p)) && this.st.add(p);
821
+ this.st = /* @__PURE__ */ new Set(), l.strings !== void 0 && (this.nt = new Set(l.strings.join(" ").split(/\s/).filter((V) => V !== "")));
822
+ for (const V in A) A[V] && !((r = this.nt) != null && r.has(V)) && this.st.add(V);
823
823
  return this.render(A);
824
824
  }
825
825
  const t = l.element.classList;
826
- for (const p of this.st) p in A || (t.remove(p), this.st.delete(p));
827
- for (const p in A) {
828
- const V = !!A[p];
829
- V === this.st.has(p) || (e = this.nt) != null && e.has(p) || (V ? (t.add(p), this.st.add(p)) : (t.remove(p), this.st.delete(p)));
826
+ for (const V of this.st) V in A || (t.remove(V), this.st.delete(V));
827
+ for (const V in A) {
828
+ const p = !!A[V];
829
+ p === this.st.has(V) || (e = this.nt) != null && e.has(V) || (p ? (t.add(V), this.st.add(V)) : (t.remove(V), this.st.delete(V)));
830
830
  }
831
831
  return f;
832
832
  }
833
833
  });
834
834
  var mt = Object.defineProperty, Zt = Object.getOwnPropertyDescriptor, C = (l, A, t, r) => {
835
- for (var e = r > 1 ? void 0 : r ? Zt(A, t) : A, p = l.length - 1, V; p >= 0; p--)
836
- (V = l[p]) && (e = (r ? V(A, t, e) : V(e)) || e);
835
+ for (var e = r > 1 ? void 0 : r ? Zt(A, t) : A, V = l.length - 1, p; V >= 0; V--)
836
+ (p = l[V]) && (e = (r ? p(A, t, e) : p(e)) || e);
837
837
  return r && e && mt(A, t, e), e;
838
838
  };
839
839
  let o = class extends X {
@@ -855,7 +855,7 @@ let o = class extends X {
855
855
  `;
856
856
  }
857
857
  };
858
- o.styles = N`
858
+ o.styles = Z`
859
859
  :host {
860
860
  display: block;
861
861
  width: 100%;
@@ -928,26 +928,26 @@ o.styles = N`
928
928
  }
929
929
  `;
930
930
  C([
931
- j({ type: String })
931
+ c({ type: String })
932
932
  ], o.prototype, "type", 2);
933
933
  C([
934
- j({ type: String })
934
+ c({ type: String })
935
935
  ], o.prototype, "label", 2);
936
936
  C([
937
- j({ type: Boolean })
937
+ c({ type: Boolean })
938
938
  ], o.prototype, "disabled", 2);
939
939
  C([
940
- j({ type: String })
940
+ c({ type: String })
941
941
  ], o.prototype, "variant", 2);
942
942
  o = C([
943
- R("xact-button")
943
+ N("xact-button")
944
944
  ], o);
945
- var Nt = Object.defineProperty, Rt = Object.getOwnPropertyDescriptor, kA = (l, A, t, r) => {
946
- for (var e = r > 1 ? void 0 : r ? Rt(A, t) : A, p = l.length - 1, V; p >= 0; p--)
947
- (V = l[p]) && (e = (r ? V(A, t, e) : V(e)) || e);
945
+ var Nt = Object.defineProperty, Rt = Object.getOwnPropertyDescriptor, cA = (l, A, t, r) => {
946
+ for (var e = r > 1 ? void 0 : r ? Rt(A, t) : A, V = l.length - 1, p; V >= 0; V--)
947
+ (p = l[V]) && (e = (r ? p(A, t, e) : p(e)) || e);
948
948
  return r && e && Nt(A, t, e), e;
949
949
  };
950
- let E = class extends X {
950
+ let h = class extends X {
951
951
  constructor() {
952
952
  super(...arguments), this.height = 0;
953
953
  }
@@ -982,7 +982,7 @@ let E = class extends X {
982
982
  `;
983
983
  }
984
984
  };
985
- E.styles = N`
985
+ h.styles = Z`
986
986
  :host {
987
987
  display: block;
988
988
  font-family: "Lato", sans-serif;
@@ -1067,22 +1067,22 @@ E.styles = N`
1067
1067
  color: inherit;
1068
1068
  }
1069
1069
  `;
1070
- kA([
1071
- j({ type: Number })
1072
- ], E.prototype, "height", 2);
1073
- kA([
1074
- j({ type: Function })
1075
- ], E.prototype, "onStartMeasurement", 2);
1076
- E = kA([
1077
- R("xact-step-one"),
1070
+ cA([
1071
+ c({ type: Number })
1072
+ ], h.prototype, "height", 2);
1073
+ cA([
1074
+ c({ type: Function })
1075
+ ], h.prototype, "onStartMeasurement", 2);
1076
+ h = cA([
1077
+ N("xact-step-one"),
1078
1078
  Y()
1079
- ], E);
1079
+ ], h);
1080
1080
  var Ht = Object.getOwnPropertyDescriptor, zt = (l, A, t, r) => {
1081
- for (var e = r > 1 ? void 0 : r ? Ht(A, t) : A, p = l.length - 1, V; p >= 0; p--)
1082
- (V = l[p]) && (e = V(e) || e);
1081
+ for (var e = r > 1 ? void 0 : r ? Ht(A, t) : A, V = l.length - 1, p; V >= 0; V--)
1082
+ (p = l[V]) && (e = p(e) || e);
1083
1083
  return e;
1084
1084
  };
1085
- let yA = class extends X {
1085
+ let aA = class extends X {
1086
1086
  render() {
1087
1087
  return T`
1088
1088
  <footer class="modal-footer">
@@ -1130,7 +1130,7 @@ let yA = class extends X {
1130
1130
  `;
1131
1131
  }
1132
1132
  };
1133
- yA.styles = N`
1133
+ aA.styles = Z`
1134
1134
  .modal-footer {
1135
1135
  text-align: center;
1136
1136
  font-size: 12px;
@@ -1167,16 +1167,16 @@ yA.styles = N`
1167
1167
  outline-offset: 2px;
1168
1168
  }
1169
1169
  `;
1170
- yA = zt([
1171
- R("xact-footer"),
1170
+ aA = zt([
1171
+ N("xact-footer"),
1172
1172
  Y()
1173
- ], yA);
1174
- var Gt = Object.defineProperty, Ft = Object.getOwnPropertyDescriptor, D = (l, A, t, r) => {
1175
- for (var e = r > 1 ? void 0 : r ? Ft(A, t) : A, p = l.length - 1, V; p >= 0; p--)
1176
- (V = l[p]) && (e = (r ? V(A, t, e) : V(e)) || e);
1173
+ ], aA);
1174
+ var Gt = Object.defineProperty, Ft = Object.getOwnPropertyDescriptor, kA = (l, A, t, r) => {
1175
+ for (var e = r > 1 ? void 0 : r ? Ft(A, t) : A, V = l.length - 1, p; V >= 0; V--)
1176
+ (p = l[V]) && (e = (r ? p(A, t, e) : p(e)) || e);
1177
1177
  return r && e && Gt(A, t, e), e;
1178
1178
  };
1179
- let P = class extends X {
1179
+ let E = class extends X {
1180
1180
  constructor() {
1181
1181
  super(...arguments), this.productName = "", this.recommendedSize = "";
1182
1182
  }
@@ -1213,7 +1213,7 @@ let P = class extends X {
1213
1213
 
1214
1214
  <!-- Texto centralizado -->
1215
1215
  <text x="50%" y="55%" dominant-baseline="middle" text-anchor="middle" fill="white" font-size="20" font-weight="bold">
1216
- ${this.recommendedSize}
1216
+ -> ${this.recommendedSize} <-
1217
1217
  </text>
1218
1218
  </svg>
1219
1219
  </div>
@@ -1240,7 +1240,7 @@ let P = class extends X {
1240
1240
  `;
1241
1241
  }
1242
1242
  };
1243
- P.styles = N`
1243
+ E.styles = Z`
1244
1244
  :host {
1245
1245
  display: flex;
1246
1246
  flex-direction: column;
@@ -1315,25 +1315,19 @@ P.styles = N`
1315
1315
  }
1316
1316
  }
1317
1317
  `;
1318
- D([
1319
- j({ type: String })
1320
- ], P.prototype, "productName", 2);
1321
- D([
1322
- j({ type: String })
1323
- ], P.prototype, "recommendedSize", 2);
1324
- D([
1325
- j({ type: Function })
1326
- ], P.prototype, "onAccept", 2);
1327
- D([
1328
- j({ type: Function })
1329
- ], P.prototype, "onRetry", 2);
1330
- P = D([
1331
- R("xact-step-result"),
1318
+ kA([
1319
+ c({ type: String })
1320
+ ], E.prototype, "productName", 2);
1321
+ kA([
1322
+ c({ type: String })
1323
+ ], E.prototype, "recommendedSize", 2);
1324
+ E = kA([
1325
+ N("xact-step-result"),
1332
1326
  Y()
1333
- ], P);
1327
+ ], E);
1334
1328
  var Mt = Object.defineProperty, ht = Object.getOwnPropertyDescriptor, JA = (l, A, t, r) => {
1335
- for (var e = r > 1 ? void 0 : r ? ht(A, t) : A, p = l.length - 1, V; p >= 0; p--)
1336
- (V = l[p]) && (e = (r ? V(A, t, e) : V(e)) || e);
1329
+ for (var e = r > 1 ? void 0 : r ? ht(A, t) : A, V = l.length - 1, p; V >= 0; V--)
1330
+ (p = l[V]) && (e = (r ? p(A, t, e) : p(e)) || e);
1337
1331
  return r && e && Mt(A, t, e), e;
1338
1332
  };
1339
1333
  let I = class extends X {
@@ -1485,7 +1479,7 @@ let I = class extends X {
1485
1479
  `;
1486
1480
  }
1487
1481
  };
1488
- I.styles = N`
1482
+ I.styles = Z`
1489
1483
  :host {
1490
1484
  display: flex;
1491
1485
  justify-content: center;
@@ -1627,19 +1621,19 @@ I.styles = N`
1627
1621
 
1628
1622
  `;
1629
1623
  JA([
1630
- j({ type: Number })
1624
+ c({ type: Number })
1631
1625
  ], I.prototype, "height", 2);
1632
1626
  JA([
1633
- j({ type: Function })
1627
+ c({ type: Function })
1634
1628
  ], I.prototype, "onStep2advancement", 2);
1635
1629
  I = JA([
1636
- R("xact-step-informs"),
1630
+ N("xact-step-informs"),
1637
1631
  Y()
1638
1632
  ], I);
1639
1633
  const oA = "data:image/svg+xml,%3csvg%20width='22'%20height='40'%20viewBox='0%200%2022%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21.517%200L0%2013.3362V0H21.517Z'%20fill='white'/%3e%3cpath%20d='M21.517%2013.339L0%2026.6724V13.3362H21.517V13.339Z'%20fill='white'/%3e%3cpath%20d='M21.517%2026.6755L0%2040.0089V26.6726H21.517V26.6755Z'%20fill='%231C28BA'/%3e%3c/svg%3e", Et = "data:image/svg+xml,%3csvg%20width='22'%20height='41'%20viewBox='0%200%2022%2041'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21.517%200.00878906L0%2013.345V0.00878906H21.517Z'%20fill='white'/%3e%3cpath%20d='M21.517%2013.3478L0%2026.6812V13.345H21.517V13.3478Z'%20fill='%231C28BA'/%3e%3cpath%20d='M21.517%2026.6843L0%2040.0176V26.6814H21.517V26.6843Z'%20fill='white'/%3e%3c/svg%3e", It = "data:image/svg+xml,%3csvg%20width='22'%20height='41'%20viewBox='0%200%2022%2041'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21.517%200.0204381L0%2013.3538V0.0175781H21.517V0.0204381Z'%20fill='%231C28BA'/%3e%3cpath%20d='M21.517%2013.3538L0%2026.69V13.3538H21.517Z'%20fill='white'/%3e%3cpath%20d='M21.517%2026.693L0%2040.0264V26.6902H21.517V26.693Z'%20fill='white'/%3e%3c/svg%3e";
1640
1634
  var wt = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, u = (l, A, t, r) => {
1641
- for (var e = r > 1 ? void 0 : r ? Yt(A, t) : A, p = l.length - 1, V; p >= 0; p--)
1642
- (V = l[p]) && (e = (r ? V(A, t, e) : V(e)) || e);
1635
+ for (var e = r > 1 ? void 0 : r ? Yt(A, t) : A, V = l.length - 1, p; V >= 0; V--)
1636
+ (p = l[V]) && (e = (r ? p(A, t, e) : p(e)) || e);
1643
1637
  return r && e && wt(A, t, e), e;
1644
1638
  };
1645
1639
  const { getLocale: gt, setLocale: PA } = it({
@@ -1788,14 +1782,14 @@ let a = class extends X {
1788
1782
  const t = A.getContext("2d");
1789
1783
  t == null || t.drawImage(this.videoElement, 0, 0, A.width, A.height);
1790
1784
  const r = await new Promise(
1791
- (V) => A.toBlob((S) => V(S), "image/jpeg")
1792
- ), e = new File([r], "frame.jpg", { type: "image/jpeg" }), p = new FormData();
1793
- p.append("image", e), p.append("height", this.height.toString()), p.append("product_sku", this.productSku), this.measurerKey && p.append("measurerKey", this.measurerKey);
1785
+ (p) => A.toBlob((S) => p(S), "image/jpeg")
1786
+ ), e = new File([r], "frame.jpg", { type: "image/jpeg" }), V = new FormData();
1787
+ V.append("image", e), V.append("height", this.height.toString()), V.append("product_sku", this.productSku), this.measurerKey && V.append("measurerKey", this.measurerKey);
1794
1788
  try {
1795
1789
  this.isFetching = !0, this.isLoading = !0, this.poolingTimeout !== null && (clearTimeout(this.poolingTimeout), this.poolingTimeout = null), this.instructionMessageTimeout !== null && (clearTimeout(this.instructionMessageTimeout), this.instructionMessageTimeout = null);
1796
1790
  const S = await (await fetch(this.apiUrl, {
1797
1791
  method: "POST",
1798
- body: p,
1792
+ body: V,
1799
1793
  headers: {
1800
1794
  Accept: "application/json",
1801
1795
  "Cache-Control": "no-store",
@@ -1895,7 +1889,7 @@ let a = class extends X {
1895
1889
  `;
1896
1890
  }
1897
1891
  };
1898
- a.styles = N`
1892
+ a.styles = Z`
1899
1893
  :host {
1900
1894
  display: block;
1901
1895
  font-family: Arial, sans-serif;
@@ -2323,25 +2317,25 @@ a.styles = N`
2323
2317
 
2324
2318
  `;
2325
2319
  u([
2326
- j({ type: String, attribute: "api-key" })
2320
+ c({ type: String, attribute: "api-key" })
2327
2321
  ], a.prototype, "apiKey", 2);
2328
2322
  u([
2329
- j({ type: String, attribute: "tenant-id" })
2323
+ c({ type: String, attribute: "tenant-id" })
2330
2324
  ], a.prototype, "tenantId", 2);
2331
2325
  u([
2332
- j({ type: String, attribute: "product-sku" })
2326
+ c({ type: String, attribute: "product-sku" })
2333
2327
  ], a.prototype, "productSku", 2);
2334
2328
  u([
2335
- j({ type: String, attribute: "api-url" })
2329
+ c({ type: String, attribute: "api-url" })
2336
2330
  ], a.prototype, "apiUrl", 2);
2337
2331
  u([
2338
- j({ type: Function, attribute: "onmeasurementaccepted" })
2332
+ c({ type: Function, attribute: "onmeasurementaccepted" })
2339
2333
  ], a.prototype, "onMeasurementAccepted", 2);
2340
2334
  u([
2341
- j({ type: Function, attribute: "onmeasurementcanceled" })
2335
+ c({ type: Function, attribute: "onmeasurementcanceled" })
2342
2336
  ], a.prototype, "onMeasurementCanceled", 2);
2343
2337
  u([
2344
- j({ type: String })
2338
+ c({ type: String })
2345
2339
  ], a.prototype, "culture", 1);
2346
2340
  u([
2347
2341
  J()
@@ -2389,7 +2383,7 @@ u([
2389
2383
  J()
2390
2384
  ], a.prototype, "currentCameraId", 2);
2391
2385
  a = u([
2392
- R("body-measurer"),
2386
+ N("body-measurer"),
2393
2387
  Y()
2394
2388
  ], a);
2395
2389
  export {