UNPKG

@webwriter/geogebra

Version:

Use the mathematics learning apps of GeoGebra for algebra and geometry.

1,215 lines (1,207 loc) 71.4 kB
var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __decorateClass = (decorators, target, key, kind) => { var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target; for (var i5 = decorators.length - 1, decorator; i5 >= 0; i5--) if (decorator = decorators[i5]) result = (kind ? decorator(target, key, result) : decorator(result)) || result; if (kind && result) __defProp(target, key, result); return result; }; // node_modules/@lit/reactive-element/decorators/custom-element.js var t = (t5) => (e6, o6) => { void 0 !== o6 ? o6.addInitializer(() => { customElements.define(t5, e6); }) : customElements.define(t5, e6); }; // node_modules/@lit/reactive-element/css-tag.js var t2 = globalThis; var e = t2.ShadowRoot && (void 0 === t2.ShadyCSS || t2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype; var s = Symbol(); var o = /* @__PURE__ */ new WeakMap(); var n = class { constructor(t5, e6, o6) { if (this._$cssResult$ = true, o6 !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead."); this.cssText = t5, this.t = e6; } get styleSheet() { let t5 = this.o; const s4 = this.t; if (e && void 0 === t5) { const e6 = void 0 !== s4 && 1 === s4.length; e6 && (t5 = o.get(s4)), void 0 === t5 && ((this.o = t5 = new CSSStyleSheet()).replaceSync(this.cssText), e6 && o.set(s4, t5)); } return t5; } toString() { return this.cssText; } }; var r = (t5) => new n("string" == typeof t5 ? t5 : t5 + "", void 0, s); var i = (t5, ...e6) => { const o6 = 1 === t5.length ? t5[0] : e6.reduce((e7, s4, o7) => e7 + ((t6) => { if (true === t6._$cssResult$) return t6.cssText; if ("number" == typeof t6) return t6; throw Error("Value passed to 'css' function must be a 'css' function result: " + t6 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security."); })(s4) + t5[o7 + 1], t5[0]); return new n(o6, t5, s); }; var S = (s4, o6) => { if (e) s4.adoptedStyleSheets = o6.map((t5) => t5 instanceof CSSStyleSheet ? t5 : t5.styleSheet); else for (const e6 of o6) { const o7 = document.createElement("style"), n6 = t2.litNonce; void 0 !== n6 && o7.setAttribute("nonce", n6), o7.textContent = e6.cssText, s4.appendChild(o7); } }; var c = e ? (t5) => t5 : (t5) => t5 instanceof CSSStyleSheet ? ((t6) => { let e6 = ""; for (const s4 of t6.cssRules) e6 += s4.cssText; return r(e6); })(t5) : t5; // node_modules/@lit/reactive-element/reactive-element.js var { is: i2, defineProperty: e2, getOwnPropertyDescriptor: r2, getOwnPropertyNames: h, getOwnPropertySymbols: o2, getPrototypeOf: n2 } = Object; var a = globalThis; var c2 = a.trustedTypes; var l = c2 ? c2.emptyScript : ""; var p = a.reactiveElementPolyfillSupport; var d = (t5, s4) => t5; var u = { toAttribute(t5, s4) { switch (s4) { case Boolean: t5 = t5 ? l : null; break; case Object: case Array: t5 = null == t5 ? t5 : JSON.stringify(t5); } return t5; }, fromAttribute(t5, s4) { let i5 = t5; switch (s4) { case Boolean: i5 = null !== t5; break; case Number: i5 = null === t5 ? null : Number(t5); break; case Object: case Array: try { i5 = JSON.parse(t5); } catch (t6) { i5 = null; } } return i5; } }; var f = (t5, s4) => !i2(t5, s4); var y = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f }; Symbol.metadata ??= Symbol("metadata"), a.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap(); var b = class extends HTMLElement { static addInitializer(t5) { this._$Ei(), (this.l ??= []).push(t5); } static get observedAttributes() { return this.finalize(), this._$Eh && [...this._$Eh.keys()]; } static createProperty(t5, s4 = y) { if (s4.state && (s4.attribute = false), this._$Ei(), this.elementProperties.set(t5, s4), !s4.noAccessor) { const i5 = Symbol(), r7 = this.getPropertyDescriptor(t5, i5, s4); void 0 !== r7 && e2(this.prototype, t5, r7); } } static getPropertyDescriptor(t5, s4, i5) { const { get: e6, set: h4 } = r2(this.prototype, t5) ?? { get() { return this[s4]; }, set(t6) { this[s4] = t6; } }; return { get() { return e6?.call(this); }, set(s5) { const r7 = e6?.call(this); h4.call(this, s5), this.requestUpdate(t5, r7, i5); }, configurable: true, enumerable: true }; } static getPropertyOptions(t5) { return this.elementProperties.get(t5) ?? y; } static _$Ei() { if (this.hasOwnProperty(d("elementProperties"))) return; const t5 = n2(this); t5.finalize(), void 0 !== t5.l && (this.l = [...t5.l]), this.elementProperties = new Map(t5.elementProperties); } static finalize() { if (this.hasOwnProperty(d("finalized"))) return; if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) { const t6 = this.properties, s4 = [...h(t6), ...o2(t6)]; for (const i5 of s4) this.createProperty(i5, t6[i5]); } const t5 = this[Symbol.metadata]; if (null !== t5) { const s4 = litPropertyMetadata.get(t5); if (void 0 !== s4) for (const [t6, i5] of s4) this.elementProperties.set(t6, i5); } this._$Eh = /* @__PURE__ */ new Map(); for (const [t6, s4] of this.elementProperties) { const i5 = this._$Eu(t6, s4); void 0 !== i5 && this._$Eh.set(i5, t6); } this.elementStyles = this.finalizeStyles(this.styles); } static finalizeStyles(s4) { const i5 = []; if (Array.isArray(s4)) { const e6 = new Set(s4.flat(1 / 0).reverse()); for (const s5 of e6) i5.unshift(c(s5)); } else void 0 !== s4 && i5.push(c(s4)); return i5; } static _$Eu(t5, s4) { const i5 = s4.attribute; return false === i5 ? void 0 : "string" == typeof i5 ? i5 : "string" == typeof t5 ? t5.toLowerCase() : void 0; } constructor() { super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev(); } _$Ev() { this._$ES = new Promise((t5) => this.enableUpdating = t5), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t5) => t5(this)); } addController(t5) { (this._$EO ??= /* @__PURE__ */ new Set()).add(t5), void 0 !== this.renderRoot && this.isConnected && t5.hostConnected?.(); } removeController(t5) { this._$EO?.delete(t5); } _$E_() { const t5 = /* @__PURE__ */ new Map(), s4 = this.constructor.elementProperties; for (const i5 of s4.keys()) this.hasOwnProperty(i5) && (t5.set(i5, this[i5]), delete this[i5]); t5.size > 0 && (this._$Ep = t5); } createRenderRoot() { const t5 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions); return S(t5, this.constructor.elementStyles), t5; } connectedCallback() { this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t5) => t5.hostConnected?.()); } enableUpdating(t5) { } disconnectedCallback() { this._$EO?.forEach((t5) => t5.hostDisconnected?.()); } attributeChangedCallback(t5, s4, i5) { this._$AK(t5, i5); } _$EC(t5, s4) { const i5 = this.constructor.elementProperties.get(t5), e6 = this.constructor._$Eu(t5, i5); if (void 0 !== e6 && true === i5.reflect) { const r7 = (void 0 !== i5.converter?.toAttribute ? i5.converter : u).toAttribute(s4, i5.type); this._$Em = t5, null == r7 ? this.removeAttribute(e6) : this.setAttribute(e6, r7), this._$Em = null; } } _$AK(t5, s4) { const i5 = this.constructor, e6 = i5._$Eh.get(t5); if (void 0 !== e6 && this._$Em !== e6) { const t6 = i5.getPropertyOptions(e6), r7 = "function" == typeof t6.converter ? { fromAttribute: t6.converter } : void 0 !== t6.converter?.fromAttribute ? t6.converter : u; this._$Em = e6, this[e6] = r7.fromAttribute(s4, t6.type), this._$Em = null; } } requestUpdate(t5, s4, i5) { if (void 0 !== t5) { if (i5 ??= this.constructor.getPropertyOptions(t5), !(i5.hasChanged ?? f)(this[t5], s4)) return; this.P(t5, s4, i5); } false === this.isUpdatePending && (this._$ES = this._$ET()); } P(t5, s4, i5) { this._$AL.has(t5) || this._$AL.set(t5, s4), true === i5.reflect && this._$Em !== t5 && (this._$Ej ??= /* @__PURE__ */ new Set()).add(t5); } async _$ET() { this.isUpdatePending = true; try { await this._$ES; } catch (t6) { Promise.reject(t6); } const t5 = this.scheduleUpdate(); return null != t5 && await t5, !this.isUpdatePending; } scheduleUpdate() { return this.performUpdate(); } performUpdate() { if (!this.isUpdatePending) return; if (!this.hasUpdated) { if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) { for (const [t7, s5] of this._$Ep) this[t7] = s5; this._$Ep = void 0; } const t6 = this.constructor.elementProperties; if (t6.size > 0) for (const [s5, i5] of t6) true !== i5.wrapped || this._$AL.has(s5) || void 0 === this[s5] || this.P(s5, this[s5], i5); } let t5 = false; const s4 = this._$AL; try { t5 = this.shouldUpdate(s4), t5 ? (this.willUpdate(s4), this._$EO?.forEach((t6) => t6.hostUpdate?.()), this.update(s4)) : this._$EU(); } catch (s5) { throw t5 = false, this._$EU(), s5; } t5 && this._$AE(s4); } willUpdate(t5) { } _$AE(t5) { this._$EO?.forEach((t6) => t6.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t5)), this.updated(t5); } _$EU() { this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false; } get updateComplete() { return this.getUpdateComplete(); } getUpdateComplete() { return this._$ES; } shouldUpdate(t5) { return true; } update(t5) { this._$Ej &&= this._$Ej.forEach((t6) => this._$EC(t6, this[t6])), this._$EU(); } updated(t5) { } firstUpdated(t5) { } }; b.elementStyles = [], b.shadowRootOptions = { mode: "open" }, b[d("elementProperties")] = /* @__PURE__ */ new Map(), b[d("finalized")] = /* @__PURE__ */ new Map(), p?.({ ReactiveElement: b }), (a.reactiveElementVersions ??= []).push("2.0.4"); // node_modules/@lit/reactive-element/decorators/property.js var o3 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f }; var r3 = (t5 = o3, e6, r7) => { const { kind: n6, metadata: i5 } = r7; let s4 = globalThis.litPropertyMetadata.get(i5); if (void 0 === s4 && globalThis.litPropertyMetadata.set(i5, s4 = /* @__PURE__ */ new Map()), s4.set(r7.name, t5), "accessor" === n6) { const { name: o6 } = r7; return { set(r8) { const n7 = e6.get.call(this); e6.set.call(this, r8), this.requestUpdate(o6, n7, t5); }, init(e7) { return void 0 !== e7 && this.P(o6, void 0, t5), e7; } }; } if ("setter" === n6) { const { name: o6 } = r7; return function(r8) { const n7 = this[o6]; e6.call(this, r8), this.requestUpdate(o6, n7, t5); }; } throw Error("Unsupported decorator location: " + n6); }; function n3(t5) { return (e6, o6) => "object" == typeof o6 ? r3(t5, e6, o6) : ((t6, e7, o7) => { const r7 = e7.hasOwnProperty(o7); return e7.constructor.createProperty(o7, r7 ? { ...t6, wrapped: true } : t6), r7 ? Object.getOwnPropertyDescriptor(e7, o7) : void 0; })(t5, e6, o6); } // node_modules/lit-html/lit-html.js var t3 = globalThis; var i3 = t3.trustedTypes; var s2 = i3 ? i3.createPolicy("lit-html", { createHTML: (t5) => t5 }) : void 0; var e4 = "$lit$"; var h2 = `lit$${Math.random().toFixed(9).slice(2)}$`; var o4 = "?" + h2; var n4 = `<${o4}>`; var r4 = document; var l2 = () => r4.createComment(""); var c3 = (t5) => null === t5 || "object" != typeof t5 && "function" != typeof t5; var a2 = Array.isArray; var u2 = (t5) => a2(t5) || "function" == typeof t5?.[Symbol.iterator]; var d2 = "[ \n\f\r]"; var f2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g; var v = /-->/g; var _ = />/g; var m = RegExp(`>|${d2}(?:([^\\s"'>=/]+)(${d2}*=${d2}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`, "g"); var p2 = /'/g; var g = /"/g; var $ = /^(?:script|style|textarea|title)$/i; var y2 = (t5) => (i5, ...s4) => ({ _$litType$: t5, strings: i5, values: s4 }); var x = y2(1); var b2 = y2(2); var w = y2(3); var T = Symbol.for("lit-noChange"); var E = Symbol.for("lit-nothing"); var A = /* @__PURE__ */ new WeakMap(); var C = r4.createTreeWalker(r4, 129); function P(t5, i5) { if (!a2(t5) || !t5.hasOwnProperty("raw")) throw Error("invalid template strings array"); return void 0 !== s2 ? s2.createHTML(i5) : i5; } var V = (t5, i5) => { const s4 = t5.length - 1, o6 = []; let r7, l4 = 2 === i5 ? "<svg>" : 3 === i5 ? "<math>" : "", c5 = f2; for (let i6 = 0; i6 < s4; i6++) { const s5 = t5[i6]; let a4, u4, d4 = -1, y4 = 0; for (; y4 < s5.length && (c5.lastIndex = y4, u4 = c5.exec(s5), null !== u4); ) y4 = c5.lastIndex, c5 === f2 ? "!--" === u4[1] ? c5 = v : void 0 !== u4[1] ? c5 = _ : void 0 !== u4[2] ? ($.test(u4[2]) && (r7 = RegExp("</" + u4[2], "g")), c5 = m) : void 0 !== u4[3] && (c5 = m) : c5 === m ? ">" === u4[0] ? (c5 = r7 ?? f2, d4 = -1) : void 0 === u4[1] ? d4 = -2 : (d4 = c5.lastIndex - u4[2].length, a4 = u4[1], c5 = void 0 === u4[3] ? m : '"' === u4[3] ? g : p2) : c5 === g || c5 === p2 ? c5 = m : c5 === v || c5 === _ ? c5 = f2 : (c5 = m, r7 = void 0); const x3 = c5 === m && t5[i6 + 1].startsWith("/>") ? " " : ""; l4 += c5 === f2 ? s5 + n4 : d4 >= 0 ? (o6.push(a4), s5.slice(0, d4) + e4 + s5.slice(d4) + h2 + x3) : s5 + h2 + (-2 === d4 ? i6 : x3); } return [P(t5, l4 + (t5[s4] || "<?>") + (2 === i5 ? "</svg>" : 3 === i5 ? "</math>" : "")), o6]; }; var N = class _N { constructor({ strings: t5, _$litType$: s4 }, n6) { let r7; this.parts = []; let c5 = 0, a4 = 0; const u4 = t5.length - 1, d4 = this.parts, [f4, v3] = V(t5, s4); if (this.el = _N.createElement(f4, n6), C.currentNode = this.el.content, 2 === s4 || 3 === s4) { const t6 = this.el.content.firstChild; t6.replaceWith(...t6.childNodes); } for (; null !== (r7 = C.nextNode()) && d4.length < u4; ) { if (1 === r7.nodeType) { if (r7.hasAttributes()) for (const t6 of r7.getAttributeNames()) if (t6.endsWith(e4)) { const i5 = v3[a4++], s5 = r7.getAttribute(t6).split(h2), e6 = /([.?@])?(.*)/.exec(i5); d4.push({ type: 1, index: c5, name: e6[2], strings: s5, ctor: "." === e6[1] ? H : "?" === e6[1] ? I : "@" === e6[1] ? L : k }), r7.removeAttribute(t6); } else t6.startsWith(h2) && (d4.push({ type: 6, index: c5 }), r7.removeAttribute(t6)); if ($.test(r7.tagName)) { const t6 = r7.textContent.split(h2), s5 = t6.length - 1; if (s5 > 0) { r7.textContent = i3 ? i3.emptyScript : ""; for (let i5 = 0; i5 < s5; i5++) r7.append(t6[i5], l2()), C.nextNode(), d4.push({ type: 2, index: ++c5 }); r7.append(t6[s5], l2()); } } } else if (8 === r7.nodeType) if (r7.data === o4) d4.push({ type: 2, index: c5 }); else { let t6 = -1; for (; -1 !== (t6 = r7.data.indexOf(h2, t6 + 1)); ) d4.push({ type: 7, index: c5 }), t6 += h2.length - 1; } c5++; } } static createElement(t5, i5) { const s4 = r4.createElement("template"); return s4.innerHTML = t5, s4; } }; function S2(t5, i5, s4 = t5, e6) { if (i5 === T) return i5; let h4 = void 0 !== e6 ? s4._$Co?.[e6] : s4._$Cl; const o6 = c3(i5) ? void 0 : i5._$litDirective$; return h4?.constructor !== o6 && (h4?._$AO?.(false), void 0 === o6 ? h4 = void 0 : (h4 = new o6(t5), h4._$AT(t5, s4, e6)), void 0 !== e6 ? (s4._$Co ??= [])[e6] = h4 : s4._$Cl = h4), void 0 !== h4 && (i5 = S2(t5, h4._$AS(t5, i5.values), h4, e6)), i5; } var M = class { constructor(t5, i5) { this._$AV = [], this._$AN = void 0, this._$AD = t5, this._$AM = i5; } get parentNode() { return this._$AM.parentNode; } get _$AU() { return this._$AM._$AU; } u(t5) { const { el: { content: i5 }, parts: s4 } = this._$AD, e6 = (t5?.creationScope ?? r4).importNode(i5, true); C.currentNode = e6; let h4 = C.nextNode(), o6 = 0, n6 = 0, l4 = s4[0]; for (; void 0 !== l4; ) { if (o6 === l4.index) { let i6; 2 === l4.type ? i6 = new R(h4, h4.nextSibling, this, t5) : 1 === l4.type ? i6 = new l4.ctor(h4, l4.name, l4.strings, this, t5) : 6 === l4.type && (i6 = new z(h4, this, t5)), this._$AV.push(i6), l4 = s4[++n6]; } o6 !== l4?.index && (h4 = C.nextNode(), o6++); } return C.currentNode = r4, e6; } p(t5) { let i5 = 0; for (const s4 of this._$AV) void 0 !== s4 && (void 0 !== s4.strings ? (s4._$AI(t5, s4, i5), i5 += s4.strings.length - 2) : s4._$AI(t5[i5])), i5++; } }; var R = class _R { get _$AU() { return this._$AM?._$AU ?? this._$Cv; } constructor(t5, i5, s4, e6) { this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t5, this._$AB = i5, this._$AM = s4, this.options = e6, this._$Cv = e6?.isConnected ?? true; } get parentNode() { let t5 = this._$AA.parentNode; const i5 = this._$AM; return void 0 !== i5 && 11 === t5?.nodeType && (t5 = i5.parentNode), t5; } get startNode() { return this._$AA; } get endNode() { return this._$AB; } _$AI(t5, i5 = this) { t5 = S2(this, t5, i5), c3(t5) ? t5 === E || null == t5 || "" === t5 ? (this._$AH !== E && this._$AR(), this._$AH = E) : t5 !== this._$AH && t5 !== T && this._(t5) : void 0 !== t5._$litType$ ? this.$(t5) : void 0 !== t5.nodeType ? this.T(t5) : u2(t5) ? this.k(t5) : this._(t5); } O(t5) { return this._$AA.parentNode.insertBefore(t5, this._$AB); } T(t5) { this._$AH !== t5 && (this._$AR(), this._$AH = this.O(t5)); } _(t5) { this._$AH !== E && c3(this._$AH) ? this._$AA.nextSibling.data = t5 : this.T(r4.createTextNode(t5)), this._$AH = t5; } $(t5) { const { values: i5, _$litType$: s4 } = t5, e6 = "number" == typeof s4 ? this._$AC(t5) : (void 0 === s4.el && (s4.el = N.createElement(P(s4.h, s4.h[0]), this.options)), s4); if (this._$AH?._$AD === e6) this._$AH.p(i5); else { const t6 = new M(e6, this), s5 = t6.u(this.options); t6.p(i5), this.T(s5), this._$AH = t6; } } _$AC(t5) { let i5 = A.get(t5.strings); return void 0 === i5 && A.set(t5.strings, i5 = new N(t5)), i5; } k(t5) { a2(this._$AH) || (this._$AH = [], this._$AR()); const i5 = this._$AH; let s4, e6 = 0; for (const h4 of t5) e6 === i5.length ? i5.push(s4 = new _R(this.O(l2()), this.O(l2()), this, this.options)) : s4 = i5[e6], s4._$AI(h4), e6++; e6 < i5.length && (this._$AR(s4 && s4._$AB.nextSibling, e6), i5.length = e6); } _$AR(t5 = this._$AA.nextSibling, i5) { for (this._$AP?.(false, true, i5); t5 && t5 !== this._$AB; ) { const i6 = t5.nextSibling; t5.remove(), t5 = i6; } } setConnected(t5) { void 0 === this._$AM && (this._$Cv = t5, this._$AP?.(t5)); } }; var k = class { get tagName() { return this.element.tagName; } get _$AU() { return this._$AM._$AU; } constructor(t5, i5, s4, e6, h4) { this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t5, this.name = i5, this._$AM = e6, this.options = h4, s4.length > 2 || "" !== s4[0] || "" !== s4[1] ? (this._$AH = Array(s4.length - 1).fill(new String()), this.strings = s4) : this._$AH = E; } _$AI(t5, i5 = this, s4, e6) { const h4 = this.strings; let o6 = false; if (void 0 === h4) t5 = S2(this, t5, i5, 0), o6 = !c3(t5) || t5 !== this._$AH && t5 !== T, o6 && (this._$AH = t5); else { const e7 = t5; let n6, r7; for (t5 = h4[0], n6 = 0; n6 < h4.length - 1; n6++) r7 = S2(this, e7[s4 + n6], i5, n6), r7 === T && (r7 = this._$AH[n6]), o6 ||= !c3(r7) || r7 !== this._$AH[n6], r7 === E ? t5 = E : t5 !== E && (t5 += (r7 ?? "") + h4[n6 + 1]), this._$AH[n6] = r7; } o6 && !e6 && this.j(t5); } j(t5) { t5 === E ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t5 ?? ""); } }; var H = class extends k { constructor() { super(...arguments), this.type = 3; } j(t5) { this.element[this.name] = t5 === E ? void 0 : t5; } }; var I = class extends k { constructor() { super(...arguments), this.type = 4; } j(t5) { this.element.toggleAttribute(this.name, !!t5 && t5 !== E); } }; var L = class extends k { constructor(t5, i5, s4, e6, h4) { super(t5, i5, s4, e6, h4), this.type = 5; } _$AI(t5, i5 = this) { if ((t5 = S2(this, t5, i5, 0) ?? E) === T) return; const s4 = this._$AH, e6 = t5 === E && s4 !== E || t5.capture !== s4.capture || t5.once !== s4.once || t5.passive !== s4.passive, h4 = t5 !== E && (s4 === E || e6); e6 && this.element.removeEventListener(this.name, this, s4), h4 && this.element.addEventListener(this.name, this, t5), this._$AH = t5; } handleEvent(t5) { "function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t5) : this._$AH.handleEvent(t5); } }; var z = class { constructor(t5, i5, s4) { this.element = t5, this.type = 6, this._$AN = void 0, this._$AM = i5, this.options = s4; } get _$AU() { return this._$AM._$AU; } _$AI(t5) { S2(this, t5); } }; var j = t3.litHtmlPolyfillSupport; j?.(N, R), (t3.litHtmlVersions ??= []).push("3.2.1"); var B = (t5, i5, s4) => { const e6 = s4?.renderBefore ?? i5; let h4 = e6._$litPart$; if (void 0 === h4) { const t6 = s4?.renderBefore ?? null; e6._$litPart$ = h4 = new R(i5.insertBefore(l2(), t6), t6, void 0, s4 ?? {}); } return h4._$AI(t5), h4; }; // node_modules/lit-element/lit-element.js var r5 = class extends b { constructor() { super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0; } createRenderRoot() { const t5 = super.createRenderRoot(); return this.renderOptions.renderBefore ??= t5.firstChild, t5; } update(t5) { const s4 = this.render(); this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t5), this._$Do = B(s4, this.renderRoot, this.renderOptions); } connectedCallback() { super.connectedCallback(), this._$Do?.setConnected(true); } disconnectedCallback() { super.disconnectedCallback(), this._$Do?.setConnected(false); } render() { return T; } }; r5._$litElement$ = true, r5["finalized"] = true, globalThis.litElementHydrateSupport?.({ LitElement: r5 }); var i4 = globalThis.litElementPolyfillSupport; i4?.({ LitElement: r5 }); (globalThis.litElementVersions ??= []).push("4.1.1"); // node_modules/@webwriter/lit/index.js var __create = Object.create; var __defProp2 = Object.defineProperty; var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor; var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name); var __typeError = (msg) => { throw TypeError(msg); }; var __defNormalProp = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __name = (target, value) => __defProp2(target, "name", { value, configurable: true }); var __decoratorStart = (base) => [, , , __create(base?.[__knownSymbol("metadata")] ?? null)]; var __decoratorStrings = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"]; var __expectFn = (fn) => fn !== void 0 && typeof fn !== "function" ? __typeError("Function expected") : fn; var __decoratorContext = (kind, name, done, metadata, fns) => ({ kind: __decoratorStrings[kind], name, metadata, addInitializer: (fn) => done._ ? __typeError("Already initialized") : fns.push(__expectFn(fn || null)) }); var __decoratorMetadata = (array, target) => __defNormalProp(target, __knownSymbol("metadata"), array[3]); var __runInitializers = (array, flags, self, value) => { for (var i32 = 0, fns = array[flags >> 1], n52 = fns && fns.length; i32 < n52; i32++) flags & 1 ? fns[i32].call(self) : value = fns[i32].call(self, value); return value; }; var __decorateElement = (array, flags, name, decorators, target, extra) => { var fn, it, done, ctx, access, k22 = flags & 7, s22 = !!(flags & 8), p22 = !!(flags & 16); var j22 = k22 > 3 ? array.length + 1 : k22 ? s22 ? 1 : 2 : 0, key = __decoratorStrings[k22 + 5]; var initializers = k22 > 3 && (array[j22 - 1] = []), extraInitializers = array[j22] || (array[j22] = []); var desc = k22 && (!p22 && !s22 && (target = target.prototype), k22 < 5 && (k22 > 3 || !p22) && __getOwnPropDesc2(k22 < 4 ? target : { get [name]() { return __privateGet(this, extra); }, set [name](x22) { return __privateSet(this, extra, x22); } }, name)); k22 ? p22 && k22 < 4 && __name(extra, (k22 > 2 ? "set " : k22 > 1 ? "get " : "") + name) : __name(target, name); for (var i32 = decorators.length - 1; i32 >= 0; i32--) { ctx = __decoratorContext(k22, name, done = {}, array[3], extraInitializers); if (k22) { ctx.static = s22, ctx.private = p22, access = ctx.access = { has: p22 ? (x22) => __privateIn(target, x22) : (x22) => name in x22 }; if (k22 ^ 3) access.get = p22 ? (x22) => (k22 ^ 1 ? __privateGet : __privateMethod)(x22, target, k22 ^ 4 ? extra : desc.get) : (x22) => x22[name]; if (k22 > 2) access.set = p22 ? (x22, y22) => __privateSet(x22, target, y22, k22 ^ 4 ? extra : desc.set) : (x22, y22) => x22[name] = y22; } it = (0, decorators[i32])(k22 ? k22 < 4 ? p22 ? extra : desc[key] : k22 > 4 ? void 0 : { get: desc.get, set: desc.set } : target, ctx), done._ = 1; if (k22 ^ 4 || it === void 0) __expectFn(it) && (k22 > 4 ? initializers.unshift(it) : k22 ? p22 ? extra = it : desc[key] = it : target = it); else if (typeof it !== "object" || it === null) __typeError("Object expected"); else __expectFn(fn = it.get) && (desc.get = fn), __expectFn(fn = it.set) && (desc.set = fn), __expectFn(fn = it.init) && initializers.unshift(fn); } return k22 || __decoratorMetadata(array, target), desc && __defProp2(target, name, desc), p22 ? k22 ^ 4 ? extra : desc : target; }; var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value); var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg); var __privateIn = (member, obj) => Object(obj) !== obj ? __typeError('Cannot use the "in" operator on this value') : member.has(obj); var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj)); var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value); var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value); var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method); var t4 = globalThis; var e5 = t4.ShadowRoot && (void 0 === t4.ShadyCSS || t4.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype; var s3 = Symbol(); var o5 = /* @__PURE__ */ new WeakMap(); var n5 = class { constructor(t22, e42, o42) { if (this._$cssResult$ = true, o42 !== s3) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead."); this.cssText = t22, this.t = e42; } get styleSheet() { let t22 = this.o; const s22 = this.t; if (e5 && void 0 === t22) { const e42 = void 0 !== s22 && 1 === s22.length; e42 && (t22 = o5.get(s22)), void 0 === t22 && ((this.o = t22 = new CSSStyleSheet()).replaceSync(this.cssText), e42 && o5.set(s22, t22)); } return t22; } toString() { return this.cssText; } }; var r6 = (t22) => new n5("string" == typeof t22 ? t22 : t22 + "", void 0, s3); var S3 = (s22, o42) => { if (e5) s22.adoptedStyleSheets = o42.map((t22) => t22 instanceof CSSStyleSheet ? t22 : t22.styleSheet); else for (const e42 of o42) { const o52 = document.createElement("style"), n52 = t4.litNonce; void 0 !== n52 && o52.setAttribute("nonce", n52), o52.textContent = e42.cssText, s22.appendChild(o52); } }; var c4 = e5 ? (t22) => t22 : (t22) => t22 instanceof CSSStyleSheet ? ((t32) => { let e42 = ""; for (const s22 of t32.cssRules) e42 += s22.cssText; return r6(e42); })(t22) : t22; var { is: i22, defineProperty: e22, getOwnPropertyDescriptor: r22, getOwnPropertyNames: h3, getOwnPropertySymbols: o22, getPrototypeOf: n22 } = Object; var a3 = globalThis; var c22 = a3.trustedTypes; var l3 = c22 ? c22.emptyScript : ""; var p3 = a3.reactiveElementPolyfillSupport; var d3 = (t22, s22) => t22; var u3 = { toAttribute(t22, s22) { switch (s22) { case Boolean: t22 = t22 ? l3 : null; break; case Object: case Array: t22 = null == t22 ? t22 : JSON.stringify(t22); } return t22; }, fromAttribute(t22, s22) { let i32 = t22; switch (s22) { case Boolean: i32 = null !== t22; break; case Number: i32 = null === t22 ? null : Number(t22); break; case Object: case Array: try { i32 = JSON.parse(t22); } catch (t32) { i32 = null; } } return i32; } }; var f3 = (t22, s22) => !i22(t22, s22); var y3 = { attribute: true, type: String, converter: u3, reflect: false, hasChanged: f3 }; Symbol.metadata ??= Symbol("metadata"), a3.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap(); var b3 = class extends HTMLElement { static addInitializer(t22) { this._$Ei(), (this.l ??= []).push(t22); } static get observedAttributes() { return this.finalize(), this._$Eh && [...this._$Eh.keys()]; } static createProperty(t22, s22 = y3) { if (s22.state && (s22.attribute = false), this._$Ei(), this.elementProperties.set(t22, s22), !s22.noAccessor) { const i32 = Symbol(), r42 = this.getPropertyDescriptor(t22, i32, s22); void 0 !== r42 && e22(this.prototype, t22, r42); } } static getPropertyDescriptor(t22, s22, i32) { const { get: e42, set: h4 } = r22(this.prototype, t22) ?? { get() { return this[s22]; }, set(t32) { this[s22] = t32; } }; return { get() { return e42?.call(this); }, set(s32) { const r42 = e42?.call(this); h4.call(this, s32), this.requestUpdate(t22, r42, i32); }, configurable: true, enumerable: true }; } static getPropertyOptions(t22) { return this.elementProperties.get(t22) ?? y3; } static _$Ei() { if (this.hasOwnProperty(d3("elementProperties"))) return; const t22 = n22(this); t22.finalize(), void 0 !== t22.l && (this.l = [...t22.l]), this.elementProperties = new Map(t22.elementProperties); } static finalize() { if (this.hasOwnProperty(d3("finalized"))) return; if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d3("properties"))) { const t32 = this.properties, s22 = [...h3(t32), ...o22(t32)]; for (const i32 of s22) this.createProperty(i32, t32[i32]); } const t22 = this[Symbol.metadata]; if (null !== t22) { const s22 = litPropertyMetadata.get(t22); if (void 0 !== s22) for (const [t32, i32] of s22) this.elementProperties.set(t32, i32); } this._$Eh = /* @__PURE__ */ new Map(); for (const [t32, s22] of this.elementProperties) { const i32 = this._$Eu(t32, s22); void 0 !== i32 && this._$Eh.set(i32, t32); } this.elementStyles = this.finalizeStyles(this.styles); } static finalizeStyles(s22) { const i32 = []; if (Array.isArray(s22)) { const e42 = new Set(s22.flat(1 / 0).reverse()); for (const s32 of e42) i32.unshift(c4(s32)); } else void 0 !== s22 && i32.push(c4(s22)); return i32; } static _$Eu(t22, s22) { const i32 = s22.attribute; return false === i32 ? void 0 : "string" == typeof i32 ? i32 : "string" == typeof t22 ? t22.toLowerCase() : void 0; } constructor() { super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev(); } _$Ev() { this._$ES = new Promise((t22) => this.enableUpdating = t22), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t22) => t22(this)); } addController(t22) { (this._$EO ??= /* @__PURE__ */ new Set()).add(t22), void 0 !== this.renderRoot && this.isConnected && t22.hostConnected?.(); } removeController(t22) { this._$EO?.delete(t22); } _$E_() { const t22 = /* @__PURE__ */ new Map(), s22 = this.constructor.elementProperties; for (const i32 of s22.keys()) this.hasOwnProperty(i32) && (t22.set(i32, this[i32]), delete this[i32]); t22.size > 0 && (this._$Ep = t22); } createRenderRoot() { const t22 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions); return S3(t22, this.constructor.elementStyles), t22; } connectedCallback() { this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t22) => t22.hostConnected?.()); } enableUpdating(t22) { } disconnectedCallback() { this._$EO?.forEach((t22) => t22.hostDisconnected?.()); } attributeChangedCallback(t22, s22, i32) { this._$AK(t22, i32); } _$EC(t22, s22) { const i32 = this.constructor.elementProperties.get(t22), e42 = this.constructor._$Eu(t22, i32); if (void 0 !== e42 && true === i32.reflect) { const r42 = (void 0 !== i32.converter?.toAttribute ? i32.converter : u3).toAttribute(s22, i32.type); this._$Em = t22, null == r42 ? this.removeAttribute(e42) : this.setAttribute(e42, r42), this._$Em = null; } } _$AK(t22, s22) { const i32 = this.constructor, e42 = i32._$Eh.get(t22); if (void 0 !== e42 && this._$Em !== e42) { const t32 = i32.getPropertyOptions(e42), r42 = "function" == typeof t32.converter ? { fromAttribute: t32.converter } : void 0 !== t32.converter?.fromAttribute ? t32.converter : u3; this._$Em = e42, this[e42] = r42.fromAttribute(s22, t32.type), this._$Em = null; } } requestUpdate(t22, s22, i32) { if (void 0 !== t22) { if (i32 ??= this.constructor.getPropertyOptions(t22), !(i32.hasChanged ?? f3)(this[t22], s22)) return; this.P(t22, s22, i32); } false === this.isUpdatePending && (this._$ES = this._$ET()); } P(t22, s22, i32) { this._$AL.has(t22) || this._$AL.set(t22, s22), true === i32.reflect && this._$Em !== t22 && (this._$Ej ??= /* @__PURE__ */ new Set()).add(t22); } async _$ET() { this.isUpdatePending = true; try { await this._$ES; } catch (t32) { Promise.reject(t32); } const t22 = this.scheduleUpdate(); return null != t22 && await t22, !this.isUpdatePending; } scheduleUpdate() { return this.performUpdate(); } performUpdate() { if (!this.isUpdatePending) return; if (!this.hasUpdated) { if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) { for (const [t42, s32] of this._$Ep) this[t42] = s32; this._$Ep = void 0; } const t32 = this.constructor.elementProperties; if (t32.size > 0) for (const [s32, i32] of t32) true !== i32.wrapped || this._$AL.has(s32) || void 0 === this[s32] || this.P(s32, this[s32], i32); } let t22 = false; const s22 = this._$AL; try { t22 = this.shouldUpdate(s22), t22 ? (this.willUpdate(s22), this._$EO?.forEach((t32) => t32.hostUpdate?.()), this.update(s22)) : this._$EU(); } catch (s32) { throw t22 = false, this._$EU(), s32; } t22 && this._$AE(s22); } willUpdate(t22) { } _$AE(t22) { this._$EO?.forEach((t32) => t32.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t22)), this.updated(t22); } _$EU() { this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false; } get updateComplete() { return this.getUpdateComplete(); } getUpdateComplete() { return this._$ES; } shouldUpdate(t22) { return true; } update(t22) { this._$Ej &&= this._$Ej.forEach((t32) => this._$EC(t32, this[t32])), this._$EU(); } updated(t22) { } firstUpdated(t22) { } }; b3.elementStyles = [], b3.shadowRootOptions = { mode: "open" }, b3[d3("elementProperties")] = /* @__PURE__ */ new Map(), b3[d3("finalized")] = /* @__PURE__ */ new Map(), p3?.({ ReactiveElement: b3 }), (a3.reactiveElementVersions ??= []).push("2.0.4"); var n32 = globalThis; var c32 = n32.trustedTypes; var h22 = c32 ? c32.createPolicy("lit-html", { createHTML: (t22) => t22 }) : void 0; var f22 = "$lit$"; var v2 = `lit$${Math.random().toFixed(9).slice(2)}$`; var m2 = "?" + v2; var _2 = `<${m2}>`; var w2 = document; var lt = () => w2.createComment(""); var st = (t22) => null === t22 || "object" != typeof t22 && "function" != typeof t22; var g2 = Array.isArray; var $2 = (t22) => g2(t22) || "function" == typeof t22?.[Symbol.iterator]; var x2 = "[ \n\f\r]"; var T2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g; var E2 = /-->/g; var k2 = />/g; var O = RegExp(`>|${x2}(?:([^\\s"'>=/]+)(${x2}*=${x2}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`, "g"); var S22 = /'/g; var j2 = /"/g; var M2 = /^(?:script|style|textarea|title)$/i; var P2 = (t22) => (i32, ...s22) => ({ _$litType$: t22, strings: i32, values: s22 }); var ke = P2(1); var Oe = P2(2); var Se = P2(3); var R2 = Symbol.for("lit-noChange"); var D = Symbol.for("lit-nothing"); var V2 = /* @__PURE__ */ new WeakMap(); var I2 = w2.createTreeWalker(w2, 129); function N2(t22, i32) { if (!g2(t22) || !t22.hasOwnProperty("raw")) throw Error("invalid template strings array"); return void 0 !== h22 ? h22.createHTML(i32) : i32; } var U = (t22, i32) => { const s22 = t22.length - 1, e42 = []; let h4, o42 = 2 === i32 ? "<svg>" : 3 === i32 ? "<math>" : "", n52 = T2; for (let i42 = 0; i42 < s22; i42++) { const s32 = t22[i42]; let r42, l22, c42 = -1, a22 = 0; for (; a22 < s32.length && (n52.lastIndex = a22, l22 = n52.exec(s32), null !== l22); ) a22 = n52.lastIndex, n52 === T2 ? "!--" === l22[1] ? n52 = E2 : void 0 !== l22[1] ? n52 = k2 : void 0 !== l22[2] ? (M2.test(l22[2]) && (h4 = RegExp("</" + l22[2], "g")), n52 = O) : void 0 !== l22[3] && (n52 = O) : n52 === O ? ">" === l22[0] ? (n52 = h4 ?? T2, c42 = -1) : void 0 === l22[1] ? c42 = -2 : (c42 = n52.lastIndex - l22[2].length, r42 = l22[1], n52 = void 0 === l22[3] ? O : '"' === l22[3] ? j2 : S22) : n52 === j2 || n52 === S22 ? n52 = O : n52 === E2 || n52 === k2 ? n52 = T2 : (n52 = O, h4 = void 0); const u22 = n52 === O && t22[i42 + 1].startsWith("/>") ? " " : ""; o42 += n52 === T2 ? s32 + _2 : c42 >= 0 ? (e42.push(r42), s32.slice(0, c42) + f22 + s32.slice(c42) + v2 + u22) : s32 + v2 + (-2 === c42 ? i42 : u22); } return [N2(t22, o42 + (t22[s22] || "<?>") + (2 === i32 ? "</svg>" : 3 === i32 ? "</math>" : "")), e42]; }; var B2 = class _B { constructor({ strings: t22, _$litType$: i32 }, s22) { let e42; this.parts = []; let h4 = 0, o42 = 0; const n52 = t22.length - 1, r42 = this.parts, [l22, a22] = U(t22, i32); if (this.el = _B.createElement(l22, s22), I2.currentNode = this.el.content, 2 === i32 || 3 === i32) { const t32 = this.el.content.firstChild; t32.replaceWith(...t32.childNodes); } for (; null !== (e42 = I2.nextNode()) && r42.length < n52; ) { if (1 === e42.nodeType) { if (e42.hasAttributes()) for (const t32 of e42.getAttributeNames()) if (t32.endsWith(f22)) { const i42 = a22[o42++], s32 = e42.getAttribute(t32).split(v2), n6 = /([.?@])?(.*)/.exec(i42); r42.push({ type: 1, index: h4, name: n6[2], strings: s32, ctor: "." === n6[1] ? Y : "?" === n6[1] ? Z : "@" === n6[1] ? q : G }), e42.removeAttribute(t32); } else t32.startsWith(v2) && (r42.push({ type: 6, index: h4 }), e42.removeAttribute(t32)); if (M2.test(e42.tagName)) { const t32 = e42.textContent.split(v2), i42 = t32.length - 1; if (i42 > 0) { e42.textContent = c32 ? c32.emptyScript : ""; for (let s32 = 0; s32 < i42; s32++) e42.append(t32[s32], lt()), I2.nextNode(), r42.push({ type: 2, index: ++h4 }); e42.append(t32[i42], lt()); } } } else if (8 === e42.nodeType) if (e42.data === m2) r42.push({ type: 2, index: h4 }); else { let t32 = -1; for (; -1 !== (t32 = e42.data.indexOf(v2, t32 + 1)); ) r42.push({ type: 7, index: h4 }), t32 += v2.length - 1; } h4++; } } static createElement(t22, i32) { const s22 = w2.createElement("template"); return s22.innerHTML = t22, s22; } }; function z2(t22, i32, s22 = t22, e42) { if (i32 === R2) return i32; let h4 = void 0 !== e42 ? s22.o?.[e42] : s22.l; const o42 = st(i32) ? void 0 : i32._$litDirective$; return h4?.constructor !== o42 && (h4?._$AO?.(false), void 0 === o42 ? h4 = void 0 : (h4 = new o42(t22), h4._$AT(t22, s22, e42)), void 0 !== e42 ? (s22.o ??= [])[e42] = h4 : s22.l = h4), void 0 !== h4 && (i32 = z2(t22, h4._$AS(t22, i32.values), h4, e42)), i32; } var F = class { constructor(t22, i32) { this._$AV = [], this._$AN = void 0, this._$AD = t22, this._$AM = i32; } get parentNode() { return this._$AM.parentNode; } get _$AU() { return this._$AM._$AU; } u(t22) { const { el: { content: i32 }, parts: s22 } = this._$AD, e42 = (t22?.creationScope ?? w2).importNode(i32, true); I2.currentNode = e42; let h4 = I2.nextNode(), o42 = 0, n52 = 0, r42 = s22[0]; for (; void 0 !== r42; ) { if (o42 === r42.index) { let i42; 2 === r42.type ? i42 = new et(h4, h4.nextSibling, this, t22) : 1 === r42.type ? i42 = new r42.ctor(h4, r42.name, r42.strings, this, t22) : 6 === r42.type && (i42 = new K(h4, this, t22)), this._$AV.push(i42), r42 = s22[++n52]; } o42 !== r42?.index && (h4 = I2.nextNode(), o42++); } return I2.currentNode = w2, e42; } p(t22) { let i32 = 0; for (const s22 of this._$AV) void 0 !== s22 && (void 0 !== s22.strings ? (s22._$AI(t22, s22, i32), i32 += s22.strings.length - 2) : s22._$AI(t22[i32])), i32++; } }; var et = class _et { get _$AU() { return this._$AM?._$AU ?? this.v; } constructor(t22, i32, s22, e42) { this.type = 2, this._$AH = D, this._$AN = void 0, this._$AA = t22, this._$AB = i32, this._$AM = s22, this.options = e42, this.v = e42?.isConnected ?? true; } get parentNode() { let t22 = this._$AA.parentNode; const i32 = this._$AM; return void 0 !== i32 && 11 === t22?.nodeType && (t22 = i32.parentNode), t22; } get startNode() { return this._$AA; } get endNode() { return this._$AB; } _$AI(t22, i32 = this) { t22 = z2(this, t22, i32), st(t22) ? t22 === D || null == t22 || "" === t22 ? (this._$AH !== D && this._$AR(), this._$AH = D) : t22 !== this._$AH && t22 !== R2 && this._(t22) : void 0 !== t22._$litType$ ? this.$(t22) : void 0 !== t22.nodeType ? this.T(t22) : $2(t22) ? this.k(t22) : this._(t22); } O(t22) { return this._$AA.parentNode.insertBefore(t22, this._$AB); } T(t22) { this._$AH !== t22 && (this._$AR(), this._$AH = this.O(t22)); } _(t22) { this._$AH !== D && st(this._$AH) ? this._$AA.nextSibling.data = t22 : this.T(w2.createTextNode(t22)), this._$AH = t22; } $(t22) { const { values: i32, _$litType$: s22 } = t22, e42 = "number" == typeof s22 ? this._$AC(t22) : (void 0 === s22.el && (s22.el = B2.createElement(N2(s22.h, s22.h[0]), this.options)), s22); if (this._$AH?._$AD === e42) this._$AH.p(i32); else { const t32 = new F(e42, this), s32 = t32.u(this.options); t32.p(i32), this.T(s32), this._$AH = t32; } } _$AC(t22) { let i32 = V2.get(t22.strings); return void 0 === i32 && V2.set(t22.strings, i32 = new B2(t22)), i32; } k(t22) { g2(this._$AH) || (this._$AH = [], this._$AR()); const i32 = this._$AH; let s22, e42 = 0; for (const h4 of t22) e42 === i32.length ? i32.push(s22 = new _et(this.O(lt()), this.O(lt()), this, this.options)) : s22 = i32[e42], s22._$AI(h4), e42++; e42 < i32.length && (this._$AR(s22 && s22._$AB.nextSibling, e42), i32.length = e42); } _$AR(t22 = this._$AA.nextSibling, i32) { for (this._$AP?.(false, true, i32); t22 && t22 !== this._$AB; ) { const i42 = t22.nextSibling; t22.remove(), t22 = i42; } } setConnected(t22) { void 0 === this._$AM && (this.v = t22, this._$AP?.(t22)); } }; var G = class { get tagName() { return this.element.tagName; } get _$AU() { return this._$AM._$AU; } constructor(t22, i32, s22, e42, h4) { this.type = 1, this._$AH = D, this._$AN = void 0, this.element = t22, this.name = i32, this._$AM = e42, this.options = h4, s22.length > 2 || "" !== s22[0] || "" !== s22[1] ? (this._$AH = Array(s22.length - 1).fill(new String()), this.strings = s22) : this._$AH = D; } _$AI(t22, i32 = this, s22, e42) { const h4 = this.strings; let o42 = false; if (void 0 === h4) t22 = z2(this, t22, i32, 0), o42 = !st(t22) || t22 !== this._$AH && t22 !== R2, o42 && (this._$AH = t22); else { const e52 = t22; let n52, r42; for (t22 = h4[0], n52 = 0; n52 < h4.length - 1; n52++) r42 = z2(this, e52[s22 + n52], i32, n52), r42 === R2 && (r42 = this._$AH[n52]), o42 ||= !st(r42) || r42 !== this._$AH[n52], r42 === D ? t22 = D : t22 !== D && (t22 += (r42 ?? "") + h4[n52 + 1]), this._$AH[n52] = r42; } o42 && !e42 && this.j(t22); } j(t22) { t22 === D ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t22 ?? ""); } }; var Y = class extends G { constructor() { super(...arguments), this.type = 3; } j(t22) { this.element[this.name] = t22 === D ? void 0 : t22; } }; var Z = class extends G { constructor() { super(...arguments), this.type = 4; } j(t22) { this.element.toggleAttribute(this.name, !!t22 && t22 !== D); } }; var q = class extends G { constructor(t22, i32, s22, e42, h4) { super(t22, i32, s22, e42, h4), this.type = 5; } _$AI(t22, i32 = this) { if ((t22 = z2(this, t22, i32, 0) ?? D) === R2) return; const s22 = this._$AH, e42 = t22 === D && s22 !== D || t22.capture !== s22.capture || t22.once !== s22.once || t22.passive !== s22.passive, h4 = t22 !== D && (s22 === D || e42); e42 && this.element.removeEventListener(this.name, this, s22), h4 && this.element.addEventListener(this.name, this, t22), this._$AH = t22; } handleEvent(t22) { "function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t22) : this._$AH.handleEvent(t22); } }; var K = class { constructor(t22, i32, s22) { this.element = t22, this.type = 6, this._$AN = void 0, this._$AM = i32, this.options = s22; } get _$AU() { return this._$AM._$AU; } _$AI(t22) { z2(this, t22); } }; var Re = n32.litHtmlPolyfillSupport; Re?.(B2, et), (n32.litHtmlVersions ??= []).push("3.2.0"); var Q = (t22, i32, s22) => { const e42 = s22?.renderBefore ?? i32; let h4 = e42._$litPart$; if (void 0 === h4) { const t32 = s22?.renderBefore ?? null; e42._$litPart$ = h4 = new et(i32.insertBefore(lt(), t32), t32, void 0, s22 ?? {}); } return h4._$AI(t22), h4; }; var h32 = class extends b3 { constructor() { super(...arguments), this.renderOptions = { host: this }, this.o = void 0; } createRenderRoot() { const t22 = super.createRenderRoot(); return this.renderOptions.renderBefore ??= t22.firstChild, t22; } update(t22) { const e42 = this.render(); this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t22), this.o = Q(e42, this.renderRoot, this.renderOptions); } connectedCallback() { super.connectedCallback(), this.o?.setConnected(true); } disconnectedCallback() { super.disconnectedCallback(), this.o?.setConnected(false); } render() { return R2; } }; h32._$litElement$ = true, h32["finalized"] = true, globalThis.litElementHydrateSupport?.({ LitElement: h32 }); var f32 = globalThis.litElementPolyfillSupport; f32?.({ LitElement: h32 }); (globalThis.litElementVersions ??= []).push("4.1.0"); var o32 = { attribute: true, type: String, converter: u3, reflect: false, hasChanged: f3 }; var r32 = (t22 = o32, e42, r42) => { const { kind: n52, metadata: i32 } = r42; let s22 = globalThis.litPropertyMetadata.get(i32); if (void 0 === s22 && globalThis.litPropertyMetadata.set(i32, s22 = /* @__PURE__ */ new Map()), s22.set(r42.name, t22), "accessor" === n52) { const { name: o42 } = r42; return { set(r52) { const n6 = e42.get.call(this); e42.set.call(this, r52), this.requestUpdate(o42, n6, t22); }, init(e52) { return void 0 !== e52 && this.P(o42, void 0, t22), e52; } }; } if ("setter" === n52) { const { name: o42 } = r42; return function(r52) { const n6 = this[o42]; e42.call(this, r52), this.requestUpdate(o42, n6, t22); }; } throw Error("Unsupported decorator location: " + n52); }; function n42(t22) { return (e42, o42) => "object" == typeof o42 ? r32(t22, e42, o42) : ((t32, e52, o52) => { const r42 = e52.hasOwnProperty(o52); return e52.constructor.createProperty(o52, r42 ? { ...t32, wrapped: true } : t32), r42 ? Object.getOwnPropertyDescriptor(e52, o52) : void 0; })(t22, e42, o42); } var appliedClassMixins = /* @__PURE__ */ new WeakMap(); function wasMixinPreviouslyApplied(mixin, superClass) { let klass = superClass; while (klass) { if (appliedClassMixins.get(klass) === mixin) { return true; } klass = Object.getPrototypeOf(klass); } return false; } function dedupeMixin(mixin) { return (superClass) => { if (wasMixinPreviouslyApplied(mixin, superClass)) { return superClass; }