@webwriter/quiz 1.0.2 → 1.0.4

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