@decidables/decidables-elements 0.3.4 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,21 +3,21 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const t$2 = window,
7
- e$4 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
8
- s$5 = Symbol(),
9
- n$5 = new WeakMap();
10
- let o$5 = class o {
6
+ const t$1 = window,
7
+ e$2 = t$1.ShadowRoot && (void 0 === t$1.ShadyCSS || t$1.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
8
+ s$3 = Symbol(),
9
+ n$3 = new WeakMap();
10
+ let o$3 = class o {
11
11
  constructor(t, e, n) {
12
- if (this._$cssResult$ = !0, n !== s$5) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
12
+ if (this._$cssResult$ = !0, n !== s$3) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
13
13
  this.cssText = t, this.t = e;
14
14
  }
15
15
  get styleSheet() {
16
16
  let t = this.o;
17
17
  const s = this.t;
18
- if (e$4 && void 0 === t) {
18
+ if (e$2 && void 0 === t) {
19
19
  const e = void 0 !== s && 1 === s.length;
20
- e && (t = n$5.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && n$5.set(s, t));
20
+ e && (t = n$3.get(s)), void 0 === t && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), e && n$3.set(s, t));
21
21
  }
22
22
  return t;
23
23
  }
@@ -25,18 +25,26 @@ let o$5 = class o {
25
25
  return this.cssText;
26
26
  }
27
27
  };
28
- const r$4 = t => new o$5("string" == typeof t ? t : t + "", void 0, s$5),
29
- S$2 = (s, n) => {
30
- e$4 ? s.adoptedStyleSheets = n.map(t => t instanceof CSSStyleSheet ? t : t.styleSheet) : n.forEach(e => {
28
+ const r$2 = t => new o$3("string" == typeof t ? t : t + "", void 0, s$3),
29
+ i$1 = (t, ...e) => {
30
+ const n = 1 === t.length ? t[0] : e.reduce((e, s, n) => e + (t => {
31
+ if (!0 === t._$cssResult$) return t.cssText;
32
+ if ("number" == typeof t) return t;
33
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + t + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
34
+ })(s) + t[n + 1], t[0]);
35
+ return new o$3(n, t, s$3);
36
+ },
37
+ S$1 = (s, n) => {
38
+ e$2 ? s.adoptedStyleSheets = n.map(t => t instanceof CSSStyleSheet ? t : t.styleSheet) : n.forEach(e => {
31
39
  const n = document.createElement("style"),
32
- o = t$2.litNonce;
40
+ o = t$1.litNonce;
33
41
  void 0 !== o && n.setAttribute("nonce", o), n.textContent = e.cssText, s.appendChild(n);
34
42
  });
35
43
  },
36
- c$1 = e$4 ? t => t : t => t instanceof CSSStyleSheet ? (t => {
44
+ c$1 = e$2 ? t => t : t => t instanceof CSSStyleSheet ? (t => {
37
45
  let e = "";
38
46
  for (const s of t.cssRules) e += s.cssText;
39
- return r$4(e);
47
+ return r$2(e);
40
48
  })(t) : t;
41
49
 
42
50
  /**
@@ -44,16 +52,16 @@ const r$4 = t => new o$5("string" == typeof t ? t : t + "", void 0, s$5),
44
52
  * Copyright 2017 Google LLC
45
53
  * SPDX-License-Identifier: BSD-3-Clause
46
54
  */
47
- var s$4;
48
- const e$3 = window,
49
- r$3 = e$3.trustedTypes,
50
- h$2 = r$3 ? r$3.emptyScript : "",
51
- o$4 = e$3.reactiveElementPolyfillSupport,
52
- n$4 = {
55
+ var s$2;
56
+ const e$1 = window,
57
+ r$1 = e$1.trustedTypes,
58
+ h$1 = r$1 ? r$1.emptyScript : "",
59
+ o$2 = e$1.reactiveElementPolyfillSupport,
60
+ n$2 = {
53
61
  toAttribute(t, i) {
54
62
  switch (i) {
55
63
  case Boolean:
56
- t = t ? h$2 : null;
64
+ t = t ? h$1 : null;
57
65
  break;
58
66
  case Object:
59
67
  case Array:
@@ -81,17 +89,18 @@ const e$3 = window,
81
89
  return s;
82
90
  }
83
91
  },
84
- a$2 = (t, i) => i !== t && (i == i || t == t),
85
- l$4 = {
92
+ a$1 = (t, i) => i !== t && (i == i || t == t),
93
+ l$3 = {
86
94
  attribute: !0,
87
95
  type: String,
88
- converter: n$4,
96
+ converter: n$2,
89
97
  reflect: !1,
90
- hasChanged: a$2
91
- };
92
- let d$1 = class d extends HTMLElement {
98
+ hasChanged: a$1
99
+ },
100
+ d$1 = "finalized";
101
+ let u$1 = class u extends HTMLElement {
93
102
  constructor() {
94
- super(), this._$Ei = new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this.u();
103
+ super(), this._$Ei = new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this._$Eu();
95
104
  }
96
105
  static addInitializer(t) {
97
106
  var i;
@@ -105,7 +114,7 @@ let d$1 = class d extends HTMLElement {
105
114
  void 0 !== e && (this._$Ev.set(e, s), t.push(e));
106
115
  }), t;
107
116
  }
108
- static createProperty(t, i = l$4) {
117
+ static createProperty(t, i = l$3) {
109
118
  if (i.state && (i.attribute = !1), this.finalize(), this.elementProperties.set(t, i), !i.noAccessor && !this.prototype.hasOwnProperty(t)) {
110
119
  const s = "symbol" == typeof t ? Symbol() : "__" + t,
111
120
  e = this.getPropertyDescriptor(t, s, i);
@@ -126,11 +135,11 @@ let d$1 = class d extends HTMLElement {
126
135
  };
127
136
  }
128
137
  static getPropertyOptions(t) {
129
- return this.elementProperties.get(t) || l$4;
138
+ return this.elementProperties.get(t) || l$3;
130
139
  }
131
140
  static finalize() {
132
- if (this.hasOwnProperty("finalized")) return !1;
133
- this.finalized = !0;
141
+ if (this.hasOwnProperty(d$1)) return !1;
142
+ this[d$1] = !0;
134
143
  const t = Object.getPrototypeOf(this);
135
144
  if (t.finalize(), void 0 !== t.h && (this.h = [...t.h]), this.elementProperties = new Map(t.elementProperties), this._$Ev = new Map(), this.hasOwnProperty("properties")) {
136
145
  const t = this.properties,
@@ -151,7 +160,7 @@ let d$1 = class d extends HTMLElement {
151
160
  const s = i.attribute;
152
161
  return !1 === s ? void 0 : "string" == typeof s ? s : "string" == typeof t ? t.toLowerCase() : void 0;
153
162
  }
154
- u() {
163
+ _$Eu() {
155
164
  var t;
156
165
  this._$E_ = new Promise(t => this.enableUpdating = t), this._$AL = new Map(), this._$Eg(), this.requestUpdate(), null === (t = this.constructor.h) || void 0 === t || t.forEach(t => t(this));
157
166
  }
@@ -171,7 +180,7 @@ let d$1 = class d extends HTMLElement {
171
180
  createRenderRoot() {
172
181
  var t;
173
182
  const s = null !== (t = this.shadowRoot) && void 0 !== t ? t : this.attachShadow(this.constructor.shadowRootOptions);
174
- return S$2(s, this.constructor.elementStyles), s;
183
+ return S$1(s, this.constructor.elementStyles), s;
175
184
  }
176
185
  connectedCallback() {
177
186
  var t;
@@ -191,11 +200,11 @@ let d$1 = class d extends HTMLElement {
191
200
  attributeChangedCallback(t, i, s) {
192
201
  this._$AK(t, s);
193
202
  }
194
- _$EO(t, i, s = l$4) {
203
+ _$EO(t, i, s = l$3) {
195
204
  var e;
196
205
  const r = this.constructor._$Ep(t, s);
197
206
  if (void 0 !== r && !0 === s.reflect) {
198
- const h = (void 0 !== (null === (e = s.converter) || void 0 === e ? void 0 : e.toAttribute) ? s.converter : n$4).toAttribute(i, s.type);
207
+ const h = (void 0 !== (null === (e = s.converter) || void 0 === e ? void 0 : e.toAttribute) ? s.converter : n$2).toAttribute(i, s.type);
199
208
  this._$El = t, null == h ? this.removeAttribute(r) : this.setAttribute(r, h), this._$El = null;
200
209
  }
201
210
  }
@@ -207,13 +216,13 @@ let d$1 = class d extends HTMLElement {
207
216
  const t = e.getPropertyOptions(r),
208
217
  h = "function" == typeof t.converter ? {
209
218
  fromAttribute: t.converter
210
- } : void 0 !== (null === (s = t.converter) || void 0 === s ? void 0 : s.fromAttribute) ? t.converter : n$4;
219
+ } : void 0 !== (null === (s = t.converter) || void 0 === s ? void 0 : s.fromAttribute) ? t.converter : n$2;
211
220
  this._$El = r, this[r] = h.fromAttribute(i, t.type), this._$El = null;
212
221
  }
213
222
  }
214
223
  requestUpdate(t, i, s) {
215
224
  let e = !0;
216
- void 0 !== t && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || a$2)(this[t], i) ? (this._$AL.has(t) || this._$AL.set(t, i), !0 === s.reflect && this._$El !== t && (void 0 === this._$EC && (this._$EC = new Map()), this._$EC.set(t, s))) : e = !1), !this.isUpdatePending && e && (this._$E_ = this._$Ej());
225
+ void 0 !== t && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || a$1)(this[t], i) ? (this._$AL.has(t) || this._$AL.set(t, i), !0 === s.reflect && this._$El !== t && (void 0 === this._$EC && (this._$EC = new Map()), this._$EC.set(t, s))) : e = !1), !this.isUpdatePending && e && (this._$E_ = this._$Ej());
217
226
  }
218
227
  async _$Ej() {
219
228
  this.isUpdatePending = !0;
@@ -270,37 +279,37 @@ let d$1 = class d extends HTMLElement {
270
279
  updated(t) {}
271
280
  firstUpdated(t) {}
272
281
  };
273
- d$1.finalized = !0, d$1.elementProperties = new Map(), d$1.elementStyles = [], d$1.shadowRootOptions = {
282
+ u$1[d$1] = !0, u$1.elementProperties = new Map(), u$1.elementStyles = [], u$1.shadowRootOptions = {
274
283
  mode: "open"
275
- }, null == o$4 || o$4({
276
- ReactiveElement: d$1
277
- }), (null !== (s$4 = e$3.reactiveElementVersions) && void 0 !== s$4 ? s$4 : e$3.reactiveElementVersions = []).push("1.6.1");
284
+ }, null == o$2 || o$2({
285
+ ReactiveElement: u$1
286
+ }), (null !== (s$2 = e$1.reactiveElementVersions) && void 0 !== s$2 ? s$2 : e$1.reactiveElementVersions = []).push("1.6.3");
278
287
 
279
288
  /**
280
289
  * @license
281
290
  * Copyright 2017 Google LLC
282
291
  * SPDX-License-Identifier: BSD-3-Clause
283
292
  */
284
- var t$1;
285
- const i$1 = window,
286
- s$3 = i$1.trustedTypes,
287
- e$2 = s$3 ? s$3.createPolicy("lit-html", {
293
+ var t;
294
+ const i = window,
295
+ s$1 = i.trustedTypes,
296
+ e = s$1 ? s$1.createPolicy("lit-html", {
288
297
  createHTML: t => t
289
298
  }) : void 0,
290
- o$3 = "$lit$",
291
- n$3 = `lit$${(Math.random() + "").slice(9)}$`,
292
- l$3 = "?" + n$3,
293
- h$1 = `<${l$3}>`,
294
- r$2 = document,
295
- d = () => r$2.createComment(""),
296
- u = t => null === t || "object" != typeof t && "function" != typeof t,
299
+ o$1 = "$lit$",
300
+ n$1 = `lit$${(Math.random() + "").slice(9)}$`,
301
+ l$2 = "?" + n$1,
302
+ h = `<${l$2}>`,
303
+ r = document,
304
+ u = () => r.createComment(""),
305
+ d = t => null === t || "object" != typeof t && "function" != typeof t,
297
306
  c = Array.isArray,
298
307
  v = t => c(t) || "function" == typeof (null == t ? void 0 : t[Symbol.iterator]),
299
- a$1 = "[ \t\n\f\r]",
308
+ a = "[ \t\n\f\r]",
300
309
  f = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
301
310
  _ = /-->/g,
302
311
  m = />/g,
303
- p = RegExp(`>|${a$1}(?:([^\\s"'>=/]+)(${a$1}*=${a$1}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"),
312
+ p = RegExp(`>|${a}(?:([^\\s"'>=/]+)(${a}*=${a}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`, "g"),
304
313
  g = /'/g,
305
314
  $ = /"/g,
306
315
  y = /^(?:script|style|textarea|title)$/i,
@@ -314,28 +323,30 @@ const i$1 = window,
314
323
  T = Symbol.for("lit-noChange"),
315
324
  A = Symbol.for("lit-nothing"),
316
325
  E = new WeakMap(),
317
- C = r$2.createTreeWalker(r$2, 129, null, !1),
318
- P = (t, i) => {
319
- const s = t.length - 1,
320
- l = [];
321
- let r,
322
- d = 2 === i ? "<svg>" : "",
323
- u = f;
324
- for (let i = 0; i < s; i++) {
325
- const s = t[i];
326
- let e,
327
- c,
328
- v = -1,
329
- a = 0;
330
- for (; a < s.length && (u.lastIndex = a, c = u.exec(s), null !== c);) a = u.lastIndex, u === f ? "!--" === c[1] ? u = _ : void 0 !== c[1] ? u = m : void 0 !== c[2] ? (y.test(c[2]) && (r = RegExp("</" + c[2], "g")), u = p) : void 0 !== c[3] && (u = p) : u === p ? ">" === c[0] ? (u = null != r ? r : f, v = -1) : void 0 === c[1] ? v = -2 : (v = u.lastIndex - c[2].length, e = c[1], u = void 0 === c[3] ? p : '"' === c[3] ? $ : g) : u === $ || u === g ? u = p : u === _ || u === m ? u = f : (u = p, r = void 0);
331
- const w = u === p && t[i + 1].startsWith("/>") ? " " : "";
332
- d += u === f ? s + h$1 : v >= 0 ? (l.push(e), s.slice(0, v) + o$3 + s.slice(v) + n$3 + w) : s + n$3 + (-2 === v ? (l.push(void 0), i) : w);
333
- }
334
- const c = d + (t[s] || "<?>") + (2 === i ? "</svg>" : "");
335
- if (!Array.isArray(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
336
- return [void 0 !== e$2 ? e$2.createHTML(c) : c, l];
337
- };
338
- class V {
326
+ C = r.createTreeWalker(r, 129, null, !1);
327
+ function P(t, i) {
328
+ if (!Array.isArray(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
329
+ return void 0 !== e ? e.createHTML(i) : i;
330
+ }
331
+ const V = (t, i) => {
332
+ const s = t.length - 1,
333
+ e = [];
334
+ let l,
335
+ r = 2 === i ? "<svg>" : "",
336
+ u = f;
337
+ for (let i = 0; i < s; i++) {
338
+ const s = t[i];
339
+ let d,
340
+ c,
341
+ v = -1,
342
+ a = 0;
343
+ for (; a < s.length && (u.lastIndex = a, c = u.exec(s), null !== c);) a = u.lastIndex, u === f ? "!--" === c[1] ? u = _ : void 0 !== c[1] ? u = m : void 0 !== c[2] ? (y.test(c[2]) && (l = RegExp("</" + c[2], "g")), u = p) : void 0 !== c[3] && (u = p) : u === p ? ">" === c[0] ? (u = null != l ? l : f, v = -1) : void 0 === c[1] ? v = -2 : (v = u.lastIndex - c[2].length, d = c[1], u = void 0 === c[3] ? p : '"' === c[3] ? $ : g) : u === $ || u === g ? u = p : u === _ || u === m ? u = f : (u = p, l = void 0);
344
+ const w = u === p && t[i + 1].startsWith("/>") ? " " : "";
345
+ r += u === f ? s + h : v >= 0 ? (e.push(d), s.slice(0, v) + o$1 + s.slice(v) + n$1 + w) : s + n$1 + (-2 === v ? (e.push(void 0), i) : w);
346
+ }
347
+ return [P(t, r + (t[s] || "<?>") + (2 === i ? "</svg>" : "")), e];
348
+ };
349
+ class N {
339
350
  constructor({
340
351
  strings: t,
341
352
  _$litType$: i
@@ -343,11 +354,11 @@ class V {
343
354
  let h;
344
355
  this.parts = [];
345
356
  let r = 0,
346
- u = 0;
357
+ d = 0;
347
358
  const c = t.length - 1,
348
359
  v = this.parts,
349
- [a, f] = P(t, i);
350
- if (this.el = V.createElement(a, e), C.currentNode = this.el.content, 2 === i) {
360
+ [a, f] = V(t, i);
361
+ if (this.el = N.createElement(a, e), C.currentNode = this.el.content, 2 === i) {
351
362
  const t = this.el.content,
352
363
  i = t.firstChild;
353
364
  i.remove(), t.append(...i.childNodes);
@@ -356,17 +367,17 @@ class V {
356
367
  if (1 === h.nodeType) {
357
368
  if (h.hasAttributes()) {
358
369
  const t = [];
359
- for (const i of h.getAttributeNames()) if (i.endsWith(o$3) || i.startsWith(n$3)) {
360
- const s = f[u++];
370
+ for (const i of h.getAttributeNames()) if (i.endsWith(o$1) || i.startsWith(n$1)) {
371
+ const s = f[d++];
361
372
  if (t.push(i), void 0 !== s) {
362
- const t = h.getAttribute(s.toLowerCase() + o$3).split(n$3),
373
+ const t = h.getAttribute(s.toLowerCase() + o$1).split(n$1),
363
374
  i = /([.?@])?(.*)/.exec(s);
364
375
  v.push({
365
376
  type: 1,
366
377
  index: r,
367
378
  name: i[2],
368
379
  strings: t,
369
- ctor: "." === i[1] ? k : "?" === i[1] ? I : "@" === i[1] ? L : R
380
+ ctor: "." === i[1] ? H : "?" === i[1] ? L : "@" === i[1] ? z : k
370
381
  });
371
382
  } else v.push({
372
383
  type: 6,
@@ -376,45 +387,45 @@ class V {
376
387
  for (const i of t) h.removeAttribute(i);
377
388
  }
378
389
  if (y.test(h.tagName)) {
379
- const t = h.textContent.split(n$3),
390
+ const t = h.textContent.split(n$1),
380
391
  i = t.length - 1;
381
392
  if (i > 0) {
382
- h.textContent = s$3 ? s$3.emptyScript : "";
383
- for (let s = 0; s < i; s++) h.append(t[s], d()), C.nextNode(), v.push({
393
+ h.textContent = s$1 ? s$1.emptyScript : "";
394
+ for (let s = 0; s < i; s++) h.append(t[s], u()), C.nextNode(), v.push({
384
395
  type: 2,
385
396
  index: ++r
386
397
  });
387
- h.append(t[i], d());
398
+ h.append(t[i], u());
388
399
  }
389
400
  }
390
- } else if (8 === h.nodeType) if (h.data === l$3) v.push({
401
+ } else if (8 === h.nodeType) if (h.data === l$2) v.push({
391
402
  type: 2,
392
403
  index: r
393
404
  });else {
394
405
  let t = -1;
395
- for (; -1 !== (t = h.data.indexOf(n$3, t + 1));) v.push({
406
+ for (; -1 !== (t = h.data.indexOf(n$1, t + 1));) v.push({
396
407
  type: 7,
397
408
  index: r
398
- }), t += n$3.length - 1;
409
+ }), t += n$1.length - 1;
399
410
  }
400
411
  r++;
401
412
  }
402
413
  }
403
414
  static createElement(t, i) {
404
- const s = r$2.createElement("template");
415
+ const s = r.createElement("template");
405
416
  return s.innerHTML = t, s;
406
417
  }
407
418
  }
408
- function N(t, i, s = t, e) {
419
+ function S(t, i, s = t, e) {
409
420
  var o, n, l, h;
410
421
  if (i === T) return i;
411
422
  let r = void 0 !== e ? null === (o = s._$Co) || void 0 === o ? void 0 : o[e] : s._$Cl;
412
- const d = u(i) ? void 0 : i._$litDirective$;
413
- return (null == r ? void 0 : r.constructor) !== d && (null === (n = null == r ? void 0 : r._$AO) || void 0 === n || n.call(r, !1), void 0 === d ? r = void 0 : (r = new d(t), r._$AT(t, s, e)), void 0 !== e ? (null !== (l = (h = s)._$Co) && void 0 !== l ? l : h._$Co = [])[e] = r : s._$Cl = r), void 0 !== r && (i = N(t, r._$AS(t, i.values), r, e)), i;
423
+ const u = d(i) ? void 0 : i._$litDirective$;
424
+ return (null == r ? void 0 : r.constructor) !== u && (null === (n = null == r ? void 0 : r._$AO) || void 0 === n || n.call(r, !1), void 0 === u ? r = void 0 : (r = new u(t), r._$AT(t, s, e)), void 0 !== e ? (null !== (l = (h = s)._$Co) && void 0 !== l ? l : h._$Co = [])[e] = r : s._$Cl = r), void 0 !== r && (i = S(t, r._$AS(t, i.values), r, e)), i;
414
425
  }
415
- let S$1 = class S {
426
+ class M {
416
427
  constructor(t, i) {
417
- this.u = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
428
+ this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = i;
418
429
  }
419
430
  get parentNode() {
420
431
  return this._$AM.parentNode;
@@ -422,7 +433,7 @@ let S$1 = class S {
422
433
  get _$AU() {
423
434
  return this._$AM._$AU;
424
435
  }
425
- v(t) {
436
+ u(t) {
426
437
  var i;
427
438
  const {
428
439
  el: {
@@ -430,34 +441,34 @@ let S$1 = class S {
430
441
  },
431
442
  parts: e
432
443
  } = this._$AD,
433
- o = (null !== (i = null == t ? void 0 : t.creationScope) && void 0 !== i ? i : r$2).importNode(s, !0);
444
+ o = (null !== (i = null == t ? void 0 : t.creationScope) && void 0 !== i ? i : r).importNode(s, !0);
434
445
  C.currentNode = o;
435
446
  let n = C.nextNode(),
436
447
  l = 0,
437
448
  h = 0,
438
- d = e[0];
439
- for (; void 0 !== d;) {
440
- if (l === d.index) {
449
+ u = e[0];
450
+ for (; void 0 !== u;) {
451
+ if (l === u.index) {
441
452
  let i;
442
- 2 === d.type ? i = new M(n, n.nextSibling, this, t) : 1 === d.type ? i = new d.ctor(n, d.name, d.strings, this, t) : 6 === d.type && (i = new z(n, this, t)), this.u.push(i), d = e[++h];
453
+ 2 === u.type ? i = new R(n, n.nextSibling, this, t) : 1 === u.type ? i = new u.ctor(n, u.name, u.strings, this, t) : 6 === u.type && (i = new Z(n, this, t)), this._$AV.push(i), u = e[++h];
443
454
  }
444
- l !== (null == d ? void 0 : d.index) && (n = C.nextNode(), l++);
455
+ l !== (null == u ? void 0 : u.index) && (n = C.nextNode(), l++);
445
456
  }
446
- return o;
457
+ return C.currentNode = r, o;
447
458
  }
448
- p(t) {
459
+ v(t) {
449
460
  let i = 0;
450
- for (const s of this.u) void 0 !== s && (void 0 !== s.strings ? (s._$AI(t, s, i), i += s.strings.length - 2) : s._$AI(t[i])), i++;
461
+ for (const s of this._$AV) void 0 !== s && (void 0 !== s.strings ? (s._$AI(t, s, i), i += s.strings.length - 2) : s._$AI(t[i])), i++;
451
462
  }
452
- };
453
- class M {
463
+ }
464
+ class R {
454
465
  constructor(t, i, s, e) {
455
466
  var o;
456
- this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cm = null === (o = null == e ? void 0 : e.isConnected) || void 0 === o || o;
467
+ this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t, this._$AB = i, this._$AM = s, this.options = e, this._$Cp = null === (o = null == e ? void 0 : e.isConnected) || void 0 === o || o;
457
468
  }
458
469
  get _$AU() {
459
470
  var t, i;
460
- return null !== (i = null === (t = this._$AM) || void 0 === t ? void 0 : t._$AU) && void 0 !== i ? i : this._$Cm;
471
+ return null !== (i = null === (t = this._$AM) || void 0 === t ? void 0 : t._$AU) && void 0 !== i ? i : this._$Cp;
461
472
  }
462
473
  get parentNode() {
463
474
  let t = this._$AA.parentNode;
@@ -471,40 +482,40 @@ class M {
471
482
  return this._$AB;
472
483
  }
473
484
  _$AI(t, i = this) {
474
- t = N(this, t, i), u(t) ? t === A || null == t || "" === t ? (this._$AH !== A && this._$AR(), this._$AH = A) : t !== this._$AH && t !== T && this.g(t) : void 0 !== t._$litType$ ? this.$(t) : void 0 !== t.nodeType ? this.T(t) : v(t) ? this.k(t) : this.g(t);
485
+ t = S(this, t, i), d(t) ? t === A || null == t || "" === t ? (this._$AH !== A && this._$AR(), this._$AH = A) : t !== this._$AH && t !== T && this._(t) : void 0 !== t._$litType$ ? this.g(t) : void 0 !== t.nodeType ? this.$(t) : v(t) ? this.T(t) : this._(t);
475
486
  }
476
- S(t) {
487
+ k(t) {
477
488
  return this._$AA.parentNode.insertBefore(t, this._$AB);
478
489
  }
479
- T(t) {
480
- this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
490
+ $(t) {
491
+ this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
481
492
  }
482
- g(t) {
483
- this._$AH !== A && u(this._$AH) ? this._$AA.nextSibling.data = t : this.T(r$2.createTextNode(t)), this._$AH = t;
493
+ _(t) {
494
+ this._$AH !== A && d(this._$AH) ? this._$AA.nextSibling.data = t : this.$(r.createTextNode(t)), this._$AH = t;
484
495
  }
485
- $(t) {
496
+ g(t) {
486
497
  var i;
487
498
  const {
488
499
  values: s,
489
500
  _$litType$: e
490
501
  } = t,
491
- o = "number" == typeof e ? this._$AC(t) : (void 0 === e.el && (e.el = V.createElement(e.h, this.options)), e);
492
- if ((null === (i = this._$AH) || void 0 === i ? void 0 : i._$AD) === o) this._$AH.p(s);else {
493
- const t = new S$1(o, this),
494
- i = t.v(this.options);
495
- t.p(s), this.T(i), this._$AH = t;
502
+ o = "number" == typeof e ? this._$AC(t) : (void 0 === e.el && (e.el = N.createElement(P(e.h, e.h[0]), this.options)), e);
503
+ if ((null === (i = this._$AH) || void 0 === i ? void 0 : i._$AD) === o) this._$AH.v(s);else {
504
+ const t = new M(o, this),
505
+ i = t.u(this.options);
506
+ t.v(s), this.$(i), this._$AH = t;
496
507
  }
497
508
  }
498
509
  _$AC(t) {
499
510
  let i = E.get(t.strings);
500
- return void 0 === i && E.set(t.strings, i = new V(t)), i;
511
+ return void 0 === i && E.set(t.strings, i = new N(t)), i;
501
512
  }
502
- k(t) {
513
+ T(t) {
503
514
  c(this._$AH) || (this._$AH = [], this._$AR());
504
515
  const i = this._$AH;
505
516
  let s,
506
517
  e = 0;
507
- for (const o of t) e === i.length ? i.push(s = new M(this.S(d()), this.S(d()), this, this.options)) : s = i[e], s._$AI(o), e++;
518
+ for (const o of t) e === i.length ? i.push(s = new R(this.k(u()), this.k(u()), this, this.options)) : s = i[e], s._$AI(o), e++;
508
519
  e < i.length && (this._$AR(s && s._$AB.nextSibling, e), i.length = e);
509
520
  }
510
521
  _$AR(t = this._$AA.nextSibling, i) {
@@ -516,10 +527,10 @@ class M {
516
527
  }
517
528
  setConnected(t) {
518
529
  var i;
519
- void 0 === this._$AM && (this._$Cm = t, null === (i = this._$AP) || void 0 === i || i.call(this, t));
530
+ void 0 === this._$AM && (this._$Cp = t, null === (i = this._$AP) || void 0 === i || i.call(this, t));
520
531
  }
521
532
  }
522
- class R {
533
+ class k {
523
534
  constructor(t, i, s, e, o) {
524
535
  this.type = 1, this._$AH = A, this._$AN = void 0, this.element = t, this.name = i, this._$AM = e, this.options = o, s.length > 2 || "" !== s[0] || "" !== s[1] ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = A;
525
536
  }
@@ -532,10 +543,10 @@ class R {
532
543
  _$AI(t, i = this, s, e) {
533
544
  const o = this.strings;
534
545
  let n = !1;
535
- if (void 0 === o) t = N(this, t, i, 0), n = !u(t) || t !== this._$AH && t !== T, n && (this._$AH = t);else {
546
+ if (void 0 === o) t = S(this, t, i, 0), n = !d(t) || t !== this._$AH && t !== T, n && (this._$AH = t);else {
536
547
  const e = t;
537
548
  let l, h;
538
- for (t = o[0], l = 0; l < o.length - 1; l++) h = N(this, e[s + l], i, l), h === T && (h = this._$AH[l]), n || (n = !u(h) || h !== this._$AH[l]), h === A ? t = A : t !== A && (t += (null != h ? h : "") + o[l + 1]), this._$AH[l] = h;
549
+ for (t = o[0], l = 0; l < o.length - 1; l++) h = S(this, e[s + l], i, l), h === T && (h = this._$AH[l]), n || (n = !d(h) || h !== this._$AH[l]), h === A ? t = A : t !== A && (t += (null != h ? h : "") + o[l + 1]), this._$AH[l] = h;
539
550
  }
540
551
  n && !e && this.j(t);
541
552
  }
@@ -543,7 +554,7 @@ class R {
543
554
  t === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, null != t ? t : "");
544
555
  }
545
556
  }
546
- class k extends R {
557
+ class H extends k {
547
558
  constructor() {
548
559
  super(...arguments), this.type = 3;
549
560
  }
@@ -551,22 +562,22 @@ class k extends R {
551
562
  this.element[this.name] = t === A ? void 0 : t;
552
563
  }
553
564
  }
554
- const H = s$3 ? s$3.emptyScript : "";
555
- class I extends R {
565
+ const I = s$1 ? s$1.emptyScript : "";
566
+ class L extends k {
556
567
  constructor() {
557
568
  super(...arguments), this.type = 4;
558
569
  }
559
570
  j(t) {
560
- t && t !== A ? this.element.setAttribute(this.name, H) : this.element.removeAttribute(this.name);
571
+ t && t !== A ? this.element.setAttribute(this.name, I) : this.element.removeAttribute(this.name);
561
572
  }
562
573
  }
563
- class L extends R {
574
+ class z extends k {
564
575
  constructor(t, i, s, e, o) {
565
576
  super(t, i, s, e, o), this.type = 5;
566
577
  }
567
578
  _$AI(t, i = this) {
568
579
  var s;
569
- if ((t = null !== (s = N(this, t, i, 0)) && void 0 !== s ? s : A) === T) return;
580
+ if ((t = null !== (s = S(this, t, i, 0)) && void 0 !== s ? s : A) === T) return;
570
581
  const e = this._$AH,
571
582
  o = t === A && e !== A || t.capture !== e.capture || t.once !== e.once || t.passive !== e.passive,
572
583
  n = t !== A && (e === A || o);
@@ -577,7 +588,7 @@ class L extends R {
577
588
  "function" == typeof this._$AH ? this._$AH.call(null !== (s = null === (i = this.options) || void 0 === i ? void 0 : i.host) && void 0 !== s ? s : this.element, t) : this._$AH.handleEvent(t);
578
589
  }
579
590
  }
580
- class z {
591
+ class Z {
581
592
  constructor(t, i, s) {
582
593
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = i, this.options = s;
583
594
  }
@@ -585,307 +596,29 @@ class z {
585
596
  return this._$AM._$AU;
586
597
  }
587
598
  _$AI(t) {
588
- N(this, t);
599
+ S(this, t);
589
600
  }
590
601
  }
591
- const j = i$1.litHtmlPolyfillSupport;
592
- null == j || j(V, M), (null !== (t$1 = i$1.litHtmlVersions) && void 0 !== t$1 ? t$1 : i$1.litHtmlVersions = []).push("2.7.0");
593
- const B = (t, i, s) => {
602
+ const B = i.litHtmlPolyfillSupport;
603
+ null == B || B(N, R), (null !== (t = i.litHtmlVersions) && void 0 !== t ? t : i.litHtmlVersions = []).push("2.8.0");
604
+ const D = (t, i, s) => {
594
605
  var e, o;
595
606
  const n = null !== (e = null == s ? void 0 : s.renderBefore) && void 0 !== e ? e : i;
596
607
  let l = n._$litPart$;
597
608
  if (void 0 === l) {
598
609
  const t = null !== (o = null == s ? void 0 : s.renderBefore) && void 0 !== o ? o : null;
599
- n._$litPart$ = l = new M(i.insertBefore(d(), t), t, void 0, null != s ? s : {});
610
+ n._$litPart$ = l = new R(i.insertBefore(u(), t), t, void 0, null != s ? s : {});
600
611
  }
601
612
  return l._$AI(t), l;
602
613
  };
603
614
 
604
- /**
605
- * @license
606
- * Copyright 2019 Google LLC
607
- * SPDX-License-Identifier: BSD-3-Clause
608
- */
609
- const t = window.ShadowRoot && (void 0 === window.ShadyCSS || window.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
610
- e$1 = Symbol(),
611
- n$2 = new Map();
612
- let s$2 = class s {
613
- constructor(t, n) {
614
- if (this._$cssResult$ = !0, n !== e$1) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
615
- this.cssText = t;
616
- }
617
- get styleSheet() {
618
- let e = n$2.get(this.cssText);
619
- return t && void 0 === e && (n$2.set(this.cssText, e = new CSSStyleSheet()), e.replaceSync(this.cssText)), e;
620
- }
621
- toString() {
622
- return this.cssText;
623
- }
624
- };
625
- const o$2 = t => new s$2("string" == typeof t ? t : t + "", e$1),
626
- r$1 = (t, ...n) => {
627
- const o = 1 === t.length ? t[0] : n.reduce((e, n, s) => e + (t => {
628
- if (!0 === t._$cssResult$) return t.cssText;
629
- if ("number" == typeof t) return t;
630
- throw Error("Value passed to 'css' function must be a 'css' function result: " + t + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
631
- })(n) + t[s + 1], t[0]);
632
- return new s$2(o, e$1);
633
- },
634
- i = (e, n) => {
635
- t ? e.adoptedStyleSheets = n.map(t => t instanceof CSSStyleSheet ? t : t.styleSheet) : n.forEach(t => {
636
- const n = document.createElement("style"),
637
- s = window.litNonce;
638
- void 0 !== s && n.setAttribute("nonce", s), n.textContent = t.cssText, e.appendChild(n);
639
- });
640
- },
641
- S = t ? t => t : t => t instanceof CSSStyleSheet ? (t => {
642
- let e = "";
643
- for (const n of t.cssRules) e += n.cssText;
644
- return o$2(e);
645
- })(t) : t;
646
-
647
- /**
648
- * @license
649
- * Copyright 2017 Google LLC
650
- * SPDX-License-Identifier: BSD-3-Clause
651
- */
652
- var s$1;
653
- const e = window.trustedTypes,
654
- r = e ? e.emptyScript : "",
655
- h = window.reactiveElementPolyfillSupport,
656
- o$1 = {
657
- toAttribute(t, i) {
658
- switch (i) {
659
- case Boolean:
660
- t = t ? r : null;
661
- break;
662
- case Object:
663
- case Array:
664
- t = null == t ? t : JSON.stringify(t);
665
- }
666
- return t;
667
- },
668
- fromAttribute(t, i) {
669
- let s = t;
670
- switch (i) {
671
- case Boolean:
672
- s = null !== t;
673
- break;
674
- case Number:
675
- s = null === t ? null : Number(t);
676
- break;
677
- case Object:
678
- case Array:
679
- try {
680
- s = JSON.parse(t);
681
- } catch (t) {
682
- s = null;
683
- }
684
- }
685
- return s;
686
- }
687
- },
688
- n$1 = (t, i) => i !== t && (i == i || t == t),
689
- l$2 = {
690
- attribute: !0,
691
- type: String,
692
- converter: o$1,
693
- reflect: !1,
694
- hasChanged: n$1
695
- };
696
- class a extends HTMLElement {
697
- constructor() {
698
- super(), this._$Et = new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$Ei = null, this.o();
699
- }
700
- static addInitializer(t) {
701
- var i;
702
- null !== (i = this.l) && void 0 !== i || (this.l = []), this.l.push(t);
703
- }
704
- static get observedAttributes() {
705
- this.finalize();
706
- const t = [];
707
- return this.elementProperties.forEach((i, s) => {
708
- const e = this._$Eh(s, i);
709
- void 0 !== e && (this._$Eu.set(e, s), t.push(e));
710
- }), t;
711
- }
712
- static createProperty(t, i = l$2) {
713
- if (i.state && (i.attribute = !1), this.finalize(), this.elementProperties.set(t, i), !i.noAccessor && !this.prototype.hasOwnProperty(t)) {
714
- const s = "symbol" == typeof t ? Symbol() : "__" + t,
715
- e = this.getPropertyDescriptor(t, s, i);
716
- void 0 !== e && Object.defineProperty(this.prototype, t, e);
717
- }
718
- }
719
- static getPropertyDescriptor(t, i, s) {
720
- return {
721
- get() {
722
- return this[i];
723
- },
724
- set(e) {
725
- const r = this[t];
726
- this[i] = e, this.requestUpdate(t, r, s);
727
- },
728
- configurable: !0,
729
- enumerable: !0
730
- };
731
- }
732
- static getPropertyOptions(t) {
733
- return this.elementProperties.get(t) || l$2;
734
- }
735
- static finalize() {
736
- if (this.hasOwnProperty("finalized")) return !1;
737
- this.finalized = !0;
738
- const t = Object.getPrototypeOf(this);
739
- if (t.finalize(), this.elementProperties = new Map(t.elementProperties), this._$Eu = new Map(), this.hasOwnProperty("properties")) {
740
- const t = this.properties,
741
- i = [...Object.getOwnPropertyNames(t), ...Object.getOwnPropertySymbols(t)];
742
- for (const s of i) this.createProperty(s, t[s]);
743
- }
744
- return this.elementStyles = this.finalizeStyles(this.styles), !0;
745
- }
746
- static finalizeStyles(i) {
747
- const s = [];
748
- if (Array.isArray(i)) {
749
- const e = new Set(i.flat(1 / 0).reverse());
750
- for (const i of e) s.unshift(S(i));
751
- } else void 0 !== i && s.push(S(i));
752
- return s;
753
- }
754
- static _$Eh(t, i) {
755
- const s = i.attribute;
756
- return !1 === s ? void 0 : "string" == typeof s ? s : "string" == typeof t ? t.toLowerCase() : void 0;
757
- }
758
- o() {
759
- var t;
760
- this._$Ep = new Promise(t => this.enableUpdating = t), this._$AL = new Map(), this._$Em(), this.requestUpdate(), null === (t = this.constructor.l) || void 0 === t || t.forEach(t => t(this));
761
- }
762
- addController(t) {
763
- var i, s;
764
- (null !== (i = this._$Eg) && void 0 !== i ? i : this._$Eg = []).push(t), void 0 !== this.renderRoot && this.isConnected && (null === (s = t.hostConnected) || void 0 === s || s.call(t));
765
- }
766
- removeController(t) {
767
- var i;
768
- null === (i = this._$Eg) || void 0 === i || i.splice(this._$Eg.indexOf(t) >>> 0, 1);
769
- }
770
- _$Em() {
771
- this.constructor.elementProperties.forEach((t, i) => {
772
- this.hasOwnProperty(i) && (this._$Et.set(i, this[i]), delete this[i]);
773
- });
774
- }
775
- createRenderRoot() {
776
- var t;
777
- const s = null !== (t = this.shadowRoot) && void 0 !== t ? t : this.attachShadow(this.constructor.shadowRootOptions);
778
- return i(s, this.constructor.elementStyles), s;
779
- }
780
- connectedCallback() {
781
- var t;
782
- void 0 === this.renderRoot && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), null === (t = this._$Eg) || void 0 === t || t.forEach(t => {
783
- var i;
784
- return null === (i = t.hostConnected) || void 0 === i ? void 0 : i.call(t);
785
- });
786
- }
787
- enableUpdating(t) {}
788
- disconnectedCallback() {
789
- var t;
790
- null === (t = this._$Eg) || void 0 === t || t.forEach(t => {
791
- var i;
792
- return null === (i = t.hostDisconnected) || void 0 === i ? void 0 : i.call(t);
793
- });
794
- }
795
- attributeChangedCallback(t, i, s) {
796
- this._$AK(t, s);
797
- }
798
- _$ES(t, i, s = l$2) {
799
- var e, r;
800
- const h = this.constructor._$Eh(t, s);
801
- if (void 0 !== h && !0 === s.reflect) {
802
- const n = (null !== (r = null === (e = s.converter) || void 0 === e ? void 0 : e.toAttribute) && void 0 !== r ? r : o$1.toAttribute)(i, s.type);
803
- this._$Ei = t, null == n ? this.removeAttribute(h) : this.setAttribute(h, n), this._$Ei = null;
804
- }
805
- }
806
- _$AK(t, i) {
807
- var s, e, r;
808
- const h = this.constructor,
809
- n = h._$Eu.get(t);
810
- if (void 0 !== n && this._$Ei !== n) {
811
- const t = h.getPropertyOptions(n),
812
- l = t.converter,
813
- a = null !== (r = null !== (e = null === (s = l) || void 0 === s ? void 0 : s.fromAttribute) && void 0 !== e ? e : "function" == typeof l ? l : null) && void 0 !== r ? r : o$1.fromAttribute;
814
- this._$Ei = n, this[n] = a(i, t.type), this._$Ei = null;
815
- }
816
- }
817
- requestUpdate(t, i, s) {
818
- let e = !0;
819
- void 0 !== t && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || n$1)(this[t], i) ? (this._$AL.has(t) || this._$AL.set(t, i), !0 === s.reflect && this._$Ei !== t && (void 0 === this._$EC && (this._$EC = new Map()), this._$EC.set(t, s))) : e = !1), !this.isUpdatePending && e && (this._$Ep = this._$E_());
820
- }
821
- async _$E_() {
822
- this.isUpdatePending = !0;
823
- try {
824
- await this._$Ep;
825
- } catch (t) {
826
- Promise.reject(t);
827
- }
828
- const t = this.scheduleUpdate();
829
- return null != t && (await t), !this.isUpdatePending;
830
- }
831
- scheduleUpdate() {
832
- return this.performUpdate();
833
- }
834
- performUpdate() {
835
- var t;
836
- if (!this.isUpdatePending) return;
837
- this.hasUpdated, this._$Et && (this._$Et.forEach((t, i) => this[i] = t), this._$Et = void 0);
838
- let i = !1;
839
- const s = this._$AL;
840
- try {
841
- i = this.shouldUpdate(s), i ? (this.willUpdate(s), null === (t = this._$Eg) || void 0 === t || t.forEach(t => {
842
- var i;
843
- return null === (i = t.hostUpdate) || void 0 === i ? void 0 : i.call(t);
844
- }), this.update(s)) : this._$EU();
845
- } catch (t) {
846
- throw i = !1, this._$EU(), t;
847
- }
848
- i && this._$AE(s);
849
- }
850
- willUpdate(t) {}
851
- _$AE(t) {
852
- var i;
853
- null === (i = this._$Eg) || void 0 === i || i.forEach(t => {
854
- var i;
855
- return null === (i = t.hostUpdated) || void 0 === i ? void 0 : i.call(t);
856
- }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
857
- }
858
- _$EU() {
859
- this._$AL = new Map(), this.isUpdatePending = !1;
860
- }
861
- get updateComplete() {
862
- return this.getUpdateComplete();
863
- }
864
- getUpdateComplete() {
865
- return this._$Ep;
866
- }
867
- shouldUpdate(t) {
868
- return !0;
869
- }
870
- update(t) {
871
- void 0 !== this._$EC && (this._$EC.forEach((t, i) => this._$ES(i, this[i], t)), this._$EC = void 0), this._$EU();
872
- }
873
- updated(t) {}
874
- firstUpdated(t) {}
875
- }
876
- a.finalized = !0, a.elementProperties = new Map(), a.elementStyles = [], a.shadowRootOptions = {
877
- mode: "open"
878
- }, null == h || h({
879
- ReactiveElement: a
880
- }), (null !== (s$1 = globalThis.reactiveElementVersions) && void 0 !== s$1 ? s$1 : globalThis.reactiveElementVersions = []).push("1.3.1");
881
-
882
615
  /**
883
616
  * @license
884
617
  * Copyright 2017 Google LLC
885
618
  * SPDX-License-Identifier: BSD-3-Clause
886
619
  */
887
620
  var l$1, o;
888
- class s extends a {
621
+ class s extends u$1 {
889
622
  constructor() {
890
623
  super(...arguments), this.renderOptions = {
891
624
  host: this
@@ -898,7 +631,7 @@ class s extends a {
898
631
  }
899
632
  update(t) {
900
633
  const i = this.render();
901
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = B(i, this.renderRoot, this.renderOptions);
634
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = D(i, this.renderRoot, this.renderOptions);
902
635
  }
903
636
  connectedCallback() {
904
637
  var t;
@@ -919,7 +652,7 @@ const n = globalThis.litElementPolyfillSupport;
919
652
  null == n || n({
920
653
  LitElement: s
921
654
  });
922
- (null !== (o = globalThis.litElementVersions) && void 0 !== o ? o : globalThis.litElementVersions = []).push("3.3.0");
655
+ (null !== (o = globalThis.litElementVersions) && void 0 !== o ? o : globalThis.litElementVersions = []).push("3.3.3");
923
656
 
924
657
  var noop = {
925
658
  value: () => {}
@@ -1836,15 +1569,15 @@ function Color() {}
1836
1569
  var darker = 0.7;
1837
1570
  var brighter = 1 / darker;
1838
1571
  var reI = "\\s*([+-]?\\d+)\\s*",
1839
- reN = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",
1840
- reP = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
1572
+ reN = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",
1573
+ reP = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",
1841
1574
  reHex = /^#([0-9a-f]{3,8})$/,
1842
- reRgbInteger = new RegExp("^rgb\\(" + [reI, reI, reI] + "\\)$"),
1843
- reRgbPercent = new RegExp("^rgb\\(" + [reP, reP, reP] + "\\)$"),
1844
- reRgbaInteger = new RegExp("^rgba\\(" + [reI, reI, reI, reN] + "\\)$"),
1845
- reRgbaPercent = new RegExp("^rgba\\(" + [reP, reP, reP, reN] + "\\)$"),
1846
- reHslPercent = new RegExp("^hsl\\(" + [reN, reP, reP] + "\\)$"),
1847
- reHslaPercent = new RegExp("^hsla\\(" + [reN, reP, reP, reN] + "\\)$");
1575
+ reRgbInteger = new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`),
1576
+ reRgbPercent = new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`),
1577
+ reRgbaInteger = new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`),
1578
+ reRgbaPercent = new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`),
1579
+ reHslPercent = new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`),
1580
+ reHslaPercent = new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`);
1848
1581
  var named = {
1849
1582
  aliceblue: 0xf0f8ff,
1850
1583
  antiquewhite: 0xfaebd7,
@@ -1996,15 +1729,16 @@ var named = {
1996
1729
  yellowgreen: 0x9acd32
1997
1730
  };
1998
1731
  define(Color, color, {
1999
- copy: function (channels) {
1732
+ copy(channels) {
2000
1733
  return Object.assign(new this.constructor(), this, channels);
2001
1734
  },
2002
- displayable: function () {
1735
+ displayable() {
2003
1736
  return this.rgb().displayable();
2004
1737
  },
2005
1738
  hex: color_formatHex,
2006
1739
  // Deprecated! Use color.formatHex.
2007
1740
  formatHex: color_formatHex,
1741
+ formatHex8: color_formatHex8,
2008
1742
  formatHsl: color_formatHsl,
2009
1743
  formatRgb: color_formatRgb,
2010
1744
  toString: color_formatRgb
@@ -2012,6 +1746,9 @@ define(Color, color, {
2012
1746
  function color_formatHex() {
2013
1747
  return this.rgb().formatHex();
2014
1748
  }
1749
+ function color_formatHex8() {
1750
+ return this.rgb().formatHex8();
1751
+ }
2015
1752
  function color_formatHsl() {
2016
1753
  return hslConvert(this).formatHsl();
2017
1754
  }
@@ -2058,36 +1795,48 @@ function Rgb(r, g, b, opacity) {
2058
1795
  this.opacity = +opacity;
2059
1796
  }
2060
1797
  define(Rgb, rgb, extend(Color, {
2061
- brighter: function (k) {
1798
+ brighter(k) {
2062
1799
  k = k == null ? brighter : Math.pow(brighter, k);
2063
1800
  return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
2064
1801
  },
2065
- darker: function (k) {
1802
+ darker(k) {
2066
1803
  k = k == null ? darker : Math.pow(darker, k);
2067
1804
  return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
2068
1805
  },
2069
- rgb: function () {
1806
+ rgb() {
2070
1807
  return this;
2071
1808
  },
2072
- displayable: function () {
1809
+ clamp() {
1810
+ return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity));
1811
+ },
1812
+ displayable() {
2073
1813
  return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
2074
1814
  },
2075
1815
  hex: rgb_formatHex,
2076
1816
  // Deprecated! Use color.formatHex.
2077
1817
  formatHex: rgb_formatHex,
1818
+ formatHex8: rgb_formatHex8,
2078
1819
  formatRgb: rgb_formatRgb,
2079
1820
  toString: rgb_formatRgb
2080
1821
  }));
2081
1822
  function rgb_formatHex() {
2082
- return "#" + hex(this.r) + hex(this.g) + hex(this.b);
1823
+ return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}`;
1824
+ }
1825
+ function rgb_formatHex8() {
1826
+ return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
2083
1827
  }
2084
1828
  function rgb_formatRgb() {
2085
- var a = this.opacity;
2086
- a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));
2087
- return (a === 1 ? "rgb(" : "rgba(") + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.b) || 0)) + (a === 1 ? ")" : ", " + a + ")");
1829
+ const a = clampa(this.opacity);
1830
+ return `${a === 1 ? "rgb(" : "rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${a === 1 ? ")" : `, ${a})`}`;
1831
+ }
1832
+ function clampa(opacity) {
1833
+ return isNaN(opacity) ? 1 : Math.max(0, Math.min(1, opacity));
1834
+ }
1835
+ function clampi(value) {
1836
+ return Math.max(0, Math.min(255, Math.round(value) || 0));
2088
1837
  }
2089
1838
  function hex(value) {
2090
- value = Math.max(0, Math.min(255, Math.round(value) || 0));
1839
+ value = clampi(value);
2091
1840
  return (value < 16 ? "0" : "") + value.toString(16);
2092
1841
  }
2093
1842
  function hsla(h, s, l, a) {
@@ -2127,15 +1876,15 @@ function Hsl(h, s, l, opacity) {
2127
1876
  this.opacity = +opacity;
2128
1877
  }
2129
1878
  define(Hsl, hsl, extend(Color, {
2130
- brighter: function (k) {
1879
+ brighter(k) {
2131
1880
  k = k == null ? brighter : Math.pow(brighter, k);
2132
1881
  return new Hsl(this.h, this.s, this.l * k, this.opacity);
2133
1882
  },
2134
- darker: function (k) {
1883
+ darker(k) {
2135
1884
  k = k == null ? darker : Math.pow(darker, k);
2136
1885
  return new Hsl(this.h, this.s, this.l * k, this.opacity);
2137
1886
  },
2138
- rgb: function () {
1887
+ rgb() {
2139
1888
  var h = this.h % 360 + (this.h < 0) * 360,
2140
1889
  s = isNaN(h) || isNaN(this.s) ? 0 : this.s,
2141
1890
  l = this.l,
@@ -2143,15 +1892,24 @@ define(Hsl, hsl, extend(Color, {
2143
1892
  m1 = 2 * l - m2;
2144
1893
  return new Rgb(hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2), hsl2rgb(h, m1, m2), hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2), this.opacity);
2145
1894
  },
2146
- displayable: function () {
1895
+ clamp() {
1896
+ return new Hsl(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity));
1897
+ },
1898
+ displayable() {
2147
1899
  return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
2148
1900
  },
2149
- formatHsl: function () {
2150
- var a = this.opacity;
2151
- a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));
2152
- return (a === 1 ? "hsl(" : "hsla(") + (this.h || 0) + ", " + (this.s || 0) * 100 + "%, " + (this.l || 0) * 100 + "%" + (a === 1 ? ")" : ", " + a + ")");
1901
+ formatHsl() {
1902
+ const a = clampa(this.opacity);
1903
+ return `${a === 1 ? "hsl(" : "hsla("}${clamph(this.h)}, ${clampt(this.s) * 100}%, ${clampt(this.l) * 100}%${a === 1 ? ")" : `, ${a})`}`;
2153
1904
  }
2154
1905
  }));
1906
+ function clamph(value) {
1907
+ value = (value || 0) % 360;
1908
+ return value < 0 ? value + 360 : value;
1909
+ }
1910
+ function clampt(value) {
1911
+ return Math.max(0, Math.min(1, value || 0));
1912
+ }
2155
1913
 
2156
1914
  /* From FvD 13.37, CSS Color Module Level 3 */
2157
1915
  function hsl2rgb(h, m1, m2) {
@@ -3481,6 +3239,48 @@ class DecidablesElement extends s {
3481
3239
  const ambientS = rotate ? `${-ambientM.y}px ${ambientM.y / 2}px ${ambientM.b}px ${ambientM.s}px` : `${ambientM.y / 2}px ${ambientM.y}px ${ambientM.b}px ${ambientM.s}px`;
3482
3240
  return `${umbraS} ${umbraC}, ${penumbraS} ${penumbraC}, ${ambientS} ${ambientC}`;
3483
3241
  }
3242
+ static get svgDefs() {
3243
+ const shadows = DecidablesElement.shadows; /* eslint-disable-line prefer-destructuring */
3244
+
3245
+ const filters = shadows.elevations.map(z => {
3246
+ return `
3247
+ <filter id=${`shadow-${z}`} filterUnits="userSpaceOnUse" x="-100%" y="-100%" width="200%" height="200%">
3248
+ <feComponentTransfer in="SourceAlpha" result="solid">
3249
+ <feFuncA type="table" tableValues="0 1 1"/>
3250
+ </feComponentTransfer>
3251
+ <feOffset in="solid" result="offU" dx=${shadows.mapUmbra[z].y / 2} dy=${shadows.mapUmbra[z].y} />
3252
+ <feOffset in="solid" result="offP" dx=${shadows.mapPenumbra[z].y / 2} dy=${shadows.mapPenumbra[z].y} />
3253
+ <feOffset in="solid" result="offA" dx=${shadows.mapAmbient[z].y / 2} dy=${shadows.mapAmbient[z].y} />
3254
+ ${shadows.mapUmbra[z].s === 0 ? '' : `<feMorphology in="offU" result="spreadU" operator=${shadows.mapUmbra[z].s > 0 ? 'dilate' : 'erode'} radius=${Math.abs(shadows.mapUmbra[z].s)} />`}
3255
+ ${shadows.mapPenumbra[z].s === 0 ? '' : `<feMorphology in="offP" result="spreadP" operator=${shadows.mapPenumbra[z].s > 0 ? 'dilate' : 'erode'} radius=${Math.abs(shadows.mapPenumbra[z].s)} />`}
3256
+ ${shadows.mapAmbient[z].s === 0 ? '' : `<feMorphology in="offA" result="spreadA" operator=${shadows.mapAmbient[z].s > 0 ? 'dilate' : 'erode'} radius=${Math.abs(shadows.mapAmbient[z].s)} />`}
3257
+ <feGaussianBlur in=${shadows.mapUmbra[z].s === 0 ? 'offU' : 'spreadU'} result="blurU" stdDeviation=${shadows.mapUmbra[z].b / 2} />
3258
+ <feGaussianBlur in=${shadows.mapPenumbra[z].s === 0 ? 'offP' : 'spreadP'} result="blurP" stdDeviation=${shadows.mapPenumbra[z].b / 2} />
3259
+ <feGaussianBlur in=${shadows.mapAmbient[z].s === 0 ? 'offA' : 'spreadA'} result="blurA" stdDeviation=${shadows.mapAmbient[z].b / 2} />
3260
+ <feFlood in="SourceGraphic" result="opU" flood-color=${shadows.baselineColor} flood-opacity=${shadows.opacityUmbra + shadows.opacityBoost} />
3261
+ <feFlood in="SourceGraphic" result="opP" flood-color=${shadows.baselineColor} flood-opacity=${shadows.opacityPenumbra + shadows.opacityBoost} />
3262
+ <feFlood in="SourceGraphic" result="opA" flood-color=${shadows.baselineColor} flood-opacity=${shadows.opacityAmbient + shadows.opacityBoost} />
3263
+ <feComposite in="opU" in2="blurU" result="shU" operator="in" />
3264
+ <feComposite in="opP" in2="blurP" result="shP" operator="in" />
3265
+ <feComposite in="opA" in2="blurA" result="shA" operator="in" />
3266
+ <feMorphology in="solid" result="smaller" operator="erode" radius="1" />
3267
+ <feComposite in="shU" in2="smaller" result="finalU" operator="out" />
3268
+ <feComposite in="shP" in2="smaller" result="finalP" operator="out" />
3269
+ <feComposite in="shA" in2="smaller" result="finalA" operator="out" />
3270
+ <feMerge>
3271
+ <feMergeNode in="finalU" />
3272
+ <feMergeNode in="finalP" />
3273
+ <feMergeNode in="finalA" />
3274
+ <feMergeNode in="SourceGraphic" />
3275
+ </feMerge>
3276
+ </filter>`;
3277
+ });
3278
+ return `
3279
+ <defs>
3280
+ ${filters}
3281
+ </defs>
3282
+ `;
3283
+ }
3484
3284
  static get svgFilters() {
3485
3285
  const shadows = DecidablesElement.shadows; /* eslint-disable-line prefer-destructuring */
3486
3286
 
@@ -3488,7 +3288,7 @@ class DecidablesElement extends s {
3488
3288
  return b`
3489
3289
  <filter id=${`shadow-${z}`} x="-250%" y="-250%" width="600%" height="600%">
3490
3290
  <feComponentTransfer in="SourceAlpha" result="solid">
3491
- <feFuncA type="table" tableValues="0 1 1"/>
3291
+ <feFuncA type="table" tableValues="0 1 1"/>
3492
3292
  </feComponentTransfer>
3493
3293
  <feOffset in="solid" result="offU" dx=${shadows.mapUmbra[z].y / 2} dy=${shadows.mapUmbra[z].y} />
3494
3294
  <feOffset in="solid" result="offP" dx=${shadows.mapPenumbra[z].y / 2} dy=${shadows.mapPenumbra[z].y} />
@@ -3526,24 +3326,24 @@ class DecidablesElement extends s {
3526
3326
  `;
3527
3327
  }
3528
3328
  static get styles() {
3529
- return r$1`
3329
+ return i$1`
3530
3330
  :host {
3531
- ---shadow-0: var(--shadow-0, ${o$2(this.cssBoxShadow(0))});
3532
- ---shadow-2: var(--shadow-2, ${o$2(this.cssBoxShadow(2))});
3533
- ---shadow-4: var(--shadow-4, ${o$2(this.cssBoxShadow(4))});
3534
- ---shadow-8: var(--shadow-8, ${o$2(this.cssBoxShadow(8))});
3535
-
3536
- ---color-background: var(--color-background, ${o$2(this.greys.white)});
3537
- ---color-border: var(--color-border, ${o$2(this.greys.light75)});
3538
- ---color-text: var(--color-text, ${o$2(this.greys.dark75)});
3539
- ---color-text-inverse: var(--color-text-inverse, ${o$2(this.greys.white)});
3540
- ---color-link: var(--color-link, ${o$2(this.greys.dark25)});
3541
- ---color-element-background: var(--color-element-background, ${o$2(this.greys.light75)});
3542
- ---color-element-disabled: var(--color-element-disabled, ${o$2(this.greys.light50)});
3543
- ---color-element-enabled: var(--color-element-enabled, ${o$2(this.greys.dark25)});
3544
- ---color-element-selected: var(--color-element-selected, ${o$2(this.greys.grey)});
3545
- ---color-element-border: var(--color-element-border, ${o$2(this.greys.dark50)});
3546
- ---color-element-emphasis: var(--color-element-emphasis, ${o$2(this.greys.dark75)});
3331
+ ---shadow-0: var(--shadow-0, ${r$2(this.cssBoxShadow(0))});
3332
+ ---shadow-2: var(--shadow-2, ${r$2(this.cssBoxShadow(2))});
3333
+ ---shadow-4: var(--shadow-4, ${r$2(this.cssBoxShadow(4))});
3334
+ ---shadow-8: var(--shadow-8, ${r$2(this.cssBoxShadow(8))});
3335
+
3336
+ ---color-background: var(--color-background, ${r$2(this.greys.white)});
3337
+ ---color-border: var(--color-border, ${r$2(this.greys.light75)});
3338
+ ---color-text: var(--color-text, ${r$2(this.greys.dark75)});
3339
+ ---color-text-inverse: var(--color-text-inverse, ${r$2(this.greys.white)});
3340
+ ---color-link: var(--color-link, ${r$2(this.greys.dark25)});
3341
+ ---color-element-background: var(--color-element-background, ${r$2(this.greys.light75)});
3342
+ ---color-element-disabled: var(--color-element-disabled, ${r$2(this.greys.light50)});
3343
+ ---color-element-enabled: var(--color-element-enabled, ${r$2(this.greys.dark25)});
3344
+ ---color-element-selected: var(--color-element-selected, ${r$2(this.greys.grey)});
3345
+ ---color-element-border: var(--color-element-border, ${r$2(this.greys.dark50)});
3346
+ ---color-element-emphasis: var(--color-element-emphasis, ${r$2(this.greys.dark75)});
3547
3347
 
3548
3348
  ---font-family-base: var(--font-family-base, "Source Sans", sans-serif);
3549
3349
  ---font-family-math: var(--font-family-math, "Source Serif", serif);
@@ -3604,7 +3404,7 @@ class DecidablesButton extends DecidablesElement {
3604
3404
  this.disabled = false;
3605
3405
  }
3606
3406
  static get styles() {
3607
- return [super.styles, r$1`
3407
+ return [super.styles, i$1`
3608
3408
  :host {
3609
3409
  margin: 0.25rem;
3610
3410
  }
@@ -3729,11 +3529,11 @@ class DecidablesSlider extends DecidablesElement {
3729
3529
  this.value = event.target.value;
3730
3530
  }
3731
3531
  static get styles() {
3732
- return [super.styles, r$1`
3532
+ return [super.styles, i$1`
3733
3533
  :host {
3734
- ---shadow-2-rotate: var(--shadow-2-rotate, ${o$2(this.cssBoxShadow(2, true, false))});
3735
- ---shadow-4-rotate: var(--shadow-4-rotate, ${o$2(this.cssBoxShadow(4, true, false))});
3736
- ---shadow-8-rotate: var(--shadow-8-rotate, ${o$2(this.cssBoxShadow(8, true, false))});
3534
+ ---shadow-2-rotate: var(--shadow-2-rotate, ${r$2(this.cssBoxShadow(2, true, false))});
3535
+ ---shadow-4-rotate: var(--shadow-4-rotate, ${r$2(this.cssBoxShadow(4, true, false))});
3536
+ ---shadow-8-rotate: var(--shadow-8-rotate, ${r$2(this.cssBoxShadow(8, true, false))});
3737
3537
 
3738
3538
  display: flex;
3739
3539
 
@@ -4039,12 +3839,15 @@ class DecidablesSpinner extends DecidablesElement {
4039
3839
  this.value = event.target.value;
4040
3840
  }
4041
3841
  static get styles() {
4042
- return [super.styles, r$1`
3842
+ return [super.styles, i$1`
4043
3843
  :host {
4044
3844
  ---decidables-spinner-font-size: var(--decidables-spinner-font-size, 1.125rem);
4045
3845
  ---decidables-spinner-input-width: var(--decidables-spinner-input-width, 4rem);
4046
3846
  ---decidables-spinner-prefix: var(--decidables-spinner-prefix, "");
4047
3847
 
3848
+ ---decidables-spinner-postfix: var(--decidables-spinner-postfix, "");
3849
+ ---decidables-spinner-postfix-padding: var(--decidables-spinner-postfix-padding, 0);
3850
+
4048
3851
  display: block;
4049
3852
  }
4050
3853
 
@@ -4072,8 +3875,20 @@ class DecidablesSpinner extends DecidablesElement {
4072
3875
  content: var(---decidables-spinner-prefix);
4073
3876
  }
4074
3877
 
3878
+ label::after {
3879
+ position: absolute;
3880
+ right: 0.25rem;
3881
+ bottom: 1px;
3882
+
3883
+ font-size: var(---decidables-spinner-font-size);
3884
+ line-height: normal;
3885
+
3886
+ content: var(---decidables-spinner-postfix);
3887
+ }
3888
+
4075
3889
  input[type=number] {
4076
3890
  width: var(---decidables-spinner-input-width);
3891
+ padding-right: var(---decidables-spinner-postfix-padding);
4077
3892
 
4078
3893
  font-family: var(---font-family-base);
4079
3894
  font-size: var(---decidables-spinner-font-size);
@@ -4163,7 +3978,7 @@ class DecidablesSwitch extends DecidablesElement {
4163
3978
  }));
4164
3979
  }
4165
3980
  static get styles() {
4166
- return [super.styles, r$1`
3981
+ return [super.styles, i$1`
4167
3982
  :host {
4168
3983
  display: flex;
4169
3984
 
@@ -4315,7 +4130,7 @@ class DecidablesToggle extends DecidablesElement {
4315
4130
  this.disabled = false;
4316
4131
  }
4317
4132
  static get styles() {
4318
- return [super.styles, r$1`
4133
+ return [super.styles, i$1`
4319
4134
  fieldset {
4320
4135
  display: flex;
4321
4136
 
@@ -4390,7 +4205,7 @@ class DecidablesToggleOption extends DecidablesElement {
4390
4205
  }));
4391
4206
  }
4392
4207
  static get styles() {
4393
- return [super.styles, r$1`
4208
+ return [super.styles, i$1`
4394
4209
  :host {
4395
4210
  display: flex;
4396
4211
  }
@@ -4526,5 +4341,49 @@ const DecidablesConverterSet = {
4526
4341
  }
4527
4342
  };
4528
4343
 
4529
- export { DecidablesButton, DecidablesConverterArray, DecidablesConverterSet, DecidablesElement, DecidablesSlider, DecidablesSpinner, DecidablesSwitch, DecidablesToggle, DecidablesToggleOption };
4344
+ function DecidablesMixinResizeable(superClass) {
4345
+ return class extends superClass {
4346
+ static get properties() {
4347
+ return {
4348
+ width: {
4349
+ attribute: false,
4350
+ type: Number,
4351
+ reflect: false
4352
+ },
4353
+ height: {
4354
+ attribute: false,
4355
+ type: Number,
4356
+ reflect: false
4357
+ },
4358
+ rem: {
4359
+ attribute: false,
4360
+ type: Number,
4361
+ reflect: false
4362
+ }
4363
+ };
4364
+ }
4365
+ constructor() {
4366
+ super();
4367
+ this.width = NaN;
4368
+ this.height = NaN;
4369
+ this.rem = NaN;
4370
+ }
4371
+ getDimensions() {
4372
+ this.width = parseFloat(this.getComputedStyleValue('width'), 10);
4373
+ this.height = parseFloat(this.getComputedStyleValue('height'), 10);
4374
+ this.rem = parseFloat(getComputedStyle(document.documentElement).getPropertyValue('font-size'), 10);
4375
+ }
4376
+ connectedCallback() {
4377
+ super.connectedCallback();
4378
+ this.resizeObserver = new ResizeObserver(this.getDimensions.bind(this));
4379
+ this.resizeObserver.observe(this);
4380
+ }
4381
+ disconnectedCallback() {
4382
+ this.resizeObserver.unobserve(this);
4383
+ super.disconnectedCallback();
4384
+ }
4385
+ };
4386
+ }
4387
+
4388
+ export { DecidablesButton, DecidablesConverterArray, DecidablesConverterSet, DecidablesElement, DecidablesMixinResizeable, DecidablesSlider, DecidablesSpinner, DecidablesSwitch, DecidablesToggle, DecidablesToggleOption };
4530
4389
  //# sourceMappingURL=decidablesElements.esm.js.map