shop-components 0.2.5 → 0.2.6

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.
@@ -0,0 +1,708 @@
1
+ var Ot = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
+ function xt(r) {
3
+ return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
4
+ }
5
+ function Tt(r) {
6
+ if (r.__esModule)
7
+ return r;
8
+ var t = r.default;
9
+ if (typeof t == "function") {
10
+ var e = function s() {
11
+ return this instanceof s ? Reflect.construct(t, arguments, this.constructor) : t.apply(this, arguments);
12
+ };
13
+ e.prototype = t.prototype;
14
+ } else
15
+ e = {};
16
+ return Object.defineProperty(e, "__esModule", { value: !0 }), Object.keys(r).forEach(function(s) {
17
+ var i = Object.getOwnPropertyDescriptor(r, s);
18
+ Object.defineProperty(e, s, i.get ? i : {
19
+ enumerable: !0,
20
+ get: function() {
21
+ return r[s];
22
+ }
23
+ });
24
+ }), e;
25
+ }
26
+ /**
27
+ * @license
28
+ * Copyright 2019 Google LLC
29
+ * SPDX-License-Identifier: BSD-3-Clause
30
+ */
31
+ const T = globalThis, z = T.ShadowRoot && (T.ShadyCSS === void 0 || T.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, I = Symbol(), W = /* @__PURE__ */ new WeakMap();
32
+ let et = class {
33
+ constructor(t, e, s) {
34
+ if (this._$cssResult$ = !0, s !== I)
35
+ throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
36
+ this.cssText = t, this.t = e;
37
+ }
38
+ get styleSheet() {
39
+ let t = this.o;
40
+ const e = this.t;
41
+ if (z && t === void 0) {
42
+ const s = e !== void 0 && e.length === 1;
43
+ s && (t = W.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && W.set(e, t));
44
+ }
45
+ return t;
46
+ }
47
+ toString() {
48
+ return this.cssText;
49
+ }
50
+ };
51
+ const at = (r) => new et(typeof r == "string" ? r : r + "", void 0, I), Mt = (r, ...t) => {
52
+ const e = r.length === 1 ? r[0] : t.reduce((s, i, o) => s + ((n) => {
53
+ if (n._$cssResult$ === !0)
54
+ return n.cssText;
55
+ if (typeof n == "number")
56
+ return n;
57
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
58
+ })(i) + r[o + 1], r[0]);
59
+ return new et(e, r, I);
60
+ }, lt = (r, t) => {
61
+ if (z)
62
+ r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
63
+ else
64
+ for (const e of t) {
65
+ const s = document.createElement("style"), i = T.litNonce;
66
+ i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
67
+ }
68
+ }, V = z ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
69
+ let e = "";
70
+ for (const s of t.cssRules)
71
+ e += s.cssText;
72
+ return at(e);
73
+ })(r) : r;
74
+ /**
75
+ * @license
76
+ * Copyright 2017 Google LLC
77
+ * SPDX-License-Identifier: BSD-3-Clause
78
+ */
79
+ const { is: ct, defineProperty: dt, getOwnPropertyDescriptor: pt, getOwnPropertyNames: ut, getOwnPropertySymbols: $t, getPrototypeOf: ft } = Object, _ = globalThis, q = _.trustedTypes, _t = q ? q.emptyScript : "", j = _.reactiveElementPolyfillSupport, S = (r, t) => r, M = { toAttribute(r, t) {
80
+ switch (t) {
81
+ case Boolean:
82
+ r = r ? _t : null;
83
+ break;
84
+ case Object:
85
+ case Array:
86
+ r = r == null ? r : JSON.stringify(r);
87
+ }
88
+ return r;
89
+ }, fromAttribute(r, t) {
90
+ let e = r;
91
+ switch (t) {
92
+ case Boolean:
93
+ e = r !== null;
94
+ break;
95
+ case Number:
96
+ e = r === null ? null : Number(r);
97
+ break;
98
+ case Object:
99
+ case Array:
100
+ try {
101
+ e = JSON.parse(r);
102
+ } catch {
103
+ e = null;
104
+ }
105
+ }
106
+ return e;
107
+ } }, B = (r, t) => !ct(r, t), J = { attribute: !0, type: String, converter: M, reflect: !1, hasChanged: B };
108
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _.litPropertyMetadata ?? (_.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
109
+ let m = class extends HTMLElement {
110
+ static addInitializer(t) {
111
+ this._$Ei(), (this.l ?? (this.l = [])).push(t);
112
+ }
113
+ static get observedAttributes() {
114
+ return this.finalize(), this._$Eh && [...this._$Eh.keys()];
115
+ }
116
+ static createProperty(t, e = J) {
117
+ if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
118
+ const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
119
+ i !== void 0 && dt(this.prototype, t, i);
120
+ }
121
+ }
122
+ static getPropertyDescriptor(t, e, s) {
123
+ const { get: i, set: o } = pt(this.prototype, t) ?? { get() {
124
+ return this[e];
125
+ }, set(n) {
126
+ this[e] = n;
127
+ } };
128
+ return { get() {
129
+ return i == null ? void 0 : i.call(this);
130
+ }, set(n) {
131
+ const a = i == null ? void 0 : i.call(this);
132
+ o.call(this, n), this.requestUpdate(t, a, s);
133
+ }, configurable: !0, enumerable: !0 };
134
+ }
135
+ static getPropertyOptions(t) {
136
+ return this.elementProperties.get(t) ?? J;
137
+ }
138
+ static _$Ei() {
139
+ if (this.hasOwnProperty(S("elementProperties")))
140
+ return;
141
+ const t = ft(this);
142
+ t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
143
+ }
144
+ static finalize() {
145
+ if (this.hasOwnProperty(S("finalized")))
146
+ return;
147
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(S("properties"))) {
148
+ const e = this.properties, s = [...ut(e), ...$t(e)];
149
+ for (const i of s)
150
+ this.createProperty(i, e[i]);
151
+ }
152
+ const t = this[Symbol.metadata];
153
+ if (t !== null) {
154
+ const e = litPropertyMetadata.get(t);
155
+ if (e !== void 0)
156
+ for (const [s, i] of e)
157
+ this.elementProperties.set(s, i);
158
+ }
159
+ this._$Eh = /* @__PURE__ */ new Map();
160
+ for (const [e, s] of this.elementProperties) {
161
+ const i = this._$Eu(e, s);
162
+ i !== void 0 && this._$Eh.set(i, e);
163
+ }
164
+ this.elementStyles = this.finalizeStyles(this.styles);
165
+ }
166
+ static finalizeStyles(t) {
167
+ const e = [];
168
+ if (Array.isArray(t)) {
169
+ const s = new Set(t.flat(1 / 0).reverse());
170
+ for (const i of s)
171
+ e.unshift(V(i));
172
+ } else
173
+ t !== void 0 && e.push(V(t));
174
+ return e;
175
+ }
176
+ static _$Eu(t, e) {
177
+ const s = e.attribute;
178
+ return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
179
+ }
180
+ constructor() {
181
+ super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
182
+ }
183
+ _$Ev() {
184
+ var t;
185
+ this._$Eg = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$ES(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
186
+ }
187
+ addController(t) {
188
+ var e;
189
+ (this._$E_ ?? (this._$E_ = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
190
+ }
191
+ removeController(t) {
192
+ var e;
193
+ (e = this._$E_) == null || e.delete(t);
194
+ }
195
+ _$ES() {
196
+ const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
197
+ for (const s of e.keys())
198
+ this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
199
+ t.size > 0 && (this._$Ep = t);
200
+ }
201
+ createRenderRoot() {
202
+ const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
203
+ return lt(t, this.constructor.elementStyles), t;
204
+ }
205
+ connectedCallback() {
206
+ var t;
207
+ this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$E_) == null || t.forEach((e) => {
208
+ var s;
209
+ return (s = e.hostConnected) == null ? void 0 : s.call(e);
210
+ });
211
+ }
212
+ enableUpdating(t) {
213
+ }
214
+ disconnectedCallback() {
215
+ var t;
216
+ (t = this._$E_) == null || t.forEach((e) => {
217
+ var s;
218
+ return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
219
+ });
220
+ }
221
+ attributeChangedCallback(t, e, s) {
222
+ this._$AK(t, s);
223
+ }
224
+ _$EO(t, e) {
225
+ var o;
226
+ const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
227
+ if (i !== void 0 && s.reflect === !0) {
228
+ const n = (((o = s.converter) == null ? void 0 : o.toAttribute) !== void 0 ? s.converter : M).toAttribute(e, s.type);
229
+ this._$Em = t, n == null ? this.removeAttribute(i) : this.setAttribute(i, n), this._$Em = null;
230
+ }
231
+ }
232
+ _$AK(t, e) {
233
+ var o;
234
+ const s = this.constructor, i = s._$Eh.get(t);
235
+ if (i !== void 0 && this._$Em !== i) {
236
+ const n = s.getPropertyOptions(i), a = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((o = n.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? n.converter : M;
237
+ this._$Em = i, this[i] = a.fromAttribute(e, n.type), this._$Em = null;
238
+ }
239
+ }
240
+ requestUpdate(t, e, s) {
241
+ if (t !== void 0) {
242
+ if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? B)(this[t], e))
243
+ return;
244
+ this.C(t, e, s);
245
+ }
246
+ this.isUpdatePending === !1 && (this._$Eg = this._$EP());
247
+ }
248
+ C(t, e, s) {
249
+ this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$Em !== t && (this._$ET ?? (this._$ET = /* @__PURE__ */ new Set())).add(t);
250
+ }
251
+ async _$EP() {
252
+ this.isUpdatePending = !0;
253
+ try {
254
+ await this._$Eg;
255
+ } catch (e) {
256
+ Promise.reject(e);
257
+ }
258
+ const t = this.scheduleUpdate();
259
+ return t != null && await t, !this.isUpdatePending;
260
+ }
261
+ scheduleUpdate() {
262
+ return this.performUpdate();
263
+ }
264
+ performUpdate() {
265
+ var s;
266
+ if (!this.isUpdatePending)
267
+ return;
268
+ if (!this.hasUpdated) {
269
+ if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
270
+ for (const [o, n] of this._$Ep)
271
+ this[o] = n;
272
+ this._$Ep = void 0;
273
+ }
274
+ const i = this.constructor.elementProperties;
275
+ if (i.size > 0)
276
+ for (const [o, n] of i)
277
+ n.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.C(o, this[o], n);
278
+ }
279
+ let t = !1;
280
+ const e = this._$AL;
281
+ try {
282
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$E_) == null || s.forEach((i) => {
283
+ var o;
284
+ return (o = i.hostUpdate) == null ? void 0 : o.call(i);
285
+ }), this.update(e)) : this._$Ej();
286
+ } catch (i) {
287
+ throw t = !1, this._$Ej(), i;
288
+ }
289
+ t && this._$AE(e);
290
+ }
291
+ willUpdate(t) {
292
+ }
293
+ _$AE(t) {
294
+ var e;
295
+ (e = this._$E_) == null || e.forEach((s) => {
296
+ var i;
297
+ return (i = s.hostUpdated) == null ? void 0 : i.call(s);
298
+ }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
299
+ }
300
+ _$Ej() {
301
+ this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
302
+ }
303
+ get updateComplete() {
304
+ return this.getUpdateComplete();
305
+ }
306
+ getUpdateComplete() {
307
+ return this._$Eg;
308
+ }
309
+ shouldUpdate(t) {
310
+ return !0;
311
+ }
312
+ update(t) {
313
+ this._$ET && (this._$ET = this._$ET.forEach((e) => this._$EO(e, this[e]))), this._$Ej();
314
+ }
315
+ updated(t) {
316
+ }
317
+ firstUpdated(t) {
318
+ }
319
+ };
320
+ m.elementStyles = [], m.shadowRootOptions = { mode: "open" }, m[S("elementProperties")] = /* @__PURE__ */ new Map(), m[S("finalized")] = /* @__PURE__ */ new Map(), j == null || j({ ReactiveElement: m }), (_.reactiveElementVersions ?? (_.reactiveElementVersions = [])).push("2.0.3");
321
+ /**
322
+ * @license
323
+ * Copyright 2017 Google LLC
324
+ * SPDX-License-Identifier: BSD-3-Clause
325
+ */
326
+ const w = globalThis, N = w.trustedTypes, K = N ? N.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, st = "$lit$", f = `lit$${(Math.random() + "").slice(9)}$`, it = "?" + f, gt = `<${it}>`, A = document, P = () => A.createComment(""), C = (r) => r === null || typeof r != "object" && typeof r != "function", rt = Array.isArray, yt = (r) => rt(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", k = `[
327
+ \f\r]`, E = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, F = /-->/g, G = />/g, g = RegExp(`>|${k}(?:([^\\s"'>=/]+)(${k}*=${k}*(?:[^
328
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Z = /'/g, Q = /"/g, nt = /^(?:script|style|textarea|title)$/i, ot = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), Rt = ot(1), jt = ot(2), v = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), X = /* @__PURE__ */ new WeakMap(), y = A.createTreeWalker(A, 129);
329
+ function ht(r, t) {
330
+ if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
331
+ throw Error("invalid template strings array");
332
+ return K !== void 0 ? K.createHTML(t) : t;
333
+ }
334
+ const At = (r, t) => {
335
+ const e = r.length - 1, s = [];
336
+ let i, o = t === 2 ? "<svg>" : "", n = E;
337
+ for (let a = 0; a < e; a++) {
338
+ const h = r[a];
339
+ let c, p, l = -1, u = 0;
340
+ for (; u < h.length && (n.lastIndex = u, p = n.exec(h), p !== null); )
341
+ u = n.lastIndex, n === E ? p[1] === "!--" ? n = F : p[1] !== void 0 ? n = G : p[2] !== void 0 ? (nt.test(p[2]) && (i = RegExp("</" + p[2], "g")), n = g) : p[3] !== void 0 && (n = g) : n === g ? p[0] === ">" ? (n = i ?? E, l = -1) : p[1] === void 0 ? l = -2 : (l = n.lastIndex - p[2].length, c = p[1], n = p[3] === void 0 ? g : p[3] === '"' ? Q : Z) : n === Q || n === Z ? n = g : n === F || n === G ? n = E : (n = g, i = void 0);
342
+ const $ = n === g && r[a + 1].startsWith("/>") ? " " : "";
343
+ o += n === E ? h + gt : l >= 0 ? (s.push(c), h.slice(0, l) + st + h.slice(l) + f + $) : h + f + (l === -2 ? a : $);
344
+ }
345
+ return [ht(r, o + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
346
+ };
347
+ class U {
348
+ constructor({ strings: t, _$litType$: e }, s) {
349
+ let i;
350
+ this.parts = [];
351
+ let o = 0, n = 0;
352
+ const a = t.length - 1, h = this.parts, [c, p] = At(t, e);
353
+ if (this.el = U.createElement(c, s), y.currentNode = this.el.content, e === 2) {
354
+ const l = this.el.content.firstChild;
355
+ l.replaceWith(...l.childNodes);
356
+ }
357
+ for (; (i = y.nextNode()) !== null && h.length < a; ) {
358
+ if (i.nodeType === 1) {
359
+ if (i.hasAttributes())
360
+ for (const l of i.getAttributeNames())
361
+ if (l.endsWith(st)) {
362
+ const u = p[n++], $ = i.getAttribute(l).split(f), x = /([.?@])?(.*)/.exec(u);
363
+ h.push({ type: 1, index: o, name: x[2], strings: $, ctor: x[1] === "." ? vt : x[1] === "?" ? bt : x[1] === "@" ? Et : R }), i.removeAttribute(l);
364
+ } else
365
+ l.startsWith(f) && (h.push({ type: 6, index: o }), i.removeAttribute(l));
366
+ if (nt.test(i.tagName)) {
367
+ const l = i.textContent.split(f), u = l.length - 1;
368
+ if (u > 0) {
369
+ i.textContent = N ? N.emptyScript : "";
370
+ for (let $ = 0; $ < u; $++)
371
+ i.append(l[$], P()), y.nextNode(), h.push({ type: 2, index: ++o });
372
+ i.append(l[u], P());
373
+ }
374
+ }
375
+ } else if (i.nodeType === 8)
376
+ if (i.data === it)
377
+ h.push({ type: 2, index: o });
378
+ else {
379
+ let l = -1;
380
+ for (; (l = i.data.indexOf(f, l + 1)) !== -1; )
381
+ h.push({ type: 7, index: o }), l += f.length - 1;
382
+ }
383
+ o++;
384
+ }
385
+ }
386
+ static createElement(t, e) {
387
+ const s = A.createElement("template");
388
+ return s.innerHTML = t, s;
389
+ }
390
+ }
391
+ function b(r, t, e = r, s) {
392
+ var n, a;
393
+ if (t === v)
394
+ return t;
395
+ let i = s !== void 0 ? (n = e._$Co) == null ? void 0 : n[s] : e._$Cl;
396
+ const o = C(t) ? void 0 : t._$litDirective$;
397
+ return (i == null ? void 0 : i.constructor) !== o && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), o === void 0 ? i = void 0 : (i = new o(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = b(r, i._$AS(r, t.values), i, s)), t;
398
+ }
399
+ class mt {
400
+ constructor(t, e) {
401
+ this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
402
+ }
403
+ get parentNode() {
404
+ return this._$AM.parentNode;
405
+ }
406
+ get _$AU() {
407
+ return this._$AM._$AU;
408
+ }
409
+ u(t) {
410
+ const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? A).importNode(e, !0);
411
+ y.currentNode = i;
412
+ let o = y.nextNode(), n = 0, a = 0, h = s[0];
413
+ for (; h !== void 0; ) {
414
+ if (n === h.index) {
415
+ let c;
416
+ h.type === 2 ? c = new O(o, o.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (c = new St(o, this, t)), this._$AV.push(c), h = s[++a];
417
+ }
418
+ n !== (h == null ? void 0 : h.index) && (o = y.nextNode(), n++);
419
+ }
420
+ return y.currentNode = A, i;
421
+ }
422
+ p(t) {
423
+ let e = 0;
424
+ for (const s of this._$AV)
425
+ s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
426
+ }
427
+ }
428
+ class O {
429
+ get _$AU() {
430
+ var t;
431
+ return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
432
+ }
433
+ constructor(t, e, s, i) {
434
+ this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
435
+ }
436
+ get parentNode() {
437
+ let t = this._$AA.parentNode;
438
+ const e = this._$AM;
439
+ return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
440
+ }
441
+ get startNode() {
442
+ return this._$AA;
443
+ }
444
+ get endNode() {
445
+ return this._$AB;
446
+ }
447
+ _$AI(t, e = this) {
448
+ t = b(this, t, e), C(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== v && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : yt(t) ? this.T(t) : this._(t);
449
+ }
450
+ k(t) {
451
+ return this._$AA.parentNode.insertBefore(t, this._$AB);
452
+ }
453
+ $(t) {
454
+ this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
455
+ }
456
+ _(t) {
457
+ this._$AH !== d && C(this._$AH) ? this._$AA.nextSibling.data = t : this.$(A.createTextNode(t)), this._$AH = t;
458
+ }
459
+ g(t) {
460
+ var o;
461
+ const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = U.createElement(ht(s.h, s.h[0]), this.options)), s);
462
+ if (((o = this._$AH) == null ? void 0 : o._$AD) === i)
463
+ this._$AH.p(e);
464
+ else {
465
+ const n = new mt(i, this), a = n.u(this.options);
466
+ n.p(e), this.$(a), this._$AH = n;
467
+ }
468
+ }
469
+ _$AC(t) {
470
+ let e = X.get(t.strings);
471
+ return e === void 0 && X.set(t.strings, e = new U(t)), e;
472
+ }
473
+ T(t) {
474
+ rt(this._$AH) || (this._$AH = [], this._$AR());
475
+ const e = this._$AH;
476
+ let s, i = 0;
477
+ for (const o of t)
478
+ i === e.length ? e.push(s = new O(this.k(P()), this.k(P()), this, this.options)) : s = e[i], s._$AI(o), i++;
479
+ i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
480
+ }
481
+ _$AR(t = this._$AA.nextSibling, e) {
482
+ var s;
483
+ for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t && t !== this._$AB; ) {
484
+ const i = t.nextSibling;
485
+ t.remove(), t = i;
486
+ }
487
+ }
488
+ setConnected(t) {
489
+ var e;
490
+ this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
491
+ }
492
+ }
493
+ class R {
494
+ get tagName() {
495
+ return this.element.tagName;
496
+ }
497
+ get _$AU() {
498
+ return this._$AM._$AU;
499
+ }
500
+ constructor(t, e, s, i, o) {
501
+ this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = o, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = d;
502
+ }
503
+ _$AI(t, e = this, s, i) {
504
+ const o = this.strings;
505
+ let n = !1;
506
+ if (o === void 0)
507
+ t = b(this, t, e, 0), n = !C(t) || t !== this._$AH && t !== v, n && (this._$AH = t);
508
+ else {
509
+ const a = t;
510
+ let h, c;
511
+ for (t = o[0], h = 0; h < o.length - 1; h++)
512
+ c = b(this, a[s + h], e, h), c === v && (c = this._$AH[h]), n || (n = !C(c) || c !== this._$AH[h]), c === d ? t = d : t !== d && (t += (c ?? "") + o[h + 1]), this._$AH[h] = c;
513
+ }
514
+ n && !i && this.O(t);
515
+ }
516
+ O(t) {
517
+ t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
518
+ }
519
+ }
520
+ class vt extends R {
521
+ constructor() {
522
+ super(...arguments), this.type = 3;
523
+ }
524
+ O(t) {
525
+ this.element[this.name] = t === d ? void 0 : t;
526
+ }
527
+ }
528
+ class bt extends R {
529
+ constructor() {
530
+ super(...arguments), this.type = 4;
531
+ }
532
+ O(t) {
533
+ this.element.toggleAttribute(this.name, !!t && t !== d);
534
+ }
535
+ }
536
+ class Et extends R {
537
+ constructor(t, e, s, i, o) {
538
+ super(t, e, s, i, o), this.type = 5;
539
+ }
540
+ _$AI(t, e = this) {
541
+ if ((t = b(this, t, e, 0) ?? d) === v)
542
+ return;
543
+ const s = this._$AH, i = t === d && s !== d || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== d && (s === d || i);
544
+ i && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
545
+ }
546
+ handleEvent(t) {
547
+ var e;
548
+ typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
549
+ }
550
+ }
551
+ class St {
552
+ constructor(t, e, s) {
553
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
554
+ }
555
+ get _$AU() {
556
+ return this._$AM._$AU;
557
+ }
558
+ _$AI(t) {
559
+ b(this, t);
560
+ }
561
+ }
562
+ const D = w.litHtmlPolyfillSupport;
563
+ D == null || D(U, O), (w.litHtmlVersions ?? (w.litHtmlVersions = [])).push("3.1.1");
564
+ const wt = (r, t, e) => {
565
+ const s = (e == null ? void 0 : e.renderBefore) ?? t;
566
+ let i = s._$litPart$;
567
+ if (i === void 0) {
568
+ const o = (e == null ? void 0 : e.renderBefore) ?? null;
569
+ s._$litPart$ = i = new O(t.insertBefore(P(), o), o, void 0, e ?? {});
570
+ }
571
+ return i._$AI(r), i;
572
+ };
573
+ /**
574
+ * @license
575
+ * Copyright 2017 Google LLC
576
+ * SPDX-License-Identifier: BSD-3-Clause
577
+ */
578
+ class H extends m {
579
+ constructor() {
580
+ super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
581
+ }
582
+ createRenderRoot() {
583
+ var e;
584
+ const t = super.createRenderRoot();
585
+ return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
586
+ }
587
+ update(t) {
588
+ const e = this.render();
589
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = wt(e, this.renderRoot, this.renderOptions);
590
+ }
591
+ connectedCallback() {
592
+ var t;
593
+ super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
594
+ }
595
+ disconnectedCallback() {
596
+ var t;
597
+ super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
598
+ }
599
+ render() {
600
+ return v;
601
+ }
602
+ }
603
+ var tt;
604
+ H._$litElement$ = !0, H.finalized = !0, (tt = globalThis.litElementHydrateSupport) == null || tt.call(globalThis, { LitElement: H });
605
+ const L = globalThis.litElementPolyfillSupport;
606
+ L == null || L({ LitElement: H });
607
+ (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.3");
608
+ /**
609
+ * @license
610
+ * Copyright 2017 Google LLC
611
+ * SPDX-License-Identifier: BSD-3-Clause
612
+ */
613
+ const kt = (r) => (t, e) => {
614
+ e !== void 0 ? e.addInitializer(() => {
615
+ customElements.define(r, t);
616
+ }) : customElements.define(r, t);
617
+ };
618
+ /**
619
+ * @license
620
+ * Copyright 2017 Google LLC
621
+ * SPDX-License-Identifier: BSD-3-Clause
622
+ */
623
+ const Pt = { attribute: !0, type: String, converter: M, reflect: !1, hasChanged: B }, Ct = (r = Pt, t, e) => {
624
+ const { kind: s, metadata: i } = e;
625
+ let o = globalThis.litPropertyMetadata.get(i);
626
+ if (o === void 0 && globalThis.litPropertyMetadata.set(i, o = /* @__PURE__ */ new Map()), o.set(e.name, r), s === "accessor") {
627
+ const { name: n } = e;
628
+ return { set(a) {
629
+ const h = t.get.call(this);
630
+ t.set.call(this, a), this.requestUpdate(n, h, r);
631
+ }, init(a) {
632
+ return a !== void 0 && this.C(n, void 0, r), a;
633
+ } };
634
+ }
635
+ if (s === "setter") {
636
+ const { name: n } = e;
637
+ return function(a) {
638
+ const h = this[n];
639
+ t.call(this, a), this.requestUpdate(n, h, r);
640
+ };
641
+ }
642
+ throw Error("Unsupported decorator location: " + s);
643
+ };
644
+ function Ut(r) {
645
+ return (t, e) => typeof e == "object" ? Ct(r, t, e) : ((s, i, o) => {
646
+ const n = i.hasOwnProperty(o);
647
+ return i.constructor.createProperty(o, n ? { ...s, wrapped: !0 } : s), n ? Object.getOwnPropertyDescriptor(i, o) : void 0;
648
+ })(r, t, e);
649
+ }
650
+ /**
651
+ * @license
652
+ * Copyright 2017 Google LLC
653
+ * SPDX-License-Identifier: BSD-3-Clause
654
+ */
655
+ function Dt(r) {
656
+ return Ut({ ...r, state: !0, attribute: !1 });
657
+ }
658
+ /**
659
+ * @license
660
+ * Copyright 2017 Google LLC
661
+ * SPDX-License-Identifier: BSD-3-Clause
662
+ */
663
+ const Y = (r, t, e) => (e.configurable = !0, e.enumerable = !0, Reflect.decorate && typeof t != "object" && Object.defineProperty(r, t, e), e);
664
+ /**
665
+ * @license
666
+ * Copyright 2017 Google LLC
667
+ * SPDX-License-Identifier: BSD-3-Clause
668
+ */
669
+ function Lt(r, t) {
670
+ return (e, s, i) => {
671
+ const o = (n) => {
672
+ var a;
673
+ return ((a = n.renderRoot) == null ? void 0 : a.querySelector(r)) ?? null;
674
+ };
675
+ if (t) {
676
+ const { get: n, set: a } = typeof s == "object" ? e : i ?? (() => {
677
+ const h = Symbol();
678
+ return { get() {
679
+ return this[h];
680
+ }, set(c) {
681
+ this[h] = c;
682
+ } };
683
+ })();
684
+ return Y(e, s, { get() {
685
+ let h = n.call(this);
686
+ return h === void 0 && (h = o(this), (h !== null || this.hasUpdated) && a.call(this, h)), h;
687
+ } });
688
+ }
689
+ return Y(e, s, { get() {
690
+ return o(this);
691
+ } });
692
+ };
693
+ }
694
+ export {
695
+ Lt as a,
696
+ Dt as b,
697
+ Ot as c,
698
+ jt as d,
699
+ Y as e,
700
+ Tt as f,
701
+ xt as g,
702
+ Mt as i,
703
+ Ut as n,
704
+ at as r,
705
+ H as s,
706
+ kt as t,
707
+ Rt as x
708
+ };