@pie-players/pie-tool-text-to-speech 0.3.41 → 0.3.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tool-text-to-speech.js +970 -954
- package/package.json +3 -3
|
@@ -4,12 +4,12 @@ if (typeof window < "u") {
|
|
|
4
4
|
((Qi = (eo = window).__svelte ?? (eo.__svelte = {})).v ?? (Qi.v = /* @__PURE__ */ new Set())).add("5");
|
|
5
5
|
}
|
|
6
6
|
var dr = {}, K = /* @__PURE__ */ Symbol();
|
|
7
|
-
var
|
|
7
|
+
var Ea = Array.isArray, ka = Array.prototype.indexOf, pr = Array.prototype.includes, Sa = Array.from, vn = Object.keys, mn = Object.defineProperty, Bt = Object.getOwnPropertyDescriptor, Aa = Object.getOwnPropertyDescriptors, Ia = Object.prototype, xa = Array.prototype, qo = Object.getPrototypeOf, to = Object.isExtensible, La = () => {
|
|
8
8
|
};
|
|
9
|
-
function
|
|
9
|
+
function Oa(e) {
|
|
10
10
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ko() {
|
|
13
13
|
var e, t;
|
|
14
14
|
return {
|
|
15
15
|
promise: new Promise((r, n) => {
|
|
@@ -19,55 +19,55 @@ function Yo() {
|
|
|
19
19
|
reject: t
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
var
|
|
22
|
+
var lf = 1 << 24, Se = 1024, ze = 2048, Kt = 4096, Ei = 8192, Ra = 16384, ki = 32768, ro = 1 << 25, Si = 65536, cf = 1 << 17, uf = 1 << 18, br = 1 << 19, Ma = 1 << 20, jr = 65536, no = 1 << 21, Ca = 1 << 22, _n = 1 << 23, zr = /* @__PURE__ */ Symbol("$state"), Xo = /* @__PURE__ */ Symbol("legacy props"), $a = /* @__PURE__ */ Symbol(""), Pa = /* @__PURE__ */ Symbol("proxy path");
|
|
23
23
|
var at = new class extends Error {
|
|
24
24
|
constructor(...t) {
|
|
25
25
|
super(...t), b(this, "name", "StaleReactionError"), b(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
26
26
|
}
|
|
27
|
-
}(),
|
|
28
|
-
function
|
|
27
|
+
}(), Jo = !!globalThis.document?.contentType && /* @__PURE__ */ globalThis.document.contentType.includes("xml");
|
|
28
|
+
function Da(e) {
|
|
29
29
|
throw new Error("https://svelte.dev/e/lifecycle_outside_component");
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Na() {
|
|
32
32
|
throw new Error("https://svelte.dev/e/async_derived_orphan");
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function za(e) {
|
|
35
35
|
throw new Error("https://svelte.dev/e/effect_in_teardown");
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Ua() {
|
|
38
38
|
throw new Error("https://svelte.dev/e/effect_in_unowned_derived");
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function Fa(e) {
|
|
41
41
|
throw new Error("https://svelte.dev/e/effect_orphan");
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function Ba() {
|
|
44
44
|
throw new Error("https://svelte.dev/e/effect_update_depth_exceeded");
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function Ha() {
|
|
47
47
|
throw new Error("https://svelte.dev/e/hydration_failed");
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function ja(e) {
|
|
50
50
|
throw new Error("https://svelte.dev/e/props_invalid_value");
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function Wa() {
|
|
53
53
|
throw new Error("https://svelte.dev/e/state_descriptors_fixed");
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function Ga() {
|
|
56
56
|
throw new Error("https://svelte.dev/e/state_prototype_fixed");
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function Va() {
|
|
59
59
|
throw new Error("https://svelte.dev/e/state_unsafe_mutation");
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Ya() {
|
|
62
62
|
throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror");
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function qa() {
|
|
65
65
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
66
66
|
}
|
|
67
67
|
function kn(e) {
|
|
68
68
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Ka() {
|
|
71
71
|
console.warn("https://svelte.dev/e/svelte_boundary_reset_noop");
|
|
72
72
|
}
|
|
73
73
|
var z = !1;
|
|
@@ -96,7 +96,7 @@ function ii(e = 1) {
|
|
|
96
96
|
D = r;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function Zo(e = !0) {
|
|
100
100
|
for (var t = 0, r = D; ; ) {
|
|
101
101
|
if (r.nodeType === 8) {
|
|
102
102
|
var n = r.data;
|
|
@@ -109,32 +109,32 @@ function Xo(e = !0) {
|
|
|
109
109
|
e && r.remove(), r = i;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
|
-
function
|
|
112
|
+
function Xa(e) {
|
|
113
113
|
if (!e || e.nodeType !== 8)
|
|
114
114
|
throw kn(), dr;
|
|
115
115
|
return e.data;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function Qo(e) {
|
|
118
118
|
return e === this.v;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function Ja(e, t) {
|
|
121
121
|
return e != e ? t == t : e !== t || e !== null && typeof e == "object" || typeof e == "function";
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
return !
|
|
123
|
+
function es(e) {
|
|
124
|
+
return !Ja(e, this.v);
|
|
125
125
|
}
|
|
126
126
|
var lt = !1, Wr = !1;
|
|
127
127
|
function io(e, t) {
|
|
128
|
-
return e.label = t,
|
|
128
|
+
return e.label = t, Za(e.v, t), e;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
131
|
-
return e?.[
|
|
130
|
+
function Za(e, t) {
|
|
131
|
+
return e?.[Pa]?.(t), e;
|
|
132
132
|
}
|
|
133
133
|
var W = null;
|
|
134
134
|
function hr(e) {
|
|
135
135
|
W = e;
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function ts(e, t = !1, r) {
|
|
138
138
|
W = {
|
|
139
139
|
p: W,
|
|
140
140
|
i: !1,
|
|
@@ -150,43 +150,43 @@ function Qo(e, t = !1, r) {
|
|
|
150
150
|
} : null
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function rs(e) {
|
|
154
154
|
var t = W, r = t.e;
|
|
155
155
|
if (r !== null) {
|
|
156
156
|
t.e = null;
|
|
157
|
-
for (var n of r)
|
|
157
|
+
for (var n of r) Is(n);
|
|
158
158
|
}
|
|
159
159
|
return e !== void 0 && (t.x = e), t.i = !0, W = t.p, e ?? {};
|
|
160
160
|
}
|
|
161
161
|
function Gr() {
|
|
162
162
|
return !Wr || W !== null && W.l === null;
|
|
163
163
|
}
|
|
164
|
-
var
|
|
165
|
-
function
|
|
166
|
-
var e =
|
|
167
|
-
|
|
164
|
+
var Ut = [];
|
|
165
|
+
function ns() {
|
|
166
|
+
var e = Ut;
|
|
167
|
+
Ut = [], Oa(e);
|
|
168
168
|
}
|
|
169
|
-
function
|
|
170
|
-
if (
|
|
171
|
-
var t =
|
|
169
|
+
function qt(e) {
|
|
170
|
+
if (Ut.length === 0 && !Ur) {
|
|
171
|
+
var t = Ut;
|
|
172
172
|
queueMicrotask(() => {
|
|
173
|
-
t ===
|
|
173
|
+
t === Ut && ns();
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
|
-
|
|
176
|
+
Ut.push(e);
|
|
177
177
|
}
|
|
178
|
-
function
|
|
179
|
-
for (;
|
|
178
|
+
function Qa() {
|
|
179
|
+
for (; Ut.length > 0; ) ns();
|
|
180
180
|
}
|
|
181
|
-
function
|
|
181
|
+
function is(e) {
|
|
182
182
|
var t = x;
|
|
183
183
|
if (t === null)
|
|
184
|
-
return R.f |=
|
|
184
|
+
return R.f |= _n, e;
|
|
185
185
|
if ((t.f & 32768) === 0 && (t.f & 4) === 0)
|
|
186
186
|
throw e;
|
|
187
|
-
|
|
187
|
+
St(e, t);
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function St(e, t) {
|
|
190
190
|
for (; t !== null; ) {
|
|
191
191
|
if ((t.f & 128) !== 0) {
|
|
192
192
|
if ((t.f & 32768) === 0) throw e;
|
|
@@ -201,23 +201,23 @@ function Et(e, t) {
|
|
|
201
201
|
}
|
|
202
202
|
throw e;
|
|
203
203
|
}
|
|
204
|
-
var
|
|
204
|
+
var el = ~(ze | Kt | Se);
|
|
205
205
|
function G(e, t) {
|
|
206
|
-
e.f = e.f &
|
|
206
|
+
e.f = e.f & el | t;
|
|
207
207
|
}
|
|
208
208
|
function Ii(e) {
|
|
209
|
-
(e.f & 512) !== 0 || e.deps === null ? G(e, Se) : G(e,
|
|
209
|
+
(e.f & 512) !== 0 || e.deps === null ? G(e, Se) : G(e, Kt);
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function os(e) {
|
|
212
212
|
if (e !== null)
|
|
213
213
|
for (const t of e)
|
|
214
|
-
(t.f & 2) === 0 || (t.f & 65536) === 0 || (t.f ^= jr,
|
|
214
|
+
(t.f & 2) === 0 || (t.f & 65536) === 0 || (t.f ^= jr, os(t.deps));
|
|
215
215
|
}
|
|
216
|
-
function
|
|
217
|
-
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e),
|
|
216
|
+
function ss(e, t, r) {
|
|
217
|
+
(e.f & 2048) !== 0 ? t.add(e) : (e.f & 4096) !== 0 && r.add(e), os(e.deps), G(e, Se);
|
|
218
218
|
}
|
|
219
|
-
var
|
|
220
|
-
function
|
|
219
|
+
var tl = !1, Qr = !1;
|
|
220
|
+
function rl(e) {
|
|
221
221
|
var t = Qr;
|
|
222
222
|
try {
|
|
223
223
|
return Qr = !1, [e(), Qr];
|
|
@@ -225,14 +225,14 @@ function el(e) {
|
|
|
225
225
|
Qr = t;
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
|
-
function
|
|
228
|
+
function as(e, t) {
|
|
229
229
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
230
230
|
}
|
|
231
231
|
function xi(e, t) {
|
|
232
|
-
|
|
232
|
+
as(e, t), t.add(e);
|
|
233
233
|
}
|
|
234
234
|
function S(e, t, r) {
|
|
235
|
-
|
|
235
|
+
as(e, t), t.set(e, r);
|
|
236
236
|
}
|
|
237
237
|
function $(e, t, r) {
|
|
238
238
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : r;
|
|
@@ -244,25 +244,25 @@ function c(e, t) {
|
|
|
244
244
|
function A(e, t, r) {
|
|
245
245
|
return e.set($(e, t), r), r;
|
|
246
246
|
}
|
|
247
|
-
var
|
|
248
|
-
var
|
|
247
|
+
var ls, Ge = /* @__PURE__ */ new Set(), L = null, oo = null, oe = null, oi = null, Ur = !1, Hn = !1, vr = null, gn = null, cs = 0;
|
|
248
|
+
var nl = 1, bn = /* @__PURE__ */ new WeakMap(), en = /* @__PURE__ */ new WeakMap(), Ir = /* @__PURE__ */ new WeakMap(), zt = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakMap(), ln = /* @__PURE__ */ new WeakMap(), $e = /* @__PURE__ */ new WeakMap(), si = /* @__PURE__ */ new WeakMap(), mr = /* @__PURE__ */ new WeakMap(), Ht = /* @__PURE__ */ new WeakMap(), kt = /* @__PURE__ */ new WeakMap(), cn = /* @__PURE__ */ new WeakMap(), tn = /* @__PURE__ */ new WeakMap(), fr = /* @__PURE__ */ new WeakMap(), ce = /* @__PURE__ */ new WeakSet(), Xt = class us {
|
|
249
249
|
constructor() {
|
|
250
|
-
xi(this, ce), b(this, "id",
|
|
250
|
+
xi(this, ce), b(this, "id", nl++), b(this, "current", /* @__PURE__ */ new Map()), b(this, "previous", /* @__PURE__ */ new Map()), S(this, bn, /* @__PURE__ */ new Set()), S(this, en, /* @__PURE__ */ new Set()), S(this, Ir, /* @__PURE__ */ new Set()), S(this, zt, /* @__PURE__ */ new Map()), S(this, Et, /* @__PURE__ */ new Map()), S(this, ln, null), S(this, $e, []), S(this, si, []), S(this, mr, /* @__PURE__ */ new Set()), S(this, Ht, /* @__PURE__ */ new Set()), S(this, kt, /* @__PURE__ */ new Map()), S(this, cn, /* @__PURE__ */ new Set()), b(this, "is_fork", !1), S(this, tn, !1), S(this, fr, /* @__PURE__ */ new Set());
|
|
251
251
|
}
|
|
252
252
|
skip_effect(t) {
|
|
253
|
-
c(
|
|
253
|
+
c(kt, this).has(t) || c(kt, this).set(t, {
|
|
254
254
|
d: [],
|
|
255
255
|
m: []
|
|
256
256
|
}), c(cn, this).delete(t);
|
|
257
257
|
}
|
|
258
258
|
unskip_effect(t, r = (n) => this.schedule(n)) {
|
|
259
|
-
var n = c(
|
|
259
|
+
var n = c(kt, this).get(t);
|
|
260
260
|
if (n) {
|
|
261
|
-
c(
|
|
261
|
+
c(kt, this).delete(t);
|
|
262
262
|
for (var i of n.d)
|
|
263
263
|
G(i, ze), r(i);
|
|
264
264
|
for (i of n.m)
|
|
265
|
-
G(i,
|
|
265
|
+
G(i, Kt), r(i);
|
|
266
266
|
}
|
|
267
267
|
c(cn, this).add(t);
|
|
268
268
|
}
|
|
@@ -270,17 +270,17 @@ var tl = 1, bn = /* @__PURE__ */ new WeakMap(), en = /* @__PURE__ */ new WeakMap
|
|
|
270
270
|
t.v !== K && !this.previous.has(t) && this.previous.set(t, t.v), (t.f & 8388608) === 0 && (this.current.set(t, [r, n]), oe?.set(t, r)), this.is_fork || (t.v = r);
|
|
271
271
|
}
|
|
272
272
|
activate() {
|
|
273
|
-
|
|
273
|
+
L = this;
|
|
274
274
|
}
|
|
275
275
|
deactivate() {
|
|
276
|
-
|
|
276
|
+
L = null, oe = null;
|
|
277
277
|
}
|
|
278
278
|
flush() {
|
|
279
279
|
var t = null;
|
|
280
280
|
try {
|
|
281
|
-
Hn = !0,
|
|
281
|
+
Hn = !0, L = this, $(ce, this, Li).call(this);
|
|
282
282
|
} finally {
|
|
283
|
-
|
|
283
|
+
cs = 0, oi = null, vr = null, gn = null, Hn = !1, L = null, oe = null, Gt.clear();
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
discard() {
|
|
@@ -291,25 +291,25 @@ var tl = 1, bn = /* @__PURE__ */ new WeakMap(), en = /* @__PURE__ */ new WeakMap
|
|
|
291
291
|
c(si, this).push(t);
|
|
292
292
|
}
|
|
293
293
|
increment(t, r) {
|
|
294
|
-
let n = c(
|
|
295
|
-
if (c(
|
|
296
|
-
let i = c(
|
|
297
|
-
c(
|
|
294
|
+
let n = c(zt, this).get(r) ?? 0;
|
|
295
|
+
if (c(zt, this).set(r, n + 1), t) {
|
|
296
|
+
let i = c(Et, this).get(r) ?? 0;
|
|
297
|
+
c(Et, this).set(r, i + 1);
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
decrement(t, r, n) {
|
|
301
|
-
let i = c(
|
|
302
|
-
if (i === 1 ? c(
|
|
303
|
-
let o = c(
|
|
304
|
-
o === 1 ? c(
|
|
301
|
+
let i = c(zt, this).get(r) ?? 0;
|
|
302
|
+
if (i === 1 ? c(zt, this).delete(r) : c(zt, this).set(r, i - 1), t) {
|
|
303
|
+
let o = c(Et, this).get(r) ?? 0;
|
|
304
|
+
o === 1 ? c(Et, this).delete(r) : c(Et, this).set(r, o - 1);
|
|
305
305
|
}
|
|
306
|
-
c(tn, this) || n || (A(tn, this, !0),
|
|
306
|
+
c(tn, this) || n || (A(tn, this, !0), qt(() => {
|
|
307
307
|
A(tn, this, !1), this.flush();
|
|
308
308
|
}));
|
|
309
309
|
}
|
|
310
310
|
transfer_effects(t, r) {
|
|
311
|
-
for (const n of t) c(
|
|
312
|
-
for (const n of r) c(
|
|
311
|
+
for (const n of t) c(mr, this).add(n);
|
|
312
|
+
for (const n of r) c(Ht, this).add(n);
|
|
313
313
|
t.clear(), r.clear();
|
|
314
314
|
}
|
|
315
315
|
oncommit(t) {
|
|
@@ -326,16 +326,16 @@ var tl = 1, bn = /* @__PURE__ */ new WeakMap(), en = /* @__PURE__ */ new WeakMap
|
|
|
326
326
|
c(Ir, this).clear();
|
|
327
327
|
}
|
|
328
328
|
settled() {
|
|
329
|
-
return (c(ln, this) ?? A(ln, this,
|
|
329
|
+
return (c(ln, this) ?? A(ln, this, Ko())).promise;
|
|
330
330
|
}
|
|
331
331
|
static ensure() {
|
|
332
|
-
if (
|
|
333
|
-
const t =
|
|
334
|
-
Hn || (Ge.add(
|
|
335
|
-
|
|
332
|
+
if (L === null) {
|
|
333
|
+
const t = L = new us();
|
|
334
|
+
Hn || (Ge.add(L), Ur || qt(() => {
|
|
335
|
+
L === t && t.flush();
|
|
336
336
|
}));
|
|
337
337
|
}
|
|
338
|
-
return
|
|
338
|
+
return L;
|
|
339
339
|
}
|
|
340
340
|
apply() {
|
|
341
341
|
if (!lt || !this.is_fork && Ge.size === 1) {
|
|
@@ -361,7 +361,7 @@ var tl = 1, bn = /* @__PURE__ */ new WeakMap(), en = /* @__PURE__ */ new WeakMap
|
|
|
361
361
|
for (var r = t; r.parent !== null; ) {
|
|
362
362
|
r = r.parent;
|
|
363
363
|
var n = r.f;
|
|
364
|
-
if (vr !== null && r === x && (lt || (R === null || (R.f & 2) === 0) && !
|
|
364
|
+
if (vr !== null && r === x && (lt || (R === null || (R.f & 2) === 0) && !tl))
|
|
365
365
|
return;
|
|
366
366
|
if ((n & 96) !== 0) {
|
|
367
367
|
if ((n & 1024) === 0) return;
|
|
@@ -371,14 +371,14 @@ var tl = 1, bn = /* @__PURE__ */ new WeakMap(), en = /* @__PURE__ */ new WeakMap
|
|
|
371
371
|
c($e, this).push(r);
|
|
372
372
|
}
|
|
373
373
|
};
|
|
374
|
-
|
|
374
|
+
ls = Xt;
|
|
375
375
|
function ai() {
|
|
376
|
-
return this.is_fork || c(
|
|
376
|
+
return this.is_fork || c(Et, this).size > 0;
|
|
377
377
|
}
|
|
378
|
-
function
|
|
379
|
-
for (const r of c(fr, this)) for (const n of c(
|
|
378
|
+
function il() {
|
|
379
|
+
for (const r of c(fr, this)) for (const n of c(Et, r).keys()) {
|
|
380
380
|
for (var e = !1, t = n; t.parent !== null; ) {
|
|
381
|
-
if (c(
|
|
381
|
+
if (c(kt, this).has(t)) {
|
|
382
382
|
e = !0;
|
|
383
383
|
break;
|
|
384
384
|
}
|
|
@@ -388,46 +388,46 @@ function rl() {
|
|
|
388
388
|
}
|
|
389
389
|
return !1;
|
|
390
390
|
}
|
|
391
|
-
function
|
|
392
|
-
if (
|
|
393
|
-
for (const s of c(
|
|
394
|
-
c(
|
|
395
|
-
for (const s of c(
|
|
396
|
-
G(s,
|
|
391
|
+
function Li() {
|
|
392
|
+
if (cs++ > 1e3 && (Ge.delete(this), sl()), !$(ce, this, ai).call(this)) {
|
|
393
|
+
for (const s of c(mr, this))
|
|
394
|
+
c(Ht, this).delete(s), G(s, ze), this.schedule(s);
|
|
395
|
+
for (const s of c(Ht, this))
|
|
396
|
+
G(s, Kt), this.schedule(s);
|
|
397
397
|
}
|
|
398
398
|
const e = c($e, this);
|
|
399
399
|
A($e, this, []), this.apply();
|
|
400
400
|
var t = vr = [], r = [], n = gn = [];
|
|
401
401
|
for (const s of e) try {
|
|
402
|
-
$(ce, this,
|
|
402
|
+
$(ce, this, fs).call(this, s, t, r);
|
|
403
403
|
} catch (a) {
|
|
404
|
-
throw
|
|
404
|
+
throw hs(s), a;
|
|
405
405
|
}
|
|
406
|
-
if (
|
|
407
|
-
var i =
|
|
406
|
+
if (L = null, n.length > 0) {
|
|
407
|
+
var i = ls.ensure();
|
|
408
408
|
for (const s of n) i.schedule(s);
|
|
409
409
|
}
|
|
410
|
-
if (vr = null, gn = null, $(ce, this, ai).call(this) || $(ce, this,
|
|
410
|
+
if (vr = null, gn = null, $(ce, this, ai).call(this) || $(ce, this, il).call(this)) {
|
|
411
411
|
$(ce, this, li).call(this, r), $(ce, this, li).call(this, t);
|
|
412
|
-
for (const [s, a] of c(
|
|
412
|
+
for (const [s, a] of c(kt, this)) ps(s, a);
|
|
413
413
|
} else {
|
|
414
|
-
c(
|
|
414
|
+
c(zt, this).size === 0 && Ge.delete(this), c(mr, this).clear(), c(Ht, this).clear();
|
|
415
415
|
for (const s of c(bn, this)) s(this);
|
|
416
416
|
c(bn, this).clear(), oo = this, so(r), so(t), oo = null, c(ln, this)?.resolve();
|
|
417
417
|
}
|
|
418
|
-
var o =
|
|
418
|
+
var o = L;
|
|
419
419
|
if (c($e, this).length > 0) {
|
|
420
420
|
const s = o ?? (o = this);
|
|
421
421
|
c($e, s).push(...c($e, this).filter((a) => !c($e, s).includes(a)));
|
|
422
422
|
}
|
|
423
|
-
o !== null && (Ge.add(o), $(ce, o,
|
|
423
|
+
o !== null && (Ge.add(o), $(ce, o, Li).call(o)), lt && !Ge.has(this) && $(ce, this, ol).call(this);
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function fs(e, t, r) {
|
|
426
426
|
e.f ^= Se;
|
|
427
427
|
for (var n = e.first; n !== null; ) {
|
|
428
428
|
var i = n.f, o = (i & 96) !== 0;
|
|
429
|
-
if (!(o && (i & 1024) !== 0 || (i & 8192) !== 0 || c(
|
|
430
|
-
o ? n.f ^= Se : (i & 4) !== 0 ? t.push(n) : lt && (i & 16777224) !== 0 ? r.push(n) : qr(n) && ((i & 16) !== 0 && c(
|
|
429
|
+
if (!(o && (i & 1024) !== 0 || (i & 8192) !== 0 || c(kt, this).has(n)) && n.fn !== null) {
|
|
430
|
+
o ? n.f ^= Se : (i & 4) !== 0 ? t.push(n) : lt && (i & 16777224) !== 0 ? r.push(n) : qr(n) && ((i & 16) !== 0 && c(Ht, this).add(n), gr(n));
|
|
431
431
|
var s = n.first;
|
|
432
432
|
if (s !== null) {
|
|
433
433
|
n = s;
|
|
@@ -445,15 +445,15 @@ function cs(e, t, r) {
|
|
|
445
445
|
}
|
|
446
446
|
}
|
|
447
447
|
function li(e) {
|
|
448
|
-
for (var t = 0; t < e.length; t += 1)
|
|
448
|
+
for (var t = 0; t < e.length; t += 1) ss(e[t], c(mr, this), c(Ht, this));
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function ol() {
|
|
451
451
|
for (const f of Ge) {
|
|
452
452
|
var e = f.id < this.id, t = [];
|
|
453
|
-
for (const [d, [
|
|
453
|
+
for (const [d, [v, p]] of this.current) {
|
|
454
454
|
if (f.current.has(d)) {
|
|
455
455
|
var r = f.current.get(d)[0];
|
|
456
|
-
if (e &&
|
|
456
|
+
if (e && v !== r) f.current.set(d, [v, p]);
|
|
457
457
|
else continue;
|
|
458
458
|
}
|
|
459
459
|
t.push(d);
|
|
@@ -462,48 +462,48 @@ function nl() {
|
|
|
462
462
|
if (n.length === 0)
|
|
463
463
|
e && f.discard();
|
|
464
464
|
else if (t.length > 0) {
|
|
465
|
-
if (e) for (const d of c(cn, this)) f.unskip_effect(d, (
|
|
466
|
-
(
|
|
465
|
+
if (e) for (const d of c(cn, this)) f.unskip_effect(d, (v) => {
|
|
466
|
+
(v.f & 4194320) !== 0 ? f.schedule(v) : $(ce, f, li).call(f, [v]);
|
|
467
467
|
});
|
|
468
468
|
f.activate();
|
|
469
469
|
var i = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Map();
|
|
470
|
-
for (var s of t)
|
|
470
|
+
for (var s of t) ds(s, n, i, o);
|
|
471
471
|
o = /* @__PURE__ */ new Map();
|
|
472
472
|
var a = [...f.current.keys()].filter((d) => this.current.has(d) ? this.current.get(d)[0] !== d : !0);
|
|
473
|
-
for (const d of c(si, this)) (d.f & 155648) === 0 &&
|
|
473
|
+
for (const d of c(si, this)) (d.f & 155648) === 0 && Oi(d, a, o) && ((d.f & 4194320) !== 0 ? (G(d, ze), f.schedule(d)) : c(mr, f).add(d));
|
|
474
474
|
if (c($e, f).length > 0) {
|
|
475
475
|
f.apply();
|
|
476
|
-
for (var u of c($e, f)) $(ce, f,
|
|
476
|
+
for (var u of c($e, f)) $(ce, f, fs).call(f, u, [], []);
|
|
477
477
|
A($e, f, []);
|
|
478
478
|
}
|
|
479
479
|
f.deactivate();
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
for (const f of Ge) c(fr, f).has(this) && (c(fr, f).delete(this), c(fr, f).size === 0 && !$(ce, f, ai).call(f) && (f.activate(), $(ce, f,
|
|
482
|
+
for (const f of Ge) c(fr, f).has(this) && (c(fr, f).delete(this), c(fr, f).size === 0 && !$(ce, f, ai).call(f) && (f.activate(), $(ce, f, Li).call(f)));
|
|
483
483
|
}
|
|
484
484
|
function Dr(e) {
|
|
485
485
|
var t = Ur;
|
|
486
486
|
Ur = !0;
|
|
487
487
|
try {
|
|
488
488
|
var r;
|
|
489
|
-
for (e && (
|
|
490
|
-
if (
|
|
491
|
-
|
|
489
|
+
for (e && (L !== null && !L.is_fork && L.flush(), r = e()); ; ) {
|
|
490
|
+
if (Qa(), L === null) return r;
|
|
491
|
+
L.flush();
|
|
492
492
|
}
|
|
493
493
|
} finally {
|
|
494
494
|
Ur = t;
|
|
495
495
|
}
|
|
496
496
|
}
|
|
497
|
-
function
|
|
497
|
+
function sl() {
|
|
498
498
|
if (0) {
|
|
499
499
|
var e;
|
|
500
|
-
for (const r of
|
|
500
|
+
for (const r of L.current.keys()) for (const [n, i] of r.updated ?? [])
|
|
501
501
|
var t;
|
|
502
502
|
}
|
|
503
503
|
try {
|
|
504
|
-
|
|
504
|
+
Ba();
|
|
505
505
|
} catch (r) {
|
|
506
|
-
|
|
506
|
+
St(r, oi);
|
|
507
507
|
}
|
|
508
508
|
}
|
|
509
509
|
var je = null;
|
|
@@ -512,8 +512,8 @@ function so(e) {
|
|
|
512
512
|
if (t !== 0) {
|
|
513
513
|
for (var r = 0; r < t; ) {
|
|
514
514
|
var n = e[r++];
|
|
515
|
-
if ((n.f & 24576) === 0 && qr(n) && (je = /* @__PURE__ */ new Set(), gr(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null &&
|
|
516
|
-
|
|
515
|
+
if ((n.f & 24576) === 0 && qr(n) && (je = /* @__PURE__ */ new Set(), gr(n), n.deps === null && n.first === null && n.nodes === null && n.teardown === null && n.ac === null && Rs(n), je?.size > 0)) {
|
|
516
|
+
Gt.clear();
|
|
517
517
|
for (const i of je) {
|
|
518
518
|
if ((i.f & 24576) !== 0) continue;
|
|
519
519
|
const o = [i];
|
|
@@ -531,73 +531,73 @@ function so(e) {
|
|
|
531
531
|
je = null;
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
|
-
function
|
|
534
|
+
function ds(e, t, r, n) {
|
|
535
535
|
if (!r.has(e) && (r.add(e), e.reactions !== null))
|
|
536
536
|
for (const i of e.reactions) {
|
|
537
537
|
const o = i.f;
|
|
538
|
-
(o & 2) !== 0 ?
|
|
538
|
+
(o & 2) !== 0 ? ds(i, t, r, n) : (o & 4194320) !== 0 && (o & 2048) === 0 && Oi(i, t, n) && (G(i, ze), Ri(i));
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function Oi(e, t, r) {
|
|
542
542
|
const n = r.get(e);
|
|
543
543
|
if (n !== void 0) return n;
|
|
544
544
|
if (e.deps !== null) for (const i of e.deps) {
|
|
545
545
|
if (pr.call(t, i)) return !0;
|
|
546
|
-
if ((i.f & 2) !== 0 &&
|
|
546
|
+
if ((i.f & 2) !== 0 && Oi(i, t, r))
|
|
547
547
|
return r.set(i, !0), !0;
|
|
548
548
|
}
|
|
549
549
|
return r.set(e, !1), !1;
|
|
550
550
|
}
|
|
551
551
|
function Ri(e) {
|
|
552
|
-
|
|
552
|
+
L.schedule(e);
|
|
553
553
|
}
|
|
554
|
-
function
|
|
554
|
+
function ps(e, t) {
|
|
555
555
|
if (!((e.f & 32) !== 0 && (e.f & 1024) !== 0)) {
|
|
556
556
|
(e.f & 2048) !== 0 ? t.d.push(e) : (e.f & 4096) !== 0 && t.m.push(e), G(e, Se);
|
|
557
557
|
for (var r = e.first; r !== null; )
|
|
558
|
-
|
|
558
|
+
ps(r, t), r = r.next;
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function hs(e) {
|
|
562
562
|
G(e, Se);
|
|
563
563
|
for (var t = e.first; t !== null; )
|
|
564
|
-
|
|
564
|
+
hs(t), t = t.next;
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function al(e) {
|
|
567
567
|
let t = 0, r = Vr(0), n;
|
|
568
568
|
return () => {
|
|
569
569
|
Pi() && (g(r), Di(() => (t === 0 && (n = In(() => e(() => Fr(r)))), t += 1, () => {
|
|
570
|
-
|
|
570
|
+
qt(() => {
|
|
571
571
|
t -= 1, t === 0 && (n?.(), n = void 0, Fr(r));
|
|
572
572
|
});
|
|
573
573
|
})));
|
|
574
574
|
};
|
|
575
575
|
}
|
|
576
|
-
var
|
|
577
|
-
function
|
|
578
|
-
new
|
|
576
|
+
var ll = Si | br;
|
|
577
|
+
function cl(e, t, r, n) {
|
|
578
|
+
new ul(e, t, r, n);
|
|
579
579
|
}
|
|
580
|
-
var De = /* @__PURE__ */ new WeakMap(), ci = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), Br = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap(), he = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(),
|
|
580
|
+
var De = /* @__PURE__ */ new WeakMap(), ci = /* @__PURE__ */ new WeakMap(), We = /* @__PURE__ */ new WeakMap(), Br = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap(), he = /* @__PURE__ */ new WeakMap(), Ce = /* @__PURE__ */ new WeakMap(), jt = /* @__PURE__ */ new WeakMap(), ar = /* @__PURE__ */ new WeakMap(), Wt = /* @__PURE__ */ new WeakMap(), rn = /* @__PURE__ */ new WeakMap(), ui = /* @__PURE__ */ new WeakMap(), fi = /* @__PURE__ */ new WeakMap(), Dt = /* @__PURE__ */ new WeakMap(), ao = /* @__PURE__ */ new WeakMap(), re = /* @__PURE__ */ new WeakSet(), ul = class {
|
|
581
581
|
constructor(e, t, r, n) {
|
|
582
|
-
xi(this, re), b(this, "parent", void 0), b(this, "is_pending", !1), b(this, "transform_error", void 0), S(this, De, void 0), S(this, ci, z ? D : null), S(this, We, void 0), S(this, Br, void 0), S(this, Ee, void 0), S(this, Ve, null), S(this, he, null), S(this, Ce, null), S(this,
|
|
583
|
-
A(
|
|
582
|
+
xi(this, re), b(this, "parent", void 0), b(this, "is_pending", !1), b(this, "transform_error", void 0), S(this, De, void 0), S(this, ci, z ? D : null), S(this, We, void 0), S(this, Br, void 0), S(this, Ee, void 0), S(this, Ve, null), S(this, he, null), S(this, Ce, null), S(this, jt, null), S(this, ar, 0), S(this, Wt, 0), S(this, rn, !1), S(this, ui, /* @__PURE__ */ new Set()), S(this, fi, /* @__PURE__ */ new Set()), S(this, Dt, null), S(this, ao, al(() => (A(Dt, this, Vr(c(ar, this))), () => {
|
|
583
|
+
A(Dt, this, null);
|
|
584
584
|
}))), A(De, this, e), A(We, this, t), A(Br, this, (i) => {
|
|
585
585
|
var o = x;
|
|
586
586
|
o.b = this, o.f |= 128, r(i);
|
|
587
|
-
}), this.parent = x.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), A(Ee, this,
|
|
587
|
+
}), this.parent = x.b, this.transform_error = n ?? this.parent?.transform_error ?? ((i) => i), A(Ee, this, Ls(() => {
|
|
588
588
|
if (z) {
|
|
589
589
|
const i = c(ci, this);
|
|
590
590
|
Ai();
|
|
591
591
|
const o = i.data === "[!";
|
|
592
592
|
if (i.data.startsWith("[?")) {
|
|
593
593
|
const s = JSON.parse(i.data.slice(2));
|
|
594
|
-
$(re, this,
|
|
595
|
-
} else o ? $(re, this,
|
|
596
|
-
} else $(re, this,
|
|
597
|
-
},
|
|
594
|
+
$(re, this, dl).call(this, s);
|
|
595
|
+
} else o ? $(re, this, pl).call(this) : $(re, this, fl).call(this);
|
|
596
|
+
} else $(re, this, vs).call(this);
|
|
597
|
+
}, ll)), z && A(De, this, D);
|
|
598
598
|
}
|
|
599
599
|
defer_effect(e) {
|
|
600
|
-
|
|
600
|
+
ss(e, c(ui, this), c(fi, this));
|
|
601
601
|
}
|
|
602
602
|
is_rendered() {
|
|
603
603
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -606,53 +606,53 @@ var De = /* @__PURE__ */ new WeakMap(), ci = /* @__PURE__ */ new WeakMap(), We =
|
|
|
606
606
|
return !!c(We, this).pending;
|
|
607
607
|
}
|
|
608
608
|
update_pending_count(e, t) {
|
|
609
|
-
$(re, this,
|
|
610
|
-
A(rn, this, !1), c(
|
|
609
|
+
$(re, this, ms).call(this, e, t), A(ar, this, c(ar, this) + e), !(!c(Dt, this) || c(rn, this)) && (A(rn, this, !0), qt(() => {
|
|
610
|
+
A(rn, this, !1), c(Dt, this) && wn(c(Dt, this), c(ar, this));
|
|
611
611
|
}));
|
|
612
612
|
}
|
|
613
613
|
get_effect_pending() {
|
|
614
|
-
return c(ao, this).call(this), g(c(
|
|
614
|
+
return c(ao, this).call(this), g(c(Dt, this));
|
|
615
615
|
}
|
|
616
616
|
error(e) {
|
|
617
617
|
if (!c(We, this).onerror && !c(We, this).failed) throw e;
|
|
618
|
-
|
|
618
|
+
L?.is_fork ? (c(Ve, this) && L.skip_effect(c(Ve, this)), c(he, this) && L.skip_effect(c(he, this)), c(Ce, this) && L.skip_effect(c(Ce, this)), L.on_fork_commit(() => {
|
|
619
619
|
$(re, this, lo).call(this, e);
|
|
620
620
|
})) : $(re, this, lo).call(this, e);
|
|
621
621
|
}
|
|
622
622
|
};
|
|
623
|
-
function
|
|
623
|
+
function fl() {
|
|
624
624
|
try {
|
|
625
625
|
A(Ve, this, ct(() => c(Br, this).call(this, c(De, this))));
|
|
626
626
|
} catch (e) {
|
|
627
627
|
this.error(e);
|
|
628
628
|
}
|
|
629
629
|
}
|
|
630
|
-
function
|
|
630
|
+
function dl(e) {
|
|
631
631
|
const t = c(We, this).failed;
|
|
632
632
|
t && A(Ce, this, ct(() => {
|
|
633
633
|
t(c(De, this), () => e, () => () => {
|
|
634
634
|
});
|
|
635
635
|
}));
|
|
636
636
|
}
|
|
637
|
-
function
|
|
637
|
+
function pl() {
|
|
638
638
|
const e = c(We, this).pending;
|
|
639
|
-
e && (this.is_pending = !0, A(he, this, ct(() => e(c(De, this)))),
|
|
640
|
-
var t = A(
|
|
641
|
-
t.append(r), A(Ve, this, $(re, this, di).call(this, () => ct(() => c(Br, this).call(this, r)))), c(
|
|
639
|
+
e && (this.is_pending = !0, A(he, this, ct(() => e(c(De, this)))), qt(() => {
|
|
640
|
+
var t = A(jt, this, document.createDocumentFragment()), r = Ne();
|
|
641
|
+
t.append(r), A(Ve, this, $(re, this, di).call(this, () => ct(() => c(Br, this).call(this, r)))), c(Wt, this) === 0 && (c(De, this).before(t), A(jt, this, null), Yr(c(he, this), () => {
|
|
642
642
|
A(he, this, null);
|
|
643
|
-
}), $(re, this, Mi).call(this,
|
|
643
|
+
}), $(re, this, Mi).call(this, L));
|
|
644
644
|
}));
|
|
645
645
|
}
|
|
646
|
-
function
|
|
646
|
+
function vs() {
|
|
647
647
|
try {
|
|
648
|
-
if (this.is_pending = this.has_pending_snippet(), A(
|
|
648
|
+
if (this.is_pending = this.has_pending_snippet(), A(Wt, this, 0), A(ar, this, 0), A(Ve, this, ct(() => {
|
|
649
649
|
c(Br, this).call(this, c(De, this));
|
|
650
|
-
})), c(
|
|
651
|
-
var e = A(
|
|
652
|
-
|
|
650
|
+
})), c(Wt, this) > 0) {
|
|
651
|
+
var e = A(jt, this, document.createDocumentFragment());
|
|
652
|
+
$s(c(Ve, this), e);
|
|
653
653
|
const t = c(We, this).pending;
|
|
654
654
|
A(he, this, ct(() => t(c(De, this))));
|
|
655
|
-
} else $(re, this, Mi).call(this,
|
|
655
|
+
} else $(re, this, Mi).call(this, L);
|
|
656
656
|
} catch (t) {
|
|
657
657
|
this.error(t);
|
|
658
658
|
}
|
|
@@ -664,45 +664,45 @@ function di(e) {
|
|
|
664
664
|
var t = x, r = R, n = W;
|
|
665
665
|
Ye(c(Ee, this)), Ie(c(Ee, this)), hr(c(Ee, this).ctx);
|
|
666
666
|
try {
|
|
667
|
-
return
|
|
667
|
+
return Xt.ensure(), e();
|
|
668
668
|
} catch (i) {
|
|
669
|
-
return
|
|
669
|
+
return is(i), null;
|
|
670
670
|
} finally {
|
|
671
671
|
Ye(t), Ie(r), hr(n);
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function ms(e, t) {
|
|
675
675
|
if (!this.has_pending_snippet()) {
|
|
676
676
|
if (this.parent) {
|
|
677
677
|
var r;
|
|
678
|
-
$(re, r = this.parent,
|
|
678
|
+
$(re, r = this.parent, ms).call(r, e, t);
|
|
679
679
|
}
|
|
680
680
|
return;
|
|
681
681
|
}
|
|
682
|
-
A(
|
|
682
|
+
A(Wt, this, c(Wt, this) + e), c(Wt, this) === 0 && ($(re, this, Mi).call(this, t), c(he, this) && Yr(c(he, this), () => {
|
|
683
683
|
A(he, this, null);
|
|
684
|
-
}), c(
|
|
684
|
+
}), c(jt, this) && (c(De, this).before(c(jt, this)), A(jt, this, null)));
|
|
685
685
|
}
|
|
686
686
|
function lo(e) {
|
|
687
|
-
c(Ve, this) && (fe(c(Ve, this)), A(Ve, this, null)), c(he, this) && (fe(c(he, this)), A(he, this, null)), c(Ce, this) && (fe(c(Ce, this)), A(Ce, this, null)), z && (Ae(c(ci, this)), ii(), Ae(
|
|
687
|
+
c(Ve, this) && (fe(c(Ve, this)), A(Ve, this, null)), c(he, this) && (fe(c(he, this)), A(he, this, null)), c(Ce, this) && (fe(c(Ce, this)), A(Ce, this, null)), z && (Ae(c(ci, this)), ii(), Ae(Zo()));
|
|
688
688
|
var t = c(We, this).onerror;
|
|
689
689
|
let r = c(We, this).failed;
|
|
690
690
|
var n = !1, i = !1;
|
|
691
691
|
const o = () => {
|
|
692
692
|
if (n) {
|
|
693
|
-
|
|
693
|
+
Ka();
|
|
694
694
|
return;
|
|
695
695
|
}
|
|
696
|
-
n = !0, i &&
|
|
696
|
+
n = !0, i && Ya(), c(Ce, this) !== null && Yr(c(Ce, this), () => {
|
|
697
697
|
A(Ce, this, null);
|
|
698
698
|
}), $(re, this, di).call(this, () => {
|
|
699
|
-
$(re, this,
|
|
699
|
+
$(re, this, vs).call(this);
|
|
700
700
|
});
|
|
701
701
|
}, s = (a) => {
|
|
702
702
|
try {
|
|
703
703
|
i = !0, t?.(a, o), i = !1;
|
|
704
704
|
} catch (u) {
|
|
705
|
-
|
|
705
|
+
St(u, c(Ee, this) && c(Ee, this).parent);
|
|
706
706
|
}
|
|
707
707
|
r && A(Ce, this, $(re, this, di).call(this, () => {
|
|
708
708
|
try {
|
|
@@ -711,35 +711,35 @@ function lo(e) {
|
|
|
711
711
|
u.b = this, u.f |= 128, r(c(De, this), () => a, () => o);
|
|
712
712
|
});
|
|
713
713
|
} catch (u) {
|
|
714
|
-
return
|
|
714
|
+
return St(u, c(Ee, this).parent), null;
|
|
715
715
|
}
|
|
716
716
|
}));
|
|
717
717
|
};
|
|
718
|
-
|
|
718
|
+
qt(() => {
|
|
719
719
|
var a;
|
|
720
720
|
try {
|
|
721
721
|
a = this.transform_error(e);
|
|
722
722
|
} catch (u) {
|
|
723
|
-
|
|
723
|
+
St(u, c(Ee, this) && c(Ee, this).parent);
|
|
724
724
|
return;
|
|
725
725
|
}
|
|
726
|
-
a !== null && typeof a == "object" && typeof a.then == "function" ? a.then(s, (u) =>
|
|
726
|
+
a !== null && typeof a == "object" && typeof a.then == "function" ? a.then(s, (u) => St(u, c(Ee, this) && c(Ee, this).parent)) : s(a);
|
|
727
727
|
});
|
|
728
728
|
}
|
|
729
|
-
function
|
|
730
|
-
const i = Gr() ? Sn :
|
|
729
|
+
function hl(e, t, r, n) {
|
|
730
|
+
const i = Gr() ? Sn : gs;
|
|
731
731
|
var o = e.filter((p) => !p.settled);
|
|
732
732
|
if (r.length === 0 && o.length === 0) {
|
|
733
733
|
n(t.map(i));
|
|
734
734
|
return;
|
|
735
735
|
}
|
|
736
|
-
var s = x, a =
|
|
736
|
+
var s = x, a = vl(), u = o.length === 1 ? o[0].promise : o.length > 1 ? Promise.all(o.map((p) => p.promise)) : null;
|
|
737
737
|
function f(p) {
|
|
738
738
|
a();
|
|
739
739
|
try {
|
|
740
740
|
n(p);
|
|
741
|
-
} catch (
|
|
742
|
-
(s.f & 16384) === 0 &&
|
|
741
|
+
} catch (m) {
|
|
742
|
+
(s.f & 16384) === 0 && St(m, s);
|
|
743
743
|
}
|
|
744
744
|
yn();
|
|
745
745
|
}
|
|
@@ -747,26 +747,26 @@ function dl(e, t, r, n) {
|
|
|
747
747
|
u.then(() => f(t.map(i)));
|
|
748
748
|
return;
|
|
749
749
|
}
|
|
750
|
-
var d =
|
|
751
|
-
function
|
|
752
|
-
Promise.all(r.map((p) => /* @__PURE__ */
|
|
750
|
+
var d = _s();
|
|
751
|
+
function v() {
|
|
752
|
+
Promise.all(r.map((p) => /* @__PURE__ */ ml(p))).then((p) => f([...t.map(i), ...p])).catch((p) => St(p, s)).finally(() => d());
|
|
753
753
|
}
|
|
754
754
|
u ? u.then(() => {
|
|
755
|
-
a(),
|
|
756
|
-
}) :
|
|
755
|
+
a(), v(), yn();
|
|
756
|
+
}) : v();
|
|
757
757
|
}
|
|
758
|
-
function
|
|
759
|
-
var e = x, t = R, r = W, n =
|
|
758
|
+
function vl() {
|
|
759
|
+
var e = x, t = R, r = W, n = L;
|
|
760
760
|
if (0) var i;
|
|
761
761
|
return function(s = !0) {
|
|
762
762
|
Ye(e), Ie(t), hr(r), s && (e.f & 16384) === 0 && (n?.activate(), n?.apply());
|
|
763
763
|
};
|
|
764
764
|
}
|
|
765
765
|
function yn(e = !0) {
|
|
766
|
-
Ye(null), Ie(null), hr(null), e &&
|
|
766
|
+
Ye(null), Ie(null), hr(null), e && L?.deactivate();
|
|
767
767
|
}
|
|
768
|
-
function
|
|
769
|
-
var e = x, t = e.b, r =
|
|
768
|
+
function _s() {
|
|
769
|
+
var e = x, t = e.b, r = L, n = t.is_rendered();
|
|
770
770
|
return t.update_pending_count(1, r), r.increment(n, e), (i = !1) => {
|
|
771
771
|
t.update_pending_count(-1, r), r.decrement(n, e, i);
|
|
772
772
|
};
|
|
@@ -778,7 +778,7 @@ function Sn(e) {
|
|
|
778
778
|
ctx: W,
|
|
779
779
|
deps: null,
|
|
780
780
|
effects: null,
|
|
781
|
-
equals:
|
|
781
|
+
equals: Qo,
|
|
782
782
|
f: t,
|
|
783
783
|
fn: e,
|
|
784
784
|
reactions: null,
|
|
@@ -790,35 +790,35 @@ function Sn(e) {
|
|
|
790
790
|
};
|
|
791
791
|
}
|
|
792
792
|
// @__NO_SIDE_EFFECTS__
|
|
793
|
-
function
|
|
793
|
+
function ml(e, t, r) {
|
|
794
794
|
let n = x;
|
|
795
|
-
n === null &&
|
|
795
|
+
n === null && Na();
|
|
796
796
|
var i = void 0, o = Vr(K), s = !R, a = /* @__PURE__ */ new Map();
|
|
797
|
-
return
|
|
798
|
-
var u = x, f =
|
|
797
|
+
return Cl(() => {
|
|
798
|
+
var u = x, f = Ko();
|
|
799
799
|
i = f.promise;
|
|
800
800
|
try {
|
|
801
801
|
Promise.resolve(e()).then(f.resolve, f.reject).finally(yn);
|
|
802
|
-
} catch (
|
|
803
|
-
f.reject(
|
|
802
|
+
} catch (m) {
|
|
803
|
+
f.reject(m), yn();
|
|
804
804
|
}
|
|
805
|
-
var d =
|
|
805
|
+
var d = L;
|
|
806
806
|
if (s) {
|
|
807
|
-
if ((u.f & 32768) !== 0) var
|
|
807
|
+
if ((u.f & 32768) !== 0) var v = _s();
|
|
808
808
|
if (n.b.is_rendered())
|
|
809
809
|
a.get(d)?.reject(at), a.delete(d);
|
|
810
810
|
else {
|
|
811
|
-
for (const
|
|
811
|
+
for (const m of a.values()) m.reject(at);
|
|
812
812
|
a.clear();
|
|
813
813
|
}
|
|
814
814
|
a.set(d, f);
|
|
815
815
|
}
|
|
816
|
-
const p = (
|
|
817
|
-
if (
|
|
816
|
+
const p = (m, _ = void 0) => {
|
|
817
|
+
if (v && v(_ === at), !(_ === at || (u.f & 16384) !== 0)) {
|
|
818
818
|
if (d.activate(), _)
|
|
819
|
-
o.f |=
|
|
819
|
+
o.f |= _n, wn(o, _);
|
|
820
820
|
else {
|
|
821
|
-
(o.f & 8388608) !== 0 && (o.f ^=
|
|
821
|
+
(o.f & 8388608) !== 0 && (o.f ^= _n), wn(o, m);
|
|
822
822
|
for (const [w, E] of a) {
|
|
823
823
|
if (a.delete(w), w === d) break;
|
|
824
824
|
E.reject(at);
|
|
@@ -827,30 +827,30 @@ function hl(e, t, r) {
|
|
|
827
827
|
d.deactivate();
|
|
828
828
|
}
|
|
829
829
|
};
|
|
830
|
-
f.promise.then(p, (
|
|
831
|
-
}),
|
|
830
|
+
f.promise.then(p, (m) => p(null, m || "unknown"));
|
|
831
|
+
}), Ol(() => {
|
|
832
832
|
for (const u of a.values()) u.reject(at);
|
|
833
833
|
}), new Promise((u) => {
|
|
834
834
|
function f(d) {
|
|
835
|
-
function
|
|
835
|
+
function v() {
|
|
836
836
|
d === i ? u(o) : f(i);
|
|
837
837
|
}
|
|
838
|
-
d.then(
|
|
838
|
+
d.then(v, v);
|
|
839
839
|
}
|
|
840
840
|
f(i);
|
|
841
841
|
});
|
|
842
842
|
}
|
|
843
843
|
// @__NO_SIDE_EFFECTS__
|
|
844
|
-
function
|
|
844
|
+
function _l(e) {
|
|
845
845
|
const t = /* @__PURE__ */ Sn(e);
|
|
846
|
-
return lt ||
|
|
846
|
+
return lt || Ps(t), t;
|
|
847
847
|
}
|
|
848
848
|
// @__NO_SIDE_EFFECTS__
|
|
849
|
-
function
|
|
849
|
+
function gs(e) {
|
|
850
850
|
const t = /* @__PURE__ */ Sn(e);
|
|
851
|
-
return t.equals =
|
|
851
|
+
return t.equals = es, t;
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function gl(e) {
|
|
854
854
|
var t = e.effects;
|
|
855
855
|
if (t !== null) {
|
|
856
856
|
e.effects = null;
|
|
@@ -860,39 +860,39 @@ function _l(e) {
|
|
|
860
860
|
function Ci(e) {
|
|
861
861
|
var t, r = x, n = e.parent;
|
|
862
862
|
if (!ut && n !== null && (n.f & 24576) !== 0)
|
|
863
|
-
return
|
|
863
|
+
return qa(), e.v;
|
|
864
864
|
Ye(n);
|
|
865
865
|
try {
|
|
866
|
-
e.f &= ~jr,
|
|
866
|
+
e.f &= ~jr, gl(e), t = Us(e);
|
|
867
867
|
} finally {
|
|
868
868
|
Ye(r);
|
|
869
869
|
}
|
|
870
870
|
return t;
|
|
871
871
|
}
|
|
872
|
-
function
|
|
872
|
+
function bs(e) {
|
|
873
873
|
var t = Ci(e);
|
|
874
|
-
if (!e.equals(t) && (e.wv =
|
|
874
|
+
if (!e.equals(t) && (e.wv = Ns(), (!L?.is_fork || e.deps === null) && (L !== null ? L.capture(e, t, !0) : e.v = t, e.deps === null))) {
|
|
875
875
|
G(e, Se);
|
|
876
876
|
return;
|
|
877
877
|
}
|
|
878
|
-
ut || (oe !== null ? (Pi() ||
|
|
878
|
+
ut || (oe !== null ? (Pi() || L?.is_fork) && oe.set(e, t) : Ii(e));
|
|
879
879
|
}
|
|
880
|
-
function
|
|
880
|
+
function bl(e) {
|
|
881
881
|
if (e.effects !== null)
|
|
882
|
-
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(at), t.teardown =
|
|
882
|
+
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(at), t.teardown = La, t.ac = null, Hr(t, 0), Ni(t));
|
|
883
883
|
}
|
|
884
|
-
function
|
|
884
|
+
function ys(e) {
|
|
885
885
|
if (e.effects !== null)
|
|
886
886
|
for (const t of e.effects) t.teardown && gr(t);
|
|
887
887
|
}
|
|
888
|
-
var pi = /* @__PURE__ */ new Set(),
|
|
889
|
-
var
|
|
888
|
+
var pi = /* @__PURE__ */ new Set(), Gt = /* @__PURE__ */ new Map();
|
|
889
|
+
var ws = !1;
|
|
890
890
|
function Vr(e, t) {
|
|
891
891
|
var r = {
|
|
892
892
|
f: 0,
|
|
893
893
|
v: e,
|
|
894
894
|
reactions: null,
|
|
895
|
-
equals:
|
|
895
|
+
equals: Qo,
|
|
896
896
|
rv: 0,
|
|
897
897
|
wv: 0
|
|
898
898
|
};
|
|
@@ -901,44 +901,44 @@ function Vr(e, t) {
|
|
|
901
901
|
// @__NO_SIDE_EFFECTS__
|
|
902
902
|
function j(e, t) {
|
|
903
903
|
const r = Vr(e, t);
|
|
904
|
-
return
|
|
904
|
+
return Ps(r), r;
|
|
905
905
|
}
|
|
906
906
|
// @__NO_SIDE_EFFECTS__
|
|
907
|
-
function
|
|
907
|
+
function yl(e, t = !1, r = !0) {
|
|
908
908
|
const n = Vr(e);
|
|
909
|
-
if (t || (n.equals =
|
|
909
|
+
if (t || (n.equals = es), Wr && r && W !== null && W.l !== null) {
|
|
910
910
|
var i;
|
|
911
911
|
((i = W.l).s ?? (i.s = [])).push(n);
|
|
912
912
|
}
|
|
913
913
|
return n;
|
|
914
914
|
}
|
|
915
|
-
function
|
|
916
|
-
R !== null && (!Pe || (R.f & 131072) !== 0) && Gr() && (R.f & 4325394) !== 0 && (ke === null || !pr.call(ke, e)) &&
|
|
917
|
-
let n = r ?
|
|
915
|
+
function O(e, t, r = !1) {
|
|
916
|
+
R !== null && (!Pe || (R.f & 131072) !== 0) && Gr() && (R.f & 4325394) !== 0 && (ke === null || !pr.call(ke, e)) && Va();
|
|
917
|
+
let n = r ? At(t) : t;
|
|
918
918
|
return wn(e, n, gn);
|
|
919
919
|
}
|
|
920
920
|
function wn(e, t, r = null) {
|
|
921
921
|
if (!e.equals(t)) {
|
|
922
|
-
|
|
923
|
-
var n =
|
|
922
|
+
Gt.set(e, ut ? t : e.v);
|
|
923
|
+
var n = Xt.ensure();
|
|
924
924
|
if (n.capture(e, t), (e.f & 2) !== 0) {
|
|
925
925
|
const i = e;
|
|
926
926
|
(e.f & 2048) !== 0 && Ci(i), oe === null && Ii(i);
|
|
927
927
|
}
|
|
928
|
-
e.wv =
|
|
928
|
+
e.wv = Ns(), Ts(e, ze, r), Gr() && x !== null && (x.f & 1024) !== 0 && (x.f & 96) === 0 && (Te === null ? zl([e]) : Te.push(e)), !n.is_fork && pi.size > 0 && !ws && wl();
|
|
929
929
|
}
|
|
930
930
|
return t;
|
|
931
931
|
}
|
|
932
|
-
function
|
|
933
|
-
|
|
932
|
+
function wl() {
|
|
933
|
+
ws = !1;
|
|
934
934
|
for (const e of pi)
|
|
935
|
-
(e.f & 1024) !== 0 && G(e,
|
|
935
|
+
(e.f & 1024) !== 0 && G(e, Kt), qr(e) && gr(e);
|
|
936
936
|
pi.clear();
|
|
937
937
|
}
|
|
938
938
|
function Fr(e) {
|
|
939
|
-
|
|
939
|
+
O(e, e.v + 1);
|
|
940
940
|
}
|
|
941
|
-
function
|
|
941
|
+
function Ts(e, t, r) {
|
|
942
942
|
var n = e.reactions;
|
|
943
943
|
if (n !== null)
|
|
944
944
|
for (var i = Gr(), o = n.length, s = 0; s < o; s++) {
|
|
@@ -947,74 +947,74 @@ function ys(e, t, r) {
|
|
|
947
947
|
var f = (u & ze) === 0;
|
|
948
948
|
if (f && G(a, t), (u & 2) !== 0) {
|
|
949
949
|
var d = a;
|
|
950
|
-
oe?.delete(d), (u & 65536) === 0 && (u & 512 && (a.f |= jr),
|
|
950
|
+
oe?.delete(d), (u & 65536) === 0 && (u & 512 && (a.f |= jr), Ts(d, Kt, r));
|
|
951
951
|
} else if (f) {
|
|
952
|
-
var
|
|
953
|
-
(u & 16) !== 0 && je !== null && je.add(
|
|
952
|
+
var v = a;
|
|
953
|
+
(u & 16) !== 0 && je !== null && je.add(v), r !== null ? r.push(v) : Ri(v);
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
956
|
}
|
|
957
957
|
}
|
|
958
|
-
var
|
|
959
|
-
function
|
|
958
|
+
var Tl = /^[a-zA-Z_$][a-zA-Z_$0-9]*$/;
|
|
959
|
+
function At(e) {
|
|
960
960
|
if (typeof e != "object" || e === null || zr in e) return e;
|
|
961
|
-
const t =
|
|
962
|
-
if (t !==
|
|
963
|
-
var r = /* @__PURE__ */ new Map(), n =
|
|
964
|
-
if (
|
|
965
|
-
var p = R,
|
|
961
|
+
const t = qo(e);
|
|
962
|
+
if (t !== Ia && t !== xa) return e;
|
|
963
|
+
var r = /* @__PURE__ */ new Map(), n = Ea(e), i = /* @__PURE__ */ j(0), o = null, s = Vt, a = (v) => {
|
|
964
|
+
if (Vt === s) return v();
|
|
965
|
+
var p = R, m = Vt;
|
|
966
966
|
Ie(null), ho(s);
|
|
967
|
-
var _ =
|
|
968
|
-
return Ie(p), ho(
|
|
967
|
+
var _ = v();
|
|
968
|
+
return Ie(p), ho(m), _;
|
|
969
969
|
};
|
|
970
970
|
n && r.set("length", /* @__PURE__ */ j(e.length, o));
|
|
971
971
|
var u = "";
|
|
972
972
|
let f = !1;
|
|
973
|
-
function d(
|
|
973
|
+
function d(v) {
|
|
974
974
|
if (!f) {
|
|
975
|
-
f = !0, u =
|
|
976
|
-
for (const [p,
|
|
975
|
+
f = !0, u = v, io(i, `${u} version`);
|
|
976
|
+
for (const [p, m] of r) io(m, El(u, p));
|
|
977
977
|
f = !1;
|
|
978
978
|
}
|
|
979
979
|
}
|
|
980
980
|
return new Proxy(e, {
|
|
981
|
-
defineProperty(
|
|
982
|
-
(!("value" in
|
|
981
|
+
defineProperty(v, p, m) {
|
|
982
|
+
(!("value" in m) || m.configurable === !1 || m.enumerable === !1 || m.writable === !1) && Wa();
|
|
983
983
|
var _ = r.get(p);
|
|
984
984
|
return _ === void 0 ? a(() => {
|
|
985
|
-
var w = /* @__PURE__ */ j(
|
|
985
|
+
var w = /* @__PURE__ */ j(m.value, o);
|
|
986
986
|
return r.set(p, w), w;
|
|
987
|
-
}) :
|
|
987
|
+
}) : O(_, m.value, !0), !0;
|
|
988
988
|
},
|
|
989
|
-
deleteProperty(
|
|
990
|
-
var
|
|
991
|
-
if (
|
|
992
|
-
if (p in
|
|
989
|
+
deleteProperty(v, p) {
|
|
990
|
+
var m = r.get(p);
|
|
991
|
+
if (m === void 0) {
|
|
992
|
+
if (p in v) {
|
|
993
993
|
const _ = a(() => /* @__PURE__ */ j(K, o));
|
|
994
994
|
r.set(p, _), Fr(i);
|
|
995
995
|
}
|
|
996
996
|
} else
|
|
997
|
-
|
|
997
|
+
O(m, K), Fr(i);
|
|
998
998
|
return !0;
|
|
999
999
|
},
|
|
1000
|
-
get(
|
|
1000
|
+
get(v, p, m) {
|
|
1001
1001
|
if (p === zr) return e;
|
|
1002
|
-
var _ = r.get(p), w = p in
|
|
1003
|
-
if (_ === void 0 && (!w ||
|
|
1004
|
-
var N = /* @__PURE__ */ j(
|
|
1002
|
+
var _ = r.get(p), w = p in v;
|
|
1003
|
+
if (_ === void 0 && (!w || Bt(v, p)?.writable) && (_ = a(() => {
|
|
1004
|
+
var N = /* @__PURE__ */ j(At(w ? v[p] : K), o);
|
|
1005
1005
|
return N;
|
|
1006
1006
|
}), r.set(p, _)), _ !== void 0) {
|
|
1007
1007
|
var E = g(_);
|
|
1008
1008
|
return E === K ? void 0 : E;
|
|
1009
1009
|
}
|
|
1010
|
-
return Reflect.get(
|
|
1010
|
+
return Reflect.get(v, p, m);
|
|
1011
1011
|
},
|
|
1012
|
-
getOwnPropertyDescriptor(
|
|
1013
|
-
var
|
|
1014
|
-
if (
|
|
1012
|
+
getOwnPropertyDescriptor(v, p) {
|
|
1013
|
+
var m = Reflect.getOwnPropertyDescriptor(v, p);
|
|
1014
|
+
if (m && "value" in m) {
|
|
1015
1015
|
var _ = r.get(p);
|
|
1016
|
-
_ && (
|
|
1017
|
-
} else if (
|
|
1016
|
+
_ && (m.value = g(_));
|
|
1017
|
+
} else if (m === void 0) {
|
|
1018
1018
|
var w = r.get(p), E = w?.v;
|
|
1019
1019
|
if (w !== void 0 && E !== K) return {
|
|
1020
1020
|
enumerable: !0,
|
|
@@ -1023,78 +1023,78 @@ function kt(e) {
|
|
|
1023
1023
|
writable: !0
|
|
1024
1024
|
};
|
|
1025
1025
|
}
|
|
1026
|
-
return
|
|
1026
|
+
return m;
|
|
1027
1027
|
},
|
|
1028
|
-
has(
|
|
1028
|
+
has(v, p) {
|
|
1029
1029
|
if (p === zr) return !0;
|
|
1030
|
-
var
|
|
1031
|
-
return (
|
|
1032
|
-
var w = /* @__PURE__ */ j(_ ?
|
|
1030
|
+
var m = r.get(p), _ = m !== void 0 && m.v !== K || Reflect.has(v, p);
|
|
1031
|
+
return (m !== void 0 || x !== null && (!_ || Bt(v, p)?.writable)) && (m === void 0 && (m = a(() => {
|
|
1032
|
+
var w = /* @__PURE__ */ j(_ ? At(v[p]) : K, o);
|
|
1033
1033
|
return w;
|
|
1034
|
-
}), r.set(p,
|
|
1034
|
+
}), r.set(p, m)), g(m) === K) ? !1 : _;
|
|
1035
1035
|
},
|
|
1036
|
-
set(
|
|
1037
|
-
var w = r.get(p), E = p in
|
|
1038
|
-
if (n && p === "length") for (var N =
|
|
1036
|
+
set(v, p, m, _) {
|
|
1037
|
+
var w = r.get(p), E = p in v;
|
|
1038
|
+
if (n && p === "length") for (var N = m; N < w.v; N += 1) {
|
|
1039
1039
|
var ne = r.get(N + "");
|
|
1040
|
-
ne !== void 0 ?
|
|
1040
|
+
ne !== void 0 ? O(ne, K) : N in v && (ne = a(() => /* @__PURE__ */ j(K, o)), r.set(N + "", ne));
|
|
1041
1041
|
}
|
|
1042
1042
|
if (w === void 0)
|
|
1043
|
-
(!E ||
|
|
1043
|
+
(!E || Bt(v, p)?.writable) && (w = a(() => /* @__PURE__ */ j(void 0, o)), O(w, At(m)), r.set(p, w));
|
|
1044
1044
|
else {
|
|
1045
1045
|
E = w.v !== K;
|
|
1046
|
-
var P = a(() =>
|
|
1047
|
-
|
|
1046
|
+
var P = a(() => At(m));
|
|
1047
|
+
O(w, P);
|
|
1048
1048
|
}
|
|
1049
|
-
var M = Reflect.getOwnPropertyDescriptor(
|
|
1050
|
-
if (M?.set && M.set.call(_,
|
|
1049
|
+
var M = Reflect.getOwnPropertyDescriptor(v, p);
|
|
1050
|
+
if (M?.set && M.set.call(_, m), !E) {
|
|
1051
1051
|
if (n && typeof p == "string") {
|
|
1052
1052
|
var le = r.get("length"), Je = Number(p);
|
|
1053
|
-
Number.isInteger(Je) && Je >= le.v &&
|
|
1053
|
+
Number.isInteger(Je) && Je >= le.v && O(le, Je + 1);
|
|
1054
1054
|
}
|
|
1055
1055
|
Fr(i);
|
|
1056
1056
|
}
|
|
1057
1057
|
return !0;
|
|
1058
1058
|
},
|
|
1059
|
-
ownKeys(
|
|
1059
|
+
ownKeys(v) {
|
|
1060
1060
|
g(i);
|
|
1061
|
-
var p = Reflect.ownKeys(
|
|
1061
|
+
var p = Reflect.ownKeys(v).filter((w) => {
|
|
1062
1062
|
var E = r.get(w);
|
|
1063
1063
|
return E === void 0 || E.v !== K;
|
|
1064
1064
|
});
|
|
1065
|
-
for (var [
|
|
1065
|
+
for (var [m, _] of r) _.v !== K && !(m in v) && p.push(m);
|
|
1066
1066
|
return p;
|
|
1067
1067
|
},
|
|
1068
1068
|
setPrototypeOf() {
|
|
1069
|
-
|
|
1069
|
+
Ga();
|
|
1070
1070
|
}
|
|
1071
1071
|
});
|
|
1072
1072
|
}
|
|
1073
|
-
function
|
|
1074
|
-
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` :
|
|
1073
|
+
function El(e, t) {
|
|
1074
|
+
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : Tl.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
1075
1075
|
}
|
|
1076
|
-
var co,
|
|
1076
|
+
var co, kl, Es, ks, Ss;
|
|
1077
1077
|
function hi() {
|
|
1078
1078
|
if (co === void 0) {
|
|
1079
|
-
co = window,
|
|
1079
|
+
co = window, kl = document, Es = /Firefox/.test(navigator.userAgent);
|
|
1080
1080
|
var e = Element.prototype, t = Node.prototype, r = Text.prototype;
|
|
1081
|
-
|
|
1081
|
+
ks = Bt(t, "firstChild").get, Ss = Bt(t, "nextSibling").get, to(e) && (e.__click = void 0, e.__className = void 0, e.__attributes = null, e.__style = void 0, e.__e = void 0), to(r) && (r.__t = void 0);
|
|
1082
1082
|
}
|
|
1083
1083
|
}
|
|
1084
1084
|
function Ne(e = "") {
|
|
1085
1085
|
return document.createTextNode(e);
|
|
1086
1086
|
}
|
|
1087
1087
|
// @__NO_SIDE_EFFECTS__
|
|
1088
|
-
function
|
|
1089
|
-
return
|
|
1088
|
+
function _r(e) {
|
|
1089
|
+
return ks.call(e);
|
|
1090
1090
|
}
|
|
1091
1091
|
// @__NO_SIDE_EFFECTS__
|
|
1092
1092
|
function ft(e) {
|
|
1093
|
-
return
|
|
1093
|
+
return Ss.call(e);
|
|
1094
1094
|
}
|
|
1095
1095
|
function te(e, t) {
|
|
1096
|
-
if (!z) return /* @__PURE__ */
|
|
1097
|
-
var r = /* @__PURE__ */
|
|
1096
|
+
if (!z) return /* @__PURE__ */ _r(e);
|
|
1097
|
+
var r = /* @__PURE__ */ _r(D);
|
|
1098
1098
|
if (r === null) r = D.appendChild(Ne());
|
|
1099
1099
|
else if (t && r.nodeType !== 3) {
|
|
1100
1100
|
var n = Ne();
|
|
@@ -1104,7 +1104,7 @@ function te(e, t) {
|
|
|
1104
1104
|
}
|
|
1105
1105
|
function uo(e, t = !1) {
|
|
1106
1106
|
if (!z) {
|
|
1107
|
-
var r = /* @__PURE__ */
|
|
1107
|
+
var r = /* @__PURE__ */ _r(e);
|
|
1108
1108
|
return r instanceof Comment && r.data === "" ? /* @__PURE__ */ ft(r) : r;
|
|
1109
1109
|
}
|
|
1110
1110
|
if (t) {
|
|
@@ -1130,10 +1130,10 @@ function ye(e, t = 1, r = !1) {
|
|
|
1130
1130
|
}
|
|
1131
1131
|
return Ae(n), n;
|
|
1132
1132
|
}
|
|
1133
|
-
function
|
|
1133
|
+
function Sl(e) {
|
|
1134
1134
|
e.textContent = "";
|
|
1135
1135
|
}
|
|
1136
|
-
function
|
|
1136
|
+
function Al() {
|
|
1137
1137
|
return !lt || je !== null ? !1 : (x.f & ki) !== 0;
|
|
1138
1138
|
}
|
|
1139
1139
|
function $i(e, t, r) {
|
|
@@ -1147,14 +1147,14 @@ function An(e) {
|
|
|
1147
1147
|
t.remove(), e.nodeValue += t.nodeValue, t = e.nextSibling;
|
|
1148
1148
|
}
|
|
1149
1149
|
var fo = !1;
|
|
1150
|
-
function
|
|
1150
|
+
function Il() {
|
|
1151
1151
|
fo || (fo = !0, document.addEventListener("reset", (e) => {
|
|
1152
1152
|
Promise.resolve().then(() => {
|
|
1153
1153
|
if (!e.defaultPrevented) for (const t of e.target.elements) t.__on_r?.();
|
|
1154
1154
|
});
|
|
1155
1155
|
}, { capture: !0 }));
|
|
1156
1156
|
}
|
|
1157
|
-
function
|
|
1157
|
+
function As(e) {
|
|
1158
1158
|
var t = R, r = x;
|
|
1159
1159
|
Ie(null), Ye(null);
|
|
1160
1160
|
try {
|
|
@@ -1163,10 +1163,10 @@ function ks(e) {
|
|
|
1163
1163
|
Ie(t), Ye(r);
|
|
1164
1164
|
}
|
|
1165
1165
|
}
|
|
1166
|
-
function
|
|
1167
|
-
x === null && (R === null &&
|
|
1166
|
+
function xl(e) {
|
|
1167
|
+
x === null && (R === null && Fa(e), Ua()), ut && za(e);
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1169
|
+
function Ll(e, t) {
|
|
1170
1170
|
var r = t.last;
|
|
1171
1171
|
r === null ? t.last = t.first = e : (r.next = e, e.prev = r, t.last = e);
|
|
1172
1172
|
}
|
|
@@ -1189,9 +1189,9 @@ function qe(e, t) {
|
|
|
1189
1189
|
wv: 0,
|
|
1190
1190
|
ac: null
|
|
1191
1191
|
};
|
|
1192
|
-
|
|
1192
|
+
L?.register_created_effect(n);
|
|
1193
1193
|
var i = n;
|
|
1194
|
-
if ((e & 4) !== 0) vr !== null ? vr.push(n) :
|
|
1194
|
+
if ((e & 4) !== 0) vr !== null ? vr.push(n) : Xt.ensure().schedule(n);
|
|
1195
1195
|
else if (t !== null) {
|
|
1196
1196
|
try {
|
|
1197
1197
|
gr(n);
|
|
@@ -1200,7 +1200,7 @@ function qe(e, t) {
|
|
|
1200
1200
|
}
|
|
1201
1201
|
i.deps === null && i.teardown === null && i.nodes === null && i.first === i.last && (i.f & 524288) === 0 && (i = i.first, (e & 16) !== 0 && (e & 65536) !== 0 && i !== null && (i.f |= Si));
|
|
1202
1202
|
}
|
|
1203
|
-
if (i !== null && (i.parent = r, r !== null &&
|
|
1203
|
+
if (i !== null && (i.parent = r, r !== null && Ll(i, r), R !== null && (R.f & 2) !== 0 && (e & 64) === 0)) {
|
|
1204
1204
|
var o = R;
|
|
1205
1205
|
(o.effects ?? (o.effects = [])).push(i);
|
|
1206
1206
|
}
|
|
@@ -1209,30 +1209,30 @@ function qe(e, t) {
|
|
|
1209
1209
|
function Pi() {
|
|
1210
1210
|
return R !== null && !Pe;
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1212
|
+
function Ol(e) {
|
|
1213
1213
|
const t = qe(8, null);
|
|
1214
1214
|
return G(t, Se), t.teardown = e, t;
|
|
1215
1215
|
}
|
|
1216
1216
|
function un(e) {
|
|
1217
|
-
|
|
1217
|
+
xl("$effect");
|
|
1218
1218
|
var t = x.f;
|
|
1219
1219
|
if (!R && (t & 32) !== 0 && (t & 32768) === 0) {
|
|
1220
1220
|
var r = W;
|
|
1221
1221
|
(r.e ?? (r.e = [])).push(e);
|
|
1222
|
-
} else return
|
|
1222
|
+
} else return Is(e);
|
|
1223
1223
|
}
|
|
1224
|
-
function
|
|
1225
|
-
return qe(4 |
|
|
1224
|
+
function Is(e) {
|
|
1225
|
+
return qe(4 | Ma, e);
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1228
|
-
|
|
1227
|
+
function Rl(e) {
|
|
1228
|
+
Xt.ensure();
|
|
1229
1229
|
const t = qe(64 | br, e);
|
|
1230
1230
|
return () => {
|
|
1231
1231
|
fe(t);
|
|
1232
1232
|
};
|
|
1233
1233
|
}
|
|
1234
|
-
function
|
|
1235
|
-
|
|
1234
|
+
function Ml(e) {
|
|
1235
|
+
Xt.ensure();
|
|
1236
1236
|
const t = qe(64 | br, e);
|
|
1237
1237
|
return (r = {}) => new Promise((n) => {
|
|
1238
1238
|
r.outro ? Yr(t, () => {
|
|
@@ -1240,28 +1240,28 @@ function Ll(e) {
|
|
|
1240
1240
|
}) : (fe(t), n(void 0));
|
|
1241
1241
|
});
|
|
1242
1242
|
}
|
|
1243
|
-
function
|
|
1243
|
+
function xs(e) {
|
|
1244
1244
|
return qe(4, e);
|
|
1245
1245
|
}
|
|
1246
|
-
function
|
|
1247
|
-
return qe(
|
|
1246
|
+
function Cl(e) {
|
|
1247
|
+
return qe(Ca | br, e);
|
|
1248
1248
|
}
|
|
1249
1249
|
function Di(e, t = 0) {
|
|
1250
1250
|
return qe(8 | t, e);
|
|
1251
1251
|
}
|
|
1252
1252
|
function xr(e, t = [], r = [], n = []) {
|
|
1253
|
-
|
|
1253
|
+
hl(n, t, r, (i) => {
|
|
1254
1254
|
qe(8, () => e(...i.map(g)));
|
|
1255
1255
|
});
|
|
1256
1256
|
}
|
|
1257
|
-
function
|
|
1257
|
+
function Ls(e, t = 0) {
|
|
1258
1258
|
var r = qe(16 | t, e);
|
|
1259
1259
|
return r;
|
|
1260
1260
|
}
|
|
1261
1261
|
function ct(e) {
|
|
1262
1262
|
return qe(32 | br, e);
|
|
1263
1263
|
}
|
|
1264
|
-
function
|
|
1264
|
+
function Os(e) {
|
|
1265
1265
|
var t = e.teardown;
|
|
1266
1266
|
if (t !== null) {
|
|
1267
1267
|
const r = ut, n = R;
|
|
@@ -1277,14 +1277,14 @@ function Ni(e, t = !1) {
|
|
|
1277
1277
|
var r = e.first;
|
|
1278
1278
|
for (e.first = e.last = null; r !== null; ) {
|
|
1279
1279
|
const i = r.ac;
|
|
1280
|
-
i !== null &&
|
|
1280
|
+
i !== null && As(() => {
|
|
1281
1281
|
i.abort(at);
|
|
1282
1282
|
});
|
|
1283
1283
|
var n = r.next;
|
|
1284
1284
|
(r.f & 64) !== 0 ? r.parent = null : fe(r, t), r = n;
|
|
1285
1285
|
}
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1287
|
+
function $l(e) {
|
|
1288
1288
|
for (var t = e.first; t !== null; ) {
|
|
1289
1289
|
var r = t.next;
|
|
1290
1290
|
(t.f & 32) === 0 && fe(t), t = r;
|
|
@@ -1292,26 +1292,26 @@ function Ml(e) {
|
|
|
1292
1292
|
}
|
|
1293
1293
|
function fe(e, t = !0) {
|
|
1294
1294
|
var r = !1;
|
|
1295
|
-
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (
|
|
1295
|
+
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (Pl(e.nodes.start, e.nodes.end), r = !0), G(e, ro), Ni(e, t && !r), Hr(e, 0);
|
|
1296
1296
|
var n = e.nodes && e.nodes.t;
|
|
1297
1297
|
if (n !== null) for (const o of n) o.stop();
|
|
1298
|
-
|
|
1298
|
+
Os(e), e.f ^= ro, e.f |= Ra;
|
|
1299
1299
|
var i = e.parent;
|
|
1300
|
-
i !== null && i.first !== null &&
|
|
1300
|
+
i !== null && i.first !== null && Rs(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1301
1301
|
}
|
|
1302
|
-
function
|
|
1302
|
+
function Pl(e, t) {
|
|
1303
1303
|
for (; e !== null; ) {
|
|
1304
1304
|
var r = e === t ? null : /* @__PURE__ */ ft(e);
|
|
1305
1305
|
e.remove(), e = r;
|
|
1306
1306
|
}
|
|
1307
1307
|
}
|
|
1308
|
-
function
|
|
1308
|
+
function Rs(e) {
|
|
1309
1309
|
var t = e.parent, r = e.prev, n = e.next;
|
|
1310
1310
|
r !== null && (r.next = n), n !== null && (n.prev = r), t !== null && (t.first === e && (t.first = n), t.last === e && (t.last = r));
|
|
1311
1311
|
}
|
|
1312
1312
|
function Yr(e, t, r = !0) {
|
|
1313
1313
|
var n = [];
|
|
1314
|
-
|
|
1314
|
+
Ms(e, n, !0);
|
|
1315
1315
|
var i = () => {
|
|
1316
1316
|
r && fe(e), t && t();
|
|
1317
1317
|
}, o = n.length;
|
|
@@ -1320,7 +1320,7 @@ function Yr(e, t, r = !0) {
|
|
|
1320
1320
|
for (var a of n) a.out(s);
|
|
1321
1321
|
} else i();
|
|
1322
1322
|
}
|
|
1323
|
-
function
|
|
1323
|
+
function Ms(e, t, r) {
|
|
1324
1324
|
if ((e.f & 8192) === 0) {
|
|
1325
1325
|
e.f ^= Ei;
|
|
1326
1326
|
var n = e.nodes && e.nodes.t;
|
|
@@ -1330,35 +1330,35 @@ function Ls(e, t, r) {
|
|
|
1330
1330
|
var o = i.next;
|
|
1331
1331
|
if ((i.f & 64) === 0) {
|
|
1332
1332
|
var s = (i.f & 65536) !== 0 || (i.f & 32) !== 0 && (e.f & 16) !== 0;
|
|
1333
|
-
|
|
1333
|
+
Ms(i, t, s ? r : !1);
|
|
1334
1334
|
}
|
|
1335
1335
|
i = o;
|
|
1336
1336
|
}
|
|
1337
1337
|
}
|
|
1338
1338
|
}
|
|
1339
|
-
function
|
|
1340
|
-
|
|
1339
|
+
function Dl(e) {
|
|
1340
|
+
Cs(e, !0);
|
|
1341
1341
|
}
|
|
1342
|
-
function
|
|
1342
|
+
function Cs(e, t) {
|
|
1343
1343
|
if ((e.f & 8192) !== 0) {
|
|
1344
|
-
e.f ^= Ei, (e.f & 1024) === 0 && (G(e, ze),
|
|
1344
|
+
e.f ^= Ei, (e.f & 1024) === 0 && (G(e, ze), Xt.ensure().schedule(e));
|
|
1345
1345
|
for (var r = e.first; r !== null; ) {
|
|
1346
1346
|
var n = r.next, i = (r.f & 65536) !== 0 || (r.f & 32) !== 0;
|
|
1347
|
-
|
|
1347
|
+
Cs(r, i ? t : !1), r = n;
|
|
1348
1348
|
}
|
|
1349
1349
|
var o = e.nodes && e.nodes.t;
|
|
1350
1350
|
if (o !== null)
|
|
1351
1351
|
for (const s of o) (s.is_global || t) && s.in();
|
|
1352
1352
|
}
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1354
|
+
function $s(e, t) {
|
|
1355
1355
|
if (e.nodes)
|
|
1356
1356
|
for (var r = e.nodes.start, n = e.nodes.end; r !== null; ) {
|
|
1357
1357
|
var i = r === n ? null : /* @__PURE__ */ ft(r);
|
|
1358
1358
|
t.append(r), r = i;
|
|
1359
1359
|
}
|
|
1360
1360
|
}
|
|
1361
|
-
var
|
|
1361
|
+
var Nl = null, fn = !1, ut = !1;
|
|
1362
1362
|
function po(e) {
|
|
1363
1363
|
ut = e;
|
|
1364
1364
|
}
|
|
@@ -1371,19 +1371,19 @@ function Ye(e) {
|
|
|
1371
1371
|
x = e;
|
|
1372
1372
|
}
|
|
1373
1373
|
var ke = null;
|
|
1374
|
-
function
|
|
1374
|
+
function Ps(e) {
|
|
1375
1375
|
R !== null && (!lt || (R.f & 2) !== 0) && (ke === null ? ke = [e] : ke.push(e));
|
|
1376
1376
|
}
|
|
1377
1377
|
var ue = null, pe = 0, Te = null;
|
|
1378
|
-
function
|
|
1378
|
+
function zl(e) {
|
|
1379
1379
|
Te = e;
|
|
1380
1380
|
}
|
|
1381
|
-
var
|
|
1381
|
+
var Ds = 1, Ft = 0, Vt = Ft;
|
|
1382
1382
|
function ho(e) {
|
|
1383
|
-
|
|
1383
|
+
Vt = e;
|
|
1384
1384
|
}
|
|
1385
|
-
function
|
|
1386
|
-
return
|
|
1385
|
+
function Ns() {
|
|
1386
|
+
return ++Ds;
|
|
1387
1387
|
}
|
|
1388
1388
|
function qr(e) {
|
|
1389
1389
|
var t = e.f;
|
|
@@ -1391,57 +1391,57 @@ function qr(e) {
|
|
|
1391
1391
|
if (t & 2 && (e.f &= ~jr), (t & 4096) !== 0) {
|
|
1392
1392
|
for (var r = e.deps, n = r.length, i = 0; i < n; i++) {
|
|
1393
1393
|
var o = r[i];
|
|
1394
|
-
if (qr(o) &&
|
|
1394
|
+
if (qr(o) && bs(o), o.wv > e.wv) return !0;
|
|
1395
1395
|
}
|
|
1396
1396
|
(t & 512) !== 0 && oe === null && G(e, Se);
|
|
1397
1397
|
}
|
|
1398
1398
|
return !1;
|
|
1399
1399
|
}
|
|
1400
|
-
function
|
|
1400
|
+
function zs(e, t, r = !0) {
|
|
1401
1401
|
var n = e.reactions;
|
|
1402
1402
|
if (n !== null && !(!lt && ke !== null && pr.call(ke, e)))
|
|
1403
1403
|
for (var i = 0; i < n.length; i++) {
|
|
1404
1404
|
var o = n[i];
|
|
1405
|
-
(o.f & 2) !== 0 ?
|
|
1405
|
+
(o.f & 2) !== 0 ? zs(o, t, !1) : t === o && (r ? G(o, ze) : (o.f & 1024) !== 0 && G(o, Kt), Ri(o));
|
|
1406
1406
|
}
|
|
1407
1407
|
}
|
|
1408
|
-
function
|
|
1409
|
-
var t = ue, r = pe, n = Te, i = R, o = ke, s = W, a = Pe, u =
|
|
1410
|
-
ue = null, pe = 0, Te = null, R = (f & 96) === 0 ? e : null, ke = null, hr(e.ctx), Pe = !1,
|
|
1408
|
+
function Us(e) {
|
|
1409
|
+
var t = ue, r = pe, n = Te, i = R, o = ke, s = W, a = Pe, u = Vt, f = e.f;
|
|
1410
|
+
ue = null, pe = 0, Te = null, R = (f & 96) === 0 ? e : null, ke = null, hr(e.ctx), Pe = !1, Vt = ++Ft, e.ac !== null && (As(() => {
|
|
1411
1411
|
e.ac.abort(at);
|
|
1412
1412
|
}), e.ac = null);
|
|
1413
1413
|
try {
|
|
1414
1414
|
e.f |= no;
|
|
1415
|
-
var d = e.fn,
|
|
1415
|
+
var d = e.fn, v = d();
|
|
1416
1416
|
e.f |= ki;
|
|
1417
|
-
var p = e.deps,
|
|
1417
|
+
var p = e.deps, m = L?.is_fork;
|
|
1418
1418
|
if (ue !== null) {
|
|
1419
1419
|
var _;
|
|
1420
|
-
if (
|
|
1420
|
+
if (m || Hr(e, pe), p !== null && pe > 0)
|
|
1421
1421
|
for (p.length = pe + ue.length, _ = 0; _ < ue.length; _++) p[pe + _] = ue[_];
|
|
1422
1422
|
else e.deps = p = ue;
|
|
1423
1423
|
if (Pi() && (e.f & 512) !== 0) for (_ = pe; _ < p.length; _++) {
|
|
1424
1424
|
var w;
|
|
1425
1425
|
((w = p[_]).reactions ?? (w.reactions = [])).push(e);
|
|
1426
1426
|
}
|
|
1427
|
-
} else !
|
|
1428
|
-
if (Gr() && Te !== null && !Pe && p !== null && (e.f & 6146) === 0) for (_ = 0; _ < Te.length; _++)
|
|
1427
|
+
} else !m && p !== null && pe < p.length && (Hr(e, pe), p.length = pe);
|
|
1428
|
+
if (Gr() && Te !== null && !Pe && p !== null && (e.f & 6146) === 0) for (_ = 0; _ < Te.length; _++) zs(Te[_], e);
|
|
1429
1429
|
if (i !== null && i !== e) {
|
|
1430
|
-
if (
|
|
1431
|
-
if (t !== null) for (const E of t) E.rv =
|
|
1430
|
+
if (Ft++, i.deps !== null) for (let E = 0; E < r; E += 1) i.deps[E].rv = Ft;
|
|
1431
|
+
if (t !== null) for (const E of t) E.rv = Ft;
|
|
1432
1432
|
Te !== null && (n === null ? n = Te : n.push(...Te));
|
|
1433
1433
|
}
|
|
1434
|
-
return (e.f & 8388608) !== 0 && (e.f ^=
|
|
1434
|
+
return (e.f & 8388608) !== 0 && (e.f ^= _n), v;
|
|
1435
1435
|
} catch (E) {
|
|
1436
|
-
return
|
|
1436
|
+
return is(E);
|
|
1437
1437
|
} finally {
|
|
1438
|
-
e.f ^= no, ue = t, pe = r, Te = n, R = i, ke = o, hr(s), Pe = a,
|
|
1438
|
+
e.f ^= no, ue = t, pe = r, Te = n, R = i, ke = o, hr(s), Pe = a, Vt = u;
|
|
1439
1439
|
}
|
|
1440
1440
|
}
|
|
1441
|
-
function
|
|
1441
|
+
function Ul(e, t) {
|
|
1442
1442
|
let r = t.reactions;
|
|
1443
1443
|
if (r !== null) {
|
|
1444
|
-
var n =
|
|
1444
|
+
var n = ka.call(r, e);
|
|
1445
1445
|
if (n !== -1) {
|
|
1446
1446
|
var i = r.length - 1;
|
|
1447
1447
|
i === 0 ? r = t.reactions = null : (r[n] = r[i], r.pop());
|
|
@@ -1449,13 +1449,13 @@ function Nl(e, t) {
|
|
|
1449
1449
|
}
|
|
1450
1450
|
if (r === null && (t.f & 2) !== 0 && (ue === null || !pr.call(ue, t))) {
|
|
1451
1451
|
var o = t;
|
|
1452
|
-
(o.f & 512) !== 0 && (o.f ^= 512, o.f &= ~jr), o.v !== K && Ii(o),
|
|
1452
|
+
(o.f & 512) !== 0 && (o.f ^= 512, o.f &= ~jr), o.v !== K && Ii(o), bl(o), Hr(o, 0);
|
|
1453
1453
|
}
|
|
1454
1454
|
}
|
|
1455
1455
|
function Hr(e, t) {
|
|
1456
1456
|
var r = e.deps;
|
|
1457
1457
|
if (r !== null)
|
|
1458
|
-
for (var n = t; n < r.length; n++)
|
|
1458
|
+
for (var n = t; n < r.length; n++) Ul(e, r[n]);
|
|
1459
1459
|
}
|
|
1460
1460
|
function gr(e) {
|
|
1461
1461
|
var t = e.f;
|
|
@@ -1465,9 +1465,9 @@ function gr(e) {
|
|
|
1465
1465
|
if (x = e, fn = !0, 0)
|
|
1466
1466
|
var i, o;
|
|
1467
1467
|
try {
|
|
1468
|
-
(t & 16777232) !== 0 ?
|
|
1469
|
-
var s =
|
|
1470
|
-
if (e.teardown = typeof s == "function" ? s : null, e.wv =
|
|
1468
|
+
(t & 16777232) !== 0 ? $l(e) : Ni(e), Os(e);
|
|
1469
|
+
var s = Us(e);
|
|
1470
|
+
if (e.teardown = typeof s == "function" ? s : null, e.wv = Ds, 0)
|
|
1471
1471
|
for (var a of e.deps) ;
|
|
1472
1472
|
} finally {
|
|
1473
1473
|
fn = n, x = r;
|
|
@@ -1476,10 +1476,10 @@ function gr(e) {
|
|
|
1476
1476
|
}
|
|
1477
1477
|
function g(e) {
|
|
1478
1478
|
var t = (e.f & 2) !== 0;
|
|
1479
|
-
if (
|
|
1479
|
+
if (Nl?.add(e), R !== null && !Pe && !(x !== null && (x.f & 16384) !== 0) && (ke === null || !pr.call(ke, e))) {
|
|
1480
1480
|
var r = R.deps;
|
|
1481
1481
|
if ((R.f & 2097152) !== 0)
|
|
1482
|
-
e.rv <
|
|
1482
|
+
e.rv < Ft && (e.rv = Ft, ue === null && r !== null && r[pe] === e ? pe++ : ue === null ? ue = [e] : ue.push(e));
|
|
1483
1483
|
else {
|
|
1484
1484
|
var n;
|
|
1485
1485
|
((n = R).deps ?? (n.deps = [])).push(e);
|
|
@@ -1495,30 +1495,30 @@ function g(e) {
|
|
|
1495
1495
|
var s, a;
|
|
1496
1496
|
}
|
|
1497
1497
|
}
|
|
1498
|
-
if (ut &&
|
|
1498
|
+
if (ut && Gt.has(e)) return Gt.get(e);
|
|
1499
1499
|
if (t) {
|
|
1500
1500
|
var u = e;
|
|
1501
1501
|
if (ut) {
|
|
1502
1502
|
var f = u.v;
|
|
1503
|
-
return ((u.f & 1024) === 0 && u.reactions !== null ||
|
|
1503
|
+
return ((u.f & 1024) === 0 && u.reactions !== null || Bs(u)) && (f = Ci(u)), Gt.set(u, f), f;
|
|
1504
1504
|
}
|
|
1505
|
-
var d = (u.f & 512) === 0 && !Pe && R !== null && (fn || (R.f & 512) !== 0),
|
|
1506
|
-
qr(u) && (d && (u.f |= 512),
|
|
1505
|
+
var d = (u.f & 512) === 0 && !Pe && R !== null && (fn || (R.f & 512) !== 0), v = (u.f & ki) === 0;
|
|
1506
|
+
qr(u) && (d && (u.f |= 512), bs(u)), d && !v && (ys(u), Fs(u));
|
|
1507
1507
|
}
|
|
1508
1508
|
if (oe?.has(e)) return oe.get(e);
|
|
1509
1509
|
if ((e.f & 8388608) !== 0) throw e.v;
|
|
1510
1510
|
return e.v;
|
|
1511
1511
|
}
|
|
1512
|
-
function
|
|
1512
|
+
function Fs(e) {
|
|
1513
1513
|
if (e.f |= 512, e.deps !== null)
|
|
1514
1514
|
for (const t of e.deps)
|
|
1515
|
-
(t.reactions ?? (t.reactions = [])).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (
|
|
1515
|
+
(t.reactions ?? (t.reactions = [])).push(e), (t.f & 2) !== 0 && (t.f & 512) === 0 && (ys(t), Fs(t));
|
|
1516
1516
|
}
|
|
1517
|
-
function
|
|
1517
|
+
function Bs(e) {
|
|
1518
1518
|
if (e.v === K) return !0;
|
|
1519
1519
|
if (e.deps === null) return !1;
|
|
1520
1520
|
for (const t of e.deps)
|
|
1521
|
-
if (
|
|
1521
|
+
if (Gt.has(t) || (t.f & 2) !== 0 && Bs(t)) return !0;
|
|
1522
1522
|
return !1;
|
|
1523
1523
|
}
|
|
1524
1524
|
function In(e) {
|
|
@@ -1529,16 +1529,16 @@ function In(e) {
|
|
|
1529
1529
|
Pe = t;
|
|
1530
1530
|
}
|
|
1531
1531
|
}
|
|
1532
|
-
var ur = /* @__PURE__ */ Symbol("events"),
|
|
1532
|
+
var ur = /* @__PURE__ */ Symbol("events"), Hs = /* @__PURE__ */ new Set(), vi = /* @__PURE__ */ new Set();
|
|
1533
1533
|
function ir(e, t, r) {
|
|
1534
1534
|
(t[ur] ?? (t[ur] = {}))[e] = r;
|
|
1535
1535
|
}
|
|
1536
|
-
function
|
|
1537
|
-
for (var t = 0; t < e.length; t++)
|
|
1536
|
+
function Fl(e) {
|
|
1537
|
+
for (var t = 0; t < e.length; t++) Hs.add(e[t]);
|
|
1538
1538
|
for (var r of vi) r(e);
|
|
1539
1539
|
}
|
|
1540
1540
|
var vo = null;
|
|
1541
|
-
function
|
|
1541
|
+
function mo(e) {
|
|
1542
1542
|
var t = this, r = t.ownerDocument, n = e.type, i = e.composedPath?.() || [], o = i[0] || e.target;
|
|
1543
1543
|
vo = e;
|
|
1544
1544
|
var s = 0, a = vo === e && e[ur];
|
|
@@ -1553,46 +1553,46 @@ function _o(e) {
|
|
|
1553
1553
|
u <= f && (s = u);
|
|
1554
1554
|
}
|
|
1555
1555
|
if (o = i[s] || e.target, o !== t) {
|
|
1556
|
-
|
|
1556
|
+
mn(e, "currentTarget", {
|
|
1557
1557
|
configurable: !0,
|
|
1558
1558
|
get() {
|
|
1559
1559
|
return o || r;
|
|
1560
1560
|
}
|
|
1561
1561
|
});
|
|
1562
|
-
var d = R,
|
|
1562
|
+
var d = R, v = x;
|
|
1563
1563
|
Ie(null), Ye(null);
|
|
1564
1564
|
try {
|
|
1565
|
-
for (var p,
|
|
1565
|
+
for (var p, m = []; o !== null; ) {
|
|
1566
1566
|
var _ = o.assignedSlot || o.parentNode || o.host || null;
|
|
1567
1567
|
try {
|
|
1568
1568
|
var w = o[ur]?.[n];
|
|
1569
1569
|
w != null && (!o.disabled || e.target === o) && w.call(o, e);
|
|
1570
1570
|
} catch (E) {
|
|
1571
|
-
p ?
|
|
1571
|
+
p ? m.push(E) : p = E;
|
|
1572
1572
|
}
|
|
1573
1573
|
if (e.cancelBubble || _ === t || _ === null) break;
|
|
1574
1574
|
o = _;
|
|
1575
1575
|
}
|
|
1576
1576
|
if (p) {
|
|
1577
|
-
for (let E of
|
|
1577
|
+
for (let E of m) queueMicrotask(() => {
|
|
1578
1578
|
throw E;
|
|
1579
1579
|
});
|
|
1580
1580
|
throw p;
|
|
1581
1581
|
}
|
|
1582
1582
|
} finally {
|
|
1583
|
-
e[ur] = t, delete e.currentTarget, Ie(d), Ye(
|
|
1583
|
+
e[ur] = t, delete e.currentTarget, Ie(d), Ye(v);
|
|
1584
1584
|
}
|
|
1585
1585
|
}
|
|
1586
1586
|
}
|
|
1587
|
-
var
|
|
1588
|
-
function
|
|
1589
|
-
return
|
|
1587
|
+
var Bl = globalThis?.window?.trustedTypes && /* @__PURE__ */ globalThis.window.trustedTypes.createPolicy("svelte-trusted-html", { createHTML: (e) => e });
|
|
1588
|
+
function Hl(e) {
|
|
1589
|
+
return Bl?.createHTML(e) ?? e;
|
|
1590
1590
|
}
|
|
1591
|
-
function
|
|
1591
|
+
function jl(e) {
|
|
1592
1592
|
var t = $i("template");
|
|
1593
|
-
return t.innerHTML =
|
|
1593
|
+
return t.innerHTML = Hl(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1594
1594
|
}
|
|
1595
|
-
function
|
|
1595
|
+
function It(e, t) {
|
|
1596
1596
|
var r = x;
|
|
1597
1597
|
r.nodes === null && (r.nodes = {
|
|
1598
1598
|
start: e,
|
|
@@ -1606,29 +1606,29 @@ function Ke(e, t) {
|
|
|
1606
1606
|
var r = (t & 1) !== 0, n = (t & 2) !== 0, i, o = !e.startsWith("<!>");
|
|
1607
1607
|
return () => {
|
|
1608
1608
|
if (z)
|
|
1609
|
-
return
|
|
1610
|
-
i === void 0 && (i =
|
|
1611
|
-
var s = n ||
|
|
1609
|
+
return It(D, null), D;
|
|
1610
|
+
i === void 0 && (i = jl(o ? e : "<!>" + e), r || (i = /* @__PURE__ */ _r(i)));
|
|
1611
|
+
var s = n || Es ? document.importNode(i, !0) : i.cloneNode(!0);
|
|
1612
1612
|
if (r) {
|
|
1613
|
-
var a = /* @__PURE__ */
|
|
1614
|
-
|
|
1615
|
-
} else
|
|
1613
|
+
var a = /* @__PURE__ */ _r(s), u = s.lastChild;
|
|
1614
|
+
It(a, u);
|
|
1615
|
+
} else It(s, s);
|
|
1616
1616
|
return s;
|
|
1617
1617
|
};
|
|
1618
1618
|
}
|
|
1619
|
-
function
|
|
1619
|
+
function Wl(e = "") {
|
|
1620
1620
|
if (!z) {
|
|
1621
1621
|
var t = Ne(e + "");
|
|
1622
|
-
return
|
|
1622
|
+
return It(t, t), t;
|
|
1623
1623
|
}
|
|
1624
1624
|
var r = D;
|
|
1625
|
-
return r.nodeType !== 3 ? (r.before(r = Ne()), Ae(r)) : An(r),
|
|
1625
|
+
return r.nodeType !== 3 ? (r.before(r = Ne()), Ae(r)) : An(r), It(r, r), r;
|
|
1626
1626
|
}
|
|
1627
|
-
function
|
|
1627
|
+
function Gl() {
|
|
1628
1628
|
if (z)
|
|
1629
|
-
return
|
|
1629
|
+
return It(D, null), D;
|
|
1630
1630
|
var e = document.createDocumentFragment(), t = document.createComment(""), r = Ne();
|
|
1631
|
-
return e.append(t, r),
|
|
1631
|
+
return e.append(t, r), It(t, r), e;
|
|
1632
1632
|
}
|
|
1633
1633
|
function de(e, t) {
|
|
1634
1634
|
if (z) {
|
|
@@ -1638,7 +1638,7 @@ function de(e, t) {
|
|
|
1638
1638
|
}
|
|
1639
1639
|
e !== null && e.before(t);
|
|
1640
1640
|
}
|
|
1641
|
-
var
|
|
1641
|
+
var Vl = [
|
|
1642
1642
|
"allowfullscreen",
|
|
1643
1643
|
"async",
|
|
1644
1644
|
"autofocus",
|
|
@@ -1667,8 +1667,8 @@ var Wl = [
|
|
|
1667
1667
|
"defer",
|
|
1668
1668
|
"disablepictureinpicture",
|
|
1669
1669
|
"disableremoteplayback"
|
|
1670
|
-
],
|
|
1671
|
-
...
|
|
1670
|
+
], df = [
|
|
1671
|
+
...Vl,
|
|
1672
1672
|
"formNoValidate",
|
|
1673
1673
|
"isMap",
|
|
1674
1674
|
"noModule",
|
|
@@ -1683,17 +1683,17 @@ var Wl = [
|
|
|
1683
1683
|
"allowFullscreen",
|
|
1684
1684
|
"disablePictureInPicture",
|
|
1685
1685
|
"disableRemotePlayback"
|
|
1686
|
-
],
|
|
1687
|
-
function
|
|
1688
|
-
return
|
|
1686
|
+
], Yl = ["touchstart", "touchmove"];
|
|
1687
|
+
function ql(e) {
|
|
1688
|
+
return Yl.includes(e);
|
|
1689
1689
|
}
|
|
1690
|
-
var
|
|
1690
|
+
var Kl = [
|
|
1691
1691
|
"$state",
|
|
1692
1692
|
"$state.raw",
|
|
1693
1693
|
"$derived",
|
|
1694
1694
|
"$derived.by"
|
|
1695
|
-
],
|
|
1696
|
-
...
|
|
1695
|
+
], pf = [
|
|
1696
|
+
...Kl,
|
|
1697
1697
|
"$state.eager",
|
|
1698
1698
|
"$state.snapshot",
|
|
1699
1699
|
"$props",
|
|
@@ -1708,22 +1708,22 @@ var Yl = [
|
|
|
1708
1708
|
"$inspect().with",
|
|
1709
1709
|
"$inspect.trace",
|
|
1710
1710
|
"$host"
|
|
1711
|
-
],
|
|
1711
|
+
], _o = !0;
|
|
1712
1712
|
function nn(e, t) {
|
|
1713
1713
|
var r = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1714
1714
|
r !== (e.__t ?? (e.__t = e.nodeValue)) && (e.__t = r, e.nodeValue = `${r}`);
|
|
1715
1715
|
}
|
|
1716
|
-
function
|
|
1717
|
-
return
|
|
1716
|
+
function js(e, t) {
|
|
1717
|
+
return Ws(e, t);
|
|
1718
1718
|
}
|
|
1719
|
-
function
|
|
1719
|
+
function Xl(e, t) {
|
|
1720
1720
|
hi(), t.intro = t.intro ?? !1;
|
|
1721
1721
|
const r = t.target, n = z, i = D;
|
|
1722
1722
|
try {
|
|
1723
|
-
for (var o = /* @__PURE__ */
|
|
1723
|
+
for (var o = /* @__PURE__ */ _r(r); o && (o.nodeType !== 8 || o.data !== "["); ) o = /* @__PURE__ */ ft(o);
|
|
1724
1724
|
if (!o) throw dr;
|
|
1725
1725
|
cr(!0), Ae(o);
|
|
1726
|
-
const s =
|
|
1726
|
+
const s = Ws(e, {
|
|
1727
1727
|
...t,
|
|
1728
1728
|
anchor: o
|
|
1729
1729
|
});
|
|
@@ -1731,83 +1731,83 @@ function ql(e, t) {
|
|
|
1731
1731
|
} catch (s) {
|
|
1732
1732
|
if (s instanceof Error && s.message.split(`
|
|
1733
1733
|
`).some((a) => a.startsWith("https://svelte.dev/e/"))) throw s;
|
|
1734
|
-
return s !== dr && console.warn("Failed to hydrate: ", s), t.recover === !1 &&
|
|
1734
|
+
return s !== dr && console.warn("Failed to hydrate: ", s), t.recover === !1 && Ha(), hi(), Sl(r), cr(!1), js(e, t);
|
|
1735
1735
|
} finally {
|
|
1736
1736
|
cr(n), Ae(i);
|
|
1737
1737
|
}
|
|
1738
1738
|
}
|
|
1739
1739
|
var on = /* @__PURE__ */ new Map();
|
|
1740
|
-
function
|
|
1740
|
+
function Ws(e, { target: t, anchor: r, props: n = {}, events: i, context: o, intro: s = !0, transformError: a }) {
|
|
1741
1741
|
hi();
|
|
1742
|
-
var u = void 0, f =
|
|
1742
|
+
var u = void 0, f = Ml(() => {
|
|
1743
1743
|
var d = r ?? t.appendChild(Ne());
|
|
1744
|
-
|
|
1745
|
-
} }, (
|
|
1746
|
-
|
|
1744
|
+
cl(d, { pending: () => {
|
|
1745
|
+
} }, (m) => {
|
|
1746
|
+
ts({});
|
|
1747
1747
|
var _ = W;
|
|
1748
|
-
if (o && (_.c = o), i && (n.$$events = i), z &&
|
|
1748
|
+
if (o && (_.c = o), i && (n.$$events = i), z && It(m, null), _o = s, u = e(m, n) || {}, _o = !0, z && (x.nodes.end = D, D === null || D.nodeType !== 8 || D.data !== "]"))
|
|
1749
1749
|
throw kn(), dr;
|
|
1750
|
-
|
|
1750
|
+
rs();
|
|
1751
1751
|
}, a);
|
|
1752
|
-
var
|
|
1753
|
-
for (var _ = 0; _ <
|
|
1754
|
-
var w =
|
|
1755
|
-
if (!
|
|
1756
|
-
|
|
1757
|
-
var E =
|
|
1752
|
+
var v = /* @__PURE__ */ new Set(), p = (m) => {
|
|
1753
|
+
for (var _ = 0; _ < m.length; _++) {
|
|
1754
|
+
var w = m[_];
|
|
1755
|
+
if (!v.has(w)) {
|
|
1756
|
+
v.add(w);
|
|
1757
|
+
var E = ql(w);
|
|
1758
1758
|
for (const P of [t, document]) {
|
|
1759
1759
|
var N = on.get(P);
|
|
1760
1760
|
N === void 0 && (N = /* @__PURE__ */ new Map(), on.set(P, N));
|
|
1761
1761
|
var ne = N.get(w);
|
|
1762
|
-
ne === void 0 ? (P.addEventListener(w,
|
|
1762
|
+
ne === void 0 ? (P.addEventListener(w, mo, { passive: E }), N.set(w, 1)) : N.set(w, ne + 1);
|
|
1763
1763
|
}
|
|
1764
1764
|
}
|
|
1765
1765
|
}
|
|
1766
1766
|
};
|
|
1767
|
-
return p(
|
|
1768
|
-
for (var
|
|
1769
|
-
var _ = on.get(E), w = _.get(
|
|
1770
|
-
--w == 0 ? (E.removeEventListener(
|
|
1767
|
+
return p(Sa(Hs)), vi.add(p), () => {
|
|
1768
|
+
for (var m of v) for (const E of [t, document]) {
|
|
1769
|
+
var _ = on.get(E), w = _.get(m);
|
|
1770
|
+
--w == 0 ? (E.removeEventListener(m, mo), _.delete(m), _.size === 0 && on.delete(E)) : _.set(m, w);
|
|
1771
1771
|
}
|
|
1772
1772
|
vi.delete(p), d !== r && d.parentNode?.removeChild(d);
|
|
1773
1773
|
};
|
|
1774
1774
|
});
|
|
1775
|
-
return
|
|
1775
|
+
return mi.set(u, f), u;
|
|
1776
1776
|
}
|
|
1777
|
-
var
|
|
1778
|
-
function
|
|
1779
|
-
const r =
|
|
1780
|
-
return r ? (
|
|
1777
|
+
var mi = /* @__PURE__ */ new WeakMap();
|
|
1778
|
+
function Jl(e, t) {
|
|
1779
|
+
const r = mi.get(e);
|
|
1780
|
+
return r ? (mi.delete(e), r(t)) : Promise.resolve();
|
|
1781
1781
|
}
|
|
1782
|
-
var st = /* @__PURE__ */ new WeakMap(),
|
|
1782
|
+
var st = /* @__PURE__ */ new WeakMap(), yt = /* @__PURE__ */ new WeakMap(), Re = /* @__PURE__ */ new WeakMap(), Lr = /* @__PURE__ */ new WeakMap(), jn = /* @__PURE__ */ new WeakMap(), Wn = /* @__PURE__ */ new WeakMap(), go = /* @__PURE__ */ new WeakMap(), Zl = class {
|
|
1783
1783
|
constructor(e, t = !0) {
|
|
1784
|
-
b(this, "anchor", void 0), S(this, st, /* @__PURE__ */ new Map()), S(this,
|
|
1784
|
+
b(this, "anchor", void 0), S(this, st, /* @__PURE__ */ new Map()), S(this, yt, /* @__PURE__ */ new Map()), S(this, Re, /* @__PURE__ */ new Map()), S(this, Lr, /* @__PURE__ */ new Set()), S(this, jn, !0), S(this, Wn, (r) => {
|
|
1785
1785
|
if (c(st, this).has(r)) {
|
|
1786
|
-
var n = c(st, this).get(r), i = c(
|
|
1786
|
+
var n = c(st, this).get(r), i = c(yt, this).get(n);
|
|
1787
1787
|
if (i)
|
|
1788
|
-
|
|
1788
|
+
Dl(i), c(Lr, this).delete(n);
|
|
1789
1789
|
else {
|
|
1790
1790
|
var o = c(Re, this).get(n);
|
|
1791
|
-
o && (c(
|
|
1791
|
+
o && (c(yt, this).set(n, o.effect), c(Re, this).delete(n), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), i = o.effect);
|
|
1792
1792
|
}
|
|
1793
1793
|
for (const [s, a] of c(st, this)) {
|
|
1794
1794
|
if (c(st, this).delete(s), s === r) break;
|
|
1795
1795
|
const u = c(Re, this).get(a);
|
|
1796
1796
|
u && (fe(u.effect), c(Re, this).delete(a));
|
|
1797
1797
|
}
|
|
1798
|
-
for (const [s, a] of c(
|
|
1799
|
-
if (s === n || c(
|
|
1798
|
+
for (const [s, a] of c(yt, this)) {
|
|
1799
|
+
if (s === n || c(Lr, this).has(s)) continue;
|
|
1800
1800
|
const u = () => {
|
|
1801
1801
|
if (Array.from(c(st, this).values()).includes(s)) {
|
|
1802
1802
|
var f = document.createDocumentFragment();
|
|
1803
|
-
|
|
1803
|
+
$s(a, f), f.append(Ne()), c(Re, this).set(s, {
|
|
1804
1804
|
effect: a,
|
|
1805
1805
|
fragment: f
|
|
1806
1806
|
});
|
|
1807
1807
|
} else fe(a);
|
|
1808
|
-
c(
|
|
1808
|
+
c(Lr, this).delete(s), c(yt, this).delete(s);
|
|
1809
1809
|
};
|
|
1810
|
-
c(jn, this) || !i ? (c(
|
|
1810
|
+
c(jn, this) || !i ? (c(Lr, this).add(s), Yr(a, u, !1)) : u();
|
|
1811
1811
|
}
|
|
1812
1812
|
}
|
|
1813
1813
|
}), S(this, go, (r) => {
|
|
@@ -1817,29 +1817,29 @@ var st = /* @__PURE__ */ new WeakMap(), gt = /* @__PURE__ */ new WeakMap(), Re =
|
|
|
1817
1817
|
}), this.anchor = e, A(jn, this, t);
|
|
1818
1818
|
}
|
|
1819
1819
|
ensure(e, t) {
|
|
1820
|
-
var r =
|
|
1821
|
-
if (t && !c(
|
|
1820
|
+
var r = L, n = Al();
|
|
1821
|
+
if (t && !c(yt, this).has(e) && !c(Re, this).has(e)) if (n) {
|
|
1822
1822
|
var i = document.createDocumentFragment(), o = Ne();
|
|
1823
1823
|
i.append(o), c(Re, this).set(e, {
|
|
1824
1824
|
effect: ct(() => t(o)),
|
|
1825
1825
|
fragment: i
|
|
1826
1826
|
});
|
|
1827
|
-
} else c(
|
|
1827
|
+
} else c(yt, this).set(e, ct(() => t(this.anchor)));
|
|
1828
1828
|
if (c(st, this).set(r, e), n) {
|
|
1829
|
-
for (const [s, a] of c(
|
|
1829
|
+
for (const [s, a] of c(yt, this)) s === e ? r.unskip_effect(a) : r.skip_effect(a);
|
|
1830
1830
|
for (const [s, a] of c(Re, this)) s === e ? r.unskip_effect(a.effect) : r.skip_effect(a.effect);
|
|
1831
1831
|
r.oncommit(c(Wn, this)), r.ondiscard(c(go, this));
|
|
1832
1832
|
} else
|
|
1833
1833
|
z && (this.anchor = D), c(Wn, this).call(this, r);
|
|
1834
1834
|
}
|
|
1835
1835
|
};
|
|
1836
|
-
function
|
|
1837
|
-
W === null &&
|
|
1836
|
+
function Ql(e) {
|
|
1837
|
+
W === null && Da("onMount"), Wr && W.l !== null ? ec(W).m.push(e) : un(() => {
|
|
1838
1838
|
const t = In(e);
|
|
1839
1839
|
if (typeof t == "function") return t;
|
|
1840
1840
|
});
|
|
1841
1841
|
}
|
|
1842
|
-
function
|
|
1842
|
+
function ec(e) {
|
|
1843
1843
|
var t = e.l;
|
|
1844
1844
|
return t.u ?? (t.u = {
|
|
1845
1845
|
a: [],
|
|
@@ -1850,27 +1850,27 @@ function Zl(e) {
|
|
|
1850
1850
|
function or(e, t, r = !1) {
|
|
1851
1851
|
var n;
|
|
1852
1852
|
z && (n = D, Ai());
|
|
1853
|
-
var i = new
|
|
1853
|
+
var i = new Zl(e), o = r ? Si : 0;
|
|
1854
1854
|
function s(a, u) {
|
|
1855
1855
|
if (z) {
|
|
1856
|
-
var f =
|
|
1856
|
+
var f = Xa(n);
|
|
1857
1857
|
if (a !== parseInt(f.substring(1))) {
|
|
1858
|
-
var d =
|
|
1858
|
+
var d = Zo();
|
|
1859
1859
|
Ae(d), i.anchor = d, cr(!1), i.ensure(a, u), cr(!0);
|
|
1860
1860
|
return;
|
|
1861
1861
|
}
|
|
1862
1862
|
}
|
|
1863
1863
|
i.ensure(a, u);
|
|
1864
1864
|
}
|
|
1865
|
-
|
|
1865
|
+
Ls(() => {
|
|
1866
1866
|
var a = !1;
|
|
1867
1867
|
t((u, f = 0) => {
|
|
1868
1868
|
a = !0, s(f, u);
|
|
1869
1869
|
}), a || s(-1, null);
|
|
1870
1870
|
}, o);
|
|
1871
1871
|
}
|
|
1872
|
-
function
|
|
1873
|
-
|
|
1872
|
+
function tc(e, t) {
|
|
1873
|
+
xs(() => {
|
|
1874
1874
|
var r = e.getRootNode(), n = r.host ? r : r.head ?? r.ownerDocument.head;
|
|
1875
1875
|
if (!n.querySelector("#" + t.hash)) {
|
|
1876
1876
|
const i = $i("style");
|
|
@@ -1880,7 +1880,7 @@ function Ql(e, t) {
|
|
|
1880
1880
|
}
|
|
1881
1881
|
var bo = [...`
|
|
1882
1882
|
\r\f \v\uFEFF`];
|
|
1883
|
-
function
|
|
1883
|
+
function rc(e, t, r) {
|
|
1884
1884
|
var n = e == null ? "" : "" + e;
|
|
1885
1885
|
if (t && (n = n ? n + " " + t : t), r) {
|
|
1886
1886
|
for (var i of Object.keys(r)) if (r[i]) n = n ? n + " " + i : i;
|
|
@@ -1903,7 +1903,7 @@ function yo(e, t = !1) {
|
|
|
1903
1903
|
function Gn(e) {
|
|
1904
1904
|
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
1905
1905
|
}
|
|
1906
|
-
function
|
|
1906
|
+
function nc(e, t) {
|
|
1907
1907
|
if (t) {
|
|
1908
1908
|
var r = "", n, i;
|
|
1909
1909
|
if (Array.isArray(t) ? (n = t[0], i = t[1]) : n = t, e) {
|
|
@@ -1912,20 +1912,20 @@ function tc(e, t) {
|
|
|
1912
1912
|
n && u.push(...Object.keys(n).map(Gn)), i && u.push(...Object.keys(i).map(Gn));
|
|
1913
1913
|
var f = 0, d = -1;
|
|
1914
1914
|
const w = e.length;
|
|
1915
|
-
for (var
|
|
1916
|
-
var p = e[
|
|
1917
|
-
if (a ? p === "/" && e[
|
|
1918
|
-
if (p === ":" && d === -1) d =
|
|
1919
|
-
else if (p === ";" ||
|
|
1915
|
+
for (var v = 0; v < w; v++) {
|
|
1916
|
+
var p = e[v];
|
|
1917
|
+
if (a ? p === "/" && e[v - 1] === "*" && (a = !1) : o ? o === p && (o = !1) : p === "/" && e[v + 1] === "*" ? a = !0 : p === '"' || p === "'" ? o = p : p === "(" ? s++ : p === ")" && s--, !a && o === !1 && s === 0) {
|
|
1918
|
+
if (p === ":" && d === -1) d = v;
|
|
1919
|
+
else if (p === ";" || v === w - 1) {
|
|
1920
1920
|
if (d !== -1) {
|
|
1921
|
-
var
|
|
1922
|
-
if (!u.includes(
|
|
1923
|
-
p !== ";" &&
|
|
1924
|
-
var _ = e.substring(f,
|
|
1921
|
+
var m = Gn(e.substring(f, d).trim());
|
|
1922
|
+
if (!u.includes(m)) {
|
|
1923
|
+
p !== ";" && v++;
|
|
1924
|
+
var _ = e.substring(f, v).trim();
|
|
1925
1925
|
r += " " + _ + ";";
|
|
1926
1926
|
}
|
|
1927
1927
|
}
|
|
1928
|
-
f =
|
|
1928
|
+
f = v + 1, d = -1;
|
|
1929
1929
|
}
|
|
1930
1930
|
}
|
|
1931
1931
|
}
|
|
@@ -1934,10 +1934,10 @@ function tc(e, t) {
|
|
|
1934
1934
|
}
|
|
1935
1935
|
return e == null ? null : String(e);
|
|
1936
1936
|
}
|
|
1937
|
-
function
|
|
1937
|
+
function ic(e, t, r, n, i, o) {
|
|
1938
1938
|
var s = e.__className;
|
|
1939
1939
|
if (z || s !== r || s === void 0) {
|
|
1940
|
-
var a =
|
|
1940
|
+
var a = rc(r, n, o);
|
|
1941
1941
|
(!z || a !== e.getAttribute("class")) && (a == null ? e.removeAttribute("class") : t ? e.className = a : e.setAttribute("class", a)), e.__className = r;
|
|
1942
1942
|
} else if (o && i !== o) for (var u in o) {
|
|
1943
1943
|
var f = !!o[u];
|
|
@@ -1951,90 +1951,90 @@ function Vn(e, t = {}, r, n) {
|
|
|
1951
1951
|
t[i] !== o && (r[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, o, n));
|
|
1952
1952
|
}
|
|
1953
1953
|
}
|
|
1954
|
-
function
|
|
1954
|
+
function oc(e, t, r, n) {
|
|
1955
1955
|
var i = e.__style;
|
|
1956
1956
|
if (z || i !== t) {
|
|
1957
|
-
var o =
|
|
1957
|
+
var o = nc(t, n);
|
|
1958
1958
|
(!z || o !== e.getAttribute("style")) && (o == null ? e.removeAttribute("style") : e.style.cssText = o), e.__style = t;
|
|
1959
1959
|
} else n && (Array.isArray(n) ? (Vn(e, r?.[0], n[0]), Vn(e, r?.[1], n[1], "important")) : Vn(e, r, n));
|
|
1960
1960
|
return n;
|
|
1961
1961
|
}
|
|
1962
|
-
var
|
|
1963
|
-
function
|
|
1962
|
+
var sc = /* @__PURE__ */ Symbol("is custom element"), ac = /* @__PURE__ */ Symbol("is html"), lc = Jo ? "link" : "LINK", cc = Jo ? "progress" : "PROGRESS";
|
|
1963
|
+
function uc(e) {
|
|
1964
1964
|
if (z) {
|
|
1965
1965
|
var t = !1, r = () => {
|
|
1966
1966
|
if (!t) {
|
|
1967
1967
|
if (t = !0, e.hasAttribute("value")) {
|
|
1968
1968
|
var n = e.value;
|
|
1969
|
-
|
|
1969
|
+
_i(e, "value", null), e.value = n;
|
|
1970
1970
|
}
|
|
1971
1971
|
if (e.hasAttribute("checked")) {
|
|
1972
1972
|
var i = e.checked;
|
|
1973
|
-
|
|
1973
|
+
_i(e, "checked", null), e.checked = i;
|
|
1974
1974
|
}
|
|
1975
1975
|
}
|
|
1976
1976
|
};
|
|
1977
|
-
e.__on_r = r,
|
|
1977
|
+
e.__on_r = r, qt(r), Il();
|
|
1978
1978
|
}
|
|
1979
1979
|
}
|
|
1980
|
-
function
|
|
1981
|
-
var r =
|
|
1982
|
-
r.value === (r.value = t ?? void 0) || e.value === t && (t !== 0 || e.nodeName !==
|
|
1980
|
+
function fc(e, t) {
|
|
1981
|
+
var r = Gs(e);
|
|
1982
|
+
r.value === (r.value = t ?? void 0) || e.value === t && (t !== 0 || e.nodeName !== cc) || (e.value = t ?? "");
|
|
1983
1983
|
}
|
|
1984
|
-
function
|
|
1985
|
-
var i =
|
|
1986
|
-
if (z && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName ===
|
|
1984
|
+
function _i(e, t, r, n) {
|
|
1985
|
+
var i = Gs(e);
|
|
1986
|
+
if (z && (i[t] = e.getAttribute(t), t === "src" || t === "srcset" || t === "href" && e.nodeName === lc)) {
|
|
1987
1987
|
n || void 0;
|
|
1988
1988
|
return;
|
|
1989
1989
|
}
|
|
1990
|
-
i[t] !== (i[t] = r) && (t === "loading" && (e[
|
|
1990
|
+
i[t] !== (i[t] = r) && (t === "loading" && (e[$a] = r), r == null ? e.removeAttribute(t) : typeof r != "string" && dc(e).includes(t) ? e[t] = r : e.setAttribute(t, r));
|
|
1991
1991
|
}
|
|
1992
|
-
function
|
|
1992
|
+
function Gs(e) {
|
|
1993
1993
|
return e.__attributes ?? (e.__attributes = {
|
|
1994
|
-
[
|
|
1995
|
-
[
|
|
1994
|
+
[sc]: e.nodeName.includes("-"),
|
|
1995
|
+
[ac]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
1996
1996
|
});
|
|
1997
1997
|
}
|
|
1998
1998
|
var wo = /* @__PURE__ */ new Map();
|
|
1999
|
-
function
|
|
1999
|
+
function dc(e) {
|
|
2000
2000
|
var t = e.getAttribute("is") || e.nodeName, r = wo.get(t);
|
|
2001
2001
|
if (r) return r;
|
|
2002
2002
|
wo.set(t, r = []);
|
|
2003
2003
|
for (var n, i = e, o = Element.prototype; o !== i; ) {
|
|
2004
|
-
n =
|
|
2004
|
+
n = Aa(i);
|
|
2005
2005
|
for (var s in n) n[s].set && r.push(s);
|
|
2006
|
-
i =
|
|
2006
|
+
i = qo(i);
|
|
2007
2007
|
}
|
|
2008
2008
|
return r;
|
|
2009
2009
|
}
|
|
2010
|
-
var
|
|
2010
|
+
var Vs, lr = /* @__PURE__ */ new WeakMap(), Tn = /* @__PURE__ */ new WeakMap(), Yn = /* @__PURE__ */ new WeakMap(), To = /* @__PURE__ */ new WeakSet(), Ys = class {
|
|
2011
2011
|
constructor(e) {
|
|
2012
2012
|
xi(this, To), S(this, lr, /* @__PURE__ */ new WeakMap()), S(this, Tn, void 0), S(this, Yn, void 0), A(Yn, this, e);
|
|
2013
2013
|
}
|
|
2014
2014
|
observe(e, t) {
|
|
2015
2015
|
var r = c(lr, this).get(e) || /* @__PURE__ */ new Set();
|
|
2016
|
-
return r.add(t), c(lr, this).set(e, r), $(To, this,
|
|
2016
|
+
return r.add(t), c(lr, this).set(e, r), $(To, this, pc).call(this).observe(e, c(Yn, this)), () => {
|
|
2017
2017
|
var n = c(lr, this).get(e);
|
|
2018
2018
|
n.delete(t), n.size === 0 && (c(lr, this).delete(e), c(Tn, this).unobserve(e));
|
|
2019
2019
|
};
|
|
2020
2020
|
}
|
|
2021
2021
|
};
|
|
2022
|
-
|
|
2023
|
-
function
|
|
2022
|
+
Vs = Ys;
|
|
2023
|
+
function pc() {
|
|
2024
2024
|
return c(Tn, this) ?? A(Tn, this, new ResizeObserver((e) => {
|
|
2025
2025
|
for (var t of e) {
|
|
2026
|
-
|
|
2026
|
+
Vs.entries.set(t.target, t);
|
|
2027
2027
|
for (var r of c(lr, this).get(t.target) || []) r(t);
|
|
2028
2028
|
}
|
|
2029
2029
|
}));
|
|
2030
2030
|
}
|
|
2031
|
-
b(
|
|
2031
|
+
b(Ys, "entries", /* @__PURE__ */ new WeakMap());
|
|
2032
2032
|
function Eo(e, t) {
|
|
2033
2033
|
return e === t || e?.[zr] === t;
|
|
2034
2034
|
}
|
|
2035
2035
|
function ko(e = {}, t, r, n) {
|
|
2036
2036
|
var i = W.r, o = x;
|
|
2037
|
-
return
|
|
2037
|
+
return xs(() => {
|
|
2038
2038
|
var s, a;
|
|
2039
2039
|
return Di(() => {
|
|
2040
2040
|
s = a, a = n?.() || [], In(() => {
|
|
@@ -2056,11 +2056,11 @@ function sn(e, t, r, n) {
|
|
|
2056
2056
|
var i = !Wr || (r & 2) !== 0, o = (r & 8) !== 0, s = (r & 16) !== 0, a = n, u = !0, f = () => (u && (u = !1, a = s ? In(n) : n), a);
|
|
2057
2057
|
let d;
|
|
2058
2058
|
if (o) {
|
|
2059
|
-
var
|
|
2060
|
-
d =
|
|
2059
|
+
var v = zr in e || Xo in e;
|
|
2060
|
+
d = Bt(e, t)?.set ?? (v && t in e ? (P) => e[t] = P : void 0);
|
|
2061
2061
|
}
|
|
2062
|
-
var p,
|
|
2063
|
-
o ? [p,
|
|
2062
|
+
var p, m = !1;
|
|
2063
|
+
o ? [p, m] = rl(() => e[t]) : p = e[t], p === void 0 && n !== void 0 && (p = f(), d && (i && ja(t), d(p)));
|
|
2064
2064
|
var _;
|
|
2065
2065
|
if (i ? _ = () => {
|
|
2066
2066
|
var P = e[t];
|
|
@@ -2072,28 +2072,28 @@ function sn(e, t, r, n) {
|
|
|
2072
2072
|
if (d) {
|
|
2073
2073
|
var w = e.$$legacy;
|
|
2074
2074
|
return (function(P, M) {
|
|
2075
|
-
return arguments.length > 0 ? ((!i || !M || w ||
|
|
2075
|
+
return arguments.length > 0 ? ((!i || !M || w || m) && d(M ? _() : P), P) : _();
|
|
2076
2076
|
});
|
|
2077
2077
|
}
|
|
2078
|
-
var E = !1, N = ((r & 1) !== 0 ? Sn :
|
|
2078
|
+
var E = !1, N = ((r & 1) !== 0 ? Sn : gs)(() => (E = !1, _()));
|
|
2079
2079
|
o && g(N);
|
|
2080
2080
|
var ne = x;
|
|
2081
2081
|
return (function(P, M) {
|
|
2082
2082
|
if (arguments.length > 0) {
|
|
2083
|
-
const le = M ? g(N) : i && o ?
|
|
2084
|
-
return
|
|
2083
|
+
const le = M ? g(N) : i && o ? At(P) : P;
|
|
2084
|
+
return O(N, le), E = !0, a !== void 0 && (a = le), P;
|
|
2085
2085
|
}
|
|
2086
2086
|
return ut && E || (ne.f & 16384) !== 0 ? N.v : g(N);
|
|
2087
2087
|
});
|
|
2088
2088
|
}
|
|
2089
|
-
function
|
|
2090
|
-
return new
|
|
2089
|
+
function hc(e) {
|
|
2090
|
+
return new vc(e);
|
|
2091
2091
|
}
|
|
2092
|
-
var
|
|
2092
|
+
var Nt = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), vc = class {
|
|
2093
2093
|
constructor(e) {
|
|
2094
|
-
S(this,
|
|
2094
|
+
S(this, Nt, void 0), S(this, Be, void 0);
|
|
2095
2095
|
var t = /* @__PURE__ */ new Map(), r = (i, o) => {
|
|
2096
|
-
var s = /* @__PURE__ */
|
|
2096
|
+
var s = /* @__PURE__ */ yl(o, !1, !1);
|
|
2097
2097
|
return t.set(i, s), s;
|
|
2098
2098
|
};
|
|
2099
2099
|
const n = new Proxy({
|
|
@@ -2104,13 +2104,13 @@ var Pt = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), pc =
|
|
|
2104
2104
|
return g(t.get(o) ?? r(o, Reflect.get(i, o)));
|
|
2105
2105
|
},
|
|
2106
2106
|
has(i, o) {
|
|
2107
|
-
return o ===
|
|
2107
|
+
return o === Xo ? !0 : (g(t.get(o) ?? r(o, Reflect.get(i, o))), Reflect.has(i, o));
|
|
2108
2108
|
},
|
|
2109
2109
|
set(i, o, s) {
|
|
2110
|
-
return
|
|
2110
|
+
return O(t.get(o) ?? r(o, s), s), Reflect.set(i, o, s);
|
|
2111
2111
|
}
|
|
2112
2112
|
});
|
|
2113
|
-
A(Be, this, (e.hydrate ?
|
|
2113
|
+
A(Be, this, (e.hydrate ? Xl : js)(e.component, {
|
|
2114
2114
|
target: e.target,
|
|
2115
2115
|
anchor: e.anchor,
|
|
2116
2116
|
props: n,
|
|
@@ -2118,9 +2118,9 @@ var Pt = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), pc =
|
|
|
2118
2118
|
intro: e.intro ?? !1,
|
|
2119
2119
|
recover: e.recover,
|
|
2120
2120
|
transformError: e.transformError
|
|
2121
|
-
})), !lt && (!e?.props?.$$host || e.sync === !1) && Dr(), A(
|
|
2121
|
+
})), !lt && (!e?.props?.$$host || e.sync === !1) && Dr(), A(Nt, this, n.$$events);
|
|
2122
2122
|
for (const i of Object.keys(c(Be, this)))
|
|
2123
|
-
i === "$set" || i === "$destroy" || i === "$on" ||
|
|
2123
|
+
i === "$set" || i === "$destroy" || i === "$on" || mn(this, i, {
|
|
2124
2124
|
get() {
|
|
2125
2125
|
return c(Be, this)[i];
|
|
2126
2126
|
},
|
|
@@ -2132,24 +2132,24 @@ var Pt = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), pc =
|
|
|
2132
2132
|
c(Be, this).$set = (i) => {
|
|
2133
2133
|
Object.assign(n, i);
|
|
2134
2134
|
}, c(Be, this).$destroy = () => {
|
|
2135
|
-
|
|
2135
|
+
Jl(c(Be, this));
|
|
2136
2136
|
};
|
|
2137
2137
|
}
|
|
2138
2138
|
$set(e) {
|
|
2139
2139
|
c(Be, this).$set(e);
|
|
2140
2140
|
}
|
|
2141
2141
|
$on(e, t) {
|
|
2142
|
-
c(
|
|
2142
|
+
c(Nt, this)[e] = c(Nt, this)[e] || [];
|
|
2143
2143
|
const r = (...n) => t.call(this, ...n);
|
|
2144
|
-
return c(
|
|
2145
|
-
c(
|
|
2144
|
+
return c(Nt, this)[e].push(r), () => {
|
|
2145
|
+
c(Nt, this)[e] = c(Nt, this)[e].filter((n) => n !== r);
|
|
2146
2146
|
};
|
|
2147
2147
|
}
|
|
2148
2148
|
$destroy() {
|
|
2149
2149
|
c(Be, this).$destroy();
|
|
2150
2150
|
}
|
|
2151
|
-
},
|
|
2152
|
-
typeof HTMLElement == "function" && (
|
|
2151
|
+
}, qs;
|
|
2152
|
+
typeof HTMLElement == "function" && (qs = class extends HTMLElement {
|
|
2153
2153
|
constructor(e, t, r) {
|
|
2154
2154
|
super(), b(this, "$$ctor", void 0), b(this, "$$s", void 0), b(this, "$$c", void 0), b(this, "$$cn", !1), b(this, "$$d", {}), b(this, "$$r", !1), b(this, "$$p_d", {}), b(this, "$$l", {}), b(this, "$$l_u", /* @__PURE__ */ new Map()), b(this, "$$me", void 0), b(this, "$$shadowRoot", null), this.$$ctor = e, this.$$s = t, r && (this.$$shadowRoot = this.attachShadow(r));
|
|
2155
2155
|
}
|
|
@@ -2175,14 +2175,14 @@ typeof HTMLElement == "function" && (Vs = class extends HTMLElement {
|
|
|
2175
2175
|
};
|
|
2176
2176
|
};
|
|
2177
2177
|
if (await Promise.resolve(), !this.$$cn || this.$$c) return;
|
|
2178
|
-
const t = {}, r =
|
|
2178
|
+
const t = {}, r = mc(this);
|
|
2179
2179
|
for (const n of this.$$s) n in r && (n === "default" && !this.$$d.children ? (this.$$d.children = e(n), t.default = !0) : t[n] = e(n));
|
|
2180
2180
|
for (const n of this.attributes) {
|
|
2181
2181
|
const i = this.$$g_p(n.name);
|
|
2182
2182
|
i in this.$$d || (this.$$d[i] = dn(i, n.value, this.$$p_d, "toProp"));
|
|
2183
2183
|
}
|
|
2184
2184
|
for (const n in this.$$p_d) !(n in this.$$d) && this[n] !== void 0 && (this.$$d[n] = this[n], delete this[n]);
|
|
2185
|
-
this.$$c =
|
|
2185
|
+
this.$$c = hc({
|
|
2186
2186
|
component: this.$$ctor,
|
|
2187
2187
|
target: this.$$shadowRoot || this,
|
|
2188
2188
|
props: {
|
|
@@ -2190,7 +2190,7 @@ typeof HTMLElement == "function" && (Vs = class extends HTMLElement {
|
|
|
2190
2190
|
$$slots: t,
|
|
2191
2191
|
$$host: this
|
|
2192
2192
|
}
|
|
2193
|
-
}), this.$$me =
|
|
2193
|
+
}), this.$$me = Rl(() => {
|
|
2194
2194
|
Di(() => {
|
|
2195
2195
|
this.$$r = !0;
|
|
2196
2196
|
for (const n of vn(this.$$c)) {
|
|
@@ -2247,14 +2247,14 @@ function dn(e, t, r, n) {
|
|
|
2247
2247
|
return t;
|
|
2248
2248
|
}
|
|
2249
2249
|
}
|
|
2250
|
-
function
|
|
2250
|
+
function mc(e) {
|
|
2251
2251
|
const t = {};
|
|
2252
2252
|
return e.childNodes.forEach((r) => {
|
|
2253
2253
|
t[r.slot || "default"] = !0;
|
|
2254
2254
|
}), t;
|
|
2255
2255
|
}
|
|
2256
|
-
function
|
|
2257
|
-
let s = class extends
|
|
2256
|
+
function _c(e, t, r, n, i, o) {
|
|
2257
|
+
let s = class extends qs {
|
|
2258
2258
|
constructor() {
|
|
2259
2259
|
super(e, r, i), this.$$p_d = t;
|
|
2260
2260
|
}
|
|
@@ -2263,23 +2263,23 @@ function vc(e, t, r, n, i, o) {
|
|
|
2263
2263
|
}
|
|
2264
2264
|
};
|
|
2265
2265
|
return vn(t).forEach((a) => {
|
|
2266
|
-
|
|
2266
|
+
mn(s.prototype, a, {
|
|
2267
2267
|
get() {
|
|
2268
2268
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
2269
2269
|
},
|
|
2270
2270
|
set(u) {
|
|
2271
2271
|
u = dn(a, u, t), this.$$d[a] = u;
|
|
2272
2272
|
var f = this.$$c;
|
|
2273
|
-
f && (
|
|
2273
|
+
f && (Bt(f, a)?.get ? f[a] = u : f.$set({ [a]: u }));
|
|
2274
2274
|
}
|
|
2275
2275
|
});
|
|
2276
2276
|
}), n.forEach((a) => {
|
|
2277
|
-
|
|
2277
|
+
mn(s.prototype, a, { get() {
|
|
2278
2278
|
return this.$$c?.[a];
|
|
2279
2279
|
} });
|
|
2280
2280
|
}), o && (s = o(s)), e.element = s, s;
|
|
2281
2281
|
}
|
|
2282
|
-
var xn = (e) => e,
|
|
2282
|
+
var xn = (e) => e, hf = xn(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.runtimeContext")), vf = xn(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), mf = xn(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.shellContext")), _f = xn(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.regionScopeContext")), So;
|
|
2283
2283
|
(function(e) {
|
|
2284
2284
|
e.TTS_WORD = "tts-word", e.TTS_SENTENCE = "tts-sentence", e.ANNOTATION = "annotation";
|
|
2285
2285
|
})(So || (So = {}));
|
|
@@ -2287,12 +2287,12 @@ var Ao;
|
|
|
2287
2287
|
(function(e) {
|
|
2288
2288
|
e.YELLOW = "yellow", e.GREEN = "green", e.BLUE = "blue", e.PINK = "pink", e.ORANGE = "orange", e.UNDERLINE = "underline";
|
|
2289
2289
|
})(Ao || (Ao = {}));
|
|
2290
|
-
function
|
|
2290
|
+
function Ks(e) {
|
|
2291
2291
|
return (...t) => {
|
|
2292
2292
|
console.debug(`[${e}]`, ...t);
|
|
2293
2293
|
};
|
|
2294
2294
|
}
|
|
2295
|
-
var
|
|
2295
|
+
var gf = Ks("I18nService"), qn = {
|
|
2296
2296
|
assessment: [],
|
|
2297
2297
|
section: [],
|
|
2298
2298
|
item: [],
|
|
@@ -2304,80 +2304,80 @@ var vf = Ys("I18nService"), qn = {
|
|
|
2304
2304
|
item: [...qn.item],
|
|
2305
2305
|
passage: [...qn.passage]
|
|
2306
2306
|
};
|
|
2307
|
-
function
|
|
2307
|
+
function Yt(e) {
|
|
2308
2308
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
2309
2309
|
}
|
|
2310
|
-
function
|
|
2310
|
+
function wt(e, t) {
|
|
2311
2311
|
if (e == null) return [];
|
|
2312
2312
|
if (!Array.isArray(e)) throw new Error(`Invalid tools config at "${t}": expected an array of tool ids.`);
|
|
2313
2313
|
if (e.find((r) => typeof r != "string") !== void 0) throw new Error(`Invalid tools config at "${t}": all entries must be strings.`);
|
|
2314
2314
|
return e;
|
|
2315
2315
|
}
|
|
2316
|
-
function
|
|
2316
|
+
function gc(e) {
|
|
2317
2317
|
if (e != null) {
|
|
2318
|
-
if (!
|
|
2318
|
+
if (!Yt(e)) throw new Error('Invalid tools config at "placement": expected an object with section/item/passage arrays.');
|
|
2319
2319
|
return e;
|
|
2320
2320
|
}
|
|
2321
2321
|
}
|
|
2322
|
-
function
|
|
2322
|
+
function bc(e) {
|
|
2323
2323
|
if (e != null) {
|
|
2324
|
-
if (!
|
|
2324
|
+
if (!Yt(e)) throw new Error('Invalid tools config at "policy": expected an object with allowed/blocked arrays.');
|
|
2325
2325
|
return e;
|
|
2326
2326
|
}
|
|
2327
2327
|
}
|
|
2328
|
-
function
|
|
2328
|
+
function yc(e, t) {
|
|
2329
2329
|
if (t == null) return;
|
|
2330
|
-
if (!
|
|
2330
|
+
if (!Yt(t)) throw new Error(`Invalid tools config at "providers.${e}": expected an object.`);
|
|
2331
2331
|
const r = t;
|
|
2332
2332
|
if ("enabled" in r && r.enabled !== void 0 && typeof r.enabled != "boolean") throw new Error(`Invalid tools config at "providers.${e}.enabled": expected a boolean.`);
|
|
2333
|
-
if ("settings" in r && r.settings !== void 0 && !
|
|
2334
|
-
if ("provider" in r && r.provider !== void 0 && !
|
|
2333
|
+
if ("settings" in r && r.settings !== void 0 && !Yt(r.settings)) throw new Error(`Invalid tools config at "providers.${e}.settings": expected an object.`);
|
|
2334
|
+
if ("provider" in r && r.provider !== void 0 && !Yt(r.provider)) throw new Error(`Invalid tools config at "providers.${e}.provider": expected an object.`);
|
|
2335
2335
|
return r;
|
|
2336
2336
|
}
|
|
2337
|
-
function
|
|
2337
|
+
function wc(e) {
|
|
2338
2338
|
if (e == null) return {};
|
|
2339
|
-
if (!
|
|
2339
|
+
if (!Yt(e)) throw new Error('Invalid tools config at "providers": expected an object keyed by tool id.');
|
|
2340
2340
|
const t = {};
|
|
2341
|
-
for (const [r, n] of Object.entries(e)) t[r] =
|
|
2341
|
+
for (const [r, n] of Object.entries(e)) t[r] = yc(r, n);
|
|
2342
2342
|
return t;
|
|
2343
2343
|
}
|
|
2344
|
-
function
|
|
2344
|
+
function Xs(e) {
|
|
2345
2345
|
const t = e.trim();
|
|
2346
2346
|
return t || "";
|
|
2347
2347
|
}
|
|
2348
|
-
function
|
|
2348
|
+
function Tt(e) {
|
|
2349
2349
|
if (!e || e.length === 0) return [];
|
|
2350
2350
|
const t = /* @__PURE__ */ new Set();
|
|
2351
2351
|
for (const r of e) {
|
|
2352
2352
|
if (typeof r != "string") throw new Error("Invalid tools config: tool list entries must be strings.");
|
|
2353
|
-
const n =
|
|
2353
|
+
const n = Xs(r);
|
|
2354
2354
|
n && t.add(n);
|
|
2355
2355
|
}
|
|
2356
2356
|
return Array.from(t);
|
|
2357
2357
|
}
|
|
2358
|
-
function
|
|
2358
|
+
function Tc(e, t) {
|
|
2359
2359
|
if (e != null) {
|
|
2360
2360
|
if (e === "on" || e === "off") return e;
|
|
2361
2361
|
throw new Error(`Invalid tools config at "${t}": expected "on" or "off", got ${JSON.stringify(e)}.`);
|
|
2362
2362
|
}
|
|
2363
2363
|
}
|
|
2364
|
-
function
|
|
2365
|
-
if (e != null && !
|
|
2366
|
-
const t =
|
|
2364
|
+
function Ec(e) {
|
|
2365
|
+
if (e != null && !Yt(e)) throw new Error('Invalid tools config: expected an object with "policy", "placement", and "providers".');
|
|
2366
|
+
const t = bc(e?.policy), r = gc(e?.placement), n = wc(e?.providers), i = Tc(e?.pnpEnforcement, "pnpEnforcement"), o = {
|
|
2367
2367
|
policy: {
|
|
2368
|
-
allowed:
|
|
2369
|
-
blocked:
|
|
2368
|
+
allowed: Tt(wt(t?.allowed, "policy.allowed")),
|
|
2369
|
+
blocked: Tt(wt(t?.blocked, "policy.blocked"))
|
|
2370
2370
|
},
|
|
2371
2371
|
placement: {
|
|
2372
|
-
section:
|
|
2373
|
-
item:
|
|
2374
|
-
passage:
|
|
2372
|
+
section: Tt(wt(r?.section, "placement.section")).length ? Tt(wt(r?.section, "placement.section")) : [...Kn.section],
|
|
2373
|
+
item: Tt(wt(r?.item, "placement.item")).length ? Tt(wt(r?.item, "placement.item")) : [...Kn.item],
|
|
2374
|
+
passage: Tt(wt(r?.passage, "placement.passage")).length ? Tt(wt(r?.passage, "placement.passage")) : [...Kn.passage]
|
|
2375
2375
|
},
|
|
2376
2376
|
providers: n
|
|
2377
2377
|
};
|
|
2378
2378
|
return i && (o.pnpEnforcement = i), o;
|
|
2379
2379
|
}
|
|
2380
|
-
var
|
|
2380
|
+
var kc = [
|
|
2381
2381
|
"assessment",
|
|
2382
2382
|
"section",
|
|
2383
2383
|
"item",
|
|
@@ -2388,7 +2388,7 @@ var Tc = [
|
|
|
2388
2388
|
function pn(e, t) {
|
|
2389
2389
|
if (typeof e != "string" || e.trim().length === 0) throw new Error(`Invalid tool registration: "${t}" must be a non-empty string.`);
|
|
2390
2390
|
}
|
|
2391
|
-
var
|
|
2391
|
+
var Sc = [
|
|
2392
2392
|
{
|
|
2393
2393
|
pattern: /<script\b/i,
|
|
2394
2394
|
reason: "contains a <script> tag"
|
|
@@ -2406,17 +2406,17 @@ var Ec = [
|
|
|
2406
2406
|
reason: "contains a <foreignObject> element"
|
|
2407
2407
|
}
|
|
2408
2408
|
];
|
|
2409
|
-
function
|
|
2409
|
+
function Ac(e, t, r) {
|
|
2410
2410
|
const n = t.trimStart(), i = n.toLowerCase().startsWith("<svg"), o = /^https?:/i.test(n);
|
|
2411
2411
|
if (/^data:/i.test(n)) throw new Error(`Invalid tool registration "${e}": "${r}" may not be a data: URL.`);
|
|
2412
2412
|
if (!(!i && !o)) {
|
|
2413
|
-
for (const { pattern: s, reason: a } of
|
|
2413
|
+
for (const { pattern: s, reason: a } of Sc) if (s.test(t)) throw new Error(`Invalid tool registration "${e}": "${r}" ${a}. Inline SVG icons must not include scriptable content.`);
|
|
2414
2414
|
}
|
|
2415
2415
|
}
|
|
2416
2416
|
function Io(e) {
|
|
2417
2417
|
if (pn(e.toolId, "toolId"), pn(e.name, "name"), pn(e.description, "description"), typeof e.icon != "string" && typeof e.icon != "function") throw new Error(`Invalid tool registration "${e.toolId}": "icon" must be a string or function.`);
|
|
2418
|
-
if (typeof e.icon == "string" &&
|
|
2419
|
-
const t = e.supportedLevels.find((r) => !
|
|
2418
|
+
if (typeof e.icon == "string" && Ac(e.toolId, e.icon, "icon"), !Array.isArray(e.supportedLevels) || e.supportedLevels.length === 0) throw new Error(`Invalid tool registration "${e.toolId}": "supportedLevels" must be a non-empty array.`);
|
|
2419
|
+
const t = e.supportedLevels.find((r) => !kc.includes(r));
|
|
2420
2420
|
if (t) throw new Error(`Invalid tool registration "${e.toolId}": unsupported level "${t}".`);
|
|
2421
2421
|
if (e.activation !== void 0 && e.activation !== "toolbar-toggle" && e.activation !== "selection-gateway") throw new Error(`Invalid tool registration "${e.toolId}": unsupported activation "${String(e.activation)}".`);
|
|
2422
2422
|
if (e.singletonScope !== void 0 && e.singletonScope !== "section") throw new Error(`Invalid tool registration "${e.toolId}": unsupported singletonScope "${String(e.singletonScope)}".`);
|
|
@@ -2425,12 +2425,12 @@ function Io(e) {
|
|
|
2425
2425
|
if (typeof e.isVisibleInContext != "function") throw new Error(`Invalid tool registration "${e.toolId}": "isVisibleInContext" must be a function.`);
|
|
2426
2426
|
if (typeof e.renderToolbar != "function") throw new Error(`Invalid tool registration "${e.toolId}": "renderToolbar" must be a function.`);
|
|
2427
2427
|
}
|
|
2428
|
-
var
|
|
2428
|
+
var Ic = class {
|
|
2429
2429
|
constructor() {
|
|
2430
2430
|
b(this, "tools", /* @__PURE__ */ new Map()), b(this, "pnpIndex", /* @__PURE__ */ new Map()), b(this, "componentOverrides", {}), b(this, "moduleLoaders", /* @__PURE__ */ new Map()), b(this, "loadedToolModules", /* @__PURE__ */ new Set()), b(this, "moduleLoadPromises", /* @__PURE__ */ new Map());
|
|
2431
2431
|
}
|
|
2432
2432
|
normalizeToolId(e) {
|
|
2433
|
-
return
|
|
2433
|
+
return Xs(e);
|
|
2434
2434
|
}
|
|
2435
2435
|
normalizeToolIds(e) {
|
|
2436
2436
|
return e.map((t) => this.normalizeToolId(t));
|
|
@@ -2568,20 +2568,20 @@ var Sc = class {
|
|
|
2568
2568
|
return n.renderToolbar(t, i);
|
|
2569
2569
|
}
|
|
2570
2570
|
};
|
|
2571
|
-
function
|
|
2571
|
+
function Js(e) {
|
|
2572
2572
|
return e.level === "item";
|
|
2573
2573
|
}
|
|
2574
|
-
function
|
|
2574
|
+
function xc(e) {
|
|
2575
2575
|
return e.level === "passage";
|
|
2576
2576
|
}
|
|
2577
|
-
function
|
|
2577
|
+
function Lc(e) {
|
|
2578
2578
|
return e.level === "rubric";
|
|
2579
2579
|
}
|
|
2580
|
-
function
|
|
2580
|
+
function Zs(e) {
|
|
2581
2581
|
return e.level === "element";
|
|
2582
2582
|
}
|
|
2583
2583
|
function zi(e) {
|
|
2584
|
-
if (
|
|
2584
|
+
if (Zs(e)) {
|
|
2585
2585
|
const t = e.item.config;
|
|
2586
2586
|
if (!t) return "";
|
|
2587
2587
|
const r = [], n = (a) => a.replace(/<[^>]*>/g, " ").trim(), i = t.elements?.[e.elementId];
|
|
@@ -2596,7 +2596,7 @@ function zi(e) {
|
|
|
2596
2596
|
}
|
|
2597
2597
|
return r.filter(Boolean).join(" ").trim();
|
|
2598
2598
|
}
|
|
2599
|
-
if (
|
|
2599
|
+
if (Js(e)) {
|
|
2600
2600
|
const t = e.item;
|
|
2601
2601
|
if (!t?.config) return "";
|
|
2602
2602
|
const r = t.config, n = [], i = (u) => u.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2610,12 +2610,12 @@ function zi(e) {
|
|
|
2610
2610
|
for (const f of Object.values(u))
|
|
2611
2611
|
if (typeof f == "string" && n.push(i(f)), Array.isArray(f)) {
|
|
2612
2612
|
for (const d of f) if (d && typeof d == "object")
|
|
2613
|
-
for (const
|
|
2613
|
+
for (const v of Object.values(d)) typeof v == "string" && n.push(i(v));
|
|
2614
2614
|
}
|
|
2615
2615
|
}
|
|
2616
2616
|
return n.filter(Boolean).join(" ").trim();
|
|
2617
2617
|
}
|
|
2618
|
-
if (
|
|
2618
|
+
if (xc(e)) {
|
|
2619
2619
|
const t = e.passage;
|
|
2620
2620
|
if (!t?.config) return "";
|
|
2621
2621
|
const r = t.config, n = [], i = (u) => u.replace(/<[^>]*>/g, " ").trim();
|
|
@@ -2629,18 +2629,18 @@ function zi(e) {
|
|
|
2629
2629
|
for (const f of Object.values(u))
|
|
2630
2630
|
if (typeof f == "string" && n.push(i(f)), Array.isArray(f)) {
|
|
2631
2631
|
for (const d of f) if (d && typeof d == "object")
|
|
2632
|
-
for (const
|
|
2632
|
+
for (const v of Object.values(d)) typeof v == "string" && n.push(i(v));
|
|
2633
2633
|
}
|
|
2634
2634
|
}
|
|
2635
2635
|
return n.filter(Boolean).join(" ").trim();
|
|
2636
2636
|
}
|
|
2637
|
-
if (
|
|
2637
|
+
if (Lc(e)) {
|
|
2638
2638
|
const t = e.rubricBlock;
|
|
2639
2639
|
return t.passage?.config ? (t.passage.config.markup || "").replace(/<[^>]*>/g, " ").trim() : (t.content || "").replace(/<[^>]*>/g, " ").trim();
|
|
2640
2640
|
}
|
|
2641
2641
|
return "";
|
|
2642
2642
|
}
|
|
2643
|
-
function
|
|
2643
|
+
function Ln(e) {
|
|
2644
2644
|
const t = zi(e);
|
|
2645
2645
|
return [
|
|
2646
2646
|
/<math[>\s]/i,
|
|
@@ -2651,7 +2651,7 @@ function On(e) {
|
|
|
2651
2651
|
/\d+\s*[+\-*/=]\s*\d+/
|
|
2652
2652
|
].some((r) => r.test(t));
|
|
2653
2653
|
}
|
|
2654
|
-
function
|
|
2654
|
+
function Oc(e) {
|
|
2655
2655
|
const t = [
|
|
2656
2656
|
"pie-multiple-choice",
|
|
2657
2657
|
"pie-inline-choice",
|
|
@@ -2660,7 +2660,7 @@ function xc(e) {
|
|
|
2660
2660
|
"inline-choice",
|
|
2661
2661
|
"select-text"
|
|
2662
2662
|
];
|
|
2663
|
-
if (
|
|
2663
|
+
if (Zs(e)) {
|
|
2664
2664
|
const r = e.item.config;
|
|
2665
2665
|
if (!r?.models) return !1;
|
|
2666
2666
|
const n = (Array.isArray(r.models) ? r.models : Object.values(r.models)).find((o) => o && typeof o == "object" && o.id === e.elementId);
|
|
@@ -2668,7 +2668,7 @@ function xc(e) {
|
|
|
2668
2668
|
const i = n.element || "";
|
|
2669
2669
|
return t.includes(i);
|
|
2670
2670
|
}
|
|
2671
|
-
if (
|
|
2671
|
+
if (Js(e)) {
|
|
2672
2672
|
const r = e.item.config?.models;
|
|
2673
2673
|
return (Array.isArray(r) ? r : r && typeof r == "object" ? Object.values(r) : []).some((n) => {
|
|
2674
2674
|
if (!n || typeof n != "object") return !1;
|
|
@@ -2678,10 +2678,10 @@ function xc(e) {
|
|
|
2678
2678
|
}
|
|
2679
2679
|
return !1;
|
|
2680
2680
|
}
|
|
2681
|
-
function
|
|
2681
|
+
function On(e) {
|
|
2682
2682
|
return zi(e).trim().length >= 10;
|
|
2683
2683
|
}
|
|
2684
|
-
function
|
|
2684
|
+
function Rc(e) {
|
|
2685
2685
|
const t = zi(e);
|
|
2686
2686
|
return [
|
|
2687
2687
|
/chemistry|chemical|element|atom|molecule|compound/i,
|
|
@@ -2692,23 +2692,23 @@ function Oc(e) {
|
|
|
2692
2692
|
/physics|force|energy|velocity|acceleration/i
|
|
2693
2693
|
].some((r) => r.test(t));
|
|
2694
2694
|
}
|
|
2695
|
-
var
|
|
2695
|
+
var Mc = [
|
|
2696
2696
|
"assessment",
|
|
2697
2697
|
"section",
|
|
2698
2698
|
"item",
|
|
2699
2699
|
"passage",
|
|
2700
2700
|
"rubric"
|
|
2701
|
-
],
|
|
2702
|
-
function
|
|
2703
|
-
return
|
|
2701
|
+
], Cc = new Set(Mc);
|
|
2702
|
+
function $c(e) {
|
|
2703
|
+
return Cc.has(e);
|
|
2704
2704
|
}
|
|
2705
2705
|
function Ui(e, t, r) {
|
|
2706
2706
|
const n = e.trim(), i = r.trim();
|
|
2707
2707
|
if (!n || !i) throw new Error("Tool instance ids require non-empty tool and scope ids");
|
|
2708
|
-
if (
|
|
2708
|
+
if (!$c(t)) throw new Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
|
|
2709
2709
|
return `${n}:${t}:${i}`;
|
|
2710
2710
|
}
|
|
2711
|
-
var
|
|
2711
|
+
var Pc = class {
|
|
2712
2712
|
constructor() {
|
|
2713
2713
|
b(this, "providerId", "desmos-calculator"), b(this, "providerName", "Desmos Calculator"), b(this, "category", "calculator"), b(this, "version", "1.10"), b(this, "requiresAuth", !0), b(this, "desmosProvider", null), b(this, "config", null);
|
|
2714
2714
|
}
|
|
@@ -2785,7 +2785,7 @@ var Cc = class {
|
|
|
2785
2785
|
destroy() {
|
|
2786
2786
|
this.desmosProvider && (this.desmosProvider.destroy(), this.desmosProvider = null), this.config = null, console.log("[DesmosToolProvider] Destroyed");
|
|
2787
2787
|
}
|
|
2788
|
-
},
|
|
2788
|
+
}, Dc = (e, t) => {
|
|
2789
2789
|
const r = t?.useSentenceSegmenter !== !1;
|
|
2790
2790
|
try {
|
|
2791
2791
|
if (!r) throw new Error("Segmenter disabled by policy");
|
|
@@ -2812,14 +2812,14 @@ var Cc = class {
|
|
|
2812
2812
|
text: e,
|
|
2813
2813
|
offset: 0
|
|
2814
2814
|
}];
|
|
2815
|
-
},
|
|
2815
|
+
}, Qs = class {
|
|
2816
2816
|
constructor() {
|
|
2817
2817
|
b(this, "providerId", "browser"), b(this, "providerName", "Browser Speech Synthesis"), b(this, "version", "1.0.0");
|
|
2818
2818
|
}
|
|
2819
2819
|
async initialize(e) {
|
|
2820
2820
|
if (typeof window > "u") throw new Error("BrowserTTSProvider requires browser environment");
|
|
2821
2821
|
if (!("speechSynthesis" in window)) throw new Error("Browser does not support Speech Synthesis API");
|
|
2822
|
-
return new
|
|
2822
|
+
return new Nc(e);
|
|
2823
2823
|
}
|
|
2824
2824
|
supportsFeature(e) {
|
|
2825
2825
|
return !0;
|
|
@@ -2836,7 +2836,7 @@ var Cc = class {
|
|
|
2836
2836
|
}
|
|
2837
2837
|
destroy() {
|
|
2838
2838
|
}
|
|
2839
|
-
},
|
|
2839
|
+
}, Nc = class {
|
|
2840
2840
|
constructor(e) {
|
|
2841
2841
|
b(this, "utterance", null), b(this, "config", null), b(this, "_isPlaying", !1), b(this, "_isPaused", !1), b(this, "speakRunId", 0), b(this, "onWordBoundary", void 0), this.config = e;
|
|
2842
2842
|
}
|
|
@@ -2906,7 +2906,7 @@ var Cc = class {
|
|
|
2906
2906
|
}
|
|
2907
2907
|
segmentSentences(e) {
|
|
2908
2908
|
const t = this.getSegmentationPolicy();
|
|
2909
|
-
return
|
|
2909
|
+
return Dc(e, {
|
|
2910
2910
|
locale: t.locale,
|
|
2911
2911
|
useSentenceSegmenter: t.useSentenceSegmenter
|
|
2912
2912
|
});
|
|
@@ -2949,8 +2949,8 @@ var Cc = class {
|
|
|
2949
2949
|
r === this.speakRunId && (this._isPaused = !1);
|
|
2950
2950
|
}, this.utterance.onboundary = (o) => {
|
|
2951
2951
|
if (r !== this.speakRunId || (console.log("[BrowserProvider] Boundary event:", o.name, "charIndex:", o.charIndex, "charLength:", o.charLength), o.name !== "word" || !this.onWordBoundary) || this.getHighlightMode() === "sentence") return;
|
|
2952
|
-
const s = Math.max(0, Math.min(o.charIndex, Math.max(0, e.length - 1))), a = Number(o.charLength || 0), u = this.inferWordLength(e, s), f = Number.isFinite(a) && a > 0 && a <= 80 && s + a <= e.length ? a : u, d = e.substring(s, Math.min(e.length, s + f)).trim(),
|
|
2953
|
-
console.log("[BrowserProvider] Calling onWordBoundary with word:", d, "at position:",
|
|
2952
|
+
const s = Math.max(0, Math.min(o.charIndex, Math.max(0, e.length - 1))), a = Number(o.charLength || 0), u = this.inferWordLength(e, s), f = Number.isFinite(a) && a > 0 && a <= 80 && s + a <= e.length ? a : u, d = e.substring(s, Math.min(e.length, s + f)).trim(), v = t + s;
|
|
2953
|
+
console.log("[BrowserProvider] Calling onWordBoundary with word:", d, "at position:", v), this.onWordBoundary(d, v, f);
|
|
2954
2954
|
}, speechSynthesis.speak(this.utterance);
|
|
2955
2955
|
});
|
|
2956
2956
|
}
|
|
@@ -2975,7 +2975,7 @@ var Cc = class {
|
|
|
2975
2975
|
...e.providerOptions || {}
|
|
2976
2976
|
});
|
|
2977
2977
|
}
|
|
2978
|
-
},
|
|
2978
|
+
}, zc = class {
|
|
2979
2979
|
async emitTelemetry(e, t) {
|
|
2980
2980
|
try {
|
|
2981
2981
|
await this.config?.onTelemetry?.(e, t);
|
|
@@ -3007,7 +3007,7 @@ var Cc = class {
|
|
|
3007
3007
|
}
|
|
3008
3008
|
async _initializeBrowserTTS(e) {
|
|
3009
3009
|
if (typeof window > "u" || !("speechSynthesis" in window)) throw new Error("[TTSToolProvider] Browser TTS not supported (Web Speech API not available)");
|
|
3010
|
-
this.ttsProvider = new
|
|
3010
|
+
this.ttsProvider = new Qs(), console.log("[TTSToolProvider] Browser TTS initialized (Web Speech API)");
|
|
3011
3011
|
}
|
|
3012
3012
|
async _initializeServerTTS(e) {
|
|
3013
3013
|
if (!e.apiEndpoint) throw new Error("[TTSToolProvider] apiEndpoint required for server-based TTS backends");
|
|
@@ -3065,7 +3065,7 @@ var Cc = class {
|
|
|
3065
3065
|
destroy() {
|
|
3066
3066
|
this.ttsProvider && (this.ttsProvider.destroy(), this.ttsProvider = null), this.config = null, console.log("[TTSToolProvider] Destroyed");
|
|
3067
3067
|
}
|
|
3068
|
-
},
|
|
3068
|
+
}, Uc = /* @__PURE__ */ new Set([
|
|
3069
3069
|
"annotation-xml",
|
|
3070
3070
|
"color-profile",
|
|
3071
3071
|
"font-face",
|
|
@@ -3074,16 +3074,16 @@ var Cc = class {
|
|
|
3074
3074
|
"font-face-format",
|
|
3075
3075
|
"font-face-name",
|
|
3076
3076
|
"missing-glyph"
|
|
3077
|
-
]),
|
|
3077
|
+
]), Fc = /^[a-z][a-z0-9._-]*-[a-z0-9._-]*$/, Bc = (e, t = "custom element tag") => {
|
|
3078
3078
|
if (!e || typeof e != "string") throw new Error(`Invalid ${t}: expected a non-empty string`);
|
|
3079
3079
|
const r = e.trim();
|
|
3080
3080
|
if (!r) throw new Error(`Invalid ${t}: tag is empty`);
|
|
3081
3081
|
if (r !== r.toLowerCase()) throw new Error(`Invalid ${t} "${r}": custom element names must be lowercase`);
|
|
3082
3082
|
if (!r.includes("-")) throw new Error(`Invalid ${t} "${r}": custom element names must include a hyphen`);
|
|
3083
|
-
if (
|
|
3084
|
-
if (!
|
|
3083
|
+
if (Uc.has(r)) throw new Error(`Invalid ${t} "${r}": this name is reserved by the HTML spec`);
|
|
3084
|
+
if (!Fc.test(r)) throw new Error(`Invalid ${t} "${r}": allowed characters are lowercase letters, numbers, ".", "_" and "-"`);
|
|
3085
3085
|
return r;
|
|
3086
|
-
},
|
|
3086
|
+
}, ea = {
|
|
3087
3087
|
calculator: "pie-tool-calculator",
|
|
3088
3088
|
textToSpeech: "pie-tool-text-to-speech",
|
|
3089
3089
|
ruler: "pie-tool-ruler",
|
|
@@ -3096,22 +3096,38 @@ var Cc = class {
|
|
|
3096
3096
|
annotationToolbar: "pie-tool-annotation-toolbar",
|
|
3097
3097
|
graph: "pie-tool-graph",
|
|
3098
3098
|
periodicTable: "pie-tool-periodic-table"
|
|
3099
|
-
},
|
|
3100
|
-
const i =
|
|
3099
|
+
}, Hc = (e, t) => Bc(t?.toolTagMap?.[e] ?? ea[e] ?? e, `tool component tag for "${e}"`), jc = (e) => document.createElement(e), Xe = (e, t, r, n) => {
|
|
3100
|
+
const i = Hc(e, n), o = n?.toolComponentFactories?.[e] ?? n?.toolComponentFactory;
|
|
3101
3101
|
return o ? o({
|
|
3102
3102
|
toolId: e,
|
|
3103
3103
|
tagName: i,
|
|
3104
3104
|
context: t,
|
|
3105
3105
|
toolbarContext: r
|
|
3106
|
-
}) :
|
|
3107
|
-
}
|
|
3106
|
+
}) : jc(i);
|
|
3107
|
+
};
|
|
3108
|
+
function xo(e) {
|
|
3109
|
+
return e === "basic" || e === "scientific" ? e : null;
|
|
3110
|
+
}
|
|
3111
|
+
function Wc(e) {
|
|
3112
|
+
const t = e.getToolRenderParams?.("calculator") ?? {}, r = xo(t.calculatorType), n = t.availableTypes;
|
|
3113
|
+
return {
|
|
3114
|
+
calculatorType: r,
|
|
3115
|
+
availableTypes: Array.isArray(n) ? n.map((i) => xo(i)).filter((i) => i !== null) : r ? [r] : null,
|
|
3116
|
+
displayName: r === "scientific" ? "Scientific Calculator" : r === "basic" ? "Basic Calculator" : "Calculator"
|
|
3117
|
+
};
|
|
3118
|
+
}
|
|
3119
|
+
function Lo(e, t, r) {
|
|
3120
|
+
const n = e;
|
|
3121
|
+
t ? (n.calculatorType = t, e.setAttribute("calculator-type", t)) : (delete n.calculatorType, e.removeAttribute("calculator-type")), r && r.length > 0 ? n.availableTypes = r : delete n.availableTypes;
|
|
3122
|
+
}
|
|
3123
|
+
var Gc = {
|
|
3108
3124
|
toolId: "calculator",
|
|
3109
3125
|
name: "Calculator",
|
|
3110
3126
|
description: "Multi-type calculator (basic, scientific, graphing)",
|
|
3111
3127
|
icon: "calculator",
|
|
3112
3128
|
provider: {
|
|
3113
3129
|
getProviderId: (e) => typeof e?.provider?.id == "string" && e.provider.id.length > 0 ? e.provider.id : "calculator-desmos",
|
|
3114
|
-
createProvider: () => new
|
|
3130
|
+
createProvider: () => new Pc(),
|
|
3115
3131
|
getInitConfig: (e) => e?.provider?.init ?? {},
|
|
3116
3132
|
getAuthFetcher: (e) => {
|
|
3117
3133
|
const t = e?.provider?.runtime?.authFetcher;
|
|
@@ -3134,26 +3150,26 @@ var Cc = class {
|
|
|
3134
3150
|
"scientificCalculator"
|
|
3135
3151
|
],
|
|
3136
3152
|
isVisibleInContext(e) {
|
|
3137
|
-
return
|
|
3153
|
+
return Ln(e);
|
|
3138
3154
|
},
|
|
3139
3155
|
renderToolbar(e, t) {
|
|
3140
|
-
const r = Ui(this.toolId, t.scope.level, t.scope.scopeId),
|
|
3141
|
-
|
|
3142
|
-
const
|
|
3156
|
+
const { calculatorType: r, availableTypes: n, displayName: i } = Wc(t), o = Ui(this.toolId, t.scope.level, t.scope.scopeId), s = t.componentOverrides, a = Xe(this.toolId, e, t, s);
|
|
3157
|
+
a.setAttribute("tool-id", o), a.toolkitCoordinator = t.toolkitCoordinator, Lo(a, r, n);
|
|
3158
|
+
const u = r === null ? "Open scientific calculator" : `Open ${i.toLowerCase()}`, f = r === null ? "Close scientific calculator" : `Close ${i.toLowerCase()}`, d = {
|
|
3143
3159
|
toolId: this.toolId,
|
|
3144
|
-
label:
|
|
3160
|
+
label: i,
|
|
3145
3161
|
icon: typeof this.icon == "function" ? this.icon(e) : this.icon,
|
|
3146
3162
|
disabled: !1,
|
|
3147
|
-
ariaLabel:
|
|
3148
|
-
tooltip:
|
|
3163
|
+
ariaLabel: u,
|
|
3164
|
+
tooltip: i,
|
|
3149
3165
|
onClick: () => t.toggleTool(this.toolId),
|
|
3150
|
-
active: t.isToolVisible(
|
|
3166
|
+
active: t.isToolVisible(o)
|
|
3151
3167
|
};
|
|
3152
|
-
let
|
|
3153
|
-
return
|
|
3168
|
+
let v = d.active;
|
|
3169
|
+
return a.visible = d.active, {
|
|
3154
3170
|
toolId: this.toolId,
|
|
3155
3171
|
elements: [{
|
|
3156
|
-
element:
|
|
3172
|
+
element: a,
|
|
3157
3173
|
mount: "after-buttons",
|
|
3158
3174
|
shell: {
|
|
3159
3175
|
title: this.name,
|
|
@@ -3166,24 +3182,24 @@ var Cc = class {
|
|
|
3166
3182
|
minHeight: 420
|
|
3167
3183
|
}
|
|
3168
3184
|
}],
|
|
3169
|
-
button:
|
|
3185
|
+
button: d,
|
|
3170
3186
|
sync: () => {
|
|
3171
|
-
const
|
|
3172
|
-
|
|
3187
|
+
const p = t.isToolVisible(o);
|
|
3188
|
+
d.active = p, d.label = i, d.ariaLabel = p ? f : u, d.tooltip = p ? `Close ${i.toLowerCase()}` : i, v !== p && (a.visible = p, v = p), a.toolkitCoordinator !== t.toolkitCoordinator && (a.toolkitCoordinator = t.toolkitCoordinator), Lo(a, r, n);
|
|
3173
3189
|
},
|
|
3174
|
-
subscribeActive: (
|
|
3175
|
-
|
|
3190
|
+
subscribeActive: (p) => t.subscribeVisibility ? t.subscribeVisibility(() => {
|
|
3191
|
+
p(t.isToolVisible(o));
|
|
3176
3192
|
}) : () => {
|
|
3177
3193
|
}
|
|
3178
3194
|
};
|
|
3179
3195
|
}
|
|
3180
|
-
},
|
|
3196
|
+
}, Vc = /* @__PURE__ */ new Set([
|
|
3181
3197
|
"reserved-row",
|
|
3182
3198
|
"expanding-row",
|
|
3183
3199
|
"floating-overlay",
|
|
3184
3200
|
"left-aligned"
|
|
3185
|
-
]),
|
|
3186
|
-
if (!Array.isArray(e)) return [...
|
|
3201
|
+
]), Oo = (e) => e && typeof e == "object" ? e : {}, Yc = (e) => e === "polly" || e === "google" || e === "server", we = (e, t) => e === void 0 ? t : e, En = (e, t = "left-aligned") => typeof e == "string" && Vc.has(e) ? e : t, Ro = Object.freeze([0.8, 1.25]), Xn = (e) => {
|
|
3202
|
+
if (!Array.isArray(e)) return [...Ro];
|
|
3187
3203
|
if (e.length === 0) return [];
|
|
3188
3204
|
const t = /* @__PURE__ */ new Set();
|
|
3189
3205
|
for (const r of e) {
|
|
@@ -3191,13 +3207,13 @@ var Cc = class {
|
|
|
3191
3207
|
const n = Math.round(r * 100) / 100;
|
|
3192
3208
|
n !== 1 && t.add(n);
|
|
3193
3209
|
}
|
|
3194
|
-
return t.size ? Array.from(t) : [...
|
|
3195
|
-
},
|
|
3210
|
+
return t.size ? Array.from(t) : [...Ro];
|
|
3211
|
+
}, qc = (e) => {
|
|
3196
3212
|
const t = {
|
|
3197
3213
|
...e,
|
|
3198
3214
|
layoutMode: En(e.layoutMode)
|
|
3199
3215
|
}, r = e.backend || "browser";
|
|
3200
|
-
if (!
|
|
3216
|
+
if (!Yc(r)) return t;
|
|
3201
3217
|
const n = {
|
|
3202
3218
|
...t,
|
|
3203
3219
|
apiEndpoint: we(t.apiEndpoint, "/api/tts"),
|
|
@@ -3219,13 +3235,13 @@ var Cc = class {
|
|
|
3219
3235
|
defaultVoice: we(n.defaultVoice, "en-US-Wavenet-A")
|
|
3220
3236
|
} : n;
|
|
3221
3237
|
}, Jn = (e) => {
|
|
3222
|
-
const t =
|
|
3223
|
-
return
|
|
3238
|
+
const t = Oo(e), r = Oo(e?.settings);
|
|
3239
|
+
return qc({
|
|
3224
3240
|
...t,
|
|
3225
3241
|
...r
|
|
3226
3242
|
});
|
|
3227
|
-
}, gi = (e) => e.backend || "browser",
|
|
3228
|
-
const t = gi(e), r =
|
|
3243
|
+
}, gi = (e) => e.backend || "browser", ta = (e, t) => t === "polly" || t === "google" ? t : e.serverProvider || e.provider, ra = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), Kc = (e) => {
|
|
3244
|
+
const t = gi(e), r = ta(e, t), n = ra(e, r);
|
|
3229
3245
|
return {
|
|
3230
3246
|
voice: e.defaultVoice,
|
|
3231
3247
|
rate: e.rate,
|
|
@@ -3249,8 +3265,8 @@ var Cc = class {
|
|
|
3249
3265
|
includeAuthOnAssetFetch: e.includeAuthOnAssetFetch,
|
|
3250
3266
|
validateEndpoint: e.validateEndpoint
|
|
3251
3267
|
};
|
|
3252
|
-
},
|
|
3253
|
-
switch (
|
|
3268
|
+
}, na = (e) => En(e.layoutMode), Xc = (e) => {
|
|
3269
|
+
switch (na(e)) {
|
|
3254
3270
|
case "reserved-row":
|
|
3255
3271
|
return {
|
|
3256
3272
|
mount: "before-buttons",
|
|
@@ -3276,21 +3292,21 @@ var Cc = class {
|
|
|
3276
3292
|
}
|
|
3277
3293
|
};
|
|
3278
3294
|
}
|
|
3279
|
-
},
|
|
3295
|
+
}, Or = /* @__PURE__ */ new Map(), Jc = "__pieToolElementUnmount", Mo = "pie-tool-active-change", Zc = {
|
|
3280
3296
|
toolId: "textToSpeech",
|
|
3281
3297
|
name: "Text to Speech",
|
|
3282
3298
|
description: "Read content aloud",
|
|
3283
3299
|
icon: "volume-up",
|
|
3284
3300
|
provider: {
|
|
3285
3301
|
getProviderId: () => "tts",
|
|
3286
|
-
createProvider: (e) => new
|
|
3302
|
+
createProvider: (e) => new zc(gi(Jn(e))),
|
|
3287
3303
|
getInitConfig: (e) => {
|
|
3288
|
-
const t = Jn(e), r = gi(t), n =
|
|
3304
|
+
const t = Jn(e), r = gi(t), n = ta(t, r);
|
|
3289
3305
|
return {
|
|
3290
3306
|
backend: r,
|
|
3291
3307
|
serverProvider: n,
|
|
3292
|
-
transportMode:
|
|
3293
|
-
...
|
|
3308
|
+
transportMode: ra(t, n),
|
|
3309
|
+
...Kc(t)
|
|
3294
3310
|
};
|
|
3295
3311
|
},
|
|
3296
3312
|
getAuthFetcher: (e) => {
|
|
@@ -3313,17 +3329,17 @@ var Cc = class {
|
|
|
3313
3329
|
"speechOutput"
|
|
3314
3330
|
],
|
|
3315
3331
|
isVisibleInContext(e) {
|
|
3316
|
-
return
|
|
3332
|
+
return On(e);
|
|
3317
3333
|
},
|
|
3318
3334
|
renderToolbar(e, t) {
|
|
3319
|
-
const r = () => Jn(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), n = () => Xn(r().speedOptions), i = () =>
|
|
3335
|
+
const r = () => Jn(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), n = () => Xn(r().speedOptions), i = () => na(r()), o = () => Xc(r()), s = Ui(this.toolId, t.scope.level, t.scope.scopeId), a = () => {
|
|
3320
3336
|
const d = t.ui?.size;
|
|
3321
3337
|
return d === "sm" || d === "lg" ? d : "md";
|
|
3322
3338
|
}, u = () => {
|
|
3323
|
-
let d =
|
|
3324
|
-
return d && typeof d.isConnected == "boolean" && !d.isConnected && (
|
|
3325
|
-
|
|
3326
|
-
},
|
|
3339
|
+
let d = Or.get(s);
|
|
3340
|
+
return d && typeof d.isConnected == "boolean" && !d.isConnected && (Or.delete(s), d = void 0), d || (d = document.createElement("pie-tool-tts-inline"), d[Jc] = () => {
|
|
3341
|
+
Or.get(s) === d && Or.delete(s);
|
|
3342
|
+
}, Or.set(s, d)), d.setAttribute("tool-id", s), d.setAttribute("catalog-id", t.catalogId || t.itemId), d.setAttribute("language", t.language || "en-US"), d.setAttribute("size", a()), d.setAttribute("layout-mode", i()), d.speedOptions = n(), d;
|
|
3327
3343
|
}, f = o();
|
|
3328
3344
|
return {
|
|
3329
3345
|
toolId: this.toolId,
|
|
@@ -3337,12 +3353,12 @@ var Cc = class {
|
|
|
3337
3353
|
} }
|
|
3338
3354
|
}],
|
|
3339
3355
|
subscribeActive: (d) => {
|
|
3340
|
-
const
|
|
3341
|
-
const _ =
|
|
3356
|
+
const v = u(), p = (m) => {
|
|
3357
|
+
const _ = m.detail;
|
|
3342
3358
|
d(_?.active === !0);
|
|
3343
3359
|
};
|
|
3344
|
-
return
|
|
3345
|
-
|
|
3360
|
+
return v.addEventListener(Mo, p), () => {
|
|
3361
|
+
v.removeEventListener(Mo, p);
|
|
3346
3362
|
};
|
|
3347
3363
|
},
|
|
3348
3364
|
sync: () => {
|
|
@@ -3370,7 +3386,7 @@ function pt(e) {
|
|
|
3370
3386
|
function Fi(e, t) {
|
|
3371
3387
|
e.setAttribute("data-pie-tool-surface", t);
|
|
3372
3388
|
}
|
|
3373
|
-
var
|
|
3389
|
+
var Qc = {
|
|
3374
3390
|
toolId: "ruler",
|
|
3375
3391
|
name: "Ruler",
|
|
3376
3392
|
description: "On-screen ruler for measurements",
|
|
@@ -3382,7 +3398,7 @@ var Xc = {
|
|
|
3382
3398
|
],
|
|
3383
3399
|
pnpSupportIds: ["ruler", "measurement"],
|
|
3384
3400
|
isVisibleInContext(e) {
|
|
3385
|
-
return
|
|
3401
|
+
return Ln(e);
|
|
3386
3402
|
},
|
|
3387
3403
|
renderToolbar(e, t) {
|
|
3388
3404
|
const r = dt(this.toolId, t), n = {
|
|
@@ -3412,7 +3428,7 @@ var Xc = {
|
|
|
3412
3428
|
subscribeActive: r.subscribeActive
|
|
3413
3429
|
};
|
|
3414
3430
|
}
|
|
3415
|
-
},
|
|
3431
|
+
}, eu = {
|
|
3416
3432
|
toolId: "protractor",
|
|
3417
3433
|
name: "Protractor",
|
|
3418
3434
|
description: "On-screen protractor for angle measurements",
|
|
@@ -3424,7 +3440,7 @@ var Xc = {
|
|
|
3424
3440
|
],
|
|
3425
3441
|
pnpSupportIds: ["protractor", "angleMeasurement"],
|
|
3426
3442
|
isVisibleInContext(e) {
|
|
3427
|
-
return
|
|
3443
|
+
return Ln(e);
|
|
3428
3444
|
},
|
|
3429
3445
|
renderToolbar(e, t) {
|
|
3430
3446
|
const r = dt(this.toolId, t), n = {
|
|
@@ -3454,7 +3470,7 @@ var Xc = {
|
|
|
3454
3470
|
subscribeActive: r.subscribeActive
|
|
3455
3471
|
};
|
|
3456
3472
|
}
|
|
3457
|
-
},
|
|
3473
|
+
}, tu = {
|
|
3458
3474
|
toolId: "answerEliminator",
|
|
3459
3475
|
name: "Answer Eliminator",
|
|
3460
3476
|
description: "Strike through answer choices",
|
|
@@ -3467,7 +3483,7 @@ var Xc = {
|
|
|
3467
3483
|
"choiceMasking"
|
|
3468
3484
|
],
|
|
3469
3485
|
isVisibleInContext(e) {
|
|
3470
|
-
return
|
|
3486
|
+
return Oc(e);
|
|
3471
3487
|
},
|
|
3472
3488
|
renderToolbar(e, t) {
|
|
3473
3489
|
const r = dt(this.toolId, t), n = t.componentOverrides ?? {}, i = Xe(this.toolId, e, t, n);
|
|
@@ -3501,7 +3517,7 @@ var Xc = {
|
|
|
3501
3517
|
subscribeActive: r.subscribeActive
|
|
3502
3518
|
};
|
|
3503
3519
|
}
|
|
3504
|
-
},
|
|
3520
|
+
}, ru = {
|
|
3505
3521
|
toolId: "highlighter",
|
|
3506
3522
|
name: "Highlighter",
|
|
3507
3523
|
description: "Highlight text",
|
|
@@ -3519,7 +3535,7 @@ var Xc = {
|
|
|
3519
3535
|
"annotation"
|
|
3520
3536
|
],
|
|
3521
3537
|
isVisibleInContext(e) {
|
|
3522
|
-
return
|
|
3538
|
+
return On(e);
|
|
3523
3539
|
},
|
|
3524
3540
|
renderToolbar(e, t) {
|
|
3525
3541
|
const r = dt(this.toolId, t), n = {
|
|
@@ -3552,7 +3568,7 @@ var Xc = {
|
|
|
3552
3568
|
subscribeActive: r.subscribeActive
|
|
3553
3569
|
};
|
|
3554
3570
|
}
|
|
3555
|
-
},
|
|
3571
|
+
}, nu = {
|
|
3556
3572
|
toolId: "lineReader",
|
|
3557
3573
|
name: "Line Reader",
|
|
3558
3574
|
description: "Reading guide overlay",
|
|
@@ -3571,7 +3587,7 @@ var Xc = {
|
|
|
3571
3587
|
"trackingGuide"
|
|
3572
3588
|
],
|
|
3573
3589
|
isVisibleInContext(e) {
|
|
3574
|
-
return
|
|
3590
|
+
return On(e);
|
|
3575
3591
|
},
|
|
3576
3592
|
renderToolbar(e, t) {
|
|
3577
3593
|
const r = dt(this.toolId, t), n = {
|
|
@@ -3601,7 +3617,7 @@ var Xc = {
|
|
|
3601
3617
|
subscribeActive: r.subscribeActive
|
|
3602
3618
|
};
|
|
3603
3619
|
}
|
|
3604
|
-
},
|
|
3620
|
+
}, iu = {
|
|
3605
3621
|
toolId: "theme",
|
|
3606
3622
|
name: "Theme",
|
|
3607
3623
|
description: "Accessible themes and contrast",
|
|
@@ -3657,7 +3673,7 @@ var Xc = {
|
|
|
3657
3673
|
subscribeActive: r.subscribeActive
|
|
3658
3674
|
};
|
|
3659
3675
|
}
|
|
3660
|
-
},
|
|
3676
|
+
}, ou = {
|
|
3661
3677
|
toolId: "annotationToolbar",
|
|
3662
3678
|
name: "Highlighter",
|
|
3663
3679
|
description: "Highlight and annotate text",
|
|
@@ -3678,7 +3694,7 @@ var Xc = {
|
|
|
3678
3694
|
"annotation"
|
|
3679
3695
|
],
|
|
3680
3696
|
isVisibleInContext(e) {
|
|
3681
|
-
return
|
|
3697
|
+
return On(e);
|
|
3682
3698
|
},
|
|
3683
3699
|
renderToolbar(e, t) {
|
|
3684
3700
|
const r = dt(this.toolId, t), n = {
|
|
@@ -3708,7 +3724,7 @@ var Xc = {
|
|
|
3708
3724
|
subscribeActive: r.subscribeActive
|
|
3709
3725
|
};
|
|
3710
3726
|
}
|
|
3711
|
-
},
|
|
3727
|
+
}, su = {
|
|
3712
3728
|
toolId: "graph",
|
|
3713
3729
|
name: "Graph",
|
|
3714
3730
|
description: "Graphing calculator and coordinate plane",
|
|
@@ -3721,7 +3737,7 @@ var Xc = {
|
|
|
3721
3737
|
"graphingTool"
|
|
3722
3738
|
],
|
|
3723
3739
|
isVisibleInContext(e) {
|
|
3724
|
-
return
|
|
3740
|
+
return Ln(e);
|
|
3725
3741
|
},
|
|
3726
3742
|
renderToolbar(e, t) {
|
|
3727
3743
|
const r = dt(this.toolId, t), n = {
|
|
@@ -3761,7 +3777,7 @@ var Xc = {
|
|
|
3761
3777
|
subscribeActive: r.subscribeActive
|
|
3762
3778
|
};
|
|
3763
3779
|
}
|
|
3764
|
-
},
|
|
3780
|
+
}, au = {
|
|
3765
3781
|
toolId: "periodicTable",
|
|
3766
3782
|
name: "Periodic Table",
|
|
3767
3783
|
description: "Chemistry periodic table reference",
|
|
@@ -3773,7 +3789,7 @@ var Xc = {
|
|
|
3773
3789
|
"elementReference"
|
|
3774
3790
|
],
|
|
3775
3791
|
isVisibleInContext(e) {
|
|
3776
|
-
return
|
|
3792
|
+
return Rc(e);
|
|
3777
3793
|
},
|
|
3778
3794
|
renderToolbar(e, t) {
|
|
3779
3795
|
const r = dt(this.toolId, t), n = {
|
|
@@ -3813,54 +3829,54 @@ var Xc = {
|
|
|
3813
3829
|
subscribeActive: r.subscribeActive
|
|
3814
3830
|
};
|
|
3815
3831
|
}
|
|
3816
|
-
},
|
|
3817
|
-
|
|
3818
|
-
Kc,
|
|
3819
|
-
Xc,
|
|
3820
|
-
Jc,
|
|
3832
|
+
}, lu = [
|
|
3833
|
+
Gc,
|
|
3821
3834
|
Zc,
|
|
3822
3835
|
Qc,
|
|
3823
3836
|
eu,
|
|
3824
3837
|
tu,
|
|
3825
3838
|
ru,
|
|
3826
3839
|
nu,
|
|
3827
|
-
iu
|
|
3840
|
+
iu,
|
|
3841
|
+
ou,
|
|
3842
|
+
su,
|
|
3843
|
+
au
|
|
3828
3844
|
];
|
|
3829
|
-
function
|
|
3830
|
-
const t = new
|
|
3845
|
+
function cu(e = {}) {
|
|
3846
|
+
const t = new Ic(), r = {
|
|
3831
3847
|
toolTagMap: {
|
|
3832
|
-
...
|
|
3848
|
+
...ea,
|
|
3833
3849
|
...e.toolTagMap || {}
|
|
3834
3850
|
},
|
|
3835
3851
|
toolComponentFactory: e.toolComponentFactory,
|
|
3836
3852
|
toolComponentFactories: e.toolComponentFactories
|
|
3837
3853
|
}, n = (i) => e.overrides?.[i.toolId] || i;
|
|
3838
|
-
return e.includePackagedTools &&
|
|
3854
|
+
return e.includePackagedTools && uu(t, {
|
|
3839
3855
|
toolIds: e.toolIds,
|
|
3840
3856
|
applyOverrides: n
|
|
3841
3857
|
}), e.toolModuleLoaders && Object.keys(e.toolModuleLoaders).length > 0 && t.setToolModuleLoaders(e.toolModuleLoaders), t.setComponentOverrides(r), t;
|
|
3842
3858
|
}
|
|
3843
|
-
function
|
|
3859
|
+
function uu(e, t = {}) {
|
|
3844
3860
|
const r = t.toolIds && t.toolIds.length > 0 ? new Set(t.toolIds) : null, n = t.applyOverrides || ((i) => i);
|
|
3845
|
-
for (const i of
|
|
3861
|
+
for (const i of lu)
|
|
3846
3862
|
r && !r.has(i.toolId) || e.register(n(i));
|
|
3847
3863
|
}
|
|
3848
|
-
function
|
|
3849
|
-
return
|
|
3864
|
+
function fu(e = {}) {
|
|
3865
|
+
return cu({
|
|
3850
3866
|
...e,
|
|
3851
3867
|
includePackagedTools: !0
|
|
3852
3868
|
});
|
|
3853
3869
|
}
|
|
3854
|
-
function
|
|
3855
|
-
const e =
|
|
3870
|
+
function du() {
|
|
3871
|
+
const e = fu(), t = /* @__PURE__ */ new Set();
|
|
3856
3872
|
for (const r of e.getAllTools()) for (const n of r.pnpSupportIds || []) t.add(n);
|
|
3857
3873
|
return [...t].sort();
|
|
3858
3874
|
}
|
|
3859
|
-
var
|
|
3860
|
-
supports: [...
|
|
3875
|
+
var pu = du(), bf = {
|
|
3876
|
+
supports: [...pu],
|
|
3861
3877
|
prohibitedSupports: [],
|
|
3862
3878
|
activateAtInit: []
|
|
3863
|
-
},
|
|
3879
|
+
}, hu = {
|
|
3864
3880
|
visual: {
|
|
3865
3881
|
magnification: "magnification",
|
|
3866
3882
|
screenMagnifier: "screenMagnifier",
|
|
@@ -3973,15 +3989,15 @@ var uu = cu(), _f = {
|
|
|
3973
3989
|
itemGlossary: "itemGlossary",
|
|
3974
3990
|
tutorialAvailable: "tutorialAvailable"
|
|
3975
3991
|
}
|
|
3976
|
-
},
|
|
3992
|
+
}, yf = Object.values(hu).flatMap((e) => Object.values(e)), wf = Ks("ToolCoordinator"), bi;
|
|
3977
3993
|
(function(e) {
|
|
3978
3994
|
e[e.BASE = 0] = "BASE", e[e.TOOL = 1e3] = "TOOL", e[e.MODAL = 2e3] = "MODAL", e[e.CONTROL = 3e3] = "CONTROL", e[e.HIGHLIGHT = 4e3] = "HIGHLIGHT";
|
|
3979
3995
|
})(bi || (bi = {}));
|
|
3980
|
-
var
|
|
3996
|
+
var Co;
|
|
3981
3997
|
(function(e) {
|
|
3982
3998
|
e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
|
|
3983
|
-
})(
|
|
3984
|
-
var
|
|
3999
|
+
})(Co || (Co = {}));
|
|
4000
|
+
var Tf = Ec({
|
|
3985
4001
|
policy: {
|
|
3986
4002
|
allowed: [],
|
|
3987
4003
|
blocked: []
|
|
@@ -3992,8 +4008,8 @@ var bf = wc({
|
|
|
3992
4008
|
passage: []
|
|
3993
4009
|
},
|
|
3994
4010
|
providers: {}
|
|
3995
|
-
}),
|
|
3996
|
-
function
|
|
4011
|
+
}), ia = "https://proxy.pie-api.com", vu = `${ia}/bundles/`;
|
|
4012
|
+
function oa(e) {
|
|
3997
4013
|
try {
|
|
3998
4014
|
const t = {
|
|
3999
4015
|
BASE_URL: "/",
|
|
@@ -4006,10 +4022,10 @@ function na(e) {
|
|
|
4006
4022
|
} catch {
|
|
4007
4023
|
}
|
|
4008
4024
|
}
|
|
4009
|
-
var
|
|
4025
|
+
var Ef = typeof window < "u" && window.PIE_BUILDER_ORIGIN_URL || oa("PUBLIC_BUILDER_ORIGIN_URL") || ia, mu = typeof window < "u" && window.PIE_BUILDER_BUNDLE_URL || oa("PUBLIC_BUILDER_BUNDLE_URL") || vu, _u = {
|
|
4010
4026
|
retryDelayMs: 3e3,
|
|
4011
4027
|
timeoutMs: 12e4
|
|
4012
|
-
}, { entries:
|
|
4028
|
+
}, { entries: sa, setPrototypeOf: $o, isFrozen: gu, getPrototypeOf: bu, getOwnPropertyDescriptor: yu } = Object, { freeze: se, seal: xe, create: Nr } = Object, { apply: yi, construct: wi } = typeof Reflect < "u" && Reflect;
|
|
4013
4029
|
se || (se = function(t) {
|
|
4014
4030
|
return t;
|
|
4015
4031
|
});
|
|
@@ -4024,7 +4040,7 @@ wi || (wi = function(t) {
|
|
|
4024
4040
|
for (var r = arguments.length, n = new Array(r > 1 ? r - 1 : 0), i = 1; i < r; i++) n[i - 1] = arguments[i];
|
|
4025
4041
|
return new t(...n);
|
|
4026
4042
|
});
|
|
4027
|
-
var Rr = ae(Array.prototype.forEach),
|
|
4043
|
+
var Rr = ae(Array.prototype.forEach), wu = ae(Array.prototype.lastIndexOf), Po = ae(Array.prototype.pop), Mr = ae(Array.prototype.push), Tu = ae(Array.prototype.splice), hn = ae(String.prototype.toLowerCase), Zn = ae(String.prototype.toString), Qn = ae(String.prototype.match), sr = ae(String.prototype.replace), Eu = ae(String.prototype.indexOf), ku = ae(String.prototype.trim), Me = ae(Object.prototype.hasOwnProperty), ie = ae(RegExp.prototype.test), Cr = Su(TypeError);
|
|
4028
4044
|
function ae(e) {
|
|
4029
4045
|
return function(t) {
|
|
4030
4046
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
@@ -4032,7 +4048,7 @@ function ae(e) {
|
|
|
4032
4048
|
return yi(e, t, n);
|
|
4033
4049
|
};
|
|
4034
4050
|
}
|
|
4035
|
-
function
|
|
4051
|
+
function Su(e) {
|
|
4036
4052
|
return function() {
|
|
4037
4053
|
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++) r[n] = arguments[n];
|
|
4038
4054
|
return wi(e, r);
|
|
@@ -4040,42 +4056,42 @@ function Tu(e) {
|
|
|
4040
4056
|
}
|
|
4041
4057
|
function I(e, t) {
|
|
4042
4058
|
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : hn;
|
|
4043
|
-
|
|
4059
|
+
$o && $o(e, null);
|
|
4044
4060
|
let n = t.length;
|
|
4045
4061
|
for (; n--; ) {
|
|
4046
4062
|
let i = t[n];
|
|
4047
4063
|
if (typeof i == "string") {
|
|
4048
4064
|
const o = r(i);
|
|
4049
|
-
o !== i && (
|
|
4065
|
+
o !== i && (gu(t) || (t[n] = o), i = o);
|
|
4050
4066
|
}
|
|
4051
4067
|
e[i] = !0;
|
|
4052
4068
|
}
|
|
4053
4069
|
return e;
|
|
4054
4070
|
}
|
|
4055
|
-
function
|
|
4071
|
+
function Au(e) {
|
|
4056
4072
|
for (let t = 0; t < e.length; t++) Me(e, t) || (e[t] = null);
|
|
4057
4073
|
return e;
|
|
4058
4074
|
}
|
|
4059
4075
|
function He(e) {
|
|
4060
4076
|
const t = Nr(null);
|
|
4061
|
-
for (const [r, n] of
|
|
4077
|
+
for (const [r, n] of sa(e)) Me(e, r) && (Array.isArray(n) ? t[r] = Au(n) : n && typeof n == "object" && n.constructor === Object ? t[r] = He(n) : t[r] = n);
|
|
4062
4078
|
return t;
|
|
4063
4079
|
}
|
|
4064
4080
|
function $r(e, t) {
|
|
4065
4081
|
for (; e !== null; ) {
|
|
4066
|
-
const n =
|
|
4082
|
+
const n = yu(e, t);
|
|
4067
4083
|
if (n) {
|
|
4068
4084
|
if (n.get) return ae(n.get);
|
|
4069
4085
|
if (typeof n.value == "function") return ae(n.value);
|
|
4070
4086
|
}
|
|
4071
|
-
e =
|
|
4087
|
+
e = bu(e);
|
|
4072
4088
|
}
|
|
4073
4089
|
function r() {
|
|
4074
4090
|
return null;
|
|
4075
4091
|
}
|
|
4076
4092
|
return r;
|
|
4077
4093
|
}
|
|
4078
|
-
var
|
|
4094
|
+
var Do = se([
|
|
4079
4095
|
"a",
|
|
4080
4096
|
"abbr",
|
|
4081
4097
|
"acronym",
|
|
@@ -4269,7 +4285,7 @@ var $o = se([
|
|
|
4269
4285
|
"feSpotLight",
|
|
4270
4286
|
"feTile",
|
|
4271
4287
|
"feTurbulence"
|
|
4272
|
-
]),
|
|
4288
|
+
]), Iu = se([
|
|
4273
4289
|
"animate",
|
|
4274
4290
|
"color-profile",
|
|
4275
4291
|
"cursor",
|
|
@@ -4323,7 +4339,7 @@ var $o = se([
|
|
|
4323
4339
|
"munder",
|
|
4324
4340
|
"munderover",
|
|
4325
4341
|
"mprescripts"
|
|
4326
|
-
]),
|
|
4342
|
+
]), xu = se([
|
|
4327
4343
|
"maction",
|
|
4328
4344
|
"maligngroup",
|
|
4329
4345
|
"malignmark",
|
|
@@ -4339,7 +4355,7 @@ var $o = se([
|
|
|
4339
4355
|
"annotation-xml",
|
|
4340
4356
|
"mprescripts",
|
|
4341
4357
|
"none"
|
|
4342
|
-
]),
|
|
4358
|
+
]), No = se(["#text"]), zo = se([
|
|
4343
4359
|
"accept",
|
|
4344
4360
|
"action",
|
|
4345
4361
|
"align",
|
|
@@ -4646,7 +4662,7 @@ var $o = se([
|
|
|
4646
4662
|
"y2",
|
|
4647
4663
|
"z",
|
|
4648
4664
|
"zoomandpan"
|
|
4649
|
-
]),
|
|
4665
|
+
]), Uo = se([
|
|
4650
4666
|
"accent",
|
|
4651
4667
|
"accentunder",
|
|
4652
4668
|
"align",
|
|
@@ -4707,27 +4723,27 @@ var $o = se([
|
|
|
4707
4723
|
"xlink:title",
|
|
4708
4724
|
"xml:space",
|
|
4709
4725
|
"xmlns:xlink"
|
|
4710
|
-
]),
|
|
4726
|
+
]), Lu = xe(/\{\{[\w\W]*|[\w\W]*\}\}/gm), Ou = xe(/<%[\w\W]*|[\w\W]*%>/gm), Ru = xe(/\$\{[\w\W]*/gm), Mu = xe(/^data-[\-\w.\u00B7-\uFFFF]+$/), Cu = xe(/^aria-[\-\w]+$/), aa = xe(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), $u = xe(/^(?:\w+script|data):/i), Pu = xe(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), la = xe(/^html$/i), Du = xe(/^[a-z][.\w]*(-[.\w]+)+$/i), Fo = /* @__PURE__ */ Object.freeze({
|
|
4711
4727
|
__proto__: null,
|
|
4712
|
-
ARIA_ATTR:
|
|
4713
|
-
ATTR_WHITESPACE:
|
|
4714
|
-
CUSTOM_ELEMENT:
|
|
4715
|
-
DATA_ATTR:
|
|
4716
|
-
DOCTYPE_NAME:
|
|
4717
|
-
ERB_EXPR:
|
|
4718
|
-
IS_ALLOWED_URI:
|
|
4719
|
-
IS_SCRIPT_OR_DATA:
|
|
4720
|
-
MUSTACHE_EXPR:
|
|
4721
|
-
TMPLIT_EXPR:
|
|
4728
|
+
ARIA_ATTR: Cu,
|
|
4729
|
+
ATTR_WHITESPACE: Pu,
|
|
4730
|
+
CUSTOM_ELEMENT: Du,
|
|
4731
|
+
DATA_ATTR: Mu,
|
|
4732
|
+
DOCTYPE_NAME: la,
|
|
4733
|
+
ERB_EXPR: Ou,
|
|
4734
|
+
IS_ALLOWED_URI: aa,
|
|
4735
|
+
IS_SCRIPT_OR_DATA: $u,
|
|
4736
|
+
MUSTACHE_EXPR: Lu,
|
|
4737
|
+
TMPLIT_EXPR: Ru
|
|
4722
4738
|
}), Pr = {
|
|
4723
4739
|
element: 1,
|
|
4724
4740
|
text: 3,
|
|
4725
4741
|
progressingInstruction: 7,
|
|
4726
4742
|
comment: 8,
|
|
4727
4743
|
document: 9
|
|
4728
|
-
},
|
|
4744
|
+
}, Nu = function() {
|
|
4729
4745
|
return typeof window > "u" ? null : window;
|
|
4730
|
-
},
|
|
4746
|
+
}, zu = function(t, r) {
|
|
4731
4747
|
if (typeof t != "object" || typeof t.createPolicy != "function") return null;
|
|
4732
4748
|
let n = null;
|
|
4733
4749
|
const i = "data-tt-policy-suffix";
|
|
@@ -4745,7 +4761,7 @@ var $o = se([
|
|
|
4745
4761
|
} catch {
|
|
4746
4762
|
return console.warn("TrustedTypes policy " + o + " could not be created."), null;
|
|
4747
4763
|
}
|
|
4748
|
-
},
|
|
4764
|
+
}, Bo = function() {
|
|
4749
4765
|
return {
|
|
4750
4766
|
afterSanitizeAttributes: [],
|
|
4751
4767
|
afterSanitizeElements: [],
|
|
@@ -4758,35 +4774,35 @@ var $o = se([
|
|
|
4758
4774
|
uponSanitizeShadowNode: []
|
|
4759
4775
|
};
|
|
4760
4776
|
};
|
|
4761
|
-
function
|
|
4762
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
4763
|
-
const t = (T) =>
|
|
4777
|
+
function ca() {
|
|
4778
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Nu();
|
|
4779
|
+
const t = (T) => ca(T);
|
|
4764
4780
|
if (t.version = "3.4.0", t.removed = [], !e || !e.document || e.document.nodeType !== Pr.document || !e.Element)
|
|
4765
4781
|
return t.isSupported = !1, t;
|
|
4766
4782
|
let { document: r } = e;
|
|
4767
|
-
const n = r, i = n.currentScript, { DocumentFragment: o, HTMLTemplateElement: s, Node: a, Element: u, NodeFilter: f, NamedNodeMap: d = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement:
|
|
4783
|
+
const n = r, i = n.currentScript, { DocumentFragment: o, HTMLTemplateElement: s, Node: a, Element: u, NodeFilter: f, NamedNodeMap: d = e.NamedNodeMap || e.MozNamedAttrMap, HTMLFormElement: v, DOMParser: p, trustedTypes: m } = e, _ = u.prototype, w = $r(_, "cloneNode"), E = $r(_, "remove"), N = $r(_, "nextSibling"), ne = $r(_, "childNodes"), P = $r(_, "parentNode");
|
|
4768
4784
|
if (typeof s == "function") {
|
|
4769
4785
|
const T = r.createElement("template");
|
|
4770
4786
|
T.content && T.content.ownerDocument && (r = T.content.ownerDocument);
|
|
4771
4787
|
}
|
|
4772
4788
|
let M, le = "";
|
|
4773
4789
|
const { implementation: Je, createNodeIterator: Rn, createDocumentFragment: Mn, getElementsByTagName: Cn } = r, { importNode: $n } = n;
|
|
4774
|
-
let X =
|
|
4775
|
-
t.isSupported = typeof
|
|
4776
|
-
const { MUSTACHE_EXPR:
|
|
4777
|
-
let { IS_ALLOWED_URI: k } =
|
|
4778
|
-
const
|
|
4779
|
-
|
|
4790
|
+
let X = Bo();
|
|
4791
|
+
t.isSupported = typeof sa == "function" && typeof P == "function" && Je && Je.createHTMLDocument !== void 0;
|
|
4792
|
+
const { MUSTACHE_EXPR: xt, ERB_EXPR: Lt, TMPLIT_EXPR: Ot, DATA_ATTR: Pn, ARIA_ATTR: Dn, IS_SCRIPT_OR_DATA: Kr, ATTR_WHITESPACE: Xr, CUSTOM_ELEMENT: Nn } = Fo;
|
|
4793
|
+
let { IS_ALLOWED_URI: k } = Fo, C = null;
|
|
4794
|
+
const mt = I({}, [
|
|
4795
|
+
...Do,
|
|
4780
4796
|
...ei,
|
|
4781
4797
|
...ti,
|
|
4782
4798
|
...ri,
|
|
4783
|
-
...
|
|
4799
|
+
...No
|
|
4784
4800
|
]);
|
|
4785
4801
|
let B = null;
|
|
4786
4802
|
const yr = I({}, [
|
|
4787
|
-
...
|
|
4803
|
+
...zo,
|
|
4788
4804
|
...ni,
|
|
4789
|
-
...
|
|
4805
|
+
...Uo,
|
|
4790
4806
|
...an
|
|
4791
4807
|
]);
|
|
4792
4808
|
let F = Object.seal(Nr(null, {
|
|
@@ -4808,7 +4824,7 @@ function aa() {
|
|
|
4808
4824
|
enumerable: !0,
|
|
4809
4825
|
value: !1
|
|
4810
4826
|
}
|
|
4811
|
-
})),
|
|
4827
|
+
})), Rt = null, Jt = null;
|
|
4812
4828
|
const Ue = Object.seal(Nr(null, {
|
|
4813
4829
|
tagCheck: {
|
|
4814
4830
|
writable: !0,
|
|
@@ -4823,9 +4839,9 @@ function aa() {
|
|
|
4823
4839
|
value: null
|
|
4824
4840
|
}
|
|
4825
4841
|
}));
|
|
4826
|
-
let Q = !0, ve = !0, Ze = !1, Zt = !0, Qe = !1,
|
|
4842
|
+
let Q = !0, ve = !0, Ze = !1, Zt = !0, Qe = !1, Mt = !0, Le = !1, Ct = !1, Qt = !1, _t = !1, et = !1, gt = !1, er = !0, tt = !1;
|
|
4827
4843
|
const zn = "user-content-";
|
|
4828
|
-
let wr = !0,
|
|
4844
|
+
let wr = !0, $t = !1, rt = {}, me = null;
|
|
4829
4845
|
const Tr = I({}, [
|
|
4830
4846
|
"annotation-xml",
|
|
4831
4847
|
"audio",
|
|
@@ -4863,7 +4879,7 @@ function aa() {
|
|
|
4863
4879
|
"track"
|
|
4864
4880
|
]);
|
|
4865
4881
|
let nt = null;
|
|
4866
|
-
const
|
|
4882
|
+
const bt = I({}, [
|
|
4867
4883
|
"alt",
|
|
4868
4884
|
"class",
|
|
4869
4885
|
"for",
|
|
@@ -4878,12 +4894,12 @@ function aa() {
|
|
|
4878
4894
|
"value",
|
|
4879
4895
|
"style",
|
|
4880
4896
|
"xmlns"
|
|
4881
|
-
]), tr = "http://www.w3.org/1998/Math/MathML", rr = "http://www.w3.org/2000/svg",
|
|
4882
|
-
let it =
|
|
4897
|
+
]), tr = "http://www.w3.org/1998/Math/MathML", rr = "http://www.w3.org/2000/svg", _e = "http://www.w3.org/1999/xhtml";
|
|
4898
|
+
let it = _e, Er = !1, Fe = null;
|
|
4883
4899
|
const kr = I({}, [
|
|
4884
4900
|
tr,
|
|
4885
4901
|
rr,
|
|
4886
|
-
|
|
4902
|
+
_e
|
|
4887
4903
|
], Zn);
|
|
4888
4904
|
let Jr = I({}, [
|
|
4889
4905
|
"mi",
|
|
@@ -4892,7 +4908,7 @@ function aa() {
|
|
|
4892
4908
|
"ms",
|
|
4893
4909
|
"mtext"
|
|
4894
4910
|
]), Zr = I({}, ["annotation-xml"]);
|
|
4895
|
-
const
|
|
4911
|
+
const ga = I({}, [
|
|
4896
4912
|
"title",
|
|
4897
4913
|
"style",
|
|
4898
4914
|
"font",
|
|
@@ -4900,45 +4916,45 @@ function aa() {
|
|
|
4900
4916
|
"script"
|
|
4901
4917
|
]);
|
|
4902
4918
|
let Sr = null;
|
|
4903
|
-
const
|
|
4919
|
+
const ba = ["application/xhtml+xml", "text/html"], ya = "text/html";
|
|
4904
4920
|
let Y = null, nr = null;
|
|
4905
|
-
const
|
|
4921
|
+
const wa = r.createElement("form"), Bi = function(l) {
|
|
4906
4922
|
return l instanceof RegExp || l instanceof Function;
|
|
4907
4923
|
}, Un = function() {
|
|
4908
4924
|
let l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
4909
4925
|
if (!(nr && nr === l)) {
|
|
4910
|
-
if ((!l || typeof l != "object") && (l = {}), l = He(l), Sr =
|
|
4926
|
+
if ((!l || typeof l != "object") && (l = {}), l = He(l), Sr = ba.indexOf(l.PARSER_MEDIA_TYPE) === -1 ? ya : l.PARSER_MEDIA_TYPE, Y = Sr === "application/xhtml+xml" ? Zn : hn, C = Me(l, "ALLOWED_TAGS") ? I({}, l.ALLOWED_TAGS, Y) : mt, B = Me(l, "ALLOWED_ATTR") ? I({}, l.ALLOWED_ATTR, Y) : yr, Fe = Me(l, "ALLOWED_NAMESPACES") ? I({}, l.ALLOWED_NAMESPACES, Zn) : kr, nt = Me(l, "ADD_URI_SAFE_ATTR") ? I(He(bt), l.ADD_URI_SAFE_ATTR, Y) : bt, V = Me(l, "ADD_DATA_URI_TAGS") ? I(He(J), l.ADD_DATA_URI_TAGS, Y) : J, me = Me(l, "FORBID_CONTENTS") ? I({}, l.FORBID_CONTENTS, Y) : Tr, Rt = Me(l, "FORBID_TAGS") ? I({}, l.FORBID_TAGS, Y) : He({}), Jt = Me(l, "FORBID_ATTR") ? I({}, l.FORBID_ATTR, Y) : He({}), rt = Me(l, "USE_PROFILES") ? l.USE_PROFILES : !1, Q = l.ALLOW_ARIA_ATTR !== !1, ve = l.ALLOW_DATA_ATTR !== !1, Ze = l.ALLOW_UNKNOWN_PROTOCOLS || !1, Zt = l.ALLOW_SELF_CLOSE_IN_ATTR !== !1, Qe = l.SAFE_FOR_TEMPLATES || !1, Mt = l.SAFE_FOR_XML !== !1, Le = l.WHOLE_DOCUMENT || !1, _t = l.RETURN_DOM || !1, et = l.RETURN_DOM_FRAGMENT || !1, gt = l.RETURN_TRUSTED_TYPE || !1, Qt = l.FORCE_BODY || !1, er = l.SANITIZE_DOM !== !1, tt = l.SANITIZE_NAMED_PROPS || !1, wr = l.KEEP_CONTENT !== !1, $t = l.IN_PLACE || !1, k = l.ALLOWED_URI_REGEXP || aa, it = l.NAMESPACE || _e, Jr = l.MATHML_TEXT_INTEGRATION_POINTS || Jr, Zr = l.HTML_INTEGRATION_POINTS || Zr, F = l.CUSTOM_ELEMENT_HANDLING || Nr(null), l.CUSTOM_ELEMENT_HANDLING && Bi(l.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (F.tagNameCheck = l.CUSTOM_ELEMENT_HANDLING.tagNameCheck), l.CUSTOM_ELEMENT_HANDLING && Bi(l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (F.attributeNameCheck = l.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), l.CUSTOM_ELEMENT_HANDLING && typeof l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (F.allowCustomizedBuiltInElements = l.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), Qe && (ve = !1), et && (_t = !0), rt && (C = I({}, No), B = Nr(null), rt.html === !0 && (I(C, Do), I(B, zo)), rt.svg === !0 && (I(C, ei), I(B, ni), I(B, an)), rt.svgFilters === !0 && (I(C, ti), I(B, ni), I(B, an)), rt.mathMl === !0 && (I(C, ri), I(B, Uo), I(B, an))), Ue.tagCheck = null, Ue.attributeCheck = null, l.ADD_TAGS && (typeof l.ADD_TAGS == "function" ? Ue.tagCheck = l.ADD_TAGS : (C === mt && (C = He(C)), I(C, l.ADD_TAGS, Y))), l.ADD_ATTR && (typeof l.ADD_ATTR == "function" ? Ue.attributeCheck = l.ADD_ATTR : (B === yr && (B = He(B)), I(B, l.ADD_ATTR, Y))), l.ADD_URI_SAFE_ATTR && I(nt, l.ADD_URI_SAFE_ATTR, Y), l.FORBID_CONTENTS && (me === Tr && (me = He(me)), I(me, l.FORBID_CONTENTS, Y)), l.ADD_FORBID_CONTENTS && (me === Tr && (me = He(me)), I(me, l.ADD_FORBID_CONTENTS, Y)), wr && (C["#text"] = !0), Le && I(C, [
|
|
4911
4927
|
"html",
|
|
4912
4928
|
"head",
|
|
4913
4929
|
"body"
|
|
4914
|
-
]), C.table && (I(C, ["tbody"]), delete
|
|
4930
|
+
]), C.table && (I(C, ["tbody"]), delete Rt.tbody), l.TRUSTED_TYPES_POLICY) {
|
|
4915
4931
|
if (typeof l.TRUSTED_TYPES_POLICY.createHTML != "function") throw Cr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
4916
4932
|
if (typeof l.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw Cr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
4917
4933
|
M = l.TRUSTED_TYPES_POLICY, le = M.createHTML("");
|
|
4918
4934
|
} else
|
|
4919
|
-
M === void 0 && (M =
|
|
4935
|
+
M === void 0 && (M = zu(m, i)), M !== null && typeof le == "string" && (le = M.createHTML(""));
|
|
4920
4936
|
se && se(l), nr = l;
|
|
4921
4937
|
}
|
|
4922
4938
|
}, Hi = I({}, [
|
|
4923
4939
|
...ei,
|
|
4924
4940
|
...ti,
|
|
4925
|
-
...
|
|
4926
|
-
]), ji = I({}, [...ri, ...
|
|
4941
|
+
...Iu
|
|
4942
|
+
]), ji = I({}, [...ri, ...xu]), Ta = function(l) {
|
|
4927
4943
|
let h = P(l);
|
|
4928
4944
|
(!h || !h.tagName) && (h = {
|
|
4929
4945
|
namespaceURI: it,
|
|
4930
4946
|
tagName: "template"
|
|
4931
4947
|
});
|
|
4932
4948
|
const y = hn(l.tagName), H = hn(h.tagName);
|
|
4933
|
-
return Fe[l.namespaceURI] ? l.namespaceURI === rr ? h.namespaceURI ===
|
|
4934
|
-
},
|
|
4949
|
+
return Fe[l.namespaceURI] ? l.namespaceURI === rr ? h.namespaceURI === _e ? y === "svg" : h.namespaceURI === tr ? y === "svg" && (H === "annotation-xml" || Jr[H]) : !!Hi[y] : l.namespaceURI === tr ? h.namespaceURI === _e ? y === "math" : h.namespaceURI === rr ? y === "math" && Zr[H] : !!ji[y] : l.namespaceURI === _e ? h.namespaceURI === rr && !Zr[H] || h.namespaceURI === tr && !Jr[H] ? !1 : !ji[y] && (ga[y] || !Hi[y]) : !!(Sr === "application/xhtml+xml" && Fe[l.namespaceURI]) : !1;
|
|
4950
|
+
}, Oe = function(l) {
|
|
4935
4951
|
Mr(t.removed, { element: l });
|
|
4936
4952
|
try {
|
|
4937
4953
|
P(l).removeChild(l);
|
|
4938
4954
|
} catch {
|
|
4939
4955
|
E(l);
|
|
4940
4956
|
}
|
|
4941
|
-
},
|
|
4957
|
+
}, Pt = function(l, h) {
|
|
4942
4958
|
try {
|
|
4943
4959
|
Mr(t.removed, {
|
|
4944
4960
|
attribute: h.getAttributeNode(l),
|
|
@@ -4950,8 +4966,8 @@ function aa() {
|
|
|
4950
4966
|
from: h
|
|
4951
4967
|
});
|
|
4952
4968
|
}
|
|
4953
|
-
if (h.removeAttribute(l), l === "is") if (
|
|
4954
|
-
|
|
4969
|
+
if (h.removeAttribute(l), l === "is") if (_t || et) try {
|
|
4970
|
+
Oe(h);
|
|
4955
4971
|
} catch {
|
|
4956
4972
|
}
|
|
4957
4973
|
else try {
|
|
@@ -4965,9 +4981,9 @@ function aa() {
|
|
|
4965
4981
|
const ge = Qn(l, /^[\r\n\t ]+/);
|
|
4966
4982
|
y = ge && ge[0];
|
|
4967
4983
|
}
|
|
4968
|
-
Sr === "application/xhtml+xml" && it ===
|
|
4984
|
+
Sr === "application/xhtml+xml" && it === _e && (l = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + l + "</body></html>");
|
|
4969
4985
|
const H = M ? M.createHTML(l) : l;
|
|
4970
|
-
if (it ===
|
|
4986
|
+
if (it === _e) try {
|
|
4971
4987
|
h = new p().parseFromString(H, Sr);
|
|
4972
4988
|
} catch {
|
|
4973
4989
|
}
|
|
@@ -4979,11 +4995,11 @@ function aa() {
|
|
|
4979
4995
|
}
|
|
4980
4996
|
}
|
|
4981
4997
|
const U = h.body || h.documentElement;
|
|
4982
|
-
return l && y && U.insertBefore(r.createTextNode(y), U.childNodes[0] || null), it ===
|
|
4998
|
+
return l && y && U.insertBefore(r.createTextNode(y), U.childNodes[0] || null), it === _e ? Cn.call(h, Le ? "html" : "body")[0] : Le ? h.documentElement : U;
|
|
4983
4999
|
}, Gi = function(l) {
|
|
4984
5000
|
return Rn.call(l.ownerDocument || l, l, f.SHOW_ELEMENT | f.SHOW_COMMENT | f.SHOW_TEXT | f.SHOW_PROCESSING_INSTRUCTION | f.SHOW_CDATA_SECTION, null);
|
|
4985
5001
|
}, Fn = function(l) {
|
|
4986
|
-
return l instanceof
|
|
5002
|
+
return l instanceof v && (typeof l.nodeName != "string" || typeof l.textContent != "string" || typeof l.removeChild != "function" || !(l.attributes instanceof d) || typeof l.removeAttribute != "function" || typeof l.setAttribute != "function" || typeof l.namespaceURI != "string" || typeof l.insertBefore != "function" || typeof l.hasChildNodes != "function");
|
|
4987
5003
|
}, Bn = function(l) {
|
|
4988
5004
|
return typeof a == "function" && l instanceof a;
|
|
4989
5005
|
};
|
|
@@ -4995,17 +5011,17 @@ function aa() {
|
|
|
4995
5011
|
const Vi = function(l) {
|
|
4996
5012
|
let h = null;
|
|
4997
5013
|
if (ot(X.beforeSanitizeElements, l, null), Fn(l))
|
|
4998
|
-
return
|
|
5014
|
+
return Oe(l), !0;
|
|
4999
5015
|
const y = Y(l.nodeName);
|
|
5000
5016
|
if (ot(X.uponSanitizeElement, l, {
|
|
5001
5017
|
tagName: y,
|
|
5002
5018
|
allowedTags: C
|
|
5003
|
-
}),
|
|
5004
|
-
return
|
|
5005
|
-
if (
|
|
5006
|
-
if (!
|
|
5019
|
+
}), Mt && l.hasChildNodes() && !Bn(l.firstElementChild) && ie(/<[/\w!]/g, l.innerHTML) && ie(/<[/\w!]/g, l.textContent) || Mt && l.namespaceURI === _e && y === "style" && Bn(l.firstElementChild) || l.nodeType === Pr.progressingInstruction || Mt && l.nodeType === Pr.comment && ie(/<[/\w]/g, l.data))
|
|
5020
|
+
return Oe(l), !0;
|
|
5021
|
+
if (Rt[y] || !(Ue.tagCheck instanceof Function && Ue.tagCheck(y)) && !C[y]) {
|
|
5022
|
+
if (!Rt[y] && qi(y) && (F.tagNameCheck instanceof RegExp && ie(F.tagNameCheck, y) || F.tagNameCheck instanceof Function && F.tagNameCheck(y)))
|
|
5007
5023
|
return !1;
|
|
5008
|
-
if (wr && !
|
|
5024
|
+
if (wr && !me[y]) {
|
|
5009
5025
|
const H = P(l) || l.parentNode, U = ne(l) || l.childNodes;
|
|
5010
5026
|
if (U && H) {
|
|
5011
5027
|
const ge = U.length;
|
|
@@ -5015,17 +5031,17 @@ function aa() {
|
|
|
5015
5031
|
}
|
|
5016
5032
|
}
|
|
5017
5033
|
}
|
|
5018
|
-
return
|
|
5034
|
+
return Oe(l), !0;
|
|
5019
5035
|
}
|
|
5020
|
-
return l instanceof u && !
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5036
|
+
return l instanceof u && !Ta(l) || (y === "noscript" || y === "noembed" || y === "noframes") && ie(/<\/no(script|embed|frames)/i, l.innerHTML) ? (Oe(l), !0) : (Qe && l.nodeType === Pr.text && (h = l.textContent, Rr([
|
|
5037
|
+
xt,
|
|
5038
|
+
Lt,
|
|
5039
|
+
Ot
|
|
5024
5040
|
], (H) => {
|
|
5025
5041
|
h = sr(h, H, " ");
|
|
5026
5042
|
}), l.textContent !== h && (Mr(t.removed, { element: l.cloneNode() }), l.textContent = h)), ot(X.afterSanitizeElements, l, null), !1);
|
|
5027
5043
|
}, Yi = function(l, h, y) {
|
|
5028
|
-
if (Jt[h] || er && (h === "id" || h === "name") && (y in r || y in
|
|
5044
|
+
if (Jt[h] || er && (h === "id" || h === "name") && (y in r || y in wa)) return !1;
|
|
5029
5045
|
if (!(ve && !Jt[h] && ie(Pn, h))) {
|
|
5030
5046
|
if (!(Q && ie(Dn, h))) {
|
|
5031
5047
|
if (!(Ue.attributeCheck instanceof Function && Ue.attributeCheck(h, l))) {
|
|
@@ -5033,7 +5049,7 @@ function aa() {
|
|
|
5033
5049
|
if (!(qi(l) && (F.tagNameCheck instanceof RegExp && ie(F.tagNameCheck, l) || F.tagNameCheck instanceof Function && F.tagNameCheck(l)) && (F.attributeNameCheck instanceof RegExp && ie(F.attributeNameCheck, h) || F.attributeNameCheck instanceof Function && F.attributeNameCheck(h, l)) || h === "is" && F.allowCustomizedBuiltInElements && (F.tagNameCheck instanceof RegExp && ie(F.tagNameCheck, y) || F.tagNameCheck instanceof Function && F.tagNameCheck(y)))) return !1;
|
|
5034
5050
|
} else if (!nt[h]) {
|
|
5035
5051
|
if (!ie(k, sr(y, Xr, ""))) {
|
|
5036
|
-
if (!((h === "src" || h === "xlink:href" || h === "href") && l !== "script" &&
|
|
5052
|
+
if (!((h === "src" || h === "xlink:href" || h === "href") && l !== "script" && Eu(y, "data:") === 0 && V[l])) {
|
|
5037
5053
|
if (!(Ze && !ie(Kr, sr(y, Xr, "")))) {
|
|
5038
5054
|
if (y) return !1;
|
|
5039
5055
|
}
|
|
@@ -5060,37 +5076,37 @@ function aa() {
|
|
|
5060
5076
|
let H = h.length;
|
|
5061
5077
|
for (; H--; ) {
|
|
5062
5078
|
const { name: U, namespaceURI: ge, value: be } = h[H], q = Y(U), Ar = be;
|
|
5063
|
-
let Z = U === "value" ? Ar :
|
|
5064
|
-
if (y.attrName = q, y.attrValue = Z, y.keepAttr = !0, y.forceKeepAttr = void 0, ot(X.uponSanitizeAttribute, l, y), Z = y.attrValue, tt && (q === "id" || q === "name") && (
|
|
5065
|
-
|
|
5079
|
+
let Z = U === "value" ? Ar : ku(Ar);
|
|
5080
|
+
if (y.attrName = q, y.attrValue = Z, y.keepAttr = !0, y.forceKeepAttr = void 0, ot(X.uponSanitizeAttribute, l, y), Z = y.attrValue, tt && (q === "id" || q === "name") && (Pt(U, l), Z = zn + Z), Mt && ie(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, Z)) {
|
|
5081
|
+
Pt(U, l);
|
|
5066
5082
|
continue;
|
|
5067
5083
|
}
|
|
5068
5084
|
if (q === "attributename" && Qn(Z, "href")) {
|
|
5069
|
-
|
|
5085
|
+
Pt(U, l);
|
|
5070
5086
|
continue;
|
|
5071
5087
|
}
|
|
5072
5088
|
if (y.forceKeepAttr) continue;
|
|
5073
5089
|
if (!y.keepAttr) {
|
|
5074
|
-
|
|
5090
|
+
Pt(U, l);
|
|
5075
5091
|
continue;
|
|
5076
5092
|
}
|
|
5077
5093
|
if (!Zt && ie(/\/>/i, Z)) {
|
|
5078
|
-
|
|
5094
|
+
Pt(U, l);
|
|
5079
5095
|
continue;
|
|
5080
5096
|
}
|
|
5081
5097
|
Qe && Rr([
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5098
|
+
xt,
|
|
5099
|
+
Lt,
|
|
5100
|
+
Ot
|
|
5085
5101
|
], (Zi) => {
|
|
5086
5102
|
Z = sr(Z, Zi, " ");
|
|
5087
5103
|
});
|
|
5088
5104
|
const Ji = Y(l.nodeName);
|
|
5089
5105
|
if (!Yi(Ji, q, Z)) {
|
|
5090
|
-
|
|
5106
|
+
Pt(U, l);
|
|
5091
5107
|
continue;
|
|
5092
5108
|
}
|
|
5093
|
-
if (M && typeof
|
|
5109
|
+
if (M && typeof m == "object" && typeof m.getAttributeType == "function" && !ge) switch (m.getAttributeType(Ji, q)) {
|
|
5094
5110
|
case "TrustedHTML":
|
|
5095
5111
|
Z = M.createHTML(Z);
|
|
5096
5112
|
break;
|
|
@@ -5099,9 +5115,9 @@ function aa() {
|
|
|
5099
5115
|
break;
|
|
5100
5116
|
}
|
|
5101
5117
|
if (Z !== Ar) try {
|
|
5102
|
-
ge ? l.setAttributeNS(ge, U, Z) : l.setAttribute(U, Z), Fn(l) ?
|
|
5118
|
+
ge ? l.setAttributeNS(ge, U, Z) : l.setAttribute(U, Z), Fn(l) ? Oe(l) : Po(t.removed);
|
|
5103
5119
|
} catch {
|
|
5104
|
-
|
|
5120
|
+
Pt(U, l);
|
|
5105
5121
|
}
|
|
5106
5122
|
}
|
|
5107
5123
|
ot(X.afterSanitizeAttributes, l, null);
|
|
@@ -5118,30 +5134,30 @@ function aa() {
|
|
|
5118
5134
|
if (T = T.toString(), typeof T != "string") throw Cr("dirty is not a string, aborting");
|
|
5119
5135
|
} else throw Cr("toString is not a function");
|
|
5120
5136
|
if (!t.isSupported) return T;
|
|
5121
|
-
if (
|
|
5137
|
+
if (Ct || Un(l), t.removed = [], typeof T == "string" && ($t = !1), $t) {
|
|
5122
5138
|
if (T.nodeName) {
|
|
5123
5139
|
const q = Y(T.nodeName);
|
|
5124
|
-
if (!C[q] ||
|
|
5140
|
+
if (!C[q] || Rt[q]) throw Cr("root node is forbidden and cannot be sanitized in-place");
|
|
5125
5141
|
}
|
|
5126
5142
|
} else if (T instanceof a)
|
|
5127
5143
|
h = Wi("<!---->"), y = h.ownerDocument.importNode(T, !0), y.nodeType === Pr.element && y.nodeName === "BODY" || y.nodeName === "HTML" ? h = y : h.appendChild(y);
|
|
5128
5144
|
else {
|
|
5129
|
-
if (!
|
|
5130
|
-
if (h = Wi(T), !h) return
|
|
5145
|
+
if (!_t && !Qe && !Le && T.indexOf("<") === -1) return M && gt ? M.createHTML(T) : T;
|
|
5146
|
+
if (h = Wi(T), !h) return _t ? null : gt ? le : "";
|
|
5131
5147
|
}
|
|
5132
|
-
h && Qt &&
|
|
5133
|
-
const ge = Gi(
|
|
5148
|
+
h && Qt && Oe(h.firstChild);
|
|
5149
|
+
const ge = Gi($t ? T : h);
|
|
5134
5150
|
for (; H = ge.nextNode(); )
|
|
5135
5151
|
Vi(H), Ki(H), H.content instanceof o && Xi(H.content);
|
|
5136
|
-
if (
|
|
5137
|
-
if (
|
|
5152
|
+
if ($t) return T;
|
|
5153
|
+
if (_t) {
|
|
5138
5154
|
if (Qe) {
|
|
5139
5155
|
h.normalize();
|
|
5140
5156
|
let q = h.innerHTML;
|
|
5141
5157
|
Rr([
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5158
|
+
xt,
|
|
5159
|
+
Lt,
|
|
5160
|
+
Ot
|
|
5145
5161
|
], (Ar) => {
|
|
5146
5162
|
q = sr(q, Ar, " ");
|
|
5147
5163
|
}), h.innerHTML = q;
|
|
@@ -5151,62 +5167,62 @@ function aa() {
|
|
|
5151
5167
|
else U = h;
|
|
5152
5168
|
return (B.shadowroot || B.shadowrootmode) && (U = $n.call(n, U, !0)), U;
|
|
5153
5169
|
}
|
|
5154
|
-
let be =
|
|
5155
|
-
return
|
|
5170
|
+
let be = Le ? h.outerHTML : h.innerHTML;
|
|
5171
|
+
return Le && C["!doctype"] && h.ownerDocument && h.ownerDocument.doctype && h.ownerDocument.doctype.name && ie(la, h.ownerDocument.doctype.name) && (be = "<!DOCTYPE " + h.ownerDocument.doctype.name + `>
|
|
5156
5172
|
` + be), Qe && Rr([
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5173
|
+
xt,
|
|
5174
|
+
Lt,
|
|
5175
|
+
Ot
|
|
5160
5176
|
], (q) => {
|
|
5161
5177
|
be = sr(be, q, " ");
|
|
5162
|
-
}), M &&
|
|
5178
|
+
}), M && gt ? M.createHTML(be) : be;
|
|
5163
5179
|
}, t.setConfig = function() {
|
|
5164
|
-
Un(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}),
|
|
5180
|
+
Un(arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}), Ct = !0;
|
|
5165
5181
|
}, t.clearConfig = function() {
|
|
5166
|
-
nr = null,
|
|
5182
|
+
nr = null, Ct = !1;
|
|
5167
5183
|
}, t.isValidAttribute = function(T, l, h) {
|
|
5168
5184
|
return nr || Un({}), Yi(Y(T), Y(l), h);
|
|
5169
5185
|
}, t.addHook = function(T, l) {
|
|
5170
5186
|
typeof l == "function" && Mr(X[T], l);
|
|
5171
5187
|
}, t.removeHook = function(T, l) {
|
|
5172
5188
|
if (l !== void 0) {
|
|
5173
|
-
const h =
|
|
5174
|
-
return h === -1 ? void 0 :
|
|
5189
|
+
const h = wu(X[T], l);
|
|
5190
|
+
return h === -1 ? void 0 : Tu(X[T], h, 1)[0];
|
|
5175
5191
|
}
|
|
5176
|
-
return
|
|
5192
|
+
return Po(X[T]);
|
|
5177
5193
|
}, t.removeHooks = function(T) {
|
|
5178
5194
|
X[T] = [];
|
|
5179
5195
|
}, t.removeAllHooks = function() {
|
|
5180
|
-
X =
|
|
5196
|
+
X = Bo();
|
|
5181
5197
|
}, t;
|
|
5182
5198
|
}
|
|
5183
|
-
var
|
|
5199
|
+
var kf = ca(), Ti;
|
|
5184
5200
|
(function(e) {
|
|
5185
5201
|
e.player = "player.js", e.clientPlayer = "client-player.js", e.editor = "editor.js";
|
|
5186
5202
|
})(Ti || (Ti = {}));
|
|
5187
|
-
var
|
|
5203
|
+
var Ho;
|
|
5188
5204
|
(function(e) {
|
|
5189
5205
|
e.loading = "loading", e.loaded = "loaded";
|
|
5190
|
-
})(
|
|
5191
|
-
var
|
|
5206
|
+
})(Ho || (Ho = {}));
|
|
5207
|
+
var Sf = _u.timeoutMs, jo;
|
|
5192
5208
|
(function(e) {
|
|
5193
5209
|
e.SAVE = "save", e.MODEL = "model", e.SCORE = "score", e.MANUAL_SCORE = "manual-score";
|
|
5194
|
-
})(
|
|
5195
|
-
var
|
|
5210
|
+
})(jo || (jo = {}));
|
|
5211
|
+
var Wo;
|
|
5196
5212
|
(function(e) {
|
|
5197
5213
|
e.AUTO = "auto", e.MANUAL = "manual";
|
|
5198
|
-
})(
|
|
5199
|
-
var
|
|
5214
|
+
})(Wo || (Wo = {}));
|
|
5215
|
+
var Go;
|
|
5200
5216
|
(function(e) {
|
|
5201
5217
|
e.GATHER = "gather", e.VIEW = "view", e.EVALUATE = "evaluate";
|
|
5202
|
-
})(
|
|
5203
|
-
var
|
|
5218
|
+
})(Go || (Go = {}));
|
|
5219
|
+
var Vo;
|
|
5204
5220
|
(function(e) {
|
|
5205
5221
|
e.PENDING = "pending", e.IN_PROGRESS = "in_progress", e.COMPLETED = "completed", e.FAILED = "failed";
|
|
5206
|
-
})(
|
|
5207
|
-
var
|
|
5222
|
+
})(Vo || (Vo = {}));
|
|
5223
|
+
var Uu = class ua extends CustomEvent {
|
|
5208
5224
|
constructor(t, r = !1) {
|
|
5209
|
-
super(
|
|
5225
|
+
super(ua.TYPE, {
|
|
5210
5226
|
bubbles: !0,
|
|
5211
5227
|
detail: {
|
|
5212
5228
|
update: t,
|
|
@@ -5215,10 +5231,10 @@ var Du = class la extends CustomEvent {
|
|
|
5215
5231
|
}), b(this, "update", void 0), b(this, "reset", void 0), this.update = t, this.reset = r;
|
|
5216
5232
|
}
|
|
5217
5233
|
};
|
|
5218
|
-
b(
|
|
5219
|
-
var
|
|
5234
|
+
b(Uu, "TYPE", "model.updated");
|
|
5235
|
+
var Fu = class fa extends CustomEvent {
|
|
5220
5236
|
constructor(t, r) {
|
|
5221
|
-
super(
|
|
5237
|
+
super(fa.TYPE, {
|
|
5222
5238
|
bubbles: !0,
|
|
5223
5239
|
detail: {
|
|
5224
5240
|
src: t,
|
|
@@ -5227,19 +5243,19 @@ var Nu = class ca extends CustomEvent {
|
|
|
5227
5243
|
}), b(this, "src", void 0), b(this, "done", void 0), this.src = t, this.done = r;
|
|
5228
5244
|
}
|
|
5229
5245
|
};
|
|
5230
|
-
b(
|
|
5231
|
-
var
|
|
5246
|
+
b(Fu, "TYPE", "delete.image");
|
|
5247
|
+
var Bu = class da extends CustomEvent {
|
|
5232
5248
|
constructor(t) {
|
|
5233
|
-
super(
|
|
5249
|
+
super(da.TYPE, {
|
|
5234
5250
|
bubbles: !0,
|
|
5235
5251
|
detail: t
|
|
5236
5252
|
}), b(this, "handler", void 0), this.handler = t;
|
|
5237
5253
|
}
|
|
5238
5254
|
};
|
|
5239
|
-
b(
|
|
5240
|
-
var
|
|
5255
|
+
b(Bu, "TYPE", "insert.image");
|
|
5256
|
+
var Hu = class pa extends CustomEvent {
|
|
5241
5257
|
constructor(t, r) {
|
|
5242
|
-
super(
|
|
5258
|
+
super(pa.TYPE, {
|
|
5243
5259
|
bubbles: !0,
|
|
5244
5260
|
detail: {
|
|
5245
5261
|
src: t,
|
|
@@ -5248,19 +5264,19 @@ var Uu = class fa extends CustomEvent {
|
|
|
5248
5264
|
}), b(this, "src", void 0), b(this, "done", void 0), this.src = t, this.done = r;
|
|
5249
5265
|
}
|
|
5250
5266
|
};
|
|
5251
|
-
b(
|
|
5252
|
-
var
|
|
5267
|
+
b(Hu, "TYPE", "delete.sound");
|
|
5268
|
+
var ju = class ha extends CustomEvent {
|
|
5253
5269
|
constructor(t) {
|
|
5254
|
-
super(
|
|
5270
|
+
super(ha.TYPE, {
|
|
5255
5271
|
bubbles: !0,
|
|
5256
5272
|
detail: t
|
|
5257
5273
|
}), b(this, "handler", void 0), this.handler = t;
|
|
5258
5274
|
}
|
|
5259
5275
|
};
|
|
5260
|
-
b(
|
|
5261
|
-
var
|
|
5276
|
+
b(ju, "TYPE", "insert.sound");
|
|
5277
|
+
var Wu = class va extends CustomEvent {
|
|
5262
5278
|
constructor(t, r) {
|
|
5263
|
-
super(
|
|
5279
|
+
super(va.TYPE, {
|
|
5264
5280
|
bubbles: !0,
|
|
5265
5281
|
composed: !0,
|
|
5266
5282
|
detail: {
|
|
@@ -5270,12 +5286,12 @@ var Bu = class pa extends CustomEvent {
|
|
|
5270
5286
|
}), b(this, "component", void 0), b(this, "complete", void 0), this.component = t, this.complete = r;
|
|
5271
5287
|
}
|
|
5272
5288
|
};
|
|
5273
|
-
b(
|
|
5274
|
-
var
|
|
5289
|
+
b(Wu, "TYPE", "session-changed");
|
|
5290
|
+
var Yo;
|
|
5275
5291
|
(function(e) {
|
|
5276
5292
|
e[e.ROOT = 0] = "ROOT", e[e.SUBJECT = 1] = "SUBJECT", e[e.LEVEL = 2] = "LEVEL", e[e.STANDARD = 3] = "STANDARD";
|
|
5277
|
-
})(
|
|
5278
|
-
function
|
|
5293
|
+
})(Yo || (Yo = {}));
|
|
5294
|
+
function ht(e, t) {
|
|
5279
5295
|
const r = `[${e}]`;
|
|
5280
5296
|
return {
|
|
5281
5297
|
debug: (n, ...i) => {
|
|
@@ -5286,22 +5302,22 @@ function Kt(e, t) {
|
|
|
5286
5302
|
error: (n, ...i) => console.error(r, n, ...i)
|
|
5287
5303
|
};
|
|
5288
5304
|
}
|
|
5289
|
-
function
|
|
5305
|
+
function vt() {
|
|
5290
5306
|
return typeof window < "u" && window.PIE_DEBUG === !0;
|
|
5291
5307
|
}
|
|
5292
|
-
var
|
|
5293
|
-
buildServiceBase:
|
|
5308
|
+
var Af = ht("math-rendering", () => vt()), If = ht("pie-scoring", () => vt()), xf = ht("pie-updates", () => vt()), Lf = ht("pie-initialization", () => vt()), Of = {
|
|
5309
|
+
buildServiceBase: mu,
|
|
5294
5310
|
bundleType: Ti.player,
|
|
5295
5311
|
env: {
|
|
5296
5312
|
mode: "gather",
|
|
5297
5313
|
role: "student"
|
|
5298
5314
|
}
|
|
5299
|
-
},
|
|
5315
|
+
}, Rf = ht("asset-handler", () => vt()), Mf = ht("authoring", () => vt()), Cf = ht("instrumentation-event-bridge", () => vt()), $f = ht("instrumentation-provider-resolution", () => vt()), Pf = Object.freeze([
|
|
5300
5316
|
"composed",
|
|
5301
5317
|
"engine-ready",
|
|
5302
5318
|
"interactive",
|
|
5303
5319
|
"disposed"
|
|
5304
|
-
]),
|
|
5320
|
+
]), Df = ht("pie-overrides", () => vt()), ma = [
|
|
5305
5321
|
"a[href]",
|
|
5306
5322
|
"button:not([disabled])",
|
|
5307
5323
|
"input:not([disabled]):not([type='hidden'])",
|
|
@@ -5310,19 +5326,19 @@ var Ef = Kt("math-rendering", () => Xt()), kf = Kt("pie-scoring", () => Xt()), S
|
|
|
5310
5326
|
"[contenteditable]:not([contenteditable='false'])",
|
|
5311
5327
|
"[tabindex]:not([tabindex='-1'])"
|
|
5312
5328
|
].join(",");
|
|
5313
|
-
function
|
|
5314
|
-
return !e.matches(
|
|
5329
|
+
function Gu(e) {
|
|
5330
|
+
return !e.matches(ma) || e.hasAttribute("disabled") || e.closest("[inert]") ? !1 : e.offsetParent !== null || e.getClientRects().length > 0;
|
|
5315
5331
|
}
|
|
5316
|
-
function
|
|
5317
|
-
return Array.from(e.querySelectorAll(
|
|
5332
|
+
function _a(e) {
|
|
5333
|
+
return Array.from(e.querySelectorAll(ma)).filter((t) => Gu(t));
|
|
5318
5334
|
}
|
|
5319
|
-
function
|
|
5335
|
+
function Vu(e, t) {
|
|
5320
5336
|
try {
|
|
5321
5337
|
if (t && e.contains(t)) {
|
|
5322
5338
|
t.focus();
|
|
5323
5339
|
return;
|
|
5324
5340
|
}
|
|
5325
|
-
const r =
|
|
5341
|
+
const r = _a(e);
|
|
5326
5342
|
if (r.length > 0) {
|
|
5327
5343
|
r[0].focus();
|
|
5328
5344
|
return;
|
|
@@ -5331,14 +5347,14 @@ function ju(e, t) {
|
|
|
5331
5347
|
} catch {
|
|
5332
5348
|
}
|
|
5333
5349
|
}
|
|
5334
|
-
function
|
|
5350
|
+
function Yu(e, t = {}) {
|
|
5335
5351
|
const r = typeof document < "u" ? document.activeElement : null, n = (i) => {
|
|
5336
5352
|
if (i.key === "Escape") {
|
|
5337
5353
|
t.onEscape?.();
|
|
5338
5354
|
return;
|
|
5339
5355
|
}
|
|
5340
5356
|
if (i.key !== "Tab") return;
|
|
5341
|
-
const o =
|
|
5357
|
+
const o = _a(e);
|
|
5342
5358
|
if (!o.length) {
|
|
5343
5359
|
i.preventDefault(), e.focus?.();
|
|
5344
5360
|
return;
|
|
@@ -5350,7 +5366,7 @@ function Wu(e, t = {}) {
|
|
|
5350
5366
|
}
|
|
5351
5367
|
a === o.length - 1 && (i.preventDefault(), o[0].focus());
|
|
5352
5368
|
};
|
|
5353
|
-
return queueMicrotask(() =>
|
|
5369
|
+
return queueMicrotask(() => Vu(e, t.initialFocus)), e.addEventListener("keydown", n), () => {
|
|
5354
5370
|
e.removeEventListener("keydown", n);
|
|
5355
5371
|
try {
|
|
5356
5372
|
r?.focus?.();
|
|
@@ -5358,7 +5374,7 @@ function Wu(e, t = {}) {
|
|
|
5358
5374
|
}
|
|
5359
5375
|
};
|
|
5360
5376
|
}
|
|
5361
|
-
var
|
|
5377
|
+
var qu = /* @__PURE__ */ Ke('<div class="pie-tool-text-to-speech__error-message svelte-xk676z"><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 svelte-xk676z" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z" clip-rule="evenodd" class="svelte-xk676z"></path></svg> <span class="svelte-xk676z"> </span></div>'), Ku = /* @__PURE__ */ Ke('<div class="pie-tool-text-to-speech__loading-message svelte-xk676z"><span class="svelte-xk676z">Initializing...</span></div>'), Xu = /* @__PURE__ */ Ke('<div class="pie-tool-text-to-speech__selection-info svelte-xk676z"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 svelte-xk676z" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7" class="svelte-xk676z"></path></svg> <span class="svelte-xk676z"> </span></div>'), Ju = /* @__PURE__ */ Ke('<p class="svelte-xk676z">Select text on the page to read it aloud.</p>'), Zu = /* @__PURE__ */ Ke('<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 svelte-xk676z" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z" clip-rule="evenodd" class="svelte-xk676z"></path></svg> <span class="svelte-xk676z">Resume</span>', 1), Qu = /* @__PURE__ */ Ke('<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 svelte-xk676z" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zM7 8a1 1 0 012 0v4a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v4a1 1 0 102 0V8a1 1 0 00-1-1z" clip-rule="evenodd" class="svelte-xk676z"></path></svg> <span class="svelte-xk676z">Pause</span>', 1), ef = /* @__PURE__ */ Ke('<span class="pie-tool-text-to-speech__pulse svelte-xk676z"></span>'), tf = /* @__PURE__ */ Ke('<div><div class="pie-tool-text-to-speech__status-icon svelte-xk676z"><!></div> <span class="svelte-xk676z"> </span></div>'), rf = /* @__PURE__ */ Ke('<div class="pie-tool-text-to-speech__instructions svelte-xk676z"><!></div> <div class="pie-tool-text-to-speech__control-group svelte-xk676z"><label for="tts-speed" class="svelte-xk676z"><span class="svelte-xk676z">Speed:</span> <strong class="svelte-xk676z"> </strong></label> <input id="tts-speed" type="range" min="0.5" max="2.0" step="0.25" class="svelte-xk676z"/></div> <div class="pie-tool-text-to-speech__playback-controls svelte-xk676z"><button class="pie-tool-text-to-speech__button-primary svelte-xk676z" aria-label="Play" type="button"><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 svelte-xk676z" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM9.555 7.168A1 1 0 008 8v4a1 1 0 001.555.832l3-2a1 1 0 000-1.664l-3-2z" clip-rule="evenodd" class="svelte-xk676z"></path></svg> <span class="svelte-xk676z">Play</span></button> <button class="pie-tool-text-to-speech__button-secondary svelte-xk676z" type="button"><!></button> <button class="pie-tool-text-to-speech__button-secondary svelte-xk676z" aria-label="Stop" type="button"><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 svelte-xk676z" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zM8 7a1 1 0 00-1 1v4a1 1 0 001 1h4a1 1 0 001-1V8a1 1 0 00-1-1H8z" clip-rule="evenodd" class="svelte-xk676z"></path></svg> <span class="svelte-xk676z">Stop</span></button></div> <!>', 1), nf = /* @__PURE__ */ Ke('<div class="pie-tool-text-to-speech svelte-xk676z" role="dialog" aria-label="Text-to-Speech Tool" tabindex="-1"><div class="pie-tool-text-to-speech__header svelte-xk676z"><div class="pie-tool-text-to-speech__header-left svelte-xk676z"><svg xmlns="http://www.w3.org/2000/svg" class="h-4 w-4 svelte-xk676z" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.536 8.464a5 5 0 010 7.072m2.828-9.9a9 9 0 010 12.728M5.858 18.142a3 3 0 104.243-4.242L12 12.142 7.757 7.899a3 3 0 000 4.242z" class="svelte-xk676z"></path></svg> <span class="pie-tool-text-to-speech__title svelte-xk676z">Text-to-Speech</span></div> <button class="pie-tool-text-to-speech__close-button svelte-xk676z" aria-label="Close" type="button">×</button></div> <div class="pie-tool-text-to-speech__content svelte-xk676z"><!></div></div>'), of = {
|
|
5362
5378
|
hash: "svelte-xk676z",
|
|
5363
5379
|
code: `.pie-tool-text-to-speech.svelte-xk676z {position:fixed;width:300px;background:var(--pie-background, #fff);color:var(--pie-text, #111827);border:1px solid var(--pie-border-light, #cbd5e0);border-radius:8px;box-shadow:0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);cursor:move;user-select:none;font-family:system-ui, -apple-system, sans-serif;}.pie-tool-text-to-speech__header.svelte-xk676z {display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:var(--pie-primary-dark, #283593);color:var(--pie-white, #fff);border-radius:8px 8px 0 0;cursor:move;}.pie-tool-text-to-speech__header-left.svelte-xk676z {display:flex;align-items:center;gap:8px;}.pie-tool-text-to-speech__title.svelte-xk676z {font-weight:600;font-size:14px;}.pie-tool-text-to-speech__close-button.svelte-xk676z {background:rgb(255 255 255 / 0.2);border:none;color:var(--pie-white, #fff);width:24px;height:24px;border-radius:4px;cursor:pointer;font-size:20px;line-height:1;display:flex;align-items:center;justify-content:center;transition:background-color 0.2s;}.pie-tool-text-to-speech__close-button.svelte-xk676z:hover {background:rgb(255 255 255 / 0.3);}.pie-tool-text-to-speech__content.svelte-xk676z {padding:16px;}.pie-tool-text-to-speech__error-message.svelte-xk676z,
|
|
5364
5380
|
.pie-tool-text-to-speech__loading-message.svelte-xk676z {display:flex;align-items:center;gap:8px;padding:12px;border-radius:6px;font-size:13px;}.pie-tool-text-to-speech__error-message.svelte-xk676z {background:color-mix(in srgb, var(--pie-incorrect, #c33) 12%, transparent);color:var(--pie-incorrect-icon, #c33);border:1px solid color-mix(in srgb, var(--pie-incorrect, #c33) 30%, transparent);}.pie-tool-text-to-speech__loading-message.svelte-xk676z {background:var(--pie-secondary-background, #f0f4f8);color:var(--pie-text, #4a5568);justify-content:center;}.pie-tool-text-to-speech__instructions.svelte-xk676z {margin-bottom:16px;font-size:13px;color:var(--pie-text, #4a5568);}.pie-tool-text-to-speech__instructions.svelte-xk676z p:where(.svelte-xk676z) {margin:0;line-height:1.5;}.pie-tool-text-to-speech__selection-info.svelte-xk676z {display:flex;align-items:center;gap:6px;padding:8px 12px;background:color-mix(in srgb, var(--pie-correct, #10b981) 12%, transparent);border:1px solid color-mix(in srgb, var(--pie-correct, #10b981) 35%, transparent);border-radius:6px;color:var(--pie-correct-icon, #234e52);font-size:12px;}.pie-tool-text-to-speech__selection-info.svelte-xk676z svg:where(.svelte-xk676z) {flex-shrink:0;}.pie-tool-text-to-speech__control-group.svelte-xk676z {margin-bottom:16px;}.pie-tool-text-to-speech__control-group.svelte-xk676z label:where(.svelte-xk676z) {display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:13px;color:var(--pie-text, #4a5568);}.pie-tool-text-to-speech__control-group.svelte-xk676z label:where(.svelte-xk676z) strong:where(.svelte-xk676z) {color:var(--pie-primary, #667eea);font-weight:600;}.pie-tool-text-to-speech__control-group.svelte-xk676z input[type="range"]:where(.svelte-xk676z) {width:100%;height:6px;border-radius:3px;background:var(--pie-secondary-background, #e2e8f0);outline:none;-webkit-appearance:none;}.pie-tool-text-to-speech__control-group.svelte-xk676z input[type="range"]:where(.svelte-xk676z)::-webkit-slider-thumb {-webkit-appearance:none;width:18px;height:18px;border-radius:50%;background:var(--pie-primary, #667eea);cursor:pointer;transition:all 0.2s;}.pie-tool-text-to-speech__control-group.svelte-xk676z input[type="range"]:where(.svelte-xk676z)::-webkit-slider-thumb:hover {background:var(--pie-primary-dark, #764ba2);transform:scale(1.1);}.pie-tool-text-to-speech__control-group.svelte-xk676z input[type="range"]:where(.svelte-xk676z):disabled {opacity:0.5;cursor:not-allowed;}.pie-tool-text-to-speech__playback-controls.svelte-xk676z {display:flex;gap:8px;margin-bottom:12px;}.pie-tool-text-to-speech__playback-controls.svelte-xk676z button:where(.svelte-xk676z) {flex:1;display:flex;align-items:center;justify-content:center;gap:6px;padding:10px 12px;border:none;border-radius:6px;font-size:13px;font-weight:500;cursor:pointer;transition:all 0.2s;}.pie-tool-text-to-speech__playback-controls.svelte-xk676z button:where(.svelte-xk676z) svg:where(.svelte-xk676z) {flex-shrink:0;}.pie-tool-text-to-speech__button-primary.svelte-xk676z {background:var(--pie-primary, #667eea);color:var(--pie-white, #fff);}.pie-tool-text-to-speech__button-primary.svelte-xk676z:hover:not(:disabled) {transform:translateY(-1px);box-shadow:0 4px 6px color-mix(in srgb, var(--pie-primary, #667eea) 35%, transparent);}.pie-tool-text-to-speech__button-secondary.svelte-xk676z {background:var(--pie-button-bg, #f7fafc);color:var(--pie-button-color, #4a5568);border:1px solid var(--pie-button-border, #e2e8f0);}.pie-tool-text-to-speech__button-secondary.svelte-xk676z:hover:not(:disabled) {background:var(--pie-button-hover-bg, #edf2f7);}.pie-tool-text-to-speech__playback-controls.svelte-xk676z button:where(.svelte-xk676z):disabled {opacity:0.5;cursor:not-allowed;transform:none !important;}.pie-tool-text-to-speech__status-indicator.svelte-xk676z {display:flex;align-items:center;gap:8px;padding:8px 12px;background:color-mix(in srgb, var(--pie-correct, #4caf50) 10%, transparent);border:1px solid color-mix(in srgb, var(--pie-correct, #4caf50) 30%, transparent);border-radius:6px;font-size:12px;color:var(--pie-correct-icon, #166534);
|
|
@@ -5395,26 +5411,26 @@ var Gu = /* @__PURE__ */ Ke('<div class="pie-tool-text-to-speech__error-message
|
|
|
5395
5411
|
animation: none !important;transition:none !important;}
|
|
5396
5412
|
}`
|
|
5397
5413
|
};
|
|
5398
|
-
function
|
|
5399
|
-
|
|
5414
|
+
function sf(e, t) {
|
|
5415
|
+
ts(t, !0), tc(e, of);
|
|
5400
5416
|
let r = sn(t, "visible", 7, !1), n = sn(t, "toolId", 7, "textToSpeech"), i = sn(t, "coordinator", 7), o = sn(t, "ttsService", 7);
|
|
5401
5417
|
const s = typeof window < "u";
|
|
5402
|
-
let a = /* @__PURE__ */ j(void 0), u = /* @__PURE__ */ j(void 0), f = /* @__PURE__ */ j(!1), d = /* @__PURE__ */ j(
|
|
5418
|
+
let a = /* @__PURE__ */ j(void 0), u = /* @__PURE__ */ j(void 0), f = /* @__PURE__ */ j(!1), d = /* @__PURE__ */ j(At({
|
|
5403
5419
|
x: s ? window.innerWidth - 320 : 400,
|
|
5404
5420
|
y: 100
|
|
5405
|
-
})),
|
|
5421
|
+
})), v = /* @__PURE__ */ j(At({
|
|
5406
5422
|
x: 0,
|
|
5407
5423
|
y: 0
|
|
5408
|
-
})), p = /* @__PURE__ */ j(!1),
|
|
5424
|
+
})), p = /* @__PURE__ */ j(!1), m = /* @__PURE__ */ j(!1), _ = /* @__PURE__ */ j(!1), w = /* @__PURE__ */ j(""), E = /* @__PURE__ */ j(1), N = /* @__PURE__ */ j(!1), ne = /* @__PURE__ */ j(null), P = /* @__PURE__ */ j(!1), M = null;
|
|
5409
5425
|
un(() => {
|
|
5410
|
-
i() && n() && !g(P) && (i().registerTool(n(), "Text-to-Speech", void 0, bi.MODAL),
|
|
5411
|
-
}),
|
|
5426
|
+
i() && n() && !g(P) && (i().registerTool(n(), "Text-to-Speech", void 0, bi.MODAL), O(P, !0));
|
|
5427
|
+
}), Ql(async () => {
|
|
5412
5428
|
if (s) {
|
|
5413
5429
|
try {
|
|
5414
|
-
const k = new
|
|
5415
|
-
await o().initialize(k),
|
|
5430
|
+
const k = new Qs();
|
|
5431
|
+
await o().initialize(k), O(p, !0);
|
|
5416
5432
|
} catch (k) {
|
|
5417
|
-
console.error("[TTSTool] Failed to initialize TTS:", k),
|
|
5433
|
+
console.error("[TTSTool] Failed to initialize TTS:", k), O(ne, k instanceof Error ? k.message : "Failed to initialize TTS", !0);
|
|
5418
5434
|
}
|
|
5419
5435
|
return document.addEventListener("selectionchange", le), () => {
|
|
5420
5436
|
s && (document.removeEventListener("selectionchange", le), o().stop()), M?.(), M = null, i() && n() && i().unregisterTool(n());
|
|
@@ -5427,16 +5443,16 @@ function rf(e, t) {
|
|
|
5427
5443
|
M?.(), M = null;
|
|
5428
5444
|
return;
|
|
5429
5445
|
}
|
|
5430
|
-
return M?.(), M =
|
|
5446
|
+
return M?.(), M = Yu(g(a), {
|
|
5431
5447
|
initialFocus: g(u) || null,
|
|
5432
|
-
onEscape:
|
|
5448
|
+
onEscape: Ot
|
|
5433
5449
|
}), () => {
|
|
5434
5450
|
M?.(), M = null;
|
|
5435
5451
|
};
|
|
5436
5452
|
});
|
|
5437
5453
|
function le() {
|
|
5438
5454
|
const k = window.getSelection();
|
|
5439
|
-
k && k.toString().trim().length > 0 ? (
|
|
5455
|
+
k && k.toString().trim().length > 0 ? (O(w, k.toString().trim(), !0), O(N, !0)) : O(N, !1);
|
|
5440
5456
|
}
|
|
5441
5457
|
async function Je() {
|
|
5442
5458
|
if (!(!g(p) || !g(N) || !g(w)))
|
|
@@ -5445,56 +5461,56 @@ function rf(e, t) {
|
|
|
5445
5461
|
if (!k || k.rangeCount === 0) return;
|
|
5446
5462
|
const C = k.getRangeAt(0).commonAncestorContainer.parentElement;
|
|
5447
5463
|
if (!C) return;
|
|
5448
|
-
|
|
5449
|
-
const
|
|
5464
|
+
O(m, !0), O(_, !1), o().setRootElement(C);
|
|
5465
|
+
const mt = C.closest("[data-catalog-id]")?.getAttribute("data-catalog-id") || void 0;
|
|
5450
5466
|
await o().speak(g(w), {
|
|
5451
|
-
catalogId:
|
|
5467
|
+
catalogId: mt,
|
|
5452
5468
|
rate: g(E),
|
|
5453
5469
|
highlightWords: !0
|
|
5454
5470
|
}, {
|
|
5455
5471
|
onEnd: () => {
|
|
5456
|
-
|
|
5472
|
+
O(m, !1), O(_, !1);
|
|
5457
5473
|
},
|
|
5458
5474
|
onError: (B) => {
|
|
5459
|
-
console.error("[TTSTool] TTS error:", B),
|
|
5475
|
+
console.error("[TTSTool] TTS error:", B), O(m, !1), O(_, !1);
|
|
5460
5476
|
}
|
|
5461
5477
|
});
|
|
5462
5478
|
} catch (k) {
|
|
5463
|
-
console.error("[TTSTool] Failed to speak:", k),
|
|
5479
|
+
console.error("[TTSTool] Failed to speak:", k), O(m, !1), O(_, !1);
|
|
5464
5480
|
}
|
|
5465
5481
|
}
|
|
5466
5482
|
function Rn() {
|
|
5467
|
-
g(
|
|
5483
|
+
g(m) && (g(_) ? (o().resume(), O(_, !1)) : (o().pause(), O(_, !0)));
|
|
5468
5484
|
}
|
|
5469
5485
|
function Mn() {
|
|
5470
|
-
o().stop(),
|
|
5486
|
+
o().stop(), O(m, !1), O(_, !1);
|
|
5471
5487
|
}
|
|
5472
5488
|
function Cn(k) {
|
|
5473
5489
|
const C = k.target;
|
|
5474
|
-
|
|
5490
|
+
O(E, parseFloat(C.value), !0);
|
|
5475
5491
|
}
|
|
5476
5492
|
function $n(k) {
|
|
5477
5493
|
k.target.closest("button, input, select") || X(k);
|
|
5478
5494
|
}
|
|
5479
5495
|
function X(k) {
|
|
5480
|
-
g(a) && (g(a).setPointerCapture(k.pointerId),
|
|
5496
|
+
g(a) && (g(a).setPointerCapture(k.pointerId), O(f, !0), O(v, {
|
|
5481
5497
|
x: k.clientX - g(d).x,
|
|
5482
5498
|
y: k.clientY - g(d).y
|
|
5483
|
-
}, !0), i()?.bringToFront(g(a)), g(a).addEventListener("pointermove",
|
|
5499
|
+
}, !0), i()?.bringToFront(g(a)), g(a).addEventListener("pointermove", xt), g(a).addEventListener("pointerup", Lt), k.preventDefault());
|
|
5484
5500
|
}
|
|
5485
|
-
function
|
|
5486
|
-
g(f) && (
|
|
5487
|
-
x: k.clientX - g(
|
|
5488
|
-
y: k.clientY - g(
|
|
5501
|
+
function xt(k) {
|
|
5502
|
+
g(f) && (O(d, {
|
|
5503
|
+
x: k.clientX - g(v).x,
|
|
5504
|
+
y: k.clientY - g(v).y
|
|
5489
5505
|
}, !0), k.preventDefault());
|
|
5490
5506
|
}
|
|
5491
|
-
function
|
|
5492
|
-
g(f) && g(a) && (g(a).releasePointerCapture(k.pointerId),
|
|
5507
|
+
function Lt(k) {
|
|
5508
|
+
g(f) && g(a) && (g(a).releasePointerCapture(k.pointerId), O(f, !1), g(a).removeEventListener("pointermove", xt), g(a).removeEventListener("pointerup", Lt));
|
|
5493
5509
|
}
|
|
5494
|
-
function
|
|
5510
|
+
function Ot() {
|
|
5495
5511
|
i()?.hideTool(n());
|
|
5496
5512
|
}
|
|
5497
|
-
const Pn = /* @__PURE__ */
|
|
5513
|
+
const Pn = /* @__PURE__ */ _l(() => g(E) === 0.5 ? "Slow" : g(E) === 0.75 ? "Slower" : g(E) === 1 ? "Normal" : g(E) === 1.25 ? "Faster" : g(E) === 1.5 ? "Fast" : g(E) === 2 ? "Very Fast" : `${g(E)}x`);
|
|
5498
5514
|
var Dn = {
|
|
5499
5515
|
get visible() {
|
|
5500
5516
|
return r();
|
|
@@ -5520,80 +5536,80 @@ function rf(e, t) {
|
|
|
5520
5536
|
set ttsService(k) {
|
|
5521
5537
|
o(k), Dr();
|
|
5522
5538
|
}
|
|
5523
|
-
}, Kr =
|
|
5524
|
-
var C =
|
|
5525
|
-
ko(B, (Q) =>
|
|
5526
|
-
var yr = ye(
|
|
5527
|
-
var ve =
|
|
5539
|
+
}, Kr = Gl(), Xr = uo(Kr), Nn = (k) => {
|
|
5540
|
+
var C = nf(), mt = te(C), B = ye(te(mt), 2);
|
|
5541
|
+
ko(B, (Q) => O(u, Q), () => g(u)), ee(mt);
|
|
5542
|
+
var yr = ye(mt, 2), F = te(yr), Rt = (Q) => {
|
|
5543
|
+
var ve = qu(), Ze = ye(te(ve), 2), Zt = te(Ze, !0);
|
|
5528
5544
|
ee(Ze), ee(ve), xr(() => nn(Zt, g(ne))), de(Q, ve);
|
|
5529
5545
|
}, Jt = (Q) => {
|
|
5530
|
-
var ve =
|
|
5546
|
+
var ve = Ku();
|
|
5531
5547
|
de(Q, ve);
|
|
5532
5548
|
}, Ue = (Q) => {
|
|
5533
|
-
var ve =
|
|
5534
|
-
var J =
|
|
5535
|
-
ee(nt), ee(J), xr(() => nn(
|
|
5536
|
-
},
|
|
5537
|
-
var J =
|
|
5549
|
+
var ve = rf(), Ze = uo(ve), Zt = te(Ze), Qe = (V) => {
|
|
5550
|
+
var J = Xu(), nt = ye(te(J), 2), bt = te(nt);
|
|
5551
|
+
ee(nt), ee(J), xr(() => nn(bt, `${g(w).length ?? ""} characters selected`)), de(V, J);
|
|
5552
|
+
}, Mt = (V) => {
|
|
5553
|
+
var J = Ju();
|
|
5538
5554
|
de(V, J);
|
|
5539
5555
|
};
|
|
5540
5556
|
or(Zt, (V) => {
|
|
5541
|
-
g(N) ? V(Qe) : V(
|
|
5557
|
+
g(N) ? V(Qe) : V(Mt, -1);
|
|
5542
5558
|
}), ee(Ze);
|
|
5543
|
-
var
|
|
5544
|
-
ee(Qt), ee(
|
|
5545
|
-
var et = ye(
|
|
5546
|
-
|
|
5547
|
-
var
|
|
5548
|
-
var J =
|
|
5559
|
+
var Le = ye(Ze, 2), Ct = te(Le), Qt = ye(te(Ct), 2), _t = te(Qt, !0);
|
|
5560
|
+
ee(Qt), ee(Ct);
|
|
5561
|
+
var et = ye(Ct, 2);
|
|
5562
|
+
uc(et), ee(Le);
|
|
5563
|
+
var gt = ye(Le, 2), er = te(gt), tt = ye(er, 2), zn = te(tt), wr = (V) => {
|
|
5564
|
+
var J = Zu();
|
|
5549
5565
|
ii(2), de(V, J);
|
|
5550
|
-
},
|
|
5551
|
-
var J =
|
|
5566
|
+
}, $t = (V) => {
|
|
5567
|
+
var J = Qu();
|
|
5552
5568
|
ii(2), de(V, J);
|
|
5553
5569
|
};
|
|
5554
5570
|
or(zn, (V) => {
|
|
5555
|
-
g(_) ? V(wr) : V(
|
|
5571
|
+
g(_) ? V(wr) : V($t, -1);
|
|
5556
5572
|
}), ee(tt);
|
|
5557
5573
|
var rt = ye(tt, 2);
|
|
5558
|
-
ee(
|
|
5559
|
-
var
|
|
5560
|
-
var J =
|
|
5574
|
+
ee(gt);
|
|
5575
|
+
var me = ye(gt, 2), Tr = (V) => {
|
|
5576
|
+
var J = tf();
|
|
5561
5577
|
let nt;
|
|
5562
|
-
var
|
|
5563
|
-
var kr =
|
|
5578
|
+
var bt = te(J), tr = te(bt), rr = (Fe) => {
|
|
5579
|
+
var kr = Wl("⏸");
|
|
5564
5580
|
de(Fe, kr);
|
|
5565
|
-
},
|
|
5566
|
-
var kr =
|
|
5581
|
+
}, _e = (Fe) => {
|
|
5582
|
+
var kr = ef();
|
|
5567
5583
|
de(Fe, kr);
|
|
5568
5584
|
};
|
|
5569
5585
|
or(tr, (Fe) => {
|
|
5570
|
-
g(_) ? Fe(rr) : Fe(
|
|
5571
|
-
}), ee(
|
|
5572
|
-
var it = ye(
|
|
5586
|
+
g(_) ? Fe(rr) : Fe(_e, -1);
|
|
5587
|
+
}), ee(bt);
|
|
5588
|
+
var it = ye(bt, 2), Er = te(it, !0);
|
|
5573
5589
|
ee(it), ee(J), xr(() => {
|
|
5574
|
-
nt =
|
|
5590
|
+
nt = ic(J, 1, "pie-tool-text-to-speech__status-indicator svelte-xk676z", null, nt, { "pie-tool-text-to-speech__status-indicator--paused": g(_) }), nn(Er, g(_) ? "Paused" : "Speaking...");
|
|
5575
5591
|
}), de(V, J);
|
|
5576
5592
|
};
|
|
5577
|
-
or(
|
|
5578
|
-
g(
|
|
5593
|
+
or(me, (V) => {
|
|
5594
|
+
g(m) && V(Tr);
|
|
5579
5595
|
}), xr(() => {
|
|
5580
|
-
nn(
|
|
5596
|
+
nn(_t, g(Pn)), fc(et, g(E)), et.disabled = g(m), er.disabled = !g(N) || g(m), tt.disabled = !g(m), _i(tt, "aria-label", g(_) ? "Resume" : "Pause"), rt.disabled = !g(m);
|
|
5581
5597
|
}), ir("input", et, Cn), ir("click", er, Je), ir("click", tt, Rn), ir("click", rt, Mn), de(Q, ve);
|
|
5582
5598
|
};
|
|
5583
5599
|
or(F, (Q) => {
|
|
5584
|
-
g(ne) ? Q(
|
|
5585
|
-
}), ee(yr), ee(C), ko(C, (Q) =>
|
|
5600
|
+
g(ne) ? Q(Rt) : g(p) ? Q(Ue, -1) : Q(Jt, 1);
|
|
5601
|
+
}), ee(yr), ee(C), ko(C, (Q) => O(a, Q), () => g(a)), xr(() => oc(C, `left: ${g(d).x ?? ""}px; top: ${g(d).y ?? ""}px;`)), ir("pointerdown", C, $n), ir("click", B, Ot), de(k, C);
|
|
5586
5602
|
};
|
|
5587
5603
|
return or(Xr, (k) => {
|
|
5588
5604
|
r() && s && k(Nn);
|
|
5589
|
-
}), de(e, Kr),
|
|
5605
|
+
}), de(e, Kr), rs(Dn);
|
|
5590
5606
|
}
|
|
5591
|
-
|
|
5607
|
+
Fl([
|
|
5592
5608
|
"pointerdown",
|
|
5593
5609
|
"click",
|
|
5594
5610
|
"input"
|
|
5595
5611
|
]);
|
|
5596
|
-
customElements.define("pie-tool-text-to-speech",
|
|
5612
|
+
customElements.define("pie-tool-text-to-speech", _c(sf, {
|
|
5597
5613
|
visible: {
|
|
5598
5614
|
attribute: "visible",
|
|
5599
5615
|
type: "Boolean"
|
|
@@ -5606,5 +5622,5 @@ customElements.define("pie-tool-text-to-speech", vc(rf, {
|
|
|
5606
5622
|
ttsService: {}
|
|
5607
5623
|
}, [], [], { mode: "open" }));
|
|
5608
5624
|
export {
|
|
5609
|
-
|
|
5625
|
+
sf as default
|
|
5610
5626
|
};
|