@pie-players/pie-tool-line-reader 0.3.41 → 0.3.43
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 +733 -717
- package/package.json +4 -4
package/dist/tool-line-reader.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { t as _ } from "./defineProperty-CyepwRr5.js";
|
|
2
2
|
if (typeof window < "u") {
|
|
3
3
|
var Zr, ei;
|
|
4
4
|
((Zr = (ei = window).__svelte ?? (ei.__svelte = {})).v ?? (Zr.v = /* @__PURE__ */ new Set())).add("5");
|
|
5
5
|
}
|
|
6
6
|
var et = {}, N = /* @__PURE__ */ Symbol();
|
|
7
|
-
var
|
|
7
|
+
var co = Array.isArray, uo = Array.prototype.indexOf, tt = Array.prototype.includes, fo = Array.from, jt = Object.keys, Dt = Object.defineProperty, De = Object.getOwnPropertyDescriptor, ho = Object.getOwnPropertyDescriptors, po = Object.prototype, vo = Array.prototype, ji = Object.getPrototypeOf, ti = Object.isExtensible, go = () => {
|
|
8
8
|
};
|
|
9
|
-
function
|
|
9
|
+
function _o(e) {
|
|
10
10
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Di() {
|
|
13
13
|
var e, t;
|
|
14
14
|
return {
|
|
15
15
|
promise: new Promise((r, i) => {
|
|
@@ -19,55 +19,55 @@ function Ni() {
|
|
|
19
19
|
reject: t
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
var
|
|
23
|
-
var
|
|
22
|
+
var dl = 1 << 24, J = 1024, oe = 2048, Ue = 4096, Ar = 8192, mo = 16384, Er = 32768, ri = 1 << 25, Mr = 65536, hl = 1 << 17, pl = 1 << 18, lt = 1 << 19, yo = 1 << 20, yt = 65536, ii = 1 << 21, bo = 1 << 22, zt = 1 << 23, pt = /* @__PURE__ */ Symbol("$state"), zi = /* @__PURE__ */ Symbol("legacy props"), wo = /* @__PURE__ */ Symbol(""), To = /* @__PURE__ */ Symbol("proxy path");
|
|
23
|
+
var _e = new class extends Error {
|
|
24
24
|
constructor(...t) {
|
|
25
|
-
super(...t),
|
|
25
|
+
super(...t), _(this, "name", "StaleReactionError"), _(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
26
26
|
}
|
|
27
|
-
}(),
|
|
28
|
-
function
|
|
27
|
+
}(), ko = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
28
|
+
function So(e) {
|
|
29
29
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function $o() {
|
|
32
32
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Io(e) {
|
|
35
35
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Ao() {
|
|
38
38
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Eo(e) {
|
|
41
41
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Mo() {
|
|
44
44
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Oo() {
|
|
47
47
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function Po(e) {
|
|
50
50
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function xo() {
|
|
53
53
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Lo() {
|
|
56
56
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Co() {
|
|
59
59
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Ro() {
|
|
62
62
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function No() {
|
|
65
65
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
66
66
|
}
|
|
67
67
|
function Gt(e) {
|
|
68
68
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function jo() {
|
|
71
71
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
72
72
|
}
|
|
73
73
|
var O = !1;
|
|
@@ -90,13 +90,13 @@ function ni(e) {
|
|
|
90
90
|
A = e;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function Vi(e = 1) {
|
|
94
94
|
if (O) {
|
|
95
95
|
for (var t = e, r = A; t--; ) r = /* @__PURE__ */ Te(r);
|
|
96
96
|
A = r;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Wi(e = !0) {
|
|
100
100
|
for (var t = 0, r = A; ; ) {
|
|
101
101
|
if (r.nodeType === 8) {
|
|
102
102
|
var i = r.data;
|
|
@@ -109,32 +109,32 @@ function zi(e = !0) {
|
|
|
109
109
|
e && r.remove(), r = n;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function Do(e) {
|
|
113
113
|
if (!e || e.nodeType !== 8)
|
|
114
114
|
throw Gt(), et;
|
|
115
115
|
return e.data;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Hi(e) {
|
|
118
118
|
return e === this.v;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function zo(e, t) {
|
|
121
121
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
return !
|
|
123
|
+
function Fi(e) {
|
|
124
|
+
return !zo(e, this.v);
|
|
125
125
|
}
|
|
126
|
-
var me = !1,
|
|
126
|
+
var me = !1, bt = !1;
|
|
127
127
|
function oi(e, t) {
|
|
128
|
-
return e.label = t,
|
|
128
|
+
return e.label = t, Vo(e.v, t), e;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
return e?.[
|
|
130
|
+
function Vo(e, t) {
|
|
131
|
+
return e?.[To]?.(t), e;
|
|
132
132
|
}
|
|
133
133
|
var L = null;
|
|
134
134
|
function rt(e) {
|
|
135
135
|
L = e;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function Bi(e, t = !1, r) {
|
|
138
138
|
L = {
|
|
139
139
|
p: L,
|
|
140
140
|
i: !1,
|
|
@@ -143,45 +143,45 @@ function Hi(e, t = !1, r) {
|
|
|
143
143
|
s: e,
|
|
144
144
|
x: null,
|
|
145
145
|
r: k,
|
|
146
|
-
l:
|
|
146
|
+
l: bt && !t ? {
|
|
147
147
|
s: null,
|
|
148
148
|
u: null,
|
|
149
149
|
$: []
|
|
150
150
|
} : null
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Ui(e) {
|
|
154
154
|
var t = L, r = t.e;
|
|
155
155
|
if (r !== null) {
|
|
156
156
|
t.e = null;
|
|
157
|
-
for (var i of r)
|
|
157
|
+
for (var i of r) _n(i);
|
|
158
158
|
}
|
|
159
159
|
return e !== void 0 && (t.x = e), t.i = !0, L = t.p, e ?? {};
|
|
160
160
|
}
|
|
161
161
|
function wt() {
|
|
162
|
-
return !
|
|
162
|
+
return !bt || L !== null && L.l === null;
|
|
163
163
|
}
|
|
164
164
|
var Ne = [];
|
|
165
|
-
function
|
|
165
|
+
function Gi() {
|
|
166
166
|
var e = Ne;
|
|
167
|
-
Ne = [],
|
|
167
|
+
Ne = [], _o(e);
|
|
168
168
|
}
|
|
169
169
|
function it(e) {
|
|
170
170
|
if (Ne.length === 0 && !vt) {
|
|
171
171
|
var t = Ne;
|
|
172
172
|
queueMicrotask(() => {
|
|
173
|
-
t === Ne &&
|
|
173
|
+
t === Ne && Gi();
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
Ne.push(e);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
for (; Ne.length > 0; )
|
|
178
|
+
function Wo() {
|
|
179
|
+
for (; Ne.length > 0; ) Gi();
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function qi(e) {
|
|
182
182
|
var t = k;
|
|
183
183
|
if (t === null)
|
|
184
|
-
return
|
|
184
|
+
return $.f |= zt, e;
|
|
185
185
|
if ((t.f & 32768) === 0 && (t.f & 4) === 0)
|
|
186
186
|
throw e;
|
|
187
187
|
xe(e, t);
|
|
@@ -201,53 +201,53 @@ function xe(e, t) {
|
|
|
201
201
|
}
|
|
202
202
|
throw e;
|
|
203
203
|
}
|
|
204
|
-
var
|
|
205
|
-
function
|
|
206
|
-
e.f = e.f &
|
|
204
|
+
var Ho = ~(oe | Ue | J);
|
|
205
|
+
function C(e, t) {
|
|
206
|
+
e.f = e.f & Ho | t;
|
|
207
207
|
}
|
|
208
208
|
function Pr(e) {
|
|
209
|
-
(e.f & 512) !== 0 || e.deps === null ?
|
|
209
|
+
(e.f & 512) !== 0 || e.deps === null ? C(e, J) : C(e, Ue);
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function Yi(e) {
|
|
212
212
|
if (e !== null)
|
|
213
213
|
for (const t of e)
|
|
214
|
-
(t.f & 2) === 0 || (t.f & 65536) === 0 || (t.f ^=
|
|
214
|
+
(t.f & 2) === 0 || (t.f & 65536) === 0 || (t.f ^= yt, Yi(t.deps));
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e),
|
|
216
|
+
function Ki(e, t, r) {
|
|
217
|
+
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e), Yi(e.deps), C(e, J);
|
|
218
218
|
}
|
|
219
|
-
var
|
|
220
|
-
function
|
|
221
|
-
var t =
|
|
219
|
+
var Fo = !1, It = !1;
|
|
220
|
+
function Bo(e) {
|
|
221
|
+
var t = It;
|
|
222
222
|
try {
|
|
223
|
-
return
|
|
223
|
+
return It = !1, [e(), It];
|
|
224
224
|
} finally {
|
|
225
|
-
|
|
225
|
+
It = t;
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function Xi(e, t) {
|
|
229
229
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
230
230
|
}
|
|
231
231
|
function xr(e, t) {
|
|
232
|
-
|
|
232
|
+
Xi(e, t), t.add(e);
|
|
233
233
|
}
|
|
234
|
-
function
|
|
235
|
-
|
|
234
|
+
function b(e, t, r) {
|
|
235
|
+
Xi(e, t), t.set(e, r);
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function I(e, t, r) {
|
|
238
238
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
|
|
239
239
|
throw new TypeError("Private element is not present on this object");
|
|
240
240
|
}
|
|
241
241
|
function l(e, t) {
|
|
242
|
-
return e.get(
|
|
242
|
+
return e.get(I(e, t));
|
|
243
243
|
}
|
|
244
244
|
function w(e, t, r) {
|
|
245
|
-
return e.set(
|
|
245
|
+
return e.set(I(e, t), r), r;
|
|
246
246
|
}
|
|
247
|
-
var
|
|
248
|
-
var
|
|
247
|
+
var Ji, ce = /* @__PURE__ */ new Set(), S = null, si = null, D = null, dr = null, vt = !1, tr = !1, nt = null, Vt = null, Qi = 0;
|
|
248
|
+
var Uo = 1, Wt = /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), Pt = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), hr = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), Pe = /* @__PURE__ */ new WeakMap(), xt = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), z = /* @__PURE__ */ new WeakSet(), Ge = class Zi {
|
|
249
249
|
constructor() {
|
|
250
|
-
xr(this, z),
|
|
250
|
+
xr(this, z), _(this, "id", Uo++), _(this, "current", /* @__PURE__ */ new Map()), _(this, "previous", /* @__PURE__ */ new Map()), b(this, Wt, /* @__PURE__ */ new Set()), b(this, At, /* @__PURE__ */ new Set()), b(this, ct, /* @__PURE__ */ new Set()), b(this, Re, /* @__PURE__ */ new Map()), b(this, Oe, /* @__PURE__ */ new Map()), b(this, Pt, null), b(this, te, []), b(this, hr, []), b(this, ot, /* @__PURE__ */ new Set()), b(this, ze, /* @__PURE__ */ new Set()), b(this, Pe, /* @__PURE__ */ new Map()), b(this, xt, /* @__PURE__ */ new Set()), _(this, "is_fork", !1), b(this, Et, !1), b(this, Qe, /* @__PURE__ */ new Set());
|
|
251
251
|
}
|
|
252
252
|
skip_effect(t) {
|
|
253
253
|
l(Pe, this).has(t) || l(Pe, this).set(t, {
|
|
@@ -260,9 +260,9 @@ var Fo = 1, Wt = /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ new WeakMap
|
|
|
260
260
|
if (i) {
|
|
261
261
|
l(Pe, this).delete(t);
|
|
262
262
|
for (var n of i.d)
|
|
263
|
-
|
|
263
|
+
C(n, oe), r(n);
|
|
264
264
|
for (n of i.m)
|
|
265
|
-
|
|
265
|
+
C(n, Ue), r(n);
|
|
266
266
|
}
|
|
267
267
|
l(xt, this).add(t);
|
|
268
268
|
}
|
|
@@ -278,9 +278,9 @@ var Fo = 1, Wt = /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ new WeakMap
|
|
|
278
278
|
flush() {
|
|
279
279
|
var t = null;
|
|
280
280
|
try {
|
|
281
|
-
tr = !0, S = this,
|
|
281
|
+
tr = !0, S = this, I(z, this, Lr).call(this);
|
|
282
282
|
} finally {
|
|
283
|
-
|
|
283
|
+
Qi = 0, dr = null, nt = null, Vt = null, tr = !1, S = null, D = null, He.clear();
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
discard() {
|
|
@@ -291,15 +291,15 @@ var Fo = 1, Wt = /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ new WeakMap
|
|
|
291
291
|
l(hr, this).push(t);
|
|
292
292
|
}
|
|
293
293
|
increment(t, r) {
|
|
294
|
-
let i = l(
|
|
295
|
-
if (l(
|
|
294
|
+
let i = l(Re, this).get(r) ?? 0;
|
|
295
|
+
if (l(Re, this).set(r, i + 1), t) {
|
|
296
296
|
let n = l(Oe, this).get(r) ?? 0;
|
|
297
297
|
l(Oe, this).set(r, n + 1);
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
decrement(t, r, i) {
|
|
301
|
-
let n = l(
|
|
302
|
-
if (n === 1 ? l(
|
|
301
|
+
let n = l(Re, this).get(r) ?? 0;
|
|
302
|
+
if (n === 1 ? l(Re, this).delete(r) : l(Re, this).set(r, n - 1), t) {
|
|
303
303
|
let o = l(Oe, this).get(r) ?? 0;
|
|
304
304
|
o === 1 ? l(Oe, this).delete(r) : l(Oe, this).set(r, o - 1);
|
|
305
305
|
}
|
|
@@ -326,11 +326,11 @@ var Fo = 1, Wt = /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ new WeakMap
|
|
|
326
326
|
l(ct, this).clear();
|
|
327
327
|
}
|
|
328
328
|
settled() {
|
|
329
|
-
return (l(Pt, this) ?? w(Pt, this,
|
|
329
|
+
return (l(Pt, this) ?? w(Pt, this, Di())).promise;
|
|
330
330
|
}
|
|
331
331
|
static ensure() {
|
|
332
332
|
if (S === null) {
|
|
333
|
-
const t = S = new
|
|
333
|
+
const t = S = new Zi();
|
|
334
334
|
tr || (ce.add(S), vt || it(() => {
|
|
335
335
|
S === t && t.flush();
|
|
336
336
|
}));
|
|
@@ -361,7 +361,7 @@ var Fo = 1, Wt = /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ new WeakMap
|
|
|
361
361
|
for (var r = t; r.parent !== null; ) {
|
|
362
362
|
r = r.parent;
|
|
363
363
|
var i = r.f;
|
|
364
|
-
if (nt !== null && r === k && (me || (
|
|
364
|
+
if (nt !== null && r === k && (me || ($ === null || ($.f & 2) === 0) && !Fo))
|
|
365
365
|
return;
|
|
366
366
|
if ((i & 96) !== 0) {
|
|
367
367
|
if ((i & 1024) === 0) return;
|
|
@@ -371,11 +371,11 @@ var Fo = 1, Wt = /* @__PURE__ */ new WeakMap(), At = /* @__PURE__ */ new WeakMap
|
|
|
371
371
|
l(te, this).push(r);
|
|
372
372
|
}
|
|
373
373
|
};
|
|
374
|
-
|
|
374
|
+
Ji = Ge;
|
|
375
375
|
function pr() {
|
|
376
376
|
return this.is_fork || l(Oe, this).size > 0;
|
|
377
377
|
}
|
|
378
|
-
function
|
|
378
|
+
function Go() {
|
|
379
379
|
for (const r of l(Qe, this)) for (const i of l(Oe, r).keys()) {
|
|
380
380
|
for (var e = !1, t = i; t.parent !== null; ) {
|
|
381
381
|
if (l(Pe, this).has(t)) {
|
|
@@ -389,29 +389,29 @@ function Bo() {
|
|
|
389
389
|
return !1;
|
|
390
390
|
}
|
|
391
391
|
function Lr() {
|
|
392
|
-
if (
|
|
392
|
+
if (Qi++ > 1e3 && (ce.delete(this), Yo()), !I(z, this, pr).call(this)) {
|
|
393
393
|
for (const s of l(ot, this))
|
|
394
|
-
l(ze, this).delete(s),
|
|
394
|
+
l(ze, this).delete(s), C(s, oe), this.schedule(s);
|
|
395
395
|
for (const s of l(ze, this))
|
|
396
|
-
|
|
396
|
+
C(s, Ue), this.schedule(s);
|
|
397
397
|
}
|
|
398
398
|
const e = l(te, this);
|
|
399
399
|
w(te, this, []), this.apply();
|
|
400
400
|
var t = nt = [], r = [], i = Vt = [];
|
|
401
401
|
for (const s of e) try {
|
|
402
|
-
|
|
402
|
+
I(z, this, en).call(this, s, t, r);
|
|
403
403
|
} catch (a) {
|
|
404
|
-
throw
|
|
404
|
+
throw nn(s), a;
|
|
405
405
|
}
|
|
406
406
|
if (S = null, i.length > 0) {
|
|
407
|
-
var n =
|
|
407
|
+
var n = Ji.ensure();
|
|
408
408
|
for (const s of i) n.schedule(s);
|
|
409
409
|
}
|
|
410
|
-
if (nt = null, Vt = null,
|
|
411
|
-
|
|
412
|
-
for (const [s, a] of l(Pe, this))
|
|
410
|
+
if (nt = null, Vt = null, I(z, this, pr).call(this) || I(z, this, Go).call(this)) {
|
|
411
|
+
I(z, this, vr).call(this, r), I(z, this, vr).call(this, t);
|
|
412
|
+
for (const [s, a] of l(Pe, this)) rn(s, a);
|
|
413
413
|
} else {
|
|
414
|
-
l(
|
|
414
|
+
l(Re, this).size === 0 && ce.delete(this), l(ot, this).clear(), l(ze, this).clear();
|
|
415
415
|
for (const s of l(Wt, this)) s(this);
|
|
416
416
|
l(Wt, this).clear(), si = this, ai(r), ai(t), si = null, l(Pt, this)?.resolve();
|
|
417
417
|
}
|
|
@@ -420,9 +420,9 @@ function Lr() {
|
|
|
420
420
|
const s = o ?? (o = this);
|
|
421
421
|
l(te, s).push(...l(te, this).filter((a) => !l(te, s).includes(a)));
|
|
422
422
|
}
|
|
423
|
-
o !== null && (ce.add(o),
|
|
423
|
+
o !== null && (ce.add(o), I(z, o, Lr).call(o)), me && !ce.has(this) && I(z, this, qo).call(this);
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function en(e, t, r) {
|
|
426
426
|
e.f ^= J;
|
|
427
427
|
for (var i = e.first; i !== null; ) {
|
|
428
428
|
var n = i.f, o = (n & 96) !== 0;
|
|
@@ -445,9 +445,9 @@ function Qi(e, t, r) {
|
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
function vr(e) {
|
|
448
|
-
for (var t = 0; t < e.length; t += 1)
|
|
448
|
+
for (var t = 0; t < e.length; t += 1) Ki(e[t], l(ot, this), l(ze, this));
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function qo() {
|
|
451
451
|
for (const f of ce) {
|
|
452
452
|
var e = f.id < this.id, t = [];
|
|
453
453
|
for (const [u, [h, d]] of this.current) {
|
|
@@ -463,45 +463,45 @@ function Uo() {
|
|
|
463
463
|
e && f.discard();
|
|
464
464
|
else if (t.length > 0) {
|
|
465
465
|
if (e) for (const u of l(xt, this)) f.unskip_effect(u, (h) => {
|
|
466
|
-
(h.f & 4194320) !== 0 ? f.schedule(h) :
|
|
466
|
+
(h.f & 4194320) !== 0 ? f.schedule(h) : I(z, f, vr).call(f, [h]);
|
|
467
467
|
});
|
|
468
468
|
f.activate();
|
|
469
469
|
var n = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
470
|
-
for (var s of t)
|
|
470
|
+
for (var s of t) tn(s, i, n, o);
|
|
471
471
|
o = /* @__PURE__ */ new Map();
|
|
472
472
|
var a = [...f.current.keys()].filter((u) => this.current.has(u) ? this.current.get(u)[0] !== u : !0);
|
|
473
|
-
for (const u of l(hr, this)) (u.f & 155648) === 0 &&
|
|
473
|
+
for (const u of l(hr, this)) (u.f & 155648) === 0 && Cr(u, a, o) && ((u.f & 4194320) !== 0 ? (C(u, oe), f.schedule(u)) : l(ot, f).add(u));
|
|
474
474
|
if (l(te, f).length > 0) {
|
|
475
475
|
f.apply();
|
|
476
|
-
for (var c of l(te, f))
|
|
476
|
+
for (var c of l(te, f)) I(z, f, en).call(f, c, [], []);
|
|
477
477
|
w(te, f, []);
|
|
478
478
|
}
|
|
479
479
|
f.deactivate();
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
for (const f of ce) l(Qe, f).has(this) && (l(Qe, f).delete(this), l(Qe, f).size === 0 &&
|
|
482
|
+
for (const f of ce) l(Qe, f).has(this) && (l(Qe, f).delete(this), l(Qe, f).size === 0 && !I(z, f, pr).call(f) && (f.activate(), I(z, f, Lr).call(f)));
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function gr(e) {
|
|
485
485
|
var t = vt;
|
|
486
486
|
vt = !0;
|
|
487
487
|
try {
|
|
488
488
|
var r;
|
|
489
489
|
for (e && (S !== null && !S.is_fork && S.flush(), r = e()); ; ) {
|
|
490
|
-
if (
|
|
490
|
+
if (Wo(), S === null) return r;
|
|
491
491
|
S.flush();
|
|
492
492
|
}
|
|
493
493
|
} finally {
|
|
494
494
|
vt = t;
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function Yo() {
|
|
498
498
|
if (0) {
|
|
499
499
|
var e;
|
|
500
500
|
for (const r of S.current.keys()) for (const [i, n] of r.updated ?? [])
|
|
501
501
|
var t;
|
|
502
502
|
}
|
|
503
503
|
try {
|
|
504
|
-
|
|
504
|
+
Mo();
|
|
505
505
|
} catch (r) {
|
|
506
506
|
xe(r, dr);
|
|
507
507
|
}
|
|
@@ -512,7 +512,7 @@ function ai(e) {
|
|
|
512
512
|
if (t !== 0) {
|
|
513
513
|
for (var r = 0; r < t; ) {
|
|
514
514
|
var i = e[r++];
|
|
515
|
-
if ((i.f & 24576) === 0 && St(i) && (ae = /* @__PURE__ */ new Set(), at(i), i.deps === null && i.first === null && i.nodes === null && i.teardown === null && i.ac === null &&
|
|
515
|
+
if ((i.f & 24576) === 0 && St(i) && (ae = /* @__PURE__ */ new Set(), at(i), i.deps === null && i.first === null && i.nodes === null && i.teardown === null && i.ac === null && wn(i), ae?.size > 0)) {
|
|
516
516
|
He.clear();
|
|
517
517
|
for (const n of ae) {
|
|
518
518
|
if ((n.f & 24576) !== 0) continue;
|
|
@@ -531,73 +531,73 @@ function ai(e) {
|
|
|
531
531
|
ae = null;
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function tn(e, t, r, i) {
|
|
535
535
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
536
536
|
for (const n of e.reactions) {
|
|
537
537
|
const o = n.f;
|
|
538
|
-
(o & 2) !== 0 ?
|
|
538
|
+
(o & 2) !== 0 ? tn(n, t, r, i) : (o & 4194320) !== 0 && (o & 2048) === 0 && Cr(n, t, i) && (C(n, oe), Rr(n));
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function Cr(e, t, r) {
|
|
542
542
|
const i = r.get(e);
|
|
543
543
|
if (i !== void 0) return i;
|
|
544
544
|
if (e.deps !== null) for (const n of e.deps) {
|
|
545
545
|
if (tt.call(t, n)) return !0;
|
|
546
|
-
if ((n.f & 2) !== 0 &&
|
|
546
|
+
if ((n.f & 2) !== 0 && Cr(n, t, r))
|
|
547
547
|
return r.set(n, !0), !0;
|
|
548
548
|
}
|
|
549
549
|
return r.set(e, !1), !1;
|
|
550
550
|
}
|
|
551
|
-
function
|
|
551
|
+
function Rr(e) {
|
|
552
552
|
S.schedule(e);
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function rn(e, t) {
|
|
555
555
|
if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
|
|
556
|
-
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e),
|
|
556
|
+
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), C(e, J);
|
|
557
557
|
for (var r = e.first; r !== null; )
|
|
558
|
-
|
|
558
|
+
rn(r, t), r = r.next;
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
|
-
function
|
|
562
|
-
|
|
561
|
+
function nn(e) {
|
|
562
|
+
C(e, J);
|
|
563
563
|
for (var t = e.first; t !== null; )
|
|
564
|
-
|
|
564
|
+
nn(t), t = t.next;
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function Ko(e) {
|
|
567
567
|
let t = 0, r = Tt(0), i;
|
|
568
568
|
return () => {
|
|
569
|
-
Vr() && (p(r), Wr(() => (t === 0 && (i = Yt(() => e(() =>
|
|
569
|
+
Vr() && (p(r), Wr(() => (t === 0 && (i = Yt(() => e(() => gt(r)))), t += 1, () => {
|
|
570
570
|
it(() => {
|
|
571
|
-
t -= 1, t === 0 && (i?.(), i = void 0,
|
|
571
|
+
t -= 1, t === 0 && (i?.(), i = void 0, gt(r));
|
|
572
572
|
});
|
|
573
573
|
})));
|
|
574
574
|
};
|
|
575
575
|
}
|
|
576
|
-
var
|
|
577
|
-
function
|
|
578
|
-
new
|
|
576
|
+
var Xo = Mr | lt;
|
|
577
|
+
function Jo(e, t, r, i) {
|
|
578
|
+
new Qo(e, t, r, i);
|
|
579
579
|
}
|
|
580
|
-
var ie = /* @__PURE__ */ new WeakMap(),
|
|
580
|
+
var ie = /* @__PURE__ */ new WeakMap(), _r = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), _t = /* @__PURE__ */ new WeakMap(), K = /* @__PURE__ */ new WeakMap(), fe = /* @__PURE__ */ new WeakMap(), B = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), yr = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), li = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakSet(), Qo = class {
|
|
581
581
|
constructor(e, t, r, i) {
|
|
582
|
-
xr(this, j),
|
|
582
|
+
xr(this, j), _(this, "parent", void 0), _(this, "is_pending", !1), _(this, "transform_error", void 0), b(this, ie, void 0), b(this, _r, O ? A : null), b(this, le, void 0), b(this, _t, void 0), b(this, K, void 0), b(this, fe, null), b(this, B, null), b(this, ee, null), b(this, Ve, null), b(this, Ye, 0), b(this, We, 0), b(this, Mt, !1), b(this, mr, /* @__PURE__ */ new Set()), b(this, yr, /* @__PURE__ */ new Set()), b(this, Le, null), b(this, li, Ko(() => (w(Le, this, Tt(l(Ye, this))), () => {
|
|
583
583
|
w(Le, this, null);
|
|
584
|
-
}))), w(ie, this, e), w(le, this, t), w(
|
|
584
|
+
}))), w(ie, this, e), w(le, this, t), w(_t, this, (n) => {
|
|
585
585
|
var o = k;
|
|
586
586
|
o.b = this, o.f |= 128, r(n);
|
|
587
|
-
}), this.parent = k.b, this.transform_error = i ?? this.parent?.transform_error ?? ((n) => n), w(K, this,
|
|
587
|
+
}), this.parent = k.b, this.transform_error = i ?? this.parent?.transform_error ?? ((n) => n), w(K, this, yn(() => {
|
|
588
588
|
if (O) {
|
|
589
|
-
const n = l(
|
|
589
|
+
const n = l(_r, this);
|
|
590
590
|
Or();
|
|
591
591
|
const o = n.data === "[!";
|
|
592
592
|
if (n.data.startsWith("[?")) {
|
|
593
593
|
const s = JSON.parse(n.data.slice(2));
|
|
594
|
-
|
|
595
|
-
} else o ?
|
|
596
|
-
} else
|
|
597
|
-
},
|
|
594
|
+
I(j, this, es).call(this, s);
|
|
595
|
+
} else o ? I(j, this, ts).call(this) : I(j, this, Zo).call(this);
|
|
596
|
+
} else I(j, this, on).call(this);
|
|
597
|
+
}, Xo)), O && w(ie, this, A);
|
|
598
598
|
}
|
|
599
599
|
defer_effect(e) {
|
|
600
|
-
|
|
600
|
+
Ki(e, l(mr, this), l(yr, this));
|
|
601
601
|
}
|
|
602
602
|
is_rendered() {
|
|
603
603
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -606,7 +606,7 @@ var ie = /* @__PURE__ */ new WeakMap(), gr = /* @__PURE__ */ new WeakMap(), le =
|
|
|
606
606
|
return !!l(le, this).pending;
|
|
607
607
|
}
|
|
608
608
|
update_pending_count(e, t) {
|
|
609
|
-
|
|
609
|
+
I(j, this, sn).call(this, e, t), w(Ye, this, l(Ye, this) + e), !(!l(Le, this) || l(Mt, this)) && (w(Mt, this, !0), it(() => {
|
|
610
610
|
w(Mt, this, !1), l(Le, this) && Ft(l(Le, this), l(Ye, this));
|
|
611
611
|
}));
|
|
612
612
|
}
|
|
@@ -616,87 +616,87 @@ var ie = /* @__PURE__ */ new WeakMap(), gr = /* @__PURE__ */ new WeakMap(), le =
|
|
|
616
616
|
error(e) {
|
|
617
617
|
if (!l(le, this).onerror && !l(le, this).failed) throw e;
|
|
618
618
|
S?.is_fork ? (l(fe, this) && S.skip_effect(l(fe, this)), l(B, this) && S.skip_effect(l(B, this)), l(ee, this) && S.skip_effect(l(ee, this)), S.on_fork_commit(() => {
|
|
619
|
-
|
|
620
|
-
})) :
|
|
619
|
+
I(j, this, ci).call(this, e);
|
|
620
|
+
})) : I(j, this, ci).call(this, e);
|
|
621
621
|
}
|
|
622
622
|
};
|
|
623
|
-
function
|
|
623
|
+
function Zo() {
|
|
624
624
|
try {
|
|
625
|
-
w(fe, this,
|
|
625
|
+
w(fe, this, be(() => l(_t, this).call(this, l(ie, this))));
|
|
626
626
|
} catch (e) {
|
|
627
627
|
this.error(e);
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function es(e) {
|
|
631
631
|
const t = l(le, this).failed;
|
|
632
|
-
t && w(ee, this,
|
|
632
|
+
t && w(ee, this, be(() => {
|
|
633
633
|
t(l(ie, this), () => e, () => () => {
|
|
634
634
|
});
|
|
635
635
|
}));
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function ts() {
|
|
638
638
|
const e = l(le, this).pending;
|
|
639
|
-
e && (this.is_pending = !0, w(B, this,
|
|
640
|
-
var t = w(Ve, this, document.createDocumentFragment()), r =
|
|
641
|
-
t.append(r), w(fe, this,
|
|
639
|
+
e && (this.is_pending = !0, w(B, this, be(() => e(l(ie, this)))), it(() => {
|
|
640
|
+
var t = w(Ve, this, document.createDocumentFragment()), r = ye();
|
|
641
|
+
t.append(r), w(fe, this, I(j, this, br).call(this, () => be(() => l(_t, this).call(this, r)))), l(We, this) === 0 && (l(ie, this).before(t), w(Ve, this, null), kt(l(B, this), () => {
|
|
642
642
|
w(B, this, null);
|
|
643
|
-
}),
|
|
643
|
+
}), I(j, this, Nr).call(this, S));
|
|
644
644
|
}));
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function on() {
|
|
647
647
|
try {
|
|
648
|
-
if (this.is_pending = this.has_pending_snippet(), w(We, this, 0), w(Ye, this, 0), w(fe, this,
|
|
649
|
-
l(
|
|
648
|
+
if (this.is_pending = this.has_pending_snippet(), w(We, this, 0), w(Ye, this, 0), w(fe, this, be(() => {
|
|
649
|
+
l(_t, this).call(this, l(ie, this));
|
|
650
650
|
})), l(We, this) > 0) {
|
|
651
651
|
var e = w(Ve, this, document.createDocumentFragment());
|
|
652
|
-
|
|
652
|
+
Sn(l(fe, this), e);
|
|
653
653
|
const t = l(le, this).pending;
|
|
654
|
-
w(B, this,
|
|
655
|
-
} else
|
|
654
|
+
w(B, this, be(() => t(l(ie, this))));
|
|
655
|
+
} else I(j, this, Nr).call(this, S);
|
|
656
656
|
} catch (t) {
|
|
657
657
|
this.error(t);
|
|
658
658
|
}
|
|
659
659
|
}
|
|
660
660
|
function Nr(e) {
|
|
661
|
-
this.is_pending = !1, e.transfer_effects(l(mr, this), l(
|
|
661
|
+
this.is_pending = !1, e.transfer_effects(l(mr, this), l(yr, this));
|
|
662
662
|
}
|
|
663
|
-
function
|
|
664
|
-
var t = k, r =
|
|
663
|
+
function br(e) {
|
|
664
|
+
var t = k, r = $, i = L;
|
|
665
665
|
de(l(K, this)), Q(l(K, this)), rt(l(K, this).ctx);
|
|
666
666
|
try {
|
|
667
667
|
return Ge.ensure(), e();
|
|
668
668
|
} catch (n) {
|
|
669
|
-
return
|
|
669
|
+
return qi(n), null;
|
|
670
670
|
} finally {
|
|
671
671
|
de(t), Q(r), rt(i);
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function sn(e, t) {
|
|
675
675
|
if (!this.has_pending_snippet()) {
|
|
676
676
|
if (this.parent) {
|
|
677
677
|
var r;
|
|
678
|
-
|
|
678
|
+
I(j, r = this.parent, sn).call(r, e, t);
|
|
679
679
|
}
|
|
680
680
|
return;
|
|
681
681
|
}
|
|
682
|
-
w(We, this, l(We, this) + e), l(We, this) === 0 && (
|
|
682
|
+
w(We, this, l(We, this) + e), l(We, this) === 0 && (I(j, this, Nr).call(this, t), l(B, this) && kt(l(B, this), () => {
|
|
683
683
|
w(B, this, null);
|
|
684
684
|
}), l(Ve, this) && (l(ie, this).before(l(Ve, this)), w(Ve, this, null)));
|
|
685
685
|
}
|
|
686
686
|
function ci(e) {
|
|
687
|
-
l(fe, this) && (W(l(fe, this)), w(fe, this, null)), l(B, this) && (W(l(B, this)), w(B, this, null)), l(ee, this) && (W(l(ee, this)), w(ee, this, null)), O && (ne(l(
|
|
687
|
+
l(fe, this) && (W(l(fe, this)), w(fe, this, null)), l(B, this) && (W(l(B, this)), w(B, this, null)), l(ee, this) && (W(l(ee, this)), w(ee, this, null)), O && (ne(l(_r, this)), Vi(), ne(Wi()));
|
|
688
688
|
var t = l(le, this).onerror;
|
|
689
689
|
let r = l(le, this).failed;
|
|
690
690
|
var i = !1, n = !1;
|
|
691
691
|
const o = () => {
|
|
692
692
|
if (i) {
|
|
693
|
-
|
|
693
|
+
jo();
|
|
694
694
|
return;
|
|
695
695
|
}
|
|
696
|
-
i = !0, n &&
|
|
696
|
+
i = !0, n && Ro(), l(ee, this) !== null && kt(l(ee, this), () => {
|
|
697
697
|
w(ee, this, null);
|
|
698
|
-
}),
|
|
699
|
-
|
|
698
|
+
}), I(j, this, br).call(this, () => {
|
|
699
|
+
I(j, this, on).call(this);
|
|
700
700
|
});
|
|
701
701
|
}, s = (a) => {
|
|
702
702
|
try {
|
|
@@ -704,9 +704,9 @@ function ci(e) {
|
|
|
704
704
|
} catch (c) {
|
|
705
705
|
xe(c, l(K, this) && l(K, this).parent);
|
|
706
706
|
}
|
|
707
|
-
r && w(ee, this,
|
|
707
|
+
r && w(ee, this, I(j, this, br).call(this, () => {
|
|
708
708
|
try {
|
|
709
|
-
return
|
|
709
|
+
return be(() => {
|
|
710
710
|
var c = k;
|
|
711
711
|
c.b = this, c.f |= 128, r(l(ie, this), () => a, () => o);
|
|
712
712
|
});
|
|
@@ -726,14 +726,14 @@ function ci(e) {
|
|
|
726
726
|
a !== null && typeof a == "object" && typeof a.then == "function" ? a.then(s, (c) => xe(c, l(K, this) && l(K, this).parent)) : s(a);
|
|
727
727
|
});
|
|
728
728
|
}
|
|
729
|
-
function
|
|
730
|
-
const n = wt() ? qt :
|
|
729
|
+
function rs(e, t, r, i) {
|
|
730
|
+
const n = wt() ? qt : ln;
|
|
731
731
|
var o = e.filter((d) => !d.settled);
|
|
732
732
|
if (r.length === 0 && o.length === 0) {
|
|
733
733
|
i(t.map(n));
|
|
734
734
|
return;
|
|
735
735
|
}
|
|
736
|
-
var s = k, a =
|
|
736
|
+
var s = k, a = is(), c = o.length === 1 ? o[0].promise : o.length > 1 ? Promise.all(o.map((d) => d.promise)) : null;
|
|
737
737
|
function f(d) {
|
|
738
738
|
a();
|
|
739
739
|
try {
|
|
@@ -747,16 +747,16 @@ function es(e, t, r, i) {
|
|
|
747
747
|
c.then(() => f(t.map(n)));
|
|
748
748
|
return;
|
|
749
749
|
}
|
|
750
|
-
var u =
|
|
750
|
+
var u = an();
|
|
751
751
|
function h() {
|
|
752
|
-
Promise.all(r.map((d) => /* @__PURE__ */
|
|
752
|
+
Promise.all(r.map((d) => /* @__PURE__ */ ns(d))).then((d) => f([...t.map(n), ...d])).catch((d) => xe(d, s)).finally(() => u());
|
|
753
753
|
}
|
|
754
754
|
c ? c.then(() => {
|
|
755
755
|
a(), h(), Ht();
|
|
756
756
|
}) : h();
|
|
757
757
|
}
|
|
758
|
-
function
|
|
759
|
-
var e = k, t =
|
|
758
|
+
function is() {
|
|
759
|
+
var e = k, t = $, r = L, i = S;
|
|
760
760
|
if (0) var n;
|
|
761
761
|
return function(s = !0) {
|
|
762
762
|
de(e), Q(t), rt(r), s && (e.f & 16384) === 0 && (i?.activate(), i?.apply());
|
|
@@ -765,7 +765,7 @@ function ts() {
|
|
|
765
765
|
function Ht(e = !0) {
|
|
766
766
|
de(null), Q(null), rt(null), e && S?.deactivate();
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function an() {
|
|
769
769
|
var e = k, t = e.b, r = S, i = t.is_rendered();
|
|
770
770
|
return t.update_pending_count(1, r), r.increment(i, e), (n = !1) => {
|
|
771
771
|
t.update_pending_count(-1, r), r.decrement(i, e, n);
|
|
@@ -778,7 +778,7 @@ function qt(e) {
|
|
|
778
778
|
ctx: L,
|
|
779
779
|
deps: null,
|
|
780
780
|
effects: null,
|
|
781
|
-
equals:
|
|
781
|
+
equals: Hi,
|
|
782
782
|
f: t,
|
|
783
783
|
fn: e,
|
|
784
784
|
reactions: null,
|
|
@@ -790,12 +790,12 @@ function qt(e) {
|
|
|
790
790
|
};
|
|
791
791
|
}
|
|
792
792
|
// @__NO_SIDE_EFFECTS__
|
|
793
|
-
function
|
|
793
|
+
function ns(e, t, r) {
|
|
794
794
|
let i = k;
|
|
795
|
-
i === null &&
|
|
796
|
-
var n = void 0, o = Tt(N), s =
|
|
797
|
-
return
|
|
798
|
-
var c = k, f =
|
|
795
|
+
i === null && $o();
|
|
796
|
+
var n = void 0, o = Tt(N), s = !$, a = /* @__PURE__ */ new Map();
|
|
797
|
+
return ys(() => {
|
|
798
|
+
var c = k, f = Di();
|
|
799
799
|
n = f.promise;
|
|
800
800
|
try {
|
|
801
801
|
Promise.resolve(e()).then(f.resolve, f.reject).finally(Ht);
|
|
@@ -804,32 +804,32 @@ function rs(e, t, r) {
|
|
|
804
804
|
}
|
|
805
805
|
var u = S;
|
|
806
806
|
if (s) {
|
|
807
|
-
if ((c.f & 32768) !== 0) var h =
|
|
807
|
+
if ((c.f & 32768) !== 0) var h = an();
|
|
808
808
|
if (i.b.is_rendered())
|
|
809
|
-
a.get(u)?.reject(
|
|
809
|
+
a.get(u)?.reject(_e), a.delete(u);
|
|
810
810
|
else {
|
|
811
|
-
for (const v of a.values()) v.reject(
|
|
811
|
+
for (const v of a.values()) v.reject(_e);
|
|
812
812
|
a.clear();
|
|
813
813
|
}
|
|
814
814
|
a.set(u, f);
|
|
815
815
|
}
|
|
816
|
-
const d = (v,
|
|
817
|
-
if (h && h(
|
|
818
|
-
if (u.activate(),
|
|
819
|
-
o.f |= zt, Ft(o,
|
|
816
|
+
const d = (v, g = void 0) => {
|
|
817
|
+
if (h && h(g === _e), !(g === _e || (c.f & 16384) !== 0)) {
|
|
818
|
+
if (u.activate(), g)
|
|
819
|
+
o.f |= zt, Ft(o, g);
|
|
820
820
|
else {
|
|
821
821
|
(o.f & 8388608) !== 0 && (o.f ^= zt), Ft(o, v);
|
|
822
|
-
for (const [m,
|
|
822
|
+
for (const [m, y] of a) {
|
|
823
823
|
if (a.delete(m), m === u) break;
|
|
824
|
-
|
|
824
|
+
y.reject(_e);
|
|
825
825
|
}
|
|
826
826
|
}
|
|
827
827
|
u.deactivate();
|
|
828
828
|
}
|
|
829
829
|
};
|
|
830
830
|
f.promise.then(d, (v) => d(null, v || "unknown"));
|
|
831
|
-
}),
|
|
832
|
-
for (const c of a.values()) c.reject(
|
|
831
|
+
}), gs(() => {
|
|
832
|
+
for (const c of a.values()) c.reject(_e);
|
|
833
833
|
}), new Promise((c) => {
|
|
834
834
|
function f(u) {
|
|
835
835
|
function h() {
|
|
@@ -843,14 +843,14 @@ function rs(e, t, r) {
|
|
|
843
843
|
// @__NO_SIDE_EFFECTS__
|
|
844
844
|
function ui(e) {
|
|
845
845
|
const t = /* @__PURE__ */ qt(e);
|
|
846
|
-
return me ||
|
|
846
|
+
return me || $n(t), t;
|
|
847
847
|
}
|
|
848
848
|
// @__NO_SIDE_EFFECTS__
|
|
849
|
-
function
|
|
849
|
+
function ln(e) {
|
|
850
850
|
const t = /* @__PURE__ */ qt(e);
|
|
851
|
-
return t.equals =
|
|
851
|
+
return t.equals = Fi, t;
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function os(e) {
|
|
854
854
|
var t = e.effects;
|
|
855
855
|
if (t !== null) {
|
|
856
856
|
e.effects = null;
|
|
@@ -860,39 +860,39 @@ function is(e) {
|
|
|
860
860
|
function jr(e) {
|
|
861
861
|
var t, r = k, i = e.parent;
|
|
862
862
|
if (!we && i !== null && (i.f & 24576) !== 0)
|
|
863
|
-
return
|
|
863
|
+
return No(), e.v;
|
|
864
864
|
de(i);
|
|
865
865
|
try {
|
|
866
|
-
e.f &= ~
|
|
866
|
+
e.f &= ~yt, os(e), t = Mn(e);
|
|
867
867
|
} finally {
|
|
868
868
|
de(r);
|
|
869
869
|
}
|
|
870
870
|
return t;
|
|
871
871
|
}
|
|
872
|
-
function
|
|
872
|
+
function cn(e) {
|
|
873
873
|
var t = jr(e);
|
|
874
|
-
if (!e.equals(t) && (e.wv =
|
|
875
|
-
|
|
874
|
+
if (!e.equals(t) && (e.wv = An(), (!S?.is_fork || e.deps === null) && (S !== null ? S.capture(e, t, !0) : e.v = t, e.deps === null))) {
|
|
875
|
+
C(e, J);
|
|
876
876
|
return;
|
|
877
877
|
}
|
|
878
878
|
we || (D !== null ? (Vr() || S?.is_fork) && D.set(e, t) : Pr(e));
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function ss(e) {
|
|
881
881
|
if (e.effects !== null)
|
|
882
|
-
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(
|
|
882
|
+
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(_e), t.teardown = go, t.ac = null, mt(t, 0), Hr(t));
|
|
883
883
|
}
|
|
884
|
-
function
|
|
884
|
+
function un(e) {
|
|
885
885
|
if (e.effects !== null)
|
|
886
886
|
for (const t of e.effects) t.teardown && at(t);
|
|
887
887
|
}
|
|
888
888
|
var wr = /* @__PURE__ */ new Set(), He = /* @__PURE__ */ new Map();
|
|
889
|
-
var
|
|
889
|
+
var fn = !1;
|
|
890
890
|
function Tt(e, t) {
|
|
891
891
|
var r = {
|
|
892
892
|
f: 0,
|
|
893
893
|
v: e,
|
|
894
894
|
reactions: null,
|
|
895
|
-
equals:
|
|
895
|
+
equals: Hi,
|
|
896
896
|
rv: 0,
|
|
897
897
|
wv: 0
|
|
898
898
|
};
|
|
@@ -901,19 +901,19 @@ function Tt(e, t) {
|
|
|
901
901
|
// @__NO_SIDE_EFFECTS__
|
|
902
902
|
function x(e, t) {
|
|
903
903
|
const r = Tt(e, t);
|
|
904
|
-
return
|
|
904
|
+
return $n(r), r;
|
|
905
905
|
}
|
|
906
906
|
// @__NO_SIDE_EFFECTS__
|
|
907
|
-
function
|
|
907
|
+
function as(e, t = !1, r = !0) {
|
|
908
908
|
const i = Tt(e);
|
|
909
|
-
if (t || (i.equals =
|
|
909
|
+
if (t || (i.equals = Fi), bt && r && L !== null && L.l !== null) {
|
|
910
910
|
var n;
|
|
911
911
|
((n = L.l).s ?? (n.s = [])).push(i);
|
|
912
912
|
}
|
|
913
913
|
return i;
|
|
914
914
|
}
|
|
915
915
|
function P(e, t, r = !1) {
|
|
916
|
-
|
|
916
|
+
$ !== null && (!re || ($.f & 131072) !== 0) && wt() && ($.f & 4325394) !== 0 && (X === null || !tt.call(X, e)) && Co();
|
|
917
917
|
let i = r ? ue(t) : t;
|
|
918
918
|
return Ft(e, i, Vt);
|
|
919
919
|
}
|
|
@@ -925,47 +925,47 @@ function Ft(e, t, r = null) {
|
|
|
925
925
|
const n = e;
|
|
926
926
|
(e.f & 2048) !== 0 && jr(n), D === null && Pr(n);
|
|
927
927
|
}
|
|
928
|
-
e.wv =
|
|
928
|
+
e.wv = An(), dn(e, oe, r), wt() && k !== null && (k.f & 1024) !== 0 && (k.f & 96) === 0 && (Y === null ? Ss([e]) : Y.push(e)), !i.is_fork && wr.size > 0 && !fn && ls();
|
|
929
929
|
}
|
|
930
930
|
return t;
|
|
931
931
|
}
|
|
932
|
-
function
|
|
933
|
-
|
|
932
|
+
function ls() {
|
|
933
|
+
fn = !1;
|
|
934
934
|
for (const e of wr)
|
|
935
|
-
(e.f & 1024) !== 0 &&
|
|
935
|
+
(e.f & 1024) !== 0 && C(e, Ue), St(e) && at(e);
|
|
936
936
|
wr.clear();
|
|
937
937
|
}
|
|
938
|
-
function
|
|
938
|
+
function gt(e) {
|
|
939
939
|
P(e, e.v + 1);
|
|
940
940
|
}
|
|
941
|
-
function
|
|
941
|
+
function dn(e, t, r) {
|
|
942
942
|
var i = e.reactions;
|
|
943
943
|
if (i !== null)
|
|
944
944
|
for (var n = wt(), o = i.length, s = 0; s < o; s++) {
|
|
945
945
|
var a = i[s], c = a.f;
|
|
946
946
|
if (!(!n && a === k)) {
|
|
947
947
|
var f = (c & oe) === 0;
|
|
948
|
-
if (f &&
|
|
948
|
+
if (f && C(a, t), (c & 2) !== 0) {
|
|
949
949
|
var u = a;
|
|
950
|
-
D?.delete(u), (c & 65536) === 0 && (c & 512 && (a.f |=
|
|
950
|
+
D?.delete(u), (c & 65536) === 0 && (c & 512 && (a.f |= yt), dn(u, Ue, r));
|
|
951
951
|
} else if (f) {
|
|
952
952
|
var h = a;
|
|
953
|
-
(c & 16) !== 0 && ae !== null && ae.add(h), r !== null ? r.push(h) :
|
|
953
|
+
(c & 16) !== 0 && ae !== null && ae.add(h), r !== null ? r.push(h) : Rr(h);
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
956
|
}
|
|
957
957
|
}
|
|
958
|
-
var
|
|
958
|
+
var cs = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
959
959
|
function ue(e) {
|
|
960
960
|
if (typeof e != "object" || e === null || pt in e) return e;
|
|
961
|
-
const t =
|
|
962
|
-
if (t !==
|
|
963
|
-
var r = /* @__PURE__ */ new Map(), i =
|
|
961
|
+
const t = ji(e);
|
|
962
|
+
if (t !== po && t !== vo) return e;
|
|
963
|
+
var r = /* @__PURE__ */ new Map(), i = co(e), n = /* @__PURE__ */ x(0), o = null, s = Fe, a = (h) => {
|
|
964
964
|
if (Fe === s) return h();
|
|
965
|
-
var d =
|
|
965
|
+
var d = $, v = Fe;
|
|
966
966
|
Q(null), vi(s);
|
|
967
|
-
var
|
|
968
|
-
return Q(d), vi(v),
|
|
967
|
+
var g = h();
|
|
968
|
+
return Q(d), vi(v), g;
|
|
969
969
|
};
|
|
970
970
|
i && r.set("length", /* @__PURE__ */ x(e.length, o));
|
|
971
971
|
var c = "";
|
|
@@ -973,53 +973,53 @@ function ue(e) {
|
|
|
973
973
|
function u(h) {
|
|
974
974
|
if (!f) {
|
|
975
975
|
f = !0, c = h, oi(n, `${c} version`);
|
|
976
|
-
for (const [d, v] of r) oi(v,
|
|
976
|
+
for (const [d, v] of r) oi(v, us(c, d));
|
|
977
977
|
f = !1;
|
|
978
978
|
}
|
|
979
979
|
}
|
|
980
980
|
return new Proxy(e, {
|
|
981
981
|
defineProperty(h, d, v) {
|
|
982
|
-
(!("value" in v) || v.configurable === !1 || v.enumerable === !1 || v.writable === !1) &&
|
|
983
|
-
var
|
|
984
|
-
return
|
|
982
|
+
(!("value" in v) || v.configurable === !1 || v.enumerable === !1 || v.writable === !1) && xo();
|
|
983
|
+
var g = r.get(d);
|
|
984
|
+
return g === void 0 ? a(() => {
|
|
985
985
|
var m = /* @__PURE__ */ x(v.value, o);
|
|
986
986
|
return r.set(d, m), m;
|
|
987
|
-
}) : P(
|
|
987
|
+
}) : P(g, v.value, !0), !0;
|
|
988
988
|
},
|
|
989
989
|
deleteProperty(h, d) {
|
|
990
990
|
var v = r.get(d);
|
|
991
991
|
if (v === void 0) {
|
|
992
992
|
if (d in h) {
|
|
993
|
-
const
|
|
994
|
-
r.set(d,
|
|
993
|
+
const g = a(() => /* @__PURE__ */ x(N, o));
|
|
994
|
+
r.set(d, g), gt(n);
|
|
995
995
|
}
|
|
996
996
|
} else
|
|
997
|
-
P(v, N),
|
|
997
|
+
P(v, N), gt(n);
|
|
998
998
|
return !0;
|
|
999
999
|
},
|
|
1000
1000
|
get(h, d, v) {
|
|
1001
1001
|
if (d === pt) return e;
|
|
1002
|
-
var
|
|
1003
|
-
if (
|
|
1002
|
+
var g = r.get(d), m = d in h;
|
|
1003
|
+
if (g === void 0 && (!m || De(h, d)?.writable) && (g = a(() => {
|
|
1004
1004
|
var E = /* @__PURE__ */ x(ue(m ? h[d] : N), o);
|
|
1005
1005
|
return E;
|
|
1006
|
-
}), r.set(d,
|
|
1007
|
-
var
|
|
1008
|
-
return
|
|
1006
|
+
}), r.set(d, g)), g !== void 0) {
|
|
1007
|
+
var y = p(g);
|
|
1008
|
+
return y === N ? void 0 : y;
|
|
1009
1009
|
}
|
|
1010
1010
|
return Reflect.get(h, d, v);
|
|
1011
1011
|
},
|
|
1012
1012
|
getOwnPropertyDescriptor(h, d) {
|
|
1013
1013
|
var v = Reflect.getOwnPropertyDescriptor(h, d);
|
|
1014
1014
|
if (v && "value" in v) {
|
|
1015
|
-
var
|
|
1016
|
-
|
|
1015
|
+
var g = r.get(d);
|
|
1016
|
+
g && (v.value = p(g));
|
|
1017
1017
|
} else if (v === void 0) {
|
|
1018
|
-
var m = r.get(d),
|
|
1019
|
-
if (m !== void 0 &&
|
|
1018
|
+
var m = r.get(d), y = m?.v;
|
|
1019
|
+
if (m !== void 0 && y !== N) return {
|
|
1020
1020
|
enumerable: !0,
|
|
1021
1021
|
configurable: !0,
|
|
1022
|
-
value:
|
|
1022
|
+
value: y,
|
|
1023
1023
|
writable: !0
|
|
1024
1024
|
};
|
|
1025
1025
|
}
|
|
@@ -1027,77 +1027,77 @@ function ue(e) {
|
|
|
1027
1027
|
},
|
|
1028
1028
|
has(h, d) {
|
|
1029
1029
|
if (d === pt) return !0;
|
|
1030
|
-
var v = r.get(d),
|
|
1031
|
-
return (v !== void 0 || k !== null && (!
|
|
1032
|
-
var m = /* @__PURE__ */ x(
|
|
1030
|
+
var v = r.get(d), g = v !== void 0 && v.v !== N || Reflect.has(h, d);
|
|
1031
|
+
return (v !== void 0 || k !== null && (!g || De(h, d)?.writable)) && (v === void 0 && (v = a(() => {
|
|
1032
|
+
var m = /* @__PURE__ */ x(g ? ue(h[d]) : N, o);
|
|
1033
1033
|
return m;
|
|
1034
|
-
}), r.set(d, v)), p(v) === N) ? !1 :
|
|
1034
|
+
}), r.set(d, v)), p(v) === N) ? !1 : g;
|
|
1035
1035
|
},
|
|
1036
|
-
set(h, d, v,
|
|
1037
|
-
var m = r.get(d),
|
|
1036
|
+
set(h, d, v, g) {
|
|
1037
|
+
var m = r.get(d), y = d in h;
|
|
1038
1038
|
if (i && d === "length") for (var E = v; E < m.v; E += 1) {
|
|
1039
1039
|
var U = r.get(E + "");
|
|
1040
1040
|
U !== void 0 ? P(U, N) : E in h && (U = a(() => /* @__PURE__ */ x(N, o)), r.set(E + "", U));
|
|
1041
1041
|
}
|
|
1042
1042
|
if (m === void 0)
|
|
1043
|
-
(!
|
|
1043
|
+
(!y || De(h, d)?.writable) && (m = a(() => /* @__PURE__ */ x(void 0, o)), P(m, ue(v)), r.set(d, m));
|
|
1044
1044
|
else {
|
|
1045
|
-
|
|
1045
|
+
y = m.v !== N;
|
|
1046
1046
|
var M = a(() => ue(v));
|
|
1047
1047
|
P(m, M);
|
|
1048
1048
|
}
|
|
1049
1049
|
var G = Reflect.getOwnPropertyDescriptor(h, d);
|
|
1050
|
-
if (G?.set && G.set.call(
|
|
1050
|
+
if (G?.set && G.set.call(g, v), !y) {
|
|
1051
1051
|
if (i && typeof d == "string") {
|
|
1052
|
-
var
|
|
1053
|
-
Number.isInteger(H) && H >=
|
|
1052
|
+
var $e = r.get("length"), H = Number(d);
|
|
1053
|
+
Number.isInteger(H) && H >= $e.v && P($e, H + 1);
|
|
1054
1054
|
}
|
|
1055
|
-
|
|
1055
|
+
gt(n);
|
|
1056
1056
|
}
|
|
1057
1057
|
return !0;
|
|
1058
1058
|
},
|
|
1059
1059
|
ownKeys(h) {
|
|
1060
1060
|
p(n);
|
|
1061
1061
|
var d = Reflect.ownKeys(h).filter((m) => {
|
|
1062
|
-
var
|
|
1063
|
-
return
|
|
1062
|
+
var y = r.get(m);
|
|
1063
|
+
return y === void 0 || y.v !== N;
|
|
1064
1064
|
});
|
|
1065
|
-
for (var [v,
|
|
1065
|
+
for (var [v, g] of r) g.v !== N && !(v in h) && d.push(v);
|
|
1066
1066
|
return d;
|
|
1067
1067
|
},
|
|
1068
1068
|
setPrototypeOf() {
|
|
1069
|
-
|
|
1069
|
+
Lo();
|
|
1070
1070
|
}
|
|
1071
1071
|
});
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1074
|
-
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` :
|
|
1073
|
+
function us(e, t) {
|
|
1074
|
+
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : cs.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
1075
1075
|
}
|
|
1076
|
-
var fi,
|
|
1076
|
+
var fi, fs, hn, pn, vn;
|
|
1077
1077
|
function Tr() {
|
|
1078
1078
|
if (fi === void 0) {
|
|
1079
|
-
fi = window,
|
|
1079
|
+
fi = window, fs = document, hn = /Firefox/.test(navigator.userAgent);
|
|
1080
1080
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1081
|
-
|
|
1081
|
+
pn = De(t, "firstChild").get, vn = De(t, "nextSibling").get, ti(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), ti(r) && (r.__t = void 0);
|
|
1082
1082
|
}
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function ye(e = "") {
|
|
1085
1085
|
return document.createTextNode(e);
|
|
1086
1086
|
}
|
|
1087
1087
|
// @__NO_SIDE_EFFECTS__
|
|
1088
1088
|
function st(e) {
|
|
1089
|
-
return
|
|
1089
|
+
return pn.call(e);
|
|
1090
1090
|
}
|
|
1091
1091
|
// @__NO_SIDE_EFFECTS__
|
|
1092
1092
|
function Te(e) {
|
|
1093
|
-
return
|
|
1093
|
+
return vn.call(e);
|
|
1094
1094
|
}
|
|
1095
1095
|
function di(e, t) {
|
|
1096
1096
|
if (!O) return /* @__PURE__ */ st(e);
|
|
1097
1097
|
var r = /* @__PURE__ */ st(A);
|
|
1098
|
-
if (r === null) r = A.appendChild(
|
|
1098
|
+
if (r === null) r = A.appendChild(ye());
|
|
1099
1099
|
else if (t && r.nodeType !== 3) {
|
|
1100
|
-
var i =
|
|
1100
|
+
var i = ye();
|
|
1101
1101
|
return r?.before(i), ne(i), i;
|
|
1102
1102
|
}
|
|
1103
1103
|
return t && zr(r), ne(r), r;
|
|
@@ -1109,7 +1109,7 @@ function rr(e, t = !1) {
|
|
|
1109
1109
|
}
|
|
1110
1110
|
if (t) {
|
|
1111
1111
|
if (A?.nodeType !== 3) {
|
|
1112
|
-
var i =
|
|
1112
|
+
var i = ye();
|
|
1113
1113
|
return A?.before(i), ne(i), i;
|
|
1114
1114
|
}
|
|
1115
1115
|
zr(A);
|
|
@@ -1123,17 +1123,17 @@ function ut(e, t = 1, r = !1) {
|
|
|
1123
1123
|
if (!O) return i;
|
|
1124
1124
|
if (r) {
|
|
1125
1125
|
if (i?.nodeType !== 3) {
|
|
1126
|
-
var o =
|
|
1126
|
+
var o = ye();
|
|
1127
1127
|
return i === null ? n?.after(o) : i.before(o), ne(o), o;
|
|
1128
1128
|
}
|
|
1129
1129
|
zr(i);
|
|
1130
1130
|
}
|
|
1131
1131
|
return ne(i), i;
|
|
1132
1132
|
}
|
|
1133
|
-
function
|
|
1133
|
+
function ds(e) {
|
|
1134
1134
|
e.textContent = "";
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1136
|
+
function hs() {
|
|
1137
1137
|
return !me || ae !== null ? !1 : (k.f & Er) !== 0;
|
|
1138
1138
|
}
|
|
1139
1139
|
function Dr(e, t, r) {
|
|
@@ -1146,8 +1146,8 @@ function zr(e) {
|
|
|
1146
1146
|
for (; t !== null && t.nodeType === 3; )
|
|
1147
1147
|
t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1148
1148
|
}
|
|
1149
|
-
function
|
|
1150
|
-
var t =
|
|
1149
|
+
function gn(e) {
|
|
1150
|
+
var t = $, r = k;
|
|
1151
1151
|
Q(null), de(null);
|
|
1152
1152
|
try {
|
|
1153
1153
|
return e();
|
|
@@ -1155,10 +1155,10 @@ function pn(e) {
|
|
|
1155
1155
|
Q(t), de(r);
|
|
1156
1156
|
}
|
|
1157
1157
|
}
|
|
1158
|
-
function
|
|
1159
|
-
k === null && (
|
|
1158
|
+
function ps(e) {
|
|
1159
|
+
k === null && ($ === null && Eo(e), Ao()), we && Io(e);
|
|
1160
1160
|
}
|
|
1161
|
-
function
|
|
1161
|
+
function vs(e, t) {
|
|
1162
1162
|
var r = t.last;
|
|
1163
1163
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1164
1164
|
}
|
|
@@ -1192,38 +1192,38 @@ function he(e, t) {
|
|
|
1192
1192
|
}
|
|
1193
1193
|
n.deps === null && n.teardown === null && n.nodes === null && n.first === n.last && (n.f & 524288) === 0 && (n = n.first, (e & 16) !== 0 && (e & 65536) !== 0 && n !== null && (n.f |= Mr));
|
|
1194
1194
|
}
|
|
1195
|
-
if (n !== null && (n.parent = r, r !== null &&
|
|
1196
|
-
var o =
|
|
1195
|
+
if (n !== null && (n.parent = r, r !== null && vs(n, r), $ !== null && ($.f & 2) !== 0 && (e & 64) === 0)) {
|
|
1196
|
+
var o = $;
|
|
1197
1197
|
(o.effects ?? (o.effects = [])).push(n);
|
|
1198
1198
|
}
|
|
1199
1199
|
return i;
|
|
1200
1200
|
}
|
|
1201
1201
|
function Vr() {
|
|
1202
|
-
return
|
|
1202
|
+
return $ !== null && !re;
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1204
|
+
function gs(e) {
|
|
1205
1205
|
const t = he(8, null);
|
|
1206
|
-
return
|
|
1206
|
+
return C(t, J), t.teardown = e, t;
|
|
1207
1207
|
}
|
|
1208
1208
|
function ht(e) {
|
|
1209
|
-
|
|
1209
|
+
ps("$effect");
|
|
1210
1210
|
var t = k.f;
|
|
1211
|
-
if (
|
|
1211
|
+
if (!$ && (t & 32) !== 0 && (t & 32768) === 0) {
|
|
1212
1212
|
var r = L;
|
|
1213
1213
|
(r.e ?? (r.e = [])).push(e);
|
|
1214
|
-
} else return
|
|
1214
|
+
} else return _n(e);
|
|
1215
1215
|
}
|
|
1216
|
-
function
|
|
1217
|
-
return he(4 |
|
|
1216
|
+
function _n(e) {
|
|
1217
|
+
return he(4 | yo, e);
|
|
1218
1218
|
}
|
|
1219
|
-
function
|
|
1219
|
+
function _s(e) {
|
|
1220
1220
|
Ge.ensure();
|
|
1221
1221
|
const t = he(64 | lt, e);
|
|
1222
1222
|
return () => {
|
|
1223
1223
|
W(t);
|
|
1224
1224
|
};
|
|
1225
1225
|
}
|
|
1226
|
-
function
|
|
1226
|
+
function ms(e) {
|
|
1227
1227
|
Ge.ensure();
|
|
1228
1228
|
const t = he(64 | lt, e);
|
|
1229
1229
|
return (r = {}) => new Promise((i) => {
|
|
@@ -1232,31 +1232,31 @@ function _s(e) {
|
|
|
1232
1232
|
}) : (W(t), i(void 0));
|
|
1233
1233
|
});
|
|
1234
1234
|
}
|
|
1235
|
-
function
|
|
1235
|
+
function mn(e) {
|
|
1236
1236
|
return he(4, e);
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1239
|
-
return he(
|
|
1238
|
+
function ys(e) {
|
|
1239
|
+
return he(bo | lt, e);
|
|
1240
1240
|
}
|
|
1241
1241
|
function Wr(e, t = 0) {
|
|
1242
1242
|
return he(8 | t, e);
|
|
1243
1243
|
}
|
|
1244
1244
|
function hi(e, t = [], r = [], i = []) {
|
|
1245
|
-
|
|
1245
|
+
rs(i, t, r, (n) => {
|
|
1246
1246
|
he(8, () => e(...n.map(p)));
|
|
1247
1247
|
});
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function yn(e, t = 0) {
|
|
1250
1250
|
var r = he(16 | t, e);
|
|
1251
1251
|
return r;
|
|
1252
1252
|
}
|
|
1253
|
-
function
|
|
1253
|
+
function be(e) {
|
|
1254
1254
|
return he(32 | lt, e);
|
|
1255
1255
|
}
|
|
1256
|
-
function
|
|
1256
|
+
function bn(e) {
|
|
1257
1257
|
var t = e.teardown;
|
|
1258
1258
|
if (t !== null) {
|
|
1259
|
-
const r = we, i =
|
|
1259
|
+
const r = we, i = $;
|
|
1260
1260
|
pi(!0), Q(null);
|
|
1261
1261
|
try {
|
|
1262
1262
|
t.call(null);
|
|
@@ -1269,14 +1269,14 @@ function Hr(e, t = !1) {
|
|
|
1269
1269
|
var r = e.first;
|
|
1270
1270
|
for (e.first = e.last = null; r !== null; ) {
|
|
1271
1271
|
const n = r.ac;
|
|
1272
|
-
n !== null &&
|
|
1273
|
-
n.abort(
|
|
1272
|
+
n !== null && gn(() => {
|
|
1273
|
+
n.abort(_e);
|
|
1274
1274
|
});
|
|
1275
1275
|
var i = r.next;
|
|
1276
1276
|
(r.f & 64) !== 0 ? r.parent = null : W(r, t), r = i;
|
|
1277
1277
|
}
|
|
1278
1278
|
}
|
|
1279
|
-
function
|
|
1279
|
+
function bs(e) {
|
|
1280
1280
|
for (var t = e.first; t !== null; ) {
|
|
1281
1281
|
var r = t.next;
|
|
1282
1282
|
(t.f & 32) === 0 && W(t), t = r;
|
|
@@ -1284,26 +1284,26 @@ function ms(e) {
|
|
|
1284
1284
|
}
|
|
1285
1285
|
function W(e, t = !0) {
|
|
1286
1286
|
var r = !1;
|
|
1287
|
-
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (
|
|
1287
|
+
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (ws(e.nodes.start, e.nodes.end), r = !0), C(e, ri), Hr(e, t && !r), mt(e, 0);
|
|
1288
1288
|
var i = e.nodes && e.nodes.t;
|
|
1289
1289
|
if (i !== null) for (const o of i) o.stop();
|
|
1290
|
-
|
|
1290
|
+
bn(e), e.f ^= ri, e.f |= mo;
|
|
1291
1291
|
var n = e.parent;
|
|
1292
|
-
n !== null && n.first !== null &&
|
|
1292
|
+
n !== null && n.first !== null && wn(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1293
1293
|
}
|
|
1294
|
-
function
|
|
1294
|
+
function ws(e, t) {
|
|
1295
1295
|
for (; e !== null; ) {
|
|
1296
1296
|
var r = e === t ? null : /* @__PURE__ */ Te(e);
|
|
1297
1297
|
e.remove(), e = r;
|
|
1298
1298
|
}
|
|
1299
1299
|
}
|
|
1300
|
-
function
|
|
1300
|
+
function wn(e) {
|
|
1301
1301
|
var t = e.parent, r = e.prev, i = e.next;
|
|
1302
1302
|
r !== null && (r.next = i), i !== null && (i.prev = r), t !== null && (t.first === e && (t.first = i), t.last === e && (t.last = r));
|
|
1303
1303
|
}
|
|
1304
1304
|
function kt(e, t, r = !0) {
|
|
1305
1305
|
var i = [];
|
|
1306
|
-
|
|
1306
|
+
Tn(e, i, !0);
|
|
1307
1307
|
var n = () => {
|
|
1308
1308
|
r && W(e), t && t();
|
|
1309
1309
|
}, o = i.length;
|
|
@@ -1312,7 +1312,7 @@ function kt(e, t, r = !0) {
|
|
|
1312
1312
|
for (var a of i) a.out(s);
|
|
1313
1313
|
} else n();
|
|
1314
1314
|
}
|
|
1315
|
-
function
|
|
1315
|
+
function Tn(e, t, r) {
|
|
1316
1316
|
if ((e.f & 8192) === 0) {
|
|
1317
1317
|
e.f ^= Ar;
|
|
1318
1318
|
var i = e.nodes && e.nodes.t;
|
|
@@ -1322,85 +1322,85 @@ function yn(e, t, r) {
|
|
|
1322
1322
|
var o = n.next;
|
|
1323
1323
|
if ((n.f & 64) === 0) {
|
|
1324
1324
|
var s = (n.f & 65536) !== 0 || (n.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1325
|
-
|
|
1325
|
+
Tn(n, t, s ? r : !1);
|
|
1326
1326
|
}
|
|
1327
1327
|
n = o;
|
|
1328
1328
|
}
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
|
-
function
|
|
1332
|
-
|
|
1331
|
+
function Ts(e) {
|
|
1332
|
+
kn(e, !0);
|
|
1333
1333
|
}
|
|
1334
|
-
function
|
|
1334
|
+
function kn(e, t) {
|
|
1335
1335
|
if ((e.f & 8192) !== 0) {
|
|
1336
|
-
e.f ^= Ar, (e.f & 1024) === 0 && (
|
|
1336
|
+
e.f ^= Ar, (e.f & 1024) === 0 && (C(e, oe), Ge.ensure().schedule(e));
|
|
1337
1337
|
for (var r = e.first; r !== null; ) {
|
|
1338
1338
|
var i = r.next, n = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
|
|
1339
|
-
|
|
1339
|
+
kn(r, n ? t : !1), r = i;
|
|
1340
1340
|
}
|
|
1341
1341
|
var o = e.nodes && e.nodes.t;
|
|
1342
1342
|
if (o !== null)
|
|
1343
1343
|
for (const s of o) (s.is_global || t) && s.in();
|
|
1344
1344
|
}
|
|
1345
1345
|
}
|
|
1346
|
-
function
|
|
1346
|
+
function Sn(e, t) {
|
|
1347
1347
|
if (e.nodes)
|
|
1348
1348
|
for (var r = e.nodes.start, i = e.nodes.end; r !== null; ) {
|
|
1349
1349
|
var n = r === i ? null : /* @__PURE__ */ Te(r);
|
|
1350
1350
|
t.append(r), r = n;
|
|
1351
1351
|
}
|
|
1352
1352
|
}
|
|
1353
|
-
var
|
|
1353
|
+
var ks = null, Lt = !1, we = !1;
|
|
1354
1354
|
function pi(e) {
|
|
1355
1355
|
we = e;
|
|
1356
1356
|
}
|
|
1357
|
-
var
|
|
1357
|
+
var $ = null, re = !1;
|
|
1358
1358
|
function Q(e) {
|
|
1359
|
-
|
|
1359
|
+
$ = e;
|
|
1360
1360
|
}
|
|
1361
1361
|
var k = null;
|
|
1362
1362
|
function de(e) {
|
|
1363
1363
|
k = e;
|
|
1364
1364
|
}
|
|
1365
1365
|
var X = null;
|
|
1366
|
-
function
|
|
1367
|
-
|
|
1366
|
+
function $n(e) {
|
|
1367
|
+
$ !== null && (!me || ($.f & 2) !== 0) && (X === null ? X = [e] : X.push(e));
|
|
1368
1368
|
}
|
|
1369
1369
|
var V = null, F = 0, Y = null;
|
|
1370
|
-
function
|
|
1370
|
+
function Ss(e) {
|
|
1371
1371
|
Y = e;
|
|
1372
1372
|
}
|
|
1373
|
-
var
|
|
1373
|
+
var In = 1, je = 0, Fe = je;
|
|
1374
1374
|
function vi(e) {
|
|
1375
1375
|
Fe = e;
|
|
1376
1376
|
}
|
|
1377
|
-
function
|
|
1378
|
-
return ++
|
|
1377
|
+
function An() {
|
|
1378
|
+
return ++In;
|
|
1379
1379
|
}
|
|
1380
1380
|
function St(e) {
|
|
1381
1381
|
var t = e.f;
|
|
1382
1382
|
if ((t & 2048) !== 0) return !0;
|
|
1383
|
-
if (t & 2 && (e.f &= ~
|
|
1383
|
+
if (t & 2 && (e.f &= ~yt), (t & 4096) !== 0) {
|
|
1384
1384
|
for (var r = e.deps, i = r.length, n = 0; n < i; n++) {
|
|
1385
1385
|
var o = r[n];
|
|
1386
|
-
if (St(o) &&
|
|
1386
|
+
if (St(o) && cn(o), o.wv > e.wv) return !0;
|
|
1387
1387
|
}
|
|
1388
|
-
(t & 512) !== 0 && D === null &&
|
|
1388
|
+
(t & 512) !== 0 && D === null && C(e, J);
|
|
1389
1389
|
}
|
|
1390
1390
|
return !1;
|
|
1391
1391
|
}
|
|
1392
|
-
function
|
|
1392
|
+
function En(e, t, r = !0) {
|
|
1393
1393
|
var i = e.reactions;
|
|
1394
1394
|
if (i !== null && !(!me && X !== null && tt.call(X, e)))
|
|
1395
1395
|
for (var n = 0; n < i.length; n++) {
|
|
1396
1396
|
var o = i[n];
|
|
1397
|
-
(o.f & 2) !== 0 ?
|
|
1397
|
+
(o.f & 2) !== 0 ? En(o, t, !1) : t === o && (r ? C(o, oe) : (o.f & 1024) !== 0 && C(o, Ue), Rr(o));
|
|
1398
1398
|
}
|
|
1399
1399
|
}
|
|
1400
|
-
function
|
|
1401
|
-
var t = V, r = F, i = Y, n =
|
|
1402
|
-
V = null, F = 0, Y = null,
|
|
1403
|
-
e.ac.abort(
|
|
1400
|
+
function Mn(e) {
|
|
1401
|
+
var t = V, r = F, i = Y, n = $, o = X, s = L, a = re, c = Fe, f = e.f;
|
|
1402
|
+
V = null, F = 0, Y = null, $ = (f & 96) === 0 ? e : null, X = null, rt(e.ctx), re = !1, Fe = ++je, e.ac !== null && (gn(() => {
|
|
1403
|
+
e.ac.abort(_e);
|
|
1404
1404
|
}), e.ac = null);
|
|
1405
1405
|
try {
|
|
1406
1406
|
e.f |= ii;
|
|
@@ -1408,32 +1408,32 @@ function An(e) {
|
|
|
1408
1408
|
e.f |= Er;
|
|
1409
1409
|
var d = e.deps, v = S?.is_fork;
|
|
1410
1410
|
if (V !== null) {
|
|
1411
|
-
var
|
|
1411
|
+
var g;
|
|
1412
1412
|
if (v || mt(e, F), d !== null && F > 0)
|
|
1413
|
-
for (d.length = F + V.length,
|
|
1413
|
+
for (d.length = F + V.length, g = 0; g < V.length; g++) d[F + g] = V[g];
|
|
1414
1414
|
else e.deps = d = V;
|
|
1415
|
-
if (Vr() && (e.f & 512) !== 0) for (
|
|
1415
|
+
if (Vr() && (e.f & 512) !== 0) for (g = F; g < d.length; g++) {
|
|
1416
1416
|
var m;
|
|
1417
|
-
((m = d[
|
|
1417
|
+
((m = d[g]).reactions ?? (m.reactions = [])).push(e);
|
|
1418
1418
|
}
|
|
1419
1419
|
} else !v && d !== null && F < d.length && (mt(e, F), d.length = F);
|
|
1420
|
-
if (wt() && Y !== null && !re && d !== null && (e.f & 6146) === 0) for (
|
|
1420
|
+
if (wt() && Y !== null && !re && d !== null && (e.f & 6146) === 0) for (g = 0; g < Y.length; g++) En(Y[g], e);
|
|
1421
1421
|
if (n !== null && n !== e) {
|
|
1422
|
-
if (je++, n.deps !== null) for (let
|
|
1423
|
-
if (t !== null) for (const
|
|
1422
|
+
if (je++, n.deps !== null) for (let y = 0; y < r; y += 1) n.deps[y].rv = je;
|
|
1423
|
+
if (t !== null) for (const y of t) y.rv = je;
|
|
1424
1424
|
Y !== null && (i === null ? i = Y : i.push(...Y));
|
|
1425
1425
|
}
|
|
1426
1426
|
return (e.f & 8388608) !== 0 && (e.f ^= zt), h;
|
|
1427
|
-
} catch (
|
|
1428
|
-
return
|
|
1427
|
+
} catch (y) {
|
|
1428
|
+
return qi(y);
|
|
1429
1429
|
} finally {
|
|
1430
|
-
e.f ^= ii, V = t, F = r, Y = i,
|
|
1430
|
+
e.f ^= ii, V = t, F = r, Y = i, $ = n, X = o, rt(s), re = a, Fe = c;
|
|
1431
1431
|
}
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1433
|
+
function $s(e, t) {
|
|
1434
1434
|
let r = t.reactions;
|
|
1435
1435
|
if (r !== null) {
|
|
1436
|
-
var i =
|
|
1436
|
+
var i = uo.call(r, e);
|
|
1437
1437
|
if (i !== -1) {
|
|
1438
1438
|
var n = r.length - 1;
|
|
1439
1439
|
n === 0 ? r = t.reactions = null : (r[i] = r[n], r.pop());
|
|
@@ -1441,25 +1441,25 @@ function ks(e, t) {
|
|
|
1441
1441
|
}
|
|
1442
1442
|
if (r === null && (t.f & 2) !== 0 && (V === null || !tt.call(V, t))) {
|
|
1443
1443
|
var o = t;
|
|
1444
|
-
(o.f & 512) !== 0 && (o.f ^= 512, o.f &= ~
|
|
1444
|
+
(o.f & 512) !== 0 && (o.f ^= 512, o.f &= ~yt), o.v !== N && Pr(o), ss(o), mt(o, 0);
|
|
1445
1445
|
}
|
|
1446
1446
|
}
|
|
1447
1447
|
function mt(e, t) {
|
|
1448
1448
|
var r = e.deps;
|
|
1449
1449
|
if (r !== null)
|
|
1450
|
-
for (var i = t; i < r.length; i++)
|
|
1450
|
+
for (var i = t; i < r.length; i++) $s(e, r[i]);
|
|
1451
1451
|
}
|
|
1452
1452
|
function at(e) {
|
|
1453
1453
|
var t = e.f;
|
|
1454
1454
|
if ((t & 16384) === 0) {
|
|
1455
|
-
|
|
1455
|
+
C(e, J);
|
|
1456
1456
|
var r = k, i = Lt;
|
|
1457
1457
|
if (k = e, Lt = !0, 0)
|
|
1458
1458
|
var n, o;
|
|
1459
1459
|
try {
|
|
1460
|
-
(t & 16777232) !== 0 ?
|
|
1461
|
-
var s =
|
|
1462
|
-
if (e.teardown = typeof s == "function" ? s : null, e.wv =
|
|
1460
|
+
(t & 16777232) !== 0 ? bs(e) : Hr(e), bn(e);
|
|
1461
|
+
var s = Mn(e);
|
|
1462
|
+
if (e.teardown = typeof s == "function" ? s : null, e.wv = In, 0)
|
|
1463
1463
|
for (var a of e.deps) ;
|
|
1464
1464
|
} finally {
|
|
1465
1465
|
Lt = i, k = r;
|
|
@@ -1468,21 +1468,21 @@ function at(e) {
|
|
|
1468
1468
|
}
|
|
1469
1469
|
function p(e) {
|
|
1470
1470
|
var t = (e.f & 2) !== 0;
|
|
1471
|
-
if (
|
|
1472
|
-
var r =
|
|
1473
|
-
if ((
|
|
1471
|
+
if (ks?.add(e), $ !== null && !re && !(k !== null && (k.f & 16384) !== 0) && (X === null || !tt.call(X, e))) {
|
|
1472
|
+
var r = $.deps;
|
|
1473
|
+
if (($.f & 2097152) !== 0)
|
|
1474
1474
|
e.rv < je && (e.rv = je, V === null && r !== null && r[F] === e ? F++ : V === null ? V = [e] : V.push(e));
|
|
1475
1475
|
else {
|
|
1476
1476
|
var i;
|
|
1477
|
-
((i =
|
|
1477
|
+
((i = $).deps ?? (i.deps = [])).push(e);
|
|
1478
1478
|
var n = e.reactions;
|
|
1479
|
-
n === null ? e.reactions = [
|
|
1479
|
+
n === null ? e.reactions = [$] : tt.call(n, $) || n.push($);
|
|
1480
1480
|
}
|
|
1481
1481
|
}
|
|
1482
1482
|
if (0) {
|
|
1483
1483
|
if (!re && reactivity_loss_tracker && !reactivity_loss_tracker.warned && (reactivity_loss_tracker.effect.f & 2097152) === 0 && !reactivity_loss_tracker.effect_deps.has(e))
|
|
1484
1484
|
var o;
|
|
1485
|
-
if (tracing_mode_flag && !re && tracing_expressions !== null &&
|
|
1485
|
+
if (tracing_mode_flag && !re && tracing_expressions !== null && $ !== null && tracing_expressions.reaction === $ && !e.trace) {
|
|
1486
1486
|
if (o)
|
|
1487
1487
|
var s, a;
|
|
1488
1488
|
}
|
|
@@ -1492,25 +1492,25 @@ function p(e) {
|
|
|
1492
1492
|
var c = e;
|
|
1493
1493
|
if (we) {
|
|
1494
1494
|
var f = c.v;
|
|
1495
|
-
return ((c.f & 1024) === 0 && c.reactions !== null ||
|
|
1495
|
+
return ((c.f & 1024) === 0 && c.reactions !== null || Pn(c)) && (f = jr(c)), He.set(c, f), f;
|
|
1496
1496
|
}
|
|
1497
|
-
var u = (c.f & 512) === 0 && !re &&
|
|
1498
|
-
St(c) && (u && (c.f |= 512),
|
|
1497
|
+
var u = (c.f & 512) === 0 && !re && $ !== null && (Lt || ($.f & 512) !== 0), h = (c.f & Er) === 0;
|
|
1498
|
+
St(c) && (u && (c.f |= 512), cn(c)), u && !h && (un(c), On(c));
|
|
1499
1499
|
}
|
|
1500
1500
|
if (D?.has(e)) return D.get(e);
|
|
1501
1501
|
if ((e.f & 8388608) !== 0) throw e.v;
|
|
1502
1502
|
return e.v;
|
|
1503
1503
|
}
|
|
1504
|
-
function
|
|
1504
|
+
function On(e) {
|
|
1505
1505
|
if (e.f |= 512, e.deps !== null)
|
|
1506
1506
|
for (const t of e.deps)
|
|
1507
|
-
(t.reactions ?? (t.reactions = [])).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (
|
|
1507
|
+
(t.reactions ?? (t.reactions = [])).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (un(t), On(t));
|
|
1508
1508
|
}
|
|
1509
|
-
function
|
|
1509
|
+
function Pn(e) {
|
|
1510
1510
|
if (e.v === N) return !0;
|
|
1511
1511
|
if (e.deps === null) return !1;
|
|
1512
1512
|
for (const t of e.deps)
|
|
1513
|
-
if (He.has(t) || (t.f & 2) !== 0 &&
|
|
1513
|
+
if (He.has(t) || (t.f & 2) !== 0 && Pn(t)) return !0;
|
|
1514
1514
|
return !1;
|
|
1515
1515
|
}
|
|
1516
1516
|
function Yt(e) {
|
|
@@ -1521,19 +1521,19 @@ function Yt(e) {
|
|
|
1521
1521
|
re = t;
|
|
1522
1522
|
}
|
|
1523
1523
|
}
|
|
1524
|
-
var Je = /* @__PURE__ */ Symbol("events"),
|
|
1525
|
-
function
|
|
1524
|
+
var Je = /* @__PURE__ */ Symbol("events"), xn = /* @__PURE__ */ new Set(), kr = /* @__PURE__ */ new Set();
|
|
1525
|
+
function gi(e, t, r) {
|
|
1526
1526
|
(t[Je] ?? (t[Je] = {}))[e] = r;
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1529
|
-
for (var t = 0; t < e.length; t++)
|
|
1528
|
+
function Is(e) {
|
|
1529
|
+
for (var t = 0; t < e.length; t++) xn.add(e[t]);
|
|
1530
1530
|
for (var r of kr) r(e);
|
|
1531
1531
|
}
|
|
1532
|
-
var
|
|
1532
|
+
var _i = null;
|
|
1533
1533
|
function mi(e) {
|
|
1534
1534
|
var t = this, r = t.ownerDocument, i = e.type, n = e.composedPath?.() || [], o = n[0] || e.target;
|
|
1535
|
-
|
|
1536
|
-
var s = 0, a =
|
|
1535
|
+
_i = e;
|
|
1536
|
+
var s = 0, a = _i === e && e[Je];
|
|
1537
1537
|
if (a) {
|
|
1538
1538
|
var c = n.indexOf(a);
|
|
1539
1539
|
if (c !== -1 && (t === document || t === window)) {
|
|
@@ -1551,23 +1551,23 @@ function mi(e) {
|
|
|
1551
1551
|
return o || r;
|
|
1552
1552
|
}
|
|
1553
1553
|
});
|
|
1554
|
-
var u =
|
|
1554
|
+
var u = $, h = k;
|
|
1555
1555
|
Q(null), de(null);
|
|
1556
1556
|
try {
|
|
1557
1557
|
for (var d, v = []; o !== null; ) {
|
|
1558
|
-
var
|
|
1558
|
+
var g = o.assignedSlot || o.parentNode || o.host || null;
|
|
1559
1559
|
try {
|
|
1560
1560
|
var m = o[Je]?.[i];
|
|
1561
1561
|
m != null && (!o.disabled || e.target === o) && m.call(o, e);
|
|
1562
|
-
} catch (
|
|
1563
|
-
d ? v.push(
|
|
1562
|
+
} catch (y) {
|
|
1563
|
+
d ? v.push(y) : d = y;
|
|
1564
1564
|
}
|
|
1565
|
-
if (e.cancelBubble ||
|
|
1566
|
-
o =
|
|
1565
|
+
if (e.cancelBubble || g === t || g === null) break;
|
|
1566
|
+
o = g;
|
|
1567
1567
|
}
|
|
1568
1568
|
if (d) {
|
|
1569
|
-
for (let
|
|
1570
|
-
throw
|
|
1569
|
+
for (let y of v) queueMicrotask(() => {
|
|
1570
|
+
throw y;
|
|
1571
1571
|
});
|
|
1572
1572
|
throw d;
|
|
1573
1573
|
}
|
|
@@ -1576,13 +1576,13 @@ function mi(e) {
|
|
|
1576
1576
|
}
|
|
1577
1577
|
}
|
|
1578
1578
|
}
|
|
1579
|
-
var
|
|
1580
|
-
function
|
|
1581
|
-
return
|
|
1579
|
+
var As = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1580
|
+
function Es(e) {
|
|
1581
|
+
return As?.createHTML(e) ?? e;
|
|
1582
1582
|
}
|
|
1583
|
-
function
|
|
1583
|
+
function Ms(e) {
|
|
1584
1584
|
var t = Dr("template");
|
|
1585
|
-
return t.innerHTML =
|
|
1585
|
+
return t.innerHTML = Es(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1586
1586
|
}
|
|
1587
1587
|
function Ze(e, t) {
|
|
1588
1588
|
var r = k;
|
|
@@ -1594,13 +1594,13 @@ function Ze(e, t) {
|
|
|
1594
1594
|
});
|
|
1595
1595
|
}
|
|
1596
1596
|
// @__NO_SIDE_EFFECTS__
|
|
1597
|
-
function
|
|
1597
|
+
function Ln(e, t) {
|
|
1598
1598
|
var r = (t & 1) !== 0, i = (t & 2) !== 0, n, o = !e.startsWith("<!>");
|
|
1599
1599
|
return () => {
|
|
1600
1600
|
if (O)
|
|
1601
1601
|
return Ze(A, null), A;
|
|
1602
|
-
n === void 0 && (n =
|
|
1603
|
-
var s = i ||
|
|
1602
|
+
n === void 0 && (n = Ms(o ? e : "<!>" + e), r || (n = /* @__PURE__ */ st(n)));
|
|
1603
|
+
var s = i || hn ? document.importNode(n, !0) : n.cloneNode(!0);
|
|
1604
1604
|
if (r) {
|
|
1605
1605
|
var a = /* @__PURE__ */ st(s), c = s.lastChild;
|
|
1606
1606
|
Ze(a, c);
|
|
@@ -1608,13 +1608,13 @@ function Pn(e, t) {
|
|
|
1608
1608
|
return s;
|
|
1609
1609
|
};
|
|
1610
1610
|
}
|
|
1611
|
-
function
|
|
1611
|
+
function Os() {
|
|
1612
1612
|
if (O)
|
|
1613
1613
|
return Ze(A, null), A;
|
|
1614
|
-
var e = document.createDocumentFragment(), t = document.createComment(""), r =
|
|
1614
|
+
var e = document.createDocumentFragment(), t = document.createComment(""), r = ye();
|
|
1615
1615
|
return e.append(t, r), Ze(t, r), e;
|
|
1616
1616
|
}
|
|
1617
|
-
function
|
|
1617
|
+
function Ct(e, t) {
|
|
1618
1618
|
if (O) {
|
|
1619
1619
|
var r = k;
|
|
1620
1620
|
((r.f & 32768) === 0 || r.nodes.end === null) && (r.nodes.end = A), Or();
|
|
@@ -1622,7 +1622,7 @@ function Rt(e, t) {
|
|
|
1622
1622
|
}
|
|
1623
1623
|
e !== null && e.before(t);
|
|
1624
1624
|
}
|
|
1625
|
-
var
|
|
1625
|
+
var Ps = [
|
|
1626
1626
|
"allowfullscreen",
|
|
1627
1627
|
"async",
|
|
1628
1628
|
"autofocus",
|
|
@@ -1651,8 +1651,8 @@ var Ms = [
|
|
|
1651
1651
|
"defer",
|
|
1652
1652
|
"disablepictureinpicture",
|
|
1653
1653
|
"disableremoteplayback"
|
|
1654
|
-
],
|
|
1655
|
-
...
|
|
1654
|
+
], gl = [
|
|
1655
|
+
...Ps,
|
|
1656
1656
|
"formNoValidate",
|
|
1657
1657
|
"isMap",
|
|
1658
1658
|
"noModule",
|
|
@@ -1667,17 +1667,17 @@ var Ms = [
|
|
|
1667
1667
|
"allowFullscreen",
|
|
1668
1668
|
"disablePictureInPicture",
|
|
1669
1669
|
"disableRemotePlayback"
|
|
1670
|
-
],
|
|
1671
|
-
function
|
|
1672
|
-
return
|
|
1670
|
+
], xs = ["touchstart", "touchmove"];
|
|
1671
|
+
function Ls(e) {
|
|
1672
|
+
return xs.includes(e);
|
|
1673
1673
|
}
|
|
1674
|
-
var
|
|
1674
|
+
var Cs = [
|
|
1675
1675
|
"$state",
|
|
1676
1676
|
"$state.raw",
|
|
1677
1677
|
"$derived",
|
|
1678
1678
|
"$derived.by"
|
|
1679
|
-
],
|
|
1680
|
-
...
|
|
1679
|
+
], _l = [
|
|
1680
|
+
...Cs,
|
|
1681
1681
|
"$state.eager",
|
|
1682
1682
|
"$state.snapshot",
|
|
1683
1683
|
"$props",
|
|
@@ -1692,22 +1692,22 @@ var xs = [
|
|
|
1692
1692
|
"$inspect().with",
|
|
1693
1693
|
"$inspect.trace",
|
|
1694
1694
|
"$host"
|
|
1695
|
-
],
|
|
1696
|
-
function
|
|
1695
|
+
], yi = !0;
|
|
1696
|
+
function Rs(e, t) {
|
|
1697
1697
|
var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1698
1698
|
r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = `${r}`);
|
|
1699
1699
|
}
|
|
1700
|
-
function
|
|
1701
|
-
return
|
|
1700
|
+
function Cn(e, t) {
|
|
1701
|
+
return Rn(e, t);
|
|
1702
1702
|
}
|
|
1703
|
-
function
|
|
1703
|
+
function Ns(e, t) {
|
|
1704
1704
|
Tr(), t.intro = t.intro ?? !1;
|
|
1705
1705
|
const r = t.target, i = O, n = A;
|
|
1706
1706
|
try {
|
|
1707
1707
|
for (var o = /* @__PURE__ */ st(r); o && (o.nodeType !== 8 || o.data !== "["); ) o = /* @__PURE__ */ Te(o);
|
|
1708
1708
|
if (!o) throw et;
|
|
1709
1709
|
Xe(!0), ne(o);
|
|
1710
|
-
const s =
|
|
1710
|
+
const s = Rn(e, {
|
|
1711
1711
|
...t,
|
|
1712
1712
|
anchor: o
|
|
1713
1713
|
});
|
|
@@ -1715,43 +1715,43 @@ function Rs(e, t) {
|
|
|
1715
1715
|
} catch (s) {
|
|
1716
1716
|
if (s instanceof Error && s.message.split(`
|
|
1717
1717
|
`).some((a) => a.startsWith("https://svelte.dev/e/"))) throw s;
|
|
1718
|
-
return s !== et && console.warn("Failed to hydrate: ", s), t.recover === !1 &&
|
|
1718
|
+
return s !== et && console.warn("Failed to hydrate: ", s), t.recover === !1 && Oo(), Tr(), ds(r), Xe(!1), Cn(e, t);
|
|
1719
1719
|
} finally {
|
|
1720
1720
|
Xe(i), ne(n);
|
|
1721
1721
|
}
|
|
1722
1722
|
}
|
|
1723
1723
|
var Ot = /* @__PURE__ */ new Map();
|
|
1724
|
-
function
|
|
1724
|
+
function Rn(e, { target: t, anchor: r, props: i = {}, events: n, context: o, intro: s = !0, transformError: a }) {
|
|
1725
1725
|
Tr();
|
|
1726
|
-
var c = void 0, f =
|
|
1727
|
-
var u = r ?? t.appendChild(
|
|
1728
|
-
|
|
1726
|
+
var c = void 0, f = ms(() => {
|
|
1727
|
+
var u = r ?? t.appendChild(ye());
|
|
1728
|
+
Jo(u, { pending: () => {
|
|
1729
1729
|
} }, (v) => {
|
|
1730
|
-
|
|
1731
|
-
var
|
|
1732
|
-
if (o && (
|
|
1730
|
+
Bi({});
|
|
1731
|
+
var g = L;
|
|
1732
|
+
if (o && (g.c = o), n && (i.$$events = n), O && Ze(v, null), yi = s, c = e(v, i) || {}, yi = !0, O && (k.nodes.end = A, A === null || A.nodeType !== 8 || A.data !== "]"))
|
|
1733
1733
|
throw Gt(), et;
|
|
1734
|
-
|
|
1734
|
+
Ui();
|
|
1735
1735
|
}, a);
|
|
1736
1736
|
var h = /* @__PURE__ */ new Set(), d = (v) => {
|
|
1737
|
-
for (var
|
|
1738
|
-
var m = v[
|
|
1737
|
+
for (var g = 0; g < v.length; g++) {
|
|
1738
|
+
var m = v[g];
|
|
1739
1739
|
if (!h.has(m)) {
|
|
1740
1740
|
h.add(m);
|
|
1741
|
-
var
|
|
1741
|
+
var y = Ls(m);
|
|
1742
1742
|
for (const M of [t, document]) {
|
|
1743
1743
|
var E = Ot.get(M);
|
|
1744
1744
|
E === void 0 && (E = /* @__PURE__ */ new Map(), Ot.set(M, E));
|
|
1745
1745
|
var U = E.get(m);
|
|
1746
|
-
U === void 0 ? (M.addEventListener(m, mi, { passive:
|
|
1746
|
+
U === void 0 ? (M.addEventListener(m, mi, { passive: y }), E.set(m, 1)) : E.set(m, U + 1);
|
|
1747
1747
|
}
|
|
1748
1748
|
}
|
|
1749
1749
|
}
|
|
1750
1750
|
};
|
|
1751
|
-
return d(
|
|
1752
|
-
for (var v of h) for (const
|
|
1753
|
-
var
|
|
1754
|
-
--m == 0 ? (
|
|
1751
|
+
return d(fo(xn)), kr.add(d), () => {
|
|
1752
|
+
for (var v of h) for (const y of [t, document]) {
|
|
1753
|
+
var g = Ot.get(y), m = g.get(v);
|
|
1754
|
+
--m == 0 ? (y.removeEventListener(v, mi), g.delete(v), g.size === 0 && Ot.delete(y)) : g.set(v, m);
|
|
1755
1755
|
}
|
|
1756
1756
|
kr.delete(d), u !== r && u.parentNode?.removeChild(u);
|
|
1757
1757
|
};
|
|
@@ -1759,32 +1759,32 @@ function Ln(e, { target: t, anchor: r, props: i = {}, events: n, context: o, int
|
|
|
1759
1759
|
return Sr.set(c, f), c;
|
|
1760
1760
|
}
|
|
1761
1761
|
var Sr = /* @__PURE__ */ new WeakMap();
|
|
1762
|
-
function
|
|
1762
|
+
function js(e, t) {
|
|
1763
1763
|
const r = Sr.get(e);
|
|
1764
1764
|
return r ? (Sr.delete(e), r(t)) : Promise.resolve();
|
|
1765
1765
|
}
|
|
1766
|
-
var
|
|
1766
|
+
var ge = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), ft = /* @__PURE__ */ new WeakMap(), ir = /* @__PURE__ */ new WeakMap(), nr = /* @__PURE__ */ new WeakMap(), bi = /* @__PURE__ */ new WeakMap(), Ds = class {
|
|
1767
1767
|
constructor(e, t = !0) {
|
|
1768
|
-
|
|
1769
|
-
if (l(
|
|
1770
|
-
var i = l(
|
|
1768
|
+
_(this, "anchor", void 0), b(this, ge, /* @__PURE__ */ new Map()), b(this, Ae, /* @__PURE__ */ new Map()), b(this, Z, /* @__PURE__ */ new Map()), b(this, ft, /* @__PURE__ */ new Set()), b(this, ir, !0), b(this, nr, (r) => {
|
|
1769
|
+
if (l(ge, this).has(r)) {
|
|
1770
|
+
var i = l(ge, this).get(r), n = l(Ae, this).get(i);
|
|
1771
1771
|
if (n)
|
|
1772
|
-
|
|
1772
|
+
Ts(n), l(ft, this).delete(i);
|
|
1773
1773
|
else {
|
|
1774
1774
|
var o = l(Z, this).get(i);
|
|
1775
1775
|
o && (l(Ae, this).set(i, o.effect), l(Z, this).delete(i), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), n = o.effect);
|
|
1776
1776
|
}
|
|
1777
|
-
for (const [s, a] of l(
|
|
1778
|
-
if (l(
|
|
1777
|
+
for (const [s, a] of l(ge, this)) {
|
|
1778
|
+
if (l(ge, this).delete(s), s === r) break;
|
|
1779
1779
|
const c = l(Z, this).get(a);
|
|
1780
1780
|
c && (W(c.effect), l(Z, this).delete(a));
|
|
1781
1781
|
}
|
|
1782
1782
|
for (const [s, a] of l(Ae, this)) {
|
|
1783
1783
|
if (s === i || l(ft, this).has(s)) continue;
|
|
1784
1784
|
const c = () => {
|
|
1785
|
-
if (Array.from(l(
|
|
1785
|
+
if (Array.from(l(ge, this).values()).includes(s)) {
|
|
1786
1786
|
var f = document.createDocumentFragment();
|
|
1787
|
-
|
|
1787
|
+
Sn(a, f), f.append(ye()), l(Z, this).set(s, {
|
|
1788
1788
|
effect: a,
|
|
1789
1789
|
fragment: f
|
|
1790
1790
|
});
|
|
@@ -1794,36 +1794,36 @@ var _e = /* @__PURE__ */ new WeakMap(), Ae = /* @__PURE__ */ new WeakMap(), Z =
|
|
|
1794
1794
|
l(ir, this) || !n ? (l(ft, this).add(s), kt(a, c, !1)) : c();
|
|
1795
1795
|
}
|
|
1796
1796
|
}
|
|
1797
|
-
}),
|
|
1798
|
-
l(
|
|
1799
|
-
const i = Array.from(l(
|
|
1797
|
+
}), b(this, bi, (r) => {
|
|
1798
|
+
l(ge, this).delete(r);
|
|
1799
|
+
const i = Array.from(l(ge, this).values());
|
|
1800
1800
|
for (const [n, o] of l(Z, this)) i.includes(n) || (W(o.effect), l(Z, this).delete(n));
|
|
1801
1801
|
}), this.anchor = e, w(ir, this, t);
|
|
1802
1802
|
}
|
|
1803
1803
|
ensure(e, t) {
|
|
1804
|
-
var r = S, i =
|
|
1804
|
+
var r = S, i = hs();
|
|
1805
1805
|
if (t && !l(Ae, this).has(e) && !l(Z, this).has(e)) if (i) {
|
|
1806
|
-
var n = document.createDocumentFragment(), o =
|
|
1806
|
+
var n = document.createDocumentFragment(), o = ye();
|
|
1807
1807
|
n.append(o), l(Z, this).set(e, {
|
|
1808
|
-
effect:
|
|
1808
|
+
effect: be(() => t(o)),
|
|
1809
1809
|
fragment: n
|
|
1810
1810
|
});
|
|
1811
|
-
} else l(Ae, this).set(e,
|
|
1812
|
-
if (l(
|
|
1811
|
+
} else l(Ae, this).set(e, be(() => t(this.anchor)));
|
|
1812
|
+
if (l(ge, this).set(r, e), i) {
|
|
1813
1813
|
for (const [s, a] of l(Ae, this)) s === e ? r.unskip_effect(a) : r.skip_effect(a);
|
|
1814
1814
|
for (const [s, a] of l(Z, this)) s === e ? r.unskip_effect(a.effect) : r.skip_effect(a.effect);
|
|
1815
|
-
r.oncommit(l(nr, this)), r.ondiscard(l(
|
|
1815
|
+
r.oncommit(l(nr, this)), r.ondiscard(l(bi, this));
|
|
1816
1816
|
} else
|
|
1817
1817
|
O && (this.anchor = A), l(nr, this).call(this, r);
|
|
1818
1818
|
}
|
|
1819
1819
|
};
|
|
1820
|
-
function
|
|
1821
|
-
L === null &&
|
|
1820
|
+
function zs(e) {
|
|
1821
|
+
L === null && So("onMount"), bt && L.l !== null ? Vs(L).m.push(e) : ht(() => {
|
|
1822
1822
|
const t = Yt(e);
|
|
1823
1823
|
if (typeof t == "function") return t;
|
|
1824
1824
|
});
|
|
1825
1825
|
}
|
|
1826
|
-
function
|
|
1826
|
+
function Vs(e) {
|
|
1827
1827
|
var t = e.l;
|
|
1828
1828
|
return t.u ?? (t.u = {
|
|
1829
1829
|
a: [],
|
|
@@ -1834,27 +1834,27 @@ function Ds(e) {
|
|
|
1834
1834
|
function wi(e, t, r = !1) {
|
|
1835
1835
|
var i;
|
|
1836
1836
|
O && (i = A, Or());
|
|
1837
|
-
var n = new
|
|
1837
|
+
var n = new Ds(e), o = r ? Mr : 0;
|
|
1838
1838
|
function s(a, c) {
|
|
1839
1839
|
if (O) {
|
|
1840
|
-
var f =
|
|
1840
|
+
var f = Do(i);
|
|
1841
1841
|
if (a !== parseInt(f.substring(1))) {
|
|
1842
|
-
var u =
|
|
1842
|
+
var u = Wi();
|
|
1843
1843
|
ne(u), n.anchor = u, Xe(!1), n.ensure(a, c), Xe(!0);
|
|
1844
1844
|
return;
|
|
1845
1845
|
}
|
|
1846
1846
|
}
|
|
1847
1847
|
n.ensure(a, c);
|
|
1848
1848
|
}
|
|
1849
|
-
|
|
1849
|
+
yn(() => {
|
|
1850
1850
|
var a = !1;
|
|
1851
1851
|
t((c, f = 0) => {
|
|
1852
1852
|
a = !0, s(f, c);
|
|
1853
1853
|
}), a || s(-1, null);
|
|
1854
1854
|
}, o);
|
|
1855
1855
|
}
|
|
1856
|
-
function
|
|
1857
|
-
|
|
1856
|
+
function Ws(e, t) {
|
|
1857
|
+
mn(() => {
|
|
1858
1858
|
var r = e.getRootNode(), i = r.host ? r : r.head ?? r.ownerDocument.head;
|
|
1859
1859
|
if (!i.querySelector("#" + t.hash)) {
|
|
1860
1860
|
const n = Dr("style");
|
|
@@ -1864,7 +1864,7 @@ function zs(e, t) {
|
|
|
1864
1864
|
}
|
|
1865
1865
|
var Ti = [...`
|
|
1866
1866
|
\r\f \v\uFEFF`];
|
|
1867
|
-
function
|
|
1867
|
+
function Hs(e, t, r) {
|
|
1868
1868
|
var i = e == null ? "" : "" + e;
|
|
1869
1869
|
if (t && (i = i ? i + " " + t : t), r) {
|
|
1870
1870
|
for (var n of Object.keys(r)) if (r[n]) i = i ? i + " " + n : n;
|
|
@@ -1887,7 +1887,7 @@ function ki(e, t = !1) {
|
|
|
1887
1887
|
function or(e) {
|
|
1888
1888
|
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
1889
1889
|
}
|
|
1890
|
-
function
|
|
1890
|
+
function Fs(e, t) {
|
|
1891
1891
|
if (t) {
|
|
1892
1892
|
var r = "", i, n;
|
|
1893
1893
|
if (Array.isArray(t) ? (i = t[0], n = t[1]) : i = t, e) {
|
|
@@ -1905,8 +1905,8 @@ function Ws(e, t) {
|
|
|
1905
1905
|
var v = or(e.substring(f, u).trim());
|
|
1906
1906
|
if (!c.includes(v)) {
|
|
1907
1907
|
d !== ";" && h++;
|
|
1908
|
-
var
|
|
1909
|
-
r += " " +
|
|
1908
|
+
var g = e.substring(f, h).trim();
|
|
1909
|
+
r += " " + g + ";";
|
|
1910
1910
|
}
|
|
1911
1911
|
}
|
|
1912
1912
|
f = h + 1, u = -1;
|
|
@@ -1918,10 +1918,10 @@ function Ws(e, t) {
|
|
|
1918
1918
|
}
|
|
1919
1919
|
return e == null ? null : String(e);
|
|
1920
1920
|
}
|
|
1921
|
-
function
|
|
1921
|
+
function Bs(e, t, r, i, n, o) {
|
|
1922
1922
|
var s = e.__className;
|
|
1923
1923
|
if (O || s !== r || s === void 0) {
|
|
1924
|
-
var a =
|
|
1924
|
+
var a = Hs(r, i, o);
|
|
1925
1925
|
(!O || a !== e.getAttribute("class")) && (a == null ? e.removeAttribute("class") : t ? e.className = a : e.setAttribute("class", a)), e.__className = r;
|
|
1926
1926
|
} else if (o && n !== o) for (var c in o) {
|
|
1927
1927
|
var f = !!o[c];
|
|
@@ -1938,76 +1938,76 @@ function sr(e, t = {}, r, i) {
|
|
|
1938
1938
|
function qe(e, t, r, i) {
|
|
1939
1939
|
var n = e.__style;
|
|
1940
1940
|
if (O || n !== t) {
|
|
1941
|
-
var o =
|
|
1941
|
+
var o = Fs(t, i);
|
|
1942
1942
|
(!O || o !== e.getAttribute("style")) && (o == null ? e.removeAttribute("style") : e.style.cssText = o), e.__style = t;
|
|
1943
1943
|
} else i && (Array.isArray(i) ? (sr(e, r?.[0], i[0]), sr(e, r?.[1], i[1], "important")) : sr(e, r, i));
|
|
1944
1944
|
return i;
|
|
1945
1945
|
}
|
|
1946
|
-
var
|
|
1947
|
-
function
|
|
1948
|
-
var n =
|
|
1949
|
-
if (O && (n[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName ===
|
|
1946
|
+
var Us = /* @__PURE__ */ Symbol("is custom element"), Gs = /* @__PURE__ */ Symbol("is html"), qs = ko ? "link" : "LINK";
|
|
1947
|
+
function Ys(e, t, r, i) {
|
|
1948
|
+
var n = Ks(e);
|
|
1949
|
+
if (O && (n[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === qs)) {
|
|
1950
1950
|
i || void 0;
|
|
1951
1951
|
return;
|
|
1952
1952
|
}
|
|
1953
|
-
n[t] !== (n[t] = r) && (t === "loading" && (e[
|
|
1953
|
+
n[t] !== (n[t] = r) && (t === "loading" && (e[wo] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Xs(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
1954
1954
|
}
|
|
1955
|
-
function
|
|
1955
|
+
function Ks(e) {
|
|
1956
1956
|
return e.__attributes ?? (e.__attributes = {
|
|
1957
|
-
[
|
|
1958
|
-
[
|
|
1957
|
+
[Us]: e.nodeName.includes("-"),
|
|
1958
|
+
[Gs]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
1959
1959
|
});
|
|
1960
1960
|
}
|
|
1961
1961
|
var Si = /* @__PURE__ */ new Map();
|
|
1962
|
-
function
|
|
1962
|
+
function Xs(e) {
|
|
1963
1963
|
var t = e.getAttribute("is") || e.nodeName, r = Si.get(t);
|
|
1964
1964
|
if (r) return r;
|
|
1965
1965
|
Si.set(t, r = []);
|
|
1966
1966
|
for (var i, n = e, o = Element.prototype; o !== n; ) {
|
|
1967
|
-
i =
|
|
1967
|
+
i = ho(n);
|
|
1968
1968
|
for (var s in i) i[s].set && r.push(s);
|
|
1969
|
-
n =
|
|
1969
|
+
n = ji(n);
|
|
1970
1970
|
}
|
|
1971
1971
|
return r;
|
|
1972
1972
|
}
|
|
1973
|
-
var
|
|
1973
|
+
var Nn, Ke = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), $i = /* @__PURE__ */ new WeakSet(), jn = class {
|
|
1974
1974
|
constructor(e) {
|
|
1975
|
-
xr(this,
|
|
1975
|
+
xr(this, $i), b(this, Ke, /* @__PURE__ */ new WeakMap()), b(this, Bt, void 0), b(this, ar, void 0), w(ar, this, e);
|
|
1976
1976
|
}
|
|
1977
1977
|
observe(e, t) {
|
|
1978
1978
|
var r = l(Ke, this).get(e) || /* @__PURE__ */ new Set();
|
|
1979
|
-
return r.add(t), l(Ke, this).set(e, r), $
|
|
1979
|
+
return r.add(t), l(Ke, this).set(e, r), I($i, this, Js).call(this).observe(e, l(ar, this)), () => {
|
|
1980
1980
|
var i = l(Ke, this).get(e);
|
|
1981
1981
|
i.delete(t), i.size === 0 && (l(Ke, this).delete(e), l(Bt, this).unobserve(e));
|
|
1982
1982
|
};
|
|
1983
1983
|
}
|
|
1984
1984
|
};
|
|
1985
|
-
|
|
1986
|
-
function
|
|
1985
|
+
Nn = jn;
|
|
1986
|
+
function Js() {
|
|
1987
1987
|
return l(Bt, this) ?? w(Bt, this, new ResizeObserver((e) => {
|
|
1988
1988
|
for (var t of e) {
|
|
1989
|
-
|
|
1989
|
+
Nn.entries.set(t.target, t);
|
|
1990
1990
|
for (var r of l(Ke, this).get(t.target) || []) r(t);
|
|
1991
1991
|
}
|
|
1992
1992
|
}));
|
|
1993
1993
|
}
|
|
1994
|
-
|
|
1995
|
-
function
|
|
1994
|
+
_(jn, "entries", /* @__PURE__ */ new WeakMap());
|
|
1995
|
+
function Ii(e, t) {
|
|
1996
1996
|
return e === t || e?.[pt] === t;
|
|
1997
1997
|
}
|
|
1998
|
-
function
|
|
1998
|
+
function Qs(e = {}, t, r, i) {
|
|
1999
1999
|
var n = L.r, o = k;
|
|
2000
|
-
return
|
|
2000
|
+
return mn(() => {
|
|
2001
2001
|
var s, a;
|
|
2002
2002
|
return Wr(() => {
|
|
2003
2003
|
s = a, a = i?.() || [], Yt(() => {
|
|
2004
|
-
e !== r(...a) && (t(e, ...a), s &&
|
|
2004
|
+
e !== r(...a) && (t(e, ...a), s && Ii(r(...s), e) && t(null, ...s));
|
|
2005
2005
|
});
|
|
2006
2006
|
}), () => {
|
|
2007
2007
|
let c = o;
|
|
2008
2008
|
for (; c !== n && c.parent !== null && c.parent.f & 33554432; ) c = c.parent;
|
|
2009
2009
|
const f = () => {
|
|
2010
|
-
a &&
|
|
2010
|
+
a && Ii(r(...a), e) && t(null, ...a);
|
|
2011
2011
|
}, u = c.teardown;
|
|
2012
2012
|
c.teardown = () => {
|
|
2013
2013
|
f(), u?.();
|
|
@@ -2016,47 +2016,47 @@ function Xs(e = {}, t, r, i) {
|
|
|
2016
2016
|
}), e;
|
|
2017
2017
|
}
|
|
2018
2018
|
function Ai(e, t, r, i) {
|
|
2019
|
-
var n = !
|
|
2019
|
+
var n = !bt || (r & 2) !== 0, o = (r & 8) !== 0, s = (r & 16) !== 0, a = i, c = !0, f = () => (c && (c = !1, a = s ? Yt(i) : i), a);
|
|
2020
2020
|
let u;
|
|
2021
2021
|
if (o) {
|
|
2022
|
-
var h = pt in e ||
|
|
2022
|
+
var h = pt in e || zi in e;
|
|
2023
2023
|
u = De(e, t)?.set ?? (h && t in e ? (M) => e[t] = M : void 0);
|
|
2024
2024
|
}
|
|
2025
2025
|
var d, v = !1;
|
|
2026
|
-
o ? [d, v] =
|
|
2027
|
-
var
|
|
2028
|
-
if (n ?
|
|
2026
|
+
o ? [d, v] = Bo(() => e[t]) : d = e[t], d === void 0 && i !== void 0 && (d = f(), u && (n && Po(t), u(d)));
|
|
2027
|
+
var g;
|
|
2028
|
+
if (n ? g = () => {
|
|
2029
2029
|
var M = e[t];
|
|
2030
2030
|
return M === void 0 ? f() : (c = !0, M);
|
|
2031
|
-
} :
|
|
2031
|
+
} : g = () => {
|
|
2032
2032
|
var M = e[t];
|
|
2033
2033
|
return M !== void 0 && (a = void 0), M === void 0 ? a : M;
|
|
2034
|
-
}, n && (r & 4) === 0) return
|
|
2034
|
+
}, n && (r & 4) === 0) return g;
|
|
2035
2035
|
if (u) {
|
|
2036
2036
|
var m = e.$$legacy;
|
|
2037
2037
|
return (function(M, G) {
|
|
2038
|
-
return arguments.length > 0 ? ((!n || !G || m || v) && u(G ?
|
|
2038
|
+
return arguments.length > 0 ? ((!n || !G || m || v) && u(G ? g() : M), M) : g();
|
|
2039
2039
|
});
|
|
2040
2040
|
}
|
|
2041
|
-
var
|
|
2041
|
+
var y = !1, E = ((r & 1) !== 0 ? qt : ln)(() => (y = !1, g()));
|
|
2042
2042
|
o && p(E);
|
|
2043
2043
|
var U = k;
|
|
2044
2044
|
return (function(M, G) {
|
|
2045
2045
|
if (arguments.length > 0) {
|
|
2046
|
-
const
|
|
2047
|
-
return P(E,
|
|
2046
|
+
const $e = G ? p(E) : n && o ? ue(M) : M;
|
|
2047
|
+
return P(E, $e), y = !0, a !== void 0 && (a = $e), M;
|
|
2048
2048
|
}
|
|
2049
|
-
return we &&
|
|
2049
|
+
return we && y || (U.f & 16384) !== 0 ? E.v : p(E);
|
|
2050
2050
|
});
|
|
2051
2051
|
}
|
|
2052
|
-
function
|
|
2053
|
-
return new
|
|
2052
|
+
function Zs(e) {
|
|
2053
|
+
return new ea(e);
|
|
2054
2054
|
}
|
|
2055
|
-
var
|
|
2055
|
+
var Ce = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), ea = class {
|
|
2056
2056
|
constructor(e) {
|
|
2057
|
-
|
|
2057
|
+
b(this, Ce, void 0), b(this, se, void 0);
|
|
2058
2058
|
var t = /* @__PURE__ */ new Map(), r = (n, o) => {
|
|
2059
|
-
var s = /* @__PURE__ */
|
|
2059
|
+
var s = /* @__PURE__ */ as(o, !1, !1);
|
|
2060
2060
|
return t.set(n, s), s;
|
|
2061
2061
|
};
|
|
2062
2062
|
const i = new Proxy({
|
|
@@ -2067,13 +2067,13 @@ var Re = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), Qs =
|
|
|
2067
2067
|
return p(t.get(o) ?? r(o, Reflect.get(n, o)));
|
|
2068
2068
|
},
|
|
2069
2069
|
has(n, o) {
|
|
2070
|
-
return o ===
|
|
2070
|
+
return o === zi ? !0 : (p(t.get(o) ?? r(o, Reflect.get(n, o))), Reflect.has(n, o));
|
|
2071
2071
|
},
|
|
2072
2072
|
set(n, o, s) {
|
|
2073
2073
|
return P(t.get(o) ?? r(o, s), s), Reflect.set(n, o, s);
|
|
2074
2074
|
}
|
|
2075
2075
|
});
|
|
2076
|
-
w(se, this, (e.hydrate ?
|
|
2076
|
+
w(se, this, (e.hydrate ? Ns : Cn)(e.component, {
|
|
2077
2077
|
target: e.target,
|
|
2078
2078
|
anchor: e.anchor,
|
|
2079
2079
|
props: i,
|
|
@@ -2081,7 +2081,7 @@ var Re = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), Qs =
|
|
|
2081
2081
|
intro: e.intro ?? !1,
|
|
2082
2082
|
recover: e.recover,
|
|
2083
2083
|
transformError: e.transformError
|
|
2084
|
-
})), !me && (!e?.props?.$$host || e.sync === !1) &&
|
|
2084
|
+
})), !me && (!e?.props?.$$host || e.sync === !1) && gr(), w(Ce, this, i.$$events);
|
|
2085
2085
|
for (const n of Object.keys(l(se, this)))
|
|
2086
2086
|
n === "$set" || n === "$destroy" || n === "$on" || Dt(this, n, {
|
|
2087
2087
|
get() {
|
|
@@ -2095,26 +2095,26 @@ var Re = /* @__PURE__ */ new WeakMap(), se = /* @__PURE__ */ new WeakMap(), Qs =
|
|
|
2095
2095
|
l(se, this).$set = (n) => {
|
|
2096
2096
|
Object.assign(i, n);
|
|
2097
2097
|
}, l(se, this).$destroy = () => {
|
|
2098
|
-
|
|
2098
|
+
js(l(se, this));
|
|
2099
2099
|
};
|
|
2100
2100
|
}
|
|
2101
2101
|
$set(e) {
|
|
2102
2102
|
l(se, this).$set(e);
|
|
2103
2103
|
}
|
|
2104
2104
|
$on(e, t) {
|
|
2105
|
-
l(
|
|
2105
|
+
l(Ce, this)[e] = l(Ce, this)[e] || [];
|
|
2106
2106
|
const r = (...i) => t.call(this, ...i);
|
|
2107
|
-
return l(
|
|
2108
|
-
l(
|
|
2107
|
+
return l(Ce, this)[e].push(r), () => {
|
|
2108
|
+
l(Ce, this)[e] = l(Ce, this)[e].filter((i) => i !== r);
|
|
2109
2109
|
};
|
|
2110
2110
|
}
|
|
2111
2111
|
$destroy() {
|
|
2112
2112
|
l(se, this).$destroy();
|
|
2113
2113
|
}
|
|
2114
|
-
},
|
|
2115
|
-
typeof HTMLElement == "function" && (
|
|
2114
|
+
}, Dn;
|
|
2115
|
+
typeof HTMLElement == "function" && (Dn = class extends HTMLElement {
|
|
2116
2116
|
constructor(e, t, r) {
|
|
2117
|
-
super(),
|
|
2117
|
+
super(), _(this, "$$ctor", void 0), _(this, "$$s", void 0), _(this, "$$c", void 0), _(this, "$$cn", !1), _(this, "$$d", {}), _(this, "$$r", !1), _(this, "$$p_d", {}), _(this, "$$l", {}), _(this, "$$l_u", /* @__PURE__ */ new Map()), _(this, "$$me", void 0), _(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
2118
2118
|
}
|
|
2119
2119
|
addEventListener(e, t, r) {
|
|
2120
2120
|
if (this.$$l[e] = this.$$l[e] || [], this.$$l[e].push(t), this.$$c) {
|
|
@@ -2134,18 +2134,18 @@ typeof HTMLElement == "function" && (Nn = class extends HTMLElement {
|
|
|
2134
2134
|
let e = function(i) {
|
|
2135
2135
|
return (n) => {
|
|
2136
2136
|
const o = Dr("slot");
|
|
2137
|
-
i !== "default" && (o.name = i),
|
|
2137
|
+
i !== "default" && (o.name = i), Ct(n, o);
|
|
2138
2138
|
};
|
|
2139
2139
|
};
|
|
2140
2140
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2141
|
-
const t = {}, r =
|
|
2141
|
+
const t = {}, r = ta(this);
|
|
2142
2142
|
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));
|
|
2143
2143
|
for (const i of this.attributes) {
|
|
2144
2144
|
const n = this.$$g_p(i.name);
|
|
2145
|
-
n in this.$$d || (this.$$d[n] =
|
|
2145
|
+
n in this.$$d || (this.$$d[n] = Rt(n, i.value, this.$$p_d, "toProp"));
|
|
2146
2146
|
}
|
|
2147
2147
|
for (const i in this.$$p_d) !(i in this.$$d) && this[i] !== void 0 && (this.$$d[i] = this[i], delete this[i]);
|
|
2148
|
-
this.$$c =
|
|
2148
|
+
this.$$c = Zs({
|
|
2149
2149
|
component: this.$$ctor,
|
|
2150
2150
|
target: this.$$shadowRoot || this,
|
|
2151
2151
|
props: {
|
|
@@ -2153,13 +2153,13 @@ typeof HTMLElement == "function" && (Nn = class extends HTMLElement {
|
|
|
2153
2153
|
$$slots: t,
|
|
2154
2154
|
$$host: this
|
|
2155
2155
|
}
|
|
2156
|
-
}), this.$$me =
|
|
2156
|
+
}), this.$$me = _s(() => {
|
|
2157
2157
|
Wr(() => {
|
|
2158
2158
|
this.$$r = !0;
|
|
2159
2159
|
for (const i of jt(this.$$c)) {
|
|
2160
2160
|
if (!this.$$p_d[i]?.reflect) continue;
|
|
2161
2161
|
this.$$d[i] = this.$$c[i];
|
|
2162
|
-
const n =
|
|
2162
|
+
const n = Rt(i, this.$$d[i], this.$$p_d, "toAttribute");
|
|
2163
2163
|
n == null ? this.removeAttribute(this.$$p_d[i].attribute || i) : this.setAttribute(this.$$p_d[i].attribute || i, n);
|
|
2164
2164
|
}
|
|
2165
2165
|
this.$$r = !1;
|
|
@@ -2173,7 +2173,7 @@ typeof HTMLElement == "function" && (Nn = class extends HTMLElement {
|
|
|
2173
2173
|
}
|
|
2174
2174
|
}
|
|
2175
2175
|
attributeChangedCallback(e, t, r) {
|
|
2176
|
-
this.$$r || (e = this.$$g_p(e), this.$$d[e] =
|
|
2176
|
+
this.$$r || (e = this.$$g_p(e), this.$$d[e] = Rt(e, r, this.$$p_d, "toProp"), this.$$c?.$set({ [e]: this.$$d[e] }));
|
|
2177
2177
|
}
|
|
2178
2178
|
disconnectedCallback() {
|
|
2179
2179
|
this.$$cn = !1, Promise.resolve().then(() => {
|
|
@@ -2184,7 +2184,7 @@ typeof HTMLElement == "function" && (Nn = class extends HTMLElement {
|
|
|
2184
2184
|
return jt(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
|
|
2185
2185
|
}
|
|
2186
2186
|
});
|
|
2187
|
-
function
|
|
2187
|
+
function Rt(e, t, r, i) {
|
|
2188
2188
|
const n = r[e]?.type;
|
|
2189
2189
|
if (t = n === "Boolean" && typeof t != "boolean" ? t != null : t, !i || !r[e]) return t;
|
|
2190
2190
|
if (i === "toAttribute") switch (n) {
|
|
@@ -2210,14 +2210,14 @@ function Ct(e, t, r, i) {
|
|
|
2210
2210
|
return t;
|
|
2211
2211
|
}
|
|
2212
2212
|
}
|
|
2213
|
-
function
|
|
2213
|
+
function ta(e) {
|
|
2214
2214
|
const t = {};
|
|
2215
2215
|
return e.childNodes.forEach((r) => {
|
|
2216
2216
|
t[r.slot || "default"] = !0;
|
|
2217
2217
|
}), t;
|
|
2218
2218
|
}
|
|
2219
|
-
function
|
|
2220
|
-
let s = class extends
|
|
2219
|
+
function ra(e, t, r, i, n, o) {
|
|
2220
|
+
let s = class extends Dn {
|
|
2221
2221
|
constructor() {
|
|
2222
2222
|
super(e, r, n), this.$$p_d = t;
|
|
2223
2223
|
}
|
|
@@ -2231,7 +2231,7 @@ function ea(e, t, r, i, n, o) {
|
|
|
2231
2231
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
2232
2232
|
},
|
|
2233
2233
|
set(c) {
|
|
2234
|
-
c =
|
|
2234
|
+
c = Rt(a, c, t), this.$$d[a] = c;
|
|
2235
2235
|
var f = this.$$c;
|
|
2236
2236
|
f && (De(f, a)?.get ? f[a] = c : f.$set({ [a]: c }));
|
|
2237
2237
|
}
|
|
@@ -2242,16 +2242,16 @@ function ea(e, t, r, i, n, o) {
|
|
|
2242
2242
|
} });
|
|
2243
2243
|
}), o && (s = o(s)), e.element = s, s;
|
|
2244
2244
|
}
|
|
2245
|
-
var
|
|
2245
|
+
var ia = class extends Event {
|
|
2246
2246
|
constructor(e, t, r, i) {
|
|
2247
2247
|
super("context-request", {
|
|
2248
2248
|
bubbles: !0,
|
|
2249
2249
|
composed: !0
|
|
2250
|
-
}),
|
|
2250
|
+
}), _(this, "context", void 0), _(this, "contextTarget", void 0), _(this, "callback", void 0), _(this, "subscribe", void 0), this.context = e, this.contextTarget = t, this.callback = r, this.subscribe = i ?? !1;
|
|
2251
2251
|
}
|
|
2252
|
-
},
|
|
2252
|
+
}, na = class {
|
|
2253
2253
|
constructor(e, t) {
|
|
2254
|
-
|
|
2254
|
+
_(this, "host", void 0), _(this, "context", void 0), _(this, "subscribe", void 0), _(this, "onValue", void 0), _(this, "isConnected", !1), _(this, "unsubscribe", void 0), _(this, "currentValue", void 0), _(this, "handleValue", (r, i) => {
|
|
2255
2255
|
i !== this.unsubscribe && (this.unsubscribe?.(), this.unsubscribe = i), !this.subscribe && this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0), this.currentValue = r, this.onValue?.(r);
|
|
2256
2256
|
}), this.host = e, this.context = t.context, this.subscribe = t.subscribe ?? !0, this.onValue = t.onValue;
|
|
2257
2257
|
}
|
|
@@ -2265,12 +2265,12 @@ var ta = class extends Event {
|
|
|
2265
2265
|
return this.currentValue;
|
|
2266
2266
|
}
|
|
2267
2267
|
requestValue() {
|
|
2268
|
-
this.host.dispatchEvent(new
|
|
2268
|
+
this.host.dispatchEvent(new ia(this.context, this.host, this.handleValue, this.subscribe));
|
|
2269
2269
|
}
|
|
2270
|
-
}, Kt = (e) => e,
|
|
2271
|
-
function
|
|
2270
|
+
}, Kt = (e) => e, oa = Kt(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.runtimeContext")), ml = Kt(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), yl = Kt(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.shellContext")), bl = Kt(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.regionScopeContext"));
|
|
2271
|
+
function sa(e, t, r) {
|
|
2272
2272
|
let i = !1;
|
|
2273
|
-
const n = new
|
|
2273
|
+
const n = new na(e, {
|
|
2274
2274
|
context: t,
|
|
2275
2275
|
subscribe: !0,
|
|
2276
2276
|
onValue: (f) => {
|
|
@@ -2294,11 +2294,11 @@ function na(e, t, r) {
|
|
|
2294
2294
|
globalThis.clearInterval(c), e.removeEventListener("context-provider", o), n.disconnect();
|
|
2295
2295
|
};
|
|
2296
2296
|
}
|
|
2297
|
-
function
|
|
2298
|
-
return
|
|
2297
|
+
function aa(e, t) {
|
|
2298
|
+
return sa(e, oa, t);
|
|
2299
2299
|
}
|
|
2300
|
-
function
|
|
2301
|
-
return
|
|
2300
|
+
function la(e, t) {
|
|
2301
|
+
return aa(e, t);
|
|
2302
2302
|
}
|
|
2303
2303
|
var Ei;
|
|
2304
2304
|
(function(e) {
|
|
@@ -2308,12 +2308,12 @@ var Mi;
|
|
|
2308
2308
|
(function(e) {
|
|
2309
2309
|
e.YELLOW = "yellow", e.GREEN = "green", e.BLUE = "blue", e.PINK = "pink", e.ORANGE = "orange", e.UNDERLINE = "underline";
|
|
2310
2310
|
})(Mi || (Mi = {}));
|
|
2311
|
-
function
|
|
2311
|
+
function zn(e) {
|
|
2312
2312
|
return (...t) => {
|
|
2313
2313
|
console.debug(`[${e}]`, ...t);
|
|
2314
2314
|
};
|
|
2315
2315
|
}
|
|
2316
|
-
var
|
|
2316
|
+
var wl = zn("I18nService"), lr = {
|
|
2317
2317
|
assessment: [],
|
|
2318
2318
|
section: [],
|
|
2319
2319
|
item: [],
|
|
@@ -2334,19 +2334,19 @@ function Ee(e, t) {
|
|
|
2334
2334
|
if (e.find((r) => typeof r != "string") !== void 0) throw new Error(`Invalid tools config at "${t}": all entries must be strings.`);
|
|
2335
2335
|
return e;
|
|
2336
2336
|
}
|
|
2337
|
-
function
|
|
2337
|
+
function ca(e) {
|
|
2338
2338
|
if (e != null) {
|
|
2339
2339
|
if (!Be(e)) throw new Error('Invalid tools config at "placement": expected an object with section/item/passage arrays.');
|
|
2340
2340
|
return e;
|
|
2341
2341
|
}
|
|
2342
2342
|
}
|
|
2343
|
-
function
|
|
2343
|
+
function ua(e) {
|
|
2344
2344
|
if (e != null) {
|
|
2345
2345
|
if (!Be(e)) throw new Error('Invalid tools config at "policy": expected an object with allowed/blocked arrays.');
|
|
2346
2346
|
return e;
|
|
2347
2347
|
}
|
|
2348
2348
|
}
|
|
2349
|
-
function
|
|
2349
|
+
function fa(e, t) {
|
|
2350
2350
|
if (t == null) return;
|
|
2351
2351
|
if (!Be(t)) throw new Error(`Invalid tools config at "providers.${e}": expected an object.`);
|
|
2352
2352
|
const r = t;
|
|
@@ -2355,14 +2355,14 @@ function ca(e, t) {
|
|
|
2355
2355
|
if ("provider" in r && r.provider !== void 0 && !Be(r.provider)) throw new Error(`Invalid tools config at "providers.${e}.provider": expected an object.`);
|
|
2356
2356
|
return r;
|
|
2357
2357
|
}
|
|
2358
|
-
function
|
|
2358
|
+
function da(e) {
|
|
2359
2359
|
if (e == null) return {};
|
|
2360
2360
|
if (!Be(e)) throw new Error('Invalid tools config at "providers": expected an object keyed by tool id.');
|
|
2361
2361
|
const t = {};
|
|
2362
|
-
for (const [r, i] of Object.entries(e)) t[r] =
|
|
2362
|
+
for (const [r, i] of Object.entries(e)) t[r] = fa(r, i);
|
|
2363
2363
|
return t;
|
|
2364
2364
|
}
|
|
2365
|
-
function
|
|
2365
|
+
function Vn(e) {
|
|
2366
2366
|
const t = e.trim();
|
|
2367
2367
|
return t || "";
|
|
2368
2368
|
}
|
|
@@ -2371,20 +2371,20 @@ function Me(e) {
|
|
|
2371
2371
|
const t = /* @__PURE__ */ new Set();
|
|
2372
2372
|
for (const r of e) {
|
|
2373
2373
|
if (typeof r != "string") throw new Error("Invalid tools config: tool list entries must be strings.");
|
|
2374
|
-
const i =
|
|
2374
|
+
const i = Vn(r);
|
|
2375
2375
|
i && t.add(i);
|
|
2376
2376
|
}
|
|
2377
2377
|
return Array.from(t);
|
|
2378
2378
|
}
|
|
2379
|
-
function
|
|
2379
|
+
function ha(e, t) {
|
|
2380
2380
|
if (e != null) {
|
|
2381
2381
|
if (e === "on" || e === "off") return e;
|
|
2382
2382
|
throw new Error(`Invalid tools config at "${t}": expected "on" or "off", got ${JSON.stringify(e)}.`);
|
|
2383
2383
|
}
|
|
2384
2384
|
}
|
|
2385
|
-
function
|
|
2385
|
+
function pa(e) {
|
|
2386
2386
|
if (e != null && !Be(e)) throw new Error('Invalid tools config: expected an object with "policy", "placement", and "providers".');
|
|
2387
|
-
const t =
|
|
2387
|
+
const t = ua(e?.policy), r = ca(e?.placement), i = da(e?.providers), n = ha(e?.pnpEnforcement, "pnpEnforcement"), o = {
|
|
2388
2388
|
policy: {
|
|
2389
2389
|
allowed: Me(Ee(t?.allowed, "policy.allowed")),
|
|
2390
2390
|
blocked: Me(Ee(t?.blocked, "policy.blocked"))
|
|
@@ -2398,7 +2398,7 @@ function da(e) {
|
|
|
2398
2398
|
};
|
|
2399
2399
|
return n && (o.pnpEnforcement = n), o;
|
|
2400
2400
|
}
|
|
2401
|
-
var
|
|
2401
|
+
var va = [
|
|
2402
2402
|
"assessment",
|
|
2403
2403
|
"section",
|
|
2404
2404
|
"item",
|
|
@@ -2409,7 +2409,7 @@ var ha = [
|
|
|
2409
2409
|
function Nt(e, t) {
|
|
2410
2410
|
if (typeof e != "string" || e.trim().length === 0) throw new Error(`Invalid tool registration: "${t}" must be a non-empty string.`);
|
|
2411
2411
|
}
|
|
2412
|
-
var
|
|
2412
|
+
var ga = [
|
|
2413
2413
|
{
|
|
2414
2414
|
pattern: /<script\b/i,
|
|
2415
2415
|
reason: "contains a <script> tag"
|
|
@@ -2427,17 +2427,17 @@ var pa = [
|
|
|
2427
2427
|
reason: "contains a <foreignObject> element"
|
|
2428
2428
|
}
|
|
2429
2429
|
];
|
|
2430
|
-
function
|
|
2430
|
+
function _a(e, t, r) {
|
|
2431
2431
|
const i = t.trimStart(), n = i.toLowerCase().startsWith("<svg"), o = /^https?:/i.test(i);
|
|
2432
2432
|
if (/^data:/i.test(i)) throw new Error(`Invalid tool registration "${e}": "${r}" may not be a data: URL.`);
|
|
2433
2433
|
if (!(!n && !o)) {
|
|
2434
|
-
for (const { pattern: s, reason: a } of
|
|
2434
|
+
for (const { pattern: s, reason: a } of ga) if (s.test(t)) throw new Error(`Invalid tool registration "${e}": "${r}" ${a}. Inline SVG icons must not include scriptable content.`);
|
|
2435
2435
|
}
|
|
2436
2436
|
}
|
|
2437
2437
|
function Oi(e) {
|
|
2438
2438
|
if (Nt(e.toolId, "toolId"), Nt(e.name, "name"), Nt(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.`);
|
|
2439
|
-
if (typeof e.icon == "string" &&
|
|
2440
|
-
const t = e.supportedLevels.find((r) => !
|
|
2439
|
+
if (typeof e.icon == "string" && _a(e.toolId, e.icon, "icon"), !Array.isArray(e.supportedLevels) || e.supportedLevels.length === 0) throw new Error(`Invalid tool registration "${e.toolId}": "supportedLevels" must be a non-empty array.`);
|
|
2440
|
+
const t = e.supportedLevels.find((r) => !va.includes(r));
|
|
2441
2441
|
if (t) throw new Error(`Invalid tool registration "${e.toolId}": unsupported level "${t}".`);
|
|
2442
2442
|
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)}".`);
|
|
2443
2443
|
if (e.singletonScope !== void 0 && e.singletonScope !== "section") throw new Error(`Invalid tool registration "${e.toolId}": unsupported singletonScope "${String(e.singletonScope)}".`);
|
|
@@ -2446,12 +2446,12 @@ function Oi(e) {
|
|
|
2446
2446
|
if (typeof e.isVisibleInContext != "function") throw new Error(`Invalid tool registration "${e.toolId}": "isVisibleInContext" must be a function.`);
|
|
2447
2447
|
if (typeof e.renderToolbar != "function") throw new Error(`Invalid tool registration "${e.toolId}": "renderToolbar" must be a function.`);
|
|
2448
2448
|
}
|
|
2449
|
-
var
|
|
2449
|
+
var ma = class {
|
|
2450
2450
|
constructor() {
|
|
2451
|
-
|
|
2451
|
+
_(this, "tools", /* @__PURE__ */ new Map()), _(this, "pnpIndex", /* @__PURE__ */ new Map()), _(this, "componentOverrides", {}), _(this, "moduleLoaders", /* @__PURE__ */ new Map()), _(this, "loadedToolModules", /* @__PURE__ */ new Set()), _(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
|
|
2452
2452
|
}
|
|
2453
2453
|
normalizeToolId(e) {
|
|
2454
|
-
return
|
|
2454
|
+
return Vn(e);
|
|
2455
2455
|
}
|
|
2456
2456
|
normalizeToolIds(e) {
|
|
2457
2457
|
return e.map((t) => this.normalizeToolId(t));
|
|
@@ -2589,20 +2589,20 @@ var _a = class {
|
|
|
2589
2589
|
return i.renderToolbar(t, n);
|
|
2590
2590
|
}
|
|
2591
2591
|
};
|
|
2592
|
-
function
|
|
2592
|
+
function Wn(e) {
|
|
2593
2593
|
return e.level === "item";
|
|
2594
2594
|
}
|
|
2595
|
-
function
|
|
2595
|
+
function ya(e) {
|
|
2596
2596
|
return e.level === "passage";
|
|
2597
2597
|
}
|
|
2598
|
-
function
|
|
2598
|
+
function ba(e) {
|
|
2599
2599
|
return e.level === "rubric";
|
|
2600
2600
|
}
|
|
2601
|
-
function
|
|
2601
|
+
function Hn(e) {
|
|
2602
2602
|
return e.level === "element";
|
|
2603
2603
|
}
|
|
2604
2604
|
function Fr(e) {
|
|
2605
|
-
if (
|
|
2605
|
+
if (Hn(e)) {
|
|
2606
2606
|
const t = e.item.config;
|
|
2607
2607
|
if (!t) return "";
|
|
2608
2608
|
const r = [], i = (a) => a.replace(/<[^>]*>/g, " ").trim(), n = t.elements?.[e.elementId];
|
|
@@ -2617,7 +2617,7 @@ function Fr(e) {
|
|
|
2617
2617
|
}
|
|
2618
2618
|
return r.filter(Boolean).join(" ").trim();
|
|
2619
2619
|
}
|
|
2620
|
-
if (
|
|
2620
|
+
if (Wn(e)) {
|
|
2621
2621
|
const t = e.item;
|
|
2622
2622
|
if (!t?.config) return "";
|
|
2623
2623
|
const r = t.config, i = [], n = (c) => c.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2636,7 +2636,7 @@ function Fr(e) {
|
|
|
2636
2636
|
}
|
|
2637
2637
|
return i.filter(Boolean).join(" ").trim();
|
|
2638
2638
|
}
|
|
2639
|
-
if (
|
|
2639
|
+
if (ya(e)) {
|
|
2640
2640
|
const t = e.passage;
|
|
2641
2641
|
if (!t?.config) return "";
|
|
2642
2642
|
const r = t.config, i = [], n = (c) => c.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2655,7 +2655,7 @@ function Fr(e) {
|
|
|
2655
2655
|
}
|
|
2656
2656
|
return i.filter(Boolean).join(" ").trim();
|
|
2657
2657
|
}
|
|
2658
|
-
if (
|
|
2658
|
+
if (ba(e)) {
|
|
2659
2659
|
const t = e.rubricBlock;
|
|
2660
2660
|
return t.passage?.config ? (t.passage.config.markup || "").replace(/<[^>]*>/g, " ").trim() : (t.content || "").replace(/<[^>]*>/g, " ").trim();
|
|
2661
2661
|
}
|
|
@@ -2672,7 +2672,7 @@ function Xt(e) {
|
|
|
2672
2672
|
/\d+\s*[+\-*/=]\s*\d+/
|
|
2673
2673
|
].some((r) => r.test(t));
|
|
2674
2674
|
}
|
|
2675
|
-
function
|
|
2675
|
+
function wa(e) {
|
|
2676
2676
|
const t = [
|
|
2677
2677
|
"pie-multiple-choice",
|
|
2678
2678
|
"pie-inline-choice",
|
|
@@ -2681,7 +2681,7 @@ function ba(e) {
|
|
|
2681
2681
|
"inline-choice",
|
|
2682
2682
|
"select-text"
|
|
2683
2683
|
];
|
|
2684
|
-
if (
|
|
2684
|
+
if (Hn(e)) {
|
|
2685
2685
|
const r = e.item.config;
|
|
2686
2686
|
if (!r?.models) return !1;
|
|
2687
2687
|
const i = (Array.isArray(r.models) ? r.models : Object.values(r.models)).find((o) => o && typeof o == "object" && o.id === e.elementId);
|
|
@@ -2689,7 +2689,7 @@ function ba(e) {
|
|
|
2689
2689
|
const n = i.element || "";
|
|
2690
2690
|
return t.includes(n);
|
|
2691
2691
|
}
|
|
2692
|
-
if (
|
|
2692
|
+
if (Wn(e)) {
|
|
2693
2693
|
const r = e.item.config?.models;
|
|
2694
2694
|
return (Array.isArray(r) ? r : r && typeof r == "object" ? Object.values(r) : []).some((i) => {
|
|
2695
2695
|
if (!i || typeof i != "object") return !1;
|
|
@@ -2702,7 +2702,7 @@ function ba(e) {
|
|
|
2702
2702
|
function Jt(e) {
|
|
2703
2703
|
return Fr(e).trim().length >= 10;
|
|
2704
2704
|
}
|
|
2705
|
-
function
|
|
2705
|
+
function Ta(e) {
|
|
2706
2706
|
const t = Fr(e);
|
|
2707
2707
|
return [
|
|
2708
2708
|
/chemistry|chemical|element|atom|molecule|compound/i,
|
|
@@ -2713,25 +2713,25 @@ function ya(e) {
|
|
|
2713
2713
|
/physics|force|energy|velocity|acceleration/i
|
|
2714
2714
|
].some((r) => r.test(t));
|
|
2715
2715
|
}
|
|
2716
|
-
var
|
|
2716
|
+
var ka = [
|
|
2717
2717
|
"assessment",
|
|
2718
2718
|
"section",
|
|
2719
2719
|
"item",
|
|
2720
2720
|
"passage",
|
|
2721
2721
|
"rubric"
|
|
2722
|
-
],
|
|
2723
|
-
function
|
|
2724
|
-
return
|
|
2722
|
+
], Sa = new Set(ka);
|
|
2723
|
+
function $a(e) {
|
|
2724
|
+
return Sa.has(e);
|
|
2725
2725
|
}
|
|
2726
2726
|
function Br(e, t, r) {
|
|
2727
2727
|
const i = e.trim(), n = r.trim();
|
|
2728
2728
|
if (!i || !n) throw new Error("Tool instance ids require non-empty tool and scope ids");
|
|
2729
|
-
if (
|
|
2729
|
+
if (!$a(t)) throw new Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
|
|
2730
2730
|
return `${i}:${t}:${n}`;
|
|
2731
2731
|
}
|
|
2732
|
-
var
|
|
2732
|
+
var Ia = class {
|
|
2733
2733
|
constructor() {
|
|
2734
|
-
|
|
2734
|
+
_(this, "providerId", "desmos-calculator"), _(this, "providerName", "Desmos Calculator"), _(this, "category", "calculator"), _(this, "version", "1.10"), _(this, "requiresAuth", !0), _(this, "desmosProvider", null), _(this, "config", null);
|
|
2735
2735
|
}
|
|
2736
2736
|
async emitTelemetry(e, t) {
|
|
2737
2737
|
try {
|
|
@@ -2806,7 +2806,7 @@ var Sa = class {
|
|
|
2806
2806
|
destroy() {
|
|
2807
2807
|
this.desmosProvider && (this.desmosProvider.destroy(), this.desmosProvider = null), this.config = null, console.log("[DesmosToolProvider] Destroyed");
|
|
2808
2808
|
}
|
|
2809
|
-
},
|
|
2809
|
+
}, Aa = (e, t) => {
|
|
2810
2810
|
const r = t?.useSentenceSegmenter !== !1;
|
|
2811
2811
|
try {
|
|
2812
2812
|
if (!r) throw new Error("Segmenter disabled by policy");
|
|
@@ -2833,14 +2833,14 @@ var Sa = class {
|
|
|
2833
2833
|
text: e,
|
|
2834
2834
|
offset: 0
|
|
2835
2835
|
}];
|
|
2836
|
-
},
|
|
2836
|
+
}, Ea = class {
|
|
2837
2837
|
constructor() {
|
|
2838
|
-
|
|
2838
|
+
_(this, "providerId", "browser"), _(this, "providerName", "Browser Speech Synthesis"), _(this, "version", "1.0.0");
|
|
2839
2839
|
}
|
|
2840
2840
|
async initialize(e) {
|
|
2841
2841
|
if (typeof window > "u") throw new Error("BrowserTTSProvider requires browser environment");
|
|
2842
2842
|
if (!("speechSynthesis" in window)) throw new Error("Browser does not support Speech Synthesis API");
|
|
2843
|
-
return new
|
|
2843
|
+
return new Ma(e);
|
|
2844
2844
|
}
|
|
2845
2845
|
supportsFeature(e) {
|
|
2846
2846
|
return !0;
|
|
@@ -2857,9 +2857,9 @@ var Sa = class {
|
|
|
2857
2857
|
}
|
|
2858
2858
|
destroy() {
|
|
2859
2859
|
}
|
|
2860
|
-
},
|
|
2860
|
+
}, Ma = class {
|
|
2861
2861
|
constructor(e) {
|
|
2862
|
-
|
|
2862
|
+
_(this, "utterance", null), _(this, "config", null), _(this, "_isPlaying", !1), _(this, "_isPaused", !1), _(this, "speakRunId", 0), _(this, "onWordBoundary", void 0), this.config = e;
|
|
2863
2863
|
}
|
|
2864
2864
|
async speak(e) {
|
|
2865
2865
|
if (!this.config) throw new Error("TTS not initialized");
|
|
@@ -2927,7 +2927,7 @@ var Sa = class {
|
|
|
2927
2927
|
}
|
|
2928
2928
|
segmentSentences(e) {
|
|
2929
2929
|
const t = this.getSegmentationPolicy();
|
|
2930
|
-
return
|
|
2930
|
+
return Aa(e, {
|
|
2931
2931
|
locale: t.locale,
|
|
2932
2932
|
useSentenceSegmenter: t.useSentenceSegmenter
|
|
2933
2933
|
});
|
|
@@ -2996,7 +2996,7 @@ var Sa = class {
|
|
|
2996
2996
|
...e.providerOptions || {}
|
|
2997
2997
|
});
|
|
2998
2998
|
}
|
|
2999
|
-
},
|
|
2999
|
+
}, Oa = class {
|
|
3000
3000
|
async emitTelemetry(e, t) {
|
|
3001
3001
|
try {
|
|
3002
3002
|
await this.config?.onTelemetry?.(e, t);
|
|
@@ -3005,7 +3005,7 @@ var Sa = class {
|
|
|
3005
3005
|
}
|
|
3006
3006
|
}
|
|
3007
3007
|
constructor(e = "browser") {
|
|
3008
|
-
|
|
3008
|
+
_(this, "providerId", "tts-service"), _(this, "providerName", "Text-to-Speech"), _(this, "category", "tts"), _(this, "version", "1.0"), _(this, "requiresAuth", void 0), _(this, "ttsProvider", null), _(this, "config", null), this.requiresAuth = e !== "browser";
|
|
3009
3009
|
}
|
|
3010
3010
|
async initialize(e) {
|
|
3011
3011
|
if (this.ttsProvider) {
|
|
@@ -3028,7 +3028,7 @@ var Sa = class {
|
|
|
3028
3028
|
}
|
|
3029
3029
|
async _initializeBrowserTTS(e) {
|
|
3030
3030
|
if (typeof window > "u" || !("speechSynthesis" in window)) throw new Error("[TTSToolProvider] Browser TTS not supported (Web Speech API not available)");
|
|
3031
|
-
this.ttsProvider = new
|
|
3031
|
+
this.ttsProvider = new Ea(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
|
|
3032
3032
|
}
|
|
3033
3033
|
async _initializeServerTTS(e) {
|
|
3034
3034
|
if (!e.apiEndpoint) throw new Error("[TTSToolProvider] apiEndpoint required for server-based TTS backends");
|
|
@@ -3086,7 +3086,7 @@ var Sa = class {
|
|
|
3086
3086
|
destroy() {
|
|
3087
3087
|
this.ttsProvider && (this.ttsProvider.destroy(), this.ttsProvider = null), this.config = null, console.log("[TTSToolProvider] Destroyed");
|
|
3088
3088
|
}
|
|
3089
|
-
},
|
|
3089
|
+
}, Pa = /* @__PURE__ */ new Set([
|
|
3090
3090
|
"annotation-xml",
|
|
3091
3091
|
"color-profile",
|
|
3092
3092
|
"font-face",
|
|
@@ -3095,16 +3095,16 @@ var Sa = class {
|
|
|
3095
3095
|
"font-face-format",
|
|
3096
3096
|
"font-face-name",
|
|
3097
3097
|
"missing-glyph"
|
|
3098
|
-
]),
|
|
3098
|
+
]), xa = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, La = (e, t = "custom element tag") => {
|
|
3099
3099
|
if (!e || typeof e != "string") throw new Error(`Invalid ${t}: expected a non-empty string`);
|
|
3100
3100
|
const r = e.trim();
|
|
3101
3101
|
if (!r) throw new Error(`Invalid ${t}: tag is empty`);
|
|
3102
3102
|
if (r !== r.toLowerCase()) throw new Error(`Invalid ${t} "${r}": custom element names must be lowercase`);
|
|
3103
3103
|
if (!r.includes("-")) throw new Error(`Invalid ${t} "${r}": custom element names must include a hyphen`);
|
|
3104
|
-
if (
|
|
3105
|
-
if (!
|
|
3104
|
+
if (Pa.has(r)) throw new Error(`Invalid ${t} "${r}": this name is reserved by the HTML spec`);
|
|
3105
|
+
if (!xa.test(r)) throw new Error(`Invalid ${t} "${r}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
|
|
3106
3106
|
return r;
|
|
3107
|
-
},
|
|
3107
|
+
}, Fn = {
|
|
3108
3108
|
calculator: "pie-tool-calculator",
|
|
3109
3109
|
textToSpeech: "pie-tool-text-to-speech",
|
|
3110
3110
|
ruler: "pie-tool-ruler",
|
|
@@ -3117,22 +3117,38 @@ var Sa = class {
|
|
|
3117
3117
|
annotationToolbar: "pie-tool-annotation-toolbar",
|
|
3118
3118
|
graph: "pie-tool-graph",
|
|
3119
3119
|
periodicTable: "pie-tool-periodic-table"
|
|
3120
|
-
},
|
|
3121
|
-
const n =
|
|
3120
|
+
}, Ca = (e, t) => La(t?.toolTagMap?.[e] ?? Fn[e] ?? e, `tool component tag for "${e}"`), Ra = (e) => document.createElement(e), pe = (e, t, r, i) => {
|
|
3121
|
+
const n = Ca(e, i), o = i?.toolComponentFactories?.[e] ?? i?.toolComponentFactory;
|
|
3122
3122
|
return o ? o({
|
|
3123
3123
|
toolId: e,
|
|
3124
3124
|
tagName: n,
|
|
3125
3125
|
context: t,
|
|
3126
3126
|
toolbarContext: r
|
|
3127
|
-
}) :
|
|
3128
|
-
}
|
|
3127
|
+
}) : Ra(n);
|
|
3128
|
+
};
|
|
3129
|
+
function Pi(e) {
|
|
3130
|
+
return e === "basic" || e === "scientific" ? e : null;
|
|
3131
|
+
}
|
|
3132
|
+
function Na(e) {
|
|
3133
|
+
const t = e.getToolRenderParams?.("calculator") ?? {}, r = Pi(t.calculatorType), i = t.availableTypes;
|
|
3134
|
+
return {
|
|
3135
|
+
calculatorType: r,
|
|
3136
|
+
availableTypes: Array.isArray(i) ? i.map((n) => Pi(n)).filter((n) => n !== null) : r ? [r] : null,
|
|
3137
|
+
displayName: r === "scientific" ? "Scientific Calculator" : r === "basic" ? "Basic Calculator" : "Calculator"
|
|
3138
|
+
};
|
|
3139
|
+
}
|
|
3140
|
+
function xi(e, t, r) {
|
|
3141
|
+
const i = e;
|
|
3142
|
+
t ? (i.calculatorType = t, e.setAttribute("calculator-type", t)) : (delete i.calculatorType, e.removeAttribute("calculator-type")), r && r.length > 0 ? i.availableTypes = r : delete i.availableTypes;
|
|
3143
|
+
}
|
|
3144
|
+
var ja = {
|
|
3129
3145
|
toolId: "calculator",
|
|
3130
3146
|
name: "Calculator",
|
|
3131
3147
|
description: "Multi-type calculator (basic, scientific, graphing)",
|
|
3132
3148
|
icon: "calculator",
|
|
3133
3149
|
provider: {
|
|
3134
3150
|
getProviderId: (e) => typeof e?.provider?.id == "string" && e.provider.id.length > 0 ? e.provider.id : "calculator-desmos",
|
|
3135
|
-
createProvider: () => new
|
|
3151
|
+
createProvider: () => new Ia(),
|
|
3136
3152
|
getInitConfig: (e) => e?.provider?.init ?? {},
|
|
3137
3153
|
getAuthFetcher: (e) => {
|
|
3138
3154
|
const t = e?.provider?.runtime?.authFetcher;
|
|
@@ -3158,23 +3174,23 @@ var Sa = class {
|
|
|
3158
3174
|
return Xt(e);
|
|
3159
3175
|
},
|
|
3160
3176
|
renderToolbar(e, t) {
|
|
3161
|
-
const r = Br(this.toolId, t.scope.level, t.scope.scopeId),
|
|
3162
|
-
|
|
3163
|
-
const
|
|
3177
|
+
const { calculatorType: r, availableTypes: i, displayName: n } = Na(t), o = Br(this.toolId, t.scope.level, t.scope.scopeId), s = t.componentOverrides, a = pe(this.toolId, e, t, s);
|
|
3178
|
+
a.setAttribute("tool-id", o), a.toolkitCoordinator = t.toolkitCoordinator, xi(a, r, i);
|
|
3179
|
+
const c = r === null ? "Open scientific calculator" : `Open ${n.toLowerCase()}`, f = r === null ? "Close scientific calculator" : `Close ${n.toLowerCase()}`, u = {
|
|
3164
3180
|
toolId: this.toolId,
|
|
3165
|
-
label:
|
|
3181
|
+
label: n,
|
|
3166
3182
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
3167
3183
|
disabled: !1,
|
|
3168
|
-
ariaLabel:
|
|
3169
|
-
tooltip:
|
|
3184
|
+
ariaLabel: c,
|
|
3185
|
+
tooltip: n,
|
|
3170
3186
|
onClick: () => t.toggleTool(this.toolId),
|
|
3171
|
-
active: t.isToolVisible(
|
|
3187
|
+
active: t.isToolVisible(o)
|
|
3172
3188
|
};
|
|
3173
|
-
let
|
|
3174
|
-
return
|
|
3189
|
+
let h = u.active;
|
|
3190
|
+
return a.visible = u.active, {
|
|
3175
3191
|
toolId: this.toolId,
|
|
3176
3192
|
elements: [{
|
|
3177
|
-
element:
|
|
3193
|
+
element: a,
|
|
3178
3194
|
mount: "after-buttons",
|
|
3179
3195
|
shell: {
|
|
3180
3196
|
title: this.name,
|
|
@@ -3187,24 +3203,24 @@ var Sa = class {
|
|
|
3187
3203
|
minHeight: 420
|
|
3188
3204
|
}
|
|
3189
3205
|
}],
|
|
3190
|
-
button:
|
|
3206
|
+
button: u,
|
|
3191
3207
|
sync: () => {
|
|
3192
|
-
const
|
|
3193
|
-
|
|
3208
|
+
const d = t.isToolVisible(o);
|
|
3209
|
+
u.active = d, u.label = n, u.ariaLabel = d ? f : c, u.tooltip = d ? `Close ${n.toLowerCase()}` : n, h !== d && (a.visible = d, h = d), a.toolkitCoordinator !== t.toolkitCoordinator && (a.toolkitCoordinator = t.toolkitCoordinator), xi(a, r, i);
|
|
3194
3210
|
},
|
|
3195
|
-
subscribeActive: (
|
|
3196
|
-
|
|
3211
|
+
subscribeActive: (d) => t.subscribeVisibility ? t.subscribeVisibility(() => {
|
|
3212
|
+
d(t.isToolVisible(o));
|
|
3197
3213
|
}) : () => {
|
|
3198
3214
|
}
|
|
3199
3215
|
};
|
|
3200
3216
|
}
|
|
3201
|
-
},
|
|
3217
|
+
}, Da = /* @__PURE__ */ new Set([
|
|
3202
3218
|
"reserved-row",
|
|
3203
3219
|
"expanding-row",
|
|
3204
3220
|
"floating-overlay",
|
|
3205
3221
|
"left-aligned"
|
|
3206
|
-
]),
|
|
3207
|
-
if (!Array.isArray(e)) return [...
|
|
3222
|
+
]), Li = (e) => e && typeof e == "object" ? e : {}, za = (e) => e === "polly" || e === "google" || e === "server", q = (e, t) => e === void 0 ? t : e, Ut = (e, t = "left-aligned") => typeof e == "string" && Da.has(e) ? e : t, Ci = Object.freeze([0.8, 1.25]), ur = (e) => {
|
|
3223
|
+
if (!Array.isArray(e)) return [...Ci];
|
|
3208
3224
|
if (e.length === 0) return [];
|
|
3209
3225
|
const t = /* @__PURE__ */ new Set();
|
|
3210
3226
|
for (const r of e) {
|
|
@@ -3212,13 +3228,13 @@ var Sa = class {
|
|
|
3212
3228
|
const i = Math.round(r * 100) / 100;
|
|
3213
3229
|
i !== 1 && t.add(i);
|
|
3214
3230
|
}
|
|
3215
|
-
return t.size ? Array.from(t) : [...
|
|
3216
|
-
},
|
|
3231
|
+
return t.size ? Array.from(t) : [...Ci];
|
|
3232
|
+
}, Va = (e) => {
|
|
3217
3233
|
const t = {
|
|
3218
3234
|
...e,
|
|
3219
3235
|
layoutMode: Ut(e.layoutMode)
|
|
3220
3236
|
}, r = e.backend || "browser";
|
|
3221
|
-
if (!
|
|
3237
|
+
if (!za(r)) return t;
|
|
3222
3238
|
const i = {
|
|
3223
3239
|
...t,
|
|
3224
3240
|
apiEndpoint: q(t.apiEndpoint, "/api/tts"),
|
|
@@ -3240,13 +3256,13 @@ var Sa = class {
|
|
|
3240
3256
|
defaultVoice: q(i.defaultVoice, "en-US-Wavenet-A")
|
|
3241
3257
|
} : i;
|
|
3242
3258
|
}, fr = (e) => {
|
|
3243
|
-
const t =
|
|
3244
|
-
return
|
|
3259
|
+
const t = Li(e), r = Li(e?.settings);
|
|
3260
|
+
return Va({
|
|
3245
3261
|
...t,
|
|
3246
3262
|
...r
|
|
3247
3263
|
});
|
|
3248
|
-
},
|
|
3249
|
-
const t =
|
|
3264
|
+
}, $r = (e) => e.backend || "browser", Bn = (e, t) => t === "polly" || t === "google" ? t : e.serverProvider || e.provider, Un = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), Wa = (e) => {
|
|
3265
|
+
const t = $r(e), r = Bn(e, t), i = Un(e, r);
|
|
3250
3266
|
return {
|
|
3251
3267
|
voice: e.defaultVoice,
|
|
3252
3268
|
rate: e.rate,
|
|
@@ -3270,8 +3286,8 @@ var Sa = class {
|
|
|
3270
3286
|
includeAuthOnAssetFetch: e.includeAuthOnAssetFetch,
|
|
3271
3287
|
validateEndpoint: e.validateEndpoint
|
|
3272
3288
|
};
|
|
3273
|
-
},
|
|
3274
|
-
switch (
|
|
3289
|
+
}, Gn = (e) => Ut(e.layoutMode), Ha = (e) => {
|
|
3290
|
+
switch (Gn(e)) {
|
|
3275
3291
|
case "reserved-row":
|
|
3276
3292
|
return {
|
|
3277
3293
|
mount: "before-buttons",
|
|
@@ -3297,21 +3313,21 @@ var Sa = class {
|
|
|
3297
3313
|
}
|
|
3298
3314
|
};
|
|
3299
3315
|
}
|
|
3300
|
-
}, dt = /* @__PURE__ */ new Map(),
|
|
3316
|
+
}, dt = /* @__PURE__ */ new Map(), Fa = "__pieToolElementUnmount", Ri = "pie-tool-active-change", Ba = {
|
|
3301
3317
|
toolId: "textToSpeech",
|
|
3302
3318
|
name: "Text to Speech",
|
|
3303
3319
|
description: "Read content aloud",
|
|
3304
3320
|
icon: "volume-up",
|
|
3305
3321
|
provider: {
|
|
3306
3322
|
getProviderId: () => "tts",
|
|
3307
|
-
createProvider: (e) => new
|
|
3323
|
+
createProvider: (e) => new Oa($r(fr(e))),
|
|
3308
3324
|
getInitConfig: (e) => {
|
|
3309
|
-
const t = fr(e), r =
|
|
3325
|
+
const t = fr(e), r = $r(t), i = Bn(t, r);
|
|
3310
3326
|
return {
|
|
3311
3327
|
backend: r,
|
|
3312
3328
|
serverProvider: i,
|
|
3313
|
-
transportMode:
|
|
3314
|
-
...
|
|
3329
|
+
transportMode: Un(t, i),
|
|
3330
|
+
...Wa(t)
|
|
3315
3331
|
};
|
|
3316
3332
|
},
|
|
3317
3333
|
getAuthFetcher: (e) => {
|
|
@@ -3337,12 +3353,12 @@ var Sa = class {
|
|
|
3337
3353
|
return Jt(e);
|
|
3338
3354
|
},
|
|
3339
3355
|
renderToolbar(e, t) {
|
|
3340
|
-
const r = () => fr(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), i = () => ur(r().speedOptions), n = () =>
|
|
3356
|
+
const r = () => fr(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), i = () => ur(r().speedOptions), n = () => Gn(r()), o = () => Ha(r()), s = Br(this.toolId, t.scope.level, t.scope.scopeId), a = () => {
|
|
3341
3357
|
const u = t.ui?.size;
|
|
3342
3358
|
return u === "sm" || u === "lg" ? u : "md";
|
|
3343
3359
|
}, c = () => {
|
|
3344
3360
|
let u = dt.get(s);
|
|
3345
|
-
return u && typeof u.isConnected == "boolean" && !u.isConnected && (dt.delete(s), u = void 0), u || (u = document.createElement("pie-tool-tts-inline"), u[
|
|
3361
|
+
return u && typeof u.isConnected == "boolean" && !u.isConnected && (dt.delete(s), u = void 0), u || (u = document.createElement("pie-tool-tts-inline"), u[Fa] = () => {
|
|
3346
3362
|
dt.get(s) === u && dt.delete(s);
|
|
3347
3363
|
}, dt.set(s, u)), u.setAttribute("tool-id", s), u.setAttribute("catalog-id", t.catalogId || t.itemId), u.setAttribute("language", t.language || "en-US"), u.setAttribute("size", a()), u.setAttribute("layout-mode", n()), u.speedOptions = i(), u;
|
|
3348
3364
|
}, f = o();
|
|
@@ -3359,11 +3375,11 @@ var Sa = class {
|
|
|
3359
3375
|
}],
|
|
3360
3376
|
subscribeActive: (u) => {
|
|
3361
3377
|
const h = c(), d = (v) => {
|
|
3362
|
-
const
|
|
3363
|
-
u(
|
|
3378
|
+
const g = v.detail;
|
|
3379
|
+
u(g?.active === !0);
|
|
3364
3380
|
};
|
|
3365
|
-
return h.addEventListener(
|
|
3366
|
-
h.removeEventListener(
|
|
3381
|
+
return h.addEventListener(Ri, d), () => {
|
|
3382
|
+
h.removeEventListener(Ri, d);
|
|
3367
3383
|
};
|
|
3368
3384
|
},
|
|
3369
3385
|
sync: () => {
|
|
@@ -3391,7 +3407,7 @@ function Se(e) {
|
|
|
3391
3407
|
function Ur(e, t) {
|
|
3392
3408
|
e.setAttribute("data-pie-tool-surface", t);
|
|
3393
3409
|
}
|
|
3394
|
-
var
|
|
3410
|
+
var Ua = {
|
|
3395
3411
|
toolId: "ruler",
|
|
3396
3412
|
name: "Ruler",
|
|
3397
3413
|
description: "On-screen ruler for measurements",
|
|
@@ -3433,7 +3449,7 @@ var Ha = {
|
|
|
3433
3449
|
subscribeActive: r.subscribeActive
|
|
3434
3450
|
};
|
|
3435
3451
|
}
|
|
3436
|
-
},
|
|
3452
|
+
}, Ga = {
|
|
3437
3453
|
toolId: "protractor",
|
|
3438
3454
|
name: "Protractor",
|
|
3439
3455
|
description: "On-screen protractor for angle measurements",
|
|
@@ -3475,7 +3491,7 @@ var Ha = {
|
|
|
3475
3491
|
subscribeActive: r.subscribeActive
|
|
3476
3492
|
};
|
|
3477
3493
|
}
|
|
3478
|
-
},
|
|
3494
|
+
}, qa = {
|
|
3479
3495
|
toolId: "answerEliminator",
|
|
3480
3496
|
name: "Answer Eliminator",
|
|
3481
3497
|
description: "Strike through answer choices",
|
|
@@ -3488,7 +3504,7 @@ var Ha = {
|
|
|
3488
3504
|
"choiceMasking"
|
|
3489
3505
|
],
|
|
3490
3506
|
isVisibleInContext(e) {
|
|
3491
|
-
return
|
|
3507
|
+
return wa(e);
|
|
3492
3508
|
},
|
|
3493
3509
|
renderToolbar(e, t) {
|
|
3494
3510
|
const r = ke(this.toolId, t), i = t.componentOverrides ?? {}, n = pe(this.toolId, e, t, i);
|
|
@@ -3522,7 +3538,7 @@ var Ha = {
|
|
|
3522
3538
|
subscribeActive: r.subscribeActive
|
|
3523
3539
|
};
|
|
3524
3540
|
}
|
|
3525
|
-
},
|
|
3541
|
+
}, Ya = {
|
|
3526
3542
|
toolId: "highlighter",
|
|
3527
3543
|
name: "Highlighter",
|
|
3528
3544
|
description: "Highlight text",
|
|
@@ -3573,7 +3589,7 @@ var Ha = {
|
|
|
3573
3589
|
subscribeActive: r.subscribeActive
|
|
3574
3590
|
};
|
|
3575
3591
|
}
|
|
3576
|
-
},
|
|
3592
|
+
}, Ka = {
|
|
3577
3593
|
toolId: "lineReader",
|
|
3578
3594
|
name: "Line Reader",
|
|
3579
3595
|
description: "Reading guide overlay",
|
|
@@ -3622,7 +3638,7 @@ var Ha = {
|
|
|
3622
3638
|
subscribeActive: r.subscribeActive
|
|
3623
3639
|
};
|
|
3624
3640
|
}
|
|
3625
|
-
},
|
|
3641
|
+
}, Xa = {
|
|
3626
3642
|
toolId: "theme",
|
|
3627
3643
|
name: "Theme",
|
|
3628
3644
|
description: "Accessible themes and contrast",
|
|
@@ -3678,7 +3694,7 @@ var Ha = {
|
|
|
3678
3694
|
subscribeActive: r.subscribeActive
|
|
3679
3695
|
};
|
|
3680
3696
|
}
|
|
3681
|
-
},
|
|
3697
|
+
}, Ja = {
|
|
3682
3698
|
toolId: "annotationToolbar",
|
|
3683
3699
|
name: "Highlighter",
|
|
3684
3700
|
description: "Highlight and annotate text",
|
|
@@ -3729,7 +3745,7 @@ var Ha = {
|
|
|
3729
3745
|
subscribeActive: r.subscribeActive
|
|
3730
3746
|
};
|
|
3731
3747
|
}
|
|
3732
|
-
},
|
|
3748
|
+
}, Qa = {
|
|
3733
3749
|
toolId: "graph",
|
|
3734
3750
|
name: "Graph",
|
|
3735
3751
|
description: "Graphing calculator and coordinate plane",
|
|
@@ -3782,7 +3798,7 @@ var Ha = {
|
|
|
3782
3798
|
subscribeActive: r.subscribeActive
|
|
3783
3799
|
};
|
|
3784
3800
|
}
|
|
3785
|
-
},
|
|
3801
|
+
}, Za = {
|
|
3786
3802
|
toolId: "periodicTable",
|
|
3787
3803
|
name: "Periodic Table",
|
|
3788
3804
|
description: "Chemistry periodic table reference",
|
|
@@ -3794,7 +3810,7 @@ var Ha = {
|
|
|
3794
3810
|
"elementReference"
|
|
3795
3811
|
],
|
|
3796
3812
|
isVisibleInContext(e) {
|
|
3797
|
-
return
|
|
3813
|
+
return Ta(e);
|
|
3798
3814
|
},
|
|
3799
3815
|
renderToolbar(e, t) {
|
|
3800
3816
|
const r = ke(this.toolId, t), i = {
|
|
@@ -3834,54 +3850,54 @@ var Ha = {
|
|
|
3834
3850
|
subscribeActive: r.subscribeActive
|
|
3835
3851
|
};
|
|
3836
3852
|
}
|
|
3837
|
-
},
|
|
3838
|
-
|
|
3839
|
-
Wa,
|
|
3840
|
-
Ha,
|
|
3841
|
-
Fa,
|
|
3853
|
+
}, el = [
|
|
3854
|
+
ja,
|
|
3842
3855
|
Ba,
|
|
3843
3856
|
Ua,
|
|
3844
3857
|
Ga,
|
|
3845
3858
|
qa,
|
|
3846
3859
|
Ya,
|
|
3847
3860
|
Ka,
|
|
3848
|
-
Xa
|
|
3861
|
+
Xa,
|
|
3862
|
+
Ja,
|
|
3863
|
+
Qa,
|
|
3864
|
+
Za
|
|
3849
3865
|
];
|
|
3850
|
-
function
|
|
3851
|
-
const t = new
|
|
3866
|
+
function tl(e = {}) {
|
|
3867
|
+
const t = new ma(), r = {
|
|
3852
3868
|
toolTagMap: {
|
|
3853
|
-
...
|
|
3869
|
+
...Fn,
|
|
3854
3870
|
...e.toolTagMap || {}
|
|
3855
3871
|
},
|
|
3856
3872
|
toolComponentFactory: e.toolComponentFactory,
|
|
3857
3873
|
toolComponentFactories: e.toolComponentFactories
|
|
3858
3874
|
}, i = (n) => e.overrides?.[n.toolId] || n;
|
|
3859
|
-
return e.includePackagedTools &&
|
|
3875
|
+
return e.includePackagedTools && rl(t, {
|
|
3860
3876
|
toolIds: e.toolIds,
|
|
3861
3877
|
applyOverrides: i
|
|
3862
3878
|
}), e.toolModuleLoaders && Object.keys(e.toolModuleLoaders).length > 0 && t.setToolModuleLoaders(e.toolModuleLoaders), t.setComponentOverrides(r), t;
|
|
3863
3879
|
}
|
|
3864
|
-
function
|
|
3880
|
+
function rl(e, t = {}) {
|
|
3865
3881
|
const r = t.toolIds && t.toolIds.length > 0 ? new Set(t.toolIds) : null, i = t.applyOverrides || ((n) => n);
|
|
3866
|
-
for (const n of
|
|
3882
|
+
for (const n of el)
|
|
3867
3883
|
r && !r.has(n.toolId) || e.register(i(n));
|
|
3868
3884
|
}
|
|
3869
|
-
function
|
|
3870
|
-
return
|
|
3885
|
+
function il(e = {}) {
|
|
3886
|
+
return tl({
|
|
3871
3887
|
...e,
|
|
3872
3888
|
includePackagedTools: !0
|
|
3873
3889
|
});
|
|
3874
3890
|
}
|
|
3875
|
-
function
|
|
3876
|
-
const e =
|
|
3891
|
+
function nl() {
|
|
3892
|
+
const e = il(), t = /* @__PURE__ */ new Set();
|
|
3877
3893
|
for (const r of e.getAllTools()) for (const i of r.pnpSupportIds || []) t.add(i);
|
|
3878
3894
|
return [...t].sort();
|
|
3879
3895
|
}
|
|
3880
|
-
var
|
|
3881
|
-
supports: [...
|
|
3896
|
+
var ol = nl(), Tl = {
|
|
3897
|
+
supports: [...ol],
|
|
3882
3898
|
prohibitedSupports: [],
|
|
3883
3899
|
activateAtInit: []
|
|
3884
|
-
},
|
|
3900
|
+
}, sl = {
|
|
3885
3901
|
visual: {
|
|
3886
3902
|
magnification: "magnification",
|
|
3887
3903
|
screenMagnifier: "screenMagnifier",
|
|
@@ -3994,15 +4010,15 @@ var rl = tl(), bl = {
|
|
|
3994
4010
|
itemGlossary: "itemGlossary",
|
|
3995
4011
|
tutorialAvailable: "tutorialAvailable"
|
|
3996
4012
|
}
|
|
3997
|
-
},
|
|
4013
|
+
}, kl = Object.values(sl).flatMap((e) => Object.values(e)), Sl = zn("ToolCoordinator"), Ir;
|
|
3998
4014
|
(function(e) {
|
|
3999
4015
|
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";
|
|
4000
|
-
})(
|
|
4001
|
-
var
|
|
4016
|
+
})(Ir || (Ir = {}));
|
|
4017
|
+
var Ni;
|
|
4002
4018
|
(function(e) {
|
|
4003
4019
|
e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
|
|
4004
|
-
})(
|
|
4005
|
-
var
|
|
4020
|
+
})(Ni || (Ni = {}));
|
|
4021
|
+
var $l = pa({
|
|
4006
4022
|
policy: {
|
|
4007
4023
|
allowed: [],
|
|
4008
4024
|
blocked: []
|
|
@@ -4013,7 +4029,7 @@ var Tl = da({
|
|
|
4013
4029
|
passage: []
|
|
4014
4030
|
},
|
|
4015
4031
|
providers: {}
|
|
4016
|
-
}),
|
|
4032
|
+
}), al = /* @__PURE__ */ Ln('<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), ll = /* @__PURE__ */ Ln('<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), cl = {
|
|
4017
4033
|
hash: "svelte-1a3d6dx",
|
|
4018
4034
|
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;}
|
|
4019
4035
|
|
|
@@ -4027,8 +4043,8 @@ var Tl = da({
|
|
|
4027
4043
|
|
|
4028
4044
|
/* 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;}`
|
|
4029
4045
|
};
|
|
4030
|
-
function
|
|
4031
|
-
|
|
4046
|
+
function ul(e, t) {
|
|
4047
|
+
Bi(t, !0), Ws(e, cl);
|
|
4032
4048
|
let r = Ai(t, "visible", 7, !1), i = Ai(t, "toolId", 7, "lineReader");
|
|
4033
4049
|
const n = typeof window < "u";
|
|
4034
4050
|
let o = /* @__PURE__ */ x(void 0), s = /* @__PURE__ */ x(null);
|
|
@@ -4046,7 +4062,7 @@ function al(e, t) {
|
|
|
4046
4062
|
width: 0,
|
|
4047
4063
|
height: 0,
|
|
4048
4064
|
mouseY: 0
|
|
4049
|
-
})),
|
|
4065
|
+
})), g = /* @__PURE__ */ x(""), m = /* @__PURE__ */ x("#ffff00"), y = /* @__PURE__ */ x(0.3), E = /* @__PURE__ */ x("highlight"), U = /* @__PURE__ */ x(!1);
|
|
4050
4066
|
const M = [
|
|
4051
4067
|
{
|
|
4052
4068
|
name: "Yellow",
|
|
@@ -4068,36 +4084,36 @@ function al(e, t) {
|
|
|
4068
4084
|
name: "Orange",
|
|
4069
4085
|
value: "#ffa500"
|
|
4070
4086
|
}
|
|
4071
|
-
], G = 10,
|
|
4087
|
+
], G = 10, $e = 10;
|
|
4072
4088
|
ht(() => {
|
|
4073
4089
|
if (p(o))
|
|
4074
|
-
return
|
|
4090
|
+
return la(p(o), (T) => {
|
|
4075
4091
|
P(s, T, !0);
|
|
4076
4092
|
});
|
|
4077
4093
|
});
|
|
4078
4094
|
function H(T) {
|
|
4079
|
-
P(
|
|
4095
|
+
P(g, T, !0), setTimeout(() => P(g, ""), 1e3);
|
|
4080
4096
|
}
|
|
4081
|
-
function
|
|
4082
|
-
const T = (M.findIndex((
|
|
4097
|
+
function qn() {
|
|
4098
|
+
const T = (M.findIndex((R) => R.value === p(m)) + 1) % M.length;
|
|
4083
4099
|
P(m, M[T].value, !0), H(`Color changed to ${M[T].name}`);
|
|
4084
4100
|
}
|
|
4085
4101
|
function Gr(T) {
|
|
4086
|
-
P(
|
|
4102
|
+
P(y, Math.max(0.1, Math.min(0.9, p(y) + T)), !0), H(`Opacity ${Math.round(p(y) * 100)}%`);
|
|
4087
4103
|
}
|
|
4088
|
-
function
|
|
4104
|
+
function Yn() {
|
|
4089
4105
|
P(E, p(E) === "highlight" ? "obscure" : "highlight", !0), H(`Mode changed to ${p(E) === "highlight" ? "highlight" : "masking"}`);
|
|
4090
4106
|
}
|
|
4091
|
-
function
|
|
4092
|
-
T.target.closest(".resize-handle") ?
|
|
4107
|
+
function Kn(T) {
|
|
4108
|
+
T.target.closest(".resize-handle") ? Jn(T) : Xn(T);
|
|
4093
4109
|
}
|
|
4094
|
-
function
|
|
4110
|
+
function Xn(T) {
|
|
4095
4111
|
p(o) && (p(o).setPointerCapture(T.pointerId), P(c, !0), P(d, {
|
|
4096
4112
|
x: T.clientX - p(u).x,
|
|
4097
4113
|
y: T.clientY - p(u).y
|
|
4098
4114
|
}, !0), p(a)?.bringToFront(p(o)), p(o).addEventListener("pointermove", Qt), p(o).addEventListener("pointerup", Zt), T.preventDefault());
|
|
4099
4115
|
}
|
|
4100
|
-
function
|
|
4116
|
+
function Jn(T) {
|
|
4101
4117
|
p(o) && (p(o).setPointerCapture(T.pointerId), P(f, !0), P(v, {
|
|
4102
4118
|
width: p(h).width,
|
|
4103
4119
|
height: p(h).height,
|
|
@@ -4110,101 +4126,101 @@ function al(e, t) {
|
|
|
4110
4126
|
y: T.clientY - p(d).y
|
|
4111
4127
|
}, !0);
|
|
4112
4128
|
else if (p(f)) {
|
|
4113
|
-
const
|
|
4114
|
-
p(h).height = Math.max(20, Math.min(400, p(v).height +
|
|
4129
|
+
const R = T.clientY - p(v).mouseY;
|
|
4130
|
+
p(h).height = Math.max(20, Math.min(400, p(v).height + R));
|
|
4115
4131
|
}
|
|
4116
4132
|
}
|
|
4117
4133
|
function Zt(T) {
|
|
4118
4134
|
p(o) && (p(o).releasePointerCapture(T.pointerId), p(o).removeEventListener("pointermove", Qt), p(o).removeEventListener("pointerup", Zt), P(c, !1), P(f, !1));
|
|
4119
4135
|
}
|
|
4120
|
-
function
|
|
4121
|
-
let
|
|
4136
|
+
function Qn(T) {
|
|
4137
|
+
let R = !1;
|
|
4122
4138
|
switch (T.key) {
|
|
4123
4139
|
case "ArrowUp":
|
|
4124
|
-
p(u).y -= G, H(`Moved up to ${Math.round(p(u).y)}`),
|
|
4140
|
+
p(u).y -= G, H(`Moved up to ${Math.round(p(u).y)}`), R = !0;
|
|
4125
4141
|
break;
|
|
4126
4142
|
case "ArrowDown":
|
|
4127
|
-
p(u).y += G, H(`Moved down to ${Math.round(p(u).y)}`),
|
|
4143
|
+
p(u).y += G, H(`Moved down to ${Math.round(p(u).y)}`), R = !0;
|
|
4128
4144
|
break;
|
|
4129
4145
|
case "ArrowLeft":
|
|
4130
|
-
p(u).x -= G, H(`Moved left to ${Math.round(p(u).x)}`),
|
|
4146
|
+
p(u).x -= G, H(`Moved left to ${Math.round(p(u).x)}`), R = !0;
|
|
4131
4147
|
break;
|
|
4132
4148
|
case "ArrowRight":
|
|
4133
|
-
p(u).x += G, H(`Moved right to ${Math.round(p(u).x)}`),
|
|
4149
|
+
p(u).x += G, H(`Moved right to ${Math.round(p(u).x)}`), R = !0;
|
|
4134
4150
|
break;
|
|
4135
4151
|
case "+":
|
|
4136
4152
|
case "=":
|
|
4137
|
-
p(h).height = Math.min(400, p(h).height +
|
|
4153
|
+
p(h).height = Math.min(400, p(h).height + $e), H(`Height ${p(h).height} pixels`), R = !0;
|
|
4138
4154
|
break;
|
|
4139
4155
|
case "-":
|
|
4140
4156
|
case "_":
|
|
4141
|
-
p(h).height = Math.max(20, p(h).height -
|
|
4157
|
+
p(h).height = Math.max(20, p(h).height - $e), H(`Height ${p(h).height} pixels`), R = !0;
|
|
4142
4158
|
break;
|
|
4143
4159
|
case "c":
|
|
4144
4160
|
case "C":
|
|
4145
|
-
|
|
4161
|
+
qn(), R = !0;
|
|
4146
4162
|
break;
|
|
4147
4163
|
case "]":
|
|
4148
|
-
Gr(0.1),
|
|
4164
|
+
Gr(0.1), R = !0;
|
|
4149
4165
|
break;
|
|
4150
4166
|
case "[":
|
|
4151
|
-
Gr(-0.1),
|
|
4167
|
+
Gr(-0.1), R = !0;
|
|
4152
4168
|
break;
|
|
4153
4169
|
case "m":
|
|
4154
4170
|
case "M":
|
|
4155
|
-
|
|
4171
|
+
Yn(), R = !0;
|
|
4156
4172
|
break;
|
|
4157
4173
|
}
|
|
4158
|
-
|
|
4174
|
+
R && T.preventDefault();
|
|
4159
4175
|
}
|
|
4160
4176
|
ht(() => {
|
|
4161
|
-
p(a) && i() && !p(U) && (p(a).registerTool(i(), "Line Reader", void 0,
|
|
4162
|
-
}),
|
|
4177
|
+
p(a) && i() && !p(U) && (p(a).registerTool(i(), "Line Reader", void 0, Ir.TOOL), P(U, !0));
|
|
4178
|
+
}), zs(() => () => {
|
|
4163
4179
|
p(a) && i() && p(a).unregisterTool(i());
|
|
4164
4180
|
}), ht(() => {
|
|
4165
4181
|
p(a) && p(o) && i() && p(a).updateToolElement(i(), p(o));
|
|
4166
4182
|
}), ht(() => {
|
|
4167
4183
|
r() && p(o) && setTimeout(() => p(o)?.focus(), 100);
|
|
4168
4184
|
});
|
|
4169
|
-
let
|
|
4170
|
-
var
|
|
4185
|
+
let Zn = /* @__PURE__ */ ui(() => p(m) + Math.round(p(y) * 255).toString(16).padStart(2, "0"));
|
|
4186
|
+
var eo = {
|
|
4171
4187
|
get visible() {
|
|
4172
4188
|
return r();
|
|
4173
4189
|
},
|
|
4174
4190
|
set visible(T = !1) {
|
|
4175
|
-
r(T),
|
|
4191
|
+
r(T), gr();
|
|
4176
4192
|
},
|
|
4177
4193
|
get toolId() {
|
|
4178
4194
|
return i();
|
|
4179
4195
|
},
|
|
4180
4196
|
set toolId(T = "lineReader") {
|
|
4181
|
-
i(T),
|
|
4197
|
+
i(T), gr();
|
|
4182
4198
|
}
|
|
4183
|
-
}, qr =
|
|
4184
|
-
var
|
|
4199
|
+
}, qr = Os(), to = rr(qr), ro = (T) => {
|
|
4200
|
+
var R = ll(), er = rr(R), io = di(er, !0);
|
|
4185
4201
|
ni(er);
|
|
4186
|
-
var Yr = ut(er, 2),
|
|
4187
|
-
var
|
|
4188
|
-
hi((
|
|
4189
|
-
qe(Xr, `height: ${
|
|
4190
|
-
}, [() => Math.max(0, p(u).y - p(h).height / 2), () => Math.max(0, p(u).x - p(h).width / 2)]),
|
|
4202
|
+
var Yr = ut(er, 2), no = (ve) => {
|
|
4203
|
+
var $t = al(), Xr = rr($t), Jr = ut(Xr, 2), Qr = ut(Jr, 2), so = ut(Qr, 2);
|
|
4204
|
+
hi((ao, lo) => {
|
|
4205
|
+
qe(Xr, `height: ${ao ?? ""}px;`), qe(Jr, `top: ${p(u).y + p(h).height / 2}px;`), qe(Qr, `top: ${p(u).y - p(h).height / 2}px; height: ${p(h).height ?? ""}px; width: ${lo ?? ""}px;`), qe(so, `top: ${p(u).y - p(h).height / 2}px; height: ${p(h).height ?? ""}px; left: ${p(u).x + p(h).width / 2}px;`);
|
|
4206
|
+
}, [() => Math.max(0, p(u).y - p(h).height / 2), () => Math.max(0, p(u).x - p(h).width / 2)]), Ct(ve, $t);
|
|
4191
4207
|
};
|
|
4192
4208
|
wi(Yr, (ve) => {
|
|
4193
|
-
p(E) === "obscure" && ve(
|
|
4209
|
+
p(E) === "obscure" && ve(no);
|
|
4194
4210
|
});
|
|
4195
|
-
var
|
|
4211
|
+
var Ie = ut(Yr, 2);
|
|
4196
4212
|
let Kr;
|
|
4197
|
-
var
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
}, [() => M.find((ve) => ve.value === p(m))?.name, () => Math.round(p(
|
|
4213
|
+
var oo = di(Ie);
|
|
4214
|
+
Vi(2), ni(Ie), Qs(Ie, (ve) => P(o, ve), () => p(o)), hi((ve, $t) => {
|
|
4215
|
+
Rs(io, p(g)), Kr = Bs(Ie, 1, "pie-tool-line-reader svelte-1a3d6dx", null, Kr, { "pie-tool-line-reader--masking-mode": p(E) === "obscure" }), qe(Ie, `left: ${p(u).x ?? ""}px; top: ${p(u).y ?? ""}px; width: ${p(h).width ?? ""}px; height: ${p(h).height ?? ""}px;`), Ys(Ie, "aria-label", `Line Reader tool. Mode: ${p(E) === "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: ${ve ?? ""}, Opacity: ${$t ?? ""}%`), qe(oo, `background-color: ${p(Zn) ?? ""};`);
|
|
4216
|
+
}, [() => M.find((ve) => ve.value === p(m))?.name, () => Math.round(p(y) * 100)]), gi("pointerdown", Ie, Kn), gi("keydown", Ie, Qn), Ct(T, R);
|
|
4201
4217
|
};
|
|
4202
|
-
return wi(
|
|
4203
|
-
r() && T(
|
|
4204
|
-
}),
|
|
4218
|
+
return wi(to, (T) => {
|
|
4219
|
+
r() && T(ro);
|
|
4220
|
+
}), Ct(e, qr), Ui(eo);
|
|
4205
4221
|
}
|
|
4206
|
-
|
|
4207
|
-
customElements.define("pie-tool-line-reader",
|
|
4222
|
+
Is(["pointerdown", "keydown"]);
|
|
4223
|
+
customElements.define("pie-tool-line-reader", ra(ul, {
|
|
4208
4224
|
visible: {
|
|
4209
4225
|
attribute: "visible",
|
|
4210
4226
|
type: "Boolean"
|
|
@@ -4215,5 +4231,5 @@ customElements.define("pie-tool-line-reader", ea(al, {
|
|
|
4215
4231
|
}
|
|
4216
4232
|
}, [], [], { mode: "open" }));
|
|
4217
4233
|
export {
|
|
4218
|
-
|
|
4234
|
+
ul as default
|
|
4219
4235
|
};
|