@pie-framework/pie-fixed-player-static 1.0.0-351df72.6 → 1.0.0-351df72.7
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 +2 -2
- package/dist/pie-fixed-player.js +1032 -1014
- package/package.json +3 -3
package/dist/pie-fixed-player.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Ar = Object.defineProperty;
|
|
2
|
+
var sn = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var X = (e, t, n) =>
|
|
7
|
-
var
|
|
8
|
-
const
|
|
9
|
-
var
|
|
10
|
-
typeof window < "u" && ((
|
|
11
|
-
const
|
|
12
|
-
var
|
|
13
|
-
function
|
|
5
|
+
var Dr = (e, t, n) => t in e ? Ar(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
+
var X = (e, t, n) => Dr(e, typeof t != "symbol" ? t + "" : t, n), ln = (e, t, n) => t.has(e) || sn("Cannot " + n);
|
|
7
|
+
var j = (e, t, n) => (ln(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Tt = (e, t, n) => t.has(e) ? sn("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), Bt = (e, t, n, r) => (ln(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
|
|
8
|
+
const Nr = "5";
|
|
9
|
+
var Tn;
|
|
10
|
+
typeof window < "u" && ((Tn = window.__svelte ?? (window.__svelte = {})).v ?? (Tn.v = /* @__PURE__ */ new Set())).add(Nr);
|
|
11
|
+
const Mr = 1, jr = 4, Qr = 8, zr = 16, qr = 2, Et = "[", Jt = "[!", Yt = "]", De = {}, Q = Symbol(), x = Symbol("filename"), an = !0, se = 2, Bn = 4, bt = 8, Gt = 16, de = 32, Ie = 64, ft = 128, W = 256, dt = 512, z = 1024, he = 2048, xe = 4096, Me = 8192, Ct = 16384, Vr = 32768, Wt = 65536, Un = 1 << 18, Jr = 1 << 19, An = 1 << 20, Nt = 1 << 21, ye = Symbol("$state"), Ve = Symbol("$state metadata"), Dn = Symbol("legacy props");
|
|
12
|
+
var Xt = Array.isArray, Yr = Array.prototype.indexOf, Gr = Array.from, ht = Object.keys, re = Object.defineProperty, Pe = Object.getOwnPropertyDescriptor, Nn = Object.prototype, Wr = Array.prototype, Mn = Object.getPrototypeOf, cn = Object.isExtensible;
|
|
13
|
+
function jn(e) {
|
|
14
14
|
for (var t = 0; t < e.length; t++)
|
|
15
15
|
e[t]();
|
|
16
16
|
}
|
|
17
|
-
let
|
|
18
|
-
function
|
|
19
|
-
var e =
|
|
20
|
-
|
|
17
|
+
let Ke = [], Mt = [];
|
|
18
|
+
function Qn() {
|
|
19
|
+
var e = Ke;
|
|
20
|
+
Ke = [], jn(e);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
var e =
|
|
24
|
-
|
|
22
|
+
function Xr() {
|
|
23
|
+
var e = Mt;
|
|
24
|
+
Mt = [], jn(e);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
|
|
26
|
+
function zn(e) {
|
|
27
|
+
Ke.length === 0 && queueMicrotask(Qn), Ke.push(e);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
|
|
29
|
+
function un() {
|
|
30
|
+
Ke.length > 0 && Qn(), Mt.length > 0 && Xr();
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function qn(e) {
|
|
33
33
|
return e === this.v;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Hr(e, t) {
|
|
36
36
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
return !
|
|
38
|
+
function Vn(e) {
|
|
39
|
+
return !Hr(e, this.v);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Zr(e, t, n) {
|
|
42
42
|
{
|
|
43
43
|
const r = new Error(`component_api_changed
|
|
44
44
|
${e} called \`${t}\` on an instance of ${n}, which is no longer valid in Svelte 5
|
|
@@ -46,7 +46,7 @@ https://svelte.dev/e/component_api_changed`);
|
|
|
46
46
|
throw r.name = "Svelte error", r;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function Kr(e, t) {
|
|
50
50
|
{
|
|
51
51
|
const n = new Error(`component_api_invalid_new
|
|
52
52
|
Attempted to instantiate ${e} with \`new ${t}\`, which is no longer valid in Svelte 5. If this component is not under your control, set the \`compatibility.componentApi\` compiler option to \`4\` to keep it working.
|
|
@@ -54,7 +54,7 @@ https://svelte.dev/e/component_api_invalid_new`);
|
|
|
54
54
|
throw n.name = "Svelte error", n;
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function eo() {
|
|
58
58
|
{
|
|
59
59
|
const e = new Error(`derived_references_self
|
|
60
60
|
A derived value cannot reference itself recursively
|
|
@@ -62,7 +62,7 @@ https://svelte.dev/e/derived_references_self`);
|
|
|
62
62
|
throw e.name = "Svelte error", e;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function to(e) {
|
|
66
66
|
{
|
|
67
67
|
const t = new Error(`effect_in_teardown
|
|
68
68
|
\`${e}\` cannot be used inside an effect cleanup function
|
|
@@ -70,13 +70,13 @@ https://svelte.dev/e/effect_in_teardown`);
|
|
|
70
70
|
throw t.name = "Svelte error", t;
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function no() {
|
|
74
74
|
{
|
|
75
75
|
const e = new Error("effect_in_unowned_derived\nEffect cannot be created inside a `$derived` value that was not itself created inside an effect\nhttps://svelte.dev/e/effect_in_unowned_derived");
|
|
76
76
|
throw e.name = "Svelte error", e;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function ro(e) {
|
|
80
80
|
{
|
|
81
81
|
const t = new Error(`effect_orphan
|
|
82
82
|
\`${e}\` can only be used inside an effect (e.g. during component initialisation)
|
|
@@ -84,7 +84,7 @@ https://svelte.dev/e/effect_orphan`);
|
|
|
84
84
|
throw t.name = "Svelte error", t;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function oo() {
|
|
88
88
|
{
|
|
89
89
|
const e = new Error(`effect_update_depth_exceeded
|
|
90
90
|
Maximum update depth exceeded. This can happen when a reactive block or effect repeatedly sets a new value. Svelte limits the number of nested updates to prevent infinite loops
|
|
@@ -92,7 +92,7 @@ https://svelte.dev/e/effect_update_depth_exceeded`);
|
|
|
92
92
|
throw e.name = "Svelte error", e;
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function so() {
|
|
96
96
|
{
|
|
97
97
|
const e = new Error(`hydration_failed
|
|
98
98
|
Failed to hydrate the application
|
|
@@ -100,7 +100,7 @@ https://svelte.dev/e/hydration_failed`);
|
|
|
100
100
|
throw e.name = "Svelte error", e;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function io(e) {
|
|
104
104
|
{
|
|
105
105
|
const t = new Error(`props_invalid_value
|
|
106
106
|
Cannot do \`bind:${e}={undefined}\` when \`${e}\` has a fallback value
|
|
@@ -108,7 +108,7 @@ https://svelte.dev/e/props_invalid_value`);
|
|
|
108
108
|
throw t.name = "Svelte error", t;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
function
|
|
111
|
+
function lo(e) {
|
|
112
112
|
{
|
|
113
113
|
const t = new Error(`rune_outside_svelte
|
|
114
114
|
The \`${e}\` rune is only available inside \`.svelte\` and \`.svelte.js/ts\` files
|
|
@@ -116,51 +116,51 @@ https://svelte.dev/e/rune_outside_svelte`);
|
|
|
116
116
|
throw t.name = "Svelte error", t;
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function ao() {
|
|
120
120
|
{
|
|
121
121
|
const e = new Error("state_descriptors_fixed\nProperty descriptors defined on `$state` objects must contain `value` and always be `enumerable`, `configurable` and `writable`.\nhttps://svelte.dev/e/state_descriptors_fixed");
|
|
122
122
|
throw e.name = "Svelte error", e;
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function co() {
|
|
126
126
|
{
|
|
127
127
|
const e = new Error("state_prototype_fixed\nCannot set prototype of `$state` object\nhttps://svelte.dev/e/state_prototype_fixed");
|
|
128
128
|
throw e.name = "Svelte error", e;
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function uo() {
|
|
132
132
|
{
|
|
133
133
|
const e = new Error("state_unsafe_mutation\nUpdating state inside a derived or a template expression is forbidden. If the value should not be reactive, declare it without `$state`\nhttps://svelte.dev/e/state_unsafe_mutation");
|
|
134
134
|
throw e.name = "Svelte error", e;
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
-
let
|
|
138
|
-
var
|
|
139
|
-
function
|
|
137
|
+
let fo = !1;
|
|
138
|
+
var ho = "font-weight: bold", vo = "font-weight: normal";
|
|
139
|
+
function fn(e) {
|
|
140
140
|
console.warn(`%c[svelte] state_snapshot_uncloneable
|
|
141
141
|
%c${e ? `The following properties cannot be cloned with \`$state.snapshot\` — the return value contains the originals:
|
|
142
142
|
|
|
143
143
|
${e}` : "Value cannot be cloned with `$state.snapshot` — the original value was returned"}
|
|
144
|
-
https://svelte.dev/e/state_snapshot_uncloneable`,
|
|
144
|
+
https://svelte.dev/e/state_snapshot_uncloneable`, ho, vo);
|
|
145
145
|
}
|
|
146
|
-
const
|
|
147
|
-
function
|
|
146
|
+
const po = [];
|
|
147
|
+
function _o(e, t = !1) {
|
|
148
148
|
if (!t) {
|
|
149
|
-
const n = [], r =
|
|
149
|
+
const n = [], r = Ye(e, /* @__PURE__ */ new Map(), "", n);
|
|
150
150
|
if (n.length === 1 && n[0] === "")
|
|
151
|
-
|
|
151
|
+
fn();
|
|
152
152
|
else if (n.length > 0) {
|
|
153
153
|
const s = n.length > 10 ? n.slice(0, 7) : n.slice(0, 10), o = n.length - s.length;
|
|
154
154
|
let i = s.map((a) => `- <value>${a}`).join(`
|
|
155
155
|
`);
|
|
156
156
|
o > 0 && (i += `
|
|
157
|
-
- ...and ${o} more`),
|
|
157
|
+
- ...and ${o} more`), fn(i);
|
|
158
158
|
}
|
|
159
159
|
return r;
|
|
160
160
|
}
|
|
161
|
-
return
|
|
161
|
+
return Ye(e, /* @__PURE__ */ new Map(), "", po);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Ye(e, t, n, r, s = null) {
|
|
164
164
|
if (typeof e == "object" && e !== null) {
|
|
165
165
|
var o = t.get(e);
|
|
166
166
|
if (o !== void 0) return o;
|
|
@@ -172,7 +172,7 @@ function Ve(e, t, n, r, s = null) {
|
|
|
172
172
|
/** @type {Snapshot<T>} */
|
|
173
173
|
new Set(e)
|
|
174
174
|
);
|
|
175
|
-
if (
|
|
175
|
+
if (Xt(e)) {
|
|
176
176
|
var i = (
|
|
177
177
|
/** @type {Snapshot<any>} */
|
|
178
178
|
Array(e.length)
|
|
@@ -180,14 +180,14 @@ function Ve(e, t, n, r, s = null) {
|
|
|
180
180
|
t.set(e, i), s !== null && t.set(s, i);
|
|
181
181
|
for (var a = 0; a < e.length; a += 1) {
|
|
182
182
|
var c = e[a];
|
|
183
|
-
a in e && (i[a] =
|
|
183
|
+
a in e && (i[a] = Ye(c, t, `${n}[${a}]`, r));
|
|
184
184
|
}
|
|
185
185
|
return i;
|
|
186
186
|
}
|
|
187
|
-
if (
|
|
187
|
+
if (Mn(e) === Nn) {
|
|
188
188
|
i = {}, t.set(e, i), s !== null && t.set(s, i);
|
|
189
189
|
for (var l in e)
|
|
190
|
-
i[l] =
|
|
190
|
+
i[l] = Ye(e[l], t, `${n}.${l}`, r);
|
|
191
191
|
return i;
|
|
192
192
|
}
|
|
193
193
|
if (e instanceof Date)
|
|
@@ -197,7 +197,7 @@ function Ve(e, t, n, r, s = null) {
|
|
|
197
197
|
);
|
|
198
198
|
if (typeof /** @type {T & { toJSON?: any } } */
|
|
199
199
|
e.toJSON == "function")
|
|
200
|
-
return
|
|
200
|
+
return Ye(
|
|
201
201
|
/** @type {T & { toJSON(): any } } */
|
|
202
202
|
e.toJSON(),
|
|
203
203
|
t,
|
|
@@ -222,46 +222,46 @@ function Ve(e, t, n, r, s = null) {
|
|
|
222
222
|
e;
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
var
|
|
226
|
-
function
|
|
227
|
-
if (typeof e != "object" || e === null ||
|
|
225
|
+
var Je = null;
|
|
226
|
+
function Ce(e, t) {
|
|
227
|
+
if (typeof e != "object" || e === null || ye in e)
|
|
228
228
|
return e;
|
|
229
|
-
const n =
|
|
230
|
-
if (n !==
|
|
229
|
+
const n = Mn(e);
|
|
230
|
+
if (n !== Nn && n !== Wr)
|
|
231
231
|
return e;
|
|
232
|
-
var r = /* @__PURE__ */ new Map(), s =
|
|
232
|
+
var r = /* @__PURE__ */ new Map(), s = Xt(e), o = U(0), i = E, a = (l) => {
|
|
233
233
|
var u = E;
|
|
234
|
-
|
|
234
|
+
we(i);
|
|
235
235
|
var f;
|
|
236
236
|
{
|
|
237
|
-
var d =
|
|
238
|
-
|
|
237
|
+
var d = Je;
|
|
238
|
+
Je = c, f = l(), Je = d;
|
|
239
239
|
}
|
|
240
|
-
return
|
|
240
|
+
return we(u), f;
|
|
241
241
|
};
|
|
242
|
-
s && r.set("length",
|
|
242
|
+
s && r.set("length", U(
|
|
243
243
|
/** @type {any[]} */
|
|
244
244
|
e.length
|
|
245
245
|
));
|
|
246
246
|
var c;
|
|
247
247
|
if (c = {
|
|
248
|
-
parent:
|
|
248
|
+
parent: Je,
|
|
249
249
|
owners: null
|
|
250
250
|
}, t) {
|
|
251
|
-
const l = t.v?.[
|
|
251
|
+
const l = t.v?.[Ve]?.owners;
|
|
252
252
|
c.owners = l ? new Set(l) : null;
|
|
253
253
|
} else
|
|
254
|
-
c.owners =
|
|
254
|
+
c.owners = Je === null ? D !== null ? /* @__PURE__ */ new Set([D.function]) : null : /* @__PURE__ */ new Set();
|
|
255
255
|
return new Proxy(
|
|
256
256
|
/** @type {any} */
|
|
257
257
|
e,
|
|
258
258
|
{
|
|
259
259
|
defineProperty(l, u, f) {
|
|
260
|
-
(!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) &&
|
|
260
|
+
(!("value" in f) || f.configurable === !1 || f.enumerable === !1 || f.writable === !1) && ao();
|
|
261
261
|
var d = r.get(u);
|
|
262
|
-
return d === void 0 ? (d = a(() =>
|
|
262
|
+
return d === void 0 ? (d = a(() => U(f.value)), r.set(u, d)) : $(
|
|
263
263
|
d,
|
|
264
|
-
a(() =>
|
|
264
|
+
a(() => Ce(f.value))
|
|
265
265
|
), !0;
|
|
266
266
|
},
|
|
267
267
|
deleteProperty(l, u) {
|
|
@@ -269,33 +269,33 @@ function $e(e, t) {
|
|
|
269
269
|
if (f === void 0)
|
|
270
270
|
u in l && r.set(
|
|
271
271
|
u,
|
|
272
|
-
a(() =>
|
|
272
|
+
a(() => U(Q))
|
|
273
273
|
);
|
|
274
274
|
else {
|
|
275
275
|
if (s && typeof u == "string") {
|
|
276
276
|
var d = (
|
|
277
277
|
/** @type {Source<number>} */
|
|
278
278
|
r.get("length")
|
|
279
|
-
),
|
|
280
|
-
Number.isInteger(
|
|
279
|
+
), v = Number(u);
|
|
280
|
+
Number.isInteger(v) && v < d.v && $(d, v);
|
|
281
281
|
}
|
|
282
|
-
$(f,
|
|
282
|
+
$(f, Q), dn(o);
|
|
283
283
|
}
|
|
284
284
|
return !0;
|
|
285
285
|
},
|
|
286
286
|
get(l, u, f) {
|
|
287
|
-
if (u ===
|
|
287
|
+
if (u === Ve)
|
|
288
288
|
return c;
|
|
289
|
-
if (u ===
|
|
289
|
+
if (u === ye)
|
|
290
290
|
return e;
|
|
291
|
-
var d = r.get(u),
|
|
292
|
-
if (d === void 0 && (!
|
|
293
|
-
var
|
|
291
|
+
var d = r.get(u), v = u in l;
|
|
292
|
+
if (d === void 0 && (!v || Pe(l, u)?.writable) && (d = a(() => U(Ce(v ? l[u] : Q))), r.set(u, d)), d !== void 0) {
|
|
293
|
+
var p = g(d);
|
|
294
294
|
{
|
|
295
|
-
var
|
|
296
|
-
|
|
295
|
+
var m = p?.[Ve];
|
|
296
|
+
m && m?.parent !== c && En(c, m);
|
|
297
297
|
}
|
|
298
|
-
return
|
|
298
|
+
return p === Q ? void 0 : p;
|
|
299
299
|
}
|
|
300
300
|
return Reflect.get(l, u, f);
|
|
301
301
|
},
|
|
@@ -303,148 +303,148 @@ function $e(e, t) {
|
|
|
303
303
|
var f = Reflect.getOwnPropertyDescriptor(l, u);
|
|
304
304
|
if (f && "value" in f) {
|
|
305
305
|
var d = r.get(u);
|
|
306
|
-
d && (f.value =
|
|
306
|
+
d && (f.value = g(d));
|
|
307
307
|
} else if (f === void 0) {
|
|
308
|
-
var
|
|
309
|
-
if (
|
|
308
|
+
var v = r.get(u), p = v?.v;
|
|
309
|
+
if (v !== void 0 && p !== Q)
|
|
310
310
|
return {
|
|
311
311
|
enumerable: !0,
|
|
312
312
|
configurable: !0,
|
|
313
|
-
value:
|
|
313
|
+
value: p,
|
|
314
314
|
writable: !0
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
317
|
return f;
|
|
318
318
|
},
|
|
319
319
|
has(l, u) {
|
|
320
|
-
if (u ===
|
|
320
|
+
if (u === Ve || u === ye)
|
|
321
321
|
return !0;
|
|
322
|
-
var f = r.get(u), d = f !== void 0 && f.v !==
|
|
323
|
-
if (f !== void 0 ||
|
|
324
|
-
f === void 0 && (f = a(() =>
|
|
325
|
-
var
|
|
326
|
-
if (
|
|
322
|
+
var f = r.get(u), d = f !== void 0 && f.v !== Q || Reflect.has(l, u);
|
|
323
|
+
if (f !== void 0 || C !== null && (!d || Pe(l, u)?.writable)) {
|
|
324
|
+
f === void 0 && (f = a(() => U(d ? Ce(l[u]) : Q)), r.set(u, f));
|
|
325
|
+
var v = g(f);
|
|
326
|
+
if (v === Q)
|
|
327
327
|
return !1;
|
|
328
328
|
}
|
|
329
329
|
return d;
|
|
330
330
|
},
|
|
331
331
|
set(l, u, f, d) {
|
|
332
|
-
var
|
|
332
|
+
var v = r.get(u), p = u in l;
|
|
333
333
|
if (s && u === "length")
|
|
334
|
-
for (var
|
|
335
|
-
|
|
336
|
-
var w = r.get(
|
|
337
|
-
w !== void 0 ? $(w,
|
|
334
|
+
for (var m = f; m < /** @type {Source<number>} */
|
|
335
|
+
v.v; m += 1) {
|
|
336
|
+
var w = r.get(m + "");
|
|
337
|
+
w !== void 0 ? $(w, Q) : m in l && (w = a(() => U(Q)), r.set(m + "", w));
|
|
338
338
|
}
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
a(() =>
|
|
342
|
-
), r.set(u,
|
|
343
|
-
|
|
344
|
-
a(() =>
|
|
339
|
+
v === void 0 ? (!p || Pe(l, u)?.writable) && (v = a(() => U(void 0)), $(
|
|
340
|
+
v,
|
|
341
|
+
a(() => Ce(f))
|
|
342
|
+
), r.set(u, v)) : (p = v.v !== Q, $(
|
|
343
|
+
v,
|
|
344
|
+
a(() => Ce(f))
|
|
345
345
|
));
|
|
346
346
|
{
|
|
347
|
-
var
|
|
348
|
-
|
|
347
|
+
var O = f?.[Ve];
|
|
348
|
+
O && O?.parent !== c && En(c, O), Qo(c);
|
|
349
349
|
}
|
|
350
|
-
var
|
|
351
|
-
if (
|
|
350
|
+
var k = Reflect.getOwnPropertyDescriptor(l, u);
|
|
351
|
+
if (k?.set && k.set.call(d, f), !p) {
|
|
352
352
|
if (s && typeof u == "string") {
|
|
353
|
-
var
|
|
353
|
+
var M = (
|
|
354
354
|
/** @type {Source<number>} */
|
|
355
355
|
r.get("length")
|
|
356
|
-
),
|
|
357
|
-
Number.isInteger(
|
|
356
|
+
), S = Number(u);
|
|
357
|
+
Number.isInteger(S) && S >= M.v && $(M, S + 1);
|
|
358
358
|
}
|
|
359
|
-
|
|
359
|
+
dn(o);
|
|
360
360
|
}
|
|
361
361
|
return !0;
|
|
362
362
|
},
|
|
363
363
|
ownKeys(l) {
|
|
364
|
-
|
|
365
|
-
var u = Reflect.ownKeys(l).filter((
|
|
366
|
-
var
|
|
367
|
-
return
|
|
364
|
+
g(o);
|
|
365
|
+
var u = Reflect.ownKeys(l).filter((v) => {
|
|
366
|
+
var p = r.get(v);
|
|
367
|
+
return p === void 0 || p.v !== Q;
|
|
368
368
|
});
|
|
369
369
|
for (var [f, d] of r)
|
|
370
|
-
d.v !==
|
|
370
|
+
d.v !== Q && !(f in l) && u.push(f);
|
|
371
371
|
return u;
|
|
372
372
|
},
|
|
373
373
|
setPrototypeOf() {
|
|
374
|
-
|
|
374
|
+
co();
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
);
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function dn(e, t = 1) {
|
|
380
380
|
$(e, e.v + t);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function Ge(e) {
|
|
383
383
|
try {
|
|
384
|
-
if (e !== null && typeof e == "object" &&
|
|
385
|
-
return e[
|
|
384
|
+
if (e !== null && typeof e == "object" && ye in e)
|
|
385
|
+
return e[ye];
|
|
386
386
|
} catch {
|
|
387
387
|
}
|
|
388
388
|
return e;
|
|
389
389
|
}
|
|
390
|
-
let
|
|
391
|
-
const
|
|
392
|
-
function
|
|
393
|
-
|
|
390
|
+
let Ne = /* @__PURE__ */ new Set();
|
|
391
|
+
const et = /* @__PURE__ */ new Map();
|
|
392
|
+
function hn(e) {
|
|
393
|
+
Ne = e;
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function Jn(e, t) {
|
|
396
396
|
var n = {
|
|
397
397
|
f: 0,
|
|
398
398
|
// TODO ideally we could skip this altogether, but it causes type errors
|
|
399
399
|
v: e,
|
|
400
400
|
reactions: null,
|
|
401
|
-
equals:
|
|
401
|
+
equals: qn,
|
|
402
402
|
rv: 0,
|
|
403
403
|
wv: 0
|
|
404
404
|
};
|
|
405
405
|
return n;
|
|
406
406
|
}
|
|
407
|
-
function
|
|
408
|
-
const n =
|
|
409
|
-
return
|
|
407
|
+
function U(e, t) {
|
|
408
|
+
const n = Jn(e);
|
|
409
|
+
return Kn(n), n;
|
|
410
410
|
}
|
|
411
411
|
// @__NO_SIDE_EFFECTS__
|
|
412
|
-
function
|
|
413
|
-
const n =
|
|
414
|
-
return t || (n.equals =
|
|
412
|
+
function Yn(e, t = !1) {
|
|
413
|
+
const n = Jn(e);
|
|
414
|
+
return t || (n.equals = Vn), n;
|
|
415
415
|
}
|
|
416
416
|
function $(e, t, n = !1) {
|
|
417
|
-
E !== null && !ne &&
|
|
418
|
-
let r = n ?
|
|
419
|
-
return
|
|
417
|
+
E !== null && !ne && gr() && (E.f & (se | Gt)) !== 0 && !ce?.includes(e) && uo();
|
|
418
|
+
let r = n ? Ce(t, e) : t;
|
|
419
|
+
return go(e, r);
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function go(e, t) {
|
|
422
422
|
if (!e.equals(t)) {
|
|
423
423
|
var n = e.v;
|
|
424
|
-
if (
|
|
425
|
-
const r = Array.from(
|
|
424
|
+
if (ot ? et.set(e, t) : et.set(e, n), e.v = t, e.wv = tr(), Gn(e, he), C !== null && (C.f & z) !== 0 && (C.f & (de | Ie)) === 0 && (Y === null ? Lo([e]) : Y.push(e)), Ne.size > 0) {
|
|
425
|
+
const r = Array.from(Ne);
|
|
426
426
|
for (const s of r)
|
|
427
|
-
(s.f &
|
|
428
|
-
|
|
427
|
+
(s.f & z) !== 0 && Z(s, xe), qe(s) && Lt(s);
|
|
428
|
+
Ne.clear();
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
return t;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function Gn(e, t) {
|
|
434
434
|
var n = e.reactions;
|
|
435
435
|
if (n !== null)
|
|
436
436
|
for (var r = n.length, s = 0; s < r; s++) {
|
|
437
437
|
var o = n[s], i = o.f;
|
|
438
|
-
if ((i &
|
|
439
|
-
if ((i &
|
|
440
|
-
|
|
438
|
+
if ((i & he) === 0) {
|
|
439
|
+
if ((i & Un) !== 0) {
|
|
440
|
+
Ne.add(o);
|
|
441
441
|
continue;
|
|
442
442
|
}
|
|
443
|
-
|
|
443
|
+
Z(o, t), (i & (z | W)) !== 0 && ((i & se) !== 0 ? Gn(
|
|
444
444
|
/** @type {Derived} */
|
|
445
445
|
o,
|
|
446
|
-
|
|
447
|
-
) :
|
|
446
|
+
xe
|
|
447
|
+
) : It(
|
|
448
448
|
/** @type {Effect} */
|
|
449
449
|
o
|
|
450
450
|
));
|
|
@@ -452,16 +452,16 @@ function qn(e, t) {
|
|
|
452
452
|
}
|
|
453
453
|
}
|
|
454
454
|
// @__NO_SIDE_EFFECTS__
|
|
455
|
-
function
|
|
456
|
-
var t = se |
|
|
455
|
+
function Ht(e) {
|
|
456
|
+
var t = se | he, n = E !== null && (E.f & se) !== 0 ? (
|
|
457
457
|
/** @type {Derived} */
|
|
458
458
|
E
|
|
459
459
|
) : null;
|
|
460
|
-
return
|
|
461
|
-
ctx:
|
|
460
|
+
return C === null || n !== null && (n.f & W) !== 0 ? t |= W : C.f |= An, {
|
|
461
|
+
ctx: D,
|
|
462
462
|
deps: null,
|
|
463
463
|
effects: null,
|
|
464
|
-
equals:
|
|
464
|
+
equals: qn,
|
|
465
465
|
f: t,
|
|
466
466
|
fn: e,
|
|
467
467
|
reactions: null,
|
|
@@ -471,26 +471,26 @@ function Xt(e) {
|
|
|
471
471
|
null
|
|
472
472
|
),
|
|
473
473
|
wv: 0,
|
|
474
|
-
parent: n ??
|
|
474
|
+
parent: n ?? C
|
|
475
475
|
};
|
|
476
476
|
}
|
|
477
477
|
function ge(e) {
|
|
478
|
-
const t = /* @__PURE__ */
|
|
479
|
-
return
|
|
478
|
+
const t = /* @__PURE__ */ Ht(e);
|
|
479
|
+
return Kn(t), t;
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function Wn(e) {
|
|
482
482
|
var t = e.effects;
|
|
483
483
|
if (t !== null) {
|
|
484
484
|
e.effects = null;
|
|
485
485
|
for (var n = 0; n < t.length; n += 1)
|
|
486
|
-
|
|
486
|
+
fe(
|
|
487
487
|
/** @type {Effect} */
|
|
488
488
|
t[n]
|
|
489
489
|
);
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
let
|
|
493
|
-
function
|
|
492
|
+
let Ut = [];
|
|
493
|
+
function mo(e) {
|
|
494
494
|
for (var t = e.parent; t !== null; ) {
|
|
495
495
|
if ((t.f & se) === 0)
|
|
496
496
|
return (
|
|
@@ -501,98 +501,98 @@ function _o(e) {
|
|
|
501
501
|
}
|
|
502
502
|
return null;
|
|
503
503
|
}
|
|
504
|
-
function
|
|
505
|
-
var t, n =
|
|
506
|
-
|
|
504
|
+
function yo(e) {
|
|
505
|
+
var t, n = C;
|
|
506
|
+
je(mo(e));
|
|
507
507
|
{
|
|
508
|
-
let r =
|
|
509
|
-
|
|
508
|
+
let r = Ne;
|
|
509
|
+
hn(/* @__PURE__ */ new Set());
|
|
510
510
|
try {
|
|
511
|
-
|
|
511
|
+
Ut.includes(e) && eo(), Ut.push(e), Wn(e), t = rr(e);
|
|
512
512
|
} finally {
|
|
513
|
-
|
|
513
|
+
je(n), hn(r), Ut.pop();
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
return t;
|
|
517
517
|
}
|
|
518
|
-
function
|
|
519
|
-
var t =
|
|
520
|
-
|
|
518
|
+
function Xn(e) {
|
|
519
|
+
var t = yo(e), n = (me || (e.f & W) !== 0) && e.deps !== null ? xe : z;
|
|
520
|
+
Z(e, n), e.equals(t) || (e.v = t, e.wv = tr());
|
|
521
521
|
}
|
|
522
|
-
var
|
|
523
|
-
function
|
|
522
|
+
var Qe = "font-weight: bold", ze = "font-weight: normal";
|
|
523
|
+
function wo(e) {
|
|
524
524
|
console.warn(`%c[svelte] console_log_state
|
|
525
525
|
%cYour \`console.${e}\` contained \`$state\` proxies. Consider using \`$inspect(...)\` or \`$state.snapshot(...)\` instead
|
|
526
|
-
https://svelte.dev/e/console_log_state`,
|
|
526
|
+
https://svelte.dev/e/console_log_state`, Qe, ze);
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function $o(e) {
|
|
529
529
|
console.warn(`%c[svelte] hydration_html_changed
|
|
530
530
|
%c${e ? `The value of an \`{@html ...}\` block ${e} changed between server and client renders. The client value will be ignored in favour of the server value` : "The value of an `{@html ...}` block changed between server and client renders. The client value will be ignored in favour of the server value"}
|
|
531
|
-
https://svelte.dev/e/hydration_html_changed`,
|
|
531
|
+
https://svelte.dev/e/hydration_html_changed`, Qe, ze);
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function Pt(e) {
|
|
534
534
|
console.warn(`%c[svelte] hydration_mismatch
|
|
535
535
|
%cHydration failed because the initial UI does not match what was rendered on the server
|
|
536
|
-
https://svelte.dev/e/hydration_mismatch`,
|
|
536
|
+
https://svelte.dev/e/hydration_mismatch`, Qe, ze);
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Eo() {
|
|
539
539
|
console.warn(`%c[svelte] lifecycle_double_unmount
|
|
540
540
|
%cTried to unmount a component that was not mounted
|
|
541
|
-
https://svelte.dev/e/lifecycle_double_unmount`,
|
|
541
|
+
https://svelte.dev/e/lifecycle_double_unmount`, Qe, ze);
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function vn(e, t) {
|
|
544
544
|
console.warn(`%c[svelte] ownership_invalid_mutation
|
|
545
545
|
%c${e ? `${e} mutated a value owned by ${t}. This is strongly discouraged. Consider passing values to child components with \`bind:\`, or use a callback instead` : "Mutating a value outside the component that created it is strongly discouraged. Consider passing values to child components with `bind:`, or use a callback instead"}
|
|
546
|
-
https://svelte.dev/e/ownership_invalid_mutation`,
|
|
546
|
+
https://svelte.dev/e/ownership_invalid_mutation`, Qe, ze);
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function at(e) {
|
|
549
549
|
console.warn(`%c[svelte] state_proxy_equality_mismatch
|
|
550
550
|
%cReactive \`$state(...)\` proxies and the values they proxy have different identities. Because of this, comparisons with \`${e}\` will produce unexpected results
|
|
551
|
-
https://svelte.dev/e/state_proxy_equality_mismatch`,
|
|
551
|
+
https://svelte.dev/e/state_proxy_equality_mismatch`, Qe, ze);
|
|
552
552
|
}
|
|
553
|
-
let
|
|
554
|
-
function
|
|
555
|
-
|
|
553
|
+
let T = !1;
|
|
554
|
+
function Be(e) {
|
|
555
|
+
T = e;
|
|
556
556
|
}
|
|
557
|
-
let
|
|
558
|
-
function
|
|
557
|
+
let F;
|
|
558
|
+
function ue(e) {
|
|
559
559
|
if (e === null)
|
|
560
|
-
throw
|
|
561
|
-
return
|
|
560
|
+
throw Pt(), De;
|
|
561
|
+
return F = e;
|
|
562
562
|
}
|
|
563
|
-
function
|
|
564
|
-
return
|
|
563
|
+
function tt() {
|
|
564
|
+
return ue(
|
|
565
565
|
/** @type {TemplateNode} */
|
|
566
|
-
/* @__PURE__ */
|
|
566
|
+
/* @__PURE__ */ ke(F)
|
|
567
567
|
);
|
|
568
568
|
}
|
|
569
|
-
function
|
|
570
|
-
if (
|
|
571
|
-
if (/* @__PURE__ */
|
|
572
|
-
throw
|
|
573
|
-
|
|
569
|
+
function ee(e) {
|
|
570
|
+
if (T) {
|
|
571
|
+
if (/* @__PURE__ */ ke(F) !== null)
|
|
572
|
+
throw Pt(), De;
|
|
573
|
+
F = e;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
function
|
|
577
|
-
for (var e = 0, t =
|
|
576
|
+
function bo() {
|
|
577
|
+
for (var e = 0, t = F; ; ) {
|
|
578
578
|
if (t.nodeType === 8) {
|
|
579
579
|
var n = (
|
|
580
580
|
/** @type {Comment} */
|
|
581
581
|
t.data
|
|
582
582
|
);
|
|
583
|
-
if (n ===
|
|
583
|
+
if (n === Yt) {
|
|
584
584
|
if (e === 0) return t;
|
|
585
585
|
e -= 1;
|
|
586
|
-
} else (n ===
|
|
586
|
+
} else (n === Et || n === Jt) && (e += 1);
|
|
587
587
|
}
|
|
588
588
|
var r = (
|
|
589
589
|
/** @type {TemplateNode} */
|
|
590
|
-
/* @__PURE__ */
|
|
590
|
+
/* @__PURE__ */ ke(t)
|
|
591
591
|
);
|
|
592
592
|
t.remove(), t = r;
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function Co() {
|
|
596
596
|
const e = Array.prototype, t = Array.__svelte_cleanup;
|
|
597
597
|
t && t();
|
|
598
598
|
const { indexOf: n, lastIndexOf: r, includes: s } = e;
|
|
@@ -600,8 +600,8 @@ function $o() {
|
|
|
600
600
|
const a = n.call(this, o, i);
|
|
601
601
|
if (a === -1) {
|
|
602
602
|
for (let c = i ?? 0; c < this.length; c += 1)
|
|
603
|
-
if (
|
|
604
|
-
|
|
603
|
+
if (Ge(this[c]) === o) {
|
|
604
|
+
at("array.indexOf(...)");
|
|
605
605
|
break;
|
|
606
606
|
}
|
|
607
607
|
}
|
|
@@ -610,8 +610,8 @@ function $o() {
|
|
|
610
610
|
const a = r.call(this, o, i ?? this.length - 1);
|
|
611
611
|
if (a === -1) {
|
|
612
612
|
for (let c = 0; c <= (i ?? this.length - 1); c += 1)
|
|
613
|
-
if (
|
|
614
|
-
|
|
613
|
+
if (Ge(this[c]) === o) {
|
|
614
|
+
at("array.lastIndexOf(...)");
|
|
615
615
|
break;
|
|
616
616
|
}
|
|
617
617
|
}
|
|
@@ -620,8 +620,8 @@ function $o() {
|
|
|
620
620
|
const a = s.call(this, o, i);
|
|
621
621
|
if (!a) {
|
|
622
622
|
for (let c = 0; c < this.length; c += 1)
|
|
623
|
-
if (
|
|
624
|
-
|
|
623
|
+
if (Ge(this[c]) === o) {
|
|
624
|
+
at("array.includes(...)");
|
|
625
625
|
break;
|
|
626
626
|
}
|
|
627
627
|
}
|
|
@@ -630,101 +630,101 @@ function $o() {
|
|
|
630
630
|
e.indexOf = n, e.lastIndexOf = r, e.includes = s;
|
|
631
631
|
};
|
|
632
632
|
}
|
|
633
|
-
function
|
|
633
|
+
function B(e, t, n = !0) {
|
|
634
634
|
try {
|
|
635
|
-
e === t != (
|
|
635
|
+
e === t != (Ge(e) === Ge(t)) && at(n ? "===" : "!==");
|
|
636
636
|
} catch {
|
|
637
637
|
}
|
|
638
638
|
return e === t === n;
|
|
639
639
|
}
|
|
640
|
-
var
|
|
641
|
-
function
|
|
642
|
-
if (
|
|
643
|
-
|
|
640
|
+
var pn, Zt, Hn, Zn;
|
|
641
|
+
function jt() {
|
|
642
|
+
if (pn === void 0) {
|
|
643
|
+
pn = window, Zt = /Firefox/.test(navigator.userAgent);
|
|
644
644
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
645
|
-
|
|
645
|
+
Hn = Pe(t, "firstChild").get, Zn = Pe(t, "nextSibling").get, cn(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), cn(n) && (n.__t = void 0), e.__svelte_meta = null, Co();
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function vt(e = "") {
|
|
649
649
|
return document.createTextNode(e);
|
|
650
650
|
}
|
|
651
651
|
// @__NO_SIDE_EFFECTS__
|
|
652
|
-
function
|
|
653
|
-
return
|
|
652
|
+
function nt(e) {
|
|
653
|
+
return Hn.call(e);
|
|
654
654
|
}
|
|
655
655
|
// @__NO_SIDE_EFFECTS__
|
|
656
|
-
function
|
|
657
|
-
return
|
|
656
|
+
function ke(e) {
|
|
657
|
+
return Zn.call(e);
|
|
658
658
|
}
|
|
659
|
-
function
|
|
660
|
-
if (!
|
|
661
|
-
return /* @__PURE__ */
|
|
659
|
+
function te(e, t) {
|
|
660
|
+
if (!T)
|
|
661
|
+
return /* @__PURE__ */ nt(e);
|
|
662
662
|
var n = (
|
|
663
663
|
/** @type {TemplateNode} */
|
|
664
|
-
/* @__PURE__ */
|
|
664
|
+
/* @__PURE__ */ nt(F)
|
|
665
665
|
);
|
|
666
666
|
if (n === null)
|
|
667
|
-
n =
|
|
667
|
+
n = F.appendChild(vt());
|
|
668
668
|
else if (t && n.nodeType !== 3) {
|
|
669
|
-
var r =
|
|
670
|
-
return n?.before(r),
|
|
669
|
+
var r = vt();
|
|
670
|
+
return n?.before(r), ue(r), r;
|
|
671
671
|
}
|
|
672
|
-
return
|
|
672
|
+
return ue(n), n;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
675
|
-
let r =
|
|
674
|
+
function Qt(e, t = 1, n = !1) {
|
|
675
|
+
let r = T ? F : e;
|
|
676
676
|
for (var s; t--; )
|
|
677
677
|
s = r, r = /** @type {TemplateNode} */
|
|
678
|
-
/* @__PURE__ */
|
|
679
|
-
if (!
|
|
678
|
+
/* @__PURE__ */ ke(r);
|
|
679
|
+
if (!T)
|
|
680
680
|
return r;
|
|
681
681
|
var o = r?.nodeType;
|
|
682
682
|
if (n && o !== 3) {
|
|
683
|
-
var i =
|
|
684
|
-
return r === null ? s?.after(i) : r.before(i),
|
|
683
|
+
var i = vt();
|
|
684
|
+
return r === null ? s?.after(i) : r.before(i), ue(i), i;
|
|
685
685
|
}
|
|
686
|
-
return
|
|
686
|
+
return ue(r), /** @type {TemplateNode} */
|
|
687
687
|
r;
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function Po(e) {
|
|
690
690
|
e.textContent = "";
|
|
691
691
|
}
|
|
692
|
-
const
|
|
693
|
-
let
|
|
694
|
-
function
|
|
695
|
-
|
|
692
|
+
const _n = /* @__PURE__ */ new WeakSet();
|
|
693
|
+
let ct = !1, pt = !1, _t = null, Se = !1, ot = !1;
|
|
694
|
+
function gn(e) {
|
|
695
|
+
ot = e;
|
|
696
696
|
}
|
|
697
|
-
let
|
|
698
|
-
function
|
|
697
|
+
let We = [], gt = [], E = null, ne = !1;
|
|
698
|
+
function we(e) {
|
|
699
699
|
E = e;
|
|
700
700
|
}
|
|
701
|
-
let
|
|
702
|
-
function
|
|
703
|
-
|
|
701
|
+
let C = null;
|
|
702
|
+
function je(e) {
|
|
703
|
+
C = e;
|
|
704
704
|
}
|
|
705
|
-
let
|
|
706
|
-
function
|
|
707
|
-
|
|
705
|
+
let ce = null;
|
|
706
|
+
function So(e) {
|
|
707
|
+
ce = e;
|
|
708
708
|
}
|
|
709
|
-
function
|
|
710
|
-
E !== null && E.f &
|
|
709
|
+
function Kn(e) {
|
|
710
|
+
E !== null && E.f & Nt && (ce === null ? So([e]) : ce.push(e));
|
|
711
711
|
}
|
|
712
|
-
let
|
|
713
|
-
function
|
|
714
|
-
|
|
712
|
+
let N = null, V = 0, Y = null;
|
|
713
|
+
function Lo(e) {
|
|
714
|
+
Y = e;
|
|
715
715
|
}
|
|
716
|
-
let
|
|
717
|
-
function
|
|
718
|
-
return ++
|
|
716
|
+
let er = 1, mt = 0, me = !1;
|
|
717
|
+
function tr() {
|
|
718
|
+
return ++er;
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function qe(e) {
|
|
721
721
|
var t = e.f;
|
|
722
|
-
if ((t &
|
|
722
|
+
if ((t & he) !== 0)
|
|
723
723
|
return !0;
|
|
724
|
-
if ((t &
|
|
725
|
-
var n = e.deps, r = (t &
|
|
724
|
+
if ((t & xe) !== 0) {
|
|
725
|
+
var n = e.deps, r = (t & W) !== 0;
|
|
726
726
|
if (n !== null) {
|
|
727
|
-
var s, o, i = (t &
|
|
727
|
+
var s, o, i = (t & dt) !== 0, a = r && C !== null && !me, c = n.length;
|
|
728
728
|
if (i || a) {
|
|
729
729
|
var l = (
|
|
730
730
|
/** @type {Derived} */
|
|
@@ -732,55 +732,55 @@ function Qe(e) {
|
|
|
732
732
|
), u = l.parent;
|
|
733
733
|
for (s = 0; s < c; s++)
|
|
734
734
|
o = n[s], (i || !o?.reactions?.includes(l)) && (o.reactions ?? (o.reactions = [])).push(l);
|
|
735
|
-
i && (l.f ^=
|
|
735
|
+
i && (l.f ^= dt), a && u !== null && (u.f & W) === 0 && (l.f ^= W);
|
|
736
736
|
}
|
|
737
737
|
for (s = 0; s < c; s++)
|
|
738
|
-
if (o = n[s],
|
|
738
|
+
if (o = n[s], qe(
|
|
739
739
|
/** @type {Derived} */
|
|
740
740
|
o
|
|
741
|
-
) &&
|
|
741
|
+
) && Xn(
|
|
742
742
|
/** @type {Derived} */
|
|
743
743
|
o
|
|
744
744
|
), o.wv > e.wv)
|
|
745
745
|
return !0;
|
|
746
746
|
}
|
|
747
|
-
(!r ||
|
|
747
|
+
(!r || C !== null && !me) && Z(e, z);
|
|
748
748
|
}
|
|
749
749
|
return !1;
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function mn(e, t) {
|
|
752
752
|
for (var n = t; n !== null; ) {
|
|
753
|
-
if ((n.f &
|
|
753
|
+
if ((n.f & ft) !== 0)
|
|
754
754
|
try {
|
|
755
755
|
n.fn(e);
|
|
756
756
|
return;
|
|
757
757
|
} catch {
|
|
758
|
-
n.f ^=
|
|
758
|
+
n.f ^= ft;
|
|
759
759
|
}
|
|
760
760
|
n = n.parent;
|
|
761
761
|
}
|
|
762
|
-
throw
|
|
762
|
+
throw ct = !1, e;
|
|
763
763
|
}
|
|
764
|
-
function
|
|
765
|
-
return (e.f &
|
|
764
|
+
function yn(e) {
|
|
765
|
+
return (e.f & Ct) === 0 && (e.parent === null || (e.parent.f & ft) === 0);
|
|
766
766
|
}
|
|
767
|
-
function
|
|
768
|
-
if (
|
|
769
|
-
if (n === null && (
|
|
767
|
+
function St(e, t, n, r) {
|
|
768
|
+
if (ct) {
|
|
769
|
+
if (n === null && (ct = !1), yn(t))
|
|
770
770
|
throw e;
|
|
771
771
|
return;
|
|
772
772
|
}
|
|
773
|
-
if (n !== null && (
|
|
774
|
-
|
|
773
|
+
if (n !== null && (ct = !0), r === null || !(e instanceof Error) || _n.has(e)) {
|
|
774
|
+
mn(e, t);
|
|
775
775
|
return;
|
|
776
776
|
}
|
|
777
|
-
|
|
777
|
+
_n.add(e);
|
|
778
778
|
const s = [], o = t.fn?.name;
|
|
779
779
|
o && s.push(o);
|
|
780
780
|
let i = r;
|
|
781
781
|
for (; i !== null; ) {
|
|
782
782
|
{
|
|
783
|
-
var a = i.function?.[
|
|
783
|
+
var a = i.function?.[x];
|
|
784
784
|
if (a) {
|
|
785
785
|
const u = a.split("/").pop();
|
|
786
786
|
s.push(u);
|
|
@@ -788,7 +788,7 @@ function bt(e, t, n, r) {
|
|
|
788
788
|
}
|
|
789
789
|
i = i.p;
|
|
790
790
|
}
|
|
791
|
-
const c =
|
|
791
|
+
const c = Zt ? " " : " ";
|
|
792
792
|
re(e, "message", {
|
|
793
793
|
value: e.message + `
|
|
794
794
|
${s.map((u) => `
|
|
@@ -802,72 +802,72 @@ ${c}in ${u}`).join("")}
|
|
|
802
802
|
const u = l.split(`
|
|
803
803
|
`), f = [];
|
|
804
804
|
for (let d = 0; d < u.length; d++) {
|
|
805
|
-
const
|
|
806
|
-
|
|
805
|
+
const v = u[d];
|
|
806
|
+
v.includes("svelte/src/internal") || f.push(v);
|
|
807
807
|
}
|
|
808
808
|
re(e, "stack", {
|
|
809
809
|
value: f.join(`
|
|
810
810
|
`)
|
|
811
811
|
});
|
|
812
812
|
}
|
|
813
|
-
if (
|
|
813
|
+
if (mn(e, t), yn(t))
|
|
814
814
|
throw e;
|
|
815
815
|
}
|
|
816
|
-
function
|
|
816
|
+
function nr(e, t, n = !0) {
|
|
817
817
|
var r = e.reactions;
|
|
818
818
|
if (r !== null)
|
|
819
819
|
for (var s = 0; s < r.length; s++) {
|
|
820
820
|
var o = r[s];
|
|
821
|
-
|
|
821
|
+
ce?.includes(e) || ((o.f & se) !== 0 ? nr(
|
|
822
822
|
/** @type {Derived} */
|
|
823
823
|
o,
|
|
824
824
|
t,
|
|
825
825
|
!1
|
|
826
|
-
) : t === o && (n ?
|
|
826
|
+
) : t === o && (n ? Z(o, he) : (o.f & z) !== 0 && Z(o, xe), It(
|
|
827
827
|
/** @type {Effect} */
|
|
828
828
|
o
|
|
829
829
|
)));
|
|
830
830
|
}
|
|
831
831
|
}
|
|
832
|
-
function
|
|
833
|
-
var
|
|
834
|
-
var t =
|
|
835
|
-
|
|
836
|
-
null,
|
|
832
|
+
function rr(e) {
|
|
833
|
+
var v;
|
|
834
|
+
var t = N, n = V, r = Y, s = E, o = me, i = ce, a = D, c = ne, l = e.f;
|
|
835
|
+
N = /** @type {null | Value[]} */
|
|
836
|
+
null, V = 0, Y = null, me = (l & W) !== 0 && (ne || !Se || E === null), E = (l & (de | Ie)) === 0 ? e : null, ce = null, bn(e.ctx), ne = !1, mt++, e.f |= Nt;
|
|
837
837
|
try {
|
|
838
838
|
var u = (
|
|
839
839
|
/** @type {Function} */
|
|
840
840
|
(0, e.fn)()
|
|
841
841
|
), f = e.deps;
|
|
842
|
-
if (
|
|
842
|
+
if (N !== null) {
|
|
843
843
|
var d;
|
|
844
|
-
if (
|
|
845
|
-
for (f.length =
|
|
846
|
-
f[
|
|
844
|
+
if (yt(e, V), f !== null && V > 0)
|
|
845
|
+
for (f.length = V + N.length, d = 0; d < N.length; d++)
|
|
846
|
+
f[V + d] = N[d];
|
|
847
847
|
else
|
|
848
|
-
e.deps = f =
|
|
849
|
-
if (!
|
|
850
|
-
for (d =
|
|
851
|
-
((
|
|
852
|
-
} else f !== null &&
|
|
853
|
-
if (
|
|
848
|
+
e.deps = f = N;
|
|
849
|
+
if (!me)
|
|
850
|
+
for (d = V; d < f.length; d++)
|
|
851
|
+
((v = f[d]).reactions ?? (v.reactions = [])).push(e);
|
|
852
|
+
} else f !== null && V < f.length && (yt(e, V), f.length = V);
|
|
853
|
+
if (gr() && Y !== null && !ne && f !== null && (e.f & (se | xe | he)) === 0)
|
|
854
854
|
for (d = 0; d < /** @type {Source[]} */
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
855
|
+
Y.length; d++)
|
|
856
|
+
nr(
|
|
857
|
+
Y[d],
|
|
858
858
|
/** @type {Effect} */
|
|
859
859
|
e
|
|
860
860
|
);
|
|
861
|
-
return s !== null && (
|
|
862
|
-
|
|
861
|
+
return s !== null && (mt++, Y !== null && (r === null ? r = Y : r.push(.../** @type {Source[]} */
|
|
862
|
+
Y))), u;
|
|
863
863
|
} finally {
|
|
864
|
-
|
|
864
|
+
N = t, V = n, Y = r, E = s, me = o, ce = i, bn(a), ne = c, e.f ^= Nt;
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function Io(e, t) {
|
|
868
868
|
let n = t.reactions;
|
|
869
869
|
if (n !== null) {
|
|
870
|
-
var r =
|
|
870
|
+
var r = Yr.call(n, e);
|
|
871
871
|
if (r !== -1) {
|
|
872
872
|
var s = n.length - 1;
|
|
873
873
|
s === 0 ? n = t.reactions = null : (n[r] = n[s], n.pop());
|
|
@@ -876,122 +876,122 @@ function Po(e, t) {
|
|
|
876
876
|
n === null && (t.f & se) !== 0 && // Destroying a child effect while updating a parent effect can cause a dependency to appear
|
|
877
877
|
// to be unused, when in fact it is used by the currently-updating parent. Checking `new_deps`
|
|
878
878
|
// allows us to skip the expensive work of disconnecting and immediately reconnecting it
|
|
879
|
-
(
|
|
879
|
+
(N === null || !N.includes(t)) && (Z(t, xe), (t.f & (W | dt)) === 0 && (t.f ^= dt), Wn(
|
|
880
880
|
/** @type {Derived} **/
|
|
881
881
|
t
|
|
882
|
-
),
|
|
882
|
+
), yt(
|
|
883
883
|
/** @type {Derived} **/
|
|
884
884
|
t,
|
|
885
885
|
0
|
|
886
886
|
));
|
|
887
887
|
}
|
|
888
|
-
function
|
|
888
|
+
function yt(e, t) {
|
|
889
889
|
var n = e.deps;
|
|
890
890
|
if (n !== null)
|
|
891
891
|
for (var r = t; r < n.length; r++)
|
|
892
|
-
|
|
892
|
+
Io(e, n[r]);
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function Lt(e) {
|
|
895
895
|
var t = e.f;
|
|
896
|
-
if ((t &
|
|
897
|
-
|
|
898
|
-
var n =
|
|
899
|
-
|
|
896
|
+
if ((t & Ct) === 0) {
|
|
897
|
+
Z(e, z);
|
|
898
|
+
var n = C, r = D, s = Se;
|
|
899
|
+
C = e, Se = !0;
|
|
900
900
|
{
|
|
901
|
-
var o =
|
|
902
|
-
|
|
901
|
+
var o = Le;
|
|
902
|
+
Cn(e.component_function);
|
|
903
903
|
}
|
|
904
904
|
try {
|
|
905
|
-
(t &
|
|
906
|
-
var i =
|
|
907
|
-
e.teardown = typeof i == "function" ? i : null, e.wv =
|
|
905
|
+
(t & Gt) !== 0 ? Do(e) : ar(e), lr(e);
|
|
906
|
+
var i = rr(e);
|
|
907
|
+
e.teardown = typeof i == "function" ? i : null, e.wv = er;
|
|
908
908
|
var a = e.deps, c;
|
|
909
|
-
|
|
909
|
+
an && fo && e.f & he, an && gt.push(e);
|
|
910
910
|
} catch (l) {
|
|
911
|
-
|
|
911
|
+
St(l, e, n, r || e.ctx);
|
|
912
912
|
} finally {
|
|
913
|
-
|
|
913
|
+
Se = s, C = n, Cn(o);
|
|
914
914
|
}
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function wn() {
|
|
918
918
|
console.error(
|
|
919
919
|
"Last ten effects were: ",
|
|
920
|
-
|
|
921
|
-
),
|
|
920
|
+
gt.slice(-10).map((e) => e.fn)
|
|
921
|
+
), gt = [];
|
|
922
922
|
}
|
|
923
|
-
function
|
|
923
|
+
function xo() {
|
|
924
924
|
try {
|
|
925
|
-
|
|
925
|
+
oo();
|
|
926
926
|
} catch (e) {
|
|
927
927
|
if (re(e, "stack", {
|
|
928
928
|
value: ""
|
|
929
|
-
}),
|
|
929
|
+
}), _t !== null)
|
|
930
930
|
try {
|
|
931
|
-
|
|
931
|
+
St(e, _t, null, null);
|
|
932
932
|
} catch (t) {
|
|
933
|
-
throw
|
|
933
|
+
throw wn(), t;
|
|
934
934
|
}
|
|
935
935
|
else
|
|
936
|
-
throw
|
|
936
|
+
throw wn(), e;
|
|
937
937
|
}
|
|
938
938
|
}
|
|
939
|
-
function
|
|
940
|
-
var e =
|
|
939
|
+
function or() {
|
|
940
|
+
var e = Se;
|
|
941
941
|
try {
|
|
942
942
|
var t = 0;
|
|
943
|
-
for (
|
|
944
|
-
t++ > 1e3 &&
|
|
945
|
-
var n =
|
|
946
|
-
|
|
943
|
+
for (Se = !0; We.length > 0; ) {
|
|
944
|
+
t++ > 1e3 && xo();
|
|
945
|
+
var n = We, r = n.length;
|
|
946
|
+
We = [];
|
|
947
947
|
for (var s = 0; s < r; s++) {
|
|
948
|
-
var o =
|
|
949
|
-
|
|
948
|
+
var o = Ro(n[s]);
|
|
949
|
+
ko(o);
|
|
950
950
|
}
|
|
951
951
|
}
|
|
952
952
|
} finally {
|
|
953
|
-
|
|
953
|
+
pt = !1, Se = e, _t = null, gt = [], et.clear();
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
|
-
function
|
|
956
|
+
function ko(e) {
|
|
957
957
|
var t = e.length;
|
|
958
958
|
if (t !== 0)
|
|
959
959
|
for (var n = 0; n < t; n++) {
|
|
960
960
|
var r = e[n];
|
|
961
|
-
if ((r.f & (
|
|
961
|
+
if ((r.f & (Ct | Me)) === 0)
|
|
962
962
|
try {
|
|
963
|
-
|
|
963
|
+
qe(r) && (Lt(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null ? cr(r) : r.fn = null));
|
|
964
964
|
} catch (s) {
|
|
965
|
-
|
|
965
|
+
St(s, r, null, r.ctx);
|
|
966
966
|
}
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
|
-
function
|
|
970
|
-
|
|
971
|
-
for (var t =
|
|
969
|
+
function It(e) {
|
|
970
|
+
pt || (pt = !0, queueMicrotask(or));
|
|
971
|
+
for (var t = _t = e; t.parent !== null; ) {
|
|
972
972
|
t = t.parent;
|
|
973
973
|
var n = t.f;
|
|
974
|
-
if ((n & (
|
|
975
|
-
if ((n &
|
|
976
|
-
t.f ^=
|
|
974
|
+
if ((n & (Ie | de)) !== 0) {
|
|
975
|
+
if ((n & z) === 0) return;
|
|
976
|
+
t.f ^= z;
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
|
-
|
|
979
|
+
We.push(t);
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function Ro(e) {
|
|
982
982
|
for (var t = [], n = e; n !== null; ) {
|
|
983
|
-
var r = n.f, s = (r & (
|
|
984
|
-
if (!o && (r &
|
|
985
|
-
if ((r &
|
|
983
|
+
var r = n.f, s = (r & (de | Ie)) !== 0, o = s && (r & z) !== 0;
|
|
984
|
+
if (!o && (r & Me) === 0) {
|
|
985
|
+
if ((r & Bn) !== 0)
|
|
986
986
|
t.push(n);
|
|
987
987
|
else if (s)
|
|
988
|
-
n.f ^=
|
|
988
|
+
n.f ^= z;
|
|
989
989
|
else {
|
|
990
990
|
var i = E;
|
|
991
991
|
try {
|
|
992
|
-
E = n,
|
|
992
|
+
E = n, qe(n) && Lt(n);
|
|
993
993
|
} catch (l) {
|
|
994
|
-
|
|
994
|
+
St(l, n, null, n.ctx);
|
|
995
995
|
} finally {
|
|
996
996
|
E = i;
|
|
997
997
|
}
|
|
@@ -1008,24 +1008,24 @@ function Io(e) {
|
|
|
1008
1008
|
}
|
|
1009
1009
|
return t;
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function b(e) {
|
|
1012
1012
|
var t;
|
|
1013
|
-
for (
|
|
1014
|
-
|
|
1013
|
+
for (un(); We.length > 0; )
|
|
1014
|
+
pt = !0, or(), un();
|
|
1015
1015
|
return (
|
|
1016
1016
|
/** @type {T} */
|
|
1017
1017
|
t
|
|
1018
1018
|
);
|
|
1019
1019
|
}
|
|
1020
|
-
async function
|
|
1021
|
-
await Promise.resolve(),
|
|
1020
|
+
async function sr() {
|
|
1021
|
+
await Promise.resolve(), b();
|
|
1022
1022
|
}
|
|
1023
|
-
function
|
|
1023
|
+
function g(e) {
|
|
1024
1024
|
var t = e.f, n = (t & se) !== 0;
|
|
1025
1025
|
if (E !== null && !ne) {
|
|
1026
|
-
if (!
|
|
1026
|
+
if (!ce?.includes(e)) {
|
|
1027
1027
|
var r = E.deps;
|
|
1028
|
-
e.rv <
|
|
1028
|
+
e.rv < mt && (e.rv = mt, N === null && r !== null && r[V] === e ? V++ : N === null ? N = [e] : (!me || !N.includes(e)) && N.push(e));
|
|
1029
1029
|
}
|
|
1030
1030
|
} else if (n && /** @type {Derived} */
|
|
1031
1031
|
e.deps === null && /** @type {Derived} */
|
|
@@ -1034,12 +1034,12 @@ function y(e) {
|
|
|
1034
1034
|
/** @type {Derived} */
|
|
1035
1035
|
e
|
|
1036
1036
|
), o = s.parent;
|
|
1037
|
-
o !== null && (o.f &
|
|
1037
|
+
o !== null && (o.f & W) === 0 && (s.f ^= W);
|
|
1038
1038
|
}
|
|
1039
1039
|
return n && (s = /** @type {Derived} */
|
|
1040
|
-
e,
|
|
1040
|
+
e, qe(s) && Xn(s)), ot && et.has(e) ? et.get(e) : e.v;
|
|
1041
1041
|
}
|
|
1042
|
-
function
|
|
1042
|
+
function wt(e) {
|
|
1043
1043
|
var t = ne;
|
|
1044
1044
|
try {
|
|
1045
1045
|
return ne = !0, e();
|
|
@@ -1047,26 +1047,26 @@ function jt(e) {
|
|
|
1047
1047
|
ne = t;
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
1050
|
-
const
|
|
1051
|
-
function
|
|
1052
|
-
e.f = e.f &
|
|
1050
|
+
const Oo = -7169;
|
|
1051
|
+
function Z(e, t) {
|
|
1052
|
+
e.f = e.f & Oo | t;
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1055
|
-
|
|
1054
|
+
function Fo(e) {
|
|
1055
|
+
C === null && E === null && ro(e), E !== null && (E.f & W) !== 0 && C === null && no(), ot && to(e);
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1057
|
+
function To(e, t) {
|
|
1058
1058
|
var n = t.last;
|
|
1059
1059
|
n === null ? t.last = t.first = e : (n.next = e, e.prev = n, t.last = e);
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1062
|
-
for (var s =
|
|
1061
|
+
function Re(e, t, n, r = !0) {
|
|
1062
|
+
for (var s = C; s !== null && (s.f & Un) !== 0; )
|
|
1063
1063
|
s = s.parent;
|
|
1064
1064
|
var o = {
|
|
1065
|
-
ctx:
|
|
1065
|
+
ctx: D,
|
|
1066
1066
|
deps: null,
|
|
1067
1067
|
nodes_start: null,
|
|
1068
1068
|
nodes_end: null,
|
|
1069
|
-
f: e |
|
|
1069
|
+
f: e | he,
|
|
1070
1070
|
first: null,
|
|
1071
1071
|
fn: t,
|
|
1072
1072
|
last: null,
|
|
@@ -1077,15 +1077,15 @@ function xe(e, t, n, r = !0) {
|
|
|
1077
1077
|
transitions: null,
|
|
1078
1078
|
wv: 0
|
|
1079
1079
|
};
|
|
1080
|
-
if (o.component_function =
|
|
1080
|
+
if (o.component_function = Le, n)
|
|
1081
1081
|
try {
|
|
1082
|
-
|
|
1082
|
+
Lt(o), o.f |= Vr;
|
|
1083
1083
|
} catch (c) {
|
|
1084
|
-
throw
|
|
1084
|
+
throw fe(o), c;
|
|
1085
1085
|
}
|
|
1086
|
-
else t !== null &&
|
|
1087
|
-
var i = n && o.deps === null && o.first === null && o.nodes_start === null && o.teardown === null && (o.f & (
|
|
1088
|
-
if (!i && r && (s !== null &&
|
|
1086
|
+
else t !== null && It(o);
|
|
1087
|
+
var i = n && o.deps === null && o.first === null && o.nodes_start === null && o.teardown === null && (o.f & (An | ft)) === 0;
|
|
1088
|
+
if (!i && r && (s !== null && To(o, s), E !== null && (E.f & se) !== 0)) {
|
|
1089
1089
|
var a = (
|
|
1090
1090
|
/** @type {Derived} */
|
|
1091
1091
|
E
|
|
@@ -1094,119 +1094,119 @@ function xe(e, t, n, r = !0) {
|
|
|
1094
1094
|
}
|
|
1095
1095
|
return o;
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1098
|
-
const t =
|
|
1099
|
-
return
|
|
1097
|
+
function Bo(e) {
|
|
1098
|
+
const t = Re(bt, null, !1);
|
|
1099
|
+
return Z(t, z), t.teardown = e, t;
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1102
|
-
|
|
1103
|
-
var t =
|
|
1101
|
+
function Ue(e) {
|
|
1102
|
+
Fo("$effect");
|
|
1103
|
+
var t = C !== null && (C.f & de) !== 0 && D !== null && !D.m;
|
|
1104
1104
|
if (re(e, "name", {
|
|
1105
1105
|
value: "$effect"
|
|
1106
1106
|
}), t) {
|
|
1107
1107
|
var n = (
|
|
1108
1108
|
/** @type {ComponentContext} */
|
|
1109
|
-
|
|
1109
|
+
D
|
|
1110
1110
|
);
|
|
1111
1111
|
(n.e ?? (n.e = [])).push({
|
|
1112
1112
|
fn: e,
|
|
1113
|
-
effect:
|
|
1113
|
+
effect: C,
|
|
1114
1114
|
reaction: E
|
|
1115
1115
|
});
|
|
1116
1116
|
} else {
|
|
1117
|
-
var r =
|
|
1117
|
+
var r = Kt(e);
|
|
1118
1118
|
return r;
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
1121
|
-
function
|
|
1122
|
-
const t =
|
|
1121
|
+
function Uo(e) {
|
|
1122
|
+
const t = Re(Ie, e, !0);
|
|
1123
1123
|
return () => {
|
|
1124
|
-
|
|
1124
|
+
fe(t);
|
|
1125
1125
|
};
|
|
1126
1126
|
}
|
|
1127
|
-
function
|
|
1128
|
-
const t =
|
|
1127
|
+
function Ao(e) {
|
|
1128
|
+
const t = Re(Ie, e, !0);
|
|
1129
1129
|
return (n = {}) => new Promise((r) => {
|
|
1130
|
-
n.outro ?
|
|
1131
|
-
|
|
1132
|
-
}) : (
|
|
1130
|
+
n.outro ? zt(t, () => {
|
|
1131
|
+
fe(t), r(void 0);
|
|
1132
|
+
}) : (fe(t), r(void 0));
|
|
1133
1133
|
});
|
|
1134
1134
|
}
|
|
1135
|
-
function
|
|
1136
|
-
return
|
|
1135
|
+
function Kt(e) {
|
|
1136
|
+
return Re(Bn, e, !1);
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1139
|
-
return
|
|
1138
|
+
function ir(e) {
|
|
1139
|
+
return Re(bt, e, !0);
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1142
|
-
const r = t.map(n), s = () => e(...r.map(
|
|
1141
|
+
function Xe(e, t = [], n = Ht) {
|
|
1142
|
+
const r = t.map(n), s = () => e(...r.map(g));
|
|
1143
1143
|
return re(s, "name", {
|
|
1144
1144
|
value: "{expression}"
|
|
1145
|
-
}),
|
|
1145
|
+
}), en(s);
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1148
|
-
return
|
|
1147
|
+
function en(e, t = 0) {
|
|
1148
|
+
return Re(bt | Gt | t, e, !0);
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1151
|
-
return
|
|
1150
|
+
function $t(e, t = !0) {
|
|
1151
|
+
return Re(bt | de, e, !0, t);
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1153
|
+
function lr(e) {
|
|
1154
1154
|
var t = e.teardown;
|
|
1155
1155
|
if (t !== null) {
|
|
1156
|
-
const n =
|
|
1157
|
-
|
|
1156
|
+
const n = ot, r = E;
|
|
1157
|
+
gn(!0), we(null);
|
|
1158
1158
|
try {
|
|
1159
1159
|
t.call(null);
|
|
1160
1160
|
} finally {
|
|
1161
|
-
|
|
1161
|
+
gn(n), we(r);
|
|
1162
1162
|
}
|
|
1163
1163
|
}
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1165
|
+
function ar(e, t = !1) {
|
|
1166
1166
|
var n = e.first;
|
|
1167
1167
|
for (e.first = e.last = null; n !== null; ) {
|
|
1168
1168
|
var r = n.next;
|
|
1169
|
-
(n.f &
|
|
1169
|
+
(n.f & Ie) !== 0 ? n.parent = null : fe(n, t), n = r;
|
|
1170
1170
|
}
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1172
|
+
function Do(e) {
|
|
1173
1173
|
for (var t = e.first; t !== null; ) {
|
|
1174
1174
|
var n = t.next;
|
|
1175
|
-
(t.f &
|
|
1175
|
+
(t.f & de) === 0 && fe(t), t = n;
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1178
|
+
function fe(e, t = !0) {
|
|
1179
1179
|
var n = !1;
|
|
1180
|
-
if ((t || (e.f &
|
|
1180
|
+
if ((t || (e.f & Jr) !== 0) && e.nodes_start !== null) {
|
|
1181
1181
|
for (var r = e.nodes_start, s = e.nodes_end; r !== null; ) {
|
|
1182
1182
|
var o = r === s ? null : (
|
|
1183
1183
|
/** @type {TemplateNode} */
|
|
1184
|
-
/* @__PURE__ */
|
|
1184
|
+
/* @__PURE__ */ ke(r)
|
|
1185
1185
|
);
|
|
1186
1186
|
r.remove(), r = o;
|
|
1187
1187
|
}
|
|
1188
1188
|
n = !0;
|
|
1189
1189
|
}
|
|
1190
|
-
|
|
1190
|
+
ar(e, t && !n), yt(e, 0), Z(e, Ct);
|
|
1191
1191
|
var i = e.transitions;
|
|
1192
1192
|
if (i !== null)
|
|
1193
1193
|
for (const c of i)
|
|
1194
1194
|
c.stop();
|
|
1195
|
-
|
|
1195
|
+
lr(e);
|
|
1196
1196
|
var a = e.parent;
|
|
1197
|
-
a !== null && a.first !== null &&
|
|
1197
|
+
a !== null && a.first !== null && cr(e), e.component_function = null, e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes_start = e.nodes_end = null;
|
|
1198
1198
|
}
|
|
1199
|
-
function
|
|
1199
|
+
function cr(e) {
|
|
1200
1200
|
var t = e.parent, n = e.prev, r = e.next;
|
|
1201
1201
|
n !== null && (n.next = r), r !== null && (r.prev = n), t !== null && (t.first === e && (t.first = r), t.last === e && (t.last = n));
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1203
|
+
function zt(e, t) {
|
|
1204
1204
|
var n = [];
|
|
1205
|
-
|
|
1206
|
-
|
|
1205
|
+
ur(e, n, !0), No(n, () => {
|
|
1206
|
+
fe(e), t && t();
|
|
1207
1207
|
});
|
|
1208
1208
|
}
|
|
1209
|
-
function
|
|
1209
|
+
function No(e, t) {
|
|
1210
1210
|
var n = e.length;
|
|
1211
1211
|
if (n > 0) {
|
|
1212
1212
|
var r = () => --n || t();
|
|
@@ -1215,40 +1215,40 @@ function Ao(e, t) {
|
|
|
1215
1215
|
} else
|
|
1216
1216
|
t();
|
|
1217
1217
|
}
|
|
1218
|
-
function
|
|
1219
|
-
if ((e.f &
|
|
1220
|
-
if (e.f ^=
|
|
1218
|
+
function ur(e, t, n) {
|
|
1219
|
+
if ((e.f & Me) === 0) {
|
|
1220
|
+
if (e.f ^= Me, e.transitions !== null)
|
|
1221
1221
|
for (const i of e.transitions)
|
|
1222
1222
|
(i.is_global || n) && t.push(i);
|
|
1223
1223
|
for (var r = e.first; r !== null; ) {
|
|
1224
|
-
var s = r.next, o = (r.f &
|
|
1225
|
-
|
|
1224
|
+
var s = r.next, o = (r.f & Wt) !== 0 || (r.f & de) !== 0;
|
|
1225
|
+
ur(r, t, o ? n : !1), r = s;
|
|
1226
1226
|
}
|
|
1227
1227
|
}
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1230
|
-
|
|
1229
|
+
function $n(e) {
|
|
1230
|
+
fr(e, !0);
|
|
1231
1231
|
}
|
|
1232
|
-
function
|
|
1233
|
-
if ((e.f &
|
|
1234
|
-
e.f ^=
|
|
1232
|
+
function fr(e, t) {
|
|
1233
|
+
if ((e.f & Me) !== 0) {
|
|
1234
|
+
e.f ^= Me, (e.f & z) === 0 && (e.f ^= z), qe(e) && (Z(e, he), It(e));
|
|
1235
1235
|
for (var n = e.first; n !== null; ) {
|
|
1236
|
-
var r = n.next, s = (n.f &
|
|
1237
|
-
|
|
1236
|
+
var r = n.next, s = (n.f & Wt) !== 0 || (n.f & de) !== 0;
|
|
1237
|
+
fr(n, s ? t : !1), n = r;
|
|
1238
1238
|
}
|
|
1239
1239
|
if (e.transitions !== null)
|
|
1240
1240
|
for (const o of e.transitions)
|
|
1241
1241
|
(o.is_global || t) && o.in();
|
|
1242
1242
|
}
|
|
1243
1243
|
}
|
|
1244
|
-
const
|
|
1245
|
-
function
|
|
1244
|
+
const He = {}, Mo = /at (?:.+ \()?(.+):(\d+):(\d+)\)?$/, jo = /@(.+):(\d+):(\d+)$/;
|
|
1245
|
+
function tn() {
|
|
1246
1246
|
const e = new Error().stack;
|
|
1247
1247
|
if (!e) return null;
|
|
1248
1248
|
const t = [];
|
|
1249
1249
|
for (const n of e.split(`
|
|
1250
1250
|
`)) {
|
|
1251
|
-
let r =
|
|
1251
|
+
let r = Mo.exec(n) ?? jo.exec(n);
|
|
1252
1252
|
r && t.push({
|
|
1253
1253
|
file: r[1],
|
|
1254
1254
|
line: +r[2],
|
|
@@ -1257,11 +1257,11 @@ function Kt() {
|
|
|
1257
1257
|
}
|
|
1258
1258
|
return t;
|
|
1259
1259
|
}
|
|
1260
|
-
function
|
|
1261
|
-
const e =
|
|
1260
|
+
function dr() {
|
|
1261
|
+
const e = tn()?.slice(4);
|
|
1262
1262
|
if (!e) return null;
|
|
1263
1263
|
for (let t = 0; t < e.length; t++) {
|
|
1264
|
-
const n = e[t], r =
|
|
1264
|
+
const n = e[t], r = He[n.file];
|
|
1265
1265
|
if (!r) {
|
|
1266
1266
|
if (t === 0) return null;
|
|
1267
1267
|
continue;
|
|
@@ -1275,10 +1275,10 @@ function ar() {
|
|
|
1275
1275
|
}
|
|
1276
1276
|
return null;
|
|
1277
1277
|
}
|
|
1278
|
-
function
|
|
1278
|
+
function hr() {
|
|
1279
1279
|
var t;
|
|
1280
|
-
const e =
|
|
1281
|
-
e && (
|
|
1280
|
+
const e = tn()?.[2];
|
|
1281
|
+
e && (He[t = e.file] ?? (He[t] = [])).push({
|
|
1282
1282
|
start: e,
|
|
1283
1283
|
// @ts-expect-error
|
|
1284
1284
|
end: null,
|
|
@@ -1286,14 +1286,14 @@ function cr() {
|
|
|
1286
1286
|
component: null
|
|
1287
1287
|
});
|
|
1288
1288
|
}
|
|
1289
|
-
function
|
|
1290
|
-
const t =
|
|
1289
|
+
function vr(e) {
|
|
1290
|
+
const t = tn()?.[2];
|
|
1291
1291
|
if (t) {
|
|
1292
|
-
const n =
|
|
1292
|
+
const n = He[t.file], r = n[n.length - 1];
|
|
1293
1293
|
r.end = t, r.component = e;
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
|
-
function
|
|
1296
|
+
function En(e, t) {
|
|
1297
1297
|
if (t.owners !== null)
|
|
1298
1298
|
for (; e; ) {
|
|
1299
1299
|
if (e.owners === null) {
|
|
@@ -1305,39 +1305,39 @@ function wn(e, t) {
|
|
|
1305
1305
|
e = e.parent;
|
|
1306
1306
|
}
|
|
1307
1307
|
}
|
|
1308
|
-
function
|
|
1308
|
+
function pr(e, t) {
|
|
1309
1309
|
return e.owners === null ? !0 : e.owners.has(t) || // This helps avoid false positives when using HMR, where the component function is replaced
|
|
1310
|
-
|
|
1310
|
+
x in t && [...e.owners].some(
|
|
1311
1311
|
(n) => (
|
|
1312
1312
|
/** @type {any} */
|
|
1313
|
-
n[
|
|
1313
|
+
n[x] === t[x]
|
|
1314
1314
|
)
|
|
1315
|
-
) || e.parent !== null &&
|
|
1315
|
+
) || e.parent !== null && pr(e.parent, t);
|
|
1316
1316
|
}
|
|
1317
|
-
function
|
|
1318
|
-
return e?.owners?.values().next().value ??
|
|
1317
|
+
function _r(e) {
|
|
1318
|
+
return e?.owners?.values().next().value ?? _r(
|
|
1319
1319
|
/** @type {ProxyMetadata} */
|
|
1320
1320
|
e.parent
|
|
1321
1321
|
);
|
|
1322
1322
|
}
|
|
1323
|
-
function
|
|
1324
|
-
const t =
|
|
1325
|
-
if (t && !
|
|
1326
|
-
let n =
|
|
1327
|
-
n[
|
|
1323
|
+
function Qo(e) {
|
|
1324
|
+
const t = dr();
|
|
1325
|
+
if (t && !pr(e, t)) {
|
|
1326
|
+
let n = _r(e);
|
|
1327
|
+
n[x] !== t[x] ? vn(t[x], n[x]) : vn();
|
|
1328
1328
|
}
|
|
1329
1329
|
}
|
|
1330
|
-
let
|
|
1331
|
-
function
|
|
1332
|
-
|
|
1330
|
+
let D = null;
|
|
1331
|
+
function bn(e) {
|
|
1332
|
+
D = e;
|
|
1333
1333
|
}
|
|
1334
|
-
let
|
|
1335
|
-
function
|
|
1336
|
-
|
|
1334
|
+
let Le = null;
|
|
1335
|
+
function Cn(e) {
|
|
1336
|
+
Le = e;
|
|
1337
1337
|
}
|
|
1338
|
-
function
|
|
1339
|
-
var r =
|
|
1340
|
-
p:
|
|
1338
|
+
function nn(e, t = !1, n) {
|
|
1339
|
+
var r = D = {
|
|
1340
|
+
p: D,
|
|
1341
1341
|
c: null,
|
|
1342
1342
|
d: !1,
|
|
1343
1343
|
e: null,
|
|
@@ -1346,76 +1346,76 @@ function en(e, t = !1, n) {
|
|
|
1346
1346
|
x: null,
|
|
1347
1347
|
l: null
|
|
1348
1348
|
};
|
|
1349
|
-
|
|
1349
|
+
Bo(() => {
|
|
1350
1350
|
r.d = !0;
|
|
1351
|
-
}),
|
|
1351
|
+
}), D.function = n, Le = n;
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1354
|
-
const t =
|
|
1353
|
+
function rn(e) {
|
|
1354
|
+
const t = D;
|
|
1355
1355
|
if (t !== null) {
|
|
1356
1356
|
e !== void 0 && (t.x = e);
|
|
1357
1357
|
const i = t.e;
|
|
1358
1358
|
if (i !== null) {
|
|
1359
|
-
var n =
|
|
1359
|
+
var n = C, r = E;
|
|
1360
1360
|
t.e = null;
|
|
1361
1361
|
try {
|
|
1362
1362
|
for (var s = 0; s < i.length; s++) {
|
|
1363
1363
|
var o = i[s];
|
|
1364
|
-
|
|
1364
|
+
je(o.effect), we(o.reaction), Kt(o.fn);
|
|
1365
1365
|
}
|
|
1366
1366
|
} finally {
|
|
1367
|
-
|
|
1367
|
+
je(n), we(r);
|
|
1368
1368
|
}
|
|
1369
1369
|
}
|
|
1370
|
-
|
|
1370
|
+
D = t.p, Le = t.p?.function ?? null, t.m = !0;
|
|
1371
1371
|
}
|
|
1372
1372
|
return e || /** @type {T} */
|
|
1373
1373
|
{};
|
|
1374
1374
|
}
|
|
1375
|
-
function
|
|
1375
|
+
function gr() {
|
|
1376
1376
|
return !0;
|
|
1377
1377
|
}
|
|
1378
|
-
const
|
|
1379
|
-
function
|
|
1380
|
-
e = e.replace(
|
|
1378
|
+
const zo = /\r/g;
|
|
1379
|
+
function qo(e) {
|
|
1380
|
+
e = e.replace(zo, "");
|
|
1381
1381
|
let t = 5381, n = e.length;
|
|
1382
1382
|
for (; n--; ) t = (t << 5) - t ^ e.charCodeAt(n);
|
|
1383
1383
|
return (t >>> 0).toString(36);
|
|
1384
1384
|
}
|
|
1385
|
-
const
|
|
1386
|
-
function
|
|
1387
|
-
return
|
|
1385
|
+
const Vo = ["touchstart", "touchmove"];
|
|
1386
|
+
function Jo(e) {
|
|
1387
|
+
return Vo.includes(e);
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1389
|
+
function Yo(e) {
|
|
1390
1390
|
return e?.replace(/\//g, "/");
|
|
1391
1391
|
}
|
|
1392
|
-
var
|
|
1393
|
-
function
|
|
1394
|
-
var n =
|
|
1395
|
-
n || (n = /* @__PURE__ */ new Set(),
|
|
1392
|
+
var Pn = /* @__PURE__ */ new Map();
|
|
1393
|
+
function Go(e, t) {
|
|
1394
|
+
var n = Pn.get(e);
|
|
1395
|
+
n || (n = /* @__PURE__ */ new Set(), Pn.set(e, n)), n.add(t);
|
|
1396
1396
|
}
|
|
1397
|
-
function
|
|
1397
|
+
function $e(e, t, n) {
|
|
1398
1398
|
return (...r) => {
|
|
1399
1399
|
const s = e(...r);
|
|
1400
|
-
var o =
|
|
1401
|
-
return
|
|
1400
|
+
var o = T ? s : s.nodeType === 11 ? s.firstChild : s;
|
|
1401
|
+
return mr(o, t, n), s;
|
|
1402
1402
|
};
|
|
1403
1403
|
}
|
|
1404
|
-
function
|
|
1404
|
+
function Wo(e, t, n) {
|
|
1405
1405
|
e.__svelte_meta = {
|
|
1406
1406
|
loc: { file: t, line: n[0], column: n[1] }
|
|
1407
|
-
}, n[2] &&
|
|
1407
|
+
}, n[2] && mr(e.firstChild, t, n[2]);
|
|
1408
1408
|
}
|
|
1409
|
-
function
|
|
1409
|
+
function mr(e, t, n) {
|
|
1410
1410
|
for (var r = 0, s = 0; e && r < n.length; ) {
|
|
1411
|
-
if (
|
|
1411
|
+
if (T && e.nodeType === 8) {
|
|
1412
1412
|
var o = (
|
|
1413
1413
|
/** @type {Comment} */
|
|
1414
1414
|
e
|
|
1415
1415
|
);
|
|
1416
|
-
o.data ===
|
|
1416
|
+
o.data === Et || o.data === Jt ? s += 1 : o.data[0] === Yt && (s -= 1);
|
|
1417
1417
|
}
|
|
1418
|
-
s === 0 && e.nodeType === 1 &&
|
|
1418
|
+
s === 0 && e.nodeType === 1 && Wo(
|
|
1419
1419
|
/** @type {Element} */
|
|
1420
1420
|
e,
|
|
1421
1421
|
t,
|
|
@@ -1423,8 +1423,8 @@ function hr(e, t, n) {
|
|
|
1423
1423
|
), e = e.nextSibling;
|
|
1424
1424
|
}
|
|
1425
1425
|
}
|
|
1426
|
-
const
|
|
1427
|
-
function
|
|
1426
|
+
const Xo = /* @__PURE__ */ new Set(), Sn = /* @__PURE__ */ new Set();
|
|
1427
|
+
function st(e) {
|
|
1428
1428
|
var t = this, n = (
|
|
1429
1429
|
/** @type {Node} */
|
|
1430
1430
|
t.ownerDocument
|
|
@@ -1452,71 +1452,71 @@ function rt(e) {
|
|
|
1452
1452
|
return o || n;
|
|
1453
1453
|
}
|
|
1454
1454
|
});
|
|
1455
|
-
var u = E, f =
|
|
1456
|
-
|
|
1455
|
+
var u = E, f = C;
|
|
1456
|
+
we(null), je(null);
|
|
1457
1457
|
try {
|
|
1458
|
-
for (var d,
|
|
1459
|
-
var
|
|
1458
|
+
for (var d, v = []; o !== null; ) {
|
|
1459
|
+
var p = o.assignedSlot || o.parentNode || /** @type {any} */
|
|
1460
1460
|
o.host || null;
|
|
1461
1461
|
try {
|
|
1462
|
-
var
|
|
1463
|
-
if (
|
|
1462
|
+
var m = o["__" + r];
|
|
1463
|
+
if (m != null && (!/** @type {any} */
|
|
1464
1464
|
o.disabled || // DOM could've been updated already by the time this is reached, so we check this as well
|
|
1465
1465
|
// -> the target could not have been disabled because it emits the event in the first place
|
|
1466
1466
|
e.target === o))
|
|
1467
|
-
if (
|
|
1468
|
-
var [w, ...
|
|
1469
|
-
w.apply(o, [e, ...
|
|
1467
|
+
if (Xt(m)) {
|
|
1468
|
+
var [w, ...O] = m;
|
|
1469
|
+
w.apply(o, [e, ...O]);
|
|
1470
1470
|
} else
|
|
1471
|
-
|
|
1472
|
-
} catch (
|
|
1473
|
-
d ?
|
|
1471
|
+
m.call(o, e);
|
|
1472
|
+
} catch (k) {
|
|
1473
|
+
d ? v.push(k) : d = k;
|
|
1474
1474
|
}
|
|
1475
|
-
if (e.cancelBubble ||
|
|
1475
|
+
if (e.cancelBubble || p === t || p === null)
|
|
1476
1476
|
break;
|
|
1477
|
-
o =
|
|
1477
|
+
o = p;
|
|
1478
1478
|
}
|
|
1479
1479
|
if (d) {
|
|
1480
|
-
for (let
|
|
1480
|
+
for (let k of v)
|
|
1481
1481
|
queueMicrotask(() => {
|
|
1482
|
-
throw
|
|
1482
|
+
throw k;
|
|
1483
1483
|
});
|
|
1484
1484
|
throw d;
|
|
1485
1485
|
}
|
|
1486
1486
|
} finally {
|
|
1487
|
-
e.__root = t, delete e.currentTarget,
|
|
1487
|
+
e.__root = t, delete e.currentTarget, we(u), je(f);
|
|
1488
1488
|
}
|
|
1489
1489
|
}
|
|
1490
1490
|
}
|
|
1491
|
-
function
|
|
1491
|
+
function yr(e) {
|
|
1492
1492
|
var t = document.createElement("template");
|
|
1493
1493
|
return t.innerHTML = e, t.content;
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1495
|
+
function rt(e, t) {
|
|
1496
1496
|
var n = (
|
|
1497
1497
|
/** @type {Effect} */
|
|
1498
|
-
|
|
1498
|
+
C
|
|
1499
1499
|
);
|
|
1500
1500
|
n.nodes_start === null && (n.nodes_start = e, n.nodes_end = t);
|
|
1501
1501
|
}
|
|
1502
1502
|
// @__NO_SIDE_EFFECTS__
|
|
1503
|
-
function
|
|
1504
|
-
var n = (t &
|
|
1503
|
+
function Ee(e, t) {
|
|
1504
|
+
var n = (t & qr) !== 0, r, s = !e.startsWith("<!>");
|
|
1505
1505
|
return () => {
|
|
1506
|
-
if (
|
|
1507
|
-
return
|
|
1508
|
-
r === void 0 && (r =
|
|
1509
|
-
/* @__PURE__ */
|
|
1506
|
+
if (T)
|
|
1507
|
+
return rt(F, null), F;
|
|
1508
|
+
r === void 0 && (r = yr(s ? e : "<!>" + e), r = /** @type {Node} */
|
|
1509
|
+
/* @__PURE__ */ nt(r));
|
|
1510
1510
|
var o = (
|
|
1511
1511
|
/** @type {TemplateNode} */
|
|
1512
|
-
n ||
|
|
1512
|
+
n || Zt ? document.importNode(r, !0) : r.cloneNode(!0)
|
|
1513
1513
|
);
|
|
1514
|
-
return
|
|
1514
|
+
return rt(o, o), o;
|
|
1515
1515
|
};
|
|
1516
1516
|
}
|
|
1517
|
-
function
|
|
1518
|
-
if (
|
|
1519
|
-
|
|
1517
|
+
function ae(e, t) {
|
|
1518
|
+
if (T) {
|
|
1519
|
+
C.nodes_end = F, tt();
|
|
1520
1520
|
return;
|
|
1521
1521
|
}
|
|
1522
1522
|
e !== null && e.before(
|
|
@@ -1524,103 +1524,103 @@ function le(e, t) {
|
|
|
1524
1524
|
t
|
|
1525
1525
|
);
|
|
1526
1526
|
}
|
|
1527
|
-
function
|
|
1527
|
+
function Ho(e, t) {
|
|
1528
1528
|
var n = t == null ? "" : typeof t == "object" ? t + "" : t;
|
|
1529
1529
|
n !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = n, e.nodeValue = n + "");
|
|
1530
1530
|
}
|
|
1531
|
-
function
|
|
1532
|
-
return
|
|
1531
|
+
function wr(e, t) {
|
|
1532
|
+
return $r(e, t);
|
|
1533
1533
|
}
|
|
1534
|
-
function
|
|
1535
|
-
|
|
1536
|
-
const n = t.target, r =
|
|
1534
|
+
function Zo(e, t) {
|
|
1535
|
+
jt(), t.intro = t.intro ?? !1;
|
|
1536
|
+
const n = t.target, r = T, s = F;
|
|
1537
1537
|
try {
|
|
1538
1538
|
for (var o = (
|
|
1539
1539
|
/** @type {TemplateNode} */
|
|
1540
|
-
/* @__PURE__ */
|
|
1540
|
+
/* @__PURE__ */ nt(n)
|
|
1541
1541
|
); o && (o.nodeType !== 8 || /** @type {Comment} */
|
|
1542
|
-
o.data !==
|
|
1542
|
+
o.data !== Et); )
|
|
1543
1543
|
o = /** @type {TemplateNode} */
|
|
1544
|
-
/* @__PURE__ */
|
|
1544
|
+
/* @__PURE__ */ ke(o);
|
|
1545
1545
|
if (!o)
|
|
1546
|
-
throw
|
|
1547
|
-
|
|
1546
|
+
throw De;
|
|
1547
|
+
Be(!0), ue(
|
|
1548
1548
|
/** @type {Comment} */
|
|
1549
1549
|
o
|
|
1550
|
-
),
|
|
1551
|
-
const i =
|
|
1552
|
-
if (
|
|
1553
|
-
|
|
1554
|
-
throw
|
|
1555
|
-
return
|
|
1550
|
+
), tt();
|
|
1551
|
+
const i = $r(e, { ...t, anchor: o });
|
|
1552
|
+
if (F === null || F.nodeType !== 8 || /** @type {Comment} */
|
|
1553
|
+
F.data !== Yt)
|
|
1554
|
+
throw Pt(), De;
|
|
1555
|
+
return Be(!1), /** @type {Exports} */
|
|
1556
1556
|
i;
|
|
1557
1557
|
} catch (i) {
|
|
1558
|
-
if (i ===
|
|
1559
|
-
return t.recover === !1 &&
|
|
1558
|
+
if (i === De)
|
|
1559
|
+
return t.recover === !1 && so(), jt(), Po(n), Be(!1), wr(e, t);
|
|
1560
1560
|
throw i;
|
|
1561
1561
|
} finally {
|
|
1562
|
-
|
|
1562
|
+
Be(r), ue(s);
|
|
1563
1563
|
}
|
|
1564
1564
|
}
|
|
1565
|
-
const
|
|
1566
|
-
function
|
|
1567
|
-
|
|
1565
|
+
const Te = /* @__PURE__ */ new Map();
|
|
1566
|
+
function $r(e, { target: t, anchor: n, props: r = {}, events: s, context: o, intro: i = !0 }) {
|
|
1567
|
+
jt();
|
|
1568
1568
|
var a = /* @__PURE__ */ new Set(), c = (f) => {
|
|
1569
1569
|
for (var d = 0; d < f.length; d++) {
|
|
1570
|
-
var
|
|
1571
|
-
if (!a.has(
|
|
1572
|
-
a.add(
|
|
1573
|
-
var
|
|
1574
|
-
t.addEventListener(
|
|
1575
|
-
var
|
|
1576
|
-
|
|
1570
|
+
var v = f[d];
|
|
1571
|
+
if (!a.has(v)) {
|
|
1572
|
+
a.add(v);
|
|
1573
|
+
var p = Jo(v);
|
|
1574
|
+
t.addEventListener(v, st, { passive: p });
|
|
1575
|
+
var m = Te.get(v);
|
|
1576
|
+
m === void 0 ? (document.addEventListener(v, st, { passive: p }), Te.set(v, 1)) : Te.set(v, m + 1);
|
|
1577
1577
|
}
|
|
1578
1578
|
}
|
|
1579
1579
|
};
|
|
1580
|
-
c(
|
|
1581
|
-
var l = void 0, u =
|
|
1582
|
-
var f = n ?? t.appendChild(
|
|
1583
|
-
return
|
|
1580
|
+
c(Gr(Xo)), Sn.add(c);
|
|
1581
|
+
var l = void 0, u = Ao(() => {
|
|
1582
|
+
var f = n ?? t.appendChild(vt());
|
|
1583
|
+
return $t(() => {
|
|
1584
1584
|
if (o) {
|
|
1585
|
-
|
|
1585
|
+
nn({});
|
|
1586
1586
|
var d = (
|
|
1587
1587
|
/** @type {ComponentContext} */
|
|
1588
|
-
|
|
1588
|
+
D
|
|
1589
1589
|
);
|
|
1590
1590
|
d.c = o;
|
|
1591
1591
|
}
|
|
1592
|
-
s && (r.$$events = s),
|
|
1592
|
+
s && (r.$$events = s), T && rt(
|
|
1593
1593
|
/** @type {TemplateNode} */
|
|
1594
1594
|
f,
|
|
1595
1595
|
null
|
|
1596
|
-
), l = e(f, r) || {},
|
|
1596
|
+
), l = e(f, r) || {}, T && (C.nodes_end = F), o && rn();
|
|
1597
1597
|
}), () => {
|
|
1598
1598
|
for (var d of a) {
|
|
1599
|
-
t.removeEventListener(d,
|
|
1600
|
-
var
|
|
1599
|
+
t.removeEventListener(d, st);
|
|
1600
|
+
var v = (
|
|
1601
1601
|
/** @type {number} */
|
|
1602
|
-
|
|
1602
|
+
Te.get(d)
|
|
1603
1603
|
);
|
|
1604
|
-
--
|
|
1604
|
+
--v === 0 ? (document.removeEventListener(d, st), Te.delete(d)) : Te.set(d, v);
|
|
1605
1605
|
}
|
|
1606
|
-
|
|
1606
|
+
Sn.delete(c), f !== n && f.parentNode?.removeChild(f);
|
|
1607
1607
|
};
|
|
1608
1608
|
});
|
|
1609
|
-
return
|
|
1609
|
+
return qt.set(l, u), l;
|
|
1610
1610
|
}
|
|
1611
|
-
let
|
|
1612
|
-
function
|
|
1613
|
-
const n =
|
|
1614
|
-
return n ? (
|
|
1611
|
+
let qt = /* @__PURE__ */ new WeakMap();
|
|
1612
|
+
function Ko(e, t) {
|
|
1613
|
+
const n = qt.get(e);
|
|
1614
|
+
return n ? (qt.delete(e), n(t)) : (Eo(), Promise.resolve());
|
|
1615
1615
|
}
|
|
1616
|
-
function
|
|
1617
|
-
e &&
|
|
1616
|
+
function Er(e) {
|
|
1617
|
+
e && Kr(e[x] ?? "a component", e.name);
|
|
1618
1618
|
}
|
|
1619
|
-
function
|
|
1620
|
-
const e =
|
|
1619
|
+
function br() {
|
|
1620
|
+
const e = D?.function;
|
|
1621
1621
|
function t(n) {
|
|
1622
|
-
const r =
|
|
1623
|
-
|
|
1622
|
+
const r = dr()?.[x] ?? "Something";
|
|
1623
|
+
Zr(r, n, e[x]);
|
|
1624
1624
|
}
|
|
1625
1625
|
return {
|
|
1626
1626
|
$destroy: () => t("$destroy()"),
|
|
@@ -1628,79 +1628,79 @@ function yr() {
|
|
|
1628
1628
|
$set: () => t("$set(...)")
|
|
1629
1629
|
};
|
|
1630
1630
|
}
|
|
1631
|
-
function
|
|
1632
|
-
|
|
1633
|
-
var s = e, o = null, i = null, a =
|
|
1634
|
-
const u = (d,
|
|
1635
|
-
l = !0, f(
|
|
1636
|
-
}, f = (d,
|
|
1631
|
+
function Ze(e, t, [n, r] = [0, 0]) {
|
|
1632
|
+
T && n === 0 && tt();
|
|
1633
|
+
var s = e, o = null, i = null, a = Q, c = n > 0 ? Wt : 0, l = !1;
|
|
1634
|
+
const u = (d, v = !0) => {
|
|
1635
|
+
l = !0, f(v, d);
|
|
1636
|
+
}, f = (d, v) => {
|
|
1637
1637
|
if (a === (a = d)) return;
|
|
1638
|
-
let
|
|
1639
|
-
if (
|
|
1638
|
+
let p = !1;
|
|
1639
|
+
if (T && r !== -1) {
|
|
1640
1640
|
if (n === 0) {
|
|
1641
1641
|
const w = (
|
|
1642
1642
|
/** @type {Comment} */
|
|
1643
1643
|
s.data
|
|
1644
1644
|
);
|
|
1645
|
-
w ===
|
|
1645
|
+
w === Et ? r = 0 : w === Jt ? r = 1 / 0 : (r = parseInt(w.substring(1)), r !== r && (r = a ? 1 / 0 : -1));
|
|
1646
1646
|
}
|
|
1647
|
-
const
|
|
1648
|
-
!!a ===
|
|
1647
|
+
const m = r > n;
|
|
1648
|
+
!!a === m && (s = bo(), ue(s), Be(!1), p = !0, r = -1);
|
|
1649
1649
|
}
|
|
1650
|
-
a ? (o ?
|
|
1650
|
+
a ? (o ? $n(o) : v && (o = $t(() => v(s))), i && zt(i, () => {
|
|
1651
1651
|
i = null;
|
|
1652
|
-
})) : (i ?
|
|
1652
|
+
})) : (i ? $n(i) : v && (i = $t(() => v(s, [n + 1, r]))), o && zt(o, () => {
|
|
1653
1653
|
o = null;
|
|
1654
|
-
})),
|
|
1654
|
+
})), p && Be(!0);
|
|
1655
1655
|
};
|
|
1656
|
-
|
|
1656
|
+
en(() => {
|
|
1657
1657
|
l = !1, t(u), l || f(null, null);
|
|
1658
|
-
}, c),
|
|
1658
|
+
}, c), T && (s = F);
|
|
1659
1659
|
}
|
|
1660
|
-
function
|
|
1661
|
-
if (!t || t ===
|
|
1660
|
+
function es(e, t, n) {
|
|
1661
|
+
if (!t || t === qo(String(n ?? ""))) return;
|
|
1662
1662
|
let r;
|
|
1663
1663
|
const s = e.__svelte_meta?.loc;
|
|
1664
|
-
s ? r = `near ${s.file}:${s.line}:${s.column}` :
|
|
1664
|
+
s ? r = `near ${s.file}:${s.line}:${s.column}` : Le?.[x] && (r = `in ${Le[x]}`), $o(Yo(r));
|
|
1665
1665
|
}
|
|
1666
|
-
function
|
|
1666
|
+
function Ln(e, t, n, r, s) {
|
|
1667
1667
|
var o = e, i = "", a;
|
|
1668
|
-
|
|
1668
|
+
en(() => {
|
|
1669
1669
|
if (i === (i = t() ?? "")) {
|
|
1670
|
-
|
|
1670
|
+
T && tt();
|
|
1671
1671
|
return;
|
|
1672
1672
|
}
|
|
1673
|
-
a !== void 0 && (
|
|
1674
|
-
if (
|
|
1673
|
+
a !== void 0 && (fe(a), a = void 0), i !== "" && (a = $t(() => {
|
|
1674
|
+
if (T) {
|
|
1675
1675
|
for (var c = (
|
|
1676
1676
|
/** @type {Comment} */
|
|
1677
|
-
|
|
1678
|
-
), l =
|
|
1677
|
+
F.data
|
|
1678
|
+
), l = tt(), u = l; l !== null && (l.nodeType !== 8 || /** @type {Comment} */
|
|
1679
1679
|
l.data !== ""); )
|
|
1680
1680
|
u = l, l = /** @type {TemplateNode} */
|
|
1681
|
-
/* @__PURE__ */
|
|
1681
|
+
/* @__PURE__ */ ke(l);
|
|
1682
1682
|
if (l === null)
|
|
1683
|
-
throw
|
|
1684
|
-
|
|
1683
|
+
throw Pt(), De;
|
|
1684
|
+
es(
|
|
1685
1685
|
/** @type {Element} */
|
|
1686
1686
|
l.parentNode,
|
|
1687
1687
|
c,
|
|
1688
1688
|
i
|
|
1689
|
-
),
|
|
1689
|
+
), rt(F, u), o = ue(l);
|
|
1690
1690
|
return;
|
|
1691
1691
|
}
|
|
1692
|
-
var f = i + "", d =
|
|
1693
|
-
|
|
1692
|
+
var f = i + "", d = yr(f);
|
|
1693
|
+
rt(
|
|
1694
1694
|
/** @type {TemplateNode} */
|
|
1695
|
-
/* @__PURE__ */
|
|
1695
|
+
/* @__PURE__ */ nt(d),
|
|
1696
1696
|
/** @type {TemplateNode} */
|
|
1697
1697
|
d.lastChild
|
|
1698
1698
|
), o.before(d);
|
|
1699
1699
|
}));
|
|
1700
1700
|
});
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
1703
|
-
|
|
1702
|
+
function Cr(e, t) {
|
|
1703
|
+
zn(() => {
|
|
1704
1704
|
var n = e.getRootNode(), r = (
|
|
1705
1705
|
/** @type {ShadowRoot} */
|
|
1706
1706
|
n.host ? (
|
|
@@ -1714,22 +1714,39 @@ function wr(e, t) {
|
|
|
1714
1714
|
);
|
|
1715
1715
|
if (!r.querySelector("#" + t.hash)) {
|
|
1716
1716
|
const s = document.createElement("style");
|
|
1717
|
-
s.id = t.hash, s.textContent = t.code, r.appendChild(s),
|
|
1717
|
+
s.id = t.hash, s.textContent = t.code, r.appendChild(s), Go(t.hash, s);
|
|
1718
1718
|
}
|
|
1719
1719
|
});
|
|
1720
1720
|
}
|
|
1721
|
-
function
|
|
1721
|
+
function ts(e, t, n) {
|
|
1722
1722
|
var r = e == null ? "" : "" + e;
|
|
1723
1723
|
return t && (r = r ? r + " " + t : t), r === "" ? null : r;
|
|
1724
1724
|
}
|
|
1725
|
-
function
|
|
1725
|
+
function Ae(e, t, n, r, s, o) {
|
|
1726
1726
|
var i = e.__className;
|
|
1727
|
-
if (
|
|
1728
|
-
var a =
|
|
1729
|
-
(!
|
|
1727
|
+
if (T || i !== n || i === void 0) {
|
|
1728
|
+
var a = ts(n, r);
|
|
1729
|
+
(!T || a !== e.getAttribute("class")) && (a == null ? e.removeAttribute("class") : e.className = a), e.__className = n;
|
|
1730
1730
|
}
|
|
1731
1731
|
return o;
|
|
1732
1732
|
}
|
|
1733
|
+
function In(e, t) {
|
|
1734
|
+
return e === t || e?.[ye] === t;
|
|
1735
|
+
}
|
|
1736
|
+
function ns(e = {}, t, n, r) {
|
|
1737
|
+
return Kt(() => {
|
|
1738
|
+
var s, o;
|
|
1739
|
+
return ir(() => {
|
|
1740
|
+
s = o, o = [], wt(() => {
|
|
1741
|
+
e !== n(...o) && (t(e, ...o), s && In(n(...s), e) && t(null, ...s));
|
|
1742
|
+
});
|
|
1743
|
+
}), () => {
|
|
1744
|
+
zn(() => {
|
|
1745
|
+
o && In(n(...o), e) && t(null, ...o);
|
|
1746
|
+
});
|
|
1747
|
+
};
|
|
1748
|
+
}), e;
|
|
1749
|
+
}
|
|
1733
1750
|
{
|
|
1734
1751
|
let e = function(t) {
|
|
1735
1752
|
if (!(t in globalThis)) {
|
|
@@ -1740,7 +1757,7 @@ function Be(e, t, n, r, s, o) {
|
|
|
1740
1757
|
get: () => {
|
|
1741
1758
|
if (n !== void 0)
|
|
1742
1759
|
return n;
|
|
1743
|
-
|
|
1760
|
+
lo(t);
|
|
1744
1761
|
},
|
|
1745
1762
|
set: (r) => {
|
|
1746
1763
|
n = r;
|
|
@@ -1748,74 +1765,74 @@ function Be(e, t, n, r, s, o) {
|
|
|
1748
1765
|
});
|
|
1749
1766
|
}
|
|
1750
1767
|
};
|
|
1751
|
-
var
|
|
1768
|
+
var Ss = e;
|
|
1752
1769
|
e("$state"), e("$effect"), e("$derived"), e("$inspect"), e("$props"), e("$bindable");
|
|
1753
1770
|
}
|
|
1754
|
-
let
|
|
1755
|
-
function
|
|
1756
|
-
var t =
|
|
1771
|
+
let it = !1;
|
|
1772
|
+
function rs(e) {
|
|
1773
|
+
var t = it;
|
|
1757
1774
|
try {
|
|
1758
|
-
return
|
|
1775
|
+
return it = !1, [e(), it];
|
|
1759
1776
|
} finally {
|
|
1760
|
-
|
|
1777
|
+
it = t;
|
|
1761
1778
|
}
|
|
1762
1779
|
}
|
|
1763
|
-
function
|
|
1780
|
+
function xn(e) {
|
|
1764
1781
|
return e.ctx?.d ?? !1;
|
|
1765
1782
|
}
|
|
1766
|
-
function
|
|
1767
|
-
var s = (n &
|
|
1768
|
-
i ? [l, c] =
|
|
1783
|
+
function I(e, t, n, r) {
|
|
1784
|
+
var s = (n & Mr) !== 0, o = !0, i = (n & Qr) !== 0, a = (n & zr) !== 0, c = !1, l;
|
|
1785
|
+
i ? [l, c] = rs(() => (
|
|
1769
1786
|
/** @type {V} */
|
|
1770
1787
|
e[t]
|
|
1771
1788
|
)) : l = /** @type {V} */
|
|
1772
1789
|
e[t];
|
|
1773
|
-
var u =
|
|
1790
|
+
var u = ye in e || Dn in e, f = i && (Pe(e, t)?.set ?? (u && t in e && ((R) => e[t] = R))) || void 0, d = (
|
|
1774
1791
|
/** @type {V} */
|
|
1775
1792
|
r
|
|
1776
|
-
),
|
|
1793
|
+
), v = !0, p = !1, m = () => (p = !0, v && (v = !1, a ? d = wt(
|
|
1777
1794
|
/** @type {() => V} */
|
|
1778
1795
|
r
|
|
1779
1796
|
) : d = /** @type {V} */
|
|
1780
1797
|
r), d);
|
|
1781
|
-
l === void 0 && r !== void 0 && (f && o &&
|
|
1798
|
+
l === void 0 && r !== void 0 && (f && o && io(t), l = m(), f && f(l));
|
|
1782
1799
|
var w;
|
|
1783
1800
|
if (w = () => {
|
|
1784
|
-
var
|
|
1801
|
+
var R = (
|
|
1785
1802
|
/** @type {V} */
|
|
1786
1803
|
e[t]
|
|
1787
1804
|
);
|
|
1788
|
-
return
|
|
1789
|
-
}, (n &
|
|
1805
|
+
return R === void 0 ? m() : (v = !0, p = !1, R);
|
|
1806
|
+
}, (n & jr) === 0)
|
|
1790
1807
|
return w;
|
|
1791
1808
|
if (f) {
|
|
1792
|
-
var
|
|
1793
|
-
return function(
|
|
1794
|
-
return arguments.length > 0 ? ((!
|
|
1809
|
+
var O = e.$$legacy;
|
|
1810
|
+
return function(R, A) {
|
|
1811
|
+
return arguments.length > 0 ? ((!A || O || c) && f(A ? w() : R), R) : w();
|
|
1795
1812
|
};
|
|
1796
1813
|
}
|
|
1797
|
-
var
|
|
1798
|
-
var
|
|
1799
|
-
return
|
|
1814
|
+
var k = !1, M = /* @__PURE__ */ Yn(l), S = /* @__PURE__ */ Ht(() => {
|
|
1815
|
+
var R = w(), A = g(M);
|
|
1816
|
+
return k ? (k = !1, A) : M.v = R;
|
|
1800
1817
|
});
|
|
1801
|
-
return i &&
|
|
1818
|
+
return i && g(S), s || (S.equals = Vn), function(R, A) {
|
|
1802
1819
|
if (arguments.length > 0) {
|
|
1803
|
-
const
|
|
1804
|
-
if (!
|
|
1805
|
-
if (
|
|
1806
|
-
return
|
|
1807
|
-
|
|
1820
|
+
const ie = A ? g(S) : i ? Ce(R) : R;
|
|
1821
|
+
if (!S.equals(ie)) {
|
|
1822
|
+
if (k = !0, $(M, ie), p && d !== void 0 && (d = ie), xn(S))
|
|
1823
|
+
return R;
|
|
1824
|
+
wt(() => g(S));
|
|
1808
1825
|
}
|
|
1809
|
-
return
|
|
1826
|
+
return R;
|
|
1810
1827
|
}
|
|
1811
|
-
return
|
|
1828
|
+
return xn(S) ? S.v : g(S);
|
|
1812
1829
|
};
|
|
1813
1830
|
}
|
|
1814
|
-
function
|
|
1815
|
-
return new
|
|
1831
|
+
function os(e) {
|
|
1832
|
+
return new ss(e);
|
|
1816
1833
|
}
|
|
1817
|
-
var
|
|
1818
|
-
class
|
|
1834
|
+
var le, G;
|
|
1835
|
+
class ss {
|
|
1819
1836
|
/**
|
|
1820
1837
|
* @param {ComponentConstructorOptions & {
|
|
1821
1838
|
* component: any;
|
|
@@ -1823,56 +1840,56 @@ class ns {
|
|
|
1823
1840
|
*/
|
|
1824
1841
|
constructor(t) {
|
|
1825
1842
|
/** @type {any} */
|
|
1826
|
-
|
|
1843
|
+
Tt(this, le);
|
|
1827
1844
|
/** @type {Record<string, any>} */
|
|
1828
|
-
|
|
1845
|
+
Tt(this, G);
|
|
1829
1846
|
var n = /* @__PURE__ */ new Map(), r = (o, i) => {
|
|
1830
|
-
var a = /* @__PURE__ */
|
|
1847
|
+
var a = /* @__PURE__ */ Yn(i);
|
|
1831
1848
|
return n.set(o, a), a;
|
|
1832
1849
|
};
|
|
1833
1850
|
const s = new Proxy(
|
|
1834
1851
|
{ ...t.props || {}, $$events: {} },
|
|
1835
1852
|
{
|
|
1836
1853
|
get(o, i) {
|
|
1837
|
-
return
|
|
1854
|
+
return g(n.get(i) ?? r(i, Reflect.get(o, i)));
|
|
1838
1855
|
},
|
|
1839
1856
|
has(o, i) {
|
|
1840
|
-
return i ===
|
|
1857
|
+
return i === Dn ? !0 : (g(n.get(i) ?? r(i, Reflect.get(o, i))), Reflect.has(o, i));
|
|
1841
1858
|
},
|
|
1842
1859
|
set(o, i, a) {
|
|
1843
1860
|
return $(n.get(i) ?? r(i, a), a), Reflect.set(o, i, a);
|
|
1844
1861
|
}
|
|
1845
1862
|
}
|
|
1846
1863
|
);
|
|
1847
|
-
|
|
1864
|
+
Bt(this, G, (t.hydrate ? Zo : wr)(t.component, {
|
|
1848
1865
|
target: t.target,
|
|
1849
1866
|
anchor: t.anchor,
|
|
1850
1867
|
props: s,
|
|
1851
1868
|
context: t.context,
|
|
1852
1869
|
intro: t.intro ?? !1,
|
|
1853
1870
|
recover: t.recover
|
|
1854
|
-
})), (!t?.props?.$$host || t.sync === !1) &&
|
|
1855
|
-
for (const o of Object.keys(
|
|
1871
|
+
})), (!t?.props?.$$host || t.sync === !1) && b(), Bt(this, le, s.$$events);
|
|
1872
|
+
for (const o of Object.keys(j(this, G)))
|
|
1856
1873
|
o === "$set" || o === "$destroy" || o === "$on" || re(this, o, {
|
|
1857
1874
|
get() {
|
|
1858
|
-
return
|
|
1875
|
+
return j(this, G)[o];
|
|
1859
1876
|
},
|
|
1860
1877
|
/** @param {any} value */
|
|
1861
1878
|
set(i) {
|
|
1862
|
-
|
|
1879
|
+
j(this, G)[o] = i;
|
|
1863
1880
|
},
|
|
1864
1881
|
enumerable: !0
|
|
1865
1882
|
});
|
|
1866
|
-
|
|
1883
|
+
j(this, G).$set = /** @param {Record<string, any>} next */
|
|
1867
1884
|
(o) => {
|
|
1868
1885
|
Object.assign(s, o);
|
|
1869
|
-
},
|
|
1870
|
-
|
|
1886
|
+
}, j(this, G).$destroy = () => {
|
|
1887
|
+
Ko(j(this, G));
|
|
1871
1888
|
};
|
|
1872
1889
|
}
|
|
1873
1890
|
/** @param {Record<string, any>} props */
|
|
1874
1891
|
$set(t) {
|
|
1875
|
-
|
|
1892
|
+
j(this, G).$set(t);
|
|
1876
1893
|
}
|
|
1877
1894
|
/**
|
|
1878
1895
|
* @param {string} event
|
|
@@ -1880,22 +1897,22 @@ class ns {
|
|
|
1880
1897
|
* @returns {any}
|
|
1881
1898
|
*/
|
|
1882
1899
|
$on(t, n) {
|
|
1883
|
-
|
|
1900
|
+
j(this, le)[t] = j(this, le)[t] || [];
|
|
1884
1901
|
const r = (...s) => n.call(this, ...s);
|
|
1885
|
-
return
|
|
1886
|
-
|
|
1902
|
+
return j(this, le)[t].push(r), () => {
|
|
1903
|
+
j(this, le)[t] = j(this, le)[t].filter(
|
|
1887
1904
|
/** @param {any} fn */
|
|
1888
1905
|
(s) => s !== r
|
|
1889
1906
|
);
|
|
1890
1907
|
};
|
|
1891
1908
|
}
|
|
1892
1909
|
$destroy() {
|
|
1893
|
-
|
|
1910
|
+
j(this, G).$destroy();
|
|
1894
1911
|
}
|
|
1895
1912
|
}
|
|
1896
|
-
|
|
1897
|
-
let
|
|
1898
|
-
typeof HTMLElement == "function" && (
|
|
1913
|
+
le = new WeakMap(), G = new WeakMap();
|
|
1914
|
+
let Pr;
|
|
1915
|
+
typeof HTMLElement == "function" && (Pr = class extends HTMLElement {
|
|
1899
1916
|
/**
|
|
1900
1917
|
* @param {*} $$componentCtor
|
|
1901
1918
|
* @param {*} $$slots
|
|
@@ -1953,22 +1970,22 @@ typeof HTMLElement == "function" && ($r = class extends HTMLElement {
|
|
|
1953
1970
|
let n = function(o) {
|
|
1954
1971
|
return (i) => {
|
|
1955
1972
|
const a = document.createElement("slot");
|
|
1956
|
-
o !== "default" && (a.name = o),
|
|
1973
|
+
o !== "default" && (a.name = o), ae(i, a);
|
|
1957
1974
|
};
|
|
1958
1975
|
};
|
|
1959
1976
|
var t = n;
|
|
1960
1977
|
if (await Promise.resolve(), !this.$$cn || this.$$c)
|
|
1961
1978
|
return;
|
|
1962
|
-
const r = {}, s =
|
|
1979
|
+
const r = {}, s = is(this);
|
|
1963
1980
|
for (const o of this.$$s)
|
|
1964
1981
|
o in s && (o === "default" && !this.$$d.children ? (this.$$d.children = n(o), r.default = !0) : r[o] = n(o));
|
|
1965
1982
|
for (const o of this.attributes) {
|
|
1966
1983
|
const i = this.$$g_p(o.name);
|
|
1967
|
-
i in this.$$d || (this.$$d[i] =
|
|
1984
|
+
i in this.$$d || (this.$$d[i] = ut(i, o.value, this.$$p_d, "toProp"));
|
|
1968
1985
|
}
|
|
1969
1986
|
for (const o in this.$$p_d)
|
|
1970
1987
|
!(o in this.$$d) && this[o] !== void 0 && (this.$$d[o] = this[o], delete this[o]);
|
|
1971
|
-
this.$$c =
|
|
1988
|
+
this.$$c = os({
|
|
1972
1989
|
component: this.$$ctor,
|
|
1973
1990
|
target: this.shadowRoot || this,
|
|
1974
1991
|
props: {
|
|
@@ -1976,13 +1993,13 @@ typeof HTMLElement == "function" && ($r = class extends HTMLElement {
|
|
|
1976
1993
|
$$slots: r,
|
|
1977
1994
|
$$host: this
|
|
1978
1995
|
}
|
|
1979
|
-
}), this.$$me =
|
|
1980
|
-
|
|
1996
|
+
}), this.$$me = Uo(() => {
|
|
1997
|
+
ir(() => {
|
|
1981
1998
|
this.$$r = !0;
|
|
1982
|
-
for (const o of
|
|
1999
|
+
for (const o of ht(this.$$c)) {
|
|
1983
2000
|
if (!this.$$p_d[o]?.reflect) continue;
|
|
1984
2001
|
this.$$d[o] = this.$$c[o];
|
|
1985
|
-
const i =
|
|
2002
|
+
const i = ut(
|
|
1986
2003
|
o,
|
|
1987
2004
|
this.$$d[o],
|
|
1988
2005
|
this.$$p_d,
|
|
@@ -2009,7 +2026,7 @@ typeof HTMLElement == "function" && ($r = class extends HTMLElement {
|
|
|
2009
2026
|
* @param {string} newValue
|
|
2010
2027
|
*/
|
|
2011
2028
|
attributeChangedCallback(t, n, r) {
|
|
2012
|
-
this.$$r || (t = this.$$g_p(t), this.$$d[t] =
|
|
2029
|
+
this.$$r || (t = this.$$g_p(t), this.$$d[t] = ut(t, r, this.$$p_d, "toProp"), this.$$c?.$set({ [t]: this.$$d[t] }));
|
|
2013
2030
|
}
|
|
2014
2031
|
disconnectedCallback() {
|
|
2015
2032
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2020,12 +2037,12 @@ typeof HTMLElement == "function" && ($r = class extends HTMLElement {
|
|
|
2020
2037
|
* @param {string} attribute_name
|
|
2021
2038
|
*/
|
|
2022
2039
|
$$g_p(t) {
|
|
2023
|
-
return
|
|
2040
|
+
return ht(this.$$p_d).find(
|
|
2024
2041
|
(n) => this.$$p_d[n].attribute === t || !this.$$p_d[n].attribute && n.toLowerCase() === t
|
|
2025
2042
|
) || t;
|
|
2026
2043
|
}
|
|
2027
2044
|
});
|
|
2028
|
-
function
|
|
2045
|
+
function ut(e, t, n, r) {
|
|
2029
2046
|
const s = n[e]?.type;
|
|
2030
2047
|
if (t = s === "Boolean" && typeof t != "boolean" ? t != null : t, !r || !n[e])
|
|
2031
2048
|
return t;
|
|
@@ -2055,7 +2072,7 @@ function at(e, t, n, r) {
|
|
|
2055
2072
|
return t;
|
|
2056
2073
|
}
|
|
2057
2074
|
}
|
|
2058
|
-
function
|
|
2075
|
+
function is(e) {
|
|
2059
2076
|
const t = {};
|
|
2060
2077
|
return e.childNodes.forEach((n) => {
|
|
2061
2078
|
t[
|
|
@@ -2064,27 +2081,27 @@ function rs(e) {
|
|
|
2064
2081
|
] = !0;
|
|
2065
2082
|
}), t;
|
|
2066
2083
|
}
|
|
2067
|
-
function
|
|
2068
|
-
let i = class extends
|
|
2084
|
+
function Sr(e, t, n, r, s, o) {
|
|
2085
|
+
let i = class extends Pr {
|
|
2069
2086
|
constructor() {
|
|
2070
2087
|
super(e, n, s), this.$$p_d = t;
|
|
2071
2088
|
}
|
|
2072
2089
|
static get observedAttributes() {
|
|
2073
|
-
return
|
|
2090
|
+
return ht(t).map(
|
|
2074
2091
|
(a) => (t[a].attribute || a).toLowerCase()
|
|
2075
2092
|
);
|
|
2076
2093
|
}
|
|
2077
2094
|
};
|
|
2078
|
-
return
|
|
2095
|
+
return ht(t).forEach((a) => {
|
|
2079
2096
|
re(i.prototype, a, {
|
|
2080
2097
|
get() {
|
|
2081
2098
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
2082
2099
|
},
|
|
2083
2100
|
set(c) {
|
|
2084
|
-
c =
|
|
2101
|
+
c = ut(a, c, t), this.$$d[a] = c;
|
|
2085
2102
|
var l = this.$$c;
|
|
2086
2103
|
if (l) {
|
|
2087
|
-
var u =
|
|
2104
|
+
var u = Pe(l, a)?.get;
|
|
2088
2105
|
u ? l[a] = c : l.$set({ [a]: c });
|
|
2089
2106
|
}
|
|
2090
2107
|
}
|
|
@@ -2098,23 +2115,23 @@ function Er(e, t, n, r, s, o) {
|
|
|
2098
2115
|
}), e.element = /** @type {any} */
|
|
2099
2116
|
i, i;
|
|
2100
2117
|
}
|
|
2101
|
-
function
|
|
2102
|
-
return
|
|
2118
|
+
function H(e, ...t) {
|
|
2119
|
+
return wt(() => {
|
|
2103
2120
|
try {
|
|
2104
2121
|
let n = !1;
|
|
2105
2122
|
const r = [];
|
|
2106
2123
|
for (const s of t)
|
|
2107
|
-
s && typeof s == "object" &&
|
|
2108
|
-
n && (
|
|
2124
|
+
s && typeof s == "object" && ye in s ? (r.push(_o(s, !0)), n = !0) : r.push(s);
|
|
2125
|
+
n && (wo(e), console.log("%c[snapshot]", "color: grey", ...r));
|
|
2109
2126
|
} catch {
|
|
2110
2127
|
}
|
|
2111
2128
|
}), t;
|
|
2112
2129
|
}
|
|
2113
|
-
const
|
|
2130
|
+
const kn = "-pie-editor--", Lr = (...e) => e.reduce((t, n) => {
|
|
2114
2131
|
for (const r in n)
|
|
2115
2132
|
n.hasOwnProperty(r) && n[r] !== null && n[r] !== void 0 && (t[r] = n[r]);
|
|
2116
2133
|
return t;
|
|
2117
|
-
}, {}),
|
|
2134
|
+
}, {}), Ir = {}, ls = "https://builder.pie-api.com", as = Ir.PUBLIC_BUILDER_ORIGIN_URL || ls, cs = Ir.PUBLIC_BUILDER_BUNDLE_URL || `${as}/api/v1/bundles/`, xr = (e) => {
|
|
2118
2135
|
if (!e)
|
|
2119
2136
|
throw new Error("Parameter is required: input");
|
|
2120
2137
|
const t = e.charAt(0) === "@" ? e.match(/^(@[^/]+\/[^/@]+)(?:\/([^@]+))?(?:@([\s\S]+))?/) : e.match(/^([^/@]+)(?:\/([^@]+))?(?:@([\s\S]+))?/);
|
|
@@ -2125,20 +2142,20 @@ const Ln = "-pie-editor--", br = (...e) => e.reduce((t, n) => {
|
|
|
2125
2142
|
path: t[2] || "",
|
|
2126
2143
|
version: t[3] || ""
|
|
2127
2144
|
};
|
|
2128
|
-
},
|
|
2129
|
-
function
|
|
2145
|
+
}, us = (e) => e.split("+").map((t) => xr(t).name).join("+");
|
|
2146
|
+
function fs(e) {
|
|
2130
2147
|
return e && typeof e.pie == "object";
|
|
2131
2148
|
}
|
|
2132
|
-
function
|
|
2149
|
+
function Rn(e) {
|
|
2133
2150
|
return typeof e == "function" && "prototype" in e && e.prototype instanceof HTMLElement;
|
|
2134
2151
|
}
|
|
2135
|
-
function
|
|
2152
|
+
function ds(e) {
|
|
2136
2153
|
return e && typeof e.PIE_REGISTRY == "object";
|
|
2137
2154
|
}
|
|
2138
|
-
const
|
|
2155
|
+
const kr = () => {
|
|
2139
2156
|
let e;
|
|
2140
|
-
return
|
|
2141
|
-
},
|
|
2157
|
+
return ds(window) ? e = window.PIE_REGISTRY : (e = {}, window.PIE_REGISTRY = e), e;
|
|
2158
|
+
}, Rr = (e, t, n) => {
|
|
2142
2159
|
if (!e)
|
|
2143
2160
|
throw new Error("session data is required");
|
|
2144
2161
|
const r = e.find((o) => o.id === t);
|
|
@@ -2146,12 +2163,12 @@ const Sr = () => {
|
|
|
2146
2163
|
return n && !r.element && (r.element = n), r;
|
|
2147
2164
|
const s = n ? { id: t, element: n } : { id: t };
|
|
2148
2165
|
return e.push(s), s;
|
|
2149
|
-
},
|
|
2166
|
+
}, lt = (e, t, n) => {
|
|
2150
2167
|
console.log("[updatePieElements] Updating all elements with env:", n), Object.entries(e.elements).forEach(([r, s]) => {
|
|
2151
|
-
|
|
2168
|
+
Vt(r, { config: e, session: t, env: n });
|
|
2152
2169
|
});
|
|
2153
|
-
},
|
|
2154
|
-
const t =
|
|
2170
|
+
}, on = (e) => {
|
|
2171
|
+
const t = kr();
|
|
2155
2172
|
console.log(`[findPieController] Looking for controller for: ${e}`), console.log("[findPieController] Registry has entries for:", Object.keys(t));
|
|
2156
2173
|
const n = t[e];
|
|
2157
2174
|
if (!n) {
|
|
@@ -2168,12 +2185,12 @@ const Sr = () => {
|
|
|
2168
2185
|
return r ? console.log(`[findPieController] ✅ Controller found for ${e} with functions:`, Object.keys(r)) : (console.error(
|
|
2169
2186
|
`[findPieController] ❌ CRITICAL: Registry entry exists for ${e} but controller is missing!`
|
|
2170
2187
|
), console.error("[findPieController] Entry:", n), console.error("[findPieController] This is a fatal error - PIE elements MUST have controllers")), r;
|
|
2171
|
-
},
|
|
2188
|
+
}, hs = {
|
|
2172
2189
|
invokeControllerForModel: !0,
|
|
2173
2190
|
env: { mode: "gather", role: "student", partialScoring: !1 }
|
|
2174
|
-
},
|
|
2175
|
-
const { config: n, session: r, env: s, eventListeners: o, invokeControllerForModel: i } =
|
|
2176
|
-
|
|
2191
|
+
}, Vt = (e, t) => {
|
|
2192
|
+
const { config: n, session: r, env: s, eventListeners: o, invokeControllerForModel: i } = Lr(
|
|
2193
|
+
hs,
|
|
2177
2194
|
t
|
|
2178
2195
|
);
|
|
2179
2196
|
if (!s)
|
|
@@ -2193,9 +2210,9 @@ const Sr = () => {
|
|
|
2193
2210
|
if (!u)
|
|
2194
2211
|
throw console.error("[updatePieElement] Model not found for", e, t), new Error(`model not found for ${e}`);
|
|
2195
2212
|
console.log(`[updatePieElement] Updating ${e}#${c.id}, env:`, s);
|
|
2196
|
-
const f =
|
|
2213
|
+
const f = Rr(r, u.id, u.element);
|
|
2197
2214
|
if (l.session = f, s && i) {
|
|
2198
|
-
const d =
|
|
2215
|
+
const d = on(e);
|
|
2199
2216
|
if (!d && e === "pie-passage") {
|
|
2200
2217
|
console.log("[updatePieElement] pie-passage has no controller (expected), using direct model assignment"), l.model = u;
|
|
2201
2218
|
return;
|
|
@@ -2207,36 +2224,36 @@ const Sr = () => {
|
|
|
2207
2224
|
role: s.role,
|
|
2208
2225
|
hasCorrectResponse: "correctResponse" in u
|
|
2209
2226
|
});
|
|
2210
|
-
const
|
|
2211
|
-
d.model(u, f, s,
|
|
2212
|
-
const
|
|
2227
|
+
const v = (p, m, w) => (console.log(`[updatePieElement] updateSession called for ${p} with:`, w), Object.assign(f, w), Promise.resolve());
|
|
2228
|
+
d.model(u, f, s, v).then((p) => {
|
|
2229
|
+
const m = {
|
|
2213
2230
|
id: u.id,
|
|
2214
2231
|
element: u.element,
|
|
2215
|
-
...
|
|
2232
|
+
...p
|
|
2216
2233
|
};
|
|
2217
2234
|
console.log(`[updatePieElement] ✅ Model updated for ${e}#${c.id}:`, {
|
|
2218
|
-
id:
|
|
2219
|
-
element:
|
|
2220
|
-
hasCorrectResponse: "correctResponse" in
|
|
2235
|
+
id: m.id,
|
|
2236
|
+
element: m.element,
|
|
2237
|
+
hasCorrectResponse: "correctResponse" in m,
|
|
2221
2238
|
mode: s.mode,
|
|
2222
2239
|
role: s.role
|
|
2223
|
-
}), l.model =
|
|
2224
|
-
}).catch((
|
|
2225
|
-
throw console.error(`[updatePieElement] ❌ Controller error for ${e}#${c.id}:`,
|
|
2240
|
+
}), l.model = m;
|
|
2241
|
+
}).catch((p) => {
|
|
2242
|
+
throw console.error(`[updatePieElement] ❌ Controller error for ${e}#${c.id}:`, p), p;
|
|
2226
2243
|
});
|
|
2227
2244
|
} else
|
|
2228
2245
|
console.log(
|
|
2229
2246
|
`[updatePieElement] Direct model assignment for ${e}#${c.id} (no controller invocation requested)`
|
|
2230
2247
|
), l.model = u;
|
|
2231
|
-
o && Object.entries(o).forEach(([d,
|
|
2232
|
-
l.addEventListener(d,
|
|
2248
|
+
o && Object.entries(o).forEach(([d, v]) => {
|
|
2249
|
+
l.addEventListener(d, v);
|
|
2233
2250
|
});
|
|
2234
2251
|
});
|
|
2235
|
-
},
|
|
2236
|
-
buildServiceBase:
|
|
2252
|
+
}, vs = {
|
|
2253
|
+
buildServiceBase: cs,
|
|
2237
2254
|
bundleType: "client-player.js",
|
|
2238
2255
|
env: { mode: "gather", role: "student" }
|
|
2239
|
-
},
|
|
2256
|
+
}, At = (e, t) => {
|
|
2240
2257
|
const { config: n, session: r, env: s, eventListeners: o } = t, i = e.tagName.toLowerCase();
|
|
2241
2258
|
console.log(`[initializePieElement] Initializing ${i}#${e.id}`);
|
|
2242
2259
|
let a = n?.models?.find((f) => f.id === e.id);
|
|
@@ -2244,9 +2261,9 @@ const Sr = () => {
|
|
|
2244
2261
|
console.warn(`[initializePieElement] Model not found for element ${i}#${e.id}`);
|
|
2245
2262
|
return;
|
|
2246
2263
|
}
|
|
2247
|
-
const c =
|
|
2264
|
+
const c = Rr(r, a.id, a.element);
|
|
2248
2265
|
e.session = c, console.log(`[initializePieElement] Session set for ${i}#${e.id}:`, c);
|
|
2249
|
-
const l =
|
|
2266
|
+
const l = on(i);
|
|
2250
2267
|
if (!l)
|
|
2251
2268
|
throw console.error(`[initializePieElement] ❌ FATAL: No controller found for ${i}`), new Error(
|
|
2252
2269
|
`No controller found for ${i}. PIE elements MUST have controllers. Check bundle loading and registration.`
|
|
@@ -2258,7 +2275,7 @@ const Sr = () => {
|
|
|
2258
2275
|
element: a.element,
|
|
2259
2276
|
hasCorrectResponse: "correctResponse" in a
|
|
2260
2277
|
});
|
|
2261
|
-
const u = (f, d,
|
|
2278
|
+
const u = (f, d, v) => (console.log(`[initializePieElement] updateSession called for ${f} with:`, v), Object.assign(c, v), Promise.resolve());
|
|
2262
2279
|
l.model(a, c, s, u).then((f) => {
|
|
2263
2280
|
const d = {
|
|
2264
2281
|
id: a.id,
|
|
@@ -2277,14 +2294,14 @@ const Sr = () => {
|
|
|
2277
2294
|
}), o && Object.entries(o).forEach(([f, d]) => {
|
|
2278
2295
|
e.addEventListener(f, d);
|
|
2279
2296
|
});
|
|
2280
|
-
},
|
|
2281
|
-
const r =
|
|
2282
|
-
if (
|
|
2297
|
+
}, On = (e, t, n = {}) => {
|
|
2298
|
+
const r = kr(), s = Lr(vs, n);
|
|
2299
|
+
if (fs(window)) {
|
|
2283
2300
|
console.log("[initializePiesFromLoadedBundle] window.pie available");
|
|
2284
2301
|
const o = window.pie.default;
|
|
2285
2302
|
console.log("[initializePiesFromLoadedBundle] Available packages in bundle:", Object.keys(o)), console.log("[initializePiesFromLoadedBundle] config.elements:", e.elements), Object.entries(e.elements).forEach(([i, a]) => {
|
|
2286
2303
|
console.log(`[initializePiesFromLoadedBundle] Processing element: ${i} -> ${a}`);
|
|
2287
|
-
const c =
|
|
2304
|
+
const c = us(a);
|
|
2288
2305
|
console.log(`[initializePiesFromLoadedBundle] Package without version: "${c}"`), console.log(`[initializePiesFromLoadedBundle] Looking up elementModule["${c}"]`), console.log("[initializePiesFromLoadedBundle] Available keys in elementModule:", Object.keys(o)), console.log(
|
|
2289
2306
|
`[initializePiesFromLoadedBundle] Exact match check: "${c}" in elementModule =`,
|
|
2290
2307
|
c in o
|
|
@@ -2311,14 +2328,14 @@ const Sr = () => {
|
|
|
2311
2328
|
`[initializePiesFromLoadedBundle] ❌ CRITICAL: No controller found in elementData for ${c}!`
|
|
2312
2329
|
), console.error("[initializePiesFromLoadedBundle] elementData:", l), new Error(`No controller found for ${c}. PIE elements MUST have controllers!`);
|
|
2313
2330
|
if (customElements.get(i)) {
|
|
2314
|
-
if (
|
|
2331
|
+
if (Vt(i, {
|
|
2315
2332
|
config: e,
|
|
2316
2333
|
session: t,
|
|
2317
2334
|
env: n.env,
|
|
2318
2335
|
...n.eventListeners?.[i] && { eventListeners: n.eventListeners[i] }
|
|
2319
2336
|
}), s.bundleType === "editor.js") {
|
|
2320
|
-
const u = i +
|
|
2321
|
-
|
|
2337
|
+
const u = i + kn;
|
|
2338
|
+
Vt(u, {
|
|
2322
2339
|
config: e,
|
|
2323
2340
|
session: t,
|
|
2324
2341
|
...n.eventListeners?.[u] && {
|
|
@@ -2335,11 +2352,11 @@ const Sr = () => {
|
|
|
2335
2352
|
}, console.log(`[initializePiesFromLoadedBundle] Registry entry for ${i}:`, {
|
|
2336
2353
|
hasController: !!r[i].controller,
|
|
2337
2354
|
controllerFunctions: r[i].controller ? Object.keys(r[i].controller) : []
|
|
2338
|
-
}),
|
|
2355
|
+
}), Rn(l.Element)) {
|
|
2339
2356
|
customElements.define(i, l.Element);
|
|
2340
2357
|
const u = document.querySelectorAll(i);
|
|
2341
2358
|
if (console.log(`Found ${u.length} elements for tag '${i}'`), u.forEach((f) => {
|
|
2342
|
-
|
|
2359
|
+
At(f, {
|
|
2343
2360
|
config: e,
|
|
2344
2361
|
session: t,
|
|
2345
2362
|
env: n.env,
|
|
@@ -2353,17 +2370,17 @@ const Sr = () => {
|
|
|
2353
2370
|
console.debug("defined custom PIE element: %s: %O", i, r[i]);
|
|
2354
2371
|
}), window._pieElementObserver || (window._pieElementObserver = new MutationObserver((f) => {
|
|
2355
2372
|
f.forEach((d) => {
|
|
2356
|
-
d.type === "childList" && d.addedNodes.forEach((
|
|
2357
|
-
if (
|
|
2358
|
-
const
|
|
2359
|
-
r[
|
|
2373
|
+
d.type === "childList" && d.addedNodes.forEach((v) => {
|
|
2374
|
+
if (v.nodeType === Node.ELEMENT_NODE) {
|
|
2375
|
+
const p = v.tagName.toLowerCase();
|
|
2376
|
+
r[p] && At(v, {
|
|
2360
2377
|
config: e,
|
|
2361
2378
|
session: t,
|
|
2362
2379
|
env: n.env,
|
|
2363
|
-
eventListeners: n.eventListeners?.[
|
|
2364
|
-
}),
|
|
2365
|
-
const w =
|
|
2366
|
-
r[w] &&
|
|
2380
|
+
eventListeners: n.eventListeners?.[p]
|
|
2381
|
+
}), v.querySelectorAll("*").forEach((m) => {
|
|
2382
|
+
const w = m.tagName.toLowerCase();
|
|
2383
|
+
r[w] && At(m, {
|
|
2367
2384
|
config: e,
|
|
2368
2385
|
session: t,
|
|
2369
2386
|
env: n.env,
|
|
@@ -2377,8 +2394,8 @@ const Sr = () => {
|
|
|
2377
2394
|
childList: !0,
|
|
2378
2395
|
subtree: !0
|
|
2379
2396
|
})), s.bundleType === "editor.js")
|
|
2380
|
-
if (
|
|
2381
|
-
const f = i +
|
|
2397
|
+
if (Rn(l.Configure)) {
|
|
2398
|
+
const f = i + kn;
|
|
2382
2399
|
customElements.define(f, l.Configure), customElements.whenDefined(f).then(() => {
|
|
2383
2400
|
console.debug(`defined custom PIE editor element: ${f}`);
|
|
2384
2401
|
});
|
|
@@ -2392,7 +2409,7 @@ const Sr = () => {
|
|
|
2392
2409
|
});
|
|
2393
2410
|
} else
|
|
2394
2411
|
console.error("window.pie not found; was the bundle inlined correctly?");
|
|
2395
|
-
},
|
|
2412
|
+
}, Dt = (e) => {
|
|
2396
2413
|
const t = "--version-", n = (c) => {
|
|
2397
2414
|
const l = c.match(`${t}(\\d+-\\d+-\\d+)$`);
|
|
2398
2415
|
return l ? {
|
|
@@ -2400,7 +2417,7 @@ const Sr = () => {
|
|
|
2400
2417
|
existingVersion: l[1].replace(/-/g, ".")
|
|
2401
2418
|
} : { baseName: c };
|
|
2402
2419
|
}, r = (c, l) => {
|
|
2403
|
-
const { baseName: u, existingVersion: f } = n(c), { version: d } =
|
|
2420
|
+
const { baseName: u, existingVersion: f } = n(c), { version: d } = xr(l);
|
|
2404
2421
|
return f !== d ? `${u}${t}${d.replace(/\./g, "-")}` : c;
|
|
2405
2422
|
}, s = Object.entries(e.config.elements).reduce(
|
|
2406
2423
|
(c, [l, u]) => {
|
|
@@ -2432,9 +2449,9 @@ const Sr = () => {
|
|
|
2432
2449
|
};
|
|
2433
2450
|
if (i[l])
|
|
2434
2451
|
return c;
|
|
2435
|
-
const f = Object.entries(s).filter(([d, { versionedName:
|
|
2436
|
-
const { baseName:
|
|
2437
|
-
return
|
|
2452
|
+
const f = Object.entries(s).filter(([d, { versionedName: v }]) => {
|
|
2453
|
+
const { baseName: p } = n(d);
|
|
2454
|
+
return p === l;
|
|
2438
2455
|
});
|
|
2439
2456
|
if (f.length > 0) {
|
|
2440
2457
|
const [, { versionedName: d }] = f[0];
|
|
@@ -2455,10 +2472,10 @@ const Sr = () => {
|
|
|
2455
2472
|
}
|
|
2456
2473
|
};
|
|
2457
2474
|
};
|
|
2458
|
-
|
|
2459
|
-
oe[
|
|
2460
|
-
var
|
|
2461
|
-
const
|
|
2475
|
+
hr();
|
|
2476
|
+
oe[x] = "src/lib/components/PieItemPlayer.svelte";
|
|
2477
|
+
var ps = $e(/* @__PURE__ */ Ee("<div><!></div>"), oe[x], [[227, 2]]), _s = $e(/* @__PURE__ */ Ee("<div><!></div>"), oe[x], [[233, 2]]), gs = $e(/* @__PURE__ */ Ee('<div class="pie-item-player svelte-d1rctr"><!> <!></div>'), oe[x], [[225, 0]]);
|
|
2478
|
+
const ms = {
|
|
2462
2479
|
hash: "svelte-d1rctr",
|
|
2463
2480
|
code: `
|
|
2464
2481
|
.pie-item-player.svelte-d1rctr {
|
|
@@ -2472,55 +2489,55 @@ const _s = {
|
|
|
2472
2489
|
width: 100%;
|
|
2473
2490
|
}
|
|
2474
2491
|
|
|
2475
|
-
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
2492
|
+
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGllSXRlbVBsYXllci5zdmVsdGUiLCJtYXBwaW5ncyI6IjtBQStPQSxDQUFDLDhCQUFnQixDQUFDO0FBQ2xCLEVBQUUsY0FBYztBQUNoQixFQUFFLFdBQVc7QUFDYjs7QUFFQSxDQUFDLG9DQUFzQjtBQUN2QixDQUFDLGlDQUFtQixDQUFDO0FBQ3JCLEVBQUUsY0FBYztBQUNoQixFQUFFLFdBQVc7QUFDYiIsIm5hbWVzIjpbXSwiaWdub3JlTGlzdCI6W10sInNvdXJjZXMiOlsiUGllSXRlbVBsYXllci5zdmVsdGUiXX0= */`
|
|
2476
2493
|
};
|
|
2477
2494
|
function oe(e, t) {
|
|
2478
|
-
|
|
2479
|
-
let n =
|
|
2480
|
-
const
|
|
2481
|
-
|
|
2482
|
-
const
|
|
2483
|
-
detail:
|
|
2495
|
+
Er(new.target), nn(t, !0, oe), Cr(e, ms);
|
|
2496
|
+
let n = I(t, "itemConfig", 7), r = I(t, "passageConfig", 7, null), s = I(t, "env", 23, () => ({ mode: "gather", role: "student" })), o = I(t, "session", 23, () => []), i = I(t, "addCorrectResponse", 7, !1), a = I(t, "customClassname", 7, ""), c = I(t, "passageContainerClass", 7, ""), l = I(t, "containerClass", 7, ""), u = I(t, "onLoadComplete", 7), f = I(t, "onPlayerError", 7), d = I(t, "onSessionChanged", 7), v = U(!1);
|
|
2497
|
+
const p = (_, P) => {
|
|
2498
|
+
B(_, "load-complete") && u() ? u()(P) : B(_, "player-error") && f() ? f()(P) : B(_, "session-changed") && d() && d()(P);
|
|
2499
|
+
const h = new CustomEvent(_, {
|
|
2500
|
+
detail: P,
|
|
2484
2501
|
bubbles: !0,
|
|
2485
2502
|
composed: !0
|
|
2486
2503
|
// Allow events to cross shadow DOM boundaries
|
|
2487
2504
|
});
|
|
2488
|
-
dispatchEvent(
|
|
2505
|
+
dispatchEvent(h);
|
|
2489
2506
|
};
|
|
2490
|
-
async function
|
|
2491
|
-
if (!i() || !n() ||
|
|
2507
|
+
async function m() {
|
|
2508
|
+
if (!i() || !n() || g(v)) return;
|
|
2492
2509
|
console.log("[PieItemPlayer] Populating session with correct responses");
|
|
2493
|
-
const
|
|
2494
|
-
for (const
|
|
2495
|
-
const
|
|
2496
|
-
if (
|
|
2510
|
+
const _ = [];
|
|
2511
|
+
for (const P of n().models) {
|
|
2512
|
+
const h = on(P.element);
|
|
2513
|
+
if (h && h.createCorrectResponseSession)
|
|
2497
2514
|
try {
|
|
2498
|
-
const
|
|
2499
|
-
|
|
2500
|
-
id:
|
|
2501
|
-
element:
|
|
2502
|
-
...
|
|
2515
|
+
const y = await h.createCorrectResponseSession(P, s()), { id: L, ...J } = y;
|
|
2516
|
+
_.push({
|
|
2517
|
+
id: P.id,
|
|
2518
|
+
element: P.element,
|
|
2519
|
+
...J
|
|
2503
2520
|
});
|
|
2504
|
-
} catch (
|
|
2505
|
-
console.warn(...
|
|
2521
|
+
} catch (y) {
|
|
2522
|
+
console.warn(...H("warn", `[PieItemPlayer] Failed to create correct response for ${P.element}:`, y));
|
|
2506
2523
|
}
|
|
2507
2524
|
}
|
|
2508
|
-
o().length = 0, o().push(...
|
|
2525
|
+
o().length = 0, o().push(..._), $(v, !0), console.log(...H("log", "[PieItemPlayer] Correct responses added to session:", o()));
|
|
2509
2526
|
}
|
|
2510
2527
|
const w = ge(() => [
|
|
2511
2528
|
"pie-passage-container",
|
|
2512
2529
|
a(),
|
|
2513
2530
|
c()
|
|
2514
|
-
].filter(Boolean).join(" ")),
|
|
2531
|
+
].filter(Boolean).join(" ")), O = ge(() => [
|
|
2515
2532
|
"pie-item-container",
|
|
2516
2533
|
a(),
|
|
2517
2534
|
l()
|
|
2518
2535
|
].filter(Boolean).join(" "));
|
|
2519
|
-
let
|
|
2520
|
-
|
|
2521
|
-
!n() ||
|
|
2536
|
+
let k = U(!1), M = U(!1), S = U(!1);
|
|
2537
|
+
Ue(() => {
|
|
2538
|
+
!n() || g(k) || (console.log("[PieItemPlayer] Item config received, initializing after DOM renders..."), sr().then(async () => {
|
|
2522
2539
|
try {
|
|
2523
|
-
if (console.log("[PieItemPlayer] DOM ready, initializing PIE elements"), console.log(...
|
|
2540
|
+
if (console.log("[PieItemPlayer] DOM ready, initializing PIE elements"), console.log(...H("log", "[PieItemPlayer] Config:", {
|
|
2524
2541
|
itemElements: Object.keys(n().elements || {}),
|
|
2525
2542
|
itemModels: (n().models || []).length,
|
|
2526
2543
|
passageElements: r() ? Object.keys(r().elements || {}) : [],
|
|
@@ -2528,125 +2545,125 @@ function oe(e, t) {
|
|
|
2528
2545
|
sessionLength: o().length,
|
|
2529
2546
|
addCorrectResponse: i(),
|
|
2530
2547
|
env: s()
|
|
2531
|
-
})),
|
|
2532
|
-
const
|
|
2533
|
-
if (
|
|
2548
|
+
})), On(n(), [], { env: s() }), console.log("[PieItemPlayer] Item bundle initialized and controllers registered"), r() && (On(r(), [], { env: s() }), console.log("[PieItemPlayer] Passage bundle initialized and controllers registered")), await m(), console.log(...H("log", "[PieItemPlayer] Updating elements with session (length=" + o().length + ")")), lt(n(), o(), s()), r() && lt(r(), o(), s()), $(k, !0), !g(M)) {
|
|
2549
|
+
const _ = document.querySelector(".pie-item-player"), P = (h) => {
|
|
2550
|
+
if (g(S))
|
|
2534
2551
|
return;
|
|
2535
|
-
const
|
|
2536
|
-
console.log("[PieItemPlayer] session-changed event received from PIE element"), $(
|
|
2552
|
+
const y = h;
|
|
2553
|
+
console.log("[PieItemPlayer] session-changed event received from PIE element"), $(S, !0);
|
|
2537
2554
|
try {
|
|
2538
|
-
|
|
2555
|
+
p("session-changed", y.detail);
|
|
2539
2556
|
} finally {
|
|
2540
2557
|
setTimeout(
|
|
2541
2558
|
() => {
|
|
2542
|
-
$(
|
|
2559
|
+
$(S, !1);
|
|
2543
2560
|
},
|
|
2544
2561
|
0
|
|
2545
2562
|
);
|
|
2546
2563
|
}
|
|
2547
2564
|
};
|
|
2548
|
-
|
|
2565
|
+
_ && (_.addEventListener("session-changed", P), $(M, !0), console.log("[PieItemPlayer] session-changed listener attached to root element"));
|
|
2549
2566
|
}
|
|
2550
|
-
|
|
2551
|
-
} catch (
|
|
2552
|
-
console.error(...
|
|
2567
|
+
console.log("[PieItemPlayer] ✅ Initialization complete, dispatching load-complete event"), p("load-complete");
|
|
2568
|
+
} catch (_) {
|
|
2569
|
+
console.error(...H("error", "[PieItemPlayer] Error initializing:", _)), p("player-error", _.message);
|
|
2553
2570
|
}
|
|
2554
2571
|
}));
|
|
2555
|
-
}),
|
|
2556
|
-
!
|
|
2572
|
+
}), Ue(() => {
|
|
2573
|
+
!g(k) || !s() || !n() || !o() || (console.log("[PieItemPlayer] Dependencies changed, updating elements"), console.log(...H("log", "[PieItemPlayer] Env:", s())), console.log(...H("log", "[PieItemPlayer] Session (length=" + o().length + "):", o())), lt(n(), o(), s()), r() && lt(r(), o(), s()));
|
|
2557
2574
|
});
|
|
2558
|
-
var
|
|
2575
|
+
var R = gs(), A = te(R);
|
|
2559
2576
|
{
|
|
2560
|
-
var
|
|
2561
|
-
var
|
|
2562
|
-
|
|
2577
|
+
var ie = (_) => {
|
|
2578
|
+
var P = ps(), h = te(P);
|
|
2579
|
+
Ln(h, () => r().markup), ee(P), Xe(() => Ae(P, 1, g(w), "svelte-d1rctr")), ae(_, P);
|
|
2563
2580
|
};
|
|
2564
|
-
|
|
2565
|
-
r()?.markup &&
|
|
2581
|
+
Ze(A, (_) => {
|
|
2582
|
+
r()?.markup && _(ie);
|
|
2566
2583
|
});
|
|
2567
2584
|
}
|
|
2568
|
-
var
|
|
2585
|
+
var be = Qt(A, 2);
|
|
2569
2586
|
{
|
|
2570
|
-
var
|
|
2571
|
-
var
|
|
2572
|
-
|
|
2587
|
+
var xt = (_) => {
|
|
2588
|
+
var P = _s(), h = te(P);
|
|
2589
|
+
Ln(h, () => n().markup), ee(P), Xe(() => Ae(P, 1, g(O), "svelte-d1rctr")), ae(_, P);
|
|
2573
2590
|
};
|
|
2574
|
-
|
|
2575
|
-
n()?.markup &&
|
|
2591
|
+
Ze(be, (_) => {
|
|
2592
|
+
n()?.markup && _(xt);
|
|
2576
2593
|
});
|
|
2577
2594
|
}
|
|
2578
|
-
return
|
|
2595
|
+
return ee(R), ae(e, R), rn({
|
|
2579
2596
|
get itemConfig() {
|
|
2580
2597
|
return n();
|
|
2581
2598
|
},
|
|
2582
|
-
set itemConfig(
|
|
2583
|
-
n(
|
|
2599
|
+
set itemConfig(_) {
|
|
2600
|
+
n(_), b();
|
|
2584
2601
|
},
|
|
2585
2602
|
get passageConfig() {
|
|
2586
2603
|
return r();
|
|
2587
2604
|
},
|
|
2588
|
-
set passageConfig(
|
|
2589
|
-
r(
|
|
2605
|
+
set passageConfig(_ = null) {
|
|
2606
|
+
r(_), b();
|
|
2590
2607
|
},
|
|
2591
2608
|
get env() {
|
|
2592
2609
|
return s();
|
|
2593
2610
|
},
|
|
2594
|
-
set env(
|
|
2595
|
-
s(
|
|
2611
|
+
set env(_ = { mode: "gather", role: "student" }) {
|
|
2612
|
+
s(_), b();
|
|
2596
2613
|
},
|
|
2597
2614
|
get session() {
|
|
2598
2615
|
return o();
|
|
2599
2616
|
},
|
|
2600
|
-
set session(
|
|
2601
|
-
o(
|
|
2617
|
+
set session(_ = []) {
|
|
2618
|
+
o(_), b();
|
|
2602
2619
|
},
|
|
2603
2620
|
get addCorrectResponse() {
|
|
2604
2621
|
return i();
|
|
2605
2622
|
},
|
|
2606
|
-
set addCorrectResponse(
|
|
2607
|
-
i(
|
|
2623
|
+
set addCorrectResponse(_ = !1) {
|
|
2624
|
+
i(_), b();
|
|
2608
2625
|
},
|
|
2609
2626
|
get customClassname() {
|
|
2610
2627
|
return a();
|
|
2611
2628
|
},
|
|
2612
|
-
set customClassname(
|
|
2613
|
-
a(
|
|
2629
|
+
set customClassname(_ = "") {
|
|
2630
|
+
a(_), b();
|
|
2614
2631
|
},
|
|
2615
2632
|
get passageContainerClass() {
|
|
2616
2633
|
return c();
|
|
2617
2634
|
},
|
|
2618
|
-
set passageContainerClass(
|
|
2619
|
-
c(
|
|
2635
|
+
set passageContainerClass(_ = "") {
|
|
2636
|
+
c(_), b();
|
|
2620
2637
|
},
|
|
2621
2638
|
get containerClass() {
|
|
2622
2639
|
return l();
|
|
2623
2640
|
},
|
|
2624
|
-
set containerClass(
|
|
2625
|
-
l(
|
|
2641
|
+
set containerClass(_ = "") {
|
|
2642
|
+
l(_), b();
|
|
2626
2643
|
},
|
|
2627
2644
|
get onLoadComplete() {
|
|
2628
2645
|
return u();
|
|
2629
2646
|
},
|
|
2630
|
-
set onLoadComplete(
|
|
2631
|
-
u(
|
|
2647
|
+
set onLoadComplete(_) {
|
|
2648
|
+
u(_), b();
|
|
2632
2649
|
},
|
|
2633
2650
|
get onPlayerError() {
|
|
2634
2651
|
return f();
|
|
2635
2652
|
},
|
|
2636
|
-
set onPlayerError(
|
|
2637
|
-
f(
|
|
2653
|
+
set onPlayerError(_) {
|
|
2654
|
+
f(_), b();
|
|
2638
2655
|
},
|
|
2639
2656
|
get onSessionChanged() {
|
|
2640
2657
|
return d();
|
|
2641
2658
|
},
|
|
2642
|
-
set onSessionChanged(
|
|
2643
|
-
d(
|
|
2659
|
+
set onSessionChanged(_) {
|
|
2660
|
+
d(_), b();
|
|
2644
2661
|
},
|
|
2645
|
-
...
|
|
2662
|
+
...br()
|
|
2646
2663
|
});
|
|
2647
2664
|
}
|
|
2648
|
-
|
|
2649
|
-
|
|
2665
|
+
vr(oe);
|
|
2666
|
+
Sr(
|
|
2650
2667
|
oe,
|
|
2651
2668
|
{
|
|
2652
2669
|
itemConfig: {},
|
|
@@ -2665,13 +2682,13 @@ Er(
|
|
|
2665
2682
|
[],
|
|
2666
2683
|
!0
|
|
2667
2684
|
);
|
|
2668
|
-
const
|
|
2685
|
+
const Fn = {
|
|
2669
2686
|
trackPageActions: !1
|
|
2670
2687
|
};
|
|
2671
|
-
|
|
2672
|
-
ve[
|
|
2673
|
-
var
|
|
2674
|
-
/* @__PURE__ */
|
|
2688
|
+
hr();
|
|
2689
|
+
ve[x] = "src/lib/tags/pie-fixed-player/PieFixedPlayer.svelte";
|
|
2690
|
+
var ys = $e(
|
|
2691
|
+
/* @__PURE__ */ Ee(`<div class="pie-player-error" style="
|
|
2675
2692
|
padding: 20px;
|
|
2676
2693
|
margin: 20px;
|
|
2677
2694
|
border: 2px solid #d32f2f;
|
|
@@ -2680,10 +2697,10 @@ var gs = ye(
|
|
|
2680
2697
|
color: #c62828;
|
|
2681
2698
|
font-family: sans-serif;
|
|
2682
2699
|
"><h3 style="margin: 0 0 10px 0">⚠️ Configuration Error</h3> <p style="margin: 0"> </p></div>`),
|
|
2683
|
-
ve[
|
|
2684
|
-
[[
|
|
2685
|
-
),
|
|
2686
|
-
const
|
|
2700
|
+
ve[x],
|
|
2701
|
+
[[294, 2, [[303, 3], [304, 3]]]]
|
|
2702
|
+
), ws = $e(/* @__PURE__ */ Ee('<div class="pie-loading" style="padding: 20px; text-align: center;"><p>Loading...</p></div>'), ve[x], [[307, 2, [[308, 3]]]]), $s = $e(/* @__PURE__ */ Ee('<div class="pie-stimulus-container" style="display: flex; gap: 20px; width: 100%;"><div style="flex: 1; min-width: 0;"><!></div> <div style="flex: 1; min-width: 0;"><!></div></div>'), ve[x], [[313, 2, [[314, 3], [329, 3]]]]), Es = $e(/* @__PURE__ */ Ee("<div><!></div>"), ve[x], [[347, 2]]), bs = $e(/* @__PURE__ */ Ee("<div><!></div>"), ve[x], [[292, 0]]);
|
|
2703
|
+
const Cs = {
|
|
2687
2704
|
hash: "svelte-1ol77e0",
|
|
2688
2705
|
code: `
|
|
2689
2706
|
:host {
|
|
@@ -2699,32 +2716,33 @@ const $s = {
|
|
|
2699
2716
|
width: 100%;
|
|
2700
2717
|
}
|
|
2701
2718
|
|
|
2702
|
-
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
2719
|
+
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGllRml4ZWRQbGF5ZXIuc3ZlbHRlIiwibWFwcGluZ3MiOiI7QUFnWEEsQ0FBQyxLQUFLLENBQUM7QUFDUCxFQUFFLGNBQWM7QUFDaEI7QUFDQTtBQUNBLENBQVMsaUJBQWtCLENBQUM7QUFDNUIsRUFBRSxXQUFXO0FBQ2I7QUFDQTtBQUNBLENBQVMsc0JBQXVCO0FBQ2hDLENBQVMsMEJBQTJCLENBQUM7QUFDckMsRUFBRSxXQUFXO0FBQ2IiLCJuYW1lcyI6W10sImlnbm9yZUxpc3QiOltdLCJzb3VyY2VzIjpbIlBpZUZpeGVkUGxheWVyLnN2ZWx0ZSJdfQ== */`
|
|
2703
2720
|
};
|
|
2704
2721
|
function ve(e, t) {
|
|
2705
|
-
|
|
2706
|
-
let n =
|
|
2707
|
-
const
|
|
2708
|
-
let
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2722
|
+
Er(new.target), nn(t, !0, ve), Cr(e, Cs);
|
|
2723
|
+
let n = I(t, "config", 7, null), r = I(t, "session", 23, () => ({ id: "", data: [] })), s = I(t, "env", 23, () => ({ mode: "gather", role: "student" })), o = I(t, "addCorrectResponse", 7, !1), i = I(t, "renderStimulus", 7, !0), a = I(t, "allowedResize", 7, !1), c = I(t, "showBottomBorder", 7, !1), l = I(t, "customClassname", 7, ""), u = I(t, "containerClass", 7, ""), f = I(t, "passageContainerClass", 7, ""), d = I(t, "externalStyleUrls", 7, ""), v = I(t, "loaderConfig", 7, Fn);
|
|
2724
|
+
const p = B(typeof window, "undefined", !1) && B(typeof document, "undefined", !1);
|
|
2725
|
+
let m = U(!0), w = U(null), O = U(null), k = U(null);
|
|
2726
|
+
U(!1);
|
|
2727
|
+
let M = U(null);
|
|
2728
|
+
const S = l() || `pie-player-${Date.now().toString(36)}`;
|
|
2729
|
+
Ue(() => {
|
|
2712
2730
|
if (n()) {
|
|
2713
2731
|
performance.mark("pie-load-end");
|
|
2714
2732
|
try {
|
|
2715
|
-
const
|
|
2716
|
-
if (
|
|
2717
|
-
const
|
|
2718
|
-
$(
|
|
2719
|
-
} else if (
|
|
2720
|
-
const
|
|
2721
|
-
$(
|
|
2733
|
+
const h = B(typeof n(), "string") ? JSON.parse(n()) : n();
|
|
2734
|
+
if (h.pie && h.passage) {
|
|
2735
|
+
const y = Dt({ config: h.pie }), L = Dt({ config: h.passage });
|
|
2736
|
+
$(O, y.config, !0), $(k, i() ? L.config : null, !0), $(m, !1), $(w, null);
|
|
2737
|
+
} else if (h.elements || h.models || h.markup) {
|
|
2738
|
+
const y = Dt({ config: h });
|
|
2739
|
+
$(O, y.config, !0), $(k, null), $(m, !1), $(w, null);
|
|
2722
2740
|
} else {
|
|
2723
|
-
const
|
|
2724
|
-
if ($(w,
|
|
2741
|
+
const y = "Invalid config: must contain elements, models, and markup, or pie/passage structure";
|
|
2742
|
+
if ($(w, y), $(m, !1), p && v()?.trackPageActions)
|
|
2725
2743
|
try {
|
|
2726
|
-
const
|
|
2727
|
-
|
|
2744
|
+
const L = window?.newrelic;
|
|
2745
|
+
L && B(typeof L.noticeError, "function") && L.noticeError(new Error(y), {
|
|
2728
2746
|
component: "pie-fixed-player",
|
|
2729
2747
|
errorType: "InvalidConfig"
|
|
2730
2748
|
});
|
|
@@ -2732,12 +2750,12 @@ function ve(e, t) {
|
|
|
2732
2750
|
console.debug("[pie-fixed-player] New Relic tracking skipped");
|
|
2733
2751
|
}
|
|
2734
2752
|
}
|
|
2735
|
-
} catch (
|
|
2736
|
-
const
|
|
2737
|
-
if ($(w,
|
|
2753
|
+
} catch (h) {
|
|
2754
|
+
const y = `Error parsing config: ${h.message}`;
|
|
2755
|
+
if ($(w, y), $(m, !1), p && v()?.trackPageActions)
|
|
2738
2756
|
try {
|
|
2739
|
-
const
|
|
2740
|
-
|
|
2757
|
+
const L = window?.newrelic;
|
|
2758
|
+
L && B(typeof L.noticeError, "function") && L.noticeError(h, {
|
|
2741
2759
|
component: "pie-fixed-player",
|
|
2742
2760
|
errorType: "ConfigParseError"
|
|
2743
2761
|
});
|
|
@@ -2746,240 +2764,240 @@ function ve(e, t) {
|
|
|
2746
2764
|
}
|
|
2747
2765
|
}
|
|
2748
2766
|
} else
|
|
2749
|
-
$(
|
|
2767
|
+
$(O, null), $(k, null), $(m, !0);
|
|
2750
2768
|
});
|
|
2751
|
-
const R = async (
|
|
2752
|
-
if (!(!
|
|
2753
|
-
if (document.querySelector(`style[data-pie-style="${
|
|
2754
|
-
console.log(...
|
|
2769
|
+
const R = async (h) => {
|
|
2770
|
+
if (!(!p || !h || B(typeof h, "string", !1))) {
|
|
2771
|
+
if (document.querySelector(`style[data-pie-style="${h}"]`)) {
|
|
2772
|
+
console.log(...H("log", `[pie-fixed-player] Stylesheet already loaded: ${h}`));
|
|
2755
2773
|
return;
|
|
2756
2774
|
}
|
|
2757
2775
|
try {
|
|
2758
|
-
const
|
|
2759
|
-
|
|
2760
|
-
} catch (
|
|
2761
|
-
console.error(...
|
|
2776
|
+
const J = (await (await fetch(h)).text()).replace(/([^\r\n,{}]+)(,(?=[^}]*{)|\s*{)/g, `.pie-fixed-player.${S} $1$2`), K = document.createElement("style");
|
|
2777
|
+
K.setAttribute("data-pie-style", h), K.textContent = J, document.head.appendChild(K), console.log(...H("log", `[pie-fixed-player] Loaded and scoped stylesheet: ${h}`));
|
|
2778
|
+
} catch (y) {
|
|
2779
|
+
console.error(...H("error", `[pie-fixed-player] Failed to load external stylesheet: ${h}`, y));
|
|
2762
2780
|
}
|
|
2763
2781
|
}
|
|
2764
2782
|
};
|
|
2765
|
-
|
|
2766
|
-
d() &&
|
|
2767
|
-
|
|
2783
|
+
Ue(() => {
|
|
2784
|
+
d() && B(typeof d(), "string") && d().split(",").map((y) => y.trim()).forEach((y) => {
|
|
2785
|
+
y && R(y);
|
|
2768
2786
|
});
|
|
2769
|
-
}),
|
|
2770
|
-
if (!
|
|
2771
|
-
const
|
|
2772
|
-
Array.isArray(
|
|
2773
|
-
const
|
|
2774
|
-
|
|
2787
|
+
}), Ue(() => {
|
|
2788
|
+
if (!g(O)?.resources?.stylesheets) return;
|
|
2789
|
+
const h = g(O).resources.stylesheets;
|
|
2790
|
+
Array.isArray(h) && h.forEach((y) => {
|
|
2791
|
+
const L = y?.url;
|
|
2792
|
+
L && B(typeof L, "string") && R(L);
|
|
2775
2793
|
});
|
|
2776
|
-
}),
|
|
2777
|
-
c() &&
|
|
2778
|
-
Object.keys(
|
|
2779
|
-
document.querySelectorAll(
|
|
2780
|
-
|
|
2794
|
+
}), Ue(() => {
|
|
2795
|
+
c() && B(s().mode, "evaluate") && g(O)?.elements && sr().then(() => {
|
|
2796
|
+
Object.keys(g(O).elements).forEach((y) => {
|
|
2797
|
+
document.querySelectorAll(y).forEach((J) => {
|
|
2798
|
+
J instanceof HTMLElement && (J.style.borderBottom = "1px solid #ddd", J.style.paddingBottom = "20px", J.style.marginBottom = "20px");
|
|
2781
2799
|
});
|
|
2782
2800
|
});
|
|
2783
2801
|
});
|
|
2784
2802
|
});
|
|
2785
|
-
const
|
|
2786
|
-
const
|
|
2787
|
-
detail:
|
|
2803
|
+
const A = (h) => {
|
|
2804
|
+
const y = new CustomEvent(h.type, {
|
|
2805
|
+
detail: h.detail,
|
|
2788
2806
|
bubbles: !0,
|
|
2789
2807
|
composed: !0
|
|
2790
2808
|
});
|
|
2791
|
-
dispatchEvent(
|
|
2792
|
-
},
|
|
2793
|
-
|
|
2809
|
+
g(M)?.parentElement ? (g(M).parentElement.dispatchEvent(y), console.log(...H("log", `[pie-fixed-player] Dispatched ${h.type} event from custom element host`))) : console.warn("[pie-fixed-player] Cannot dispatch event: custom element host not found");
|
|
2810
|
+
}, ie = (h) => {
|
|
2811
|
+
A(h);
|
|
2794
2812
|
};
|
|
2795
|
-
var
|
|
2796
|
-
|
|
2797
|
-
var
|
|
2813
|
+
var be = bs();
|
|
2814
|
+
Ae(be, 1, `pie-fixed-player ${S ?? ""}`);
|
|
2815
|
+
var xt = te(be);
|
|
2798
2816
|
{
|
|
2799
|
-
var
|
|
2800
|
-
var
|
|
2801
|
-
|
|
2802
|
-
},
|
|
2817
|
+
var _ = (h) => {
|
|
2818
|
+
var y = ys(), L = Qt(te(y), 2), J = te(L, !0);
|
|
2819
|
+
ee(L), ee(y), Xe(() => Ho(J, g(w))), ae(h, y);
|
|
2820
|
+
}, P = (h, y) => {
|
|
2803
2821
|
{
|
|
2804
|
-
var
|
|
2805
|
-
var
|
|
2806
|
-
|
|
2807
|
-
},
|
|
2822
|
+
var L = (K) => {
|
|
2823
|
+
var kt = ws();
|
|
2824
|
+
ae(K, kt);
|
|
2825
|
+
}, J = (K, kt) => {
|
|
2808
2826
|
{
|
|
2809
|
-
var
|
|
2810
|
-
var
|
|
2811
|
-
const
|
|
2812
|
-
oe(
|
|
2827
|
+
var Or = (Oe) => {
|
|
2828
|
+
var pe = $s(), Fe = te(pe), Rt = te(Fe);
|
|
2829
|
+
const Ot = ge(() => B(typeof s(), "string") ? JSON.parse(s()) : s()), _e = ge(() => (B(typeof r(), "string") ? JSON.parse(r()) : r()).data || []);
|
|
2830
|
+
oe(Rt, {
|
|
2813
2831
|
get itemConfig() {
|
|
2814
|
-
return
|
|
2832
|
+
return g(k);
|
|
2815
2833
|
},
|
|
2816
2834
|
get env() {
|
|
2817
|
-
return
|
|
2835
|
+
return g(Ot);
|
|
2818
2836
|
},
|
|
2819
2837
|
get session() {
|
|
2820
|
-
return
|
|
2838
|
+
return g(_e);
|
|
2821
2839
|
},
|
|
2822
2840
|
get addCorrectResponse() {
|
|
2823
2841
|
return o();
|
|
2824
2842
|
},
|
|
2825
|
-
customClassname:
|
|
2826
|
-
onLoadComplete: (
|
|
2827
|
-
onPlayerError: (
|
|
2828
|
-
onSessionChanged: (
|
|
2829
|
-
}),
|
|
2830
|
-
var
|
|
2831
|
-
const
|
|
2832
|
-
oe(
|
|
2843
|
+
customClassname: S,
|
|
2844
|
+
onLoadComplete: (q) => A(new CustomEvent("load-complete", { detail: q })),
|
|
2845
|
+
onPlayerError: (q) => A(new CustomEvent("player-error", { detail: q })),
|
|
2846
|
+
onSessionChanged: (q) => ie(new CustomEvent("session-changed", { detail: q }))
|
|
2847
|
+
}), ee(Fe);
|
|
2848
|
+
var Ft = Qt(Fe, 2), Tr = te(Ft);
|
|
2849
|
+
const Br = ge(() => B(typeof s(), "string") ? JSON.parse(s()) : s()), Ur = ge(() => (B(typeof r(), "string") ? JSON.parse(r()) : r()).data || []);
|
|
2850
|
+
oe(Tr, {
|
|
2833
2851
|
get itemConfig() {
|
|
2834
|
-
return
|
|
2852
|
+
return g(O);
|
|
2835
2853
|
},
|
|
2836
2854
|
get env() {
|
|
2837
|
-
return
|
|
2855
|
+
return g(Br);
|
|
2838
2856
|
},
|
|
2839
2857
|
get session() {
|
|
2840
|
-
return
|
|
2858
|
+
return g(Ur);
|
|
2841
2859
|
},
|
|
2842
2860
|
get addCorrectResponse() {
|
|
2843
2861
|
return o();
|
|
2844
2862
|
},
|
|
2845
|
-
customClassname:
|
|
2846
|
-
onLoadComplete: (
|
|
2847
|
-
onPlayerError: (
|
|
2848
|
-
onSessionChanged: (
|
|
2849
|
-
}),
|
|
2850
|
-
|
|
2851
|
-
}),
|
|
2852
|
-
},
|
|
2853
|
-
var
|
|
2854
|
-
const
|
|
2855
|
-
oe(
|
|
2863
|
+
customClassname: S,
|
|
2864
|
+
onLoadComplete: (q) => A(new CustomEvent("load-complete", { detail: q })),
|
|
2865
|
+
onPlayerError: (q) => A(new CustomEvent("player-error", { detail: q })),
|
|
2866
|
+
onSessionChanged: (q) => ie(new CustomEvent("session-changed", { detail: q }))
|
|
2867
|
+
}), ee(Ft), ee(pe), Xe(() => {
|
|
2868
|
+
Ae(Fe, 1, `player-stimulus-container ${f() ?? ""}`), Ae(Ft, 1, `player-item-container ${u() ?? ""}`);
|
|
2869
|
+
}), ae(Oe, pe);
|
|
2870
|
+
}, Fr = (Oe) => {
|
|
2871
|
+
var pe = Es(), Fe = te(pe);
|
|
2872
|
+
const Rt = ge(() => B(typeof s(), "string") ? JSON.parse(s()) : s()), Ot = ge(() => (B(typeof r(), "string") ? JSON.parse(r()) : r()).data || []);
|
|
2873
|
+
oe(Fe, {
|
|
2856
2874
|
get itemConfig() {
|
|
2857
|
-
return
|
|
2875
|
+
return g(O);
|
|
2858
2876
|
},
|
|
2859
2877
|
get passageConfig() {
|
|
2860
|
-
return
|
|
2878
|
+
return g(k);
|
|
2861
2879
|
},
|
|
2862
2880
|
get env() {
|
|
2863
|
-
return
|
|
2881
|
+
return g(Rt);
|
|
2864
2882
|
},
|
|
2865
2883
|
get session() {
|
|
2866
|
-
return
|
|
2884
|
+
return g(Ot);
|
|
2867
2885
|
},
|
|
2868
2886
|
get addCorrectResponse() {
|
|
2869
2887
|
return o();
|
|
2870
2888
|
},
|
|
2871
|
-
customClassname:
|
|
2889
|
+
customClassname: S,
|
|
2872
2890
|
get passageContainerClass() {
|
|
2873
2891
|
return f();
|
|
2874
2892
|
},
|
|
2875
2893
|
get containerClass() {
|
|
2876
2894
|
return u();
|
|
2877
2895
|
},
|
|
2878
|
-
onLoadComplete: (_e) =>
|
|
2879
|
-
onPlayerError: (_e) =>
|
|
2880
|
-
onSessionChanged: (_e) =>
|
|
2881
|
-
}),
|
|
2896
|
+
onLoadComplete: (_e) => A(new CustomEvent("load-complete", { detail: _e })),
|
|
2897
|
+
onPlayerError: (_e) => A(new CustomEvent("player-error", { detail: _e })),
|
|
2898
|
+
onSessionChanged: (_e) => ie(new CustomEvent("session-changed", { detail: _e }))
|
|
2899
|
+
}), ee(pe), Xe(() => Ae(pe, 1, `player-item-container ${u() ?? ""}`)), ae(Oe, pe);
|
|
2882
2900
|
};
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
(
|
|
2886
|
-
|
|
2901
|
+
Ze(
|
|
2902
|
+
K,
|
|
2903
|
+
(Oe) => {
|
|
2904
|
+
g(k) && i() ? Oe(Or) : Oe(Fr, !1);
|
|
2887
2905
|
},
|
|
2888
|
-
|
|
2906
|
+
kt
|
|
2889
2907
|
);
|
|
2890
2908
|
}
|
|
2891
2909
|
};
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
(
|
|
2895
|
-
|
|
2910
|
+
Ze(
|
|
2911
|
+
h,
|
|
2912
|
+
(K) => {
|
|
2913
|
+
g(m) || !g(O) ? K(L) : K(J, !1);
|
|
2896
2914
|
},
|
|
2897
|
-
|
|
2915
|
+
y
|
|
2898
2916
|
);
|
|
2899
2917
|
}
|
|
2900
2918
|
};
|
|
2901
|
-
|
|
2902
|
-
|
|
2919
|
+
Ze(xt, (h) => {
|
|
2920
|
+
g(w) ? h(_) : h(P, !1);
|
|
2903
2921
|
});
|
|
2904
2922
|
}
|
|
2905
|
-
return
|
|
2923
|
+
return ee(be), ns(be, (h) => $(M, h), () => g(M)), ae(e, be), rn({
|
|
2906
2924
|
get config() {
|
|
2907
2925
|
return n();
|
|
2908
2926
|
},
|
|
2909
|
-
set config(
|
|
2910
|
-
n(
|
|
2927
|
+
set config(h = null) {
|
|
2928
|
+
n(h), b();
|
|
2911
2929
|
},
|
|
2912
2930
|
get session() {
|
|
2913
2931
|
return r();
|
|
2914
2932
|
},
|
|
2915
|
-
set session(
|
|
2916
|
-
r(
|
|
2933
|
+
set session(h = { id: "", data: [] }) {
|
|
2934
|
+
r(h), b();
|
|
2917
2935
|
},
|
|
2918
2936
|
get env() {
|
|
2919
2937
|
return s();
|
|
2920
2938
|
},
|
|
2921
|
-
set env(
|
|
2922
|
-
s(
|
|
2939
|
+
set env(h = { mode: "gather", role: "student" }) {
|
|
2940
|
+
s(h), b();
|
|
2923
2941
|
},
|
|
2924
2942
|
get addCorrectResponse() {
|
|
2925
2943
|
return o();
|
|
2926
2944
|
},
|
|
2927
|
-
set addCorrectResponse(
|
|
2928
|
-
o(
|
|
2945
|
+
set addCorrectResponse(h = !1) {
|
|
2946
|
+
o(h), b();
|
|
2929
2947
|
},
|
|
2930
2948
|
get renderStimulus() {
|
|
2931
2949
|
return i();
|
|
2932
2950
|
},
|
|
2933
|
-
set renderStimulus(
|
|
2934
|
-
i(
|
|
2951
|
+
set renderStimulus(h = !0) {
|
|
2952
|
+
i(h), b();
|
|
2935
2953
|
},
|
|
2936
2954
|
get allowedResize() {
|
|
2937
2955
|
return a();
|
|
2938
2956
|
},
|
|
2939
|
-
set allowedResize(
|
|
2940
|
-
a(
|
|
2957
|
+
set allowedResize(h = !1) {
|
|
2958
|
+
a(h), b();
|
|
2941
2959
|
},
|
|
2942
2960
|
get showBottomBorder() {
|
|
2943
2961
|
return c();
|
|
2944
2962
|
},
|
|
2945
|
-
set showBottomBorder(
|
|
2946
|
-
c(
|
|
2963
|
+
set showBottomBorder(h = !1) {
|
|
2964
|
+
c(h), b();
|
|
2947
2965
|
},
|
|
2948
2966
|
get customClassname() {
|
|
2949
2967
|
return l();
|
|
2950
2968
|
},
|
|
2951
|
-
set customClassname(
|
|
2952
|
-
l(
|
|
2969
|
+
set customClassname(h = "") {
|
|
2970
|
+
l(h), b();
|
|
2953
2971
|
},
|
|
2954
2972
|
get containerClass() {
|
|
2955
2973
|
return u();
|
|
2956
2974
|
},
|
|
2957
|
-
set containerClass(
|
|
2958
|
-
u(
|
|
2975
|
+
set containerClass(h = "") {
|
|
2976
|
+
u(h), b();
|
|
2959
2977
|
},
|
|
2960
2978
|
get passageContainerClass() {
|
|
2961
2979
|
return f();
|
|
2962
2980
|
},
|
|
2963
|
-
set passageContainerClass(
|
|
2964
|
-
f(
|
|
2981
|
+
set passageContainerClass(h = "") {
|
|
2982
|
+
f(h), b();
|
|
2965
2983
|
},
|
|
2966
2984
|
get externalStyleUrls() {
|
|
2967
2985
|
return d();
|
|
2968
2986
|
},
|
|
2969
|
-
set externalStyleUrls(
|
|
2970
|
-
d(
|
|
2987
|
+
set externalStyleUrls(h = "") {
|
|
2988
|
+
d(h), b();
|
|
2971
2989
|
},
|
|
2972
2990
|
get loaderConfig() {
|
|
2973
|
-
return
|
|
2991
|
+
return v();
|
|
2974
2992
|
},
|
|
2975
|
-
set loaderConfig(
|
|
2976
|
-
h
|
|
2993
|
+
set loaderConfig(h = Fn) {
|
|
2994
|
+
v(h), b();
|
|
2977
2995
|
},
|
|
2978
|
-
...
|
|
2996
|
+
...br()
|
|
2979
2997
|
});
|
|
2980
2998
|
}
|
|
2981
|
-
|
|
2982
|
-
customElements.define("pie-fixed-player",
|
|
2999
|
+
vr(ve);
|
|
3000
|
+
customElements.define("pie-fixed-player", Sr(
|
|
2983
3001
|
ve,
|
|
2984
3002
|
{
|
|
2985
3003
|
config: { attribute: "config", type: "Object" },
|