@pie-players/pie-tool-line-reader 0.3.53 → 0.3.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tool-line-reader.js +643 -623
- package/package.json +4 -4
package/dist/tool-line-reader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as g } from "./defineProperty-Dt7ri80W.js";
|
|
2
|
-
var na = Object.create, Yi = Object.defineProperty, ra = Object.getOwnPropertyDescriptor, ia = Object.getOwnPropertyNames, oa = Object.getPrototypeOf, sa = Object.prototype.hasOwnProperty,
|
|
2
|
+
var na = Object.create, Yi = Object.defineProperty, ra = Object.getOwnPropertyDescriptor, ia = Object.getOwnPropertyNames, oa = Object.getPrototypeOf, sa = Object.prototype.hasOwnProperty, fd = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), aa = (e, t, n, r) => {
|
|
3
3
|
if (t && typeof t == "object" || typeof t == "function")
|
|
4
4
|
for (var i = ia(t), o = 0, s = i.length, a; o < s; o++)
|
|
5
5
|
a = i[o], !sa.call(e, a) && a !== n && Yi(e, a, {
|
|
@@ -10,16 +10,16 @@ var na = Object.create, Yi = Object.defineProperty, ra = Object.getOwnPropertyDe
|
|
|
10
10
|
}, la = (e, t, n) => (n = e != null ? na(oa(e)) : {}, aa(t || !e || !e.__esModule ? Yi(n, "default", {
|
|
11
11
|
value: e,
|
|
12
12
|
enumerable: !0
|
|
13
|
-
}) : n, e)),
|
|
13
|
+
}) : n, e)), pd = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (t, n) => (typeof require < "u" ? require : t)[n] }) : e)(function(e) {
|
|
14
14
|
if (typeof require < "u") return require.apply(this, arguments);
|
|
15
15
|
throw Error('Calling `require` for "' + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
16
16
|
});
|
|
17
17
|
if (typeof window < "u") {
|
|
18
|
-
var
|
|
19
|
-
((
|
|
18
|
+
var Xr, Jr;
|
|
19
|
+
((Xr = (Jr = window).__svelte ?? (Jr.__svelte = {})).v ?? (Xr.v = /* @__PURE__ */ new Set())).add("5");
|
|
20
20
|
}
|
|
21
21
|
var dt = {}, B = /* @__PURE__ */ Symbol("uninitialized");
|
|
22
|
-
var ca = Array.isArray, ua = Array.prototype.indexOf,
|
|
22
|
+
var ca = Array.isArray, ua = Array.prototype.indexOf, sn = Array.prototype.includes, ha = Array.from, an = Object.keys, ln = Object.defineProperty, je = Object.getOwnPropertyDescriptor, da = Object.getOwnPropertyDescriptors, fa = Object.prototype, pa = Array.prototype, Ki = Object.getPrototypeOf, Qr = Object.isExtensible, ga = () => {
|
|
23
23
|
};
|
|
24
24
|
function va(e) {
|
|
25
25
|
for (var t = 0; t < e.length; t++) e[t]();
|
|
@@ -34,8 +34,8 @@ function Xi() {
|
|
|
34
34
|
reject: t
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
var
|
|
38
|
-
var
|
|
37
|
+
var gd = 1 << 24, te = 1024, re = 2048, et = 4096, Sr = 8192, ma = 16384, wr = 32768, Zr = 1 << 25, kr = 65536, vd = 1 << 17, md = 1 << 18, bt = 1 << 19, ya = 1 << 20, Nt = 65536, ei = 1 << 21, ba = 1 << 22, cn = 1 << 23, Ot = /* @__PURE__ */ Symbol("$state"), Ji = /* @__PURE__ */ Symbol("legacy props"), Ta = /* @__PURE__ */ Symbol(""), _a = /* @__PURE__ */ Symbol("proxy path"), Gn = /* @__PURE__ */ Symbol("attributes"), Yn = /* @__PURE__ */ Symbol("class"), Kn = /* @__PURE__ */ Symbol("style"), Jt = /* @__PURE__ */ Symbol("text");
|
|
38
|
+
var wn = new class extends Error {
|
|
39
39
|
constructor(...t) {
|
|
40
40
|
super(...t), g(this, "name", "StaleReactionError"), g(this, "message", "The reaction that called `getAbortSignal()` was re-run or destroyed");
|
|
41
41
|
}
|
|
@@ -79,7 +79,7 @@ function La() {
|
|
|
79
79
|
function Pa() {
|
|
80
80
|
console.warn("https://svelte.dev/e/derived_inert");
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function kn(e) {
|
|
83
83
|
console.warn("https://svelte.dev/e/hydration_mismatch");
|
|
84
84
|
}
|
|
85
85
|
function Na() {
|
|
@@ -92,16 +92,16 @@ function lt(e) {
|
|
|
92
92
|
var O;
|
|
93
93
|
function ce(e) {
|
|
94
94
|
if (e === null)
|
|
95
|
-
throw
|
|
95
|
+
throw kn(), dt;
|
|
96
96
|
return O = e;
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function xr() {
|
|
99
99
|
return ce(/* @__PURE__ */ Me(O));
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function ti(e) {
|
|
102
102
|
if (I) {
|
|
103
103
|
if (/* @__PURE__ */ Me(O) !== null)
|
|
104
|
-
throw
|
|
104
|
+
throw kn(), dt;
|
|
105
105
|
O = e;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -126,7 +126,7 @@ function Zi(e = !0) {
|
|
|
126
126
|
}
|
|
127
127
|
function Wa(e) {
|
|
128
128
|
if (!e || e.nodeType !== 8)
|
|
129
|
-
throw
|
|
129
|
+
throw kn(), dt;
|
|
130
130
|
return e.data;
|
|
131
131
|
}
|
|
132
132
|
function eo(e) {
|
|
@@ -139,7 +139,7 @@ function to(e) {
|
|
|
139
139
|
return !za(e, this.v);
|
|
140
140
|
}
|
|
141
141
|
var _e = !1, Wt = !1;
|
|
142
|
-
function
|
|
142
|
+
function ni(e, t) {
|
|
143
143
|
return e.label = t, Ha(e.v, t), e;
|
|
144
144
|
}
|
|
145
145
|
function Ha(e, t) {
|
|
@@ -196,7 +196,7 @@ function Ba() {
|
|
|
196
196
|
function oo(e) {
|
|
197
197
|
var t = S;
|
|
198
198
|
if (t === null)
|
|
199
|
-
return M.f |=
|
|
199
|
+
return M.f |= cn, e;
|
|
200
200
|
if ((t.f & 32768) === 0 && (t.f & 4) === 0)
|
|
201
201
|
throw e;
|
|
202
202
|
Pe(e, t);
|
|
@@ -220,7 +220,7 @@ var Da = ~(re | et | te);
|
|
|
220
220
|
function N(e, t) {
|
|
221
221
|
e.f = e.f & Da | t;
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function Er(e) {
|
|
224
224
|
(e.f & 512) !== 0 || e.deps === null ? N(e, te) : N(e, et);
|
|
225
225
|
}
|
|
226
226
|
function so(e) {
|
|
@@ -243,7 +243,7 @@ function ja(e) {
|
|
|
243
243
|
function lo(e, t) {
|
|
244
244
|
if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function Mr(e, t) {
|
|
247
247
|
lo(e, t), t.add(e);
|
|
248
248
|
}
|
|
249
249
|
function _(e, t, n) {
|
|
@@ -259,10 +259,10 @@ function T(e, t, n) {
|
|
|
259
259
|
function d(e, t) {
|
|
260
260
|
return e.get(k(e, t));
|
|
261
261
|
}
|
|
262
|
-
var co,
|
|
263
|
-
var Va = 1,
|
|
262
|
+
var co, un = null, it = null, x = null, Xn = null, q = null, Jn = null, It = !1, Ln = !1, gt = null, hn = null, uo = 0;
|
|
263
|
+
var Va = 1, dn = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap(), fn = /* @__PURE__ */ new WeakMap(), Gt = /* @__PURE__ */ new WeakMap(), ot = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap(), xt = /* @__PURE__ */ new WeakMap(), Z = /* @__PURE__ */ new WeakMap(), Qn = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap(), Le = /* @__PURE__ */ new WeakMap(), Qt = /* @__PURE__ */ new WeakMap(), Et = /* @__PURE__ */ new WeakMap(), W = /* @__PURE__ */ new WeakSet(), tt = class ho {
|
|
264
264
|
constructor() {
|
|
265
|
-
|
|
265
|
+
Mr(this, W), g(this, "id", Va++), _(this, dn, !1), g(this, "linked", !0), _(this, Ve, null), _(this, Be, null), g(this, "async_deriveds", /* @__PURE__ */ new Map()), g(this, "current", /* @__PURE__ */ new Map()), g(this, "previous", /* @__PURE__ */ new Map()), _(this, fn, /* @__PURE__ */ new Set()), _(this, Gt, /* @__PURE__ */ new Set()), _(this, ot, 0), _(this, ze, /* @__PURE__ */ new Map()), _(this, xt, null), _(this, Z, []), _(this, Qn, []), _(this, Je, /* @__PURE__ */ new Set()), _(this, Te, /* @__PURE__ */ new Set()), _(this, Le, /* @__PURE__ */ new Map()), _(this, Qt, /* @__PURE__ */ new Set()), g(this, "is_fork", !1), _(this, Et, !1), it === null ? un = it = this : (T(Be, it, this), T(Ve, this, it)), it = this;
|
|
266
266
|
}
|
|
267
267
|
skip_effect(t) {
|
|
268
268
|
d(Le, this).has(t) || d(Le, this).set(t, {
|
|
@@ -292,17 +292,17 @@ var Va = 1, hn = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap
|
|
|
292
292
|
}
|
|
293
293
|
flush() {
|
|
294
294
|
try {
|
|
295
|
-
|
|
295
|
+
Ln = !0, x = this, k(W, this, pn).call(this);
|
|
296
296
|
} finally {
|
|
297
|
-
uo = 0,
|
|
297
|
+
uo = 0, Jn = null, gt = null, hn = null, Ln = !1, x = null, q = null, Ge.clear();
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
300
|
discard() {
|
|
301
301
|
for (const t of d(Gt, this)) t(this);
|
|
302
|
-
d(Gt, this).clear(), k(W, this,
|
|
302
|
+
d(Gt, this).clear(), k(W, this, gn).call(this), d(xt, this)?.resolve();
|
|
303
303
|
}
|
|
304
304
|
register_created_effect(t) {
|
|
305
|
-
d(
|
|
305
|
+
d(Qn, this).push(t);
|
|
306
306
|
}
|
|
307
307
|
increment(t, n) {
|
|
308
308
|
if (T(ot, this, d(ot, this) + 1), t) {
|
|
@@ -325,7 +325,7 @@ var Va = 1, hn = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap
|
|
|
325
325
|
t.clear(), n.clear();
|
|
326
326
|
}
|
|
327
327
|
oncommit(t) {
|
|
328
|
-
d(
|
|
328
|
+
d(fn, this).add(t);
|
|
329
329
|
}
|
|
330
330
|
ondiscard(t) {
|
|
331
331
|
d(Gt, this).add(t);
|
|
@@ -336,8 +336,8 @@ var Va = 1, hn = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap
|
|
|
336
336
|
static ensure() {
|
|
337
337
|
if (x === null) {
|
|
338
338
|
const t = x = new ho();
|
|
339
|
-
!
|
|
340
|
-
d(
|
|
339
|
+
!Ln && !It && pt(() => {
|
|
340
|
+
d(dn, t) || t.flush();
|
|
341
341
|
});
|
|
342
342
|
}
|
|
343
343
|
return x;
|
|
@@ -349,7 +349,7 @@ var Va = 1, hn = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap
|
|
|
349
349
|
}
|
|
350
350
|
q = /* @__PURE__ */ new Map();
|
|
351
351
|
for (const [n, [r]] of this.current) q.set(n, r);
|
|
352
|
-
for (let n =
|
|
352
|
+
for (let n = un; n !== null; n = d(Be, n))
|
|
353
353
|
if (!(n === this || n.is_fork)) {
|
|
354
354
|
var t = !1;
|
|
355
355
|
if (n.id < this.id) {
|
|
@@ -364,7 +364,7 @@ var Va = 1, hn = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap
|
|
|
364
364
|
}
|
|
365
365
|
}
|
|
366
366
|
schedule(t) {
|
|
367
|
-
if (
|
|
367
|
+
if (Jn = t, t.b?.is_pending && (t.f & 16777228) !== 0 && (t.f & 32768) === 0) {
|
|
368
368
|
t.b.defer_effect(t);
|
|
369
369
|
return;
|
|
370
370
|
}
|
|
@@ -382,7 +382,7 @@ var Va = 1, hn = /* @__PURE__ */ new WeakMap(), Ve = /* @__PURE__ */ new WeakMap
|
|
|
382
382
|
}
|
|
383
383
|
};
|
|
384
384
|
co = tt;
|
|
385
|
-
function
|
|
385
|
+
function ri() {
|
|
386
386
|
if (this.is_fork) return !0;
|
|
387
387
|
for (const n of d(ze, this).keys()) {
|
|
388
388
|
for (var e = n, t = !1; e.parent !== null; ) {
|
|
@@ -396,28 +396,28 @@ function ni() {
|
|
|
396
396
|
}
|
|
397
397
|
return !1;
|
|
398
398
|
}
|
|
399
|
-
function
|
|
400
|
-
T(
|
|
399
|
+
function pn() {
|
|
400
|
+
T(dn, this, !0), uo++ > 1e3 && (k(W, this, gn).call(this), Ya());
|
|
401
401
|
for (const a of d(Je, this))
|
|
402
402
|
d(Te, this).delete(a), N(a, re), this.schedule(a);
|
|
403
403
|
for (const a of d(Te, this))
|
|
404
404
|
N(a, et), this.schedule(a);
|
|
405
405
|
const e = d(Z, this);
|
|
406
406
|
T(Z, this, []), this.apply();
|
|
407
|
-
var t = gt = [], n = [], r =
|
|
407
|
+
var t = gt = [], n = [], r = hn = [];
|
|
408
408
|
for (const a of e) try {
|
|
409
409
|
k(W, this, fo).call(this, a, t, n);
|
|
410
410
|
} catch (l) {
|
|
411
|
-
throw vo(a), k(W, this,
|
|
411
|
+
throw vo(a), k(W, this, ri).call(this) || this.discard(), l;
|
|
412
412
|
}
|
|
413
413
|
if (x = null, r.length > 0) {
|
|
414
414
|
var i = co.ensure();
|
|
415
415
|
for (const a of r) i.schedule(a);
|
|
416
416
|
}
|
|
417
|
-
if (gt = null,
|
|
417
|
+
if (gt = null, hn = null, k(W, this, ri).call(this)) {
|
|
418
418
|
k(W, this, Mt).call(this, n), k(W, this, Mt).call(this, t);
|
|
419
419
|
for (const [a, l] of d(Le, this)) go(a, l);
|
|
420
|
-
r.length > 0 && k(W, x,
|
|
420
|
+
r.length > 0 && k(W, x, pn).call(x);
|
|
421
421
|
return;
|
|
422
422
|
}
|
|
423
423
|
const o = k(W, this, qa).call(this);
|
|
@@ -426,14 +426,14 @@ function fn() {
|
|
|
426
426
|
return;
|
|
427
427
|
}
|
|
428
428
|
d(Je, this).clear(), d(Te, this).clear();
|
|
429
|
-
for (const a of d(
|
|
430
|
-
d(
|
|
429
|
+
for (const a of d(fn, this)) a(this);
|
|
430
|
+
d(fn, this).clear(), Xn = this, ii(n), ii(t), Xn = null, d(xt, this)?.resolve();
|
|
431
431
|
var s = x;
|
|
432
|
-
if (d(ot, this) === 0 && (d(Z, this).length === 0 || s !== null) && (k(W, this,
|
|
432
|
+
if (d(ot, this) === 0 && (d(Z, this).length === 0 || s !== null) && (k(W, this, gn).call(this), _e && (k(W, this, Ga).call(this), x = s)), d(Z, this).length > 0) if (s !== null) {
|
|
433
433
|
const a = s;
|
|
434
434
|
d(Z, a).push(...d(Z, this).filter((l) => !d(Z, a).includes(l)));
|
|
435
435
|
} else s = this;
|
|
436
|
-
s !== null && k(W, s,
|
|
436
|
+
s !== null && k(W, s, pn).call(s);
|
|
437
437
|
}
|
|
438
438
|
function fo(e, t, n) {
|
|
439
439
|
e.f ^= te;
|
|
@@ -487,13 +487,13 @@ function Ua(e) {
|
|
|
487
487
|
}
|
|
488
488
|
};
|
|
489
489
|
for (const n of this.current.keys()) t(n);
|
|
490
|
-
this.oncommit(() => e.discard()), k(W, e,
|
|
490
|
+
this.oncommit(() => e.discard()), k(W, e, gn).call(e), x = this, k(W, this, pn).call(this);
|
|
491
491
|
}
|
|
492
492
|
function Mt(e) {
|
|
493
493
|
for (var t = 0; t < e.length; t += 1) ao(e[t], d(Je, this), d(Te, this));
|
|
494
494
|
}
|
|
495
495
|
function Ga() {
|
|
496
|
-
for (let c =
|
|
496
|
+
for (let c = un; c !== null; c = d(Be, c)) {
|
|
497
497
|
var e = c.id < this.id, t = [];
|
|
498
498
|
for (const [u, [h, f]] of this.current) {
|
|
499
499
|
if (c.current.has(u)) {
|
|
@@ -507,7 +507,7 @@ function Ga() {
|
|
|
507
507
|
const f = c.async_deriveds.get(u);
|
|
508
508
|
f && h.promise.then(f.resolve).catch(f.reject);
|
|
509
509
|
}
|
|
510
|
-
if (d(
|
|
510
|
+
if (d(dn, c)) {
|
|
511
511
|
var r = [...c.current.keys()].filter((u) => !c.current.get(u)[1] && !this.current.has(u));
|
|
512
512
|
if (r.length === 0)
|
|
513
513
|
e && c.discard();
|
|
@@ -524,7 +524,7 @@ function Ga() {
|
|
|
524
524
|
return f ? f[0] !== h[0] || f[1] !== h[1] : !0;
|
|
525
525
|
}).map(([u]) => u);
|
|
526
526
|
if (a.length > 0)
|
|
527
|
-
for (const u of d(
|
|
527
|
+
for (const u of d(Qn, this)) (u.f & 155648) === 0 && Cr(u, a, o) && ((u.f & 4194320) !== 0 ? (N(u, re), c.schedule(u)) : d(Je, c).add(u));
|
|
528
528
|
if (d(Z, c).length > 0 && !d(Et, c)) {
|
|
529
529
|
c.apply();
|
|
530
530
|
for (var l of d(Z, c)) k(W, c, fo).call(c, l, [], []);
|
|
@@ -535,13 +535,13 @@ function Ga() {
|
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function gn() {
|
|
539
539
|
if (this.linked) {
|
|
540
540
|
var e = d(Ve, this), t = d(Be, this);
|
|
541
|
-
e === null ?
|
|
541
|
+
e === null ? un = t : T(Be, e, t), t === null ? it = e : T(Ve, t, e), this.linked = !1;
|
|
542
542
|
}
|
|
543
543
|
}
|
|
544
|
-
function
|
|
544
|
+
function Zn(e) {
|
|
545
545
|
var t = It;
|
|
546
546
|
It = !0;
|
|
547
547
|
try {
|
|
@@ -563,11 +563,11 @@ function Ya() {
|
|
|
563
563
|
try {
|
|
564
564
|
Ca();
|
|
565
565
|
} catch (n) {
|
|
566
|
-
Pe(n,
|
|
566
|
+
Pe(n, Jn);
|
|
567
567
|
}
|
|
568
568
|
}
|
|
569
569
|
var he = null;
|
|
570
|
-
function
|
|
570
|
+
function ii(e) {
|
|
571
571
|
var t = e.length;
|
|
572
572
|
if (t !== 0) {
|
|
573
573
|
for (var n = 0; n < t; ) {
|
|
@@ -595,20 +595,20 @@ function po(e, t, n, r) {
|
|
|
595
595
|
if (!n.has(e) && (n.add(e), e.reactions !== null))
|
|
596
596
|
for (const i of e.reactions) {
|
|
597
597
|
const o = i.f;
|
|
598
|
-
(o & 2) !== 0 ? po(i, t, n, r) : (o & 4194320) !== 0 && (o & 2048) === 0 &&
|
|
598
|
+
(o & 2) !== 0 ? po(i, t, n, r) : (o & 4194320) !== 0 && (o & 2048) === 0 && Cr(i, t, r) && (N(i, re), Ar(i));
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
function
|
|
601
|
+
function Cr(e, t, n) {
|
|
602
602
|
const r = n.get(e);
|
|
603
603
|
if (r !== void 0) return r;
|
|
604
604
|
if (e.deps !== null) for (const i of e.deps) {
|
|
605
|
-
if (
|
|
606
|
-
if ((i.f & 2) !== 0 &&
|
|
605
|
+
if (sn.call(t, i)) return !0;
|
|
606
|
+
if ((i.f & 2) !== 0 && Cr(i, t, n))
|
|
607
607
|
return n.set(i, !0), !0;
|
|
608
608
|
}
|
|
609
609
|
return n.set(e, !1), !1;
|
|
610
610
|
}
|
|
611
|
-
function
|
|
611
|
+
function Ar(e) {
|
|
612
612
|
x.schedule(e);
|
|
613
613
|
}
|
|
614
614
|
function go(e, t) {
|
|
@@ -626,28 +626,28 @@ function vo(e) {
|
|
|
626
626
|
function Ka(e) {
|
|
627
627
|
let t = 0, n = Ht(0), r;
|
|
628
628
|
return () => {
|
|
629
|
-
|
|
629
|
+
Lr() && (v(n), Pr(() => (t === 0 && (r = xn(() => e(() => $t(n)))), t += 1, () => {
|
|
630
630
|
pt(() => {
|
|
631
631
|
t -= 1, t === 0 && (r?.(), r = void 0, $t(n));
|
|
632
632
|
});
|
|
633
633
|
})));
|
|
634
634
|
};
|
|
635
635
|
}
|
|
636
|
-
var Xa =
|
|
636
|
+
var Xa = kr | bt;
|
|
637
637
|
function Ja(e, t, n, r) {
|
|
638
638
|
new Qa(e, t, n, r);
|
|
639
639
|
}
|
|
640
|
-
var ae = /* @__PURE__ */ new WeakMap(),
|
|
640
|
+
var ae = /* @__PURE__ */ new WeakMap(), er = /* @__PURE__ */ new WeakMap(), de = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), ee = /* @__PURE__ */ new WeakMap(), pe = /* @__PURE__ */ new WeakMap(), X = /* @__PURE__ */ new WeakMap(), oe = /* @__PURE__ */ new WeakMap(), qe = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), Yt = /* @__PURE__ */ new WeakMap(), tr = /* @__PURE__ */ new WeakMap(), nr = /* @__PURE__ */ new WeakMap(), Ne = /* @__PURE__ */ new WeakMap(), oi = /* @__PURE__ */ new WeakMap(), j = /* @__PURE__ */ new WeakSet(), Qa = class {
|
|
641
641
|
constructor(e, t, n, r) {
|
|
642
|
-
|
|
642
|
+
Mr(this, j), g(this, "parent", void 0), g(this, "is_pending", !1), g(this, "transform_error", void 0), _(this, ae, void 0), _(this, er, I ? O : null), _(this, de, void 0), _(this, Rt, void 0), _(this, ee, void 0), _(this, pe, null), _(this, X, null), _(this, oe, null), _(this, qe, null), _(this, st, 0), _(this, Ue, 0), _(this, Yt, !1), _(this, tr, /* @__PURE__ */ new Set()), _(this, nr, /* @__PURE__ */ new Set()), _(this, Ne, null), _(this, oi, Ka(() => (T(Ne, this, Ht(d(st, this))), () => {
|
|
643
643
|
T(Ne, this, null);
|
|
644
644
|
}))), T(ae, this, e), T(de, this, t), T(Rt, this, (i) => {
|
|
645
645
|
var o = S;
|
|
646
646
|
o.b = this, o.f |= 128, n(i);
|
|
647
647
|
}), this.parent = S.b, this.transform_error = r ?? this.parent?.transform_error ?? ((i) => i), T(ee, this, Io(() => {
|
|
648
648
|
if (I) {
|
|
649
|
-
const i = d(
|
|
650
|
-
|
|
649
|
+
const i = d(er, this);
|
|
650
|
+
xr();
|
|
651
651
|
const o = i.data === "[!";
|
|
652
652
|
if (i.data.startsWith("[?")) {
|
|
653
653
|
const s = JSON.parse(i.data.slice(2));
|
|
@@ -657,7 +657,7 @@ var ae = /* @__PURE__ */ new WeakMap(), Zn = /* @__PURE__ */ new WeakMap(), de =
|
|
|
657
657
|
}, Xa)), I && T(ae, this, O);
|
|
658
658
|
}
|
|
659
659
|
defer_effect(e) {
|
|
660
|
-
ao(e, d(
|
|
660
|
+
ao(e, d(tr, this), d(nr, this));
|
|
661
661
|
}
|
|
662
662
|
is_rendered() {
|
|
663
663
|
return !this.is_pending && (!this.parent || this.parent.is_rendered());
|
|
@@ -667,17 +667,17 @@ var ae = /* @__PURE__ */ new WeakMap(), Zn = /* @__PURE__ */ new WeakMap(), de =
|
|
|
667
667
|
}
|
|
668
668
|
update_pending_count(e, t) {
|
|
669
669
|
k(j, this, yo).call(this, e, t), T(st, this, d(st, this) + e), !(!d(Ne, this) || d(Yt, this)) && (T(Yt, this, !0), pt(() => {
|
|
670
|
-
T(Yt, this, !1), d(Ne, this) &&
|
|
670
|
+
T(Yt, this, !1), d(Ne, this) && yn(d(Ne, this), d(st, this));
|
|
671
671
|
}));
|
|
672
672
|
}
|
|
673
673
|
get_effect_pending() {
|
|
674
|
-
return d(
|
|
674
|
+
return d(oi, this).call(this), v(d(Ne, this));
|
|
675
675
|
}
|
|
676
676
|
error(e) {
|
|
677
677
|
if (!d(de, this).onerror && !d(de, this).failed) throw e;
|
|
678
678
|
x?.is_fork ? (d(pe, this) && x.skip_effect(d(pe, this)), d(X, this) && x.skip_effect(d(X, this)), d(oe, this) && x.skip_effect(d(oe, this)), x.oncommit(() => {
|
|
679
|
-
k(j, this,
|
|
680
|
-
})) : k(j, this,
|
|
679
|
+
k(j, this, si).call(this, e);
|
|
680
|
+
})) : k(j, this, si).call(this, e);
|
|
681
681
|
}
|
|
682
682
|
};
|
|
683
683
|
function Za() {
|
|
@@ -698,9 +698,9 @@ function tl() {
|
|
|
698
698
|
const e = d(de, this).pending;
|
|
699
699
|
e && (this.is_pending = !0, T(X, this, we(() => e(d(ae, this)))), pt(() => {
|
|
700
700
|
var t = T(qe, this, document.createDocumentFragment()), n = Se();
|
|
701
|
-
t.append(n), T(pe, this, k(j, this,
|
|
701
|
+
t.append(n), T(pe, this, k(j, this, rr).call(this, () => we(() => d(Rt, this).call(this, n)))), d(Ue, this) === 0 && (d(ae, this).before(t), T(qe, this, null), Bt(d(X, this), () => {
|
|
702
702
|
T(X, this, null);
|
|
703
|
-
}), k(j, this,
|
|
703
|
+
}), k(j, this, Or).call(this, x));
|
|
704
704
|
}));
|
|
705
705
|
}
|
|
706
706
|
function mo() {
|
|
@@ -712,15 +712,15 @@ function mo() {
|
|
|
712
712
|
No(d(pe, this), e);
|
|
713
713
|
const t = d(de, this).pending;
|
|
714
714
|
T(X, this, we(() => t(d(ae, this))));
|
|
715
|
-
} else k(j, this,
|
|
715
|
+
} else k(j, this, Or).call(this, x);
|
|
716
716
|
} catch (t) {
|
|
717
717
|
this.error(t);
|
|
718
718
|
}
|
|
719
719
|
}
|
|
720
|
-
function
|
|
721
|
-
this.is_pending = !1, e.transfer_effects(d(
|
|
720
|
+
function Or(e) {
|
|
721
|
+
this.is_pending = !1, e.transfer_effects(d(tr, this), d(nr, this));
|
|
722
722
|
}
|
|
723
|
-
function
|
|
723
|
+
function rr(e) {
|
|
724
724
|
var t = S, n = M, r = L;
|
|
725
725
|
ge(d(ee, this)), ne(d(ee, this)), ft(d(ee, this).ctx);
|
|
726
726
|
try {
|
|
@@ -739,12 +739,12 @@ function yo(e, t) {
|
|
|
739
739
|
}
|
|
740
740
|
return;
|
|
741
741
|
}
|
|
742
|
-
T(Ue, this, d(Ue, this) + e), d(Ue, this) === 0 && (k(j, this,
|
|
742
|
+
T(Ue, this, d(Ue, this) + e), d(Ue, this) === 0 && (k(j, this, Or).call(this, t), d(X, this) && Bt(d(X, this), () => {
|
|
743
743
|
T(X, this, null);
|
|
744
744
|
}), d(qe, this) && (d(ae, this).before(d(qe, this)), T(qe, this, null)));
|
|
745
745
|
}
|
|
746
|
-
function
|
|
747
|
-
d(pe, this) && (Y(d(pe, this)), T(pe, this, null)), d(X, this) && (Y(d(X, this)), T(X, this, null)), d(oe, this) && (Y(d(oe, this)), T(oe, this, null)), I && (ce(d(
|
|
746
|
+
function si(e) {
|
|
747
|
+
d(pe, this) && (Y(d(pe, this)), T(pe, this, null)), d(X, this) && (Y(d(X, this)), T(X, this, null)), d(oe, this) && (Y(d(oe, this)), T(oe, this, null)), I && (ce(d(er, this)), Qi(), ce(Zi()));
|
|
748
748
|
var t = d(de, this).onerror;
|
|
749
749
|
let n = d(de, this).failed;
|
|
750
750
|
var r = !1, i = !1;
|
|
@@ -755,7 +755,7 @@ function oi(e) {
|
|
|
755
755
|
}
|
|
756
756
|
r = !0, i && La(), d(oe, this) !== null && Bt(d(oe, this), () => {
|
|
757
757
|
T(oe, this, null);
|
|
758
|
-
}), k(j, this,
|
|
758
|
+
}), k(j, this, rr).call(this, () => {
|
|
759
759
|
k(j, this, mo).call(this);
|
|
760
760
|
});
|
|
761
761
|
}, s = (a) => {
|
|
@@ -764,7 +764,7 @@ function oi(e) {
|
|
|
764
764
|
} catch (l) {
|
|
765
765
|
Pe(l, d(ee, this) && d(ee, this).parent);
|
|
766
766
|
}
|
|
767
|
-
n && T(oe, this, k(j, this,
|
|
767
|
+
n && T(oe, this, k(j, this, rr).call(this, () => {
|
|
768
768
|
try {
|
|
769
769
|
return we(() => {
|
|
770
770
|
var l = S;
|
|
@@ -802,7 +802,7 @@ function nl(e, t, n, r) {
|
|
|
802
802
|
} catch (p) {
|
|
803
803
|
Pe(p, s);
|
|
804
804
|
}
|
|
805
|
-
|
|
805
|
+
vn();
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
808
|
var u = bo();
|
|
@@ -814,7 +814,7 @@ function nl(e, t, n, r) {
|
|
|
814
814
|
Promise.all(n.map((f) => /* @__PURE__ */ il(f))).then((f) => c([...t.map(i), ...f])).catch((f) => Pe(f, s)).finally(u);
|
|
815
815
|
}
|
|
816
816
|
l ? l.then(() => {
|
|
817
|
-
a(), h(),
|
|
817
|
+
a(), h(), vn();
|
|
818
818
|
}) : h();
|
|
819
819
|
}
|
|
820
820
|
function rl() {
|
|
@@ -824,7 +824,7 @@ function rl() {
|
|
|
824
824
|
ge(e), ne(t), ft(n), s && (e.f & 16384) === 0 && (r?.activate(), r?.apply());
|
|
825
825
|
};
|
|
826
826
|
}
|
|
827
|
-
function
|
|
827
|
+
function vn(e = !0) {
|
|
828
828
|
ge(null), ne(null), ft(null), e && x?.deactivate();
|
|
829
829
|
}
|
|
830
830
|
function bo() {
|
|
@@ -862,10 +862,10 @@ function il(e, t, n) {
|
|
|
862
862
|
i = c.promise;
|
|
863
863
|
try {
|
|
864
864
|
Promise.resolve(e()).then(c.resolve, (p) => {
|
|
865
|
-
p !==
|
|
866
|
-
}).finally(
|
|
865
|
+
p !== wn && c.reject(p);
|
|
866
|
+
}).finally(vn);
|
|
867
867
|
} catch (p) {
|
|
868
|
-
c.reject(p),
|
|
868
|
+
c.reject(p), vn();
|
|
869
869
|
}
|
|
870
870
|
var u = x;
|
|
871
871
|
if (s) {
|
|
@@ -875,7 +875,7 @@ function il(e, t, n) {
|
|
|
875
875
|
a.add(c), u.async_deriveds.set(l, c);
|
|
876
876
|
}
|
|
877
877
|
const f = (p, m = void 0) => {
|
|
878
|
-
h?.(), a.delete(c), m !== Kt && (u.activate(), m ? (o.f |=
|
|
878
|
+
h?.(), a.delete(c), m !== Kt && (u.activate(), m ? (o.f |= cn, yn(o, m)) : ((o.f & 8388608) !== 0 && (o.f ^= cn), yn(o, p)), u.deactivate());
|
|
879
879
|
};
|
|
880
880
|
c.promise.then(f, (p) => f(null, p || "unknown"));
|
|
881
881
|
}), vl(() => {
|
|
@@ -891,7 +891,7 @@ function il(e, t, n) {
|
|
|
891
891
|
});
|
|
892
892
|
}
|
|
893
893
|
// @__NO_SIDE_EFFECTS__
|
|
894
|
-
function
|
|
894
|
+
function ai(e) {
|
|
895
895
|
const t = /* @__PURE__ */ Lt(e);
|
|
896
896
|
return _e || Wo(t), t;
|
|
897
897
|
}
|
|
@@ -907,7 +907,7 @@ function ol(e) {
|
|
|
907
907
|
for (var n = 0; n < t.length; n += 1) Y(t[n]);
|
|
908
908
|
}
|
|
909
909
|
}
|
|
910
|
-
function
|
|
910
|
+
function Ir(e) {
|
|
911
911
|
var t, n = S, r = e.parent;
|
|
912
912
|
if (!ke && r !== null && e.v !== B && (r.f & 24576) !== 0)
|
|
913
913
|
return Pa(), e.v;
|
|
@@ -920,22 +920,22 @@ function Or(e) {
|
|
|
920
920
|
return t;
|
|
921
921
|
}
|
|
922
922
|
function _o(e) {
|
|
923
|
-
var t =
|
|
924
|
-
if (!e.equals(t) && (e.wv = Ho(), (!x?.is_fork || e.deps === null) && (x !== null ? (x.capture(e, t, !0),
|
|
923
|
+
var t = Ir(e);
|
|
924
|
+
if (!e.equals(t) && (e.wv = Ho(), (!x?.is_fork || e.deps === null) && (x !== null ? (x.capture(e, t, !0), Xn?.capture(e, t, !0)) : e.v = t, e.deps === null))) {
|
|
925
925
|
N(e, te);
|
|
926
926
|
return;
|
|
927
927
|
}
|
|
928
|
-
ke || (q !== null ? (
|
|
928
|
+
ke || (q !== null ? (Lr() || x?.is_fork) && q.set(e, t) : Er(e));
|
|
929
929
|
}
|
|
930
930
|
function sl(e) {
|
|
931
931
|
if (e.effects !== null)
|
|
932
|
-
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(
|
|
932
|
+
for (const t of e.effects) (t.teardown || t.ac) && (t.teardown?.(), t.ac?.abort(wn), t.fn !== null && (t.teardown = ga), t.ac = null, Pt(t, 0), Nr(t));
|
|
933
933
|
}
|
|
934
934
|
function So(e) {
|
|
935
935
|
if (e.effects !== null)
|
|
936
936
|
for (const t of e.effects) t.teardown && t.fn !== null && mt(t);
|
|
937
937
|
}
|
|
938
|
-
var
|
|
938
|
+
var mn = /* @__PURE__ */ new Set(), Ge = /* @__PURE__ */ new Map();
|
|
939
939
|
var wo = !1;
|
|
940
940
|
function Ht(e, t) {
|
|
941
941
|
var n = {
|
|
@@ -965,23 +965,23 @@ function al(e, t = !1, n = !0) {
|
|
|
965
965
|
function $(e, t, n = !1) {
|
|
966
966
|
M !== null && (!se || (M.f & 131072) !== 0) && zt() && (M.f & 4325394) !== 0 && (le === null || !le.has(e)) && Ra();
|
|
967
967
|
let r = n ? fe(t) : t;
|
|
968
|
-
return
|
|
968
|
+
return yn(e, r, hn);
|
|
969
969
|
}
|
|
970
|
-
function
|
|
970
|
+
function yn(e, t, n = null) {
|
|
971
971
|
if (!e.equals(t)) {
|
|
972
972
|
Ge.set(e, ke ? t : e.v);
|
|
973
973
|
var r = tt.ensure();
|
|
974
974
|
if (r.capture(e, t), (e.f & 2) !== 0) {
|
|
975
975
|
const i = e;
|
|
976
|
-
(e.f & 2048) !== 0 &&
|
|
976
|
+
(e.f & 2048) !== 0 && Ir(i), q === null && Er(i);
|
|
977
977
|
}
|
|
978
|
-
e.wv = Ho(), ko(e, re, n), zt() && S !== null && (S.f & 1024) !== 0 && (S.f & 96) === 0 && (Q === null ? wl([e]) : Q.push(e)), !r.is_fork &&
|
|
978
|
+
e.wv = Ho(), ko(e, re, n), zt() && S !== null && (S.f & 1024) !== 0 && (S.f & 96) === 0 && (Q === null ? wl([e]) : Q.push(e)), !r.is_fork && mn.size > 0 && !wo && ll();
|
|
979
979
|
}
|
|
980
980
|
return t;
|
|
981
981
|
}
|
|
982
982
|
function ll() {
|
|
983
983
|
wo = !1;
|
|
984
|
-
for (const e of
|
|
984
|
+
for (const e of mn) {
|
|
985
985
|
(e.f & 1024) !== 0 && N(e, et);
|
|
986
986
|
let t;
|
|
987
987
|
try {
|
|
@@ -991,7 +991,7 @@ function ll() {
|
|
|
991
991
|
}
|
|
992
992
|
t && mt(e);
|
|
993
993
|
}
|
|
994
|
-
|
|
994
|
+
mn.clear();
|
|
995
995
|
}
|
|
996
996
|
function $t(e) {
|
|
997
997
|
$(e, e.v + 1);
|
|
@@ -1003,13 +1003,13 @@ function ko(e, t, n) {
|
|
|
1003
1003
|
var a = r[s], l = a.f;
|
|
1004
1004
|
if (!(!i && a === S)) {
|
|
1005
1005
|
var c = (l & re) === 0;
|
|
1006
|
-
if (c && N(a, t), (l & 131072) !== 0)
|
|
1006
|
+
if (c && N(a, t), (l & 131072) !== 0) mn.add(a);
|
|
1007
1007
|
else if ((l & 2) !== 0) {
|
|
1008
1008
|
var u = a;
|
|
1009
1009
|
q?.delete(u), (l & 65536) === 0 && (l & 512 && (S === null || (S.f & 2097152) === 0) && (a.f |= Nt), ko(u, et, n));
|
|
1010
1010
|
} else if (c) {
|
|
1011
1011
|
var h = a;
|
|
1012
|
-
(l & 16) !== 0 && he !== null && he.add(h), n !== null ? n.push(h) :
|
|
1012
|
+
(l & 16) !== 0 && he !== null && he.add(h), n !== null ? n.push(h) : Ar(h);
|
|
1013
1013
|
}
|
|
1014
1014
|
}
|
|
1015
1015
|
}
|
|
@@ -1022,17 +1022,17 @@ function fe(e) {
|
|
|
1022
1022
|
var n = /* @__PURE__ */ new Map(), r = ca(e), i = /* @__PURE__ */ z(0), o = null, s = Ye, a = (h) => {
|
|
1023
1023
|
if (Ye === s) return h();
|
|
1024
1024
|
var f = M, p = Ye;
|
|
1025
|
-
ne(null),
|
|
1025
|
+
ne(null), fi(s);
|
|
1026
1026
|
var m = h();
|
|
1027
|
-
return ne(f),
|
|
1027
|
+
return ne(f), fi(p), m;
|
|
1028
1028
|
};
|
|
1029
1029
|
r && n.set("length", /* @__PURE__ */ z(e.length, o));
|
|
1030
1030
|
var l = "";
|
|
1031
1031
|
let c = !1;
|
|
1032
1032
|
function u(h) {
|
|
1033
1033
|
if (!c) {
|
|
1034
|
-
c = !0, l = h,
|
|
1035
|
-
for (const [f, p] of n)
|
|
1034
|
+
c = !0, l = h, ni(i, `${l} version`);
|
|
1035
|
+
for (const [f, p] of n) ni(p, ul(l, f));
|
|
1036
1036
|
c = !1;
|
|
1037
1037
|
}
|
|
1038
1038
|
}
|
|
@@ -1132,12 +1132,12 @@ function fe(e) {
|
|
|
1132
1132
|
function ul(e, t) {
|
|
1133
1133
|
return typeof t == "symbol" ? `${e}[Symbol(${t.description ?? ""})]` : cl.test(t) ? `${e}.${t}` : /^\d+$/.test(t) ? `${e}[${t}]` : `${e}['${t}']`;
|
|
1134
1134
|
}
|
|
1135
|
-
var
|
|
1136
|
-
function
|
|
1137
|
-
if (
|
|
1138
|
-
|
|
1135
|
+
var li, hl, xo, Eo, Mo;
|
|
1136
|
+
function ir() {
|
|
1137
|
+
if (li === void 0) {
|
|
1138
|
+
li = window, hl = document, xo = /Firefox/.test(navigator.userAgent);
|
|
1139
1139
|
var e = Element.prototype, t = Node.prototype, n = Text.prototype;
|
|
1140
|
-
Eo = je(t, "firstChild").get, Mo = je(t, "nextSibling").get,
|
|
1140
|
+
Eo = je(t, "firstChild").get, Mo = je(t, "nextSibling").get, Qr(e) && (e[Yn] = void 0, e[Gn] = null, e[Kn] = void 0, e.__e = void 0), Qr(n) && (n[Jt] = void 0);
|
|
1141
1141
|
}
|
|
1142
1142
|
}
|
|
1143
1143
|
function Se(e = "") {
|
|
@@ -1151,7 +1151,7 @@ function vt(e) {
|
|
|
1151
1151
|
function Me(e) {
|
|
1152
1152
|
return Mo.call(e);
|
|
1153
1153
|
}
|
|
1154
|
-
function
|
|
1154
|
+
function ci(e, t) {
|
|
1155
1155
|
if (!I) return /* @__PURE__ */ vt(e);
|
|
1156
1156
|
var n = /* @__PURE__ */ vt(O);
|
|
1157
1157
|
if (n === null) n = O.appendChild(Se());
|
|
@@ -1159,9 +1159,9 @@ function li(e, t) {
|
|
|
1159
1159
|
var r = Se();
|
|
1160
1160
|
return n?.before(r), ce(r), r;
|
|
1161
1161
|
}
|
|
1162
|
-
return t &&
|
|
1162
|
+
return t && Rr(n), ce(n), n;
|
|
1163
1163
|
}
|
|
1164
|
-
function
|
|
1164
|
+
function Pn(e, t = !1) {
|
|
1165
1165
|
if (!I) {
|
|
1166
1166
|
var n = /* @__PURE__ */ vt(e);
|
|
1167
1167
|
return n instanceof Comment && n.data === "" ? /* @__PURE__ */ Me(n) : n;
|
|
@@ -1171,7 +1171,7 @@ function Ln(e, t = !1) {
|
|
|
1171
1171
|
var r = Se();
|
|
1172
1172
|
return O?.before(r), ce(r), r;
|
|
1173
1173
|
}
|
|
1174
|
-
|
|
1174
|
+
Rr(O);
|
|
1175
1175
|
}
|
|
1176
1176
|
return O;
|
|
1177
1177
|
}
|
|
@@ -1185,7 +1185,7 @@ function St(e, t = 1, n = !1) {
|
|
|
1185
1185
|
var o = Se();
|
|
1186
1186
|
return r === null ? i?.after(o) : r.before(o), ce(o), o;
|
|
1187
1187
|
}
|
|
1188
|
-
|
|
1188
|
+
Rr(r);
|
|
1189
1189
|
}
|
|
1190
1190
|
return ce(r), r;
|
|
1191
1191
|
}
|
|
@@ -1193,12 +1193,12 @@ function dl(e) {
|
|
|
1193
1193
|
e.textContent = "";
|
|
1194
1194
|
}
|
|
1195
1195
|
function fl() {
|
|
1196
|
-
return !_e || he !== null ? !1 : (S.f &
|
|
1196
|
+
return !_e || he !== null ? !1 : (S.f & wr) !== 0;
|
|
1197
1197
|
}
|
|
1198
|
-
function
|
|
1198
|
+
function $r(e, t, n) {
|
|
1199
1199
|
return t == null || t === "http://www.w3.org/1999/xhtml" ? n ? document.createElement(e, { is: n }) : document.createElement(e) : n ? document.createElementNS(t, e, { is: n }) : document.createElementNS(t, e);
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1201
|
+
function Rr(e) {
|
|
1202
1202
|
if (e.nodeValue.length < 65536) return;
|
|
1203
1203
|
let t = e.nextSibling;
|
|
1204
1204
|
for (; t !== null && t.nodeType === 3; )
|
|
@@ -1222,7 +1222,7 @@ function gl(e, t) {
|
|
|
1222
1222
|
}
|
|
1223
1223
|
function ve(e, t) {
|
|
1224
1224
|
var n = S;
|
|
1225
|
-
n !== null && (n.f & 8192) !== 0 && (e |=
|
|
1225
|
+
n !== null && (n.f & 8192) !== 0 && (e |= Sr);
|
|
1226
1226
|
var r = {
|
|
1227
1227
|
ctx: L,
|
|
1228
1228
|
deps: null,
|
|
@@ -1248,7 +1248,7 @@ function ve(e, t) {
|
|
|
1248
1248
|
} catch (s) {
|
|
1249
1249
|
throw Y(r), s;
|
|
1250
1250
|
}
|
|
1251
|
-
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 |=
|
|
1251
|
+
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 |= kr));
|
|
1252
1252
|
}
|
|
1253
1253
|
if (i !== null && (i.parent = n, n !== null && gl(i, n), M !== null && (M.f & 2) !== 0 && (e & 64) === 0)) {
|
|
1254
1254
|
var o = M;
|
|
@@ -1256,7 +1256,7 @@ function ve(e, t) {
|
|
|
1256
1256
|
}
|
|
1257
1257
|
return r;
|
|
1258
1258
|
}
|
|
1259
|
-
function
|
|
1259
|
+
function Lr() {
|
|
1260
1260
|
return M !== null && !se;
|
|
1261
1261
|
}
|
|
1262
1262
|
function vl(e) {
|
|
@@ -1296,10 +1296,10 @@ function Oo(e) {
|
|
|
1296
1296
|
function bl(e) {
|
|
1297
1297
|
return ve(ba | bt, e);
|
|
1298
1298
|
}
|
|
1299
|
-
function
|
|
1299
|
+
function Pr(e, t = 0) {
|
|
1300
1300
|
return ve(8 | t, e);
|
|
1301
1301
|
}
|
|
1302
|
-
function
|
|
1302
|
+
function ui(e, t = [], n = [], r = []) {
|
|
1303
1303
|
nl(r, t, n, (i) => {
|
|
1304
1304
|
ve(8, () => e(...i.map(v)));
|
|
1305
1305
|
});
|
|
@@ -1315,20 +1315,20 @@ function $o(e) {
|
|
|
1315
1315
|
var t = e.teardown;
|
|
1316
1316
|
if (t !== null) {
|
|
1317
1317
|
const n = ke, r = M;
|
|
1318
|
-
|
|
1318
|
+
di(!0), ne(null);
|
|
1319
1319
|
try {
|
|
1320
1320
|
t.call(null);
|
|
1321
1321
|
} finally {
|
|
1322
|
-
|
|
1322
|
+
di(n), ne(r);
|
|
1323
1323
|
}
|
|
1324
1324
|
}
|
|
1325
1325
|
}
|
|
1326
|
-
function
|
|
1326
|
+
function Nr(e, t = !1) {
|
|
1327
1327
|
var n = e.first;
|
|
1328
1328
|
for (e.first = e.last = null; n !== null; ) {
|
|
1329
1329
|
const i = n.ac;
|
|
1330
1330
|
i !== null && Co(() => {
|
|
1331
|
-
i.abort(
|
|
1331
|
+
i.abort(wn);
|
|
1332
1332
|
});
|
|
1333
1333
|
var r = n.next;
|
|
1334
1334
|
(n.f & 64) !== 0 ? n.parent = null : Y(n, t), n = r;
|
|
@@ -1342,10 +1342,10 @@ function Tl(e) {
|
|
|
1342
1342
|
}
|
|
1343
1343
|
function Y(e, t = !0) {
|
|
1344
1344
|
var n = !1;
|
|
1345
|
-
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (_l(e.nodes.start, e.nodes.end), n = !0), N(e,
|
|
1345
|
+
(t || (e.f & 262144) !== 0) && e.nodes !== null && e.nodes.end !== null && (_l(e.nodes.start, e.nodes.end), n = !0), N(e, Zr), Nr(e, t && !n), Pt(e, 0);
|
|
1346
1346
|
var r = e.nodes && e.nodes.t;
|
|
1347
1347
|
if (r !== null) for (const o of r) o.stop();
|
|
1348
|
-
$o(e), e.f ^=
|
|
1348
|
+
$o(e), e.f ^= Zr, e.f |= ma;
|
|
1349
1349
|
var i = e.parent;
|
|
1350
1350
|
i !== null && i.first !== null && Ro(e), e.next = e.prev = e.teardown = e.ctx = e.deps = e.fn = e.nodes = e.ac = e.b = null;
|
|
1351
1351
|
}
|
|
@@ -1372,7 +1372,7 @@ function Bt(e, t, n = !0) {
|
|
|
1372
1372
|
}
|
|
1373
1373
|
function Lo(e, t, n) {
|
|
1374
1374
|
if ((e.f & 8192) === 0) {
|
|
1375
|
-
e.f ^=
|
|
1375
|
+
e.f ^= Sr;
|
|
1376
1376
|
var r = e.nodes && e.nodes.t;
|
|
1377
1377
|
if (r !== null)
|
|
1378
1378
|
for (const a of r) (a.is_global || n) && t.push(a);
|
|
@@ -1386,12 +1386,12 @@ function Lo(e, t, n) {
|
|
|
1386
1386
|
}
|
|
1387
1387
|
}
|
|
1388
1388
|
}
|
|
1389
|
-
function
|
|
1389
|
+
function hi(e) {
|
|
1390
1390
|
Po(e, !0);
|
|
1391
1391
|
}
|
|
1392
1392
|
function Po(e, t) {
|
|
1393
1393
|
if ((e.f & 8192) !== 0) {
|
|
1394
|
-
e.f ^=
|
|
1394
|
+
e.f ^= Sr, (e.f & 1024) === 0 && (N(e, re), tt.ensure().schedule(e));
|
|
1395
1395
|
for (var n = e.first; n !== null; ) {
|
|
1396
1396
|
var r = n.next, i = (n.f & 65536) !== 0 || (n.f & 32) !== 0;
|
|
1397
1397
|
Po(n, i ? t : !1), n = r;
|
|
@@ -1409,7 +1409,7 @@ function No(e, t) {
|
|
|
1409
1409
|
}
|
|
1410
1410
|
}
|
|
1411
1411
|
var Sl = null, Zt = !1, ke = !1;
|
|
1412
|
-
function
|
|
1412
|
+
function di(e) {
|
|
1413
1413
|
ke = e;
|
|
1414
1414
|
}
|
|
1415
1415
|
var M = null, se = !1;
|
|
@@ -1429,7 +1429,7 @@ function wl(e) {
|
|
|
1429
1429
|
Q = e;
|
|
1430
1430
|
}
|
|
1431
1431
|
var zo = 1, De = 0, Ye = De;
|
|
1432
|
-
function
|
|
1432
|
+
function fi(e) {
|
|
1433
1433
|
Ye = e;
|
|
1434
1434
|
}
|
|
1435
1435
|
function Ho() {
|
|
@@ -1452,25 +1452,25 @@ function Bo(e, t, n = !0) {
|
|
|
1452
1452
|
if (r !== null && !(!_e && le !== null && le.has(e)))
|
|
1453
1453
|
for (var i = 0; i < r.length; i++) {
|
|
1454
1454
|
var o = r[i];
|
|
1455
|
-
(o.f & 2) !== 0 ? Bo(o, t, !1) : t === o && (n ? N(o, re) : (o.f & 1024) !== 0 && N(o, et),
|
|
1455
|
+
(o.f & 2) !== 0 ? Bo(o, t, !1) : t === o && (n ? N(o, re) : (o.f & 1024) !== 0 && N(o, et), Ar(o));
|
|
1456
1456
|
}
|
|
1457
1457
|
}
|
|
1458
1458
|
function Do(e) {
|
|
1459
1459
|
var t = G, n = K, r = Q, i = M, o = le, s = L, a = se, l = Ye, c = e.f;
|
|
1460
1460
|
G = null, K = 0, Q = null, M = (c & 96) === 0 ? e : null, le = null, ft(e.ctx), se = !1, Ye = ++De, e.ac !== null && (Co(() => {
|
|
1461
|
-
e.ac.abort(
|
|
1461
|
+
e.ac.abort(wn);
|
|
1462
1462
|
}), e.ac = null);
|
|
1463
1463
|
try {
|
|
1464
|
-
e.f |=
|
|
1464
|
+
e.f |= ei;
|
|
1465
1465
|
var u = e.fn, h = u();
|
|
1466
|
-
e.f |=
|
|
1466
|
+
e.f |= wr;
|
|
1467
1467
|
var f = e.deps, p = x?.is_fork;
|
|
1468
1468
|
if (G !== null) {
|
|
1469
1469
|
var m;
|
|
1470
1470
|
if (p || Pt(e, K), f !== null && K > 0)
|
|
1471
1471
|
for (f.length = K + G.length, m = 0; m < G.length; m++) f[K + m] = G[m];
|
|
1472
1472
|
else e.deps = f = G;
|
|
1473
|
-
if (
|
|
1473
|
+
if (Lr() && (e.f & 512) !== 0) for (m = K; m < f.length; m++) {
|
|
1474
1474
|
var y;
|
|
1475
1475
|
((y = f[m]).reactions ?? (y.reactions = [])).push(e);
|
|
1476
1476
|
}
|
|
@@ -1481,11 +1481,11 @@ function Do(e) {
|
|
|
1481
1481
|
if (t !== null) for (const b of t) b.rv = De;
|
|
1482
1482
|
Q !== null && (r === null ? r = Q : r.push(...Q));
|
|
1483
1483
|
}
|
|
1484
|
-
return (e.f & 8388608) !== 0 && (e.f ^=
|
|
1484
|
+
return (e.f & 8388608) !== 0 && (e.f ^= cn), h;
|
|
1485
1485
|
} catch (b) {
|
|
1486
1486
|
return oo(b);
|
|
1487
1487
|
} finally {
|
|
1488
|
-
e.f ^=
|
|
1488
|
+
e.f ^= ei, G = t, K = n, Q = r, M = i, le = o, ft(s), se = a, Ye = l;
|
|
1489
1489
|
}
|
|
1490
1490
|
}
|
|
1491
1491
|
function kl(e, t) {
|
|
@@ -1497,9 +1497,9 @@ function kl(e, t) {
|
|
|
1497
1497
|
i === 0 ? n = t.reactions = null : (n[r] = n[i], n.pop());
|
|
1498
1498
|
}
|
|
1499
1499
|
}
|
|
1500
|
-
if (n === null && (t.f & 2) !== 0 && (G === null || !
|
|
1500
|
+
if (n === null && (t.f & 2) !== 0 && (G === null || !sn.call(G, t))) {
|
|
1501
1501
|
var o = t;
|
|
1502
|
-
(o.f & 512) !== 0 && (o.f ^= 512, o.f &= ~Nt), o.v !== B &&
|
|
1502
|
+
(o.f & 512) !== 0 && (o.f ^= 512, o.f &= ~Nt), o.v !== B && Er(o), sl(o), Pt(o, 0);
|
|
1503
1503
|
}
|
|
1504
1504
|
}
|
|
1505
1505
|
function Pt(e, t) {
|
|
@@ -1515,7 +1515,7 @@ function mt(e) {
|
|
|
1515
1515
|
if (S = e, Zt = !0, 0)
|
|
1516
1516
|
var i, o;
|
|
1517
1517
|
try {
|
|
1518
|
-
(t & 16777232) !== 0 ? Tl(e) :
|
|
1518
|
+
(t & 16777232) !== 0 ? Tl(e) : Nr(e), $o(e);
|
|
1519
1519
|
var s = Do(e);
|
|
1520
1520
|
if (e.teardown = typeof s == "function" ? s : null, e.wv = zo, 0)
|
|
1521
1521
|
for (var a of e.deps) ;
|
|
@@ -1532,9 +1532,9 @@ function v(e) {
|
|
|
1532
1532
|
e.rv < De && (e.rv = De, G === null && n !== null && n[K] === e ? K++ : G === null ? G = [e] : G.push(e));
|
|
1533
1533
|
else {
|
|
1534
1534
|
var r;
|
|
1535
|
-
(r = M).deps ?? (r.deps = []),
|
|
1535
|
+
(r = M).deps ?? (r.deps = []), sn.call(M.deps, e) || M.deps.push(e);
|
|
1536
1536
|
var i = e.reactions;
|
|
1537
|
-
i === null ? e.reactions = [M] :
|
|
1537
|
+
i === null ? e.reactions = [M] : sn.call(i, M) || i.push(M);
|
|
1538
1538
|
}
|
|
1539
1539
|
}
|
|
1540
1540
|
if (0) {
|
|
@@ -1550,9 +1550,9 @@ function v(e) {
|
|
|
1550
1550
|
var l = e;
|
|
1551
1551
|
if (ke) {
|
|
1552
1552
|
var c = l.v;
|
|
1553
|
-
return ((l.f & 1024) === 0 && l.reactions !== null || jo(l)) && (c =
|
|
1553
|
+
return ((l.f & 1024) === 0 && l.reactions !== null || jo(l)) && (c = Ir(l)), Ge.set(l, c), c;
|
|
1554
1554
|
}
|
|
1555
|
-
var u = (l.f & 512) === 0 && !se && M !== null && (Zt || (M.f & 512) !== 0), h = (l.f &
|
|
1555
|
+
var u = (l.f & 512) === 0 && !se && M !== null && (Zt || (M.f & 512) !== 0), h = (l.f & wr) === 0;
|
|
1556
1556
|
Dt(l) && (u && (l.f |= 512), _o(l)), u && !h && (So(l), Fo(l));
|
|
1557
1557
|
}
|
|
1558
1558
|
if (q?.has(e)) return q.get(e);
|
|
@@ -1571,7 +1571,7 @@ function jo(e) {
|
|
|
1571
1571
|
if (Ge.has(t) || (t.f & 2) !== 0 && jo(t)) return !0;
|
|
1572
1572
|
return !1;
|
|
1573
1573
|
}
|
|
1574
|
-
function
|
|
1574
|
+
function xn(e) {
|
|
1575
1575
|
var t = se;
|
|
1576
1576
|
try {
|
|
1577
1577
|
return se = !0, e();
|
|
@@ -1579,19 +1579,19 @@ function kn(e) {
|
|
|
1579
1579
|
se = t;
|
|
1580
1580
|
}
|
|
1581
1581
|
}
|
|
1582
|
-
var ct = /* @__PURE__ */ Symbol("events"), Vo = /* @__PURE__ */ new Set(),
|
|
1583
|
-
function
|
|
1582
|
+
var ct = /* @__PURE__ */ Symbol("events"), Vo = /* @__PURE__ */ new Set(), or = /* @__PURE__ */ new Set();
|
|
1583
|
+
function pi(e, t, n) {
|
|
1584
1584
|
(t[ct] ?? (t[ct] = {}))[e] = n;
|
|
1585
1585
|
}
|
|
1586
1586
|
function xl(e) {
|
|
1587
1587
|
for (var t = 0; t < e.length; t++) Vo.add(e[t]);
|
|
1588
|
-
for (var n of
|
|
1588
|
+
for (var n of or) n(e);
|
|
1589
1589
|
}
|
|
1590
|
-
var
|
|
1591
|
-
function
|
|
1590
|
+
var gi = null;
|
|
1591
|
+
function vi(e) {
|
|
1592
1592
|
var t = this, n = t.ownerDocument, r = e.type, i = e.composedPath?.() || [], o = i[0] || e.target;
|
|
1593
|
-
|
|
1594
|
-
var s = 0, a =
|
|
1593
|
+
gi = e;
|
|
1594
|
+
var s = 0, a = gi === e && e[ct];
|
|
1595
1595
|
if (a) {
|
|
1596
1596
|
var l = i.indexOf(a);
|
|
1597
1597
|
if (l !== -1 && (t === document || t === window)) {
|
|
@@ -1603,7 +1603,7 @@ function gi(e) {
|
|
|
1603
1603
|
l <= c && (s = l);
|
|
1604
1604
|
}
|
|
1605
1605
|
if (o = i[s] || e.target, o !== t) {
|
|
1606
|
-
|
|
1606
|
+
ln(e, "currentTarget", {
|
|
1607
1607
|
configurable: !0,
|
|
1608
1608
|
get() {
|
|
1609
1609
|
return o || n;
|
|
@@ -1638,7 +1638,7 @@ function Ml(e) {
|
|
|
1638
1638
|
return El?.createHTML(e) ?? e;
|
|
1639
1639
|
}
|
|
1640
1640
|
function Cl(e) {
|
|
1641
|
-
var t =
|
|
1641
|
+
var t = $r("template");
|
|
1642
1642
|
return t.innerHTML = Ml(e.replaceAll("<!>", "<!---->")), t.content;
|
|
1643
1643
|
}
|
|
1644
1644
|
function ut(e, t) {
|
|
@@ -1674,7 +1674,7 @@ function Al() {
|
|
|
1674
1674
|
function en(e, t) {
|
|
1675
1675
|
if (I) {
|
|
1676
1676
|
var n = S;
|
|
1677
|
-
((n.f & 32768) === 0 || n.nodes.end === null) && (n.nodes.end = O),
|
|
1677
|
+
((n.f & 32768) === 0 || n.nodes.end === null) && (n.nodes.end = O), xr();
|
|
1678
1678
|
return;
|
|
1679
1679
|
}
|
|
1680
1680
|
e !== null && e.before(t);
|
|
@@ -1708,7 +1708,7 @@ var Ol = [
|
|
|
1708
1708
|
"defer",
|
|
1709
1709
|
"disablepictureinpicture",
|
|
1710
1710
|
"disableremoteplayback"
|
|
1711
|
-
],
|
|
1711
|
+
], bd = [
|
|
1712
1712
|
...Ol,
|
|
1713
1713
|
"formNoValidate",
|
|
1714
1714
|
"isMap",
|
|
@@ -1733,7 +1733,7 @@ var Rl = [
|
|
|
1733
1733
|
"$state.raw",
|
|
1734
1734
|
"$derived",
|
|
1735
1735
|
"$derived.by"
|
|
1736
|
-
],
|
|
1736
|
+
], Td = [
|
|
1737
1737
|
...Rl,
|
|
1738
1738
|
"$state.eager",
|
|
1739
1739
|
"$state.snapshot",
|
|
@@ -1749,7 +1749,7 @@ var Rl = [
|
|
|
1749
1749
|
"$inspect().with",
|
|
1750
1750
|
"$inspect.trace",
|
|
1751
1751
|
"$host"
|
|
1752
|
-
],
|
|
1752
|
+
], mi = !0;
|
|
1753
1753
|
function Ll(e, t) {
|
|
1754
1754
|
var n, r = t == null ? "" : typeof t == "object" ? `${t}` : t;
|
|
1755
1755
|
r !== ((n = e)[Jt] ?? (n[Jt] = e.nodeValue)) && (e[Jt] = r, e.nodeValue = `${r}`);
|
|
@@ -1758,7 +1758,7 @@ function Uo(e, t) {
|
|
|
1758
1758
|
return Go(e, t);
|
|
1759
1759
|
}
|
|
1760
1760
|
function Pl(e, t) {
|
|
1761
|
-
|
|
1761
|
+
ir(), t.intro = t.intro ?? !1;
|
|
1762
1762
|
const n = t.target, r = I, i = O;
|
|
1763
1763
|
try {
|
|
1764
1764
|
for (var o = /* @__PURE__ */ vt(n); o && (o.nodeType !== 8 || o.data !== "["); ) o = /* @__PURE__ */ Me(o);
|
|
@@ -1772,22 +1772,22 @@ function Pl(e, t) {
|
|
|
1772
1772
|
} catch (s) {
|
|
1773
1773
|
if (s instanceof Error && s.message.split(`
|
|
1774
1774
|
`).some((a) => a.startsWith("https://svelte.dev/e/"))) throw s;
|
|
1775
|
-
return s !== dt && console.warn("Failed to hydrate: ", s), t.recover === !1 && Aa(),
|
|
1775
|
+
return s !== dt && console.warn("Failed to hydrate: ", s), t.recover === !1 && Aa(), ir(), dl(n), lt(!1), Uo(e, t);
|
|
1776
1776
|
} finally {
|
|
1777
1777
|
lt(r), ce(i);
|
|
1778
1778
|
}
|
|
1779
1779
|
}
|
|
1780
1780
|
var Xt = /* @__PURE__ */ new Map();
|
|
1781
1781
|
function Go(e, { target: t, anchor: n, props: r = {}, events: i, context: o, intro: s = !0, transformError: a }) {
|
|
1782
|
-
|
|
1782
|
+
ir();
|
|
1783
1783
|
var l = void 0, c = yl(() => {
|
|
1784
1784
|
var u = n ?? t.appendChild(Se());
|
|
1785
1785
|
Ja(u, { pending: () => {
|
|
1786
1786
|
} }, (p) => {
|
|
1787
1787
|
no({});
|
|
1788
1788
|
var m = L;
|
|
1789
|
-
if (o && (m.c = o), i && (r.$$events = i), I && ut(p, null),
|
|
1790
|
-
throw
|
|
1789
|
+
if (o && (m.c = o), i && (r.$$events = i), I && ut(p, null), mi = s, l = e(p, r) || {}, mi = !0, I && (S.nodes.end = O, O === null || O.nodeType !== 8 || O.data !== "]"))
|
|
1790
|
+
throw kn(), dt;
|
|
1791
1791
|
ro();
|
|
1792
1792
|
}, a);
|
|
1793
1793
|
var h = /* @__PURE__ */ new Set(), f = (p) => {
|
|
@@ -1800,36 +1800,36 @@ function Go(e, { target: t, anchor: n, props: r = {}, events: i, context: o, int
|
|
|
1800
1800
|
var E = Xt.get(F);
|
|
1801
1801
|
E === void 0 && (E = /* @__PURE__ */ new Map(), Xt.set(F, E));
|
|
1802
1802
|
var R = E.get(y);
|
|
1803
|
-
R === void 0 ? (F.addEventListener(y,
|
|
1803
|
+
R === void 0 ? (F.addEventListener(y, vi, { passive: b }), E.set(y, 1)) : E.set(y, R + 1);
|
|
1804
1804
|
}
|
|
1805
1805
|
}
|
|
1806
1806
|
}
|
|
1807
1807
|
};
|
|
1808
|
-
return f(ha(Vo)),
|
|
1808
|
+
return f(ha(Vo)), or.add(f), () => {
|
|
1809
1809
|
for (var p of h) for (const b of [t, document]) {
|
|
1810
1810
|
var m = Xt.get(b), y = m.get(p);
|
|
1811
|
-
--y == 0 ? (b.removeEventListener(p,
|
|
1811
|
+
--y == 0 ? (b.removeEventListener(p, vi), m.delete(p), m.size === 0 && Xt.delete(b)) : m.set(p, y);
|
|
1812
1812
|
}
|
|
1813
|
-
|
|
1813
|
+
or.delete(f), u !== n && u.parentNode?.removeChild(u);
|
|
1814
1814
|
};
|
|
1815
1815
|
});
|
|
1816
|
-
return
|
|
1816
|
+
return sr.set(l, c), l;
|
|
1817
1817
|
}
|
|
1818
|
-
var
|
|
1818
|
+
var sr = /* @__PURE__ */ new WeakMap();
|
|
1819
1819
|
function Nl(e, t) {
|
|
1820
|
-
const n =
|
|
1821
|
-
return n ? (
|
|
1820
|
+
const n = sr.get(e);
|
|
1821
|
+
return n ? (sr.delete(e), n(t)) : Promise.resolve();
|
|
1822
1822
|
}
|
|
1823
|
-
var be = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(),
|
|
1823
|
+
var be = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), ie = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), Nn = /* @__PURE__ */ new WeakMap(), Wn = /* @__PURE__ */ new WeakMap(), yi = /* @__PURE__ */ new WeakMap(), Wl = class {
|
|
1824
1824
|
constructor(e, t = !0) {
|
|
1825
|
-
g(this, "anchor", void 0), _(this, be, /* @__PURE__ */ new Map()), _(this, Ie, /* @__PURE__ */ new Map()), _(this, ie, /* @__PURE__ */ new Map()), _(this, wt, /* @__PURE__ */ new Set()), _(this,
|
|
1825
|
+
g(this, "anchor", void 0), _(this, be, /* @__PURE__ */ new Map()), _(this, Ie, /* @__PURE__ */ new Map()), _(this, ie, /* @__PURE__ */ new Map()), _(this, wt, /* @__PURE__ */ new Set()), _(this, Nn, !0), _(this, Wn, (n) => {
|
|
1826
1826
|
if (d(be, this).has(n)) {
|
|
1827
1827
|
var r = d(be, this).get(n), i = d(Ie, this).get(r);
|
|
1828
1828
|
if (i)
|
|
1829
|
-
|
|
1829
|
+
hi(i), d(wt, this).delete(r);
|
|
1830
1830
|
else {
|
|
1831
1831
|
var o = d(ie, this).get(r);
|
|
1832
|
-
o && (
|
|
1832
|
+
o && (hi(o.effect), d(Ie, this).set(r, o.effect), d(ie, this).delete(r), o.fragment.lastChild.remove(), this.anchor.before(o.fragment), i = o.effect);
|
|
1833
1833
|
}
|
|
1834
1834
|
for (const [s, a] of d(be, this)) {
|
|
1835
1835
|
if (d(be, this).delete(s), s === n) break;
|
|
@@ -1848,14 +1848,14 @@ var be = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), ie =
|
|
|
1848
1848
|
} else Y(a);
|
|
1849
1849
|
d(wt, this).delete(s), d(Ie, this).delete(s);
|
|
1850
1850
|
};
|
|
1851
|
-
d(
|
|
1851
|
+
d(Nn, this) || !i ? (d(wt, this).add(s), Bt(a, l, !1)) : l();
|
|
1852
1852
|
}
|
|
1853
1853
|
}
|
|
1854
|
-
}), _(this,
|
|
1854
|
+
}), _(this, yi, (n) => {
|
|
1855
1855
|
d(be, this).delete(n);
|
|
1856
1856
|
const r = Array.from(d(be, this).values());
|
|
1857
1857
|
for (const [i, o] of d(ie, this)) r.includes(i) || (Y(o.effect), d(ie, this).delete(i));
|
|
1858
|
-
}), this.anchor = e, T(
|
|
1858
|
+
}), this.anchor = e, T(Nn, this, t);
|
|
1859
1859
|
}
|
|
1860
1860
|
ensure(e, t) {
|
|
1861
1861
|
var n = x, r = fl();
|
|
@@ -1869,14 +1869,14 @@ var be = /* @__PURE__ */ new WeakMap(), Ie = /* @__PURE__ */ new WeakMap(), ie =
|
|
|
1869
1869
|
if (d(be, this).set(n, e), r) {
|
|
1870
1870
|
for (const [s, a] of d(Ie, this)) s === e ? n.unskip_effect(a) : n.skip_effect(a);
|
|
1871
1871
|
for (const [s, a] of d(ie, this)) s === e ? n.unskip_effect(a.effect) : n.skip_effect(a.effect);
|
|
1872
|
-
n.oncommit(d(
|
|
1872
|
+
n.oncommit(d(Wn, this)), n.ondiscard(d(yi, this));
|
|
1873
1873
|
} else
|
|
1874
|
-
I && (this.anchor = O), d(
|
|
1874
|
+
I && (this.anchor = O), d(Wn, this).call(this, n);
|
|
1875
1875
|
}
|
|
1876
1876
|
};
|
|
1877
1877
|
function zl(e) {
|
|
1878
1878
|
L === null && wa("onMount"), Wt && L.l !== null ? Hl(L).m.push(e) : Ct(() => {
|
|
1879
|
-
const t =
|
|
1879
|
+
const t = xn(e);
|
|
1880
1880
|
if (typeof t == "function") return t;
|
|
1881
1881
|
});
|
|
1882
1882
|
}
|
|
@@ -1888,10 +1888,10 @@ function Hl(e) {
|
|
|
1888
1888
|
m: []
|
|
1889
1889
|
});
|
|
1890
1890
|
}
|
|
1891
|
-
function
|
|
1891
|
+
function bi(e, t, n = !1) {
|
|
1892
1892
|
var r;
|
|
1893
|
-
I && (r = O,
|
|
1894
|
-
var i = new Wl(e), o = n ?
|
|
1893
|
+
I && (r = O, xr());
|
|
1894
|
+
var i = new Wl(e), o = n ? kr : 0;
|
|
1895
1895
|
function s(a, l) {
|
|
1896
1896
|
if (I) {
|
|
1897
1897
|
var c = Wa(r);
|
|
@@ -1914,12 +1914,12 @@ function Bl(e, t) {
|
|
|
1914
1914
|
Oo(() => {
|
|
1915
1915
|
var n = e.getRootNode(), r = n.host ? n : n.head ?? n.ownerDocument.head;
|
|
1916
1916
|
if (!r.querySelector("#" + t.hash)) {
|
|
1917
|
-
const i =
|
|
1917
|
+
const i = $r("style");
|
|
1918
1918
|
i.id = t.hash, i.textContent = t.code, r.appendChild(i);
|
|
1919
1919
|
}
|
|
1920
1920
|
});
|
|
1921
1921
|
}
|
|
1922
|
-
var
|
|
1922
|
+
var Ti = [...`
|
|
1923
1923
|
\r\f \v\uFEFF`];
|
|
1924
1924
|
function Dl(e, t, n) {
|
|
1925
1925
|
var r = e == null ? "" : "" + e;
|
|
@@ -1928,12 +1928,12 @@ function Dl(e, t, n) {
|
|
|
1928
1928
|
else if (r.length)
|
|
1929
1929
|
for (var o = i.length, s = 0; (s = r.indexOf(i, s)) >= 0; ) {
|
|
1930
1930
|
var a = s + o;
|
|
1931
|
-
(s === 0 ||
|
|
1931
|
+
(s === 0 || Ti.includes(r[s - 1])) && (a === r.length || Ti.includes(r[a])) ? r = (s === 0 ? "" : r.substring(0, s)) + r.substring(a + 1) : s = a;
|
|
1932
1932
|
}
|
|
1933
1933
|
}
|
|
1934
1934
|
return r === "" ? null : r;
|
|
1935
1935
|
}
|
|
1936
|
-
function
|
|
1936
|
+
function _i(e, t = !1) {
|
|
1937
1937
|
var n = t ? " !important;" : ";", r = "";
|
|
1938
1938
|
for (var i of Object.keys(e)) {
|
|
1939
1939
|
var o = e[i];
|
|
@@ -1941,7 +1941,7 @@ function Ti(e, t = !1) {
|
|
|
1941
1941
|
}
|
|
1942
1942
|
return r;
|
|
1943
1943
|
}
|
|
1944
|
-
function
|
|
1944
|
+
function zn(e) {
|
|
1945
1945
|
return e[0] !== "-" || e[1] !== "-" ? e.toLowerCase() : e;
|
|
1946
1946
|
}
|
|
1947
1947
|
function Fl(e, t) {
|
|
@@ -1950,7 +1950,7 @@ function Fl(e, t) {
|
|
|
1950
1950
|
if (Array.isArray(t) ? (r = t[0], i = t[1]) : r = t, e) {
|
|
1951
1951
|
e = String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g, "").trim();
|
|
1952
1952
|
var o = !1, s = 0, a = !1, l = [];
|
|
1953
|
-
r && l.push(...Object.keys(r).map(
|
|
1953
|
+
r && l.push(...Object.keys(r).map(zn)), i && l.push(...Object.keys(i).map(zn));
|
|
1954
1954
|
var c = 0, u = -1;
|
|
1955
1955
|
const y = e.length;
|
|
1956
1956
|
for (var h = 0; h < y; h++) {
|
|
@@ -1959,7 +1959,7 @@ function Fl(e, t) {
|
|
|
1959
1959
|
if (f === ":" && u === -1) u = h;
|
|
1960
1960
|
else if (f === ";" || h === y - 1) {
|
|
1961
1961
|
if (u !== -1) {
|
|
1962
|
-
var p =
|
|
1962
|
+
var p = zn(e.substring(c, u).trim());
|
|
1963
1963
|
if (!l.includes(p)) {
|
|
1964
1964
|
f !== ";" && h++;
|
|
1965
1965
|
var m = e.substring(c, h).trim();
|
|
@@ -1971,33 +1971,33 @@ function Fl(e, t) {
|
|
|
1971
1971
|
}
|
|
1972
1972
|
}
|
|
1973
1973
|
}
|
|
1974
|
-
return r && (n +=
|
|
1974
|
+
return r && (n += _i(r)), i && (n += _i(i, !0)), n = n.trim(), n === "" ? null : n;
|
|
1975
1975
|
}
|
|
1976
1976
|
return e == null ? null : String(e);
|
|
1977
1977
|
}
|
|
1978
1978
|
function jl(e, t, n, r, i, o) {
|
|
1979
|
-
var s = e[
|
|
1979
|
+
var s = e[Yn];
|
|
1980
1980
|
if (I || s !== n || s === void 0) {
|
|
1981
1981
|
var a = Dl(n, r, o);
|
|
1982
|
-
(!I || a !== e.getAttribute("class")) && (a == null ? e.removeAttribute("class") : t ? e.className = a : e.setAttribute("class", a)), e[
|
|
1982
|
+
(!I || a !== e.getAttribute("class")) && (a == null ? e.removeAttribute("class") : t ? e.className = a : e.setAttribute("class", a)), e[Yn] = n;
|
|
1983
1983
|
} else if (o && i !== o) for (var l in o) {
|
|
1984
1984
|
var c = !!o[l];
|
|
1985
1985
|
(i == null || c !== !!i[l]) && e.classList.toggle(l, c);
|
|
1986
1986
|
}
|
|
1987
1987
|
return o;
|
|
1988
1988
|
}
|
|
1989
|
-
function
|
|
1989
|
+
function Hn(e, t = {}, n, r) {
|
|
1990
1990
|
for (var i in n) {
|
|
1991
1991
|
var o = n[i];
|
|
1992
1992
|
t[i] !== o && (n[i] == null ? e.style.removeProperty(i) : e.style.setProperty(i, o, r));
|
|
1993
1993
|
}
|
|
1994
1994
|
}
|
|
1995
1995
|
function nt(e, t, n, r) {
|
|
1996
|
-
var i = e[
|
|
1996
|
+
var i = e[Kn];
|
|
1997
1997
|
if (I || i !== t) {
|
|
1998
1998
|
var o = Fl(t, r);
|
|
1999
|
-
(!I || o !== e.getAttribute("style")) && (o == null ? e.removeAttribute("style") : e.style.cssText = o), e[
|
|
2000
|
-
} else r && (Array.isArray(r) ? (
|
|
1999
|
+
(!I || o !== e.getAttribute("style")) && (o == null ? e.removeAttribute("style") : e.style.cssText = o), e[Kn] = t;
|
|
2000
|
+
} else r && (Array.isArray(r) ? (Hn(e, n?.[0], r[0]), Hn(e, n?.[1], r[1], "important")) : Hn(e, n, r));
|
|
2001
2001
|
return r;
|
|
2002
2002
|
}
|
|
2003
2003
|
var Vl = /* @__PURE__ */ Symbol("is custom element"), ql = /* @__PURE__ */ Symbol("is html"), Ul = Sa ? "link" : "LINK";
|
|
@@ -2011,16 +2011,16 @@ function Gl(e, t, n, r) {
|
|
|
2011
2011
|
}
|
|
2012
2012
|
function Yl(e) {
|
|
2013
2013
|
var t;
|
|
2014
|
-
return (t = e)[
|
|
2014
|
+
return (t = e)[Gn] ?? (t[Gn] = {
|
|
2015
2015
|
[Vl]: e.nodeName.includes("-"),
|
|
2016
2016
|
[ql]: e.namespaceURI === "http://www.w3.org/1999/xhtml"
|
|
2017
2017
|
});
|
|
2018
2018
|
}
|
|
2019
|
-
var
|
|
2019
|
+
var Si = /* @__PURE__ */ new Map();
|
|
2020
2020
|
function Kl(e) {
|
|
2021
|
-
var t = e.getAttribute("is") || e.nodeName, n =
|
|
2021
|
+
var t = e.getAttribute("is") || e.nodeName, n = Si.get(t);
|
|
2022
2022
|
if (n) return n;
|
|
2023
|
-
|
|
2023
|
+
Si.set(t, n = []);
|
|
2024
2024
|
for (var r, i = e, o = Element.prototype; o !== i; ) {
|
|
2025
2025
|
r = da(i);
|
|
2026
2026
|
for (var s in r) r[s].set && s !== "innerHTML" && s !== "textContent" && s !== "innerText" && n.push(s);
|
|
@@ -2028,21 +2028,21 @@ function Kl(e) {
|
|
|
2028
2028
|
}
|
|
2029
2029
|
return n;
|
|
2030
2030
|
}
|
|
2031
|
-
var Yo, at = /* @__PURE__ */ new WeakMap(),
|
|
2031
|
+
var Yo, at = /* @__PURE__ */ new WeakMap(), bn = /* @__PURE__ */ new WeakMap(), Bn = /* @__PURE__ */ new WeakMap(), wi = /* @__PURE__ */ new WeakSet(), Ko = class {
|
|
2032
2032
|
constructor(e) {
|
|
2033
|
-
|
|
2033
|
+
Mr(this, wi), _(this, at, /* @__PURE__ */ new WeakMap()), _(this, bn, void 0), _(this, Bn, void 0), T(Bn, this, e);
|
|
2034
2034
|
}
|
|
2035
2035
|
observe(e, t) {
|
|
2036
2036
|
var n = d(at, this).get(e) || /* @__PURE__ */ new Set();
|
|
2037
|
-
return n.add(t), d(at, this).set(e, n), k(
|
|
2037
|
+
return n.add(t), d(at, this).set(e, n), k(wi, this, Xl).call(this).observe(e, d(Bn, this)), () => {
|
|
2038
2038
|
var r = d(at, this).get(e);
|
|
2039
|
-
r.delete(t), r.size === 0 && (d(at, this).delete(e), d(
|
|
2039
|
+
r.delete(t), r.size === 0 && (d(at, this).delete(e), d(bn, this).unobserve(e));
|
|
2040
2040
|
};
|
|
2041
2041
|
}
|
|
2042
2042
|
};
|
|
2043
2043
|
Yo = Ko;
|
|
2044
2044
|
function Xl() {
|
|
2045
|
-
return d(
|
|
2045
|
+
return d(bn, this) ?? T(bn, this, new ResizeObserver((e) => {
|
|
2046
2046
|
for (var t of e) {
|
|
2047
2047
|
Yo.entries.set(t.target, t);
|
|
2048
2048
|
for (var n of d(at, this).get(t.target) || []) n(t);
|
|
@@ -2050,22 +2050,22 @@ function Xl() {
|
|
|
2050
2050
|
}));
|
|
2051
2051
|
}
|
|
2052
2052
|
g(Ko, "entries", /* @__PURE__ */ new WeakMap());
|
|
2053
|
-
function
|
|
2053
|
+
function Dn(e, t) {
|
|
2054
2054
|
return e === t || e?.[Ot] === t;
|
|
2055
2055
|
}
|
|
2056
2056
|
function Jl(e = {}, t, n, r) {
|
|
2057
2057
|
var i = L.r, o = S;
|
|
2058
2058
|
return Oo(() => {
|
|
2059
2059
|
var s, a;
|
|
2060
|
-
return
|
|
2061
|
-
s = a, a = r?.() || [],
|
|
2062
|
-
|
|
2060
|
+
return Pr(() => {
|
|
2061
|
+
s = a, a = r?.() || [], xn(() => {
|
|
2062
|
+
Dn(n(...a), e) || (t(e, ...a), s && Dn(n(...s), e) && t(null, ...s));
|
|
2063
2063
|
});
|
|
2064
2064
|
}), () => {
|
|
2065
2065
|
let l = o;
|
|
2066
2066
|
for (; l !== i && l.parent !== null && l.parent.f & 33554432; ) l = l.parent;
|
|
2067
2067
|
const c = () => {
|
|
2068
|
-
a &&
|
|
2068
|
+
a && Dn(n(...a), e) && t(null, ...a);
|
|
2069
2069
|
}, u = l.teardown;
|
|
2070
2070
|
l.teardown = () => {
|
|
2071
2071
|
c(), u?.();
|
|
@@ -2073,8 +2073,8 @@ function Jl(e = {}, t, n, r) {
|
|
|
2073
2073
|
};
|
|
2074
2074
|
}), e;
|
|
2075
2075
|
}
|
|
2076
|
-
function
|
|
2077
|
-
var i = !Wt || (n & 2) !== 0, o = (n & 8) !== 0, s = (n & 16) !== 0, a = r, l = !0, c = void 0, u = () => s && i ? (c ?? (c = /* @__PURE__ */ Lt(r)), v(c)) : (l && (l = !1, a = s ?
|
|
2076
|
+
function ki(e, t, n, r) {
|
|
2077
|
+
var i = !Wt || (n & 2) !== 0, o = (n & 8) !== 0, s = (n & 16) !== 0, a = r, l = !0, c = void 0, u = () => s && i ? (c ?? (c = /* @__PURE__ */ Lt(r)), v(c)) : (l && (l = !1, a = s ? xn(r) : r), a);
|
|
2078
2078
|
let h;
|
|
2079
2079
|
if (o) {
|
|
2080
2080
|
var f = Ot in e || Ji in e;
|
|
@@ -2139,9 +2139,9 @@ var We = /* @__PURE__ */ new WeakMap(), ue = /* @__PURE__ */ new WeakMap(), Zl =
|
|
|
2139
2139
|
intro: e.intro ?? !1,
|
|
2140
2140
|
recover: e.recover,
|
|
2141
2141
|
transformError: e.transformError
|
|
2142
|
-
})), !_e && (!e?.props?.$$host || e.sync === !1) &&
|
|
2142
|
+
})), !_e && (!e?.props?.$$host || e.sync === !1) && Zn(), T(We, this, r.$$events);
|
|
2143
2143
|
for (const i of Object.keys(d(ue, this)))
|
|
2144
|
-
i === "$set" || i === "$destroy" || i === "$on" ||
|
|
2144
|
+
i === "$set" || i === "$destroy" || i === "$on" || ln(this, i, {
|
|
2145
2145
|
get() {
|
|
2146
2146
|
return d(ue, this)[i];
|
|
2147
2147
|
},
|
|
@@ -2191,7 +2191,7 @@ typeof HTMLElement == "function" && (Xo = class extends HTMLElement {
|
|
|
2191
2191
|
if (this.$$cn = !0, !this.$$c) {
|
|
2192
2192
|
let e = function(r) {
|
|
2193
2193
|
return (i) => {
|
|
2194
|
-
const o =
|
|
2194
|
+
const o = $r("slot");
|
|
2195
2195
|
r !== "default" && (o.name = r), en(i, o);
|
|
2196
2196
|
};
|
|
2197
2197
|
};
|
|
@@ -2212,9 +2212,9 @@ typeof HTMLElement == "function" && (Xo = class extends HTMLElement {
|
|
|
2212
2212
|
$$host: this
|
|
2213
2213
|
}
|
|
2214
2214
|
}), this.$$me = ml(() => {
|
|
2215
|
-
|
|
2215
|
+
Pr(() => {
|
|
2216
2216
|
this.$$r = !0;
|
|
2217
|
-
for (const r of
|
|
2217
|
+
for (const r of an(this.$$c)) {
|
|
2218
2218
|
if (!this.$$p_d[r]?.reflect) continue;
|
|
2219
2219
|
this.$$d[r] = this.$$c[r];
|
|
2220
2220
|
const i = tn(r, this.$$d[r], this.$$p_d, "toAttribute");
|
|
@@ -2239,7 +2239,7 @@ typeof HTMLElement == "function" && (Xo = class extends HTMLElement {
|
|
|
2239
2239
|
});
|
|
2240
2240
|
}
|
|
2241
2241
|
$$g_p(e) {
|
|
2242
|
-
return
|
|
2242
|
+
return an(this.$$p_d).find((t) => this.$$p_d[t].attribute === e || !this.$$p_d[t].attribute && t.toLowerCase() === e) || e;
|
|
2243
2243
|
}
|
|
2244
2244
|
});
|
|
2245
2245
|
function tn(e, t, n, r) {
|
|
@@ -2280,11 +2280,11 @@ function tc(e, t, n, r, i, o) {
|
|
|
2280
2280
|
super(e, n, i), this.$$p_d = t;
|
|
2281
2281
|
}
|
|
2282
2282
|
static get observedAttributes() {
|
|
2283
|
-
return
|
|
2283
|
+
return an(t).map((a) => (t[a].attribute || a).toLowerCase());
|
|
2284
2284
|
}
|
|
2285
2285
|
};
|
|
2286
|
-
return
|
|
2287
|
-
|
|
2286
|
+
return an(t).forEach((a) => {
|
|
2287
|
+
ln(s.prototype, a, {
|
|
2288
2288
|
get() {
|
|
2289
2289
|
return this.$$c && a in this.$$c ? this.$$c[a] : this.$$d[a];
|
|
2290
2290
|
},
|
|
@@ -2295,7 +2295,7 @@ function tc(e, t, n, r, i, o) {
|
|
|
2295
2295
|
}
|
|
2296
2296
|
});
|
|
2297
2297
|
}), r.forEach((a) => {
|
|
2298
|
-
|
|
2298
|
+
ln(s.prototype, a, { get() {
|
|
2299
2299
|
return this.$$c?.[a];
|
|
2300
2300
|
} });
|
|
2301
2301
|
}), o && (s = o(s)), e.element = s, s;
|
|
@@ -2325,7 +2325,7 @@ var nc = class extends Event {
|
|
|
2325
2325
|
requestValue() {
|
|
2326
2326
|
this.host.dispatchEvent(new nc(this.context, this.host, this.handleValue, this.subscribe));
|
|
2327
2327
|
}
|
|
2328
|
-
},
|
|
2328
|
+
}, En = (e) => e, ic = En(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.runtimeContext")), _d = En(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.hostRuntimeContext")), Sd = En(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.shellContext")), wd = En(/* @__PURE__ */ Symbol.for("pie.assessmentToolkit.regionScopeContext"));
|
|
2329
2329
|
function oc(e, t, n) {
|
|
2330
2330
|
let r = !1;
|
|
2331
2331
|
const i = new rc(e, {
|
|
@@ -2431,7 +2431,7 @@ var ht;
|
|
|
2431
2431
|
(function(e) {
|
|
2432
2432
|
e.YELLOW = "yellow", e.GREEN = "green", e.BLUE = "blue", e.PINK = "pink", e.ORANGE = "orange", e.UNDERLINE = "underline";
|
|
2433
2433
|
})(ht || (ht = {}));
|
|
2434
|
-
var Jo = class
|
|
2434
|
+
var Jo = class ar {
|
|
2435
2435
|
constructor(t = {}) {
|
|
2436
2436
|
if (g(this, "config", void 0), g(this, "ttsWordHighlight", null), g(this, "ttsSentenceHighlight", null), g(this, "ttsWordElementHighlights", /* @__PURE__ */ new Set()), g(this, "ttsSentenceElementHighlights", /* @__PURE__ */ new Set()), g(this, "annotations", /* @__PURE__ */ new Map()), g(this, "colorHighlights", /* @__PURE__ */ new Map()), g(this, "nextAnnotationId", 1), g(this, "supported", !1), g(this, "rangeSerializer", void 0), g(this, "themeObserver", null), g(this, "explicitTTSColorOverride", null), this.config = t, this.rangeSerializer = new lc(), typeof CSS > "u" || !("highlights" in CSS)) {
|
|
2437
2437
|
console.warn("CSS Custom Highlight API not supported (SSR or unsupported browser)");
|
|
@@ -2676,10 +2676,10 @@ var Jo = class sr {
|
|
|
2676
2676
|
}
|
|
2677
2677
|
}
|
|
2678
2678
|
highlightTTSElementFallbacks(t) {
|
|
2679
|
-
typeof Element > "u" || this.highlightElementFallbacks(t, "data-pie-tts-sentence-element", this.ttsSentenceElementHighlights,
|
|
2679
|
+
typeof Element > "u" || this.highlightElementFallbacks(t, "data-pie-tts-sentence-element", this.ttsSentenceElementHighlights, ar.SENTENCE_FALLBACK_SELECTOR);
|
|
2680
2680
|
}
|
|
2681
2681
|
highlightTTSWordElementFallbacks(t) {
|
|
2682
|
-
typeof Element > "u" || this.highlightElementFallbacks(t, "data-pie-tts-word-element", this.ttsWordElementHighlights,
|
|
2682
|
+
typeof Element > "u" || this.highlightElementFallbacks(t, "data-pie-tts-word-element", this.ttsWordElementHighlights, ar.WORD_FALLBACK_SELECTOR);
|
|
2683
2683
|
}
|
|
2684
2684
|
highlightElementFallbacks(t, n, r, i) {
|
|
2685
2685
|
for (const o of t) {
|
|
@@ -2850,17 +2850,17 @@ function Qo(e) {
|
|
|
2850
2850
|
console.debug(`[${e}]`, ...t);
|
|
2851
2851
|
};
|
|
2852
2852
|
}
|
|
2853
|
-
var
|
|
2853
|
+
var kd = Qo("I18nService"), Fn = {
|
|
2854
2854
|
assessment: [],
|
|
2855
2855
|
section: [],
|
|
2856
2856
|
item: [],
|
|
2857
2857
|
passage: [],
|
|
2858
2858
|
rubric: [],
|
|
2859
2859
|
element: []
|
|
2860
|
-
},
|
|
2861
|
-
section: [...
|
|
2862
|
-
item: [...
|
|
2863
|
-
passage: [...
|
|
2860
|
+
}, jn = {
|
|
2861
|
+
section: [...Fn.section],
|
|
2862
|
+
item: [...Fn.item],
|
|
2863
|
+
passage: [...Fn.passage]
|
|
2864
2864
|
};
|
|
2865
2865
|
function Ke(e) {
|
|
2866
2866
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
@@ -2927,9 +2927,9 @@ function pc(e) {
|
|
|
2927
2927
|
blocked: Re($e(t?.blocked, "policy.blocked"))
|
|
2928
2928
|
},
|
|
2929
2929
|
placement: {
|
|
2930
|
-
section: Re($e(n?.section, "placement.section")).length ? Re($e(n?.section, "placement.section")) : [...
|
|
2931
|
-
item: Re($e(n?.item, "placement.item")).length ? Re($e(n?.item, "placement.item")) : [...
|
|
2932
|
-
passage: Re($e(n?.passage, "placement.passage")).length ? Re($e(n?.passage, "placement.passage")) : [...
|
|
2930
|
+
section: Re($e(n?.section, "placement.section")).length ? Re($e(n?.section, "placement.section")) : [...jn.section],
|
|
2931
|
+
item: Re($e(n?.item, "placement.item")).length ? Re($e(n?.item, "placement.item")) : [...jn.item],
|
|
2932
|
+
passage: Re($e(n?.passage, "placement.passage")).length ? Re($e(n?.passage, "placement.passage")) : [...jn.passage]
|
|
2933
2933
|
},
|
|
2934
2934
|
providers: r
|
|
2935
2935
|
};
|
|
@@ -2971,7 +2971,7 @@ function mc(e, t, n) {
|
|
|
2971
2971
|
for (const { pattern: s, reason: a } of vc) if (s.test(t)) throw new Error(`Invalid tool registration "${e}": "${n}" ${a}. Inline SVG icons must not include scriptable content.`);
|
|
2972
2972
|
}
|
|
2973
2973
|
}
|
|
2974
|
-
function
|
|
2974
|
+
function xi(e) {
|
|
2975
2975
|
if (nn(e.toolId, "toolId"), nn(e.name, "name"), nn(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.`);
|
|
2976
2976
|
if (typeof e.icon == "string" && mc(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.`);
|
|
2977
2977
|
const t = e.supportedLevels.find((n) => !gc.includes(n));
|
|
@@ -2994,12 +2994,12 @@ var yc = class {
|
|
|
2994
2994
|
return e.map((t) => this.normalizeToolId(t));
|
|
2995
2995
|
}
|
|
2996
2996
|
register(e) {
|
|
2997
|
-
if (
|
|
2997
|
+
if (xi(e), this.tools.has(e.toolId)) throw new Error(`Tool '${e.toolId}' is already registered`);
|
|
2998
2998
|
if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const t of e.pnpSupportIds)
|
|
2999
2999
|
this.pnpIndex.has(t) || this.pnpIndex.set(t, /* @__PURE__ */ new Set()), this.pnpIndex.get(t).add(e.toolId);
|
|
3000
3000
|
}
|
|
3001
3001
|
override(e) {
|
|
3002
|
-
if (
|
|
3002
|
+
if (xi(e), !this.tools.has(e.toolId)) throw new Error(`Cannot override non-existent tool '${e.toolId}'`);
|
|
3003
3003
|
const t = this.tools.get(e.toolId);
|
|
3004
3004
|
if (t.pnpSupportIds) for (const n of t.pnpSupportIds) this.pnpIndex.get(n)?.delete(e.toolId);
|
|
3005
3005
|
if (this.tools.set(e.toolId, e), e.pnpSupportIds) for (const n of e.pnpSupportIds)
|
|
@@ -3138,7 +3138,7 @@ function Tc(e) {
|
|
|
3138
3138
|
function ts(e) {
|
|
3139
3139
|
return e.level === "element";
|
|
3140
3140
|
}
|
|
3141
|
-
function
|
|
3141
|
+
function Wr(e) {
|
|
3142
3142
|
if (ts(e)) {
|
|
3143
3143
|
const t = e.item.config;
|
|
3144
3144
|
if (!t) return "";
|
|
@@ -3198,8 +3198,8 @@ function Nr(e) {
|
|
|
3198
3198
|
}
|
|
3199
3199
|
return "";
|
|
3200
3200
|
}
|
|
3201
|
-
function
|
|
3202
|
-
const t =
|
|
3201
|
+
function Mn(e) {
|
|
3202
|
+
const t = Wr(e);
|
|
3203
3203
|
return [
|
|
3204
3204
|
/<math[>\s]/i,
|
|
3205
3205
|
/\\\[([^\]]+)\\\]/,
|
|
@@ -3236,11 +3236,11 @@ function _c(e) {
|
|
|
3236
3236
|
}
|
|
3237
3237
|
return !1;
|
|
3238
3238
|
}
|
|
3239
|
-
function
|
|
3240
|
-
return
|
|
3239
|
+
function Cn(e) {
|
|
3240
|
+
return Wr(e).trim().length >= 10;
|
|
3241
3241
|
}
|
|
3242
3242
|
function Sc(e) {
|
|
3243
|
-
const t =
|
|
3243
|
+
const t = Wr(e);
|
|
3244
3244
|
return [
|
|
3245
3245
|
/chemistry|chemical|element|atom|molecule|compound/i,
|
|
3246
3246
|
/periodic\s+table/i,
|
|
@@ -3260,7 +3260,7 @@ var wc = [
|
|
|
3260
3260
|
function xc(e) {
|
|
3261
3261
|
return kc.has(e);
|
|
3262
3262
|
}
|
|
3263
|
-
function
|
|
3263
|
+
function zr(e, t, n) {
|
|
3264
3264
|
const r = e.trim(), i = n.trim();
|
|
3265
3265
|
if (!r || !i) throw new Error("Tool instance ids require non-empty tool and scope ids");
|
|
3266
3266
|
if (!xc(t)) throw new Error(`Unknown tool scope level '${t}'. Register custom levels with registerToolScopeLevel().`);
|
|
@@ -3343,7 +3343,7 @@ var Ec = class {
|
|
|
3343
3343
|
destroy() {
|
|
3344
3344
|
this.desmosProvider && (this.desmosProvider.destroy(), this.desmosProvider = null), this.config = null, console.log("[DesmosToolProvider] Destroyed");
|
|
3345
3345
|
}
|
|
3346
|
-
},
|
|
3346
|
+
}, Hr = (e, t) => {
|
|
3347
3347
|
const n = t?.useSentenceSegmenter !== !1;
|
|
3348
3348
|
try {
|
|
3349
3349
|
if (!n) throw new Error("Segmenter disabled by policy");
|
|
@@ -3485,7 +3485,7 @@ var Ec = class {
|
|
|
3485
3485
|
}
|
|
3486
3486
|
segmentSentences(e) {
|
|
3487
3487
|
const t = this.getSegmentationPolicy();
|
|
3488
|
-
return
|
|
3488
|
+
return Hr(e, {
|
|
3489
3489
|
locale: t.locale,
|
|
3490
3490
|
useSentenceSegmenter: t.useSentenceSegmenter
|
|
3491
3491
|
});
|
|
@@ -3685,29 +3685,29 @@ var Ec = class {
|
|
|
3685
3685
|
context: t,
|
|
3686
3686
|
toolbarContext: n
|
|
3687
3687
|
}) : Nc(i);
|
|
3688
|
-
},
|
|
3688
|
+
}, lr = /* @__PURE__ */ new WeakMap();
|
|
3689
3689
|
function Wc(e, t) {
|
|
3690
3690
|
if (!e) return null;
|
|
3691
|
-
const n =
|
|
3691
|
+
const n = lr.get(e), r = n?.get(t);
|
|
3692
3692
|
return r ? r.isConnected ? r : (n?.delete(t), null) : null;
|
|
3693
3693
|
}
|
|
3694
3694
|
function zc(e, t, n) {
|
|
3695
3695
|
if (!e) return;
|
|
3696
|
-
let r =
|
|
3697
|
-
r || (r = /* @__PURE__ */ new Map(),
|
|
3696
|
+
let r = lr.get(e);
|
|
3697
|
+
r || (r = /* @__PURE__ */ new Map(), lr.set(e, r)), r.set(t, n);
|
|
3698
3698
|
}
|
|
3699
|
-
function
|
|
3699
|
+
function Ei(e) {
|
|
3700
3700
|
return e === "basic" || e === "scientific" ? e : null;
|
|
3701
3701
|
}
|
|
3702
3702
|
function Hc(e) {
|
|
3703
|
-
const t = e.getToolRenderParams?.("calculator") ?? {}, n =
|
|
3703
|
+
const t = e.getToolRenderParams?.("calculator") ?? {}, n = Ei(t.calculatorType), r = t.availableTypes;
|
|
3704
3704
|
return {
|
|
3705
3705
|
calculatorType: n,
|
|
3706
|
-
availableTypes: Array.isArray(r) ? r.map((i) =>
|
|
3706
|
+
availableTypes: Array.isArray(r) ? r.map((i) => Ei(i)).filter((i) => i !== null) : n ? [n] : null,
|
|
3707
3707
|
displayName: n === "scientific" ? "Scientific Calculator" : n === "basic" ? "Basic Calculator" : "Calculator"
|
|
3708
3708
|
};
|
|
3709
3709
|
}
|
|
3710
|
-
function
|
|
3710
|
+
function Mi(e, t, n) {
|
|
3711
3711
|
const r = e;
|
|
3712
3712
|
t ? (r.calculatorType = t, e.setAttribute("calculator-type", t)) : (delete r.calculatorType, e.removeAttribute("calculator-type")), n && n.length > 0 ? r.availableTypes = n : delete r.availableTypes;
|
|
3713
3713
|
}
|
|
@@ -3741,11 +3741,11 @@ var Bc = {
|
|
|
3741
3741
|
"scientificCalculator"
|
|
3742
3742
|
],
|
|
3743
3743
|
isVisibleInContext(e) {
|
|
3744
|
-
return
|
|
3744
|
+
return Mn(e);
|
|
3745
3745
|
},
|
|
3746
3746
|
renderToolbar(e, t) {
|
|
3747
|
-
const { calculatorType: n, availableTypes: r, displayName: i } = Hc(t), o =
|
|
3748
|
-
a || zc(t.toolCoordinator, o, l), l.setAttribute("tool-id", o), l.toolkitCoordinator = t.toolkitCoordinator,
|
|
3747
|
+
const { calculatorType: n, availableTypes: r, displayName: i } = Hc(t), o = zr(this.toolId, t.scope.level, t.scope.scopeId), s = t.componentOverrides, a = Wc(t.toolCoordinator, o), l = a ?? me(this.toolId, e, t, s);
|
|
3748
|
+
a || zc(t.toolCoordinator, o, l), l.setAttribute("tool-id", o), l.toolkitCoordinator = t.toolkitCoordinator, Mi(l, n, r);
|
|
3749
3749
|
const c = n === null ? "Open scientific calculator" : `Open ${i.toLowerCase()}`, u = n === null ? "Close scientific calculator" : `Close ${i.toLowerCase()}`, h = {
|
|
3750
3750
|
toolId: this.toolId,
|
|
3751
3751
|
label: i,
|
|
@@ -3772,13 +3772,17 @@ var Bc = {
|
|
|
3772
3772
|
minWidth: 380,
|
|
3773
3773
|
minHeight: 420,
|
|
3774
3774
|
initialAlign: "bottom-right",
|
|
3775
|
-
initialMargin: 16
|
|
3775
|
+
initialMargin: 16,
|
|
3776
|
+
content: {
|
|
3777
|
+
overflowY: "auto",
|
|
3778
|
+
preserveMinHeight: !0
|
|
3779
|
+
}
|
|
3776
3780
|
}
|
|
3777
3781
|
}],
|
|
3778
3782
|
button: h,
|
|
3779
3783
|
sync: () => {
|
|
3780
3784
|
const p = t.isToolVisible(o);
|
|
3781
|
-
h.active = p, h.label = i, h.ariaLabel = p ? u : c, h.tooltip = p ? `Close ${i.toLowerCase()}` : i, f !== p && (l.visible = p, f = p), l.toolkitCoordinator !== t.toolkitCoordinator && (l.toolkitCoordinator = t.toolkitCoordinator),
|
|
3785
|
+
h.active = p, h.label = i, h.ariaLabel = p ? u : c, h.tooltip = p ? `Close ${i.toLowerCase()}` : i, f !== p && (l.visible = p, f = p), l.toolkitCoordinator !== t.toolkitCoordinator && (l.toolkitCoordinator = t.toolkitCoordinator), Mi(l, n, r);
|
|
3782
3786
|
},
|
|
3783
3787
|
subscribeActive: (p) => t.subscribeVisibility ? t.subscribeVisibility(() => {
|
|
3784
3788
|
p(t.isToolVisible(o));
|
|
@@ -3819,7 +3823,7 @@ var Bc = {
|
|
|
3819
3823
|
}
|
|
3820
3824
|
const i = /[A-Za-z0-9]/.test(e), o = /[A-Za-z0-9]/.test(t);
|
|
3821
3825
|
return i && o;
|
|
3822
|
-
},
|
|
3826
|
+
}, Tn = (e, t) => {
|
|
3823
3827
|
const n = /* @__PURE__ */ new Map();
|
|
3824
3828
|
if (typeof document > "u" || typeof document.createTreeWalker != "function" || typeof NodeFilter > "u") return {
|
|
3825
3829
|
text: "",
|
|
@@ -3865,13 +3869,13 @@ var Bc = {
|
|
|
3865
3869
|
text: h,
|
|
3866
3870
|
map: n
|
|
3867
3871
|
};
|
|
3868
|
-
},
|
|
3872
|
+
}, Vn = null, Ci = Promise.resolve(), Dc = (e) => (e || "en").split("-")[0].toLowerCase() || "en", Fc = async () => (Vn || (Vn = import("./sre-yGY3u7Xp.js").then((e) => /* @__PURE__ */ la(e.default, 1)).then((e) => {
|
|
3869
3873
|
const t = e.default || e;
|
|
3870
3874
|
if (!t || typeof t.toSpeech != "function") throw new Error("speech-rule-engine did not expose toSpeech");
|
|
3871
3875
|
return t;
|
|
3872
|
-
})),
|
|
3873
|
-
if (!
|
|
3874
|
-
const t =
|
|
3876
|
+
})), Vn), jc = (e) => e === "en" ? "clearspeak" : "mathspeak", Ai = (e) => !!e && typeof e == "object" && !Array.isArray(e), Oi = (e) => typeof e == "string" && e.trim() ? e.trim() : void 0, An = (e) => {
|
|
3877
|
+
if (!Ai(e)) return;
|
|
3878
|
+
const t = Oi(e.domain), n = Oi(e.style), r = Ai(e.engineOptions) ? e.engineOptions : void 0;
|
|
3875
3879
|
if (!(!t && !n && !r))
|
|
3876
3880
|
return {
|
|
3877
3881
|
...t ? { domain: t } : {},
|
|
@@ -3879,7 +3883,7 @@ var Bc = {
|
|
|
3879
3883
|
...r ? { engineOptions: r } : {}
|
|
3880
3884
|
};
|
|
3881
3885
|
}, Vc = async (e, t, n, r) => {
|
|
3882
|
-
const i = Dc(t), o =
|
|
3886
|
+
const i = Dc(t), o = An(r);
|
|
3883
3887
|
await e.setupEngine?.({
|
|
3884
3888
|
...o?.engineOptions || {},
|
|
3885
3889
|
locale: i,
|
|
@@ -3889,8 +3893,8 @@ var Bc = {
|
|
|
3889
3893
|
markup: n
|
|
3890
3894
|
}), await e.engineReady?.();
|
|
3891
3895
|
}, qc = async (e) => {
|
|
3892
|
-
const t =
|
|
3893
|
-
return
|
|
3896
|
+
const t = Ci.then(e, e);
|
|
3897
|
+
return Ci = t.then(() => {
|
|
3894
3898
|
}, () => {
|
|
3895
3899
|
}), t;
|
|
3896
3900
|
}, ls = async (e, t, n, r, i) => qc(async () => (await Vc(e, n, r, i), e.toSpeech(t))), Uc = (e) => e.replace(/^\s*<\?xml[^>]*\?>\s*/i, ""), Gc = async (e, t, n, r) => {
|
|
@@ -3938,55 +3942,71 @@ var Bc = {
|
|
|
3938
3942
|
"expanding-row",
|
|
3939
3943
|
"floating-overlay",
|
|
3940
3944
|
"left-aligned"
|
|
3941
|
-
]),
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
+
]), cr = (e) => e && typeof e == "object" ? e : {}, Kc = (e) => e === "polly" || e === "google" || e === "server", J = (e, t) => e === void 0 ? t : e, _n = (e, t = "left-aligned") => typeof e == "string" && Yc.has(e) ? e : t, xd = Object.freeze([0.8, 1.25]), Ii = Object.freeze([
|
|
3946
|
+
{
|
|
3947
|
+
rate: 0.8,
|
|
3948
|
+
label: "Slow",
|
|
3949
|
+
ariaLabel: "Slow speed"
|
|
3950
|
+
},
|
|
3951
|
+
{
|
|
3952
|
+
rate: 1,
|
|
3953
|
+
label: "Normal",
|
|
3954
|
+
ariaLabel: "Normal speed",
|
|
3955
|
+
default: !0
|
|
3956
|
+
},
|
|
3957
|
+
{
|
|
3958
|
+
rate: 1.25,
|
|
3959
|
+
label: "Fast",
|
|
3960
|
+
ariaLabel: "Fast speed"
|
|
3961
|
+
}
|
|
3962
|
+
]), $i = (e) => {
|
|
3963
|
+
if (!(typeof e != "number" || !Number.isFinite(e) || e <= 0))
|
|
3964
|
+
return Math.round(e * 100) / 100;
|
|
3945
3965
|
}, Ri = (e) => {
|
|
3946
3966
|
if (typeof e != "string") return;
|
|
3947
3967
|
const t = e.trim();
|
|
3948
3968
|
return t.length ? t : void 0;
|
|
3949
|
-
}, Li = (e) => `${e}x`, us = (e, t) => t ? `Speed ${e}` : `${e} speed`, Xc = (e, t, n) => t ? t.toLowerCase().includes(e.toLowerCase()) ? t : `${e} ${t}` : us(e, n),
|
|
3950
|
-
|
|
3951
|
-
if (
|
|
3952
|
-
const
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
const i = Jc(r);
|
|
3966
|
-
if (i === void 0) continue;
|
|
3967
|
-
const o = typeof i == "number" ? i : i.rate;
|
|
3968
|
-
t.has(o) || (t.add(o), n.push(i));
|
|
3969
|
-
}
|
|
3970
|
-
return n.length ? n : [...Ii];
|
|
3971
|
-
}, Qc = (e) => lr(e).map((t) => {
|
|
3972
|
-
if (typeof t == "number") {
|
|
3973
|
-
const i = Li(t);
|
|
3974
|
-
return {
|
|
3975
|
-
rate: t,
|
|
3976
|
-
label: i,
|
|
3977
|
-
ariaLabel: us(i, !0)
|
|
3978
|
-
};
|
|
3969
|
+
}, Li = (e) => `${e}x`, us = (e, t) => e.toLowerCase() === "normal" ? "Normal speed" : t ? `Speed ${e}` : `${e} speed`, Xc = (e, t, n) => t ? t.toLowerCase().includes(e.toLowerCase()) ? t : `${e} ${t}` : us(e, n), rn = (e) => {
|
|
3970
|
+
const t = Array.isArray(e) ? e : [...Ii];
|
|
3971
|
+
if (t.length === 0) return [];
|
|
3972
|
+
const n = /* @__PURE__ */ new Set(), r = [];
|
|
3973
|
+
for (const s of t) {
|
|
3974
|
+
const a = cr(s), l = $i(typeof s == "number" ? s : a.rate);
|
|
3975
|
+
if (l === void 0 || n.has(l)) continue;
|
|
3976
|
+
n.add(l);
|
|
3977
|
+
const c = l === 1 ? "Normal" : Li(l), u = typeof s == "number" ? c : Ri(a.label) || c, h = typeof s == "number" ? l === 1 ? "Normal speed" : us(u, !0) : Xc(u, Ri(a.ariaLabel), u === c);
|
|
3978
|
+
r.push({
|
|
3979
|
+
rate: l,
|
|
3980
|
+
label: u,
|
|
3981
|
+
ariaLabel: h,
|
|
3982
|
+
isDefault: !1,
|
|
3983
|
+
requestedDefault: a.default === !0 || a.isDefault === !0
|
|
3984
|
+
});
|
|
3979
3985
|
}
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3986
|
+
if (!r.length) return rn(Ii);
|
|
3987
|
+
if (!n.has(1)) {
|
|
3988
|
+
const s = {
|
|
3989
|
+
rate: 1,
|
|
3990
|
+
label: "Normal",
|
|
3991
|
+
ariaLabel: "Normal speed",
|
|
3992
|
+
isDefault: !1,
|
|
3993
|
+
requestedDefault: !1
|
|
3994
|
+
}, a = r.findIndex((l) => l.rate > 1);
|
|
3995
|
+
a >= 0 ? r.splice(a, 0, s) : r.push(s);
|
|
3996
|
+
}
|
|
3997
|
+
const i = r.findIndex((s) => s.requestedDefault), o = i >= 0 ? i : r.findIndex((s) => s.rate === 1);
|
|
3998
|
+
return r.map(({ requestedDefault: s, ...a }, l) => ({
|
|
3999
|
+
...a,
|
|
4000
|
+
isDefault: l === o
|
|
4001
|
+
}));
|
|
4002
|
+
}, Ed = Object.freeze([
|
|
4003
|
+
0.8,
|
|
4004
|
+
1,
|
|
4005
|
+
1.25
|
|
4006
|
+
]), Jc = (e) => {
|
|
3987
4007
|
const t = {
|
|
3988
4008
|
...e,
|
|
3989
|
-
layoutMode:
|
|
4009
|
+
layoutMode: _n(e.layoutMode)
|
|
3990
4010
|
}, n = e.backend || "browser";
|
|
3991
4011
|
if (!Kc(n)) return t;
|
|
3992
4012
|
const r = {
|
|
@@ -4009,14 +4029,14 @@ var Bc = {
|
|
|
4009
4029
|
...r,
|
|
4010
4030
|
defaultVoice: J(r.defaultVoice, "en-US-Wavenet-A")
|
|
4011
4031
|
} : r;
|
|
4012
|
-
},
|
|
4013
|
-
const t =
|
|
4014
|
-
return
|
|
4032
|
+
}, qn = (e) => {
|
|
4033
|
+
const t = cr(e), n = cr(t.settings);
|
|
4034
|
+
return Jc({
|
|
4015
4035
|
...t,
|
|
4016
4036
|
...n
|
|
4017
4037
|
});
|
|
4018
|
-
},
|
|
4019
|
-
const t =
|
|
4038
|
+
}, ur = (e) => e.backend || "browser", hs = (e, t) => t === "polly" || t === "google" ? t : e.serverProvider || e.provider, ds = (e, t) => e.transportMode || (t === "custom" ? "custom" : "pie"), Qc = (e) => {
|
|
4039
|
+
const t = ur(e), n = hs(e, t), r = ds(e, n), i = An(e.mathSpeech);
|
|
4020
4040
|
return {
|
|
4021
4041
|
voice: e.defaultVoice,
|
|
4022
4042
|
rate: e.rate,
|
|
@@ -4042,7 +4062,7 @@ var Bc = {
|
|
|
4042
4062
|
validateEndpoint: e.validateEndpoint,
|
|
4043
4063
|
...typeof e.mathTokenHighlighting == "boolean" ? { mathTokenHighlighting: e.mathTokenHighlighting } : {}
|
|
4044
4064
|
};
|
|
4045
|
-
}, fs = (e) =>
|
|
4065
|
+
}, fs = (e) => _n(e.layoutMode), Zc = (e) => {
|
|
4046
4066
|
switch (fs(e)) {
|
|
4047
4067
|
case "reserved-row":
|
|
4048
4068
|
return {
|
|
@@ -4069,21 +4089,21 @@ var Bc = {
|
|
|
4069
4089
|
}
|
|
4070
4090
|
};
|
|
4071
4091
|
}
|
|
4072
|
-
}, kt = /* @__PURE__ */ new Map(),
|
|
4092
|
+
}, kt = /* @__PURE__ */ new Map(), eu = "__pieToolElementUnmount", Pi = "pie-tool-active-change", tu = {
|
|
4073
4093
|
toolId: "textToSpeech",
|
|
4074
4094
|
name: "Text to Speech",
|
|
4075
4095
|
description: "Read content aloud",
|
|
4076
4096
|
icon: "volume-up",
|
|
4077
4097
|
provider: {
|
|
4078
4098
|
getProviderId: () => "tts",
|
|
4079
|
-
createProvider: (e) => new Ic(
|
|
4099
|
+
createProvider: (e) => new Ic(ur(qn(e))),
|
|
4080
4100
|
getInitConfig: (e) => {
|
|
4081
|
-
const t =
|
|
4101
|
+
const t = qn(e), n = ur(t), r = hs(t, n);
|
|
4082
4102
|
return {
|
|
4083
4103
|
backend: n,
|
|
4084
4104
|
serverProvider: r,
|
|
4085
4105
|
transportMode: ds(t, r),
|
|
4086
|
-
...
|
|
4106
|
+
...Qc(t)
|
|
4087
4107
|
};
|
|
4088
4108
|
},
|
|
4089
4109
|
getAuthFetcher: (e) => {
|
|
@@ -4092,9 +4112,9 @@ var Bc = {
|
|
|
4092
4112
|
},
|
|
4093
4113
|
sanitizeConfig: (e) => {
|
|
4094
4114
|
const t = e.settings && typeof e.settings == "object" ? { ...e.settings } : void 0;
|
|
4095
|
-
t && "layoutMode" in t && (t.layoutMode =
|
|
4115
|
+
t && "layoutMode" in t && (t.layoutMode = _n(t.layoutMode)), t && "speedOptions" in t && (t.speedOptions = rn(t.speedOptions));
|
|
4096
4116
|
const n = { ...e };
|
|
4097
|
-
return "layoutMode" in n && (n.layoutMode =
|
|
4117
|
+
return "layoutMode" in n && (n.layoutMode = _n(n.layoutMode)), "speedOptions" in n && (n.speedOptions = rn(n.speedOptions)), t && (n.settings = t), n;
|
|
4098
4118
|
},
|
|
4099
4119
|
lazy: !0
|
|
4100
4120
|
},
|
|
@@ -4106,17 +4126,17 @@ var Bc = {
|
|
|
4106
4126
|
"speechOutput"
|
|
4107
4127
|
],
|
|
4108
4128
|
isVisibleInContext(e) {
|
|
4109
|
-
return
|
|
4129
|
+
return Cn(e);
|
|
4110
4130
|
},
|
|
4111
4131
|
renderToolbar(e, t) {
|
|
4112
|
-
const n = () =>
|
|
4132
|
+
const n = () => qn(t.toolkitCoordinator?.getToolConfig(this.toolId) || void 0), r = () => rn(n().speedOptions), i = () => fs(n()), o = () => Zc(n()), s = zr(this.toolId, t.scope.level, t.scope.scopeId), a = () => {
|
|
4113
4133
|
const u = t.ui?.size;
|
|
4114
4134
|
return u === "sm" || u === "lg" ? u : "md";
|
|
4115
4135
|
}, l = () => {
|
|
4116
4136
|
let u = kt.get(s);
|
|
4117
|
-
return u && typeof u.isConnected == "boolean" && !u.isConnected && (kt.delete(s), u = void 0), u || (u = document.createElement("pie-tool-tts-inline"), u[
|
|
4137
|
+
return u && typeof u.isConnected == "boolean" && !u.isConnected && (kt.delete(s), u = void 0), u || (u = document.createElement("pie-tool-tts-inline"), u[eu] = () => {
|
|
4118
4138
|
kt.get(s) === u && kt.delete(s);
|
|
4119
|
-
}, kt.set(s, u)), u.setAttribute("tool-id", s), u.setAttribute("catalog-id", t.catalogId || t.itemId), u.setAttribute("language", t.language || "en-US"), u.setAttribute("size", a()), u.setAttribute("layout-mode", i()), u.speedOptions = r(), u;
|
|
4139
|
+
}, kt.set(s, u)), u.setAttribute("tool-id", s), u.setAttribute("catalog-id", t.catalogId || t.itemId), u.setAttribute("language", t.language || "en-US"), u.setAttribute("size", a()), u.setAttribute("layout-mode", i()), u.speedOptions = r(), u.showSingleSpeedOption = n().showSingleSpeedOption === !0, u;
|
|
4120
4140
|
}, c = o();
|
|
4121
4141
|
return {
|
|
4122
4142
|
toolId: this.toolId,
|
|
@@ -4140,13 +4160,13 @@ var Bc = {
|
|
|
4140
4160
|
},
|
|
4141
4161
|
sync: () => {
|
|
4142
4162
|
const u = l();
|
|
4143
|
-
u.setAttribute("tool-id", s), u.setAttribute("catalog-id", t.catalogId || t.itemId), u.setAttribute("language", t.language || "en-US"), u.setAttribute("size", a()), u.setAttribute("layout-mode", i()), u.speedOptions = r();
|
|
4163
|
+
u.setAttribute("tool-id", s), u.setAttribute("catalog-id", t.catalogId || t.itemId), u.setAttribute("language", t.language || "en-US"), u.setAttribute("size", a()), u.setAttribute("layout-mode", i()), u.speedOptions = r(), u.showSingleSpeedOption = n().showSingleSpeedOption === !0;
|
|
4144
4164
|
}
|
|
4145
4165
|
};
|
|
4146
4166
|
}
|
|
4147
4167
|
};
|
|
4148
4168
|
function Ce(e, t) {
|
|
4149
|
-
const n =
|
|
4169
|
+
const n = zr(e, t.scope.level, t.scope.scopeId);
|
|
4150
4170
|
return {
|
|
4151
4171
|
fullToolId: n,
|
|
4152
4172
|
isActive: () => t.isToolVisible(n),
|
|
@@ -4160,10 +4180,10 @@ function Ae(e) {
|
|
|
4160
4180
|
const t = e.isActive();
|
|
4161
4181
|
e.button.active = t, e.overlay.visible = t, e.onActiveChange?.(t);
|
|
4162
4182
|
}
|
|
4163
|
-
function
|
|
4183
|
+
function Br(e, t) {
|
|
4164
4184
|
e.setAttribute("data-pie-tool-surface", t);
|
|
4165
4185
|
}
|
|
4166
|
-
var
|
|
4186
|
+
var nu = {
|
|
4167
4187
|
toolId: "ruler",
|
|
4168
4188
|
name: "Ruler",
|
|
4169
4189
|
description: "On-screen ruler for measurements",
|
|
@@ -4175,7 +4195,7 @@ var iu = {
|
|
|
4175
4195
|
],
|
|
4176
4196
|
pnpSupportIds: ["ruler", "measurement"],
|
|
4177
4197
|
isVisibleInContext(e) {
|
|
4178
|
-
return
|
|
4198
|
+
return Mn(e);
|
|
4179
4199
|
},
|
|
4180
4200
|
renderToolbar(e, t) {
|
|
4181
4201
|
const n = Ce(this.toolId, t), r = {
|
|
@@ -4188,7 +4208,7 @@ var iu = {
|
|
|
4188
4208
|
onClick: () => t.toggleTool(this.toolId),
|
|
4189
4209
|
active: n.isActive()
|
|
4190
4210
|
}, i = t.componentOverrides ?? {}, o = me(this.toolId, e, t, i);
|
|
4191
|
-
return o.setAttribute("tool-id", n.fullToolId),
|
|
4211
|
+
return o.setAttribute("tool-id", n.fullToolId), Br(o, "frameless"), {
|
|
4192
4212
|
toolId: this.toolId,
|
|
4193
4213
|
button: r,
|
|
4194
4214
|
elements: [{
|
|
@@ -4205,7 +4225,7 @@ var iu = {
|
|
|
4205
4225
|
subscribeActive: n.subscribeActive
|
|
4206
4226
|
};
|
|
4207
4227
|
}
|
|
4208
|
-
},
|
|
4228
|
+
}, ru = {
|
|
4209
4229
|
toolId: "protractor",
|
|
4210
4230
|
name: "Protractor",
|
|
4211
4231
|
description: "On-screen protractor for angle measurements",
|
|
@@ -4217,7 +4237,7 @@ var iu = {
|
|
|
4217
4237
|
],
|
|
4218
4238
|
pnpSupportIds: ["protractor", "angleMeasurement"],
|
|
4219
4239
|
isVisibleInContext(e) {
|
|
4220
|
-
return
|
|
4240
|
+
return Mn(e);
|
|
4221
4241
|
},
|
|
4222
4242
|
renderToolbar(e, t) {
|
|
4223
4243
|
const n = Ce(this.toolId, t), r = {
|
|
@@ -4230,7 +4250,7 @@ var iu = {
|
|
|
4230
4250
|
onClick: () => t.toggleTool(this.toolId),
|
|
4231
4251
|
active: n.isActive()
|
|
4232
4252
|
}, i = t.componentOverrides ?? {}, o = me(this.toolId, e, t, i);
|
|
4233
|
-
return o.setAttribute("tool-id", n.fullToolId),
|
|
4253
|
+
return o.setAttribute("tool-id", n.fullToolId), Br(o, "frameless"), {
|
|
4234
4254
|
toolId: this.toolId,
|
|
4235
4255
|
button: r,
|
|
4236
4256
|
elements: [{
|
|
@@ -4247,7 +4267,7 @@ var iu = {
|
|
|
4247
4267
|
subscribeActive: n.subscribeActive
|
|
4248
4268
|
};
|
|
4249
4269
|
}
|
|
4250
|
-
},
|
|
4270
|
+
}, iu = {
|
|
4251
4271
|
toolId: "answerEliminator",
|
|
4252
4272
|
name: "Answer Eliminator",
|
|
4253
4273
|
description: "Strike through answer choices",
|
|
@@ -4294,7 +4314,7 @@ var iu = {
|
|
|
4294
4314
|
subscribeActive: n.subscribeActive
|
|
4295
4315
|
};
|
|
4296
4316
|
}
|
|
4297
|
-
},
|
|
4317
|
+
}, ou = {
|
|
4298
4318
|
toolId: "highlighter",
|
|
4299
4319
|
name: "Highlighter",
|
|
4300
4320
|
description: "Highlight text",
|
|
@@ -4312,7 +4332,7 @@ var iu = {
|
|
|
4312
4332
|
"annotation"
|
|
4313
4333
|
],
|
|
4314
4334
|
isVisibleInContext(e) {
|
|
4315
|
-
return
|
|
4335
|
+
return Cn(e);
|
|
4316
4336
|
},
|
|
4317
4337
|
renderToolbar(e, t) {
|
|
4318
4338
|
const n = Ce(this.toolId, t), r = {
|
|
@@ -4345,7 +4365,7 @@ var iu = {
|
|
|
4345
4365
|
subscribeActive: n.subscribeActive
|
|
4346
4366
|
};
|
|
4347
4367
|
}
|
|
4348
|
-
},
|
|
4368
|
+
}, su = {
|
|
4349
4369
|
toolId: "lineReader",
|
|
4350
4370
|
name: "Line Reader",
|
|
4351
4371
|
description: "Reading guide overlay",
|
|
@@ -4364,7 +4384,7 @@ var iu = {
|
|
|
4364
4384
|
"trackingGuide"
|
|
4365
4385
|
],
|
|
4366
4386
|
isVisibleInContext(e) {
|
|
4367
|
-
return
|
|
4387
|
+
return Cn(e);
|
|
4368
4388
|
},
|
|
4369
4389
|
renderToolbar(e, t) {
|
|
4370
4390
|
const n = Ce(this.toolId, t), r = {
|
|
@@ -4377,7 +4397,7 @@ var iu = {
|
|
|
4377
4397
|
onClick: () => t.toggleTool(this.toolId),
|
|
4378
4398
|
active: n.isActive()
|
|
4379
4399
|
}, i = t.componentOverrides ?? {}, o = me(this.toolId, e, t, i);
|
|
4380
|
-
return o.setAttribute("tool-id", n.fullToolId),
|
|
4400
|
+
return o.setAttribute("tool-id", n.fullToolId), Br(o, "frameless"), {
|
|
4381
4401
|
toolId: this.toolId,
|
|
4382
4402
|
button: r,
|
|
4383
4403
|
elements: [{
|
|
@@ -4394,7 +4414,7 @@ var iu = {
|
|
|
4394
4414
|
subscribeActive: n.subscribeActive
|
|
4395
4415
|
};
|
|
4396
4416
|
}
|
|
4397
|
-
},
|
|
4417
|
+
}, au = {
|
|
4398
4418
|
toolId: "theme",
|
|
4399
4419
|
name: "Theme",
|
|
4400
4420
|
description: "Accessible themes and contrast",
|
|
@@ -4449,7 +4469,7 @@ var iu = {
|
|
|
4449
4469
|
subscribeActive: n.subscribeActive
|
|
4450
4470
|
};
|
|
4451
4471
|
}
|
|
4452
|
-
},
|
|
4472
|
+
}, lu = {
|
|
4453
4473
|
toolId: "annotationToolbar",
|
|
4454
4474
|
name: "Highlighter",
|
|
4455
4475
|
description: "Highlight and annotate text",
|
|
@@ -4470,7 +4490,7 @@ var iu = {
|
|
|
4470
4490
|
"annotation"
|
|
4471
4491
|
],
|
|
4472
4492
|
isVisibleInContext(e) {
|
|
4473
|
-
return
|
|
4493
|
+
return Cn(e);
|
|
4474
4494
|
},
|
|
4475
4495
|
renderToolbar(e, t) {
|
|
4476
4496
|
const n = Ce(this.toolId, t), r = {
|
|
@@ -4500,7 +4520,7 @@ var iu = {
|
|
|
4500
4520
|
subscribeActive: n.subscribeActive
|
|
4501
4521
|
};
|
|
4502
4522
|
}
|
|
4503
|
-
},
|
|
4523
|
+
}, cu = {
|
|
4504
4524
|
toolId: "graph",
|
|
4505
4525
|
name: "Graph",
|
|
4506
4526
|
description: "Graphing calculator and coordinate plane",
|
|
@@ -4513,7 +4533,7 @@ var iu = {
|
|
|
4513
4533
|
"graphingTool"
|
|
4514
4534
|
],
|
|
4515
4535
|
isVisibleInContext(e) {
|
|
4516
|
-
return
|
|
4536
|
+
return Mn(e);
|
|
4517
4537
|
},
|
|
4518
4538
|
renderToolbar(e, t) {
|
|
4519
4539
|
const n = Ce(this.toolId, t), r = {
|
|
@@ -4553,7 +4573,7 @@ var iu = {
|
|
|
4553
4573
|
subscribeActive: n.subscribeActive
|
|
4554
4574
|
};
|
|
4555
4575
|
}
|
|
4556
|
-
},
|
|
4576
|
+
}, uu = {
|
|
4557
4577
|
toolId: "periodicTable",
|
|
4558
4578
|
name: "Periodic Table",
|
|
4559
4579
|
description: "Chemistry periodic table reference",
|
|
@@ -4605,8 +4625,10 @@ var iu = {
|
|
|
4605
4625
|
subscribeActive: n.subscribeActive
|
|
4606
4626
|
};
|
|
4607
4627
|
}
|
|
4608
|
-
},
|
|
4628
|
+
}, hu = [
|
|
4609
4629
|
Bc,
|
|
4630
|
+
tu,
|
|
4631
|
+
nu,
|
|
4610
4632
|
ru,
|
|
4611
4633
|
iu,
|
|
4612
4634
|
ou,
|
|
@@ -4614,11 +4636,9 @@ var iu = {
|
|
|
4614
4636
|
au,
|
|
4615
4637
|
lu,
|
|
4616
4638
|
cu,
|
|
4617
|
-
uu
|
|
4618
|
-
hu,
|
|
4619
|
-
du
|
|
4639
|
+
uu
|
|
4620
4640
|
];
|
|
4621
|
-
function
|
|
4641
|
+
function du(e = {}) {
|
|
4622
4642
|
const t = new yc(), n = {
|
|
4623
4643
|
toolTagMap: {
|
|
4624
4644
|
...is,
|
|
@@ -4627,32 +4647,32 @@ function pu(e = {}) {
|
|
|
4627
4647
|
toolComponentFactory: e.toolComponentFactory,
|
|
4628
4648
|
toolComponentFactories: e.toolComponentFactories
|
|
4629
4649
|
}, r = (i) => e.overrides?.[i.toolId] || i;
|
|
4630
|
-
return e.includePackagedTools &&
|
|
4650
|
+
return e.includePackagedTools && fu(t, {
|
|
4631
4651
|
toolIds: e.toolIds,
|
|
4632
4652
|
applyOverrides: r
|
|
4633
4653
|
}), e.toolModuleLoaders && Object.keys(e.toolModuleLoaders).length > 0 && t.setToolModuleLoaders(e.toolModuleLoaders), t.setComponentOverrides(n), t;
|
|
4634
4654
|
}
|
|
4635
|
-
function
|
|
4655
|
+
function fu(e, t = {}) {
|
|
4636
4656
|
const n = t.toolIds && t.toolIds.length > 0 ? new Set(t.toolIds) : null, r = t.applyOverrides || ((i) => i);
|
|
4637
|
-
for (const i of
|
|
4657
|
+
for (const i of hu)
|
|
4638
4658
|
n && !n.has(i.toolId) || e.register(r(i));
|
|
4639
4659
|
}
|
|
4640
|
-
function
|
|
4641
|
-
return
|
|
4660
|
+
function pu(e = {}) {
|
|
4661
|
+
return du({
|
|
4642
4662
|
...e,
|
|
4643
4663
|
includePackagedTools: !0
|
|
4644
4664
|
});
|
|
4645
4665
|
}
|
|
4646
|
-
function
|
|
4647
|
-
const e =
|
|
4666
|
+
function gu() {
|
|
4667
|
+
const e = pu(), t = /* @__PURE__ */ new Set();
|
|
4648
4668
|
for (const n of e.getAllTools()) for (const r of n.pnpSupportIds || []) t.add(r);
|
|
4649
4669
|
return [...t].sort();
|
|
4650
4670
|
}
|
|
4651
|
-
var
|
|
4652
|
-
supports: [...
|
|
4671
|
+
var vu = gu(), Md = {
|
|
4672
|
+
supports: [...vu],
|
|
4653
4673
|
prohibitedSupports: [],
|
|
4654
4674
|
activateAtInit: []
|
|
4655
|
-
},
|
|
4675
|
+
}, mu = {
|
|
4656
4676
|
visual: {
|
|
4657
4677
|
magnification: "magnification",
|
|
4658
4678
|
screenMagnifier: "screenMagnifier",
|
|
@@ -4765,11 +4785,11 @@ var yu = mu(), Md = {
|
|
|
4765
4785
|
itemGlossary: "itemGlossary",
|
|
4766
4786
|
tutorialAvailable: "tutorialAvailable"
|
|
4767
4787
|
}
|
|
4768
|
-
}, Cd = Object.values(
|
|
4788
|
+
}, Cd = Object.values(mu).flatMap((e) => Object.values(e)), Ad = Qo("ToolCoordinator"), hr;
|
|
4769
4789
|
(function(e) {
|
|
4770
4790
|
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";
|
|
4771
|
-
})(
|
|
4772
|
-
var
|
|
4791
|
+
})(hr || (hr = {}));
|
|
4792
|
+
var yu = /* @__PURE__ */ new Set([
|
|
4773
4793
|
"speak",
|
|
4774
4794
|
"p",
|
|
4775
4795
|
"s",
|
|
@@ -4778,20 +4798,20 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
4778
4798
|
"say-as",
|
|
4779
4799
|
"voice",
|
|
4780
4800
|
"lang"
|
|
4781
|
-
]), Ni = /* @__PURE__ */ new Set(["audio", "phoneme"]), ps = (e) => e.replace(/"/g, '"').replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">").replace(/ /g, " ").replace(/ /g, " ").replace(/&/g, "&"),
|
|
4801
|
+
]), Ni = /* @__PURE__ */ new Set(["audio", "phoneme"]), ps = (e) => e.replace(/"/g, '"').replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">").replace(/ /g, " ").replace(/ /g, " ").replace(/&/g, "&"), on = (e, t, n) => {
|
|
4782
4802
|
for (let r = 0; r < t.length; r++) e.push({
|
|
4783
4803
|
char: t[r],
|
|
4784
4804
|
rawOffset: n === null ? null : n + r
|
|
4785
4805
|
});
|
|
4786
|
-
},
|
|
4806
|
+
}, bu = (e, t, n) => {
|
|
4787
4807
|
const r = t.slice(n).match(/^&(quot|apos|lt|gt|nbsp|amp|#160);/i);
|
|
4788
|
-
return r ? (
|
|
4808
|
+
return r ? (on(e, ps(r[0]), n), r[0].length) : 0;
|
|
4789
4809
|
}, Wi = (e) => {
|
|
4790
4810
|
e.push({
|
|
4791
4811
|
char: " ",
|
|
4792
4812
|
rawOffset: null
|
|
4793
4813
|
});
|
|
4794
|
-
},
|
|
4814
|
+
}, Tu = (e) => {
|
|
4795
4815
|
const t = /* @__PURE__ */ new Map(), n = [];
|
|
4796
4816
|
let r = !0;
|
|
4797
4817
|
for (const i of e) {
|
|
@@ -4807,7 +4827,7 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
4807
4827
|
text: n.join(""),
|
|
4808
4828
|
rawToSpokenOffsetMap: t
|
|
4809
4829
|
};
|
|
4810
|
-
},
|
|
4830
|
+
}, _u = (e) => e.match(/^<\/?\s*([A-Za-z0-9:-]+)/)?.[1]?.toLowerCase() || "", Su = (e, t) => {
|
|
4811
4831
|
const n = new RegExp(`${t}\\s*=\\s*("([^"]*)"|'([^']*)')`, "i"), r = e.match(n);
|
|
4812
4832
|
return ps(r?.[2] ?? r?.[3] ?? "") || null;
|
|
4813
4833
|
}, gs = (e) => {
|
|
@@ -4817,29 +4837,29 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
4817
4837
|
const s = e[i];
|
|
4818
4838
|
if (s !== "<") {
|
|
4819
4839
|
if (s === "&") {
|
|
4820
|
-
const f =
|
|
4840
|
+
const f = bu(t, e, i);
|
|
4821
4841
|
if (f > 0) {
|
|
4822
4842
|
i += f;
|
|
4823
4843
|
continue;
|
|
4824
4844
|
}
|
|
4825
4845
|
}
|
|
4826
|
-
|
|
4846
|
+
on(t, s, i), i++;
|
|
4827
4847
|
continue;
|
|
4828
4848
|
}
|
|
4829
4849
|
const a = e.indexOf(">", i + 1);
|
|
4830
4850
|
if (a < 0) {
|
|
4831
|
-
|
|
4851
|
+
on(t, s, i), i++;
|
|
4832
4852
|
continue;
|
|
4833
4853
|
}
|
|
4834
4854
|
r = !0;
|
|
4835
|
-
const l = e.slice(i, a + 1), c =
|
|
4855
|
+
const l = e.slice(i, a + 1), c = _u(l), u = /^<\s*\//.test(l), h = /\/\s*>$/.test(l);
|
|
4836
4856
|
if (!u && c === "sub") {
|
|
4837
|
-
const f =
|
|
4857
|
+
const f = Su(l, "alias");
|
|
4838
4858
|
if (!f) {
|
|
4839
4859
|
n = !0, i = a + 1;
|
|
4840
4860
|
continue;
|
|
4841
4861
|
}
|
|
4842
|
-
|
|
4862
|
+
on(t, f, null);
|
|
4843
4863
|
const p = e.toLowerCase().indexOf("</sub>", a + 1);
|
|
4844
4864
|
i = p >= 0 ? p + 6 : a + 1;
|
|
4845
4865
|
continue;
|
|
@@ -4852,16 +4872,16 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
4852
4872
|
i = a + 1;
|
|
4853
4873
|
continue;
|
|
4854
4874
|
}
|
|
4855
|
-
c && !
|
|
4875
|
+
c && !yu.has(c) && !Ni.has(c) && c !== "break" && c !== "sub" && (n = !0), !u && (c === "p" || c === "s") && Wi(t), i = a + 1;
|
|
4856
4876
|
}
|
|
4857
|
-
const o =
|
|
4877
|
+
const o = Tu(t);
|
|
4858
4878
|
return {
|
|
4859
4879
|
spokenText: P(o.text),
|
|
4860
4880
|
rawToSpokenOffsetMap: o.rawToSpokenOffsetMap,
|
|
4861
4881
|
unsupportedSemantic: n,
|
|
4862
4882
|
hasMarkup: r
|
|
4863
4883
|
};
|
|
4864
|
-
},
|
|
4884
|
+
}, wu = os(), vs = /* @__PURE__ */ new Map([
|
|
4865
4885
|
["zero", "0"],
|
|
4866
4886
|
["one", "1"],
|
|
4867
4887
|
["two", "2"],
|
|
@@ -4873,7 +4893,7 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
4873
4893
|
["eight", "8"],
|
|
4874
4894
|
["nine", "9"],
|
|
4875
4895
|
["ten", "10"]
|
|
4876
|
-
]),
|
|
4896
|
+
]), ku = [
|
|
4877
4897
|
{
|
|
4878
4898
|
phrase: [
|
|
4879
4899
|
"plus",
|
|
@@ -4948,9 +4968,9 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
4948
4968
|
visible: "+",
|
|
4949
4969
|
score: 5
|
|
4950
4970
|
}
|
|
4951
|
-
],
|
|
4971
|
+
], dr = (e) => {
|
|
4952
4972
|
const t = [];
|
|
4953
|
-
for (const n of e.matchAll(
|
|
4973
|
+
for (const n of e.matchAll(wu)) {
|
|
4954
4974
|
const r = n[0], i = n.index ?? 0;
|
|
4955
4975
|
t.push({
|
|
4956
4976
|
text: r,
|
|
@@ -4960,16 +4980,16 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
4960
4980
|
});
|
|
4961
4981
|
}
|
|
4962
4982
|
return t;
|
|
4963
|
-
},
|
|
4983
|
+
}, fr = (e) => vs.get(e.normalized) || e.normalized, xu = (e, t) => {
|
|
4964
4984
|
const n = [];
|
|
4965
4985
|
for (let r = 0; r < e.length; r++) {
|
|
4966
|
-
for (let i = 0; i < t.length; i++)
|
|
4986
|
+
for (let i = 0; i < t.length; i++) fr(e[r]) === fr(t[i]) && n.push({
|
|
4967
4987
|
spokenStartToken: r,
|
|
4968
4988
|
spokenEndToken: r + 1,
|
|
4969
4989
|
visibleToken: i,
|
|
4970
4990
|
score: 10
|
|
4971
4991
|
});
|
|
4972
|
-
for (const i of
|
|
4992
|
+
for (const i of ku) {
|
|
4973
4993
|
const o = e.slice(r, r + i.phrase.length);
|
|
4974
4994
|
if (o.length === i.phrase.length && o.every((s, a) => s.normalized === i.phrase[a]))
|
|
4975
4995
|
for (let s = 0; s < t.length; s++)
|
|
@@ -4982,8 +5002,8 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
4982
5002
|
}
|
|
4983
5003
|
}
|
|
4984
5004
|
return n;
|
|
4985
|
-
},
|
|
4986
|
-
const n =
|
|
5005
|
+
}, Eu = (e, t) => {
|
|
5006
|
+
const n = xu(e, t).sort((l, c) => e[l.spokenStartToken].start - e[c.spokenStartToken].start || t[l.visibleToken].start - t[c.visibleToken].start), r = new Array(n.length).fill(0), i = new Array(n.length).fill(-1);
|
|
4987
5007
|
for (let l = 0; l < n.length; l++) {
|
|
4988
5008
|
const c = n[l];
|
|
4989
5009
|
r[l] = c.score;
|
|
@@ -5012,12 +5032,12 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5012
5032
|
score: l.score
|
|
5013
5033
|
};
|
|
5014
5034
|
});
|
|
5015
|
-
},
|
|
5035
|
+
}, Mu = (e, t, n) => {
|
|
5016
5036
|
if (e.length === 0) return 0;
|
|
5017
5037
|
const r = e.length / Math.max(1, Math.min(t.length, n.length)), i = e.reduce((o, s) => o + s.score, 0) / e.length / 10;
|
|
5018
5038
|
return Math.min(1, r * i);
|
|
5019
5039
|
}, ms = (e) => {
|
|
5020
|
-
const t = gs(e.speechText), n = P(e.visibleText), r = t.spokenText, i =
|
|
5040
|
+
const t = gs(e.speechText), n = P(e.visibleText), r = t.spokenText, i = dr(r), o = dr(n), s = t.unsupportedSemantic ? [] : Eu(i, o), a = Mu(s, i, o), l = r === n && r.length > 0, c = s.length === 1 && s[0].score === 10 && i.length <= 2 && o.length <= 2, u = t.unsupportedSemantic ? "region-fallback" : l ? "exact-word" : (s.length >= 2 || c) && a >= 0.12 ? "anchor-span" : "region-fallback", h = t.unsupportedSemantic ? "unsupported" : t.hasMarkup ? "raw-ssml" : "plain-spoken-text";
|
|
5021
5041
|
return {
|
|
5022
5042
|
speechText: e.speechText,
|
|
5023
5043
|
spokenText: r,
|
|
@@ -5030,15 +5050,15 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5030
5050
|
visibleTokens: o,
|
|
5031
5051
|
rawToSpokenOffsetMap: t.rawToSpokenOffsetMap
|
|
5032
5052
|
};
|
|
5033
|
-
},
|
|
5053
|
+
}, Dr = (e, t) => e.find((n) => n.start <= t && t < n.end) || null, ys = (e) => {
|
|
5034
5054
|
if (!e || /^<[^>]+>$/.test(e.trim())) return null;
|
|
5035
|
-
const t =
|
|
5055
|
+
const t = dr(e)[0];
|
|
5036
5056
|
return t ? vs.get(t.normalized) || t.normalized : null;
|
|
5037
5057
|
}, zi = (e, t, n) => {
|
|
5038
5058
|
const r = ys(n);
|
|
5039
5059
|
if (!t || !r) return !1;
|
|
5040
|
-
const i =
|
|
5041
|
-
return i ?
|
|
5060
|
+
const i = Dr(e.spokenTokens, t.start);
|
|
5061
|
+
return i ? fr(i) === r : !1;
|
|
5042
5062
|
}, Hi = (e, t) => {
|
|
5043
5063
|
const n = e.rawToSpokenOffsetMap.get(t);
|
|
5044
5064
|
if (n !== void 0) return n;
|
|
@@ -5051,19 +5071,19 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5051
5071
|
}, Bi = (e, t, n) => {
|
|
5052
5072
|
const r = Hi(e, t);
|
|
5053
5073
|
if (r === null) return null;
|
|
5054
|
-
const i = Hi(e, Math.max(t, t + n - 1)), o =
|
|
5074
|
+
const i = Hi(e, Math.max(t, t + n - 1)), o = Dr(e.spokenTokens, r), s = i !== null && i >= r ? i - r + 1 : o ? o.end - r : n;
|
|
5055
5075
|
return {
|
|
5056
5076
|
start: r,
|
|
5057
5077
|
length: Math.max(1, s)
|
|
5058
5078
|
};
|
|
5059
5079
|
}, Di = (e, t, n) => {
|
|
5060
5080
|
if (t < 0 || t >= e.spokenText.length) return null;
|
|
5061
|
-
const r =
|
|
5081
|
+
const r = Dr(e.spokenTokens, t);
|
|
5062
5082
|
return r ? {
|
|
5063
5083
|
start: t,
|
|
5064
5084
|
length: Math.min(n, r.end - t)
|
|
5065
5085
|
} : null;
|
|
5066
|
-
},
|
|
5086
|
+
}, Cu = (e, t, n = 1, r) => {
|
|
5067
5087
|
if (e.boundaryOffsetMode === "unsupported" || !Number.isFinite(t)) return null;
|
|
5068
5088
|
const i = Math.max(1, Number.isFinite(n) ? n : 1);
|
|
5069
5089
|
if (r && /^<[^>]+>$/.test(r.trim())) return null;
|
|
@@ -5077,7 +5097,7 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5077
5097
|
return o || s;
|
|
5078
5098
|
}
|
|
5079
5099
|
return Di(e, t, i) || Bi(e, t, i);
|
|
5080
|
-
},
|
|
5100
|
+
}, Au = (e, t) => {
|
|
5081
5101
|
if (e.playbackMode === "region-fallback") return null;
|
|
5082
5102
|
const n = e.anchors.find((o) => o.spokenStart <= t && t < o.spokenEnd);
|
|
5083
5103
|
if (n) return {
|
|
@@ -5099,7 +5119,7 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5099
5119
|
start: Math.min(r.visibleStart, i.visibleStart),
|
|
5100
5120
|
end: Math.max(r.visibleEnd, i.visibleEnd)
|
|
5101
5121
|
} : null;
|
|
5102
|
-
},
|
|
5122
|
+
}, Ou = /* @__PURE__ */ new Map([
|
|
5103
5123
|
["+", ["plus"]],
|
|
5104
5124
|
["-", ["minus", "negative"]],
|
|
5105
5125
|
["−", ["minus", "negative"]],
|
|
@@ -5123,12 +5143,12 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5123
5143
|
["•", ["times"]],
|
|
5124
5144
|
["·", ["times"]],
|
|
5125
5145
|
["", ["times", "multiplied by"]]
|
|
5126
|
-
]),
|
|
5146
|
+
]), Iu = /* @__PURE__ */ new Map([
|
|
5127
5147
|
["", "function-application"],
|
|
5128
5148
|
["", "implicit-multiply"],
|
|
5129
5149
|
["", "invisible-separator"],
|
|
5130
5150
|
["", "invisible-plus"]
|
|
5131
|
-
]), bs = /* @__PURE__ */ new Map([["2", ["squared"]], ["3", ["cubed"]]]),
|
|
5151
|
+
]), bs = /* @__PURE__ */ new Map([["2", ["squared"]], ["3", ["cubed"]]]), $u = /* @__PURE__ */ new Map([
|
|
5132
5152
|
["msqrt", "radical"],
|
|
5133
5153
|
["mroot", "radical"],
|
|
5134
5154
|
["msub", "subscript"],
|
|
@@ -5138,11 +5158,11 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5138
5158
|
["munderover", "underoverscript"],
|
|
5139
5159
|
["mmultiscripts", "multiscript"],
|
|
5140
5160
|
["menclose", "enclosure"]
|
|
5141
|
-
]),
|
|
5161
|
+
]), Ru = (e) => e.replace(/\s+/g, " ").trim(), Xe = (e) => (e.localName || e.tagName || "").toLowerCase(), Lu = (e) => e.nodeType === Node.ELEMENT_NODE, yt = (e) => Array.from(e.childNodes).filter(Lu), Fr = (e) => Ru(e.textContent || ""), xe = (e, t) => ({
|
|
5142
5162
|
type: "element-range",
|
|
5143
5163
|
quality: t,
|
|
5144
5164
|
element: e
|
|
5145
|
-
}),
|
|
5165
|
+
}), Pu = (e) => {
|
|
5146
5166
|
switch (e) {
|
|
5147
5167
|
case "mi":
|
|
5148
5168
|
return "identifier";
|
|
@@ -5158,15 +5178,15 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5158
5178
|
default:
|
|
5159
5179
|
return "unknown";
|
|
5160
5180
|
}
|
|
5161
|
-
},
|
|
5162
|
-
const t = e.normalized ??
|
|
5181
|
+
}, Nu = (e, t) => t === "operator" ? e === "−" ? "-" : e : e.toLowerCase(), Wu = (e, t, n) => n === "fraction" ? ["over", "divided by"] : n === "superscript" ? bs.get(e) ?? [] : e === "|" ? ["absolute value"] : t === "operator" ? Ou.get(e) || [] : [], Qe = (e) => {
|
|
5182
|
+
const t = e.normalized ?? Nu(e.text, e.kind || "unknown");
|
|
5163
5183
|
return {
|
|
5164
5184
|
id: `math-token-${e.state.nextId++}`,
|
|
5165
5185
|
kind: e.kind,
|
|
5166
5186
|
role: e.role,
|
|
5167
5187
|
text: e.text,
|
|
5168
5188
|
normalized: t,
|
|
5169
|
-
spokenAliases:
|
|
5189
|
+
spokenAliases: Wu(e.text, e.kind, e.role),
|
|
5170
5190
|
sourceElement: e.sourceElement,
|
|
5171
5191
|
path: e.path,
|
|
5172
5192
|
target: e.target || xe(e.sourceElement, "element-range"),
|
|
@@ -5176,7 +5196,7 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5176
5196
|
e[n].push(t);
|
|
5177
5197
|
}, Ts = (e, t, n) => {
|
|
5178
5198
|
yt(e).forEach((r, i) => Ee(r, t, `${n}/${Xe(r)}[${i}]`));
|
|
5179
|
-
},
|
|
5199
|
+
}, zu = (e, t, n) => {
|
|
5180
5200
|
const r = yt(e);
|
|
5181
5201
|
r[0] && Ee(r[0], t, `${n}/numerator`), Ze(t, Qe({
|
|
5182
5202
|
state: t,
|
|
@@ -5187,7 +5207,7 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5187
5207
|
path: n,
|
|
5188
5208
|
target: xe(e, "element-range")
|
|
5189
5209
|
})), r[1] && Ee(r[1], t, `${n}/denominator`);
|
|
5190
|
-
},
|
|
5210
|
+
}, Hu = (e, t, n) => {
|
|
5191
5211
|
const r = e.getAttribute("open") || "(", i = e.getAttribute("close") || ")";
|
|
5192
5212
|
Ze(t, Qe({
|
|
5193
5213
|
state: t,
|
|
@@ -5206,12 +5226,12 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5206
5226
|
path: `${n}/close`,
|
|
5207
5227
|
target: xe(e, "element-range")
|
|
5208
5228
|
}));
|
|
5209
|
-
},
|
|
5229
|
+
}, Bu = (e, t, n) => {
|
|
5210
5230
|
const r = yt(e);
|
|
5211
5231
|
r[0] && Ee(r[0], t, `${n}/base`);
|
|
5212
5232
|
const i = r[1];
|
|
5213
5233
|
if (!i) return;
|
|
5214
|
-
const o =
|
|
5234
|
+
const o = Fr(i);
|
|
5215
5235
|
if (bs.has(o)) {
|
|
5216
5236
|
Ze(t, Qe({
|
|
5217
5237
|
state: t,
|
|
@@ -5226,18 +5246,18 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5226
5246
|
return;
|
|
5227
5247
|
}
|
|
5228
5248
|
Ee(i, t, `${n}/exponent`);
|
|
5229
|
-
},
|
|
5249
|
+
}, Du = (e, t, n, r) => {
|
|
5230
5250
|
Ze(t, Qe({
|
|
5231
5251
|
state: t,
|
|
5232
5252
|
kind: "structure",
|
|
5233
5253
|
role: r,
|
|
5234
|
-
text:
|
|
5254
|
+
text: Fr(e) || r,
|
|
5235
5255
|
normalized: `\0${r}`,
|
|
5236
5256
|
sourceElement: e,
|
|
5237
5257
|
path: n,
|
|
5238
5258
|
target: xe(e, "element-range")
|
|
5239
5259
|
}));
|
|
5240
|
-
},
|
|
5260
|
+
}, Fu = (e, t, n) => {
|
|
5241
5261
|
let r = 0;
|
|
5242
5262
|
for (const i of yt(e))
|
|
5243
5263
|
(Xe(i) === "mtr" || Xe(i) === "mlabeledtr") && (r++, Ze(t, Qe({
|
|
@@ -5250,10 +5270,10 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5250
5270
|
path: `${n}/row[${r}]`,
|
|
5251
5271
|
target: xe(i, "region-fallback")
|
|
5252
5272
|
}), "layoutTargets")), Ee(i, t, `${n}/${Xe(i)}[${r}]`);
|
|
5253
|
-
},
|
|
5254
|
-
const r =
|
|
5273
|
+
}, ju = (e, t, n) => {
|
|
5274
|
+
const r = Fr(e);
|
|
5255
5275
|
if (!r) return;
|
|
5256
|
-
const i =
|
|
5276
|
+
const i = Pu(Xe(e)), o = i === "operator" ? Iu.get(r) : void 0, s = o ?? (i === "operator" && (r === "(" || r === ")") ? "grouping-fence" : i);
|
|
5257
5277
|
Ze(t, Qe({
|
|
5258
5278
|
state: t,
|
|
5259
5279
|
kind: i,
|
|
@@ -5284,19 +5304,19 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5284
5304
|
case "mtext":
|
|
5285
5305
|
case "ms":
|
|
5286
5306
|
case "mspace":
|
|
5287
|
-
|
|
5307
|
+
ju(e, t, n);
|
|
5288
5308
|
return;
|
|
5289
5309
|
case "mfrac":
|
|
5290
|
-
|
|
5310
|
+
zu(e, t, n);
|
|
5291
5311
|
return;
|
|
5292
5312
|
case "msup":
|
|
5293
|
-
|
|
5313
|
+
Bu(e, t, n);
|
|
5294
5314
|
return;
|
|
5295
5315
|
case "mfenced":
|
|
5296
|
-
|
|
5316
|
+
Hu(e, t, n);
|
|
5297
5317
|
return;
|
|
5298
5318
|
case "mtable":
|
|
5299
|
-
|
|
5319
|
+
Fu(e, t, n);
|
|
5300
5320
|
return;
|
|
5301
5321
|
case "mphantom":
|
|
5302
5322
|
return;
|
|
@@ -5306,15 +5326,15 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5306
5326
|
return;
|
|
5307
5327
|
}
|
|
5308
5328
|
default: {
|
|
5309
|
-
const i =
|
|
5329
|
+
const i = $u.get(r);
|
|
5310
5330
|
if (i) {
|
|
5311
|
-
|
|
5331
|
+
Du(e, t, n, i);
|
|
5312
5332
|
return;
|
|
5313
5333
|
}
|
|
5314
5334
|
Ts(e, t, n);
|
|
5315
5335
|
}
|
|
5316
5336
|
}
|
|
5317
|
-
},
|
|
5337
|
+
}, Vu = (e) => {
|
|
5318
5338
|
const t = {
|
|
5319
5339
|
tokens: [],
|
|
5320
5340
|
layoutTargets: [],
|
|
@@ -5325,7 +5345,7 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5325
5345
|
layoutTargets: t.layoutTargets,
|
|
5326
5346
|
expressionTarget: xe(e, "region-fallback")
|
|
5327
5347
|
};
|
|
5328
|
-
},
|
|
5348
|
+
}, qu = (e) => e.boundary && e.alignment.segments.find((t) => t.speechTokenIds.includes(e.boundary.token.id))?.target || null, Uu = 0.95, Gu = (e) => {
|
|
5329
5349
|
const t = [], n = /* @__PURE__ */ new Set(), r = (i) => {
|
|
5330
5350
|
const o = i.toLowerCase().trim().split(/\s+/).filter(Boolean);
|
|
5331
5351
|
if (o.length === 0) return;
|
|
@@ -5350,11 +5370,11 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5350
5370
|
o && (r = i.length);
|
|
5351
5371
|
}
|
|
5352
5372
|
return r;
|
|
5353
|
-
},
|
|
5373
|
+
}, Yu = (e, t) => {
|
|
5354
5374
|
const n = [];
|
|
5355
5375
|
let r = 0;
|
|
5356
5376
|
for (const i of t) {
|
|
5357
|
-
const o =
|
|
5377
|
+
const o = Gu(i);
|
|
5358
5378
|
if (i.optional) {
|
|
5359
5379
|
const s = Fi(e, r, o);
|
|
5360
5380
|
s > 0 && (n.push({
|
|
@@ -5376,23 +5396,23 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5376
5396
|
}
|
|
5377
5397
|
}
|
|
5378
5398
|
return n;
|
|
5379
|
-
},
|
|
5399
|
+
}, Ku = (e, t, n) => {
|
|
5380
5400
|
const r = n.filter((s) => !s.optional).length, i = e.filter((s) => !s.math.optional).length, o = e.reduce((s, a) => s + a.speechTokens.length, 0);
|
|
5381
5401
|
return r > 0 && i === r && o === t.length;
|
|
5382
|
-
},
|
|
5402
|
+
}, Xu = (e) => e.map(({ speechTokens: t, math: n }) => ({
|
|
5383
5403
|
speechTokenIds: t.map((r) => r.id),
|
|
5384
5404
|
mathTokenIds: [n.id],
|
|
5385
5405
|
score: 1,
|
|
5386
5406
|
confidence: 1,
|
|
5387
5407
|
target: n.target
|
|
5388
|
-
})),
|
|
5389
|
-
const t = e.minExactWordConfidence ??
|
|
5408
|
+
})), Ju = (e) => {
|
|
5409
|
+
const t = e.minExactWordConfidence ?? Uu, n = Yu(e.speech.tokens, e.math.tokens), r = Ku(n, e.speech.tokens, e.math.tokens) ? 1 : 0;
|
|
5390
5410
|
return {
|
|
5391
|
-
segments: r >= t ?
|
|
5411
|
+
segments: r >= t ? Xu(n) : [],
|
|
5392
5412
|
confidence: r,
|
|
5393
5413
|
fallbackTarget: e.math.expressionTarget
|
|
5394
5414
|
};
|
|
5395
|
-
}, _s = os(),
|
|
5415
|
+
}, _s = os(), Qu = /* @__PURE__ */ new Map([
|
|
5396
5416
|
["zero", "0"],
|
|
5397
5417
|
["one", "1"],
|
|
5398
5418
|
["two", "2"],
|
|
@@ -5406,8 +5426,8 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5406
5426
|
["ten", "10"]
|
|
5407
5427
|
]), Ss = (e) => {
|
|
5408
5428
|
const t = e.toLowerCase();
|
|
5409
|
-
return
|
|
5410
|
-
},
|
|
5429
|
+
return Qu.get(t) || t;
|
|
5430
|
+
}, Zu = (e) => {
|
|
5411
5431
|
const t = [];
|
|
5412
5432
|
for (const n of e.matchAll(_s)) {
|
|
5413
5433
|
const r = n[0], i = n.index ?? 0;
|
|
@@ -5428,17 +5448,17 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5428
5448
|
return {
|
|
5429
5449
|
speechText: e.speechText,
|
|
5430
5450
|
spokenText: t.spokenText,
|
|
5431
|
-
tokens:
|
|
5451
|
+
tokens: Zu(t.spokenText),
|
|
5432
5452
|
rawToSpokenOffsetMap: t.rawToSpokenOffsetMap,
|
|
5433
5453
|
boundaryOffsetSpace: t.unsupportedSemantic ? "unsupported" : t.hasMarkup ? "raw-ssml" : "plain-spoken-text",
|
|
5434
5454
|
unsupportedSemantic: t.unsupportedSemantic,
|
|
5435
5455
|
hasMarkup: t.hasMarkup
|
|
5436
5456
|
};
|
|
5437
|
-
},
|
|
5457
|
+
}, jr = (e) => {
|
|
5438
5458
|
if (!e || /^<[^>]+>$/.test(e.trim())) return null;
|
|
5439
5459
|
const t = e.match(_s);
|
|
5440
5460
|
return t?.[0] ? Ss(t[0]) : null;
|
|
5441
|
-
},
|
|
5461
|
+
}, eh = (e, t) => e.find((n) => n.start <= t && t < n.end) || null, th = (e, t) => {
|
|
5442
5462
|
const n = e.rawToSpokenOffsetMap.get(t);
|
|
5443
5463
|
if (n !== void 0) return n;
|
|
5444
5464
|
for (let r = t; r < e.speechText.length; r++) {
|
|
@@ -5447,57 +5467,57 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5447
5467
|
if (e.speechText[r] === ">") break;
|
|
5448
5468
|
}
|
|
5449
5469
|
return null;
|
|
5450
|
-
},
|
|
5470
|
+
}, pr = (e, t, n) => {
|
|
5451
5471
|
if (t === null) return null;
|
|
5452
|
-
const r =
|
|
5472
|
+
const r = eh(e.tokens, t);
|
|
5453
5473
|
return r ? {
|
|
5454
5474
|
token: r,
|
|
5455
5475
|
start: t,
|
|
5456
5476
|
length: Math.max(1, Math.min(n, r.end - t)),
|
|
5457
5477
|
confidence: 0.75
|
|
5458
5478
|
} : null;
|
|
5459
|
-
},
|
|
5460
|
-
const n =
|
|
5479
|
+
}, gr = (e, t) => {
|
|
5480
|
+
const n = jr(t);
|
|
5461
5481
|
return !!(e && n && e.token.normalized === n);
|
|
5462
|
-
},
|
|
5482
|
+
}, nh = (e) => {
|
|
5463
5483
|
if (e.tokenization.boundaryOffsetSpace === "unsupported" || !Number.isFinite(e.position) || e.boundaryWord && /^<[^>]+>$/.test(e.boundaryWord.trim())) return null;
|
|
5464
|
-
const t = Math.max(1, Number.isFinite(e.length) ? e.length : 1), n =
|
|
5465
|
-
return
|
|
5484
|
+
const t = Math.max(1, Number.isFinite(e.length) ? e.length : 1), n = pr(e.tokenization, th(e.tokenization, e.position), t), r = pr(e.tokenization, e.position >= 0 && e.position < e.tokenization.spokenText.length ? e.position : null, t);
|
|
5485
|
+
return gr(n, e.boundaryWord) ? {
|
|
5466
5486
|
...n,
|
|
5467
5487
|
confidence: 1
|
|
5468
|
-
} :
|
|
5488
|
+
} : gr(r, e.boundaryWord) ? {
|
|
5469
5489
|
...r,
|
|
5470
5490
|
confidence: 1
|
|
5471
|
-
} : e.boundaryWord &&
|
|
5472
|
-
},
|
|
5491
|
+
} : e.boundaryWord && jr(e.boundaryWord) ? null : e.tokenization.boundaryOffsetSpace === "raw-ssml" ? n || r : r || n;
|
|
5492
|
+
}, rh = (e) => {
|
|
5473
5493
|
if (e.tokenization.boundaryOffsetSpace === "unsupported" || !Number.isFinite(e.position) || e.boundaryWord && /^<[^>]+>$/.test(e.boundaryWord.trim())) return null;
|
|
5474
|
-
const t = Math.max(1, Number.isFinite(e.length) ? e.length : 1), n =
|
|
5475
|
-
return
|
|
5494
|
+
const t = Math.max(1, Number.isFinite(e.length) ? e.length : 1), n = pr(e.tokenization, e.position >= 0 && e.position < e.tokenization.spokenText.length ? e.position : null, t);
|
|
5495
|
+
return gr(n, e.boundaryWord) ? {
|
|
5476
5496
|
...n,
|
|
5477
5497
|
confidence: 1
|
|
5478
|
-
} : e.boundaryWord &&
|
|
5479
|
-
},
|
|
5480
|
-
const t = Ft({ speechText: e.speechText }), n =
|
|
5498
|
+
} : e.boundaryWord && jr(e.boundaryWord) ? null : n;
|
|
5499
|
+
}, Sn = (e) => {
|
|
5500
|
+
const t = Ft({ speechText: e.speechText }), n = Vu(e.mathElement);
|
|
5481
5501
|
return {
|
|
5482
5502
|
speech: t,
|
|
5483
5503
|
math: n,
|
|
5484
|
-
result:
|
|
5504
|
+
result: Ju({
|
|
5485
5505
|
speech: t,
|
|
5486
5506
|
math: n
|
|
5487
5507
|
})
|
|
5488
5508
|
};
|
|
5489
|
-
},
|
|
5490
|
-
const n =
|
|
5509
|
+
}, ih = (e, t) => {
|
|
5510
|
+
const n = rh({
|
|
5491
5511
|
tokenization: e.speech,
|
|
5492
5512
|
position: t.position,
|
|
5493
5513
|
length: t.length,
|
|
5494
5514
|
boundaryWord: t.boundaryWord
|
|
5495
5515
|
});
|
|
5496
|
-
return
|
|
5516
|
+
return qu({
|
|
5497
5517
|
alignment: e.result,
|
|
5498
5518
|
boundary: n
|
|
5499
5519
|
});
|
|
5500
|
-
},
|
|
5520
|
+
}, oh = (e, t) => {
|
|
5501
5521
|
if (!t.boundaryWord || /^<[^>]+>$/.test(t.boundaryWord.trim())) return null;
|
|
5502
5522
|
const n = Ft({ speechText: t.boundaryWord }).tokens[0];
|
|
5503
5523
|
if (!n) return null;
|
|
@@ -5506,7 +5526,7 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5506
5526
|
return i.normalized.toLowerCase() === o || i.spokenAliases.some((s) => s.toLowerCase() === o);
|
|
5507
5527
|
});
|
|
5508
5528
|
return r.length === 1 ? r[0].target : null;
|
|
5509
|
-
},
|
|
5529
|
+
}, vr = "http://www.w3.org/1998/Math/MathML", sh = /* @__PURE__ */ new Set([
|
|
5510
5530
|
"math",
|
|
5511
5531
|
"maction",
|
|
5512
5532
|
"menclose",
|
|
@@ -5540,7 +5560,7 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5540
5560
|
"semantics",
|
|
5541
5561
|
"annotation",
|
|
5542
5562
|
"annotation-xml"
|
|
5543
|
-
]),
|
|
5563
|
+
]), ah = /* @__PURE__ */ new Set([
|
|
5544
5564
|
"accent",
|
|
5545
5565
|
"accentunder",
|
|
5546
5566
|
"align",
|
|
@@ -5592,29 +5612,29 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5592
5612
|
"width",
|
|
5593
5613
|
"xmlns",
|
|
5594
5614
|
"xml:lang"
|
|
5595
|
-
]), ws = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"),
|
|
5615
|
+
]), ws = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"), lh = (e) => ws(e).replace(/"/g, """), ch = (e, t) => {
|
|
5596
5616
|
const n = e.toLowerCase(), r = t.trim().toLowerCase();
|
|
5597
|
-
return !!(n.startsWith("on") || !
|
|
5598
|
-
},
|
|
5617
|
+
return !!(n.startsWith("on") || !ah.has(n) || r.includes("javascript:") || r.includes("data:text/html"));
|
|
5618
|
+
}, uh = (e) => {
|
|
5599
5619
|
const t = e.localName.toLowerCase();
|
|
5600
|
-
if (!
|
|
5620
|
+
if (!sh.has(t)) return !1;
|
|
5601
5621
|
const n = e.namespaceURI;
|
|
5602
|
-
return !n || n ===
|
|
5622
|
+
return !n || n === vr || n === "http://www.w3.org/1999/xhtml";
|
|
5603
5623
|
}, ks = (e) => {
|
|
5604
5624
|
if (e.nodeType === Node.TEXT_NODE) return ws(e.textContent || "");
|
|
5605
5625
|
if (e.nodeType === Node.COMMENT_NODE) return "";
|
|
5606
5626
|
if (e.nodeType !== Node.ELEMENT_NODE) return null;
|
|
5607
5627
|
const t = e;
|
|
5608
|
-
if (!
|
|
5628
|
+
if (!uh(t)) return null;
|
|
5609
5629
|
const n = t.localName.toLowerCase(), r = [];
|
|
5610
5630
|
for (const o of Array.from(t.attributes)) {
|
|
5611
5631
|
const s = o.name.toLowerCase();
|
|
5612
|
-
if (!
|
|
5613
|
-
if (s === "xmlns" && o.value !==
|
|
5614
|
-
r.push(`${s}="${
|
|
5632
|
+
if (!ch(s, o.value)) {
|
|
5633
|
+
if (s === "xmlns" && o.value !== vr) return null;
|
|
5634
|
+
r.push(`${s}="${lh(o.value)}"`);
|
|
5615
5635
|
}
|
|
5616
5636
|
}
|
|
5617
|
-
n === "math" && !r.some((o) => o.startsWith("xmlns=")) && r.unshift(`xmlns="${
|
|
5637
|
+
n === "math" && !r.some((o) => o.startsWith("xmlns=")) && r.unshift(`xmlns="${vr}"`);
|
|
5618
5638
|
const i = [];
|
|
5619
5639
|
for (const o of Array.from(t.childNodes)) {
|
|
5620
5640
|
const s = ks(o);
|
|
@@ -5622,10 +5642,10 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5622
5642
|
i.push(s);
|
|
5623
5643
|
}
|
|
5624
5644
|
return `<${n}${r.length > 0 ? ` ${r.join(" ")}` : ""}>${i.join("")}</${n}>`;
|
|
5625
|
-
},
|
|
5645
|
+
}, hh = (e) => typeof DOMParser < "u" ? new DOMParser().parseFromString(e, "application/xml") : null, Un = (e) => {
|
|
5626
5646
|
const t = String(e || "").trim();
|
|
5627
5647
|
if (!t) return null;
|
|
5628
|
-
const n =
|
|
5648
|
+
const n = hh(t);
|
|
5629
5649
|
if (!n || n.getElementsByTagName("parsererror").length > 0) return null;
|
|
5630
5650
|
const r = n.documentElement;
|
|
5631
5651
|
return !r || r.localName.toLowerCase() !== "math" ? null : ks(r);
|
|
@@ -5640,25 +5660,25 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5640
5660
|
}), Es = (e) => e.classList?.contains("MathJax") || e.tagName?.toLowerCase() === "mjx-container", Ms = (e) => e.tagName?.toLowerCase() === "mjx-assistive-mml", Cs = (e) => {
|
|
5641
5661
|
const t = e.tagName?.toLowerCase();
|
|
5642
5662
|
return t === "annotation" || t === "annotation-xml";
|
|
5643
|
-
},
|
|
5663
|
+
}, dh = (e) => {
|
|
5644
5664
|
const t = e.getAttribute("data-mathml");
|
|
5645
5665
|
return t && t.trim() ? t : null;
|
|
5646
|
-
},
|
|
5647
|
-
if (e.tagName.toLowerCase() === "math") return
|
|
5648
|
-
const t =
|
|
5666
|
+
}, fh = (e) => e.querySelector("mjx-assistive-mml math")?.outerHTML || null, ph = (e) => {
|
|
5667
|
+
if (e.tagName.toLowerCase() === "math") return Un(e.outerHTML);
|
|
5668
|
+
const t = dh(e);
|
|
5649
5669
|
if (t) {
|
|
5650
|
-
const n =
|
|
5670
|
+
const n = Un(t);
|
|
5651
5671
|
if (n) return n;
|
|
5652
5672
|
}
|
|
5653
5673
|
if (Es(e)) {
|
|
5654
|
-
const n =
|
|
5674
|
+
const n = fh(e);
|
|
5655
5675
|
if (n) {
|
|
5656
|
-
const r =
|
|
5676
|
+
const r = Un(n);
|
|
5657
5677
|
if (r) return r;
|
|
5658
5678
|
}
|
|
5659
5679
|
}
|
|
5660
5680
|
return null;
|
|
5661
|
-
},
|
|
5681
|
+
}, gh = /* @__PURE__ */ new Set([
|
|
5662
5682
|
"P",
|
|
5663
5683
|
"H1",
|
|
5664
5684
|
"H2",
|
|
@@ -5674,7 +5694,7 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5674
5694
|
"FIGCAPTION",
|
|
5675
5695
|
"LABEL",
|
|
5676
5696
|
"BUTTON"
|
|
5677
|
-
]),
|
|
5697
|
+
]), vh = /* @__PURE__ */ new Set([
|
|
5678
5698
|
"heading",
|
|
5679
5699
|
"listitem",
|
|
5680
5700
|
"option",
|
|
@@ -5683,18 +5703,18 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5683
5703
|
"cell",
|
|
5684
5704
|
"columnheader",
|
|
5685
5705
|
"rowheader"
|
|
5686
|
-
]),
|
|
5706
|
+
]), mh = (e, t) => {
|
|
5687
5707
|
let n = e.parentElement, r = null;
|
|
5688
5708
|
for (; n && n !== t; ) {
|
|
5689
5709
|
const i = (n.getAttribute("role") || "").toLowerCase(), o = n.tagName.toUpperCase();
|
|
5690
|
-
if (
|
|
5710
|
+
if (gh.has(o) || vh.has(i)) {
|
|
5691
5711
|
r = n;
|
|
5692
5712
|
break;
|
|
5693
5713
|
}
|
|
5694
5714
|
n = n.parentElement;
|
|
5695
5715
|
}
|
|
5696
5716
|
return r || t;
|
|
5697
|
-
},
|
|
5717
|
+
}, yh = (e) => !!(typeof e.querySelector == "function" && e.querySelector("math, [data-mathml], .MathJax, mjx-container, mjx-assistive-mml")) || e.tagName?.toLowerCase() === "math" || e.hasAttribute?.("data-mathml") || Es(e), Fe = (e, t, n) => {
|
|
5698
5718
|
/[.,;:!?]/.test(t) && e.chars.length > 0 && e.chars[e.chars.length - 1] === " " && (e.chars.pop(), e.position--, e.map.delete(e.position)), e.chars.push(t), n ? (e.map.set(e.position, n), e.lastMapped = n) : e.lastMapped && e.map.set(e.position, e.lastMapped), e.position++;
|
|
5699
5719
|
}, As = (e, t) => {
|
|
5700
5720
|
if (e.inLeadingWhitespace || e.lastCharWasWhitespace || e.chars.length === 0) return !1;
|
|
@@ -5727,7 +5747,7 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5727
5747
|
offset: i
|
|
5728
5748
|
}), r = !0, e.lastCharWasWhitespace = !1;
|
|
5729
5749
|
}
|
|
5730
|
-
},
|
|
5750
|
+
}, bh = (e, t) => {
|
|
5731
5751
|
for (let n = 0; n < t.text.length; n++) {
|
|
5732
5752
|
const r = t.text[n], i = /\s/.test(r), o = t.map.get(n) || null, s = o?.node || e.lastMapped?.node || null, a = o?.offset ?? e.lastMapped?.offset ?? 0, l = o ? {
|
|
5733
5753
|
node: o.node,
|
|
@@ -5755,7 +5775,7 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5755
5775
|
offset: a
|
|
5756
5776
|
});
|
|
5757
5777
|
}
|
|
5758
|
-
},
|
|
5778
|
+
}, Th = (e) => {
|
|
5759
5779
|
if (typeof DOMParser > "u") return "";
|
|
5760
5780
|
const t = new DOMParser().parseFromString(e, "application/xml");
|
|
5761
5781
|
if (t.getElementsByTagName("parsererror").length > 0) return "";
|
|
@@ -5771,7 +5791,7 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5771
5791
|
for (const s of Array.from(o.childNodes)) r(s);
|
|
5772
5792
|
};
|
|
5773
5793
|
return r(t.documentElement), P(n.join(" "));
|
|
5774
|
-
},
|
|
5794
|
+
}, _h = (e, t, n) => {
|
|
5775
5795
|
const r = xs(n), i = (a) => {
|
|
5776
5796
|
if (Tt(a, e)) return;
|
|
5777
5797
|
if (a.nodeType === 3) {
|
|
@@ -5789,15 +5809,15 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5789
5809
|
text: o,
|
|
5790
5810
|
map: r.map
|
|
5791
5811
|
};
|
|
5792
|
-
const s =
|
|
5812
|
+
const s = Th(t);
|
|
5793
5813
|
return s ? {
|
|
5794
5814
|
text: s,
|
|
5795
5815
|
map: /* @__PURE__ */ new Map()
|
|
5796
|
-
} :
|
|
5816
|
+
} : Tn(e, n);
|
|
5797
5817
|
}, Is = (e) => {
|
|
5798
5818
|
for (; e.chars.length > 0 && /\s/.test(e.chars[e.chars.length - 1]); )
|
|
5799
5819
|
e.chars.pop(), e.position--, e.map.delete(e.position);
|
|
5800
|
-
},
|
|
5820
|
+
}, Sh = (e, t) => {
|
|
5801
5821
|
const n = xs(t), r = [];
|
|
5802
5822
|
let i = 0, o, s = !1;
|
|
5803
5823
|
const a = () => {
|
|
@@ -5810,18 +5830,18 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5810
5830
|
}, l = (u) => {
|
|
5811
5831
|
if (Tt(u, e)) return;
|
|
5812
5832
|
if (u.nodeType === Node.TEXT_NODE) {
|
|
5813
|
-
const p =
|
|
5833
|
+
const p = mh(u, e);
|
|
5814
5834
|
o && p !== o && a(), o = p, Os(n, u);
|
|
5815
5835
|
return;
|
|
5816
5836
|
}
|
|
5817
5837
|
if (u.nodeType !== Node.ELEMENT_NODE) return;
|
|
5818
5838
|
const h = u;
|
|
5819
5839
|
if (Ms(h)) return;
|
|
5820
|
-
const f =
|
|
5840
|
+
const f = ph(h);
|
|
5821
5841
|
if (f) {
|
|
5822
5842
|
a();
|
|
5823
|
-
const p =
|
|
5824
|
-
|
|
5843
|
+
const p = _h(h, f, t);
|
|
5844
|
+
bh(n, p);
|
|
5825
5845
|
const m = P(p.text);
|
|
5826
5846
|
r.push({
|
|
5827
5847
|
type: "math",
|
|
@@ -5844,8 +5864,8 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5844
5864
|
containsMathMarkup: s
|
|
5845
5865
|
};
|
|
5846
5866
|
}, At = (e, t) => {
|
|
5847
|
-
if (!
|
|
5848
|
-
const { text: n, map: r } =
|
|
5867
|
+
if (!yh(e)) {
|
|
5868
|
+
const { text: n, map: r } = Tn(e, t);
|
|
5849
5869
|
return {
|
|
5850
5870
|
visibleText: n,
|
|
5851
5871
|
map: r,
|
|
@@ -5856,8 +5876,8 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5856
5876
|
containsMathMarkup: !1
|
|
5857
5877
|
};
|
|
5858
5878
|
}
|
|
5859
|
-
return
|
|
5860
|
-
},
|
|
5879
|
+
return Sh(e, t);
|
|
5880
|
+
}, wh = (e, t) => cs([e], t), kh = (e) => (e || "en").split("-")[0].toLowerCase() || "en", xh = /* @__PURE__ */ new Set([
|
|
5861
5881
|
"H1",
|
|
5862
5882
|
"H2",
|
|
5863
5883
|
"H3",
|
|
@@ -5867,17 +5887,17 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5867
5887
|
"LI",
|
|
5868
5888
|
"LABEL",
|
|
5869
5889
|
"BUTTON"
|
|
5870
|
-
]),
|
|
5890
|
+
]), Eh = /* @__PURE__ */ new Set([
|
|
5871
5891
|
"heading",
|
|
5872
5892
|
"listitem",
|
|
5873
5893
|
"option",
|
|
5874
5894
|
"radio"
|
|
5875
|
-
]),
|
|
5895
|
+
]), Mh = (e) => {
|
|
5876
5896
|
if (e.type !== "text" || !e.sourceElement) return !1;
|
|
5877
5897
|
const t = e.sourceElement.tagName.toUpperCase(), n = (e.sourceElement.getAttribute("role") || "").toLowerCase();
|
|
5878
|
-
return
|
|
5879
|
-
},
|
|
5880
|
-
const t = e.resolveMathSpeech ??
|
|
5898
|
+
return xh.has(t) || Eh.has(n);
|
|
5899
|
+
}, Ch = async (e) => {
|
|
5900
|
+
const t = e.resolveMathSpeech ?? wh, { visibleText: n } = e, r = [];
|
|
5881
5901
|
let i = 0;
|
|
5882
5902
|
const o = (a) => {
|
|
5883
5903
|
const l = P(a), c = n.indexOf(l, i), u = c >= 0 ? c : i, h = u + l.length;
|
|
@@ -5889,10 +5909,10 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5889
5909
|
for (let a = 0; a < e.chunks.length; a++) {
|
|
5890
5910
|
const l = e.chunks[a];
|
|
5891
5911
|
if (l.type === "text") {
|
|
5892
|
-
const p =
|
|
5912
|
+
const p = Mh(l) ? [{
|
|
5893
5913
|
text: l.text,
|
|
5894
5914
|
offset: 0
|
|
5895
|
-
}] :
|
|
5915
|
+
}] : Hr(l.text, { locale: e.language });
|
|
5896
5916
|
for (const m of p) {
|
|
5897
5917
|
const y = P(m.text);
|
|
5898
5918
|
if (!y) continue;
|
|
@@ -5929,19 +5949,19 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5929
5949
|
}
|
|
5930
5950
|
return {
|
|
5931
5951
|
segments: r,
|
|
5932
|
-
locale:
|
|
5952
|
+
locale: kh(e.language),
|
|
5933
5953
|
visibleText: n,
|
|
5934
5954
|
plainSpeechText: P(s.join(" "))
|
|
5935
5955
|
};
|
|
5936
|
-
},
|
|
5937
|
-
const t = Math.max(1, e.maxEntries ??
|
|
5956
|
+
}, Ah = (e) => (e || "en").split("-")[0].toLowerCase() || "en", Oh = "sre-v1", Ih = 256, mr = (e) => Array.isArray(e) ? `array:[${e.map(mr).join(",")}]` : e && typeof e == "object" ? `object:{${Object.entries(e).sort(([t], [n]) => t.localeCompare(n)).map(([t, n]) => `${JSON.stringify(t)}:${mr(n)}`).join(",")}}` : e === null ? "null:null" : typeof e > "u" ? "undefined:" : typeof e == "function" ? `function:${e.name || "anonymous"}` : typeof e == "symbol" ? `symbol:${String(e)}` : typeof e == "bigint" ? `bigint:${e.toString()}` : typeof e == "number" ? Number.isFinite(e) ? `number:${e}` : `number:${String(e)}` : `${typeof e}:${JSON.stringify(e)}`, ji = (e, t, n, r) => `${Oh}\0${Ah(e)}\0${t ? "ssml" : "plain"}\0${mr(n ?? null)}\0${r}`, $h = (e = {}) => {
|
|
5957
|
+
const t = Math.max(1, e.maxEntries ?? Ih), n = e.resolve ?? ((o, s) => cs([o], s)), r = /* @__PURE__ */ new Map(), i = (o, s) => {
|
|
5938
5958
|
for (r.delete(o), r.set(o, s); r.size > t; ) {
|
|
5939
5959
|
const a = r.keys().next().value;
|
|
5940
5960
|
a !== void 0 && r.delete(a);
|
|
5941
5961
|
}
|
|
5942
5962
|
};
|
|
5943
5963
|
return async (o, s) => {
|
|
5944
|
-
const a =
|
|
5964
|
+
const a = An(s.mathSpeech), l = s.produceSsml === !0, c = ji(s.language, l, a, o.mathml), u = r.get(c);
|
|
5945
5965
|
if (u)
|
|
5946
5966
|
return r.delete(c), r.set(c, u), u;
|
|
5947
5967
|
const h = await n(o, {
|
|
@@ -5954,13 +5974,13 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5954
5974
|
usedFallback: h.usedFallback
|
|
5955
5975
|
}), i(c, h), h;
|
|
5956
5976
|
};
|
|
5957
|
-
},
|
|
5977
|
+
}, Rh = (e) => !e || /^<[^>]+>$/.test(e.trim()) ? null : Ft({ speechText: e }).tokens[0]?.normalized || null, Lh = (e, t) => {
|
|
5958
5978
|
const n = Ft({ speechText: e.speechText });
|
|
5959
5979
|
if (!Number.isFinite(t.position)) return {
|
|
5960
5980
|
boundary: null,
|
|
5961
5981
|
spokenText: n.spokenText
|
|
5962
5982
|
};
|
|
5963
|
-
const r =
|
|
5983
|
+
const r = nh({
|
|
5964
5984
|
tokenization: n,
|
|
5965
5985
|
position: t.position,
|
|
5966
5986
|
length: t.length,
|
|
@@ -5973,8 +5993,8 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5973
5993
|
} : null,
|
|
5974
5994
|
spokenText: n.spokenText
|
|
5975
5995
|
};
|
|
5976
|
-
},
|
|
5977
|
-
const n =
|
|
5996
|
+
}, Ph = (e, t, n) => n ? Ft({ speechText: e }).tokens.find((r) => r.start <= t && t < r.end)?.normalized === n : !0, Nh = (e, t) => {
|
|
5997
|
+
const n = Rh(t.word);
|
|
5978
5998
|
if (e.id !== t.chunkId) return {
|
|
5979
5999
|
chunkId: t.chunkId,
|
|
5980
6000
|
normalizedWord: n,
|
|
@@ -5993,12 +6013,12 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
5993
6013
|
};
|
|
5994
6014
|
let r, i;
|
|
5995
6015
|
if (e.catalogAlignment)
|
|
5996
|
-
r =
|
|
6016
|
+
r = Cu(e.catalogAlignment, t.position, t.length, t.word), i = e.catalogAlignment.spokenText;
|
|
5997
6017
|
else {
|
|
5998
|
-
const o =
|
|
6018
|
+
const o = Lh(e, t);
|
|
5999
6019
|
r = o.boundary, i = o.spokenText;
|
|
6000
6020
|
}
|
|
6001
|
-
return r ?
|
|
6021
|
+
return r ? Ph(i, r.start, n) ? {
|
|
6002
6022
|
chunkId: e.id,
|
|
6003
6023
|
normalizedWord: n,
|
|
6004
6024
|
chunkSpokenStart: r.start,
|
|
@@ -6043,7 +6063,7 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
6043
6063
|
["mn", "mjx-mn"],
|
|
6044
6064
|
["mo", "mjx-mo"],
|
|
6045
6065
|
["mtext", "mjx-mtext"]
|
|
6046
|
-
]),
|
|
6066
|
+
]), yr = "mi,mn,mo,mtext", Rs = "mjx-mi,mjx-mn,mjx-mo,mjx-mtext", Ls = [
|
|
6047
6067
|
"mjx-mfrac",
|
|
6048
6068
|
"mjx-msqrt",
|
|
6049
6069
|
"mjx-mroot",
|
|
@@ -6051,17 +6071,17 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
6051
6071
|
"mjx-munder",
|
|
6052
6072
|
"mjx-mover",
|
|
6053
6073
|
"mjx-munderover"
|
|
6054
|
-
].join(","), Ps = (e) => e.type === "text-range" ? e.node.parentElement : e.element,
|
|
6074
|
+
].join(","), Ps = (e) => e.type === "text-range" ? e.node.parentElement : e.element, On = (e) => {
|
|
6055
6075
|
let t = e;
|
|
6056
6076
|
for (; t; ) {
|
|
6057
6077
|
if (t.localName?.toLowerCase() === "mjx-container") return t;
|
|
6058
6078
|
t = t.parentElement;
|
|
6059
6079
|
}
|
|
6060
6080
|
return null;
|
|
6061
|
-
}, Vi = (e) => !e ||
|
|
6081
|
+
}, Vi = (e) => !e || On(e) ? !1 : !Tt(e), Ns = (e) => {
|
|
6062
6082
|
const t = e.getBoundingClientRect?.();
|
|
6063
6083
|
return !!(t && t.width > 0 && t.height > 0);
|
|
6064
|
-
},
|
|
6084
|
+
}, br = (e) => {
|
|
6065
6085
|
let t = e;
|
|
6066
6086
|
for (; t; ) {
|
|
6067
6087
|
if (t.localName?.toLowerCase() === "math") return t;
|
|
@@ -6075,31 +6095,31 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
6075
6095
|
if (!r || t[n].localName.toLowerCase() !== r) return !1;
|
|
6076
6096
|
}
|
|
6077
6097
|
return !0;
|
|
6078
|
-
},
|
|
6098
|
+
}, Wh = (e, t) => {
|
|
6079
6099
|
if (!e || !$s.has(e.localName.toLowerCase()) || t.querySelector(Ls)) return null;
|
|
6080
|
-
const n =
|
|
6100
|
+
const n = br(e), r = t.querySelector("mjx-math");
|
|
6081
6101
|
if (!n || !r) return null;
|
|
6082
|
-
const i = Array.from(n.querySelectorAll(
|
|
6102
|
+
const i = Array.from(n.querySelectorAll(yr)), o = i.indexOf(e);
|
|
6083
6103
|
if (o < 0) return null;
|
|
6084
6104
|
const s = Array.from(r.querySelectorAll(Rs));
|
|
6085
6105
|
if (!Ws(i, s)) return null;
|
|
6086
6106
|
const a = s[o];
|
|
6087
6107
|
return !a || !Ns(a) ? null : a;
|
|
6088
|
-
},
|
|
6089
|
-
const t =
|
|
6108
|
+
}, zh = (e) => {
|
|
6109
|
+
const t = On(e);
|
|
6090
6110
|
if (t) {
|
|
6091
6111
|
if (t.querySelector(Ls)) return "expression";
|
|
6092
|
-
const r =
|
|
6112
|
+
const r = br(e) ?? e, i = t.querySelector("mjx-math");
|
|
6093
6113
|
if (!i) return "expression";
|
|
6094
|
-
const o = Array.from(r.querySelectorAll(
|
|
6114
|
+
const o = Array.from(r.querySelectorAll(yr)), s = Array.from(i.querySelectorAll(Rs));
|
|
6095
6115
|
return Ws(o, s) && s.some((a) => Ns(a)) ? "token" : "expression";
|
|
6096
6116
|
}
|
|
6097
|
-
const n =
|
|
6098
|
-
return Array.from(n.querySelectorAll(
|
|
6099
|
-
},
|
|
6100
|
-
const t = Ps(e), n =
|
|
6117
|
+
const n = br(e) ?? e;
|
|
6118
|
+
return Array.from(n.querySelectorAll(yr)).some((r) => !Tt(r)) ? "token" : "expression";
|
|
6119
|
+
}, Tr = (e) => {
|
|
6120
|
+
const t = Ps(e), n = On(t);
|
|
6101
6121
|
if (n) {
|
|
6102
|
-
const r =
|
|
6122
|
+
const r = Wh(t, n);
|
|
6103
6123
|
return r ? {
|
|
6104
6124
|
type: "element",
|
|
6105
6125
|
quality: "semantic-token",
|
|
@@ -6121,24 +6141,24 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
6121
6141
|
quality: e.quality === "region-fallback" ? "expression" : "semantic-token",
|
|
6122
6142
|
element: e.element
|
|
6123
6143
|
} : null;
|
|
6124
|
-
},
|
|
6144
|
+
}, Hh = Tr, Bh = () => {
|
|
6125
6145
|
const e = /* @__PURE__ */ new WeakMap();
|
|
6126
6146
|
return (t) => {
|
|
6127
|
-
const n = Ps(t), r =
|
|
6128
|
-
if (!n || !r) return
|
|
6147
|
+
const n = Ps(t), r = On(n);
|
|
6148
|
+
if (!n || !r) return Tr(t);
|
|
6129
6149
|
if (e.has(n)) return e.get(n) ?? null;
|
|
6130
|
-
const i =
|
|
6150
|
+
const i = Tr(t);
|
|
6131
6151
|
return e.set(n, i), i;
|
|
6132
6152
|
};
|
|
6133
|
-
},
|
|
6153
|
+
}, Dh = (e, t, n, r = e.mathAlignments, i = Hh) => {
|
|
6134
6154
|
if (t.chunkSpokenStart === null || t.chunkSpokenEnd === null) return null;
|
|
6135
6155
|
let o = null;
|
|
6136
6156
|
for (const s of r) {
|
|
6137
|
-
const a =
|
|
6157
|
+
const a = ih(s.alignment, {
|
|
6138
6158
|
position: t.chunkSpokenStart,
|
|
6139
6159
|
length: Math.max(1, t.chunkSpokenEnd - t.chunkSpokenStart),
|
|
6140
6160
|
boundaryWord: n.word
|
|
6141
|
-
}) ||
|
|
6161
|
+
}) || oh(s.alignment, { boundaryWord: n.word });
|
|
6142
6162
|
if (!a) continue;
|
|
6143
6163
|
const l = i(a);
|
|
6144
6164
|
if (l) {
|
|
@@ -6159,9 +6179,9 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
6159
6179
|
} catch {
|
|
6160
6180
|
return null;
|
|
6161
6181
|
}
|
|
6162
|
-
},
|
|
6182
|
+
}, Fh = (e, t) => {
|
|
6163
6183
|
if (!e.catalogAlignment || t.chunkSpokenStart === null) return null;
|
|
6164
|
-
const n =
|
|
6184
|
+
const n = Au(e.catalogAlignment, t.chunkSpokenStart);
|
|
6165
6185
|
if (!n) return null;
|
|
6166
6186
|
const r = zs(e.visibleMap, n.start, n.end);
|
|
6167
6187
|
return r ? {
|
|
@@ -6169,7 +6189,7 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
6169
6189
|
quality: e.catalogAlignment.playbackMode === "exact-word" ? "exact-word" : "semantic-token",
|
|
6170
6190
|
range: r
|
|
6171
6191
|
} : null;
|
|
6172
|
-
},
|
|
6192
|
+
}, jh = (e) => e.regionRange ? {
|
|
6173
6193
|
type: "range",
|
|
6174
6194
|
quality: "region",
|
|
6175
6195
|
range: e.regionRange
|
|
@@ -6181,7 +6201,7 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
6181
6201
|
if (t.length !== 1) return null;
|
|
6182
6202
|
const n = t[0]?.alignment.result.fallbackTarget;
|
|
6183
6203
|
return n ? e.renderedMathTargetResolver(n) : null;
|
|
6184
|
-
},
|
|
6204
|
+
}, Vh = (e, t) => e ? t.mathAlignments.filter(({ element: n }) => {
|
|
6185
6205
|
try {
|
|
6186
6206
|
return e.type === "range" ? e.range.intersectsNode(n) : e.type === "element" ? e.element === n || e.element.contains(n) : e.node.parentElement?.contains(n) || !1;
|
|
6187
6207
|
} catch {
|
|
@@ -6193,18 +6213,18 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
6193
6213
|
quality: "region",
|
|
6194
6214
|
confidence: 0,
|
|
6195
6215
|
reason: "boundary chunk id was not found"
|
|
6196
|
-
}), Gi = (e) => e.length === 1 ? e[0].element : null,
|
|
6216
|
+
}), Gi = (e) => e.length === 1 ? e[0].element : null, qh = (e, t) => t.length > 0 && t.every(({ element: n }) => e.mathCapabilityByElement.get(n) === "token"), Uh = 3, Gh = (e, t, n) => {
|
|
6197
6217
|
if (!t || t.type !== "range") return !1;
|
|
6198
6218
|
const { startContainer: r, endContainer: i } = t.range;
|
|
6199
|
-
return r === i && r.nodeType ===
|
|
6200
|
-
},
|
|
6219
|
+
return r === i && r.nodeType === Uh ? !1 : n.some(({ element: o }) => e.mathCapabilityByElement.get(o) === "token" && o.contains(r) && o.contains(i));
|
|
6220
|
+
}, Yh = (e, t) => ({
|
|
6201
6221
|
chunk: e,
|
|
6202
|
-
regionTarget:
|
|
6203
|
-
renderedMathTargetResolver:
|
|
6204
|
-
mathCapabilityByElement: new Map(e.mathAlignments.map(({ element: n }) => [n, t ?
|
|
6222
|
+
regionTarget: jh(e),
|
|
6223
|
+
renderedMathTargetResolver: Bh(),
|
|
6224
|
+
mathCapabilityByElement: new Map(e.mathAlignments.map(({ element: n }) => [n, t ? zh(n) : "expression"])),
|
|
6205
6225
|
heldTokenByElement: /* @__PURE__ */ new Map()
|
|
6206
|
-
}),
|
|
6207
|
-
const t = e.mathTokenHighlighting !== !1, n = new Map(e.chunks.map((r) => [r.id,
|
|
6226
|
+
}), Kh = (e) => {
|
|
6227
|
+
const t = e.mathTokenHighlighting !== !1, n = new Map(e.chunks.map((r) => [r.id, Yh(r, t)]));
|
|
6208
6228
|
return {
|
|
6209
6229
|
chunks: e.chunks,
|
|
6210
6230
|
resolveInitial(r) {
|
|
@@ -6228,7 +6248,7 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
6228
6248
|
resolveBoundary(r) {
|
|
6229
6249
|
const i = n.get(r.chunkId);
|
|
6230
6250
|
if (!i) return Ui();
|
|
6231
|
-
const { chunk: o } = i, s =
|
|
6251
|
+
const { chunk: o } = i, s = Nh(o, r), a = Fh(o, s), l = Vh(a, o), c = (!a || l.length > 0 ? Dh(o, s, r, l, i.renderedMathTargetResolver) : null) || null, u = t && c && c.quality !== "expression" ? c : null, h = c && c.quality === "expression" ? c : null;
|
|
6232
6252
|
if (u) {
|
|
6233
6253
|
const f = Gi(l);
|
|
6234
6254
|
return f && i.heldTokenByElement.set(f, u), rt({
|
|
@@ -6239,14 +6259,14 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
6239
6259
|
reason: s.reason
|
|
6240
6260
|
});
|
|
6241
6261
|
}
|
|
6242
|
-
if (a && (t ? !
|
|
6262
|
+
if (a && (t ? !Gh(i, a, l) : l.length === 0)) return rt({
|
|
6243
6263
|
semanticTarget: a,
|
|
6244
6264
|
expressionTarget: null,
|
|
6245
6265
|
regionTarget: i.regionTarget,
|
|
6246
6266
|
confidence: s.confidence,
|
|
6247
6267
|
reason: s.reason
|
|
6248
6268
|
});
|
|
6249
|
-
if (
|
|
6269
|
+
if (qh(i, l)) {
|
|
6250
6270
|
const f = Gi(l), p = f ? i.heldTokenByElement.get(f) ?? null : null;
|
|
6251
6271
|
return rt({
|
|
6252
6272
|
semanticTarget: p,
|
|
@@ -6265,14 +6285,14 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
6265
6285
|
});
|
|
6266
6286
|
}
|
|
6267
6287
|
};
|
|
6268
|
-
},
|
|
6288
|
+
}, Xh = (e) => {
|
|
6269
6289
|
if (e.alignment?.boundaryOffsetMode) return e.alignment.boundaryOffsetMode;
|
|
6270
6290
|
const t = e.mathAlignment?.speech.boundaryOffsetSpace;
|
|
6271
6291
|
return t || "plain-spoken-text";
|
|
6272
|
-
},
|
|
6292
|
+
}, Jh = (e) => e.mathAlignments?.length ? e.mathAlignments : e.mathAlignment && e.sourceElement ? [{
|
|
6273
6293
|
element: e.sourceElement,
|
|
6274
6294
|
alignment: e.mathAlignment
|
|
6275
|
-
}] : [],
|
|
6295
|
+
}] : [], Qh = (e) => (e.chunks && e.chunks.length ? e.chunks : [{
|
|
6276
6296
|
speechText: e.speechText || "",
|
|
6277
6297
|
visibleText: e.visibleText || e.speechText || "",
|
|
6278
6298
|
sourceElement: e.sourceElement || e.contentRoot,
|
|
@@ -6289,9 +6309,9 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
6289
6309
|
regionRange: t.regionRange,
|
|
6290
6310
|
visibleMap: t.visibleMap,
|
|
6291
6311
|
catalogAlignment: t.alignment,
|
|
6292
|
-
mathAlignments:
|
|
6293
|
-
offsetSpace:
|
|
6294
|
-
})),
|
|
6312
|
+
mathAlignments: Jh(t),
|
|
6313
|
+
offsetSpace: Xh(t)
|
|
6314
|
+
})), Zh = [
|
|
6295
6315
|
"[data-pie-tts-region]",
|
|
6296
6316
|
"[data-catalog-region]",
|
|
6297
6317
|
"li",
|
|
@@ -6302,17 +6322,17 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
6302
6322
|
"[role='region']",
|
|
6303
6323
|
"div"
|
|
6304
6324
|
].join(","), Hs = (e, t) => {
|
|
6305
|
-
const n = e.closest(
|
|
6325
|
+
const n = e.closest(Zh);
|
|
6306
6326
|
return n && t.contains(n) ? n : e;
|
|
6307
|
-
},
|
|
6327
|
+
}, ed = (e, t, n) => {
|
|
6308
6328
|
const r = /* @__PURE__ */ new Map();
|
|
6309
6329
|
for (let i = t; i < n; i++) {
|
|
6310
6330
|
const o = e.get(i);
|
|
6311
6331
|
o && r.set(i - t, o);
|
|
6312
6332
|
}
|
|
6313
6333
|
return r;
|
|
6314
|
-
},
|
|
6315
|
-
const t = At(e.contentRoot, e.textProcessingOptions), n = await
|
|
6334
|
+
}, td = async (e) => {
|
|
6335
|
+
const t = At(e.contentRoot, e.textProcessingOptions), n = await Ch({
|
|
6316
6336
|
chunks: t.chunks,
|
|
6317
6337
|
visibleText: t.visibleText,
|
|
6318
6338
|
language: e.language,
|
|
@@ -6331,7 +6351,7 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
6331
6351
|
anchor: {
|
|
6332
6352
|
sourceElement: a,
|
|
6333
6353
|
regionElement: Hs(a, e.contentRoot),
|
|
6334
|
-
visibleMap:
|
|
6354
|
+
visibleMap: ed(t.map, r.visibleSpan.start, r.visibleSpan.end)
|
|
6335
6355
|
}
|
|
6336
6356
|
};
|
|
6337
6357
|
}
|
|
@@ -6351,7 +6371,7 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
6351
6371
|
containsMathMarkup: t.containsMathMarkup,
|
|
6352
6372
|
visibleText: t.visibleText
|
|
6353
6373
|
};
|
|
6354
|
-
},
|
|
6374
|
+
}, nd = (e, t) => {
|
|
6355
6375
|
const n = ms({
|
|
6356
6376
|
speechText: e.spokenText,
|
|
6357
6377
|
visibleText: e.spokenText
|
|
@@ -6375,12 +6395,12 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
6375
6395
|
sourceElement: n,
|
|
6376
6396
|
regionElement: t.regionElement,
|
|
6377
6397
|
speechMatchesVisibleText: e.spokenText === e.fallbackText,
|
|
6378
|
-
mathAlignment: n ?
|
|
6398
|
+
mathAlignment: n ? Sn({
|
|
6379
6399
|
mathElement: n,
|
|
6380
6400
|
speechText: e.spokenText
|
|
6381
6401
|
}) : void 0
|
|
6382
6402
|
};
|
|
6383
|
-
},
|
|
6403
|
+
}, rd = (e, t, n) => {
|
|
6384
6404
|
const r = t.sourceElement;
|
|
6385
6405
|
return {
|
|
6386
6406
|
speechText: n,
|
|
@@ -6388,22 +6408,22 @@ var Tu = /* @__PURE__ */ new Set([
|
|
|
6388
6408
|
sourceElement: r,
|
|
6389
6409
|
regionElement: t.regionElement,
|
|
6390
6410
|
speechMatchesVisibleText: !1,
|
|
6391
|
-
mathAlignment: r ?
|
|
6411
|
+
mathAlignment: r ? Sn({
|
|
6392
6412
|
mathElement: r,
|
|
6393
6413
|
speechText: n
|
|
6394
6414
|
}) : void 0,
|
|
6395
6415
|
plainFallback: Bs(e, t)
|
|
6396
6416
|
};
|
|
6397
|
-
},
|
|
6417
|
+
}, id = (e, t = {}) => e.items.map(({ segment: n, anchor: r }) => n.kind === "prose" ? nd(n, r) : t.format === "ssml" && n.ssml ? rd(n, r, n.ssml) : Bs(n, r)), od = "pie-tts-control-handoff", A;
|
|
6398
6418
|
(function(e) {
|
|
6399
6419
|
e.IDLE = "idle", e.LOADING = "loading", e.PLAYING = "playing", e.PAUSED = "paused", e.ERROR = "error";
|
|
6400
6420
|
})(A || (A = {}));
|
|
6401
|
-
var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOffset === t.startOffset && e.endContainer === t.endContainer && e.endOffset === t.endOffset,
|
|
6421
|
+
var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOffset === t.startOffset && e.endContainer === t.endContainer && e.endOffset === t.endOffset, sd = (e, t) => e === t ? !0 : !e || !t || e.type !== t.type || e.quality !== t.quality ? !1 : e.type === "range" && t.type === "range" ? Ds(e.range, t.range) : e.type === "element" && t.type === "element" ? e.element === t.element : e.type === "text-range" && t.type === "text-range" ? e.node === t.node && e.startOffset === t.startOffset && e.endOffset === t.endOffset : !1, ad = class _r {
|
|
6402
6422
|
constructor() {
|
|
6403
|
-
g(this, "currentProvider", null), g(this, "provider", null), g(this, "highlightCoordinator", null), g(this, "highlightTargetResolverProvider", null), g(this, "catalogResolver", null), g(this, "state", A.IDLE), g(this, "ttsConfig", {}), g(this, "currentText", null), g(this, "currentContentElement", null), g(this, "normalizedToDOM", /* @__PURE__ */ new Map()), g(this, "listeners", /* @__PURE__ */ new Map()), g(this, "lastError", null), g(this, "speakRunId", 0), g(this, "currentBoundaryOffset", 0), g(this, "activeWordBoundaryOffset", 0), g(this, "seekSegments", []), g(this, "playbackChunks", []), g(this, "sentenceHighlightSegments", []), g(this, "currentSeekSegmentIndex", 0), g(this, "activeSentenceStartOffset", null), g(this, "activeHighlightMode", "word"), g(this, "lastRenderedRegionTarget", null), g(this, "telemetryReporter", null), g(this, "generatedMathSpeechResolver",
|
|
6423
|
+
g(this, "currentProvider", null), g(this, "provider", null), g(this, "highlightCoordinator", null), g(this, "highlightTargetResolverProvider", null), g(this, "catalogResolver", null), g(this, "state", A.IDLE), g(this, "ttsConfig", {}), g(this, "currentText", null), g(this, "currentContentElement", null), g(this, "normalizedToDOM", /* @__PURE__ */ new Map()), g(this, "listeners", /* @__PURE__ */ new Map()), g(this, "lastError", null), g(this, "speakRunId", 0), g(this, "currentBoundaryOffset", 0), g(this, "activeWordBoundaryOffset", 0), g(this, "seekSegments", []), g(this, "playbackChunks", []), g(this, "sentenceHighlightSegments", []), g(this, "currentSeekSegmentIndex", 0), g(this, "activeSentenceStartOffset", null), g(this, "activeHighlightMode", "word"), g(this, "lastRenderedRegionTarget", null), g(this, "telemetryReporter", null), g(this, "generatedMathSpeechResolver", $h());
|
|
6404
6424
|
}
|
|
6405
6425
|
debugLog(t, n) {
|
|
6406
|
-
|
|
6426
|
+
_r.debugEnabled && (n === void 0 ? console.debug(t) : console.debug(t, n));
|
|
6407
6427
|
}
|
|
6408
6428
|
async emitTelemetry(t, n) {
|
|
6409
6429
|
try {
|
|
@@ -6580,12 +6600,12 @@ var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
|
|
|
6580
6600
|
}
|
|
6581
6601
|
getMathSpeechOptions() {
|
|
6582
6602
|
const t = (this.ttsConfig.providerOptions || {}).mathSpeech;
|
|
6583
|
-
return
|
|
6603
|
+
return An(t);
|
|
6584
6604
|
}
|
|
6585
6605
|
buildPositionMap(t, n, r) {
|
|
6586
6606
|
this.normalizedToDOM.clear();
|
|
6587
|
-
const { text: i, map: o } =
|
|
6588
|
-
this.normalizedToDOM = o,
|
|
6607
|
+
const { text: i, map: o } = Tn(t, this.getTextProcessingOptions(r));
|
|
6608
|
+
this.normalizedToDOM = o, _r.debugEnabled && (this.debugLog("[TTSService] Text comparison:", {
|
|
6589
6609
|
spokenLength: n.length,
|
|
6590
6610
|
normalizedDomLength: i.length,
|
|
6591
6611
|
match: n === i,
|
|
@@ -6694,7 +6714,7 @@ var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
|
|
|
6694
6714
|
return this.createSpeechPlanSegments(n, r);
|
|
6695
6715
|
}
|
|
6696
6716
|
collectSpeechPlanBoundaries(t, n) {
|
|
6697
|
-
const r = /* @__PURE__ */ new Map(), { map: i } =
|
|
6717
|
+
const r = /* @__PURE__ */ new Map(), { map: i } = Tn(t, this.getTextProcessingOptions()), o = this.createNodeStartOffsets(i), s = document.createTreeWalker(t, NodeFilter.SHOW_TEXT);
|
|
6698
6718
|
let a = s.nextNode(), l = null;
|
|
6699
6719
|
for (; a; ) {
|
|
6700
6720
|
const c = a, u = c.parentElement;
|
|
@@ -6734,7 +6754,7 @@ var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
|
|
|
6734
6754
|
}), i.filter((l) => l.text.trim().length > 0);
|
|
6735
6755
|
}
|
|
6736
6756
|
segmentSentences(t) {
|
|
6737
|
-
return
|
|
6757
|
+
return Hr(t, { locale: this.ttsConfig.providerOptions?.locale || void 0 });
|
|
6738
6758
|
}
|
|
6739
6759
|
createSeekSegmentsFromText(t) {
|
|
6740
6760
|
return this.segmentSentences(t).map((n) => {
|
|
@@ -7072,12 +7092,12 @@ var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
|
|
|
7072
7092
|
const p = At(h, this.getTextProcessingOptions(n.language)), m = p.visibleText || P(h.textContent || ""), y = ms({
|
|
7073
7093
|
speechText: f.content,
|
|
7074
7094
|
visibleText: m
|
|
7075
|
-
}), b = a(h, m), E = b ?
|
|
7095
|
+
}), b = a(h, m), E = b ? Sn({
|
|
7076
7096
|
mathElement: b,
|
|
7077
7097
|
speechText: f.content
|
|
7078
7098
|
}) : void 0, R = E ? void 0 : l(h).map((C) => ({
|
|
7079
7099
|
element: C,
|
|
7080
|
-
alignment:
|
|
7100
|
+
alignment: Sn({
|
|
7081
7101
|
mathElement: C,
|
|
7082
7102
|
speechText: f.content
|
|
7083
7103
|
})
|
|
@@ -7105,7 +7125,7 @@ var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
|
|
|
7105
7125
|
return !t || t.providerId?.toLowerCase() === "browser" ? "plain" : t.getCapabilities?.().supportsSSML ? "ssml" : "plain";
|
|
7106
7126
|
}
|
|
7107
7127
|
async resolveGeneratedSpeechContent(t, n, r) {
|
|
7108
|
-
const i = this.resolveGeneratedPlaybackFormat(), { plan: o, containsMathMarkup: s, visibleText: a } = await
|
|
7128
|
+
const i = this.resolveGeneratedPlaybackFormat(), { plan: o, containsMathMarkup: s, visibleText: a } = await td({
|
|
7109
7129
|
contentRoot: t,
|
|
7110
7130
|
language: r,
|
|
7111
7131
|
mathSpeech: this.getMathSpeechOptions(),
|
|
@@ -7122,7 +7142,7 @@ var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
|
|
|
7122
7142
|
containsMathMarkup: !1,
|
|
7123
7143
|
speechMatchesVisibleText: !0
|
|
7124
7144
|
};
|
|
7125
|
-
const c =
|
|
7145
|
+
const c = id(o, { format: i }), u = o.plainSpeechText;
|
|
7126
7146
|
return {
|
|
7127
7147
|
contentToSpeak: u,
|
|
7128
7148
|
speechText: u,
|
|
@@ -7191,7 +7211,7 @@ var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
|
|
|
7191
7211
|
this.highlightCoordinator && this.paintTTSWordRange(this.resolveWordHighlightRange(t).range);
|
|
7192
7212
|
}
|
|
7193
7213
|
highlightRenderableRegionTarget(t) {
|
|
7194
|
-
if (!(!this.highlightCoordinator || !t || typeof document > "u") && !(!this.highlightTargetResolverProvider &&
|
|
7214
|
+
if (!(!this.highlightCoordinator || !t || typeof document > "u") && !(!this.highlightTargetResolverProvider && sd(this.lastRenderedRegionTarget, t)))
|
|
7195
7215
|
try {
|
|
7196
7216
|
const n = document.createRange();
|
|
7197
7217
|
if (t.type === "element") n.selectNodeContents(t.element);
|
|
@@ -7250,10 +7270,10 @@ var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
|
|
|
7250
7270
|
async speakCatalogChunkOnce(t, n) {
|
|
7251
7271
|
if (!this.provider) return;
|
|
7252
7272
|
this.lastRenderedRegionTarget = null;
|
|
7253
|
-
const r = t.regionElement || t.sourceElement || this.currentContentElement, i = r ?
|
|
7273
|
+
const r = t.regionElement || t.sourceElement || this.currentContentElement, i = r ? Qh({
|
|
7254
7274
|
contentRoot: r,
|
|
7255
7275
|
chunks: [t]
|
|
7256
|
-
})[0] : null, o = this.ttsConfig.mathTokenHighlighting !== !1, s = i ?
|
|
7276
|
+
})[0] : null, o = this.ttsConfig.mathTokenHighlighting !== !1, s = i ? Kh({
|
|
7257
7277
|
chunks: [i],
|
|
7258
7278
|
mathTokenHighlighting: o
|
|
7259
7279
|
}) : null;
|
|
@@ -7390,7 +7410,7 @@ var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
|
|
|
7390
7410
|
this.provider && (this.speakRunId += 1, this.provider.onWordBoundary = void 0, this.provider.stop(), this.highlightTargetResolverProvider = null, this.setState(A.IDLE), this.currentText = null, this.highlightCoordinator && this.highlightCoordinator.clearTTS(), this.lastRenderedRegionTarget = null, this.currentContentElement = null, this.normalizedToDOM.clear(), this.currentBoundaryOffset = 0, this.activeWordBoundaryOffset = 0, this.seekSegments = [], this.playbackChunks = [], this.sentenceHighlightSegments = [], this.currentSeekSegmentIndex = 0, this.activeSentenceStartOffset = null);
|
|
7391
7411
|
}
|
|
7392
7412
|
requestControlHandoff() {
|
|
7393
|
-
typeof window > "u" || window.dispatchEvent(new CustomEvent(
|
|
7413
|
+
typeof window > "u" || window.dispatchEvent(new CustomEvent(od, { detail: { source: "host" } }));
|
|
7394
7414
|
}
|
|
7395
7415
|
isPlaying() {
|
|
7396
7416
|
return this.state === A.PLAYING;
|
|
@@ -7461,7 +7481,7 @@ var Ds = (e, t) => e === t || e.startContainer === t.startContainer && e.startOf
|
|
|
7461
7481
|
});
|
|
7462
7482
|
}
|
|
7463
7483
|
};
|
|
7464
|
-
g(
|
|
7484
|
+
g(ad, "debugEnabled", (() => {
|
|
7465
7485
|
try {
|
|
7466
7486
|
if (typeof process < "u" && process.env?.PIE_TTS_DEBUG === "1") return !0;
|
|
7467
7487
|
} catch {
|
|
@@ -7479,7 +7499,7 @@ var Od = pc({
|
|
|
7479
7499
|
passage: []
|
|
7480
7500
|
},
|
|
7481
7501
|
providers: {}
|
|
7482
|
-
}),
|
|
7502
|
+
}), ld = /* @__PURE__ */ qo('<div class="pie-tool-line-reader__mask pie-tool-line-reader__mask--top svelte-1a3d6dx" aria-hidden="true"></div> <div class="pie-tool-line-reader__mask pie-tool-line-reader__mask--bottom svelte-1a3d6dx" aria-hidden="true"></div> <div class="pie-tool-line-reader__mask pie-tool-line-reader__mask--left svelte-1a3d6dx" aria-hidden="true"></div> <div class="pie-tool-line-reader__mask pie-tool-line-reader__mask--right svelte-1a3d6dx" aria-hidden="true"></div>', 1), cd = /* @__PURE__ */ qo('<div class="pie-sr-only svelte-1a3d6dx" role="status" aria-live="polite" aria-atomic="true"> </div> <!> <div role="group" tabindex="0" aria-roledescription="Draggable and resizable reading guide overlay"><div class="pie-tool-line-reader__container svelte-1a3d6dx"></div> <div class="pie-tool-line-reader__resize-handle pie-tool-line-reader__resize-handle--bottom svelte-1a3d6dx" title="Drag to resize height" role="button" tabindex="-1" aria-label="Resize handle - drag to adjust height"><svg width="20" height="8" viewBox="0 0 20 8" aria-hidden="true"><rect x="8" y="3" width="4" height="2" fill="var(--pie-primary, #4CAF50)" rx="1"></rect></svg></div></div>', 1), ud = {
|
|
7483
7503
|
hash: "svelte-1a3d6dx",
|
|
7484
7504
|
code: `.pie-sr-only.svelte-1a3d6dx {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0;}.pie-tool-line-reader.svelte-1a3d6dx {border:none;cursor:move;overflow:visible;position:absolute;transform:translate(-50%, -50%);user-select:none;pointer-events:auto;touch-action:none;}.pie-tool-line-reader.svelte-1a3d6dx:focus-visible {outline:3px solid var(--pie-button-focus-outline, var(--pie-primary, #4A90E2));outline-offset:2px;}.pie-tool-line-reader__container.svelte-1a3d6dx {width:100%;height:100%;position:relative;transition:background-color 0.2s ease;}.pie-tool-line-reader__resize-handle.svelte-1a3d6dx {position:absolute;cursor:ns-resize;z-index:10;display:flex;align-items:center;justify-content:center;}.pie-tool-line-reader__resize-handle--bottom.svelte-1a3d6dx {bottom:-12px;left:50%;transform:translateX(-50%);width:44px;height:24px;background-color:color-mix(in srgb, var(--pie-background, #fff) 90%, transparent);border-radius:12px;border:2px solid var(--pie-primary, #4caf50);}.pie-tool-line-reader__resize-handle.svelte-1a3d6dx:hover {background-color:color-mix(in srgb, var(--pie-primary, #4caf50) 20%, transparent);}.pie-tool-line-reader__resize-handle.svelte-1a3d6dx:active {cursor:ns-resize;}.pie-tool-line-reader.svelte-1a3d6dx:active {cursor:grabbing;}
|
|
7485
7505
|
|
|
@@ -7493,12 +7513,12 @@ var Od = pc({
|
|
|
7493
7513
|
|
|
7494
7514
|
/* In masking mode, the window should be transparent to show content underneath */.pie-tool-line-reader.pie-tool-line-reader--masking-mode.svelte-1a3d6dx .pie-tool-line-reader__container:where(.svelte-1a3d6dx) {background-color:transparent !important;}`
|
|
7495
7515
|
};
|
|
7496
|
-
function
|
|
7497
|
-
no(t, !0), Bl(e,
|
|
7498
|
-
let n =
|
|
7516
|
+
function hd(e, t) {
|
|
7517
|
+
no(t, !0), Bl(e, ud);
|
|
7518
|
+
let n = ki(t, "visible", 7, !1), r = ki(t, "toolId", 7, "lineReader");
|
|
7499
7519
|
const i = typeof window < "u";
|
|
7500
7520
|
let o = /* @__PURE__ */ z(void 0), s = /* @__PURE__ */ z(null);
|
|
7501
|
-
const a = /* @__PURE__ */
|
|
7521
|
+
const a = /* @__PURE__ */ ai(() => v(s)?.toolCoordinator);
|
|
7502
7522
|
let l = /* @__PURE__ */ z(!1), c = /* @__PURE__ */ z(!1), u = /* @__PURE__ */ z(fe({
|
|
7503
7523
|
x: i ? window.innerWidth / 2 : 400,
|
|
7504
7524
|
y: i ? window.innerHeight / 2 : 300
|
|
@@ -7561,16 +7581,16 @@ function fd(e, t) {
|
|
|
7561
7581
|
v(o) && (v(o).setPointerCapture(w.pointerId), $(l, !0), $(f, {
|
|
7562
7582
|
x: w.clientX - v(u).x,
|
|
7563
7583
|
y: w.clientY - v(u).y
|
|
7564
|
-
}, !0), v(a)?.bringToFront(v(o)), v(o).addEventListener("pointermove",
|
|
7584
|
+
}, !0), v(a)?.bringToFront(v(o)), v(o).addEventListener("pointermove", In), v(o).addEventListener("pointerup", $n), w.preventDefault());
|
|
7565
7585
|
}
|
|
7566
7586
|
function Vs(w) {
|
|
7567
7587
|
v(o) && (v(o).setPointerCapture(w.pointerId), $(c, !0), $(p, {
|
|
7568
7588
|
width: v(h).width,
|
|
7569
7589
|
height: v(h).height,
|
|
7570
7590
|
mouseY: w.clientY
|
|
7571
|
-
}, !0), v(a)?.bringToFront(v(o)), v(o).addEventListener("pointermove",
|
|
7591
|
+
}, !0), v(a)?.bringToFront(v(o)), v(o).addEventListener("pointermove", In), v(o).addEventListener("pointerup", $n), w.preventDefault(), w.stopPropagation());
|
|
7572
7592
|
}
|
|
7573
|
-
function
|
|
7593
|
+
function In(w) {
|
|
7574
7594
|
if (v(l)) $(u, {
|
|
7575
7595
|
x: w.clientX - v(f).x,
|
|
7576
7596
|
y: w.clientY - v(f).y
|
|
@@ -7580,8 +7600,8 @@ function fd(e, t) {
|
|
|
7580
7600
|
v(h).height = Math.max(20, Math.min(400, v(p).height + D));
|
|
7581
7601
|
}
|
|
7582
7602
|
}
|
|
7583
|
-
function
|
|
7584
|
-
v(o) && (v(o).releasePointerCapture(w.pointerId), v(o).removeEventListener("pointermove",
|
|
7603
|
+
function $n(w) {
|
|
7604
|
+
v(o) && (v(o).releasePointerCapture(w.pointerId), v(o).removeEventListener("pointermove", In), v(o).removeEventListener("pointerup", $n), $(l, !1), $(c, !1));
|
|
7585
7605
|
}
|
|
7586
7606
|
function qs(w) {
|
|
7587
7607
|
let D = !1;
|
|
@@ -7624,7 +7644,7 @@ function fd(e, t) {
|
|
|
7624
7644
|
D && w.preventDefault();
|
|
7625
7645
|
}
|
|
7626
7646
|
Ct(() => {
|
|
7627
|
-
v(a) && r() && !v(R) && (v(a).registerTool(r(), "Line Reader", void 0,
|
|
7647
|
+
v(a) && r() && !v(R) && (v(a).registerTool(r(), "Line Reader", void 0, hr.TOOL), $(R, !0));
|
|
7628
7648
|
}), zl(() => () => {
|
|
7629
7649
|
v(a) && r() && v(a).unregisterTool(r());
|
|
7630
7650
|
}), Ct(() => {
|
|
@@ -7632,45 +7652,45 @@ function fd(e, t) {
|
|
|
7632
7652
|
}), Ct(() => {
|
|
7633
7653
|
n() && v(o) && setTimeout(() => v(o)?.focus(), 100);
|
|
7634
7654
|
});
|
|
7635
|
-
let Us = /* @__PURE__ */
|
|
7655
|
+
let Us = /* @__PURE__ */ ai(() => v(y) + Math.round(v(b) * 255).toString(16).padStart(2, "0"));
|
|
7636
7656
|
var Gs = {
|
|
7637
7657
|
get visible() {
|
|
7638
7658
|
return n();
|
|
7639
7659
|
},
|
|
7640
7660
|
set visible(w = !1) {
|
|
7641
|
-
n(w),
|
|
7661
|
+
n(w), Zn();
|
|
7642
7662
|
},
|
|
7643
7663
|
get toolId() {
|
|
7644
7664
|
return r();
|
|
7645
7665
|
},
|
|
7646
7666
|
set toolId(w = "lineReader") {
|
|
7647
|
-
r(w),
|
|
7648
|
-
}
|
|
7649
|
-
},
|
|
7650
|
-
var D =
|
|
7651
|
-
|
|
7652
|
-
var
|
|
7653
|
-
var qt =
|
|
7654
|
-
|
|
7655
|
-
nt(
|
|
7667
|
+
r(w), Zn();
|
|
7668
|
+
}
|
|
7669
|
+
}, Vr = Al(), Ys = Pn(Vr), Ks = (w) => {
|
|
7670
|
+
var D = cd(), Rn = Pn(D), Xs = ci(Rn, !0);
|
|
7671
|
+
ti(Rn);
|
|
7672
|
+
var qr = St(Rn, 2), Js = (ye) => {
|
|
7673
|
+
var qt = ld(), Gr = Pn(qt), Yr = St(Gr, 2), Kr = St(Yr, 2), Zs = St(Kr, 2);
|
|
7674
|
+
ui((ea, ta) => {
|
|
7675
|
+
nt(Gr, `height: ${ea ?? ""}px;`), nt(Yr, `top: ${v(u).y + v(h).height / 2}px;`), nt(Kr, `top: ${v(u).y - v(h).height / 2}px; height: ${v(h).height ?? ""}px; width: ${ta ?? ""}px;`), nt(Zs, `top: ${v(u).y - v(h).height / 2}px; height: ${v(h).height ?? ""}px; left: ${v(u).x + v(h).width / 2}px;`);
|
|
7656
7676
|
}, [() => Math.max(0, v(u).y - v(h).height / 2), () => Math.max(0, v(u).x - v(h).width / 2)]), en(ye, qt);
|
|
7657
7677
|
};
|
|
7658
|
-
|
|
7678
|
+
bi(qr, (ye) => {
|
|
7659
7679
|
v(E) === "obscure" && ye(Js);
|
|
7660
7680
|
});
|
|
7661
|
-
var Oe = St(
|
|
7662
|
-
let
|
|
7663
|
-
var Qs =
|
|
7664
|
-
Qi(2),
|
|
7665
|
-
Ll(Xs, v(m)),
|
|
7666
|
-
}, [() => F.find((ye) => ye.value === v(y))?.name, () => Math.round(v(b) * 100)]),
|
|
7681
|
+
var Oe = St(qr, 2);
|
|
7682
|
+
let Ur;
|
|
7683
|
+
var Qs = ci(Oe);
|
|
7684
|
+
Qi(2), ti(Oe), Jl(Oe, (ye) => $(o, ye), () => v(o)), ui((ye, qt) => {
|
|
7685
|
+
Ll(Xs, v(m)), Ur = jl(Oe, 1, "pie-tool-line-reader svelte-1a3d6dx", null, Ur, { "pie-tool-line-reader--masking-mode": v(E) === "obscure" }), nt(Oe, `left: ${v(u).x ?? ""}px; top: ${v(u).y ?? ""}px; width: ${v(h).width ?? ""}px; height: ${v(h).height ?? ""}px;`), Gl(Oe, "aria-label", `Line Reader tool. Mode: ${v(E) === "highlight" ? "Highlight" : "Masking"}. Use arrow keys to move, +/- to resize height, C to change color, [ and ] to adjust opacity, M to toggle mode. Current color: ${ye ?? ""}, Opacity: ${qt ?? ""}%`), nt(Qs, `background-color: ${v(Us) ?? ""};`);
|
|
7686
|
+
}, [() => F.find((ye) => ye.value === v(y))?.name, () => Math.round(v(b) * 100)]), pi("pointerdown", Oe, Fs), pi("keydown", Oe, qs), en(w, D);
|
|
7667
7687
|
};
|
|
7668
|
-
return
|
|
7688
|
+
return bi(Ys, (w) => {
|
|
7669
7689
|
n() && w(Ks);
|
|
7670
|
-
}), en(e,
|
|
7690
|
+
}), en(e, Vr), ro(Gs);
|
|
7671
7691
|
}
|
|
7672
7692
|
xl(["pointerdown", "keydown"]);
|
|
7673
|
-
customElements.define("pie-tool-line-reader", tc(
|
|
7693
|
+
customElements.define("pie-tool-line-reader", tc(hd, {
|
|
7674
7694
|
visible: {
|
|
7675
7695
|
attribute: "visible",
|
|
7676
7696
|
type: "Boolean"
|
|
@@ -7681,7 +7701,7 @@ customElements.define("pie-tool-line-reader", tc(fd, {
|
|
|
7681
7701
|
}
|
|
7682
7702
|
}, [], [], { mode: "open" }));
|
|
7683
7703
|
export {
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
|
|
7704
|
+
hd as default,
|
|
7705
|
+
pd as n,
|
|
7706
|
+
fd as t
|
|
7687
7707
|
};
|