@oslokommune/punkt-elements 11.19.3 → 12.0.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.
Files changed (31) hide show
  1. package/dist/{src/components → components}/calendar/index.d.ts +0 -1
  2. package/dist/{src/components → components}/component-template/index.d.ts +0 -1
  3. package/dist/{src/components → components}/element/index.d.ts +1 -2
  4. package/dist/{src/components → components}/icon/index.d.ts +0 -1
  5. package/dist/{src/controllers → controllers}/pkt-slot-controller.d.ts +0 -1
  6. package/dist/converters-Bi8tmNvQ.cjs +5 -0
  7. package/dist/{converters-c2bad255.js → converters-DMveycvc.js} +13 -18
  8. package/dist/{directive-1053a959.js → directive-C7mkmyiy.js} +145 -178
  9. package/dist/directive-DfhMJ1ie.cjs +23 -0
  10. package/dist/{index-8cd06749.js → index-0PZgk9Oc.js} +26 -40
  11. package/dist/index-xoVy6sfy.cjs +13 -0
  12. package/dist/pkt-el-calendar.cjs +14 -14
  13. package/dist/pkt-el-calendar.js +295 -303
  14. package/dist/pkt-el-component-template.cjs +6 -6
  15. package/dist/pkt-el-component-template.js +8 -8
  16. package/dist/pkt-el-element.cjs +1 -1
  17. package/dist/pkt-el-element.js +2 -2
  18. package/dist/pkt-el-icon.cjs +3 -3
  19. package/dist/pkt-el-icon.js +27 -32
  20. package/dist/pkt-el-index.cjs +1 -1
  21. package/dist/pkt-el-index.js +6 -10
  22. package/dist/{property-dd1c41a8.js → property-BBVRv-DT.js} +1 -1
  23. package/dist/{property-607ef6c9.cjs → property-CK6SFc5B.cjs} +1 -1
  24. package/package.json +8 -8
  25. package/dist/converters-b87c8d9f.cjs +0 -5
  26. package/dist/directive-47ed6f74.cjs +0 -23
  27. package/dist/index-c6f5a3e8.cjs +0 -13
  28. package/dist/vite.config.d.ts +0 -2
  29. /package/dist/{src/components → components}/index.d.ts +0 -0
  30. /package/dist/{src/helpers → helpers}/converters.d.ts +0 -0
  31. /package/dist/{src/index.d.ts → index.d.ts} +0 -0
@@ -3,19 +3,18 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const H = globalThis, D = H.ShadowRoot && (H.ShadyCSS === void 0 || H.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Q = Symbol(), z = /* @__PURE__ */ new WeakMap();
7
- let nt = class {
6
+ const O = globalThis, B = O.ShadowRoot && (O.ShadyCSS === void 0 || O.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, X = Symbol(), D = /* @__PURE__ */ new WeakMap();
7
+ let rt = class {
8
8
  constructor(t, e, s) {
9
- if (this._$cssResult$ = !0, s !== Q)
10
- throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
9
+ if (this._$cssResult$ = !0, s !== X) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
11
10
  this.cssText = t, this.t = e;
12
11
  }
13
12
  get styleSheet() {
14
13
  let t = this.o;
15
14
  const e = this.t;
16
- if (D && t === void 0) {
15
+ if (B && t === void 0) {
17
16
  const s = e !== void 0 && e.length === 1;
18
- s && (t = z.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && z.set(e, t));
17
+ s && (t = D.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && D.set(e, t));
19
18
  }
20
19
  return t;
21
20
  }
@@ -23,54 +22,51 @@ let nt = class {
23
22
  return this.cssText;
24
23
  }
25
24
  };
26
- const ot = (r) => new nt(typeof r == "string" ? r : r + "", void 0, Q), ht = (r, t) => {
27
- if (D)
28
- r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
29
- else
30
- for (const e of t) {
31
- const s = document.createElement("style"), i = H.litNonce;
32
- i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
33
- }
34
- }, j = D ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
25
+ const ot = (n) => new rt(typeof n == "string" ? n : n + "", void 0, X), ht = (n, t) => {
26
+ if (B) n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
27
+ else for (const e of t) {
28
+ const s = document.createElement("style"), i = O.litNonce;
29
+ i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, n.appendChild(s);
30
+ }
31
+ }, V = B ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
35
32
  let e = "";
36
- for (const s of t.cssRules)
37
- e += s.cssText;
33
+ for (const s of t.cssRules) e += s.cssText;
38
34
  return ot(e);
39
- })(r) : r;
35
+ })(n) : n;
40
36
  /**
41
37
  * @license
42
38
  * Copyright 2017 Google LLC
43
39
  * SPDX-License-Identifier: BSD-3-Clause
44
40
  */
