@pie-framework/pie-fixed-player-static 1.0.0-351df72.6 → 1.0.0-351df72.8
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-elements-bundle-351df72.js +98 -98
- package/dist/pie-fixed-player.js +1318 -1269
- package/package.json +3 -3
package/dist/pie-fixed-player.js
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var Mr = Object.defineProperty;
|
|
2
|
+
var un = (e) => {
|
|
3
3
|
throw TypeError(e);
|
|
4
4
|
};
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
const
|
|
9
|
-
var
|
|
10
|
-
typeof window < "u" && ((
|
|
11
|
-
const
|
|
12
|
-
var
|
|
13
|
-
function
|
|
5
|
+
var zr = (e, t, n) => t in e ? Mr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
6
|
+
var K = (e, t, n) => zr(e, typeof t != "symbol" ? t + "" : t, n), fn = (e, t, n) => t.has(e) || un("Cannot " + n);
|
|
7
|
+
var Q = (e, t, n) => (fn(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Dt = (e, t, n) => t.has(e) ? un("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), At = (e, t, n, r) => (fn(e, t, "write to private field"), r ? r.call(e, n) : t.set(e, n), n);
|
|
8
|
+
const qr = "5";
|
|
9
|
+
var An;
|
|
10
|
+
typeof window < "u" && ((An = window.__svelte ?? (window.__svelte = {})).v ?? (An.v = /* @__PURE__ */ new Set())).add(qr);
|
|
11
|
+
const Vr = 1, Jr = 4, Yr = 8, Wr = 16, Gr = 2, Ct = "[", Xt = "[!", Ht = "]", Ne = {}, M = Symbol(), R = Symbol("filename"), dn = !0, ae = 2, Nn = 4, Pt = 8, Zt = 16, he = 32, Ie = 64, vt = 128, Z = 256, ht = 512, q = 1024, pe = 2048, Re = 4096, Qe = 8192, St = 16384, Xr = 32768, Kt = 65536, jn = 1 << 18, Hr = 1 << 19, Qn = 1 << 20, Mt = 1 << 21, we = Symbol("$state"), Ye = Symbol("$state metadata"), Mn = Symbol("legacy props");
|
|
12
|
+
var en = Array.isArray, Zr = Array.prototype.indexOf, Kr = Array.from, pt = Object.keys, ie = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, zn = Object.prototype, es = Array.prototype, qn = Object.getPrototypeOf, vn = Object.isExtensible;
|
|
13
|
+
function Vn(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 tt = [], zt = [];
|
|
18
|
+
function Jn() {
|
|
19
|
+
var e = tt;
|
|
20
|
+
tt = [], Vn(e);
|
|
21
21
|
}
|
|
22
|
-
function
|
|
23
|
-
var e =
|
|
24
|
-
|
|
22
|
+
function ts() {
|
|
23
|
+
var e = zt;
|
|
24
|
+
zt = [], Vn(e);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
|
|
26
|
+
function Yn(e) {
|
|
27
|
+
tt.length === 0 && queueMicrotask(Jn), tt.push(e);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
30
|
-
|
|
29
|
+
function hn() {
|
|
30
|
+
tt.length > 0 && Jn(), zt.length > 0 && ts();
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Wn(e) {
|
|
33
33
|
return e === this.v;
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function ns(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 Gn(e) {
|
|
39
|
+
return !ns(e, this.v);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function rs(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 ss(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 os() {
|
|
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 is(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 ls() {
|
|
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 as(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 cs() {
|
|
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 us() {
|
|
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 fs(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 ds(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 vs() {
|
|
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 hs() {
|
|
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 ps() {
|
|
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 gs = !1;
|
|
138
|
+
var _s = "font-weight: bold", ms = "font-weight: normal";
|
|
139
|
+
function pn(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`, _s, ms);
|
|
145
145
|
}
|
|
146
|
-
const
|
|
147
|
-
function
|
|
146
|
+
const ys = [];
|
|
147
|
+
function ws(e, t = !1) {
|
|
148
148
|
if (!t) {
|
|
149
|
-
const n = [], r =
|
|
149
|
+
const n = [], r = Ge(e, /* @__PURE__ */ new Map(), "", n);
|
|
150
150
|
if (n.length === 1 && n[0] === "")
|
|
151
|
-
|
|
151
|
+
pn();
|
|
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`), pn(i);
|
|
158
158
|
}
|
|
159
159
|
return r;
|
|
160
160
|
}
|
|
161
|
-
return
|
|
161
|
+
return Ge(e, /* @__PURE__ */ new Map(), "", ys);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function Ge(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 (en(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] = Ge(c, t, `${n}[${a}]`, r));
|
|
184
184
|
}
|
|
185
185
|
return i;
|
|
186
186
|
}
|
|
187
|
-
if (
|
|
187
|
+
if (qn(e) === zn) {
|
|
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] = Ge(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 Ge(
|
|
201
201
|
/** @type {T & { toJSON(): any } } */
|
|
202
202
|
e.toJSON(),
|
|
203
203
|
t,
|
|
@@ -222,89 +222,89 @@ 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 We = null;
|
|
226
|
+
function Pe(e, t) {
|
|
227
|
+
if (typeof e != "object" || e === null || we in e)
|
|
228
228
|
return e;
|
|
229
|
-
const n =
|
|
230
|
-
if (n !==
|
|
229
|
+
const n = qn(e);
|
|
230
|
+
if (n !== zn && n !== es)
|
|
231
231
|
return e;
|
|
232
|
-
var r = /* @__PURE__ */ new Map(), s =
|
|
233
|
-
var u =
|
|
234
|
-
|
|
235
|
-
var
|
|
232
|
+
var r = /* @__PURE__ */ new Map(), s = en(e), o = D(0), i = b, a = (l) => {
|
|
233
|
+
var u = b;
|
|
234
|
+
be(i);
|
|
235
|
+
var d;
|
|
236
236
|
{
|
|
237
|
-
var
|
|
238
|
-
|
|
237
|
+
var f = We;
|
|
238
|
+
We = c, d = l(), We = f;
|
|
239
239
|
}
|
|
240
|
-
return
|
|
240
|
+
return be(u), d;
|
|
241
241
|
};
|
|
242
|
-
s && r.set("length",
|
|
242
|
+
s && r.set("length", D(
|
|
243
243
|
/** @type {any[]} */
|
|
244
244
|
e.length
|
|
245
245
|
));
|
|
246
246
|
var c;
|
|
247
247
|
if (c = {
|
|
248
|
-
parent:
|
|
248
|
+
parent: We,
|
|
249
249
|
owners: null
|
|
250
250
|
}, t) {
|
|
251
|
-
const l = t.v?.[
|
|
251
|
+
const l = t.v?.[Ye]?.owners;
|
|
252
252
|
c.owners = l ? new Set(l) : null;
|
|
253
253
|
} else
|
|
254
|
-
c.owners =
|
|
254
|
+
c.owners = We === null ? A !== null ? /* @__PURE__ */ new Set([A.function]) : null : /* @__PURE__ */ new Set();
|
|
255
255
|
return new Proxy(
|
|
256
256
|
/** @type {any} */
|
|
257
257
|
e,
|
|
258
258
|
{
|
|
259
|
-
defineProperty(l, u,
|
|
260
|
-
(!("value" in
|
|
261
|
-
var
|
|
262
|
-
return
|
|
263
|
-
|
|
264
|
-
a(() =>
|
|
259
|
+
defineProperty(l, u, d) {
|
|
260
|
+
(!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) && vs();
|
|
261
|
+
var f = r.get(u);
|
|
262
|
+
return f === void 0 ? (f = a(() => D(d.value)), r.set(u, f)) : w(
|
|
263
|
+
f,
|
|
264
|
+
a(() => Pe(d.value))
|
|
265
265
|
), !0;
|
|
266
266
|
},
|
|
267
267
|
deleteProperty(l, u) {
|
|
268
|
-
var
|
|
269
|
-
if (
|
|
268
|
+
var d = r.get(u);
|
|
269
|
+
if (d === void 0)
|
|
270
270
|
u in l && r.set(
|
|
271
271
|
u,
|
|
272
|
-
a(() =>
|
|
272
|
+
a(() => D(M))
|
|
273
273
|
);
|
|
274
274
|
else {
|
|
275
275
|
if (s && typeof u == "string") {
|
|
276
|
-
var
|
|
276
|
+
var f = (
|
|
277
277
|
/** @type {Source<number>} */
|
|
278
278
|
r.get("length")
|
|
279
279
|
), h = Number(u);
|
|
280
|
-
Number.isInteger(h) && h <
|
|
280
|
+
Number.isInteger(h) && h < f.v && w(f, h);
|
|
281
281
|
}
|
|
282
|
-
|
|
282
|
+
w(d, M), gn(o);
|
|
283
283
|
}
|
|
284
284
|
return !0;
|
|
285
285
|
},
|
|
286
|
-
get(l, u,
|
|
287
|
-
if (u ===
|
|
286
|
+
get(l, u, d) {
|
|
287
|
+
if (u === Ye)
|
|
288
288
|
return c;
|
|
289
|
-
if (u ===
|
|
289
|
+
if (u === we)
|
|
290
290
|
return e;
|
|
291
|
-
var
|
|
292
|
-
if (
|
|
293
|
-
var _ =
|
|
291
|
+
var f = r.get(u), h = u in l;
|
|
292
|
+
if (f === void 0 && (!h || Se(l, u)?.writable) && (f = a(() => D(Pe(h ? l[u] : M))), r.set(u, f)), f !== void 0) {
|
|
293
|
+
var _ = g(f);
|
|
294
294
|
{
|
|
295
|
-
var
|
|
296
|
-
|
|
295
|
+
var y = _?.[Ye];
|
|
296
|
+
y && y?.parent !== c && Sn(c, y);
|
|
297
297
|
}
|
|
298
298
|
return _ === M ? void 0 : _;
|
|
299
299
|
}
|
|
300
|
-
return Reflect.get(l, u,
|
|
300
|
+
return Reflect.get(l, u, d);
|
|
301
301
|
},
|
|
302
302
|
getOwnPropertyDescriptor(l, u) {
|
|
303
|
-
var
|
|
304
|
-
if (
|
|
305
|
-
var
|
|
306
|
-
|
|
307
|
-
} else if (
|
|
303
|
+
var d = Reflect.getOwnPropertyDescriptor(l, u);
|
|
304
|
+
if (d && "value" in d) {
|
|
305
|
+
var f = r.get(u);
|
|
306
|
+
f && (d.value = g(f));
|
|
307
|
+
} else if (d === void 0) {
|
|
308
308
|
var h = r.get(u), _ = h?.v;
|
|
309
309
|
if (h !== void 0 && _ !== M)
|
|
310
310
|
return {
|
|
@@ -314,137 +314,137 @@ function $e(e, t) {
|
|
|
314
314
|
writable: !0
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
|
-
return
|
|
317
|
+
return d;
|
|
318
318
|
},
|
|
319
319
|
has(l, u) {
|
|
320
|
-
if (u ===
|
|
320
|
+
if (u === Ye || u === we)
|
|
321
321
|
return !0;
|
|
322
|
-
var
|
|
323
|
-
if (
|
|
324
|
-
|
|
325
|
-
var h =
|
|
322
|
+
var d = r.get(u), f = d !== void 0 && d.v !== M || Reflect.has(l, u);
|
|
323
|
+
if (d !== void 0 || P !== null && (!f || Se(l, u)?.writable)) {
|
|
324
|
+
d === void 0 && (d = a(() => D(f ? Pe(l[u]) : M)), r.set(u, d));
|
|
325
|
+
var h = g(d);
|
|
326
326
|
if (h === M)
|
|
327
327
|
return !1;
|
|
328
328
|
}
|
|
329
|
-
return
|
|
329
|
+
return f;
|
|
330
330
|
},
|
|
331
|
-
set(l, u,
|
|
331
|
+
set(l, u, d, f) {
|
|
332
332
|
var h = r.get(u), _ = u in l;
|
|
333
333
|
if (s && u === "length")
|
|
334
|
-
for (var
|
|
335
|
-
h.v;
|
|
336
|
-
var
|
|
337
|
-
|
|
334
|
+
for (var y = d; y < /** @type {Source<number>} */
|
|
335
|
+
h.v; y += 1) {
|
|
336
|
+
var $ = r.get(y + "");
|
|
337
|
+
$ !== void 0 ? w($, M) : y in l && ($ = a(() => D(M)), r.set(y + "", $));
|
|
338
338
|
}
|
|
339
|
-
h === void 0 ? (!_ ||
|
|
339
|
+
h === void 0 ? (!_ || Se(l, u)?.writable) && (h = a(() => D(void 0)), w(
|
|
340
340
|
h,
|
|
341
|
-
a(() =>
|
|
342
|
-
), r.set(u, h)) : (_ = h.v !== M,
|
|
341
|
+
a(() => Pe(d))
|
|
342
|
+
), r.set(u, h)) : (_ = h.v !== M, w(
|
|
343
343
|
h,
|
|
344
|
-
a(() =>
|
|
344
|
+
a(() => Pe(d))
|
|
345
345
|
));
|
|
346
346
|
{
|
|
347
|
-
var
|
|
348
|
-
|
|
347
|
+
var O = d?.[Ye];
|
|
348
|
+
O && O?.parent !== c && Sn(c, O), Js(c);
|
|
349
349
|
}
|
|
350
|
-
var
|
|
351
|
-
if (
|
|
350
|
+
var S = Reflect.getOwnPropertyDescriptor(l, u);
|
|
351
|
+
if (S?.set && S.set.call(f, d), !_) {
|
|
352
352
|
if (s && typeof u == "string") {
|
|
353
|
-
var
|
|
353
|
+
var U = (
|
|
354
354
|
/** @type {Source<number>} */
|
|
355
355
|
r.get("length")
|
|
356
|
-
),
|
|
357
|
-
Number.isInteger(
|
|
356
|
+
), k = Number(u);
|
|
357
|
+
Number.isInteger(k) && k >= U.v && w(U, k + 1);
|
|
358
358
|
}
|
|
359
|
-
|
|
359
|
+
gn(o);
|
|
360
360
|
}
|
|
361
361
|
return !0;
|
|
362
362
|
},
|
|
363
363
|
ownKeys(l) {
|
|
364
|
-
|
|
364
|
+
g(o);
|
|
365
365
|
var u = Reflect.ownKeys(l).filter((h) => {
|
|
366
366
|
var _ = r.get(h);
|
|
367
367
|
return _ === void 0 || _.v !== M;
|
|
368
368
|
});
|
|
369
|
-
for (var [
|
|
370
|
-
|
|
369
|
+
for (var [d, f] of r)
|
|
370
|
+
f.v !== M && !(d in l) && u.push(d);
|
|
371
371
|
return u;
|
|
372
372
|
},
|
|
373
373
|
setPrototypeOf() {
|
|
374
|
-
|
|
374
|
+
hs();
|
|
375
375
|
}
|
|
376
376
|
}
|
|
377
377
|
);
|
|
378
378
|
}
|
|
379
|
-
function
|
|
380
|
-
|
|
379
|
+
function gn(e, t = 1) {
|
|
380
|
+
w(e, e.v + t);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function Xe(e) {
|
|
383
383
|
try {
|
|
384
|
-
if (e !== null && typeof e == "object" &&
|
|
385
|
-
return e[
|
|
384
|
+
if (e !== null && typeof e == "object" && we in e)
|
|
385
|
+
return e[we];
|
|
386
386
|
} catch {
|
|
387
387
|
}
|
|
388
388
|
return e;
|
|
389
389
|
}
|
|
390
|
-
let
|
|
391
|
-
const
|
|
392
|
-
function
|
|
393
|
-
|
|
390
|
+
let je = /* @__PURE__ */ new Set();
|
|
391
|
+
const nt = /* @__PURE__ */ new Map();
|
|
392
|
+
function _n(e) {
|
|
393
|
+
je = e;
|
|
394
394
|
}
|
|
395
|
-
function
|
|
395
|
+
function Xn(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: Wn,
|
|
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 D(e, t) {
|
|
408
|
+
const n = Xn(e);
|
|
409
|
+
return rr(n), n;
|
|
410
410
|
}
|
|
411
411
|
// @__NO_SIDE_EFFECTS__
|
|
412
|
-
function
|
|
413
|
-
const n =
|
|
414
|
-
return t || (n.equals =
|
|
412
|
+
function Hn(e, t = !1) {
|
|
413
|
+
const n = Xn(e);
|
|
414
|
+
return t || (n.equals = Gn), n;
|
|
415
415
|
}
|
|
416
|
-
function
|
|
417
|
-
|
|
418
|
-
let r = n ?
|
|
419
|
-
return
|
|
416
|
+
function w(e, t, n = !1) {
|
|
417
|
+
b !== null && !oe && br() && (b.f & (ae | Zt)) !== 0 && !fe?.includes(e) && ps();
|
|
418
|
+
let r = n ? Pe(t, e) : t;
|
|
419
|
+
return bs(e, r);
|
|
420
420
|
}
|
|
421
|
-
function
|
|
421
|
+
function bs(e, t) {
|
|
422
422
|
if (!e.equals(t)) {
|
|
423
423
|
var n = e.v;
|
|
424
|
-
if (
|
|
425
|
-
const r = Array.from(
|
|
424
|
+
if (it ? nt.set(e, t) : nt.set(e, n), e.v = t, e.wv = or(), Zn(e, pe), P !== null && (P.f & q) !== 0 && (P.f & (he | Ie)) === 0 && (X === null ? ks([e]) : X.push(e)), je.size > 0) {
|
|
425
|
+
const r = Array.from(je);
|
|
426
426
|
for (const s of r)
|
|
427
|
-
(s.f &
|
|
428
|
-
|
|
427
|
+
(s.f & q) !== 0 && te(s, Re), Ve(s) && It(s);
|
|
428
|
+
je.clear();
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
return t;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
433
|
+
function Zn(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 & pe) === 0) {
|
|
439
|
+
if ((i & jn) !== 0) {
|
|
440
|
+
je.add(o);
|
|
441
441
|
continue;
|
|
442
442
|
}
|
|
443
|
-
|
|
443
|
+
te(o, t), (i & (q | Z)) !== 0 && ((i & ae) !== 0 ? Zn(
|
|
444
444
|
/** @type {Derived} */
|
|
445
445
|
o,
|
|
446
|
-
|
|
447
|
-
) :
|
|
446
|
+
Re
|
|
447
|
+
) : Rt(
|
|
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 =
|
|
455
|
+
function tn(e) {
|
|
456
|
+
var t = ae | pe, n = b !== null && (b.f & ae) !== 0 ? (
|
|
457
457
|
/** @type {Derived} */
|
|
458
|
-
|
|
458
|
+
b
|
|
459
459
|
) : null;
|
|
460
|
-
return
|
|
461
|
-
ctx:
|
|
460
|
+
return P === null || n !== null && (n.f & Z) !== 0 ? t |= Z : P.f |= Qn, {
|
|
461
|
+
ctx: A,
|
|
462
462
|
deps: null,
|
|
463
463
|
effects: null,
|
|
464
|
-
equals:
|
|
464
|
+
equals: Wn,
|
|
465
465
|
f: t,
|
|
466
466
|
fn: e,
|
|
467
467
|
reactions: null,
|
|
@@ -471,28 +471,28 @@ function Xt(e) {
|
|
|
471
471
|
null
|
|
472
472
|
),
|
|
473
473
|
wv: 0,
|
|
474
|
-
parent: n ??
|
|
474
|
+
parent: n ?? P
|
|
475
475
|
};
|
|
476
476
|
}
|
|
477
|
-
function
|
|
478
|
-
const t = /* @__PURE__ */
|
|
479
|
-
return
|
|
477
|
+
function ee(e) {
|
|
478
|
+
const t = /* @__PURE__ */ tn(e);
|
|
479
|
+
return rr(t), t;
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function Kn(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
|
+
ve(
|
|
487
487
|
/** @type {Effect} */
|
|
488
488
|
t[n]
|
|
489
489
|
);
|
|
490
490
|
}
|
|
491
491
|
}
|
|
492
|
-
let
|
|
493
|
-
function
|
|
492
|
+
let Nt = [];
|
|
493
|
+
function $s(e) {
|
|
494
494
|
for (var t = e.parent; t !== null; ) {
|
|
495
|
-
if ((t.f &
|
|
495
|
+
if ((t.f & ae) === 0)
|
|
496
496
|
return (
|
|
497
497
|
/** @type {Effect} */
|
|
498
498
|
t
|
|
@@ -501,98 +501,98 @@ function _o(e) {
|
|
|
501
501
|
}
|
|
502
502
|
return null;
|
|
503
503
|
}
|
|
504
|
-
function
|
|
505
|
-
var t, n =
|
|
506
|
-
|
|
504
|
+
function Es(e) {
|
|
505
|
+
var t, n = P;
|
|
506
|
+
Me($s(e));
|
|
507
507
|
{
|
|
508
|
-
let r =
|
|
509
|
-
|
|
508
|
+
let r = je;
|
|
509
|
+
_n(/* @__PURE__ */ new Set());
|
|
510
510
|
try {
|
|
511
|
-
|
|
511
|
+
Nt.includes(e) && os(), Nt.push(e), Kn(e), t = lr(e);
|
|
512
512
|
} finally {
|
|
513
|
-
|
|
513
|
+
Me(n), _n(r), Nt.pop();
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
516
|
return t;
|
|
517
517
|
}
|
|
518
|
-
function
|
|
519
|
-
var t =
|
|
520
|
-
|
|
518
|
+
function er(e) {
|
|
519
|
+
var t = Es(e), n = (ye || (e.f & Z) !== 0) && e.deps !== null ? Re : q;
|
|
520
|
+
te(e, n), e.equals(t) || (e.v = t, e.wv = or());
|
|
521
521
|
}
|
|
522
|
-
var
|
|
523
|
-
function
|
|
522
|
+
var ze = "font-weight: bold", qe = "font-weight: normal";
|
|
523
|
+
function Cs(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`, ze, qe);
|
|
527
527
|
}
|
|
528
|
-
function
|
|
528
|
+
function Ps(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`, ze, qe);
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function xt(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`, ze, qe);
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Ss() {
|
|
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`, ze, qe);
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function mn(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`, ze, qe);
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function ut(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`, ze, qe);
|
|
552
552
|
}
|
|
553
|
-
let
|
|
554
|
-
function
|
|
555
|
-
|
|
553
|
+
let B = !1;
|
|
554
|
+
function Ue(e) {
|
|
555
|
+
B = e;
|
|
556
556
|
}
|
|
557
|
-
let
|
|
558
|
-
function
|
|
557
|
+
let F;
|
|
558
|
+
function de(e) {
|
|
559
559
|
if (e === null)
|
|
560
|
-
throw
|
|
561
|
-
return
|
|
560
|
+
throw xt(), Ne;
|
|
561
|
+
return F = e;
|
|
562
562
|
}
|
|
563
|
-
function
|
|
564
|
-
return
|
|
563
|
+
function rt() {
|
|
564
|
+
return de(
|
|
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 re(e) {
|
|
570
|
+
if (B) {
|
|
571
|
+
if (/* @__PURE__ */ ke(F) !== null)
|
|
572
|
+
throw xt(), Ne;
|
|
573
|
+
F = e;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
function
|
|
577
|
-
for (var e = 0, t =
|
|
576
|
+
function xs() {
|
|
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 === Ht) {
|
|
584
584
|
if (e === 0) return t;
|
|
585
585
|
e -= 1;
|
|
586
|
-
} else (n ===
|
|
586
|
+
} else (n === Ct || n === Xt) && (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 Ts() {
|
|
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 (Xe(this[c]) === o) {
|
|
604
|
+
ut("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 (Xe(this[c]) === o) {
|
|
614
|
+
ut("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 (Xe(this[c]) === o) {
|
|
624
|
+
ut("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 L(e, t, n = !0) {
|
|
634
634
|
try {
|
|
635
|
-
e === t != (
|
|
635
|
+
e === t != (Xe(e) === Xe(t)) && ut(n ? "===" : "!==");
|
|
636
636
|
} catch {
|
|
637
637
|
}
|
|
638
638
|
return e === t === n;
|
|
639
639
|
}
|
|
640
|
-
var
|
|
641
|
-
function
|
|
642
|
-
if (
|
|
643
|
-
|
|
640
|
+
var yn, nn, tr, nr;
|
|
641
|
+
function qt() {
|
|
642
|
+
if (yn === void 0) {
|
|
643
|
+
yn = window, nn = /Firefox/.test(navigator.userAgent);
|
|
644
644
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
645
|
-
|
|
645
|
+
tr = Se(t, "firstChild").get, nr = Se(t, "nextSibling").get, vn(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), vn(n) && (n.__t = void 0), e.__svelte_meta = null, Ts();
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function gt(e = "") {
|
|
649
649
|
return document.createTextNode(e);
|
|
650
650
|
}
|
|
651
651
|
// @__NO_SIDE_EFFECTS__
|
|
652
|
-
function
|
|
653
|
-
return
|
|
652
|
+
function st(e) {
|
|
653
|
+
return tr.call(e);
|
|
654
654
|
}
|
|
655
655
|
// @__NO_SIDE_EFFECTS__
|
|
656
|
-
function
|
|
657
|
-
return
|
|
656
|
+
function ke(e) {
|
|
657
|
+
return nr.call(e);
|
|
658
658
|
}
|
|
659
|
-
function
|
|
660
|
-
if (!
|
|
661
|
-
return /* @__PURE__ */
|
|
659
|
+
function se(e, t) {
|
|
660
|
+
if (!B)
|
|
661
|
+
return /* @__PURE__ */ st(e);
|
|
662
662
|
var n = (
|
|
663
663
|
/** @type {TemplateNode} */
|
|
664
|
-
/* @__PURE__ */
|
|
664
|
+
/* @__PURE__ */ st(F)
|
|
665
665
|
);
|
|
666
666
|
if (n === null)
|
|
667
|
-
n =
|
|
667
|
+
n = F.appendChild(gt());
|
|
668
668
|
else if (t && n.nodeType !== 3) {
|
|
669
|
-
var r =
|
|
670
|
-
return n?.before(r),
|
|
669
|
+
var r = gt();
|
|
670
|
+
return n?.before(r), de(r), r;
|
|
671
671
|
}
|
|
672
|
-
return
|
|
672
|
+
return de(n), n;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
675
|
-
let r =
|
|
674
|
+
function Vt(e, t = 1, n = !1) {
|
|
675
|
+
let r = B ? 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 (!B)
|
|
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 = gt();
|
|
684
|
+
return r === null ? s?.after(i) : r.before(i), de(i), i;
|
|
685
685
|
}
|
|
686
|
-
return
|
|
686
|
+
return de(r), /** @type {TemplateNode} */
|
|
687
687
|
r;
|
|
688
688
|
}
|
|
689
|
-
function
|
|
689
|
+
function Is(e) {
|
|
690
690
|
e.textContent = "";
|
|
691
691
|
}
|
|
692
|
-
const
|
|
693
|
-
let
|
|
694
|
-
function
|
|
695
|
-
|
|
692
|
+
const wn = /* @__PURE__ */ new WeakSet();
|
|
693
|
+
let ft = !1, _t = !1, mt = null, xe = !1, it = !1;
|
|
694
|
+
function bn(e) {
|
|
695
|
+
it = e;
|
|
696
696
|
}
|
|
697
|
-
let
|
|
698
|
-
function
|
|
699
|
-
|
|
697
|
+
let He = [], yt = [], b = null, oe = !1;
|
|
698
|
+
function be(e) {
|
|
699
|
+
b = e;
|
|
700
700
|
}
|
|
701
|
-
let
|
|
702
|
-
function
|
|
703
|
-
|
|
701
|
+
let P = null;
|
|
702
|
+
function Me(e) {
|
|
703
|
+
P = e;
|
|
704
704
|
}
|
|
705
|
-
let
|
|
706
|
-
function
|
|
707
|
-
|
|
705
|
+
let fe = null;
|
|
706
|
+
function Rs(e) {
|
|
707
|
+
fe = e;
|
|
708
708
|
}
|
|
709
|
-
function
|
|
710
|
-
|
|
709
|
+
function rr(e) {
|
|
710
|
+
b !== null && b.f & Mt && (fe === null ? Rs([e]) : fe.push(e));
|
|
711
711
|
}
|
|
712
|
-
let
|
|
713
|
-
function
|
|
714
|
-
|
|
712
|
+
let N = null, Y = 0, X = null;
|
|
713
|
+
function ks(e) {
|
|
714
|
+
X = e;
|
|
715
715
|
}
|
|
716
|
-
let
|
|
717
|
-
function
|
|
718
|
-
return ++
|
|
716
|
+
let sr = 1, wt = 0, ye = !1;
|
|
717
|
+
function or() {
|
|
718
|
+
return ++sr;
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function Ve(e) {
|
|
721
721
|
var t = e.f;
|
|
722
|
-
if ((t &
|
|
722
|
+
if ((t & pe) !== 0)
|
|
723
723
|
return !0;
|
|
724
|
-
if ((t &
|
|
725
|
-
var n = e.deps, r = (t &
|
|
724
|
+
if ((t & Re) !== 0) {
|
|
725
|
+
var n = e.deps, r = (t & Z) !== 0;
|
|
726
726
|
if (n !== null) {
|
|
727
|
-
var s, o, i = (t &
|
|
727
|
+
var s, o, i = (t & ht) !== 0, a = r && P !== null && !ye, 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 ^= ht), a && u !== null && (u.f & Z) === 0 && (l.f ^= Z);
|
|
736
736
|
}
|
|
737
737
|
for (s = 0; s < c; s++)
|
|
738
|
-
if (o = n[s],
|
|
738
|
+
if (o = n[s], Ve(
|
|
739
739
|
/** @type {Derived} */
|
|
740
740
|
o
|
|
741
|
-
) &&
|
|
741
|
+
) && er(
|
|
742
742
|
/** @type {Derived} */
|
|
743
743
|
o
|
|
744
744
|
), o.wv > e.wv)
|
|
745
745
|
return !0;
|
|
746
746
|
}
|
|
747
|
-
(!r ||
|
|
747
|
+
(!r || P !== null && !ye) && te(e, q);
|
|
748
748
|
}
|
|
749
749
|
return !1;
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function $n(e, t) {
|
|
752
752
|
for (var n = t; n !== null; ) {
|
|
753
|
-
if ((n.f &
|
|
753
|
+
if ((n.f & vt) !== 0)
|
|
754
754
|
try {
|
|
755
755
|
n.fn(e);
|
|
756
756
|
return;
|
|
757
757
|
} catch {
|
|
758
|
-
n.f ^=
|
|
758
|
+
n.f ^= vt;
|
|
759
759
|
}
|
|
760
760
|
n = n.parent;
|
|
761
761
|
}
|
|
762
|
-
throw
|
|
762
|
+
throw ft = !1, e;
|
|
763
763
|
}
|
|
764
|
-
function
|
|
765
|
-
return (e.f &
|
|
764
|
+
function En(e) {
|
|
765
|
+
return (e.f & St) === 0 && (e.parent === null || (e.parent.f & vt) === 0);
|
|
766
766
|
}
|
|
767
|
-
function
|
|
768
|
-
if (
|
|
769
|
-
if (n === null && (
|
|
767
|
+
function Tt(e, t, n, r) {
|
|
768
|
+
if (ft) {
|
|
769
|
+
if (n === null && (ft = !1), En(t))
|
|
770
770
|
throw e;
|
|
771
771
|
return;
|
|
772
772
|
}
|
|
773
|
-
if (n !== null && (
|
|
774
|
-
|
|
773
|
+
if (n !== null && (ft = !0), r === null || !(e instanceof Error) || wn.has(e)) {
|
|
774
|
+
$n(e, t);
|
|
775
775
|
return;
|
|
776
776
|
}
|
|
777
|
-
|
|
777
|
+
wn.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?.[R];
|
|
784
784
|
if (a) {
|
|
785
785
|
const u = a.split("/").pop();
|
|
786
786
|
s.push(u);
|
|
@@ -788,212 +788,212 @@ function bt(e, t, n, r) {
|
|
|
788
788
|
}
|
|
789
789
|
i = i.p;
|
|
790
790
|
}
|
|
791
|
-
const c =
|
|
792
|
-
|
|
791
|
+
const c = nn ? " " : " ";
|
|
792
|
+
ie(e, "message", {
|
|
793
793
|
value: e.message + `
|
|
794
794
|
${s.map((u) => `
|
|
795
795
|
${c}in ${u}`).join("")}
|
|
796
796
|
`
|
|
797
|
-
}),
|
|
797
|
+
}), ie(e, "component_stack", {
|
|
798
798
|
value: s
|
|
799
799
|
});
|
|
800
800
|
const l = e.stack;
|
|
801
801
|
if (l) {
|
|
802
802
|
const u = l.split(`
|
|
803
|
-
`),
|
|
804
|
-
for (let
|
|
805
|
-
const h = u[
|
|
806
|
-
h.includes("svelte/src/internal") ||
|
|
803
|
+
`), d = [];
|
|
804
|
+
for (let f = 0; f < u.length; f++) {
|
|
805
|
+
const h = u[f];
|
|
806
|
+
h.includes("svelte/src/internal") || d.push(h);
|
|
807
807
|
}
|
|
808
|
-
|
|
809
|
-
value:
|
|
808
|
+
ie(e, "stack", {
|
|
809
|
+
value: d.join(`
|
|
810
810
|
`)
|
|
811
811
|
});
|
|
812
812
|
}
|
|
813
|
-
if (
|
|
813
|
+
if ($n(e, t), En(t))
|
|
814
814
|
throw e;
|
|
815
815
|
}
|
|
816
|
-
function
|
|
816
|
+
function ir(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
|
+
fe?.includes(e) || ((o.f & ae) !== 0 ? ir(
|
|
822
822
|
/** @type {Derived} */
|
|
823
823
|
o,
|
|
824
824
|
t,
|
|
825
825
|
!1
|
|
826
|
-
) : t === o && (n ?
|
|
826
|
+
) : t === o && (n ? te(o, pe) : (o.f & q) !== 0 && te(o, Re), Rt(
|
|
827
827
|
/** @type {Effect} */
|
|
828
828
|
o
|
|
829
829
|
)));
|
|
830
830
|
}
|
|
831
831
|
}
|
|
832
|
-
function
|
|
832
|
+
function lr(e) {
|
|
833
833
|
var h;
|
|
834
|
-
var t =
|
|
835
|
-
|
|
836
|
-
null,
|
|
834
|
+
var t = N, n = Y, r = X, s = b, o = ye, i = fe, a = A, c = oe, l = e.f;
|
|
835
|
+
N = /** @type {null | Value[]} */
|
|
836
|
+
null, Y = 0, X = null, ye = (l & Z) !== 0 && (oe || !xe || b === null), b = (l & (he | Ie)) === 0 ? e : null, fe = null, xn(e.ctx), oe = !1, wt++, e.f |= Mt;
|
|
837
837
|
try {
|
|
838
838
|
var u = (
|
|
839
839
|
/** @type {Function} */
|
|
840
840
|
(0, e.fn)()
|
|
841
|
-
),
|
|
842
|
-
if (
|
|
843
|
-
var
|
|
844
|
-
if (
|
|
845
|
-
for (
|
|
846
|
-
|
|
841
|
+
), d = e.deps;
|
|
842
|
+
if (N !== null) {
|
|
843
|
+
var f;
|
|
844
|
+
if (bt(e, Y), d !== null && Y > 0)
|
|
845
|
+
for (d.length = Y + N.length, f = 0; f < N.length; f++)
|
|
846
|
+
d[Y + f] = N[f];
|
|
847
847
|
else
|
|
848
|
-
e.deps =
|
|
849
|
-
if (!
|
|
850
|
-
for (
|
|
851
|
-
((h = f
|
|
852
|
-
} else
|
|
853
|
-
if (
|
|
854
|
-
for (
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
848
|
+
e.deps = d = N;
|
|
849
|
+
if (!ye)
|
|
850
|
+
for (f = Y; f < d.length; f++)
|
|
851
|
+
((h = d[f]).reactions ?? (h.reactions = [])).push(e);
|
|
852
|
+
} else d !== null && Y < d.length && (bt(e, Y), d.length = Y);
|
|
853
|
+
if (br() && X !== null && !oe && d !== null && (e.f & (ae | Re | pe)) === 0)
|
|
854
|
+
for (f = 0; f < /** @type {Source[]} */
|
|
855
|
+
X.length; f++)
|
|
856
|
+
ir(
|
|
857
|
+
X[f],
|
|
858
858
|
/** @type {Effect} */
|
|
859
859
|
e
|
|
860
860
|
);
|
|
861
|
-
return s !== null && (
|
|
862
|
-
|
|
861
|
+
return s !== null && (wt++, X !== null && (r === null ? r = X : r.push(.../** @type {Source[]} */
|
|
862
|
+
X))), u;
|
|
863
863
|
} finally {
|
|
864
|
-
|
|
864
|
+
N = t, Y = n, X = r, b = s, ye = o, fe = i, xn(a), oe = c, e.f ^= Mt;
|
|
865
865
|
}
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function Ls(e, t) {
|
|
868
868
|
let n = t.reactions;
|
|
869
869
|
if (n !== null) {
|
|
870
|
-
var r =
|
|
870
|
+
var r = Zr.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());
|
|
874
874
|
}
|
|
875
875
|
}
|
|
876
|
-
n === null && (t.f &
|
|
876
|
+
n === null && (t.f & ae) !== 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)) && (te(t, Re), (t.f & (Z | ht)) === 0 && (t.f ^= ht), Kn(
|
|
880
880
|
/** @type {Derived} **/
|
|
881
881
|
t
|
|
882
|
-
),
|
|
882
|
+
), bt(
|
|
883
883
|
/** @type {Derived} **/
|
|
884
884
|
t,
|
|
885
885
|
0
|
|
886
886
|
));
|
|
887
887
|
}
|
|
888
|
-
function
|
|
888
|
+
function bt(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
|
+
Ls(e, n[r]);
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function It(e) {
|
|
895
895
|
var t = e.f;
|
|
896
|
-
if ((t &
|
|
897
|
-
|
|
898
|
-
var n =
|
|
899
|
-
|
|
896
|
+
if ((t & St) === 0) {
|
|
897
|
+
te(e, q);
|
|
898
|
+
var n = P, r = A, s = xe;
|
|
899
|
+
P = e, xe = !0;
|
|
900
900
|
{
|
|
901
|
-
var o =
|
|
902
|
-
|
|
901
|
+
var o = Te;
|
|
902
|
+
Tn(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 & Zt) !== 0 ? Ms(e) : dr(e), fr(e);
|
|
906
|
+
var i = lr(e);
|
|
907
|
+
e.teardown = typeof i == "function" ? i : null, e.wv = sr;
|
|
908
908
|
var a = e.deps, c;
|
|
909
|
-
|
|
909
|
+
dn && gs && e.f & pe, dn && yt.push(e);
|
|
910
910
|
} catch (l) {
|
|
911
|
-
|
|
911
|
+
Tt(l, e, n, r || e.ctx);
|
|
912
912
|
} finally {
|
|
913
|
-
|
|
913
|
+
xe = s, P = n, Tn(o);
|
|
914
914
|
}
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function Cn() {
|
|
918
918
|
console.error(
|
|
919
919
|
"Last ten effects were: ",
|
|
920
|
-
|
|
921
|
-
),
|
|
920
|
+
yt.slice(-10).map((e) => e.fn)
|
|
921
|
+
), yt = [];
|
|
922
922
|
}
|
|
923
|
-
function
|
|
923
|
+
function Os() {
|
|
924
924
|
try {
|
|
925
|
-
|
|
925
|
+
cs();
|
|
926
926
|
} catch (e) {
|
|
927
|
-
if (
|
|
927
|
+
if (ie(e, "stack", {
|
|
928
928
|
value: ""
|
|
929
|
-
}),
|
|
929
|
+
}), mt !== null)
|
|
930
930
|
try {
|
|
931
|
-
|
|
931
|
+
Tt(e, mt, null, null);
|
|
932
932
|
} catch (t) {
|
|
933
|
-
throw
|
|
933
|
+
throw Cn(), t;
|
|
934
934
|
}
|
|
935
935
|
else
|
|
936
|
-
throw
|
|
936
|
+
throw Cn(), e;
|
|
937
937
|
}
|
|
938
938
|
}
|
|
939
|
-
function
|
|
940
|
-
var e =
|
|
939
|
+
function ar() {
|
|
940
|
+
var e = xe;
|
|
941
941
|
try {
|
|
942
942
|
var t = 0;
|
|
943
|
-
for (
|
|
944
|
-
t++ > 1e3 &&
|
|
945
|
-
var n =
|
|
946
|
-
|
|
943
|
+
for (xe = !0; He.length > 0; ) {
|
|
944
|
+
t++ > 1e3 && Os();
|
|
945
|
+
var n = He, r = n.length;
|
|
946
|
+
He = [];
|
|
947
947
|
for (var s = 0; s < r; s++) {
|
|
948
|
-
var o =
|
|
949
|
-
|
|
948
|
+
var o = Bs(n[s]);
|
|
949
|
+
Fs(o);
|
|
950
950
|
}
|
|
951
951
|
}
|
|
952
952
|
} finally {
|
|
953
|
-
|
|
953
|
+
_t = !1, xe = e, mt = null, yt = [], nt.clear();
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
|
-
function
|
|
956
|
+
function Fs(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 & (St | Qe)) === 0)
|
|
962
962
|
try {
|
|
963
|
-
|
|
963
|
+
Ve(r) && (It(r), r.deps === null && r.first === null && r.nodes_start === null && (r.teardown === null ? vr(r) : r.fn = null));
|
|
964
964
|
} catch (s) {
|
|
965
|
-
|
|
965
|
+
Tt(s, r, null, r.ctx);
|
|
966
966
|
}
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
|
-
function
|
|
970
|
-
|
|
971
|
-
for (var t =
|
|
969
|
+
function Rt(e) {
|
|
970
|
+
_t || (_t = !0, queueMicrotask(ar));
|
|
971
|
+
for (var t = mt = 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 | he)) !== 0) {
|
|
975
|
+
if ((n & q) === 0) return;
|
|
976
|
+
t.f ^= q;
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
|
-
|
|
979
|
+
He.push(t);
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function Bs(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 & (he | Ie)) !== 0, o = s && (r & q) !== 0;
|
|
984
|
+
if (!o && (r & Qe) === 0) {
|
|
985
|
+
if ((r & Nn) !== 0)
|
|
986
986
|
t.push(n);
|
|
987
987
|
else if (s)
|
|
988
|
-
n.f ^=
|
|
988
|
+
n.f ^= q;
|
|
989
989
|
else {
|
|
990
|
-
var i =
|
|
990
|
+
var i = b;
|
|
991
991
|
try {
|
|
992
|
-
|
|
992
|
+
b = n, Ve(n) && It(n);
|
|
993
993
|
} catch (l) {
|
|
994
|
-
|
|
994
|
+
Tt(l, n, null, n.ctx);
|
|
995
995
|
} finally {
|
|
996
|
-
|
|
996
|
+
b = i;
|
|
997
997
|
}
|
|
998
998
|
}
|
|
999
999
|
var a = n.first;
|
|
@@ -1008,24 +1008,24 @@ function Io(e) {
|
|
|
1008
1008
|
}
|
|
1009
1009
|
return t;
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function E(e) {
|
|
1012
1012
|
var t;
|
|
1013
|
-
for (
|
|
1014
|
-
|
|
1013
|
+
for (hn(); He.length > 0; )
|
|
1014
|
+
_t = !0, ar(), hn();
|
|
1015
1015
|
return (
|
|
1016
1016
|
/** @type {T} */
|
|
1017
1017
|
t
|
|
1018
1018
|
);
|
|
1019
1019
|
}
|
|
1020
|
-
async function
|
|
1021
|
-
await Promise.resolve(),
|
|
1020
|
+
async function cr() {
|
|
1021
|
+
await Promise.resolve(), E();
|
|
1022
1022
|
}
|
|
1023
|
-
function
|
|
1024
|
-
var t = e.f, n = (t &
|
|
1025
|
-
if (
|
|
1026
|
-
if (!
|
|
1027
|
-
var r =
|
|
1028
|
-
e.rv <
|
|
1023
|
+
function g(e) {
|
|
1024
|
+
var t = e.f, n = (t & ae) !== 0;
|
|
1025
|
+
if (b !== null && !oe) {
|
|
1026
|
+
if (!fe?.includes(e)) {
|
|
1027
|
+
var r = b.deps;
|
|
1028
|
+
e.rv < wt && (e.rv = wt, N === null && r !== null && r[Y] === e ? Y++ : N === null ? N = [e] : (!ye || !N.includes(e)) && N.push(e));
|
|
1029
1029
|
}
|
|
1030
1030
|
} else if (n && /** @type {Derived} */
|
|
1031
1031
|
e.deps === null && /** @type {Derived} */
|
|
@@ -1034,39 +1034,39 @@ 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 & Z) === 0 && (s.f ^= Z);
|
|
1038
1038
|
}
|
|
1039
1039
|
return n && (s = /** @type {Derived} */
|
|
1040
|
-
e,
|
|
1040
|
+
e, Ve(s) && er(s)), it && nt.has(e) ? nt.get(e) : e.v;
|
|
1041
1041
|
}
|
|
1042
|
-
function
|
|
1043
|
-
var t =
|
|
1042
|
+
function $t(e) {
|
|
1043
|
+
var t = oe;
|
|
1044
1044
|
try {
|
|
1045
|
-
return
|
|
1045
|
+
return oe = !0, e();
|
|
1046
1046
|
} finally {
|
|
1047
|
-
|
|
1047
|
+
oe = t;
|
|
1048
1048
|
}
|
|
1049
1049
|
}
|
|
1050
|
-
const
|
|
1051
|
-
function
|
|
1052
|
-
e.f = e.f &
|
|
1050
|
+
const Us = -7169;
|
|
1051
|
+
function te(e, t) {
|
|
1052
|
+
e.f = e.f & Us | t;
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1055
|
-
|
|
1054
|
+
function Ds(e) {
|
|
1055
|
+
P === null && b === null && as(e), b !== null && (b.f & Z) !== 0 && P === null && ls(), it && is(e);
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1057
|
+
function As(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 Le(e, t, n, r = !0) {
|
|
1062
|
+
for (var s = P; s !== null && (s.f & jn) !== 0; )
|
|
1063
1063
|
s = s.parent;
|
|
1064
1064
|
var o = {
|
|
1065
|
-
ctx:
|
|
1065
|
+
ctx: A,
|
|
1066
1066
|
deps: null,
|
|
1067
1067
|
nodes_start: null,
|
|
1068
1068
|
nodes_end: null,
|
|
1069
|
-
f: e |
|
|
1069
|
+
f: e | pe,
|
|
1070
1070
|
first: null,
|
|
1071
1071
|
fn: t,
|
|
1072
1072
|
last: null,
|
|
@@ -1077,136 +1077,136 @@ 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 = Te, n)
|
|
1081
1081
|
try {
|
|
1082
|
-
|
|
1082
|
+
It(o), o.f |= Xr;
|
|
1083
1083
|
} catch (c) {
|
|
1084
|
-
throw
|
|
1084
|
+
throw ve(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 && Rt(o);
|
|
1087
|
+
var i = n && o.deps === null && o.first === null && o.nodes_start === null && o.teardown === null && (o.f & (Qn | vt)) === 0;
|
|
1088
|
+
if (!i && r && (s !== null && As(o, s), b !== null && (b.f & ae) !== 0)) {
|
|
1089
1089
|
var a = (
|
|
1090
1090
|
/** @type {Derived} */
|
|
1091
|
-
|
|
1091
|
+
b
|
|
1092
1092
|
);
|
|
1093
1093
|
(a.effects ?? (a.effects = [])).push(o);
|
|
1094
1094
|
}
|
|
1095
1095
|
return o;
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1098
|
-
const t =
|
|
1099
|
-
return
|
|
1097
|
+
function Ns(e) {
|
|
1098
|
+
const t = Le(Pt, null, !1);
|
|
1099
|
+
return te(t, q), t.teardown = e, t;
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1102
|
-
|
|
1103
|
-
var t =
|
|
1104
|
-
if (
|
|
1101
|
+
function De(e) {
|
|
1102
|
+
Ds("$effect");
|
|
1103
|
+
var t = P !== null && (P.f & he) !== 0 && A !== null && !A.m;
|
|
1104
|
+
if (ie(e, "name", {
|
|
1105
1105
|
value: "$effect"
|
|
1106
1106
|
}), t) {
|
|
1107
1107
|
var n = (
|
|
1108
1108
|
/** @type {ComponentContext} */
|
|
1109
|
-
|
|
1109
|
+
A
|
|
1110
1110
|
);
|
|
1111
1111
|
(n.e ?? (n.e = [])).push({
|
|
1112
1112
|
fn: e,
|
|
1113
|
-
effect:
|
|
1114
|
-
reaction:
|
|
1113
|
+
effect: P,
|
|
1114
|
+
reaction: b
|
|
1115
1115
|
});
|
|
1116
1116
|
} else {
|
|
1117
|
-
var r =
|
|
1117
|
+
var r = rn(e);
|
|
1118
1118
|
return r;
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
1121
|
-
function
|
|
1122
|
-
const t =
|
|
1121
|
+
function js(e) {
|
|
1122
|
+
const t = Le(Ie, e, !0);
|
|
1123
1123
|
return () => {
|
|
1124
|
-
|
|
1124
|
+
ve(t);
|
|
1125
1125
|
};
|
|
1126
1126
|
}
|
|
1127
|
-
function
|
|
1128
|
-
const t =
|
|
1127
|
+
function Qs(e) {
|
|
1128
|
+
const t = Le(Ie, e, !0);
|
|
1129
1129
|
return (n = {}) => new Promise((r) => {
|
|
1130
|
-
n.outro ?
|
|
1131
|
-
|
|
1132
|
-
}) : (
|
|
1130
|
+
n.outro ? Jt(t, () => {
|
|
1131
|
+
ve(t), r(void 0);
|
|
1132
|
+
}) : (ve(t), r(void 0));
|
|
1133
1133
|
});
|
|
1134
1134
|
}
|
|
1135
|
-
function
|
|
1136
|
-
return
|
|
1135
|
+
function rn(e) {
|
|
1136
|
+
return Le(Nn, e, !1);
|
|
1137
1137
|
}
|
|
1138
|
-
function
|
|
1139
|
-
return
|
|
1138
|
+
function ur(e) {
|
|
1139
|
+
return Le(Pt, e, !0);
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1142
|
-
const r = t.map(n), s = () => e(...r.map(
|
|
1143
|
-
return
|
|
1141
|
+
function Ze(e, t = [], n = tn) {
|
|
1142
|
+
const r = t.map(n), s = () => e(...r.map(g));
|
|
1143
|
+
return ie(s, "name", {
|
|
1144
1144
|
value: "{expression}"
|
|
1145
|
-
}),
|
|
1145
|
+
}), sn(s);
|
|
1146
1146
|
}
|
|
1147
|
-
function
|
|
1148
|
-
return
|
|
1147
|
+
function sn(e, t = 0) {
|
|
1148
|
+
return Le(Pt | Zt | t, e, !0);
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1151
|
-
return
|
|
1150
|
+
function Et(e, t = !0) {
|
|
1151
|
+
return Le(Pt | he, e, !0, t);
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1153
|
+
function fr(e) {
|
|
1154
1154
|
var t = e.teardown;
|
|
1155
1155
|
if (t !== null) {
|
|
1156
|
-
const n =
|
|
1157
|
-
|
|
1156
|
+
const n = it, r = b;
|
|
1157
|
+
bn(!0), be(null);
|
|
1158
1158
|
try {
|
|
1159
1159
|
t.call(null);
|
|
1160
1160
|
} finally {
|
|
1161
|
-
|
|
1161
|
+
bn(n), be(r);
|
|
1162
1162
|
}
|
|
1163
1163
|
}
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1165
|
+
function dr(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 : ve(n, t), n = r;
|
|
1170
1170
|
}
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1172
|
+
function Ms(e) {
|
|
1173
1173
|
for (var t = e.first; t !== null; ) {
|
|
1174
1174
|
var n = t.next;
|
|
1175
|
-
(t.f &
|
|
1175
|
+
(t.f & he) === 0 && ve(t), t = n;
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1178
|
+
function ve(e, t = !0) {
|
|
1179
1179
|
var n = !1;
|
|
1180
|
-
if ((t || (e.f &
|
|
1180
|
+
if ((t || (e.f & Hr) !== 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
|
+
dr(e, t && !n), bt(e, 0), te(e, St);
|
|
1191
1191
|
var i = e.transitions;
|
|
1192
1192
|
if (i !== null)
|
|
1193
1193
|
for (const c of i)
|
|
1194
1194
|
c.stop();
|
|
1195
|
-
|
|
1195
|
+
fr(e);
|
|
1196
1196
|
var a = e.parent;
|
|
1197
|
-
a !== null && a.first !== null &&
|
|
1197
|
+
a !== null && a.first !== null && vr(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 vr(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 Jt(e, t) {
|
|
1204
1204
|
var n = [];
|
|
1205
|
-
|
|
1206
|
-
|
|
1205
|
+
hr(e, n, !0), zs(n, () => {
|
|
1206
|
+
ve(e), t && t();
|
|
1207
1207
|
});
|
|
1208
1208
|
}
|
|
1209
|
-
function
|
|
1209
|
+
function zs(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 hr(e, t, n) {
|
|
1219
|
+
if ((e.f & Qe) === 0) {
|
|
1220
|
+
if (e.f ^= Qe, 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 & Kt) !== 0 || (r.f & he) !== 0;
|
|
1225
|
+
hr(r, t, o ? n : !1), r = s;
|
|
1226
1226
|
}
|
|
1227
1227
|
}
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1230
|
-
|
|
1229
|
+
function Pn(e) {
|
|
1230
|
+
pr(e, !0);
|
|
1231
1231
|
}
|
|
1232
|
-
function
|
|
1233
|
-
if ((e.f &
|
|
1234
|
-
e.f ^=
|
|
1232
|
+
function pr(e, t) {
|
|
1233
|
+
if ((e.f & Qe) !== 0) {
|
|
1234
|
+
e.f ^= Qe, (e.f & q) === 0 && (e.f ^= q), Ve(e) && (te(e, pe), Rt(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 & Kt) !== 0 || (n.f & he) !== 0;
|
|
1237
|
+
pr(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 Ke = {}, qs = /at (?:.+ \()?(.+):(\d+):(\d+)\)?$/, Vs = /@(.+):(\d+):(\d+)$/;
|
|
1245
|
+
function on() {
|
|
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 = qs.exec(n) ?? Vs.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 gr() {
|
|
1261
|
+
const e = on()?.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 = Ke[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 _r() {
|
|
1279
1279
|
var t;
|
|
1280
|
-
const e =
|
|
1281
|
-
e && (
|
|
1280
|
+
const e = on()?.[2];
|
|
1281
|
+
e && (Ke[t = e.file] ?? (Ke[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 mr(e) {
|
|
1290
|
+
const t = on()?.[2];
|
|
1291
1291
|
if (t) {
|
|
1292
|
-
const n =
|
|
1292
|
+
const n = Ke[t.file], r = n[n.length - 1];
|
|
1293
1293
|
r.end = t, r.component = e;
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
|
-
function
|
|
1296
|
+
function Sn(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 yr(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
|
+
R in t && [...e.owners].some(
|
|
1311
1311
|
(n) => (
|
|
1312
1312
|
/** @type {any} */
|
|
1313
|
-
n[
|
|
1313
|
+
n[R] === t[R]
|
|
1314
1314
|
)
|
|
1315
|
-
) || e.parent !== null &&
|
|
1315
|
+
) || e.parent !== null && yr(e.parent, t);
|
|
1316
1316
|
}
|
|
1317
|
-
function
|
|
1318
|
-
return e?.owners?.values().next().value ??
|
|
1317
|
+
function wr(e) {
|
|
1318
|
+
return e?.owners?.values().next().value ?? wr(
|
|
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 Js(e) {
|
|
1324
|
+
const t = gr();
|
|
1325
|
+
if (t && !yr(e, t)) {
|
|
1326
|
+
let n = wr(e);
|
|
1327
|
+
n[R] !== t[R] ? mn(t[R], n[R]) : mn();
|
|
1328
1328
|
}
|
|
1329
1329
|
}
|
|
1330
|
-
let
|
|
1331
|
-
function
|
|
1332
|
-
|
|
1330
|
+
let A = null;
|
|
1331
|
+
function xn(e) {
|
|
1332
|
+
A = e;
|
|
1333
1333
|
}
|
|
1334
|
-
let
|
|
1335
|
-
function
|
|
1336
|
-
|
|
1334
|
+
let Te = null;
|
|
1335
|
+
function Tn(e) {
|
|
1336
|
+
Te = e;
|
|
1337
1337
|
}
|
|
1338
|
-
function
|
|
1339
|
-
var r =
|
|
1340
|
-
p:
|
|
1338
|
+
function ln(e, t = !1, n) {
|
|
1339
|
+
var r = A = {
|
|
1340
|
+
p: A,
|
|
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
|
+
Ns(() => {
|
|
1350
1350
|
r.d = !0;
|
|
1351
|
-
}),
|
|
1351
|
+
}), A.function = n, Te = n;
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1354
|
-
const t =
|
|
1353
|
+
function an(e) {
|
|
1354
|
+
const t = A;
|
|
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 = P, r = b;
|
|
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
|
+
Me(o.effect), be(o.reaction), rn(o.fn);
|
|
1365
1365
|
}
|
|
1366
1366
|
} finally {
|
|
1367
|
-
|
|
1367
|
+
Me(n), be(r);
|
|
1368
1368
|
}
|
|
1369
1369
|
}
|
|
1370
|
-
|
|
1370
|
+
A = t.p, Te = t.p?.function ?? null, t.m = !0;
|
|
1371
1371
|
}
|
|
1372
1372
|
return e || /** @type {T} */
|
|
1373
1373
|
{};
|
|
1374
1374
|
}
|
|
1375
|
-
function
|
|
1375
|
+
function br() {
|
|
1376
1376
|
return !0;
|
|
1377
1377
|
}
|
|
1378
|
-
const
|
|
1379
|
-
function
|
|
1380
|
-
e = e.replace(
|
|
1378
|
+
const Ys = /\r/g;
|
|
1379
|
+
function Ws(e) {
|
|
1380
|
+
e = e.replace(Ys, "");
|
|
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 Gs = ["touchstart", "touchmove"];
|
|
1386
|
+
function Xs(e) {
|
|
1387
|
+
return Gs.includes(e);
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1389
|
+
function Hs(e) {
|
|
1390
1390
|
return e?.replace(/\//g, "/");
|
|
1391
1391
|
}
|
|
1392
|
-
var
|
|
1393
|
-
function
|
|
1394
|
-
var n =
|
|
1395
|
-
n || (n = /* @__PURE__ */ new Set(),
|
|
1392
|
+
var In = /* @__PURE__ */ new Map();
|
|
1393
|
+
function Zs(e, t) {
|
|
1394
|
+
var n = In.get(e);
|
|
1395
|
+
n || (n = /* @__PURE__ */ new Set(), In.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 = B ? s : s.nodeType === 11 ? s.firstChild : s;
|
|
1401
|
+
return $r(o, t, n), s;
|
|
1402
1402
|
};
|
|
1403
1403
|
}
|
|
1404
|
-
function
|
|
1404
|
+
function Ks(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] && $r(e.firstChild, t, n[2]);
|
|
1408
1408
|
}
|
|
1409
|
-
function
|
|
1409
|
+
function $r(e, t, n) {
|
|
1410
1410
|
for (var r = 0, s = 0; e && r < n.length; ) {
|
|
1411
|
-
if (
|
|
1411
|
+
if (B && e.nodeType === 8) {
|
|
1412
1412
|
var o = (
|
|
1413
1413
|
/** @type {Comment} */
|
|
1414
1414
|
e
|
|
1415
1415
|
);
|
|
1416
|
-
o.data ===
|
|
1416
|
+
o.data === Ct || o.data === Xt ? s += 1 : o.data[0] === Ht && (s -= 1);
|
|
1417
1417
|
}
|
|
1418
|
-
s === 0 && e.nodeType === 1 &&
|
|
1418
|
+
s === 0 && e.nodeType === 1 && Ks(
|
|
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 eo = /* @__PURE__ */ new Set(), Rn = /* @__PURE__ */ new Set();
|
|
1427
|
+
function lt(e) {
|
|
1428
1428
|
var t = this, n = (
|
|
1429
1429
|
/** @type {Node} */
|
|
1430
1430
|
t.ownerDocument
|
|
@@ -1446,77 +1446,77 @@ function rt(e) {
|
|
|
1446
1446
|
}
|
|
1447
1447
|
if (o = /** @type {Element} */
|
|
1448
1448
|
s[i] || e.target, o !== t) {
|
|
1449
|
-
|
|
1449
|
+
ie(e, "currentTarget", {
|
|
1450
1450
|
configurable: !0,
|
|
1451
1451
|
get() {
|
|
1452
1452
|
return o || n;
|
|
1453
1453
|
}
|
|
1454
1454
|
});
|
|
1455
|
-
var u =
|
|
1456
|
-
|
|
1455
|
+
var u = b, d = P;
|
|
1456
|
+
be(null), Me(null);
|
|
1457
1457
|
try {
|
|
1458
|
-
for (var
|
|
1458
|
+
for (var f, h = []; o !== null; ) {
|
|
1459
1459
|
var _ = o.assignedSlot || o.parentNode || /** @type {any} */
|
|
1460
1460
|
o.host || null;
|
|
1461
1461
|
try {
|
|
1462
|
-
var
|
|
1463
|
-
if (
|
|
1462
|
+
var y = o["__" + r];
|
|
1463
|
+
if (y != 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 [
|
|
1469
|
-
|
|
1467
|
+
if (en(y)) {
|
|
1468
|
+
var [$, ...O] = y;
|
|
1469
|
+
$.apply(o, [e, ...O]);
|
|
1470
1470
|
} else
|
|
1471
|
-
|
|
1472
|
-
} catch (
|
|
1473
|
-
|
|
1471
|
+
y.call(o, e);
|
|
1472
|
+
} catch (S) {
|
|
1473
|
+
f ? h.push(S) : f = S;
|
|
1474
1474
|
}
|
|
1475
1475
|
if (e.cancelBubble || _ === t || _ === null)
|
|
1476
1476
|
break;
|
|
1477
1477
|
o = _;
|
|
1478
1478
|
}
|
|
1479
|
-
if (
|
|
1480
|
-
for (let
|
|
1479
|
+
if (f) {
|
|
1480
|
+
for (let S of h)
|
|
1481
1481
|
queueMicrotask(() => {
|
|
1482
|
-
throw
|
|
1482
|
+
throw S;
|
|
1483
1483
|
});
|
|
1484
|
-
throw
|
|
1484
|
+
throw f;
|
|
1485
1485
|
}
|
|
1486
1486
|
} finally {
|
|
1487
|
-
e.__root = t, delete e.currentTarget,
|
|
1487
|
+
e.__root = t, delete e.currentTarget, be(u), Me(d);
|
|
1488
1488
|
}
|
|
1489
1489
|
}
|
|
1490
1490
|
}
|
|
1491
|
-
function
|
|
1491
|
+
function Er(e) {
|
|
1492
1492
|
var t = document.createElement("template");
|
|
1493
1493
|
return t.innerHTML = e, t.content;
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1495
|
+
function ot(e, t) {
|
|
1496
1496
|
var n = (
|
|
1497
1497
|
/** @type {Effect} */
|
|
1498
|
-
|
|
1498
|
+
P
|
|
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 & Gr) !== 0, r, s = !e.startsWith("<!>");
|
|
1505
1505
|
return () => {
|
|
1506
|
-
if (
|
|
1507
|
-
return
|
|
1508
|
-
r === void 0 && (r =
|
|
1509
|
-
/* @__PURE__ */
|
|
1506
|
+
if (B)
|
|
1507
|
+
return ot(F, null), F;
|
|
1508
|
+
r === void 0 && (r = Er(s ? e : "<!>" + e), r = /** @type {Node} */
|
|
1509
|
+
/* @__PURE__ */ st(r));
|
|
1510
1510
|
var o = (
|
|
1511
1511
|
/** @type {TemplateNode} */
|
|
1512
|
-
n ||
|
|
1512
|
+
n || nn ? document.importNode(r, !0) : r.cloneNode(!0)
|
|
1513
1513
|
);
|
|
1514
|
-
return
|
|
1514
|
+
return ot(o, o), o;
|
|
1515
1515
|
};
|
|
1516
1516
|
}
|
|
1517
|
-
function
|
|
1518
|
-
if (
|
|
1519
|
-
|
|
1517
|
+
function ue(e, t) {
|
|
1518
|
+
if (B) {
|
|
1519
|
+
P.nodes_end = F, rt();
|
|
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 to(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 Cr(e, t) {
|
|
1532
|
+
return Pr(e, t);
|
|
1533
1533
|
}
|
|
1534
|
-
function
|
|
1535
|
-
|
|
1536
|
-
const n = t.target, r =
|
|
1534
|
+
function no(e, t) {
|
|
1535
|
+
qt(), t.intro = t.intro ?? !1;
|
|
1536
|
+
const n = t.target, r = B, s = F;
|
|
1537
1537
|
try {
|
|
1538
1538
|
for (var o = (
|
|
1539
1539
|
/** @type {TemplateNode} */
|
|
1540
|
-
/* @__PURE__ */
|
|
1540
|
+
/* @__PURE__ */ st(n)
|
|
1541
1541
|
); o && (o.nodeType !== 8 || /** @type {Comment} */
|
|
1542
|
-
o.data !==
|
|
1542
|
+
o.data !== Ct); )
|
|
1543
1543
|
o = /** @type {TemplateNode} */
|
|
1544
|
-
/* @__PURE__ */
|
|
1544
|
+
/* @__PURE__ */ ke(o);
|
|
1545
1545
|
if (!o)
|
|
1546
|
-
throw
|
|
1547
|
-
|
|
1546
|
+
throw Ne;
|
|
1547
|
+
Ue(!0), de(
|
|
1548
1548
|
/** @type {Comment} */
|
|
1549
1549
|
o
|
|
1550
|
-
),
|
|
1551
|
-
const i =
|
|
1552
|
-
if (
|
|
1553
|
-
|
|
1554
|
-
throw
|
|
1555
|
-
return
|
|
1550
|
+
), rt();
|
|
1551
|
+
const i = Pr(e, { ...t, anchor: o });
|
|
1552
|
+
if (F === null || F.nodeType !== 8 || /** @type {Comment} */
|
|
1553
|
+
F.data !== Ht)
|
|
1554
|
+
throw xt(), Ne;
|
|
1555
|
+
return Ue(!1), /** @type {Exports} */
|
|
1556
1556
|
i;
|
|
1557
1557
|
} catch (i) {
|
|
1558
|
-
if (i ===
|
|
1559
|
-
return t.recover === !1 &&
|
|
1558
|
+
if (i === Ne)
|
|
1559
|
+
return t.recover === !1 && us(), qt(), Is(n), Ue(!1), Cr(e, t);
|
|
1560
1560
|
throw i;
|
|
1561
1561
|
} finally {
|
|
1562
|
-
|
|
1562
|
+
Ue(r), de(s);
|
|
1563
1563
|
}
|
|
1564
1564
|
}
|
|
1565
|
-
const
|
|
1566
|
-
function
|
|
1567
|
-
|
|
1568
|
-
var a = /* @__PURE__ */ new Set(), c = (
|
|
1569
|
-
for (var
|
|
1570
|
-
var h = f
|
|
1565
|
+
const Be = /* @__PURE__ */ new Map();
|
|
1566
|
+
function Pr(e, { target: t, anchor: n, props: r = {}, events: s, context: o, intro: i = !0 }) {
|
|
1567
|
+
qt();
|
|
1568
|
+
var a = /* @__PURE__ */ new Set(), c = (d) => {
|
|
1569
|
+
for (var f = 0; f < d.length; f++) {
|
|
1570
|
+
var h = d[f];
|
|
1571
1571
|
if (!a.has(h)) {
|
|
1572
1572
|
a.add(h);
|
|
1573
|
-
var _ =
|
|
1574
|
-
t.addEventListener(h,
|
|
1575
|
-
var
|
|
1576
|
-
|
|
1573
|
+
var _ = Xs(h);
|
|
1574
|
+
t.addEventListener(h, lt, { passive: _ });
|
|
1575
|
+
var y = Be.get(h);
|
|
1576
|
+
y === void 0 ? (document.addEventListener(h, lt, { passive: _ }), Be.set(h, 1)) : Be.set(h, y + 1);
|
|
1577
1577
|
}
|
|
1578
1578
|
}
|
|
1579
1579
|
};
|
|
1580
|
-
c(
|
|
1581
|
-
var l = void 0, u =
|
|
1582
|
-
var
|
|
1583
|
-
return
|
|
1580
|
+
c(Kr(eo)), Rn.add(c);
|
|
1581
|
+
var l = void 0, u = Qs(() => {
|
|
1582
|
+
var d = n ?? t.appendChild(gt());
|
|
1583
|
+
return Et(() => {
|
|
1584
1584
|
if (o) {
|
|
1585
|
-
|
|
1586
|
-
var
|
|
1585
|
+
ln({});
|
|
1586
|
+
var f = (
|
|
1587
1587
|
/** @type {ComponentContext} */
|
|
1588
|
-
|
|
1588
|
+
A
|
|
1589
1589
|
);
|
|
1590
|
-
|
|
1590
|
+
f.c = o;
|
|
1591
1591
|
}
|
|
1592
|
-
s && (r.$$events = s),
|
|
1592
|
+
s && (r.$$events = s), B && ot(
|
|
1593
1593
|
/** @type {TemplateNode} */
|
|
1594
|
-
|
|
1594
|
+
d,
|
|
1595
1595
|
null
|
|
1596
|
-
), l = e(
|
|
1596
|
+
), l = e(d, r) || {}, B && (P.nodes_end = F), o && an();
|
|
1597
1597
|
}), () => {
|
|
1598
|
-
for (var
|
|
1599
|
-
t.removeEventListener(
|
|
1598
|
+
for (var f of a) {
|
|
1599
|
+
t.removeEventListener(f, lt);
|
|
1600
1600
|
var h = (
|
|
1601
1601
|
/** @type {number} */
|
|
1602
|
-
|
|
1602
|
+
Be.get(f)
|
|
1603
1603
|
);
|
|
1604
|
-
--h === 0 ? (document.removeEventListener(
|
|
1604
|
+
--h === 0 ? (document.removeEventListener(f, lt), Be.delete(f)) : Be.set(f, h);
|
|
1605
1605
|
}
|
|
1606
|
-
|
|
1606
|
+
Rn.delete(c), d !== n && d.parentNode?.removeChild(d);
|
|
1607
1607
|
};
|
|
1608
1608
|
});
|
|
1609
|
-
return
|
|
1609
|
+
return Yt.set(l, u), l;
|
|
1610
1610
|
}
|
|
1611
|
-
let
|
|
1612
|
-
function
|
|
1613
|
-
const n =
|
|
1614
|
-
return n ? (
|
|
1611
|
+
let Yt = /* @__PURE__ */ new WeakMap();
|
|
1612
|
+
function ro(e, t) {
|
|
1613
|
+
const n = Yt.get(e);
|
|
1614
|
+
return n ? (Yt.delete(e), n(t)) : (Ss(), Promise.resolve());
|
|
1615
1615
|
}
|
|
1616
|
-
function
|
|
1617
|
-
e &&
|
|
1616
|
+
function Sr(e) {
|
|
1617
|
+
e && ss(e[R] ?? "a component", e.name);
|
|
1618
1618
|
}
|
|
1619
|
-
function
|
|
1620
|
-
const e =
|
|
1619
|
+
function xr() {
|
|
1620
|
+
const e = A?.function;
|
|
1621
1621
|
function t(n) {
|
|
1622
|
-
const r =
|
|
1623
|
-
|
|
1622
|
+
const r = gr()?.[R] ?? "Something";
|
|
1623
|
+
rs(r, n, e[R]);
|
|
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 = M, c = n > 0 ?
|
|
1634
|
-
const u = (
|
|
1635
|
-
l = !0,
|
|
1636
|
-
},
|
|
1637
|
-
if (a === (a =
|
|
1631
|
+
function et(e, t, [n, r] = [0, 0]) {
|
|
1632
|
+
B && n === 0 && rt();
|
|
1633
|
+
var s = e, o = null, i = null, a = M, c = n > 0 ? Kt : 0, l = !1;
|
|
1634
|
+
const u = (f, h = !0) => {
|
|
1635
|
+
l = !0, d(h, f);
|
|
1636
|
+
}, d = (f, h) => {
|
|
1637
|
+
if (a === (a = f)) return;
|
|
1638
1638
|
let _ = !1;
|
|
1639
|
-
if (
|
|
1639
|
+
if (B && r !== -1) {
|
|
1640
1640
|
if (n === 0) {
|
|
1641
|
-
const
|
|
1641
|
+
const $ = (
|
|
1642
1642
|
/** @type {Comment} */
|
|
1643
1643
|
s.data
|
|
1644
1644
|
);
|
|
1645
|
-
|
|
1645
|
+
$ === Ct ? r = 0 : $ === Xt ? r = 1 / 0 : (r = parseInt($.substring(1)), r !== r && (r = a ? 1 / 0 : -1));
|
|
1646
1646
|
}
|
|
1647
|
-
const
|
|
1648
|
-
!!a ===
|
|
1647
|
+
const y = r > n;
|
|
1648
|
+
!!a === y && (s = xs(), de(s), Ue(!1), _ = !0, r = -1);
|
|
1649
1649
|
}
|
|
1650
|
-
a ? (o ?
|
|
1650
|
+
a ? (o ? Pn(o) : h && (o = Et(() => h(s))), i && Jt(i, () => {
|
|
1651
1651
|
i = null;
|
|
1652
|
-
})) : (i ?
|
|
1652
|
+
})) : (i ? Pn(i) : h && (i = Et(() => h(s, [n + 1, r]))), o && Jt(o, () => {
|
|
1653
1653
|
o = null;
|
|
1654
|
-
})), _ &&
|
|
1654
|
+
})), _ && Ue(!0);
|
|
1655
1655
|
};
|
|
1656
|
-
|
|
1657
|
-
l = !1, t(u), l ||
|
|
1658
|
-
}, c),
|
|
1656
|
+
sn(() => {
|
|
1657
|
+
l = !1, t(u), l || d(null, null);
|
|
1658
|
+
}, c), B && (s = F);
|
|
1659
1659
|
}
|
|
1660
|
-
function
|
|
1661
|
-
if (!t || t ===
|
|
1660
|
+
function so(e, t, n) {
|
|
1661
|
+
if (!t || t === Ws(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}` : Te?.[R] && (r = `in ${Te[R]}`), Ps(Hs(r));
|
|
1665
1665
|
}
|
|
1666
|
-
function
|
|
1666
|
+
function kn(e, t, n, r, s) {
|
|
1667
1667
|
var o = e, i = "", a;
|
|
1668
|
-
|
|
1668
|
+
sn(() => {
|
|
1669
1669
|
if (i === (i = t() ?? "")) {
|
|
1670
|
-
|
|
1670
|
+
B && rt();
|
|
1671
1671
|
return;
|
|
1672
1672
|
}
|
|
1673
|
-
a !== void 0 && (
|
|
1674
|
-
if (
|
|
1673
|
+
a !== void 0 && (ve(a), a = void 0), i !== "" && (a = Et(() => {
|
|
1674
|
+
if (B) {
|
|
1675
1675
|
for (var c = (
|
|
1676
1676
|
/** @type {Comment} */
|
|
1677
|
-
|
|
1678
|
-
), l =
|
|
1677
|
+
F.data
|
|
1678
|
+
), l = rt(), 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 xt(), Ne;
|
|
1684
|
+
so(
|
|
1685
1685
|
/** @type {Element} */
|
|
1686
1686
|
l.parentNode,
|
|
1687
1687
|
c,
|
|
1688
1688
|
i
|
|
1689
|
-
),
|
|
1689
|
+
), ot(F, u), o = de(l);
|
|
1690
1690
|
return;
|
|
1691
1691
|
}
|
|
1692
|
-
var
|
|
1693
|
-
|
|
1692
|
+
var d = i + "", f = Er(d);
|
|
1693
|
+
ot(
|
|
1694
1694
|
/** @type {TemplateNode} */
|
|
1695
|
-
/* @__PURE__ */
|
|
1695
|
+
/* @__PURE__ */ st(f),
|
|
1696
1696
|
/** @type {TemplateNode} */
|
|
1697
|
-
|
|
1698
|
-
), o.before(
|
|
1697
|
+
f.lastChild
|
|
1698
|
+
), o.before(f);
|
|
1699
1699
|
}));
|
|
1700
1700
|
});
|
|
1701
1701
|
}
|
|
1702
|
-
function
|
|
1703
|
-
|
|
1702
|
+
function Tr(e, t) {
|
|
1703
|
+
Yn(() => {
|
|
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), Zs(t.hash, s);
|
|
1718
1718
|
}
|
|
1719
1719
|
});
|
|
1720
1720
|
}
|
|
1721
|
-
function
|
|
1721
|
+
function oo(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 (B || i !== n || i === void 0) {
|
|
1728
|
+
var a = oo(n, r);
|
|
1729
|
+
(!B || 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 Ln(e, t) {
|
|
1734
|
+
return e === t || e?.[we] === t;
|
|
1735
|
+
}
|
|
1736
|
+
function io(e = {}, t, n, r) {
|
|
1737
|
+
return rn(() => {
|
|
1738
|
+
var s, o;
|
|
1739
|
+
return ur(() => {
|
|
1740
|
+
s = o, o = [], $t(() => {
|
|
1741
|
+
e !== n(...o) && (t(e, ...o), s && Ln(n(...s), e) && t(null, ...s));
|
|
1742
|
+
});
|
|
1743
|
+
}), () => {
|
|
1744
|
+
Yn(() => {
|
|
1745
|
+
o && Ln(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
|
+
ds(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 Oo = 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 at = !1;
|
|
1772
|
+
function lo(e) {
|
|
1773
|
+
var t = at;
|
|
1757
1774
|
try {
|
|
1758
|
-
return
|
|
1775
|
+
return at = !1, [e(), at];
|
|
1759
1776
|
} finally {
|
|
1760
|
-
|
|
1777
|
+
at = t;
|
|
1761
1778
|
}
|
|
1762
1779
|
}
|
|
1763
|
-
function
|
|
1780
|
+
function On(e) {
|
|
1764
1781
|
return e.ctx?.d ?? !1;
|
|
1765
1782
|
}
|
|
1766
|
-
function
|
|
1767
|
-
var s = (n &
|
|
1768
|
-
i ? [l, c] =
|
|
1783
|
+
function C(e, t, n, r) {
|
|
1784
|
+
var s = (n & Vr) !== 0, o = !0, i = (n & Yr) !== 0, a = (n & Wr) !== 0, c = !1, l;
|
|
1785
|
+
i ? [l, c] = lo(() => (
|
|
1769
1786
|
/** @type {V} */
|
|
1770
1787
|
e[t]
|
|
1771
1788
|
)) : l = /** @type {V} */
|
|
1772
1789
|
e[t];
|
|
1773
|
-
var u =
|
|
1790
|
+
var u = we in e || Mn in e, d = i && (Se(e, t)?.set ?? (u && t in e && ((x) => e[t] = x))) || void 0, f = (
|
|
1774
1791
|
/** @type {V} */
|
|
1775
1792
|
r
|
|
1776
|
-
), h = !0, _ = !1,
|
|
1793
|
+
), h = !0, _ = !1, y = () => (_ = !0, h && (h = !1, a ? f = $t(
|
|
1777
1794
|
/** @type {() => V} */
|
|
1778
1795
|
r
|
|
1779
|
-
) :
|
|
1780
|
-
r),
|
|
1781
|
-
l === void 0 && r !== void 0 && (
|
|
1782
|
-
var
|
|
1783
|
-
if (
|
|
1784
|
-
var
|
|
1796
|
+
) : f = /** @type {V} */
|
|
1797
|
+
r), f);
|
|
1798
|
+
l === void 0 && r !== void 0 && (d && o && fs(t), l = y(), d && d(l));
|
|
1799
|
+
var $;
|
|
1800
|
+
if ($ = () => {
|
|
1801
|
+
var x = (
|
|
1785
1802
|
/** @type {V} */
|
|
1786
1803
|
e[t]
|
|
1787
1804
|
);
|
|
1788
|
-
return
|
|
1789
|
-
}, (n &
|
|
1790
|
-
return
|
|
1791
|
-
if (
|
|
1792
|
-
var
|
|
1793
|
-
return function(
|
|
1794
|
-
return arguments.length > 0 ? ((!
|
|
1805
|
+
return x === void 0 ? y() : (h = !0, _ = !1, x);
|
|
1806
|
+
}, (n & Jr) === 0)
|
|
1807
|
+
return $;
|
|
1808
|
+
if (d) {
|
|
1809
|
+
var O = e.$$legacy;
|
|
1810
|
+
return function(x, V) {
|
|
1811
|
+
return arguments.length > 0 ? ((!V || O || c) && d(V ? $() : x), x) : $();
|
|
1795
1812
|
};
|
|
1796
1813
|
}
|
|
1797
|
-
var
|
|
1798
|
-
var
|
|
1799
|
-
return
|
|
1814
|
+
var S = !1, U = /* @__PURE__ */ Hn(l), k = /* @__PURE__ */ tn(() => {
|
|
1815
|
+
var x = $(), V = g(U);
|
|
1816
|
+
return S ? (S = !1, V) : U.v = x;
|
|
1800
1817
|
});
|
|
1801
|
-
return i &&
|
|
1818
|
+
return i && g(k), s || (k.equals = Gn), function(x, V) {
|
|
1802
1819
|
if (arguments.length > 0) {
|
|
1803
|
-
const
|
|
1804
|
-
if (!
|
|
1805
|
-
if (
|
|
1806
|
-
return
|
|
1807
|
-
|
|
1820
|
+
const j = V ? g(k) : i ? Pe(x) : x;
|
|
1821
|
+
if (!k.equals(j)) {
|
|
1822
|
+
if (S = !0, w(U, j), _ && f !== void 0 && (f = j), On(k))
|
|
1823
|
+
return x;
|
|
1824
|
+
$t(() => g(k));
|
|
1808
1825
|
}
|
|
1809
|
-
return
|
|
1826
|
+
return x;
|
|
1810
1827
|
}
|
|
1811
|
-
return
|
|
1828
|
+
return On(k) ? k.v : g(k);
|
|
1812
1829
|
};
|
|
1813
1830
|
}
|
|
1814
|
-
function
|
|
1815
|
-
return new
|
|
1831
|
+
function ao(e) {
|
|
1832
|
+
return new co(e);
|
|
1816
1833
|
}
|
|
1817
|
-
var
|
|
1818
|
-
class
|
|
1834
|
+
var ce, H;
|
|
1835
|
+
class co {
|
|
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
|
+
Dt(this, ce);
|
|
1827
1844
|
/** @type {Record<string, any>} */
|
|
1828
|
-
|
|
1845
|
+
Dt(this, H);
|
|
1829
1846
|
var n = /* @__PURE__ */ new Map(), r = (o, i) => {
|
|
1830
|
-
var a = /* @__PURE__ */
|
|
1847
|
+
var a = /* @__PURE__ */ Hn(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 === Mn ? !0 : (g(n.get(i) ?? r(i, Reflect.get(o, i))), Reflect.has(o, i));
|
|
1841
1858
|
},
|
|
1842
1859
|
set(o, i, a) {
|
|
1843
|
-
return
|
|
1860
|
+
return w(n.get(i) ?? r(i, a), a), Reflect.set(o, i, a);
|
|
1844
1861
|
}
|
|
1845
1862
|
}
|
|
1846
1863
|
);
|
|
1847
|
-
|
|
1864
|
+
At(this, H, (t.hydrate ? no : Cr)(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(
|
|
1856
|
-
o === "$set" || o === "$destroy" || o === "$on" ||
|
|
1871
|
+
})), (!t?.props?.$$host || t.sync === !1) && E(), At(this, ce, s.$$events);
|
|
1872
|
+
for (const o of Object.keys(Q(this, H)))
|
|
1873
|
+
o === "$set" || o === "$destroy" || o === "$on" || ie(this, o, {
|
|
1857
1874
|
get() {
|
|
1858
|
-
return
|
|
1875
|
+
return Q(this, H)[o];
|
|
1859
1876
|
},
|
|
1860
1877
|
/** @param {any} value */
|
|
1861
1878
|
set(i) {
|
|
1862
|
-
|
|
1879
|
+
Q(this, H)[o] = i;
|
|
1863
1880
|
},
|
|
1864
1881
|
enumerable: !0
|
|
1865
1882
|
});
|
|
1866
|
-
|
|
1883
|
+
Q(this, H).$set = /** @param {Record<string, any>} next */
|
|
1867
1884
|
(o) => {
|
|
1868
1885
|
Object.assign(s, o);
|
|
1869
|
-
},
|
|
1870
|
-
|
|
1886
|
+
}, Q(this, H).$destroy = () => {
|
|
1887
|
+
ro(Q(this, H));
|
|
1871
1888
|
};
|
|
1872
1889
|
}
|
|
1873
1890
|
/** @param {Record<string, any>} props */
|
|
1874
1891
|
$set(t) {
|
|
1875
|
-
|
|
1892
|
+
Q(this, H).$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
|
+
Q(this, ce)[t] = Q(this, ce)[t] || [];
|
|
1884
1901
|
const r = (...s) => n.call(this, ...s);
|
|
1885
|
-
return
|
|
1886
|
-
|
|
1902
|
+
return Q(this, ce)[t].push(r), () => {
|
|
1903
|
+
Q(this, ce)[t] = Q(this, ce)[t].filter(
|
|
1887
1904
|
/** @param {any} fn */
|
|
1888
1905
|
(s) => s !== r
|
|
1889
1906
|
);
|
|
1890
1907
|
};
|
|
1891
1908
|
}
|
|
1892
1909
|
$destroy() {
|
|
1893
|
-
|
|
1910
|
+
Q(this, H).$destroy();
|
|
1894
1911
|
}
|
|
1895
1912
|
}
|
|
1896
|
-
|
|
1897
|
-
let
|
|
1898
|
-
typeof HTMLElement == "function" && (
|
|
1913
|
+
ce = new WeakMap(), H = new WeakMap();
|
|
1914
|
+
let Ir;
|
|
1915
|
+
typeof HTMLElement == "function" && (Ir = class extends HTMLElement {
|
|
1899
1916
|
/**
|
|
1900
1917
|
* @param {*} $$componentCtor
|
|
1901
1918
|
* @param {*} $$slots
|
|
@@ -1904,25 +1921,25 @@ typeof HTMLElement == "function" && ($r = class extends HTMLElement {
|
|
|
1904
1921
|
constructor(t, n, r) {
|
|
1905
1922
|
super();
|
|
1906
1923
|
/** The Svelte component constructor */
|
|
1907
|
-
|
|
1924
|
+
K(this, "$$ctor");
|
|
1908
1925
|
/** Slots */
|
|
1909
|
-
|
|
1926
|
+
K(this, "$$s");
|
|
1910
1927
|
/** @type {any} The Svelte component instance */
|
|
1911
|
-
|
|
1928
|
+
K(this, "$$c");
|
|
1912
1929
|
/** Whether or not the custom element is connected */
|
|
1913
|
-
|
|
1930
|
+
K(this, "$$cn", !1);
|
|
1914
1931
|
/** @type {Record<string, any>} Component props data */
|
|
1915
|
-
|
|
1932
|
+
K(this, "$$d", {});
|
|
1916
1933
|
/** `true` if currently in the process of reflecting component props back to attributes */
|
|
1917
|
-
|
|
1934
|
+
K(this, "$$r", !1);
|
|
1918
1935
|
/** @type {Record<string, CustomElementPropDefinition>} Props definition (name, reflected, type etc) */
|
|
1919
|
-
|
|
1936
|
+
K(this, "$$p_d", {});
|
|
1920
1937
|
/** @type {Record<string, EventListenerOrEventListenerObject[]>} Event listeners */
|
|
1921
|
-
|
|
1938
|
+
K(this, "$$l", {});
|
|
1922
1939
|
/** @type {Map<EventListenerOrEventListenerObject, Function>} Event listener unsubscribe functions */
|
|
1923
|
-
|
|
1940
|
+
K(this, "$$l_u", /* @__PURE__ */ new Map());
|
|
1924
1941
|
/** @type {any} The managed render effect for reflecting attributes */
|
|
1925
|
-
|
|
1942
|
+
K(this, "$$me");
|
|
1926
1943
|
this.$$ctor = t, this.$$s = n, r && this.attachShadow({ mode: "open" });
|
|
1927
1944
|
}
|
|
1928
1945
|
/**
|
|
@@ -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), ue(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 = uo(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] = dt(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 = ao({
|
|
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 = js(() => {
|
|
1997
|
+
ur(() => {
|
|
1981
1998
|
this.$$r = !0;
|
|
1982
|
-
for (const o of
|
|
1999
|
+
for (const o of pt(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 = dt(
|
|
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] = dt(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 pt(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 dt(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 uo(e) {
|
|
2059
2076
|
const t = {};
|
|
2060
2077
|
return e.childNodes.forEach((n) => {
|
|
2061
2078
|
t[
|
|
@@ -2064,33 +2081,33 @@ function rs(e) {
|
|
|
2064
2081
|
] = !0;
|
|
2065
2082
|
}), t;
|
|
2066
2083
|
}
|
|
2067
|
-
function
|
|
2068
|
-
let i = class extends
|
|
2084
|
+
function Rr(e, t, n, r, s, o) {
|
|
2085
|
+
let i = class extends Ir {
|
|
2069
2086
|
constructor() {
|
|
2070
2087
|
super(e, n, s), this.$$p_d = t;
|
|
2071
2088
|
}
|
|
2072
2089
|
static get observedAttributes() {
|
|
2073
|
-
return
|
|
2090
|
+
return pt(t).map(
|
|
2074
2091
|
(a) => (t[a].attribute || a).toLowerCase()
|
|
2075
2092
|
);
|
|
2076
2093
|
}
|
|
2077
2094
|
};
|
|
2078
|
-
return
|
|
2079
|
-
|
|
2095
|
+
return pt(t).forEach((a) => {
|
|
2096
|
+
ie(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 = dt(a, c, t), this.$$d[a] = c;
|
|
2085
2102
|
var l = this.$$c;
|
|
2086
2103
|
if (l) {
|
|
2087
|
-
var u =
|
|
2104
|
+
var u = Se(l, a)?.get;
|
|
2088
2105
|
u ? l[a] = c : l.$set({ [a]: c });
|
|
2089
2106
|
}
|
|
2090
2107
|
}
|
|
2091
2108
|
});
|
|
2092
2109
|
}), r.forEach((a) => {
|
|
2093
|
-
|
|
2110
|
+
ie(i.prototype, a, {
|
|
2094
2111
|
get() {
|
|
2095
2112
|
return this.$$c?.[a];
|
|
2096
2113
|
}
|
|
@@ -2098,23 +2115,42 @@ 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 W(e, ...t) {
|
|
2119
|
+
return $t(() => {
|
|
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" && we in s ? (r.push(ws(s, !0)), n = !0) : r.push(s);
|
|
2125
|
+
n && (Cs(e), console.log("%c[snapshot]", "color: grey", ...r));
|
|
2109
2126
|
} catch {
|
|
2110
2127
|
}
|
|
2111
2128
|
}), t;
|
|
2112
2129
|
}
|
|
2113
|
-
const
|
|
2130
|
+
const Fn = "-pie-editor--", kr = (...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
|
+
}, {}), Lr = {}, fo = "https://builder.pie-api.com", vo = Lr.PUBLIC_BUILDER_ORIGIN_URL || fo, ho = Lr.PUBLIC_BUILDER_BUNDLE_URL || `${vo}/api/v1/bundles/`;
|
|
2135
|
+
var z = /* @__PURE__ */ ((e) => (e.player = "player.js", e.clientPlayer = "client-player.js", e.editor = "editor.js", e))(z || {}), Wt = /* @__PURE__ */ ((e) => (e.loading = "loading", e.loaded = "loaded", e))(Wt || {});
|
|
2136
|
+
const po = {
|
|
2137
|
+
invokeControllerForModel: !0,
|
|
2138
|
+
env: { mode: "gather", role: "student", partialScoring: !1 },
|
|
2139
|
+
eventListeners: {}
|
|
2140
|
+
};
|
|
2141
|
+
function go(e) {
|
|
2142
|
+
return e && typeof e.pie == "object";
|
|
2143
|
+
}
|
|
2144
|
+
function Bn(e) {
|
|
2145
|
+
return typeof e == "function" && "prototype" in e && e.prototype instanceof HTMLElement;
|
|
2146
|
+
}
|
|
2147
|
+
function _o(e) {
|
|
2148
|
+
return e && typeof e.PIE_REGISTRY == "object";
|
|
2149
|
+
}
|
|
2150
|
+
const Or = () => {
|
|
2151
|
+
let e;
|
|
2152
|
+
return _o(window) ? e = window.PIE_REGISTRY : (e = {}, window.PIE_REGISTRY = e), e;
|
|
2153
|
+
}, Fr = (e) => {
|
|
2118
2154
|
if (!e)
|
|
2119
2155
|
throw new Error("Parameter is required: input");
|
|
2120
2156
|
const t = e.charAt(0) === "@" ? e.match(/^(@[^/]+\/[^/@]+)(?:\/([^@]+))?(?:@([\s\S]+))?/) : e.match(/^([^/@]+)(?:\/([^@]+))?(?:@([\s\S]+))?/);
|
|
@@ -2125,20 +2161,7 @@ const Ln = "-pie-editor--", br = (...e) => e.reduce((t, n) => {
|
|
|
2125
2161
|
path: t[2] || "",
|
|
2126
2162
|
version: t[3] || ""
|
|
2127
2163
|
};
|
|
2128
|
-
},
|
|
2129
|
-
function as(e) {
|
|
2130
|
-
return e && typeof e.pie == "object";
|
|
2131
|
-
}
|
|
2132
|
-
function In(e) {
|
|
2133
|
-
return typeof e == "function" && "prototype" in e && e.prototype instanceof HTMLElement;
|
|
2134
|
-
}
|
|
2135
|
-
function cs(e) {
|
|
2136
|
-
return e && typeof e.PIE_REGISTRY == "object";
|
|
2137
|
-
}
|
|
2138
|
-
const Sr = () => {
|
|
2139
|
-
let e;
|
|
2140
|
-
return cs(window) ? e = window.PIE_REGISTRY : (e = {}, window.PIE_REGISTRY = e), e;
|
|
2141
|
-
}, Lr = (e, t, n) => {
|
|
2164
|
+
}, mo = (e) => e.split("+").map((t) => Fr(t).name).join("+"), Br = (e, t, n) => {
|
|
2142
2165
|
if (!e)
|
|
2143
2166
|
throw new Error("session data is required");
|
|
2144
2167
|
const r = e.find((o) => o.id === t);
|
|
@@ -2146,12 +2169,8 @@ const Sr = () => {
|
|
|
2146
2169
|
return n && !r.element && (r.element = n), r;
|
|
2147
2170
|
const s = n ? { id: t, element: n } : { id: t };
|
|
2148
2171
|
return e.push(s), s;
|
|
2149
|
-
},
|
|
2150
|
-
|
|
2151
|
-
qt(r, { config: e, session: t, env: n });
|
|
2152
|
-
});
|
|
2153
|
-
}, nn = (e) => {
|
|
2154
|
-
const t = Sr();
|
|
2172
|
+
}, cn = (e) => {
|
|
2173
|
+
const t = Or();
|
|
2155
2174
|
console.log(`[findPieController] Looking for controller for: ${e}`), console.log("[findPieController] Registry has entries for:", Object.keys(t));
|
|
2156
2175
|
const n = t[e];
|
|
2157
2176
|
if (!n) {
|
|
@@ -2162,18 +2181,50 @@ const Sr = () => {
|
|
|
2162
2181
|
package: n.package,
|
|
2163
2182
|
tagName: n.tagName,
|
|
2164
2183
|
hasController: !!n.controller,
|
|
2165
|
-
controllerKeys: n.controller ? Object.keys(n.controller) : []
|
|
2184
|
+
controllerKeys: n.controller ? Object.keys(n.controller) : [],
|
|
2185
|
+
bundleType: n.bundleType
|
|
2166
2186
|
});
|
|
2167
2187
|
const r = n.controller;
|
|
2168
|
-
|
|
2169
|
-
`[findPieController]
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2188
|
+
if (r)
|
|
2189
|
+
console.log(`[findPieController] ✅ Controller found for ${e} with functions:`, Object.keys(r));
|
|
2190
|
+
else {
|
|
2191
|
+
if (n.bundleType === z.clientPlayer)
|
|
2192
|
+
throw console.error(
|
|
2193
|
+
`[findPieController] ❌ CRITICAL: Registry entry exists for ${e} but controller is missing!`
|
|
2194
|
+
), console.error(`[findPieController] Bundle type: ${n.bundleType} (controllers required)`), console.error("[findPieController] Entry:", n), new Error(
|
|
2195
|
+
`No controller found for ${e}. client-player.js bundles MUST include controllers. Check bundle loading and registration.`
|
|
2196
|
+
);
|
|
2197
|
+
console.log(
|
|
2198
|
+
`[findPieController] ℹ️ No controller for ${e} - using server-processed models (player.js bundle)`
|
|
2199
|
+
);
|
|
2200
|
+
}
|
|
2201
|
+
return r;
|
|
2202
|
+
}, yo = async (e, t, n, r, s, o) => {
|
|
2203
|
+
console.log(`${o} Using controller, env:`, s), console.log(`${o} Model before filter:`, {
|
|
2204
|
+
id: t.id,
|
|
2205
|
+
element: t.element,
|
|
2206
|
+
hasCorrectResponse: "correctResponse" in t
|
|
2207
|
+
});
|
|
2208
|
+
const i = (a, c, l) => (console.log(`${o} updateSession called for ${a} with:`, l), Object.assign(n, l), Promise.resolve());
|
|
2209
|
+
try {
|
|
2210
|
+
const a = await r.model(t, n, s, i), c = {
|
|
2211
|
+
id: t.id,
|
|
2212
|
+
element: t.element,
|
|
2213
|
+
...a
|
|
2214
|
+
};
|
|
2215
|
+
console.log(`${o} ✅ Controller filtered model:`, {
|
|
2216
|
+
id: c.id,
|
|
2217
|
+
element: c.element,
|
|
2218
|
+
hasCorrectResponse: "correctResponse" in c,
|
|
2219
|
+
mode: s.mode,
|
|
2220
|
+
role: s.role
|
|
2221
|
+
}), e.model = c;
|
|
2222
|
+
} catch (a) {
|
|
2223
|
+
throw console.error(`${o} ❌ Controller error:`, a), a;
|
|
2224
|
+
}
|
|
2225
|
+
}, Gt = (e, t) => {
|
|
2226
|
+
const { config: n, session: r, env: s, eventListeners: o, invokeControllerForModel: i } = kr(
|
|
2227
|
+
po,
|
|
2177
2228
|
t
|
|
2178
2229
|
);
|
|
2179
2230
|
if (!s)
|
|
@@ -2189,276 +2240,190 @@ const Sr = () => {
|
|
|
2189
2240
|
}
|
|
2190
2241
|
a.forEach((c) => {
|
|
2191
2242
|
const l = c;
|
|
2192
|
-
let u = t?.config?.models?.find((
|
|
2243
|
+
let u = t?.config?.models?.find((f) => f.id === c.id);
|
|
2193
2244
|
if (!u)
|
|
2194
2245
|
throw console.error("[updatePieElement] Model not found for", e, t), new Error(`model not found for ${e}`);
|
|
2195
2246
|
console.log(`[updatePieElement] Updating ${e}#${c.id}, env:`, s);
|
|
2196
|
-
const
|
|
2197
|
-
if (l.session =
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
}
|
|
2203
|
-
if (!d)
|
|
2204
|
-
throw console.error(`[updatePieElement] ❌ FATAL: No controller found for ${e}`), new Error(`No controller found for ${e}. PIE elements MUST have controllers.`);
|
|
2205
|
-
console.log(`[updatePieElement] Invoking controller for ${e}#${c.id}`, {
|
|
2247
|
+
const d = Br(r, u.id, u.element);
|
|
2248
|
+
if (l.session = d, o && Object.entries(o).forEach(([f, h]) => {
|
|
2249
|
+
l.addEventListener(f, h);
|
|
2250
|
+
}), s && i) {
|
|
2251
|
+
const f = cn(e);
|
|
2252
|
+
f ? (console.log(`[updatePieElement] Invoking controller for ${e}#${c.id}`, {
|
|
2206
2253
|
mode: s.mode,
|
|
2207
2254
|
role: s.role,
|
|
2208
2255
|
hasCorrectResponse: "correctResponse" in u
|
|
2209
|
-
})
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
console.
|
|
2218
|
-
|
|
2219
|
-
element: p.element,
|
|
2220
|
-
hasCorrectResponse: "correctResponse" in p,
|
|
2221
|
-
mode: s.mode,
|
|
2222
|
-
role: s.role
|
|
2223
|
-
}), l.model = p;
|
|
2224
|
-
}).catch((_) => {
|
|
2225
|
-
throw console.error(`[updatePieElement] ❌ Controller error for ${e}#${c.id}:`, _), _;
|
|
2226
|
-
});
|
|
2256
|
+
}), yo(
|
|
2257
|
+
l,
|
|
2258
|
+
u,
|
|
2259
|
+
d,
|
|
2260
|
+
f,
|
|
2261
|
+
s,
|
|
2262
|
+
`[updatePieElement(${e}#${c.id})]`
|
|
2263
|
+
).catch((h) => {
|
|
2264
|
+
console.error(`[updatePieElement] Controller failed for ${e}#${c.id}:`, h), l.model = u;
|
|
2265
|
+
})) : (console.log(`[updatePieElement] ℹ️ No controller for ${e}, using server-processed model`), l.model = u);
|
|
2227
2266
|
} else
|
|
2228
2267
|
console.log(
|
|
2229
2268
|
`[updatePieElement] Direct model assignment for ${e}#${c.id} (no controller invocation requested)`
|
|
2230
2269
|
), l.model = u;
|
|
2231
|
-
o && Object.entries(o).forEach(([d, h]) => {
|
|
2232
|
-
l.addEventListener(d, h);
|
|
2233
|
-
});
|
|
2234
2270
|
});
|
|
2235
|
-
},
|
|
2236
|
-
|
|
2237
|
-
|
|
2271
|
+
}, ct = (e, t, n) => {
|
|
2272
|
+
console.log("[updatePieElements] Updating all elements with env:", n), Object.entries(e.elements).forEach(([r, s]) => {
|
|
2273
|
+
Gt(r, { config: e, session: t, env: n });
|
|
2274
|
+
});
|
|
2275
|
+
}, wo = {
|
|
2276
|
+
buildServiceBase: ho,
|
|
2277
|
+
bundleType: z.player,
|
|
2278
|
+
// Default to player.js (no controllers, server-processed models)
|
|
2238
2279
|
env: { mode: "gather", role: "student" }
|
|
2239
|
-
},
|
|
2280
|
+
}, jt = (e, t) => {
|
|
2240
2281
|
const { config: n, session: r, env: s, eventListeners: o } = t, i = e.tagName.toLowerCase();
|
|
2241
2282
|
console.log(`[initializePieElement] Initializing ${i}#${e.id}`);
|
|
2242
|
-
let a = n?.models?.find((
|
|
2283
|
+
let a = n?.models?.find((u) => u.id === e.id);
|
|
2243
2284
|
if (!a) {
|
|
2244
2285
|
console.warn(`[initializePieElement] Model not found for element ${i}#${e.id}`);
|
|
2245
2286
|
return;
|
|
2246
2287
|
}
|
|
2247
|
-
const c =
|
|
2288
|
+
const c = Br(r, a.id, a.element);
|
|
2248
2289
|
e.session = c, console.log(`[initializePieElement] Session set for ${i}#${e.id}:`, c);
|
|
2249
|
-
const l =
|
|
2250
|
-
if (!l)
|
|
2251
|
-
throw console.error(`[initializePieElement] ❌ FATAL: No controller found for ${i}`), new Error(
|
|
2252
|
-
`No controller found for ${i}. PIE elements MUST have controllers. Check bundle loading and registration.`
|
|
2253
|
-
);
|
|
2290
|
+
const l = cn(i);
|
|
2254
2291
|
if (!s)
|
|
2255
2292
|
throw console.error(`[initializePieElement] ❌ FATAL: No env provided for ${i}`), new Error(`No env provided for ${i}. PIE elements require an env object with mode and role.`);
|
|
2256
|
-
console.log(`[initializePieElement]
|
|
2293
|
+
l ? console.log(`[initializePieElement] Controller found for ${i}, will invoke model() function`) : (console.log(`[initializePieElement] ℹ️ No controller for ${i}, using server-processed model`), console.log("[initializePieElement] Model already processed by server:", {
|
|
2257
2294
|
id: a.id,
|
|
2258
2295
|
element: a.element,
|
|
2259
|
-
hasCorrectResponse: "correctResponse" in a
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
id: a.id,
|
|
2265
|
-
element: a.element,
|
|
2266
|
-
...f
|
|
2267
|
-
};
|
|
2268
|
-
console.log(`[initializePieElement] ✅ Controller filtered model for ${i}#${e.id}:`, {
|
|
2269
|
-
id: d.id,
|
|
2270
|
-
element: d.element,
|
|
2271
|
-
hasCorrectResponse: "correctResponse" in d,
|
|
2272
|
-
mode: s.mode,
|
|
2273
|
-
role: s.role
|
|
2274
|
-
}), e.model = d;
|
|
2275
|
-
}).catch((f) => {
|
|
2276
|
-
throw console.error(`[initializePieElement] ❌ Controller error for ${i}:`, f), f;
|
|
2277
|
-
}), o && Object.entries(o).forEach(([f, d]) => {
|
|
2278
|
-
e.addEventListener(f, d);
|
|
2296
|
+
hasCorrectResponse: "correctResponse" in a,
|
|
2297
|
+
mode: s.mode,
|
|
2298
|
+
role: s.role
|
|
2299
|
+
}), e.model = a), o && Object.entries(o).forEach(([u, d]) => {
|
|
2300
|
+
e.addEventListener(u, d);
|
|
2279
2301
|
});
|
|
2280
|
-
},
|
|
2281
|
-
const
|
|
2282
|
-
|
|
2283
|
-
console.log(
|
|
2284
|
-
const
|
|
2285
|
-
console.log(
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
console.
|
|
2289
|
-
|
|
2290
|
-
|
|
2302
|
+
}, bo = (e, t, n, r, s) => {
|
|
2303
|
+
const o = [];
|
|
2304
|
+
return console.log("[registerPieElementsFromBundle] Available packages in bundle:", Object.keys(e)), console.log("[registerPieElementsFromBundle] config.elements:", t.elements), typeof window < "u" && (window._pieCurrentContext = { config: t, session: n, env: s.env }), Object.entries(t.elements).forEach(([i, a]) => {
|
|
2305
|
+
console.log(`[registerPieElementsFromBundle] Processing element: ${i} -> ${a}`);
|
|
2306
|
+
const c = mo(a);
|
|
2307
|
+
console.log(`[registerPieElementsFromBundle] Package without version: "${c}"`);
|
|
2308
|
+
const l = e[c];
|
|
2309
|
+
if (console.log("[registerPieElementsFromBundle] elementData result:", l ? "FOUND" : "UNDEFINED"), !l)
|
|
2310
|
+
throw console.error(`[registerPieElementsFromBundle] ❌ Package "${c}" not found in bundle!`), console.error(`[registerPieElementsFromBundle] Lookup key: "${c}"`), console.error("[registerPieElementsFromBundle] Available packages:", Object.keys(e)), new Error(`pie ${c} not found in ${Object.keys(e)}`);
|
|
2311
|
+
if (console.log(`[registerPieElementsFromBundle] elementData for ${c}:`, {
|
|
2312
|
+
hasController: !!l.controller,
|
|
2313
|
+
hasElement: !!l.Element,
|
|
2314
|
+
hasConfig: !!l.config,
|
|
2315
|
+
controllerKeys: l.controller ? Object.keys(l.controller) : [],
|
|
2316
|
+
bundleType: s.bundleType
|
|
2317
|
+
}), !l.controller) {
|
|
2318
|
+
if (s.bundleType === z.clientPlayer)
|
|
2319
|
+
throw console.error(`[registerPieElementsFromBundle] ❌ CRITICAL: No controller found for ${c}!`), console.error(`[registerPieElementsFromBundle] Bundle type: ${s.bundleType} (controllers required)`), new Error(`No controller found for ${c}. client-player.js bundles MUST include controllers!`);
|
|
2320
|
+
console.log(
|
|
2321
|
+
`[registerPieElementsFromBundle] ℹ️ No controller found for ${c} - using server-processed models (player.js bundle)`
|
|
2291
2322
|
);
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2323
|
+
}
|
|
2324
|
+
if (customElements.get(i)) {
|
|
2325
|
+
if (Gt(i, {
|
|
2326
|
+
config: t,
|
|
2327
|
+
session: n,
|
|
2328
|
+
env: s.env,
|
|
2329
|
+
...s.eventListeners?.[i] && { eventListeners: s.eventListeners[i] }
|
|
2330
|
+
}), s.bundleType === z.editor) {
|
|
2331
|
+
const u = i + Fn;
|
|
2332
|
+
Gt(u, {
|
|
2333
|
+
config: t,
|
|
2334
|
+
session: n,
|
|
2335
|
+
...s.eventListeners?.[u] && {
|
|
2336
|
+
eventListeners: s.eventListeners[u]
|
|
2337
|
+
}
|
|
2338
|
+
});
|
|
2339
|
+
}
|
|
2340
|
+
} else if (console.log(
|
|
2341
|
+
`[registerPieElementsFromBundle] Registering ${i} in registry${l.controller ? " with controller" : " (no controller - server-processed models)"}`
|
|
2342
|
+
), r[i] = {
|
|
2343
|
+
package: a,
|
|
2344
|
+
status: Wt.loading,
|
|
2345
|
+
tagName: i,
|
|
2346
|
+
controller: l.controller || null,
|
|
2347
|
+
config: l.config,
|
|
2348
|
+
bundleType: s.bundleType
|
|
2349
|
+
}, Bn(l.Element)) {
|
|
2350
|
+
customElements.define(i, l.Element);
|
|
2351
|
+
const u = document.querySelectorAll(i);
|
|
2352
|
+
if (console.log(`[registerPieElementsFromBundle] Found ${u.length} elements for tag '${i}'`), u.forEach((d) => {
|
|
2353
|
+
jt(d, {
|
|
2354
|
+
config: t,
|
|
2355
|
+
session: n,
|
|
2356
|
+
env: s.env,
|
|
2357
|
+
eventListeners: s.eventListeners?.[i]
|
|
2358
|
+
});
|
|
2359
|
+
}), r[i] = {
|
|
2360
|
+
...r[i],
|
|
2361
|
+
status: Wt.loaded
|
|
2362
|
+
}, o.push(
|
|
2363
|
+
customElements.whenDefined(i).then(() => {
|
|
2364
|
+
console.debug("[registerPieElementsFromBundle] defined custom PIE element: %s", i);
|
|
2365
|
+
})
|
|
2366
|
+
), window._pieElementObserver || (window._pieElementObserver = new MutationObserver((d) => {
|
|
2367
|
+
const f = window._pieCurrentContext;
|
|
2368
|
+
if (!f) {
|
|
2369
|
+
console.warn("[MutationObserver] No current context available");
|
|
2370
|
+
return;
|
|
2328
2371
|
}
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
env: n.env,
|
|
2346
|
-
eventListeners: n.eventListeners?.[i]
|
|
2347
|
-
});
|
|
2348
|
-
}), r[i] = {
|
|
2349
|
-
...r[i],
|
|
2350
|
-
status: "loaded"
|
|
2351
|
-
/* loaded */
|
|
2352
|
-
}, customElements.whenDefined(i).then(() => {
|
|
2353
|
-
console.debug("defined custom PIE element: %s: %O", i, r[i]);
|
|
2354
|
-
}), window._pieElementObserver || (window._pieElementObserver = new MutationObserver((f) => {
|
|
2355
|
-
f.forEach((d) => {
|
|
2356
|
-
d.type === "childList" && d.addedNodes.forEach((h) => {
|
|
2357
|
-
if (h.nodeType === Node.ELEMENT_NODE) {
|
|
2358
|
-
const _ = h.tagName.toLowerCase();
|
|
2359
|
-
r[_] && Bt(h, {
|
|
2360
|
-
config: e,
|
|
2361
|
-
session: t,
|
|
2362
|
-
env: n.env,
|
|
2363
|
-
eventListeners: n.eventListeners?.[_]
|
|
2364
|
-
}), h.querySelectorAll("*").forEach((p) => {
|
|
2365
|
-
const w = p.tagName.toLowerCase();
|
|
2366
|
-
r[w] && Bt(p, {
|
|
2367
|
-
config: e,
|
|
2368
|
-
session: t,
|
|
2369
|
-
env: n.env,
|
|
2370
|
-
eventListeners: n.eventListeners?.[w]
|
|
2371
|
-
});
|
|
2372
|
+
d.forEach((h) => {
|
|
2373
|
+
h.type === "childList" && h.addedNodes.forEach((_) => {
|
|
2374
|
+
if (_.nodeType === Node.ELEMENT_NODE) {
|
|
2375
|
+
const y = _.tagName.toLowerCase();
|
|
2376
|
+
r[y] && jt(_, {
|
|
2377
|
+
config: f.config,
|
|
2378
|
+
session: f.session,
|
|
2379
|
+
env: f.env,
|
|
2380
|
+
eventListeners: s.eventListeners?.[y]
|
|
2381
|
+
}), _.querySelectorAll("*").forEach(($) => {
|
|
2382
|
+
const O = $.tagName.toLowerCase();
|
|
2383
|
+
r[O] && jt($, {
|
|
2384
|
+
config: f.config,
|
|
2385
|
+
session: f.session,
|
|
2386
|
+
env: f.env,
|
|
2387
|
+
eventListeners: s.eventListeners?.[O]
|
|
2372
2388
|
});
|
|
2373
|
-
}
|
|
2374
|
-
}
|
|
2389
|
+
});
|
|
2390
|
+
}
|
|
2375
2391
|
});
|
|
2376
|
-
})
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2392
|
+
});
|
|
2393
|
+
}), window._pieElementObserver.observe(document.body, {
|
|
2394
|
+
childList: !0,
|
|
2395
|
+
subtree: !0
|
|
2396
|
+
})), s.bundleType === z.editor)
|
|
2397
|
+
if (Bn(l.Configure)) {
|
|
2398
|
+
const d = i + Fn;
|
|
2399
|
+
customElements.define(d, l.Configure), o.push(
|
|
2400
|
+
customElements.whenDefined(d).then(() => {
|
|
2401
|
+
console.debug(`[registerPieElementsFromBundle] defined custom PIE editor element: ${d}`);
|
|
2402
|
+
})
|
|
2403
|
+
);
|
|
2404
|
+
} else
|
|
2405
|
+
console.error(
|
|
2406
|
+
`[registerPieElementsFromBundle] pie.Configure for ${c} is not a valid custom element constructor.`,
|
|
2407
|
+
l.configure
|
|
2408
|
+
);
|
|
2409
|
+
} else
|
|
2410
|
+
console.error(
|
|
2411
|
+
`[registerPieElementsFromBundle] pie.Element for ${c} is not a valid custom element constructor.`
|
|
2412
|
+
);
|
|
2413
|
+
}), o;
|
|
2414
|
+
}, Un = (e, t, n = {}) => {
|
|
2415
|
+
const r = Or(), s = kr(wo, n);
|
|
2416
|
+
if (go(window)) {
|
|
2417
|
+
console.log("[initializePiesFromLoadedBundle] window.pie available");
|
|
2418
|
+
const o = window.pie.default;
|
|
2419
|
+
bo(o, e, t, r, s);
|
|
2393
2420
|
} else
|
|
2394
|
-
console.error("window.pie not found; was the bundle inlined correctly?");
|
|
2395
|
-
}, Ut = (e) => {
|
|
2396
|
-
const t = "--version-", n = (c) => {
|
|
2397
|
-
const l = c.match(`${t}(\\d+-\\d+-\\d+)$`);
|
|
2398
|
-
return l ? {
|
|
2399
|
-
baseName: c.replace(`${t}${l[1]}`, ""),
|
|
2400
|
-
existingVersion: l[1].replace(/-/g, ".")
|
|
2401
|
-
} : { baseName: c };
|
|
2402
|
-
}, r = (c, l) => {
|
|
2403
|
-
const { baseName: u, existingVersion: f } = n(c), { version: d } = Pr(l);
|
|
2404
|
-
return f !== d ? `${u}${t}${d.replace(/\./g, "-")}` : c;
|
|
2405
|
-
}, s = Object.entries(e.config.elements).reduce(
|
|
2406
|
-
(c, [l, u]) => {
|
|
2407
|
-
const f = r(l, u);
|
|
2408
|
-
return {
|
|
2409
|
-
...c,
|
|
2410
|
-
[l]: {
|
|
2411
|
-
versionedName: f,
|
|
2412
|
-
package: u
|
|
2413
|
-
}
|
|
2414
|
-
};
|
|
2415
|
-
},
|
|
2416
|
-
{}
|
|
2417
|
-
), o = Object.entries(s).reduce(
|
|
2418
|
-
(c, [l, { versionedName: u }]) => l !== u ? c.replace(new RegExp(`<${l}`, "g"), `<${u}`).replace(new RegExp(`</${l}`, "g"), `</${u}`) : c,
|
|
2419
|
-
e.config.markup
|
|
2420
|
-
), i = Object.values(s).reduce(
|
|
2421
|
-
(c, { versionedName: l, package: u }) => ({
|
|
2422
|
-
...c,
|
|
2423
|
-
[l]: u
|
|
2424
|
-
}),
|
|
2425
|
-
{}
|
|
2426
|
-
), a = e.config.models.map((c) => {
|
|
2427
|
-
const l = c.element, u = s[l];
|
|
2428
|
-
if (u && u.versionedName !== l)
|
|
2429
|
-
return {
|
|
2430
|
-
...c,
|
|
2431
|
-
element: u.versionedName
|
|
2432
|
-
};
|
|
2433
|
-
if (i[l])
|
|
2434
|
-
return c;
|
|
2435
|
-
const f = Object.entries(s).filter(([d, { versionedName: h }]) => {
|
|
2436
|
-
const { baseName: _ } = n(d);
|
|
2437
|
-
return _ === l;
|
|
2438
|
-
});
|
|
2439
|
-
if (f.length > 0) {
|
|
2440
|
-
const [, { versionedName: d }] = f[0];
|
|
2441
|
-
return {
|
|
2442
|
-
...c,
|
|
2443
|
-
element: d
|
|
2444
|
-
};
|
|
2445
|
-
}
|
|
2446
|
-
return c;
|
|
2447
|
-
});
|
|
2448
|
-
return {
|
|
2449
|
-
...e,
|
|
2450
|
-
config: {
|
|
2451
|
-
...e.config,
|
|
2452
|
-
elements: i,
|
|
2453
|
-
markup: o,
|
|
2454
|
-
models: a
|
|
2455
|
-
}
|
|
2456
|
-
};
|
|
2421
|
+
console.error("[initializePiesFromLoadedBundle] window.pie not found; was the bundle inlined correctly?");
|
|
2457
2422
|
};
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
var
|
|
2461
|
-
const
|
|
2423
|
+
_r();
|
|
2424
|
+
le[R] = "src/lib/components/PieItemPlayer.svelte";
|
|
2425
|
+
var $o = $e(/* @__PURE__ */ Ee("<div><!></div>"), le[R], [[232, 2]]), Eo = $e(/* @__PURE__ */ Ee("<div><!></div>"), le[R], [[238, 2]]), Co = $e(/* @__PURE__ */ Ee('<div class="pie-item-player svelte-d1rctr"><!> <!></div>'), le[R], [[230, 0]]);
|
|
2426
|
+
const Po = {
|
|
2462
2427
|
hash: "svelte-d1rctr",
|
|
2463
2428
|
code: `
|
|
2464
2429
|
.pie-item-player.svelte-d1rctr {
|
|
@@ -2472,55 +2437,55 @@ const _s = {
|
|
|
2472
2437
|
width: 100%;
|
|
2473
2438
|
}
|
|
2474
2439
|
|
|
2475
|
-
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
2440
|
+
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGllSXRlbVBsYXllci5zdmVsdGUiLCJtYXBwaW5ncyI6IjtBQW9QQSxDQUFDLDhCQUFnQixDQUFDO0FBQ2xCLEVBQUUsY0FBYztBQUNoQixFQUFFLFdBQVc7QUFDYjs7QUFFQSxDQUFDLG9DQUFzQjtBQUN2QixDQUFDLGlDQUFtQixDQUFDO0FBQ3JCLEVBQUUsY0FBYztBQUNoQixFQUFFLFdBQVc7QUFDYiIsIm5hbWVzIjpbXSwiaWdub3JlTGlzdCI6W10sInNvdXJjZXMiOlsiUGllSXRlbVBsYXllci5zdmVsdGUiXX0= */`
|
|
2476
2441
|
};
|
|
2477
|
-
function
|
|
2478
|
-
|
|
2479
|
-
let n =
|
|
2480
|
-
const
|
|
2481
|
-
|
|
2482
|
-
const
|
|
2483
|
-
detail:
|
|
2442
|
+
function le(e, t) {
|
|
2443
|
+
Sr(new.target), ln(t, !0, le), Tr(e, Po);
|
|
2444
|
+
let n = C(t, "itemConfig", 7), r = C(t, "passageConfig", 7, null), s = C(t, "env", 23, () => ({ mode: "gather", role: "student" })), o = C(t, "session", 23, () => []), i = C(t, "addCorrectResponse", 7, !1), a = C(t, "customClassname", 7, ""), c = C(t, "passageContainerClass", 7, ""), l = C(t, "containerClass", 7, ""), u = C(t, "bundleType", 23, () => z.player), d = C(t, "onLoadComplete", 7), f = C(t, "onPlayerError", 7), h = C(t, "onSessionChanged", 7), _ = D(!1);
|
|
2445
|
+
const y = (p, T) => {
|
|
2446
|
+
L(p, "load-complete") && d() ? d()(T) : L(p, "player-error") && f() ? f()(T) : L(p, "session-changed") && h() && h()(T);
|
|
2447
|
+
const v = new CustomEvent(p, {
|
|
2448
|
+
detail: T,
|
|
2484
2449
|
bubbles: !0,
|
|
2485
2450
|
composed: !0
|
|
2486
2451
|
// Allow events to cross shadow DOM boundaries
|
|
2487
2452
|
});
|
|
2488
|
-
dispatchEvent(
|
|
2453
|
+
dispatchEvent(v);
|
|
2489
2454
|
};
|
|
2490
|
-
async function
|
|
2491
|
-
if (!i() || !n() ||
|
|
2455
|
+
async function $() {
|
|
2456
|
+
if (!i() || !n() || g(_)) return;
|
|
2492
2457
|
console.log("[PieItemPlayer] Populating session with correct responses");
|
|
2493
|
-
const
|
|
2494
|
-
for (const
|
|
2495
|
-
const
|
|
2496
|
-
if (
|
|
2458
|
+
const p = [];
|
|
2459
|
+
for (const T of n().models) {
|
|
2460
|
+
const v = cn(T.element);
|
|
2461
|
+
if (v && v.createCorrectResponseSession)
|
|
2497
2462
|
try {
|
|
2498
|
-
const
|
|
2499
|
-
|
|
2500
|
-
id:
|
|
2501
|
-
element:
|
|
2502
|
-
...
|
|
2463
|
+
const m = await v.createCorrectResponseSession(T, s()), { id: I, ...G } = m;
|
|
2464
|
+
p.push({
|
|
2465
|
+
id: T.id,
|
|
2466
|
+
element: T.element,
|
|
2467
|
+
...G
|
|
2503
2468
|
});
|
|
2504
|
-
} catch (
|
|
2505
|
-
console.warn(...
|
|
2469
|
+
} catch (m) {
|
|
2470
|
+
console.warn(...W("warn", `[PieItemPlayer] Failed to create correct response for ${T.element}:`, m));
|
|
2506
2471
|
}
|
|
2507
2472
|
}
|
|
2508
|
-
o().length = 0, o().push(...
|
|
2473
|
+
o().length = 0, o().push(...p), w(_, !0), console.log(...W("log", "[PieItemPlayer] Correct responses added to session:", o()));
|
|
2509
2474
|
}
|
|
2510
|
-
const
|
|
2475
|
+
const O = ee(() => [
|
|
2511
2476
|
"pie-passage-container",
|
|
2512
2477
|
a(),
|
|
2513
2478
|
c()
|
|
2514
|
-
].filter(Boolean).join(" ")),
|
|
2479
|
+
].filter(Boolean).join(" ")), S = ee(() => [
|
|
2515
2480
|
"pie-item-container",
|
|
2516
2481
|
a(),
|
|
2517
2482
|
l()
|
|
2518
2483
|
].filter(Boolean).join(" "));
|
|
2519
|
-
let
|
|
2520
|
-
|
|
2521
|
-
!n() ||
|
|
2484
|
+
let U = D(!1), k = D(!1), x = D(!1);
|
|
2485
|
+
De(() => {
|
|
2486
|
+
!n() || g(U) || (console.log("[PieItemPlayer] Item config received, initializing after DOM renders..."), cr().then(async () => {
|
|
2522
2487
|
try {
|
|
2523
|
-
if (console.log("[PieItemPlayer] DOM ready, initializing PIE elements"), console.log(...
|
|
2488
|
+
if (console.log("[PieItemPlayer] DOM ready, initializing PIE elements"), console.log(...W("log", "[PieItemPlayer] Config:", {
|
|
2524
2489
|
itemElements: Object.keys(n().elements || {}),
|
|
2525
2490
|
itemModels: (n().models || []).length,
|
|
2526
2491
|
passageElements: r() ? Object.keys(r().elements || {}) : [],
|
|
@@ -2528,126 +2493,132 @@ function oe(e, t) {
|
|
|
2528
2493
|
sessionLength: o().length,
|
|
2529
2494
|
addCorrectResponse: i(),
|
|
2530
2495
|
env: s()
|
|
2531
|
-
})),
|
|
2532
|
-
const
|
|
2533
|
-
if (
|
|
2496
|
+
})), Un(n(), [], { env: s(), bundleType: u() }), console.log(...W("log", "[PieItemPlayer] Item bundle initialized (bundle type: %s)", u())), r() && (Un(r(), [], { env: s(), bundleType: u() }), console.log(...W("log", "[PieItemPlayer] Passage bundle initialized (bundle type: %s)", u()))), await $(), console.log(...W("log", "[PieItemPlayer] Updating elements with session (length=" + o().length + ")")), ct(n(), o(), s()), r() && ct(r(), o(), s()), w(U, !0), !g(k)) {
|
|
2497
|
+
const p = document.querySelector(".pie-item-player"), T = (v) => {
|
|
2498
|
+
if (g(x))
|
|
2534
2499
|
return;
|
|
2535
|
-
const
|
|
2536
|
-
console.log("[PieItemPlayer] session-changed event received from PIE element"),
|
|
2500
|
+
const m = v;
|
|
2501
|
+
console.log("[PieItemPlayer] session-changed event received from PIE element"), w(x, !0);
|
|
2537
2502
|
try {
|
|
2538
|
-
|
|
2503
|
+
y("session-changed", m.detail);
|
|
2539
2504
|
} finally {
|
|
2540
2505
|
setTimeout(
|
|
2541
2506
|
() => {
|
|
2542
|
-
|
|
2507
|
+
w(x, !1);
|
|
2543
2508
|
},
|
|
2544
2509
|
0
|
|
2545
2510
|
);
|
|
2546
2511
|
}
|
|
2547
2512
|
};
|
|
2548
|
-
|
|
2513
|
+
p && (p.addEventListener("session-changed", T), w(k, !0), console.log("[PieItemPlayer] session-changed listener attached to root element"));
|
|
2549
2514
|
}
|
|
2550
|
-
|
|
2551
|
-
} catch (
|
|
2552
|
-
console.error(...
|
|
2515
|
+
console.log("[PieItemPlayer] ✅ Initialization complete, dispatching load-complete event"), y("load-complete");
|
|
2516
|
+
} catch (p) {
|
|
2517
|
+
console.error(...W("error", "[PieItemPlayer] Error initializing:", p)), y("player-error", p.message);
|
|
2553
2518
|
}
|
|
2554
2519
|
}));
|
|
2555
|
-
}),
|
|
2556
|
-
!
|
|
2520
|
+
}), De(() => {
|
|
2521
|
+
!g(U) || !s() || !n() || !o() || (console.log("[PieItemPlayer] Dependencies changed, updating elements"), console.log(...W("log", "[PieItemPlayer] Env:", s())), console.log(...W("log", "[PieItemPlayer] Session (length=" + o().length + "):", o())), ct(n(), o(), s()), r() && ct(r(), o(), s()));
|
|
2557
2522
|
});
|
|
2558
|
-
var
|
|
2523
|
+
var V = Co(), j = se(V);
|
|
2559
2524
|
{
|
|
2560
|
-
var
|
|
2561
|
-
var
|
|
2562
|
-
|
|
2525
|
+
var Je = (p) => {
|
|
2526
|
+
var T = $o(), v = se(T);
|
|
2527
|
+
kn(v, () => r().markup), re(T), Ze(() => Ae(T, 1, g(O), "svelte-d1rctr")), ue(p, T);
|
|
2563
2528
|
};
|
|
2564
|
-
|
|
2565
|
-
r()?.markup &&
|
|
2529
|
+
et(j, (p) => {
|
|
2530
|
+
r()?.markup && p(Je);
|
|
2566
2531
|
});
|
|
2567
2532
|
}
|
|
2568
|
-
var
|
|
2533
|
+
var Ce = Vt(j, 2);
|
|
2569
2534
|
{
|
|
2570
|
-
var
|
|
2571
|
-
var
|
|
2572
|
-
|
|
2535
|
+
var kt = (p) => {
|
|
2536
|
+
var T = Eo(), v = se(T);
|
|
2537
|
+
kn(v, () => n().markup), re(T), Ze(() => Ae(T, 1, g(S), "svelte-d1rctr")), ue(p, T);
|
|
2573
2538
|
};
|
|
2574
|
-
|
|
2575
|
-
n()?.markup &&
|
|
2539
|
+
et(Ce, (p) => {
|
|
2540
|
+
n()?.markup && p(kt);
|
|
2576
2541
|
});
|
|
2577
2542
|
}
|
|
2578
|
-
return
|
|
2543
|
+
return re(V), ue(e, V), an({
|
|
2579
2544
|
get itemConfig() {
|
|
2580
2545
|
return n();
|
|
2581
2546
|
},
|
|
2582
|
-
set itemConfig(
|
|
2583
|
-
n(
|
|
2547
|
+
set itemConfig(p) {
|
|
2548
|
+
n(p), E();
|
|
2584
2549
|
},
|
|
2585
2550
|
get passageConfig() {
|
|
2586
2551
|
return r();
|
|
2587
2552
|
},
|
|
2588
|
-
set passageConfig(
|
|
2589
|
-
r(
|
|
2553
|
+
set passageConfig(p = null) {
|
|
2554
|
+
r(p), E();
|
|
2590
2555
|
},
|
|
2591
2556
|
get env() {
|
|
2592
2557
|
return s();
|
|
2593
2558
|
},
|
|
2594
|
-
set env(
|
|
2595
|
-
s(
|
|
2559
|
+
set env(p = { mode: "gather", role: "student" }) {
|
|
2560
|
+
s(p), E();
|
|
2596
2561
|
},
|
|
2597
2562
|
get session() {
|
|
2598
2563
|
return o();
|
|
2599
2564
|
},
|
|
2600
|
-
set session(
|
|
2601
|
-
o(
|
|
2565
|
+
set session(p = []) {
|
|
2566
|
+
o(p), E();
|
|
2602
2567
|
},
|
|
2603
2568
|
get addCorrectResponse() {
|
|
2604
2569
|
return i();
|
|
2605
2570
|
},
|
|
2606
|
-
set addCorrectResponse(
|
|
2607
|
-
i(
|
|
2571
|
+
set addCorrectResponse(p = !1) {
|
|
2572
|
+
i(p), E();
|
|
2608
2573
|
},
|
|
2609
2574
|
get customClassname() {
|
|
2610
2575
|
return a();
|
|
2611
2576
|
},
|
|
2612
|
-
set customClassname(
|
|
2613
|
-
a(
|
|
2577
|
+
set customClassname(p = "") {
|
|
2578
|
+
a(p), E();
|
|
2614
2579
|
},
|
|
2615
2580
|
get passageContainerClass() {
|
|
2616
2581
|
return c();
|
|
2617
2582
|
},
|
|
2618
|
-
set passageContainerClass(
|
|
2619
|
-
c(
|
|
2583
|
+
set passageContainerClass(p = "") {
|
|
2584
|
+
c(p), E();
|
|
2620
2585
|
},
|
|
2621
2586
|
get containerClass() {
|
|
2622
2587
|
return l();
|
|
2623
2588
|
},
|
|
2624
|
-
set containerClass(
|
|
2625
|
-
l(
|
|
2589
|
+
set containerClass(p = "") {
|
|
2590
|
+
l(p), E();
|
|
2626
2591
|
},
|
|
2627
|
-
get
|
|
2592
|
+
get bundleType() {
|
|
2628
2593
|
return u();
|
|
2629
2594
|
},
|
|
2630
|
-
set
|
|
2631
|
-
u(
|
|
2595
|
+
set bundleType(p = z.player) {
|
|
2596
|
+
u(p), E();
|
|
2597
|
+
},
|
|
2598
|
+
get onLoadComplete() {
|
|
2599
|
+
return d();
|
|
2600
|
+
},
|
|
2601
|
+
set onLoadComplete(p) {
|
|
2602
|
+
d(p), E();
|
|
2632
2603
|
},
|
|
2633
2604
|
get onPlayerError() {
|
|
2634
2605
|
return f();
|
|
2635
2606
|
},
|
|
2636
|
-
set onPlayerError(
|
|
2637
|
-
f(
|
|
2607
|
+
set onPlayerError(p) {
|
|
2608
|
+
f(p), E();
|
|
2638
2609
|
},
|
|
2639
2610
|
get onSessionChanged() {
|
|
2640
|
-
return
|
|
2611
|
+
return h();
|
|
2641
2612
|
},
|
|
2642
|
-
set onSessionChanged(
|
|
2643
|
-
|
|
2613
|
+
set onSessionChanged(p) {
|
|
2614
|
+
h(p), E();
|
|
2644
2615
|
},
|
|
2645
|
-
...
|
|
2616
|
+
...xr()
|
|
2646
2617
|
});
|
|
2647
2618
|
}
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2619
|
+
mr(le);
|
|
2620
|
+
Rr(
|
|
2621
|
+
le,
|
|
2651
2622
|
{
|
|
2652
2623
|
itemConfig: {},
|
|
2653
2624
|
passageConfig: {},
|
|
@@ -2657,6 +2628,7 @@ Er(
|
|
|
2657
2628
|
customClassname: {},
|
|
2658
2629
|
passageContainerClass: {},
|
|
2659
2630
|
containerClass: {},
|
|
2631
|
+
bundleType: {},
|
|
2660
2632
|
onLoadComplete: {},
|
|
2661
2633
|
onPlayerError: {},
|
|
2662
2634
|
onSessionChanged: {}
|
|
@@ -2665,13 +2637,75 @@ Er(
|
|
|
2665
2637
|
[],
|
|
2666
2638
|
!0
|
|
2667
2639
|
);
|
|
2668
|
-
const
|
|
2640
|
+
const Dn = {
|
|
2669
2641
|
trackPageActions: !1
|
|
2642
|
+
}, Qt = (e) => {
|
|
2643
|
+
const t = "--version-", n = (c) => {
|
|
2644
|
+
const l = c.match(`${t}(\\d+-\\d+-\\d+)$`);
|
|
2645
|
+
return l ? {
|
|
2646
|
+
baseName: c.replace(`${t}${l[1]}`, ""),
|
|
2647
|
+
existingVersion: l[1].replace(/-/g, ".")
|
|
2648
|
+
} : { baseName: c };
|
|
2649
|
+
}, r = (c, l) => {
|
|
2650
|
+
const { baseName: u, existingVersion: d } = n(c), { version: f } = Fr(l);
|
|
2651
|
+
return d !== f ? `${u}${t}${f.replace(/\./g, "-")}` : c;
|
|
2652
|
+
}, s = Object.entries(e.config.elements).reduce(
|
|
2653
|
+
(c, [l, u]) => {
|
|
2654
|
+
const d = r(l, u);
|
|
2655
|
+
return {
|
|
2656
|
+
...c,
|
|
2657
|
+
[l]: {
|
|
2658
|
+
versionedName: d,
|
|
2659
|
+
package: u
|
|
2660
|
+
}
|
|
2661
|
+
};
|
|
2662
|
+
},
|
|
2663
|
+
{}
|
|
2664
|
+
), o = Object.entries(s).reduce(
|
|
2665
|
+
(c, [l, { versionedName: u }]) => l !== u ? c.replace(new RegExp(`<${l}`, "g"), `<${u}`).replace(new RegExp(`</${l}`, "g"), `</${u}`) : c,
|
|
2666
|
+
e.config.markup
|
|
2667
|
+
), i = Object.values(s).reduce(
|
|
2668
|
+
(c, { versionedName: l, package: u }) => ({
|
|
2669
|
+
...c,
|
|
2670
|
+
[l]: u
|
|
2671
|
+
}),
|
|
2672
|
+
{}
|
|
2673
|
+
), a = e.config.models.map((c) => {
|
|
2674
|
+
const l = c.element, u = s[l];
|
|
2675
|
+
if (u && u.versionedName !== l)
|
|
2676
|
+
return {
|
|
2677
|
+
...c,
|
|
2678
|
+
element: u.versionedName
|
|
2679
|
+
};
|
|
2680
|
+
if (i[l])
|
|
2681
|
+
return c;
|
|
2682
|
+
const d = Object.entries(s).filter(([f, { versionedName: h }]) => {
|
|
2683
|
+
const { baseName: _ } = n(f);
|
|
2684
|
+
return _ === l;
|
|
2685
|
+
});
|
|
2686
|
+
if (d.length > 0) {
|
|
2687
|
+
const [, { versionedName: f }] = d[0];
|
|
2688
|
+
return {
|
|
2689
|
+
...c,
|
|
2690
|
+
element: f
|
|
2691
|
+
};
|
|
2692
|
+
}
|
|
2693
|
+
return c;
|
|
2694
|
+
});
|
|
2695
|
+
return {
|
|
2696
|
+
...e,
|
|
2697
|
+
config: {
|
|
2698
|
+
...e.config,
|
|
2699
|
+
elements: i,
|
|
2700
|
+
markup: o,
|
|
2701
|
+
models: a
|
|
2702
|
+
}
|
|
2703
|
+
};
|
|
2670
2704
|
};
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
var
|
|
2674
|
-
/* @__PURE__ */
|
|
2705
|
+
_r();
|
|
2706
|
+
ge[R] = "src/lib/tags/pie-fixed-player/PieFixedPlayer.svelte";
|
|
2707
|
+
var So = $e(
|
|
2708
|
+
/* @__PURE__ */ Ee(`<div class="pie-player-error" style="
|
|
2675
2709
|
padding: 20px;
|
|
2676
2710
|
margin: 20px;
|
|
2677
2711
|
border: 2px solid #d32f2f;
|
|
@@ -2680,10 +2714,10 @@ var gs = ye(
|
|
|
2680
2714
|
color: #c62828;
|
|
2681
2715
|
font-family: sans-serif;
|
|
2682
2716
|
"><h3 style="margin: 0 0 10px 0">⚠️ Configuration Error</h3> <p style="margin: 0"> </p></div>`),
|
|
2683
|
-
|
|
2684
|
-
[[
|
|
2685
|
-
),
|
|
2686
|
-
const
|
|
2717
|
+
ge[R],
|
|
2718
|
+
[[300, 2, [[309, 3], [310, 3]]]]
|
|
2719
|
+
), xo = $e(/* @__PURE__ */ Ee('<div class="pie-loading" style="padding: 20px; text-align: center;"><p>Loading...</p></div>'), ge[R], [[313, 2, [[314, 3]]]]), To = $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>'), ge[R], [[319, 2, [[320, 3], [336, 3]]]]), Io = $e(/* @__PURE__ */ Ee("<div><!></div>"), ge[R], [[355, 2]]), Ro = $e(/* @__PURE__ */ Ee("<div><!></div>"), ge[R], [[298, 0]]);
|
|
2720
|
+
const ko = {
|
|
2687
2721
|
hash: "svelte-1ol77e0",
|
|
2688
2722
|
code: `
|
|
2689
2723
|
:host {
|
|
@@ -2699,32 +2733,31 @@ const $s = {
|
|
|
2699
2733
|
width: 100%;
|
|
2700
2734
|
}
|
|
2701
2735
|
|
|
2702
|
-
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
2736
|
+
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUGllRml4ZWRQbGF5ZXIuc3ZlbHRlIiwibWFwcGluZ3MiOiI7QUF5WEEsQ0FBQyxLQUFLLENBQUM7QUFDUCxFQUFFLGNBQWM7QUFDaEI7QUFDQTtBQUNBLENBQVMsaUJBQWtCLENBQUM7QUFDNUIsRUFBRSxXQUFXO0FBQ2I7QUFDQTtBQUNBLENBQVMsc0JBQXVCO0FBQ2hDLENBQVMsMEJBQTJCLENBQUM7QUFDckMsRUFBRSxXQUFXO0FBQ2IiLCJuYW1lcyI6W10sImlnbm9yZUxpc3QiOltdLCJzb3VyY2VzIjpbIlBpZUZpeGVkUGxheWVyLnN2ZWx0ZSJdfQ== */`
|
|
2703
2737
|
};
|
|
2704
|
-
function
|
|
2705
|
-
|
|
2706
|
-
let n =
|
|
2707
|
-
const
|
|
2708
|
-
let
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
Te(() => {
|
|
2738
|
+
function ge(e, t) {
|
|
2739
|
+
Sr(new.target), ln(t, !0, ge), Tr(e, ko);
|
|
2740
|
+
let n = C(t, "config", 7, null), r = C(t, "session", 23, () => ({ id: "", data: [] })), s = C(t, "env", 23, () => ({ mode: "gather", role: "student" })), o = C(t, "addCorrectResponse", 7, !1), i = C(t, "renderStimulus", 7, !0), a = C(t, "allowedResize", 7, !1), c = C(t, "showBottomBorder", 7, !1), l = C(t, "customClassname", 7, ""), u = C(t, "containerClass", 7, ""), d = C(t, "passageContainerClass", 7, ""), f = C(t, "externalStyleUrls", 7, ""), h = C(t, "bundleType", 7, "player.js"), _ = C(t, "loaderConfig", 7, Dn);
|
|
2741
|
+
const y = L(typeof window, "undefined", !1) && L(typeof document, "undefined", !1);
|
|
2742
|
+
let $ = D(!0), O = D(null), S = D(null), U = D(null), k = D(null);
|
|
2743
|
+
const x = l() || `pie-player-${Date.now().toString(36)}`;
|
|
2744
|
+
De(() => {
|
|
2712
2745
|
if (n()) {
|
|
2713
2746
|
performance.mark("pie-load-end");
|
|
2714
2747
|
try {
|
|
2715
|
-
const v =
|
|
2748
|
+
const v = L(typeof n(), "string") ? JSON.parse(n()) : n();
|
|
2716
2749
|
if (v.pie && v.passage) {
|
|
2717
|
-
const m =
|
|
2718
|
-
|
|
2750
|
+
const m = Qt({ config: v.pie }), I = Qt({ config: v.passage });
|
|
2751
|
+
w(S, m.config, !0), w(U, i() ? I.config : null, !0), w($, !1), w(O, null);
|
|
2719
2752
|
} else if (v.elements || v.models || v.markup) {
|
|
2720
|
-
const m =
|
|
2721
|
-
|
|
2753
|
+
const m = Qt({ config: v });
|
|
2754
|
+
w(S, m.config, !0), w(U, null), w($, !1), w(O, null);
|
|
2722
2755
|
} else {
|
|
2723
2756
|
const m = "Invalid config: must contain elements, models, and markup, or pie/passage structure";
|
|
2724
|
-
if (
|
|
2757
|
+
if (w(O, m), w($, !1), y && _()?.trackPageActions)
|
|
2725
2758
|
try {
|
|
2726
|
-
const
|
|
2727
|
-
|
|
2759
|
+
const I = window?.newrelic;
|
|
2760
|
+
I && L(typeof I.noticeError, "function") && I.noticeError(new Error(m), {
|
|
2728
2761
|
component: "pie-fixed-player",
|
|
2729
2762
|
errorType: "InvalidConfig"
|
|
2730
2763
|
});
|
|
@@ -2734,10 +2767,10 @@ function ve(e, t) {
|
|
|
2734
2767
|
}
|
|
2735
2768
|
} catch (v) {
|
|
2736
2769
|
const m = `Error parsing config: ${v.message}`;
|
|
2737
|
-
if (
|
|
2770
|
+
if (w(O, m), w($, !1), y && _()?.trackPageActions)
|
|
2738
2771
|
try {
|
|
2739
|
-
const
|
|
2740
|
-
|
|
2772
|
+
const I = window?.newrelic;
|
|
2773
|
+
I && L(typeof I.noticeError, "function") && I.noticeError(v, {
|
|
2741
2774
|
component: "pie-fixed-player",
|
|
2742
2775
|
errorType: "ConfigParseError"
|
|
2743
2776
|
});
|
|
@@ -2746,241 +2779,256 @@ function ve(e, t) {
|
|
|
2746
2779
|
}
|
|
2747
2780
|
}
|
|
2748
2781
|
} else
|
|
2749
|
-
|
|
2782
|
+
w(S, null), w(U, null), w($, !0);
|
|
2750
2783
|
});
|
|
2751
|
-
const
|
|
2752
|
-
if (!(!
|
|
2784
|
+
const V = async (v) => {
|
|
2785
|
+
if (!(!y || !v || L(typeof v, "string", !1))) {
|
|
2753
2786
|
if (document.querySelector(`style[data-pie-style="${v}"]`)) {
|
|
2754
|
-
console.log(...
|
|
2787
|
+
console.log(...W("log", `[pie-fixed-player] Stylesheet already loaded: ${v}`));
|
|
2755
2788
|
return;
|
|
2756
2789
|
}
|
|
2757
2790
|
try {
|
|
2758
|
-
const
|
|
2759
|
-
|
|
2791
|
+
const G = (await (await fetch(v)).text()).replace(/([^\r\n,{}]+)(,(?=[^}]*{)|\s*{)/g, `.pie-fixed-player.${x} $1$2`), ne = document.createElement("style");
|
|
2792
|
+
ne.setAttribute("data-pie-style", v), ne.textContent = G, document.head.appendChild(ne), console.log(...W("log", `[pie-fixed-player] Loaded and scoped stylesheet: ${v}`));
|
|
2760
2793
|
} catch (m) {
|
|
2761
|
-
console.error(...
|
|
2794
|
+
console.error(...W("error", `[pie-fixed-player] Failed to load external stylesheet: ${v}`, m));
|
|
2762
2795
|
}
|
|
2763
2796
|
}
|
|
2764
2797
|
};
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
m &&
|
|
2798
|
+
De(() => {
|
|
2799
|
+
f() && L(typeof f(), "string") && f().split(",").map((m) => m.trim()).forEach((m) => {
|
|
2800
|
+
m && V(m);
|
|
2768
2801
|
});
|
|
2769
|
-
}),
|
|
2770
|
-
if (!
|
|
2771
|
-
const v =
|
|
2802
|
+
}), De(() => {
|
|
2803
|
+
if (!g(S)?.resources?.stylesheets) return;
|
|
2804
|
+
const v = g(S).resources.stylesheets;
|
|
2772
2805
|
Array.isArray(v) && v.forEach((m) => {
|
|
2773
|
-
const
|
|
2774
|
-
|
|
2806
|
+
const I = m?.url;
|
|
2807
|
+
I && L(typeof I, "string") && V(I);
|
|
2775
2808
|
});
|
|
2776
|
-
}),
|
|
2777
|
-
c() &&
|
|
2778
|
-
Object.keys(
|
|
2779
|
-
document.querySelectorAll(m).forEach((
|
|
2780
|
-
|
|
2809
|
+
}), De(() => {
|
|
2810
|
+
c() && L(s().mode, "evaluate") && g(S)?.elements && cr().then(() => {
|
|
2811
|
+
Object.keys(g(S).elements).forEach((m) => {
|
|
2812
|
+
document.querySelectorAll(m).forEach((G) => {
|
|
2813
|
+
G instanceof HTMLElement && (G.style.borderBottom = "1px solid #ddd", G.style.paddingBottom = "20px", G.style.marginBottom = "20px");
|
|
2781
2814
|
});
|
|
2782
2815
|
});
|
|
2783
2816
|
});
|
|
2784
2817
|
});
|
|
2785
|
-
const
|
|
2818
|
+
const j = (v) => {
|
|
2786
2819
|
const m = new CustomEvent(v.type, {
|
|
2787
2820
|
detail: v.detail,
|
|
2788
2821
|
bubbles: !0,
|
|
2789
2822
|
composed: !0
|
|
2790
2823
|
});
|
|
2791
|
-
dispatchEvent(m);
|
|
2792
|
-
},
|
|
2793
|
-
|
|
2824
|
+
g(k)?.parentElement ? (g(k).parentElement.dispatchEvent(m), console.log(...W("log", `[pie-fixed-player] Dispatched ${v.type} event from custom element host`))) : console.warn("[pie-fixed-player] Cannot dispatch event: custom element host not found");
|
|
2825
|
+
}, Je = (v) => {
|
|
2826
|
+
j(v);
|
|
2794
2827
|
};
|
|
2795
|
-
var
|
|
2796
|
-
|
|
2797
|
-
var
|
|
2828
|
+
var Ce = Ro();
|
|
2829
|
+
Ae(Ce, 1, `pie-fixed-player ${x ?? ""}`);
|
|
2830
|
+
var kt = se(Ce);
|
|
2798
2831
|
{
|
|
2799
|
-
var
|
|
2800
|
-
var m =
|
|
2801
|
-
|
|
2802
|
-
},
|
|
2832
|
+
var p = (v) => {
|
|
2833
|
+
var m = So(), I = Vt(se(m), 2), G = se(I, !0);
|
|
2834
|
+
re(I), re(m), Ze(() => to(G, g(O))), ue(v, m);
|
|
2835
|
+
}, T = (v, m) => {
|
|
2803
2836
|
{
|
|
2804
|
-
var
|
|
2805
|
-
var
|
|
2806
|
-
|
|
2807
|
-
},
|
|
2837
|
+
var I = (ne) => {
|
|
2838
|
+
var Lt = xo();
|
|
2839
|
+
ue(ne, Lt);
|
|
2840
|
+
}, G = (ne, Lt) => {
|
|
2808
2841
|
{
|
|
2809
|
-
var
|
|
2810
|
-
var
|
|
2811
|
-
const
|
|
2812
|
-
|
|
2842
|
+
var Ur = (Oe) => {
|
|
2843
|
+
var _e = To(), Fe = se(_e), Ot = se(Fe);
|
|
2844
|
+
const Ft = ee(() => L(typeof s(), "string") ? JSON.parse(s()) : s()), Bt = ee(() => (L(typeof r(), "string") ? JSON.parse(r()) : r()).data || []), me = ee(() => L(h(), "client-player.js") ? z.clientPlayer : z.player);
|
|
2845
|
+
le(Ot, {
|
|
2813
2846
|
get itemConfig() {
|
|
2814
|
-
return
|
|
2847
|
+
return g(U);
|
|
2815
2848
|
},
|
|
2816
2849
|
get env() {
|
|
2817
|
-
return
|
|
2850
|
+
return g(Ft);
|
|
2818
2851
|
},
|
|
2819
2852
|
get session() {
|
|
2820
|
-
return
|
|
2853
|
+
return g(Bt);
|
|
2821
2854
|
},
|
|
2822
2855
|
get addCorrectResponse() {
|
|
2823
2856
|
return o();
|
|
2824
2857
|
},
|
|
2825
|
-
customClassname:
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2858
|
+
customClassname: x,
|
|
2859
|
+
get bundleType() {
|
|
2860
|
+
return g(me);
|
|
2861
|
+
},
|
|
2862
|
+
onLoadComplete: (J) => j(new CustomEvent("load-complete", { detail: J })),
|
|
2863
|
+
onPlayerError: (J) => j(new CustomEvent("player-error", { detail: J })),
|
|
2864
|
+
onSessionChanged: (J) => Je(new CustomEvent("session-changed", { detail: J }))
|
|
2865
|
+
}), re(Fe);
|
|
2866
|
+
var Ut = Vt(Fe, 2), Ar = se(Ut);
|
|
2867
|
+
const Nr = ee(() => L(typeof s(), "string") ? JSON.parse(s()) : s()), jr = ee(() => (L(typeof r(), "string") ? JSON.parse(r()) : r()).data || []), Qr = ee(() => L(h(), "client-player.js") ? z.clientPlayer : z.player);
|
|
2868
|
+
le(Ar, {
|
|
2833
2869
|
get itemConfig() {
|
|
2834
|
-
return
|
|
2870
|
+
return g(S);
|
|
2835
2871
|
},
|
|
2836
2872
|
get env() {
|
|
2837
|
-
return
|
|
2873
|
+
return g(Nr);
|
|
2838
2874
|
},
|
|
2839
2875
|
get session() {
|
|
2840
|
-
return
|
|
2876
|
+
return g(jr);
|
|
2841
2877
|
},
|
|
2842
2878
|
get addCorrectResponse() {
|
|
2843
2879
|
return o();
|
|
2844
2880
|
},
|
|
2845
|
-
customClassname:
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2881
|
+
customClassname: x,
|
|
2882
|
+
get bundleType() {
|
|
2883
|
+
return g(Qr);
|
|
2884
|
+
},
|
|
2885
|
+
onLoadComplete: (J) => j(new CustomEvent("load-complete", { detail: J })),
|
|
2886
|
+
onPlayerError: (J) => j(new CustomEvent("player-error", { detail: J })),
|
|
2887
|
+
onSessionChanged: (J) => Je(new CustomEvent("session-changed", { detail: J }))
|
|
2888
|
+
}), re(Ut), re(_e), Ze(() => {
|
|
2889
|
+
Ae(Fe, 1, `player-stimulus-container ${d() ?? ""}`), Ae(Ut, 1, `player-item-container ${u() ?? ""}`);
|
|
2890
|
+
}), ue(Oe, _e);
|
|
2891
|
+
}, Dr = (Oe) => {
|
|
2892
|
+
var _e = Io(), Fe = se(_e);
|
|
2893
|
+
const Ot = ee(() => L(typeof s(), "string") ? JSON.parse(s()) : s()), Ft = ee(() => (L(typeof r(), "string") ? JSON.parse(r()) : r()).data || []), Bt = ee(() => L(h(), "client-player.js") ? z.clientPlayer : z.player);
|
|
2894
|
+
le(Fe, {
|
|
2856
2895
|
get itemConfig() {
|
|
2857
|
-
return
|
|
2896
|
+
return g(S);
|
|
2858
2897
|
},
|
|
2859
2898
|
get passageConfig() {
|
|
2860
|
-
return
|
|
2899
|
+
return g(U);
|
|
2861
2900
|
},
|
|
2862
2901
|
get env() {
|
|
2863
|
-
return
|
|
2902
|
+
return g(Ot);
|
|
2864
2903
|
},
|
|
2865
2904
|
get session() {
|
|
2866
|
-
return
|
|
2905
|
+
return g(Ft);
|
|
2867
2906
|
},
|
|
2868
2907
|
get addCorrectResponse() {
|
|
2869
2908
|
return o();
|
|
2870
2909
|
},
|
|
2871
|
-
customClassname:
|
|
2910
|
+
customClassname: x,
|
|
2872
2911
|
get passageContainerClass() {
|
|
2873
|
-
return
|
|
2912
|
+
return d();
|
|
2874
2913
|
},
|
|
2875
2914
|
get containerClass() {
|
|
2876
2915
|
return u();
|
|
2877
2916
|
},
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2917
|
+
get bundleType() {
|
|
2918
|
+
return g(Bt);
|
|
2919
|
+
},
|
|
2920
|
+
onLoadComplete: (me) => j(new CustomEvent("load-complete", { detail: me })),
|
|
2921
|
+
onPlayerError: (me) => j(new CustomEvent("player-error", { detail: me })),
|
|
2922
|
+
onSessionChanged: (me) => Je(new CustomEvent("session-changed", { detail: me }))
|
|
2923
|
+
}), re(_e), Ze(() => Ae(_e, 1, `player-item-container ${u() ?? ""}`)), ue(Oe, _e);
|
|
2882
2924
|
};
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
(
|
|
2886
|
-
|
|
2925
|
+
et(
|
|
2926
|
+
ne,
|
|
2927
|
+
(Oe) => {
|
|
2928
|
+
g(U) && i() ? Oe(Ur) : Oe(Dr, !1);
|
|
2887
2929
|
},
|
|
2888
|
-
|
|
2930
|
+
Lt
|
|
2889
2931
|
);
|
|
2890
2932
|
}
|
|
2891
2933
|
};
|
|
2892
|
-
|
|
2934
|
+
et(
|
|
2893
2935
|
v,
|
|
2894
|
-
(
|
|
2895
|
-
|
|
2936
|
+
(ne) => {
|
|
2937
|
+
g($) || !g(S) ? ne(I) : ne(G, !1);
|
|
2896
2938
|
},
|
|
2897
2939
|
m
|
|
2898
2940
|
);
|
|
2899
2941
|
}
|
|
2900
2942
|
};
|
|
2901
|
-
|
|
2902
|
-
|
|
2943
|
+
et(kt, (v) => {
|
|
2944
|
+
g(O) ? v(p) : v(T, !1);
|
|
2903
2945
|
});
|
|
2904
2946
|
}
|
|
2905
|
-
return
|
|
2947
|
+
return re(Ce), io(Ce, (v) => w(k, v), () => g(k)), ue(e, Ce), an({
|
|
2906
2948
|
get config() {
|
|
2907
2949
|
return n();
|
|
2908
2950
|
},
|
|
2909
2951
|
set config(v = null) {
|
|
2910
|
-
n(v),
|
|
2952
|
+
n(v), E();
|
|
2911
2953
|
},
|
|
2912
2954
|
get session() {
|
|
2913
2955
|
return r();
|
|
2914
2956
|
},
|
|
2915
2957
|
set session(v = { id: "", data: [] }) {
|
|
2916
|
-
r(v),
|
|
2958
|
+
r(v), E();
|
|
2917
2959
|
},
|
|
2918
2960
|
get env() {
|
|
2919
2961
|
return s();
|
|
2920
2962
|
},
|
|
2921
2963
|
set env(v = { mode: "gather", role: "student" }) {
|
|
2922
|
-
s(v),
|
|
2964
|
+
s(v), E();
|
|
2923
2965
|
},
|
|
2924
2966
|
get addCorrectResponse() {
|
|
2925
2967
|
return o();
|
|
2926
2968
|
},
|
|
2927
2969
|
set addCorrectResponse(v = !1) {
|
|
2928
|
-
o(v),
|
|
2970
|
+
o(v), E();
|
|
2929
2971
|
},
|
|
2930
2972
|
get renderStimulus() {
|
|
2931
2973
|
return i();
|
|
2932
2974
|
},
|
|
2933
2975
|
set renderStimulus(v = !0) {
|
|
2934
|
-
i(v),
|
|
2976
|
+
i(v), E();
|
|
2935
2977
|
},
|
|
2936
2978
|
get allowedResize() {
|
|
2937
2979
|
return a();
|
|
2938
2980
|
},
|
|
2939
2981
|
set allowedResize(v = !1) {
|
|
2940
|
-
a(v),
|
|
2982
|
+
a(v), E();
|
|
2941
2983
|
},
|
|
2942
2984
|
get showBottomBorder() {
|
|
2943
2985
|
return c();
|
|
2944
2986
|
},
|
|
2945
2987
|
set showBottomBorder(v = !1) {
|
|
2946
|
-
c(v),
|
|
2988
|
+
c(v), E();
|
|
2947
2989
|
},
|
|
2948
2990
|
get customClassname() {
|
|
2949
2991
|
return l();
|
|
2950
2992
|
},
|
|
2951
2993
|
set customClassname(v = "") {
|
|
2952
|
-
l(v),
|
|
2994
|
+
l(v), E();
|
|
2953
2995
|
},
|
|
2954
2996
|
get containerClass() {
|
|
2955
2997
|
return u();
|
|
2956
2998
|
},
|
|
2957
2999
|
set containerClass(v = "") {
|
|
2958
|
-
u(v),
|
|
3000
|
+
u(v), E();
|
|
2959
3001
|
},
|
|
2960
3002
|
get passageContainerClass() {
|
|
2961
|
-
return
|
|
3003
|
+
return d();
|
|
2962
3004
|
},
|
|
2963
3005
|
set passageContainerClass(v = "") {
|
|
2964
|
-
|
|
3006
|
+
d(v), E();
|
|
2965
3007
|
},
|
|
2966
3008
|
get externalStyleUrls() {
|
|
2967
|
-
return
|
|
3009
|
+
return f();
|
|
2968
3010
|
},
|
|
2969
3011
|
set externalStyleUrls(v = "") {
|
|
2970
|
-
|
|
3012
|
+
f(v), E();
|
|
2971
3013
|
},
|
|
2972
|
-
get
|
|
3014
|
+
get bundleType() {
|
|
2973
3015
|
return h();
|
|
2974
3016
|
},
|
|
2975
|
-
set
|
|
2976
|
-
h(v),
|
|
3017
|
+
set bundleType(v = "player.js") {
|
|
3018
|
+
h(v), E();
|
|
3019
|
+
},
|
|
3020
|
+
get loaderConfig() {
|
|
3021
|
+
return _();
|
|
3022
|
+
},
|
|
3023
|
+
set loaderConfig(v = Dn) {
|
|
3024
|
+
_(v), E();
|
|
2977
3025
|
},
|
|
2978
|
-
...
|
|
3026
|
+
...xr()
|
|
2979
3027
|
});
|
|
2980
3028
|
}
|
|
2981
|
-
|
|
2982
|
-
customElements.define("pie-fixed-player",
|
|
2983
|
-
|
|
3029
|
+
mr(ge);
|
|
3030
|
+
customElements.define("pie-fixed-player", Rr(
|
|
3031
|
+
ge,
|
|
2984
3032
|
{
|
|
2985
3033
|
config: { attribute: "config", type: "Object" },
|
|
2986
3034
|
session: { attribute: "session", type: "Object" },
|
|
@@ -3005,6 +3053,7 @@ customElements.define("pie-fixed-player", Er(
|
|
|
3005
3053
|
attribute: "external-style-urls",
|
|
3006
3054
|
type: "String"
|
|
3007
3055
|
},
|
|
3056
|
+
bundleType: { attribute: "bundle-type", type: "String" },
|
|
3008
3057
|
loaderConfig: { attribute: "loader-config", type: "Object" }
|
|
3009
3058
|
},
|
|
3010
3059
|
[],
|