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