UNPKG

@webwriter/geometry-cloze

Version:

Create and view geometry exercises with coloring, styling and labeling options.

1,163 lines (1,161 loc) 382 kB
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, self2, value) => { for (var i5 = 0, fns = array[flags >> 1], n9 = fns && fns.length; i5 < n9; i5++) flags & 1 ? fns[i5].call(self2) : value = fns[i5].call(self2, value); return value; }; var __decorateElement = (array, flags, name, decorators, target, extra) => { var fn, it, done, ctx, access, k3 = flags & 7, s3 = !!(flags & 8), p3 = !!(flags & 16); var j3 = k3 > 3 ? array.length + 1 : k3 ? s3 ? 1 : 2 : 0, key = __decoratorStrings[k3 + 5]; var initializers = k3 > 3 && (array[j3 - 1] = []), extraInitializers = array[j3] || (array[j3] = []); var desc = k3 && (!p3 && !s3 && (target = target.prototype), k3 < 5 && (k3 > 3 || !p3) && __getOwnPropDesc(k3 < 4 ? target : { get [name]() { return __privateGet(this, extra); }, set [name](x3) { return __privateSet(this, extra, x3); } }, name)); k3 ? p3 && 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 = s3, ctx.private = p3, access = ctx.access = { has: p3 ? (x3) => __privateIn(target, x3) : (x3) => name in x3 }; if (k3 ^ 3) access.get = p3 ? (x3) => (k3 ^ 1 ? __privateGet : __privateMethod)(x3, target, k3 ^ 4 ? extra : desc.get) : (x3) => x3[name]; if (k3 > 2) access.set = p3 ? (x3, y3) => __privateSet(x3, target, y3, k3 ^ 4 ? extra : desc.set) : (x3, y3) => x3[name] = y3; } it = (0, decorators[i5])(k3 ? k3 < 4 ? p3 ? 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 ? p3 ? 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), p3 ? 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/@webcomponents/scoped-custom-element-registry/scoped-custom-element-registry.min.js (function() { "use strict"; function h7(b3) { var c7 = 0; return function() { return c7 < b3.length ? { done: false, value: b3[c7++] } : { done: true }; }; } function l3(b3) { var c7 = "undefined" != typeof Symbol && Symbol.iterator && b3[Symbol.iterator]; return c7 ? c7.call(b3) : { next: h7(b3) }; } function m3(b3) { if (!(b3 instanceof Array)) { b3 = l3(b3); for (var c7, a3 = []; !(c7 = b3.next()).done; ) a3.push(c7.value); b3 = a3; } return b3; } var n9 = "function" == typeof Object.create ? Object.create : function(b3) { function c7() { } c7.prototype = b3; return new c7(); }; function p3(b3) { b3 = ["object" == typeof globalThis && globalThis, b3, "object" == typeof window && window, "object" == typeof self && self, "object" == typeof global && global]; for (var c7 = 0; c7 < b3.length; ++c7) { var a3 = b3[c7]; if (a3 && a3.Math == Math) return a3; } throw Error("Cannot find global object"); } var q3 = p3(this), r9 = function() { function b3() { function a3() { } new a3(); Reflect.construct(a3, [], function() { }); return new a3() instanceof a3; } if ("undefined" != typeof Reflect && Reflect.construct) { if (b3()) return Reflect.construct; var c7 = Reflect.construct; return function(a3, d3, e8) { a3 = c7(a3, d3); e8 && Reflect.setPrototypeOf(a3, e8.prototype); return a3; }; } return function(a3, d3, e8) { void 0 === e8 && (e8 = a3); e8 = n9(e8.prototype || Object.prototype); return Function.prototype.apply.call(a3, e8, d3) || e8; }; }(), t7; if ("function" == typeof Object.setPrototypeOf) t7 = Object.setPrototypeOf; else { var u3; a: { var v3 = { a: true }, w3 = {}; try { w3.__proto__ = v3; u3 = w3.a; break a; } catch (b3) { } u3 = false; } t7 = u3 ? function(b3, c7) { b3.__proto__ = c7; if (b3.__proto__ !== c7) throw new TypeError(b3 + " is not extensible"); return b3; } : null; } var x3 = t7; if (!ShadowRoot.prototype.createElement) { var y3 = window.HTMLElement, A = window.customElements.define, B3 = window.customElements.get, C = window.customElements, D3 = /* @__PURE__ */ new WeakMap(), E3 = /* @__PURE__ */ new WeakMap(), F3 = /* @__PURE__ */ new WeakMap(), G3 = /* @__PURE__ */ new WeakMap(); window.CustomElementRegistry = function() { this.l = /* @__PURE__ */ new Map(); this.o = /* @__PURE__ */ new Map(); this.i = /* @__PURE__ */ new Map(); this.h = /* @__PURE__ */ new Map(); }; window.CustomElementRegistry.prototype.define = function(b3, c7) { b3 = b3.toLowerCase(); if (void 0 !== this.j(b3)) throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "` + b3 + '" has already been used with this registry'); if (void 0 !== this.o.get(c7)) throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry"); var a3 = c7.prototype.attributeChangedCallback, d3 = new Set(c7.observedAttributes || []); H(c7, d3, a3); a3 = { g: c7, connectedCallback: c7.prototype.connectedCallback, disconnectedCallback: c7.prototype.disconnectedCallback, adoptedCallback: c7.prototype.adoptedCallback, attributeChangedCallback: a3, formAssociated: c7.formAssociated, formAssociatedCallback: c7.prototype.formAssociatedCallback, formDisabledCallback: c7.prototype.formDisabledCallback, formResetCallback: c7.prototype.formResetCallback, formStateRestoreCallback: c7.prototype.formStateRestoreCallback, observedAttributes: d3 }; this.l.set(b3, a3); this.o.set(c7, a3); d3 = B3.call(C, b3); d3 || (d3 = I3(b3), A.call(C, b3, d3)); this === window.customElements && (F3.set(c7, a3), a3.s = d3); if (d3 = this.h.get(b3)) { this.h.delete(b3); d3 = l3(d3); for (var e8 = d3.next(); !e8.done; e8 = d3.next()) e8 = e8.value, E3.delete(e8), J(e8, a3, true); } a3 = this.i.get(b3); void 0 !== a3 && (a3.resolve(c7), this.i.delete(b3)); return c7; }; window.CustomElementRegistry.prototype.upgrade = function() { K3.push(this); C.upgrade.apply(C, arguments); K3.pop(); }; window.CustomElementRegistry.prototype.get = function(b3) { var c7; return null == (c7 = this.l.get(b3)) ? void 0 : c7.g; }; window.CustomElementRegistry.prototype.j = function(b3) { return this.l.get(b3); }; window.CustomElementRegistry.prototype.whenDefined = function(b3) { var c7 = this.j(b3); if (void 0 !== c7) return Promise.resolve(c7.g); var a3 = this.i.get(b3); void 0 === a3 && (a3 = {}, a3.promise = new Promise(function(d3) { return a3.resolve = d3; }), this.i.set(b3, a3)); return a3.promise; }; window.CustomElementRegistry.prototype.m = function(b3, c7, a3) { var d3 = this.h.get(c7); d3 || this.h.set(c7, d3 = /* @__PURE__ */ new Set()); a3 ? d3.add(b3) : d3.delete(b3); }; var L; window.HTMLElement = function() { var b3 = L; if (b3) return L = void 0, b3; var c7 = F3.get(this.constructor); if (!c7) throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)"); b3 = Reflect.construct(y3, [], c7.s); Object.setPrototypeOf(b3, this.constructor.prototype); D3.set(b3, c7); return b3; }; window.HTMLElement.prototype = y3.prototype; var I3 = function(b3) { function c7() { var a3 = Reflect.construct(y3, [], this.constructor); Object.setPrototypeOf(a3, HTMLElement.prototype); a: { var d3 = a3.getRootNode(); if (!(d3 === document || d3 instanceof ShadowRoot)) { d3 = K3[K3.length - 1]; if (d3 instanceof CustomElementRegistry) { var e8 = d3; break a; } d3 = d3.getRootNode(); d3 === document || d3 instanceof ShadowRoot || (d3 = (null == (e8 = G3.get(d3)) ? void 0 : e8.getRootNode()) || document); } e8 = d3.customElements; } e8 = e8 || window.customElements; (d3 = e8.j(b3)) ? J(a3, d3) : E3.set(a3, e8); return a3; } q3.Object.defineProperty(c7, "formAssociated", { configurable: true, enumerable: true, get: function() { return true; } }); c7.prototype.connectedCallback = function() { var a3 = D3.get(this); a3 ? a3.connectedCallback && a3.connectedCallback.apply(this, arguments) : E3.get(this).m(this, b3, true); }; c7.prototype.disconnectedCallback = function() { var a3 = D3.get(this); a3 ? a3.disconnectedCallback && a3.disconnectedCallback.apply(this, arguments) : E3.get(this).m(this, b3, false); }; c7.prototype.adoptedCallback = function() { var a3, d3; null == (a3 = D3.get(this)) || null == (d3 = a3.adoptedCallback) || d3.apply(this, arguments); }; c7.prototype.formAssociatedCallback = function() { var a3 = D3.get(this); if (a3 && a3.formAssociated) { var d3; null == a3 || null == (d3 = a3.formAssociatedCallback) || d3.apply(this, arguments); } }; c7.prototype.formDisabledCallback = function() { var a3 = D3.get(this); if (null == a3 ? 0 : a3.formAssociated) { var d3; null == a3 || null == (d3 = a3.formDisabledCallback) || d3.apply(this, arguments); } }; c7.prototype.formResetCallback = function() { var a3 = D3.get(this); if (null == a3 ? 0 : a3.formAssociated) { var d3; null == a3 || null == (d3 = a3.formResetCallback) || d3.apply(this, arguments); } }; c7.prototype.formStateRestoreCallback = function() { var a3 = D3.get(this); if (null == a3 ? 0 : a3.formAssociated) { var d3; null == a3 || null == (d3 = a3.formStateRestoreCallback) || d3.apply(this, arguments); } }; return c7; }, H = function(b3, c7, a3) { if (0 !== c7.size && void 0 !== a3) { var d3 = b3.prototype.setAttribute; d3 && (b3.prototype.setAttribute = function(f7, k3) { f7 = f7.toLowerCase(); if (c7.has(f7)) { var z3 = this.getAttribute(f7); d3.call(this, f7, k3); a3.call(this, f7, z3, k3); } else d3.call(this, f7, k3); }); var e8 = b3.prototype.removeAttribute; e8 && (b3.prototype.removeAttribute = function(f7) { f7 = f7.toLowerCase(); if (c7.has(f7)) { var k3 = this.getAttribute(f7); e8.call( this, f7 ); a3.call(this, f7, k3, null); } else e8.call(this, f7); }); var g3 = b3.prototype.toggleAttribute; g3 && (b3.prototype.toggleAttribute = function(f7, k3) { f7 = f7.toLowerCase(); if (c7.has(f7)) { var z3 = this.getAttribute(f7); g3.call(this, f7, k3); k3 = this.getAttribute(f7); a3.call(this, f7, z3, k3); } else g3.call(this, f7, k3); }); } }, M3 = function(b3) { var c7 = Object.getPrototypeOf(b3); if (c7 !== window.HTMLElement) return c7 === y3 ? Object.setPrototypeOf(b3, window.HTMLElement) : M3(c7); }, J = function(b3, c7, a3) { a3 = void 0 === a3 ? false : a3; Object.setPrototypeOf(b3, c7.g.prototype); D3.set(b3, c7); L = b3; try { new c7.g(); } catch (d3) { M3(c7.g), new c7.g(); } c7.attributeChangedCallback && c7.observedAttributes.forEach(function(d3) { b3.hasAttribute(d3) && c7.attributeChangedCallback.call(b3, d3, null, b3.getAttribute(d3)); }); a3 && c7.connectedCallback && b3.isConnected && c7.connectedCallback.call(b3); }, N3 = Element.prototype.attachShadow; Element.prototype.attachShadow = function(b3) { var c7 = N3.apply(this, arguments); b3.customElements && (c7.customElements = b3.customElements); return c7; }; var K3 = [document], O3 = function(b3, c7, a3) { var d3 = (a3 ? Object.getPrototypeOf(a3) : b3.prototype)[c7]; b3.prototype[c7] = function() { K3.push(this); var e8 = d3.apply(a3 || this, arguments); void 0 !== e8 && G3.set(e8, this); K3.pop(); return e8; }; }; O3(ShadowRoot, "createElement", document); O3(ShadowRoot, "importNode", document); O3(Element, "insertAdjacentHTML"); var P3 = function(b3) { var c7 = Object.getOwnPropertyDescriptor(b3.prototype, "innerHTML"); Object.defineProperty(b3.prototype, "innerHTML", Object.assign({}, c7, { set: function(a3) { K3.push(this); c7.set.call(this, a3); K3.pop(); } })); }; P3(Element); P3(ShadowRoot); Object.defineProperty(window, "customElements", { value: new CustomElementRegistry(), configurable: true, writable: true }); if (window.ElementInternals && window.ElementInternals.prototype.setFormValue) { var Q3 = /* @__PURE__ */ new WeakMap(), R3 = HTMLElement.prototype.attachInternals, methods = ["setFormValue", "setValidity", "checkValidity", "reportValidity"]; HTMLElement.prototype.attachInternals = function(b3) { for (var c7 = [], a3 = 0; a3 < arguments.length; ++a3) c7[a3] = arguments[a3]; c7 = R3.call.apply(R3, [this].concat(m3(c7))); Q3.set(c7, this); return c7; }; methods.forEach(function(b3) { var c7 = window.ElementInternals.prototype, a3 = c7[b3]; c7[b3] = function(d3) { for (var e8 = [], g3 = 0; g3 < arguments.length; ++g3) e8[g3] = arguments[g3]; g3 = Q3.get(this); if (true === D3.get(g3).formAssociated) return null == a3 ? void 0 : a3.call.apply(a3, [this].concat(m3(e8))); throw new DOMException("Failed to execute " + a3 + " on 'ElementInternals': The target element is not a form-associated custom element."); }; }); var RadioNodeList = function(b3) { var c7 = r9(Array, [].concat(m3(b3)), this.constructor); c7.h = b3; return c7; }, S5 = RadioNodeList, T3 = Array; S5.prototype = n9(T3.prototype); S5.prototype.constructor = S5; if (x3) x3(S5, T3); else for (var U3 in T3) if ("prototype" != U3) if (Object.defineProperties) { var V3 = Object.getOwnPropertyDescriptor(T3, U3); V3 && Object.defineProperty(S5, U3, V3); } else S5[U3] = T3[U3]; S5.u = T3.prototype; q3.Object.defineProperty(RadioNodeList.prototype, "value", { configurable: true, enumerable: true, get: function() { var b3; return (null == (b3 = this.h.find(function(c7) { return true === c7.checked; })) ? void 0 : b3.value) || ""; } }); var HTMLFormControlsCollection = function(b3) { var c7 = this, a3 = /* @__PURE__ */ new Map(); b3.forEach(function(d3, e8) { var g3 = d3.getAttribute("name"), f7 = a3.get(g3) || []; c7[+e8] = d3; f7.push(d3); a3.set(g3, f7); }); this.length = b3.length; a3.forEach(function(d3, e8) { d3 && (c7[e8] = 1 === d3.length ? d3[0] : new RadioNodeList(d3)); }); }; HTMLFormControlsCollection.prototype.namedItem = function(b3) { return this[b3]; }; var W = Object.getOwnPropertyDescriptor(HTMLFormElement.prototype, "elements"); Object.defineProperty(HTMLFormElement.prototype, "elements", { get: function() { var b3 = W.get.call(this, []), c7 = []; b3 = l3(b3); for (var a3 = b3.next(); !a3.done; a3 = b3.next()) { a3 = a3.value; var d3 = D3.get(a3); d3 && true !== d3.formAssociated || c7.push(a3); } return new HTMLFormControlsCollection(c7); } }); } } ; }).call(typeof globalThis === "object" ? globalThis : window); // 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, self2, value) => { for (var i32 = 0, fns = array[flags >> 1], n52 = fns && fns.length; i32 < n52; i32++) flags & 1 ? fns[i32].call(self2) : value = fns[i32].call(self2, value); return value; }; var __decorateElement2 = (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 = __decoratorStrings2[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 __privateGet2(this, extra); }, set [name](x22) { return __privateSet2(this, extra, x22); } }, name)); k22 ? p22 && k22 < 4 && __name2(extra, (k22 > 2 ? "set " : k22 > 1 ? "get " : "") + name) : __name2(target, name); for (var i32 = decorators.length - 1; i32 >= 0; i32--) { ctx = __decoratorContext2(k22, name, done = {}, array[3], extraInitializers); if (k22) { ctx.static = s22, ctx.private = p22, access = ctx.access = { has: p22 ? (x22) => __privateIn2(target, x22) : (x22) => name in x22 }; if (k22 ^ 3) access.get = p22 ? (x22) => (k22 ^ 1 ? __privateGet2 : __privateMethod2)(x22, target, k22 ^ 4 ? extra : desc.get) : (x22) => x22[name]; if (k22 > 2) access.set = p22 ? (x22, y22) => __privateSet2(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) __expectFn2(it) && (k22 > 4 ? initializers.unshift(it) : k22 ? p22 ? 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), p22 ? 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 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(t22, e42, o42) { if (this._$cssResult$ = true, o42 !== s) 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 (e && void 0 === t22) { const e42 = void 0 !== s22 && 1 === s22.length; e42 && (t22 = o.get(s22)), void 0 === t22 && ((this.o = t22 = new CSSStyleSheet()).replaceSync(this.cssText), e42 && o.set(s22, t22)); } return t22; } toString() { return this.cssText; } }; var r = (t22) => new n("string" == typeof t22 ? t22 : t22 + "", void 0, s); var S = (s22, o42) => { if (e) s22.adoptedStyleSheets = o42.map((t22) => t22 instanceof CSSStyleSheet ? t22 : t22.styleSheet); else for (const e42 of o42) { const o52 = document.createElement("style"), n52 = t.litNonce; void 0 !== n52 && o52.setAttribute("nonce", n52), o52.textContent = e42.cssText, s22.appendChild(o52); } }; var c = e ? (t22) => t22 : (t22) => t22 instanceof CSSStyleSheet ? ((t32) => { let e42 = ""; for (const s22 of t32.cssRules) e42 += s22.cssText; return r(e42); })(t22) : t22; 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 = (t22, s22) => t22; var u = { toAttribute(t22, s22) { switch (s22) { case Boolean: t22 = t22 ? l : 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 f = (t22, s22) => !i2(t22, s22); 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(t22) { this._$Ei(), (this.l ??= []).push(t22); } static get observedAttributes() { return this.finalize(), this._$Eh && [...this._$Eh.keys()]; } static createProperty(t22, s22 = y) { 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 && e2(this.prototype, t22, r42); } } static getPropertyDescriptor(t22, s22, i32) { const { get: e42, set: h42 } = r2(this.prototype, t22) ?? { get() { return this[s22]; }, set(t32) { this[s22] = t32; } }; return { get() { return e42?.call(this); }, set(s3) { const r42 = e42?.call(this); h42.call(this, s3), this.requestUpdate(t22, r42, i32); }, configurable: true, enumerable: true }; } static getPropertyOptions(t22) { return this.elementProperties.get(t22) ?? y; } static _$Ei() { if (this.hasOwnProperty(d("elementProperties"))) return; const t22 = n2(this); t22.finalize(), void 0 !== t22.l && (this.l = [...t22.l]), this.elementProperties = new Map(t22.elementProperties); } static finalize() { if (this.hasOwnProperty(d("finalized"))) return; if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) { const t32 = this.properties, s22 = [...h(t32), ...o2(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 s3 of e42) i32.unshift(c(s3)); } else void 0 !== s22 && i32.push(c(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 S(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 : u).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 : u; 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 ?? f)(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, s3] of this._$Ep) this[t42] = s3; this._$Ep = void 0; } const t32 = this.constructor.elementProperties; if (t32.size > 0) for (const [s3, i32] of t32) true !== i32.wrapped || this._$AL.has(s3) || void 0 === this[s3] || this.P(s3, this[s3], 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 (s3) { throw t22 = false, this._$EU(), s3; } 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) { } }; 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"); var n3 = globalThis; var c3 = n3.trustedTypes; var h2 = c3 ? c3.createPolicy("lit-html", { createHTML: (t22) => t22 }) : void 0; var f2 = "$lit$"; var v = `lit$${Math.random().toFixed(9).slice(2)}$`; var m = "?" + v; var _ = `<${m}>`; var w = document; var lt = () => w.createComment(""); var st = (t22) => null === t22 || "object" != typeof t22 && "function" != typeof t22; var g = Array.isArray; var $ = (t22) => g(t22) || "function" == typeof t22?.[Symbol.iterator]; var x = "[ \n\f\r]"; var T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g; var E = /-->/g; var k = />/g; var O = RegExp(`>|${x}(?:([^\\s"'>=/]+)(${x}*=${x}*(?:[^ \f\r"'\`<>=]|("|')|))|$)`, "g"); var S2 = /'/g; var j = /"/g; var M = /^(?:script|style|textarea|title)$/i; var P = (t22) => (i32, ...s22) => ({ _$litType$: t22, strings: i32, values: s22 }); var ke = P(1); var Oe = P(2); var Se = P(3); var R = Symbol.for("lit-noChange"); var D = Symbol.for("lit-nothing"); var V = /* @__PURE__ */ new WeakMap(); var I = w.createTreeWalker(w, 129); function N(t22, i32) { if (!g(t22) || !t22.hasOwnProperty("raw")) throw Error("invalid template strings array"); return void 0 !== h2 ? h2.createHTML(i32) : i32; } var U = (t22, i32) => { const s22 = t22.length - 1, e42 = []; let h42, o42 = 2 === i32 ? "<svg>" : 3 === i32 ? "<math>" : "", n52 = T; for (let i42 = 0; i42 < s22; i42++) { const s3 = t22[i42]; let r42, l22, c42 = -1, a22 = 0; for (; a22 < s3.length && (n52.lastIndex = a22, l22 = n52.exec(s3), null !== l22); ) a22 = n52.lastIndex, n52 === T ? "!--" === l22[1] ? n52 = E : void 0 !== l22[1] ? n52 = k : void 0 !== l22[2] ? (M.test(l22[2]) && (h42 = RegExp("</" + l22[2], "g")), n52 = O) : void 0 !== l22[3] && (n52 = O) : n52 === O ? ">" === l22[0] ? (n52 = h42 ?? T, 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] ? j : S2) : n52 === j || n52 === S2 ? n52 = O : n52 === E || n52 === k ? n52 = T : (n52 = O, h42 = void 0); const u22 = n52 === O && t22[i42 + 1].startsWith("/>") ? " " : ""; o42 += n52 === T ? s3 + _ : c42 >= 0 ? (e42.push(r42), s3.slice(0, c42) + f2 + s3.slice(c42) + v + u22) : s3 + v + (-2 === c42 ? i42 : u22); } return [N(t22, o42 + (t22[s22] || "<?>") + (2 === i32 ? "</svg>" : 3 === i32 ? "</math>" : "")), e42]; }; var B = class _B { constructor({ strings: t22, _$litType$: i32 }, s22) { let e42; this.parts = []; let h42 = 0, o42 = 0; const n52 = t22.length - 1, r42 = this.parts, [l22, a22] = U(t22, i32); if (this.el = _B.createElement(l22, s22), I.currentNode = this.el.content, 2 === i32 || 3 === i32) { const t32 = this.el.content.firstChild; t32.replaceWith(...t32.childNodes); } for (; null !== (e42 = I.nextNode()) && r42.length < n52; ) { if (1 === e42.nodeType) { if (e42.hasAttributes()) for (const t32 of e42.getAttributeNames()) if (t32.endsWith(f2)) { const i42 = a22[o42++], s3 = e42.getAttribute(t32).split(v), n62 = /([.?@])?(.*)/.exec(i42); r42.push({ type: 1, index: h42, name: n62[2], strings: s3, ctor: "." === n62[1] ? Y : "?" === n62[1] ? Z : "@" === n62[1] ? q : G }), e42.removeAttribute(t32); } else t32.startsWith(v) && (r42.push({ type: 6, index: h42 }), e42.removeAttribute(t32)); if (M.test(e42.tagName)) { const t32 = e42.textContent.split(v), i42 = t32.length - 1; if (i42 > 0) { e42.textContent = c3 ? c3.emptyScript : ""; for (let s3 = 0; s3 < i42; s3++) e42.append(t32[s3], lt()), I.nextNode(), r42.push({ type: 2, index: ++h42 }); e42.append(t32[i42], lt()); } } } else if (8 === e42.nodeType) if (e42.data === m) r42.push({ type: 2, index: h42 }); else { let t32 = -1; for (; -1 !== (t32 = e42.data.indexOf(v, t32 + 1)); ) r42.push({ type: 7, index: h42 }), t32 += v.length - 1; } h42++; } } static createElement(t22, i32) { const s22 = w.createElement("template"); return s22.innerHTML = t22, s22; } }; function z(t22, i32, s22 = t22, e42) { if (i32 === R) return i32; let h42 = void 0 !== e42 ? s22.o?.[e42] : s22.l; const o42 = st(i32) ? void 0 : i32._$litDirective$; return h42?.constructor !== o42 && (h42?._$AO?.(false), void 0 === o42 ? h42 = void 0 : (h42 = new o42(t22), h42._$AT(t22, s22, e42)), void 0 !== e42 ? (s22.o ??= [])[e42] = h42 : s22.l = h42), void 0 !== h42 && (i32 = z(t22, h42._$AS(t22, i32.values), h42, 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 ?? w).importNode(i32, true); I.currentNode = e42; let h42 = I.nextNode(), o42 = 0, n52 = 0, r42 = s22[0]; for (; void 0 !== r42; ) { if (o42 === r42.index) { let i42; 2 === r42.type ? i42 = new et(h42, h42.nextSibling, this, t22) : 1 === r42.type ? i42 = new r42.ctor(h42, r42.name, r42.strings, this, t22) : 6 === r42.type && (i42 = new K(h42, this, t22)), this._$AV.push(i42), r42 = s22[++n52]; } o42 !== r42?.index && (h42 = I.nextNode(), o42++); } return I.currentNode = w, 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 = z(this, t22, i32), st(t22) ? t22 === D || null == t22 || "" === t22 ? (this._$AH !== D && this._$AR(), this._$AH = D) : t22 !== this._$AH && t22 !== R && this._(t22) : void 0 !== t22._$litType$ ? this.$(t22) : void 0 !== t22.nodeType ? this.T(t22) : $(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(w.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 = B.createElement(N(s22.h, s22.h[0]), this.options)), s22); if (this._$AH?._$AD === e42) this._$AH.p(i32); else { const t32 = new F(e42, this), s3 = t32.u(this.options); t32.p(i32), this.T(s3), this._$AH = t32; } } _$AC(t22) { let i32 = V.get(t22.strings); return void 0 === i32 && V.set(t22.strings, i32 = new B(t22)), i32; } k(t22) { g(this._$AH) || (this._$AH = [], this._$AR()); const i32 = this._$AH; let s22, e42 = 0; for (const h42 of t22) e42 === i32.length ? i32.push(s22 = new _et(this.O(lt()), this.O(lt()), this, this.options)) : s22 = i32[e42], s22._$AI(h42), 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, h42) { this.type = 1, this._$AH = D, this._$AN = void 0, this.element = t22, this.name = i32, this._$AM = e42, this.options = h42, 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 h42 = this.strings; let o42 = false; if (void 0 === h42) t22 = z(this, t22, i32, 0), o42 = !st(t22) || t22 !== this._$AH && t22 !== R, o42 && (this._$AH = t22); else { const e52 = t22; let n52, r42; for (t22 = h42[0], n52 = 0; n52 < h42.length - 1; n52++) r42 = z(this, e52[s22 + n52], i32, n52), r42 === R && (r42 = this._$AH[n52]), o42 ||= !st(r42) || r42 !== this._$AH[n52], r42 === D ? t22 = D : t22 !== D && (t22 += (r42 ?? "") + h42[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, h42) { super(t22, i32, s22, e42, h42), this.type = 5; } _$AI(t22, i32 = this) { if ((t22 = z(this, t22, i32, 0) ?? D) === R) return; const s22 = this._$AH, e42 = t22 === D && s22 !== D || t22.capture !== s22.capture || t22.once !== s22.once || t22.passive !== s22.passive, h42 = t22 !== D && (s22 === D || e42); e42 && this.element.removeEventListener(this.name, this, s22), h42 && 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) { z(this, t22); } }; var Re = n3.litHtmlPolyfillSupport; Re?.(B, et), (n3.litHtmlVersions ??= []).push("3.2.0"); var Q = (t22, i32, s22) => { const e42 = s22?.renderBefore ?? i32; let h42 = e42._$litPart$; if (void 0 === h42) { const t32 = s22?.renderBefore ?? null; e42._$litPart$ = h42 = new et(i32.insertBefore(lt(), t32), t32, void 0, s22 ?? {}); } return h42._$AI(t22), h42; }; var h3 = class extends b { 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 R; } }; h3._$litElement$ = true, h3["finalized"] = true, globalThis.litElementHydrateSupport?.({ LitElement: h3 }); var f3 = globalThis.litElementPolyfillSupport; f3?.({ LitElement: h3 }); (globalThis.litElementVersions ??= []).push("4.1.0"); var o3 = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f }; var r3 = (t22 = o3, 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 n62 = e42.get.call(this); e42.set.call(this, r52), this.requestUpdate(o42, n62, 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 n62 = this[o42]; e42.call(this, r52), this.requestUpdate(o42, n62, t22); }; } throw Error("Unsupported decorator location: " + n52); }; function n4(t22) { return (e42, o42) => "object" == typeof o42 ? r3(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; } const mixedClass = mixin(superClass); appliedClassMixins.set(mixedClass, mixin); return mixedClass; }; } var version = "3.0.0"; var versions = window.scopedElementsVersions || (window.scopedElementsVersions = []); if (!versions.includes(version)) { versions.push(version); } var ScopedElementsMixinImplementation = (superclass) => ( /** @type {ScopedElementsHost} */ class ScopedElementsHost extends superclass { /** * Obtains the scoped elements definitions map if specified. * * @type {ScopedElementsMap=} */ static scopedElements; static get scopedElementsVersion() { return version; } /** @type {CustomElementRegistry=} */ static __registry; /** * Obtains the CustomElementRegistry associated to the ShadowRoot. * * @returns {CustomElementRegistry=} */ get registry() { return ( /** @type {typeof ScopedElementsHost} */ this.constructor.__registry ); } /** * Set the CustomElementRegistry associated to the ShadowRoot * * @param {CustomElementRegistry} registry */ set registry(registry2) { this.constructor.__registry = registry2; } /** * @param {ShadowRootInit} options * @returns {ShadowRoot} */ attachShadow(options) { const { scopedElements } = ( /** @type {typeof ScopedElementsHost} */ this.constructor ); const shouldCreateRegistry = !this.registry || // @ts-ignore this.registry === this.constructor.__registry && !Object.prototype.hasOwnProperty.call(this.constructor, "__registry"); if (shouldCreateRegistry) { this.registry = new CustomElementRegistry(); for (const [tagName, klass] of Object.entries(scopedElements ?? {})) { this.registry.define(tagName, klass); } } return super.attachShadow({ ...options, // The polyfill currently expects the registry to be passed as `customElements` customElements: this.registry, // But the proposal has moved forward, and renamed it to `registry` // For backwards compatibility, we pass it as both registry: this.registry }); } } ); var ScopedElementsMixin = dedupeMixin(ScopedElementsMixinImplementation); var ScopedElementsMixinImplementation2 = (superclass) => ( /** @type {ScopedElementsHost} */ class ScopedElementsHost extends ScopedElementsMixin(superclass) { createRenderRoot() { const { shadowRootOptions, elementStyles } = ( /** @type {TypeofLitElement} */ this.constructor ); const shadowRoot = this.attachShadow(shadowRootOptions); this.renderOptions.creationScope = shadowRoot; S(shadowRoot, elementStyles); this.renderOptions.renderBefore ??= shadowRoot.firstChild; return shadowRoot; } } ); var ScopedElementsMixin2 = dedupeMixin(ScopedElementsMixinImplementation2); var _lang_dec; var _contentEditable_dec; var _a; var _init; var _contentEditable; var _lang; var LitElementWw = class extends (_a = ScopedElementsMixin2(h3), _contentEditable_dec = [n4({ type: String, attribute: true, reflect: true })], _lang_dec = [n4({ type: String, attribute: true, reflect: true })], _a) { constructor() { super(...arguments); __publicField2(this, "options"); __publicField2(this, "actions", {}); __privateAdd2(this, _contentEditable, __runInitializers2(_init, 8, this)), __runInitializers2(_init, 11, this); __privateAdd2(this, _lang, __runInitializers2(_init, 12, this)), __runInitializers2(_init, 15, this); __publicField2(this, "_inTransaction", false); } connectedCallback() { super.connectedCallback(); this.getAttributeNames().forEach((k22) => this.setAttribute(k22, this.getAttribute(k22))); } }; _init = __decoratorStart2(_a); _contentEditable = /* @__PURE__ */ ne