45
- const { is: at, defineProperty: lt, getOwnPropertyDescriptor: ct, getOwnPropertyNames: dt, getOwnPropertySymbols: pt, getPrototypeOf: $t } = Object, A = globalThis, W = A.trustedTypes, ut = W ? W.emptyScript : "", M = A.reactiveElementPolyfillSupport, b = (r, t) => r, B = { toAttribute(r, t) {
41
+ const { is: lt, defineProperty: at, getOwnPropertyDescriptor: ct, getOwnPropertyNames: dt, getOwnPropertySymbols: pt, getPrototypeOf: $t } = Object, A = globalThis, W = A.trustedTypes, ut = W ? W.emptyScript : "", M = A.reactiveElementPolyfillSupport, b = (n, t) => n, z = { toAttribute(n, t) {
46
42
  switch (t) {
47
43
  case Boolean:
48
- r = r ? ut : null;
44
+ n = n ? ut : null;
49
45
  break;
50
46
  case Object:
51
47
  case Array:
52
- r = r == null ? r : JSON.stringify(r);
48
+ n = n == null ? n : JSON.stringify(n);
53
49
  }
54
- return r;
55
- }, fromAttribute(r, t) {
56
- let e = r;
50
+ return n;
51
+ }, fromAttribute(n, t) {
52
+ let e = n;
57
53
  switch (t) {
58
54
  case Boolean:
59
- e = r !== null;
55
+ e = n !== null;
60
56
  break;
61
57
  case Number:
62
- e = r === null ? null : Number(r);
58
+ e = n === null ? null : Number(n);
63
59
  break;
64
60
  case Object:
65
61
  case Array:
66
62
  try {
67
- e = JSON.parse(r);
63
+ e = JSON.parse(n);
68
64
  } catch {
69
65
  e = null;
70
66
  }
71
67
  }
72
68
  return e;
73
- } }, X = (r, t) => !at(r, t), V = { attribute: !0, type: String, converter: B, reflect: !1, hasChanged: X };
69
+ } }, tt = (n, t) => !lt(n, t), q = { attribute: !0, type: String, converter: z, reflect: !1, hasChanged: tt };
74
70
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), A.litPropertyMetadata ?? (A.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
75
71
  class y extends HTMLElement {
76
72
  static addInitializer(t) {
@@ -79,48 +75,43 @@ class y extends HTMLElement {
79
75
  static get observedAttributes() {
80
76
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
81
77
  }
82
- static createProperty(t, e = V) {
78
+ static createProperty(t, e = q) {
83
79
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
84
80
  const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
85
- i !== void 0 && lt(this.prototype, t, i);
81
+ i !== void 0 && at(this.prototype, t, i);
86
82
  }
87
83
  }
88
84
  static getPropertyDescriptor(t, e, s) {
89
85
  const { get: i, set: o } = ct(this.prototype, t) ?? { get() {
90
86
  return this[e];
91
- }, set(n) {
92
- this[e] = n;
87
+ }, set(r) {
88
+ this[e] = r;
93
89
  } };
94
90
  return { get() {
95
91
  return i == null ? void 0 : i.call(this);
96
- }, set(n) {
97
- const l = i == null ? void 0 : i.call(this);
98
- o.call(this, n), this.requestUpdate(t, l, s);
92
+ }, set(r) {
93
+ const a = i == null ? void 0 : i.call(this);
94
+ o.call(this, r), this.requestUpdate(t, a, s);
99
95
  }, configurable: !0, enumerable: !0 };
100
96
  }
101
97
  static getPropertyOptions(t) {
102
- return this.elementProperties.get(t) ?? V;
98
+ return this.elementProperties.get(t) ?? q;
103
99
  }
104
100
  static _$Ei() {
105
- if (this.hasOwnProperty(b("elementProperties")))
106
- return;
101
+ if (this.hasOwnProperty(b("elementProperties"))) return;
107
102
  const t = $t(this);
108
103
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
109
104
  }
110
105
  static finalize() {
111
- if (this.hasOwnProperty(b("finalized")))
112
- return;
106
+ if (this.hasOwnProperty(b("finalized"))) return;
113
107
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(b("properties"))) {
114
108
  const e = this.properties, s = [...dt(e), ...pt(e)];
115
- for (const i of s)
116
- this.createProperty(i, e[i]);
109
+ for (const i of s) this.createProperty(i, e[i]);
117
110
  }
118
111
  const t = this[Symbol.metadata];
119
112
  if (t !== null) {
120
113
  const e = litPropertyMetadata.get(t);
121
- if (e !== void 0)
122
- for (const [s, i] of e)
123
- this.elementProperties.set(s, i);
114
+ if (e !== void 0) for (const [s, i] of e) this.elementProperties.set(s, i);
124
115
  }
125
116
  this._$Eh = /* @__PURE__ */ new Map();
126
117
  for (const [e, s] of this.elementProperties) {
@@ -133,10 +124,8 @@ class y extends HTMLElement {
133
124
  const e = [];
134
125
  if (Array.isArray(t)) {
135
126
  const s = new Set(t.flat(1 / 0).reverse());
136
- for (const i of s)
137
- e.unshift(j(i));
138
- } else
139
- t !== void 0 && e.push(j(t));
127
+ for (const i of s) e.unshift(V(i));
128
+ } else t !== void 0 && e.push(V(t));
140
129
  return e;
141
130
  }
142
131
  static _$Eu(t, e) {
@@ -160,8 +149,7 @@ class y extends HTMLElement {
160
149
  }
161
150
  _$E_() {
162
151
  const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
163
- for (const s of e.keys())
164
- this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
152
+ for (const s of e.keys()) this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
165
153
  t.size > 0 && (this._$Ep = t);
166
154
  }
167
155
  createRenderRoot() {
@@ -191,22 +179,21 @@ class y extends HTMLElement {
191
179
  var o;
192
180
  const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
193
181
  if (i !== void 0 && s.reflect === !0) {
194
- const n = (((o = s.converter) == null ? void 0 : o.toAttribute) !== void 0 ? s.converter : B).toAttribute(e, s.type);
195
- this._$Em = t, n == null ? this.removeAttribute(i) : this.setAttribute(i, n), this._$Em = null;
182
+ const r = (((o = s.converter) == null ? void 0 : o.toAttribute) !== void 0 ? s.converter : z).toAttribute(e, s.type);
183
+ this._$Em = t, r == null ? this.removeAttribute(i) : this.setAttribute(i, r), this._$Em = null;
196
184
  }
197
185
  }
198
186
  _$AK(t, e) {
199
187
  var o;
200
188
  const s = this.constructor, i = s._$Eh.get(t);
201
189
  if (i !== void 0 && this._$Em !== i) {
202
- const n = s.getPropertyOptions(i), l = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((o = n.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? n.converter : B;
203
- this._$Em = i, this[i] = l.fromAttribute(e, n.type), this._$Em = null;
190
+ const r = s.getPropertyOptions(i), a = typeof r.converter == "function" ? { fromAttribute: r.converter } : ((o = r.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? r.converter : z;
191
+ this._$Em = i, this[i] = a.fromAttribute(e, r.type), this._$Em = null;
204
192
  }
205
193
  }
206
194
  requestUpdate(t, e, s) {
207
195
  if (t !== void 0) {
208
- if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? X)(this[t], e))
209
- return;
196
+ if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? tt)(this[t], e)) return;
210
197
  this.P(t, e, s);
211
198
  }
212
199
  this.isUpdatePending === !1 && (this._$ES = this._$ET());
@@ -229,18 +216,14 @@ class y extends HTMLElement {
229
216
  }
230
217
  performUpdate() {
231
218
  var s;
232
- if (!this.isUpdatePending)
233
- return;
219
+ if (!this.isUpdatePending) return;
234
220
  if (!this.hasUpdated) {
235
221
  if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
236
- for (const [o, n] of this._$Ep)
237
- this[o] = n;
222
+ for (const [o, r] of this._$Ep) this[o] = r;
238
223
  this._$Ep = void 0;
239
224
  }
240
225
  const i = this.constructor.elementProperties;
241
- if (i.size > 0)
242
- for (const [o, n] of i)
243
- n.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], n);
226
+ if (i.size > 0) for (const [o, r] of i) r.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], r);
244
227
  }
245
228
  let t = !1;
246
229
  const e = this._$AL;
@@ -289,80 +272,70 @@ y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[b("elementProper
289
272
  * Copyright 2017 Google LLC
290
273
  * SPDX-License-Identifier: BSD-3-Clause
291
274
  */
292
- const C = globalThis, O = C.trustedTypes, q = O ? O.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, tt = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, et = "?" + _, _t = `<${et}>`, m = document, w = () => m.createComment(""), P = (r) => r === null || typeof r != "object" && typeof r != "function", st = Array.isArray, At = (r) => st(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", k = `[
293
- \f\r]`, S = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, J = /-->/g, K = />/g, f = RegExp(`>|${k}(?:([^\\s"'>=/]+)(${k}*=${k}*(?:[^
294
- \f\r"'\`<>=]|("|')|))|$)`, "g"), F = /'/g, Y = /"/g, it = /^(?:script|style|textarea|title)$/i, ft = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), wt = ft(1), v = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Z = /* @__PURE__ */ new WeakMap(), g = m.createTreeWalker(m, 129);
295
- function rt(r, t) {
296
- if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
297
- throw Error("invalid template strings array");
298
- return q !== void 0 ? q.createHTML(t) : t;
275
+ const w = globalThis, N = w.trustedTypes, K = N ? N.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, et = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, st = "?" + _, _t = `<${st}>`, g = document, P = () => g.createComment(""), U = (n) => n === null || typeof n != "object" && typeof n != "function", j = Array.isArray, At = (n) => j(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", k = `[
276
+ \f\r]`, S = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Z = /-->/g, F = />/g, f = RegExp(`>|${k}(?:([^\\s"'>=/]+)(${k}*=${k}*(?:[^
277
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), J = /'/g, Y = /"/g, it = /^(?:script|style|textarea|title)$/i, ft = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), Pt = ft(1), v = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), G = /* @__PURE__ */ new WeakMap(), m = g.createTreeWalker(g, 129);
278
+ function nt(n, t) {
279
+ if (!j(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
280
+ return K !== void 0 ? K.createHTML(t) : t;
299
281
  }
300
- const gt = (r, t) => {
301
- const e = r.length - 1, s = [];
302
- let i, o = t === 2 ? "<svg>" : "", n = S;
303
- for (let l = 0; l < e; l++) {
304
- const h = r[l];
305
- let c, p, a = -1, $ = 0;
306
- for (; $ < h.length && (n.lastIndex = $, p = n.exec(h), p !== null); )
307
- $ = n.lastIndex, n === S ? p[1] === "!--" ? n = J : p[1] !== void 0 ? n = K : p[2] !== void 0 ? (it.test(p[2]) && (i = RegExp("</" + p[2], "g")), n = f) : p[3] !== void 0 && (n = f) : n === f ? p[0] === ">" ? (n = i ?? S, a = -1) : p[1] === void 0 ? a = -2 : (a = n.lastIndex - p[2].length, c = p[1], n = p[3] === void 0 ? f : p[3] === '"' ? Y : F) : n === Y || n === F ? n = f : n === J || n === K ? n = S : (n = f, i = void 0);
308
- const u = n === f && r[l + 1].startsWith("/>") ? " " : "";
309
- o += n === S ? h + _t : a >= 0 ? (s.push(c), h.slice(0, a) + tt + h.slice(a) + _ + u) : h + _ + (a === -2 ? l : u);
310
- }
311
- return [rt(r, o + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
282
+ const mt = (n, t) => {
283
+ const e = n.length - 1, s = [];
284
+ let i, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r = S;
285
+ for (let a = 0; a < e; a++) {
286
+ const h = n[a];
287
+ let c, p, l = -1, $ = 0;
288
+ for (; $ < h.length && (r.lastIndex = $, p = r.exec(h), p !== null); ) $ = r.lastIndex, r === S ? p[1] === "!--" ? r = Z : p[1] !== void 0 ? r = F : p[2] !== void 0 ? (it.test(p[2]) && (i = RegExp("</" + p[2], "g")), r = f) : p[3] !== void 0 && (r = f) : r === f ? p[0] === ">" ? (r = i ?? S, l = -1) : p[1] === void 0 ? l = -2 : (l = r.lastIndex - p[2].length, c = p[1], r = p[3] === void 0 ? f : p[3] === '"' ? Y : J) : r === Y || r === J ? r = f : r === Z || r === F ? r = S : (r = f, i = void 0);
289
+ const u = r === f && n[a + 1].startsWith("/>") ? " " : "";
290
+ o += r === S ? h + _t : l >= 0 ? (s.push(c), h.slice(0, l) + et + h.slice(l) + _ + u) : h + _ + (l === -2 ? a : u);
291
+ }
292
+ return [nt(n, o + (n[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
312
293
  };
313
- class U {
294
+ class C {
314
295
  constructor({ strings: t, _$litType$: e }, s) {
315
296
  let i;
316
297
  this.parts = [];
317
- let o = 0, n = 0;
318
- const l = t.length - 1, h = this.parts, [c, p] = gt(t, e);
319
- if (this.el = U.createElement(c, s), g.currentNode = this.el.content, e === 2) {
320
- const a = this.el.content.firstChild;
321
- a.replaceWith(...a.childNodes);
298
+ let o = 0, r = 0;
299
+ const a = t.length - 1, h = this.parts, [c, p] = mt(t, e);
300
+ if (this.el = C.createElement(c, s), m.currentNode = this.el.content, e === 2 || e === 3) {
301
+ const l = this.el.content.firstChild;
302
+ l.replaceWith(...l.childNodes);
322
303
  }
323
- for (; (i = g.nextNode()) !== null && h.length < l; ) {
304
+ for (; (i = m.nextNode()) !== null && h.length < a; ) {
324
305
  if (i.nodeType === 1) {
325
- if (i.hasAttributes())
326
- for (const a of i.getAttributeNames())
327
- if (a.endsWith(tt)) {
328
- const $ = p[n++], u = i.getAttribute(a).split(_), x = /([.?@])?(.*)/.exec($);
329
- h.push({ type: 1, index: o, name: x[2], strings: u, ctor: x[1] === "." ? yt : x[1] === "?" ? vt : x[1] === "@" ? Et : R }), i.removeAttribute(a);
330
- } else
331
- a.startsWith(_) && (h.push({ type: 6, index: o }), i.removeAttribute(a));
306
+ if (i.hasAttributes()) for (const l of i.getAttributeNames()) if (l.endsWith(et)) {
307
+ const $ = p[r++], u = i.getAttribute(l).split(_), x = /([.?@])?(.*)/.exec($);
308
+ h.push({ type: 1, index: o, name: x[2], strings: u, ctor: x[1] === "." ? yt : x[1] === "?" ? vt : x[1] === "@" ? Et : R }), i.removeAttribute(l);
309
+ } else l.startsWith(_) && (h.push({ type: 6, index: o }), i.removeAttribute(l));
332
310
  if (it.test(i.tagName)) {
333
- const a = i.textContent.split(_), $ = a.length - 1;
311
+ const l = i.textContent.split(_), $ = l.length - 1;
334
312
  if ($ > 0) {
335
- i.textContent = O ? O.emptyScript : "";
336
- for (let u = 0; u < $; u++)
337
- i.append(a[u], w()), g.nextNode(), h.push({ type: 2, index: ++o });
338
- i.append(a[$], w());
313
+ i.textContent = N ? N.emptyScript : "";
314
+ for (let u = 0; u < $; u++) i.append(l[u], P()), m.nextNode(), h.push({ type: 2, index: ++o });
315
+ i.append(l[$], P());
339
316
  }
340
317
  }
341
- } else if (i.nodeType === 8)
342
- if (i.data === et)
343
- h.push({ type: 2, index: o });
344
- else {
345
- let a = -1;
346
- for (; (a = i.data.indexOf(_, a + 1)) !== -1; )
347
- h.push({ type: 7, index: o }), a += _.length - 1;
348
- }
318
+ } else if (i.nodeType === 8) if (i.data === st) h.push({ type: 2, index: o });
319
+ else {
320
+ let l = -1;
321
+ for (; (l = i.data.indexOf(_, l + 1)) !== -1; ) h.push({ type: 7, index: o }), l += _.length - 1;
322
+ }
349
323
  o++;
350
324
  }
351
325
  }
352
326
  static createElement(t, e) {
353
- const s = m.createElement("template");
327
+ const s = g.createElement("template");
354
328
  return s.innerHTML = t, s;
355
329
  }
356
330
  }
357
- function E(r, t, e = r, s) {
358
- var n, l;
359
- if (t === v)
360
- return t;
361
- let i = s !== void 0 ? (n = e._$Co) == null ? void 0 : n[s] : e._$Cl;
362
- const o = P(t) ? void 0 : t._$litDirective$;
363
- return (i == null ? void 0 : i.constructor) !== o && ((l = i == null ? void 0 : i._$AO) == null || l.call(i, !1), o === void 0 ? i = void 0 : (i = new o(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = E(r, i._$AS(r, t.values), i, s)), t;
331
+ function E(n, t, e = n, s) {
332
+ var r, a;
333
+ if (t === v) return t;
334
+ let i = s !== void 0 ? (r = e.o) == null ? void 0 : r[s] : e.l;
335
+ const o = U(t) ? void 0 : t._$litDirective$;
336
+ return (i == null ? void 0 : i.constructor) !== o && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), o === void 0 ? i = void 0 : (i = new o(n), i._$AT(n, e, s)), s !== void 0 ? (e.o ?? (e.o = []))[s] = i : e.l = i), i !== void 0 && (t = E(n, i._$AS(n, t.values), i, s)), t;
364
337
  }
365
- class mt {
338
+ class gt {
366
339
  constructor(t, e) {
367
340
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
368
341
  }
@@ -373,31 +346,30 @@ class mt {
373
346
  return this._$AM._$AU;
374
347
  }
375
348
  u(t) {
376
- const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? m).importNode(e, !0);
377
- g.currentNode = i;
378
- let o = g.nextNode(), n = 0, l = 0, h = s[0];
349
+ const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? g).importNode(e, !0);
350
+ m.currentNode = i;
351
+ let o = m.nextNode(), r = 0, a = 0, h = s[0];
379
352
  for (; h !== void 0; ) {
380
- if (n === h.index) {
353
+ if (r === h.index) {
381
354
  let c;
382
- h.type === 2 ? c = new T(o, o.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (c = new St(o, this, t)), this._$AV.push(c), h = s[++l];
355
+ h.type === 2 ? c = new T(o, o.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (c = new St(o, this, t)), this._$AV.push(c), h = s[++a];
383
356
  }
384
- n !== (h == null ? void 0 : h.index) && (o = g.nextNode(), n++);
357
+ r !== (h == null ? void 0 : h.index) && (o = m.nextNode(), r++);
385
358
  }
386
- return g.currentNode = m, i;
359
+ return m.currentNode = g, i;
387
360
  }
388
361
  p(t) {
389
362
  let e = 0;
390
- for (const s of this._$AV)
391
- s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
363
+ for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
392
364
  }
393
365
  }
394
366
  class T {
395
367
  get _$AU() {
396
368
  var t;
397
- return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
369
+ return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this.v;
398
370
  }
399
371
  constructor(t, e, s, i) {
400
- this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
372
+ this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this.v = (i == null ? void 0 : i.isConnected) ?? !0;
401
373
  }
402
374
  get parentNode() {
403
375
  let t = this._$AA.parentNode;
@@ -411,37 +383,35 @@ class T {
411
383
  return this._$AB;
412
384
  }
413
385
  _$AI(t, e = this) {
414
- t = E(this, t, e), P(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== v && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : At(t) ? this.k(t) : this._(t);
386
+ t = E(this, t, e), U(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== v && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : At(t) ? this.k(t) : this._(t);
415
387
  }
416
- S(t) {
388
+ O(t) {
417
389
  return this._$AA.parentNode.insertBefore(t, this._$AB);
418
390
  }
419
391
  T(t) {
420
- this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
392
+ this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
421
393
  }
422
394
  _(t) {
423
- this._$AH !== d && P(this._$AH) ? this._$AA.nextSibling.data = t : this.T(m.createTextNode(t)), this._$AH = t;
395
+ this._$AH !== d && U(this._$AH) ? this._$AA.nextSibling.data = t : this.T(g.createTextNode(t)), this._$AH = t;
424
396
  }
425
397
  $(t) {
426
398
  var o;
427
- const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = U.createElement(rt(s.h, s.h[0]), this.options)), s);
428
- if (((o = this._$AH) == null ? void 0 : o._$AD) === i)
429
- this._$AH.p(e);
399
+ const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = C.createElement(nt(s.h, s.h[0]), this.options)), s);
400
+ if (((o = this._$AH) == null ? void 0 : o._$AD) === i) this._$AH.p(e);
430
401
  else {
431
- const n = new mt(i, this), l = n.u(this.options);
432
- n.p(e), this.T(l), this._$AH = n;
402
+ const r = new gt(i, this), a = r.u(this.options);
403
+ r.p(e), this.T(a), this._$AH = r;
433
404
  }
434
405
  }
435
406
  _$AC(t) {
436
- let e = Z.get(t.strings);
437
- return e === void 0 && Z.set(t.strings, e = new U(t)), e;
407
+ let e = G.get(t.strings);
408
+ return e === void 0 && G.set(t.strings, e = new C(t)), e;
438
409
  }
439
410
  k(t) {
440
- st(this._$AH) || (this._$AH = [], this._$AR());
411
+ j(this._$AH) || (this._$AH = [], this._$AR());
441
412
  const e = this._$AH;
442
413
  let s, i = 0;
443
- for (const o of t)
444
- i === e.length ? e.push(s = new T(this.S(w()), this.S(w()), this, this.options)) : s = e[i], s._$AI(o), i++;
414
+ for (const o of t) i === e.length ? e.push(s = new T(this.O(P()), this.O(P()), this, this.options)) : s = e[i], s._$AI(o), i++;
445
415
  i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
446
416
  }
447
417
  _$AR(t = this._$AA.nextSibling, e) {
@@ -453,7 +423,7 @@ class T {
453
423
  }
454
424
  setConnected(t) {
455
425
  var e;
456
- this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
426
+ this._$AM === void 0 && (this.v = t, (e = this._$AP) == null || e.call(this, t));
457
427
  }
458
428
  }
459
429
  class R {
@@ -468,16 +438,14 @@ class R {
468
438
  }
469
439
  _$AI(t, e = this, s, i) {
470
440
  const o = this.strings;
471
- let n = !1;
472
- if (o === void 0)
473
- t = E(this, t, e, 0), n = !P(t) || t !== this._$AH && t !== v, n && (this._$AH = t);
441
+ let r = !1;
442
+ if (o === void 0) t = E(this, t, e, 0), r = !U(t) || t !== this._$AH && t !== v, r && (this._$AH = t);
474
443
  else {
475
- const l = t;
444
+ const a = t;
476
445
  let h, c;
477
- for (t = o[0], h = 0; h < o.length - 1; h++)
478
- c = E(this, l[s + h], e, h), c === v && (c = this._$AH[h]), n || (n = !P(c) || c !== this._$AH[h]), c === d ? t = d : t !== d && (t += (c ?? "") + o[h + 1]), this._$AH[h] = c;
446
+ for (t = o[0], h = 0; h < o.length - 1; h++) c = E(this, a[s + h], e, h), c === v && (c = this._$AH[h]), r || (r = !U(c) || c !== this._$AH[h]), c === d ? t = d : t !== d && (t += (c ?? "") + o[h + 1]), this._$AH[h] = c;
479
447
  }
480
- n && !i && this.j(t);
448
+ r && !i && this.j(t);
481
449
  }
482
450
  j(t) {
483
451
  t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
@@ -504,8 +472,7 @@ class Et extends R {
504
472
  super(t, e, s, i, o), this.type = 5;
505
473
  }
506
474
  _$AI(t, e = this) {
507
- if ((t = E(this, t, e, 0) ?? d) === v)
508
- return;
475
+ if ((t = E(this, t, e, 0) ?? d) === v) return;
509
476
  const s = this._$AH, i = t === d && s !== d || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== d && (s === d || i);
510
477
  i && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
511
478
  }
@@ -525,25 +492,25 @@ class St {
525
492
  E(this, t);
526
493
  }
527
494
  }
528
- const L = C.litHtmlPolyfillSupport;
529
- L == null || L(U, T), (C.litHtmlVersions ?? (C.litHtmlVersions = [])).push("3.1.3");
530
- const bt = (r, t, e) => {
495
+ const L = w.litHtmlPolyfillSupport;
496
+ L == null || L(C, T), (w.litHtmlVersions ?? (w.litHtmlVersions = [])).push("3.2.0");
497
+ const bt = (n, t, e) => {
531
498
  const s = (e == null ? void 0 : e.renderBefore) ?? t;
532
499
  let i = s._$litPart$;
533
500
  if (i === void 0) {
534
501
  const o = (e == null ? void 0 : e.renderBefore) ?? null;
535
- s._$litPart$ = i = new T(t.insertBefore(w(), o), o, void 0, e ?? {});
502
+ s._$litPart$ = i = new T(t.insertBefore(P(), o), o, void 0, e ?? {});
536
503
  }
537
- return i._$AI(r), i;
504
+ return i._$AI(n), i;
538
505
  };
539
506
  /**
540
507
  * @license
541
508
  * Copyright 2017 Google LLC
542
509
  * SPDX-License-Identifier: BSD-3-Clause
543
510
  */
544
- class N extends y {
511
+ class H extends y {
545
512
  constructor() {
546
- super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
513
+ super(...arguments), this.renderOptions = { host: this }, this.o = void 0;
547
514
  }
548
515
  createRenderRoot() {
549
516
  var e;
@@ -552,31 +519,31 @@ class N extends y {
552
519
  }
553
520
  update(t) {
554
521
  const e = this.render();
555
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = bt(e, this.renderRoot, this.renderOptions);
522
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this.o = bt(e, this.renderRoot, this.renderOptions);
556
523
  }
557
524
  connectedCallback() {
558
525
  var t;
559
- super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
526
+ super.connectedCallback(), (t = this.o) == null || t.setConnected(!0);
560
527
  }
561
528
  disconnectedCallback() {
562
529
  var t;
563
- super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
530
+ super.disconnectedCallback(), (t = this.o) == null || t.setConnected(!1);
564
531
  }
565
532
  render() {
566
533
  return v;
567
534
  }
568
535
  }
569
- var G;
570
- N._$litElement$ = !0, N.finalized = !0, (G = globalThis.litElementHydrateSupport) == null || G.call(globalThis, { LitElement: N });
536
+ var Q;
537
+ H._$litElement$ = !0, H.finalized = !0, (Q = globalThis.litElementHydrateSupport) == null || Q.call(globalThis, { LitElement: H });
571
538
  const I = globalThis.litElementPolyfillSupport;
572
- I == null || I({ LitElement: N });
573
- (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.5");
539
+ I == null || I({ LitElement: H });
540
+ (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.0");
574
541
  /**
575
542
  * @license
576
543
  * Copyright 2017 Google LLC
577
544
  * SPDX-License-Identifier: BSD-3-Clause
578
545
  */
579
- const Pt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Ut = (r) => (...t) => ({ _$litDirective$: r, values: t });
546
+ const Ut = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Ct = (n) => (...t) => ({ _$litDirective$: n, values: t });
580
547
  class Tt {
581
548
  constructor(t) {
582
549
  }
@@ -584,7 +551,7 @@ class Tt {
584
551
  return this._$AM._$AU;
585
552
  }
586
553
  _$AT(t, e, s) {
587
- this._$Ct = t, this._$AM = e, this._$Ci = s;
554
+ this.t = t, this._$AM = e, this.i = s;
588
555
  }
589
556
  _$AS(t, e) {
590
557
  return this.update(t, e);
@@ -594,13 +561,13 @@ class Tt {
594
561
  }
595
562
  }
596
563
  export {
597
- d as T,
598
- Ut as e,
599
- X as f,
564
+ d as D,
565
+ v as R,
566
+ Ct as e,
567
+ tt as f,
568
+ H as h,
600
569
  Tt as i,
601
- N as s,
602
- Pt as t,
603
- B as u,
604
- v as w,
605
- wt as x
570
+ Pt as k,
571
+ Ut as t,
572
+ z as u
606
573
  };