@konemono/nostr-share-component 0.0.17 → 0.1.0
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 +9 -4
- package/dist/nostr-share-component.es.js +886 -858
- package/dist/nostr-share-component.js +40 -78
- package/dist/nostr-share-component.umd.js +40 -78
- package/package.json +2 -1
- package/dist/icons.d.ts +0 -4
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
var ur = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var _e = (t) => {
|
|
3
3
|
throw TypeError(t);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
const
|
|
9
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
10
|
-
const vr = 1,
|
|
11
|
-
function
|
|
12
|
-
return
|
|
13
|
-
}
|
|
14
|
-
const
|
|
15
|
-
var
|
|
16
|
-
function
|
|
5
|
+
var cr = (t, e, r) => e in t ? ur(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
6
|
+
var R = (t, e, r) => cr(t, typeof e != "symbol" ? e + "" : e, r), ge = (t, e, r) => e.has(t) || _e("Cannot " + r);
|
|
7
|
+
var T = (t, e, r) => (ge(t, e, "read from private field"), r ? r.call(t) : e.get(t)), Gt = (t, e, r) => e.has(t) ? _e("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, r), Kt = (t, e, r, n) => (ge(t, e, "write to private field"), n ? n.call(t, r) : e.set(t, r), r);
|
|
8
|
+
const fr = "5";
|
|
9
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(fr);
|
|
10
|
+
const vr = 1, dr = 2, hr = 16, _r = 8, gr = 1, pr = 2, ye = "[", ne = "[!", le = "]", vt = {}, br = Symbol(), $r = ["touchstart", "touchmove"];
|
|
11
|
+
function mr(t) {
|
|
12
|
+
return $r.includes(t);
|
|
13
|
+
}
|
|
14
|
+
const Ee = !1;
|
|
15
|
+
var ke = Array.isArray, se = Array.from, Tt = Object.keys, Ct = Object.defineProperty, Nt = Object.getOwnPropertyDescriptor, xr = Object.getOwnPropertyDescriptors, wr = Object.getPrototypeOf;
|
|
16
|
+
function yr(t) {
|
|
17
17
|
for (var e = 0; e < t.length; e++)
|
|
18
18
|
t[e]();
|
|
19
19
|
}
|
|
20
|
-
const M = 2,
|
|
21
|
-
function
|
|
20
|
+
const M = 2, Se = 4, Lt = 8, oe = 16, q = 32, it = 64, Jt = 128, at = 256, zt = 512, z = 1024, J = 2048, bt = 4096, L = 8192, ut = 16384, Er = 32768, ie = 65536, kr = 1 << 19, Te = 1 << 20, Sr = Symbol("$state"), Ce = Symbol("legacy props"), Tr = Symbol("");
|
|
21
|
+
function Ne(t) {
|
|
22
22
|
return t === this.v;
|
|
23
23
|
}
|
|
24
24
|
function Cr(t, e) {
|
|
@@ -27,193 +27,185 @@ function Cr(t, e) {
|
|
|
27
27
|
function Nr(t) {
|
|
28
28
|
return !Cr(t, this.v);
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function zr() {
|
|
31
31
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Ar() {
|
|
34
34
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Rr(t) {
|
|
37
37
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function Or() {
|
|
40
40
|
throw new Error("https://svelte.dev/e/state_unsafe_local_read");
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function Ir() {
|
|
43
43
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
44
44
|
}
|
|
45
|
-
let
|
|
46
|
-
function
|
|
45
|
+
let ze = !1;
|
|
46
|
+
function At(t, e) {
|
|
47
47
|
var r = {
|
|
48
48
|
f: 0,
|
|
49
49
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
50
50
|
v: t,
|
|
51
51
|
reactions: null,
|
|
52
|
-
equals:
|
|
52
|
+
equals: Ne,
|
|
53
53
|
version: 0
|
|
54
54
|
};
|
|
55
55
|
return r;
|
|
56
56
|
}
|
|
57
|
-
function
|
|
58
|
-
return /* @__PURE__ */ Mr(
|
|
57
|
+
function Dr(t) {
|
|
58
|
+
return /* @__PURE__ */ Mr(At(t));
|
|
59
59
|
}
|
|
60
60
|
// @__NO_SIDE_EFFECTS__
|
|
61
|
-
function
|
|
62
|
-
const r =
|
|
61
|
+
function ae(t, e = !1) {
|
|
62
|
+
const r = At(t);
|
|
63
63
|
return e || (r.equals = Nr), r;
|
|
64
64
|
}
|
|
65
65
|
// @__NO_SIDE_EFFECTS__
|
|
66
66
|
function Mr(t) {
|
|
67
|
-
return w !== null && w.f & M && (
|
|
67
|
+
return w !== null && w.f & M && (P === null ? Kr([t]) : P.push(t)), t;
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
return w !== null &&
|
|
69
|
+
function Ft(t, e) {
|
|
70
|
+
return w !== null && Jr() && w.f & (M | oe) && // If the source was created locally within the current derived, then
|
|
71
71
|
// we allow the mutation.
|
|
72
|
-
(
|
|
72
|
+
(P === null || !P.includes(t)) && Ir(), Ae(t, e);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
return t.equals(e) || (t.v = e, t.version =
|
|
74
|
+
function Ae(t, e) {
|
|
75
|
+
return t.equals(e) || (t.v = e, t.version = Ke(), Re(t, J), p !== null && p.f & z && !(p.f & q) && (S !== null && S.includes(t) ? (G(p, J), Vt(p)) : W === null ? Wr([t]) : W.push(t))), e;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function Re(t, e) {
|
|
78
78
|
var r = t.reactions;
|
|
79
79
|
if (r !== null)
|
|
80
80
|
for (var n = r.length, l = 0; l < n; l++) {
|
|
81
|
-
var s = r[l],
|
|
82
|
-
|
|
81
|
+
var s = r[l], o = s.f;
|
|
82
|
+
o & J || (G(s, e), o & (z | at) && (o & M ? Re(
|
|
83
83
|
/** @type {Derived} */
|
|
84
84
|
s,
|
|
85
|
-
|
|
86
|
-
) :
|
|
85
|
+
bt
|
|
86
|
+
) : Vt(
|
|
87
87
|
/** @type {Effect} */
|
|
88
88
|
s
|
|
89
89
|
)));
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function ue(t) {
|
|
93
93
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
94
94
|
}
|
|
95
|
-
let
|
|
96
|
-
function
|
|
97
|
-
|
|
95
|
+
let $ = !1;
|
|
96
|
+
function U(t) {
|
|
97
|
+
$ = t;
|
|
98
98
|
}
|
|
99
|
-
let
|
|
100
|
-
function
|
|
99
|
+
let m;
|
|
100
|
+
function F(t) {
|
|
101
101
|
if (t === null)
|
|
102
|
-
throw
|
|
103
|
-
return
|
|
102
|
+
throw ue(), vt;
|
|
103
|
+
return m = t;
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
return
|
|
105
|
+
function $t() {
|
|
106
|
+
return F(
|
|
107
107
|
/** @type {TemplateNode} */
|
|
108
|
-
/* @__PURE__ */
|
|
108
|
+
/* @__PURE__ */ Z(m)
|
|
109
109
|
);
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
if (
|
|
113
|
-
if (/* @__PURE__ */
|
|
114
|
-
throw
|
|
115
|
-
|
|
111
|
+
function ft(t) {
|
|
112
|
+
if ($) {
|
|
113
|
+
if (/* @__PURE__ */ Z(m) !== null)
|
|
114
|
+
throw ue(), vt;
|
|
115
|
+
m = t;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
function
|
|
119
|
-
|
|
120
|
-
for (var e = t, r = $; e--; )
|
|
121
|
-
r = /** @type {TemplateNode} */
|
|
122
|
-
/* @__PURE__ */ V(r);
|
|
123
|
-
$ = r;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
function Wt() {
|
|
127
|
-
for (var t = 0, e = $; ; ) {
|
|
118
|
+
function Xt() {
|
|
119
|
+
for (var t = 0, e = m; ; ) {
|
|
128
120
|
if (e.nodeType === 8) {
|
|
129
121
|
var r = (
|
|
130
122
|
/** @type {Comment} */
|
|
131
123
|
e.data
|
|
132
124
|
);
|
|
133
|
-
if (r ===
|
|
125
|
+
if (r === le) {
|
|
134
126
|
if (t === 0) return e;
|
|
135
127
|
t -= 1;
|
|
136
|
-
} else (r ===
|
|
128
|
+
} else (r === ye || r === ne) && (t += 1);
|
|
137
129
|
}
|
|
138
130
|
var n = (
|
|
139
131
|
/** @type {TemplateNode} */
|
|
140
|
-
/* @__PURE__ */
|
|
132
|
+
/* @__PURE__ */ Z(e)
|
|
141
133
|
);
|
|
142
134
|
e.remove(), e = n;
|
|
143
135
|
}
|
|
144
136
|
}
|
|
145
|
-
var
|
|
146
|
-
function
|
|
147
|
-
if (
|
|
148
|
-
|
|
137
|
+
var pe, Oe, Ie;
|
|
138
|
+
function Zt() {
|
|
139
|
+
if (pe === void 0) {
|
|
140
|
+
pe = window;
|
|
149
141
|
var t = Element.prototype, e = Node.prototype;
|
|
150
|
-
|
|
142
|
+
Oe = Nt(e, "firstChild").get, Ie = Nt(e, "nextSibling").get, t.__click = void 0, t.__className = "", t.__attributes = null, t.__styles = null, t.__e = void 0, Text.prototype.__t = void 0;
|
|
151
143
|
}
|
|
152
144
|
}
|
|
153
|
-
function
|
|
145
|
+
function Pt(t = "") {
|
|
154
146
|
return document.createTextNode(t);
|
|
155
147
|
}
|
|
156
148
|
// @__NO_SIDE_EFFECTS__
|
|
157
|
-
function
|
|
158
|
-
return
|
|
149
|
+
function Y(t) {
|
|
150
|
+
return Oe.call(t);
|
|
159
151
|
}
|
|
160
152
|
// @__NO_SIDE_EFFECTS__
|
|
161
|
-
function
|
|
162
|
-
return
|
|
153
|
+
function Z(t) {
|
|
154
|
+
return Ie.call(t);
|
|
163
155
|
}
|
|
164
|
-
function
|
|
165
|
-
if (
|
|
166
|
-
return /* @__PURE__ */
|
|
156
|
+
function yt(t, e) {
|
|
157
|
+
if (!$)
|
|
158
|
+
return /* @__PURE__ */ Y(t);
|
|
167
159
|
var r = (
|
|
168
160
|
/** @type {TemplateNode} */
|
|
169
|
-
/* @__PURE__ */
|
|
161
|
+
/* @__PURE__ */ Y(m)
|
|
170
162
|
);
|
|
171
|
-
return r === null && (r =
|
|
163
|
+
return r === null && (r = m.appendChild(Pt())), F(r), r;
|
|
172
164
|
}
|
|
173
|
-
function
|
|
174
|
-
if (
|
|
165
|
+
function be(t, e) {
|
|
166
|
+
if (!$) {
|
|
175
167
|
var r = (
|
|
176
168
|
/** @type {DocumentFragment} */
|
|
177
|
-
/* @__PURE__ */
|
|
169
|
+
/* @__PURE__ */ Y(
|
|
178
170
|
/** @type {Node} */
|
|
179
171
|
t
|
|
180
172
|
)
|
|
181
173
|
);
|
|
182
|
-
return r instanceof Comment && r.data === "" ? /* @__PURE__ */
|
|
174
|
+
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ Z(r) : r;
|
|
183
175
|
}
|
|
184
|
-
return
|
|
176
|
+
return m;
|
|
185
177
|
}
|
|
186
|
-
function
|
|
187
|
-
let n =
|
|
178
|
+
function Rt(t, e = 1, r = !1) {
|
|
179
|
+
let n = $ ? m : t;
|
|
188
180
|
for (var l; e--; )
|
|
189
181
|
l = n, n = /** @type {TemplateNode} */
|
|
190
|
-
/* @__PURE__ */
|
|
191
|
-
if (
|
|
182
|
+
/* @__PURE__ */ Z(n);
|
|
183
|
+
if (!$)
|
|
192
184
|
return n;
|
|
193
185
|
var s = n == null ? void 0 : n.nodeType;
|
|
194
186
|
if (r && s !== 3) {
|
|
195
|
-
var
|
|
196
|
-
return n === null ? l == null || l.after(
|
|
187
|
+
var o = Pt();
|
|
188
|
+
return n === null ? l == null || l.after(o) : n.before(o), F(o), o;
|
|
197
189
|
}
|
|
198
|
-
return
|
|
190
|
+
return F(n), /** @type {TemplateNode} */
|
|
199
191
|
n;
|
|
200
192
|
}
|
|
201
|
-
function
|
|
193
|
+
function De(t) {
|
|
202
194
|
t.textContent = "";
|
|
203
195
|
}
|
|
204
196
|
// @__NO_SIDE_EFFECTS__
|
|
205
|
-
function
|
|
197
|
+
function Lr(t) {
|
|
206
198
|
var e = M | J;
|
|
207
|
-
p === null ? e |=
|
|
199
|
+
p === null ? e |= at : p.f |= Te;
|
|
208
200
|
var r = w !== null && w.f & M ? (
|
|
209
201
|
/** @type {Derived} */
|
|
210
202
|
w
|
|
211
203
|
) : null;
|
|
212
204
|
const n = {
|
|
213
205
|
children: null,
|
|
214
|
-
ctx:
|
|
206
|
+
ctx: D,
|
|
215
207
|
deps: null,
|
|
216
|
-
equals:
|
|
208
|
+
equals: Ne,
|
|
217
209
|
f: e,
|
|
218
210
|
fn: t,
|
|
219
211
|
reactions: null,
|
|
@@ -226,16 +218,16 @@ function zr(t) {
|
|
|
226
218
|
};
|
|
227
219
|
return r !== null && (r.children ?? (r.children = [])).push(n), n;
|
|
228
220
|
}
|
|
229
|
-
function
|
|
221
|
+
function Me(t) {
|
|
230
222
|
var e = t.children;
|
|
231
223
|
if (e !== null) {
|
|
232
224
|
t.children = null;
|
|
233
225
|
for (var r = 0; r < e.length; r += 1) {
|
|
234
226
|
var n = e[r];
|
|
235
|
-
n.f & M ?
|
|
227
|
+
n.f & M ? ce(
|
|
236
228
|
/** @type {Derived} */
|
|
237
229
|
n
|
|
238
|
-
) :
|
|
230
|
+
) : j(
|
|
239
231
|
/** @type {Effect} */
|
|
240
232
|
n
|
|
241
233
|
);
|
|
@@ -253,30 +245,30 @@ function Fr(t) {
|
|
|
253
245
|
}
|
|
254
246
|
return null;
|
|
255
247
|
}
|
|
256
|
-
function
|
|
248
|
+
function Le(t) {
|
|
257
249
|
var e, r = p;
|
|
258
|
-
|
|
250
|
+
X(Fr(t));
|
|
259
251
|
try {
|
|
260
|
-
|
|
252
|
+
Me(t), e = We(t);
|
|
261
253
|
} finally {
|
|
262
|
-
|
|
254
|
+
X(r);
|
|
263
255
|
}
|
|
264
256
|
return e;
|
|
265
257
|
}
|
|
266
|
-
function
|
|
267
|
-
var e =
|
|
268
|
-
|
|
258
|
+
function Fe(t) {
|
|
259
|
+
var e = Le(t), r = (tt || t.f & at) && t.deps !== null ? bt : z;
|
|
260
|
+
G(t, r), t.equals(e) || (t.v = e, t.version = Ke());
|
|
269
261
|
}
|
|
270
|
-
function
|
|
271
|
-
|
|
262
|
+
function ce(t) {
|
|
263
|
+
Me(t), pt(t, 0), G(t, ut), t.v = t.children = t.deps = t.ctx = t.reactions = null;
|
|
272
264
|
}
|
|
273
265
|
function Pr(t, e) {
|
|
274
266
|
var r = e.last;
|
|
275
267
|
r === null ? e.last = e.first = t : (r.next = t, t.prev = r, e.last = t);
|
|
276
268
|
}
|
|
277
|
-
function
|
|
278
|
-
var l = (t &
|
|
279
|
-
ctx:
|
|
269
|
+
function ct(t, e, r, n = !0) {
|
|
270
|
+
var l = (t & it) !== 0, s = p, o = {
|
|
271
|
+
ctx: D,
|
|
280
272
|
deps: null,
|
|
281
273
|
deriveds: null,
|
|
282
274
|
nodes_start: null,
|
|
@@ -293,119 +285,119 @@ function _t(t, e, r, n = !0) {
|
|
|
293
285
|
version: 0
|
|
294
286
|
};
|
|
295
287
|
if (r) {
|
|
296
|
-
var
|
|
288
|
+
var i = nt;
|
|
297
289
|
try {
|
|
298
|
-
|
|
299
|
-
} catch (
|
|
300
|
-
throw
|
|
290
|
+
$e(!0), Ht(o), o.f |= Er;
|
|
291
|
+
} catch (d) {
|
|
292
|
+
throw j(o), d;
|
|
301
293
|
} finally {
|
|
302
|
-
|
|
294
|
+
$e(i);
|
|
303
295
|
}
|
|
304
|
-
} else e !== null &&
|
|
305
|
-
var u = r &&
|
|
306
|
-
if (!u && !l && n && (s !== null && Pr(
|
|
307
|
-
var
|
|
296
|
+
} else e !== null && Vt(o);
|
|
297
|
+
var u = r && o.deps === null && o.first === null && o.nodes_start === null && o.teardown === null && (o.f & Te) === 0;
|
|
298
|
+
if (!u && !l && n && (s !== null && Pr(o, s), w !== null && w.f & M)) {
|
|
299
|
+
var f = (
|
|
308
300
|
/** @type {Derived} */
|
|
309
301
|
w
|
|
310
302
|
);
|
|
311
|
-
(
|
|
303
|
+
(f.children ?? (f.children = [])).push(o);
|
|
312
304
|
}
|
|
313
|
-
return
|
|
305
|
+
return o;
|
|
314
306
|
}
|
|
315
|
-
function
|
|
316
|
-
const e =
|
|
307
|
+
function qr(t) {
|
|
308
|
+
const e = ct(it, t, !0);
|
|
317
309
|
return () => {
|
|
318
|
-
|
|
310
|
+
j(e);
|
|
319
311
|
};
|
|
320
312
|
}
|
|
321
|
-
function
|
|
322
|
-
const e =
|
|
313
|
+
function Hr(t) {
|
|
314
|
+
const e = ct(it, t, !0);
|
|
323
315
|
return (r = {}) => new Promise((n) => {
|
|
324
|
-
r.outro ?
|
|
325
|
-
|
|
326
|
-
}) : (
|
|
316
|
+
r.outro ? It(e, () => {
|
|
317
|
+
j(e), n(void 0);
|
|
318
|
+
}) : (j(e), n(void 0));
|
|
327
319
|
});
|
|
328
320
|
}
|
|
329
|
-
function
|
|
330
|
-
return
|
|
321
|
+
function Vr(t) {
|
|
322
|
+
return ct(Se, t, !1);
|
|
331
323
|
}
|
|
332
|
-
function
|
|
333
|
-
return
|
|
324
|
+
function Br(t) {
|
|
325
|
+
return ct(Lt, t, !0);
|
|
334
326
|
}
|
|
335
|
-
function
|
|
336
|
-
return
|
|
327
|
+
function Ot(t) {
|
|
328
|
+
return fe(t);
|
|
337
329
|
}
|
|
338
|
-
function
|
|
339
|
-
return
|
|
330
|
+
function fe(t, e = 0) {
|
|
331
|
+
return ct(Lt | oe | e, t, !0);
|
|
340
332
|
}
|
|
341
|
-
function
|
|
342
|
-
return
|
|
333
|
+
function ht(t, e = !0) {
|
|
334
|
+
return ct(Lt | q, t, !0, e);
|
|
343
335
|
}
|
|
344
|
-
function
|
|
336
|
+
function Pe(t) {
|
|
345
337
|
var e = t.teardown;
|
|
346
338
|
if (e !== null) {
|
|
347
339
|
const r = w;
|
|
348
|
-
|
|
340
|
+
ot(null);
|
|
349
341
|
try {
|
|
350
342
|
e.call(null);
|
|
351
343
|
} finally {
|
|
352
|
-
|
|
344
|
+
ot(r);
|
|
353
345
|
}
|
|
354
346
|
}
|
|
355
347
|
}
|
|
356
|
-
function
|
|
348
|
+
function qe(t) {
|
|
357
349
|
var e = t.deriveds;
|
|
358
350
|
if (e !== null) {
|
|
359
351
|
t.deriveds = null;
|
|
360
352
|
for (var r = 0; r < e.length; r += 1)
|
|
361
|
-
|
|
353
|
+
ce(e[r]);
|
|
362
354
|
}
|
|
363
355
|
}
|
|
364
|
-
function
|
|
356
|
+
function He(t, e = !1) {
|
|
365
357
|
var r = t.first;
|
|
366
358
|
for (t.first = t.last = null; r !== null; ) {
|
|
367
359
|
var n = r.next;
|
|
368
|
-
|
|
360
|
+
j(r, e), r = n;
|
|
369
361
|
}
|
|
370
362
|
}
|
|
371
363
|
function Ur(t) {
|
|
372
364
|
for (var e = t.first; e !== null; ) {
|
|
373
365
|
var r = e.next;
|
|
374
|
-
e.f &
|
|
366
|
+
e.f & q || j(e), e = r;
|
|
375
367
|
}
|
|
376
368
|
}
|
|
377
|
-
function
|
|
369
|
+
function j(t, e = !0) {
|
|
378
370
|
var r = !1;
|
|
379
371
|
if ((e || t.f & kr) && t.nodes_start !== null) {
|
|
380
372
|
for (var n = t.nodes_start, l = t.nodes_end; n !== null; ) {
|
|
381
373
|
var s = n === l ? null : (
|
|
382
374
|
/** @type {TemplateNode} */
|
|
383
|
-
/* @__PURE__ */
|
|
375
|
+
/* @__PURE__ */ Z(n)
|
|
384
376
|
);
|
|
385
377
|
n.remove(), n = s;
|
|
386
378
|
}
|
|
387
379
|
r = !0;
|
|
388
380
|
}
|
|
389
|
-
|
|
390
|
-
var
|
|
391
|
-
if (
|
|
392
|
-
for (const u of
|
|
381
|
+
He(t, e && !r), qe(t), pt(t, 0), G(t, ut);
|
|
382
|
+
var o = t.transitions;
|
|
383
|
+
if (o !== null)
|
|
384
|
+
for (const u of o)
|
|
393
385
|
u.stop();
|
|
394
|
-
|
|
395
|
-
var
|
|
396
|
-
|
|
386
|
+
Pe(t);
|
|
387
|
+
var i = t.parent;
|
|
388
|
+
i !== null && i.first !== null && Ve(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes_start = t.nodes_end = null;
|
|
397
389
|
}
|
|
398
|
-
function
|
|
390
|
+
function Ve(t) {
|
|
399
391
|
var e = t.parent, r = t.prev, n = t.next;
|
|
400
392
|
r !== null && (r.next = n), n !== null && (n.prev = r), e !== null && (e.first === t && (e.first = n), e.last === t && (e.last = r));
|
|
401
393
|
}
|
|
402
|
-
function
|
|
394
|
+
function It(t, e) {
|
|
403
395
|
var r = [];
|
|
404
|
-
|
|
405
|
-
|
|
396
|
+
ve(t, r, !0), Be(r, () => {
|
|
397
|
+
j(t), e && e();
|
|
406
398
|
});
|
|
407
399
|
}
|
|
408
|
-
function
|
|
400
|
+
function Be(t, e) {
|
|
409
401
|
var r = t.length;
|
|
410
402
|
if (r > 0) {
|
|
411
403
|
var n = () => --r || e();
|
|
@@ -414,158 +406,158 @@ function He(t, e) {
|
|
|
414
406
|
} else
|
|
415
407
|
e();
|
|
416
408
|
}
|
|
417
|
-
function
|
|
418
|
-
if (!(t.f &
|
|
419
|
-
if (t.f ^=
|
|
420
|
-
for (const
|
|
421
|
-
(
|
|
409
|
+
function ve(t, e, r) {
|
|
410
|
+
if (!(t.f & L)) {
|
|
411
|
+
if (t.f ^= L, t.transitions !== null)
|
|
412
|
+
for (const o of t.transitions)
|
|
413
|
+
(o.is_global || r) && e.push(o);
|
|
422
414
|
for (var n = t.first; n !== null; ) {
|
|
423
|
-
var l = n.next, s = (n.f &
|
|
424
|
-
|
|
415
|
+
var l = n.next, s = (n.f & ie) !== 0 || (n.f & q) !== 0;
|
|
416
|
+
ve(n, e, s ? r : !1), n = l;
|
|
425
417
|
}
|
|
426
418
|
}
|
|
427
419
|
}
|
|
428
|
-
function
|
|
429
|
-
|
|
420
|
+
function Dt(t) {
|
|
421
|
+
Ue(t, !0);
|
|
430
422
|
}
|
|
431
|
-
function
|
|
432
|
-
if (t.f &
|
|
433
|
-
|
|
423
|
+
function Ue(t, e) {
|
|
424
|
+
if (t.f & L) {
|
|
425
|
+
mt(t) && Ht(t), t.f ^= L;
|
|
434
426
|
for (var r = t.first; r !== null; ) {
|
|
435
|
-
var n = r.next, l = (r.f &
|
|
436
|
-
|
|
427
|
+
var n = r.next, l = (r.f & ie) !== 0 || (r.f & q) !== 0;
|
|
428
|
+
Ue(r, l ? e : !1), r = n;
|
|
437
429
|
}
|
|
438
430
|
if (t.transitions !== null)
|
|
439
431
|
for (const s of t.transitions)
|
|
440
432
|
(s.is_global || e) && s.in();
|
|
441
433
|
}
|
|
442
434
|
}
|
|
443
|
-
let
|
|
444
|
-
function
|
|
445
|
-
|
|
446
|
-
const t =
|
|
447
|
-
|
|
435
|
+
let Mt = !1, Qt = [];
|
|
436
|
+
function Ye() {
|
|
437
|
+
Mt = !1;
|
|
438
|
+
const t = Qt.slice();
|
|
439
|
+
Qt = [], yr(t);
|
|
448
440
|
}
|
|
449
|
-
function
|
|
450
|
-
|
|
441
|
+
function Yr(t) {
|
|
442
|
+
Mt || (Mt = !0, queueMicrotask(Ye)), Qt.push(t);
|
|
451
443
|
}
|
|
452
|
-
function
|
|
453
|
-
|
|
444
|
+
function jr() {
|
|
445
|
+
Mt && Ye();
|
|
454
446
|
}
|
|
455
|
-
const
|
|
456
|
-
let Et = !1, kt =
|
|
457
|
-
function
|
|
458
|
-
|
|
447
|
+
const je = 0, Gr = 1;
|
|
448
|
+
let Et = !1, kt = je, _t = !1, gt = null, nt = !1;
|
|
449
|
+
function $e(t) {
|
|
450
|
+
nt = t;
|
|
459
451
|
}
|
|
460
|
-
let
|
|
452
|
+
let Q = [], lt = 0;
|
|
461
453
|
let w = null;
|
|
462
|
-
function
|
|
454
|
+
function ot(t) {
|
|
463
455
|
w = t;
|
|
464
456
|
}
|
|
465
457
|
let p = null;
|
|
466
|
-
function
|
|
458
|
+
function X(t) {
|
|
467
459
|
p = t;
|
|
468
460
|
}
|
|
469
|
-
let
|
|
470
|
-
function
|
|
471
|
-
|
|
461
|
+
let P = null;
|
|
462
|
+
function Kr(t) {
|
|
463
|
+
P = t;
|
|
472
464
|
}
|
|
473
|
-
let
|
|
474
|
-
function
|
|
475
|
-
|
|
465
|
+
let S = null, C = 0, W = null;
|
|
466
|
+
function Wr(t) {
|
|
467
|
+
W = t;
|
|
476
468
|
}
|
|
477
|
-
let
|
|
478
|
-
function
|
|
479
|
-
return ++
|
|
469
|
+
let Ge = 1, tt = !1, D = null;
|
|
470
|
+
function Ke() {
|
|
471
|
+
return ++Ge;
|
|
480
472
|
}
|
|
481
|
-
function
|
|
482
|
-
return !
|
|
473
|
+
function Jr() {
|
|
474
|
+
return !ze;
|
|
483
475
|
}
|
|
484
|
-
function
|
|
485
|
-
var
|
|
476
|
+
function mt(t) {
|
|
477
|
+
var o, i;
|
|
486
478
|
var e = t.f;
|
|
487
479
|
if (e & J)
|
|
488
480
|
return !0;
|
|
489
|
-
if (e &
|
|
490
|
-
var r = t.deps, n = (e &
|
|
481
|
+
if (e & bt) {
|
|
482
|
+
var r = t.deps, n = (e & at) !== 0;
|
|
491
483
|
if (r !== null) {
|
|
492
484
|
var l;
|
|
493
|
-
if (e &
|
|
485
|
+
if (e & zt) {
|
|
494
486
|
for (l = 0; l < r.length; l++)
|
|
495
|
-
((
|
|
496
|
-
t.f ^=
|
|
487
|
+
((o = r[l]).reactions ?? (o.reactions = [])).push(t);
|
|
488
|
+
t.f ^= zt;
|
|
497
489
|
}
|
|
498
490
|
for (l = 0; l < r.length; l++) {
|
|
499
491
|
var s = r[l];
|
|
500
|
-
if (
|
|
492
|
+
if (mt(
|
|
501
493
|
/** @type {Derived} */
|
|
502
494
|
s
|
|
503
|
-
) &&
|
|
495
|
+
) && Fe(
|
|
504
496
|
/** @type {Derived} */
|
|
505
497
|
s
|
|
506
|
-
), n && p !== null && !
|
|
498
|
+
), n && p !== null && !tt && !((i = s == null ? void 0 : s.reactions) != null && i.includes(t)) && (s.reactions ?? (s.reactions = [])).push(t), s.version > t.version)
|
|
507
499
|
return !0;
|
|
508
500
|
}
|
|
509
501
|
}
|
|
510
|
-
(!n || p !== null && !
|
|
502
|
+
(!n || p !== null && !tt) && G(t, z);
|
|
511
503
|
}
|
|
512
504
|
return !1;
|
|
513
505
|
}
|
|
514
|
-
function
|
|
506
|
+
function Xr(t, e) {
|
|
515
507
|
for (var r = e; r !== null; ) {
|
|
516
|
-
if (r.f &
|
|
508
|
+
if (r.f & Jt)
|
|
517
509
|
try {
|
|
518
510
|
r.fn(t);
|
|
519
511
|
return;
|
|
520
512
|
} catch {
|
|
521
|
-
r.f ^=
|
|
513
|
+
r.f ^= Jt;
|
|
522
514
|
}
|
|
523
515
|
r = r.parent;
|
|
524
516
|
}
|
|
525
517
|
throw Et = !1, t;
|
|
526
518
|
}
|
|
527
|
-
function
|
|
528
|
-
return (t.f &
|
|
519
|
+
function Zr(t) {
|
|
520
|
+
return (t.f & ut) === 0 && (t.parent === null || (t.parent.f & Jt) === 0);
|
|
529
521
|
}
|
|
530
|
-
function
|
|
522
|
+
function qt(t, e, r, n) {
|
|
531
523
|
if (Et) {
|
|
532
|
-
if (r === null && (Et = !1),
|
|
524
|
+
if (r === null && (Et = !1), Zr(e))
|
|
533
525
|
throw t;
|
|
534
526
|
return;
|
|
535
527
|
}
|
|
536
528
|
r !== null && (Et = !0);
|
|
537
529
|
{
|
|
538
|
-
|
|
530
|
+
Xr(t, e);
|
|
539
531
|
return;
|
|
540
532
|
}
|
|
541
533
|
}
|
|
542
|
-
function
|
|
534
|
+
function We(t) {
|
|
543
535
|
var c;
|
|
544
|
-
var e =
|
|
545
|
-
|
|
546
|
-
null, C = 0,
|
|
536
|
+
var e = S, r = C, n = W, l = w, s = tt, o = P, i = D, u = t.f;
|
|
537
|
+
S = /** @type {null | Value[]} */
|
|
538
|
+
null, C = 0, W = null, w = u & (q | it) ? null : t, tt = !nt && (u & at) !== 0, P = null, D = t.ctx;
|
|
547
539
|
try {
|
|
548
|
-
var
|
|
540
|
+
var f = (
|
|
549
541
|
/** @type {Function} */
|
|
550
542
|
(0, t.fn)()
|
|
551
|
-
),
|
|
552
|
-
if (
|
|
543
|
+
), d = t.deps;
|
|
544
|
+
if (S !== null) {
|
|
553
545
|
var a;
|
|
554
|
-
if (
|
|
555
|
-
for (
|
|
556
|
-
|
|
546
|
+
if (pt(t, C), d !== null && C > 0)
|
|
547
|
+
for (d.length = C + S.length, a = 0; a < S.length; a++)
|
|
548
|
+
d[C + a] = S[a];
|
|
557
549
|
else
|
|
558
|
-
t.deps =
|
|
559
|
-
if (!
|
|
560
|
-
for (a = C; a <
|
|
561
|
-
((c =
|
|
562
|
-
} else
|
|
563
|
-
return
|
|
550
|
+
t.deps = d = S;
|
|
551
|
+
if (!tt)
|
|
552
|
+
for (a = C; a < d.length; a++)
|
|
553
|
+
((c = d[a]).reactions ?? (c.reactions = [])).push(t);
|
|
554
|
+
} else d !== null && C < d.length && (pt(t, C), d.length = C);
|
|
555
|
+
return f;
|
|
564
556
|
} finally {
|
|
565
|
-
|
|
557
|
+
S = e, C = r, W = n, w = l, tt = s, P = o, D = i;
|
|
566
558
|
}
|
|
567
559
|
}
|
|
568
|
-
function
|
|
560
|
+
function Qr(t, e) {
|
|
569
561
|
let r = e.reactions;
|
|
570
562
|
if (r !== null) {
|
|
571
563
|
var n = r.indexOf(t);
|
|
@@ -577,189 +569,189 @@ function tn(t, e) {
|
|
|
577
569
|
r === null && e.f & M && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
578
570
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
579
571
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
580
|
-
(
|
|
572
|
+
(S === null || !S.includes(e)) && (G(e, bt), e.f & (at | zt) || (e.f ^= zt), pt(
|
|
581
573
|
/** @type {Derived} **/
|
|
582
574
|
e,
|
|
583
575
|
0
|
|
584
576
|
));
|
|
585
577
|
}
|
|
586
|
-
function
|
|
578
|
+
function pt(t, e) {
|
|
587
579
|
var r = t.deps;
|
|
588
580
|
if (r !== null)
|
|
589
581
|
for (var n = e; n < r.length; n++)
|
|
590
|
-
|
|
582
|
+
Qr(t, r[n]);
|
|
591
583
|
}
|
|
592
|
-
function
|
|
584
|
+
function Ht(t) {
|
|
593
585
|
var e = t.f;
|
|
594
|
-
if (!(e &
|
|
595
|
-
|
|
596
|
-
var r = p, n =
|
|
586
|
+
if (!(e & ut)) {
|
|
587
|
+
G(t, z);
|
|
588
|
+
var r = p, n = D;
|
|
597
589
|
p = t;
|
|
598
590
|
try {
|
|
599
|
-
e &
|
|
600
|
-
var l =
|
|
601
|
-
t.teardown = typeof l == "function" ? l : null, t.version =
|
|
591
|
+
e & oe ? Ur(t) : He(t), qe(t), Pe(t);
|
|
592
|
+
var l = We(t);
|
|
593
|
+
t.teardown = typeof l == "function" ? l : null, t.version = Ge;
|
|
602
594
|
} catch (s) {
|
|
603
|
-
|
|
595
|
+
qt(s, t, r, n || t.ctx);
|
|
604
596
|
} finally {
|
|
605
597
|
p = r;
|
|
606
598
|
}
|
|
607
599
|
}
|
|
608
600
|
}
|
|
609
|
-
function
|
|
610
|
-
if (
|
|
611
|
-
|
|
601
|
+
function Je() {
|
|
602
|
+
if (lt > 1e3) {
|
|
603
|
+
lt = 0;
|
|
612
604
|
try {
|
|
613
|
-
|
|
605
|
+
zr();
|
|
614
606
|
} catch (t) {
|
|
615
607
|
if (gt !== null)
|
|
616
|
-
|
|
608
|
+
qt(t, gt, null);
|
|
617
609
|
else
|
|
618
610
|
throw t;
|
|
619
611
|
}
|
|
620
612
|
}
|
|
621
|
-
|
|
613
|
+
lt++;
|
|
622
614
|
}
|
|
623
|
-
function
|
|
615
|
+
function Xe(t) {
|
|
624
616
|
var e = t.length;
|
|
625
617
|
if (e !== 0) {
|
|
626
|
-
|
|
627
|
-
var r =
|
|
628
|
-
|
|
618
|
+
Je();
|
|
619
|
+
var r = nt;
|
|
620
|
+
nt = !0;
|
|
629
621
|
try {
|
|
630
622
|
for (var n = 0; n < e; n++) {
|
|
631
623
|
var l = t[n];
|
|
632
|
-
l.f &
|
|
624
|
+
l.f & z || (l.f ^= z);
|
|
633
625
|
var s = [];
|
|
634
|
-
|
|
626
|
+
Ze(l, s), tn(s);
|
|
635
627
|
}
|
|
636
628
|
} finally {
|
|
637
|
-
|
|
629
|
+
nt = r;
|
|
638
630
|
}
|
|
639
631
|
}
|
|
640
632
|
}
|
|
641
|
-
function
|
|
633
|
+
function tn(t) {
|
|
642
634
|
var e = t.length;
|
|
643
635
|
if (e !== 0)
|
|
644
636
|
for (var r = 0; r < e; r++) {
|
|
645
637
|
var n = t[r];
|
|
646
|
-
if (!(n.f & (
|
|
638
|
+
if (!(n.f & (ut | L)))
|
|
647
639
|
try {
|
|
648
|
-
|
|
640
|
+
mt(n) && (Ht(n), n.deps === null && n.first === null && n.nodes_start === null && (n.teardown === null ? Ve(n) : n.fn = null));
|
|
649
641
|
} catch (l) {
|
|
650
|
-
|
|
642
|
+
qt(l, n, null, n.ctx);
|
|
651
643
|
}
|
|
652
644
|
}
|
|
653
645
|
}
|
|
654
|
-
function
|
|
655
|
-
if (
|
|
646
|
+
function en() {
|
|
647
|
+
if (_t = !1, lt > 1001)
|
|
656
648
|
return;
|
|
657
|
-
const t =
|
|
658
|
-
|
|
649
|
+
const t = Q;
|
|
650
|
+
Q = [], Xe(t), _t || (lt = 0, gt = null);
|
|
659
651
|
}
|
|
660
|
-
function
|
|
661
|
-
kt ===
|
|
652
|
+
function Vt(t) {
|
|
653
|
+
kt === je && (_t || (_t = !0, queueMicrotask(en))), gt = t;
|
|
662
654
|
for (var e = t; e.parent !== null; ) {
|
|
663
655
|
e = e.parent;
|
|
664
656
|
var r = e.f;
|
|
665
|
-
if (r & (
|
|
666
|
-
if (!(r &
|
|
667
|
-
e.f ^=
|
|
657
|
+
if (r & (it | q)) {
|
|
658
|
+
if (!(r & z)) return;
|
|
659
|
+
e.f ^= z;
|
|
668
660
|
}
|
|
669
661
|
}
|
|
670
|
-
|
|
662
|
+
Q.push(e);
|
|
671
663
|
}
|
|
672
|
-
function
|
|
664
|
+
function Ze(t, e) {
|
|
673
665
|
var r = t.first, n = [];
|
|
674
666
|
t: for (; r !== null; ) {
|
|
675
|
-
var l = r.f, s = (l &
|
|
676
|
-
if (!
|
|
677
|
-
if (l &
|
|
667
|
+
var l = r.f, s = (l & q) !== 0, o = s && (l & z) !== 0, i = r.next;
|
|
668
|
+
if (!o && !(l & L))
|
|
669
|
+
if (l & Lt) {
|
|
678
670
|
if (s)
|
|
679
|
-
r.f ^=
|
|
671
|
+
r.f ^= z;
|
|
680
672
|
else
|
|
681
673
|
try {
|
|
682
|
-
|
|
674
|
+
mt(r) && Ht(r);
|
|
683
675
|
} catch (a) {
|
|
684
|
-
|
|
676
|
+
qt(a, r, null, r.ctx);
|
|
685
677
|
}
|
|
686
678
|
var u = r.first;
|
|
687
679
|
if (u !== null) {
|
|
688
680
|
r = u;
|
|
689
681
|
continue;
|
|
690
682
|
}
|
|
691
|
-
} else l &
|
|
692
|
-
if (
|
|
683
|
+
} else l & Se && n.push(r);
|
|
684
|
+
if (i === null) {
|
|
693
685
|
let a = r.parent;
|
|
694
686
|
for (; a !== null; ) {
|
|
695
687
|
if (t === a)
|
|
696
688
|
break t;
|
|
697
|
-
var
|
|
698
|
-
if (
|
|
699
|
-
r =
|
|
689
|
+
var f = a.next;
|
|
690
|
+
if (f !== null) {
|
|
691
|
+
r = f;
|
|
700
692
|
continue t;
|
|
701
693
|
}
|
|
702
694
|
a = a.parent;
|
|
703
695
|
}
|
|
704
696
|
}
|
|
705
|
-
r =
|
|
697
|
+
r = i;
|
|
706
698
|
}
|
|
707
|
-
for (var
|
|
708
|
-
u = n[
|
|
699
|
+
for (var d = 0; d < n.length; d++)
|
|
700
|
+
u = n[d], e.push(u), Ze(u, e);
|
|
709
701
|
}
|
|
710
|
-
function
|
|
711
|
-
var e = kt, r =
|
|
702
|
+
function N(t) {
|
|
703
|
+
var e = kt, r = Q;
|
|
712
704
|
try {
|
|
713
|
-
|
|
705
|
+
Je();
|
|
714
706
|
const l = [];
|
|
715
|
-
kt =
|
|
707
|
+
kt = Gr, Q = l, _t = !1, Xe(r);
|
|
716
708
|
var n = t == null ? void 0 : t();
|
|
717
|
-
return
|
|
709
|
+
return jr(), (Q.length > 0 || l.length > 0) && N(), lt = 0, gt = null, n;
|
|
718
710
|
} finally {
|
|
719
|
-
kt = e,
|
|
711
|
+
kt = e, Q = r;
|
|
720
712
|
}
|
|
721
713
|
}
|
|
722
|
-
function
|
|
723
|
-
var
|
|
714
|
+
function I(t) {
|
|
715
|
+
var d;
|
|
724
716
|
var e = t.f, r = (e & M) !== 0;
|
|
725
|
-
if (r && e &
|
|
726
|
-
var n =
|
|
717
|
+
if (r && e & ut) {
|
|
718
|
+
var n = Le(
|
|
727
719
|
/** @type {Derived} */
|
|
728
720
|
t
|
|
729
721
|
);
|
|
730
|
-
return
|
|
722
|
+
return ce(
|
|
731
723
|
/** @type {Derived} */
|
|
732
724
|
t
|
|
733
725
|
), n;
|
|
734
726
|
}
|
|
735
727
|
if (w !== null) {
|
|
736
|
-
|
|
728
|
+
P !== null && P.includes(t) && Or();
|
|
737
729
|
var l = w.deps;
|
|
738
|
-
|
|
730
|
+
S === null && l !== null && l[C] === t ? C++ : S === null ? S = [t] : S.push(t), W !== null && p !== null && p.f & z && !(p.f & q) && W.includes(t) && (G(p, J), Vt(p));
|
|
739
731
|
} else if (r && /** @type {Derived} */
|
|
740
732
|
t.deps === null)
|
|
741
733
|
for (var s = (
|
|
742
734
|
/** @type {Derived} */
|
|
743
735
|
t
|
|
744
|
-
),
|
|
745
|
-
if (
|
|
736
|
+
), o = s.parent, i = s; o !== null; )
|
|
737
|
+
if (o.f & M) {
|
|
746
738
|
var u = (
|
|
747
739
|
/** @type {Derived} */
|
|
748
|
-
|
|
740
|
+
o
|
|
749
741
|
);
|
|
750
|
-
|
|
742
|
+
i = u, o = u.parent;
|
|
751
743
|
} else {
|
|
752
|
-
var
|
|
744
|
+
var f = (
|
|
753
745
|
/** @type {Effect} */
|
|
754
|
-
|
|
746
|
+
o
|
|
755
747
|
);
|
|
756
|
-
(
|
|
748
|
+
(d = f.deriveds) != null && d.includes(i) || (f.deriveds ?? (f.deriveds = [])).push(i);
|
|
757
749
|
break;
|
|
758
750
|
}
|
|
759
751
|
return r && (s = /** @type {Derived} */
|
|
760
|
-
t,
|
|
752
|
+
t, mt(s) && Fe(s)), t.v;
|
|
761
753
|
}
|
|
762
|
-
function
|
|
754
|
+
function rn(t) {
|
|
763
755
|
const e = w;
|
|
764
756
|
try {
|
|
765
757
|
return w = null, t();
|
|
@@ -767,13 +759,13 @@ function nn(t) {
|
|
|
767
759
|
w = e;
|
|
768
760
|
}
|
|
769
761
|
}
|
|
770
|
-
const
|
|
771
|
-
function
|
|
772
|
-
t.f = t.f &
|
|
762
|
+
const nn = ~(J | bt | z);
|
|
763
|
+
function G(t, e) {
|
|
764
|
+
t.f = t.f & nn | e;
|
|
773
765
|
}
|
|
774
|
-
function
|
|
775
|
-
|
|
776
|
-
p:
|
|
766
|
+
function Bt(t, e = !1, r) {
|
|
767
|
+
D = {
|
|
768
|
+
p: D,
|
|
777
769
|
c: null,
|
|
778
770
|
e: null,
|
|
779
771
|
m: !1,
|
|
@@ -782,103 +774,103 @@ function ue(t, e = !1, r) {
|
|
|
782
774
|
l: null
|
|
783
775
|
};
|
|
784
776
|
}
|
|
785
|
-
function
|
|
786
|
-
const e =
|
|
777
|
+
function Ut(t) {
|
|
778
|
+
const e = D;
|
|
787
779
|
if (e !== null) {
|
|
788
780
|
t !== void 0 && (e.x = t);
|
|
789
|
-
const
|
|
790
|
-
if (
|
|
781
|
+
const o = e.e;
|
|
782
|
+
if (o !== null) {
|
|
791
783
|
var r = p, n = w;
|
|
792
784
|
e.e = null;
|
|
793
785
|
try {
|
|
794
|
-
for (var l = 0; l <
|
|
795
|
-
var s =
|
|
796
|
-
|
|
786
|
+
for (var l = 0; l < o.length; l++) {
|
|
787
|
+
var s = o[l];
|
|
788
|
+
X(s.effect), ot(s.reaction), Vr(s.fn);
|
|
797
789
|
}
|
|
798
790
|
} finally {
|
|
799
|
-
|
|
791
|
+
X(r), ot(n);
|
|
800
792
|
}
|
|
801
793
|
}
|
|
802
|
-
|
|
794
|
+
D = e.p, e.m = !0;
|
|
803
795
|
}
|
|
804
796
|
return t || /** @type {T} */
|
|
805
797
|
{};
|
|
806
798
|
}
|
|
807
|
-
const
|
|
808
|
-
function
|
|
799
|
+
const Qe = /* @__PURE__ */ new Set(), te = /* @__PURE__ */ new Set();
|
|
800
|
+
function tr(t) {
|
|
809
801
|
for (var e = 0; e < t.length; e++)
|
|
810
|
-
|
|
811
|
-
for (var r of
|
|
802
|
+
Qe.add(t[e]);
|
|
803
|
+
for (var r of te)
|
|
812
804
|
r(t);
|
|
813
805
|
}
|
|
814
|
-
function
|
|
815
|
-
var
|
|
806
|
+
function wt(t) {
|
|
807
|
+
var g;
|
|
816
808
|
var e = this, r = (
|
|
817
809
|
/** @type {Node} */
|
|
818
810
|
e.ownerDocument
|
|
819
|
-
), n = t.type, l = ((
|
|
811
|
+
), n = t.type, l = ((g = t.composedPath) == null ? void 0 : g.call(t)) || [], s = (
|
|
820
812
|
/** @type {null | Element} */
|
|
821
813
|
l[0] || t.target
|
|
822
|
-
),
|
|
823
|
-
if (
|
|
824
|
-
var u = l.indexOf(
|
|
814
|
+
), o = 0, i = t.__root;
|
|
815
|
+
if (i) {
|
|
816
|
+
var u = l.indexOf(i);
|
|
825
817
|
if (u !== -1 && (e === document || e === /** @type {any} */
|
|
826
818
|
window)) {
|
|
827
819
|
t.__root = e;
|
|
828
820
|
return;
|
|
829
821
|
}
|
|
830
|
-
var
|
|
831
|
-
if (
|
|
822
|
+
var f = l.indexOf(e);
|
|
823
|
+
if (f === -1)
|
|
832
824
|
return;
|
|
833
|
-
u <=
|
|
825
|
+
u <= f && (o = u);
|
|
834
826
|
}
|
|
835
827
|
if (s = /** @type {Element} */
|
|
836
|
-
l[
|
|
828
|
+
l[o] || t.target, s !== e) {
|
|
837
829
|
Ct(t, "currentTarget", {
|
|
838
830
|
configurable: !0,
|
|
839
831
|
get() {
|
|
840
832
|
return s || r;
|
|
841
833
|
}
|
|
842
834
|
});
|
|
843
|
-
var
|
|
844
|
-
|
|
835
|
+
var d = w, a = p;
|
|
836
|
+
ot(null), X(null);
|
|
845
837
|
try {
|
|
846
|
-
for (var c,
|
|
847
|
-
var
|
|
838
|
+
for (var c, v = []; s !== null; ) {
|
|
839
|
+
var h = s.assignedSlot || s.parentNode || /** @type {any} */
|
|
848
840
|
s.host || null;
|
|
849
841
|
try {
|
|
850
|
-
var
|
|
851
|
-
if (
|
|
842
|
+
var _ = s["__" + n];
|
|
843
|
+
if (_ !== void 0 && !/** @type {any} */
|
|
852
844
|
s.disabled)
|
|
853
|
-
if (
|
|
854
|
-
var [k, ...
|
|
855
|
-
k.apply(s, [t, ...
|
|
845
|
+
if (ke(_)) {
|
|
846
|
+
var [k, ...E] = _;
|
|
847
|
+
k.apply(s, [t, ...E]);
|
|
856
848
|
} else
|
|
857
|
-
|
|
858
|
-
} catch (
|
|
859
|
-
c ?
|
|
849
|
+
_.call(s, t);
|
|
850
|
+
} catch (x) {
|
|
851
|
+
c ? v.push(x) : c = x;
|
|
860
852
|
}
|
|
861
|
-
if (t.cancelBubble ||
|
|
853
|
+
if (t.cancelBubble || h === e || h === null)
|
|
862
854
|
break;
|
|
863
|
-
s =
|
|
855
|
+
s = h;
|
|
864
856
|
}
|
|
865
857
|
if (c) {
|
|
866
|
-
for (let
|
|
858
|
+
for (let x of v)
|
|
867
859
|
queueMicrotask(() => {
|
|
868
|
-
throw
|
|
860
|
+
throw x;
|
|
869
861
|
});
|
|
870
862
|
throw c;
|
|
871
863
|
}
|
|
872
864
|
} finally {
|
|
873
|
-
t.__root = e, delete t.currentTarget,
|
|
865
|
+
t.__root = e, delete t.currentTarget, ot(d), X(a);
|
|
874
866
|
}
|
|
875
867
|
}
|
|
876
868
|
}
|
|
877
|
-
function
|
|
869
|
+
function er(t) {
|
|
878
870
|
var e = document.createElement("template");
|
|
879
871
|
return e.innerHTML = t, e.content;
|
|
880
872
|
}
|
|
881
|
-
function
|
|
873
|
+
function st(t, e) {
|
|
882
874
|
var r = (
|
|
883
875
|
/** @type {Effect} */
|
|
884
876
|
p
|
|
@@ -886,40 +878,58 @@ function W(t, e) {
|
|
|
886
878
|
r.nodes_start === null && (r.nodes_start = t, r.nodes_end = e);
|
|
887
879
|
}
|
|
888
880
|
// @__NO_SIDE_EFFECTS__
|
|
889
|
-
function
|
|
890
|
-
var r = (e &
|
|
881
|
+
function xt(t, e) {
|
|
882
|
+
var r = (e & gr) !== 0, n = (e & pr) !== 0, l, s = !t.startsWith("<!>");
|
|
891
883
|
return () => {
|
|
892
|
-
if (
|
|
893
|
-
return
|
|
894
|
-
l === void 0 && (l =
|
|
895
|
-
/* @__PURE__ */
|
|
896
|
-
var
|
|
884
|
+
if ($)
|
|
885
|
+
return st(m, null), m;
|
|
886
|
+
l === void 0 && (l = er(s ? t : "<!>" + t), r || (l = /** @type {Node} */
|
|
887
|
+
/* @__PURE__ */ Y(l)));
|
|
888
|
+
var o = (
|
|
897
889
|
/** @type {TemplateNode} */
|
|
898
890
|
n ? document.importNode(l, !0) : l.cloneNode(!0)
|
|
899
891
|
);
|
|
900
892
|
if (r) {
|
|
901
|
-
var
|
|
893
|
+
var i = (
|
|
902
894
|
/** @type {TemplateNode} */
|
|
903
|
-
/* @__PURE__ */
|
|
895
|
+
/* @__PURE__ */ Y(o)
|
|
904
896
|
), u = (
|
|
905
897
|
/** @type {TemplateNode} */
|
|
906
|
-
|
|
898
|
+
o.lastChild
|
|
907
899
|
);
|
|
908
|
-
|
|
900
|
+
st(i, u);
|
|
909
901
|
} else
|
|
910
|
-
|
|
911
|
-
return
|
|
902
|
+
st(o, o);
|
|
903
|
+
return o;
|
|
912
904
|
};
|
|
913
905
|
}
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
906
|
+
// @__NO_SIDE_EFFECTS__
|
|
907
|
+
function ln(t, e, r = "svg") {
|
|
908
|
+
var n = !t.startsWith("<!>"), l = `<${r}>${n ? t : "<!>" + t}</${r}>`, s;
|
|
909
|
+
return () => {
|
|
910
|
+
if ($)
|
|
911
|
+
return st(m, null), m;
|
|
912
|
+
if (!s) {
|
|
913
|
+
var o = (
|
|
914
|
+
/** @type {DocumentFragment} */
|
|
915
|
+
er(l)
|
|
916
|
+
), i = (
|
|
917
|
+
/** @type {Element} */
|
|
918
|
+
/* @__PURE__ */ Y(o)
|
|
919
|
+
);
|
|
920
|
+
s = /** @type {Element} */
|
|
921
|
+
/* @__PURE__ */ Y(i);
|
|
922
|
+
}
|
|
923
|
+
var u = (
|
|
924
|
+
/** @type {TemplateNode} */
|
|
925
|
+
s.cloneNode(!0)
|
|
926
|
+
);
|
|
927
|
+
return st(u, u), u;
|
|
928
|
+
};
|
|
919
929
|
}
|
|
920
|
-
function
|
|
921
|
-
if (
|
|
922
|
-
p.nodes_end =
|
|
930
|
+
function et(t, e) {
|
|
931
|
+
if ($) {
|
|
932
|
+
p.nodes_end = m, $t();
|
|
923
933
|
return;
|
|
924
934
|
}
|
|
925
935
|
t !== null && t.before(
|
|
@@ -927,277 +937,277 @@ function rt(t, e) {
|
|
|
927
937
|
e
|
|
928
938
|
);
|
|
929
939
|
}
|
|
930
|
-
function
|
|
940
|
+
function sn(t, e) {
|
|
931
941
|
var r = e == null ? "" : typeof e == "object" ? e + "" : e;
|
|
932
942
|
r !== (t.__t ?? (t.__t = t.nodeValue)) && (t.__t = r, t.nodeValue = r == null ? "" : r + "");
|
|
933
943
|
}
|
|
934
|
-
function
|
|
935
|
-
return
|
|
944
|
+
function rr(t, e) {
|
|
945
|
+
return nr(t, e);
|
|
936
946
|
}
|
|
937
|
-
function
|
|
938
|
-
|
|
939
|
-
const r = e.target, n =
|
|
947
|
+
function on(t, e) {
|
|
948
|
+
Zt(), e.intro = e.intro ?? !1;
|
|
949
|
+
const r = e.target, n = $, l = m;
|
|
940
950
|
try {
|
|
941
951
|
for (var s = (
|
|
942
952
|
/** @type {TemplateNode} */
|
|
943
|
-
/* @__PURE__ */
|
|
953
|
+
/* @__PURE__ */ Y(r)
|
|
944
954
|
); s && (s.nodeType !== 8 || /** @type {Comment} */
|
|
945
|
-
s.data !==
|
|
955
|
+
s.data !== ye); )
|
|
946
956
|
s = /** @type {TemplateNode} */
|
|
947
|
-
/* @__PURE__ */
|
|
957
|
+
/* @__PURE__ */ Z(s);
|
|
948
958
|
if (!s)
|
|
949
|
-
throw
|
|
950
|
-
|
|
959
|
+
throw vt;
|
|
960
|
+
U(!0), F(
|
|
951
961
|
/** @type {Comment} */
|
|
952
962
|
s
|
|
953
|
-
),
|
|
954
|
-
const
|
|
955
|
-
if (
|
|
956
|
-
|
|
957
|
-
throw
|
|
958
|
-
return
|
|
959
|
-
|
|
960
|
-
} catch (
|
|
961
|
-
if (
|
|
962
|
-
return e.recover === !1 &&
|
|
963
|
-
throw
|
|
963
|
+
), $t();
|
|
964
|
+
const o = nr(t, { ...e, anchor: s });
|
|
965
|
+
if (m === null || m.nodeType !== 8 || /** @type {Comment} */
|
|
966
|
+
m.data !== le)
|
|
967
|
+
throw ue(), vt;
|
|
968
|
+
return U(!1), /** @type {Exports} */
|
|
969
|
+
o;
|
|
970
|
+
} catch (o) {
|
|
971
|
+
if (o === vt)
|
|
972
|
+
return e.recover === !1 && Ar(), Zt(), De(r), U(!1), rr(t, e);
|
|
973
|
+
throw o;
|
|
964
974
|
} finally {
|
|
965
|
-
|
|
975
|
+
U(n), F(l);
|
|
966
976
|
}
|
|
967
977
|
}
|
|
968
|
-
const
|
|
969
|
-
function
|
|
970
|
-
|
|
971
|
-
var
|
|
978
|
+
const rt = /* @__PURE__ */ new Map();
|
|
979
|
+
function nr(t, { target: e, anchor: r, props: n = {}, events: l, context: s, intro: o = !0 }) {
|
|
980
|
+
Zt();
|
|
981
|
+
var i = /* @__PURE__ */ new Set(), u = (a) => {
|
|
972
982
|
for (var c = 0; c < a.length; c++) {
|
|
973
|
-
var
|
|
974
|
-
if (!
|
|
975
|
-
|
|
976
|
-
var
|
|
977
|
-
e.addEventListener(
|
|
978
|
-
var
|
|
979
|
-
|
|
983
|
+
var v = a[c];
|
|
984
|
+
if (!i.has(v)) {
|
|
985
|
+
i.add(v);
|
|
986
|
+
var h = mr(v);
|
|
987
|
+
e.addEventListener(v, wt, { passive: h });
|
|
988
|
+
var _ = rt.get(v);
|
|
989
|
+
_ === void 0 ? (document.addEventListener(v, wt, { passive: h }), rt.set(v, 1)) : rt.set(v, _ + 1);
|
|
980
990
|
}
|
|
981
991
|
}
|
|
982
992
|
};
|
|
983
|
-
u(
|
|
984
|
-
var
|
|
985
|
-
var a = r ?? e.appendChild(
|
|
986
|
-
return
|
|
993
|
+
u(se(Qe)), te.add(u);
|
|
994
|
+
var f = void 0, d = Hr(() => {
|
|
995
|
+
var a = r ?? e.appendChild(Pt());
|
|
996
|
+
return ht(() => {
|
|
987
997
|
if (s) {
|
|
988
|
-
|
|
998
|
+
Bt({});
|
|
989
999
|
var c = (
|
|
990
1000
|
/** @type {ComponentContext} */
|
|
991
|
-
|
|
1001
|
+
D
|
|
992
1002
|
);
|
|
993
1003
|
c.c = s;
|
|
994
1004
|
}
|
|
995
|
-
l && (n.$$events = l),
|
|
1005
|
+
l && (n.$$events = l), $ && st(
|
|
996
1006
|
/** @type {TemplateNode} */
|
|
997
1007
|
a,
|
|
998
1008
|
null
|
|
999
|
-
),
|
|
1009
|
+
), f = t(a, n) || {}, $ && (p.nodes_end = m), s && Ut();
|
|
1000
1010
|
}), () => {
|
|
1001
|
-
var
|
|
1002
|
-
for (var c of
|
|
1003
|
-
e.removeEventListener(c,
|
|
1004
|
-
var
|
|
1011
|
+
var h;
|
|
1012
|
+
for (var c of i) {
|
|
1013
|
+
e.removeEventListener(c, wt);
|
|
1014
|
+
var v = (
|
|
1005
1015
|
/** @type {number} */
|
|
1006
|
-
|
|
1016
|
+
rt.get(c)
|
|
1007
1017
|
);
|
|
1008
|
-
--
|
|
1018
|
+
--v === 0 ? (document.removeEventListener(c, wt), rt.delete(c)) : rt.set(c, v);
|
|
1009
1019
|
}
|
|
1010
|
-
|
|
1020
|
+
te.delete(u), a !== r && ((h = a.parentNode) == null || h.removeChild(a));
|
|
1011
1021
|
};
|
|
1012
1022
|
});
|
|
1013
|
-
return
|
|
1023
|
+
return ee.set(f, d), f;
|
|
1014
1024
|
}
|
|
1015
|
-
let
|
|
1016
|
-
function
|
|
1017
|
-
const r =
|
|
1018
|
-
return r ? (
|
|
1019
|
-
}
|
|
1020
|
-
function
|
|
1021
|
-
|
|
1022
|
-
var n = t, l = null, s = null,
|
|
1023
|
-
const
|
|
1024
|
-
u = !0,
|
|
1025
|
-
},
|
|
1026
|
-
if (
|
|
1027
|
-
let
|
|
1028
|
-
if (
|
|
1029
|
-
const
|
|
1025
|
+
let ee = /* @__PURE__ */ new WeakMap();
|
|
1026
|
+
function an(t, e) {
|
|
1027
|
+
const r = ee.get(t);
|
|
1028
|
+
return r ? (ee.delete(t), r(e)) : Promise.resolve();
|
|
1029
|
+
}
|
|
1030
|
+
function Wt(t, e, r = !1) {
|
|
1031
|
+
$ && $t();
|
|
1032
|
+
var n = t, l = null, s = null, o = br, i = r ? ie : 0, u = !1;
|
|
1033
|
+
const f = (a, c = !0) => {
|
|
1034
|
+
u = !0, d(c, a);
|
|
1035
|
+
}, d = (a, c) => {
|
|
1036
|
+
if (o === (o = a)) return;
|
|
1037
|
+
let v = !1;
|
|
1038
|
+
if ($) {
|
|
1039
|
+
const h = (
|
|
1030
1040
|
/** @type {Comment} */
|
|
1031
|
-
n.data ===
|
|
1041
|
+
n.data === ne
|
|
1032
1042
|
);
|
|
1033
|
-
!!
|
|
1043
|
+
!!o === h && (n = Xt(), F(n), U(!1), v = !0);
|
|
1034
1044
|
}
|
|
1035
|
-
|
|
1045
|
+
o ? (l ? Dt(l) : c && (l = ht(() => c(n))), s && It(s, () => {
|
|
1036
1046
|
s = null;
|
|
1037
|
-
})) : (s ?
|
|
1047
|
+
})) : (s ? Dt(s) : c && (s = ht(() => c(n))), l && It(l, () => {
|
|
1038
1048
|
l = null;
|
|
1039
|
-
})),
|
|
1049
|
+
})), v && U(!0);
|
|
1040
1050
|
};
|
|
1041
|
-
|
|
1042
|
-
u = !1, e(
|
|
1043
|
-
},
|
|
1051
|
+
fe(() => {
|
|
1052
|
+
u = !1, e(f), u || d(null, null);
|
|
1053
|
+
}, i), $ && (n = m);
|
|
1044
1054
|
}
|
|
1045
|
-
function
|
|
1055
|
+
function un(t, e) {
|
|
1046
1056
|
return e;
|
|
1047
1057
|
}
|
|
1048
1058
|
function cn(t, e, r, n) {
|
|
1049
|
-
for (var l = [], s = e.length,
|
|
1050
|
-
|
|
1051
|
-
var
|
|
1052
|
-
if (
|
|
1059
|
+
for (var l = [], s = e.length, o = 0; o < s; o++)
|
|
1060
|
+
ve(e[o].e, l, !0);
|
|
1061
|
+
var i = s > 0 && l.length === 0 && r !== null;
|
|
1062
|
+
if (i) {
|
|
1053
1063
|
var u = (
|
|
1054
1064
|
/** @type {Element} */
|
|
1055
1065
|
/** @type {Element} */
|
|
1056
1066
|
r.parentNode
|
|
1057
1067
|
);
|
|
1058
|
-
|
|
1068
|
+
De(u), u.append(
|
|
1059
1069
|
/** @type {Element} */
|
|
1060
1070
|
r
|
|
1061
|
-
), n.clear(),
|
|
1071
|
+
), n.clear(), K(t, e[0].prev, e[s - 1].next);
|
|
1062
1072
|
}
|
|
1063
|
-
|
|
1064
|
-
for (var
|
|
1065
|
-
var
|
|
1066
|
-
|
|
1073
|
+
Be(l, () => {
|
|
1074
|
+
for (var f = 0; f < s; f++) {
|
|
1075
|
+
var d = e[f];
|
|
1076
|
+
i || (n.delete(d.k), K(t, d.prev, d.next)), j(d.e, !i);
|
|
1067
1077
|
}
|
|
1068
1078
|
});
|
|
1069
1079
|
}
|
|
1070
|
-
function
|
|
1071
|
-
var
|
|
1080
|
+
function fn(t, e, r, n, l, s = null) {
|
|
1081
|
+
var o = t, i = { flags: e, items: /* @__PURE__ */ new Map(), first: null };
|
|
1072
1082
|
{
|
|
1073
1083
|
var u = (
|
|
1074
1084
|
/** @type {Element} */
|
|
1075
1085
|
t
|
|
1076
1086
|
);
|
|
1077
|
-
|
|
1087
|
+
o = $ ? F(
|
|
1078
1088
|
/** @type {Comment | Text} */
|
|
1079
|
-
/* @__PURE__ */
|
|
1080
|
-
) : u.appendChild(
|
|
1089
|
+
/* @__PURE__ */ Y(u)
|
|
1090
|
+
) : u.appendChild(Pt());
|
|
1081
1091
|
}
|
|
1082
|
-
|
|
1083
|
-
var
|
|
1084
|
-
|
|
1085
|
-
var a = r(), c =
|
|
1086
|
-
if (
|
|
1092
|
+
$ && $t();
|
|
1093
|
+
var f = null, d = !1;
|
|
1094
|
+
fe(() => {
|
|
1095
|
+
var a = r(), c = ke(a) ? a : a == null ? [] : se(a), v = c.length;
|
|
1096
|
+
if (d && v === 0)
|
|
1087
1097
|
return;
|
|
1088
|
-
|
|
1089
|
-
let
|
|
1090
|
-
if (
|
|
1091
|
-
var
|
|
1098
|
+
d = v === 0;
|
|
1099
|
+
let h = !1;
|
|
1100
|
+
if ($) {
|
|
1101
|
+
var _ = (
|
|
1092
1102
|
/** @type {Comment} */
|
|
1093
|
-
|
|
1103
|
+
o.data === ne
|
|
1094
1104
|
);
|
|
1095
|
-
|
|
1105
|
+
_ !== (v === 0) && (o = Xt(), F(o), U(!1), h = !0);
|
|
1096
1106
|
}
|
|
1097
|
-
if (
|
|
1098
|
-
for (var k = null,
|
|
1099
|
-
if (
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1107
|
+
if ($) {
|
|
1108
|
+
for (var k = null, E, g = 0; g < v; g++) {
|
|
1109
|
+
if (m.nodeType === 8 && /** @type {Comment} */
|
|
1110
|
+
m.data === le) {
|
|
1111
|
+
o = /** @type {Comment} */
|
|
1112
|
+
m, h = !0, U(!1);
|
|
1103
1113
|
break;
|
|
1104
1114
|
}
|
|
1105
|
-
var
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1115
|
+
var x = c[g], H = n(x, g);
|
|
1116
|
+
E = lr(
|
|
1117
|
+
m,
|
|
1118
|
+
i,
|
|
1109
1119
|
k,
|
|
1110
1120
|
null,
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1121
|
+
x,
|
|
1122
|
+
H,
|
|
1123
|
+
g,
|
|
1114
1124
|
l,
|
|
1115
1125
|
e
|
|
1116
|
-
),
|
|
1126
|
+
), i.items.set(H, E), k = E;
|
|
1117
1127
|
}
|
|
1118
|
-
|
|
1128
|
+
v > 0 && F(Xt());
|
|
1119
1129
|
}
|
|
1120
|
-
if (
|
|
1130
|
+
if (!$) {
|
|
1121
1131
|
var y = (
|
|
1122
1132
|
/** @type {Effect} */
|
|
1123
1133
|
w
|
|
1124
1134
|
);
|
|
1125
|
-
|
|
1135
|
+
vn(
|
|
1126
1136
|
c,
|
|
1127
|
-
o,
|
|
1128
1137
|
i,
|
|
1138
|
+
o,
|
|
1129
1139
|
l,
|
|
1130
1140
|
e,
|
|
1131
|
-
(y.f &
|
|
1141
|
+
(y.f & L) !== 0,
|
|
1132
1142
|
n
|
|
1133
1143
|
);
|
|
1134
1144
|
}
|
|
1135
|
-
s !== null && (
|
|
1136
|
-
|
|
1137
|
-
})),
|
|
1138
|
-
}),
|
|
1139
|
-
}
|
|
1140
|
-
function
|
|
1141
|
-
var u = t.length,
|
|
1142
|
-
for (
|
|
1143
|
-
if (k = t[
|
|
1144
|
-
var
|
|
1145
|
+
s !== null && (v === 0 ? f ? Dt(f) : f = ht(() => s(o)) : f !== null && It(f, () => {
|
|
1146
|
+
f = null;
|
|
1147
|
+
})), h && U(!0);
|
|
1148
|
+
}), $ && (o = m);
|
|
1149
|
+
}
|
|
1150
|
+
function vn(t, e, r, n, l, s, o, i) {
|
|
1151
|
+
var u = t.length, f = e.items, d = e.first, a = d, c, v = null, h = [], _ = [], k, E, g, x;
|
|
1152
|
+
for (x = 0; x < u; x += 1) {
|
|
1153
|
+
if (k = t[x], E = o(k, x), g = f.get(E), g === void 0) {
|
|
1154
|
+
var H = a ? (
|
|
1145
1155
|
/** @type {TemplateNode} */
|
|
1146
1156
|
a.e.nodes_start
|
|
1147
1157
|
) : r;
|
|
1148
|
-
|
|
1149
|
-
|
|
1158
|
+
v = lr(
|
|
1159
|
+
H,
|
|
1150
1160
|
e,
|
|
1151
|
-
|
|
1152
|
-
|
|
1161
|
+
v,
|
|
1162
|
+
v === null ? e.first : v.next,
|
|
1153
1163
|
k,
|
|
1164
|
+
E,
|
|
1154
1165
|
x,
|
|
1155
|
-
m,
|
|
1156
1166
|
n,
|
|
1157
1167
|
l
|
|
1158
|
-
),
|
|
1168
|
+
), f.set(E, v), h = [], _ = [], a = v.next;
|
|
1159
1169
|
continue;
|
|
1160
1170
|
}
|
|
1161
|
-
if (dn(
|
|
1162
|
-
if (c !== void 0 && c.has(
|
|
1163
|
-
if (
|
|
1164
|
-
var y =
|
|
1165
|
-
|
|
1166
|
-
var
|
|
1167
|
-
for (
|
|
1168
|
-
|
|
1169
|
-
for (
|
|
1170
|
-
c.delete(b
|
|
1171
|
-
|
|
1171
|
+
if (dn(g, k, x), g.e.f & L && Dt(g.e), g !== a) {
|
|
1172
|
+
if (c !== void 0 && c.has(g)) {
|
|
1173
|
+
if (h.length < _.length) {
|
|
1174
|
+
var y = _[0], b;
|
|
1175
|
+
v = y.prev;
|
|
1176
|
+
var V = h[0], Yt = h[h.length - 1];
|
|
1177
|
+
for (b = 0; b < h.length; b += 1)
|
|
1178
|
+
me(h[b], y, r);
|
|
1179
|
+
for (b = 0; b < _.length; b += 1)
|
|
1180
|
+
c.delete(_[b]);
|
|
1181
|
+
K(e, V.prev, Yt.next), K(e, v, V), K(e, Yt, y), a = y, v = Yt, x -= 1, h = [], _ = [];
|
|
1172
1182
|
} else
|
|
1173
|
-
c.delete(
|
|
1183
|
+
c.delete(g), me(g, a, r), K(e, g.prev, g.next), K(e, g, v === null ? e.first : v.next), K(e, v, g), v = g;
|
|
1174
1184
|
continue;
|
|
1175
1185
|
}
|
|
1176
|
-
for (
|
|
1177
|
-
(s || !(a.e.f &
|
|
1186
|
+
for (h = [], _ = []; a !== null && a.k !== E; )
|
|
1187
|
+
(s || !(a.e.f & L)) && (c ?? (c = /* @__PURE__ */ new Set())).add(a), _.push(a), a = a.next;
|
|
1178
1188
|
if (a === null)
|
|
1179
1189
|
continue;
|
|
1180
|
-
|
|
1190
|
+
g = a;
|
|
1181
1191
|
}
|
|
1182
|
-
|
|
1192
|
+
h.push(g), v = g, a = g.next;
|
|
1183
1193
|
}
|
|
1184
1194
|
if (a !== null || c !== void 0) {
|
|
1185
|
-
for (var
|
|
1186
|
-
(s || !(a.e.f &
|
|
1187
|
-
var
|
|
1188
|
-
if (
|
|
1195
|
+
for (var jt = c === void 0 ? [] : se(c); a !== null; )
|
|
1196
|
+
(s || !(a.e.f & L)) && jt.push(a), a = a.next;
|
|
1197
|
+
var ir = jt.length;
|
|
1198
|
+
if (ir > 0) {
|
|
1189
1199
|
var ar = u === 0 ? r : null;
|
|
1190
|
-
cn(e,
|
|
1200
|
+
cn(e, jt, ar, f);
|
|
1191
1201
|
}
|
|
1192
1202
|
}
|
|
1193
|
-
p.first = e.first && e.first.e, p.last =
|
|
1203
|
+
p.first = e.first && e.first.e, p.last = v && v.e;
|
|
1194
1204
|
}
|
|
1195
1205
|
function dn(t, e, r, n) {
|
|
1196
|
-
|
|
1206
|
+
Ae(t.v, e), t.i = r;
|
|
1197
1207
|
}
|
|
1198
|
-
function
|
|
1199
|
-
var
|
|
1200
|
-
i:
|
|
1208
|
+
function lr(t, e, r, n, l, s, o, i, u, f) {
|
|
1209
|
+
var d = (u & vr) !== 0, a = (u & hr) === 0, c = d ? a ? /* @__PURE__ */ ae(l) : At(l) : l, v = u & dr ? At(o) : o, h = {
|
|
1210
|
+
i: v,
|
|
1201
1211
|
v: c,
|
|
1202
1212
|
k: s,
|
|
1203
1213
|
a: null,
|
|
@@ -1207,11 +1217,11 @@ function rr(t, e, r, n, l, s, i, o, u, v) {
|
|
|
1207
1217
|
next: n
|
|
1208
1218
|
};
|
|
1209
1219
|
try {
|
|
1210
|
-
return
|
|
1220
|
+
return h.e = ht(() => i(t, c, v), $), h.e.prev = r && r.e, h.e.next = n && n.e, r === null ? e.first = h : (r.next = h, r.e.next = h.e), n !== null && (n.prev = h, n.e.prev = h.e), h;
|
|
1211
1221
|
} finally {
|
|
1212
1222
|
}
|
|
1213
1223
|
}
|
|
1214
|
-
function
|
|
1224
|
+
function me(t, e, r) {
|
|
1215
1225
|
for (var n = t.next ? (
|
|
1216
1226
|
/** @type {TemplateNode} */
|
|
1217
1227
|
t.next.e.nodes_start
|
|
@@ -1222,53 +1232,24 @@ function pe(t, e, r) {
|
|
|
1222
1232
|
/** @type {TemplateNode} */
|
|
1223
1233
|
t.e.nodes_start
|
|
1224
1234
|
); s !== n; ) {
|
|
1225
|
-
var
|
|
1235
|
+
var o = (
|
|
1226
1236
|
/** @type {TemplateNode} */
|
|
1227
|
-
/* @__PURE__ */
|
|
1237
|
+
/* @__PURE__ */ Z(s)
|
|
1228
1238
|
);
|
|
1229
|
-
l.before(s), s =
|
|
1239
|
+
l.before(s), s = o;
|
|
1230
1240
|
}
|
|
1231
1241
|
}
|
|
1232
|
-
function
|
|
1242
|
+
function K(t, e, r) {
|
|
1233
1243
|
e === null ? t.first = r : (e.next = r, e.e.next = r && r.e), r !== null && (r.prev = e, r.e.prev = e && e.e);
|
|
1234
1244
|
}
|
|
1235
|
-
function
|
|
1236
|
-
var
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
return;
|
|
1241
|
-
}
|
|
1242
|
-
o !== void 0 && (P(o), o = void 0), i !== "" && (o = ft(() => {
|
|
1243
|
-
if (g) {
|
|
1244
|
-
$.data;
|
|
1245
|
-
for (var u = nt(), v = u; u !== null && (u.nodeType !== 8 || /** @type {Comment} */
|
|
1246
|
-
u.data !== ""); )
|
|
1247
|
-
v = u, u = /** @type {TemplateNode} */
|
|
1248
|
-
/* @__PURE__ */ V(u);
|
|
1249
|
-
if (u === null)
|
|
1250
|
-
throw Lt(), it;
|
|
1251
|
-
W($, v), s = D(u);
|
|
1252
|
-
return;
|
|
1253
|
-
}
|
|
1254
|
-
var h = i + "", a = Qe(h);
|
|
1255
|
-
W(
|
|
1256
|
-
/** @type {TemplateNode} */
|
|
1257
|
-
/* @__PURE__ */ X(a),
|
|
1258
|
-
/** @type {TemplateNode} */
|
|
1259
|
-
a.lastChild
|
|
1260
|
-
), s.before(a);
|
|
1261
|
-
}));
|
|
1262
|
-
});
|
|
1263
|
-
}
|
|
1264
|
-
function _n(t, e, r, n, l) {
|
|
1265
|
-
var o;
|
|
1266
|
-
g && nt();
|
|
1267
|
-
var s = (o = e.$$slots) == null ? void 0 : o[r], i = !1;
|
|
1268
|
-
s === !0 && (s = e.children, i = !0), s === void 0 ? l !== null && l(t) : s(t, i ? () => n : n);
|
|
1245
|
+
function hn(t, e, r, n, l) {
|
|
1246
|
+
var i;
|
|
1247
|
+
$ && $t();
|
|
1248
|
+
var s = (i = e.$$slots) == null ? void 0 : i[r], o = !1;
|
|
1249
|
+
s === !0 && (s = e.children, o = !0), s === void 0 ? l !== null && l(t) : s(t, o ? () => n : n);
|
|
1269
1250
|
}
|
|
1270
|
-
function
|
|
1271
|
-
|
|
1251
|
+
function de(t, e) {
|
|
1252
|
+
Yr(() => {
|
|
1272
1253
|
var r = t.getRootNode(), n = (
|
|
1273
1254
|
/** @type {ShadowRoot} */
|
|
1274
1255
|
r.host ? (
|
|
@@ -1286,82 +1267,82 @@ function nr(t, e) {
|
|
|
1286
1267
|
}
|
|
1287
1268
|
});
|
|
1288
1269
|
}
|
|
1289
|
-
function
|
|
1270
|
+
function dt(t, e, r, n) {
|
|
1290
1271
|
var l = t.__attributes ?? (t.__attributes = {});
|
|
1291
|
-
|
|
1272
|
+
$ && (l[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === "LINK") || l[e] !== (l[e] = r) && (e === "style" && "__styles" in t && (t.__styles = {}), e === "loading" && (t[Tr] = r), r == null ? t.removeAttribute(e) : typeof r != "string" && _n(t).includes(e) ? t[e] = r : t.setAttribute(e, r));
|
|
1292
1273
|
}
|
|
1293
|
-
var
|
|
1294
|
-
function
|
|
1295
|
-
var e =
|
|
1274
|
+
var xe = /* @__PURE__ */ new Map();
|
|
1275
|
+
function _n(t) {
|
|
1276
|
+
var e = xe.get(t.nodeName);
|
|
1296
1277
|
if (e) return e;
|
|
1297
|
-
|
|
1278
|
+
xe.set(t.nodeName, e = []);
|
|
1298
1279
|
for (var r, n = t, l = Element.prototype; l !== n; ) {
|
|
1299
|
-
r =
|
|
1280
|
+
r = xr(n);
|
|
1300
1281
|
for (var s in r)
|
|
1301
1282
|
r[s].set && e.push(s);
|
|
1302
|
-
n =
|
|
1283
|
+
n = wr(n);
|
|
1303
1284
|
}
|
|
1304
1285
|
return e;
|
|
1305
1286
|
}
|
|
1306
|
-
function
|
|
1307
|
-
var r = t.__className, n =
|
|
1308
|
-
|
|
1287
|
+
function we(t, e) {
|
|
1288
|
+
var r = t.__className, n = gn(e);
|
|
1289
|
+
$ && t.className === n ? t.__className = n : (r !== n || $ && t.className !== n) && (e == null ? t.removeAttribute("class") : t.className = n, t.__className = n);
|
|
1309
1290
|
}
|
|
1310
|
-
function
|
|
1291
|
+
function gn(t) {
|
|
1311
1292
|
return t ?? "";
|
|
1312
1293
|
}
|
|
1313
|
-
function
|
|
1314
|
-
for (var e = p, r = p; e !== null && !(e.f & (
|
|
1294
|
+
function pn(t) {
|
|
1295
|
+
for (var e = p, r = p; e !== null && !(e.f & (q | it)); )
|
|
1315
1296
|
e = e.parent;
|
|
1316
1297
|
try {
|
|
1317
|
-
return
|
|
1298
|
+
return X(e), t();
|
|
1318
1299
|
} finally {
|
|
1319
|
-
|
|
1300
|
+
X(r);
|
|
1320
1301
|
}
|
|
1321
1302
|
}
|
|
1322
|
-
function
|
|
1323
|
-
var
|
|
1324
|
-
var l = !
|
|
1325
|
-
|
|
1303
|
+
function O(t, e, r, n) {
|
|
1304
|
+
var H;
|
|
1305
|
+
var l = !ze, s = (r & _r) !== 0, o = !1, i;
|
|
1306
|
+
i = /** @type {V} */
|
|
1326
1307
|
t[e];
|
|
1327
|
-
var u =
|
|
1308
|
+
var u = Sr in t || Ce in t, f = ((H = Nt(t, e)) == null ? void 0 : H.set) ?? (u && s && e in t ? (y) => t[e] = y : void 0), d = (
|
|
1328
1309
|
/** @type {V} */
|
|
1329
1310
|
n
|
|
1330
|
-
), a = !0, c = !1,
|
|
1331
|
-
n),
|
|
1332
|
-
|
|
1333
|
-
var
|
|
1334
|
-
if (
|
|
1311
|
+
), a = !0, c = !1, v = () => (c = !0, a && (a = !1, d = /** @type {V} */
|
|
1312
|
+
n), d);
|
|
1313
|
+
i === void 0 && n !== void 0 && (f && l && Rr(), i = v(), f && f(i));
|
|
1314
|
+
var h;
|
|
1315
|
+
if (h = () => {
|
|
1335
1316
|
var y = (
|
|
1336
1317
|
/** @type {V} */
|
|
1337
1318
|
t[e]
|
|
1338
1319
|
);
|
|
1339
|
-
return y === void 0 ?
|
|
1340
|
-
},
|
|
1341
|
-
var
|
|
1342
|
-
return function(y,
|
|
1343
|
-
return arguments.length > 0 ? ((!
|
|
1320
|
+
return y === void 0 ? v() : (a = !0, c = !1, y);
|
|
1321
|
+
}, f) {
|
|
1322
|
+
var _ = t.$$legacy;
|
|
1323
|
+
return function(y, b) {
|
|
1324
|
+
return arguments.length > 0 ? ((!b || _ || o) && f(b ? h() : y), y) : h();
|
|
1344
1325
|
};
|
|
1345
1326
|
}
|
|
1346
|
-
var k = !1,
|
|
1347
|
-
() => /* @__PURE__ */
|
|
1348
|
-
var y =
|
|
1349
|
-
return k ? (k = !1,
|
|
1327
|
+
var k = !1, E = !1, g = /* @__PURE__ */ ae(i), x = pn(
|
|
1328
|
+
() => /* @__PURE__ */ Lr(() => {
|
|
1329
|
+
var y = h(), b = I(g);
|
|
1330
|
+
return k ? (k = !1, E = !0, b) : (E = !1, g.v = y);
|
|
1350
1331
|
})
|
|
1351
1332
|
);
|
|
1352
|
-
return function(y,
|
|
1333
|
+
return function(y, b) {
|
|
1353
1334
|
if (arguments.length > 0) {
|
|
1354
|
-
const
|
|
1355
|
-
return
|
|
1335
|
+
const V = b ? I(x) : y;
|
|
1336
|
+
return x.equals(V) || (k = !0, Ft(g, V), c && d !== void 0 && (d = V), rn(() => I(x))), y;
|
|
1356
1337
|
}
|
|
1357
|
-
return
|
|
1338
|
+
return I(x);
|
|
1358
1339
|
};
|
|
1359
1340
|
}
|
|
1360
1341
|
function bn(t) {
|
|
1361
|
-
return new
|
|
1342
|
+
return new $n(t);
|
|
1362
1343
|
}
|
|
1363
|
-
var B,
|
|
1364
|
-
class
|
|
1344
|
+
var B, A;
|
|
1345
|
+
class $n {
|
|
1365
1346
|
/**
|
|
1366
1347
|
* @param {ComponentConstructorOptions & {
|
|
1367
1348
|
* component: any;
|
|
@@ -1369,57 +1350,57 @@ class wn {
|
|
|
1369
1350
|
*/
|
|
1370
1351
|
constructor(e) {
|
|
1371
1352
|
/** @type {any} */
|
|
1372
|
-
|
|
1353
|
+
Gt(this, B);
|
|
1373
1354
|
/** @type {Record<string, any>} */
|
|
1374
|
-
|
|
1355
|
+
Gt(this, A);
|
|
1375
1356
|
var s;
|
|
1376
|
-
var r = /* @__PURE__ */ new Map(), n = (
|
|
1377
|
-
var u = /* @__PURE__ */
|
|
1378
|
-
return r.set(
|
|
1357
|
+
var r = /* @__PURE__ */ new Map(), n = (o, i) => {
|
|
1358
|
+
var u = /* @__PURE__ */ ae(i);
|
|
1359
|
+
return r.set(o, u), u;
|
|
1379
1360
|
};
|
|
1380
1361
|
const l = new Proxy(
|
|
1381
1362
|
{ ...e.props || {}, $$events: {} },
|
|
1382
1363
|
{
|
|
1383
|
-
get(
|
|
1384
|
-
return
|
|
1364
|
+
get(o, i) {
|
|
1365
|
+
return I(r.get(i) ?? n(i, Reflect.get(o, i)));
|
|
1385
1366
|
},
|
|
1386
|
-
has(
|
|
1387
|
-
return
|
|
1367
|
+
has(o, i) {
|
|
1368
|
+
return i === Ce ? !0 : (I(r.get(i) ?? n(i, Reflect.get(o, i))), Reflect.has(o, i));
|
|
1388
1369
|
},
|
|
1389
|
-
set(
|
|
1390
|
-
return
|
|
1370
|
+
set(o, i, u) {
|
|
1371
|
+
return Ft(r.get(i) ?? n(i, u), u), Reflect.set(o, i, u);
|
|
1391
1372
|
}
|
|
1392
1373
|
}
|
|
1393
1374
|
);
|
|
1394
|
-
|
|
1375
|
+
Kt(this, A, (e.hydrate ? on : rr)(e.component, {
|
|
1395
1376
|
target: e.target,
|
|
1396
1377
|
anchor: e.anchor,
|
|
1397
1378
|
props: l,
|
|
1398
1379
|
context: e.context,
|
|
1399
1380
|
intro: e.intro ?? !1,
|
|
1400
1381
|
recover: e.recover
|
|
1401
|
-
})), (!((s = e == null ? void 0 : e.props) != null && s.$$host) || e.sync === !1) &&
|
|
1402
|
-
for (const
|
|
1403
|
-
|
|
1382
|
+
})), (!((s = e == null ? void 0 : e.props) != null && s.$$host) || e.sync === !1) && N(), Kt(this, B, l.$$events);
|
|
1383
|
+
for (const o of Object.keys(T(this, A)))
|
|
1384
|
+
o === "$set" || o === "$destroy" || o === "$on" || Ct(this, o, {
|
|
1404
1385
|
get() {
|
|
1405
|
-
return
|
|
1386
|
+
return T(this, A)[o];
|
|
1406
1387
|
},
|
|
1407
1388
|
/** @param {any} value */
|
|
1408
|
-
set(
|
|
1409
|
-
|
|
1389
|
+
set(i) {
|
|
1390
|
+
T(this, A)[o] = i;
|
|
1410
1391
|
},
|
|
1411
1392
|
enumerable: !0
|
|
1412
1393
|
});
|
|
1413
|
-
|
|
1414
|
-
(
|
|
1415
|
-
Object.assign(l,
|
|
1416
|
-
},
|
|
1417
|
-
|
|
1394
|
+
T(this, A).$set = /** @param {Record<string, any>} next */
|
|
1395
|
+
(o) => {
|
|
1396
|
+
Object.assign(l, o);
|
|
1397
|
+
}, T(this, A).$destroy = () => {
|
|
1398
|
+
an(T(this, A));
|
|
1418
1399
|
};
|
|
1419
1400
|
}
|
|
1420
1401
|
/** @param {Record<string, any>} props */
|
|
1421
1402
|
$set(e) {
|
|
1422
|
-
|
|
1403
|
+
T(this, A).$set(e);
|
|
1423
1404
|
}
|
|
1424
1405
|
/**
|
|
1425
1406
|
* @param {string} event
|
|
@@ -1427,22 +1408,22 @@ class wn {
|
|
|
1427
1408
|
* @returns {any}
|
|
1428
1409
|
*/
|
|
1429
1410
|
$on(e, r) {
|
|
1430
|
-
|
|
1411
|
+
T(this, B)[e] = T(this, B)[e] || [];
|
|
1431
1412
|
const n = (...l) => r.call(this, ...l);
|
|
1432
|
-
return
|
|
1433
|
-
|
|
1413
|
+
return T(this, B)[e].push(n), () => {
|
|
1414
|
+
T(this, B)[e] = T(this, B)[e].filter(
|
|
1434
1415
|
/** @param {any} fn */
|
|
1435
1416
|
(l) => l !== n
|
|
1436
1417
|
);
|
|
1437
1418
|
};
|
|
1438
1419
|
}
|
|
1439
1420
|
$destroy() {
|
|
1440
|
-
|
|
1421
|
+
T(this, A).$destroy();
|
|
1441
1422
|
}
|
|
1442
1423
|
}
|
|
1443
|
-
B = new WeakMap(),
|
|
1444
|
-
let
|
|
1445
|
-
typeof HTMLElement == "function" && (
|
|
1424
|
+
B = new WeakMap(), A = new WeakMap();
|
|
1425
|
+
let sr;
|
|
1426
|
+
typeof HTMLElement == "function" && (sr = class extends HTMLElement {
|
|
1446
1427
|
/**
|
|
1447
1428
|
* @param {*} $$componentCtor
|
|
1448
1429
|
* @param {*} $$slots
|
|
@@ -1451,25 +1432,25 @@ typeof HTMLElement == "function" && (lr = class extends HTMLElement {
|
|
|
1451
1432
|
constructor(e, r, n) {
|
|
1452
1433
|
super();
|
|
1453
1434
|
/** The Svelte component constructor */
|
|
1454
|
-
|
|
1435
|
+
R(this, "$$ctor");
|
|
1455
1436
|
/** Slots */
|
|
1456
|
-
|
|
1437
|
+
R(this, "$$s");
|
|
1457
1438
|
/** @type {any} The Svelte component instance */
|
|
1458
|
-
|
|
1439
|
+
R(this, "$$c");
|
|
1459
1440
|
/** Whether or not the custom element is connected */
|
|
1460
|
-
|
|
1441
|
+
R(this, "$$cn", !1);
|
|
1461
1442
|
/** @type {Record<string, any>} Component props data */
|
|
1462
|
-
|
|
1443
|
+
R(this, "$$d", {});
|
|
1463
1444
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
1464
|
-
|
|
1445
|
+
R(this, "$$r", !1);
|
|
1465
1446
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
1466
|
-
|
|
1447
|
+
R(this, "$$p_d", {});
|
|
1467
1448
|
/** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
|
|
1468
|
-
|
|
1449
|
+
R(this, "$$l", {});
|
|
1469
1450
|
/** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
|
|
1470
|
-
|
|
1451
|
+
R(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
1471
1452
|
/** @type {any} The managed render effect for reflecting attributes */
|
|
1472
|
-
|
|
1453
|
+
R(this, "$$me");
|
|
1473
1454
|
this.$$ctor = e, this.$$s = r, n && this.attachShadow({ mode: "open" });
|
|
1474
1455
|
}
|
|
1475
1456
|
/**
|
|
@@ -1499,18 +1480,18 @@ typeof HTMLElement == "function" && (lr = class extends HTMLElement {
|
|
|
1499
1480
|
if (this.$$cn = !0, !this.$$c) {
|
|
1500
1481
|
let e = function(l) {
|
|
1501
1482
|
return (s) => {
|
|
1502
|
-
const
|
|
1503
|
-
l !== "default" && (
|
|
1483
|
+
const o = document.createElement("slot");
|
|
1484
|
+
l !== "default" && (o.name = l), et(s, o);
|
|
1504
1485
|
};
|
|
1505
1486
|
};
|
|
1506
1487
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
1507
1488
|
return;
|
|
1508
|
-
const r = {}, n =
|
|
1489
|
+
const r = {}, n = mn(this);
|
|
1509
1490
|
for (const l of this.$$s)
|
|
1510
1491
|
l in n && (l === "default" && !this.$$d.children ? (this.$$d.children = e(l), r.default = !0) : r[l] = e(l));
|
|
1511
1492
|
for (const l of this.attributes) {
|
|
1512
1493
|
const s = this.$$g_p(l.name);
|
|
1513
|
-
s in this.$$d || (this.$$d[s] =
|
|
1494
|
+
s in this.$$d || (this.$$d[s] = St(s, l.value, this.$$p_d, "toProp"));
|
|
1514
1495
|
}
|
|
1515
1496
|
for (const l in this.$$p_d)
|
|
1516
1497
|
!(l in this.$$d) && this[l] !== void 0 && (this.$$d[l] = this[l], delete this[l]);
|
|
@@ -1522,28 +1503,28 @@ typeof HTMLElement == "function" && (lr = class extends HTMLElement {
|
|
|
1522
1503
|
$$slots: r,
|
|
1523
1504
|
$$host: this
|
|
1524
1505
|
}
|
|
1525
|
-
}), this.$$me =
|
|
1526
|
-
|
|
1506
|
+
}), this.$$me = qr(() => {
|
|
1507
|
+
Br(() => {
|
|
1527
1508
|
var l;
|
|
1528
1509
|
this.$$r = !0;
|
|
1529
|
-
for (const s of
|
|
1510
|
+
for (const s of Tt(this.$$c)) {
|
|
1530
1511
|
if (!((l = this.$$p_d[s]) != null && l.reflect)) continue;
|
|
1531
1512
|
this.$$d[s] = this.$$c[s];
|
|
1532
|
-
const
|
|
1513
|
+
const o = St(
|
|
1533
1514
|
s,
|
|
1534
1515
|
this.$$d[s],
|
|
1535
1516
|
this.$$p_d,
|
|
1536
1517
|
"toAttribute"
|
|
1537
1518
|
);
|
|
1538
|
-
|
|
1519
|
+
o == null ? this.removeAttribute(this.$$p_d[s].attribute || s) : this.setAttribute(this.$$p_d[s].attribute || s, o);
|
|
1539
1520
|
}
|
|
1540
1521
|
this.$$r = !1;
|
|
1541
1522
|
});
|
|
1542
1523
|
});
|
|
1543
1524
|
for (const l in this.$$l)
|
|
1544
1525
|
for (const s of this.$$l[l]) {
|
|
1545
|
-
const
|
|
1546
|
-
this.$$l_u.set(s,
|
|
1526
|
+
const o = this.$$c.$on(l, s);
|
|
1527
|
+
this.$$l_u.set(s, o);
|
|
1547
1528
|
}
|
|
1548
1529
|
this.$$l = {};
|
|
1549
1530
|
}
|
|
@@ -1557,7 +1538,7 @@ typeof HTMLElement == "function" && (lr = class extends HTMLElement {
|
|
|
1557
1538
|
*/
|
|
1558
1539
|
attributeChangedCallback(e, r, n) {
|
|
1559
1540
|
var l;
|
|
1560
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
1541
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = St(e, n, this.$$p_d, "toProp"), (l = this.$$c) == null || l.$set({ [e]: this.$$d[e] }));
|
|
1561
1542
|
}
|
|
1562
1543
|
disconnectedCallback() {
|
|
1563
1544
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -1568,12 +1549,12 @@ typeof HTMLElement == "function" && (lr = class extends HTMLElement {
|
|
|
1568
1549
|
* @param {string} attribute_name
|
|
1569
1550
|
*/
|
|
1570
1551
|
$$g_p(e) {
|
|
1571
|
-
return
|
|
1552
|
+
return Tt(this.$$p_d).find(
|
|
1572
1553
|
(r) => this.$$p_d[r].attribute === e || !this.$$p_d[r].attribute && r.toLowerCase() === e
|
|
1573
1554
|
) || e;
|
|
1574
1555
|
}
|
|
1575
1556
|
});
|
|
1576
|
-
function
|
|
1557
|
+
function St(t, e, r, n) {
|
|
1577
1558
|
var s;
|
|
1578
1559
|
const l = (s = r[t]) == null ? void 0 : s.type;
|
|
1579
1560
|
if (e = l === "Boolean" && typeof e != "boolean" ? e != null : e, !n || !r[t])
|
|
@@ -1604,7 +1585,7 @@ function Tt(t, e, r, n) {
|
|
|
1604
1585
|
return e;
|
|
1605
1586
|
}
|
|
1606
1587
|
}
|
|
1607
|
-
function
|
|
1588
|
+
function mn(t) {
|
|
1608
1589
|
const e = {};
|
|
1609
1590
|
return t.childNodes.forEach((r) => {
|
|
1610
1591
|
e[
|
|
@@ -1613,46 +1594,46 @@ function yn(t) {
|
|
|
1613
1594
|
] = !0;
|
|
1614
1595
|
}), e;
|
|
1615
1596
|
}
|
|
1616
|
-
function
|
|
1617
|
-
let
|
|
1597
|
+
function he(t, e, r, n, l, s) {
|
|
1598
|
+
let o = class extends sr {
|
|
1618
1599
|
constructor() {
|
|
1619
1600
|
super(t, r, l), this.$$p_d = e;
|
|
1620
1601
|
}
|
|
1621
1602
|
static get observedAttributes() {
|
|
1622
|
-
return
|
|
1623
|
-
(
|
|
1603
|
+
return Tt(e).map(
|
|
1604
|
+
(i) => (e[i].attribute || i).toLowerCase()
|
|
1624
1605
|
);
|
|
1625
1606
|
}
|
|
1626
1607
|
};
|
|
1627
|
-
return
|
|
1628
|
-
Ct(
|
|
1608
|
+
return Tt(e).forEach((i) => {
|
|
1609
|
+
Ct(o.prototype, i, {
|
|
1629
1610
|
get() {
|
|
1630
|
-
return this.$$c &&
|
|
1611
|
+
return this.$$c && i in this.$$c ? this.$$c[i] : this.$$d[i];
|
|
1631
1612
|
},
|
|
1632
1613
|
set(u) {
|
|
1633
1614
|
var a;
|
|
1634
|
-
u =
|
|
1635
|
-
var
|
|
1636
|
-
if (
|
|
1637
|
-
var
|
|
1638
|
-
|
|
1615
|
+
u = St(i, u, e), this.$$d[i] = u;
|
|
1616
|
+
var f = this.$$c;
|
|
1617
|
+
if (f) {
|
|
1618
|
+
var d = (a = Nt(f, i)) == null ? void 0 : a.get;
|
|
1619
|
+
d ? f[i] = u : f.$set({ [i]: u });
|
|
1639
1620
|
}
|
|
1640
1621
|
}
|
|
1641
1622
|
});
|
|
1642
|
-
}), n.forEach((
|
|
1643
|
-
Ct(
|
|
1623
|
+
}), n.forEach((i) => {
|
|
1624
|
+
Ct(o.prototype, i, {
|
|
1644
1625
|
get() {
|
|
1645
1626
|
var u;
|
|
1646
|
-
return (u = this.$$c) == null ? void 0 : u[
|
|
1627
|
+
return (u = this.$$c) == null ? void 0 : u[i];
|
|
1647
1628
|
}
|
|
1648
1629
|
});
|
|
1649
1630
|
}), t.element = /** @type {any} */
|
|
1650
|
-
|
|
1631
|
+
o, o;
|
|
1651
1632
|
}
|
|
1652
1633
|
const xn = [
|
|
1653
1634
|
{
|
|
1654
1635
|
name: "nostter",
|
|
1655
|
-
url: "https://nostter.app/post?
|
|
1636
|
+
url: "https://nostter.app/post?text={text}&url={url}&title={title}",
|
|
1656
1637
|
icon: "https://nostter.app/favicon.ico"
|
|
1657
1638
|
},
|
|
1658
1639
|
{
|
|
@@ -1660,84 +1641,115 @@ const xn = [
|
|
|
1660
1641
|
url: "https://lumilumi.vercel.app/post?url={url}&text={text}&title={title}",
|
|
1661
1642
|
icon: "https://lumilumi.vercel.app/favicon.ico"
|
|
1662
1643
|
}
|
|
1644
|
+
// // Androidアプリ例
|
|
1645
|
+
// {
|
|
1646
|
+
// name: "NostrShare (Android)",
|
|
1647
|
+
// url: "intent://share?text={text}&url={url}&title={title}#Intent;package=com.nostr.share;scheme=https;end",
|
|
1648
|
+
// icon: "https://example.com/nostrshare_android_icon.png",
|
|
1649
|
+
// },
|
|
1650
|
+
// // iOSアプリ例
|
|
1651
|
+
// {
|
|
1652
|
+
// name: "ShareKit (iOS)",
|
|
1653
|
+
// url: "sharekit://share?text={text}&url={url}&title={title}",
|
|
1654
|
+
// icon: "https://example.com/sharekit_ios_icon.png",
|
|
1655
|
+
// },
|
|
1656
|
+
// // 他のプラットフォーム例(例:Slack)
|
|
1657
|
+
// {
|
|
1658
|
+
// name: "Slack",
|
|
1659
|
+
// url: "slack://channel?team={teamId}&id={channelId}&message={text}%20{url}",
|
|
1660
|
+
// icon: "https://slack.com/favicon.ico",
|
|
1661
|
+
// },
|
|
1662
|
+
// // メッセージアプリ(例:WhatsApp)
|
|
1663
|
+
// {
|
|
1664
|
+
// name: "WhatsApp",
|
|
1665
|
+
// url: "https://wa.me/?text={text}%20{url}",
|
|
1666
|
+
// icon: "https://web.whatsapp.com/favicon.ico",
|
|
1667
|
+
// },
|
|
1668
|
+
// // デスクトップアプリ(例:Discord)
|
|
1669
|
+
// {
|
|
1670
|
+
// name: "Discord",
|
|
1671
|
+
// url: "discord://send?message={text}%20{url}&title={title}",
|
|
1672
|
+
// icon: "https://discord.com/favicon.ico",
|
|
1673
|
+
// },
|
|
1663
1674
|
];
|
|
1664
|
-
var
|
|
1665
|
-
const
|
|
1666
|
-
hash: "svelte-
|
|
1675
|
+
var wn = (t) => t.stopPropagation(), yn = (t, e, r) => e(I(r).url), En = /* @__PURE__ */ xt('<button class="item svelte-13vsz3z"><img> </button>'), kn = /* @__PURE__ */ xt('<div class="overlay svelte-13vsz3z"><div class="inner svelte-13vsz3z"><button class="close-button svelte-13vsz3z" aria-label="Close">✖</button> <h2 class="title svelte-13vsz3z">Share</h2> <div class="list svelte-13vsz3z"></div></div></div>');
|
|
1676
|
+
const Sn = {
|
|
1677
|
+
hash: "svelte-13vsz3z",
|
|
1667
1678
|
code: `
|
|
1668
|
-
/* オーバーレイ背景 */.overlay.svelte-
|
|
1679
|
+
/* オーバーレイ背景 */.overlay.svelte-13vsz3z {position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.3); /* 少し濃い背景 */display:flex;justify-content:center;align-items:center;}
|
|
1669
1680
|
|
|
1670
|
-
/* ダイアログ本体 */.inner.svelte-
|
|
1681
|
+
/* ダイアログ本体 */.inner.svelte-13vsz3z {display:flex;flex-direction:column;position:relative;background-color:var(--bg-color);padding:1.5rem;border-radius:12px; /* 柔らかい角丸 */box-shadow:0 8px 16px rgba(0, 0, 0, 0.2);width:90%;max-width:400px;gap:1rem; /* スペーシング */}
|
|
1671
1682
|
|
|
1672
|
-
/* タイトル */.title.svelte-
|
|
1683
|
+
/* タイトル */.title.svelte-13vsz3z {margin:0;font-size:1.25rem;font-weight:bold;text-align:center;color:var(--text-color-main); /* グレー700 */}
|
|
1673
1684
|
|
|
1674
|
-
/* リスト */.list.svelte-
|
|
1685
|
+
/* リスト */.list.svelte-13vsz3z {display:flex;flex-wrap:wrap;justify-content:center;gap:0.75rem; /* ゆったりした間隔 */}
|
|
1675
1686
|
|
|
1676
|
-
/* リストアイテム */.item.svelte-
|
|
1677
|
-
box-shadow 0.2s ease;}.item.svelte-
|
|
1687
|
+
/* リストアイテム */.item.svelte-13vsz3z {color:var(--button2-text-color);display:flex;width:120px;justify-content:center;align-items:center;gap:0.5rem;padding:0.75rem 1rem;background-color:var(--button2-bg-color); /* グレー100 */border:1px solid var(--border-color); /* グレー300 */border-radius:8px;font-size:1rem;cursor:pointer;transition:background-color 0.2s ease,
|
|
1688
|
+
box-shadow 0.2s ease;}.item.svelte-13vsz3z:hover {background-color:var(--button2-hover-color); /* グレー200 */box-shadow:0 2px 6px rgba(0, 0, 0, 0.1);}.item.svelte-13vsz3z:active {background-color:var(--button2-active-color); /* グレー300 */}
|
|
1678
1689
|
|
|
1679
|
-
/* バツボタン */.close-button.svelte-
|
|
1680
|
-
transform 0.1s ease;}.close-button.svelte-
|
|
1690
|
+
/* バツボタン */.close-button.svelte-13vsz3z {position:absolute;right:12px;top:12px;width:36px;height:36px;display:flex;justify-content:center;align-items:center;background-color:var(--button2-bg-color); /* グレー200 */border:none;border-radius:50%;font-size:1.25rem;color:var(--button2-text-color); /* グレー700 */cursor:pointer;transition:background-color 0.2s ease,
|
|
1691
|
+
transform 0.1s ease;}.close-button.svelte-13vsz3z:hover {background-color:var(--button2-hover-color); /* グレー300 */}.close-button.svelte-13vsz3z:active {background-color:var(--button2-active-color); /* グレー400 */transform:scale(0.95); /* 押した感覚を演出 */}`
|
|
1681
1692
|
};
|
|
1682
|
-
function
|
|
1683
|
-
|
|
1684
|
-
let r =
|
|
1685
|
-
const
|
|
1693
|
+
function or(t, e) {
|
|
1694
|
+
Bt(e, !0), de(t, Sn);
|
|
1695
|
+
let r = O(e, "url", 7, ""), n = O(e, "text", 7, ""), l = O(e, "shareTitle", 7, ""), s = O(e, "handleClose", 7);
|
|
1696
|
+
const o = (a) => {
|
|
1697
|
+
r() === "" && n() === "" && l() === "" && (r(window.location.href), l(document.title));
|
|
1686
1698
|
const c = a.replace("{url}", encodeURIComponent(r())).replace("{title}", encodeURIComponent(l())).replace("{text}", encodeURIComponent(n()));
|
|
1687
1699
|
console.log(c), window.open(c, "_blank", "noreferrer"), s()();
|
|
1688
1700
|
};
|
|
1689
|
-
var
|
|
1690
|
-
|
|
1701
|
+
var i = kn();
|
|
1702
|
+
i.__click = function(...a) {
|
|
1691
1703
|
var c;
|
|
1692
1704
|
(c = s()) == null || c.apply(this, a);
|
|
1693
1705
|
};
|
|
1694
|
-
var u =
|
|
1695
|
-
u.__click = [
|
|
1696
|
-
var
|
|
1697
|
-
|
|
1706
|
+
var u = yt(i);
|
|
1707
|
+
u.__click = [wn];
|
|
1708
|
+
var f = yt(u);
|
|
1709
|
+
f.__click = function(...a) {
|
|
1698
1710
|
var c;
|
|
1699
1711
|
(c = s()) == null || c.apply(this, a);
|
|
1700
1712
|
};
|
|
1701
|
-
var
|
|
1702
|
-
return
|
|
1703
|
-
var
|
|
1704
|
-
|
|
1705
|
-
var
|
|
1706
|
-
|
|
1707
|
-
var
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
}),
|
|
1711
|
-
}),
|
|
1713
|
+
var d = Rt(f, 4);
|
|
1714
|
+
return fn(d, 21, () => xn, un, (a, c) => {
|
|
1715
|
+
var v = En();
|
|
1716
|
+
v.__click = [yn, o, c];
|
|
1717
|
+
var h = yt(v);
|
|
1718
|
+
dt(h, "width", 24);
|
|
1719
|
+
var _ = Rt(h);
|
|
1720
|
+
ft(v), Ot(() => {
|
|
1721
|
+
dt(h, "src", I(c).icon), dt(h, "alt", I(c).name), sn(_, ` ${I(c).name ?? ""}`);
|
|
1722
|
+
}), et(a, v);
|
|
1723
|
+
}), ft(d), ft(u), ft(i), et(t, i), Ut({
|
|
1712
1724
|
get url() {
|
|
1713
1725
|
return r();
|
|
1714
1726
|
},
|
|
1715
1727
|
set url(a = "") {
|
|
1716
|
-
r(a),
|
|
1728
|
+
r(a), N();
|
|
1717
1729
|
},
|
|
1718
1730
|
get text() {
|
|
1719
1731
|
return n();
|
|
1720
1732
|
},
|
|
1721
1733
|
set text(a = "") {
|
|
1722
|
-
n(a),
|
|
1734
|
+
n(a), N();
|
|
1723
1735
|
},
|
|
1724
1736
|
get shareTitle() {
|
|
1725
1737
|
return l();
|
|
1726
1738
|
},
|
|
1727
1739
|
set shareTitle(a = "") {
|
|
1728
|
-
l(a),
|
|
1740
|
+
l(a), N();
|
|
1729
1741
|
},
|
|
1730
1742
|
get handleClose() {
|
|
1731
1743
|
return s();
|
|
1732
1744
|
},
|
|
1733
1745
|
set handleClose(a) {
|
|
1734
|
-
s(a),
|
|
1746
|
+
s(a), N();
|
|
1735
1747
|
}
|
|
1736
1748
|
});
|
|
1737
1749
|
}
|
|
1738
|
-
|
|
1739
|
-
customElements.define("nostr-share-dialog",
|
|
1740
|
-
|
|
1750
|
+
tr(["click"]);
|
|
1751
|
+
customElements.define("nostr-share-dialog", he(
|
|
1752
|
+
or,
|
|
1741
1753
|
{
|
|
1742
1754
|
url: {},
|
|
1743
1755
|
text: {},
|
|
@@ -1748,113 +1760,102 @@ customElements.define("nostr-share-dialog", sr(
|
|
|
1748
1760
|
[],
|
|
1749
1761
|
!0
|
|
1750
1762
|
));
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
.st2 {
|
|
1770
|
-
fill: #662482;
|
|
1771
|
-
}
|
|
1772
|
-
</style>
|
|
1773
|
-
<g>
|
|
1774
|
-
<path
|
|
1775
|
-
class="st0"
|
|
1776
|
-
d="M0,0v256h256V0H0z M231.2,159.2c0,20.7,0,31.1-3.5,42.2c-4.4,12.2-14,21.8-26.2,26.2
|
|
1777
|
-
c-11.1,3.5-21.5,3.5-42.2,3.5H96.8c-20.7,0-31.1,0-42.2-3.5c-12.2-4.4-21.8-14-26.2-26.2c-3.5-11.1-3.5-21.5-3.5-42.2V96.8
|
|
1778
|
-
c0-20.7,0-31.1,3.5-42.2c4.4-12.2,14-21.8,26.2-26.2c11.2-3.5,21.5-3.5,42.2-3.5h62.5c20.7,0,31.1,0,42.2,3.5
|
|
1779
|
-
c12.2,4.4,21.8,14,26.2,26.2c3.5,11.1,3.5,21.5,3.5,42.2V159.2z"
|
|
1780
|
-
/>
|
|
1781
|
-
<circle class="st1" cx="137.9" cy="99" r="12.1" />
|
|
1782
|
-
<path
|
|
1783
|
-
class="st1"
|
|
1784
|
-
d="M210.8,115.9c0-47.3-27.7-68.7-64.4-68.7c-16.4,0-31,4.4-42.4,12.5c-3.8,2.7-9,0.1-9-4.5
|
|
1785
|
-
c0-3.1-2.5-5.7-5.7-5.7H57.7c-3.1,0-5.7,2.5-5.7,5.7v144c0,3.1,2.5,5.7,5.7,5.7h33.7c3.1,0,5.6-2.5,5.6-5.6v-8.4
|
|
1786
|
-
c0-62.8-33.2-109.8-0.4-116c30-5.7,64.1-3,64.5,20.1c0,2,0.3,8,8.6,11.2c5,2,12.6,2.6,22.6,2.4c0,0,9.1-0.7,9.1,8.5
|
|
1787
|
-
c0,11.5-20.4,10.7-20.4,10.7c-6.7,0.3-22.6-1.5-31.7,1.2c-4.8,1.5-9,4.2-11.5,9.1c-4.2,8.3-6.2,26.5-6.5,45.5v15.5
|
|
1788
|
-
c0,3.1,2.5,5.7,5.7,5.7h68c3.1,0,5.7-2.5,5.7-5.7l0,0V115.9z"
|
|
1789
|
-
/>
|
|
1790
|
-
<path
|
|
1791
|
-
class="st2"
|
|
1792
|
-
d="M227.6,54.6c-4.4-12.2-14-21.8-26.2-26.2c-11.1-3.5-21.5-3.5-42.2-3.5H96.8c-20.7,0-31.1,0-42.2,3.5
|
|
1793
|
-
c-12.2,4.4-21.8,14-26.2,26.2c-3.5,11.2-3.5,21.5-3.5,42.2v62.5c0,20.7,0,31.1,3.5,42.2c4.4,12.2,14,21.8,26.2,26.2
|
|
1794
|
-
c11.2,3.5,21.5,3.5,42.2,3.5h62.5c20.7,0,31.1,0,42.2-3.5c12.2-4.4,21.8-14,26.2-26.2c3.5-11.1,3.5-21.5,3.5-42.2V96.8
|
|
1795
|
-
C231.2,76.1,231.2,65.7,227.6,54.6z M205.1,204.8h-68c-3.1,0-5.7-2.5-5.7-5.7v-15.5c0.3-19,2.3-37.2,6.5-45.5
|
|
1796
|
-
c2.5-5,6.7-7.7,11.5-9.1c9-2.7,24.9-0.9,31.7-1.2c0,0,20.4,0.8,20.4-10.7c0-9.3-9.1-8.5-9.1-8.5c-10,0.3-17.7-0.4-22.6-2.4
|
|
1797
|
-
c-8.3-3.3-8.6-9.2-8.6-11.2c-0.4-23.1-34.5-25.9-64.5-20.1c-32.8,6.2,0.4,53.3,0.4,116v8.4c-0.1,3.1-2.5,5.6-5.6,5.6H57.7
|
|
1798
|
-
c-3.1,0-5.7-2.5-5.7-5.7v-144c0-3.1,2.5-5.7,5.7-5.7h31.7c3.1,0,5.7,2.5,5.7,5.7c0,4.7,5.2,7.2,9,4.5c11.4-8.2,26-12.5,42.4-12.5
|
|
1799
|
-
c36.7,0,64.4,21.4,64.4,68.7v83.2l0,0C210.8,202.3,208.3,204.8,205.1,204.8z M125.7,99c0-6.7,5.4-12.1,12.1-12.1S150,92.3,150,99
|
|
1800
|
-
s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"
|
|
1801
|
-
/>
|
|
1802
|
-
</g>
|
|
1803
|
-
</svg>`, Nn = (t, e) => {
|
|
1804
|
-
Mt(e, !0);
|
|
1805
|
-
};
|
|
1806
|
-
var An = /* @__PURE__ */ yt('<div class="nostrShare-svg svelte-16pn564"><!></div>'), Rn = /* @__PURE__ */ yt('<div class="nostrShare-svg svelte-16pn564"><!></div> <span class="nostrShare-text svelte-16pn564">Share</span>', 1), On = /* @__PURE__ */ yt("<button><!></button> <!>", 1);
|
|
1807
|
-
const qn = {
|
|
1808
|
-
hash: "svelte-16pn564",
|
|
1763
|
+
var Tn = /* @__PURE__ */ ln(`<svg class="nostr-icon svelte-k84is3" version="1.1" id="_8" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 256 256" xml:space="preserve"><g><path class="st0 svelte-k84is3" d="M0,0v256h256V0H0z M231.2,159.2c0,20.7,0,31.1-3.5,42.2c-4.4,12.2-14,21.8-26.2,26.2
|
|
1764
|
+
c-11.1,3.5-21.5,3.5-42.2,3.5H96.8c-20.7,0-31.1,0-42.2-3.5c-12.2-4.4-21.8-14-26.2-26.2c-3.5-11.1-3.5-21.5-3.5-42.2V96.8
|
|
1765
|
+
c0-20.7,0-31.1,3.5-42.2c4.4-12.2,14-21.8,26.2-26.2c11.2-3.5,21.5-3.5,42.2-3.5h62.5c20.7,0,31.1,0,42.2,3.5
|
|
1766
|
+
c12.2,4.4,21.8,14,26.2,26.2c3.5,11.1,3.5,21.5,3.5,42.2V159.2z"></path><circle class="st1 svelte-k84is3" cx="137.9" cy="99" r="12.1"></circle><path class="st1 svelte-k84is3" d="M210.8,115.9c0-47.3-27.7-68.7-64.4-68.7c-16.4,0-31,4.4-42.4,12.5c-3.8,2.7-9,0.1-9-4.5
|
|
1767
|
+
c0-3.1-2.5-5.7-5.7-5.7H57.7c-3.1,0-5.7,2.5-5.7,5.7v144c0,3.1,2.5,5.7,5.7,5.7h33.7c3.1,0,5.6-2.5,5.6-5.6v-8.4
|
|
1768
|
+
c0-62.8-33.2-109.8-0.4-116c30-5.7,64.1-3,64.5,20.1c0,2,0.3,8,8.6,11.2c5,2,12.6,2.6,22.6,2.4c0,0,9.1-0.7,9.1,8.5
|
|
1769
|
+
c0,11.5-20.4,10.7-20.4,10.7c-6.7,0.3-22.6-1.5-31.7,1.2c-4.8,1.5-9,4.2-11.5,9.1c-4.2,8.3-6.2,26.5-6.5,45.5v15.5
|
|
1770
|
+
c0,3.1,2.5,5.7,5.7,5.7h68c3.1,0,5.7-2.5,5.7-5.7l0,0V115.9z"></path><path class="st2 svelte-k84is3" d="M227.6,54.6c-4.4-12.2-14-21.8-26.2-26.2c-11.1-3.5-21.5-3.5-42.2-3.5H96.8c-20.7,0-31.1,0-42.2,3.5
|
|
1771
|
+
c-12.2,4.4-21.8,14-26.2,26.2c-3.5,11.2-3.5,21.5-3.5,42.2v62.5c0,20.7,0,31.1,3.5,42.2c4.4,12.2,14,21.8,26.2,26.2
|
|
1772
|
+
c11.2,3.5,21.5,3.5,42.2,3.5h62.5c20.7,0,31.1,0,42.2-3.5c12.2-4.4,21.8-14,26.2-26.2c3.5-11.1,3.5-21.5,3.5-42.2V96.8
|
|
1773
|
+
C231.2,76.1,231.2,65.7,227.6,54.6z M205.1,204.8h-68c-3.1,0-5.7-2.5-5.7-5.7v-15.5c0.3-19,2.3-37.2,6.5-45.5
|
|
1774
|
+
c2.5-5,6.7-7.7,11.5-9.1c9-2.7,24.9-0.9,31.7-1.2c0,0,20.4,0.8,20.4-10.7c0-9.3-9.1-8.5-9.1-8.5c-10,0.3-17.7-0.4-22.6-2.4
|
|
1775
|
+
c-8.3-3.3-8.6-9.2-8.6-11.2c-0.4-23.1-34.5-25.9-64.5-20.1c-32.8,6.2,0.4,53.3,0.4,116v8.4c-0.1,3.1-2.5,5.6-5.6,5.6H57.7
|
|
1776
|
+
c-3.1,0-5.7-2.5-5.7-5.7v-144c0-3.1,2.5-5.7,5.7-5.7h31.7c3.1,0,5.7,2.5,5.7,5.7c0,4.7,5.2,7.2,9,4.5c11.4-8.2,26-12.5,42.4-12.5
|
|
1777
|
+
c36.7,0,64.4,21.4,64.4,68.7v83.2l0,0C210.8,202.3,208.3,204.8,205.1,204.8z M125.7,99c0-6.7,5.4-12.1,12.1-12.1S150,92.3,150,99
|
|
1778
|
+
s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"></path></g></svg>`);
|
|
1779
|
+
const Cn = {
|
|
1780
|
+
hash: "svelte-k84is3",
|
|
1809
1781
|
code: `
|
|
1810
|
-
/*
|
|
1811
|
-
|
|
1782
|
+
/* アイコン内部のSVG */.nostr-icon.svelte-k84is3 {display:flex;align-items:center;justify-content:center;}.st0.svelte-k84is3 {fill:none;}.st1.svelte-k84is3 {fill:var(--button1-bg-color);}.st2.svelte-k84is3 {fill:var(--nostr-color);}`
|
|
1783
|
+
};
|
|
1784
|
+
function re(t, e) {
|
|
1785
|
+
Bt(e, !0), de(t, Cn);
|
|
1786
|
+
let r = O(e, "size", 7, 28);
|
|
1787
|
+
var n = Tn();
|
|
1788
|
+
return Ot(() => dt(n, "style", `enable-background:new 0 0 256 256; width: ${r() ?? ""}px; height: ${r() ?? ""}px;`)), et(t, n), Ut({
|
|
1789
|
+
get size() {
|
|
1790
|
+
return r();
|
|
1791
|
+
},
|
|
1792
|
+
set size(l = 28) {
|
|
1793
|
+
r(l), N();
|
|
1794
|
+
}
|
|
1795
|
+
});
|
|
1796
|
+
}
|
|
1797
|
+
he(re, { size: {} }, [], [], !0);
|
|
1798
|
+
const Nn = (t, e) => {
|
|
1799
|
+
Ft(e, !0);
|
|
1800
|
+
};
|
|
1801
|
+
var zn = /* @__PURE__ */ xt("<span>Nostr</span>"), An = /* @__PURE__ */ xt("<!> <!>", 1), Rn = /* @__PURE__ */ xt("<button><!></button> <!>", 1);
|
|
1802
|
+
const On = {
|
|
1803
|
+
hash: "svelte-uxew0g",
|
|
1804
|
+
code: `:host {font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
|
|
1805
|
+
Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;--text-color-main: #2e2e2e;--button1-text-color: #662482;--button1-bg-color: #e2e2e2;--button1-hover-color: #b1b1b1;--button1-border-color: #b9b9b9;--button2-text-color: rgb(73, 73, 73);--button2-bg-color: #f3f4f6;--button2-hover-color: #e5e7eb;--nostr-color: #662482;--bg-color: #ffffff;--border-color: #d1d5db;}
|
|
1806
|
+
@media (prefers-color-scheme: dark) {:host {--text-color-main: #ffffff;--button1-text-color: #eec5ff;--button1-bg-color: #363636;--button1-hover-color: #555555;--button1-border-color: #555555;--button2-text-color: #f1f1f1;--button2-bg-color: #1f1f1f;--button2-hover-color: #3b3b3b;--nostr-color: #eec5ff;--bg-color: #000000;--border-color: #333333;}
|
|
1807
|
+
}
|
|
1808
|
+
/* ボタン全体の基本スタイル */.nostrShare-button.svelte-uxew0g,
|
|
1809
|
+
.nostrShare-icon.svelte-uxew0g,
|
|
1810
|
+
.nostrShare-mini.svelte-uxew0g {color:var(--button1-text-color);display:flex;align-items:center;justify-content:center;border:1px solid var(--button1-border-color);cursor:pointer;transition:all 0.2s ease-in-out;}
|
|
1812
1811
|
|
|
1813
|
-
/* ボタンスタイル */.nostrShare-button.svelte-
|
|
1814
|
-
BlinkMacSystemFont,
|
|
1815
|
-
Helvetica Neue,
|
|
1816
|
-
Arial,
|
|
1817
|
-
Hiragino Kaku Gothic ProN,
|
|
1818
|
-
Hiragino Sans,
|
|
1819
|
-
Meiryo,
|
|
1820
|
-
sans-serif;font-weight:bold;border-radius:8px;background-color:#f3f4f6; /* グレー */color:#374151; /* ダークグレー */}.nostrShare-button.svelte-16pn564:hover {background-color:#e5e7eb; /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}.nostrShare-button.svelte-16pn564:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
|
|
1812
|
+
/* ボタンスタイル */.nostrShare-button.svelte-uxew0g {padding:6px 16px;margin:4px;font-weight:bold;border-radius:8px;background-color:var(--button1-bg-color); /* グレー */color:var(--button2-text-color); /* ダークグレー */}.nostrShare-button.svelte-uxew0g:hover {background-color:var(--button1-hover-color); /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}.nostrShare-button.svelte-uxew0g:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
|
|
1821
1813
|
|
|
1822
|
-
/* テキスト用スタイル */.nostrShare-text.svelte-
|
|
1814
|
+
/* テキスト用スタイル */.nostrShare-text.svelte-uxew0g {margin-left:8px;font-size:medium;color:var(--button2-text-color);}
|
|
1823
1815
|
|
|
1824
|
-
/* アイコンスタイル */.nostrShare-icon.svelte-
|
|
1816
|
+
/* アイコンスタイル */.nostrShare-icon.svelte-uxew0g {width:36px;height:36px;margin:4px;border-radius:50%;background-color:var(--button1-bg-color); /* グレー */}.nostrShare-icon.svelte-uxew0g:hover {background-color:var(--button1-hover-color); /* グレー */box-shadow:0 0 6px rgba(0, 0, 0, 0.1);}.nostrShare-icon.svelte-uxew0g:active {background-color:#d1d5db;transform:scale(0.95);}
|
|
1825
1817
|
|
|
1826
|
-
/*
|
|
1818
|
+
/* miniスタイル */.nostrShare-mini.svelte-uxew0g {padding:4px 6px;margin:2px;border-radius:8px;background-color:var(--button1-bg-color); /* グレー */color:var(--button2-text-color); /* ダークグレー */}.nostrShare-mini.svelte-uxew0g:hover {background-color:var(--button1-hover-color); /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}.nostrShare-mini.svelte-uxew0g:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
|
|
1819
|
+
/* テキスト用スタイル */.nostrShare-text-mini.svelte-uxew0g {margin-left:4px;font-size:small;font-weight:bold;color:var(--button2-text-color);}`
|
|
1827
1820
|
};
|
|
1828
|
-
function
|
|
1829
|
-
|
|
1830
|
-
let r =
|
|
1831
|
-
const
|
|
1832
|
-
|
|
1821
|
+
function In(t, e) {
|
|
1822
|
+
Bt(e, !0), de(t, On);
|
|
1823
|
+
let r = O(e, "data-url", 7), n = O(e, "data-text", 7), l = O(e, "data-title", 7), s = O(e, "data-type", 7, "default"), o = O(e, "class", 7), i = O(e, "style", 7), u = Dr(!1);
|
|
1824
|
+
const f = () => {
|
|
1825
|
+
Ft(u, !1);
|
|
1833
1826
|
};
|
|
1834
|
-
var
|
|
1835
|
-
|
|
1836
|
-
var
|
|
1837
|
-
|
|
1838
|
-
var
|
|
1827
|
+
var d = Rn(), a = be(d);
|
|
1828
|
+
a.__click = [Nn, u];
|
|
1829
|
+
var c = yt(a);
|
|
1830
|
+
hn(c, e, "default", {}, (_) => {
|
|
1831
|
+
var k = An(), E = be(k);
|
|
1839
1832
|
{
|
|
1840
|
-
var
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
var m = Rn(), A = jt(m), y = ot(A);
|
|
1845
|
-
ge(y, () => me), Q(A), Lr(2), rt(_, m);
|
|
1833
|
+
var g = (b) => {
|
|
1834
|
+
re(b, { size: 24 });
|
|
1835
|
+
}, x = (b) => {
|
|
1836
|
+
re(b, {});
|
|
1846
1837
|
};
|
|
1847
|
-
|
|
1848
|
-
s() ?
|
|
1838
|
+
Wt(E, (b) => {
|
|
1839
|
+
s() === "mini" ? b(g) : b(x, !1);
|
|
1849
1840
|
});
|
|
1850
1841
|
}
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1842
|
+
var H = Rt(E, 2);
|
|
1843
|
+
{
|
|
1844
|
+
var y = (b) => {
|
|
1845
|
+
var V = zn();
|
|
1846
|
+
Ot(() => we(V, `${(s() === "mini" ? "nostrShare-text-mini" : "nostrShare-text") ?? ""} svelte-uxew0g`)), et(b, V);
|
|
1847
|
+
};
|
|
1848
|
+
Wt(H, (b) => {
|
|
1849
|
+
s() !== "icon" && b(y);
|
|
1850
|
+
});
|
|
1851
|
+
}
|
|
1852
|
+
et(_, k);
|
|
1853
|
+
}), ft(a);
|
|
1854
|
+
var v = Rt(a, 2);
|
|
1854
1855
|
{
|
|
1855
|
-
var
|
|
1856
|
-
|
|
1857
|
-
handleClose:
|
|
1856
|
+
var h = (_) => {
|
|
1857
|
+
or(_, {
|
|
1858
|
+
handleClose: f,
|
|
1858
1859
|
get url() {
|
|
1859
1860
|
return r();
|
|
1860
1861
|
},
|
|
@@ -1866,40 +1867,67 @@ function Dn(t, e) {
|
|
|
1866
1867
|
}
|
|
1867
1868
|
});
|
|
1868
1869
|
};
|
|
1869
|
-
|
|
1870
|
-
|
|
1870
|
+
Wt(v, (_) => {
|
|
1871
|
+
I(u) && _(h);
|
|
1871
1872
|
});
|
|
1872
1873
|
}
|
|
1873
|
-
return
|
|
1874
|
-
|
|
1874
|
+
return Ot(() => {
|
|
1875
|
+
we(a, `${`${o() || (s() === "icon" ? "nostrShare-icon" : s() === "mini" ? "nostrShare-mini" : "nostrShare-button")}` ?? ""} svelte-uxew0g`), dt(a, "style", i() || "");
|
|
1876
|
+
}), et(t, d), Ut({
|
|
1877
|
+
get "data-url"() {
|
|
1875
1878
|
return r();
|
|
1876
1879
|
},
|
|
1877
|
-
set url(
|
|
1878
|
-
r(
|
|
1880
|
+
set "data-url"(_) {
|
|
1881
|
+
r(_), N();
|
|
1879
1882
|
},
|
|
1880
|
-
get text() {
|
|
1883
|
+
get "data-text"() {
|
|
1881
1884
|
return n();
|
|
1882
1885
|
},
|
|
1883
|
-
set text(
|
|
1884
|
-
n(
|
|
1886
|
+
set "data-text"(_) {
|
|
1887
|
+
n(_), N();
|
|
1885
1888
|
},
|
|
1886
|
-
get
|
|
1889
|
+
get "data-title"() {
|
|
1887
1890
|
return l();
|
|
1888
1891
|
},
|
|
1889
|
-
set
|
|
1890
|
-
l(
|
|
1892
|
+
set "data-title"(_) {
|
|
1893
|
+
l(_), N();
|
|
1891
1894
|
},
|
|
1892
|
-
get
|
|
1895
|
+
get "data-type"() {
|
|
1893
1896
|
return s();
|
|
1894
1897
|
},
|
|
1895
|
-
set
|
|
1896
|
-
s(
|
|
1898
|
+
set "data-type"(_ = "default") {
|
|
1899
|
+
s(_), N();
|
|
1900
|
+
},
|
|
1901
|
+
get class() {
|
|
1902
|
+
return o();
|
|
1903
|
+
},
|
|
1904
|
+
set class(_) {
|
|
1905
|
+
o(_), N();
|
|
1906
|
+
},
|
|
1907
|
+
get style() {
|
|
1908
|
+
return i();
|
|
1909
|
+
},
|
|
1910
|
+
set style(_) {
|
|
1911
|
+
i(_), N();
|
|
1897
1912
|
}
|
|
1898
1913
|
});
|
|
1899
1914
|
}
|
|
1900
|
-
|
|
1901
|
-
customElements.define("nostr-share",
|
|
1915
|
+
tr(["click"]);
|
|
1916
|
+
customElements.define("nostr-share", he(
|
|
1917
|
+
In,
|
|
1918
|
+
{
|
|
1919
|
+
"data-url": {},
|
|
1920
|
+
"data-text": {},
|
|
1921
|
+
"data-title": {},
|
|
1922
|
+
"data-type": {},
|
|
1923
|
+
class: {},
|
|
1924
|
+
style: {}
|
|
1925
|
+
},
|
|
1926
|
+
["default"],
|
|
1927
|
+
[],
|
|
1928
|
+
!0
|
|
1929
|
+
));
|
|
1902
1930
|
export {
|
|
1903
|
-
|
|
1904
|
-
|
|
1931
|
+
or as Dialog,
|
|
1932
|
+
In as NostrShare
|
|
1905
1933
|
};
|