@webwriter/quiz 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,32 +13,32 @@ var __expectFn = (fn) => fn !== void 0 && typeof fn !== "function" ? __typeError
13
13
  var __decoratorContext = (kind, name, done, metadata, fns) => ({ kind: __decoratorStrings[kind], name, metadata, addInitializer: (fn) => done._ ? __typeError("Already initialized") : fns.push(__expectFn(fn || null)) });
14
14
  var __decoratorMetadata = (array, target) => __defNormalProp(target, __knownSymbol("metadata"), array[3]);
15
15
  var __runInitializers = (array, flags, self, value) => {
16
- for (var i = 0, fns = array[flags >> 1], n = fns && fns.length; i < n; i++) flags & 1 ? fns[i].call(self) : value = fns[i].call(self, value);
16
+ for (var i4 = 0, fns = array[flags >> 1], n6 = fns && fns.length; i4 < n6; i4++) flags & 1 ? fns[i4].call(self) : value = fns[i4].call(self, value);
17
17
  return value;
18
18
  };
19
19
  var __decorateElement = (array, flags, name, decorators, target, extra) => {
20
- var fn, it, done, ctx, access, k = flags & 7, s = !!(flags & 8), p = !!(flags & 16);
21
- var j = k > 3 ? array.length + 1 : k ? s ? 1 : 2 : 0, key = __decoratorStrings[k + 5];
22
- var initializers = k > 3 && (array[j - 1] = []), extraInitializers = array[j] || (array[j] = []);
23
- var desc = k && (!p && !s && (target = target.prototype), k < 5 && (k > 3 || !p) && __getOwnPropDesc(k < 4 ? target : { get [name]() {
20
+ var fn, it, done, ctx, access, k3 = flags & 7, s3 = !!(flags & 8), p3 = !!(flags & 16);
21
+ var j3 = k3 > 3 ? array.length + 1 : k3 ? s3 ? 1 : 2 : 0, key = __decoratorStrings[k3 + 5];
22
+ var initializers = k3 > 3 && (array[j3 - 1] = []), extraInitializers = array[j3] || (array[j3] = []);
23
+ var desc = k3 && (!p3 && !s3 && (target = target.prototype), k3 < 5 && (k3 > 3 || !p3) && __getOwnPropDesc(k3 < 4 ? target : { get [name]() {
24
24
  return __privateGet(this, extra);
25
- }, set [name](x) {
26
- return __privateSet(this, extra, x);
25
+ }, set [name](x3) {
26
+ return __privateSet(this, extra, x3);
27
27
  } }, name));
28
- k ? p && k < 4 && __name(extra, (k > 2 ? "set " : k > 1 ? "get " : "") + name) : __name(target, name);
29
- for (var i = decorators.length - 1; i >= 0; i--) {
30
- ctx = __decoratorContext(k, name, done = {}, array[3], extraInitializers);
31
- if (k) {
32
- ctx.static = s, ctx.private = p, access = ctx.access = { has: p ? (x) => __privateIn(target, x) : (x) => name in x };
33
- if (k ^ 3) access.get = p ? (x) => (k ^ 1 ? __privateGet : __privateMethod)(x, target, k ^ 4 ? extra : desc.get) : (x) => x[name];
34
- if (k > 2) access.set = p ? (x, y) => __privateSet(x, target, y, k ^ 4 ? extra : desc.set) : (x, y) => x[name] = y;
35
- }
36
- it = (0, decorators[i])(k ? k < 4 ? p ? extra : desc[key] : k > 4 ? void 0 : { get: desc.get, set: desc.set } : target, ctx), done._ = 1;
37
- if (k ^ 4 || it === void 0) __expectFn(it) && (k > 4 ? initializers.unshift(it) : k ? p ? extra = it : desc[key] = it : target = it);
28
+ k3 ? p3 && k3 < 4 && __name(extra, (k3 > 2 ? "set " : k3 > 1 ? "get " : "") + name) : __name(target, name);
29
+ for (var i4 = decorators.length - 1; i4 >= 0; i4--) {
30
+ ctx = __decoratorContext(k3, name, done = {}, array[3], extraInitializers);
31
+ if (k3) {
32
+ ctx.static = s3, ctx.private = p3, access = ctx.access = { has: p3 ? (x3) => __privateIn(target, x3) : (x3) => name in x3 };
33
+ if (k3 ^ 3) access.get = p3 ? (x3) => (k3 ^ 1 ? __privateGet : __privateMethod)(x3, target, k3 ^ 4 ? extra : desc.get) : (x3) => x3[name];
34
+ if (k3 > 2) access.set = p3 ? (x3, y3) => __privateSet(x3, target, y3, k3 ^ 4 ? extra : desc.set) : (x3, y3) => x3[name] = y3;
35
+ }
36
+ it = (0, decorators[i4])(k3 ? k3 < 4 ? p3 ? extra : desc[key] : k3 > 4 ? void 0 : { get: desc.get, set: desc.set } : target, ctx), done._ = 1;
37
+ if (k3 ^ 4 || it === void 0) __expectFn(it) && (k3 > 4 ? initializers.unshift(it) : k3 ? p3 ? extra = it : desc[key] = it : target = it);
38
38
  else if (typeof it !== "object" || it === null) __typeError("Object expected");
39
39
  else __expectFn(fn = it.get) && (desc.get = fn), __expectFn(fn = it.set) && (desc.set = fn), __expectFn(fn = it.init) && initializers.unshift(fn);
40
40
  }
41
- return k || __decoratorMetadata(array, target), desc && __defProp(target, name, desc), p ? k ^ 4 ? extra : desc : target;
41
+ return k3 || __decoratorMetadata(array, target), desc && __defProp(target, name, desc), p3 ? k3 ^ 4 ? extra : desc : target;
42
42
  };
43
43
  var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
44
44
  var __privateIn = (member, obj) => Object(obj) !== obj ? __typeError('Cannot use the "in" operator on this value') : member.has(obj);
@@ -46,23 +46,1580 @@ var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read fr
46
46
  var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
47
47
  var __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
48
48
 
49
+ // ../../node_modules/lit/node_modules/@lit/reactive-element/css-tag.js
50
+ var t = globalThis;
51
+ var e = t.ShadowRoot && (void 0 === t.ShadyCSS || t.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
52
+ var s = Symbol();
53
+ var o = /* @__PURE__ */ new WeakMap();
54
+ var n = class {
55
+ constructor(t5, e6, o4) {
56
+ if (this._$cssResult$ = true, o4 !== s) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
57
+ this.cssText = t5, this.t = e6;
58
+ }
59
+ get styleSheet() {
60
+ let t5 = this.o;
61
+ const s3 = this.t;
62
+ if (e && void 0 === t5) {
63
+ const e6 = void 0 !== s3 && 1 === s3.length;
64
+ e6 && (t5 = o.get(s3)), void 0 === t5 && ((this.o = t5 = new CSSStyleSheet()).replaceSync(this.cssText), e6 && o.set(s3, t5));
65
+ }
66
+ return t5;
67
+ }
68
+ toString() {
69
+ return this.cssText;
70
+ }
71
+ };
72
+ var r = (t5) => new n("string" == typeof t5 ? t5 : t5 + "", void 0, s);
73
+ var S = (s3, o4) => {
74
+ if (e) s3.adoptedStyleSheets = o4.map((t5) => t5 instanceof CSSStyleSheet ? t5 : t5.styleSheet);
75
+ else for (const e6 of o4) {
76
+ const o5 = document.createElement("style"), n6 = t.litNonce;
77
+ void 0 !== n6 && o5.setAttribute("nonce", n6), o5.textContent = e6.cssText, s3.appendChild(o5);
78
+ }
79
+ };
80
+ var c = e ? (t5) => t5 : (t5) => t5 instanceof CSSStyleSheet ? ((t6) => {
81
+ let e6 = "";
82
+ for (const s3 of t6.cssRules) e6 += s3.cssText;
83
+ return r(e6);
84
+ })(t5) : t5;
85
+
86
+ // ../../node_modules/lit/node_modules/@lit/reactive-element/reactive-element.js
87
+ var { is: i2, defineProperty: e2, getOwnPropertyDescriptor: r2, getOwnPropertyNames: h, getOwnPropertySymbols: o2, getPrototypeOf: n2 } = Object;
88
+ var a = globalThis;
89
+ var c2 = a.trustedTypes;
90
+ var l = c2 ? c2.emptyScript : "";
91
+ var p = a.reactiveElementPolyfillSupport;
92
+ var d = (t5, s3) => t5;
93
+ var u = { toAttribute(t5, s3) {
94
+ switch (s3) {
95
+ case Boolean:
96
+ t5 = t5 ? l : null;
97
+ break;
98
+ case Object:
99
+ case Array:
100
+ t5 = null == t5 ? t5 : JSON.stringify(t5);
101
+ }
102
+ return t5;
103
+ }, fromAttribute(t5, s3) {
104
+ let i4 = t5;
105
+ switch (s3) {
106
+ case Boolean:
107
+ i4 = null !== t5;
108
+ break;
109
+ case Number:
110
+ i4 = null === t5 ? null : Number(t5);
111
+ break;
112
+ case Object:
113
+ case Array:
114
+ try {
115
+ i4 = JSON.parse(t5);
116
+ } catch (t6) {
117
+ i4 = null;
118
+ }
119
+ }
120
+ return i4;
121
+ } };
122
+ var f = (t5, s3) => !i2(t5, s3);
123
+ var y = { attribute: true, type: String, converter: u, reflect: false, hasChanged: f };
124
+ Symbol.metadata ??= Symbol("metadata"), a.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
125
+ var b = class extends HTMLElement {
126
+ static addInitializer(t5) {
127
+ this._$Ei(), (this.l ??= []).push(t5);
128
+ }
129
+ static get observedAttributes() {
130
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
131
+ }
132
+ static createProperty(t5, s3 = y) {
133
+ if (s3.state && (s3.attribute = false), this._$Ei(), this.elementProperties.set(t5, s3), !s3.noAccessor) {
134
+ const i4 = Symbol(), r4 = this.getPropertyDescriptor(t5, i4, s3);
135
+ void 0 !== r4 && e2(this.prototype, t5, r4);
136
+ }
137
+ }
138
+ static getPropertyDescriptor(t5, s3, i4) {
139
+ const { get: e6, set: h5 } = r2(this.prototype, t5) ?? { get() {
140
+ return this[s3];
141
+ }, set(t6) {
142
+ this[s3] = t6;
143
+ } };
144
+ return { get() {
145
+ return e6?.call(this);
146
+ }, set(s4) {
147
+ const r4 = e6?.call(this);
148
+ h5.call(this, s4), this.requestUpdate(t5, r4, i4);
149
+ }, configurable: true, enumerable: true };
150
+ }
151
+ static getPropertyOptions(t5) {
152
+ return this.elementProperties.get(t5) ?? y;
153
+ }
154
+ static _$Ei() {
155
+ if (this.hasOwnProperty(d("elementProperties"))) return;
156
+ const t5 = n2(this);
157
+ t5.finalize(), void 0 !== t5.l && (this.l = [...t5.l]), this.elementProperties = new Map(t5.elementProperties);
158
+ }
159
+ static finalize() {
160
+ if (this.hasOwnProperty(d("finalized"))) return;
161
+ if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d("properties"))) {
162
+ const t6 = this.properties, s3 = [...h(t6), ...o2(t6)];
163
+ for (const i4 of s3) this.createProperty(i4, t6[i4]);
164
+ }
165
+ const t5 = this[Symbol.metadata];
166
+ if (null !== t5) {
167
+ const s3 = litPropertyMetadata.get(t5);
168
+ if (void 0 !== s3) for (const [t6, i4] of s3) this.elementProperties.set(t6, i4);
169
+ }
170
+ this._$Eh = /* @__PURE__ */ new Map();
171
+ for (const [t6, s3] of this.elementProperties) {
172
+ const i4 = this._$Eu(t6, s3);
173
+ void 0 !== i4 && this._$Eh.set(i4, t6);
174
+ }
175
+ this.elementStyles = this.finalizeStyles(this.styles);
176
+ }
177
+ static finalizeStyles(s3) {
178
+ const i4 = [];
179
+ if (Array.isArray(s3)) {
180
+ const e6 = new Set(s3.flat(1 / 0).reverse());
181
+ for (const s4 of e6) i4.unshift(c(s4));
182
+ } else void 0 !== s3 && i4.push(c(s3));
183
+ return i4;
184
+ }
185
+ static _$Eu(t5, s3) {
186
+ const i4 = s3.attribute;
187
+ return false === i4 ? void 0 : "string" == typeof i4 ? i4 : "string" == typeof t5 ? t5.toLowerCase() : void 0;
188
+ }
189
+ constructor() {
190
+ super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
191
+ }
192
+ _$Ev() {
193
+ this._$ES = new Promise((t5) => this.enableUpdating = t5), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t5) => t5(this));
194
+ }
195
+ addController(t5) {
196
+ (this._$EO ??= /* @__PURE__ */ new Set()).add(t5), void 0 !== this.renderRoot && this.isConnected && t5.hostConnected?.();
197
+ }
198
+ removeController(t5) {
199
+ this._$EO?.delete(t5);
200
+ }
201
+ _$E_() {
202
+ const t5 = /* @__PURE__ */ new Map(), s3 = this.constructor.elementProperties;
203
+ for (const i4 of s3.keys()) this.hasOwnProperty(i4) && (t5.set(i4, this[i4]), delete this[i4]);
204
+ t5.size > 0 && (this._$Ep = t5);
205
+ }
206
+ createRenderRoot() {
207
+ const t5 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
208
+ return S(t5, this.constructor.elementStyles), t5;
209
+ }
210
+ connectedCallback() {
211
+ this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t5) => t5.hostConnected?.());
212
+ }
213
+ enableUpdating(t5) {
214
+ }
215
+ disconnectedCallback() {
216
+ this._$EO?.forEach((t5) => t5.hostDisconnected?.());
217
+ }
218
+ attributeChangedCallback(t5, s3, i4) {
219
+ this._$AK(t5, i4);
220
+ }
221
+ _$EC(t5, s3) {
222
+ const i4 = this.constructor.elementProperties.get(t5), e6 = this.constructor._$Eu(t5, i4);
223
+ if (void 0 !== e6 && true === i4.reflect) {
224
+ const r4 = (void 0 !== i4.converter?.toAttribute ? i4.converter : u).toAttribute(s3, i4.type);
225
+ this._$Em = t5, null == r4 ? this.removeAttribute(e6) : this.setAttribute(e6, r4), this._$Em = null;
226
+ }
227
+ }
228
+ _$AK(t5, s3) {
229
+ const i4 = this.constructor, e6 = i4._$Eh.get(t5);
230
+ if (void 0 !== e6 && this._$Em !== e6) {
231
+ const t6 = i4.getPropertyOptions(e6), r4 = "function" == typeof t6.converter ? { fromAttribute: t6.converter } : void 0 !== t6.converter?.fromAttribute ? t6.converter : u;
232
+ this._$Em = e6, this[e6] = r4.fromAttribute(s3, t6.type), this._$Em = null;
233
+ }
234
+ }
235
+ requestUpdate(t5, s3, i4) {
236
+ if (void 0 !== t5) {
237
+ if (i4 ??= this.constructor.getPropertyOptions(t5), !(i4.hasChanged ?? f)(this[t5], s3)) return;
238
+ this.P(t5, s3, i4);
239
+ }
240
+ false === this.isUpdatePending && (this._$ES = this._$ET());
241
+ }
242
+ P(t5, s3, i4) {
243
+ this._$AL.has(t5) || this._$AL.set(t5, s3), true === i4.reflect && this._$Em !== t5 && (this._$Ej ??= /* @__PURE__ */ new Set()).add(t5);
244
+ }
245
+ async _$ET() {
246
+ this.isUpdatePending = true;
247
+ try {
248
+ await this._$ES;
249
+ } catch (t6) {
250
+ Promise.reject(t6);
251
+ }
252
+ const t5 = this.scheduleUpdate();
253
+ return null != t5 && await t5, !this.isUpdatePending;
254
+ }
255
+ scheduleUpdate() {
256
+ return this.performUpdate();
257
+ }
258
+ performUpdate() {
259
+ if (!this.isUpdatePending) return;
260
+ if (!this.hasUpdated) {
261
+ if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
262
+ for (const [t7, s4] of this._$Ep) this[t7] = s4;
263
+ this._$Ep = void 0;
264
+ }
265
+ const t6 = this.constructor.elementProperties;
266
+ if (t6.size > 0) for (const [s4, i4] of t6) true !== i4.wrapped || this._$AL.has(s4) || void 0 === this[s4] || this.P(s4, this[s4], i4);
267
+ }
268
+ let t5 = false;
269
+ const s3 = this._$AL;
270
+ try {
271
+ t5 = this.shouldUpdate(s3), t5 ? (this.willUpdate(s3), this._$EO?.forEach((t6) => t6.hostUpdate?.()), this.update(s3)) : this._$EU();
272
+ } catch (s4) {
273
+ throw t5 = false, this._$EU(), s4;
274
+ }
275
+ t5 && this._$AE(s3);
276
+ }
277
+ willUpdate(t5) {
278
+ }
279
+ _$AE(t5) {
280
+ this._$EO?.forEach((t6) => t6.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t5)), this.updated(t5);
281
+ }
282
+ _$EU() {
283
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
284
+ }
285
+ get updateComplete() {
286
+ return this.getUpdateComplete();
287
+ }
288
+ getUpdateComplete() {
289
+ return this._$ES;
290
+ }
291
+ shouldUpdate(t5) {
292
+ return true;
293
+ }
294
+ update(t5) {
295
+ this._$Ej &&= this._$Ej.forEach((t6) => this._$EC(t6, this[t6])), this._$EU();
296
+ }
297
+ updated(t5) {
298
+ }
299
+ firstUpdated(t5) {
300
+ }
301
+ };
302
+ 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");
303
+
304
+ // ../../node_modules/lit/node_modules/lit-html/lit-html.js
305
+ var n3 = globalThis;
306
+ var c3 = n3.trustedTypes;
307
+ var h2 = c3 ? c3.createPolicy("lit-html", { createHTML: (t5) => t5 }) : void 0;
308
+ var f2 = "$lit$";
309
+ var v = `lit$${Math.random().toFixed(9).slice(2)}$`;
310
+ var m = "?" + v;
311
+ var _ = `<${m}>`;
312
+ var w = document;
313
+ var lt = () => w.createComment("");
314
+ var st = (t5) => null === t5 || "object" != typeof t5 && "function" != typeof t5;
315
+ var g = Array.isArray;
316
+ var $ = (t5) => g(t5) || "function" == typeof t5?.[Symbol.iterator];
317
+ var x = "[ \n\f\r]";
318
+ var T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
319
+ var E = /-->/g;
320
+ var k = />/g;
321
+ var O = RegExp(`>|${x}(?:([^\\s"'>=/]+)(${x}*=${x}*(?:[^
322
+ \f\r"'\`<>=]|("|')|))|$)`, "g");
323
+ var S2 = /'/g;
324
+ var j = /"/g;
325
+ var M = /^(?:script|style|textarea|title)$/i;
326
+ var P = (t5) => (i4, ...s3) => ({ _$litType$: t5, strings: i4, values: s3 });
327
+ var ke = P(1);
328
+ var Oe = P(2);
329
+ var Se = P(3);
330
+ var R = Symbol.for("lit-noChange");
331
+ var D = Symbol.for("lit-nothing");
332
+ var V = /* @__PURE__ */ new WeakMap();
333
+ var I = w.createTreeWalker(w, 129);
334
+ function N(t5, i4) {
335
+ if (!g(t5) || !t5.hasOwnProperty("raw")) throw Error("invalid template strings array");
336
+ return void 0 !== h2 ? h2.createHTML(i4) : i4;
337
+ }
338
+ var U = (t5, i4) => {
339
+ const s3 = t5.length - 1, e6 = [];
340
+ let h5, o4 = 2 === i4 ? "<svg>" : 3 === i4 ? "<math>" : "", n6 = T;
341
+ for (let i5 = 0; i5 < s3; i5++) {
342
+ const s4 = t5[i5];
343
+ let r4, l3, c5 = -1, a3 = 0;
344
+ for (; a3 < s4.length && (n6.lastIndex = a3, l3 = n6.exec(s4), null !== l3); ) a3 = n6.lastIndex, n6 === T ? "!--" === l3[1] ? n6 = E : void 0 !== l3[1] ? n6 = k : void 0 !== l3[2] ? (M.test(l3[2]) && (h5 = RegExp("</" + l3[2], "g")), n6 = O) : void 0 !== l3[3] && (n6 = O) : n6 === O ? ">" === l3[0] ? (n6 = h5 ?? T, c5 = -1) : void 0 === l3[1] ? c5 = -2 : (c5 = n6.lastIndex - l3[2].length, r4 = l3[1], n6 = void 0 === l3[3] ? O : '"' === l3[3] ? j : S2) : n6 === j || n6 === S2 ? n6 = O : n6 === E || n6 === k ? n6 = T : (n6 = O, h5 = void 0);
345
+ const u3 = n6 === O && t5[i5 + 1].startsWith("/>") ? " " : "";
346
+ o4 += n6 === T ? s4 + _ : c5 >= 0 ? (e6.push(r4), s4.slice(0, c5) + f2 + s4.slice(c5) + v + u3) : s4 + v + (-2 === c5 ? i5 : u3);
347
+ }
348
+ return [N(t5, o4 + (t5[s3] || "<?>") + (2 === i4 ? "</svg>" : 3 === i4 ? "</math>" : "")), e6];
349
+ };
350
+ var B = class _B2 {
351
+ constructor({ strings: t5, _$litType$: i4 }, s3) {
352
+ let e6;
353
+ this.parts = [];
354
+ let h5 = 0, o4 = 0;
355
+ const n6 = t5.length - 1, r4 = this.parts, [l3, a3] = U(t5, i4);
356
+ if (this.el = _B2.createElement(l3, s3), I.currentNode = this.el.content, 2 === i4 || 3 === i4) {
357
+ const t6 = this.el.content.firstChild;
358
+ t6.replaceWith(...t6.childNodes);
359
+ }
360
+ for (; null !== (e6 = I.nextNode()) && r4.length < n6; ) {
361
+ if (1 === e6.nodeType) {
362
+ if (e6.hasAttributes()) for (const t6 of e6.getAttributeNames()) if (t6.endsWith(f2)) {
363
+ const i5 = a3[o4++], s4 = e6.getAttribute(t6).split(v), n7 = /([.?@])?(.*)/.exec(i5);
364
+ r4.push({ type: 1, index: h5, name: n7[2], strings: s4, ctor: "." === n7[1] ? Y : "?" === n7[1] ? Z : "@" === n7[1] ? q : G }), e6.removeAttribute(t6);
365
+ } else t6.startsWith(v) && (r4.push({ type: 6, index: h5 }), e6.removeAttribute(t6));
366
+ if (M.test(e6.tagName)) {
367
+ const t6 = e6.textContent.split(v), i5 = t6.length - 1;
368
+ if (i5 > 0) {
369
+ e6.textContent = c3 ? c3.emptyScript : "";
370
+ for (let s4 = 0; s4 < i5; s4++) e6.append(t6[s4], lt()), I.nextNode(), r4.push({ type: 2, index: ++h5 });
371
+ e6.append(t6[i5], lt());
372
+ }
373
+ }
374
+ } else if (8 === e6.nodeType) if (e6.data === m) r4.push({ type: 2, index: h5 });
375
+ else {
376
+ let t6 = -1;
377
+ for (; -1 !== (t6 = e6.data.indexOf(v, t6 + 1)); ) r4.push({ type: 7, index: h5 }), t6 += v.length - 1;
378
+ }
379
+ h5++;
380
+ }
381
+ }
382
+ static createElement(t5, i4) {
383
+ const s3 = w.createElement("template");
384
+ return s3.innerHTML = t5, s3;
385
+ }
386
+ };
387
+ function z(t5, i4, s3 = t5, e6) {
388
+ if (i4 === R) return i4;
389
+ let h5 = void 0 !== e6 ? s3.o?.[e6] : s3.l;
390
+ const o4 = st(i4) ? void 0 : i4._$litDirective$;
391
+ return h5?.constructor !== o4 && (h5?._$AO?.(false), void 0 === o4 ? h5 = void 0 : (h5 = new o4(t5), h5._$AT(t5, s3, e6)), void 0 !== e6 ? (s3.o ??= [])[e6] = h5 : s3.l = h5), void 0 !== h5 && (i4 = z(t5, h5._$AS(t5, i4.values), h5, e6)), i4;
392
+ }
393
+ var F = class {
394
+ constructor(t5, i4) {
395
+ this._$AV = [], this._$AN = void 0, this._$AD = t5, this._$AM = i4;
396
+ }
397
+ get parentNode() {
398
+ return this._$AM.parentNode;
399
+ }
400
+ get _$AU() {
401
+ return this._$AM._$AU;
402
+ }
403
+ u(t5) {
404
+ const { el: { content: i4 }, parts: s3 } = this._$AD, e6 = (t5?.creationScope ?? w).importNode(i4, true);
405
+ I.currentNode = e6;
406
+ let h5 = I.nextNode(), o4 = 0, n6 = 0, r4 = s3[0];
407
+ for (; void 0 !== r4; ) {
408
+ if (o4 === r4.index) {
409
+ let i5;
410
+ 2 === r4.type ? i5 = new et(h5, h5.nextSibling, this, t5) : 1 === r4.type ? i5 = new r4.ctor(h5, r4.name, r4.strings, this, t5) : 6 === r4.type && (i5 = new K(h5, this, t5)), this._$AV.push(i5), r4 = s3[++n6];
411
+ }
412
+ o4 !== r4?.index && (h5 = I.nextNode(), o4++);
413
+ }
414
+ return I.currentNode = w, e6;
415
+ }
416
+ p(t5) {
417
+ let i4 = 0;
418
+ for (const s3 of this._$AV) void 0 !== s3 && (void 0 !== s3.strings ? (s3._$AI(t5, s3, i4), i4 += s3.strings.length - 2) : s3._$AI(t5[i4])), i4++;
419
+ }
420
+ };
421
+ var et = class _et2 {
422
+ get _$AU() {
423
+ return this._$AM?._$AU ?? this.v;
424
+ }
425
+ constructor(t5, i4, s3, e6) {
426
+ this.type = 2, this._$AH = D, this._$AN = void 0, this._$AA = t5, this._$AB = i4, this._$AM = s3, this.options = e6, this.v = e6?.isConnected ?? true;
427
+ }
428
+ get parentNode() {
429
+ let t5 = this._$AA.parentNode;
430
+ const i4 = this._$AM;
431
+ return void 0 !== i4 && 11 === t5?.nodeType && (t5 = i4.parentNode), t5;
432
+ }
433
+ get startNode() {
434
+ return this._$AA;
435
+ }
436
+ get endNode() {
437
+ return this._$AB;
438
+ }
439
+ _$AI(t5, i4 = this) {
440
+ t5 = z(this, t5, i4), st(t5) ? t5 === D || null == t5 || "" === t5 ? (this._$AH !== D && this._$AR(), this._$AH = D) : t5 !== this._$AH && t5 !== R && this._(t5) : void 0 !== t5._$litType$ ? this.$(t5) : void 0 !== t5.nodeType ? this.T(t5) : $(t5) ? this.k(t5) : this._(t5);
441
+ }
442
+ O(t5) {
443
+ return this._$AA.parentNode.insertBefore(t5, this._$AB);
444
+ }
445
+ T(t5) {
446
+ this._$AH !== t5 && (this._$AR(), this._$AH = this.O(t5));
447
+ }
448
+ _(t5) {
449
+ this._$AH !== D && st(this._$AH) ? this._$AA.nextSibling.data = t5 : this.T(w.createTextNode(t5)), this._$AH = t5;
450
+ }
451
+ $(t5) {
452
+ const { values: i4, _$litType$: s3 } = t5, e6 = "number" == typeof s3 ? this._$AC(t5) : (void 0 === s3.el && (s3.el = B.createElement(N(s3.h, s3.h[0]), this.options)), s3);
453
+ if (this._$AH?._$AD === e6) this._$AH.p(i4);
454
+ else {
455
+ const t6 = new F(e6, this), s4 = t6.u(this.options);
456
+ t6.p(i4), this.T(s4), this._$AH = t6;
457
+ }
458
+ }
459
+ _$AC(t5) {
460
+ let i4 = V.get(t5.strings);
461
+ return void 0 === i4 && V.set(t5.strings, i4 = new B(t5)), i4;
462
+ }
463
+ k(t5) {
464
+ g(this._$AH) || (this._$AH = [], this._$AR());
465
+ const i4 = this._$AH;
466
+ let s3, e6 = 0;
467
+ for (const h5 of t5) e6 === i4.length ? i4.push(s3 = new _et2(this.O(lt()), this.O(lt()), this, this.options)) : s3 = i4[e6], s3._$AI(h5), e6++;
468
+ e6 < i4.length && (this._$AR(s3 && s3._$AB.nextSibling, e6), i4.length = e6);
469
+ }
470
+ _$AR(t5 = this._$AA.nextSibling, i4) {
471
+ for (this._$AP?.(false, true, i4); t5 && t5 !== this._$AB; ) {
472
+ const i5 = t5.nextSibling;
473
+ t5.remove(), t5 = i5;
474
+ }
475
+ }
476
+ setConnected(t5) {
477
+ void 0 === this._$AM && (this.v = t5, this._$AP?.(t5));
478
+ }
479
+ };
480
+ var G = class {
481
+ get tagName() {
482
+ return this.element.tagName;
483
+ }
484
+ get _$AU() {
485
+ return this._$AM._$AU;
486
+ }
487
+ constructor(t5, i4, s3, e6, h5) {
488
+ this.type = 1, this._$AH = D, this._$AN = void 0, this.element = t5, this.name = i4, this._$AM = e6, this.options = h5, s3.length > 2 || "" !== s3[0] || "" !== s3[1] ? (this._$AH = Array(s3.length - 1).fill(new String()), this.strings = s3) : this._$AH = D;
489
+ }
490
+ _$AI(t5, i4 = this, s3, e6) {
491
+ const h5 = this.strings;
492
+ let o4 = false;
493
+ if (void 0 === h5) t5 = z(this, t5, i4, 0), o4 = !st(t5) || t5 !== this._$AH && t5 !== R, o4 && (this._$AH = t5);
494
+ else {
495
+ const e7 = t5;
496
+ let n6, r4;
497
+ for (t5 = h5[0], n6 = 0; n6 < h5.length - 1; n6++) r4 = z(this, e7[s3 + n6], i4, n6), r4 === R && (r4 = this._$AH[n6]), o4 ||= !st(r4) || r4 !== this._$AH[n6], r4 === D ? t5 = D : t5 !== D && (t5 += (r4 ?? "") + h5[n6 + 1]), this._$AH[n6] = r4;
498
+ }
499
+ o4 && !e6 && this.j(t5);
500
+ }
501
+ j(t5) {
502
+ t5 === D ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t5 ?? "");
503
+ }
504
+ };
505
+ var Y = class extends G {
506
+ constructor() {
507
+ super(...arguments), this.type = 3;
508
+ }
509
+ j(t5) {
510
+ this.element[this.name] = t5 === D ? void 0 : t5;
511
+ }
512
+ };
513
+ var Z = class extends G {
514
+ constructor() {
515
+ super(...arguments), this.type = 4;
516
+ }
517
+ j(t5) {
518
+ this.element.toggleAttribute(this.name, !!t5 && t5 !== D);
519
+ }
520
+ };
521
+ var q = class extends G {
522
+ constructor(t5, i4, s3, e6, h5) {
523
+ super(t5, i4, s3, e6, h5), this.type = 5;
524
+ }
525
+ _$AI(t5, i4 = this) {
526
+ if ((t5 = z(this, t5, i4, 0) ?? D) === R) return;
527
+ const s3 = this._$AH, e6 = t5 === D && s3 !== D || t5.capture !== s3.capture || t5.once !== s3.once || t5.passive !== s3.passive, h5 = t5 !== D && (s3 === D || e6);
528
+ e6 && this.element.removeEventListener(this.name, this, s3), h5 && this.element.addEventListener(this.name, this, t5), this._$AH = t5;
529
+ }
530
+ handleEvent(t5) {
531
+ "function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t5) : this._$AH.handleEvent(t5);
532
+ }
533
+ };
534
+ var K = class {
535
+ constructor(t5, i4, s3) {
536
+ this.element = t5, this.type = 6, this._$AN = void 0, this._$AM = i4, this.options = s3;
537
+ }
538
+ get _$AU() {
539
+ return this._$AM._$AU;
540
+ }
541
+ _$AI(t5) {
542
+ z(this, t5);
543
+ }
544
+ };
545
+ var Re = n3.litHtmlPolyfillSupport;
546
+ Re?.(B, et), (n3.litHtmlVersions ??= []).push("3.2.0");
547
+ var Q = (t5, i4, s3) => {
548
+ const e6 = s3?.renderBefore ?? i4;
549
+ let h5 = e6._$litPart$;
550
+ if (void 0 === h5) {
551
+ const t6 = s3?.renderBefore ?? null;
552
+ e6._$litPart$ = h5 = new et(i4.insertBefore(lt(), t6), t6, void 0, s3 ?? {});
553
+ }
554
+ return h5._$AI(t5), h5;
555
+ };
556
+
557
+ // ../../node_modules/lit/node_modules/lit-element/lit-element.js
558
+ var h3 = class extends b {
559
+ constructor() {
560
+ super(...arguments), this.renderOptions = { host: this }, this.o = void 0;
561
+ }
562
+ createRenderRoot() {
563
+ const t5 = super.createRenderRoot();
564
+ return this.renderOptions.renderBefore ??= t5.firstChild, t5;
565
+ }
566
+ update(t5) {
567
+ const e6 = this.render();
568
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t5), this.o = Q(e6, this.renderRoot, this.renderOptions);
569
+ }
570
+ connectedCallback() {
571
+ super.connectedCallback(), this.o?.setConnected(true);
572
+ }
573
+ disconnectedCallback() {
574
+ super.disconnectedCallback(), this.o?.setConnected(false);
575
+ }
576
+ render() {
577
+ return R;
578
+ }
579
+ };
580
+ h3._$litElement$ = true, h3["finalized"] = true, globalThis.litElementHydrateSupport?.({ LitElement: h3 });
581
+ var f3 = globalThis.litElementPolyfillSupport;
582
+ f3?.({ LitElement: h3 });
583
+ (globalThis.litElementVersions ??= []).push("4.1.0");
584
+
585
+ // ../lit/index.js
586
+ var __create2 = Object.create;
587
+ var __defProp2 = Object.defineProperty;
588
+ var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
589
+ var __knownSymbol2 = (name, symbol) => (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
590
+ var __typeError2 = (msg) => {
591
+ throw TypeError(msg);
592
+ };
593
+ var __defNormalProp2 = (obj, key, value) => key in obj ? __defProp2(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
594
+ var __name2 = (target, value) => __defProp2(target, "name", { value, configurable: true });
595
+ var __decoratorStart2 = (base) => [, , , __create2(base?.[__knownSymbol2("metadata")] ?? null)];
596
+ var __decoratorStrings2 = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"];
597
+ var __expectFn2 = (fn) => fn !== void 0 && typeof fn !== "function" ? __typeError2("Function expected") : fn;
598
+ var __decoratorContext2 = (kind, name, done, metadata, fns) => ({ kind: __decoratorStrings2[kind], name, metadata, addInitializer: (fn) => done._ ? __typeError2("Already initialized") : fns.push(__expectFn2(fn || null)) });
599
+ var __decoratorMetadata2 = (array, target) => __defNormalProp2(target, __knownSymbol2("metadata"), array[3]);
600
+ var __runInitializers2 = (array, flags, self, value) => {
601
+ 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);
602
+ return value;
603
+ };
604
+ var __decorateElement2 = (array, flags, name, decorators, target, extra) => {
605
+ var fn, it, done, ctx, access, k22 = flags & 7, s22 = !!(flags & 8), p22 = !!(flags & 16);
606
+ var j22 = k22 > 3 ? array.length + 1 : k22 ? s22 ? 1 : 2 : 0, key = __decoratorStrings2[k22 + 5];
607
+ var initializers = k22 > 3 && (array[j22 - 1] = []), extraInitializers = array[j22] || (array[j22] = []);
608
+ var desc = k22 && (!p22 && !s22 && (target = target.prototype), k22 < 5 && (k22 > 3 || !p22) && __getOwnPropDesc2(k22 < 4 ? target : { get [name]() {
609
+ return __privateGet2(this, extra);
610
+ }, set [name](x22) {
611
+ return __privateSet2(this, extra, x22);
612
+ } }, name));
613
+ k22 ? p22 && k22 < 4 && __name2(extra, (k22 > 2 ? "set " : k22 > 1 ? "get " : "") + name) : __name2(target, name);
614
+ for (var i32 = decorators.length - 1; i32 >= 0; i32--) {
615
+ ctx = __decoratorContext2(k22, name, done = {}, array[3], extraInitializers);
616
+ if (k22) {
617
+ ctx.static = s22, ctx.private = p22, access = ctx.access = { has: p22 ? (x22) => __privateIn2(target, x22) : (x22) => name in x22 };
618
+ if (k22 ^ 3) access.get = p22 ? (x22) => (k22 ^ 1 ? __privateGet2 : __privateMethod2)(x22, target, k22 ^ 4 ? extra : desc.get) : (x22) => x22[name];
619
+ if (k22 > 2) access.set = p22 ? (x22, y22) => __privateSet2(x22, target, y22, k22 ^ 4 ? extra : desc.set) : (x22, y22) => x22[name] = y22;
620
+ }
621
+ 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;
622
+ if (k22 ^ 4 || it === void 0) __expectFn2(it) && (k22 > 4 ? initializers.unshift(it) : k22 ? p22 ? extra = it : desc[key] = it : target = it);
623
+ else if (typeof it !== "object" || it === null) __typeError2("Object expected");
624
+ else __expectFn2(fn = it.get) && (desc.get = fn), __expectFn2(fn = it.set) && (desc.set = fn), __expectFn2(fn = it.init) && initializers.unshift(fn);
625
+ }
626
+ return k22 || __decoratorMetadata2(array, target), desc && __defProp2(target, name, desc), p22 ? k22 ^ 4 ? extra : desc : target;
627
+ };
628
+ var __publicField = (obj, key, value) => __defNormalProp2(obj, typeof key !== "symbol" ? key + "" : key, value);
629
+ var __accessCheck2 = (obj, member, msg) => member.has(obj) || __typeError2("Cannot " + msg);
630
+ var __privateIn2 = (member, obj) => Object(obj) !== obj ? __typeError2('Cannot use the "in" operator on this value') : member.has(obj);
631
+ var __privateGet2 = (obj, member, getter) => (__accessCheck2(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
632
+ var __privateAdd = (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);
633
+ var __privateSet2 = (obj, member, value, setter) => (__accessCheck2(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
634
+ var __privateMethod2 = (obj, member, method) => (__accessCheck2(obj, member, "access private method"), method);
635
+ var t2 = globalThis;
636
+ var e3 = t2.ShadowRoot && (void 0 === t2.ShadyCSS || t2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
637
+ var s2 = Symbol();
638
+ var o3 = /* @__PURE__ */ new WeakMap();
639
+ var n4 = class {
640
+ constructor(t22, e42, o4) {
641
+ if (this._$cssResult$ = true, o4 !== s2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
642
+ this.cssText = t22, this.t = e42;
643
+ }
644
+ get styleSheet() {
645
+ let t22 = this.o;
646
+ const s22 = this.t;
647
+ if (e3 && void 0 === t22) {
648
+ const e42 = void 0 !== s22 && 1 === s22.length;
649
+ e42 && (t22 = o3.get(s22)), void 0 === t22 && ((this.o = t22 = new CSSStyleSheet()).replaceSync(this.cssText), e42 && o3.set(s22, t22));
650
+ }
651
+ return t22;
652
+ }
653
+ toString() {
654
+ return this.cssText;
655
+ }
656
+ };
657
+ var r3 = (t22) => new n4("string" == typeof t22 ? t22 : t22 + "", void 0, s2);
658
+ var S3 = (s22, o4) => {
659
+ if (e3) s22.adoptedStyleSheets = o4.map((t22) => t22 instanceof CSSStyleSheet ? t22 : t22.styleSheet);
660
+ else for (const e42 of o4) {
661
+ const o5 = document.createElement("style"), n52 = t2.litNonce;
662
+ void 0 !== n52 && o5.setAttribute("nonce", n52), o5.textContent = e42.cssText, s22.appendChild(o5);
663
+ }
664
+ };
665
+ var c4 = e3 ? (t22) => t22 : (t22) => t22 instanceof CSSStyleSheet ? ((t32) => {
666
+ let e42 = "";
667
+ for (const s22 of t32.cssRules) e42 += s22.cssText;
668
+ return r3(e42);
669
+ })(t22) : t22;
670
+ var { is: i22, defineProperty: e22, getOwnPropertyDescriptor: r22, getOwnPropertyNames: h4, getOwnPropertySymbols: o22, getPrototypeOf: n22 } = Object;
671
+ var a2 = globalThis;
672
+ var c22 = a2.trustedTypes;
673
+ var l2 = c22 ? c22.emptyScript : "";
674
+ var p2 = a2.reactiveElementPolyfillSupport;
675
+ var d2 = (t22, s22) => t22;
676
+ var u2 = { toAttribute(t22, s22) {
677
+ switch (s22) {
678
+ case Boolean:
679
+ t22 = t22 ? l2 : null;
680
+ break;
681
+ case Object:
682
+ case Array:
683
+ t22 = null == t22 ? t22 : JSON.stringify(t22);
684
+ }
685
+ return t22;
686
+ }, fromAttribute(t22, s22) {
687
+ let i32 = t22;
688
+ switch (s22) {
689
+ case Boolean:
690
+ i32 = null !== t22;
691
+ break;
692
+ case Number:
693
+ i32 = null === t22 ? null : Number(t22);
694
+ break;
695
+ case Object:
696
+ case Array:
697
+ try {
698
+ i32 = JSON.parse(t22);
699
+ } catch (t32) {
700
+ i32 = null;
701
+ }
702
+ }
703
+ return i32;
704
+ } };
705
+ var f4 = (t22, s22) => !i22(t22, s22);
706
+ var y2 = { attribute: true, type: String, converter: u2, reflect: false, hasChanged: f4 };
707
+ Symbol.metadata ??= Symbol("metadata"), a2.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
708
+ var b2 = class extends HTMLElement {
709
+ static addInitializer(t22) {
710
+ this._$Ei(), (this.l ??= []).push(t22);
711
+ }
712
+ static get observedAttributes() {
713
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
714
+ }
715
+ static createProperty(t22, s22 = y2) {
716
+ if (s22.state && (s22.attribute = false), this._$Ei(), this.elementProperties.set(t22, s22), !s22.noAccessor) {
717
+ const i32 = Symbol(), r4 = this.getPropertyDescriptor(t22, i32, s22);
718
+ void 0 !== r4 && e22(this.prototype, t22, r4);
719
+ }
720
+ }
721
+ static getPropertyDescriptor(t22, s22, i32) {
722
+ const { get: e42, set: h42 } = r22(this.prototype, t22) ?? { get() {
723
+ return this[s22];
724
+ }, set(t32) {
725
+ this[s22] = t32;
726
+ } };
727
+ return { get() {
728
+ return e42?.call(this);
729
+ }, set(s3) {
730
+ const r4 = e42?.call(this);
731
+ h42.call(this, s3), this.requestUpdate(t22, r4, i32);
732
+ }, configurable: true, enumerable: true };
733
+ }
734
+ static getPropertyOptions(t22) {
735
+ return this.elementProperties.get(t22) ?? y2;
736
+ }
737
+ static _$Ei() {
738
+ if (this.hasOwnProperty(d2("elementProperties"))) return;
739
+ const t22 = n22(this);
740
+ t22.finalize(), void 0 !== t22.l && (this.l = [...t22.l]), this.elementProperties = new Map(t22.elementProperties);
741
+ }
742
+ static finalize() {
743
+ if (this.hasOwnProperty(d2("finalized"))) return;
744
+ if (this.finalized = true, this._$Ei(), this.hasOwnProperty(d2("properties"))) {
745
+ const t32 = this.properties, s22 = [...h4(t32), ...o22(t32)];
746
+ for (const i32 of s22) this.createProperty(i32, t32[i32]);
747
+ }
748
+ const t22 = this[Symbol.metadata];
749
+ if (null !== t22) {
750
+ const s22 = litPropertyMetadata.get(t22);
751
+ if (void 0 !== s22) for (const [t32, i32] of s22) this.elementProperties.set(t32, i32);
752
+ }
753
+ this._$Eh = /* @__PURE__ */ new Map();
754
+ for (const [t32, s22] of this.elementProperties) {
755
+ const i32 = this._$Eu(t32, s22);
756
+ void 0 !== i32 && this._$Eh.set(i32, t32);
757
+ }
758
+ this.elementStyles = this.finalizeStyles(this.styles);
759
+ }
760
+ static finalizeStyles(s22) {
761
+ const i32 = [];
762
+ if (Array.isArray(s22)) {
763
+ const e42 = new Set(s22.flat(1 / 0).reverse());
764
+ for (const s3 of e42) i32.unshift(c4(s3));
765
+ } else void 0 !== s22 && i32.push(c4(s22));
766
+ return i32;
767
+ }
768
+ static _$Eu(t22, s22) {
769
+ const i32 = s22.attribute;
770
+ return false === i32 ? void 0 : "string" == typeof i32 ? i32 : "string" == typeof t22 ? t22.toLowerCase() : void 0;
771
+ }
772
+ constructor() {
773
+ super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
774
+ }
775
+ _$Ev() {
776
+ this._$ES = new Promise((t22) => this.enableUpdating = t22), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t22) => t22(this));
777
+ }
778
+ addController(t22) {
779
+ (this._$EO ??= /* @__PURE__ */ new Set()).add(t22), void 0 !== this.renderRoot && this.isConnected && t22.hostConnected?.();
780
+ }
781
+ removeController(t22) {
782
+ this._$EO?.delete(t22);
783
+ }
784
+ _$E_() {
785
+ const t22 = /* @__PURE__ */ new Map(), s22 = this.constructor.elementProperties;
786
+ for (const i32 of s22.keys()) this.hasOwnProperty(i32) && (t22.set(i32, this[i32]), delete this[i32]);
787
+ t22.size > 0 && (this._$Ep = t22);
788
+ }
789
+ createRenderRoot() {
790
+ const t22 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
791
+ return S3(t22, this.constructor.elementStyles), t22;
792
+ }
793
+ connectedCallback() {
794
+ this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t22) => t22.hostConnected?.());
795
+ }
796
+ enableUpdating(t22) {
797
+ }
798
+ disconnectedCallback() {
799
+ this._$EO?.forEach((t22) => t22.hostDisconnected?.());
800
+ }
801
+ attributeChangedCallback(t22, s22, i32) {
802
+ this._$AK(t22, i32);
803
+ }
804
+ _$EC(t22, s22) {
805
+ const i32 = this.constructor.elementProperties.get(t22), e42 = this.constructor._$Eu(t22, i32);
806
+ if (void 0 !== e42 && true === i32.reflect) {
807
+ const r4 = (void 0 !== i32.converter?.toAttribute ? i32.converter : u2).toAttribute(s22, i32.type);
808
+ this._$Em = t22, null == r4 ? this.removeAttribute(e42) : this.setAttribute(e42, r4), this._$Em = null;
809
+ }
810
+ }
811
+ _$AK(t22, s22) {
812
+ const i32 = this.constructor, e42 = i32._$Eh.get(t22);
813
+ if (void 0 !== e42 && this._$Em !== e42) {
814
+ const t32 = i32.getPropertyOptions(e42), r4 = "function" == typeof t32.converter ? { fromAttribute: t32.converter } : void 0 !== t32.converter?.fromAttribute ? t32.converter : u2;
815
+ this._$Em = e42, this[e42] = r4.fromAttribute(s22, t32.type), this._$Em = null;
816
+ }
817
+ }
818
+ requestUpdate(t22, s22, i32) {
819
+ if (void 0 !== t22) {
820
+ if (i32 ??= this.constructor.getPropertyOptions(t22), !(i32.hasChanged ?? f4)(this[t22], s22)) return;
821
+ this.P(t22, s22, i32);
822
+ }
823
+ false === this.isUpdatePending && (this._$ES = this._$ET());
824
+ }
825
+ P(t22, s22, i32) {
826
+ this._$AL.has(t22) || this._$AL.set(t22, s22), true === i32.reflect && this._$Em !== t22 && (this._$Ej ??= /* @__PURE__ */ new Set()).add(t22);
827
+ }
828
+ async _$ET() {
829
+ this.isUpdatePending = true;
830
+ try {
831
+ await this._$ES;
832
+ } catch (t32) {
833
+ Promise.reject(t32);
834
+ }
835
+ const t22 = this.scheduleUpdate();
836
+ return null != t22 && await t22, !this.isUpdatePending;
837
+ }
838
+ scheduleUpdate() {
839
+ return this.performUpdate();
840
+ }
841
+ performUpdate() {
842
+ if (!this.isUpdatePending) return;
843
+ if (!this.hasUpdated) {
844
+ if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
845
+ for (const [t42, s3] of this._$Ep) this[t42] = s3;
846
+ this._$Ep = void 0;
847
+ }
848
+ const t32 = this.constructor.elementProperties;
849
+ 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);
850
+ }
851
+ let t22 = false;
852
+ const s22 = this._$AL;
853
+ try {
854
+ t22 = this.shouldUpdate(s22), t22 ? (this.willUpdate(s22), this._$EO?.forEach((t32) => t32.hostUpdate?.()), this.update(s22)) : this._$EU();
855
+ } catch (s3) {
856
+ throw t22 = false, this._$EU(), s3;
857
+ }
858
+ t22 && this._$AE(s22);
859
+ }
860
+ willUpdate(t22) {
861
+ }
862
+ _$AE(t22) {
863
+ this._$EO?.forEach((t32) => t32.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t22)), this.updated(t22);
864
+ }
865
+ _$EU() {
866
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
867
+ }
868
+ get updateComplete() {
869
+ return this.getUpdateComplete();
870
+ }
871
+ getUpdateComplete() {
872
+ return this._$ES;
873
+ }
874
+ shouldUpdate(t22) {
875
+ return true;
876
+ }
877
+ update(t22) {
878
+ this._$Ej &&= this._$Ej.forEach((t32) => this._$EC(t32, this[t32])), this._$EU();
879
+ }
880
+ updated(t22) {
881
+ }
882
+ firstUpdated(t22) {
883
+ }
884
+ };
885
+ b2.elementStyles = [], b2.shadowRootOptions = { mode: "open" }, b2[d2("elementProperties")] = /* @__PURE__ */ new Map(), b2[d2("finalized")] = /* @__PURE__ */ new Map(), p2?.({ ReactiveElement: b2 }), (a2.reactiveElementVersions ??= []).push("2.0.4");
886
+ var n32 = globalThis;
887
+ var c32 = n32.trustedTypes;
888
+ var h22 = c32 ? c32.createPolicy("lit-html", { createHTML: (t22) => t22 }) : void 0;
889
+ var f22 = "$lit$";
890
+ var v2 = `lit$${Math.random().toFixed(9).slice(2)}$`;
891
+ var m2 = "?" + v2;
892
+ var _2 = `<${m2}>`;
893
+ var w2 = document;
894
+ var lt2 = () => w2.createComment("");
895
+ var st2 = (t22) => null === t22 || "object" != typeof t22 && "function" != typeof t22;
896
+ var g2 = Array.isArray;
897
+ var $2 = (t22) => g2(t22) || "function" == typeof t22?.[Symbol.iterator];
898
+ var x2 = "[ \n\f\r]";
899
+ var T2 = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
900
+ var E2 = /-->/g;
901
+ var k2 = />/g;
902
+ var O2 = RegExp(`>|${x2}(?:([^\\s"'>=/]+)(${x2}*=${x2}*(?:[^
903
+ \f\r"'\`<>=]|("|')|))|$)`, "g");
904
+ var S22 = /'/g;
905
+ var j2 = /"/g;
906
+ var M2 = /^(?:script|style|textarea|title)$/i;
907
+ var P2 = (t22) => (i32, ...s22) => ({ _$litType$: t22, strings: i32, values: s22 });
908
+ var ke2 = P2(1);
909
+ var Oe2 = P2(2);
910
+ var Se2 = P2(3);
911
+ var R2 = Symbol.for("lit-noChange");
912
+ var D2 = Symbol.for("lit-nothing");
913
+ var V2 = /* @__PURE__ */ new WeakMap();
914
+ var I2 = w2.createTreeWalker(w2, 129);
915
+ function N2(t22, i32) {
916
+ if (!g2(t22) || !t22.hasOwnProperty("raw")) throw Error("invalid template strings array");
917
+ return void 0 !== h22 ? h22.createHTML(i32) : i32;
918
+ }
919
+ var U2 = (t22, i32) => {
920
+ const s22 = t22.length - 1, e42 = [];
921
+ let h42, o4 = 2 === i32 ? "<svg>" : 3 === i32 ? "<math>" : "", n52 = T2;
922
+ for (let i4 = 0; i4 < s22; i4++) {
923
+ const s3 = t22[i4];
924
+ let r4, l22, c42 = -1, a22 = 0;
925
+ for (; a22 < s3.length && (n52.lastIndex = a22, l22 = n52.exec(s3), 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]) && (h42 = RegExp("</" + l22[2], "g")), n52 = O2) : void 0 !== l22[3] && (n52 = O2) : n52 === O2 ? ">" === l22[0] ? (n52 = h42 ?? T2, c42 = -1) : void 0 === l22[1] ? c42 = -2 : (c42 = n52.lastIndex - l22[2].length, r4 = l22[1], n52 = void 0 === l22[3] ? O2 : '"' === l22[3] ? j2 : S22) : n52 === j2 || n52 === S22 ? n52 = O2 : n52 === E2 || n52 === k2 ? n52 = T2 : (n52 = O2, h42 = void 0);
926
+ const u22 = n52 === O2 && t22[i4 + 1].startsWith("/>") ? " " : "";
927
+ o4 += n52 === T2 ? s3 + _2 : c42 >= 0 ? (e42.push(r4), s3.slice(0, c42) + f22 + s3.slice(c42) + v2 + u22) : s3 + v2 + (-2 === c42 ? i4 : u22);
928
+ }
929
+ return [N2(t22, o4 + (t22[s22] || "<?>") + (2 === i32 ? "</svg>" : 3 === i32 ? "</math>" : "")), e42];
930
+ };
931
+ var B2 = class _B {
932
+ constructor({ strings: t22, _$litType$: i32 }, s22) {
933
+ let e42;
934
+ this.parts = [];
935
+ let h42 = 0, o4 = 0;
936
+ const n52 = t22.length - 1, r4 = this.parts, [l22, a22] = U2(t22, i32);
937
+ if (this.el = _B.createElement(l22, s22), I2.currentNode = this.el.content, 2 === i32 || 3 === i32) {
938
+ const t32 = this.el.content.firstChild;
939
+ t32.replaceWith(...t32.childNodes);
940
+ }
941
+ for (; null !== (e42 = I2.nextNode()) && r4.length < n52; ) {
942
+ if (1 === e42.nodeType) {
943
+ if (e42.hasAttributes()) for (const t32 of e42.getAttributeNames()) if (t32.endsWith(f22)) {
944
+ const i4 = a22[o4++], s3 = e42.getAttribute(t32).split(v2), n6 = /([.?@])?(.*)/.exec(i4);
945
+ r4.push({ type: 1, index: h42, name: n6[2], strings: s3, ctor: "." === n6[1] ? Y2 : "?" === n6[1] ? Z2 : "@" === n6[1] ? q2 : G2 }), e42.removeAttribute(t32);
946
+ } else t32.startsWith(v2) && (r4.push({ type: 6, index: h42 }), e42.removeAttribute(t32));
947
+ if (M2.test(e42.tagName)) {
948
+ const t32 = e42.textContent.split(v2), i4 = t32.length - 1;
949
+ if (i4 > 0) {
950
+ e42.textContent = c32 ? c32.emptyScript : "";
951
+ for (let s3 = 0; s3 < i4; s3++) e42.append(t32[s3], lt2()), I2.nextNode(), r4.push({ type: 2, index: ++h42 });
952
+ e42.append(t32[i4], lt2());
953
+ }
954
+ }
955
+ } else if (8 === e42.nodeType) if (e42.data === m2) r4.push({ type: 2, index: h42 });
956
+ else {
957
+ let t32 = -1;
958
+ for (; -1 !== (t32 = e42.data.indexOf(v2, t32 + 1)); ) r4.push({ type: 7, index: h42 }), t32 += v2.length - 1;
959
+ }
960
+ h42++;
961
+ }
962
+ }
963
+ static createElement(t22, i32) {
964
+ const s22 = w2.createElement("template");
965
+ return s22.innerHTML = t22, s22;
966
+ }
967
+ };
968
+ function z2(t22, i32, s22 = t22, e42) {
969
+ if (i32 === R2) return i32;
970
+ let h42 = void 0 !== e42 ? s22.o?.[e42] : s22.l;
971
+ const o4 = st2(i32) ? void 0 : i32._$litDirective$;
972
+ return h42?.constructor !== o4 && (h42?._$AO?.(false), void 0 === o4 ? h42 = void 0 : (h42 = new o4(t22), h42._$AT(t22, s22, e42)), void 0 !== e42 ? (s22.o ??= [])[e42] = h42 : s22.l = h42), void 0 !== h42 && (i32 = z2(t22, h42._$AS(t22, i32.values), h42, e42)), i32;
973
+ }
974
+ var F2 = class {
975
+ constructor(t22, i32) {
976
+ this._$AV = [], this._$AN = void 0, this._$AD = t22, this._$AM = i32;
977
+ }
978
+ get parentNode() {
979
+ return this._$AM.parentNode;
980
+ }
981
+ get _$AU() {
982
+ return this._$AM._$AU;
983
+ }
984
+ u(t22) {
985
+ const { el: { content: i32 }, parts: s22 } = this._$AD, e42 = (t22?.creationScope ?? w2).importNode(i32, true);
986
+ I2.currentNode = e42;
987
+ let h42 = I2.nextNode(), o4 = 0, n52 = 0, r4 = s22[0];
988
+ for (; void 0 !== r4; ) {
989
+ if (o4 === r4.index) {
990
+ let i4;
991
+ 2 === r4.type ? i4 = new et2(h42, h42.nextSibling, this, t22) : 1 === r4.type ? i4 = new r4.ctor(h42, r4.name, r4.strings, this, t22) : 6 === r4.type && (i4 = new K2(h42, this, t22)), this._$AV.push(i4), r4 = s22[++n52];
992
+ }
993
+ o4 !== r4?.index && (h42 = I2.nextNode(), o4++);
994
+ }
995
+ return I2.currentNode = w2, e42;
996
+ }
997
+ p(t22) {
998
+ let i32 = 0;
999
+ 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++;
1000
+ }
1001
+ };
1002
+ var et2 = class _et {
1003
+ get _$AU() {
1004
+ return this._$AM?._$AU ?? this.v;
1005
+ }
1006
+ constructor(t22, i32, s22, e42) {
1007
+ this.type = 2, this._$AH = D2, this._$AN = void 0, this._$AA = t22, this._$AB = i32, this._$AM = s22, this.options = e42, this.v = e42?.isConnected ?? true;
1008
+ }
1009
+ get parentNode() {
1010
+ let t22 = this._$AA.parentNode;
1011
+ const i32 = this._$AM;
1012
+ return void 0 !== i32 && 11 === t22?.nodeType && (t22 = i32.parentNode), t22;
1013
+ }
1014
+ get startNode() {
1015
+ return this._$AA;
1016
+ }
1017
+ get endNode() {
1018
+ return this._$AB;
1019
+ }
1020
+ _$AI(t22, i32 = this) {
1021
+ t22 = z2(this, t22, i32), st2(t22) ? t22 === D2 || null == t22 || "" === t22 ? (this._$AH !== D2 && this._$AR(), this._$AH = D2) : 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);
1022
+ }
1023
+ O(t22) {
1024
+ return this._$AA.parentNode.insertBefore(t22, this._$AB);
1025
+ }
1026
+ T(t22) {
1027
+ this._$AH !== t22 && (this._$AR(), this._$AH = this.O(t22));
1028
+ }
1029
+ _(t22) {
1030
+ this._$AH !== D2 && st2(this._$AH) ? this._$AA.nextSibling.data = t22 : this.T(w2.createTextNode(t22)), this._$AH = t22;
1031
+ }
1032
+ $(t22) {
1033
+ 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);
1034
+ if (this._$AH?._$AD === e42) this._$AH.p(i32);
1035
+ else {
1036
+ const t32 = new F2(e42, this), s3 = t32.u(this.options);
1037
+ t32.p(i32), this.T(s3), this._$AH = t32;
1038
+ }
1039
+ }
1040
+ _$AC(t22) {
1041
+ let i32 = V2.get(t22.strings);
1042
+ return void 0 === i32 && V2.set(t22.strings, i32 = new B2(t22)), i32;
1043
+ }
1044
+ k(t22) {
1045
+ g2(this._$AH) || (this._$AH = [], this._$AR());
1046
+ const i32 = this._$AH;
1047
+ let s22, e42 = 0;
1048
+ for (const h42 of t22) e42 === i32.length ? i32.push(s22 = new _et(this.O(lt2()), this.O(lt2()), this, this.options)) : s22 = i32[e42], s22._$AI(h42), e42++;
1049
+ e42 < i32.length && (this._$AR(s22 && s22._$AB.nextSibling, e42), i32.length = e42);
1050
+ }
1051
+ _$AR(t22 = this._$AA.nextSibling, i32) {
1052
+ for (this._$AP?.(false, true, i32); t22 && t22 !== this._$AB; ) {
1053
+ const i4 = t22.nextSibling;
1054
+ t22.remove(), t22 = i4;
1055
+ }
1056
+ }
1057
+ setConnected(t22) {
1058
+ void 0 === this._$AM && (this.v = t22, this._$AP?.(t22));
1059
+ }
1060
+ };
1061
+ var G2 = class {
1062
+ get tagName() {
1063
+ return this.element.tagName;
1064
+ }
1065
+ get _$AU() {
1066
+ return this._$AM._$AU;
1067
+ }
1068
+ constructor(t22, i32, s22, e42, h42) {
1069
+ this.type = 1, this._$AH = D2, 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 = D2;
1070
+ }
1071
+ _$AI(t22, i32 = this, s22, e42) {
1072
+ const h42 = this.strings;
1073
+ let o4 = false;
1074
+ if (void 0 === h42) t22 = z2(this, t22, i32, 0), o4 = !st2(t22) || t22 !== this._$AH && t22 !== R2, o4 && (this._$AH = t22);
1075
+ else {
1076
+ const e52 = t22;
1077
+ let n52, r4;
1078
+ for (t22 = h42[0], n52 = 0; n52 < h42.length - 1; n52++) r4 = z2(this, e52[s22 + n52], i32, n52), r4 === R2 && (r4 = this._$AH[n52]), o4 ||= !st2(r4) || r4 !== this._$AH[n52], r4 === D2 ? t22 = D2 : t22 !== D2 && (t22 += (r4 ?? "") + h42[n52 + 1]), this._$AH[n52] = r4;
1079
+ }
1080
+ o4 && !e42 && this.j(t22);
1081
+ }
1082
+ j(t22) {
1083
+ t22 === D2 ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t22 ?? "");
1084
+ }
1085
+ };
1086
+ var Y2 = class extends G2 {
1087
+ constructor() {
1088
+ super(...arguments), this.type = 3;
1089
+ }
1090
+ j(t22) {
1091
+ this.element[this.name] = t22 === D2 ? void 0 : t22;
1092
+ }
1093
+ };
1094
+ var Z2 = class extends G2 {
1095
+ constructor() {
1096
+ super(...arguments), this.type = 4;
1097
+ }
1098
+ j(t22) {
1099
+ this.element.toggleAttribute(this.name, !!t22 && t22 !== D2);
1100
+ }
1101
+ };
1102
+ var q2 = class extends G2 {
1103
+ constructor(t22, i32, s22, e42, h42) {
1104
+ super(t22, i32, s22, e42, h42), this.type = 5;
1105
+ }
1106
+ _$AI(t22, i32 = this) {
1107
+ if ((t22 = z2(this, t22, i32, 0) ?? D2) === R2) return;
1108
+ const s22 = this._$AH, e42 = t22 === D2 && s22 !== D2 || t22.capture !== s22.capture || t22.once !== s22.once || t22.passive !== s22.passive, h42 = t22 !== D2 && (s22 === D2 || e42);
1109
+ e42 && this.element.removeEventListener(this.name, this, s22), h42 && this.element.addEventListener(this.name, this, t22), this._$AH = t22;
1110
+ }
1111
+ handleEvent(t22) {
1112
+ "function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t22) : this._$AH.handleEvent(t22);
1113
+ }
1114
+ };
1115
+ var K2 = class {
1116
+ constructor(t22, i32, s22) {
1117
+ this.element = t22, this.type = 6, this._$AN = void 0, this._$AM = i32, this.options = s22;
1118
+ }
1119
+ get _$AU() {
1120
+ return this._$AM._$AU;
1121
+ }
1122
+ _$AI(t22) {
1123
+ z2(this, t22);
1124
+ }
1125
+ };
1126
+ var Re2 = n32.litHtmlPolyfillSupport;
1127
+ Re2?.(B2, et2), (n32.litHtmlVersions ??= []).push("3.2.0");
1128
+ var Q2 = (t22, i32, s22) => {
1129
+ const e42 = s22?.renderBefore ?? i32;
1130
+ let h42 = e42._$litPart$;
1131
+ if (void 0 === h42) {
1132
+ const t32 = s22?.renderBefore ?? null;
1133
+ e42._$litPart$ = h42 = new et2(i32.insertBefore(lt2(), t32), t32, void 0, s22 ?? {});
1134
+ }
1135
+ return h42._$AI(t22), h42;
1136
+ };
1137
+ var h32 = class extends b2 {
1138
+ constructor() {
1139
+ super(...arguments), this.renderOptions = { host: this }, this.o = void 0;
1140
+ }
1141
+ createRenderRoot() {
1142
+ const t22 = super.createRenderRoot();
1143
+ return this.renderOptions.renderBefore ??= t22.firstChild, t22;
1144
+ }
1145
+ update(t22) {
1146
+ const e42 = this.render();
1147
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t22), this.o = Q2(e42, this.renderRoot, this.renderOptions);
1148
+ }
1149
+ connectedCallback() {
1150
+ super.connectedCallback(), this.o?.setConnected(true);
1151
+ }
1152
+ disconnectedCallback() {
1153
+ super.disconnectedCallback(), this.o?.setConnected(false);
1154
+ }
1155
+ render() {
1156
+ return R2;
1157
+ }
1158
+ };
1159
+ h32._$litElement$ = true, h32["finalized"] = true, globalThis.litElementHydrateSupport?.({ LitElement: h32 });
1160
+ var f32 = globalThis.litElementPolyfillSupport;
1161
+ f32?.({ LitElement: h32 });
1162
+ (globalThis.litElementVersions ??= []).push("4.1.0");
1163
+ var o32 = { attribute: true, type: String, converter: u2, reflect: false, hasChanged: f4 };
1164
+ var r32 = (t22 = o32, e42, r4) => {
1165
+ const { kind: n52, metadata: i32 } = r4;
1166
+ let s22 = globalThis.litPropertyMetadata.get(i32);
1167
+ if (void 0 === s22 && globalThis.litPropertyMetadata.set(i32, s22 = /* @__PURE__ */ new Map()), s22.set(r4.name, t22), "accessor" === n52) {
1168
+ const { name: o4 } = r4;
1169
+ return { set(r5) {
1170
+ const n6 = e42.get.call(this);
1171
+ e42.set.call(this, r5), this.requestUpdate(o4, n6, t22);
1172
+ }, init(e52) {
1173
+ return void 0 !== e52 && this.P(o4, void 0, t22), e52;
1174
+ } };
1175
+ }
1176
+ if ("setter" === n52) {
1177
+ const { name: o4 } = r4;
1178
+ return function(r5) {
1179
+ const n6 = this[o4];
1180
+ e42.call(this, r5), this.requestUpdate(o4, n6, t22);
1181
+ };
1182
+ }
1183
+ throw Error("Unsupported decorator location: " + n52);
1184
+ };
1185
+ function n42(t22) {
1186
+ return (e42, o4) => "object" == typeof o4 ? r32(t22, e42, o4) : ((t32, e52, o5) => {
1187
+ const r4 = e52.hasOwnProperty(o5);
1188
+ return e52.constructor.createProperty(o5, r4 ? { ...t32, wrapped: true } : t32), r4 ? Object.getOwnPropertyDescriptor(e52, o5) : void 0;
1189
+ })(t22, e42, o4);
1190
+ }
1191
+ var appliedClassMixins = /* @__PURE__ */ new WeakMap();
1192
+ function wasMixinPreviouslyApplied(mixin, superClass) {
1193
+ let klass = superClass;
1194
+ while (klass) {
1195
+ if (appliedClassMixins.get(klass) === mixin) {
1196
+ return true;
1197
+ }
1198
+ klass = Object.getPrototypeOf(klass);
1199
+ }
1200
+ return false;
1201
+ }
1202
+ function dedupeMixin(mixin) {
1203
+ return (superClass) => {
1204
+ if (wasMixinPreviouslyApplied(mixin, superClass)) {
1205
+ return superClass;
1206
+ }
1207
+ const mixedClass = mixin(superClass);
1208
+ appliedClassMixins.set(mixedClass, mixin);
1209
+ return mixedClass;
1210
+ };
1211
+ }
1212
+ var version = "3.0.0";
1213
+ var versions = window.scopedElementsVersions || (window.scopedElementsVersions = []);
1214
+ if (!versions.includes(version)) {
1215
+ versions.push(version);
1216
+ }
1217
+ var ScopedElementsMixinImplementation = (superclass) => (
1218
+ /** @type {ScopedElementsHost} */
1219
+ class ScopedElementsHost extends superclass {
1220
+ /**
1221
+ * Obtains the scoped elements definitions map if specified.
1222
+ *
1223
+ * @type {ScopedElementsMap=}
1224
+ */
1225
+ static scopedElements;
1226
+ static get scopedElementsVersion() {
1227
+ return version;
1228
+ }
1229
+ /** @type {CustomElementRegistry=} */
1230
+ static __registry;
1231
+ /**
1232
+ * Obtains the CustomElementRegistry associated to the ShadowRoot.
1233
+ *
1234
+ * @returns {CustomElementRegistry=}
1235
+ */
1236
+ get registry() {
1237
+ return (
1238
+ /** @type {typeof ScopedElementsHost} */
1239
+ this.constructor.__registry
1240
+ );
1241
+ }
1242
+ /**
1243
+ * Set the CustomElementRegistry associated to the ShadowRoot
1244
+ *
1245
+ * @param {CustomElementRegistry} registry
1246
+ */
1247
+ set registry(registry) {
1248
+ this.constructor.__registry = registry;
1249
+ }
1250
+ /**
1251
+ * @param {ShadowRootInit} options
1252
+ * @returns {ShadowRoot}
1253
+ */
1254
+ attachShadow(options) {
1255
+ const { scopedElements } = (
1256
+ /** @type {typeof ScopedElementsHost} */
1257
+ this.constructor
1258
+ );
1259
+ const shouldCreateRegistry = !this.registry || // @ts-ignore
1260
+ this.registry === this.constructor.__registry && !Object.prototype.hasOwnProperty.call(this.constructor, "__registry");
1261
+ if (shouldCreateRegistry) {
1262
+ this.registry = new CustomElementRegistry();
1263
+ for (const [tagName, klass] of Object.entries(scopedElements ?? {})) {
1264
+ this.registry.define(tagName, klass);
1265
+ }
1266
+ }
1267
+ return super.attachShadow({
1268
+ ...options,
1269
+ // The polyfill currently expects the registry to be passed as `customElements`
1270
+ customElements: this.registry,
1271
+ // But the proposal has moved forward, and renamed it to `registry`
1272
+ // For backwards compatibility, we pass it as both
1273
+ registry: this.registry
1274
+ });
1275
+ }
1276
+ }
1277
+ );
1278
+ var ScopedElementsMixin = dedupeMixin(ScopedElementsMixinImplementation);
1279
+ var ScopedElementsMixinImplementation2 = (superclass) => (
1280
+ /** @type {ScopedElementsHost} */
1281
+ class ScopedElementsHost extends ScopedElementsMixin(superclass) {
1282
+ createRenderRoot() {
1283
+ const { shadowRootOptions, elementStyles } = (
1284
+ /** @type {TypeofLitElement} */
1285
+ this.constructor
1286
+ );
1287
+ const shadowRoot = this.attachShadow(shadowRootOptions);
1288
+ this.renderOptions.creationScope = shadowRoot;
1289
+ S3(shadowRoot, elementStyles);
1290
+ this.renderOptions.renderBefore ??= shadowRoot.firstChild;
1291
+ return shadowRoot;
1292
+ }
1293
+ }
1294
+ );
1295
+ var ScopedElementsMixin2 = dedupeMixin(ScopedElementsMixinImplementation2);
1296
+ var _lang_dec;
1297
+ var _contentEditable_dec;
1298
+ var _a;
1299
+ var _init;
1300
+ var _contentEditable;
1301
+ var _lang;
1302
+ var LitElementWw = class extends (_a = ScopedElementsMixin2(h32), _contentEditable_dec = [n42({ type: String, attribute: true, reflect: true })], _lang_dec = [n42({ type: String, attribute: true, reflect: true })], _a) {
1303
+ constructor() {
1304
+ super(...arguments);
1305
+ __publicField(this, "options");
1306
+ __publicField(this, "actions", {});
1307
+ __privateAdd(this, _contentEditable, __runInitializers2(_init, 8, this)), __runInitializers2(_init, 11, this);
1308
+ __privateAdd(this, _lang, __runInitializers2(_init, 12, this)), __runInitializers2(_init, 15, this);
1309
+ __publicField(this, "_inTransaction", false);
1310
+ }
1311
+ connectedCallback() {
1312
+ super.connectedCallback();
1313
+ this.getAttributeNames().forEach((k22) => this.setAttribute(k22, this.getAttribute(k22)));
1314
+ }
1315
+ };
1316
+ _init = __decoratorStart2(_a);
1317
+ _contentEditable = /* @__PURE__ */ new WeakMap();
1318
+ _lang = /* @__PURE__ */ new WeakMap();
1319
+ __decorateElement2(_init, 4, "contentEditable", _contentEditable_dec, LitElementWw, _contentEditable);
1320
+ __decorateElement2(_init, 4, "lang", _lang_dec, LitElementWw, _lang);
1321
+ __decoratorMetadata2(_init, LitElementWw);
1322
+ __publicField(LitElementWw, "shadowRootOptions", { ...h32.shadowRootOptions });
1323
+ __publicField(LitElementWw, "options", {});
1324
+ __publicField(LitElementWw, "actions", {});
1325
+
1326
+ // ../../node_modules/lit/node_modules/@lit/reactive-element/decorators/custom-element.js
1327
+ var t3 = (t5) => (e6, o4) => {
1328
+ void 0 !== o4 ? o4.addInitializer(() => {
1329
+ customElements.define(t5, e6);
1330
+ }) : customElements.define(t5, e6);
1331
+ };
1332
+
1333
+ // ../../node_modules/lit/node_modules/lit-html/directive.js
1334
+ var t4 = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 };
1335
+ var e5 = (t5) => (...e6) => ({ _$litDirective$: t5, values: e6 });
1336
+ var i3 = class {
1337
+ constructor(t5) {
1338
+ }
1339
+ get _$AU() {
1340
+ return this._$AM._$AU;
1341
+ }
1342
+ _$AT(t5, e6, i4) {
1343
+ this.t = t5, this._$AM = e6, this.i = i4;
1344
+ }
1345
+ _$AS(t5, e6) {
1346
+ return this.update(t5, e6);
1347
+ }
1348
+ update(t5, e6) {
1349
+ return this.render(...e6);
1350
+ }
1351
+ };
1352
+
1353
+ // ../../node_modules/lit/node_modules/lit-html/directives/style-map.js
1354
+ var ee = "important";
1355
+ var ie = " !" + ee;
1356
+ var se = e5(class extends i3 {
1357
+ constructor(e6) {
1358
+ if (super(e6), e6.type !== t4.ATTRIBUTE || "style" !== e6.name || e6.strings?.length > 2) throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.");
1359
+ }
1360
+ render(t5) {
1361
+ return Object.keys(t5).reduce((e6, r4) => {
1362
+ const s3 = t5[r4];
1363
+ return null == s3 ? e6 : e6 + `${r4 = r4.includes("-") ? r4 : r4.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g, "-$&").toLowerCase()}:${s3};`;
1364
+ }, "");
1365
+ }
1366
+ update(t5, [e6]) {
1367
+ const { style: r4 } = t5.element;
1368
+ if (void 0 === this.ft) return this.ft = new Set(Object.keys(e6)), this.render(e6);
1369
+ for (const t6 of this.ft) null == e6[t6] && (this.ft.delete(t6), t6.includes("-") ? r4.removeProperty(t6) : r4[t6] = null);
1370
+ for (const t6 in e6) {
1371
+ const s3 = e6[t6];
1372
+ if (null != s3) {
1373
+ this.ft.add(t6);
1374
+ const e7 = "string" == typeof s3 && s3.endsWith(ie);
1375
+ t6.includes("-") || e7 ? r4.setProperty(t6, e7 ? s3.slice(0, -11) : s3, e7 ? ee : "") : r4[t6] = s3;
1376
+ }
1377
+ }
1378
+ return R;
1379
+ }
1380
+ });
1381
+
49
1382
  // src/widgets/webwriter-task-prompt.ts
