@arcenpay/react 0.0.1
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.
- package/README.md +124 -0
- package/dist/add-LG363GP4.mjs +34 -0
- package/dist/all-wallets-UW4KSWDQ.mjs +25 -0
- package/dist/app-store-GOSERMQC.mjs +36 -0
- package/dist/apple-Y34SY63H.mjs +37 -0
- package/dist/arrow-bottom-YDRRJYRC.mjs +27 -0
- package/dist/arrow-bottom-circle-XSCE7Y52.mjs +30 -0
- package/dist/arrow-left-VMP4J3ME.mjs +27 -0
- package/dist/arrow-right-FSU7ZETV.mjs +27 -0
- package/dist/arrow-top-SQNMDYUF.mjs +27 -0
- package/dist/bank-DO6DNPBT.mjs +33 -0
- package/dist/basic-3OAVXLDO.mjs +10769 -0
- package/dist/browser-BI7YYLKK.mjs +33 -0
- package/dist/card-F2CIEB7K.mjs +33 -0
- package/dist/checkmark-YASK3T7D.mjs +30 -0
- package/dist/checkmark-bold-UJRS6R4T.mjs +27 -0
- package/dist/chevron-bottom-Z7YOJH7F.mjs +27 -0
- package/dist/chevron-left-YPDPGZVV.mjs +27 -0
- package/dist/chevron-right-4464VKIO.mjs +27 -0
- package/dist/chevron-top-6F4WXRKZ.mjs +27 -0
- package/dist/chrome-store-KH57RD54.mjs +80 -0
- package/dist/chunk-5MZNFSFK.mjs +1273 -0
- package/dist/chunk-ALKFEKMG.mjs +8108 -0
- package/dist/chunk-GUHCPHEG.mjs +768 -0
- package/dist/chunk-HPVNNTYF.mjs +7546 -0
- package/dist/chunk-LACDYDLO.mjs +402 -0
- package/dist/chunk-LGBIIGSV.mjs +39793 -0
- package/dist/chunk-M4NAIVF3.mjs +93283 -0
- package/dist/chunk-QILMZVJE.mjs +11957 -0
- package/dist/chunk-RKV353G3.mjs +272 -0
- package/dist/chunk-X2BMVUAF.mjs +50 -0
- package/dist/chunk-ZKNFAGRN.mjs +1414 -0
- package/dist/clock-WGC5S5SU.mjs +27 -0
- package/dist/close-HJ6ZBPVZ.mjs +27 -0
- package/dist/coinPlaceholder-UOKFKY4T.mjs +27 -0
- package/dist/compass-WAYDVX5E.mjs +27 -0
- package/dist/copy-OPJY4AKY.mjs +34 -0
- package/dist/core-GECUTVXD.mjs +10138 -0
- package/dist/cursor-PAYF2D2S.mjs +22 -0
- package/dist/cursor-transparent-T4M3KZJ2.mjs +31 -0
- package/dist/desktop-QSXXA65J.mjs +28 -0
- package/dist/disconnect-7NMPCP66.mjs +27 -0
- package/dist/discord-KRLKWIM5.mjs +36 -0
- package/dist/etherscan-TAXMMDC4.mjs +25 -0
- package/dist/exclamation-triangle-MW7PXM5B.mjs +23 -0
- package/dist/extension-LAAZQU7X.mjs +27 -0
- package/dist/external-link-IFBQ3MSI.mjs +27 -0
- package/dist/facebook-PAENGKOR.mjs +45 -0
- package/dist/farcaster-P47HCAAY.mjs +31 -0
- package/dist/filters-4HNPLZQV.mjs +27 -0
- package/dist/github-RO4C47BJ.mjs +37 -0
- package/dist/google-RIBTWZH2.mjs +37 -0
- package/dist/help-circle-PN7NOOY4.mjs +31 -0
- package/dist/id-JYBNXVYQ.mjs +31 -0
- package/dist/image-FUPENKKO.mjs +23 -0
- package/dist/index.d.mts +288 -0
- package/dist/index.d.ts +288 -0
- package/dist/index.js +295316 -0
- package/dist/index.mjs +7936 -0
- package/dist/info-34PNUQRI.mjs +22 -0
- package/dist/info-circle-M5CXNBEA.mjs +31 -0
- package/dist/lightbulb-CPZO66W6.mjs +22 -0
- package/dist/mail-RAF36J77.mjs +27 -0
- package/dist/mobile-ZLFYOCHK.mjs +28 -0
- package/dist/more-CIHKDQMO.mjs +30 -0
- package/dist/network-placeholder-QOMFBWMT.mjs +33 -0
- package/dist/nftPlaceholder-7TK2T2QP.mjs +27 -0
- package/dist/off-WWNLGDOR.mjs +27 -0
- package/dist/play-store-HLZSDCUP.mjs +51 -0
- package/dist/plus-SCLTSRAT.mjs +32 -0
- package/dist/qr-code-T7FWUJU6.mjs +25 -0
- package/dist/recycle-horizontal-WRR5I5MX.mjs +28 -0
- package/dist/refresh-6AQ524CD.mjs +27 -0
- package/dist/reown-logo-NJCCGFTU.mjs +31 -0
- package/dist/search-HXD6I5XQ.mjs +27 -0
- package/dist/send-3N2W3TJ6.mjs +34 -0
- package/dist/src-DKYFVWPL.mjs +7 -0
- package/dist/src-HMFDWVJP.mjs +5 -0
- package/dist/src-TV3VFBF5.mjs +98950 -0
- package/dist/swapHorizontal-KPYCPFL4.mjs +27 -0
- package/dist/swapHorizontalBold-WCO2BX6U.mjs +27 -0
- package/dist/swapHorizontalMedium-SCPLSG7N.mjs +35 -0
- package/dist/swapHorizontalRoundedBold-YX7IIFNL.mjs +27 -0
- package/dist/swapVertical-XS35BJ2R.mjs +27 -0
- package/dist/telegram-RIP72IGI.mjs +35 -0
- package/dist/three-dots-IPE2YG6Z.mjs +24 -0
- package/dist/twitch-5K6DAEPG.mjs +37 -0
- package/dist/twitterIcon-U3V7EFPB.mjs +25 -0
- package/dist/verify-JML7EMVO.mjs +27 -0
- package/dist/verify-filled-R5MYOEEJ.mjs +27 -0
- package/dist/w3m-modal-LW2TBGRA.mjs +2042 -0
- package/dist/wallet-AJFVN7JZ.mjs +27 -0
- package/dist/wallet-placeholder-4QSRXVF5.mjs +33 -0
- package/dist/walletconnect-G267PBVT.mjs +53 -0
- package/dist/warning-circle-2KJXNGLQ.mjs +31 -0
- package/dist/x-MTQL7KFF.mjs +31 -0
- package/dist/zerodev.d.mts +106 -0
- package/dist/zerodev.d.ts +106 -0
- package/dist/zerodev.js +420 -0
- package/dist/zerodev.mjs +17 -0
- package/package.json +78 -0
|
@@ -0,0 +1,1273 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__esm
|
|
3
|
+
} from "./chunk-X2BMVUAF.mjs";
|
|
4
|
+
|
|
5
|
+
// ../../node_modules/lit-html/node/lit-html.js
|
|
6
|
+
function V(t3, i4) {
|
|
7
|
+
if (!u(t3) || !t3.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
8
|
+
return void 0 !== e ? e.createHTML(i4) : i4;
|
|
9
|
+
}
|
|
10
|
+
function M(t3, i4, s4 = t3, e3) {
|
|
11
|
+
if (i4 === E) return i4;
|
|
12
|
+
let h3 = void 0 !== e3 ? s4._$Co?.[e3] : s4._$Cl;
|
|
13
|
+
const o5 = a(i4) ? void 0 : i4._$litDirective$;
|
|
14
|
+
return h3?.constructor !== o5 && (h3?._$AO?.(false), void 0 === o5 ? h3 = void 0 : (h3 = new o5(t3), h3._$AT(t3, s4, e3)), void 0 !== e3 ? (s4._$Co ??= [])[e3] = h3 : s4._$Cl = h3), void 0 !== h3 && (i4 = M(t3, h3._$AS(t3, i4.values), h3, e3)), i4;
|
|
15
|
+
}
|
|
16
|
+
var t, i, s, e, h, o, n, r, l, c, a, u, d, f, v, _, m, p, g, $, y, x, T, b, w, E, A, C, P, N, S, k, R, H, I, L, z, W, Z, j, B;
|
|
17
|
+
var init_lit_html = __esm({
|
|
18
|
+
"../../node_modules/lit-html/node/lit-html.js"() {
|
|
19
|
+
"use strict";
|
|
20
|
+
t = globalThis;
|
|
21
|
+
i = (t3) => t3;
|
|
22
|
+
s = t.trustedTypes;
|
|
23
|
+
e = s ? s.createPolicy("lit-html", { createHTML: (t3) => t3 }) : void 0;
|
|
24
|
+
h = "$lit$";
|
|
25
|
+
o = `lit$${Math.random().toFixed(9).slice(2)}$`;
|
|
26
|
+
n = "?" + o;
|
|
27
|
+
r = `<${n}>`;
|
|
28
|
+
l = void 0 === t.document ? { createTreeWalker: () => ({}) } : document;
|
|
29
|
+
c = () => l.createComment("");
|
|
30
|
+
a = (t3) => null === t3 || "object" != typeof t3 && "function" != typeof t3;
|
|
31
|
+
u = Array.isArray;
|
|
32
|
+
d = (t3) => u(t3) || "function" == typeof t3?.[Symbol.iterator];
|
|
33
|
+
f = "[ \n\f\r]";
|
|
34
|
+
v = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g;
|
|
35
|
+
_ = /-->/g;
|
|
36
|
+
m = />/g;
|
|
37
|
+
p = RegExp(`>|${f}(?:([^\\s"'>=/]+)(${f}*=${f}*(?:[^
|
|
38
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g");
|
|
39
|
+
g = /'/g;
|
|
40
|
+
$ = /"/g;
|
|
41
|
+
y = /^(?:script|style|textarea|title)$/i;
|
|
42
|
+
x = (t3) => (i4, ...s4) => ({ _$litType$: t3, strings: i4, values: s4 });
|
|
43
|
+
T = x(1);
|
|
44
|
+
b = x(2);
|
|
45
|
+
w = x(3);
|
|
46
|
+
E = /* @__PURE__ */ Symbol.for("lit-noChange");
|
|
47
|
+
A = /* @__PURE__ */ Symbol.for("lit-nothing");
|
|
48
|
+
C = /* @__PURE__ */ new WeakMap();
|
|
49
|
+
P = l.createTreeWalker(l, 129);
|
|
50
|
+
N = (t3, i4) => {
|
|
51
|
+
const s4 = t3.length - 1, e3 = [];
|
|
52
|
+
let n4, l3 = 2 === i4 ? "<svg>" : 3 === i4 ? "<math>" : "", c4 = v;
|
|
53
|
+
for (let i5 = 0; i5 < s4; i5++) {
|
|
54
|
+
const s5 = t3[i5];
|
|
55
|
+
let a3, u3, d3 = -1, f3 = 0;
|
|
56
|
+
for (; f3 < s5.length && (c4.lastIndex = f3, u3 = c4.exec(s5), null !== u3); ) f3 = c4.lastIndex, c4 === v ? "!--" === u3[1] ? c4 = _ : void 0 !== u3[1] ? c4 = m : void 0 !== u3[2] ? (y.test(u3[2]) && (n4 = RegExp("</" + u3[2], "g")), c4 = p) : void 0 !== u3[3] && (c4 = p) : c4 === p ? ">" === u3[0] ? (c4 = n4 ?? v, d3 = -1) : void 0 === u3[1] ? d3 = -2 : (d3 = c4.lastIndex - u3[2].length, a3 = u3[1], c4 = void 0 === u3[3] ? p : '"' === u3[3] ? $ : g) : c4 === $ || c4 === g ? c4 = p : c4 === _ || c4 === m ? c4 = v : (c4 = p, n4 = void 0);
|
|
57
|
+
const x2 = c4 === p && t3[i5 + 1].startsWith("/>") ? " " : "";
|
|
58
|
+
l3 += c4 === v ? s5 + r : d3 >= 0 ? (e3.push(a3), s5.slice(0, d3) + h + s5.slice(d3) + o + x2) : s5 + o + (-2 === d3 ? i5 : x2);
|
|
59
|
+
}
|
|
60
|
+
return [V(t3, l3 + (t3[s4] || "<?>") + (2 === i4 ? "</svg>" : 3 === i4 ? "</math>" : "")), e3];
|
|
61
|
+
};
|
|
62
|
+
S = class _S {
|
|
63
|
+
constructor({ strings: t3, _$litType$: i4 }, e3) {
|
|
64
|
+
let r4;
|
|
65
|
+
this.parts = [];
|
|
66
|
+
let l3 = 0, a3 = 0;
|
|
67
|
+
const u3 = t3.length - 1, d3 = this.parts, [f3, v2] = N(t3, i4);
|
|
68
|
+
if (this.el = _S.createElement(f3, e3), P.currentNode = this.el.content, 2 === i4 || 3 === i4) {
|
|
69
|
+
const t4 = this.el.content.firstChild;
|
|
70
|
+
t4.replaceWith(...t4.childNodes);
|
|
71
|
+
}
|
|
72
|
+
for (; null !== (r4 = P.nextNode()) && d3.length < u3; ) {
|
|
73
|
+
if (1 === r4.nodeType) {
|
|
74
|
+
if (r4.hasAttributes()) for (const t4 of r4.getAttributeNames()) if (t4.endsWith(h)) {
|
|
75
|
+
const i5 = v2[a3++], s4 = r4.getAttribute(t4).split(o), e4 = /([.?@])?(.*)/.exec(i5);
|
|
76
|
+
d3.push({ type: 1, index: l3, name: e4[2], strings: s4, ctor: "." === e4[1] ? I : "?" === e4[1] ? L : "@" === e4[1] ? z : H }), r4.removeAttribute(t4);
|
|
77
|
+
} else t4.startsWith(o) && (d3.push({ type: 6, index: l3 }), r4.removeAttribute(t4));
|
|
78
|
+
if (y.test(r4.tagName)) {
|
|
79
|
+
const t4 = r4.textContent.split(o), i5 = t4.length - 1;
|
|
80
|
+
if (i5 > 0) {
|
|
81
|
+
r4.textContent = s ? s.emptyScript : "";
|
|
82
|
+
for (let s4 = 0; s4 < i5; s4++) r4.append(t4[s4], c()), P.nextNode(), d3.push({ type: 2, index: ++l3 });
|
|
83
|
+
r4.append(t4[i5], c());
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
} else if (8 === r4.nodeType) if (r4.data === n) d3.push({ type: 2, index: l3 });
|
|
87
|
+
else {
|
|
88
|
+
let t4 = -1;
|
|
89
|
+
for (; -1 !== (t4 = r4.data.indexOf(o, t4 + 1)); ) d3.push({ type: 7, index: l3 }), t4 += o.length - 1;
|
|
90
|
+
}
|
|
91
|
+
l3++;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
static createElement(t3, i4) {
|
|
95
|
+
const s4 = l.createElement("template");
|
|
96
|
+
return s4.innerHTML = t3, s4;
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
k = class {
|
|
100
|
+
constructor(t3, i4) {
|
|
101
|
+
this._$AV = [], this._$AN = void 0, this._$AD = t3, this._$AM = i4;
|
|
102
|
+
}
|
|
103
|
+
get parentNode() {
|
|
104
|
+
return this._$AM.parentNode;
|
|
105
|
+
}
|
|
106
|
+
get _$AU() {
|
|
107
|
+
return this._$AM._$AU;
|
|
108
|
+
}
|
|
109
|
+
u(t3) {
|
|
110
|
+
const { el: { content: i4 }, parts: s4 } = this._$AD, e3 = (t3?.creationScope ?? l).importNode(i4, true);
|
|
111
|
+
P.currentNode = e3;
|
|
112
|
+
let h3 = P.nextNode(), o5 = 0, n4 = 0, r4 = s4[0];
|
|
113
|
+
for (; void 0 !== r4; ) {
|
|
114
|
+
if (o5 === r4.index) {
|
|
115
|
+
let i5;
|
|
116
|
+
2 === r4.type ? i5 = new R(h3, h3.nextSibling, this, t3) : 1 === r4.type ? i5 = new r4.ctor(h3, r4.name, r4.strings, this, t3) : 6 === r4.type && (i5 = new W(h3, this, t3)), this._$AV.push(i5), r4 = s4[++n4];
|
|
117
|
+
}
|
|
118
|
+
o5 !== r4?.index && (h3 = P.nextNode(), o5++);
|
|
119
|
+
}
|
|
120
|
+
return P.currentNode = l, e3;
|
|
121
|
+
}
|
|
122
|
+
p(t3) {
|
|
123
|
+
let i4 = 0;
|
|
124
|
+
for (const s4 of this._$AV) void 0 !== s4 && (void 0 !== s4.strings ? (s4._$AI(t3, s4, i4), i4 += s4.strings.length - 2) : s4._$AI(t3[i4])), i4++;
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
R = class _R {
|
|
128
|
+
get _$AU() {
|
|
129
|
+
return this._$AM?._$AU ?? this._$Cv;
|
|
130
|
+
}
|
|
131
|
+
constructor(t3, i4, s4, e3) {
|
|
132
|
+
this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t3, this._$AB = i4, this._$AM = s4, this.options = e3, this._$Cv = e3?.isConnected ?? true;
|
|
133
|
+
}
|
|
134
|
+
get parentNode() {
|
|
135
|
+
let t3 = this._$AA.parentNode;
|
|
136
|
+
const i4 = this._$AM;
|
|
137
|
+
return void 0 !== i4 && 11 === t3?.nodeType && (t3 = i4.parentNode), t3;
|
|
138
|
+
}
|
|
139
|
+
get startNode() {
|
|
140
|
+
return this._$AA;
|
|
141
|
+
}
|
|
142
|
+
get endNode() {
|
|
143
|
+
return this._$AB;
|
|
144
|
+
}
|
|
145
|
+
_$AI(t3, i4 = this) {
|
|
146
|
+
t3 = M(this, t3, i4), a(t3) ? t3 === A || null == t3 || "" === t3 ? (this._$AH !== A && this._$AR(), this._$AH = A) : t3 !== this._$AH && t3 !== E && this._(t3) : void 0 !== t3._$litType$ ? this.$(t3) : void 0 !== t3.nodeType ? this.T(t3) : d(t3) ? this.k(t3) : this._(t3);
|
|
147
|
+
}
|
|
148
|
+
O(t3) {
|
|
149
|
+
return this._$AA.parentNode.insertBefore(t3, this._$AB);
|
|
150
|
+
}
|
|
151
|
+
T(t3) {
|
|
152
|
+
this._$AH !== t3 && (this._$AR(), this._$AH = this.O(t3));
|
|
153
|
+
}
|
|
154
|
+
_(t3) {
|
|
155
|
+
this._$AH !== A && a(this._$AH) ? this._$AA.nextSibling.data = t3 : this.T(l.createTextNode(t3)), this._$AH = t3;
|
|
156
|
+
}
|
|
157
|
+
$(t3) {
|
|
158
|
+
const { values: i4, _$litType$: s4 } = t3, e3 = "number" == typeof s4 ? this._$AC(t3) : (void 0 === s4.el && (s4.el = S.createElement(V(s4.h, s4.h[0]), this.options)), s4);
|
|
159
|
+
if (this._$AH?._$AD === e3) this._$AH.p(i4);
|
|
160
|
+
else {
|
|
161
|
+
const t4 = new k(e3, this), s5 = t4.u(this.options);
|
|
162
|
+
t4.p(i4), this.T(s5), this._$AH = t4;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
_$AC(t3) {
|
|
166
|
+
let i4 = C.get(t3.strings);
|
|
167
|
+
return void 0 === i4 && C.set(t3.strings, i4 = new S(t3)), i4;
|
|
168
|
+
}
|
|
169
|
+
k(t3) {
|
|
170
|
+
u(this._$AH) || (this._$AH = [], this._$AR());
|
|
171
|
+
const i4 = this._$AH;
|
|
172
|
+
let s4, e3 = 0;
|
|
173
|
+
for (const h3 of t3) e3 === i4.length ? i4.push(s4 = new _R(this.O(c()), this.O(c()), this, this.options)) : s4 = i4[e3], s4._$AI(h3), e3++;
|
|
174
|
+
e3 < i4.length && (this._$AR(s4 && s4._$AB.nextSibling, e3), i4.length = e3);
|
|
175
|
+
}
|
|
176
|
+
_$AR(t3 = this._$AA.nextSibling, s4) {
|
|
177
|
+
for (this._$AP?.(false, true, s4); t3 !== this._$AB; ) {
|
|
178
|
+
const s5 = i(t3).nextSibling;
|
|
179
|
+
i(t3).remove(), t3 = s5;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
setConnected(t3) {
|
|
183
|
+
void 0 === this._$AM && (this._$Cv = t3, this._$AP?.(t3));
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
H = class {
|
|
187
|
+
get tagName() {
|
|
188
|
+
return this.element.tagName;
|
|
189
|
+
}
|
|
190
|
+
get _$AU() {
|
|
191
|
+
return this._$AM._$AU;
|
|
192
|
+
}
|
|
193
|
+
constructor(t3, i4, s4, e3, h3) {
|
|
194
|
+
this.type = 1, this._$AH = A, this._$AN = void 0, this.element = t3, this.name = i4, this._$AM = e3, this.options = h3, s4.length > 2 || "" !== s4[0] || "" !== s4[1] ? (this._$AH = Array(s4.length - 1).fill(new String()), this.strings = s4) : this._$AH = A;
|
|
195
|
+
}
|
|
196
|
+
_$AI(t3, i4 = this, s4, e3) {
|
|
197
|
+
const h3 = this.strings;
|
|
198
|
+
let o5 = false;
|
|
199
|
+
if (void 0 === h3) t3 = M(this, t3, i4, 0), o5 = !a(t3) || t3 !== this._$AH && t3 !== E, o5 && (this._$AH = t3);
|
|
200
|
+
else {
|
|
201
|
+
const e4 = t3;
|
|
202
|
+
let n4, r4;
|
|
203
|
+
for (t3 = h3[0], n4 = 0; n4 < h3.length - 1; n4++) r4 = M(this, e4[s4 + n4], i4, n4), r4 === E && (r4 = this._$AH[n4]), o5 ||= !a(r4) || r4 !== this._$AH[n4], r4 === A ? t3 = A : t3 !== A && (t3 += (r4 ?? "") + h3[n4 + 1]), this._$AH[n4] = r4;
|
|
204
|
+
}
|
|
205
|
+
o5 && !e3 && this.j(t3);
|
|
206
|
+
}
|
|
207
|
+
j(t3) {
|
|
208
|
+
t3 === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t3 ?? "");
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
I = class extends H {
|
|
212
|
+
constructor() {
|
|
213
|
+
super(...arguments), this.type = 3;
|
|
214
|
+
}
|
|
215
|
+
j(t3) {
|
|
216
|
+
this.element[this.name] = t3 === A ? void 0 : t3;
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
L = class extends H {
|
|
220
|
+
constructor() {
|
|
221
|
+
super(...arguments), this.type = 4;
|
|
222
|
+
}
|
|
223
|
+
j(t3) {
|
|
224
|
+
this.element.toggleAttribute(this.name, !!t3 && t3 !== A);
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
z = class extends H {
|
|
228
|
+
constructor(t3, i4, s4, e3, h3) {
|
|
229
|
+
super(t3, i4, s4, e3, h3), this.type = 5;
|
|
230
|
+
}
|
|
231
|
+
_$AI(t3, i4 = this) {
|
|
232
|
+
if ((t3 = M(this, t3, i4, 0) ?? A) === E) return;
|
|
233
|
+
const s4 = this._$AH, e3 = t3 === A && s4 !== A || t3.capture !== s4.capture || t3.once !== s4.once || t3.passive !== s4.passive, h3 = t3 !== A && (s4 === A || e3);
|
|
234
|
+
e3 && this.element.removeEventListener(this.name, this, s4), h3 && this.element.addEventListener(this.name, this, t3), this._$AH = t3;
|
|
235
|
+
}
|
|
236
|
+
handleEvent(t3) {
|
|
237
|
+
"function" == typeof this._$AH ? this._$AH.call(this.options?.host ?? this.element, t3) : this._$AH.handleEvent(t3);
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
W = class {
|
|
241
|
+
constructor(t3, i4, s4) {
|
|
242
|
+
this.element = t3, this.type = 6, this._$AN = void 0, this._$AM = i4, this.options = s4;
|
|
243
|
+
}
|
|
244
|
+
get _$AU() {
|
|
245
|
+
return this._$AM._$AU;
|
|
246
|
+
}
|
|
247
|
+
_$AI(t3) {
|
|
248
|
+
M(this, t3);
|
|
249
|
+
}
|
|
250
|
+
};
|
|
251
|
+
Z = { M: h, P: o, A: n, C: 1, L: N, R: k, D: d, V: M, I: R, H, N: L, U: z, B: I, F: W };
|
|
252
|
+
j = t.litHtmlPolyfillSupport;
|
|
253
|
+
j?.(S, R), (t.litHtmlVersions ??= []).push("3.3.2");
|
|
254
|
+
B = (t3, i4, s4) => {
|
|
255
|
+
const e3 = s4?.renderBefore ?? i4;
|
|
256
|
+
let h3 = e3._$litPart$;
|
|
257
|
+
if (void 0 === h3) {
|
|
258
|
+
const t4 = s4?.renderBefore ?? null;
|
|
259
|
+
e3._$litPart$ = h3 = new R(i4.insertBefore(c(), t4), t4, void 0, s4 ?? {});
|
|
260
|
+
}
|
|
261
|
+
return h3._$AI(t3), h3;
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
});
|
|
265
|
+
|
|
266
|
+
// ../../node_modules/@lit-labs/ssr-dom-shim/lib/element-internals.js
|
|
267
|
+
var ElementInternalsShim;
|
|
268
|
+
var init_element_internals = __esm({
|
|
269
|
+
"../../node_modules/@lit-labs/ssr-dom-shim/lib/element-internals.js"() {
|
|
270
|
+
"use strict";
|
|
271
|
+
ElementInternalsShim = class ElementInternals {
|
|
272
|
+
get shadowRoot() {
|
|
273
|
+
return this.__host.__shadowRoot;
|
|
274
|
+
}
|
|
275
|
+
constructor(_host) {
|
|
276
|
+
this.ariaActiveDescendantElement = null;
|
|
277
|
+
this.ariaAtomic = "";
|
|
278
|
+
this.ariaAutoComplete = "";
|
|
279
|
+
this.ariaBrailleLabel = "";
|
|
280
|
+
this.ariaBrailleRoleDescription = "";
|
|
281
|
+
this.ariaBusy = "";
|
|
282
|
+
this.ariaChecked = "";
|
|
283
|
+
this.ariaColCount = "";
|
|
284
|
+
this.ariaColIndex = "";
|
|
285
|
+
this.ariaColIndexText = "";
|
|
286
|
+
this.ariaColSpan = "";
|
|
287
|
+
this.ariaControlsElements = null;
|
|
288
|
+
this.ariaCurrent = "";
|
|
289
|
+
this.ariaDescribedByElements = null;
|
|
290
|
+
this.ariaDescription = "";
|
|
291
|
+
this.ariaDetailsElements = null;
|
|
292
|
+
this.ariaDisabled = "";
|
|
293
|
+
this.ariaErrorMessageElements = null;
|
|
294
|
+
this.ariaExpanded = "";
|
|
295
|
+
this.ariaFlowToElements = null;
|
|
296
|
+
this.ariaHasPopup = "";
|
|
297
|
+
this.ariaHidden = "";
|
|
298
|
+
this.ariaInvalid = "";
|
|
299
|
+
this.ariaKeyShortcuts = "";
|
|
300
|
+
this.ariaLabel = "";
|
|
301
|
+
this.ariaLabelledByElements = null;
|
|
302
|
+
this.ariaLevel = "";
|
|
303
|
+
this.ariaLive = "";
|
|
304
|
+
this.ariaModal = "";
|
|
305
|
+
this.ariaMultiLine = "";
|
|
306
|
+
this.ariaMultiSelectable = "";
|
|
307
|
+
this.ariaOrientation = "";
|
|
308
|
+
this.ariaOwnsElements = null;
|
|
309
|
+
this.ariaPlaceholder = "";
|
|
310
|
+
this.ariaPosInSet = "";
|
|
311
|
+
this.ariaPressed = "";
|
|
312
|
+
this.ariaReadOnly = "";
|
|
313
|
+
this.ariaRelevant = "";
|
|
314
|
+
this.ariaRequired = "";
|
|
315
|
+
this.ariaRoleDescription = "";
|
|
316
|
+
this.ariaRowCount = "";
|
|
317
|
+
this.ariaRowIndex = "";
|
|
318
|
+
this.ariaRowIndexText = "";
|
|
319
|
+
this.ariaRowSpan = "";
|
|
320
|
+
this.ariaSelected = "";
|
|
321
|
+
this.ariaSetSize = "";
|
|
322
|
+
this.ariaSort = "";
|
|
323
|
+
this.ariaValueMax = "";
|
|
324
|
+
this.ariaValueMin = "";
|
|
325
|
+
this.ariaValueNow = "";
|
|
326
|
+
this.ariaValueText = "";
|
|
327
|
+
this.role = "";
|
|
328
|
+
this.form = null;
|
|
329
|
+
this.labels = [];
|
|
330
|
+
this.states = /* @__PURE__ */ new Set();
|
|
331
|
+
this.validationMessage = "";
|
|
332
|
+
this.validity = {};
|
|
333
|
+
this.willValidate = true;
|
|
334
|
+
this.__host = _host;
|
|
335
|
+
}
|
|
336
|
+
checkValidity() {
|
|
337
|
+
console.warn("`ElementInternals.checkValidity()` was called on the server.This method always returns true.");
|
|
338
|
+
return true;
|
|
339
|
+
}
|
|
340
|
+
reportValidity() {
|
|
341
|
+
return true;
|
|
342
|
+
}
|
|
343
|
+
setFormValue() {
|
|
344
|
+
}
|
|
345
|
+
setValidity() {
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
|
|
351
|
+
// ../../node_modules/@lit-labs/ssr-dom-shim/lib/events.js
|
|
352
|
+
var __classPrivateFieldSet, __classPrivateFieldGet, _Event_cancelable, _Event_bubbles, _Event_composed, _Event_defaultPrevented, _Event_timestamp, _Event_propagationStopped, _Event_type, _Event_target, _Event_isBeingDispatched, _a, _CustomEvent_detail, _b, isCaptureEventListener, NONE, CAPTURING_PHASE, AT_TARGET, BUBBLING_PHASE, EventTarget, EventTargetShimWithRealType, enumerableProperty, EventShim, CustomEventShim, EventShimWithRealType, CustomEventShimWithRealType;
|
|
353
|
+
var init_events = __esm({
|
|
354
|
+
"../../node_modules/@lit-labs/ssr-dom-shim/lib/events.js"() {
|
|
355
|
+
"use strict";
|
|
356
|
+
__classPrivateFieldSet = function(receiver, state, value, kind, f3) {
|
|
357
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
358
|
+
if (kind === "a" && !f3) throw new TypeError("Private accessor was defined without a setter");
|
|
359
|
+
if (typeof state === "function" ? receiver !== state || !f3 : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
360
|
+
return kind === "a" ? f3.call(receiver, value) : f3 ? f3.value = value : state.set(receiver, value), value;
|
|
361
|
+
};
|
|
362
|
+
__classPrivateFieldGet = function(receiver, state, kind, f3) {
|
|
363
|
+
if (kind === "a" && !f3) throw new TypeError("Private accessor was defined without a getter");
|
|
364
|
+
if (typeof state === "function" ? receiver !== state || !f3 : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
365
|
+
return kind === "m" ? f3 : kind === "a" ? f3.call(receiver) : f3 ? f3.value : state.get(receiver);
|
|
366
|
+
};
|
|
367
|
+
isCaptureEventListener = (options) => typeof options === "boolean" ? options : options?.capture ?? false;
|
|
368
|
+
NONE = 0;
|
|
369
|
+
CAPTURING_PHASE = 1;
|
|
370
|
+
AT_TARGET = 2;
|
|
371
|
+
BUBBLING_PHASE = 3;
|
|
372
|
+
EventTarget = class {
|
|
373
|
+
constructor() {
|
|
374
|
+
this.__eventListeners = /* @__PURE__ */ new Map();
|
|
375
|
+
this.__captureEventListeners = /* @__PURE__ */ new Map();
|
|
376
|
+
}
|
|
377
|
+
addEventListener(type, callback, options) {
|
|
378
|
+
if (callback === void 0 || callback === null) {
|
|
379
|
+
return;
|
|
380
|
+
}
|
|
381
|
+
const eventListenersMap = isCaptureEventListener(options) ? this.__captureEventListeners : this.__eventListeners;
|
|
382
|
+
let eventListeners = eventListenersMap.get(type);
|
|
383
|
+
if (eventListeners === void 0) {
|
|
384
|
+
eventListeners = /* @__PURE__ */ new Map();
|
|
385
|
+
eventListenersMap.set(type, eventListeners);
|
|
386
|
+
} else if (eventListeners.has(callback)) {
|
|
387
|
+
return;
|
|
388
|
+
}
|
|
389
|
+
const normalizedOptions = typeof options === "object" && options ? options : {};
|
|
390
|
+
normalizedOptions.signal?.addEventListener("abort", () => this.removeEventListener(type, callback, options));
|
|
391
|
+
eventListeners.set(callback, normalizedOptions ?? {});
|
|
392
|
+
}
|
|
393
|
+
removeEventListener(type, callback, options) {
|
|
394
|
+
if (callback === void 0 || callback === null) {
|
|
395
|
+
return;
|
|
396
|
+
}
|
|
397
|
+
const eventListenersMap = isCaptureEventListener(options) ? this.__captureEventListeners : this.__eventListeners;
|
|
398
|
+
const eventListeners = eventListenersMap.get(type);
|
|
399
|
+
if (eventListeners !== void 0) {
|
|
400
|
+
eventListeners.delete(callback);
|
|
401
|
+
if (!eventListeners.size) {
|
|
402
|
+
eventListenersMap.delete(type);
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
dispatchEvent(event) {
|
|
407
|
+
const composedPath = [this];
|
|
408
|
+
let parent = this.__eventTargetParent;
|
|
409
|
+
if (event.composed) {
|
|
410
|
+
while (parent) {
|
|
411
|
+
composedPath.push(parent);
|
|
412
|
+
parent = parent.__eventTargetParent;
|
|
413
|
+
}
|
|
414
|
+
} else {
|
|
415
|
+
while (parent && parent !== this.__host) {
|
|
416
|
+
composedPath.push(parent);
|
|
417
|
+
parent = parent.__eventTargetParent;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
let stopPropagation = false;
|
|
421
|
+
let stopImmediatePropagation = false;
|
|
422
|
+
let eventPhase = NONE;
|
|
423
|
+
let target = null;
|
|
424
|
+
let tmpTarget = null;
|
|
425
|
+
let currentTarget = null;
|
|
426
|
+
const originalStopPropagation = event.stopPropagation;
|
|
427
|
+
const originalStopImmediatePropagation = event.stopImmediatePropagation;
|
|
428
|
+
Object.defineProperties(event, {
|
|
429
|
+
target: {
|
|
430
|
+
get() {
|
|
431
|
+
return target ?? tmpTarget;
|
|
432
|
+
},
|
|
433
|
+
...enumerableProperty
|
|
434
|
+
},
|
|
435
|
+
srcElement: {
|
|
436
|
+
get() {
|
|
437
|
+
return event.target;
|
|
438
|
+
},
|
|
439
|
+
...enumerableProperty
|
|
440
|
+
},
|
|
441
|
+
currentTarget: {
|
|
442
|
+
get() {
|
|
443
|
+
return currentTarget;
|
|
444
|
+
},
|
|
445
|
+
...enumerableProperty
|
|
446
|
+
},
|
|
447
|
+
eventPhase: {
|
|
448
|
+
get() {
|
|
449
|
+
return eventPhase;
|
|
450
|
+
},
|
|
451
|
+
...enumerableProperty
|
|
452
|
+
},
|
|
453
|
+
composedPath: {
|
|
454
|
+
value: () => composedPath,
|
|
455
|
+
...enumerableProperty
|
|
456
|
+
},
|
|
457
|
+
stopPropagation: {
|
|
458
|
+
value: () => {
|
|
459
|
+
stopPropagation = true;
|
|
460
|
+
originalStopPropagation.call(event);
|
|
461
|
+
},
|
|
462
|
+
...enumerableProperty
|
|
463
|
+
},
|
|
464
|
+
stopImmediatePropagation: {
|
|
465
|
+
value: () => {
|
|
466
|
+
stopImmediatePropagation = true;
|
|
467
|
+
originalStopImmediatePropagation.call(event);
|
|
468
|
+
},
|
|
469
|
+
...enumerableProperty
|
|
470
|
+
}
|
|
471
|
+
});
|
|
472
|
+
const invokeEventListener = (listener, options, eventListenerMap) => {
|
|
473
|
+
if (typeof listener === "function") {
|
|
474
|
+
listener(event);
|
|
475
|
+
} else if (typeof listener?.handleEvent === "function") {
|
|
476
|
+
listener.handleEvent(event);
|
|
477
|
+
}
|
|
478
|
+
if (options.once) {
|
|
479
|
+
eventListenerMap.delete(listener);
|
|
480
|
+
}
|
|
481
|
+
};
|
|
482
|
+
const finishDispatch = () => {
|
|
483
|
+
currentTarget = null;
|
|
484
|
+
eventPhase = NONE;
|
|
485
|
+
return !event.defaultPrevented;
|
|
486
|
+
};
|
|
487
|
+
const captureEventPath = composedPath.slice().reverse();
|
|
488
|
+
target = !this.__host || !event.composed ? this : null;
|
|
489
|
+
const retarget = (eventTargets) => {
|
|
490
|
+
tmpTarget = this;
|
|
491
|
+
while (tmpTarget.__host && eventTargets.includes(tmpTarget.__host)) {
|
|
492
|
+
tmpTarget = tmpTarget.__host;
|
|
493
|
+
}
|
|
494
|
+
};
|
|
495
|
+
for (const eventTarget of captureEventPath) {
|
|
496
|
+
if (!target && (!tmpTarget || tmpTarget === eventTarget.__host)) {
|
|
497
|
+
retarget(captureEventPath.slice(captureEventPath.indexOf(eventTarget)));
|
|
498
|
+
}
|
|
499
|
+
currentTarget = eventTarget;
|
|
500
|
+
eventPhase = eventTarget === event.target ? AT_TARGET : CAPTURING_PHASE;
|
|
501
|
+
const captureEventListeners = eventTarget.__captureEventListeners.get(event.type);
|
|
502
|
+
if (captureEventListeners) {
|
|
503
|
+
for (const [listener, options] of captureEventListeners) {
|
|
504
|
+
invokeEventListener(listener, options, captureEventListeners);
|
|
505
|
+
if (stopImmediatePropagation) {
|
|
506
|
+
return finishDispatch();
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
if (stopPropagation) {
|
|
511
|
+
return finishDispatch();
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
const bubbleEventPath = event.bubbles ? composedPath : [this];
|
|
515
|
+
tmpTarget = null;
|
|
516
|
+
for (const eventTarget of bubbleEventPath) {
|
|
517
|
+
if (!target && (!tmpTarget || eventTarget === tmpTarget.__host)) {
|
|
518
|
+
retarget(bubbleEventPath.slice(0, bubbleEventPath.indexOf(eventTarget) + 1));
|
|
519
|
+
}
|
|
520
|
+
currentTarget = eventTarget;
|
|
521
|
+
eventPhase = eventTarget === event.target ? AT_TARGET : BUBBLING_PHASE;
|
|
522
|
+
const captureEventListeners = eventTarget.__eventListeners.get(event.type);
|
|
523
|
+
if (captureEventListeners) {
|
|
524
|
+
for (const [listener, options] of captureEventListeners) {
|
|
525
|
+
invokeEventListener(listener, options, captureEventListeners);
|
|
526
|
+
if (stopImmediatePropagation) {
|
|
527
|
+
return finishDispatch();
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
if (stopPropagation) {
|
|
532
|
+
return finishDispatch();
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
return finishDispatch();
|
|
536
|
+
}
|
|
537
|
+
};
|
|
538
|
+
EventTargetShimWithRealType = EventTarget;
|
|
539
|
+
enumerableProperty = { __proto__: null };
|
|
540
|
+
enumerableProperty.enumerable = true;
|
|
541
|
+
Object.freeze(enumerableProperty);
|
|
542
|
+
EventShim = (_a = class Event {
|
|
543
|
+
constructor(type, options = {}) {
|
|
544
|
+
_Event_cancelable.set(this, false);
|
|
545
|
+
_Event_bubbles.set(this, false);
|
|
546
|
+
_Event_composed.set(this, false);
|
|
547
|
+
_Event_defaultPrevented.set(this, false);
|
|
548
|
+
_Event_timestamp.set(this, Date.now());
|
|
549
|
+
_Event_propagationStopped.set(this, false);
|
|
550
|
+
_Event_type.set(this, void 0);
|
|
551
|
+
_Event_target.set(this, void 0);
|
|
552
|
+
_Event_isBeingDispatched.set(this, void 0);
|
|
553
|
+
this.NONE = NONE;
|
|
554
|
+
this.CAPTURING_PHASE = CAPTURING_PHASE;
|
|
555
|
+
this.AT_TARGET = AT_TARGET;
|
|
556
|
+
this.BUBBLING_PHASE = BUBBLING_PHASE;
|
|
557
|
+
if (arguments.length === 0)
|
|
558
|
+
throw new Error(`The type argument must be specified`);
|
|
559
|
+
if (typeof options !== "object" || !options) {
|
|
560
|
+
throw new Error(`The "options" argument must be an object`);
|
|
561
|
+
}
|
|
562
|
+
const { bubbles, cancelable, composed } = options;
|
|
563
|
+
__classPrivateFieldSet(this, _Event_cancelable, !!cancelable, "f");
|
|
564
|
+
__classPrivateFieldSet(this, _Event_bubbles, !!bubbles, "f");
|
|
565
|
+
__classPrivateFieldSet(this, _Event_composed, !!composed, "f");
|
|
566
|
+
__classPrivateFieldSet(this, _Event_type, `${type}`, "f");
|
|
567
|
+
__classPrivateFieldSet(this, _Event_target, null, "f");
|
|
568
|
+
__classPrivateFieldSet(this, _Event_isBeingDispatched, false, "f");
|
|
569
|
+
}
|
|
570
|
+
initEvent(_type, _bubbles, _cancelable) {
|
|
571
|
+
throw new Error("Method not implemented.");
|
|
572
|
+
}
|
|
573
|
+
stopImmediatePropagation() {
|
|
574
|
+
this.stopPropagation();
|
|
575
|
+
}
|
|
576
|
+
preventDefault() {
|
|
577
|
+
__classPrivateFieldSet(this, _Event_defaultPrevented, true, "f");
|
|
578
|
+
}
|
|
579
|
+
get target() {
|
|
580
|
+
return __classPrivateFieldGet(this, _Event_target, "f");
|
|
581
|
+
}
|
|
582
|
+
get currentTarget() {
|
|
583
|
+
return __classPrivateFieldGet(this, _Event_target, "f");
|
|
584
|
+
}
|
|
585
|
+
get srcElement() {
|
|
586
|
+
return __classPrivateFieldGet(this, _Event_target, "f");
|
|
587
|
+
}
|
|
588
|
+
get type() {
|
|
589
|
+
return __classPrivateFieldGet(this, _Event_type, "f");
|
|
590
|
+
}
|
|
591
|
+
get cancelable() {
|
|
592
|
+
return __classPrivateFieldGet(this, _Event_cancelable, "f");
|
|
593
|
+
}
|
|
594
|
+
get defaultPrevented() {
|
|
595
|
+
return __classPrivateFieldGet(this, _Event_cancelable, "f") && __classPrivateFieldGet(this, _Event_defaultPrevented, "f");
|
|
596
|
+
}
|
|
597
|
+
get timeStamp() {
|
|
598
|
+
return __classPrivateFieldGet(this, _Event_timestamp, "f");
|
|
599
|
+
}
|
|
600
|
+
composedPath() {
|
|
601
|
+
return __classPrivateFieldGet(this, _Event_isBeingDispatched, "f") ? [__classPrivateFieldGet(this, _Event_target, "f")] : [];
|
|
602
|
+
}
|
|
603
|
+
get returnValue() {
|
|
604
|
+
return !__classPrivateFieldGet(this, _Event_cancelable, "f") || !__classPrivateFieldGet(this, _Event_defaultPrevented, "f");
|
|
605
|
+
}
|
|
606
|
+
get bubbles() {
|
|
607
|
+
return __classPrivateFieldGet(this, _Event_bubbles, "f");
|
|
608
|
+
}
|
|
609
|
+
get composed() {
|
|
610
|
+
return __classPrivateFieldGet(this, _Event_composed, "f");
|
|
611
|
+
}
|
|
612
|
+
get eventPhase() {
|
|
613
|
+
return __classPrivateFieldGet(this, _Event_isBeingDispatched, "f") ? _a.AT_TARGET : _a.NONE;
|
|
614
|
+
}
|
|
615
|
+
get cancelBubble() {
|
|
616
|
+
return __classPrivateFieldGet(this, _Event_propagationStopped, "f");
|
|
617
|
+
}
|
|
618
|
+
set cancelBubble(value) {
|
|
619
|
+
if (value) {
|
|
620
|
+
__classPrivateFieldSet(this, _Event_propagationStopped, true, "f");
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
stopPropagation() {
|
|
624
|
+
__classPrivateFieldSet(this, _Event_propagationStopped, true, "f");
|
|
625
|
+
}
|
|
626
|
+
get isTrusted() {
|
|
627
|
+
return false;
|
|
628
|
+
}
|
|
629
|
+
}, _Event_cancelable = /* @__PURE__ */ new WeakMap(), _Event_bubbles = /* @__PURE__ */ new WeakMap(), _Event_composed = /* @__PURE__ */ new WeakMap(), _Event_defaultPrevented = /* @__PURE__ */ new WeakMap(), _Event_timestamp = /* @__PURE__ */ new WeakMap(), _Event_propagationStopped = /* @__PURE__ */ new WeakMap(), _Event_type = /* @__PURE__ */ new WeakMap(), _Event_target = /* @__PURE__ */ new WeakMap(), _Event_isBeingDispatched = /* @__PURE__ */ new WeakMap(), _a.NONE = NONE, _a.CAPTURING_PHASE = CAPTURING_PHASE, _a.AT_TARGET = AT_TARGET, _a.BUBBLING_PHASE = BUBBLING_PHASE, _a);
|
|
630
|
+
Object.defineProperties(EventShim.prototype, {
|
|
631
|
+
initEvent: enumerableProperty,
|
|
632
|
+
stopImmediatePropagation: enumerableProperty,
|
|
633
|
+
preventDefault: enumerableProperty,
|
|
634
|
+
target: enumerableProperty,
|
|
635
|
+
currentTarget: enumerableProperty,
|
|
636
|
+
srcElement: enumerableProperty,
|
|
637
|
+
type: enumerableProperty,
|
|
638
|
+
cancelable: enumerableProperty,
|
|
639
|
+
defaultPrevented: enumerableProperty,
|
|
640
|
+
timeStamp: enumerableProperty,
|
|
641
|
+
composedPath: enumerableProperty,
|
|
642
|
+
returnValue: enumerableProperty,
|
|
643
|
+
bubbles: enumerableProperty,
|
|
644
|
+
composed: enumerableProperty,
|
|
645
|
+
eventPhase: enumerableProperty,
|
|
646
|
+
cancelBubble: enumerableProperty,
|
|
647
|
+
stopPropagation: enumerableProperty,
|
|
648
|
+
isTrusted: enumerableProperty
|
|
649
|
+
});
|
|
650
|
+
CustomEventShim = (_b = class CustomEvent extends EventShim {
|
|
651
|
+
constructor(type, options = {}) {
|
|
652
|
+
super(type, options);
|
|
653
|
+
_CustomEvent_detail.set(this, void 0);
|
|
654
|
+
__classPrivateFieldSet(this, _CustomEvent_detail, options?.detail ?? null, "f");
|
|
655
|
+
}
|
|
656
|
+
initCustomEvent(_type, _bubbles, _cancelable, _detail) {
|
|
657
|
+
throw new Error("Method not implemented.");
|
|
658
|
+
}
|
|
659
|
+
get detail() {
|
|
660
|
+
return __classPrivateFieldGet(this, _CustomEvent_detail, "f");
|
|
661
|
+
}
|
|
662
|
+
}, _CustomEvent_detail = /* @__PURE__ */ new WeakMap(), _b);
|
|
663
|
+
Object.defineProperties(CustomEventShim.prototype, {
|
|
664
|
+
detail: enumerableProperty
|
|
665
|
+
});
|
|
666
|
+
EventShimWithRealType = EventShim;
|
|
667
|
+
CustomEventShimWithRealType = CustomEventShim;
|
|
668
|
+
}
|
|
669
|
+
});
|
|
670
|
+
|
|
671
|
+
// ../../node_modules/@lit-labs/ssr-dom-shim/lib/css.js
|
|
672
|
+
var _a2, CSSRuleShim;
|
|
673
|
+
var init_css = __esm({
|
|
674
|
+
"../../node_modules/@lit-labs/ssr-dom-shim/lib/css.js"() {
|
|
675
|
+
"use strict";
|
|
676
|
+
CSSRuleShim = (_a2 = class CSSRule {
|
|
677
|
+
constructor() {
|
|
678
|
+
this.STYLE_RULE = 1;
|
|
679
|
+
this.CHARSET_RULE = 2;
|
|
680
|
+
this.IMPORT_RULE = 3;
|
|
681
|
+
this.MEDIA_RULE = 4;
|
|
682
|
+
this.FONT_FACE_RULE = 5;
|
|
683
|
+
this.PAGE_RULE = 6;
|
|
684
|
+
this.NAMESPACE_RULE = 10;
|
|
685
|
+
this.KEYFRAMES_RULE = 7;
|
|
686
|
+
this.KEYFRAME_RULE = 8;
|
|
687
|
+
this.SUPPORTS_RULE = 12;
|
|
688
|
+
this.COUNTER_STYLE_RULE = 11;
|
|
689
|
+
this.FONT_FEATURE_VALUES_RULE = 14;
|
|
690
|
+
this.__parentStyleSheet = null;
|
|
691
|
+
this.cssText = "";
|
|
692
|
+
}
|
|
693
|
+
get parentRule() {
|
|
694
|
+
return null;
|
|
695
|
+
}
|
|
696
|
+
get parentStyleSheet() {
|
|
697
|
+
return this.__parentStyleSheet;
|
|
698
|
+
}
|
|
699
|
+
get type() {
|
|
700
|
+
return 0;
|
|
701
|
+
}
|
|
702
|
+
}, _a2.STYLE_RULE = 1, _a2.CHARSET_RULE = 2, _a2.IMPORT_RULE = 3, _a2.MEDIA_RULE = 4, _a2.FONT_FACE_RULE = 5, _a2.PAGE_RULE = 6, _a2.NAMESPACE_RULE = 10, _a2.KEYFRAMES_RULE = 7, _a2.KEYFRAME_RULE = 8, _a2.SUPPORTS_RULE = 12, _a2.COUNTER_STYLE_RULE = 11, _a2.FONT_FEATURE_VALUES_RULE = 14, _a2);
|
|
703
|
+
}
|
|
704
|
+
});
|
|
705
|
+
|
|
706
|
+
// ../../node_modules/@lit-labs/ssr-dom-shim/index.js
|
|
707
|
+
function promiseWithResolvers() {
|
|
708
|
+
let resolve;
|
|
709
|
+
let reject;
|
|
710
|
+
const promise = new Promise((res, rej) => {
|
|
711
|
+
resolve = res;
|
|
712
|
+
reject = rej;
|
|
713
|
+
});
|
|
714
|
+
return { promise, resolve, reject };
|
|
715
|
+
}
|
|
716
|
+
var attributes, attributesForElement, ElementShim, HTMLElementShim, HTMLElementShimWithRealType, CustomElementRegistry, CustomElementRegistryShimWithRealType, customElements;
|
|
717
|
+
var init_ssr_dom_shim = __esm({
|
|
718
|
+
"../../node_modules/@lit-labs/ssr-dom-shim/index.js"() {
|
|
719
|
+
"use strict";
|
|
720
|
+
init_element_internals();
|
|
721
|
+
init_events();
|
|
722
|
+
init_element_internals();
|
|
723
|
+
init_css();
|
|
724
|
+
init_events();
|
|
725
|
+
globalThis.Event ??= EventShimWithRealType;
|
|
726
|
+
globalThis.CustomEvent ??= CustomEventShimWithRealType;
|
|
727
|
+
attributes = /* @__PURE__ */ new WeakMap();
|
|
728
|
+
attributesForElement = (element) => {
|
|
729
|
+
let attrs = attributes.get(element);
|
|
730
|
+
if (attrs === void 0) {
|
|
731
|
+
attributes.set(element, attrs = /* @__PURE__ */ new Map());
|
|
732
|
+
}
|
|
733
|
+
return attrs;
|
|
734
|
+
};
|
|
735
|
+
ElementShim = class Element extends EventTargetShimWithRealType {
|
|
736
|
+
constructor() {
|
|
737
|
+
super(...arguments);
|
|
738
|
+
this.__shadowRootMode = null;
|
|
739
|
+
this.__shadowRoot = null;
|
|
740
|
+
this.__internals = null;
|
|
741
|
+
}
|
|
742
|
+
get attributes() {
|
|
743
|
+
return Array.from(attributesForElement(this)).map(([name, value]) => ({
|
|
744
|
+
name,
|
|
745
|
+
value
|
|
746
|
+
}));
|
|
747
|
+
}
|
|
748
|
+
get shadowRoot() {
|
|
749
|
+
if (this.__shadowRootMode === "closed") {
|
|
750
|
+
return null;
|
|
751
|
+
}
|
|
752
|
+
return this.__shadowRoot;
|
|
753
|
+
}
|
|
754
|
+
get localName() {
|
|
755
|
+
return this.constructor.__localName;
|
|
756
|
+
}
|
|
757
|
+
get tagName() {
|
|
758
|
+
return this.localName?.toUpperCase();
|
|
759
|
+
}
|
|
760
|
+
setAttribute(name, value) {
|
|
761
|
+
attributesForElement(this).set(name, String(value));
|
|
762
|
+
}
|
|
763
|
+
removeAttribute(name) {
|
|
764
|
+
attributesForElement(this).delete(name);
|
|
765
|
+
}
|
|
766
|
+
toggleAttribute(name, force) {
|
|
767
|
+
if (this.hasAttribute(name)) {
|
|
768
|
+
if (force === void 0 || !force) {
|
|
769
|
+
this.removeAttribute(name);
|
|
770
|
+
return false;
|
|
771
|
+
}
|
|
772
|
+
} else {
|
|
773
|
+
if (force === void 0 || force) {
|
|
774
|
+
this.setAttribute(name, "");
|
|
775
|
+
return true;
|
|
776
|
+
} else {
|
|
777
|
+
return false;
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
return true;
|
|
781
|
+
}
|
|
782
|
+
hasAttribute(name) {
|
|
783
|
+
return attributesForElement(this).has(name);
|
|
784
|
+
}
|
|
785
|
+
attachShadow(init) {
|
|
786
|
+
const shadowRoot = { host: this };
|
|
787
|
+
this.__shadowRootMode = init.mode;
|
|
788
|
+
if (init && init.mode === "open") {
|
|
789
|
+
this.__shadowRoot = shadowRoot;
|
|
790
|
+
}
|
|
791
|
+
return shadowRoot;
|
|
792
|
+
}
|
|
793
|
+
attachInternals() {
|
|
794
|
+
if (this.__internals !== null) {
|
|
795
|
+
throw new Error(`Failed to execute 'attachInternals' on 'HTMLElement': ElementInternals for the specified element was already attached.`);
|
|
796
|
+
}
|
|
797
|
+
const internals = new ElementInternalsShim(this);
|
|
798
|
+
this.__internals = internals;
|
|
799
|
+
return internals;
|
|
800
|
+
}
|
|
801
|
+
getAttribute(name) {
|
|
802
|
+
const value = attributesForElement(this).get(name);
|
|
803
|
+
return value ?? null;
|
|
804
|
+
}
|
|
805
|
+
};
|
|
806
|
+
HTMLElementShim = class HTMLElement extends ElementShim {
|
|
807
|
+
};
|
|
808
|
+
HTMLElementShimWithRealType = HTMLElementShim;
|
|
809
|
+
globalThis.litServerRoot ??= Object.defineProperty(new HTMLElementShimWithRealType(), "localName", {
|
|
810
|
+
// Patch localName (and tagName) to return a unique name.
|
|
811
|
+
get() {
|
|
812
|
+
return "lit-server-root";
|
|
813
|
+
}
|
|
814
|
+
});
|
|
815
|
+
CustomElementRegistry = class {
|
|
816
|
+
constructor() {
|
|
817
|
+
this.__definitions = /* @__PURE__ */ new Map();
|
|
818
|
+
this.__reverseDefinitions = /* @__PURE__ */ new Map();
|
|
819
|
+
this.__pendingWhenDefineds = /* @__PURE__ */ new Map();
|
|
820
|
+
}
|
|
821
|
+
define(name, ctor) {
|
|
822
|
+
if (this.__definitions.has(name)) {
|
|
823
|
+
if (process.env.NODE_ENV === "development") {
|
|
824
|
+
console.warn(`'CustomElementRegistry' already has "${name}" defined. This may have been caused by live reload or hot module replacement in which case it can be safely ignored.
|
|
825
|
+
Make sure to test your application with a production build as repeat registrations will throw in production.`);
|
|
826
|
+
} else {
|
|
827
|
+
throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': the name "${name}" has already been used with this registry`);
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
if (this.__reverseDefinitions.has(ctor)) {
|
|
831
|
+
throw new Error(`Failed to execute 'define' on 'CustomElementRegistry': the constructor has already been used with this registry for the tag name ${this.__reverseDefinitions.get(ctor)}`);
|
|
832
|
+
}
|
|
833
|
+
ctor.__localName = name;
|
|
834
|
+
this.__definitions.set(name, {
|
|
835
|
+
ctor,
|
|
836
|
+
// Note it's important we read `observedAttributes` in case it is a getter
|
|
837
|
+
// with side-effects, as is the case in Lit, where it triggers class
|
|
838
|
+
// finalization.
|
|
839
|
+
//
|
|
840
|
+
// TODO(aomarks) To be spec compliant, we should also capture the
|
|
841
|
+
// registration-time lifecycle methods like `connectedCallback`. For them
|
|
842
|
+
// to be actually accessible to e.g. the Lit SSR element renderer, though,
|
|
843
|
+
// we'd need to introduce a new API for accessing them (since `get` only
|
|
844
|
+
// returns the constructor).
|
|
845
|
+
observedAttributes: ctor.observedAttributes ?? []
|
|
846
|
+
});
|
|
847
|
+
this.__reverseDefinitions.set(ctor, name);
|
|
848
|
+
this.__pendingWhenDefineds.get(name)?.resolve(ctor);
|
|
849
|
+
this.__pendingWhenDefineds.delete(name);
|
|
850
|
+
}
|
|
851
|
+
get(name) {
|
|
852
|
+
const definition = this.__definitions.get(name);
|
|
853
|
+
return definition?.ctor;
|
|
854
|
+
}
|
|
855
|
+
getName(ctor) {
|
|
856
|
+
return this.__reverseDefinitions.get(ctor) ?? null;
|
|
857
|
+
}
|
|
858
|
+
upgrade(_element) {
|
|
859
|
+
throw new Error(`customElements.upgrade is not currently supported in SSR. Please file a bug if you need it.`);
|
|
860
|
+
}
|
|
861
|
+
async whenDefined(name) {
|
|
862
|
+
const definition = this.__definitions.get(name);
|
|
863
|
+
if (definition) {
|
|
864
|
+
return definition.ctor;
|
|
865
|
+
}
|
|
866
|
+
let withResolvers = this.__pendingWhenDefineds.get(name);
|
|
867
|
+
if (!withResolvers) {
|
|
868
|
+
withResolvers = promiseWithResolvers();
|
|
869
|
+
this.__pendingWhenDefineds.set(name, withResolvers);
|
|
870
|
+
}
|
|
871
|
+
return withResolvers.promise;
|
|
872
|
+
}
|
|
873
|
+
};
|
|
874
|
+
CustomElementRegistryShimWithRealType = CustomElementRegistry;
|
|
875
|
+
customElements = new CustomElementRegistryShimWithRealType();
|
|
876
|
+
}
|
|
877
|
+
});
|
|
878
|
+
|
|
879
|
+
// ../../node_modules/@lit/reactive-element/node/css-tag.js
|
|
880
|
+
var t2, e2, s2, o2, n2, r2, i2, S2, c2;
|
|
881
|
+
var init_css_tag = __esm({
|
|
882
|
+
"../../node_modules/@lit/reactive-element/node/css-tag.js"() {
|
|
883
|
+
"use strict";
|
|
884
|
+
t2 = globalThis;
|
|
885
|
+
e2 = t2.ShadowRoot && (void 0 === t2.ShadyCSS || t2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype;
|
|
886
|
+
s2 = /* @__PURE__ */ Symbol();
|
|
887
|
+
o2 = /* @__PURE__ */ new WeakMap();
|
|
888
|
+
n2 = class {
|
|
889
|
+
constructor(t3, e3, o5) {
|
|
890
|
+
if (this._$cssResult$ = true, o5 !== s2) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
891
|
+
this.cssText = t3, this.t = e3;
|
|
892
|
+
}
|
|
893
|
+
get styleSheet() {
|
|
894
|
+
let t3 = this.o;
|
|
895
|
+
const s4 = this.t;
|
|
896
|
+
if (e2 && void 0 === t3) {
|
|
897
|
+
const e3 = void 0 !== s4 && 1 === s4.length;
|
|
898
|
+
e3 && (t3 = o2.get(s4)), void 0 === t3 && ((this.o = t3 = new CSSStyleSheet()).replaceSync(this.cssText), e3 && o2.set(s4, t3));
|
|
899
|
+
}
|
|
900
|
+
return t3;
|
|
901
|
+
}
|
|
902
|
+
toString() {
|
|
903
|
+
return this.cssText;
|
|
904
|
+
}
|
|
905
|
+
};
|
|
906
|
+
r2 = (t3) => new n2("string" == typeof t3 ? t3 : t3 + "", void 0, s2);
|
|
907
|
+
i2 = (t3, ...e3) => {
|
|
908
|
+
const o5 = 1 === t3.length ? t3[0] : e3.reduce((e4, s4, o6) => e4 + ((t4) => {
|
|
909
|
+
if (true === t4._$cssResult$) return t4.cssText;
|
|
910
|
+
if ("number" == typeof t4) return t4;
|
|
911
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + t4 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
912
|
+
})(s4) + t3[o6 + 1], t3[0]);
|
|
913
|
+
return new n2(o5, t3, s2);
|
|
914
|
+
};
|
|
915
|
+
S2 = (s4, o5) => {
|
|
916
|
+
if (e2) s4.adoptedStyleSheets = o5.map((t3) => t3 instanceof CSSStyleSheet ? t3 : t3.styleSheet);
|
|
917
|
+
else for (const e3 of o5) {
|
|
918
|
+
const o6 = document.createElement("style"), n4 = t2.litNonce;
|
|
919
|
+
void 0 !== n4 && o6.setAttribute("nonce", n4), o6.textContent = e3.cssText, s4.appendChild(o6);
|
|
920
|
+
}
|
|
921
|
+
};
|
|
922
|
+
c2 = e2 || void 0 === t2.CSSStyleSheet ? (t3) => t3 : (t3) => t3 instanceof CSSStyleSheet ? ((t4) => {
|
|
923
|
+
let e3 = "";
|
|
924
|
+
for (const s4 of t4.cssRules) e3 += s4.cssText;
|
|
925
|
+
return r2(e3);
|
|
926
|
+
})(t3) : t3;
|
|
927
|
+
}
|
|
928
|
+
});
|
|
929
|
+
|
|
930
|
+
// ../../node_modules/@lit/reactive-element/node/reactive-element.js
|
|
931
|
+
var h2, r3, o3, n3, a2, c3, l2, p2, d2, u2, f2, b2, m2, y2, g2;
|
|
932
|
+
var init_reactive_element = __esm({
|
|
933
|
+
"../../node_modules/@lit/reactive-element/node/reactive-element.js"() {
|
|
934
|
+
"use strict";
|
|
935
|
+
init_ssr_dom_shim();
|
|
936
|
+
init_css_tag();
|
|
937
|
+
init_css_tag();
|
|
938
|
+
({ is: h2, defineProperty: r3, getOwnPropertyDescriptor: o3, getOwnPropertyNames: n3, getOwnPropertySymbols: a2, getPrototypeOf: c3 } = Object);
|
|
939
|
+
l2 = globalThis;
|
|
940
|
+
l2.customElements ??= customElements;
|
|
941
|
+
p2 = l2.trustedTypes;
|
|
942
|
+
d2 = p2 ? p2.emptyScript : "";
|
|
943
|
+
u2 = l2.reactiveElementPolyfillSupport;
|
|
944
|
+
f2 = (t3, s4) => t3;
|
|
945
|
+
b2 = { toAttribute(t3, s4) {
|
|
946
|
+
switch (s4) {
|
|
947
|
+
case Boolean:
|
|
948
|
+
t3 = t3 ? d2 : null;
|
|
949
|
+
break;
|
|
950
|
+
case Object:
|
|
951
|
+
case Array:
|
|
952
|
+
t3 = null == t3 ? t3 : JSON.stringify(t3);
|
|
953
|
+
}
|
|
954
|
+
return t3;
|
|
955
|
+
}, fromAttribute(t3, s4) {
|
|
956
|
+
let i4 = t3;
|
|
957
|
+
switch (s4) {
|
|
958
|
+
case Boolean:
|
|
959
|
+
i4 = null !== t3;
|
|
960
|
+
break;
|
|
961
|
+
case Number:
|
|
962
|
+
i4 = null === t3 ? null : Number(t3);
|
|
963
|
+
break;
|
|
964
|
+
case Object:
|
|
965
|
+
case Array:
|
|
966
|
+
try {
|
|
967
|
+
i4 = JSON.parse(t3);
|
|
968
|
+
} catch (t4) {
|
|
969
|
+
i4 = null;
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
return i4;
|
|
973
|
+
} };
|
|
974
|
+
m2 = (t3, s4) => !h2(t3, s4);
|
|
975
|
+
y2 = { attribute: true, type: String, converter: b2, reflect: false, useDefault: false, hasChanged: m2 };
|
|
976
|
+
Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), l2.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
977
|
+
g2 = class extends (globalThis.HTMLElement ?? HTMLElementShimWithRealType) {
|
|
978
|
+
static addInitializer(t3) {
|
|
979
|
+
this._$Ei(), (this.l ??= []).push(t3);
|
|
980
|
+
}
|
|
981
|
+
static get observedAttributes() {
|
|
982
|
+
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
983
|
+
}
|
|
984
|
+
static createProperty(t3, s4 = y2) {
|
|
985
|
+
if (s4.state && (s4.attribute = false), this._$Ei(), this.prototype.hasOwnProperty(t3) && ((s4 = Object.create(s4)).wrapped = true), this.elementProperties.set(t3, s4), !s4.noAccessor) {
|
|
986
|
+
const i4 = /* @__PURE__ */ Symbol(), e3 = this.getPropertyDescriptor(t3, i4, s4);
|
|
987
|
+
void 0 !== e3 && r3(this.prototype, t3, e3);
|
|
988
|
+
}
|
|
989
|
+
}
|
|
990
|
+
static getPropertyDescriptor(t3, s4, i4) {
|
|
991
|
+
const { get: e3, set: h3 } = o3(this.prototype, t3) ?? { get() {
|
|
992
|
+
return this[s4];
|
|
993
|
+
}, set(t4) {
|
|
994
|
+
this[s4] = t4;
|
|
995
|
+
} };
|
|
996
|
+
return { get: e3, set(s5) {
|
|
997
|
+
const r4 = e3?.call(this);
|
|
998
|
+
h3?.call(this, s5), this.requestUpdate(t3, r4, i4);
|
|
999
|
+
}, configurable: true, enumerable: true };
|
|
1000
|
+
}
|
|
1001
|
+
static getPropertyOptions(t3) {
|
|
1002
|
+
return this.elementProperties.get(t3) ?? y2;
|
|
1003
|
+
}
|
|
1004
|
+
static _$Ei() {
|
|
1005
|
+
if (this.hasOwnProperty(f2("elementProperties"))) return;
|
|
1006
|
+
const t3 = c3(this);
|
|
1007
|
+
t3.finalize(), void 0 !== t3.l && (this.l = [...t3.l]), this.elementProperties = new Map(t3.elementProperties);
|
|
1008
|
+
}
|
|
1009
|
+
static finalize() {
|
|
1010
|
+
if (this.hasOwnProperty(f2("finalized"))) return;
|
|
1011
|
+
if (this.finalized = true, this._$Ei(), this.hasOwnProperty(f2("properties"))) {
|
|
1012
|
+
const t4 = this.properties, s4 = [...n3(t4), ...a2(t4)];
|
|
1013
|
+
for (const i4 of s4) this.createProperty(i4, t4[i4]);
|
|
1014
|
+
}
|
|
1015
|
+
const t3 = this[Symbol.metadata];
|
|
1016
|
+
if (null !== t3) {
|
|
1017
|
+
const s4 = litPropertyMetadata.get(t3);
|
|
1018
|
+
if (void 0 !== s4) for (const [t4, i4] of s4) this.elementProperties.set(t4, i4);
|
|
1019
|
+
}
|
|
1020
|
+
this._$Eh = /* @__PURE__ */ new Map();
|
|
1021
|
+
for (const [t4, s4] of this.elementProperties) {
|
|
1022
|
+
const i4 = this._$Eu(t4, s4);
|
|
1023
|
+
void 0 !== i4 && this._$Eh.set(i4, t4);
|
|
1024
|
+
}
|
|
1025
|
+
this.elementStyles = this.finalizeStyles(this.styles);
|
|
1026
|
+
}
|
|
1027
|
+
static finalizeStyles(t3) {
|
|
1028
|
+
const s4 = [];
|
|
1029
|
+
if (Array.isArray(t3)) {
|
|
1030
|
+
const e3 = new Set(t3.flat(1 / 0).reverse());
|
|
1031
|
+
for (const t4 of e3) s4.unshift(c2(t4));
|
|
1032
|
+
} else void 0 !== t3 && s4.push(c2(t3));
|
|
1033
|
+
return s4;
|
|
1034
|
+
}
|
|
1035
|
+
static _$Eu(t3, s4) {
|
|
1036
|
+
const i4 = s4.attribute;
|
|
1037
|
+
return false === i4 ? void 0 : "string" == typeof i4 ? i4 : "string" == typeof t3 ? t3.toLowerCase() : void 0;
|
|
1038
|
+
}
|
|
1039
|
+
constructor() {
|
|
1040
|
+
super(), this._$Ep = void 0, this.isUpdatePending = false, this.hasUpdated = false, this._$Em = null, this._$Ev();
|
|
1041
|
+
}
|
|
1042
|
+
_$Ev() {
|
|
1043
|
+
this._$ES = new Promise((t3) => this.enableUpdating = t3), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), this.constructor.l?.forEach((t3) => t3(this));
|
|
1044
|
+
}
|
|
1045
|
+
addController(t3) {
|
|
1046
|
+
(this._$EO ??= /* @__PURE__ */ new Set()).add(t3), void 0 !== this.renderRoot && this.isConnected && t3.hostConnected?.();
|
|
1047
|
+
}
|
|
1048
|
+
removeController(t3) {
|
|
1049
|
+
this._$EO?.delete(t3);
|
|
1050
|
+
}
|
|
1051
|
+
_$E_() {
|
|
1052
|
+
const t3 = /* @__PURE__ */ new Map(), s4 = this.constructor.elementProperties;
|
|
1053
|
+
for (const i4 of s4.keys()) this.hasOwnProperty(i4) && (t3.set(i4, this[i4]), delete this[i4]);
|
|
1054
|
+
t3.size > 0 && (this._$Ep = t3);
|
|
1055
|
+
}
|
|
1056
|
+
createRenderRoot() {
|
|
1057
|
+
const t3 = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
1058
|
+
return S2(t3, this.constructor.elementStyles), t3;
|
|
1059
|
+
}
|
|
1060
|
+
connectedCallback() {
|
|
1061
|
+
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(true), this._$EO?.forEach((t3) => t3.hostConnected?.());
|
|
1062
|
+
}
|
|
1063
|
+
enableUpdating(t3) {
|
|
1064
|
+
}
|
|
1065
|
+
disconnectedCallback() {
|
|
1066
|
+
this._$EO?.forEach((t3) => t3.hostDisconnected?.());
|
|
1067
|
+
}
|
|
1068
|
+
attributeChangedCallback(t3, s4, i4) {
|
|
1069
|
+
this._$AK(t3, i4);
|
|
1070
|
+
}
|
|
1071
|
+
_$ET(t3, s4) {
|
|
1072
|
+
const i4 = this.constructor.elementProperties.get(t3), e3 = this.constructor._$Eu(t3, i4);
|
|
1073
|
+
if (void 0 !== e3 && true === i4.reflect) {
|
|
1074
|
+
const h3 = (void 0 !== i4.converter?.toAttribute ? i4.converter : b2).toAttribute(s4, i4.type);
|
|
1075
|
+
this._$Em = t3, null == h3 ? this.removeAttribute(e3) : this.setAttribute(e3, h3), this._$Em = null;
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
_$AK(t3, s4) {
|
|
1079
|
+
const i4 = this.constructor, e3 = i4._$Eh.get(t3);
|
|
1080
|
+
if (void 0 !== e3 && this._$Em !== e3) {
|
|
1081
|
+
const t4 = i4.getPropertyOptions(e3), h3 = "function" == typeof t4.converter ? { fromAttribute: t4.converter } : void 0 !== t4.converter?.fromAttribute ? t4.converter : b2;
|
|
1082
|
+
this._$Em = e3;
|
|
1083
|
+
const r4 = h3.fromAttribute(s4, t4.type);
|
|
1084
|
+
this[e3] = r4 ?? this._$Ej?.get(e3) ?? r4, this._$Em = null;
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
1087
|
+
requestUpdate(t3, s4, i4, e3 = false, h3) {
|
|
1088
|
+
if (void 0 !== t3) {
|
|
1089
|
+
const r4 = this.constructor;
|
|
1090
|
+
if (false === e3 && (h3 = this[t3]), i4 ??= r4.getPropertyOptions(t3), !((i4.hasChanged ?? m2)(h3, s4) || i4.useDefault && i4.reflect && h3 === this._$Ej?.get(t3) && !this.hasAttribute(r4._$Eu(t3, i4)))) return;
|
|
1091
|
+
this.C(t3, s4, i4);
|
|
1092
|
+
}
|
|
1093
|
+
false === this.isUpdatePending && (this._$ES = this._$EP());
|
|
1094
|
+
}
|
|
1095
|
+
C(t3, s4, { useDefault: i4, reflect: e3, wrapped: h3 }, r4) {
|
|
1096
|
+
i4 && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(t3) && (this._$Ej.set(t3, r4 ?? s4 ?? this[t3]), true !== h3 || void 0 !== r4) || (this._$AL.has(t3) || (this.hasUpdated || i4 || (s4 = void 0), this._$AL.set(t3, s4)), true === e3 && this._$Em !== t3 && (this._$Eq ??= /* @__PURE__ */ new Set()).add(t3));
|
|
1097
|
+
}
|
|
1098
|
+
async _$EP() {
|
|
1099
|
+
this.isUpdatePending = true;
|
|
1100
|
+
try {
|
|
1101
|
+
await this._$ES;
|
|
1102
|
+
} catch (t4) {
|
|
1103
|
+
Promise.reject(t4);
|
|
1104
|
+
}
|
|
1105
|
+
const t3 = this.scheduleUpdate();
|
|
1106
|
+
return null != t3 && await t3, !this.isUpdatePending;
|
|
1107
|
+
}
|
|
1108
|
+
scheduleUpdate() {
|
|
1109
|
+
return this.performUpdate();
|
|
1110
|
+
}
|
|
1111
|
+
performUpdate() {
|
|
1112
|
+
if (!this.isUpdatePending) return;
|
|
1113
|
+
if (!this.hasUpdated) {
|
|
1114
|
+
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
1115
|
+
for (const [t5, s5] of this._$Ep) this[t5] = s5;
|
|
1116
|
+
this._$Ep = void 0;
|
|
1117
|
+
}
|
|
1118
|
+
const t4 = this.constructor.elementProperties;
|
|
1119
|
+
if (t4.size > 0) for (const [s5, i4] of t4) {
|
|
1120
|
+
const { wrapped: t5 } = i4, e3 = this[s5];
|
|
1121
|
+
true !== t5 || this._$AL.has(s5) || void 0 === e3 || this.C(s5, void 0, i4, e3);
|
|
1122
|
+
}
|
|
1123
|
+
}
|
|
1124
|
+
let t3 = false;
|
|
1125
|
+
const s4 = this._$AL;
|
|
1126
|
+
try {
|
|
1127
|
+
t3 = this.shouldUpdate(s4), t3 ? (this.willUpdate(s4), this._$EO?.forEach((t4) => t4.hostUpdate?.()), this.update(s4)) : this._$EM();
|
|
1128
|
+
} catch (s5) {
|
|
1129
|
+
throw t3 = false, this._$EM(), s5;
|
|
1130
|
+
}
|
|
1131
|
+
t3 && this._$AE(s4);
|
|
1132
|
+
}
|
|
1133
|
+
willUpdate(t3) {
|
|
1134
|
+
}
|
|
1135
|
+
_$AE(t3) {
|
|
1136
|
+
this._$EO?.forEach((t4) => t4.hostUpdated?.()), this.hasUpdated || (this.hasUpdated = true, this.firstUpdated(t3)), this.updated(t3);
|
|
1137
|
+
}
|
|
1138
|
+
_$EM() {
|
|
1139
|
+
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = false;
|
|
1140
|
+
}
|
|
1141
|
+
get updateComplete() {
|
|
1142
|
+
return this.getUpdateComplete();
|
|
1143
|
+
}
|
|
1144
|
+
getUpdateComplete() {
|
|
1145
|
+
return this._$ES;
|
|
1146
|
+
}
|
|
1147
|
+
shouldUpdate(t3) {
|
|
1148
|
+
return true;
|
|
1149
|
+
}
|
|
1150
|
+
update(t3) {
|
|
1151
|
+
this._$Eq &&= this._$Eq.forEach((t4) => this._$ET(t4, this[t4])), this._$EM();
|
|
1152
|
+
}
|
|
1153
|
+
updated(t3) {
|
|
1154
|
+
}
|
|
1155
|
+
firstUpdated(t3) {
|
|
1156
|
+
}
|
|
1157
|
+
};
|
|
1158
|
+
g2.elementStyles = [], g2.shadowRootOptions = { mode: "open" }, g2[f2("elementProperties")] = /* @__PURE__ */ new Map(), g2[f2("finalized")] = /* @__PURE__ */ new Map(), u2?.({ ReactiveElement: g2 }), (l2.reactiveElementVersions ??= []).push("2.1.2");
|
|
1159
|
+
}
|
|
1160
|
+
});
|
|
1161
|
+
|
|
1162
|
+
// ../../node_modules/lit-element/lit-element.js
|
|
1163
|
+
var s3, i3, o4;
|
|
1164
|
+
var init_lit_element = __esm({
|
|
1165
|
+
"../../node_modules/lit-element/lit-element.js"() {
|
|
1166
|
+
"use strict";
|
|
1167
|
+
init_reactive_element();
|
|
1168
|
+
init_reactive_element();
|
|
1169
|
+
init_lit_html();
|
|
1170
|
+
init_lit_html();
|
|
1171
|
+
s3 = globalThis;
|
|
1172
|
+
i3 = class extends g2 {
|
|
1173
|
+
constructor() {
|
|
1174
|
+
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
1175
|
+
}
|
|
1176
|
+
createRenderRoot() {
|
|
1177
|
+
const t3 = super.createRenderRoot();
|
|
1178
|
+
return this.renderOptions.renderBefore ??= t3.firstChild, t3;
|
|
1179
|
+
}
|
|
1180
|
+
update(t3) {
|
|
1181
|
+
const r4 = this.render();
|
|
1182
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t3), this._$Do = B(r4, this.renderRoot, this.renderOptions);
|
|
1183
|
+
}
|
|
1184
|
+
connectedCallback() {
|
|
1185
|
+
super.connectedCallback(), this._$Do?.setConnected(true);
|
|
1186
|
+
}
|
|
1187
|
+
disconnectedCallback() {
|
|
1188
|
+
super.disconnectedCallback(), this._$Do?.setConnected(false);
|
|
1189
|
+
}
|
|
1190
|
+
render() {
|
|
1191
|
+
return E;
|
|
1192
|
+
}
|
|
1193
|
+
};
|
|
1194
|
+
i3._$litElement$ = true, i3["finalized"] = true, s3.litElementHydrateSupport?.({ LitElement: i3 });
|
|
1195
|
+
o4 = s3.litElementPolyfillSupport;
|
|
1196
|
+
o4?.({ LitElement: i3 });
|
|
1197
|
+
(s3.litElementVersions ??= []).push("4.2.2");
|
|
1198
|
+
}
|
|
1199
|
+
});
|
|
1200
|
+
|
|
1201
|
+
// ../../node_modules/lit-html/node/is-server.js
|
|
1202
|
+
var init_is_server = __esm({
|
|
1203
|
+
"../../node_modules/lit-html/node/is-server.js"() {
|
|
1204
|
+
"use strict";
|
|
1205
|
+
}
|
|
1206
|
+
});
|
|
1207
|
+
|
|
1208
|
+
// ../../node_modules/lit/index.js
|
|
1209
|
+
var init_lit = __esm({
|
|
1210
|
+
"../../node_modules/lit/index.js"() {
|
|
1211
|
+
"use strict";
|
|
1212
|
+
init_reactive_element();
|
|
1213
|
+
init_lit_html();
|
|
1214
|
+
init_lit_element();
|
|
1215
|
+
init_is_server();
|
|
1216
|
+
}
|
|
1217
|
+
});
|
|
1218
|
+
|
|
1219
|
+
export {
|
|
1220
|
+
r2 as r,
|
|
1221
|
+
i2 as i,
|
|
1222
|
+
b2 as b,
|
|
1223
|
+
m2 as m,
|
|
1224
|
+
init_reactive_element,
|
|
1225
|
+
T,
|
|
1226
|
+
b as b2,
|
|
1227
|
+
E,
|
|
1228
|
+
A,
|
|
1229
|
+
Z,
|
|
1230
|
+
init_lit_html,
|
|
1231
|
+
i3 as i2,
|
|
1232
|
+
init_lit
|
|
1233
|
+
};
|
|
1234
|
+
/*! Bundled license information:
|
|
1235
|
+
|
|
1236
|
+
lit-html/node/lit-html.js:
|
|
1237
|
+
lit-element/lit-element.js:
|
|
1238
|
+
(**
|
|
1239
|
+
* @license
|
|
1240
|
+
* Copyright 2017 Google LLC
|
|
1241
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1242
|
+
*)
|
|
1243
|
+
|
|
1244
|
+
@lit-labs/ssr-dom-shim/lib/element-internals.js:
|
|
1245
|
+
@lit-labs/ssr-dom-shim/lib/events.js:
|
|
1246
|
+
(**
|
|
1247
|
+
* @license
|
|
1248
|
+
* Copyright 2023 Google LLC
|
|
1249
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1250
|
+
*)
|
|
1251
|
+
|
|
1252
|
+
@lit-labs/ssr-dom-shim/lib/css.js:
|
|
1253
|
+
(**
|
|
1254
|
+
* @license
|
|
1255
|
+
* Copyright 2024 Google LLC
|
|
1256
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1257
|
+
*)
|
|
1258
|
+
|
|
1259
|
+
@lit-labs/ssr-dom-shim/index.js:
|
|
1260
|
+
@lit/reactive-element/node/css-tag.js:
|
|
1261
|
+
(**
|
|
1262
|
+
* @license
|
|
1263
|
+
* Copyright 2019 Google LLC
|
|
1264
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1265
|
+
*)
|
|
1266
|
+
|
|
1267
|
+
lit-html/node/is-server.js:
|
|
1268
|
+
(**
|
|
1269
|
+
* @license
|
|
1270
|
+
* Copyright 2022 Google LLC
|
|
1271
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1272
|
+
*)
|
|
1273
|
+
*/
|