@pie-players/pie-tool-tts-inline 0.3.51 → 0.3.52
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/dist/tool-tts-inline.js +921 -896
- package/package.json +3 -3
package/dist/tool-tts-inline.js
CHANGED
|
@@ -17,85 +17,85 @@ function ee() {
|
|
|
17
17
|
reject: t
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
var C = 1024, w = 2048, T = 4096, E = 8192, te = 16384, D = 32768, ne = 1 << 25, re = 65536, O = 1 << 19, ie = 1 << 20,
|
|
20
|
+
var C = 1024, w = 2048, T = 4096, E = 8192, te = 16384, D = 32768, ne = 1 << 25, re = 65536, O = 1 << 19, ie = 1 << 20, k = 1 << 25, ae = 65536, oe = 1 << 21, se = 1 << 22, A = 1 << 23, ce = Symbol("$state"), le = Symbol("legacy props"), ue = Symbol(""), de = Symbol("attributes"), fe = Symbol("class"), pe = Symbol("style"), me = Symbol("text"), he = new class extends Error {
|
|
21
21
|
name = "StaleReactionError";
|
|
22
22
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
23
|
-
}(),
|
|
23
|
+
}(), ge = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
24
24
|
//#endregion
|
|
25
25
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/errors.js
|
|
26
|
-
function
|
|
26
|
+
function _e() {
|
|
27
27
|
throw Error("https://svelte.dev/e/async_derived_orphan");
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function ve(e, t, n) {
|
|
30
30
|
throw Error("https://svelte.dev/e/each_key_duplicate");
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function ye(e) {
|
|
33
33
|
throw Error("https://svelte.dev/e/effect_in_teardown");
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function be() {
|
|
36
36
|
throw Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function xe(e) {
|
|
39
39
|
throw Error("https://svelte.dev/e/effect_orphan");
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Se() {
|
|
42
42
|
throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Ce() {
|
|
45
45
|
throw Error("https://svelte.dev/e/hydration_failed");
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function we(e) {
|
|
48
48
|
throw Error("https://svelte.dev/e/props_invalid_value");
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Te() {
|
|
51
51
|
throw Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Ee() {
|
|
54
54
|
throw Error("https://svelte.dev/e/state_prototype_fixed");
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function De() {
|
|
57
57
|
throw Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function Oe() {
|
|
60
60
|
throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function ke() {
|
|
63
63
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function Ae(e) {
|
|
66
66
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
67
67
|
}
|
|
68
|
-
function
|
|
68
|
+
function je() {
|
|
69
69
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
70
70
|
}
|
|
71
71
|
//#endregion
|
|
72
72
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/hydration.js
|
|
73
|
-
var
|
|
74
|
-
function
|
|
75
|
-
|
|
73
|
+
var j = !1;
|
|
74
|
+
function Me(e) {
|
|
75
|
+
j = e;
|
|
76
76
|
}
|
|
77
|
-
var
|
|
78
|
-
function
|
|
79
|
-
if (e === null) throw
|
|
80
|
-
return
|
|
77
|
+
var M;
|
|
78
|
+
function N(e) {
|
|
79
|
+
if (e === null) throw Ae(), o;
|
|
80
|
+
return M = e;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
82
|
+
function Ne() {
|
|
83
|
+
return N(/* @__PURE__ */ an(M));
|
|
84
84
|
}
|
|
85
|
-
function
|
|
86
|
-
if (
|
|
87
|
-
if (/* @__PURE__ */
|
|
88
|
-
|
|
85
|
+
function Pe(e) {
|
|
86
|
+
if (j) {
|
|
87
|
+
if (/* @__PURE__ */ an(M) !== null) throw Ae(), o;
|
|
88
|
+
M = e;
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
if (
|
|
93
|
-
for (var t = e, n =
|
|
94
|
-
|
|
91
|
+
function Fe(e = 1) {
|
|
92
|
+
if (j) {
|
|
93
|
+
for (var t = e, n = M; t--;) n = /* @__PURE__ */ an(n);
|
|
94
|
+
M = n;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
function
|
|
98
|
-
for (var t = 0, n =
|
|
97
|
+
function Ie(e = !0) {
|
|
98
|
+
for (var t = 0, n = M;;) {
|
|
99
99
|
if (n.nodeType === 8) {
|
|
100
100
|
var r = n.data;
|
|
101
101
|
if (r === "]") {
|
|
@@ -103,84 +103,84 @@ function Re(e = !0) {
|
|
|
103
103
|
--t;
|
|
104
104
|
} else (r === "[" || r === "[!" || r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
|
|
105
105
|
}
|
|
106
|
-
var i = /* @__PURE__ */
|
|
106
|
+
var i = /* @__PURE__ */ an(n);
|
|
107
107
|
e && n.remove(), n = i;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
if (!e || e.nodeType !== 8) throw
|
|
110
|
+
function Le(e) {
|
|
111
|
+
if (!e || e.nodeType !== 8) throw Ae(), o;
|
|
112
112
|
return e.data;
|
|
113
113
|
}
|
|
114
114
|
//#endregion
|
|
115
115
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/equality.js
|
|
116
|
-
function
|
|
116
|
+
function Re(e) {
|
|
117
117
|
return e === this.v;
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function ze(e, t) {
|
|
120
120
|
return e == e ? e !== t || typeof e == "object" && !!e || typeof e == "function" : t == t;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
return !
|
|
122
|
+
function Be(e) {
|
|
123
|
+
return !ze(e, this.v);
|
|
124
124
|
}
|
|
125
125
|
//#endregion
|
|
126
126
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/flags/index.js
|
|
127
|
-
var
|
|
128
|
-
function
|
|
129
|
-
|
|
127
|
+
var Ve = !1, He = !1, P = null;
|
|
128
|
+
function Ue(e) {
|
|
129
|
+
P = e;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
|
|
133
|
-
p:
|
|
131
|
+
function We(e, t = !1, n) {
|
|
132
|
+
P = {
|
|
133
|
+
p: P,
|
|
134
134
|
i: !1,
|
|
135
135
|
c: null,
|
|
136
136
|
e: null,
|
|
137
137
|
s: e,
|
|
138
138
|
x: null,
|
|
139
|
-
r:
|
|
140
|
-
l:
|
|
139
|
+
r: J,
|
|
140
|
+
l: He && !t ? {
|
|
141
141
|
s: null,
|
|
142
142
|
u: null,
|
|
143
143
|
$: []
|
|
144
144
|
} : null
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
var t =
|
|
147
|
+
function Ge(e) {
|
|
148
|
+
var t = P, n = t.e;
|
|
149
149
|
if (n !== null) {
|
|
150
150
|
t.e = null;
|
|
151
|
-
for (var r of n)
|
|
151
|
+
for (var r of n) bn(r);
|
|
152
152
|
}
|
|
153
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
153
|
+
return e !== void 0 && (t.x = e), t.i = !0, P = t.p, e ?? {};
|
|
154
154
|
}
|
|
155
|
-
function
|
|
156
|
-
return !
|
|
155
|
+
function Ke() {
|
|
156
|
+
return !He || P !== null && P.l === null;
|
|
157
157
|
}
|
|
158
158
|
//#endregion
|
|
159
159
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/task.js
|
|
160
|
-
var
|
|
161
|
-
function
|
|
162
|
-
var e =
|
|
163
|
-
|
|
160
|
+
var qe = [];
|
|
161
|
+
function Je() {
|
|
162
|
+
var e = qe;
|
|
163
|
+
qe = [], S(e);
|
|
164
164
|
}
|
|
165
|
-
function
|
|
166
|
-
if (
|
|
167
|
-
var t =
|
|
165
|
+
function Ye(e) {
|
|
166
|
+
if (qe.length === 0 && !ut) {
|
|
167
|
+
var t = qe;
|
|
168
168
|
queueMicrotask(() => {
|
|
169
|
-
t ===
|
|
169
|
+
t === qe && Je();
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
|
|
172
|
+
qe.push(e);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
for (;
|
|
174
|
+
function Xe() {
|
|
175
|
+
for (; qe.length > 0;) Je();
|
|
176
176
|
}
|
|
177
|
-
function
|
|
178
|
-
var t =
|
|
179
|
-
if (t === null) return
|
|
177
|
+
function Ze(e) {
|
|
178
|
+
var t = J;
|
|
179
|
+
if (t === null) return G.f |= A, e;
|
|
180
180
|
if (!(t.f & 32768) && !(t.f & 4)) throw e;
|
|
181
|
-
|
|
181
|
+
Qe(e, t);
|
|
182
182
|
}
|
|
183
|
-
function
|
|
183
|
+
function Qe(e, t) {
|
|
184
184
|
for (; t !== null;) {
|
|
185
185
|
if (t.f & 128) {
|
|
186
186
|
if (!(t.f & 32768)) throw e;
|
|
@@ -197,36 +197,36 @@ function et(e, t) {
|
|
|
197
197
|
}
|
|
198
198
|
//#endregion
|
|
199
199
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/status.js
|
|
200
|
-
var
|
|
201
|
-
function
|
|
202
|
-
e.f = e.f &
|
|
200
|
+
var $e = ~(w | T | C);
|
|
201
|
+
function F(e, t) {
|
|
202
|
+
e.f = e.f & $e | t;
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
e.f & 512 || e.deps === null ?
|
|
204
|
+
function et(e) {
|
|
205
|
+
e.f & 512 || e.deps === null ? F(e, C) : F(e, T);
|
|
206
206
|
}
|
|
207
207
|
//#endregion
|
|
208
208
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/utils.js
|
|
209
|
-
function
|
|
210
|
-
if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^=
|
|
209
|
+
function tt(e) {
|
|
210
|
+
if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= ae, tt(t.deps));
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e),
|
|
212
|
+
function nt(e, t, n) {
|
|
213
|
+
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), tt(e.deps), F(e, C);
|
|
214
214
|
}
|
|
215
215
|
//#endregion
|
|
216
216
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/store.js
|
|
217
|
-
var
|
|
218
|
-
function
|
|
219
|
-
var t =
|
|
217
|
+
var rt = !1, it = !1;
|
|
218
|
+
function at(e) {
|
|
219
|
+
var t = it;
|
|
220
220
|
try {
|
|
221
|
-
return
|
|
221
|
+
return it = !1, [e(), it];
|
|
222
222
|
} finally {
|
|
223
|
-
|
|
223
|
+
it = t;
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
226
|
//#endregion
|
|
227
227
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/batch.js
|
|
228
|
-
var
|
|
229
|
-
id =
|
|
228
|
+
var ot = null, st = null, I = null, ct = null, L = null, lt = null, ut = !1, dt = !1, ft = null, pt = null, mt = 0, ht = 1, gt = class e {
|
|
229
|
+
id = ht++;
|
|
230
230
|
#e = !1;
|
|
231
231
|
linked = !0;
|
|
232
232
|
#t = null;
|
|
@@ -248,7 +248,7 @@ var ct = null, lt = null, P = null, ut = null, F = null, dt = null, ft = !1, pt
|
|
|
248
248
|
is_fork = !1;
|
|
249
249
|
#m = !1;
|
|
250
250
|
constructor() {
|
|
251
|
-
|
|
251
|
+
st === null ? ot = st = this : (st.#n = this, this.#t = st), st = this;
|
|
252
252
|
}
|
|
253
253
|
#h() {
|
|
254
254
|
if (this.is_fork) return !0;
|
|
@@ -274,31 +274,31 @@ var ct = null, lt = null, P = null, ut = null, F = null, dt = null, ft = !1, pt
|
|
|
274
274
|
var n = this.#f.get(e);
|
|
275
275
|
if (n) {
|
|
276
276
|
this.#f.delete(e);
|
|
277
|
-
for (var r of n.d)
|
|
278
|
-
for (r of n.m)
|
|
277
|
+
for (var r of n.d) F(r, w), t(r);
|
|
278
|
+
for (r of n.m) F(r, T), t(r);
|
|
279
279
|
}
|
|
280
280
|
this.#p.add(e);
|
|
281
281
|
}
|
|
282
282
|
#g() {
|
|
283
|
-
this.#e = !0,
|
|
284
|
-
for (let e of this.#u) this.#d.delete(e),
|
|
285
|
-
for (let e of this.#d)
|
|
283
|
+
this.#e = !0, mt++ > 1e3 && (this.#S(), vt());
|
|
284
|
+
for (let e of this.#u) this.#d.delete(e), F(e, w), this.schedule(e);
|
|
285
|
+
for (let e of this.#d) F(e, T), this.schedule(e);
|
|
286
286
|
let t = this.#c;
|
|
287
287
|
this.#c = [], this.apply();
|
|
288
|
-
var n =
|
|
288
|
+
var n = ft = [], r = [], i = pt = [];
|
|
289
289
|
for (let e of t) try {
|
|
290
290
|
this.#_(e, n, r);
|
|
291
291
|
} catch (t) {
|
|
292
|
-
throw
|
|
292
|
+
throw wt(e), this.#h() || this.discard(), t;
|
|
293
293
|
}
|
|
294
|
-
if (
|
|
294
|
+
if (I = null, i.length > 0) {
|
|
295
295
|
var a = e.ensure();
|
|
296
296
|
for (let e of i) a.schedule(e);
|
|
297
297
|
}
|
|
298
|
-
if (
|
|
298
|
+
if (ft = null, pt = null, this.#h()) {
|
|
299
299
|
this.#b(r), this.#b(n);
|
|
300
|
-
for (let [e, t] of this.#f)
|
|
301
|
-
i.length > 0 &&
|
|
300
|
+
for (let [e, t] of this.#f) Ct(e, t);
|
|
301
|
+
i.length > 0 && I.#g();
|
|
302
302
|
return;
|
|
303
303
|
}
|
|
304
304
|
let o = this.#v();
|
|
@@ -308,9 +308,9 @@ var ct = null, lt = null, P = null, ut = null, F = null, dt = null, ft = !1, pt
|
|
|
308
308
|
}
|
|
309
309
|
this.#u.clear(), this.#d.clear();
|
|
310
310
|
for (let e of this.#r) e(this);
|
|
311
|
-
this.#r.clear(),
|
|
312
|
-
var s =
|
|
313
|
-
if (this.#a === 0 && (this.#c.length === 0 || s !== null) && (this.#S(),
|
|
311
|
+
this.#r.clear(), ct = this, yt(r), yt(n), ct = null, this.#s?.resolve();
|
|
312
|
+
var s = I;
|
|
313
|
+
if (this.#a === 0 && (this.#c.length === 0 || s !== null) && (this.#S(), Ve && (this.#x(), I = s)), this.#c.length > 0) if (s !== null) {
|
|
314
314
|
let e = s;
|
|
315
315
|
e.#c.push(...this.#c.filter((t) => !e.#c.includes(t)));
|
|
316
316
|
} else s = this;
|
|
@@ -321,7 +321,7 @@ var ct = null, lt = null, P = null, ut = null, F = null, dt = null, ft = !1, pt
|
|
|
321
321
|
for (var r = e.first; r !== null;) {
|
|
322
322
|
var i = r.f, a = (i & 96) != 0;
|
|
323
323
|
if (!(a && i & 1024 || i & 8192 || this.#f.has(r)) && r.fn !== null) {
|
|
324
|
-
a ? r.f ^= C : i & 4 ? t.push(r) :
|
|
324
|
+
a ? r.f ^= C : i & 4 ? t.push(r) : Ve && i & 16777224 ? n.push(r) : Zn(r) && (i & 16 && this.#d.add(r), nr(r));
|
|
325
325
|
var o = r.first;
|
|
326
326
|
if (o !== null) {
|
|
327
327
|
r = o;
|
|
@@ -361,30 +361,30 @@ var ct = null, lt = null, P = null, ut = null, F = null, dt = null, ft = !1, pt
|
|
|
361
361
|
if (r & 2) t(e);
|
|
362
362
|
else {
|
|
363
363
|
var i = e;
|
|
364
|
-
r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i),
|
|
364
|
+
r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), F(i, w), this.schedule(i));
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
367
|
};
|
|
368
368
|
for (let e of this.current.keys()) t(e);
|
|
369
|
-
this.oncommit(() => e.discard()), e.#S(),
|
|
369
|
+
this.oncommit(() => e.discard()), e.#S(), I = this, this.#g();
|
|
370
370
|
}
|
|
371
371
|
#b(e) {
|
|
372
|
-
for (var t = 0; t < e.length; t += 1)
|
|
372
|
+
for (var t = 0; t < e.length; t += 1) nt(e[t], this.#u, this.#d);
|
|
373
373
|
}
|
|
374
374
|
capture(e, t, n = !1) {
|
|
375
|
-
e.v !== s && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]),
|
|
375
|
+
e.v !== s && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, n]), L?.set(e, t)), this.is_fork || (e.v = t);
|
|
376
376
|
}
|
|
377
377
|
activate() {
|
|
378
|
-
|
|
378
|
+
I = this;
|
|
379
379
|
}
|
|
380
380
|
deactivate() {
|
|
381
|
-
|
|
381
|
+
I = null, L = null;
|
|
382
382
|
}
|
|
383
383
|
flush() {
|
|
384
384
|
try {
|
|
385
|
-
|
|
385
|
+
dt = !0, I = this, this.#g();
|
|
386
386
|
} finally {
|
|
387
|
-
|
|
387
|
+
mt = 0, lt = null, ft = null, pt = null, dt = !1, I = null, L = null, Wt.clear();
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
390
|
discard() {
|
|
@@ -395,7 +395,7 @@ var ct = null, lt = null, P = null, ut = null, F = null, dt = null, ft = !1, pt
|
|
|
395
395
|
this.#l.push(e);
|
|
396
396
|
}
|
|
397
397
|
#x() {
|
|
398
|
-
for (let l =
|
|
398
|
+
for (let l = ot; l !== null; l = l.#n) {
|
|
399
399
|
var e = l.id < this.id, t = [];
|
|
400
400
|
for (let [r, [i, a]] of this.current) {
|
|
401
401
|
if (l.current.has(r)) {
|
|
@@ -418,13 +418,13 @@ var ct = null, lt = null, P = null, ut = null, F = null, dt = null, ft = !1, pt
|
|
|
418
418
|
});
|
|
419
419
|
l.activate();
|
|
420
420
|
var i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
|
|
421
|
-
for (var o of t)
|
|
421
|
+
for (var o of t) bt(o, r, i, a);
|
|
422
422
|
a = /* @__PURE__ */ new Map();
|
|
423
423
|
var s = [...l.current].filter(([e, t]) => {
|
|
424
424
|
let n = this.current.get(e);
|
|
425
425
|
return n ? n[0] !== t[0] || n[1] !== t[1] : !0;
|
|
426
426
|
}).map(([e]) => e);
|
|
427
|
-
if (s.length > 0) for (let e of this.#l) !(e.f & 155648) &&
|
|
427
|
+
if (s.length > 0) for (let e of this.#l) !(e.f & 155648) && xt(e, s, a) && (e.f & 4194320 ? (F(e, w), l.schedule(e)) : l.#u.add(e));
|
|
428
428
|
if (l.#c.length > 0 && !l.#m) {
|
|
429
429
|
l.apply();
|
|
430
430
|
for (var c of l.#c) l.#_(c, [], []);
|
|
@@ -446,7 +446,7 @@ var ct = null, lt = null, P = null, ut = null, F = null, dt = null, ft = !1, pt
|
|
|
446
446
|
let e = this.#o.get(t) ?? 0;
|
|
447
447
|
e === 1 ? this.#o.delete(t) : this.#o.set(t, e - 1);
|
|
448
448
|
}
|
|
449
|
-
this.#m || (this.#m = !0,
|
|
449
|
+
this.#m || (this.#m = !0, Ye(() => {
|
|
450
450
|
this.#m = !1, this.linked && this.flush();
|
|
451
451
|
}));
|
|
452
452
|
}
|
|
@@ -465,22 +465,22 @@ var ct = null, lt = null, P = null, ut = null, F = null, dt = null, ft = !1, pt
|
|
|
465
465
|
return (this.#s ??= ee()).promise;
|
|
466
466
|
}
|
|
467
467
|
static ensure() {
|
|
468
|
-
if (
|
|
469
|
-
let t =
|
|
470
|
-
!
|
|
468
|
+
if (I === null) {
|
|
469
|
+
let t = I = new e();
|
|
470
|
+
!dt && !ut && Ye(() => {
|
|
471
471
|
t.#e || t.flush();
|
|
472
472
|
});
|
|
473
473
|
}
|
|
474
|
-
return
|
|
474
|
+
return I;
|
|
475
475
|
}
|
|
476
476
|
apply() {
|
|
477
|
-
if (!
|
|
478
|
-
|
|
477
|
+
if (!Ve || !this.is_fork && this.#t === null && this.#n === null) {
|
|
478
|
+
L = null;
|
|
479
479
|
return;
|
|
480
480
|
}
|
|
481
|
-
|
|
482
|
-
for (let [e, [t]] of this.current)
|
|
483
|
-
for (let t =
|
|
481
|
+
L = /* @__PURE__ */ new Map();
|
|
482
|
+
for (let [e, [t]] of this.current) L.set(e, t);
|
|
483
|
+
for (let t = ot; t !== null; t = t.#n) if (!(t === this || t.is_fork)) {
|
|
484
484
|
var e = !1;
|
|
485
485
|
if (t.id < this.id) {
|
|
486
486
|
for (let [n, [, r]] of t.current) if (!r && this.current.has(n)) {
|
|
@@ -488,18 +488,18 @@ var ct = null, lt = null, P = null, ut = null, F = null, dt = null, ft = !1, pt
|
|
|
488
488
|
break;
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
if (!e) for (let [e, n] of t.previous)
|
|
491
|
+
if (!e) for (let [e, n] of t.previous) L.has(e) || L.set(e, n);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
schedule(e) {
|
|
495
|
-
if (
|
|
495
|
+
if (lt = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
|
|
496
496
|
e.b.defer_effect(e);
|
|
497
497
|
return;
|
|
498
498
|
}
|
|
499
499
|
for (var t = e; t.parent !== null;) {
|
|
500
500
|
t = t.parent;
|
|
501
501
|
var n = t.f;
|
|
502
|
-
if (
|
|
502
|
+
if (ft !== null && t === J && (Ve || (G === null || !(G.f & 2)) && !rt)) return;
|
|
503
503
|
if (n & 96) {
|
|
504
504
|
if (!(n & 1024)) return;
|
|
505
505
|
t.f ^= C;
|
|
@@ -510,105 +510,105 @@ var ct = null, lt = null, P = null, ut = null, F = null, dt = null, ft = !1, pt
|
|
|
510
510
|
#S() {
|
|
511
511
|
if (this.linked) {
|
|
512
512
|
var e = this.#t, t = this.#n;
|
|
513
|
-
e === null ?
|
|
513
|
+
e === null ? ot = t : e.#n = t, t === null ? st = e : t.#t = e, this.linked = !1;
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
};
|
|
517
|
-
function
|
|
518
|
-
var t =
|
|
519
|
-
|
|
517
|
+
function _t(e) {
|
|
518
|
+
var t = ut;
|
|
519
|
+
ut = !0;
|
|
520
520
|
try {
|
|
521
521
|
var n;
|
|
522
|
-
for (e && (
|
|
523
|
-
if (
|
|
524
|
-
|
|
522
|
+
for (e && (I !== null && !I.is_fork && I.flush(), n = e());;) {
|
|
523
|
+
if (Xe(), I === null) return n;
|
|
524
|
+
I.flush();
|
|
525
525
|
}
|
|
526
526
|
} finally {
|
|
527
|
-
|
|
527
|
+
ut = t;
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
|
-
function
|
|
530
|
+
function vt() {
|
|
531
531
|
try {
|
|
532
|
-
|
|
532
|
+
Se();
|
|
533
533
|
} catch (e) {
|
|
534
|
-
|
|
534
|
+
Qe(e, lt);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
var
|
|
538
|
-
function
|
|
537
|
+
var R = null;
|
|
538
|
+
function yt(e) {
|
|
539
539
|
var t = e.length;
|
|
540
540
|
if (t !== 0) {
|
|
541
541
|
for (var n = 0; n < t;) {
|
|
542
542
|
var r = e[n++];
|
|
543
|
-
if (!(r.f & 24576) &&
|
|
544
|
-
|
|
545
|
-
for (let e of
|
|
543
|
+
if (!(r.f & 24576) && Zn(r) && (R = /* @__PURE__ */ new Set(), nr(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && Mn(r), R?.size > 0)) {
|
|
544
|
+
Wt.clear();
|
|
545
|
+
for (let e of R) {
|
|
546
546
|
if (e.f & 24576) continue;
|
|
547
547
|
let t = [e], n = e.parent;
|
|
548
|
-
for (; n !== null;)
|
|
548
|
+
for (; n !== null;) R.has(n) && (R.delete(n), t.push(n)), n = n.parent;
|
|
549
549
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
550
550
|
let n = t[e];
|
|
551
|
-
n.f & 24576 ||
|
|
551
|
+
n.f & 24576 || nr(n);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
|
|
554
|
+
R.clear();
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
|
-
|
|
557
|
+
R = null;
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function bt(e, t, n, r) {
|
|
561
561
|
if (!n.has(e) && (n.add(e), e.reactions !== null)) for (let i of e.reactions) {
|
|
562
562
|
let e = i.f;
|
|
563
|
-
e & 2 ?
|
|
563
|
+
e & 2 ? bt(i, t, n, r) : e & 4194320 && !(e & 2048) && xt(i, t, r) && (F(i, w), St(i));
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function xt(e, t, n) {
|
|
567
567
|
let r = n.get(e);
|
|
568
568
|
if (r !== void 0) return r;
|
|
569
569
|
if (e.deps !== null) for (let r of e.deps) {
|
|
570
570
|
if (d.call(t, r)) return !0;
|
|
571
|
-
if (r.f & 2 &&
|
|
571
|
+
if (r.f & 2 && xt(r, t, n)) return n.set(r, !0), !0;
|
|
572
572
|
}
|
|
573
573
|
return n.set(e, !1), !1;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
|
|
575
|
+
function St(e) {
|
|
576
|
+
I.schedule(e);
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function Ct(e, t) {
|
|
579
579
|
if (!(e.f & 32 && e.f & 1024)) {
|
|
580
|
-
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e),
|
|
581
|
-
for (var n = e.first; n !== null;)
|
|
580
|
+
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), F(e, C);
|
|
581
|
+
for (var n = e.first; n !== null;) Ct(n, t), n = n.next;
|
|
582
582
|
}
|
|
583
583
|
}
|
|
584
|
-
function
|
|
585
|
-
|
|
586
|
-
for (var t = e.first; t !== null;)
|
|
584
|
+
function wt(e) {
|
|
585
|
+
F(e, C);
|
|
586
|
+
for (var t = e.first; t !== null;) wt(t), t = t.next;
|
|
587
587
|
}
|
|
588
588
|
//#endregion
|
|
589
589
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/reactivity/create-subscriber.js
|
|
590
|
-
function
|
|
591
|
-
let t = 0, n =
|
|
590
|
+
function Tt(e) {
|
|
591
|
+
let t = 0, n = Kt(0), r;
|
|
592
592
|
return () => {
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
--t, t === 0 && (r?.(), r = void 0,
|
|
593
|
+
_n() && (Q(n), Tn(() => (t === 0 && (r = ar(() => e(() => Xt(n)))), t += 1, () => {
|
|
594
|
+
Ye(() => {
|
|
595
|
+
--t, t === 0 && (r?.(), r = void 0, Xt(n));
|
|
596
596
|
});
|
|
597
597
|
})));
|
|
598
598
|
};
|
|
599
599
|
}
|
|
600
600
|
//#endregion
|
|
601
601
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
|
|
602
|
-
var
|
|
603
|
-
function
|
|
604
|
-
new
|
|
602
|
+
var Et = re | O;
|
|
603
|
+
function Dt(e, t, n, r) {
|
|
604
|
+
new Ot(e, t, n, r);
|
|
605
605
|
}
|
|
606
|
-
var
|
|
606
|
+
var Ot = class {
|
|
607
607
|
parent;
|
|
608
608
|
is_pending = !1;
|
|
609
609
|
transform_error;
|
|
610
610
|
#e;
|
|
611
|
-
#t =
|
|
611
|
+
#t = j ? M : null;
|
|
612
612
|
#n;
|
|
613
613
|
#r;
|
|
614
614
|
#i;
|
|
@@ -622,57 +622,57 @@ var At = class {
|
|
|
622
622
|
#f = /* @__PURE__ */ new Set();
|
|
623
623
|
#p = /* @__PURE__ */ new Set();
|
|
624
624
|
#m = null;
|
|
625
|
-
#h =
|
|
625
|
+
#h = Tt(() => (this.#m = Kt(this.#l), () => {
|
|
626
626
|
this.#m = null;
|
|
627
627
|
}));
|
|
628
628
|
constructor(e, t, n, r) {
|
|
629
629
|
this.#e = e, this.#n = t, this.#r = (e) => {
|
|
630
|
-
var t =
|
|
630
|
+
var t = J;
|
|
631
631
|
t.b = this, t.f |= 128, n(e);
|
|
632
|
-
}, this.parent =
|
|
633
|
-
if (
|
|
632
|
+
}, this.parent = J.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = Dn(() => {
|
|
633
|
+
if (j) {
|
|
634
634
|
let e = this.#t;
|
|
635
|
-
|
|
635
|
+
Ne();
|
|
636
636
|
let t = e.data === "[!";
|
|
637
637
|
if (e.data.startsWith("[?")) {
|
|
638
638
|
let t = JSON.parse(e.data.slice(2));
|
|
639
639
|
this.#_(t);
|
|
640
640
|
} else t ? this.#v() : this.#g();
|
|
641
641
|
} else this.#y();
|
|
642
|
-
},
|
|
642
|
+
}, Et), j && (this.#e = M);
|
|
643
643
|
}
|
|
644
644
|
#g() {
|
|
645
645
|
try {
|
|
646
|
-
this.#a =
|
|
646
|
+
this.#a = U(() => this.#r(this.#e));
|
|
647
647
|
} catch (e) {
|
|
648
648
|
this.error(e);
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
651
|
#_(e) {
|
|
652
652
|
let t = this.#n.failed;
|
|
653
|
-
t && (this.#s =
|
|
653
|
+
t && (this.#s = U(() => {
|
|
654
654
|
t(this.#e, () => e, () => () => {});
|
|
655
655
|
}));
|
|
656
656
|
}
|
|
657
657
|
#v() {
|
|
658
658
|
let e = this.#n.pending;
|
|
659
|
-
e && (this.is_pending = !0, this.#o =
|
|
660
|
-
var e = this.#c = document.createDocumentFragment(), t =
|
|
661
|
-
e.append(t), this.#a = this.#x(() =>
|
|
659
|
+
e && (this.is_pending = !0, this.#o = U(() => e(this.#e)), Ye(() => {
|
|
660
|
+
var e = this.#c = document.createDocumentFragment(), t = V();
|
|
661
|
+
e.append(t), this.#a = this.#x(() => U(() => this.#r(t))), this.#u === 0 && (this.#e.before(e), this.#c = null, Nn(this.#o, () => {
|
|
662
662
|
this.#o = null;
|
|
663
|
-
}), this.#b(
|
|
663
|
+
}), this.#b(I));
|
|
664
664
|
}));
|
|
665
665
|
}
|
|
666
666
|
#y() {
|
|
667
667
|
try {
|
|
668
|
-
if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a =
|
|
668
|
+
if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = U(() => {
|
|
669
669
|
this.#r(this.#e);
|
|
670
670
|
}), this.#u > 0) {
|
|
671
671
|
var e = this.#c = document.createDocumentFragment();
|
|
672
|
-
|
|
672
|
+
Ln(this.#a, e);
|
|
673
673
|
let t = this.#n.pending;
|
|
674
|
-
this.#o =
|
|
675
|
-
} else this.#b(
|
|
674
|
+
this.#o = U(() => t(this.#e));
|
|
675
|
+
} else this.#b(I);
|
|
676
676
|
} catch (e) {
|
|
677
677
|
this.error(e);
|
|
678
678
|
}
|
|
@@ -681,7 +681,7 @@ var At = class {
|
|
|
681
681
|
this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
|
|
682
682
|
}
|
|
683
683
|
defer_effect(e) {
|
|
684
|
-
|
|
684
|
+
nt(e, this.#f, this.#p);
|
|
685
685
|
}
|
|
686
686
|
is_rendered() {
|
|
687
687
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -690,14 +690,14 @@ var At = class {
|
|
|
690
690
|
return !!this.#n.pending;
|
|
691
691
|
}
|
|
692
692
|
#x(e) {
|
|
693
|
-
var t =
|
|
694
|
-
|
|
693
|
+
var t = J, n = G, r = P;
|
|
694
|
+
Hn(this.#i), q(this.#i), Ue(this.#i.ctx);
|
|
695
695
|
try {
|
|
696
|
-
return
|
|
696
|
+
return gt.ensure(), e();
|
|
697
697
|
} catch (e) {
|
|
698
|
-
return
|
|
698
|
+
return Ze(e), null;
|
|
699
699
|
} finally {
|
|
700
|
-
|
|
700
|
+
Hn(t), q(n), Ue(r);
|
|
701
701
|
}
|
|
702
702
|
}
|
|
703
703
|
#S(e, t) {
|
|
@@ -705,35 +705,35 @@ var At = class {
|
|
|
705
705
|
this.parent && this.parent.#S(e, t);
|
|
706
706
|
return;
|
|
707
707
|
}
|
|
708
|
-
this.#u += e, this.#u === 0 && (this.#b(t), this.#o &&
|
|
708
|
+
this.#u += e, this.#u === 0 && (this.#b(t), this.#o && Nn(this.#o, () => {
|
|
709
709
|
this.#o = null;
|
|
710
710
|
}), this.#c &&= (this.#e.before(this.#c), null));
|
|
711
711
|
}
|
|
712
712
|
update_pending_count(e, t) {
|
|
713
|
-
this.#S(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0,
|
|
714
|
-
this.#d = !1, this.#m &&
|
|
713
|
+
this.#S(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, Ye(() => {
|
|
714
|
+
this.#d = !1, this.#m && Jt(this.#m, this.#l);
|
|
715
715
|
}));
|
|
716
716
|
}
|
|
717
717
|
get_effect_pending() {
|
|
718
|
-
return this.#h(),
|
|
718
|
+
return this.#h(), Q(this.#m);
|
|
719
719
|
}
|
|
720
720
|
error(e) {
|
|
721
721
|
if (!this.#n.onerror && !this.#n.failed) throw e;
|
|
722
|
-
|
|
722
|
+
I?.is_fork ? (this.#a && I.skip_effect(this.#a), this.#o && I.skip_effect(this.#o), this.#s && I.skip_effect(this.#s), I.oncommit(() => {
|
|
723
723
|
this.#C(e);
|
|
724
724
|
})) : this.#C(e);
|
|
725
725
|
}
|
|
726
726
|
#C(e) {
|
|
727
|
-
this.#a &&= (
|
|
727
|
+
this.#a &&= (W(this.#a), null), this.#o &&= (W(this.#o), null), this.#s &&= (W(this.#s), null), j && (N(this.#t), Fe(), N(Ie()));
|
|
728
728
|
var t = this.#n.onerror;
|
|
729
729
|
let n = this.#n.failed;
|
|
730
730
|
var r = !1, i = !1;
|
|
731
731
|
let a = () => {
|
|
732
732
|
if (r) {
|
|
733
|
-
|
|
733
|
+
je();
|
|
734
734
|
return;
|
|
735
735
|
}
|
|
736
|
-
r = !0, i &&
|
|
736
|
+
r = !0, i && Oe(), this.#s !== null && Nn(this.#s, () => {
|
|
737
737
|
this.#s = null;
|
|
738
738
|
}), this.#x(() => {
|
|
739
739
|
this.#y();
|
|
@@ -742,126 +742,126 @@ var At = class {
|
|
|
742
742
|
try {
|
|
743
743
|
i = !0, t?.(e, a), i = !1;
|
|
744
744
|
} catch (e) {
|
|
745
|
-
|
|
745
|
+
Qe(e, this.#i && this.#i.parent);
|
|
746
746
|
}
|
|
747
747
|
n && (this.#s = this.#x(() => {
|
|
748
748
|
try {
|
|
749
|
-
return
|
|
750
|
-
var t =
|
|
749
|
+
return U(() => {
|
|
750
|
+
var t = J;
|
|
751
751
|
t.b = this, t.f |= 128, n(this.#e, () => e, () => a);
|
|
752
752
|
});
|
|
753
753
|
} catch (e) {
|
|
754
|
-
return
|
|
754
|
+
return Qe(e, this.#i.parent), null;
|
|
755
755
|
}
|
|
756
756
|
}));
|
|
757
757
|
};
|
|
758
|
-
|
|
758
|
+
Ye(() => {
|
|
759
759
|
var t;
|
|
760
760
|
try {
|
|
761
761
|
t = this.transform_error(e);
|
|
762
762
|
} catch (e) {
|
|
763
|
-
|
|
763
|
+
Qe(e, this.#i && this.#i.parent);
|
|
764
764
|
return;
|
|
765
765
|
}
|
|
766
|
-
typeof t == "object" && t && typeof t.then == "function" ? t.then(o, (e) =>
|
|
766
|
+
typeof t == "object" && t && typeof t.then == "function" ? t.then(o, (e) => Qe(e, this.#i && this.#i.parent)) : o(t);
|
|
767
767
|
});
|
|
768
768
|
}
|
|
769
769
|
};
|
|
770
770
|
//#endregion
|
|
771
771
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/async.js
|
|
772
|
-
function
|
|
773
|
-
let i =
|
|
772
|
+
function kt(e, t, n, r) {
|
|
773
|
+
let i = Ke() ? Nt : Lt;
|
|
774
774
|
var a = e.filter((e) => !e.settled);
|
|
775
775
|
if (n.length === 0 && a.length === 0) {
|
|
776
776
|
r(t.map(i));
|
|
777
777
|
return;
|
|
778
778
|
}
|
|
779
|
-
var o =
|
|
779
|
+
var o = J, s = At(), c = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
|
|
780
780
|
function l(e) {
|
|
781
781
|
if (!(o.f & 16384)) {
|
|
782
782
|
s();
|
|
783
783
|
try {
|
|
784
784
|
r(e);
|
|
785
785
|
} catch (e) {
|
|
786
|
-
|
|
786
|
+
Qe(e, o);
|
|
787
787
|
}
|
|
788
|
-
|
|
788
|
+
jt();
|
|
789
789
|
}
|
|
790
790
|
}
|
|
791
|
-
var u =
|
|
791
|
+
var u = Mt();
|
|
792
792
|
if (n.length === 0) {
|
|
793
793
|
c.then(() => l(t.map(i))).finally(u);
|
|
794
794
|
return;
|
|
795
795
|
}
|
|
796
796
|
function d() {
|
|
797
|
-
Promise.all(n.map((e) => /* @__PURE__ */
|
|
797
|
+
Promise.all(n.map((e) => /* @__PURE__ */ Ft(e))).then((e) => l([...t.map(i), ...e])).catch((e) => Qe(e, o)).finally(u);
|
|
798
798
|
}
|
|
799
799
|
c ? c.then(() => {
|
|
800
|
-
s(), d(),
|
|
800
|
+
s(), d(), jt();
|
|
801
801
|
}) : d();
|
|
802
802
|
}
|
|
803
|
-
function
|
|
804
|
-
var e =
|
|
803
|
+
function At() {
|
|
804
|
+
var e = J, t = G, n = P, r = I;
|
|
805
805
|
return function(i = !0) {
|
|
806
|
-
|
|
806
|
+
Hn(e), q(t), Ue(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
|
|
807
807
|
};
|
|
808
808
|
}
|
|
809
|
-
function
|
|
810
|
-
|
|
809
|
+
function jt(e = !0) {
|
|
810
|
+
Hn(null), q(null), Ue(null), e && I?.deactivate();
|
|
811
811
|
}
|
|
812
|
-
function
|
|
813
|
-
var e =
|
|
812
|
+
function Mt() {
|
|
813
|
+
var e = J, t = e.b, n = I, r = !!t?.is_rendered();
|
|
814
814
|
return t?.update_pending_count(1, n), n.increment(r, e), () => {
|
|
815
815
|
t?.update_pending_count(-1, n), n.decrement(r, e);
|
|
816
816
|
};
|
|
817
817
|
}
|
|
818
818
|
/* @__NO_SIDE_EFFECTS__ */
|
|
819
|
-
function
|
|
819
|
+
function Nt(e) {
|
|
820
820
|
var t = 2 | w;
|
|
821
|
-
return
|
|
822
|
-
ctx:
|
|
821
|
+
return J !== null && (J.f |= O), {
|
|
822
|
+
ctx: P,
|
|
823
823
|
deps: null,
|
|
824
824
|
effects: null,
|
|
825
|
-
equals:
|
|
825
|
+
equals: Re,
|
|
826
826
|
f: t,
|
|
827
827
|
fn: e,
|
|
828
828
|
reactions: null,
|
|
829
829
|
rv: 0,
|
|
830
830
|
v: s,
|
|
831
831
|
wv: 0,
|
|
832
|
-
parent:
|
|
832
|
+
parent: J,
|
|
833
833
|
ac: null
|
|
834
834
|
};
|
|
835
835
|
}
|
|
836
|
-
var
|
|
836
|
+
var Pt = Symbol("obsolete");
|
|
837
837
|
/* @__NO_SIDE_EFFECTS__ */
|
|
838
|
-
function
|
|
839
|
-
let r =
|
|
840
|
-
r === null &&
|
|
841
|
-
var i = void 0, a =
|
|
842
|
-
return
|
|
843
|
-
var t =
|
|
838
|
+
function Ft(e, t, n) {
|
|
839
|
+
let r = J;
|
|
840
|
+
r === null && _e();
|
|
841
|
+
var i = void 0, a = Kt(s), o = !G, c = /* @__PURE__ */ new Set();
|
|
842
|
+
return wn(() => {
|
|
843
|
+
var t = J, n = ee();
|
|
844
844
|
i = n.promise;
|
|
845
845
|
try {
|
|
846
846
|
Promise.resolve(e()).then(n.resolve, (e) => {
|
|
847
|
-
e !==
|
|
848
|
-
}).finally(
|
|
847
|
+
e !== he && n.reject(e);
|
|
848
|
+
}).finally(jt);
|
|
849
849
|
} catch (e) {
|
|
850
|
-
n.reject(e),
|
|
850
|
+
n.reject(e), jt();
|
|
851
851
|
}
|
|
852
|
-
var s =
|
|
852
|
+
var s = I;
|
|
853
853
|
if (o) {
|
|
854
|
-
if (t.f & 32768) var l =
|
|
855
|
-
if (r.b?.is_rendered()) s.async_deriveds.get(t)?.reject(
|
|
856
|
-
else for (let e of c.values()) e.reject(
|
|
854
|
+
if (t.f & 32768) var l = Mt();
|
|
855
|
+
if (r.b?.is_rendered()) s.async_deriveds.get(t)?.reject(Pt);
|
|
856
|
+
else for (let e of c.values()) e.reject(Pt);
|
|
857
857
|
c.add(n), s.async_deriveds.set(t, n);
|
|
858
858
|
}
|
|
859
859
|
let u = (e, t = void 0) => {
|
|
860
|
-
l?.(), c.delete(n), t !==
|
|
860
|
+
l?.(), c.delete(n), t !== Pt && (s.activate(), t ? (a.f |= A, Jt(a, t)) : (a.f & 8388608 && (a.f ^= A), Jt(a, e)), s.deactivate());
|
|
861
861
|
};
|
|
862
862
|
n.promise.then(u, (e) => u(null, e || "unknown"));
|
|
863
|
-
}),
|
|
864
|
-
for (let e of c) e.reject(
|
|
863
|
+
}), vn(() => {
|
|
864
|
+
for (let e of c) e.reject(Pt);
|
|
865
865
|
}), new Promise((e) => {
|
|
866
866
|
function t(n) {
|
|
867
867
|
function r() {
|
|
@@ -873,154 +873,154 @@ function Lt(e, t, n) {
|
|
|
873
873
|
});
|
|
874
874
|
}
|
|
875
875
|
/* @__NO_SIDE_EFFECTS__ */
|
|
876
|
-
function
|
|
877
|
-
let t = /* @__PURE__ */
|
|
878
|
-
return
|
|
876
|
+
function It(e) {
|
|
877
|
+
let t = /* @__PURE__ */ Nt(e);
|
|
878
|
+
return Ve || Wn(t), t;
|
|
879
879
|
}
|
|
880
880
|
/* @__NO_SIDE_EFFECTS__ */
|
|
881
|
-
function
|
|
882
|
-
let t = /* @__PURE__ */
|
|
883
|
-
return t.equals =
|
|
881
|
+
function Lt(e) {
|
|
882
|
+
let t = /* @__PURE__ */ Nt(e);
|
|
883
|
+
return t.equals = Be, t;
|
|
884
884
|
}
|
|
885
|
-
function
|
|
885
|
+
function Rt(e) {
|
|
886
886
|
var t = e.effects;
|
|
887
887
|
if (t !== null) {
|
|
888
888
|
e.effects = null;
|
|
889
|
-
for (var n = 0; n < t.length; n += 1)
|
|
889
|
+
for (var n = 0; n < t.length; n += 1) W(t[n]);
|
|
890
890
|
}
|
|
891
891
|
}
|
|
892
|
-
function
|
|
893
|
-
var t, n =
|
|
894
|
-
if (!
|
|
895
|
-
|
|
892
|
+
function zt(e) {
|
|
893
|
+
var t, n = J, r = e.parent;
|
|
894
|
+
if (!Bn && r !== null && e.v !== s && r.f & 24576) return ke(), e.v;
|
|
895
|
+
Hn(r);
|
|
896
896
|
try {
|
|
897
|
-
e.f &= ~
|
|
897
|
+
e.f &= ~ae, Rt(e), t = $n(e);
|
|
898
898
|
} finally {
|
|
899
|
-
|
|
899
|
+
Hn(n);
|
|
900
900
|
}
|
|
901
901
|
return t;
|
|
902
902
|
}
|
|
903
|
-
function
|
|
904
|
-
var t =
|
|
905
|
-
if (!e.equals(t) && (e.wv =
|
|
906
|
-
|
|
903
|
+
function Bt(e) {
|
|
904
|
+
var t = zt(e);
|
|
905
|
+
if (!e.equals(t) && (e.wv = Xn(), (!I?.is_fork || e.deps === null) && (I === null ? e.v = t : (I.capture(e, t, !0), ct?.capture(e, t, !0)), e.deps === null))) {
|
|
906
|
+
F(e, C);
|
|
907
907
|
return;
|
|
908
908
|
}
|
|
909
|
-
|
|
909
|
+
Bn || (L === null ? et(e) : (_n() || I?.is_fork) && L.set(e, t));
|
|
910
910
|
}
|
|
911
|
-
function
|
|
912
|
-
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(
|
|
911
|
+
function Vt(e) {
|
|
912
|
+
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(he), t.fn !== null && (t.teardown = x), t.ac = null, tr(t, 0), kn(t));
|
|
913
913
|
}
|
|
914
|
-
function
|
|
915
|
-
if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null &&
|
|
914
|
+
function Ht(e) {
|
|
915
|
+
if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && nr(t);
|
|
916
916
|
}
|
|
917
917
|
//#endregion
|
|
918
918
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/sources.js
|
|
919
|
-
var
|
|
920
|
-
function
|
|
919
|
+
var Ut = /* @__PURE__ */ new Set(), Wt = /* @__PURE__ */ new Map(), Gt = !1;
|
|
920
|
+
function Kt(e, t) {
|
|
921
921
|
return {
|
|
922
922
|
f: 0,
|
|
923
923
|
v: e,
|
|
924
924
|
reactions: null,
|
|
925
|
-
equals:
|
|
925
|
+
equals: Re,
|
|
926
926
|
rv: 0,
|
|
927
927
|
wv: 0
|
|
928
928
|
};
|
|
929
929
|
}
|
|
930
930
|
/* @__NO_SIDE_EFFECTS__ */
|
|
931
|
-
function
|
|
932
|
-
let n =
|
|
933
|
-
return
|
|
931
|
+
function z(e, t) {
|
|
932
|
+
let n = Kt(e, t);
|
|
933
|
+
return Wn(n), n;
|
|
934
934
|
}
|
|
935
935
|
/* @__NO_SIDE_EFFECTS__ */
|
|
936
|
-
function
|
|
937
|
-
let r =
|
|
938
|
-
return t || (r.equals =
|
|
936
|
+
function qt(e, t = !1, n = !0) {
|
|
937
|
+
let r = Kt(e);
|
|
938
|
+
return t || (r.equals = Be), He && n && P !== null && P.l !== null && (P.l.s ??= []).push(r), r;
|
|
939
939
|
}
|
|
940
|
-
function
|
|
941
|
-
return
|
|
940
|
+
function B(e, t, n = !1) {
|
|
941
|
+
return G !== null && (!K || G.f & 131072) && Ke() && G.f & 4325394 && (Un === null || !Un.has(e)) && De(), Jt(e, n ? Qt(t) : t, pt);
|
|
942
942
|
}
|
|
943
|
-
function
|
|
943
|
+
function Jt(e, t, n = null) {
|
|
944
944
|
if (!e.equals(t)) {
|
|
945
|
-
|
|
946
|
-
var r =
|
|
945
|
+
Wt.set(e, Bn ? t : e.v);
|
|
946
|
+
var r = gt.ensure();
|
|
947
947
|
if (r.capture(e, t), e.f & 2) {
|
|
948
948
|
let t = e;
|
|
949
|
-
e.f & 2048 &&
|
|
949
|
+
e.f & 2048 && zt(t), L === null && et(t);
|
|
950
950
|
}
|
|
951
|
-
e.wv =
|
|
951
|
+
e.wv = Xn(), Zt(e, w, n), Ke() && J !== null && J.f & 1024 && !(J.f & 96) && (Z === null ? Gn([e]) : Z.push(e)), !r.is_fork && Ut.size > 0 && !Gt && Yt();
|
|
952
952
|
}
|
|
953
953
|
return t;
|
|
954
954
|
}
|
|
955
|
-
function
|
|
956
|
-
|
|
957
|
-
for (let e of
|
|
958
|
-
e.f & 1024 &&
|
|
955
|
+
function Yt() {
|
|
956
|
+
Gt = !1;
|
|
957
|
+
for (let e of Ut) {
|
|
958
|
+
e.f & 1024 && F(e, T);
|
|
959
959
|
let t;
|
|
960
960
|
try {
|
|
961
|
-
t =
|
|
961
|
+
t = Zn(e);
|
|
962
962
|
} catch {
|
|
963
963
|
t = !0;
|
|
964
964
|
}
|
|
965
|
-
t &&
|
|
965
|
+
t && nr(e);
|
|
966
966
|
}
|
|
967
|
-
|
|
967
|
+
Ut.clear();
|
|
968
968
|
}
|
|
969
|
-
function
|
|
970
|
-
|
|
969
|
+
function Xt(e) {
|
|
970
|
+
B(e, e.v + 1);
|
|
971
971
|
}
|
|
972
|
-
function
|
|
972
|
+
function Zt(e, t, n) {
|
|
973
973
|
var r = e.reactions;
|
|
974
|
-
if (r !== null) for (var i =
|
|
974
|
+
if (r !== null) for (var i = Ke(), a = r.length, o = 0; o < a; o++) {
|
|
975
975
|
var s = r[o], c = s.f;
|
|
976
|
-
if (!(!i && s ===
|
|
976
|
+
if (!(!i && s === J)) {
|
|
977
977
|
var l = (c & w) === 0;
|
|
978
|
-
if (l &&
|
|
978
|
+
if (l && F(s, t), c & 131072) Ut.add(s);
|
|
979
979
|
else if (c & 2) {
|
|
980
980
|
var u = s;
|
|
981
|
-
|
|
981
|
+
L?.delete(u), c & 65536 || (c & 512 && (J === null || !(J.f & 2097152)) && (s.f |= ae), Zt(u, T, n));
|
|
982
982
|
} else if (l) {
|
|
983
983
|
var d = s;
|
|
984
|
-
c & 16 &&
|
|
984
|
+
c & 16 && R !== null && R.add(d), n === null ? St(d) : n.push(d);
|
|
985
985
|
}
|
|
986
986
|
}
|
|
987
987
|
}
|
|
988
988
|
}
|
|
989
|
-
function
|
|
990
|
-
if (typeof e != "object" || !e ||
|
|
989
|
+
function Qt(e) {
|
|
990
|
+
if (typeof e != "object" || !e || ce in e) return e;
|
|
991
991
|
let t = y(e);
|
|
992
992
|
if (t !== _ && t !== v) return e;
|
|
993
|
-
var n = /* @__PURE__ */ new Map(), r = l(e), i = /* @__PURE__ */
|
|
994
|
-
if (
|
|
995
|
-
var t =
|
|
996
|
-
|
|
993
|
+
var n = /* @__PURE__ */ new Map(), r = l(e), i = /* @__PURE__ */ z(0), a = null, o = Jn, c = (e) => {
|
|
994
|
+
if (Jn === o) return e();
|
|
995
|
+
var t = G, n = Jn;
|
|
996
|
+
q(null), Yn(o);
|
|
997
997
|
var r = e();
|
|
998
|
-
return
|
|
998
|
+
return q(t), Yn(n), r;
|
|
999
999
|
};
|
|
1000
|
-
return r && n.set("length", /* @__PURE__ */
|
|
1000
|
+
return r && n.set("length", /* @__PURE__ */ z(e.length, a)), new Proxy(e, {
|
|
1001
1001
|
defineProperty(e, t, r) {
|
|
1002
|
-
(!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) &&
|
|
1002
|
+
(!("value" in r) || r.configurable === !1 || r.enumerable === !1 || r.writable === !1) && Te();
|
|
1003
1003
|
var i = n.get(t);
|
|
1004
1004
|
return i === void 0 ? c(() => {
|
|
1005
|
-
var e = /* @__PURE__ */
|
|
1005
|
+
var e = /* @__PURE__ */ z(r.value, a);
|
|
1006
1006
|
return n.set(t, e), e;
|
|
1007
|
-
}) :
|
|
1007
|
+
}) : B(i, r.value, !0), !0;
|
|
1008
1008
|
},
|
|
1009
1009
|
deleteProperty(e, t) {
|
|
1010
1010
|
var r = n.get(t);
|
|
1011
1011
|
if (r === void 0) {
|
|
1012
1012
|
if (t in e) {
|
|
1013
|
-
let e = c(() => /* @__PURE__ */
|
|
1014
|
-
n.set(t, e),
|
|
1013
|
+
let e = c(() => /* @__PURE__ */ z(s, a));
|
|
1014
|
+
n.set(t, e), Xt(i);
|
|
1015
1015
|
}
|
|
1016
|
-
} else
|
|
1016
|
+
} else B(r, s), Xt(i);
|
|
1017
1017
|
return !0;
|
|
1018
1018
|
},
|
|
1019
1019
|
get(t, r, i) {
|
|
1020
|
-
if (r ===
|
|
1020
|
+
if (r === ce) return e;
|
|
1021
1021
|
var o = n.get(r), l = r in t;
|
|
1022
|
-
if (o === void 0 && (!l || h(t, r)?.writable) && (o = c(() => /* @__PURE__ */
|
|
1023
|
-
var u =
|
|
1022
|
+
if (o === void 0 && (!l || h(t, r)?.writable) && (o = c(() => /* @__PURE__ */ z(Qt(l ? t[r] : s), a)), n.set(r, o)), o !== void 0) {
|
|
1023
|
+
var u = Q(o);
|
|
1024
1024
|
return u === s ? void 0 : u;
|
|
1025
1025
|
}
|
|
1026
1026
|
return Reflect.get(t, r, i);
|
|
@@ -1029,7 +1029,7 @@ function en(e) {
|
|
|
1029
1029
|
var r = Reflect.getOwnPropertyDescriptor(e, t);
|
|
1030
1030
|
if (r && "value" in r) {
|
|
1031
1031
|
var i = n.get(t);
|
|
1032
|
-
i && (r.value =
|
|
1032
|
+
i && (r.value = Q(i));
|
|
1033
1033
|
} else if (r === void 0) {
|
|
1034
1034
|
var a = n.get(t), o = a?.v;
|
|
1035
1035
|
if (a !== void 0 && o !== s) return {
|
|
@@ -1042,34 +1042,34 @@ function en(e) {
|
|
|
1042
1042
|
return r;
|
|
1043
1043
|
},
|
|
1044
1044
|
has(e, t) {
|
|
1045
|
-
if (t ===
|
|
1045
|
+
if (t === ce) return !0;
|
|
1046
1046
|
var r = n.get(t), i = r !== void 0 && r.v !== s || Reflect.has(e, t);
|
|
1047
|
-
return (r !== void 0 ||
|
|
1047
|
+
return (r !== void 0 || J !== null && (!i || h(e, t)?.writable)) && (r === void 0 && (r = c(() => /* @__PURE__ */ z(i ? Qt(e[t]) : s, a)), n.set(t, r)), Q(r) === s) ? !1 : i;
|
|
1048
1048
|
},
|
|
1049
1049
|
set(e, t, o, l) {
|
|
1050
1050
|
var u = n.get(t), d = t in e;
|
|
1051
1051
|
if (r && t === "length") for (var f = o; f < u.v; f += 1) {
|
|
1052
1052
|
var p = n.get(f + "");
|
|
1053
|
-
p === void 0 ? f in e && (p = c(() => /* @__PURE__ */
|
|
1053
|
+
p === void 0 ? f in e && (p = c(() => /* @__PURE__ */ z(s, a)), n.set(f + "", p)) : B(p, s);
|
|
1054
1054
|
}
|
|
1055
|
-
if (u === void 0) (!d || h(e, t)?.writable) && (u = c(() => /* @__PURE__ */
|
|
1055
|
+
if (u === void 0) (!d || h(e, t)?.writable) && (u = c(() => /* @__PURE__ */ z(void 0, a)), B(u, Qt(o)), n.set(t, u));
|
|
1056
1056
|
else {
|
|
1057
1057
|
d = u.v !== s;
|
|
1058
|
-
var m = c(() =>
|
|
1059
|
-
|
|
1058
|
+
var m = c(() => Qt(o));
|
|
1059
|
+
B(u, m);
|
|
1060
1060
|
}
|
|
1061
1061
|
var g = Reflect.getOwnPropertyDescriptor(e, t);
|
|
1062
1062
|
if (g?.set && g.set.call(l, o), !d) {
|
|
1063
1063
|
if (r && typeof t == "string") {
|
|
1064
1064
|
var _ = n.get("length"), v = Number(t);
|
|
1065
|
-
Number.isInteger(v) && v >= _.v &&
|
|
1065
|
+
Number.isInteger(v) && v >= _.v && B(_, v + 1);
|
|
1066
1066
|
}
|
|
1067
|
-
|
|
1067
|
+
Xt(i);
|
|
1068
1068
|
}
|
|
1069
1069
|
return !0;
|
|
1070
1070
|
},
|
|
1071
1071
|
ownKeys(e) {
|
|
1072
|
-
|
|
1072
|
+
Q(i);
|
|
1073
1073
|
var t = Reflect.ownKeys(e).filter((e) => {
|
|
1074
1074
|
var t = n.get(e);
|
|
1075
1075
|
return t === void 0 || t.v !== s;
|
|
@@ -1078,7 +1078,7 @@ function en(e) {
|
|
|
1078
1078
|
return t;
|
|
1079
1079
|
},
|
|
1080
1080
|
setPrototypeOf() {
|
|
1081
|
-
|
|
1081
|
+
Ee();
|
|
1082
1082
|
}
|
|
1083
1083
|
});
|
|
1084
1084
|
}
|
|
@@ -1093,101 +1093,101 @@ new Set([
|
|
|
1093
1093
|
"splice",
|
|
1094
1094
|
"unshift"
|
|
1095
1095
|
]);
|
|
1096
|
-
var
|
|
1097
|
-
function
|
|
1098
|
-
if (
|
|
1099
|
-
|
|
1096
|
+
var $t, en, tn, nn;
|
|
1097
|
+
function rn() {
|
|
1098
|
+
if ($t === void 0) {
|
|
1099
|
+
$t = window, en = /Firefox/.test(navigator.userAgent);
|
|
1100
1100
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
1101
|
-
|
|
1101
|
+
tn = h(t, "firstChild").get, nn = h(t, "nextSibling").get, b(e) && (e[fe] = void 0, e[de] = null, e[pe] = void 0, e.__e = void 0), b(n) && (n[me] = void 0);
|
|
1102
1102
|
}
|
|
1103
1103
|
}
|
|
1104
|
-
function
|
|
1104
|
+
function V(e = "") {
|
|
1105
1105
|
return document.createTextNode(e);
|
|
1106
1106
|
}
|
|
1107
1107
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1108
|
-
function
|
|
1109
|
-
return
|
|
1108
|
+
function H(e) {
|
|
1109
|
+
return tn.call(e);
|
|
1110
1110
|
}
|
|
1111
1111
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1112
|
-
function
|
|
1113
|
-
return
|
|
1112
|
+
function an(e) {
|
|
1113
|
+
return nn.call(e);
|
|
1114
1114
|
}
|
|
1115
|
-
function
|
|
1116
|
-
if (!
|
|
1117
|
-
var n = /* @__PURE__ */
|
|
1118
|
-
if (n === null) n =
|
|
1115
|
+
function on(e, t) {
|
|
1116
|
+
if (!j) return /* @__PURE__ */ H(e);
|
|
1117
|
+
var n = /* @__PURE__ */ H(M);
|
|
1118
|
+
if (n === null) n = M.appendChild(V());
|
|
1119
1119
|
else if (t && n.nodeType !== 3) {
|
|
1120
|
-
var r =
|
|
1121
|
-
return n?.before(r),
|
|
1120
|
+
var r = V();
|
|
1121
|
+
return n?.before(r), N(r), r;
|
|
1122
1122
|
}
|
|
1123
|
-
return t &&
|
|
1123
|
+
return t && fn(n), N(n), n;
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1126
|
-
if (!
|
|
1127
|
-
var n = /* @__PURE__ */
|
|
1128
|
-
return n instanceof Comment && n.data === "" ? /* @__PURE__ */
|
|
1125
|
+
function sn(e, t = !1) {
|
|
1126
|
+
if (!j) {
|
|
1127
|
+
var n = /* @__PURE__ */ H(e);
|
|
1128
|
+
return n instanceof Comment && n.data === "" ? /* @__PURE__ */ an(n) : n;
|
|
1129
1129
|
}
|
|
1130
1130
|
if (t) {
|
|
1131
|
-
if (
|
|
1132
|
-
var r =
|
|
1133
|
-
return
|
|
1131
|
+
if (M?.nodeType !== 3) {
|
|
1132
|
+
var r = V();
|
|
1133
|
+
return M?.before(r), N(r), r;
|
|
1134
1134
|
}
|
|
1135
|
-
|
|
1135
|
+
fn(M);
|
|
1136
1136
|
}
|
|
1137
|
-
return
|
|
1137
|
+
return M;
|
|
1138
1138
|
}
|
|
1139
|
-
function
|
|
1140
|
-
let r =
|
|
1141
|
-
for (var i; t--;) i = r, r = /* @__PURE__ */
|
|
1142
|
-
if (!
|
|
1139
|
+
function cn(e, t = 1, n = !1) {
|
|
1140
|
+
let r = j ? M : e;
|
|
1141
|
+
for (var i; t--;) i = r, r = /* @__PURE__ */ an(r);
|
|
1142
|
+
if (!j) return r;
|
|
1143
1143
|
if (n) {
|
|
1144
1144
|
if (r?.nodeType !== 3) {
|
|
1145
|
-
var a =
|
|
1146
|
-
return r === null ? i?.after(a) : r.before(a),
|
|
1145
|
+
var a = V();
|
|
1146
|
+
return r === null ? i?.after(a) : r.before(a), N(a), a;
|
|
1147
1147
|
}
|
|
1148
|
-
|
|
1148
|
+
fn(r);
|
|
1149
1149
|
}
|
|
1150
|
-
return
|
|
1150
|
+
return N(r), r;
|
|
1151
1151
|
}
|
|
1152
|
-
function
|
|
1152
|
+
function ln(e) {
|
|
1153
1153
|
e.textContent = "";
|
|
1154
1154
|
}
|
|
1155
|
-
function
|
|
1156
|
-
return !
|
|
1155
|
+
function un() {
|
|
1156
|
+
return !Ve || R !== null ? !1 : (J.f & D) !== 0;
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1158
|
+
function dn(e, t, n) {
|
|
1159
1159
|
return t == null || t === "http://www.w3.org/1999/xhtml" ? n ? document.createElement(e, { is: n }) : document.createElement(e) : n ? document.createElementNS(t, e, { is: n }) : document.createElementNS(t, e);
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function fn(e) {
|
|
1162
1162
|
if (e.nodeValue.length < 65536) return;
|
|
1163
1163
|
let t = e.nextSibling;
|
|
1164
1164
|
for (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1165
1165
|
}
|
|
1166
1166
|
//#endregion
|
|
1167
1167
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
|
|
1168
|
-
function
|
|
1169
|
-
var t =
|
|
1170
|
-
|
|
1168
|
+
function pn(e) {
|
|
1169
|
+
var t = G, n = J;
|
|
1170
|
+
q(null), Hn(null);
|
|
1171
1171
|
try {
|
|
1172
1172
|
return e();
|
|
1173
1173
|
} finally {
|
|
1174
|
-
|
|
1174
|
+
q(t), Hn(n);
|
|
1175
1175
|
}
|
|
1176
1176
|
}
|
|
1177
1177
|
//#endregion
|
|
1178
1178
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/effects.js
|
|
1179
|
-
function
|
|
1180
|
-
|
|
1179
|
+
function mn(e) {
|
|
1180
|
+
J === null && (G === null && xe(e), be()), Bn && ye(e);
|
|
1181
1181
|
}
|
|
1182
|
-
function
|
|
1182
|
+
function hn(e, t) {
|
|
1183
1183
|
var n = t.last;
|
|
1184
1184
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1187
|
-
var n =
|
|
1186
|
+
function gn(e, t) {
|
|
1187
|
+
var n = J;
|
|
1188
1188
|
n !== null && n.f & 8192 && (e |= E);
|
|
1189
1189
|
var r = {
|
|
1190
|
-
ctx:
|
|
1190
|
+
ctx: P,
|
|
1191
1191
|
deps: null,
|
|
1192
1192
|
nodes: null,
|
|
1193
1193
|
f: e | w | 512,
|
|
@@ -1202,137 +1202,137 @@ function _n(e, t) {
|
|
|
1202
1202
|
wv: 0,
|
|
1203
1203
|
ac: null
|
|
1204
1204
|
};
|
|
1205
|
-
|
|
1205
|
+
I?.register_created_effect(r);
|
|
1206
1206
|
var i = r;
|
|
1207
|
-
if (e & 4)
|
|
1207
|
+
if (e & 4) ft === null ? gt.ensure().schedule(r) : ft.push(r);
|
|
1208
1208
|
else if (t !== null) {
|
|
1209
1209
|
try {
|
|
1210
|
-
|
|
1210
|
+
nr(r);
|
|
1211
1211
|
} catch (e) {
|
|
1212
|
-
throw
|
|
1212
|
+
throw W(r), e;
|
|
1213
1213
|
}
|
|
1214
1214
|
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= re));
|
|
1215
1215
|
}
|
|
1216
|
-
if (i !== null && (i.parent = n, n !== null &&
|
|
1217
|
-
var a =
|
|
1216
|
+
if (i !== null && (i.parent = n, n !== null && hn(i, n), G !== null && G.f & 2 && !(e & 64))) {
|
|
1217
|
+
var a = G;
|
|
1218
1218
|
(a.effects ??= []).push(i);
|
|
1219
1219
|
}
|
|
1220
1220
|
return r;
|
|
1221
1221
|
}
|
|
1222
|
-
function
|
|
1223
|
-
return
|
|
1222
|
+
function _n() {
|
|
1223
|
+
return G !== null && !K;
|
|
1224
|
+
}
|
|
1225
|
+
function vn(e) {
|
|
1226
|
+
let t = gn(8, null);
|
|
1227
|
+
return F(t, C), t.teardown = e, t;
|
|
1224
1228
|
}
|
|
1225
1229
|
function yn(e) {
|
|
1226
|
-
|
|
1227
|
-
|
|
1230
|
+
mn("$effect");
|
|
1231
|
+
var t = J.f;
|
|
1232
|
+
if (!G && t & 32 && P !== null && !P.i) {
|
|
1233
|
+
var n = P;
|
|
1234
|
+
(n.e ??= []).push(e);
|
|
1235
|
+
} else return bn(e);
|
|
1228
1236
|
}
|
|
1229
1237
|
function bn(e) {
|
|
1230
|
-
|
|
1231
|
-
var t = q.f;
|
|
1232
|
-
if (!W && t & 32 && M !== null && !M.i) {
|
|
1233
|
-
var n = M;
|
|
1234
|
-
(n.e ??= []).push(e);
|
|
1235
|
-
} else return xn(e);
|
|
1238
|
+
return gn(4 | ie, e);
|
|
1236
1239
|
}
|
|
1237
1240
|
function xn(e) {
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
function Sn(e) {
|
|
1241
|
-
vt.ensure();
|
|
1242
|
-
let t = _n(64 | O, e);
|
|
1241
|
+
gt.ensure();
|
|
1242
|
+
let t = gn(64 | O, e);
|
|
1243
1243
|
return () => {
|
|
1244
|
-
|
|
1244
|
+
W(t);
|
|
1245
1245
|
};
|
|
1246
1246
|
}
|
|
1247
|
-
function
|
|
1248
|
-
|
|
1249
|
-
let t =
|
|
1247
|
+
function Sn(e) {
|
|
1248
|
+
gt.ensure();
|
|
1249
|
+
let t = gn(64 | O, e);
|
|
1250
1250
|
return (e = {}) => new Promise((n) => {
|
|
1251
|
-
e.outro ?
|
|
1252
|
-
|
|
1253
|
-
}) : (
|
|
1251
|
+
e.outro ? Nn(t, () => {
|
|
1252
|
+
W(t), n(void 0);
|
|
1253
|
+
}) : (W(t), n(void 0));
|
|
1254
1254
|
});
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1257
|
-
return
|
|
1256
|
+
function Cn(e) {
|
|
1257
|
+
return gn(4, e);
|
|
1258
1258
|
}
|
|
1259
|
-
function
|
|
1260
|
-
return
|
|
1259
|
+
function wn(e) {
|
|
1260
|
+
return gn(se | O, e);
|
|
1261
1261
|
}
|
|
1262
|
-
function
|
|
1263
|
-
return
|
|
1262
|
+
function Tn(e, t = 0) {
|
|
1263
|
+
return gn(8 | t, e);
|
|
1264
1264
|
}
|
|
1265
|
-
function
|
|
1266
|
-
|
|
1267
|
-
|
|
1265
|
+
function En(e, t = [], n = [], r = []) {
|
|
1266
|
+
kt(r, t, n, (t) => {
|
|
1267
|
+
gn(8, () => e(...t.map(Q)));
|
|
1268
1268
|
});
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1271
|
-
return
|
|
1270
|
+
function Dn(e, t = 0) {
|
|
1271
|
+
return gn(16 | t, e);
|
|
1272
1272
|
}
|
|
1273
|
-
function
|
|
1274
|
-
return
|
|
1273
|
+
function U(e) {
|
|
1274
|
+
return gn(32 | O, e);
|
|
1275
1275
|
}
|
|
1276
|
-
function
|
|
1276
|
+
function On(e) {
|
|
1277
1277
|
var t = e.teardown;
|
|
1278
1278
|
if (t !== null) {
|
|
1279
|
-
let e =
|
|
1280
|
-
|
|
1279
|
+
let e = Bn, n = G;
|
|
1280
|
+
Vn(!0), q(null);
|
|
1281
1281
|
try {
|
|
1282
1282
|
t.call(null);
|
|
1283
1283
|
} finally {
|
|
1284
|
-
|
|
1284
|
+
Vn(e), q(n);
|
|
1285
1285
|
}
|
|
1286
1286
|
}
|
|
1287
1287
|
}
|
|
1288
|
-
function
|
|
1288
|
+
function kn(e, t = !1) {
|
|
1289
1289
|
var n = e.first;
|
|
1290
1290
|
for (e.first = e.last = null; n !== null;) {
|
|
1291
1291
|
let e = n.ac;
|
|
1292
|
-
e !== null &&
|
|
1293
|
-
e.abort(
|
|
1292
|
+
e !== null && pn(() => {
|
|
1293
|
+
e.abort(he);
|
|
1294
1294
|
});
|
|
1295
1295
|
var r = n.next;
|
|
1296
|
-
n.f & 64 ? n.parent = null :
|
|
1296
|
+
n.f & 64 ? n.parent = null : W(n, t), n = r;
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
|
-
function
|
|
1299
|
+
function An(e) {
|
|
1300
1300
|
for (var t = e.first; t !== null;) {
|
|
1301
1301
|
var n = t.next;
|
|
1302
|
-
t.f & 32 ||
|
|
1302
|
+
t.f & 32 || W(t), t = n;
|
|
1303
1303
|
}
|
|
1304
1304
|
}
|
|
1305
|
-
function
|
|
1305
|
+
function W(e, t = !0) {
|
|
1306
1306
|
var n = !1;
|
|
1307
|
-
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (
|
|
1307
|
+
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (jn(e.nodes.start, e.nodes.end), n = !0), F(e, ne), kn(e, t && !n), tr(e, 0);
|
|
1308
1308
|
var r = e.nodes && e.nodes.t;
|
|
1309
1309
|
if (r !== null) for (let e of r) e.stop();
|
|
1310
|
-
|
|
1310
|
+
On(e), e.f ^= ne, e.f |= te;
|
|
1311
1311
|
var i = e.parent;
|
|
1312
|
-
i !== null && i.first !== null &&
|
|
1312
|
+
i !== null && i.first !== null && Mn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1313
1313
|
}
|
|
1314
|
-
function
|
|
1314
|
+
function jn(e, t) {
|
|
1315
1315
|
for (; e !== null;) {
|
|
1316
|
-
var n = e === t ? null : /* @__PURE__ */
|
|
1316
|
+
var n = e === t ? null : /* @__PURE__ */ an(e);
|
|
1317
1317
|
e.remove(), e = n;
|
|
1318
1318
|
}
|
|
1319
1319
|
}
|
|
1320
|
-
function
|
|
1320
|
+
function Mn(e) {
|
|
1321
1321
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1322
1322
|
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1323
1323
|
}
|
|
1324
|
-
function
|
|
1324
|
+
function Nn(e, t, n = !0) {
|
|
1325
1325
|
var r = [];
|
|
1326
|
-
|
|
1326
|
+
Pn(e, r, !0);
|
|
1327
1327
|
var i = () => {
|
|
1328
|
-
n &&
|
|
1328
|
+
n && W(e), t && t();
|
|
1329
1329
|
}, a = r.length;
|
|
1330
1330
|
if (a > 0) {
|
|
1331
1331
|
var o = () => --a || i();
|
|
1332
1332
|
for (var s of r) s.out(o);
|
|
1333
1333
|
} else i();
|
|
1334
1334
|
}
|
|
1335
|
-
function
|
|
1335
|
+
function Pn(e, t, n) {
|
|
1336
1336
|
if (!(e.f & 8192)) {
|
|
1337
1337
|
e.f ^= E;
|
|
1338
1338
|
var r = e.nodes && e.nodes.t;
|
|
@@ -1341,110 +1341,110 @@ function Fn(e, t, n) {
|
|
|
1341
1341
|
var a = i.next;
|
|
1342
1342
|
if (!(i.f & 64)) {
|
|
1343
1343
|
var o = (i.f & 65536) != 0 || (i.f & 32) != 0 && (e.f & 16) != 0;
|
|
1344
|
-
|
|
1344
|
+
Pn(i, t, o ? n : !1);
|
|
1345
1345
|
}
|
|
1346
1346
|
i = a;
|
|
1347
1347
|
}
|
|
1348
1348
|
}
|
|
1349
1349
|
}
|
|
1350
|
-
function
|
|
1351
|
-
|
|
1350
|
+
function Fn(e) {
|
|
1351
|
+
In(e, !0);
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function In(e, t) {
|
|
1354
1354
|
if (e.f & 8192) {
|
|
1355
|
-
e.f ^= E, e.f & 1024 || (
|
|
1355
|
+
e.f ^= E, e.f & 1024 || (F(e, w), gt.ensure().schedule(e));
|
|
1356
1356
|
for (var n = e.first; n !== null;) {
|
|
1357
1357
|
var r = n.next, i = (n.f & 65536) != 0 || (n.f & 32) != 0;
|
|
1358
|
-
|
|
1358
|
+
In(n, i ? t : !1), n = r;
|
|
1359
1359
|
}
|
|
1360
1360
|
var a = e.nodes && e.nodes.t;
|
|
1361
1361
|
if (a !== null) for (let e of a) (e.is_global || t) && e.in();
|
|
1362
1362
|
}
|
|
1363
1363
|
}
|
|
1364
|
-
function
|
|
1364
|
+
function Ln(e, t) {
|
|
1365
1365
|
if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
|
|
1366
|
-
var i = n === r ? null : /* @__PURE__ */
|
|
1366
|
+
var i = n === r ? null : /* @__PURE__ */ an(n);
|
|
1367
1367
|
t.append(n), n = i;
|
|
1368
1368
|
}
|
|
1369
1369
|
}
|
|
1370
1370
|
//#endregion
|
|
1371
1371
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/legacy.js
|
|
1372
|
-
var
|
|
1373
|
-
function
|
|
1374
|
-
|
|
1372
|
+
var Rn = null, zn = !1, Bn = !1;
|
|
1373
|
+
function Vn(e) {
|
|
1374
|
+
Bn = e;
|
|
1375
1375
|
}
|
|
1376
|
-
var
|
|
1377
|
-
function
|
|
1378
|
-
|
|
1376
|
+
var G = null, K = !1;
|
|
1377
|
+
function q(e) {
|
|
1378
|
+
G = e;
|
|
1379
1379
|
}
|
|
1380
|
-
var
|
|
1381
|
-
function
|
|
1382
|
-
|
|
1380
|
+
var J = null;
|
|
1381
|
+
function Hn(e) {
|
|
1382
|
+
J = e;
|
|
1383
1383
|
}
|
|
1384
|
-
var
|
|
1385
|
-
function
|
|
1386
|
-
|
|
1384
|
+
var Un = null;
|
|
1385
|
+
function Wn(e) {
|
|
1386
|
+
G !== null && (!Ve || G.f & 2) && (Un ??= /* @__PURE__ */ new Set()).add(e);
|
|
1387
1387
|
}
|
|
1388
|
-
var
|
|
1389
|
-
function
|
|
1390
|
-
|
|
1388
|
+
var Y = null, X = 0, Z = null;
|
|
1389
|
+
function Gn(e) {
|
|
1390
|
+
Z = e;
|
|
1391
1391
|
}
|
|
1392
|
-
var
|
|
1393
|
-
function
|
|
1394
|
-
|
|
1392
|
+
var Kn = 1, qn = 0, Jn = qn;
|
|
1393
|
+
function Yn(e) {
|
|
1394
|
+
Jn = e;
|
|
1395
1395
|
}
|
|
1396
|
-
function
|
|
1397
|
-
return ++
|
|
1396
|
+
function Xn() {
|
|
1397
|
+
return ++Kn;
|
|
1398
1398
|
}
|
|
1399
|
-
function
|
|
1399
|
+
function Zn(e) {
|
|
1400
1400
|
var t = e.f;
|
|
1401
1401
|
if (t & 2048) return !0;
|
|
1402
|
-
if (t & 2 && (e.f &= ~
|
|
1402
|
+
if (t & 2 && (e.f &= ~ae), t & 4096) {
|
|
1403
1403
|
for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
|
|
1404
1404
|
var a = n[i];
|
|
1405
|
-
if (
|
|
1405
|
+
if (Zn(a) && Bt(a), a.wv > e.wv) return !0;
|
|
1406
1406
|
}
|
|
1407
|
-
t & 512 &&
|
|
1407
|
+
t & 512 && L === null && F(e, C);
|
|
1408
1408
|
}
|
|
1409
1409
|
return !1;
|
|
1410
1410
|
}
|
|
1411
|
-
function
|
|
1411
|
+
function Qn(e, t, n = !0) {
|
|
1412
1412
|
var r = e.reactions;
|
|
1413
|
-
if (r !== null && !(!
|
|
1413
|
+
if (r !== null && !(!Ve && Un !== null && Un.has(e))) for (var i = 0; i < r.length; i++) {
|
|
1414
1414
|
var a = r[i];
|
|
1415
|
-
a.f & 2 ?
|
|
1415
|
+
a.f & 2 ? Qn(a, t, !1) : t === a && (n ? F(a, w) : a.f & 1024 && F(a, T), St(a));
|
|
1416
1416
|
}
|
|
1417
1417
|
}
|
|
1418
|
-
function
|
|
1419
|
-
var t =
|
|
1420
|
-
|
|
1421
|
-
e.ac.abort(
|
|
1418
|
+
function $n(e) {
|
|
1419
|
+
var t = Y, n = X, r = Z, i = G, a = Un, o = P, s = K, c = Jn, l = e.f;
|
|
1420
|
+
Y = null, X = 0, Z = null, G = l & 96 ? null : e, Un = null, Ue(e.ctx), K = !1, Jn = ++qn, e.ac !== null && (pn(() => {
|
|
1421
|
+
e.ac.abort(he);
|
|
1422
1422
|
}), e.ac = null);
|
|
1423
1423
|
try {
|
|
1424
|
-
e.f |=
|
|
1424
|
+
e.f |= oe;
|
|
1425
1425
|
var u = e.fn, d = u();
|
|
1426
1426
|
e.f |= D;
|
|
1427
|
-
var f = e.deps, p =
|
|
1428
|
-
if (
|
|
1427
|
+
var f = e.deps, p = I?.is_fork;
|
|
1428
|
+
if (Y !== null) {
|
|
1429
1429
|
var m;
|
|
1430
|
-
if (p ||
|
|
1431
|
-
else e.deps = f =
|
|
1432
|
-
if (
|
|
1433
|
-
} else !p && f !== null &&
|
|
1434
|
-
if (
|
|
1430
|
+
if (p || tr(e, X), f !== null && X > 0) for (f.length = X + Y.length, m = 0; m < Y.length; m++) f[X + m] = Y[m];
|
|
1431
|
+
else e.deps = f = Y;
|
|
1432
|
+
if (_n() && e.f & 512) for (m = X; m < f.length; m++) (f[m].reactions ??= []).push(e);
|
|
1433
|
+
} else !p && f !== null && X < f.length && (tr(e, X), f.length = X);
|
|
1434
|
+
if (Ke() && Z !== null && !K && f !== null && !(e.f & 6146)) for (m = 0; m < Z.length; m++) Qn(Z[m], e);
|
|
1435
1435
|
if (i !== null && i !== e) {
|
|
1436
|
-
if (
|
|
1437
|
-
if (t !== null) for (let e of t) e.rv =
|
|
1438
|
-
|
|
1436
|
+
if (qn++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = qn;
|
|
1437
|
+
if (t !== null) for (let e of t) e.rv = qn;
|
|
1438
|
+
Z !== null && (r === null ? r = Z : r.push(...Z));
|
|
1439
1439
|
}
|
|
1440
|
-
return e.f & 8388608 && (e.f ^=
|
|
1440
|
+
return e.f & 8388608 && (e.f ^= A), d;
|
|
1441
1441
|
} catch (e) {
|
|
1442
|
-
return
|
|
1442
|
+
return Ze(e);
|
|
1443
1443
|
} finally {
|
|
1444
|
-
e.f ^=
|
|
1444
|
+
e.f ^= oe, Y = t, X = n, Z = r, G = i, Un = a, Ue(o), K = s, Jn = c;
|
|
1445
1445
|
}
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1447
|
+
function er(e, t) {
|
|
1448
1448
|
let n = t.reactions;
|
|
1449
1449
|
if (n !== null) {
|
|
1450
1450
|
var r = u.call(n, e);
|
|
@@ -1453,108 +1453,108 @@ function tr(e, t) {
|
|
|
1453
1453
|
i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
|
|
1454
1454
|
}
|
|
1455
1455
|
}
|
|
1456
|
-
if (n === null && t.f & 2 && (
|
|
1456
|
+
if (n === null && t.f & 2 && (Y === null || !d.call(Y, t))) {
|
|
1457
1457
|
var a = t;
|
|
1458
|
-
a.f & 512 && (a.f ^= 512, a.f &= ~
|
|
1458
|
+
a.f & 512 && (a.f ^= 512, a.f &= ~ae), a.v !== s && et(a), Vt(a), tr(a, 0);
|
|
1459
1459
|
}
|
|
1460
1460
|
}
|
|
1461
|
-
function
|
|
1461
|
+
function tr(e, t) {
|
|
1462
1462
|
var n = e.deps;
|
|
1463
|
-
if (n !== null) for (var r = t; r < n.length; r++)
|
|
1463
|
+
if (n !== null) for (var r = t; r < n.length; r++) er(e, n[r]);
|
|
1464
1464
|
}
|
|
1465
|
-
function
|
|
1465
|
+
function nr(e) {
|
|
1466
1466
|
var t = e.f;
|
|
1467
1467
|
if (!(t & 16384)) {
|
|
1468
|
-
|
|
1469
|
-
var n =
|
|
1470
|
-
|
|
1468
|
+
F(e, C);
|
|
1469
|
+
var n = J, r = zn;
|
|
1470
|
+
J = e, zn = !0;
|
|
1471
1471
|
try {
|
|
1472
|
-
t & 16777232 ?
|
|
1473
|
-
var i =
|
|
1474
|
-
e.teardown = typeof i == "function" ? i : null, e.wv =
|
|
1472
|
+
t & 16777232 ? An(e) : kn(e), On(e);
|
|
1473
|
+
var i = $n(e);
|
|
1474
|
+
e.teardown = typeof i == "function" ? i : null, e.wv = Kn;
|
|
1475
1475
|
} finally {
|
|
1476
|
-
|
|
1476
|
+
zn = r, J = n;
|
|
1477
1477
|
}
|
|
1478
1478
|
}
|
|
1479
1479
|
}
|
|
1480
|
-
function
|
|
1480
|
+
function Q(e) {
|
|
1481
1481
|
var t = (e.f & 2) != 0;
|
|
1482
|
-
if (
|
|
1483
|
-
var n =
|
|
1484
|
-
if (
|
|
1482
|
+
if (Rn?.add(e), G !== null && !K && !(J !== null && J.f & 16384) && (Un === null || !Un.has(e))) {
|
|
1483
|
+
var n = G.deps;
|
|
1484
|
+
if (G.f & 2097152) e.rv < qn && (e.rv = qn, Y === null && n !== null && n[X] === e ? X++ : Y === null ? Y = [e] : Y.push(e));
|
|
1485
1485
|
else {
|
|
1486
|
-
|
|
1486
|
+
G.deps ??= [], d.call(G.deps, e) || G.deps.push(e);
|
|
1487
1487
|
var r = e.reactions;
|
|
1488
|
-
r === null ? e.reactions = [
|
|
1488
|
+
r === null ? e.reactions = [G] : d.call(r, G) || r.push(G);
|
|
1489
1489
|
}
|
|
1490
1490
|
}
|
|
1491
|
-
if (
|
|
1491
|
+
if (Bn && Wt.has(e)) return Wt.get(e);
|
|
1492
1492
|
if (t) {
|
|
1493
1493
|
var i = e;
|
|
1494
|
-
if (
|
|
1494
|
+
if (Bn) {
|
|
1495
1495
|
var a = i.v;
|
|
1496
|
-
return (!(i.f & 1024) && i.reactions !== null ||
|
|
1496
|
+
return (!(i.f & 1024) && i.reactions !== null || ir(i)) && (a = zt(i)), Wt.set(i, a), a;
|
|
1497
1497
|
}
|
|
1498
|
-
var o = (i.f & 512) == 0 && !
|
|
1499
|
-
|
|
1498
|
+
var o = (i.f & 512) == 0 && !K && G !== null && (zn || (G.f & 512) != 0), s = (i.f & D) === 0;
|
|
1499
|
+
Zn(i) && (o && (i.f |= 512), Bt(i)), o && !s && (Ht(i), rr(i));
|
|
1500
1500
|
}
|
|
1501
|
-
if (
|
|
1501
|
+
if (L?.has(e)) return L.get(e);
|
|
1502
1502
|
if (e.f & 8388608) throw e.v;
|
|
1503
1503
|
return e.v;
|
|
1504
1504
|
}
|
|
1505
|
-
function
|
|
1506
|
-
if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (
|
|
1505
|
+
function rr(e) {
|
|
1506
|
+
if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (Ht(t), rr(t));
|
|
1507
1507
|
}
|
|
1508
|
-
function
|
|
1508
|
+
function ir(e) {
|
|
1509
1509
|
if (e.v === s) return !0;
|
|
1510
1510
|
if (e.deps === null) return !1;
|
|
1511
|
-
for (let t of e.deps) if (
|
|
1511
|
+
for (let t of e.deps) if (Wt.has(t) || t.f & 2 && ir(t)) return !0;
|
|
1512
1512
|
return !1;
|
|
1513
1513
|
}
|
|
1514
|
-
function
|
|
1515
|
-
var t =
|
|
1514
|
+
function ar(e) {
|
|
1515
|
+
var t = K;
|
|
1516
1516
|
try {
|
|
1517
|
-
return
|
|
1517
|
+
return K = !0, e();
|
|
1518
1518
|
} finally {
|
|
1519
|
-
|
|
1519
|
+
K = t;
|
|
1520
1520
|
}
|
|
1521
1521
|
}
|
|
1522
1522
|
//#endregion
|
|
1523
1523
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/events.js
|
|
1524
|
-
var
|
|
1525
|
-
function
|
|
1524
|
+
var or = Symbol("events"), sr = /* @__PURE__ */ new Set(), cr = /* @__PURE__ */ new Set();
|
|
1525
|
+
function lr(e, t, n, r = {}) {
|
|
1526
1526
|
function i(e) {
|
|
1527
|
-
if (r.capture ||
|
|
1527
|
+
if (r.capture || mr.call(t, e), !e.cancelBubble) return pn(() => n?.call(this, e));
|
|
1528
1528
|
}
|
|
1529
|
-
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ?
|
|
1529
|
+
return e.startsWith("pointer") || e.startsWith("touch") || e === "wheel" ? Ye(() => {
|
|
1530
1530
|
t.addEventListener(e, i, r);
|
|
1531
1531
|
}) : t.addEventListener(e, i, r), i;
|
|
1532
1532
|
}
|
|
1533
|
-
function
|
|
1533
|
+
function ur(e, t, n, r, i) {
|
|
1534
1534
|
var a = {
|
|
1535
1535
|
capture: r,
|
|
1536
1536
|
passive: i
|
|
1537
|
-
}, o =
|
|
1538
|
-
(t === document.body || t === window || t === document || t instanceof HTMLMediaElement) &&
|
|
1537
|
+
}, o = lr(e, t, n, a);
|
|
1538
|
+
(t === document.body || t === window || t === document || t instanceof HTMLMediaElement) && vn(() => {
|
|
1539
1539
|
t.removeEventListener(e, o, a);
|
|
1540
1540
|
});
|
|
1541
1541
|
}
|
|
1542
|
-
function
|
|
1543
|
-
(t[
|
|
1542
|
+
function dr(e, t, n) {
|
|
1543
|
+
(t[or] ??= {})[e] = n;
|
|
1544
1544
|
}
|
|
1545
|
-
function
|
|
1546
|
-
for (var t = 0; t < e.length; t++)
|
|
1547
|
-
for (var n of
|
|
1545
|
+
function fr(e) {
|
|
1546
|
+
for (var t = 0; t < e.length; t++) sr.add(e[t]);
|
|
1547
|
+
for (var n of cr) n(e);
|
|
1548
1548
|
}
|
|
1549
|
-
var
|
|
1550
|
-
function
|
|
1549
|
+
var pr = null;
|
|
1550
|
+
function mr(e) {
|
|
1551
1551
|
var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
|
|
1552
|
-
|
|
1553
|
-
var o = 0, s =
|
|
1552
|
+
pr = e;
|
|
1553
|
+
var o = 0, s = pr === e && e[or];
|
|
1554
1554
|
if (s) {
|
|
1555
1555
|
var c = i.indexOf(s);
|
|
1556
1556
|
if (c !== -1 && (t === document || t === window)) {
|
|
1557
|
-
e[
|
|
1557
|
+
e[or] = t;
|
|
1558
1558
|
return;
|
|
1559
1559
|
}
|
|
1560
1560
|
var l = i.indexOf(t);
|
|
@@ -1568,12 +1568,12 @@ function hr(e) {
|
|
|
1568
1568
|
return a || n;
|
|
1569
1569
|
}
|
|
1570
1570
|
});
|
|
1571
|
-
var u =
|
|
1572
|
-
|
|
1571
|
+
var u = G, d = J;
|
|
1572
|
+
q(null), Hn(null);
|
|
1573
1573
|
try {
|
|
1574
1574
|
for (var f, p = []; a !== null && a !== t;) {
|
|
1575
1575
|
try {
|
|
1576
|
-
var h = a[
|
|
1576
|
+
var h = a[or]?.[r];
|
|
1577
1577
|
h != null && (!a.disabled || e.target === a) && h.call(a, e);
|
|
1578
1578
|
} catch (e) {
|
|
1579
1579
|
f ? p.push(e) : f = e;
|
|
@@ -1588,24 +1588,24 @@ function hr(e) {
|
|
|
1588
1588
|
throw f;
|
|
1589
1589
|
}
|
|
1590
1590
|
} finally {
|
|
1591
|
-
e[
|
|
1591
|
+
e[or] = t, delete e.currentTarget, q(u), Hn(d);
|
|
1592
1592
|
}
|
|
1593
1593
|
}
|
|
1594
1594
|
}
|
|
1595
1595
|
//#endregion
|
|
1596
1596
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/reconciler.js
|
|
1597
|
-
var
|
|
1598
|
-
function
|
|
1599
|
-
return
|
|
1597
|
+
var hr = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1598
|
+
function gr(e) {
|
|
1599
|
+
return hr?.createHTML(e) ?? e;
|
|
1600
1600
|
}
|
|
1601
|
-
function
|
|
1602
|
-
var t =
|
|
1603
|
-
return t.innerHTML =
|
|
1601
|
+
function _r(e) {
|
|
1602
|
+
var t = dn("template");
|
|
1603
|
+
return t.innerHTML = gr(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1604
1604
|
}
|
|
1605
1605
|
//#endregion
|
|
1606
1606
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/template.js
|
|
1607
|
-
function
|
|
1608
|
-
var n =
|
|
1607
|
+
function vr(e, t) {
|
|
1608
|
+
var n = J;
|
|
1609
1609
|
n.nodes === null && (n.nodes = {
|
|
1610
1610
|
start: e,
|
|
1611
1611
|
end: t,
|
|
@@ -1614,129 +1614,129 @@ function yr(e, t) {
|
|
|
1614
1614
|
});
|
|
1615
1615
|
}
|
|
1616
1616
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1617
|
-
function
|
|
1617
|
+
function yr(e, t) {
|
|
1618
1618
|
var n = (t & 1) != 0, r = (t & 2) != 0, i, a = !e.startsWith("<!>");
|
|
1619
1619
|
return () => {
|
|
1620
|
-
if (
|
|
1621
|
-
i === void 0 && (i =
|
|
1622
|
-
var t = r ||
|
|
1620
|
+
if (j) return vr(M, null), M;
|
|
1621
|
+
i === void 0 && (i = _r(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ H(i)));
|
|
1622
|
+
var t = r || en ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1623
1623
|
if (n) {
|
|
1624
|
-
var o = /* @__PURE__ */
|
|
1625
|
-
|
|
1626
|
-
} else
|
|
1624
|
+
var o = /* @__PURE__ */ H(t), s = t.lastChild;
|
|
1625
|
+
vr(o, s);
|
|
1626
|
+
} else vr(t, t);
|
|
1627
1627
|
return t;
|
|
1628
1628
|
};
|
|
1629
1629
|
}
|
|
1630
1630
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1631
|
-
function
|
|
1631
|
+
function br(e, t, n = "svg") {
|
|
1632
1632
|
var r = !e.startsWith("<!>"), i = (t & 1) != 0, a = `<${n}>${r ? e : "<!>" + e}</${n}>`, o;
|
|
1633
1633
|
return () => {
|
|
1634
|
-
if (
|
|
1634
|
+
if (j) return vr(M, null), M;
|
|
1635
1635
|
if (!o) {
|
|
1636
|
-
var e = /* @__PURE__ */
|
|
1637
|
-
if (i) for (o = document.createDocumentFragment(); /* @__PURE__ */
|
|
1638
|
-
else o = /* @__PURE__ */
|
|
1636
|
+
var e = /* @__PURE__ */ H(_r(a));
|
|
1637
|
+
if (i) for (o = document.createDocumentFragment(); /* @__PURE__ */ H(e);) o.appendChild(/* @__PURE__ */ H(e));
|
|
1638
|
+
else o = /* @__PURE__ */ H(e);
|
|
1639
1639
|
}
|
|
1640
1640
|
var t = o.cloneNode(!0);
|
|
1641
1641
|
if (i) {
|
|
1642
|
-
var n = /* @__PURE__ */
|
|
1643
|
-
|
|
1644
|
-
} else
|
|
1642
|
+
var n = /* @__PURE__ */ H(t), r = t.lastChild;
|
|
1643
|
+
vr(n, r);
|
|
1644
|
+
} else vr(t, t);
|
|
1645
1645
|
return t;
|
|
1646
1646
|
};
|
|
1647
1647
|
}
|
|
1648
1648
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1649
|
-
function
|
|
1650
|
-
return /* @__PURE__ */
|
|
1651
|
-
}
|
|
1652
|
-
function
|
|
1653
|
-
if (
|
|
1654
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), n =
|
|
1655
|
-
return e.append(t, n),
|
|
1656
|
-
}
|
|
1657
|
-
function
|
|
1658
|
-
if (
|
|
1659
|
-
var n =
|
|
1660
|
-
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end =
|
|
1649
|
+
function xr(e, t) {
|
|
1650
|
+
return /* @__PURE__ */ br(e, t, "svg");
|
|
1651
|
+
}
|
|
1652
|
+
function Sr() {
|
|
1653
|
+
if (j) return vr(M, null), M;
|
|
1654
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), n = V();
|
|
1655
|
+
return e.append(t, n), vr(t, n), e;
|
|
1656
|
+
}
|
|
1657
|
+
function $(e, t) {
|
|
1658
|
+
if (j) {
|
|
1659
|
+
var n = J;
|
|
1660
|
+
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = M), Ne();
|
|
1661
1661
|
return;
|
|
1662
1662
|
}
|
|
1663
1663
|
e !== null && e.before(t);
|
|
1664
1664
|
}
|
|
1665
1665
|
[.../* @__PURE__ */ "allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback".split(".")];
|
|
1666
|
-
var
|
|
1667
|
-
function
|
|
1668
|
-
return
|
|
1666
|
+
var Cr = ["touchstart", "touchmove"];
|
|
1667
|
+
function wr(e) {
|
|
1668
|
+
return Cr.includes(e);
|
|
1669
1669
|
}
|
|
1670
|
-
function
|
|
1670
|
+
function Tr(e, t) {
|
|
1671
1671
|
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1672
|
-
n !== (e[
|
|
1672
|
+
n !== (e[me] ??= e.nodeValue) && (e[me] = n, e.nodeValue = `${n}`);
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1675
|
-
return
|
|
1674
|
+
function Er(e, t) {
|
|
1675
|
+
return kr(e, t);
|
|
1676
1676
|
}
|
|
1677
|
-
function
|
|
1678
|
-
|
|
1679
|
-
let n = t.target, r =
|
|
1677
|
+
function Dr(e, t) {
|
|
1678
|
+
rn(), t.intro = t.intro ?? !1;
|
|
1679
|
+
let n = t.target, r = j, i = M;
|
|
1680
1680
|
try {
|
|
1681
|
-
for (var a = /* @__PURE__ */
|
|
1681
|
+
for (var a = /* @__PURE__ */ H(n); a && (a.nodeType !== 8 || a.data !== "[");) a = /* @__PURE__ */ an(a);
|
|
1682
1682
|
if (!a) throw o;
|
|
1683
|
-
|
|
1684
|
-
let r =
|
|
1683
|
+
Me(!0), N(a);
|
|
1684
|
+
let r = kr(e, {
|
|
1685
1685
|
...t,
|
|
1686
1686
|
anchor: a
|
|
1687
1687
|
});
|
|
1688
|
-
return
|
|
1688
|
+
return Me(!1), r;
|
|
1689
1689
|
} catch (r) {
|
|
1690
1690
|
if (r instanceof Error && r.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw r;
|
|
1691
|
-
return r !== o && console.warn("Failed to hydrate: ", r), t.recover === !1 &&
|
|
1691
|
+
return r !== o && console.warn("Failed to hydrate: ", r), t.recover === !1 && Ce(), rn(), ln(n), Me(!1), Er(e, t);
|
|
1692
1692
|
} finally {
|
|
1693
|
-
|
|
1694
|
-
}
|
|
1695
|
-
}
|
|
1696
|
-
var
|
|
1697
|
-
function
|
|
1698
|
-
|
|
1699
|
-
var l = void 0, u =
|
|
1700
|
-
var s = n ?? t.appendChild(
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
var n =
|
|
1704
|
-
if (a && (n.c = a), i && (r.$$events = i),
|
|
1705
|
-
|
|
1693
|
+
Me(r), N(i);
|
|
1694
|
+
}
|
|
1695
|
+
}
|
|
1696
|
+
var Or = /* @__PURE__ */ new Map();
|
|
1697
|
+
function kr(e, { target: t, anchor: n, props: r = {}, events: i, context: a, intro: s = !0, transformError: c }) {
|
|
1698
|
+
rn();
|
|
1699
|
+
var l = void 0, u = Sn(() => {
|
|
1700
|
+
var s = n ?? t.appendChild(V());
|
|
1701
|
+
Dt(s, { pending: () => {} }, (t) => {
|
|
1702
|
+
We({});
|
|
1703
|
+
var n = P;
|
|
1704
|
+
if (a && (n.c = a), i && (r.$$events = i), j && vr(t, null), l = e(t, r) || {}, j && (J.nodes.end = M, M === null || M.nodeType !== 8 || M.data !== "]")) throw Ae(), o;
|
|
1705
|
+
Ge();
|
|
1706
1706
|
}, c);
|
|
1707
1707
|
var u = /* @__PURE__ */ new Set(), d = (e) => {
|
|
1708
1708
|
for (var n = 0; n < e.length; n++) {
|
|
1709
1709
|
var r = e[n];
|
|
1710
1710
|
if (!u.has(r)) {
|
|
1711
1711
|
u.add(r);
|
|
1712
|
-
var i =
|
|
1712
|
+
var i = wr(r);
|
|
1713
1713
|
for (let e of [t, document]) {
|
|
1714
|
-
var a =
|
|
1715
|
-
a === void 0 && (a = /* @__PURE__ */ new Map(),
|
|
1714
|
+
var a = Or.get(e);
|
|
1715
|
+
a === void 0 && (a = /* @__PURE__ */ new Map(), Or.set(e, a));
|
|
1716
1716
|
var o = a.get(r);
|
|
1717
|
-
o === void 0 ? (e.addEventListener(r,
|
|
1717
|
+
o === void 0 ? (e.addEventListener(r, mr, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
|
|
1718
1718
|
}
|
|
1719
1719
|
}
|
|
1720
1720
|
}
|
|
1721
1721
|
};
|
|
1722
|
-
return d(f(
|
|
1722
|
+
return d(f(sr)), cr.add(d), () => {
|
|
1723
1723
|
for (var e of u) for (let n of [t, document]) {
|
|
1724
|
-
var r =
|
|
1725
|
-
--i == 0 ? (n.removeEventListener(e,
|
|
1724
|
+
var r = Or.get(n), i = r.get(e);
|
|
1725
|
+
--i == 0 ? (n.removeEventListener(e, mr), r.delete(e), r.size === 0 && Or.delete(n)) : r.set(e, i);
|
|
1726
1726
|
}
|
|
1727
|
-
|
|
1727
|
+
cr.delete(d), s !== n && s.parentNode?.removeChild(s);
|
|
1728
1728
|
};
|
|
1729
1729
|
});
|
|
1730
|
-
return
|
|
1730
|
+
return Ar.set(l, u), l;
|
|
1731
1731
|
}
|
|
1732
|
-
var
|
|
1733
|
-
function
|
|
1734
|
-
let n =
|
|
1735
|
-
return n ? (
|
|
1732
|
+
var Ar = /* @__PURE__ */ new WeakMap();
|
|
1733
|
+
function jr(e, t) {
|
|
1734
|
+
let n = Ar.get(e);
|
|
1735
|
+
return n ? (Ar.delete(e), n(t)) : Promise.resolve();
|
|
1736
1736
|
}
|
|
1737
1737
|
//#endregion
|
|
1738
1738
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/blocks/branches.js
|
|
1739
|
-
var
|
|
1739
|
+
var Mr = class {
|
|
1740
1740
|
anchor;
|
|
1741
1741
|
#e = /* @__PURE__ */ new Map();
|
|
1742
1742
|
#t = /* @__PURE__ */ new Map();
|
|
@@ -1749,71 +1749,71 @@ var Nr = class {
|
|
|
1749
1749
|
#a = (e) => {
|
|
1750
1750
|
if (this.#e.has(e)) {
|
|
1751
1751
|
var t = this.#e.get(e), n = this.#t.get(t);
|
|
1752
|
-
if (n)
|
|
1752
|
+
if (n) Fn(n), this.#r.delete(t);
|
|
1753
1753
|
else {
|
|
1754
1754
|
var r = this.#n.get(t);
|
|
1755
|
-
r && (
|
|
1755
|
+
r && (Fn(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
|
|
1756
1756
|
}
|
|
1757
1757
|
for (let [t, n] of this.#e) {
|
|
1758
1758
|
if (this.#e.delete(t), t === e) break;
|
|
1759
1759
|
let r = this.#n.get(n);
|
|
1760
|
-
r && (
|
|
1760
|
+
r && (W(r.effect), this.#n.delete(n));
|
|
1761
1761
|
}
|
|
1762
1762
|
for (let [e, r] of this.#t) {
|
|
1763
1763
|
if (e === t || this.#r.has(e)) continue;
|
|
1764
1764
|
let i = () => {
|
|
1765
1765
|
if (Array.from(this.#e.values()).includes(e)) {
|
|
1766
1766
|
var t = document.createDocumentFragment();
|
|
1767
|
-
|
|
1767
|
+
Ln(r, t), t.append(V()), this.#n.set(e, {
|
|
1768
1768
|
effect: r,
|
|
1769
1769
|
fragment: t
|
|
1770
1770
|
});
|
|
1771
|
-
} else
|
|
1771
|
+
} else W(r);
|
|
1772
1772
|
this.#r.delete(e), this.#t.delete(e);
|
|
1773
1773
|
};
|
|
1774
|
-
this.#i || !n ? (this.#r.add(e),
|
|
1774
|
+
this.#i || !n ? (this.#r.add(e), Nn(r, i, !1)) : i();
|
|
1775
1775
|
}
|
|
1776
1776
|
}
|
|
1777
1777
|
};
|
|
1778
1778
|
#o = (e) => {
|
|
1779
1779
|
this.#e.delete(e);
|
|
1780
1780
|
let t = Array.from(this.#e.values());
|
|
1781
|
-
for (let [e, n] of this.#n) t.includes(e) || (
|
|
1781
|
+
for (let [e, n] of this.#n) t.includes(e) || (W(n.effect), this.#n.delete(e));
|
|
1782
1782
|
};
|
|
1783
1783
|
ensure(e, t) {
|
|
1784
|
-
var n =
|
|
1784
|
+
var n = I, r = un();
|
|
1785
1785
|
if (t && !this.#t.has(e) && !this.#n.has(e)) if (r) {
|
|
1786
|
-
var i = document.createDocumentFragment(), a =
|
|
1786
|
+
var i = document.createDocumentFragment(), a = V();
|
|
1787
1787
|
i.append(a), this.#n.set(e, {
|
|
1788
|
-
effect:
|
|
1788
|
+
effect: U(() => t(a)),
|
|
1789
1789
|
fragment: i
|
|
1790
1790
|
});
|
|
1791
|
-
} else this.#t.set(e,
|
|
1791
|
+
} else this.#t.set(e, U(() => t(this.anchor)));
|
|
1792
1792
|
if (this.#e.set(n, e), r) {
|
|
1793
1793
|
for (let [t, r] of this.#t) t === e ? n.unskip_effect(r) : n.skip_effect(r);
|
|
1794
1794
|
for (let [t, r] of this.#n) t === e ? n.unskip_effect(r.effect) : n.skip_effect(r.effect);
|
|
1795
1795
|
n.oncommit(this.#a), n.ondiscard(this.#o);
|
|
1796
|
-
} else
|
|
1796
|
+
} else j && (this.anchor = M), this.#a(n);
|
|
1797
1797
|
}
|
|
1798
1798
|
};
|
|
1799
1799
|
//#endregion
|
|
1800
1800
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/blocks/if.js
|
|
1801
|
-
function
|
|
1801
|
+
function Nr(e, t, n = !1) {
|
|
1802
1802
|
var r;
|
|
1803
|
-
|
|
1804
|
-
var i = new
|
|
1803
|
+
j && (r = M, Ne());
|
|
1804
|
+
var i = new Mr(e), a = n ? re : 0;
|
|
1805
1805
|
function o(e, t) {
|
|
1806
|
-
if (
|
|
1807
|
-
var n =
|
|
1806
|
+
if (j) {
|
|
1807
|
+
var n = Le(r);
|
|
1808
1808
|
if (e !== parseInt(n.substring(1))) {
|
|
1809
|
-
var a =
|
|
1810
|
-
|
|
1809
|
+
var a = Ie();
|
|
1810
|
+
N(a), i.anchor = a, Me(!1), i.ensure(e, t), Me(!0);
|
|
1811
1811
|
return;
|
|
1812
1812
|
}
|
|
1813
1813
|
}
|
|
1814
1814
|
i.ensure(e, t);
|
|
1815
1815
|
}
|
|
1816
|
-
|
|
1816
|
+
Dn(() => {
|
|
1817
1817
|
var e = !1;
|
|
1818
1818
|
t((t, n = 0) => {
|
|
1819
1819
|
e = !0, o(n, t);
|
|
@@ -1822,14 +1822,14 @@ function Pr(e, t, n = !1) {
|
|
|
1822
1822
|
}
|
|
1823
1823
|
//#endregion
|
|
1824
1824
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/blocks/each.js
|
|
1825
|
-
function
|
|
1825
|
+
function Pr(e, t, n) {
|
|
1826
1826
|
for (var r = [], i = t.length, a, o = t.length, s = 0; s < i; s++) {
|
|
1827
1827
|
let n = t[s];
|
|
1828
|
-
|
|
1828
|
+
Nn(n, () => {
|
|
1829
1829
|
if (a) {
|
|
1830
1830
|
if (a.pending.delete(n), a.done.add(n), a.pending.size === 0) {
|
|
1831
1831
|
var t = e.outrogroups;
|
|
1832
|
-
|
|
1832
|
+
Fr(e, f(a.done)), t.delete(a), t.size === 0 && (e.outrogroups = null);
|
|
1833
1833
|
}
|
|
1834
1834
|
} else --o;
|
|
1835
1835
|
}, !1);
|
|
@@ -1838,15 +1838,15 @@ function Fr(e, t, n) {
|
|
|
1838
1838
|
var c = r.length === 0 && n !== null;
|
|
1839
1839
|
if (c) {
|
|
1840
1840
|
var l = n, u = l.parentNode;
|
|
1841
|
-
|
|
1841
|
+
ln(u), u.append(l), e.items.clear();
|
|
1842
1842
|
}
|
|
1843
|
-
|
|
1843
|
+
Fr(e, t, !c);
|
|
1844
1844
|
} else a = {
|
|
1845
1845
|
pending: new Set(t),
|
|
1846
1846
|
done: /* @__PURE__ */ new Set()
|
|
1847
1847
|
}, (e.outrogroups ??= /* @__PURE__ */ new Set()).add(a);
|
|
1848
1848
|
}
|
|
1849
|
-
function
|
|
1849
|
+
function Fr(e, t, n = !0) {
|
|
1850
1850
|
var r;
|
|
1851
1851
|
if (e.pending.size > 0) {
|
|
1852
1852
|
r = /* @__PURE__ */ new Set();
|
|
@@ -1854,23 +1854,23 @@ function Ir(e, t, n = !0) {
|
|
|
1854
1854
|
}
|
|
1855
1855
|
for (var i = 0; i < t.length; i++) {
|
|
1856
1856
|
var a = t[i];
|
|
1857
|
-
r?.has(a) ? (a.f |=
|
|
1857
|
+
r?.has(a) ? (a.f |= k, Ln(a, document.createDocumentFragment())) : W(t[i], n);
|
|
1858
1858
|
}
|
|
1859
1859
|
}
|
|
1860
|
-
var
|
|
1861
|
-
function
|
|
1860
|
+
var Ir;
|
|
1861
|
+
function Lr(e, t, n, r, i, a = null) {
|
|
1862
1862
|
var o = e, s = /* @__PURE__ */ new Map();
|
|
1863
1863
|
if (t & 4) {
|
|
1864
1864
|
var c = e;
|
|
1865
|
-
o =
|
|
1865
|
+
o = j ? N(/* @__PURE__ */ H(c)) : c.appendChild(V());
|
|
1866
1866
|
}
|
|
1867
|
-
|
|
1868
|
-
var u = null, d = /* @__PURE__ */
|
|
1867
|
+
j && Ne();
|
|
1868
|
+
var u = null, d = /* @__PURE__ */ Lt(() => {
|
|
1869
1869
|
var e = n();
|
|
1870
1870
|
return l(e) ? e : e == null ? [] : f(e);
|
|
1871
1871
|
}), p, m = /* @__PURE__ */ new Map(), h = !0;
|
|
1872
1872
|
function g(e) {
|
|
1873
|
-
v.effect.f & 16384 || (v.pending.delete(e), v.fallback = u,
|
|
1873
|
+
v.effect.f & 16384 || (v.pending.delete(e), v.fallback = u, zr(v, p, o, t, r), u !== null && (p.length === 0 ? u.f & 33554432 ? (u.f ^= k, Vr(u, null, o)) : Fn(u) : Nn(u, () => {
|
|
1874
1874
|
u = null;
|
|
1875
1875
|
})));
|
|
1876
1876
|
}
|
|
@@ -1878,21 +1878,21 @@ function Rr(e, t, n, r, i, a = null) {
|
|
|
1878
1878
|
v.pending.delete(e);
|
|
1879
1879
|
}
|
|
1880
1880
|
var v = {
|
|
1881
|
-
effect:
|
|
1882
|
-
p =
|
|
1881
|
+
effect: Dn(() => {
|
|
1882
|
+
p = Q(d);
|
|
1883
1883
|
var e = p.length;
|
|
1884
1884
|
let c = !1;
|
|
1885
|
-
|
|
1886
|
-
for (var l = /* @__PURE__ */ new Set(), f =
|
|
1887
|
-
|
|
1885
|
+
j && Le(o) === "[!" != (e === 0) && (o = Ie(), N(o), Me(!1), c = !0);
|
|
1886
|
+
for (var l = /* @__PURE__ */ new Set(), f = I, v = un(), y = 0; y < e; y += 1) {
|
|
1887
|
+
j && M.nodeType === 8 && M.data === "]" && (o = M, c = !0, Me(!1));
|
|
1888
1888
|
var b = p[y], x = r(b, y), S = h ? null : s.get(x);
|
|
1889
|
-
S ? (S.v &&
|
|
1889
|
+
S ? (S.v && Jt(S.v, b), S.i && Jt(S.i, y), v && f.unskip_effect(S.e)) : (S = Br(s, h ? o : Ir ??= V(), b, x, y, i, t, n), h || (S.e.f |= k), s.set(x, S)), l.add(x);
|
|
1890
1890
|
}
|
|
1891
|
-
if (e === 0 && a && !u && (h ? u =
|
|
1891
|
+
if (e === 0 && a && !u && (h ? u = U(() => a(o)) : (u = U(() => a(Ir ??= V())), u.f |= k)), e > l.size && ve("", "", ""), j && e > 0 && N(Ie()), !h) if (m.set(f, l), v) {
|
|
1892
1892
|
for (let [e, t] of s) l.has(e) || f.skip_effect(t.e);
|
|
1893
1893
|
f.oncommit(g), f.ondiscard(_);
|
|
1894
1894
|
} else g(f);
|
|
1895
|
-
c &&
|
|
1895
|
+
c && Me(!0), Q(d);
|
|
1896
1896
|
}),
|
|
1897
1897
|
flags: t,
|
|
1898
1898
|
items: s,
|
|
@@ -1900,21 +1900,21 @@ function Rr(e, t, n, r, i, a = null) {
|
|
|
1900
1900
|
outrogroups: null,
|
|
1901
1901
|
fallback: u
|
|
1902
1902
|
};
|
|
1903
|
-
h = !1,
|
|
1903
|
+
h = !1, j && (o = M);
|
|
1904
1904
|
}
|
|
1905
|
-
function
|
|
1905
|
+
function Rr(e) {
|
|
1906
1906
|
for (; e !== null && !(e.f & 32);) e = e.next;
|
|
1907
1907
|
return e;
|
|
1908
1908
|
}
|
|
1909
|
-
function
|
|
1910
|
-
var a = (r & 8) != 0, o = t.length, s = e.items, c =
|
|
1909
|
+
function zr(e, t, n, r, i) {
|
|
1910
|
+
var a = (r & 8) != 0, o = t.length, s = e.items, c = Rr(e.effect.first), l, u = null, d, p = [], m = [], h, g, _, v;
|
|
1911
1911
|
if (a) for (v = 0; v < o; v += 1) h = t[v], g = i(h, v), _ = s.get(g).e, _.f & 33554432 || (_.nodes?.a?.measure(), (d ??= /* @__PURE__ */ new Set()).add(_));
|
|
1912
1912
|
for (v = 0; v < o; v += 1) {
|
|
1913
1913
|
if (h = t[v], g = i(h, v), _ = s.get(g).e, e.outrogroups !== null) for (let t of e.outrogroups) t.pending.delete(_), t.done.delete(_);
|
|
1914
|
-
if (_.f & 8192 && (
|
|
1914
|
+
if (_.f & 8192 && (Fn(_), a && (_.nodes?.a?.unfix(), (d ??= /* @__PURE__ */ new Set()).delete(_))), _.f & 33554432) if (_.f ^= k, _ === c) Vr(_, null, n);
|
|
1915
1915
|
else {
|
|
1916
1916
|
var y = u ? u.next : c;
|
|
1917
|
-
_ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev),
|
|
1917
|
+
_ === e.effect.last && (e.effect.last = _.prev), _.prev && (_.prev.next = _.next), _.next && (_.next.prev = _.prev), Hr(e, u, _), Hr(e, _, y), Vr(_, y, n), u = _, p = [], m = [], c = Rr(u.next);
|
|
1918
1918
|
continue;
|
|
1919
1919
|
}
|
|
1920
1920
|
if (_ !== c) {
|
|
@@ -1923,25 +1923,25 @@ function Br(e, t, n, r, i) {
|
|
|
1923
1923
|
var b = m[0], x;
|
|
1924
1924
|
u = b.prev;
|
|
1925
1925
|
var S = p[0], ee = p[p.length - 1];
|
|
1926
|
-
for (x = 0; x < p.length; x += 1)
|
|
1926
|
+
for (x = 0; x < p.length; x += 1) Vr(p[x], b, n);
|
|
1927
1927
|
for (x = 0; x < m.length; x += 1) l.delete(m[x]);
|
|
1928
|
-
|
|
1929
|
-
} else l.delete(_),
|
|
1928
|
+
Hr(e, S.prev, ee.next), Hr(e, u, S), Hr(e, ee, b), c = b, u = ee, --v, p = [], m = [];
|
|
1929
|
+
} else l.delete(_), Vr(_, c, n), Hr(e, _.prev, _.next), Hr(e, _, u === null ? e.effect.first : u.next), Hr(e, u, _), u = _;
|
|
1930
1930
|
continue;
|
|
1931
1931
|
}
|
|
1932
|
-
for (p = [], m = []; c !== null && c !== _;) (l ??= /* @__PURE__ */ new Set()).add(c), m.push(c), c =
|
|
1932
|
+
for (p = [], m = []; c !== null && c !== _;) (l ??= /* @__PURE__ */ new Set()).add(c), m.push(c), c = Rr(c.next);
|
|
1933
1933
|
if (c === null) continue;
|
|
1934
1934
|
}
|
|
1935
|
-
_.f & 33554432 || p.push(_), u = _, c =
|
|
1935
|
+
_.f & 33554432 || p.push(_), u = _, c = Rr(_.next);
|
|
1936
1936
|
}
|
|
1937
1937
|
if (e.outrogroups !== null) {
|
|
1938
|
-
for (let t of e.outrogroups) t.pending.size === 0 && (
|
|
1938
|
+
for (let t of e.outrogroups) t.pending.size === 0 && (Fr(e, f(t.done)), e.outrogroups?.delete(t));
|
|
1939
1939
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
1940
1940
|
}
|
|
1941
1941
|
if (c !== null || l !== void 0) {
|
|
1942
1942
|
var C = [];
|
|
1943
1943
|
if (l !== void 0) for (_ of l) _.f & 8192 || C.push(_);
|
|
1944
|
-
for (; c !== null;) !(c.f & 8192) && c !== e.fallback && C.push(c), c =
|
|
1944
|
+
for (; c !== null;) !(c.f & 8192) && c !== e.fallback && C.push(c), c = Rr(c.next);
|
|
1945
1945
|
var w = C.length;
|
|
1946
1946
|
if (w > 0) {
|
|
1947
1947
|
var T = r & 4 && o === 0 ? n : null;
|
|
@@ -1949,65 +1949,65 @@ function Br(e, t, n, r, i) {
|
|
|
1949
1949
|
for (v = 0; v < w; v += 1) C[v].nodes?.a?.measure();
|
|
1950
1950
|
for (v = 0; v < w; v += 1) C[v].nodes?.a?.fix();
|
|
1951
1951
|
}
|
|
1952
|
-
|
|
1952
|
+
Pr(e, C, T);
|
|
1953
1953
|
}
|
|
1954
1954
|
}
|
|
1955
|
-
a &&
|
|
1955
|
+
a && Ye(() => {
|
|
1956
1956
|
if (d !== void 0) for (_ of d) _.nodes?.a?.apply();
|
|
1957
1957
|
});
|
|
1958
1958
|
}
|
|
1959
|
-
function
|
|
1960
|
-
var c = o & 1 ? o & 16 ?
|
|
1959
|
+
function Br(e, t, n, r, i, a, o, s) {
|
|
1960
|
+
var c = o & 1 ? o & 16 ? Kt(n) : /* @__PURE__ */ qt(n, !1, !1) : null, l = o & 2 ? Kt(i) : null;
|
|
1961
1961
|
return {
|
|
1962
1962
|
v: c,
|
|
1963
1963
|
i: l,
|
|
1964
|
-
e:
|
|
1964
|
+
e: U(() => (a(t, c ?? n, l ?? i, s), () => {
|
|
1965
1965
|
e.delete(r);
|
|
1966
1966
|
}))
|
|
1967
1967
|
};
|
|
1968
1968
|
}
|
|
1969
|
-
function
|
|
1969
|
+
function Vr(e, t, n) {
|
|
1970
1970
|
if (e.nodes) for (var r = e.nodes.start, i = e.nodes.end, a = t && !(t.f & 33554432) ? t.nodes.start : n; r !== null;) {
|
|
1971
|
-
var o = /* @__PURE__ */
|
|
1971
|
+
var o = /* @__PURE__ */ an(r);
|
|
1972
1972
|
if (a.before(r), r === i) return;
|
|
1973
1973
|
r = o;
|
|
1974
1974
|
}
|
|
1975
1975
|
}
|
|
1976
|
-
function
|
|
1976
|
+
function Hr(e, t, n) {
|
|
1977
1977
|
t === null ? e.effect.first = n : t.next = n, n === null ? e.effect.last = t : n.prev = t;
|
|
1978
1978
|
}
|
|
1979
1979
|
//#endregion
|
|
1980
1980
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/css.js
|
|
1981
|
-
function
|
|
1982
|
-
|
|
1981
|
+
function Ur(e, t) {
|
|
1982
|
+
Cn(() => {
|
|
1983
1983
|
var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
|
|
1984
1984
|
if (!r.querySelector("#" + t.hash)) {
|
|
1985
|
-
let e =
|
|
1985
|
+
let e = dn("style");
|
|
1986
1986
|
e.id = t.hash, e.textContent = t.code, r.appendChild(e);
|
|
1987
1987
|
}
|
|
1988
1988
|
});
|
|
1989
1989
|
}
|
|
1990
1990
|
//#endregion
|
|
1991
1991
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/shared/attributes.js
|
|
1992
|
-
var
|
|
1993
|
-
function
|
|
1992
|
+
var Wr = [..." \n\r\f\xA0\v"];
|
|
1993
|
+
function Gr(e, t, n) {
|
|
1994
1994
|
var r = e == null ? "" : "" + e;
|
|
1995
1995
|
if (t && (r = r ? r + " " + t : t), n) {
|
|
1996
1996
|
for (var i of Object.keys(n)) if (n[i]) r = r ? r + " " + i : i;
|
|
1997
1997
|
else if (r.length) for (var a = i.length, o = 0; (o = r.indexOf(i, o)) >= 0;) {
|
|
1998
1998
|
var s = o + a;
|
|
1999
|
-
(o === 0 ||
|
|
1999
|
+
(o === 0 || Wr.includes(r[o - 1])) && (s === r.length || Wr.includes(r[s])) ? r = (o === 0 ? "" : r.substring(0, o)) + r.substring(s + 1) : o = s;
|
|
2000
2000
|
}
|
|
2001
2001
|
}
|
|
2002
2002
|
return r === "" ? null : r;
|
|
2003
2003
|
}
|
|
2004
2004
|
//#endregion
|
|
2005
2005
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/class.js
|
|
2006
|
-
function
|
|
2007
|
-
var o = e[
|
|
2008
|
-
if (
|
|
2009
|
-
var s =
|
|
2010
|
-
(!
|
|
2006
|
+
function Kr(e, t, n, r, i, a) {
|
|
2007
|
+
var o = e[fe];
|
|
2008
|
+
if (j || o !== n || o === void 0) {
|
|
2009
|
+
var s = Gr(n, r, a);
|
|
2010
|
+
(!j || s !== e.getAttribute("class")) && (s == null ? e.removeAttribute("class") : t ? e.className = s : e.setAttribute("class", s)), e[fe] = n;
|
|
2011
2011
|
} else if (a && i !== a) for (var c in a) {
|
|
2012
2012
|
var l = !!a[c];
|
|
2013
2013
|
(i == null || l !== !!i[c]) && e.classList.toggle(c, l);
|
|
@@ -2016,15 +2016,15 @@ function qr(e, t, n, r, i, a) {
|
|
|
2016
2016
|
}
|
|
2017
2017
|
//#endregion
|
|
2018
2018
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/attributes.js
|
|
2019
|
-
var
|
|
2020
|
-
function
|
|
2019
|
+
var qr = Symbol("is custom element"), Jr = Symbol("is html"), Yr = ge ? "link" : "LINK";
|
|
2020
|
+
function Xr(e, t, n, r) {
|
|
2021
2021
|
var i = Zr(e);
|
|
2022
|
-
|
|
2022
|
+
j && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Yr) || i[t] !== (i[t] = n) && (t === "loading" && (e[ue] = n), n == null ? e.removeAttribute(t) : typeof n != "string" && $r(e).includes(t) ? e[t] = n : e.setAttribute(t, n));
|
|
2023
2023
|
}
|
|
2024
2024
|
function Zr(e) {
|
|
2025
|
-
return e[
|
|
2026
|
-
[
|
|
2027
|
-
[
|
|
2025
|
+
return e[de] ??= {
|
|
2026
|
+
[qr]: e.nodeName.includes("-"),
|
|
2027
|
+
[Jr]: e.namespaceURI === c
|
|
2028
2028
|
};
|
|
2029
2029
|
}
|
|
2030
2030
|
var Qr = /* @__PURE__ */ new Map();
|
|
@@ -2041,14 +2041,14 @@ function $r(e) {
|
|
|
2041
2041
|
//#endregion
|
|
2042
2042
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
|
|
2043
2043
|
function ei(e, t) {
|
|
2044
|
-
return e === t || e?.[
|
|
2044
|
+
return e === t || e?.[ce] === t;
|
|
2045
2045
|
}
|
|
2046
2046
|
function ti(e = {}, t, n, r) {
|
|
2047
|
-
var i =
|
|
2048
|
-
return
|
|
2047
|
+
var i = P.r, a = J;
|
|
2048
|
+
return Cn(() => {
|
|
2049
2049
|
var o, s;
|
|
2050
|
-
return
|
|
2051
|
-
o = s, s = r?.() || [],
|
|
2050
|
+
return Tn(() => {
|
|
2051
|
+
o = s, s = r?.() || [], ar(() => {
|
|
2052
2052
|
ei(n(...s), e) || (t(e, ...s), o && ei(n(...o), e) && t(null, ...o));
|
|
2053
2053
|
});
|
|
2054
2054
|
}), () => {
|
|
@@ -2066,14 +2066,14 @@ function ti(e = {}, t, n, r) {
|
|
|
2066
2066
|
//#endregion
|
|
2067
2067
|
//#region ../../node_modules/.bun/svelte@5.56.0/node_modules/svelte/src/internal/client/reactivity/props.js
|
|
2068
2068
|
function ni(e, t, n, r) {
|
|
2069
|
-
var i = !
|
|
2069
|
+
var i = !He || (n & 2) != 0, a = (n & 8) != 0, o = (n & 16) != 0, s = r, c = !0, l = void 0, u = () => o && i ? (l ??= /* @__PURE__ */ Nt(r), Q(l)) : (c && (c = !1, s = o ? ar(r) : r), s);
|
|
2070
2070
|
let d;
|
|
2071
2071
|
if (a) {
|
|
2072
|
-
var f =
|
|
2072
|
+
var f = ce in e || le in e;
|
|
2073
2073
|
d = h(e, t)?.set ?? (f && t in e ? (n) => e[t] = n : void 0);
|
|
2074
2074
|
}
|
|
2075
2075
|
var p, m = !1;
|
|
2076
|
-
a ? [p, m] =
|
|
2076
|
+
a ? [p, m] = at(() => e[t]) : p = e[t], p === void 0 && r !== void 0 && (p = u(), d && (i && we(t), d(p)));
|
|
2077
2077
|
var g = i ? () => {
|
|
2078
2078
|
var n = e[t];
|
|
2079
2079
|
return n === void 0 ? u() : (c = !0, n);
|
|
@@ -2088,15 +2088,15 @@ function ni(e, t, n, r) {
|
|
|
2088
2088
|
return arguments.length > 0 ? ((!i || !t || _ || m) && d(t ? g() : e), e) : g();
|
|
2089
2089
|
});
|
|
2090
2090
|
}
|
|
2091
|
-
var v = !1, y = (n & 1 ?
|
|
2092
|
-
a &&
|
|
2093
|
-
var b =
|
|
2091
|
+
var v = !1, y = (n & 1 ? Nt : Lt)(() => (v = !1, g()));
|
|
2092
|
+
a && Q(y);
|
|
2093
|
+
var b = J;
|
|
2094
2094
|
return (function(e, t) {
|
|
2095
2095
|
if (arguments.length > 0) {
|
|
2096
|
-
let n = t ?
|
|
2097
|
-
return
|
|
2096
|
+
let n = t ? Q(y) : i && a ? Qt(e) : e;
|
|
2097
|
+
return B(y, n), v = !0, s !== void 0 && (s = n), e;
|
|
2098
2098
|
}
|
|
2099
|
-
return
|
|
2099
|
+
return Bn && v || b.f & 16384 ? y.v : Q(y);
|
|
2100
2100
|
});
|
|
2101
2101
|
}
|
|
2102
2102
|
//#endregion
|
|
@@ -2109,7 +2109,7 @@ var ii = class {
|
|
|
2109
2109
|
#t;
|
|
2110
2110
|
constructor(e) {
|
|
2111
2111
|
var t = /* @__PURE__ */ new Map(), n = (e, n) => {
|
|
2112
|
-
var r = /* @__PURE__ */
|
|
2112
|
+
var r = /* @__PURE__ */ qt(n, !1, !1);
|
|
2113
2113
|
return t.set(e, r), r;
|
|
2114
2114
|
};
|
|
2115
2115
|
let r = new Proxy({
|
|
@@ -2117,16 +2117,16 @@ var ii = class {
|
|
|
2117
2117
|
$$events: {}
|
|
2118
2118
|
}, {
|
|
2119
2119
|
get(e, r) {
|
|
2120
|
-
return
|
|
2120
|
+
return Q(t.get(r) ?? n(r, Reflect.get(e, r)));
|
|
2121
2121
|
},
|
|
2122
2122
|
has(e, r) {
|
|
2123
|
-
return r ===
|
|
2123
|
+
return r === le ? !0 : (Q(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
|
|
2124
2124
|
},
|
|
2125
2125
|
set(e, r, i) {
|
|
2126
|
-
return
|
|
2126
|
+
return B(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
|
|
2127
2127
|
}
|
|
2128
2128
|
});
|
|
2129
|
-
this.#t = (e.hydrate ?
|
|
2129
|
+
this.#t = (e.hydrate ? Dr : Er)(e.component, {
|
|
2130
2130
|
target: e.target,
|
|
2131
2131
|
anchor: e.anchor,
|
|
2132
2132
|
props: r,
|
|
@@ -2134,7 +2134,7 @@ var ii = class {
|
|
|
2134
2134
|
intro: e.intro ?? !1,
|
|
2135
2135
|
recover: e.recover,
|
|
2136
2136
|
transformError: e.transformError
|
|
2137
|
-
}), !
|
|
2137
|
+
}), !Ve && (!e?.props?.$$host || e.sync === !1) && _t(), this.#e = r.$$events;
|
|
2138
2138
|
for (let e of Object.keys(this.#t)) e === "$set" || e === "$destroy" || e === "$on" || m(this, e, {
|
|
2139
2139
|
get() {
|
|
2140
2140
|
return this.#t[e];
|
|
@@ -2147,7 +2147,7 @@ var ii = class {
|
|
|
2147
2147
|
this.#t.$set = (e) => {
|
|
2148
2148
|
Object.assign(r, e);
|
|
2149
2149
|
}, this.#t.$destroy = () => {
|
|
2150
|
-
|
|
2150
|
+
jr(this.#t);
|
|
2151
2151
|
};
|
|
2152
2152
|
}
|
|
2153
2153
|
$set(e) {
|
|
@@ -2197,8 +2197,8 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
2197
2197
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2198
2198
|
function e(e) {
|
|
2199
2199
|
return (t) => {
|
|
2200
|
-
let n =
|
|
2201
|
-
e !== "default" && (n.name = e),
|
|
2200
|
+
let n = dn("slot");
|
|
2201
|
+
e !== "default" && (n.name = e), $(t, n);
|
|
2202
2202
|
};
|
|
2203
2203
|
}
|
|
2204
2204
|
let t = {}, n = si(this);
|
|
@@ -2216,8 +2216,8 @@ typeof HTMLElement == "function" && (ai = class extends HTMLElement {
|
|
|
2216
2216
|
$$slots: t,
|
|
2217
2217
|
$$host: this
|
|
2218
2218
|
}
|
|
2219
|
-
}), this.$$me =
|
|
2220
|
-
|
|
2219
|
+
}), this.$$me = xn(() => {
|
|
2220
|
+
Tn(() => {
|
|
2221
2221
|
this.$$r = !0;
|
|
2222
2222
|
for (let e of p(this.$$c)) {
|
|
2223
2223
|
if (!this.$$p_d[e]?.reflect) continue;
|
|
@@ -2299,255 +2299,280 @@ function ci(e, t, n, r, i, a) {
|
|
|
2299
2299
|
}
|
|
2300
2300
|
//#endregion
|
|
2301
2301
|
//#region tool-tts-inline.svelte
|
|
2302
|
-
var li = /* @__PURE__ */
|
|
2302
|
+
var li = /* @__PURE__ */ xr("<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" class=\"pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"><path d=\"M6 19h4V5H6v14zm8-14v14h4V5h-4z\"></path></svg>"), ui = /* @__PURE__ */ xr("<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" class=\"pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"><path d=\"M8 5v14l11-7z\"></path></svg>"), di = /* @__PURE__ */ yr("<button type=\"button\"><!></button>"), fi = /* @__PURE__ */ yr("<button type=\"button\" data-pie-tts-control=\"\"><span aria-hidden=\"true\"> </span></button>"), pi = /* @__PURE__ */ yr("<div role=\"toolbar\" aria-label=\"Reading controls\" tabindex=\"-1\"><!> <button type=\"button\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control svelte-18mzc0g\" aria-label=\"Rewind\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" class=\"pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"><path d=\"M20 18V6l-8.5 6L20 18zM10.5 18V6L2 12l8.5 6z\"></path></svg></button> <button type=\"button\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control svelte-18mzc0g\" aria-label=\"Fast-forward\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" class=\"pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"><path d=\"M4 18l8.5-6L4 6v12zm9.5 0L22 12l-8.5-6v12z\"></path></svg></button> <button type=\"button\" data-pie-tts-control=\"\" class=\"pie-tool-tts-inline__control svelte-18mzc0g\" aria-label=\"Stop reading\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" class=\"pie-tool-tts-inline__icon svelte-18mzc0g\" aria-hidden=\"true\"><path d=\"M6 6h12v12H6z\"></path></svg></button></div>"), mi = /* @__PURE__ */ yr("<!> <!>", 1), hi = /* @__PURE__ */ yr("<div><!> <div class=\"pie-sr-only svelte-18mzc0g\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div></div>"), gi = {
|
|
2303
2303
|
hash: "svelte-18mzc0g",
|
|
2304
2304
|
code: ".pie-tool-tts-inline.svelte-18mzc0g {position:relative;display:inline-flex;align-items:center;}.pie-tool-tts-inline--controls-row.svelte-18mzc0g {width:100%;justify-content:flex-end;}.pie-tool-tts-inline__trigger.svelte-18mzc0g {display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:1px solid var(--pie-button-border-color, var(--pie-border, #c6c6c6));background-color:var(--pie-button-background-color, var(--pie-background, #fff));color:var(--pie-button-color, var(--pie-text, #333));border-radius:0.25rem;cursor:pointer;transition:background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;}.pie-tool-tts-inline__trigger.svelte-18mzc0g:hover:not(:disabled),\n .pie-tool-tts-inline__control.svelte-18mzc0g:hover:not(:disabled) {background-color:var(--pie-button-hover-background-color, var(--pie-secondary-background, #f2f4f8));transform:translateY(-1px);box-shadow:0 2px 6px color-mix(in srgb, var(--pie-shadow, #000) 14%, transparent);}.pie-tool-tts-inline__trigger.svelte-18mzc0g:active:not(:disabled),\n .pie-tool-tts-inline__control.svelte-18mzc0g:active:not(:disabled) {transform:translateY(0);box-shadow:none;}.pie-tool-tts-inline__trigger.svelte-18mzc0g:focus-visible,\n .pie-tool-tts-inline__control.svelte-18mzc0g:focus-visible {outline:2px solid var(--pie-focus-outline, var(--pie-button-focus-outline, var(--pie-primary, #0066cc)));outline-offset:2px;box-shadow:0 0 0 4px color-mix(in srgb, var(--pie-primary, #0066cc) 22%, transparent);}.pie-tool-tts-inline__trigger--active.svelte-18mzc0g {border-color:var(--pie-primary, #1565c0);background-color:color-mix(in srgb, var(--pie-primary, #1565c0) 10%, var(--pie-background, #fff));}.pie-tool-tts-inline__panel.svelte-18mzc0g {display:inline-flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:0.25rem;box-sizing:border-box;height:var(--pie-tts-controls-row-height, 2.875rem);padding:0 0.5rem;background:var(--pie-surface, var(--pie-background, #fff));border:1px solid var(--pie-border, #d0d0d0);border-radius:0.5rem;}.pie-tool-tts-inline__panel--floating.svelte-18mzc0g {position:absolute;z-index:2;top:100%;right:0;left:auto;}.pie-tool-tts-inline__panel--left-aligned-inline.svelte-18mzc0g {position:static;margin-right:0.5rem;}.pie-tool-tts-inline__panel--row.svelte-18mzc0g {position:absolute;z-index:2;top:100%;right:0;left:auto;}.pie-tool-tts-inline__control.svelte-18mzc0g {display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:1px solid var(--pie-button-border-color, var(--pie-border, #c6c6c6));border-radius:0.25rem;background:var(--pie-button-background-color, var(--pie-background, #fff));color:var(--pie-button-color, var(--pie-text, #222));cursor:pointer;transition:background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;}.pie-tool-tts-inline__control--speed.svelte-18mzc0g {font-size:0.6875rem;font-weight:400;letter-spacing:0;white-space:nowrap;}.pie-tool-tts-inline__control--speed-active.svelte-18mzc0g {border-color:var(--pie-primary, #1565c0);background:color-mix(in srgb, var(--pie-primary, #1565c0) 14%, var(--pie-background, #fff));color:var(--pie-primary, #1565c0);font-weight:600;}.pie-tool-tts-inline__trigger.svelte-18mzc0g:disabled,\n .pie-tool-tts-inline__control.svelte-18mzc0g:disabled {cursor:not-allowed;opacity:0.6;}.pie-tool-tts-inline__trigger--sm.svelte-18mzc0g {width:1.75rem;height:1.75rem;}.pie-tool-tts-inline__trigger--sm.svelte-18mzc0g .pie-tool-tts-inline__icon:where(.svelte-18mzc0g) {width:1rem;height:1rem;}.pie-tool-tts-inline__trigger--md.svelte-18mzc0g {width:2rem;height:2rem;}.pie-tool-tts-inline__trigger--md.svelte-18mzc0g .pie-tool-tts-inline__icon:where(.svelte-18mzc0g) {width:1.25rem;height:1.25rem;}.pie-tool-tts-inline__trigger--lg.svelte-18mzc0g {width:2.5rem;height:2.5rem;}.pie-tool-tts-inline__trigger--lg.svelte-18mzc0g .pie-tool-tts-inline__icon:where(.svelte-18mzc0g) {width:1.5rem;height:1.5rem;}.pie-tool-tts-inline__icon.svelte-18mzc0g {\n /* Default explicit size so control-button icons (rewind/fast-forward/stop)\n render in WebKit, which sizes an inline SVG that has only a viewBox (no\n width/height attributes) to 0. The play/pause trigger icon already works\n because the __trigger--sm/md/lg rules below set these dimensions; this\n gives the control-panel icons the same treatment. Keep the SVG's default\n inline display — forcing display:block makes WebKit collapse it to 0. */width:1.25rem;height:1.25rem;fill:currentColor;color:currentColor;}.pie-sr-only.svelte-18mzc0g {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;}\n\n @media (prefers-reduced-motion: reduce) {.pie-tool-tts-inline__trigger.svelte-18mzc0g,\n .pie-tool-tts-inline__control.svelte-18mzc0g {transition:none !important;}\n }"
|
|
2305
2305
|
};
|
|
2306
2306
|
function _i(o, s) {
|
|
2307
|
-
|
|
2308
|
-
let c = ni(s, "catalogId", 7, ""), l = ni(s, "language", 7, "en-US"), u = ni(s, "size", 7, "md"), d = ni(s, "speedOptions", 23, () => [...e]), f = ni(s, "layoutMode", 7, "expanding-row"), p = typeof window < "u", m = "__pie_tts_inline_active_owner__", h = "pie-tts-inline-owner-change", g = /* @__PURE__ */
|
|
2307
|
+
We(s, !0), Ur(o, gi);
|
|
2308
|
+
let c = ni(s, "catalogId", 7, ""), l = ni(s, "language", 7, "en-US"), u = ni(s, "size", 7, "md"), d = ni(s, "speedOptions", 23, () => [...e]), f = ni(s, "layoutMode", 7, "expanding-row"), p = typeof window < "u", m = "__pie_tts_inline_active_owner__", h = "pie-tts-inline-owner-change", g = /* @__PURE__ */ z(void 0), _ = /* @__PURE__ */ z(void 0), v = /* @__PURE__ */ z(null), y = /* @__PURE__ */ z(null), b = /* @__PURE__ */ z(null), x = /* @__PURE__ */ It(() => Q(v)?.ttsService), S = /* @__PURE__ */ It(() => Q(v)?.highlightCoordinator), ee = /* @__PURE__ */ It(() => Q(b)?.scopeElement || Q(y)?.scopeElement || null), C = /* @__PURE__ */ z(!1), w = /* @__PURE__ */ z(!1), T = /* @__PURE__ */ z(!1), E = /* @__PURE__ */ z(""), te = /* @__PURE__ */ z(1), D = /* @__PURE__ */ z(0), ne = /* @__PURE__ */ z(!1), re = /* @__PURE__ */ z(!1), O = null, ie = /* @__PURE__ */ It(() => a(d())), k = `pie-tts-inline-instance-${Math.random().toString(36).slice(2)}`, ae = `pie-tts-inline-${Math.random().toString(36).slice(2)}`, oe = `${k}-controls`;
|
|
2309
2309
|
function se() {
|
|
2310
2310
|
if (!p) return null;
|
|
2311
2311
|
let e = window[m];
|
|
2312
2312
|
return typeof e == "string" ? e : null;
|
|
2313
2313
|
}
|
|
2314
|
-
function
|
|
2315
|
-
return se() ===
|
|
2314
|
+
function A() {
|
|
2315
|
+
return se() === k;
|
|
2316
2316
|
}
|
|
2317
|
-
function
|
|
2317
|
+
function ce(e, t) {
|
|
2318
2318
|
p && window.dispatchEvent(new CustomEvent(h, { detail: {
|
|
2319
2319
|
ownerId: e,
|
|
2320
2320
|
previousOwnerId: t
|
|
2321
2321
|
} }));
|
|
2322
2322
|
}
|
|
2323
|
-
function
|
|
2323
|
+
function le() {
|
|
2324
2324
|
if (!p) return;
|
|
2325
2325
|
let e = se();
|
|
2326
|
-
e !==
|
|
2326
|
+
e !== k && (window[m] = k, ce(k, e));
|
|
2327
2327
|
}
|
|
2328
|
-
function
|
|
2329
|
-
p && se() ===
|
|
2328
|
+
function ue() {
|
|
2329
|
+
p && se() === k && (delete window[m], ce(null, k));
|
|
2330
2330
|
}
|
|
2331
|
-
function
|
|
2332
|
-
|
|
2331
|
+
function de(e = "", t = !1) {
|
|
2332
|
+
B(w, !1), B(T, !1), B(D, 0), B(C, t, !0), B(E, e, !0);
|
|
2333
2333
|
}
|
|
2334
|
-
function
|
|
2335
|
-
if (!
|
|
2336
|
-
let t =
|
|
2334
|
+
function fe(e) {
|
|
2335
|
+
if (!Q(g) || !e) return;
|
|
2336
|
+
let t = Q(g).getRootNode();
|
|
2337
2337
|
t instanceof ShadowRoot && t.querySelector(".pie-tool-tts-inline__trigger")?.focus();
|
|
2338
2338
|
}
|
|
2339
|
-
function
|
|
2340
|
-
if (!
|
|
2341
|
-
|
|
2339
|
+
function pe(e = "Reading switched to another section", t = !1) {
|
|
2340
|
+
if (!Q(re) && !(!Q(C) && !A())) {
|
|
2341
|
+
B(re, !0);
|
|
2342
2342
|
try {
|
|
2343
2343
|
let n = (() => {
|
|
2344
|
-
if (!
|
|
2345
|
-
let e =
|
|
2344
|
+
if (!Q(g) || !Q(_)) return !1;
|
|
2345
|
+
let e = Q(g).getRootNode();
|
|
2346
2346
|
if (!(e instanceof ShadowRoot)) return !1;
|
|
2347
2347
|
let t = e.activeElement;
|
|
2348
|
-
return !!(t &&
|
|
2348
|
+
return !!(t && Q(_).contains(t));
|
|
2349
2349
|
})();
|
|
2350
|
-
|
|
2351
|
-
|
|
2350
|
+
A() && ue(), de(e), xe(), t && queueMicrotask(() => {
|
|
2351
|
+
fe(n);
|
|
2352
2352
|
});
|
|
2353
2353
|
} finally {
|
|
2354
|
-
|
|
2354
|
+
B(re, !1);
|
|
2355
2355
|
}
|
|
2356
2356
|
}
|
|
2357
2357
|
}
|
|
2358
|
-
|
|
2359
|
-
if (
|
|
2360
|
-
|
|
2358
|
+
yn(() => {
|
|
2359
|
+
if (Q(g)) return r(Q(g), (e) => {
|
|
2360
|
+
B(v, e, !0);
|
|
2361
2361
|
});
|
|
2362
|
-
}),
|
|
2363
|
-
if (!
|
|
2364
|
-
let e = i(
|
|
2365
|
-
|
|
2366
|
-
}), t = n(
|
|
2367
|
-
|
|
2362
|
+
}), yn(() => {
|
|
2363
|
+
if (!Q(g)) return;
|
|
2364
|
+
let e = i(Q(g), (e) => {
|
|
2365
|
+
B(y, e, !0);
|
|
2366
|
+
}), t = n(Q(g), (e) => {
|
|
2367
|
+
B(b, e, !0);
|
|
2368
2368
|
});
|
|
2369
2369
|
return () => {
|
|
2370
2370
|
t(), e();
|
|
2371
2371
|
};
|
|
2372
|
-
}),
|
|
2373
|
-
if (!
|
|
2372
|
+
}), yn(() => {
|
|
2373
|
+
if (!Q(x)) return;
|
|
2374
2374
|
let e = (e) => {
|
|
2375
|
-
if (!
|
|
2376
|
-
|
|
2375
|
+
if (!Q(C) || !A()) {
|
|
2376
|
+
B(w, !1), B(T, !1);
|
|
2377
2377
|
return;
|
|
2378
2378
|
}
|
|
2379
|
-
|
|
2379
|
+
B(w, e === "playing" || e === "paused", !0), B(T, e === "paused");
|
|
2380
2380
|
}, t = (t) => {
|
|
2381
2381
|
e(t);
|
|
2382
2382
|
};
|
|
2383
|
-
return
|
|
2384
|
-
|
|
2383
|
+
return Q(x).onStateChange(ae, t), e(Q(x).getState()), () => {
|
|
2384
|
+
Q(x).offStateChange(ae, t);
|
|
2385
2385
|
};
|
|
2386
|
-
}),
|
|
2386
|
+
}), yn(() => {
|
|
2387
2387
|
if (!p) return;
|
|
2388
2388
|
let e = (e) => {
|
|
2389
2389
|
let { ownerId: t = null, previousOwnerId: n = null } = e.detail || {};
|
|
2390
|
-
n ===
|
|
2390
|
+
n === k && t !== k && pe("Reading switched to another section");
|
|
2391
2391
|
};
|
|
2392
2392
|
return window.addEventListener(h, e), () => {
|
|
2393
2393
|
window.removeEventListener(h, e);
|
|
2394
2394
|
};
|
|
2395
|
-
}),
|
|
2395
|
+
}), yn(() => {
|
|
2396
2396
|
if (!p) return;
|
|
2397
2397
|
let e = () => {
|
|
2398
|
-
|
|
2398
|
+
pe("Reading switched to another section", !0);
|
|
2399
2399
|
};
|
|
2400
2400
|
return window.addEventListener(t, e), () => {
|
|
2401
2401
|
window.removeEventListener(t, e);
|
|
2402
2402
|
};
|
|
2403
|
-
}),
|
|
2404
|
-
|
|
2403
|
+
}), yn(() => () => {
|
|
2404
|
+
ue(), xe();
|
|
2405
2405
|
});
|
|
2406
|
-
async function
|
|
2407
|
-
if (!
|
|
2406
|
+
async function me() {
|
|
2407
|
+
if (!Q(x)) return !1;
|
|
2408
2408
|
try {
|
|
2409
|
-
return await
|
|
2409
|
+
return await Q(v)?.toolkitCoordinator?.ensureTTSReady?.(), !0;
|
|
2410
2410
|
} catch (e) {
|
|
2411
2411
|
return console.error("[TTS Inline] Failed to initialize TTS:", e), !1;
|
|
2412
2412
|
}
|
|
2413
2413
|
}
|
|
2414
|
-
function
|
|
2415
|
-
return
|
|
2414
|
+
function he() {
|
|
2415
|
+
return Q(_) ? Array.from(Q(_).querySelectorAll("[data-pie-tts-control]")) : [];
|
|
2416
2416
|
}
|
|
2417
|
-
function
|
|
2418
|
-
let t =
|
|
2417
|
+
function ge(e) {
|
|
2418
|
+
let t = he();
|
|
2419
2419
|
if (!t.length) return;
|
|
2420
2420
|
let n = (e + t.length) % t.length;
|
|
2421
|
-
|
|
2421
|
+
B(D, n), t[n].focus();
|
|
2422
2422
|
}
|
|
2423
|
-
function
|
|
2424
|
-
let t =
|
|
2423
|
+
function _e(e) {
|
|
2424
|
+
let t = he();
|
|
2425
2425
|
if (t.length) switch (e.key) {
|
|
2426
2426
|
case "ArrowDown":
|
|
2427
2427
|
case "ArrowRight":
|
|
2428
|
-
e.preventDefault(),
|
|
2428
|
+
e.preventDefault(), ge(Q(D) + 1);
|
|
2429
2429
|
break;
|
|
2430
2430
|
case "ArrowUp":
|
|
2431
2431
|
case "ArrowLeft":
|
|
2432
|
-
e.preventDefault(),
|
|
2432
|
+
e.preventDefault(), ge(Q(D) - 1);
|
|
2433
2433
|
break;
|
|
2434
2434
|
case "Home":
|
|
2435
|
-
e.preventDefault(),
|
|
2435
|
+
e.preventDefault(), ge(0);
|
|
2436
2436
|
break;
|
|
2437
2437
|
case "End":
|
|
2438
|
-
e.preventDefault(),
|
|
2438
|
+
e.preventDefault(), ge(t.length - 1);
|
|
2439
2439
|
break;
|
|
2440
2440
|
}
|
|
2441
2441
|
}
|
|
2442
|
-
function
|
|
2443
|
-
if (!
|
|
2444
|
-
let e =
|
|
2442
|
+
function ve() {
|
|
2443
|
+
if (!Q(ee)) return null;
|
|
2444
|
+
let e = Q(ee);
|
|
2445
2445
|
if (e.getAttribute?.("data-region") === "content") return e;
|
|
2446
2446
|
let t = e.querySelector?.("[data-region='content']");
|
|
2447
2447
|
return t instanceof Element ? t : e;
|
|
2448
2448
|
}
|
|
2449
|
-
function
|
|
2450
|
-
if (
|
|
2449
|
+
function ye() {
|
|
2450
|
+
if (Q(y)) return Q(y).kind === "passage" ? {
|
|
2451
2451
|
ownerKind: "passage",
|
|
2452
|
-
assessmentId:
|
|
2453
|
-
sectionId:
|
|
2454
|
-
passageId:
|
|
2452
|
+
assessmentId: Q(v)?.assessmentId || "",
|
|
2453
|
+
sectionId: Q(v)?.sectionId || "",
|
|
2454
|
+
passageId: Q(y).canonicalItemId || Q(y).itemId
|
|
2455
2455
|
} : {
|
|
2456
2456
|
ownerKind: "itemModel",
|
|
2457
|
-
assessmentId:
|
|
2458
|
-
sectionId:
|
|
2459
|
-
itemId:
|
|
2460
|
-
canonicalItemId:
|
|
2457
|
+
assessmentId: Q(v)?.assessmentId || "",
|
|
2458
|
+
sectionId: Q(v)?.sectionId || "",
|
|
2459
|
+
itemId: Q(y).itemId,
|
|
2460
|
+
canonicalItemId: Q(y).canonicalItemId || Q(y).itemId
|
|
2461
2461
|
};
|
|
2462
2462
|
}
|
|
2463
|
-
function
|
|
2464
|
-
|
|
2465
|
-
|
|
2463
|
+
function be(e) {
|
|
2464
|
+
return xe(), O = Q(x)?.setHighlightTargetResolverProvider?.(() => ({
|
|
2465
|
+
context: {
|
|
2466
|
+
scopeElement: Q(b)?.scopeElement || e || null,
|
|
2467
|
+
kind: Q(y)?.kind,
|
|
2468
|
+
itemId: Q(y)?.itemId,
|
|
2469
|
+
canonicalItemId: Q(y)?.canonicalItemId,
|
|
2470
|
+
contentKind: Q(y)?.contentKind,
|
|
2471
|
+
regionPolicy: Q(y)?.regionPolicy
|
|
2472
|
+
},
|
|
2473
|
+
resolver: Q(b)?.ttsHighlightTargetResolver || null
|
|
2474
|
+
})) || null, O;
|
|
2475
|
+
}
|
|
2476
|
+
function xe(e = O) {
|
|
2477
|
+
e?.(), e === O && (O = null);
|
|
2478
|
+
}
|
|
2479
|
+
function Se() {
|
|
2480
|
+
if (!A()) return !1;
|
|
2481
|
+
let e = String(Q(x)?.getState?.() || "");
|
|
2482
|
+
return e === "playing" || e === "paused" || e === "loading";
|
|
2483
|
+
}
|
|
2484
|
+
function Ce() {
|
|
2485
|
+
if (!Q(x)) return;
|
|
2486
|
+
let e = ve();
|
|
2466
2487
|
if (!e) {
|
|
2467
2488
|
console.warn("[TTS Inline] No target container found from shell scope context");
|
|
2468
2489
|
return;
|
|
2469
2490
|
}
|
|
2470
2491
|
try {
|
|
2471
|
-
|
|
2492
|
+
B(C, !0);
|
|
2472
2493
|
let t = e.textContent || "";
|
|
2473
2494
|
if (!t) {
|
|
2474
2495
|
console.warn("[TTS Inline] No text content found");
|
|
2475
2496
|
return;
|
|
2476
2497
|
}
|
|
2477
|
-
|
|
2498
|
+
Q(S) && Q(x).setHighlightCoordinator && Q(x).setHighlightCoordinator(Q(S));
|
|
2499
|
+
let n = be(e);
|
|
2500
|
+
Q(x).setRootElement?.(e), B(E, "Reading started"), Q(x).speak(t, {
|
|
2478
2501
|
catalogId: c() || void 0,
|
|
2479
|
-
catalogContext:
|
|
2502
|
+
catalogContext: ye(),
|
|
2480
2503
|
language: l(),
|
|
2481
2504
|
contentElement: e
|
|
2482
2505
|
}).catch((e) => {
|
|
2483
|
-
console.error("[TTS Inline] Error:", e),
|
|
2506
|
+
console.error("[TTS Inline] Error:", e), B(E, "Unable to start reading"), Q(S) && Q(S).clearTTS(), xe(n);
|
|
2507
|
+
}).finally(() => {
|
|
2508
|
+
Se() || xe(n);
|
|
2484
2509
|
});
|
|
2485
2510
|
} catch (e) {
|
|
2486
|
-
console.error("[TTS Inline] Error:", e),
|
|
2511
|
+
console.error("[TTS Inline] Error:", e), B(E, "Unable to start reading"), Q(S) && Q(S).clearTTS(), xe();
|
|
2487
2512
|
}
|
|
2488
2513
|
}
|
|
2489
|
-
async function
|
|
2490
|
-
if (
|
|
2491
|
-
if (
|
|
2492
|
-
|
|
2514
|
+
async function we() {
|
|
2515
|
+
if (Q(x)) {
|
|
2516
|
+
if (A() && Q(T)) {
|
|
2517
|
+
Q(x).resume(), B(E, "Reading resumed");
|
|
2493
2518
|
return;
|
|
2494
2519
|
}
|
|
2495
|
-
if (
|
|
2496
|
-
|
|
2520
|
+
if (A() && Q(w) && !Q(T)) {
|
|
2521
|
+
Q(x).pause(), B(E, "Reading paused");
|
|
2497
2522
|
return;
|
|
2498
2523
|
}
|
|
2499
|
-
if (!
|
|
2500
|
-
|
|
2524
|
+
if (!Q(ne)) {
|
|
2525
|
+
B(ne, !0);
|
|
2501
2526
|
try {
|
|
2502
|
-
if (
|
|
2503
|
-
|
|
2527
|
+
if (B(E, "Initializing text-to-speech"), !await me()) {
|
|
2528
|
+
B(E, "Unable to initialize text-to-speech. Try again.");
|
|
2504
2529
|
return;
|
|
2505
2530
|
}
|
|
2506
|
-
let e = String(
|
|
2507
|
-
(e === "playing" || e === "paused" || e === "loading") && !
|
|
2531
|
+
let e = String(Q(x).getState?.() || "");
|
|
2532
|
+
(e === "playing" || e === "paused" || e === "loading") && !A() && Q(x).stop(), le(), Ce();
|
|
2508
2533
|
} finally {
|
|
2509
|
-
|
|
2534
|
+
B(ne, !1);
|
|
2510
2535
|
}
|
|
2511
2536
|
}
|
|
2512
2537
|
}
|
|
2513
2538
|
}
|
|
2514
|
-
function
|
|
2515
|
-
|
|
2539
|
+
function Te() {
|
|
2540
|
+
Q(x) && (Q(x).stop(), ue(), de("Reading stopped"), Q(S) && Q(S).clearTTS(), xe());
|
|
2516
2541
|
}
|
|
2517
|
-
async function
|
|
2518
|
-
if (!(!
|
|
2519
|
-
await
|
|
2542
|
+
async function Ee() {
|
|
2543
|
+
if (!(!Q(x) || !Q(w))) try {
|
|
2544
|
+
await Q(x).seekForward?.(1), B(E, "Skipped forward");
|
|
2520
2545
|
} catch (e) {
|
|
2521
|
-
console.error("[TTS Inline] Seek forward failed:", e),
|
|
2546
|
+
console.error("[TTS Inline] Seek forward failed:", e), B(E, "Unable to skip forward");
|
|
2522
2547
|
}
|
|
2523
2548
|
}
|
|
2524
|
-
async function
|
|
2525
|
-
if (!(!
|
|
2526
|
-
await
|
|
2549
|
+
async function De() {
|
|
2550
|
+
if (!(!Q(x) || !Q(w))) try {
|
|
2551
|
+
await Q(x).seekBackward?.(1), B(E, "Skipped backward");
|
|
2527
2552
|
} catch (e) {
|
|
2528
|
-
console.error("[TTS Inline] Seek backward failed:", e),
|
|
2553
|
+
console.error("[TTS Inline] Seek backward failed:", e), B(E, "Unable to skip backward");
|
|
2529
2554
|
}
|
|
2530
2555
|
}
|
|
2531
|
-
async function
|
|
2532
|
-
if (!
|
|
2533
|
-
let t =
|
|
2534
|
-
|
|
2556
|
+
async function Oe(e) {
|
|
2557
|
+
if (!Q(x)) return;
|
|
2558
|
+
let t = Q(te), n = Q(te) === e.rate ? 1 : e.rate;
|
|
2559
|
+
B(te, n, !0), B(E, n === 1 ? "Playback speed reset to 1x" : `Playback speed ${e.label}`, !0);
|
|
2535
2560
|
try {
|
|
2536
|
-
typeof
|
|
2561
|
+
typeof Q(x).setPlaybackRate == "function" ? await Q(x).setPlaybackRate(n) : await Q(x).updateSettings({ rate: n });
|
|
2537
2562
|
} catch (e) {
|
|
2538
|
-
console.error("[TTS Inline] Playback speed change failed:", e),
|
|
2563
|
+
console.error("[TTS Inline] Playback speed change failed:", e), B(te, t, !0), B(E, "Unable to change playback speed");
|
|
2539
2564
|
}
|
|
2540
2565
|
}
|
|
2541
|
-
let
|
|
2542
|
-
function
|
|
2543
|
-
if (!
|
|
2544
|
-
let e =
|
|
2566
|
+
let ke = /* @__PURE__ */ It(() => u() === "sm" ? "pie-tool-tts-inline__trigger--sm" : u() === "lg" ? "pie-tool-tts-inline__trigger--lg" : "pie-tool-tts-inline__trigger--md"), Ae = /* @__PURE__ */ It(() => f() === "reserved-row" || f() === "expanding-row"), je = /* @__PURE__ */ It(() => f() === "floating-overlay"), j = /* @__PURE__ */ It(() => f() === "left-aligned");
|
|
2567
|
+
function Me() {
|
|
2568
|
+
if (!Q(g)) return null;
|
|
2569
|
+
let e = Q(g).getRootNode();
|
|
2545
2570
|
return e instanceof ShadowRoot ? e.host : null;
|
|
2546
2571
|
}
|
|
2547
|
-
|
|
2548
|
-
let e =
|
|
2572
|
+
yn(() => {
|
|
2573
|
+
let e = Me();
|
|
2549
2574
|
if (!e) return;
|
|
2550
|
-
let t =
|
|
2575
|
+
let t = Q(C) === !0;
|
|
2551
2576
|
e.setAttribute("data-active", t ? "true" : "false");
|
|
2552
2577
|
let n = !1;
|
|
2553
2578
|
return queueMicrotask(() => {
|
|
@@ -2560,108 +2585,108 @@ function _i(o, s) {
|
|
|
2560
2585
|
n = !0;
|
|
2561
2586
|
};
|
|
2562
2587
|
});
|
|
2563
|
-
var
|
|
2588
|
+
var M = {
|
|
2564
2589
|
get catalogId() {
|
|
2565
2590
|
return c();
|
|
2566
2591
|
},
|
|
2567
2592
|
set catalogId(e = "") {
|
|
2568
|
-
c(e),
|
|
2593
|
+
c(e), _t();
|
|
2569
2594
|
},
|
|
2570
2595
|
get language() {
|
|
2571
2596
|
return l();
|
|
2572
2597
|
},
|
|
2573
2598
|
set language(e = "en-US") {
|
|
2574
|
-
l(e),
|
|
2599
|
+
l(e), _t();
|
|
2575
2600
|
},
|
|
2576
2601
|
get size() {
|
|
2577
2602
|
return u();
|
|
2578
2603
|
},
|
|
2579
2604
|
set size(e = "md") {
|
|
2580
|
-
u(e),
|
|
2605
|
+
u(e), _t();
|
|
2581
2606
|
},
|
|
2582
2607
|
get speedOptions() {
|
|
2583
2608
|
return d();
|
|
2584
2609
|
},
|
|
2585
2610
|
set speedOptions(t = [...e]) {
|
|
2586
|
-
d(t),
|
|
2611
|
+
d(t), _t();
|
|
2587
2612
|
},
|
|
2588
2613
|
get layoutMode() {
|
|
2589
2614
|
return f();
|
|
2590
2615
|
},
|
|
2591
2616
|
set layoutMode(e = "expanding-row") {
|
|
2592
|
-
f(e),
|
|
2617
|
+
f(e), _t();
|
|
2593
2618
|
}
|
|
2594
|
-
},
|
|
2619
|
+
}, N = Sr(), Ne = sn(N), Fe = (e) => {
|
|
2595
2620
|
var t = hi();
|
|
2596
2621
|
let n;
|
|
2597
2622
|
{
|
|
2598
2623
|
let e = (e) => {
|
|
2599
2624
|
var t = di();
|
|
2600
2625
|
let n;
|
|
2601
|
-
var r =
|
|
2602
|
-
|
|
2626
|
+
var r = on(t), i = (e) => {
|
|
2627
|
+
$(e, li());
|
|
2603
2628
|
}, a = (e) => {
|
|
2604
|
-
|
|
2629
|
+
$(e, ui());
|
|
2605
2630
|
};
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
}),
|
|
2609
|
-
n =
|
|
2610
|
-
}),
|
|
2631
|
+
Nr(r, (e) => {
|
|
2632
|
+
Q(w) && !Q(T) ? e(i) : e(a, -1);
|
|
2633
|
+
}), Pe(t), En(() => {
|
|
2634
|
+
n = Kr(t, 1, `pie-tool-tts-inline__trigger ${Q(ke) ?? ""}`, "svelte-18mzc0g", n, { "pie-tool-tts-inline__trigger--active": Q(C) }), Xr(t, "aria-label", Q(w) && !Q(T) ? "Pause reading" : Q(T) ? "Resume reading" : "Play reading"), Xr(t, "aria-expanded", Q(C)), Xr(t, "aria-controls", Q(C) ? oe : void 0), t.disabled = !Q(x) || Q(ne);
|
|
2635
|
+
}), dr("click", t, we), $(e, t);
|
|
2611
2636
|
}, n = (e) => {
|
|
2612
|
-
var t =
|
|
2637
|
+
var t = Sr(), n = sn(t), r = (e) => {
|
|
2613
2638
|
var t = pi();
|
|
2614
2639
|
let n;
|
|
2615
|
-
var r =
|
|
2616
|
-
var t =
|
|
2617
|
-
|
|
2640
|
+
var r = on(t), i = (e) => {
|
|
2641
|
+
var t = Sr();
|
|
2642
|
+
Lr(sn(t), 19, () => Q(ie), (e) => e.rate, (e, t, n) => {
|
|
2618
2643
|
var r = fi();
|
|
2619
2644
|
let i;
|
|
2620
|
-
var a =
|
|
2621
|
-
|
|
2622
|
-
i =
|
|
2623
|
-
}),
|
|
2624
|
-
}),
|
|
2645
|
+
var a = on(r), o = on(a, !0);
|
|
2646
|
+
Pe(a), Pe(r), En(() => {
|
|
2647
|
+
i = Kr(r, 1, "pie-tool-tts-inline__control pie-tool-tts-inline__control--speed svelte-18mzc0g", null, i, { "pie-tool-tts-inline__control--speed-active": Q(te) === Q(t).rate }), Xr(r, "tabindex", Q(D) === Q(n) ? 0 : -1), Xr(r, "aria-label", Q(t).ariaLabel), Xr(r, "aria-pressed", Q(te) === Q(t).rate), r.disabled = !Q(x), Tr(o, Q(t).label);
|
|
2648
|
+
}), dr("click", r, () => Oe(Q(t))), ur("focus", r, () => B(D, Q(n), !0)), $(e, r);
|
|
2649
|
+
}), $(e, t);
|
|
2625
2650
|
};
|
|
2626
|
-
|
|
2627
|
-
|
|
2651
|
+
Nr(r, (e) => {
|
|
2652
|
+
Q(ie).length > 0 && e(i);
|
|
2628
2653
|
});
|
|
2629
|
-
var a =
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
"pie-tool-tts-inline__panel--floating":
|
|
2633
|
-
"pie-tool-tts-inline__panel--row":
|
|
2634
|
-
"pie-tool-tts-inline__panel--left-aligned-inline":
|
|
2635
|
-
}),
|
|
2636
|
-
}),
|
|
2654
|
+
var a = cn(r, 2), o = cn(a, 2), s = cn(o, 2);
|
|
2655
|
+
Pe(t), ti(t, (e) => B(_, e), () => Q(_)), En(() => {
|
|
2656
|
+
Xr(t, "id", oe), n = Kr(t, 1, "pie-tool-tts-inline__panel svelte-18mzc0g", null, n, {
|
|
2657
|
+
"pie-tool-tts-inline__panel--floating": Q(je),
|
|
2658
|
+
"pie-tool-tts-inline__panel--row": Q(Ae),
|
|
2659
|
+
"pie-tool-tts-inline__panel--left-aligned-inline": Q(j)
|
|
2660
|
+
}), Xr(a, "tabindex", Q(D) === Q(ie).length ? 0 : -1), a.disabled = !Q(x) || !Q(w), Xr(o, "tabindex", Q(D) === Q(ie).length + 1 ? 0 : -1), o.disabled = !Q(x) || !Q(w), Xr(s, "tabindex", Q(D) === Q(ie).length + 2 ? 0 : -1), s.disabled = !Q(x) || !Q(w) && !Q(T);
|
|
2661
|
+
}), dr("keydown", t, _e), dr("click", a, De), ur("focus", a, () => B(D, Q(ie).length, !0)), dr("click", o, Ee), ur("focus", o, () => B(D, Q(ie).length + 1)), dr("click", s, Te), ur("focus", s, () => B(D, Q(ie).length + 2)), $(e, t);
|
|
2637
2662
|
};
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
}),
|
|
2663
|
+
Nr(n, (e) => {
|
|
2664
|
+
Q(C) && e(r);
|
|
2665
|
+
}), $(e, t);
|
|
2641
2666
|
};
|
|
2642
|
-
var r =
|
|
2643
|
-
var r = mi(), i =
|
|
2644
|
-
n(i), e(
|
|
2667
|
+
var r = on(t), i = (t) => {
|
|
2668
|
+
var r = mi(), i = sn(r);
|
|
2669
|
+
n(i), e(cn(i, 2)), $(t, r);
|
|
2645
2670
|
}, a = (t) => {
|
|
2646
|
-
var r = mi(), i =
|
|
2647
|
-
e(i), n(
|
|
2671
|
+
var r = mi(), i = sn(r);
|
|
2672
|
+
e(i), n(cn(i, 2)), $(t, r);
|
|
2648
2673
|
};
|
|
2649
|
-
|
|
2650
|
-
|
|
2674
|
+
Nr(r, (e) => {
|
|
2675
|
+
Q(j) ? e(i) : e(a, -1);
|
|
2651
2676
|
});
|
|
2652
|
-
var o =
|
|
2653
|
-
|
|
2677
|
+
var o = cn(r, 2), s = on(o, !0);
|
|
2678
|
+
Pe(o), Pe(t), ti(t, (e) => B(g, e), () => Q(g)), En(() => Tr(s, Q(E)));
|
|
2654
2679
|
}
|
|
2655
|
-
|
|
2656
|
-
"pie-tool-tts-inline--controls-row":
|
|
2657
|
-
"pie-tool-tts-inline--floating":
|
|
2658
|
-
})),
|
|
2680
|
+
En(() => n = Kr(t, 1, "pie-tool-tts-inline svelte-18mzc0g", null, n, {
|
|
2681
|
+
"pie-tool-tts-inline--controls-row": Q(Ae),
|
|
2682
|
+
"pie-tool-tts-inline--floating": Q(je)
|
|
2683
|
+
})), $(e, t);
|
|
2659
2684
|
};
|
|
2660
|
-
return
|
|
2661
|
-
p && e(
|
|
2662
|
-
}),
|
|
2685
|
+
return Nr(Ne, (e) => {
|
|
2686
|
+
p && e(Fe);
|
|
2687
|
+
}), $(o, N), Ge(M);
|
|
2663
2688
|
}
|
|
2664
|
-
|
|
2689
|
+
fr(["click", "keydown"]), customElements.define("pie-tool-tts-inline", ci(_i, {
|
|
2665
2690
|
catalogId: {
|
|
2666
2691
|
attribute: "catalog-id",
|
|
2667
2692
|
type: "String"
|