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