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