@pie-element/element-player 0.1.2-next.0 → 0.1.2-next.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -25
- package/dist/index.d.ts +1 -1
- package/dist/lib/element-loader.d.ts +1 -1
- package/dist/lib/math-rendering-types.d.ts +0 -6
- package/dist/lib/types.d.ts +0 -6
- package/dist/lib/unified-player-loader.d.ts +4 -4
- package/dist/math-mathjax-iaHklMFp.js +172 -0
- package/dist/pie-element-player.css +1 -1
- package/dist/pie-element-player.js +1226 -1269
- package/package.json +3 -23
- package/dist/math-mathjax-gdT6qlBW.js +0 -59
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as e } from "./math-mathjax-
|
|
2
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
1
|
+
import { t as e } from "./math-mathjax-iaHklMFp.js";
|
|
2
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/disclose-version.js
|
|
3
3
|
typeof window < "u" && ((window.__svelte ??= {}).v ??= /* @__PURE__ */ new Set()).add("5");
|
|
4
4
|
//#endregion
|
|
5
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
5
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/constants.js
|
|
6
6
|
var t = {}, n = Symbol("uninitialized"), r = Array.isArray, i = Array.prototype.indexOf, a = Array.prototype.includes, o = Array.from, s = Object.keys, c = Object.defineProperty, l = Object.getOwnPropertyDescriptor, u = Object.prototype, d = Array.prototype, f = Object.getPrototypeOf, p = Object.isExtensible, m = () => {};
|
|
7
7
|
function h(e) {
|
|
8
8
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
@@ -17,86 +17,48 @@ function g() {
|
|
|
17
17
|
reject: t
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
var _ = 1024, v = 2048, y = 4096, b = 8192, ee = 16384, x = 32768, te = 1 << 25, ne = 65536, S = 1 << 19, C = 1 << 20, re = 65536, w = 1 << 21, ie = 1 << 22, T = 1 << 23, E = Symbol("$state"), ae = Symbol("legacy props"),
|
|
20
|
+
var _ = 1024, v = 2048, y = 4096, b = 8192, ee = 16384, x = 32768, te = 1 << 25, ne = 65536, S = 1 << 19, C = 1 << 20, re = 65536, w = 1 << 21, ie = 1 << 22, T = 1 << 23, E = Symbol("$state"), ae = Symbol("component"), oe = Symbol("legacy props"), se = Symbol("attributes"), ce = Symbol("class"), le = Symbol("style"), ue = Symbol("text"), de = new class extends Error {
|
|
21
21
|
name = "StaleReactionError";
|
|
22
22
|
message = "The reaction that called `getAbortSignal()` was re-run or destroyed";
|
|
23
23
|
}();
|
|
24
24
|
globalThis.document?.contentType;
|
|
25
|
-
function de(e) {
|
|
26
|
-
throw Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
27
|
-
}
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region ../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/errors.js
|
|
30
25
|
function fe() {
|
|
31
|
-
throw Error("https://svelte.dev/e/async_derived_orphan");
|
|
32
|
-
}
|
|
33
|
-
function pe(e) {
|
|
34
|
-
throw Error("https://svelte.dev/e/effect_in_teardown");
|
|
35
|
-
}
|
|
36
|
-
function me() {
|
|
37
|
-
throw Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
38
|
-
}
|
|
39
|
-
function he(e) {
|
|
40
|
-
throw Error("https://svelte.dev/e/effect_orphan");
|
|
41
|
-
}
|
|
42
|
-
function ge() {
|
|
43
|
-
throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
44
|
-
}
|
|
45
|
-
function _e() {
|
|
46
|
-
throw Error("https://svelte.dev/e/hydration_failed");
|
|
47
|
-
}
|
|
48
|
-
function ve(e) {
|
|
49
|
-
throw Error("https://svelte.dev/e/props_invalid_value");
|
|
50
|
-
}
|
|
51
|
-
function D() {
|
|
52
|
-
throw Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
53
|
-
}
|
|
54
|
-
function O() {
|
|
55
|
-
throw Error("https://svelte.dev/e/state_prototype_fixed");
|
|
56
|
-
}
|
|
57
|
-
function ye() {
|
|
58
|
-
throw Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
59
|
-
}
|
|
60
|
-
function be() {
|
|
61
|
-
throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
62
|
-
}
|
|
63
|
-
function xe() {
|
|
64
26
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
65
27
|
}
|
|
66
|
-
function
|
|
28
|
+
function pe(e) {
|
|
67
29
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
68
30
|
}
|
|
69
|
-
function
|
|
31
|
+
function me() {
|
|
70
32
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
71
33
|
}
|
|
72
34
|
//#endregion
|
|
73
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
74
|
-
var
|
|
75
|
-
function
|
|
76
|
-
|
|
35
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/hydration.js
|
|
36
|
+
var D = !1;
|
|
37
|
+
function he(e) {
|
|
38
|
+
D = e;
|
|
77
39
|
}
|
|
78
|
-
var
|
|
79
|
-
function
|
|
80
|
-
if (e === null) throw
|
|
81
|
-
return
|
|
40
|
+
var O;
|
|
41
|
+
function k(e) {
|
|
42
|
+
if (e === null) throw pe(), t;
|
|
43
|
+
return O = e;
|
|
82
44
|
}
|
|
83
|
-
function
|
|
84
|
-
return
|
|
45
|
+
function A() {
|
|
46
|
+
return k(/* @__PURE__ */ Gt(O));
|
|
85
47
|
}
|
|
86
|
-
function
|
|
87
|
-
if (
|
|
88
|
-
if (/* @__PURE__ */
|
|
89
|
-
|
|
48
|
+
function ge(e) {
|
|
49
|
+
if (D) {
|
|
50
|
+
if (/* @__PURE__ */ Gt(O) !== null) throw pe(), t;
|
|
51
|
+
O = e;
|
|
90
52
|
}
|
|
91
53
|
}
|
|
92
|
-
function
|
|
93
|
-
if (
|
|
94
|
-
for (var t = e, n =
|
|
95
|
-
|
|
54
|
+
function j(e = 1) {
|
|
55
|
+
if (D) {
|
|
56
|
+
for (var t = e, n = O; t--;) n = /* @__PURE__ */ Gt(n);
|
|
57
|
+
O = n;
|
|
96
58
|
}
|
|
97
59
|
}
|
|
98
|
-
function
|
|
99
|
-
for (var t = 0, n =
|
|
60
|
+
function _e(e = !0) {
|
|
61
|
+
for (var t = 0, n = O;;) {
|
|
100
62
|
if (n.nodeType === 8) {
|
|
101
63
|
var r = n.data;
|
|
102
64
|
if (r === "]") {
|
|
@@ -104,130 +66,306 @@ function Oe(e = !0) {
|
|
|
104
66
|
--t;
|
|
105
67
|
} else (r === "[" || r === "[!" || r[0] === "[" && !isNaN(Number(r.slice(1)))) && (t += 1);
|
|
106
68
|
}
|
|
107
|
-
var i = /* @__PURE__ */
|
|
69
|
+
var i = /* @__PURE__ */ Gt(n);
|
|
108
70
|
e && n.remove(), n = i;
|
|
109
71
|
}
|
|
110
72
|
}
|
|
111
|
-
function
|
|
112
|
-
if (!e || e.nodeType !== 8) throw
|
|
73
|
+
function ve(e) {
|
|
74
|
+
if (!e || e.nodeType !== 8) throw pe(), t;
|
|
113
75
|
return e.data;
|
|
114
76
|
}
|
|
115
77
|
//#endregion
|
|
116
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
117
|
-
function
|
|
78
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/equality.js
|
|
79
|
+
function ye(e) {
|
|
118
80
|
return e === this.v;
|
|
119
81
|
}
|
|
120
|
-
function
|
|
82
|
+
function be(e, t) {
|
|
121
83
|
return e == e ? e !== t || typeof e == "object" && !!e || typeof e == "function" : t == t;
|
|
122
84
|
}
|
|
123
|
-
function
|
|
124
|
-
return !
|
|
85
|
+
function xe(e) {
|
|
86
|
+
return !be(e, this.v);
|
|
87
|
+
}
|
|
88
|
+
function Se(e) {
|
|
89
|
+
throw Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
125
90
|
}
|
|
126
91
|
//#endregion
|
|
127
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
128
|
-
|
|
92
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/errors.js
|
|
93
|
+
function Ce() {
|
|
94
|
+
throw Error("https://svelte.dev/e/async_derived_orphan");
|
|
95
|
+
}
|
|
96
|
+
function we(e) {
|
|
97
|
+
throw Error("https://svelte.dev/e/effect_in_teardown");
|
|
98
|
+
}
|
|
99
|
+
function Te() {
|
|
100
|
+
throw Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
101
|
+
}
|
|
102
|
+
function Ee(e) {
|
|
103
|
+
throw Error("https://svelte.dev/e/effect_orphan");
|
|
104
|
+
}
|
|
105
|
+
function De() {
|
|
106
|
+
throw Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
107
|
+
}
|
|
108
|
+
function Oe() {
|
|
109
|
+
throw Error("https://svelte.dev/e/hydration_failed");
|
|
110
|
+
}
|
|
111
|
+
function ke(e) {
|
|
112
|
+
throw Error("https://svelte.dev/e/props_invalid_value");
|
|
113
|
+
}
|
|
114
|
+
function Ae() {
|
|
115
|
+
throw Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
116
|
+
}
|
|
117
|
+
function je() {
|
|
118
|
+
throw Error("https://svelte.dev/e/state_prototype_fixed");
|
|
119
|
+
}
|
|
120
|
+
function Me() {
|
|
121
|
+
throw Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
122
|
+
}
|
|
123
|
+
function Ne() {
|
|
124
|
+
throw Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
125
|
+
}
|
|
126
|
+
//#endregion
|
|
127
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/context.js
|
|
128
|
+
var M = null;
|
|
129
129
|
function Pe(e) {
|
|
130
|
-
|
|
130
|
+
M = e;
|
|
131
131
|
}
|
|
132
132
|
function Fe(e, t = !1, n) {
|
|
133
|
-
|
|
134
|
-
p:
|
|
133
|
+
M = {
|
|
134
|
+
p: M,
|
|
135
135
|
i: !1,
|
|
136
136
|
c: null,
|
|
137
137
|
e: null,
|
|
138
138
|
s: e,
|
|
139
139
|
x: null,
|
|
140
|
-
r:
|
|
141
|
-
l:
|
|
142
|
-
s: null,
|
|
143
|
-
u: null,
|
|
144
|
-
$: []
|
|
145
|
-
} : null
|
|
140
|
+
r: G,
|
|
141
|
+
l: null
|
|
146
142
|
};
|
|
147
143
|
}
|
|
148
144
|
function Ie(e) {
|
|
149
|
-
var t =
|
|
145
|
+
var t = M, n = t.e;
|
|
150
146
|
if (n !== null) {
|
|
151
147
|
t.e = null;
|
|
152
|
-
for (var r of n)
|
|
148
|
+
for (var r of n) on(r);
|
|
153
149
|
}
|
|
154
|
-
return e !== void 0 && (t.x = e), t.i = !0,
|
|
150
|
+
return e !== void 0 && (t.x = e), t.i = !0, M = t.p, Le(e);
|
|
151
|
+
}
|
|
152
|
+
function Le(e = {}) {
|
|
153
|
+
return c(e, ae, { value: !0 }), e;
|
|
155
154
|
}
|
|
156
|
-
function
|
|
157
|
-
return !
|
|
155
|
+
function Re() {
|
|
156
|
+
return !0;
|
|
158
157
|
}
|
|
159
158
|
//#endregion
|
|
160
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
161
|
-
var
|
|
162
|
-
function
|
|
163
|
-
var e =
|
|
164
|
-
|
|
165
|
-
}
|
|
166
|
-
function
|
|
167
|
-
if (
|
|
168
|
-
var t =
|
|
159
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/task.js
|
|
160
|
+
var ze = [];
|
|
161
|
+
function Be() {
|
|
162
|
+
var e = ze;
|
|
163
|
+
ze = [], h(e);
|
|
164
|
+
}
|
|
165
|
+
function Ve(e) {
|
|
166
|
+
if (ze.length === 0 && !pt) {
|
|
167
|
+
var t = ze;
|
|
169
168
|
queueMicrotask(() => {
|
|
170
|
-
t ===
|
|
169
|
+
t === ze && Be();
|
|
171
170
|
});
|
|
172
171
|
}
|
|
173
|
-
|
|
172
|
+
ze.push(e);
|
|
174
173
|
}
|
|
175
|
-
function
|
|
176
|
-
for (;
|
|
174
|
+
function He() {
|
|
175
|
+
for (; ze.length > 0;) Be();
|
|
177
176
|
}
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
177
|
+
//#endregion
|
|
178
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/status.js
|
|
179
|
+
var Ue = ~(v | y | _);
|
|
180
|
+
function N(e, t) {
|
|
181
|
+
e.f = e.f & Ue | t;
|
|
182
|
+
}
|
|
183
|
+
function We(e) {
|
|
184
|
+
e.f & 512 || e.deps === null ? N(e, _) : N(e, y);
|
|
185
|
+
}
|
|
186
|
+
//#endregion
|
|
187
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/utils.js
|
|
188
|
+
function Ge(e) {
|
|
189
|
+
if (e !== null) for (let t of e) !(t.f & 2) || !(t.f & 65536) || (t.f ^= re, Ge(t.deps));
|
|
190
|
+
}
|
|
191
|
+
function Ke(e, t, n) {
|
|
192
|
+
e.f & 2048 ? t.add(e) : e.f & 4096 && n.add(e), Ge(e.deps), N(e, _);
|
|
183
193
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
194
|
+
//#endregion
|
|
195
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/store.js
|
|
196
|
+
var qe = !1;
|
|
197
|
+
function Je(e) {
|
|
198
|
+
var t = qe;
|
|
199
|
+
try {
|
|
200
|
+
return qe = !1, [e(), qe];
|
|
201
|
+
} finally {
|
|
202
|
+
qe = t;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
//#endregion
|
|
206
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js
|
|
207
|
+
function Ye(e) {
|
|
208
|
+
var t = H, n = G;
|
|
209
|
+
W(null), K(null);
|
|
210
|
+
try {
|
|
211
|
+
return e();
|
|
212
|
+
} finally {
|
|
213
|
+
W(t), K(n);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
//#endregion
|
|
217
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/async.js
|
|
218
|
+
function Xe(e, t, n, r) {
|
|
219
|
+
let i = Re() ? et : it;
|
|
220
|
+
var a = e.filter((e) => !e.settled), o = t.map(i);
|
|
221
|
+
if (n.length === 0 && a.length === 0) {
|
|
222
|
+
r(o);
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
var s = G, c = Ze(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
|
|
226
|
+
function u(e) {
|
|
227
|
+
if (!(s.f & 16384)) {
|
|
228
|
+
c();
|
|
188
229
|
try {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
e = t;
|
|
230
|
+
r([...o, ...e]);
|
|
231
|
+
} catch (e) {
|
|
232
|
+
z(e, s);
|
|
193
233
|
}
|
|
234
|
+
Qe();
|
|
194
235
|
}
|
|
195
|
-
t = t.parent;
|
|
196
236
|
}
|
|
197
|
-
|
|
237
|
+
var d = $e();
|
|
238
|
+
if (n.length === 0) {
|
|
239
|
+
l.then(() => u([])).finally(d);
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
function f() {
|
|
243
|
+
Promise.all(n.map((e) => /* @__PURE__ */ nt(e))).then(u).catch((e) => z(e, s)).finally(d);
|
|
244
|
+
}
|
|
245
|
+
l ? l.then(() => {
|
|
246
|
+
c(), f(), Qe();
|
|
247
|
+
}) : f();
|
|
198
248
|
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
249
|
+
function Ze() {
|
|
250
|
+
var e = G, t = H, n = M, r = P;
|
|
251
|
+
return function(i = !0) {
|
|
252
|
+
K(e), W(t), Pe(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
|
|
253
|
+
};
|
|
204
254
|
}
|
|
205
|
-
function
|
|
206
|
-
|
|
255
|
+
function Qe(e = !0) {
|
|
256
|
+
K(null), W(null), Pe(null), e && P?.deactivate();
|
|
207
257
|
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
258
|
+
function $e() {
|
|
259
|
+
var e = G, t = e.b, n = P, r = !!t?.is_rendered();
|
|
260
|
+
return t?.update_pending_count(1, n), n.increment(r, e), () => {
|
|
261
|
+
t?.update_pending_count(-1, n), n.decrement(r, e);
|
|
262
|
+
};
|
|
212
263
|
}
|
|
213
|
-
|
|
214
|
-
|
|
264
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
265
|
+
function et(e) {
|
|
266
|
+
var t = 2 | v;
|
|
267
|
+
return G !== null && (G.f |= S), {
|
|
268
|
+
ctx: M,
|
|
269
|
+
deps: null,
|
|
270
|
+
effects: null,
|
|
271
|
+
equals: ye,
|
|
272
|
+
f: t,
|
|
273
|
+
fn: e,
|
|
274
|
+
reactions: null,
|
|
275
|
+
rv: 0,
|
|
276
|
+
v: n,
|
|
277
|
+
wv: 0,
|
|
278
|
+
parent: G,
|
|
279
|
+
ac: null
|
|
280
|
+
};
|
|
215
281
|
}
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
282
|
+
var tt = Symbol("obsolete");
|
|
283
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
284
|
+
function nt(e, t, r) {
|
|
285
|
+
let i = G;
|
|
286
|
+
i === null && Ce();
|
|
287
|
+
var a = void 0, o = jt(n), s = !H, c = /* @__PURE__ */ new Set();
|
|
288
|
+
return un(() => {
|
|
289
|
+
var t = G, n = g();
|
|
290
|
+
a = n.promise;
|
|
291
|
+
try {
|
|
292
|
+
Promise.resolve(e()).then(n.resolve, (e) => {
|
|
293
|
+
e !== de && n.reject(e);
|
|
294
|
+
}).finally(Qe);
|
|
295
|
+
} catch (e) {
|
|
296
|
+
n.reject(e), Qe();
|
|
297
|
+
}
|
|
298
|
+
var r = P;
|
|
299
|
+
if (s) {
|
|
300
|
+
if (t.f & 32768) var l = $e();
|
|
301
|
+
if (i.b?.is_rendered()) r.async_deriveds.get(t)?.reject(tt);
|
|
302
|
+
else for (let e of c.values()) e.reject(tt);
|
|
303
|
+
c.add(n), r.async_deriveds.set(t, n);
|
|
304
|
+
}
|
|
305
|
+
let u = (e, t = void 0) => {
|
|
306
|
+
l?.(), c.delete(n), t !== tt && (r.activate(), t ? (o.f |= T, Nt(o, t)) : (o.f & 8388608 && (o.f ^= T), Nt(o, e)), r.deactivate());
|
|
307
|
+
};
|
|
308
|
+
n.promise.then(u, (e) => u(null, e || "unknown"));
|
|
309
|
+
}), rn(() => {
|
|
310
|
+
for (let e of c) e.reject(tt);
|
|
311
|
+
}), new Promise((e) => {
|
|
312
|
+
function t(n) {
|
|
313
|
+
function r() {
|
|
314
|
+
n === a ? e(o) : t(a);
|
|
315
|
+
}
|
|
316
|
+
n.then(r, r);
|
|
317
|
+
}
|
|
318
|
+
t(a);
|
|
319
|
+
});
|
|
320
|
+
}
|
|
321
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
322
|
+
function rt(e) {
|
|
323
|
+
let t = /* @__PURE__ */ et(e);
|
|
324
|
+
return kn(t), t;
|
|
325
|
+
}
|
|
326
|
+
/*#__NO_SIDE_EFFECTS__*/
|
|
327
|
+
function it(e) {
|
|
328
|
+
let t = /* @__PURE__ */ et(e);
|
|
329
|
+
return t.equals = xe, t;
|
|
330
|
+
}
|
|
331
|
+
function at(e) {
|
|
332
|
+
var t = e.effects;
|
|
333
|
+
if (t !== null) {
|
|
334
|
+
e.effects = null;
|
|
335
|
+
for (var n = 0; n < t.length; n += 1) V(t[n]);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
function ot(e) {
|
|
339
|
+
var t, r = G, i = e.parent;
|
|
340
|
+
if (!Dn && i !== null && e.v !== n && i.f & 24576) return fe(), e.v;
|
|
341
|
+
K(i);
|
|
221
342
|
try {
|
|
222
|
-
|
|
343
|
+
e.f &= ~re, at(e), t = Rn(e);
|
|
223
344
|
} finally {
|
|
224
|
-
|
|
345
|
+
K(r);
|
|
346
|
+
}
|
|
347
|
+
return t;
|
|
348
|
+
}
|
|
349
|
+
function st(e) {
|
|
350
|
+
var t = ot(e);
|
|
351
|
+
if (!e.equals(t) && (e.wv = Fn(), (!P?.is_fork || e.deps === null) && (P === null ? e.v = t : (P.capture(e, t, !0), dt?.capture(e, t, !0)), e.deps === null))) {
|
|
352
|
+
N(e, _);
|
|
353
|
+
return;
|
|
225
354
|
}
|
|
355
|
+
Dn || (F === null ? We(e) : (nn() || P?.is_fork) && F.set(e, t));
|
|
356
|
+
}
|
|
357
|
+
function ct(e) {
|
|
358
|
+
if (e.effects !== null) for (let t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac !== null && Ye(() => {
|
|
359
|
+
t.ac.abort(de), t.ac = null;
|
|
360
|
+
}), t.fn !== null && (t.teardown = m), Vn(t, 0), gn(t));
|
|
361
|
+
}
|
|
362
|
+
function lt(e) {
|
|
363
|
+
if (e.effects !== null) for (let t of e.effects) t.teardown && t.fn !== null && Hn(t);
|
|
226
364
|
}
|
|
227
365
|
//#endregion
|
|
228
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
229
|
-
var
|
|
230
|
-
id =
|
|
366
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/batch.js
|
|
367
|
+
var ut = null, P = null, dt = null, F = null, ft = null, pt = !1, mt = !1, ht = null, gt = null, _t = 0, vt = 1, yt = class e {
|
|
368
|
+
id = vt++;
|
|
231
369
|
#e = !1;
|
|
232
370
|
linked = !0;
|
|
233
371
|
#t = null;
|
|
@@ -249,7 +387,7 @@ var Ze = null, Qe = null, F = null, $e = null, I = null, et = null, tt = !1, nt
|
|
|
249
387
|
is_fork = !1;
|
|
250
388
|
#m = !1;
|
|
251
389
|
constructor() {
|
|
252
|
-
|
|
390
|
+
ut === null ? ut = this : (ut.#n = this, this.#t = ut), ut = this;
|
|
253
391
|
}
|
|
254
392
|
#h() {
|
|
255
393
|
if (this.is_fork) return !0;
|
|
@@ -275,31 +413,31 @@ var Ze = null, Qe = null, F = null, $e = null, I = null, et = null, tt = !1, nt
|
|
|
275
413
|
var n = this.#f.get(e);
|
|
276
414
|
if (n) {
|
|
277
415
|
this.#f.delete(e);
|
|
278
|
-
for (var r of n.d)
|
|
279
|
-
for (r of n.m)
|
|
416
|
+
for (var r of n.d) N(r, v), t(r);
|
|
417
|
+
for (r of n.m) N(r, y), t(r);
|
|
280
418
|
}
|
|
281
419
|
this.#p.add(e);
|
|
282
420
|
}
|
|
283
421
|
#g() {
|
|
284
|
-
this.#e = !0,
|
|
285
|
-
for (let e of this.#u) this.#d.delete(e),
|
|
286
|
-
for (let e of this.#d)
|
|
422
|
+
this.#e = !0, _t++ > 1e3 && (this.#x(), bt());
|
|
423
|
+
for (let e of this.#u) this.#d.delete(e), N(e, v), this.schedule(e);
|
|
424
|
+
for (let e of this.#d) N(e, y), this.schedule(e);
|
|
287
425
|
let t = this.#c;
|
|
288
426
|
this.#c = [], this.apply();
|
|
289
|
-
var n =
|
|
427
|
+
var n = ht = [], r = [], i = gt = [];
|
|
290
428
|
for (let e of t) try {
|
|
291
429
|
this.#_(e, n, r);
|
|
292
430
|
} catch (t) {
|
|
293
|
-
throw
|
|
431
|
+
throw Dt(e), this.#h() || this.discard(), t;
|
|
294
432
|
}
|
|
295
|
-
if (
|
|
433
|
+
if (P = null, i.length > 0) {
|
|
296
434
|
var a = e.ensure();
|
|
297
435
|
for (let e of i) a.schedule(e);
|
|
298
436
|
}
|
|
299
|
-
if (
|
|
437
|
+
if (ht = null, gt = null, this.#h()) {
|
|
300
438
|
this.#b(r), this.#b(n);
|
|
301
|
-
for (let [e, t] of this.#f)
|
|
302
|
-
i.length > 0 &&
|
|
439
|
+
for (let [e, t] of this.#f) Et(e, t);
|
|
440
|
+
i.length > 0 && P.#g();
|
|
303
441
|
return;
|
|
304
442
|
}
|
|
305
443
|
let o = this.#v();
|
|
@@ -309,20 +447,20 @@ var Ze = null, Qe = null, F = null, $e = null, I = null, et = null, tt = !1, nt
|
|
|
309
447
|
}
|
|
310
448
|
this.#u.clear(), this.#d.clear();
|
|
311
449
|
for (let e of this.#r) e(this);
|
|
312
|
-
this.#r.clear(),
|
|
313
|
-
var s =
|
|
314
|
-
if (this.#a === 0 && (this.#c.length === 0 || s !== null) &&
|
|
450
|
+
this.#r.clear(), dt = this, St(r), St(n), dt = null, this.#s?.resolve();
|
|
451
|
+
var s = P;
|
|
452
|
+
if (this.#a === 0 && (this.#c.length === 0 || s !== null) && this.#x(), this.#c.length > 0) if (s !== null) {
|
|
315
453
|
let e = s;
|
|
316
454
|
e.#c.push(...this.#c.filter((t) => !e.#c.includes(t)));
|
|
317
455
|
} else s = this;
|
|
318
|
-
s !== null && s.#g();
|
|
456
|
+
s !== null && (kt.clear(), s.#g());
|
|
319
457
|
}
|
|
320
458
|
#_(e, t, n) {
|
|
321
459
|
e.f ^= _;
|
|
322
460
|
for (var r = e.first; r !== null;) {
|
|
323
461
|
var i = r.f, a = (i & 96) != 0;
|
|
324
462
|
if (!(a && i & 1024 || i & 8192 || this.#f.has(r)) && r.fn !== null) {
|
|
325
|
-
a ? r.f ^= _ : i & 4 ? t.push(r) :
|
|
463
|
+
a ? r.f ^= _ : i & 4 ? t.push(r) : In(r) && (i & 16 && this.#d.add(r), Hn(r));
|
|
326
464
|
var o = r.first;
|
|
327
465
|
if (o !== null) {
|
|
328
466
|
r = o;
|
|
@@ -354,88 +492,49 @@ var Ze = null, Qe = null, F = null, $e = null, I = null, et = null, tt = !1, nt
|
|
|
354
492
|
let e = this.async_deriveds.get(t);
|
|
355
493
|
e && n.promise.then(e.resolve).catch(e.reject);
|
|
356
494
|
}
|
|
357
|
-
this.transfer_effects(e.#u, e.#d);
|
|
495
|
+
e.async_deriveds.clear(), this.transfer_effects(e.#u, e.#d);
|
|
358
496
|
let t = (e) => {
|
|
359
497
|
var n = e.reactions;
|
|
360
|
-
if (n !== null) for (let e of n) {
|
|
498
|
+
if (n !== null && !(e.f & 2 && !(e.f & 6144))) for (let e of n) {
|
|
361
499
|
var r = e.f;
|
|
362
500
|
if (r & 2) t(e);
|
|
363
501
|
else {
|
|
364
502
|
var i = e;
|
|
365
|
-
r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i),
|
|
503
|
+
r & 4194320 && !this.async_deriveds.has(i) && (this.#d.delete(i), N(i, v), this.schedule(i));
|
|
366
504
|
}
|
|
367
505
|
}
|
|
368
506
|
};
|
|
369
507
|
for (let e of this.current.keys()) t(e);
|
|
370
|
-
this.oncommit(() => e.discard()), e.#
|
|
508
|
+
this.oncommit(() => e.discard()), e.#x(), P = this, this.#g();
|
|
371
509
|
}
|
|
372
510
|
#b(e) {
|
|
373
|
-
for (var t = 0; t < e.length; t += 1)
|
|
511
|
+
for (var t = 0; t < e.length; t += 1) Ke(e[t], this.#u, this.#d);
|
|
374
512
|
}
|
|
375
513
|
capture(e, t, r = !1) {
|
|
376
|
-
e.v !== n && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, r]),
|
|
514
|
+
e.v !== n && !this.previous.has(e) && this.previous.set(e, e.v), e.f & 8388608 || (this.current.set(e, [t, r]), F?.set(e, t)), this.is_fork || (e.v = t);
|
|
377
515
|
}
|
|
378
516
|
activate() {
|
|
379
|
-
|
|
517
|
+
P = this;
|
|
380
518
|
}
|
|
381
519
|
deactivate() {
|
|
382
|
-
|
|
520
|
+
P = null, F = null;
|
|
383
521
|
}
|
|
384
522
|
flush() {
|
|
385
523
|
try {
|
|
386
|
-
|
|
524
|
+
mt = !0, P = this, this.#g();
|
|
387
525
|
} finally {
|
|
388
|
-
|
|
526
|
+
_t = 0, ft = null, ht = null, gt = null, mt = !1, P = null, F = null, kt.clear();
|
|
389
527
|
}
|
|
390
528
|
}
|
|
391
529
|
discard() {
|
|
392
530
|
for (let e of this.#i) e(this);
|
|
393
|
-
this.#i.clear()
|
|
531
|
+
this.#i.clear();
|
|
532
|
+
for (let e of this.async_deriveds.values()) e.reject(tt);
|
|
533
|
+
this.#x(), this.#s?.resolve();
|
|
394
534
|
}
|
|
395
535
|
register_created_effect(e) {
|
|
396
536
|
this.#l.push(e);
|
|
397
537
|
}
|
|
398
|
-
#x() {
|
|
399
|
-
for (let l = Ze; l !== null; l = l.#n) {
|
|
400
|
-
var e = l.id < this.id, t = [];
|
|
401
|
-
for (let [r, [i, a]] of this.current) {
|
|
402
|
-
if (l.current.has(r)) {
|
|
403
|
-
var n = l.current.get(r)[0];
|
|
404
|
-
if (e && i !== n) l.current.set(r, [i, a]);
|
|
405
|
-
else continue;
|
|
406
|
-
}
|
|
407
|
-
t.push(r);
|
|
408
|
-
}
|
|
409
|
-
if (e) for (let [e, t] of this.async_deriveds) {
|
|
410
|
-
let n = l.async_deriveds.get(e);
|
|
411
|
-
n && t.promise.then(n.resolve).catch(n.reject);
|
|
412
|
-
}
|
|
413
|
-
if (l.#e) {
|
|
414
|
-
var r = [...l.current.keys()].filter((e) => !l.current.get(e)[1] && !this.current.has(e));
|
|
415
|
-
if (r.length === 0) e && l.discard();
|
|
416
|
-
else if (t.length > 0) {
|
|
417
|
-
if (e) for (let e of this.#p) l.unskip_effect(e, (e) => {
|
|
418
|
-
e.f & 4194320 ? l.schedule(e) : l.#b([e]);
|
|
419
|
-
});
|
|
420
|
-
l.activate();
|
|
421
|
-
var i = /* @__PURE__ */ new Set(), a = /* @__PURE__ */ new Map();
|
|
422
|
-
for (var o of t) ut(o, r, i, a);
|
|
423
|
-
a = /* @__PURE__ */ new Map();
|
|
424
|
-
var s = [...l.current].filter(([e, t]) => {
|
|
425
|
-
let n = this.current.get(e);
|
|
426
|
-
return n ? n[0] !== t[0] || n[1] !== t[1] : !0;
|
|
427
|
-
}).map(([e]) => e);
|
|
428
|
-
if (s.length > 0) for (let e of this.#l) !(e.f & 155648) && dt(e, s, a) && (e.f & 4194320 ? (P(e, v), l.schedule(e)) : l.#u.add(e));
|
|
429
|
-
if (l.#c.length > 0 && !l.#m) {
|
|
430
|
-
l.apply();
|
|
431
|
-
for (var c of l.#c) l.#_(c, [], []);
|
|
432
|
-
l.#c = [];
|
|
433
|
-
}
|
|
434
|
-
l.deactivate();
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
538
|
increment(e, t) {
|
|
440
539
|
if (this.#a += 1, e) {
|
|
441
540
|
let e = this.#o.get(t) ?? 0;
|
|
@@ -447,7 +546,7 @@ var Ze = null, Qe = null, F = null, $e = null, I = null, et = null, tt = !1, nt
|
|
|
447
546
|
let e = this.#o.get(t) ?? 0;
|
|
448
547
|
e === 1 ? this.#o.delete(t) : this.#o.set(t, e - 1);
|
|
449
548
|
}
|
|
450
|
-
this.#m || (this.#m = !0,
|
|
549
|
+
this.#m || (this.#m = !0, Ve(() => {
|
|
451
550
|
this.#m = !1, this.linked && this.flush();
|
|
452
551
|
}));
|
|
453
552
|
}
|
|
@@ -466,561 +565,217 @@ var Ze = null, Qe = null, F = null, $e = null, I = null, et = null, tt = !1, nt
|
|
|
466
565
|
return (this.#s ??= g()).promise;
|
|
467
566
|
}
|
|
468
567
|
static ensure() {
|
|
469
|
-
if (
|
|
470
|
-
let t =
|
|
471
|
-
!
|
|
568
|
+
if (P === null) {
|
|
569
|
+
let t = P = new e();
|
|
570
|
+
!mt && !pt && Ve(() => {
|
|
472
571
|
t.#e || t.flush();
|
|
473
572
|
});
|
|
474
573
|
}
|
|
475
|
-
return
|
|
574
|
+
return P;
|
|
476
575
|
}
|
|
477
576
|
apply() {
|
|
478
|
-
|
|
479
|
-
I = null;
|
|
480
|
-
return;
|
|
481
|
-
}
|
|
482
|
-
I = /* @__PURE__ */ new Map();
|
|
483
|
-
for (let [e, [t]] of this.current) I.set(e, t);
|
|
484
|
-
for (let t = Ze; t !== null; t = t.#n) if (!(t === this || t.is_fork)) {
|
|
485
|
-
var e = !1;
|
|
486
|
-
if (t.id < this.id) {
|
|
487
|
-
for (let [n, [, r]] of t.current) if (!r && this.current.has(n)) {
|
|
488
|
-
e = !0;
|
|
489
|
-
break;
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
if (!e) for (let [e, n] of t.previous) I.has(e) || I.set(e, n);
|
|
493
|
-
}
|
|
577
|
+
F = null;
|
|
494
578
|
}
|
|
495
579
|
schedule(e) {
|
|
496
|
-
if (
|
|
580
|
+
if (ft = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
|
|
497
581
|
e.b.defer_effect(e);
|
|
498
582
|
return;
|
|
499
583
|
}
|
|
500
584
|
for (var t = e; t.parent !== null;) {
|
|
501
585
|
t = t.parent;
|
|
502
586
|
var n = t.f;
|
|
503
|
-
if (
|
|
587
|
+
if (ht !== null && t === G && (H === null || !(H.f & 2))) return;
|
|
504
588
|
if (n & 96) {
|
|
505
589
|
if (!(n & 1024)) return;
|
|
506
590
|
t.f ^= _;
|
|
507
591
|
}
|
|
508
592
|
}
|
|
509
|
-
this.#c.push(t);
|
|
510
|
-
}
|
|
511
|
-
#
|
|
512
|
-
if (this.linked) {
|
|
513
|
-
var e = this.#t, t = this.#n;
|
|
514
|
-
e === null
|
|
515
|
-
}
|
|
516
|
-
}
|
|
517
|
-
};
|
|
518
|
-
function L(e) {
|
|
519
|
-
var t = tt;
|
|
520
|
-
tt = !0;
|
|
521
|
-
try {
|
|
522
|
-
var n;
|
|
523
|
-
for (e && (F !== null && !F.is_fork && F.flush(), n = e());;) {
|
|
524
|
-
if (Ve(), F === null) return n;
|
|
525
|
-
F.flush();
|
|
526
|
-
}
|
|
527
|
-
} finally {
|
|
528
|
-
tt = t;
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
function ct() {
|
|
532
|
-
try {
|
|
533
|
-
ge();
|
|
534
|
-
} catch (e) {
|
|
535
|
-
Ue(e, et);
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
var R = null;
|
|
539
|
-
function lt(e) {
|
|
540
|
-
var t = e.length;
|
|
541
|
-
if (t !== 0) {
|
|
542
|
-
for (var n = 0; n < t;) {
|
|
543
|
-
var r = e[n++];
|
|
544
|
-
if (!(r.f & 24576) && Vn(r) && (R = /* @__PURE__ */ new Set(), Kn(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && Cn(r), R?.size > 0)) {
|
|
545
|
-
Pt.clear();
|
|
546
|
-
for (let e of R) {
|
|
547
|
-
if (e.f & 24576) continue;
|
|
548
|
-
let t = [e], n = e.parent;
|
|
549
|
-
for (; n !== null;) R.has(n) && (R.delete(n), t.push(n)), n = n.parent;
|
|
550
|
-
for (let e = t.length - 1; e >= 0; e--) {
|
|
551
|
-
let n = t[e];
|
|
552
|
-
n.f & 24576 || Kn(n);
|
|
553
|
-
}
|
|
554
|
-
}
|
|
555
|
-
R.clear();
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
R = null;
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
function ut(e, t, n, r) {
|
|
562
|
-
if (!n.has(e) && (n.add(e), e.reactions !== null)) for (let i of e.reactions) {
|
|
563
|
-
let e = i.f;
|
|
564
|
-
e & 2 ? ut(i, t, n, r) : e & 4194320 && !(e & 2048) && dt(i, t, r) && (P(i, v), ft(i));
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
function dt(e, t, n) {
|
|
568
|
-
let r = n.get(e);
|
|
569
|
-
if (r !== void 0) return r;
|
|
570
|
-
if (e.deps !== null) for (let r of e.deps) {
|
|
571
|
-
if (a.call(t, r)) return !0;
|
|
572
|
-
if (r.f & 2 && dt(r, t, n)) return n.set(r, !0), !0;
|
|
573
|
-
}
|
|
574
|
-
return n.set(e, !1), !1;
|
|
575
|
-
}
|
|
576
|
-
function ft(e) {
|
|
577
|
-
F.schedule(e);
|
|
578
|
-
}
|
|
579
|
-
function pt(e, t) {
|
|
580
|
-
if (!(e.f & 32 && e.f & 1024)) {
|
|
581
|
-
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), P(e, _);
|
|
582
|
-
for (var n = e.first; n !== null;) pt(n, t), n = n.next;
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
function mt(e) {
|
|
586
|
-
P(e, _);
|
|
587
|
-
for (var t = e.first; t !== null;) mt(t), t = t.next;
|
|
588
|
-
}
|
|
589
|
-
//#endregion
|
|
590
|
-
//#region ../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/reactivity/create-subscriber.js
|
|
591
|
-
function ht(e) {
|
|
592
|
-
let t = 0, n = It(0), r;
|
|
593
|
-
return () => {
|
|
594
|
-
sn() && (Z(n), hn(() => (t === 0 && (r = Yn(() => e(() => Bt(n)))), t += 1, () => {
|
|
595
|
-
Be(() => {
|
|
596
|
-
--t, t === 0 && (r?.(), r = void 0, Bt(n));
|
|
597
|
-
});
|
|
598
|
-
})));
|
|
599
|
-
};
|
|
600
|
-
}
|
|
601
|
-
//#endregion
|
|
602
|
-
//#region ../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
|
|
603
|
-
var gt = ne | S;
|
|
604
|
-
function _t(e, t, n, r) {
|
|
605
|
-
new vt(e, t, n, r);
|
|
606
|
-
}
|
|
607
|
-
var vt = class {
|
|
608
|
-
parent;
|
|
609
|
-
is_pending = !1;
|
|
610
|
-
transform_error;
|
|
611
|
-
#e;
|
|
612
|
-
#t = k ? A : null;
|
|
613
|
-
#n;
|
|
614
|
-
#r;
|
|
615
|
-
#i;
|
|
616
|
-
#a = null;
|
|
617
|
-
#o = null;
|
|
618
|
-
#s = null;
|
|
619
|
-
#c = null;
|
|
620
|
-
#l = 0;
|
|
621
|
-
#u = 0;
|
|
622
|
-
#d = !1;
|
|
623
|
-
#f = /* @__PURE__ */ new Set();
|
|
624
|
-
#p = /* @__PURE__ */ new Set();
|
|
625
|
-
#m = null;
|
|
626
|
-
#h = ht(() => (this.#m = It(this.#l), () => {
|
|
627
|
-
this.#m = null;
|
|
628
|
-
}));
|
|
629
|
-
constructor(e, t, n, r) {
|
|
630
|
-
this.#e = e, this.#n = t, this.#r = (e) => {
|
|
631
|
-
var t = K;
|
|
632
|
-
t.b = this, t.f |= 128, n(e);
|
|
633
|
-
}, this.parent = K.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = _n(() => {
|
|
634
|
-
if (k) {
|
|
635
|
-
let e = this.#t;
|
|
636
|
-
Te();
|
|
637
|
-
let t = e.data === "[!";
|
|
638
|
-
if (e.data.startsWith("[?")) {
|
|
639
|
-
let t = JSON.parse(e.data.slice(2));
|
|
640
|
-
this.#_(t);
|
|
641
|
-
} else t ? this.#v() : this.#g();
|
|
642
|
-
} else this.#y();
|
|
643
|
-
}, gt), k && (this.#e = A);
|
|
644
|
-
}
|
|
645
|
-
#g() {
|
|
646
|
-
try {
|
|
647
|
-
this.#a = vn(() => this.#r(this.#e));
|
|
648
|
-
} catch (e) {
|
|
649
|
-
this.error(e);
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
#_(e) {
|
|
653
|
-
let t = this.#n.failed;
|
|
654
|
-
t && (this.#s = vn(() => {
|
|
655
|
-
t(this.#e, () => e, () => () => {});
|
|
656
|
-
}));
|
|
657
|
-
}
|
|
658
|
-
#v() {
|
|
659
|
-
let e = this.#n.pending;
|
|
660
|
-
e && (this.is_pending = !0, this.#o = vn(() => e(this.#e)), Be(() => {
|
|
661
|
-
var e = this.#c = document.createDocumentFragment(), t = Jt();
|
|
662
|
-
e.append(t), this.#a = this.#x(() => vn(() => this.#r(t))), this.#u === 0 && (this.#e.before(e), this.#c = null, wn(this.#o, () => {
|
|
663
|
-
this.#o = null;
|
|
664
|
-
}), this.#b(F));
|
|
665
|
-
}));
|
|
666
|
-
}
|
|
667
|
-
#y() {
|
|
668
|
-
try {
|
|
669
|
-
if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = vn(() => {
|
|
670
|
-
this.#r(this.#e);
|
|
671
|
-
}), this.#u > 0) {
|
|
672
|
-
var e = this.#c = document.createDocumentFragment();
|
|
673
|
-
On(this.#a, e);
|
|
674
|
-
let t = this.#n.pending;
|
|
675
|
-
this.#o = vn(() => t(this.#e));
|
|
676
|
-
} else this.#b(F);
|
|
677
|
-
} catch (e) {
|
|
678
|
-
this.error(e);
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
#b(e) {
|
|
682
|
-
this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
|
|
683
|
-
}
|
|
684
|
-
defer_effect(e) {
|
|
685
|
-
qe(e, this.#f, this.#p);
|
|
686
|
-
}
|
|
687
|
-
is_rendered() {
|
|
688
|
-
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
689
|
-
}
|
|
690
|
-
has_pending_snippet() {
|
|
691
|
-
return !!this.#n.pending;
|
|
692
|
-
}
|
|
693
|
-
#x(e) {
|
|
694
|
-
var t = K, n = U, r = N;
|
|
695
|
-
q(this.#i), G(this.#i), Pe(this.#i.ctx);
|
|
696
|
-
try {
|
|
697
|
-
return st.ensure(), e();
|
|
698
|
-
} catch (e) {
|
|
699
|
-
return He(e), null;
|
|
700
|
-
} finally {
|
|
701
|
-
q(t), G(n), Pe(r);
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
#S(e, t) {
|
|
705
|
-
if (!this.has_pending_snippet()) {
|
|
706
|
-
this.parent && this.parent.#S(e, t);
|
|
707
|
-
return;
|
|
708
|
-
}
|
|
709
|
-
this.#u += e, this.#u === 0 && (this.#b(t), this.#o && wn(this.#o, () => {
|
|
710
|
-
this.#o = null;
|
|
711
|
-
}), this.#c &&= (this.#e.before(this.#c), null));
|
|
712
|
-
}
|
|
713
|
-
update_pending_count(e, t) {
|
|
714
|
-
this.#S(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, Be(() => {
|
|
715
|
-
this.#d = !1, this.#m && Rt(this.#m, this.#l);
|
|
716
|
-
}));
|
|
717
|
-
}
|
|
718
|
-
get_effect_pending() {
|
|
719
|
-
return this.#h(), Z(this.#m);
|
|
720
|
-
}
|
|
721
|
-
error(e) {
|
|
722
|
-
if (!this.#n.onerror && !this.#n.failed) throw e;
|
|
723
|
-
F?.is_fork ? (this.#a && F.skip_effect(this.#a), this.#o && F.skip_effect(this.#o), this.#s && F.skip_effect(this.#s), F.oncommit(() => {
|
|
724
|
-
this.#C(e);
|
|
725
|
-
})) : this.#C(e);
|
|
726
|
-
}
|
|
727
|
-
#C(e) {
|
|
728
|
-
this.#a &&= (H(this.#a), null), this.#o &&= (H(this.#o), null), this.#s &&= (H(this.#s), null), k && (j(this.#t), De(), j(Oe()));
|
|
729
|
-
var t = this.#n.onerror;
|
|
730
|
-
let n = this.#n.failed;
|
|
731
|
-
var r = !1, i = !1;
|
|
732
|
-
let a = () => {
|
|
733
|
-
if (r) {
|
|
734
|
-
Ce();
|
|
735
|
-
return;
|
|
736
|
-
}
|
|
737
|
-
r = !0, i && be(), this.#s !== null && wn(this.#s, () => {
|
|
738
|
-
this.#s = null;
|
|
739
|
-
}), this.#x(() => {
|
|
740
|
-
this.#y();
|
|
741
|
-
});
|
|
742
|
-
}, o = (e) => {
|
|
743
|
-
try {
|
|
744
|
-
i = !0, t?.(e, a), i = !1;
|
|
745
|
-
} catch (e) {
|
|
746
|
-
Ue(e, this.#i && this.#i.parent);
|
|
747
|
-
}
|
|
748
|
-
n && (this.#s = this.#x(() => {
|
|
749
|
-
try {
|
|
750
|
-
return vn(() => {
|
|
751
|
-
var t = K;
|
|
752
|
-
t.b = this, t.f |= 128, n(this.#e, () => e, () => a);
|
|
753
|
-
});
|
|
754
|
-
} catch (e) {
|
|
755
|
-
return Ue(e, this.#i.parent), null;
|
|
756
|
-
}
|
|
757
|
-
}));
|
|
758
|
-
};
|
|
759
|
-
Be(() => {
|
|
760
|
-
var t;
|
|
761
|
-
try {
|
|
762
|
-
t = this.transform_error(e);
|
|
763
|
-
} catch (e) {
|
|
764
|
-
Ue(e, this.#i && this.#i.parent);
|
|
765
|
-
return;
|
|
766
|
-
}
|
|
767
|
-
typeof t == "object" && t && typeof t.then == "function" ? t.then(o, (e) => Ue(e, this.#i && this.#i.parent)) : o(t);
|
|
768
|
-
});
|
|
769
|
-
}
|
|
770
|
-
};
|
|
771
|
-
//#endregion
|
|
772
|
-
//#region ../../node_modules/.bun/svelte@5.56.1/node_modules/svelte/src/internal/client/reactivity/async.js
|
|
773
|
-
function yt(e, t, n, r) {
|
|
774
|
-
let i = Le() ? Ct : Dt;
|
|
775
|
-
var a = e.filter((e) => !e.settled), o = t.map(i);
|
|
776
|
-
if (n.length === 0 && a.length === 0) {
|
|
777
|
-
r(o);
|
|
778
|
-
return;
|
|
779
|
-
}
|
|
780
|
-
var s = K, c = bt(), l = a.length === 1 ? a[0].promise : a.length > 1 ? Promise.all(a.map((e) => e.promise)) : null;
|
|
781
|
-
function u(e) {
|
|
782
|
-
if (!(s.f & 16384)) {
|
|
783
|
-
c();
|
|
784
|
-
try {
|
|
785
|
-
r([...o, ...e]);
|
|
786
|
-
} catch (e) {
|
|
787
|
-
Ue(e, s);
|
|
788
|
-
}
|
|
789
|
-
xt();
|
|
790
|
-
}
|
|
791
|
-
}
|
|
792
|
-
var d = St();
|
|
793
|
-
if (n.length === 0) {
|
|
794
|
-
l.then(() => u([])).finally(d);
|
|
795
|
-
return;
|
|
796
|
-
}
|
|
797
|
-
function f() {
|
|
798
|
-
Promise.all(n.map((e) => /* @__PURE__ */ Tt(e))).then(u).catch((e) => Ue(e, s)).finally(d);
|
|
799
|
-
}
|
|
800
|
-
l ? l.then(() => {
|
|
801
|
-
c(), f(), xt();
|
|
802
|
-
}) : f();
|
|
803
|
-
}
|
|
804
|
-
function bt() {
|
|
805
|
-
var e = K, t = U, n = N, r = F;
|
|
806
|
-
return function(i = !0) {
|
|
807
|
-
q(e), G(t), Pe(n), i && !(e.f & 16384) && (r?.activate(), r?.apply());
|
|
808
|
-
};
|
|
809
|
-
}
|
|
810
|
-
function xt(e = !0) {
|
|
811
|
-
q(null), G(null), Pe(null), e && F?.deactivate();
|
|
812
|
-
}
|
|
813
|
-
function St() {
|
|
814
|
-
var e = K, t = e.b, n = F, r = !!t?.is_rendered();
|
|
815
|
-
return t?.update_pending_count(1, n), n.increment(r, e), () => {
|
|
816
|
-
t?.update_pending_count(-1, n), n.decrement(r, e);
|
|
817
|
-
};
|
|
818
|
-
}
|
|
819
|
-
/*#__NO_SIDE_EFFECTS__*/
|
|
820
|
-
function Ct(e) {
|
|
821
|
-
var t = 2 | v;
|
|
822
|
-
return K !== null && (K.f |= S), {
|
|
823
|
-
ctx: N,
|
|
824
|
-
deps: null,
|
|
825
|
-
effects: null,
|
|
826
|
-
equals: Ae,
|
|
827
|
-
f: t,
|
|
828
|
-
fn: e,
|
|
829
|
-
reactions: null,
|
|
830
|
-
rv: 0,
|
|
831
|
-
v: n,
|
|
832
|
-
wv: 0,
|
|
833
|
-
parent: K,
|
|
834
|
-
ac: null
|
|
835
|
-
};
|
|
836
|
-
}
|
|
837
|
-
var wt = Symbol("obsolete");
|
|
838
|
-
/*#__NO_SIDE_EFFECTS__*/
|
|
839
|
-
function Tt(e, t, r) {
|
|
840
|
-
let i = K;
|
|
841
|
-
i === null && fe();
|
|
842
|
-
var a = void 0, o = It(n), s = !U, c = /* @__PURE__ */ new Set();
|
|
843
|
-
return mn(() => {
|
|
844
|
-
var t = K, n = g();
|
|
845
|
-
a = n.promise;
|
|
846
|
-
try {
|
|
847
|
-
Promise.resolve(e()).then(n.resolve, (e) => {
|
|
848
|
-
e !== ue && n.reject(e);
|
|
849
|
-
}).finally(xt);
|
|
850
|
-
} catch (e) {
|
|
851
|
-
n.reject(e), xt();
|
|
852
|
-
}
|
|
853
|
-
var r = F;
|
|
854
|
-
if (s) {
|
|
855
|
-
if (t.f & 32768) var l = St();
|
|
856
|
-
if (i.b?.is_rendered()) r.async_deriveds.get(t)?.reject(wt);
|
|
857
|
-
else for (let e of c.values()) e.reject(wt);
|
|
858
|
-
c.add(n), r.async_deriveds.set(t, n);
|
|
859
|
-
}
|
|
860
|
-
let u = (e, t = void 0) => {
|
|
861
|
-
l?.(), c.delete(n), t !== wt && (r.activate(), t ? (o.f |= T, Rt(o, t)) : (o.f & 8388608 && (o.f ^= T), Rt(o, e)), r.deactivate());
|
|
862
|
-
};
|
|
863
|
-
n.promise.then(u, (e) => u(null, e || "unknown"));
|
|
864
|
-
}), cn(() => {
|
|
865
|
-
for (let e of c) e.reject(wt);
|
|
866
|
-
}), new Promise((e) => {
|
|
867
|
-
function t(n) {
|
|
868
|
-
function r() {
|
|
869
|
-
n === a ? e(o) : t(a);
|
|
870
|
-
}
|
|
871
|
-
n.then(r, r);
|
|
593
|
+
this.#c.push(t);
|
|
594
|
+
}
|
|
595
|
+
#x() {
|
|
596
|
+
if (this.linked) {
|
|
597
|
+
var e = this.#t, t = this.#n;
|
|
598
|
+
e === null || (e.#n = t), t === null ? ut = e : t.#t = e, this.linked = !1;
|
|
872
599
|
}
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
600
|
+
}
|
|
601
|
+
};
|
|
602
|
+
function I(e) {
|
|
603
|
+
var t = pt;
|
|
604
|
+
pt = !0;
|
|
605
|
+
try {
|
|
606
|
+
var n;
|
|
607
|
+
for (e && (P !== null && !P.is_fork && P.flush(), n = e());;) {
|
|
608
|
+
if (He(), P === null) return n;
|
|
609
|
+
P.flush();
|
|
610
|
+
}
|
|
611
|
+
} finally {
|
|
612
|
+
pt = t;
|
|
613
|
+
}
|
|
880
614
|
}
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
615
|
+
function bt() {
|
|
616
|
+
try {
|
|
617
|
+
De();
|
|
618
|
+
} catch (e) {
|
|
619
|
+
z(e, ft);
|
|
620
|
+
}
|
|
885
621
|
}
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
for (var n = 0; n < t
|
|
622
|
+
var xt = null;
|
|
623
|
+
function St(e) {
|
|
624
|
+
var t = e.length;
|
|
625
|
+
if (t !== 0) {
|
|
626
|
+
for (var n = 0; n < t;) {
|
|
627
|
+
var r = e[n++];
|
|
628
|
+
if (!(r.f & 24576) && In(r) && (xt = /* @__PURE__ */ new Set(), Hn(r), r.deps === null && r.first === null && r.nodes === null && r.teardown === null && r.ac === null && yn(r), xt?.size > 0)) {
|
|
629
|
+
kt.clear();
|
|
630
|
+
for (let e of xt) {
|
|
631
|
+
if (e.f & 24576) continue;
|
|
632
|
+
let t = [e], n = e.parent;
|
|
633
|
+
for (; n !== null;) xt.has(n) && (xt.delete(n), t.push(n)), n = n.parent;
|
|
634
|
+
for (let e = t.length - 1; e >= 0; e--) {
|
|
635
|
+
let n = t[e];
|
|
636
|
+
n.f & 24576 || Hn(n);
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
xt.clear();
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
xt = null;
|
|
891
643
|
}
|
|
892
644
|
}
|
|
893
|
-
function
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
try {
|
|
898
|
-
e.f &= ~re, Ot(e), t = Un(e);
|
|
899
|
-
} finally {
|
|
900
|
-
q(r);
|
|
645
|
+
function Ct(e, t, n, r) {
|
|
646
|
+
if (!n.has(e) && (n.add(e), e.reactions !== null)) for (let i of e.reactions) {
|
|
647
|
+
let e = i.f;
|
|
648
|
+
e & 2 ? Ct(i, t, n, r) : e & 4194320 && !(e & 2048) && wt(i, t, r) && (N(i, v), Tt(i));
|
|
901
649
|
}
|
|
902
|
-
return t;
|
|
903
650
|
}
|
|
904
|
-
function
|
|
905
|
-
|
|
906
|
-
if (
|
|
907
|
-
|
|
908
|
-
return;
|
|
651
|
+
function wt(e, t, n) {
|
|
652
|
+
let r = n.get(e);
|
|
653
|
+
if (r !== void 0) return r;
|
|
654
|
+
if (e.deps !== null) for (let r of e.deps) {
|
|
655
|
+
if (a.call(t, r)) return !0;
|
|
656
|
+
if (r.f & 2 && wt(r, t, n)) return n.set(r, !0), !0;
|
|
909
657
|
}
|
|
910
|
-
|
|
658
|
+
return n.set(e, !1), !1;
|
|
911
659
|
}
|
|
912
|
-
function
|
|
913
|
-
|
|
660
|
+
function Tt(e) {
|
|
661
|
+
P.schedule(e);
|
|
914
662
|
}
|
|
915
|
-
function
|
|
916
|
-
if (e.
|
|
663
|
+
function Et(e, t) {
|
|
664
|
+
if (!(e.f & 32 && e.f & 1024)) {
|
|
665
|
+
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), N(e, _);
|
|
666
|
+
for (var n = e.first; n !== null;) Et(n, t), n = n.next;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
function Dt(e) {
|
|
670
|
+
N(e, _);
|
|
671
|
+
for (var t = e.first; t !== null;) Dt(t), t = t.next;
|
|
917
672
|
}
|
|
918
673
|
//#endregion
|
|
919
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
920
|
-
var
|
|
921
|
-
function
|
|
674
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/sources.js
|
|
675
|
+
var Ot = /* @__PURE__ */ new Set(), kt = /* @__PURE__ */ new Map(), At = !1;
|
|
676
|
+
function jt(e, t) {
|
|
922
677
|
return {
|
|
923
678
|
f: 0,
|
|
924
679
|
v: e,
|
|
925
680
|
reactions: null,
|
|
926
|
-
equals:
|
|
681
|
+
equals: ye,
|
|
927
682
|
rv: 0,
|
|
928
683
|
wv: 0
|
|
929
684
|
};
|
|
930
685
|
}
|
|
931
686
|
/*#__NO_SIDE_EFFECTS__*/
|
|
932
|
-
function
|
|
933
|
-
let n =
|
|
934
|
-
return
|
|
687
|
+
function L(e, t) {
|
|
688
|
+
let n = jt(e, t);
|
|
689
|
+
return kn(n), n;
|
|
935
690
|
}
|
|
936
691
|
/*#__NO_SIDE_EFFECTS__*/
|
|
937
|
-
function
|
|
938
|
-
let r =
|
|
939
|
-
return t || (r.equals =
|
|
692
|
+
function Mt(e, t = !1, n = !0) {
|
|
693
|
+
let r = jt(e);
|
|
694
|
+
return t || (r.equals = xe), r;
|
|
940
695
|
}
|
|
941
|
-
function
|
|
942
|
-
return
|
|
696
|
+
function R(e, t, n = !1) {
|
|
697
|
+
return H !== null && (!U || H.f & 131072) && Re() && H.f & 4325394 && (q === null || !q.has(e)) && Me(), Nt(e, n ? Lt(t) : t, gt);
|
|
943
698
|
}
|
|
944
|
-
function
|
|
699
|
+
function Nt(e, t, n = null) {
|
|
945
700
|
if (!e.equals(t)) {
|
|
946
|
-
|
|
947
|
-
var r =
|
|
701
|
+
Dn ? kt.set(e, t) : kt.has(e) || kt.set(e, e.v);
|
|
702
|
+
var r = yt.ensure();
|
|
948
703
|
if (r.capture(e, t), e.f & 2) {
|
|
949
704
|
let t = e;
|
|
950
|
-
e.f & 2048 &&
|
|
705
|
+
e.f & 2048 && ot(t), F === null && We(t);
|
|
951
706
|
}
|
|
952
|
-
e.wv =
|
|
707
|
+
e.wv = Fn(), It(e, v, n), Re() && G !== null && G.f & 1024 && !(G.f & 96) && (X === null ? An([e]) : X.push(e)), !r.is_fork && Ot.size > 0 && !At && Pt();
|
|
953
708
|
}
|
|
954
709
|
return t;
|
|
955
710
|
}
|
|
956
|
-
function
|
|
957
|
-
|
|
958
|
-
for (let e of
|
|
959
|
-
e.f & 1024 &&
|
|
711
|
+
function Pt() {
|
|
712
|
+
At = !1;
|
|
713
|
+
for (let e of Ot) {
|
|
714
|
+
e.f & 1024 && N(e, y);
|
|
960
715
|
let t;
|
|
961
716
|
try {
|
|
962
|
-
t =
|
|
717
|
+
t = In(e);
|
|
963
718
|
} catch {
|
|
964
719
|
t = !0;
|
|
965
720
|
}
|
|
966
|
-
t &&
|
|
721
|
+
t && Hn(e);
|
|
967
722
|
}
|
|
968
|
-
|
|
723
|
+
Ot.clear();
|
|
969
724
|
}
|
|
970
|
-
function
|
|
971
|
-
|
|
725
|
+
function Ft(e) {
|
|
726
|
+
R(e, e.v + 1);
|
|
972
727
|
}
|
|
973
|
-
function
|
|
728
|
+
function It(e, t, n) {
|
|
974
729
|
var r = e.reactions;
|
|
975
|
-
if (r !== null) for (var i =
|
|
730
|
+
if (r !== null) for (var i = Re(), a = r.length, o = 0; o < a; o++) {
|
|
976
731
|
var s = r[o], c = s.f;
|
|
977
|
-
if (!(!i && s ===
|
|
732
|
+
if (!(!i && s === G)) {
|
|
978
733
|
var l = (c & v) === 0;
|
|
979
|
-
if (l &&
|
|
734
|
+
if (l && N(s, t), c & 131072) Ot.add(s);
|
|
980
735
|
else if (c & 2) {
|
|
981
736
|
var u = s;
|
|
982
|
-
|
|
737
|
+
F?.delete(u), c & 65536 || (c & 512 && (G === null || !(G.f & 2097152)) && (s.f |= re), It(u, y, n));
|
|
983
738
|
} else if (l) {
|
|
984
739
|
var d = s;
|
|
985
|
-
c & 16 &&
|
|
740
|
+
c & 16 && xt !== null && xt.add(d), n === null ? Tt(d) : n.push(d);
|
|
986
741
|
}
|
|
987
742
|
}
|
|
988
743
|
}
|
|
989
744
|
}
|
|
990
|
-
function
|
|
991
|
-
if (typeof e != "object" || !e || E in e) return e;
|
|
745
|
+
function Lt(e) {
|
|
746
|
+
if (typeof e != "object" || !e || E in e || ae in e) return e;
|
|
992
747
|
let t = f(e);
|
|
993
748
|
if (t !== u && t !== d) return e;
|
|
994
|
-
var i = /* @__PURE__ */ new Map(), a = r(e), o = /* @__PURE__ */
|
|
995
|
-
if (
|
|
996
|
-
var t =
|
|
997
|
-
|
|
749
|
+
var i = /* @__PURE__ */ new Map(), a = r(e), o = /* @__PURE__ */ L(0), s = null, c = Nn, p = (e) => {
|
|
750
|
+
if (Nn === c) return e();
|
|
751
|
+
var t = H, n = Nn;
|
|
752
|
+
W(null), Pn(c);
|
|
998
753
|
var r = e();
|
|
999
|
-
return
|
|
754
|
+
return W(t), Pn(n), r;
|
|
1000
755
|
};
|
|
1001
|
-
return a && i.set("length", /* @__PURE__ */
|
|
756
|
+
return a && i.set("length", /* @__PURE__ */ L(e.length, s)), new Proxy(e, {
|
|
1002
757
|
defineProperty(e, t, n) {
|
|
1003
|
-
(!("value" in n) || n.configurable === !1 || n.enumerable === !1 || n.writable === !1) &&
|
|
758
|
+
(!("value" in n) || n.configurable === !1 || n.enumerable === !1 || n.writable === !1) && Ae();
|
|
1004
759
|
var r = i.get(t);
|
|
1005
760
|
return r === void 0 ? p(() => {
|
|
1006
|
-
var e = /* @__PURE__ */
|
|
761
|
+
var e = /* @__PURE__ */ L(n.value, s);
|
|
1007
762
|
return i.set(t, e), e;
|
|
1008
|
-
}) :
|
|
763
|
+
}) : R(r, n.value, !0), !0;
|
|
1009
764
|
},
|
|
1010
765
|
deleteProperty(e, t) {
|
|
1011
766
|
var r = i.get(t);
|
|
1012
767
|
if (r === void 0) {
|
|
1013
768
|
if (t in e) {
|
|
1014
|
-
let e = p(() => /* @__PURE__ */
|
|
1015
|
-
i.set(t, e),
|
|
769
|
+
let e = p(() => /* @__PURE__ */ L(n, s));
|
|
770
|
+
i.set(t, e), Ft(o);
|
|
1016
771
|
}
|
|
1017
|
-
} else
|
|
772
|
+
} else R(r, n), Ft(o);
|
|
1018
773
|
return !0;
|
|
1019
774
|
},
|
|
1020
775
|
get(t, r, a) {
|
|
1021
776
|
if (r === E) return e;
|
|
1022
777
|
var o = i.get(r), c = r in t;
|
|
1023
|
-
if (o === void 0 && (!c || l(t, r)?.writable) && (o = p(() => /* @__PURE__ */
|
|
778
|
+
if (o === void 0 && (!c || l(t, r)?.writable) && (o = p(() => /* @__PURE__ */ L(Lt(c ? t[r] : n), s)), i.set(r, o)), o !== void 0) {
|
|
1024
779
|
var u = Z(o);
|
|
1025
780
|
return u === n ? void 0 : u;
|
|
1026
781
|
}
|
|
@@ -1045,27 +800,27 @@ function Ht(e) {
|
|
|
1045
800
|
has(e, t) {
|
|
1046
801
|
if (t === E) return !0;
|
|
1047
802
|
var r = i.get(t), a = r !== void 0 && r.v !== n || Reflect.has(e, t);
|
|
1048
|
-
return (r !== void 0 ||
|
|
803
|
+
return (r !== void 0 || G !== null && (!a || l(e, t)?.writable)) && (r === void 0 && (r = p(() => /* @__PURE__ */ L(a ? Lt(e[t]) : n, s)), i.set(t, r)), Z(r) === n) ? !1 : a;
|
|
1049
804
|
},
|
|
1050
805
|
set(e, t, r, c) {
|
|
1051
806
|
var u = i.get(t), d = t in e;
|
|
1052
807
|
if (a && t === "length") for (var f = r; f < u.v; f += 1) {
|
|
1053
808
|
var m = i.get(f + "");
|
|
1054
|
-
m === void 0 ? f in e && (m = p(() => /* @__PURE__ */
|
|
809
|
+
m === void 0 ? f in e && (m = p(() => /* @__PURE__ */ L(n, s)), i.set(f + "", m)) : R(m, n);
|
|
1055
810
|
}
|
|
1056
|
-
if (u === void 0) (!d || l(e, t)?.writable) && (u = p(() => /* @__PURE__ */
|
|
811
|
+
if (u === void 0) (!d || l(e, t)?.writable) && (u = p(() => /* @__PURE__ */ L(void 0, s)), R(u, Lt(r)), i.set(t, u));
|
|
1057
812
|
else {
|
|
1058
813
|
d = u.v !== n;
|
|
1059
|
-
var h = p(() =>
|
|
1060
|
-
|
|
814
|
+
var h = p(() => Lt(r));
|
|
815
|
+
R(u, h);
|
|
1061
816
|
}
|
|
1062
817
|
var g = Reflect.getOwnPropertyDescriptor(e, t);
|
|
1063
818
|
if (g?.set && g.set.call(c, r), !d) {
|
|
1064
819
|
if (a && typeof t == "string") {
|
|
1065
820
|
var _ = i.get("length"), v = Number(t);
|
|
1066
|
-
Number.isInteger(v) && v >= _.v &&
|
|
821
|
+
Number.isInteger(v) && v >= _.v && R(_, v + 1);
|
|
1067
822
|
}
|
|
1068
|
-
|
|
823
|
+
Ft(o);
|
|
1069
824
|
}
|
|
1070
825
|
return !0;
|
|
1071
826
|
},
|
|
@@ -1079,102 +834,108 @@ function Ht(e) {
|
|
|
1079
834
|
return t;
|
|
1080
835
|
},
|
|
1081
836
|
setPrototypeOf() {
|
|
1082
|
-
|
|
837
|
+
je();
|
|
1083
838
|
}
|
|
1084
839
|
});
|
|
1085
840
|
}
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
"push",
|
|
1091
|
-
"reverse",
|
|
1092
|
-
"shift",
|
|
1093
|
-
"sort",
|
|
1094
|
-
"splice",
|
|
1095
|
-
"unshift"
|
|
1096
|
-
]);
|
|
1097
|
-
var Ut, Wt, Gt, Kt;
|
|
1098
|
-
function qt() {
|
|
1099
|
-
if (Ut === void 0) {
|
|
1100
|
-
Ut = window, Wt = /Firefox/.test(navigator.userAgent);
|
|
841
|
+
var Rt, zt, Bt, Vt;
|
|
842
|
+
function Ht() {
|
|
843
|
+
if (Rt === void 0) {
|
|
844
|
+
Rt = window, zt = /Firefox/.test(navigator.userAgent);
|
|
1101
845
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
1102
|
-
|
|
846
|
+
Bt = l(t, "firstChild").get, Vt = l(t, "nextSibling").get, p(e) && (e[ce] = void 0, e[se] = null, e[le] = void 0, e.__e = void 0), p(n) && (n[ue] = void 0);
|
|
1103
847
|
}
|
|
1104
848
|
}
|
|
1105
|
-
function
|
|
849
|
+
function Ut(e = "") {
|
|
1106
850
|
return document.createTextNode(e);
|
|
1107
851
|
}
|
|
1108
852
|
/*@__NO_SIDE_EFFECTS__*/
|
|
1109
|
-
function
|
|
1110
|
-
return
|
|
853
|
+
function Wt(e) {
|
|
854
|
+
return Bt.call(e);
|
|
1111
855
|
}
|
|
1112
856
|
/*@__NO_SIDE_EFFECTS__*/
|
|
1113
|
-
function
|
|
1114
|
-
return
|
|
857
|
+
function Gt(e) {
|
|
858
|
+
return Vt.call(e);
|
|
1115
859
|
}
|
|
1116
|
-
function
|
|
1117
|
-
if (!
|
|
1118
|
-
var n = /* @__PURE__ */
|
|
1119
|
-
if (n === null) n =
|
|
860
|
+
function Kt(e, t) {
|
|
861
|
+
if (!D) return /* @__PURE__ */ Wt(e);
|
|
862
|
+
var n = /* @__PURE__ */ Wt(O);
|
|
863
|
+
if (n === null) n = O.appendChild(Ut());
|
|
1120
864
|
else if (t && n.nodeType !== 3) {
|
|
1121
|
-
var r =
|
|
1122
|
-
return n?.before(r),
|
|
865
|
+
var r = Ut();
|
|
866
|
+
return n?.before(r), k(r), r;
|
|
1123
867
|
}
|
|
1124
|
-
return t &&
|
|
868
|
+
return t && Qt(n), k(n), n;
|
|
1125
869
|
}
|
|
1126
|
-
function
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
870
|
+
function qt(e, t = !1) {
|
|
871
|
+
if (!D) return /* @__PURE__ */ Wt(e);
|
|
872
|
+
var n = Kt(e, t);
|
|
873
|
+
return ge(e), n;
|
|
874
|
+
}
|
|
875
|
+
function Jt(e, t = 1, n = !1) {
|
|
876
|
+
let r = D ? O : e;
|
|
877
|
+
for (var i; t--;) i = r, r = /* @__PURE__ */ Gt(r);
|
|
878
|
+
if (!D) return r;
|
|
1130
879
|
if (n) {
|
|
1131
880
|
if (r?.nodeType !== 3) {
|
|
1132
|
-
var a =
|
|
1133
|
-
return r === null ? i?.after(a) : r.before(a),
|
|
881
|
+
var a = Ut();
|
|
882
|
+
return r === null ? i?.after(a) : r.before(a), k(a), a;
|
|
1134
883
|
}
|
|
1135
|
-
|
|
884
|
+
Qt(r);
|
|
1136
885
|
}
|
|
1137
|
-
return
|
|
886
|
+
return k(r), r;
|
|
1138
887
|
}
|
|
1139
|
-
function
|
|
888
|
+
function Yt(e) {
|
|
1140
889
|
e.textContent = "";
|
|
1141
890
|
}
|
|
1142
|
-
function
|
|
1143
|
-
return !
|
|
891
|
+
function Xt() {
|
|
892
|
+
return !1;
|
|
1144
893
|
}
|
|
1145
|
-
function
|
|
894
|
+
function Zt(e, t, n) {
|
|
1146
895
|
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);
|
|
1147
896
|
}
|
|
1148
|
-
function
|
|
897
|
+
function Qt(e) {
|
|
1149
898
|
if (e.nodeValue.length < 65536) return;
|
|
1150
899
|
let t = e.nextSibling;
|
|
1151
900
|
for (; t !== null && t.nodeType === 3;) t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1152
901
|
}
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
902
|
+
function $t(e) {
|
|
903
|
+
var t = G;
|
|
904
|
+
if (t === null) return H.f |= T, e;
|
|
905
|
+
if (!(t.f & 32768) && !(t.f & 4)) throw e;
|
|
906
|
+
z(e, t);
|
|
907
|
+
}
|
|
908
|
+
function z(e, t) {
|
|
909
|
+
if (!(t !== null && t.f & 16384)) {
|
|
910
|
+
for (; t !== null;) {
|
|
911
|
+
if (t.f & 128 && !(t.f & 33570816)) {
|
|
912
|
+
if (!(t.f & 32768)) throw e;
|
|
913
|
+
try {
|
|
914
|
+
t.b.error(e);
|
|
915
|
+
return;
|
|
916
|
+
} catch (t) {
|
|
917
|
+
e = t;
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
t = t.parent;
|
|
921
|
+
}
|
|
922
|
+
throw e;
|
|
1162
923
|
}
|
|
1163
924
|
}
|
|
1164
925
|
//#endregion
|
|
1165
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
1166
|
-
function
|
|
1167
|
-
|
|
926
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/effects.js
|
|
927
|
+
function en(e) {
|
|
928
|
+
G === null && (H === null && Ee(e), Te()), Dn && we(e);
|
|
1168
929
|
}
|
|
1169
|
-
function
|
|
930
|
+
function tn(e, t) {
|
|
1170
931
|
var n = t.last;
|
|
1171
932
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
1172
933
|
}
|
|
1173
|
-
function
|
|
1174
|
-
var n =
|
|
934
|
+
function B(e, t) {
|
|
935
|
+
var n = G;
|
|
1175
936
|
n !== null && n.f & 8192 && (e |= b);
|
|
1176
937
|
var r = {
|
|
1177
|
-
ctx:
|
|
938
|
+
ctx: M,
|
|
1178
939
|
deps: null,
|
|
1179
940
|
nodes: null,
|
|
1180
941
|
f: e | v | 512,
|
|
@@ -1189,139 +950,141 @@ function V(e, t) {
|
|
|
1189
950
|
wv: 0,
|
|
1190
951
|
ac: null
|
|
1191
952
|
};
|
|
1192
|
-
|
|
953
|
+
P?.register_created_effect(r);
|
|
1193
954
|
var i = r;
|
|
1194
|
-
if (e & 4)
|
|
955
|
+
if (e & 4) ht === null ? yt.ensure().schedule(r) : ht.push(r);
|
|
1195
956
|
else if (t !== null) {
|
|
1196
957
|
try {
|
|
1197
|
-
|
|
958
|
+
Hn(r);
|
|
1198
959
|
} catch (e) {
|
|
1199
|
-
throw
|
|
960
|
+
throw V(r), e;
|
|
1200
961
|
}
|
|
1201
962
|
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 |= ne));
|
|
1202
963
|
}
|
|
1203
|
-
if (i !== null && (i.parent = n, n !== null &&
|
|
1204
|
-
var a =
|
|
964
|
+
if (i !== null && (i.parent = n, n !== null && tn(i, n), H !== null && H.f & 2 && !(e & 64))) {
|
|
965
|
+
var a = H;
|
|
1205
966
|
(a.effects ??= []).push(i);
|
|
1206
967
|
}
|
|
1207
968
|
return r;
|
|
1208
969
|
}
|
|
1209
|
-
function
|
|
1210
|
-
return
|
|
970
|
+
function nn() {
|
|
971
|
+
return H !== null && !U;
|
|
1211
972
|
}
|
|
1212
|
-
function
|
|
1213
|
-
let t =
|
|
1214
|
-
return
|
|
973
|
+
function rn(e) {
|
|
974
|
+
let t = B(8, null);
|
|
975
|
+
return N(t, _), t.teardown = e, t;
|
|
1215
976
|
}
|
|
1216
|
-
function
|
|
1217
|
-
|
|
1218
|
-
var t =
|
|
1219
|
-
if (!
|
|
1220
|
-
var n =
|
|
977
|
+
function an(e) {
|
|
978
|
+
en("$effect");
|
|
979
|
+
var t = G.f;
|
|
980
|
+
if (!H && t & 32 && M !== null && !M.i) {
|
|
981
|
+
var n = M;
|
|
1221
982
|
(n.e ??= []).push(e);
|
|
1222
|
-
} else return
|
|
983
|
+
} else return on(e);
|
|
1223
984
|
}
|
|
1224
|
-
function
|
|
1225
|
-
return
|
|
985
|
+
function on(e) {
|
|
986
|
+
return B(4 | C, e);
|
|
1226
987
|
}
|
|
1227
|
-
function
|
|
1228
|
-
|
|
1229
|
-
let t =
|
|
988
|
+
function sn(e) {
|
|
989
|
+
yt.ensure();
|
|
990
|
+
let t = B(64 | S, e);
|
|
1230
991
|
return () => {
|
|
1231
|
-
|
|
992
|
+
V(t);
|
|
1232
993
|
};
|
|
1233
994
|
}
|
|
1234
|
-
function
|
|
1235
|
-
|
|
1236
|
-
let t =
|
|
995
|
+
function cn(e) {
|
|
996
|
+
yt.ensure();
|
|
997
|
+
let t = B(64 | S, e);
|
|
1237
998
|
return (e = {}) => new Promise((n) => {
|
|
1238
|
-
e.outro ?
|
|
1239
|
-
|
|
1240
|
-
}) : (
|
|
999
|
+
e.outro ? bn(t, () => {
|
|
1000
|
+
V(t), n(void 0);
|
|
1001
|
+
}) : (V(t), n(void 0));
|
|
1241
1002
|
});
|
|
1242
1003
|
}
|
|
1243
|
-
function
|
|
1244
|
-
return
|
|
1004
|
+
function ln(e) {
|
|
1005
|
+
return B(4, e);
|
|
1245
1006
|
}
|
|
1246
|
-
function
|
|
1247
|
-
return
|
|
1007
|
+
function un(e) {
|
|
1008
|
+
return B(ie | S, e);
|
|
1248
1009
|
}
|
|
1249
|
-
function
|
|
1250
|
-
return
|
|
1010
|
+
function dn(e, t = 0) {
|
|
1011
|
+
return B(8 | t, e);
|
|
1251
1012
|
}
|
|
1252
|
-
function
|
|
1253
|
-
|
|
1254
|
-
|
|
1013
|
+
function fn(e, t = [], n = [], r = []) {
|
|
1014
|
+
Xe(r, t, n, (t) => {
|
|
1015
|
+
B(8, () => {
|
|
1255
1016
|
e(...t.map(Z));
|
|
1256
1017
|
});
|
|
1257
1018
|
});
|
|
1258
1019
|
}
|
|
1259
|
-
function
|
|
1260
|
-
return
|
|
1020
|
+
function pn(e, t = 0) {
|
|
1021
|
+
return B(16 | t, e);
|
|
1261
1022
|
}
|
|
1262
|
-
function
|
|
1263
|
-
return
|
|
1023
|
+
function mn(e) {
|
|
1024
|
+
return B(32 | S, e);
|
|
1264
1025
|
}
|
|
1265
|
-
function
|
|
1026
|
+
function hn(e) {
|
|
1266
1027
|
var t = e.teardown;
|
|
1267
1028
|
if (t !== null) {
|
|
1268
|
-
let
|
|
1269
|
-
|
|
1029
|
+
let n = Dn, r = H;
|
|
1030
|
+
On(!0), W(null);
|
|
1270
1031
|
try {
|
|
1271
1032
|
t.call(null);
|
|
1033
|
+
} catch (t) {
|
|
1034
|
+
z(t, e.parent);
|
|
1272
1035
|
} finally {
|
|
1273
|
-
|
|
1036
|
+
On(n), W(r);
|
|
1274
1037
|
}
|
|
1275
1038
|
}
|
|
1276
1039
|
}
|
|
1277
|
-
function
|
|
1040
|
+
function gn(e, t = !1) {
|
|
1278
1041
|
var n = e.first;
|
|
1279
1042
|
for (e.first = e.last = null; n !== null;) {
|
|
1280
1043
|
let e = n.ac;
|
|
1281
|
-
e !== null &&
|
|
1282
|
-
e.abort(
|
|
1044
|
+
e !== null && Ye(() => {
|
|
1045
|
+
e.abort(de);
|
|
1283
1046
|
});
|
|
1284
1047
|
var r = n.next;
|
|
1285
|
-
n.f & 64 ? n.parent = null :
|
|
1048
|
+
n.f & 64 ? n.parent = null : V(n, t), n = r;
|
|
1286
1049
|
}
|
|
1287
1050
|
}
|
|
1288
|
-
function
|
|
1051
|
+
function _n(e) {
|
|
1289
1052
|
for (var t = e.first; t !== null;) {
|
|
1290
1053
|
var n = t.next;
|
|
1291
|
-
t.f & 32 ||
|
|
1054
|
+
t.f & 32 || V(t), t = n;
|
|
1292
1055
|
}
|
|
1293
1056
|
}
|
|
1294
|
-
function
|
|
1057
|
+
function V(e, t = !0) {
|
|
1295
1058
|
var n = !1;
|
|
1296
|
-
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (
|
|
1059
|
+
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (vn(e.nodes.start, e.nodes.end), n = !0), e.f |= te, gn(e, t && !n), Vn(e, 0);
|
|
1297
1060
|
var r = e.nodes && e.nodes.t;
|
|
1298
1061
|
if (r !== null) for (let e of r) e.stop();
|
|
1299
|
-
|
|
1062
|
+
hn(e), e.f ^= te, e.f |= ee;
|
|
1300
1063
|
var i = e.parent;
|
|
1301
|
-
i !== null && i.first !== null &&
|
|
1064
|
+
i !== null && i.first !== null && yn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1302
1065
|
}
|
|
1303
|
-
function
|
|
1066
|
+
function vn(e, t) {
|
|
1304
1067
|
for (; e !== null;) {
|
|
1305
|
-
var n = e === t ? null : /* @__PURE__ */
|
|
1068
|
+
var n = e === t ? null : /* @__PURE__ */ Gt(e);
|
|
1306
1069
|
e.remove(), e = n;
|
|
1307
1070
|
}
|
|
1308
1071
|
}
|
|
1309
|
-
function
|
|
1072
|
+
function yn(e) {
|
|
1310
1073
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1311
1074
|
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1312
1075
|
}
|
|
1313
|
-
function
|
|
1076
|
+
function bn(e, t, n = !0) {
|
|
1314
1077
|
var r = [];
|
|
1315
|
-
|
|
1078
|
+
e.f |= 256, xn(e, r, !0);
|
|
1316
1079
|
var i = () => {
|
|
1317
|
-
n &&
|
|
1080
|
+
n && V(e), t && t();
|
|
1318
1081
|
}, a = r.length;
|
|
1319
1082
|
if (a > 0) {
|
|
1320
1083
|
var o = () => --a || i();
|
|
1321
1084
|
for (var s of r) s.out(o);
|
|
1322
1085
|
} else i();
|
|
1323
1086
|
}
|
|
1324
|
-
function
|
|
1087
|
+
function xn(e, t, n) {
|
|
1325
1088
|
if (!(e.f & 8192)) {
|
|
1326
1089
|
e.f ^= b;
|
|
1327
1090
|
var r = e.nodes && e.nodes.t;
|
|
@@ -1330,110 +1093,114 @@ function Tn(e, t, n) {
|
|
|
1330
1093
|
var a = i.next;
|
|
1331
1094
|
if (!(i.f & 64)) {
|
|
1332
1095
|
var o = (i.f & 65536) != 0 || (i.f & 32) != 0 && (e.f & 16) != 0;
|
|
1333
|
-
|
|
1096
|
+
xn(i, t, o ? n : !1);
|
|
1334
1097
|
}
|
|
1335
1098
|
i = a;
|
|
1336
1099
|
}
|
|
1337
1100
|
}
|
|
1338
1101
|
}
|
|
1339
|
-
function
|
|
1340
|
-
|
|
1102
|
+
function Sn(e) {
|
|
1103
|
+
e.f &= -257, Cn(e, !0);
|
|
1341
1104
|
}
|
|
1342
|
-
function
|
|
1343
|
-
if (e.f & 8192) {
|
|
1344
|
-
e.f ^= b, e.f & 1024 || (
|
|
1105
|
+
function Cn(e, t) {
|
|
1106
|
+
if (!(e.f & 256) && e.f & 8192) {
|
|
1107
|
+
e.f ^= b, e.f & 1024 || (N(e, v), yt.ensure().schedule(e));
|
|
1345
1108
|
for (var n = e.first; n !== null;) {
|
|
1346
1109
|
var r = n.next, i = (n.f & 65536) != 0 || (n.f & 32) != 0;
|
|
1347
|
-
|
|
1110
|
+
Cn(n, i ? t : !1), n = r;
|
|
1348
1111
|
}
|
|
1349
1112
|
var a = e.nodes && e.nodes.t;
|
|
1350
1113
|
if (a !== null) for (let e of a) (e.is_global || t) && e.in();
|
|
1351
1114
|
}
|
|
1352
1115
|
}
|
|
1353
|
-
function
|
|
1116
|
+
function wn(e, t) {
|
|
1354
1117
|
if (e.nodes) for (var n = e.nodes.start, r = e.nodes.end; n !== null;) {
|
|
1355
|
-
var i = n === r ? null : /* @__PURE__ */
|
|
1118
|
+
var i = n === r ? null : /* @__PURE__ */ Gt(n);
|
|
1356
1119
|
t.append(n), n = i;
|
|
1357
1120
|
}
|
|
1358
1121
|
}
|
|
1359
1122
|
//#endregion
|
|
1360
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
1361
|
-
var
|
|
1362
|
-
function
|
|
1363
|
-
|
|
1123
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/legacy.js
|
|
1124
|
+
var Tn = null, En = !1, Dn = !1;
|
|
1125
|
+
function On(e) {
|
|
1126
|
+
Dn = e;
|
|
1364
1127
|
}
|
|
1365
|
-
var
|
|
1366
|
-
function
|
|
1367
|
-
|
|
1128
|
+
var H = null, U = !1;
|
|
1129
|
+
function W(e) {
|
|
1130
|
+
H = e;
|
|
1368
1131
|
}
|
|
1369
|
-
var
|
|
1370
|
-
function
|
|
1371
|
-
|
|
1132
|
+
var G = null;
|
|
1133
|
+
function K(e) {
|
|
1134
|
+
G = e;
|
|
1372
1135
|
}
|
|
1373
|
-
var
|
|
1374
|
-
function
|
|
1375
|
-
|
|
1136
|
+
var q = null;
|
|
1137
|
+
function kn(e) {
|
|
1138
|
+
H !== null && (q ??= /* @__PURE__ */ new Set()).add(e);
|
|
1376
1139
|
}
|
|
1377
1140
|
var J = null, Y = 0, X = null;
|
|
1378
|
-
function
|
|
1141
|
+
function An(e) {
|
|
1379
1142
|
X = e;
|
|
1380
1143
|
}
|
|
1381
|
-
var
|
|
1382
|
-
function
|
|
1383
|
-
|
|
1144
|
+
var jn = 1, Mn = 0, Nn = Mn;
|
|
1145
|
+
function Pn(e) {
|
|
1146
|
+
Nn = e;
|
|
1384
1147
|
}
|
|
1385
|
-
function
|
|
1386
|
-
return ++
|
|
1148
|
+
function Fn() {
|
|
1149
|
+
return ++jn;
|
|
1387
1150
|
}
|
|
1388
|
-
function
|
|
1151
|
+
function In(e) {
|
|
1389
1152
|
var t = e.f;
|
|
1390
1153
|
if (t & 2048) return !0;
|
|
1391
1154
|
if (t & 2 && (e.f &= ~re), t & 4096) {
|
|
1392
1155
|
for (var n = e.deps, r = n.length, i = 0; i < r; i++) {
|
|
1393
1156
|
var a = n[i];
|
|
1394
|
-
if (
|
|
1157
|
+
if (In(a) && st(a), a.wv > e.wv) return !0;
|
|
1395
1158
|
}
|
|
1396
|
-
t & 512 &&
|
|
1159
|
+
t & 512 && F === null && N(e, _);
|
|
1397
1160
|
}
|
|
1398
1161
|
return !1;
|
|
1399
1162
|
}
|
|
1400
|
-
function
|
|
1163
|
+
function Ln(e, t, n = !0) {
|
|
1401
1164
|
var r = e.reactions;
|
|
1402
|
-
if (r !== null && !(
|
|
1165
|
+
if (r !== null && !(q !== null && q.has(e))) for (var i = 0; i < r.length; i++) {
|
|
1403
1166
|
var a = r[i];
|
|
1404
|
-
a.f & 2 ?
|
|
1167
|
+
a.f & 2 ? Ln(a, t, !1) : t === a && (n ? N(a, v) : a.f & 1024 && N(a, y), Tt(a));
|
|
1405
1168
|
}
|
|
1406
1169
|
}
|
|
1407
|
-
function
|
|
1408
|
-
var t = J, n = Y, r = X, i =
|
|
1409
|
-
J = null, Y = 0, X = null,
|
|
1410
|
-
e.ac.abort(
|
|
1170
|
+
function Rn(e) {
|
|
1171
|
+
var t = J, n = Y, r = X, i = H, a = q, o = M, s = U, c = Nn, l = e.f;
|
|
1172
|
+
J = null, Y = 0, X = null, H = l & 96 ? null : e, q = null, Pe(e.ctx), U = !1, Nn = ++Mn, e.ac !== null && (Ye(() => {
|
|
1173
|
+
e.ac.abort(de);
|
|
1411
1174
|
}), e.ac = null);
|
|
1412
1175
|
try {
|
|
1413
1176
|
e.f |= w;
|
|
1414
1177
|
var u = e.fn, d = u();
|
|
1415
1178
|
e.f |= x;
|
|
1416
|
-
var f = e
|
|
1417
|
-
if (
|
|
1418
|
-
var m;
|
|
1419
|
-
if (p || Gn(e, Y), f !== null && Y > 0) for (f.length = Y + J.length, m = 0; m < J.length; m++) f[Y + m] = J[m];
|
|
1420
|
-
else e.deps = f = J;
|
|
1421
|
-
if (sn() && e.f & 512) for (m = Y; m < f.length; m++) (f[m].reactions ??= []).push(e);
|
|
1422
|
-
} else !p && f !== null && Y < f.length && (Gn(e, Y), f.length = Y);
|
|
1423
|
-
if (Le() && X !== null && !W && f !== null && !(e.f & 6146)) for (m = 0; m < X.length; m++) Hn(X[m], e);
|
|
1179
|
+
var f = zn(e);
|
|
1180
|
+
if (Re() && X !== null && !U && f !== null && !(e.f & 6146)) for (var p = 0; p < X.length; p++) Ln(X[p], e);
|
|
1424
1181
|
if (i !== null && i !== e) {
|
|
1425
|
-
if (
|
|
1426
|
-
if (t !== null) for (let e of t) e.rv =
|
|
1182
|
+
if (Mn++, i.deps !== null) for (let e = 0; e < n; e += 1) i.deps[e].rv = Mn;
|
|
1183
|
+
if (t !== null) for (let e of t) e.rv = Mn;
|
|
1427
1184
|
X !== null && (r === null ? r = X : r.push(...X));
|
|
1428
1185
|
}
|
|
1429
1186
|
return e.f & 8388608 && (e.f ^= T), d;
|
|
1430
|
-
} catch (
|
|
1431
|
-
return
|
|
1187
|
+
} catch (t) {
|
|
1188
|
+
return zn(e), $t(t);
|
|
1432
1189
|
} finally {
|
|
1433
|
-
e.f ^= w, J = t, Y = n, X = r,
|
|
1190
|
+
e.f ^= w, J = t, Y = n, X = r, H = i, q = a, Pe(o), U = s, Nn = c;
|
|
1434
1191
|
}
|
|
1435
1192
|
}
|
|
1436
|
-
function
|
|
1193
|
+
function zn(e) {
|
|
1194
|
+
var t = e.deps, n = P?.is_fork;
|
|
1195
|
+
if (J !== null) {
|
|
1196
|
+
var r;
|
|
1197
|
+
if (n || Vn(e, Y), t !== null && Y > 0) for (t.length = Y + J.length, r = 0; r < J.length; r++) t[Y + r] = J[r];
|
|
1198
|
+
else e.deps = t = J;
|
|
1199
|
+
if (nn() && e.f & 512) for (r = Y; r < t.length; r++) (t[r].reactions ??= []).push(e);
|
|
1200
|
+
} else !n && t !== null && Y < t.length && (Vn(e, Y), t.length = Y);
|
|
1201
|
+
return t;
|
|
1202
|
+
}
|
|
1203
|
+
function Bn(e, t) {
|
|
1437
1204
|
let r = t.reactions;
|
|
1438
1205
|
if (r !== null) {
|
|
1439
1206
|
var o = i.call(r, e);
|
|
@@ -1444,81 +1211,85 @@ function Wn(e, t) {
|
|
|
1444
1211
|
}
|
|
1445
1212
|
if (r === null && t.f & 2 && (J === null || !a.call(J, t))) {
|
|
1446
1213
|
var c = t;
|
|
1447
|
-
c.f & 512 && (c.f ^= 512, c.f &= ~re), c.v !== n &&
|
|
1214
|
+
c.f & 512 && (c.f ^= 512, c.f &= ~re), c.v !== n && We(c), c.ac !== null && Ye(() => {
|
|
1215
|
+
c.ac.abort(de), c.ac = null, N(c, v);
|
|
1216
|
+
}), ct(c), Vn(c, 0);
|
|
1448
1217
|
}
|
|
1449
1218
|
}
|
|
1450
|
-
function
|
|
1219
|
+
function Vn(e, t) {
|
|
1451
1220
|
var n = e.deps;
|
|
1452
|
-
if (n !== null) for (var r = t; r < n.length; r++)
|
|
1221
|
+
if (n !== null) for (var r = t; r < n.length; r++) Bn(e, n[r]);
|
|
1453
1222
|
}
|
|
1454
|
-
function
|
|
1223
|
+
function Hn(e) {
|
|
1455
1224
|
var t = e.f;
|
|
1456
1225
|
if (!(t & 16384)) {
|
|
1457
|
-
|
|
1458
|
-
var n =
|
|
1459
|
-
|
|
1226
|
+
N(e, _);
|
|
1227
|
+
var n = G, r = En;
|
|
1228
|
+
G = e, En = (t & 96) == 0;
|
|
1460
1229
|
try {
|
|
1461
|
-
t & 16777232 ?
|
|
1462
|
-
var i =
|
|
1463
|
-
e.teardown = typeof i == "function" ? i : null, e.wv =
|
|
1230
|
+
t & 16777232 ? _n(e) : gn(e), hn(e);
|
|
1231
|
+
var i = Rn(e);
|
|
1232
|
+
e.teardown = typeof i == "function" ? i : null, e.wv = jn;
|
|
1464
1233
|
} finally {
|
|
1465
|
-
|
|
1234
|
+
En = r, G = n;
|
|
1466
1235
|
}
|
|
1467
1236
|
}
|
|
1468
1237
|
}
|
|
1469
1238
|
function Z(e) {
|
|
1470
1239
|
var t = (e.f & 2) != 0;
|
|
1471
|
-
if (
|
|
1472
|
-
var n =
|
|
1473
|
-
if (
|
|
1240
|
+
if (Tn?.add(e), H !== null && !U && !(G !== null && G.f & 16384) && (q === null || !q.has(e))) {
|
|
1241
|
+
var n = H.deps;
|
|
1242
|
+
if (H.f & 2097152) e.rv < Mn && (e.rv = Mn, J === null && n !== null && n[Y] === e ? Y++ : J === null ? J = [e] : J.push(e));
|
|
1474
1243
|
else {
|
|
1475
|
-
|
|
1244
|
+
H.deps ??= [], a.call(H.deps, e) || H.deps.push(e);
|
|
1476
1245
|
var r = e.reactions;
|
|
1477
|
-
r === null ? e.reactions = [
|
|
1246
|
+
r === null ? e.reactions = [H] : a.call(r, H) || r.push(H);
|
|
1478
1247
|
}
|
|
1479
1248
|
}
|
|
1480
|
-
if (
|
|
1249
|
+
if (Dn && kt.has(e)) return kt.get(e);
|
|
1481
1250
|
if (t) {
|
|
1482
1251
|
var i = e;
|
|
1483
|
-
if (
|
|
1252
|
+
if (Dn) {
|
|
1484
1253
|
var o = i.v;
|
|
1485
|
-
return (!(i.f & 1024) && i.reactions !== null ||
|
|
1254
|
+
return (!(i.f & 1024) && i.reactions !== null || Wn(i)) && (o = ot(i)), kt.set(i, o), o;
|
|
1486
1255
|
}
|
|
1487
|
-
var s = (i.f & 512) == 0 && !
|
|
1488
|
-
|
|
1256
|
+
var s = (i.f & 512) == 0 && !U && H !== null && (En || (H.f & 512) != 0), c = (i.f & x) === 0;
|
|
1257
|
+
In(i) && (s && (i.f |= 512), st(i)), s && !c && (lt(i), Un(i));
|
|
1489
1258
|
}
|
|
1490
|
-
if (
|
|
1259
|
+
if (F?.has(e)) return F.get(e);
|
|
1491
1260
|
if (e.f & 8388608) throw e.v;
|
|
1492
1261
|
return e.v;
|
|
1493
1262
|
}
|
|
1494
|
-
function
|
|
1495
|
-
if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (
|
|
1263
|
+
function Un(e) {
|
|
1264
|
+
if (e.f |= 512, e.deps !== null) for (let t of e.deps) (t.reactions ??= []).push(e), t.f & 2 && !(t.f & 512) && (lt(t), Un(t));
|
|
1496
1265
|
}
|
|
1497
|
-
function
|
|
1266
|
+
function Wn(e) {
|
|
1498
1267
|
if (e.v === n) return !0;
|
|
1499
1268
|
if (e.deps === null) return !1;
|
|
1500
|
-
for (let t of e.deps) if (
|
|
1269
|
+
for (let t of e.deps) if (kt.has(t) || t.f & 2 && Wn(t)) return !0;
|
|
1501
1270
|
return !1;
|
|
1502
1271
|
}
|
|
1503
|
-
function
|
|
1504
|
-
var t =
|
|
1272
|
+
function Gn(e) {
|
|
1273
|
+
var t = U;
|
|
1505
1274
|
try {
|
|
1506
|
-
return
|
|
1275
|
+
return U = !0, e();
|
|
1507
1276
|
} finally {
|
|
1508
|
-
|
|
1277
|
+
U = t;
|
|
1509
1278
|
}
|
|
1510
1279
|
}
|
|
1511
1280
|
//#endregion
|
|
1512
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
1513
|
-
var
|
|
1514
|
-
function
|
|
1281
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/events.js
|
|
1282
|
+
var Kn = Symbol("events"), qn = /* @__PURE__ */ new Set(), Jn = /* @__PURE__ */ new Set(), Yn = null, Xn = !1;
|
|
1283
|
+
function Zn(e) {
|
|
1515
1284
|
var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], a = i[0] || e.target;
|
|
1516
|
-
|
|
1517
|
-
|
|
1285
|
+
Yn = e, Xn || (Xn = !0, setTimeout(() => {
|
|
1286
|
+
Xn = !1, Yn = null;
|
|
1287
|
+
}));
|
|
1288
|
+
var o = 0, s = Yn === e && e[Kn];
|
|
1518
1289
|
if (s) {
|
|
1519
1290
|
var l = i.indexOf(s);
|
|
1520
1291
|
if (l !== -1 && (t === document || t === window)) {
|
|
1521
|
-
e[
|
|
1292
|
+
e[Kn] = t;
|
|
1522
1293
|
return;
|
|
1523
1294
|
}
|
|
1524
1295
|
var u = i.indexOf(t);
|
|
@@ -1532,12 +1303,12 @@ function er(e) {
|
|
|
1532
1303
|
return a || n;
|
|
1533
1304
|
}
|
|
1534
1305
|
});
|
|
1535
|
-
var d =
|
|
1536
|
-
|
|
1306
|
+
var d = H, f = G;
|
|
1307
|
+
W(null), K(null);
|
|
1537
1308
|
try {
|
|
1538
1309
|
for (var p, m = []; a !== null && a !== t;) {
|
|
1539
1310
|
try {
|
|
1540
|
-
var h = a[
|
|
1311
|
+
var h = a[Kn]?.[r];
|
|
1541
1312
|
h != null && (!a.disabled || e.target === a) && h.call(a, e);
|
|
1542
1313
|
} catch (e) {
|
|
1543
1314
|
p ? m.push(e) : p = e;
|
|
@@ -1552,24 +1323,24 @@ function er(e) {
|
|
|
1552
1323
|
throw p;
|
|
1553
1324
|
}
|
|
1554
1325
|
} finally {
|
|
1555
|
-
e[
|
|
1326
|
+
e[Kn] = t, delete e.currentTarget, W(d), K(f);
|
|
1556
1327
|
}
|
|
1557
1328
|
}
|
|
1558
1329
|
}
|
|
1559
1330
|
//#endregion
|
|
1560
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
1561
|
-
var
|
|
1562
|
-
function
|
|
1563
|
-
return
|
|
1331
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/reconciler.js
|
|
1332
|
+
var Qn = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1333
|
+
function $n(e) {
|
|
1334
|
+
return Qn?.createHTML(e) ?? e;
|
|
1564
1335
|
}
|
|
1565
|
-
function
|
|
1566
|
-
var t =
|
|
1567
|
-
return t.innerHTML =
|
|
1336
|
+
function er(e) {
|
|
1337
|
+
var t = Zt("template");
|
|
1338
|
+
return t.innerHTML = $n(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1568
1339
|
}
|
|
1569
1340
|
//#endregion
|
|
1570
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
1571
|
-
function
|
|
1572
|
-
var n =
|
|
1341
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/template.js
|
|
1342
|
+
function tr(e, t) {
|
|
1343
|
+
var n = G;
|
|
1573
1344
|
n.nodes === null && (n.nodes = {
|
|
1574
1345
|
start: e,
|
|
1575
1346
|
end: t,
|
|
@@ -1578,67 +1349,269 @@ function ir(e, t) {
|
|
|
1578
1349
|
});
|
|
1579
1350
|
}
|
|
1580
1351
|
/*#__NO_SIDE_EFFECTS__*/
|
|
1581
|
-
function
|
|
1352
|
+
function nr(e, t) {
|
|
1582
1353
|
var n = (t & 1) != 0, r = (t & 2) != 0, i, a = !e.startsWith("<!>");
|
|
1583
1354
|
return () => {
|
|
1584
|
-
if (
|
|
1585
|
-
i === void 0 && (i =
|
|
1586
|
-
var t = r ||
|
|
1355
|
+
if (D) return tr(O, null), O;
|
|
1356
|
+
i === void 0 && (i = er(a ? e : "<!>" + e), n || (i = /* @__PURE__ */ Wt(i)));
|
|
1357
|
+
var t = r || zt ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1587
1358
|
if (n) {
|
|
1588
|
-
var o = /* @__PURE__ */
|
|
1589
|
-
|
|
1590
|
-
} else
|
|
1359
|
+
var o = /* @__PURE__ */ Wt(t), s = t.lastChild;
|
|
1360
|
+
tr(o, s);
|
|
1361
|
+
} else tr(t, t);
|
|
1591
1362
|
return t;
|
|
1592
1363
|
};
|
|
1593
1364
|
}
|
|
1594
|
-
function
|
|
1595
|
-
if (
|
|
1596
|
-
var n =
|
|
1597
|
-
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end =
|
|
1365
|
+
function rr(e, t) {
|
|
1366
|
+
if (D) {
|
|
1367
|
+
var n = G;
|
|
1368
|
+
(!(n.f & 32768) || n.nodes.end === null) && (n.nodes.end = O), A();
|
|
1598
1369
|
return;
|
|
1599
1370
|
}
|
|
1600
1371
|
e !== null && e.before(t);
|
|
1601
1372
|
}
|
|
1602
1373
|
[.../* @__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(".")];
|
|
1603
|
-
var
|
|
1604
|
-
function
|
|
1605
|
-
return
|
|
1374
|
+
var ir = ["touchstart", "touchmove"];
|
|
1375
|
+
function ar(e) {
|
|
1376
|
+
return ir.includes(e);
|
|
1606
1377
|
}
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1378
|
+
//#endregion
|
|
1379
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/reactivity/create-subscriber.js
|
|
1380
|
+
function or(e) {
|
|
1381
|
+
let t = 0, n = jt(0), r;
|
|
1382
|
+
return () => {
|
|
1383
|
+
nn() && (Z(n), dn(() => (t === 0 && (r = Gn(() => e(() => Ft(n)))), t += 1, () => {
|
|
1384
|
+
Ve(() => {
|
|
1385
|
+
--t, t === 0 && (r?.(), r = void 0, Ft(n));
|
|
1386
|
+
});
|
|
1387
|
+
})));
|
|
1388
|
+
};
|
|
1389
|
+
}
|
|
1390
|
+
//#endregion
|
|
1391
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/blocks/boundary.js
|
|
1392
|
+
var sr = ne | S;
|
|
1393
|
+
function cr(e, t, n, r) {
|
|
1394
|
+
new lr(e, t, n, r);
|
|
1610
1395
|
}
|
|
1396
|
+
var lr = class {
|
|
1397
|
+
parent;
|
|
1398
|
+
is_pending = !1;
|
|
1399
|
+
transform_error;
|
|
1400
|
+
#e;
|
|
1401
|
+
#t = D ? O : null;
|
|
1402
|
+
#n;
|
|
1403
|
+
#r;
|
|
1404
|
+
#i;
|
|
1405
|
+
#a = null;
|
|
1406
|
+
#o = null;
|
|
1407
|
+
#s = null;
|
|
1408
|
+
#c = null;
|
|
1409
|
+
#l = 0;
|
|
1410
|
+
#u = 0;
|
|
1411
|
+
#d = !1;
|
|
1412
|
+
#f = /* @__PURE__ */ new Set();
|
|
1413
|
+
#p = /* @__PURE__ */ new Set();
|
|
1414
|
+
#m = null;
|
|
1415
|
+
#h = or(() => (this.#m = jt(this.#l), () => {
|
|
1416
|
+
this.#m = null;
|
|
1417
|
+
}));
|
|
1418
|
+
constructor(e, t, n, r) {
|
|
1419
|
+
this.#e = e, this.#n = t, this.#r = (e) => {
|
|
1420
|
+
var t = G;
|
|
1421
|
+
t.b = this, t.f |= 128, n(e);
|
|
1422
|
+
}, this.parent = G.b, this.transform_error = r ?? this.parent?.transform_error ?? ((e) => e), this.#i = pn(() => {
|
|
1423
|
+
if (D) {
|
|
1424
|
+
let e = this.#t;
|
|
1425
|
+
A();
|
|
1426
|
+
let t = e.data === "[!";
|
|
1427
|
+
if (e.data.startsWith("[?")) {
|
|
1428
|
+
let t = JSON.parse(e.data.slice(2));
|
|
1429
|
+
this.#_(t);
|
|
1430
|
+
} else t ? this.#y() : this.#g();
|
|
1431
|
+
} else this.#b();
|
|
1432
|
+
}, sr), D && (this.#e = O);
|
|
1433
|
+
}
|
|
1434
|
+
#g() {
|
|
1435
|
+
try {
|
|
1436
|
+
this.#a = mn(() => this.#r(this.#e));
|
|
1437
|
+
} catch (e) {
|
|
1438
|
+
this.error(e);
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
#_(e) {
|
|
1442
|
+
let t = this.#n.failed, { reset: n, invoke_onerror: r } = this.#v(e);
|
|
1443
|
+
Ve(r), t && (this.#s = mn(() => {
|
|
1444
|
+
t(this.#e, () => e, () => n);
|
|
1445
|
+
}));
|
|
1446
|
+
}
|
|
1447
|
+
#v(e) {
|
|
1448
|
+
var t = !1, n = !1;
|
|
1449
|
+
let r = () => {
|
|
1450
|
+
if (t) {
|
|
1451
|
+
me();
|
|
1452
|
+
return;
|
|
1453
|
+
}
|
|
1454
|
+
t = !0, n && Ne(), this.#s !== null && bn(this.#s, () => {
|
|
1455
|
+
this.#s = null;
|
|
1456
|
+
}), this.#S(() => {
|
|
1457
|
+
this.#b();
|
|
1458
|
+
});
|
|
1459
|
+
};
|
|
1460
|
+
return {
|
|
1461
|
+
reset: r,
|
|
1462
|
+
invoke_onerror: () => {
|
|
1463
|
+
try {
|
|
1464
|
+
n = !0, this.#n.onerror?.(e, r), n = !1;
|
|
1465
|
+
} catch (e) {
|
|
1466
|
+
z(e, this.#i && this.#i.parent);
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
};
|
|
1470
|
+
}
|
|
1471
|
+
#y() {
|
|
1472
|
+
let e = this.#n.pending;
|
|
1473
|
+
e && (this.is_pending = !0, this.#o = mn(() => e(this.#e)), Ve(() => {
|
|
1474
|
+
var e = this.#c = document.createDocumentFragment(), t = Ut(), n = !1;
|
|
1475
|
+
if (e.append(t), this.#a = this.#S(() => {
|
|
1476
|
+
try {
|
|
1477
|
+
return mn(() => this.#r(t));
|
|
1478
|
+
} catch (e) {
|
|
1479
|
+
try {
|
|
1480
|
+
this.error(e), n = !0;
|
|
1481
|
+
} catch (e) {
|
|
1482
|
+
z(e, this.#i.parent);
|
|
1483
|
+
}
|
|
1484
|
+
return null;
|
|
1485
|
+
}
|
|
1486
|
+
}), this.#a === null) {
|
|
1487
|
+
this.#c = null, n && this.#x(P);
|
|
1488
|
+
return;
|
|
1489
|
+
}
|
|
1490
|
+
this.#u === 0 && (this.#e.before(e), this.#c = null, bn(this.#o, () => {
|
|
1491
|
+
this.#o = null;
|
|
1492
|
+
}), this.#x(P));
|
|
1493
|
+
}));
|
|
1494
|
+
}
|
|
1495
|
+
#b() {
|
|
1496
|
+
try {
|
|
1497
|
+
if (this.is_pending = this.has_pending_snippet(), this.#u = 0, this.#l = 0, this.#a = mn(() => {
|
|
1498
|
+
this.#r(this.#e);
|
|
1499
|
+
}), this.#u > 0) {
|
|
1500
|
+
var e = this.#c = document.createDocumentFragment();
|
|
1501
|
+
wn(this.#a, e);
|
|
1502
|
+
let t = this.#n.pending;
|
|
1503
|
+
this.#o = mn(() => t(this.#e));
|
|
1504
|
+
} else this.#x(P);
|
|
1505
|
+
} catch (e) {
|
|
1506
|
+
this.error(e);
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
#x(e) {
|
|
1510
|
+
this.is_pending = !1, e.transfer_effects(this.#f, this.#p);
|
|
1511
|
+
}
|
|
1512
|
+
defer_effect(e) {
|
|
1513
|
+
Ke(e, this.#f, this.#p);
|
|
1514
|
+
}
|
|
1515
|
+
is_rendered() {
|
|
1516
|
+
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
1517
|
+
}
|
|
1518
|
+
has_pending_snippet() {
|
|
1519
|
+
return !!this.#n.pending;
|
|
1520
|
+
}
|
|
1521
|
+
#S(e) {
|
|
1522
|
+
var t = G, n = H, r = M;
|
|
1523
|
+
K(this.#i), W(this.#i), Pe(this.#i.ctx);
|
|
1524
|
+
try {
|
|
1525
|
+
return yt.ensure(), e();
|
|
1526
|
+
} finally {
|
|
1527
|
+
K(t), W(n), Pe(r);
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
#C(e, t) {
|
|
1531
|
+
if (!this.has_pending_snippet()) {
|
|
1532
|
+
this.parent && this.parent.#C(e, t);
|
|
1533
|
+
return;
|
|
1534
|
+
}
|
|
1535
|
+
this.#u += e, this.#u === 0 && (this.#x(t), this.#o && bn(this.#o, () => {
|
|
1536
|
+
this.#o = null;
|
|
1537
|
+
}), this.#c &&= (this.#e.before(this.#c), null));
|
|
1538
|
+
}
|
|
1539
|
+
update_pending_count(e, t) {
|
|
1540
|
+
this.#C(e, t), this.#l += e, !(!this.#m || this.#d) && (this.#d = !0, Ve(() => {
|
|
1541
|
+
this.#d = !1, this.#m && Nt(this.#m, this.#l);
|
|
1542
|
+
}));
|
|
1543
|
+
}
|
|
1544
|
+
get_effect_pending() {
|
|
1545
|
+
return this.#h(), Z(this.#m);
|
|
1546
|
+
}
|
|
1547
|
+
error(e) {
|
|
1548
|
+
if (!this.#n.onerror && !this.#n.failed) throw e;
|
|
1549
|
+
P?.is_fork ? (this.#a && P.skip_effect(this.#a), this.#o && P.skip_effect(this.#o), this.#s && P.skip_effect(this.#s), P.oncommit(() => {
|
|
1550
|
+
this.#w(e);
|
|
1551
|
+
})) : this.#w(e);
|
|
1552
|
+
}
|
|
1553
|
+
#w(e) {
|
|
1554
|
+
this.#a &&= (V(this.#a), null), this.#o &&= (V(this.#o), null), this.#s &&= (V(this.#s), null), D && (k(this.#t), j(), k(_e()));
|
|
1555
|
+
let t = this.#n.failed, n = (e) => {
|
|
1556
|
+
let { reset: n, invoke_onerror: r } = this.#v(e);
|
|
1557
|
+
r(), t && (this.#s = this.#S(() => {
|
|
1558
|
+
try {
|
|
1559
|
+
return mn(() => {
|
|
1560
|
+
var r = G;
|
|
1561
|
+
r.b = this, r.f |= 128, t(this.#e, () => e, () => n);
|
|
1562
|
+
});
|
|
1563
|
+
} catch (e) {
|
|
1564
|
+
return z(e, this.#i.parent), null;
|
|
1565
|
+
}
|
|
1566
|
+
}));
|
|
1567
|
+
};
|
|
1568
|
+
Ve(() => {
|
|
1569
|
+
var t;
|
|
1570
|
+
try {
|
|
1571
|
+
t = this.transform_error(e);
|
|
1572
|
+
} catch (e) {
|
|
1573
|
+
z(e, this.#i && this.#i.parent);
|
|
1574
|
+
return;
|
|
1575
|
+
}
|
|
1576
|
+
typeof t == "object" && t && typeof t.then == "function" ? t.then(n, (e) => z(e, this.#i && this.#i.parent)) : n(t);
|
|
1577
|
+
});
|
|
1578
|
+
}
|
|
1579
|
+
};
|
|
1611
1580
|
function ur(e, t) {
|
|
1612
|
-
|
|
1581
|
+
var n = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1582
|
+
n !== (e[ue] ??= e.nodeValue) && (e[ue] = n, e.nodeValue = `${n}`);
|
|
1583
|
+
}
|
|
1584
|
+
function dr(e, t) {
|
|
1585
|
+
return mr(e, t);
|
|
1613
1586
|
}
|
|
1614
|
-
function
|
|
1615
|
-
|
|
1616
|
-
let r = n.target, i =
|
|
1587
|
+
function fr(e, n) {
|
|
1588
|
+
Ht(), n.intro = n.intro ?? !1;
|
|
1589
|
+
let r = n.target, i = D, a = O;
|
|
1617
1590
|
try {
|
|
1618
|
-
for (var o = /* @__PURE__ */
|
|
1591
|
+
for (var o = /* @__PURE__ */ Wt(r); o && (o.nodeType !== 8 || o.data !== "[");) o = /* @__PURE__ */ Gt(o);
|
|
1619
1592
|
if (!o) throw t;
|
|
1620
|
-
|
|
1621
|
-
let i =
|
|
1593
|
+
he(!0), k(o);
|
|
1594
|
+
let i = mr(e, {
|
|
1622
1595
|
...n,
|
|
1623
1596
|
anchor: o
|
|
1624
1597
|
});
|
|
1625
|
-
return
|
|
1598
|
+
return he(!1), i;
|
|
1626
1599
|
} catch (i) {
|
|
1627
1600
|
if (i instanceof Error && i.message.split("\n").some((e) => e.startsWith("https://svelte.dev/e/"))) throw i;
|
|
1628
|
-
return i !== t && console.warn("Failed to hydrate: ", i), n.recover === !1 &&
|
|
1601
|
+
return i !== t && console.warn("Failed to hydrate: ", i), n.recover === !1 && Oe(), Ht(), Yt(r), he(!1), dr(e, n);
|
|
1629
1602
|
} finally {
|
|
1630
|
-
|
|
1603
|
+
he(i), k(a);
|
|
1631
1604
|
}
|
|
1632
1605
|
}
|
|
1633
|
-
var
|
|
1634
|
-
function
|
|
1635
|
-
|
|
1636
|
-
var u = void 0, d =
|
|
1637
|
-
var c = r ?? n.appendChild(
|
|
1638
|
-
|
|
1606
|
+
var pr = /* @__PURE__ */ new Map();
|
|
1607
|
+
function mr(e, { target: n, anchor: r, props: i = {}, events: a, context: s, intro: c = !0, transformError: l }) {
|
|
1608
|
+
Ht();
|
|
1609
|
+
var u = void 0, d = cn(() => {
|
|
1610
|
+
var c = r ?? n.appendChild(Ut());
|
|
1611
|
+
cr(c, { pending: () => {} }, (n) => {
|
|
1639
1612
|
Fe({});
|
|
1640
|
-
var r =
|
|
1641
|
-
if (s && (r.c = s), a && (i.$$events = a),
|
|
1613
|
+
var r = M;
|
|
1614
|
+
if (s && (r.c = s), a && (i.$$events = a), D && tr(n, null), u = e(n, i) || Le(), D && (G.nodes.end = O, O === null || O.nodeType !== 8 || O.data !== "]")) throw pe(), t;
|
|
1642
1615
|
Ie();
|
|
1643
1616
|
}, l);
|
|
1644
1617
|
var d = /* @__PURE__ */ new Set(), f = (e) => {
|
|
@@ -1646,34 +1619,34 @@ function pr(e, { target: n, anchor: r, props: i = {}, events: a, context: s, int
|
|
|
1646
1619
|
var r = e[t];
|
|
1647
1620
|
if (!d.has(r)) {
|
|
1648
1621
|
d.add(r);
|
|
1649
|
-
var i =
|
|
1622
|
+
var i = ar(r);
|
|
1650
1623
|
for (let e of [n, document]) {
|
|
1651
|
-
var a =
|
|
1652
|
-
a === void 0 && (a = /* @__PURE__ */ new Map(),
|
|
1624
|
+
var a = pr.get(e);
|
|
1625
|
+
a === void 0 && (a = /* @__PURE__ */ new Map(), pr.set(e, a));
|
|
1653
1626
|
var o = a.get(r);
|
|
1654
|
-
o === void 0 ? (e.addEventListener(r,
|
|
1627
|
+
o === void 0 ? (e.addEventListener(r, Zn, { passive: i }), a.set(r, 1)) : a.set(r, o + 1);
|
|
1655
1628
|
}
|
|
1656
1629
|
}
|
|
1657
1630
|
}
|
|
1658
1631
|
};
|
|
1659
|
-
return f(o(
|
|
1632
|
+
return f(o(qn)), Jn.add(f), () => {
|
|
1660
1633
|
for (var e of d) for (let r of [n, document]) {
|
|
1661
|
-
var t =
|
|
1662
|
-
--i == 0 ? (r.removeEventListener(e,
|
|
1634
|
+
var t = pr.get(r), i = t.get(e);
|
|
1635
|
+
--i == 0 ? (r.removeEventListener(e, Zn), t.delete(e), t.size === 0 && pr.delete(r)) : t.set(e, i);
|
|
1663
1636
|
}
|
|
1664
|
-
|
|
1637
|
+
Jn.delete(f), c !== r && c.parentNode?.removeChild(c);
|
|
1665
1638
|
};
|
|
1666
1639
|
});
|
|
1667
|
-
return
|
|
1640
|
+
return hr.set(u, d), u;
|
|
1668
1641
|
}
|
|
1669
|
-
var
|
|
1670
|
-
function
|
|
1671
|
-
let n =
|
|
1672
|
-
return n ? (
|
|
1642
|
+
var hr = /* @__PURE__ */ new WeakMap();
|
|
1643
|
+
function gr(e, t) {
|
|
1644
|
+
let n = hr.get(e);
|
|
1645
|
+
return n ? (hr.delete(e), n(t)) : Promise.resolve();
|
|
1673
1646
|
}
|
|
1674
1647
|
//#endregion
|
|
1675
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
1676
|
-
var
|
|
1648
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/blocks/branches.js
|
|
1649
|
+
var _r = class {
|
|
1677
1650
|
anchor;
|
|
1678
1651
|
#e = /* @__PURE__ */ new Map();
|
|
1679
1652
|
#t = /* @__PURE__ */ new Map();
|
|
@@ -1686,104 +1659,77 @@ var gr = class {
|
|
|
1686
1659
|
#a = (e) => {
|
|
1687
1660
|
if (this.#e.has(e)) {
|
|
1688
1661
|
var t = this.#e.get(e), n = this.#t.get(t);
|
|
1689
|
-
if (n)
|
|
1662
|
+
if (n) Sn(n), this.#r.delete(t);
|
|
1690
1663
|
else {
|
|
1691
1664
|
var r = this.#n.get(t);
|
|
1692
|
-
r && (
|
|
1665
|
+
r && (Sn(r.effect), this.#t.set(t, r.effect), this.#n.delete(t), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), n = r.effect);
|
|
1693
1666
|
}
|
|
1694
1667
|
for (let [t, n] of this.#e) {
|
|
1695
1668
|
if (this.#e.delete(t), t === e) break;
|
|
1696
1669
|
let r = this.#n.get(n);
|
|
1697
|
-
r && (
|
|
1670
|
+
r && (V(r.effect), this.#n.delete(n));
|
|
1698
1671
|
}
|
|
1699
1672
|
for (let [e, r] of this.#t) {
|
|
1700
1673
|
if (e === t || this.#r.has(e)) continue;
|
|
1701
1674
|
let i = () => {
|
|
1702
1675
|
if (Array.from(this.#e.values()).includes(e)) {
|
|
1703
1676
|
var t = document.createDocumentFragment();
|
|
1704
|
-
|
|
1677
|
+
wn(r, t), t.append(Ut()), this.#n.set(e, {
|
|
1705
1678
|
effect: r,
|
|
1706
1679
|
fragment: t
|
|
1707
1680
|
});
|
|
1708
|
-
} else
|
|
1681
|
+
} else V(r);
|
|
1709
1682
|
this.#r.delete(e), this.#t.delete(e);
|
|
1710
1683
|
};
|
|
1711
|
-
this.#i || !n ? (this.#r.add(e),
|
|
1684
|
+
this.#i || !n ? (this.#r.add(e), bn(r, i, !1)) : i();
|
|
1712
1685
|
}
|
|
1713
1686
|
}
|
|
1714
1687
|
};
|
|
1715
1688
|
#o = (e) => {
|
|
1716
1689
|
this.#e.delete(e);
|
|
1717
1690
|
let t = Array.from(this.#e.values());
|
|
1718
|
-
for (let [e, n] of this.#n) t.includes(e) || (
|
|
1691
|
+
for (let [e, n] of this.#n) t.includes(e) || (V(n.effect), this.#n.delete(e));
|
|
1719
1692
|
};
|
|
1720
1693
|
ensure(e, t) {
|
|
1721
|
-
var n =
|
|
1694
|
+
var n = P, r = Xt();
|
|
1722
1695
|
if (t && !this.#t.has(e) && !this.#n.has(e)) if (r) {
|
|
1723
|
-
var i = document.createDocumentFragment(), a =
|
|
1696
|
+
var i = document.createDocumentFragment(), a = Ut();
|
|
1724
1697
|
i.append(a), this.#n.set(e, {
|
|
1725
|
-
effect:
|
|
1698
|
+
effect: mn(() => t(a)),
|
|
1726
1699
|
fragment: i
|
|
1727
1700
|
});
|
|
1728
|
-
} else this.#t.set(e,
|
|
1701
|
+
} else this.#t.set(e, mn(() => t(this.anchor)));
|
|
1729
1702
|
if (this.#e.set(n, e), r) {
|
|
1730
1703
|
for (let [t, r] of this.#t) t === e ? n.unskip_effect(r) : n.skip_effect(r);
|
|
1731
1704
|
for (let [t, r] of this.#n) t === e ? n.unskip_effect(r.effect) : n.skip_effect(r.effect);
|
|
1732
1705
|
n.oncommit(this.#a), n.ondiscard(this.#o);
|
|
1733
|
-
} else
|
|
1706
|
+
} else D && (this.anchor = O), this.#a(n);
|
|
1734
1707
|
}
|
|
1735
1708
|
};
|
|
1736
|
-
function
|
|
1737
|
-
|
|
1738
|
-
let t =
|
|
1709
|
+
function vr(e) {
|
|
1710
|
+
M === null && Se("onMount"), an(() => {
|
|
1711
|
+
let t = Gn(e);
|
|
1739
1712
|
if (typeof t == "function") return t;
|
|
1740
1713
|
});
|
|
1741
1714
|
}
|
|
1742
|
-
function vr(e, t, { bubbles: n = !1, cancelable: r = !1 } = {}) {
|
|
1743
|
-
return new CustomEvent(e, {
|
|
1744
|
-
detail: t,
|
|
1745
|
-
bubbles: n,
|
|
1746
|
-
cancelable: r
|
|
1747
|
-
});
|
|
1748
|
-
}
|
|
1749
|
-
function yr() {
|
|
1750
|
-
let e = N;
|
|
1751
|
-
return e === null && de("createEventDispatcher"), (t, n, i) => {
|
|
1752
|
-
let a = e.s.$$events?.[t];
|
|
1753
|
-
if (a) {
|
|
1754
|
-
let o = r(a) ? a.slice() : [a], s = vr(t, n, i);
|
|
1755
|
-
for (let t of o) t.call(e.x, s);
|
|
1756
|
-
return !s.defaultPrevented;
|
|
1757
|
-
}
|
|
1758
|
-
return !0;
|
|
1759
|
-
};
|
|
1760
|
-
}
|
|
1761
|
-
function br(e) {
|
|
1762
|
-
var t = e.l;
|
|
1763
|
-
return t.u ??= {
|
|
1764
|
-
a: [],
|
|
1765
|
-
b: [],
|
|
1766
|
-
m: []
|
|
1767
|
-
};
|
|
1768
|
-
}
|
|
1769
1715
|
//#endregion
|
|
1770
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
1771
|
-
function
|
|
1716
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/blocks/if.js
|
|
1717
|
+
function yr(e, t, n = !1) {
|
|
1772
1718
|
var r;
|
|
1773
|
-
|
|
1774
|
-
var i = new
|
|
1719
|
+
D && (r = O, A());
|
|
1720
|
+
var i = new _r(e), a = n ? ne : 0;
|
|
1775
1721
|
function o(e, t) {
|
|
1776
|
-
if (
|
|
1777
|
-
var n =
|
|
1722
|
+
if (D) {
|
|
1723
|
+
var n = ve(r);
|
|
1778
1724
|
if (e !== parseInt(n.substring(1))) {
|
|
1779
|
-
var a =
|
|
1780
|
-
|
|
1725
|
+
var a = _e();
|
|
1726
|
+
k(a), i.anchor = a, he(!1), i.ensure(e, t), he(!0);
|
|
1781
1727
|
return;
|
|
1782
1728
|
}
|
|
1783
1729
|
}
|
|
1784
1730
|
i.ensure(e, t);
|
|
1785
1731
|
}
|
|
1786
|
-
|
|
1732
|
+
pn(() => {
|
|
1787
1733
|
var e = !1;
|
|
1788
1734
|
t((t, n = 0) => {
|
|
1789
1735
|
e = !0, o(n, t);
|
|
@@ -1791,34 +1737,35 @@ function xr(e, t, n = !1) {
|
|
|
1791
1737
|
}, a);
|
|
1792
1738
|
}
|
|
1793
1739
|
//#endregion
|
|
1794
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
1795
|
-
function
|
|
1796
|
-
|
|
1740
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/css.js
|
|
1741
|
+
function br(e, t) {
|
|
1742
|
+
ln(() => {
|
|
1743
|
+
e = G?.parent?.nodes?.start ?? e;
|
|
1797
1744
|
var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
|
|
1798
1745
|
if (!r.querySelector("#" + t.hash)) {
|
|
1799
|
-
let e =
|
|
1746
|
+
let e = Zt("style");
|
|
1800
1747
|
e.id = t.hash, e.textContent = t.code, r.appendChild(e);
|
|
1801
1748
|
}
|
|
1802
1749
|
});
|
|
1803
1750
|
}
|
|
1804
1751
|
//#endregion
|
|
1805
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
1806
|
-
function
|
|
1752
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js
|
|
1753
|
+
function xr(e, t) {
|
|
1807
1754
|
return e === t || e?.[E] === t;
|
|
1808
1755
|
}
|
|
1809
|
-
function
|
|
1810
|
-
var i =
|
|
1811
|
-
return
|
|
1756
|
+
function Sr(e = Le(), t, n, r) {
|
|
1757
|
+
var i = M.r, a = G;
|
|
1758
|
+
return ln(() => {
|
|
1812
1759
|
var o, s;
|
|
1813
|
-
return
|
|
1814
|
-
o = s, s = r?.() || [],
|
|
1815
|
-
|
|
1760
|
+
return dn(() => {
|
|
1761
|
+
o = s, s = r?.() || [], Gn(() => {
|
|
1762
|
+
xr(n(...s), e) || (t(e, ...s), o && xr(n(...o), e) && t(null, ...o));
|
|
1816
1763
|
});
|
|
1817
1764
|
}), () => {
|
|
1818
1765
|
let r = a;
|
|
1819
1766
|
for (; r !== i && r.parent !== null && r.parent.f & 33554432;) r = r.parent;
|
|
1820
1767
|
let o = () => {
|
|
1821
|
-
s &&
|
|
1768
|
+
s && xr(n(...s), e) && t(null, ...s);
|
|
1822
1769
|
}, c = r.teardown;
|
|
1823
1770
|
r.teardown = () => {
|
|
1824
1771
|
o(), c?.();
|
|
@@ -1827,16 +1774,16 @@ function wr(e = {}, t, n, r) {
|
|
|
1827
1774
|
}), e;
|
|
1828
1775
|
}
|
|
1829
1776
|
//#endregion
|
|
1830
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
1777
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/internal/client/reactivity/props.js
|
|
1831
1778
|
function Q(e, t, n, r) {
|
|
1832
|
-
var i = !
|
|
1779
|
+
var i = !0, a = (n & 8) != 0, o = (n & 16) != 0, s = r, c = !0, u = void 0, d = () => o && i ? (u ??= /* @__PURE__ */ et(r), Z(u)) : (c && (c = !1, s = o ? Gn(r) : r), s);
|
|
1833
1780
|
let f;
|
|
1834
1781
|
if (a) {
|
|
1835
|
-
var p = E in e ||
|
|
1782
|
+
var p = E in e || oe in e;
|
|
1836
1783
|
f = l(e, t)?.set ?? (p && t in e ? (n) => e[t] = n : void 0);
|
|
1837
1784
|
}
|
|
1838
1785
|
var m, h = !1;
|
|
1839
|
-
a ? [m, h] =
|
|
1786
|
+
a ? [m, h] = Je(() => e[t]) : m = e[t], m === void 0 && r !== void 0 && (m = d(), f && (i && ke(t), f(m)));
|
|
1840
1787
|
var g = i ? () => {
|
|
1841
1788
|
var n = e[t];
|
|
1842
1789
|
return n === void 0 ? d() : (c = !0, n);
|
|
@@ -1851,28 +1798,28 @@ function Q(e, t, n, r) {
|
|
|
1851
1798
|
return arguments.length > 0 ? ((!i || !t || _ || h) && f(t ? g() : e), e) : g();
|
|
1852
1799
|
});
|
|
1853
1800
|
}
|
|
1854
|
-
var v = !1, y = (n & 1 ?
|
|
1801
|
+
var v = !1, y = (n & 1 ? et : it)(() => (v = !1, g()));
|
|
1855
1802
|
a && Z(y);
|
|
1856
|
-
var b =
|
|
1803
|
+
var b = G;
|
|
1857
1804
|
return (function(e, t) {
|
|
1858
1805
|
if (arguments.length > 0) {
|
|
1859
|
-
let n = t ? Z(y) : i && a ?
|
|
1860
|
-
return
|
|
1806
|
+
let n = t ? Z(y) : i && a ? Lt(e) : e;
|
|
1807
|
+
return R(y, n), v = !0, s !== void 0 && (s = n), e;
|
|
1861
1808
|
}
|
|
1862
|
-
return
|
|
1809
|
+
return Dn && v || b.f & 16384 ? y.v : Z(y);
|
|
1863
1810
|
});
|
|
1864
1811
|
}
|
|
1865
1812
|
//#endregion
|
|
1866
|
-
//#region ../../node_modules/.bun/svelte@5.
|
|
1867
|
-
function
|
|
1868
|
-
return new
|
|
1813
|
+
//#region ../../node_modules/.bun/svelte@5.57.0/node_modules/svelte/src/legacy/legacy-client.js
|
|
1814
|
+
function Cr(e) {
|
|
1815
|
+
return new wr(e);
|
|
1869
1816
|
}
|
|
1870
|
-
var
|
|
1817
|
+
var wr = class {
|
|
1871
1818
|
#e;
|
|
1872
1819
|
#t;
|
|
1873
1820
|
constructor(e) {
|
|
1874
1821
|
var t = /* @__PURE__ */ new Map(), n = (e, n) => {
|
|
1875
|
-
var r = /* @__PURE__ */
|
|
1822
|
+
var r = /* @__PURE__ */ Mt(n, !1, !1);
|
|
1876
1823
|
return t.set(e, r), r;
|
|
1877
1824
|
};
|
|
1878
1825
|
let r = new Proxy({
|
|
@@ -1883,13 +1830,13 @@ var Er = class {
|
|
|
1883
1830
|
return Z(t.get(r) ?? n(r, Reflect.get(e, r)));
|
|
1884
1831
|
},
|
|
1885
1832
|
has(e, r) {
|
|
1886
|
-
return r ===
|
|
1833
|
+
return r === oe ? !0 : (Z(t.get(r) ?? n(r, Reflect.get(e, r))), Reflect.has(e, r));
|
|
1887
1834
|
},
|
|
1888
1835
|
set(e, r, i) {
|
|
1889
|
-
return
|
|
1836
|
+
return R(t.get(r) ?? n(r, i), i), Reflect.set(e, r, i);
|
|
1890
1837
|
}
|
|
1891
1838
|
});
|
|
1892
|
-
this.#t = (e.hydrate ?
|
|
1839
|
+
this.#t = (e.hydrate ? fr : dr)(e.component, {
|
|
1893
1840
|
target: e.target,
|
|
1894
1841
|
anchor: e.anchor,
|
|
1895
1842
|
props: r,
|
|
@@ -1897,7 +1844,7 @@ var Er = class {
|
|
|
1897
1844
|
intro: e.intro ?? !1,
|
|
1898
1845
|
recover: e.recover,
|
|
1899
1846
|
transformError: e.transformError
|
|
1900
|
-
}),
|
|
1847
|
+
}), (!e?.props?.$$host || e.sync === !1) && I(), this.#e = r.$$events;
|
|
1901
1848
|
for (let e of Object.keys(this.#t)) e === "$set" || e === "$destroy" || e === "$on" || c(this, e, {
|
|
1902
1849
|
get() {
|
|
1903
1850
|
return this.#t[e];
|
|
@@ -1910,7 +1857,7 @@ var Er = class {
|
|
|
1910
1857
|
this.#t.$set = (e) => {
|
|
1911
1858
|
Object.assign(r, e);
|
|
1912
1859
|
}, this.#t.$destroy = () => {
|
|
1913
|
-
|
|
1860
|
+
gr(this.#t);
|
|
1914
1861
|
};
|
|
1915
1862
|
}
|
|
1916
1863
|
$set(e) {
|
|
@@ -1926,8 +1873,8 @@ var Er = class {
|
|
|
1926
1873
|
$destroy() {
|
|
1927
1874
|
this.#t.$destroy();
|
|
1928
1875
|
}
|
|
1929
|
-
},
|
|
1930
|
-
typeof HTMLElement == "function" && (
|
|
1876
|
+
}, Tr;
|
|
1877
|
+
typeof HTMLElement == "function" && (Tr = class extends HTMLElement {
|
|
1931
1878
|
$$ctor;
|
|
1932
1879
|
$$s;
|
|
1933
1880
|
$$c;
|
|
@@ -1960,18 +1907,18 @@ typeof HTMLElement == "function" && (Dr = class extends HTMLElement {
|
|
|
1960
1907
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
1961
1908
|
function e(e) {
|
|
1962
1909
|
return (t) => {
|
|
1963
|
-
let n =
|
|
1964
|
-
e !== "default" && (n.name = e),
|
|
1910
|
+
let n = Zt("slot");
|
|
1911
|
+
e !== "default" && (n.name = e), rr(t, n);
|
|
1965
1912
|
};
|
|
1966
1913
|
}
|
|
1967
|
-
let t = {}, n =
|
|
1914
|
+
let t = {}, n = Dr(this);
|
|
1968
1915
|
for (let r of this.$$s) r in n && (r === "default" && !this.$$d.children ? (this.$$d.children = e(r), t.default = !0) : t[r] = e(r));
|
|
1969
1916
|
for (let e of this.attributes) {
|
|
1970
1917
|
let t = this.$$g_p(e.name);
|
|
1971
|
-
t in this.$$d || (this.$$d[t] =
|
|
1918
|
+
t in this.$$d || (this.$$d[t] = Er(t, e.value, this.$$p_d, "toProp"));
|
|
1972
1919
|
}
|
|
1973
1920
|
for (let e in this.$$p_d) !(e in this.$$d) && this[e] !== void 0 && (this.$$d[e] = this[e], delete this[e]);
|
|
1974
|
-
this.$$c =
|
|
1921
|
+
this.$$c = Cr({
|
|
1975
1922
|
component: this.$$ctor,
|
|
1976
1923
|
target: this.$$shadowRoot || this,
|
|
1977
1924
|
props: {
|
|
@@ -1979,13 +1926,13 @@ typeof HTMLElement == "function" && (Dr = class extends HTMLElement {
|
|
|
1979
1926
|
$$slots: t,
|
|
1980
1927
|
$$host: this
|
|
1981
1928
|
}
|
|
1982
|
-
}), this.$$me =
|
|
1983
|
-
|
|
1929
|
+
}), this.$$me = sn(() => {
|
|
1930
|
+
dn(() => {
|
|
1984
1931
|
this.$$r = !0;
|
|
1985
1932
|
for (let e of s(this.$$c)) {
|
|
1986
1933
|
if (!this.$$p_d[e]?.reflect) continue;
|
|
1987
1934
|
this.$$d[e] = this.$$c[e];
|
|
1988
|
-
let t =
|
|
1935
|
+
let t = Er(e, this.$$d[e], this.$$p_d, "toAttribute");
|
|
1989
1936
|
t == null ? this.removeAttribute(this.$$p_d[e].attribute || e) : this.setAttribute(this.$$p_d[e].attribute || e, t);
|
|
1990
1937
|
}
|
|
1991
1938
|
this.$$r = !1;
|
|
@@ -1999,7 +1946,7 @@ typeof HTMLElement == "function" && (Dr = class extends HTMLElement {
|
|
|
1999
1946
|
}
|
|
2000
1947
|
}
|
|
2001
1948
|
attributeChangedCallback(e, t, n) {
|
|
2002
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
1949
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Er(e, n, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
2003
1950
|
}
|
|
2004
1951
|
disconnectedCallback() {
|
|
2005
1952
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2010,7 +1957,7 @@ typeof HTMLElement == "function" && (Dr = class extends HTMLElement {
|
|
|
2010
1957
|
return s(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
|
|
2011
1958
|
}
|
|
2012
1959
|
});
|
|
2013
|
-
function
|
|
1960
|
+
function Er(e, t, n, r) {
|
|
2014
1961
|
let i = n[e]?.type;
|
|
2015
1962
|
if (t = i === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e]) return t;
|
|
2016
1963
|
if (r === "toAttribute") switch (i) {
|
|
@@ -2028,14 +1975,14 @@ function Or(e, t, n, r) {
|
|
|
2028
1975
|
default: return t;
|
|
2029
1976
|
}
|
|
2030
1977
|
}
|
|
2031
|
-
function
|
|
1978
|
+
function Dr(e) {
|
|
2032
1979
|
let t = {};
|
|
2033
1980
|
return e.childNodes.forEach((e) => {
|
|
2034
1981
|
t[e.slot || "default"] = !0;
|
|
2035
1982
|
}), t;
|
|
2036
1983
|
}
|
|
2037
|
-
function
|
|
2038
|
-
let o = class extends
|
|
1984
|
+
function Or(e, t, n, r, i, a) {
|
|
1985
|
+
let o = class extends Tr {
|
|
2039
1986
|
constructor() {
|
|
2040
1987
|
super(e, n, i), this.$$p_d = t;
|
|
2041
1988
|
}
|
|
@@ -2049,7 +1996,7 @@ function Ar(e, t, n, r, i, a) {
|
|
|
2049
1996
|
return this.$$c && e in this.$$c ? this.$$c[e] : this.$$d[e];
|
|
2050
1997
|
},
|
|
2051
1998
|
set(n) {
|
|
2052
|
-
n =
|
|
1999
|
+
n = Er(e, n, t), this.$$d[e] = n;
|
|
2053
2000
|
var r = this.$$c;
|
|
2054
2001
|
r && (l(r, e)?.get ? r[e] = n : r.$set({ [e]: n }));
|
|
2055
2002
|
}
|
|
@@ -2062,13 +2009,13 @@ function Ar(e, t, n, r, i, a) {
|
|
|
2062
2009
|
}
|
|
2063
2010
|
//#endregion
|
|
2064
2011
|
//#region src/lib/element-loader.ts
|
|
2065
|
-
var
|
|
2066
|
-
function
|
|
2067
|
-
|
|
2012
|
+
var kr = null;
|
|
2013
|
+
function Ar(e) {
|
|
2014
|
+
kr = e ?? null;
|
|
2068
2015
|
}
|
|
2069
|
-
async function
|
|
2070
|
-
if (!e.cdnUrl &&
|
|
2071
|
-
let n = await
|
|
2016
|
+
async function jr(e, t = !1) {
|
|
2017
|
+
if (!e.cdnUrl && kr) {
|
|
2018
|
+
let n = await kr(e);
|
|
2072
2019
|
if (n != null) return t && console.log(`[element-loader] Resolved ${e.kind} module via injected resolver for ${e.packagePath}`), n;
|
|
2073
2020
|
}
|
|
2074
2021
|
let n = e.cdnUrl ? `${e.cdnUrl}/${e.packagePath}` : e.packagePath;
|
|
@@ -2077,14 +2024,14 @@ async function Nr(e, t = !1) {
|
|
|
2077
2024
|
n
|
|
2078
2025
|
);
|
|
2079
2026
|
}
|
|
2080
|
-
async function
|
|
2027
|
+
async function Mr(e, t, n, r = !1, i = !1) {
|
|
2081
2028
|
if (customElements.get(t)) {
|
|
2082
2029
|
r && console.log(`[element-loader] Element ${t} already registered`);
|
|
2083
2030
|
return;
|
|
2084
2031
|
}
|
|
2085
2032
|
r && console.log(`[element-loader] Loading element ${e} (cdnUrl: ${n || "local"})`);
|
|
2086
2033
|
try {
|
|
2087
|
-
let i = e.replace(/^@pie-element\//, "").replace(/\/(author|print|controller)$/, ""), a = e.endsWith("/author") ? "author" : e.endsWith("/print") ? "print" : "delivery", o = await
|
|
2034
|
+
let i = e.replace(/^@pie-element\//, "").replace(/\/(author|print|controller)$/, ""), a = e.endsWith("/author") ? "author" : e.endsWith("/print") ? "print" : "delivery", o = await jr({
|
|
2088
2035
|
packagePath: e,
|
|
2089
2036
|
packageName: `@pie-element/${i}`,
|
|
2090
2037
|
elementName: i,
|
|
@@ -2100,11 +2047,11 @@ async function Pr(e, t, n, r = !1, i = !1) {
|
|
|
2100
2047
|
r && console.log(`[element-loader] Optional element ${e} not available`);
|
|
2101
2048
|
}
|
|
2102
2049
|
}
|
|
2103
|
-
async function
|
|
2050
|
+
async function Nr(e, t, n = !1) {
|
|
2104
2051
|
let r = `${e}/controller`;
|
|
2105
2052
|
n && console.log(`[element-loader] Loading controller from ${r} (cdnUrl: ${t || "local"})`);
|
|
2106
2053
|
try {
|
|
2107
|
-
let i = await
|
|
2054
|
+
let i = await jr({
|
|
2108
2055
|
packagePath: r,
|
|
2109
2056
|
packageName: e,
|
|
2110
2057
|
elementName: e.replace(/^@pie-element\//, ""),
|
|
@@ -2118,10 +2065,10 @@ async function Fr(e, t, n = !1) {
|
|
|
2118
2065
|
throw console.error(`[element-loader] Failed to load controller ${e}:`, n), Error(`Failed to load controller ${e}: ${n.message}`);
|
|
2119
2066
|
}
|
|
2120
2067
|
}
|
|
2121
|
-
async function
|
|
2068
|
+
async function Pr(e, t, n = !1) {
|
|
2122
2069
|
let r = `${e}/runtime-support`;
|
|
2123
2070
|
n && console.log(`[element-loader] Loading runtime support ${r} (cdnUrl: ${t || "local"})`);
|
|
2124
|
-
let i = await
|
|
2071
|
+
let i = await jr({
|
|
2125
2072
|
packagePath: r,
|
|
2126
2073
|
packageName: e,
|
|
2127
2074
|
elementName: e.replace(/^@pie-element\//, ""),
|
|
@@ -2133,7 +2080,7 @@ async function Ir(e, t, n = !1) {
|
|
|
2133
2080
|
}
|
|
2134
2081
|
//#endregion
|
|
2135
2082
|
//#region src/lib/iife-bundle-loader.ts
|
|
2136
|
-
var
|
|
2083
|
+
var Fr = {
|
|
2137
2084
|
retryDelayMs: 3e3,
|
|
2138
2085
|
timeoutMs: 12e4
|
|
2139
2086
|
}, $ = class extends Error {
|
|
@@ -2141,30 +2088,30 @@ var Lr = {
|
|
|
2141
2088
|
super(t), this.name = "IifeBundleLoadError", this.code = e, this.metadata = n;
|
|
2142
2089
|
}
|
|
2143
2090
|
};
|
|
2144
|
-
function
|
|
2091
|
+
function Ir(e) {
|
|
2145
2092
|
return {
|
|
2146
|
-
retryDelayMs: typeof e?.retryDelayMs == "number" && e.retryDelayMs > 0 ? e.retryDelayMs :
|
|
2147
|
-
timeoutMs: typeof e?.timeoutMs == "number" && e.timeoutMs > 0 ? e.timeoutMs :
|
|
2093
|
+
retryDelayMs: typeof e?.retryDelayMs == "number" && e.retryDelayMs > 0 ? e.retryDelayMs : Fr.retryDelayMs,
|
|
2094
|
+
timeoutMs: typeof e?.timeoutMs == "number" && e.timeoutMs > 0 ? e.timeoutMs : Fr.timeoutMs
|
|
2148
2095
|
};
|
|
2149
2096
|
}
|
|
2150
|
-
function
|
|
2097
|
+
function Lr(e) {
|
|
2151
2098
|
return e instanceof $ ? e.code === "SCRIPT_LOAD_FAILED" || e.code === "BUILD_START_FAILED" || e.code === "BUILD_STATUS_FAILED" : !1;
|
|
2152
2099
|
}
|
|
2153
|
-
function
|
|
2100
|
+
function Rr(e) {
|
|
2154
2101
|
return e instanceof Error ? e.message : typeof e == "string" ? e : String(e);
|
|
2155
2102
|
}
|
|
2156
|
-
function
|
|
2103
|
+
function zr(e) {
|
|
2157
2104
|
return new Promise((t) => setTimeout(t, e));
|
|
2158
2105
|
}
|
|
2159
|
-
function
|
|
2106
|
+
function Br(e) {
|
|
2160
2107
|
if (e?.aborted) throw new $("LOAD_ABORTED", "IIFE bundle load aborted");
|
|
2161
2108
|
}
|
|
2162
|
-
async function
|
|
2109
|
+
async function Vr(e, t) {
|
|
2163
2110
|
if (!t) {
|
|
2164
|
-
await
|
|
2111
|
+
await zr(e);
|
|
2165
2112
|
return;
|
|
2166
2113
|
}
|
|
2167
|
-
t.aborted &&
|
|
2114
|
+
t.aborted && Br(t), await new Promise((n, r) => {
|
|
2168
2115
|
let i = setTimeout(() => {
|
|
2169
2116
|
t.removeEventListener("abort", a), n();
|
|
2170
2117
|
}, e), a = () => {
|
|
@@ -2173,48 +2120,48 @@ async function Ur(e, t) {
|
|
|
2173
2120
|
t.addEventListener("abort", a);
|
|
2174
2121
|
});
|
|
2175
2122
|
}
|
|
2176
|
-
var
|
|
2177
|
-
function
|
|
2178
|
-
|
|
2123
|
+
var Hr = /* @__PURE__ */ new Map(), Ur = {};
|
|
2124
|
+
function Wr(e) {
|
|
2125
|
+
Ur = e ?? {};
|
|
2179
2126
|
}
|
|
2180
|
-
function
|
|
2127
|
+
function Gr() {
|
|
2181
2128
|
let e = window.pie;
|
|
2182
2129
|
if (!e) throw new $("REGISTRY_INVALID", "window.pie not found after loading IIFE bundle");
|
|
2183
2130
|
let t = e.default || e;
|
|
2184
2131
|
if (!t || typeof t != "object") throw new $("REGISTRY_INVALID", "Invalid IIFE package registry shape");
|
|
2185
2132
|
return t;
|
|
2186
2133
|
}
|
|
2187
|
-
function
|
|
2188
|
-
let t =
|
|
2134
|
+
function Kr(e) {
|
|
2135
|
+
let t = Hr.get(e);
|
|
2189
2136
|
if (t) return t;
|
|
2190
2137
|
let n = new Promise((t, n) => {
|
|
2191
2138
|
let r = document.createElement("script");
|
|
2192
2139
|
r.src = e, r.defer = !0, r.dataset.pieBundle = "true", r.onload = () => {
|
|
2193
2140
|
try {
|
|
2194
|
-
t(
|
|
2141
|
+
t(Gr());
|
|
2195
2142
|
} catch (t) {
|
|
2196
|
-
|
|
2143
|
+
Hr.delete(e), n(t instanceof Error ? t : new $("REGISTRY_INVALID", String(t)));
|
|
2197
2144
|
}
|
|
2198
2145
|
}, r.onerror = () => {
|
|
2199
|
-
|
|
2146
|
+
Hr.delete(e), n(new $("SCRIPT_LOAD_FAILED", `Failed to load IIFE bundle: ${e}`, { url: e }));
|
|
2200
2147
|
}, document.head.appendChild(r);
|
|
2201
2148
|
});
|
|
2202
|
-
return
|
|
2149
|
+
return Hr.set(e, n), n;
|
|
2203
2150
|
}
|
|
2204
|
-
function
|
|
2151
|
+
function qr(e, t) {
|
|
2205
2152
|
return e ? t === "player" ? e.player || "" : t === "editor" ? e.editor || "" : e.clientPlayer || "" : "";
|
|
2206
2153
|
}
|
|
2207
|
-
function
|
|
2154
|
+
function Jr(e) {
|
|
2208
2155
|
return `${e.trim().replace(/\/+$/, "")}/`;
|
|
2209
2156
|
}
|
|
2210
|
-
function
|
|
2157
|
+
function Yr(e) {
|
|
2211
2158
|
return e === "editor" ? "editor.js" : e === "player" ? "player.js" : "client-player.js";
|
|
2212
2159
|
}
|
|
2213
|
-
function
|
|
2214
|
-
let a = encodeURI(`${t}@${n}`), o = `${
|
|
2160
|
+
function Xr({ bundleHost: e, packageName: t, version: n, bundleTarget: r, forceRebuild: i }) {
|
|
2161
|
+
let a = encodeURI(`${t}@${n}`), o = `${Jr(e)}${a}/${Yr(r)}`;
|
|
2215
2162
|
return i ? `${o}${o.includes("?") ? "&" : "?"}overwrite=true&rebuild=${Date.now()}` : o;
|
|
2216
2163
|
}
|
|
2217
|
-
function
|
|
2164
|
+
function Zr(e, t) {
|
|
2218
2165
|
let n = e[t];
|
|
2219
2166
|
if (!n) throw new $("PACKAGE_MISSING", `Package ${t} not found in loaded bundle. Available: ${Object.keys(e).join(", ")}`, {
|
|
2220
2167
|
packageName: t,
|
|
@@ -2222,7 +2169,7 @@ function $r(e, t) {
|
|
|
2222
2169
|
});
|
|
2223
2170
|
return n;
|
|
2224
2171
|
}
|
|
2225
|
-
var
|
|
2172
|
+
var Qr = {
|
|
2226
2173
|
async startBuild(e) {
|
|
2227
2174
|
let t = await fetch(e.endpoint, {
|
|
2228
2175
|
method: "POST",
|
|
@@ -2266,23 +2213,23 @@ var ei = {
|
|
|
2266
2213
|
await new Promise((e) => setTimeout(e, 500));
|
|
2267
2214
|
}
|
|
2268
2215
|
}
|
|
2269
|
-
},
|
|
2270
|
-
async function
|
|
2271
|
-
let t = e.bundleTarget || "client-player", n = e.endpoint || "/api/bundle", r =
|
|
2216
|
+
}, $r = { load: (e) => Kr(e) };
|
|
2217
|
+
async function ei(e) {
|
|
2218
|
+
let t = e.bundleTarget || "client-player", n = e.endpoint || "/api/bundle", r = Ir(e.iifeBundleRetry), i = e.adapters ?? Ur, a = i.buildClient ?? Qr, o = i.registryClient ?? $r, s = Date.now(), c = 0;
|
|
2272
2219
|
for (;;) {
|
|
2273
2220
|
c += 1;
|
|
2274
2221
|
try {
|
|
2275
|
-
if (
|
|
2222
|
+
if (Br(e.signal), e.bundleHost) {
|
|
2276
2223
|
e.onProgress?.({ stage: "script-load" });
|
|
2277
|
-
let n =
|
|
2224
|
+
let n = Xr({
|
|
2278
2225
|
bundleHost: e.bundleHost,
|
|
2279
2226
|
packageName: e.packageName,
|
|
2280
2227
|
version: e.version,
|
|
2281
2228
|
bundleTarget: t,
|
|
2282
2229
|
forceRebuild: !!e.forceRebuild
|
|
2283
2230
|
}), i = await o.load(n);
|
|
2284
|
-
|
|
2285
|
-
let a =
|
|
2231
|
+
Br(e.signal);
|
|
2232
|
+
let a = Zr(i, e.packageName), l = {
|
|
2286
2233
|
source: "hosted",
|
|
2287
2234
|
url: n
|
|
2288
2235
|
};
|
|
@@ -2311,11 +2258,11 @@ async function ni(e) {
|
|
|
2311
2258
|
endpoint: n,
|
|
2312
2259
|
onProgress: e.onProgress
|
|
2313
2260
|
});
|
|
2314
|
-
if (
|
|
2261
|
+
if (Br(e.signal), !l.success) throw new $("BUILD_RESULT_FAILED", l.errors?.join("\n") || "Local bundle build failed", {
|
|
2315
2262
|
packageName: e.packageName,
|
|
2316
2263
|
endpoint: n
|
|
2317
2264
|
});
|
|
2318
|
-
let u =
|
|
2265
|
+
let u = qr(l.bundles, t);
|
|
2319
2266
|
if (!u) throw new $("BUNDLE_URL_MISSING", "Bundle URL was not returned", {
|
|
2320
2267
|
packageName: e.packageName,
|
|
2321
2268
|
bundleTarget: t
|
|
@@ -2332,8 +2279,8 @@ async function ni(e) {
|
|
|
2332
2279
|
cached: l.cached,
|
|
2333
2280
|
url: u
|
|
2334
2281
|
}, p = await o.load(u);
|
|
2335
|
-
|
|
2336
|
-
let m =
|
|
2282
|
+
Br(e.signal);
|
|
2283
|
+
let m = Zr(p, e.packageName);
|
|
2337
2284
|
if (c > 1) {
|
|
2338
2285
|
let t = Date.now() - s;
|
|
2339
2286
|
console.info(`[iife-bundle-loader] retry recovered after ${c} attempts (${t}ms): ${e.packageName}@${e.version}`);
|
|
@@ -2355,10 +2302,10 @@ async function ni(e) {
|
|
|
2355
2302
|
attempt: c,
|
|
2356
2303
|
elapsedMs: Date.now() - s,
|
|
2357
2304
|
timeoutMs: r.timeoutMs,
|
|
2358
|
-
reason:
|
|
2305
|
+
reason: Rr(t)
|
|
2359
2306
|
}), t;
|
|
2360
|
-
if (!
|
|
2361
|
-
let i = Date.now() - s, a = r.timeoutMs - i, o =
|
|
2307
|
+
if (!Lr(t)) throw t;
|
|
2308
|
+
let i = Date.now() - s, a = r.timeoutMs - i, o = Rr(t);
|
|
2362
2309
|
if (a <= 0) throw e.onRetryStatus?.({
|
|
2363
2310
|
state: "timeout",
|
|
2364
2311
|
stage: t.code === "SCRIPT_LOAD_FAILED" ? "script-load" : "build-status",
|
|
@@ -2386,49 +2333,49 @@ async function ni(e) {
|
|
|
2386
2333
|
retryDelayMs: l,
|
|
2387
2334
|
timeoutMs: r.timeoutMs,
|
|
2388
2335
|
reason: o
|
|
2389
|
-
}), await
|
|
2336
|
+
}), await Vr(l, e.signal);
|
|
2390
2337
|
}
|
|
2391
2338
|
}
|
|
2392
2339
|
}
|
|
2393
2340
|
//#endregion
|
|
2394
2341
|
//#region src/lib/player-strategy.ts
|
|
2395
|
-
function
|
|
2342
|
+
function ti(e, t = "esm") {
|
|
2396
2343
|
return e === "esm" || e === "iife" || e === "preloaded" ? e : t;
|
|
2397
2344
|
}
|
|
2398
|
-
function
|
|
2345
|
+
function ni(e, t = "delivery") {
|
|
2399
2346
|
return e === "delivery" || e === "author" || e === "print" ? e : t;
|
|
2400
2347
|
}
|
|
2401
|
-
function
|
|
2402
|
-
let n =
|
|
2348
|
+
function ri(e, t = "delivery") {
|
|
2349
|
+
let n = ni(e.view ?? void 0, t);
|
|
2403
2350
|
return e.view ? n : e.mode === "author" ? "author" : e.mode === "print" ? "print" : t;
|
|
2404
2351
|
}
|
|
2405
2352
|
//#endregion
|
|
2406
2353
|
//#region src/lib/runtime-support.ts
|
|
2407
|
-
function
|
|
2354
|
+
function ii(e, t = "off") {
|
|
2408
2355
|
return e === "off" || e === "on" ? e : t;
|
|
2409
2356
|
}
|
|
2410
|
-
function
|
|
2357
|
+
function ai(e) {
|
|
2411
2358
|
return e === "on";
|
|
2412
2359
|
}
|
|
2413
|
-
function
|
|
2360
|
+
function oi(e, t, n) {
|
|
2414
2361
|
let r = e.supports?.[t];
|
|
2415
2362
|
if (!r) return !0;
|
|
2416
2363
|
let i = r[n];
|
|
2417
|
-
return i === void 0
|
|
2364
|
+
return i === void 0 || i;
|
|
2418
2365
|
}
|
|
2419
2366
|
//#endregion
|
|
2420
2367
|
//#region src/lib/unified-player-loader.ts
|
|
2421
|
-
var
|
|
2422
|
-
function
|
|
2368
|
+
var si = 3e4, ci = /* @__PURE__ */ new Map(), li = /* @__PURE__ */ new Map();
|
|
2369
|
+
function ui(e, t, n, r) {
|
|
2423
2370
|
if (n !== "delivery" || r?.status === "loaded") return;
|
|
2424
2371
|
let i = r?.message || `controller status=${r?.status || "missing"}`;
|
|
2425
2372
|
throw Error(`Controller contract violation for ${e.packageName} (${t}/${n}): ${i}. Delivery mode requires a loadable controller.`);
|
|
2426
2373
|
}
|
|
2427
|
-
var
|
|
2428
|
-
function
|
|
2429
|
-
return e === "iife" ?
|
|
2374
|
+
var di = (e, t) => t === "delivery" ? `pie-iife-${e}`.replace(/[^a-z0-9-]/g, "-") : t === "author" ? `${e}-configure` : `${e}-print`, fi = (e, t) => t === "delivery" ? `${e}-element` : t === "author" ? `${e}-configure` : `${e}-print`;
|
|
2375
|
+
function pi(e, t, n) {
|
|
2376
|
+
return e === "iife" ? di(n, t) : fi(n, t);
|
|
2430
2377
|
}
|
|
2431
|
-
function
|
|
2378
|
+
function mi(e, t, n) {
|
|
2432
2379
|
return {
|
|
2433
2380
|
status: "not-required",
|
|
2434
2381
|
source: "none",
|
|
@@ -2437,13 +2384,13 @@ function gi(e, t, n) {
|
|
|
2437
2384
|
view: n
|
|
2438
2385
|
};
|
|
2439
2386
|
}
|
|
2440
|
-
async function
|
|
2387
|
+
async function hi(e, t, n) {
|
|
2441
2388
|
if (n !== "delivery" && n !== "author") return {
|
|
2442
2389
|
controller: void 0,
|
|
2443
|
-
diagnostic:
|
|
2390
|
+
diagnostic: mi(e.packageName, t, n)
|
|
2444
2391
|
};
|
|
2445
2392
|
try {
|
|
2446
|
-
let r = await
|
|
2393
|
+
let r = await Nr(e.packageName, e.cdnUrl || "");
|
|
2447
2394
|
return {
|
|
2448
2395
|
controller: r,
|
|
2449
2396
|
diagnostic: {
|
|
@@ -2470,18 +2417,18 @@ async function _i(e, t, n) {
|
|
|
2470
2417
|
};
|
|
2471
2418
|
}
|
|
2472
2419
|
}
|
|
2473
|
-
function
|
|
2474
|
-
|
|
2420
|
+
function gi(e) {
|
|
2421
|
+
Ar(e);
|
|
2475
2422
|
}
|
|
2476
|
-
function
|
|
2423
|
+
function _i(e) {
|
|
2477
2424
|
return `${e.packageName}@${e.elementVersion || "latest"}`;
|
|
2478
2425
|
}
|
|
2479
|
-
function
|
|
2426
|
+
function vi(e) {
|
|
2480
2427
|
let t = String(e || "").toLowerCase();
|
|
2481
2428
|
return t.includes("cannot find module") || t.includes("no known conditions") || t.includes("failed to fetch dynamically imported module") || t.includes("404") || t.includes("/runtime-support");
|
|
2482
2429
|
}
|
|
2483
|
-
async function
|
|
2484
|
-
if (!
|
|
2430
|
+
async function yi(e, t, n) {
|
|
2431
|
+
if (!ai(ii(e.runtimeSupportCheck, "off"))) return {
|
|
2485
2432
|
runtimeSupport: void 0,
|
|
2486
2433
|
diagnostic: {
|
|
2487
2434
|
status: "skipped",
|
|
@@ -2490,7 +2437,7 @@ async function xi(e, t, n) {
|
|
|
2490
2437
|
view: n
|
|
2491
2438
|
}
|
|
2492
2439
|
};
|
|
2493
|
-
let r =
|
|
2440
|
+
let r = _i(e), i = ci.get(r);
|
|
2494
2441
|
if (i) return {
|
|
2495
2442
|
runtimeSupport: i,
|
|
2496
2443
|
diagnostic: {
|
|
@@ -2500,8 +2447,8 @@ async function xi(e, t, n) {
|
|
|
2500
2447
|
view: n
|
|
2501
2448
|
}
|
|
2502
2449
|
};
|
|
2503
|
-
let a =
|
|
2504
|
-
if (a && Date.now() - a <
|
|
2450
|
+
let a = li.get(r);
|
|
2451
|
+
if (a && Date.now() - a < si) return {
|
|
2505
2452
|
runtimeSupport: void 0,
|
|
2506
2453
|
diagnostic: {
|
|
2507
2454
|
status: "missing",
|
|
@@ -2512,8 +2459,8 @@ async function xi(e, t, n) {
|
|
|
2512
2459
|
}
|
|
2513
2460
|
};
|
|
2514
2461
|
try {
|
|
2515
|
-
let i = await
|
|
2516
|
-
return
|
|
2462
|
+
let i = await Pr(e.packageName, e.cdnUrl || "");
|
|
2463
|
+
return ci.set(r, i), li.delete(r), {
|
|
2517
2464
|
runtimeSupport: i,
|
|
2518
2465
|
diagnostic: {
|
|
2519
2466
|
status: "loaded",
|
|
@@ -2524,7 +2471,7 @@ async function xi(e, t, n) {
|
|
|
2524
2471
|
};
|
|
2525
2472
|
} catch (i) {
|
|
2526
2473
|
let a = i instanceof Error ? i.message : String(i);
|
|
2527
|
-
return
|
|
2474
|
+
return vi(i) ? (li.set(r, Date.now()), {
|
|
2528
2475
|
runtimeSupport: void 0,
|
|
2529
2476
|
diagnostic: {
|
|
2530
2477
|
status: "missing",
|
|
@@ -2545,14 +2492,14 @@ async function xi(e, t, n) {
|
|
|
2545
2492
|
};
|
|
2546
2493
|
}
|
|
2547
2494
|
}
|
|
2548
|
-
function
|
|
2549
|
-
return !r || e !== "esm" && e !== "iife" ||
|
|
2495
|
+
function bi(e, t, n, r) {
|
|
2496
|
+
return !r || e !== "esm" && e !== "iife" || oi(r, e, t) ? "" : ` Runtime support metadata indicates ${e}/${t} is unsupported for ${n}.`;
|
|
2550
2497
|
}
|
|
2551
|
-
async function
|
|
2552
|
-
let a =
|
|
2553
|
-
await
|
|
2554
|
-
let { controller: o, diagnostic: s } = await
|
|
2555
|
-
return
|
|
2498
|
+
async function xi(e, t, n, r, i) {
|
|
2499
|
+
let a = fi(e.elementName, t);
|
|
2500
|
+
await Mr(t === "delivery" ? e.packageName : t === "author" ? `${e.packageName}/author` : `${e.packageName}/print`, a, e.cdnUrl || ""), await customElements.whenDefined(a);
|
|
2501
|
+
let { controller: o, diagnostic: s } = await hi(e, "esm", t);
|
|
2502
|
+
return ui(e, "esm", t, s), {
|
|
2556
2503
|
strategy: "esm",
|
|
2557
2504
|
requestedStrategy: n,
|
|
2558
2505
|
view: t,
|
|
@@ -2563,19 +2510,19 @@ async function Ci(e, t, n, r, i) {
|
|
|
2563
2510
|
runtimeSupportDiagnostic: i
|
|
2564
2511
|
};
|
|
2565
2512
|
}
|
|
2566
|
-
async function
|
|
2567
|
-
let a = t === "author" ? "editor" : t === "print" ? "player" : "client-player", { pkg: o, meta: s } = await
|
|
2513
|
+
async function Si(e, t, n, r, i) {
|
|
2514
|
+
let a = t === "author" ? "editor" : t === "print" ? "player" : "client-player", { pkg: o, meta: s } = await ei({
|
|
2568
2515
|
packageName: e.packageName,
|
|
2569
2516
|
version: e.elementVersion,
|
|
2570
2517
|
endpoint: e.iifeBundleEndpoint,
|
|
2571
2518
|
bundleHost: e.iifeBundleHost,
|
|
2572
|
-
iifeBundleRetry: e.iifeBundleRetry ??
|
|
2519
|
+
iifeBundleRetry: e.iifeBundleRetry ?? Fr,
|
|
2573
2520
|
onRetryStatus: e.onIifeBundleRetryStatus,
|
|
2574
2521
|
signal: e.signal,
|
|
2575
2522
|
bundleTarget: a,
|
|
2576
2523
|
forceRebuild: (e.rebuildVersion || 0) > 0,
|
|
2577
2524
|
clearCache: (e.rebuildVersion || 0) > 0
|
|
2578
|
-
}), c =
|
|
2525
|
+
}), c = di(e.elementName, t), l = t === "delivery" ? o.Element : t === "author" ? o.Configure : o.Print;
|
|
2579
2526
|
if (!l) throw Error(`IIFE bundle is missing ${t} export for ${e.packageName}`);
|
|
2580
2527
|
customElements.get(c) || customElements.define(c, class extends l {}), await customElements.whenDefined(c);
|
|
2581
2528
|
let u = o.controller, d;
|
|
@@ -2595,10 +2542,10 @@ async function wi(e, t, n, r, i) {
|
|
|
2595
2542
|
message: "client-player bundle did not include controller export"
|
|
2596
2543
|
};
|
|
2597
2544
|
else {
|
|
2598
|
-
let n = await
|
|
2545
|
+
let n = await hi(e, "iife", t);
|
|
2599
2546
|
u = n.controller, d = n.diagnostic;
|
|
2600
2547
|
}
|
|
2601
|
-
return
|
|
2548
|
+
return ui(e, "iife", t, d), {
|
|
2602
2549
|
strategy: "iife",
|
|
2603
2550
|
requestedStrategy: n,
|
|
2604
2551
|
view: t,
|
|
@@ -2610,50 +2557,60 @@ async function wi(e, t, n, r, i) {
|
|
|
2610
2557
|
runtimeSupportDiagnostic: i
|
|
2611
2558
|
};
|
|
2612
2559
|
}
|
|
2613
|
-
async function
|
|
2614
|
-
let t =
|
|
2560
|
+
async function Ci(e) {
|
|
2561
|
+
let t = ti(e.strategy, "esm"), n = t, r = ni(e.view, "delivery");
|
|
2615
2562
|
if (n === "preloaded") {
|
|
2616
|
-
let t =
|
|
2563
|
+
let t = ti(e.preloadedFallbackStrategy, "esm"), n = pi(t, r, e.elementName);
|
|
2617
2564
|
return customElements.get(n) ? {
|
|
2618
2565
|
strategy: "preloaded",
|
|
2619
2566
|
view: r,
|
|
2620
2567
|
tagName: n
|
|
2621
|
-
} :
|
|
2568
|
+
} : Ci({
|
|
2622
2569
|
...e,
|
|
2623
2570
|
strategy: t
|
|
2624
2571
|
});
|
|
2625
2572
|
}
|
|
2626
|
-
let i = await
|
|
2573
|
+
let i = await yi(e, n, r);
|
|
2627
2574
|
try {
|
|
2628
|
-
return n === "iife" ?
|
|
2575
|
+
return n === "iife" ? Si(e, r, t, i.runtimeSupport, i.diagnostic) : xi(e, r, t, i.runtimeSupport, i.diagnostic);
|
|
2629
2576
|
} catch (t) {
|
|
2630
|
-
let a = t instanceof Error ? t.message : String(t), o =
|
|
2577
|
+
let a = t instanceof Error ? t.message : String(t), o = bi(n, r, e.packageName, i.runtimeSupport);
|
|
2631
2578
|
throw Error(`${a}${o}`);
|
|
2632
2579
|
}
|
|
2633
2580
|
}
|
|
2634
2581
|
//#endregion
|
|
2635
2582
|
//#region src/players/PieElementPlayer.svelte
|
|
2636
|
-
var
|
|
2583
|
+
var wi = /* @__PURE__ */ nr("<div class=\"loading-warning svelte-srjg3v\" role=\"status\" aria-live=\"polite\" aria-atomic=\"true\"> </div>"), Ti = /* @__PURE__ */ nr("<div class=\"loading svelte-srjg3v\"> <!></div>"), Ei = /* @__PURE__ */ nr("<div class=\"error svelte-srjg3v\"><strong>Element player error:</strong> <pre class=\"svelte-srjg3v\"> </pre></div>"), Di = /* @__PURE__ */ nr("<div class=\"demo-element-player element-player-host svelte-srjg3v\"><div class=\"element-player-mount svelte-srjg3v\"></div> <!> <!></div>"), Oi = {
|
|
2637
2584
|
hash: "svelte-srjg3v",
|
|
2638
2585
|
code: ".element-player-host.svelte-srjg3v {width:100%;min-height:100px;}.element-player-mount.svelte-srjg3v {width:100%;}.loading.svelte-srjg3v {padding:2rem;text-align:center;color:hsl(var(--bc) / 0.6);font-style:italic;}.loading-warning.svelte-srjg3v {margin-top:0.5rem;color:#9a6700;font-style:normal;}.error.svelte-srjg3v {padding:1rem;background:hsl(var(--er) / 0.1);border:1px solid hsl(var(--er) / 0.3);border-radius:4px;color:hsl(var(--er));}.error.svelte-srjg3v pre:where(.svelte-srjg3v) {margin:0.5rem 0 0;padding:0.5rem;background:#fff;border-radius:4px;font-size:0.875rem;overflow-x:auto;}"
|
|
2639
2586
|
};
|
|
2640
|
-
function
|
|
2641
|
-
Fe(n, !0),
|
|
2642
|
-
let r = Q(n, "strategy", 7, "esm"), i = Q(n, "view", 7, "delivery"), a = Q(n, "mode", 7, ""), o = Q(n, "elementName", 7, ""), s = Q(n, "packageName", 7, ""), c = Q(n, "elementVersion", 7, "latest"), l = Q(n, "role", 7, "student"), u = Q(n, "cdnUrl", 7, ""), d = Q(n, "iifeBundleEndpoint", 7, "/api/bundle"), f = Q(n, "iifeBundleHost", 7, ""), p = Q(n, "iifeBundleRetry", 7,
|
|
2643
|
-
|
|
2587
|
+
function ki(t, n) {
|
|
2588
|
+
Fe(n, !0), br(t, Oi);
|
|
2589
|
+
let r = Q(n, "strategy", 7, "esm"), i = Q(n, "view", 7, "delivery"), a = Q(n, "mode", 7, ""), o = Q(n, "elementName", 7, ""), s = Q(n, "packageName", 7, ""), c = Q(n, "elementVersion", 7, "latest"), l = Q(n, "role", 7, "student"), u = Q(n, "cdnUrl", 7, ""), d = Q(n, "iifeBundleEndpoint", 7, "/api/bundle"), f = Q(n, "iifeBundleHost", 7, ""), p = Q(n, "iifeBundleRetry", 7, Fr), m = Q(n, "preloadedFallbackStrategy", 7, "esm"), h = Q(n, "runtimeSupportCheck", 7, "off"), g = Q(n, "rebuildVersion", 7, 0), _ = Q(n, "model", 15), v = Q(n, "session", 15);
|
|
2590
|
+
function y(e, t) {
|
|
2591
|
+
Gn(() => {
|
|
2592
|
+
n.$$host.dispatchEvent(new CustomEvent(e, {
|
|
2593
|
+
detail: t,
|
|
2594
|
+
bubbles: !0,
|
|
2595
|
+
composed: !0
|
|
2596
|
+
}));
|
|
2597
|
+
});
|
|
2598
|
+
}
|
|
2599
|
+
let b, ee, x = /* @__PURE__ */ L(null), te = /* @__PURE__ */ L(null), ne = /* @__PURE__ */ L(!0), S = /* @__PURE__ */ L(null), C = /* @__PURE__ */ L(null), re = 0, w = null, ie = null, T = null, E = null, ae = !1, oe = !1, se = null, ce = null, le = !1, ue = !1, de = "", fe = "", pe = /* @__PURE__ */ new Set(["complete", "component"]), me = null, D = "", he = "", O = /* @__PURE__ */ rt(() => {
|
|
2600
|
+
if (Z(C)?.state !== "retrying") return null;
|
|
2644
2601
|
let e = Math.max(1, Math.ceil(Z(C).elapsedMs / 1e3)), t = Math.max(1, Math.ceil(Z(C).timeoutMs / 1e3));
|
|
2645
2602
|
return `Bundle is still building. Retrying attempt ${Z(C).attempt} (${e}s of ${t}s).`;
|
|
2646
2603
|
});
|
|
2647
|
-
function
|
|
2604
|
+
function k(e) {
|
|
2648
2605
|
if (!e || typeof e != "object") return !1;
|
|
2649
2606
|
let t = e;
|
|
2650
2607
|
return t.code === "LOAD_ABORTED" || typeof t.message == "string" && t.message.includes("aborted");
|
|
2651
2608
|
}
|
|
2652
|
-
let
|
|
2609
|
+
let A = /* @__PURE__ */ rt(() => ti(r(), "esm")), j = /* @__PURE__ */ rt(() => ri({
|
|
2653
2610
|
mode: a(),
|
|
2654
2611
|
view: i()
|
|
2655
|
-
}, "delivery")),
|
|
2656
|
-
function
|
|
2612
|
+
}, "delivery")), _e = /* @__PURE__ */ rt(() => s() || (o() ? `@pie-element/${o()}` : ""));
|
|
2613
|
+
function ve(e) {
|
|
2657
2614
|
if (typeof e != "object" || !e) return e;
|
|
2658
2615
|
try {
|
|
2659
2616
|
return structuredClone(e);
|
|
@@ -2665,7 +2622,7 @@ function ji(t, n) {
|
|
|
2665
2622
|
}
|
|
2666
2623
|
}
|
|
2667
2624
|
}
|
|
2668
|
-
function
|
|
2625
|
+
function ye(e) {
|
|
2669
2626
|
try {
|
|
2670
2627
|
let t = JSON.stringify(e);
|
|
2671
2628
|
return t === void 0 ? "__undefined__" : t;
|
|
@@ -2673,14 +2630,14 @@ function ji(t, n) {
|
|
|
2673
2630
|
return `__unserializable__:${String(e)}`;
|
|
2674
2631
|
}
|
|
2675
2632
|
}
|
|
2676
|
-
function
|
|
2633
|
+
function be(e) {
|
|
2677
2634
|
if (!e || typeof e != "object") return !1;
|
|
2678
2635
|
let t = e;
|
|
2679
2636
|
if ("session" in t) return !0;
|
|
2680
2637
|
let n = Object.keys(t);
|
|
2681
|
-
return n.length
|
|
2638
|
+
return n.length !== 0 && !n.every((e) => pe.has(e));
|
|
2682
2639
|
}
|
|
2683
|
-
function
|
|
2640
|
+
function xe() {
|
|
2684
2641
|
T && b && T.observe(b, {
|
|
2685
2642
|
childList: !0,
|
|
2686
2643
|
subtree: !0,
|
|
@@ -2688,7 +2645,7 @@ function ji(t, n) {
|
|
|
2688
2645
|
characterData: !1
|
|
2689
2646
|
});
|
|
2690
2647
|
}
|
|
2691
|
-
async function
|
|
2648
|
+
async function Se() {
|
|
2692
2649
|
if (!(!ie || !b)) {
|
|
2693
2650
|
if (ae) {
|
|
2694
2651
|
oe = !0;
|
|
@@ -2700,20 +2657,20 @@ function ji(t, n) {
|
|
|
2700
2657
|
} catch (e) {
|
|
2701
2658
|
console.error("[pie-element-player] Math rendering error:", e);
|
|
2702
2659
|
} finally {
|
|
2703
|
-
ae = !1,
|
|
2660
|
+
ae = !1, xe(), oe && (oe = !1, queueMicrotask(() => void Se()));
|
|
2704
2661
|
}
|
|
2705
2662
|
}
|
|
2706
2663
|
}
|
|
2707
|
-
function
|
|
2664
|
+
function Ce() {
|
|
2708
2665
|
Z(x) && (se &&= (Z(x).removeEventListener("session-changed", se), null), ce &&= (Z(x).removeEventListener("model.updated", ce, !0), null));
|
|
2709
2666
|
}
|
|
2710
|
-
function
|
|
2711
|
-
Z(x) && (
|
|
2712
|
-
if (le || ue) {
|
|
2667
|
+
function we(e) {
|
|
2668
|
+
Z(x) && (Ce(), e === "delivery" && (se = (e) => {
|
|
2669
|
+
if (le || ue || !D) {
|
|
2713
2670
|
e.stopPropagation();
|
|
2714
2671
|
return;
|
|
2715
2672
|
}
|
|
2716
|
-
let t = e.detail, n = t && typeof t == "object" ? t : null, r =
|
|
2673
|
+
let t = e.detail, n = t && typeof t == "object" ? t : null, r = be(n), i = Z(x)?.session, a = t?.session ?? i ?? v();
|
|
2717
2674
|
if (a === void 0) {
|
|
2718
2675
|
e.stopPropagation();
|
|
2719
2676
|
return;
|
|
@@ -2722,7 +2679,7 @@ function ji(t, n) {
|
|
|
2722
2679
|
e.stopPropagation();
|
|
2723
2680
|
return;
|
|
2724
2681
|
}
|
|
2725
|
-
let o =
|
|
2682
|
+
let o = ve(a ?? {}), s = ye(o);
|
|
2726
2683
|
if (s === fe) {
|
|
2727
2684
|
e.stopPropagation();
|
|
2728
2685
|
return;
|
|
@@ -2730,12 +2687,12 @@ function ji(t, n) {
|
|
|
2730
2687
|
let c = {
|
|
2731
2688
|
...n ?? {},
|
|
2732
2689
|
session: o
|
|
2733
|
-
}, l =
|
|
2690
|
+
}, l = ye(c);
|
|
2734
2691
|
if (l === de) {
|
|
2735
2692
|
e.stopPropagation();
|
|
2736
2693
|
return;
|
|
2737
2694
|
}
|
|
2738
|
-
de = l, fe = s, e.stopPropagation(), ue = !0, v(
|
|
2695
|
+
de = l, fe = s, e.stopPropagation(), ue = !0, v(ve(o)), he = ye(o);
|
|
2739
2696
|
try {
|
|
2740
2697
|
y("session-changed", c);
|
|
2741
2698
|
} finally {
|
|
@@ -2751,29 +2708,29 @@ function ji(t, n) {
|
|
|
2751
2708
|
}), y("model-changed", r);
|
|
2752
2709
|
}, Z(x).addEventListener("model.updated", ce, !0)));
|
|
2753
2710
|
}
|
|
2754
|
-
function
|
|
2711
|
+
function Te(e) {
|
|
2755
2712
|
if (!Z(x) || e == null) return;
|
|
2756
|
-
let t =
|
|
2757
|
-
t !==
|
|
2713
|
+
let t = ye(e ?? {});
|
|
2714
|
+
t !== D && (Z(x).model = ve(e ?? {}), D = t);
|
|
2758
2715
|
}
|
|
2759
|
-
function
|
|
2760
|
-
if (!Z(x) || Z(
|
|
2761
|
-
let t =
|
|
2762
|
-
if (t !==
|
|
2716
|
+
function Ee(e) {
|
|
2717
|
+
if (!Z(x) || Z(j) !== "delivery" || e == null || !D) return;
|
|
2718
|
+
let t = ye(e ?? {});
|
|
2719
|
+
if (t !== he) {
|
|
2763
2720
|
le = !0;
|
|
2764
2721
|
try {
|
|
2765
|
-
Z(x).session =
|
|
2722
|
+
Z(x).session = ve(e ?? {}), he = t;
|
|
2766
2723
|
} finally {
|
|
2767
2724
|
le = !1;
|
|
2768
2725
|
}
|
|
2769
2726
|
}
|
|
2770
2727
|
}
|
|
2771
2728
|
function De(e) {
|
|
2772
|
-
!Z(x) || Z(
|
|
2729
|
+
!Z(x) || Z(j) !== "print" || e === me || (Z(x).role = e, Z(x).options = { role: e }, me = e);
|
|
2773
2730
|
}
|
|
2774
2731
|
async function Oe() {
|
|
2775
|
-
if (!o() || !Z(
|
|
2776
|
-
|
|
2732
|
+
if (!o() || !Z(_e)) {
|
|
2733
|
+
R(ne, !1), R(S, "Missing required element metadata");
|
|
2777
2734
|
return;
|
|
2778
2735
|
}
|
|
2779
2736
|
let e = ++re;
|
|
@@ -2781,29 +2738,29 @@ function ji(t, n) {
|
|
|
2781
2738
|
loading: !1,
|
|
2782
2739
|
error: null,
|
|
2783
2740
|
stage: "cancelled",
|
|
2784
|
-
strategy: Z(
|
|
2785
|
-
view: Z(
|
|
2741
|
+
strategy: Z(A),
|
|
2742
|
+
view: Z(j),
|
|
2786
2743
|
retry: {
|
|
2787
2744
|
state: "cancelled",
|
|
2788
2745
|
stage: "build-status",
|
|
2789
2746
|
attempt: 0,
|
|
2790
2747
|
elapsedMs: 0,
|
|
2791
|
-
timeoutMs: p()?.timeoutMs ??
|
|
2748
|
+
timeoutMs: p()?.timeoutMs ?? Fr.timeoutMs,
|
|
2792
2749
|
reason: "superseded by new load request"
|
|
2793
2750
|
}
|
|
2794
2751
|
}), y("load-cancelled", {
|
|
2795
2752
|
reason: "superseded by new load request",
|
|
2796
|
-
strategy: Z(
|
|
2797
|
-
view: Z(
|
|
2753
|
+
strategy: Z(A),
|
|
2754
|
+
view: Z(j)
|
|
2798
2755
|
}));
|
|
2799
2756
|
let t = new AbortController();
|
|
2800
|
-
w = t,
|
|
2757
|
+
w = t, R(ne, !0), R(S, null), R(C, null);
|
|
2801
2758
|
try {
|
|
2802
|
-
let n = await
|
|
2803
|
-
strategy: Z(
|
|
2804
|
-
view: Z(
|
|
2759
|
+
let n = await Ci({
|
|
2760
|
+
strategy: Z(A),
|
|
2761
|
+
view: Z(j),
|
|
2805
2762
|
elementName: o(),
|
|
2806
|
-
packageName: Z(
|
|
2763
|
+
packageName: Z(_e),
|
|
2807
2764
|
elementVersion: c(),
|
|
2808
2765
|
cdnUrl: u(),
|
|
2809
2766
|
iifeBundleEndpoint: d(),
|
|
@@ -2812,12 +2769,12 @@ function ji(t, n) {
|
|
|
2812
2769
|
signal: t.signal,
|
|
2813
2770
|
runtimeSupportCheck: h(),
|
|
2814
2771
|
onIifeBundleRetryStatus: (t) => {
|
|
2815
|
-
e === re && (
|
|
2772
|
+
e === re && (R(C, t, !0), y("bundle-retry-status", t), y("build-state", {
|
|
2816
2773
|
loading: t.state === "retrying",
|
|
2817
2774
|
error: null,
|
|
2818
2775
|
stage: t.state,
|
|
2819
|
-
strategy: Z(
|
|
2820
|
-
view: Z(
|
|
2776
|
+
strategy: Z(A),
|
|
2777
|
+
view: Z(j),
|
|
2821
2778
|
retry: t
|
|
2822
2779
|
}));
|
|
2823
2780
|
},
|
|
@@ -2825,7 +2782,7 @@ function ji(t, n) {
|
|
|
2825
2782
|
rebuildVersion: g()
|
|
2826
2783
|
});
|
|
2827
2784
|
if (e !== re) return;
|
|
2828
|
-
n.bundleMeta && y("bundle-meta", n.bundleMeta), n.controllerDiagnostic && y("controller-load", n.controllerDiagnostic), n.controller && n.view === "delivery" && n.strategy === "iife" && y("controller-changed", n.controller), (!Z(x) || Z(te) !== n.tagName) && (
|
|
2785
|
+
n.bundleMeta && y("bundle-meta", n.bundleMeta), n.controllerDiagnostic && y("controller-load", n.controllerDiagnostic), n.controller && n.view === "delivery" && n.strategy === "iife" && y("controller-changed", n.controller), (!Z(x) || Z(te) !== n.tagName) && (Ce(), Z(x) && Z(x).remove(), R(x, document.createElement(n.tagName), !0), R(te, n.tagName, !0), me = null, D = "", he = "", de = "", fe = ""), we(n.view), Te(_()), Ee(v()), De(l()), ee && Z(x).parentElement !== ee && ee.replaceChildren(Z(x)), y("build-state", {
|
|
2829
2786
|
loading: !1,
|
|
2830
2787
|
error: null,
|
|
2831
2788
|
stage: "completed"
|
|
@@ -2833,197 +2790,197 @@ function ji(t, n) {
|
|
|
2833
2790
|
strategy: n.strategy,
|
|
2834
2791
|
view: n.view,
|
|
2835
2792
|
tagName: n.tagName
|
|
2836
|
-
}),
|
|
2793
|
+
}), R(ne, !1), R(C, null), w === t && (w = null);
|
|
2837
2794
|
} catch (n) {
|
|
2838
2795
|
if (e !== re) return;
|
|
2839
|
-
if (
|
|
2796
|
+
if (k(n) || t.signal.aborted) {
|
|
2840
2797
|
let e = Z(C), r = e?.state === "cancelled" ? e : {
|
|
2841
2798
|
state: "cancelled",
|
|
2842
2799
|
stage: "build-status",
|
|
2843
2800
|
attempt: 0,
|
|
2844
2801
|
elapsedMs: 0,
|
|
2845
|
-
timeoutMs: p()?.timeoutMs ??
|
|
2802
|
+
timeoutMs: p()?.timeoutMs ?? Fr.timeoutMs,
|
|
2846
2803
|
reason: n instanceof Error ? n.message : String(n)
|
|
2847
2804
|
};
|
|
2848
|
-
|
|
2805
|
+
R(S, null), R(ne, !1), R(C, r, !0), y("bundle-retry-status", r), y("build-state", {
|
|
2849
2806
|
loading: !1,
|
|
2850
2807
|
error: null,
|
|
2851
2808
|
stage: "cancelled",
|
|
2852
|
-
strategy: Z(
|
|
2853
|
-
view: Z(
|
|
2809
|
+
strategy: Z(A),
|
|
2810
|
+
view: Z(j),
|
|
2854
2811
|
retry: r
|
|
2855
2812
|
}), y("load-cancelled", {
|
|
2856
2813
|
reason: r.reason || "load cancelled",
|
|
2857
|
-
strategy: Z(
|
|
2858
|
-
view: Z(
|
|
2814
|
+
strategy: Z(A),
|
|
2815
|
+
view: Z(j)
|
|
2859
2816
|
}), w === t && (w = null);
|
|
2860
2817
|
return;
|
|
2861
2818
|
}
|
|
2862
|
-
|
|
2819
|
+
R(S, n instanceof Error ? n.message : String(n), !0), R(ne, !1);
|
|
2863
2820
|
let r = Z(C), i = r && (r.state === "timeout" || r.state === "completed") ? r : void 0;
|
|
2864
2821
|
y("build-state", {
|
|
2865
2822
|
loading: !1,
|
|
2866
2823
|
error: Z(S),
|
|
2867
2824
|
stage: "error",
|
|
2868
|
-
strategy: Z(
|
|
2869
|
-
view: Z(
|
|
2825
|
+
strategy: Z(A),
|
|
2826
|
+
view: Z(j),
|
|
2870
2827
|
retry: i
|
|
2871
2828
|
}), y("player-error", {
|
|
2872
2829
|
error: Z(S),
|
|
2873
|
-
strategy: Z(
|
|
2874
|
-
view: Z(
|
|
2830
|
+
strategy: Z(A),
|
|
2831
|
+
view: Z(j),
|
|
2875
2832
|
retry: i
|
|
2876
2833
|
}), w === t && (w = null);
|
|
2877
2834
|
}
|
|
2878
2835
|
}
|
|
2879
|
-
|
|
2836
|
+
an(() => {
|
|
2880
2837
|
[
|
|
2881
2838
|
o(),
|
|
2882
|
-
Z(
|
|
2839
|
+
Z(_e),
|
|
2883
2840
|
c(),
|
|
2884
|
-
Z(
|
|
2885
|
-
Z(
|
|
2841
|
+
Z(A),
|
|
2842
|
+
Z(j),
|
|
2886
2843
|
h(),
|
|
2887
2844
|
u(),
|
|
2888
2845
|
d(),
|
|
2889
2846
|
f(),
|
|
2890
|
-
JSON.stringify(p() ||
|
|
2847
|
+
JSON.stringify(p() || Fr),
|
|
2891
2848
|
m(),
|
|
2892
2849
|
g()
|
|
2893
2850
|
].join("|"), Oe();
|
|
2894
|
-
}),
|
|
2895
|
-
Z(x) && (
|
|
2851
|
+
}), an(() => {
|
|
2852
|
+
Z(x) && (Te(_()), Ee(v()), De(l()), requestAnimationFrame(() => {
|
|
2896
2853
|
requestAnimationFrame(() => {
|
|
2897
|
-
|
|
2854
|
+
Se();
|
|
2898
2855
|
});
|
|
2899
2856
|
}));
|
|
2900
|
-
}),
|
|
2857
|
+
}), vr(() => (ie = e(), typeof window < "u" && (window["@pie-lib/math-rendering"] = { renderMath: ie }), ie && typeof window < "u" && ie(document.createElement("div")), b && (T = new MutationObserver(() => {
|
|
2901
2858
|
E && clearTimeout(E), E = window.setTimeout(() => {
|
|
2902
|
-
|
|
2859
|
+
Se();
|
|
2903
2860
|
}, 100);
|
|
2904
|
-
}),
|
|
2905
|
-
E &&= (clearTimeout(E), null), T &&= (T.disconnect(), null), ee && ee.replaceChildren(), w?.abort(), w = null,
|
|
2861
|
+
}), xe(), Se()), () => {
|
|
2862
|
+
E &&= (clearTimeout(E), null), T &&= (T.disconnect(), null), ee && ee.replaceChildren(), re++, w?.abort(), w = null, Ce();
|
|
2906
2863
|
}));
|
|
2907
2864
|
var ke = {
|
|
2908
2865
|
get strategy() {
|
|
2909
2866
|
return r();
|
|
2910
2867
|
},
|
|
2911
2868
|
set strategy(e = "esm") {
|
|
2912
|
-
r(e),
|
|
2869
|
+
r(e), I();
|
|
2913
2870
|
},
|
|
2914
2871
|
get view() {
|
|
2915
2872
|
return i();
|
|
2916
2873
|
},
|
|
2917
2874
|
set view(e = "delivery") {
|
|
2918
|
-
i(e),
|
|
2875
|
+
i(e), I();
|
|
2919
2876
|
},
|
|
2920
2877
|
get mode() {
|
|
2921
2878
|
return a();
|
|
2922
2879
|
},
|
|
2923
2880
|
set mode(e = "") {
|
|
2924
|
-
a(e),
|
|
2881
|
+
a(e), I();
|
|
2925
2882
|
},
|
|
2926
2883
|
get elementName() {
|
|
2927
2884
|
return o();
|
|
2928
2885
|
},
|
|
2929
2886
|
set elementName(e = "") {
|
|
2930
|
-
o(e),
|
|
2887
|
+
o(e), I();
|
|
2931
2888
|
},
|
|
2932
2889
|
get packageName() {
|
|
2933
2890
|
return s();
|
|
2934
2891
|
},
|
|
2935
2892
|
set packageName(e = "") {
|
|
2936
|
-
s(e),
|
|
2893
|
+
s(e), I();
|
|
2937
2894
|
},
|
|
2938
2895
|
get elementVersion() {
|
|
2939
2896
|
return c();
|
|
2940
2897
|
},
|
|
2941
2898
|
set elementVersion(e = "latest") {
|
|
2942
|
-
c(e),
|
|
2899
|
+
c(e), I();
|
|
2943
2900
|
},
|
|
2944
2901
|
get role() {
|
|
2945
2902
|
return l();
|
|
2946
2903
|
},
|
|
2947
2904
|
set role(e = "student") {
|
|
2948
|
-
l(e),
|
|
2905
|
+
l(e), I();
|
|
2949
2906
|
},
|
|
2950
2907
|
get cdnUrl() {
|
|
2951
2908
|
return u();
|
|
2952
2909
|
},
|
|
2953
2910
|
set cdnUrl(e = "") {
|
|
2954
|
-
u(e),
|
|
2911
|
+
u(e), I();
|
|
2955
2912
|
},
|
|
2956
2913
|
get iifeBundleEndpoint() {
|
|
2957
2914
|
return d();
|
|
2958
2915
|
},
|
|
2959
2916
|
set iifeBundleEndpoint(e = "/api/bundle") {
|
|
2960
|
-
d(e),
|
|
2917
|
+
d(e), I();
|
|
2961
2918
|
},
|
|
2962
2919
|
get iifeBundleHost() {
|
|
2963
2920
|
return f();
|
|
2964
2921
|
},
|
|
2965
2922
|
set iifeBundleHost(e = "") {
|
|
2966
|
-
f(e),
|
|
2923
|
+
f(e), I();
|
|
2967
2924
|
},
|
|
2968
2925
|
get iifeBundleRetry() {
|
|
2969
2926
|
return p();
|
|
2970
2927
|
},
|
|
2971
|
-
set iifeBundleRetry(e =
|
|
2972
|
-
p(e),
|
|
2928
|
+
set iifeBundleRetry(e = Fr) {
|
|
2929
|
+
p(e), I();
|
|
2973
2930
|
},
|
|
2974
2931
|
get preloadedFallbackStrategy() {
|
|
2975
2932
|
return m();
|
|
2976
2933
|
},
|
|
2977
2934
|
set preloadedFallbackStrategy(e = "esm") {
|
|
2978
|
-
m(e),
|
|
2935
|
+
m(e), I();
|
|
2979
2936
|
},
|
|
2980
2937
|
get runtimeSupportCheck() {
|
|
2981
2938
|
return h();
|
|
2982
2939
|
},
|
|
2983
2940
|
set runtimeSupportCheck(e = "off") {
|
|
2984
|
-
h(e),
|
|
2941
|
+
h(e), I();
|
|
2985
2942
|
},
|
|
2986
2943
|
get rebuildVersion() {
|
|
2987
2944
|
return g();
|
|
2988
2945
|
},
|
|
2989
2946
|
set rebuildVersion(e = 0) {
|
|
2990
|
-
g(e),
|
|
2947
|
+
g(e), I();
|
|
2991
2948
|
},
|
|
2992
2949
|
get model() {
|
|
2993
2950
|
return _();
|
|
2994
2951
|
},
|
|
2995
2952
|
set model(e) {
|
|
2996
|
-
_(e),
|
|
2953
|
+
_(e), I();
|
|
2997
2954
|
},
|
|
2998
2955
|
get session() {
|
|
2999
2956
|
return v();
|
|
3000
2957
|
},
|
|
3001
2958
|
set session(e) {
|
|
3002
|
-
v(e),
|
|
3003
|
-
}
|
|
3004
|
-
}, Ae =
|
|
3005
|
-
|
|
3006
|
-
var Me =
|
|
3007
|
-
var t =
|
|
3008
|
-
var t =
|
|
3009
|
-
|
|
2959
|
+
v(e), I();
|
|
2960
|
+
}
|
|
2961
|
+
}, Ae = Di(), je = Kt(Ae);
|
|
2962
|
+
Sr(je, (e) => ee = e, () => ee);
|
|
2963
|
+
var Me = Jt(je, 2), Ne = (e) => {
|
|
2964
|
+
var t = Ti(), n = Kt(t), r = Jt(n), i = (e) => {
|
|
2965
|
+
var t = wi(), n = qt(t, !0);
|
|
2966
|
+
fn(() => ur(n, Z(O))), rr(e, t);
|
|
3010
2967
|
};
|
|
3011
|
-
|
|
3012
|
-
Z(
|
|
3013
|
-
}),
|
|
2968
|
+
yr(r, (e) => {
|
|
2969
|
+
Z(O) && e(i);
|
|
2970
|
+
}), ge(t), fn(() => ur(n, `Loading ${o() ?? ""} (${Z(A) ?? ""}/${Z(j) ?? ""})... `)), rr(e, t);
|
|
3014
2971
|
};
|
|
3015
|
-
|
|
3016
|
-
Z(ne) && e(
|
|
2972
|
+
yr(Me, (e) => {
|
|
2973
|
+
Z(ne) && e(Ne);
|
|
3017
2974
|
});
|
|
3018
|
-
var
|
|
3019
|
-
var t =
|
|
3020
|
-
|
|
2975
|
+
var M = Jt(Me, 2), Pe = (e) => {
|
|
2976
|
+
var t = Ei(), n = qt(Jt(Kt(t), 2), !0);
|
|
2977
|
+
ge(t), fn(() => ur(n, Z(S))), rr(e, t);
|
|
3021
2978
|
};
|
|
3022
|
-
return
|
|
3023
|
-
Z(S) && e(
|
|
3024
|
-
}),
|
|
2979
|
+
return yr(M, (e) => {
|
|
2980
|
+
Z(S) && e(Pe);
|
|
2981
|
+
}), ge(Ae), Sr(Ae, (e) => b = e, () => b), rr(t, Ae), Ie(ke);
|
|
3025
2982
|
}
|
|
3026
|
-
customElements.define("pie-element-player",
|
|
2983
|
+
customElements.define("pie-element-player", Or(ki, {
|
|
3027
2984
|
strategy: {
|
|
3028
2985
|
reflect: !0,
|
|
3029
2986
|
type: "String"
|
|
@@ -3089,4 +3046,4 @@ customElements.define("pie-element-player", Ar(ji, {
|
|
|
3089
3046
|
session: { type: "Object" }
|
|
3090
3047
|
}, [], []));
|
|
3091
3048
|
//#endregion
|
|
3092
|
-
export {
|
|
3049
|
+
export { Fr as DEFAULT_IIFE_BUNDLE_RETRY_CONFIG, $ as IifeBundleLoadError, Wr as configureIifeBundleLoader, gi as configureUnifiedPlayerResolver, ti as normalizeElementPlayerStrategy, ni as normalizeElementPlayerView, ii as normalizeRuntimeSupportCheck, ri as resolveElementPlayerView };
|