@pie-players/pie-tool-line-reader 0.3.20 → 0.3.21
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/dist/tool-line-reader.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as g } from "./defineProperty-CyepwRr5.js";
|
|
2
2
|
if (typeof window < "u") {
|
|
3
|
-
var
|
|
4
|
-
((
|
|
3
|
+
var zr, Vr;
|
|
4
|
+
((zr = (Vr = window).__svelte ?? (Vr.__svelte = {})).v ?? (zr.v = /* @__PURE__ */ new Set())).add("5");
|
|
5
5
|
}
|
|
6
|
-
var Xe = {}, N = Symbol(),
|
|
7
|
-
var
|
|
6
|
+
var Xe = {}, N = Symbol(), Va = Symbol("filename");
|
|
7
|
+
var qn = Array.isArray, Yn = Array.prototype.indexOf, Je = Array.prototype.includes, Kn = Array.from, Pt = Object.keys, xt = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, Xn = Object.getOwnPropertyDescriptors, Jn = Object.prototype, Qn = Array.prototype, Ti = Object.getPrototypeOf, Fr = Object.isExtensible, Zn = () => {
|
|
8
8
|
};
|
|
9
|
-
function
|
|
9
|
+
function eo(e) {
|
|
10
10
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function ki() {
|
|
13
13
|
var e, t;
|
|
14
14
|
return {
|
|
15
15
|
promise: new Promise((r, i) => {
|
|
@@ -19,51 +19,51 @@ function Ti() {
|
|
|
19
19
|
reject: t
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
var
|
|
22
|
+
var Fa = 1 << 24, K = 1024, le = 2048, Ve = 4096, vr = 8192, to = 16384, _r = 32768, Wr = 1 << 25, gr = 65536, Wa = 1 << 17, Ba = 1 << 18, it = 1 << 19, ro = 1 << 20, Ha = 1 << 25, pt = 65536, Br = 1 << 21, io = 1 << 22, Rt = 1 << 23, lt = Symbol("$state"), Si = Symbol("legacy props"), no = Symbol(""), oo = Symbol("proxy path"), pe = new class extends Error {
|
|
23
23
|
constructor(...t) {
|
|
24
24
|
super(...t), g(this, "name", "StaleReactionError"), g(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
25
25
|
}
|
|
26
|
-
}(),
|
|
27
|
-
function
|
|
26
|
+
}(), so = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
27
|
+
function ao(e) {
|
|
28
28
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function lo() {
|
|
31
31
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function co(e) {
|
|
34
34
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function uo() {
|
|
37
37
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function fo(e) {
|
|
40
40
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function ho() {
|
|
43
43
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function po() {
|
|
46
46
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function vo(e) {
|
|
49
49
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function _o() {
|
|
52
52
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function go() {
|
|
55
55
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function mo() {
|
|
58
58
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function bo() {
|
|
61
61
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
62
62
|
}
|
|
63
63
|
function zt(e) {
|
|
64
64
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function yo() {
|
|
67
67
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
68
68
|
}
|
|
69
69
|
var O = !1;
|
|
@@ -79,20 +79,20 @@ function re(e) {
|
|
|
79
79
|
function mr() {
|
|
80
80
|
return re(/* @__PURE__ */ me(I));
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Hr(e) {
|
|
83
83
|
if (O) {
|
|
84
84
|
if (/* @__PURE__ */ me(I) !== null)
|
|
85
85
|
throw zt(), Xe;
|
|
86
86
|
I = e;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
function
|
|
89
|
+
function $i(e = 1) {
|
|
90
90
|
if (O) {
|
|
91
91
|
for (var t = e, r = I; t--; ) r = /* @__PURE__ */ me(r);
|
|
92
92
|
I = r;
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Ii(e = !0) {
|
|
96
96
|
for (var t = 0, r = I; ; ) {
|
|
97
97
|
if (r.nodeType === 8) {
|
|
98
98
|
var i = r.data;
|
|
@@ -105,32 +105,32 @@ function $i(e = !0) {
|
|
|
105
105
|
e && r.remove(), r = n;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function wo(e) {
|
|
109
109
|
if (!e || e.nodeType !== 8)
|
|
110
110
|
throw zt(), Xe;
|
|
111
111
|
return e.data;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function Ai(e) {
|
|
114
114
|
return e === this.v;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function To(e, t) {
|
|
117
117
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
return !
|
|
119
|
+
function Ei(e) {
|
|
120
|
+
return !To(e, this.v);
|
|
121
121
|
}
|
|
122
122
|
var Ee = !1, vt = !1;
|
|
123
|
-
function
|
|
124
|
-
return e.label = t,
|
|
123
|
+
function Ur(e, t) {
|
|
124
|
+
return e.label = t, ko(e.v, t), e;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
return e?.[
|
|
126
|
+
function ko(e, t) {
|
|
127
|
+
return e?.[oo]?.(t), e;
|
|
128
128
|
}
|
|
129
129
|
var R = null;
|
|
130
130
|
function Qe(e) {
|
|
131
131
|
R = e;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Mi(e, t = !1, r) {
|
|
134
134
|
R = {
|
|
135
135
|
p: R,
|
|
136
136
|
i: !1,
|
|
@@ -146,11 +146,11 @@ function Ei(e, t = !1, r) {
|
|
|
146
146
|
} : null
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function Oi(e) {
|
|
150
150
|
var t = R, r = t.e;
|
|
151
151
|
if (r !== null) {
|
|
152
152
|
t.e = null;
|
|
153
|
-
for (var i of r)
|
|
153
|
+
for (var i of r) rn(i);
|
|
154
154
|
}
|
|
155
155
|
return e !== void 0 && (t.x = e), t.i = !0, R = t.p, e ?? {};
|
|
156
156
|
}
|
|
@@ -158,23 +158,23 @@ function _t() {
|
|
|
158
158
|
return !vt || R !== null && R.l === null;
|
|
159
159
|
}
|
|
160
160
|
var Re = [];
|
|
161
|
-
function
|
|
161
|
+
function Pi() {
|
|
162
162
|
var e = Re;
|
|
163
|
-
Re = [],
|
|
163
|
+
Re = [], eo(e);
|
|
164
164
|
}
|
|
165
165
|
function Ze(e) {
|
|
166
166
|
if (Re.length === 0 && !ct) {
|
|
167
167
|
var t = Re;
|
|
168
168
|
queueMicrotask(() => {
|
|
169
|
-
t === Re &&
|
|
169
|
+
t === Re && Pi();
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
172
|
Re.push(e);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
for (; Re.length > 0; )
|
|
174
|
+
function So() {
|
|
175
|
+
for (; Re.length > 0; ) Pi();
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function xi(e) {
|
|
178
178
|
var t = k;
|
|
179
179
|
if (t === null)
|
|
180
180
|
return S.f |= Rt, e;
|
|
@@ -197,23 +197,23 @@ function $e(e, t) {
|
|
|
197
197
|
}
|
|
198
198
|
throw e;
|
|
199
199
|
}
|
|
200
|
-
var
|
|
200
|
+
var $o = ~(le | Ve | K);
|
|
201
201
|
function C(e, t) {
|
|
202
|
-
e.f = e.f &
|
|
202
|
+
e.f = e.f & $o | t;
|
|
203
203
|
}
|
|
204
204
|
function br(e) {
|
|
205
205
|
e.f & 512 || e.deps === null ? C(e, K) : C(e, Ve);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function Ri(e) {
|
|
208
208
|
if (e !== null)
|
|
209
209
|
for (const t of e)
|
|
210
|
-
!(t.f & 2) || !(t.f & 65536) || (t.f ^= pt,
|
|
210
|
+
!(t.f & 2) || !(t.f & 65536) || (t.f ^= pt, Ri(t.deps));
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e),
|
|
212
|
+
function Ci(e, t, r) {
|
|
213
|
+
e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e), Ri(e.deps), C(e, K);
|
|
214
214
|
}
|
|
215
|
-
var
|
|
216
|
-
function
|
|
215
|
+
var Io = !1, wt = !1;
|
|
216
|
+
function Ao(e) {
|
|
217
217
|
var t = wt;
|
|
218
218
|
try {
|
|
219
219
|
return wt = !1, [e(), wt];
|
|
@@ -221,14 +221,14 @@ function Io(e) {
|
|
|
221
221
|
wt = t;
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function Li(e, t) {
|
|
225
225
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
226
226
|
}
|
|
227
227
|
function yr(e, t) {
|
|
228
|
-
|
|
228
|
+
Li(e, t), t.add(e);
|
|
229
229
|
}
|
|
230
230
|
function T(e, t, r) {
|
|
231
|
-
|
|
231
|
+
Li(e, t), t.set(e, r);
|
|
232
232
|
}
|
|
233
233
|
function M(e, t, r) {
|
|
234
234
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
|
|
@@ -240,10 +240,10 @@ function l(e, t) {
|
|
|
240
240
|
function b(e, t, r) {
|
|
241
241
|
return e.set(M(e, t), r), r;
|
|
242
242
|
}
|
|
243
|
-
var
|
|
244
|
-
var
|
|
243
|
+
var Ni, ve = /* @__PURE__ */ new Set(), $ = null, Gr = null, z = null, nr = null, ct = !1, Yt = !1, et = null, Ct = null, Di = 0;
|
|
244
|
+
var Eo = 1, Lt = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), Q = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), ne = /* @__PURE__ */ new WeakSet(), Fe = class ji {
|
|
245
245
|
constructor() {
|
|
246
|
-
yr(this, ne), g(this, "id",
|
|
246
|
+
yr(this, ne), g(this, "id", Eo++), g(this, "current", /* @__PURE__ */ new Map()), g(this, "previous", /* @__PURE__ */ new Map()), T(this, Lt, /* @__PURE__ */ new Set()), T(this, Tt, /* @__PURE__ */ new Set()), T(this, Be, 0), T(this, He, 0), T(this, It, null), T(this, Q, []), T(this, ft, /* @__PURE__ */ new Set()), T(this, Ne, /* @__PURE__ */ new Set()), T(this, xe, /* @__PURE__ */ new Map()), g(this, "is_fork", !1), T(this, kt, !1);
|
|
247
247
|
}
|
|
248
248
|
skip_effect(t) {
|
|
249
249
|
l(xe, this).has(t) || l(xe, this).set(t, {
|
|
@@ -273,9 +273,9 @@ var Ao = 1, Lt = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap
|
|
|
273
273
|
flush() {
|
|
274
274
|
var t = null;
|
|
275
275
|
try {
|
|
276
|
-
Yt = !0, $ = this, M(ne, this,
|
|
276
|
+
Yt = !0, $ = this, M(ne, this, zi).call(this);
|
|
277
277
|
} finally {
|
|
278
|
-
|
|
278
|
+
Di = 0, nr = null, et = null, Ct = null, Yt = !1, $ = null, z = null, Ae.clear();
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
discard() {
|
|
@@ -302,11 +302,11 @@ var Ao = 1, Lt = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap
|
|
|
302
302
|
l(Tt, this).add(t);
|
|
303
303
|
}
|
|
304
304
|
settled() {
|
|
305
|
-
return (l(It, this) ?? b(It, this,
|
|
305
|
+
return (l(It, this) ?? b(It, this, ki())).promise;
|
|
306
306
|
}
|
|
307
307
|
static ensure() {
|
|
308
308
|
if ($ === null) {
|
|
309
|
-
const t = $ = new
|
|
309
|
+
const t = $ = new ji();
|
|
310
310
|
Yt || (ve.add($), ct || Ze(() => {
|
|
311
311
|
$ === t && t.flush();
|
|
312
312
|
}));
|
|
@@ -331,7 +331,7 @@ var Ao = 1, Lt = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap
|
|
|
331
331
|
for (var r = t; r.parent !== null; ) {
|
|
332
332
|
r = r.parent;
|
|
333
333
|
var i = r.f;
|
|
334
|
-
if (et !== null && r === k && (Ee || (S === null || !(S.f & 2)) &&
|
|
334
|
+
if (et !== null && r === k && (Ee || (S === null || !(S.f & 2)) && !Io))
|
|
335
335
|
return;
|
|
336
336
|
if (i & 96) {
|
|
337
337
|
if (!(i & 1024)) return;
|
|
@@ -341,12 +341,12 @@ var Ao = 1, Lt = /* @__PURE__ */ new WeakMap(), Tt = /* @__PURE__ */ new WeakMap
|
|
|
341
341
|
l(Q, this).push(r);
|
|
342
342
|
}
|
|
343
343
|
};
|
|
344
|
-
|
|
345
|
-
function
|
|
344
|
+
Ni = Fe;
|
|
345
|
+
function qr() {
|
|
346
346
|
return this.is_fork || l(He, this) > 0;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
if (
|
|
348
|
+
function zi() {
|
|
349
|
+
if (Di++ > 1e3 && (ve.delete(this), Oo()), !M(ne, this, qr).call(this)) {
|
|
350
350
|
for (const s of l(ft, this))
|
|
351
351
|
l(Ne, this).delete(s), C(s, le), this.schedule(s);
|
|
352
352
|
for (const s of l(Ne, this))
|
|
@@ -356,30 +356,30 @@ function ji() {
|
|
|
356
356
|
b(Q, this, []), this.apply();
|
|
357
357
|
var t = et = [], r = [], i = Ct = [];
|
|
358
358
|
for (const s of e) try {
|
|
359
|
-
M(ne, this,
|
|
359
|
+
M(ne, this, Vi).call(this, s, t, r);
|
|
360
360
|
} catch (a) {
|
|
361
|
-
throw
|
|
361
|
+
throw Hi(s), a;
|
|
362
362
|
}
|
|
363
363
|
if ($ = null, i.length > 0) {
|
|
364
|
-
var n =
|
|
364
|
+
var n = Ni.ensure();
|
|
365
365
|
for (const s of i) n.schedule(s);
|
|
366
366
|
}
|
|
367
|
-
if (et = null, Ct = null, M(ne, this,
|
|
368
|
-
M(ne, this,
|
|
369
|
-
for (const [s, a] of l(xe, this))
|
|
367
|
+
if (et = null, Ct = null, M(ne, this, qr).call(this)) {
|
|
368
|
+
M(ne, this, Yr).call(this, r), M(ne, this, Yr).call(this, t);
|
|
369
|
+
for (const [s, a] of l(xe, this)) Bi(s, a);
|
|
370
370
|
} else {
|
|
371
371
|
l(Be, this) === 0 && ve.delete(this), l(ft, this).clear(), l(Ne, this).clear();
|
|
372
372
|
for (const s of l(Lt, this)) s(this);
|
|
373
|
-
l(Lt, this).clear(),
|
|
373
|
+
l(Lt, this).clear(), Gr = this, Kr(r), Kr(t), Gr = null, l(It, this)?.resolve();
|
|
374
374
|
}
|
|
375
375
|
var o = $;
|
|
376
376
|
if (l(Q, this).length > 0) {
|
|
377
377
|
const s = o ?? (o = this);
|
|
378
378
|
l(Q, s).push(...l(Q, this).filter((a) => !l(Q, s).includes(a)));
|
|
379
379
|
}
|
|
380
|
-
o !== null && (ve.add(o), M(ne, o,
|
|
380
|
+
o !== null && (ve.add(o), M(ne, o, zi).call(o)), ve.has(this) || M(ne, this, Mo).call(this);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function Vi(e, t, r) {
|
|
383
383
|
e.f ^= K;
|
|
384
384
|
for (var i = e.first; i !== null; ) {
|
|
385
385
|
var n = i.f, o = (n & 96) !== 0;
|
|
@@ -401,10 +401,10 @@ function zi(e, t, r) {
|
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
function
|
|
405
|
-
for (var t = 0; t < e.length; t += 1)
|
|
404
|
+
function Yr(e) {
|
|
405
|
+
for (var t = 0; t < e.length; t += 1) Ci(e[t], l(ft, this), l(Ne, this));
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function Mo() {
|
|
408
408
|
for (const a of ve) {
|
|
409
409
|
var e = a.id < this.id, t = [];
|
|
410
410
|
for (const [c, h] of this.current) {
|
|
@@ -418,10 +418,10 @@ function Eo() {
|
|
|
418
418
|
else if (t.length > 0) {
|
|
419
419
|
a.activate();
|
|
420
420
|
var i = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Map();
|
|
421
|
-
for (var o of t)
|
|
421
|
+
for (var o of t) Fi(o, r, i, n);
|
|
422
422
|
if (l(Q, a).length > 0) {
|
|
423
423
|
a.apply();
|
|
424
|
-
for (var s of l(Q, a)) M(ne, a,
|
|
424
|
+
for (var s of l(Q, a)) M(ne, a, Vi).call(a, s, [], []);
|
|
425
425
|
b(Q, a, []);
|
|
426
426
|
}
|
|
427
427
|
a.deactivate();
|
|
@@ -434,32 +434,32 @@ function or(e) {
|
|
|
434
434
|
try {
|
|
435
435
|
var r;
|
|
436
436
|
for (e && ($ !== null && !$.is_fork && $.flush(), r = e()); ; ) {
|
|
437
|
-
if (
|
|
437
|
+
if (So(), $ === null) return r;
|
|
438
438
|
$.flush();
|
|
439
439
|
}
|
|
440
440
|
} finally {
|
|
441
441
|
ct = t;
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
function
|
|
444
|
+
function Oo() {
|
|
445
445
|
if (0) {
|
|
446
446
|
var e;
|
|
447
447
|
for (const r of $.current.keys()) for (const [i, n] of r.updated ?? [])
|
|
448
448
|
var t;
|
|
449
449
|
}
|
|
450
450
|
try {
|
|
451
|
-
|
|
451
|
+
ho();
|
|
452
452
|
} catch (r) {
|
|
453
453
|
$e(r, nr);
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
456
|
var oe = null;
|
|
457
|
-
function
|
|
457
|
+
function Kr(e) {
|
|
458
458
|
var t = e.length;
|
|
459
459
|
if (t !== 0) {
|
|
460
460
|
for (var r = 0; r < t; ) {
|
|
461
461
|
var i = e[r++];
|
|
462
|
-
if (!(i.f & 24576) && bt(i) && (oe = /* @__PURE__ */ new Set(), rt(i), i.deps === null && i.first === null && i.nodes === null && i.teardown === null && i.ac === null &&
|
|
462
|
+
if (!(i.f & 24576) && bt(i) && (oe = /* @__PURE__ */ new Set(), rt(i), i.deps === null && i.first === null && i.nodes === null && i.teardown === null && i.ac === null && an(i), oe?.size > 0)) {
|
|
463
463
|
Ae.clear();
|
|
464
464
|
for (const n of oe) {
|
|
465
465
|
if (n.f & 24576) continue;
|
|
@@ -478,19 +478,19 @@ function Yr(e) {
|
|
|
478
478
|
oe = null;
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function Fi(e, t, r, i) {
|
|
482
482
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
483
483
|
for (const n of e.reactions) {
|
|
484
484
|
const o = n.f;
|
|
485
|
-
o & 2 ?
|
|
485
|
+
o & 2 ? Fi(n, t, r, i) : o & 4194320 && !(o & 2048) && Wi(n, t, i) && (C(n, le), wr(n));
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function Wi(e, t, r) {
|
|
489
489
|
const i = r.get(e);
|
|
490
490
|
if (i !== void 0) return i;
|
|
491
491
|
if (e.deps !== null) for (const n of e.deps) {
|
|
492
492
|
if (Je.call(t, n)) return !0;
|
|
493
|
-
if (n.f & 2 &&
|
|
493
|
+
if (n.f & 2 && Wi(n, t, r))
|
|
494
494
|
return r.set(n, !0), !0;
|
|
495
495
|
}
|
|
496
496
|
return r.set(e, !1), !1;
|
|
@@ -498,19 +498,19 @@ function Fi(e, t, r) {
|
|
|
498
498
|
function wr(e) {
|
|
499
499
|
$.schedule(e);
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function Bi(e, t) {
|
|
502
502
|
if (!(e.f & 32 && e.f & 1024)) {
|
|
503
503
|
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), C(e, K);
|
|
504
504
|
for (var r = e.first; r !== null; )
|
|
505
|
-
|
|
505
|
+
Bi(r, t), r = r.next;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function Hi(e) {
|
|
509
509
|
C(e, K);
|
|
510
510
|
for (var t = e.first; t !== null; )
|
|
511
|
-
|
|
511
|
+
Hi(t), t = t.next;
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function Po(e) {
|
|
514
514
|
let t = 0, r = gt(0), i;
|
|
515
515
|
return () => {
|
|
516
516
|
Ir() && (u(r), Ar(() => (t === 0 && (i = Ft(() => e(() => ut(r)))), t += 1, () => {
|
|
@@ -520,31 +520,31 @@ function Oo(e) {
|
|
|
520
520
|
})));
|
|
521
521
|
};
|
|
522
522
|
}
|
|
523
|
-
var
|
|
524
|
-
function
|
|
525
|
-
new
|
|
523
|
+
var xo = gr | it;
|
|
524
|
+
function Ro(e, t, r, i) {
|
|
525
|
+
new Co(e, t, r, i);
|
|
526
526
|
}
|
|
527
|
-
var Z = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), he = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), sr = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(),
|
|
527
|
+
var Z = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), dt = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), he = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), sr = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), Xr = /* @__PURE__ */ new WeakMap(), D = /* @__PURE__ */ new WeakSet(), Co = class {
|
|
528
528
|
constructor(e, t, r, i) {
|
|
529
|
-
yr(this, D), g(this, "parent", void 0), g(this, "is_pending", !1), g(this, "transform_error", void 0), T(this, Z, void 0), T(this, Kt, O ? I : null), T(this, Se, void 0), T(this, dt, void 0), T(this, G, void 0), T(this, Ie, null), T(this, ee, null), T(this, he, null), T(this, De, null), T(this, Ue, 0), T(this, je, 0), T(this, St, !1), T(this, sr, /* @__PURE__ */ new Set()), T(this, ar, /* @__PURE__ */ new Set()), T(this, Oe, null), T(this,
|
|
529
|
+
yr(this, D), g(this, "parent", void 0), g(this, "is_pending", !1), g(this, "transform_error", void 0), T(this, Z, void 0), T(this, Kt, O ? I : null), T(this, Se, void 0), T(this, dt, void 0), T(this, G, void 0), T(this, Ie, null), T(this, ee, null), T(this, he, null), T(this, De, null), T(this, Ue, 0), T(this, je, 0), T(this, St, !1), T(this, sr, /* @__PURE__ */ new Set()), T(this, ar, /* @__PURE__ */ new Set()), T(this, Oe, null), T(this, Xr, Po(() => (b(Oe, this, gt(l(Ue, this))), () => {
|
|
530
530
|
b(Oe, this, null);
|
|
531
531
|
}))), b(Z, this, e), b(Se, this, t), b(dt, this, (n) => {
|
|
532
532
|
var o = k;
|
|
533
533
|
o.b = this, o.f |= 128, r(n);
|
|
534
|
-
}), this.parent = k.b, this.transform_error = i ?? this.parent?.transform_error ?? ((n) => n), b(G, this,
|
|
534
|
+
}), this.parent = k.b, this.transform_error = i ?? this.parent?.transform_error ?? ((n) => n), b(G, this, on(() => {
|
|
535
535
|
if (O) {
|
|
536
536
|
const n = l(Kt, this);
|
|
537
537
|
mr();
|
|
538
538
|
const o = n.data === "[!";
|
|
539
539
|
if (n.data.startsWith("[?")) {
|
|
540
540
|
const s = JSON.parse(n.data.slice(2));
|
|
541
|
-
M(D, this,
|
|
542
|
-
} else o ? M(D, this,
|
|
543
|
-
} else M(D, this,
|
|
544
|
-
},
|
|
541
|
+
M(D, this, No).call(this, s);
|
|
542
|
+
} else o ? M(D, this, Do).call(this) : M(D, this, Lo).call(this);
|
|
543
|
+
} else M(D, this, Jr).call(this);
|
|
544
|
+
}, xo)), O && b(Z, this, I);
|
|
545
545
|
}
|
|
546
546
|
defer_effect(e) {
|
|
547
|
-
|
|
547
|
+
Ci(e, l(sr, this), l(ar, this));
|
|
548
548
|
}
|
|
549
549
|
is_rendered() {
|
|
550
550
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -553,28 +553,28 @@ var Z = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), Se =
|
|
|
553
553
|
return !!l(Se, this).pending;
|
|
554
554
|
}
|
|
555
555
|
update_pending_count(e, t) {
|
|
556
|
-
M(D, this,
|
|
556
|
+
M(D, this, Ui).call(this, e, t), b(Ue, this, l(Ue, this) + e), !(!l(Oe, this) || l(St, this)) && (b(St, this, !0), Ze(() => {
|
|
557
557
|
b(St, this, !1), l(Oe, this) && Dt(l(Oe, this), l(Ue, this));
|
|
558
558
|
}));
|
|
559
559
|
}
|
|
560
560
|
get_effect_pending() {
|
|
561
|
-
return l(
|
|
561
|
+
return l(Xr, this).call(this), u(l(Oe, this));
|
|
562
562
|
}
|
|
563
563
|
error(e) {
|
|
564
564
|
var t = l(Se, this).onerror;
|
|
565
565
|
let r = l(Se, this).failed;
|
|
566
566
|
if (!t && !r) throw e;
|
|
567
|
-
l(Ie, this) && (V(l(Ie, this)), b(Ie, this, null)), l(ee, this) && (V(l(ee, this)), b(ee, this, null)), l(he, this) && (V(l(he, this)), b(he, this, null)), O && (re(l(Kt, this)),
|
|
567
|
+
l(Ie, this) && (V(l(Ie, this)), b(Ie, this, null)), l(ee, this) && (V(l(ee, this)), b(ee, this, null)), l(he, this) && (V(l(he, this)), b(he, this, null)), O && (re(l(Kt, this)), $i(), re(Ii()));
|
|
568
568
|
var i = !1, n = !1;
|
|
569
569
|
const o = () => {
|
|
570
570
|
if (i) {
|
|
571
|
-
|
|
571
|
+
yo();
|
|
572
572
|
return;
|
|
573
573
|
}
|
|
574
|
-
i = !0, n &&
|
|
574
|
+
i = !0, n && bo(), l(he, this) !== null && mt(l(he, this), () => {
|
|
575
575
|
b(he, this, null);
|
|
576
576
|
}), M(D, this, lr).call(this, () => {
|
|
577
|
-
M(D, this,
|
|
577
|
+
M(D, this, Jr).call(this);
|
|
578
578
|
});
|
|
579
579
|
}, s = (a) => {
|
|
580
580
|
try {
|
|
@@ -605,21 +605,21 @@ var Z = /* @__PURE__ */ new WeakMap(), Kt = /* @__PURE__ */ new WeakMap(), Se =
|
|
|
605
605
|
});
|
|
606
606
|
}
|
|
607
607
|
};
|
|
608
|
-
function
|
|
608
|
+
function Lo() {
|
|
609
609
|
try {
|
|
610
610
|
b(Ie, this, ge(() => l(dt, this).call(this, l(Z, this))));
|
|
611
611
|
} catch (e) {
|
|
612
612
|
this.error(e);
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
function
|
|
615
|
+
function No(e) {
|
|
616
616
|
const t = l(Se, this).failed;
|
|
617
617
|
t && b(he, this, ge(() => {
|
|
618
618
|
t(l(Z, this), () => e, () => () => {
|
|
619
619
|
});
|
|
620
620
|
}));
|
|
621
621
|
}
|
|
622
|
-
function
|
|
622
|
+
function Do() {
|
|
623
623
|
const e = l(Se, this).pending;
|
|
624
624
|
e && (this.is_pending = !0, b(ee, this, ge(() => e(l(Z, this)))), Ze(() => {
|
|
625
625
|
var t = b(De, this, document.createDocumentFragment()), r = _e();
|
|
@@ -628,13 +628,13 @@ function No() {
|
|
|
628
628
|
}), M(D, this, Tr).call(this, $));
|
|
629
629
|
}));
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function Jr() {
|
|
632
632
|
try {
|
|
633
633
|
if (this.is_pending = this.has_pending_snippet(), b(je, this, 0), b(Ue, this, 0), b(Ie, this, ge(() => {
|
|
634
634
|
l(dt, this).call(this, l(Z, this));
|
|
635
635
|
})), l(je, this) > 0) {
|
|
636
636
|
var e = b(De, this, document.createDocumentFragment());
|
|
637
|
-
|
|
637
|
+
un(l(Ie, this), e);
|
|
638
638
|
const t = l(Se, this).pending;
|
|
639
639
|
b(ee, this, ge(() => t(l(Z, this))));
|
|
640
640
|
} else M(D, this, Tr).call(this, $);
|
|
@@ -651,16 +651,16 @@ function lr(e) {
|
|
|
651
651
|
try {
|
|
652
652
|
return Fe.ensure(), e();
|
|
653
653
|
} catch (n) {
|
|
654
|
-
return
|
|
654
|
+
return xi(n), null;
|
|
655
655
|
} finally {
|
|
656
656
|
ae(t), X(r), Qe(i);
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function Ui(e, t) {
|
|
660
660
|
if (!this.has_pending_snippet()) {
|
|
661
661
|
if (this.parent) {
|
|
662
662
|
var r;
|
|
663
|
-
M(D, r = this.parent,
|
|
663
|
+
M(D, r = this.parent, Ui).call(r, e, t);
|
|
664
664
|
}
|
|
665
665
|
return;
|
|
666
666
|
}
|
|
@@ -668,14 +668,14 @@ function Hi(e, t) {
|
|
|
668
668
|
b(ee, this, null);
|
|
669
669
|
}), l(De, this) && (l(Z, this).before(l(De, this)), b(De, this, null)));
|
|
670
670
|
}
|
|
671
|
-
function
|
|
672
|
-
const n = _t() ? Vt :
|
|
671
|
+
function jo(e, t, r, i) {
|
|
672
|
+
const n = _t() ? Vt : qi;
|
|
673
673
|
var o = e.filter((f) => !f.settled);
|
|
674
674
|
if (r.length === 0 && o.length === 0) {
|
|
675
675
|
i(t.map(n));
|
|
676
676
|
return;
|
|
677
677
|
}
|
|
678
|
-
var s = k, a =
|
|
678
|
+
var s = k, a = zo(), c = o.length === 1 ? o[0].promise : o.length > 1 ? Promise.all(o.map((f) => f.promise)) : null;
|
|
679
679
|
function h(f) {
|
|
680
680
|
a();
|
|
681
681
|
try {
|
|
@@ -689,15 +689,15 @@ function Do(e, t, r, i) {
|
|
|
689
689
|
c.then(() => h(t.map(n)));
|
|
690
690
|
return;
|
|
691
691
|
}
|
|
692
|
-
var p =
|
|
692
|
+
var p = Gi();
|
|
693
693
|
function d() {
|
|
694
|
-
Promise.all(r.map((f) => /* @__PURE__ */
|
|
694
|
+
Promise.all(r.map((f) => /* @__PURE__ */ Vo(f))).then((f) => h([...t.map(n), ...f])).catch((f) => $e(f, s)).finally(() => p());
|
|
695
695
|
}
|
|
696
696
|
c ? c.then(() => {
|
|
697
697
|
a(), d(), Nt();
|
|
698
698
|
}) : d();
|
|
699
699
|
}
|
|
700
|
-
function
|
|
700
|
+
function zo() {
|
|
701
701
|
var e = k, t = S, r = R, i = $;
|
|
702
702
|
if (0) var n;
|
|
703
703
|
return function(s = !0) {
|
|
@@ -707,7 +707,7 @@ function jo() {
|
|
|
707
707
|
function Nt(e = !0) {
|
|
708
708
|
ae(null), X(null), Qe(null), e && $?.deactivate();
|
|
709
709
|
}
|
|
710
|
-
function
|
|
710
|
+
function Gi() {
|
|
711
711
|
var e = k.b, t = $, r = e.is_rendered();
|
|
712
712
|
return e.update_pending_count(1, t), t.increment(r), (i = !1) => {
|
|
713
713
|
e.update_pending_count(-1, t), t.decrement(r, i);
|
|
@@ -720,7 +720,7 @@ function Vt(e) {
|
|
|
720
720
|
ctx: R,
|
|
721
721
|
deps: null,
|
|
722
722
|
effects: null,
|
|
723
|
-
equals:
|
|
723
|
+
equals: Ai,
|
|
724
724
|
f: t,
|
|
725
725
|
fn: e,
|
|
726
726
|
reactions: null,
|
|
@@ -732,12 +732,12 @@ function Vt(e) {
|
|
|
732
732
|
};
|
|
733
733
|
}
|
|
734
734
|
// @__NO_SIDE_EFFECTS__
|
|
735
|
-
function
|
|
735
|
+
function Vo(e, t, r) {
|
|
736
736
|
let i = k;
|
|
737
|
-
i === null &&
|
|
737
|
+
i === null && lo();
|
|
738
738
|
var n = void 0, o = gt(N), s = !S, a = /* @__PURE__ */ new Map();
|
|
739
|
-
return
|
|
740
|
-
var c = k, h =
|
|
739
|
+
return rs(() => {
|
|
740
|
+
var c = k, h = ki();
|
|
741
741
|
n = h.promise;
|
|
742
742
|
try {
|
|
743
743
|
Promise.resolve(e()).then(h.resolve, h.reject).finally(Nt);
|
|
@@ -746,7 +746,7 @@ function zo(e, t, r) {
|
|
|
746
746
|
}
|
|
747
747
|
var p = $;
|
|
748
748
|
if (s) {
|
|
749
|
-
if (c.f & 32768) var d =
|
|
749
|
+
if (c.f & 32768) var d = Gi();
|
|
750
750
|
if (i.b.is_rendered())
|
|
751
751
|
a.get(p)?.reject(pe), a.delete(p);
|
|
752
752
|
else {
|
|
@@ -770,7 +770,7 @@ function zo(e, t, r) {
|
|
|
770
770
|
}
|
|
771
771
|
};
|
|
772
772
|
h.promise.then(f, (v) => f(null, v || "unknown"));
|
|
773
|
-
}),
|
|
773
|
+
}), Zo(() => {
|
|
774
774
|
for (const c of a.values()) c.reject(pe);
|
|
775
775
|
}), new Promise((c) => {
|
|
776
776
|
function h(p) {
|
|
@@ -783,23 +783,23 @@ function zo(e, t, r) {
|
|
|
783
783
|
});
|
|
784
784
|
}
|
|
785
785
|
// @__NO_SIDE_EFFECTS__
|
|
786
|
-
function
|
|
786
|
+
function Qr(e) {
|
|
787
787
|
const t = /* @__PURE__ */ Vt(e);
|
|
788
|
-
return Ee ||
|
|
788
|
+
return Ee || fn(t), t;
|
|
789
789
|
}
|
|
790
790
|
// @__NO_SIDE_EFFECTS__
|
|
791
|
-
function
|
|
791
|
+
function qi(e) {
|
|
792
792
|
const t = /* @__PURE__ */ Vt(e);
|
|
793
|
-
return t.equals =
|
|
793
|
+
return t.equals = Ei, t;
|
|
794
794
|
}
|
|
795
|
-
function
|
|
795
|
+
function Fo(e) {
|
|
796
796
|
var t = e.effects;
|
|
797
797
|
if (t !== null) {
|
|
798
798
|
e.effects = null;
|
|
799
799
|
for (var r = 0; r < t.length; r += 1) V(t[r]);
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function Wo(e) {
|
|
803
803
|
for (var t = e.parent; t !== null; ) {
|
|
804
804
|
if (!(t.f & 2)) return t.f & 16384 ? null : t;
|
|
805
805
|
t = t.parent;
|
|
@@ -808,41 +808,41 @@ function Fo(e) {
|
|
|
808
808
|
}
|
|
809
809
|
function kr(e) {
|
|
810
810
|
var t, r = k;
|
|
811
|
-
if (ae(
|
|
811
|
+
if (ae(Wo(e)), 0)
|
|
812
812
|
try {
|
|
813
813
|
} finally {
|
|
814
814
|
}
|
|
815
815
|
else try {
|
|
816
|
-
e.f &= ~pt,
|
|
816
|
+
e.f &= ~pt, Fo(e), t = vn(e);
|
|
817
817
|
} finally {
|
|
818
818
|
ae(r);
|
|
819
819
|
}
|
|
820
820
|
return t;
|
|
821
821
|
}
|
|
822
|
-
function
|
|
822
|
+
function Yi(e) {
|
|
823
823
|
var t = e.v, r = kr(e);
|
|
824
|
-
if (!e.equals(r) && (e.wv =
|
|
824
|
+
if (!e.equals(r) && (e.wv = hn(), (!$?.is_fork || e.deps === null) && (e.v = r, $?.capture(e, t), e.deps === null))) {
|
|
825
825
|
C(e, K);
|
|
826
826
|
return;
|
|
827
827
|
}
|
|
828
828
|
Me || (z !== null ? (Ir() || $?.is_fork) && z.set(e, r) : br(e));
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function Bo(e) {
|
|
831
831
|
if (e.effects !== null)
|
|
832
|
-
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(pe), t.teardown =
|
|
832
|
+
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(pe), t.teardown = Zn, t.ac = null, ht(t, 0), Er(t));
|
|
833
833
|
}
|
|
834
|
-
function
|
|
834
|
+
function Ki(e) {
|
|
835
835
|
if (e.effects !== null)
|
|
836
836
|
for (const t of e.effects) t.teardown && rt(t);
|
|
837
837
|
}
|
|
838
838
|
var cr = /* @__PURE__ */ new Set(), Ae = /* @__PURE__ */ new Map();
|
|
839
|
-
var
|
|
839
|
+
var Xi = !1;
|
|
840
840
|
function gt(e, t) {
|
|
841
841
|
var r = {
|
|
842
842
|
f: 0,
|
|
843
843
|
v: e,
|
|
844
844
|
reactions: null,
|
|
845
|
-
equals:
|
|
845
|
+
equals: Ai,
|
|
846
846
|
rv: 0,
|
|
847
847
|
wv: 0
|
|
848
848
|
};
|
|
@@ -851,19 +851,19 @@ function gt(e, t) {
|
|
|
851
851
|
// @__NO_SIDE_EFFECTS__
|
|
852
852
|
function x(e, t) {
|
|
853
853
|
const r = gt(e, t);
|
|
854
|
-
return
|
|
854
|
+
return fn(r), r;
|
|
855
855
|
}
|
|
856
856
|
// @__NO_SIDE_EFFECTS__
|
|
857
|
-
function
|
|
857
|
+
function Ho(e, t = !1, r = !0) {
|
|
858
858
|
const i = gt(e);
|
|
859
|
-
if (t || (i.equals =
|
|
859
|
+
if (t || (i.equals = Ei), vt && r && R !== null && R.l !== null) {
|
|
860
860
|
var n;
|
|
861
861
|
((n = R.l).s ?? (n.s = [])).push(i);
|
|
862
862
|
}
|
|
863
863
|
return i;
|
|
864
864
|
}
|
|
865
865
|
function P(e, t, r = !1) {
|
|
866
|
-
S !== null && (!te || S.f & 131072) && _t() && S.f & 4325394 && (Y === null || !Je.call(Y, e)) &&
|
|
866
|
+
S !== null && (!te || S.f & 131072) && _t() && S.f & 4325394 && (Y === null || !Je.call(Y, e)) && mo();
|
|
867
867
|
let i = r ? se(t) : t;
|
|
868
868
|
return Dt(e, i, Ct);
|
|
869
869
|
}
|
|
@@ -876,12 +876,12 @@ function Dt(e, t, r = null) {
|
|
|
876
876
|
const o = e;
|
|
877
877
|
e.f & 2048 && kr(o), z === null && br(o);
|
|
878
878
|
}
|
|
879
|
-
e.wv =
|
|
879
|
+
e.wv = hn(), Ji(e, le, r), _t() && k !== null && k.f & 1024 && !(k.f & 96) && (q === null ? as([e]) : q.push(e)), !n.is_fork && cr.size > 0 && !Xi && Uo();
|
|
880
880
|
}
|
|
881
881
|
return t;
|
|
882
882
|
}
|
|
883
|
-
function
|
|
884
|
-
|
|
883
|
+
function Uo() {
|
|
884
|
+
Xi = !1;
|
|
885
885
|
for (const e of cr)
|
|
886
886
|
e.f & 1024 && C(e, Ve), bt(e) && rt(e);
|
|
887
887
|
cr.clear();
|
|
@@ -889,7 +889,7 @@ function Ho() {
|
|
|
889
889
|
function ut(e) {
|
|
890
890
|
P(e, e.v + 1);
|
|
891
891
|
}
|
|
892
|
-
function
|
|
892
|
+
function Ji(e, t, r) {
|
|
893
893
|
var i = e.reactions;
|
|
894
894
|
if (i !== null)
|
|
895
895
|
for (var n = _t(), o = i.length, s = 0; s < o; s++) {
|
|
@@ -898,7 +898,7 @@ function Xi(e, t, r) {
|
|
|
898
898
|
var h = (c & le) === 0;
|
|
899
899
|
if (h && C(a, t), c & 2) {
|
|
900
900
|
var p = a;
|
|
901
|
-
z?.delete(p), c & 65536 || (c & 512 && (a.f |= pt),
|
|
901
|
+
z?.delete(p), c & 65536 || (c & 512 && (a.f |= pt), Ji(p, Ve, r));
|
|
902
902
|
} else if (h) {
|
|
903
903
|
var d = a;
|
|
904
904
|
c & 16 && oe !== null && oe.add(d), r !== null ? r.push(d) : wr(d);
|
|
@@ -906,31 +906,31 @@ function Xi(e, t, r) {
|
|
|
906
906
|
}
|
|
907
907
|
}
|
|
908
908
|
}
|
|
909
|
-
var
|
|
909
|
+
var Go = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
910
910
|
function se(e) {
|
|
911
911
|
if (typeof e != "object" || e === null || lt in e) return e;
|
|
912
|
-
const t =
|
|
913
|
-
if (t !==
|
|
914
|
-
var r = /* @__PURE__ */ new Map(), i =
|
|
912
|
+
const t = Ti(e);
|
|
913
|
+
if (t !== Jn && t !== Qn) return e;
|
|
914
|
+
var r = /* @__PURE__ */ new Map(), i = qn(e), n = /* @__PURE__ */ x(0), o = null, s = ze, a = (d) => {
|
|
915
915
|
if (ze === s) return d();
|
|
916
916
|
var f = S, v = ze;
|
|
917
|
-
X(null),
|
|
917
|
+
X(null), ii(s);
|
|
918
918
|
var _ = d();
|
|
919
|
-
return X(f),
|
|
919
|
+
return X(f), ii(v), _;
|
|
920
920
|
};
|
|
921
921
|
i && r.set("length", /* @__PURE__ */ x(e.length, o));
|
|
922
922
|
var c = "";
|
|
923
923
|
let h = !1;
|
|
924
924
|
function p(d) {
|
|
925
925
|
if (!h) {
|
|
926
|
-
h = !0, c = d,
|
|
927
|
-
for (const [f, v] of r)
|
|
926
|
+
h = !0, c = d, Ur(n, `${c} version`);
|
|
927
|
+
for (const [f, v] of r) Ur(v, qo(c, f));
|
|
928
928
|
h = !1;
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
931
|
return new Proxy(e, {
|
|
932
932
|
defineProperty(d, f, v) {
|
|
933
|
-
(!("value" in v) || v.configurable === !1 || v.enumerable === !1 || v.writable === !1) &&
|
|
933
|
+
(!("value" in v) || v.configurable === !1 || v.enumerable === !1 || v.writable === !1) && _o();
|
|
934
934
|
var _ = r.get(f);
|
|
935
935
|
return _ === void 0 ? a(() => {
|
|
936
936
|
var m = /* @__PURE__ */ x(v.value, o);
|
|
@@ -1017,19 +1017,19 @@ function se(e) {
|
|
|
1017
1017
|
return f;
|
|
1018
1018
|
},
|
|
1019
1019
|
setPrototypeOf() {
|
|
1020
|
-
|
|
1020
|
+
go();
|
|
1021
1021
|
}
|
|
1022
1022
|
});
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1025
|
-
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` :
|
|
1024
|
+
function qo(e, t) {
|
|
1025
|
+
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : Go.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
1026
1026
|
}
|
|
1027
|
-
var
|
|
1027
|
+
var Zr, Yo, Qi, Zi, en;
|
|
1028
1028
|
function ur() {
|
|
1029
|
-
if (
|
|
1030
|
-
|
|
1029
|
+
if (Zr === void 0) {
|
|
1030
|
+
Zr = window, Yo = document, Qi = /Firefox/.test(navigator.userAgent);
|
|
1031
1031
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1032
|
-
|
|
1032
|
+
Zi = Le(t, "firstChild").get, en = Le(t, "nextSibling").get, Fr(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Fr(r) && (r.__t = void 0);
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
1035
|
function _e(e = "") {
|
|
@@ -1037,13 +1037,13 @@ function _e(e = "") {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
// @__NO_SIDE_EFFECTS__
|
|
1039
1039
|
function tt(e) {
|
|
1040
|
-
return
|
|
1040
|
+
return Zi.call(e);
|
|
1041
1041
|
}
|
|
1042
1042
|
// @__NO_SIDE_EFFECTS__
|
|
1043
1043
|
function me(e) {
|
|
1044
|
-
return
|
|
1044
|
+
return en.call(e);
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1046
|
+
function ei(e, t) {
|
|
1047
1047
|
if (!O) return /* @__PURE__ */ tt(e);
|
|
1048
1048
|
var r = /* @__PURE__ */ tt(I);
|
|
1049
1049
|
if (r === null) r = I.appendChild(_e());
|
|
@@ -1081,10 +1081,10 @@ function nt(e, t = 1, r = !1) {
|
|
|
1081
1081
|
}
|
|
1082
1082
|
return re(i), i;
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function Ko(e) {
|
|
1085
1085
|
e.textContent = "";
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1087
|
+
function Xo() {
|
|
1088
1088
|
return !Ee || oe !== null ? !1 : (k.f & _r) !== 0;
|
|
1089
1089
|
}
|
|
1090
1090
|
function Sr(e, t, r) {
|
|
@@ -1097,7 +1097,7 @@ function $r(e) {
|
|
|
1097
1097
|
for (; t !== null && t.nodeType === 3; )
|
|
1098
1098
|
t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1100
|
+
function tn(e) {
|
|
1101
1101
|
var t = S, r = k;
|
|
1102
1102
|
X(null), ae(null);
|
|
1103
1103
|
try {
|
|
@@ -1106,10 +1106,10 @@ function en(e) {
|
|
|
1106
1106
|
X(t), ae(r);
|
|
1107
1107
|
}
|
|
1108
1108
|
}
|
|
1109
|
-
function
|
|
1110
|
-
k === null && (S === null &&
|
|
1109
|
+
function Jo(e) {
|
|
1110
|
+
k === null && (S === null && fo(e), uo()), Me && co(e);
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1112
|
+
function Qo(e, t) {
|
|
1113
1113
|
var r = t.last;
|
|
1114
1114
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1115
1115
|
}
|
|
@@ -1141,7 +1141,7 @@ function ce(e, t) {
|
|
|
1141
1141
|
}
|
|
1142
1142
|
n.deps === null && n.teardown === null && n.nodes === null && n.first === n.last && !(n.f & 524288) && (n = n.first, e & 16 && e & 65536 && n !== null && (n.f |= gr));
|
|
1143
1143
|
}
|
|
1144
|
-
if (n !== null && (n.parent = r, r !== null &&
|
|
1144
|
+
if (n !== null && (n.parent = r, r !== null && Qo(n, r), S !== null && S.f & 2 && !(e & 64))) {
|
|
1145
1145
|
var o = S;
|
|
1146
1146
|
(o.effects ?? (o.effects = [])).push(n);
|
|
1147
1147
|
}
|
|
@@ -1150,29 +1150,29 @@ function ce(e, t) {
|
|
|
1150
1150
|
function Ir() {
|
|
1151
1151
|
return S !== null && !te;
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1153
|
+
function Zo(e) {
|
|
1154
1154
|
const t = ce(8, null);
|
|
1155
1155
|
return C(t, K), t.teardown = e, t;
|
|
1156
1156
|
}
|
|
1157
1157
|
function at(e) {
|
|
1158
|
-
|
|
1158
|
+
Jo("$effect");
|
|
1159
1159
|
var t = k.f;
|
|
1160
1160
|
if (!S && t & 32 && !(t & 32768)) {
|
|
1161
1161
|
var r = R;
|
|
1162
1162
|
(r.e ?? (r.e = [])).push(e);
|
|
1163
|
-
} else return
|
|
1163
|
+
} else return rn(e);
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1166
|
-
return ce(4 |
|
|
1165
|
+
function rn(e) {
|
|
1166
|
+
return ce(4 | ro, e);
|
|
1167
1167
|
}
|
|
1168
|
-
function
|
|
1168
|
+
function es(e) {
|
|
1169
1169
|
Fe.ensure();
|
|
1170
1170
|
const t = ce(64 | it, e);
|
|
1171
1171
|
return () => {
|
|
1172
1172
|
V(t);
|
|
1173
1173
|
};
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function ts(e) {
|
|
1176
1176
|
Fe.ensure();
|
|
1177
1177
|
const t = ce(64 | it, e);
|
|
1178
1178
|
return (r = {}) => new Promise((i) => {
|
|
@@ -1181,36 +1181,36 @@ function es(e) {
|
|
|
1181
1181
|
}) : (V(t), i(void 0));
|
|
1182
1182
|
});
|
|
1183
1183
|
}
|
|
1184
|
-
function
|
|
1184
|
+
function nn(e) {
|
|
1185
1185
|
return ce(4, e);
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1188
|
-
return ce(
|
|
1187
|
+
function rs(e) {
|
|
1188
|
+
return ce(io | it, e);
|
|
1189
1189
|
}
|
|
1190
1190
|
function Ar(e, t = 0) {
|
|
1191
1191
|
return ce(8 | t, e);
|
|
1192
1192
|
}
|
|
1193
|
-
function
|
|
1194
|
-
|
|
1193
|
+
function ti(e, t = [], r = [], i = []) {
|
|
1194
|
+
jo(i, t, r, (n) => {
|
|
1195
1195
|
ce(8, () => e(...n.map(u)));
|
|
1196
1196
|
});
|
|
1197
1197
|
}
|
|
1198
|
-
function
|
|
1198
|
+
function on(e, t = 0) {
|
|
1199
1199
|
var r = ce(16 | t, e);
|
|
1200
1200
|
return r;
|
|
1201
1201
|
}
|
|
1202
1202
|
function ge(e) {
|
|
1203
1203
|
return ce(32 | it, e);
|
|
1204
1204
|
}
|
|
1205
|
-
function
|
|
1205
|
+
function sn(e) {
|
|
1206
1206
|
var t = e.teardown;
|
|
1207
1207
|
if (t !== null) {
|
|
1208
1208
|
const r = Me, i = S;
|
|
1209
|
-
|
|
1209
|
+
ri(!0), X(null);
|
|
1210
1210
|
try {
|
|
1211
1211
|
t.call(null);
|
|
1212
1212
|
} finally {
|
|
1213
|
-
|
|
1213
|
+
ri(r), X(i);
|
|
1214
1214
|
}
|
|
1215
1215
|
}
|
|
1216
1216
|
}
|
|
@@ -1218,14 +1218,14 @@ function Er(e, t = !1) {
|
|
|
1218
1218
|
var r = e.first;
|
|
1219
1219
|
for (e.first = e.last = null; r !== null; ) {
|
|
1220
1220
|
const n = r.ac;
|
|
1221
|
-
n !== null &&
|
|
1221
|
+
n !== null && tn(() => {
|
|
1222
1222
|
n.abort(pe);
|
|
1223
1223
|
});
|
|
1224
1224
|
var i = r.next;
|
|
1225
1225
|
r.f & 64 ? r.parent = null : V(r, t), r = i;
|
|
1226
1226
|
}
|
|
1227
1227
|
}
|
|
1228
|
-
function
|
|
1228
|
+
function is(e) {
|
|
1229
1229
|
for (var t = e.first; t !== null; ) {
|
|
1230
1230
|
var r = t.next;
|
|
1231
1231
|
t.f & 32 || V(t), t = r;
|
|
@@ -1233,26 +1233,26 @@ function rs(e) {
|
|
|
1233
1233
|
}
|
|
1234
1234
|
function V(e, t = !0) {
|
|
1235
1235
|
var r = !1;
|
|
1236
|
-
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (
|
|
1236
|
+
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (ns(e.nodes.start, e.nodes.end), r = !0), C(e, Wr), Er(e, t && !r), ht(e, 0);
|
|
1237
1237
|
var i = e.nodes && e.nodes.t;
|
|
1238
1238
|
if (i !== null) for (const o of i) o.stop();
|
|
1239
|
-
|
|
1239
|
+
sn(e), e.f ^= Wr, e.f |= to;
|
|
1240
1240
|
var n = e.parent;
|
|
1241
|
-
n !== null && n.first !== null &&
|
|
1241
|
+
n !== null && n.first !== null && an(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
|
|
1242
1242
|
}
|
|
1243
|
-
function
|
|
1243
|
+
function ns(e, t) {
|
|
1244
1244
|
for (; e !== null; ) {
|
|
1245
1245
|
var r = e === t ? null : /* @__PURE__ */ me(e);
|
|
1246
1246
|
e.remove(), e = r;
|
|
1247
1247
|
}
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function an(e) {
|
|
1250
1250
|
var t = e.parent, r = e.prev, i = e.next;
|
|
1251
1251
|
r !== null && (r.next = i), i !== null && (i.prev = r), t !== null && (t.first === e && (t.first = i), t.last === e && (t.last = r));
|
|
1252
1252
|
}
|
|
1253
1253
|
function mt(e, t, r = !0) {
|
|
1254
1254
|
var i = [];
|
|
1255
|
-
|
|
1255
|
+
ln(e, i, !0);
|
|
1256
1256
|
var n = () => {
|
|
1257
1257
|
r && V(e), t && t();
|
|
1258
1258
|
}, o = i.length;
|
|
@@ -1261,7 +1261,7 @@ function mt(e, t, r = !0) {
|
|
|
1261
1261
|
for (var a of i) a.out(s);
|
|
1262
1262
|
} else n();
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1264
|
+
function ln(e, t, r) {
|
|
1265
1265
|
if (!(e.f & 8192)) {
|
|
1266
1266
|
e.f ^= vr;
|
|
1267
1267
|
var i = e.nodes && e.nodes.t;
|
|
@@ -1269,34 +1269,34 @@ function an(e, t, r) {
|
|
|
1269
1269
|
for (const a of i) (a.is_global || r) && t.push(a);
|
|
1270
1270
|
for (var n = e.first; n !== null; ) {
|
|
1271
1271
|
var o = n.next, s = (n.f & 65536) !== 0 || (n.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1272
|
-
|
|
1272
|
+
ln(n, t, s ? r : !1), n = o;
|
|
1273
1273
|
}
|
|
1274
1274
|
}
|
|
1275
1275
|
}
|
|
1276
|
-
function
|
|
1277
|
-
|
|
1276
|
+
function os(e) {
|
|
1277
|
+
cn(e, !0);
|
|
1278
1278
|
}
|
|
1279
|
-
function
|
|
1279
|
+
function cn(e, t) {
|
|
1280
1280
|
if (e.f & 8192) {
|
|
1281
1281
|
e.f ^= vr, e.f & 1024 || (C(e, le), Fe.ensure().schedule(e));
|
|
1282
1282
|
for (var r = e.first; r !== null; ) {
|
|
1283
1283
|
var i = r.next, n = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
|
|
1284
|
-
|
|
1284
|
+
cn(r, n ? t : !1), r = i;
|
|
1285
1285
|
}
|
|
1286
1286
|
var o = e.nodes && e.nodes.t;
|
|
1287
1287
|
if (o !== null)
|
|
1288
1288
|
for (const s of o) (s.is_global || t) && s.in();
|
|
1289
1289
|
}
|
|
1290
1290
|
}
|
|
1291
|
-
function
|
|
1291
|
+
function un(e, t) {
|
|
1292
1292
|
if (e.nodes)
|
|
1293
1293
|
for (var r = e.nodes.start, i = e.nodes.end; r !== null; ) {
|
|
1294
1294
|
var n = r === i ? null : /* @__PURE__ */ me(r);
|
|
1295
1295
|
t.append(r), r = n;
|
|
1296
1296
|
}
|
|
1297
1297
|
}
|
|
1298
|
-
var
|
|
1299
|
-
function
|
|
1298
|
+
var ss = null, At = !1, Me = !1;
|
|
1299
|
+
function ri(e) {
|
|
1300
1300
|
Me = e;
|
|
1301
1301
|
}
|
|
1302
1302
|
var S = null, te = !1;
|
|
@@ -1308,19 +1308,19 @@ function ae(e) {
|
|
|
1308
1308
|
k = e;
|
|
1309
1309
|
}
|
|
1310
1310
|
var Y = null;
|
|
1311
|
-
function
|
|
1311
|
+
function fn(e) {
|
|
1312
1312
|
S !== null && (!Ee || S.f & 2) && (Y === null ? Y = [e] : Y.push(e));
|
|
1313
1313
|
}
|
|
1314
1314
|
var j = null, W = 0, q = null;
|
|
1315
|
-
function
|
|
1315
|
+
function as(e) {
|
|
1316
1316
|
q = e;
|
|
1317
1317
|
}
|
|
1318
|
-
var
|
|
1319
|
-
function
|
|
1318
|
+
var dn = 1, Ce = 0, ze = Ce;
|
|
1319
|
+
function ii(e) {
|
|
1320
1320
|
ze = e;
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1323
|
-
return ++
|
|
1322
|
+
function hn() {
|
|
1323
|
+
return ++dn;
|
|
1324
1324
|
}
|
|
1325
1325
|
function bt(e) {
|
|
1326
1326
|
var t = e.f;
|
|
@@ -1328,27 +1328,27 @@ function bt(e) {
|
|
|
1328
1328
|
if (t & 2 && (e.f &= ~pt), t & 4096) {
|
|
1329
1329
|
for (var r = e.deps, i = r.length, n = 0; n < i; n++) {
|
|
1330
1330
|
var o = r[n];
|
|
1331
|
-
if (bt(o) &&
|
|
1331
|
+
if (bt(o) && Yi(o), o.wv > e.wv) return !0;
|
|
1332
1332
|
}
|
|
1333
1333
|
t & 512 && z === null && C(e, K);
|
|
1334
1334
|
}
|
|
1335
1335
|
return !1;
|
|
1336
1336
|
}
|
|
1337
|
-
function
|
|
1337
|
+
function pn(e, t, r = !0) {
|
|
1338
1338
|
var i = e.reactions;
|
|
1339
1339
|
if (i !== null && !(!Ee && Y !== null && Je.call(Y, e)))
|
|
1340
1340
|
for (var n = 0; n < i.length; n++) {
|
|
1341
1341
|
var o = i[n];
|
|
1342
|
-
o.f & 2 ?
|
|
1342
|
+
o.f & 2 ? pn(o, t, !1) : t === o && (r ? C(o, le) : o.f & 1024 && C(o, Ve), wr(o));
|
|
1343
1343
|
}
|
|
1344
1344
|
}
|
|
1345
|
-
function
|
|
1345
|
+
function vn(e) {
|
|
1346
1346
|
var t = j, r = W, i = q, n = S, o = Y, s = R, a = te, c = ze, h = e.f;
|
|
1347
|
-
j = null, W = 0, q = null, S = h & 96 ? null : e, Y = null, Qe(e.ctx), te = !1, ze = ++Ce, e.ac !== null && (
|
|
1347
|
+
j = null, W = 0, q = null, S = h & 96 ? null : e, Y = null, Qe(e.ctx), te = !1, ze = ++Ce, e.ac !== null && (tn(() => {
|
|
1348
1348
|
e.ac.abort(pe);
|
|
1349
1349
|
}), e.ac = null);
|
|
1350
1350
|
try {
|
|
1351
|
-
e.f |=
|
|
1351
|
+
e.f |= Br;
|
|
1352
1352
|
var p = e.fn, d = p();
|
|
1353
1353
|
e.f |= _r;
|
|
1354
1354
|
var f = e.deps, v = $?.is_fork;
|
|
@@ -1362,7 +1362,7 @@ function pn(e) {
|
|
|
1362
1362
|
((m = f[_]).reactions ?? (m.reactions = [])).push(e);
|
|
1363
1363
|
}
|
|
1364
1364
|
} else !v && f !== null && W < f.length && (ht(e, W), f.length = W);
|
|
1365
|
-
if (_t() && q !== null && !te && f !== null && !(e.f & 6146)) for (_ = 0; _ < q.length; _++)
|
|
1365
|
+
if (_t() && q !== null && !te && f !== null && !(e.f & 6146)) for (_ = 0; _ < q.length; _++) pn(q[_], e);
|
|
1366
1366
|
if (n !== null && n !== e) {
|
|
1367
1367
|
if (Ce++, n.deps !== null) for (let y = 0; y < r; y += 1) n.deps[y].rv = Ce;
|
|
1368
1368
|
if (t !== null) for (const y of t) y.rv = Ce;
|
|
@@ -1370,15 +1370,15 @@ function pn(e) {
|
|
|
1370
1370
|
}
|
|
1371
1371
|
return e.f & 8388608 && (e.f ^= Rt), d;
|
|
1372
1372
|
} catch (y) {
|
|
1373
|
-
return
|
|
1373
|
+
return xi(y);
|
|
1374
1374
|
} finally {
|
|
1375
|
-
e.f ^=
|
|
1375
|
+
e.f ^= Br, j = t, W = r, q = i, S = n, Y = o, Qe(s), te = a, ze = c;
|
|
1376
1376
|
}
|
|
1377
1377
|
}
|
|
1378
|
-
function
|
|
1378
|
+
function ls(e, t) {
|
|
1379
1379
|
let r = t.reactions;
|
|
1380
1380
|
if (r !== null) {
|
|
1381
|
-
var i =
|
|
1381
|
+
var i = Yn.call(r, e);
|
|
1382
1382
|
if (i !== -1) {
|
|
1383
1383
|
var n = r.length - 1;
|
|
1384
1384
|
n === 0 ? r = t.reactions = null : (r[i] = r[n], r.pop());
|
|
@@ -1386,13 +1386,13 @@ function as(e, t) {
|
|
|
1386
1386
|
}
|
|
1387
1387
|
if (r === null && t.f & 2 && (j === null || !Je.call(j, t))) {
|
|
1388
1388
|
var o = t;
|
|
1389
|
-
o.f & 512 && (o.f ^= 512, o.f &= ~pt), br(o),
|
|
1389
|
+
o.f & 512 && (o.f ^= 512, o.f &= ~pt), br(o), Bo(o), ht(o, 0);
|
|
1390
1390
|
}
|
|
1391
1391
|
}
|
|
1392
1392
|
function ht(e, t) {
|
|
1393
1393
|
var r = e.deps;
|
|
1394
1394
|
if (r !== null)
|
|
1395
|
-
for (var i = t; i < r.length; i++)
|
|
1395
|
+
for (var i = t; i < r.length; i++) ls(e, r[i]);
|
|
1396
1396
|
}
|
|
1397
1397
|
function rt(e) {
|
|
1398
1398
|
var t = e.f;
|
|
@@ -1402,9 +1402,9 @@ function rt(e) {
|
|
|
1402
1402
|
if (k = e, At = !0, 0)
|
|
1403
1403
|
var n, o;
|
|
1404
1404
|
try {
|
|
1405
|
-
t & 16777232 ?
|
|
1406
|
-
var s =
|
|
1407
|
-
if (e.teardown = typeof s == "function" ? s : null, e.wv =
|
|
1405
|
+
t & 16777232 ? is(e) : Er(e), sn(e);
|
|
1406
|
+
var s = vn(e);
|
|
1407
|
+
if (e.teardown = typeof s == "function" ? s : null, e.wv = dn, 0)
|
|
1408
1408
|
for (var a of e.deps) ;
|
|
1409
1409
|
} finally {
|
|
1410
1410
|
At = i, k = r;
|
|
@@ -1413,7 +1413,7 @@ function rt(e) {
|
|
|
1413
1413
|
}
|
|
1414
1414
|
function u(e) {
|
|
1415
1415
|
var t = (e.f & 2) !== 0;
|
|
1416
|
-
if (
|
|
1416
|
+
if (ss?.add(e), S !== null && !te && !(k !== null && k.f & 16384) && (Y === null || !Je.call(Y, e))) {
|
|
1417
1417
|
var r = S.deps;
|
|
1418
1418
|
if (S.f & 2097152)
|
|
1419
1419
|
e.rv < Ce && (e.rv = Ce, j === null && r !== null && r[W] === e ? W++ : j === null ? j = [e] : j.push(e));
|
|
@@ -1437,25 +1437,25 @@ function u(e) {
|
|
|
1437
1437
|
var c = e;
|
|
1438
1438
|
if (Me) {
|
|
1439
1439
|
var h = c.v;
|
|
1440
|
-
return (!(c.f & 1024) && c.reactions !== null ||
|
|
1440
|
+
return (!(c.f & 1024) && c.reactions !== null || gn(c)) && (h = kr(c)), Ae.set(c, h), h;
|
|
1441
1441
|
}
|
|
1442
1442
|
var p = (c.f & 512) === 0 && !te && S !== null && (At || (S.f & 512) !== 0), d = (c.f & _r) === 0;
|
|
1443
|
-
bt(c) && (p && (c.f |= 512),
|
|
1443
|
+
bt(c) && (p && (c.f |= 512), Yi(c)), p && !d && (Ki(c), _n(c));
|
|
1444
1444
|
}
|
|
1445
1445
|
if (z?.has(e)) return z.get(e);
|
|
1446
1446
|
if (e.f & 8388608) throw e.v;
|
|
1447
1447
|
return e.v;
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1449
|
+
function _n(e) {
|
|
1450
1450
|
if (e.f |= 512, e.deps !== null)
|
|
1451
1451
|
for (const t of e.deps)
|
|
1452
|
-
(t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (
|
|
1452
|
+
(t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (Ki(t), _n(t));
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1454
|
+
function gn(e) {
|
|
1455
1455
|
if (e.v === N) return !0;
|
|
1456
1456
|
if (e.deps === null) return !1;
|
|
1457
1457
|
for (const t of e.deps)
|
|
1458
|
-
if (Ae.has(t) || t.f & 2 &&
|
|
1458
|
+
if (Ae.has(t) || t.f & 2 && gn(t)) return !0;
|
|
1459
1459
|
return !1;
|
|
1460
1460
|
}
|
|
1461
1461
|
function Ft(e) {
|
|
@@ -1466,19 +1466,19 @@ function Ft(e) {
|
|
|
1466
1466
|
te = t;
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
1469
|
-
var Ye = Symbol("events"),
|
|
1470
|
-
function
|
|
1469
|
+
var Ye = Symbol("events"), mn = /* @__PURE__ */ new Set(), fr = /* @__PURE__ */ new Set();
|
|
1470
|
+
function ni(e, t, r) {
|
|
1471
1471
|
(t[Ye] ?? (t[Ye] = {}))[e] = r;
|
|
1472
1472
|
}
|
|
1473
|
-
function
|
|
1474
|
-
for (var t = 0; t < e.length; t++)
|
|
1473
|
+
function cs(e) {
|
|
1474
|
+
for (var t = 0; t < e.length; t++) mn.add(e[t]);
|
|
1475
1475
|
for (var r of fr) r(e);
|
|
1476
1476
|
}
|
|
1477
|
-
var
|
|
1478
|
-
function
|
|
1477
|
+
var oi = null;
|
|
1478
|
+
function si(e) {
|
|
1479
1479
|
var t = this, r = t.ownerDocument, i = e.type, n = e.composedPath?.() || [], o = n[0] || e.target;
|
|
1480
|
-
|
|
1481
|
-
var s = 0, a =
|
|
1480
|
+
oi = e;
|
|
1481
|
+
var s = 0, a = oi === e && e[Ye];
|
|
1482
1482
|
if (a) {
|
|
1483
1483
|
var c = n.indexOf(a);
|
|
1484
1484
|
if (c !== -1 && (t === document || t === window)) {
|
|
@@ -1521,13 +1521,13 @@ function oi(e) {
|
|
|
1521
1521
|
}
|
|
1522
1522
|
}
|
|
1523
1523
|
}
|
|
1524
|
-
var
|
|
1525
|
-
function us(e) {
|
|
1526
|
-
return cs?.createHTML(e) ?? e;
|
|
1527
|
-
}
|
|
1524
|
+
var us = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1528
1525
|
function fs(e) {
|
|
1526
|
+
return us?.createHTML(e) ?? e;
|
|
1527
|
+
}
|
|
1528
|
+
function ds(e) {
|
|
1529
1529
|
var t = Sr("template");
|
|
1530
|
-
return t.innerHTML =
|
|
1530
|
+
return t.innerHTML = fs(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1531
1531
|
}
|
|
1532
1532
|
function Ke(e, t) {
|
|
1533
1533
|
var r = k;
|
|
@@ -1539,13 +1539,13 @@ function Ke(e, t) {
|
|
|
1539
1539
|
});
|
|
1540
1540
|
}
|
|
1541
1541
|
// @__NO_SIDE_EFFECTS__
|
|
1542
|
-
function
|
|
1542
|
+
function bn(e, t) {
|
|
1543
1543
|
var r = (t & 1) !== 0, i = (t & 2) !== 0, n, o = !e.startsWith("<!>");
|
|
1544
1544
|
return () => {
|
|
1545
1545
|
if (O)
|
|
1546
1546
|
return Ke(I, null), I;
|
|
1547
|
-
n === void 0 && (n =
|
|
1548
|
-
var s = i ||
|
|
1547
|
+
n === void 0 && (n = ds(o ? e : "<!>" + e), r || (n = /* @__PURE__ */ tt(n)));
|
|
1548
|
+
var s = i || Qi ? document.importNode(n, !0) : n.cloneNode(!0);
|
|
1549
1549
|
if (r) {
|
|
1550
1550
|
var a = /* @__PURE__ */ tt(s), c = s.lastChild;
|
|
1551
1551
|
Ke(a, c);
|
|
@@ -1553,7 +1553,7 @@ function mn(e, t) {
|
|
|
1553
1553
|
return s;
|
|
1554
1554
|
};
|
|
1555
1555
|
}
|
|
1556
|
-
function
|
|
1556
|
+
function hs() {
|
|
1557
1557
|
if (O)
|
|
1558
1558
|
return Ke(I, null), I;
|
|
1559
1559
|
var e = document.createDocumentFragment(), t = document.createComment(""), r = _e();
|
|
@@ -1567,7 +1567,7 @@ function Et(e, t) {
|
|
|
1567
1567
|
}
|
|
1568
1568
|
e !== null && e.before(t);
|
|
1569
1569
|
}
|
|
1570
|
-
var
|
|
1570
|
+
var ps = [
|
|
1571
1571
|
"allowfullscreen",
|
|
1572
1572
|
"async",
|
|
1573
1573
|
"autofocus",
|
|
@@ -1596,8 +1596,8 @@ var hs = [
|
|
|
1596
1596
|
"defer",
|
|
1597
1597
|
"disablepictureinpicture",
|
|
1598
1598
|
"disableremoteplayback"
|
|
1599
|
-
],
|
|
1600
|
-
...
|
|
1599
|
+
], Ga = [
|
|
1600
|
+
...ps,
|
|
1601
1601
|
"formNoValidate",
|
|
1602
1602
|
"isMap",
|
|
1603
1603
|
"noModule",
|
|
@@ -1612,17 +1612,17 @@ var hs = [
|
|
|
1612
1612
|
"allowFullscreen",
|
|
1613
1613
|
"disablePictureInPicture",
|
|
1614
1614
|
"disableRemotePlayback"
|
|
1615
|
-
],
|
|
1616
|
-
function
|
|
1617
|
-
return
|
|
1615
|
+
], vs = ["touchstart", "touchmove"];
|
|
1616
|
+
function _s(e) {
|
|
1617
|
+
return vs.includes(e);
|
|
1618
1618
|
}
|
|
1619
|
-
var
|
|
1619
|
+
var gs = [
|
|
1620
1620
|
"$state",
|
|
1621
1621
|
"$state.raw",
|
|
1622
1622
|
"$derived",
|
|
1623
1623
|
"$derived.by"
|
|
1624
|
-
],
|
|
1625
|
-
...
|
|
1624
|
+
], qa = [
|
|
1625
|
+
...gs,
|
|
1626
1626
|
"$state.eager",
|
|
1627
1627
|
"$state.snapshot",
|
|
1628
1628
|
"$props",
|
|
@@ -1637,22 +1637,22 @@ var _s = [
|
|
|
1637
1637
|
"$inspect().with",
|
|
1638
1638
|
"$inspect.trace",
|
|
1639
1639
|
"$host"
|
|
1640
|
-
],
|
|
1641
|
-
function
|
|
1640
|
+
], ai = !0;
|
|
1641
|
+
function ms(e, t) {
|
|
1642
1642
|
var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1643
1643
|
r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = `${r}`);
|
|
1644
1644
|
}
|
|
1645
|
-
function
|
|
1646
|
-
return
|
|
1645
|
+
function yn(e, t) {
|
|
1646
|
+
return wn(e, t);
|
|
1647
1647
|
}
|
|
1648
|
-
function
|
|
1648
|
+
function bs(e, t) {
|
|
1649
1649
|
ur(), t.intro = t.intro ?? !1;
|
|
1650
1650
|
const r = t.target, i = O, n = I;
|
|
1651
1651
|
try {
|
|
1652
1652
|
for (var o = /* @__PURE__ */ tt(r); o && (o.nodeType !== 8 || o.data !== "["); ) o = /* @__PURE__ */ me(o);
|
|
1653
1653
|
if (!o) throw Xe;
|
|
1654
1654
|
qe(!0), re(o);
|
|
1655
|
-
const s =
|
|
1655
|
+
const s = wn(e, {
|
|
1656
1656
|
...t,
|
|
1657
1657
|
anchor: o
|
|
1658
1658
|
});
|
|
@@ -1660,43 +1660,43 @@ function ms(e, t) {
|
|
|
1660
1660
|
} catch (s) {
|
|
1661
1661
|
if (s instanceof Error && s.message.split(`
|
|
1662
1662
|
`).some((a) => a.startsWith("https://svelte.dev/e/"))) throw s;
|
|
1663
|
-
return s !== Xe && console.warn("Failed to hydrate: ", s), t.recover === !1 &&
|
|
1663
|
+
return s !== Xe && console.warn("Failed to hydrate: ", s), t.recover === !1 && po(), ur(), Ko(r), qe(!1), yn(e, t);
|
|
1664
1664
|
} finally {
|
|
1665
1665
|
qe(i), re(n);
|
|
1666
1666
|
}
|
|
1667
1667
|
}
|
|
1668
1668
|
var $t = /* @__PURE__ */ new Map();
|
|
1669
|
-
function
|
|
1669
|
+
function wn(e, { target: t, anchor: r, props: i = {}, events: n, context: o, intro: s = !0, transformError: a }) {
|
|
1670
1670
|
ur();
|
|
1671
|
-
var c = void 0, h =
|
|
1671
|
+
var c = void 0, h = ts(() => {
|
|
1672
1672
|
var p = r ?? t.appendChild(_e());
|
|
1673
|
-
|
|
1673
|
+
Ro(p, { pending: () => {
|
|
1674
1674
|
} }, (v) => {
|
|
1675
|
-
|
|
1675
|
+
Mi({});
|
|
1676
1676
|
var _ = R;
|
|
1677
|
-
if (o && (_.c = o), n && (i.$$events = n), O && Ke(v, null),
|
|
1677
|
+
if (o && (_.c = o), n && (i.$$events = n), O && Ke(v, null), ai = s, c = e(v, i) || {}, ai = !0, O && (k.nodes.end = I, I === null || I.nodeType !== 8 || I.data !== "]"))
|
|
1678
1678
|
throw zt(), Xe;
|
|
1679
|
-
|
|
1679
|
+
Oi();
|
|
1680
1680
|
}, a);
|
|
1681
1681
|
var d = /* @__PURE__ */ new Set(), f = (v) => {
|
|
1682
1682
|
for (var _ = 0; _ < v.length; _++) {
|
|
1683
1683
|
var m = v[_];
|
|
1684
1684
|
if (!d.has(m)) {
|
|
1685
1685
|
d.add(m);
|
|
1686
|
-
var y =
|
|
1686
|
+
var y = _s(m);
|
|
1687
1687
|
for (const E of [t, document]) {
|
|
1688
1688
|
var A = $t.get(E);
|
|
1689
1689
|
A === void 0 && (A = /* @__PURE__ */ new Map(), $t.set(E, A));
|
|
1690
1690
|
var B = A.get(m);
|
|
1691
|
-
B === void 0 ? (E.addEventListener(m,
|
|
1691
|
+
B === void 0 ? (E.addEventListener(m, si, { passive: y }), A.set(m, 1)) : A.set(m, B + 1);
|
|
1692
1692
|
}
|
|
1693
1693
|
}
|
|
1694
1694
|
}
|
|
1695
1695
|
};
|
|
1696
|
-
return f(
|
|
1696
|
+
return f(Kn(mn)), fr.add(f), () => {
|
|
1697
1697
|
for (var v of d) for (const y of [t, document]) {
|
|
1698
1698
|
var _ = $t.get(y), m = _.get(v);
|
|
1699
|
-
--m == 0 ? (y.removeEventListener(v,
|
|
1699
|
+
--m == 0 ? (y.removeEventListener(v, si), _.delete(v), _.size === 0 && $t.delete(y)) : _.set(v, m);
|
|
1700
1700
|
}
|
|
1701
1701
|
fr.delete(f), p !== r && p.parentNode?.removeChild(p);
|
|
1702
1702
|
};
|
|
@@ -1704,17 +1704,17 @@ function yn(e, { target: t, anchor: r, props: i = {}, events: n, context: o, int
|
|
|
1704
1704
|
return dr.set(c, h), c;
|
|
1705
1705
|
}
|
|
1706
1706
|
var dr = /* @__PURE__ */ new WeakMap();
|
|
1707
|
-
function
|
|
1707
|
+
function ys(e, t) {
|
|
1708
1708
|
const r = dr.get(e);
|
|
1709
1709
|
return r ? (dr.delete(e), r(t)) : Promise.resolve();
|
|
1710
1710
|
}
|
|
1711
|
-
var de = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(),
|
|
1711
|
+
var de = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), J = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), Jt = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), li = /* @__PURE__ */ new WeakMap(), ws = class {
|
|
1712
1712
|
constructor(e, t = !0) {
|
|
1713
1713
|
g(this, "anchor", void 0), T(this, de, /* @__PURE__ */ new Map()), T(this, ke, /* @__PURE__ */ new Map()), T(this, J, /* @__PURE__ */ new Map()), T(this, ot, /* @__PURE__ */ new Set()), T(this, Jt, !0), T(this, Qt, (r) => {
|
|
1714
1714
|
if (l(de, this).has(r)) {
|
|
1715
1715
|
var i = l(de, this).get(r), n = l(ke, this).get(i);
|
|
1716
1716
|
if (n)
|
|
1717
|
-
|
|
1717
|
+
os(n), l(ot, this).delete(i);
|
|
1718
1718
|
else {
|
|
1719
1719
|
var o = l(J, this).get(i);
|
|
1720
1720
|
o && (l(ke, this).set(i, o.effect), l(J, this).delete(i), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), n = o.effect);
|
|
@@ -1729,7 +1729,7 @@ var de = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), J =
|
|
|
1729
1729
|
const c = () => {
|
|
1730
1730
|
if (Array.from(l(de, this).values()).includes(s)) {
|
|
1731
1731
|
var h = document.createDocumentFragment();
|
|
1732
|
-
|
|
1732
|
+
un(a, h), h.append(_e()), l(J, this).set(s, {
|
|
1733
1733
|
effect: a,
|
|
1734
1734
|
fragment: h
|
|
1735
1735
|
});
|
|
@@ -1739,14 +1739,14 @@ var de = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), J =
|
|
|
1739
1739
|
l(Jt, this) || !n ? (l(ot, this).add(s), mt(a, c, !1)) : c();
|
|
1740
1740
|
}
|
|
1741
1741
|
}
|
|
1742
|
-
}), T(this,
|
|
1742
|
+
}), T(this, li, (r) => {
|
|
1743
1743
|
l(de, this).delete(r);
|
|
1744
1744
|
const i = Array.from(l(de, this).values());
|
|
1745
1745
|
for (const [n, o] of l(J, this)) i.includes(n) || (V(o.effect), l(J, this).delete(n));
|
|
1746
1746
|
}), this.anchor = e, b(Jt, this, t);
|
|
1747
1747
|
}
|
|
1748
1748
|
ensure(e, t) {
|
|
1749
|
-
var r = $, i =
|
|
1749
|
+
var r = $, i = Xo();
|
|
1750
1750
|
if (t && !l(ke, this).has(e) && !l(J, this).has(e)) if (i) {
|
|
1751
1751
|
var n = document.createDocumentFragment(), o = _e();
|
|
1752
1752
|
n.append(o), l(J, this).set(e, {
|
|
@@ -1757,18 +1757,18 @@ var de = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), J =
|
|
|
1757
1757
|
if (l(de, this).set(r, e), i) {
|
|
1758
1758
|
for (const [s, a] of l(ke, this)) s === e ? r.unskip_effect(a) : r.skip_effect(a);
|
|
1759
1759
|
for (const [s, a] of l(J, this)) s === e ? r.unskip_effect(a.effect) : r.skip_effect(a.effect);
|
|
1760
|
-
r.oncommit(l(Qt, this)), r.ondiscard(l(
|
|
1760
|
+
r.oncommit(l(Qt, this)), r.ondiscard(l(li, this));
|
|
1761
1761
|
} else
|
|
1762
1762
|
O && (this.anchor = I), l(Qt, this).call(this, r);
|
|
1763
1763
|
}
|
|
1764
1764
|
};
|
|
1765
|
-
function
|
|
1766
|
-
R === null &&
|
|
1765
|
+
function Ts(e) {
|
|
1766
|
+
R === null && ao("onMount"), vt && R.l !== null ? ks(R).m.push(e) : at(() => {
|
|
1767
1767
|
const t = Ft(e);
|
|
1768
1768
|
if (typeof t == "function") return t;
|
|
1769
1769
|
});
|
|
1770
1770
|
}
|
|
1771
|
-
function
|
|
1771
|
+
function ks(e) {
|
|
1772
1772
|
var t = e.l;
|
|
1773
1773
|
return t.u ?? (t.u = {
|
|
1774
1774
|
a: [],
|
|
@@ -1776,30 +1776,30 @@ function Ts(e) {
|
|
|
1776
1776
|
m: []
|
|
1777
1777
|
});
|
|
1778
1778
|
}
|
|
1779
|
-
function
|
|
1779
|
+
function ci(e, t, r = !1) {
|
|
1780
1780
|
var i;
|
|
1781
1781
|
O && (i = I, mr());
|
|
1782
|
-
var n = new
|
|
1782
|
+
var n = new ws(e), o = r ? gr : 0;
|
|
1783
1783
|
function s(a, c) {
|
|
1784
1784
|
if (O) {
|
|
1785
|
-
var h =
|
|
1785
|
+
var h = wo(i);
|
|
1786
1786
|
if (a !== parseInt(h.substring(1))) {
|
|
1787
|
-
var p =
|
|
1787
|
+
var p = Ii();
|
|
1788
1788
|
re(p), n.anchor = p, qe(!1), n.ensure(a, c), qe(!0);
|
|
1789
1789
|
return;
|
|
1790
1790
|
}
|
|
1791
1791
|
}
|
|
1792
1792
|
n.ensure(a, c);
|
|
1793
1793
|
}
|
|
1794
|
-
|
|
1794
|
+
on(() => {
|
|
1795
1795
|
var a = !1;
|
|
1796
1796
|
t((c, h = 0) => {
|
|
1797
1797
|
a = !0, s(h, c);
|
|
1798
1798
|
}), a || s(-1, null);
|
|
1799
1799
|
}, o);
|
|
1800
1800
|
}
|
|
1801
|
-
function
|
|
1802
|
-
|
|
1801
|
+
function Ss(e, t) {
|
|
1802
|
+
nn(() => {
|
|
1803
1803
|
var r = e.getRootNode(), i = r.host ? r : r.head ?? r.ownerDocument.head;
|
|
1804
1804
|
if (!i.querySelector("#" + t.hash)) {
|
|
1805
1805
|
const n = Sr("style");
|
|
@@ -1807,21 +1807,21 @@ function ks(e, t) {
|
|
|
1807
1807
|
}
|
|
1808
1808
|
});
|
|
1809
1809
|
}
|
|
1810
|
-
var
|
|
1810
|
+
var ui = [...`
|
|
1811
1811
|
\r\f \v\uFEFF`];
|
|
1812
|
-
function
|
|
1812
|
+
function $s(e, t, r) {
|
|
1813
1813
|
var i = e == null ? "" : "" + e;
|
|
1814
1814
|
if (t && (i = i ? i + " " + t : t), r) {
|
|
1815
1815
|
for (var n of Object.keys(r)) if (r[n]) i = i ? i + " " + n : n;
|
|
1816
1816
|
else if (i.length)
|
|
1817
1817
|
for (var o = n.length, s = 0; (s = i.indexOf(n, s)) >= 0; ) {
|
|
1818
1818
|
var a = s + o;
|
|
1819
|
-
(s === 0 ||
|
|
1819
|
+
(s === 0 || ui.includes(i[s - 1])) && (a === i.length || ui.includes(i[a])) ? i = (s === 0 ? "" : i.substring(0, s)) + i.substring(a + 1) : s = a;
|
|
1820
1820
|
}
|
|
1821
1821
|
}
|
|
1822
1822
|
return i === "" ? null : i;
|
|
1823
1823
|
}
|
|
1824
|
-
function
|
|
1824
|
+
function fi(e, t = !1) {
|
|
1825
1825
|
var r = t ? " !important;" : ";", i = "";
|
|
1826
1826
|
for (var n of Object.keys(e)) {
|
|
1827
1827
|
var o = e[n];
|
|
@@ -1832,7 +1832,7 @@ function ui(e, t = !1) {
|
|
|
1832
1832
|
function Zt(e) {
|
|
1833
1833
|
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
1834
1834
|
}
|
|
1835
|
-
function
|
|
1835
|
+
function Is(e, t) {
|
|
1836
1836
|
if (t) {
|
|
1837
1837
|
var r = "", i, n;
|
|
1838
1838
|
if (Array.isArray(t) ? (i = t[0], n = t[1]) : i = t, e) {
|
|
@@ -1859,14 +1859,14 @@ function $s(e, t) {
|
|
|
1859
1859
|
}
|
|
1860
1860
|
}
|
|
1861
1861
|
}
|
|
1862
|
-
return i && (r +=
|
|
1862
|
+
return i && (r += fi(i)), n && (r += fi(n, !0)), r = r.trim(), r === "" ? null : r;
|
|
1863
1863
|
}
|
|
1864
1864
|
return e == null ? null : String(e);
|
|
1865
1865
|
}
|
|
1866
|
-
function
|
|
1866
|
+
function As(e, t, r, i, n, o) {
|
|
1867
1867
|
var s = e.__className;
|
|
1868
1868
|
if (O || s !== r || s === void 0) {
|
|
1869
|
-
var a =
|
|
1869
|
+
var a = $s(r, i, o);
|
|
1870
1870
|
(!O || a !== e.getAttribute("class")) && (a == null ? e.removeAttribute("class") : t ? e.className = a : e.setAttribute("class", a)), e.__className = r;
|
|
1871
1871
|
} else if (o && n !== o) for (var c in o) {
|
|
1872
1872
|
var h = !!o[c];
|
|
@@ -1883,76 +1883,76 @@ function er(e, t = {}, r, i) {
|
|
|
1883
1883
|
function We(e, t, r, i) {
|
|
1884
1884
|
var n = e.__style;
|
|
1885
1885
|
if (O || n !== t) {
|
|
1886
|
-
var o =
|
|
1886
|
+
var o = Is(t, i);
|
|
1887
1887
|
(!O || o !== e.getAttribute("style")) && (o == null ? e.removeAttribute("style") : e.style.cssText = o), e.__style = t;
|
|
1888
1888
|
} else i && (Array.isArray(i) ? (er(e, r?.[0], i[0]), er(e, r?.[1], i[1], "important")) : er(e, r, i));
|
|
1889
1889
|
return i;
|
|
1890
1890
|
}
|
|
1891
|
-
var
|
|
1892
|
-
function
|
|
1893
|
-
var n =
|
|
1894
|
-
if (O && (n[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName ===
|
|
1891
|
+
var Es = Symbol("is custom element"), Ms = Symbol("is html"), Os = so ? "link" : "LINK";
|
|
1892
|
+
function Ps(e, t, r, i) {
|
|
1893
|
+
var n = xs(e);
|
|
1894
|
+
if (O && (n[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Os)) {
|
|
1895
1895
|
i || void 0;
|
|
1896
1896
|
return;
|
|
1897
1897
|
}
|
|
1898
|
-
n[t] !== (n[t] = r) && (t === "loading" && (e[
|
|
1898
|
+
n[t] !== (n[t] = r) && (t === "loading" && (e[no] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Rs(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
1899
1899
|
}
|
|
1900
|
-
function
|
|
1900
|
+
function xs(e) {
|
|
1901
1901
|
return e.__attributes ?? (e.__attributes = {
|
|
1902
|
-
[
|
|
1903
|
-
[
|
|
1902
|
+
[Es]: e.nodeName.includes("-"),
|
|
1903
|
+
[Ms]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
1904
1904
|
});
|
|
1905
1905
|
}
|
|
1906
|
-
var
|
|
1907
|
-
function
|
|
1908
|
-
var t = e.getAttribute("is") || e.nodeName, r =
|
|
1906
|
+
var di = /* @__PURE__ */ new Map();
|
|
1907
|
+
function Rs(e) {
|
|
1908
|
+
var t = e.getAttribute("is") || e.nodeName, r = di.get(t);
|
|
1909
1909
|
if (r) return r;
|
|
1910
|
-
|
|
1910
|
+
di.set(t, r = []);
|
|
1911
1911
|
for (var i, n = e, o = Element.prototype; o !== n; ) {
|
|
1912
|
-
i =
|
|
1912
|
+
i = Xn(n);
|
|
1913
1913
|
for (var s in i) i[s].set && r.push(s);
|
|
1914
|
-
n =
|
|
1914
|
+
n = Ti(n);
|
|
1915
1915
|
}
|
|
1916
1916
|
return r;
|
|
1917
1917
|
}
|
|
1918
|
-
var
|
|
1918
|
+
var Tn, Ge = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), hi = /* @__PURE__ */ new WeakSet(), kn = class {
|
|
1919
1919
|
constructor(e) {
|
|
1920
|
-
yr(this,
|
|
1920
|
+
yr(this, hi), T(this, Ge, /* @__PURE__ */ new WeakMap()), T(this, jt, void 0), T(this, tr, void 0), b(tr, this, e);
|
|
1921
1921
|
}
|
|
1922
1922
|
observe(e, t) {
|
|
1923
1923
|
var r = l(Ge, this).get(e) || /* @__PURE__ */ new Set();
|
|
1924
|
-
return r.add(t), l(Ge, this).set(e, r), M(
|
|
1924
|
+
return r.add(t), l(Ge, this).set(e, r), M(hi, this, Cs).call(this).observe(e, l(tr, this)), () => {
|
|
1925
1925
|
var i = l(Ge, this).get(e);
|
|
1926
1926
|
i.delete(t), i.size === 0 && (l(Ge, this).delete(e), l(jt, this).unobserve(e));
|
|
1927
1927
|
};
|
|
1928
1928
|
}
|
|
1929
1929
|
};
|
|
1930
|
-
|
|
1931
|
-
function
|
|
1930
|
+
Tn = kn;
|
|
1931
|
+
function Cs() {
|
|
1932
1932
|
return l(jt, this) ?? b(jt, this, new ResizeObserver((e) => {
|
|
1933
1933
|
for (var t of e) {
|
|
1934
|
-
|
|
1934
|
+
Tn.entries.set(t.target, t);
|
|
1935
1935
|
for (var r of l(Ge, this).get(t.target) || []) r(t);
|
|
1936
1936
|
}
|
|
1937
1937
|
}));
|
|
1938
1938
|
}
|
|
1939
|
-
g(
|
|
1940
|
-
function
|
|
1939
|
+
g(kn, "entries", /* @__PURE__ */ new WeakMap());
|
|
1940
|
+
function pi(e, t) {
|
|
1941
1941
|
return e === t || e?.[lt] === t;
|
|
1942
1942
|
}
|
|
1943
|
-
function
|
|
1943
|
+
function Ls(e = {}, t, r, i) {
|
|
1944
1944
|
var n = R.r, o = k;
|
|
1945
|
-
return
|
|
1945
|
+
return nn(() => {
|
|
1946
1946
|
var s, a;
|
|
1947
1947
|
return Ar(() => {
|
|
1948
1948
|
s = a, a = i?.() || [], Ft(() => {
|
|
1949
|
-
e !== r(...a) && (t(e, ...a), s &&
|
|
1949
|
+
e !== r(...a) && (t(e, ...a), s && pi(r(...s), e) && t(null, ...s));
|
|
1950
1950
|
});
|
|
1951
1951
|
}), () => {
|
|
1952
1952
|
let c = o;
|
|
1953
1953
|
for (; c !== n && c.parent !== null && c.parent.f & 33554432; ) c = c.parent;
|
|
1954
1954
|
const h = () => {
|
|
1955
|
-
a &&
|
|
1955
|
+
a && pi(r(...a), e) && t(null, ...a);
|
|
1956
1956
|
}, p = c.teardown;
|
|
1957
1957
|
c.teardown = () => {
|
|
1958
1958
|
h(), p?.();
|
|
@@ -1960,15 +1960,15 @@ function Cs(e = {}, t, r, i) {
|
|
|
1960
1960
|
};
|
|
1961
1961
|
}), e;
|
|
1962
1962
|
}
|
|
1963
|
-
function
|
|
1963
|
+
function vi(e, t, r, i) {
|
|
1964
1964
|
var n = !vt || (r & 2) !== 0, o = (r & 8) !== 0, s = (r & 16) !== 0, a = i, c = !0, h = () => (c && (c = !1, a = s ? Ft(i) : i), a);
|
|
1965
1965
|
let p;
|
|
1966
1966
|
if (o) {
|
|
1967
|
-
var d = lt in e ||
|
|
1967
|
+
var d = lt in e || Si in e;
|
|
1968
1968
|
p = Le(e, t)?.set ?? (d && t in e ? (E) => e[t] = E : void 0);
|
|
1969
1969
|
}
|
|
1970
1970
|
var f, v = !1;
|
|
1971
|
-
o ? [f, v] =
|
|
1971
|
+
o ? [f, v] = Ao(() => e[t]) : f = e[t], f === void 0 && i !== void 0 && (f = h(), p && (n && vo(t), p(f)));
|
|
1972
1972
|
var _;
|
|
1973
1973
|
if (n ? _ = () => {
|
|
1974
1974
|
var E = e[t];
|
|
@@ -1983,7 +1983,7 @@ function pi(e, t, r, i) {
|
|
|
1983
1983
|
return arguments.length > 0 ? ((!n || !H || m || v) && p(H ? _() : E), E) : _();
|
|
1984
1984
|
};
|
|
1985
1985
|
}
|
|
1986
|
-
var y = !1, A = (r & 1 ? Vt :
|
|
1986
|
+
var y = !1, A = (r & 1 ? Vt : qi)(() => (y = !1, _()));
|
|
1987
1987
|
o && u(A);
|
|
1988
1988
|
var B = k;
|
|
1989
1989
|
return function(E, H) {
|
|
@@ -1994,14 +1994,14 @@ function pi(e, t, r, i) {
|
|
|
1994
1994
|
return Me && y || B.f & 16384 ? A.v : u(A);
|
|
1995
1995
|
};
|
|
1996
1996
|
}
|
|
1997
|
-
function
|
|
1998
|
-
return new
|
|
1997
|
+
function Ns(e) {
|
|
1998
|
+
return new Ds(e);
|
|
1999
1999
|
}
|
|
2000
|
-
var Pe = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(),
|
|
2000
|
+
var Pe = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), Ds = class {
|
|
2001
2001
|
constructor(e) {
|
|
2002
2002
|
T(this, Pe, void 0), T(this, ie, void 0);
|
|
2003
2003
|
var t = /* @__PURE__ */ new Map(), r = (n, o) => {
|
|
2004
|
-
var s = /* @__PURE__ */
|
|
2004
|
+
var s = /* @__PURE__ */ Ho(o, !1, !1);
|
|
2005
2005
|
return t.set(n, s), s;
|
|
2006
2006
|
};
|
|
2007
2007
|
const i = new Proxy({
|
|
@@ -2012,13 +2012,13 @@ var Pe = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), Ns =
|
|
|
2012
2012
|
return u(t.get(o) ?? r(o, Reflect.get(n, o)));
|
|
2013
2013
|
},
|
|
2014
2014
|
has(n, o) {
|
|
2015
|
-
return o ===
|
|
2015
|
+
return o === Si ? !0 : (u(t.get(o) ?? r(o, Reflect.get(n, o))), Reflect.has(n, o));
|
|
2016
2016
|
},
|
|
2017
2017
|
set(n, o, s) {
|
|
2018
2018
|
return P(t.get(o) ?? r(o, s), s), Reflect.set(n, o, s);
|
|
2019
2019
|
}
|
|
2020
2020
|
});
|
|
2021
|
-
b(ie, this, (e.hydrate ?
|
|
2021
|
+
b(ie, this, (e.hydrate ? bs : yn)(e.component, {
|
|
2022
2022
|
target: e.target,
|
|
2023
2023
|
anchor: e.anchor,
|
|
2024
2024
|
props: i,
|
|
@@ -2040,7 +2040,7 @@ var Pe = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), Ns =
|
|
|
2040
2040
|
l(ie, this).$set = (n) => {
|
|
2041
2041
|
Object.assign(i, n);
|
|
2042
2042
|
}, l(ie, this).$destroy = () => {
|
|
2043
|
-
|
|
2043
|
+
ys(l(ie, this));
|
|
2044
2044
|
};
|
|
2045
2045
|
}
|
|
2046
2046
|
$set(e) {
|
|
@@ -2056,8 +2056,8 @@ var Pe = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), Ns =
|
|
|
2056
2056
|
$destroy() {
|
|
2057
2057
|
l(ie, this).$destroy();
|
|
2058
2058
|
}
|
|
2059
|
-
},
|
|
2060
|
-
typeof HTMLElement == "function" && (
|
|
2059
|
+
}, Sn;
|
|
2060
|
+
typeof HTMLElement == "function" && (Sn = class extends HTMLElement {
|
|
2061
2061
|
constructor(e, t, r) {
|
|
2062
2062
|
super(), g(this, "$$ctor", void 0), g(this, "$$s", void 0), g(this, "$$c", void 0), g(this, "$$cn", !1), g(this, "$$d", {}), g(this, "$$r", !1), g(this, "$$p_d", {}), g(this, "$$l", {}), g(this, "$$l_u", /* @__PURE__ */ new Map()), g(this, "$$me", void 0), g(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
2063
2063
|
}
|
|
@@ -2083,14 +2083,14 @@ typeof HTMLElement == "function" && (kn = class extends HTMLElement {
|
|
|
2083
2083
|
};
|
|
2084
2084
|
};
|
|
2085
2085
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2086
|
-
const t = {}, r =
|
|
2086
|
+
const t = {}, r = js(this);
|
|
2087
2087
|
for (const i of this.$$s) i in r && (i === "default" && !this.$$d.children ? (this.$$d.children = e(i), t.default = !0) : t[i] = e(i));
|
|
2088
2088
|
for (const i of this.attributes) {
|
|
2089
2089
|
const n = this.$$g_p(i.name);
|
|
2090
2090
|
n in this.$$d || (this.$$d[n] = Mt(n, i.value, this.$$p_d, "toProp"));
|
|
2091
2091
|
}
|
|
2092
2092
|
for (const i in this.$$p_d) !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
2093
|
-
this.$$c =
|
|
2093
|
+
this.$$c = Ns({
|
|
2094
2094
|
component: this.$$ctor,
|
|
2095
2095
|
target: this.$$shadowRoot || this,
|
|
2096
2096
|
props: {
|
|
@@ -2098,7 +2098,7 @@ typeof HTMLElement == "function" && (kn = class extends HTMLElement {
|
|
|
2098
2098
|
$$slots: t,
|
|
2099
2099
|
$$host: this
|
|
2100
2100
|
}
|
|
2101
|
-
}), this.$$me =
|
|
2101
|
+
}), this.$$me = es(() => {
|
|
2102
2102
|
Ar(() => {
|
|
2103
2103
|
this.$$r = !0;
|
|
2104
2104
|
for (const i of Pt(this.$$c)) {
|
|
@@ -2155,14 +2155,14 @@ function Mt(e, t, r, i) {
|
|
|
2155
2155
|
return t;
|
|
2156
2156
|
}
|
|
2157
2157
|
}
|
|
2158
|
-
function
|
|
2158
|
+
function js(e) {
|
|
2159
2159
|
const t = {};
|
|
2160
2160
|
return e.childNodes.forEach((r) => {
|
|
2161
2161
|
t[r.slot || "default"] = !0;
|
|
2162
2162
|
}), t;
|
|
2163
2163
|
}
|
|
2164
|
-
function
|
|
2165
|
-
let s = class extends
|
|
2164
|
+
function zs(e, t, r, i, n, o) {
|
|
2165
|
+
let s = class extends Sn {
|
|
2166
2166
|
constructor() {
|
|
2167
2167
|
super(e, r, n), this.$$p_d = t;
|
|
2168
2168
|
}
|
|
@@ -2187,14 +2187,14 @@ function js(e, t, r, i, n, o) {
|
|
|
2187
2187
|
} });
|
|
2188
2188
|
}), o && (s = o(s)), e.element = s, s;
|
|
2189
2189
|
}
|
|
2190
|
-
var
|
|
2190
|
+
var Vs = class extends Event {
|
|
2191
2191
|
constructor(e, t, r, i) {
|
|
2192
2192
|
super("context-request", {
|
|
2193
2193
|
bubbles: !0,
|
|
2194
2194
|
composed: !0
|
|
2195
2195
|
}), g(this, "context", void 0), g(this, "contextTarget", void 0), g(this, "callback", void 0), g(this, "subscribe", void 0), this.context = e, this.contextTarget = t, this.callback = r, this.subscribe = i ?? !1;
|
|
2196
2196
|
}
|
|
2197
|
-
},
|
|
2197
|
+
}, Fs = class {
|
|
2198
2198
|
constructor(e, t) {
|
|
2199
2199
|
g(this, "host", void 0), g(this, "context", void 0), g(this, "subscribe", void 0), g(this, "onValue", void 0), g(this, "isConnected", !1), g(this, "unsubscribe", void 0), g(this, "currentValue", void 0), g(this, "handleValue", (r, i) => {
|
|
2200
2200
|
i !== this.unsubscribe && (this.unsubscribe?.(), this.unsubscribe = i), !this.subscribe && this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0), this.currentValue = r, this.onValue?.(r);
|
|
@@ -2210,12 +2210,12 @@ var zs = class extends Event {
|
|
|
2210
2210
|
return this.currentValue;
|
|
2211
2211
|
}
|
|
2212
2212
|
requestValue() {
|
|
2213
|
-
this.host.dispatchEvent(new
|
|
2213
|
+
this.host.dispatchEvent(new Vs(this.context, this.host, this.handleValue, this.subscribe));
|
|
2214
2214
|
}
|
|
2215
|
-
}, Wt = (e) => e,
|
|
2216
|
-
function
|
|
2215
|
+
}, Wt = (e) => e, Ws = Wt(Symbol.for("pie.assessmentToolkit.runtimeContext")), Ya = Wt(Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), Ka = Wt(Symbol.for("pie.assessmentToolkit.shellContext")), Xa = Wt(Symbol.for("pie.assessmentToolkit.regionScopeContext"));
|
|
2216
|
+
function Bs(e, t, r) {
|
|
2217
2217
|
let i = !1;
|
|
2218
|
-
const n = new
|
|
2218
|
+
const n = new Fs(e, {
|
|
2219
2219
|
context: t,
|
|
2220
2220
|
subscribe: !0,
|
|
2221
2221
|
onValue: (h) => {
|
|
@@ -2239,42 +2239,42 @@ function Ws(e, t, r) {
|
|
|
2239
2239
|
globalThis.clearInterval(c), e.removeEventListener("context-provider", o), n.disconnect();
|
|
2240
2240
|
};
|
|
2241
2241
|
}
|
|
2242
|
-
function Bs(e, t) {
|
|
2243
|
-
return Ws(e, Fs, t);
|
|
2244
|
-
}
|
|
2245
2242
|
function Hs(e, t) {
|
|
2246
|
-
return Bs(e, t);
|
|
2243
|
+
return Bs(e, Ws, t);
|
|
2244
|
+
}
|
|
2245
|
+
function Us(e, t) {
|
|
2246
|
+
return Hs(e, t);
|
|
2247
2247
|
}
|
|
2248
|
-
var
|
|
2248
|
+
var _i;
|
|
2249
2249
|
(function(e) {
|
|
2250
2250
|
e.TTS_WORD = "tts-word", e.TTS_SENTENCE = "tts-sentence", e.ANNOTATION = "annotation";
|
|
2251
|
-
})(
|
|
2252
|
-
var
|
|
2251
|
+
})(_i || (_i = {}));
|
|
2252
|
+
var gi;
|
|
2253
2253
|
(function(e) {
|
|
2254
2254
|
e.YELLOW = "yellow", e.GREEN = "green", e.BLUE = "blue", e.PINK = "pink", e.ORANGE = "orange", e.UNDERLINE = "underline";
|
|
2255
|
-
})(
|
|
2256
|
-
function
|
|
2255
|
+
})(gi || (gi = {}));
|
|
2256
|
+
function $n(e) {
|
|
2257
2257
|
return (...t) => {
|
|
2258
2258
|
console.debug(`[${e}]`, ...t);
|
|
2259
2259
|
};
|
|
2260
2260
|
}
|
|
2261
|
-
var
|
|
2261
|
+
var Ja = $n("I18nService"), rr = {
|
|
2262
2262
|
assessment: [],
|
|
2263
2263
|
section: [],
|
|
2264
2264
|
item: [],
|
|
2265
2265
|
passage: [],
|
|
2266
2266
|
rubric: [],
|
|
2267
2267
|
element: []
|
|
2268
|
-
},
|
|
2268
|
+
}, Qa = {
|
|
2269
2269
|
section: [...rr.section],
|
|
2270
2270
|
item: [...rr.item],
|
|
2271
2271
|
passage: [...rr.passage]
|
|
2272
2272
|
};
|
|
2273
|
-
function
|
|
2273
|
+
function Gs(e) {
|
|
2274
2274
|
const t = e.trim();
|
|
2275
2275
|
return t || "";
|
|
2276
2276
|
}
|
|
2277
|
-
var
|
|
2277
|
+
var qs = [
|
|
2278
2278
|
"assessment",
|
|
2279
2279
|
"section",
|
|
2280
2280
|
"item",
|
|
@@ -2285,10 +2285,10 @@ var Gs = [
|
|
|
2285
2285
|
function Ot(e, t) {
|
|
2286
2286
|
if (typeof e != "string" || e.trim().length === 0) throw new Error(`Invalid tool registration: "${t}" must be a non-empty string.`);
|
|
2287
2287
|
}
|
|
2288
|
-
function
|
|
2288
|
+
function mi(e) {
|
|
2289
2289
|
if (Ot(e.toolId, "toolId"), Ot(e.name, "name"), Ot(e.description, "description"), typeof e.icon != "string" && typeof e.icon != "function") throw new Error(`Invalid tool registration "${e.toolId}": "icon" must be a string or function.`);
|
|
2290
2290
|
if (!Array.isArray(e.supportedLevels) || e.supportedLevels.length === 0) throw new Error(`Invalid tool registration "${e.toolId}": "supportedLevels" must be a non-empty array.`);
|
|
2291
|
-
const t = e.supportedLevels.find((r) => !
|
|
2291
|
+
const t = e.supportedLevels.find((r) => !qs.includes(r));
|
|
2292
2292
|
if (t) throw new Error(`Invalid tool registration "${e.toolId}": unsupported level "${t}".`);
|
|
2293
2293
|
if (e.activation !== void 0 && e.activation !== "toolbar-toggle" && e.activation !== "selection-gateway") throw new Error(`Invalid tool registration "${e.toolId}": unsupported activation "${String(e.activation)}".`);
|
|
2294
2294
|
if (e.singletonScope !== void 0 && e.singletonScope !== "section") throw new Error(`Invalid tool registration "${e.toolId}": unsupported singletonScope "${String(e.singletonScope)}".`);
|
|
@@ -2297,23 +2297,23 @@ function gi(e) {
|
|
|
2297
2297
|
if (typeof e.isVisibleInContext != "function") throw new Error(`Invalid tool registration "${e.toolId}": "isVisibleInContext" must be a function.`);
|
|
2298
2298
|
if (typeof e.renderToolbar != "function") throw new Error(`Invalid tool registration "${e.toolId}": "renderToolbar" must be a function.`);
|
|
2299
2299
|
}
|
|
2300
|
-
var
|
|
2300
|
+
var Ys = class {
|
|
2301
2301
|
constructor() {
|
|
2302
2302
|
g(this, "tools", /* @__PURE__ */ new Map()), g(this, "pnpIndex", /* @__PURE__ */ new Map()), g(this, "componentOverrides", {}), g(this, "moduleLoaders", /* @__PURE__ */ new Map()), g(this, "loadedToolModules", /* @__PURE__ */ new Set()), g(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
|
|
2303
2303
|
}
|
|
2304
2304
|
normalizeToolId(e) {
|
|
2305
|
-
return
|
|
2305
|
+
return Gs(e);
|
|
2306
2306
|
}
|
|
2307
2307
|
normalizeToolIds(e) {
|
|
2308
2308
|
return e.map((t) => this.normalizeToolId(t));
|
|
2309
2309
|
}
|
|
2310
2310
|
register(e) {
|
|
2311
|
-
if (
|
|
2311
|
+
if (mi(e), this.tools.has(e.toolId)) throw new Error(`Tool '${e.toolId}' is already registered`);
|
|
2312
2312
|
if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const t of e.pnpSupportIds)
|
|
2313
2313
|
this.pnpIndex.has(t) || this.pnpIndex.set(t, /* @__PURE__ */ new Set()), this.pnpIndex.get(t).add(e.toolId);
|
|
2314
2314
|
}
|
|
2315
2315
|
override(e) {
|
|
2316
|
-
if (
|
|
2316
|
+
if (mi(e), !this.tools.has(e.toolId)) throw new Error(`Cannot override non-existent tool '${e.toolId}'`);
|
|
2317
2317
|
const t = this.tools.get(e.toolId);
|
|
2318
2318
|
if (t.pnpSupportIds) for (const r of t.pnpSupportIds) this.pnpIndex.get(r)?.delete(e.toolId);
|
|
2319
2319
|
if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const r of e.pnpSupportIds)
|
|
@@ -2440,20 +2440,20 @@ var qs = class {
|
|
|
2440
2440
|
return i.renderToolbar(t, n);
|
|
2441
2441
|
}
|
|
2442
2442
|
};
|
|
2443
|
-
function
|
|
2443
|
+
function In(e) {
|
|
2444
2444
|
return e.level === "item";
|
|
2445
2445
|
}
|
|
2446
|
-
function
|
|
2446
|
+
function Ks(e) {
|
|
2447
2447
|
return e.level === "passage";
|
|
2448
2448
|
}
|
|
2449
|
-
function
|
|
2449
|
+
function Xs(e) {
|
|
2450
2450
|
return e.level === "rubric";
|
|
2451
2451
|
}
|
|
2452
|
-
function
|
|
2452
|
+
function An(e) {
|
|
2453
2453
|
return e.level === "element";
|
|
2454
2454
|
}
|
|
2455
2455
|
function Mr(e) {
|
|
2456
|
-
if (
|
|
2456
|
+
if (An(e)) {
|
|
2457
2457
|
const t = e.item.config;
|
|
2458
2458
|
if (!t) return "";
|
|
2459
2459
|
const r = [], i = (a) => a.replace(/<[^>]*>/g, " ").trim(), n = t.elements?.[e.elementId];
|
|
@@ -2468,7 +2468,7 @@ function Mr(e) {
|
|
|
2468
2468
|
}
|
|
2469
2469
|
return r.filter(Boolean).join(" ").trim();
|
|
2470
2470
|
}
|
|
2471
|
-
if (
|
|
2471
|
+
if (In(e)) {
|
|
2472
2472
|
const t = e.item;
|
|
2473
2473
|
if (!t?.config) return "";
|
|
2474
2474
|
const r = t.config, i = [], n = (c) => c.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2487,7 +2487,7 @@ function Mr(e) {
|
|
|
2487
2487
|
}
|
|
2488
2488
|
return i.filter(Boolean).join(" ").trim();
|
|
2489
2489
|
}
|
|
2490
|
-
if (
|
|
2490
|
+
if (Ks(e)) {
|
|
2491
2491
|
const t = e.passage;
|
|
2492
2492
|
if (!t?.config) return "";
|
|
2493
2493
|
const r = t.config, i = [], n = (c) => c.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2506,7 +2506,7 @@ function Mr(e) {
|
|
|
2506
2506
|
}
|
|
2507
2507
|
return i.filter(Boolean).join(" ").trim();
|
|
2508
2508
|
}
|
|
2509
|
-
if (
|
|
2509
|
+
if (Xs(e)) {
|
|
2510
2510
|
const t = e.rubricBlock;
|
|
2511
2511
|
return t.passage?.config ? (t.passage.config.markup || "").replace(/<[^>]*>/g, " ").trim() : (t.content || "").replace(/<[^>]*>/g, " ").trim();
|
|
2512
2512
|
}
|
|
@@ -2523,7 +2523,7 @@ function Bt(e) {
|
|
|
2523
2523
|
/\d+\s*[+\-*/=]\s*\d+/
|
|
2524
2524
|
].some((r) => r.test(t));
|
|
2525
2525
|
}
|
|
2526
|
-
function
|
|
2526
|
+
function Js(e) {
|
|
2527
2527
|
const t = [
|
|
2528
2528
|
"pie-multiple-choice",
|
|
2529
2529
|
"pie-inline-choice",
|
|
@@ -2532,7 +2532,7 @@ function Xs(e) {
|
|
|
2532
2532
|
"inline-choice",
|
|
2533
2533
|
"select-text"
|
|
2534
2534
|
];
|
|
2535
|
-
if (
|
|
2535
|
+
if (An(e)) {
|
|
2536
2536
|
const r = e.item.config;
|
|
2537
2537
|
if (!r?.models) return !1;
|
|
2538
2538
|
const i = (Array.isArray(r.models) ? r.models : Object.values(r.models)).find((o) => o && typeof o == "object" && o.id === e.elementId);
|
|
@@ -2540,7 +2540,7 @@ function Xs(e) {
|
|
|
2540
2540
|
const n = i.element || "";
|
|
2541
2541
|
return t.includes(n);
|
|
2542
2542
|
}
|
|
2543
|
-
if (
|
|
2543
|
+
if (In(e)) {
|
|
2544
2544
|
const r = e.item.config?.models;
|
|
2545
2545
|
return (Array.isArray(r) ? r : r && typeof r == "object" ? Object.values(r) : []).some((i) => {
|
|
2546
2546
|
if (!i || typeof i != "object") return !1;
|
|
@@ -2553,7 +2553,7 @@ function Xs(e) {
|
|
|
2553
2553
|
function Ht(e) {
|
|
2554
2554
|
return Mr(e).trim().length >= 10;
|
|
2555
2555
|
}
|
|
2556
|
-
function
|
|
2556
|
+
function Qs(e) {
|
|
2557
2557
|
const t = Mr(e);
|
|
2558
2558
|
return [
|
|
2559
2559
|
/chemistry|chemical|element|atom|molecule|compound/i,
|
|
@@ -2564,23 +2564,23 @@ function Js(e) {
|
|
|
2564
2564
|
/physics|force|energy|velocity|acceleration/i
|
|
2565
2565
|
].some((r) => r.test(t));
|
|
2566
2566
|
}
|
|
2567
|
-
var
|
|
2567
|
+
var Zs = [
|
|
2568
2568
|
"assessment",
|
|
2569
2569
|
"section",
|
|
2570
2570
|
"item",
|
|
2571
2571
|
"passage",
|
|
2572
2572
|
"rubric"
|
|
2573
|
-
],
|
|
2574
|
-
function
|
|
2575
|
-
return
|
|
2573
|
+
], ea = new Set(Zs);
|
|
2574
|
+
function ta(e) {
|
|
2575
|
+
return ea.has(e);
|
|
2576
2576
|
}
|
|
2577
2577
|
function Or(e, t, r) {
|
|
2578
2578
|
const i = e.trim(), n = r.trim();
|
|
2579
2579
|
if (!i || !n) throw new Error("Tool instance ids require non-empty tool and scope ids");
|
|
2580
|
-
if (!
|
|
2580
|
+
if (!ta(t)) throw new Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
|
|
2581
2581
|
return `${i}:${t}:${n}`;
|
|
2582
2582
|
}
|
|
2583
|
-
var
|
|
2583
|
+
var ra = class {
|
|
2584
2584
|
constructor() {
|
|
2585
2585
|
g(this, "providerId", "desmos-calculator"), g(this, "providerName", "Desmos Calculator"), g(this, "category", "calculator"), g(this, "version", "1.10"), g(this, "requiresAuth", !0), g(this, "desmosProvider", null), g(this, "config", null);
|
|
2586
2586
|
}
|
|
@@ -2655,7 +2655,7 @@ var ta = class {
|
|
|
2655
2655
|
destroy() {
|
|
2656
2656
|
this.desmosProvider && (this.desmosProvider.destroy(), this.desmosProvider = null), this.config = null, console.log("[DesmosToolProvider] Destroyed");
|
|
2657
2657
|
}
|
|
2658
|
-
},
|
|
2658
|
+
}, ia = (e, t) => {
|
|
2659
2659
|
const r = t?.useSentenceSegmenter !== !1;
|
|
2660
2660
|
try {
|
|
2661
2661
|
if (!r) throw new Error("Segmenter disabled by policy");
|
|
@@ -2682,14 +2682,14 @@ var ta = class {
|
|
|
2682
2682
|
text: e,
|
|
2683
2683
|
offset: 0
|
|
2684
2684
|
}];
|
|
2685
|
-
},
|
|
2685
|
+
}, na = class {
|
|
2686
2686
|
constructor() {
|
|
2687
2687
|
g(this, "providerId", "browser"), g(this, "providerName", "Browser Speech Synthesis"), g(this, "version", "1.0.0");
|
|
2688
2688
|
}
|
|
2689
2689
|
async initialize(e) {
|
|
2690
2690
|
if (typeof window > "u") throw new Error("BrowserTTSProvider requires browser environment");
|
|
2691
2691
|
if (!("speechSynthesis" in window)) throw new Error("Browser does not support Speech Synthesis API");
|
|
2692
|
-
return new
|
|
2692
|
+
return new oa(e);
|
|
2693
2693
|
}
|
|
2694
2694
|
supportsFeature(e) {
|
|
2695
2695
|
return !0;
|
|
@@ -2706,7 +2706,7 @@ var ta = class {
|
|
|
2706
2706
|
}
|
|
2707
2707
|
destroy() {
|
|
2708
2708
|
}
|
|
2709
|
-
},
|
|
2709
|
+
}, oa = class {
|
|
2710
2710
|
constructor(e) {
|
|
2711
2711
|
g(this, "utterance", null), g(this, "config", null), g(this, "_isPlaying", !1), g(this, "_isPaused", !1), g(this, "speakRunId", 0), g(this, "onWordBoundary", void 0), this.config = e;
|
|
2712
2712
|
}
|
|
@@ -2776,7 +2776,7 @@ var ta = class {
|
|
|
2776
2776
|
}
|
|
2777
2777
|
segmentSentences(e) {
|
|
2778
2778
|
const t = this.getSegmentationPolicy();
|
|
2779
|
-
return
|
|
2779
|
+
return ia(e, {
|
|
2780
2780
|
locale: t.locale,
|
|
2781
2781
|
useSentenceSegmenter: t.useSentenceSegmenter
|
|
2782
2782
|
});
|
|
@@ -2845,7 +2845,7 @@ var ta = class {
|
|
|
2845
2845
|
...e.providerOptions || {}
|
|
2846
2846
|
});
|
|
2847
2847
|
}
|
|
2848
|
-
},
|
|
2848
|
+
}, sa = class {
|
|
2849
2849
|
async emitTelemetry(e, t) {
|
|
2850
2850
|
try {
|
|
2851
2851
|
await this.config?.onTelemetry?.(e, t);
|
|
@@ -2877,7 +2877,7 @@ var ta = class {
|
|
|
2877
2877
|
}
|
|
2878
2878
|
async _initializeBrowserTTS(e) {
|
|
2879
2879
|
if (typeof window > "u" || !("speechSynthesis" in window)) throw new Error("[TTSToolProvider] Browser TTS not supported (Web Speech API not available)");
|
|
2880
|
-
this.ttsProvider = new
|
|
2880
|
+
this.ttsProvider = new na(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
|
|
2881
2881
|
}
|
|
2882
2882
|
async _initializeServerTTS(e) {
|
|
2883
2883
|
if (!e.apiEndpoint) throw new Error("[TTSToolProvider] apiEndpoint required for server-based TTS backends");
|
|
@@ -2888,7 +2888,7 @@ var ta = class {
|
|
|
2888
2888
|
backend: e.serverProvider || e.backend
|
|
2889
2889
|
}), this.ttsProvider = new (await (async () => {
|
|
2890
2890
|
try {
|
|
2891
|
-
const r = await import("./dist-
|
|
2891
|
+
const r = await import("./dist-Bud4G4lv.js");
|
|
2892
2892
|
return await this.emitTelemetry("pie-tool-library-load-success", {
|
|
2893
2893
|
toolId: "tts",
|
|
2894
2894
|
operation: "server-provider-module-import",
|
|
@@ -2933,7 +2933,7 @@ var ta = class {
|
|
|
2933
2933
|
destroy() {
|
|
2934
2934
|
this.ttsProvider && (this.ttsProvider.destroy(), this.ttsProvider = null), this.config = null, console.log("[TTSToolProvider] Destroyed");
|
|
2935
2935
|
}
|
|
2936
|
-
},
|
|
2936
|
+
}, aa = /* @__PURE__ */ new Set([
|
|
2937
2937
|
"annotation-xml",
|
|
2938
2938
|
"color-profile",
|
|
2939
2939
|
"font-face",
|
|
@@ -2942,16 +2942,16 @@ var ta = class {
|
|
|
2942
2942
|
"font-face-format",
|
|
2943
2943
|
"font-face-name",
|
|
2944
2944
|
"missing-glyph"
|
|
2945
|
-
]),
|
|
2945
|
+
]), la = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, ca = (e, t = "custom element tag") => {
|
|
2946
2946
|
if (!e || typeof e != "string") throw new Error(`Invalid ${t}: expected a non-empty string`);
|
|
2947
2947
|
const r = e.trim();
|
|
2948
2948
|
if (!r) throw new Error(`Invalid ${t}: tag is empty`);
|
|
2949
2949
|
if (r !== r.toLowerCase()) throw new Error(`Invalid ${t} "${r}": custom element names must be lowercase`);
|
|
2950
2950
|
if (!r.includes("-")) throw new Error(`Invalid ${t} "${r}": custom element names must include a hyphen`);
|
|
2951
|
-
if (
|
|
2952
|
-
if (!
|
|
2951
|
+
if (aa.has(r)) throw new Error(`Invalid ${t} "${r}": this name is reserved by the HTML spec`);
|
|
2952
|
+
if (!la.test(r)) throw new Error(`Invalid ${t} "${r}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
|
|
2953
2953
|
return r;
|
|
2954
|
-
},
|
|
2954
|
+
}, En = {
|
|
2955
2955
|
calculator: "pie-tool-calculator",
|
|
2956
2956
|
textToSpeech: "pie-tool-text-to-speech",
|
|
2957
2957
|
ruler: "pie-tool-ruler",
|
|
@@ -2964,22 +2964,22 @@ var ta = class {
|
|
|
2964
2964
|
annotationToolbar: "pie-tool-annotation-toolbar",
|
|
2965
2965
|
graph: "pie-tool-graph",
|
|
2966
2966
|
periodicTable: "pie-tool-periodic-table"
|
|
2967
|
-
},
|
|
2968
|
-
const n =
|
|
2967
|
+
}, ua = (e, t) => ca(t?.toolTagMap?.[e] ?? En[e] ?? e, `tool component tag for "${e}"`), fa = (e) => document.createElement(e), ue = (e, t, r, i) => {
|
|
2968
|
+
const n = ua(e, i), o = i?.toolComponentFactories?.[e] ?? i?.toolComponentFactory;
|
|
2969
2969
|
return o ? o({
|
|
2970
2970
|
toolId: e,
|
|
2971
2971
|
tagName: n,
|
|
2972
2972
|
context: t,
|
|
2973
2973
|
toolbarContext: r
|
|
2974
|
-
}) :
|
|
2975
|
-
},
|
|
2974
|
+
}) : fa(n);
|
|
2975
|
+
}, da = {
|
|
2976
2976
|
toolId: "calculator",
|
|
2977
2977
|
name: "Calculator",
|
|
2978
2978
|
description: "Multi-type calculator (basic, scientific, graphing)",
|
|
2979
2979
|
icon: "calculator",
|
|
2980
2980
|
provider: {
|
|
2981
2981
|
getProviderId: (e) => typeof e?.provider?.id == "string" && e.provider.id.length > 0 ? e.provider.id : "calculator-desmos",
|
|
2982
|
-
createProvider: () => new
|
|
2982
|
+
createProvider: () => new ra(),
|
|
2983
2983
|
getInitConfig: (e) => e?.provider?.init ?? {},
|
|
2984
2984
|
getAuthFetcher: (e) => {
|
|
2985
2985
|
const t = e?.provider?.runtime?.authFetcher;
|
|
@@ -3045,9 +3045,9 @@ var ta = class {
|
|
|
3045
3045
|
}
|
|
3046
3046
|
};
|
|
3047
3047
|
}
|
|
3048
|
-
},
|
|
3048
|
+
}, bi = (e) => e && typeof e == "object" ? e : {}, ha = (e) => e === "polly" || e === "google" || e === "server", U = (e, t) => e === void 0 ? t : e, pa = (e) => {
|
|
3049
3049
|
const t = e.backend || "browser";
|
|
3050
|
-
if (!
|
|
3050
|
+
if (!ha(t)) return e;
|
|
3051
3051
|
const r = {
|
|
3052
3052
|
...e,
|
|
3053
3053
|
apiEndpoint: U(e.apiEndpoint, "/api/tts"),
|
|
@@ -3069,13 +3069,13 @@ var ta = class {
|
|
|
3069
3069
|
defaultVoice: U(r.defaultVoice, "en-US-Wavenet-A")
|
|
3070
3070
|
} : r;
|
|
3071
3071
|
}, ir = (e) => {
|
|
3072
|
-
const t =
|
|
3073
|
-
return
|
|
3072
|
+
const t = bi(e), r = bi(e?.settings);
|
|
3073
|
+
return pa({
|
|
3074
3074
|
...t,
|
|
3075
3075
|
...r
|
|
3076
3076
|
});
|
|
3077
|
-
}, hr = (e) => e.backend || "browser",
|
|
3078
|
-
const t = hr(e), r =
|
|
3077
|
+
}, hr = (e) => e.backend || "browser", Mn = (e, t) => e.serverProvider || e.provider || (t === "polly" || t === "google" ? t : void 0), On = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), va = (e) => {
|
|
3078
|
+
const t = hr(e), r = Mn(e, t), i = On(e, r);
|
|
3079
3079
|
return {
|
|
3080
3080
|
voice: e.defaultVoice,
|
|
3081
3081
|
rate: e.rate,
|
|
@@ -3099,30 +3099,30 @@ var ta = class {
|
|
|
3099
3099
|
includeAuthOnAssetFetch: e.includeAuthOnAssetFetch,
|
|
3100
3100
|
validateEndpoint: e.validateEndpoint
|
|
3101
3101
|
};
|
|
3102
|
-
}, st = /* @__PURE__ */ new Map(),
|
|
3103
|
-
if (!Array.isArray(e)) return [...
|
|
3102
|
+
}, st = /* @__PURE__ */ new Map(), _a = "__pieToolElementUnmount", yi = Object.freeze([1.5, 2]), ga = (e) => {
|
|
3103
|
+
if (!Array.isArray(e)) return [...yi];
|
|
3104
3104
|
const t = /* @__PURE__ */ new Set();
|
|
3105
3105
|
for (const r of e) {
|
|
3106
3106
|
if (typeof r != "number" || !Number.isFinite(r) || r <= 0) continue;
|
|
3107
3107
|
const i = Math.round(r * 100) / 100;
|
|
3108
3108
|
i !== 1 && t.add(i);
|
|
3109
3109
|
}
|
|
3110
|
-
return t.size ? Array.from(t) : [...
|
|
3111
|
-
},
|
|
3110
|
+
return t.size ? Array.from(t) : [...yi];
|
|
3111
|
+
}, ma = {
|
|
3112
3112
|
toolId: "textToSpeech",
|
|
3113
3113
|
name: "Text to Speech",
|
|
3114
3114
|
description: "Read content aloud",
|
|
3115
3115
|
icon: "volume-up",
|
|
3116
3116
|
provider: {
|
|
3117
3117
|
getProviderId: () => "tts",
|
|
3118
|
-
createProvider: (e) => new
|
|
3118
|
+
createProvider: (e) => new sa(hr(ir(e))),
|
|
3119
3119
|
getInitConfig: (e) => {
|
|
3120
|
-
const t = ir(e), r = hr(t), i =
|
|
3120
|
+
const t = ir(e), r = hr(t), i = Mn(t, r);
|
|
3121
3121
|
return {
|
|
3122
3122
|
backend: r,
|
|
3123
3123
|
serverProvider: i,
|
|
3124
|
-
transportMode:
|
|
3125
|
-
...
|
|
3124
|
+
transportMode: On(t, i),
|
|
3125
|
+
...va(t)
|
|
3126
3126
|
};
|
|
3127
3127
|
},
|
|
3128
3128
|
getAuthFetcher: (e) => {
|
|
@@ -3147,12 +3147,12 @@ var ta = class {
|
|
|
3147
3147
|
return Ht(e);
|
|
3148
3148
|
},
|
|
3149
3149
|
renderToolbar(e, t) {
|
|
3150
|
-
const r = () =>
|
|
3150
|
+
const r = () => ga(ir(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0).speedOptions), i = Or(this.toolId, t.scope.level, t.scope.scopeId), n = () => {
|
|
3151
3151
|
const s = t.ui?.size;
|
|
3152
3152
|
return s === "sm" || s === "lg" ? s : "md";
|
|
3153
3153
|
}, o = () => {
|
|
3154
3154
|
let s = st.get(i);
|
|
3155
|
-
return s && typeof s.isConnected == "boolean" && !s.isConnected && (st.delete(i), s = void 0), s || (s = document.createElement("pie-tool-tts-inline"), s[
|
|
3155
|
+
return s && typeof s.isConnected == "boolean" && !s.isConnected && (st.delete(i), s = void 0), s || (s = document.createElement("pie-tool-tts-inline"), s[_a] = () => {
|
|
3156
3156
|
st.get(i) === s && st.delete(i);
|
|
3157
3157
|
}, st.set(i, s)), s.setAttribute("tool-id", i), s.setAttribute("catalog-id", t.catalogId || t.itemId), s.setAttribute("language", t.language || "en-US"), s.setAttribute("size", n()), s.speedOptions = r(), s;
|
|
3158
3158
|
};
|
|
@@ -3185,7 +3185,10 @@ function ye(e) {
|
|
|
3185
3185
|
const t = e.isActive();
|
|
3186
3186
|
e.button.active = t, e.overlay.visible = t, e.onActiveChange?.(t);
|
|
3187
3187
|
}
|
|
3188
|
-
|
|
3188
|
+
function Pr(e, t) {
|
|
3189
|
+
e.setAttribute("data-pie-tool-surface", t);
|
|
3190
|
+
}
|
|
3191
|
+
var ba = {
|
|
3189
3192
|
toolId: "ruler",
|
|
3190
3193
|
name: "Ruler",
|
|
3191
3194
|
description: "On-screen ruler for measurements",
|
|
@@ -3206,7 +3209,7 @@ var ma = {
|
|
|
3206
3209
|
onClick: () => t.toggleTool(this.toolId),
|
|
3207
3210
|
active: r.isActive()
|
|
3208
3211
|
}, n = t.componentOverrides ?? {}, o = ue(this.toolId, e, t, n);
|
|
3209
|
-
return o.setAttribute("tool-id", r.fullToolId), {
|
|
3212
|
+
return o.setAttribute("tool-id", r.fullToolId), Pr(o, "frameless"), {
|
|
3210
3213
|
toolId: this.toolId,
|
|
3211
3214
|
button: i,
|
|
3212
3215
|
elements: [{
|
|
@@ -3223,7 +3226,7 @@ var ma = {
|
|
|
3223
3226
|
subscribeActive: r.subscribeActive
|
|
3224
3227
|
};
|
|
3225
3228
|
}
|
|
3226
|
-
},
|
|
3229
|
+
}, ya = {
|
|
3227
3230
|
toolId: "protractor",
|
|
3228
3231
|
name: "Protractor",
|
|
3229
3232
|
description: "On-screen protractor for angle measurements",
|
|
@@ -3244,7 +3247,7 @@ var ma = {
|
|
|
3244
3247
|
onClick: () => t.toggleTool(this.toolId),
|
|
3245
3248
|
active: r.isActive()
|
|
3246
3249
|
}, n = t.componentOverrides ?? {}, o = ue(this.toolId, e, t, n);
|
|
3247
|
-
return o.setAttribute("tool-id", r.fullToolId), {
|
|
3250
|
+
return o.setAttribute("tool-id", r.fullToolId), Pr(o, "frameless"), {
|
|
3248
3251
|
toolId: this.toolId,
|
|
3249
3252
|
button: i,
|
|
3250
3253
|
elements: [{
|
|
@@ -3261,7 +3264,7 @@ var ma = {
|
|
|
3261
3264
|
subscribeActive: r.subscribeActive
|
|
3262
3265
|
};
|
|
3263
3266
|
}
|
|
3264
|
-
},
|
|
3267
|
+
}, wa = {
|
|
3265
3268
|
toolId: "answerEliminator",
|
|
3266
3269
|
name: "Answer Eliminator",
|
|
3267
3270
|
description: "Strike through answer choices",
|
|
@@ -3274,7 +3277,7 @@ var ma = {
|
|
|
3274
3277
|
"choiceMasking"
|
|
3275
3278
|
],
|
|
3276
3279
|
isVisibleInContext(e) {
|
|
3277
|
-
return
|
|
3280
|
+
return Js(e);
|
|
3278
3281
|
},
|
|
3279
3282
|
renderToolbar(e, t) {
|
|
3280
3283
|
const r = be(this.toolId, t), i = t.componentOverrides ?? {}, n = ue(this.toolId, e, t, i);
|
|
@@ -3308,7 +3311,7 @@ var ma = {
|
|
|
3308
3311
|
subscribeActive: r.subscribeActive
|
|
3309
3312
|
};
|
|
3310
3313
|
}
|
|
3311
|
-
},
|
|
3314
|
+
}, Ta = {
|
|
3312
3315
|
toolId: "highlighter",
|
|
3313
3316
|
name: "Highlighter",
|
|
3314
3317
|
description: "Highlight text",
|
|
@@ -3359,7 +3362,7 @@ var ma = {
|
|
|
3359
3362
|
subscribeActive: r.subscribeActive
|
|
3360
3363
|
};
|
|
3361
3364
|
}
|
|
3362
|
-
},
|
|
3365
|
+
}, ka = {
|
|
3363
3366
|
toolId: "lineReader",
|
|
3364
3367
|
name: "Line Reader",
|
|
3365
3368
|
description: "Reading guide overlay",
|
|
@@ -3390,7 +3393,7 @@ var ma = {
|
|
|
3390
3393
|
onClick: () => t.toggleTool(this.toolId),
|
|
3391
3394
|
active: r.isActive()
|
|
3392
3395
|
}, n = t.componentOverrides ?? {}, o = ue(this.toolId, e, t, n);
|
|
3393
|
-
return o.setAttribute("tool-id", r.fullToolId), {
|
|
3396
|
+
return o.setAttribute("tool-id", r.fullToolId), Pr(o, "frameless"), {
|
|
3394
3397
|
toolId: this.toolId,
|
|
3395
3398
|
button: i,
|
|
3396
3399
|
elements: [{
|
|
@@ -3407,7 +3410,7 @@ var ma = {
|
|
|
3407
3410
|
subscribeActive: r.subscribeActive
|
|
3408
3411
|
};
|
|
3409
3412
|
}
|
|
3410
|
-
},
|
|
3413
|
+
}, Sa = {
|
|
3411
3414
|
toolId: "theme",
|
|
3412
3415
|
name: "Theme",
|
|
3413
3416
|
description: "Accessible themes and contrast",
|
|
@@ -3463,7 +3466,7 @@ var ma = {
|
|
|
3463
3466
|
subscribeActive: r.subscribeActive
|
|
3464
3467
|
};
|
|
3465
3468
|
}
|
|
3466
|
-
},
|
|
3469
|
+
}, $a = {
|
|
3467
3470
|
toolId: "annotationToolbar",
|
|
3468
3471
|
name: "Highlighter",
|
|
3469
3472
|
description: "Highlight and annotate text",
|
|
@@ -3514,7 +3517,7 @@ var ma = {
|
|
|
3514
3517
|
subscribeActive: r.subscribeActive
|
|
3515
3518
|
};
|
|
3516
3519
|
}
|
|
3517
|
-
},
|
|
3520
|
+
}, Ia = {
|
|
3518
3521
|
toolId: "graph",
|
|
3519
3522
|
name: "Graph",
|
|
3520
3523
|
description: "Graphing calculator and coordinate plane",
|
|
@@ -3567,7 +3570,7 @@ var ma = {
|
|
|
3567
3570
|
subscribeActive: r.subscribeActive
|
|
3568
3571
|
};
|
|
3569
3572
|
}
|
|
3570
|
-
},
|
|
3573
|
+
}, Aa = {
|
|
3571
3574
|
toolId: "periodicTable",
|
|
3572
3575
|
name: "Periodic Table",
|
|
3573
3576
|
description: "Chemistry periodic table reference",
|
|
@@ -3579,7 +3582,7 @@ var ma = {
|
|
|
3579
3582
|
"elementReference"
|
|
3580
3583
|
],
|
|
3581
3584
|
isVisibleInContext(e) {
|
|
3582
|
-
return
|
|
3585
|
+
return Qs(e);
|
|
3583
3586
|
},
|
|
3584
3587
|
renderToolbar(e, t) {
|
|
3585
3588
|
const r = be(this.toolId, t), i = {
|
|
@@ -3619,9 +3622,8 @@ var ma = {
|
|
|
3619
3622
|
subscribeActive: r.subscribeActive
|
|
3620
3623
|
};
|
|
3621
3624
|
}
|
|
3622
|
-
},
|
|
3623
|
-
|
|
3624
|
-
ga,
|
|
3625
|
+
}, Ea = [
|
|
3626
|
+
da,
|
|
3625
3627
|
ma,
|
|
3626
3628
|
ba,
|
|
3627
3629
|
ya,
|
|
@@ -3630,43 +3632,44 @@ var ma = {
|
|
|
3630
3632
|
ka,
|
|
3631
3633
|
Sa,
|
|
3632
3634
|
$a,
|
|
3633
|
-
Ia
|
|
3635
|
+
Ia,
|
|
3636
|
+
Aa
|
|
3634
3637
|
];
|
|
3635
|
-
function
|
|
3636
|
-
const t = new
|
|
3638
|
+
function Ma(e = {}) {
|
|
3639
|
+
const t = new Ys(), r = {
|
|
3637
3640
|
toolTagMap: {
|
|
3638
|
-
...
|
|
3641
|
+
...En,
|
|
3639
3642
|
...e.toolTagMap || {}
|
|
3640
3643
|
},
|
|
3641
3644
|
toolComponentFactory: e.toolComponentFactory,
|
|
3642
3645
|
toolComponentFactories: e.toolComponentFactories
|
|
3643
3646
|
}, i = (n) => e.overrides?.[n.toolId] || n;
|
|
3644
|
-
return e.includePackagedTools &&
|
|
3647
|
+
return e.includePackagedTools && Oa(t, {
|
|
3645
3648
|
toolIds: e.toolIds,
|
|
3646
3649
|
applyOverrides: i
|
|
3647
3650
|
}), e.toolModuleLoaders && Object.keys(e.toolModuleLoaders).length > 0 && t.setToolModuleLoaders(e.toolModuleLoaders), t.setComponentOverrides(r), t;
|
|
3648
3651
|
}
|
|
3649
|
-
function
|
|
3652
|
+
function Oa(e, t = {}) {
|
|
3650
3653
|
const r = t.toolIds && t.toolIds.length > 0 ? new Set(t.toolIds) : null, i = t.applyOverrides || ((n) => n);
|
|
3651
|
-
for (const n of
|
|
3654
|
+
for (const n of Ea)
|
|
3652
3655
|
r && !r.has(n.toolId) || e.register(i(n));
|
|
3653
3656
|
}
|
|
3654
|
-
function
|
|
3655
|
-
return
|
|
3657
|
+
function Pa(e = {}) {
|
|
3658
|
+
return Ma({
|
|
3656
3659
|
...e,
|
|
3657
3660
|
includePackagedTools: !0
|
|
3658
3661
|
});
|
|
3659
3662
|
}
|
|
3660
|
-
function
|
|
3661
|
-
const e =
|
|
3663
|
+
function xa() {
|
|
3664
|
+
const e = Pa(), t = /* @__PURE__ */ new Set();
|
|
3662
3665
|
for (const r of e.getAllTools()) for (const i of r.pnpSupportIds || []) t.add(i);
|
|
3663
3666
|
return [...t].sort();
|
|
3664
3667
|
}
|
|
3665
|
-
var
|
|
3666
|
-
supports: [...
|
|
3668
|
+
var Ra = xa(), Za = {
|
|
3669
|
+
supports: [...Ra],
|
|
3667
3670
|
prohibitedSupports: [],
|
|
3668
3671
|
activateAtInit: []
|
|
3669
|
-
},
|
|
3672
|
+
}, Ca = {
|
|
3670
3673
|
visual: {
|
|
3671
3674
|
magnification: "magnification",
|
|
3672
3675
|
screenMagnifier: "screenMagnifier",
|
|
@@ -3779,17 +3782,17 @@ var xa = Pa(), Qa = {
|
|
|
3779
3782
|
itemGlossary: "itemGlossary",
|
|
3780
3783
|
tutorialAvailable: "tutorialAvailable"
|
|
3781
3784
|
}
|
|
3782
|
-
},
|
|
3785
|
+
}, el = Object.values(Ca).flatMap((e) => Object.values(e)), tl = $n("ToolCoordinator"), pr;
|
|
3783
3786
|
(function(e) {
|
|
3784
3787
|
e[e.BASE = 0] = "BASE", e[e.TOOL = 1e3] = "TOOL", e[e.MODAL = 2e3] = "MODAL", e[e.CONTROL = 3e3] = "CONTROL", e[e.HIGHLIGHT = 4e3] = "HIGHLIGHT";
|
|
3785
3788
|
})(pr || (pr = {}));
|
|
3786
|
-
var
|
|
3789
|
+
var wi;
|
|
3787
3790
|
(function(e) {
|
|
3788
3791
|
e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
|
|
3789
|
-
})(
|
|
3790
|
-
var
|
|
3792
|
+
})(wi || (wi = {}));
|
|
3793
|
+
var La = /* @__PURE__ */ bn('<div class="pie-tool-line-reader__mask pie-tool-line-reader__mask--top svelte-1a3d6dx" aria-hidden="true"></div> <div class="pie-tool-line-reader__mask pie-tool-line-reader__mask--bottom svelte-1a3d6dx" aria-hidden="true"></div> <div class="pie-tool-line-reader__mask pie-tool-line-reader__mask--left svelte-1a3d6dx" aria-hidden="true"></div> <div class="pie-tool-line-reader__mask pie-tool-line-reader__mask--right svelte-1a3d6dx" aria-hidden="true"></div>', 1), Na = /* @__PURE__ */ bn('<div class="pie-sr-only svelte-1a3d6dx" role="status" aria-live="polite" aria-atomic="true"> </div> <!> <div role="group" tabindex="0" aria-roledescription="Draggable and resizable reading guide overlay"><div class="pie-tool-line-reader__container svelte-1a3d6dx"></div> <div class="pie-tool-line-reader__resize-handle pie-tool-line-reader__resize-handle--bottom svelte-1a3d6dx" title="Drag to resize height" role="button" tabindex="-1" aria-label="Resize handle - drag to adjust height"><svg width="20" height="8" viewBox="0 0 20 8" aria-hidden="true"><rect x="8" y="3" width="4" height="2" fill="var(--pie-primary, #4CAF50)" rx="1"></rect></svg></div></div>', 1), Da = {
|
|
3791
3794
|
hash: "svelte-1a3d6dx",
|
|
3792
|
-
code: `.pie-sr-only.svelte-1a3d6dx {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0;}.pie-tool-line-reader.svelte-1a3d6dx {border:none;cursor:move;overflow:visible;position:absolute;transform:translate(-50%, -50%);user-select:none;pointer-events:auto;touch-action:none;}.pie-tool-line-reader.svelte-1a3d6dx:focus
|
|
3795
|
+
code: `.pie-sr-only.svelte-1a3d6dx {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0;}.pie-tool-line-reader.svelte-1a3d6dx {border:none;cursor:move;overflow:visible;position:absolute;transform:translate(-50%, -50%);user-select:none;pointer-events:auto;touch-action:none;}.pie-tool-line-reader.svelte-1a3d6dx:focus-visible {outline:3px solid var(--pie-button-focus-outline, var(--pie-primary, #4A90E2));outline-offset:2px;}.pie-tool-line-reader__container.svelte-1a3d6dx {width:100%;height:100%;position:relative;transition:background-color 0.2s ease;}.pie-tool-line-reader__resize-handle.svelte-1a3d6dx {position:absolute;cursor:ns-resize;z-index:10;display:flex;align-items:center;justify-content:center;}.pie-tool-line-reader__resize-handle--bottom.svelte-1a3d6dx {bottom:-12px;left:50%;transform:translateX(-50%);width:44px;height:24px;background-color:color-mix(in srgb, var(--pie-background, #fff) 90%, transparent);border-radius:12px;border:2px solid var(--pie-primary, #4caf50);}.pie-tool-line-reader__resize-handle.svelte-1a3d6dx:hover {background-color:color-mix(in srgb, var(--pie-primary, #4caf50) 20%, transparent);}.pie-tool-line-reader__resize-handle.svelte-1a3d6dx:active {cursor:ns-resize;}.pie-tool-line-reader.svelte-1a3d6dx:active {cursor:grabbing;}
|
|
3793
3796
|
|
|
3794
3797
|
/* Masking overlays for obscure mode - 4 rectangles covering all areas except line reader window */.pie-tool-line-reader__mask.svelte-1a3d6dx {position:fixed;background:color-mix(in srgb, var(--pie-text, #000) 85%, transparent);z-index:999;pointer-events:none;}.pie-tool-line-reader__mask--top.svelte-1a3d6dx {top:0;left:0;right:0;
|
|
3795
3798
|
/* Height set via inline style */}.pie-tool-line-reader__mask--bottom.svelte-1a3d6dx {
|
|
@@ -3801,12 +3804,12 @@ var Ca = /* @__PURE__ */ mn('<div class="pie-tool-line-reader__mask pie-tool-lin
|
|
|
3801
3804
|
|
|
3802
3805
|
/* In masking mode, the window should be transparent to show content underneath */.pie-tool-line-reader.pie-tool-line-reader--masking-mode.svelte-1a3d6dx .pie-tool-line-reader__container:where(.svelte-1a3d6dx) {background-color:transparent !important;}`
|
|
3803
3806
|
};
|
|
3804
|
-
function
|
|
3805
|
-
|
|
3806
|
-
let r =
|
|
3807
|
+
function ja(e, t) {
|
|
3808
|
+
Mi(t, !0), Ss(e, Da);
|
|
3809
|
+
let r = vi(t, "visible", 7, !1), i = vi(t, "toolId", 7, "lineReader");
|
|
3807
3810
|
const n = typeof window < "u";
|
|
3808
3811
|
let o = /* @__PURE__ */ x(void 0), s = /* @__PURE__ */ x(null);
|
|
3809
|
-
const a = /* @__PURE__ */
|
|
3812
|
+
const a = /* @__PURE__ */ Qr(() => u(s)?.toolCoordinator);
|
|
3810
3813
|
let c = /* @__PURE__ */ x(!1), h = /* @__PURE__ */ x(!1), p = /* @__PURE__ */ x(se({
|
|
3811
3814
|
x: n ? window.innerWidth / 2 : 400,
|
|
3812
3815
|
y: n ? window.innerHeight / 2 : 300
|
|
@@ -3845,33 +3848,33 @@ function Da(e, t) {
|
|
|
3845
3848
|
], H = 10, we = 10;
|
|
3846
3849
|
at(() => {
|
|
3847
3850
|
if (u(o))
|
|
3848
|
-
return
|
|
3851
|
+
return Us(u(o), (w) => {
|
|
3849
3852
|
P(s, w, !0);
|
|
3850
3853
|
});
|
|
3851
3854
|
});
|
|
3852
3855
|
function F(w) {
|
|
3853
3856
|
P(_, w, !0), setTimeout(() => P(_, ""), 1e3);
|
|
3854
3857
|
}
|
|
3855
|
-
function
|
|
3858
|
+
function Pn() {
|
|
3856
3859
|
const w = (E.findIndex((L) => L.value === u(m)) + 1) % E.length;
|
|
3857
3860
|
P(m, E[w].value, !0), F(`Color changed to ${E[w].name}`);
|
|
3858
3861
|
}
|
|
3859
|
-
function
|
|
3862
|
+
function xr(w) {
|
|
3860
3863
|
P(y, Math.max(0.1, Math.min(0.9, u(y) + w)), !0), F(`Opacity ${Math.round(u(y) * 100)}%`);
|
|
3861
3864
|
}
|
|
3862
|
-
function
|
|
3865
|
+
function xn() {
|
|
3863
3866
|
P(A, u(A) === "highlight" ? "obscure" : "highlight", !0), F(`Mode changed to ${u(A) === "highlight" ? "highlight" : "masking"}`);
|
|
3864
3867
|
}
|
|
3865
|
-
function xn(w) {
|
|
3866
|
-
w.target.closest(".resize-handle") ? Cn(w) : Rn(w);
|
|
3867
|
-
}
|
|
3868
3868
|
function Rn(w) {
|
|
3869
|
+
w.target.closest(".resize-handle") ? Ln(w) : Cn(w);
|
|
3870
|
+
}
|
|
3871
|
+
function Cn(w) {
|
|
3869
3872
|
u(o) && (u(o).setPointerCapture(w.pointerId), P(c, !0), P(f, {
|
|
3870
3873
|
x: w.clientX - u(p).x,
|
|
3871
3874
|
y: w.clientY - u(p).y
|
|
3872
3875
|
}, !0), u(a)?.bringToFront(u(o)), u(o).addEventListener("pointermove", Ut), u(o).addEventListener("pointerup", Gt), w.preventDefault());
|
|
3873
3876
|
}
|
|
3874
|
-
function
|
|
3877
|
+
function Ln(w) {
|
|
3875
3878
|
u(o) && (u(o).setPointerCapture(w.pointerId), P(h, !0), P(v, {
|
|
3876
3879
|
width: u(d).width,
|
|
3877
3880
|
height: u(d).height,
|
|
@@ -3891,7 +3894,7 @@ function Da(e, t) {
|
|
|
3891
3894
|
function Gt(w) {
|
|
3892
3895
|
u(o) && (u(o).releasePointerCapture(w.pointerId), u(o).removeEventListener("pointermove", Ut), u(o).removeEventListener("pointerup", Gt), P(c, !1), P(h, !1));
|
|
3893
3896
|
}
|
|
3894
|
-
function
|
|
3897
|
+
function Nn(w) {
|
|
3895
3898
|
let L = !1;
|
|
3896
3899
|
switch (w.key) {
|
|
3897
3900
|
case "ArrowUp":
|
|
@@ -3916,32 +3919,32 @@ function Da(e, t) {
|
|
|
3916
3919
|
break;
|
|
3917
3920
|
case "c":
|
|
3918
3921
|
case "C":
|
|
3919
|
-
|
|
3922
|
+
Pn(), L = !0;
|
|
3920
3923
|
break;
|
|
3921
3924
|
case "]":
|
|
3922
|
-
|
|
3925
|
+
xr(0.1), L = !0;
|
|
3923
3926
|
break;
|
|
3924
3927
|
case "[":
|
|
3925
|
-
|
|
3928
|
+
xr(-0.1), L = !0;
|
|
3926
3929
|
break;
|
|
3927
3930
|
case "m":
|
|
3928
3931
|
case "M":
|
|
3929
|
-
|
|
3932
|
+
xn(), L = !0;
|
|
3930
3933
|
break;
|
|
3931
3934
|
}
|
|
3932
3935
|
L && w.preventDefault();
|
|
3933
3936
|
}
|
|
3934
3937
|
at(() => {
|
|
3935
3938
|
u(a) && i() && !u(B) && (u(a).registerTool(i(), "Line Reader", void 0, pr.TOOL), P(B, !0));
|
|
3936
|
-
}),
|
|
3939
|
+
}), Ts(() => () => {
|
|
3937
3940
|
u(a) && i() && u(a).unregisterTool(i());
|
|
3938
3941
|
}), at(() => {
|
|
3939
3942
|
u(a) && u(o) && i() && u(a).updateToolElement(i(), u(o));
|
|
3940
3943
|
}), at(() => {
|
|
3941
3944
|
r() && u(o) && setTimeout(() => u(o)?.focus(), 100);
|
|
3942
3945
|
});
|
|
3943
|
-
let
|
|
3944
|
-
var
|
|
3946
|
+
let Dn = /* @__PURE__ */ Qr(() => u(m) + Math.round(u(y) * 255).toString(16).padStart(2, "0"));
|
|
3947
|
+
var jn = {
|
|
3945
3948
|
get visible() {
|
|
3946
3949
|
return r();
|
|
3947
3950
|
},
|
|
@@ -3954,31 +3957,31 @@ function Da(e, t) {
|
|
|
3954
3957
|
set toolId(w = "lineReader") {
|
|
3955
3958
|
i(w), or();
|
|
3956
3959
|
}
|
|
3957
|
-
},
|
|
3958
|
-
var L =
|
|
3959
|
-
|
|
3960
|
-
var
|
|
3961
|
-
var yt =
|
|
3962
|
-
|
|
3963
|
-
We(
|
|
3960
|
+
}, Rr = hs(), zn = Xt(Rr), Vn = (w) => {
|
|
3961
|
+
var L = Na(), qt = Xt(L), Fn = ei(qt, !0);
|
|
3962
|
+
Hr(qt);
|
|
3963
|
+
var Cr = nt(qt, 2), Wn = (fe) => {
|
|
3964
|
+
var yt = La(), Nr = Xt(yt), Dr = nt(Nr, 2), jr = nt(Dr, 2), Hn = nt(jr, 2);
|
|
3965
|
+
ti((Un, Gn) => {
|
|
3966
|
+
We(Nr, `height: ${Un ?? ""}px;`), We(Dr, `top: ${u(p).y + u(d).height / 2}px;`), We(jr, `top: ${u(p).y - u(d).height / 2}px; height: ${u(d).height ?? ""}px; width: ${Gn ?? ""}px;`), We(Hn, `top: ${u(p).y - u(d).height / 2}px; height: ${u(d).height ?? ""}px; left: ${u(p).x + u(d).width / 2}px;`);
|
|
3964
3967
|
}, [() => Math.max(0, u(p).y - u(d).height / 2), () => Math.max(0, u(p).x - u(d).width / 2)]), Et(fe, yt);
|
|
3965
3968
|
};
|
|
3966
|
-
|
|
3967
|
-
u(A) === "obscure" && fe(
|
|
3969
|
+
ci(Cr, (fe) => {
|
|
3970
|
+
u(A) === "obscure" && fe(Wn);
|
|
3968
3971
|
});
|
|
3969
|
-
var Te = nt(
|
|
3970
|
-
let
|
|
3971
|
-
var
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
}, [() => E.find((fe) => fe.value === u(m))?.name, () => Math.round(u(y) * 100)]),
|
|
3972
|
+
var Te = nt(Cr, 2);
|
|
3973
|
+
let Lr;
|
|
3974
|
+
var Bn = ei(Te);
|
|
3975
|
+
$i(2), Hr(Te), Ls(Te, (fe) => P(o, fe), () => u(o)), ti((fe, yt) => {
|
|
3976
|
+
ms(Fn, u(_)), Lr = As(Te, 1, "pie-tool-line-reader svelte-1a3d6dx", null, Lr, { "pie-tool-line-reader--masking-mode": u(A) === "obscure" }), We(Te, `left: ${u(p).x ?? ""}px; top: ${u(p).y ?? ""}px; width: ${u(d).width ?? ""}px; height: ${u(d).height ?? ""}px;`), Ps(Te, "aria-label", `Line Reader tool. Mode: ${u(A) === "highlight" ? "Highlight" : "Masking"}. Use arrow keys to move, +/- to resize height, C to change color, [ and ] to adjust opacity, M to toggle mode. Current color: ${fe ?? ""}, Opacity: ${yt ?? ""}%`), We(Bn, `background-color: ${u(Dn) ?? ""};`);
|
|
3977
|
+
}, [() => E.find((fe) => fe.value === u(m))?.name, () => Math.round(u(y) * 100)]), ni("pointerdown", Te, Rn), ni("keydown", Te, Nn), Et(w, L);
|
|
3975
3978
|
};
|
|
3976
|
-
return
|
|
3977
|
-
r() && w(
|
|
3978
|
-
}), Et(e,
|
|
3979
|
+
return ci(zn, (w) => {
|
|
3980
|
+
r() && w(Vn);
|
|
3981
|
+
}), Et(e, Rr), Oi(jn);
|
|
3979
3982
|
}
|
|
3980
|
-
|
|
3981
|
-
customElements.define("pie-tool-line-reader",
|
|
3983
|
+
cs(["pointerdown", "keydown"]);
|
|
3984
|
+
customElements.define("pie-tool-line-reader", zs(ja, {
|
|
3982
3985
|
visible: {
|
|
3983
3986
|
attribute: "visible",
|
|
3984
3987
|
type: "Boolean"
|
|
@@ -3989,5 +3992,5 @@ customElements.define("pie-tool-line-reader", js(Da, {
|
|
|
3989
3992
|
}
|
|
3990
3993
|
}, [], [], { mode: "open" }));
|
|
3991
3994
|
export {
|
|
3992
|
-
|
|
3995
|
+
ja as default
|
|
3993
3996
|
};
|