@pie-players/pie-tool-annotation-toolbar 0.3.26 → 0.3.28
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-annotation-toolbar.js +1052 -994
- package/package.json +3 -3
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { t as b } from "./defineProperty-CyepwRr5.js";
|
|
2
2
|
if (typeof window < "u") {
|
|
3
|
-
var
|
|
4
|
-
((
|
|
3
|
+
var yn, wn;
|
|
4
|
+
((yn = (wn = window).__svelte ?? (wn.__svelte = {})).v ?? (yn.v = /* @__PURE__ */ new Set())).add("5");
|
|
5
5
|
}
|
|
6
|
-
var dt = {}, W = Symbol(),
|
|
7
|
-
var
|
|
6
|
+
var dt = {}, W = Symbol(), ll = Symbol("filename");
|
|
7
|
+
var ti = Array.isArray, bo = Array.prototype.indexOf, ht = Array.prototype.includes, hr = Array.from, ir = Object.keys, or = Object.defineProperty, Ye = Object.getOwnPropertyDescriptor, yo = Object.getOwnPropertyDescriptors, wo = Object.prototype, To = Array.prototype, ri = Object.getPrototypeOf, Tn = Object.isExtensible, So = () => {
|
|
8
8
|
};
|
|
9
|
-
function
|
|
9
|
+
function ko(e) {
|
|
10
10
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function ni() {
|
|
13
13
|
var e, t;
|
|
14
14
|
return {
|
|
15
15
|
promise: new Promise((r, n) => {
|
|
@@ -19,81 +19,81 @@ function ei() {
|
|
|
19
19
|
reject: t
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
var
|
|
22
|
+
var cl = 1 << 24, re = 1024, me = 2048, nt = 4096, Gr = 8192, Ao = 16384, Ur = 32768, Sn = 1 << 25, Kr = 65536, ul = 1 << 17, fl = 1 << 18, mt = 1 << 19, Io = 1 << 20, Et = 1 << 25, xt = 65536, kn = 1 << 21, $o = 1 << 22, sr = 1 << 23, Ot = Symbol("$state"), ii = Symbol("legacy props"), Eo = Symbol(""), Oo = Symbol("proxy path"), Ae = new class extends Error {
|
|
23
23
|
constructor(...t) {
|
|
24
24
|
super(...t), b(this, "name", "StaleReactionError"), b(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
25
25
|
}
|
|
26
|
-
}(),
|
|
27
|
-
function
|
|
26
|
+
}(), Lo = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
27
|
+
function Ro() {
|
|
28
28
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
29
29
|
}
|
|
30
|
-
function
|
|
30
|
+
function Mo(e, t, r) {
|
|
31
31
|
throw new Error("https://svelte.dev/e/each_key_duplicate");
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Po(e) {
|
|
34
34
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function Co() {
|
|
37
37
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function xo(e) {
|
|
40
40
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function No() {
|
|
43
43
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Do() {
|
|
46
46
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Vo(e) {
|
|
49
49
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function jo() {
|
|
52
52
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function zo() {
|
|
55
55
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Wo() {
|
|
58
58
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function Bo() {
|
|
61
61
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function vr(e) {
|
|
64
64
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
65
65
|
}
|
|
66
|
-
function
|
|
66
|
+
function Ho() {
|
|
67
67
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
68
68
|
}
|
|
69
|
-
var
|
|
69
|
+
var M = !1;
|
|
70
70
|
function Ie(e) {
|
|
71
|
-
|
|
71
|
+
M = e;
|
|
72
72
|
}
|
|
73
|
-
var
|
|
73
|
+
var L;
|
|
74
74
|
function Y(e) {
|
|
75
75
|
if (e === null)
|
|
76
|
-
throw
|
|
77
|
-
return
|
|
76
|
+
throw vr(), dt;
|
|
77
|
+
return L = e;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
return Y(/* @__PURE__ */ be(
|
|
79
|
+
function pr() {
|
|
80
|
+
return Y(/* @__PURE__ */ be(L));
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
if (
|
|
84
|
-
if (/* @__PURE__ */ be(
|
|
85
|
-
throw
|
|
86
|
-
|
|
82
|
+
function Ht(e) {
|
|
83
|
+
if (M) {
|
|
84
|
+
if (/* @__PURE__ */ be(L) !== null)
|
|
85
|
+
throw vr(), dt;
|
|
86
|
+
L = e;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
if (
|
|
91
|
-
for (var t = e, r =
|
|
92
|
-
|
|
89
|
+
function Fo(e = 1) {
|
|
90
|
+
if (M) {
|
|
91
|
+
for (var t = e, r = L; t--; ) r = /* @__PURE__ */ be(r);
|
|
92
|
+
L = r;
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
function ar(e = !0) {
|
|
96
|
-
for (var t = 0, r =
|
|
96
|
+
for (var t = 0, r = L; ; ) {
|
|
97
97
|
if (r.nodeType === 8) {
|
|
98
98
|
var n = r.data;
|
|
99
99
|
if (n === "]") {
|
|
@@ -105,32 +105,32 @@ function ar(e = !0) {
|
|
|
105
105
|
e && r.remove(), r = i;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function oi(e) {
|
|
109
109
|
if (!e || e.nodeType !== 8)
|
|
110
|
-
throw
|
|
110
|
+
throw vr(), dt;
|
|
111
111
|
return e.data;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function si(e) {
|
|
114
114
|
return e === this.v;
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function qo(e, t) {
|
|
117
117
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
118
118
|
}
|
|
119
|
-
function
|
|
120
|
-
return !
|
|
119
|
+
function ai(e) {
|
|
120
|
+
return !qo(e, this.v);
|
|
121
121
|
}
|
|
122
|
-
var je = !1,
|
|
123
|
-
function
|
|
124
|
-
return e.label = t,
|
|
122
|
+
var je = !1, gr = !1;
|
|
123
|
+
function An(e, t) {
|
|
124
|
+
return e.label = t, Go(e.v, t), e;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
127
|
-
return e?.[
|
|
126
|
+
function Go(e, t) {
|
|
127
|
+
return e?.[Oo]?.(t), e;
|
|
128
128
|
}
|
|
129
129
|
var z = null;
|
|
130
130
|
function vt(e) {
|
|
131
131
|
z = e;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function li(e, t = !1, r) {
|
|
134
134
|
z = {
|
|
135
135
|
p: z,
|
|
136
136
|
i: !1,
|
|
@@ -139,42 +139,42 @@ function oi(e, t = !1, r) {
|
|
|
139
139
|
s: e,
|
|
140
140
|
x: null,
|
|
141
141
|
r: A,
|
|
142
|
-
l:
|
|
142
|
+
l: gr && !t ? {
|
|
143
143
|
s: null,
|
|
144
144
|
u: null,
|
|
145
145
|
$: []
|
|
146
146
|
} : null
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function ci(e) {
|
|
150
150
|
var t = z, r = t.e;
|
|
151
151
|
if (r !== null) {
|
|
152
152
|
t.e = null;
|
|
153
|
-
for (var n of r)
|
|
153
|
+
for (var n of r) Di(n);
|
|
154
154
|
}
|
|
155
155
|
return e !== void 0 && (t.x = e), t.i = !0, z = t.p, e ?? {};
|
|
156
156
|
}
|
|
157
157
|
function Nt() {
|
|
158
|
-
return !
|
|
158
|
+
return !gr || z !== null && z.l === null;
|
|
159
159
|
}
|
|
160
160
|
var Ge = [];
|
|
161
|
-
function
|
|
161
|
+
function ui() {
|
|
162
162
|
var e = Ge;
|
|
163
|
-
Ge = [],
|
|
163
|
+
Ge = [], ko(e);
|
|
164
164
|
}
|
|
165
165
|
function et(e) {
|
|
166
|
-
if (Ge.length === 0 && !
|
|
166
|
+
if (Ge.length === 0 && !Lt) {
|
|
167
167
|
var t = Ge;
|
|
168
168
|
queueMicrotask(() => {
|
|
169
|
-
t === Ge &&
|
|
169
|
+
t === Ge && ui();
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
172
|
Ge.push(e);
|
|
173
173
|
}
|
|
174
|
-
function
|
|
175
|
-
for (; Ge.length > 0; )
|
|
174
|
+
function Uo() {
|
|
175
|
+
for (; Ge.length > 0; ) ui();
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function fi(e) {
|
|
178
178
|
var t = A;
|
|
179
179
|
if (t === null)
|
|
180
180
|
return I.f |= sr, e;
|
|
@@ -197,53 +197,53 @@ function Ne(e, t) {
|
|
|
197
197
|
}
|
|
198
198
|
throw e;
|
|
199
199
|
}
|
|
200
|
-
var
|
|
200
|
+
var Ko = ~(me | nt | re);
|
|
201
201
|
function N(e, t) {
|
|
202
|
-
e.f = e.f &
|
|
202
|
+
e.f = e.f & Ko | t;
|
|
203
203
|
}
|
|
204
|
-
function
|
|
204
|
+
function Yr(e) {
|
|
205
205
|
e.f & 512 || e.deps === null ? N(e, re) : N(e, nt);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function di(e) {
|
|
208
208
|
if (e !== null)
|
|
209
209
|
for (const t of e)
|
|
210
|
-
!(t.f & 2) || !(t.f & 65536) || (t.f ^=
|
|
210
|
+
!(t.f & 2) || !(t.f & 65536) || (t.f ^= xt, di(t.deps));
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e),
|
|
212
|
+
function hi(e, t, r) {
|
|
213
|
+
e.f & 2048 ? t.add(e) : e.f & 4096 && r.add(e), di(e.deps), N(e, re);
|
|
214
214
|
}
|
|
215
|
-
var
|
|
216
|
-
function
|
|
217
|
-
var t =
|
|
215
|
+
var Yo = !1, Ft = !1;
|
|
216
|
+
function Xo(e) {
|
|
217
|
+
var t = Ft;
|
|
218
218
|
try {
|
|
219
|
-
return
|
|
219
|
+
return Ft = !1, [e(), Ft];
|
|
220
220
|
} finally {
|
|
221
|
-
|
|
221
|
+
Ft = t;
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function vi(e, t) {
|
|
225
225
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
226
226
|
}
|
|
227
|
-
function
|
|
228
|
-
|
|
227
|
+
function Xr(e, t) {
|
|
228
|
+
vi(e, t), t.add(e);
|
|
229
229
|
}
|
|
230
230
|
function k(e, t, r) {
|
|
231
|
-
|
|
231
|
+
vi(e, t), t.set(e, r);
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function C(e, t, r) {
|
|
234
234
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
|
|
235
235
|
throw new TypeError("Private element is not present on this object");
|
|
236
236
|
}
|
|
237
237
|
function c(e, t) {
|
|
238
|
-
return e.get(
|
|
238
|
+
return e.get(C(e, t));
|
|
239
239
|
}
|
|
240
240
|
function T(e, t, r) {
|
|
241
|
-
return e.set(
|
|
241
|
+
return e.set(C(e, t), r), r;
|
|
242
242
|
}
|
|
243
|
-
var
|
|
244
|
-
var
|
|
243
|
+
var pi, $e = /* @__PURE__ */ new Set(), R = null, In = null, K = null, Nr = null, Lt = !1, Sr = !1, pt = null, lr = null, gi = 0;
|
|
244
|
+
var Jo = 1, cr = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), le = /* @__PURE__ */ new WeakMap(), Mt = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ new WeakMap(), Gt = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakSet(), it = class _i {
|
|
245
245
|
constructor() {
|
|
246
|
-
|
|
246
|
+
Xr(this, pe), b(this, "id", Jo++), b(this, "current", /* @__PURE__ */ new Map()), b(this, "previous", /* @__PURE__ */ new Map()), k(this, cr, /* @__PURE__ */ new Set()), k(this, qt, /* @__PURE__ */ new Set()), k(this, at, 0), k(this, lt, 0), k(this, Qt, null), k(this, le, []), k(this, Mt, /* @__PURE__ */ new Set()), k(this, Xe, /* @__PURE__ */ new Set()), k(this, qe, /* @__PURE__ */ new Map()), b(this, "is_fork", !1), k(this, Gt, !1);
|
|
247
247
|
}
|
|
248
248
|
skip_effect(t) {
|
|
249
249
|
c(qe, this).has(t) || c(qe, this).set(t, {
|
|
@@ -265,17 +265,17 @@ var Uo = 1, cr = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap
|
|
|
265
265
|
r !== W && !this.previous.has(t) && this.previous.set(t, r), t.f & 8388608 || (this.current.set(t, t.v), K?.set(t, t.v));
|
|
266
266
|
}
|
|
267
267
|
activate() {
|
|
268
|
-
|
|
268
|
+
R = this;
|
|
269
269
|
}
|
|
270
270
|
deactivate() {
|
|
271
|
-
|
|
271
|
+
R = null, K = null;
|
|
272
272
|
}
|
|
273
273
|
flush() {
|
|
274
274
|
var t = null;
|
|
275
275
|
try {
|
|
276
|
-
|
|
276
|
+
Sr = !0, R = this, C(pe, this, mi).call(this);
|
|
277
277
|
} finally {
|
|
278
|
-
|
|
278
|
+
gi = 0, Nr = null, pt = null, lr = null, Sr = !1, R = null, K = null, Ve.clear();
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
discard() {
|
|
@@ -291,7 +291,7 @@ var Uo = 1, cr = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap
|
|
|
291
291
|
}));
|
|
292
292
|
}
|
|
293
293
|
transfer_effects(t, r) {
|
|
294
|
-
for (const n of t) c(
|
|
294
|
+
for (const n of t) c(Mt, this).add(n);
|
|
295
295
|
for (const n of r) c(Xe, this).add(n);
|
|
296
296
|
t.clear(), r.clear();
|
|
297
297
|
}
|
|
@@ -302,16 +302,16 @@ var Uo = 1, cr = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap
|
|
|
302
302
|
c(qt, this).add(t);
|
|
303
303
|
}
|
|
304
304
|
settled() {
|
|
305
|
-
return (c(Qt, this) ?? T(Qt, this,
|
|
305
|
+
return (c(Qt, this) ?? T(Qt, this, ni())).promise;
|
|
306
306
|
}
|
|
307
307
|
static ensure() {
|
|
308
|
-
if (
|
|
309
|
-
const t =
|
|
310
|
-
|
|
311
|
-
|
|
308
|
+
if (R === null) {
|
|
309
|
+
const t = R = new _i();
|
|
310
|
+
Sr || ($e.add(R), Lt || et(() => {
|
|
311
|
+
R === t && t.flush();
|
|
312
312
|
}));
|
|
313
313
|
}
|
|
314
|
-
return
|
|
314
|
+
return R;
|
|
315
315
|
}
|
|
316
316
|
apply() {
|
|
317
317
|
if (!je || !this.is_fork && $e.size === 1) {
|
|
@@ -324,14 +324,14 @@ var Uo = 1, cr = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap
|
|
|
324
324
|
for (const [r, n] of t.previous) K.has(r) || K.set(r, n);
|
|
325
325
|
}
|
|
326
326
|
schedule(t) {
|
|
327
|
-
if (
|
|
327
|
+
if (Nr = t, t.b?.is_pending && t.f & 16777228 && !(t.f & 32768)) {
|
|
328
328
|
t.b.defer_effect(t);
|
|
329
329
|
return;
|
|
330
330
|
}
|
|
331
331
|
for (var r = t; r.parent !== null; ) {
|
|
332
332
|
r = r.parent;
|
|
333
333
|
var n = r.f;
|
|
334
|
-
if (pt !== null && r === A && (je || (I === null || !(I.f & 2)) && !
|
|
334
|
+
if (pt !== null && r === A && (je || (I === null || !(I.f & 2)) && !Yo))
|
|
335
335
|
return;
|
|
336
336
|
if (n & 96) {
|
|
337
337
|
if (!(n & 1024)) return;
|
|
@@ -341,13 +341,13 @@ var Uo = 1, cr = /* @__PURE__ */ new WeakMap(), qt = /* @__PURE__ */ new WeakMap
|
|
|
341
341
|
c(le, this).push(r);
|
|
342
342
|
}
|
|
343
343
|
};
|
|
344
|
-
|
|
345
|
-
function
|
|
344
|
+
pi = it;
|
|
345
|
+
function $n() {
|
|
346
346
|
return this.is_fork || c(lt, this) > 0;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
349
|
-
if (
|
|
350
|
-
for (const s of c(
|
|
348
|
+
function mi() {
|
|
349
|
+
if (gi++ > 1e3 && ($e.delete(this), Zo()), !C(pe, this, $n).call(this)) {
|
|
350
|
+
for (const s of c(Mt, this))
|
|
351
351
|
c(Xe, this).delete(s), N(s, me), this.schedule(s);
|
|
352
352
|
for (const s of c(Xe, this))
|
|
353
353
|
N(s, nt), this.schedule(s);
|
|
@@ -356,30 +356,30 @@ function pi() {
|
|
|
356
356
|
T(le, this, []), this.apply();
|
|
357
357
|
var t = pt = [], r = [], n = lr = [];
|
|
358
358
|
for (const s of e) try {
|
|
359
|
-
|
|
359
|
+
C(pe, this, bi).call(this, s, t, r);
|
|
360
360
|
} catch (a) {
|
|
361
|
-
throw
|
|
361
|
+
throw Si(s), a;
|
|
362
362
|
}
|
|
363
|
-
if (
|
|
364
|
-
var i =
|
|
363
|
+
if (R = null, n.length > 0) {
|
|
364
|
+
var i = pi.ensure();
|
|
365
365
|
for (const s of n) i.schedule(s);
|
|
366
366
|
}
|
|
367
|
-
if (pt = null, lr = null,
|
|
368
|
-
|
|
369
|
-
for (const [s, a] of c(qe, this))
|
|
367
|
+
if (pt = null, lr = null, C(pe, this, $n).call(this)) {
|
|
368
|
+
C(pe, this, En).call(this, r), C(pe, this, En).call(this, t);
|
|
369
|
+
for (const [s, a] of c(qe, this)) Ti(s, a);
|
|
370
370
|
} else {
|
|
371
|
-
c(at, this) === 0 && $e.delete(this), c(
|
|
371
|
+
c(at, this) === 0 && $e.delete(this), c(Mt, this).clear(), c(Xe, this).clear();
|
|
372
372
|
for (const s of c(cr, this)) s(this);
|
|
373
|
-
c(cr, this).clear(),
|
|
373
|
+
c(cr, this).clear(), In = this, On(r), On(t), In = null, c(Qt, this)?.resolve();
|
|
374
374
|
}
|
|
375
|
-
var o =
|
|
375
|
+
var o = R;
|
|
376
376
|
if (c(le, this).length > 0) {
|
|
377
377
|
const s = o ?? (o = this);
|
|
378
378
|
c(le, s).push(...c(le, this).filter((a) => !c(le, s).includes(a)));
|
|
379
379
|
}
|
|
380
|
-
o !== null && ($e.add(o),
|
|
380
|
+
o !== null && ($e.add(o), C(pe, o, mi).call(o)), $e.has(this) || C(pe, this, Qo).call(this);
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function bi(e, t, r) {
|
|
383
383
|
e.f ^= re;
|
|
384
384
|
for (var n = e.first; n !== null; ) {
|
|
385
385
|
var i = n.f, o = (i & 96) !== 0;
|
|
@@ -401,10 +401,10 @@ function gi(e, t, r) {
|
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
function
|
|
405
|
-
for (var t = 0; t < e.length; t += 1)
|
|
404
|
+
function En(e) {
|
|
405
|
+
for (var t = 0; t < e.length; t += 1) hi(e[t], c(Mt, this), c(Xe, this));
|
|
406
406
|
}
|
|
407
|
-
function
|
|
407
|
+
function Qo() {
|
|
408
408
|
for (const a of $e) {
|
|
409
409
|
var e = a.id < this.id, t = [];
|
|
410
410
|
for (const [l, u] of this.current) {
|
|
@@ -418,10 +418,10 @@ function Ko() {
|
|
|
418
418
|
else if (t.length > 0) {
|
|
419
419
|
a.activate();
|
|
420
420
|
var n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map();
|
|
421
|
-
for (var o of t)
|
|
421
|
+
for (var o of t) yi(o, r, n, i);
|
|
422
422
|
if (c(le, a).length > 0) {
|
|
423
423
|
a.apply();
|
|
424
|
-
for (var s of c(le, a))
|
|
424
|
+
for (var s of c(le, a)) C(pe, a, bi).call(a, s, [], []);
|
|
425
425
|
T(le, a, []);
|
|
426
426
|
}
|
|
427
427
|
a.deactivate();
|
|
@@ -429,37 +429,37 @@ function Ko() {
|
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
431
|
function Zt(e) {
|
|
432
|
-
var t =
|
|
433
|
-
|
|
432
|
+
var t = Lt;
|
|
433
|
+
Lt = !0;
|
|
434
434
|
try {
|
|
435
435
|
var r;
|
|
436
|
-
for (e && (
|
|
437
|
-
if (
|
|
438
|
-
|
|
436
|
+
for (e && (R !== null && !R.is_fork && R.flush(), r = e()); ; ) {
|
|
437
|
+
if (Uo(), R === null) return r;
|
|
438
|
+
R.flush();
|
|
439
439
|
}
|
|
440
440
|
} finally {
|
|
441
|
-
|
|
441
|
+
Lt = t;
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
|
-
function
|
|
444
|
+
function Zo() {
|
|
445
445
|
if (0) {
|
|
446
446
|
var e;
|
|
447
|
-
for (const r of
|
|
447
|
+
for (const r of R.current.keys()) for (const [n, i] of r.updated ?? [])
|
|
448
448
|
var t;
|
|
449
449
|
}
|
|
450
450
|
try {
|
|
451
|
-
|
|
451
|
+
No();
|
|
452
452
|
} catch (r) {
|
|
453
|
-
Ne(r,
|
|
453
|
+
Ne(r, Nr);
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
456
|
var ge = null;
|
|
457
|
-
function
|
|
457
|
+
function On(e) {
|
|
458
458
|
var t = e.length;
|
|
459
459
|
if (t !== 0) {
|
|
460
460
|
for (var r = 0; r < t; ) {
|
|
461
461
|
var n = e[r++];
|
|
462
|
-
if (!(n.f & 24576) && Dt(n) && (ge = /* @__PURE__ */ new Set(), _t(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null &&
|
|
462
|
+
if (!(n.f & 24576) && Dt(n) && (ge = /* @__PURE__ */ new Set(), _t(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && zi(n), ge?.size > 0)) {
|
|
463
463
|
Ve.clear();
|
|
464
464
|
for (const i of ge) {
|
|
465
465
|
if (i.f & 24576) continue;
|
|
@@ -478,103 +478,103 @@ function $n(e) {
|
|
|
478
478
|
ge = null;
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function yi(e, t, r, n) {
|
|
482
482
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
483
483
|
for (const i of e.reactions) {
|
|
484
484
|
const o = i.f;
|
|
485
|
-
o & 2 ?
|
|
485
|
+
o & 2 ? yi(i, t, r, n) : o & 4194320 && !(o & 2048) && wi(i, t, n) && (N(i, me), Jr(i));
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function wi(e, t, r) {
|
|
489
489
|
const n = r.get(e);
|
|
490
490
|
if (n !== void 0) return n;
|
|
491
491
|
if (e.deps !== null) for (const i of e.deps) {
|
|
492
492
|
if (ht.call(t, i)) return !0;
|
|
493
|
-
if (i.f & 2 &&
|
|
493
|
+
if (i.f & 2 && wi(i, t, r))
|
|
494
494
|
return r.set(i, !0), !0;
|
|
495
495
|
}
|
|
496
496
|
return r.set(e, !1), !1;
|
|
497
497
|
}
|
|
498
|
-
function
|
|
499
|
-
|
|
498
|
+
function Jr(e) {
|
|
499
|
+
R.schedule(e);
|
|
500
500
|
}
|
|
501
|
-
function
|
|
501
|
+
function Ti(e, t) {
|
|
502
502
|
if (!(e.f & 32 && e.f & 1024)) {
|
|
503
503
|
e.f & 2048 ? t.d.push(e) : e.f & 4096 && t.m.push(e), N(e, re);
|
|
504
504
|
for (var r = e.first; r !== null; )
|
|
505
|
-
|
|
505
|
+
Ti(r, t), r = r.next;
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
|
-
function
|
|
508
|
+
function Si(e) {
|
|
509
509
|
N(e, re);
|
|
510
510
|
for (var t = e.first; t !== null; )
|
|
511
|
-
|
|
511
|
+
Si(t), t = t.next;
|
|
512
512
|
}
|
|
513
|
-
function
|
|
513
|
+
function es(e) {
|
|
514
514
|
let t = 0, r = tt(0), n;
|
|
515
515
|
return () => {
|
|
516
|
-
|
|
516
|
+
nn() && (_(r), on(() => (t === 0 && (n = un(() => e(() => Rt(r)))), t += 1, () => {
|
|
517
517
|
et(() => {
|
|
518
|
-
t -= 1, t === 0 && (n?.(), n = void 0,
|
|
518
|
+
t -= 1, t === 0 && (n?.(), n = void 0, Rt(r));
|
|
519
519
|
});
|
|
520
520
|
})));
|
|
521
521
|
};
|
|
522
522
|
}
|
|
523
|
-
var
|
|
524
|
-
function
|
|
525
|
-
new
|
|
523
|
+
var ts = Kr | mt;
|
|
524
|
+
function rs(e, t, r, n) {
|
|
525
|
+
new ns(e, t, r, n);
|
|
526
526
|
}
|
|
527
|
-
var ce = /* @__PURE__ */ new WeakMap(),
|
|
527
|
+
var ce = /* @__PURE__ */ new WeakMap(), kr = /* @__PURE__ */ new WeakMap(), xe = /* @__PURE__ */ new WeakMap(), Pt = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), De = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), ke = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), ct = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), Ut = /* @__PURE__ */ new WeakMap(), Dr = /* @__PURE__ */ new WeakMap(), Vr = /* @__PURE__ */ new WeakMap(), He = /* @__PURE__ */ new WeakMap(), Ln = /* @__PURE__ */ new WeakMap(), G = /* @__PURE__ */ new WeakSet(), ns = class {
|
|
528
528
|
constructor(e, t, r, n) {
|
|
529
|
-
|
|
530
|
-
T(
|
|
531
|
-
}))), T(ce, this, e), T(
|
|
529
|
+
Xr(this, G), b(this, "parent", void 0), b(this, "is_pending", !1), b(this, "transform_error", void 0), k(this, ce, void 0), k(this, kr, M ? L : null), k(this, xe, void 0), k(this, Pt, void 0), k(this, Z, void 0), k(this, De, null), k(this, ue, null), k(this, ke, null), k(this, Je, null), k(this, ct, 0), k(this, Qe, 0), k(this, Ut, !1), k(this, Dr, /* @__PURE__ */ new Set()), k(this, Vr, /* @__PURE__ */ new Set()), k(this, He, null), k(this, Ln, es(() => (T(He, this, tt(c(ct, this))), () => {
|
|
530
|
+
T(He, this, null);
|
|
531
|
+
}))), T(ce, this, e), T(xe, this, t), T(Pt, this, (i) => {
|
|
532
532
|
var o = A;
|
|
533
533
|
o.b = this, o.f |= 128, r(i);
|
|
534
|
-
}), this.parent = A.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), T(Z, this,
|
|
535
|
-
if (
|
|
536
|
-
const i = c(
|
|
537
|
-
|
|
534
|
+
}), this.parent = A.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), T(Z, this, sn(() => {
|
|
535
|
+
if (M) {
|
|
536
|
+
const i = c(kr, this);
|
|
537
|
+
pr();
|
|
538
538
|
const o = i.data === "[!";
|
|
539
539
|
if (i.data.startsWith("[?")) {
|
|
540
540
|
const s = JSON.parse(i.data.slice(2));
|
|
541
|
-
|
|
542
|
-
} else o ?
|
|
543
|
-
} else
|
|
544
|
-
},
|
|
541
|
+
C(G, this, os).call(this, s);
|
|
542
|
+
} else o ? C(G, this, ss).call(this) : C(G, this, is).call(this);
|
|
543
|
+
} else C(G, this, Rn).call(this);
|
|
544
|
+
}, ts)), M && T(ce, this, L);
|
|
545
545
|
}
|
|
546
546
|
defer_effect(e) {
|
|
547
|
-
|
|
547
|
+
hi(e, c(Dr, this), c(Vr, this));
|
|
548
548
|
}
|
|
549
549
|
is_rendered() {
|
|
550
550
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
551
551
|
}
|
|
552
552
|
has_pending_snippet() {
|
|
553
|
-
return !!c(
|
|
553
|
+
return !!c(xe, this).pending;
|
|
554
554
|
}
|
|
555
555
|
update_pending_count(e, t) {
|
|
556
|
-
|
|
557
|
-
T(Ut, this, !1), c(
|
|
556
|
+
C(G, this, ki).call(this, e, t), T(ct, this, c(ct, this) + e), !(!c(He, this) || c(Ut, this)) && (T(Ut, this, !0), et(() => {
|
|
557
|
+
T(Ut, this, !1), c(He, this) && gt(c(He, this), c(ct, this));
|
|
558
558
|
}));
|
|
559
559
|
}
|
|
560
560
|
get_effect_pending() {
|
|
561
|
-
return c(
|
|
561
|
+
return c(Ln, this).call(this), _(c(He, this));
|
|
562
562
|
}
|
|
563
563
|
error(e) {
|
|
564
|
-
var t = c(
|
|
565
|
-
let r = c(
|
|
564
|
+
var t = c(xe, this).onerror;
|
|
565
|
+
let r = c(xe, this).failed;
|
|
566
566
|
if (!t && !r) throw e;
|
|
567
|
-
c(De, this) && (
|
|
567
|
+
c(De, this) && (F(c(De, this)), T(De, this, null)), c(ue, this) && (F(c(ue, this)), T(ue, this, null)), c(ke, this) && (F(c(ke, this)), T(ke, this, null)), M && (Y(c(kr, this)), Fo(), Y(ar()));
|
|
568
568
|
var n = !1, i = !1;
|
|
569
569
|
const o = () => {
|
|
570
570
|
if (n) {
|
|
571
|
-
|
|
571
|
+
Ho();
|
|
572
572
|
return;
|
|
573
573
|
}
|
|
574
|
-
n = !0, i &&
|
|
574
|
+
n = !0, i && Bo(), c(ke, this) !== null && ot(c(ke, this), () => {
|
|
575
575
|
T(ke, this, null);
|
|
576
|
-
}),
|
|
577
|
-
|
|
576
|
+
}), C(G, this, jr).call(this, () => {
|
|
577
|
+
C(G, this, Rn).call(this);
|
|
578
578
|
});
|
|
579
579
|
}, s = (a) => {
|
|
580
580
|
try {
|
|
@@ -582,7 +582,7 @@ var ce = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Me =
|
|
|
582
582
|
} catch (l) {
|
|
583
583
|
Ne(l, c(Z, this) && c(Z, this).parent);
|
|
584
584
|
}
|
|
585
|
-
r && T(ke, this,
|
|
585
|
+
r && T(ke, this, C(G, this, jr).call(this, () => {
|
|
586
586
|
try {
|
|
587
587
|
return ne(() => {
|
|
588
588
|
var l = A;
|
|
@@ -605,83 +605,83 @@ var ce = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Me =
|
|
|
605
605
|
});
|
|
606
606
|
}
|
|
607
607
|
};
|
|
608
|
-
function
|
|
608
|
+
function is() {
|
|
609
609
|
try {
|
|
610
|
-
T(De, this, ne(() => c(
|
|
610
|
+
T(De, this, ne(() => c(Pt, this).call(this, c(ce, this))));
|
|
611
611
|
} catch (e) {
|
|
612
612
|
this.error(e);
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
|
-
function
|
|
616
|
-
const t = c(
|
|
615
|
+
function os(e) {
|
|
616
|
+
const t = c(xe, this).failed;
|
|
617
617
|
t && T(ke, this, ne(() => {
|
|
618
618
|
t(c(ce, this), () => e, () => () => {
|
|
619
619
|
});
|
|
620
620
|
}));
|
|
621
621
|
}
|
|
622
|
-
function
|
|
623
|
-
const e = c(
|
|
622
|
+
function ss() {
|
|
623
|
+
const e = c(xe, this).pending;
|
|
624
624
|
e && (this.is_pending = !0, T(ue, this, ne(() => e(c(ce, this)))), et(() => {
|
|
625
625
|
var t = T(Je, this, document.createDocumentFragment()), r = de();
|
|
626
|
-
t.append(r), T(De, this,
|
|
626
|
+
t.append(r), T(De, this, C(G, this, jr).call(this, () => ne(() => c(Pt, this).call(this, r)))), c(Qe, this) === 0 && (c(ce, this).before(t), T(Je, this, null), ot(c(ue, this), () => {
|
|
627
627
|
T(ue, this, null);
|
|
628
|
-
}),
|
|
628
|
+
}), C(G, this, Qr).call(this, R));
|
|
629
629
|
}));
|
|
630
630
|
}
|
|
631
|
-
function
|
|
631
|
+
function Rn() {
|
|
632
632
|
try {
|
|
633
633
|
if (this.is_pending = this.has_pending_snippet(), T(Qe, this, 0), T(ct, this, 0), T(De, this, ne(() => {
|
|
634
|
-
c(
|
|
634
|
+
c(Pt, this).call(this, c(ce, this));
|
|
635
635
|
})), c(Qe, this) > 0) {
|
|
636
636
|
var e = T(Je, this, document.createDocumentFragment());
|
|
637
|
-
|
|
638
|
-
const t = c(
|
|
637
|
+
cn(c(De, this), e);
|
|
638
|
+
const t = c(xe, this).pending;
|
|
639
639
|
T(ue, this, ne(() => t(c(ce, this))));
|
|
640
|
-
} else
|
|
640
|
+
} else C(G, this, Qr).call(this, R);
|
|
641
641
|
} catch (t) {
|
|
642
642
|
this.error(t);
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
|
-
function
|
|
646
|
-
this.is_pending = !1, e.transfer_effects(c(
|
|
645
|
+
function Qr(e) {
|
|
646
|
+
this.is_pending = !1, e.transfer_effects(c(Dr, this), c(Vr, this));
|
|
647
647
|
}
|
|
648
|
-
function
|
|
648
|
+
function jr(e) {
|
|
649
649
|
var t = A, r = I, n = z;
|
|
650
650
|
_e(c(Z, this)), ie(c(Z, this)), vt(c(Z, this).ctx);
|
|
651
651
|
try {
|
|
652
652
|
return it.ensure(), e();
|
|
653
653
|
} catch (i) {
|
|
654
|
-
return
|
|
654
|
+
return fi(i), null;
|
|
655
655
|
} finally {
|
|
656
656
|
_e(t), ie(r), vt(n);
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
|
-
function
|
|
659
|
+
function ki(e, t) {
|
|
660
660
|
if (!this.has_pending_snippet()) {
|
|
661
661
|
if (this.parent) {
|
|
662
662
|
var r;
|
|
663
|
-
|
|
663
|
+
C(G, r = this.parent, ki).call(r, e, t);
|
|
664
664
|
}
|
|
665
665
|
return;
|
|
666
666
|
}
|
|
667
|
-
T(Qe, this, c(Qe, this) + e), c(Qe, this) === 0 && (
|
|
667
|
+
T(Qe, this, c(Qe, this) + e), c(Qe, this) === 0 && (C(G, this, Qr).call(this, t), c(ue, this) && ot(c(ue, this), () => {
|
|
668
668
|
T(ue, this, null);
|
|
669
669
|
}), c(Je, this) && (c(ce, this).before(c(Je, this)), T(Je, this, null)));
|
|
670
670
|
}
|
|
671
|
-
function
|
|
672
|
-
const i = Nt() ?
|
|
671
|
+
function as(e, t, r, n) {
|
|
672
|
+
const i = Nt() ? _r : Zr;
|
|
673
673
|
var o = e.filter((f) => !f.settled);
|
|
674
674
|
if (r.length === 0 && o.length === 0) {
|
|
675
675
|
n(t.map(i));
|
|
676
676
|
return;
|
|
677
677
|
}
|
|
678
|
-
var s = A, a =
|
|
678
|
+
var s = A, a = ls(), l = o.length === 1 ? o[0].promise : o.length > 1 ? Promise.all(o.map((f) => f.promise)) : null;
|
|
679
679
|
function u(f) {
|
|
680
680
|
a();
|
|
681
681
|
try {
|
|
682
682
|
n(f);
|
|
683
|
-
} catch (
|
|
684
|
-
s.f & 16384 || Ne(
|
|
683
|
+
} catch (h) {
|
|
684
|
+
s.f & 16384 || Ne(h, s);
|
|
685
685
|
}
|
|
686
686
|
ur();
|
|
687
687
|
}
|
|
@@ -689,38 +689,38 @@ function ns(e, t, r, n) {
|
|
|
689
689
|
l.then(() => u(t.map(i)));
|
|
690
690
|
return;
|
|
691
691
|
}
|
|
692
|
-
var
|
|
693
|
-
function
|
|
694
|
-
Promise.all(r.map((f) => /* @__PURE__ */
|
|
692
|
+
var d = Ai();
|
|
693
|
+
function p() {
|
|
694
|
+
Promise.all(r.map((f) => /* @__PURE__ */ cs(f))).then((f) => u([...t.map(i), ...f])).catch((f) => Ne(f, s)).finally(() => d());
|
|
695
695
|
}
|
|
696
696
|
l ? l.then(() => {
|
|
697
|
-
a(),
|
|
698
|
-
}) :
|
|
697
|
+
a(), p(), ur();
|
|
698
|
+
}) : p();
|
|
699
699
|
}
|
|
700
|
-
function
|
|
701
|
-
var e = A, t = I, r = z, n =
|
|
700
|
+
function ls() {
|
|
701
|
+
var e = A, t = I, r = z, n = R;
|
|
702
702
|
if (0) var i;
|
|
703
703
|
return function(s = !0) {
|
|
704
704
|
_e(e), ie(t), vt(r), s && !(e.f & 16384) && (n?.activate(), n?.apply());
|
|
705
705
|
};
|
|
706
706
|
}
|
|
707
707
|
function ur(e = !0) {
|
|
708
|
-
_e(null), ie(null), vt(null), e &&
|
|
708
|
+
_e(null), ie(null), vt(null), e && R?.deactivate();
|
|
709
709
|
}
|
|
710
|
-
function
|
|
711
|
-
var e = A.b, t =
|
|
710
|
+
function Ai() {
|
|
711
|
+
var e = A.b, t = R, r = e.is_rendered();
|
|
712
712
|
return e.update_pending_count(1, t), t.increment(r), (n = !1) => {
|
|
713
713
|
e.update_pending_count(-1, t), t.decrement(r, n);
|
|
714
714
|
};
|
|
715
715
|
}
|
|
716
716
|
// @__NO_SIDE_EFFECTS__
|
|
717
|
-
function
|
|
717
|
+
function _r(e) {
|
|
718
718
|
var t = 2 | me, r = I !== null && I.f & 2 ? I : null;
|
|
719
719
|
return A !== null && (A.f |= mt), {
|
|
720
720
|
ctx: z,
|
|
721
721
|
deps: null,
|
|
722
722
|
effects: null,
|
|
723
|
-
equals:
|
|
723
|
+
equals: si,
|
|
724
724
|
f: t,
|
|
725
725
|
fn: e,
|
|
726
726
|
reactions: null,
|
|
@@ -732,117 +732,117 @@ function gr(e) {
|
|
|
732
732
|
};
|
|
733
733
|
}
|
|
734
734
|
// @__NO_SIDE_EFFECTS__
|
|
735
|
-
function
|
|
735
|
+
function cs(e, t, r) {
|
|
736
736
|
let n = A;
|
|
737
|
-
n === null &&
|
|
737
|
+
n === null && Ro();
|
|
738
738
|
var i = void 0, o = tt(W), s = !I, a = /* @__PURE__ */ new Map();
|
|
739
|
-
return
|
|
740
|
-
var l = A, u =
|
|
739
|
+
return Ts(() => {
|
|
740
|
+
var l = A, u = ni();
|
|
741
741
|
i = u.promise;
|
|
742
742
|
try {
|
|
743
743
|
Promise.resolve(e()).then(u.resolve, u.reject).finally(ur);
|
|
744
|
-
} catch (
|
|
745
|
-
u.reject(
|
|
744
|
+
} catch (h) {
|
|
745
|
+
u.reject(h), ur();
|
|
746
746
|
}
|
|
747
|
-
var
|
|
747
|
+
var d = R;
|
|
748
748
|
if (s) {
|
|
749
|
-
if (l.f & 32768) var
|
|
749
|
+
if (l.f & 32768) var p = Ai();
|
|
750
750
|
if (n.b.is_rendered())
|
|
751
|
-
a.get(
|
|
751
|
+
a.get(d)?.reject(Ae), a.delete(d);
|
|
752
752
|
else {
|
|
753
|
-
for (const
|
|
753
|
+
for (const h of a.values()) h.reject(Ae);
|
|
754
754
|
a.clear();
|
|
755
755
|
}
|
|
756
|
-
a.set(
|
|
756
|
+
a.set(d, u);
|
|
757
757
|
}
|
|
758
|
-
const f = (
|
|
759
|
-
if (
|
|
760
|
-
if (
|
|
758
|
+
const f = (h, g = void 0) => {
|
|
759
|
+
if (p && p(g === Ae), !(g === Ae || l.f & 16384)) {
|
|
760
|
+
if (d.activate(), g)
|
|
761
761
|
o.f |= sr, gt(o, g);
|
|
762
762
|
else {
|
|
763
|
-
o.f & 8388608 && (o.f ^= sr), gt(o,
|
|
764
|
-
for (const [w,
|
|
765
|
-
if (a.delete(w), w ===
|
|
766
|
-
|
|
763
|
+
o.f & 8388608 && (o.f ^= sr), gt(o, h);
|
|
764
|
+
for (const [w, v] of a) {
|
|
765
|
+
if (a.delete(w), w === d) break;
|
|
766
|
+
v.reject(Ae);
|
|
767
767
|
}
|
|
768
768
|
}
|
|
769
|
-
|
|
769
|
+
d.deactivate();
|
|
770
770
|
}
|
|
771
771
|
};
|
|
772
|
-
u.promise.then(f, (
|
|
773
|
-
}),
|
|
772
|
+
u.promise.then(f, (h) => f(null, h || "unknown"));
|
|
773
|
+
}), bs(() => {
|
|
774
774
|
for (const l of a.values()) l.reject(Ae);
|
|
775
775
|
}), new Promise((l) => {
|
|
776
|
-
function u(
|
|
777
|
-
function
|
|
778
|
-
|
|
776
|
+
function u(d) {
|
|
777
|
+
function p() {
|
|
778
|
+
d === i ? l(o) : u(i);
|
|
779
779
|
}
|
|
780
|
-
|
|
780
|
+
d.then(p, p);
|
|
781
781
|
}
|
|
782
782
|
u(i);
|
|
783
783
|
});
|
|
784
784
|
}
|
|
785
785
|
// @__NO_SIDE_EFFECTS__
|
|
786
|
-
function
|
|
787
|
-
const t = /* @__PURE__ */
|
|
788
|
-
return je ||
|
|
786
|
+
function Ar(e) {
|
|
787
|
+
const t = /* @__PURE__ */ _r(e);
|
|
788
|
+
return je || Hi(t), t;
|
|
789
789
|
}
|
|
790
790
|
// @__NO_SIDE_EFFECTS__
|
|
791
|
-
function
|
|
792
|
-
const t = /* @__PURE__ */
|
|
793
|
-
return t.equals =
|
|
791
|
+
function Zr(e) {
|
|
792
|
+
const t = /* @__PURE__ */ _r(e);
|
|
793
|
+
return t.equals = ai, t;
|
|
794
794
|
}
|
|
795
|
-
function
|
|
795
|
+
function us(e) {
|
|
796
796
|
var t = e.effects;
|
|
797
797
|
if (t !== null) {
|
|
798
798
|
e.effects = null;
|
|
799
|
-
for (var r = 0; r < t.length; r += 1)
|
|
799
|
+
for (var r = 0; r < t.length; r += 1) F(t[r]);
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function fs(e) {
|
|
803
803
|
for (var t = e.parent; t !== null; ) {
|
|
804
804
|
if (!(t.f & 2)) return t.f & 16384 ? null : t;
|
|
805
805
|
t = t.parent;
|
|
806
806
|
}
|
|
807
807
|
return null;
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function en(e) {
|
|
810
810
|
var t, r = A;
|
|
811
|
-
if (_e(
|
|
811
|
+
if (_e(fs(e)), 0)
|
|
812
812
|
try {
|
|
813
813
|
} finally {
|
|
814
814
|
}
|
|
815
815
|
else try {
|
|
816
|
-
e.f &= ~
|
|
816
|
+
e.f &= ~xt, us(e), t = Ui(e);
|
|
817
817
|
} finally {
|
|
818
818
|
_e(r);
|
|
819
819
|
}
|
|
820
820
|
return t;
|
|
821
821
|
}
|
|
822
|
-
function
|
|
823
|
-
var t = e.v, r =
|
|
824
|
-
if (!e.equals(r) && (e.wv =
|
|
822
|
+
function Ii(e) {
|
|
823
|
+
var t = e.v, r = en(e);
|
|
824
|
+
if (!e.equals(r) && (e.wv = qi(), (!R?.is_fork || e.deps === null) && (e.v = r, R?.capture(e, t), e.deps === null))) {
|
|
825
825
|
N(e, re);
|
|
826
826
|
return;
|
|
827
827
|
}
|
|
828
|
-
ze || (K !== null ? (
|
|
828
|
+
ze || (K !== null ? (nn() || R?.is_fork) && K.set(e, r) : Yr(e));
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function ds(e) {
|
|
831
831
|
if (e.effects !== null)
|
|
832
|
-
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(Ae), t.teardown =
|
|
832
|
+
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(Ae), t.teardown = So, t.ac = null, Ct(t, 0), an(t));
|
|
833
833
|
}
|
|
834
|
-
function
|
|
834
|
+
function $i(e) {
|
|
835
835
|
if (e.effects !== null)
|
|
836
836
|
for (const t of e.effects) t.teardown && _t(t);
|
|
837
837
|
}
|
|
838
|
-
var
|
|
839
|
-
var
|
|
838
|
+
var zr = /* @__PURE__ */ new Set(), Ve = /* @__PURE__ */ new Map();
|
|
839
|
+
var Ei = !1;
|
|
840
840
|
function tt(e, t) {
|
|
841
841
|
var r = {
|
|
842
842
|
f: 0,
|
|
843
843
|
v: e,
|
|
844
844
|
reactions: null,
|
|
845
|
-
equals:
|
|
845
|
+
equals: si,
|
|
846
846
|
rv: 0,
|
|
847
847
|
wv: 0
|
|
848
848
|
};
|
|
@@ -851,19 +851,19 @@ function tt(e, t) {
|
|
|
851
851
|
// @__NO_SIDE_EFFECTS__
|
|
852
852
|
function j(e, t) {
|
|
853
853
|
const r = tt(e, t);
|
|
854
|
-
return
|
|
854
|
+
return Hi(r), r;
|
|
855
855
|
}
|
|
856
856
|
// @__NO_SIDE_EFFECTS__
|
|
857
|
-
function
|
|
857
|
+
function Oi(e, t = !1, r = !0) {
|
|
858
858
|
const n = tt(e);
|
|
859
|
-
if (t || (n.equals =
|
|
859
|
+
if (t || (n.equals = ai), gr && r && z !== null && z.l !== null) {
|
|
860
860
|
var i;
|
|
861
861
|
((i = z.l).s ?? (i.s = [])).push(n);
|
|
862
862
|
}
|
|
863
863
|
return n;
|
|
864
864
|
}
|
|
865
865
|
function E(e, t, r = !1) {
|
|
866
|
-
I !== null && (!fe || I.f & 131072) && Nt() && I.f & 4325394 && (te === null || !ht.call(te, e)) &&
|
|
866
|
+
I !== null && (!fe || I.f & 131072) && Nt() && I.f & 4325394 && (te === null || !ht.call(te, e)) && Wo();
|
|
867
867
|
let n = r ? Ue(t) : t;
|
|
868
868
|
return gt(e, n, lr);
|
|
869
869
|
}
|
|
@@ -874,22 +874,22 @@ function gt(e, t, r = null) {
|
|
|
874
874
|
var i = it.ensure();
|
|
875
875
|
if (i.capture(e, n), e.f & 2) {
|
|
876
876
|
const o = e;
|
|
877
|
-
e.f & 2048 &&
|
|
877
|
+
e.f & 2048 && en(o), K === null && Yr(o);
|
|
878
878
|
}
|
|
879
|
-
e.wv =
|
|
879
|
+
e.wv = qi(), Li(e, me, r), Nt() && A !== null && A.f & 1024 && !(A.f & 96) && (ee === null ? Is([e]) : ee.push(e)), !i.is_fork && zr.size > 0 && !Ei && hs();
|
|
880
880
|
}
|
|
881
881
|
return t;
|
|
882
882
|
}
|
|
883
|
-
function
|
|
884
|
-
|
|
885
|
-
for (const e of
|
|
883
|
+
function hs() {
|
|
884
|
+
Ei = !1;
|
|
885
|
+
for (const e of zr)
|
|
886
886
|
e.f & 1024 && N(e, nt), Dt(e) && _t(e);
|
|
887
|
-
|
|
887
|
+
zr.clear();
|
|
888
888
|
}
|
|
889
|
-
function
|
|
889
|
+
function Rt(e) {
|
|
890
890
|
E(e, e.v + 1);
|
|
891
891
|
}
|
|
892
|
-
function
|
|
892
|
+
function Li(e, t, r) {
|
|
893
893
|
var n = e.reactions;
|
|
894
894
|
if (n !== null)
|
|
895
895
|
for (var i = Nt(), o = n.length, s = 0; s < o; s++) {
|
|
@@ -897,139 +897,139 @@ function $i(e, t, r) {
|
|
|
897
897
|
if (!(!i && a === A)) {
|
|
898
898
|
var u = (l & me) === 0;
|
|
899
899
|
if (u && N(a, t), l & 2) {
|
|
900
|
-
var
|
|
901
|
-
K?.delete(
|
|
900
|
+
var d = a;
|
|
901
|
+
K?.delete(d), l & 65536 || (l & 512 && (a.f |= xt), Li(d, nt, r));
|
|
902
902
|
} else if (u) {
|
|
903
|
-
var
|
|
904
|
-
l & 16 && ge !== null && ge.add(
|
|
903
|
+
var p = a;
|
|
904
|
+
l & 16 && ge !== null && ge.add(p), r !== null ? r.push(p) : Jr(p);
|
|
905
905
|
}
|
|
906
906
|
}
|
|
907
907
|
}
|
|
908
908
|
}
|
|
909
|
-
var
|
|
909
|
+
var vs = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
910
910
|
function Ue(e) {
|
|
911
911
|
if (typeof e != "object" || e === null || Ot in e) return e;
|
|
912
|
-
const t =
|
|
913
|
-
if (t !==
|
|
914
|
-
var r = /* @__PURE__ */ new Map(), n =
|
|
915
|
-
if (Ze === s) return
|
|
916
|
-
var f = I,
|
|
917
|
-
ie(null),
|
|
918
|
-
var g =
|
|
919
|
-
return ie(f),
|
|
912
|
+
const t = ri(e);
|
|
913
|
+
if (t !== wo && t !== To) return e;
|
|
914
|
+
var r = /* @__PURE__ */ new Map(), n = ti(e), i = /* @__PURE__ */ j(0), o = null, s = Ze, a = (p) => {
|
|
915
|
+
if (Ze === s) return p();
|
|
916
|
+
var f = I, h = Ze;
|
|
917
|
+
ie(null), xn(s);
|
|
918
|
+
var g = p();
|
|
919
|
+
return ie(f), xn(h), g;
|
|
920
920
|
};
|
|
921
921
|
n && r.set("length", /* @__PURE__ */ j(e.length, o));
|
|
922
922
|
var l = "";
|
|
923
923
|
let u = !1;
|
|
924
|
-
function p
|
|
924
|
+
function d(p) {
|
|
925
925
|
if (!u) {
|
|
926
|
-
u = !0, l =
|
|
927
|
-
for (const [f,
|
|
926
|
+
u = !0, l = p, An(i, `${l} version`);
|
|
927
|
+
for (const [f, h] of r) An(h, ps(l, f));
|
|
928
928
|
u = !1;
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
931
|
return new Proxy(e, {
|
|
932
|
-
defineProperty(
|
|
933
|
-
(!("value" in
|
|
932
|
+
defineProperty(p, f, h) {
|
|
933
|
+
(!("value" in h) || h.configurable === !1 || h.enumerable === !1 || h.writable === !1) && jo();
|
|
934
934
|
var g = r.get(f);
|
|
935
935
|
return g === void 0 ? a(() => {
|
|
936
|
-
var w = /* @__PURE__ */ j(
|
|
936
|
+
var w = /* @__PURE__ */ j(h.value, o);
|
|
937
937
|
return r.set(f, w), w;
|
|
938
|
-
}) : E(g,
|
|
938
|
+
}) : E(g, h.value, !0), !0;
|
|
939
939
|
},
|
|
940
|
-
deleteProperty(
|
|
941
|
-
var
|
|
942
|
-
if (
|
|
943
|
-
if (f in
|
|
940
|
+
deleteProperty(p, f) {
|
|
941
|
+
var h = r.get(f);
|
|
942
|
+
if (h === void 0) {
|
|
943
|
+
if (f in p) {
|
|
944
944
|
const g = a(() => /* @__PURE__ */ j(W, o));
|
|
945
|
-
r.set(f, g),
|
|
945
|
+
r.set(f, g), Rt(i);
|
|
946
946
|
}
|
|
947
947
|
} else
|
|
948
|
-
E(
|
|
948
|
+
E(h, W), Rt(i);
|
|
949
949
|
return !0;
|
|
950
950
|
},
|
|
951
|
-
get(
|
|
951
|
+
get(p, f, h) {
|
|
952
952
|
if (f === Ot) return e;
|
|
953
|
-
var g = r.get(f), w = f in
|
|
954
|
-
if (g === void 0 && (!w || Ye(
|
|
955
|
-
var y = /* @__PURE__ */ j(Ue(w ?
|
|
953
|
+
var g = r.get(f), w = f in p;
|
|
954
|
+
if (g === void 0 && (!w || Ye(p, f)?.writable) && (g = a(() => {
|
|
955
|
+
var y = /* @__PURE__ */ j(Ue(w ? p[f] : W), o);
|
|
956
956
|
return y;
|
|
957
957
|
}), r.set(f, g)), g !== void 0) {
|
|
958
|
-
var
|
|
959
|
-
return
|
|
958
|
+
var v = _(g);
|
|
959
|
+
return v === W ? void 0 : v;
|
|
960
960
|
}
|
|
961
|
-
return Reflect.get(
|
|
961
|
+
return Reflect.get(p, f, h);
|
|
962
962
|
},
|
|
963
|
-
getOwnPropertyDescriptor(
|
|
964
|
-
var
|
|
965
|
-
if (
|
|
963
|
+
getOwnPropertyDescriptor(p, f) {
|
|
964
|
+
var h = Reflect.getOwnPropertyDescriptor(p, f);
|
|
965
|
+
if (h && "value" in h) {
|
|
966
966
|
var g = r.get(f);
|
|
967
|
-
g && (
|
|
968
|
-
} else if (
|
|
969
|
-
var w = r.get(f),
|
|
970
|
-
if (w !== void 0 &&
|
|
967
|
+
g && (h.value = _(g));
|
|
968
|
+
} else if (h === void 0) {
|
|
969
|
+
var w = r.get(f), v = w?.v;
|
|
970
|
+
if (w !== void 0 && v !== W) return {
|
|
971
971
|
enumerable: !0,
|
|
972
972
|
configurable: !0,
|
|
973
|
-
value:
|
|
973
|
+
value: v,
|
|
974
974
|
writable: !0
|
|
975
975
|
};
|
|
976
976
|
}
|
|
977
|
-
return
|
|
977
|
+
return h;
|
|
978
978
|
},
|
|
979
|
-
has(
|
|
979
|
+
has(p, f) {
|
|
980
980
|
if (f === Ot) return !0;
|
|
981
|
-
var
|
|
982
|
-
return (
|
|
983
|
-
var w = /* @__PURE__ */ j(g ? Ue(
|
|
981
|
+
var h = r.get(f), g = h !== void 0 && h.v !== W || Reflect.has(p, f);
|
|
982
|
+
return (h !== void 0 || A !== null && (!g || Ye(p, f)?.writable)) && (h === void 0 && (h = a(() => {
|
|
983
|
+
var w = /* @__PURE__ */ j(g ? Ue(p[f]) : W, o);
|
|
984
984
|
return w;
|
|
985
|
-
}), r.set(f,
|
|
985
|
+
}), r.set(f, h)), _(h) === W) ? !1 : g;
|
|
986
986
|
},
|
|
987
|
-
set(
|
|
988
|
-
var w = r.get(f),
|
|
989
|
-
if (n && f === "length") for (var y =
|
|
990
|
-
var
|
|
991
|
-
|
|
987
|
+
set(p, f, h, g) {
|
|
988
|
+
var w = r.get(f), v = f in p;
|
|
989
|
+
if (n && f === "length") for (var y = h; y < w.v; y += 1) {
|
|
990
|
+
var x = r.get(y + "");
|
|
991
|
+
x !== void 0 ? E(x, W) : y in p && (x = a(() => /* @__PURE__ */ j(W, o)), r.set(y + "", x));
|
|
992
992
|
}
|
|
993
993
|
if (w === void 0)
|
|
994
|
-
(!
|
|
994
|
+
(!v || Ye(p, f)?.writable) && (w = a(() => /* @__PURE__ */ j(void 0, o)), E(w, Ue(h)), r.set(f, w));
|
|
995
995
|
else {
|
|
996
|
-
|
|
997
|
-
var $ = a(() => Ue(
|
|
996
|
+
v = w.v !== W;
|
|
997
|
+
var $ = a(() => Ue(h));
|
|
998
998
|
E(w, $);
|
|
999
999
|
}
|
|
1000
|
-
var
|
|
1001
|
-
if (
|
|
1000
|
+
var P = Reflect.getOwnPropertyDescriptor(p, f);
|
|
1001
|
+
if (P?.set && P.set.call(g, h), !v) {
|
|
1002
1002
|
if (n && typeof f == "string") {
|
|
1003
1003
|
var B = r.get("length"), D = Number(f);
|
|
1004
1004
|
Number.isInteger(D) && D >= B.v && E(B, D + 1);
|
|
1005
1005
|
}
|
|
1006
|
-
|
|
1006
|
+
Rt(i);
|
|
1007
1007
|
}
|
|
1008
1008
|
return !0;
|
|
1009
1009
|
},
|
|
1010
|
-
ownKeys(
|
|
1010
|
+
ownKeys(p) {
|
|
1011
1011
|
_(i);
|
|
1012
|
-
var f = Reflect.ownKeys(
|
|
1013
|
-
var
|
|
1014
|
-
return
|
|
1012
|
+
var f = Reflect.ownKeys(p).filter((w) => {
|
|
1013
|
+
var v = r.get(w);
|
|
1014
|
+
return v === void 0 || v.v !== W;
|
|
1015
1015
|
});
|
|
1016
|
-
for (var [
|
|
1016
|
+
for (var [h, g] of r) g.v !== W && !(h in p) && f.push(h);
|
|
1017
1017
|
return f;
|
|
1018
1018
|
},
|
|
1019
1019
|
setPrototypeOf() {
|
|
1020
|
-
|
|
1020
|
+
zo();
|
|
1021
1021
|
}
|
|
1022
1022
|
});
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1025
|
-
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` :
|
|
1024
|
+
function ps(e, t) {
|
|
1025
|
+
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : vs.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
1026
1026
|
}
|
|
1027
|
-
var
|
|
1028
|
-
function
|
|
1029
|
-
if (
|
|
1030
|
-
|
|
1027
|
+
var Mn, gs, Ri, Mi, Pi;
|
|
1028
|
+
function Wr() {
|
|
1029
|
+
if (Mn === void 0) {
|
|
1030
|
+
Mn = window, gs = document, Ri = /Firefox/.test(navigator.userAgent);
|
|
1031
1031
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1032
|
-
|
|
1032
|
+
Mi = Ye(t, "firstChild").get, Pi = Ye(t, "nextSibling").get, Tn(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), Tn(r) && (r.__t = void 0);
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
1035
|
function de(e = "") {
|
|
@@ -1037,67 +1037,67 @@ function de(e = "") {
|
|
|
1037
1037
|
}
|
|
1038
1038
|
// @__NO_SIDE_EFFECTS__
|
|
1039
1039
|
function rt(e) {
|
|
1040
|
-
return
|
|
1040
|
+
return Mi.call(e);
|
|
1041
1041
|
}
|
|
1042
1042
|
// @__NO_SIDE_EFFECTS__
|
|
1043
1043
|
function be(e) {
|
|
1044
|
-
return
|
|
1044
|
+
return Pi.call(e);
|
|
1045
1045
|
}
|
|
1046
1046
|
function Kt(e, t) {
|
|
1047
|
-
if (!
|
|
1048
|
-
var r = /* @__PURE__ */ rt(
|
|
1049
|
-
if (r === null) r =
|
|
1047
|
+
if (!M) return /* @__PURE__ */ rt(e);
|
|
1048
|
+
var r = /* @__PURE__ */ rt(L);
|
|
1049
|
+
if (r === null) r = L.appendChild(de());
|
|
1050
1050
|
else if (t && r.nodeType !== 3) {
|
|
1051
1051
|
var n = de();
|
|
1052
1052
|
return r?.before(n), Y(n), n;
|
|
1053
1053
|
}
|
|
1054
|
-
return t &&
|
|
1054
|
+
return t && rn(r), Y(r), r;
|
|
1055
1055
|
}
|
|
1056
|
-
function
|
|
1057
|
-
if (!
|
|
1056
|
+
function Ir(e, t = !1) {
|
|
1057
|
+
if (!M) {
|
|
1058
1058
|
var r = /* @__PURE__ */ rt(e);
|
|
1059
1059
|
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ be(r) : r;
|
|
1060
1060
|
}
|
|
1061
1061
|
if (t) {
|
|
1062
|
-
if (
|
|
1062
|
+
if (L?.nodeType !== 3) {
|
|
1063
1063
|
var n = de();
|
|
1064
|
-
return
|
|
1064
|
+
return L?.before(n), Y(n), n;
|
|
1065
1065
|
}
|
|
1066
|
-
|
|
1066
|
+
rn(L);
|
|
1067
1067
|
}
|
|
1068
|
-
return
|
|
1068
|
+
return L;
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1071
|
-
let n =
|
|
1070
|
+
function Le(e, t = 1, r = !1) {
|
|
1071
|
+
let n = M ? L : e;
|
|
1072
1072
|
for (var i; t--; )
|
|
1073
1073
|
i = n, n = /* @__PURE__ */ be(n);
|
|
1074
|
-
if (!
|
|
1074
|
+
if (!M) return n;
|
|
1075
1075
|
if (r) {
|
|
1076
1076
|
if (n?.nodeType !== 3) {
|
|
1077
1077
|
var o = de();
|
|
1078
1078
|
return n === null ? i?.after(o) : n.before(o), Y(o), o;
|
|
1079
1079
|
}
|
|
1080
|
-
|
|
1080
|
+
rn(n);
|
|
1081
1081
|
}
|
|
1082
1082
|
return Y(n), n;
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function Ci(e) {
|
|
1085
1085
|
e.textContent = "";
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1088
|
-
return !je || ge !== null ? !1 : (A.f &
|
|
1087
|
+
function xi() {
|
|
1088
|
+
return !je || ge !== null ? !1 : (A.f & Ur) !== 0;
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1090
|
+
function tn(e, t, r) {
|
|
1091
1091
|
let n = r ? { is: r } : void 0;
|
|
1092
1092
|
return document.createElementNS(t ?? "http://www.w3.org/1999/xhtml", e, n);
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function rn(e) {
|
|
1095
1095
|
if (e.nodeValue.length < 65536) return;
|
|
1096
1096
|
let t = e.nextSibling;
|
|
1097
1097
|
for (; t !== null && t.nodeType === 3; )
|
|
1098
1098
|
t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1100
|
+
function Ni(e) {
|
|
1101
1101
|
var t = I, r = A;
|
|
1102
1102
|
ie(null), _e(null);
|
|
1103
1103
|
try {
|
|
@@ -1106,16 +1106,16 @@ function Ci(e) {
|
|
|
1106
1106
|
ie(t), _e(r);
|
|
1107
1107
|
}
|
|
1108
1108
|
}
|
|
1109
|
-
function
|
|
1110
|
-
A === null && (I === null &&
|
|
1109
|
+
function _s(e) {
|
|
1110
|
+
A === null && (I === null && xo(e), Co()), ze && Po(e);
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1112
|
+
function ms(e, t) {
|
|
1113
1113
|
var r = t.last;
|
|
1114
1114
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1115
1115
|
}
|
|
1116
1116
|
function ye(e, t) {
|
|
1117
1117
|
var r = A;
|
|
1118
|
-
r !== null && r.f & 8192 && (e |=
|
|
1118
|
+
r !== null && r.f & 8192 && (e |= Gr);
|
|
1119
1119
|
var n = {
|
|
1120
1120
|
ctx: z,
|
|
1121
1121
|
deps: null,
|
|
@@ -1137,166 +1137,166 @@ function ye(e, t) {
|
|
|
1137
1137
|
try {
|
|
1138
1138
|
_t(n);
|
|
1139
1139
|
} catch (s) {
|
|
1140
|
-
throw
|
|
1140
|
+
throw F(n), s;
|
|
1141
1141
|
}
|
|
1142
|
-
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |=
|
|
1142
|
+
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, e & 16 && e & 65536 && i !== null && (i.f |= Kr));
|
|
1143
1143
|
}
|
|
1144
|
-
if (i !== null && (i.parent = r, r !== null &&
|
|
1144
|
+
if (i !== null && (i.parent = r, r !== null && ms(i, r), I !== null && I.f & 2 && !(e & 64))) {
|
|
1145
1145
|
var o = I;
|
|
1146
1146
|
(o.effects ?? (o.effects = [])).push(i);
|
|
1147
1147
|
}
|
|
1148
1148
|
return n;
|
|
1149
1149
|
}
|
|
1150
|
-
function
|
|
1150
|
+
function nn() {
|
|
1151
1151
|
return I !== null && !fe;
|
|
1152
1152
|
}
|
|
1153
|
-
function
|
|
1153
|
+
function bs(e) {
|
|
1154
1154
|
const t = ye(8, null);
|
|
1155
1155
|
return N(t, re), t.teardown = e, t;
|
|
1156
1156
|
}
|
|
1157
|
-
function
|
|
1158
|
-
|
|
1157
|
+
function Pn(e) {
|
|
1158
|
+
_s("$effect");
|
|
1159
1159
|
var t = A.f;
|
|
1160
1160
|
if (!I && t & 32 && !(t & 32768)) {
|
|
1161
1161
|
var r = z;
|
|
1162
1162
|
(r.e ?? (r.e = [])).push(e);
|
|
1163
|
-
} else return
|
|
1163
|
+
} else return Di(e);
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1166
|
-
return ye(4 |
|
|
1165
|
+
function Di(e) {
|
|
1166
|
+
return ye(4 | Io, e);
|
|
1167
1167
|
}
|
|
1168
|
-
function
|
|
1168
|
+
function ys(e) {
|
|
1169
1169
|
it.ensure();
|
|
1170
1170
|
const t = ye(64 | mt, e);
|
|
1171
1171
|
return () => {
|
|
1172
|
-
|
|
1172
|
+
F(t);
|
|
1173
1173
|
};
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function ws(e) {
|
|
1176
1176
|
it.ensure();
|
|
1177
1177
|
const t = ye(64 | mt, e);
|
|
1178
1178
|
return (r = {}) => new Promise((n) => {
|
|
1179
1179
|
r.outro ? ot(t, () => {
|
|
1180
|
-
|
|
1181
|
-
}) : (
|
|
1180
|
+
F(t), n(void 0);
|
|
1181
|
+
}) : (F(t), n(void 0));
|
|
1182
1182
|
});
|
|
1183
1183
|
}
|
|
1184
|
-
function
|
|
1184
|
+
function Vi(e) {
|
|
1185
1185
|
return ye(4, e);
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1188
|
-
return ye(
|
|
1187
|
+
function Ts(e) {
|
|
1188
|
+
return ye($o | mt, e);
|
|
1189
1189
|
}
|
|
1190
|
-
function
|
|
1190
|
+
function on(e, t = 0) {
|
|
1191
1191
|
return ye(8 | t, e);
|
|
1192
1192
|
}
|
|
1193
1193
|
function Yt(e, t = [], r = [], n = []) {
|
|
1194
|
-
|
|
1194
|
+
as(n, t, r, (i) => {
|
|
1195
1195
|
ye(8, () => e(...i.map(_)));
|
|
1196
1196
|
});
|
|
1197
1197
|
}
|
|
1198
|
-
function
|
|
1198
|
+
function sn(e, t = 0) {
|
|
1199
1199
|
var r = ye(16 | t, e);
|
|
1200
1200
|
return r;
|
|
1201
1201
|
}
|
|
1202
1202
|
function ne(e) {
|
|
1203
1203
|
return ye(32 | mt, e);
|
|
1204
1204
|
}
|
|
1205
|
-
function
|
|
1205
|
+
function ji(e) {
|
|
1206
1206
|
var t = e.teardown;
|
|
1207
1207
|
if (t !== null) {
|
|
1208
1208
|
const r = ze, n = I;
|
|
1209
|
-
|
|
1209
|
+
Cn(!0), ie(null);
|
|
1210
1210
|
try {
|
|
1211
1211
|
t.call(null);
|
|
1212
1212
|
} finally {
|
|
1213
|
-
|
|
1213
|
+
Cn(r), ie(n);
|
|
1214
1214
|
}
|
|
1215
1215
|
}
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1217
|
+
function an(e, t = !1) {
|
|
1218
1218
|
var r = e.first;
|
|
1219
1219
|
for (e.first = e.last = null; r !== null; ) {
|
|
1220
1220
|
const i = r.ac;
|
|
1221
|
-
i !== null &&
|
|
1221
|
+
i !== null && Ni(() => {
|
|
1222
1222
|
i.abort(Ae);
|
|
1223
1223
|
});
|
|
1224
1224
|
var n = r.next;
|
|
1225
|
-
r.f & 64 ? r.parent = null :
|
|
1225
|
+
r.f & 64 ? r.parent = null : F(r, t), r = n;
|
|
1226
1226
|
}
|
|
1227
1227
|
}
|
|
1228
|
-
function
|
|
1228
|
+
function Ss(e) {
|
|
1229
1229
|
for (var t = e.first; t !== null; ) {
|
|
1230
1230
|
var r = t.next;
|
|
1231
|
-
t.f & 32 ||
|
|
1231
|
+
t.f & 32 || F(t), t = r;
|
|
1232
1232
|
}
|
|
1233
1233
|
}
|
|
1234
|
-
function
|
|
1234
|
+
function F(e, t = !0) {
|
|
1235
1235
|
var r = !1;
|
|
1236
|
-
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (
|
|
1236
|
+
(t || e.f & 262144) && e.nodes !== null && e.nodes.end !== null && (ks(e.nodes.start, e.nodes.end), r = !0), N(e, Sn), an(e, t && !r), Ct(e, 0);
|
|
1237
1237
|
var n = e.nodes && e.nodes.t;
|
|
1238
1238
|
if (n !== null) for (const o of n) o.stop();
|
|
1239
|
-
|
|
1239
|
+
ji(e), e.f ^= Sn, e.f |= Ao;
|
|
1240
1240
|
var i = e.parent;
|
|
1241
|
-
i !== null && i.first !== null &&
|
|
1241
|
+
i !== null && i.first !== null && zi(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = null;
|
|
1242
1242
|
}
|
|
1243
|
-
function
|
|
1243
|
+
function ks(e, t) {
|
|
1244
1244
|
for (; e !== null; ) {
|
|
1245
1245
|
var r = e === t ? null : /* @__PURE__ */ be(e);
|
|
1246
1246
|
e.remove(), e = r;
|
|
1247
1247
|
}
|
|
1248
1248
|
}
|
|
1249
|
-
function
|
|
1249
|
+
function zi(e) {
|
|
1250
1250
|
var t = e.parent, r = e.prev, n = e.next;
|
|
1251
1251
|
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1252
1252
|
}
|
|
1253
1253
|
function ot(e, t, r = !0) {
|
|
1254
1254
|
var n = [];
|
|
1255
|
-
|
|
1255
|
+
Wi(e, n, !0);
|
|
1256
1256
|
var i = () => {
|
|
1257
|
-
r &&
|
|
1257
|
+
r && F(e), t && t();
|
|
1258
1258
|
}, o = n.length;
|
|
1259
1259
|
if (o > 0) {
|
|
1260
1260
|
var s = () => --o || i();
|
|
1261
1261
|
for (var a of n) a.out(s);
|
|
1262
1262
|
} else i();
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1264
|
+
function Wi(e, t, r) {
|
|
1265
1265
|
if (!(e.f & 8192)) {
|
|
1266
|
-
e.f ^=
|
|
1266
|
+
e.f ^= Gr;
|
|
1267
1267
|
var n = e.nodes && e.nodes.t;
|
|
1268
1268
|
if (n !== null)
|
|
1269
1269
|
for (const a of n) (a.is_global || r) && t.push(a);
|
|
1270
1270
|
for (var i = e.first; i !== null; ) {
|
|
1271
1271
|
var o = i.next, s = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1272
|
-
|
|
1272
|
+
Wi(i, t, s ? r : !1), i = o;
|
|
1273
1273
|
}
|
|
1274
1274
|
}
|
|
1275
1275
|
}
|
|
1276
|
-
function
|
|
1277
|
-
|
|
1276
|
+
function ln(e) {
|
|
1277
|
+
Bi(e, !0);
|
|
1278
1278
|
}
|
|
1279
|
-
function
|
|
1279
|
+
function Bi(e, t) {
|
|
1280
1280
|
if (e.f & 8192) {
|
|
1281
|
-
e.f ^=
|
|
1281
|
+
e.f ^= Gr, e.f & 1024 || (N(e, me), it.ensure().schedule(e));
|
|
1282
1282
|
for (var r = e.first; r !== null; ) {
|
|
1283
1283
|
var n = r.next, i = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
|
|
1284
|
-
|
|
1284
|
+
Bi(r, i ? t : !1), r = n;
|
|
1285
1285
|
}
|
|
1286
1286
|
var o = e.nodes && e.nodes.t;
|
|
1287
1287
|
if (o !== null)
|
|
1288
1288
|
for (const s of o) (s.is_global || t) && s.in();
|
|
1289
1289
|
}
|
|
1290
1290
|
}
|
|
1291
|
-
function
|
|
1291
|
+
function cn(e, t) {
|
|
1292
1292
|
if (e.nodes)
|
|
1293
1293
|
for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
|
|
1294
1294
|
var i = r === n ? null : /* @__PURE__ */ be(r);
|
|
1295
1295
|
t.append(r), r = i;
|
|
1296
1296
|
}
|
|
1297
1297
|
}
|
|
1298
|
-
var
|
|
1299
|
-
function
|
|
1298
|
+
var As = null, er = !1, ze = !1;
|
|
1299
|
+
function Cn(e) {
|
|
1300
1300
|
ze = e;
|
|
1301
1301
|
}
|
|
1302
1302
|
var I = null, fe = !1;
|
|
@@ -1308,77 +1308,77 @@ function _e(e) {
|
|
|
1308
1308
|
A = e;
|
|
1309
1309
|
}
|
|
1310
1310
|
var te = null;
|
|
1311
|
-
function
|
|
1311
|
+
function Hi(e) {
|
|
1312
1312
|
I !== null && (!je || I.f & 2) && (te === null ? te = [e] : te.push(e));
|
|
1313
1313
|
}
|
|
1314
1314
|
var U = null, J = 0, ee = null;
|
|
1315
|
-
function
|
|
1315
|
+
function Is(e) {
|
|
1316
1316
|
ee = e;
|
|
1317
1317
|
}
|
|
1318
|
-
var
|
|
1319
|
-
function
|
|
1318
|
+
var Fi = 1, Ke = 0, Ze = Ke;
|
|
1319
|
+
function xn(e) {
|
|
1320
1320
|
Ze = e;
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1323
|
-
return ++
|
|
1322
|
+
function qi() {
|
|
1323
|
+
return ++Fi;
|
|
1324
1324
|
}
|
|
1325
1325
|
function Dt(e) {
|
|
1326
1326
|
var t = e.f;
|
|
1327
1327
|
if (t & 2048) return !0;
|
|
1328
|
-
if (t & 2 && (e.f &= ~
|
|
1328
|
+
if (t & 2 && (e.f &= ~xt), t & 4096) {
|
|
1329
1329
|
for (var r = e.deps, n = r.length, i = 0; i < n; i++) {
|
|
1330
1330
|
var o = r[i];
|
|
1331
|
-
if (Dt(o) &&
|
|
1331
|
+
if (Dt(o) && Ii(o), o.wv > e.wv) return !0;
|
|
1332
1332
|
}
|
|
1333
1333
|
t & 512 && K === null && N(e, re);
|
|
1334
1334
|
}
|
|
1335
1335
|
return !1;
|
|
1336
1336
|
}
|
|
1337
|
-
function
|
|
1337
|
+
function Gi(e, t, r = !0) {
|
|
1338
1338
|
var n = e.reactions;
|
|
1339
1339
|
if (n !== null && !(!je && te !== null && ht.call(te, e)))
|
|
1340
1340
|
for (var i = 0; i < n.length; i++) {
|
|
1341
1341
|
var o = n[i];
|
|
1342
|
-
o.f & 2 ?
|
|
1342
|
+
o.f & 2 ? Gi(o, t, !1) : t === o && (r ? N(o, me) : o.f & 1024 && N(o, nt), Jr(o));
|
|
1343
1343
|
}
|
|
1344
1344
|
}
|
|
1345
|
-
function
|
|
1345
|
+
function Ui(e) {
|
|
1346
1346
|
var t = U, r = J, n = ee, i = I, o = te, s = z, a = fe, l = Ze, u = e.f;
|
|
1347
|
-
U = null, J = 0, ee = null, I = u & 96 ? null : e, te = null, vt(e.ctx), fe = !1, Ze = ++Ke, e.ac !== null && (
|
|
1347
|
+
U = null, J = 0, ee = null, I = u & 96 ? null : e, te = null, vt(e.ctx), fe = !1, Ze = ++Ke, e.ac !== null && (Ni(() => {
|
|
1348
1348
|
e.ac.abort(Ae);
|
|
1349
1349
|
}), e.ac = null);
|
|
1350
1350
|
try {
|
|
1351
|
-
e.f |=
|
|
1352
|
-
var
|
|
1353
|
-
e.f |=
|
|
1354
|
-
var f = e.deps,
|
|
1351
|
+
e.f |= kn;
|
|
1352
|
+
var d = e.fn, p = d();
|
|
1353
|
+
e.f |= Ur;
|
|
1354
|
+
var f = e.deps, h = R?.is_fork;
|
|
1355
1355
|
if (U !== null) {
|
|
1356
1356
|
var g;
|
|
1357
|
-
if (
|
|
1357
|
+
if (h || Ct(e, J), f !== null && J > 0)
|
|
1358
1358
|
for (f.length = J + U.length, g = 0; g < U.length; g++) f[J + g] = U[g];
|
|
1359
1359
|
else e.deps = f = U;
|
|
1360
|
-
if (
|
|
1360
|
+
if (nn() && e.f & 512) for (g = J; g < f.length; g++) {
|
|
1361
1361
|
var w;
|
|
1362
1362
|
((w = f[g]).reactions ?? (w.reactions = [])).push(e);
|
|
1363
1363
|
}
|
|
1364
|
-
} else !
|
|
1365
|
-
if (Nt() && ee !== null && !fe && f !== null && !(e.f & 6146)) for (g = 0; g < ee.length; g++)
|
|
1364
|
+
} else !h && f !== null && J < f.length && (Ct(e, J), f.length = J);
|
|
1365
|
+
if (Nt() && ee !== null && !fe && f !== null && !(e.f & 6146)) for (g = 0; g < ee.length; g++) Gi(ee[g], e);
|
|
1366
1366
|
if (i !== null && i !== e) {
|
|
1367
|
-
if (Ke++, i.deps !== null) for (let
|
|
1368
|
-
if (t !== null) for (const
|
|
1367
|
+
if (Ke++, i.deps !== null) for (let v = 0; v < r; v += 1) i.deps[v].rv = Ke;
|
|
1368
|
+
if (t !== null) for (const v of t) v.rv = Ke;
|
|
1369
1369
|
ee !== null && (n === null ? n = ee : n.push(...ee));
|
|
1370
1370
|
}
|
|
1371
|
-
return e.f & 8388608 && (e.f ^= sr),
|
|
1372
|
-
} catch (
|
|
1373
|
-
return
|
|
1371
|
+
return e.f & 8388608 && (e.f ^= sr), p;
|
|
1372
|
+
} catch (v) {
|
|
1373
|
+
return fi(v);
|
|
1374
1374
|
} finally {
|
|
1375
|
-
e.f ^=
|
|
1375
|
+
e.f ^= kn, U = t, J = r, ee = n, I = i, te = o, vt(s), fe = a, Ze = l;
|
|
1376
1376
|
}
|
|
1377
1377
|
}
|
|
1378
|
-
function
|
|
1378
|
+
function $s(e, t) {
|
|
1379
1379
|
let r = t.reactions;
|
|
1380
1380
|
if (r !== null) {
|
|
1381
|
-
var n =
|
|
1381
|
+
var n = bo.call(r, e);
|
|
1382
1382
|
if (n !== -1) {
|
|
1383
1383
|
var i = r.length - 1;
|
|
1384
1384
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
@@ -1386,13 +1386,13 @@ function Ss(e, t) {
|
|
|
1386
1386
|
}
|
|
1387
1387
|
if (r === null && t.f & 2 && (U === null || !ht.call(U, t))) {
|
|
1388
1388
|
var o = t;
|
|
1389
|
-
o.f & 512 && (o.f ^= 512, o.f &= ~
|
|
1389
|
+
o.f & 512 && (o.f ^= 512, o.f &= ~xt), Yr(o), ds(o), Ct(o, 0);
|
|
1390
1390
|
}
|
|
1391
1391
|
}
|
|
1392
|
-
function
|
|
1392
|
+
function Ct(e, t) {
|
|
1393
1393
|
var r = e.deps;
|
|
1394
1394
|
if (r !== null)
|
|
1395
|
-
for (var n = t; n < r.length; n++)
|
|
1395
|
+
for (var n = t; n < r.length; n++) $s(e, r[n]);
|
|
1396
1396
|
}
|
|
1397
1397
|
function _t(e) {
|
|
1398
1398
|
var t = e.f;
|
|
@@ -1402,9 +1402,9 @@ function _t(e) {
|
|
|
1402
1402
|
if (A = e, er = !0, 0)
|
|
1403
1403
|
var i, o;
|
|
1404
1404
|
try {
|
|
1405
|
-
t & 16777232 ?
|
|
1406
|
-
var s =
|
|
1407
|
-
if (e.teardown = typeof s == "function" ? s : null, e.wv =
|
|
1405
|
+
t & 16777232 ? Ss(e) : an(e), ji(e);
|
|
1406
|
+
var s = Ui(e);
|
|
1407
|
+
if (e.teardown = typeof s == "function" ? s : null, e.wv = Fi, 0)
|
|
1408
1408
|
for (var a of e.deps) ;
|
|
1409
1409
|
} finally {
|
|
1410
1410
|
er = n, A = r;
|
|
@@ -1413,7 +1413,7 @@ function _t(e) {
|
|
|
1413
1413
|
}
|
|
1414
1414
|
function _(e) {
|
|
1415
1415
|
var t = (e.f & 2) !== 0;
|
|
1416
|
-
if (
|
|
1416
|
+
if (As?.add(e), I !== null && !fe && !(A !== null && A.f & 16384) && (te === null || !ht.call(te, e))) {
|
|
1417
1417
|
var r = I.deps;
|
|
1418
1418
|
if (I.f & 2097152)
|
|
1419
1419
|
e.rv < Ke && (e.rv = Ke, U === null && r !== null && r[J] === e ? J++ : U === null ? U = [e] : U.push(e));
|
|
@@ -1437,28 +1437,28 @@ function _(e) {
|
|
|
1437
1437
|
var l = e;
|
|
1438
1438
|
if (ze) {
|
|
1439
1439
|
var u = l.v;
|
|
1440
|
-
return (!(l.f & 1024) && l.reactions !== null ||
|
|
1440
|
+
return (!(l.f & 1024) && l.reactions !== null || Yi(l)) && (u = en(l)), Ve.set(l, u), u;
|
|
1441
1441
|
}
|
|
1442
|
-
var
|
|
1443
|
-
Dt(l) && (
|
|
1442
|
+
var d = (l.f & 512) === 0 && !fe && I !== null && (er || (I.f & 512) !== 0), p = (l.f & Ur) === 0;
|
|
1443
|
+
Dt(l) && (d && (l.f |= 512), Ii(l)), d && !p && ($i(l), Ki(l));
|
|
1444
1444
|
}
|
|
1445
1445
|
if (K?.has(e)) return K.get(e);
|
|
1446
1446
|
if (e.f & 8388608) throw e.v;
|
|
1447
1447
|
return e.v;
|
|
1448
1448
|
}
|
|
1449
|
-
function
|
|
1449
|
+
function Ki(e) {
|
|
1450
1450
|
if (e.f |= 512, e.deps !== null)
|
|
1451
1451
|
for (const t of e.deps)
|
|
1452
|
-
(t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && (
|
|
1452
|
+
(t.reactions ?? (t.reactions = [])).push(e), t.f & 2 && !(t.f & 512) && ($i(t), Ki(t));
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1454
|
+
function Yi(e) {
|
|
1455
1455
|
if (e.v === W) return !0;
|
|
1456
1456
|
if (e.deps === null) return !1;
|
|
1457
1457
|
for (const t of e.deps)
|
|
1458
|
-
if (Ve.has(t) || t.f & 2 &&
|
|
1458
|
+
if (Ve.has(t) || t.f & 2 && Yi(t)) return !0;
|
|
1459
1459
|
return !1;
|
|
1460
1460
|
}
|
|
1461
|
-
function
|
|
1461
|
+
function un(e) {
|
|
1462
1462
|
var t = fe;
|
|
1463
1463
|
try {
|
|
1464
1464
|
return fe = !0, e();
|
|
@@ -1466,19 +1466,19 @@ function ln(e) {
|
|
|
1466
1466
|
fe = t;
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
1469
|
-
var ft = Symbol("events"),
|
|
1469
|
+
var ft = Symbol("events"), Xi = /* @__PURE__ */ new Set(), Br = /* @__PURE__ */ new Set();
|
|
1470
1470
|
function Tt(e, t, r) {
|
|
1471
1471
|
(t[ft] ?? (t[ft] = {}))[e] = r;
|
|
1472
1472
|
}
|
|
1473
|
-
function
|
|
1474
|
-
for (var t = 0; t < e.length; t++)
|
|
1475
|
-
for (var r of
|
|
1473
|
+
function Es(e) {
|
|
1474
|
+
for (var t = 0; t < e.length; t++) Xi.add(e[t]);
|
|
1475
|
+
for (var r of Br) r(e);
|
|
1476
1476
|
}
|
|
1477
|
-
var
|
|
1478
|
-
function
|
|
1477
|
+
var Nn = null;
|
|
1478
|
+
function Dn(e) {
|
|
1479
1479
|
var t = this, r = t.ownerDocument, n = e.type, i = e.composedPath?.() || [], o = i[0] || e.target;
|
|
1480
|
-
|
|
1481
|
-
var s = 0, a =
|
|
1480
|
+
Nn = e;
|
|
1481
|
+
var s = 0, a = Nn === e && e[ft];
|
|
1482
1482
|
if (a) {
|
|
1483
1483
|
var l = i.indexOf(a);
|
|
1484
1484
|
if (l !== -1 && (t === document || t === window)) {
|
|
@@ -1496,38 +1496,38 @@ function Mn(e) {
|
|
|
1496
1496
|
return o || r;
|
|
1497
1497
|
}
|
|
1498
1498
|
});
|
|
1499
|
-
var
|
|
1499
|
+
var d = I, p = A;
|
|
1500
1500
|
ie(null), _e(null);
|
|
1501
1501
|
try {
|
|
1502
|
-
for (var f,
|
|
1502
|
+
for (var f, h = []; o !== null; ) {
|
|
1503
1503
|
var g = o.assignedSlot || o.parentNode || o.host || null;
|
|
1504
1504
|
try {
|
|
1505
1505
|
var w = o[ft]?.[n];
|
|
1506
1506
|
w != null && (!o.disabled || e.target === o) && w.call(o, e);
|
|
1507
|
-
} catch (
|
|
1508
|
-
f ?
|
|
1507
|
+
} catch (v) {
|
|
1508
|
+
f ? h.push(v) : f = v;
|
|
1509
1509
|
}
|
|
1510
1510
|
if (e.cancelBubble || g === t || g === null) break;
|
|
1511
1511
|
o = g;
|
|
1512
1512
|
}
|
|
1513
1513
|
if (f) {
|
|
1514
|
-
for (let
|
|
1515
|
-
throw
|
|
1514
|
+
for (let v of h) queueMicrotask(() => {
|
|
1515
|
+
throw v;
|
|
1516
1516
|
});
|
|
1517
1517
|
throw f;
|
|
1518
1518
|
}
|
|
1519
1519
|
} finally {
|
|
1520
|
-
e[ft] = t, delete e.currentTarget, ie(
|
|
1520
|
+
e[ft] = t, delete e.currentTarget, ie(d), _e(p);
|
|
1521
1521
|
}
|
|
1522
1522
|
}
|
|
1523
1523
|
}
|
|
1524
|
-
var
|
|
1525
|
-
function
|
|
1526
|
-
return
|
|
1524
|
+
var Os = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1525
|
+
function Ls(e) {
|
|
1526
|
+
return Os?.createHTML(e) ?? e;
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1529
|
-
var t =
|
|
1530
|
-
return t.innerHTML =
|
|
1528
|
+
function Rs(e) {
|
|
1529
|
+
var t = tn("template");
|
|
1530
|
+
return t.innerHTML = Ls(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1531
1531
|
}
|
|
1532
1532
|
function tr(e, t) {
|
|
1533
1533
|
var r = A;
|
|
@@ -1542,10 +1542,10 @@ function tr(e, t) {
|
|
|
1542
1542
|
function st(e, t) {
|
|
1543
1543
|
var r = (t & 1) !== 0, n = (t & 2) !== 0, i, o = !e.startsWith("<!>");
|
|
1544
1544
|
return () => {
|
|
1545
|
-
if (
|
|
1546
|
-
return tr(
|
|
1547
|
-
i === void 0 && (i =
|
|
1548
|
-
var s = n ||
|
|
1545
|
+
if (M)
|
|
1546
|
+
return tr(L, null), L;
|
|
1547
|
+
i === void 0 && (i = Rs(o ? e : "<!>" + e), r || (i = /* @__PURE__ */ rt(i)));
|
|
1548
|
+
var s = n || Ri ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1549
1549
|
if (r) {
|
|
1550
1550
|
var a = /* @__PURE__ */ rt(s), l = s.lastChild;
|
|
1551
1551
|
tr(a, l);
|
|
@@ -1553,15 +1553,15 @@ function st(e, t) {
|
|
|
1553
1553
|
return s;
|
|
1554
1554
|
};
|
|
1555
1555
|
}
|
|
1556
|
-
function
|
|
1557
|
-
if (
|
|
1556
|
+
function Pe(e, t) {
|
|
1557
|
+
if (M) {
|
|
1558
1558
|
var r = A;
|
|
1559
|
-
(!(r.f & 32768) || r.nodes.end === null) && (r.nodes.end =
|
|
1559
|
+
(!(r.f & 32768) || r.nodes.end === null) && (r.nodes.end = L), pr();
|
|
1560
1560
|
return;
|
|
1561
1561
|
}
|
|
1562
1562
|
e !== null && e.before(t);
|
|
1563
1563
|
}
|
|
1564
|
-
var
|
|
1564
|
+
var Ms = [
|
|
1565
1565
|
"allowfullscreen",
|
|
1566
1566
|
"async",
|
|
1567
1567
|
"autofocus",
|
|
@@ -1590,8 +1590,8 @@ var Es = [
|
|
|
1590
1590
|
"defer",
|
|
1591
1591
|
"disablepictureinpicture",
|
|
1592
1592
|
"disableremoteplayback"
|
|
1593
|
-
],
|
|
1594
|
-
...
|
|
1593
|
+
], hl = [
|
|
1594
|
+
...Ms,
|
|
1595
1595
|
"formNoValidate",
|
|
1596
1596
|
"isMap",
|
|
1597
1597
|
"noModule",
|
|
@@ -1606,17 +1606,17 @@ var Es = [
|
|
|
1606
1606
|
"allowFullscreen",
|
|
1607
1607
|
"disablePictureInPicture",
|
|
1608
1608
|
"disableRemotePlayback"
|
|
1609
|
-
],
|
|
1610
|
-
function
|
|
1611
|
-
return
|
|
1609
|
+
], Ps = ["touchstart", "touchmove"];
|
|
1610
|
+
function Cs(e) {
|
|
1611
|
+
return Ps.includes(e);
|
|
1612
1612
|
}
|
|
1613
|
-
var
|
|
1613
|
+
var xs = [
|
|
1614
1614
|
"$state",
|
|
1615
1615
|
"$state.raw",
|
|
1616
1616
|
"$derived",
|
|
1617
1617
|
"$derived.by"
|
|
1618
|
-
],
|
|
1619
|
-
...
|
|
1618
|
+
], vl = [
|
|
1619
|
+
...xs,
|
|
1620
1620
|
"$state.eager",
|
|
1621
1621
|
"$state.snapshot",
|
|
1622
1622
|
"$props",
|
|
@@ -1631,22 +1631,22 @@ var Ls = [
|
|
|
1631
1631
|
"$inspect().with",
|
|
1632
1632
|
"$inspect.trace",
|
|
1633
1633
|
"$host"
|
|
1634
|
-
],
|
|
1635
|
-
function
|
|
1634
|
+
], Vn = !0;
|
|
1635
|
+
function jn(e, t) {
|
|
1636
1636
|
var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1637
1637
|
r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = `${r}`);
|
|
1638
1638
|
}
|
|
1639
|
-
function
|
|
1640
|
-
return
|
|
1639
|
+
function Ji(e, t) {
|
|
1640
|
+
return Qi(e, t);
|
|
1641
1641
|
}
|
|
1642
|
-
function
|
|
1643
|
-
|
|
1644
|
-
const r = t.target, n =
|
|
1642
|
+
function Ns(e, t) {
|
|
1643
|
+
Wr(), t.intro = t.intro ?? !1;
|
|
1644
|
+
const r = t.target, n = M, i = L;
|
|
1645
1645
|
try {
|
|
1646
1646
|
for (var o = /* @__PURE__ */ rt(r); o && (o.nodeType !== 8 || o.data !== "["); ) o = /* @__PURE__ */ be(o);
|
|
1647
1647
|
if (!o) throw dt;
|
|
1648
1648
|
Ie(!0), Y(o);
|
|
1649
|
-
const s =
|
|
1649
|
+
const s = Qi(e, {
|
|
1650
1650
|
...t,
|
|
1651
1651
|
anchor: o
|
|
1652
1652
|
});
|
|
@@ -1654,141 +1654,141 @@ function Ps(e, t) {
|
|
|
1654
1654
|
} catch (s) {
|
|
1655
1655
|
if (s instanceof Error && s.message.split(`
|
|
1656
1656
|
`).some((a) => a.startsWith("https://svelte.dev/e/"))) throw s;
|
|
1657
|
-
return s !== dt && console.warn("Failed to hydrate: ", s), t.recover === !1 &&
|
|
1657
|
+
return s !== dt && console.warn("Failed to hydrate: ", s), t.recover === !1 && Do(), Wr(), Ci(r), Ie(!1), Ji(e, t);
|
|
1658
1658
|
} finally {
|
|
1659
1659
|
Ie(n), Y(i);
|
|
1660
1660
|
}
|
|
1661
1661
|
}
|
|
1662
1662
|
var Xt = /* @__PURE__ */ new Map();
|
|
1663
|
-
function
|
|
1664
|
-
|
|
1665
|
-
var l = void 0, u =
|
|
1666
|
-
var
|
|
1667
|
-
|
|
1668
|
-
} }, (
|
|
1669
|
-
|
|
1663
|
+
function Qi(e, { target: t, anchor: r, props: n = {}, events: i, context: o, intro: s = !0, transformError: a }) {
|
|
1664
|
+
Wr();
|
|
1665
|
+
var l = void 0, u = ws(() => {
|
|
1666
|
+
var d = r ?? t.appendChild(de());
|
|
1667
|
+
rs(d, { pending: () => {
|
|
1668
|
+
} }, (h) => {
|
|
1669
|
+
li({});
|
|
1670
1670
|
var g = z;
|
|
1671
|
-
if (o && (g.c = o), i && (n.$$events = i),
|
|
1672
|
-
throw
|
|
1673
|
-
|
|
1671
|
+
if (o && (g.c = o), i && (n.$$events = i), M && tr(h, null), Vn = s, l = e(h, n) || {}, Vn = !0, M && (A.nodes.end = L, L === null || L.nodeType !== 8 || L.data !== "]"))
|
|
1672
|
+
throw vr(), dt;
|
|
1673
|
+
ci();
|
|
1674
1674
|
}, a);
|
|
1675
|
-
var
|
|
1676
|
-
for (var g = 0; g <
|
|
1677
|
-
var w =
|
|
1678
|
-
if (!
|
|
1679
|
-
|
|
1680
|
-
var
|
|
1675
|
+
var p = /* @__PURE__ */ new Set(), f = (h) => {
|
|
1676
|
+
for (var g = 0; g < h.length; g++) {
|
|
1677
|
+
var w = h[g];
|
|
1678
|
+
if (!p.has(w)) {
|
|
1679
|
+
p.add(w);
|
|
1680
|
+
var v = Cs(w);
|
|
1681
1681
|
for (const $ of [t, document]) {
|
|
1682
1682
|
var y = Xt.get($);
|
|
1683
1683
|
y === void 0 && (y = /* @__PURE__ */ new Map(), Xt.set($, y));
|
|
1684
|
-
var
|
|
1685
|
-
|
|
1684
|
+
var x = y.get(w);
|
|
1685
|
+
x === void 0 ? ($.addEventListener(w, Dn, { passive: v }), y.set(w, 1)) : y.set(w, x + 1);
|
|
1686
1686
|
}
|
|
1687
1687
|
}
|
|
1688
1688
|
}
|
|
1689
1689
|
};
|
|
1690
|
-
return f(
|
|
1691
|
-
for (var
|
|
1692
|
-
var g = Xt.get(
|
|
1693
|
-
--w == 0 ? (
|
|
1690
|
+
return f(hr(Xi)), Br.add(f), () => {
|
|
1691
|
+
for (var h of p) for (const v of [t, document]) {
|
|
1692
|
+
var g = Xt.get(v), w = g.get(h);
|
|
1693
|
+
--w == 0 ? (v.removeEventListener(h, Dn), g.delete(h), g.size === 0 && Xt.delete(v)) : g.set(h, w);
|
|
1694
1694
|
}
|
|
1695
|
-
|
|
1695
|
+
Br.delete(f), d !== r && d.parentNode?.removeChild(d);
|
|
1696
1696
|
};
|
|
1697
1697
|
});
|
|
1698
|
-
return
|
|
1698
|
+
return Hr.set(l, u), l;
|
|
1699
1699
|
}
|
|
1700
|
-
var
|
|
1701
|
-
function
|
|
1702
|
-
const r =
|
|
1703
|
-
return r ? (
|
|
1700
|
+
var Hr = /* @__PURE__ */ new WeakMap();
|
|
1701
|
+
function Ds(e, t) {
|
|
1702
|
+
const r = Hr.get(e);
|
|
1703
|
+
return r ? (Hr.delete(e), r(t)) : Promise.resolve();
|
|
1704
1704
|
}
|
|
1705
|
-
var Se = /* @__PURE__ */ new WeakMap(),
|
|
1705
|
+
var Se = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), St = /* @__PURE__ */ new WeakMap(), $r = /* @__PURE__ */ new WeakMap(), Er = /* @__PURE__ */ new WeakMap(), zn = /* @__PURE__ */ new WeakMap(), Vs = class {
|
|
1706
1706
|
constructor(e, t = !0) {
|
|
1707
|
-
b(this, "anchor", void 0), k(this, Se, /* @__PURE__ */ new Map()), k(this,
|
|
1707
|
+
b(this, "anchor", void 0), k(this, Se, /* @__PURE__ */ new Map()), k(this, Re, /* @__PURE__ */ new Map()), k(this, ae, /* @__PURE__ */ new Map()), k(this, St, /* @__PURE__ */ new Set()), k(this, $r, !0), k(this, Er, (r) => {
|
|
1708
1708
|
if (c(Se, this).has(r)) {
|
|
1709
|
-
var n = c(Se, this).get(r), i = c(
|
|
1709
|
+
var n = c(Se, this).get(r), i = c(Re, this).get(n);
|
|
1710
1710
|
if (i)
|
|
1711
|
-
|
|
1711
|
+
ln(i), c(St, this).delete(n);
|
|
1712
1712
|
else {
|
|
1713
1713
|
var o = c(ae, this).get(n);
|
|
1714
|
-
o && (c(
|
|
1714
|
+
o && (c(Re, this).set(n, o.effect), c(ae, this).delete(n), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), i = o.effect);
|
|
1715
1715
|
}
|
|
1716
1716
|
for (const [s, a] of c(Se, this)) {
|
|
1717
1717
|
if (c(Se, this).delete(s), s === r) break;
|
|
1718
1718
|
const l = c(ae, this).get(a);
|
|
1719
|
-
l && (
|
|
1719
|
+
l && (F(l.effect), c(ae, this).delete(a));
|
|
1720
1720
|
}
|
|
1721
|
-
for (const [s, a] of c(
|
|
1721
|
+
for (const [s, a] of c(Re, this)) {
|
|
1722
1722
|
if (s === n || c(St, this).has(s)) continue;
|
|
1723
1723
|
const l = () => {
|
|
1724
1724
|
if (Array.from(c(Se, this).values()).includes(s)) {
|
|
1725
1725
|
var u = document.createDocumentFragment();
|
|
1726
|
-
|
|
1726
|
+
cn(a, u), u.append(de()), c(ae, this).set(s, {
|
|
1727
1727
|
effect: a,
|
|
1728
1728
|
fragment: u
|
|
1729
1729
|
});
|
|
1730
|
-
} else
|
|
1731
|
-
c(St, this).delete(s), c(
|
|
1730
|
+
} else F(a);
|
|
1731
|
+
c(St, this).delete(s), c(Re, this).delete(s);
|
|
1732
1732
|
};
|
|
1733
|
-
c(
|
|
1733
|
+
c($r, this) || !i ? (c(St, this).add(s), ot(a, l, !1)) : l();
|
|
1734
1734
|
}
|
|
1735
1735
|
}
|
|
1736
|
-
}), k(this,
|
|
1736
|
+
}), k(this, zn, (r) => {
|
|
1737
1737
|
c(Se, this).delete(r);
|
|
1738
1738
|
const n = Array.from(c(Se, this).values());
|
|
1739
|
-
for (const [i, o] of c(ae, this)) n.includes(i) || (
|
|
1740
|
-
}), this.anchor = e, T(
|
|
1739
|
+
for (const [i, o] of c(ae, this)) n.includes(i) || (F(o.effect), c(ae, this).delete(i));
|
|
1740
|
+
}), this.anchor = e, T($r, this, t);
|
|
1741
1741
|
}
|
|
1742
1742
|
ensure(e, t) {
|
|
1743
|
-
var r =
|
|
1744
|
-
if (t && !c(
|
|
1743
|
+
var r = R, n = xi();
|
|
1744
|
+
if (t && !c(Re, this).has(e) && !c(ae, this).has(e)) if (n) {
|
|
1745
1745
|
var i = document.createDocumentFragment(), o = de();
|
|
1746
1746
|
i.append(o), c(ae, this).set(e, {
|
|
1747
1747
|
effect: ne(() => t(o)),
|
|
1748
1748
|
fragment: i
|
|
1749
1749
|
});
|
|
1750
|
-
} else c(
|
|
1750
|
+
} else c(Re, this).set(e, ne(() => t(this.anchor)));
|
|
1751
1751
|
if (c(Se, this).set(r, e), n) {
|
|
1752
|
-
for (const [s, a] of c(
|
|
1752
|
+
for (const [s, a] of c(Re, this)) s === e ? r.unskip_effect(a) : r.skip_effect(a);
|
|
1753
1753
|
for (const [s, a] of c(ae, this)) s === e ? r.unskip_effect(a.effect) : r.skip_effect(a.effect);
|
|
1754
|
-
r.oncommit(c(
|
|
1754
|
+
r.oncommit(c(Er, this)), r.ondiscard(c(zn, this));
|
|
1755
1755
|
} else
|
|
1756
|
-
|
|
1756
|
+
M && (this.anchor = L), c(Er, this).call(this, r);
|
|
1757
1757
|
}
|
|
1758
1758
|
};
|
|
1759
1759
|
function kt(e, t, r = !1) {
|
|
1760
1760
|
var n;
|
|
1761
|
-
|
|
1762
|
-
var i = new
|
|
1761
|
+
M && (n = L, pr());
|
|
1762
|
+
var i = new Vs(e), o = r ? Kr : 0;
|
|
1763
1763
|
function s(a, l) {
|
|
1764
|
-
if (
|
|
1765
|
-
var u =
|
|
1764
|
+
if (M) {
|
|
1765
|
+
var u = oi(n);
|
|
1766
1766
|
if (a !== parseInt(u.substring(1))) {
|
|
1767
|
-
var
|
|
1768
|
-
Y(
|
|
1767
|
+
var d = ar();
|
|
1768
|
+
Y(d), i.anchor = d, Ie(!1), i.ensure(a, l), Ie(!0);
|
|
1769
1769
|
return;
|
|
1770
1770
|
}
|
|
1771
1771
|
}
|
|
1772
1772
|
i.ensure(a, l);
|
|
1773
1773
|
}
|
|
1774
|
-
|
|
1774
|
+
sn(() => {
|
|
1775
1775
|
var a = !1;
|
|
1776
1776
|
t((l, u = 0) => {
|
|
1777
1777
|
a = !0, s(u, l);
|
|
1778
1778
|
}), a || s(-1, null);
|
|
1779
1779
|
}, o);
|
|
1780
1780
|
}
|
|
1781
|
-
function
|
|
1781
|
+
function js(e, t) {
|
|
1782
1782
|
return t;
|
|
1783
1783
|
}
|
|
1784
|
-
function
|
|
1784
|
+
function zs(e, t, r) {
|
|
1785
1785
|
for (var n = [], i = t.length, o, s = t.length, a = 0; a < i; a++) {
|
|
1786
|
-
let
|
|
1787
|
-
ot(
|
|
1786
|
+
let p = t[a];
|
|
1787
|
+
ot(p, () => {
|
|
1788
1788
|
if (o) {
|
|
1789
|
-
if (o.pending.delete(
|
|
1789
|
+
if (o.pending.delete(p), o.done.add(p), o.pending.size === 0) {
|
|
1790
1790
|
var f = e.outrogroups;
|
|
1791
|
-
|
|
1791
|
+
Fr(e, hr(o.done)), f.delete(o), f.size === 0 && (e.outrogroups = null);
|
|
1792
1792
|
}
|
|
1793
1793
|
} else s -= 1;
|
|
1794
1794
|
}, !1);
|
|
@@ -1796,17 +1796,17 @@ function Ns(e, t, r) {
|
|
|
1796
1796
|
if (s === 0) {
|
|
1797
1797
|
var l = n.length === 0 && r !== null;
|
|
1798
1798
|
if (l) {
|
|
1799
|
-
var u = r,
|
|
1800
|
-
|
|
1799
|
+
var u = r, d = u.parentNode;
|
|
1800
|
+
Ci(d), d.append(u), e.items.clear();
|
|
1801
1801
|
}
|
|
1802
|
-
|
|
1802
|
+
Fr(e, t, !l);
|
|
1803
1803
|
} else
|
|
1804
1804
|
o = {
|
|
1805
1805
|
pending: new Set(t),
|
|
1806
1806
|
done: /* @__PURE__ */ new Set()
|
|
1807
1807
|
}, (e.outrogroups ?? (e.outrogroups = /* @__PURE__ */ new Set())).add(o);
|
|
1808
1808
|
}
|
|
1809
|
-
function
|
|
1809
|
+
function Fr(e, t, r = !0) {
|
|
1810
1810
|
var n;
|
|
1811
1811
|
if (e.pending.size > 0) {
|
|
1812
1812
|
n = /* @__PURE__ */ new Set();
|
|
@@ -1814,49 +1814,49 @@ function Br(e, t, r = !0) {
|
|
|
1814
1814
|
}
|
|
1815
1815
|
for (var i = 0; i < t.length; i++) {
|
|
1816
1816
|
var o = t[i];
|
|
1817
|
-
n?.has(o) ? (o.f |= Et,
|
|
1817
|
+
n?.has(o) ? (o.f |= Et, cn(o, document.createDocumentFragment())) : F(t[i], r);
|
|
1818
1818
|
}
|
|
1819
1819
|
}
|
|
1820
1820
|
var Jt;
|
|
1821
|
-
function
|
|
1821
|
+
function Ws(e, t, r, n, i, o = null) {
|
|
1822
1822
|
var s = e, a = /* @__PURE__ */ new Map();
|
|
1823
1823
|
if (t & 4) {
|
|
1824
1824
|
var l = e;
|
|
1825
|
-
s =
|
|
1825
|
+
s = M ? Y(/* @__PURE__ */ rt(l)) : l.appendChild(de());
|
|
1826
1826
|
}
|
|
1827
|
-
|
|
1828
|
-
var u = null,
|
|
1827
|
+
M && pr();
|
|
1828
|
+
var u = null, d = /* @__PURE__ */ Zr(() => {
|
|
1829
1829
|
var y = r();
|
|
1830
|
-
return
|
|
1831
|
-
}),
|
|
1830
|
+
return ti(y) ? y : y == null ? [] : hr(y);
|
|
1831
|
+
}), p, f = /* @__PURE__ */ new Map(), h = !0;
|
|
1832
1832
|
function g(y) {
|
|
1833
|
-
|
|
1833
|
+
v.effect.f & 16384 || (v.pending.delete(y), v.fallback = u, Bs(v, p, s, t, n), u !== null && (p.length === 0 ? u.f & 33554432 ? (u.f ^= Et, $t(u, null, s)) : ln(u) : ot(u, () => {
|
|
1834
1834
|
u = null;
|
|
1835
1835
|
})));
|
|
1836
1836
|
}
|
|
1837
1837
|
function w(y) {
|
|
1838
|
-
|
|
1839
|
-
}
|
|
1840
|
-
var
|
|
1841
|
-
effect:
|
|
1842
|
-
|
|
1843
|
-
var y =
|
|
1844
|
-
let
|
|
1845
|
-
|
|
1846
|
-
for (var $ = /* @__PURE__ */ new Set(),
|
|
1847
|
-
|
|
1848
|
-
var q =
|
|
1838
|
+
v.pending.delete(y);
|
|
1839
|
+
}
|
|
1840
|
+
var v = {
|
|
1841
|
+
effect: sn(() => {
|
|
1842
|
+
p = _(d);
|
|
1843
|
+
var y = p.length;
|
|
1844
|
+
let x = !1;
|
|
1845
|
+
M && oi(s) === "[!" != (y === 0) && (s = ar(), Y(s), Ie(!1), x = !0);
|
|
1846
|
+
for (var $ = /* @__PURE__ */ new Set(), P = R, B = xi(), D = 0; D < y; D += 1) {
|
|
1847
|
+
M && L.nodeType === 8 && L.data === "]" && (s = L, x = !0, Ie(!1));
|
|
1848
|
+
var q = p[D], he = n(q, D);
|
|
1849
1849
|
if (0)
|
|
1850
1850
|
var Vt;
|
|
1851
|
-
var V =
|
|
1852
|
-
V ? (V.v && gt(V.v, q), V.i && gt(V.i, D), B &&
|
|
1851
|
+
var V = h ? null : a.get(he);
|
|
1852
|
+
V ? (V.v && gt(V.v, q), V.i && gt(V.i, D), B && P.unskip_effect(V.e)) : (V = Hs(a, h ? s : Jt ?? (Jt = de()), q, he, D, i, t, r), h || (V.e.f |= Et), a.set(he, V)), $.add(he);
|
|
1853
1853
|
}
|
|
1854
|
-
if (y === 0 && o && !u && (
|
|
1855
|
-
if (f.set(
|
|
1856
|
-
for (const [jt,
|
|
1857
|
-
|
|
1858
|
-
} else g(
|
|
1859
|
-
|
|
1854
|
+
if (y === 0 && o && !u && (h ? u = ne(() => o(s)) : (u = ne(() => o(Jt ?? (Jt = de()))), u.f |= Et)), y > $.size && Mo("", "", ""), M && y > 0 && Y(ar()), !h)
|
|
1855
|
+
if (f.set(P, $), B) {
|
|
1856
|
+
for (const [jt, wr] of a) $.has(jt) || P.skip_effect(wr.e);
|
|
1857
|
+
P.oncommit(g), P.ondiscard(w);
|
|
1858
|
+
} else g(P);
|
|
1859
|
+
x && Ie(!0), _(d);
|
|
1860
1860
|
}),
|
|
1861
1861
|
flags: t,
|
|
1862
1862
|
items: a,
|
|
@@ -1864,53 +1864,53 @@ function Ds(e, t, r, n, i, o = null) {
|
|
|
1864
1864
|
outrogroups: null,
|
|
1865
1865
|
fallback: u
|
|
1866
1866
|
};
|
|
1867
|
-
|
|
1867
|
+
h = !1, M && (s = L);
|
|
1868
1868
|
}
|
|
1869
1869
|
function At(e) {
|
|
1870
1870
|
for (; e !== null && !(e.f & 32); ) e = e.next;
|
|
1871
1871
|
return e;
|
|
1872
1872
|
}
|
|
1873
|
-
function
|
|
1874
|
-
var o = (n & 8) !== 0, s = t.length, a = e.items, l = At(e.effect.first), u,
|
|
1873
|
+
function Bs(e, t, r, n, i) {
|
|
1874
|
+
var o = (n & 8) !== 0, s = t.length, a = e.items, l = At(e.effect.first), u, d = null, p, f = [], h = [], g, w, v, y;
|
|
1875
1875
|
if (o) for (y = 0; y < s; y += 1)
|
|
1876
|
-
g = t[y], w = i(g, y),
|
|
1876
|
+
g = t[y], w = i(g, y), v = a.get(w).e, v.f & 33554432 || (v.nodes?.a?.measure(), (p ?? (p = /* @__PURE__ */ new Set())).add(v));
|
|
1877
1877
|
for (y = 0; y < s; y += 1) {
|
|
1878
|
-
if (g = t[y], w = i(g, y),
|
|
1879
|
-
V.pending.delete(
|
|
1880
|
-
if (
|
|
1881
|
-
if (
|
|
1878
|
+
if (g = t[y], w = i(g, y), v = a.get(w).e, e.outrogroups !== null) for (const V of e.outrogroups)
|
|
1879
|
+
V.pending.delete(v), V.done.delete(v);
|
|
1880
|
+
if (v.f & 8192 && (ln(v), o && (v.nodes?.a?.unfix(), (p ?? (p = /* @__PURE__ */ new Set())).delete(v))), v.f & 33554432)
|
|
1881
|
+
if (v.f ^= Et, v === l) $t(v, null, r);
|
|
1882
1882
|
else {
|
|
1883
|
-
var
|
|
1884
|
-
|
|
1883
|
+
var x = d ? d.next : l;
|
|
1884
|
+
v === e.effect.last && (e.effect.last = v.prev), v.prev && (v.prev.next = v.next), v.next && (v.next.prev = v.prev), Me(e, d, v), Me(e, v, x), $t(v, x, r), d = v, f = [], h = [], l = At(d.next);
|
|
1885
1885
|
continue;
|
|
1886
1886
|
}
|
|
1887
|
-
if (
|
|
1888
|
-
if (u !== void 0 && u.has(
|
|
1889
|
-
if (f.length <
|
|
1890
|
-
var $ =
|
|
1891
|
-
|
|
1887
|
+
if (v !== l) {
|
|
1888
|
+
if (u !== void 0 && u.has(v)) {
|
|
1889
|
+
if (f.length < h.length) {
|
|
1890
|
+
var $ = h[0], P;
|
|
1891
|
+
d = $.prev;
|
|
1892
1892
|
var B = f[0], D = f[f.length - 1];
|
|
1893
|
-
for (
|
|
1894
|
-
for (
|
|
1895
|
-
|
|
1893
|
+
for (P = 0; P < f.length; P += 1) $t(f[P], $, r);
|
|
1894
|
+
for (P = 0; P < h.length; P += 1) u.delete(h[P]);
|
|
1895
|
+
Me(e, B.prev, D.next), Me(e, d, B), Me(e, D, $), l = $, d = D, y -= 1, f = [], h = [];
|
|
1896
1896
|
} else
|
|
1897
|
-
u.delete(
|
|
1897
|
+
u.delete(v), $t(v, l, r), Me(e, v.prev, v.next), Me(e, v, d === null ? e.effect.first : d.next), Me(e, d, v), d = v;
|
|
1898
1898
|
continue;
|
|
1899
1899
|
}
|
|
1900
|
-
for (f = [],
|
|
1901
|
-
(u ?? (u = /* @__PURE__ */ new Set())).add(l),
|
|
1900
|
+
for (f = [], h = []; l !== null && l !== v; )
|
|
1901
|
+
(u ?? (u = /* @__PURE__ */ new Set())).add(l), h.push(l), l = At(l.next);
|
|
1902
1902
|
if (l === null) continue;
|
|
1903
1903
|
}
|
|
1904
|
-
|
|
1904
|
+
v.f & 33554432 || f.push(v), d = v, l = At(v.next);
|
|
1905
1905
|
}
|
|
1906
1906
|
if (e.outrogroups !== null) {
|
|
1907
|
-
for (const V of e.outrogroups) V.pending.size === 0 && (
|
|
1907
|
+
for (const V of e.outrogroups) V.pending.size === 0 && (Fr(e, hr(V.done)), e.outrogroups?.delete(V));
|
|
1908
1908
|
e.outrogroups.size === 0 && (e.outrogroups = null);
|
|
1909
1909
|
}
|
|
1910
1910
|
if (l !== null || u !== void 0) {
|
|
1911
1911
|
var q = [];
|
|
1912
1912
|
if (u !== void 0)
|
|
1913
|
-
for (
|
|
1913
|
+
for (v of u) v.f & 8192 || q.push(v);
|
|
1914
1914
|
for (; l !== null; )
|
|
1915
1915
|
!(l.f & 8192) && l !== e.fallback && q.push(l), l = At(l.next);
|
|
1916
1916
|
var he = q.length;
|
|
@@ -1920,16 +1920,16 @@ function Vs(e, t, r, n, i) {
|
|
|
1920
1920
|
for (y = 0; y < he; y += 1) q[y].nodes?.a?.measure();
|
|
1921
1921
|
for (y = 0; y < he; y += 1) q[y].nodes?.a?.fix();
|
|
1922
1922
|
}
|
|
1923
|
-
|
|
1923
|
+
zs(e, q, Vt);
|
|
1924
1924
|
}
|
|
1925
1925
|
}
|
|
1926
1926
|
o && et(() => {
|
|
1927
|
-
if (
|
|
1928
|
-
for (
|
|
1927
|
+
if (p !== void 0)
|
|
1928
|
+
for (v of p) v.nodes?.a?.apply();
|
|
1929
1929
|
});
|
|
1930
1930
|
}
|
|
1931
|
-
function
|
|
1932
|
-
var l = s & 1 ? s & 16 ? tt(r) : /* @__PURE__ */
|
|
1931
|
+
function Hs(e, t, r, n, i, o, s, a) {
|
|
1932
|
+
var l = s & 1 ? s & 16 ? tt(r) : /* @__PURE__ */ Oi(r, !1, !1) : null, u = s & 2 ? tt(i) : null;
|
|
1933
1933
|
return {
|
|
1934
1934
|
v: l,
|
|
1935
1935
|
i: u,
|
|
@@ -1946,21 +1946,21 @@ function $t(e, t, r) {
|
|
|
1946
1946
|
n = s;
|
|
1947
1947
|
}
|
|
1948
1948
|
}
|
|
1949
|
-
function
|
|
1949
|
+
function Me(e, t, r) {
|
|
1950
1950
|
t === null ? e.effect.first = r : t.next = r, r === null ? e.effect.last = t : r.prev = t;
|
|
1951
1951
|
}
|
|
1952
|
-
function
|
|
1953
|
-
|
|
1952
|
+
function Fs(e, t) {
|
|
1953
|
+
Vi(() => {
|
|
1954
1954
|
var r = e.getRootNode(), n = r.host ? r : r.head ?? r.ownerDocument.head;
|
|
1955
1955
|
if (!n.querySelector("#" + t.hash)) {
|
|
1956
|
-
const i =
|
|
1956
|
+
const i = tn("style");
|
|
1957
1957
|
i.id = t.hash, i.textContent = t.code, n.appendChild(i);
|
|
1958
1958
|
}
|
|
1959
1959
|
});
|
|
1960
1960
|
}
|
|
1961
|
-
var
|
|
1961
|
+
var pl = [...`
|
|
1962
1962
|
\r\f \v\uFEFF`];
|
|
1963
|
-
function
|
|
1963
|
+
function Wn(e, t = !1) {
|
|
1964
1964
|
var r = t ? " !important;" : ";", n = "";
|
|
1965
1965
|
for (var i of Object.keys(e)) {
|
|
1966
1966
|
var o = e[i];
|
|
@@ -1968,135 +1968,135 @@ function jn(e, t = !1) {
|
|
|
1968
1968
|
}
|
|
1969
1969
|
return n;
|
|
1970
1970
|
}
|
|
1971
|
-
function
|
|
1971
|
+
function Or(e) {
|
|
1972
1972
|
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
1973
1973
|
}
|
|
1974
|
-
function
|
|
1974
|
+
function qs(e, t) {
|
|
1975
1975
|
if (t) {
|
|
1976
1976
|
var r = "", n, i;
|
|
1977
1977
|
if (Array.isArray(t) ? (n = t[0], i = t[1]) : n = t, e) {
|
|
1978
1978
|
e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
|
|
1979
1979
|
var o = !1, s = 0, a = !1, l = [];
|
|
1980
|
-
n && l.push(...Object.keys(n).map(
|
|
1981
|
-
var u = 0,
|
|
1980
|
+
n && l.push(...Object.keys(n).map(Or)), i && l.push(...Object.keys(i).map(Or));
|
|
1981
|
+
var u = 0, d = -1;
|
|
1982
1982
|
const w = e.length;
|
|
1983
|
-
for (var
|
|
1984
|
-
var f = e[
|
|
1985
|
-
if (a ? f === "/" && e[
|
|
1986
|
-
if (f === ":" &&
|
|
1987
|
-
else if (f === ";" ||
|
|
1988
|
-
if (
|
|
1989
|
-
var
|
|
1990
|
-
if (!l.includes(
|
|
1991
|
-
f !== ";" &&
|
|
1992
|
-
var g = e.substring(u,
|
|
1983
|
+
for (var p = 0; p < w; p++) {
|
|
1984
|
+
var f = e[p];
|
|
1985
|
+
if (a ? f === "/" && e[p - 1] === "*" && (a = !1) : o ? o === f && (o = !1) : f === "/" && e[p + 1] === "*" ? a = !0 : f === '"' || f === "'" ? o = f : f === "(" ? s++ : f === ")" && s--, !a && o === !1 && s === 0) {
|
|
1986
|
+
if (f === ":" && d === -1) d = p;
|
|
1987
|
+
else if (f === ";" || p === w - 1) {
|
|
1988
|
+
if (d !== -1) {
|
|
1989
|
+
var h = Or(e.substring(u, d).trim());
|
|
1990
|
+
if (!l.includes(h)) {
|
|
1991
|
+
f !== ";" && p++;
|
|
1992
|
+
var g = e.substring(u, p).trim();
|
|
1993
1993
|
r += " " + g + ";";
|
|
1994
1994
|
}
|
|
1995
1995
|
}
|
|
1996
|
-
u =
|
|
1996
|
+
u = p + 1, d = -1;
|
|
1997
1997
|
}
|
|
1998
1998
|
}
|
|
1999
1999
|
}
|
|
2000
2000
|
}
|
|
2001
|
-
return n && (r +=
|
|
2001
|
+
return n && (r += Wn(n)), i && (r += Wn(i, !0)), r = r.trim(), r === "" ? null : r;
|
|
2002
2002
|
}
|
|
2003
2003
|
return e == null ? null : String(e);
|
|
2004
2004
|
}
|
|
2005
|
-
function
|
|
2005
|
+
function Lr(e, t = {}, r, n) {
|
|
2006
2006
|
for (var i in r) {
|
|
2007
2007
|
var o = r[i];
|
|
2008
2008
|
t[i] !== o && (r[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, o, n));
|
|
2009
2009
|
}
|
|
2010
2010
|
}
|
|
2011
|
-
function
|
|
2011
|
+
function Bn(e, t, r, n) {
|
|
2012
2012
|
var i = e.__style;
|
|
2013
|
-
if (
|
|
2014
|
-
var o =
|
|
2015
|
-
(!
|
|
2016
|
-
} else n && (Array.isArray(n) ? (
|
|
2013
|
+
if (M || i !== t) {
|
|
2014
|
+
var o = qs(t, n);
|
|
2015
|
+
(!M || o !== e.getAttribute("style")) && (o == null ? e.removeAttribute("style") : e.style.cssText = o), e.__style = t;
|
|
2016
|
+
} else n && (Array.isArray(n) ? (Lr(e, r?.[0], n[0]), Lr(e, r?.[1], n[1], "important")) : Lr(e, r, n));
|
|
2017
2017
|
return n;
|
|
2018
2018
|
}
|
|
2019
|
-
var
|
|
2020
|
-
function
|
|
2021
|
-
var i =
|
|
2022
|
-
if (
|
|
2019
|
+
var Gs = Symbol("is custom element"), Us = Symbol("is html"), Ks = Lo ? "link" : "LINK";
|
|
2020
|
+
function Hn(e, t, r, n) {
|
|
2021
|
+
var i = Ys(e);
|
|
2022
|
+
if (M && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === Ks)) {
|
|
2023
2023
|
n || void 0;
|
|
2024
2024
|
return;
|
|
2025
2025
|
}
|
|
2026
|
-
i[t] !== (i[t] = r) && (t === "loading" && (e[
|
|
2026
|
+
i[t] !== (i[t] = r) && (t === "loading" && (e[Eo] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && Xs(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
2027
2027
|
}
|
|
2028
|
-
function
|
|
2028
|
+
function Ys(e) {
|
|
2029
2029
|
return e.__attributes ?? (e.__attributes = {
|
|
2030
|
-
[
|
|
2031
|
-
[
|
|
2030
|
+
[Gs]: e.nodeName.includes("-"),
|
|
2031
|
+
[Us]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
2032
2032
|
});
|
|
2033
2033
|
}
|
|
2034
|
-
var
|
|
2035
|
-
function
|
|
2036
|
-
var t = e.getAttribute("is") || e.nodeName, r =
|
|
2034
|
+
var Fn = /* @__PURE__ */ new Map();
|
|
2035
|
+
function Xs(e) {
|
|
2036
|
+
var t = e.getAttribute("is") || e.nodeName, r = Fn.get(t);
|
|
2037
2037
|
if (r) return r;
|
|
2038
|
-
|
|
2038
|
+
Fn.set(t, r = []);
|
|
2039
2039
|
for (var n, i = e, o = Element.prototype; o !== i; ) {
|
|
2040
|
-
n =
|
|
2040
|
+
n = yo(i);
|
|
2041
2041
|
for (var s in n) n[s].set && r.push(s);
|
|
2042
|
-
i =
|
|
2042
|
+
i = ri(i);
|
|
2043
2043
|
}
|
|
2044
2044
|
return r;
|
|
2045
2045
|
}
|
|
2046
|
-
var
|
|
2046
|
+
var Zi, ut = /* @__PURE__ */ new WeakMap(), fr = /* @__PURE__ */ new WeakMap(), Rr = /* @__PURE__ */ new WeakMap(), qn = /* @__PURE__ */ new WeakSet(), eo = class {
|
|
2047
2047
|
constructor(e) {
|
|
2048
|
-
|
|
2048
|
+
Xr(this, qn), k(this, ut, /* @__PURE__ */ new WeakMap()), k(this, fr, void 0), k(this, Rr, void 0), T(Rr, this, e);
|
|
2049
2049
|
}
|
|
2050
2050
|
observe(e, t) {
|
|
2051
2051
|
var r = c(ut, this).get(e) || /* @__PURE__ */ new Set();
|
|
2052
|
-
return r.add(t), c(ut, this).set(e, r),
|
|
2052
|
+
return r.add(t), c(ut, this).set(e, r), C(qn, this, Js).call(this).observe(e, c(Rr, this)), () => {
|
|
2053
2053
|
var n = c(ut, this).get(e);
|
|
2054
2054
|
n.delete(t), n.size === 0 && (c(ut, this).delete(e), c(fr, this).unobserve(e));
|
|
2055
2055
|
};
|
|
2056
2056
|
}
|
|
2057
2057
|
};
|
|
2058
|
-
|
|
2059
|
-
function
|
|
2058
|
+
Zi = eo;
|
|
2059
|
+
function Js() {
|
|
2060
2060
|
return c(fr, this) ?? T(fr, this, new ResizeObserver((e) => {
|
|
2061
2061
|
for (var t of e) {
|
|
2062
|
-
|
|
2062
|
+
Zi.entries.set(t.target, t);
|
|
2063
2063
|
for (var r of c(ut, this).get(t.target) || []) r(t);
|
|
2064
2064
|
}
|
|
2065
2065
|
}));
|
|
2066
2066
|
}
|
|
2067
|
-
b(
|
|
2068
|
-
function
|
|
2067
|
+
b(eo, "entries", /* @__PURE__ */ new WeakMap());
|
|
2068
|
+
function Gn(e, t) {
|
|
2069
2069
|
return e === t || e?.[Ot] === t;
|
|
2070
2070
|
}
|
|
2071
|
-
function
|
|
2071
|
+
function Un(e = {}, t, r, n) {
|
|
2072
2072
|
var i = z.r, o = A;
|
|
2073
|
-
return
|
|
2073
|
+
return Vi(() => {
|
|
2074
2074
|
var s, a;
|
|
2075
|
-
return
|
|
2076
|
-
s = a, a = n?.() || [],
|
|
2077
|
-
e !== r(...a) && (t(e, ...a), s &&
|
|
2075
|
+
return on(() => {
|
|
2076
|
+
s = a, a = n?.() || [], un(() => {
|
|
2077
|
+
e !== r(...a) && (t(e, ...a), s && Gn(r(...s), e) && t(null, ...s));
|
|
2078
2078
|
});
|
|
2079
2079
|
}), () => {
|
|
2080
2080
|
let l = o;
|
|
2081
2081
|
for (; l !== i && l.parent !== null && l.parent.f & 33554432; ) l = l.parent;
|
|
2082
2082
|
const u = () => {
|
|
2083
|
-
a &&
|
|
2084
|
-
},
|
|
2083
|
+
a && Gn(r(...a), e) && t(null, ...a);
|
|
2084
|
+
}, d = l.teardown;
|
|
2085
2085
|
l.teardown = () => {
|
|
2086
|
-
u(),
|
|
2086
|
+
u(), d?.();
|
|
2087
2087
|
};
|
|
2088
2088
|
};
|
|
2089
2089
|
}), e;
|
|
2090
2090
|
}
|
|
2091
|
-
function
|
|
2092
|
-
var i = !
|
|
2093
|
-
let
|
|
2091
|
+
function Mr(e, t, r, n) {
|
|
2092
|
+
var i = !gr || (r & 2) !== 0, o = (r & 8) !== 0, s = (r & 16) !== 0, a = n, l = !0, u = () => (l && (l = !1, a = s ? un(n) : n), a);
|
|
2093
|
+
let d;
|
|
2094
2094
|
if (o) {
|
|
2095
|
-
var
|
|
2096
|
-
|
|
2095
|
+
var p = Ot in e || ii in e;
|
|
2096
|
+
d = Ye(e, t)?.set ?? (p && t in e ? ($) => e[t] = $ : void 0);
|
|
2097
2097
|
}
|
|
2098
|
-
var f,
|
|
2099
|
-
o ? [f,
|
|
2098
|
+
var f, h = !1;
|
|
2099
|
+
o ? [f, h] = Xo(() => e[t]) : f = e[t], f === void 0 && n !== void 0 && (f = u(), d && (i && Vo(t), d(f)));
|
|
2100
2100
|
var g;
|
|
2101
2101
|
if (i ? g = () => {
|
|
2102
2102
|
var $ = e[t];
|
|
@@ -2105,31 +2105,31 @@ function Lr(e, t, r, n) {
|
|
|
2105
2105
|
var $ = e[t];
|
|
2106
2106
|
return $ !== void 0 && (a = void 0), $ === void 0 ? a : $;
|
|
2107
2107
|
}, i && !(r & 4)) return g;
|
|
2108
|
-
if (
|
|
2108
|
+
if (d) {
|
|
2109
2109
|
var w = e.$$legacy;
|
|
2110
|
-
return function($,
|
|
2111
|
-
return arguments.length > 0 ? ((!i || !
|
|
2110
|
+
return function($, P) {
|
|
2111
|
+
return arguments.length > 0 ? ((!i || !P || w || h) && d(P ? g() : $), $) : g();
|
|
2112
2112
|
};
|
|
2113
2113
|
}
|
|
2114
|
-
var
|
|
2114
|
+
var v = !1, y = (r & 1 ? _r : Zr)(() => (v = !1, g()));
|
|
2115
2115
|
o && _(y);
|
|
2116
|
-
var
|
|
2117
|
-
return function($,
|
|
2116
|
+
var x = A;
|
|
2117
|
+
return function($, P) {
|
|
2118
2118
|
if (arguments.length > 0) {
|
|
2119
|
-
const B =
|
|
2120
|
-
return E(y, B),
|
|
2119
|
+
const B = P ? _(y) : i && o ? Ue($) : $;
|
|
2120
|
+
return E(y, B), v = !0, a !== void 0 && (a = B), $;
|
|
2121
2121
|
}
|
|
2122
|
-
return ze &&
|
|
2122
|
+
return ze && v || x.f & 16384 ? y.v : _(y);
|
|
2123
2123
|
};
|
|
2124
2124
|
}
|
|
2125
|
-
function
|
|
2126
|
-
return new
|
|
2125
|
+
function Qs(e) {
|
|
2126
|
+
return new Zs(e);
|
|
2127
2127
|
}
|
|
2128
|
-
var
|
|
2128
|
+
var Fe = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), Zs = class {
|
|
2129
2129
|
constructor(e) {
|
|
2130
|
-
k(this,
|
|
2130
|
+
k(this, Fe, void 0), k(this, ve, void 0);
|
|
2131
2131
|
var t = /* @__PURE__ */ new Map(), r = (i, o) => {
|
|
2132
|
-
var s = /* @__PURE__ */
|
|
2132
|
+
var s = /* @__PURE__ */ Oi(o, !1, !1);
|
|
2133
2133
|
return t.set(i, s), s;
|
|
2134
2134
|
};
|
|
2135
2135
|
const n = new Proxy({
|
|
@@ -2140,13 +2140,13 @@ var He = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), Ys =
|
|
|
2140
2140
|
return _(t.get(o) ?? r(o, Reflect.get(i, o)));
|
|
2141
2141
|
},
|
|
2142
2142
|
has(i, o) {
|
|
2143
|
-
return o ===
|
|
2143
|
+
return o === ii ? !0 : (_(t.get(o) ?? r(o, Reflect.get(i, o))), Reflect.has(i, o));
|
|
2144
2144
|
},
|
|
2145
2145
|
set(i, o, s) {
|
|
2146
2146
|
return E(t.get(o) ?? r(o, s), s), Reflect.set(i, o, s);
|
|
2147
2147
|
}
|
|
2148
2148
|
});
|
|
2149
|
-
T(ve, this, (e.hydrate ?
|
|
2149
|
+
T(ve, this, (e.hydrate ? Ns : Ji)(e.component, {
|
|
2150
2150
|
target: e.target,
|
|
2151
2151
|
anchor: e.anchor,
|
|
2152
2152
|
props: n,
|
|
@@ -2154,7 +2154,7 @@ var He = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), Ys =
|
|
|
2154
2154
|
intro: e.intro ?? !1,
|
|
2155
2155
|
recover: e.recover,
|
|
2156
2156
|
transformError: e.transformError
|
|
2157
|
-
})), !je && (!e?.props?.$$host || e.sync === !1) && Zt(), T(
|
|
2157
|
+
})), !je && (!e?.props?.$$host || e.sync === !1) && Zt(), T(Fe, this, n.$$events);
|
|
2158
2158
|
for (const i of Object.keys(c(ve, this)))
|
|
2159
2159
|
i === "$set" || i === "$destroy" || i === "$on" || or(this, i, {
|
|
2160
2160
|
get() {
|
|
@@ -2168,24 +2168,24 @@ var He = /* @__PURE__ */ new WeakMap(), ve = /* @__PURE__ */ new WeakMap(), Ys =
|
|
|
2168
2168
|
c(ve, this).$set = (i) => {
|
|
2169
2169
|
Object.assign(n, i);
|
|
2170
2170
|
}, c(ve, this).$destroy = () => {
|
|
2171
|
-
|
|
2171
|
+
Ds(c(ve, this));
|
|
2172
2172
|
};
|
|
2173
2173
|
}
|
|
2174
2174
|
$set(e) {
|
|
2175
2175
|
c(ve, this).$set(e);
|
|
2176
2176
|
}
|
|
2177
2177
|
$on(e, t) {
|
|
2178
|
-
c(
|
|
2178
|
+
c(Fe, this)[e] = c(Fe, this)[e] || [];
|
|
2179
2179
|
const r = (...n) => t.call(this, ...n);
|
|
2180
|
-
return c(
|
|
2181
|
-
c(
|
|
2180
|
+
return c(Fe, this)[e].push(r), () => {
|
|
2181
|
+
c(Fe, this)[e] = c(Fe, this)[e].filter((n) => n !== r);
|
|
2182
2182
|
};
|
|
2183
2183
|
}
|
|
2184
2184
|
$destroy() {
|
|
2185
2185
|
c(ve, this).$destroy();
|
|
2186
2186
|
}
|
|
2187
|
-
},
|
|
2188
|
-
typeof HTMLElement == "function" && (
|
|
2187
|
+
}, to;
|
|
2188
|
+
typeof HTMLElement == "function" && (to = class extends HTMLElement {
|
|
2189
2189
|
constructor(e, t, r) {
|
|
2190
2190
|
super(), b(this, "$$ctor", void 0), b(this, "$$s", void 0), b(this, "$$c", void 0), b(this, "$$cn", !1), b(this, "$$d", {}), b(this, "$$r", !1), b(this, "$$p_d", {}), b(this, "$$l", {}), b(this, "$$l_u", /* @__PURE__ */ new Map()), b(this, "$$me", void 0), b(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
2191
2191
|
}
|
|
@@ -2206,19 +2206,19 @@ typeof HTMLElement == "function" && (Qi = class extends HTMLElement {
|
|
|
2206
2206
|
if (this.$$cn = !0, !this.$$c) {
|
|
2207
2207
|
let e = function(n) {
|
|
2208
2208
|
return (i) => {
|
|
2209
|
-
const o =
|
|
2210
|
-
n !== "default" && (o.name = n),
|
|
2209
|
+
const o = tn("slot");
|
|
2210
|
+
n !== "default" && (o.name = n), Pe(i, o);
|
|
2211
2211
|
};
|
|
2212
2212
|
};
|
|
2213
2213
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2214
|
-
const t = {}, r =
|
|
2214
|
+
const t = {}, r = ea(this);
|
|
2215
2215
|
for (const n of this.$$s) n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
|
|
2216
2216
|
for (const n of this.attributes) {
|
|
2217
2217
|
const i = this.$$g_p(n.name);
|
|
2218
2218
|
i in this.$$d || (this.$$d[i] = rr(i, n.value, this.$$p_d, "toProp"));
|
|
2219
2219
|
}
|
|
2220
2220
|
for (const n in this.$$p_d) !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
2221
|
-
this.$$c =
|
|
2221
|
+
this.$$c = Qs({
|
|
2222
2222
|
component: this.$$ctor,
|
|
2223
2223
|
target: this.$$shadowRoot || this,
|
|
2224
2224
|
props: {
|
|
@@ -2226,8 +2226,8 @@ typeof HTMLElement == "function" && (Qi = class extends HTMLElement {
|
|
|
2226
2226
|
$$slots: t,
|
|
2227
2227
|
$$host: this
|
|
2228
2228
|
}
|
|
2229
|
-
}), this.$$me =
|
|
2230
|
-
|
|
2229
|
+
}), this.$$me = ys(() => {
|
|
2230
|
+
on(() => {
|
|
2231
2231
|
this.$$r = !0;
|
|
2232
2232
|
for (const n of ir(this.$$c)) {
|
|
2233
2233
|
if (!this.$$p_d[n]?.reflect) continue;
|
|
@@ -2283,14 +2283,14 @@ function rr(e, t, r, n) {
|
|
|
2283
2283
|
return t;
|
|
2284
2284
|
}
|
|
2285
2285
|
}
|
|
2286
|
-
function
|
|
2286
|
+
function ea(e) {
|
|
2287
2287
|
const t = {};
|
|
2288
2288
|
return e.childNodes.forEach((r) => {
|
|
2289
2289
|
t[r.slot || "default"] = !0;
|
|
2290
2290
|
}), t;
|
|
2291
2291
|
}
|
|
2292
|
-
function
|
|
2293
|
-
let s = class extends
|
|
2292
|
+
function ta(e, t, r, n, i, o) {
|
|
2293
|
+
let s = class extends to {
|
|
2294
2294
|
constructor() {
|
|
2295
2295
|
super(e, r, i), this.$$p_d = t;
|
|
2296
2296
|
}
|
|
@@ -2315,14 +2315,14 @@ function Js(e, t, r, n, i, o) {
|
|
|
2315
2315
|
} });
|
|
2316
2316
|
}), o && (s = o(s)), e.element = s, s;
|
|
2317
2317
|
}
|
|
2318
|
-
var
|
|
2318
|
+
var ra = class extends Event {
|
|
2319
2319
|
constructor(e, t, r, n) {
|
|
2320
2320
|
super("context-request", {
|
|
2321
2321
|
bubbles: !0,
|
|
2322
2322
|
composed: !0
|
|
2323
2323
|
}), b(this, "context", void 0), b(this, "contextTarget", void 0), b(this, "callback", void 0), b(this, "subscribe", void 0), this.context = e, this.contextTarget = t, this.callback = r, this.subscribe = n ?? !1;
|
|
2324
2324
|
}
|
|
2325
|
-
},
|
|
2325
|
+
}, na = class {
|
|
2326
2326
|
constructor(e, t) {
|
|
2327
2327
|
b(this, "host", void 0), b(this, "context", void 0), b(this, "subscribe", void 0), b(this, "onValue", void 0), b(this, "isConnected", !1), b(this, "unsubscribe", void 0), b(this, "currentValue", void 0), b(this, "handleValue", (r, n) => {
|
|
2328
2328
|
n !== this.unsubscribe && (this.unsubscribe?.(), this.unsubscribe = n), !this.subscribe && this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0), this.currentValue = r, this.onValue?.(r);
|
|
@@ -2338,12 +2338,12 @@ var Qs = class extends Event {
|
|
|
2338
2338
|
return this.currentValue;
|
|
2339
2339
|
}
|
|
2340
2340
|
requestValue() {
|
|
2341
|
-
this.host.dispatchEvent(new
|
|
2341
|
+
this.host.dispatchEvent(new ra(this.context, this.host, this.handleValue, this.subscribe));
|
|
2342
2342
|
}
|
|
2343
|
-
},
|
|
2344
|
-
function
|
|
2343
|
+
}, mr = (e) => e, gl = mr(Symbol.for("pie.assessmentToolkit.runtimeContext")), _l = mr(Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), ia = mr(Symbol.for("pie.assessmentToolkit.shellContext")), oa = mr(Symbol.for("pie.assessmentToolkit.regionScopeContext"));
|
|
2344
|
+
function ro(e, t, r) {
|
|
2345
2345
|
let n = !1;
|
|
2346
|
-
const i = new
|
|
2346
|
+
const i = new na(e, {
|
|
2347
2347
|
context: t,
|
|
2348
2348
|
subscribe: !0,
|
|
2349
2349
|
onValue: (u) => {
|
|
@@ -2367,42 +2367,42 @@ function Zi(e, t, r) {
|
|
|
2367
2367
|
globalThis.clearInterval(l), e.removeEventListener("context-provider", o), i.disconnect();
|
|
2368
2368
|
};
|
|
2369
2369
|
}
|
|
2370
|
-
function
|
|
2371
|
-
return
|
|
2370
|
+
function sa(e, t) {
|
|
2371
|
+
return ro(e, ia, t);
|
|
2372
2372
|
}
|
|
2373
|
-
function
|
|
2374
|
-
return
|
|
2373
|
+
function aa(e, t) {
|
|
2374
|
+
return ro(e, oa, t);
|
|
2375
2375
|
}
|
|
2376
|
-
var
|
|
2376
|
+
var Kn;
|
|
2377
2377
|
(function(e) {
|
|
2378
2378
|
e.TTS_WORD = "tts-word", e.TTS_SENTENCE = "tts-sentence", e.ANNOTATION = "annotation";
|
|
2379
|
-
})(
|
|
2380
|
-
var
|
|
2379
|
+
})(Kn || (Kn = {}));
|
|
2380
|
+
var Ce;
|
|
2381
2381
|
(function(e) {
|
|
2382
2382
|
e.YELLOW = "yellow", e.GREEN = "green", e.BLUE = "blue", e.PINK = "pink", e.ORANGE = "orange", e.UNDERLINE = "underline";
|
|
2383
|
-
})(
|
|
2384
|
-
function
|
|
2383
|
+
})(Ce || (Ce = {}));
|
|
2384
|
+
function no(e) {
|
|
2385
2385
|
return (...t) => {
|
|
2386
2386
|
console.debug(`[${e}]`, ...t);
|
|
2387
2387
|
};
|
|
2388
2388
|
}
|
|
2389
|
-
var
|
|
2389
|
+
var ml = no("I18nService"), Pr = {
|
|
2390
2390
|
assessment: [],
|
|
2391
2391
|
section: [],
|
|
2392
2392
|
item: [],
|
|
2393
2393
|
passage: [],
|
|
2394
2394
|
rubric: [],
|
|
2395
2395
|
element: []
|
|
2396
|
-
},
|
|
2396
|
+
}, bl = {
|
|
2397
2397
|
section: [...Pr.section],
|
|
2398
2398
|
item: [...Pr.item],
|
|
2399
2399
|
passage: [...Pr.passage]
|
|
2400
2400
|
};
|
|
2401
|
-
function
|
|
2401
|
+
function la(e) {
|
|
2402
2402
|
const t = e.trim();
|
|
2403
2403
|
return t || "";
|
|
2404
2404
|
}
|
|
2405
|
-
var
|
|
2405
|
+
var ca = [
|
|
2406
2406
|
"assessment",
|
|
2407
2407
|
"section",
|
|
2408
2408
|
"item",
|
|
@@ -2413,10 +2413,10 @@ var oa = [
|
|
|
2413
2413
|
function nr(e, t) {
|
|
2414
2414
|
if (typeof e != "string" || e.trim().length === 0) throw new Error(`Invalid tool registration: "${t}" must be a non-empty string.`);
|
|
2415
2415
|
}
|
|
2416
|
-
function
|
|
2416
|
+
function Yn(e) {
|
|
2417
2417
|
if (nr(e.toolId, "toolId"), nr(e.name, "name"), nr(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.`);
|
|
2418
2418
|
if (!Array.isArray(e.supportedLevels) || e.supportedLevels.length === 0) throw new Error(`Invalid tool registration "${e.toolId}": "supportedLevels" must be a non-empty array.`);
|
|
2419
|
-
const t = e.supportedLevels.find((r) => !
|
|
2419
|
+
const t = e.supportedLevels.find((r) => !ca.includes(r));
|
|
2420
2420
|
if (t) throw new Error(`Invalid tool registration "${e.toolId}": unsupported level "${t}".`);
|
|
2421
2421
|
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)}".`);
|
|
2422
2422
|
if (e.singletonScope !== void 0 && e.singletonScope !== "section") throw new Error(`Invalid tool registration "${e.toolId}": unsupported singletonScope "${String(e.singletonScope)}".`);
|
|
@@ -2425,23 +2425,23 @@ function Un(e) {
|
|
|
2425
2425
|
if (typeof e.isVisibleInContext != "function") throw new Error(`Invalid tool registration "${e.toolId}": "isVisibleInContext" must be a function.`);
|
|
2426
2426
|
if (typeof e.renderToolbar != "function") throw new Error(`Invalid tool registration "${e.toolId}": "renderToolbar" must be a function.`);
|
|
2427
2427
|
}
|
|
2428
|
-
var
|
|
2428
|
+
var ua = class {
|
|
2429
2429
|
constructor() {
|
|
2430
2430
|
b(this, "tools", /* @__PURE__ */ new Map()), b(this, "pnpIndex", /* @__PURE__ */ new Map()), b(this, "componentOverrides", {}), b(this, "moduleLoaders", /* @__PURE__ */ new Map()), b(this, "loadedToolModules", /* @__PURE__ */ new Set()), b(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
|
|
2431
2431
|
}
|
|
2432
2432
|
normalizeToolId(e) {
|
|
2433
|
-
return
|
|
2433
|
+
return la(e);
|
|
2434
2434
|
}
|
|
2435
2435
|
normalizeToolIds(e) {
|
|
2436
2436
|
return e.map((t) => this.normalizeToolId(t));
|
|
2437
2437
|
}
|
|
2438
2438
|
register(e) {
|
|
2439
|
-
if (
|
|
2439
|
+
if (Yn(e), this.tools.has(e.toolId)) throw new Error(`Tool '${e.toolId}' is already registered`);
|
|
2440
2440
|
if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const t of e.pnpSupportIds)
|
|
2441
2441
|
this.pnpIndex.has(t) || this.pnpIndex.set(t, /* @__PURE__ */ new Set()), this.pnpIndex.get(t).add(e.toolId);
|
|
2442
2442
|
}
|
|
2443
2443
|
override(e) {
|
|
2444
|
-
if (
|
|
2444
|
+
if (Yn(e), !this.tools.has(e.toolId)) throw new Error(`Cannot override non-existent tool '${e.toolId}'`);
|
|
2445
2445
|
const t = this.tools.get(e.toolId);
|
|
2446
2446
|
if (t.pnpSupportIds) for (const r of t.pnpSupportIds) this.pnpIndex.get(r)?.delete(e.toolId);
|
|
2447
2447
|
if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const r of e.pnpSupportIds)
|
|
@@ -2568,20 +2568,20 @@ var sa = class {
|
|
|
2568
2568
|
return n.renderToolbar(t, i);
|
|
2569
2569
|
}
|
|
2570
2570
|
};
|
|
2571
|
-
function
|
|
2571
|
+
function io(e) {
|
|
2572
2572
|
return e.level === "item";
|
|
2573
2573
|
}
|
|
2574
|
-
function
|
|
2574
|
+
function fa(e) {
|
|
2575
2575
|
return e.level === "passage";
|
|
2576
2576
|
}
|
|
2577
|
-
function
|
|
2577
|
+
function da(e) {
|
|
2578
2578
|
return e.level === "rubric";
|
|
2579
2579
|
}
|
|
2580
|
-
function
|
|
2580
|
+
function oo(e) {
|
|
2581
2581
|
return e.level === "element";
|
|
2582
2582
|
}
|
|
2583
|
-
function
|
|
2584
|
-
if (
|
|
2583
|
+
function fn(e) {
|
|
2584
|
+
if (oo(e)) {
|
|
2585
2585
|
const t = e.item.config;
|
|
2586
2586
|
if (!t) return "";
|
|
2587
2587
|
const r = [], n = (a) => a.replace(/<[^>]*>/g, " ").trim(), i = t.elements?.[e.elementId];
|
|
@@ -2596,7 +2596,7 @@ function cn(e) {
|
|
|
2596
2596
|
}
|
|
2597
2597
|
return r.filter(Boolean).join(" ").trim();
|
|
2598
2598
|
}
|
|
2599
|
-
if (
|
|
2599
|
+
if (io(e)) {
|
|
2600
2600
|
const t = e.item;
|
|
2601
2601
|
if (!t?.config) return "";
|
|
2602
2602
|
const r = t.config, n = [], i = (l) => l.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2609,13 +2609,13 @@ function cn(e) {
|
|
|
2609
2609
|
if (!(!l || typeof l != "object")) {
|
|
2610
2610
|
for (const u of Object.values(l))
|
|
2611
2611
|
if (typeof u == "string" && n.push(i(u)), Array.isArray(u)) {
|
|
2612
|
-
for (const
|
|
2613
|
-
for (const
|
|
2612
|
+
for (const d of u) if (d && typeof d == "object")
|
|
2613
|
+
for (const p of Object.values(d)) typeof p == "string" && n.push(i(p));
|
|
2614
2614
|
}
|
|
2615
2615
|
}
|
|
2616
2616
|
return n.filter(Boolean).join(" ").trim();
|
|
2617
2617
|
}
|
|
2618
|
-
if (
|
|
2618
|
+
if (fa(e)) {
|
|
2619
2619
|
const t = e.passage;
|
|
2620
2620
|
if (!t?.config) return "";
|
|
2621
2621
|
const r = t.config, n = [], i = (l) => l.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2628,20 +2628,20 @@ function cn(e) {
|
|
|
2628
2628
|
if (!(!l || typeof l != "object")) {
|
|
2629
2629
|
for (const u of Object.values(l))
|
|
2630
2630
|
if (typeof u == "string" && n.push(i(u)), Array.isArray(u)) {
|
|
2631
|
-
for (const
|
|
2632
|
-
for (const
|
|
2631
|
+
for (const d of u) if (d && typeof d == "object")
|
|
2632
|
+
for (const p of Object.values(d)) typeof p == "string" && n.push(i(p));
|
|
2633
2633
|
}
|
|
2634
2634
|
}
|
|
2635
2635
|
return n.filter(Boolean).join(" ").trim();
|
|
2636
2636
|
}
|
|
2637
|
-
if (
|
|
2637
|
+
if (da(e)) {
|
|
2638
2638
|
const t = e.rubricBlock;
|
|
2639
2639
|
return t.passage?.config ? (t.passage.config.markup || "").replace(/<[^>]*>/g, " ").trim() : (t.content || "").replace(/<[^>]*>/g, " ").trim();
|
|
2640
2640
|
}
|
|
2641
2641
|
return "";
|
|
2642
2642
|
}
|
|
2643
|
-
function
|
|
2644
|
-
const t =
|
|
2643
|
+
function br(e) {
|
|
2644
|
+
const t = fn(e);
|
|
2645
2645
|
return [
|
|
2646
2646
|
/<math[>\s]/i,
|
|
2647
2647
|
/\\\[([^\]]+)\\\]/,
|
|
@@ -2651,7 +2651,7 @@ function mr(e) {
|
|
|
2651
2651
|
/\d+\s*[+\-*/=]\s*\d+/
|
|
2652
2652
|
].some((r) => r.test(t));
|
|
2653
2653
|
}
|
|
2654
|
-
function
|
|
2654
|
+
function ha(e) {
|
|
2655
2655
|
const t = [
|
|
2656
2656
|
"pie-multiple-choice",
|
|
2657
2657
|
"pie-inline-choice",
|
|
@@ -2660,7 +2660,7 @@ function ca(e) {
|
|
|
2660
2660
|
"inline-choice",
|
|
2661
2661
|
"select-text"
|
|
2662
2662
|
];
|
|
2663
|
-
if (
|
|
2663
|
+
if (oo(e)) {
|
|
2664
2664
|
const r = e.item.config;
|
|
2665
2665
|
if (!r?.models) return !1;
|
|
2666
2666
|
const n = (Array.isArray(r.models) ? r.models : Object.values(r.models)).find((o) => o && typeof o == "object" && o.id === e.elementId);
|
|
@@ -2668,7 +2668,7 @@ function ca(e) {
|
|
|
2668
2668
|
const i = n.element || "";
|
|
2669
2669
|
return t.includes(i);
|
|
2670
2670
|
}
|
|
2671
|
-
if (
|
|
2671
|
+
if (io(e)) {
|
|
2672
2672
|
const r = e.item.config?.models;
|
|
2673
2673
|
return (Array.isArray(r) ? r : r && typeof r == "object" ? Object.values(r) : []).some((n) => {
|
|
2674
2674
|
if (!n || typeof n != "object") return !1;
|
|
@@ -2678,11 +2678,11 @@ function ca(e) {
|
|
|
2678
2678
|
}
|
|
2679
2679
|
return !1;
|
|
2680
2680
|
}
|
|
2681
|
-
function
|
|
2682
|
-
return
|
|
2681
|
+
function yr(e) {
|
|
2682
|
+
return fn(e).trim().length >= 10;
|
|
2683
2683
|
}
|
|
2684
|
-
function
|
|
2685
|
-
const t =
|
|
2684
|
+
function va(e) {
|
|
2685
|
+
const t = fn(e);
|
|
2686
2686
|
return [
|
|
2687
2687
|
/chemistry|chemical|element|atom|molecule|compound/i,
|
|
2688
2688
|
/periodic\s+table/i,
|
|
@@ -2692,23 +2692,23 @@ function ua(e) {
|
|
|
2692
2692
|
/physics|force|energy|velocity|acceleration/i
|
|
2693
2693
|
].some((r) => r.test(t));
|
|
2694
2694
|
}
|
|
2695
|
-
var
|
|
2695
|
+
var pa = [
|
|
2696
2696
|
"assessment",
|
|
2697
2697
|
"section",
|
|
2698
2698
|
"item",
|
|
2699
2699
|
"passage",
|
|
2700
2700
|
"rubric"
|
|
2701
|
-
],
|
|
2702
|
-
function
|
|
2703
|
-
return
|
|
2701
|
+
], ga = new Set(pa);
|
|
2702
|
+
function _a(e) {
|
|
2703
|
+
return ga.has(e);
|
|
2704
2704
|
}
|
|
2705
|
-
function
|
|
2705
|
+
function dn(e, t, r) {
|
|
2706
2706
|
const n = e.trim(), i = r.trim();
|
|
2707
2707
|
if (!n || !i) throw new Error("Tool instance ids require non-empty tool and scope ids");
|
|
2708
|
-
if (!
|
|
2708
|
+
if (!_a(t)) throw new Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
|
|
2709
2709
|
return `${n}:${t}:${i}`;
|
|
2710
2710
|
}
|
|
2711
|
-
var
|
|
2711
|
+
var ma = class {
|
|
2712
2712
|
constructor() {
|
|
2713
2713
|
b(this, "providerId", "desmos-calculator"), b(this, "providerName", "Desmos Calculator"), b(this, "category", "calculator"), b(this, "version", "1.10"), b(this, "requiresAuth", !0), b(this, "desmosProvider", null), b(this, "config", null);
|
|
2714
2714
|
}
|
|
@@ -2783,7 +2783,7 @@ var va = class {
|
|
|
2783
2783
|
destroy() {
|
|
2784
2784
|
this.desmosProvider && (this.desmosProvider.destroy(), this.desmosProvider = null), this.config = null, console.log("[DesmosToolProvider] Destroyed");
|
|
2785
2785
|
}
|
|
2786
|
-
},
|
|
2786
|
+
}, ba = (e, t) => {
|
|
2787
2787
|
const r = t?.useSentenceSegmenter !== !1;
|
|
2788
2788
|
try {
|
|
2789
2789
|
if (!r) throw new Error("Segmenter disabled by policy");
|
|
@@ -2810,14 +2810,14 @@ var va = class {
|
|
|
2810
2810
|
text: e,
|
|
2811
2811
|
offset: 0
|
|
2812
2812
|
}];
|
|
2813
|
-
},
|
|
2813
|
+
}, ya = class {
|
|
2814
2814
|
constructor() {
|
|
2815
2815
|
b(this, "providerId", "browser"), b(this, "providerName", "Browser Speech Synthesis"), b(this, "version", "1.0.0");
|
|
2816
2816
|
}
|
|
2817
2817
|
async initialize(e) {
|
|
2818
2818
|
if (typeof window > "u") throw new Error("BrowserTTSProvider requires browser environment");
|
|
2819
2819
|
if (!("speechSynthesis" in window)) throw new Error("Browser does not support Speech Synthesis API");
|
|
2820
|
-
return new
|
|
2820
|
+
return new wa(e);
|
|
2821
2821
|
}
|
|
2822
2822
|
supportsFeature(e) {
|
|
2823
2823
|
return !0;
|
|
@@ -2834,7 +2834,7 @@ var va = class {
|
|
|
2834
2834
|
}
|
|
2835
2835
|
destroy() {
|
|
2836
2836
|
}
|
|
2837
|
-
},
|
|
2837
|
+
}, wa = class {
|
|
2838
2838
|
constructor(e) {
|
|
2839
2839
|
b(this, "utterance", null), b(this, "config", null), b(this, "_isPlaying", !1), b(this, "_isPaused", !1), b(this, "speakRunId", 0), b(this, "onWordBoundary", void 0), this.config = e;
|
|
2840
2840
|
}
|
|
@@ -2877,8 +2877,8 @@ var va = class {
|
|
|
2877
2877
|
i = a, o = u;
|
|
2878
2878
|
continue;
|
|
2879
2879
|
}
|
|
2880
|
-
const
|
|
2881
|
-
|
|
2880
|
+
const d = `${i} ${a}`;
|
|
2881
|
+
d.length <= 260 ? i = d : (n.push({
|
|
2882
2882
|
text: i,
|
|
2883
2883
|
offset: o
|
|
2884
2884
|
}), i = a, o = u);
|
|
@@ -2904,7 +2904,7 @@ var va = class {
|
|
|
2904
2904
|
}
|
|
2905
2905
|
segmentSentences(e) {
|
|
2906
2906
|
const t = this.getSegmentationPolicy();
|
|
2907
|
-
return
|
|
2907
|
+
return ba(e, {
|
|
2908
2908
|
locale: t.locale,
|
|
2909
2909
|
useSentenceSegmenter: t.useSentenceSegmenter
|
|
2910
2910
|
});
|
|
@@ -2947,8 +2947,8 @@ var va = class {
|
|
|
2947
2947
|
r === this.speakRunId && (this._isPaused = !1);
|
|
2948
2948
|
}, this.utterance.onboundary = (o) => {
|
|
2949
2949
|
if (r !== this.speakRunId || (console.log("[BrowserProvider] Boundary event:", o.name, "charIndex:", o.charIndex, "charLength:", o.charLength), o.name !== "word" || !this.onWordBoundary) || this.getHighlightMode() === "sentence") return;
|
|
2950
|
-
const s = Math.max(0, Math.min(o.charIndex, Math.max(0, e.length - 1))), a = Number(o.charLength || 0), l = this.inferWordLength(e, s), u = Number.isFinite(a) && a > 0 && a <= 80 && s + a <= e.length ? a : l,
|
|
2951
|
-
console.log("[BrowserProvider] Calling onWordBoundary with word:",
|
|
2950
|
+
const s = Math.max(0, Math.min(o.charIndex, Math.max(0, e.length - 1))), a = Number(o.charLength || 0), l = this.inferWordLength(e, s), u = Number.isFinite(a) && a > 0 && a <= 80 && s + a <= e.length ? a : l, d = e.substring(s, Math.min(e.length, s + u)).trim(), p = t + s;
|
|
2951
|
+
console.log("[BrowserProvider] Calling onWordBoundary with word:", d, "at position:", p), this.onWordBoundary(d, p, u);
|
|
2952
2952
|
}, speechSynthesis.speak(this.utterance);
|
|
2953
2953
|
});
|
|
2954
2954
|
}
|
|
@@ -2973,7 +2973,7 @@ var va = class {
|
|
|
2973
2973
|
...e.providerOptions || {}
|
|
2974
2974
|
});
|
|
2975
2975
|
}
|
|
2976
|
-
},
|
|
2976
|
+
}, Ta = class {
|
|
2977
2977
|
async emitTelemetry(e, t) {
|
|
2978
2978
|
try {
|
|
2979
2979
|
await this.config?.onTelemetry?.(e, t);
|
|
@@ -3005,7 +3005,7 @@ var va = class {
|
|
|
3005
3005
|
}
|
|
3006
3006
|
async _initializeBrowserTTS(e) {
|
|
3007
3007
|
if (typeof window > "u" || !("speechSynthesis" in window)) throw new Error("[TTSToolProvider] Browser TTS not supported (Web Speech API not available)");
|
|
3008
|
-
this.ttsProvider = new
|
|
3008
|
+
this.ttsProvider = new ya(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
|
|
3009
3009
|
}
|
|
3010
3010
|
async _initializeServerTTS(e) {
|
|
3011
3011
|
if (!e.apiEndpoint) throw new Error("[TTSToolProvider] apiEndpoint required for server-based TTS backends");
|
|
@@ -3061,7 +3061,7 @@ var va = class {
|
|
|
3061
3061
|
destroy() {
|
|
3062
3062
|
this.ttsProvider && (this.ttsProvider.destroy(), this.ttsProvider = null), this.config = null, console.log("[TTSToolProvider] Destroyed");
|
|
3063
3063
|
}
|
|
3064
|
-
},
|
|
3064
|
+
}, Sa = /* @__PURE__ */ new Set([
|
|
3065
3065
|
"annotation-xml",
|
|
3066
3066
|
"color-profile",
|
|
3067
3067
|
"font-face",
|
|
@@ -3070,16 +3070,16 @@ var va = class {
|
|
|
3070
3070
|
"font-face-format",
|
|
3071
3071
|
"font-face-name",
|
|
3072
3072
|
"missing-glyph"
|
|
3073
|
-
]),
|
|
3073
|
+
]), ka = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, Aa = (e, t = "custom element tag") => {
|
|
3074
3074
|
if (!e || typeof e != "string") throw new Error(`Invalid ${t}: expected a non-empty string`);
|
|
3075
3075
|
const r = e.trim();
|
|
3076
3076
|
if (!r) throw new Error(`Invalid ${t}: tag is empty`);
|
|
3077
3077
|
if (r !== r.toLowerCase()) throw new Error(`Invalid ${t} "${r}": custom element names must be lowercase`);
|
|
3078
3078
|
if (!r.includes("-")) throw new Error(`Invalid ${t} "${r}": custom element names must include a hyphen`);
|
|
3079
|
-
if (
|
|
3080
|
-
if (!
|
|
3079
|
+
if (Sa.has(r)) throw new Error(`Invalid ${t} "${r}": this name is reserved by the HTML spec`);
|
|
3080
|
+
if (!ka.test(r)) throw new Error(`Invalid ${t} "${r}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
|
|
3081
3081
|
return r;
|
|
3082
|
-
},
|
|
3082
|
+
}, so = {
|
|
3083
3083
|
calculator: "pie-tool-calculator",
|
|
3084
3084
|
textToSpeech: "pie-tool-text-to-speech",
|
|
3085
3085
|
ruler: "pie-tool-ruler",
|
|
@@ -3092,22 +3092,22 @@ var va = class {
|
|
|
3092
3092
|
annotationToolbar: "pie-tool-annotation-toolbar",
|
|
3093
3093
|
graph: "pie-tool-graph",
|
|
3094
3094
|
periodicTable: "pie-tool-periodic-table"
|
|
3095
|
-
},
|
|
3096
|
-
const i =
|
|
3095
|
+
}, Ia = (e, t) => Aa(t?.toolTagMap?.[e] ?? so[e] ?? e, `tool component tag for "${e}"`), $a = (e) => document.createElement(e), we = (e, t, r, n) => {
|
|
3096
|
+
const i = Ia(e, n), o = n?.toolComponentFactories?.[e] ?? n?.toolComponentFactory;
|
|
3097
3097
|
return o ? o({
|
|
3098
3098
|
toolId: e,
|
|
3099
3099
|
tagName: i,
|
|
3100
3100
|
context: t,
|
|
3101
3101
|
toolbarContext: r
|
|
3102
|
-
}) :
|
|
3103
|
-
},
|
|
3102
|
+
}) : $a(i);
|
|
3103
|
+
}, Ea = {
|
|
3104
3104
|
toolId: "calculator",
|
|
3105
3105
|
name: "Calculator",
|
|
3106
3106
|
description: "Multi-type calculator (basic, scientific, graphing)",
|
|
3107
3107
|
icon: "calculator",
|
|
3108
3108
|
provider: {
|
|
3109
3109
|
getProviderId: (e) => typeof e?.provider?.id == "string" && e.provider.id.length > 0 ? e.provider.id : "calculator-desmos",
|
|
3110
|
-
createProvider: () => new
|
|
3110
|
+
createProvider: () => new ma(),
|
|
3111
3111
|
getInitConfig: (e) => e?.provider?.init ?? {},
|
|
3112
3112
|
getAuthFetcher: (e) => {
|
|
3113
3113
|
const t = e?.provider?.runtime?.authFetcher;
|
|
@@ -3130,10 +3130,10 @@ var va = class {
|
|
|
3130
3130
|
"scientificCalculator"
|
|
3131
3131
|
],
|
|
3132
3132
|
isVisibleInContext(e) {
|
|
3133
|
-
return
|
|
3133
|
+
return br(e);
|
|
3134
3134
|
},
|
|
3135
3135
|
renderToolbar(e, t) {
|
|
3136
|
-
const r =
|
|
3136
|
+
const r = dn(this.toolId, t.scope.level, t.scope.scopeId), n = t.componentOverrides, i = we(this.toolId, e, t, n);
|
|
3137
3137
|
i.setAttribute("tool-id", r), i.toolkitCoordinator = t.toolkitCoordinator;
|
|
3138
3138
|
const o = {
|
|
3139
3139
|
toolId: this.toolId,
|
|
@@ -3173,37 +3173,55 @@ var va = class {
|
|
|
3173
3173
|
}
|
|
3174
3174
|
};
|
|
3175
3175
|
}
|
|
3176
|
-
},
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3176
|
+
}, Oa = /* @__PURE__ */ new Set([
|
|
3177
|
+
"reserved-row",
|
|
3178
|
+
"expanding-row",
|
|
3179
|
+
"floating-overlay",
|
|
3180
|
+
"left-aligned"
|
|
3181
|
+
]), Xn = (e) => e && typeof e == "object" ? e : {}, La = (e) => e === "polly" || e === "google" || e === "server", Q = (e, t) => e === void 0 ? t : e, dr = (e, t = "left-aligned") => typeof e == "string" && Oa.has(e) ? e : t, Jn = Object.freeze([0.8, 1.25]), Cr = (e) => {
|
|
3182
|
+
if (!Array.isArray(e)) return [...Jn];
|
|
3183
|
+
if (e.length === 0) return [];
|
|
3184
|
+
const t = /* @__PURE__ */ new Set();
|
|
3185
|
+
for (const r of e) {
|
|
3186
|
+
if (typeof r != "number" || !Number.isFinite(r) || r <= 0) continue;
|
|
3187
|
+
const n = Math.round(r * 100) / 100;
|
|
3188
|
+
n !== 1 && t.add(n);
|
|
3189
|
+
}
|
|
3190
|
+
return t.size ? Array.from(t) : [...Jn];
|
|
3191
|
+
}, Ra = (e) => {
|
|
3192
|
+
const t = {
|
|
3180
3193
|
...e,
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3194
|
+
layoutMode: dr(e.layoutMode)
|
|
3195
|
+
}, r = e.backend || "browser";
|
|
3196
|
+
if (!La(r)) return t;
|
|
3197
|
+
const n = {
|
|
3198
|
+
...t,
|
|
3199
|
+
apiEndpoint: Q(t.apiEndpoint, "/api/tts"),
|
|
3200
|
+
transportMode: Q(t.transportMode, "pie"),
|
|
3201
|
+
endpointValidationMode: Q(t.endpointValidationMode, "voices"),
|
|
3202
|
+
validateEndpoint: Q(t.validateEndpoint, !0),
|
|
3203
|
+
includeAuthOnAssetFetch: Q(t.includeAuthOnAssetFetch, !1),
|
|
3204
|
+
rate: Q(t.rate, 1),
|
|
3205
|
+
language: Q(t.language, "en-US")
|
|
3188
3206
|
};
|
|
3189
|
-
return
|
|
3190
|
-
...
|
|
3191
|
-
defaultVoice: Q(
|
|
3192
|
-
engine: Q(
|
|
3193
|
-
format: Q(
|
|
3194
|
-
speechMarksMode: Q(
|
|
3195
|
-
} :
|
|
3196
|
-
...
|
|
3197
|
-
defaultVoice: Q(
|
|
3198
|
-
} :
|
|
3199
|
-
},
|
|
3200
|
-
const t =
|
|
3201
|
-
return
|
|
3207
|
+
return r === "polly" ? {
|
|
3208
|
+
...n,
|
|
3209
|
+
defaultVoice: Q(n.defaultVoice, "Joanna"),
|
|
3210
|
+
engine: Q(n.engine, "neural"),
|
|
3211
|
+
format: Q(n.format, "mp3"),
|
|
3212
|
+
speechMarksMode: Q(n.speechMarksMode, "word+sentence")
|
|
3213
|
+
} : r === "google" ? {
|
|
3214
|
+
...n,
|
|
3215
|
+
defaultVoice: Q(n.defaultVoice, "en-US-Wavenet-A")
|
|
3216
|
+
} : n;
|
|
3217
|
+
}, xr = (e) => {
|
|
3218
|
+
const t = Xn(e), r = Xn(e?.settings);
|
|
3219
|
+
return Ra({
|
|
3202
3220
|
...t,
|
|
3203
3221
|
...r
|
|
3204
3222
|
});
|
|
3205
|
-
},
|
|
3206
|
-
const t =
|
|
3223
|
+
}, qr = (e) => e.backend || "browser", ao = (e, t) => t === "polly" || t === "google" ? t : e.serverProvider || e.provider, lo = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), Ma = (e) => {
|
|
3224
|
+
const t = qr(e), r = ao(e, t), n = lo(e, r);
|
|
3207
3225
|
return {
|
|
3208
3226
|
voice: e.defaultVoice,
|
|
3209
3227
|
rate: e.rate,
|
|
@@ -3227,45 +3245,63 @@ var va = class {
|
|
|
3227
3245
|
includeAuthOnAssetFetch: e.includeAuthOnAssetFetch,
|
|
3228
3246
|
validateEndpoint: e.validateEndpoint
|
|
3229
3247
|
};
|
|
3230
|
-
},
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3248
|
+
}, co = (e) => dr(e.layoutMode), Pa = (e) => {
|
|
3249
|
+
switch (co(e)) {
|
|
3250
|
+
case "reserved-row":
|
|
3251
|
+
return {
|
|
3252
|
+
mount: "before-buttons",
|
|
3253
|
+
controlsRow: {
|
|
3254
|
+
reserveSpace: !0,
|
|
3255
|
+
expandWhenToolActive: !1
|
|
3256
|
+
}
|
|
3257
|
+
};
|
|
3258
|
+
case "expanding-row":
|
|
3259
|
+
return {
|
|
3260
|
+
mount: "before-buttons",
|
|
3261
|
+
controlsRow: {
|
|
3262
|
+
reserveSpace: !1,
|
|
3263
|
+
expandWhenToolActive: !0
|
|
3264
|
+
}
|
|
3265
|
+
};
|
|
3266
|
+
default:
|
|
3267
|
+
return {
|
|
3268
|
+
mount: "before-buttons",
|
|
3269
|
+
controlsRow: {
|
|
3270
|
+
reserveSpace: !1,
|
|
3271
|
+
expandWhenToolActive: !1
|
|
3272
|
+
}
|
|
3273
|
+
};
|
|
3238
3274
|
}
|
|
3239
|
-
|
|
3240
|
-
}, Ra = {
|
|
3275
|
+
}, It = /* @__PURE__ */ new Map(), Ca = "__pieToolElementUnmount", Qn = "pie-tool-active-change", xa = {
|
|
3241
3276
|
toolId: "textToSpeech",
|
|
3242
3277
|
name: "Text to Speech",
|
|
3243
3278
|
description: "Read content aloud",
|
|
3244
3279
|
icon: "volume-up",
|
|
3245
3280
|
provider: {
|
|
3246
3281
|
getProviderId: () => "tts",
|
|
3247
|
-
createProvider: (e) => new
|
|
3282
|
+
createProvider: (e) => new Ta(qr(xr(e))),
|
|
3248
3283
|
getInitConfig: (e) => {
|
|
3249
|
-
const t =
|
|
3284
|
+
const t = xr(e), r = qr(t), n = ao(t, r);
|
|
3250
3285
|
return {
|
|
3251
3286
|
backend: r,
|
|
3252
3287
|
serverProvider: n,
|
|
3253
|
-
transportMode:
|
|
3254
|
-
|
|
3288
|
+
transportMode: lo(t, n),
|
|
3289
|
+
...Ma(t)
|
|
3255
3290
|
};
|
|
3256
3291
|
},
|
|
3257
3292
|
getAuthFetcher: (e) => {
|
|
3258
3293
|
const t = e?.provider?.runtime?.authFetcher;
|
|
3259
3294
|
return typeof t == "function" ? t : void 0;
|
|
3260
3295
|
},
|
|
3296
|
+
sanitizeConfig: (e) => {
|
|
3297
|
+
const t = e.settings && typeof e.settings == "object" ? { ...e.settings } : void 0;
|
|
3298
|
+
t && "layoutMode" in t && (t.layoutMode = dr(t.layoutMode)), t && "speedOptions" in t && (t.speedOptions = Cr(t.speedOptions));
|
|
3299
|
+
const r = { ...e };
|
|
3300
|
+
return "layoutMode" in r && (r.layoutMode = dr(r.layoutMode)), "speedOptions" in r && (r.speedOptions = Cr(r.speedOptions)), t && (r.settings = t), r;
|
|
3301
|
+
},
|
|
3261
3302
|
lazy: !0
|
|
3262
3303
|
},
|
|
3263
|
-
supportedLevels: [
|
|
3264
|
-
"section",
|
|
3265
|
-
"item",
|
|
3266
|
-
"passage",
|
|
3267
|
-
"rubric"
|
|
3268
|
-
],
|
|
3304
|
+
supportedLevels: ["item", "passage"],
|
|
3269
3305
|
pnpSupportIds: [
|
|
3270
3306
|
"textToSpeech",
|
|
3271
3307
|
"readAloud",
|
|
@@ -3273,34 +3309,47 @@ var va = class {
|
|
|
3273
3309
|
"speechOutput"
|
|
3274
3310
|
],
|
|
3275
3311
|
isVisibleInContext(e) {
|
|
3276
|
-
return
|
|
3312
|
+
return yr(e);
|
|
3277
3313
|
},
|
|
3278
3314
|
renderToolbar(e, t) {
|
|
3279
|
-
const r = () =>
|
|
3280
|
-
const
|
|
3281
|
-
return
|
|
3282
|
-
},
|
|
3283
|
-
let
|
|
3284
|
-
return
|
|
3285
|
-
It.get(
|
|
3286
|
-
}, It.set(
|
|
3287
|
-
};
|
|
3315
|
+
const r = () => xr(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), n = () => Cr(r().speedOptions), i = () => co(r()), o = () => Pa(r()), s = dn(this.toolId, t.scope.level, t.scope.scopeId), a = () => {
|
|
3316
|
+
const d = t.ui?.size;
|
|
3317
|
+
return d === "sm" || d === "lg" ? d : "md";
|
|
3318
|
+
}, l = () => {
|
|
3319
|
+
let d = It.get(s);
|
|
3320
|
+
return d && typeof d.isConnected == "boolean" && !d.isConnected && (It.delete(s), d = void 0), d || (d = document.createElement("pie-tool-tts-inline"), d[Ca] = () => {
|
|
3321
|
+
It.get(s) === d && It.delete(s);
|
|
3322
|
+
}, It.set(s, d)), d.setAttribute("tool-id", s), d.setAttribute("catalog-id", t.catalogId || t.itemId), d.setAttribute("language", t.language || "en-US"), d.setAttribute("size", a()), d.setAttribute("layout-mode", i()), d.speedOptions = n(), d;
|
|
3323
|
+
}, u = o();
|
|
3288
3324
|
return {
|
|
3289
3325
|
toolId: this.toolId,
|
|
3290
3326
|
button: null,
|
|
3291
3327
|
elements: [{
|
|
3292
|
-
element:
|
|
3293
|
-
mount:
|
|
3328
|
+
element: l(),
|
|
3329
|
+
mount: u.mount,
|
|
3330
|
+
layoutHints: { controlsRow: {
|
|
3331
|
+
reserveSpace: u.controlsRow.reserveSpace,
|
|
3332
|
+
showWhenToolActive: u.controlsRow.expandWhenToolActive
|
|
3333
|
+
} }
|
|
3294
3334
|
}],
|
|
3335
|
+
subscribeActive: (d) => {
|
|
3336
|
+
const p = l(), f = (h) => {
|
|
3337
|
+
const g = h.detail;
|
|
3338
|
+
d(g?.active === !0);
|
|
3339
|
+
};
|
|
3340
|
+
return p.addEventListener(Qn, f), () => {
|
|
3341
|
+
p.removeEventListener(Qn, f);
|
|
3342
|
+
};
|
|
3343
|
+
},
|
|
3295
3344
|
sync: () => {
|
|
3296
|
-
const
|
|
3297
|
-
|
|
3345
|
+
const d = l();
|
|
3346
|
+
d.setAttribute("tool-id", s), d.setAttribute("catalog-id", t.catalogId || t.itemId), d.setAttribute("language", t.language || "en-US"), d.setAttribute("size", a()), d.setAttribute("layout-mode", i()), d.speedOptions = n();
|
|
3298
3347
|
}
|
|
3299
3348
|
};
|
|
3300
3349
|
}
|
|
3301
3350
|
};
|
|
3302
3351
|
function Ee(e, t) {
|
|
3303
|
-
const r =
|
|
3352
|
+
const r = dn(e, t.scope.level, t.scope.scopeId);
|
|
3304
3353
|
return {
|
|
3305
3354
|
fullToolId: r,
|
|
3306
3355
|
isActive: () => t.isToolVisible(r),
|
|
@@ -3314,18 +3363,22 @@ function Oe(e) {
|
|
|
3314
3363
|
const t = e.isActive();
|
|
3315
3364
|
e.button.active = t, e.overlay.visible = t, e.onActiveChange?.(t);
|
|
3316
3365
|
}
|
|
3317
|
-
function
|
|
3366
|
+
function hn(e, t) {
|
|
3318
3367
|
e.setAttribute("data-pie-tool-surface", t);
|
|
3319
3368
|
}
|
|
3320
|
-
var
|
|
3369
|
+
var Na = {
|
|
3321
3370
|
toolId: "ruler",
|
|
3322
3371
|
name: "Ruler",
|
|
3323
3372
|
description: "On-screen ruler for measurements",
|
|
3324
3373
|
icon: "ruler",
|
|
3325
|
-
supportedLevels: [
|
|
3374
|
+
supportedLevels: [
|
|
3375
|
+
"section",
|
|
3376
|
+
"item",
|
|
3377
|
+
"element"
|
|
3378
|
+
],
|
|
3326
3379
|
pnpSupportIds: ["ruler", "measurement"],
|
|
3327
3380
|
isVisibleInContext(e) {
|
|
3328
|
-
return
|
|
3381
|
+
return br(e);
|
|
3329
3382
|
},
|
|
3330
3383
|
renderToolbar(e, t) {
|
|
3331
3384
|
const r = Ee(this.toolId, t), n = {
|
|
@@ -3338,7 +3391,7 @@ var La = {
|
|
|
3338
3391
|
onClick: () => t.toggleTool(this.toolId),
|
|
3339
3392
|
active: r.isActive()
|
|
3340
3393
|
}, i = t.componentOverrides ?? {}, o = we(this.toolId, e, t, i);
|
|
3341
|
-
return o.setAttribute("tool-id", r.fullToolId),
|
|
3394
|
+
return o.setAttribute("tool-id", r.fullToolId), hn(o, "frameless"), {
|
|
3342
3395
|
toolId: this.toolId,
|
|
3343
3396
|
button: n,
|
|
3344
3397
|
elements: [{
|
|
@@ -3355,15 +3408,19 @@ var La = {
|
|
|
3355
3408
|
subscribeActive: r.subscribeActive
|
|
3356
3409
|
};
|
|
3357
3410
|
}
|
|
3358
|
-
},
|
|
3411
|
+
}, Da = {
|
|
3359
3412
|
toolId: "protractor",
|
|
3360
3413
|
name: "Protractor",
|
|
3361
3414
|
description: "On-screen protractor for angle measurements",
|
|
3362
3415
|
icon: "protractor",
|
|
3363
|
-
supportedLevels: [
|
|
3416
|
+
supportedLevels: [
|
|
3417
|
+
"section",
|
|
3418
|
+
"item",
|
|
3419
|
+
"element"
|
|
3420
|
+
],
|
|
3364
3421
|
pnpSupportIds: ["protractor", "angleMeasurement"],
|
|
3365
3422
|
isVisibleInContext(e) {
|
|
3366
|
-
return
|
|
3423
|
+
return br(e);
|
|
3367
3424
|
},
|
|
3368
3425
|
renderToolbar(e, t) {
|
|
3369
3426
|
const r = Ee(this.toolId, t), n = {
|
|
@@ -3376,7 +3433,7 @@ var La = {
|
|
|
3376
3433
|
onClick: () => t.toggleTool(this.toolId),
|
|
3377
3434
|
active: r.isActive()
|
|
3378
3435
|
}, i = t.componentOverrides ?? {}, o = we(this.toolId, e, t, i);
|
|
3379
|
-
return o.setAttribute("tool-id", r.fullToolId),
|
|
3436
|
+
return o.setAttribute("tool-id", r.fullToolId), hn(o, "frameless"), {
|
|
3380
3437
|
toolId: this.toolId,
|
|
3381
3438
|
button: n,
|
|
3382
3439
|
elements: [{
|
|
@@ -3393,7 +3450,7 @@ var La = {
|
|
|
3393
3450
|
subscribeActive: r.subscribeActive
|
|
3394
3451
|
};
|
|
3395
3452
|
}
|
|
3396
|
-
},
|
|
3453
|
+
}, Va = {
|
|
3397
3454
|
toolId: "answerEliminator",
|
|
3398
3455
|
name: "Answer Eliminator",
|
|
3399
3456
|
description: "Strike through answer choices",
|
|
@@ -3406,7 +3463,7 @@ var La = {
|
|
|
3406
3463
|
"choiceMasking"
|
|
3407
3464
|
],
|
|
3408
3465
|
isVisibleInContext(e) {
|
|
3409
|
-
return
|
|
3466
|
+
return ha(e);
|
|
3410
3467
|
},
|
|
3411
3468
|
renderToolbar(e, t) {
|
|
3412
3469
|
const r = Ee(this.toolId, t), n = t.componentOverrides ?? {}, i = we(this.toolId, e, t, n);
|
|
@@ -3440,7 +3497,7 @@ var La = {
|
|
|
3440
3497
|
subscribeActive: r.subscribeActive
|
|
3441
3498
|
};
|
|
3442
3499
|
}
|
|
3443
|
-
},
|
|
3500
|
+
}, ja = {
|
|
3444
3501
|
toolId: "highlighter",
|
|
3445
3502
|
name: "Highlighter",
|
|
3446
3503
|
description: "Highlight text",
|
|
@@ -3458,7 +3515,7 @@ var La = {
|
|
|
3458
3515
|
"annotation"
|
|
3459
3516
|
],
|
|
3460
3517
|
isVisibleInContext(e) {
|
|
3461
|
-
return
|
|
3518
|
+
return yr(e);
|
|
3462
3519
|
},
|
|
3463
3520
|
renderToolbar(e, t) {
|
|
3464
3521
|
const r = Ee(this.toolId, t), n = {
|
|
@@ -3491,12 +3548,13 @@ var La = {
|
|
|
3491
3548
|
subscribeActive: r.subscribeActive
|
|
3492
3549
|
};
|
|
3493
3550
|
}
|
|
3494
|
-
},
|
|
3551
|
+
}, za = {
|
|
3495
3552
|
toolId: "lineReader",
|
|
3496
3553
|
name: "Line Reader",
|
|
3497
3554
|
description: "Reading guide overlay",
|
|
3498
3555
|
icon: "bars-3",
|
|
3499
3556
|
supportedLevels: [
|
|
3557
|
+
"section",
|
|
3500
3558
|
"passage",
|
|
3501
3559
|
"rubric",
|
|
3502
3560
|
"item"
|
|
@@ -3509,7 +3567,7 @@ var La = {
|
|
|
3509
3567
|
"trackingGuide"
|
|
3510
3568
|
],
|
|
3511
3569
|
isVisibleInContext(e) {
|
|
3512
|
-
return
|
|
3570
|
+
return yr(e);
|
|
3513
3571
|
},
|
|
3514
3572
|
renderToolbar(e, t) {
|
|
3515
3573
|
const r = Ee(this.toolId, t), n = {
|
|
@@ -3522,7 +3580,7 @@ var La = {
|
|
|
3522
3580
|
onClick: () => t.toggleTool(this.toolId),
|
|
3523
3581
|
active: r.isActive()
|
|
3524
3582
|
}, i = t.componentOverrides ?? {}, o = we(this.toolId, e, t, i);
|
|
3525
|
-
return o.setAttribute("tool-id", r.fullToolId),
|
|
3583
|
+
return o.setAttribute("tool-id", r.fullToolId), hn(o, "frameless"), {
|
|
3526
3584
|
toolId: this.toolId,
|
|
3527
3585
|
button: n,
|
|
3528
3586
|
elements: [{
|
|
@@ -3539,7 +3597,7 @@ var La = {
|
|
|
3539
3597
|
subscribeActive: r.subscribeActive
|
|
3540
3598
|
};
|
|
3541
3599
|
}
|
|
3542
|
-
},
|
|
3600
|
+
}, Wa = {
|
|
3543
3601
|
toolId: "theme",
|
|
3544
3602
|
name: "Theme",
|
|
3545
3603
|
description: "Accessible themes and contrast",
|
|
@@ -3595,7 +3653,7 @@ var La = {
|
|
|
3595
3653
|
subscribeActive: r.subscribeActive
|
|
3596
3654
|
};
|
|
3597
3655
|
}
|
|
3598
|
-
},
|
|
3656
|
+
}, Ba = {
|
|
3599
3657
|
toolId: "annotationToolbar",
|
|
3600
3658
|
name: "Highlighter",
|
|
3601
3659
|
description: "Highlight and annotate text",
|
|
@@ -3616,7 +3674,7 @@ var La = {
|
|
|
3616
3674
|
"annotation"
|
|
3617
3675
|
],
|
|
3618
3676
|
isVisibleInContext(e) {
|
|
3619
|
-
return
|
|
3677
|
+
return yr(e);
|
|
3620
3678
|
},
|
|
3621
3679
|
renderToolbar(e, t) {
|
|
3622
3680
|
const r = Ee(this.toolId, t), n = {
|
|
@@ -3646,7 +3704,7 @@ var La = {
|
|
|
3646
3704
|
subscribeActive: r.subscribeActive
|
|
3647
3705
|
};
|
|
3648
3706
|
}
|
|
3649
|
-
},
|
|
3707
|
+
}, Ha = {
|
|
3650
3708
|
toolId: "graph",
|
|
3651
3709
|
name: "Graph",
|
|
3652
3710
|
description: "Graphing calculator and coordinate plane",
|
|
@@ -3659,7 +3717,7 @@ var La = {
|
|
|
3659
3717
|
"graphingTool"
|
|
3660
3718
|
],
|
|
3661
3719
|
isVisibleInContext(e) {
|
|
3662
|
-
return
|
|
3720
|
+
return br(e);
|
|
3663
3721
|
},
|
|
3664
3722
|
renderToolbar(e, t) {
|
|
3665
3723
|
const r = Ee(this.toolId, t), n = {
|
|
@@ -3699,7 +3757,7 @@ var La = {
|
|
|
3699
3757
|
subscribeActive: r.subscribeActive
|
|
3700
3758
|
};
|
|
3701
3759
|
}
|
|
3702
|
-
},
|
|
3760
|
+
}, Fa = {
|
|
3703
3761
|
toolId: "periodicTable",
|
|
3704
3762
|
name: "Periodic Table",
|
|
3705
3763
|
description: "Chemistry periodic table reference",
|
|
@@ -3711,7 +3769,7 @@ var La = {
|
|
|
3711
3769
|
"elementReference"
|
|
3712
3770
|
],
|
|
3713
3771
|
isVisibleInContext(e) {
|
|
3714
|
-
return
|
|
3772
|
+
return va(e);
|
|
3715
3773
|
},
|
|
3716
3774
|
renderToolbar(e, t) {
|
|
3717
3775
|
const r = Ee(this.toolId, t), n = {
|
|
@@ -3751,54 +3809,54 @@ var La = {
|
|
|
3751
3809
|
subscribeActive: r.subscribeActive
|
|
3752
3810
|
};
|
|
3753
3811
|
}
|
|
3754
|
-
},
|
|
3755
|
-
|
|
3756
|
-
Ra,
|
|
3757
|
-
La,
|
|
3758
|
-
Pa,
|
|
3759
|
-
Ca,
|
|
3812
|
+
}, qa = [
|
|
3813
|
+
Ea,
|
|
3760
3814
|
xa,
|
|
3761
|
-
Ma,
|
|
3762
3815
|
Na,
|
|
3763
3816
|
Da,
|
|
3764
3817
|
Va,
|
|
3765
|
-
ja
|
|
3818
|
+
ja,
|
|
3819
|
+
za,
|
|
3820
|
+
Wa,
|
|
3821
|
+
Ba,
|
|
3822
|
+
Ha,
|
|
3823
|
+
Fa
|
|
3766
3824
|
];
|
|
3767
|
-
function
|
|
3768
|
-
const t = new
|
|
3825
|
+
function Ga(e = {}) {
|
|
3826
|
+
const t = new ua(), r = {
|
|
3769
3827
|
toolTagMap: {
|
|
3770
|
-
...
|
|
3828
|
+
...so,
|
|
3771
3829
|
...e.toolTagMap || {}
|
|
3772
3830
|
},
|
|
3773
3831
|
toolComponentFactory: e.toolComponentFactory,
|
|
3774
3832
|
toolComponentFactories: e.toolComponentFactories
|
|
3775
3833
|
}, n = (i) => e.overrides?.[i.toolId] || i;
|
|
3776
|
-
return e.includePackagedTools &&
|
|
3834
|
+
return e.includePackagedTools && Ua(t, {
|
|
3777
3835
|
toolIds: e.toolIds,
|
|
3778
3836
|
applyOverrides: n
|
|
3779
3837
|
}), e.toolModuleLoaders && Object.keys(e.toolModuleLoaders).length > 0 && t.setToolModuleLoaders(e.toolModuleLoaders), t.setComponentOverrides(r), t;
|
|
3780
3838
|
}
|
|
3781
|
-
function
|
|
3839
|
+
function Ua(e, t = {}) {
|
|
3782
3840
|
const r = t.toolIds && t.toolIds.length > 0 ? new Set(t.toolIds) : null, n = t.applyOverrides || ((i) => i);
|
|
3783
|
-
for (const i of
|
|
3841
|
+
for (const i of qa)
|
|
3784
3842
|
r && !r.has(i.toolId) || e.register(n(i));
|
|
3785
3843
|
}
|
|
3786
|
-
function
|
|
3787
|
-
return
|
|
3844
|
+
function Ka(e = {}) {
|
|
3845
|
+
return Ga({
|
|
3788
3846
|
...e,
|
|
3789
3847
|
includePackagedTools: !0
|
|
3790
3848
|
});
|
|
3791
3849
|
}
|
|
3792
|
-
function
|
|
3793
|
-
const e =
|
|
3850
|
+
function Ya() {
|
|
3851
|
+
const e = Ka(), t = /* @__PURE__ */ new Set();
|
|
3794
3852
|
for (const r of e.getAllTools()) for (const n of r.pnpSupportIds || []) t.add(n);
|
|
3795
3853
|
return [...t].sort();
|
|
3796
3854
|
}
|
|
3797
|
-
var
|
|
3798
|
-
supports: [...
|
|
3855
|
+
var Xa = Ya(), yl = {
|
|
3856
|
+
supports: [...Xa],
|
|
3799
3857
|
prohibitedSupports: [],
|
|
3800
3858
|
activateAtInit: []
|
|
3801
|
-
},
|
|
3859
|
+
}, Ja = {
|
|
3802
3860
|
visual: {
|
|
3803
3861
|
magnification: "magnification",
|
|
3804
3862
|
screenMagnifier: "screenMagnifier",
|
|
@@ -3911,15 +3969,15 @@ var qa = Ha(), pl = {
|
|
|
3911
3969
|
itemGlossary: "itemGlossary",
|
|
3912
3970
|
tutorialAvailable: "tutorialAvailable"
|
|
3913
3971
|
}
|
|
3914
|
-
},
|
|
3972
|
+
}, wl = Object.values(Ja).flatMap((e) => Object.values(e)), Tl = no("ToolCoordinator"), Zn;
|
|
3915
3973
|
(function(e) {
|
|
3916
3974
|
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";
|
|
3917
|
-
})(
|
|
3918
|
-
var
|
|
3975
|
+
})(Zn || (Zn = {}));
|
|
3976
|
+
var ei;
|
|
3919
3977
|
(function(e) {
|
|
3920
3978
|
e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
|
|
3921
|
-
})(
|
|
3922
|
-
var
|
|
3979
|
+
})(ei || (ei = {}));
|
|
3980
|
+
var Qa = /* @__PURE__ */ st('<button class="pie-tool-annotation-toolbar__highlight-swatch svelte-g8qu62"><span class="pie-sr-only svelte-g8qu62"> </span></button>'), Za = /* @__PURE__ */ st('<div class="divider divider-horizontal mx-0 w-px svelte-g8qu62"></div> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-g8qu62" aria-label="Read selected text aloud" title="Read Aloud"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z"></path></svg></button>', 1), el = /* @__PURE__ */ st('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--warning svelte-g8qu62" aria-label="Remove this annotation" title="Remove"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"></path></svg></button>'), tl = /* @__PURE__ */ st('<button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--danger svelte-g8qu62" aria-label="Clear all annotations from document" title="Clear All">Clear All</button>'), rl = /* @__PURE__ */ st('<div class="divider divider-horizontal mx-0 w-px svelte-g8qu62"></div> <!> <!>', 1), nl = /* @__PURE__ */ st('<div class="pie-tool-annotation-toolbar notranslate svelte-g8qu62" role="toolbar" aria-label="Text annotation toolbar" translate="no"><!> <button class="pie-tool-annotation-toolbar__button pie-tool-annotation-toolbar__button--icon svelte-g8qu62" aria-label="Underline selected text" title="Underline"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18" fill="currentColor" aria-hidden="true" class="svelte-g8qu62"><path d="M5,21H19V19H5V21M12,17A6,6 0 0,0 18,11V3H15.5V11A3.5,3.5 0 0,1 12,14.5A3.5,3.5 0 0,1 8.5,11V3H6V11A6,6 0 0,0 12,17Z"></path></svg></button> <!> <!></div>'), il = /* @__PURE__ */ st('<div style="display: none;" aria-hidden="true"></div> <!> <div role="status" aria-live="polite" aria-atomic="true" class="pie-sr-only svelte-g8qu62"> </div>', 1), ol = {
|
|
3923
3981
|
hash: "svelte-g8qu62",
|
|
3924
3982
|
code: `.pie-tool-annotation-toolbar.svelte-g8qu62 {position:fixed;z-index:4200;display:flex;gap:0.25rem;padding:0.5rem;border-radius:0.5rem;background:var(--pie-background, #fff);color:var(--pie-text, #111827);border:1px solid var(--pie-border, #d1d5db);box-shadow:0 10px 25px -8px rgb(0 0 0 / 0.3);user-select:none;}.pie-tool-annotation-toolbar__highlight-swatch.svelte-g8qu62 {width:2.5rem;height:2rem;border:2px solid color-mix(in srgb, var(--pie-border-dark, #111827) 20%, transparent);border-radius:0.375rem;cursor:pointer;transition:all 0.15s ease;display:flex;align-items:center;justify-content:center;padding:0;}.pie-tool-annotation-toolbar__highlight-swatch.svelte-g8qu62:hover {transform:scale(1.1);border-color:color-mix(in srgb, var(--pie-border-dark, #111827) 45%, transparent);box-shadow:0 2px 8px rgb(0 0 0 / 0.15);}.pie-tool-annotation-toolbar__highlight-swatch.svelte-g8qu62:focus-visible {outline:2px solid var(--pie-button-focus-outline, var(--pie-primary, #3f51b5));outline-offset:2px;}.pie-tool-annotation-toolbar.svelte-g8qu62 .divider-horizontal:where(.svelte-g8qu62) {height:auto;width:1px;background-color:color-mix(in srgb, var(--pie-border, #d1d5db) 70%, transparent);}
|
|
3925
3983
|
|
|
@@ -3927,27 +3985,27 @@ var Ua = /* @__PURE__ */ st('<button class="pie-tool-annotation-toolbar__highlig
|
|
|
3927
3985
|
|
|
3928
3986
|
/* Button styling */.pie-tool-annotation-toolbar__button.svelte-g8qu62 {display:inline-flex;align-items:center;justify-content:center;gap:0.35rem;padding:0.4rem 0.55rem;border:1px solid var(--pie-button-border, #d1d5db);border-radius:0.4rem;background:var(--pie-button-bg, #fff);color:var(--pie-button-color, var(--pie-text, #111827));cursor:pointer;}.pie-tool-annotation-toolbar__button--icon.svelte-g8qu62 {min-width:2rem;min-height:2rem;padding:0.45rem;}.pie-tool-annotation-toolbar__button.svelte-g8qu62:hover {background:var(--pie-button-hover-bg, #f9fafb);color:var(--pie-button-hover-color, var(--pie-text, #111827));border-color:var(--pie-button-hover-border, #9ca3af);}.pie-tool-annotation-toolbar__button.svelte-g8qu62:focus-visible {outline:2px solid var(--pie-button-focus-outline, var(--pie-primary, #3f51b5));outline-offset:2px;}.pie-tool-annotation-toolbar__button.svelte-g8qu62:disabled {opacity:0.6;cursor:not-allowed;}.pie-tool-annotation-toolbar__button--warning.svelte-g8qu62 {color:var(--pie-missing-icon, #92400e);}.pie-tool-annotation-toolbar__button--danger.svelte-g8qu62 {color:var(--pie-incorrect-icon, #b91c1c);}.pie-tool-annotation-toolbar__button.svelte-g8qu62 svg:where(.svelte-g8qu62) {width:18px;height:18px;}`
|
|
3929
3987
|
};
|
|
3930
|
-
function
|
|
3931
|
-
|
|
3932
|
-
let r =
|
|
3988
|
+
function sl(e, t) {
|
|
3989
|
+
li(t, !0), Fs(e, ol);
|
|
3990
|
+
let r = Mr(t, "enabled", 7, !0), n = Mr(t, "highlightCoordinator", 7, null), i = Mr(t, "ttsService", 7, null);
|
|
3933
3991
|
const o = typeof window < "u", s = "pie-annotations", a = [
|
|
3934
3992
|
{
|
|
3935
|
-
name:
|
|
3993
|
+
name: Ce.YELLOW,
|
|
3936
3994
|
hex: "#fde995",
|
|
3937
3995
|
label: "Yellow highlight"
|
|
3938
3996
|
},
|
|
3939
3997
|
{
|
|
3940
|
-
name:
|
|
3998
|
+
name: Ce.PINK,
|
|
3941
3999
|
hex: "#ff9fae",
|
|
3942
4000
|
label: "Pink highlight"
|
|
3943
4001
|
},
|
|
3944
4002
|
{
|
|
3945
|
-
name:
|
|
4003
|
+
name: Ce.BLUE,
|
|
3946
4004
|
hex: "#a7e0f6",
|
|
3947
4005
|
label: "Blue highlight"
|
|
3948
4006
|
},
|
|
3949
4007
|
{
|
|
3950
|
-
name:
|
|
4008
|
+
name: Ce.GREEN,
|
|
3951
4009
|
hex: "#a6e1c5",
|
|
3952
4010
|
label: "Green highlight"
|
|
3953
4011
|
}
|
|
@@ -3962,7 +4020,7 @@ function tl(e, t) {
|
|
|
3962
4020
|
'[role="button"]',
|
|
3963
4021
|
'[role="textbox"]'
|
|
3964
4022
|
];
|
|
3965
|
-
let u = /* @__PURE__ */ j(null),
|
|
4023
|
+
let u = /* @__PURE__ */ j(null), d = /* @__PURE__ */ j(null), p = /* @__PURE__ */ j(null), f = /* @__PURE__ */ j(null), h = /* @__PURE__ */ j(Ue({
|
|
3966
4024
|
isVisible: !1,
|
|
3967
4025
|
selectedText: "",
|
|
3968
4026
|
selectedRange: null,
|
|
@@ -3970,20 +4028,20 @@ function tl(e, t) {
|
|
|
3970
4028
|
x: 0,
|
|
3971
4029
|
y: 0
|
|
3972
4030
|
}
|
|
3973
|
-
})), g = /* @__PURE__ */ j(!1), w = /* @__PURE__ */ j(!1),
|
|
4031
|
+
})), g = /* @__PURE__ */ j(!1), w = /* @__PURE__ */ j(!1), v = /* @__PURE__ */ j(""), y = /* @__PURE__ */ j(0), x = /* @__PURE__ */ j(null), $ = /* @__PURE__ */ Ar(() => _(y) > 0), P = /* @__PURE__ */ Ar(() => _(x) !== null), B = /* @__PURE__ */ Ar(() => _(f)?.scopeElement || _(p)?.scopeElement || null);
|
|
3974
4032
|
function D() {
|
|
3975
4033
|
const m = _(u)?.ownerDocument;
|
|
3976
4034
|
return _(B) || m?.documentElement || document.documentElement;
|
|
3977
4035
|
}
|
|
3978
4036
|
function q() {
|
|
3979
|
-
return `${s}:${_(
|
|
4037
|
+
return `${s}:${_(p)?.canonicalItemId || _(p)?.itemId || "global"}`;
|
|
3980
4038
|
}
|
|
3981
4039
|
function he(m) {
|
|
3982
4040
|
if (!n()) return null;
|
|
3983
4041
|
const S = n().getAnnotations();
|
|
3984
4042
|
for (const O of S) {
|
|
3985
|
-
const
|
|
3986
|
-
if (
|
|
4043
|
+
const H = m.compareBoundaryPoints(Range.START_TO_START, O.range), We = m.compareBoundaryPoints(Range.END_TO_END, O.range), bt = m.compareBoundaryPoints(Range.START_TO_END, O.range), yt = m.compareBoundaryPoints(Range.END_TO_START, O.range);
|
|
4044
|
+
if (H >= 0 && We <= 0 || H <= 0 && We >= 0 || bt > 0 && yt < 0) return O.id;
|
|
3987
4045
|
}
|
|
3988
4046
|
return null;
|
|
3989
4047
|
}
|
|
@@ -4012,13 +4070,13 @@ function tl(e, t) {
|
|
|
4012
4070
|
console.error("[AnnotationToolbar] Failed to save annotations:", m);
|
|
4013
4071
|
}
|
|
4014
4072
|
}
|
|
4015
|
-
function
|
|
4073
|
+
function wr() {
|
|
4016
4074
|
if (!(!o || !n()))
|
|
4017
4075
|
try {
|
|
4018
4076
|
const m = sessionStorage.getItem(q());
|
|
4019
4077
|
if (!m) return;
|
|
4020
|
-
const S = JSON.parse(m), O = D(),
|
|
4021
|
-
console.log(`[AnnotationToolbar] Restored ${
|
|
4078
|
+
const S = JSON.parse(m), O = D(), H = n().importAnnotations(S, O);
|
|
4079
|
+
console.log(`[AnnotationToolbar] Restored ${H} annotations`), E(y, n().getAnnotations().length, !0);
|
|
4022
4080
|
} catch (m) {
|
|
4023
4081
|
console.error("[AnnotationToolbar] Failed to load annotations:", m);
|
|
4024
4082
|
}
|
|
@@ -4029,61 +4087,61 @@ function tl(e, t) {
|
|
|
4029
4087
|
if (!m || m.rangeCount === 0) return Te();
|
|
4030
4088
|
const S = m.getRangeAt(0), O = m.toString().trim();
|
|
4031
4089
|
if (!O || !V(S) || !Vt(S.commonAncestorContainer)) return Te();
|
|
4032
|
-
const
|
|
4033
|
-
E(
|
|
4090
|
+
const H = S.getBoundingClientRect(), We = H.left + H.width / 2, bt = H.top - 8;
|
|
4091
|
+
E(x, he(S), !0), _(h).isVisible = !0, _(h).selectedText = O, _(h).selectedRange = S.cloneRange(), _(h).toolbarPosition = {
|
|
4034
4092
|
x: We,
|
|
4035
4093
|
y: bt
|
|
4036
4094
|
};
|
|
4037
4095
|
const yt = O.length > 30 ? O.substring(0, 30) + "..." : O;
|
|
4038
|
-
E(
|
|
4039
|
-
E(
|
|
4096
|
+
E(v, `Annotation toolbar opened for "${yt}"`), setTimeout(() => {
|
|
4097
|
+
E(v, "");
|
|
4040
4098
|
}, 2e3), E(w, !0), setTimeout(() => {
|
|
4041
4099
|
E(w, !1);
|
|
4042
4100
|
}, 100);
|
|
4043
4101
|
}
|
|
4044
4102
|
function Te() {
|
|
4045
|
-
_(g) && i() && (i().stop(), E(g, !1)), _(
|
|
4046
|
-
}
|
|
4047
|
-
function
|
|
4048
|
-
if (!_(
|
|
4049
|
-
const S = _(
|
|
4050
|
-
n().addAnnotation(_(
|
|
4051
|
-
const O = m ===
|
|
4052
|
-
E(
|
|
4053
|
-
E(
|
|
4103
|
+
_(g) && i() && (i().stop(), E(g, !1)), _(h).isVisible = !1, _(h).selectedText = "", _(h).selectedRange = null;
|
|
4104
|
+
}
|
|
4105
|
+
function vn(m) {
|
|
4106
|
+
if (!_(h).selectedRange || !n()) return;
|
|
4107
|
+
const S = _(h).selectedText;
|
|
4108
|
+
n().addAnnotation(_(h).selectedRange, m), E(y, n().getAnnotations().length, !0), jt();
|
|
4109
|
+
const O = m === Ce.UNDERLINE ? "underlined" : `highlighted in ${m}`, H = S.length > 30 ? S.substring(0, 30) + "..." : S;
|
|
4110
|
+
E(v, `"${H}" ${O}`), setTimeout(() => {
|
|
4111
|
+
E(v, "");
|
|
4054
4112
|
}, 3e3), Te();
|
|
4055
4113
|
}
|
|
4056
|
-
function
|
|
4057
|
-
if (!_(
|
|
4114
|
+
function uo() {
|
|
4115
|
+
if (!_(x) || !n()) {
|
|
4058
4116
|
console.warn("[AnnotationToolbar] No overlapping annotation to remove");
|
|
4059
4117
|
return;
|
|
4060
4118
|
}
|
|
4061
|
-
console.log("[AnnotationToolbar] Removing annotation:", _(
|
|
4062
|
-
const m = n().getAnnotation(_(
|
|
4119
|
+
console.log("[AnnotationToolbar] Removing annotation:", _(x));
|
|
4120
|
+
const m = n().getAnnotation(_(x));
|
|
4063
4121
|
if (!m) {
|
|
4064
|
-
console.warn("[AnnotationToolbar] Annotation not found:", _(
|
|
4122
|
+
console.warn("[AnnotationToolbar] Annotation not found:", _(x));
|
|
4065
4123
|
return;
|
|
4066
4124
|
}
|
|
4067
4125
|
const S = m.range.toString();
|
|
4068
|
-
n().removeAnnotation(_(
|
|
4126
|
+
n().removeAnnotation(_(x));
|
|
4069
4127
|
const O = n().getAnnotations().length;
|
|
4070
4128
|
E(y, O, !0), console.log("[AnnotationToolbar] Annotations remaining:", O), jt();
|
|
4071
|
-
const
|
|
4072
|
-
E(
|
|
4073
|
-
E(
|
|
4129
|
+
const H = S.length > 30 ? S.substring(0, 30) + "..." : S;
|
|
4130
|
+
E(v, `Removed annotation from "${H}"`), setTimeout(() => {
|
|
4131
|
+
E(v, "");
|
|
4074
4132
|
}, 3e3), Te();
|
|
4075
4133
|
}
|
|
4076
|
-
function
|
|
4134
|
+
function fo() {
|
|
4077
4135
|
const m = _(y);
|
|
4078
|
-
n()?.clearAnnotations(), E(y, 0), sessionStorage.removeItem(q()), E(
|
|
4079
|
-
E(
|
|
4136
|
+
n()?.clearAnnotations(), E(y, 0), sessionStorage.removeItem(q()), E(v, `${m} annotation${m === 1 ? "" : "s"} cleared`), setTimeout(() => {
|
|
4137
|
+
E(v, "");
|
|
4080
4138
|
}, 3e3), Te();
|
|
4081
4139
|
}
|
|
4082
|
-
async function
|
|
4083
|
-
if (!(!_(
|
|
4140
|
+
async function ho() {
|
|
4141
|
+
if (!(!_(h).selectedRange || !i())) {
|
|
4084
4142
|
E(g, !0);
|
|
4085
4143
|
try {
|
|
4086
|
-
console.log("[AnnotationToolbar] Speaking range:", _(
|
|
4144
|
+
console.log("[AnnotationToolbar] Speaking range:", _(h).selectedRange.toString().substring(0, 50)), await i().speakRange(_(h).selectedRange, { contentRoot: D() }), console.log("[AnnotationToolbar] TTS completed successfully");
|
|
4087
4145
|
} catch (m) {
|
|
4088
4146
|
console.error("[AnnotationToolbar] TTS error:", m), alert(`TTS failed: ${m instanceof Error ? m.message : String(m)}`);
|
|
4089
4147
|
} finally {
|
|
@@ -4091,32 +4149,32 @@ function tl(e, t) {
|
|
|
4091
4149
|
}
|
|
4092
4150
|
}
|
|
4093
4151
|
}
|
|
4094
|
-
function
|
|
4095
|
-
m.key === "Escape" && _(
|
|
4152
|
+
function pn(m) {
|
|
4153
|
+
m.key === "Escape" && _(h).isVisible && (m.preventDefault(), Te());
|
|
4096
4154
|
}
|
|
4097
4155
|
function Wt(m) {
|
|
4098
|
-
!_(
|
|
4156
|
+
!_(h).isVisible || _(w) || _(d) && !_(d).contains(m.target) && Te();
|
|
4099
4157
|
}
|
|
4100
|
-
|
|
4158
|
+
Pn(() => {
|
|
4101
4159
|
if (!o) return;
|
|
4102
4160
|
const m = setTimeout(() => {
|
|
4103
|
-
|
|
4161
|
+
wr();
|
|
4104
4162
|
}, 2e3), S = _(B) || document;
|
|
4105
|
-
return S.addEventListener("mouseup", zt), S.addEventListener("click", Wt), S.addEventListener("touchend", zt), S.addEventListener("touchstart", Wt), document.addEventListener("keydown",
|
|
4106
|
-
clearTimeout(m), S.removeEventListener("mouseup", zt), S.removeEventListener("click", Wt), S.removeEventListener("touchend", zt), S.removeEventListener("touchstart", Wt), document.removeEventListener("keydown",
|
|
4163
|
+
return S.addEventListener("mouseup", zt), S.addEventListener("click", Wt), S.addEventListener("touchend", zt), S.addEventListener("touchstart", Wt), document.addEventListener("keydown", pn), window.addEventListener("scroll", Te, !0), () => {
|
|
4164
|
+
clearTimeout(m), S.removeEventListener("mouseup", zt), S.removeEventListener("click", Wt), S.removeEventListener("touchend", zt), S.removeEventListener("touchstart", Wt), document.removeEventListener("keydown", pn), window.removeEventListener("scroll", Te, !0);
|
|
4107
4165
|
};
|
|
4108
|
-
}),
|
|
4166
|
+
}), Pn(() => {
|
|
4109
4167
|
if (!_(u)) return;
|
|
4110
|
-
const m =
|
|
4111
|
-
E(
|
|
4112
|
-
}), S =
|
|
4168
|
+
const m = sa(_(u), (O) => {
|
|
4169
|
+
E(p, O, !0);
|
|
4170
|
+
}), S = aa(_(u), (O) => {
|
|
4113
4171
|
E(f, O, !0);
|
|
4114
4172
|
});
|
|
4115
4173
|
return () => {
|
|
4116
4174
|
S(), m();
|
|
4117
4175
|
};
|
|
4118
4176
|
});
|
|
4119
|
-
var
|
|
4177
|
+
var vo = {
|
|
4120
4178
|
get enabled() {
|
|
4121
4179
|
return r();
|
|
4122
4180
|
},
|
|
@@ -4135,51 +4193,51 @@ function tl(e, t) {
|
|
|
4135
4193
|
set ttsService(m = null) {
|
|
4136
4194
|
i(m), Zt();
|
|
4137
4195
|
}
|
|
4138
|
-
},
|
|
4139
|
-
|
|
4140
|
-
var
|
|
4141
|
-
var S =
|
|
4142
|
-
|
|
4143
|
-
var X =
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
}), Tt("click", X, () =>
|
|
4196
|
+
}, gn = il(), _n = Ir(gn);
|
|
4197
|
+
Un(_n, (m) => E(u, m), () => _(u));
|
|
4198
|
+
var mn = Le(_n, 2), po = (m) => {
|
|
4199
|
+
var S = nl(), O = Kt(S);
|
|
4200
|
+
Ws(O, 17, () => a, js, (oe, se) => {
|
|
4201
|
+
var X = Qa(), Bt = Kt(X), Tr = Kt(Bt, !0);
|
|
4202
|
+
Ht(Bt), Ht(X), Yt(() => {
|
|
4203
|
+
Bn(X, `background-color: ${_(se).hex ?? ""};`), Hn(X, "aria-label", _(se).label), Hn(X, "title", _(se).label), jn(Tr, _(se).label);
|
|
4204
|
+
}), Tt("click", X, () => vn(_(se).name)), Pe(oe, X);
|
|
4147
4205
|
});
|
|
4148
|
-
var
|
|
4149
|
-
var se =
|
|
4150
|
-
Yt(() => X.disabled = _(g)), Tt("click", X,
|
|
4206
|
+
var H = Le(O, 2), We = Le(H, 2), bt = (oe) => {
|
|
4207
|
+
var se = Za(), X = Le(Ir(se), 2);
|
|
4208
|
+
Yt(() => X.disabled = _(g)), Tt("click", X, ho), Pe(oe, se);
|
|
4151
4209
|
};
|
|
4152
4210
|
kt(We, (oe) => {
|
|
4153
4211
|
i() && oe(bt);
|
|
4154
4212
|
});
|
|
4155
|
-
var yt =
|
|
4156
|
-
var se =
|
|
4157
|
-
var wt =
|
|
4158
|
-
Tt("click", wt,
|
|
4213
|
+
var yt = Le(We, 2), _o = (oe) => {
|
|
4214
|
+
var se = rl(), X = Le(Ir(se), 2), Bt = (Be) => {
|
|
4215
|
+
var wt = el();
|
|
4216
|
+
Tt("click", wt, uo), Pe(Be, wt);
|
|
4159
4217
|
};
|
|
4160
4218
|
kt(X, (Be) => {
|
|
4161
|
-
_(
|
|
4219
|
+
_(P) && Be(Bt);
|
|
4162
4220
|
});
|
|
4163
|
-
var
|
|
4164
|
-
var wt =
|
|
4165
|
-
Tt("click", wt,
|
|
4221
|
+
var Tr = Le(X, 2), mo = (Be) => {
|
|
4222
|
+
var wt = tl();
|
|
4223
|
+
Tt("click", wt, fo), Pe(Be, wt);
|
|
4166
4224
|
};
|
|
4167
|
-
kt(
|
|
4168
|
-
_($) && Be(
|
|
4169
|
-
}),
|
|
4225
|
+
kt(Tr, (Be) => {
|
|
4226
|
+
_($) && Be(mo);
|
|
4227
|
+
}), Pe(oe, se);
|
|
4170
4228
|
};
|
|
4171
4229
|
kt(yt, (oe) => {
|
|
4172
|
-
(_(
|
|
4173
|
-
}),
|
|
4230
|
+
(_(P) || _($)) && oe(_o);
|
|
4231
|
+
}), Ht(S), Un(S, (oe) => E(d, oe), () => _(d)), Yt(() => Bn(S, `left:${_(h).toolbarPosition.x}px; top:${_(h).toolbarPosition.y}px; transform: translate(-50%, -100%);`)), Tt("click", H, () => vn(Ce.UNDERLINE)), Pe(m, S);
|
|
4174
4232
|
};
|
|
4175
|
-
kt(
|
|
4176
|
-
_(
|
|
4233
|
+
kt(mn, (m) => {
|
|
4234
|
+
_(h).isVisible && m(po);
|
|
4177
4235
|
});
|
|
4178
|
-
var
|
|
4179
|
-
return
|
|
4236
|
+
var bn = Le(mn, 2), go = Kt(bn, !0);
|
|
4237
|
+
return Ht(bn), Yt(() => jn(go, _(v))), Pe(e, gn), ci(vo);
|
|
4180
4238
|
}
|
|
4181
|
-
|
|
4182
|
-
customElements.define("pie-tool-annotation-toolbar",
|
|
4239
|
+
Es(["click"]);
|
|
4240
|
+
customElements.define("pie-tool-annotation-toolbar", ta(sl, {
|
|
4183
4241
|
enabled: {
|
|
4184
4242
|
attribute: "enabled",
|
|
4185
4243
|
type: "Boolean"
|
|
@@ -4188,5 +4246,5 @@ customElements.define("pie-tool-annotation-toolbar", Js(tl, {
|
|
|
4188
4246
|
ttsService: { type: "Object" }
|
|
4189
4247
|
}, [], [], { mode: "open" }));
|
|
4190
4248
|
export {
|
|
4191
|
-
|
|
4249
|
+
sl as default
|
|
4192
4250
|
};
|