bloom-player 2.19.5-alpha.1 → 2.19.5

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/lib/shared.es.js CHANGED
@@ -157,12 +157,12 @@ function us(c, l) {
157
157
  E.push(yr(c.nodeValue));
158
158
  else {
159
159
  let q = 0;
160
- for (let H = 0; H < h.length; ++H) {
161
- const L = h[H], B = c.nodeValue.slice(
160
+ for (let I = 0; I < h.length; ++I) {
161
+ const L = h[I], B = c.nodeValue.slice(
162
162
  q,
163
163
  L.startIndex
164
164
  );
165
- if (q = L.endIndex, B && E.push(yr(B)), E.push(document.createTextNode(L.text)), H === h.length - 1) {
165
+ if (q = L.endIndex, B && E.push(yr(B)), E.push(document.createTextNode(L.text)), I === h.length - 1) {
166
166
  const $ = c.nodeValue.slice(L.endIndex);
167
167
  $ && E.push(yr($));
168
168
  }
@@ -171,8 +171,8 @@ function us(c, l) {
171
171
  const D = c;
172
172
  if (D.parentNode && E && E.length > 0) {
173
173
  for (let q = 0; q < E.length; ++q) {
174
- const H = E[q];
175
- D.parentNode.insertBefore(H, D);
174
+ const I = E[q];
175
+ D.parentNode.insertBefore(I, D);
176
176
  }
177
177
  D.parentNode.removeChild(D), l.classList.add(kr);
178
178
  }
@@ -199,11 +199,11 @@ function zn() {
199
199
  if (h) {
200
200
  const D = l.querySelectorAll(
201
201
  `span.${os}`
202
- ), q = h.split(" "), H = Math.min(
202
+ ), q = h.split(" "), I = Math.min(
203
203
  q.length,
204
204
  D.length
205
205
  );
206
- for (let L = H - 1; L >= 0; --L) {
206
+ for (let L = I - 1; L >= 0; --L) {
207
207
  const B = Number(q[L]);
208
208
  isNaN(B) || It.push([
209
209
  D.item(L),
@@ -242,11 +242,11 @@ function Nr(c, l = 0) {
242
242
  shouldScrollToElement: !0,
243
243
  disableHighlightIfNoAudio: !1
244
244
  });
245
- let H = document.getElementById(
245
+ let I = document.getElementById(
246
246
  "bloom-audio-player"
247
247
  ).currentTime;
248
- H <= 0 && (H = l);
249
- const L = Math.max(D - H, 0.1);
248
+ I <= 0 && (I = l);
249
+ const L = Math.max(D - I, 0.1);
250
250
  setTimeout(() => {
251
251
  Hn(c);
252
252
  }, L * 1e3);
@@ -299,8 +299,8 @@ function On({
299
299
  if (l)
300
300
  try {
301
301
  fs(c);
302
- } catch (H) {
303
- console.error(H);
302
+ } catch (I) {
303
+ console.error(I);
304
304
  }
305
305
  if (p === c)
306
306
  return;
@@ -313,10 +313,10 @@ function On({
313
313
  }))), D || c.classList.add("ui-audioCurrent");
314
314
  const q = c.closest(".bloom-translationGroup");
315
315
  if (q && q.classList.contains(kn)) {
316
- const H = q.closest(
316
+ const I = q.closest(
317
317
  ".bloom-imageContainer, .bloom-canvas"
318
318
  );
319
- H && H.classList.add("ui-audioCurrentImg");
319
+ I && I.classList.add("ui-audioCurrentImg");
320
320
  }
321
321
  }
322
322
  function fs(c) {
@@ -330,7 +330,7 @@ function fs(c) {
330
330
  if (window.getComputedStyle(c.parentElement).position !== "static") {
331
331
  const E = c;
332
332
  l = document.createElement("div"), l.style.position = "absolute", l.style.top = E.offsetTop + "px";
333
- const D = E.getBoundingClientRect(), q = E.parentElement, H = q == null ? void 0 : q.getBoundingClientRect(), L = H.width / q.offsetWidth, B = (D.left - H.left) / L;
333
+ const D = E.getBoundingClientRect(), q = E.parentElement, I = q == null ? void 0 : q.getBoundingClientRect(), L = I.width / q.offsetWidth, B = (D.left - I.left) / L;
334
334
  l.style.left = B + E.offsetWidth / 2 + "px", l.style.height = E.offsetHeight + "px", l.style.width = "0", (h = c.parentElement) == null || h.insertBefore(l, c);
335
335
  }
336
336
  l.scrollIntoView({
@@ -633,10 +633,10 @@ function oa(c, l) {
633
633
  const Ps = (c) => {
634
634
  Array.from(c.getElementsByClassName("drag-item-order-sentence")).forEach(
635
635
  (l) => {
636
- var H, L;
636
+ var I, L;
637
637
  const h = l.getElementsByClassName(
638
638
  "bloom-content1 bloom-visibility-code-on"
639
- )[0], p = (H = h == null ? void 0 : h.textContent) == null ? void 0 : H.trim();
639
+ )[0], p = (I = h == null ? void 0 : h.textContent) == null ? void 0 : I.trim();
640
640
  if (!p) return;
641
641
  const E = p.split(" "), D = Ms(E), q = c.ownerDocument.createElement("div");
642
642
  q.classList.add("drag-item-random-sentence"), q.setAttribute("data-answer", p), _n(c, D, q, h, !0), q.style.left = l.style.left, q.style.top = l.style.top, q.style.width = l.style.width, (L = l.parentElement) == null || L.insertBefore(q, l);
@@ -682,8 +682,8 @@ function sa(c) {
682
682
  var B;
683
683
  (B = L.parentElement) == null || B.removeChild(L);
684
684
  });
685
- const H = c.closest(".swiper-slide") !== null;
686
- so(!H, c);
685
+ const I = c.closest(".swiper-slide") !== null;
686
+ so(!I, c);
687
687
  }
688
688
  const jn = (c) => {
689
689
  const l = c.currentTarget, h = l.getAttribute("data-sound");
@@ -700,8 +700,8 @@ function zs(c) {
700
700
  return Hr(l);
701
701
  }
702
702
  function _n(c, l, h, p, E) {
703
- var H;
704
- const D = ((H = Array.from(p == null ? void 0 : p.classList)) == null ? void 0 : H.find((L) => L.endsWith("-style"))) ?? "Normal-style", q = p == null ? void 0 : p.getAttribute("lang");
703
+ var I;
704
+ const D = ((I = Array.from(p == null ? void 0 : p.classList)) == null ? void 0 : I.find((L) => L.endsWith("-style"))) ?? "Normal-style", q = p == null ? void 0 : p.getAttribute("lang");
705
705
  l.forEach((L) => {
706
706
  const B = c.ownerDocument.createElement("div");
707
707
  B.classList.add("drag-item-order-word"), B.textContent = L, h.appendChild(B), B.classList.add(D), q && B.setAttribute("lang", q), E && B.addEventListener("pointerdown", Bs);
@@ -750,10 +750,10 @@ function Yi(c) {
750
750
  return c.classList.contains("bloom-editable") && window.getComputedStyle(c).display !== "none" && l.push(c), l;
751
751
  }
752
752
  function Ms(c, l) {
753
- l || (l = (H, L) => H === L);
753
+ l || (l = (I, L) => I === L);
754
754
  let h = !0;
755
- for (let H = 1; H < c.length; ++H)
756
- if (!l(c[0], c[H])) {
755
+ for (let I = 1; I < c.length; ++I)
756
+ if (!l(c[0], c[I])) {
757
757
  h = !1;
758
758
  break;
759
759
  }
@@ -761,11 +761,11 @@ function Ms(c, l) {
761
761
  const p = c.slice();
762
762
  let E = 0, D = p, q = 0;
763
763
  for (; q++ < 10; ) {
764
- let H = c.length, L;
765
- for (; H !== 0; )
766
- L = Math.floor(Math.random() * H), H--, [c[H], c[L]] = [
764
+ let I = c.length, L;
765
+ for (; I !== 0; )
766
+ L = Math.floor(Math.random() * I), I--, [c[I], c[L]] = [
767
767
  c[L],
768
- c[H]
768
+ c[I]
769
769
  ];
770
770
  let B = 0;
771
771
  for (let $ = 0; $ < c.length; ++$)
@@ -773,7 +773,7 @@ function Ms(c, l) {
773
773
  if (B === c.length) return c;
774
774
  B > E && (E = B, D = c.slice());
775
775
  }
776
- for (let H = 0; H < c.length; ++H) c[H] = D[H];
776
+ for (let I = 0; I < c.length; ++I) c[I] = D[I];
777
777
  return c;
778
778
  }
779
779
  function ca(c, l) {
@@ -796,8 +796,8 @@ const Vn = (c) => {
796
796
  const L = l.style.height.replace("px", "");
797
797
  D = Number.parseInt(L, 10);
798
798
  }
799
- const q = p.offsetLeft + (p.offsetWidth - E) / 2, H = p.offsetTop + (p.offsetHeight - D) / 2;
800
- l.style.left = q + "px", l.style.top = H + "px";
799
+ const q = p.offsetLeft + (p.offsetWidth - E) / 2, I = p.offsetTop + (p.offsetHeight - D) / 2;
800
+ l.style.left = q + "px", l.style.top = I + "px";
801
801
  }), Array.from(
802
802
  vt.getElementsByClassName("drag-item-random-sentence")
803
803
  ).forEach((l) => {
@@ -825,12 +825,12 @@ const Zi = (c) => c.getBoundingClientRect().width / c.offsetWidth, Yn = (c) => {
825
825
  c.preventDefault();
826
826
  let p = c.clientX / h - Ui, E = c.clientY / h - Gi, D = Number.MAX_VALUE;
827
827
  Er = !1;
828
- let q = p, H = E;
828
+ let q = p, I = E;
829
829
  for (const L of Sr) {
830
830
  const B = (L.width - qe.offsetWidth) / 2, $ = (L.height - qe.offsetHeight) / 2, Le = L.x + B - p, se = L.y + $ - E, je = Math.sqrt(Le * Le + se * se);
831
- je < D && (D = je, q = L.x + B, H = L.y + $);
831
+ je < D && (D = je, q = L.x + B, I = L.y + $);
832
832
  }
833
- D < 50 && (p = q, E = H, Er = !0), qe.style.top = E + "px", qe.style.left = p + "px";
833
+ D < 50 && (p = q, E = I, Er = !0), qe.style.top = E + "px", qe.style.left = p + "px";
834
834
  }, Gn = (c) => {
835
835
  if (Er)
836
836
  qe.classList.add("bloom-draggedToTarget");
@@ -879,23 +879,37 @@ function Is(c, l) {
879
879
  c.getElementsByClassName(
880
880
  l ? "drag-item-correct" : "drag-item-wrong"
881
881
  )
882
- ), q = [], H = [];
882
+ ), q = [], I = [];
883
883
  D.forEach((B) => {
884
- q.push(...Yi(B)), H.push(...Array.from(B.getElementsByTagName("video")));
884
+ q.push(...Yi(B)), I.push(...Array.from(B.getElementsByTagName("video")));
885
885
  });
886
886
  const L = Hr(q);
887
- mi(H, () => yi(L, c));
887
+ mi(I, () => yi(L, c));
888
888
  }, E = h !== null;
889
- h === null ? h = l ? Jn : Qn : h === "none" && (h = void 0), h ? eo(c, h, E) : p();
889
+ h === null ? h = l ? Jn : Qn : h === "none" && (h = void 0), h ? eo(c, h, E, p) : p();
890
890
  }
891
- function eo(c, l, h = !0) {
892
- const p = new Audio(
891
+ function eo(c, l, h = !0, p) {
892
+ const E = new Audio(
893
893
  (h ? Cn() + "/audio/" : "") + l
894
894
  );
895
- qn(c) && p.classList.add("bloom-ui"), p.style.visibility = "hidden", c.append(p), p.play(), p.addEventListener(
895
+ let D = !1;
896
+ const q = () => {
897
+ D || (D = !0, p == null || p());
898
+ };
899
+ qn(c) && E.classList.add("bloom-ui"), E.style.visibility = "hidden", c.append(E);
900
+ const I = E.play();
901
+ I == null || I.catch(() => {
902
+ q();
903
+ }), E.addEventListener(
896
904
  "ended",
897
905
  () => {
898
- c.removeChild(p);
906
+ c.removeChild(E), q();
907
+ },
908
+ { once: !0 }
909
+ ), E.addEventListener(
910
+ "error",
911
+ () => {
912
+ E.parentElement === c && c.removeChild(E), q();
899
913
  },
900
914
  { once: !0 }
901
915
  );
@@ -909,13 +923,13 @@ function Hs(c) {
909
923
  );
910
924
  if (D && !Cr(p, D)) {
911
925
  if (!Array.from(p.children).some(
912
- (H) => H.classList.contains("bloom-translationGroup")
926
+ (I) => I.classList.contains("bloom-translationGroup")
913
927
  )) {
914
928
  l = !1;
915
929
  return;
916
930
  }
917
931
  const q = bn(p);
918
- h.some((H) => H === p || bn(H) !== q ? !1 : Cr(H, D)) || (l = !1);
932
+ h.some((I) => I === p || bn(I) !== q ? !1 : Cr(I, D)) || (l = !1);
919
933
  }
920
934
  }), l;
921
935
  }
@@ -946,13 +960,13 @@ const ro = (c) => {
946
960
  const p = c.clientX / h - Ui, E = c.clientY / h - Gi;
947
961
  if (Ge.style.top = E + "px", Ge.style.left = p + "px", Oi)
948
962
  return;
949
- const D = de.parentElement, q = Array.from(D.children).find((H) => {
950
- const L = H.getBoundingClientRect();
951
- return H !== de && H !== Xe && H !== Ge && c.clientX > L.left && c.clientX < L.right && c.clientY > L.top && c.clientY < L.bottom;
963
+ const D = de.parentElement, q = Array.from(D.children).find((I) => {
964
+ const L = I.getBoundingClientRect();
965
+ return I !== de && I !== Xe && I !== Ge && c.clientX > L.left && c.clientX < L.right && c.clientY > L.top && c.clientY < L.bottom;
952
966
  });
953
967
  if (q && q !== wn) {
954
- const H = Array.from(D.children);
955
- H.indexOf(q) > H.indexOf(Xe) ? br(() => {
968
+ const I = Array.from(D.children);
969
+ I.indexOf(q) > I.indexOf(Xe) ? br(() => {
956
970
  D.insertBefore(
957
971
  Xe,
958
972
  q.nextSibling
@@ -961,13 +975,13 @@ const ro = (c) => {
961
975
  D.insertBefore(Xe, q);
962
976
  });
963
977
  } else {
964
- const H = Array.from(
978
+ const I = Array.from(
965
979
  de.parentElement.getElementsByClassName(
966
980
  "drag-item-order-word"
967
981
  )
968
982
  ).filter(
969
983
  ($) => $ !== de && $ !== Xe && $ !== Ge
970
- ), B = H[H.length - 1].getBoundingClientRect();
984
+ ), B = I[I.length - 1].getBoundingClientRect();
971
985
  (c.clientY > B.bottom || c.clientX > B.right && c.clientY > B.top) && br(() => {
972
986
  D.appendChild(Xe);
973
987
  });
@@ -1000,12 +1014,12 @@ function br(c) {
1000
1014
  const l = 200, h = de.parentElement, p = oo(de);
1001
1015
  h.insertBefore(p, Xe), c();
1002
1016
  const E = Date.now(), D = () => {
1003
- const q = Date.now() - E, H = Math.min(q / l, 1), L = Ar + to;
1017
+ const q = Date.now() - E, I = Math.min(q / l, 1), L = Ar + to;
1004
1018
  if (!Xe) {
1005
1019
  h.removeChild(p), Oi = !1;
1006
1020
  return;
1007
1021
  }
1008
- Xe.style.width = L * H + "px", p.style.width = L * (1 - H) + "px", H < 1 ? requestAnimationFrame(D) : (h.removeChild(p), Xe.style.width = L + "px", Oi = !1);
1022
+ Xe.style.width = L * I + "px", p.style.width = L * (1 - I) + "px", I < 1 ? requestAnimationFrame(D) : (h.removeChild(p), Xe.style.width = L + "px", Oi = !1);
1009
1023
  };
1010
1024
  requestAnimationFrame(D);
1011
1025
  }
@@ -1108,7 +1122,7 @@ var ao = { exports: {} };
1108
1122
  return p.flat.call(t);
1109
1123
  } : function(t) {
1110
1124
  return p.concat.apply([], t);
1111
- }, H = p.push, L = p.indexOf, B = {}, $ = B.toString, Le = B.hasOwnProperty, se = Le.toString, je = se.call(Object), ne = {}, Q = function(i) {
1125
+ }, I = p.push, L = p.indexOf, B = {}, $ = B.toString, Le = B.hasOwnProperty, se = Le.toString, je = se.call(Object), ne = {}, Q = function(i) {
1112
1126
  return typeof i == "function" && typeof i.nodeType != "number";
1113
1127
  }, Me = function(i) {
1114
1128
  return i != null && i === i.window;
@@ -1189,7 +1203,7 @@ var ao = { exports: {} };
1189
1203
  },
1190
1204
  // For internal use only.
1191
1205
  // Behaves like an Array's method, not like a jQuery method.
1192
- push: H,
1206
+ push: I,
1193
1207
  sort: p.sort,
1194
1208
  splice: p.splice
1195
1209
  }, o.extend = o.fn.extend = function() {
@@ -1241,7 +1255,7 @@ var ao = { exports: {} };
1241
1255
  return t != null && (qt(Object(t)) ? o.merge(
1242
1256
  r,
1243
1257
  typeof t == "string" ? [t] : t
1244
- ) : H.call(r, t)), r;
1258
+ ) : I.call(r, t)), r;
1245
1259
  },
1246
1260
  inArray: function(t, i, r) {
1247
1261
  return i == null ? -1 : L.call(i, t, r);
@@ -2732,7 +2746,7 @@ var ao = { exports: {} };
2732
2746
  return y(), s.promise(i);
2733
2747
  }
2734
2748
  });
2735
- var k = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, I = new RegExp("^(?:([+-])=|)(" + k + ")([a-z%]*)$", "i"), W = ["Top", "Right", "Bottom", "Left"], _ = ee.documentElement, le = function(t) {
2749
+ var k = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, H = new RegExp("^(?:([+-])=|)(" + k + ")([a-z%]*)$", "i"), W = ["Top", "Right", "Bottom", "Left"], _ = ee.documentElement, le = function(t) {
2736
2750
  return o.contains(t.ownerDocument, t);
2737
2751
  }, be = { composed: !0 };
2738
2752
  _.getRootNode && (le = function(t) {
@@ -2750,7 +2764,7 @@ var ao = { exports: {} };
2750
2764
  return n.cur();
2751
2765
  } : function() {
2752
2766
  return o.css(t, i, "");
2753
- }, b = y(), T = r && r[3] || (o.cssNumber[i] ? "" : "px"), N = t.nodeType && (o.cssNumber[i] || T !== "px" && +b) && I.exec(o.css(t, i));
2767
+ }, b = y(), T = r && r[3] || (o.cssNumber[i] ? "" : "px"), N = t.nodeType && (o.cssNumber[i] || T !== "px" && +b) && H.exec(o.css(t, i));
2754
2768
  if (N && N[3] !== T) {
2755
2769
  for (b = b / 2, T = T || N[3], N = +b || 1; u--; )
2756
2770
  o.style(t, i, N + T), (1 - a) * (1 - (a = y() / b || 0.5)) <= 0 && (u = 0), N = N / a;
@@ -3286,7 +3300,7 @@ var ao = { exports: {} };
3286
3300
  }, function(t, i) {
3287
3301
  o.fn[t] = function(r) {
3288
3302
  for (var n, s = [], a = o(r), u = a.length - 1, y = 0; y <= u; y++)
3289
- n = y === u ? this : this.clone(!0), o(a[y])[i](n), H.apply(s, n.get());
3303
+ n = y === u ? this : this.clone(!0), o(a[y])[i](n), I.apply(s, n.get());
3290
3304
  return this.pushStack(s);
3291
3305
  };
3292
3306
  });
@@ -3375,7 +3389,7 @@ var ao = { exports: {} };
3375
3389
  fontWeight: "400"
3376
3390
  };
3377
3391
  function Ur(t, i, r) {
3378
- var n = I.exec(i);
3392
+ var n = H.exec(i);
3379
3393
  return n ? (
3380
3394
  // Guard against undefined "subtract", e.g., when used as in cssHooks
3381
3395
  Math.max(0, n[2] - (r || 0)) + (n[3] || "px")
@@ -3463,7 +3477,7 @@ var ao = { exports: {} };
3463
3477
  if (!(!t || t.nodeType === 3 || t.nodeType === 8 || !t.style)) {
3464
3478
  var s, a, u, y = rt(i), b = Vr.test(i), T = t.style;
3465
3479
  if (b || (i = Qi(y)), u = o.cssHooks[i] || o.cssHooks[y], r !== void 0) {
3466
- if (a = typeof r, a === "string" && (s = I.exec(r)) && s[1] && (r = ce(t, i, s), a = "number"), r == null || r !== r)
3480
+ if (a = typeof r, a === "string" && (s = H.exec(r)) && s[1] && (r = ce(t, i, s), a = "number"), r == null || r !== r)
3467
3481
  return;
3468
3482
  a === "number" && !b && (r += s && s[3] || (o.cssNumber[y] ? "" : "px")), !ne.clearCloneStyle && r === "" && i.indexOf("background") === 0 && (T[i] = "inherit"), (!u || !("set" in u) || (r = u.set(t, r, n)) !== void 0) && (b ? T.setProperty(i, r) : T[i] = r);
3469
3483
  } else
@@ -3498,7 +3512,7 @@ var ao = { exports: {} };
3498
3512
  ) : 0;
3499
3513
  return T && y && (N -= Math.ceil(
3500
3514
  r["offset" + i[0].toUpperCase() + i.slice(1)] - parseFloat(u[i]) - er(r, i, "border", !1, u) - 0.5
3501
- )), N && (a = I.exec(n)) && (a[3] || "px") !== "px" && (r.style[i] = n, n = o.css(r, i)), Ur(r, n, N);
3515
+ )), N && (a = H.exec(n)) && (a[3] || "px") !== "px" && (r.style[i] = n, n = o.css(r, i)), Ur(r, n, N);
3502
3516
  }
3503
3517
  };
3504
3518
  }), o.cssHooks.marginLeft = Fr(
@@ -3696,7 +3710,7 @@ var ao = { exports: {} };
3696
3710
  tweeners: {
3697
3711
  "*": [function(t, i) {
3698
3712
  var r = this.createTween(t, i);
3699
- return ce(r.elem, t, I.exec(i), r), r;
3713
+ return ce(r.elem, t, H.exec(i), r), r;
3700
3714
  }]
3701
3715
  },
3702
3716
  tweener: function(t, i) {
@@ -4789,7 +4803,7 @@ var Fs = { exports: {} };
4789
4803
  (function(h) {
4790
4804
  c.exports = h(lo);
4791
4805
  })(function(h) {
4792
- var p = !1, E = !1, D = 0, q = 2e3, H = 0, L = h, B = document, $ = window, Le = L($), se = [];
4806
+ var p = !1, E = !1, D = 0, q = 2e3, I = 0, L = h, B = document, $ = window, Le = L($), se = [];
4793
4807
  function je() {
4794
4808
  var V = B.currentScript || function() {
4795
4809
  var e = B.getElementsByTagName("script");
@@ -4939,8 +4953,8 @@ var Fs = { exports: {} };
4939
4953
  var P = L.extend({}, this.detected);
4940
4954
  this.canhwscroll = P.hastransform && g.hwacceleration, this.ishwscroll = this.canhwscroll && e.haswrapper, this.isrtlmode ? this.isvertical ? this.hasreversehr = !(P.iswebkit || P.isie || P.isie11) : this.hasreversehr = !(P.iswebkit || P.isie && !P.isie10 && !P.isie11) : this.hasreversehr = !1, this.istouchcapable = !1, !P.cantouch && (P.hasw3ctouch || P.hasmstouch) ? this.istouchcapable = !0 : P.cantouch && !P.isios && !P.isandroid && (P.iswebkit || P.ismozilla) && (this.istouchcapable = !0), g.enablemouselockapi || (P.hasmousecapture = !1, P.haspointerlock = !1), this.debounced = function(f, m, k) {
4941
4955
  if (e) {
4942
- var I = e.delaylist[f] || !1;
4943
- I || (e.delaylist[f] = {
4956
+ var H = e.delaylist[f] || !1;
4957
+ H || (e.delaylist[f] = {
4944
4958
  h: ne(function() {
4945
4959
  e.delaylist[f].fn.call(e), e.delaylist[f] = !1;
4946
4960
  }, k)
@@ -4960,8 +4974,8 @@ var Fs = { exports: {} };
4960
4974
  }, this.scrollLeft = function(f) {
4961
4975
  return f === void 0 ? e.getScrollLeft() : e.setScrollLeft(f);
4962
4976
  };
4963
- var Ee = function(f, m, k, I, W, _, le) {
4964
- this.st = f, this.ed = m, this.spd = k, this.p1 = I || 0, this.p2 = W || 1, this.p3 = _ || 0, this.p4 = le || 1, this.ts = pe(), this.df = m - f;
4977
+ var Ee = function(f, m, k, H, W, _, le) {
4978
+ this.st = f, this.ed = m, this.spd = k, this.p1 = H || 0, this.p2 = W || 1, this.p3 = _ || 0, this.p4 = le || 1, this.ts = pe(), this.df = m - f;
4965
4979
  };
4966
4980
  Ee.prototype = {
4967
4981
  B2: function(f) {
@@ -5061,9 +5075,9 @@ var Fs = { exports: {} };
5061
5075
  thick: 5
5062
5076
  };
5063
5077
  function Ie(f, m, k) {
5064
- var I = f.css(m), W = parseFloat(I);
5078
+ var H = f.css(m), W = parseFloat(H);
5065
5079
  if (isNaN(W)) {
5066
- W = Zt[I] || 0;
5080
+ W = Zt[H] || 0;
5067
5081
  var _ = W == 3 ? k ? e.win.outerHeight() - e.win.innerHeight() : e.win.outerWidth() - e.win.innerWidth() : 1;
5068
5082
  return e.isie8 && W && (W += 1), _ ? W : 0;
5069
5083
  }
@@ -5081,10 +5095,10 @@ var Fs = { exports: {} };
5081
5095
  }
5082
5096
  var k = e.win.offset();
5083
5097
  if (!e.viewport) return k;
5084
- var I = e.viewport.offset();
5098
+ var H = e.viewport.offset();
5085
5099
  return {
5086
- top: k.top - I.top,
5087
- left: k.left - I.left
5100
+ top: k.top - H.top,
5101
+ left: k.left - H.left
5088
5102
  };
5089
5103
  }, this.updateScrollBar = function(f) {
5090
5104
  var m, k;
@@ -5095,10 +5109,10 @@ var Fs = { exports: {} };
5095
5109
  width: e.win.innerWidth() - (g.railpadding.left + g.railpadding.right)
5096
5110
  });
5097
5111
  else {
5098
- var I = e.getOffset();
5112
+ var H = e.getOffset();
5099
5113
  if (m = {
5100
- top: I.top,
5101
- left: I.left - (g.railpadding.left + g.railpadding.right)
5114
+ top: H.top,
5115
+ left: H.left - (g.railpadding.left + g.railpadding.right)
5102
5116
  }, m.top += Ie(e.win, "border-top-width", !0), m.left += e.rail.align ? e.win.outerWidth() - Ie(e.win, "border-right-width") - e.rail.width : Ie(e.win, "border-left-width"), k = g.railoffset, k && (k.top && (m.top += k.top), k.left && (m.left += k.left)), e.railslocked || e.rail.css({
5103
5117
  top: m.top,
5104
5118
  left: m.left,
@@ -5108,8 +5122,8 @@ var Fs = { exports: {} };
5108
5122
  left: e.rail.align == 1 ? m.left - 20 : m.left + e.rail.width + 4
5109
5123
  }), e.railh && !e.railslocked) {
5110
5124
  m = {
5111
- top: I.top,
5112
- left: I.left
5125
+ top: H.top,
5126
+ left: H.left
5113
5127
  }, k = g.railhoffset, k && (k.top && (m.top += k.top), k.left && (m.left += k.left));
5114
5128
  var W = e.railh.align ? m.top + Ie(e.win, "border-top-width", !0) + e.win.innerHeight() - e.railh.height : m.top + Ie(e.win, "border-top-width", !0), _ = m.left + Ie(e.win, "border-left-width");
5115
5129
  e.railh.css({
@@ -5120,13 +5134,13 @@ var Fs = { exports: {} };
5120
5134
  }
5121
5135
  }
5122
5136
  }, this.doRailClick = function(f, m, k) {
5123
- var I, W, _, le;
5124
- e.railslocked || (e.cancelEvent(f), "pageY" in f || (f.pageX = f.clientX + B.documentElement.scrollLeft, f.pageY = f.clientY + B.documentElement.scrollTop), m ? (I = k ? e.doScrollLeft : e.doScrollTop, _ = k ? (f.pageX - e.railh.offset().left - e.cursorwidth / 2) * e.scrollratio.x : (f.pageY - e.rail.offset().top - e.cursorheight / 2) * e.scrollratio.y, e.unsynched("relativexy"), I(_ | 0)) : (I = k ? e.doScrollLeftBy : e.doScrollBy, _ = k ? e.scroll.x : e.scroll.y, le = k ? f.pageX - e.railh.offset().left : f.pageY - e.rail.offset().top, W = k ? e.view.w : e.view.h, I(_ >= le ? W : -W)));
5137
+ var H, W, _, le;
5138
+ e.railslocked || (e.cancelEvent(f), "pageY" in f || (f.pageX = f.clientX + B.documentElement.scrollLeft, f.pageY = f.clientY + B.documentElement.scrollTop), m ? (H = k ? e.doScrollLeft : e.doScrollTop, _ = k ? (f.pageX - e.railh.offset().left - e.cursorwidth / 2) * e.scrollratio.x : (f.pageY - e.rail.offset().top - e.cursorheight / 2) * e.scrollratio.y, e.unsynched("relativexy"), H(_ | 0)) : (H = k ? e.doScrollLeftBy : e.doScrollBy, _ = k ? e.scroll.x : e.scroll.y, le = k ? f.pageX - e.railh.offset().left : f.pageY - e.rail.offset().top, W = k ? e.view.w : e.view.h, H(_ >= le ? W : -W)));
5125
5139
  }, e.newscrolly = e.newscrollx = 0, e.hasanimationframe = "requestAnimationFrame" in $, e.hascancelanimationframe = "cancelAnimationFrame" in $, e.hasborderbox = !1, this.init = function() {
5126
5140
  if (e.saved.css = [], P.isoperamini || P.isandroid && !("hidden" in B)) return !0;
5127
5141
  g.emulatetouch = g.emulatetouch || g.touchbehavior, e.hasborderbox = $.getComputedStyle && $.getComputedStyle(B.body)["box-sizing"] === "border-box";
5128
5142
  var f = { "overflow-y": "hidden" };
5129
- if ((P.isie11 || P.isie10) && (f["-ms-overflow-style"] = "none"), e.ishwscroll && (this.doc.css(P.transitionstyle, P.prefixstyle + "transform 0ms ease-out"), P.transitionend && e.bind(e.doc, P.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 > H && (H = e.zindex), e.isie && e.zindex === 0 && g.zindex == "auto" && (e.zindex = "auto"), !e.ispage || !P.isieold) {
5143
+ if ((P.isie11 || P.isie10) && (f["-ms-overflow-style"] = "none"), e.ishwscroll && (this.doc.css(P.transitionstyle, P.prefixstyle + "transform 0ms ease-out"), P.transitionend && e.bind(e.doc, P.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 > I && (I = e.zindex), e.isie && e.zindex === 0 && g.zindex == "auto" && (e.zindex = "auto"), !e.ispage || !P.isieold) {
5130
5144
  var m = e.docscroll;
5131
5145
  e.ispage && (m = e.haswrapper ? e.win : e.doc), e.css(m, f), e.ispage && (P.isie11 || P.isie) && e.css(L("html"), f), P.isios && !e.ispage && !e.haswrapper && e.css(J, {
5132
5146
  "-webkit-overflow-scrolling": "touch"
@@ -5145,17 +5159,17 @@ var Fs = { exports: {} };
5145
5159
  "-moz-border-radius": g.cursorborderradius,
5146
5160
  "border-radius": g.cursorborderradius
5147
5161
  }), k.addClass("nicescroll-cursors"), e.cursor = k;
5148
- var I = L(B.createElement("div"));
5149
- I.attr("id", e.id), I.addClass("nicescroll-rails nicescroll-rails-vr");
5162
+ var H = L(B.createElement("div"));
5163
+ H.attr("id", e.id), H.addClass("nicescroll-rails nicescroll-rails-vr");
5150
5164
  var W, _, le = ["left", "right", "top", "bottom"];
5151
5165
  for (var be in le)
5152
- _ = le[be], W = g.railpadding[_] || 0, W && I.css("padding-" + _, W + "px");
5153
- I.append(k), I.width = Math.max(parseFloat(g.cursorwidth), k.outerWidth()), I.css({
5154
- width: I.width + "px",
5166
+ _ = le[be], W = g.railpadding[_] || 0, W && H.css("padding-" + _, W + "px");
5167
+ H.append(k), H.width = Math.max(parseFloat(g.cursorwidth), k.outerWidth()), H.css({
5168
+ width: H.width + "px",
5155
5169
  zIndex: e.zindex,
5156
5170
  background: g.background,
5157
5171
  cursor: "default"
5158
- }), I.visibility = !0, I.scrollable = !0, I.align = g.railalign == "left" ? 0 : 1, e.rail = I, e.rail.drag = !1;
5172
+ }), H.visibility = !0, H.scrollable = !0, H.align = g.railalign == "left" ? 0 : 1, e.rail = H, e.rail.drag = !1;
5159
5173
  var Ae = !1;
5160
5174
  g.boxzoom && !e.ispage && !P.isieold && (Ae = B.createElement("div"), e.bind(Ae, "click", e.doZoom), e.bind(Ae, "mouseenter", function() {
5161
5175
  e.zoom.css("opacity", g.cursoropacitymax);
@@ -5190,11 +5204,11 @@ var Fs = { exports: {} };
5190
5204
  zIndex: e.zindex,
5191
5205
  background: g.background
5192
5206
  }), ce.append(k), ce.visibility = !0, ce.scrollable = !0, ce.align = g.railvalign == "top" ? 0 : 1, e.railh = ce, e.railh.drag = !1), e.ispage)
5193
- I.css({
5207
+ H.css({
5194
5208
  position: "fixed",
5195
5209
  top: 0,
5196
5210
  height: "100%"
5197
- }), I.css(I.align ? { right: 0 } : { left: 0 }), e.body.append(I), e.railh && (ce.css({
5211
+ }), H.css(H.align ? { right: 0 } : { left: 0 }), e.body.append(H), e.railh && (ce.css({
5198
5212
  position: "fixed",
5199
5213
  left: 0,
5200
5214
  width: "100%"
@@ -5207,11 +5221,11 @@ var Fs = { exports: {} };
5207
5221
  position: "absolute",
5208
5222
  top: 1,
5209
5223
  right: 0,
5210
- "margin-right": I.width + 4
5211
- }), Ye.append(e.zoom)), I.css({
5224
+ "margin-right": H.width + 4
5225
+ }), Ye.append(e.zoom)), H.css({
5212
5226
  position: "absolute",
5213
5227
  top: 0
5214
- }), I.css(I.align ? { right: 0 } : { left: 0 }), Ye.append(I), ce && (ce.css({
5228
+ }), H.css(H.align ? { right: 0 } : { left: 0 }), Ye.append(H), ce && (ce.css({
5215
5229
  position: "absolute",
5216
5230
  left: 0,
5217
5231
  bottom: 0
@@ -5221,11 +5235,11 @@ var Fs = { exports: {} };
5221
5235
  var ni = e.isfixed ? "fixed" : "absolute";
5222
5236
  e.isfixed || (e.viewport = e.getViewport(e.win[0])), e.viewport && (e.body = e.viewport, /fixed|absolute/.test(e.viewport.css("position")) || e.css(e.viewport, {
5223
5237
  position: "relative"
5224
- })), I.css({
5238
+ })), H.css({
5225
5239
  position: ni
5226
5240
  }), e.zoom && e.zoom.css({
5227
5241
  position: ni
5228
- }), e.updateScrollBar(), e.body.append(I), e.zoom && e.body.append(e.zoom), e.railh && (ce.css({
5242
+ }), e.updateScrollBar(), e.body.append(H), e.zoom && e.body.append(e.zoom), e.railh && (ce.css({
5229
5243
  position: ni
5230
5244
  }), e.body.append(ce));
5231
5245
  }
@@ -5700,11 +5714,11 @@ var Fs = { exports: {} };
5700
5714
  };
5701
5715
  }, this.onResize = function(f, m) {
5702
5716
  if (!e || !e.win) return !1;
5703
- var k = e.page.maxh, I = e.page.maxw, W = e.view.h, _ = e.view.w;
5717
+ var k = e.page.maxh, H = e.page.maxw, W = e.view.h, _ = e.view.w;
5704
5718
  if (e.view = {
5705
5719
  w: e.ispage ? e.win.width() : e.win[0].clientWidth,
5706
5720
  h: e.ispage ? e.win.height() : e.win[0].clientHeight
5707
- }, e.page = m || e.getContentSize(), e.page.maxh = Math.max(0, e.page.h - e.view.h), e.page.maxw = Math.max(0, e.page.w - e.view.w), e.page.maxh == k && e.page.maxw == I && e.view.w == _ && e.view.h == W) {
5721
+ }, e.page = m || e.getContentSize(), e.page.maxh = Math.max(0, e.page.h - e.view.h), e.page.maxw = Math.max(0, e.page.w - e.view.w), e.page.maxh == k && e.page.maxw == H && e.view.w == _ && e.view.h == W) {
5708
5722
  if (e.ispage)
5709
5723
  return e;
5710
5724
  var le = e.win.offset();
@@ -5735,7 +5749,7 @@ var Fs = { exports: {} };
5735
5749
  e && e.resize(), Pe = 0;
5736
5750
  }, f), e;
5737
5751
  };
5738
- function Ve(f, m, k, I) {
5752
+ function Ve(f, m, k, H) {
5739
5753
  e._bind(f, m, function(W) {
5740
5754
  W = W || $.event;
5741
5755
  var _ = {
@@ -5753,7 +5767,7 @@ var Fs = { exports: {} };
5753
5767
  }
5754
5768
  };
5755
5769
  return m == "mousewheel" ? (W.wheelDeltaX && (_.deltaX = -1 / 40 * W.wheelDeltaX), W.wheelDeltaY && (_.deltaY = -1 / 40 * W.wheelDeltaY), !_.deltaY && !_.deltaX && (_.deltaY = -1 / 40 * W.wheelDelta)) : _.deltaY = W.detail, k.call(f, _);
5756
- }, I);
5770
+ }, H);
5757
5771
  }
5758
5772
  this.jqbind = function(f, m, k) {
5759
5773
  e.events.push({
@@ -5763,12 +5777,12 @@ var Fs = { exports: {} };
5763
5777
  q: !0
5764
5778
  }), L(f).on(m, k);
5765
5779
  }, this.mousewheel = function(f, m, k) {
5766
- var I = "jquery" in f ? f[0] : f;
5780
+ var H = "jquery" in f ? f[0] : f;
5767
5781
  if ("onwheel" in B.createElement("div"))
5768
- e._bind(I, "wheel", m, k || !1);
5782
+ e._bind(H, "wheel", m, k || !1);
5769
5783
  else {
5770
5784
  var W = B.onmousewheel !== void 0 ? "mousewheel" : "DOMMouseScroll";
5771
- Ve(I, W, m, k || !1), W == "DOMMouseScroll" && Ve(I, "MozMousePixelScroll", m, k || !1);
5785
+ Ve(H, W, m, k || !1), W == "DOMMouseScroll" && Ve(H, "MozMousePixelScroll", m, k || !1);
5772
5786
  }
5773
5787
  };
5774
5788
  var kt = !1;
@@ -5799,7 +5813,7 @@ var Fs = { exports: {} };
5799
5813
  }, this.stopPropagation = function(f) {
5800
5814
  return f = f || $.event, f && (f.cancelBubble = !0), !1;
5801
5815
  };
5802
- this.delegate = function(f, m, k, I, W) {
5816
+ this.delegate = function(f, m, k, H, W) {
5803
5817
  var _ = se[m] || !1;
5804
5818
  _ || (_ = {
5805
5819
  a: [],
@@ -5809,25 +5823,25 @@ var Fs = { exports: {} };
5809
5823
  if (ce = be[Ye].call(le.target, le), ce === !1) return !1;
5810
5824
  return ce;
5811
5825
  }
5812
- }, e.bind(f, m, _.f, I, W), se[m] = _), e.ispage ? (_.a = [e.id].concat(_.a), _.l = [k].concat(_.l)) : (_.a.push(e.id), _.l.push(k));
5813
- }, this.undelegate = function(f, m, k, I, W) {
5826
+ }, e.bind(f, m, _.f, H, W), se[m] = _), e.ispage ? (_.a = [e.id].concat(_.a), _.l = [k].concat(_.l)) : (_.a.push(e.id), _.l.push(k));
5827
+ }, this.undelegate = function(f, m, k, H, W) {
5814
5828
  var _ = se[m] || !1;
5815
5829
  if (_ && _.l)
5816
5830
  for (var le = 0, be = _.l.length; le < be; le++)
5817
5831
  _.a[le] === e.id && (_.a.splice(le), _.l.splice(le), _.a.length === 0 && (e._unbind(f, m, _.l.f), se[m] = null));
5818
- }, this.bind = function(f, m, k, I, W) {
5832
+ }, this.bind = function(f, m, k, H, W) {
5819
5833
  var _ = "jquery" in f ? f[0] : f;
5820
- e._bind(_, m, k, I || !1, W || !1);
5821
- }, this._bind = function(f, m, k, I, W) {
5834
+ e._bind(_, m, k, H || !1, W || !1);
5835
+ }, this._bind = function(f, m, k, H, W) {
5822
5836
  e.events.push({
5823
5837
  e: f,
5824
5838
  n: m,
5825
5839
  f: k,
5826
- b: I,
5840
+ b: H,
5827
5841
  q: !1
5828
- }), kt && W ? f.addEventListener(m, k, { passive: !1, capture: I }) : f.addEventListener(m, k, I || !1);
5829
- }, this._unbind = function(f, m, k, I) {
5830
- se[m] ? e.undelegate(f, m, k, I) : f.removeEventListener(m, k, I);
5842
+ }), kt && W ? f.addEventListener(m, k, { passive: !1, capture: H }) : f.addEventListener(m, k, H || !1);
5843
+ }, this._unbind = function(f, m, k, H) {
5844
+ se[m] ? e.undelegate(f, m, k, H) : f.removeEventListener(m, k, H);
5831
5845
  }, this.unbindAll = function() {
5832
5846
  for (var f = 0; f < e.events.length; f++) {
5833
5847
  var m = e.events[f];
@@ -5860,12 +5874,12 @@ var Fs = { exports: {} };
5860
5874
  k[0].css(k[1], k[2] === void 0 ? "" : k[2]);
5861
5875
  }
5862
5876
  e.saved = !1, e.me.data("__nicescroll", "");
5863
- var I = L.nicescroll;
5864
- I.each(function(_) {
5877
+ var H = L.nicescroll;
5878
+ H.each(function(_) {
5865
5879
  if (this && this.id === e.id) {
5866
- delete I[_];
5867
- for (var le = ++_; le < I.length; le++, _++) I[_] = I[le];
5868
- I.length--, I.length && delete I[I.length];
5880
+ delete H[_];
5881
+ for (var le = ++_; le < H.length; le++, _++) H[_] = H[le];
5882
+ H.length--, H.length && delete H[H.length];
5869
5883
  }
5870
5884
  });
5871
5885
  for (var W in e)
@@ -5885,8 +5899,8 @@ var Fs = { exports: {} };
5885
5899
  var m = f.target ? f.target : f;
5886
5900
  if (m.nodeName == "OPTION") return !0;
5887
5901
  for (; m && m.nodeType == 1 && m !== this.me[0] && !/^BODY|HTML/.test(m.nodeName); ) {
5888
- var k = L(m), I = k.css("overflowY") || k.css("overflowX") || k.css("overflow") || "";
5889
- if (/scroll|auto/.test(I)) return m.clientHeight != m.scrollHeight;
5902
+ var k = L(m), H = k.css("overflowY") || k.css("overflowX") || k.css("overflow") || "";
5903
+ if (/scroll|auto/.test(H)) return m.clientHeight != m.scrollHeight;
5890
5904
  m = m.parentNode ? m.parentNode : !1;
5891
5905
  }
5892
5906
  return !1;
@@ -5894,12 +5908,12 @@ var Fs = { exports: {} };
5894
5908
  for (var m = f && f.parentNode ? f.parentNode : !1; m && m.nodeType == 1 && !/^BODY|HTML/.test(m.nodeName); ) {
5895
5909
  var k = L(m);
5896
5910
  if (/fixed|absolute/.test(k.css("position"))) return k;
5897
- var I = k.css("overflowY") || k.css("overflowX") || k.css("overflow") || "";
5898
- if (/scroll|auto/.test(I) && m.clientHeight != m.scrollHeight || k.getNiceScroll().length > 0) return k;
5911
+ var H = k.css("overflowY") || k.css("overflowX") || k.css("overflow") || "";
5912
+ if (/scroll|auto/.test(H) && m.clientHeight != m.scrollHeight || k.getNiceScroll().length > 0) return k;
5899
5913
  m = m.parentNode ? m.parentNode : !1;
5900
5914
  }
5901
5915
  return !1;
5902
- }, this.triggerScrollStart = function(f, m, k, I, W) {
5916
+ }, this.triggerScrollStart = function(f, m, k, H, W) {
5903
5917
  if (e.onscrollstart) {
5904
5918
  var _ = {
5905
5919
  type: "scrollstart",
@@ -5909,7 +5923,7 @@ var Fs = { exports: {} };
5909
5923
  },
5910
5924
  request: {
5911
5925
  x: k,
5912
- y: I
5926
+ y: H
5913
5927
  },
5914
5928
  end: {
5915
5929
  x: e.newscrollx,
@@ -5936,11 +5950,11 @@ var Fs = { exports: {} };
5936
5950
  }
5937
5951
  };
5938
5952
  var wi = 0, rt = 0, St = 0, ut = 1;
5939
- function G(f, m, k, I) {
5953
+ function G(f, m, k, H) {
5940
5954
  e.scrollrunning || (e.newscrolly = e.getScrollTop(), e.newscrollx = e.getScrollLeft(), St = pe());
5941
5955
  var W = pe() - St;
5942
5956
  if (St = pe(), W > 350 ? ut = 1 : ut += (2 - ut) / 10, f = f * ut | 0, m = m * ut | 0, f) {
5943
- if (I) {
5957
+ if (H) {
5944
5958
  if (f < 0) {
5945
5959
  if (e.getScrollLeft() >= e.page.maxw) return !0;
5946
5960
  } else if (e.getScrollLeft() <= 0) return !0;
@@ -5972,14 +5986,14 @@ var Fs = { exports: {} };
5972
5986
  }
5973
5987
  var Oe = !1;
5974
5988
  function xi(f, m, k) {
5975
- var I, W;
5989
+ var H, W;
5976
5990
  if (!k && Oe) return !0;
5977
- if (f.deltaMode === 0 ? (I = -(f.deltaX * (g.mousescrollstep / (18 * 3))) | 0, W = -(f.deltaY * (g.mousescrollstep / (18 * 3))) | 0) : f.deltaMode === 1 && (I = -(f.deltaX * g.mousescrollstep * 50 / 80) | 0, W = -(f.deltaY * g.mousescrollstep * 50 / 80) | 0), m && g.oneaxismousemode && I === 0 && W && (I = W, W = 0, k)) {
5978
- var _ = I < 0 ? e.getScrollLeft() >= e.page.maxw : e.getScrollLeft() <= 0;
5979
- _ && (W = I, I = 0);
5991
+ if (f.deltaMode === 0 ? (H = -(f.deltaX * (g.mousescrollstep / (18 * 3))) | 0, W = -(f.deltaY * (g.mousescrollstep / (18 * 3))) | 0) : f.deltaMode === 1 && (H = -(f.deltaX * g.mousescrollstep * 50 / 80) | 0, W = -(f.deltaY * g.mousescrollstep * 50 / 80) | 0), m && g.oneaxismousemode && H === 0 && W && (H = W, W = 0, k)) {
5992
+ var _ = H < 0 ? e.getScrollLeft() >= e.page.maxw : e.getScrollLeft() <= 0;
5993
+ _ && (W = H, H = 0);
5980
5994
  }
5981
- e.isrtlmode && (I = -I);
5982
- var le = G(I, W, k, !0);
5995
+ e.isrtlmode && (H = -H);
5996
+ var le = G(H, W, k, !0);
5983
5997
  if (le)
5984
5998
  k && (Oe = !0);
5985
5999
  else
@@ -5994,8 +6008,8 @@ var Fs = { exports: {} };
5994
6008
  return e.railh && e.railh.scrollable ? e.onmousewheelhr(f) : !0;
5995
6009
  var m = pe(), k = !1;
5996
6010
  if (g.preservenativescrolling && e.checkarea + 600 < m && (e.nativescrollingarea = e.isScrollable(f), k = !0), e.checkarea = m, e.nativescrollingarea) return !0;
5997
- var I = xi(f, !1, k);
5998
- return I && (e.checkarea = 0), I;
6011
+ var H = xi(f, !1, k);
6012
+ return H && (e.checkarea = 0), H;
5999
6013
  }, this.onmousewheelhr = function(f) {
6000
6014
  if (!e.wheelprevented) {
6001
6015
  if (e.railslocked || !e.railh.scrollable) return !0;
@@ -6015,11 +6029,11 @@ var Fs = { exports: {} };
6015
6029
  var k = e.getScrollLeft();
6016
6030
  e.doScrollPos(k, f, m);
6017
6031
  }, this.doScrollPos = function(f, m, k) {
6018
- var I = f > e.page.maxw ? e.page.maxw : f;
6019
- I < 0 && (I = 0);
6032
+ var H = f > e.page.maxw ? e.page.maxw : f;
6033
+ H < 0 && (H = 0);
6020
6034
  var W = m > e.page.maxh ? e.page.maxh : m;
6021
6035
  W < 0 && (W = 0), e.synched("scroll", function() {
6022
- e.setScrollTop(W), e.setScrollLeft(I);
6036
+ e.setScrollTop(W), e.setScrollLeft(H);
6023
6037
  });
6024
6038
  }, this.cancelScroll = function() {
6025
6039
  };
@@ -6028,8 +6042,8 @@ var Fs = { exports: {} };
6028
6042
  this.resetTransition = function() {
6029
6043
  ri = "", e.doc.css(P.prefixstyle + "transition-duration", "0ms");
6030
6044
  }, this.prepareTransition = function(f, m) {
6031
- var k = m ? f : e.getTransitionSpeed(f), I = k + "ms";
6032
- return ri !== I && (ri = I, e.doc.css(P.prefixstyle + "transition-duration", I)), k;
6045
+ var k = m ? f : e.getTransitionSpeed(f), H = k + "ms";
6046
+ return ri !== H && (ri = H, e.doc.css(P.prefixstyle + "transition-duration", H)), k;
6033
6047
  }, this.doScrollLeft = function(f, m) {
6034
6048
  var k = e.scrollrunning ? e.newscrolly : e.getScrollTop();
6035
6049
  e.doScrollPos(f, k, m);
@@ -6052,8 +6066,8 @@ var Fs = { exports: {} };
6052
6066
  this.running = !1;
6053
6067
  }
6054
6068
  }, this.doScrollPos = function(f, m, k) {
6055
- var I = e.getScrollTop(), W = e.getScrollLeft();
6056
- if (((e.newscrolly - I) * (m - I) < 0 || (e.newscrollx - W) * (f - W) < 0) && e.cancelScroll(), g.bouncescroll ? (m < 0 ? m = m / 2 | 0 : m > e.page.maxh && (m = e.page.maxh + (m - e.page.maxh) / 2 | 0), f < 0 ? f = f / 2 | 0 : f > e.page.maxw && (f = e.page.maxw + (f - e.page.maxw) / 2 | 0)) : (m < 0 ? m = 0 : m > e.page.maxh && (m = e.page.maxh), f < 0 ? f = 0 : f > e.page.maxw && (f = e.page.maxw)), e.scrollrunning && f == e.newscrollx && m == e.newscrolly) return !1;
6069
+ var H = e.getScrollTop(), W = e.getScrollLeft();
6070
+ if (((e.newscrolly - H) * (m - H) < 0 || (e.newscrollx - W) * (f - W) < 0) && e.cancelScroll(), g.bouncescroll ? (m < 0 ? m = m / 2 | 0 : m > e.page.maxh && (m = e.page.maxh + (m - e.page.maxh) / 2 | 0), f < 0 ? f = f / 2 | 0 : f > e.page.maxw && (f = e.page.maxw + (f - e.page.maxw) / 2 | 0)) : (m < 0 ? m = 0 : m > e.page.maxh && (m = e.page.maxh), f < 0 ? f = 0 : f > e.page.maxw && (f = e.page.maxw)), e.scrollrunning && f == e.newscrollx && m == e.newscrolly) return !1;
6057
6071
  e.newscrolly = m, e.newscrollx = f;
6058
6072
  var _ = e.getScrollTop(), le = e.getScrollLeft(), be = {};
6059
6073
  be.x = f - le, be.y = m - _;
@@ -6078,22 +6092,22 @@ var Fs = { exports: {} };
6078
6092
  var k = e.scrollrunning ? e.newscrollx : e.getScrollLeft();
6079
6093
  e.doScrollPos(k, f, m);
6080
6094
  }, this.doScrollPos = function(f, m, k) {
6081
- var I = e.getScrollTop(), W = e.getScrollLeft();
6082
- ((e.newscrolly - I) * (m - I) < 0 || (e.newscrollx - W) * (f - W) < 0) && e.cancelScroll();
6095
+ var H = e.getScrollTop(), W = e.getScrollLeft();
6096
+ ((e.newscrolly - H) * (m - H) < 0 || (e.newscrollx - W) * (f - W) < 0) && e.cancelScroll();
6083
6097
  var _ = !1;
6084
6098
  if ((!e.bouncescroll || !e.rail.visibility) && (m < 0 ? (m = 0, _ = !0) : m > e.page.maxh && (m = e.page.maxh, _ = !0)), (!e.bouncescroll || !e.railh.visibility) && (f < 0 ? (f = 0, _ = !0) : f > e.page.maxw && (f = e.page.maxw, _ = !0)), e.scrollrunning && e.newscrolly === m && e.newscrollx === f) return !0;
6085
- e.newscrolly = m, e.newscrollx = f, e.dst = {}, e.dst.x = f - W, e.dst.y = m - I, e.dst.px = W, e.dst.py = I;
6099
+ e.newscrolly = m, e.newscrollx = f, e.dst = {}, e.dst.x = f - W, e.dst.y = m - H, e.dst.px = W, e.dst.py = H;
6086
6100
  var le = Math.sqrt(e.dst.x * e.dst.x + e.dst.y * e.dst.y) | 0, be = e.getTransitionSpeed(le);
6087
6101
  e.bzscroll = {};
6088
6102
  var Ae = _ ? 1 : 0.58;
6089
- e.bzscroll.x = new Ee(W, e.newscrollx, be, 0, 0, Ae, 1), e.bzscroll.y = new Ee(I, e.newscrolly, be, 0, 0, Ae, 1), pe();
6103
+ e.bzscroll.x = new Ee(W, e.newscrollx, be, 0, 0, Ae, 1), e.bzscroll.y = new Ee(H, e.newscrolly, be, 0, 0, Ae, 1), pe();
6090
6104
  var ce = function() {
6091
6105
  if (e.scrollrunning) {
6092
6106
  var Ye = e.bzscroll.y.getPos();
6093
6107
  e.setScrollLeft(e.bzscroll.x.getNow()), e.setScrollTop(e.bzscroll.y.getNow()), Ye <= 1 ? e.timer = ne(ce) : (e.scrollrunning = !1, e.timer = 0, e.triggerScrollEnd());
6094
6108
  }
6095
6109
  };
6096
- e.scrollrunning || (e.triggerScrollStart(W, I, f, m, be), e.scrollrunning = !0, e.timer = ne(ce));
6110
+ e.scrollrunning || (e.triggerScrollStart(W, H, f, m, be), e.scrollrunning = !0, e.timer = ne(ce));
6097
6111
  }, this.cancelScroll = function() {
6098
6112
  return e.timer && Q(e.timer), e.timer = 0, e.bzscroll = !1, e.scrollrunning = !1, e;
6099
6113
  };
@@ -6117,8 +6131,8 @@ var Fs = { exports: {} };
6117
6131
  style: {}
6118
6132
  };
6119
6133
  var m = ["position", "top", "left", "zIndex", "backgroundColor", "marginTop", "marginBottom", "marginLeft", "marginRight"], k = e.win[0].style;
6120
- for (var I in m) {
6121
- var W = m[I];
6134
+ for (var H in m) {
6135
+ var W = m[H];
6122
6136
  e.zoomrestore.style[W] = k[W] !== void 0 ? k[W] : "";
6123
6137
  }
6124
6138
  e.zoomrestore.style.width = e.win.css("width"), e.zoomrestore.style.height = e.win.css("height"), e.zoomrestore.padding = {
@@ -6128,14 +6142,14 @@ var Fs = { exports: {} };
6128
6142
  position: P.isios4 ? "absolute" : "fixed",
6129
6143
  top: 0,
6130
6144
  left: 0,
6131
- zIndex: H + 100,
6145
+ zIndex: I + 100,
6132
6146
  margin: 0
6133
6147
  });
6134
6148
  var _ = e.win.css("backgroundColor");
6135
6149
  return (_ === "" || /transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(_)) && e.win.css("backgroundColor", "#fff"), e.rail.css({
6136
- zIndex: H + 101
6150
+ zIndex: I + 101
6137
6151
  }), e.zoom.css({
6138
- zIndex: H + 102
6152
+ zIndex: I + 102
6139
6153
  }), e.zoom.css("backgroundPosition", "0 -18px"), e.resizeZoom(), e.onzoomin && e.onzoomin.call(e), e.cancelEvent(f);
6140
6154
  }
6141
6155
  }, this.doZoomOut = function(f) {
@@ -6296,8 +6310,8 @@ function ha(c, l) {
6296
6310
  const h = qn(c);
6297
6311
  if ("IntersectionObserver" in window) {
6298
6312
  let p = [], E = 0, D = 0;
6299
- ti(c).find(Or).each((q, H) => {
6300
- const L = H.firstElementChild, B = H.lastElementChild;
6313
+ ti(c).find(Or).each((q, I) => {
6314
+ const L = I.firstElementChild, B = I.lastElementChild;
6301
6315
  if (!L || !B)
6302
6316
  return;
6303
6317
  let $ = 1;
@@ -6310,7 +6324,7 @@ function ha(c, l) {
6310
6324
  );
6311
6325
  Me && ($ = parseFloat(Me[1]));
6312
6326
  } else {
6313
- const Me = H.closest(
6327
+ const Me = I.closest(
6314
6328
  "#page-scaling-container"
6315
6329
  );
6316
6330
  if (Me) {
@@ -6320,7 +6334,7 @@ function ha(c, l) {
6320
6334
  ));
6321
6335
  }
6322
6336
  }
6323
- const { topAdjust: se, leftAdjust: je, thumbWidth: ne } = co($, H), Q = new IntersectionObserver(
6337
+ const { topAdjust: se, leftAdjust: je, thumbWidth: ne } = co($, I), Q = new IntersectionObserver(
6324
6338
  (Me, ee) => {
6325
6339
  Me.forEach((pe) => {
6326
6340
  var Ot;
@@ -6382,7 +6396,7 @@ function ha(c, l) {
6382
6396
  ), p = []);
6383
6397
  });
6384
6398
  },
6385
- { root: H }
6399
+ { root: I }
6386
6400
  );
6387
6401
  E++, Q.observe(L), L !== B && (E++, Q.observe(B));
6388
6402
  });
@@ -6405,14 +6419,14 @@ function co(c, l) {
6405
6419
  if (!D || !D.classList.contains("bloom-translationGroup"))
6406
6420
  return { topAdjust: h, leftAdjust: p, thumbWidth: E };
6407
6421
  if (_s(l)) {
6408
- const H = window.getComputedStyle(D), L = H.getPropertyValue("padding-top") || "0", B = H.getPropertyValue("padding-left") || "0";
6422
+ const I = window.getComputedStyle(D), L = I.getPropertyValue("padding-top") || "0", B = I.getPropertyValue("padding-left") || "0";
6409
6423
  h = parseFloat(L) * (c - 1), p = parseFloat(B) * (c - 1);
6410
6424
  } else {
6411
- const H = D.parentElement;
6412
- if (!H)
6425
+ const I = D.parentElement;
6426
+ if (!I)
6413
6427
  return { topAdjust: h, leftAdjust: p, thumbWidth: E };
6414
6428
  E = `${12 * c}px`;
6415
- const L = H == null ? void 0 : H.offsetTop, B = H.offsetLeft + H.offsetWidth;
6429
+ const L = I == null ? void 0 : I.offsetTop, B = I.offsetLeft + I.offsetWidth;
6416
6430
  h = -(L * (c - 1)), p = -(B * (c - 1));
6417
6431
  }
6418
6432
  }
@@ -6538,16 +6552,16 @@ const yt = class yt {
6538
6552
  let p = l.firstElementChild, E = null;
6539
6553
  if (!p || !p.classList.contains("bloom-animationBackground")) {
6540
6554
  p = document.createElement("div");
6541
- for (let H = 0; H < this.animatableCanvas.classList.length; H++)
6555
+ for (let I = 0; I < this.animatableCanvas.classList.length; I++)
6542
6556
  p.classList.add(
6543
- this.animatableCanvas.classList[H]
6557
+ this.animatableCanvas.classList[I]
6544
6558
  );
6545
6559
  p.classList.add("bloom-animationBackground");
6546
6560
  const D = this.animatableCanvas.cloneNode(
6547
6561
  !0
6548
6562
  ), q = () => {
6549
- const H = this.animatableCanvas.style.backgroundImage;
6550
- H ? D.style.backgroundImage = H : requestAnimationFrame(q);
6563
+ const I = this.animatableCanvas.style.backgroundImage;
6564
+ I ? D.style.backgroundImage = I : requestAnimationFrame(q);
6551
6565
  };
6552
6566
  D.hasAttribute("data-imgsizebasedon") || requestAnimationFrame(q), E = document.createElement("div"), E.classList.add(yt.wrapperClassName), E.appendChild(D), E.style.visibility = "hidden", p.appendChild(E), l.insertBefore(p, l.firstChild), this.applyCanvasAspectRatioToAnimationWrapper(
6553
6567
  l,
@@ -6611,11 +6625,11 @@ const yt = class yt {
6611
6625
  l.getAttribute("data-aspectRatio")
6612
6626
  ), p = l.parentElement, E = p.clientWidth, D = p.clientHeight, q = E / D;
6613
6627
  if (h < q) {
6614
- const H = D * h;
6615
- l.style.height = "100%", l.style.width = `${H}px`, l.style.left = `${(E - H) / 2}px`;
6628
+ const I = D * h;
6629
+ l.style.height = "100%", l.style.width = `${I}px`, l.style.left = `${(E - I) / 2}px`;
6616
6630
  } else {
6617
- const H = E / h;
6618
- l.style.width = "100%", l.style.height = `${H}px`, l.style.top = `${(D - H) / 2}px`;
6631
+ const I = E / h;
6632
+ l.style.width = "100%", l.style.height = `${I}px`, l.style.top = `${(D - I) / 2}px`;
6619
6633
  }
6620
6634
  l.style.overflow = "hidden", l.style.visibility = "visible", this.placeCanvasByScale(
6621
6635
  l,