UNPKG

23 kBJavaScriptView Raw
1// node_modules/@lit/reactive-element/css-tag.js
2var t = window.ShadowRoot && (void 0 === window.ShadyCSS || window.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
3var e = Symbol();
4var n = /* @__PURE__ */ new Map();
5var s = class {
6 constructor(t3, n5) {
7 if (this._$cssResult$ = true, n5 !== e)
8 throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
9 this.cssText = t3;
10 }
11 get styleSheet() {
12 let e4 = n.get(this.cssText);
13 return t && void 0 === e4 && (n.set(this.cssText, e4 = new CSSStyleSheet()), e4.replaceSync(this.cssText)), e4;
14 }
15 toString() {
16 return this.cssText;
17 }
18};
19var o = (t3) => new s("string" == typeof t3 ? t3 : t3 + "", e);
20var r = (t3, ...n5) => {
21 const o5 = 1 === t3.length ? t3[0] : n5.reduce((e4, n6, s5) => e4 + ((t4) => {
22 if (true === t4._$cssResult$)
23 return t4.cssText;
24 if ("number" == typeof t4)
25 return t4;
26 throw Error("Value passed to 'css' function must be a 'css' function result: " + t4 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
27 })(n6) + t3[s5 + 1], t3[0]);
28 return new s(o5, e);
29};
30var i = (e4, n5) => {
31 t ? e4.adoptedStyleSheets = n5.map((t3) => t3 instanceof CSSStyleSheet ? t3 : t3.styleSheet) : n5.forEach((t3) => {
32 const n6 = document.createElement("style"), s5 = window.litNonce;
33 void 0 !== s5 && n6.setAttribute("nonce", s5), n6.textContent = t3.cssText, e4.appendChild(n6);
34 });
35};
36var S = t ? (t3) => t3 : (t3) => t3 instanceof CSSStyleSheet ? ((t4) => {
37 let e4 = "";
38 for (const n5 of t4.cssRules)
39 e4 += n5.cssText;
40 return o(e4);
41})(t3) : t3;
42
43// node_modules/@lit/reactive-element/reactive-element.js
44var s2;
45var e2 = window.trustedTypes;
46var r2 = e2 ? e2.emptyScript : "";
47var h = window.reactiveElementPolyfillSupport;
48var o2 = { toAttribute(t3, i3) {
49 switch (i3) {
50 case Boolean:
51 t3 = t3 ? r2 : null;
52 break;
53 case Object:
54 case Array:
55 t3 = null == t3 ? t3 : JSON.stringify(t3);
56 }
57 return t3;
58}, fromAttribute(t3, i3) {
59 let s5 = t3;
60 switch (i3) {
61 case Boolean:
62 s5 = null !== t3;
63 break;
64 case Number:
65 s5 = null === t3 ? null : Number(t3);
66 break;
67 case Object:
68 case Array:
69 try {
70 s5 = JSON.parse(t3);
71 } catch (t4) {
72 s5 = null;
73 }
74 }
75 return s5;
76} };
77var n2 = (t3, i3) => i3 !== t3 && (i3 == i3 || t3 == t3);
78var l = { attribute: true, type: String, converter: o2, reflect: false, hasChanged: n2 };
79var a = class extends HTMLElement {
80 constructor() {
81 super(), this._$Et = /* @__PURE__ */ new Map(), this.isUpdatePending = false, this.hasUpdated = false, this._$Ei = null, this.o();
82 }
83 static addInitializer(t3) {
84 var i3;
85 null !== (i3 = this.l) && void 0 !== i3 || (this.l = []), this.l.push(t3);
86 }
87 static get observedAttributes() {
88 this.finalize();
89 const t3 = [];
90 return this.elementProperties.forEach((i3, s5) => {
91 const e4 = this._$Eh(s5, i3);
92 void 0 !== e4 && (this._$Eu.set(e4, s5), t3.push(e4));
93 }), t3;
94 }
95 static createProperty(t3, i3 = l) {
96 if (i3.state && (i3.attribute = false), this.finalize(), this.elementProperties.set(t3, i3), !i3.noAccessor && !this.prototype.hasOwnProperty(t3)) {
97 const s5 = "symbol" == typeof t3 ? Symbol() : "__" + t3, e4 = this.getPropertyDescriptor(t3, s5, i3);
98 void 0 !== e4 && Object.defineProperty(this.prototype, t3, e4);
99 }
100 }
101 static getPropertyDescriptor(t3, i3, s5) {
102 return { get() {
103 return this[i3];
104 }, set(e4) {
105 const r4 = this[t3];
106 this[i3] = e4, this.requestUpdate(t3, r4, s5);
107 }, configurable: true, enumerable: true };
108 }
109 static getPropertyOptions(t3) {
110 return this.elementProperties.get(t3) || l;
111 }
112 static finalize() {
113 if (this.hasOwnProperty("finalized"))
114 return false;
115 this.finalized = true;
116 const t3 = Object.getPrototypeOf(this);
117 if (t3.finalize(), this.elementProperties = new Map(t3.elementProperties), this._$Eu = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
118 const t4 = this.properties, i3 = [...Object.getOwnPropertyNames(t4), ...Object.getOwnPropertySymbols(t4)];
119 for (const s5 of i3)
120 this.createProperty(s5, t4[s5]);
121 }
122 return this.elementStyles = this.finalizeStyles(this.styles), true;
123 }
124 static finalizeStyles(i3) {
125 const s5 = [];
126 if (Array.isArray(i3)) {
127 const e4 = new Set(i3.flat(1 / 0).reverse());
128 for (const i4 of e4)
129 s5.unshift(S(i4));
130 } else
131 void 0 !== i3 && s5.push(S(i3));
132 return s5;
133 }
134 static _$Eh(t3, i3) {
135 const s5 = i3.attribute;
136 return false === s5 ? void 0 : "string" == typeof s5 ? s5 : "string" == typeof t3 ? t3.toLowerCase() : void 0;
137 }
138 o() {
139 var t3;
140 this._$Ep = new Promise((t4) => this.enableUpdating = t4), this._$AL = /* @__PURE__ */ new Map(), this._$Em(), this.requestUpdate(), null === (t3 = this.constructor.l) || void 0 === t3 || t3.forEach((t4) => t4(this));
141 }
142 addController(t3) {
143 var i3, s5;
144 (null !== (i3 = this._$Eg) && void 0 !== i3 ? i3 : this._$Eg = []).push(t3), void 0 !== this.renderRoot && this.isConnected && (null === (s5 = t3.hostConnected) || void 0 === s5 || s5.call(t3));
145 }
146 removeController(t3) {
147 var i3;
148 null === (i3 = this._$Eg) || void 0 === i3 || i3.splice(this._$Eg.indexOf(t3) >>> 0, 1);
149 }
150 _$Em() {
151 this.constructor.elementProperties.forEach((t3, i3) => {
152 this.hasOwnProperty(i3) && (this._$Et.set(i3, this[i3]), delete this[i3]);
153 });
154 }
155 createRenderRoot() {
156 var t3;
157 const s5 = null !== (t3 = this.shadowRoot) && void 0 !== t3 ? t3 : this.attachShadow(this.constructor.shadowRootOptions);
158 return i(s5, this.constructor.elementStyles), s5;
159 }
160 connectedCallback() {
161 var t3;
162 void 0 === this.renderRoot && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(true), null === (t3 = this._$Eg) || void 0 === t3 || t3.forEach((t4) => {
163 var i3;
164 return null === (i3 = t4.hostConnected) || void 0 === i3 ? void 0 : i3.call(t4);
165 });
166 }
167 enableUpdating(t3) {
168 }
169 disconnectedCallback() {
170 var t3;
171 null === (t3 = this._$Eg) || void 0 === t3 || t3.forEach((t4) => {
172 var i3;
173 return null === (i3 = t4.hostDisconnected) || void 0 === i3 ? void 0 : i3.call(t4);
174 });
175 }
176 attributeChangedCallback(t3, i3, s5) {
177 this._$AK(t3, s5);
178 }
179 _$ES(t3, i3, s5 = l) {
180 var e4, r4;
181 const h3 = this.constructor._$Eh(t3, s5);
182 if (void 0 !== h3 && true === s5.reflect) {
183 const n5 = (null !== (r4 = null === (e4 = s5.converter) || void 0 === e4 ? void 0 : e4.toAttribute) && void 0 !== r4 ? r4 : o2.toAttribute)(i3, s5.type);
184 this._$Ei = t3, null == n5 ? this.removeAttribute(h3) : this.setAttribute(h3, n5), this._$Ei = null;
185 }
186 }
187 _$AK(t3, i3) {
188 var s5, e4, r4;
189 const h3 = this.constructor, n5 = h3._$Eu.get(t3);
190 if (void 0 !== n5 && this._$Ei !== n5) {
191 const t4 = h3.getPropertyOptions(n5), l4 = t4.converter, a3 = null !== (r4 = null !== (e4 = null === (s5 = l4) || void 0 === s5 ? void 0 : s5.fromAttribute) && void 0 !== e4 ? e4 : "function" == typeof l4 ? l4 : null) && void 0 !== r4 ? r4 : o2.fromAttribute;
192 this._$Ei = n5, this[n5] = a3(i3, t4.type), this._$Ei = null;
193 }
194 }
195 requestUpdate(t3, i3, s5) {
196 let e4 = true;
197 void 0 !== t3 && (((s5 = s5 || this.constructor.getPropertyOptions(t3)).hasChanged || n2)(this[t3], i3) ? (this._$AL.has(t3) || this._$AL.set(t3, i3), true === s5.reflect && this._$Ei !== t3 && (void 0 === this._$EC && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t3, s5))) : e4 = false), !this.isUpdatePending && e4 && (this._$Ep = this._$E_());
198 }
199 async _$E_() {
200 this.isUpdatePending = true;
201 try {
202 await this._$Ep;
203 } catch (t4) {
204 Promise.reject(t4);
205 }
206 const t3 = this.scheduleUpdate();
207 return null != t3 && await t3, !this.isUpdatePending;
208 }
209 scheduleUpdate() {
210 return this.performUpdate();
211 }
212 performUpdate() {
213 var t3;
214 if (!this.isUpdatePending)
215 return;
216 this.hasUpdated, this._$Et && (this._$Et.forEach((t4, i4) => this[i4] = t4), this._$Et = void 0);
217 let i3 = false;
218 const s5 = this._$AL;
219 try {
220 i3 = this.shouldUpdate(s5), i3 ? (this.willUpdate(s5), null === (t3 = this._$Eg) || void 0 === t3 || t3.forEach((t4) => {
221 var i4;
222 return null === (i4 = t4.hostUpdate) || void 0 === i4 ? void 0 : i4.call(t4);
223 }), this.update(s5)) : this._$EU();
224 } catch (t4) {
225 throw i3 = false, this._$EU(), t4;
226 }
227 i3 && this._$AE(s5);
228 }
229 willUpdate(t3) {
230 }
231 _$AE(t3) {
232 var i3;
233 null === (i3 = this._$Eg) || void 0 === i3 || i3.forEach((t4) => {
234 var i4;
235 return null === (i4 = t4.hostUpdated) || void 0 === i4 ? void 0 : i4.call(t4);
236 }), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t3)), this.updated(t3);
237 }
238 _$EU() {
239 this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
240 }
241 get updateComplete() {
242 return this.getUpdateComplete();
243 }
244 getUpdateComplete() {
245 return this._$Ep;
246 }
247 shouldUpdate(t3) {
248 return true;
249 }
250 update(t3) {
251 void 0 !== this._$EC && (this._$EC.forEach((t4, i3) => this._$ES(i3, this[i3], t4)), this._$EC = void 0), this._$EU();
252 }
253 updated(t3) {
254 }
255 firstUpdated(t3) {
256 }
257};
258a.finalized = true, a.elementProperties = /* @__PURE__ */ new Map(), a.elementStyles = [], a.shadowRootOptions = { mode: "open" }, null == h || h({ ReactiveElement: a }), (null !== (s2 = globalThis.reactiveElementVersions) && void 0 !== s2 ? s2 : globalThis.reactiveElementVersions = []).push("1.3.2");
259
260// node_modules/lit-html/lit-html.js
261var t2;
262var i2 = globalThis.trustedTypes;
263var s3 = i2 ? i2.createPolicy("lit-html", { createHTML: (t3) => t3 }) : void 0;
264var e3 = `lit$${(Math.random() + "").slice(9)}$`;
265var o3 = "?" + e3;
266var n3 = `<${o3}>`;
267var l2 = document;
268var h2 = (t3 = "") => l2.createComment(t3);
269var r3 = (t3) => null === t3 || "object" != typeof t3 && "function" != typeof t3;
270var d = Array.isArray;
271var u = (t3) => {
272 var i3;
273 return d(t3) || "function" == typeof (null === (i3 = t3) || void 0 === i3 ? void 0 : i3[Symbol.iterator]);
274};
275var c = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
276var v = /-->/g;
277var a2 = />/g;
278var f = />|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g;
279var _ = /'/g;
280var m = /"/g;
281var g = /^(?:script|style|textarea|title)$/i;
282var p = (t3) => (i3, ...s5) => ({ _$litType$: t3, strings: i3, values: s5 });
283var $ = p(1);
284var y = p(2);
285var b = Symbol.for("lit-noChange");
286var w = Symbol.for("lit-nothing");
287var T = /* @__PURE__ */ new WeakMap();
288var x = (t3, i3, s5) => {
289 var e4, o5;
290 const n5 = null !== (e4 = null == s5 ? void 0 : s5.renderBefore) && void 0 !== e4 ? e4 : i3;
291 let l4 = n5._$litPart$;
292 if (void 0 === l4) {
293 const t4 = null !== (o5 = null == s5 ? void 0 : s5.renderBefore) && void 0 !== o5 ? o5 : null;
294 n5._$litPart$ = l4 = new N(i3.insertBefore(h2(), t4), t4, void 0, null != s5 ? s5 : {});
295 }
296 return l4._$AI(t3), l4;
297};
298var A = l2.createTreeWalker(l2, 129, null, false);
299var C = (t3, i3) => {
300 const o5 = t3.length - 1, l4 = [];
301 let h3, r4 = 2 === i3 ? "<svg>" : "", d2 = c;
302 for (let i4 = 0; i4 < o5; i4++) {
303 const s5 = t3[i4];
304 let o6, u3, p2 = -1, $2 = 0;
305 for (; $2 < s5.length && (d2.lastIndex = $2, u3 = d2.exec(s5), null !== u3); )
306 $2 = d2.lastIndex, d2 === c ? "!--" === u3[1] ? d2 = v : void 0 !== u3[1] ? d2 = a2 : void 0 !== u3[2] ? (g.test(u3[2]) && (h3 = RegExp("</" + u3[2], "g")), d2 = f) : void 0 !== u3[3] && (d2 = f) : d2 === f ? ">" === u3[0] ? (d2 = null != h3 ? h3 : c, p2 = -1) : void 0 === u3[1] ? p2 = -2 : (p2 = d2.lastIndex - u3[2].length, o6 = u3[1], d2 = void 0 === u3[3] ? f : '"' === u3[3] ? m : _) : d2 === m || d2 === _ ? d2 = f : d2 === v || d2 === a2 ? d2 = c : (d2 = f, h3 = void 0);
307 const y2 = d2 === f && t3[i4 + 1].startsWith("/>") ? " " : "";
308 r4 += d2 === c ? s5 + n3 : p2 >= 0 ? (l4.push(o6), s5.slice(0, p2) + "$lit$" + s5.slice(p2) + e3 + y2) : s5 + e3 + (-2 === p2 ? (l4.push(void 0), i4) : y2);
309 }
310 const u2 = r4 + (t3[o5] || "<?>") + (2 === i3 ? "</svg>" : "");
311 if (!Array.isArray(t3) || !t3.hasOwnProperty("raw"))
312 throw Error("invalid template strings array");
313 return [void 0 !== s3 ? s3.createHTML(u2) : u2, l4];
314};
315var E = class {
316 constructor({ strings: t3, _$litType$: s5 }, n5) {
317 let l4;
318 this.parts = [];
319 let r4 = 0, d2 = 0;
320 const u2 = t3.length - 1, c2 = this.parts, [v2, a3] = C(t3, s5);
321 if (this.el = E.createElement(v2, n5), A.currentNode = this.el.content, 2 === s5) {
322 const t4 = this.el.content, i3 = t4.firstChild;
323 i3.remove(), t4.append(...i3.childNodes);
324 }
325 for (; null !== (l4 = A.nextNode()) && c2.length < u2; ) {
326 if (1 === l4.nodeType) {
327 if (l4.hasAttributes()) {
328 const t4 = [];
329 for (const i3 of l4.getAttributeNames())
330 if (i3.endsWith("$lit$") || i3.startsWith(e3)) {
331 const s6 = a3[d2++];
332 if (t4.push(i3), void 0 !== s6) {
333 const t5 = l4.getAttribute(s6.toLowerCase() + "$lit$").split(e3), i4 = /([.?@])?(.*)/.exec(s6);
334 c2.push({ type: 1, index: r4, name: i4[2], strings: t5, ctor: "." === i4[1] ? M : "?" === i4[1] ? H : "@" === i4[1] ? I : S2 });
335 } else
336 c2.push({ type: 6, index: r4 });
337 }
338 for (const i3 of t4)
339 l4.removeAttribute(i3);
340 }
341 if (g.test(l4.tagName)) {
342 const t4 = l4.textContent.split(e3), s6 = t4.length - 1;
343 if (s6 > 0) {
344 l4.textContent = i2 ? i2.emptyScript : "";
345 for (let i3 = 0; i3 < s6; i3++)
346 l4.append(t4[i3], h2()), A.nextNode(), c2.push({ type: 2, index: ++r4 });
347 l4.append(t4[s6], h2());
348 }
349 }
350 } else if (8 === l4.nodeType)
351 if (l4.data === o3)
352 c2.push({ type: 2, index: r4 });
353 else {
354 let t4 = -1;
355 for (; -1 !== (t4 = l4.data.indexOf(e3, t4 + 1)); )
356 c2.push({ type: 7, index: r4 }), t4 += e3.length - 1;
357 }
358 r4++;
359 }
360 }
361 static createElement(t3, i3) {
362 const s5 = l2.createElement("template");
363 return s5.innerHTML = t3, s5;
364 }
365};
366function P(t3, i3, s5 = t3, e4) {
367 var o5, n5, l4, h3;
368 if (i3 === b)
369 return i3;
370 let d2 = void 0 !== e4 ? null === (o5 = s5._$Cl) || void 0 === o5 ? void 0 : o5[e4] : s5._$Cu;
371 const u2 = r3(i3) ? void 0 : i3._$litDirective$;
372 return (null == d2 ? void 0 : d2.constructor) !== u2 && (null === (n5 = null == d2 ? void 0 : d2._$AO) || void 0 === n5 || n5.call(d2, false), void 0 === u2 ? d2 = void 0 : (d2 = new u2(t3), d2._$AT(t3, s5, e4)), void 0 !== e4 ? (null !== (l4 = (h3 = s5)._$Cl) && void 0 !== l4 ? l4 : h3._$Cl = [])[e4] = d2 : s5._$Cu = d2), void 0 !== d2 && (i3 = P(t3, d2._$AS(t3, i3.values), d2, e4)), i3;
373}
374var V = class {
375 constructor(t3, i3) {
376 this.v = [], this._$AN = void 0, this._$AD = t3, this._$AM = i3;
377 }
378 get parentNode() {
379 return this._$AM.parentNode;
380 }
381 get _$AU() {
382 return this._$AM._$AU;
383 }
384 p(t3) {
385 var i3;
386 const { el: { content: s5 }, parts: e4 } = this._$AD, o5 = (null !== (i3 = null == t3 ? void 0 : t3.creationScope) && void 0 !== i3 ? i3 : l2).importNode(s5, true);
387 A.currentNode = o5;
388 let n5 = A.nextNode(), h3 = 0, r4 = 0, d2 = e4[0];
389 for (; void 0 !== d2; ) {
390 if (h3 === d2.index) {
391 let i4;
392 2 === d2.type ? i4 = new N(n5, n5.nextSibling, this, t3) : 1 === d2.type ? i4 = new d2.ctor(n5, d2.name, d2.strings, this, t3) : 6 === d2.type && (i4 = new L(n5, this, t3)), this.v.push(i4), d2 = e4[++r4];
393 }
394 h3 !== (null == d2 ? void 0 : d2.index) && (n5 = A.nextNode(), h3++);
395 }
396 return o5;
397 }
398 m(t3) {
399 let i3 = 0;
400 for (const s5 of this.v)
401 void 0 !== s5 && (void 0 !== s5.strings ? (s5._$AI(t3, s5, i3), i3 += s5.strings.length - 2) : s5._$AI(t3[i3])), i3++;
402 }
403};
404var N = class {
405 constructor(t3, i3, s5, e4) {
406 var o5;
407 this.type = 2, this._$AH = w, this._$AN = void 0, this._$AA = t3, this._$AB = i3, this._$AM = s5, this.options = e4, this._$Cg = null === (o5 = null == e4 ? void 0 : e4.isConnected) || void 0 === o5 || o5;
408 }
409 get _$AU() {
410 var t3, i3;
411 return null !== (i3 = null === (t3 = this._$AM) || void 0 === t3 ? void 0 : t3._$AU) && void 0 !== i3 ? i3 : this._$Cg;
412 }
413 get parentNode() {
414 let t3 = this._$AA.parentNode;
415 const i3 = this._$AM;
416 return void 0 !== i3 && 11 === t3.nodeType && (t3 = i3.parentNode), t3;
417 }
418 get startNode() {
419 return this._$AA;
420 }
421 get endNode() {
422 return this._$AB;
423 }
424 _$AI(t3, i3 = this) {
425 t3 = P(this, t3, i3), r3(t3) ? t3 === w || null == t3 || "" === t3 ? (this._$AH !== w && this._$AR(), this._$AH = w) : t3 !== this._$AH && t3 !== b && this.$(t3) : void 0 !== t3._$litType$ ? this.T(t3) : void 0 !== t3.nodeType ? this.k(t3) : u(t3) ? this.S(t3) : this.$(t3);
426 }
427 M(t3, i3 = this._$AB) {
428 return this._$AA.parentNode.insertBefore(t3, i3);
429 }
430 k(t3) {
431 this._$AH !== t3 && (this._$AR(), this._$AH = this.M(t3));
432 }
433 $(t3) {
434 this._$AH !== w && r3(this._$AH) ? this._$AA.nextSibling.data = t3 : this.k(l2.createTextNode(t3)), this._$AH = t3;
435 }
436 T(t3) {
437 var i3;
438 const { values: s5, _$litType$: e4 } = t3, o5 = "number" == typeof e4 ? this._$AC(t3) : (void 0 === e4.el && (e4.el = E.createElement(e4.h, this.options)), e4);
439 if ((null === (i3 = this._$AH) || void 0 === i3 ? void 0 : i3._$AD) === o5)
440 this._$AH.m(s5);
441 else {
442 const t4 = new V(o5, this), i4 = t4.p(this.options);
443 t4.m(s5), this.k(i4), this._$AH = t4;
444 }
445 }
446 _$AC(t3) {
447 let i3 = T.get(t3.strings);
448 return void 0 === i3 && T.set(t3.strings, i3 = new E(t3)), i3;
449 }
450 S(t3) {
451 d(this._$AH) || (this._$AH = [], this._$AR());
452 const i3 = this._$AH;
453 let s5, e4 = 0;
454 for (const o5 of t3)
455 e4 === i3.length ? i3.push(s5 = new N(this.M(h2()), this.M(h2()), this, this.options)) : s5 = i3[e4], s5._$AI(o5), e4++;
456 e4 < i3.length && (this._$AR(s5 && s5._$AB.nextSibling, e4), i3.length = e4);
457 }
458 _$AR(t3 = this._$AA.nextSibling, i3) {
459 var s5;
460 for (null === (s5 = this._$AP) || void 0 === s5 || s5.call(this, false, true, i3); t3 && t3 !== this._$AB; ) {
461 const i4 = t3.nextSibling;
462 t3.remove(), t3 = i4;
463 }
464 }
465 setConnected(t3) {
466 var i3;
467 void 0 === this._$AM && (this._$Cg = t3, null === (i3 = this._$AP) || void 0 === i3 || i3.call(this, t3));
468 }
469};
470var S2 = class {
471 constructor(t3, i3, s5, e4, o5) {
472 this.type = 1, this._$AH = w, this._$AN = void 0, this.element = t3, this.name = i3, this._$AM = e4, this.options = o5, s5.length > 2 || "" !== s5[0] || "" !== s5[1] ? (this._$AH = Array(s5.length - 1).fill(new String()), this.strings = s5) : this._$AH = w;
473 }
474 get tagName() {
475 return this.element.tagName;
476 }
477 get _$AU() {
478 return this._$AM._$AU;
479 }
480 _$AI(t3, i3 = this, s5, e4) {
481 const o5 = this.strings;
482 let n5 = false;
483 if (void 0 === o5)
484 t3 = P(this, t3, i3, 0), n5 = !r3(t3) || t3 !== this._$AH && t3 !== b, n5 && (this._$AH = t3);
485 else {
486 const e5 = t3;
487 let l4, h3;
488 for (t3 = o5[0], l4 = 0; l4 < o5.length - 1; l4++)
489 h3 = P(this, e5[s5 + l4], i3, l4), h3 === b && (h3 = this._$AH[l4]), n5 || (n5 = !r3(h3) || h3 !== this._$AH[l4]), h3 === w ? t3 = w : t3 !== w && (t3 += (null != h3 ? h3 : "") + o5[l4 + 1]), this._$AH[l4] = h3;
490 }
491 n5 && !e4 && this.C(t3);
492 }
493 C(t3) {
494 t3 === w ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, null != t3 ? t3 : "");
495 }
496};
497var M = class extends S2 {
498 constructor() {
499 super(...arguments), this.type = 3;
500 }
501 C(t3) {
502 this.element[this.name] = t3 === w ? void 0 : t3;
503 }
504};
505var k = i2 ? i2.emptyScript : "";
506var H = class extends S2 {
507 constructor() {
508 super(...arguments), this.type = 4;
509 }
510 C(t3) {
511 t3 && t3 !== w ? this.element.setAttribute(this.name, k) : this.element.removeAttribute(this.name);
512 }
513};
514var I = class extends S2 {
515 constructor(t3, i3, s5, e4, o5) {
516 super(t3, i3, s5, e4, o5), this.type = 5;
517 }
518 _$AI(t3, i3 = this) {
519 var s5;
520 if ((t3 = null !== (s5 = P(this, t3, i3, 0)) && void 0 !== s5 ? s5 : w) === b)
521 return;
522 const e4 = this._$AH, o5 = t3 === w && e4 !== w || t3.capture !== e4.capture || t3.once !== e4.once || t3.passive !== e4.passive, n5 = t3 !== w && (e4 === w || o5);
523 o5 && this.element.removeEventListener(this.name, this, e4), n5 && this.element.addEventListener(this.name, this, t3), this._$AH = t3;
524 }
525 handleEvent(t3) {
526 var i3, s5;
527 "function" == typeof this._$AH ? this._$AH.call(null !== (s5 = null === (i3 = this.options) || void 0 === i3 ? void 0 : i3.host) && void 0 !== s5 ? s5 : this.element, t3) : this._$AH.handleEvent(t3);
528 }
529};
530var L = class {
531 constructor(t3, i3, s5) {
532 this.element = t3, this.type = 6, this._$AN = void 0, this._$AM = i3, this.options = s5;
533 }
534 get _$AU() {
535 return this._$AM._$AU;
536 }
537 _$AI(t3) {
538 P(this, t3);
539 }
540};
541var R = { L: "$lit$", P: e3, V: o3, I: 1, N: C, R: V, j: u, D: P, H: N, F: S2, O: H, W: I, B: M, Z: L };
542var z = window.litHtmlPolyfillSupport;
543null == z || z(E, N), (null !== (t2 = globalThis.litHtmlVersions) && void 0 !== t2 ? t2 : globalThis.litHtmlVersions = []).push("2.2.4");
544
545// node_modules/lit-element/lit-element.js
546var l3;
547var o4;
548var s4 = class extends a {
549 constructor() {
550 super(...arguments), this.renderOptions = { host: this }, this._$Dt = void 0;
551 }
552 createRenderRoot() {
553 var t3, e4;
554 const i3 = super.createRenderRoot();
555 return null !== (t3 = (e4 = this.renderOptions).renderBefore) && void 0 !== t3 || (e4.renderBefore = i3.firstChild), i3;
556 }
557 update(t3) {
558 const i3 = this.render();
559 this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t3), this._$Dt = x(i3, this.renderRoot, this.renderOptions);
560 }
561 connectedCallback() {
562 var t3;
563 super.connectedCallback(), null === (t3 = this._$Dt) || void 0 === t3 || t3.setConnected(true);
564 }
565 disconnectedCallback() {
566 var t3;
567 super.disconnectedCallback(), null === (t3 = this._$Dt) || void 0 === t3 || t3.setConnected(false);
568 }
569 render() {
570 return b;
571 }
572};
573s4.finalized = true, s4._$litElement$ = true, null === (l3 = globalThis.litElementHydrateSupport) || void 0 === l3 || l3.call(globalThis, { LitElement: s4 });
574var n4 = globalThis.litElementPolyfillSupport;
575null == n4 || n4({ LitElement: s4 });
576(null !== (o4 = globalThis.litElementVersions) && void 0 !== o4 ? o4 : globalThis.litElementVersions = []).push("3.2.0");
577
578export {
579 r,
580 o2 as o,
581 $,
582 y,
583 b,
584 w,
585 R,
586 s4 as s
587};
588/**
589 * @license
590 * Copyright 2017 Google LLC
591 * SPDX-License-Identifier: BSD-3-Clause
592 */
593/**
594 * @license
595 * Copyright 2019 Google LLC
596 * SPDX-License-Identifier: BSD-3-Clause
597 */