@pie-players/pie-section-player 0.3.26 → 0.3.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -1
- package/dist/chunks/tool-annotation-toolbar-db5bfbec.js +1129 -1066
- package/dist/components/shared/section-player-runtime.d.ts +14 -4
- package/dist/components/shared/section-player-runtime.d.ts.map +1 -1
- package/dist/pie-section-player.js +5051 -4686
- package/package.json +10 -10
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { t as y } from "./defineProperty-CyepwRr5-3800a70a.js";
|
|
2
2
|
if (typeof window < "u") {
|
|
3
|
-
var
|
|
4
|
-
((
|
|
3
|
+
var wn, Tn;
|
|
4
|
+
((wn = (Tn = window).__svelte ?? (Tn.__svelte = {})).v ?? (wn.v = /* @__PURE__ */ new Set())).add("5");
|
|
5
5
|
}
|
|
6
|
-
var fe = {}, j = Symbol(),
|
|
6
|
+
var fe = {}, j = Symbol(), Yn = Array.isArray, gr = Array.prototype.indexOf, pe = Array.prototype.includes, vo = Array.from, ro = Object.keys, so = Object.defineProperty, Zt = Object.getOwnPropertyDescriptor, mr = Object.getOwnPropertyDescriptors, br = Object.prototype, yr = Array.prototype, Qn = Object.getPrototypeOf, In = Object.isExtensible, wr = () => {
|
|
7
7
|
};
|
|
8
|
-
function
|
|
8
|
+
function Tr(t) {
|
|
9
9
|
for (var e = 0; e < t.length; e++) t[e]();
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function ti() {
|
|
12
12
|
var t, e;
|
|
13
13
|
return {
|
|
14
14
|
promise: new Promise((o, n) => {
|
|
@@ -18,51 +18,51 @@ function Zn() {
|
|
|
18
18
|
reject: e
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
var et = 1024, wt = 2048, ie = 4096,
|
|
21
|
+
var et = 1024, wt = 2048, ie = 4096, Uo = 8192, Ir = 16384, Ko = 32768, Sn = 1 << 25, Jo = 65536, ye = 1 << 19, Sr = 1 << 20, _e = 1 << 25, Re = 65536, $n = 1 << 21, $r = 1 << 22, lo = 1 << 23, Ce = Symbol("$state"), ei = Symbol("legacy props"), kr = Symbol(""), _t = new class extends Error {
|
|
22
22
|
constructor(...t) {
|
|
23
|
-
super(...t),
|
|
23
|
+
super(...t), y(this, "name", "StaleReactionError"), y(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
24
24
|
}
|
|
25
|
-
}(),
|
|
26
|
-
function
|
|
25
|
+
}(), Ar = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
26
|
+
function xr() {
|
|
27
27
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function _r(t, e, o) {
|
|
30
30
|
throw new Error("https://svelte.dev/e/each_key_duplicate");
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Cr(t) {
|
|
33
33
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function Er() {
|
|
36
36
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function Mr(t) {
|
|
39
39
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Lr() {
|
|
42
42
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Or() {
|
|
45
45
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Pr(t) {
|
|
48
48
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function Rr() {
|
|
51
51
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function Nr() {
|
|
54
54
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function Vr() {
|
|
57
57
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function Wr() {
|
|
60
60
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function go(t) {
|
|
63
63
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function jr() {
|
|
66
66
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
67
67
|
}
|
|
68
68
|
var L = !1;
|
|
@@ -71,19 +71,19 @@ function Ct(t) {
|
|
|
71
71
|
}
|
|
72
72
|
var E;
|
|
73
73
|
function G(t) {
|
|
74
|
-
if (t === null) throw
|
|
74
|
+
if (t === null) throw go(), fe;
|
|
75
75
|
return E = t;
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function mo() {
|
|
78
78
|
return G(/* @__PURE__ */ Tt(E));
|
|
79
79
|
}
|
|
80
80
|
function De(t) {
|
|
81
81
|
if (L) {
|
|
82
|
-
if (/* @__PURE__ */ Tt(E) !== null) throw
|
|
82
|
+
if (/* @__PURE__ */ Tt(E) !== null) throw go(), fe;
|
|
83
83
|
E = t;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function zr(t = 1) {
|
|
87
87
|
if (L) {
|
|
88
88
|
for (var e = t, o = E; e--; ) o = /* @__PURE__ */ Tt(o);
|
|
89
89
|
E = o;
|
|
@@ -102,24 +102,24 @@ function ao(t = !0) {
|
|
|
102
102
|
t && o.remove(), o = i;
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
function
|
|
106
|
-
if (!t || t.nodeType !== 8) throw
|
|
105
|
+
function oi(t) {
|
|
106
|
+
if (!t || t.nodeType !== 8) throw go(), fe;
|
|
107
107
|
return t.data;
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function ni(t) {
|
|
110
110
|
return t === this.v;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function Hr(t, e) {
|
|
113
113
|
return t != t ? e == e : t !== e || t !== null && typeof t == "object" || typeof t == "function";
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
return !
|
|
115
|
+
function ii(t) {
|
|
116
|
+
return !Hr(t, this.v);
|
|
117
117
|
}
|
|
118
|
-
var zt = !1,
|
|
118
|
+
var zt = !1, bo = !1, W = null;
|
|
119
119
|
function ve(t) {
|
|
120
120
|
W = t;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
122
|
+
function ri(t, e = !1, o) {
|
|
123
123
|
W = {
|
|
124
124
|
p: W,
|
|
125
125
|
i: !1,
|
|
@@ -127,15 +127,15 @@ function oi(t, e = !1, o) {
|
|
|
127
127
|
e: null,
|
|
128
128
|
s: t,
|
|
129
129
|
x: null,
|
|
130
|
-
r:
|
|
131
|
-
l:
|
|
130
|
+
r: k,
|
|
131
|
+
l: bo && !e ? {
|
|
132
132
|
s: null,
|
|
133
133
|
u: null,
|
|
134
134
|
$: []
|
|
135
135
|
} : null
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function si(t) {
|
|
139
139
|
var e = W, o = e.e;
|
|
140
140
|
if (o !== null) {
|
|
141
141
|
e.e = null;
|
|
@@ -144,28 +144,28 @@ function ni(t) {
|
|
|
144
144
|
return t !== void 0 && (e.x = t), e.i = !0, W = e.p, t ?? {};
|
|
145
145
|
}
|
|
146
146
|
function Ne() {
|
|
147
|
-
return !
|
|
147
|
+
return !bo || W !== null && W.l === null;
|
|
148
148
|
}
|
|
149
149
|
var Ut = [];
|
|
150
|
-
function
|
|
150
|
+
function li() {
|
|
151
151
|
var t = Ut;
|
|
152
|
-
Ut = [],
|
|
152
|
+
Ut = [], Tr(t);
|
|
153
153
|
}
|
|
154
154
|
function ee(t) {
|
|
155
155
|
if (Ut.length === 0 && !Ee) {
|
|
156
156
|
var e = Ut;
|
|
157
157
|
queueMicrotask(() => {
|
|
158
|
-
e === Ut &&
|
|
158
|
+
e === Ut && li();
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
Ut.push(t);
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
for (; Ut.length > 0; )
|
|
163
|
+
function Dr() {
|
|
164
|
+
for (; Ut.length > 0; ) li();
|
|
165
165
|
}
|
|
166
|
-
function
|
|
167
|
-
var e =
|
|
168
|
-
if (e === null) return
|
|
166
|
+
function ai(t) {
|
|
167
|
+
var e = k;
|
|
168
|
+
if (e === null) return A.f |= lo, t;
|
|
169
169
|
if (!(e.f & 32768) && !(e.f & 4)) throw t;
|
|
170
170
|
Vt(t, e);
|
|
171
171
|
}
|
|
@@ -184,21 +184,21 @@ function Vt(t, e) {
|
|
|
184
184
|
}
|
|
185
185
|
throw t;
|
|
186
186
|
}
|
|
187
|
-
var
|
|
187
|
+
var qr = ~(wt | ie | et);
|
|
188
188
|
function N(t, e) {
|
|
189
|
-
t.f = t.f &
|
|
189
|
+
t.f = t.f & qr | e;
|
|
190
190
|
}
|
|
191
|
-
function
|
|
191
|
+
function Zo(t) {
|
|
192
192
|
t.f & 512 || t.deps === null ? N(t, et) : N(t, ie);
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
if (t !== null) for (const e of t) !(e.f & 2) || !(e.f & 65536) || (e.f ^= Re,
|
|
194
|
+
function ci(t) {
|
|
195
|
+
if (t !== null) for (const e of t) !(e.f & 2) || !(e.f & 65536) || (e.f ^= Re, ci(e.deps));
|
|
196
196
|
}
|
|
197
|
-
function
|
|
198
|
-
t.f & 2048 ? e.add(t) : t.f & 4096 && o.add(t),
|
|
197
|
+
function ui(t, e, o) {
|
|
198
|
+
t.f & 2048 ? e.add(t) : t.f & 4096 && o.add(t), ci(t.deps), N(t, et);
|
|
199
199
|
}
|
|
200
|
-
var
|
|
201
|
-
function
|
|
200
|
+
var Br = !1, qe = !1;
|
|
201
|
+
function Fr(t) {
|
|
202
202
|
var e = qe;
|
|
203
203
|
try {
|
|
204
204
|
return qe = !1, [t(), qe];
|
|
@@ -206,39 +206,39 @@ function Hr(t) {
|
|
|
206
206
|
qe = e;
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function di(t, e) {
|
|
210
210
|
if (e.has(t)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
211
211
|
}
|
|
212
|
-
function
|
|
213
|
-
|
|
212
|
+
function Xo(t, e) {
|
|
213
|
+
di(t, e), e.add(t);
|
|
214
214
|
}
|
|
215
|
-
function
|
|
216
|
-
|
|
215
|
+
function $(t, e, o) {
|
|
216
|
+
di(t, e), e.set(t, o);
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function O(t, e, o) {
|
|
219
219
|
if (typeof t == "function" ? t === e : t.has(e)) return arguments.length < 3 ? e : o;
|
|
220
220
|
throw new TypeError("Private element is not present on this object");
|
|
221
221
|
}
|
|
222
|
-
function
|
|
223
|
-
return t.get(
|
|
222
|
+
function u(t, e) {
|
|
223
|
+
return t.get(O(t, e));
|
|
224
224
|
}
|
|
225
225
|
function T(t, e, o) {
|
|
226
|
-
return t.set(
|
|
226
|
+
return t.set(O(t, e), o), o;
|
|
227
227
|
}
|
|
228
|
-
var
|
|
228
|
+
var hi, Et = /* @__PURE__ */ new Set(), M = null, F = null, Vo = null, Ee = !1, So = !1, ge = null, co = null, fi = 0, Gr = 1, uo = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), ae = /* @__PURE__ */ new WeakMap(), ce = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), at = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Xt = /* @__PURE__ */ new WeakMap(), Gt = /* @__PURE__ */ new WeakMap(), Fe = /* @__PURE__ */ new WeakMap(), mt = /* @__PURE__ */ new WeakSet(), re = class pi {
|
|
229
229
|
constructor() {
|
|
230
|
-
|
|
230
|
+
Xo(this, mt), y(this, "id", Gr++), y(this, "current", /* @__PURE__ */ new Map()), y(this, "previous", /* @__PURE__ */ new Map()), $(this, uo, /* @__PURE__ */ new Set()), $(this, Be, /* @__PURE__ */ new Set()), $(this, ae, 0), $(this, ce, 0), $(this, Xe, null), $(this, at, []), $(this, Le, /* @__PURE__ */ new Set()), $(this, Xt, /* @__PURE__ */ new Set()), $(this, Gt, /* @__PURE__ */ new Map()), y(this, "is_fork", !1), $(this, Fe, !1);
|
|
231
231
|
}
|
|
232
232
|
skip_effect(e) {
|
|
233
|
-
|
|
233
|
+
u(Gt, this).has(e) || u(Gt, this).set(e, {
|
|
234
234
|
d: [],
|
|
235
235
|
m: []
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
238
|
unskip_effect(e) {
|
|
239
|
-
var o =
|
|
239
|
+
var o = u(Gt, this).get(e);
|
|
240
240
|
if (o) {
|
|
241
|
-
|
|
241
|
+
u(Gt, this).delete(e);
|
|
242
242
|
for (var n of o.d) N(n, wt), this.schedule(n);
|
|
243
243
|
for (n of o.m) N(n, ie), this.schedule(n);
|
|
244
244
|
}
|
|
@@ -247,52 +247,52 @@ var ci, Et = /* @__PURE__ */ new Set(), P = null, F = null, Ro = null, Ee = !1,
|
|
|
247
247
|
o !== j && !this.previous.has(e) && this.previous.set(e, o), e.f & 8388608 || (this.current.set(e, e.v), F?.set(e, e.v));
|
|
248
248
|
}
|
|
249
249
|
activate() {
|
|
250
|
-
|
|
250
|
+
M = this;
|
|
251
251
|
}
|
|
252
252
|
deactivate() {
|
|
253
|
-
|
|
253
|
+
M = null, F = null;
|
|
254
254
|
}
|
|
255
255
|
flush() {
|
|
256
256
|
try {
|
|
257
|
-
|
|
257
|
+
So = !0, M = this, O(mt, this, vi).call(this);
|
|
258
258
|
} finally {
|
|
259
|
-
|
|
259
|
+
fi = 0, Vo = null, ge = null, co = null, So = !1, M = null, F = null, jt.clear();
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
discard() {
|
|
263
|
-
for (const e of
|
|
264
|
-
|
|
263
|
+
for (const e of u(Be, this)) e(this);
|
|
264
|
+
u(Be, this).clear(), Et.delete(this);
|
|
265
265
|
}
|
|
266
266
|
increment(e) {
|
|
267
|
-
T(ae, this,
|
|
267
|
+
T(ae, this, u(ae, this) + 1), e && T(ce, this, u(ce, this) + 1);
|
|
268
268
|
}
|
|
269
269
|
decrement(e, o) {
|
|
270
|
-
T(ae, this,
|
|
270
|
+
T(ae, this, u(ae, this) - 1), e && T(ce, this, u(ce, this) - 1), !(u(Fe, this) || o) && (T(Fe, this, !0), ee(() => {
|
|
271
271
|
T(Fe, this, !1), this.flush();
|
|
272
272
|
}));
|
|
273
273
|
}
|
|
274
274
|
transfer_effects(e, o) {
|
|
275
|
-
for (const n of e)
|
|
276
|
-
for (const n of o)
|
|
275
|
+
for (const n of e) u(Le, this).add(n);
|
|
276
|
+
for (const n of o) u(Xt, this).add(n);
|
|
277
277
|
e.clear(), o.clear();
|
|
278
278
|
}
|
|
279
279
|
oncommit(e) {
|
|
280
|
-
|
|
280
|
+
u(uo, this).add(e);
|
|
281
281
|
}
|
|
282
282
|
ondiscard(e) {
|
|
283
|
-
|
|
283
|
+
u(Be, this).add(e);
|
|
284
284
|
}
|
|
285
285
|
settled() {
|
|
286
|
-
return (
|
|
286
|
+
return (u(Xe, this) ?? T(Xe, this, ti())).promise;
|
|
287
287
|
}
|
|
288
288
|
static ensure() {
|
|
289
|
-
if (
|
|
290
|
-
const e =
|
|
291
|
-
|
|
292
|
-
|
|
289
|
+
if (M === null) {
|
|
290
|
+
const e = M = new pi();
|
|
291
|
+
So || (Et.add(M), Ee || ee(() => {
|
|
292
|
+
M === e && e.flush();
|
|
293
293
|
}));
|
|
294
294
|
}
|
|
295
|
-
return
|
|
295
|
+
return M;
|
|
296
296
|
}
|
|
297
297
|
apply() {
|
|
298
298
|
if (!zt || !this.is_fork && Et.size === 1) {
|
|
@@ -303,64 +303,64 @@ var ci, Et = /* @__PURE__ */ new Set(), P = null, F = null, Ro = null, Ee = !1,
|
|
|
303
303
|
for (const e of Et) if (!(e === this || e.is_fork)) for (const [o, n] of e.previous) F.has(o) || F.set(o, n);
|
|
304
304
|
}
|
|
305
305
|
schedule(e) {
|
|
306
|
-
if (
|
|
306
|
+
if (Vo = e, e.b?.is_pending && e.f & 16777228 && !(e.f & 32768)) {
|
|
307
307
|
e.b.defer_effect(e);
|
|
308
308
|
return;
|
|
309
309
|
}
|
|
310
310
|
for (var o = e; o.parent !== null; ) {
|
|
311
311
|
o = o.parent;
|
|
312
312
|
var n = o.f;
|
|
313
|
-
if (ge !== null && o ===
|
|
313
|
+
if (ge !== null && o === k && (zt || (A === null || !(A.f & 2)) && !Br)) return;
|
|
314
314
|
if (n & 96) {
|
|
315
315
|
if (!(n & 1024)) return;
|
|
316
316
|
o.f ^= et;
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
|
-
|
|
319
|
+
u(at, this).push(o);
|
|
320
320
|
}
|
|
321
321
|
};
|
|
322
|
-
|
|
323
|
-
function
|
|
324
|
-
return this.is_fork ||
|
|
322
|
+
hi = re;
|
|
323
|
+
function kn() {
|
|
324
|
+
return this.is_fork || u(ce, this) > 0;
|
|
325
325
|
}
|
|
326
|
-
function
|
|
327
|
-
if (
|
|
328
|
-
for (const s of
|
|
329
|
-
for (const s of
|
|
326
|
+
function vi() {
|
|
327
|
+
if (fi++ > 1e3 && (Et.delete(this), Kr()), !O(mt, this, kn).call(this)) {
|
|
328
|
+
for (const s of u(Le, this)) u(Xt, this).delete(s), N(s, wt), this.schedule(s);
|
|
329
|
+
for (const s of u(Xt, this)) N(s, ie), this.schedule(s);
|
|
330
330
|
}
|
|
331
|
-
const t =
|
|
331
|
+
const t = u(at, this);
|
|
332
332
|
T(at, this, []), this.apply();
|
|
333
333
|
var e = ge = [], o = [], n = co = [];
|
|
334
334
|
for (const s of t) try {
|
|
335
|
-
|
|
335
|
+
O(mt, this, gi).call(this, s, e, o);
|
|
336
336
|
} catch (l) {
|
|
337
|
-
throw
|
|
337
|
+
throw wi(s), l;
|
|
338
338
|
}
|
|
339
|
-
if (
|
|
340
|
-
var i =
|
|
339
|
+
if (M = null, n.length > 0) {
|
|
340
|
+
var i = hi.ensure();
|
|
341
341
|
for (const s of n) i.schedule(s);
|
|
342
342
|
}
|
|
343
|
-
if (ge = null, co = null,
|
|
344
|
-
|
|
345
|
-
for (const [s, l] of
|
|
343
|
+
if (ge = null, co = null, O(mt, this, kn).call(this)) {
|
|
344
|
+
O(mt, this, An).call(this, o), O(mt, this, An).call(this, e);
|
|
345
|
+
for (const [s, l] of u(Gt, this)) yi(s, l);
|
|
346
346
|
} else {
|
|
347
|
-
|
|
348
|
-
for (const s of
|
|
349
|
-
|
|
347
|
+
u(ae, this) === 0 && Et.delete(this), u(Le, this).clear(), u(Xt, this).clear();
|
|
348
|
+
for (const s of u(uo, this)) s(this);
|
|
349
|
+
u(uo, this).clear(), xn(o), xn(e), u(Xe, this)?.resolve();
|
|
350
350
|
}
|
|
351
|
-
var r =
|
|
352
|
-
if (
|
|
351
|
+
var r = M;
|
|
352
|
+
if (u(at, this).length > 0) {
|
|
353
353
|
const s = r ?? (r = this);
|
|
354
|
-
|
|
354
|
+
u(at, s).push(...u(at, this).filter((l) => !u(at, s).includes(l)));
|
|
355
355
|
}
|
|
356
|
-
r !== null && (Et.add(r),
|
|
356
|
+
r !== null && (Et.add(r), O(mt, r, vi).call(r)), Et.has(this) || O(mt, this, Ur).call(this);
|
|
357
357
|
}
|
|
358
|
-
function
|
|
358
|
+
function gi(t, e, o) {
|
|
359
359
|
t.f ^= et;
|
|
360
360
|
for (var n = t.first; n !== null; ) {
|
|
361
361
|
var i = n.f, r = (i & 96) !== 0;
|
|
362
|
-
if (!(r && i & 1024 || i & 8192 ||
|
|
363
|
-
r ? n.f ^= et : i & 4 ? e.push(n) : zt && i & 16777224 ? o.push(n) : Ve(n) && (i & 16 &&
|
|
362
|
+
if (!(r && i & 1024 || i & 8192 || u(Gt, this).has(n)) && n.fn !== null) {
|
|
363
|
+
r ? n.f ^= et : i & 4 ? e.push(n) : zt && i & 16777224 ? o.push(n) : Ve(n) && (i & 16 && u(Xt, this).add(n), be(n));
|
|
364
364
|
var s = n.first;
|
|
365
365
|
if (s !== null) {
|
|
366
366
|
n = s;
|
|
@@ -377,14 +377,14 @@ function fi(t, e, o) {
|
|
|
377
377
|
}
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
|
-
function
|
|
381
|
-
for (var e = 0; e < t.length; e += 1)
|
|
380
|
+
function An(t) {
|
|
381
|
+
for (var e = 0; e < t.length; e += 1) ui(t[e], u(Le, this), u(Xt, this));
|
|
382
382
|
}
|
|
383
|
-
function
|
|
383
|
+
function Ur() {
|
|
384
384
|
for (const l of Et) {
|
|
385
385
|
var t = l.id < this.id, e = [];
|
|
386
|
-
for (const [a,
|
|
387
|
-
if (l.current.has(a)) if (t &&
|
|
386
|
+
for (const [a, c] of this.current) {
|
|
387
|
+
if (l.current.has(a)) if (t && c !== l.current.get(a)) l.current.set(a, c);
|
|
388
388
|
else continue;
|
|
389
389
|
e.push(a);
|
|
390
390
|
}
|
|
@@ -393,10 +393,10 @@ function qr() {
|
|
|
393
393
|
else if (e.length > 0) {
|
|
394
394
|
l.activate();
|
|
395
395
|
var n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map();
|
|
396
|
-
for (var r of e)
|
|
397
|
-
if (
|
|
396
|
+
for (var r of e) mi(r, o, n, i);
|
|
397
|
+
if (u(at, l).length > 0) {
|
|
398
398
|
l.apply();
|
|
399
|
-
for (var s of
|
|
399
|
+
for (var s of u(at, l)) O(mt, l, gi).call(l, s, [], []);
|
|
400
400
|
T(at, l, []);
|
|
401
401
|
}
|
|
402
402
|
l.deactivate();
|
|
@@ -408,28 +408,28 @@ function Ye(t) {
|
|
|
408
408
|
Ee = !0;
|
|
409
409
|
try {
|
|
410
410
|
var o;
|
|
411
|
-
for (t && (
|
|
412
|
-
if (
|
|
413
|
-
|
|
411
|
+
for (t && (M !== null && !M.is_fork && M.flush(), o = t()); ; ) {
|
|
412
|
+
if (Dr(), M === null) return o;
|
|
413
|
+
M.flush();
|
|
414
414
|
}
|
|
415
415
|
} finally {
|
|
416
416
|
Ee = e;
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
function
|
|
419
|
+
function Kr() {
|
|
420
420
|
try {
|
|
421
|
-
|
|
421
|
+
Lr();
|
|
422
422
|
} catch (t) {
|
|
423
|
-
Vt(t,
|
|
423
|
+
Vt(t, Vo);
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
426
|
var bt = null;
|
|
427
|
-
function
|
|
427
|
+
function xn(t) {
|
|
428
428
|
var e = t.length;
|
|
429
429
|
if (e !== 0) {
|
|
430
430
|
for (var o = 0; o < e; ) {
|
|
431
431
|
var n = t[o++];
|
|
432
|
-
if (!(n.f & 24576) && Ve(n) && (bt = /* @__PURE__ */ new Set(), be(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null &&
|
|
432
|
+
if (!(n.f & 24576) && Ve(n) && (bt = /* @__PURE__ */ new Set(), be(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Vi(n), bt?.size > 0)) {
|
|
433
433
|
jt.clear();
|
|
434
434
|
for (const i of bt) {
|
|
435
435
|
if (i.f & 24576) continue;
|
|
@@ -447,114 +447,114 @@ function Sn(t) {
|
|
|
447
447
|
bt = null;
|
|
448
448
|
}
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function mi(t, e, o, n) {
|
|
451
451
|
if (!o.has(t) && (o.add(t), t.reactions !== null)) for (const i of t.reactions) {
|
|
452
452
|
const r = i.f;
|
|
453
|
-
r & 2 ?
|
|
453
|
+
r & 2 ? mi(i, e, o, n) : r & 4194320 && !(r & 2048) && bi(i, e, n) && (N(i, wt), Yo(i));
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function bi(t, e, o) {
|
|
457
457
|
const n = o.get(t);
|
|
458
458
|
if (n !== void 0) return n;
|
|
459
459
|
if (t.deps !== null) for (const i of t.deps) {
|
|
460
460
|
if (pe.call(e, i)) return !0;
|
|
461
|
-
if (i.f & 2 &&
|
|
461
|
+
if (i.f & 2 && bi(i, e, o)) return o.set(i, !0), !0;
|
|
462
462
|
}
|
|
463
463
|
return o.set(t, !1), !1;
|
|
464
464
|
}
|
|
465
|
-
function
|
|
466
|
-
|
|
465
|
+
function Yo(t) {
|
|
466
|
+
M.schedule(t);
|
|
467
467
|
}
|
|
468
|
-
function
|
|
468
|
+
function yi(t, e) {
|
|
469
469
|
if (!(t.f & 32 && t.f & 1024)) {
|
|
470
470
|
t.f & 2048 ? e.d.push(t) : t.f & 4096 && e.m.push(t), N(t, et);
|
|
471
|
-
for (var o = t.first; o !== null; )
|
|
471
|
+
for (var o = t.first; o !== null; ) yi(o, e), o = o.next;
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function wi(t) {
|
|
475
475
|
N(t, et);
|
|
476
|
-
for (var e = t.first; e !== null; )
|
|
476
|
+
for (var e = t.first; e !== null; ) wi(e), e = e.next;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function Jr(t) {
|
|
479
479
|
let e = 0, o = oe(0), n;
|
|
480
480
|
return () => {
|
|
481
|
-
|
|
481
|
+
rn() && (g(o), sn(() => (e === 0 && (n = dn(() => t(() => Me(o)))), e += 1, () => {
|
|
482
482
|
ee(() => {
|
|
483
|
-
e -= 1, e === 0 && (n?.(), n = void 0,
|
|
483
|
+
e -= 1, e === 0 && (n?.(), n = void 0, Me(o));
|
|
484
484
|
});
|
|
485
485
|
})));
|
|
486
486
|
};
|
|
487
487
|
}
|
|
488
|
-
var
|
|
489
|
-
function
|
|
490
|
-
new
|
|
488
|
+
var Zr = Jo | ye;
|
|
489
|
+
function Xr(t, e, o, n) {
|
|
490
|
+
new Yr(t, e, o, n);
|
|
491
491
|
}
|
|
492
|
-
var ct = /* @__PURE__ */ new WeakMap(), $o = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(),
|
|
492
|
+
var ct = /* @__PURE__ */ new WeakMap(), $o = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap(), Oe = /* @__PURE__ */ new WeakMap(), Y = /* @__PURE__ */ new WeakMap(), Wt = /* @__PURE__ */ new WeakMap(), ut = /* @__PURE__ */ new WeakMap(), xt = /* @__PURE__ */ new WeakMap(), Yt = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), Ge = /* @__PURE__ */ new WeakMap(), Wo = /* @__PURE__ */ new WeakMap(), jo = /* @__PURE__ */ new WeakMap(), Bt = /* @__PURE__ */ new WeakMap(), _n = /* @__PURE__ */ new WeakMap(), q = /* @__PURE__ */ new WeakSet(), Yr = class {
|
|
493
493
|
constructor(t, e, o, n) {
|
|
494
|
-
|
|
494
|
+
Xo(this, q), y(this, "parent", void 0), y(this, "is_pending", !1), y(this, "transform_error", void 0), $(this, ct, void 0), $(this, $o, L ? E : null), $(this, Nt, void 0), $(this, Oe, void 0), $(this, Y, void 0), $(this, Wt, null), $(this, ut, null), $(this, xt, null), $(this, Yt, null), $(this, ue, 0), $(this, Qt, 0), $(this, Ge, !1), $(this, Wo, /* @__PURE__ */ new Set()), $(this, jo, /* @__PURE__ */ new Set()), $(this, Bt, null), $(this, _n, Jr(() => (T(Bt, this, oe(u(ue, this))), () => {
|
|
495
495
|
T(Bt, this, null);
|
|
496
|
-
}))), T(ct, this, t), T(Nt, this, e), T(
|
|
497
|
-
var r =
|
|
496
|
+
}))), T(ct, this, t), T(Nt, this, e), T(Oe, this, (i) => {
|
|
497
|
+
var r = k;
|
|
498
498
|
r.b = this, r.f |= 128, o(i);
|
|
499
|
-
}), this.parent =
|
|
499
|
+
}), this.parent = k.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), T(Y, this, ln(() => {
|
|
500
500
|
if (L) {
|
|
501
|
-
const i =
|
|
502
|
-
|
|
501
|
+
const i = u($o, this);
|
|
502
|
+
mo();
|
|
503
503
|
const r = i.data === "[!";
|
|
504
504
|
if (i.data.startsWith("[?")) {
|
|
505
505
|
const s = JSON.parse(i.data.slice(2));
|
|
506
|
-
|
|
507
|
-
} else r ?
|
|
508
|
-
} else
|
|
509
|
-
},
|
|
506
|
+
O(q, this, ts).call(this, s);
|
|
507
|
+
} else r ? O(q, this, es).call(this) : O(q, this, Qr).call(this);
|
|
508
|
+
} else O(q, this, Cn).call(this);
|
|
509
|
+
}, Zr)), L && T(ct, this, E);
|
|
510
510
|
}
|
|
511
511
|
defer_effect(t) {
|
|
512
|
-
|
|
512
|
+
ui(t, u(Wo, this), u(jo, this));
|
|
513
513
|
}
|
|
514
514
|
is_rendered() {
|
|
515
515
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
516
516
|
}
|
|
517
517
|
has_pending_snippet() {
|
|
518
|
-
return !!
|
|
518
|
+
return !!u(Nt, this).pending;
|
|
519
519
|
}
|
|
520
520
|
update_pending_count(t, e) {
|
|
521
|
-
|
|
522
|
-
T(Ge, this, !1),
|
|
521
|
+
O(q, this, Ti).call(this, t, e), T(ue, this, u(ue, this) + t), !(!u(Bt, this) || u(Ge, this)) && (T(Ge, this, !0), ee(() => {
|
|
522
|
+
T(Ge, this, !1), u(Bt, this) && me(u(Bt, this), u(ue, this));
|
|
523
523
|
}));
|
|
524
524
|
}
|
|
525
525
|
get_effect_pending() {
|
|
526
|
-
return
|
|
526
|
+
return u(_n, this).call(this), g(u(Bt, this));
|
|
527
527
|
}
|
|
528
528
|
error(t) {
|
|
529
|
-
var e =
|
|
530
|
-
let o =
|
|
529
|
+
var e = u(Nt, this).onerror;
|
|
530
|
+
let o = u(Nt, this).failed;
|
|
531
531
|
if (!e && !o) throw t;
|
|
532
|
-
|
|
532
|
+
u(Wt, this) && (z(u(Wt, this)), T(Wt, this, null)), u(ut, this) && (z(u(ut, this)), T(ut, this, null)), u(xt, this) && (z(u(xt, this)), T(xt, this, null)), L && (G(u($o, this)), zr(), G(ao()));
|
|
533
533
|
var n = !1, i = !1;
|
|
534
534
|
const r = () => {
|
|
535
535
|
if (n) {
|
|
536
|
-
|
|
536
|
+
jr();
|
|
537
537
|
return;
|
|
538
538
|
}
|
|
539
|
-
n = !0, i &&
|
|
540
|
-
T(
|
|
541
|
-
}),
|
|
542
|
-
|
|
539
|
+
n = !0, i && Wr(), u(xt, this) !== null && se(u(xt, this), () => {
|
|
540
|
+
T(xt, this, null);
|
|
541
|
+
}), O(q, this, zo).call(this, () => {
|
|
542
|
+
O(q, this, Cn).call(this);
|
|
543
543
|
});
|
|
544
544
|
}, s = (l) => {
|
|
545
545
|
try {
|
|
546
546
|
i = !0, e?.(l, r), i = !1;
|
|
547
547
|
} catch (a) {
|
|
548
|
-
Vt(a,
|
|
548
|
+
Vt(a, u(Y, this) && u(Y, this).parent);
|
|
549
549
|
}
|
|
550
|
-
o && T(
|
|
550
|
+
o && T(xt, this, O(q, this, zo).call(this, () => {
|
|
551
551
|
try {
|
|
552
552
|
return ot(() => {
|
|
553
|
-
var a =
|
|
554
|
-
a.b = this, a.f |= 128, o(
|
|
553
|
+
var a = k;
|
|
554
|
+
a.b = this, a.f |= 128, o(u(ct, this), () => l, () => r);
|
|
555
555
|
});
|
|
556
556
|
} catch (a) {
|
|
557
|
-
return Vt(a,
|
|
557
|
+
return Vt(a, u(Y, this).parent), null;
|
|
558
558
|
}
|
|
559
559
|
}));
|
|
560
560
|
};
|
|
@@ -563,85 +563,85 @@ var ct = /* @__PURE__ */ new WeakMap(), $o = /* @__PURE__ */ new WeakMap(), Nt =
|
|
|
563
563
|
try {
|
|
564
564
|
l = this.transform_error(t);
|
|
565
565
|
} catch (a) {
|
|
566
|
-
Vt(a,
|
|
566
|
+
Vt(a, u(Y, this) && u(Y, this).parent);
|
|
567
567
|
return;
|
|
568
568
|
}
|
|
569
|
-
l !== null && typeof l == "object" && typeof l.then == "function" ? l.then(s, (a) => Vt(a,
|
|
569
|
+
l !== null && typeof l == "object" && typeof l.then == "function" ? l.then(s, (a) => Vt(a, u(Y, this) && u(Y, this).parent)) : s(l);
|
|
570
570
|
});
|
|
571
571
|
}
|
|
572
572
|
};
|
|
573
|
-
function
|
|
573
|
+
function Qr() {
|
|
574
574
|
try {
|
|
575
|
-
T(Wt, this, ot(() =>
|
|
575
|
+
T(Wt, this, ot(() => u(Oe, this).call(this, u(ct, this))));
|
|
576
576
|
} catch (t) {
|
|
577
577
|
this.error(t);
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
function
|
|
581
|
-
const e =
|
|
582
|
-
e && T(
|
|
583
|
-
e(
|
|
580
|
+
function ts(t) {
|
|
581
|
+
const e = u(Nt, this).failed;
|
|
582
|
+
e && T(xt, this, ot(() => {
|
|
583
|
+
e(u(ct, this), () => t, () => () => {
|
|
584
584
|
});
|
|
585
585
|
}));
|
|
586
586
|
}
|
|
587
|
-
function
|
|
588
|
-
const t =
|
|
589
|
-
t && (this.is_pending = !0, T(ut, this, ot(() => t(
|
|
587
|
+
function es() {
|
|
588
|
+
const t = u(Nt, this).pending;
|
|
589
|
+
t && (this.is_pending = !0, T(ut, this, ot(() => t(u(ct, this)))), ee(() => {
|
|
590
590
|
var e = T(Yt, this, document.createDocumentFragment()), o = ht();
|
|
591
|
-
e.append(o), T(Wt, this,
|
|
591
|
+
e.append(o), T(Wt, this, O(q, this, zo).call(this, () => ot(() => u(Oe, this).call(this, o)))), u(Qt, this) === 0 && (u(ct, this).before(e), T(Yt, this, null), se(u(ut, this), () => {
|
|
592
592
|
T(ut, this, null);
|
|
593
|
-
}),
|
|
593
|
+
}), O(q, this, Qo).call(this, M));
|
|
594
594
|
}));
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function Cn() {
|
|
597
597
|
try {
|
|
598
598
|
if (this.is_pending = this.has_pending_snippet(), T(Qt, this, 0), T(ue, this, 0), T(Wt, this, ot(() => {
|
|
599
|
-
|
|
600
|
-
})),
|
|
599
|
+
u(Oe, this).call(this, u(ct, this));
|
|
600
|
+
})), u(Qt, this) > 0) {
|
|
601
601
|
var t = T(Yt, this, document.createDocumentFragment());
|
|
602
|
-
|
|
603
|
-
const e =
|
|
604
|
-
T(ut, this, ot(() => e(
|
|
605
|
-
} else
|
|
602
|
+
un(u(Wt, this), t);
|
|
603
|
+
const e = u(Nt, this).pending;
|
|
604
|
+
T(ut, this, ot(() => e(u(ct, this))));
|
|
605
|
+
} else O(q, this, Qo).call(this, M);
|
|
606
606
|
} catch (e) {
|
|
607
607
|
this.error(e);
|
|
608
608
|
}
|
|
609
609
|
}
|
|
610
|
-
function
|
|
611
|
-
this.is_pending = !1, t.transfer_effects(
|
|
610
|
+
function Qo(t) {
|
|
611
|
+
this.is_pending = !1, t.transfer_effects(u(Wo, this), u(jo, this));
|
|
612
612
|
}
|
|
613
|
-
function
|
|
614
|
-
var e =
|
|
615
|
-
yt(
|
|
613
|
+
function zo(t) {
|
|
614
|
+
var e = k, o = A, n = W;
|
|
615
|
+
yt(u(Y, this)), nt(u(Y, this)), ve(u(Y, this).ctx);
|
|
616
616
|
try {
|
|
617
617
|
return re.ensure(), t();
|
|
618
618
|
} catch (i) {
|
|
619
|
-
return
|
|
619
|
+
return ai(i), null;
|
|
620
620
|
} finally {
|
|
621
621
|
yt(e), nt(o), ve(n);
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
function
|
|
624
|
+
function Ti(t, e) {
|
|
625
625
|
if (!this.has_pending_snippet()) {
|
|
626
626
|
if (this.parent) {
|
|
627
627
|
var o;
|
|
628
|
-
|
|
628
|
+
O(q, o = this.parent, Ti).call(o, t, e);
|
|
629
629
|
}
|
|
630
630
|
return;
|
|
631
631
|
}
|
|
632
|
-
T(Qt, this,
|
|
632
|
+
T(Qt, this, u(Qt, this) + t), u(Qt, this) === 0 && (O(q, this, Qo).call(this, e), u(ut, this) && se(u(ut, this), () => {
|
|
633
633
|
T(ut, this, null);
|
|
634
|
-
}),
|
|
634
|
+
}), u(Yt, this) && (u(ct, this).before(u(Yt, this)), T(Yt, this, null)));
|
|
635
635
|
}
|
|
636
|
-
function
|
|
637
|
-
const i = Ne() ?
|
|
636
|
+
function os(t, e, o, n) {
|
|
637
|
+
const i = Ne() ? yo : tn;
|
|
638
638
|
var r = t.filter((h) => !h.settled);
|
|
639
639
|
if (o.length === 0 && r.length === 0) {
|
|
640
640
|
n(e.map(i));
|
|
641
641
|
return;
|
|
642
642
|
}
|
|
643
|
-
var s =
|
|
644
|
-
function
|
|
643
|
+
var s = k, l = ns(), a = r.length === 1 ? r[0].promise : r.length > 1 ? Promise.all(r.map((h) => h.promise)) : null;
|
|
644
|
+
function c(h) {
|
|
645
645
|
l();
|
|
646
646
|
try {
|
|
647
647
|
n(h);
|
|
@@ -651,154 +651,154 @@ function Yr(t, e, o, n) {
|
|
|
651
651
|
ho();
|
|
652
652
|
}
|
|
653
653
|
if (o.length === 0) {
|
|
654
|
-
a.then(() =>
|
|
654
|
+
a.then(() => c(e.map(i)));
|
|
655
655
|
return;
|
|
656
656
|
}
|
|
657
|
-
var d =
|
|
658
|
-
function
|
|
659
|
-
Promise.all(o.map((h) => /* @__PURE__ */
|
|
657
|
+
var d = Ii();
|
|
658
|
+
function f() {
|
|
659
|
+
Promise.all(o.map((h) => /* @__PURE__ */ is(h))).then((h) => c([...e.map(i), ...h])).catch((h) => Vt(h, s)).finally(() => d());
|
|
660
660
|
}
|
|
661
661
|
a ? a.then(() => {
|
|
662
|
-
l(),
|
|
663
|
-
}) :
|
|
662
|
+
l(), f(), ho();
|
|
663
|
+
}) : f();
|
|
664
664
|
}
|
|
665
|
-
function
|
|
666
|
-
var t =
|
|
665
|
+
function ns() {
|
|
666
|
+
var t = k, e = A, o = W, n = M;
|
|
667
667
|
return function(i = !0) {
|
|
668
668
|
yt(t), nt(e), ve(o), i && !(t.f & 16384) && (n?.activate(), n?.apply());
|
|
669
669
|
};
|
|
670
670
|
}
|
|
671
671
|
function ho(t = !0) {
|
|
672
|
-
yt(null), nt(null), ve(null), t &&
|
|
672
|
+
yt(null), nt(null), ve(null), t && M?.deactivate();
|
|
673
673
|
}
|
|
674
|
-
function
|
|
675
|
-
var t =
|
|
674
|
+
function Ii() {
|
|
675
|
+
var t = k.b, e = M, o = t.is_rendered();
|
|
676
676
|
return t.update_pending_count(1, e), e.increment(o), (n = !1) => {
|
|
677
677
|
t.update_pending_count(-1, e), e.decrement(o, n);
|
|
678
678
|
};
|
|
679
679
|
}
|
|
680
680
|
// @__NO_SIDE_EFFECTS__
|
|
681
|
-
function
|
|
682
|
-
var e = 2 | wt, o =
|
|
683
|
-
return
|
|
681
|
+
function yo(t) {
|
|
682
|
+
var e = 2 | wt, o = A !== null && A.f & 2 ? A : null;
|
|
683
|
+
return k !== null && (k.f |= ye), {
|
|
684
684
|
ctx: W,
|
|
685
685
|
deps: null,
|
|
686
686
|
effects: null,
|
|
687
|
-
equals:
|
|
687
|
+
equals: ni,
|
|
688
688
|
f: e,
|
|
689
689
|
fn: t,
|
|
690
690
|
reactions: null,
|
|
691
691
|
rv: 0,
|
|
692
692
|
v: j,
|
|
693
693
|
wv: 0,
|
|
694
|
-
parent: o ??
|
|
694
|
+
parent: o ?? k,
|
|
695
695
|
ac: null
|
|
696
696
|
};
|
|
697
697
|
}
|
|
698
698
|
// @__NO_SIDE_EFFECTS__
|
|
699
|
-
function
|
|
700
|
-
let n =
|
|
701
|
-
n === null &&
|
|
702
|
-
var i = void 0, r = oe(j), s = !
|
|
703
|
-
return
|
|
704
|
-
var a =
|
|
705
|
-
i =
|
|
699
|
+
function is(t, e, o) {
|
|
700
|
+
let n = k;
|
|
701
|
+
n === null && xr();
|
|
702
|
+
var i = void 0, r = oe(j), s = !A, l = /* @__PURE__ */ new Map();
|
|
703
|
+
return ps(() => {
|
|
704
|
+
var a = k, c = ti();
|
|
705
|
+
i = c.promise;
|
|
706
706
|
try {
|
|
707
|
-
Promise.resolve(t()).then(
|
|
707
|
+
Promise.resolve(t()).then(c.resolve, c.reject).finally(ho);
|
|
708
708
|
} catch (v) {
|
|
709
|
-
|
|
709
|
+
c.reject(v), ho();
|
|
710
710
|
}
|
|
711
|
-
var d =
|
|
711
|
+
var d = M;
|
|
712
712
|
if (s) {
|
|
713
|
-
if (a.f & 32768) var
|
|
713
|
+
if (a.f & 32768) var f = Ii();
|
|
714
714
|
if (n.b.is_rendered()) l.get(d)?.reject(_t), l.delete(d);
|
|
715
715
|
else {
|
|
716
716
|
for (const v of l.values()) v.reject(_t);
|
|
717
717
|
l.clear();
|
|
718
718
|
}
|
|
719
|
-
l.set(d,
|
|
719
|
+
l.set(d, c);
|
|
720
720
|
}
|
|
721
|
-
const h = (v,
|
|
722
|
-
if (
|
|
723
|
-
if (d.activate(),
|
|
721
|
+
const h = (v, m = void 0) => {
|
|
722
|
+
if (f && f(m === _t), !(m === _t || a.f & 16384)) {
|
|
723
|
+
if (d.activate(), m) r.f |= lo, me(r, m);
|
|
724
724
|
else {
|
|
725
725
|
r.f & 8388608 && (r.f ^= lo), me(r, v);
|
|
726
|
-
for (const [
|
|
727
|
-
if (l.delete(
|
|
728
|
-
|
|
726
|
+
for (const [S, p] of l) {
|
|
727
|
+
if (l.delete(S), S === d) break;
|
|
728
|
+
p.reject(_t);
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
731
|
d.deactivate();
|
|
732
732
|
}
|
|
733
733
|
};
|
|
734
|
-
|
|
735
|
-
}),
|
|
734
|
+
c.promise.then(h, (v) => h(null, v || "unknown"));
|
|
735
|
+
}), ds(() => {
|
|
736
736
|
for (const a of l.values()) a.reject(_t);
|
|
737
737
|
}), new Promise((a) => {
|
|
738
|
-
function
|
|
739
|
-
function
|
|
740
|
-
d === i ? a(r) :
|
|
738
|
+
function c(d) {
|
|
739
|
+
function f() {
|
|
740
|
+
d === i ? a(r) : c(i);
|
|
741
741
|
}
|
|
742
|
-
d.then(
|
|
742
|
+
d.then(f, f);
|
|
743
743
|
}
|
|
744
|
-
|
|
744
|
+
c(i);
|
|
745
745
|
});
|
|
746
746
|
}
|
|
747
747
|
// @__NO_SIDE_EFFECTS__
|
|
748
748
|
function ko(t) {
|
|
749
|
-
const e = /* @__PURE__ */
|
|
750
|
-
return zt ||
|
|
749
|
+
const e = /* @__PURE__ */ yo(t);
|
|
750
|
+
return zt || zi(e), e;
|
|
751
751
|
}
|
|
752
752
|
// @__NO_SIDE_EFFECTS__
|
|
753
|
-
function
|
|
754
|
-
const e = /* @__PURE__ */
|
|
755
|
-
return e.equals =
|
|
753
|
+
function tn(t) {
|
|
754
|
+
const e = /* @__PURE__ */ yo(t);
|
|
755
|
+
return e.equals = ii, e;
|
|
756
756
|
}
|
|
757
|
-
function
|
|
757
|
+
function rs(t) {
|
|
758
758
|
var e = t.effects;
|
|
759
759
|
if (e !== null) {
|
|
760
760
|
t.effects = null;
|
|
761
761
|
for (var o = 0; o < e.length; o += 1) z(e[o]);
|
|
762
762
|
}
|
|
763
763
|
}
|
|
764
|
-
function
|
|
764
|
+
function ss(t) {
|
|
765
765
|
for (var e = t.parent; e !== null; ) {
|
|
766
766
|
if (!(e.f & 2)) return e.f & 16384 ? null : e;
|
|
767
767
|
e = e.parent;
|
|
768
768
|
}
|
|
769
769
|
return null;
|
|
770
770
|
}
|
|
771
|
-
function
|
|
772
|
-
var e, o =
|
|
773
|
-
yt(
|
|
771
|
+
function en(t) {
|
|
772
|
+
var e, o = k;
|
|
773
|
+
yt(ss(t));
|
|
774
774
|
try {
|
|
775
|
-
t.f &= ~Re,
|
|
775
|
+
t.f &= ~Re, rs(t), e = Bi(t);
|
|
776
776
|
} finally {
|
|
777
777
|
yt(o);
|
|
778
778
|
}
|
|
779
779
|
return e;
|
|
780
780
|
}
|
|
781
|
-
function
|
|
782
|
-
var e = t.v, o =
|
|
783
|
-
if (!t.equals(o) && (t.wv =
|
|
781
|
+
function Si(t) {
|
|
782
|
+
var e = t.v, o = en(t);
|
|
783
|
+
if (!t.equals(o) && (t.wv = Di(), (!M?.is_fork || t.deps === null) && (t.v = o, M?.capture(t, e), t.deps === null))) {
|
|
784
784
|
N(t, et);
|
|
785
785
|
return;
|
|
786
786
|
}
|
|
787
|
-
Ht || (F !== null ? (
|
|
787
|
+
Ht || (F !== null ? (rn() || M?.is_fork) && F.set(t, o) : Zo(t));
|
|
788
788
|
}
|
|
789
|
-
function
|
|
790
|
-
if (t.effects !== null) for (const e of t.effects) (e.teardown || e.ac) && (e.teardown?.(), e.ac?.abort(_t), e.teardown =
|
|
789
|
+
function ls(t) {
|
|
790
|
+
if (t.effects !== null) for (const e of t.effects) (e.teardown || e.ac) && (e.teardown?.(), e.ac?.abort(_t), e.teardown = wr, e.ac = null, Pe(e, 0), an(e));
|
|
791
791
|
}
|
|
792
|
-
function
|
|
792
|
+
function $i(t) {
|
|
793
793
|
if (t.effects !== null) for (const e of t.effects) e.teardown && be(e);
|
|
794
794
|
}
|
|
795
|
-
var
|
|
795
|
+
var Ho = /* @__PURE__ */ new Set(), jt = /* @__PURE__ */ new Map(), ki = !1;
|
|
796
796
|
function oe(t, e) {
|
|
797
797
|
return {
|
|
798
798
|
f: 0,
|
|
799
799
|
v: t,
|
|
800
800
|
reactions: null,
|
|
801
|
-
equals:
|
|
801
|
+
equals: ni,
|
|
802
802
|
rv: 0,
|
|
803
803
|
wv: 0
|
|
804
804
|
};
|
|
@@ -806,19 +806,19 @@ function oe(t, e) {
|
|
|
806
806
|
// @__NO_SIDE_EFFECTS__
|
|
807
807
|
function V(t, e) {
|
|
808
808
|
const o = oe(t, e);
|
|
809
|
-
return
|
|
809
|
+
return zi(o), o;
|
|
810
810
|
}
|
|
811
811
|
// @__NO_SIDE_EFFECTS__
|
|
812
|
-
function
|
|
812
|
+
function Ai(t, e = !1, o = !0) {
|
|
813
813
|
const n = oe(t);
|
|
814
|
-
if (e || (n.equals =
|
|
814
|
+
if (e || (n.equals = ii), bo && o && W !== null && W.l !== null) {
|
|
815
815
|
var i;
|
|
816
816
|
((i = W.l).s ?? (i.s = [])).push(n);
|
|
817
817
|
}
|
|
818
818
|
return n;
|
|
819
819
|
}
|
|
820
820
|
function _(t, e, o = !1) {
|
|
821
|
-
return
|
|
821
|
+
return A !== null && (!dt || A.f & 131072) && Ne() && A.f & 4325394 && (tt === null || !pe.call(tt, t)) && Vr(), me(t, o ? Kt(e) : e, co);
|
|
822
822
|
}
|
|
823
823
|
function me(t, e, o = null) {
|
|
824
824
|
if (!t.equals(e)) {
|
|
@@ -827,82 +827,82 @@ function me(t, e, o = null) {
|
|
|
827
827
|
var i = re.ensure();
|
|
828
828
|
if (i.capture(t, n), t.f & 2) {
|
|
829
829
|
const r = t;
|
|
830
|
-
t.f & 2048 &&
|
|
830
|
+
t.f & 2048 && en(r), F === null && Zo(r);
|
|
831
831
|
}
|
|
832
|
-
t.wv =
|
|
832
|
+
t.wv = Di(), xi(t, wt, o), Ne() && k !== null && k.f & 1024 && !(k.f & 96) && (Q === null ? bs([t]) : Q.push(t)), !i.is_fork && Ho.size > 0 && !ki && as();
|
|
833
833
|
}
|
|
834
834
|
return e;
|
|
835
835
|
}
|
|
836
|
-
function
|
|
837
|
-
|
|
838
|
-
for (const t of
|
|
839
|
-
|
|
836
|
+
function as() {
|
|
837
|
+
ki = !1;
|
|
838
|
+
for (const t of Ho) t.f & 1024 && N(t, ie), Ve(t) && be(t);
|
|
839
|
+
Ho.clear();
|
|
840
840
|
}
|
|
841
|
-
function
|
|
841
|
+
function Me(t) {
|
|
842
842
|
_(t, t.v + 1);
|
|
843
843
|
}
|
|
844
|
-
function
|
|
844
|
+
function xi(t, e, o) {
|
|
845
845
|
var n = t.reactions;
|
|
846
846
|
if (n !== null) for (var i = Ne(), r = n.length, s = 0; s < r; s++) {
|
|
847
847
|
var l = n[s], a = l.f;
|
|
848
|
-
if (!(!i && l ===
|
|
849
|
-
var
|
|
850
|
-
if (
|
|
848
|
+
if (!(!i && l === k)) {
|
|
849
|
+
var c = (a & wt) === 0;
|
|
850
|
+
if (c && N(l, e), a & 2) {
|
|
851
851
|
var d = l;
|
|
852
|
-
F?.delete(d), a & 65536 || (a & 512 && (l.f |= Re),
|
|
853
|
-
} else if (
|
|
854
|
-
var
|
|
855
|
-
a & 16 && bt !== null && bt.add(
|
|
852
|
+
F?.delete(d), a & 65536 || (a & 512 && (l.f |= Re), xi(d, ie, o));
|
|
853
|
+
} else if (c) {
|
|
854
|
+
var f = l;
|
|
855
|
+
a & 16 && bt !== null && bt.add(f), o !== null ? o.push(f) : Yo(f);
|
|
856
856
|
}
|
|
857
857
|
}
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
860
|
function Kt(t) {
|
|
861
861
|
if (typeof t != "object" || t === null || Ce in t) return t;
|
|
862
|
-
const e =
|
|
863
|
-
if (e !==
|
|
864
|
-
var o = /* @__PURE__ */ new Map(), n =
|
|
862
|
+
const e = Qn(t);
|
|
863
|
+
if (e !== br && e !== yr) return t;
|
|
864
|
+
var o = /* @__PURE__ */ new Map(), n = Yn(t), i = /* @__PURE__ */ V(0), r = null, s = te, l = (a) => {
|
|
865
865
|
if (te === s) return a();
|
|
866
|
-
var
|
|
867
|
-
nt(null),
|
|
868
|
-
var
|
|
869
|
-
return nt(
|
|
866
|
+
var c = A, d = te;
|
|
867
|
+
nt(null), On(s);
|
|
868
|
+
var f = a();
|
|
869
|
+
return nt(c), On(d), f;
|
|
870
870
|
};
|
|
871
871
|
return n && o.set("length", /* @__PURE__ */ V(t.length, r)), new Proxy(t, {
|
|
872
|
-
defineProperty(a,
|
|
873
|
-
(!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) &&
|
|
874
|
-
var
|
|
875
|
-
return
|
|
872
|
+
defineProperty(a, c, d) {
|
|
873
|
+
(!("value" in d) || d.configurable === !1 || d.enumerable === !1 || d.writable === !1) && Rr();
|
|
874
|
+
var f = o.get(c);
|
|
875
|
+
return f === void 0 ? l(() => {
|
|
876
876
|
var h = /* @__PURE__ */ V(d.value, r);
|
|
877
|
-
return o.set(
|
|
878
|
-
}) : _(
|
|
877
|
+
return o.set(c, h), h;
|
|
878
|
+
}) : _(f, d.value, !0), !0;
|
|
879
879
|
},
|
|
880
|
-
deleteProperty(a,
|
|
881
|
-
var d = o.get(
|
|
880
|
+
deleteProperty(a, c) {
|
|
881
|
+
var d = o.get(c);
|
|
882
882
|
if (d === void 0) {
|
|
883
|
-
if (
|
|
884
|
-
const
|
|
885
|
-
o.set(
|
|
883
|
+
if (c in a) {
|
|
884
|
+
const f = l(() => /* @__PURE__ */ V(j, r));
|
|
885
|
+
o.set(c, f), Me(i);
|
|
886
886
|
}
|
|
887
|
-
} else _(d, j),
|
|
887
|
+
} else _(d, j), Me(i);
|
|
888
888
|
return !0;
|
|
889
889
|
},
|
|
890
|
-
get(a,
|
|
891
|
-
if (
|
|
892
|
-
var
|
|
893
|
-
if (
|
|
894
|
-
var v = g(
|
|
890
|
+
get(a, c, d) {
|
|
891
|
+
if (c === Ce) return t;
|
|
892
|
+
var f = o.get(c), h = c in a;
|
|
893
|
+
if (f === void 0 && (!h || Zt(a, c)?.writable) && (f = l(() => /* @__PURE__ */ V(Kt(h ? a[c] : j), r)), o.set(c, f)), f !== void 0) {
|
|
894
|
+
var v = g(f);
|
|
895
895
|
return v === j ? void 0 : v;
|
|
896
896
|
}
|
|
897
|
-
return Reflect.get(a,
|
|
897
|
+
return Reflect.get(a, c, d);
|
|
898
898
|
},
|
|
899
|
-
getOwnPropertyDescriptor(a,
|
|
900
|
-
var d = Reflect.getOwnPropertyDescriptor(a,
|
|
899
|
+
getOwnPropertyDescriptor(a, c) {
|
|
900
|
+
var d = Reflect.getOwnPropertyDescriptor(a, c);
|
|
901
901
|
if (d && "value" in d) {
|
|
902
|
-
var
|
|
903
|
-
|
|
902
|
+
var f = o.get(c);
|
|
903
|
+
f && (d.value = g(f));
|
|
904
904
|
} else if (d === void 0) {
|
|
905
|
-
var h = o.get(
|
|
905
|
+
var h = o.get(c), v = h?.v;
|
|
906
906
|
if (h !== void 0 && v !== j) return {
|
|
907
907
|
enumerable: !0,
|
|
908
908
|
configurable: !0,
|
|
@@ -912,53 +912,53 @@ function Kt(t) {
|
|
|
912
912
|
}
|
|
913
913
|
return d;
|
|
914
914
|
},
|
|
915
|
-
has(a,
|
|
916
|
-
if (
|
|
917
|
-
var d = o.get(
|
|
918
|
-
return (d !== void 0 ||
|
|
915
|
+
has(a, c) {
|
|
916
|
+
if (c === Ce) return !0;
|
|
917
|
+
var d = o.get(c), f = d !== void 0 && d.v !== j || Reflect.has(a, c);
|
|
918
|
+
return (d !== void 0 || k !== null && (!f || Zt(a, c)?.writable)) && (d === void 0 && (d = l(() => /* @__PURE__ */ V(f ? Kt(a[c]) : j, r)), o.set(c, d)), g(d) === j) ? !1 : f;
|
|
919
919
|
},
|
|
920
|
-
set(a,
|
|
921
|
-
var h = o.get(
|
|
922
|
-
if (n &&
|
|
923
|
-
var
|
|
924
|
-
|
|
920
|
+
set(a, c, d, f) {
|
|
921
|
+
var h = o.get(c), v = c in a;
|
|
922
|
+
if (n && c === "length") for (var m = d; m < h.v; m += 1) {
|
|
923
|
+
var S = o.get(m + "");
|
|
924
|
+
S !== void 0 ? _(S, j) : m in a && (S = l(() => /* @__PURE__ */ V(j, r)), o.set(m + "", S));
|
|
925
925
|
}
|
|
926
|
-
if (h === void 0) (!v ||
|
|
926
|
+
if (h === void 0) (!v || Zt(a, c)?.writable) && (h = l(() => /* @__PURE__ */ V(void 0, r)), _(h, Kt(d)), o.set(c, h));
|
|
927
927
|
else {
|
|
928
928
|
v = h.v !== j;
|
|
929
|
-
var
|
|
930
|
-
_(h,
|
|
929
|
+
var p = l(() => Kt(d));
|
|
930
|
+
_(h, p);
|
|
931
931
|
}
|
|
932
|
-
var w = Reflect.getOwnPropertyDescriptor(a,
|
|
933
|
-
if (w?.set && w.set.call(
|
|
934
|
-
if (n && typeof
|
|
935
|
-
var R = o.get("length"),
|
|
936
|
-
Number.isInteger(
|
|
932
|
+
var w = Reflect.getOwnPropertyDescriptor(a, c);
|
|
933
|
+
if (w?.set && w.set.call(f, d), !v) {
|
|
934
|
+
if (n && typeof c == "string") {
|
|
935
|
+
var R = o.get("length"), x = Number(c);
|
|
936
|
+
Number.isInteger(x) && x >= R.v && _(R, x + 1);
|
|
937
937
|
}
|
|
938
|
-
|
|
938
|
+
Me(i);
|
|
939
939
|
}
|
|
940
940
|
return !0;
|
|
941
941
|
},
|
|
942
942
|
ownKeys(a) {
|
|
943
943
|
g(i);
|
|
944
|
-
var
|
|
944
|
+
var c = Reflect.ownKeys(a).filter((h) => {
|
|
945
945
|
var v = o.get(h);
|
|
946
946
|
return v === void 0 || v.v !== j;
|
|
947
947
|
});
|
|
948
|
-
for (var [d,
|
|
949
|
-
return
|
|
948
|
+
for (var [d, f] of o) f.v !== j && !(d in a) && c.push(d);
|
|
949
|
+
return c;
|
|
950
950
|
},
|
|
951
951
|
setPrototypeOf() {
|
|
952
|
-
|
|
952
|
+
Nr();
|
|
953
953
|
}
|
|
954
954
|
});
|
|
955
955
|
}
|
|
956
|
-
var
|
|
957
|
-
function
|
|
958
|
-
if (
|
|
959
|
-
|
|
956
|
+
var En, _i, Ci, Ei;
|
|
957
|
+
function Do() {
|
|
958
|
+
if (En === void 0) {
|
|
959
|
+
En = window, _i = /Firefox/.test(navigator.userAgent);
|
|
960
960
|
var t = Element.prototype, e = Node.prototype, o = Text.prototype;
|
|
961
|
-
|
|
961
|
+
Ci = Zt(e, "firstChild").get, Ei = Zt(e, "nextSibling").get, In(t) && (t.__click = void 0, t.__className = void 0, t.__attributes = null, t.__style = void 0, t.__e = void 0), In(o) && (o.__t = void 0);
|
|
962
962
|
}
|
|
963
963
|
}
|
|
964
964
|
function ht(t = "") {
|
|
@@ -966,11 +966,11 @@ function ht(t = "") {
|
|
|
966
966
|
}
|
|
967
967
|
// @__NO_SIDE_EFFECTS__
|
|
968
968
|
function ne(t) {
|
|
969
|
-
return
|
|
969
|
+
return Ci.call(t);
|
|
970
970
|
}
|
|
971
971
|
// @__NO_SIDE_EFFECTS__
|
|
972
972
|
function Tt(t) {
|
|
973
|
-
return
|
|
973
|
+
return Ei.call(t);
|
|
974
974
|
}
|
|
975
975
|
function Ue(t, e) {
|
|
976
976
|
if (!L) return /* @__PURE__ */ ne(t);
|
|
@@ -980,9 +980,9 @@ function Ue(t, e) {
|
|
|
980
980
|
var n = ht();
|
|
981
981
|
return o?.before(n), G(n), n;
|
|
982
982
|
}
|
|
983
|
-
return e &&
|
|
983
|
+
return e && nn(o), G(o), o;
|
|
984
984
|
}
|
|
985
|
-
function
|
|
985
|
+
function Ao(t, e = !1) {
|
|
986
986
|
if (!L) {
|
|
987
987
|
var o = /* @__PURE__ */ ne(t);
|
|
988
988
|
return o instanceof Comment && o.data === "" ? /* @__PURE__ */ Tt(o) : o;
|
|
@@ -992,11 +992,11 @@ function So(t, e = !1) {
|
|
|
992
992
|
var n = ht();
|
|
993
993
|
return E?.before(n), G(n), n;
|
|
994
994
|
}
|
|
995
|
-
|
|
995
|
+
nn(E);
|
|
996
996
|
}
|
|
997
997
|
return E;
|
|
998
998
|
}
|
|
999
|
-
function
|
|
999
|
+
function Mt(t, e = 1, o = !1) {
|
|
1000
1000
|
let n = L ? E : t;
|
|
1001
1001
|
for (var i; e--; ) i = n, n = /* @__PURE__ */ Tt(n);
|
|
1002
1002
|
if (!L) return n;
|
|
@@ -1005,27 +1005,27 @@ function Pt(t, e = 1, o = !1) {
|
|
|
1005
1005
|
var r = ht();
|
|
1006
1006
|
return n === null ? i?.after(r) : n.before(r), G(r), r;
|
|
1007
1007
|
}
|
|
1008
|
-
|
|
1008
|
+
nn(n);
|
|
1009
1009
|
}
|
|
1010
1010
|
return G(n), n;
|
|
1011
1011
|
}
|
|
1012
|
-
function
|
|
1012
|
+
function Mi(t) {
|
|
1013
1013
|
t.textContent = "";
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1016
|
-
return !zt || bt !== null ? !1 : (
|
|
1015
|
+
function Li() {
|
|
1016
|
+
return !zt || bt !== null ? !1 : (k.f & Ko) !== 0;
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1018
|
+
function on(t, e, o) {
|
|
1019
1019
|
let n = o ? { is: o } : void 0;
|
|
1020
1020
|
return document.createElementNS(e ?? "http://www.w3.org/1999/xhtml", t, n);
|
|
1021
1021
|
}
|
|
1022
|
-
function
|
|
1022
|
+
function nn(t) {
|
|
1023
1023
|
if (t.nodeValue.length < 65536) return;
|
|
1024
1024
|
let e = t.nextSibling;
|
|
1025
1025
|
for (; e !== null && e.nodeType === 3; ) e.remove(), t.nodeValue += e.nodeValue, e = t.nextSibling;
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1028
|
-
var e =
|
|
1027
|
+
function Oi(t) {
|
|
1028
|
+
var e = A, o = k;
|
|
1029
1029
|
nt(null), yt(null);
|
|
1030
1030
|
try {
|
|
1031
1031
|
return t();
|
|
@@ -1033,16 +1033,16 @@ function Ei(t) {
|
|
|
1033
1033
|
nt(e), yt(o);
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1037
|
-
|
|
1036
|
+
function cs(t) {
|
|
1037
|
+
k === null && (A === null && Mr(t), Er()), Ht && Cr(t);
|
|
1038
1038
|
}
|
|
1039
|
-
function
|
|
1039
|
+
function us(t, e) {
|
|
1040
1040
|
var o = e.last;
|
|
1041
1041
|
o === null ? e.last = e.first = t : (o.next = t, t.prev = o, e.last = t);
|
|
1042
1042
|
}
|
|
1043
1043
|
function It(t, e) {
|
|
1044
|
-
var o =
|
|
1045
|
-
o !== null && o.f & 8192 && (t |=
|
|
1044
|
+
var o = k;
|
|
1045
|
+
o !== null && o.f & 8192 && (t |= Uo);
|
|
1046
1046
|
var n = {
|
|
1047
1047
|
ctx: W,
|
|
1048
1048
|
deps: null,
|
|
@@ -1066,40 +1066,40 @@ function It(t, e) {
|
|
|
1066
1066
|
} catch (s) {
|
|
1067
1067
|
throw z(n), s;
|
|
1068
1068
|
}
|
|
1069
|
-
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, t & 16 && t & 65536 && i !== null && (i.f |=
|
|
1069
|
+
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && !(i.f & 524288) && (i = i.first, t & 16 && t & 65536 && i !== null && (i.f |= Jo));
|
|
1070
1070
|
}
|
|
1071
|
-
if (i !== null && (i.parent = o, o !== null &&
|
|
1072
|
-
var r =
|
|
1071
|
+
if (i !== null && (i.parent = o, o !== null && us(i, o), A !== null && A.f & 2 && !(t & 64))) {
|
|
1072
|
+
var r = A;
|
|
1073
1073
|
(r.effects ?? (r.effects = [])).push(i);
|
|
1074
1074
|
}
|
|
1075
1075
|
return n;
|
|
1076
1076
|
}
|
|
1077
|
-
function
|
|
1078
|
-
return
|
|
1077
|
+
function rn() {
|
|
1078
|
+
return A !== null && !dt;
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1080
|
+
function ds(t) {
|
|
1081
1081
|
const e = It(8, null);
|
|
1082
1082
|
return N(e, et), e.teardown = t, e;
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1085
|
-
|
|
1086
|
-
var e =
|
|
1087
|
-
if (!
|
|
1084
|
+
function Mn(t) {
|
|
1085
|
+
cs("$effect");
|
|
1086
|
+
var e = k.f;
|
|
1087
|
+
if (!A && e & 32 && !(e & 32768)) {
|
|
1088
1088
|
var o = W;
|
|
1089
1089
|
(o.e ?? (o.e = [])).push(t);
|
|
1090
1090
|
} else return Pi(t);
|
|
1091
1091
|
}
|
|
1092
1092
|
function Pi(t) {
|
|
1093
|
-
return It(4 |
|
|
1093
|
+
return It(4 | Sr, t);
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1095
|
+
function hs(t) {
|
|
1096
1096
|
re.ensure();
|
|
1097
1097
|
const e = It(64 | ye, t);
|
|
1098
1098
|
return () => {
|
|
1099
1099
|
z(e);
|
|
1100
1100
|
};
|
|
1101
1101
|
}
|
|
1102
|
-
function
|
|
1102
|
+
function fs(t) {
|
|
1103
1103
|
re.ensure();
|
|
1104
1104
|
const e = It(64 | ye, t);
|
|
1105
1105
|
return (o = {}) => new Promise((n) => {
|
|
@@ -1108,50 +1108,50 @@ function cs(t) {
|
|
|
1108
1108
|
}) : (z(e), n(void 0));
|
|
1109
1109
|
});
|
|
1110
1110
|
}
|
|
1111
|
-
function
|
|
1111
|
+
function Ri(t) {
|
|
1112
1112
|
return It(4, t);
|
|
1113
1113
|
}
|
|
1114
|
-
function
|
|
1115
|
-
return It(
|
|
1114
|
+
function ps(t) {
|
|
1115
|
+
return It($r | ye, t);
|
|
1116
1116
|
}
|
|
1117
|
-
function
|
|
1117
|
+
function sn(t, e = 0) {
|
|
1118
1118
|
return It(8 | e, t);
|
|
1119
1119
|
}
|
|
1120
1120
|
function Ke(t, e = [], o = [], n = []) {
|
|
1121
|
-
|
|
1121
|
+
os(n, e, o, (i) => {
|
|
1122
1122
|
It(8, () => t(...i.map(g)));
|
|
1123
1123
|
});
|
|
1124
1124
|
}
|
|
1125
|
-
function
|
|
1125
|
+
function ln(t, e = 0) {
|
|
1126
1126
|
return It(16 | e, t);
|
|
1127
1127
|
}
|
|
1128
1128
|
function ot(t) {
|
|
1129
1129
|
return It(32 | ye, t);
|
|
1130
1130
|
}
|
|
1131
|
-
function
|
|
1131
|
+
function Ni(t) {
|
|
1132
1132
|
var e = t.teardown;
|
|
1133
1133
|
if (e !== null) {
|
|
1134
|
-
const o = Ht, n =
|
|
1135
|
-
|
|
1134
|
+
const o = Ht, n = A;
|
|
1135
|
+
Ln(!0), nt(null);
|
|
1136
1136
|
try {
|
|
1137
1137
|
e.call(null);
|
|
1138
1138
|
} finally {
|
|
1139
|
-
|
|
1139
|
+
Ln(o), nt(n);
|
|
1140
1140
|
}
|
|
1141
1141
|
}
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function an(t, e = !1) {
|
|
1144
1144
|
var o = t.first;
|
|
1145
1145
|
for (t.first = t.last = null; o !== null; ) {
|
|
1146
1146
|
const i = o.ac;
|
|
1147
|
-
i !== null &&
|
|
1147
|
+
i !== null && Oi(() => {
|
|
1148
1148
|
i.abort(_t);
|
|
1149
1149
|
});
|
|
1150
1150
|
var n = o.next;
|
|
1151
1151
|
o.f & 64 ? o.parent = null : z(o, e), o = n;
|
|
1152
1152
|
}
|
|
1153
1153
|
}
|
|
1154
|
-
function
|
|
1154
|
+
function vs(t) {
|
|
1155
1155
|
for (var e = t.first; e !== null; ) {
|
|
1156
1156
|
var o = e.next;
|
|
1157
1157
|
e.f & 32 || z(e), e = o;
|
|
@@ -1159,26 +1159,26 @@ function ds(t) {
|
|
|
1159
1159
|
}
|
|
1160
1160
|
function z(t, e = !0) {
|
|
1161
1161
|
var o = !1;
|
|
1162
|
-
(e || t.f & 262144) && t.nodes !== null && t.nodes.end !== null && (
|
|
1162
|
+
(e || t.f & 262144) && t.nodes !== null && t.nodes.end !== null && (gs(t.nodes.start, t.nodes.end), o = !0), N(t, Sn), an(t, e && !o), Pe(t, 0);
|
|
1163
1163
|
var n = t.nodes && t.nodes.t;
|
|
1164
1164
|
if (n !== null) for (const r of n) r.stop();
|
|
1165
|
-
|
|
1165
|
+
Ni(t), t.f ^= Sn, t.f |= Ir;
|
|
1166
1166
|
var i = t.parent;
|
|
1167
|
-
i !== null && i.first !== null &&
|
|
1167
|
+
i !== null && i.first !== null && Vi(t), t.next = t.prev = t.teardown = t.ctx = t.deps = t.fn = t.nodes = t.ac = null;
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1169
|
+
function gs(t, e) {
|
|
1170
1170
|
for (; t !== null; ) {
|
|
1171
1171
|
var o = t === e ? null : /* @__PURE__ */ Tt(t);
|
|
1172
1172
|
t.remove(), t = o;
|
|
1173
1173
|
}
|
|
1174
1174
|
}
|
|
1175
|
-
function
|
|
1175
|
+
function Vi(t) {
|
|
1176
1176
|
var e = t.parent, o = t.prev, n = t.next;
|
|
1177
1177
|
o !== null && (o.next = n), n !== null && (n.prev = o), e !== null && (e.first === t && (e.first = n), e.last === t && (e.last = o));
|
|
1178
1178
|
}
|
|
1179
1179
|
function se(t, e, o = !0) {
|
|
1180
1180
|
var n = [];
|
|
1181
|
-
|
|
1181
|
+
Wi(t, n, !0);
|
|
1182
1182
|
var i = () => {
|
|
1183
1183
|
o && z(t), e && e();
|
|
1184
1184
|
}, r = n.length;
|
|
@@ -1187,63 +1187,63 @@ function se(t, e, o = !0) {
|
|
|
1187
1187
|
for (var l of n) l.out(s);
|
|
1188
1188
|
} else i();
|
|
1189
1189
|
}
|
|
1190
|
-
function
|
|
1190
|
+
function Wi(t, e, o) {
|
|
1191
1191
|
if (!(t.f & 8192)) {
|
|
1192
|
-
t.f ^=
|
|
1192
|
+
t.f ^= Uo;
|
|
1193
1193
|
var n = t.nodes && t.nodes.t;
|
|
1194
1194
|
if (n !== null) for (const l of n) (l.is_global || o) && e.push(l);
|
|
1195
1195
|
for (var i = t.first; i !== null; ) {
|
|
1196
1196
|
var r = i.next, s = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (t.f & 16) !== 0;
|
|
1197
|
-
|
|
1197
|
+
Wi(i, e, s ? o : !1), i = r;
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1202
|
-
|
|
1201
|
+
function cn(t) {
|
|
1202
|
+
ji(t, !0);
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1204
|
+
function ji(t, e) {
|
|
1205
1205
|
if (t.f & 8192) {
|
|
1206
|
-
t.f ^=
|
|
1206
|
+
t.f ^= Uo, t.f & 1024 || (N(t, wt), re.ensure().schedule(t));
|
|
1207
1207
|
for (var o = t.first; o !== null; ) {
|
|
1208
1208
|
var n = o.next, i = (o.f & 65536) !== 0 || (o.f & 32) !== 0;
|
|
1209
|
-
|
|
1209
|
+
ji(o, i ? e : !1), o = n;
|
|
1210
1210
|
}
|
|
1211
1211
|
var r = t.nodes && t.nodes.t;
|
|
1212
1212
|
if (r !== null) for (const s of r) (s.is_global || e) && s.in();
|
|
1213
1213
|
}
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1215
|
+
function un(t, e) {
|
|
1216
1216
|
if (t.nodes) for (var o = t.nodes.start, n = t.nodes.end; o !== null; ) {
|
|
1217
1217
|
var i = o === n ? null : /* @__PURE__ */ Tt(o);
|
|
1218
1218
|
e.append(o), o = i;
|
|
1219
1219
|
}
|
|
1220
1220
|
}
|
|
1221
|
-
var
|
|
1222
|
-
function
|
|
1221
|
+
var ms = null, Qe = !1, Ht = !1;
|
|
1222
|
+
function Ln(t) {
|
|
1223
1223
|
Ht = t;
|
|
1224
1224
|
}
|
|
1225
|
-
var
|
|
1225
|
+
var A = null, dt = !1;
|
|
1226
1226
|
function nt(t) {
|
|
1227
|
-
|
|
1227
|
+
A = t;
|
|
1228
1228
|
}
|
|
1229
|
-
var
|
|
1229
|
+
var k = null;
|
|
1230
1230
|
function yt(t) {
|
|
1231
|
-
|
|
1231
|
+
k = t;
|
|
1232
1232
|
}
|
|
1233
1233
|
var tt = null;
|
|
1234
|
-
function
|
|
1235
|
-
|
|
1234
|
+
function zi(t) {
|
|
1235
|
+
A !== null && (!zt || A.f & 2) && (tt === null ? tt = [t] : tt.push(t));
|
|
1236
1236
|
}
|
|
1237
|
-
var B = null,
|
|
1238
|
-
function
|
|
1237
|
+
var B = null, Z = 0, Q = null;
|
|
1238
|
+
function bs(t) {
|
|
1239
1239
|
Q = t;
|
|
1240
1240
|
}
|
|
1241
|
-
var
|
|
1242
|
-
function
|
|
1241
|
+
var Hi = 1, Jt = 0, te = Jt;
|
|
1242
|
+
function On(t) {
|
|
1243
1243
|
te = t;
|
|
1244
1244
|
}
|
|
1245
|
-
function
|
|
1246
|
-
return ++
|
|
1245
|
+
function Di() {
|
|
1246
|
+
return ++Hi;
|
|
1247
1247
|
}
|
|
1248
1248
|
function Ve(t) {
|
|
1249
1249
|
var e = t.f;
|
|
@@ -1251,55 +1251,55 @@ function Ve(t) {
|
|
|
1251
1251
|
if (e & 2 && (t.f &= ~Re), e & 4096) {
|
|
1252
1252
|
for (var o = t.deps, n = o.length, i = 0; i < n; i++) {
|
|
1253
1253
|
var r = o[i];
|
|
1254
|
-
if (Ve(r) &&
|
|
1254
|
+
if (Ve(r) && Si(r), r.wv > t.wv) return !0;
|
|
1255
1255
|
}
|
|
1256
1256
|
e & 512 && F === null && N(t, et);
|
|
1257
1257
|
}
|
|
1258
1258
|
return !1;
|
|
1259
1259
|
}
|
|
1260
|
-
function
|
|
1260
|
+
function qi(t, e, o = !0) {
|
|
1261
1261
|
var n = t.reactions;
|
|
1262
1262
|
if (n !== null && !(!zt && tt !== null && pe.call(tt, t))) for (var i = 0; i < n.length; i++) {
|
|
1263
1263
|
var r = n[i];
|
|
1264
|
-
r.f & 2 ?
|
|
1264
|
+
r.f & 2 ? qi(r, e, !1) : e === r && (o ? N(r, wt) : r.f & 1024 && N(r, ie), Yo(r));
|
|
1265
1265
|
}
|
|
1266
1266
|
}
|
|
1267
|
-
function
|
|
1268
|
-
var e = B, o =
|
|
1269
|
-
B = null,
|
|
1267
|
+
function Bi(t) {
|
|
1268
|
+
var e = B, o = Z, n = Q, i = A, r = tt, s = W, l = dt, a = te, c = t.f;
|
|
1269
|
+
B = null, Z = 0, Q = null, A = c & 96 ? null : t, tt = null, ve(t.ctx), dt = !1, te = ++Jt, t.ac !== null && (Oi(() => {
|
|
1270
1270
|
t.ac.abort(_t);
|
|
1271
1271
|
}), t.ac = null);
|
|
1272
1272
|
try {
|
|
1273
|
-
t.f |=
|
|
1274
|
-
var d = t.fn,
|
|
1275
|
-
t.f |=
|
|
1276
|
-
var h = t.deps, v =
|
|
1273
|
+
t.f |= $n;
|
|
1274
|
+
var d = t.fn, f = d();
|
|
1275
|
+
t.f |= Ko;
|
|
1276
|
+
var h = t.deps, v = M?.is_fork;
|
|
1277
1277
|
if (B !== null) {
|
|
1278
|
-
var
|
|
1279
|
-
if (v ||
|
|
1278
|
+
var m;
|
|
1279
|
+
if (v || Pe(t, Z), h !== null && Z > 0) for (h.length = Z + B.length, m = 0; m < B.length; m++) h[Z + m] = B[m];
|
|
1280
1280
|
else t.deps = h = B;
|
|
1281
|
-
if (
|
|
1282
|
-
var
|
|
1283
|
-
((
|
|
1281
|
+
if (rn() && t.f & 512) for (m = Z; m < h.length; m++) {
|
|
1282
|
+
var S;
|
|
1283
|
+
((S = h[m]).reactions ?? (S.reactions = [])).push(t);
|
|
1284
1284
|
}
|
|
1285
|
-
} else !v && h !== null &&
|
|
1286
|
-
if (Ne() && Q !== null && !dt && h !== null && !(t.f & 6146)) for (
|
|
1285
|
+
} else !v && h !== null && Z < h.length && (Pe(t, Z), h.length = Z);
|
|
1286
|
+
if (Ne() && Q !== null && !dt && h !== null && !(t.f & 6146)) for (m = 0; m < Q.length; m++) qi(Q[m], t);
|
|
1287
1287
|
if (i !== null && i !== t) {
|
|
1288
|
-
if (Jt++, i.deps !== null) for (let
|
|
1289
|
-
if (e !== null) for (const
|
|
1288
|
+
if (Jt++, i.deps !== null) for (let p = 0; p < o; p += 1) i.deps[p].rv = Jt;
|
|
1289
|
+
if (e !== null) for (const p of e) p.rv = Jt;
|
|
1290
1290
|
Q !== null && (n === null ? n = Q : n.push(...Q));
|
|
1291
1291
|
}
|
|
1292
|
-
return t.f & 8388608 && (t.f ^= lo),
|
|
1293
|
-
} catch (
|
|
1294
|
-
return
|
|
1292
|
+
return t.f & 8388608 && (t.f ^= lo), f;
|
|
1293
|
+
} catch (p) {
|
|
1294
|
+
return ai(p);
|
|
1295
1295
|
} finally {
|
|
1296
|
-
t.f ^=
|
|
1296
|
+
t.f ^= $n, B = e, Z = o, Q = n, A = i, tt = r, ve(s), dt = l, te = a;
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
|
-
function
|
|
1299
|
+
function ys(t, e) {
|
|
1300
1300
|
let o = e.reactions;
|
|
1301
1301
|
if (o !== null) {
|
|
1302
|
-
var n =
|
|
1302
|
+
var n = gr.call(o, t);
|
|
1303
1303
|
if (n !== -1) {
|
|
1304
1304
|
var i = o.length - 1;
|
|
1305
1305
|
i === 0 ? o = e.reactions = null : (o[n] = o[i], o.pop());
|
|
@@ -1307,38 +1307,38 @@ function vs(t, e) {
|
|
|
1307
1307
|
}
|
|
1308
1308
|
if (o === null && e.f & 2 && (B === null || !pe.call(B, e))) {
|
|
1309
1309
|
var r = e;
|
|
1310
|
-
r.f & 512 && (r.f ^= 512, r.f &= ~Re),
|
|
1310
|
+
r.f & 512 && (r.f ^= 512, r.f &= ~Re), Zo(r), ls(r), Pe(r, 0);
|
|
1311
1311
|
}
|
|
1312
1312
|
}
|
|
1313
|
-
function
|
|
1313
|
+
function Pe(t, e) {
|
|
1314
1314
|
var o = t.deps;
|
|
1315
|
-
if (o !== null) for (var n = e; n < o.length; n++)
|
|
1315
|
+
if (o !== null) for (var n = e; n < o.length; n++) ys(t, o[n]);
|
|
1316
1316
|
}
|
|
1317
1317
|
function be(t) {
|
|
1318
1318
|
var e = t.f;
|
|
1319
1319
|
if (!(e & 16384)) {
|
|
1320
1320
|
N(t, et);
|
|
1321
|
-
var o =
|
|
1322
|
-
|
|
1321
|
+
var o = k, n = Qe;
|
|
1322
|
+
k = t, Qe = !0;
|
|
1323
1323
|
try {
|
|
1324
|
-
e & 16777232 ?
|
|
1325
|
-
var i =
|
|
1326
|
-
t.teardown = typeof i == "function" ? i : null, t.wv =
|
|
1324
|
+
e & 16777232 ? vs(t) : an(t), Ni(t);
|
|
1325
|
+
var i = Bi(t);
|
|
1326
|
+
t.teardown = typeof i == "function" ? i : null, t.wv = Hi;
|
|
1327
1327
|
} finally {
|
|
1328
|
-
Qe = n,
|
|
1328
|
+
Qe = n, k = o;
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
1331
|
}
|
|
1332
1332
|
function g(t) {
|
|
1333
1333
|
var e = (t.f & 2) !== 0;
|
|
1334
|
-
if (
|
|
1335
|
-
var o =
|
|
1336
|
-
if (
|
|
1334
|
+
if (ms?.add(t), A !== null && !dt && !(k !== null && k.f & 16384) && (tt === null || !pe.call(tt, t))) {
|
|
1335
|
+
var o = A.deps;
|
|
1336
|
+
if (A.f & 2097152) t.rv < Jt && (t.rv = Jt, B === null && o !== null && o[Z] === t ? Z++ : B === null ? B = [t] : B.push(t));
|
|
1337
1337
|
else {
|
|
1338
1338
|
var n;
|
|
1339
|
-
((n =
|
|
1339
|
+
((n = A).deps ?? (n.deps = [])).push(t);
|
|
1340
1340
|
var i = t.reactions;
|
|
1341
|
-
i === null ? t.reactions = [
|
|
1341
|
+
i === null ? t.reactions = [A] : pe.call(i, A) || i.push(A);
|
|
1342
1342
|
}
|
|
1343
1343
|
}
|
|
1344
1344
|
if (Ht && jt.has(t)) return jt.get(t);
|
|
@@ -1346,25 +1346,25 @@ function g(t) {
|
|
|
1346
1346
|
var r = t;
|
|
1347
1347
|
if (Ht) {
|
|
1348
1348
|
var s = r.v;
|
|
1349
|
-
return (!(r.f & 1024) && r.reactions !== null ||
|
|
1349
|
+
return (!(r.f & 1024) && r.reactions !== null || Gi(r)) && (s = en(r)), jt.set(r, s), s;
|
|
1350
1350
|
}
|
|
1351
|
-
var l = (r.f & 512) === 0 && !dt &&
|
|
1352
|
-
Ve(r) && (l && (r.f |= 512),
|
|
1351
|
+
var l = (r.f & 512) === 0 && !dt && A !== null && (Qe || (A.f & 512) !== 0), a = (r.f & Ko) === 0;
|
|
1352
|
+
Ve(r) && (l && (r.f |= 512), Si(r)), l && !a && ($i(r), Fi(r));
|
|
1353
1353
|
}
|
|
1354
1354
|
if (F?.has(t)) return F.get(t);
|
|
1355
1355
|
if (t.f & 8388608) throw t.v;
|
|
1356
1356
|
return t.v;
|
|
1357
1357
|
}
|
|
1358
|
-
function
|
|
1359
|
-
if (t.f |= 512, t.deps !== null) for (const e of t.deps) (e.reactions ?? (e.reactions = [])).push(t), e.f & 2 && !(e.f & 512) && (
|
|
1358
|
+
function Fi(t) {
|
|
1359
|
+
if (t.f |= 512, t.deps !== null) for (const e of t.deps) (e.reactions ?? (e.reactions = [])).push(t), e.f & 2 && !(e.f & 512) && ($i(e), Fi(e));
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1361
|
+
function Gi(t) {
|
|
1362
1362
|
if (t.v === j) return !0;
|
|
1363
1363
|
if (t.deps === null) return !1;
|
|
1364
|
-
for (const e of t.deps) if (jt.has(e) || e.f & 2 &&
|
|
1364
|
+
for (const e of t.deps) if (jt.has(e) || e.f & 2 && Gi(e)) return !0;
|
|
1365
1365
|
return !1;
|
|
1366
1366
|
}
|
|
1367
|
-
function
|
|
1367
|
+
function dn(t) {
|
|
1368
1368
|
var e = dt;
|
|
1369
1369
|
try {
|
|
1370
1370
|
return dt = !0, t();
|
|
@@ -1372,28 +1372,28 @@ function cn(t) {
|
|
|
1372
1372
|
dt = e;
|
|
1373
1373
|
}
|
|
1374
1374
|
}
|
|
1375
|
-
var he = Symbol("events"),
|
|
1375
|
+
var he = Symbol("events"), Ui = /* @__PURE__ */ new Set(), qo = /* @__PURE__ */ new Set();
|
|
1376
1376
|
function Ie(t, e, o) {
|
|
1377
1377
|
(e[he] ?? (e[he] = {}))[t] = o;
|
|
1378
1378
|
}
|
|
1379
|
-
function
|
|
1380
|
-
for (var e = 0; e < t.length; e++)
|
|
1381
|
-
for (var o of
|
|
1379
|
+
function ws(t) {
|
|
1380
|
+
for (var e = 0; e < t.length; e++) Ui.add(t[e]);
|
|
1381
|
+
for (var o of qo) o(t);
|
|
1382
1382
|
}
|
|
1383
|
-
var
|
|
1384
|
-
function
|
|
1383
|
+
var Pn = null;
|
|
1384
|
+
function Rn(t) {
|
|
1385
1385
|
var e = this, o = e.ownerDocument, n = t.type, i = t.composedPath?.() || [], r = i[0] || t.target;
|
|
1386
|
-
|
|
1387
|
-
var s = 0, l =
|
|
1386
|
+
Pn = t;
|
|
1387
|
+
var s = 0, l = Pn === t && t[he];
|
|
1388
1388
|
if (l) {
|
|
1389
1389
|
var a = i.indexOf(l);
|
|
1390
1390
|
if (a !== -1 && (e === document || e === window)) {
|
|
1391
1391
|
t[he] = e;
|
|
1392
1392
|
return;
|
|
1393
1393
|
}
|
|
1394
|
-
var
|
|
1395
|
-
if (
|
|
1396
|
-
a <=
|
|
1394
|
+
var c = i.indexOf(e);
|
|
1395
|
+
if (c === -1) return;
|
|
1396
|
+
a <= c && (s = a);
|
|
1397
1397
|
}
|
|
1398
1398
|
if (r = i[s] || t.target, r !== e) {
|
|
1399
1399
|
so(t, "currentTarget", {
|
|
@@ -1402,41 +1402,41 @@ function Mn(t) {
|
|
|
1402
1402
|
return r || o;
|
|
1403
1403
|
}
|
|
1404
1404
|
});
|
|
1405
|
-
var d =
|
|
1405
|
+
var d = A, f = k;
|
|
1406
1406
|
nt(null), yt(null);
|
|
1407
1407
|
try {
|
|
1408
1408
|
for (var h, v = []; r !== null; ) {
|
|
1409
|
-
var
|
|
1409
|
+
var m = r.assignedSlot || r.parentNode || r.host || null;
|
|
1410
1410
|
try {
|
|
1411
|
-
var
|
|
1412
|
-
|
|
1413
|
-
} catch (
|
|
1414
|
-
h ? v.push(
|
|
1411
|
+
var S = r[he]?.[n];
|
|
1412
|
+
S != null && (!r.disabled || t.target === r) && S.call(r, t);
|
|
1413
|
+
} catch (p) {
|
|
1414
|
+
h ? v.push(p) : h = p;
|
|
1415
1415
|
}
|
|
1416
|
-
if (t.cancelBubble ||
|
|
1417
|
-
r =
|
|
1416
|
+
if (t.cancelBubble || m === e || m === null) break;
|
|
1417
|
+
r = m;
|
|
1418
1418
|
}
|
|
1419
1419
|
if (h) {
|
|
1420
|
-
for (let
|
|
1421
|
-
throw
|
|
1420
|
+
for (let p of v) queueMicrotask(() => {
|
|
1421
|
+
throw p;
|
|
1422
1422
|
});
|
|
1423
1423
|
throw h;
|
|
1424
1424
|
}
|
|
1425
1425
|
} finally {
|
|
1426
|
-
t[he] = e, delete t.currentTarget, nt(d), yt(
|
|
1426
|
+
t[he] = e, delete t.currentTarget, nt(d), yt(f);
|
|
1427
1427
|
}
|
|
1428
1428
|
}
|
|
1429
1429
|
}
|
|
1430
|
-
var
|
|
1431
|
-
function
|
|
1432
|
-
return
|
|
1430
|
+
var Ts = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (t) => t });
|
|
1431
|
+
function Is(t) {
|
|
1432
|
+
return Ts?.createHTML(t) ?? t;
|
|
1433
1433
|
}
|
|
1434
|
-
function
|
|
1435
|
-
var e =
|
|
1436
|
-
return e.innerHTML =
|
|
1434
|
+
function Ss(t) {
|
|
1435
|
+
var e = on("template");
|
|
1436
|
+
return e.innerHTML = Is(t.replaceAll("<!>", "<!---->")), e.content;
|
|
1437
1437
|
}
|
|
1438
1438
|
function to(t, e) {
|
|
1439
|
-
var o =
|
|
1439
|
+
var o = k;
|
|
1440
1440
|
o.nodes === null && (o.nodes = {
|
|
1441
1441
|
start: t,
|
|
1442
1442
|
end: e,
|
|
@@ -1449,8 +1449,8 @@ function le(t, e) {
|
|
|
1449
1449
|
var o = (e & 1) !== 0, n = (e & 2) !== 0, i, r = !t.startsWith("<!>");
|
|
1450
1450
|
return () => {
|
|
1451
1451
|
if (L) return to(E, null), E;
|
|
1452
|
-
i === void 0 && (i =
|
|
1453
|
-
var s = n ||
|
|
1452
|
+
i === void 0 && (i = Ss(r ? t : "<!>" + t), o || (i = /* @__PURE__ */ ne(i)));
|
|
1453
|
+
var s = n || _i ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1454
1454
|
if (o) {
|
|
1455
1455
|
var l = /* @__PURE__ */ ne(s), a = s.lastChild;
|
|
1456
1456
|
to(l, a);
|
|
@@ -1458,33 +1458,33 @@ function le(t, e) {
|
|
|
1458
1458
|
return s;
|
|
1459
1459
|
};
|
|
1460
1460
|
}
|
|
1461
|
-
function
|
|
1461
|
+
function Pt(t, e) {
|
|
1462
1462
|
if (L) {
|
|
1463
|
-
var o =
|
|
1464
|
-
(!(o.f & 32768) || o.nodes.end === null) && (o.nodes.end = E),
|
|
1463
|
+
var o = k;
|
|
1464
|
+
(!(o.f & 32768) || o.nodes.end === null) && (o.nodes.end = E), mo();
|
|
1465
1465
|
return;
|
|
1466
1466
|
}
|
|
1467
1467
|
t !== null && t.before(e);
|
|
1468
1468
|
}
|
|
1469
|
-
var
|
|
1470
|
-
function
|
|
1471
|
-
return
|
|
1469
|
+
var $s = ["touchstart", "touchmove"];
|
|
1470
|
+
function ks(t) {
|
|
1471
|
+
return $s.includes(t);
|
|
1472
1472
|
}
|
|
1473
|
-
function
|
|
1473
|
+
function Nn(t, e) {
|
|
1474
1474
|
var o = e == null ? "" : typeof e == "object" ? `${e}` : e;
|
|
1475
1475
|
o !== (t.__t ?? (t.__t = t.nodeValue)) && (t.__t = o, t.nodeValue = `${o}`);
|
|
1476
1476
|
}
|
|
1477
|
-
function
|
|
1478
|
-
return
|
|
1477
|
+
function Ki(t, e) {
|
|
1478
|
+
return Ji(t, e);
|
|
1479
1479
|
}
|
|
1480
|
-
function
|
|
1481
|
-
|
|
1480
|
+
function As(t, e) {
|
|
1481
|
+
Do(), e.intro = e.intro ?? !1;
|
|
1482
1482
|
const o = e.target, n = L, i = E;
|
|
1483
1483
|
try {
|
|
1484
1484
|
for (var r = /* @__PURE__ */ ne(o); r && (r.nodeType !== 8 || r.data !== "["); ) r = /* @__PURE__ */ Tt(r);
|
|
1485
1485
|
if (!r) throw fe;
|
|
1486
1486
|
Ct(!0), G(r);
|
|
1487
|
-
const s =
|
|
1487
|
+
const s = Ji(t, {
|
|
1488
1488
|
...e,
|
|
1489
1489
|
anchor: r
|
|
1490
1490
|
});
|
|
@@ -1492,113 +1492,113 @@ function Is(t, e) {
|
|
|
1492
1492
|
} catch (s) {
|
|
1493
1493
|
if (s instanceof Error && s.message.split(`
|
|
1494
1494
|
`).some((l) => l.startsWith("https://svelte.dev/e/"))) throw s;
|
|
1495
|
-
return s !== fe && console.warn("Failed to hydrate: ", s), e.recover === !1 &&
|
|
1495
|
+
return s !== fe && console.warn("Failed to hydrate: ", s), e.recover === !1 && Or(), Do(), Mi(o), Ct(!1), Ki(t, e);
|
|
1496
1496
|
} finally {
|
|
1497
1497
|
Ct(n), G(i);
|
|
1498
1498
|
}
|
|
1499
1499
|
}
|
|
1500
1500
|
var Je = /* @__PURE__ */ new Map();
|
|
1501
|
-
function
|
|
1502
|
-
|
|
1503
|
-
var a = void 0,
|
|
1501
|
+
function Ji(t, { target: e, anchor: o, props: n = {}, events: i, context: r, intro: s = !0, transformError: l }) {
|
|
1502
|
+
Do();
|
|
1503
|
+
var a = void 0, c = fs(() => {
|
|
1504
1504
|
var d = o ?? e.appendChild(ht());
|
|
1505
|
-
|
|
1505
|
+
Xr(d, { pending: () => {
|
|
1506
1506
|
} }, (v) => {
|
|
1507
|
-
|
|
1508
|
-
var
|
|
1509
|
-
if (r && (
|
|
1510
|
-
|
|
1507
|
+
ri({});
|
|
1508
|
+
var m = W;
|
|
1509
|
+
if (r && (m.c = r), i && (n.$$events = i), L && to(v, null), a = t(v, n) || {}, L && (k.nodes.end = E, E === null || E.nodeType !== 8 || E.data !== "]")) throw go(), fe;
|
|
1510
|
+
si();
|
|
1511
1511
|
}, l);
|
|
1512
|
-
var
|
|
1513
|
-
for (var
|
|
1514
|
-
var
|
|
1515
|
-
if (!
|
|
1516
|
-
|
|
1517
|
-
var
|
|
1518
|
-
for (const
|
|
1519
|
-
var w = Je.get(
|
|
1520
|
-
w === void 0 && (w = /* @__PURE__ */ new Map(), Je.set(
|
|
1521
|
-
var R = w.get(
|
|
1522
|
-
R === void 0 ? (
|
|
1512
|
+
var f = /* @__PURE__ */ new Set(), h = (v) => {
|
|
1513
|
+
for (var m = 0; m < v.length; m++) {
|
|
1514
|
+
var S = v[m];
|
|
1515
|
+
if (!f.has(S)) {
|
|
1516
|
+
f.add(S);
|
|
1517
|
+
var p = ks(S);
|
|
1518
|
+
for (const x of [e, document]) {
|
|
1519
|
+
var w = Je.get(x);
|
|
1520
|
+
w === void 0 && (w = /* @__PURE__ */ new Map(), Je.set(x, w));
|
|
1521
|
+
var R = w.get(S);
|
|
1522
|
+
R === void 0 ? (x.addEventListener(S, Rn, { passive: p }), w.set(S, 1)) : w.set(S, R + 1);
|
|
1523
1523
|
}
|
|
1524
1524
|
}
|
|
1525
1525
|
}
|
|
1526
1526
|
};
|
|
1527
|
-
return h(
|
|
1528
|
-
for (var v of
|
|
1529
|
-
var
|
|
1530
|
-
|
|
1527
|
+
return h(vo(Ui)), qo.add(h), () => {
|
|
1528
|
+
for (var v of f) for (const p of [e, document]) {
|
|
1529
|
+
var m = Je.get(p), S = m.get(v);
|
|
1530
|
+
--S == 0 ? (p.removeEventListener(v, Rn), m.delete(v), m.size === 0 && Je.delete(p)) : m.set(v, S);
|
|
1531
1531
|
}
|
|
1532
|
-
|
|
1532
|
+
qo.delete(h), d !== o && d.parentNode?.removeChild(d);
|
|
1533
1533
|
};
|
|
1534
1534
|
});
|
|
1535
|
-
return
|
|
1535
|
+
return Bo.set(a, c), a;
|
|
1536
1536
|
}
|
|
1537
|
-
var
|
|
1538
|
-
function
|
|
1539
|
-
const o =
|
|
1540
|
-
return o ? (
|
|
1537
|
+
var Bo = /* @__PURE__ */ new WeakMap();
|
|
1538
|
+
function xs(t, e) {
|
|
1539
|
+
const o = Bo.get(t);
|
|
1540
|
+
return o ? (Bo.delete(t), o(e)) : Promise.resolve();
|
|
1541
1541
|
}
|
|
1542
|
-
var
|
|
1542
|
+
var $t = /* @__PURE__ */ new WeakMap(), Lt = /* @__PURE__ */ new WeakMap(), lt = /* @__PURE__ */ new WeakMap(), Se = /* @__PURE__ */ new WeakMap(), xo = /* @__PURE__ */ new WeakMap(), _o = /* @__PURE__ */ new WeakMap(), Vn = /* @__PURE__ */ new WeakMap(), _s = class {
|
|
1543
1543
|
constructor(t, e = !0) {
|
|
1544
|
-
|
|
1545
|
-
if (
|
|
1546
|
-
var n =
|
|
1547
|
-
if (i)
|
|
1544
|
+
y(this, "anchor", void 0), $(this, $t, /* @__PURE__ */ new Map()), $(this, Lt, /* @__PURE__ */ new Map()), $(this, lt, /* @__PURE__ */ new Map()), $(this, Se, /* @__PURE__ */ new Set()), $(this, xo, !0), $(this, _o, (o) => {
|
|
1545
|
+
if (u($t, this).has(o)) {
|
|
1546
|
+
var n = u($t, this).get(o), i = u(Lt, this).get(n);
|
|
1547
|
+
if (i) cn(i), u(Se, this).delete(n);
|
|
1548
1548
|
else {
|
|
1549
|
-
var r =
|
|
1550
|
-
r && (
|
|
1549
|
+
var r = u(lt, this).get(n);
|
|
1550
|
+
r && (u(Lt, this).set(n, r.effect), u(lt, this).delete(n), r.fragment.lastChild.remove(), this.anchor.before(r.fragment), i = r.effect);
|
|
1551
1551
|
}
|
|
1552
|
-
for (const [s, l] of
|
|
1553
|
-
if (
|
|
1554
|
-
const a =
|
|
1555
|
-
a && (z(a.effect),
|
|
1552
|
+
for (const [s, l] of u($t, this)) {
|
|
1553
|
+
if (u($t, this).delete(s), s === o) break;
|
|
1554
|
+
const a = u(lt, this).get(l);
|
|
1555
|
+
a && (z(a.effect), u(lt, this).delete(l));
|
|
1556
1556
|
}
|
|
1557
|
-
for (const [s, l] of
|
|
1558
|
-
if (s === n ||
|
|
1557
|
+
for (const [s, l] of u(Lt, this)) {
|
|
1558
|
+
if (s === n || u(Se, this).has(s)) continue;
|
|
1559
1559
|
const a = () => {
|
|
1560
|
-
if (Array.from(
|
|
1561
|
-
var
|
|
1562
|
-
|
|
1560
|
+
if (Array.from(u($t, this).values()).includes(s)) {
|
|
1561
|
+
var c = document.createDocumentFragment();
|
|
1562
|
+
un(l, c), c.append(ht()), u(lt, this).set(s, {
|
|
1563
1563
|
effect: l,
|
|
1564
|
-
fragment:
|
|
1564
|
+
fragment: c
|
|
1565
1565
|
});
|
|
1566
1566
|
} else z(l);
|
|
1567
|
-
|
|
1567
|
+
u(Se, this).delete(s), u(Lt, this).delete(s);
|
|
1568
1568
|
};
|
|
1569
|
-
|
|
1569
|
+
u(xo, this) || !i ? (u(Se, this).add(s), se(l, a, !1)) : a();
|
|
1570
1570
|
}
|
|
1571
1571
|
}
|
|
1572
|
-
}),
|
|
1573
|
-
|
|
1574
|
-
const n = Array.from(
|
|
1575
|
-
for (const [i, r] of
|
|
1572
|
+
}), $(this, Vn, (o) => {
|
|
1573
|
+
u($t, this).delete(o);
|
|
1574
|
+
const n = Array.from(u($t, this).values());
|
|
1575
|
+
for (const [i, r] of u(lt, this)) n.includes(i) || (z(r.effect), u(lt, this).delete(i));
|
|
1576
1576
|
}), this.anchor = t, T(xo, this, e);
|
|
1577
1577
|
}
|
|
1578
1578
|
ensure(t, e) {
|
|
1579
|
-
var o =
|
|
1580
|
-
if (e && !
|
|
1579
|
+
var o = M, n = Li();
|
|
1580
|
+
if (e && !u(Lt, this).has(t) && !u(lt, this).has(t)) if (n) {
|
|
1581
1581
|
var i = document.createDocumentFragment(), r = ht();
|
|
1582
|
-
i.append(r),
|
|
1582
|
+
i.append(r), u(lt, this).set(t, {
|
|
1583
1583
|
effect: ot(() => e(r)),
|
|
1584
1584
|
fragment: i
|
|
1585
1585
|
});
|
|
1586
|
-
} else
|
|
1587
|
-
if (
|
|
1588
|
-
for (const [s, l] of
|
|
1589
|
-
for (const [s, l] of
|
|
1590
|
-
o.oncommit(
|
|
1591
|
-
} else L && (this.anchor = E),
|
|
1586
|
+
} else u(Lt, this).set(t, ot(() => e(this.anchor)));
|
|
1587
|
+
if (u($t, this).set(o, t), n) {
|
|
1588
|
+
for (const [s, l] of u(Lt, this)) s === t ? o.unskip_effect(l) : o.skip_effect(l);
|
|
1589
|
+
for (const [s, l] of u(lt, this)) s === t ? o.unskip_effect(l.effect) : o.skip_effect(l.effect);
|
|
1590
|
+
o.oncommit(u(_o, this)), o.ondiscard(u(Vn, this));
|
|
1591
|
+
} else L && (this.anchor = E), u(_o, this).call(this, o);
|
|
1592
1592
|
}
|
|
1593
1593
|
};
|
|
1594
|
-
function
|
|
1594
|
+
function $e(t, e, o = !1) {
|
|
1595
1595
|
var n;
|
|
1596
|
-
L && (n = E,
|
|
1597
|
-
var i = new
|
|
1596
|
+
L && (n = E, mo());
|
|
1597
|
+
var i = new _s(t), r = o ? Jo : 0;
|
|
1598
1598
|
function s(l, a) {
|
|
1599
1599
|
if (L) {
|
|
1600
|
-
var
|
|
1601
|
-
if (l !== parseInt(
|
|
1600
|
+
var c = oi(n);
|
|
1601
|
+
if (l !== parseInt(c.substring(1))) {
|
|
1602
1602
|
var d = ao();
|
|
1603
1603
|
G(d), i.anchor = d, Ct(!1), i.ensure(l, a), Ct(!0);
|
|
1604
1604
|
return;
|
|
@@ -1606,24 +1606,24 @@ function ke(t, e, o = !1) {
|
|
|
1606
1606
|
}
|
|
1607
1607
|
i.ensure(l, a);
|
|
1608
1608
|
}
|
|
1609
|
-
|
|
1609
|
+
ln(() => {
|
|
1610
1610
|
var l = !1;
|
|
1611
|
-
e((a,
|
|
1612
|
-
l = !0, s(
|
|
1611
|
+
e((a, c = 0) => {
|
|
1612
|
+
l = !0, s(c, a);
|
|
1613
1613
|
}), l || s(-1, null);
|
|
1614
1614
|
}, r);
|
|
1615
1615
|
}
|
|
1616
|
-
function
|
|
1616
|
+
function Cs(t, e) {
|
|
1617
1617
|
return e;
|
|
1618
1618
|
}
|
|
1619
|
-
function
|
|
1619
|
+
function Es(t, e, o) {
|
|
1620
1620
|
for (var n = [], i = e.length, r, s = e.length, l = 0; l < i; l++) {
|
|
1621
|
-
let
|
|
1622
|
-
se(
|
|
1621
|
+
let f = e[l];
|
|
1622
|
+
se(f, () => {
|
|
1623
1623
|
if (r) {
|
|
1624
|
-
if (r.pending.delete(
|
|
1624
|
+
if (r.pending.delete(f), r.done.add(f), r.pending.size === 0) {
|
|
1625
1625
|
var h = t.outrogroups;
|
|
1626
|
-
|
|
1626
|
+
Fo(t, vo(r.done)), h.delete(r), h.size === 0 && (t.outrogroups = null);
|
|
1627
1627
|
}
|
|
1628
1628
|
} else s -= 1;
|
|
1629
1629
|
}, !1);
|
|
@@ -1631,16 +1631,16 @@ function xs(t, e, o) {
|
|
|
1631
1631
|
if (s === 0) {
|
|
1632
1632
|
var a = n.length === 0 && o !== null;
|
|
1633
1633
|
if (a) {
|
|
1634
|
-
var
|
|
1635
|
-
|
|
1634
|
+
var c = o, d = c.parentNode;
|
|
1635
|
+
Mi(d), d.append(c), t.items.clear();
|
|
1636
1636
|
}
|
|
1637
|
-
|
|
1637
|
+
Fo(t, e, !a);
|
|
1638
1638
|
} else r = {
|
|
1639
1639
|
pending: new Set(e),
|
|
1640
1640
|
done: /* @__PURE__ */ new Set()
|
|
1641
1641
|
}, (t.outrogroups ?? (t.outrogroups = /* @__PURE__ */ new Set())).add(r);
|
|
1642
1642
|
}
|
|
1643
|
-
function
|
|
1643
|
+
function Fo(t, e, o = !0) {
|
|
1644
1644
|
var n;
|
|
1645
1645
|
if (t.pending.size > 0) {
|
|
1646
1646
|
n = /* @__PURE__ */ new Set();
|
|
@@ -1648,94 +1648,94 @@ function qo(t, e, o = !0) {
|
|
|
1648
1648
|
}
|
|
1649
1649
|
for (var i = 0; i < e.length; i++) {
|
|
1650
1650
|
var r = e[i];
|
|
1651
|
-
n?.has(r) ? (r.f |= _e,
|
|
1651
|
+
n?.has(r) ? (r.f |= _e, un(r, document.createDocumentFragment())) : z(e[i], o);
|
|
1652
1652
|
}
|
|
1653
1653
|
}
|
|
1654
|
-
var
|
|
1655
|
-
function
|
|
1654
|
+
var Ze;
|
|
1655
|
+
function Ms(t, e, o, n, i, r = null) {
|
|
1656
1656
|
var s = t, l = /* @__PURE__ */ new Map();
|
|
1657
1657
|
if (e & 4) {
|
|
1658
1658
|
var a = t;
|
|
1659
1659
|
s = L ? G(/* @__PURE__ */ ne(a)) : a.appendChild(ht());
|
|
1660
1660
|
}
|
|
1661
|
-
L &&
|
|
1662
|
-
var
|
|
1661
|
+
L && mo();
|
|
1662
|
+
var c = null, d = /* @__PURE__ */ tn(() => {
|
|
1663
1663
|
var w = o();
|
|
1664
|
-
return
|
|
1665
|
-
}),
|
|
1666
|
-
function
|
|
1667
|
-
|
|
1668
|
-
|
|
1664
|
+
return Yn(w) ? w : w == null ? [] : vo(w);
|
|
1665
|
+
}), f, h = /* @__PURE__ */ new Map(), v = !0;
|
|
1666
|
+
function m(w) {
|
|
1667
|
+
p.effect.f & 16384 || (p.pending.delete(w), p.fallback = c, Ls(p, f, s, e, n), c !== null && (f.length === 0 ? c.f & 33554432 ? (c.f ^= _e, xe(c, null, s)) : cn(c) : se(c, () => {
|
|
1668
|
+
c = null;
|
|
1669
1669
|
})));
|
|
1670
1670
|
}
|
|
1671
|
-
function
|
|
1672
|
-
|
|
1671
|
+
function S(w) {
|
|
1672
|
+
p.pending.delete(w);
|
|
1673
1673
|
}
|
|
1674
|
-
var
|
|
1675
|
-
effect:
|
|
1676
|
-
|
|
1677
|
-
var w =
|
|
1674
|
+
var p = {
|
|
1675
|
+
effect: ln(() => {
|
|
1676
|
+
f = g(d);
|
|
1677
|
+
var w = f.length;
|
|
1678
1678
|
let R = !1;
|
|
1679
|
-
L &&
|
|
1680
|
-
for (var
|
|
1679
|
+
L && oi(s) === "[!" != (w === 0) && (s = ao(), G(s), Ct(!1), R = !0);
|
|
1680
|
+
for (var x = /* @__PURE__ */ new Set(), P = M, U = Li(), H = 0; H < w; H += 1) {
|
|
1681
1681
|
L && E.nodeType === 8 && E.data === "]" && (s = E, R = !0, Ct(!1));
|
|
1682
|
-
var D =
|
|
1683
|
-
K ? (K.v && me(K.v, D), K.i && me(K.i, H), U &&
|
|
1682
|
+
var D = f[H], ft = n(D, H), K = v ? null : l.get(ft);
|
|
1683
|
+
K ? (K.v && me(K.v, D), K.i && me(K.i, H), U && P.unskip_effect(K.e)) : (K = Os(l, v ? s : Ze ?? (Ze = ht()), D, ft, H, i, e, o), v || (K.e.f |= _e), l.set(ft, K)), x.add(ft);
|
|
1684
1684
|
}
|
|
1685
|
-
if (w === 0 && r && !
|
|
1686
|
-
for (const [pt, We] of l)
|
|
1687
|
-
|
|
1688
|
-
} else
|
|
1685
|
+
if (w === 0 && r && !c && (v ? c = ot(() => r(s)) : (c = ot(() => r(Ze ?? (Ze = ht()))), c.f |= _e)), w > x.size && _r("", "", ""), L && w > 0 && G(ao()), !v) if (h.set(P, x), U) {
|
|
1686
|
+
for (const [pt, We] of l) x.has(pt) || P.skip_effect(We.e);
|
|
1687
|
+
P.oncommit(m), P.ondiscard(S);
|
|
1688
|
+
} else m(P);
|
|
1689
1689
|
R && Ct(!0), g(d);
|
|
1690
1690
|
}),
|
|
1691
1691
|
flags: e,
|
|
1692
1692
|
items: l,
|
|
1693
1693
|
pending: h,
|
|
1694
1694
|
outrogroups: null,
|
|
1695
|
-
fallback:
|
|
1695
|
+
fallback: c
|
|
1696
1696
|
};
|
|
1697
1697
|
v = !1, L && (s = E);
|
|
1698
1698
|
}
|
|
1699
|
-
function
|
|
1699
|
+
function ke(t) {
|
|
1700
1700
|
for (; t !== null && !(t.f & 32); ) t = t.next;
|
|
1701
1701
|
return t;
|
|
1702
1702
|
}
|
|
1703
|
-
function
|
|
1704
|
-
var r = (n & 8) !== 0, s = e.length, l = t.items, a =
|
|
1705
|
-
if (r) for (w = 0; w < s; w += 1)
|
|
1703
|
+
function Ls(t, e, o, n, i) {
|
|
1704
|
+
var r = (n & 8) !== 0, s = e.length, l = t.items, a = ke(t.effect.first), c, d = null, f, h = [], v = [], m, S, p, w;
|
|
1705
|
+
if (r) for (w = 0; w < s; w += 1) m = e[w], S = i(m, w), p = l.get(S).e, p.f & 33554432 || (p.nodes?.a?.measure(), (f ?? (f = /* @__PURE__ */ new Set())).add(p));
|
|
1706
1706
|
for (w = 0; w < s; w += 1) {
|
|
1707
|
-
if (
|
|
1708
|
-
if (
|
|
1707
|
+
if (m = e[w], S = i(m, w), p = l.get(S).e, t.outrogroups !== null) for (const pt of t.outrogroups) pt.pending.delete(p), pt.done.delete(p);
|
|
1708
|
+
if (p.f & 8192 && (cn(p), r && (p.nodes?.a?.unfix(), (f ?? (f = /* @__PURE__ */ new Set())).delete(p))), p.f & 33554432) if (p.f ^= _e, p === a) xe(p, null, o);
|
|
1709
1709
|
else {
|
|
1710
1710
|
var R = d ? d.next : a;
|
|
1711
|
-
|
|
1711
|
+
p === t.effect.last && (t.effect.last = p.prev), p.prev && (p.prev.next = p.next), p.next && (p.next.prev = p.prev), Ot(t, d, p), Ot(t, p, R), xe(p, R, o), d = p, h = [], v = [], a = ke(d.next);
|
|
1712
1712
|
continue;
|
|
1713
1713
|
}
|
|
1714
|
-
if (
|
|
1715
|
-
if (
|
|
1714
|
+
if (p !== a) {
|
|
1715
|
+
if (c !== void 0 && c.has(p)) {
|
|
1716
1716
|
if (h.length < v.length) {
|
|
1717
|
-
var
|
|
1718
|
-
d =
|
|
1717
|
+
var x = v[0], P;
|
|
1718
|
+
d = x.prev;
|
|
1719
1719
|
var U = h[0], H = h[h.length - 1];
|
|
1720
|
-
for (
|
|
1721
|
-
for (
|
|
1722
|
-
|
|
1723
|
-
} else
|
|
1720
|
+
for (P = 0; P < h.length; P += 1) xe(h[P], x, o);
|
|
1721
|
+
for (P = 0; P < v.length; P += 1) c.delete(v[P]);
|
|
1722
|
+
Ot(t, U.prev, H.next), Ot(t, d, U), Ot(t, H, x), a = x, d = H, w -= 1, h = [], v = [];
|
|
1723
|
+
} else c.delete(p), xe(p, a, o), Ot(t, p.prev, p.next), Ot(t, p, d === null ? t.effect.first : d.next), Ot(t, d, p), d = p;
|
|
1724
1724
|
continue;
|
|
1725
1725
|
}
|
|
1726
|
-
for (h = [], v = []; a !== null && a !==
|
|
1726
|
+
for (h = [], v = []; a !== null && a !== p; ) (c ?? (c = /* @__PURE__ */ new Set())).add(a), v.push(a), a = ke(a.next);
|
|
1727
1727
|
if (a === null) continue;
|
|
1728
1728
|
}
|
|
1729
|
-
|
|
1729
|
+
p.f & 33554432 || h.push(p), d = p, a = ke(p.next);
|
|
1730
1730
|
}
|
|
1731
1731
|
if (t.outrogroups !== null) {
|
|
1732
|
-
for (const pt of t.outrogroups) pt.pending.size === 0 && (
|
|
1732
|
+
for (const pt of t.outrogroups) pt.pending.size === 0 && (Fo(t, vo(pt.done)), t.outrogroups?.delete(pt));
|
|
1733
1733
|
t.outrogroups.size === 0 && (t.outrogroups = null);
|
|
1734
1734
|
}
|
|
1735
|
-
if (a !== null ||
|
|
1735
|
+
if (a !== null || c !== void 0) {
|
|
1736
1736
|
var D = [];
|
|
1737
|
-
if (
|
|
1738
|
-
for (; a !== null; ) !(a.f & 8192) && a !== t.fallback && D.push(a), a =
|
|
1737
|
+
if (c !== void 0) for (p of c) p.f & 8192 || D.push(p);
|
|
1738
|
+
for (; a !== null; ) !(a.f & 8192) && a !== t.fallback && D.push(a), a = ke(a.next);
|
|
1739
1739
|
var ft = D.length;
|
|
1740
1740
|
if (ft > 0) {
|
|
1741
1741
|
var K = n & 4 && s === 0 ? o : null;
|
|
@@ -1743,43 +1743,43 @@ function _s(t, e, o, n, i) {
|
|
|
1743
1743
|
for (w = 0; w < ft; w += 1) D[w].nodes?.a?.measure();
|
|
1744
1744
|
for (w = 0; w < ft; w += 1) D[w].nodes?.a?.fix();
|
|
1745
1745
|
}
|
|
1746
|
-
|
|
1746
|
+
Es(t, D, K);
|
|
1747
1747
|
}
|
|
1748
1748
|
}
|
|
1749
1749
|
r && ee(() => {
|
|
1750
|
-
if (
|
|
1750
|
+
if (f !== void 0) for (p of f) p.nodes?.a?.apply();
|
|
1751
1751
|
});
|
|
1752
1752
|
}
|
|
1753
|
-
function
|
|
1754
|
-
var a = s & 1 ? s & 16 ? oe(o) : /* @__PURE__ */
|
|
1753
|
+
function Os(t, e, o, n, i, r, s, l) {
|
|
1754
|
+
var a = s & 1 ? s & 16 ? oe(o) : /* @__PURE__ */ Ai(o, !1, !1) : null, c = s & 2 ? oe(i) : null;
|
|
1755
1755
|
return {
|
|
1756
1756
|
v: a,
|
|
1757
|
-
i:
|
|
1758
|
-
e: ot(() => (r(e, a ?? o,
|
|
1757
|
+
i: c,
|
|
1758
|
+
e: ot(() => (r(e, a ?? o, c ?? i, l), () => {
|
|
1759
1759
|
t.delete(n);
|
|
1760
1760
|
}))
|
|
1761
1761
|
};
|
|
1762
1762
|
}
|
|
1763
|
-
function
|
|
1763
|
+
function xe(t, e, o) {
|
|
1764
1764
|
if (t.nodes) for (var n = t.nodes.start, i = t.nodes.end, r = e && !(e.f & 33554432) ? e.nodes.start : o; n !== null; ) {
|
|
1765
1765
|
var s = /* @__PURE__ */ Tt(n);
|
|
1766
1766
|
if (r.before(n), n === i) return;
|
|
1767
1767
|
n = s;
|
|
1768
1768
|
}
|
|
1769
1769
|
}
|
|
1770
|
-
function
|
|
1770
|
+
function Ot(t, e, o) {
|
|
1771
1771
|
e === null ? t.effect.first = o : e.next = o, o === null ? t.effect.last = e : o.prev = e;
|
|
1772
1772
|
}
|
|
1773
|
-
function
|
|
1774
|
-
|
|
1773
|
+
function Ps(t, e) {
|
|
1774
|
+
Ri(() => {
|
|
1775
1775
|
var o = t.getRootNode(), n = o.host ? o : o.head ?? o.ownerDocument.head;
|
|
1776
1776
|
if (!n.querySelector("#" + e.hash)) {
|
|
1777
|
-
const i =
|
|
1777
|
+
const i = on("style");
|
|
1778
1778
|
i.id = e.hash, i.textContent = e.code, n.appendChild(i);
|
|
1779
1779
|
}
|
|
1780
1780
|
});
|
|
1781
1781
|
}
|
|
1782
|
-
function
|
|
1782
|
+
function Wn(t, e = !1) {
|
|
1783
1783
|
var o = e ? " !important;" : ";", n = "";
|
|
1784
1784
|
for (var i of Object.keys(t)) {
|
|
1785
1785
|
var r = t[i];
|
|
@@ -1787,164 +1787,164 @@ function Nn(t, e = !1) {
|
|
|
1787
1787
|
}
|
|
1788
1788
|
return n;
|
|
1789
1789
|
}
|
|
1790
|
-
function
|
|
1790
|
+
function Co(t) {
|
|
1791
1791
|
return t[0] !== "-" || t[1] !== "-" ? t.toLowerCase() : t;
|
|
1792
1792
|
}
|
|
1793
|
-
function
|
|
1793
|
+
function Rs(t, e) {
|
|
1794
1794
|
if (e) {
|
|
1795
1795
|
var o = "", n, i;
|
|
1796
1796
|
if (Array.isArray(e) ? (n = e[0], i = e[1]) : n = e, t) {
|
|
1797
1797
|
t = String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
|
|
1798
1798
|
var r = !1, s = 0, l = !1, a = [];
|
|
1799
|
-
n && a.push(...Object.keys(n).map(
|
|
1800
|
-
var
|
|
1801
|
-
const
|
|
1802
|
-
for (var
|
|
1803
|
-
var h = t[
|
|
1804
|
-
if (l ? h === "/" && t[
|
|
1805
|
-
if (h === ":" && d === -1) d =
|
|
1806
|
-
else if (h === ";" ||
|
|
1799
|
+
n && a.push(...Object.keys(n).map(Co)), i && a.push(...Object.keys(i).map(Co));
|
|
1800
|
+
var c = 0, d = -1;
|
|
1801
|
+
const S = t.length;
|
|
1802
|
+
for (var f = 0; f < S; f++) {
|
|
1803
|
+
var h = t[f];
|
|
1804
|
+
if (l ? h === "/" && t[f - 1] === "*" && (l = !1) : r ? r === h && (r = !1) : h === "/" && t[f + 1] === "*" ? l = !0 : h === '"' || h === "'" ? r = h : h === "(" ? s++ : h === ")" && s--, !l && r === !1 && s === 0) {
|
|
1805
|
+
if (h === ":" && d === -1) d = f;
|
|
1806
|
+
else if (h === ";" || f === S - 1) {
|
|
1807
1807
|
if (d !== -1) {
|
|
1808
|
-
var v =
|
|
1808
|
+
var v = Co(t.substring(c, d).trim());
|
|
1809
1809
|
if (!a.includes(v)) {
|
|
1810
|
-
h !== ";" &&
|
|
1811
|
-
var
|
|
1812
|
-
o += " " +
|
|
1810
|
+
h !== ";" && f++;
|
|
1811
|
+
var m = t.substring(c, f).trim();
|
|
1812
|
+
o += " " + m + ";";
|
|
1813
1813
|
}
|
|
1814
1814
|
}
|
|
1815
|
-
|
|
1815
|
+
c = f + 1, d = -1;
|
|
1816
1816
|
}
|
|
1817
1817
|
}
|
|
1818
1818
|
}
|
|
1819
1819
|
}
|
|
1820
|
-
return n && (o +=
|
|
1820
|
+
return n && (o += Wn(n)), i && (o += Wn(i, !0)), o = o.trim(), o === "" ? null : o;
|
|
1821
1821
|
}
|
|
1822
1822
|
return t == null ? null : String(t);
|
|
1823
1823
|
}
|
|
1824
|
-
function
|
|
1824
|
+
function Eo(t, e = {}, o, n) {
|
|
1825
1825
|
for (var i in o) {
|
|
1826
1826
|
var r = o[i];
|
|
1827
1827
|
e[i] !== r && (o[i] == null ? t.style.removeProperty(i) : t.style.setProperty(i, r, n));
|
|
1828
1828
|
}
|
|
1829
1829
|
}
|
|
1830
|
-
function
|
|
1830
|
+
function jn(t, e, o, n) {
|
|
1831
1831
|
var i = t.__style;
|
|
1832
1832
|
if (L || i !== e) {
|
|
1833
|
-
var r =
|
|
1833
|
+
var r = Rs(e, n);
|
|
1834
1834
|
(!L || r !== t.getAttribute("style")) && (r == null ? t.removeAttribute("style") : t.style.cssText = r), t.__style = e;
|
|
1835
|
-
} else n && (Array.isArray(n) ? (
|
|
1835
|
+
} else n && (Array.isArray(n) ? (Eo(t, o?.[0], n[0]), Eo(t, o?.[1], n[1], "important")) : Eo(t, o, n));
|
|
1836
1836
|
return n;
|
|
1837
1837
|
}
|
|
1838
|
-
var
|
|
1839
|
-
function
|
|
1840
|
-
var i =
|
|
1841
|
-
L && (i[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName ===
|
|
1838
|
+
var Ns = Symbol("is custom element"), Vs = Symbol("is html"), Ws = Ar ? "link" : "LINK";
|
|
1839
|
+
function zn(t, e, o, n) {
|
|
1840
|
+
var i = js(t);
|
|
1841
|
+
L && (i[e] = t.getAttribute(e), e === "src" || e === "srcset" || e === "href" && t.nodeName === Ws) || i[e] !== (i[e] = o) && (e === "loading" && (t[kr] = o), o == null ? t.removeAttribute(e) : typeof o != "string" && zs(t).includes(e) ? t[e] = o : t.setAttribute(e, o));
|
|
1842
1842
|
}
|
|
1843
|
-
function
|
|
1843
|
+
function js(t) {
|
|
1844
1844
|
return t.__attributes ?? (t.__attributes = {
|
|
1845
|
-
[
|
|
1846
|
-
[
|
|
1845
|
+
[Ns]: t.nodeName.includes("-"),
|
|
1846
|
+
[Vs]: t.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
1847
1847
|
});
|
|
1848
1848
|
}
|
|
1849
|
-
var
|
|
1850
|
-
function
|
|
1851
|
-
var e = t.getAttribute("is") || t.nodeName, o =
|
|
1849
|
+
var Hn = /* @__PURE__ */ new Map();
|
|
1850
|
+
function zs(t) {
|
|
1851
|
+
var e = t.getAttribute("is") || t.nodeName, o = Hn.get(e);
|
|
1852
1852
|
if (o) return o;
|
|
1853
|
-
|
|
1853
|
+
Hn.set(e, o = []);
|
|
1854
1854
|
for (var n, i = t, r = Element.prototype; r !== i; ) {
|
|
1855
|
-
n =
|
|
1855
|
+
n = mr(i);
|
|
1856
1856
|
for (var s in n) n[s].set && o.push(s);
|
|
1857
|
-
i =
|
|
1857
|
+
i = Qn(i);
|
|
1858
1858
|
}
|
|
1859
1859
|
return o;
|
|
1860
1860
|
}
|
|
1861
|
-
var
|
|
1861
|
+
var Zi, de = /* @__PURE__ */ new WeakMap(), fo = /* @__PURE__ */ new WeakMap(), Mo = /* @__PURE__ */ new WeakMap(), Dn = /* @__PURE__ */ new WeakSet(), Xi = class {
|
|
1862
1862
|
constructor(t) {
|
|
1863
|
-
|
|
1863
|
+
Xo(this, Dn), $(this, de, /* @__PURE__ */ new WeakMap()), $(this, fo, void 0), $(this, Mo, void 0), T(Mo, this, t);
|
|
1864
1864
|
}
|
|
1865
1865
|
observe(t, e) {
|
|
1866
|
-
var o =
|
|
1867
|
-
return o.add(e),
|
|
1868
|
-
var n =
|
|
1869
|
-
n.delete(e), n.size === 0 && (
|
|
1866
|
+
var o = u(de, this).get(t) || /* @__PURE__ */ new Set();
|
|
1867
|
+
return o.add(e), u(de, this).set(t, o), O(Dn, this, Hs).call(this).observe(t, u(Mo, this)), () => {
|
|
1868
|
+
var n = u(de, this).get(t);
|
|
1869
|
+
n.delete(e), n.size === 0 && (u(de, this).delete(t), u(fo, this).unobserve(t));
|
|
1870
1870
|
};
|
|
1871
1871
|
}
|
|
1872
1872
|
};
|
|
1873
|
-
|
|
1874
|
-
function
|
|
1875
|
-
return
|
|
1873
|
+
Zi = Xi;
|
|
1874
|
+
function Hs() {
|
|
1875
|
+
return u(fo, this) ?? T(fo, this, new ResizeObserver((t) => {
|
|
1876
1876
|
for (var e of t) {
|
|
1877
|
-
|
|
1878
|
-
for (var o of
|
|
1877
|
+
Zi.entries.set(e.target, e);
|
|
1878
|
+
for (var o of u(de, this).get(e.target) || []) o(e);
|
|
1879
1879
|
}
|
|
1880
1880
|
}));
|
|
1881
1881
|
}
|
|
1882
|
-
|
|
1883
|
-
function
|
|
1882
|
+
y(Xi, "entries", /* @__PURE__ */ new WeakMap());
|
|
1883
|
+
function qn(t, e) {
|
|
1884
1884
|
return t === e || t?.[Ce] === e;
|
|
1885
1885
|
}
|
|
1886
|
-
function
|
|
1887
|
-
var i = W.r, r =
|
|
1888
|
-
return
|
|
1886
|
+
function Bn(t = {}, e, o, n) {
|
|
1887
|
+
var i = W.r, r = k;
|
|
1888
|
+
return Ri(() => {
|
|
1889
1889
|
var s, l;
|
|
1890
|
-
return
|
|
1891
|
-
s = l, l = n?.() || [],
|
|
1892
|
-
t !== o(...l) && (e(t, ...l), s &&
|
|
1890
|
+
return sn(() => {
|
|
1891
|
+
s = l, l = n?.() || [], dn(() => {
|
|
1892
|
+
t !== o(...l) && (e(t, ...l), s && qn(o(...s), t) && e(null, ...s));
|
|
1893
1893
|
});
|
|
1894
1894
|
}), () => {
|
|
1895
1895
|
let a = r;
|
|
1896
1896
|
for (; a !== i && a.parent !== null && a.parent.f & 33554432; ) a = a.parent;
|
|
1897
|
-
const
|
|
1898
|
-
l &&
|
|
1897
|
+
const c = () => {
|
|
1898
|
+
l && qn(o(...l), t) && e(null, ...l);
|
|
1899
1899
|
}, d = a.teardown;
|
|
1900
1900
|
a.teardown = () => {
|
|
1901
|
-
|
|
1901
|
+
c(), d?.();
|
|
1902
1902
|
};
|
|
1903
1903
|
};
|
|
1904
1904
|
}), t;
|
|
1905
1905
|
}
|
|
1906
|
-
function
|
|
1907
|
-
var i = !
|
|
1906
|
+
function Lo(t, e, o, n) {
|
|
1907
|
+
var i = !bo || (o & 2) !== 0, r = (o & 8) !== 0, s = (o & 16) !== 0, l = n, a = !0, c = () => (a && (a = !1, l = s ? dn(n) : n), l);
|
|
1908
1908
|
let d;
|
|
1909
1909
|
if (r) {
|
|
1910
|
-
var
|
|
1911
|
-
d =
|
|
1910
|
+
var f = Ce in t || ei in t;
|
|
1911
|
+
d = Zt(t, e)?.set ?? (f && e in t ? (x) => t[e] = x : void 0);
|
|
1912
1912
|
}
|
|
1913
1913
|
var h, v = !1;
|
|
1914
|
-
r ? [h, v] =
|
|
1915
|
-
var
|
|
1916
|
-
if (i ?
|
|
1917
|
-
var
|
|
1918
|
-
return
|
|
1919
|
-
} :
|
|
1920
|
-
var
|
|
1921
|
-
return
|
|
1922
|
-
}, i && !(o & 4)) return
|
|
1914
|
+
r ? [h, v] = Fr(() => t[e]) : h = t[e], h === void 0 && n !== void 0 && (h = c(), d && (i && Pr(e), d(h)));
|
|
1915
|
+
var m;
|
|
1916
|
+
if (i ? m = () => {
|
|
1917
|
+
var x = t[e];
|
|
1918
|
+
return x === void 0 ? c() : (a = !0, x);
|
|
1919
|
+
} : m = () => {
|
|
1920
|
+
var x = t[e];
|
|
1921
|
+
return x !== void 0 && (l = void 0), x === void 0 ? l : x;
|
|
1922
|
+
}, i && !(o & 4)) return m;
|
|
1923
1923
|
if (d) {
|
|
1924
|
-
var
|
|
1925
|
-
return function(
|
|
1926
|
-
return arguments.length > 0 ? ((!i || !
|
|
1924
|
+
var S = t.$$legacy;
|
|
1925
|
+
return function(x, P) {
|
|
1926
|
+
return arguments.length > 0 ? ((!i || !P || S || v) && d(P ? m() : x), x) : m();
|
|
1927
1927
|
};
|
|
1928
1928
|
}
|
|
1929
|
-
var
|
|
1929
|
+
var p = !1, w = (o & 1 ? yo : tn)(() => (p = !1, m()));
|
|
1930
1930
|
r && g(w);
|
|
1931
|
-
var R =
|
|
1932
|
-
return function(
|
|
1931
|
+
var R = k;
|
|
1932
|
+
return function(x, P) {
|
|
1933
1933
|
if (arguments.length > 0) {
|
|
1934
|
-
const U =
|
|
1935
|
-
return _(w, U),
|
|
1934
|
+
const U = P ? g(w) : i && r ? Kt(x) : x;
|
|
1935
|
+
return _(w, U), p = !0, l !== void 0 && (l = U), x;
|
|
1936
1936
|
}
|
|
1937
|
-
return Ht &&
|
|
1937
|
+
return Ht && p || R.f & 16384 ? w.v : g(w);
|
|
1938
1938
|
};
|
|
1939
1939
|
}
|
|
1940
|
-
function
|
|
1941
|
-
return new
|
|
1940
|
+
function Ds(t) {
|
|
1941
|
+
return new qs(t);
|
|
1942
1942
|
}
|
|
1943
|
-
var Ft = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(),
|
|
1943
|
+
var Ft = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), qs = class {
|
|
1944
1944
|
constructor(t) {
|
|
1945
|
-
|
|
1945
|
+
$(this, Ft, void 0), $(this, vt, void 0);
|
|
1946
1946
|
var e = /* @__PURE__ */ new Map(), o = (i, r) => {
|
|
1947
|
-
var s = /* @__PURE__ */
|
|
1947
|
+
var s = /* @__PURE__ */ Ai(r, !1, !1);
|
|
1948
1948
|
return e.set(i, s), s;
|
|
1949
1949
|
};
|
|
1950
1950
|
const n = new Proxy({
|
|
@@ -1955,13 +1955,13 @@ var Ft = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), js =
|
|
|
1955
1955
|
return g(e.get(r) ?? o(r, Reflect.get(i, r)));
|
|
1956
1956
|
},
|
|
1957
1957
|
has(i, r) {
|
|
1958
|
-
return r ===
|
|
1958
|
+
return r === ei ? !0 : (g(e.get(r) ?? o(r, Reflect.get(i, r))), Reflect.has(i, r));
|
|
1959
1959
|
},
|
|
1960
1960
|
set(i, r, s) {
|
|
1961
1961
|
return _(e.get(r) ?? o(r, s), s), Reflect.set(i, r, s);
|
|
1962
1962
|
}
|
|
1963
1963
|
});
|
|
1964
|
-
T(vt, this, (t.hydrate ?
|
|
1964
|
+
T(vt, this, (t.hydrate ? As : Ki)(t.component, {
|
|
1965
1965
|
target: t.target,
|
|
1966
1966
|
anchor: t.anchor,
|
|
1967
1967
|
props: n,
|
|
@@ -1970,38 +1970,38 @@ var Ft = /* @__PURE__ */ new WeakMap(), vt = /* @__PURE__ */ new WeakMap(), js =
|
|
|
1970
1970
|
recover: t.recover,
|
|
1971
1971
|
transformError: t.transformError
|
|
1972
1972
|
})), !zt && (!t?.props?.$$host || t.sync === !1) && Ye(), T(Ft, this, n.$$events);
|
|
1973
|
-
for (const i of Object.keys(
|
|
1973
|
+
for (const i of Object.keys(u(vt, this))) i === "$set" || i === "$destroy" || i === "$on" || so(this, i, {
|
|
1974
1974
|
get() {
|
|
1975
|
-
return
|
|
1975
|
+
return u(vt, this)[i];
|
|
1976
1976
|
},
|
|
1977
1977
|
set(r) {
|
|
1978
|
-
|
|
1978
|
+
u(vt, this)[i] = r;
|
|
1979
1979
|
},
|
|
1980
1980
|
enumerable: !0
|
|
1981
1981
|
});
|
|
1982
|
-
|
|
1982
|
+
u(vt, this).$set = (i) => {
|
|
1983
1983
|
Object.assign(n, i);
|
|
1984
|
-
},
|
|
1985
|
-
|
|
1984
|
+
}, u(vt, this).$destroy = () => {
|
|
1985
|
+
xs(u(vt, this));
|
|
1986
1986
|
};
|
|
1987
1987
|
}
|
|
1988
1988
|
$set(t) {
|
|
1989
|
-
|
|
1989
|
+
u(vt, this).$set(t);
|
|
1990
1990
|
}
|
|
1991
1991
|
$on(t, e) {
|
|
1992
|
-
|
|
1992
|
+
u(Ft, this)[t] = u(Ft, this)[t] || [];
|
|
1993
1993
|
const o = (...n) => e.call(this, ...n);
|
|
1994
|
-
return
|
|
1995
|
-
|
|
1994
|
+
return u(Ft, this)[t].push(o), () => {
|
|
1995
|
+
u(Ft, this)[t] = u(Ft, this)[t].filter((n) => n !== o);
|
|
1996
1996
|
};
|
|
1997
1997
|
}
|
|
1998
1998
|
$destroy() {
|
|
1999
|
-
|
|
1999
|
+
u(vt, this).$destroy();
|
|
2000
2000
|
}
|
|
2001
|
-
},
|
|
2002
|
-
typeof HTMLElement == "function" && (
|
|
2001
|
+
}, Yi;
|
|
2002
|
+
typeof HTMLElement == "function" && (Yi = class extends HTMLElement {
|
|
2003
2003
|
constructor(t, e, o) {
|
|
2004
|
-
super(),
|
|
2004
|
+
super(), y(this, "$$ctor", void 0), y(this, "$$s", void 0), y(this, "$$c", void 0), y(this, "$$cn", !1), y(this, "$$d", {}), y(this, "$$r", !1), y(this, "$$p_d", {}), y(this, "$$l", {}), y(this, "$$l_u", /* @__PURE__ */ new Map()), y(this, "$$me", void 0), y(this, "$$shadowRoot", null), this.$$ctor = t, this.$$s = e, o && (this.$$shadowRoot = this.attachShadow(o));
|
|
2005
2005
|
}
|
|
2006
2006
|
addEventListener(t, e, o) {
|
|
2007
2007
|
if (this.$$l[t] = this.$$l[t] || [], this.$$l[t].push(e), this.$$c) {
|
|
@@ -2020,19 +2020,19 @@ typeof HTMLElement == "function" && (Ji = class extends HTMLElement {
|
|
|
2020
2020
|
if (this.$$cn = !0, !this.$$c) {
|
|
2021
2021
|
let t = function(n) {
|
|
2022
2022
|
return (i) => {
|
|
2023
|
-
const r =
|
|
2024
|
-
n !== "default" && (r.name = n),
|
|
2023
|
+
const r = on("slot");
|
|
2024
|
+
n !== "default" && (r.name = n), Pt(i, r);
|
|
2025
2025
|
};
|
|
2026
2026
|
};
|
|
2027
2027
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2028
|
-
const e = {}, o =
|
|
2028
|
+
const e = {}, o = Bs(this);
|
|
2029
2029
|
for (const n of this.$$s) n in o && (n === "default" && !this.$$d.children ? (this.$$d.children = t(n), e.default = !0) : e[n] = t(n));
|
|
2030
2030
|
for (const n of this.attributes) {
|
|
2031
2031
|
const i = this.$$g_p(n.name);
|
|
2032
2032
|
i in this.$$d || (this.$$d[i] = eo(i, n.value, this.$$p_d, "toProp"));
|
|
2033
2033
|
}
|
|
2034
2034
|
for (const n in this.$$p_d) !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
2035
|
-
this.$$c =
|
|
2035
|
+
this.$$c = Ds({
|
|
2036
2036
|
component: this.$$ctor,
|
|
2037
2037
|
target: this.$$shadowRoot || this,
|
|
2038
2038
|
props: {
|
|
@@ -2040,8 +2040,8 @@ typeof HTMLElement == "function" && (Ji = class extends HTMLElement {
|
|
|
2040
2040
|
$$slots: e,
|
|
2041
2041
|
$$host: this
|
|
2042
2042
|
}
|
|
2043
|
-
}), this.$$me =
|
|
2044
|
-
|
|
2043
|
+
}), this.$$me = hs(() => {
|
|
2044
|
+
sn(() => {
|
|
2045
2045
|
this.$$r = !0;
|
|
2046
2046
|
for (const n of ro(this.$$c)) {
|
|
2047
2047
|
if (!this.$$p_d[n]?.reflect) continue;
|
|
@@ -2097,14 +2097,14 @@ function eo(t, e, o, n) {
|
|
|
2097
2097
|
return e;
|
|
2098
2098
|
}
|
|
2099
2099
|
}
|
|
2100
|
-
function
|
|
2100
|
+
function Bs(t) {
|
|
2101
2101
|
const e = {};
|
|
2102
2102
|
return t.childNodes.forEach((o) => {
|
|
2103
2103
|
e[o.slot || "default"] = !0;
|
|
2104
2104
|
}), e;
|
|
2105
2105
|
}
|
|
2106
|
-
function
|
|
2107
|
-
let s = class extends
|
|
2106
|
+
function Fs(t, e, o, n, i, r) {
|
|
2107
|
+
let s = class extends Yi {
|
|
2108
2108
|
constructor() {
|
|
2109
2109
|
super(t, o, i), this.$$p_d = e;
|
|
2110
2110
|
}
|
|
@@ -2119,8 +2119,8 @@ function Hs(t, e, o, n, i, r) {
|
|
|
2119
2119
|
},
|
|
2120
2120
|
set(a) {
|
|
2121
2121
|
a = eo(l, a, e), this.$$d[l] = a;
|
|
2122
|
-
var
|
|
2123
|
-
|
|
2122
|
+
var c = this.$$c;
|
|
2123
|
+
c && (Zt(c, l)?.get ? c[l] = a : c.$set({ [l]: a }));
|
|
2124
2124
|
}
|
|
2125
2125
|
});
|
|
2126
2126
|
}), n.forEach((l) => {
|
|
@@ -2129,16 +2129,16 @@ function Hs(t, e, o, n, i, r) {
|
|
|
2129
2129
|
} });
|
|
2130
2130
|
}), r && (s = r(s)), t.element = s, s;
|
|
2131
2131
|
}
|
|
2132
|
-
var
|
|
2132
|
+
var Gs = class extends Event {
|
|
2133
2133
|
constructor(t, e, o, n) {
|
|
2134
2134
|
super("context-request", {
|
|
2135
2135
|
bubbles: !0,
|
|
2136
2136
|
composed: !0
|
|
2137
|
-
}),
|
|
2137
|
+
}), y(this, "context", void 0), y(this, "contextTarget", void 0), y(this, "callback", void 0), y(this, "subscribe", void 0), this.context = t, this.contextTarget = e, this.callback = o, this.subscribe = n ?? !1;
|
|
2138
2138
|
}
|
|
2139
|
-
},
|
|
2139
|
+
}, Us = class {
|
|
2140
2140
|
constructor(t, e) {
|
|
2141
|
-
|
|
2141
|
+
y(this, "host", void 0), y(this, "context", void 0), y(this, "subscribe", void 0), y(this, "onValue", void 0), y(this, "isConnected", !1), y(this, "unsubscribe", void 0), y(this, "currentValue", void 0), y(this, "handleValue", (o, n) => {
|
|
2142
2142
|
n !== this.unsubscribe && (this.unsubscribe?.(), this.unsubscribe = n), !this.subscribe && this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0), this.currentValue = o, this.onValue?.(o);
|
|
2143
2143
|
}), this.host = t, this.context = e.context, this.subscribe = e.subscribe ?? !0, this.onValue = e.onValue;
|
|
2144
2144
|
}
|
|
@@ -2152,24 +2152,24 @@ var Ds = class extends Event {
|
|
|
2152
2152
|
return this.currentValue;
|
|
2153
2153
|
}
|
|
2154
2154
|
requestValue() {
|
|
2155
|
-
this.host.dispatchEvent(new
|
|
2155
|
+
this.host.dispatchEvent(new Gs(this.context, this.host, this.handleValue, this.subscribe));
|
|
2156
2156
|
}
|
|
2157
|
-
},
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
var
|
|
2161
|
-
function
|
|
2157
|
+
}, wo = (t) => t;
|
|
2158
|
+
wo(Symbol.for("pie.assessmentToolkit.runtimeContext"));
|
|
2159
|
+
wo(Symbol.for("pie.assessmentToolkit.hostRuntimeContext"));
|
|
2160
|
+
var Ks = wo(Symbol.for("pie.assessmentToolkit.shellContext")), Js = wo(Symbol.for("pie.assessmentToolkit.regionScopeContext"));
|
|
2161
|
+
function Qi(t, e, o) {
|
|
2162
2162
|
let n = !1;
|
|
2163
|
-
const i = new
|
|
2163
|
+
const i = new Us(t, {
|
|
2164
2164
|
context: e,
|
|
2165
2165
|
subscribe: !0,
|
|
2166
|
-
onValue: (
|
|
2167
|
-
n = !0, o(
|
|
2166
|
+
onValue: (c) => {
|
|
2167
|
+
n = !0, o(c);
|
|
2168
2168
|
}
|
|
2169
2169
|
});
|
|
2170
2170
|
i.connect();
|
|
2171
|
-
const r = (
|
|
2172
|
-
|
|
2171
|
+
const r = (c) => {
|
|
2172
|
+
c.context === e && i.requestValue();
|
|
2173
2173
|
};
|
|
2174
2174
|
t.addEventListener("context-provider", r);
|
|
2175
2175
|
let s = 0;
|
|
@@ -2184,27 +2184,27 @@ function Xi(t, e, o) {
|
|
|
2184
2184
|
globalThis.clearInterval(a), t.removeEventListener("context-provider", r), i.disconnect();
|
|
2185
2185
|
};
|
|
2186
2186
|
}
|
|
2187
|
-
function
|
|
2188
|
-
return
|
|
2187
|
+
function Zs(t, e) {
|
|
2188
|
+
return Qi(t, Ks, e);
|
|
2189
2189
|
}
|
|
2190
|
-
function
|
|
2191
|
-
return
|
|
2190
|
+
function Xs(t, e) {
|
|
2191
|
+
return Qi(t, Js, e);
|
|
2192
2192
|
}
|
|
2193
|
-
var
|
|
2193
|
+
var Fn;
|
|
2194
2194
|
(function(t) {
|
|
2195
2195
|
t.TTS_WORD = "tts-word", t.TTS_SENTENCE = "tts-sentence", t.ANNOTATION = "annotation";
|
|
2196
|
-
})(
|
|
2196
|
+
})(Fn || (Fn = {}));
|
|
2197
2197
|
var Rt;
|
|
2198
2198
|
(function(t) {
|
|
2199
2199
|
t.YELLOW = "yellow", t.GREEN = "green", t.BLUE = "blue", t.PINK = "pink", t.ORANGE = "orange", t.UNDERLINE = "underline";
|
|
2200
2200
|
})(Rt || (Rt = {}));
|
|
2201
|
-
function
|
|
2201
|
+
function tr(t) {
|
|
2202
2202
|
return (...e) => {
|
|
2203
2203
|
console.debug(`[${t}]`, ...e);
|
|
2204
2204
|
};
|
|
2205
2205
|
}
|
|
2206
|
-
|
|
2207
|
-
var
|
|
2206
|
+
tr("I18nService");
|
|
2207
|
+
var Oo = {
|
|
2208
2208
|
assessment: [],
|
|
2209
2209
|
section: [],
|
|
2210
2210
|
item: [],
|
|
@@ -2212,11 +2212,11 @@ var Lo = {
|
|
|
2212
2212
|
rubric: [],
|
|
2213
2213
|
element: []
|
|
2214
2214
|
};
|
|
2215
|
-
[...
|
|
2216
|
-
function
|
|
2215
|
+
[...Oo.section], [...Oo.item], [...Oo.passage];
|
|
2216
|
+
function Ys(t) {
|
|
2217
2217
|
return t.trim() || "";
|
|
2218
2218
|
}
|
|
2219
|
-
var
|
|
2219
|
+
var Qs = [
|
|
2220
2220
|
"assessment",
|
|
2221
2221
|
"section",
|
|
2222
2222
|
"item",
|
|
@@ -2227,10 +2227,10 @@ var Js = [
|
|
|
2227
2227
|
function oo(t, e) {
|
|
2228
2228
|
if (typeof t != "string" || t.trim().length === 0) throw new Error(`Invalid tool registration: "${e}" must be a non-empty string.`);
|
|
2229
2229
|
}
|
|
2230
|
-
function
|
|
2230
|
+
function Gn(t) {
|
|
2231
2231
|
if (oo(t.toolId, "toolId"), oo(t.name, "name"), oo(t.description, "description"), typeof t.icon != "string" && typeof t.icon != "function") throw new Error(`Invalid tool registration "${t.toolId}": "icon" must be a string or function.`);
|
|
2232
2232
|
if (!Array.isArray(t.supportedLevels) || t.supportedLevels.length === 0) throw new Error(`Invalid tool registration "${t.toolId}": "supportedLevels" must be a non-empty array.`);
|
|
2233
|
-
const e = t.supportedLevels.find((o) => !
|
|
2233
|
+
const e = t.supportedLevels.find((o) => !Qs.includes(o));
|
|
2234
2234
|
if (e) throw new Error(`Invalid tool registration "${t.toolId}": unsupported level "${e}".`);
|
|
2235
2235
|
if (t.activation !== void 0 && t.activation !== "toolbar-toggle" && t.activation !== "selection-gateway") throw new Error(`Invalid tool registration "${t.toolId}": unsupported activation "${String(t.activation)}".`);
|
|
2236
2236
|
if (t.singletonScope !== void 0 && t.singletonScope !== "section") throw new Error(`Invalid tool registration "${t.toolId}": unsupported singletonScope "${String(t.singletonScope)}".`);
|
|
@@ -2239,22 +2239,22 @@ function Bn(t) {
|
|
|
2239
2239
|
if (typeof t.isVisibleInContext != "function") throw new Error(`Invalid tool registration "${t.toolId}": "isVisibleInContext" must be a function.`);
|
|
2240
2240
|
if (typeof t.renderToolbar != "function") throw new Error(`Invalid tool registration "${t.toolId}": "renderToolbar" must be a function.`);
|
|
2241
2241
|
}
|
|
2242
|
-
var
|
|
2242
|
+
var tl = class {
|
|
2243
2243
|
constructor() {
|
|
2244
|
-
|
|
2244
|
+
y(this, "tools", /* @__PURE__ */ new Map()), y(this, "pnpIndex", /* @__PURE__ */ new Map()), y(this, "componentOverrides", {}), y(this, "moduleLoaders", /* @__PURE__ */ new Map()), y(this, "loadedToolModules", /* @__PURE__ */ new Set()), y(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
|
|
2245
2245
|
}
|
|
2246
2246
|
normalizeToolId(t) {
|
|
2247
|
-
return
|
|
2247
|
+
return Ys(t);
|
|
2248
2248
|
}
|
|
2249
2249
|
normalizeToolIds(t) {
|
|
2250
2250
|
return t.map((e) => this.normalizeToolId(e));
|
|
2251
2251
|
}
|
|
2252
2252
|
register(t) {
|
|
2253
|
-
if (
|
|
2253
|
+
if (Gn(t), this.tools.has(t.toolId)) throw new Error(`Tool '${t.toolId}' is already registered`);
|
|
2254
2254
|
if (this.tools.set(t.toolId, t), t.pnpSupportIds) for (const e of t.pnpSupportIds) this.pnpIndex.has(e) || this.pnpIndex.set(e, /* @__PURE__ */ new Set()), this.pnpIndex.get(e).add(t.toolId);
|
|
2255
2255
|
}
|
|
2256
2256
|
override(t) {
|
|
2257
|
-
if (
|
|
2257
|
+
if (Gn(t), !this.tools.has(t.toolId)) throw new Error(`Cannot override non-existent tool '${t.toolId}'`);
|
|
2258
2258
|
const e = this.tools.get(t.toolId);
|
|
2259
2259
|
if (e.pnpSupportIds) for (const o of e.pnpSupportIds) this.pnpIndex.get(o)?.delete(t.toolId);
|
|
2260
2260
|
if (this.tools.set(t.toolId, t), t.pnpSupportIds) for (const o of t.pnpSupportIds) this.pnpIndex.has(o) || this.pnpIndex.set(o, /* @__PURE__ */ new Set()), this.pnpIndex.get(o).add(t.toolId);
|
|
@@ -2378,20 +2378,20 @@ var Xs = class {
|
|
|
2378
2378
|
return n.renderToolbar(e, i);
|
|
2379
2379
|
}
|
|
2380
2380
|
};
|
|
2381
|
-
function
|
|
2381
|
+
function er(t) {
|
|
2382
2382
|
return t.level === "item";
|
|
2383
2383
|
}
|
|
2384
|
-
function
|
|
2384
|
+
function el(t) {
|
|
2385
2385
|
return t.level === "passage";
|
|
2386
2386
|
}
|
|
2387
|
-
function
|
|
2387
|
+
function ol(t) {
|
|
2388
2388
|
return t.level === "rubric";
|
|
2389
2389
|
}
|
|
2390
|
-
function
|
|
2390
|
+
function or(t) {
|
|
2391
2391
|
return t.level === "element";
|
|
2392
2392
|
}
|
|
2393
|
-
function
|
|
2394
|
-
if (
|
|
2393
|
+
function hn(t) {
|
|
2394
|
+
if (or(t)) {
|
|
2395
2395
|
const e = t.item.config;
|
|
2396
2396
|
if (!e) return "";
|
|
2397
2397
|
const o = [], n = (l) => l.replace(/<[^>]*>/g, " ").trim(), i = e.elements?.[t.elementId];
|
|
@@ -2399,12 +2399,12 @@ function un(t) {
|
|
|
2399
2399
|
const r = e.models, s = (Array.isArray(r) ? r : r && typeof r == "object" ? Object.values(r) : []).find((l) => l && typeof l == "object" && l.id === t.elementId);
|
|
2400
2400
|
if (s) {
|
|
2401
2401
|
for (const l of Object.values(s)) if (typeof l == "string" && o.push(n(l)), Array.isArray(l)) {
|
|
2402
|
-
for (const a of l) if (a && typeof a == "object") for (const
|
|
2402
|
+
for (const a of l) if (a && typeof a == "object") for (const c of Object.values(a)) typeof c == "string" && o.push(n(c));
|
|
2403
2403
|
}
|
|
2404
2404
|
}
|
|
2405
2405
|
return o.filter(Boolean).join(" ").trim();
|
|
2406
2406
|
}
|
|
2407
|
-
if (
|
|
2407
|
+
if (er(t)) {
|
|
2408
2408
|
const e = t.item;
|
|
2409
2409
|
if (!e?.config) return "";
|
|
2410
2410
|
const o = e.config, n = [], i = (a) => a.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2413,13 +2413,13 @@ function un(t) {
|
|
|
2413
2413
|
if (r && typeof r == "object") for (const a of Object.values(r)) typeof a == "string" && n.push(i(a));
|
|
2414
2414
|
const s = o.models, l = Array.isArray(s) ? s : s && typeof s == "object" ? Object.values(s) : [];
|
|
2415
2415
|
for (const a of l) if (!(!a || typeof a != "object")) {
|
|
2416
|
-
for (const
|
|
2417
|
-
for (const d of
|
|
2416
|
+
for (const c of Object.values(a)) if (typeof c == "string" && n.push(i(c)), Array.isArray(c)) {
|
|
2417
|
+
for (const d of c) if (d && typeof d == "object") for (const f of Object.values(d)) typeof f == "string" && n.push(i(f));
|
|
2418
2418
|
}
|
|
2419
2419
|
}
|
|
2420
2420
|
return n.filter(Boolean).join(" ").trim();
|
|
2421
2421
|
}
|
|
2422
|
-
if (
|
|
2422
|
+
if (el(t)) {
|
|
2423
2423
|
const e = t.passage;
|
|
2424
2424
|
if (!e?.config) return "";
|
|
2425
2425
|
const o = e.config, n = [], i = (a) => a.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2428,20 +2428,20 @@ function un(t) {
|
|
|
2428
2428
|
if (r && typeof r == "object") for (const a of Object.values(r)) typeof a == "string" && n.push(i(a));
|
|
2429
2429
|
const s = o.models, l = Array.isArray(s) ? s : s && typeof s == "object" ? Object.values(s) : [];
|
|
2430
2430
|
for (const a of l) if (!(!a || typeof a != "object")) {
|
|
2431
|
-
for (const
|
|
2432
|
-
for (const d of
|
|
2431
|
+
for (const c of Object.values(a)) if (typeof c == "string" && n.push(i(c)), Array.isArray(c)) {
|
|
2432
|
+
for (const d of c) if (d && typeof d == "object") for (const f of Object.values(d)) typeof f == "string" && n.push(i(f));
|
|
2433
2433
|
}
|
|
2434
2434
|
}
|
|
2435
2435
|
return n.filter(Boolean).join(" ").trim();
|
|
2436
2436
|
}
|
|
2437
|
-
if (
|
|
2437
|
+
if (ol(t)) {
|
|
2438
2438
|
const e = t.rubricBlock;
|
|
2439
2439
|
return e.passage?.config ? (e.passage.config.markup || "").replace(/<[^>]*>/g, " ").trim() : (e.content || "").replace(/<[^>]*>/g, " ").trim();
|
|
2440
2440
|
}
|
|
2441
2441
|
return "";
|
|
2442
2442
|
}
|
|
2443
2443
|
function no(t) {
|
|
2444
|
-
const e =
|
|
2444
|
+
const e = hn(t);
|
|
2445
2445
|
return [
|
|
2446
2446
|
/<math[>\s]/i,
|
|
2447
2447
|
/\\\[([^\]]+)\\\]/,
|
|
@@ -2451,7 +2451,7 @@ function no(t) {
|
|
|
2451
2451
|
/\d+\s*[+\-*/=]\s*\d+/
|
|
2452
2452
|
].some((o) => o.test(e));
|
|
2453
2453
|
}
|
|
2454
|
-
function
|
|
2454
|
+
function nl(t) {
|
|
2455
2455
|
const e = [
|
|
2456
2456
|
"pie-multiple-choice",
|
|
2457
2457
|
"pie-inline-choice",
|
|
@@ -2460,7 +2460,7 @@ function Qs(t) {
|
|
|
2460
2460
|
"inline-choice",
|
|
2461
2461
|
"select-text"
|
|
2462
2462
|
];
|
|
2463
|
-
if (
|
|
2463
|
+
if (or(t)) {
|
|
2464
2464
|
const o = t.item.config;
|
|
2465
2465
|
if (!o?.models) return !1;
|
|
2466
2466
|
const n = (Array.isArray(o.models) ? o.models : Object.values(o.models)).find((r) => r && typeof r == "object" && r.id === t.elementId);
|
|
@@ -2468,7 +2468,7 @@ function Qs(t) {
|
|
|
2468
2468
|
const i = n.element || "";
|
|
2469
2469
|
return e.includes(i);
|
|
2470
2470
|
}
|
|
2471
|
-
if (
|
|
2471
|
+
if (er(t)) {
|
|
2472
2472
|
const o = t.item.config?.models;
|
|
2473
2473
|
return (Array.isArray(o) ? o : o && typeof o == "object" ? Object.values(o) : []).some((n) => {
|
|
2474
2474
|
if (!n || typeof n != "object") return !1;
|
|
@@ -2479,10 +2479,10 @@ function Qs(t) {
|
|
|
2479
2479
|
return !1;
|
|
2480
2480
|
}
|
|
2481
2481
|
function io(t) {
|
|
2482
|
-
return
|
|
2482
|
+
return hn(t).trim().length >= 10;
|
|
2483
2483
|
}
|
|
2484
|
-
function
|
|
2485
|
-
const e =
|
|
2484
|
+
function il(t) {
|
|
2485
|
+
const e = hn(t);
|
|
2486
2486
|
return [
|
|
2487
2487
|
/chemistry|chemical|element|atom|molecule|compound/i,
|
|
2488
2488
|
/periodic\s+table/i,
|
|
@@ -2492,25 +2492,25 @@ function tl(t) {
|
|
|
2492
2492
|
/physics|force|energy|velocity|acceleration/i
|
|
2493
2493
|
].some((o) => o.test(e));
|
|
2494
2494
|
}
|
|
2495
|
-
var
|
|
2495
|
+
var rl = /* @__PURE__ */ new Set([
|
|
2496
2496
|
"assessment",
|
|
2497
2497
|
"section",
|
|
2498
2498
|
"item",
|
|
2499
2499
|
"passage",
|
|
2500
2500
|
"rubric"
|
|
2501
2501
|
]);
|
|
2502
|
-
function
|
|
2503
|
-
return
|
|
2502
|
+
function sl(t) {
|
|
2503
|
+
return rl.has(t);
|
|
2504
2504
|
}
|
|
2505
|
-
function
|
|
2505
|
+
function fn(t, e, o) {
|
|
2506
2506
|
const n = t.trim(), i = o.trim();
|
|
2507
2507
|
if (!n || !i) throw new Error("Tool instance ids require non-empty tool and scope ids");
|
|
2508
|
-
if (!
|
|
2508
|
+
if (!sl(e)) throw new Error(`Unknown tool scope level '${e}'. Register custom levels with registerToolScopeLevel().`);
|
|
2509
2509
|
return `${n}:${e}:${i}`;
|
|
2510
2510
|
}
|
|
2511
|
-
var
|
|
2511
|
+
var ll = class {
|
|
2512
2512
|
constructor() {
|
|
2513
|
-
|
|
2513
|
+
y(this, "providerId", "desmos-calculator"), y(this, "providerName", "Desmos Calculator"), y(this, "category", "calculator"), y(this, "version", "1.10"), y(this, "requiresAuth", !0), y(this, "desmosProvider", null), y(this, "config", null);
|
|
2514
2514
|
}
|
|
2515
2515
|
async emitTelemetry(t, e) {
|
|
2516
2516
|
try {
|
|
@@ -2583,16 +2583,16 @@ var nl = class {
|
|
|
2583
2583
|
destroy() {
|
|
2584
2584
|
this.desmosProvider && (this.desmosProvider.destroy(), this.desmosProvider = null), this.config = null, console.log("[DesmosToolProvider] Destroyed");
|
|
2585
2585
|
}
|
|
2586
|
-
},
|
|
2586
|
+
}, al = (t, e) => {
|
|
2587
2587
|
const o = e?.useSentenceSegmenter !== !1;
|
|
2588
2588
|
try {
|
|
2589
2589
|
if (!o) throw new Error("Segmenter disabled by policy");
|
|
2590
2590
|
const s = globalThis.Intl?.Segmenter;
|
|
2591
2591
|
if (typeof s == "function") {
|
|
2592
|
-
const l = new s(e?.locale, { granularity: "sentence" }), a = Array.from(l.segment(t)).map((
|
|
2593
|
-
text:
|
|
2594
|
-
offset:
|
|
2595
|
-
})).filter((
|
|
2592
|
+
const l = new s(e?.locale, { granularity: "sentence" }), a = Array.from(l.segment(t)).map((c) => ({
|
|
2593
|
+
text: c.segment,
|
|
2594
|
+
offset: c.index
|
|
2595
|
+
})).filter((c) => c.text.trim().length > 0);
|
|
2596
2596
|
if (a.length > 0) return a;
|
|
2597
2597
|
}
|
|
2598
2598
|
} catch {
|
|
@@ -2610,14 +2610,14 @@ var nl = class {
|
|
|
2610
2610
|
text: t,
|
|
2611
2611
|
offset: 0
|
|
2612
2612
|
}];
|
|
2613
|
-
},
|
|
2613
|
+
}, cl = class {
|
|
2614
2614
|
constructor() {
|
|
2615
|
-
|
|
2615
|
+
y(this, "providerId", "browser"), y(this, "providerName", "Browser Speech Synthesis"), y(this, "version", "1.0.0");
|
|
2616
2616
|
}
|
|
2617
2617
|
async initialize(t) {
|
|
2618
2618
|
if (typeof window > "u") throw new Error("BrowserTTSProvider requires browser environment");
|
|
2619
2619
|
if (!("speechSynthesis" in window)) throw new Error("Browser does not support Speech Synthesis API");
|
|
2620
|
-
return new
|
|
2620
|
+
return new ul(t);
|
|
2621
2621
|
}
|
|
2622
2622
|
supportsFeature(t) {
|
|
2623
2623
|
return !0;
|
|
@@ -2634,9 +2634,9 @@ var nl = class {
|
|
|
2634
2634
|
}
|
|
2635
2635
|
destroy() {
|
|
2636
2636
|
}
|
|
2637
|
-
},
|
|
2637
|
+
}, ul = class {
|
|
2638
2638
|
constructor(t) {
|
|
2639
|
-
|
|
2639
|
+
y(this, "utterance", null), y(this, "config", null), y(this, "_isPlaying", !1), y(this, "_isPaused", !1), y(this, "speakRunId", 0), y(this, "onWordBoundary", void 0), this.config = t;
|
|
2640
2640
|
}
|
|
2641
2641
|
async speak(t) {
|
|
2642
2642
|
if (!this.config) throw new Error("TTS not initialized");
|
|
@@ -2674,8 +2674,8 @@ var nl = class {
|
|
|
2674
2674
|
n = s, i = a;
|
|
2675
2675
|
continue;
|
|
2676
2676
|
}
|
|
2677
|
-
const
|
|
2678
|
-
|
|
2677
|
+
const c = `${n} ${s}`;
|
|
2678
|
+
c.length <= 260 ? n = c : (o.push({
|
|
2679
2679
|
text: n,
|
|
2680
2680
|
offset: i
|
|
2681
2681
|
}), n = s, i = a);
|
|
@@ -2701,7 +2701,7 @@ var nl = class {
|
|
|
2701
2701
|
}
|
|
2702
2702
|
segmentSentences(t) {
|
|
2703
2703
|
const e = this.getSegmentationPolicy();
|
|
2704
|
-
return
|
|
2704
|
+
return al(t, {
|
|
2705
2705
|
locale: e.locale,
|
|
2706
2706
|
useSentenceSegmenter: e.useSentenceSegmenter
|
|
2707
2707
|
});
|
|
@@ -2744,8 +2744,8 @@ var nl = class {
|
|
|
2744
2744
|
o === this.speakRunId && (this._isPaused = !1);
|
|
2745
2745
|
}, this.utterance.onboundary = (r) => {
|
|
2746
2746
|
if (o !== this.speakRunId || (console.log("[BrowserProvider] Boundary event:", r.name, "charIndex:", r.charIndex, "charLength:", r.charLength), r.name !== "word" || !this.onWordBoundary) || this.getHighlightMode() === "sentence") return;
|
|
2747
|
-
const s = Math.max(0, Math.min(r.charIndex, Math.max(0, t.length - 1))), l = Number(r.charLength || 0), a = this.inferWordLength(t, s),
|
|
2748
|
-
console.log("[BrowserProvider] Calling onWordBoundary with word:", d, "at position:",
|
|
2747
|
+
const s = Math.max(0, Math.min(r.charIndex, Math.max(0, t.length - 1))), l = Number(r.charLength || 0), a = this.inferWordLength(t, s), c = Number.isFinite(l) && l > 0 && l <= 80 && s + l <= t.length ? l : a, d = t.substring(s, Math.min(t.length, s + c)).trim(), f = e + s;
|
|
2748
|
+
console.log("[BrowserProvider] Calling onWordBoundary with word:", d, "at position:", f), this.onWordBoundary(d, f, c);
|
|
2749
2749
|
}, speechSynthesis.speak(this.utterance);
|
|
2750
2750
|
});
|
|
2751
2751
|
}
|
|
@@ -2770,7 +2770,7 @@ var nl = class {
|
|
|
2770
2770
|
...t.providerOptions || {}
|
|
2771
2771
|
});
|
|
2772
2772
|
}
|
|
2773
|
-
},
|
|
2773
|
+
}, dl = class {
|
|
2774
2774
|
async emitTelemetry(t, e) {
|
|
2775
2775
|
try {
|
|
2776
2776
|
await this.config?.onTelemetry?.(t, e);
|
|
@@ -2779,7 +2779,7 @@ var nl = class {
|
|
|
2779
2779
|
}
|
|
2780
2780
|
}
|
|
2781
2781
|
constructor(t = "browser") {
|
|
2782
|
-
|
|
2782
|
+
y(this, "providerId", "tts-service"), y(this, "providerName", "Text-to-Speech"), y(this, "category", "tts"), y(this, "version", "1.0"), y(this, "requiresAuth", void 0), y(this, "ttsProvider", null), y(this, "config", null), this.requiresAuth = t !== "browser";
|
|
2783
2783
|
}
|
|
2784
2784
|
async initialize(t) {
|
|
2785
2785
|
if (this.ttsProvider) {
|
|
@@ -2802,7 +2802,7 @@ var nl = class {
|
|
|
2802
2802
|
}
|
|
2803
2803
|
async _initializeBrowserTTS(t) {
|
|
2804
2804
|
if (typeof window > "u" || !("speechSynthesis" in window)) throw new Error("[TTSToolProvider] Browser TTS not supported (Web Speech API not available)");
|
|
2805
|
-
this.ttsProvider = new
|
|
2805
|
+
this.ttsProvider = new cl(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
|
|
2806
2806
|
}
|
|
2807
2807
|
async _initializeServerTTS(t) {
|
|
2808
2808
|
if (!t.apiEndpoint) throw new Error("[TTSToolProvider] apiEndpoint required for server-based TTS backends");
|
|
@@ -2858,7 +2858,7 @@ var nl = class {
|
|
|
2858
2858
|
destroy() {
|
|
2859
2859
|
this.ttsProvider && (this.ttsProvider.destroy(), this.ttsProvider = null), this.config = null, console.log("[TTSToolProvider] Destroyed");
|
|
2860
2860
|
}
|
|
2861
|
-
},
|
|
2861
|
+
}, hl = /* @__PURE__ */ new Set([
|
|
2862
2862
|
"annotation-xml",
|
|
2863
2863
|
"color-profile",
|
|
2864
2864
|
"font-face",
|
|
@@ -2867,16 +2867,16 @@ var nl = class {
|
|
|
2867
2867
|
"font-face-format",
|
|
2868
2868
|
"font-face-name",
|
|
2869
2869
|
"missing-glyph"
|
|
2870
|
-
]),
|
|
2870
|
+
]), fl = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, pl = (t, e = "custom element tag") => {
|
|
2871
2871
|
if (!t || typeof t != "string") throw new Error(`Invalid ${e}: expected a non-empty string`);
|
|
2872
2872
|
const o = t.trim();
|
|
2873
2873
|
if (!o) throw new Error(`Invalid ${e}: tag is empty`);
|
|
2874
2874
|
if (o !== o.toLowerCase()) throw new Error(`Invalid ${e} "${o}": custom element names must be lowercase`);
|
|
2875
2875
|
if (!o.includes("-")) throw new Error(`Invalid ${e} "${o}": custom element names must include a hyphen`);
|
|
2876
|
-
if (
|
|
2877
|
-
if (!
|
|
2876
|
+
if (hl.has(o)) throw new Error(`Invalid ${e} "${o}": this name is reserved by the HTML spec`);
|
|
2877
|
+
if (!fl.test(o)) throw new Error(`Invalid ${e} "${o}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
|
|
2878
2878
|
return o;
|
|
2879
|
-
},
|
|
2879
|
+
}, nr = {
|
|
2880
2880
|
calculator: "pie-tool-calculator",
|
|
2881
2881
|
textToSpeech: "pie-tool-text-to-speech",
|
|
2882
2882
|
ruler: "pie-tool-ruler",
|
|
@@ -2889,22 +2889,22 @@ var nl = class {
|
|
|
2889
2889
|
annotationToolbar: "pie-tool-annotation-toolbar",
|
|
2890
2890
|
graph: "pie-tool-graph",
|
|
2891
2891
|
periodicTable: "pie-tool-periodic-table"
|
|
2892
|
-
},
|
|
2893
|
-
const i =
|
|
2892
|
+
}, vl = (t, e) => pl(e?.toolTagMap?.[t] ?? nr[t] ?? t, `tool component tag for "${t}"`), gl = (t) => document.createElement(t), gt = (t, e, o, n) => {
|
|
2893
|
+
const i = vl(t, n), r = n?.toolComponentFactories?.[t] ?? n?.toolComponentFactory;
|
|
2894
2894
|
return r ? r({
|
|
2895
2895
|
toolId: t,
|
|
2896
2896
|
tagName: i,
|
|
2897
2897
|
context: e,
|
|
2898
2898
|
toolbarContext: o
|
|
2899
|
-
}) :
|
|
2900
|
-
},
|
|
2899
|
+
}) : gl(i);
|
|
2900
|
+
}, ml = {
|
|
2901
2901
|
toolId: "calculator",
|
|
2902
2902
|
name: "Calculator",
|
|
2903
2903
|
description: "Multi-type calculator (basic, scientific, graphing)",
|
|
2904
2904
|
icon: "calculator",
|
|
2905
2905
|
provider: {
|
|
2906
2906
|
getProviderId: (t) => typeof t?.provider?.id == "string" && t.provider.id.length > 0 ? t.provider.id : "calculator-desmos",
|
|
2907
|
-
createProvider: () => new
|
|
2907
|
+
createProvider: () => new ll(),
|
|
2908
2908
|
getInitConfig: (t) => t?.provider?.init ?? {},
|
|
2909
2909
|
getAuthFetcher: (t) => {
|
|
2910
2910
|
const e = t?.provider?.runtime?.authFetcher;
|
|
@@ -2930,7 +2930,7 @@ var nl = class {
|
|
|
2930
2930
|
return no(t);
|
|
2931
2931
|
},
|
|
2932
2932
|
renderToolbar(t, e) {
|
|
2933
|
-
const o =
|
|
2933
|
+
const o = fn(this.toolId, e.scope.level, e.scope.scopeId), n = e.componentOverrides, i = gt(this.toolId, t, e, n);
|
|
2934
2934
|
i.setAttribute("tool-id", o), i.toolkitCoordinator = e.toolkitCoordinator;
|
|
2935
2935
|
const r = {
|
|
2936
2936
|
toolId: this.toolId,
|
|
@@ -2970,37 +2970,55 @@ var nl = class {
|
|
|
2970
2970
|
}
|
|
2971
2971
|
};
|
|
2972
2972
|
}
|
|
2973
|
-
},
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2973
|
+
}, bl = /* @__PURE__ */ new Set([
|
|
2974
|
+
"reserved-row",
|
|
2975
|
+
"expanding-row",
|
|
2976
|
+
"floating-overlay",
|
|
2977
|
+
"left-aligned"
|
|
2978
|
+
]), Un = (t) => t && typeof t == "object" ? t : {}, yl = (t) => t === "polly" || t === "google" || t === "server", X = (t, e) => t === void 0 ? e : t, po = (t, e = "left-aligned") => typeof t == "string" && bl.has(t) ? t : e, Kn = Object.freeze([0.8, 1.25]), Po = (t) => {
|
|
2979
|
+
if (!Array.isArray(t)) return [...Kn];
|
|
2980
|
+
if (t.length === 0) return [];
|
|
2981
|
+
const e = /* @__PURE__ */ new Set();
|
|
2982
|
+
for (const o of t) {
|
|
2983
|
+
if (typeof o != "number" || !Number.isFinite(o) || o <= 0) continue;
|
|
2984
|
+
const n = Math.round(o * 100) / 100;
|
|
2985
|
+
n !== 1 && e.add(n);
|
|
2986
|
+
}
|
|
2987
|
+
return e.size ? Array.from(e) : [...Kn];
|
|
2988
|
+
}, wl = (t) => {
|
|
2989
|
+
const e = {
|
|
2977
2990
|
...t,
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2991
|
+
layoutMode: po(t.layoutMode)
|
|
2992
|
+
}, o = t.backend || "browser";
|
|
2993
|
+
if (!yl(o)) return e;
|
|
2994
|
+
const n = {
|
|
2995
|
+
...e,
|
|
2996
|
+
apiEndpoint: X(e.apiEndpoint, "/api/tts"),
|
|
2997
|
+
transportMode: X(e.transportMode, "pie"),
|
|
2998
|
+
endpointValidationMode: X(e.endpointValidationMode, "voices"),
|
|
2999
|
+
validateEndpoint: X(e.validateEndpoint, !0),
|
|
3000
|
+
includeAuthOnAssetFetch: X(e.includeAuthOnAssetFetch, !1),
|
|
3001
|
+
rate: X(e.rate, 1),
|
|
3002
|
+
language: X(e.language, "en-US")
|
|
2985
3003
|
};
|
|
2986
|
-
return
|
|
2987
|
-
...
|
|
2988
|
-
defaultVoice:
|
|
2989
|
-
engine:
|
|
2990
|
-
format:
|
|
2991
|
-
speechMarksMode:
|
|
2992
|
-
} :
|
|
2993
|
-
...
|
|
2994
|
-
defaultVoice:
|
|
2995
|
-
} :
|
|
2996
|
-
},
|
|
2997
|
-
const e =
|
|
2998
|
-
return
|
|
3004
|
+
return o === "polly" ? {
|
|
3005
|
+
...n,
|
|
3006
|
+
defaultVoice: X(n.defaultVoice, "Joanna"),
|
|
3007
|
+
engine: X(n.engine, "neural"),
|
|
3008
|
+
format: X(n.format, "mp3"),
|
|
3009
|
+
speechMarksMode: X(n.speechMarksMode, "word+sentence")
|
|
3010
|
+
} : o === "google" ? {
|
|
3011
|
+
...n,
|
|
3012
|
+
defaultVoice: X(n.defaultVoice, "en-US-Wavenet-A")
|
|
3013
|
+
} : n;
|
|
3014
|
+
}, Ro = (t) => {
|
|
3015
|
+
const e = Un(t), o = Un(t?.settings);
|
|
3016
|
+
return wl({
|
|
2999
3017
|
...e,
|
|
3000
3018
|
...o
|
|
3001
3019
|
});
|
|
3002
|
-
},
|
|
3003
|
-
const e =
|
|
3020
|
+
}, Go = (t) => t.backend || "browser", ir = (t, e) => e === "polly" || e === "google" ? e : t.serverProvider || t.provider, rr = (t, e) => t.transportMode || (e === "custom" ? "custom" : "pie"), Tl = (t) => {
|
|
3021
|
+
const e = Go(t), o = ir(t, e), n = rr(t, o);
|
|
3004
3022
|
return {
|
|
3005
3023
|
voice: t.defaultVoice,
|
|
3006
3024
|
rate: t.rate,
|
|
@@ -3024,37 +3042,60 @@ var nl = class {
|
|
|
3024
3042
|
includeAuthOnAssetFetch: t.includeAuthOnAssetFetch,
|
|
3025
3043
|
validateEndpoint: t.validateEndpoint
|
|
3026
3044
|
};
|
|
3027
|
-
},
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3045
|
+
}, sr = (t) => po(t.layoutMode), Il = (t) => {
|
|
3046
|
+
switch (sr(t)) {
|
|
3047
|
+
case "reserved-row":
|
|
3048
|
+
return {
|
|
3049
|
+
mount: "before-buttons",
|
|
3050
|
+
controlsRow: {
|
|
3051
|
+
reserveSpace: !0,
|
|
3052
|
+
expandWhenToolActive: !1
|
|
3053
|
+
}
|
|
3054
|
+
};
|
|
3055
|
+
case "expanding-row":
|
|
3056
|
+
return {
|
|
3057
|
+
mount: "before-buttons",
|
|
3058
|
+
controlsRow: {
|
|
3059
|
+
reserveSpace: !1,
|
|
3060
|
+
expandWhenToolActive: !0
|
|
3061
|
+
}
|
|
3062
|
+
};
|
|
3063
|
+
default:
|
|
3064
|
+
return {
|
|
3065
|
+
mount: "before-buttons",
|
|
3066
|
+
controlsRow: {
|
|
3067
|
+
reserveSpace: !1,
|
|
3068
|
+
expandWhenToolActive: !1
|
|
3069
|
+
}
|
|
3070
|
+
};
|
|
3035
3071
|
}
|
|
3036
|
-
|
|
3037
|
-
}, yl = {
|
|
3072
|
+
}, Ae = /* @__PURE__ */ new Map(), Sl = "__pieToolElementUnmount", Jn = "pie-tool-active-change", $l = {
|
|
3038
3073
|
toolId: "textToSpeech",
|
|
3039
3074
|
name: "Text to Speech",
|
|
3040
3075
|
description: "Read content aloud",
|
|
3041
3076
|
icon: "volume-up",
|
|
3042
3077
|
provider: {
|
|
3043
3078
|
getProviderId: () => "tts",
|
|
3044
|
-
createProvider: (t) => new
|
|
3079
|
+
createProvider: (t) => new dl(Go(Ro(t))),
|
|
3045
3080
|
getInitConfig: (t) => {
|
|
3046
|
-
const e =
|
|
3081
|
+
const e = Ro(t), o = Go(e), n = ir(e, o);
|
|
3047
3082
|
return {
|
|
3048
3083
|
backend: o,
|
|
3049
3084
|
serverProvider: n,
|
|
3050
|
-
transportMode:
|
|
3051
|
-
...
|
|
3085
|
+
transportMode: rr(e, n),
|
|
3086
|
+
...Tl(e)
|
|
3052
3087
|
};
|
|
3053
3088
|
},
|
|
3054
3089
|
getAuthFetcher: (t) => {
|
|
3055
3090
|
const e = t?.provider?.runtime?.authFetcher;
|
|
3056
3091
|
return typeof e == "function" ? e : void 0;
|
|
3057
3092
|
},
|
|
3093
|
+
sanitizeConfig: (t) => {
|
|
3094
|
+
const e = t.settings && typeof t.settings == "object" ? { ...t.settings } : void 0;
|
|
3095
|
+
e && "layoutMode" in e && (e.layoutMode = po(e.layoutMode)), e && "speedOptions" in e && (e.speedOptions = Po(e.speedOptions));
|
|
3096
|
+
const o = { ...t };
|
|
3097
|
+
return "layoutMode" in o && (o.layoutMode = po(o.layoutMode)), "speedOptions" in o && (o.speedOptions = Po(o.speedOptions)), e && (o.settings = e), o;
|
|
3098
|
+
},
|
|
3058
3099
|
lazy: !0
|
|
3059
3100
|
},
|
|
3060
3101
|
supportedLevels: [
|
|
@@ -3073,31 +3114,44 @@ var nl = class {
|
|
|
3073
3114
|
return io(t);
|
|
3074
3115
|
},
|
|
3075
3116
|
renderToolbar(t, e) {
|
|
3076
|
-
const o = () =>
|
|
3077
|
-
const
|
|
3078
|
-
return
|
|
3079
|
-
},
|
|
3080
|
-
let
|
|
3081
|
-
return
|
|
3082
|
-
|
|
3083
|
-
},
|
|
3084
|
-
};
|
|
3117
|
+
const o = () => Ro(e.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), n = () => Po(o().speedOptions), i = () => sr(o()), r = () => Il(o()), s = fn(this.toolId, e.scope.level, e.scope.scopeId), l = () => {
|
|
3118
|
+
const d = e.ui?.size;
|
|
3119
|
+
return d === "sm" || d === "lg" ? d : "md";
|
|
3120
|
+
}, a = () => {
|
|
3121
|
+
let d = Ae.get(s);
|
|
3122
|
+
return d && typeof d.isConnected == "boolean" && !d.isConnected && (Ae.delete(s), d = void 0), d || (d = document.createElement("pie-tool-tts-inline"), d[Sl] = () => {
|
|
3123
|
+
Ae.get(s) === d && Ae.delete(s);
|
|
3124
|
+
}, Ae.set(s, d)), d.setAttribute("tool-id", s), d.setAttribute("catalog-id", e.catalogId || e.itemId), d.setAttribute("language", e.language || "en-US"), d.setAttribute("size", l()), d.setAttribute("layout-mode", i()), d.speedOptions = n(), d;
|
|
3125
|
+
}, c = r();
|
|
3085
3126
|
return {
|
|
3086
3127
|
toolId: this.toolId,
|
|
3087
3128
|
button: null,
|
|
3088
3129
|
elements: [{
|
|
3089
|
-
element:
|
|
3090
|
-
mount:
|
|
3130
|
+
element: a(),
|
|
3131
|
+
mount: c.mount,
|
|
3132
|
+
layoutHints: { controlsRow: {
|
|
3133
|
+
reserveSpace: c.controlsRow.reserveSpace,
|
|
3134
|
+
showWhenToolActive: c.controlsRow.expandWhenToolActive
|
|
3135
|
+
} }
|
|
3091
3136
|
}],
|
|
3137
|
+
subscribeActive: (d) => {
|
|
3138
|
+
const f = a(), h = (v) => {
|
|
3139
|
+
const m = v.detail;
|
|
3140
|
+
d(m?.active === !0);
|
|
3141
|
+
};
|
|
3142
|
+
return f.addEventListener(Jn, h), () => {
|
|
3143
|
+
f.removeEventListener(Jn, h);
|
|
3144
|
+
};
|
|
3145
|
+
},
|
|
3092
3146
|
sync: () => {
|
|
3093
|
-
const
|
|
3094
|
-
|
|
3147
|
+
const d = a();
|
|
3148
|
+
d.setAttribute("tool-id", s), d.setAttribute("catalog-id", e.catalogId || e.itemId), d.setAttribute("language", e.language || "en-US"), d.setAttribute("size", l()), d.setAttribute("layout-mode", i()), d.speedOptions = n();
|
|
3095
3149
|
}
|
|
3096
3150
|
};
|
|
3097
3151
|
}
|
|
3098
3152
|
};
|
|
3099
|
-
function
|
|
3100
|
-
const o =
|
|
3153
|
+
function kt(t, e) {
|
|
3154
|
+
const o = fn(t, e.scope.level, e.scope.scopeId);
|
|
3101
3155
|
return {
|
|
3102
3156
|
fullToolId: o,
|
|
3103
3157
|
isActive: () => e.isToolVisible(o),
|
|
@@ -3107,28 +3161,32 @@ function St(t, e) {
|
|
|
3107
3161
|
}
|
|
3108
3162
|
};
|
|
3109
3163
|
}
|
|
3110
|
-
function
|
|
3164
|
+
function At(t) {
|
|
3111
3165
|
const e = t.isActive();
|
|
3112
3166
|
t.button.active = e, t.overlay.visible = e, t.onActiveChange?.(e);
|
|
3113
3167
|
}
|
|
3114
|
-
function
|
|
3168
|
+
function No(t, e) {
|
|
3115
3169
|
t.setAttribute("data-pie-tool-surface", e);
|
|
3116
3170
|
}
|
|
3117
|
-
var
|
|
3118
|
-
|
|
3119
|
-
|
|
3171
|
+
var kl = [
|
|
3172
|
+
ml,
|
|
3173
|
+
$l,
|
|
3120
3174
|
{
|
|
3121
3175
|
toolId: "ruler",
|
|
3122
3176
|
name: "Ruler",
|
|
3123
3177
|
description: "On-screen ruler for measurements",
|
|
3124
3178
|
icon: "ruler",
|
|
3125
|
-
supportedLevels: [
|
|
3179
|
+
supportedLevels: [
|
|
3180
|
+
"section",
|
|
3181
|
+
"item",
|
|
3182
|
+
"element"
|
|
3183
|
+
],
|
|
3126
3184
|
pnpSupportIds: ["ruler", "measurement"],
|
|
3127
3185
|
isVisibleInContext(t) {
|
|
3128
3186
|
return no(t);
|
|
3129
3187
|
},
|
|
3130
3188
|
renderToolbar(t, e) {
|
|
3131
|
-
const o =
|
|
3189
|
+
const o = kt(this.toolId, e), n = {
|
|
3132
3190
|
toolId: this.toolId,
|
|
3133
3191
|
label: this.name,
|
|
3134
3192
|
icon: typeof this.icon == "function" ? this.icon(t) : this.icon,
|
|
@@ -3138,7 +3196,7 @@ var wl = [
|
|
|
3138
3196
|
onClick: () => e.toggleTool(this.toolId),
|
|
3139
3197
|
active: o.isActive()
|
|
3140
3198
|
}, i = e.componentOverrides ?? {}, r = gt(this.toolId, t, e, i);
|
|
3141
|
-
return r.setAttribute("tool-id", o.fullToolId),
|
|
3199
|
+
return r.setAttribute("tool-id", o.fullToolId), No(r, "frameless"), {
|
|
3142
3200
|
toolId: this.toolId,
|
|
3143
3201
|
button: n,
|
|
3144
3202
|
elements: [{
|
|
@@ -3146,7 +3204,7 @@ var wl = [
|
|
|
3146
3204
|
mount: "after-buttons"
|
|
3147
3205
|
}],
|
|
3148
3206
|
sync: () => {
|
|
3149
|
-
|
|
3207
|
+
At({
|
|
3150
3208
|
button: n,
|
|
3151
3209
|
overlay: r,
|
|
3152
3210
|
isActive: o.isActive
|
|
@@ -3161,13 +3219,17 @@ var wl = [
|
|
|
3161
3219
|
name: "Protractor",
|
|
3162
3220
|
description: "On-screen protractor for angle measurements",
|
|
3163
3221
|
icon: "protractor",
|
|
3164
|
-
supportedLevels: [
|
|
3222
|
+
supportedLevels: [
|
|
3223
|
+
"section",
|
|
3224
|
+
"item",
|
|
3225
|
+
"element"
|
|
3226
|
+
],
|
|
3165
3227
|
pnpSupportIds: ["protractor", "angleMeasurement"],
|
|
3166
3228
|
isVisibleInContext(t) {
|
|
3167
3229
|
return no(t);
|
|
3168
3230
|
},
|
|
3169
3231
|
renderToolbar(t, e) {
|
|
3170
|
-
const o =
|
|
3232
|
+
const o = kt(this.toolId, e), n = {
|
|
3171
3233
|
toolId: this.toolId,
|
|
3172
3234
|
label: this.name,
|
|
3173
3235
|
icon: typeof this.icon == "function" ? this.icon(t) : this.icon,
|
|
@@ -3177,7 +3239,7 @@ var wl = [
|
|
|
3177
3239
|
onClick: () => e.toggleTool(this.toolId),
|
|
3178
3240
|
active: o.isActive()
|
|
3179
3241
|
}, i = e.componentOverrides ?? {}, r = gt(this.toolId, t, e, i);
|
|
3180
|
-
return r.setAttribute("tool-id", o.fullToolId),
|
|
3242
|
+
return r.setAttribute("tool-id", o.fullToolId), No(r, "frameless"), {
|
|
3181
3243
|
toolId: this.toolId,
|
|
3182
3244
|
button: n,
|
|
3183
3245
|
elements: [{
|
|
@@ -3185,7 +3247,7 @@ var wl = [
|
|
|
3185
3247
|
mount: "after-buttons"
|
|
3186
3248
|
}],
|
|
3187
3249
|
sync: () => {
|
|
3188
|
-
|
|
3250
|
+
At({
|
|
3189
3251
|
button: n,
|
|
3190
3252
|
overlay: r,
|
|
3191
3253
|
isActive: o.isActive
|
|
@@ -3208,10 +3270,10 @@ var wl = [
|
|
|
3208
3270
|
"choiceMasking"
|
|
3209
3271
|
],
|
|
3210
3272
|
isVisibleInContext(t) {
|
|
3211
|
-
return
|
|
3273
|
+
return nl(t);
|
|
3212
3274
|
},
|
|
3213
3275
|
renderToolbar(t, e) {
|
|
3214
|
-
const o =
|
|
3276
|
+
const o = kt(this.toolId, e), n = e.componentOverrides ?? {}, i = gt(this.toolId, t, e, n);
|
|
3215
3277
|
i.setAttribute("tool-id", o.fullToolId), i.setAttribute("strategy", "strikethrough"), i.setAttribute("button-alignment", "inline");
|
|
3216
3278
|
const r = {
|
|
3217
3279
|
toolId: this.toolId,
|
|
@@ -3231,7 +3293,7 @@ var wl = [
|
|
|
3231
3293
|
mount: "after-buttons"
|
|
3232
3294
|
}],
|
|
3233
3295
|
sync: () => {
|
|
3234
|
-
|
|
3296
|
+
At({
|
|
3235
3297
|
button: r,
|
|
3236
3298
|
overlay: i,
|
|
3237
3299
|
isActive: o.isActive
|
|
@@ -3264,7 +3326,7 @@ var wl = [
|
|
|
3264
3326
|
return io(t);
|
|
3265
3327
|
},
|
|
3266
3328
|
renderToolbar(t, e) {
|
|
3267
|
-
const o =
|
|
3329
|
+
const o = kt(this.toolId, e), n = {
|
|
3268
3330
|
toolId: this.toolId,
|
|
3269
3331
|
label: this.name,
|
|
3270
3332
|
icon: typeof this.icon == "function" ? this.icon(t) : this.icon,
|
|
@@ -3282,7 +3344,7 @@ var wl = [
|
|
|
3282
3344
|
mount: "after-buttons"
|
|
3283
3345
|
}],
|
|
3284
3346
|
sync: () => {
|
|
3285
|
-
|
|
3347
|
+
At({
|
|
3286
3348
|
button: n,
|
|
3287
3349
|
overlay: r,
|
|
3288
3350
|
isActive: o.isActive,
|
|
@@ -3301,6 +3363,7 @@ var wl = [
|
|
|
3301
3363
|
description: "Reading guide overlay",
|
|
3302
3364
|
icon: "bars-3",
|
|
3303
3365
|
supportedLevels: [
|
|
3366
|
+
"section",
|
|
3304
3367
|
"passage",
|
|
3305
3368
|
"rubric",
|
|
3306
3369
|
"item"
|
|
@@ -3316,7 +3379,7 @@ var wl = [
|
|
|
3316
3379
|
return io(t);
|
|
3317
3380
|
},
|
|
3318
3381
|
renderToolbar(t, e) {
|
|
3319
|
-
const o =
|
|
3382
|
+
const o = kt(this.toolId, e), n = {
|
|
3320
3383
|
toolId: this.toolId,
|
|
3321
3384
|
label: this.name,
|
|
3322
3385
|
icon: typeof this.icon == "function" ? this.icon(t) : this.icon,
|
|
@@ -3326,7 +3389,7 @@ var wl = [
|
|
|
3326
3389
|
onClick: () => e.toggleTool(this.toolId),
|
|
3327
3390
|
active: o.isActive()
|
|
3328
3391
|
}, i = e.componentOverrides ?? {}, r = gt(this.toolId, t, e, i);
|
|
3329
|
-
return r.setAttribute("tool-id", o.fullToolId),
|
|
3392
|
+
return r.setAttribute("tool-id", o.fullToolId), No(r, "frameless"), {
|
|
3330
3393
|
toolId: this.toolId,
|
|
3331
3394
|
button: n,
|
|
3332
3395
|
elements: [{
|
|
@@ -3334,7 +3397,7 @@ var wl = [
|
|
|
3334
3397
|
mount: "after-buttons"
|
|
3335
3398
|
}],
|
|
3336
3399
|
sync: () => {
|
|
3337
|
-
|
|
3400
|
+
At({
|
|
3338
3401
|
button: n,
|
|
3339
3402
|
overlay: r,
|
|
3340
3403
|
isActive: o.isActive
|
|
@@ -3363,7 +3426,7 @@ var wl = [
|
|
|
3363
3426
|
return !0;
|
|
3364
3427
|
},
|
|
3365
3428
|
renderToolbar(t, e) {
|
|
3366
|
-
const o =
|
|
3429
|
+
const o = kt(this.toolId, e), n = {
|
|
3367
3430
|
toolId: this.toolId,
|
|
3368
3431
|
label: this.name,
|
|
3369
3432
|
icon: typeof this.icon == "function" ? this.icon(t) : this.icon,
|
|
@@ -3391,7 +3454,7 @@ var wl = [
|
|
|
3391
3454
|
}
|
|
3392
3455
|
}],
|
|
3393
3456
|
sync: () => {
|
|
3394
|
-
|
|
3457
|
+
At({
|
|
3395
3458
|
button: n,
|
|
3396
3459
|
overlay: r,
|
|
3397
3460
|
isActive: o.isActive
|
|
@@ -3425,7 +3488,7 @@ var wl = [
|
|
|
3425
3488
|
return io(t);
|
|
3426
3489
|
},
|
|
3427
3490
|
renderToolbar(t, e) {
|
|
3428
|
-
const o =
|
|
3491
|
+
const o = kt(this.toolId, e), n = {
|
|
3429
3492
|
toolId: this.toolId,
|
|
3430
3493
|
label: this.name,
|
|
3431
3494
|
icon: typeof this.icon == "function" ? this.icon(t) : this.icon,
|
|
@@ -3443,7 +3506,7 @@ var wl = [
|
|
|
3443
3506
|
mount: "after-buttons"
|
|
3444
3507
|
}],
|
|
3445
3508
|
sync: () => {
|
|
3446
|
-
|
|
3509
|
+
At({
|
|
3447
3510
|
button: n,
|
|
3448
3511
|
overlay: r,
|
|
3449
3512
|
isActive: o.isActive
|
|
@@ -3469,7 +3532,7 @@ var wl = [
|
|
|
3469
3532
|
return no(t);
|
|
3470
3533
|
},
|
|
3471
3534
|
renderToolbar(t, e) {
|
|
3472
|
-
const o =
|
|
3535
|
+
const o = kt(this.toolId, e), n = {
|
|
3473
3536
|
toolId: this.toolId,
|
|
3474
3537
|
label: this.name,
|
|
3475
3538
|
icon: typeof this.icon == "function" ? this.icon(t) : this.icon,
|
|
@@ -3497,7 +3560,7 @@ var wl = [
|
|
|
3497
3560
|
}
|
|
3498
3561
|
}],
|
|
3499
3562
|
sync: () => {
|
|
3500
|
-
|
|
3563
|
+
At({
|
|
3501
3564
|
button: n,
|
|
3502
3565
|
overlay: r,
|
|
3503
3566
|
isActive: o.isActive
|
|
@@ -3519,10 +3582,10 @@ var wl = [
|
|
|
3519
3582
|
"elementReference"
|
|
3520
3583
|
],
|
|
3521
3584
|
isVisibleInContext(t) {
|
|
3522
|
-
return
|
|
3585
|
+
return il(t);
|
|
3523
3586
|
},
|
|
3524
3587
|
renderToolbar(t, e) {
|
|
3525
|
-
const o =
|
|
3588
|
+
const o = kt(this.toolId, e), n = {
|
|
3526
3589
|
toolId: this.toolId,
|
|
3527
3590
|
label: this.name,
|
|
3528
3591
|
icon: typeof this.icon == "function" ? this.icon(t) : this.icon,
|
|
@@ -3550,7 +3613,7 @@ var wl = [
|
|
|
3550
3613
|
}
|
|
3551
3614
|
}],
|
|
3552
3615
|
sync: () => {
|
|
3553
|
-
|
|
3616
|
+
At({
|
|
3554
3617
|
button: n,
|
|
3555
3618
|
overlay: r,
|
|
3556
3619
|
isActive: o.isActive
|
|
@@ -3561,36 +3624,36 @@ var wl = [
|
|
|
3561
3624
|
}
|
|
3562
3625
|
}
|
|
3563
3626
|
];
|
|
3564
|
-
function
|
|
3565
|
-
const e = new
|
|
3627
|
+
function Al(t = {}) {
|
|
3628
|
+
const e = new tl(), o = {
|
|
3566
3629
|
toolTagMap: {
|
|
3567
|
-
...
|
|
3630
|
+
...nr,
|
|
3568
3631
|
...t.toolTagMap || {}
|
|
3569
3632
|
},
|
|
3570
3633
|
toolComponentFactory: t.toolComponentFactory,
|
|
3571
3634
|
toolComponentFactories: t.toolComponentFactories
|
|
3572
3635
|
}, n = (i) => t.overrides?.[i.toolId] || i;
|
|
3573
|
-
return t.includePackagedTools &&
|
|
3636
|
+
return t.includePackagedTools && xl(e, {
|
|
3574
3637
|
toolIds: t.toolIds,
|
|
3575
3638
|
applyOverrides: n
|
|
3576
3639
|
}), t.toolModuleLoaders && Object.keys(t.toolModuleLoaders).length > 0 && e.setToolModuleLoaders(t.toolModuleLoaders), e.setComponentOverrides(o), e;
|
|
3577
3640
|
}
|
|
3578
|
-
function
|
|
3641
|
+
function xl(t, e = {}) {
|
|
3579
3642
|
const o = e.toolIds && e.toolIds.length > 0 ? new Set(e.toolIds) : null, n = e.applyOverrides || ((i) => i);
|
|
3580
|
-
for (const i of
|
|
3643
|
+
for (const i of kl) o && !o.has(i.toolId) || t.register(n(i));
|
|
3581
3644
|
}
|
|
3582
|
-
function
|
|
3583
|
-
return
|
|
3645
|
+
function _l(t = {}) {
|
|
3646
|
+
return Al({
|
|
3584
3647
|
...t,
|
|
3585
3648
|
includePackagedTools: !0
|
|
3586
3649
|
});
|
|
3587
3650
|
}
|
|
3588
|
-
function
|
|
3589
|
-
const t =
|
|
3651
|
+
function Cl() {
|
|
3652
|
+
const t = _l(), e = /* @__PURE__ */ new Set();
|
|
3590
3653
|
for (const o of t.getAllTools()) for (const n of o.pnpSupportIds || []) e.add(n);
|
|
3591
3654
|
return [...e].sort();
|
|
3592
3655
|
}
|
|
3593
|
-
[...
|
|
3656
|
+
[...Cl()];
|
|
3594
3657
|
Object.values({
|
|
3595
3658
|
visual: {
|
|
3596
3659
|
magnification: "magnification",
|
|
@@ -3705,16 +3768,16 @@ Object.values({
|
|
|
3705
3768
|
tutorialAvailable: "tutorialAvailable"
|
|
3706
3769
|
}
|
|
3707
3770
|
}).flatMap((t) => Object.values(t));
|
|
3708
|
-
|
|
3709
|
-
var
|
|
3771
|
+
tr("ToolCoordinator");
|
|
3772
|
+
var Zn;
|
|
3710
3773
|
(function(t) {
|
|
3711
3774
|
t[t.BASE = 0] = "BASE", t[t.TOOL = 1e3] = "TOOL", t[t.MODAL = 2e3] = "MODAL", t[t.CONTROL = 3e3] = "CONTROL", t[t.HIGHLIGHT = 4e3] = "HIGHLIGHT";
|
|
3712
|
-
})(
|
|
3713
|
-
var
|
|
3775
|
+
})(Zn || (Zn = {}));
|
|
3776
|
+
var Xn;
|
|
3714
3777
|
(function(t) {
|
|
3715
3778
|
t.IDLE = "idle", t.LOADING = "loading", t.PLAYING = "playing", t.PAUSED = "paused", t.ERROR = "error";
|
|
3716
|
-
})(
|
|
3717
|
-
var
|
|
3779
|
+
})(Xn || (Xn = {}));
|
|
3780
|
+
var El = /* @__PURE__ */ le('<button class="pie-tool-annotation-toolbar__highlight-swatch svelte-g8qu62"><span class="pie-sr-only svelte-g8qu62"> </span></button>'), Ml = /* @__PURE__ */ le('<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), Ll = /* @__PURE__ */ le('<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>'), Ol = /* @__PURE__ */ le('<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>'), Pl = /* @__PURE__ */ le('<div class="divider divider-horizontal mx-0 w-px svelte-g8qu62"></div> <!> <!>', 1), Rl = /* @__PURE__ */ le('<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>'), Nl = /* @__PURE__ */ le('<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), Vl = {
|
|
3718
3781
|
hash: "svelte-g8qu62",
|
|
3719
3782
|
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);}
|
|
3720
3783
|
|
|
@@ -3722,9 +3785,9 @@ var Sl = /* @__PURE__ */ le('<button class="pie-tool-annotation-toolbar__highlig
|
|
|
3722
3785
|
|
|
3723
3786
|
/* 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;}`
|
|
3724
3787
|
};
|
|
3725
|
-
function
|
|
3726
|
-
|
|
3727
|
-
let o =
|
|
3788
|
+
function Wl(t, e) {
|
|
3789
|
+
ri(e, !0), Ps(t, Vl);
|
|
3790
|
+
let o = Lo(e, "enabled", 7, !0), n = Lo(e, "highlightCoordinator", 7, null), i = Lo(e, "ttsService", 7, null);
|
|
3728
3791
|
const r = typeof window < "u", s = "pie-annotations", l = [
|
|
3729
3792
|
{
|
|
3730
3793
|
name: Rt.YELLOW,
|
|
@@ -3757,7 +3820,7 @@ function Ml(t, e) {
|
|
|
3757
3820
|
'[role="button"]',
|
|
3758
3821
|
'[role="textbox"]'
|
|
3759
3822
|
];
|
|
3760
|
-
let
|
|
3823
|
+
let c = /* @__PURE__ */ V(null), d = /* @__PURE__ */ V(null), f = /* @__PURE__ */ V(null), h = /* @__PURE__ */ V(null), v = /* @__PURE__ */ V(Kt({
|
|
3761
3824
|
isVisible: !1,
|
|
3762
3825
|
selectedText: "",
|
|
3763
3826
|
selectedRange: null,
|
|
@@ -3765,26 +3828,26 @@ function Ml(t, e) {
|
|
|
3765
3828
|
x: 0,
|
|
3766
3829
|
y: 0
|
|
3767
3830
|
}
|
|
3768
|
-
})),
|
|
3831
|
+
})), m = /* @__PURE__ */ V(!1), S = /* @__PURE__ */ V(!1), p = /* @__PURE__ */ V(""), w = /* @__PURE__ */ V(0), R = /* @__PURE__ */ V(null), x = /* @__PURE__ */ ko(() => g(w) > 0), P = /* @__PURE__ */ ko(() => g(R) !== null), U = /* @__PURE__ */ ko(() => g(h)?.scopeElement || g(f)?.scopeElement || null);
|
|
3769
3832
|
function H() {
|
|
3770
|
-
const
|
|
3771
|
-
return g(U) ||
|
|
3833
|
+
const b = g(c)?.ownerDocument;
|
|
3834
|
+
return g(U) || b?.documentElement || document.documentElement;
|
|
3772
3835
|
}
|
|
3773
3836
|
function D() {
|
|
3774
|
-
return `${s}:${g(
|
|
3837
|
+
return `${s}:${g(f)?.canonicalItemId || g(f)?.itemId || "global"}`;
|
|
3775
3838
|
}
|
|
3776
|
-
function ft(
|
|
3839
|
+
function ft(b) {
|
|
3777
3840
|
if (!n()) return null;
|
|
3778
3841
|
const I = n().getAnnotations();
|
|
3779
3842
|
for (const C of I) {
|
|
3780
|
-
const it =
|
|
3781
|
-
if (it >= 0 && Dt <= 0 || it <= 0 && Dt >= 0 || we > 0 &&
|
|
3843
|
+
const it = b.compareBoundaryPoints(Range.START_TO_START, C.range), Dt = b.compareBoundaryPoints(Range.END_TO_END, C.range), we = b.compareBoundaryPoints(Range.START_TO_END, C.range), To = b.compareBoundaryPoints(Range.END_TO_START, C.range);
|
|
3844
|
+
if (it >= 0 && Dt <= 0 || it <= 0 && Dt >= 0 || we > 0 && To < 0) return C.id;
|
|
3782
3845
|
}
|
|
3783
3846
|
return null;
|
|
3784
3847
|
}
|
|
3785
|
-
function K(
|
|
3786
|
-
if (
|
|
3787
|
-
const I =
|
|
3848
|
+
function K(b) {
|
|
3849
|
+
if (b.nodeType !== Node.ELEMENT_NODE && b.nodeType !== Node.TEXT_NODE) return !1;
|
|
3850
|
+
const I = b.nodeType === Node.TEXT_NODE ? b.parentElement : b;
|
|
3788
3851
|
return I ? !a.some((C) => {
|
|
3789
3852
|
try {
|
|
3790
3853
|
return I.closest(C) !== null;
|
|
@@ -3793,182 +3856,182 @@ function Ml(t, e) {
|
|
|
3793
3856
|
}
|
|
3794
3857
|
}) : !1;
|
|
3795
3858
|
}
|
|
3796
|
-
function pt(
|
|
3859
|
+
function pt(b) {
|
|
3797
3860
|
if (!g(U)) return !0;
|
|
3798
|
-
const I =
|
|
3861
|
+
const I = b.commonAncestorContainer, C = I.nodeType === Node.TEXT_NODE ? I.parentElement : I;
|
|
3799
3862
|
return !!C && g(U).contains(C);
|
|
3800
3863
|
}
|
|
3801
3864
|
function We() {
|
|
3802
3865
|
if (!(!r || !n())) try {
|
|
3803
|
-
const
|
|
3866
|
+
const b = H(), I = n().exportAnnotations(b);
|
|
3804
3867
|
sessionStorage.setItem(D(), JSON.stringify(I));
|
|
3805
|
-
} catch (
|
|
3806
|
-
console.error("[AnnotationToolbar] Failed to save annotations:",
|
|
3868
|
+
} catch (b) {
|
|
3869
|
+
console.error("[AnnotationToolbar] Failed to save annotations:", b);
|
|
3807
3870
|
}
|
|
3808
3871
|
}
|
|
3809
|
-
function
|
|
3872
|
+
function lr() {
|
|
3810
3873
|
if (!(!r || !n())) try {
|
|
3811
|
-
const
|
|
3812
|
-
if (!
|
|
3813
|
-
const I = JSON.parse(
|
|
3874
|
+
const b = sessionStorage.getItem(D());
|
|
3875
|
+
if (!b) return;
|
|
3876
|
+
const I = JSON.parse(b), C = H(), it = n().importAnnotations(I, C);
|
|
3814
3877
|
console.log(`[AnnotationToolbar] Restored ${it} annotations`), _(w, n().getAnnotations().length, !0);
|
|
3815
|
-
} catch (
|
|
3816
|
-
console.error("[AnnotationToolbar] Failed to load annotations:",
|
|
3878
|
+
} catch (b) {
|
|
3879
|
+
console.error("[AnnotationToolbar] Failed to load annotations:", b);
|
|
3817
3880
|
}
|
|
3818
3881
|
}
|
|
3819
3882
|
function je() {
|
|
3820
3883
|
if (!o() || !r) return;
|
|
3821
|
-
const
|
|
3822
|
-
if (!
|
|
3823
|
-
const I =
|
|
3824
|
-
if (!C || !pt(I) || !K(I.commonAncestorContainer)) return
|
|
3884
|
+
const b = window.getSelection();
|
|
3885
|
+
if (!b || b.rangeCount === 0) return St();
|
|
3886
|
+
const I = b.getRangeAt(0), C = b.toString().trim();
|
|
3887
|
+
if (!C || !pt(I) || !K(I.commonAncestorContainer)) return St();
|
|
3825
3888
|
const it = I.getBoundingClientRect(), Dt = it.left + it.width / 2, we = it.top - 8;
|
|
3826
3889
|
_(R, ft(I), !0), g(v).isVisible = !0, g(v).selectedText = C, g(v).selectedRange = I.cloneRange(), g(v).toolbarPosition = {
|
|
3827
3890
|
x: Dt,
|
|
3828
3891
|
y: we
|
|
3829
|
-
}, _(
|
|
3830
|
-
_(
|
|
3831
|
-
}, 2e3), _(
|
|
3832
|
-
_(
|
|
3892
|
+
}, _(p, `Annotation toolbar opened for "${C.length > 30 ? C.substring(0, 30) + "..." : C}"`), setTimeout(() => {
|
|
3893
|
+
_(p, "");
|
|
3894
|
+
}, 2e3), _(S, !0), setTimeout(() => {
|
|
3895
|
+
_(S, !1);
|
|
3833
3896
|
}, 100);
|
|
3834
3897
|
}
|
|
3835
|
-
function
|
|
3836
|
-
g(
|
|
3898
|
+
function St() {
|
|
3899
|
+
g(m) && i() && (i().stop(), _(m, !1)), g(v).isVisible = !1, g(v).selectedText = "", g(v).selectedRange = null;
|
|
3837
3900
|
}
|
|
3838
|
-
function
|
|
3901
|
+
function pn(b) {
|
|
3839
3902
|
if (!g(v).selectedRange || !n()) return;
|
|
3840
3903
|
const I = g(v).selectedText;
|
|
3841
|
-
n().addAnnotation(g(v).selectedRange,
|
|
3842
|
-
const C =
|
|
3843
|
-
_(
|
|
3844
|
-
_(
|
|
3845
|
-
}, 3e3),
|
|
3904
|
+
n().addAnnotation(g(v).selectedRange, b), _(w, n().getAnnotations().length, !0), We();
|
|
3905
|
+
const C = b === Rt.UNDERLINE ? "underlined" : `highlighted in ${b}`;
|
|
3906
|
+
_(p, `"${I.length > 30 ? I.substring(0, 30) + "..." : I}" ${C}`), setTimeout(() => {
|
|
3907
|
+
_(p, "");
|
|
3908
|
+
}, 3e3), St();
|
|
3846
3909
|
}
|
|
3847
|
-
function
|
|
3910
|
+
function ar() {
|
|
3848
3911
|
if (!g(R) || !n()) {
|
|
3849
3912
|
console.warn("[AnnotationToolbar] No overlapping annotation to remove");
|
|
3850
3913
|
return;
|
|
3851
3914
|
}
|
|
3852
3915
|
console.log("[AnnotationToolbar] Removing annotation:", g(R));
|
|
3853
|
-
const
|
|
3854
|
-
if (!
|
|
3916
|
+
const b = n().getAnnotation(g(R));
|
|
3917
|
+
if (!b) {
|
|
3855
3918
|
console.warn("[AnnotationToolbar] Annotation not found:", g(R));
|
|
3856
3919
|
return;
|
|
3857
3920
|
}
|
|
3858
|
-
const I =
|
|
3921
|
+
const I = b.range.toString();
|
|
3859
3922
|
n().removeAnnotation(g(R));
|
|
3860
3923
|
const C = n().getAnnotations().length;
|
|
3861
|
-
_(w, C, !0), console.log("[AnnotationToolbar] Annotations remaining:", C), We(), _(
|
|
3862
|
-
_(
|
|
3863
|
-
}, 3e3),
|
|
3924
|
+
_(w, C, !0), console.log("[AnnotationToolbar] Annotations remaining:", C), We(), _(p, `Removed annotation from "${I.length > 30 ? I.substring(0, 30) + "..." : I}"`), setTimeout(() => {
|
|
3925
|
+
_(p, "");
|
|
3926
|
+
}, 3e3), St();
|
|
3864
3927
|
}
|
|
3865
|
-
function
|
|
3866
|
-
const
|
|
3867
|
-
n()?.clearAnnotations(), _(w, 0), sessionStorage.removeItem(D()), _(
|
|
3868
|
-
_(
|
|
3869
|
-
}, 3e3),
|
|
3928
|
+
function cr() {
|
|
3929
|
+
const b = g(w);
|
|
3930
|
+
n()?.clearAnnotations(), _(w, 0), sessionStorage.removeItem(D()), _(p, `${b} annotation${b === 1 ? "" : "s"} cleared`), setTimeout(() => {
|
|
3931
|
+
_(p, "");
|
|
3932
|
+
}, 3e3), St();
|
|
3870
3933
|
}
|
|
3871
|
-
async function
|
|
3934
|
+
async function ur() {
|
|
3872
3935
|
if (!(!g(v).selectedRange || !i())) {
|
|
3873
|
-
_(
|
|
3936
|
+
_(m, !0);
|
|
3874
3937
|
try {
|
|
3875
3938
|
console.log("[AnnotationToolbar] Speaking range:", g(v).selectedRange.toString().substring(0, 50)), await i().speakRange(g(v).selectedRange, { contentRoot: H() }), console.log("[AnnotationToolbar] TTS completed successfully");
|
|
3876
|
-
} catch (
|
|
3877
|
-
console.error("[AnnotationToolbar] TTS error:",
|
|
3939
|
+
} catch (b) {
|
|
3940
|
+
console.error("[AnnotationToolbar] TTS error:", b), alert(`TTS failed: ${b instanceof Error ? b.message : String(b)}`);
|
|
3878
3941
|
} finally {
|
|
3879
|
-
_(
|
|
3942
|
+
_(m, !1);
|
|
3880
3943
|
}
|
|
3881
3944
|
}
|
|
3882
3945
|
}
|
|
3883
|
-
function
|
|
3884
|
-
|
|
3946
|
+
function vn(b) {
|
|
3947
|
+
b.key === "Escape" && g(v).isVisible && (b.preventDefault(), St());
|
|
3885
3948
|
}
|
|
3886
|
-
function ze(
|
|
3887
|
-
!g(v).isVisible || g(
|
|
3949
|
+
function ze(b) {
|
|
3950
|
+
!g(v).isVisible || g(S) || g(d) && !g(d).contains(b.target) && St();
|
|
3888
3951
|
}
|
|
3889
|
-
|
|
3952
|
+
Mn(() => {
|
|
3890
3953
|
if (!r) return;
|
|
3891
|
-
const
|
|
3892
|
-
|
|
3954
|
+
const b = setTimeout(() => {
|
|
3955
|
+
lr();
|
|
3893
3956
|
}, 2e3), I = g(U) || document;
|
|
3894
|
-
return I.addEventListener("mouseup", je), I.addEventListener("click", ze), I.addEventListener("touchend", je), I.addEventListener("touchstart", ze), document.addEventListener("keydown",
|
|
3895
|
-
clearTimeout(
|
|
3957
|
+
return I.addEventListener("mouseup", je), I.addEventListener("click", ze), I.addEventListener("touchend", je), I.addEventListener("touchstart", ze), document.addEventListener("keydown", vn), window.addEventListener("scroll", St, !0), () => {
|
|
3958
|
+
clearTimeout(b), I.removeEventListener("mouseup", je), I.removeEventListener("click", ze), I.removeEventListener("touchend", je), I.removeEventListener("touchstart", ze), document.removeEventListener("keydown", vn), window.removeEventListener("scroll", St, !0);
|
|
3896
3959
|
};
|
|
3897
|
-
}),
|
|
3898
|
-
if (!g(
|
|
3899
|
-
const
|
|
3900
|
-
_(
|
|
3901
|
-
}), I =
|
|
3960
|
+
}), Mn(() => {
|
|
3961
|
+
if (!g(c)) return;
|
|
3962
|
+
const b = Zs(g(c), (C) => {
|
|
3963
|
+
_(f, C, !0);
|
|
3964
|
+
}), I = Xs(g(c), (C) => {
|
|
3902
3965
|
_(h, C, !0);
|
|
3903
3966
|
});
|
|
3904
3967
|
return () => {
|
|
3905
|
-
I(),
|
|
3968
|
+
I(), b();
|
|
3906
3969
|
};
|
|
3907
3970
|
});
|
|
3908
|
-
var
|
|
3971
|
+
var dr = {
|
|
3909
3972
|
get enabled() {
|
|
3910
3973
|
return o();
|
|
3911
3974
|
},
|
|
3912
|
-
set enabled(
|
|
3913
|
-
o(
|
|
3975
|
+
set enabled(b = !0) {
|
|
3976
|
+
o(b), Ye();
|
|
3914
3977
|
},
|
|
3915
3978
|
get highlightCoordinator() {
|
|
3916
3979
|
return n();
|
|
3917
3980
|
},
|
|
3918
|
-
set highlightCoordinator(
|
|
3919
|
-
n(
|
|
3981
|
+
set highlightCoordinator(b = null) {
|
|
3982
|
+
n(b), Ye();
|
|
3920
3983
|
},
|
|
3921
3984
|
get ttsService() {
|
|
3922
3985
|
return i();
|
|
3923
3986
|
},
|
|
3924
|
-
set ttsService(
|
|
3925
|
-
i(
|
|
3926
|
-
}
|
|
3927
|
-
},
|
|
3928
|
-
|
|
3929
|
-
var
|
|
3930
|
-
var I =
|
|
3931
|
-
|
|
3932
|
-
var J =
|
|
3987
|
+
set ttsService(b = null) {
|
|
3988
|
+
i(b), Ye();
|
|
3989
|
+
}
|
|
3990
|
+
}, gn = Nl(), mn = Ao(gn);
|
|
3991
|
+
Bn(mn, (b) => _(c, b), () => g(c));
|
|
3992
|
+
var bn = Mt(mn, 2), hr = (b) => {
|
|
3993
|
+
var I = Rl(), C = Ue(I);
|
|
3994
|
+
Ms(C, 17, () => l, Cs, (rt, st) => {
|
|
3995
|
+
var J = El(), He = Ue(J), Io = Ue(He, !0);
|
|
3933
3996
|
De(He), De(J), Ke(() => {
|
|
3934
|
-
|
|
3935
|
-
}), Ie("click", J, () =>
|
|
3997
|
+
jn(J, `background-color: ${g(st).hex ?? ""};`), zn(J, "aria-label", g(st).label), zn(J, "title", g(st).label), Nn(Io, g(st).label);
|
|
3998
|
+
}), Ie("click", J, () => pn(g(st).name)), Pt(rt, J);
|
|
3936
3999
|
});
|
|
3937
|
-
var it =
|
|
3938
|
-
var st =
|
|
3939
|
-
Ke(() => J.disabled = g(
|
|
4000
|
+
var it = Mt(C, 2), Dt = Mt(it, 2), we = (rt) => {
|
|
4001
|
+
var st = Ml(), J = Mt(Ao(st), 2);
|
|
4002
|
+
Ke(() => J.disabled = g(m)), Ie("click", J, ur), Pt(rt, st);
|
|
3940
4003
|
};
|
|
3941
|
-
|
|
4004
|
+
$e(Dt, (rt) => {
|
|
3942
4005
|
i() && rt(we);
|
|
3943
4006
|
});
|
|
3944
|
-
var
|
|
3945
|
-
var st =
|
|
3946
|
-
var Te =
|
|
3947
|
-
Ie("click", Te,
|
|
4007
|
+
var To = Mt(Dt, 2), pr = (rt) => {
|
|
4008
|
+
var st = Pl(), J = Mt(Ao(st), 2), He = (qt) => {
|
|
4009
|
+
var Te = Ll();
|
|
4010
|
+
Ie("click", Te, ar), Pt(qt, Te);
|
|
3948
4011
|
};
|
|
3949
|
-
|
|
3950
|
-
g(
|
|
4012
|
+
$e(J, (qt) => {
|
|
4013
|
+
g(P) && qt(He);
|
|
3951
4014
|
});
|
|
3952
|
-
var
|
|
3953
|
-
var Te =
|
|
3954
|
-
Ie("click", Te,
|
|
4015
|
+
var Io = Mt(J, 2), vr = (qt) => {
|
|
4016
|
+
var Te = Ol();
|
|
4017
|
+
Ie("click", Te, cr), Pt(qt, Te);
|
|
3955
4018
|
};
|
|
3956
|
-
|
|
3957
|
-
g(
|
|
3958
|
-
}),
|
|
4019
|
+
$e(Io, (qt) => {
|
|
4020
|
+
g(x) && qt(vr);
|
|
4021
|
+
}), Pt(rt, st);
|
|
3959
4022
|
};
|
|
3960
|
-
|
|
3961
|
-
(g(
|
|
3962
|
-
}), De(I),
|
|
4023
|
+
$e(To, (rt) => {
|
|
4024
|
+
(g(P) || g(x)) && rt(pr);
|
|
4025
|
+
}), De(I), Bn(I, (rt) => _(d, rt), () => g(d)), Ke(() => jn(I, `left:${g(v).toolbarPosition.x}px; top:${g(v).toolbarPosition.y}px; transform: translate(-50%, -100%);`)), Ie("click", it, () => pn(Rt.UNDERLINE)), Pt(b, I);
|
|
3963
4026
|
};
|
|
3964
|
-
|
|
3965
|
-
g(v).isVisible &&
|
|
4027
|
+
$e(bn, (b) => {
|
|
4028
|
+
g(v).isVisible && b(hr);
|
|
3966
4029
|
});
|
|
3967
|
-
var
|
|
3968
|
-
return De(
|
|
4030
|
+
var yn = Mt(bn, 2), fr = Ue(yn, !0);
|
|
4031
|
+
return De(yn), Ke(() => Nn(fr, g(p))), Pt(t, gn), si(dr);
|
|
3969
4032
|
}
|
|
3970
|
-
|
|
3971
|
-
customElements.define("pie-tool-annotation-toolbar",
|
|
4033
|
+
ws(["click"]);
|
|
4034
|
+
customElements.define("pie-tool-annotation-toolbar", Fs(Wl, {
|
|
3972
4035
|
enabled: {
|
|
3973
4036
|
attribute: "enabled",
|
|
3974
4037
|
type: "Boolean"
|