50
- import { html } from "lit";
51
- import { LitElementWw } from "@webwriter/lit";
52
- import { customElement } from "lit/decorators.js";
53
- import { styleMap } from "lit/directives/style-map.js";
54
- var _WebwriterTaskPrompt_decorators, _init, _a;
55
- _WebwriterTaskPrompt_decorators = [customElement("webwriter-task-prompt")];
56
- var WebwriterTaskPrompt = class extends (_a = LitElementWw) {
1383
+ var _WebwriterTaskPrompt_decorators, _init2, _a2;
1384
+ _WebwriterTaskPrompt_decorators = [t3("webwriter-task-prompt")];
1385
+ var WebwriterTaskPrompt = class extends (_a2 = LitElementWw) {
57
1386
  render() {
58
- return html`<slot style=${styleMap({ "--ww-placeholder": `"Prompt"` })}>
1387
+ return ke`<slot style=${se({ "--ww-placeholder": `"Prompt"` })}>
59
1388
 
60
1389
  </slot>`;
61
1390
  }
62
1391
  };
63
- _init = __decoratorStart(_a);
64
- WebwriterTaskPrompt = __decorateElement(_init, 0, "WebwriterTaskPrompt", _WebwriterTaskPrompt_decorators, WebwriterTaskPrompt);
65
- __runInitializers(_init, 1, WebwriterTaskPrompt);
1392
+ _init2 = __decoratorStart(_a2);
1393
+ WebwriterTaskPrompt = __decorateElement(_init2, 0, "WebwriterTaskPrompt", _WebwriterTaskPrompt_decorators, WebwriterTaskPrompt);
1394
+ __runInitializers(_init2, 1, WebwriterTaskPrompt);
66
1395
  export {
67
1396
  WebwriterTaskPrompt
68
1397
  };
1398
+ /*! Bundled license information:
1399
+
1400
+ @lit/reactive-element/css-tag.js:
1401
+ (**
1402
+ * @license
1403
+ * Copyright 2019 Google LLC
1404
+ * SPDX-License-Identifier: BSD-3-Clause
1405
+ *)
1406
+
1407
+ @lit/reactive-element/reactive-element.js:
1408
+ (**
1409
+ * @license
1410
+ * Copyright 2017 Google LLC
1411
+ * SPDX-License-Identifier: BSD-3-Clause
1412
+ *)
1413
+
1414
+ lit-html/lit-html.js:
1415
+ (**
1416
+ * @license
1417
+ * Copyright 2017 Google LLC
1418
+ * SPDX-License-Identifier: BSD-3-Clause
1419
+ *)
1420
+
1421
+ lit-element/lit-element.js:
1422
+ (**
1423
+ * @license
1424
+ * Copyright 2017 Google LLC
1425
+ * SPDX-License-Identifier: BSD-3-Clause
1426
+ *)
1427
+
1428
+ lit-html/is-server.js:
1429
+ (**
1430
+ * @license
1431
+ * Copyright 2022 Google LLC
1432
+ * SPDX-License-Identifier: BSD-3-Clause
1433
+ *)
1434
+
1435
+ @lit/reactive-element/decorators/custom-element.js:
1436
+ (**
1437
+ * @license
1438
+ * Copyright 2017 Google LLC
1439
+ * SPDX-License-Identifier: BSD-3-Clause
1440
+ *)
1441
+
1442
+ @lit/reactive-element/decorators/property.js:
1443
+ (**
1444
+ * @license
1445
+ * Copyright 2017 Google LLC
1446
+ * SPDX-License-Identifier: BSD-3-Clause
1447
+ *)
1448
+
1449
+ @lit/reactive-element/decorators/state.js:
1450
+ (**
1451
+ * @license
1452
+ * Copyright 2017 Google LLC
1453
+ * SPDX-License-Identifier: BSD-3-Clause
1454
+ *)
1455
+
1456
+ @lit/reactive-element/decorators/event-options.js:
1457
+ (**
1458
+ * @license
1459
+ * Copyright 2017 Google LLC
1460
+ * SPDX-License-Identifier: BSD-3-Clause
1461
+ *)
1462
+
1463
+ @lit/reactive-element/decorators/base.js:
1464
+ (**
1465
+ * @license
1466
+ * Copyright 2017 Google LLC
1467
+ * SPDX-License-Identifier: BSD-3-Clause
1468
+ *)
1469
+
1470
+ @lit/reactive-element/decorators/query.js:
1471
+ (**
1472
+ * @license
1473
+ * Copyright 2017 Google LLC
1474
+ * SPDX-License-Identifier: BSD-3-Clause
1475
+ *)
1476
+
1477
+ @lit/reactive-element/decorators/query-all.js:
1478
+ (**
1479
+ * @license
1480
+ * Copyright 2017 Google LLC
1481
+ * SPDX-License-Identifier: BSD-3-Clause
1482
+ *)
1483
+
1484
+ @lit/reactive-element/decorators/query-async.js:
1485
+ (**
1486
+ * @license
1487
+ * Copyright 2017 Google LLC
1488
+ * SPDX-License-Identifier: BSD-3-Clause
1489
+ *)
1490
+
1491
+ @lit/reactive-element/decorators/query-assigned-elements.js:
1492
+ (**
1493
+ * @license
1494
+ * Copyright 2021 Google LLC
1495
+ * SPDX-License-Identifier: BSD-3-Clause
1496
+ *)
1497
+
1498
+ @lit/reactive-element/decorators/query-assigned-nodes.js:
1499
+ (**
1500
+ * @license
1501
+ * Copyright 2017 Google LLC
1502
+ * SPDX-License-Identifier: BSD-3-Clause
1503
+ *)
1504
+ */
1505
+ /*! Bundled license information:
1506
+
1507
+ @lit/reactive-element/css-tag.js:
1508
+ (**
1509
+ * @license
1510
+ * Copyright 2019 Google LLC
1511
+ * SPDX-License-Identifier: BSD-3-Clause
1512
+ *)
1513
+
1514
+ @lit/reactive-element/reactive-element.js:
1515
+ (**
1516
+ * @license
1517
+ * Copyright 2017 Google LLC
1518
+ * SPDX-License-Identifier: BSD-3-Clause
1519
+ *)
1520
+
1521
+ lit-html/lit-html.js:
1522
+ (**
1523
+ * @license
1524
+ * Copyright 2017 Google LLC
1525
+ * SPDX-License-Identifier: BSD-3-Clause
1526
+ *)
1527
+
1528
+ lit-element/lit-element.js:
1529
+ (**
1530
+ * @license
1531
+ * Copyright 2017 Google LLC
1532
+ * SPDX-License-Identifier: BSD-3-Clause
1533
+ *)
1534
+
1535
+ lit-html/is-server.js:
1536
+ (**
1537
+ * @license
1538
+ * Copyright 2022 Google LLC
1539
+ * SPDX-License-Identifier: BSD-3-Clause
1540
+ *)
1541
+
1542
+ @lit/reactive-element/decorators/custom-element.js:
1543
+ (**
1544
+ * @license
1545
+ * Copyright 2017 Google LLC
1546
+ * SPDX-License-Identifier: BSD-3-Clause
1547
+ *)
1548
+
1549
+ @lit/reactive-element/decorators/property.js:
1550
+ (**
1551
+ * @license
1552
+ * Copyright 2017 Google LLC
1553
+ * SPDX-License-Identifier: BSD-3-Clause
1554
+ *)
1555
+
1556
+ @lit/reactive-element/decorators/state.js:
1557
+ (**
1558
+ * @license
1559
+ * Copyright 2017 Google LLC
1560
+ * SPDX-License-Identifier: BSD-3-Clause
1561
+ *)
1562
+
1563
+ @lit/reactive-element/decorators/event-options.js:
1564
+ (**
1565
+ * @license
1566
+ * Copyright 2017 Google LLC
1567
+ * SPDX-License-Identifier: BSD-3-Clause
1568
+ *)
1569
+
1570
+ @lit/reactive-element/decorators/base.js:
1571
+ (**
1572
+ * @license
1573
+ * Copyright 2017 Google LLC
1574
+ * SPDX-License-Identifier: BSD-3-Clause
1575
+ *)
1576
+
1577
+ @lit/reactive-element/decorators/query.js:
1578
+ (**
1579
+ * @license
1580
+ * Copyright 2017 Google LLC
1581
+ * SPDX-License-Identifier: BSD-3-Clause
1582
+ *)
1583
+
1584
+ @lit/reactive-element/decorators/query-all.js:
1585
+ (**
1586
+ * @license
1587
+ * Copyright 2017 Google LLC
1588
+ * SPDX-License-Identifier: BSD-3-Clause
1589
+ *)
1590
+
1591
+ @lit/reactive-element/decorators/query-async.js:
1592
+ (**
1593
+ * @license
1594
+ * Copyright 2017 Google LLC
1595
+ * SPDX-License-Identifier: BSD-3-Clause
1596
+ *)
1597
+
1598
+ @lit/reactive-element/decorators/query-assigned-elements.js:
1599
+ (**
1600
+ * @license
1601
+ * Copyright 2021 Google LLC
1602
+ * SPDX-License-Identifier: BSD-3-Clause
1603
+ *)
1604
+
1605
+ @lit/reactive-element/decorators/query-assigned-nodes.js:
1606
+ (**
1607
+ * @license
1608
+ * Copyright 2017 Google LLC
1609
+ * SPDX-License-Identifier: BSD-3-Clause
1610
+ *)
1611
+
1612
+ lit-html/directive.js:
1613
+ (**
1614
+ * @license
1615
+ * Copyright 2017 Google LLC
1616
+ * SPDX-License-Identifier: BSD-3-Clause
1617
+ *)
1618
+
1619
+ lit-html/directives/style-map.js:
1620
+ (**
1621
+ * @license
1622
+ * Copyright 2018 Google LLC
1623
+ * SPDX-License-Identifier: BSD-3-Clause
1624
+ *)
1625
+ */