@webwriter/slides
Version:
Present content as a sequence of slides or tabs.
1,123 lines (1,118 loc) • 64.6 kB
JavaScript
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = 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 ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __name = (target, value) => __defProp(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 i5 = 0, fns = array[flags >> 1], n6 = fns && fns.length; i5 < n6; i5++) flags & 1 ? fns[i5].call(self) : value = fns[i5].call(self, value);
return value;
};
var __decorateElement = (array, flags, name, decorators, target, extra) => {
var fn, it, done, ctx, access, k3 = flags & 7, s5 = !!(flags & 8), p4 = !!(flags & 16);
var j3 = k3 > 3 ? array.length + 1 : k3 ? s5 ? 1 : 2 : 0, key = __decoratorStrings[k3 + 5];
var initializers = k3 > 3 && (array[j3 - 1] = []), extraInitializers = array[j3] || (array[j3] = []);
var desc = k3 && (!p4 && !s5 && (target = target.prototype), k3 < 5 && (k3 > 3 || !p4) && __getOwnPropDesc(k3 < 4 ? target : { get [name]() {
return __privateGet(this, extra);
}, set [name](x3) {
return __privateSet(this, extra, x3);
} }, name));
k3 ? p4 && k3 < 4 && __name(extra, (k3 > 2 ? "set " : k3 > 1 ? "get " : "") + name) : __name(target, name);
for (var i5 = decorators.length - 1; i5 >= 0; i5--) {
ctx = __decoratorContext(k3, name, done = {}, array[3], extraInitializers);
if (k3) {
ctx.static = s5, ctx.private = p4, access = ctx.access = { has: p4 ? (x3) => __privateIn(target, x3) : (x3) => name in x3 };
if (k3 ^ 3) access.get = p4 ? (x3) => (k3 ^ 1 ? __privateGet : __privateMethod)(x3, target, k3 ^ 4 ? extra : desc.get) : (x3) => x3[name];
if (k3 > 2) access.set = p4 ? (x3, y4) => __privateSet(x3, target, y4, k3 ^ 4 ? extra : desc.set) : (x3, y4) => x3[name] = y4;
}
it = (0, decorators[i5])(k3 ? k3 < 4 ? p4 ? extra : desc[key] : k3 > 4 ? void 0 : { get: desc.get, set: desc.set } : target, ctx), done._ = 1;
if (k3 ^ 4 || it === void 0) __expectFn(it) && (k3 > 4 ? initializers.unshift(it) : k3 ? p4 ? 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 k3 || __decoratorMetadata(array, target), desc && __defProp(target, name, desc), p4 ? k3 ^ 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);
// node_modules/@lit/reactive-element/css-tag.js
var t = globalThis;
var e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
var s = Symbol();
var o = /* @__PURE__ */ new WeakMap();
var n = class {
constructor(t5, e6, o7) {
if (this._$cssResult$ = true, o7 !== 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 s5 = this.t;
if (e && void 0 === t5) {
const e6 = void 0 !== s5 && 1 === s5.length;
e6 && (t5 = o.get(s5)), void 0 === t5 && ((this.o = t5 = new CSSStyleSheet()).replaceSync(this.cssText), e6 && o.set(s5, 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 o7 = 1 === t5.length ? t5[0] : e6.reduce((e7, s5, o8) => 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.");
})(s5) + t5[o8 + 1], t5[0]);
return new n(o7, t5, s);
};
var S = (s5, o7) => {
if (e) s5.adoptedStyleSheets = o7.map((t5) => t5 instanceof CSSStyleSheet ? t5 : t5.styleSheet);
else for (const e6 of o7) {
const o8 = document.createElement("style"), n6 = t.litNonce;
void 0 !== n6 && o8.setAttribute("nonce", n6), o8.textContent = e6.cssText, s5.appendChild(o8);
}
};
var c = e ? (t5) => t5 : (t5) => t5 instanceof CSSStyleSheet ? ((t6) => {
let e6 = "";
for (const s5 of t6.cssRules) e6 += s5.cssText;
return r(e6);
})(t5) : t5;
// node_modules/@lit/reactive-element/reactive-element.js
var { is: i2, defineProperty: e2, getOwnPropertyDescriptor: h, getOwnPropertyNames: r2, getOwnPropertySymbols: o2, getPrototypeOf: n2 } = Object;
var a = globalThis;
var c2 = a.trustedTypes;
var l = c2 ? c2.emptyScript : "";
var p = a.reactiveElementPolyfillSupport;
var d = (t5, s5) => t5;
var u = { toAttribute(t5, s5) {
switch (s5) {
case Boolean:
t5 = t5 ? l : null;
break;
case Object:
case Array:
t5 = null == t5 ? t5 : JSON.stringify(t5);
}
return t5;
}, fromAttribute(t5, s5) {
let i5 = t5;
switch (s5) {
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, s5) => !i2(t5, s5);
var b = { attribute: true, type: String, converter: u, reflect: false, useDefault: false, hasChanged: f };
Symbol.metadata ??= Symbol("metadata"), a.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
var y = 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, s5 = b) {
if (s5.state && (s5.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t5) && ((s5 = Object.create(s5)).wrapped = true), this.elementProperties.set(t5, s5), !s5.noAccessor) {
const i5 = Symbol(), h4 = this.getPropertyDescriptor(t5, i5, s5);
void 0 !== h4 && e2(this.prototype, t5, h4);
}
}
static getPropertyDescriptor(t5, s5, i5) {
const { get: e6, set: r6 } = h(this.prototype, t5) ?? { get() {
return this[s5];
}, set(t6) {
this[s5] = t6;
} };
return { get: e6, set(s6) {
const h4 = e6?.call(this);
r6?.call(this, s6), this.requestUpdate(t5, h4, i5);
}, configurable: true, enumerable: true };
}
static getPropertyOptions(t5) {
return this.elementProperties.get(t5) ?? b;
}
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, s5 = [...r2(t6), ...o2(t6)];
for (const i5 of s5) this.createProperty(i5, t6[i5]);
}
const t5 = this[Symbol.metadata];
if (null !== t5) {
const s5 = litPropertyMetadata.get(t5);
if (void 0 !== s5) for (const [t6, i5] of s5) this.elementProperties.set(t6, i5);
}
this._$Eh = /* @__PURE__ */ new Map();
for (const [t6, s5] of this.elementProperties) {
const i5 = this._$Eu(t6, s5);
void 0 !== i5 && this._$Eh.set(i5, t6);
}
this.elementStyles = this.finalizeStyles(this.styles);
}
static finalizeStyles(s5) {
const i5 = [];
if (Array.isArray(s5)) {
const e6 = new Set(s5.flat(1 / 0).reverse());
for (const s6 of e6) i5.unshift(c(s6));
} else void 0 !== s5 && i5.push(c(s5));
return i5;
}
static _$Eu(t5, s5) {
const i5 = s5.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(), s5 = this.constructor.elementProperties;
for (const i5 of s5.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, s5, i5) {
this._$AK(t5, i5);
}
_$ET(t5, s5) {
const i5 = this.constructor.elementProperties.get(t5), e6 = this.constructor._$Eu(t5, i5);
if (void 0 !== e6 && true === i5.reflect) {
const h4 = (void 0 !== i5.converter?.toAttribute ? i5.converter : u).toAttribute(s5, i5.type);
this._$Em = t5, null == h4 ? this.removeAttribute(e6) : this.setAttribute(e6, h4), this._$Em = null;
}
}
_$AK(t5, s5) {
const i5 = this.constructor, e6 = i5._$Eh.get(t5);
if (void 0 !== e6 && this._$Em !== e6) {
const t6 = i5.getPropertyOptions(e6), h4 = "function" == typeof t6.converter ? { fromAttribute: t6.converter } : void 0 !== t6.converter?.fromAttribute ? t6.converter : u;
this._$Em = e6, this[e6] = h4.fromAttribute(s5, t6.type) ?? this._$Ej?.get(e6) ?? null, this._$Em = null;
}
}
requestUpdate(t5, s5, i5) {
if (void 0 !== t5) {
const e6 = this.constructor, h4 = this[t5];
if (i5 ??= e6.getPropertyOptions(t5), !((i5.hasChanged ?? f)(h4, s5) || i5.useDefault && i5.reflect && h4 === this._$Ej?.get(t5) && !this.hasAttribute(e6._$Eu(t5, i5)))) return;
this.C(t5, s5, i5);
}
false === this.isUpdatePending && (this._$ES = this._$EP());
}
C(t5, s5, { useDefault: i5, reflect: e6, wrapped: h4 }, r6) {
i5 && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t5) && (this._$Ej.set(t5, r6 ?? s5 ?? this[t5]), true !== h4 || void 0 !== r6) || (this._$AL.has(t5) || (this.hasUpdated || i5 || (s5 = void 0), this._$AL.set(t5, s5)), true === e6 && this._$Em !== t5 && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t5));
}
async _$EP() {
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, s6] of this._$Ep) this[t7] = s6;
this._$Ep = void 0;
}
const t6 = this.constructor.elementProperties;
if (t6.size > 0) for (const [s6, i5] of t6) {
const { wrapped: t7 } = i5, e6 = this[s6];
true !== t7 || this._$AL.has(s6) || void 0 === e6 || this.C(s6, void 0, i5, e6);
}
}
let t5 = false;
const s5 = this._$AL;
try {
t5 = this.shouldUpdate(s5), t5 ? (this.willUpdate(s5), this._$EO?.forEach((t6) => t6.hostUpdate?.()), this.update(s5)) : this._$EM();
} catch (s6) {
throw t5 = false, this._$EM(), s6;
}
t5 && this._$AE(s5);
}
willUpdate(t5) {
}
_$AE(t5) {
this._$EO?.forEach((t6) => t6.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t5)), this.updated(t5);
}
_$EM() {
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
}
get updateComplete() {
return this.getUpdateComplete();
}
getUpdateComplete() {
return this._$ES;
}
shouldUpdate(t5) {
return true;
}
update(t5) {
this._$Eq &&= this._$Eq.forEach((t6) => this._$ET(t6, this[t6])), this._$EM();
}
updated(t5) {
}
firstUpdated(t5) {
}
};
y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[d("elementProperties")] = /* @__PURE__ */ new Map(), y[d("finalized")] = /* @__PURE__ */ new Map(), p?.({ ReactiveElement: y }), (a.reactiveElementVersions ??= []).push("2.1.0");
// node_modules/lit-html/lit-html.js
var t2 = globalThis;
var i3 = t2.trustedTypes;
var s2 = i3 ? i3.createPolicy("lit-html", { createHTML: (t5) => t5 }) : void 0;
var e3 = "$lit$";
var h2 = `lit$${Math.random().toFixed(9).slice(2)}$`;
var o3 = "?" + h2;
var n3 = `<${o3}>`;
var r3 = document;
var l2 = () => r3.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, ...s5) => ({ _$litType$: t5, strings: i5, values: s5 });
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 = r3.createTreeWalker(r3, 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 s5 = t5.length - 1, o7 = [];
let r6, l4 = 2 === i5 ? "<svg>" : 3 === i5 ? "<math>" : "", c5 = f2;
for (let i6 = 0; i6 < s5; i6++) {
const s6 = t5[i6];
let a4, u4, d4 = -1, y4 = 0;
for (; y4 < s6.length && (c5.lastIndex = y4, u4 = c5.exec(s6), null !== u4); ) y4 = c5.lastIndex, c5 === f2 ? "!--" === u4[1] ? c5 = v : void 0 !== u4[1] ? c5 = _ : void 0 !== u4[2] ? ($.test(u4[2]) && (r6 = RegExp("</" + u4[2], "g")), c5 = m) : void 0 !== u4[3] && (c5 = m) : c5 === m ? ">" === u4[0] ? (c5 = r6 ?? 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, r6 = void 0);
const x3 = c5 === m && t5[i6 + 1].startsWith("/>") ? " " : "";
l4 += c5 === f2 ? s6 + n3 : d4 >= 0 ? (o7.push(a4), s6.slice(0, d4) + e3 + s6.slice(d4) + h2 + x3) : s6 + h2 + (-2 === d4 ? i6 : x3);
}
return [P(t5, l4 + (t5[s5] || "<?>") + (2 === i5 ? "</svg>" : 3 === i5 ? "</math>" : "")), o7];
};
var N = class _N2 {
constructor({ strings: t5, _$litType$: s5 }, n6) {
let r6;
this.parts = [];
let c5 = 0, a4 = 0;
const u4 = t5.length - 1, d4 = this.parts, [f4, v3] = V(t5, s5);
if (this.el = _N2.createElement(f4, n6), C.currentNode = this.el.content, 2 === s5 || 3 === s5) {
const t6 = this.el.content.firstChild;
t6.replaceWith(...t6.childNodes);
}
for (; null !== (r6 = C.nextNode()) && d4.length < u4; ) {
if (1 === r6.nodeType) {
if (r6.hasAttributes()) for (const t6 of r6.getAttributeNames()) if (t6.endsWith(e3)) {
const i5 = v3[a4++], s6 = r6.getAttribute(t6).split(h2), e6 = /([.?@])?(.*)/.exec(i5);
d4.push({ type: 1, index: c5, name: e6[2], strings: s6, ctor: "." === e6[1] ? H : "?" === e6[1] ? I : "@" === e6[1] ? L : k }), r6.removeAttribute(t6);
} else t6.startsWith(h2) && (d4.push({ type: 6, index: c5 }), r6.removeAttribute(t6));
if ($.test(r6.tagName)) {
const t6 = r6.textContent.split(h2), s6 = t6.length - 1;
if (s6 > 0) {
r6.textContent = i3 ? i3.emptyScript : "";
for (let i5 = 0; i5 < s6; i5++) r6.append(t6[i5], l2()), C.nextNode(), d4.push({ type: 2, index: ++c5 });
r6.append(t6[s6], l2());
}
}
} else if (8 === r6.nodeType) if (r6.data === o3) d4.push({ type: 2, index: c5 });
else {
let t6 = -1;
for (; -1 !== (t6 = r6.data.indexOf(h2, t6 + 1)); ) d4.push({ type: 7, index: c5 }), t6 += h2.length - 1;
}
c5++;
}
}
static createElement(t5, i5) {
const s5 = r3.createElement("template");
return s5.innerHTML = t5, s5;
}
};
function S2(t5, i5, s5 = t5, e6) {
if (i5 === T) return i5;
let h4 = void 0 !== e6 ? s5._$Co?.[e6] : s5._$Cl;
const o7 = c3(i5) ? void 0 : i5._$litDirective$;
return h4?.constructor !== o7 && (h4?._$AO?.(false), void 0 === o7 ? h4 = void 0 : (h4 = new o7(t5), h4._$AT(t5, s5, e6)), void 0 !== e6 ? (s5._$Co ??= [])[e6] = h4 : s5._$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: s5 } = this._$AD, e6 = (t5?.creationScope ?? r3).importNode(i5, true);
C.currentNode = e6;
let h4 = C.nextNode(), o7 = 0, n6 = 0, l4 = s5[0];
for (; void 0 !== l4; ) {
if (o7 === 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 = s5[++n6];
}
o7 !== l4?.index && (h4 = C.nextNode(), o7++);
}
return C.currentNode = r3, e6;
}
p(t5) {
let i5 = 0;
for (const s5 of this._$AV) void 0 !== s5 && (void 0 !== s5.strings ? (s5._$AI(t5, s5, i5), i5 += s5.strings.length - 2) : s5._$AI(t5[i5])), i5++;
}
};
var R = class _R2 {
get _$AU() {
return this._$AM?._$AU ?? this._$Cv;
}
constructor(t5, i5, s5, e6) {
this.type = 2, this._$AH = E, this._$AN = void 0, this._$AA = t5, this._$AB = i5, this._$AM = s5, 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(r3.createTextNode(t5)), this._$AH = t5;
}
$(t5) {
const { values: i5, _$litType$: s5 } = t5, e6 = "number" == typeof s5 ? this._$AC(t5) : (void 0 === s5.el && (s5.el = N.createElement(P(s5.h, s5.h[0]), this.options)), s5);
if (this._$AH?._$AD === e6) this._$AH.p(i5);
else {
const t6 = new M(e6, this), s6 = t6.u(this.options);
t6.p(i5), this.T(s6), 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 s5, e6 = 0;
for (const h4 of t5) e6 === i5.length ? i5.push(s5 = new _R2(this.O(l2()), this.O(l2()), this, this.options)) : s5 = i5[e6], s5._$AI(h4), e6++;
e6 < i5.length && (this._$AR(s5 && s5._$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, s5, e6, h4) {
this.type = 1, this._$AH = E, this._$AN = void 0, this.element = t5, this.name = i5, this._$AM = e6, this.options = h4, s5.length > 2 || "" !== s5[0] || "" !== s5[1] ? (this._$AH = Array(s5.length - 1).fill(new String()), this.strings = s5) : this._$AH = E;
}
_$AI(t5, i5 = this, s5, e6) {
const h4 = this.strings;
let o7 = false;
if (void 0 === h4) t5 = S2(this, t5, i5, 0), o7 = !c3(t5) || t5 !== this._$AH && t5 !== T, o7 && (this._$AH = t5);
else {
const e7 = t5;
let n6, r6;
for (t5 = h4[0], n6 = 0; n6 < h4.length - 1; n6++) r6 = S2(this, e7[s5 + n6], i5, n6), r6 === T && (r6 = this._$AH[n6]), o7 ||= !c3(r6) || r6 !== this._$AH[n6], r6 === E ? t5 = E : t5 !== E && (t5 += (r6 ?? "") + h4[n6 + 1]), this._$AH[n6] = r6;
}
o7 && !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, s5, e6, h4) {
super(t5, i5, s5, e6, h4), this.type = 5;
}
_$AI(t5, i5 = this) {
if ((t5 = S2(this, t5, i5, 0) ?? E) === T) return;
const s5 = this._$AH, e6 = t5 === E && s5 !== E || t5.capture !== s5.capture || t5.once !== s5.once || t5.passive !== s5.passive, h4 = t5 !== E && (s5 === E || e6);
e6 && this.element.removeEventListener(this.name, this, s5), 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, s5) {
this.element = t5, this.type = 6, this._$AN = void 0, this._$AM = i5, this.options = s5;
}
get _$AU() {
return this._$AM._$AU;
}
_$AI(t5) {
S2(this, t5);
}
};
var j = t2.litHtmlPolyfillSupport;
j?.(N, R), (t2.litHtmlVersions ??= []).push("3.3.0");
var B = (t5, i5, s5) => {
const e6 = s5?.renderBefore ?? i5;
let h4 = e6._$litPart$;
if (void 0 === h4) {
const t6 = s5?.renderBefore ?? null;
e6._$litPart$ = h4 = new R(i5.insertBefore(l2(), t6), t6, void 0, s5 ?? {});
}
return h4._$AI(t5), h4;
};
// node_modules/lit-element/lit-element.js
var s3 = globalThis;
var i4 = class extends y {
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 r6 = this.render();
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t5), this._$Do = B(r6, this.renderRoot, this.renderOptions);
}
connectedCallback() {
super.connectedCallback(), this._$Do?.setConnected(true);
}
disconnectedCallback() {
super.disconnectedCallback(), this._$Do?.setConnected(false);
}
render() {
return T;
}
};
i4._$litElement$ = true, i4["finalized"] = true, s3.litElementHydrateSupport?.({ LitElement: i4 });
var o4 = s3.litElementPolyfillSupport;
o4?.({ LitElement: i4 });
(s3.litElementVersions ??= []).push("4.2.0");
// node_modules/@webwriter/lit/index.js
var __create2 = Object.create;
var __defProp2 = Object.defineProperty;
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
var __knownSymbol2 = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
var __typeError2 = (msg) => {
throw TypeError(msg);
};
var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
var __name2 = (target, value) => __defProp2(target, "name", { value, configurable: true });
var __decoratorStart2 = (base) => [, , , __create2(base?.[__knownSymbol2("metadata")] ?? null)];
var __decoratorStrings2 = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"];
var __expectFn2 = (fn) => fn !== void 0 && typeof fn !== "function" ? __typeError2("Function expected") : fn;
var __decoratorContext2 = (kind, name, done, metadata, fns) => ({ kind: __decoratorStrings2[kind], name, metadata, addInitializer: (fn) => done._ ? __typeError2("Already initialized") : fns.push(__expectFn2(fn || null)) });
var __decoratorMetadata2 = (array, target) => __defNormalProp2(target, __knownSymbol2("metadata"), array[3]);
var __runInitializers2 = (array, flags, self, value) => {
for (var i5 = 0, fns = array[flags >> 1], n52 = fns && fns.length; i5 < n52; i5++) flags & 1 ? fns[i5].call(self) : value = fns[i5].call(self, value);
return value;
};
var __decorateElement2 = (array, flags, name, decorators, target, extra) => {
var fn, it, done, ctx, access, k22 = flags & 7, s42 = !!(flags & 8), p32 = !!(flags & 16);
var j22 = k22 > 3 ? array.length + 1 : k22 ? s42 ? 1 : 2 : 0, key = __decoratorStrings2[k22 + 5];
var initializers = k22 > 3 && (array[j22 - 1] = []), extraInitializers = array[j22] || (array[j22] = []);
var desc = k22 && (!p32 && !s42 && (target = target.prototype), k22 < 5 && (k22 > 3 || !p32) && __getOwnPropDesc2(k22 < 4 ? target : { get [name]() {
return __privateGet2(this, extra);
}, set [name](x22) {
return __privateSet2(this, extra, x22);
} }, name));
k22 ? p32 && k22 < 4 && __name2(extra, (k22 > 2 ? "set " : k22 > 1 ? "get " : "") + name) : __name2(target, name);
for (var i5 = decorators.length - 1; i5 >= 0; i5--) {
ctx = __decoratorContext2(k22, name, done = {}, array[3], extraInitializers);
if (k22) {
ctx.static = s42, ctx.private = p32, access = ctx.access = { has: p32 ? (x22) => __privateIn2(target, x22) : (x22) => name in x22 };
if (k22 ^ 3) access.get = p32 ? (x22) => (k22 ^ 1 ? __privateGet2 : __privateMethod2)(x22, target, k22 ^ 4 ? extra : desc.get) : (x22) => x22[name];
if (k22 > 2) access.set = p32 ? (x22, y32) => __privateSet2(x22, target, y32, k22 ^ 4 ? extra : desc.set) : (x22, y32) => x22[name] = y32;
}
it = (0, decorators[i5])(k22 ? k22 < 4 ? p32 ? extra : desc[key] : k22 > 4 ? void 0 : { get: desc.get, set: desc.set } : target, ctx), done._ = 1;
if (k22 ^ 4 || it === void 0) __expectFn2(it) && (k22 > 4 ? initializers.unshift(it) : k22 ? p32 ? extra = it : desc[key] = it : target = it);
else if (typeof it !== "object" || it === null) __typeError2("Object expected");
else __expectFn2(fn = it.get) && (desc.get = fn), __expectFn2(fn = it.set) && (desc.set = fn), __expectFn2(fn = it.init) && initializers.unshift(fn);
}
return k22 || __decoratorMetadata2(array, target), desc && __defProp2(target, name, desc), p32 ? k22 ^ 4 ? extra : desc : target;
};
var __publicField2 = (obj, key, value) => __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
var __accessCheck2 = (obj, member, msg) => member.has(obj) || __typeError2("Cannot " + msg);
var __privateIn2 = (member, obj) => Object(obj) !== obj ? __typeError2('Cannot use the "in" operator on this value') : member.has(obj);
var __privateGet2 = (obj, member, getter) => (__accessCheck2(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
var __privateAdd2 = (obj, member, value) => member.has(obj) ? __typeError2("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
var __privateSet2 = (obj, member, value, setter) => (__accessCheck2(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
var __privateMethod2 = (obj, member, method) => (__accessCheck2(obj, member, "access private method"), method);
var t3 = globalThis;
var e4 = t3.ShadowRoot && (void 0 === t3.ShadyCSS || t3.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
var s4 = Symbol();
var o5 = /* @__PURE__ */ new WeakMap();
var n4 = class {
constructor(t32, e52, o62) {
if (this._$cssResult$ = true, o62 !== s4) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
this.cssText = t32, this.t = e52;
}
get styleSheet() {
let t32 = this.o;
const s42 = this.t;
if (e4 && void 0 === t32) {
const e52 = void 0 !== s42 && 1 === s42.length;
e52 && (t32 = o5.get(s42)), void 0 === t32 && ((this.o = t32 = new CSSStyleSheet()).replaceSync(this.cssText), e52 && o5.set(s42, t32));
}
return t32;
}
toString() {
return this.cssText;
}
};
var r4 = (t32) => new n4("string" == typeof t32 ? t32 : t32 + "", void 0, s4);
var S3 = (s42, o62) => {
if (e4) s42.adoptedStyleSheets = o62.map((t32) => t32 instanceof CSSStyleSheet ? t32 : t32.styleSheet);
else for (const e52 of o62) {
const o7 = document.createElement("style"), n52 = t3.litNonce;
void 0 !== n52 && o7.setAttribute("nonce", n52), o7.textContent = e52.cssText, s42.appendChild(o7);
}
};
var c4 = e4 ? (t32) => t32 : (t32) => t32 instanceof CSSStyleSheet ? ((t42) => {
let e52 = "";
for (const s42 of t42.cssRules) e52 += s42.cssText;
return r4(e52);
})(t32) : t32;
var { is: i22, defineProperty: e22, getOwnPropertyDescriptor: h3, getOwnPropertyNames: r22, getOwnPropertySymbols: o22, getPrototypeOf: n22 } = Object;
var a3 = globalThis;
var c22 = a3.trustedTypes;
var l3 = c22 ? c22.emptyScript : "";
var p3 = a3.reactiveElementPolyfillSupport;
var d3 = (t32, s42) => t32;
var u3 = { toAttribute(t32, s42) {
switch (s42) {
case Boolean:
t32 = t32 ? l3 : null;
break;
case Object:
case Array:
t32 = null == t32 ? t32 : JSON.stringify(t32);
}
return t32;
}, fromAttribute(t32, s42) {
let i5 = t32;
switch (s42) {
case Boolean:
i5 = null !== t32;
break;
case Number:
i5 = null === t32 ? null : Number(t32);
break;
case Object:
case Array:
try {
i5 = JSON.parse(t32);
} catch (t42) {
i5 = null;
}
}
return i5;
} };
var f3 = (t32, s42) => !i22(t32, s42);
var b3 = { attribute: true, type: String, converter: u3, reflect: false, useDefault: false, hasChanged: f3 };
Symbol.metadata ??= Symbol("metadata"), a3.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
var y3 = class extends HTMLElement {
static addInitializer(t32) {
this._$Ei(), (this.l ??= []).push(t32);
}
static get observedAttributes() {
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
}
static createProperty(t32, s42 = b3) {
if (s42.state && (s42.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t32) && ((s42 = Object.create(s42)).wrapped = true), this.elementProperties.set(t32, s42), !s42.noAccessor) {
const i5 = Symbol(), h32 = this.getPropertyDescriptor(t32, i5, s42);
void 0 !== h32 && e22(this.prototype, t32, h32);
}
}
static getPropertyDescriptor(t32, s42, i5) {
const { get: e52, set: r52 } = h3(this.prototype, t32) ?? { get() {
return this[s42];
}, set(t42) {
this[s42] = t42;
} };
return { get: e52, set(s5) {
const h32 = e52?.call(this);
r52?.call(this, s5), this.requestUpdate(t32, h32, i5);
}, configurable: true, enumerable: true };
}
static getPropertyOptions(t32) {
return this.elementProperties.get(t32) ?? b3;
}
static _$Ei() {
if (this.hasOwnProperty(d3("elementProperties"))) return;
const t32 = n22(this);
t32.finalize(), void 0 !== t32.l && (this.l = [...t32.l]), this.elementProperties = new Map(t32.elementProperties);
}
static finalize() {
if (this.hasOwnProperty(d3("finalized"))) return;
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d3("properties"))) {
const t42 = this.properties, s42 = [...r22(t42), ...o22(t42)];
for (const i5 of s42) this.createProperty(i5, t42[i5]);
}
const t32 = this[Symbol.metadata];
if (null !== t32) {
const s42 = litPropertyMetadata.get(t32);
if (void 0 !== s42) for (const [t42, i5] of s42) this.elementProperties.set(t42, i5);
}
this._$Eh = /* @__PURE__ */ new Map();
for (const [t42, s42] of this.elementProperties) {
const i5 = this._$Eu(t42, s42);
void 0 !== i5 && this._$Eh.set(i5, t42);
}
this.elementStyles = this.finalizeStyles(this.styles);
}
static finalizeStyles(s42) {
const i5 = [];
if (Array.isArray(s42)) {
const e52 = new Set(s42.flat(1 / 0).reverse());
for (const s5 of e52) i5.unshift(c4(s5));
} else void 0 !== s42 && i5.push(c4(s42));
return i5;
}
static _$Eu(t32, s42) {
const i5 = s42.attribute;
return false === i5 ? void 0 : "string" == typeof i5 ? i5 : "string" == typeof t32 ? t32.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((t32) => this.enableUpdating = t32), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t32) => t32(this));
}
addController(t32) {
(this._$EO ??= /* @__PURE__ */ new Set()).add(t32), void 0 !== this.renderRoot && this.isConnected && t32.hostConnected?.();
}
removeController(t32) {
this._$EO?.delete(t32);
}
_$E_() {
const t32 = /* @__PURE__ */ new Map(), s42 = this.constructor.elementProperties;
for (const i5 of s42.keys()) this.hasOwnProperty(i5) && (t32.set(i5, this[i5]), delete this[i5]);
t32.size > 0 && (this._$Ep = t32);
}
createRenderRoot() {
const t32 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
return S3(t32, this.constructor.elementStyles), t32;
}
connectedCallback() {
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t32) => t32.hostConnected?.());
}
enableUpdating(t32) {
}
disconnectedCallback() {
this._$EO?.forEach((t32) => t32.hostDisconnected?.());
}
attributeChangedCallback(t32, s42, i5) {
this._$AK(t32, i5);
}
_$ET(t32, s42) {
const i5 = this.constructor.elementProperties.get(t32), e52 = this.constructor._$Eu(t32, i5);
if (void 0 !== e52 && true === i5.reflect) {
const h32 = (void 0 !== i5.converter?.toAttribute ? i5.converter : u3).toAttribute(s42, i5.type);
this._$Em = t32, null == h32 ? this.removeAttribute(e52) : this.setAttribute(e52, h32), this._$Em = null;
}
}
_$AK(t32, s42) {
const i5 = this.constructor, e52 = i5._$Eh.get(t32);
if (void 0 !== e52 && this._$Em !== e52) {
const t42 = i5.getPropertyOptions(e52), h32 = "function" == typeof t42.converter ? { fromAttribute: t42.converter } : void 0 !== t42.converter?.fromAttribute ? t42.converter : u3;
this._$Em = e52, this[e52] = h32.fromAttribute(s42, t42.type) ?? this._$Ej?.get(e52) ?? null, this._$Em = null;
}
}
requestUpdate(t32, s42, i5) {
if (void 0 !== t32) {
const e52 = this.constructor, h32 = this[t32];
if (i5 ??= e52.getPropertyOptions(t32), !((i5.hasChanged ?? f3)(h32, s42) || i5.useDefault && i5.reflect && h32 === this._$Ej?.get(t32) && !this.hasAttribute(e52._$Eu(t32, i5)))) return;
this.C(t32, s42, i5);
}
false === this.isUpdatePending && (this._$ES = this._$EP());
}
C(t32, s42, { useDefault: i5, reflect: e52, wrapped: h32 }, r52) {
i5 && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t32) && (this._$Ej.set(t32, r52 ?? s42 ?? this[t32]), true !== h32 || void 0 !== r52) || (this._$AL.has(t32) || (this.hasUpdated || i5 || (s42 = void 0), this._$AL.set(t32, s42)), true === e52 && this._$Em !== t32 && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t32));
}
async _$EP() {
this.isUpdatePending = true;
try {
await this._$ES;
} catch (t42) {
Promise.reject(t42);
}
const t32 = this.scheduleUpdate();
return null != t32 && await t32, !this.isUpdatePending;
}
scheduleUpdate() {
return this.performUpdate();
}
performUpdate() {
if (!this.isUpdatePending) return;
if (!this.hasUpdated) {
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
for (const [t5, s5] of this._$Ep) this[t5] = s5;
this._$Ep = void 0;
}
const t42 = this.constructor.elementProperties;
if (t42.size > 0) for (const [s5, i5] of t42) {
const { wrapped: t5 } = i5, e52 = this[s5];
true !== t5 || this._$AL.has(s5) || void 0 === e52 || this.C(s5, void 0, i5, e52);
}
}
let t32 = false;
const s42 = this._$AL;
try {
t32 = this.shouldUpdate(s42), t32 ? (this.willUpdate(s42), this._$EO?.forEach((t42) => t42.hostUpdate?.()), this.update(s42)) : this._$EM();
} catch (s5) {
throw t32 = false, this._$EM(), s5;
}
t32 && this._$AE(s42);
}
willUpdate(t32) {
}
_$AE(t32) {
this._$EO?.forEach((t42) => t42.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t32)), this.updated(t32);
}
_$EM() {
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
}
get updateComplete() {
return this.getUpdateComplete();
}
getUpdateComplete() {
return this._$ES;
}
shouldUpdate(t32) {
return true;
}
update(t32) {
this._$Eq &&= this._$Eq.forEach((t42) => this._$ET(t42, this[t42])), this._$EM();
}
updated(t32) {
}
firstUpdated(t32) {
}
};
y3.elementStyles = [], y3.shadowRootOptions = { mode: "open" }, y3[d3("elementProperties")] = /* @__PURE__ */ new Map(), y3[d3("finalized")] = /* @__PURE__ */ new Map(), p3?.({ ReactiveElement: y3 }), (a3.reactiveElementVersions ??= []).push("2.1.0");
var t22 = globalThis;
var i32 = t22.trustedTypes;
var s22 = i32 ? i32.createPolicy("lit-html", { createHTML: (t32) => t32 }) : void 0;
var e32 = "$lit$";
var h22 = `lit$${Math.random().toFixed(9).slice(2)}$`;
var o32 = "?" + h22;
var n32 = `<${o32}>`;
var r32 = document;
var l22 = () => r32.createComment("");
var c32 = (t32) => null === t32 || "object" != typeof t32 && "function" != typeof t32;
var a22 = Array.isArray;
var u22 = (t32) => a22(t32) || "function" == typeof t32?.[Symbol.iterator];
var d22 = "[ \n\f\r]";
var f22 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
var v2 = /-->/g;
var _2 = />/g;
var m2 = RegExp(`>|${d22}(?:([^\\s"'>=/]+)(${d22}*=${d22}*(?:[^
\f\r"'\`<>=]|("|')|))|$)`, "g");
var p22 = /'/g;
var g2 = /"/g;
var $2 = /^(?:script|style|textarea|title)$/i;
var y22 = (t32) => (i5, ...s42) => ({ _$litType$: t32, strings: i5, values: s42 });
var x2 = y22(1);
var b22 = y22(2);
var w2 = y22(3);
var T2 = Symbol.for("lit-noChange");
var E2 = Symbol.for("lit-nothing");
var A2 = /* @__PURE__ */ new WeakMap();
var C2 = r32.createTreeWalker(r32, 129);
function P2(t32, i5) {
if (!a22(t32) || !t32.hasOwnProperty("raw")) throw Error("invalid template strings array");
return void 0 !== s22 ? s22.createHTML(i5) : i5;
}
var V2 = (t32, i5) => {
const s42 = t32.length - 1, o62 = [];
let r52, l32 = 2 === i5 ? "<svg>" : 3 === i5 ? "<math>" : "", c42 = f22;
for (let i6 = 0; i6 < s42; i6++) {
const s5 = t32[i6];
let a32, u32, d32 = -1, y32 = 0;
for (; y32 < s5.length && (c42.lastIndex = y32, u32 = c42.exec(s5), null !== u32); ) y32 = c42.lastIndex, c42 === f22 ? "!--" === u32[1] ? c42 = v2 : void 0 !== u32[1] ? c42 = _2 : void 0 !== u32[2] ? ($2.test(u32[2]) && (r52 = RegExp("</" + u32[2], "g")), c42 = m2) : void 0 !== u32[3] && (c42 = m2) : c42 === m2 ? ">" === u32[0] ? (c42 = r52 ?? f22, d32 = -1) : void 0 === u32[1] ? d32 = -2 : (d32 = c42.lastIndex - u32[2].length, a32 = u32[1], c42 = void 0 === u32[3] ? m2 : '"' === u32[3] ? g2 : p22) : c42 === g2 || c42 === p22 ? c42 = m2 : c42 === v2 || c42 === _2 ? c42 = f22 : (c42 = m2, r52 = void 0);
const x22 = c42 === m2 && t32[i6 + 1].startsWith("/>") ? " " : "";
l32 += c42 === f22 ? s5 + n32 : d32 >= 0 ? (o62.push(a32), s5.slice(0, d32) + e32 + s5.slice(d32) + h22 + x22) : s5 + h22 + (-2 === d32 ? i6 : x22);
}
return [P2(t32, l32 + (t32[s42] || "<?>") + (2 === i5 ? "</svg>" : 3 === i5 ? "</math>" : "")), o62];
};
var N2 = class _N {
constructor({ strings: t32, _$litType$: s42 }, n52) {
let r52;
this.parts = [];
let c42 = 0, a32 = 0;
const u32 = t32.length - 1, d32 = this.parts, [f32, v22] = V2(t32, s42);
if (this.el = _N.createElement(f32, n52), C2.currentNode = this.el.content, 2 === s42 || 3 === s42) {
const t42 = this.el.content.firstChild;
t42.replaceWith(...t42.childNodes);
}
for (; null !== (r52 = C2.nextNode()) && d32.length < u32; ) {
if (1 === r52.nodeType) {
if (r52.hasAttributes()) for (const t42 of r52.getAttributeNames()) if (t42.endsWith(e32)) {
const i5 = v22[a32++], s5 = r52.getAttribute(t42).split(h22), e52 = /([.?@])?(.*)/.exec(i5);
d32.push({ type: 1, index: c42, name: e52[2], strings: s5, ctor: "." === e52[1] ? H2 : "?" === e52[1] ? I2 : "@" === e52[1] ? L2 : k2 }), r52.removeAttribute(t42);
} else t42.startsWith(h22) && (d32.push({ type: 6, index: c42 }), r52.removeAttribute(t42));
if ($2.test(r52.tagName)) {
const t42 = r52.textContent.split(h22), s5 = t42.length - 1;
if (s5 > 0) {
r52.textContent = i32 ? i32.emptyScript : "";
for (let i5 = 0; i5 < s5; i5++) r52.append(t42[i5], l22()), C2.nextNode(), d32.push({ type: 2, index: ++c42 });
r52.append(t42[s5], l22());
}
}
} else if (8 === r52.nodeType) if (r52.data === o32) d32.push({ type: 2, index: c42 });
else {
let t42 = -1;
for (; -1 !== (t42 = r52.data.indexOf(h22, t42 + 1)); ) d32.push({ type: 7, index: c42 }), t42 += h22.length - 1;
}
c42++;
}
}
static createElement(t32, i5) {
const s42 = r32.createElement("template");
return s42.innerHTML = t32, s42;
}
};
function S22(t32, i5, s42 = t32, e52) {
if (i5 === T2) return i5;
let h32 = void 0 !== e52 ? s42._$Co?.[e52] : s42._$Cl;
const o62 = c32(i5) ? void 0 : i5._$litDirective$;
return h32?.constructor !== o62 && (h32?._$AO?.(false), void 0 === o62 ? h32 = void 0 : (h32 = new o62(t32), h32._$AT(t32, s42, e52)), void 0 !== e52 ? (s42._$Co ??= [])[e52] = h32 : s42._$Cl = h32), void 0 !== h32 && (i5 = S22(t32, h32._$AS(t32, i5.values), h32, e52)), i5;
}
var M2 = class {
constructor(t32, i5) {
this._$AV = [], this._$AN = void 0, this._$AD = t32, this._$AM = i5;
}
get parentNode() {
return this._$AM.parentNode;
}
get _$AU() {
return this._$AM._$AU;
}
u(t32) {
const { el: { content: i5 }, parts: s42 } = this._$AD, e52 = (t32?.creationScope ?? r32).importNode(i5, true);
C2.currentNode = e52;
let h32 = C2.nextNode(), o62 = 0, n52 = 0, l32 = s42[0];
for (; void 0 !== l32; ) {
if (o62 === l32.index) {
let i6;
2 === l32.type ? i6 = new R2(h32, h32.nextSibling, this, t32) : 1 === l32.type ? i6 = new l32.ctor(h32, l32.name, l32.strings, this, t32) : 6 === l32.type && (i6 = new z2(h32, this, t32)), this._$AV.push(i6), l32 = s42[++n52];
}
o62 !== l32?.index && (h32 = C2.nextNode(), o62++);
}
return C2.currentNode = r32, e52;
}
p(t32) {
let i5 = 0;
for (const s42 of this._$AV) void 0 !== s42 && (void 0 !== s42.strings ? (s42._$AI(t32, s42, i5), i5 += s42.strings.length - 2) : s42._$AI(t32[i5])), i5++;
}
};
var R2 = class _R {
get _$AU() {
return this._$AM?._$AU ?? this._$Cv;
}
constructor(t32, i5, s42, e52) {
this.type = 2, this._$AH = E2, this._$AN = void 0, this._$AA = t32, this._$AB = i5, this._$AM = s42, this.options = e52, this._$Cv = e52?.isConnected ?? true;
}
get parentNode() {
let t32 = this._$AA.parentNode;
const i5 = this._$AM;
return void 0 !== i5 && 11 === t32?.nodeType && (t32 = i5.parentNode), t32;
}
get startNode() {
return this._$AA;
}
get endNode() {
return this._$AB;
}
_$AI(t32, i5 = this) {
t32 = S22(this, t32, i5), c32(t32) ? t32 === E2 || null == t32 || "" === t32 ? (this._$AH !== E2 && this._$AR(), this._$AH = E2) : t32 !== this._$AH && t32 !== T2 && this._(t32) : void 0 !== t32._$litType$ ? this.$(t32) : void 0 !== t32.nodeType ? this.T(t32) : u22(t32) ? this.k(t32) : this._(t32);
}
O(t32) {
return this._$AA.parentNode.insertBefore(t32, this._$AB);
}
T(t32) {
this._$AH !== t32 && (this._$AR(), this._$AH = this.O(t32));
}
_(t32) {
this._$AH !== E2 && c32(this._$AH) ? this._$AA.nextSibling.data = t32 : this.T(r32.createTextNode(t32)), this._$AH = t32;
}
$(t32) {
const { values: i5, _$litType$: s42 } = t32, e52 = "number" == typeof s42 ? this._$AC(t32) : (void 0 === s42.el && (s42.el = N2.createElement(P2(s42.h, s42.h[0]), this.options)), s42);
if (this._$AH?._$AD === e52) this._$AH.p(i5);
else {
const t42 = new M2(e52, this), s5 = t42.u(this.options);
t42.p(i5), this.T(s5), this._$AH = t42;
}
}
_$AC(t32) {
let i5 = A2.get(t32.strings);
return void 0 === i5 && A2.set(t32.strings, i5 = new N2(t32)), i5;
}
k(t32) {
a22(this._$AH) || (this._$AH = [], this._$AR());
const i5 = this._$AH;
let s42, e52 = 0;
for (const h32 of t32) e52 === i5.length ? i5.push(s42 = new _R(this.O(l22()), this.O(l22()), this, this.options)) : s42 = i5[e52], s42._$AI(h32), e52++;
e52 < i5.length && (this._$AR(s42 && s42._$AB.nextSibling, e52), i5.length = e52);
}
_$AR(t32 = this._$AA.nextSibling, i5) {
for (this._$AP?.(false, true, i5); t32 && t32 !== this._$AB; ) {
const i6 = t32.nextSibling;
t32.remove(), t32 = i6;
}
}
setConnected(t32) {
void 0 === this._$AM && (this._$Cv = t32, this._$AP?.(t32));
}
};
var k2 = class {
get tagName() {
return this.element.tagName;
}
get _$AU() {
return this._$AM._$AU;
}
constructor(t32, i5, s42, e52, h32) {
this.type = 1, this._$AH = E2, this._$AN = void 0, this.element = t32, this.name = i5, this._$AM = e52, this.options = h32, s42.length > 2 || "" !== s42[0] || "" !== s42[1] ? (this._$AH = Array(s42.length - 1).fill(new String()), this.strings = s42) : this._$AH = E2;
}
_$AI(t32, i5 = this, s42, e52) {
const h32 = this.strings;
let o62 = false;
if (void 0 === h32) t32 = S22(this, t32, i5, 0), o62 = !c32(t32) || t32 !== this._$AH && t32 !== T2, o62 && (this._$AH = t32);
else {
const e6 = t32;
let n52, r52;
for (t32 = h32[0], n52 = 0; n52 < h32.length - 1; n52++) r52 = S22(this, e6[s42 + n52], i5, n52), r52 === T2 && (r52 = this._$AH[n52]), o62 ||= !c32(r52) || r52 !== this._$AH[n52], r52 === E2 ? t32 = E2 : t32 !== E2 && (t32 += (r52 ?? "") + h32[n52 + 1]), this._$AH[n52] = r52;
}
o62 && !e52 && this.j(t32);
}
j(t32) {
t32 === E2 ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t32 ?? "");
}
};
var H2 = class extends k2 {
constructor() {
super(...arguments), this.type = 3;
}
j(t32) {
this.element[this.name] = t32 === E2 ? void 0 : t32;
}
};
var I2 = class extends k2 {
constructor() {
super(...arguments), this.type = 4;
}
j(t32) {
this.element.toggleAttribute(this.name, !!t32 && t32 !== E2);
}
};
var L2 = class extends k2 {
constructor(t32, i5, s42, e52, h32) {
super(t32, i5, s42, e52, h32), this.type = 5;
}
_$AI(t32, i5 = this) {
if ((t32 = S22(this, t32, i5, 0) ?? E2) === T2) return;
const s42 = this._$AH, e52 = t32 === E2 && s42 !== E2 || t32.capture !== s42.capture || t32.once !== s42.once || t32.passive !== s42.passive, h