bloom-player 2.20.3-alpha.1 → 2.21.0
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/{bloomPlayer.BAVrzru3.js → bloomPlayer.CDiYXJvB.js} +21 -21
- package/dist/bloomplayer.htm +1 -1
- package/lib/narration.d.ts +2 -0
- package/lib/shared.es.js +342 -338
- package/lib/shared.es.js.map +1 -1
- package/package.json +1 -1
- package/src/shared/dragActivityRuntime.ts +15 -41
- package/src/shared/narration.ts +22 -5
package/lib/shared.es.js
CHANGED
|
@@ -18,16 +18,16 @@ function Kt(s) {
|
|
|
18
18
|
ei = s;
|
|
19
19
|
}
|
|
20
20
|
let Tr;
|
|
21
|
-
function
|
|
21
|
+
function na(s) {
|
|
22
22
|
Tr = s;
|
|
23
23
|
}
|
|
24
24
|
let Pn;
|
|
25
|
-
function
|
|
25
|
+
function oa(s) {
|
|
26
26
|
Pn = s;
|
|
27
27
|
}
|
|
28
28
|
let Dn = () => {
|
|
29
29
|
};
|
|
30
|
-
function
|
|
30
|
+
function sa(s) {
|
|
31
31
|
Dn = s ?? (() => {
|
|
32
32
|
});
|
|
33
33
|
}
|
|
@@ -35,7 +35,7 @@ let Sr = "";
|
|
|
35
35
|
function as(s) {
|
|
36
36
|
Sr = s;
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function aa(s) {
|
|
39
39
|
as(Mn(s));
|
|
40
40
|
}
|
|
41
41
|
function Mn(s) {
|
|
@@ -57,37 +57,37 @@ function cs(s) {
|
|
|
57
57
|
}
|
|
58
58
|
const us = "bloom-highlightSegment", zn = "ui-enableHighlight", Dr = "ui-disableHighlight", yr = "ui-suppressHighlight";
|
|
59
59
|
let Di = 3;
|
|
60
|
-
function
|
|
60
|
+
function la(s) {
|
|
61
61
|
Di = s;
|
|
62
62
|
}
|
|
63
63
|
const Mi = "audio-sentence", In = "bloom-imageDescription";
|
|
64
|
-
let
|
|
64
|
+
let wt = null, di = 0;
|
|
65
65
|
function fs(s) {
|
|
66
|
-
s !==
|
|
66
|
+
s !== wt && (di && clearTimeout(di), di = setTimeout(() => {
|
|
67
67
|
di = 0;
|
|
68
|
-
}, 3e3),
|
|
68
|
+
}, 3e3), wt = s);
|
|
69
69
|
}
|
|
70
70
|
function ds() {
|
|
71
|
-
return
|
|
71
|
+
return wt;
|
|
72
72
|
}
|
|
73
|
-
let Mr, zi, Jt = "",
|
|
74
|
-
const Ii = new mi(), Er = new mi(), Tn = new mi(),
|
|
73
|
+
let Mr, zi, Jt = "", Qe = [], Nt = [];
|
|
74
|
+
const Ii = new mi(), Er = new mi(), Tn = new mi(), ca = new mi(), Hi = new mi();
|
|
75
75
|
let pi = 0, Hn = !0;
|
|
76
|
-
function
|
|
76
|
+
function ua(s) {
|
|
77
77
|
Hn = s;
|
|
78
78
|
}
|
|
79
79
|
let Oi = null;
|
|
80
80
|
function hs(s, c) {
|
|
81
|
-
if (!s && !
|
|
81
|
+
if (!s && !wt)
|
|
82
82
|
return;
|
|
83
|
-
const d = s ??
|
|
83
|
+
const d = s ?? wt;
|
|
84
84
|
gi(Br(d, c), d);
|
|
85
85
|
}
|
|
86
86
|
function gi(s, c) {
|
|
87
87
|
fs(c), zi = s;
|
|
88
88
|
const d = Pt();
|
|
89
|
-
d && (s.length == 0 && d.pause(), d.currentTime = 0), ++pi, ps(s),
|
|
90
|
-
const h =
|
|
89
|
+
d && (s.length == 0 && d.pause(), d.currentTime = 0), ++pi, ps(s), Qe = ls(s).reverse();
|
|
90
|
+
const h = Qe.length;
|
|
91
91
|
if (h === 0) {
|
|
92
92
|
Er && Er?.raise(c), Kt(
|
|
93
93
|
4
|
|
@@ -100,8 +100,8 @@ function gi(s, c) {
|
|
|
100
100
|
}, Di * 1e3));
|
|
101
101
|
return;
|
|
102
102
|
}
|
|
103
|
-
const T =
|
|
104
|
-
Yn(), h >= 2 && Xn(
|
|
103
|
+
const T = Qe[h - 1];
|
|
104
|
+
Yn(), h >= 2 && Xn(Qe[h - 2]), _n(T, !0), Kt(
|
|
105
105
|
4
|
|
106
106
|
/* AudioPlaying */
|
|
107
107
|
), Rn();
|
|
@@ -192,7 +192,7 @@ function Rn() {
|
|
|
192
192
|
_i();
|
|
193
193
|
return;
|
|
194
194
|
}
|
|
195
|
-
|
|
195
|
+
Nt = [];
|
|
196
196
|
const d = c.getAttribute(
|
|
197
197
|
"data-audioRecordingEndTimes"
|
|
198
198
|
);
|
|
@@ -205,7 +205,7 @@ function Rn() {
|
|
|
205
205
|
);
|
|
206
206
|
for (let q = k - 1; q >= 0; --q) {
|
|
207
207
|
const _ = Number(D[q]);
|
|
208
|
-
isNaN(_) ||
|
|
208
|
+
isNaN(_) || Nt.push([
|
|
209
209
|
z.item(q),
|
|
210
210
|
_
|
|
211
211
|
]);
|
|
@@ -217,9 +217,9 @@ function Rn() {
|
|
|
217
217
|
), Cr = !1;
|
|
218
218
|
const T = s.play();
|
|
219
219
|
++pi, Oi = (/* @__PURE__ */ new Date()).getTime(), zr(pi);
|
|
220
|
-
const L =
|
|
220
|
+
const L = Qe.length - 2;
|
|
221
221
|
L >= 0 && Xn(
|
|
222
|
-
|
|
222
|
+
Qe[L]
|
|
223
223
|
), Wn(T);
|
|
224
224
|
}
|
|
225
225
|
}
|
|
@@ -237,10 +237,10 @@ function Wn(s, c) {
|
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
239
|
function zr(s, c = 0) {
|
|
240
|
-
const d =
|
|
240
|
+
const d = Nt.length;
|
|
241
241
|
if (d <= 0)
|
|
242
242
|
return;
|
|
243
|
-
const h =
|
|
243
|
+
const h = Nt[d - 1], T = h[0], L = h[1];
|
|
244
244
|
Vn({
|
|
245
245
|
newElement: T,
|
|
246
246
|
shouldScrollToElement: !0,
|
|
@@ -258,7 +258,7 @@ function zr(s, c = 0) {
|
|
|
258
258
|
function Fn(s) {
|
|
259
259
|
if (s !== pi || ei === 5)
|
|
260
260
|
return;
|
|
261
|
-
const c =
|
|
261
|
+
const c = Nt.length;
|
|
262
262
|
if (c <= 0)
|
|
263
263
|
return;
|
|
264
264
|
const d = document.getElementById(
|
|
@@ -266,7 +266,7 @@ function Fn(s) {
|
|
|
266
266
|
);
|
|
267
267
|
if (d.ended || d.error)
|
|
268
268
|
return;
|
|
269
|
-
const h = d.currentTime, L =
|
|
269
|
+
const h = d.currentTime, L = Nt[c - 1][1];
|
|
270
270
|
if (h && h < L) {
|
|
271
271
|
const z = L - h;
|
|
272
272
|
setTimeout(() => {
|
|
@@ -274,7 +274,7 @@ function Fn(s) {
|
|
|
274
274
|
}, z * 1e3);
|
|
275
275
|
return;
|
|
276
276
|
}
|
|
277
|
-
|
|
277
|
+
Nt.pop(), zr(s, L);
|
|
278
278
|
}
|
|
279
279
|
function Ir(s = document.body) {
|
|
280
280
|
const c = Array.from(
|
|
@@ -395,9 +395,9 @@ function xs() {
|
|
|
395
395
|
return s || (s = document.createElement("audio"), s.id = "bloom-audio-preload", document.body.appendChild(s)), s;
|
|
396
396
|
}
|
|
397
397
|
function Xn(s) {
|
|
398
|
-
const c = $n(s), d = c
|
|
398
|
+
const c = $n(s) ?? s, d = c.id;
|
|
399
399
|
if (Bi === d) return;
|
|
400
|
-
const h = Un(d) + "?nocache=" + (/* @__PURE__ */ new Date()).getTime() + "&optional=true";
|
|
400
|
+
const h = Un(d, c) + "?nocache=" + (/* @__PURE__ */ new Date()).getTime() + "&optional=true";
|
|
401
401
|
Bi = d, qi = h;
|
|
402
402
|
const T = xs();
|
|
403
403
|
T.src = h, T.load();
|
|
@@ -415,32 +415,36 @@ function Ts() {
|
|
|
415
415
|
let d;
|
|
416
416
|
Bi === Jt && qi ? (d = qi, Yn()) : d = c + "?nocache=" + (/* @__PURE__ */ new Date()).getTime() + "&optional=true", s.setAttribute("src", d);
|
|
417
417
|
}
|
|
418
|
-
function
|
|
419
|
-
return
|
|
418
|
+
function Ss(s, c) {
|
|
419
|
+
return c?.getAttribute("data-audio-src") || s + ".mp3";
|
|
420
|
+
}
|
|
421
|
+
function Un(s, c) {
|
|
422
|
+
const d = c ?? wt?.querySelector(`[id="${s}"]`) ?? document.getElementById(s);
|
|
423
|
+
return Pr() + "/audio/" + Ss(s, d);
|
|
420
424
|
}
|
|
421
425
|
function Pt() {
|
|
422
|
-
return
|
|
423
|
-
c.addEventListener("ended",
|
|
426
|
+
return As("bloom-audio-player", (c) => {
|
|
427
|
+
c.addEventListener("ended", Es), c.addEventListener("error", ks);
|
|
424
428
|
});
|
|
425
429
|
}
|
|
426
|
-
function
|
|
430
|
+
function Es() {
|
|
427
431
|
_i();
|
|
428
432
|
}
|
|
429
|
-
function
|
|
433
|
+
function fa() {
|
|
430
434
|
ei === 4 && _i(!1);
|
|
431
435
|
}
|
|
432
436
|
function _i(s = !0) {
|
|
433
|
-
if (Hi && Hi?.raise(!1), Hr(),
|
|
434
|
-
const c =
|
|
437
|
+
if (Hi && Hi?.raise(!1), Hr(), Qe && Qe.length > 0) {
|
|
438
|
+
const c = Qe.pop(), d = Qe.length;
|
|
435
439
|
if (d > 0 && s) {
|
|
436
|
-
const h =
|
|
440
|
+
const h = Qe[d - 1];
|
|
437
441
|
_n(h, !0), Rn();
|
|
438
442
|
} else
|
|
439
|
-
|
|
443
|
+
Cs(), Ir(c), Pt().pause();
|
|
440
444
|
}
|
|
441
445
|
}
|
|
442
|
-
function
|
|
443
|
-
|
|
446
|
+
function Cs() {
|
|
447
|
+
Qe = [], Nt = [], Ir(), Ii?.raise(wt), Er?.raise();
|
|
444
448
|
}
|
|
445
449
|
function Hr() {
|
|
446
450
|
if (!Oi || !Tr)
|
|
@@ -448,14 +452,14 @@ function Hr() {
|
|
|
448
452
|
const c = ((/* @__PURE__ */ new Date()).getTime() - Oi) / 1e3;
|
|
449
453
|
Tr(c);
|
|
450
454
|
}
|
|
451
|
-
function
|
|
455
|
+
function As(s, c) {
|
|
452
456
|
let d = document.querySelector(
|
|
453
457
|
"#" + s
|
|
454
458
|
);
|
|
455
459
|
return d && !d.play && (d.remove(), d = null), d || (d = document.createElement("audio"), d.setAttribute("id", s), document.body.appendChild(d), c(d)), d;
|
|
456
460
|
}
|
|
457
461
|
let Cr = !1;
|
|
458
|
-
function
|
|
462
|
+
function ks() {
|
|
459
463
|
if (Cr) {
|
|
460
464
|
console.log("Already got error playing, not handling again");
|
|
461
465
|
return;
|
|
@@ -470,60 +474,60 @@ function Or(s, c, d = !1) {
|
|
|
470
474
|
);
|
|
471
475
|
return d && c && c.matches(s) && h.push(c), Hn ? h : h.filter((T) => !jn(T));
|
|
472
476
|
}
|
|
473
|
-
function
|
|
477
|
+
function Ls(s, c) {
|
|
474
478
|
var d = Or(".bloom-editable", s).filter(
|
|
475
479
|
(h) => window.getComputedStyle(h).display !== "none"
|
|
476
480
|
);
|
|
477
481
|
return c && (d = d.filter((h) => !c.contains(h))), d;
|
|
478
482
|
}
|
|
479
|
-
function
|
|
480
|
-
return
|
|
483
|
+
function Ns(s, c) {
|
|
484
|
+
return Ls(s || wt, c);
|
|
481
485
|
}
|
|
482
486
|
function Br(s, c) {
|
|
483
487
|
return [].concat.apply(
|
|
484
488
|
[],
|
|
485
|
-
|
|
489
|
+
Ns(s, c).map(
|
|
486
490
|
(d) => Or(".audio-sentence", d, !0)
|
|
487
491
|
)
|
|
488
492
|
);
|
|
489
493
|
}
|
|
490
|
-
function
|
|
494
|
+
function da(s) {
|
|
491
495
|
return !!Br(s).length;
|
|
492
496
|
}
|
|
493
|
-
function
|
|
497
|
+
function ha() {
|
|
494
498
|
if (ei !== 4) {
|
|
495
499
|
if (Kt(
|
|
496
500
|
4
|
|
497
501
|
/* AudioPlaying */
|
|
498
502
|
), zi.length && Pt())
|
|
499
|
-
if (
|
|
503
|
+
if (Qe.length) {
|
|
500
504
|
Wn(Pt().play()), Oi = (/* @__PURE__ */ new Date()).getTime(), zr(pi);
|
|
501
505
|
return;
|
|
502
506
|
} else {
|
|
503
507
|
hs(null);
|
|
504
508
|
return;
|
|
505
509
|
}
|
|
506
|
-
Ii?.raise(
|
|
510
|
+
Ii?.raise(wt);
|
|
507
511
|
}
|
|
508
512
|
}
|
|
509
|
-
function
|
|
510
|
-
ei !== 5 && (
|
|
513
|
+
function pa() {
|
|
514
|
+
ei !== 5 && (Ps(), Kt(
|
|
511
515
|
5
|
|
512
516
|
/* AudioPaused */
|
|
513
517
|
));
|
|
514
518
|
}
|
|
515
|
-
function
|
|
519
|
+
function Ps() {
|
|
516
520
|
const s = Pt();
|
|
517
521
|
clearTimeout(Mr), zi && zi.length && s && (s.currentTime > 0 && !s.paused && !s.ended && Hr(), s.pause());
|
|
518
522
|
}
|
|
519
|
-
function
|
|
523
|
+
function ga(s) {
|
|
520
524
|
let c = 0;
|
|
521
525
|
return Br(s).forEach((d) => {
|
|
522
526
|
const h = d.getAttribute("data-duration");
|
|
523
527
|
h && (c += parseFloat(h));
|
|
524
528
|
}), c < Di && (c = Di), c;
|
|
525
529
|
}
|
|
526
|
-
function
|
|
530
|
+
function ma() {
|
|
527
531
|
clearTimeout(Mr), qr();
|
|
528
532
|
}
|
|
529
533
|
let Gt = 0, Zt;
|
|
@@ -531,14 +535,14 @@ const fi = /* @__PURE__ */ new WeakMap();
|
|
|
531
535
|
function qr() {
|
|
532
536
|
Gt++, Zt && (Zt.pause(), Zt.currentTime = 0, Zt = void 0);
|
|
533
537
|
}
|
|
534
|
-
function
|
|
538
|
+
function Ds(s) {
|
|
535
539
|
return s ? s.name === "AbortError" ? !0 : (typeof s.message == "string" && s.message || (typeof s.toString == "function" ? s.toString() : "")).includes("interrupted by a call to pause()") : !1;
|
|
536
540
|
}
|
|
537
541
|
const Li = /* @__PURE__ */ new WeakMap();
|
|
538
542
|
function Rr(s) {
|
|
539
543
|
Li.get(s)?.();
|
|
540
544
|
}
|
|
541
|
-
function
|
|
545
|
+
function Ms(s, c = () => !0, d = () => Gn(s)) {
|
|
542
546
|
if (!s.paused)
|
|
543
547
|
return;
|
|
544
548
|
Rr(s);
|
|
@@ -576,7 +580,7 @@ function jr(s, c) {
|
|
|
576
580
|
const d = ++Gt;
|
|
577
581
|
hi(s, c, d);
|
|
578
582
|
}
|
|
579
|
-
function
|
|
583
|
+
function zs(s, c) {
|
|
580
584
|
return s.networkState === HTMLMediaElement.NETWORK_NO_SOURCE && s.readyState === HTMLMediaElement.HAVE_NOTHING ? !0 : c ? c.name === "NotSupportedError" ? !0 : s.error?.code === (window.MediaError ? window.MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED : 4) : !1;
|
|
581
585
|
}
|
|
582
586
|
function hi(s, c, d) {
|
|
@@ -587,10 +591,10 @@ function hi(s, c, d) {
|
|
|
587
591
|
return;
|
|
588
592
|
}
|
|
589
593
|
const h = s[0];
|
|
590
|
-
if (Zt = h,
|
|
594
|
+
if (Zt = h, zs(h))
|
|
591
595
|
fi.delete(h), Sn(h), hi(s.slice(1), c, d);
|
|
592
596
|
else {
|
|
593
|
-
|
|
597
|
+
Hs(h), Ri(h), Kt(
|
|
594
598
|
2
|
|
595
599
|
/* VideoPlaying */
|
|
596
600
|
), Rr(h), h.currentTime = 0;
|
|
@@ -631,7 +635,7 @@ function hi(s, c, d) {
|
|
|
631
635
|
return;
|
|
632
636
|
}
|
|
633
637
|
const G = fi.get(h) ?? 0;
|
|
634
|
-
if (
|
|
638
|
+
if (Ds(V) && G < 2) {
|
|
635
639
|
fi.set(h, G + 1), window.setTimeout(() => {
|
|
636
640
|
hi(s, c, d);
|
|
637
641
|
}, 50);
|
|
@@ -641,12 +645,12 @@ function hi(s, c, d) {
|
|
|
641
645
|
});
|
|
642
646
|
}
|
|
643
647
|
}
|
|
644
|
-
const
|
|
648
|
+
const Is = "Sorry, this video cannot be played in this browser.";
|
|
645
649
|
function Sn(s) {
|
|
646
650
|
const c = s.parentElement;
|
|
647
651
|
if (c && c.getElementsByClassName("video-error-message").length === 0) {
|
|
648
652
|
const h = c.ownerDocument.createElement("div");
|
|
649
|
-
h.className = "video-error-message normal-style", h.textContent =
|
|
653
|
+
h.className = "video-error-message normal-style", h.textContent = Is, h.style.display = "block", h.style.color = "black", h.style.backgroundColor = "rgba(255, 255, 255, 0.5)", h.style.position = "absolute", h.style.left = "10%", h.style.top = "10%", h.style.width = "80%", h.style.fontSize = "x-large", h.style.pointerEvents = "none", c.appendChild(h);
|
|
650
654
|
}
|
|
651
655
|
}
|
|
652
656
|
function Gn(s) {
|
|
@@ -655,7 +659,7 @@ function Gn(s) {
|
|
|
655
659
|
function Ri(s) {
|
|
656
660
|
(s.closest(".bloom-videoContainer") || s.parentElement)?.classList.remove("autoplayBlocked");
|
|
657
661
|
}
|
|
658
|
-
function
|
|
662
|
+
function Hs(s) {
|
|
659
663
|
const c = s.parentElement;
|
|
660
664
|
if (c) {
|
|
661
665
|
const d = c.getElementsByClassName("video-error-message");
|
|
@@ -663,23 +667,21 @@ function Is(s) {
|
|
|
663
667
|
}
|
|
664
668
|
}
|
|
665
669
|
const ji = ".bloom-textOverPicture, .bloom-canvas-element";
|
|
666
|
-
let Ar = [], Wi = /* @__PURE__ */ new Map(),
|
|
667
|
-
const
|
|
668
|
-
Fi =
|
|
669
|
-
Fi.
|
|
670
|
+
let Ar = [], Wi = /* @__PURE__ */ new Map(), pt, Zn, Fi = [];
|
|
671
|
+
const Os = (s) => {
|
|
672
|
+
Fi = [], s.querySelectorAll("[data-draggable-id]").forEach((c) => {
|
|
673
|
+
Fi.push({
|
|
670
674
|
x: c.style.left,
|
|
671
|
-
y: c.style.top
|
|
675
|
+
y: c.style.top,
|
|
676
|
+
elt: c
|
|
672
677
|
});
|
|
673
678
|
});
|
|
674
|
-
}, Wr = (
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
c.getAttribute("data-draggable-id")
|
|
678
|
-
);
|
|
679
|
-
d && (c.style.left = d.x, c.style.top = d.y, c.classList.remove("bloom-draggedToTarget"));
|
|
679
|
+
}, Wr = () => {
|
|
680
|
+
Fi.forEach((s) => {
|
|
681
|
+
s.elt.style.left = s.x, s.elt.style.top = s.y, s.elt.classList.remove("bloom-draggedToTarget");
|
|
680
682
|
});
|
|
681
683
|
};
|
|
682
|
-
function
|
|
684
|
+
function Bs(s) {
|
|
683
685
|
if (s.getAttribute("data-activity") !== "drag-letter-to-target")
|
|
684
686
|
return;
|
|
685
687
|
const c = Array.from(
|
|
@@ -697,11 +699,11 @@ function Os(s) {
|
|
|
697
699
|
function Fr(s) {
|
|
698
700
|
return s.closest("#page-scaling-container") !== null;
|
|
699
701
|
}
|
|
700
|
-
function
|
|
701
|
-
|
|
702
|
+
function va(s, c) {
|
|
703
|
+
pt = s, Bs(s), Zn = c, vo(
|
|
702
704
|
s.getAttribute("data-show-answers-in-targets") === "true" || s.getAttribute("data-show-target-as-shadow") === "true",
|
|
703
705
|
s
|
|
704
|
-
),
|
|
706
|
+
), Os(s), Array.from(
|
|
705
707
|
s.getElementsByClassName(
|
|
706
708
|
"bloom-change-page-button"
|
|
707
709
|
)
|
|
@@ -736,7 +738,7 @@ function ma(s, c) {
|
|
|
736
738
|
}
|
|
737
739
|
Wi.set(Q, { x: Q.offsetLeft, y: Q.offsetTop }), Q.style.touchAction = "none", Q.addEventListener("pointerdown", oo, { capture: !0 });
|
|
738
740
|
}), Array.from(s.getElementsByTagName("video")).forEach((Q) => {
|
|
739
|
-
Q.closest(ji)?.hasAttribute("data-draggable-id") && (Q.classList.add("bloom-ui-no-controls"), Q.addEventListener("pointerdown", Kn),
|
|
741
|
+
Q.closest(ji)?.hasAttribute("data-draggable-id") && (Q.classList.add("bloom-ui-no-controls"), Q.addEventListener("pointerdown", Kn), Ms(Q));
|
|
740
742
|
});
|
|
741
743
|
const z = h.concat(T);
|
|
742
744
|
Array.from(
|
|
@@ -772,9 +774,9 @@ function ma(s, c) {
|
|
|
772
774
|
s.querySelectorAll("[data-sound]")
|
|
773
775
|
).forEach((Q) => {
|
|
774
776
|
Q.addEventListener("click", Jn);
|
|
775
|
-
}),
|
|
777
|
+
}), qs(s), Fs(s);
|
|
776
778
|
}
|
|
777
|
-
const
|
|
779
|
+
const qs = (s) => {
|
|
778
780
|
Array.from(
|
|
779
781
|
s.getElementsByClassName(
|
|
780
782
|
"drag-item-order-sentence"
|
|
@@ -785,7 +787,7 @@ const Bs = (s) => {
|
|
|
785
787
|
"bloom-content1 bloom-visibility-code-on"
|
|
786
788
|
)[0], h = d?.textContent?.trim();
|
|
787
789
|
if (!h) return;
|
|
788
|
-
const T = h.split(" "), L =
|
|
790
|
+
const T = h.split(" "), L = js(T), z = s.ownerDocument.createElement("div");
|
|
789
791
|
z.classList.add("drag-item-random-sentence"), z.setAttribute("data-answer", h), to(s, L, z, d, !0), z.style.left = c.style.left, z.style.top = c.style.top, z.style.width = c.style.width, c.parentElement?.insertBefore(z, c);
|
|
790
792
|
}
|
|
791
793
|
);
|
|
@@ -793,8 +795,8 @@ const Bs = (s) => {
|
|
|
793
795
|
const c = s.currentTarget;
|
|
794
796
|
Rr(c), c.play();
|
|
795
797
|
};
|
|
796
|
-
function
|
|
797
|
-
|
|
798
|
+
function ya(s) {
|
|
799
|
+
qr(), Wr(), Fi = [], Array.from(
|
|
798
800
|
s.getElementsByClassName(
|
|
799
801
|
"bloom-change-page-button"
|
|
800
802
|
)
|
|
@@ -842,7 +844,7 @@ function va(s) {
|
|
|
842
844
|
)
|
|
843
845
|
).forEach((k) => {
|
|
844
846
|
k.parentElement?.removeChild(k);
|
|
845
|
-
}),
|
|
847
|
+
}), Ws(s);
|
|
846
848
|
const D = s.closest(".swiper-slide") !== null;
|
|
847
849
|
vo(!D, s);
|
|
848
850
|
}
|
|
@@ -853,10 +855,10 @@ const Jn = (s) => {
|
|
|
853
855
|
const c = s.currentTarget;
|
|
854
856
|
eo(c);
|
|
855
857
|
}, eo = (s) => {
|
|
856
|
-
const c =
|
|
858
|
+
const c = Rs(s);
|
|
857
859
|
gi(c, s.closest(".bloom-page"));
|
|
858
860
|
};
|
|
859
|
-
function
|
|
861
|
+
function Rs(s) {
|
|
860
862
|
const c = Vi(s);
|
|
861
863
|
return _r(c);
|
|
862
864
|
}
|
|
@@ -864,7 +866,7 @@ function to(s, c, d, h, T) {
|
|
|
864
866
|
const L = Array.from(h?.classList)?.find((D) => D.endsWith("-style")) ?? "Normal-style", z = h?.getAttribute("lang");
|
|
865
867
|
c.forEach((D) => {
|
|
866
868
|
const k = s.ownerDocument.createElement("div");
|
|
867
|
-
k.classList.add("drag-item-order-word"), k.textContent = D, d.appendChild(k), k.classList.add(L), z && k.setAttribute("lang", z), T && k.addEventListener("pointerdown",
|
|
869
|
+
k.classList.add("drag-item-order-word"), k.textContent = D, d.appendChild(k), k.classList.add(L), z && k.setAttribute("lang", z), T && k.addEventListener("pointerdown", Xs);
|
|
868
870
|
});
|
|
869
871
|
}
|
|
870
872
|
function io(s) {
|
|
@@ -873,7 +875,7 @@ function io(s) {
|
|
|
873
875
|
);
|
|
874
876
|
Zn?.(c);
|
|
875
877
|
}
|
|
876
|
-
function
|
|
878
|
+
function ba(s, c) {
|
|
877
879
|
const d = (L) => {
|
|
878
880
|
const z = L.closest(ji);
|
|
879
881
|
return !(!z || z.classList.contains("draggable-text") || z.hasAttribute("data-draggable-id") || z.classList.contains("drag-item-order-sentence") || z.classList.contains("bloom-wordChoice") || z.classList.contains("drag-item-correct") || z.classList.contains("drag-item-wrong"));
|
|
@@ -888,7 +890,7 @@ function ya(s, c) {
|
|
|
888
890
|
}
|
|
889
891
|
let ro = (s, c) => {
|
|
890
892
|
};
|
|
891
|
-
function
|
|
893
|
+
function wa(s) {
|
|
892
894
|
ro = s;
|
|
893
895
|
}
|
|
894
896
|
function _r(s) {
|
|
@@ -909,7 +911,7 @@ function Vi(s) {
|
|
|
909
911
|
);
|
|
910
912
|
return s.classList.contains("bloom-editable") && window.getComputedStyle(s).display !== "none" && c.push(s), c;
|
|
911
913
|
}
|
|
912
|
-
function
|
|
914
|
+
function js(s, c) {
|
|
913
915
|
c || (c = (D, k) => D === k);
|
|
914
916
|
let d = !0;
|
|
915
917
|
for (let D = 1; D < s.length; ++D)
|
|
@@ -936,14 +938,14 @@ function Rs(s, c) {
|
|
|
936
938
|
for (let D = 0; D < s.length; ++D) s[D] = L[D];
|
|
937
939
|
return s;
|
|
938
940
|
}
|
|
939
|
-
function
|
|
941
|
+
function xa(s, c) {
|
|
940
942
|
return s.innerText.trim() === c.innerText.trim();
|
|
941
943
|
}
|
|
942
944
|
const no = (s) => {
|
|
943
|
-
if (!
|
|
945
|
+
if (!pt)
|
|
944
946
|
return;
|
|
945
|
-
Wr(
|
|
946
|
-
const h = d.getAttribute("data-draggable-id"), T =
|
|
947
|
+
Wr(), pt.querySelectorAll("[data-draggable-id]").forEach((d) => {
|
|
948
|
+
const h = d.getAttribute("data-draggable-id"), T = pt?.querySelector(
|
|
947
949
|
`[data-target-of="${h}"]`
|
|
948
950
|
);
|
|
949
951
|
if (!T)
|
|
@@ -961,23 +963,23 @@ const no = (s) => {
|
|
|
961
963
|
const D = T.offsetLeft + (T.offsetWidth - L) / 2, k = T.offsetTop + (T.offsetHeight - z) / 2;
|
|
962
964
|
d.style.left = D + "px", d.style.top = k + "px";
|
|
963
965
|
}), Array.from(
|
|
964
|
-
|
|
966
|
+
pt.getElementsByClassName(
|
|
965
967
|
"drag-item-random-sentence"
|
|
966
968
|
)
|
|
967
969
|
).forEach((d) => {
|
|
968
970
|
const h = d.getAttribute("data-answer")?.split(" ") ?? [], T = d.children[0];
|
|
969
971
|
d.innerHTML = "", to(
|
|
970
|
-
|
|
972
|
+
pt,
|
|
971
973
|
h,
|
|
972
974
|
d,
|
|
973
975
|
T,
|
|
974
976
|
!1
|
|
975
977
|
);
|
|
976
|
-
}), jt(
|
|
978
|
+
}), jt(pt, "drag-activity-wrong", !1), jt(pt, "drag-activity-solution", !0);
|
|
977
979
|
const c = [];
|
|
978
|
-
|
|
980
|
+
pt.querySelectorAll("[data-draggable-id]").forEach((d) => {
|
|
979
981
|
const h = d.getAttribute("data-draggable-id");
|
|
980
|
-
|
|
982
|
+
pt?.querySelector(
|
|
981
983
|
`[data-target-of="${h}"]`
|
|
982
984
|
) && c.push(
|
|
983
985
|
...Array.from(d.getElementsByTagName("video"))
|
|
@@ -1031,27 +1033,27 @@ const Yi = (s) => s.getBoundingClientRect().width / s.offsetWidth, oo = (s) => {
|
|
|
1031
1033
|
Math.abs(T - d) < 0.6 && Math.abs(L - h) < 0.6
|
|
1032
1034
|
);
|
|
1033
1035
|
}, lo = (s) => {
|
|
1034
|
-
const d = s.currentTarget.closest(".bloom-page"), h =
|
|
1035
|
-
return
|
|
1036
|
+
const d = s.currentTarget.closest(".bloom-page"), h = $s(d) && Ys(d);
|
|
1037
|
+
return Vs(d, h), ro(1, h ? 1 : 0), h;
|
|
1036
1038
|
}, co = (s) => {
|
|
1037
1039
|
const d = s.currentTarget.closest(".bloom-page");
|
|
1038
|
-
jt(d, "drag-activity-correct", !1), jt(d, "drag-activity-wrong", !1), jt(d, "drag-activity-solution", !1), Wr(
|
|
1040
|
+
jt(d, "drag-activity-correct", !1), jt(d, "drag-activity-wrong", !1), jt(d, "drag-activity-solution", !1), Wr(), qr();
|
|
1039
1041
|
}, jt = (s, c, d) => {
|
|
1040
1042
|
d ? s.parentElement?.classList.add(c) : s.parentElement?.classList.remove(c);
|
|
1041
1043
|
};
|
|
1042
1044
|
let Fe, fe, Vr, $r;
|
|
1043
|
-
function
|
|
1045
|
+
function Ta(s, c) {
|
|
1044
1046
|
Vr = s, $r = c;
|
|
1045
1047
|
}
|
|
1046
1048
|
const Xr = "data-preload-sound";
|
|
1047
|
-
function
|
|
1049
|
+
function Ws(s) {
|
|
1048
1050
|
s.querySelectorAll(
|
|
1049
1051
|
`audio[${Xr}]`
|
|
1050
1052
|
).forEach((c) => {
|
|
1051
1053
|
c.src = "", c.remove();
|
|
1052
1054
|
});
|
|
1053
1055
|
}
|
|
1054
|
-
function
|
|
1056
|
+
function Fs(s) {
|
|
1055
1057
|
const c = (d, h) => {
|
|
1056
1058
|
const T = d !== null;
|
|
1057
1059
|
if (d === null)
|
|
@@ -1074,15 +1076,15 @@ function Ws(s) {
|
|
|
1074
1076
|
$r
|
|
1075
1077
|
);
|
|
1076
1078
|
}
|
|
1077
|
-
function
|
|
1079
|
+
function _s(s, c, d) {
|
|
1078
1080
|
let h = s.getAttribute(
|
|
1079
1081
|
c ? "data-correct-sound" : "data-wrong-sound"
|
|
1080
1082
|
);
|
|
1081
1083
|
const T = h !== null;
|
|
1082
1084
|
h === null ? h = c ? Vr : $r : h === "none" && (h = void 0), h ? uo(s, h, T, d) : d?.();
|
|
1083
1085
|
}
|
|
1084
|
-
function
|
|
1085
|
-
jt(s, "drag-activity-correct", c), jt(s, "drag-activity-wrong", !c),
|
|
1086
|
+
function Vs(s, c) {
|
|
1087
|
+
jt(s, "drag-activity-correct", c), jt(s, "drag-activity-wrong", !c), _s(s, c, () => {
|
|
1086
1088
|
if (!s.parentElement?.classList.contains(
|
|
1087
1089
|
c ? "drag-activity-correct" : "drag-activity-wrong"
|
|
1088
1090
|
))
|
|
@@ -1125,7 +1127,7 @@ function uo(s, c, d = !0, h) {
|
|
|
1125
1127
|
{ once: !0 }
|
|
1126
1128
|
);
|
|
1127
1129
|
}
|
|
1128
|
-
function
|
|
1130
|
+
function $s(s) {
|
|
1129
1131
|
let c = !0;
|
|
1130
1132
|
const d = Array.from(
|
|
1131
1133
|
s.querySelectorAll("[data-draggable-id]")
|
|
@@ -1148,7 +1150,7 @@ function Vs(s) {
|
|
|
1148
1150
|
}
|
|
1149
1151
|
let qe, Nr = 0;
|
|
1150
1152
|
const fo = 5;
|
|
1151
|
-
function
|
|
1153
|
+
function Xs(s) {
|
|
1152
1154
|
if (s.button !== 0 || s.ctrlKey) return;
|
|
1153
1155
|
fe = s.currentTarget, Nr = fe.offsetWidth;
|
|
1154
1156
|
const c = fe.closest(".bloom-page"), d = Yi(c);
|
|
@@ -1234,7 +1236,7 @@ function wr(s) {
|
|
|
1234
1236
|
};
|
|
1235
1237
|
requestAnimationFrame(L);
|
|
1236
1238
|
}
|
|
1237
|
-
function
|
|
1239
|
+
function Ys(s) {
|
|
1238
1240
|
const c = s.getElementsByClassName("drag-item-random-sentence");
|
|
1239
1241
|
for (let d = 0; d < c.length; d++) {
|
|
1240
1242
|
const h = c[d], T = h.getAttribute("data-answer").split(" "), L = Array.from(h.children);
|
|
@@ -1247,12 +1249,12 @@ function Xs(s) {
|
|
|
1247
1249
|
const vo = (s, c) => {
|
|
1248
1250
|
const d = c.querySelectorAll(":scope [data-draggable-id]");
|
|
1249
1251
|
s ? d.forEach((h) => {
|
|
1250
|
-
Ys(h);
|
|
1251
|
-
}) : d.forEach((h) => {
|
|
1252
1252
|
Us(h);
|
|
1253
|
+
}) : d.forEach((h) => {
|
|
1254
|
+
Gs(h);
|
|
1253
1255
|
});
|
|
1254
1256
|
};
|
|
1255
|
-
function
|
|
1257
|
+
function Us(s) {
|
|
1256
1258
|
const c = Yr(s);
|
|
1257
1259
|
if (!c)
|
|
1258
1260
|
return;
|
|
@@ -1298,18 +1300,18 @@ const Yr = (s) => {
|
|
|
1298
1300
|
if (c)
|
|
1299
1301
|
return s.closest(".bloom-page").querySelector(`[data-target-of="${c}"]`);
|
|
1300
1302
|
};
|
|
1301
|
-
function
|
|
1303
|
+
function Gs(s) {
|
|
1302
1304
|
const c = Yr(s);
|
|
1303
1305
|
c && (c.innerHTML = "");
|
|
1304
1306
|
}
|
|
1305
|
-
let
|
|
1306
|
-
function
|
|
1307
|
+
let Sa = !1;
|
|
1308
|
+
function Ea(s) {
|
|
1307
1309
|
}
|
|
1308
|
-
function
|
|
1310
|
+
function Zs(s) {
|
|
1309
1311
|
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
1310
1312
|
}
|
|
1311
1313
|
var Pi = { exports: {} };
|
|
1312
|
-
var
|
|
1314
|
+
var Ks = Pi.exports, An;
|
|
1313
1315
|
function yo() {
|
|
1314
1316
|
return An || (An = 1, (function(s) {
|
|
1315
1317
|
(function(c, d) {
|
|
@@ -1318,7 +1320,7 @@ function yo() {
|
|
|
1318
1320
|
throw new Error("jQuery requires a window with a document");
|
|
1319
1321
|
return d(h);
|
|
1320
1322
|
};
|
|
1321
|
-
})(typeof window < "u" ? window :
|
|
1323
|
+
})(typeof window < "u" ? window : Ks, function(c, d) {
|
|
1322
1324
|
var h = [], T = Object.getPrototypeOf, L = h.slice, z = h.flat ? function(t) {
|
|
1323
1325
|
return h.flat.call(t);
|
|
1324
1326
|
} : function(t) {
|
|
@@ -1333,7 +1335,7 @@ function yo() {
|
|
|
1333
1335
|
nonce: !0,
|
|
1334
1336
|
noModule: !0
|
|
1335
1337
|
};
|
|
1336
|
-
function
|
|
1338
|
+
function xt(t, i, r) {
|
|
1337
1339
|
r = r || U;
|
|
1338
1340
|
var n, a, l = r.createElement("script");
|
|
1339
1341
|
if (l.text = t, i)
|
|
@@ -1437,11 +1439,11 @@ function yo() {
|
|
|
1437
1439
|
// Evaluates a script in a provided context; falls back to the global one
|
|
1438
1440
|
// if not specified.
|
|
1439
1441
|
globalEval: function(t, i, r) {
|
|
1440
|
-
|
|
1442
|
+
xt(t, { nonce: i && i.nonce }, r);
|
|
1441
1443
|
},
|
|
1442
1444
|
each: function(t, i) {
|
|
1443
1445
|
var r, n = 0;
|
|
1444
|
-
if (
|
|
1446
|
+
if (at(t))
|
|
1445
1447
|
for (r = t.length; n < r && i.call(t[n], n, t[n]) !== !1; n++)
|
|
1446
1448
|
;
|
|
1447
1449
|
else
|
|
@@ -1461,7 +1463,7 @@ function yo() {
|
|
|
1461
1463
|
// results is for internal usage only
|
|
1462
1464
|
makeArray: function(t, i) {
|
|
1463
1465
|
var r = i || [];
|
|
1464
|
-
return t != null && (
|
|
1466
|
+
return t != null && (at(Object(t)) ? o.merge(
|
|
1465
1467
|
r,
|
|
1466
1468
|
typeof t == "string" ? [t] : t
|
|
1467
1469
|
) : D.call(r, t)), r;
|
|
@@ -1488,7 +1490,7 @@ function yo() {
|
|
|
1488
1490
|
// arg is for internal usage only
|
|
1489
1491
|
map: function(t, i, r) {
|
|
1490
1492
|
var n, a, l = 0, u = [];
|
|
1491
|
-
if (
|
|
1493
|
+
if (at(t))
|
|
1492
1494
|
for (n = t.length; l < n; l++)
|
|
1493
1495
|
a = i(t[l], l, r), a != null && u.push(a);
|
|
1494
1496
|
else
|
|
@@ -1507,7 +1509,7 @@ function yo() {
|
|
|
1507
1509
|
q["[object " + i + "]"] = i.toLowerCase();
|
|
1508
1510
|
}
|
|
1509
1511
|
);
|
|
1510
|
-
function
|
|
1512
|
+
function at(t) {
|
|
1511
1513
|
var i = !!t && "length" in t && t.length, r = Ve(t);
|
|
1512
1514
|
return G(t) || Ee(t) ? !1 : r === "array" || i === 0 || typeof i == "number" && i > 0 && i - 1 in t;
|
|
1513
1515
|
}
|
|
@@ -1535,27 +1537,27 @@ function yo() {
|
|
|
1535
1537
|
(function() {
|
|
1536
1538
|
var t, i, r, n, a, l = De, u, y, m, w, P, O = o.expando, A = 0, R = 0, ie = xi(), de = xi(), ne = xi(), Oe = xi(), Pe = function(p, b) {
|
|
1537
1539
|
return p === b && (a = !0), 0;
|
|
1538
|
-
},
|
|
1540
|
+
}, ct = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", ut = "(?:\\\\[\\da-fA-F]{1,6}" + j + "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+", ce = "\\[" + j + "*(" + ut + ")(?:" + j + // Operator (capture 2)
|
|
1539
1541
|
"*([*^$|!~]?=)" + j + // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
|
|
1540
|
-
`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(` +
|
|
1541
|
-
ID: new RegExp("^#(" +
|
|
1542
|
-
CLASS: new RegExp("^\\.(" +
|
|
1543
|
-
TAG: new RegExp("^(" +
|
|
1542
|
+
`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(` + ut + "))|)" + j + "*\\]", qt = ":(" + ut + `)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|` + ce + ")*)|.*)\\)|)", he = new RegExp(j + "+", "g"), Se = new RegExp("^" + j + "*," + j + "*"), li = new RegExp("^" + j + "*([>+~]|" + j + ")" + j + "*"), fr = new RegExp(j + "|>"), ft = new RegExp(qt), ci = new RegExp("^" + ut + "$"), dt = {
|
|
1543
|
+
ID: new RegExp("^#(" + ut + ")"),
|
|
1544
|
+
CLASS: new RegExp("^\\.(" + ut + ")"),
|
|
1545
|
+
TAG: new RegExp("^(" + ut + "|[*])"),
|
|
1544
1546
|
ATTR: new RegExp("^" + ce),
|
|
1545
1547
|
PSEUDO: new RegExp("^" + qt),
|
|
1546
1548
|
CHILD: new RegExp(
|
|
1547
1549
|
"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + j + "*(even|odd|(([+-]|)(\\d*)n|)" + j + "*(?:([+-]|)" + j + "*(\\d+)|))" + j + "*\\)|)",
|
|
1548
1550
|
"i"
|
|
1549
1551
|
),
|
|
1550
|
-
bool: new RegExp("^(?:" +
|
|
1552
|
+
bool: new RegExp("^(?:" + ct + ")$", "i"),
|
|
1551
1553
|
// For use in libraries implementing .is()
|
|
1552
1554
|
// We use this for POS matching in `select`
|
|
1553
1555
|
needsContext: new RegExp("^" + j + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + j + "*((?:-\\d)?\\d*)" + j + "*\\)|)(?=[^-]|$)", "i")
|
|
1554
|
-
},
|
|
1556
|
+
}, At = /^(?:input|select|textarea|button)$/i, kt = /^h\d$/i, it = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, dr = /[+~]/, yt = new RegExp("\\\\[\\da-fA-F]{1,6}" + j + "?|\\\\([^\\r\\n\\f])", "g"), bt = function(p, b) {
|
|
1555
1557
|
var E = "0x" + p.slice(1) - 65536;
|
|
1556
1558
|
return b || (E < 0 ? String.fromCharCode(E + 65536) : String.fromCharCode(E >> 10 | 55296, E & 1023 | 56320));
|
|
1557
1559
|
}, Qo = function() {
|
|
1558
|
-
|
|
1560
|
+
Lt();
|
|
1559
1561
|
}, es = Si(
|
|
1560
1562
|
function(p) {
|
|
1561
1563
|
return p.disabled === !0 && me(p, "fieldset");
|
|
@@ -1587,8 +1589,8 @@ function yo() {
|
|
|
1587
1589
|
var I, F, $, Y, X, se, te, re = b && b.ownerDocument, ae = b ? b.nodeType : 9;
|
|
1588
1590
|
if (E = E || [], typeof p != "string" || !p || ae !== 1 && ae !== 9 && ae !== 11)
|
|
1589
1591
|
return E;
|
|
1590
|
-
if (!N && (
|
|
1591
|
-
if (ae !== 11 && (X =
|
|
1592
|
+
if (!N && (Lt(b), b = b || u, m)) {
|
|
1593
|
+
if (ae !== 11 && (X = it.exec(p)))
|
|
1592
1594
|
if (I = X[1]) {
|
|
1593
1595
|
if (ae === 9)
|
|
1594
1596
|
if ($ = b.getElementById(I)) {
|
|
@@ -1631,7 +1633,7 @@ function yo() {
|
|
|
1631
1633
|
}
|
|
1632
1634
|
return b;
|
|
1633
1635
|
}
|
|
1634
|
-
function
|
|
1636
|
+
function st(p) {
|
|
1635
1637
|
return p[O] = !0, p;
|
|
1636
1638
|
}
|
|
1637
1639
|
function Yt(p) {
|
|
@@ -1661,8 +1663,8 @@ function yo() {
|
|
|
1661
1663
|
};
|
|
1662
1664
|
}
|
|
1663
1665
|
function Rt(p) {
|
|
1664
|
-
return
|
|
1665
|
-
return b = +b,
|
|
1666
|
+
return st(function(b) {
|
|
1667
|
+
return b = +b, st(function(E, N) {
|
|
1666
1668
|
for (var I, F = p([], E.length, b), $ = F.length; $--; )
|
|
1667
1669
|
E[I = F[$]] && (E[I] = !(N[I] = E[I]));
|
|
1668
1670
|
});
|
|
@@ -1671,7 +1673,7 @@ function yo() {
|
|
|
1671
1673
|
function hr(p) {
|
|
1672
1674
|
return p && typeof p.getElementsByTagName < "u" && p;
|
|
1673
1675
|
}
|
|
1674
|
-
function
|
|
1676
|
+
function Lt(p) {
|
|
1675
1677
|
var b, E = p ? p.ownerDocument || p : g;
|
|
1676
1678
|
return E == u || E.nodeType !== 9 || !E.documentElement || (u = E, y = u.documentElement, m = !o.isXMLDoc(u), P = y.matches || y.webkitMatchesSelector || y.msMatchesSelector, y.msMatchesSelector && // Support: IE 11+, Edge 17 - 18+
|
|
1677
1679
|
// IE/Edge sometimes throw a "Permission denied" error when strict-comparing
|
|
@@ -1724,7 +1726,7 @@ function yo() {
|
|
|
1724
1726
|
return I.getElementsByClassName(N);
|
|
1725
1727
|
}, w = [], Yt(function(N) {
|
|
1726
1728
|
var I;
|
|
1727
|
-
y.appendChild(N).innerHTML = "<a id='" + O + "' href='' disabled='disabled'></a><select id='" + O + "-\r\\' disabled='disabled'><option selected=''></option></select>", N.querySelectorAll("[selected]").length || w.push("\\[" + j + "*(?:value|" +
|
|
1729
|
+
y.appendChild(N).innerHTML = "<a id='" + O + "' href='' disabled='disabled'></a><select id='" + O + "-\r\\' disabled='disabled'><option selected=''></option></select>", N.querySelectorAll("[selected]").length || w.push("\\[" + j + "*(?:value|" + ct + ")"), N.querySelectorAll("[id~=" + O + "-]").length || w.push("~="), N.querySelectorAll("a#" + O + "+*").length || w.push(".#.+[+~]"), N.querySelectorAll(":checked").length || w.push(":checked"), I = u.createElement("input"), I.setAttribute("type", "hidden"), N.appendChild(I).setAttribute("name", "D"), y.appendChild(N).disabled = !0, N.querySelectorAll(":disabled").length !== 2 && w.push(":enabled", ":disabled"), I = u.createElement("input"), I.setAttribute("name", ""), N.appendChild(I), N.querySelectorAll("[name='']").length || w.push("\\[" + j + "*name" + j + "*=" + j + `*(?:''|"")`);
|
|
1728
1730
|
}), V.cssHas || w.push(":has"), w = w.length && new RegExp(w.join("|")), Pe = function(N, I) {
|
|
1729
1731
|
if (N === I)
|
|
1730
1732
|
return a = !0, 0;
|
|
@@ -1738,7 +1740,7 @@ function yo() {
|
|
|
1738
1740
|
be.matches = function(p, b) {
|
|
1739
1741
|
return be(p, null, null, b);
|
|
1740
1742
|
}, be.matchesSelector = function(p, b) {
|
|
1741
|
-
if (
|
|
1743
|
+
if (Lt(p), m && !Oe[b + " "] && (!w || !w.test(b)))
|
|
1742
1744
|
try {
|
|
1743
1745
|
var E = P.call(p, b);
|
|
1744
1746
|
if (E || V.disconnectedMatch || // As well, disconnected nodes are said to be in a document
|
|
@@ -1750,9 +1752,9 @@ function yo() {
|
|
|
1750
1752
|
}
|
|
1751
1753
|
return be(b, u, null, [p]).length > 0;
|
|
1752
1754
|
}, be.contains = function(p, b) {
|
|
1753
|
-
return (p.ownerDocument || p) != u &&
|
|
1755
|
+
return (p.ownerDocument || p) != u && Lt(p), o.contains(p, b);
|
|
1754
1756
|
}, be.attr = function(p, b) {
|
|
1755
|
-
(p.ownerDocument || p) != u &&
|
|
1757
|
+
(p.ownerDocument || p) != u && Lt(p);
|
|
1756
1758
|
var E = i.attrHandle[b.toLowerCase()], N = E && ye.call(i.attrHandle, b.toLowerCase()) ? E(p, b, !m) : void 0;
|
|
1757
1759
|
return N !== void 0 ? N : p.getAttribute(b);
|
|
1758
1760
|
}, be.error = function(p) {
|
|
@@ -1771,8 +1773,8 @@ function yo() {
|
|
|
1771
1773
|
}, i = o.expr = {
|
|
1772
1774
|
// Can be adjusted by the user
|
|
1773
1775
|
cacheLength: 50,
|
|
1774
|
-
createPseudo:
|
|
1775
|
-
match:
|
|
1776
|
+
createPseudo: st,
|
|
1777
|
+
match: dt,
|
|
1776
1778
|
attrHandle: {},
|
|
1777
1779
|
find: {},
|
|
1778
1780
|
relative: {
|
|
@@ -1790,7 +1792,7 @@ function yo() {
|
|
|
1790
1792
|
},
|
|
1791
1793
|
PSEUDO: function(p) {
|
|
1792
1794
|
var b, E = !p[6] && p[2];
|
|
1793
|
-
return
|
|
1795
|
+
return dt.CHILD.test(p[0]) ? null : (p[3] ? p[2] = p[4] || p[5] || "" : E && ft.test(E) && // Get excess from tokenize (recursively)
|
|
1794
1796
|
(b = ui(E, !0)) && // advance to the next closing parenthesis
|
|
1795
1797
|
(b = E.indexOf(")", E.length - b) - E.length) && (p[0] = p[0].slice(0, b), p[2] = E.slice(0, b)), p.slice(0, 3));
|
|
1796
1798
|
}
|
|
@@ -1826,26 +1828,26 @@ function yo() {
|
|
|
1826
1828
|
return !!X.parentNode;
|
|
1827
1829
|
}
|
|
1828
1830
|
) : function(X, se, te) {
|
|
1829
|
-
var re, ae, J, xe, Ue, Be = F !== $ ? "nextSibling" : "previousSibling",
|
|
1830
|
-
if (
|
|
1831
|
+
var re, ae, J, xe, Ue, Be = F !== $ ? "nextSibling" : "previousSibling", rt = X.parentNode, ht = Y && X.nodeName.toLowerCase(), Ut = !te && !Y, We = !1;
|
|
1832
|
+
if (rt) {
|
|
1831
1833
|
if (F) {
|
|
1832
1834
|
for (; Be; ) {
|
|
1833
1835
|
for (J = X; J = J[Be]; )
|
|
1834
|
-
if (Y ? me(J,
|
|
1836
|
+
if (Y ? me(J, ht) : J.nodeType === 1)
|
|
1835
1837
|
return !1;
|
|
1836
1838
|
Ue = Be = p === "only" && !Ue && "nextSibling";
|
|
1837
1839
|
}
|
|
1838
1840
|
return !0;
|
|
1839
1841
|
}
|
|
1840
|
-
if (Ue = [$ ?
|
|
1841
|
-
for (ae =
|
|
1842
|
+
if (Ue = [$ ? rt.firstChild : rt.lastChild], $ && Ut) {
|
|
1843
|
+
for (ae = rt[O] || (rt[O] = {}), re = ae[p] || [], xe = re[0] === A && re[1], We = xe && re[2], J = xe && rt.childNodes[xe]; J = ++xe && J && J[Be] || // Fallback to seeking `elem` from the start
|
|
1842
1844
|
(We = xe = 0) || Ue.pop(); )
|
|
1843
1845
|
if (J.nodeType === 1 && ++We && J === X) {
|
|
1844
1846
|
ae[p] = [A, xe, We];
|
|
1845
1847
|
break;
|
|
1846
1848
|
}
|
|
1847
1849
|
} else if (Ut && (ae = X[O] || (X[O] = {}), re = ae[p] || [], xe = re[0] === A && re[1], We = xe), We === !1)
|
|
1848
|
-
for (; (J = ++xe && J && J[Be] || (We = xe = 0) || Ue.pop()) && !((Y ? me(J,
|
|
1850
|
+
for (; (J = ++xe && J && J[Be] || (We = xe = 0) || Ue.pop()) && !((Y ? me(J, ht) : J.nodeType === 1) && ++We && (Ut && (ae = J[O] || (J[O] = {}), ae[p] = [A, We]), J === X)); )
|
|
1849
1851
|
;
|
|
1850
1852
|
return We -= I, We === N || We % N === 0 && We / N >= 0;
|
|
1851
1853
|
}
|
|
@@ -1853,7 +1855,7 @@ function yo() {
|
|
|
1853
1855
|
},
|
|
1854
1856
|
PSEUDO: function(p, b) {
|
|
1855
1857
|
var E, N = i.pseudos[p] || i.setFilters[p.toLowerCase()] || be.error("unsupported pseudo: " + p);
|
|
1856
|
-
return N[O] ? N(b) : N.length > 1 ? (E = [p, p, "", b], i.setFilters.hasOwnProperty(p.toLowerCase()) ?
|
|
1858
|
+
return N[O] ? N(b) : N.length > 1 ? (E = [p, p, "", b], i.setFilters.hasOwnProperty(p.toLowerCase()) ? st(function(I, F) {
|
|
1857
1859
|
for (var $, Y = N(I, b), X = Y.length; X--; )
|
|
1858
1860
|
$ = k.call(I, Y[X]), I[$] = !(F[$] = Y[X]);
|
|
1859
1861
|
}) : function(I) {
|
|
@@ -1863,21 +1865,21 @@ function yo() {
|
|
|
1863
1865
|
},
|
|
1864
1866
|
pseudos: {
|
|
1865
1867
|
// Potentially complex pseudos
|
|
1866
|
-
not:
|
|
1868
|
+
not: st(function(p) {
|
|
1867
1869
|
var b = [], E = [], N = vr(p.replace(C, "$1"));
|
|
1868
|
-
return N[O] ?
|
|
1870
|
+
return N[O] ? st(function(I, F, $, Y) {
|
|
1869
1871
|
for (var X, se = N(I, null, Y, []), te = I.length; te--; )
|
|
1870
1872
|
(X = se[te]) && (I[te] = !(F[te] = X));
|
|
1871
1873
|
}) : function(I, F, $) {
|
|
1872
1874
|
return b[0] = I, N(b, null, $, E), b[0] = null, !E.pop();
|
|
1873
1875
|
};
|
|
1874
1876
|
}),
|
|
1875
|
-
has:
|
|
1877
|
+
has: st(function(p) {
|
|
1876
1878
|
return function(b) {
|
|
1877
1879
|
return be(p, b).length > 0;
|
|
1878
1880
|
};
|
|
1879
1881
|
}),
|
|
1880
|
-
contains:
|
|
1882
|
+
contains: st(function(p) {
|
|
1881
1883
|
return p = p.replace(yt, bt), function(b) {
|
|
1882
1884
|
return (b.textContent || o.text(b)).indexOf(p) > -1;
|
|
1883
1885
|
};
|
|
@@ -1889,7 +1891,7 @@ function yo() {
|
|
|
1889
1891
|
// The matching of C against the element's language value is performed case-insensitively.
|
|
1890
1892
|
// The identifier C does not have to be a valid language name."
|
|
1891
1893
|
// https://www.w3.org/TR/selectors/#lang-pseudo
|
|
1892
|
-
lang:
|
|
1894
|
+
lang: st(function(p) {
|
|
1893
1895
|
return ci.test(p || "") || be.error("unsupported lang: " + p), p = p.replace(yt, bt).toLowerCase(), function(b) {
|
|
1894
1896
|
var E;
|
|
1895
1897
|
do
|
|
@@ -1931,10 +1933,10 @@ function yo() {
|
|
|
1931
1933
|
},
|
|
1932
1934
|
// Element/input types
|
|
1933
1935
|
header: function(p) {
|
|
1934
|
-
return
|
|
1936
|
+
return kt.test(p.nodeName);
|
|
1935
1937
|
},
|
|
1936
1938
|
input: function(p) {
|
|
1937
|
-
return
|
|
1939
|
+
return At.test(p.nodeName);
|
|
1938
1940
|
},
|
|
1939
1941
|
button: function(p) {
|
|
1940
1942
|
return me(p, "input") && p.type === "button" || me(p, "button");
|
|
@@ -1997,7 +1999,7 @@ function yo() {
|
|
|
1997
1999
|
type: N[0].replace(C, " ")
|
|
1998
2000
|
}), $ = $.slice(E.length));
|
|
1999
2001
|
for (F in i.filter)
|
|
2000
|
-
(N =
|
|
2002
|
+
(N = dt[F].exec($)) && (!X[F] || (N = X[F](N))) && (E = N.shift(), I.push({
|
|
2001
2003
|
value: E,
|
|
2002
2004
|
type: F,
|
|
2003
2005
|
matches: N
|
|
@@ -2067,26 +2069,26 @@ function yo() {
|
|
|
2067
2069
|
return $;
|
|
2068
2070
|
}
|
|
2069
2071
|
function gr(p, b, E, N, I, F) {
|
|
2070
|
-
return N && !N[O] && (N = gr(N)), I && !I[O] && (I = gr(I, F)),
|
|
2071
|
-
var te, re, ae, J, xe = [], Ue = [], Be = Y.length,
|
|
2072
|
+
return N && !N[O] && (N = gr(N)), I && !I[O] && (I = gr(I, F)), st(function($, Y, X, se) {
|
|
2073
|
+
var te, re, ae, J, xe = [], Ue = [], Be = Y.length, rt = $ || ns(
|
|
2072
2074
|
b || "*",
|
|
2073
2075
|
X.nodeType ? [X] : X,
|
|
2074
2076
|
[]
|
|
2075
|
-
),
|
|
2077
|
+
), ht = p && ($ || !b) ? Ei(rt, xe, p, X, se) : rt;
|
|
2076
2078
|
if (E ? (J = I || ($ ? p : Be || N) ? (
|
|
2077
2079
|
// ...intermediate processing is necessary
|
|
2078
2080
|
[]
|
|
2079
2081
|
) : (
|
|
2080
2082
|
// ...otherwise use results directly
|
|
2081
2083
|
Y
|
|
2082
|
-
), E(
|
|
2084
|
+
), E(ht, J, X, se)) : J = ht, N)
|
|
2083
2085
|
for (te = Ei(J, Ue), N(te, [], X, se), re = te.length; re--; )
|
|
2084
|
-
(ae = te[re]) && (J[Ue[re]] = !(
|
|
2086
|
+
(ae = te[re]) && (J[Ue[re]] = !(ht[Ue[re]] = ae));
|
|
2085
2087
|
if ($) {
|
|
2086
2088
|
if (I || p) {
|
|
2087
2089
|
if (I) {
|
|
2088
2090
|
for (te = [], re = J.length; re--; )
|
|
2089
|
-
(ae = J[re]) && te.push(
|
|
2091
|
+
(ae = J[re]) && te.push(ht[re] = ae);
|
|
2090
2092
|
I(null, J = [], te, se);
|
|
2091
2093
|
}
|
|
2092
2094
|
for (re = J.length; re--; )
|
|
@@ -2131,10 +2133,10 @@ function yo() {
|
|
|
2131
2133
|
}
|
|
2132
2134
|
function os(p, b) {
|
|
2133
2135
|
var E = b.length > 0, N = p.length > 0, I = function(F, $, Y, X, se) {
|
|
2134
|
-
var te, re, ae, J = 0, xe = "0", Ue = F && [], Be = [],
|
|
2135
|
-
for (se && (r = $ == u || $ || se); xe !== We && (te =
|
|
2136
|
+
var te, re, ae, J = 0, xe = "0", Ue = F && [], Be = [], rt = r, ht = F || N && i.find.TAG("*", se), Ut = A += rt == null ? 1 : Math.random() || 0.1, We = ht.length;
|
|
2137
|
+
for (se && (r = $ == u || $ || se); xe !== We && (te = ht[xe]) != null; xe++) {
|
|
2136
2138
|
if (N && te) {
|
|
2137
|
-
for (re = 0, !$ && te.ownerDocument != u && (
|
|
2139
|
+
for (re = 0, !$ && te.ownerDocument != u && (Lt(te), Y = !m); ae = p[re++]; )
|
|
2138
2140
|
if (ae(te, $ || u, Y)) {
|
|
2139
2141
|
l.call(X, te);
|
|
2140
2142
|
break;
|
|
@@ -2154,9 +2156,9 @@ function yo() {
|
|
|
2154
2156
|
}
|
|
2155
2157
|
l.apply(X, Be), se && !F && Be.length > 0 && J + b.length > 1 && o.uniqueSort(X);
|
|
2156
2158
|
}
|
|
2157
|
-
return se && (A = Ut, r =
|
|
2159
|
+
return se && (A = Ut, r = rt), Ue;
|
|
2158
2160
|
};
|
|
2159
|
-
return E ?
|
|
2161
|
+
return E ? st(I) : I;
|
|
2160
2162
|
}
|
|
2161
2163
|
function vr(p, b) {
|
|
2162
2164
|
var E, N = [], I = [], F = ne[p + " "];
|
|
@@ -2182,7 +2184,7 @@ function yo() {
|
|
|
2182
2184
|
else return E;
|
|
2183
2185
|
p = p.slice(F.shift().value.length);
|
|
2184
2186
|
}
|
|
2185
|
-
for (I =
|
|
2187
|
+
for (I = dt.needsContext.test(p) ? 0 : F.length; I-- && ($ = F[I], !i.relative[Y = $.type]); )
|
|
2186
2188
|
if ((X = i.find[Y]) && (N = X(
|
|
2187
2189
|
$.matches[0].replace(yt, bt),
|
|
2188
2190
|
dr.test(F[0].type) && hr(b.parentNode) || b
|
|
@@ -2200,9 +2202,9 @@ function yo() {
|
|
|
2200
2202
|
!b || dr.test(p) && hr(b.parentNode) || b
|
|
2201
2203
|
), E;
|
|
2202
2204
|
}
|
|
2203
|
-
V.sortStable = O.split("").sort(Pe).join("") === O,
|
|
2205
|
+
V.sortStable = O.split("").sort(Pe).join("") === O, Lt(), V.sortDetached = Yt(function(p) {
|
|
2204
2206
|
return p.compareDocumentPosition(u.createElement("fieldset")) & 1;
|
|
2205
|
-
}), o.find = be, o.expr[":"] = o.expr.pseudos, o.unique = o.uniqueSort, be.compile = vr, be.select = xn, be.setDocument =
|
|
2207
|
+
}), o.find = be, o.expr[":"] = o.expr.pseudos, o.unique = o.uniqueSort, be.compile = vr, be.select = xn, be.setDocument = Lt, be.tokenize = ui, be.escape = o.escapeSelector, be.getText = o.text, be.isXML = o.isXMLDoc, be.selectors = o.expr, be.support = o.support, be.uniqueSort = o.uniqueSort;
|
|
2206
2208
|
})();
|
|
2207
2209
|
var ge = function(t, i, r) {
|
|
2208
2210
|
for (var n = [], a = r !== void 0; (t = t[i]) && t.nodeType !== 9; )
|
|
@@ -2260,12 +2262,12 @@ function yo() {
|
|
|
2260
2262
|
).length;
|
|
2261
2263
|
}
|
|
2262
2264
|
});
|
|
2263
|
-
var Dt,
|
|
2265
|
+
var Dt, Tt = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/, Ft = o.fn.init = function(t, i, r) {
|
|
2264
2266
|
var n, a;
|
|
2265
2267
|
if (!t)
|
|
2266
2268
|
return this;
|
|
2267
2269
|
if (r = r || Dt, typeof t == "string")
|
|
2268
|
-
if (t[0] === "<" && t[t.length - 1] === ">" && t.length >= 3 ? n = [null, t, null] : n =
|
|
2270
|
+
if (t[0] === "<" && t[t.length - 1] === ">" && t.length >= 3 ? n = [null, t, null] : n = Tt.exec(t), n && (n[1] || !i))
|
|
2269
2271
|
if (n[1]) {
|
|
2270
2272
|
if (i = i instanceof o ? i[0] : i, o.merge(this, o.parseHTML(
|
|
2271
2273
|
n[1],
|
|
@@ -2341,7 +2343,7 @@ function yo() {
|
|
|
2341
2343
|
);
|
|
2342
2344
|
}
|
|
2343
2345
|
});
|
|
2344
|
-
function
|
|
2346
|
+
function St(t, i) {
|
|
2345
2347
|
for (; (t = t[i]) && t.nodeType !== 1; )
|
|
2346
2348
|
;
|
|
2347
2349
|
return t;
|
|
@@ -2358,10 +2360,10 @@ function yo() {
|
|
|
2358
2360
|
return ge(t, "parentNode", r);
|
|
2359
2361
|
},
|
|
2360
2362
|
next: function(t) {
|
|
2361
|
-
return
|
|
2363
|
+
return St(t, "nextSibling");
|
|
2362
2364
|
},
|
|
2363
2365
|
prev: function(t) {
|
|
2364
|
-
return
|
|
2366
|
+
return St(t, "previousSibling");
|
|
2365
2367
|
},
|
|
2366
2368
|
nextAll: function(t) {
|
|
2367
2369
|
return ge(t, "nextSibling");
|
|
@@ -2538,18 +2540,18 @@ function yo() {
|
|
|
2538
2540
|
function w(P, O, A, R) {
|
|
2539
2541
|
return function() {
|
|
2540
2542
|
var ie = this, de = arguments, ne = function() {
|
|
2541
|
-
var Pe,
|
|
2543
|
+
var Pe, ct;
|
|
2542
2544
|
if (!(P < m)) {
|
|
2543
2545
|
if (Pe = A.apply(ie, de), Pe === O.promise())
|
|
2544
2546
|
throw new TypeError("Thenable self-resolution");
|
|
2545
|
-
|
|
2547
|
+
ct = Pe && // Support: Promises/A+ section 2.3.4
|
|
2546
2548
|
// https://promisesaplus.com/#point-64
|
|
2547
2549
|
// Only check objects and functions for thenability
|
|
2548
|
-
(typeof Pe == "object" || typeof Pe == "function") && Pe.then, G(
|
|
2550
|
+
(typeof Pe == "object" || typeof Pe == "function") && Pe.then, G(ct) ? R ? ct.call(
|
|
2549
2551
|
Pe,
|
|
2550
2552
|
w(m, O, mt, R),
|
|
2551
2553
|
w(m, O, Mt, R)
|
|
2552
|
-
) : (m++,
|
|
2554
|
+
) : (m++, ct.call(
|
|
2553
2555
|
Pe,
|
|
2554
2556
|
w(m, O, mt, R),
|
|
2555
2557
|
w(m, O, Mt, R),
|
|
@@ -2671,16 +2673,16 @@ function yo() {
|
|
|
2671
2673
|
(t === !0 ? --o.readyWait : o.isReady) || (o.isReady = !0, !(t !== !0 && --o.readyWait > 0) && It.resolveWith(U, [o]));
|
|
2672
2674
|
}
|
|
2673
2675
|
}), o.ready.then = It.then;
|
|
2674
|
-
function
|
|
2675
|
-
U.removeEventListener("DOMContentLoaded",
|
|
2676
|
+
function Et() {
|
|
2677
|
+
U.removeEventListener("DOMContentLoaded", Et), c.removeEventListener("load", Et), o.ready();
|
|
2676
2678
|
}
|
|
2677
|
-
U.readyState === "complete" || U.readyState !== "loading" && !U.documentElement.doScroll ? c.setTimeout(o.ready) : (U.addEventListener("DOMContentLoaded",
|
|
2678
|
-
var
|
|
2679
|
+
U.readyState === "complete" || U.readyState !== "loading" && !U.documentElement.doScroll ? c.setTimeout(o.ready) : (U.addEventListener("DOMContentLoaded", Et), c.addEventListener("load", Et));
|
|
2680
|
+
var et = function(t, i, r, n, a, l, u) {
|
|
2679
2681
|
var y = 0, m = t.length, w = r == null;
|
|
2680
2682
|
if (Ve(r) === "object") {
|
|
2681
2683
|
a = !0;
|
|
2682
2684
|
for (y in r)
|
|
2683
|
-
|
|
2685
|
+
et(t, i, y, r[y], !0, l, u);
|
|
2684
2686
|
} else if (n !== void 0 && (a = !0, G(n) || (u = !0), w && (u ? (i.call(t, n), i = null) : (w = i, i = function(P, O, A) {
|
|
2685
2687
|
return w.call(o(P), A);
|
|
2686
2688
|
})), i))
|
|
@@ -2792,7 +2794,7 @@ function yo() {
|
|
|
2792
2794
|
}
|
|
2793
2795
|
return typeof t == "object" ? this.each(function() {
|
|
2794
2796
|
ee.set(this, t);
|
|
2795
|
-
}) :
|
|
2797
|
+
}) : et(this, function(y) {
|
|
2796
2798
|
var m;
|
|
2797
2799
|
if (l && y === void 0)
|
|
2798
2800
|
return m = ee.get(l, t), m !== void 0 || (m = Re(l, t), m !== void 0) ? m : void 0;
|
|
@@ -2855,18 +2857,18 @@ function yo() {
|
|
|
2855
2857
|
return y(), a.promise(i);
|
|
2856
2858
|
}
|
|
2857
2859
|
});
|
|
2858
|
-
var Vt = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, Ht = new RegExp("^(?:([+-])=|)(" + Vt + ")([a-z%]*)$", "i"), Xe = ["Top", "Right", "Bottom", "Left"],
|
|
2860
|
+
var Vt = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, Ht = new RegExp("^(?:([+-])=|)(" + Vt + ")([a-z%]*)$", "i"), Xe = ["Top", "Right", "Bottom", "Left"], lt = U.documentElement, Ct = function(t) {
|
|
2859
2861
|
return o.contains(t.ownerDocument, t);
|
|
2860
2862
|
}, Ki = { composed: !0 };
|
|
2861
|
-
|
|
2863
|
+
lt.getRootNode && (Ct = function(t) {
|
|
2862
2864
|
return o.contains(t.ownerDocument, t) || t.getRootNode(Ki) === t.ownerDocument;
|
|
2863
2865
|
});
|
|
2864
|
-
var
|
|
2866
|
+
var tt = function(t, i) {
|
|
2865
2867
|
return t = i || t, t.style.display === "none" || t.style.display === "" && // Otherwise, check computed style
|
|
2866
2868
|
// Support: Firefox <=43 - 45
|
|
2867
2869
|
// Disconnected elements can have computed display: none, so first confirm that elem is
|
|
2868
2870
|
// in the document.
|
|
2869
|
-
|
|
2871
|
+
Ct(t) && o.css(t, "display") === "none";
|
|
2870
2872
|
};
|
|
2871
2873
|
function ri(t, i, r, n) {
|
|
2872
2874
|
var a, l, u = 20, y = n ? function() {
|
|
@@ -2888,7 +2890,7 @@ function yo() {
|
|
|
2888
2890
|
}
|
|
2889
2891
|
function ue(t, i) {
|
|
2890
2892
|
for (var r, n, a = [], l = 0, u = t.length; l < u; l++)
|
|
2891
|
-
n = t[l], n.style && (r = n.style.display, i ? (r === "none" && (a[l] = M.get(n, "display") || null, a[l] || (n.style.display = "")), n.style.display === "" &&
|
|
2893
|
+
n = t[l], n.style && (r = n.style.display, i ? (r === "none" && (a[l] = M.get(n, "display") || null, a[l] || (n.style.display = "")), n.style.display === "" && tt(n) && (a[l] = K(n))) : r !== "none" && (a[l] = "none", M.set(n, "display", r)));
|
|
2892
2894
|
for (l = 0; l < u; l++)
|
|
2893
2895
|
a[l] != null && (t[l].style.display = a[l]);
|
|
2894
2896
|
return t;
|
|
@@ -2902,7 +2904,7 @@ function yo() {
|
|
|
2902
2904
|
},
|
|
2903
2905
|
toggle: function(t) {
|
|
2904
2906
|
return typeof t == "boolean" ? t ? this.show() : this.hide() : this.each(function() {
|
|
2905
|
-
|
|
2907
|
+
tt(this) ? o(this).show() : o(this).hide();
|
|
2906
2908
|
});
|
|
2907
2909
|
}
|
|
2908
2910
|
});
|
|
@@ -2952,13 +2954,13 @@ function yo() {
|
|
|
2952
2954
|
a && a.push(l);
|
|
2953
2955
|
continue;
|
|
2954
2956
|
}
|
|
2955
|
-
if (w =
|
|
2957
|
+
if (w = Ct(l), u = Ce(O.appendChild(l), "script"), w && vt(u), r)
|
|
2956
2958
|
for (P = 0; l = u[P++]; )
|
|
2957
2959
|
Ke.test(l.type || "") && r.push(l);
|
|
2958
2960
|
}
|
|
2959
2961
|
return O;
|
|
2960
2962
|
}
|
|
2961
|
-
var
|
|
2963
|
+
var nt = /^([^.]*)(?:\.(.+)|)/;
|
|
2962
2964
|
function Je() {
|
|
2963
2965
|
return !0;
|
|
2964
2966
|
}
|
|
@@ -2988,10 +2990,10 @@ function yo() {
|
|
|
2988
2990
|
add: function(t, i, r, n, a) {
|
|
2989
2991
|
var l, u, y, m, w, P, O, A, R, ie, de, ne = M.get(t);
|
|
2990
2992
|
if (H(t))
|
|
2991
|
-
for (r.handler && (l = r, r = l.handler, a = l.selector), a && o.find.matchesSelector(
|
|
2993
|
+
for (r.handler && (l = r, r = l.handler, a = l.selector), a && o.find.matchesSelector(lt, a), r.guid || (r.guid = o.guid++), (m = ne.events) || (m = ne.events = /* @__PURE__ */ Object.create(null)), (u = ne.handle) || (u = ne.handle = function(Oe) {
|
|
2992
2994
|
return typeof o < "u" && o.event.triggered !== Oe.type ? o.event.dispatch.apply(t, arguments) : void 0;
|
|
2993
2995
|
}), i = (i || "").match(He) || [""], w = i.length; w--; )
|
|
2994
|
-
y =
|
|
2996
|
+
y = nt.exec(i[w]) || [], R = de = y[1], ie = (y[2] || "").split(".").sort(), R && (O = o.event.special[R] || {}, R = (a ? O.delegateType : O.bindType) || R, O = o.event.special[R] || {}, P = o.extend({
|
|
2995
2997
|
type: R,
|
|
2996
2998
|
origType: de,
|
|
2997
2999
|
data: n,
|
|
@@ -3007,7 +3009,7 @@ function yo() {
|
|
|
3007
3009
|
var l, u, y, m, w, P, O, A, R, ie, de, ne = M.hasData(t) && M.get(t);
|
|
3008
3010
|
if (!(!ne || !(m = ne.events))) {
|
|
3009
3011
|
for (i = (i || "").match(He) || [""], w = i.length; w--; ) {
|
|
3010
|
-
if (y =
|
|
3012
|
+
if (y = nt.exec(i[w]) || [], R = de = y[1], ie = (y[2] || "").split(".").sort(), !R) {
|
|
3011
3013
|
for (R in m)
|
|
3012
3014
|
o.event.remove(t, R + i[w], r, n, !0);
|
|
3013
3015
|
continue;
|
|
@@ -3308,13 +3310,13 @@ function yo() {
|
|
|
3308
3310
|
for (w = u[u.length - 1].ownerDocument, o.map(u, Eo), P = 0; P < y; P++)
|
|
3309
3311
|
m = u[P], Ke.test(m.type || "") && !M.access(m, "globalEval") && o.contains(w, m) && (m.src && (m.type || "").toLowerCase() !== "module" ? o._evalUrl && !m.noModule && o._evalUrl(m.src, {
|
|
3310
3312
|
nonce: m.nonce || m.getAttribute("nonce")
|
|
3311
|
-
}, w) :
|
|
3313
|
+
}, w) : xt(m.textContent.replace(To, ""), m, w));
|
|
3312
3314
|
}
|
|
3313
3315
|
return t;
|
|
3314
3316
|
}
|
|
3315
3317
|
function Kr(t, i, r) {
|
|
3316
3318
|
for (var n, a = i ? o.filter(i, t) : t, l = 0; (n = a[l]) != null; l++)
|
|
3317
|
-
!r && n.nodeType === 1 && o.cleanData(Ce(n)), n.parentNode && (r &&
|
|
3319
|
+
!r && n.nodeType === 1 && o.cleanData(Ce(n)), n.parentNode && (r && Ct(n) && vt(Ce(n, "script")), n.parentNode.removeChild(n));
|
|
3318
3320
|
return t;
|
|
3319
3321
|
}
|
|
3320
3322
|
o.extend({
|
|
@@ -3322,7 +3324,7 @@ function yo() {
|
|
|
3322
3324
|
return t;
|
|
3323
3325
|
},
|
|
3324
3326
|
clone: function(t, i, r) {
|
|
3325
|
-
var n, a, l, u, y = t.cloneNode(!0), m =
|
|
3327
|
+
var n, a, l, u, y = t.cloneNode(!0), m = Ct(t);
|
|
3326
3328
|
if (!V.noCloneChecked && (t.nodeType === 1 || t.nodeType === 11) && !o.isXMLDoc(t))
|
|
3327
3329
|
for (u = Ce(y), l = Ce(t), n = 0, a = l.length; n < a; n++)
|
|
3328
3330
|
Co(l[n], u[n]);
|
|
@@ -3354,7 +3356,7 @@ function yo() {
|
|
|
3354
3356
|
return Kr(this, t);
|
|
3355
3357
|
},
|
|
3356
3358
|
text: function(t) {
|
|
3357
|
-
return
|
|
3359
|
+
return et(this, function(i) {
|
|
3358
3360
|
return i === void 0 ? o.text(this) : this.empty().each(function() {
|
|
3359
3361
|
(this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) && (this.textContent = i);
|
|
3360
3362
|
});
|
|
@@ -3397,7 +3399,7 @@ function yo() {
|
|
|
3397
3399
|
});
|
|
3398
3400
|
},
|
|
3399
3401
|
html: function(t) {
|
|
3400
|
-
return
|
|
3402
|
+
return et(this, function(i) {
|
|
3401
3403
|
var r = this[0] || {}, n = 0, a = this.length;
|
|
3402
3404
|
if (i === void 0 && r.nodeType === 1)
|
|
3403
3405
|
return r.innerHTML;
|
|
@@ -3448,9 +3450,9 @@ function yo() {
|
|
|
3448
3450
|
(function() {
|
|
3449
3451
|
function t() {
|
|
3450
3452
|
if (w) {
|
|
3451
|
-
m.style.cssText = "position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0", w.style.cssText = "position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",
|
|
3453
|
+
m.style.cssText = "position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0", w.style.cssText = "position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%", lt.appendChild(m).appendChild(w);
|
|
3452
3454
|
var P = c.getComputedStyle(w);
|
|
3453
|
-
r = P.top !== "1%", y = i(P.marginLeft) === 12, w.style.right = "60%", l = i(P.right) === 36, n = i(P.width) === 36, w.style.position = "absolute", a = i(w.offsetWidth / 3) === 12,
|
|
3455
|
+
r = P.top !== "1%", y = i(P.marginLeft) === 12, w.style.right = "60%", l = i(P.right) === 36, n = i(P.width) === 36, w.style.position = "absolute", a = i(w.offsetWidth / 3) === 12, lt.removeChild(m), w = null;
|
|
3454
3456
|
}
|
|
3455
3457
|
}
|
|
3456
3458
|
function i(P) {
|
|
@@ -3484,13 +3486,13 @@ function yo() {
|
|
|
3484
3486
|
// in computed dimensions. (gh-4529)
|
|
3485
3487
|
reliableTrDimensions: function() {
|
|
3486
3488
|
var P, O, A, R;
|
|
3487
|
-
return u == null && (P = U.createElement("table"), O = U.createElement("tr"), A = U.createElement("div"), P.style.cssText = "position:absolute;left:-11111px;border-collapse:separate", O.style.cssText = "box-sizing:content-box;border:1px solid", O.style.height = "1px", A.style.height = "9px", A.style.display = "block",
|
|
3489
|
+
return u == null && (P = U.createElement("table"), O = U.createElement("tr"), A = U.createElement("div"), P.style.cssText = "position:absolute;left:-11111px;border-collapse:separate", O.style.cssText = "box-sizing:content-box;border:1px solid", O.style.height = "1px", A.style.height = "9px", A.style.display = "block", lt.appendChild(P).appendChild(O).appendChild(A), R = c.getComputedStyle(O), u = parseInt(R.height, 10) + parseInt(R.borderTopWidth, 10) + parseInt(R.borderBottomWidth, 10) === O.offsetHeight, lt.removeChild(P)), u;
|
|
3488
3490
|
}
|
|
3489
3491
|
}));
|
|
3490
3492
|
})();
|
|
3491
3493
|
function ni(t, i, r) {
|
|
3492
3494
|
var n, a, l, u, y = er.test(i), m = t.style;
|
|
3493
|
-
return r = r || yi(t), r && (u = r.getPropertyValue(i) || r[i], y && u && (u = u.replace(C, "$1") || void 0), u === "" && !
|
|
3495
|
+
return r = r || yi(t), r && (u = r.getPropertyValue(i) || r[i], y && u && (u = u.replace(C, "$1") || void 0), u === "" && !Ct(t) && (u = o.style(t, i)), !V.pixelBoxStyles() && Qi.test(u) && Ao.test(i) && (n = m.width, a = m.minWidth, l = m.maxWidth, m.minWidth = m.maxWidth = m.width = u, u = r.width, m.width = n, m.minWidth = a, m.maxWidth = l)), u !== void 0 ? (
|
|
3494
3496
|
// Support: IE <=9 - 11 only
|
|
3495
3497
|
// IE returns zIndex value as an integer.
|
|
3496
3498
|
u + ""
|
|
@@ -3678,7 +3680,7 @@ function yo() {
|
|
|
3678
3680
|
}, t !== "margin" && (o.cssHooks[t + i].set = on);
|
|
3679
3681
|
}), o.fn.extend({
|
|
3680
3682
|
css: function(t, i) {
|
|
3681
|
-
return
|
|
3683
|
+
return et(this, function(r, n, a) {
|
|
3682
3684
|
var l, u, y = {}, m = 0;
|
|
3683
3685
|
if (Array.isArray(n)) {
|
|
3684
3686
|
for (l = yi(r), u = n.length; m < u; m++)
|
|
@@ -3750,12 +3752,12 @@ function yo() {
|
|
|
3750
3752
|
return i && (a.opacity = a.width = t), a;
|
|
3751
3753
|
}
|
|
3752
3754
|
function ln(t, i, r) {
|
|
3753
|
-
for (var n, a = (
|
|
3755
|
+
for (var n, a = (ot.tweeners[i] || []).concat(ot.tweeners["*"]), l = 0, u = a.length; l < u; l++)
|
|
3754
3756
|
if (n = a[l].call(r, i, t))
|
|
3755
3757
|
return n;
|
|
3756
3758
|
}
|
|
3757
3759
|
function Mo(t, i, r) {
|
|
3758
|
-
var n, a, l, u, y, m, w, P, O = "width" in i || "height" in i, A = this, R = {}, ie = t.style, de = t.nodeType &&
|
|
3760
|
+
var n, a, l, u, y, m, w, P, O = "width" in i || "height" in i, A = this, R = {}, ie = t.style, de = t.nodeType && tt(t), ne = M.get(t, "fxshow");
|
|
3759
3761
|
r.queue || (u = o._queueHooks(t, "fx"), u.unqueued == null && (u.unqueued = 0, y = u.empty.fire, u.empty.fire = function() {
|
|
3760
3762
|
u.unqueued || y();
|
|
3761
3763
|
}), u.unqueued++, A.always(function() {
|
|
@@ -3796,8 +3798,8 @@ function yo() {
|
|
|
3796
3798
|
} else
|
|
3797
3799
|
i[n] = a;
|
|
3798
3800
|
}
|
|
3799
|
-
function
|
|
3800
|
-
var n, a, l = 0, u =
|
|
3801
|
+
function ot(t, i, r) {
|
|
3802
|
+
var n, a, l = 0, u = ot.prefilters.length, y = o.Deferred().always(function() {
|
|
3801
3803
|
delete m.elem;
|
|
3802
3804
|
}), m = function() {
|
|
3803
3805
|
if (a)
|
|
@@ -3837,7 +3839,7 @@ function yo() {
|
|
|
3837
3839
|
}
|
|
3838
3840
|
}), P = w.props;
|
|
3839
3841
|
for (zo(P, w.opts.specialEasing); l < u; l++)
|
|
3840
|
-
if (n =
|
|
3842
|
+
if (n = ot.prefilters[l].call(w, t, P, w.opts), n)
|
|
3841
3843
|
return G(n.stop) && (o._queueHooks(w.elem, w.opts.queue).stop = n.stop.bind(n)), n;
|
|
3842
3844
|
return o.map(P, ln, w), G(w.opts.start) && w.opts.start.call(t, w), w.progress(w.opts.progress).done(w.opts.done, w.opts.complete).fail(w.opts.fail).always(w.opts.always), o.fx.timer(
|
|
3843
3845
|
o.extend(m, {
|
|
@@ -3847,7 +3849,7 @@ function yo() {
|
|
|
3847
3849
|
})
|
|
3848
3850
|
), w;
|
|
3849
3851
|
}
|
|
3850
|
-
o.Animation = o.extend(
|
|
3852
|
+
o.Animation = o.extend(ot, {
|
|
3851
3853
|
tweeners: {
|
|
3852
3854
|
"*": [function(t, i) {
|
|
3853
3855
|
var r = this.createTween(t, i);
|
|
@@ -3857,11 +3859,11 @@ function yo() {
|
|
|
3857
3859
|
tweener: function(t, i) {
|
|
3858
3860
|
G(t) ? (i = t, t = ["*"]) : t = t.match(He);
|
|
3859
3861
|
for (var r, n = 0, a = t.length; n < a; n++)
|
|
3860
|
-
r = t[n],
|
|
3862
|
+
r = t[n], ot.tweeners[r] = ot.tweeners[r] || [], ot.tweeners[r].unshift(i);
|
|
3861
3863
|
},
|
|
3862
3864
|
prefilters: [Mo],
|
|
3863
3865
|
prefilter: function(t, i) {
|
|
3864
|
-
i ?
|
|
3866
|
+
i ? ot.prefilters.unshift(t) : ot.prefilters.push(t);
|
|
3865
3867
|
}
|
|
3866
3868
|
}), o.speed = function(t, i, r) {
|
|
3867
3869
|
var n = t && typeof t == "object" ? o.extend({}, t) : {
|
|
@@ -3874,11 +3876,11 @@ function yo() {
|
|
|
3874
3876
|
}, n;
|
|
3875
3877
|
}, o.fn.extend({
|
|
3876
3878
|
fadeTo: function(t, i, r, n) {
|
|
3877
|
-
return this.filter(
|
|
3879
|
+
return this.filter(tt).css("opacity", 0).show().end().animate({ opacity: i }, t, r, n);
|
|
3878
3880
|
},
|
|
3879
3881
|
animate: function(t, i, r, n) {
|
|
3880
3882
|
var a = o.isEmptyObject(t), l = o.speed(i, r, n), u = function() {
|
|
3881
|
-
var y =
|
|
3883
|
+
var y = ot(this, o.extend({}, t), l);
|
|
3882
3884
|
(a || M.get(this, "finish")) && y.stop(!0);
|
|
3883
3885
|
};
|
|
3884
3886
|
return u.finish = u, a || l.queue === !1 ? this.each(u) : this.queue(l.queue, u);
|
|
@@ -3956,7 +3958,7 @@ function yo() {
|
|
|
3956
3958
|
var cn, oi = o.expr.attrHandle;
|
|
3957
3959
|
o.fn.extend({
|
|
3958
3960
|
attr: function(t, i) {
|
|
3959
|
-
return
|
|
3961
|
+
return et(this, o.attr, t, i, arguments.length > 1);
|
|
3960
3962
|
},
|
|
3961
3963
|
removeAttr: function(t) {
|
|
3962
3964
|
return this.each(function() {
|
|
@@ -4009,7 +4011,7 @@ function yo() {
|
|
|
4009
4011
|
var Io = /^(?:input|select|textarea|button)$/i, Ho = /^(?:a|area)$/i;
|
|
4010
4012
|
o.fn.extend({
|
|
4011
4013
|
prop: function(t, i) {
|
|
4012
|
-
return
|
|
4014
|
+
return et(this, o.prop, t, i, arguments.length > 1);
|
|
4013
4015
|
},
|
|
4014
4016
|
removeProp: function(t) {
|
|
4015
4017
|
return this.each(function() {
|
|
@@ -4449,7 +4451,7 @@ function yo() {
|
|
|
4449
4451
|
// Main method
|
|
4450
4452
|
ajax: function(t, i) {
|
|
4451
4453
|
typeof t == "object" && (i = t, t = void 0), i = i || {};
|
|
4452
|
-
var r, n, a, l, u, y, m, w, P, O, A = o.ajaxSetup({}, i), R = A.context || A, ie = A.context && (R.nodeType || R.jquery) ? o(R) : o.event, de = o.Deferred(), ne = o.Callbacks("once memory"), Oe = A.statusCode || {}, Pe = {},
|
|
4454
|
+
var r, n, a, l, u, y, m, w, P, O, A = o.ajaxSetup({}, i), R = A.context || A, ie = A.context && (R.nodeType || R.jquery) ? o(R) : o.event, de = o.Deferred(), ne = o.Callbacks("once memory"), Oe = A.statusCode || {}, Pe = {}, ct = {}, ut = "canceled", ce = {
|
|
4453
4455
|
readyState: 0,
|
|
4454
4456
|
// Builds headers hashtable if needed
|
|
4455
4457
|
getResponseHeader: function(he) {
|
|
@@ -4468,7 +4470,7 @@ function yo() {
|
|
|
4468
4470
|
},
|
|
4469
4471
|
// Caches the header
|
|
4470
4472
|
setRequestHeader: function(he, Se) {
|
|
4471
|
-
return m == null && (he =
|
|
4473
|
+
return m == null && (he = ct[he.toLowerCase()] = ct[he.toLowerCase()] || he, Pe[he] = Se), this;
|
|
4472
4474
|
},
|
|
4473
4475
|
// Overrides response content-type header
|
|
4474
4476
|
overrideMimeType: function(he) {
|
|
@@ -4487,7 +4489,7 @@ function yo() {
|
|
|
4487
4489
|
},
|
|
4488
4490
|
// Cancel the request
|
|
4489
4491
|
abort: function(he) {
|
|
4490
|
-
var Se = he ||
|
|
4492
|
+
var Se = he || ut;
|
|
4491
4493
|
return r && r.abort(Se), qt(0, Se), this;
|
|
4492
4494
|
}
|
|
4493
4495
|
};
|
|
@@ -4509,7 +4511,7 @@ function yo() {
|
|
|
4509
4511
|
ce.setRequestHeader(P, A.headers[P]);
|
|
4510
4512
|
if (A.beforeSend && (A.beforeSend.call(R, ce, A) === !1 || m))
|
|
4511
4513
|
return ce.abort();
|
|
4512
|
-
if (
|
|
4514
|
+
if (ut = "abort", ne.add(A.complete), ce.done(A.success), ce.fail(A.error), r = vn(ar, A, i, ce), !r)
|
|
4513
4515
|
qt(-1, "No Transport");
|
|
4514
4516
|
else {
|
|
4515
4517
|
if (ce.readyState = 1, w && ie.trigger("ajaxSend", [ce, A]), m)
|
|
@@ -4526,12 +4528,12 @@ function yo() {
|
|
|
4526
4528
|
}
|
|
4527
4529
|
}
|
|
4528
4530
|
function qt(he, Se, li, fr) {
|
|
4529
|
-
var
|
|
4530
|
-
m || (m = !0, u && c.clearTimeout(u), r = void 0, a = fr || "", ce.readyState = he > 0 ? 4 : 0,
|
|
4531
|
-
}),
|
|
4532
|
-
|
|
4533
|
-
[ce, A,
|
|
4534
|
-
), ne.fireWith(R, [ce,
|
|
4531
|
+
var ft, ci, dt, At, kt, it = Se;
|
|
4532
|
+
m || (m = !0, u && c.clearTimeout(u), r = void 0, a = fr || "", ce.readyState = he > 0 ? 4 : 0, ft = he >= 200 && he < 300 || he === 304, li && (At = Yo(A, ce, li)), !ft && o.inArray("script", A.dataTypes) > -1 && o.inArray("json", A.dataTypes) < 0 && (A.converters["text script"] = function() {
|
|
4533
|
+
}), At = Uo(A, At, ce, ft), ft ? (A.ifModified && (kt = ce.getResponseHeader("Last-Modified"), kt && (o.lastModified[n] = kt), kt = ce.getResponseHeader("etag"), kt && (o.etag[n] = kt)), he === 204 || A.type === "HEAD" ? it = "nocontent" : he === 304 ? it = "notmodified" : (it = At.state, ci = At.data, dt = At.error, ft = !dt)) : (dt = it, (he || !it) && (it = "error", he < 0 && (he = 0))), ce.status = he, ce.statusText = (Se || it) + "", ft ? de.resolveWith(R, [ci, it, ce]) : de.rejectWith(R, [ce, it, dt]), ce.statusCode(Oe), Oe = void 0, w && ie.trigger(
|
|
4534
|
+
ft ? "ajaxSuccess" : "ajaxError",
|
|
4535
|
+
[ce, A, ft ? ci : dt]
|
|
4536
|
+
), ne.fireWith(R, [ce, it]), w && (ie.trigger("ajaxComplete", [ce, A]), --o.active || o.event.trigger("ajaxStop")));
|
|
4535
4537
|
}
|
|
4536
4538
|
return ce;
|
|
4537
4539
|
},
|
|
@@ -4806,13 +4808,13 @@ function yo() {
|
|
|
4806
4808
|
return this.map(function() {
|
|
4807
4809
|
for (var t = this.offsetParent; t && o.css(t, "position") === "static"; )
|
|
4808
4810
|
t = t.offsetParent;
|
|
4809
|
-
return t ||
|
|
4811
|
+
return t || lt;
|
|
4810
4812
|
});
|
|
4811
4813
|
}
|
|
4812
4814
|
}), o.each({ scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function(t, i) {
|
|
4813
4815
|
var r = i === "pageYOffset";
|
|
4814
4816
|
o.fn[t] = function(n) {
|
|
4815
|
-
return
|
|
4817
|
+
return et(this, function(a, l, u) {
|
|
4816
4818
|
var y;
|
|
4817
4819
|
if (Ee(a) ? y = a : a.nodeType === 9 && (y = a.defaultView), u === void 0)
|
|
4818
4820
|
return y ? y[i] : a[l];
|
|
@@ -4838,7 +4840,7 @@ function yo() {
|
|
|
4838
4840
|
}, function(r, n) {
|
|
4839
4841
|
o.fn[n] = function(a, l) {
|
|
4840
4842
|
var u = arguments.length && (r || typeof a != "boolean"), y = r || (a === !0 || l === !0 ? "margin" : "border");
|
|
4841
|
-
return
|
|
4843
|
+
return et(this, function(m, w, P) {
|
|
4842
4844
|
var O;
|
|
4843
4845
|
return Ee(m) ? n.indexOf("outer") === 0 ? m["inner" + t] : m.document.documentElement["client" + t] : m.nodeType === 9 ? (O = m.documentElement, Math.max(
|
|
4844
4846
|
m.body["scroll" + t],
|
|
@@ -4916,10 +4918,10 @@ function yo() {
|
|
|
4916
4918
|
});
|
|
4917
4919
|
})(Pi)), Pi.exports;
|
|
4918
4920
|
}
|
|
4919
|
-
var
|
|
4920
|
-
const Qt = /* @__PURE__ */
|
|
4921
|
+
var Js = yo();
|
|
4922
|
+
const Qt = /* @__PURE__ */ Zs(Js);
|
|
4921
4923
|
var xr = { exports: {} }, kn;
|
|
4922
|
-
function
|
|
4924
|
+
function Qs() {
|
|
4923
4925
|
return kn || (kn = 1, (function(s, c) {
|
|
4924
4926
|
(function(d) {
|
|
4925
4927
|
s.exports = d(yo());
|
|
@@ -4952,7 +4954,7 @@ function Js() {
|
|
|
4952
4954
|
}
|
|
4953
4955
|
var U = _.MutationObserver || _.WebKitMutationObserver || !1, pe = Date.now || function() {
|
|
4954
4956
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
4955
|
-
},
|
|
4957
|
+
}, xt = {
|
|
4956
4958
|
zindex: "auto",
|
|
4957
4959
|
cursoropacitymin: 0,
|
|
4958
4960
|
cursoropacitymax: 1,
|
|
@@ -5050,7 +5052,7 @@ function Js() {
|
|
|
5050
5052
|
doc: Z,
|
|
5051
5053
|
win: !1
|
|
5052
5054
|
};
|
|
5053
|
-
if (k.extend(g,
|
|
5055
|
+
if (k.extend(g, xt), g.snapbackspeed = 80, j)
|
|
5054
5056
|
for (var De in g)
|
|
5055
5057
|
j[De] !== void 0 && (g[De] = j[De]);
|
|
5056
5058
|
if (g.disablemutationobserver && (U = !1), this.doc = g.doc, this.iddoc = this.doc && this.doc[0] && this.doc[0].id || "", this.ispage = /^BODY|HTML/.test(g.win ? g.win[0].nodeName : this.doc[0].nodeName), this.haswrapper = g.win !== !1, this.win = g.win || (this.ispage ? ye : this.doc), this.docscroll = this.ispage && !this.haswrapper ? ye : this.win, this.body = Z, this.viewport = !1, this.isfixed = !1, this.iframe = !1, this.isiframe = this.doc[0].nodeName == "IFRAME" && this.win[0].nodeName == "IFRAME", this.istextarea = this.win[0].nodeName == "TEXTAREA", this.forcescreen = !1, this.canshowonmouseevent = g.autohidemode != "scroll", this.onmousedown = !1, this.onmouseup = !1, this.onmousemove = !1, this.onmousewheel = !1, this.onkeypress = !1, this.ongesturezoom = !1, this.onclick = !1, this.onscrollstart = !1, this.onscrollend = !1, this.onscrollcancel = !1, this.onzoomin = !1, this.onzoomout = !1, this.view = !1, this.page = !1, this.scroll = {
|
|
@@ -5179,7 +5181,7 @@ function Js() {
|
|
|
5179
5181
|
S = S.parentNode || !1;
|
|
5180
5182
|
return S !== !1;
|
|
5181
5183
|
};
|
|
5182
|
-
function
|
|
5184
|
+
function Tt() {
|
|
5183
5185
|
var f = e.win;
|
|
5184
5186
|
if ("zIndex" in f) return f.zIndex();
|
|
5185
5187
|
for (; f.length > 0; ) {
|
|
@@ -5261,7 +5263,7 @@ function Js() {
|
|
|
5261
5263
|
if (e.saved.css = [], B.isoperamini || B.isandroid && !("hidden" in q)) return !0;
|
|
5262
5264
|
g.emulatetouch = g.emulatetouch || g.touchbehavior, e.hasborderbox = _.getComputedStyle && _.getComputedStyle(q.body)["box-sizing"] === "border-box";
|
|
5263
5265
|
var f = { "overflow-y": "hidden" };
|
|
5264
|
-
if ((B.isie11 || B.isie10) && (f["-ms-overflow-style"] = "none"), e.ishwscroll && (this.doc.css(B.transitionstyle, B.prefixstyle + "transform 0ms ease-out"), B.transitionend && e.bind(e.doc, B.transitionend, e.onScrollTransitionEnd, !1)), e.zindex = "auto", !e.ispage && g.zindex == "auto" ? e.zindex =
|
|
5266
|
+
if ((B.isie11 || B.isie10) && (f["-ms-overflow-style"] = "none"), e.ishwscroll && (this.doc.css(B.transitionstyle, B.prefixstyle + "transform 0ms ease-out"), B.transitionend && e.bind(e.doc, B.transitionend, e.onScrollTransitionEnd, !1)), e.zindex = "auto", !e.ispage && g.zindex == "auto" ? e.zindex = Tt() || "auto" : e.zindex = g.zindex, !e.ispage && e.zindex != "auto" && e.zindex > D && (D = e.zindex), e.isie && e.zindex === 0 && g.zindex == "auto" && (e.zindex = "auto"), !e.ispage || !B.isieold) {
|
|
5265
5267
|
var v = e.docscroll;
|
|
5266
5268
|
e.ispage && (v = e.haswrapper ? e.win : e.doc), e.css(v, f), e.ispage && (B.isie11 || B.isie) && e.css(k("html"), f), B.isios && !e.ispage && !e.haswrapper && e.css(Z, {
|
|
5267
5269
|
"-webkit-overflow-scrolling": "touch"
|
|
@@ -5415,9 +5417,9 @@ function Js() {
|
|
|
5415
5417
|
if (e.hasmoving = !1, e.lastmouseup = !1, e.scrollmom.reset(x.clientX, x.clientY), K && ke) {
|
|
5416
5418
|
var Ne = /INPUT|SELECT|BUTTON|TEXTAREA/i.test(K.nodeName);
|
|
5417
5419
|
if (!Ne)
|
|
5418
|
-
return B.hasmousecapture && K.setCapture(), g.emulatetouch ? (K.onclick && !K._onclick && (K._onclick = K.onclick, K.onclick = function(
|
|
5420
|
+
return B.hasmousecapture && K.setCapture(), g.emulatetouch ? (K.onclick && !K._onclick && (K._onclick = K.onclick, K.onclick = function(nt) {
|
|
5419
5421
|
if (e.hasmoving) return !1;
|
|
5420
|
-
K._onclick.call(this,
|
|
5422
|
+
K._onclick.call(this, nt);
|
|
5421
5423
|
}), e.cancelEvent(x)) : e.stopPropagation(x);
|
|
5422
5424
|
/SUBMIT|CANCEL|BUTTON/i.test(k(K).attr("type")) && (e.preventclick = {
|
|
5423
5425
|
tg: K,
|
|
@@ -5454,8 +5456,8 @@ function Js() {
|
|
|
5454
5456
|
var Ne = e.getScrollLeft();
|
|
5455
5457
|
if (e.railh && e.railh.scrollable && (Ne = e.isrtlmode ? vt - e.rail.drag.sl : e.rail.drag.sl - vt, e.ishwscroll && g.bouncescroll ? Ne < 0 ? Ne = Math.round(Ne / 2) : Ne > e.page.maxw && (Ne = e.page.maxw + Math.round((Ne - e.page.maxw) / 2)) : (Ne < 0 && (Ne = 0, Ce = 0), Ne > e.page.maxw && (Ne = e.page.maxw, Ce = 0))), !e.hasmoving) {
|
|
5456
5458
|
if (e.rail.drag.y === x.clientY && e.rail.drag.x === x.clientX) return e.cancelEvent(x);
|
|
5457
|
-
var
|
|
5458
|
-
if (e.rail.drag.ck ? e.rail.drag.ck == "v" ? Je > je &&
|
|
5459
|
+
var nt = Math.abs(ve), Je = Math.abs(vt), je = g.directionlockdeadzone;
|
|
5460
|
+
if (e.rail.drag.ck ? e.rail.drag.ck == "v" ? Je > je && nt <= Xe ? e.rail.drag = !1 : nt > je && (e.rail.drag.dl = "v") : e.rail.drag.ck == "h" && (nt > je && Je <= Xe ? e.rail.drag = !1 : Je > je && (e.rail.drag.dl = "h")) : nt > je && Je > je ? e.rail.drag.dl = "f" : nt > je ? e.rail.drag.dl = Je > Xe ? "f" : "v" : Je > je && (e.rail.drag.dl = nt > Xe ? "f" : "h"), !e.rail.drag.dl) return e.cancelEvent(x);
|
|
5459
5461
|
e.triggerScrollStart(x.clientX, x.clientY, 0, 0, 0), e.hasmoving = !0;
|
|
5460
5462
|
}
|
|
5461
5463
|
return e.preventclick && !e.preventclick.click && (e.preventclick.click = e.preventclick.tg.onclick || !1, e.preventclick.tg.onclick = e.onpreventclick), e.rail.drag.dl && (e.rail.drag.dl == "v" ? Ne = e.rail.drag.sl : e.rail.drag.dl == "h" && (Le = e.rail.drag.st)), e.synched("touchmove", function() {
|
|
@@ -5547,7 +5549,7 @@ function Js() {
|
|
|
5547
5549
|
cursor: B.cursorgrabvalue
|
|
5548
5550
|
}));
|
|
5549
5551
|
else {
|
|
5550
|
-
var
|
|
5552
|
+
var lt = function(x) {
|
|
5551
5553
|
if (e.selectiondrag) {
|
|
5552
5554
|
if (x) {
|
|
5553
5555
|
var K = e.win.outerHeight(), ue = x.pageY - e.selectiondrag.top;
|
|
@@ -5556,7 +5558,7 @@ function Js() {
|
|
|
5556
5558
|
if (e.selectiondrag.df !== 0) {
|
|
5557
5559
|
var ke = -(e.selectiondrag.df * 2 / 6) | 0;
|
|
5558
5560
|
e.doScrollBy(ke), e.debounced("doselectionscroll", function() {
|
|
5559
|
-
|
|
5561
|
+
lt();
|
|
5560
5562
|
}, 50);
|
|
5561
5563
|
}
|
|
5562
5564
|
}
|
|
@@ -5573,7 +5575,7 @@ function Js() {
|
|
|
5573
5575
|
e.selectiondrag = !1;
|
|
5574
5576
|
}, e.onselectiondrag = function(x) {
|
|
5575
5577
|
e.selectiondrag && e.hasTextSelected() && e.debounced("selectionscroll", function() {
|
|
5576
|
-
|
|
5578
|
+
lt(x);
|
|
5577
5579
|
}, 250);
|
|
5578
5580
|
};
|
|
5579
5581
|
}
|
|
@@ -5707,9 +5709,9 @@ function Js() {
|
|
|
5707
5709
|
}), e.bind(_, "blur", function(x) {
|
|
5708
5710
|
e.wheelprevented = !1;
|
|
5709
5711
|
}), e.bind(_, "resize", e.onscreenresize), e.bind(_, "orientationchange", e.onscreenresize), e.bind(_, "load", e.lazyResize), B.ischrome && !e.ispage && !e.haswrapper) {
|
|
5710
|
-
var
|
|
5712
|
+
var Ct = e.win.attr("style"), Ki = parseFloat(e.win.css("width")) + 1;
|
|
5711
5713
|
e.win.css("width", Ki), e.synched("chromefix", function() {
|
|
5712
|
-
e.win.attr("style",
|
|
5714
|
+
e.win.attr("style", Ct);
|
|
5713
5715
|
});
|
|
5714
5716
|
}
|
|
5715
5717
|
if (e.onAttributeChange = function(x) {
|
|
@@ -5726,10 +5728,10 @@ function Js() {
|
|
|
5726
5728
|
attributes: !0,
|
|
5727
5729
|
attributeFilter: ["class"]
|
|
5728
5730
|
})), !e.ispage && !e.haswrapper)) {
|
|
5729
|
-
var
|
|
5731
|
+
var tt = e.win[0];
|
|
5730
5732
|
U !== !1 ? (e.observer = new U(function(x) {
|
|
5731
5733
|
x.forEach(e.onAttributeChange);
|
|
5732
|
-
}), e.observer.observe(
|
|
5734
|
+
}), e.observer.observe(tt, {
|
|
5733
5735
|
childList: !0,
|
|
5734
5736
|
characterData: !1,
|
|
5735
5737
|
attributes: !0,
|
|
@@ -5738,16 +5740,16 @@ function Js() {
|
|
|
5738
5740
|
x.forEach(function(K) {
|
|
5739
5741
|
if (K.removedNodes.length > 0) {
|
|
5740
5742
|
for (var ue in K.removedNodes)
|
|
5741
|
-
if (e && K.removedNodes[ue] ===
|
|
5743
|
+
if (e && K.removedNodes[ue] === tt) return e.remove();
|
|
5742
5744
|
}
|
|
5743
5745
|
});
|
|
5744
|
-
}), e.observerremover.observe(
|
|
5746
|
+
}), e.observerremover.observe(tt.parentNode, {
|
|
5745
5747
|
childList: !0,
|
|
5746
5748
|
characterData: !1,
|
|
5747
5749
|
attributes: !1,
|
|
5748
5750
|
subtree: !1
|
|
5749
|
-
})) : (e.bind(
|
|
5750
|
-
x.target ===
|
|
5751
|
+
})) : (e.bind(tt, B.isie && !B.isie9 ? "propertychange" : "DOMAttrModified", e.onAttributeChange), B.isie9 && tt.attachEvent("onpropertychange", e.onAttributeChange), e.bind(tt, "DOMNodeRemoved", function(x) {
|
|
5752
|
+
x.target === tt && e.remove();
|
|
5751
5753
|
}));
|
|
5752
5754
|
}
|
|
5753
5755
|
!e.ispage && g.boxzoom && e.bind(_, "resize", e.resizeZoom), e.istextarea && (e.bind(e.win, "keydown", e.lazyResize), e.bind(e.win, "mouseup", e.lazyResize)), e.lazyResize(30);
|
|
@@ -5870,7 +5872,7 @@ function Js() {
|
|
|
5870
5872
|
e && e.resize(), Ie = 0;
|
|
5871
5873
|
}, f), e;
|
|
5872
5874
|
};
|
|
5873
|
-
function
|
|
5875
|
+
function St(f, v, S, H) {
|
|
5874
5876
|
e._bind(f, v, function(W) {
|
|
5875
5877
|
W = W || _.event;
|
|
5876
5878
|
var M = {
|
|
@@ -5903,7 +5905,7 @@ function Js() {
|
|
|
5903
5905
|
e._bind(H, "wheel", v, S || !1);
|
|
5904
5906
|
else {
|
|
5905
5907
|
var W = q.onmousewheel !== void 0 ? "mousewheel" : "DOMMouseScroll";
|
|
5906
|
-
|
|
5908
|
+
St(H, W, v, S || !1), W == "DOMMouseScroll" && St(H, "MozMousePixelScroll", v, S || !1);
|
|
5907
5909
|
}
|
|
5908
5910
|
};
|
|
5909
5911
|
var He = !1;
|
|
@@ -6105,10 +6107,10 @@ function Js() {
|
|
|
6105
6107
|
e.lastdeltax = 0, e.rail.drag || e.doScrollPos(Re, oe);
|
|
6106
6108
|
});
|
|
6107
6109
|
}
|
|
6108
|
-
var
|
|
6109
|
-
function
|
|
6110
|
+
var Et = !1;
|
|
6111
|
+
function et(f, v, S) {
|
|
6110
6112
|
var H, W;
|
|
6111
|
-
if (!S &&
|
|
6113
|
+
if (!S && Et) return !0;
|
|
6112
6114
|
if (f.deltaMode === 0 ? (H = -(f.deltaX * (g.mousescrollstep / 54)) | 0, W = -(f.deltaY * (g.mousescrollstep / 54)) | 0) : f.deltaMode === 1 && (H = -(f.deltaX * g.mousescrollstep * 50 / 80) | 0, W = -(f.deltaY * g.mousescrollstep * 50 / 80) | 0), v && g.oneaxismousemode && H === 0 && W && (H = W, W = 0, S)) {
|
|
6113
6115
|
var M = H < 0 ? e.getScrollLeft() >= e.page.maxw : e.getScrollLeft() <= 0;
|
|
6114
6116
|
M && (W = H, H = 0);
|
|
@@ -6116,9 +6118,9 @@ function Js() {
|
|
|
6116
6118
|
e.isrtlmode && (H = -H);
|
|
6117
6119
|
var ee = It(H, W, S, !0);
|
|
6118
6120
|
if (ee)
|
|
6119
|
-
S && (
|
|
6121
|
+
S && (Et = !0);
|
|
6120
6122
|
else
|
|
6121
|
-
return
|
|
6123
|
+
return Et = !1, f.stopImmediatePropagation(), f.preventDefault();
|
|
6122
6124
|
}
|
|
6123
6125
|
if (this.onmousewheel = function(f) {
|
|
6124
6126
|
if (e.wheelprevented || e.locked) return !1;
|
|
@@ -6129,14 +6131,14 @@ function Js() {
|
|
|
6129
6131
|
return e.railh && e.railh.scrollable ? e.onmousewheelhr(f) : !0;
|
|
6130
6132
|
var v = pe(), S = !1;
|
|
6131
6133
|
if (g.preservenativescrolling && e.checkarea + 600 < v && (e.nativescrollingarea = e.isScrollable(f), S = !0), e.checkarea = v, e.nativescrollingarea) return !0;
|
|
6132
|
-
var H =
|
|
6134
|
+
var H = et(f, !1, S);
|
|
6133
6135
|
return H && (e.checkarea = 0), H;
|
|
6134
6136
|
}, this.onmousewheelhr = function(f) {
|
|
6135
6137
|
if (!e.wheelprevented) {
|
|
6136
6138
|
if (e.railslocked || !e.railh.scrollable) return !0;
|
|
6137
6139
|
if (e.rail.drag) return e.cancelEvent(f);
|
|
6138
6140
|
var v = pe(), S = !1;
|
|
6139
|
-
return g.preservenativescrolling && e.checkarea + 600 < v && (e.nativescrollingarea = e.isScrollable(f), S = !0), e.checkarea = v, e.nativescrollingarea ? !0 : e.railslocked ? e.cancelEvent(f) :
|
|
6141
|
+
return g.preservenativescrolling && e.checkarea + 600 < v && (e.nativescrollingarea = e.isScrollable(f), S = !0), e.checkarea = v, e.nativescrollingarea ? !0 : e.railslocked ? e.cancelEvent(f) : et(f, !0, S);
|
|
6140
6142
|
}
|
|
6141
6143
|
}, this.stop = function() {
|
|
6142
6144
|
return e.cancelScroll(), e.scrollmon && e.scrollmon.stop(), e.cursorfreezed = !1, e.scroll.y = Math.round(e.getScrollTop() * (1 / e.scrollratio.y)), e.noticeCursor(), e;
|
|
@@ -6312,40 +6314,40 @@ function Js() {
|
|
|
6312
6314
|
(ge < 0 || ge > le || De < 0 || De > B) && (Te = !1);
|
|
6313
6315
|
var Ge = C.speedy && Te ? C.speedy : !1, Dt = C.speedx && Te ? C.speedx : !1;
|
|
6314
6316
|
if (Ge || Dt) {
|
|
6315
|
-
var
|
|
6316
|
-
if (
|
|
6317
|
-
var Ft =
|
|
6318
|
-
C.speedx *= Ft, C.speedy *= Ft,
|
|
6317
|
+
var Tt = Math.max(16, C.steptime);
|
|
6318
|
+
if (Tt > 50) {
|
|
6319
|
+
var Ft = Tt / 50;
|
|
6320
|
+
C.speedx *= Ft, C.speedy *= Ft, Tt = 50;
|
|
6319
6321
|
}
|
|
6320
6322
|
C.demulxy = 0, C.lastscrollx = C.nc.getScrollLeft(), C.chkx = C.lastscrollx, C.lastscrolly = C.nc.getScrollTop(), C.chky = C.lastscrolly;
|
|
6321
|
-
var ze = C.lastscrollx, Ie = C.lastscrolly,
|
|
6323
|
+
var ze = C.lastscrollx, Ie = C.lastscrolly, St = function() {
|
|
6322
6324
|
var He = pe() - Z > 600 ? 0.04 : 0.02;
|
|
6323
6325
|
C.speedx && (ze = Math.floor(C.lastscrollx - C.speedx * (1 - C.demulxy)), C.lastscrollx = ze, (ze < 0 || ze > B) && (He = 0.1)), C.speedy && (Ie = Math.floor(C.lastscrolly - C.speedy * (1 - C.demulxy)), C.lastscrolly = Ie, (Ie < 0 || Ie > le) && (He = 0.1)), C.demulxy = Math.min(1, C.demulxy + He), C.nc.synched("domomentum2d", function() {
|
|
6324
6326
|
C.speedx && (C.nc.getScrollLeft(), C.chkx = ze, C.nc.setScrollLeft(ze)), C.speedy && (C.nc.getScrollTop(), C.chky = Ie, C.nc.setScrollTop(Ie)), C.timer || (C.nc.hideCursor(), C.doSnapy(ze, Ie));
|
|
6325
|
-
}), C.demulxy < 1 ? C.timer = setTimeout(
|
|
6327
|
+
}), C.demulxy < 1 ? C.timer = setTimeout(St, Tt) : (C.stop(), C.nc.hideCursor(), C.doSnapy(ze, Ie));
|
|
6326
6328
|
};
|
|
6327
|
-
|
|
6329
|
+
St();
|
|
6328
6330
|
} else
|
|
6329
6331
|
C.doSnapy(C.nc.getScrollLeft(), C.nc.getScrollTop());
|
|
6330
6332
|
};
|
|
6331
|
-
},
|
|
6333
|
+
}, at = d.fn.scrollTop;
|
|
6332
6334
|
d.cssHooks.pageYOffset = {
|
|
6333
6335
|
get: function(j, C, e) {
|
|
6334
6336
|
var Z = k.data(j, "__nicescroll") || !1;
|
|
6335
|
-
return Z && Z.ishwscroll ? Z.getScrollTop() :
|
|
6337
|
+
return Z && Z.ishwscroll ? Z.getScrollTop() : at.call(j);
|
|
6336
6338
|
},
|
|
6337
6339
|
set: function(j, C) {
|
|
6338
6340
|
var e = k.data(j, "__nicescroll") || !1;
|
|
6339
|
-
return e && e.ishwscroll ? e.setScrollTop(parseInt(C)) :
|
|
6341
|
+
return e && e.ishwscroll ? e.setScrollTop(parseInt(C)) : at.call(j, C), this;
|
|
6340
6342
|
}
|
|
6341
6343
|
}, d.fn.scrollTop = function(j) {
|
|
6342
6344
|
if (j === void 0) {
|
|
6343
6345
|
var C = this[0] && k.data(this[0], "__nicescroll") || !1;
|
|
6344
|
-
return C && C.ishwscroll ? C.getScrollTop() :
|
|
6346
|
+
return C && C.ishwscroll ? C.getScrollTop() : at.call(this);
|
|
6345
6347
|
} else
|
|
6346
6348
|
return this.each(function() {
|
|
6347
6349
|
var e = k.data(this, "__nicescroll") || !1;
|
|
6348
|
-
e && e.ishwscroll ? e.setScrollTop(parseInt(j)) :
|
|
6350
|
+
e && e.ishwscroll ? e.setScrollTop(parseInt(j)) : at.call(k(this), j);
|
|
6349
6351
|
});
|
|
6350
6352
|
};
|
|
6351
6353
|
var me = d.fn.scrollLeft;
|
|
@@ -6421,13 +6423,13 @@ function Js() {
|
|
|
6421
6423
|
getjQuery: function() {
|
|
6422
6424
|
return d;
|
|
6423
6425
|
}
|
|
6424
|
-
}, k.nicescroll || (k.nicescroll = new Wt(), k.nicescroll.options =
|
|
6426
|
+
}, k.nicescroll || (k.nicescroll = new Wt(), k.nicescroll.options = xt);
|
|
6425
6427
|
});
|
|
6426
6428
|
})(xr)), xr.exports;
|
|
6427
6429
|
}
|
|
6428
|
-
|
|
6430
|
+
Qs();
|
|
6429
6431
|
const Ur = ".bloom-translationGroup:not(.bloom-imageDescription) .bloom-editable.bloom-visibility-code-on, .scrollable";
|
|
6430
|
-
function
|
|
6432
|
+
function Ca(s, c) {
|
|
6431
6433
|
if (s.classList.contains("cover"))
|
|
6432
6434
|
return;
|
|
6433
6435
|
const d = Fr(s);
|
|
@@ -6462,23 +6464,23 @@ function Ea(s, c) {
|
|
|
6462
6464
|
Ee.forEach((pe) => {
|
|
6463
6465
|
if (L++, U.unobserve(pe.target), !pe.target.parentElement)
|
|
6464
6466
|
return;
|
|
6465
|
-
const
|
|
6467
|
+
const xt = !!pe.target.closest(
|
|
6466
6468
|
ji
|
|
6467
6469
|
);
|
|
6468
6470
|
let Ve = pe.intersectionRatio < 0.999;
|
|
6469
|
-
if (Ve &&
|
|
6471
|
+
if (Ve && xt) {
|
|
6470
6472
|
let $e = 0.6;
|
|
6471
6473
|
(pe.target != pe.target.parentElement?.firstElementChild || pe.target != pe.target.parentElement.lastElementChild) && ($e /= 2);
|
|
6472
6474
|
const ti = (1 - pe.intersectionRatio) * pe.target.clientHeight, o = window.getComputedStyle(
|
|
6473
6475
|
pe.target
|
|
6474
|
-
).lineHeight,
|
|
6476
|
+
).lineHeight, at = parseFloat(
|
|
6475
6477
|
// remove the trailing "px"
|
|
6476
6478
|
o.substring(
|
|
6477
6479
|
0,
|
|
6478
6480
|
o.length - 2
|
|
6479
6481
|
)
|
|
6480
6482
|
);
|
|
6481
|
-
Ve = ti >
|
|
6483
|
+
Ve = ti > at * $e;
|
|
6482
6484
|
}
|
|
6483
6485
|
if (Ve && h.indexOf(
|
|
6484
6486
|
pe.target.parentElement
|
|
@@ -6497,7 +6499,7 @@ function Ea(s, c) {
|
|
|
6497
6499
|
"bloom-vertical-align-bottom"
|
|
6498
6500
|
), d && $e.classList.add(
|
|
6499
6501
|
"bloom-vertical-align-bottom-removed"
|
|
6500
|
-
)),
|
|
6502
|
+
)), xt && pe.target.parentElement.classList.add(
|
|
6501
6503
|
"scrolling-bubble"
|
|
6502
6504
|
);
|
|
6503
6505
|
}
|
|
@@ -6512,7 +6514,7 @@ function Ea(s, c) {
|
|
|
6512
6514
|
cursoropacitymax: 0.1,
|
|
6513
6515
|
cursorborderradius: V
|
|
6514
6516
|
// Make the corner more rounded than the 5px default.
|
|
6515
|
-
}),
|
|
6517
|
+
}), ta(
|
|
6516
6518
|
s,
|
|
6517
6519
|
c
|
|
6518
6520
|
), h = []);
|
|
@@ -6524,7 +6526,7 @@ function Ea(s, c) {
|
|
|
6524
6526
|
});
|
|
6525
6527
|
}
|
|
6526
6528
|
}
|
|
6527
|
-
function
|
|
6529
|
+
function ea(s) {
|
|
6528
6530
|
for (var c = s && s.parentNode ? s.parentNode : null; c && c.nodeType === Node.ELEMENT_NODE && !/^BODY|HTML/.test(c.nodeName); ) {
|
|
6529
6531
|
const d = window.getComputedStyle(c), h = d.getPropertyValue("position");
|
|
6530
6532
|
if (/fixed|absolute/.test(h)) return c;
|
|
@@ -6540,7 +6542,7 @@ function bo(s, c) {
|
|
|
6540
6542
|
const L = c.parentElement;
|
|
6541
6543
|
if (!L || !L.classList.contains("bloom-translationGroup"))
|
|
6542
6544
|
return { topAdjust: d, leftAdjust: h, thumbWidth: T };
|
|
6543
|
-
if (
|
|
6545
|
+
if (ea(c)) {
|
|
6544
6546
|
const D = window.getComputedStyle(L), k = D.getPropertyValue("padding-top") || "0", q = D.getPropertyValue("padding-left") || "0";
|
|
6545
6547
|
d = parseFloat(k) * (s - 1), h = parseFloat(q) * (s - 1);
|
|
6546
6548
|
} else {
|
|
@@ -6554,7 +6556,7 @@ function bo(s, c) {
|
|
|
6554
6556
|
}
|
|
6555
6557
|
return { topAdjust: d, leftAdjust: h, thumbWidth: T };
|
|
6556
6558
|
}
|
|
6557
|
-
function
|
|
6559
|
+
function ta(s, c) {
|
|
6558
6560
|
if (s.removeEventListener(
|
|
6559
6561
|
"pointerdown",
|
|
6560
6562
|
Ln
|
|
@@ -6571,7 +6573,7 @@ function ea(s, c) {
|
|
|
6571
6573
|
}
|
|
6572
6574
|
);
|
|
6573
6575
|
}
|
|
6574
|
-
function
|
|
6576
|
+
function Aa(s, c) {
|
|
6575
6577
|
s.querySelectorAll(Ur).forEach(
|
|
6576
6578
|
(d) => {
|
|
6577
6579
|
const h = Qt(d).getNiceScroll();
|
|
@@ -6585,7 +6587,7 @@ function Ca(s, c) {
|
|
|
6585
6587
|
function Ln(s) {
|
|
6586
6588
|
s.target instanceof HTMLDivElement && s.target.classList.contains("nicescroll-cursors") && (s.target.setPointerCapture(s.pointerId), s.pointerType === "mouse" && s.stopPropagation());
|
|
6587
6589
|
}
|
|
6588
|
-
function
|
|
6590
|
+
function ka() {
|
|
6589
6591
|
Qt("div.bloom-page")[0]?.querySelectorAll(Ur).forEach((s) => {
|
|
6590
6592
|
const c = Qt(
|
|
6591
6593
|
s
|
|
@@ -6603,7 +6605,7 @@ function Aa() {
|
|
|
6603
6605
|
), d.classList.add("bloom-vertical-align-bottom")), s.style.overflow = "", s.style.outline = "", s.style.width = "");
|
|
6604
6606
|
});
|
|
6605
6607
|
}
|
|
6606
|
-
class
|
|
6608
|
+
class ia {
|
|
6607
6609
|
static getActualUrlFromCSSPropertyValue(c) {
|
|
6608
6610
|
const d = c.match(/.*url\((['"])(.*?)\1\).*/i);
|
|
6609
6611
|
return d ? d[2] : "";
|
|
@@ -6708,7 +6710,7 @@ const gt = class gt {
|
|
|
6708
6710
|
const h = gt.getAnimationCanvas(c);
|
|
6709
6711
|
if (this.animationEngine && this.animationEngine.endAnimation(), h) {
|
|
6710
6712
|
const T = h.getAttribute("data-initialrect"), L = h.getAttribute("data-finalrect");
|
|
6711
|
-
this.animationEngine = new
|
|
6713
|
+
this.animationEngine = new ra(
|
|
6712
6714
|
T,
|
|
6713
6715
|
L,
|
|
6714
6716
|
this.animationDuration,
|
|
@@ -6734,7 +6736,7 @@ const gt = class gt {
|
|
|
6734
6736
|
"data-aspectRatio",
|
|
6735
6737
|
(z.naturalWidth / z.naturalHeight).toString()
|
|
6736
6738
|
), this.placeAnimationWrapper(d), this.createAndPlayAnimation(c, T);
|
|
6737
|
-
}), z.src =
|
|
6739
|
+
}), z.src = ia.getActualUrlFromCSSPropertyValue(
|
|
6738
6740
|
h.style.backgroundImage
|
|
6739
6741
|
);
|
|
6740
6742
|
} else
|
|
@@ -6819,7 +6821,7 @@ const gt = class gt {
|
|
|
6819
6821
|
};
|
|
6820
6822
|
gt.wrapperClassName = "bloom-ui-animationWrapper";
|
|
6821
6823
|
let Nn = gt;
|
|
6822
|
-
class
|
|
6824
|
+
class ra {
|
|
6823
6825
|
//initial and final rect strings come in as space-separated "left top width height"
|
|
6824
6826
|
// all four of these parameters are reperesented as fractions of the canvas
|
|
6825
6827
|
//duration is the length of the animation in seconds
|
|
@@ -6880,73 +6882,75 @@ export {
|
|
|
6880
6882
|
Ii as PageNarrationComplete,
|
|
6881
6883
|
Er as PlayCompleted,
|
|
6882
6884
|
Tn as PlayFailed,
|
|
6883
|
-
|
|
6885
|
+
ca as PlayUnblocked,
|
|
6884
6886
|
ss as PlaybackMode,
|
|
6885
6887
|
Hi as ToggleImageDescription,
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6889
|
-
|
|
6888
|
+
ra as TransformBasedAnimator,
|
|
6889
|
+
fa as abortNarrationPlayback,
|
|
6890
|
+
Ca as addScrollbarsToPage,
|
|
6891
|
+
Bs as adjustDraggablesForLanguage,
|
|
6890
6892
|
Rr as cancelVideoFirstFramePriming,
|
|
6891
6893
|
jt as classSetter,
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6894
|
+
Ws as cleanupActivitySounds,
|
|
6895
|
+
ka as cleanupNiceScroll,
|
|
6896
|
+
ga as computeDuration,
|
|
6897
|
+
Us as copyContentToTarget,
|
|
6898
|
+
Un as currentAudioUrl,
|
|
6896
6899
|
ei as currentPlaybackMode,
|
|
6897
6900
|
vo as doShowAnswersInTargets,
|
|
6898
|
-
|
|
6901
|
+
Sa as draggingSlider,
|
|
6899
6902
|
Tr as durationReporter,
|
|
6900
|
-
|
|
6901
|
-
|
|
6903
|
+
Aa as fixNiceScrollOffsets,
|
|
6904
|
+
Rs as getAudioSentencesOfVisibleEditables,
|
|
6902
6905
|
ds as getCurrentNarrationPage,
|
|
6906
|
+
Ss as getNarrationFileName,
|
|
6903
6907
|
Yr as getTarget,
|
|
6904
6908
|
Mn as getUrlPrefixFromWindowHref,
|
|
6905
6909
|
Ri as hideVideoAutoplayBlockedHint,
|
|
6906
|
-
|
|
6907
|
-
|
|
6908
|
-
|
|
6910
|
+
Hs as hideVideoError,
|
|
6911
|
+
ma as hidingPage,
|
|
6912
|
+
zs as isDefiniteVideoPlaybackSupportFailure,
|
|
6909
6913
|
Pn as isSwipeInProgress,
|
|
6910
|
-
|
|
6911
|
-
|
|
6914
|
+
xa as isTheTextInDraggablesTheSame,
|
|
6915
|
+
Ds as isTransientVideoPlayFailure,
|
|
6912
6916
|
Mi as kAudioSentence,
|
|
6913
6917
|
us as kHighlightSegmentClass,
|
|
6914
6918
|
ji as kLegacyCanvasElementSelector,
|
|
6915
6919
|
Ur as kSelectorForPotentialNiceScrollElements,
|
|
6916
|
-
|
|
6920
|
+
na as listenForPlayDuration,
|
|
6917
6921
|
Dn as logNarration,
|
|
6918
|
-
|
|
6919
|
-
|
|
6922
|
+
da as pageHasAudio,
|
|
6923
|
+
pa as pauseNarration,
|
|
6920
6924
|
lo as performCheck,
|
|
6921
6925
|
co as performTryAgain,
|
|
6922
6926
|
gi as playAllAudio,
|
|
6923
6927
|
hs as playAllSentences,
|
|
6924
6928
|
jr as playAllVideo,
|
|
6925
|
-
|
|
6926
|
-
|
|
6927
|
-
|
|
6929
|
+
_s as playCorrectOrWrongSound,
|
|
6930
|
+
ba as playInitialElements,
|
|
6931
|
+
ha as playNarration,
|
|
6928
6932
|
Jn as playSoundOf,
|
|
6929
|
-
|
|
6930
|
-
|
|
6933
|
+
Fs as preloadSoundsForActivity,
|
|
6934
|
+
va as prepareActivity,
|
|
6931
6935
|
fs as setCurrentPage,
|
|
6932
6936
|
Kt as setCurrentPlaybackMode,
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
|
|
6937
|
+
Ta as setDefaultSoundUrls,
|
|
6938
|
+
la as setDurationOfPagesWithoutNarration,
|
|
6939
|
+
ua as setIncludeImageDescriptions,
|
|
6940
|
+
sa as setLogNarration,
|
|
6937
6941
|
as as setPlayerUrlPrefix,
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6942
|
+
aa as setPlayerUrlPrefixFromWindowLocationHref,
|
|
6943
|
+
wa as setReportScore,
|
|
6944
|
+
oa as setTestIsSwipeInProgress,
|
|
6945
|
+
ta as setupSpecialMouseTrackingForNiceScroll,
|
|
6946
|
+
Ea as setupWordChooserSlider,
|
|
6943
6947
|
Gn as showVideoAutoplayBlockedHint,
|
|
6944
6948
|
Sn as showVideoError,
|
|
6945
|
-
|
|
6946
|
-
|
|
6949
|
+
Ms as showVideoFirstFrameWhenReady,
|
|
6950
|
+
js as shuffle,
|
|
6947
6951
|
ls as sortAudioElements,
|
|
6948
6952
|
qr as stopPlayAllVideoPlayback,
|
|
6949
|
-
|
|
6953
|
+
ya as undoPrepareActivity,
|
|
6950
6954
|
Pr as urlPrefix
|
|
6951
6955
|
};
|
|
6952
6956
|
//# sourceMappingURL=shared.es.js.map
|