bloom-player 2.20.1 → 2.20.3-alpha.1

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
@@ -12,128 +12,128 @@ class mi {
12
12
  this.handlers.slice(0).forEach((d) => d(c));
13
13
  }
14
14
  }
15
- var ns = /* @__PURE__ */ ((s) => (s[s.NewPage = 0] = "NewPage", s[s.NewPageMediaPaused = 1] = "NewPageMediaPaused", s[s.VideoPlaying = 2] = "VideoPlaying", s[s.VideoPaused = 3] = "VideoPaused", s[s.AudioPlaying = 4] = "AudioPlaying", s[s.AudioPaused = 5] = "AudioPaused", s[s.MediaFinished = 6] = "MediaFinished", s))(ns || {});
15
+ var ss = /* @__PURE__ */ ((s) => (s[s.NewPage = 0] = "NewPage", s[s.NewPageMediaPaused = 1] = "NewPageMediaPaused", s[s.VideoPlaying = 2] = "VideoPlaying", s[s.VideoPaused = 3] = "VideoPaused", s[s.AudioPlaying = 4] = "AudioPlaying", s[s.AudioPaused = 5] = "AudioPaused", s[s.MediaFinished = 6] = "MediaFinished", s))(ss || {});
16
16
  let ei = 0;
17
17
  function Kt(s) {
18
18
  ei = s;
19
19
  }
20
- let xr;
21
- function ta(s) {
22
- xr = s;
20
+ let Tr;
21
+ function ra(s) {
22
+ Tr = s;
23
23
  }
24
- let Ln;
25
- function ia(s) {
26
- Ln = s;
24
+ let Pn;
25
+ function na(s) {
26
+ Pn = s;
27
27
  }
28
- let Nn = () => {
28
+ let Dn = () => {
29
29
  };
30
- function ra(s) {
31
- Nn = s ?? (() => {
30
+ function oa(s) {
31
+ Dn = s ?? (() => {
32
32
  });
33
33
  }
34
- let Tr = "";
35
- function os(s) {
36
- Tr = s;
34
+ let Sr = "";
35
+ function as(s) {
36
+ Sr = s;
37
37
  }
38
- function na(s) {
39
- os(Pn(s));
38
+ function sa(s) {
39
+ as(Mn(s));
40
40
  }
41
- function Pn(s) {
41
+ function Mn(s) {
42
42
  const c = s.lastIndexOf("/");
43
43
  return s.substring(0, c);
44
44
  }
45
- function Nr() {
46
- return Tr || Pn(window.location.href);
45
+ function Pr() {
46
+ return Sr || Mn(window.location.href);
47
47
  }
48
- function ss(s) {
49
- const c = s.map((d, h) => ({ tabindex: as(d), index: h, item: d }));
48
+ function ls(s) {
49
+ const c = s.map((d, h) => ({ tabindex: cs(d), index: h, item: d }));
50
50
  return c.sort((d, h) => !d.tabindex || !h.tabindex || d.tabindex === h.tabindex ? d.index - h.index : parseInt(d.tabindex, 10) - parseInt(h.tabindex, 10)), c.map((d) => d.item);
51
51
  }
52
- function as(s) {
52
+ function cs(s) {
53
53
  let c = s;
54
54
  for (; c && !c.classList.contains("bloom-translationGroup"); )
55
55
  c = c.parentElement;
56
56
  return c && c.getAttribute("tabindex") || "999";
57
57
  }
58
- const ls = "bloom-highlightSegment", Dn = "ui-enableHighlight", Pr = "ui-disableHighlight", vr = "ui-suppressHighlight";
59
- let Pi = 3;
60
- function oa(s) {
61
- Pi = s;
58
+ const us = "bloom-highlightSegment", zn = "ui-enableHighlight", Dr = "ui-disableHighlight", yr = "ui-suppressHighlight";
59
+ let Di = 3;
60
+ function aa(s) {
61
+ Di = s;
62
62
  }
63
- const Di = "audio-sentence", Mn = "bloom-imageDescription";
63
+ const Mi = "audio-sentence", In = "bloom-imageDescription";
64
64
  let Nt = null, di = 0;
65
- function cs(s) {
65
+ function fs(s) {
66
66
  s !== Nt && (di && clearTimeout(di), di = setTimeout(() => {
67
67
  di = 0;
68
68
  }, 3e3), Nt = s);
69
69
  }
70
- function us() {
70
+ function ds() {
71
71
  return Nt;
72
72
  }
73
- let Dr, Mi, Jt = "", Qe = [], Lt = [];
74
- const zi = new mi(), Sr = new mi(), wn = new mi(), sa = new mi(), Ii = new mi();
75
- let pi = 0, zn = !0;
76
- function aa(s) {
77
- zn = s;
73
+ let Mr, zi, Jt = "", et = [], Lt = [];
74
+ const Ii = new mi(), Er = new mi(), Tn = new mi(), la = new mi(), Hi = new mi();
75
+ let pi = 0, Hn = !0;
76
+ function ca(s) {
77
+ Hn = s;
78
78
  }
79
- let Hi = null;
80
- function fs(s, c) {
79
+ let Oi = null;
80
+ function hs(s, c) {
81
81
  if (!s && !Nt)
82
82
  return;
83
83
  const d = s ?? Nt;
84
- gi(Or(d, c), d);
84
+ gi(Br(d, c), d);
85
85
  }
86
86
  function gi(s, c) {
87
- cs(c), Mi = s;
87
+ fs(c), zi = s;
88
88
  const d = Pt();
89
- d && (s.length == 0 && d.pause(), d.currentTime = 0), ++pi, ds(s), Qe = ss(s).reverse();
90
- const h = Qe.length;
89
+ d && (s.length == 0 && d.pause(), d.currentTime = 0), ++pi, ps(s), et = ls(s).reverse();
90
+ const h = et.length;
91
91
  if (h === 0) {
92
- Sr && Sr?.raise(c), Kt(
92
+ Er && Er?.raise(c), Kt(
93
93
  4
94
94
  /* AudioPlaying */
95
- ), zi && (Dr = window.setTimeout(() => {
95
+ ), Ii && (Mr = window.setTimeout(() => {
96
96
  Kt(
97
97
  6
98
98
  /* MediaFinished */
99
- ), zi?.raise(c);
100
- }, Pi * 1e3));
99
+ ), Ii?.raise(c);
100
+ }, Di * 1e3));
101
101
  return;
102
102
  }
103
- const T = Qe[h - 1];
104
- $n(), h >= 2 && Vn(Qe[h - 2]), Wn(T, !0), Kt(
103
+ const T = et[h - 1];
104
+ Yn(), h >= 2 && Xn(et[h - 2]), _n(T, !0), Kt(
105
105
  4
106
106
  /* AudioPlaying */
107
- ), Bn();
107
+ ), Rn();
108
108
  }
109
- const In = /[ \u00a0\u200b]{3,}/, Ci = new RegExp(In, "g");
110
- function ds(s) {
109
+ const On = /[ \u00a0\u200b]{3,}/, Ci = new RegExp(On, "g");
110
+ function ps(s) {
111
111
  s.forEach((c) => {
112
- Hr(
112
+ Or(
113
113
  "span[id]:not(.bloom-linebreak)",
114
114
  c,
115
115
  !0
116
116
  ).forEach((h) => {
117
- Hn(h), h.innerText.match(In) && On(h, h);
117
+ Bn(h), h.innerText.match(On) && qn(h, h);
118
118
  });
119
119
  });
120
120
  }
121
- function Hn(s) {
122
- s.classList.remove(Pr), s.classList.remove(Dn), Array.from(s.children).forEach((c) => {
123
- Hn(c);
121
+ function Bn(s) {
122
+ s.classList.remove(Dr), s.classList.remove(zn), Array.from(s.children).forEach((c) => {
123
+ Bn(c);
124
124
  });
125
125
  }
126
- function On(s, c) {
127
- if (!(s.nodeType === Node.ELEMENT_NODE && s.classList.contains(Pr)))
126
+ function qn(s, c) {
127
+ if (!(s.nodeType === Node.ELEMENT_NODE && s.classList.contains(Dr)))
128
128
  if (s.nodeType === Node.TEXT_NODE) {
129
- hs(s, c);
129
+ gs(s, c);
130
130
  return;
131
131
  } else
132
132
  Array.from(s.childNodes).forEach((h) => {
133
- On(h, c);
133
+ qn(h, c);
134
134
  });
135
135
  }
136
- function hs(s, c) {
136
+ function gs(s, c) {
137
137
  if (s.nodeType !== Node.TEXT_NODE)
138
138
  throw new Error(
139
139
  "Invalid argument to fixMultiSpaceInTextNode: node must be a TextNode"
@@ -154,42 +154,42 @@ function hs(s, c) {
154
154
  });
155
155
  const T = [];
156
156
  if (d.length === 0)
157
- T.push(yr(s.nodeValue));
157
+ T.push(br(s.nodeValue));
158
158
  else {
159
159
  let z = 0;
160
160
  for (let D = 0; D < d.length; ++D) {
161
- const L = d[D], q = s.nodeValue.slice(
161
+ const k = d[D], q = s.nodeValue.slice(
162
162
  z,
163
- L.startIndex
163
+ k.startIndex
164
164
  );
165
- if (z = L.endIndex, q && T.push(yr(q)), T.push(document.createTextNode(L.text)), D === d.length - 1) {
166
- const _ = s.nodeValue.slice(L.endIndex);
167
- _ && T.push(yr(_));
165
+ if (z = k.endIndex, q && T.push(br(q)), T.push(document.createTextNode(k.text)), D === d.length - 1) {
166
+ const _ = s.nodeValue.slice(k.endIndex);
167
+ _ && T.push(br(_));
168
168
  }
169
169
  }
170
170
  }
171
- const A = s;
172
- if (A.parentNode && T && T.length > 0) {
171
+ const L = s;
172
+ if (L.parentNode && T && T.length > 0) {
173
173
  for (let z = 0; z < T.length; ++z) {
174
174
  const D = T[z];
175
- A.parentNode.insertBefore(D, A);
175
+ L.parentNode.insertBefore(D, L);
176
176
  }
177
- A.parentNode.removeChild(A), c.classList.add(Pr);
177
+ L.parentNode.removeChild(L), c.classList.add(Dr);
178
178
  }
179
179
  }
180
- function yr(s) {
180
+ function br(s) {
181
181
  const c = document.createElement("span");
182
- return c.classList.add(Dn), c.appendChild(document.createTextNode(s)), c;
182
+ return c.classList.add(zn), c.appendChild(document.createTextNode(s)), c;
183
183
  }
184
- function Bn() {
184
+ function Rn() {
185
185
  if (ei === 4) {
186
186
  const s = Pt();
187
187
  if (s) {
188
- const c = us().querySelector(
188
+ const c = ds().querySelector(
189
189
  `#${Jt}`
190
190
  );
191
191
  if (!c) {
192
- Fi();
192
+ _i();
193
193
  return;
194
194
  }
195
195
  Lt = [];
@@ -198,12 +198,12 @@ function Bn() {
198
198
  );
199
199
  if (d) {
200
200
  const z = c.querySelectorAll(
201
- `span.${ls}`
202
- ), D = d.split(" "), L = Math.min(
201
+ `span.${us}`
202
+ ), D = d.split(" "), k = Math.min(
203
203
  D.length,
204
204
  z.length
205
205
  );
206
- for (let q = L - 1; q >= 0; --q) {
206
+ for (let q = k - 1; q >= 0; --q) {
207
207
  const _ = Number(D[q]);
208
208
  isNaN(_) || Lt.push([
209
209
  z.item(q),
@@ -212,36 +212,36 @@ function Bn() {
212
212
  }
213
213
  }
214
214
  const h = c;
215
- h && Ii && Ii?.raise(
216
- qn(h)
217
- ), Er = !1;
215
+ h && Hi && Hi?.raise(
216
+ jn(h)
217
+ ), Cr = !1;
218
218
  const T = s.play();
219
- ++pi, Hi = (/* @__PURE__ */ new Date()).getTime(), Mr(pi);
220
- const A = Qe.length - 2;
221
- A >= 0 && Vn(
222
- Qe[A]
223
- ), Rn(T);
219
+ ++pi, Oi = (/* @__PURE__ */ new Date()).getTime(), zr(pi);
220
+ const L = et.length - 2;
221
+ L >= 0 && Xn(
222
+ et[L]
223
+ ), Wn(T);
224
224
  }
225
225
  }
226
226
  }
227
- function qn(s) {
228
- return s.closest("." + Mn) !== null;
227
+ function jn(s) {
228
+ return s.closest("." + In) !== null;
229
229
  }
230
- function Rn(s, c) {
230
+ function Wn(s, c) {
231
231
  s && s.catch && s.catch((d) => {
232
232
  console.log("could not play sound: " + d + " " + "unknown"), d && d.toString().includes(
233
233
  "The play() request was interrupted by a call to pause()."
234
234
  ) && console.log(
235
235
  "See comment in narration.ts for possibly useful information regarding this error."
236
- ), d.name === "NotAllowedError" && wn && wn?.raise();
236
+ ), d.name === "NotAllowedError" && Tn && Tn?.raise();
237
237
  });
238
238
  }
239
- function Mr(s, c = 0) {
239
+ function zr(s, c = 0) {
240
240
  const d = Lt.length;
241
241
  if (d <= 0)
242
242
  return;
243
- const h = Lt[d - 1], T = h[0], A = h[1];
244
- Fn({
243
+ const h = Lt[d - 1], T = h[0], L = h[1];
244
+ Vn({
245
245
  newElement: T,
246
246
  shouldScrollToElement: !0,
247
247
  disableHighlightIfNoAudio: !1
@@ -250,12 +250,12 @@ function Mr(s, c = 0) {
250
250
  "bloom-audio-player"
251
251
  ).currentTime;
252
252
  D <= 0 && (D = c);
253
- const L = Math.max(A - D, 0.1);
253
+ const k = Math.max(L - D, 0.1);
254
254
  setTimeout(() => {
255
- jn(s);
256
- }, L * 1e3);
255
+ Fn(s);
256
+ }, k * 1e3);
257
257
  }
258
- function jn(s) {
258
+ function Fn(s) {
259
259
  if (s !== pi || ei === 5)
260
260
  return;
261
261
  const c = Lt.length;
@@ -266,17 +266,17 @@ function jn(s) {
266
266
  );
267
267
  if (d.ended || d.error)
268
268
  return;
269
- const h = d.currentTime, A = Lt[c - 1][1];
270
- if (h && h < A) {
271
- const z = A - h;
269
+ const h = d.currentTime, L = Lt[c - 1][1];
270
+ if (h && h < L) {
271
+ const z = L - h;
272
272
  setTimeout(() => {
273
- jn(s);
273
+ Fn(s);
274
274
  }, z * 1e3);
275
275
  return;
276
276
  }
277
- Lt.pop(), Mr(s, A);
277
+ Lt.pop(), zr(s, L);
278
278
  }
279
- function zr(s = document.body) {
279
+ function Ir(s = document.body) {
280
280
  const c = Array.from(
281
281
  s.ownerDocument.getElementsByClassName("ui-audioCurrent")
282
282
  );
@@ -285,8 +285,8 @@ function zr(s = document.body) {
285
285
  const d = s.ownerDocument.getElementsByClassName("ui-audioCurrentImg")[0];
286
286
  d && d.classList.remove("ui-audioCurrentImg");
287
287
  }
288
- function Wn(s, c, d) {
289
- ms(s), Fn({
288
+ function _n(s, c, d) {
289
+ ys(s), Vn({
290
290
  newElement: s,
291
291
  shouldScrollToElement: !0,
292
292
  // Always true in bloom-player version
@@ -294,49 +294,49 @@ function Wn(s, c, d) {
294
294
  oldElement: d
295
295
  });
296
296
  }
297
- function Fn({
297
+ function Vn({
298
298
  newElement: s,
299
299
  shouldScrollToElement: c,
300
300
  disableHighlightIfNoAudio: d,
301
301
  oldElement: h
302
302
  }) {
303
303
  try {
304
- ps(s);
304
+ ms(s);
305
305
  } catch (D) {
306
306
  console.error(D);
307
307
  }
308
308
  if (h === s)
309
309
  return;
310
- zr(h || s);
311
- const T = Pt(), A = T.error !== null;
312
- !A && d && (!T.paused && !T.ended || (s.classList.add(vr), Ai && T.removeEventListener(
310
+ Ir(h || s);
311
+ const T = Pt(), L = T.error !== null;
312
+ !L && d && (!T.paused && !T.ended || (s.classList.add(yr), Ai && T.removeEventListener(
313
313
  "playing",
314
314
  Ai
315
315
  ), ki && T.removeEventListener(
316
316
  "error",
317
317
  ki
318
318
  ), Ai = () => {
319
- s.classList.remove(vr);
319
+ s.classList.remove(yr);
320
320
  }, ki = () => {
321
- s.classList.remove("ui-audioCurrent"), s.classList.remove(vr);
321
+ s.classList.remove("ui-audioCurrent"), s.classList.remove(yr);
322
322
  }, T.addEventListener(
323
323
  "playing",
324
324
  Ai
325
325
  ), T.addEventListener(
326
326
  "error",
327
327
  ki
328
- ))), A || s.classList.add("ui-audioCurrent");
328
+ ))), L || s.classList.add("ui-audioCurrent");
329
329
  const z = s.closest(".bloom-translationGroup");
330
- if (z && z.classList.contains(Mn)) {
330
+ if (z && z.classList.contains(In)) {
331
331
  const D = z.closest(
332
332
  ".bloom-imageContainer, .bloom-canvas"
333
333
  );
334
334
  D && D.classList.add("ui-audioCurrentImg");
335
335
  }
336
336
  }
337
- function ps(s) {
338
- if (Ln?.() || di) {
339
- const d = gs(s);
337
+ function ms(s) {
338
+ if (Pn?.() || di) {
339
+ const d = vs(s);
340
340
  d && (d.scrollTop = 0);
341
341
  return;
342
342
  }
@@ -344,7 +344,7 @@ function ps(s) {
344
344
  if (window.getComputedStyle(s.parentElement).position !== "static") {
345
345
  const d = s;
346
346
  c = document.createElement("div"), c.style.position = "absolute", c.style.top = d.offsetTop + "px";
347
- const h = d.getBoundingClientRect(), T = d.parentElement, A = T?.getBoundingClientRect(), z = A.width / T.offsetWidth, D = (h.left - A.left) / z;
347
+ const h = d.getBoundingClientRect(), T = d.parentElement, L = T?.getBoundingClientRect(), z = L.width / T.offsetWidth, D = (h.left - L.left) / z;
348
348
  c.style.left = D + d.offsetWidth / 2 + "px", c.style.height = d.offsetHeight + "px", c.style.width = "0", s.parentElement?.insertBefore(c, s);
349
349
  }
350
350
  c.scrollIntoView({
@@ -359,24 +359,24 @@ function ps(s) {
359
359
  // which typically won't move things at all horizontally
360
360
  }), c !== s && c.parentElement?.removeChild(c);
361
361
  }
362
- function gs(s) {
362
+ function vs(s) {
363
363
  return s.classList.contains("bloom-editable") ? s : s.closest(".bloom-editable");
364
364
  }
365
- function ms(s) {
366
- const c = _n(s), d = c ? c.id : s.id;
367
- ys(d);
365
+ function ys(s) {
366
+ const c = $n(s), d = c ? c.id : s.id;
367
+ ws(d);
368
368
  }
369
- function _n(s) {
370
- const c = vs(s);
369
+ function $n(s) {
370
+ const c = bs(s);
371
371
  return !c || c.length === 0 ? null : c[0];
372
372
  }
373
- function vs(s) {
373
+ function bs(s) {
374
374
  const c = [];
375
375
  if (s)
376
- if (s.classList.contains(Di))
376
+ if (s.classList.contains(Mi))
377
377
  c.push(s);
378
378
  else {
379
- const d = s.getElementsByClassName(Di);
379
+ const d = s.getElementsByClassName(Mi);
380
380
  for (let h = 0; h < d.length; ++h) {
381
381
  const T = d.item(h);
382
382
  T && c.push(T);
@@ -384,200 +384,199 @@ function vs(s) {
384
384
  }
385
385
  return c;
386
386
  }
387
- function ys(s) {
388
- (!Jt || Jt !== s) && (Jt = s, ws());
387
+ function ws(s) {
388
+ (!Jt || Jt !== s) && (Jt = s, Ts());
389
389
  }
390
- let Oi = "", Bi = "", Ai = null, ki = null;
391
- function bs() {
390
+ let Bi = "", qi = "", Ai = null, ki = null;
391
+ function xs() {
392
392
  let s = document.getElementById(
393
393
  "bloom-audio-preload"
394
394
  );
395
395
  return s || (s = document.createElement("audio"), s.id = "bloom-audio-preload", document.body.appendChild(s)), s;
396
396
  }
397
- function Vn(s) {
398
- const c = _n(s), d = c ? c.id : s.id;
399
- if (Oi === d) return;
400
- const h = Xn(d) + "?nocache=" + (/* @__PURE__ */ new Date()).getTime() + "&optional=true";
401
- Oi = d, Bi = h;
402
- const T = bs();
397
+ function Xn(s) {
398
+ const c = $n(s), d = c ? c.id : s.id;
399
+ if (Bi === d) return;
400
+ const h = Un(d) + "?nocache=" + (/* @__PURE__ */ new Date()).getTime() + "&optional=true";
401
+ Bi = d, qi = h;
402
+ const T = xs();
403
403
  T.src = h, T.load();
404
404
  }
405
- function $n() {
406
- Oi = "", Bi = "";
405
+ function Yn() {
406
+ Bi = "", qi = "";
407
407
  }
408
- function ws() {
408
+ function Ts() {
409
409
  const s = Pt();
410
410
  if (!s)
411
411
  return;
412
- s.currentTime > 0 && !s.paused && !s.ended && Ir();
413
- const c = Xn(Jt);
414
- Nn(c);
412
+ s.currentTime > 0 && !s.paused && !s.ended && Hr();
413
+ const c = Un(Jt);
414
+ Dn(c);
415
415
  let d;
416
- Oi === Jt && Bi ? (d = Bi, $n()) : d = c + "?nocache=" + (/* @__PURE__ */ new Date()).getTime() + "&optional=true", s.setAttribute("src", d);
416
+ Bi === Jt && qi ? (d = qi, Yn()) : d = c + "?nocache=" + (/* @__PURE__ */ new Date()).getTime() + "&optional=true", s.setAttribute("src", d);
417
417
  }
418
- function Xn(s) {
419
- return Nr() + "/audio/" + s + ".mp3";
418
+ function Un(s) {
419
+ return Pr() + "/audio/" + s + ".mp3";
420
420
  }
421
421
  function Pt() {
422
- return Ss("bloom-audio-player", (c) => {
423
- c.addEventListener("ended", xs), c.addEventListener("error", Es);
422
+ return Cs("bloom-audio-player", (c) => {
423
+ c.addEventListener("ended", Ss), c.addEventListener("error", As);
424
424
  });
425
425
  }
426
- function xs() {
427
- Fi();
426
+ function Ss() {
427
+ _i();
428
428
  }
429
- function la() {
430
- ei === 4 && Fi(!1);
429
+ function ua() {
430
+ ei === 4 && _i(!1);
431
431
  }
432
- function Fi(s = !0) {
433
- if (Ii && Ii?.raise(!1), Ir(), Qe && Qe.length > 0) {
434
- const c = Qe.pop(), d = Qe.length;
432
+ function _i(s = !0) {
433
+ if (Hi && Hi?.raise(!1), Hr(), et && et.length > 0) {
434
+ const c = et.pop(), d = et.length;
435
435
  if (d > 0 && s) {
436
- const h = Qe[d - 1];
437
- Wn(h, !0), Bn();
436
+ const h = et[d - 1];
437
+ _n(h, !0), Rn();
438
438
  } else
439
- Ts(), zr(c), Pt().pause();
439
+ Es(), Ir(c), Pt().pause();
440
440
  }
441
441
  }
442
- function Ts() {
443
- Qe = [], Lt = [], zr(), zi?.raise(Nt), Sr?.raise();
442
+ function Es() {
443
+ et = [], Lt = [], Ir(), Ii?.raise(Nt), Er?.raise();
444
444
  }
445
- function Ir() {
446
- if (!Hi || !xr)
445
+ function Hr() {
446
+ if (!Oi || !Tr)
447
447
  return;
448
- const c = ((/* @__PURE__ */ new Date()).getTime() - Hi) / 1e3;
449
- xr(c);
448
+ const c = ((/* @__PURE__ */ new Date()).getTime() - Oi) / 1e3;
449
+ Tr(c);
450
450
  }
451
- function Ss(s, c) {
451
+ function Cs(s, c) {
452
452
  let d = document.querySelector(
453
453
  "#" + s
454
454
  );
455
455
  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
456
  }
457
- let Er = !1;
458
- function Es() {
459
- if (Er) {
457
+ let Cr = !1;
458
+ function As() {
459
+ if (Cr) {
460
460
  console.log("Already got error playing, not handling again");
461
461
  return;
462
462
  }
463
- Er = !0, console.log("Error playing, handling"), setTimeout(() => {
464
- Fi();
463
+ Cr = !0, console.log("Error playing, handling"), setTimeout(() => {
464
+ _i();
465
465
  }, 100);
466
466
  }
467
- function Hr(s, c, d = !1) {
467
+ function Or(s, c, d = !1) {
468
468
  const h = [].slice.call(
469
469
  (c || document).querySelectorAll(s)
470
470
  );
471
- return d && c && c.matches(s) && h.push(c), zn ? h : h.filter((T) => !qn(T));
471
+ return d && c && c.matches(s) && h.push(c), Hn ? h : h.filter((T) => !jn(T));
472
472
  }
473
- function Cs(s, c) {
474
- var d = Hr(".bloom-editable", s).filter(
473
+ function ks(s, c) {
474
+ var d = Or(".bloom-editable", s).filter(
475
475
  (h) => window.getComputedStyle(h).display !== "none"
476
476
  );
477
477
  return c && (d = d.filter((h) => !c.contains(h))), d;
478
478
  }
479
- function As(s, c) {
480
- return Cs(s || Nt, c);
479
+ function Ls(s, c) {
480
+ return ks(s || Nt, c);
481
481
  }
482
- function Or(s, c) {
482
+ function Br(s, c) {
483
483
  return [].concat.apply(
484
484
  [],
485
- As(s, c).map(
486
- (d) => Hr(".audio-sentence", d, !0)
485
+ Ls(s, c).map(
486
+ (d) => Or(".audio-sentence", d, !0)
487
487
  )
488
488
  );
489
489
  }
490
- function ca(s) {
491
- return !!Or(s).length;
490
+ function fa(s) {
491
+ return !!Br(s).length;
492
492
  }
493
- function ua() {
493
+ function da() {
494
494
  if (ei !== 4) {
495
495
  if (Kt(
496
496
  4
497
497
  /* AudioPlaying */
498
- ), Mi.length && Pt())
499
- if (Qe.length) {
500
- Rn(Pt().play()), Hi = (/* @__PURE__ */ new Date()).getTime(), Mr(pi);
498
+ ), zi.length && Pt())
499
+ if (et.length) {
500
+ Wn(Pt().play()), Oi = (/* @__PURE__ */ new Date()).getTime(), zr(pi);
501
501
  return;
502
502
  } else {
503
- fs(null);
503
+ hs(null);
504
504
  return;
505
505
  }
506
- zi?.raise(Nt);
506
+ Ii?.raise(Nt);
507
507
  }
508
508
  }
509
- function fa() {
510
- ei !== 5 && (ks(), Kt(
509
+ function ha() {
510
+ ei !== 5 && (Ns(), Kt(
511
511
  5
512
512
  /* AudioPaused */
513
513
  ));
514
514
  }
515
- function ks() {
515
+ function Ns() {
516
516
  const s = Pt();
517
- clearTimeout(Dr), Mi && Mi.length && s && (s.currentTime > 0 && !s.paused && !s.ended && Ir(), s.pause());
517
+ clearTimeout(Mr), zi && zi.length && s && (s.currentTime > 0 && !s.paused && !s.ended && Hr(), s.pause());
518
518
  }
519
- function da(s) {
519
+ function pa(s) {
520
520
  let c = 0;
521
- return Or(s).forEach((d) => {
521
+ return Br(s).forEach((d) => {
522
522
  const h = d.getAttribute("data-duration");
523
523
  h && (c += parseFloat(h));
524
- }), c < Pi && (c = Pi), c;
524
+ }), c < Di && (c = Di), c;
525
525
  }
526
- function ha() {
527
- clearTimeout(Dr), Br();
526
+ function ga() {
527
+ clearTimeout(Mr), qr();
528
528
  }
529
529
  let Gt = 0, Zt;
530
530
  const fi = /* @__PURE__ */ new WeakMap();
531
- function Br() {
531
+ function qr() {
532
532
  Gt++, Zt && (Zt.pause(), Zt.currentTime = 0, Zt = void 0);
533
533
  }
534
- function Ls(s) {
534
+ function Ps(s) {
535
535
  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
536
  }
537
- function Ns(s, c = () => !0, d = () => Yn(s)) {
538
- let h = !1;
539
- const T = () => {
540
- if (h || !s.paused)
537
+ const Li = /* @__PURE__ */ new WeakMap();
538
+ function Rr(s) {
539
+ Li.get(s)?.();
540
+ }
541
+ function Ds(s, c = () => !0, d = () => Gn(s)) {
542
+ if (!s.paused)
543
+ return;
544
+ Rr(s);
545
+ const h = s.muted;
546
+ let T, L = !1;
547
+ const z = () => {
548
+ L || (L = !0, Li.get(s) === D && Li.delete(s), window.clearTimeout(T), s.removeEventListener("playing", k), s.muted = h);
549
+ }, D = () => {
550
+ z(), s.removeAttribute("poster");
551
+ };
552
+ Li.set(s, D);
553
+ const k = () => {
554
+ if (Ri(s), !c()) {
555
+ z(), s.removeAttribute("poster");
541
556
  return;
542
- const A = () => {
543
- if (window.clearTimeout(z), qi(s), !c())
544
- return;
545
- const L = () => {
546
- c() && s.pause();
547
- }, q = s.requestVideoFrameCallback;
548
- q ? q.call(s, () => {
549
- L();
550
- }) : setTimeout(() => {
551
- L();
552
- }, 4);
553
- };
554
- s.addEventListener("playing", A, { once: !0 });
555
- const z = window.setTimeout(() => {
556
- s.removeEventListener("playing", A);
557
- }, 1e3);
558
- qi(s);
559
- const D = s.play();
560
- D && D.catch && D.catch((L) => {
561
- window.clearTimeout(z), s.removeEventListener("playing", A), L?.name === "NotAllowedError" && (s.removeAttribute("poster"), d());
562
- });
557
+ }
558
+ const _ = () => {
559
+ L || (c() && s.pause(), z(), s.removeAttribute("poster"));
560
+ }, ye = s.requestVideoFrameCallback;
561
+ ye ? ye.call(s, () => {
562
+ _();
563
+ }) : setTimeout(() => {
564
+ _();
565
+ }, 4);
563
566
  };
564
- if (s.readyState >= HTMLMediaElement.HAVE_CURRENT_DATA)
565
- T();
566
- else {
567
- let A;
568
- const z = () => {
569
- s.removeEventListener("play", A), T();
570
- };
571
- A = () => {
572
- h = !0, s.removeEventListener("loadeddata", z), s.removeEventListener("play", A);
573
- }, s.addEventListener("play", A, { once: !0 }), s.addEventListener("loadeddata", z, { once: !0 });
574
- }
567
+ s.addEventListener("playing", k, { once: !0 }), T = window.setTimeout(() => {
568
+ c() && !s.paused && s.pause(), z(), s.removeAttribute("poster");
569
+ }, 3e3), Ri(s), s.muted = !0;
570
+ const q = s.play();
571
+ q && q.catch && q.catch((_) => {
572
+ z(), _?.name === "NotAllowedError" && (s.removeAttribute("poster"), d());
573
+ });
575
574
  }
576
- function qr(s, c) {
575
+ function jr(s, c) {
577
576
  const d = ++Gt;
578
577
  hi(s, c, d);
579
578
  }
580
- function Ps(s, c) {
579
+ function Ms(s, c) {
581
580
  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;
582
581
  }
583
582
  function hi(s, c, d) {
@@ -588,17 +587,17 @@ function hi(s, c, d) {
588
587
  return;
589
588
  }
590
589
  const h = s[0];
591
- if (Zt = h, Ps(h))
592
- fi.delete(h), xn(h), hi(s.slice(1), c, d);
590
+ if (Zt = h, Ms(h))
591
+ fi.delete(h), Sn(h), hi(s.slice(1), c, d);
593
592
  else {
594
- Ms(h), qi(h), Kt(
593
+ Is(h), Ri(h), Kt(
595
594
  2
596
595
  /* VideoPlaying */
597
- ), h.currentTime = 0;
598
- let T = !1, A;
596
+ ), Rr(h), h.currentTime = 0;
597
+ let T = !1, L;
599
598
  const z = 250, D = () => {
600
- A !== void 0 && (window.clearTimeout(A), A = void 0);
601
- }, L = () => {
599
+ L !== void 0 && (window.clearTimeout(L), L = void 0);
600
+ }, k = () => {
602
601
  const V = h.duration;
603
602
  if (!Number.isFinite(V) || V <= 0)
604
603
  return;
@@ -607,101 +606,107 @@ function hi(s, c, d) {
607
606
  V * 1e3 / G + z,
608
607
  z
609
608
  );
610
- A = window.setTimeout(() => {
609
+ L = window.setTimeout(() => {
611
610
  q();
612
611
  }, Ee);
613
612
  }, q = () => {
614
- T || (T = !0, D(), h.removeEventListener("ended", _), h.removeEventListener("pause", we), h.removeEventListener("loadedmetadata", Q), d === Gt && hi(s.slice(1), c, d));
613
+ T || (T = !0, D(), h.removeEventListener("ended", _), h.removeEventListener("pause", ye), h.removeEventListener("loadedmetadata", Q), d === Gt && hi(s.slice(1), c, d));
615
614
  }, _ = () => {
616
615
  q();
617
- }, we = () => {
616
+ }, ye = () => {
618
617
  const V = h.duration;
619
618
  !Number.isFinite(V) || V <= 0 || h.currentTime >= V - 0.05 && q();
620
619
  }, Q = () => {
621
- L();
620
+ k();
622
621
  };
623
- h.addEventListener("ended", _, { once: !0 }), h.addEventListener("pause", we), h.addEventListener("loadedmetadata", Q), h.play().then(() => {
624
- d === Gt && (fi.delete(h), qi(h), L());
622
+ h.addEventListener("ended", _, { once: !0 }), h.addEventListener("pause", ye), h.addEventListener("loadedmetadata", Q), h.play().then(() => {
623
+ d === Gt && (fi.delete(h), Ri(h), k());
625
624
  }).catch((V) => {
626
625
  if (d !== Gt)
627
626
  return;
628
- if (D(), h.removeEventListener("ended", _), h.removeEventListener("pause", we), h.removeEventListener("loadedmetadata", Q), V?.name === "NotAllowedError") {
627
+ if (D(), h.removeEventListener("ended", _), h.removeEventListener("pause", ye), h.removeEventListener("loadedmetadata", Q), V?.name === "NotAllowedError") {
629
628
  console.debug(
630
629
  "Video autoplay blocked until user interaction"
631
- ), Yn(h);
630
+ ), Gn(h);
632
631
  return;
633
632
  }
634
633
  const G = fi.get(h) ?? 0;
635
- if (Ls(V) && G < 2) {
634
+ if (Ps(V) && G < 2) {
636
635
  fi.set(h, G + 1), window.setTimeout(() => {
637
636
  hi(s, c, d);
638
637
  }, 50);
639
638
  return;
640
639
  }
641
- console.error("Video play failed", V), fi.delete(h), xn(h), hi(s.slice(1), c, d);
640
+ console.error("Video play failed", V), fi.delete(h), Sn(h), hi(s.slice(1), c, d);
642
641
  });
643
642
  }
644
643
  }
645
- const Ds = "Sorry, this video cannot be played in this browser.";
646
- function xn(s) {
644
+ const zs = "Sorry, this video cannot be played in this browser.";
645
+ function Sn(s) {
647
646
  const c = s.parentElement;
648
647
  if (c && c.getElementsByClassName("video-error-message").length === 0) {
649
648
  const h = c.ownerDocument.createElement("div");
650
- h.className = "video-error-message normal-style", h.textContent = Ds, 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);
649
+ h.className = "video-error-message normal-style", h.textContent = zs, 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);
651
650
  }
652
651
  }
653
- function Yn(s) {
652
+ function Gn(s) {
654
653
  (s.closest(".bloom-videoContainer") || s.parentElement)?.classList.add("autoplayBlocked");
655
654
  }
656
- function qi(s) {
655
+ function Ri(s) {
657
656
  (s.closest(".bloom-videoContainer") || s.parentElement)?.classList.remove("autoplayBlocked");
658
657
  }
659
- function Ms(s) {
658
+ function Is(s) {
660
659
  const c = s.parentElement;
661
660
  if (c) {
662
661
  const d = c.getElementsByClassName("video-error-message");
663
662
  for (; d.length > 0; ) c.removeChild(d[0]);
664
663
  }
665
664
  }
666
- const Ri = ".bloom-textOverPicture, .bloom-canvas-element";
667
- let Cr = [], ji = /* @__PURE__ */ new Map(), pt, Un, Wi = [];
668
- const zs = (s) => {
669
- Wi = [], s.querySelectorAll("[data-draggable-id]").forEach((c) => {
670
- Wi.push({
665
+ const ji = ".bloom-textOverPicture, .bloom-canvas-element";
666
+ let Ar = [], Wi = /* @__PURE__ */ new Map(), Qe, Zn, Fi = /* @__PURE__ */ new Map();
667
+ const Hs = (s) => {
668
+ Fi = /* @__PURE__ */ new Map(), s.querySelectorAll("[data-draggable-id]").forEach((c) => {
669
+ Fi.set(c.getAttribute("data-draggable-id"), {
671
670
  x: c.style.left,
672
- y: c.style.top,
673
- elt: c
671
+ y: c.style.top
674
672
  });
675
673
  });
676
- }, Rr = () => {
677
- Wi.forEach((s) => {
678
- s.elt.style.left = s.x, s.elt.style.top = s.y, s.elt.classList.remove("bloom-draggedToTarget");
674
+ }, Wr = (s) => {
675
+ s.querySelectorAll("[data-draggable-id]").forEach((c) => {
676
+ const d = Fi.get(
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
680
  });
680
681
  };
681
- function Is(s) {
682
+ function Os(s) {
682
683
  if (s.getAttribute("data-activity") !== "drag-letter-to-target")
683
684
  return;
684
- const c = Array.from(s.querySelectorAll("[data-draggable-id]"));
685
+ const c = Array.from(
686
+ s.querySelectorAll("[data-draggable-id]")
687
+ );
685
688
  c.shift(), c.forEach((d) => {
686
689
  const h = !!d.getElementsByClassName(
687
690
  "bloom-visibility-code-on"
688
691
  )[0]?.innerText.trim();
689
692
  d.classList.toggle("bloom-unused-in-lang", !h);
690
- const T = $r(d);
693
+ const T = Yr(d);
691
694
  T && T.classList.toggle("bloom-unused-in-lang", !h);
692
695
  });
693
696
  }
694
- function jr(s) {
697
+ function Fr(s) {
695
698
  return s.closest("#page-scaling-container") !== null;
696
699
  }
697
- function pa(s, c) {
698
- pt = s, Is(s), Un = c, go(
700
+ function ma(s, c) {
701
+ Qe = s, Os(s), Zn = c, vo(
699
702
  s.getAttribute("data-show-answers-in-targets") === "true" || s.getAttribute("data-show-target-as-shadow") === "true",
700
703
  s
701
- ), zs(s), Array.from(
702
- s.getElementsByClassName("bloom-change-page-button")
704
+ ), Hs(s), Array.from(
705
+ s.getElementsByClassName(
706
+ "bloom-change-page-button"
707
+ )
703
708
  ).forEach(
704
- (Q) => Q.addEventListener("click", eo)
709
+ (Q) => Q.addEventListener("click", io)
705
710
  ), Array.from(document.getElementsByClassName("bloom-canvas")).forEach(
706
711
  (Q) => {
707
712
  Q.title = "";
@@ -712,160 +717,191 @@ function pa(s, c) {
712
717
  }
713
718
  ), Array.from(s.getElementsByTagName("img")).forEach((Q) => {
714
719
  Q.setAttribute("draggable", "false");
715
- }), Cr = [], ji = /* @__PURE__ */ new Map();
716
- const h = Array.from(s.querySelectorAll("[data-draggable-id]")), T = [];
720
+ }), Ar = [], Wi = /* @__PURE__ */ new Map();
721
+ const h = Array.from(
722
+ s.querySelectorAll("[data-draggable-id]")
723
+ ), T = [];
717
724
  h.forEach((Q) => {
718
725
  const _e = Q.getAttribute("data-draggable-id"), V = s.querySelector(
719
726
  `[data-target-of="${_e}"]`
720
727
  );
721
728
  if (V) {
722
729
  const G = V.offsetLeft, Ee = V.offsetTop;
723
- Cr.push({
730
+ Ar.push({
724
731
  x: G,
725
732
  y: Ee,
726
733
  width: V.offsetWidth,
727
734
  height: V.offsetHeight
728
735
  }), T.push(V);
729
736
  }
730
- ji.set(Q, { x: Q.offsetLeft, y: Q.offsetTop }), Q.style.touchAction = "none", Q.addEventListener("pointerdown", ro, { capture: !0 });
737
+ Wi.set(Q, { x: Q.offsetLeft, y: Q.offsetTop }), Q.style.touchAction = "none", Q.addEventListener("pointerdown", oo, { capture: !0 });
731
738
  }), Array.from(s.getElementsByTagName("video")).forEach((Q) => {
732
- Q.closest(Ri)?.hasAttribute("data-draggable-id") && (Q.classList.add("bloom-ui-no-controls"), Q.addEventListener("pointerdown", Gn), Ns(Q));
739
+ Q.closest(ji)?.hasAttribute("data-draggable-id") && (Q.classList.add("bloom-ui-no-controls"), Q.addEventListener("pointerdown", Kn), Ds(Q));
733
740
  });
734
741
  const z = h.concat(T);
735
742
  Array.from(
736
- s.getElementsByClassName("bloom-visibility-code-on")
743
+ s.getElementsByClassName(
744
+ "bloom-visibility-code-on"
745
+ )
737
746
  ).filter((Q) => {
738
- var _e = Q.closest(Ri);
747
+ var _e = Q.closest(ji);
739
748
  return _e ? z.indexOf(_e) < 0 : !0;
740
749
  }).forEach((Q) => {
741
- Q.addEventListener("pointerdown", Kn);
750
+ Q.addEventListener("pointerdown", Qn);
742
751
  });
743
- const L = Array.from(
744
- s.getElementsByClassName("check-button")
752
+ const k = Array.from(
753
+ s.getElementsByClassName(
754
+ "check-button"
755
+ )
745
756
  ), q = Array.from(
746
- s.getElementsByClassName("try-again-button")
757
+ s.getElementsByClassName(
758
+ "try-again-button"
759
+ )
747
760
  ), _ = Array.from(
748
- s.getElementsByClassName("show-correct-button")
761
+ s.getElementsByClassName(
762
+ "show-correct-button"
763
+ )
749
764
  );
750
- L.forEach((Q) => {
751
- Q.addEventListener("click", so);
765
+ k.forEach((Q) => {
766
+ Q.addEventListener("click", lo);
752
767
  }), q.forEach((Q) => {
753
- Q.addEventListener("click", ao);
768
+ Q.addEventListener("click", co);
754
769
  }), _.forEach((Q) => {
755
- Q.addEventListener("click", io);
756
- }), Array.from(s.querySelectorAll("[data-sound]")).forEach((Q) => {
757
- Q.addEventListener("click", Zn);
758
- }), Hs(s), Rs(s);
770
+ Q.addEventListener("click", no);
771
+ }), Array.from(
772
+ s.querySelectorAll("[data-sound]")
773
+ ).forEach((Q) => {
774
+ Q.addEventListener("click", Jn);
775
+ }), Bs(s), Ws(s);
759
776
  }
760
- const Hs = (s) => {
761
- Array.from(s.getElementsByClassName("drag-item-order-sentence")).forEach(
777
+ const Bs = (s) => {
778
+ Array.from(
779
+ s.getElementsByClassName(
780
+ "drag-item-order-sentence"
781
+ )
782
+ ).forEach(
762
783
  (c) => {
763
784
  const d = c.getElementsByClassName(
764
785
  "bloom-content1 bloom-visibility-code-on"
765
786
  )[0], h = d?.textContent?.trim();
766
787
  if (!h) return;
767
- const T = h.split(" "), A = Bs(T), z = s.ownerDocument.createElement("div");
768
- z.classList.add("drag-item-random-sentence"), z.setAttribute("data-answer", h), Qn(s, A, 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);
788
+ const T = h.split(" "), L = Rs(T), z = s.ownerDocument.createElement("div");
789
+ 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);
769
790
  }
770
791
  );
771
- }, Gn = (s) => {
772
- s.currentTarget.play();
792
+ }, Kn = (s) => {
793
+ const c = s.currentTarget;
794
+ Rr(c), c.play();
773
795
  };
774
- function ga(s) {
775
- Br(), Rr(), Wi = [], Array.from(
776
- s.getElementsByClassName("bloom-change-page-button")
796
+ function va(s) {
797
+ s === Qe && qr(), Wr(s), s === Qe && Fi.clear(), Array.from(
798
+ s.getElementsByClassName(
799
+ "bloom-change-page-button"
800
+ )
777
801
  ).forEach(
778
- (L) => L.removeEventListener("click", eo)
779
- ), Array.from(s.getElementsByClassName("bloom-visibility-code-on")).forEach(
780
- (L) => {
781
- L.removeEventListener("pointerdown", Kn);
782
- }
783
- ), s.querySelectorAll("[data-draggable-id]").forEach((L) => {
784
- L.removeEventListener("pointerdown", ro, { capture: !0 });
785
- }), Array.from(s.getElementsByTagName("img")).forEach((L) => {
786
- L.removeAttribute("draggable");
787
- }), Array.from(s.getElementsByTagName("video")).forEach((L) => {
788
- L.removeEventListener("pointerdown", Gn), L.classList.remove("bloom-ui-no-controls");
802
+ (k) => k.removeEventListener("click", io)
803
+ ), Array.from(
804
+ s.getElementsByClassName(
805
+ "bloom-visibility-code-on"
806
+ )
807
+ ).forEach((k) => {
808
+ k.removeEventListener("pointerdown", Qn);
809
+ }), s.querySelectorAll("[data-draggable-id]").forEach((k) => {
810
+ k.removeEventListener("pointerdown", oo, { capture: !0 });
811
+ }), Array.from(s.getElementsByTagName("img")).forEach((k) => {
812
+ k.removeAttribute("draggable");
813
+ }), Array.from(s.getElementsByTagName("video")).forEach((k) => {
814
+ k.removeEventListener("pointerdown", Kn), k.classList.remove("bloom-ui-no-controls");
789
815
  });
790
816
  const h = Array.from(
791
- s.getElementsByClassName("check-button")
817
+ s.getElementsByClassName(
818
+ "check-button"
819
+ )
792
820
  ), T = Array.from(
793
- s.getElementsByClassName("try-again-button")
794
- ), A = Array.from(
795
- s.getElementsByClassName("show-correct-button")
821
+ s.getElementsByClassName(
822
+ "try-again-button"
823
+ )
824
+ ), L = Array.from(
825
+ s.getElementsByClassName(
826
+ "show-correct-button"
827
+ )
796
828
  );
797
- h.forEach((L) => {
798
- L.removeEventListener("click", so);
799
- }), A.forEach((L) => {
800
- L.removeEventListener("click", io);
801
- }), T.forEach((L) => {
802
- L.removeEventListener("click", ao);
803
- }), Array.from(s.querySelectorAll("[data-sound]")).forEach((L) => {
804
- L.removeEventListener("click", Zn);
829
+ h.forEach((k) => {
830
+ k.removeEventListener("click", lo);
831
+ }), L.forEach((k) => {
832
+ k.removeEventListener("click", no);
833
+ }), T.forEach((k) => {
834
+ k.removeEventListener("click", co);
805
835
  }), Array.from(
806
- s.getElementsByClassName("drag-item-random-sentence")
807
- ).forEach((L) => {
808
- L.parentElement?.removeChild(L);
809
- }), qs(s);
836
+ s.querySelectorAll("[data-sound]")
837
+ ).forEach((k) => {
838
+ k.removeEventListener("click", Jn);
839
+ }), Array.from(
840
+ s.getElementsByClassName(
841
+ "drag-item-random-sentence"
842
+ )
843
+ ).forEach((k) => {
844
+ k.parentElement?.removeChild(k);
845
+ }), js(s);
810
846
  const D = s.closest(".swiper-slide") !== null;
811
- go(!D, s);
847
+ vo(!D, s);
812
848
  }
813
- const Zn = (s) => {
849
+ const Jn = (s) => {
814
850
  const c = s.currentTarget, d = c.getAttribute("data-sound");
815
- d && lo(c, d), s.preventDefault(), s.stopPropagation();
816
- }, Kn = (s) => {
851
+ d && uo(c, d), s.preventDefault(), s.stopPropagation();
852
+ }, Qn = (s) => {
817
853
  const c = s.currentTarget;
818
- Jn(c);
819
- }, Jn = (s) => {
820
- const c = Os(s);
854
+ eo(c);
855
+ }, eo = (s) => {
856
+ const c = qs(s);
821
857
  gi(c, s.closest(".bloom-page"));
822
858
  };
823
- function Os(s) {
824
- const c = _i(s);
825
- return Wr(c);
859
+ function qs(s) {
860
+ const c = Vi(s);
861
+ return _r(c);
826
862
  }
827
- function Qn(s, c, d, h, T) {
828
- const A = Array.from(h?.classList)?.find((D) => D.endsWith("-style")) ?? "Normal-style", z = h?.getAttribute("lang");
863
+ function to(s, c, d, h, T) {
864
+ const L = Array.from(h?.classList)?.find((D) => D.endsWith("-style")) ?? "Normal-style", z = h?.getAttribute("lang");
829
865
  c.forEach((D) => {
830
- const L = s.ownerDocument.createElement("div");
831
- L.classList.add("drag-item-order-word"), L.textContent = D, d.appendChild(L), L.classList.add(A), z && L.setAttribute("lang", z), T && L.addEventListener("pointerdown", _s);
866
+ 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", $s);
832
868
  });
833
869
  }
834
- function eo(s) {
870
+ function io(s) {
835
871
  const c = s.currentTarget.classList.contains(
836
872
  "bloom-next-page"
837
873
  );
838
- Un?.(c);
874
+ Zn?.(c);
839
875
  }
840
- function ma(s, c) {
841
- const d = (A) => {
842
- const z = A.closest(Ri);
876
+ function ya(s, c) {
877
+ const d = (L) => {
878
+ const z = L.closest(ji);
843
879
  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"));
844
- }, h = _i(s).filter(d), T = Wr(h);
880
+ }, h = Vi(s).filter(d), T = _r(h);
845
881
  if (c) {
846
- const A = Array.from(
882
+ const L = Array.from(
847
883
  s.getElementsByTagName("video")
848
884
  ).filter(d);
849
- qr(A, () => gi(T, s));
885
+ jr(L, () => gi(T, s));
850
886
  } else
851
887
  gi(T, s);
852
888
  }
853
- let to = (s, c) => {
889
+ let ro = (s, c) => {
854
890
  };
855
- function va(s) {
856
- to = s;
891
+ function ba(s) {
892
+ ro = s;
857
893
  }
858
- function Wr(s) {
894
+ function _r(s) {
859
895
  const c = [];
860
896
  return s.forEach((d) => {
861
- d.classList.contains(Di) && c.push(d), c.push(
897
+ d.classList.contains(Mi) && c.push(d), c.push(
862
898
  ...Array.from(
863
- d.getElementsByClassName(Di)
899
+ d.getElementsByClassName(Mi)
864
900
  )
865
901
  );
866
902
  }), c;
867
903
  }
868
- function _i(s) {
904
+ function Vi(s) {
869
905
  const c = Array.from(
870
906
  s.getElementsByClassName("bloom-editable")
871
907
  ).filter(
@@ -873,8 +909,8 @@ function _i(s) {
873
909
  );
874
910
  return s.classList.contains("bloom-editable") && window.getComputedStyle(s).display !== "none" && c.push(s), c;
875
911
  }
876
- function Bs(s, c) {
877
- c || (c = (D, L) => D === L);
912
+ function Rs(s, c) {
913
+ c || (c = (D, k) => D === k);
878
914
  let d = !0;
879
915
  for (let D = 1; D < s.length; ++D)
880
916
  if (!c(s[0], s[D])) {
@@ -883,135 +919,139 @@ function Bs(s, c) {
883
919
  }
884
920
  if (d) return s;
885
921
  const h = s.slice();
886
- let T = 0, A = h, z = 0;
922
+ let T = 0, L = h, z = 0;
887
923
  for (; z++ < 10; ) {
888
- let D = s.length, L;
924
+ let D = s.length, k;
889
925
  for (; D !== 0; )
890
- L = Math.floor(Math.random() * D), D--, [s[D], s[L]] = [
891
- s[L],
926
+ k = Math.floor(Math.random() * D), D--, [s[D], s[k]] = [
927
+ s[k],
892
928
  s[D]
893
929
  ];
894
930
  let q = 0;
895
931
  for (let _ = 0; _ < s.length; ++_)
896
932
  c(s[_], h[_]) || ++q;
897
933
  if (q === s.length) return s;
898
- q > T && (T = q, A = s.slice());
934
+ q > T && (T = q, L = s.slice());
899
935
  }
900
- for (let D = 0; D < s.length; ++D) s[D] = A[D];
936
+ for (let D = 0; D < s.length; ++D) s[D] = L[D];
901
937
  return s;
902
938
  }
903
- function ya(s, c) {
939
+ function wa(s, c) {
904
940
  return s.innerText.trim() === c.innerText.trim();
905
941
  }
906
- const io = (s) => {
907
- if (!pt)
942
+ const no = (s) => {
943
+ if (!Qe)
908
944
  return;
909
- Rr(), pt.querySelectorAll("[data-draggable-id]").forEach((d) => {
910
- const h = d.getAttribute("data-draggable-id"), T = pt?.querySelector(
945
+ Wr(Qe), Qe.querySelectorAll("[data-draggable-id]").forEach((d) => {
946
+ const h = d.getAttribute("data-draggable-id"), T = Qe?.querySelector(
911
947
  `[data-target-of="${h}"]`
912
948
  );
913
949
  if (!T)
914
950
  return;
915
- let A = d.offsetWidth;
916
- if (!A) {
951
+ let L = d.offsetWidth;
952
+ if (!L) {
917
953
  const q = d.style.width.replace("px", "");
918
- A = Number.parseInt(q, 10);
954
+ L = Number.parseInt(q, 10);
919
955
  }
920
956
  let z = d.offsetHeight;
921
957
  if (!z) {
922
958
  const q = d.style.height.replace("px", "");
923
959
  z = Number.parseInt(q, 10);
924
960
  }
925
- const D = T.offsetLeft + (T.offsetWidth - A) / 2, L = T.offsetTop + (T.offsetHeight - z) / 2;
926
- d.style.left = D + "px", d.style.top = L + "px";
961
+ const D = T.offsetLeft + (T.offsetWidth - L) / 2, k = T.offsetTop + (T.offsetHeight - z) / 2;
962
+ d.style.left = D + "px", d.style.top = k + "px";
927
963
  }), Array.from(
928
- pt.getElementsByClassName("drag-item-random-sentence")
964
+ Qe.getElementsByClassName(
965
+ "drag-item-random-sentence"
966
+ )
929
967
  ).forEach((d) => {
930
968
  const h = d.getAttribute("data-answer")?.split(" ") ?? [], T = d.children[0];
931
- d.innerHTML = "", Qn(
932
- pt,
969
+ d.innerHTML = "", to(
970
+ Qe,
933
971
  h,
934
972
  d,
935
973
  T,
936
974
  !1
937
975
  );
938
- }), jt(pt, "drag-activity-wrong", !1), jt(pt, "drag-activity-solution", !0);
976
+ }), jt(Qe, "drag-activity-wrong", !1), jt(Qe, "drag-activity-solution", !0);
939
977
  const c = [];
940
- pt.querySelectorAll("[data-draggable-id]").forEach((d) => {
978
+ Qe.querySelectorAll("[data-draggable-id]").forEach((d) => {
941
979
  const h = d.getAttribute("data-draggable-id");
942
- pt?.querySelector(
980
+ Qe?.querySelector(
943
981
  `[data-target-of="${h}"]`
944
982
  ) && c.push(
945
983
  ...Array.from(d.getElementsByTagName("video"))
946
984
  );
947
- }), c.length > 0 && qr(c, () => {
985
+ }), c.length > 0 && jr(c, () => {
948
986
  });
949
987
  };
950
- let Vi = 0, $i = 0, Me, Ar = !1;
951
- const Xi = (s) => s.getBoundingClientRect().width / s.offsetWidth, ro = (s) => {
988
+ let $i = 0, Xi = 0, Me, kr = !1;
989
+ const Yi = (s) => s.getBoundingClientRect().width / s.offsetWidth, oo = (s) => {
952
990
  if (s.button !== 0 || s.ctrlKey) return;
953
991
  s.preventDefault();
954
992
  const c = s.currentTarget;
955
993
  Me = c;
956
- const d = c.closest(".bloom-page"), h = Xi(d);
957
- Vi = s.clientX / h - c.offsetLeft, $i = s.clientY / h - c.offsetTop, c.setPointerCapture(s.pointerId), c.addEventListener("pointerup", oo), c.addEventListener("pointermove", no), Jn(c), c.classList.add("bloom-ui-dragging"), Me.classList.remove("bloom-draggedToTarget");
958
- }, no = (s) => {
959
- const c = Me.closest(".bloom-page"), d = Xi(c);
994
+ const d = c.closest(".bloom-page"), h = Yi(d);
995
+ $i = s.clientX / h - c.offsetLeft, Xi = s.clientY / h - c.offsetTop, c.setPointerCapture(s.pointerId), c.addEventListener("pointerup", ao), c.addEventListener("pointermove", so), eo(c), c.classList.add("bloom-ui-dragging"), Me.classList.remove("bloom-draggedToTarget");
996
+ }, so = (s) => {
997
+ const c = Me.closest(".bloom-page"), d = Yi(c);
960
998
  s.preventDefault();
961
- let h = s.clientX / d - Vi, T = s.clientY / d - $i, A = Number.MAX_VALUE;
962
- Ar = !1;
999
+ let h = s.clientX / d - $i, T = s.clientY / d - Xi, L = Number.MAX_VALUE;
1000
+ kr = !1;
963
1001
  let z = h, D = T;
964
- for (const L of Cr) {
965
- const q = (L.width - Me.offsetWidth) / 2, _ = (L.height - Me.offsetHeight) / 2, we = L.x + q - h, Q = L.y + _ - T, _e = Math.sqrt(we * we + Q * Q);
966
- _e < A && (A = _e, z = L.x + q, D = L.y + _);
1002
+ for (const k of Ar) {
1003
+ const q = (k.width - Me.offsetWidth) / 2, _ = (k.height - Me.offsetHeight) / 2, ye = k.x + q - h, Q = k.y + _ - T, _e = Math.sqrt(ye * ye + Q * Q);
1004
+ _e < L && (L = _e, z = k.x + q, D = k.y + _);
967
1005
  }
968
- A < 50 && (h = z, T = D, Ar = !0), Me.style.top = T + "px", Me.style.left = h + "px";
969
- }, oo = (s) => {
970
- if (Ar)
1006
+ L < 50 && (h = z, T = D, kr = !0), Me.style.top = T + "px", Me.style.left = h + "px";
1007
+ }, ao = (s) => {
1008
+ if (kr)
971
1009
  Me.classList.add("bloom-draggedToTarget");
972
1010
  else {
973
- const h = ji.get(Me);
1011
+ const h = Wi.get(Me);
974
1012
  Me.style.top = h?.y + "px", Me.style.left = h?.x + "px", Me.classList.remove("bloom-draggedToTarget");
975
1013
  }
976
- Me.classList.remove("bloom-ui-dragging"), Me.removeEventListener("pointerup", oo), Me.removeEventListener("pointermove", no);
1014
+ Me.classList.remove("bloom-ui-dragging"), Me.removeEventListener("pointerup", ao), Me.removeEventListener("pointermove", so);
977
1015
  const c = Me.closest(".bloom-page");
978
- Array.from(c.querySelectorAll("[data-draggable-id]")).forEach((h) => {
979
- if (h !== Me && kr(h, Me)) {
980
- const T = ji.get(h);
1016
+ Array.from(
1017
+ c.querySelectorAll("[data-draggable-id]")
1018
+ ).forEach((h) => {
1019
+ if (h !== Me && Lr(h, Me)) {
1020
+ const T = Wi.get(h);
981
1021
  T && (h.style.left = T.x + "px", h.style.top = T.y + "px", h.classList.remove("bloom-draggedToTarget"));
982
1022
  }
983
1023
  });
984
- }, Tn = (s) => {
985
- const c = _i(s);
1024
+ }, En = (s) => {
1025
+ const c = Vi(s);
986
1026
  return Array.from(c).map((d) => d.textContent).join(" ");
987
- }, kr = (s, c) => {
988
- const d = s.offsetLeft, h = s.offsetTop, T = c.offsetLeft + (c.offsetWidth - s.offsetWidth) / 2, A = c.offsetTop + (c.offsetHeight - s.offsetHeight) / 2;
1027
+ }, Lr = (s, c) => {
1028
+ const d = s.offsetLeft, h = s.offsetTop, T = c.offsetLeft + (c.offsetWidth - s.offsetWidth) / 2, L = c.offsetTop + (c.offsetHeight - s.offsetHeight) / 2;
989
1029
  return (
990
1030
  // At least a half-pixel error can occur just from centering the draggable in the target.
991
- Math.abs(T - d) < 0.6 && Math.abs(A - h) < 0.6
1031
+ Math.abs(T - d) < 0.6 && Math.abs(L - h) < 0.6
992
1032
  );
993
- }, so = (s) => {
994
- const d = s.currentTarget.closest(".bloom-page"), h = Fs(d) && Vs(d);
995
- return Ws(d, h), to(1, h ? 1 : 0), h;
996
- }, ao = (s) => {
1033
+ }, lo = (s) => {
1034
+ const d = s.currentTarget.closest(".bloom-page"), h = Vs(d) && Xs(d);
1035
+ return _s(d, h), ro(1, h ? 1 : 0), h;
1036
+ }, co = (s) => {
997
1037
  const d = s.currentTarget.closest(".bloom-page");
998
- jt(d, "drag-activity-correct", !1), jt(d, "drag-activity-wrong", !1), jt(d, "drag-activity-solution", !1), Rr(), Br();
1038
+ jt(d, "drag-activity-correct", !1), jt(d, "drag-activity-wrong", !1), jt(d, "drag-activity-solution", !1), Wr(d), qr();
999
1039
  }, jt = (s, c, d) => {
1000
1040
  d ? s.parentElement?.classList.add(c) : s.parentElement?.classList.remove(c);
1001
1041
  };
1002
- let Fe, fe, Fr, _r;
1003
- function ba(s, c) {
1004
- Fr = s, _r = c;
1042
+ let Fe, fe, Vr, $r;
1043
+ function xa(s, c) {
1044
+ Vr = s, $r = c;
1005
1045
  }
1006
- const Vr = "data-preload-sound";
1007
- function qs(s) {
1046
+ const Xr = "data-preload-sound";
1047
+ function js(s) {
1008
1048
  s.querySelectorAll(
1009
- `audio[${Vr}]`
1049
+ `audio[${Xr}]`
1010
1050
  ).forEach((c) => {
1011
1051
  c.src = "", c.remove();
1012
1052
  });
1013
1053
  }
1014
- function Rs(s) {
1054
+ function Ws(s) {
1015
1055
  const c = (d, h) => {
1016
1056
  const T = d !== null;
1017
1057
  if (d === null)
@@ -1019,126 +1059,132 @@ function Rs(s) {
1019
1059
  else if (d === "none")
1020
1060
  return;
1021
1061
  if (!d) return;
1022
- const A = (T ? Nr() + "/audio/" : "") + d;
1062
+ const L = (T ? Pr() + "/audio/" : "") + d;
1023
1063
  if (Array.from(
1024
- s.querySelectorAll(`audio[${Vr}]`)
1025
- ).find((L) => L.dataset.preloadSound === A)) return;
1064
+ s.querySelectorAll(`audio[${Xr}]`)
1065
+ ).find((k) => k.dataset.preloadSound === L)) return;
1026
1066
  const D = document.createElement("audio");
1027
- D.dataset.preloadSound = A, D.style.visibility = "hidden", jr(s) && D.classList.add("bloom-ui"), D.src = A, D.load(), s.append(D);
1067
+ D.dataset.preloadSound = L, D.style.visibility = "hidden", Fr(s) && D.classList.add("bloom-ui"), D.src = L, D.load(), s.append(D);
1028
1068
  };
1029
1069
  c(
1030
1070
  s.getAttribute("data-correct-sound"),
1031
- Fr
1071
+ Vr
1032
1072
  ), c(
1033
1073
  s.getAttribute("data-wrong-sound"),
1034
- _r
1074
+ $r
1035
1075
  );
1036
1076
  }
1037
- function js(s, c, d) {
1077
+ function Fs(s, c, d) {
1038
1078
  let h = s.getAttribute(
1039
1079
  c ? "data-correct-sound" : "data-wrong-sound"
1040
1080
  );
1041
1081
  const T = h !== null;
1042
- h === null ? h = c ? Fr : _r : h === "none" && (h = void 0), h ? lo(s, h, T, d) : d?.();
1082
+ h === null ? h = c ? Vr : $r : h === "none" && (h = void 0), h ? uo(s, h, T, d) : d?.();
1043
1083
  }
1044
- function Ws(s, c) {
1045
- jt(s, "drag-activity-correct", c), jt(s, "drag-activity-wrong", !c), js(s, c, () => {
1084
+ function _s(s, c) {
1085
+ jt(s, "drag-activity-correct", c), jt(s, "drag-activity-wrong", !c), Fs(s, c, () => {
1086
+ if (!s.parentElement?.classList.contains(
1087
+ c ? "drag-activity-correct" : "drag-activity-wrong"
1088
+ ))
1089
+ return;
1046
1090
  const h = Array.from(
1047
1091
  s.getElementsByClassName(
1048
1092
  c ? "drag-item-correct" : "drag-item-wrong"
1049
1093
  )
1050
- ), T = [], A = [];
1094
+ ), T = [], L = [];
1051
1095
  h.forEach((D) => {
1052
- T.push(..._i(D)), A.push(...Array.from(D.getElementsByTagName("video")));
1096
+ T.push(...Vi(D)), L.push(...Array.from(D.getElementsByTagName("video")));
1053
1097
  });
1054
- const z = Wr(T);
1055
- qr(A, () => gi(z, s));
1098
+ const z = _r(T);
1099
+ jr(L, () => gi(z, s));
1056
1100
  });
1057
1101
  }
1058
- function lo(s, c, d = !0, h) {
1059
- const T = (d ? Nr() + "/audio/" : "") + c, A = Array.from(
1060
- s.querySelectorAll(`audio[${Vr}]`)
1102
+ function uo(s, c, d = !0, h) {
1103
+ const T = (d ? Pr() + "/audio/" : "") + c, L = Array.from(
1104
+ s.querySelectorAll(`audio[${Xr}]`)
1061
1105
  ).find((_) => _.dataset.preloadSound === T);
1062
1106
  let z;
1063
- A ? (delete A.dataset.preloadSound, A.currentTime = 0, z = A) : (z = new Audio(T), jr(s) && z.classList.add("bloom-ui"), z.style.visibility = "hidden", s.append(z));
1107
+ L ? (delete L.dataset.preloadSound, L.currentTime = 0, z = L) : (z = new Audio(T), Fr(s) && z.classList.add("bloom-ui"), z.style.visibility = "hidden", s.append(z));
1064
1108
  let D = !1;
1065
- const L = () => {
1109
+ const k = () => {
1066
1110
  D || (D = !0, h?.());
1067
1111
  };
1068
1112
  z.play()?.catch(() => {
1069
- L();
1113
+ k();
1070
1114
  }), z.addEventListener(
1071
1115
  "ended",
1072
1116
  () => {
1073
- s.removeChild(z), L();
1117
+ s.removeChild(z), k();
1074
1118
  },
1075
1119
  { once: !0 }
1076
1120
  ), z.addEventListener(
1077
1121
  "error",
1078
1122
  () => {
1079
- z.parentElement === s && s.removeChild(z), L();
1123
+ z.parentElement === s && s.removeChild(z), k();
1080
1124
  },
1081
1125
  { once: !0 }
1082
1126
  );
1083
1127
  }
1084
- function Fs(s) {
1128
+ function Vs(s) {
1085
1129
  let c = !0;
1086
- const d = Array.from(s.querySelectorAll("[data-draggable-id]"));
1130
+ const d = Array.from(
1131
+ s.querySelectorAll("[data-draggable-id]")
1132
+ );
1087
1133
  return d.forEach((h) => {
1088
- const T = h.getAttribute("data-draggable-id"), A = s.querySelector(
1134
+ const T = h.getAttribute("data-draggable-id"), L = s.querySelector(
1089
1135
  `[data-target-of="${T}"]`
1090
1136
  );
1091
- if (A && !kr(h, A)) {
1137
+ if (L && !Lr(h, L)) {
1092
1138
  if (!Array.from(h.children).some(
1093
1139
  (D) => D.classList.contains("bloom-translationGroup")
1094
1140
  )) {
1095
1141
  c = !1;
1096
1142
  return;
1097
1143
  }
1098
- const z = Tn(h);
1099
- d.some((D) => D === h || Tn(D) !== z ? !1 : kr(D, A)) || (c = !1);
1144
+ const z = En(h);
1145
+ d.some((D) => D === h || En(D) !== z ? !1 : Lr(D, L)) || (c = !1);
1100
1146
  }
1101
1147
  }), c;
1102
1148
  }
1103
- let qe, Lr = 0;
1104
- const co = 5;
1105
- function _s(s) {
1149
+ let qe, Nr = 0;
1150
+ const fo = 5;
1151
+ function $s(s) {
1106
1152
  if (s.button !== 0 || s.ctrlKey) return;
1107
- fe = s.currentTarget, Lr = fe.offsetWidth;
1108
- const c = fe.closest(".bloom-page"), d = Xi(c);
1109
- Vi = s.clientX / d - fe.offsetLeft, $i = s.clientY / d - fe.offsetTop, Fe = fe.ownerDocument.createElement("div"), fe.classList.forEach(
1153
+ fe = s.currentTarget, Nr = fe.offsetWidth;
1154
+ const c = fe.closest(".bloom-page"), d = Yi(c);
1155
+ $i = s.clientX / d - fe.offsetLeft, Xi = s.clientY / d - fe.offsetTop, Fe = fe.ownerDocument.createElement("div"), fe.classList.forEach(
1110
1156
  (h) => Fe.classList.add(h)
1111
1157
  ), Fe.textContent = fe.textContent, Fe.style.position = "absolute", Fe.style.left = fe.offsetLeft + "px", Fe.style.top = fe.offsetTop + "px", Fe.setAttribute(
1112
1158
  "lang",
1113
1159
  fe.getAttribute("lang")
1114
- ), qe = po(fe), qe.style.width = Lr + co + "px", fe.parentElement?.insertBefore(
1160
+ ), qe = mo(fe), qe.style.width = Nr + fo + "px", fe.parentElement?.insertBefore(
1115
1161
  qe,
1116
1162
  fe
1117
- ), fe.style.display = "none", fe.setPointerCapture(s.pointerId), fe.addEventListener("pointerup", ho), fe.addEventListener("pointermove", fo), fe.addEventListener("touchstart", uo), fe.parentElement?.appendChild(Fe);
1163
+ ), fe.style.display = "none", fe.setPointerCapture(s.pointerId), fe.addEventListener("pointerup", go), fe.addEventListener("pointermove", po), fe.addEventListener("touchstart", ho), fe.parentElement?.appendChild(Fe);
1118
1164
  }
1119
- const uo = (s) => {
1165
+ const ho = (s) => {
1120
1166
  s.preventDefault();
1121
1167
  };
1122
- let Sn;
1123
- const fo = (s) => {
1124
- const c = Fe.closest(".bloom-page"), d = Xi(c);
1168
+ let Cn;
1169
+ const po = (s) => {
1170
+ const c = Fe.closest(".bloom-page"), d = Yi(c);
1125
1171
  s.preventDefault();
1126
- const h = s.clientX / d - Vi, T = s.clientY / d - $i;
1127
- if (Fe.style.top = T + "px", Fe.style.left = h + "px", Li)
1172
+ const h = s.clientX / d - $i, T = s.clientY / d - Xi;
1173
+ if (Fe.style.top = T + "px", Fe.style.left = h + "px", Ni)
1128
1174
  return;
1129
- const A = fe.parentElement, z = Array.from(A.children).find((D) => {
1130
- const L = D.getBoundingClientRect();
1131
- return D !== fe && D !== qe && D !== Fe && s.clientX > L.left && s.clientX < L.right && s.clientY > L.top && s.clientY < L.bottom;
1175
+ const L = fe.parentElement, z = Array.from(L.children).find((D) => {
1176
+ const k = D.getBoundingClientRect();
1177
+ return D !== fe && D !== qe && D !== Fe && s.clientX > k.left && s.clientX < k.right && s.clientY > k.top && s.clientY < k.bottom;
1132
1178
  });
1133
- if (z && z !== Sn) {
1134
- const D = Array.from(A.children);
1135
- D.indexOf(z) > D.indexOf(qe) ? br(() => {
1136
- A.insertBefore(
1179
+ if (z && z !== Cn) {
1180
+ const D = Array.from(L.children);
1181
+ D.indexOf(z) > D.indexOf(qe) ? wr(() => {
1182
+ L.insertBefore(
1137
1183
  qe,
1138
1184
  z.nextSibling
1139
1185
  );
1140
- }) : br(() => {
1141
- A.insertBefore(qe, z);
1186
+ }) : wr(() => {
1187
+ L.insertBefore(qe, z);
1142
1188
  });
1143
1189
  } else {
1144
1190
  const D = Array.from(
@@ -1148,66 +1194,66 @@ const fo = (s) => {
1148
1194
  ).filter(
1149
1195
  (_) => _ !== fe && _ !== qe && _ !== Fe
1150
1196
  ), q = D[D.length - 1].getBoundingClientRect();
1151
- (s.clientY > q.bottom || s.clientX > q.right && s.clientY > q.top) && br(() => {
1152
- A.appendChild(qe);
1197
+ (s.clientY > q.bottom || s.clientX > q.right && s.clientY > q.top) && wr(() => {
1198
+ L.appendChild(qe);
1153
1199
  });
1154
1200
  }
1155
- Sn = z;
1156
- }, ho = (s) => {
1201
+ Cn = z;
1202
+ }, go = (s) => {
1157
1203
  s.preventDefault(), fe.style.visibility = "visible", fe.removeEventListener(
1158
1204
  "pointerup",
1159
- ho
1205
+ go
1160
1206
  ), fe.removeEventListener(
1161
1207
  "pointermove",
1162
- fo
1208
+ po
1163
1209
  ), fe.releasePointerCapture(s.pointerId), fe.removeEventListener(
1164
1210
  "touchstart",
1165
- uo
1211
+ ho
1166
1212
  ), Fe.parentElement?.removeChild(Fe), fe.parentElement?.insertBefore(
1167
1213
  fe,
1168
1214
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
1169
1215
  qe
1170
1216
  ), fe.parentElement?.removeChild(qe), qe = void 0, fe.style.display = "";
1171
1217
  };
1172
- function po(s) {
1218
+ function mo(s) {
1173
1219
  const c = s.cloneNode(!0);
1174
1220
  return c.style.overflowX = "hidden", c.style.marginRight = "0", c.style.paddingLeft = "0", c.style.paddingRight = "0", c.style.display = "", c.style.visibility = "hidden", c;
1175
1221
  }
1176
- let Li = !1;
1177
- function br(s) {
1178
- Li = !0;
1179
- const c = 200, d = fe.parentElement, h = po(fe);
1222
+ let Ni = !1;
1223
+ function wr(s) {
1224
+ Ni = !0;
1225
+ const c = 200, d = fe.parentElement, h = mo(fe);
1180
1226
  d.insertBefore(h, qe), s();
1181
- const T = Date.now(), A = () => {
1182
- const z = Date.now() - T, D = Math.min(z / c, 1), L = Lr + co;
1227
+ const T = Date.now(), L = () => {
1228
+ const z = Date.now() - T, D = Math.min(z / c, 1), k = Nr + fo;
1183
1229
  if (!qe) {
1184
- d.removeChild(h), Li = !1;
1230
+ d.removeChild(h), Ni = !1;
1185
1231
  return;
1186
1232
  }
1187
- qe.style.width = L * D + "px", h.style.width = L * (1 - D) + "px", D < 1 ? requestAnimationFrame(A) : (d.removeChild(h), qe.style.width = L + "px", Li = !1);
1233
+ qe.style.width = k * D + "px", h.style.width = k * (1 - D) + "px", D < 1 ? requestAnimationFrame(L) : (d.removeChild(h), qe.style.width = k + "px", Ni = !1);
1188
1234
  };
1189
- requestAnimationFrame(A);
1235
+ requestAnimationFrame(L);
1190
1236
  }
1191
- function Vs(s) {
1237
+ function Xs(s) {
1192
1238
  const c = s.getElementsByClassName("drag-item-random-sentence");
1193
1239
  for (let d = 0; d < c.length; d++) {
1194
- const h = c[d], T = h.getAttribute("data-answer").split(" "), A = Array.from(h.children);
1195
- for (let z = 0; z < A.length; z++)
1196
- if (A[z].textContent !== T[z])
1240
+ const h = c[d], T = h.getAttribute("data-answer").split(" "), L = Array.from(h.children);
1241
+ for (let z = 0; z < L.length; z++)
1242
+ if (L[z].textContent !== T[z])
1197
1243
  return !1;
1198
1244
  }
1199
1245
  return !0;
1200
1246
  }
1201
- const go = (s, c) => {
1247
+ const vo = (s, c) => {
1202
1248
  const d = c.querySelectorAll(":scope [data-draggable-id]");
1203
1249
  s ? d.forEach((h) => {
1204
- $s(h);
1250
+ Ys(h);
1205
1251
  }) : d.forEach((h) => {
1206
- Xs(h);
1252
+ Us(h);
1207
1253
  });
1208
1254
  };
1209
- function $s(s) {
1210
- const c = $r(s);
1255
+ function Ys(s) {
1256
+ const c = Yr(s);
1211
1257
  if (!c)
1212
1258
  return;
1213
1259
  let d = c.ownerDocument.createElement("div");
@@ -1242,42 +1288,42 @@ function $s(s) {
1242
1288
  )[0]), h) {
1243
1289
  const T = d;
1244
1290
  d = c.ownerDocument.createElement("div"), d.appendChild(T), T.classList.add("bloom-targetWrapper"), h.style.width = s.style.width, h.style.height = s.style.height;
1245
- let A = h.getAttribute("data-background");
1246
- A && !h.style.backgroundImage && (A.startsWith("url(") || (A = "url(" + A + ")"), h.style.backgroundImage = A, h.removeAttribute("data-background"));
1291
+ let L = h.getAttribute("data-background");
1292
+ L && !h.style.backgroundImage && (L.startsWith("url(") || (L = "url(" + L + ")"), h.style.backgroundImage = L, h.removeAttribute("data-background"));
1247
1293
  }
1248
1294
  c.innerHTML !== d.innerHTML && (c.innerHTML = d.innerHTML);
1249
1295
  }
1250
- const $r = (s) => {
1296
+ const Yr = (s) => {
1251
1297
  const c = s.getAttribute("data-draggable-id");
1252
1298
  if (c)
1253
1299
  return s.closest(".bloom-page").querySelector(`[data-target-of="${c}"]`);
1254
1300
  };
1255
- function Xs(s) {
1256
- const c = $r(s);
1301
+ function Us(s) {
1302
+ const c = Yr(s);
1257
1303
  c && (c.innerHTML = "");
1258
1304
  }
1259
- let wa = !1;
1260
- function xa(s) {
1305
+ let Ta = !1;
1306
+ function Sa(s) {
1261
1307
  }
1262
- function Ys(s) {
1308
+ function Gs(s) {
1263
1309
  return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
1264
1310
  }
1265
- var Ni = { exports: {} };
1266
- var Us = Ni.exports, En;
1267
- function mo() {
1268
- return En || (En = 1, (function(s) {
1311
+ var Pi = { exports: {} };
1312
+ var Zs = Pi.exports, An;
1313
+ function yo() {
1314
+ return An || (An = 1, (function(s) {
1269
1315
  (function(c, d) {
1270
1316
  s.exports = c.document ? d(c, !0) : function(h) {
1271
1317
  if (!h.document)
1272
1318
  throw new Error("jQuery requires a window with a document");
1273
1319
  return d(h);
1274
1320
  };
1275
- })(typeof window < "u" ? window : Us, function(c, d) {
1276
- var h = [], T = Object.getPrototypeOf, A = h.slice, z = h.flat ? function(t) {
1321
+ })(typeof window < "u" ? window : Zs, function(c, d) {
1322
+ var h = [], T = Object.getPrototypeOf, L = h.slice, z = h.flat ? function(t) {
1277
1323
  return h.flat.call(t);
1278
1324
  } : function(t) {
1279
1325
  return h.concat.apply([], t);
1280
- }, D = h.push, L = h.indexOf, q = {}, _ = q.toString, we = q.hasOwnProperty, Q = we.toString, _e = Q.call(Object), V = {}, G = function(i) {
1326
+ }, D = h.push, k = h.indexOf, q = {}, _ = q.toString, ye = q.hasOwnProperty, Q = ye.toString, _e = Q.call(Object), V = {}, G = function(i) {
1281
1327
  return typeof i == "function" && typeof i.nodeType != "number" && typeof i.item != "function";
1282
1328
  }, Ee = function(i) {
1283
1329
  return i != null && i === i.window;
@@ -1308,12 +1354,12 @@ function mo() {
1308
1354
  // The default length of a jQuery object is 0
1309
1355
  length: 0,
1310
1356
  toArray: function() {
1311
- return A.call(this);
1357
+ return L.call(this);
1312
1358
  },
1313
1359
  // Get the Nth element in the matched element set OR
1314
1360
  // Get the whole matched element set as a clean array
1315
1361
  get: function(t) {
1316
- return t == null ? A.call(this) : t < 0 ? this[t + this.length] : this[t];
1362
+ return t == null ? L.call(this) : t < 0 ? this[t + this.length] : this[t];
1317
1363
  },
1318
1364
  // Take an array of elements and push it onto the stack
1319
1365
  // (returning the new matched element set)
@@ -1331,7 +1377,7 @@ function mo() {
1331
1377
  }));
1332
1378
  },
1333
1379
  slice: function() {
1334
- return this.pushStack(A.apply(this, arguments));
1380
+ return this.pushStack(L.apply(this, arguments));
1335
1381
  },
1336
1382
  first: function() {
1337
1383
  return this.eq(0);
@@ -1380,7 +1426,7 @@ function mo() {
1380
1426
  },
1381
1427
  isPlainObject: function(t) {
1382
1428
  var i, r;
1383
- return !t || _.call(t) !== "[object Object]" ? !1 : (i = T(t), i ? (r = we.call(i, "constructor") && i.constructor, typeof r == "function" && Q.call(r) === _e) : !0);
1429
+ return !t || _.call(t) !== "[object Object]" ? !1 : (i = T(t), i ? (r = ye.call(i, "constructor") && i.constructor, typeof r == "function" && Q.call(r) === _e) : !0);
1384
1430
  },
1385
1431
  isEmptyObject: function(t) {
1386
1432
  var i;
@@ -1395,7 +1441,7 @@ function mo() {
1395
1441
  },
1396
1442
  each: function(t, i) {
1397
1443
  var r, n = 0;
1398
- if (at(t))
1444
+ if (lt(t))
1399
1445
  for (r = t.length; n < r && i.call(t[n], n, t[n]) !== !1; n++)
1400
1446
  ;
1401
1447
  else
@@ -1415,13 +1461,13 @@ function mo() {
1415
1461
  // results is for internal usage only
1416
1462
  makeArray: function(t, i) {
1417
1463
  var r = i || [];
1418
- return t != null && (at(Object(t)) ? o.merge(
1464
+ return t != null && (lt(Object(t)) ? o.merge(
1419
1465
  r,
1420
1466
  typeof t == "string" ? [t] : t
1421
1467
  ) : D.call(r, t)), r;
1422
1468
  },
1423
1469
  inArray: function(t, i, r) {
1424
- return i == null ? -1 : L.call(i, t, r);
1470
+ return i == null ? -1 : k.call(i, t, r);
1425
1471
  },
1426
1472
  isXMLDoc: function(t) {
1427
1473
  var i = t && t.namespaceURI, r = t && (t.ownerDocument || t).documentElement;
@@ -1442,7 +1488,7 @@ function mo() {
1442
1488
  // arg is for internal usage only
1443
1489
  map: function(t, i, r) {
1444
1490
  var n, a, l = 0, u = [];
1445
- if (at(t))
1491
+ if (lt(t))
1446
1492
  for (n = t.length; l < n; l++)
1447
1493
  a = i(t[l], l, r), a != null && u.push(a);
1448
1494
  else
@@ -1461,14 +1507,14 @@ function mo() {
1461
1507
  q["[object " + i + "]"] = i.toLowerCase();
1462
1508
  }
1463
1509
  );
1464
- function at(t) {
1510
+ function lt(t) {
1465
1511
  var i = !!t && "length" in t && t.length, r = Ve(t);
1466
1512
  return G(t) || Ee(t) ? !1 : r === "array" || i === 0 || typeof i == "number" && i > 0 && i - 1 in t;
1467
1513
  }
1468
1514
  function me(t, i) {
1469
1515
  return t.nodeName && t.nodeName.toLowerCase() === i.toLowerCase();
1470
1516
  }
1471
- var Wt = h.pop, Yi = h.sort, Ui = h.splice, j = "[\\x20\\t\\r\\n\\f]", C = new RegExp(
1517
+ var Wt = h.pop, Ui = h.sort, Gi = h.splice, j = "[\\x20\\t\\r\\n\\f]", C = new RegExp(
1472
1518
  "^" + j + "+|((?:^|[^\\\\])(?:\\\\.)*)" + j + "+$",
1473
1519
  "g"
1474
1520
  );
@@ -1487,36 +1533,36 @@ function mo() {
1487
1533
  };
1488
1534
  var g = U, De = D;
1489
1535
  (function() {
1490
- var t, i, r, n, a, l = De, u, y, m, w, P, O = o.expando, k = 0, R = 0, ie = xi(), de = xi(), ne = xi(), Oe = xi(), Pe = function(p, b) {
1536
+ 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) {
1491
1537
  return p === b && (a = !0), 0;
1492
- }, 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)
1538
+ }, ut = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", ft = "(?:\\\\[\\da-fA-F]{1,6}" + j + "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+", ce = "\\[" + j + "*(" + ft + ")(?:" + j + // Operator (capture 2)
1493
1539
  "*([*^$|!~]?=)" + j + // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
1494
- `*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(` + ut + "))|)" + j + "*\\]", qt = ":(" + ut + `)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|` + ce + ")*)|.*)\\)|)", he = new RegExp(j + "+", "g"), Se = new RegExp("^" + j + "*," + j + "*"), li = new RegExp("^" + j + "*([>+~]|" + j + ")" + j + "*"), ur = new RegExp(j + "|>"), ft = new RegExp(qt), ci = new RegExp("^" + ut + "$"), dt = {
1495
- ID: new RegExp("^#(" + ut + ")"),
1496
- CLASS: new RegExp("^\\.(" + ut + ")"),
1497
- TAG: new RegExp("^(" + ut + "|[*])"),
1540
+ `*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(` + ft + "))|)" + j + "*\\]", qt = ":(" + ft + `)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|` + ce + ")*)|.*)\\)|)", he = new RegExp(j + "+", "g"), Se = new RegExp("^" + j + "*," + j + "*"), li = new RegExp("^" + j + "*([>+~]|" + j + ")" + j + "*"), fr = new RegExp(j + "|>"), dt = new RegExp(qt), ci = new RegExp("^" + ft + "$"), ht = {
1541
+ ID: new RegExp("^#(" + ft + ")"),
1542
+ CLASS: new RegExp("^\\.(" + ft + ")"),
1543
+ TAG: new RegExp("^(" + ft + "|[*])"),
1498
1544
  ATTR: new RegExp("^" + ce),
1499
1545
  PSEUDO: new RegExp("^" + qt),
1500
1546
  CHILD: new RegExp(
1501
1547
  "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + j + "*(even|odd|(([+-]|)(\\d*)n|)" + j + "*(?:([+-]|)" + j + "*(\\d+)|))" + j + "*\\)|)",
1502
1548
  "i"
1503
1549
  ),
1504
- bool: new RegExp("^(?:" + ct + ")$", "i"),
1550
+ bool: new RegExp("^(?:" + ut + ")$", "i"),
1505
1551
  // For use in libraries implementing .is()
1506
1552
  // We use this for POS matching in `select`
1507
1553
  needsContext: new RegExp("^" + j + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + j + "*((?:-\\d)?\\d*)" + j + "*\\)|)(?=[^-]|$)", "i")
1508
- }, Ct = /^(?:input|select|textarea|button)$/i, At = /^h\d$/i, it = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, fr = /[+~]/, yt = new RegExp("\\\\[\\da-fA-F]{1,6}" + j + "?|\\\\([^\\r\\n\\f])", "g"), bt = function(p, b) {
1554
+ }, Ct = /^(?:input|select|textarea|button)$/i, At = /^h\d$/i, rt = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, dr = /[+~]/, yt = new RegExp("\\\\[\\da-fA-F]{1,6}" + j + "?|\\\\([^\\r\\n\\f])", "g"), bt = function(p, b) {
1509
1555
  var E = "0x" + p.slice(1) - 65536;
1510
1556
  return b || (E < 0 ? String.fromCharCode(E + 65536) : String.fromCharCode(E >> 10 | 55296, E & 1023 | 56320));
1511
- }, Ko = function() {
1557
+ }, Qo = function() {
1512
1558
  kt();
1513
- }, Jo = Si(
1559
+ }, es = Si(
1514
1560
  function(p) {
1515
1561
  return p.disabled === !0 && me(p, "fieldset");
1516
1562
  },
1517
1563
  { dir: "parentNode", next: "legend" }
1518
1564
  );
1519
- function Qo() {
1565
+ function ts() {
1520
1566
  try {
1521
1567
  return u.activeElement;
1522
1568
  } catch {
@@ -1524,25 +1570,25 @@ function mo() {
1524
1570
  }
1525
1571
  try {
1526
1572
  l.apply(
1527
- h = A.call(g.childNodes),
1573
+ h = L.call(g.childNodes),
1528
1574
  g.childNodes
1529
1575
  ), h[g.childNodes.length].nodeType;
1530
1576
  } catch {
1531
1577
  l = {
1532
1578
  apply: function(b, E) {
1533
- De.apply(b, A.call(E));
1579
+ De.apply(b, L.call(E));
1534
1580
  },
1535
1581
  call: function(b) {
1536
- De.apply(b, A.call(arguments, 1));
1582
+ De.apply(b, L.call(arguments, 1));
1537
1583
  }
1538
1584
  };
1539
1585
  }
1540
- function ye(p, b, E, N) {
1586
+ function be(p, b, E, N) {
1541
1587
  var I, F, $, Y, X, se, te, re = b && b.ownerDocument, ae = b ? b.nodeType : 9;
1542
1588
  if (E = E || [], typeof p != "string" || !p || ae !== 1 && ae !== 9 && ae !== 11)
1543
1589
  return E;
1544
1590
  if (!N && (kt(b), b = b || u, m)) {
1545
- if (ae !== 11 && (X = it.exec(p)))
1591
+ if (ae !== 11 && (X = rt.exec(p)))
1546
1592
  if (I = X[1]) {
1547
1593
  if (ae === 9)
1548
1594
  if ($ = b.getElementById(I)) {
@@ -1550,7 +1596,7 @@ function mo() {
1550
1596
  return l.call(E, $), E;
1551
1597
  } else
1552
1598
  return E;
1553
- else if (re && ($ = re.getElementById(I)) && ye.contains(b, $) && $.id === I)
1599
+ else if (re && ($ = re.getElementById(I)) && be.contains(b, $) && $.id === I)
1554
1600
  return l.call(E, $), E;
1555
1601
  } else {
1556
1602
  if (X[2])
@@ -1559,8 +1605,8 @@ function mo() {
1559
1605
  return l.apply(E, b.getElementsByClassName(I)), E;
1560
1606
  }
1561
1607
  if (!Oe[p + " "] && (!w || !w.test(p))) {
1562
- if (te = p, re = b, ae === 1 && (ur.test(p) || li.test(p))) {
1563
- for (re = fr.test(p) && dr(b.parentNode) || b, (re != b || !V.scope) && ((Y = b.getAttribute("id")) ? Y = o.escapeSelector(Y) : b.setAttribute("id", Y = O)), se = ui(p), F = se.length; F--; )
1608
+ if (te = p, re = b, ae === 1 && (fr.test(p) || li.test(p))) {
1609
+ for (re = dr.test(p) && hr(b.parentNode) || b, (re != b || !V.scope) && ((Y = b.getAttribute("id")) ? Y = o.escapeSelector(Y) : b.setAttribute("id", Y = O)), se = ui(p), F = se.length; F--; )
1564
1610
  se[F] = (Y ? "#" + Y : ":scope") + " " + Ti(se[F]);
1565
1611
  te = se.join(",");
1566
1612
  }
@@ -1576,7 +1622,7 @@ function mo() {
1576
1622
  }
1577
1623
  }
1578
1624
  }
1579
- return bn(p.replace(C, "$1"), b, E, N);
1625
+ return xn(p.replace(C, "$1"), b, E, N);
1580
1626
  }
1581
1627
  function xi() {
1582
1628
  var p = [];
@@ -1585,7 +1631,7 @@ function mo() {
1585
1631
  }
1586
1632
  return b;
1587
1633
  }
1588
- function st(p) {
1634
+ function at(p) {
1589
1635
  return p[O] = !0, p;
1590
1636
  }
1591
1637
  function Yt(p) {
@@ -1598,31 +1644,31 @@ function mo() {
1598
1644
  b.parentNode && b.parentNode.removeChild(b), b = null;
1599
1645
  }
1600
1646
  }
1601
- function es(p) {
1647
+ function is(p) {
1602
1648
  return function(b) {
1603
1649
  return me(b, "input") && b.type === p;
1604
1650
  };
1605
1651
  }
1606
- function ts(p) {
1652
+ function rs(p) {
1607
1653
  return function(b) {
1608
1654
  return (me(b, "input") || me(b, "button")) && b.type === p;
1609
1655
  };
1610
1656
  }
1611
- function vn(p) {
1657
+ function bn(p) {
1612
1658
  return function(b) {
1613
1659
  return "form" in b ? b.parentNode && b.disabled === !1 ? "label" in b ? "label" in b.parentNode ? b.parentNode.disabled === p : b.disabled === p : b.isDisabled === p || // Where there is no isDisabled, check manually
1614
- b.isDisabled !== !p && Jo(b) === p : b.disabled === p : "label" in b ? b.disabled === p : !1;
1660
+ b.isDisabled !== !p && es(b) === p : b.disabled === p : "label" in b ? b.disabled === p : !1;
1615
1661
  };
1616
1662
  }
1617
1663
  function Rt(p) {
1618
- return st(function(b) {
1619
- return b = +b, st(function(E, N) {
1664
+ return at(function(b) {
1665
+ return b = +b, at(function(E, N) {
1620
1666
  for (var I, F = p([], E.length, b), $ = F.length; $--; )
1621
1667
  E[I = F[$]] && (E[I] = !(N[I] = E[I]));
1622
1668
  });
1623
1669
  });
1624
1670
  }
1625
- function dr(p) {
1671
+ function hr(p) {
1626
1672
  return p && typeof p.getElementsByTagName < "u" && p;
1627
1673
  }
1628
1674
  function kt(p) {
@@ -1631,7 +1677,7 @@ function mo() {
1631
1677
  // IE/Edge sometimes throw a "Permission denied" error when strict-comparing
1632
1678
  // two documents; shallow comparisons work.
1633
1679
  // eslint-disable-next-line eqeqeq
1634
- g != u && (b = u.defaultView) && b.top !== b && b.addEventListener("unload", Ko), V.getById = Yt(function(N) {
1680
+ g != u && (b = u.defaultView) && b.top !== b && b.addEventListener("unload", Qo), V.getById = Yt(function(N) {
1635
1681
  return y.appendChild(N).id = o.expando, !u.getElementsByName || !u.getElementsByName(o.expando).length;
1636
1682
  }), V.disconnectedMatch = Yt(function(N) {
1637
1683
  return P.call(N, "*");
@@ -1678,7 +1724,7 @@ function mo() {
1678
1724
  return I.getElementsByClassName(N);
1679
1725
  }, w = [], Yt(function(N) {
1680
1726
  var I;
1681
- 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 + `*(?:''|"")`);
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|" + ut + ")"), 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 + `*(?:''|"")`);
1682
1728
  }), V.cssHas || w.push(":has"), w = w.length && new RegExp(w.join("|")), Pe = function(N, I) {
1683
1729
  if (N === I)
1684
1730
  return a = !0, 0;
@@ -1686,12 +1732,12 @@ function mo() {
1686
1732
  return F || (F = (N.ownerDocument || N) == (I.ownerDocument || I) ? N.compareDocumentPosition(I) : (
1687
1733
  // Otherwise we know they are disconnected
1688
1734
  1
1689
- ), F & 1 || !V.sortDetached && I.compareDocumentPosition(N) === F ? N === u || N.ownerDocument == g && ye.contains(g, N) ? -1 : I === u || I.ownerDocument == g && ye.contains(g, I) ? 1 : n ? L.call(n, N) - L.call(n, I) : 0 : F & 4 ? -1 : 1);
1735
+ ), F & 1 || !V.sortDetached && I.compareDocumentPosition(N) === F ? N === u || N.ownerDocument == g && be.contains(g, N) ? -1 : I === u || I.ownerDocument == g && be.contains(g, I) ? 1 : n ? k.call(n, N) - k.call(n, I) : 0 : F & 4 ? -1 : 1);
1690
1736
  }), u;
1691
1737
  }
1692
- ye.matches = function(p, b) {
1693
- return ye(p, null, null, b);
1694
- }, ye.matchesSelector = function(p, b) {
1738
+ be.matches = function(p, b) {
1739
+ return be(p, null, null, b);
1740
+ }, be.matchesSelector = function(p, b) {
1695
1741
  if (kt(p), m && !Oe[b + " "] && (!w || !w.test(b)))
1696
1742
  try {
1697
1743
  var E = P.call(p, b);
@@ -1702,31 +1748,31 @@ function mo() {
1702
1748
  } catch {
1703
1749
  Oe(b, !0);
1704
1750
  }
1705
- return ye(b, u, null, [p]).length > 0;
1706
- }, ye.contains = function(p, b) {
1751
+ return be(b, u, null, [p]).length > 0;
1752
+ }, be.contains = function(p, b) {
1707
1753
  return (p.ownerDocument || p) != u && kt(p), o.contains(p, b);
1708
- }, ye.attr = function(p, b) {
1754
+ }, be.attr = function(p, b) {
1709
1755
  (p.ownerDocument || p) != u && kt(p);
1710
- var E = i.attrHandle[b.toLowerCase()], N = E && we.call(i.attrHandle, b.toLowerCase()) ? E(p, b, !m) : void 0;
1756
+ var E = i.attrHandle[b.toLowerCase()], N = E && ye.call(i.attrHandle, b.toLowerCase()) ? E(p, b, !m) : void 0;
1711
1757
  return N !== void 0 ? N : p.getAttribute(b);
1712
- }, ye.error = function(p) {
1758
+ }, be.error = function(p) {
1713
1759
  throw new Error("Syntax error, unrecognized expression: " + p);
1714
1760
  }, o.uniqueSort = function(p) {
1715
1761
  var b, E = [], N = 0, I = 0;
1716
- if (a = !V.sortStable, n = !V.sortStable && A.call(p, 0), Yi.call(p, Pe), a) {
1762
+ if (a = !V.sortStable, n = !V.sortStable && L.call(p, 0), Ui.call(p, Pe), a) {
1717
1763
  for (; b = p[I++]; )
1718
1764
  b === p[I] && (N = E.push(I));
1719
1765
  for (; N--; )
1720
- Ui.call(p, E[N], 1);
1766
+ Gi.call(p, E[N], 1);
1721
1767
  }
1722
1768
  return n = null, p;
1723
1769
  }, o.fn.uniqueSort = function() {
1724
- return this.pushStack(o.uniqueSort(A.apply(this)));
1770
+ return this.pushStack(o.uniqueSort(L.apply(this)));
1725
1771
  }, i = o.expr = {
1726
1772
  // Can be adjusted by the user
1727
1773
  cacheLength: 50,
1728
- createPseudo: st,
1729
- match: dt,
1774
+ createPseudo: at,
1775
+ match: ht,
1730
1776
  attrHandle: {},
1731
1777
  find: {},
1732
1778
  relative: {
@@ -1740,11 +1786,11 @@ function mo() {
1740
1786
  return p[1] = p[1].replace(yt, bt), p[3] = (p[3] || p[4] || p[5] || "").replace(yt, bt), p[2] === "~=" && (p[3] = " " + p[3] + " "), p.slice(0, 4);
1741
1787
  },
1742
1788
  CHILD: function(p) {
1743
- return p[1] = p[1].toLowerCase(), p[1].slice(0, 3) === "nth" ? (p[3] || ye.error(p[0]), p[4] = +(p[4] ? p[5] + (p[6] || 1) : 2 * (p[3] === "even" || p[3] === "odd")), p[5] = +(p[7] + p[8] || p[3] === "odd")) : p[3] && ye.error(p[0]), p;
1789
+ return p[1] = p[1].toLowerCase(), p[1].slice(0, 3) === "nth" ? (p[3] || be.error(p[0]), p[4] = +(p[4] ? p[5] + (p[6] || 1) : 2 * (p[3] === "even" || p[3] === "odd")), p[5] = +(p[7] + p[8] || p[3] === "odd")) : p[3] && be.error(p[0]), p;
1744
1790
  },
1745
1791
  PSEUDO: function(p) {
1746
1792
  var b, E = !p[6] && p[2];
1747
- return dt.CHILD.test(p[0]) ? null : (p[3] ? p[2] = p[4] || p[5] || "" : E && ft.test(E) && // Get excess from tokenize (recursively)
1793
+ return ht.CHILD.test(p[0]) ? null : (p[3] ? p[2] = p[4] || p[5] || "" : E && dt.test(E) && // Get excess from tokenize (recursively)
1748
1794
  (b = ui(E, !0)) && // advance to the next closing parenthesis
1749
1795
  (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));
1750
1796
  }
@@ -1768,7 +1814,7 @@ function mo() {
1768
1814
  },
1769
1815
  ATTR: function(p, b, E) {
1770
1816
  return function(N) {
1771
- var I = ye.attr(N, p);
1817
+ var I = be.attr(N, p);
1772
1818
  return I == null ? b === "!=" : b ? (I += "", b === "=" ? I === E : b === "!=" ? I !== E : b === "^=" ? E && I.indexOf(E) === 0 : b === "*=" ? E && I.indexOf(E) > -1 : b === "$=" ? E && I.slice(-E.length) === E : b === "~=" ? (" " + I.replace(he, " ") + " ").indexOf(E) > -1 : b === "|=" ? I === E || I.slice(0, E.length + 1) === E + "-" : !1) : !0;
1773
1819
  };
1774
1820
  },
@@ -1780,36 +1826,36 @@ function mo() {
1780
1826
  return !!X.parentNode;
1781
1827
  }
1782
1828
  ) : function(X, se, te) {
1783
- var re, ae, J, xe, Ue, Be = F !== $ ? "nextSibling" : "previousSibling", rt = X.parentNode, ht = Y && X.nodeName.toLowerCase(), Ut = !te && !Y, We = !1;
1784
- if (rt) {
1829
+ var re, ae, J, xe, Ue, Be = F !== $ ? "nextSibling" : "previousSibling", nt = X.parentNode, pt = Y && X.nodeName.toLowerCase(), Ut = !te && !Y, We = !1;
1830
+ if (nt) {
1785
1831
  if (F) {
1786
1832
  for (; Be; ) {
1787
1833
  for (J = X; J = J[Be]; )
1788
- if (Y ? me(J, ht) : J.nodeType === 1)
1834
+ if (Y ? me(J, pt) : J.nodeType === 1)
1789
1835
  return !1;
1790
1836
  Ue = Be = p === "only" && !Ue && "nextSibling";
1791
1837
  }
1792
1838
  return !0;
1793
1839
  }
1794
- if (Ue = [$ ? rt.firstChild : rt.lastChild], $ && Ut) {
1795
- for (ae = rt[O] || (rt[O] = {}), re = ae[p] || [], xe = re[0] === k && re[1], We = xe && re[2], J = xe && rt.childNodes[xe]; J = ++xe && J && J[Be] || // Fallback to seeking `elem` from the start
1840
+ if (Ue = [$ ? nt.firstChild : nt.lastChild], $ && Ut) {
1841
+ for (ae = nt[O] || (nt[O] = {}), re = ae[p] || [], xe = re[0] === A && re[1], We = xe && re[2], J = xe && nt.childNodes[xe]; J = ++xe && J && J[Be] || // Fallback to seeking `elem` from the start
1796
1842
  (We = xe = 0) || Ue.pop(); )
1797
1843
  if (J.nodeType === 1 && ++We && J === X) {
1798
- ae[p] = [k, xe, We];
1844
+ ae[p] = [A, xe, We];
1799
1845
  break;
1800
1846
  }
1801
- } else if (Ut && (ae = X[O] || (X[O] = {}), re = ae[p] || [], xe = re[0] === k && re[1], We = xe), We === !1)
1802
- 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] = [k, We]), J === X)); )
1847
+ } 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, pt) : J.nodeType === 1) && ++We && (Ut && (ae = J[O] || (J[O] = {}), ae[p] = [A, We]), J === X)); )
1803
1849
  ;
1804
1850
  return We -= I, We === N || We % N === 0 && We / N >= 0;
1805
1851
  }
1806
1852
  };
1807
1853
  },
1808
1854
  PSEUDO: function(p, b) {
1809
- var E, N = i.pseudos[p] || i.setFilters[p.toLowerCase()] || ye.error("unsupported pseudo: " + p);
1810
- return N[O] ? N(b) : N.length > 1 ? (E = [p, p, "", b], i.setFilters.hasOwnProperty(p.toLowerCase()) ? st(function(I, F) {
1855
+ 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()) ? at(function(I, F) {
1811
1857
  for (var $, Y = N(I, b), X = Y.length; X--; )
1812
- $ = L.call(I, Y[X]), I[$] = !(F[$] = Y[X]);
1858
+ $ = k.call(I, Y[X]), I[$] = !(F[$] = Y[X]);
1813
1859
  }) : function(I) {
1814
1860
  return N(I, 0, E);
1815
1861
  }) : N;
@@ -1817,21 +1863,21 @@ function mo() {
1817
1863
  },
1818
1864
  pseudos: {
1819
1865
  // Potentially complex pseudos
1820
- not: st(function(p) {
1821
- var b = [], E = [], N = mr(p.replace(C, "$1"));
1822
- return N[O] ? st(function(I, F, $, Y) {
1866
+ not: at(function(p) {
1867
+ var b = [], E = [], N = vr(p.replace(C, "$1"));
1868
+ return N[O] ? at(function(I, F, $, Y) {
1823
1869
  for (var X, se = N(I, null, Y, []), te = I.length; te--; )
1824
1870
  (X = se[te]) && (I[te] = !(F[te] = X));
1825
1871
  }) : function(I, F, $) {
1826
1872
  return b[0] = I, N(b, null, $, E), b[0] = null, !E.pop();
1827
1873
  };
1828
1874
  }),
1829
- has: st(function(p) {
1875
+ has: at(function(p) {
1830
1876
  return function(b) {
1831
- return ye(p, b).length > 0;
1877
+ return be(p, b).length > 0;
1832
1878
  };
1833
1879
  }),
1834
- contains: st(function(p) {
1880
+ contains: at(function(p) {
1835
1881
  return p = p.replace(yt, bt), function(b) {
1836
1882
  return (b.textContent || o.text(b)).indexOf(p) > -1;
1837
1883
  };
@@ -1843,8 +1889,8 @@ function mo() {
1843
1889
  // The matching of C against the element's language value is performed case-insensitively.
1844
1890
  // The identifier C does not have to be a valid language name."
1845
1891
  // https://www.w3.org/TR/selectors/#lang-pseudo
1846
- lang: st(function(p) {
1847
- return ci.test(p || "") || ye.error("unsupported lang: " + p), p = p.replace(yt, bt).toLowerCase(), function(b) {
1892
+ lang: at(function(p) {
1893
+ return ci.test(p || "") || be.error("unsupported lang: " + p), p = p.replace(yt, bt).toLowerCase(), function(b) {
1848
1894
  var E;
1849
1895
  do
1850
1896
  if (E = m ? b.lang : b.getAttribute("xml:lang") || b.getAttribute("lang"))
@@ -1862,11 +1908,11 @@ function mo() {
1862
1908
  return p === y;
1863
1909
  },
1864
1910
  focus: function(p) {
1865
- return p === Qo() && u.hasFocus() && !!(p.type || p.href || ~p.tabIndex);
1911
+ return p === ts() && u.hasFocus() && !!(p.type || p.href || ~p.tabIndex);
1866
1912
  },
1867
1913
  // Boolean properties
1868
- enabled: vn(!1),
1869
- disabled: vn(!0),
1914
+ enabled: bn(!1),
1915
+ disabled: bn(!0),
1870
1916
  checked: function(p) {
1871
1917
  return me(p, "input") && !!p.checked || me(p, "option") && !!p.selected;
1872
1918
  },
@@ -1934,12 +1980,12 @@ function mo() {
1934
1980
  }
1935
1981
  }, i.pseudos.nth = i.pseudos.eq;
1936
1982
  for (t in { radio: !0, checkbox: !0, file: !0, password: !0, image: !0 })
1937
- i.pseudos[t] = es(t);
1983
+ i.pseudos[t] = is(t);
1938
1984
  for (t in { submit: !0, reset: !0 })
1939
- i.pseudos[t] = ts(t);
1940
- function yn() {
1985
+ i.pseudos[t] = rs(t);
1986
+ function wn() {
1941
1987
  }
1942
- yn.prototype = i.filters = i.pseudos, i.setFilters = new yn();
1988
+ wn.prototype = i.filters = i.pseudos, i.setFilters = new wn();
1943
1989
  function ui(p, b) {
1944
1990
  var E, N, I, F, $, Y, X, se = de[p + " "];
1945
1991
  if (se)
@@ -1951,7 +1997,7 @@ function mo() {
1951
1997
  type: N[0].replace(C, " ")
1952
1998
  }), $ = $.slice(E.length));
1953
1999
  for (F in i.filter)
1954
- (N = dt[F].exec($)) && (!X[F] || (N = X[F](N))) && (E = N.shift(), I.push({
2000
+ (N = ht[F].exec($)) && (!X[F] || (N = X[F](N))) && (E = N.shift(), I.push({
1955
2001
  value: E,
1956
2002
  type: F,
1957
2003
  matches: N
@@ -1959,7 +2005,7 @@ function mo() {
1959
2005
  if (!E)
1960
2006
  break;
1961
2007
  }
1962
- return b ? $.length : $ ? ye.error(p) : (
2008
+ return b ? $.length : $ ? be.error(p) : (
1963
2009
  // Cache the tokens
1964
2010
  de(p, Y).slice(0)
1965
2011
  );
@@ -1982,7 +2028,7 @@ function mo() {
1982
2028
  ) : (
1983
2029
  // Check against all ancestor/preceding elements
1984
2030
  function(X, se, te) {
1985
- var re, ae, J = [k, Y];
2031
+ var re, ae, J = [A, Y];
1986
2032
  if (te) {
1987
2033
  for (; X = X[N]; )
1988
2034
  if ((X.nodeType === 1 || $) && p(X, se, te))
@@ -1993,7 +2039,7 @@ function mo() {
1993
2039
  if (ae = X[O] || (X[O] = {}), I && me(X, I))
1994
2040
  X = X[N] || X;
1995
2041
  else {
1996
- if ((re = ae[F]) && re[0] === k && re[1] === Y)
2042
+ if ((re = ae[F]) && re[0] === A && re[1] === Y)
1997
2043
  return J[2] = re[2];
1998
2044
  if (ae[F] = J, J[2] = p(X, se, te))
1999
2045
  return !0;
@@ -2002,7 +2048,7 @@ function mo() {
2002
2048
  }
2003
2049
  );
2004
2050
  }
2005
- function hr(p) {
2051
+ function pr(p) {
2006
2052
  return p.length > 1 ? function(b, E, N) {
2007
2053
  for (var I = p.length; I--; )
2008
2054
  if (!p[I](b, E, N))
@@ -2010,9 +2056,9 @@ function mo() {
2010
2056
  return !0;
2011
2057
  } : p[0];
2012
2058
  }
2013
- function is(p, b, E) {
2059
+ function ns(p, b, E) {
2014
2060
  for (var N = 0, I = b.length; N < I; N++)
2015
- ye(p, b[N], E);
2061
+ be(p, b[N], E);
2016
2062
  return E;
2017
2063
  }
2018
2064
  function Ei(p, b, E, N, I) {
@@ -2020,31 +2066,31 @@ function mo() {
2020
2066
  (F = p[Y]) && (!E || E(F, N, I)) && ($.push(F), se && b.push(Y));
2021
2067
  return $;
2022
2068
  }
2023
- function pr(p, b, E, N, I, F) {
2024
- return N && !N[O] && (N = pr(N)), I && !I[O] && (I = pr(I, F)), st(function($, Y, X, se) {
2025
- var te, re, ae, J, xe = [], Ue = [], Be = Y.length, rt = $ || is(
2069
+ function gr(p, b, E, N, I, F) {
2070
+ return N && !N[O] && (N = gr(N)), I && !I[O] && (I = gr(I, F)), at(function($, Y, X, se) {
2071
+ var te, re, ae, J, xe = [], Ue = [], Be = Y.length, nt = $ || ns(
2026
2072
  b || "*",
2027
2073
  X.nodeType ? [X] : X,
2028
2074
  []
2029
- ), ht = p && ($ || !b) ? Ei(rt, xe, p, X, se) : rt;
2075
+ ), pt = p && ($ || !b) ? Ei(nt, xe, p, X, se) : nt;
2030
2076
  if (E ? (J = I || ($ ? p : Be || N) ? (
2031
2077
  // ...intermediate processing is necessary
2032
2078
  []
2033
2079
  ) : (
2034
2080
  // ...otherwise use results directly
2035
2081
  Y
2036
- ), E(ht, J, X, se)) : J = ht, N)
2082
+ ), E(pt, J, X, se)) : J = pt, N)
2037
2083
  for (te = Ei(J, Ue), N(te, [], X, se), re = te.length; re--; )
2038
- (ae = te[re]) && (J[Ue[re]] = !(ht[Ue[re]] = ae));
2084
+ (ae = te[re]) && (J[Ue[re]] = !(pt[Ue[re]] = ae));
2039
2085
  if ($) {
2040
2086
  if (I || p) {
2041
2087
  if (I) {
2042
2088
  for (te = [], re = J.length; re--; )
2043
- (ae = J[re]) && te.push(ht[re] = ae);
2089
+ (ae = J[re]) && te.push(pt[re] = ae);
2044
2090
  I(null, J = [], te, se);
2045
2091
  }
2046
2092
  for (re = J.length; re--; )
2047
- (ae = J[re]) && (te = I ? L.call($, ae) : xe[re]) > -1 && ($[te] = !(Y[te] = ae));
2093
+ (ae = J[re]) && (te = I ? k.call($, ae) : xe[re]) > -1 && ($[te] = !(Y[te] = ae));
2048
2094
  }
2049
2095
  } else
2050
2096
  J = Ei(
@@ -2052,48 +2098,48 @@ function mo() {
2052
2098
  ), I ? I(null, Y, J, se) : l.apply(Y, J);
2053
2099
  });
2054
2100
  }
2055
- function gr(p) {
2101
+ function mr(p) {
2056
2102
  for (var b, E, N, I = p.length, F = i.relative[p[0].type], $ = F || i.relative[" "], Y = F ? 1 : 0, X = Si(function(re) {
2057
2103
  return re === b;
2058
2104
  }, $, !0), se = Si(function(re) {
2059
- return L.call(b, re) > -1;
2105
+ return k.call(b, re) > -1;
2060
2106
  }, $, !0), te = [function(re, ae, J) {
2061
2107
  var xe = !F && (J || ae != r) || ((b = ae).nodeType ? X(re, ae, J) : se(re, ae, J));
2062
2108
  return b = null, xe;
2063
2109
  }]; Y < I; Y++)
2064
2110
  if (E = i.relative[p[Y].type])
2065
- te = [Si(hr(te), E)];
2111
+ te = [Si(pr(te), E)];
2066
2112
  else {
2067
2113
  if (E = i.filter[p[Y].type].apply(null, p[Y].matches), E[O]) {
2068
2114
  for (N = ++Y; N < I && !i.relative[p[N].type]; N++)
2069
2115
  ;
2070
- return pr(
2071
- Y > 1 && hr(te),
2116
+ return gr(
2117
+ Y > 1 && pr(te),
2072
2118
  Y > 1 && Ti(
2073
2119
  // If the preceding token was a descendant combinator, insert an implicit any-element `*`
2074
2120
  p.slice(0, Y - 1).concat({ value: p[Y - 2].type === " " ? "*" : "" })
2075
2121
  ).replace(C, "$1"),
2076
2122
  E,
2077
- Y < N && gr(p.slice(Y, N)),
2078
- N < I && gr(p = p.slice(N)),
2123
+ Y < N && mr(p.slice(Y, N)),
2124
+ N < I && mr(p = p.slice(N)),
2079
2125
  N < I && Ti(p)
2080
2126
  );
2081
2127
  }
2082
2128
  te.push(E);
2083
2129
  }
2084
- return hr(te);
2130
+ return pr(te);
2085
2131
  }
2086
- function rs(p, b) {
2132
+ function os(p, b) {
2087
2133
  var E = b.length > 0, N = p.length > 0, I = function(F, $, Y, X, se) {
2088
- var te, re, ae, J = 0, xe = "0", Ue = F && [], Be = [], rt = r, ht = F || N && i.find.TAG("*", se), Ut = k += rt == null ? 1 : Math.random() || 0.1, We = ht.length;
2089
- for (se && (r = $ == u || $ || se); xe !== We && (te = ht[xe]) != null; xe++) {
2134
+ var te, re, ae, J = 0, xe = "0", Ue = F && [], Be = [], nt = r, pt = F || N && i.find.TAG("*", se), Ut = A += nt == null ? 1 : Math.random() || 0.1, We = pt.length;
2135
+ for (se && (r = $ == u || $ || se); xe !== We && (te = pt[xe]) != null; xe++) {
2090
2136
  if (N && te) {
2091
2137
  for (re = 0, !$ && te.ownerDocument != u && (kt(te), Y = !m); ae = p[re++]; )
2092
2138
  if (ae(te, $ || u, Y)) {
2093
2139
  l.call(X, te);
2094
2140
  break;
2095
2141
  }
2096
- se && (k = Ut);
2142
+ se && (A = Ut);
2097
2143
  }
2098
2144
  E && ((te = !ae && te) && J--, F && Ue.push(te));
2099
2145
  }
@@ -2108,23 +2154,23 @@ function mo() {
2108
2154
  }
2109
2155
  l.apply(X, Be), se && !F && Be.length > 0 && J + b.length > 1 && o.uniqueSort(X);
2110
2156
  }
2111
- return se && (k = Ut, r = rt), Ue;
2157
+ return se && (A = Ut, r = nt), Ue;
2112
2158
  };
2113
- return E ? st(I) : I;
2159
+ return E ? at(I) : I;
2114
2160
  }
2115
- function mr(p, b) {
2161
+ function vr(p, b) {
2116
2162
  var E, N = [], I = [], F = ne[p + " "];
2117
2163
  if (!F) {
2118
2164
  for (b || (b = ui(p)), E = b.length; E--; )
2119
- F = gr(b[E]), F[O] ? N.push(F) : I.push(F);
2165
+ F = mr(b[E]), F[O] ? N.push(F) : I.push(F);
2120
2166
  F = ne(
2121
2167
  p,
2122
- rs(I, N)
2168
+ os(I, N)
2123
2169
  ), F.selector = p;
2124
2170
  }
2125
2171
  return F;
2126
2172
  }
2127
- function bn(p, b, E, N) {
2173
+ function xn(p, b, E, N) {
2128
2174
  var I, F, $, Y, X, se = typeof p == "function" && p, te = !N && ui(p = se.selector || p);
2129
2175
  if (E = E || [], te.length === 1) {
2130
2176
  if (F = te[0] = te[0].slice(0), F.length > 2 && ($ = F[0]).type === "ID" && b.nodeType === 9 && m && i.relative[F[1].type]) {
@@ -2136,27 +2182,27 @@ function mo() {
2136
2182
  else return E;
2137
2183
  p = p.slice(F.shift().value.length);
2138
2184
  }
2139
- for (I = dt.needsContext.test(p) ? 0 : F.length; I-- && ($ = F[I], !i.relative[Y = $.type]); )
2185
+ for (I = ht.needsContext.test(p) ? 0 : F.length; I-- && ($ = F[I], !i.relative[Y = $.type]); )
2140
2186
  if ((X = i.find[Y]) && (N = X(
2141
2187
  $.matches[0].replace(yt, bt),
2142
- fr.test(F[0].type) && dr(b.parentNode) || b
2188
+ dr.test(F[0].type) && hr(b.parentNode) || b
2143
2189
  ))) {
2144
2190
  if (F.splice(I, 1), p = N.length && Ti(F), !p)
2145
2191
  return l.apply(E, N), E;
2146
2192
  break;
2147
2193
  }
2148
2194
  }
2149
- return (se || mr(p, te))(
2195
+ return (se || vr(p, te))(
2150
2196
  N,
2151
2197
  b,
2152
2198
  !m,
2153
2199
  E,
2154
- !b || fr.test(p) && dr(b.parentNode) || b
2200
+ !b || dr.test(p) && hr(b.parentNode) || b
2155
2201
  ), E;
2156
2202
  }
2157
2203
  V.sortStable = O.split("").sort(Pe).join("") === O, kt(), V.sortDetached = Yt(function(p) {
2158
2204
  return p.compareDocumentPosition(u.createElement("fieldset")) & 1;
2159
- }), o.find = ye, o.expr[":"] = o.expr.pseudos, o.unique = o.uniqueSort, ye.compile = mr, ye.select = bn, ye.setDocument = kt, ye.tokenize = ui, ye.escape = o.escapeSelector, ye.getText = o.text, ye.isXML = o.isXMLDoc, ye.selectors = o.expr, ye.support = o.support, ye.uniqueSort = o.uniqueSort;
2205
+ }), o.find = be, o.expr[":"] = o.expr.pseudos, o.unique = o.uniqueSort, be.compile = vr, be.select = xn, be.setDocument = kt, 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;
2160
2206
  })();
2161
2207
  var ge = function(t, i, r) {
2162
2208
  for (var n = [], a = r !== void 0; (t = t[i]) && t.nodeType !== 9; )
@@ -2177,7 +2223,7 @@ function mo() {
2177
2223
  }) : i.nodeType ? o.grep(t, function(n) {
2178
2224
  return n === i !== r;
2179
2225
  }) : typeof i != "string" ? o.grep(t, function(n) {
2180
- return L.call(i, n) > -1 !== r;
2226
+ return k.call(i, n) > -1 !== r;
2181
2227
  }) : o.filter(i, t, r);
2182
2228
  }
2183
2229
  o.filter = function(t, i, r) {
@@ -2276,7 +2322,7 @@ function mo() {
2276
2322
  },
2277
2323
  // Determine the position of an element within the set
2278
2324
  index: function(t) {
2279
- return t ? typeof t == "string" ? L.call(o(t), this[0]) : L.call(
2325
+ return t ? typeof t == "string" ? k.call(o(t), this[0]) : k.call(
2280
2326
  this,
2281
2327
  // If it receives a jQuery object, the first element is used
2282
2328
  t.jquery ? t[0] : t
@@ -2348,14 +2394,14 @@ function mo() {
2348
2394
  };
2349
2395
  });
2350
2396
  var He = /[^\x20\t\r\n\f]+/g;
2351
- function Gi(t) {
2397
+ function Zi(t) {
2352
2398
  var i = {};
2353
2399
  return o.each(t.match(He) || [], function(r, n) {
2354
2400
  i[n] = !0;
2355
2401
  }), i;
2356
2402
  }
2357
2403
  o.Callbacks = function(t) {
2358
- t = typeof t == "string" ? Gi(t) : o.extend({}, t);
2404
+ t = typeof t == "string" ? Zi(t) : o.extend({}, t);
2359
2405
  var i, r, n, a, l = [], u = [], y = -1, m = function() {
2360
2406
  for (a = a || t.once, n = i = !0; u.length; y = -1)
2361
2407
  for (r = u.shift(); ++y < l.length; )
@@ -2365,7 +2411,7 @@ function mo() {
2365
2411
  // Add a callback or a collection of callbacks to the list
2366
2412
  add: function() {
2367
2413
  return l && (r && !i && (y = l.length - 1, u.push(r)), (function P(O) {
2368
- o.each(O, function(k, R) {
2414
+ o.each(O, function(A, R) {
2369
2415
  G(R) ? (!t.unique || !w.has(R)) && l.push(R) : R && R.length && Ve(R) !== "string" && P(R);
2370
2416
  });
2371
2417
  })(arguments), r && !i && m()), this;
@@ -2373,8 +2419,8 @@ function mo() {
2373
2419
  // Remove a callback from the list
2374
2420
  remove: function() {
2375
2421
  return o.each(arguments, function(P, O) {
2376
- for (var k; (k = o.inArray(O, l, k)) > -1; )
2377
- l.splice(k, 1), k <= y && y--;
2422
+ for (var A; (A = o.inArray(O, l, A)) > -1; )
2423
+ l.splice(A, 1), A <= y && y--;
2378
2424
  }), this;
2379
2425
  },
2380
2426
  // Check if a given callback is in the list.
@@ -2489,21 +2535,21 @@ function mo() {
2489
2535
  },
2490
2536
  then: function(l, u, y) {
2491
2537
  var m = 0;
2492
- function w(P, O, k, R) {
2538
+ function w(P, O, A, R) {
2493
2539
  return function() {
2494
2540
  var ie = this, de = arguments, ne = function() {
2495
- var Pe, ct;
2541
+ var Pe, ut;
2496
2542
  if (!(P < m)) {
2497
- if (Pe = k.apply(ie, de), Pe === O.promise())
2543
+ if (Pe = A.apply(ie, de), Pe === O.promise())
2498
2544
  throw new TypeError("Thenable self-resolution");
2499
- ct = Pe && // Support: Promises/A+ section 2.3.4
2545
+ ut = Pe && // Support: Promises/A+ section 2.3.4
2500
2546
  // https://promisesaplus.com/#point-64
2501
2547
  // Only check objects and functions for thenability
2502
- (typeof Pe == "object" || typeof Pe == "function") && Pe.then, G(ct) ? R ? ct.call(
2548
+ (typeof Pe == "object" || typeof Pe == "function") && Pe.then, G(ut) ? R ? ut.call(
2503
2549
  Pe,
2504
2550
  w(m, O, mt, R),
2505
2551
  w(m, O, Mt, R)
2506
- ) : (m++, ct.call(
2552
+ ) : (m++, ut.call(
2507
2553
  Pe,
2508
2554
  w(m, O, mt, R),
2509
2555
  w(m, O, Mt, R),
@@ -2513,7 +2559,7 @@ function mo() {
2513
2559
  mt,
2514
2560
  O.notifyWith
2515
2561
  )
2516
- )) : (k !== mt && (ie = void 0, de = [Pe]), (R || O.resolveWith)(ie, de));
2562
+ )) : (A !== mt && (ie = void 0, de = [Pe]), (R || O.resolveWith)(ie, de));
2517
2563
  }
2518
2564
  }, Oe = R ? ne : function() {
2519
2565
  try {
@@ -2522,7 +2568,7 @@ function mo() {
2522
2568
  o.Deferred.exceptionHook && o.Deferred.exceptionHook(
2523
2569
  Pe,
2524
2570
  Oe.error
2525
- ), P + 1 >= m && (k !== Mt && (ie = void 0, de = [Pe]), O.rejectWith(ie, de));
2571
+ ), P + 1 >= m && (A !== Mt && (ie = void 0, de = [Pe]), O.rejectWith(ie, de));
2526
2572
  }
2527
2573
  };
2528
2574
  P ? Oe() : (o.Deferred.getErrorHook ? Oe.error = o.Deferred.getErrorHook() : o.Deferred.getStackHook && (Oe.error = o.Deferred.getStackHook()), c.setTimeout(Oe));
@@ -2580,9 +2626,9 @@ function mo() {
2580
2626
  },
2581
2627
  // Deferred helper
2582
2628
  when: function(t) {
2583
- var i = arguments.length, r = i, n = Array(r), a = A.call(arguments), l = o.Deferred(), u = function(y) {
2629
+ var i = arguments.length, r = i, n = Array(r), a = L.call(arguments), l = o.Deferred(), u = function(y) {
2584
2630
  return function(m) {
2585
- n[y] = this, a[y] = arguments.length > 1 ? A.call(arguments) : m, --i || l.resolveWith(n, a);
2631
+ n[y] = this, a[y] = arguments.length > 1 ? L.call(arguments) : m, --i || l.resolveWith(n, a);
2586
2632
  };
2587
2633
  };
2588
2634
  if (i <= 1 && (_t(
@@ -2629,14 +2675,14 @@ function mo() {
2629
2675
  U.removeEventListener("DOMContentLoaded", St), c.removeEventListener("load", St), o.ready();
2630
2676
  }
2631
2677
  U.readyState === "complete" || U.readyState !== "loading" && !U.documentElement.doScroll ? c.setTimeout(o.ready) : (U.addEventListener("DOMContentLoaded", St), c.addEventListener("load", St));
2632
- var et = function(t, i, r, n, a, l, u) {
2678
+ var tt = function(t, i, r, n, a, l, u) {
2633
2679
  var y = 0, m = t.length, w = r == null;
2634
2680
  if (Ve(r) === "object") {
2635
2681
  a = !0;
2636
2682
  for (y in r)
2637
- et(t, i, y, r[y], !0, l, u);
2638
- } 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, k) {
2639
- return w.call(o(P), k);
2683
+ tt(t, i, y, r[y], !0, l, u);
2684
+ } 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
+ return w.call(o(P), A);
2640
2686
  })), i))
2641
2687
  for (; y < m; y++)
2642
2688
  i(
@@ -2698,9 +2744,9 @@ function mo() {
2698
2744
  return i !== void 0 && !o.isEmptyObject(i);
2699
2745
  }
2700
2746
  };
2701
- var M = new W(), ee = new W(), be = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, Ae = /[A-Z]/g;
2747
+ var M = new W(), ee = new W(), we = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, Ae = /[A-Z]/g;
2702
2748
  function oe(t) {
2703
- return t === "true" ? !0 : t === "false" ? !1 : t === "null" ? null : t === +t + "" ? +t : be.test(t) ? JSON.parse(t) : t;
2749
+ return t === "true" ? !0 : t === "false" ? !1 : t === "null" ? null : t === +t + "" ? +t : we.test(t) ? JSON.parse(t) : t;
2704
2750
  }
2705
2751
  function Re(t, i, r) {
2706
2752
  var n;
@@ -2746,7 +2792,7 @@ function mo() {
2746
2792
  }
2747
2793
  return typeof t == "object" ? this.each(function() {
2748
2794
  ee.set(this, t);
2749
- }) : et(this, function(y) {
2795
+ }) : tt(this, function(y) {
2750
2796
  var m;
2751
2797
  if (l && y === void 0)
2752
2798
  return m = ee.get(l, t), m !== void 0 || (m = Re(l, t), m !== void 0) ? m : void 0;
@@ -2809,13 +2855,13 @@ function mo() {
2809
2855
  return y(), a.promise(i);
2810
2856
  }
2811
2857
  });
2812
- var Vt = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, Ht = new RegExp("^(?:([+-])=|)(" + Vt + ")([a-z%]*)$", "i"), Xe = ["Top", "Right", "Bottom", "Left"], lt = U.documentElement, Et = function(t) {
2858
+ var Vt = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, Ht = new RegExp("^(?:([+-])=|)(" + Vt + ")([a-z%]*)$", "i"), Xe = ["Top", "Right", "Bottom", "Left"], ct = U.documentElement, Et = function(t) {
2813
2859
  return o.contains(t.ownerDocument, t);
2814
- }, Zi = { composed: !0 };
2815
- lt.getRootNode && (Et = function(t) {
2816
- return o.contains(t.ownerDocument, t) || t.getRootNode(Zi) === t.ownerDocument;
2860
+ }, Ki = { composed: !0 };
2861
+ ct.getRootNode && (Et = function(t) {
2862
+ return o.contains(t.ownerDocument, t) || t.getRootNode(Ki) === t.ownerDocument;
2817
2863
  });
2818
- var tt = function(t, i) {
2864
+ var it = function(t, i) {
2819
2865
  return t = i || t, t.style.display === "none" || t.style.display === "" && // Otherwise, check computed style
2820
2866
  // Support: Firefox <=43 - 45
2821
2867
  // Disconnected elements can have computed display: none, so first confirm that elem is
@@ -2842,7 +2888,7 @@ function mo() {
2842
2888
  }
2843
2889
  function ue(t, i) {
2844
2890
  for (var r, n, a = [], l = 0, u = t.length; l < u; l++)
2845
- 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)));
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 === "" && it(n) && (a[l] = K(n))) : r !== "none" && (a[l] = "none", M.set(n, "display", r)));
2846
2892
  for (l = 0; l < u; l++)
2847
2893
  a[l] != null && (t[l].style.display = a[l]);
2848
2894
  return t;
@@ -2856,7 +2902,7 @@ function mo() {
2856
2902
  },
2857
2903
  toggle: function(t) {
2858
2904
  return typeof t == "boolean" ? t ? this.show() : this.hide() : this.each(function() {
2859
- tt(this) ? o(this).show() : o(this).hide();
2905
+ it(this) ? o(this).show() : o(this).hide();
2860
2906
  });
2861
2907
  }
2862
2908
  });
@@ -2890,18 +2936,18 @@ function mo() {
2890
2936
  }
2891
2937
  var Le = /<|&#?\w+;/;
2892
2938
  function Ne(t, i, r, n, a) {
2893
- for (var l, u, y, m, w, P, O = i.createDocumentFragment(), k = [], R = 0, ie = t.length; R < ie; R++)
2939
+ for (var l, u, y, m, w, P, O = i.createDocumentFragment(), A = [], R = 0, ie = t.length; R < ie; R++)
2894
2940
  if (l = t[R], l || l === 0)
2895
2941
  if (Ve(l) === "object")
2896
- o.merge(k, l.nodeType ? [l] : l);
2942
+ o.merge(A, l.nodeType ? [l] : l);
2897
2943
  else if (!Le.test(l))
2898
- k.push(i.createTextNode(l));
2944
+ A.push(i.createTextNode(l));
2899
2945
  else {
2900
2946
  for (u = u || O.appendChild(i.createElement("div")), y = (Ze.exec(l) || ["", ""])[1].toLowerCase(), m = ve[y] || ve._default, u.innerHTML = m[1] + o.htmlPrefilter(l) + m[2], P = m[0]; P--; )
2901
2947
  u = u.lastChild;
2902
- o.merge(k, u.childNodes), u = O.firstChild, u.textContent = "";
2948
+ o.merge(A, u.childNodes), u = O.firstChild, u.textContent = "";
2903
2949
  }
2904
- for (O.textContent = "", R = 0; l = k[R++]; ) {
2950
+ for (O.textContent = "", R = 0; l = A[R++]; ) {
2905
2951
  if (n && o.inArray(l, n) > -1) {
2906
2952
  a && a.push(l);
2907
2953
  continue;
@@ -2912,19 +2958,19 @@ function mo() {
2912
2958
  }
2913
2959
  return O;
2914
2960
  }
2915
- var nt = /^([^.]*)(?:\.(.+)|)/;
2961
+ var ot = /^([^.]*)(?:\.(.+)|)/;
2916
2962
  function Je() {
2917
2963
  return !0;
2918
2964
  }
2919
2965
  function je() {
2920
2966
  return !1;
2921
2967
  }
2922
- function Ki(t, i, r, n, a, l) {
2968
+ function Ji(t, i, r, n, a, l) {
2923
2969
  var u, y;
2924
2970
  if (typeof i == "object") {
2925
2971
  typeof r != "string" && (n = n || r, r = void 0);
2926
2972
  for (y in i)
2927
- Ki(t, y, r, n, i[y], l);
2973
+ Ji(t, y, r, n, i[y], l);
2928
2974
  return t;
2929
2975
  }
2930
2976
  if (n == null && a == null ? (a = r, n = r = void 0) : a == null && (typeof r == "string" ? (a = n, n = void 0) : (a = n, n = r, r = void 0)), a === !1)
@@ -2940,12 +2986,12 @@ function mo() {
2940
2986
  o.event = {
2941
2987
  global: {},
2942
2988
  add: function(t, i, r, n, a) {
2943
- var l, u, y, m, w, P, O, k, R, ie, de, ne = M.get(t);
2989
+ var l, u, y, m, w, P, O, A, R, ie, de, ne = M.get(t);
2944
2990
  if (H(t))
2945
- 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) {
2991
+ for (r.handler && (l = r, r = l.handler, a = l.selector), a && o.find.matchesSelector(ct, 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) {
2946
2992
  return typeof o < "u" && o.event.triggered !== Oe.type ? o.event.dispatch.apply(t, arguments) : void 0;
2947
2993
  }), i = (i || "").match(He) || [""], w = i.length; w--; )
2948
- 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({
2994
+ y = ot.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({
2949
2995
  type: R,
2950
2996
  origType: de,
2951
2997
  data: n,
@@ -2954,21 +3000,21 @@ function mo() {
2954
3000
  selector: a,
2955
3001
  needsContext: a && o.expr.match.needsContext.test(a),
2956
3002
  namespace: ie.join(".")
2957
- }, l), (k = m[R]) || (k = m[R] = [], k.delegateCount = 0, (!O.setup || O.setup.call(t, n, ie, u) === !1) && t.addEventListener && t.addEventListener(R, u)), O.add && (O.add.call(t, P), P.handler.guid || (P.handler.guid = r.guid)), a ? k.splice(k.delegateCount++, 0, P) : k.push(P), o.event.global[R] = !0);
3003
+ }, l), (A = m[R]) || (A = m[R] = [], A.delegateCount = 0, (!O.setup || O.setup.call(t, n, ie, u) === !1) && t.addEventListener && t.addEventListener(R, u)), O.add && (O.add.call(t, P), P.handler.guid || (P.handler.guid = r.guid)), a ? A.splice(A.delegateCount++, 0, P) : A.push(P), o.event.global[R] = !0);
2958
3004
  },
2959
3005
  // Detach an event or set of events from an element
2960
3006
  remove: function(t, i, r, n, a) {
2961
- var l, u, y, m, w, P, O, k, R, ie, de, ne = M.hasData(t) && M.get(t);
3007
+ var l, u, y, m, w, P, O, A, R, ie, de, ne = M.hasData(t) && M.get(t);
2962
3008
  if (!(!ne || !(m = ne.events))) {
2963
3009
  for (i = (i || "").match(He) || [""], w = i.length; w--; ) {
2964
- if (y = nt.exec(i[w]) || [], R = de = y[1], ie = (y[2] || "").split(".").sort(), !R) {
3010
+ if (y = ot.exec(i[w]) || [], R = de = y[1], ie = (y[2] || "").split(".").sort(), !R) {
2965
3011
  for (R in m)
2966
3012
  o.event.remove(t, R + i[w], r, n, !0);
2967
3013
  continue;
2968
3014
  }
2969
- for (O = o.event.special[R] || {}, R = (n ? O.delegateType : O.bindType) || R, k = m[R] || [], y = y[2] && new RegExp("(^|\\.)" + ie.join("\\.(?:.*\\.|)") + "(\\.|$)"), u = l = k.length; l--; )
2970
- P = k[l], (a || de === P.origType) && (!r || r.guid === P.guid) && (!y || y.test(P.namespace)) && (!n || n === P.selector || n === "**" && P.selector) && (k.splice(l, 1), P.selector && k.delegateCount--, O.remove && O.remove.call(t, P));
2971
- u && !k.length && ((!O.teardown || O.teardown.call(t, ie, ne.handle) === !1) && o.removeEvent(t, R, ne.handle), delete m[R]);
3015
+ for (O = o.event.special[R] || {}, R = (n ? O.delegateType : O.bindType) || R, A = m[R] || [], y = y[2] && new RegExp("(^|\\.)" + ie.join("\\.(?:.*\\.|)") + "(\\.|$)"), u = l = A.length; l--; )
3016
+ P = A[l], (a || de === P.origType) && (!r || r.guid === P.guid) && (!y || y.test(P.namespace)) && (!n || n === P.selector || n === "**" && P.selector) && (A.splice(l, 1), P.selector && A.delegateCount--, O.remove && O.remove.call(t, P));
3017
+ u && !A.length && ((!O.teardown || O.teardown.call(t, ie, ne.handle) === !1) && o.removeEvent(t, R, ne.handle), delete m[R]);
2972
3018
  }
2973
3019
  o.isEmptyObject(m) && M.remove(t, "handle events");
2974
3020
  }
@@ -3068,7 +3114,7 @@ function mo() {
3068
3114
  if (n.isTrigger & 1 && this[i]) {
3069
3115
  if (l)
3070
3116
  (o.event.special[i] || {}).delegateType && n.stopPropagation();
3071
- else if (l = A.call(arguments), M.set(this, i, l), this[i](), a = M.get(this, i), M.set(this, i, !1), l !== a)
3117
+ else if (l = L.call(arguments), M.set(this, i, l), this[i](), a = M.get(this, i), M.set(this, i, !1), l !== a)
3072
3118
  return n.stopImmediatePropagation(), n.preventDefault(), a;
3073
3119
  } else l && (M.set(this, i, o.event.trigger(
3074
3120
  l[0],
@@ -3198,10 +3244,10 @@ function mo() {
3198
3244
  };
3199
3245
  }), o.fn.extend({
3200
3246
  on: function(t, i, r, n) {
3201
- return Ki(this, t, i, r, n);
3247
+ return Ji(this, t, i, r, n);
3202
3248
  },
3203
3249
  one: function(t, i, r, n) {
3204
- return Ki(this, t, i, r, n, 1);
3250
+ return Ji(this, t, i, r, n, 1);
3205
3251
  },
3206
3252
  off: function(t, i, r) {
3207
3253
  var n, a;
@@ -3221,17 +3267,17 @@ function mo() {
3221
3267
  });
3222
3268
  }
3223
3269
  });
3224
- var yo = /<script|<style|<link/i, bo = /checked\s*(?:[^=]|=\s*.checked.)/i, wo = /^\s*<!\[CDATA\[|\]\]>\s*$/g;
3225
- function Yr(t, i) {
3270
+ var wo = /<script|<style|<link/i, xo = /checked\s*(?:[^=]|=\s*.checked.)/i, To = /^\s*<!\[CDATA\[|\]\]>\s*$/g;
3271
+ function Gr(t, i) {
3226
3272
  return me(t, "table") && me(i.nodeType !== 11 ? i : i.firstChild, "tr") && o(t).children("tbody")[0] || t;
3227
3273
  }
3228
- function xo(t) {
3274
+ function So(t) {
3229
3275
  return t.type = (t.getAttribute("type") !== null) + "/" + t.type, t;
3230
3276
  }
3231
- function To(t) {
3277
+ function Eo(t) {
3232
3278
  return (t.type || "").slice(0, 5) === "true/" ? t.type = t.type.slice(5) : t.removeAttribute("type"), t;
3233
3279
  }
3234
- function Ur(t, i) {
3280
+ function Zr(t, i) {
3235
3281
  var r, n, a, l, u, y, m;
3236
3282
  if (i.nodeType === 1) {
3237
3283
  if (M.hasData(t) && (l = M.get(t), m = l.events, m)) {
@@ -3243,30 +3289,30 @@ function mo() {
3243
3289
  ee.hasData(t) && (u = ee.access(t), y = o.extend({}, u), ee.set(i, y));
3244
3290
  }
3245
3291
  }
3246
- function So(t, i) {
3292
+ function Co(t, i) {
3247
3293
  var r = i.nodeName.toLowerCase();
3248
3294
  r === "input" && ke.test(t.type) ? i.checked = t.checked : (r === "input" || r === "textarea") && (i.defaultValue = t.defaultValue);
3249
3295
  }
3250
3296
  function $t(t, i, r, n) {
3251
3297
  i = z(i);
3252
- var a, l, u, y, m, w, P = 0, O = t.length, k = O - 1, R = i[0], ie = G(R);
3253
- if (ie || O > 1 && typeof R == "string" && !V.checkClone && bo.test(R))
3298
+ var a, l, u, y, m, w, P = 0, O = t.length, A = O - 1, R = i[0], ie = G(R);
3299
+ if (ie || O > 1 && typeof R == "string" && !V.checkClone && xo.test(R))
3254
3300
  return t.each(function(de) {
3255
3301
  var ne = t.eq(de);
3256
3302
  ie && (i[0] = R.call(this, de, ne.html())), $t(ne, i, r, n);
3257
3303
  });
3258
3304
  if (O && (a = Ne(i, t[0].ownerDocument, !1, t, n), l = a.firstChild, a.childNodes.length === 1 && (a = l), l || n)) {
3259
- for (u = o.map(Ce(a, "script"), xo), y = u.length; P < O; P++)
3260
- m = a, P !== k && (m = o.clone(m, !0, !0), y && o.merge(u, Ce(m, "script"))), r.call(t[P], m, P);
3305
+ for (u = o.map(Ce(a, "script"), So), y = u.length; P < O; P++)
3306
+ m = a, P !== A && (m = o.clone(m, !0, !0), y && o.merge(u, Ce(m, "script"))), r.call(t[P], m, P);
3261
3307
  if (y)
3262
- for (w = u[u.length - 1].ownerDocument, o.map(u, To), P = 0; P < y; P++)
3308
+ for (w = u[u.length - 1].ownerDocument, o.map(u, Eo), P = 0; P < y; P++)
3263
3309
  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, {
3264
3310
  nonce: m.nonce || m.getAttribute("nonce")
3265
- }, w) : wt(m.textContent.replace(wo, ""), m, w));
3311
+ }, w) : wt(m.textContent.replace(To, ""), m, w));
3266
3312
  }
3267
3313
  return t;
3268
3314
  }
3269
- function Gr(t, i, r) {
3315
+ function Kr(t, i, r) {
3270
3316
  for (var n, a = i ? o.filter(i, t) : t, l = 0; (n = a[l]) != null; l++)
3271
3317
  !r && n.nodeType === 1 && o.cleanData(Ce(n)), n.parentNode && (r && Et(n) && vt(Ce(n, "script")), n.parentNode.removeChild(n));
3272
3318
  return t;
@@ -3279,13 +3325,13 @@ function mo() {
3279
3325
  var n, a, l, u, y = t.cloneNode(!0), m = Et(t);
3280
3326
  if (!V.noCloneChecked && (t.nodeType === 1 || t.nodeType === 11) && !o.isXMLDoc(t))
3281
3327
  for (u = Ce(y), l = Ce(t), n = 0, a = l.length; n < a; n++)
3282
- So(l[n], u[n]);
3328
+ Co(l[n], u[n]);
3283
3329
  if (i)
3284
3330
  if (r)
3285
3331
  for (l = l || Ce(t), u = u || Ce(y), n = 0, a = l.length; n < a; n++)
3286
- Ur(l[n], u[n]);
3332
+ Zr(l[n], u[n]);
3287
3333
  else
3288
- Ur(t, y);
3334
+ Zr(t, y);
3289
3335
  return u = Ce(y, "script"), u.length > 0 && vt(u, !m && Ce(t, "script")), y;
3290
3336
  },
3291
3337
  cleanData: function(t) {
@@ -3302,13 +3348,13 @@ function mo() {
3302
3348
  }
3303
3349
  }), o.fn.extend({
3304
3350
  detach: function(t) {
3305
- return Gr(this, t, !0);
3351
+ return Kr(this, t, !0);
3306
3352
  },
3307
3353
  remove: function(t) {
3308
- return Gr(this, t);
3354
+ return Kr(this, t);
3309
3355
  },
3310
3356
  text: function(t) {
3311
- return et(this, function(i) {
3357
+ return tt(this, function(i) {
3312
3358
  return i === void 0 ? o.text(this) : this.empty().each(function() {
3313
3359
  (this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) && (this.textContent = i);
3314
3360
  });
@@ -3317,7 +3363,7 @@ function mo() {
3317
3363
  append: function() {
3318
3364
  return $t(this, arguments, function(t) {
3319
3365
  if (this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) {
3320
- var i = Yr(this, t);
3366
+ var i = Gr(this, t);
3321
3367
  i.appendChild(t);
3322
3368
  }
3323
3369
  });
@@ -3325,7 +3371,7 @@ function mo() {
3325
3371
  prepend: function() {
3326
3372
  return $t(this, arguments, function(t) {
3327
3373
  if (this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9) {
3328
- var i = Yr(this, t);
3374
+ var i = Gr(this, t);
3329
3375
  i.insertBefore(t, i.firstChild);
3330
3376
  }
3331
3377
  });
@@ -3351,11 +3397,11 @@ function mo() {
3351
3397
  });
3352
3398
  },
3353
3399
  html: function(t) {
3354
- return et(this, function(i) {
3400
+ return tt(this, function(i) {
3355
3401
  var r = this[0] || {}, n = 0, a = this.length;
3356
3402
  if (i === void 0 && r.nodeType === 1)
3357
3403
  return r.innerHTML;
3358
- if (typeof i == "string" && !yo.test(i) && !ve[(Ze.exec(i) || ["", ""])[1].toLowerCase()]) {
3404
+ if (typeof i == "string" && !wo.test(i) && !ve[(Ze.exec(i) || ["", ""])[1].toLowerCase()]) {
3359
3405
  i = o.htmlPrefilter(i);
3360
3406
  try {
3361
3407
  for (; n < a; n++)
@@ -3387,10 +3433,10 @@ function mo() {
3387
3433
  return this.pushStack(a);
3388
3434
  };
3389
3435
  });
3390
- var Ji = new RegExp("^(" + Vt + ")(?!px)[a-z%]+$", "i"), Qi = /^--/, yi = function(t) {
3436
+ var Qi = new RegExp("^(" + Vt + ")(?!px)[a-z%]+$", "i"), er = /^--/, yi = function(t) {
3391
3437
  var i = t.ownerDocument.defaultView;
3392
3438
  return (!i || !i.opener) && (i = c), i.getComputedStyle(t);
3393
- }, Zr = function(t, i, r) {
3439
+ }, Jr = function(t, i, r) {
3394
3440
  var n, a, l = {};
3395
3441
  for (a in i)
3396
3442
  l[a] = t.style[a], t.style[a] = i[a];
@@ -3398,13 +3444,13 @@ function mo() {
3398
3444
  for (a in i)
3399
3445
  t.style[a] = l[a];
3400
3446
  return n;
3401
- }, Eo = new RegExp(Xe.join("|"), "i");
3447
+ }, Ao = new RegExp(Xe.join("|"), "i");
3402
3448
  (function() {
3403
3449
  function t() {
3404
3450
  if (w) {
3405
- 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);
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%", ct.appendChild(m).appendChild(w);
3406
3452
  var P = c.getComputedStyle(w);
3407
- 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;
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, ct.removeChild(m), w = null;
3408
3454
  }
3409
3455
  }
3410
3456
  function i(P) {
@@ -3437,20 +3483,20 @@ function mo() {
3437
3483
  // Only Firefox includes border widths
3438
3484
  // in computed dimensions. (gh-4529)
3439
3485
  reliableTrDimensions: function() {
3440
- var P, O, k, R;
3441
- return u == null && (P = U.createElement("table"), O = U.createElement("tr"), k = 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", k.style.height = "9px", k.style.display = "block", lt.appendChild(P).appendChild(O).appendChild(k), R = c.getComputedStyle(O), u = parseInt(R.height, 10) + parseInt(R.borderTopWidth, 10) + parseInt(R.borderBottomWidth, 10) === O.offsetHeight, lt.removeChild(P)), u;
3486
+ 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", ct.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, ct.removeChild(P)), u;
3442
3488
  }
3443
3489
  }));
3444
3490
  })();
3445
3491
  function ni(t, i, r) {
3446
- var n, a, l, u, y = Qi.test(i), m = t.style;
3447
- return r = r || yi(t), r && (u = r.getPropertyValue(i) || r[i], y && u && (u = u.replace(C, "$1") || void 0), u === "" && !Et(t) && (u = o.style(t, i)), !V.pixelBoxStyles() && Ji.test(u) && Eo.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 ? (
3492
+ 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 === "" && !Et(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 ? (
3448
3494
  // Support: IE <=9 - 11 only
3449
3495
  // IE returns zIndex value as an integer.
3450
3496
  u + ""
3451
3497
  ) : u;
3452
3498
  }
3453
- function Kr(t, i) {
3499
+ function Qr(t, i) {
3454
3500
  return {
3455
3501
  get: function() {
3456
3502
  if (t()) {
@@ -3461,28 +3507,28 @@ function mo() {
3461
3507
  }
3462
3508
  };
3463
3509
  }
3464
- var Jr = ["Webkit", "Moz", "ms"], Qr = U.createElement("div").style, en = {};
3465
- function Co(t) {
3466
- for (var i = t[0].toUpperCase() + t.slice(1), r = Jr.length; r--; )
3467
- if (t = Jr[r] + i, t in Qr)
3510
+ var en = ["Webkit", "Moz", "ms"], tn = U.createElement("div").style, rn = {};
3511
+ function ko(t) {
3512
+ for (var i = t[0].toUpperCase() + t.slice(1), r = en.length; r--; )
3513
+ if (t = en[r] + i, t in tn)
3468
3514
  return t;
3469
3515
  }
3470
- function er(t) {
3471
- var i = o.cssProps[t] || en[t];
3472
- return i || (t in Qr ? t : en[t] = Co(t) || t);
3516
+ function tr(t) {
3517
+ var i = o.cssProps[t] || rn[t];
3518
+ return i || (t in tn ? t : rn[t] = ko(t) || t);
3473
3519
  }
3474
- var Ao = /^(none|table(?!-c[ea]).+)/, ko = { position: "absolute", visibility: "hidden", display: "block" }, tn = {
3520
+ var Lo = /^(none|table(?!-c[ea]).+)/, No = { position: "absolute", visibility: "hidden", display: "block" }, nn = {
3475
3521
  letterSpacing: "0",
3476
3522
  fontWeight: "400"
3477
3523
  };
3478
- function rn(t, i, r) {
3524
+ function on(t, i, r) {
3479
3525
  var n = Ht.exec(i);
3480
3526
  return n ? (
3481
3527
  // Guard against undefined "subtract", e.g., when used as in cssHooks
3482
3528
  Math.max(0, n[2] - (r || 0)) + (n[3] || "px")
3483
3529
  ) : i;
3484
3530
  }
3485
- function tr(t, i, r, n, a, l) {
3531
+ function ir(t, i, r, n, a, l) {
3486
3532
  var u = i === "width" ? 1 : 0, y = 0, m = 0, w = 0;
3487
3533
  if (r === (n ? "border" : "content"))
3488
3534
  return 0;
@@ -3494,9 +3540,9 @@ function mo() {
3494
3540
  // Use an explicit zero to avoid NaN (gh-3964)
3495
3541
  )) || 0), m + w;
3496
3542
  }
3497
- function nn(t, i, r) {
3543
+ function sn(t, i, r) {
3498
3544
  var n = yi(t), a = !V.boxSizingReliable() || r, l = a && o.css(t, "boxSizing", !1, n) === "border-box", u = l, y = ni(t, i, n), m = "offset" + i[0].toUpperCase() + i.slice(1);
3499
- if (Ji.test(y)) {
3545
+ if (Qi.test(y)) {
3500
3546
  if (!r)
3501
3547
  return y;
3502
3548
  y = "auto";
@@ -3510,7 +3556,7 @@ function mo() {
3510
3556
  y === "auto" || // Support: Android <=4.1 - 4.3 only
3511
3557
  // Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602)
3512
3558
  !parseFloat(y) && o.css(t, "display", !1, n) === "inline") && // Make sure the element is visible & connected
3513
- t.getClientRects().length && (l = o.css(t, "boxSizing", !1, n) === "border-box", u = m in t, u && (y = t[m])), y = parseFloat(y) || 0, y + tr(
3559
+ t.getClientRects().length && (l = o.css(t, "boxSizing", !1, n) === "border-box", u = m in t, u && (y = t[m])), y = parseFloat(y) || 0, y + ir(
3514
3560
  t,
3515
3561
  i,
3516
3562
  r || (l ? "border" : "content"),
@@ -3570,8 +3616,8 @@ function mo() {
3570
3616
  // Get and set the style property on a DOM Node
3571
3617
  style: function(t, i, r, n) {
3572
3618
  if (!(!t || t.nodeType === 3 || t.nodeType === 8 || !t.style)) {
3573
- var a, l, u, y = S(i), m = Qi.test(i), w = t.style;
3574
- if (m || (i = er(y)), u = o.cssHooks[i] || o.cssHooks[y], r !== void 0) {
3619
+ var a, l, u, y = S(i), m = er.test(i), w = t.style;
3620
+ if (m || (i = tr(y)), u = o.cssHooks[i] || o.cssHooks[y], r !== void 0) {
3575
3621
  if (l = typeof r, l === "string" && (a = Ht.exec(r)) && a[1] && (r = ri(t, i, a), l = "number"), r == null || r !== r)
3576
3622
  return;
3577
3623
  l === "number" && !m && (r += a && a[3] || (o.cssNumber[y] ? "" : "px")), !V.clearCloneStyle && r === "" && i.indexOf("background") === 0 && (w[i] = "inherit"), (!u || !("set" in u) || (r = u.set(t, r, n)) !== void 0) && (m ? w.setProperty(i, r) : w[i] = r);
@@ -3580,25 +3626,25 @@ function mo() {
3580
3626
  }
3581
3627
  },
3582
3628
  css: function(t, i, r, n) {
3583
- var a, l, u, y = S(i), m = Qi.test(i);
3584
- return m || (i = er(y)), u = o.cssHooks[i] || o.cssHooks[y], u && "get" in u && (a = u.get(t, !0, r)), a === void 0 && (a = ni(t, i, n)), a === "normal" && i in tn && (a = tn[i]), r === "" || r ? (l = parseFloat(a), r === !0 || isFinite(l) ? l || 0 : a) : a;
3629
+ var a, l, u, y = S(i), m = er.test(i);
3630
+ return m || (i = tr(y)), u = o.cssHooks[i] || o.cssHooks[y], u && "get" in u && (a = u.get(t, !0, r)), a === void 0 && (a = ni(t, i, n)), a === "normal" && i in nn && (a = nn[i]), r === "" || r ? (l = parseFloat(a), r === !0 || isFinite(l) ? l || 0 : a) : a;
3585
3631
  }
3586
3632
  }), o.each(["height", "width"], function(t, i) {
3587
3633
  o.cssHooks[i] = {
3588
3634
  get: function(r, n, a) {
3589
3635
  if (n)
3590
- return Ao.test(o.css(r, "display")) && // Support: Safari 8+
3636
+ return Lo.test(o.css(r, "display")) && // Support: Safari 8+
3591
3637
  // Table columns in Safari have non-zero offsetWidth & zero
3592
3638
  // getBoundingClientRect().width unless display is changed.
3593
3639
  // Support: IE <=11 only
3594
3640
  // Running getBoundingClientRect on a disconnected node
3595
3641
  // in IE throws an error.
3596
- (!r.getClientRects().length || !r.getBoundingClientRect().width) ? Zr(r, ko, function() {
3597
- return nn(r, i, a);
3598
- }) : nn(r, i, a);
3642
+ (!r.getClientRects().length || !r.getBoundingClientRect().width) ? Jr(r, No, function() {
3643
+ return sn(r, i, a);
3644
+ }) : sn(r, i, a);
3599
3645
  },
3600
3646
  set: function(r, n, a) {
3601
- var l, u = yi(r), y = !V.scrollboxSize() && u.position === "absolute", m = y || a, w = m && o.css(r, "boxSizing", !1, u) === "border-box", P = a ? tr(
3647
+ var l, u = yi(r), y = !V.scrollboxSize() && u.position === "absolute", m = y || a, w = m && o.css(r, "boxSizing", !1, u) === "border-box", P = a ? ir(
3602
3648
  r,
3603
3649
  i,
3604
3650
  a,
@@ -3606,15 +3652,15 @@ function mo() {
3606
3652
  u
3607
3653
  ) : 0;
3608
3654
  return w && y && (P -= Math.ceil(
3609
- r["offset" + i[0].toUpperCase() + i.slice(1)] - parseFloat(u[i]) - tr(r, i, "border", !1, u) - 0.5
3610
- )), P && (l = Ht.exec(n)) && (l[3] || "px") !== "px" && (r.style[i] = n, n = o.css(r, i)), rn(r, n, P);
3655
+ r["offset" + i[0].toUpperCase() + i.slice(1)] - parseFloat(u[i]) - ir(r, i, "border", !1, u) - 0.5
3656
+ )), P && (l = Ht.exec(n)) && (l[3] || "px") !== "px" && (r.style[i] = n, n = o.css(r, i)), on(r, n, P);
3611
3657
  }
3612
3658
  };
3613
- }), o.cssHooks.marginLeft = Kr(
3659
+ }), o.cssHooks.marginLeft = Qr(
3614
3660
  V.reliableMarginLeft,
3615
3661
  function(t, i) {
3616
3662
  if (i)
3617
- return (parseFloat(ni(t, "marginLeft")) || t.getBoundingClientRect().left - Zr(t, { marginLeft: 0 }, function() {
3663
+ return (parseFloat(ni(t, "marginLeft")) || t.getBoundingClientRect().left - Jr(t, { marginLeft: 0 }, function() {
3618
3664
  return t.getBoundingClientRect().left;
3619
3665
  })) + "px";
3620
3666
  }
@@ -3629,10 +3675,10 @@ function mo() {
3629
3675
  a[t + Xe[n] + i] = l[n] || l[n - 2] || l[0];
3630
3676
  return a;
3631
3677
  }
3632
- }, t !== "margin" && (o.cssHooks[t + i].set = rn);
3678
+ }, t !== "margin" && (o.cssHooks[t + i].set = on);
3633
3679
  }), o.fn.extend({
3634
3680
  css: function(t, i) {
3635
- return et(this, function(r, n, a) {
3681
+ return tt(this, function(r, n, a) {
3636
3682
  var l, u, y = {}, m = 0;
3637
3683
  if (Array.isArray(n)) {
3638
3684
  for (l = yi(r), u = n.length; m < u; m++)
@@ -3672,7 +3718,7 @@ function mo() {
3672
3718
  return t.elem.nodeType !== 1 || t.elem[t.prop] != null && t.elem.style[t.prop] == null ? t.elem[t.prop] : (i = o.css(t.elem, t.prop, ""), !i || i === "auto" ? 0 : i);
3673
3719
  },
3674
3720
  set: function(t) {
3675
- o.fx.step[t.prop] ? o.fx.step[t.prop](t) : t.elem.nodeType === 1 && (o.cssHooks[t.prop] || t.elem.style[er(t.prop)] != null) ? o.style(t.elem, t.prop, t.now + t.unit) : t.elem[t.prop] = t.now;
3721
+ o.fx.step[t.prop] ? o.fx.step[t.prop](t) : t.elem.nodeType === 1 && (o.cssHooks[t.prop] || t.elem.style[tr(t.prop)] != null) ? o.style(t.elem, t.prop, t.now + t.unit) : t.elem[t.prop] = t.now;
3676
3722
  }
3677
3723
  }
3678
3724
  }, Ye.propHooks.scrollTop = Ye.propHooks.scrollLeft = {
@@ -3688,11 +3734,11 @@ function mo() {
3688
3734
  },
3689
3735
  _default: "swing"
3690
3736
  }, o.fx = Ye.prototype.init, o.fx.step = {};
3691
- var Xt, bi, Lo = /^(?:toggle|show|hide)$/, No = /queueHooks$/;
3692
- function ir() {
3693
- bi && (U.hidden === !1 && c.requestAnimationFrame ? c.requestAnimationFrame(ir) : c.setTimeout(ir, o.fx.interval), o.fx.tick());
3737
+ var Xt, bi, Po = /^(?:toggle|show|hide)$/, Do = /queueHooks$/;
3738
+ function rr() {
3739
+ bi && (U.hidden === !1 && c.requestAnimationFrame ? c.requestAnimationFrame(rr) : c.setTimeout(rr, o.fx.interval), o.fx.tick());
3694
3740
  }
3695
- function on() {
3741
+ function an() {
3696
3742
  return c.setTimeout(function() {
3697
3743
  Xt = void 0;
3698
3744
  }), Xt = Date.now();
@@ -3703,22 +3749,22 @@ function mo() {
3703
3749
  r = Xe[n], a["margin" + r] = a["padding" + r] = t;
3704
3750
  return i && (a.opacity = a.width = t), a;
3705
3751
  }
3706
- function sn(t, i, r) {
3707
- for (var n, a = (ot.tweeners[i] || []).concat(ot.tweeners["*"]), l = 0, u = a.length; l < u; l++)
3752
+ function ln(t, i, r) {
3753
+ for (var n, a = (st.tweeners[i] || []).concat(st.tweeners["*"]), l = 0, u = a.length; l < u; l++)
3708
3754
  if (n = a[l].call(r, i, t))
3709
3755
  return n;
3710
3756
  }
3711
- function Po(t, i, r) {
3712
- var n, a, l, u, y, m, w, P, O = "width" in i || "height" in i, k = this, R = {}, ie = t.style, de = t.nodeType && tt(t), ne = M.get(t, "fxshow");
3757
+ 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 && it(t), ne = M.get(t, "fxshow");
3713
3759
  r.queue || (u = o._queueHooks(t, "fx"), u.unqueued == null && (u.unqueued = 0, y = u.empty.fire, u.empty.fire = function() {
3714
3760
  u.unqueued || y();
3715
- }), u.unqueued++, k.always(function() {
3716
- k.always(function() {
3761
+ }), u.unqueued++, A.always(function() {
3762
+ A.always(function() {
3717
3763
  u.unqueued--, o.queue(t, "fx").length || u.empty.fire();
3718
3764
  });
3719
3765
  }));
3720
3766
  for (n in i)
3721
- if (a = i[n], Lo.test(a)) {
3767
+ if (a = i[n], Po.test(a)) {
3722
3768
  if (delete i[n], l = l || a === "toggle", a === (de ? "hide" : "show"))
3723
3769
  if (a === "show" && ne && ne[n] !== void 0)
3724
3770
  de = !0;
@@ -3727,20 +3773,20 @@ function mo() {
3727
3773
  R[n] = ne && ne[n] || o.style(t, n);
3728
3774
  }
3729
3775
  if (m = !o.isEmptyObject(i), !(!m && o.isEmptyObject(R))) {
3730
- O && t.nodeType === 1 && (r.overflow = [ie.overflow, ie.overflowX, ie.overflowY], w = ne && ne.display, w == null && (w = M.get(t, "display")), P = o.css(t, "display"), P === "none" && (w ? P = w : (ue([t], !0), w = t.style.display || w, P = o.css(t, "display"), ue([t]))), (P === "inline" || P === "inline-block" && w != null) && o.css(t, "float") === "none" && (m || (k.done(function() {
3776
+ O && t.nodeType === 1 && (r.overflow = [ie.overflow, ie.overflowX, ie.overflowY], w = ne && ne.display, w == null && (w = M.get(t, "display")), P = o.css(t, "display"), P === "none" && (w ? P = w : (ue([t], !0), w = t.style.display || w, P = o.css(t, "display"), ue([t]))), (P === "inline" || P === "inline-block" && w != null) && o.css(t, "float") === "none" && (m || (A.done(function() {
3731
3777
  ie.display = w;
3732
- }), w == null && (P = ie.display, w = P === "none" ? "" : P)), ie.display = "inline-block")), r.overflow && (ie.overflow = "hidden", k.always(function() {
3778
+ }), w == null && (P = ie.display, w = P === "none" ? "" : P)), ie.display = "inline-block")), r.overflow && (ie.overflow = "hidden", A.always(function() {
3733
3779
  ie.overflow = r.overflow[0], ie.overflowX = r.overflow[1], ie.overflowY = r.overflow[2];
3734
3780
  })), m = !1;
3735
3781
  for (n in R)
3736
- m || (ne ? "hidden" in ne && (de = ne.hidden) : ne = M.access(t, "fxshow", { display: w }), l && (ne.hidden = !de), de && ue([t], !0), k.done(function() {
3782
+ m || (ne ? "hidden" in ne && (de = ne.hidden) : ne = M.access(t, "fxshow", { display: w }), l && (ne.hidden = !de), de && ue([t], !0), A.done(function() {
3737
3783
  de || ue([t]), M.remove(t, "fxshow");
3738
3784
  for (n in R)
3739
3785
  o.style(t, n, R[n]);
3740
- })), m = sn(de ? ne[n] : 0, n, k), n in ne || (ne[n] = m.start, de && (m.end = m.start, m.start = 0));
3786
+ })), m = ln(de ? ne[n] : 0, n, A), n in ne || (ne[n] = m.start, de && (m.end = m.start, m.start = 0));
3741
3787
  }
3742
3788
  }
3743
- function Do(t, i) {
3789
+ function zo(t, i) {
3744
3790
  var r, n, a, l, u;
3745
3791
  for (r in t)
3746
3792
  if (n = S(r), a = i[n], l = t[r], Array.isArray(l) && (a = l[1], l = t[r] = l[0]), r !== n && (t[n] = l, delete t[r]), u = o.cssHooks[n], u && "expand" in u) {
@@ -3750,15 +3796,15 @@ function mo() {
3750
3796
  } else
3751
3797
  i[n] = a;
3752
3798
  }
3753
- function ot(t, i, r) {
3754
- var n, a, l = 0, u = ot.prefilters.length, y = o.Deferred().always(function() {
3799
+ function st(t, i, r) {
3800
+ var n, a, l = 0, u = st.prefilters.length, y = o.Deferred().always(function() {
3755
3801
  delete m.elem;
3756
3802
  }), m = function() {
3757
3803
  if (a)
3758
3804
  return !1;
3759
- for (var O = Xt || on(), k = Math.max(0, w.startTime + w.duration - O), R = k / w.duration || 0, ie = 1 - R, de = 0, ne = w.tweens.length; de < ne; de++)
3805
+ for (var O = Xt || an(), A = Math.max(0, w.startTime + w.duration - O), R = A / w.duration || 0, ie = 1 - R, de = 0, ne = w.tweens.length; de < ne; de++)
3760
3806
  w.tweens[de].run(ie);
3761
- return y.notifyWith(t, [w, ie, k]), ie < 1 && ne ? k : (ne || y.notifyWith(t, [w, 1, 0]), y.resolveWith(t, [w]), !1);
3807
+ return y.notifyWith(t, [w, ie, A]), ie < 1 && ne ? A : (ne || y.notifyWith(t, [w, 1, 0]), y.resolveWith(t, [w]), !1);
3762
3808
  }, w = y.promise({
3763
3809
  elem: t,
3764
3810
  props: o.extend({}, i),
@@ -3768,32 +3814,32 @@ function mo() {
3768
3814
  }, r),
3769
3815
  originalProperties: i,
3770
3816
  originalOptions: r,
3771
- startTime: Xt || on(),
3817
+ startTime: Xt || an(),
3772
3818
  duration: r.duration,
3773
3819
  tweens: [],
3774
- createTween: function(O, k) {
3820
+ createTween: function(O, A) {
3775
3821
  var R = o.Tween(
3776
3822
  t,
3777
3823
  w.opts,
3778
3824
  O,
3779
- k,
3825
+ A,
3780
3826
  w.opts.specialEasing[O] || w.opts.easing
3781
3827
  );
3782
3828
  return w.tweens.push(R), R;
3783
3829
  },
3784
3830
  stop: function(O) {
3785
- var k = 0, R = O ? w.tweens.length : 0;
3831
+ var A = 0, R = O ? w.tweens.length : 0;
3786
3832
  if (a)
3787
3833
  return this;
3788
- for (a = !0; k < R; k++)
3789
- w.tweens[k].run(1);
3834
+ for (a = !0; A < R; A++)
3835
+ w.tweens[A].run(1);
3790
3836
  return O ? (y.notifyWith(t, [w, 1, 0]), y.resolveWith(t, [w, O])) : y.rejectWith(t, [w, O]), this;
3791
3837
  }
3792
3838
  }), P = w.props;
3793
- for (Do(P, w.opts.specialEasing); l < u; l++)
3794
- if (n = ot.prefilters[l].call(w, t, P, w.opts), n)
3839
+ for (zo(P, w.opts.specialEasing); l < u; l++)
3840
+ if (n = st.prefilters[l].call(w, t, P, w.opts), n)
3795
3841
  return G(n.stop) && (o._queueHooks(w.elem, w.opts.queue).stop = n.stop.bind(n)), n;
3796
- return o.map(P, sn, 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(
3842
+ 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(
3797
3843
  o.extend(m, {
3798
3844
  elem: t,
3799
3845
  anim: w,
@@ -3801,7 +3847,7 @@ function mo() {
3801
3847
  })
3802
3848
  ), w;
3803
3849
  }
3804
- o.Animation = o.extend(ot, {
3850
+ o.Animation = o.extend(st, {
3805
3851
  tweeners: {
3806
3852
  "*": [function(t, i) {
3807
3853
  var r = this.createTween(t, i);
@@ -3811,11 +3857,11 @@ function mo() {
3811
3857
  tweener: function(t, i) {
3812
3858
  G(t) ? (i = t, t = ["*"]) : t = t.match(He);
3813
3859
  for (var r, n = 0, a = t.length; n < a; n++)
3814
- r = t[n], ot.tweeners[r] = ot.tweeners[r] || [], ot.tweeners[r].unshift(i);
3860
+ r = t[n], st.tweeners[r] = st.tweeners[r] || [], st.tweeners[r].unshift(i);
3815
3861
  },
3816
- prefilters: [Po],
3862
+ prefilters: [Mo],
3817
3863
  prefilter: function(t, i) {
3818
- i ? ot.prefilters.unshift(t) : ot.prefilters.push(t);
3864
+ i ? st.prefilters.unshift(t) : st.prefilters.push(t);
3819
3865
  }
3820
3866
  }), o.speed = function(t, i, r) {
3821
3867
  var n = t && typeof t == "object" ? o.extend({}, t) : {
@@ -3828,11 +3874,11 @@ function mo() {
3828
3874
  }, n;
3829
3875
  }, o.fn.extend({
3830
3876
  fadeTo: function(t, i, r, n) {
3831
- return this.filter(tt).css("opacity", 0).show().end().animate({ opacity: i }, t, r, n);
3877
+ return this.filter(it).css("opacity", 0).show().end().animate({ opacity: i }, t, r, n);
3832
3878
  },
3833
3879
  animate: function(t, i, r, n) {
3834
3880
  var a = o.isEmptyObject(t), l = o.speed(i, r, n), u = function() {
3835
- var y = ot(this, o.extend({}, t), l);
3881
+ var y = st(this, o.extend({}, t), l);
3836
3882
  (a || M.get(this, "finish")) && y.stop(!0);
3837
3883
  };
3838
3884
  return u.finish = u, a || l.queue === !1 ? this.each(u) : this.queue(l.queue, u);
@@ -3848,7 +3894,7 @@ function mo() {
3848
3894
  y[l] && y[l].stop && n(y[l]);
3849
3895
  else
3850
3896
  for (l in y)
3851
- y[l] && y[l].stop && No.test(l) && n(y[l]);
3897
+ y[l] && y[l].stop && Do.test(l) && n(y[l]);
3852
3898
  for (l = u.length; l--; )
3853
3899
  u[l].elem === this && (t == null || u[l].queue === t) && (u[l].anim.stop(r), a = !1, u.splice(l, 1));
3854
3900
  (a || !r) && o.dequeue(this, t);
@@ -3888,7 +3934,7 @@ function mo() {
3888
3934
  }, o.fx.timer = function(t) {
3889
3935
  o.timers.push(t), o.fx.start();
3890
3936
  }, o.fx.interval = 13, o.fx.start = function() {
3891
- bi || (bi = !0, ir());
3937
+ bi || (bi = !0, rr());
3892
3938
  }, o.fx.stop = function() {
3893
3939
  bi = null;
3894
3940
  }, o.fx.speeds = {
@@ -3907,10 +3953,10 @@ function mo() {
3907
3953
  var t = U.createElement("input"), i = U.createElement("select"), r = i.appendChild(U.createElement("option"));
3908
3954
  t.type = "checkbox", V.checkOn = t.value !== "", V.optSelected = r.selected, t = U.createElement("input"), t.value = "t", t.type = "radio", V.radioValue = t.value === "t";
3909
3955
  })();
3910
- var an, oi = o.expr.attrHandle;
3956
+ var cn, oi = o.expr.attrHandle;
3911
3957
  o.fn.extend({
3912
3958
  attr: function(t, i) {
3913
- return et(this, o.attr, t, i, arguments.length > 1);
3959
+ return tt(this, o.attr, t, i, arguments.length > 1);
3914
3960
  },
3915
3961
  removeAttr: function(t) {
3916
3962
  return this.each(function() {
@@ -3923,7 +3969,7 @@ function mo() {
3923
3969
  if (!(l === 3 || l === 8 || l === 2)) {
3924
3970
  if (typeof t.getAttribute > "u")
3925
3971
  return o.prop(t, i, r);
3926
- if ((l !== 1 || !o.isXMLDoc(t)) && (a = o.attrHooks[i.toLowerCase()] || (o.expr.match.bool.test(i) ? an : void 0)), r !== void 0) {
3972
+ if ((l !== 1 || !o.isXMLDoc(t)) && (a = o.attrHooks[i.toLowerCase()] || (o.expr.match.bool.test(i) ? cn : void 0)), r !== void 0) {
3927
3973
  if (r === null) {
3928
3974
  o.removeAttr(t, i);
3929
3975
  return;
@@ -3949,7 +3995,7 @@ function mo() {
3949
3995
  for (; r = a[n++]; )
3950
3996
  t.removeAttribute(r);
3951
3997
  }
3952
- }), an = {
3998
+ }), cn = {
3953
3999
  set: function(t, i, r) {
3954
4000
  return i === !1 ? o.removeAttr(t, r) : t.setAttribute(r, r), r;
3955
4001
  }
@@ -3960,10 +4006,10 @@ function mo() {
3960
4006
  return l || (y = oi[m], oi[m] = u, u = r(n, a, l) != null ? m : null, oi[m] = y), u;
3961
4007
  };
3962
4008
  });
3963
- var Mo = /^(?:input|select|textarea|button)$/i, zo = /^(?:a|area)$/i;
4009
+ var Io = /^(?:input|select|textarea|button)$/i, Ho = /^(?:a|area)$/i;
3964
4010
  o.fn.extend({
3965
4011
  prop: function(t, i) {
3966
- return et(this, o.prop, t, i, arguments.length > 1);
4012
+ return tt(this, o.prop, t, i, arguments.length > 1);
3967
4013
  },
3968
4014
  removeProp: function(t) {
3969
4015
  return this.each(function() {
@@ -3980,7 +4026,7 @@ function mo() {
3980
4026
  tabIndex: {
3981
4027
  get: function(t) {
3982
4028
  var i = o.find.attr(t, "tabindex");
3983
- return i ? parseInt(i, 10) : Mo.test(t.nodeName) || zo.test(t.nodeName) && t.href ? 0 : -1;
4029
+ return i ? parseInt(i, 10) : Io.test(t.nodeName) || Ho.test(t.nodeName) && t.href ? 0 : -1;
3984
4030
  }
3985
4031
  }
3986
4032
  },
@@ -4018,7 +4064,7 @@ function mo() {
4018
4064
  function Bt(t) {
4019
4065
  return t.getAttribute && t.getAttribute("class") || "";
4020
4066
  }
4021
- function rr(t) {
4067
+ function nr(t) {
4022
4068
  return Array.isArray(t) ? t : typeof t == "string" ? t.match(He) || [] : [];
4023
4069
  }
4024
4070
  o.fn.extend({
@@ -4026,7 +4072,7 @@ function mo() {
4026
4072
  var i, r, n, a, l, u;
4027
4073
  return G(t) ? this.each(function(y) {
4028
4074
  o(this).addClass(t.call(this, y, Bt(this)));
4029
- }) : (i = rr(t), i.length ? this.each(function() {
4075
+ }) : (i = nr(t), i.length ? this.each(function() {
4030
4076
  if (n = Bt(this), r = this.nodeType === 1 && " " + Ot(n) + " ", r) {
4031
4077
  for (l = 0; l < i.length; l++)
4032
4078
  a = i[l], r.indexOf(" " + a + " ") < 0 && (r += a + " ");
@@ -4038,7 +4084,7 @@ function mo() {
4038
4084
  var i, r, n, a, l, u;
4039
4085
  return G(t) ? this.each(function(y) {
4040
4086
  o(this).removeClass(t.call(this, y, Bt(this)));
4041
- }) : arguments.length ? (i = rr(t), i.length ? this.each(function() {
4087
+ }) : arguments.length ? (i = nr(t), i.length ? this.each(function() {
4042
4088
  if (n = Bt(this), r = this.nodeType === 1 && " " + Ot(n) + " ", r) {
4043
4089
  for (l = 0; l < i.length; l++)
4044
4090
  for (a = i[l]; r.indexOf(" " + a + " ") > -1; )
@@ -4054,7 +4100,7 @@ function mo() {
4054
4100
  t.call(this, m, Bt(this), i),
4055
4101
  i
4056
4102
  );
4057
- }) : typeof i == "boolean" && y ? i ? this.addClass(t) : this.removeClass(t) : (r = rr(t), this.each(function() {
4103
+ }) : typeof i == "boolean" && y ? i ? this.addClass(t) : this.removeClass(t) : (r = nr(t), this.each(function() {
4058
4104
  if (y)
4059
4105
  for (l = o(this), a = 0; a < r.length; a++)
4060
4106
  n = r[a], l.hasClass(n) ? l.removeClass(n) : l.addClass(n);
@@ -4072,7 +4118,7 @@ function mo() {
4072
4118
  return !1;
4073
4119
  }
4074
4120
  });
4075
- var Io = /\r/g;
4121
+ var Oo = /\r/g;
4076
4122
  o.fn.extend({
4077
4123
  val: function(t) {
4078
4124
  var i, r, n, a = this[0];
@@ -4081,7 +4127,7 @@ function mo() {
4081
4127
  this.nodeType === 1 && (n ? u = t.call(this, l, o(this).val()) : u = t, u == null ? u = "" : typeof u == "number" ? u += "" : Array.isArray(u) && (u = o.map(u, function(y) {
4082
4128
  return y == null ? "" : y + "";
4083
4129
  })), i = o.valHooks[this.type] || o.valHooks[this.nodeName.toLowerCase()], (!i || !("set" in i) || i.set(this, u, "value") === void 0) && (this.value = u));
4084
- })) : a ? (i = o.valHooks[a.type] || o.valHooks[a.nodeName.toLowerCase()], i && "get" in i && (r = i.get(a, "value")) !== void 0 ? r : (r = a.value, typeof r == "string" ? r.replace(Io, "") : r ?? "")) : void 0;
4130
+ })) : a ? (i = o.valHooks[a.type] || o.valHooks[a.nodeName.toLowerCase()], i && "get" in i && (r = i.get(a, "value")) !== void 0 ? r : (r = a.value, typeof r == "string" ? r.replace(Oo, "") : r ?? "")) : void 0;
4085
4131
  }
4086
4132
  }), o.extend({
4087
4133
  valHooks: {
@@ -4124,7 +4170,7 @@ function mo() {
4124
4170
  return t.getAttribute("value") === null ? "on" : t.value;
4125
4171
  });
4126
4172
  });
4127
- var si = c.location, ln = { guid: Date.now() }, nr = /\?/;
4173
+ var si = c.location, un = { guid: Date.now() }, or = /\?/;
4128
4174
  o.parseXML = function(t) {
4129
4175
  var i, r;
4130
4176
  if (!t || typeof t != "string")
@@ -4138,21 +4184,21 @@ function mo() {
4138
4184
  }).join(`
4139
4185
  `) : t)), i;
4140
4186
  };
4141
- var cn = /^(?:focusinfocus|focusoutblur)$/, un = function(t) {
4187
+ var fn = /^(?:focusinfocus|focusoutblur)$/, dn = function(t) {
4142
4188
  t.stopPropagation();
4143
4189
  };
4144
4190
  o.extend(o.event, {
4145
4191
  trigger: function(t, i, r, n) {
4146
- var a, l, u, y, m, w, P, O, k = [r || U], R = we.call(t, "type") ? t.type : t, ie = we.call(t, "namespace") ? t.namespace.split(".") : [];
4147
- if (l = O = u = r = r || U, !(r.nodeType === 3 || r.nodeType === 8) && !cn.test(R + o.event.triggered) && (R.indexOf(".") > -1 && (ie = R.split("."), R = ie.shift(), ie.sort()), m = R.indexOf(":") < 0 && "on" + R, t = t[o.expando] ? t : new o.Event(R, typeof t == "object" && t), t.isTrigger = n ? 2 : 3, t.namespace = ie.join("."), t.rnamespace = t.namespace ? new RegExp("(^|\\.)" + ie.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, t.result = void 0, t.target || (t.target = r), i = i == null ? [t] : o.makeArray(i, [t]), P = o.event.special[R] || {}, !(!n && P.trigger && P.trigger.apply(r, i) === !1))) {
4192
+ var a, l, u, y, m, w, P, O, A = [r || U], R = ye.call(t, "type") ? t.type : t, ie = ye.call(t, "namespace") ? t.namespace.split(".") : [];
4193
+ if (l = O = u = r = r || U, !(r.nodeType === 3 || r.nodeType === 8) && !fn.test(R + o.event.triggered) && (R.indexOf(".") > -1 && (ie = R.split("."), R = ie.shift(), ie.sort()), m = R.indexOf(":") < 0 && "on" + R, t = t[o.expando] ? t : new o.Event(R, typeof t == "object" && t), t.isTrigger = n ? 2 : 3, t.namespace = ie.join("."), t.rnamespace = t.namespace ? new RegExp("(^|\\.)" + ie.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, t.result = void 0, t.target || (t.target = r), i = i == null ? [t] : o.makeArray(i, [t]), P = o.event.special[R] || {}, !(!n && P.trigger && P.trigger.apply(r, i) === !1))) {
4148
4194
  if (!n && !P.noBubble && !Ee(r)) {
4149
- for (y = P.delegateType || R, cn.test(y + R) || (l = l.parentNode); l; l = l.parentNode)
4150
- k.push(l), u = l;
4151
- u === (r.ownerDocument || U) && k.push(u.defaultView || u.parentWindow || c);
4195
+ for (y = P.delegateType || R, fn.test(y + R) || (l = l.parentNode); l; l = l.parentNode)
4196
+ A.push(l), u = l;
4197
+ u === (r.ownerDocument || U) && A.push(u.defaultView || u.parentWindow || c);
4152
4198
  }
4153
- for (a = 0; (l = k[a++]) && !t.isPropagationStopped(); )
4199
+ for (a = 0; (l = A[a++]) && !t.isPropagationStopped(); )
4154
4200
  O = l, t.type = a > 1 ? y : P.bindType || R, w = (M.get(l, "events") || /* @__PURE__ */ Object.create(null))[t.type] && M.get(l, "handle"), w && w.apply(l, i), w = m && l[m], w && w.apply && H(l) && (t.result = w.apply(l, i), t.result === !1 && t.preventDefault());
4155
- return t.type = R, !n && !t.isDefaultPrevented() && (!P._default || P._default.apply(k.pop(), i) === !1) && H(r) && m && G(r[R]) && !Ee(r) && (u = r[m], u && (r[m] = null), o.event.triggered = R, t.isPropagationStopped() && O.addEventListener(R, un), r[R](), t.isPropagationStopped() && O.removeEventListener(R, un), o.event.triggered = void 0, u && (r[m] = u)), t.result;
4201
+ return t.type = R, !n && !t.isDefaultPrevented() && (!P._default || P._default.apply(A.pop(), i) === !1) && H(r) && m && G(r[R]) && !Ee(r) && (u = r[m], u && (r[m] = null), o.event.triggered = R, t.isPropagationStopped() && O.addEventListener(R, dn), r[R](), t.isPropagationStopped() && O.removeEventListener(R, dn), o.event.triggered = void 0, u && (r[m] = u)), t.result;
4156
4202
  }
4157
4203
  },
4158
4204
  // Piggyback on a donor event to simulate a different one
@@ -4180,12 +4226,12 @@ function mo() {
4180
4226
  return o.event.trigger(t, i, r, !0);
4181
4227
  }
4182
4228
  });
4183
- var Ho = /\[\]$/, fn = /\r?\n/g, Oo = /^(?:submit|button|image|reset|file)$/i, Bo = /^(?:input|select|textarea|keygen)/i;
4184
- function or(t, i, r, n) {
4229
+ var Bo = /\[\]$/, hn = /\r?\n/g, qo = /^(?:submit|button|image|reset|file)$/i, Ro = /^(?:input|select|textarea|keygen)/i;
4230
+ function sr(t, i, r, n) {
4185
4231
  var a;
4186
4232
  if (Array.isArray(i))
4187
4233
  o.each(i, function(l, u) {
4188
- r || Ho.test(t) ? n(t, u) : or(
4234
+ r || Bo.test(t) ? n(t, u) : sr(
4189
4235
  t + "[" + (typeof u == "object" && u != null ? l : "") + "]",
4190
4236
  u,
4191
4237
  r,
@@ -4194,7 +4240,7 @@ function mo() {
4194
4240
  });
4195
4241
  else if (!r && Ve(i) === "object")
4196
4242
  for (a in i)
4197
- or(t + "[" + a + "]", i[a], r, n);
4243
+ sr(t + "[" + a + "]", i[a], r, n);
4198
4244
  else
4199
4245
  n(t, i);
4200
4246
  }
@@ -4211,7 +4257,7 @@ function mo() {
4211
4257
  });
4212
4258
  else
4213
4259
  for (r in t)
4214
- or(r, t[r], i, a);
4260
+ sr(r, t[r], i, a);
4215
4261
  return n.join("&");
4216
4262
  }, o.fn.extend({
4217
4263
  serialize: function() {
@@ -4223,20 +4269,20 @@ function mo() {
4223
4269
  return t ? o.makeArray(t) : this;
4224
4270
  }).filter(function() {
4225
4271
  var t = this.type;
4226
- return this.name && !o(this).is(":disabled") && Bo.test(this.nodeName) && !Oo.test(t) && (this.checked || !ke.test(t));
4272
+ return this.name && !o(this).is(":disabled") && Ro.test(this.nodeName) && !qo.test(t) && (this.checked || !ke.test(t));
4227
4273
  }).map(function(t, i) {
4228
4274
  var r = o(this).val();
4229
4275
  return r == null ? null : Array.isArray(r) ? o.map(r, function(n) {
4230
- return { name: i.name, value: n.replace(fn, `\r
4276
+ return { name: i.name, value: n.replace(hn, `\r
4231
4277
  `) };
4232
- }) : { name: i.name, value: r.replace(fn, `\r
4278
+ }) : { name: i.name, value: r.replace(hn, `\r
4233
4279
  `) };
4234
4280
  }).get();
4235
4281
  }
4236
4282
  });
4237
- var qo = /%20/g, Ro = /#.*$/, jo = /([?&])_=[^&]*/, Wo = /^(.*?):[ \t]*([^\r\n]*)$/mg, Fo = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, _o = /^(?:GET|HEAD)$/, Vo = /^\/\//, dn = {}, sr = {}, hn = "*/".concat("*"), ar = U.createElement("a");
4238
- ar.href = si.href;
4239
- function pn(t) {
4283
+ var jo = /%20/g, Wo = /#.*$/, Fo = /([?&])_=[^&]*/, _o = /^(.*?):[ \t]*([^\r\n]*)$/mg, Vo = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, $o = /^(?:GET|HEAD)$/, Xo = /^\/\//, pn = {}, ar = {}, gn = "*/".concat("*"), lr = U.createElement("a");
4284
+ lr.href = si.href;
4285
+ function mn(t) {
4240
4286
  return function(i, r) {
4241
4287
  typeof i != "string" && (r = i, i = "*");
4242
4288
  var n, a = 0, l = i.toLowerCase().match(He) || [];
@@ -4245,8 +4291,8 @@ function mo() {
4245
4291
  n[0] === "+" ? (n = n.slice(1) || "*", (t[n] = t[n] || []).unshift(r)) : (t[n] = t[n] || []).push(r);
4246
4292
  };
4247
4293
  }
4248
- function gn(t, i, r, n) {
4249
- var a = {}, l = t === sr;
4294
+ function vn(t, i, r, n) {
4295
+ var a = {}, l = t === ar;
4250
4296
  function u(y) {
4251
4297
  var m;
4252
4298
  return a[y] = !0, o.each(t[y] || [], function(w, P) {
@@ -4259,13 +4305,13 @@ function mo() {
4259
4305
  }
4260
4306
  return u(i.dataTypes[0]) || !a["*"] && u("*");
4261
4307
  }
4262
- function lr(t, i) {
4308
+ function cr(t, i) {
4263
4309
  var r, n, a = o.ajaxSettings.flatOptions || {};
4264
4310
  for (r in i)
4265
4311
  i[r] !== void 0 && ((a[r] ? t : n || (n = {}))[r] = i[r]);
4266
4312
  return n && o.extend(!0, t, n), t;
4267
4313
  }
4268
- function $o(t, i, r) {
4314
+ function Yo(t, i, r) {
4269
4315
  for (var n, a, l, u, y = t.contents, m = t.dataTypes; m[0] === "*"; )
4270
4316
  m.shift(), n === void 0 && (n = t.mimeType || i.getResponseHeader("Content-Type"));
4271
4317
  if (n) {
@@ -4290,7 +4336,7 @@ function mo() {
4290
4336
  if (l)
4291
4337
  return l !== m[0] && m.unshift(l), r[l];
4292
4338
  }
4293
- function Xo(t, i, r, n) {
4339
+ function Uo(t, i, r, n) {
4294
4340
  var a, l, u, y, m, w = {}, P = t.dataTypes.slice();
4295
4341
  if (P[1])
4296
4342
  for (u in t.converters)
@@ -4332,7 +4378,7 @@ function mo() {
4332
4378
  ajaxSettings: {
4333
4379
  url: si.href,
4334
4380
  type: "GET",
4335
- isLocal: Fo.test(si.protocol),
4381
+ isLocal: Vo.test(si.protocol),
4336
4382
  global: !0,
4337
4383
  processData: !0,
4338
4384
  async: !0,
@@ -4349,7 +4395,7 @@ function mo() {
4349
4395
  headers: {},
4350
4396
  */
4351
4397
  accepts: {
4352
- "*": hn,
4398
+ "*": gn,
4353
4399
  text: "text/plain",
4354
4400
  html: "text/html",
4355
4401
  xml: "application/xml, text/xml",
@@ -4392,25 +4438,25 @@ function mo() {
4392
4438
  ajaxSetup: function(t, i) {
4393
4439
  return i ? (
4394
4440
  // Building a settings object
4395
- lr(lr(t, o.ajaxSettings), i)
4441
+ cr(cr(t, o.ajaxSettings), i)
4396
4442
  ) : (
4397
4443
  // Extending ajaxSettings
4398
- lr(o.ajaxSettings, t)
4444
+ cr(o.ajaxSettings, t)
4399
4445
  );
4400
4446
  },
4401
- ajaxPrefilter: pn(dn),
4402
- ajaxTransport: pn(sr),
4447
+ ajaxPrefilter: mn(pn),
4448
+ ajaxTransport: mn(ar),
4403
4449
  // Main method
4404
4450
  ajax: function(t, i) {
4405
4451
  typeof t == "object" && (i = t, t = void 0), i = i || {};
4406
- var r, n, a, l, u, y, m, w, P, O, k = o.ajaxSetup({}, i), R = k.context || k, ie = k.context && (R.nodeType || R.jquery) ? o(R) : o.event, de = o.Deferred(), ne = o.Callbacks("once memory"), Oe = k.statusCode || {}, Pe = {}, ct = {}, ut = "canceled", ce = {
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 = {}, ut = {}, ft = "canceled", ce = {
4407
4453
  readyState: 0,
4408
4454
  // Builds headers hashtable if needed
4409
4455
  getResponseHeader: function(he) {
4410
4456
  var Se;
4411
4457
  if (m) {
4412
4458
  if (!l)
4413
- for (l = {}; Se = Wo.exec(a); )
4459
+ for (l = {}; Se = _o.exec(a); )
4414
4460
  l[Se[1].toLowerCase() + " "] = (l[Se[1].toLowerCase() + " "] || []).concat(Se[2]);
4415
4461
  Se = l[he.toLowerCase() + " "];
4416
4462
  }
@@ -4422,11 +4468,11 @@ function mo() {
4422
4468
  },
4423
4469
  // Caches the header
4424
4470
  setRequestHeader: function(he, Se) {
4425
- return m == null && (he = ct[he.toLowerCase()] = ct[he.toLowerCase()] || he, Pe[he] = Se), this;
4471
+ return m == null && (he = ut[he.toLowerCase()] = ut[he.toLowerCase()] || he, Pe[he] = Se), this;
4426
4472
  },
4427
4473
  // Overrides response content-type header
4428
4474
  overrideMimeType: function(he) {
4429
- return m == null && (k.mimeType = he), this;
4475
+ return m == null && (A.mimeType = he), this;
4430
4476
  },
4431
4477
  // Status-dependent callbacks
4432
4478
  statusCode: function(he) {
@@ -4441,36 +4487,36 @@ function mo() {
4441
4487
  },
4442
4488
  // Cancel the request
4443
4489
  abort: function(he) {
4444
- var Se = he || ut;
4490
+ var Se = he || ft;
4445
4491
  return r && r.abort(Se), qt(0, Se), this;
4446
4492
  }
4447
4493
  };
4448
- if (de.promise(ce), k.url = ((t || k.url || si.href) + "").replace(Vo, si.protocol + "//"), k.type = i.method || i.type || k.method || k.type, k.dataTypes = (k.dataType || "*").toLowerCase().match(He) || [""], k.crossDomain == null) {
4494
+ if (de.promise(ce), A.url = ((t || A.url || si.href) + "").replace(Xo, si.protocol + "//"), A.type = i.method || i.type || A.method || A.type, A.dataTypes = (A.dataType || "*").toLowerCase().match(He) || [""], A.crossDomain == null) {
4449
4495
  y = U.createElement("a");
4450
4496
  try {
4451
- y.href = k.url, y.href = y.href, k.crossDomain = ar.protocol + "//" + ar.host != y.protocol + "//" + y.host;
4497
+ y.href = A.url, y.href = y.href, A.crossDomain = lr.protocol + "//" + lr.host != y.protocol + "//" + y.host;
4452
4498
  } catch {
4453
- k.crossDomain = !0;
4499
+ A.crossDomain = !0;
4454
4500
  }
4455
4501
  }
4456
- if (k.data && k.processData && typeof k.data != "string" && (k.data = o.param(k.data, k.traditional)), gn(dn, k, i, ce), m)
4502
+ if (A.data && A.processData && typeof A.data != "string" && (A.data = o.param(A.data, A.traditional)), vn(pn, A, i, ce), m)
4457
4503
  return ce;
4458
- w = o.event && k.global, w && o.active++ === 0 && o.event.trigger("ajaxStart"), k.type = k.type.toUpperCase(), k.hasContent = !_o.test(k.type), n = k.url.replace(Ro, ""), k.hasContent ? k.data && k.processData && (k.contentType || "").indexOf("application/x-www-form-urlencoded") === 0 && (k.data = k.data.replace(qo, "+")) : (O = k.url.slice(n.length), k.data && (k.processData || typeof k.data == "string") && (n += (nr.test(n) ? "&" : "?") + k.data, delete k.data), k.cache === !1 && (n = n.replace(jo, "$1"), O = (nr.test(n) ? "&" : "?") + "_=" + ln.guid++ + O), k.url = n + O), k.ifModified && (o.lastModified[n] && ce.setRequestHeader("If-Modified-Since", o.lastModified[n]), o.etag[n] && ce.setRequestHeader("If-None-Match", o.etag[n])), (k.data && k.hasContent && k.contentType !== !1 || i.contentType) && ce.setRequestHeader("Content-Type", k.contentType), ce.setRequestHeader(
4504
+ w = o.event && A.global, w && o.active++ === 0 && o.event.trigger("ajaxStart"), A.type = A.type.toUpperCase(), A.hasContent = !$o.test(A.type), n = A.url.replace(Wo, ""), A.hasContent ? A.data && A.processData && (A.contentType || "").indexOf("application/x-www-form-urlencoded") === 0 && (A.data = A.data.replace(jo, "+")) : (O = A.url.slice(n.length), A.data && (A.processData || typeof A.data == "string") && (n += (or.test(n) ? "&" : "?") + A.data, delete A.data), A.cache === !1 && (n = n.replace(Fo, "$1"), O = (or.test(n) ? "&" : "?") + "_=" + un.guid++ + O), A.url = n + O), A.ifModified && (o.lastModified[n] && ce.setRequestHeader("If-Modified-Since", o.lastModified[n]), o.etag[n] && ce.setRequestHeader("If-None-Match", o.etag[n])), (A.data && A.hasContent && A.contentType !== !1 || i.contentType) && ce.setRequestHeader("Content-Type", A.contentType), ce.setRequestHeader(
4459
4505
  "Accept",
4460
- k.dataTypes[0] && k.accepts[k.dataTypes[0]] ? k.accepts[k.dataTypes[0]] + (k.dataTypes[0] !== "*" ? ", " + hn + "; q=0.01" : "") : k.accepts["*"]
4506
+ A.dataTypes[0] && A.accepts[A.dataTypes[0]] ? A.accepts[A.dataTypes[0]] + (A.dataTypes[0] !== "*" ? ", " + gn + "; q=0.01" : "") : A.accepts["*"]
4461
4507
  );
4462
- for (P in k.headers)
4463
- ce.setRequestHeader(P, k.headers[P]);
4464
- if (k.beforeSend && (k.beforeSend.call(R, ce, k) === !1 || m))
4508
+ for (P in A.headers)
4509
+ ce.setRequestHeader(P, A.headers[P]);
4510
+ if (A.beforeSend && (A.beforeSend.call(R, ce, A) === !1 || m))
4465
4511
  return ce.abort();
4466
- if (ut = "abort", ne.add(k.complete), ce.done(k.success), ce.fail(k.error), r = gn(sr, k, i, ce), !r)
4512
+ if (ft = "abort", ne.add(A.complete), ce.done(A.success), ce.fail(A.error), r = vn(ar, A, i, ce), !r)
4467
4513
  qt(-1, "No Transport");
4468
4514
  else {
4469
- if (ce.readyState = 1, w && ie.trigger("ajaxSend", [ce, k]), m)
4515
+ if (ce.readyState = 1, w && ie.trigger("ajaxSend", [ce, A]), m)
4470
4516
  return ce;
4471
- k.async && k.timeout > 0 && (u = c.setTimeout(function() {
4517
+ A.async && A.timeout > 0 && (u = c.setTimeout(function() {
4472
4518
  ce.abort("timeout");
4473
- }, k.timeout));
4519
+ }, A.timeout));
4474
4520
  try {
4475
4521
  m = !1, r.send(Pe, qt);
4476
4522
  } catch (he) {
@@ -4479,13 +4525,13 @@ function mo() {
4479
4525
  qt(-1, he);
4480
4526
  }
4481
4527
  }
4482
- function qt(he, Se, li, ur) {
4483
- var ft, ci, dt, Ct, At, it = Se;
4484
- m || (m = !0, u && c.clearTimeout(u), r = void 0, a = ur || "", ce.readyState = he > 0 ? 4 : 0, ft = he >= 200 && he < 300 || he === 304, li && (Ct = $o(k, ce, li)), !ft && o.inArray("script", k.dataTypes) > -1 && o.inArray("json", k.dataTypes) < 0 && (k.converters["text script"] = function() {
4485
- }), Ct = Xo(k, Ct, ce, ft), ft ? (k.ifModified && (At = ce.getResponseHeader("Last-Modified"), At && (o.lastModified[n] = At), At = ce.getResponseHeader("etag"), At && (o.etag[n] = At)), he === 204 || k.type === "HEAD" ? it = "nocontent" : he === 304 ? it = "notmodified" : (it = Ct.state, ci = Ct.data, dt = Ct.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(
4486
- ft ? "ajaxSuccess" : "ajaxError",
4487
- [ce, k, ft ? ci : dt]
4488
- ), ne.fireWith(R, [ce, it]), w && (ie.trigger("ajaxComplete", [ce, k]), --o.active || o.event.trigger("ajaxStop")));
4528
+ function qt(he, Se, li, fr) {
4529
+ var dt, ci, ht, Ct, At, rt = Se;
4530
+ m || (m = !0, u && c.clearTimeout(u), r = void 0, a = fr || "", ce.readyState = he > 0 ? 4 : 0, dt = he >= 200 && he < 300 || he === 304, li && (Ct = Yo(A, ce, li)), !dt && o.inArray("script", A.dataTypes) > -1 && o.inArray("json", A.dataTypes) < 0 && (A.converters["text script"] = function() {
4531
+ }), Ct = Uo(A, Ct, ce, dt), dt ? (A.ifModified && (At = ce.getResponseHeader("Last-Modified"), At && (o.lastModified[n] = At), At = ce.getResponseHeader("etag"), At && (o.etag[n] = At)), he === 204 || A.type === "HEAD" ? rt = "nocontent" : he === 304 ? rt = "notmodified" : (rt = Ct.state, ci = Ct.data, ht = Ct.error, dt = !ht)) : (ht = rt, (he || !rt) && (rt = "error", he < 0 && (he = 0))), ce.status = he, ce.statusText = (Se || rt) + "", dt ? de.resolveWith(R, [ci, rt, ce]) : de.rejectWith(R, [ce, rt, ht]), ce.statusCode(Oe), Oe = void 0, w && ie.trigger(
4532
+ dt ? "ajaxSuccess" : "ajaxError",
4533
+ [ce, A, dt ? ci : ht]
4534
+ ), ne.fireWith(R, [ce, rt]), w && (ie.trigger("ajaxComplete", [ce, A]), --o.active || o.event.trigger("ajaxStop")));
4489
4535
  }
4490
4536
  return ce;
4491
4537
  },
@@ -4567,7 +4613,7 @@ function mo() {
4567
4613
  } catch {
4568
4614
  }
4569
4615
  };
4570
- var Yo = {
4616
+ var Go = {
4571
4617
  // File protocol always yields status code 0, assume 200
4572
4618
  0: 200,
4573
4619
  // Support: IE <=9 only
@@ -4599,7 +4645,7 @@ function mo() {
4599
4645
  u.status,
4600
4646
  u.statusText
4601
4647
  ) : a(
4602
- Yo[u.status] || u.status,
4648
+ Go[u.status] || u.status,
4603
4649
  u.statusText,
4604
4650
  // Support: IE <=9 only
4605
4651
  // IE9 has no XHR2 but throws on binary (trac-11426)
@@ -4655,22 +4701,22 @@ function mo() {
4655
4701
  };
4656
4702
  }
4657
4703
  });
4658
- var mn = [], cr = /(=)\?(?=&|$)|\?\?/;
4704
+ var yn = [], ur = /(=)\?(?=&|$)|\?\?/;
4659
4705
  o.ajaxSetup({
4660
4706
  jsonp: "callback",
4661
4707
  jsonpCallback: function() {
4662
- var t = mn.pop() || o.expando + "_" + ln.guid++;
4708
+ var t = yn.pop() || o.expando + "_" + un.guid++;
4663
4709
  return this[t] = !0, t;
4664
4710
  }
4665
4711
  }), o.ajaxPrefilter("json jsonp", function(t, i, r) {
4666
- var n, a, l, u = t.jsonp !== !1 && (cr.test(t.url) ? "url" : typeof t.data == "string" && (t.contentType || "").indexOf("application/x-www-form-urlencoded") === 0 && cr.test(t.data) && "data");
4712
+ var n, a, l, u = t.jsonp !== !1 && (ur.test(t.url) ? "url" : typeof t.data == "string" && (t.contentType || "").indexOf("application/x-www-form-urlencoded") === 0 && ur.test(t.data) && "data");
4667
4713
  if (u || t.dataTypes[0] === "jsonp")
4668
- return n = t.jsonpCallback = G(t.jsonpCallback) ? t.jsonpCallback() : t.jsonpCallback, u ? t[u] = t[u].replace(cr, "$1" + n) : t.jsonp !== !1 && (t.url += (nr.test(t.url) ? "&" : "?") + t.jsonp + "=" + n), t.converters["script json"] = function() {
4714
+ return n = t.jsonpCallback = G(t.jsonpCallback) ? t.jsonpCallback() : t.jsonpCallback, u ? t[u] = t[u].replace(ur, "$1" + n) : t.jsonp !== !1 && (t.url += (or.test(t.url) ? "&" : "?") + t.jsonp + "=" + n), t.converters["script json"] = function() {
4669
4715
  return l || o.error(n + " was not called"), l[0];
4670
4716
  }, t.dataTypes[0] = "json", a = c[n], c[n] = function() {
4671
4717
  l = arguments;
4672
4718
  }, r.always(function() {
4673
- a === void 0 ? o(c).removeProp(n) : c[n] = a, t[n] && (t.jsonpCallback = i.jsonpCallback, mn.push(n)), l && G(a) && a(l[0]), l = a = void 0;
4719
+ a === void 0 ? o(c).removeProp(n) : c[n] = a, t[n] && (t.jsonpCallback = i.jsonpCallback, yn.push(n)), l && G(a) && a(l[0]), l = a = void 0;
4674
4720
  }), "script";
4675
4721
  }), V.createHTMLDocument = (function() {
4676
4722
  var t = U.implementation.createHTMLDocument("").body;
@@ -4711,8 +4757,8 @@ function mo() {
4711
4757
  }).length;
4712
4758
  }, o.offset = {
4713
4759
  setOffset: function(t, i, r) {
4714
- var n, a, l, u, y, m, w, P = o.css(t, "position"), O = o(t), k = {};
4715
- P === "static" && (t.style.position = "relative"), y = O.offset(), l = o.css(t, "top"), m = o.css(t, "left"), w = (P === "absolute" || P === "fixed") && (l + m).indexOf("auto") > -1, w ? (n = O.position(), u = n.top, a = n.left) : (u = parseFloat(l) || 0, a = parseFloat(m) || 0), G(i) && (i = i.call(t, r, o.extend({}, y))), i.top != null && (k.top = i.top - y.top + u), i.left != null && (k.left = i.left - y.left + a), "using" in i ? i.using.call(t, k) : O.css(k);
4760
+ var n, a, l, u, y, m, w, P = o.css(t, "position"), O = o(t), A = {};
4761
+ P === "static" && (t.style.position = "relative"), y = O.offset(), l = o.css(t, "top"), m = o.css(t, "left"), w = (P === "absolute" || P === "fixed") && (l + m).indexOf("auto") > -1, w ? (n = O.position(), u = n.top, a = n.left) : (u = parseFloat(l) || 0, a = parseFloat(m) || 0), G(i) && (i = i.call(t, r, o.extend({}, y))), i.top != null && (A.top = i.top - y.top + u), i.left != null && (A.left = i.left - y.left + a), "using" in i ? i.using.call(t, A) : O.css(A);
4716
4762
  }
4717
4763
  }, o.fn.extend({
4718
4764
  // offset() relates an element's border box to the document origin
@@ -4760,13 +4806,13 @@ function mo() {
4760
4806
  return this.map(function() {
4761
4807
  for (var t = this.offsetParent; t && o.css(t, "position") === "static"; )
4762
4808
  t = t.offsetParent;
4763
- return t || lt;
4809
+ return t || ct;
4764
4810
  });
4765
4811
  }
4766
4812
  }), o.each({ scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function(t, i) {
4767
4813
  var r = i === "pageYOffset";
4768
4814
  o.fn[t] = function(n) {
4769
- return et(this, function(a, l, u) {
4815
+ return tt(this, function(a, l, u) {
4770
4816
  var y;
4771
4817
  if (Ee(a) ? y = a : a.nodeType === 9 && (y = a.defaultView), u === void 0)
4772
4818
  return y ? y[i] : a[l];
@@ -4777,11 +4823,11 @@ function mo() {
4777
4823
  }, t, n, arguments.length);
4778
4824
  };
4779
4825
  }), o.each(["top", "left"], function(t, i) {
4780
- o.cssHooks[i] = Kr(
4826
+ o.cssHooks[i] = Qr(
4781
4827
  V.pixelPosition,
4782
4828
  function(r, n) {
4783
4829
  if (n)
4784
- return n = ni(r, i), Ji.test(n) ? o(r).position()[i] + "px" : n;
4830
+ return n = ni(r, i), Qi.test(n) ? o(r).position()[i] + "px" : n;
4785
4831
  }
4786
4832
  );
4787
4833
  }), o.each({ Height: "height", Width: "width" }, function(t, i) {
@@ -4792,7 +4838,7 @@ function mo() {
4792
4838
  }, function(r, n) {
4793
4839
  o.fn[n] = function(a, l) {
4794
4840
  var u = arguments.length && (r || typeof a != "boolean"), y = r || (a === !0 || l === !0 ? "margin" : "border");
4795
- return et(this, function(m, w, P) {
4841
+ return tt(this, function(m, w, P) {
4796
4842
  var O;
4797
4843
  return Ee(m) ? n.indexOf("outer") === 0 ? m["inner" + t] : m.document.documentElement["client" + t] : m.nodeType === 9 ? (O = m.documentElement, Math.max(
4798
4844
  m.body["scroll" + t],
@@ -4845,12 +4891,12 @@ function mo() {
4845
4891
  };
4846
4892
  }
4847
4893
  );
4848
- var Uo = /^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;
4894
+ var Zo = /^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;
4849
4895
  o.proxy = function(t, i) {
4850
4896
  var r, n, a;
4851
4897
  if (typeof i == "string" && (r = t[i], i = t, t = r), !!G(t))
4852
- return n = A.call(arguments, 2), a = function() {
4853
- return t.apply(i || this, n.concat(A.call(arguments)));
4898
+ return n = L.call(arguments, 2), a = function() {
4899
+ return t.apply(i || this, n.concat(L.call(arguments)));
4854
4900
  }, a.guid = t.guid = t.guid || o.guid++, a;
4855
4901
  }, o.holdReady = function(t) {
4856
4902
  t ? o.readyWait++ : o.ready(!0);
@@ -4861,24 +4907,24 @@ function mo() {
4861
4907
  // subtraction forces infinities to NaN
4862
4908
  !isNaN(t - parseFloat(t));
4863
4909
  }, o.trim = function(t) {
4864
- return t == null ? "" : (t + "").replace(Uo, "$1");
4910
+ return t == null ? "" : (t + "").replace(Zo, "$1");
4865
4911
  };
4866
- var Go = c.jQuery, Zo = c.$;
4912
+ var Ko = c.jQuery, Jo = c.$;
4867
4913
  return o.noConflict = function(t) {
4868
- return c.$ === o && (c.$ = Zo), t && c.jQuery === o && (c.jQuery = Go), o;
4914
+ return c.$ === o && (c.$ = Jo), t && c.jQuery === o && (c.jQuery = Ko), o;
4869
4915
  }, typeof d > "u" && (c.jQuery = c.$ = o), o;
4870
4916
  });
4871
- })(Ni)), Ni.exports;
4917
+ })(Pi)), Pi.exports;
4872
4918
  }
4873
- var Gs = mo();
4874
- const Qt = /* @__PURE__ */ Ys(Gs);
4875
- var wr = { exports: {} }, Cn;
4876
- function Zs() {
4877
- return Cn || (Cn = 1, (function(s, c) {
4919
+ var Ks = yo();
4920
+ const Qt = /* @__PURE__ */ Gs(Ks);
4921
+ var xr = { exports: {} }, kn;
4922
+ function Js() {
4923
+ return kn || (kn = 1, (function(s, c) {
4878
4924
  (function(d) {
4879
- s.exports = d(mo());
4925
+ s.exports = d(yo());
4880
4926
  })(function(d) {
4881
- var h = !1, T = !1, A = 0, z = 2e3, D = 0, L = d, q = document, _ = window, we = L(_), Q = [];
4927
+ var h = !1, T = !1, L = 0, z = 2e3, D = 0, k = d, q = document, _ = window, ye = k(_), Q = [];
4882
4928
  function _e() {
4883
4929
  var j = q.currentScript || (function() {
4884
4930
  var e = q.getElementsByTagName("script");
@@ -5000,14 +5046,14 @@ function Zs() {
5000
5046
  }, ti = function(j, C) {
5001
5047
  var e = this;
5002
5048
  this.version = "3.7.6", this.name = "nicescroll", this.me = C;
5003
- var Z = L("body"), g = this.opt = {
5049
+ var Z = k("body"), g = this.opt = {
5004
5050
  doc: Z,
5005
5051
  win: !1
5006
5052
  };
5007
- if (L.extend(g, wt), g.snapbackspeed = 80, j)
5053
+ if (k.extend(g, wt), g.snapbackspeed = 80, j)
5008
5054
  for (var De in g)
5009
5055
  j[De] !== void 0 && (g[De] = j[De]);
5010
- 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 ? we : this.doc), this.docscroll = this.ispage && !this.haswrapper ? we : 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 = {
5056
+ 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 = {
5011
5057
  x: 0,
5012
5058
  y: 0
5013
5059
  }, this.scrollratio = {
@@ -5025,7 +5071,7 @@ function Zs() {
5025
5071
  this.id = "ascrail" + z++;
5026
5072
  while (q.getElementById(this.id));
5027
5073
  this.rail = !1, this.cursor = !1, this.cursorfreezed = !1, this.selectiondrag = !1, this.zoom = !1, this.zoomactive = !1, this.hasfocus = !1, this.hasmousefocus = !1, this.railslocked = !1, this.locked = !1, this.hidden = !1, this.cursoractive = !0, this.wheelprevented = !1, this.overflowx = g.overflowx, this.overflowy = g.overflowy, this.nativescrollingarea = !1, this.checkarea = 0, this.events = [], this.saved = {}, this.delaylist = {}, this.synclist = {}, this.lastdeltax = 0, this.lastdeltay = 0, this.detected = $e();
5028
- var B = L.extend({}, this.detected);
5074
+ var B = k.extend({}, this.detected);
5029
5075
  this.canhwscroll = B.hastransform && g.hwacceleration, this.ishwscroll = this.canhwscroll && e.haswrapper, this.isrtlmode ? this.isvertical ? this.hasreversehr = !(B.iswebkit || B.isie || B.isie11) : this.hasreversehr = !(B.iswebkit || B.isie && !B.isie10 && !B.isie11) : this.hasreversehr = !1, this.istouchcapable = !1, !B.cantouch && (B.hasw3ctouch || B.hasmstouch) ? this.istouchcapable = !0 : B.cantouch && !B.isios && !B.isandroid && (B.iswebkit || B.ismozilla) && (this.istouchcapable = !0), g.enablemouselockapi || (B.hasmousecapture = !1, B.haspointerlock = !1), this.debounced = function(f, v, S) {
5030
5076
  if (e) {
5031
5077
  var H = e.delaylist[f] || !1;
@@ -5217,10 +5263,10 @@ function Zs() {
5217
5263
  var f = { "overflow-y": "hidden" };
5218
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 = xt() || "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) {
5219
5265
  var v = e.docscroll;
5220
- e.ispage && (v = e.haswrapper ? e.win : e.doc), e.css(v, f), e.ispage && (B.isie11 || B.isie) && e.css(L("html"), f), B.isios && !e.ispage && !e.haswrapper && e.css(Z, {
5266
+ 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, {
5221
5267
  "-webkit-overflow-scrolling": "touch"
5222
5268
  });
5223
- var S = L(q.createElement("div"));
5269
+ var S = k(q.createElement("div"));
5224
5270
  S.css({
5225
5271
  position: "relative",
5226
5272
  top: 0,
@@ -5234,11 +5280,11 @@ function Zs() {
5234
5280
  "-moz-border-radius": g.cursorborderradius,
5235
5281
  "border-radius": g.cursorborderradius
5236
5282
  }), S.addClass("nicescroll-cursors"), e.cursor = S;
5237
- var H = L(q.createElement("div"));
5283
+ var H = k(q.createElement("div"));
5238
5284
  H.attr("id", e.id), H.addClass("nicescroll-rails nicescroll-rails-vr");
5239
5285
  var W, M, ee = ["left", "right", "top", "bottom"];
5240
- for (var be in ee)
5241
- M = ee[be], W = g.railpadding[M] || 0, W && H.css("padding-" + M, W + "px");
5286
+ for (var we in ee)
5287
+ M = ee[we], W = g.railpadding[M] || 0, W && H.css("padding-" + M, W + "px");
5242
5288
  H.append(S), H.width = Math.max(parseFloat(g.cursorwidth), S.outerWidth()), H.css({
5243
5289
  width: H.width + "px",
5244
5290
  zIndex: e.zindex,
@@ -5250,7 +5296,7 @@ function Zs() {
5250
5296
  e.zoom.css("opacity", g.cursoropacitymax);
5251
5297
  }), e.bind(Ae, "mouseleave", function() {
5252
5298
  e.zoom.css("opacity", g.cursoropacitymin);
5253
- }), e.zoom = L(Ae), e.zoom.css({
5299
+ }), e.zoom = k(Ae), e.zoom.css({
5254
5300
  cursor: "pointer",
5255
5301
  zIndex: e.zindex,
5256
5302
  backgroundImage: "url(" + g.scriptpath + "zoomico.png)",
@@ -5263,7 +5309,7 @@ function Zs() {
5263
5309
  var oe;
5264
5310
  if (g.horizrailenabled && (e.css(v, {
5265
5311
  overflowX: "hidden"
5266
- }), S = L(q.createElement("div")), S.css({
5312
+ }), S = k(q.createElement("div")), S.css({
5267
5313
  position: "absolute",
5268
5314
  top: 0,
5269
5315
  height: g.cursorwidth,
@@ -5274,7 +5320,7 @@ function Zs() {
5274
5320
  "-webkit-border-radius": g.cursorborderradius,
5275
5321
  "-moz-border-radius": g.cursorborderradius,
5276
5322
  "border-radius": g.cursorborderradius
5277
- }), B.isieold && S.css("overflow", "hidden"), S.addClass("nicescroll-cursors"), e.cursorh = S, oe = L(q.createElement("div")), oe.attr("id", e.id + "-hr"), oe.addClass("nicescroll-rails nicescroll-rails-hr"), oe.height = Math.max(parseFloat(g.cursorwidth), S.outerHeight()), oe.css({
5323
+ }), B.isieold && S.css("overflow", "hidden"), S.addClass("nicescroll-cursors"), e.cursorh = S, oe = k(q.createElement("div")), oe.attr("id", e.id + "-hr"), oe.addClass("nicescroll-rails nicescroll-rails-hr"), oe.height = Math.max(parseFloat(g.cursorwidth), S.outerHeight()), oe.css({
5278
5324
  height: oe.height + "px",
5279
5325
  zIndex: e.zindex,
5280
5326
  background: g.background
@@ -5292,7 +5338,7 @@ function Zs() {
5292
5338
  if (e.ishwscroll) {
5293
5339
  e.win.css("position") == "static" && e.css(e.win, { position: "relative" });
5294
5340
  var Re = e.win[0].nodeName == "HTML" ? e.body : e.win;
5295
- L(Re).scrollTop(0).scrollLeft(0), e.zoom && (e.zoom.css({
5341
+ k(Re).scrollTop(0).scrollLeft(0), e.zoom && (e.zoom.css({
5296
5342
  position: "absolute",
5297
5343
  top: 1,
5298
5344
  right: 0,
@@ -5327,7 +5373,7 @@ function Zs() {
5327
5373
  opacity: g.cursoropacitymax
5328
5374
  }), e.railh && e.railh.css({
5329
5375
  opacity: g.cursoropacitymax
5330
- })) : g.autohidemode === !0 || g.autohidemode === "leave" ? (e.autohidedom = L().add(e.rail), B.isie8 && (e.autohidedom = e.autohidedom.add(e.cursor)), e.railh && (e.autohidedom = e.autohidedom.add(e.railh)), e.railh && B.isie8 && (e.autohidedom = e.autohidedom.add(e.cursorh))) : g.autohidemode == "scroll" ? (e.autohidedom = L().add(e.rail), e.railh && (e.autohidedom = e.autohidedom.add(e.railh))) : g.autohidemode == "cursor" ? (e.autohidedom = L().add(e.cursor), e.railh && (e.autohidedom = e.autohidedom.add(e.cursorh))) : g.autohidemode == "hidden" && (e.autohidedom = !1, e.hide(), e.railslocked = !1), B.cantouch || e.istouchcapable || g.emulatetouch || B.hasmstouch) {
5376
+ })) : g.autohidemode === !0 || g.autohidemode === "leave" ? (e.autohidedom = k().add(e.rail), B.isie8 && (e.autohidedom = e.autohidedom.add(e.cursor)), e.railh && (e.autohidedom = e.autohidedom.add(e.railh)), e.railh && B.isie8 && (e.autohidedom = e.autohidedom.add(e.cursorh))) : g.autohidemode == "scroll" ? (e.autohidedom = k().add(e.rail), e.railh && (e.autohidedom = e.autohidedom.add(e.railh))) : g.autohidemode == "cursor" ? (e.autohidedom = k().add(e.cursor), e.railh && (e.autohidedom = e.autohidedom.add(e.cursorh))) : g.autohidemode == "hidden" && (e.autohidedom = !1, e.hide(), e.railslocked = !1), B.cantouch || e.istouchcapable || g.emulatetouch || B.hasmstouch) {
5331
5377
  e.scrollmom = new o(e), e.ontouchstart = function(x) {
5332
5378
  if (e.locked || x.pointerType && (x.pointerType === "mouse" || x.pointerType === x.MSPOINTER_TYPE_MOUSE)) return !1;
5333
5379
  if (e.hasmoving = !1, e.scrollmom.timer && (e.triggerScrollEnd(), e.scrollmom.stop()), !e.railslocked) {
@@ -5357,8 +5403,8 @@ function Zs() {
5357
5403
  e.rail.drag.dl = "f";
5358
5404
  else {
5359
5405
  var Ke = {
5360
- w: we.width(),
5361
- h: we.height()
5406
+ w: ye.width(),
5407
+ h: ye.height()
5362
5408
  }, ve = e.getContentSize(), Ce = ve.h - Ke.h, vt = ve.w - Ke.w;
5363
5409
  e.rail.scrollable && !e.railh.scrollable ? e.rail.drag.ck = Ce > 0 ? "v" : !1 : !e.rail.scrollable && e.railh.scrollable ? e.rail.drag.ck = vt > 0 ? "h" : !1 : e.rail.drag.ck = !1;
5364
5410
  }
@@ -5369,11 +5415,11 @@ function Zs() {
5369
5415
  if (e.hasmoving = !1, e.lastmouseup = !1, e.scrollmom.reset(x.clientX, x.clientY), K && ke) {
5370
5416
  var Ne = /INPUT|SELECT|BUTTON|TEXTAREA/i.test(K.nodeName);
5371
5417
  if (!Ne)
5372
- return B.hasmousecapture && K.setCapture(), g.emulatetouch ? (K.onclick && !K._onclick && (K._onclick = K.onclick, K.onclick = function(nt) {
5418
+ return B.hasmousecapture && K.setCapture(), g.emulatetouch ? (K.onclick && !K._onclick && (K._onclick = K.onclick, K.onclick = function(ot) {
5373
5419
  if (e.hasmoving) return !1;
5374
- K._onclick.call(this, nt);
5420
+ K._onclick.call(this, ot);
5375
5421
  }), e.cancelEvent(x)) : e.stopPropagation(x);
5376
- /SUBMIT|CANCEL|BUTTON/i.test(L(K).attr("type")) && (e.preventclick = {
5422
+ /SUBMIT|CANCEL|BUTTON/i.test(k(K).attr("type")) && (e.preventclick = {
5377
5423
  tg: K,
5378
5424
  click: !1
5379
5425
  });
@@ -5408,8 +5454,8 @@ function Zs() {
5408
5454
  var Ne = e.getScrollLeft();
5409
5455
  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) {
5410
5456
  if (e.rail.drag.y === x.clientY && e.rail.drag.x === x.clientX) return e.cancelEvent(x);
5411
- var nt = Math.abs(ve), Je = Math.abs(vt), je = g.directionlockdeadzone;
5412
- 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);
5457
+ var ot = Math.abs(ve), Je = Math.abs(vt), je = g.directionlockdeadzone;
5458
+ if (e.rail.drag.ck ? e.rail.drag.ck == "v" ? Je > je && ot <= Xe ? e.rail.drag = !1 : ot > je && (e.rail.drag.dl = "v") : e.rail.drag.ck == "h" && (ot > je && Je <= Xe ? e.rail.drag = !1 : Je > je && (e.rail.drag.dl = "h")) : ot > je && Je > je ? e.rail.drag.dl = "f" : ot > je ? e.rail.drag.dl = Je > Xe ? "f" : "v" : Je > je && (e.rail.drag.dl = ot > Xe ? "f" : "h"), !e.rail.drag.dl) return e.cancelEvent(x);
5413
5459
  e.triggerScrollStart(x.clientX, x.clientY, 0, 0, 0), e.hasmoving = !0;
5414
5460
  }
5415
5461
  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() {
@@ -5501,7 +5547,7 @@ function Zs() {
5501
5547
  cursor: B.cursorgrabvalue
5502
5548
  }));
5503
5549
  else {
5504
- var lt = function(x) {
5550
+ var ct = function(x) {
5505
5551
  if (e.selectiondrag) {
5506
5552
  if (x) {
5507
5553
  var K = e.win.outerHeight(), ue = x.pageY - e.selectiondrag.top;
@@ -5510,7 +5556,7 @@ function Zs() {
5510
5556
  if (e.selectiondrag.df !== 0) {
5511
5557
  var ke = -(e.selectiondrag.df * 2 / 6) | 0;
5512
5558
  e.doScrollBy(ke), e.debounced("doselectionscroll", function() {
5513
- lt();
5559
+ ct();
5514
5560
  }, 50);
5515
5561
  }
5516
5562
  }
@@ -5527,15 +5573,15 @@ function Zs() {
5527
5573
  e.selectiondrag = !1;
5528
5574
  }, e.onselectiondrag = function(x) {
5529
5575
  e.selectiondrag && e.hasTextSelected() && e.debounced("selectionscroll", function() {
5530
- lt(x);
5576
+ ct(x);
5531
5577
  }, 250);
5532
5578
  };
5533
5579
  }
5534
- if (B.hasw3ctouch ? (e.css(e.ispage ? L("html") : e.win, { "touch-action": "none" }), e.css(e.rail, {
5580
+ if (B.hasw3ctouch ? (e.css(e.ispage ? k("html") : e.win, { "touch-action": "none" }), e.css(e.rail, {
5535
5581
  "touch-action": "none"
5536
5582
  }), e.css(e.cursor, {
5537
5583
  "touch-action": "none"
5538
- }), e.bind(e.win, "pointerdown", e.ontouchstart), e.bind(q, "pointerup", e.ontouchend), e.delegate(q, "pointermove", e.ontouchmove)) : B.hasmstouch ? (e.css(e.ispage ? L("html") : e.win, { "-ms-touch-action": "none" }), e.css(e.rail, {
5584
+ }), e.bind(e.win, "pointerdown", e.ontouchstart), e.bind(q, "pointerup", e.ontouchend), e.delegate(q, "pointermove", e.ontouchmove)) : B.hasmstouch ? (e.css(e.ispage ? k("html") : e.win, { "-ms-touch-action": "none" }), e.css(e.rail, {
5539
5585
  "-ms-touch-action": "none"
5540
5586
  }), e.css(e.cursor, {
5541
5587
  "-ms-touch-action": "none"
@@ -5588,7 +5634,7 @@ function Zs() {
5588
5634
  }), e.railh && e.bind(e.railh, "mousedown", function(x) {
5589
5635
  x.preventDefault();
5590
5636
  }))), g.enablemousewheel && (e.isiframe || e.mousewheel(B.isie && e.ispage ? q : e.win, e.onmousewheel), e.mousewheel(e.rail, e.onmousewheel), e.railh && e.mousewheel(e.railh, e.onmousewheelhr)), !e.ispage && !B.cantouch && !/HTML|^BODY/.test(e.win[0].nodeName) && (e.win.attr("tabindex") || e.win.attr({
5591
- tabindex: ++A
5637
+ tabindex: ++L
5592
5638
  }), e.bind(e.win, "focus", function(x) {
5593
5639
  h = e.getTarget(x).id || e.getTarget(x) || !1, e.hasfocus = !0, e.canshowonmouseevent && e.noticeCursor();
5594
5640
  }), e.bind(e.win, "blur", function(x) {
@@ -5605,7 +5651,7 @@ function Zs() {
5605
5651
  var ue = K.getAttribute("type") || K.type || !1;
5606
5652
  if (!ue || !/submit|button|cancel/i.tp) return !0;
5607
5653
  }
5608
- if (L(K).attr("contenteditable")) return !0;
5654
+ if (k(K).attr("contenteditable")) return !0;
5609
5655
  if (e.hasfocus || e.hasmousefocus && !h || e.ispage && !h && !T) {
5610
5656
  var ke = x.keyCode;
5611
5657
  if (e.railslocked && ke != 27) return e.cancelEvent(x);
@@ -5661,8 +5707,8 @@ function Zs() {
5661
5707
  }), e.bind(_, "blur", function(x) {
5662
5708
  e.wheelprevented = !1;
5663
5709
  }), e.bind(_, "resize", e.onscreenresize), e.bind(_, "orientationchange", e.onscreenresize), e.bind(_, "load", e.lazyResize), B.ischrome && !e.ispage && !e.haswrapper) {
5664
- var Et = e.win.attr("style"), Zi = parseFloat(e.win.css("width")) + 1;
5665
- e.win.css("width", Zi), e.synched("chromefix", function() {
5710
+ var Et = e.win.attr("style"), Ki = parseFloat(e.win.css("width")) + 1;
5711
+ e.win.css("width", Ki), e.synched("chromefix", function() {
5666
5712
  e.win.attr("style", Et);
5667
5713
  });
5668
5714
  }
@@ -5671,7 +5717,7 @@ function Zs() {
5671
5717
  }, g.enableobserver && (!e.isie11 && U !== !1 && (e.observerbody = new U(function(x) {
5672
5718
  if (x.forEach(function(K) {
5673
5719
  if (K.type == "attributes")
5674
- return Z.hasClass("modal-open") && Z.hasClass("modal-dialog") && !L.contains(L(".modal-dialog")[0], e.doc[0]) ? e.hide() : e.show();
5720
+ return Z.hasClass("modal-open") && Z.hasClass("modal-dialog") && !k.contains(k(".modal-dialog")[0], e.doc[0]) ? e.hide() : e.show();
5675
5721
  }), e.me.clientWidth != e.page.width || e.me.clientHeight != e.page.height) return e.lazyResize(30);
5676
5722
  }), e.observerbody.observe(q.body, {
5677
5723
  childList: !0,
@@ -5680,10 +5726,10 @@ function Zs() {
5680
5726
  attributes: !0,
5681
5727
  attributeFilter: ["class"]
5682
5728
  })), !e.ispage && !e.haswrapper)) {
5683
- var tt = e.win[0];
5729
+ var it = e.win[0];
5684
5730
  U !== !1 ? (e.observer = new U(function(x) {
5685
5731
  x.forEach(e.onAttributeChange);
5686
- }), e.observer.observe(tt, {
5732
+ }), e.observer.observe(it, {
5687
5733
  childList: !0,
5688
5734
  characterData: !1,
5689
5735
  attributes: !0,
@@ -5692,16 +5738,16 @@ function Zs() {
5692
5738
  x.forEach(function(K) {
5693
5739
  if (K.removedNodes.length > 0) {
5694
5740
  for (var ue in K.removedNodes)
5695
- if (e && K.removedNodes[ue] === tt) return e.remove();
5741
+ if (e && K.removedNodes[ue] === it) return e.remove();
5696
5742
  }
5697
5743
  });
5698
- }), e.observerremover.observe(tt.parentNode, {
5744
+ }), e.observerremover.observe(it.parentNode, {
5699
5745
  childList: !0,
5700
5746
  characterData: !1,
5701
5747
  attributes: !1,
5702
5748
  subtree: !1
5703
- })) : (e.bind(tt, B.isie && !B.isie9 ? "propertychange" : "DOMAttrModified", e.onAttributeChange), B.isie9 && tt.attachEvent("onpropertychange", e.onAttributeChange), e.bind(tt, "DOMNodeRemoved", function(x) {
5704
- x.target === tt && e.remove();
5749
+ })) : (e.bind(it, B.isie && !B.isie9 ? "propertychange" : "DOMAttrModified", e.onAttributeChange), B.isie9 && it.attachEvent("onpropertychange", e.onAttributeChange), e.bind(it, "DOMNodeRemoved", function(x) {
5750
+ x.target === it && e.remove();
5705
5751
  }));
5706
5752
  }
5707
5753
  !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);
@@ -5719,7 +5765,7 @@ function Zs() {
5719
5765
  if (e.iframexd)
5720
5766
  return "console" in _ && console.log("NiceScroll error: policy restriced iframe"), !0;
5721
5767
  if (e.forcescreen = !0, e.isiframe && (e.iframe = {
5722
- doc: L(x),
5768
+ doc: k(x),
5723
5769
  html: e.doc.contents().find("html")[0],
5724
5770
  body: e.doc.contents().find("body")[0]
5725
5771
  }, e.getContentSize = function() {
@@ -5727,16 +5773,16 @@ function Zs() {
5727
5773
  w: Math.max(e.iframe.html.scrollWidth, e.iframe.body.scrollWidth),
5728
5774
  h: Math.max(e.iframe.html.scrollHeight, e.iframe.body.scrollHeight)
5729
5775
  };
5730
- }, e.docscroll = L(e.iframe.body)), !B.isios && g.iframeautoresize && !e.isiframe) {
5776
+ }, e.docscroll = k(e.iframe.body)), !B.isios && g.iframeautoresize && !e.isiframe) {
5731
5777
  e.win.scrollTop(0), e.doc.height("");
5732
5778
  var ue = Math.max(x.getElementsByTagName("html")[0].scrollHeight, x.body.scrollHeight);
5733
5779
  e.doc.height(ue);
5734
5780
  }
5735
- e.lazyResize(30), e.css(L(e.iframe.body), f), B.isios && e.haswrapper && e.css(L(x.body), {
5781
+ e.lazyResize(30), e.css(k(e.iframe.body), f), B.isios && e.haswrapper && e.css(k(x.body), {
5736
5782
  "-webkit-transform": "translate3d(0,0,0)"
5737
5783
  }), "contentWindow" in this ? e.bind(this.contentWindow, "scroll", e.onscroll) : e.bind(x, "scroll", e.onscroll), g.enablemousewheel && e.mousewheel(x, e.onmousewheel), g.enablekeyboard && e.bind(x, B.isopera ? "keypress" : "keydown", e.onkeypress), B.cantouch ? (e.bind(x, "touchstart", e.ontouchstart), e.bind(x, "touchmove", e.ontouchmove)) : g.emulatetouch && (e.bind(x, "mousedown", e.ontouchstart), e.bind(x, "mousemove", function(ke) {
5738
5784
  return e.ontouchmove(ke, !0);
5739
- }), g.grabcursorenabled && B.cursorgrabvalue && e.css(L(x.body), {
5785
+ }), g.grabcursorenabled && B.cursorgrabvalue && e.css(k(x.body), {
5740
5786
  cursor: B.cursorgrabvalue
5741
5787
  })), e.bind(x, "mouseup", e.ontouchend), e.zoom && (g.dblclickzoom && e.bind(x, "dblclick", e.doZoom), e.ongesturezoom && e.bind(x, "gestureend", e.ongesturezoom));
5742
5788
  };
@@ -5798,8 +5844,8 @@ function Zs() {
5798
5844
  return e;
5799
5845
  var ee = e.win.offset();
5800
5846
  if (e.lastposition) {
5801
- var be = e.lastposition;
5802
- if (be.top == ee.top && be.left == ee.left) return e;
5847
+ var we = e.lastposition;
5848
+ if (we.top == ee.top && we.left == ee.left) return e;
5803
5849
  }
5804
5850
  e.lastposition = ee;
5805
5851
  }
@@ -5850,7 +5896,7 @@ function Zs() {
5850
5896
  n: v,
5851
5897
  f: S,
5852
5898
  q: !0
5853
- }), L(f).on(v, S);
5899
+ }), k(f).on(v, S);
5854
5900
  }, this.mousewheel = function(f, v, S) {
5855
5901
  var H = "jquery" in f ? f[0] : f;
5856
5902
  if ("onwheel" in q.createElement("div"))
@@ -5863,10 +5909,10 @@ function Zs() {
5863
5909
  var He = !1;
5864
5910
  if (B.haseventlistener) {
5865
5911
  try {
5866
- var Gi = Object.defineProperty({}, "passive", { get: function() {
5912
+ var Zi = Object.defineProperty({}, "passive", { get: function() {
5867
5913
  He = !0;
5868
5914
  } });
5869
- _.addEventListener("test", null, Gi);
5915
+ _.addEventListener("test", null, Zi);
5870
5916
  } catch {
5871
5917
  }
5872
5918
  this.stopPropagation = function(f) {
@@ -5894,15 +5940,15 @@ function Zs() {
5894
5940
  a: [],
5895
5941
  l: [],
5896
5942
  f: function(ee) {
5897
- for (var be = M.l, Ae = be.length - 1, oe = !1, Re = Ae; Re >= 0; Re--)
5898
- if (oe = be[Re].call(ee.target, ee), oe === !1) return !1;
5943
+ for (var we = M.l, Ae = we.length - 1, oe = !1, Re = Ae; Re >= 0; Re--)
5944
+ if (oe = we[Re].call(ee.target, ee), oe === !1) return !1;
5899
5945
  return oe;
5900
5946
  }
5901
5947
  }, e.bind(f, v, M.f, H, W), Q[v] = M), e.ispage ? (M.a = [e.id].concat(M.a), M.l = [S].concat(M.l)) : (M.a.push(e.id), M.l.push(S));
5902
5948
  }, this.undelegate = function(f, v, S, H, W) {
5903
5949
  var M = Q[v] || !1;
5904
5950
  if (M && M.l)
5905
- for (var ee = 0, be = M.l.length; ee < be; ee++)
5951
+ for (var ee = 0, we = M.l.length; ee < we; ee++)
5906
5952
  M.a[ee] === e.id && (M.a.splice(ee), M.l.splice(ee), M.a.length === 0 && (e._unbind(f, v, M.l.f), Q[v] = null));
5907
5953
  }, this.bind = function(f, v, S, H, W) {
5908
5954
  var M = "jquery" in f ? f[0] : f;
@@ -5949,7 +5995,7 @@ function Zs() {
5949
5995
  S[0].css(S[1], S[2] === void 0 ? "" : S[2]);
5950
5996
  }
5951
5997
  e.saved = !1, e.me.data("__nicescroll", "");
5952
- var H = L.nicescroll;
5998
+ var H = k.nicescroll;
5953
5999
  H.each(function(M) {
5954
6000
  if (this && this.id === e.id) {
5955
6001
  delete H[M];
@@ -5974,14 +6020,14 @@ function Zs() {
5974
6020
  var v = f.target ? f.target : f;
5975
6021
  if (v.nodeName == "OPTION") return !0;
5976
6022
  for (; v && v.nodeType == 1 && v !== this.me[0] && !/^BODY|HTML/.test(v.nodeName); ) {
5977
- var S = L(v), H = S.css("overflowY") || S.css("overflowX") || S.css("overflow") || "";
6023
+ var S = k(v), H = S.css("overflowY") || S.css("overflowX") || S.css("overflow") || "";
5978
6024
  if (/scroll|auto/.test(H)) return v.clientHeight != v.scrollHeight;
5979
6025
  v = v.parentNode ? v.parentNode : !1;
5980
6026
  }
5981
6027
  return !1;
5982
6028
  }, this.getViewport = function(f) {
5983
6029
  for (var v = f && f.parentNode ? f.parentNode : !1; v && v.nodeType == 1 && !/^BODY|HTML/.test(v.nodeName); ) {
5984
- var S = L(v);
6030
+ var S = k(v);
5985
6031
  if (/fixed|absolute/.test(S.css("position"))) return S;
5986
6032
  var H = S.css("overflowY") || S.css("overflowX") || S.css("overflow") || "";
5987
6033
  if (/scroll|auto/.test(H) && v.clientHeight != v.scrollHeight || S.getNiceScroll().length > 0) return S;
@@ -6046,8 +6092,8 @@ function Zs() {
6046
6092
  })();
6047
6093
  if (ee) {
6048
6094
  if (g.nativeparentscrolling && S && !e.ispage && !e.zoomactive) return !0;
6049
- var be = e.view.h >> 1;
6050
- e.newscrolly < -be ? (e.newscrolly = -be, v = -1) : e.newscrolly > e.page.maxh + be ? (e.newscrolly = e.page.maxh + be, v = 1) : v = 0;
6095
+ var we = e.view.h >> 1;
6096
+ e.newscrolly < -we ? (e.newscrolly = -we, v = -1) : e.newscrolly > e.page.maxh + we ? (e.newscrolly = e.page.maxh + we, v = 1) : v = 0;
6051
6097
  }
6052
6098
  var Ae = v > 0 ? 1 : -1;
6053
6099
  mt !== Ae && (e.scrollmom && e.scrollmom.stop(), e.newscrolly = e.getScrollTop(), mt = Ae), e.lastdeltay -= v;
@@ -6060,7 +6106,7 @@ function Zs() {
6060
6106
  });
6061
6107
  }
6062
6108
  var St = !1;
6063
- function et(f, v, S) {
6109
+ function tt(f, v, S) {
6064
6110
  var H, W;
6065
6111
  if (!S && St) return !0;
6066
6112
  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)) {
@@ -6083,14 +6129,14 @@ function Zs() {
6083
6129
  return e.railh && e.railh.scrollable ? e.onmousewheelhr(f) : !0;
6084
6130
  var v = pe(), S = !1;
6085
6131
  if (g.preservenativescrolling && e.checkarea + 600 < v && (e.nativescrollingarea = e.isScrollable(f), S = !0), e.checkarea = v, e.nativescrollingarea) return !0;
6086
- var H = et(f, !1, S);
6132
+ var H = tt(f, !1, S);
6087
6133
  return H && (e.checkarea = 0), H;
6088
6134
  }, this.onmousewheelhr = function(f) {
6089
6135
  if (!e.wheelprevented) {
6090
6136
  if (e.railslocked || !e.railh.scrollable) return !0;
6091
6137
  if (e.rail.drag) return e.cancelEvent(f);
6092
6138
  var v = pe(), S = !1;
6093
- 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);
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) : tt(f, !0, S);
6094
6140
  }
6095
6141
  }, this.stop = function() {
6096
6142
  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;
@@ -6144,9 +6190,9 @@ function Zs() {
6144
6190
  var H = e.getScrollTop(), W = e.getScrollLeft();
6145
6191
  if (((e.newscrolly - H) * (v - H) < 0 || (e.newscrollx - W) * (f - W) < 0) && e.cancelScroll(), g.bouncescroll ? (v < 0 ? v = v / 2 | 0 : v > e.page.maxh && (v = e.page.maxh + (v - 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)) : (v < 0 ? v = 0 : v > e.page.maxh && (v = e.page.maxh), f < 0 ? f = 0 : f > e.page.maxw && (f = e.page.maxw)), e.scrollrunning && f == e.newscrollx && v == e.newscrolly) return !1;
6146
6192
  e.newscrolly = v, e.newscrollx = f;
6147
- var M = e.getScrollTop(), ee = e.getScrollLeft(), be = {};
6148
- be.x = f - ee, be.y = v - M;
6149
- var Ae = Math.sqrt(be.x * be.x + be.y * be.y) | 0, oe = e.prepareTransition(Ae);
6193
+ var M = e.getScrollTop(), ee = e.getScrollLeft(), we = {};
6194
+ we.x = f - ee, we.y = v - M;
6195
+ var Ae = Math.sqrt(we.x * we.x + we.y * we.y) | 0, oe = e.prepareTransition(Ae);
6150
6196
  e.scrollrunning || (e.scrollrunning = !0, e.triggerScrollStart(ee, M, f, v, oe), e.cursorupdate.start()), e.scrollendtrapped = !0, B.transitionend || (e.scrollendtrapped && clearTimeout(e.scrollendtrapped), e.scrollendtrapped = setTimeout(e.onScrollTransitionEnd, oe)), e.setScrollTop(e.newscrolly), e.setScrollLeft(e.newscrollx);
6151
6197
  }, this.cancelScroll = function() {
6152
6198
  if (!e.scrollendtrapped) return !0;
@@ -6172,17 +6218,17 @@ function Zs() {
6172
6218
  var M = !1;
6173
6219
  if ((!e.bouncescroll || !e.rail.visibility) && (v < 0 ? (v = 0, M = !0) : v > e.page.maxh && (v = e.page.maxh, M = !0)), (!e.bouncescroll || !e.railh.visibility) && (f < 0 ? (f = 0, M = !0) : f > e.page.maxw && (f = e.page.maxw, M = !0)), e.scrollrunning && e.newscrolly === v && e.newscrollx === f) return !0;
6174
6220
  e.newscrolly = v, e.newscrollx = f, e.dst = {}, e.dst.x = f - W, e.dst.y = v - H, e.dst.px = W, e.dst.py = H;
6175
- var ee = Math.sqrt(e.dst.x * e.dst.x + e.dst.y * e.dst.y) | 0, be = e.getTransitionSpeed(ee);
6221
+ var ee = Math.sqrt(e.dst.x * e.dst.x + e.dst.y * e.dst.y) | 0, we = e.getTransitionSpeed(ee);
6176
6222
  e.bzscroll = {};
6177
6223
  var Ae = M ? 1 : 0.58;
6178
- e.bzscroll.x = new Te(W, e.newscrollx, be, 0, 0, Ae, 1), e.bzscroll.y = new Te(H, e.newscrolly, be, 0, 0, Ae, 1), pe();
6224
+ e.bzscroll.x = new Te(W, e.newscrollx, we, 0, 0, Ae, 1), e.bzscroll.y = new Te(H, e.newscrolly, we, 0, 0, Ae, 1), pe();
6179
6225
  var oe = function() {
6180
6226
  if (e.scrollrunning) {
6181
6227
  var Re = e.bzscroll.y.getPos();
6182
6228
  e.setScrollLeft(e.bzscroll.x.getNow()), e.setScrollTop(e.bzscroll.y.getNow()), Re <= 1 ? e.timer = V(oe) : (e.scrollrunning = !1, e.timer = 0, e.triggerScrollEnd());
6183
6229
  }
6184
6230
  };
6185
- e.scrollrunning || (e.triggerScrollStart(W, H, f, v, be), e.scrollrunning = !0, e.timer = V(oe));
6231
+ e.scrollrunning || (e.triggerScrollStart(W, H, f, v, we), e.scrollrunning = !0, e.timer = V(oe));
6186
6232
  }, this.cancelScroll = function() {
6187
6233
  return e.timer && G(e.timer), e.timer = 0, e.bzscroll = !1, e.scrollrunning = !1, e;
6188
6234
  };
@@ -6213,7 +6259,7 @@ function Zs() {
6213
6259
  e.zoomrestore.style.width = e.win.css("width"), e.zoomrestore.style.height = e.win.css("height"), e.zoomrestore.padding = {
6214
6260
  w: e.win.outerWidth() - e.win.width(),
6215
6261
  h: e.win.outerHeight() - e.win.height()
6216
- }, B.isios4 && (e.zoomrestore.scrollTop = we.scrollTop(), we.scrollTop(0)), e.win.css({
6262
+ }, B.isios4 && (e.zoomrestore.scrollTop = ye.scrollTop(), ye.scrollTop(0)), e.win.css({
6217
6263
  position: B.isios4 ? "absolute" : "fixed",
6218
6264
  top: 0,
6219
6265
  left: 0,
@@ -6229,7 +6275,7 @@ function Zs() {
6229
6275
  }
6230
6276
  }, this.doZoomOut = function(f) {
6231
6277
  if (e.zoomactive)
6232
- return e.zoomactive = !1, e.win.css("margin", ""), e.win.css(e.zoomrestore.style), B.isios4 && we.scrollTop(e.zoomrestore.scrollTop), e.rail.css({
6278
+ return e.zoomactive = !1, e.win.css("margin", ""), e.win.css(e.zoomrestore.style), B.isios4 && ye.scrollTop(e.zoomrestore.scrollTop), e.rail.css({
6233
6279
  "z-index": e.zindex
6234
6280
  }), e.zoom.css({
6235
6281
  "z-index": e.zindex
@@ -6240,11 +6286,11 @@ function Zs() {
6240
6286
  if (e.zoomactive) {
6241
6287
  var f = e.getScrollTop();
6242
6288
  e.win.css({
6243
- width: we.width() - e.zoomrestore.padding.w + "px",
6244
- height: we.height() - e.zoomrestore.padding.h + "px"
6289
+ width: ye.width() - e.zoomrestore.padding.w + "px",
6290
+ height: ye.height() - e.zoomrestore.padding.h + "px"
6245
6291
  }), e.onResize(), e.setScrollTop(Math.min(e.page.maxh, f));
6246
6292
  }
6247
- }, this.init(), L.nicescroll.push(this);
6293
+ }, this.init(), k.nicescroll.push(this);
6248
6294
  }, o = function(j) {
6249
6295
  var C = this;
6250
6296
  this.nc = j, this.lastx = 0, this.lasty = 0, this.speedx = 0, this.speedy = 0, this.lasttime = 0, this.steptime = 0, this.snapx = !1, this.snapy = !1, this.demulx = 0, this.demuly = 0, this.lastscrollx = -1, this.lastscrolly = -1, this.chkx = 0, this.chky = 0, this.timer = 0, this.reset = function(e, Z) {
@@ -6282,65 +6328,65 @@ function Zs() {
6282
6328
  } else
6283
6329
  C.doSnapy(C.nc.getScrollLeft(), C.nc.getScrollTop());
6284
6330
  };
6285
- }, at = d.fn.scrollTop;
6331
+ }, lt = d.fn.scrollTop;
6286
6332
  d.cssHooks.pageYOffset = {
6287
6333
  get: function(j, C, e) {
6288
- var Z = L.data(j, "__nicescroll") || !1;
6289
- return Z && Z.ishwscroll ? Z.getScrollTop() : at.call(j);
6334
+ var Z = k.data(j, "__nicescroll") || !1;
6335
+ return Z && Z.ishwscroll ? Z.getScrollTop() : lt.call(j);
6290
6336
  },
6291
6337
  set: function(j, C) {
6292
- var e = L.data(j, "__nicescroll") || !1;
6293
- return e && e.ishwscroll ? e.setScrollTop(parseInt(C)) : at.call(j, C), this;
6338
+ var e = k.data(j, "__nicescroll") || !1;
6339
+ return e && e.ishwscroll ? e.setScrollTop(parseInt(C)) : lt.call(j, C), this;
6294
6340
  }
6295
6341
  }, d.fn.scrollTop = function(j) {
6296
6342
  if (j === void 0) {
6297
- var C = this[0] && L.data(this[0], "__nicescroll") || !1;
6298
- return C && C.ishwscroll ? C.getScrollTop() : at.call(this);
6343
+ var C = this[0] && k.data(this[0], "__nicescroll") || !1;
6344
+ return C && C.ishwscroll ? C.getScrollTop() : lt.call(this);
6299
6345
  } else
6300
6346
  return this.each(function() {
6301
- var e = L.data(this, "__nicescroll") || !1;
6302
- e && e.ishwscroll ? e.setScrollTop(parseInt(j)) : at.call(L(this), j);
6347
+ var e = k.data(this, "__nicescroll") || !1;
6348
+ e && e.ishwscroll ? e.setScrollTop(parseInt(j)) : lt.call(k(this), j);
6303
6349
  });
6304
6350
  };
6305
6351
  var me = d.fn.scrollLeft;
6306
- L.cssHooks.pageXOffset = {
6352
+ k.cssHooks.pageXOffset = {
6307
6353
  get: function(j, C, e) {
6308
- var Z = L.data(j, "__nicescroll") || !1;
6354
+ var Z = k.data(j, "__nicescroll") || !1;
6309
6355
  return Z && Z.ishwscroll ? Z.getScrollLeft() : me.call(j);
6310
6356
  },
6311
6357
  set: function(j, C) {
6312
- var e = L.data(j, "__nicescroll") || !1;
6358
+ var e = k.data(j, "__nicescroll") || !1;
6313
6359
  return e && e.ishwscroll ? e.setScrollLeft(parseInt(C)) : me.call(j, C), this;
6314
6360
  }
6315
6361
  }, d.fn.scrollLeft = function(j) {
6316
6362
  if (j === void 0) {
6317
- var C = this[0] && L.data(this[0], "__nicescroll") || !1;
6363
+ var C = this[0] && k.data(this[0], "__nicescroll") || !1;
6318
6364
  return C && C.ishwscroll ? C.getScrollLeft() : me.call(this);
6319
6365
  } else
6320
6366
  return this.each(function() {
6321
- var e = L.data(this, "__nicescroll") || !1;
6322
- e && e.ishwscroll ? e.setScrollLeft(parseInt(j)) : me.call(L(this), j);
6367
+ var e = k.data(this, "__nicescroll") || !1;
6368
+ e && e.ishwscroll ? e.setScrollLeft(parseInt(j)) : me.call(k(this), j);
6323
6369
  });
6324
6370
  };
6325
6371
  var Wt = function(j) {
6326
6372
  var C = this;
6327
6373
  if (this.length = 0, this.name = "nicescrollarray", this.each = function(g) {
6328
- return L.each(C, g), C;
6374
+ return k.each(C, g), C;
6329
6375
  }, this.push = function(g) {
6330
6376
  C[C.length] = g, C.length++;
6331
6377
  }, this.eq = function(g) {
6332
6378
  return C[g];
6333
6379
  }, j)
6334
6380
  for (var e = 0; e < j.length; e++) {
6335
- var Z = L.data(j[e], "__nicescroll") || !1;
6381
+ var Z = k.data(j[e], "__nicescroll") || !1;
6336
6382
  Z && (this[this.length] = Z, this.length++);
6337
6383
  }
6338
6384
  return this;
6339
6385
  };
6340
- function Yi(j, C, e) {
6386
+ function Ui(j, C, e) {
6341
6387
  for (var Z = 0, g = C.length; Z < g; Z++) e(j, C[Z]);
6342
6388
  }
6343
- Yi(
6389
+ Ui(
6344
6390
  Wt.prototype,
6345
6391
  ["show", "hide", "toggle", "onResize", "resize", "remove", "stop", "doScrollPos"],
6346
6392
  function(j, C) {
@@ -6352,19 +6398,19 @@ function Zs() {
6352
6398
  };
6353
6399
  }
6354
6400
  ), d.fn.getNiceScroll = function(j) {
6355
- return j === void 0 ? new Wt(this) : this[j] && L.data(this[j], "__nicescroll") || !1;
6401
+ return j === void 0 ? new Wt(this) : this[j] && k.data(this[j], "__nicescroll") || !1;
6356
6402
  };
6357
- var Ui = d.expr.pseudos || d.expr[":"];
6358
- Ui.nicescroll = function(j) {
6359
- return L.data(j, "__nicescroll") !== void 0;
6360
- }, L.fn.niceScroll = function(j, C) {
6403
+ var Gi = d.expr.pseudos || d.expr[":"];
6404
+ Gi.nicescroll = function(j) {
6405
+ return k.data(j, "__nicescroll") !== void 0;
6406
+ }, k.fn.niceScroll = function(j, C) {
6361
6407
  C === void 0 && typeof j == "object" && !("jquery" in j) && (C = j, j = !1);
6362
6408
  var e = new Wt();
6363
6409
  return this.each(function() {
6364
- var Z = L(this), g = L.extend({}, C);
6410
+ var Z = k(this), g = k.extend({}, C);
6365
6411
  if (j) {
6366
- var De = L(j);
6367
- g.doc = De.length > 1 ? L(j, Z) : De, g.win = Z;
6412
+ var De = k(j);
6413
+ g.doc = De.length > 1 ? k(j, Z) : De, g.win = Z;
6368
6414
  }
6369
6415
  var ge = !("doc" in g);
6370
6416
  !ge && !("win" in g) && (g.win = Z);
@@ -6375,28 +6421,28 @@ function Zs() {
6375
6421
  getjQuery: function() {
6376
6422
  return d;
6377
6423
  }
6378
- }, L.nicescroll || (L.nicescroll = new Wt(), L.nicescroll.options = wt);
6424
+ }, k.nicescroll || (k.nicescroll = new Wt(), k.nicescroll.options = wt);
6379
6425
  });
6380
- })(wr)), wr.exports;
6426
+ })(xr)), xr.exports;
6381
6427
  }
6382
- Zs();
6383
- const Xr = ".bloom-translationGroup:not(.bloom-imageDescription) .bloom-editable.bloom-visibility-code-on, .scrollable";
6384
- function Ta(s, c) {
6428
+ Js();
6429
+ const Ur = ".bloom-translationGroup:not(.bloom-imageDescription) .bloom-editable.bloom-visibility-code-on, .scrollable";
6430
+ function Ea(s, c) {
6385
6431
  if (s.classList.contains("cover"))
6386
6432
  return;
6387
- const d = jr(s);
6433
+ const d = Fr(s);
6388
6434
  if ("IntersectionObserver" in window) {
6389
- let h = [], T = 0, A = 0;
6390
- Qt(s).find(Xr).each((z, D) => {
6391
- const L = D.firstElementChild, q = D.lastElementChild;
6392
- if (!L || !q)
6435
+ let h = [], T = 0, L = 0;
6436
+ Qt(s).find(Ur).each((z, D) => {
6437
+ const k = D.firstElementChild, q = D.lastElementChild;
6438
+ if (!k || !q)
6393
6439
  return;
6394
6440
  let _ = 1;
6395
- const we = document.querySelector(
6441
+ const ye = document.querySelector(
6396
6442
  "style#scale-style-sheet"
6397
6443
  );
6398
- if (we) {
6399
- const Ee = we.innerHTML.match(
6444
+ if (ye) {
6445
+ const Ee = ye.innerHTML.match(
6400
6446
  /transform:[a-z0-9, ()]* scale\((\d+(\.\d+)?)\)/
6401
6447
  );
6402
6448
  Ee && (_ = parseFloat(Ee[1]));
@@ -6411,13 +6457,13 @@ function Ta(s, c) {
6411
6457
  ));
6412
6458
  }
6413
6459
  }
6414
- const { topAdjust: Q, leftAdjust: _e, thumbWidth: V } = vo(_, D), G = new IntersectionObserver(
6460
+ const { topAdjust: Q, leftAdjust: _e, thumbWidth: V } = bo(_, D), G = new IntersectionObserver(
6415
6461
  (Ee, U) => {
6416
6462
  Ee.forEach((pe) => {
6417
- if (A++, U.unobserve(pe.target), !pe.target.parentElement)
6463
+ if (L++, U.unobserve(pe.target), !pe.target.parentElement)
6418
6464
  return;
6419
6465
  const wt = !!pe.target.closest(
6420
- Ri
6466
+ ji
6421
6467
  );
6422
6468
  let Ve = pe.intersectionRatio < 0.999;
6423
6469
  if (Ve && wt) {
@@ -6425,14 +6471,14 @@ function Ta(s, c) {
6425
6471
  (pe.target != pe.target.parentElement?.firstElementChild || pe.target != pe.target.parentElement.lastElementChild) && ($e /= 2);
6426
6472
  const ti = (1 - pe.intersectionRatio) * pe.target.clientHeight, o = window.getComputedStyle(
6427
6473
  pe.target
6428
- ).lineHeight, at = parseFloat(
6474
+ ).lineHeight, lt = parseFloat(
6429
6475
  // remove the trailing "px"
6430
6476
  o.substring(
6431
6477
  0,
6432
6478
  o.length - 2
6433
6479
  )
6434
6480
  );
6435
- Ve = ti > at * $e;
6481
+ Ve = ti > lt * $e;
6436
6482
  }
6437
6483
  if (Ve && h.indexOf(
6438
6484
  pe.target.parentElement
@@ -6455,7 +6501,7 @@ function Ta(s, c) {
6455
6501
  "scrolling-bubble"
6456
6502
  );
6457
6503
  }
6458
- A === T && (Qt(h).niceScroll({
6504
+ L === T && (Qt(h).niceScroll({
6459
6505
  autohidemode: !1,
6460
6506
  railoffset: {
6461
6507
  top: -Q,
@@ -6466,7 +6512,7 @@ function Ta(s, c) {
6466
6512
  cursoropacitymax: 0.1,
6467
6513
  cursorborderradius: V
6468
6514
  // Make the corner more rounded than the 5px default.
6469
- }), Js(
6515
+ }), ea(
6470
6516
  s,
6471
6517
  c
6472
6518
  ), h = []);
@@ -6474,11 +6520,11 @@ function Ta(s, c) {
6474
6520
  },
6475
6521
  { root: D }
6476
6522
  );
6477
- T++, G.observe(L), L !== q && (T++, G.observe(q));
6523
+ T++, G.observe(k), k !== q && (T++, G.observe(q));
6478
6524
  });
6479
6525
  }
6480
6526
  }
6481
- function Ks(s) {
6527
+ function Qs(s) {
6482
6528
  for (var c = s && s.parentNode ? s.parentNode : null; c && c.nodeType === Node.ELEMENT_NODE && !/^BODY|HTML/.test(c.nodeName); ) {
6483
6529
  const d = window.getComputedStyle(c), h = d.getPropertyValue("position");
6484
6530
  if (/fixed|absolute/.test(h)) return c;
@@ -6488,28 +6534,34 @@ function Ks(s) {
6488
6534
  }
6489
6535
  return null;
6490
6536
  }
6491
- function vo(s, c) {
6537
+ function bo(s, c) {
6492
6538
  let d = 0, h = 0, T = "12px";
6493
6539
  if (s !== 1) {
6494
- const A = c.parentElement;
6495
- if (!A || !A.classList.contains("bloom-translationGroup"))
6540
+ const L = c.parentElement;
6541
+ if (!L || !L.classList.contains("bloom-translationGroup"))
6496
6542
  return { topAdjust: d, leftAdjust: h, thumbWidth: T };
6497
- if (Ks(c)) {
6498
- const D = window.getComputedStyle(A), L = D.getPropertyValue("padding-top") || "0", q = D.getPropertyValue("padding-left") || "0";
6499
- d = parseFloat(L) * (s - 1), h = parseFloat(q) * (s - 1);
6543
+ if (Qs(c)) {
6544
+ const D = window.getComputedStyle(L), k = D.getPropertyValue("padding-top") || "0", q = D.getPropertyValue("padding-left") || "0";
6545
+ d = parseFloat(k) * (s - 1), h = parseFloat(q) * (s - 1);
6500
6546
  } else {
6501
- const D = A.parentElement;
6547
+ const D = L.parentElement;
6502
6548
  if (!D)
6503
6549
  return { topAdjust: d, leftAdjust: h, thumbWidth: T };
6504
6550
  T = `${12 * s}px`;
6505
- const L = D?.offsetTop, q = D.offsetLeft + D.offsetWidth;
6506
- d = -(L * (s - 1)), h = -(q * (s - 1));
6551
+ const k = D?.offsetTop, q = D.offsetLeft + D.offsetWidth;
6552
+ d = -(k * (s - 1)), h = -(q * (s - 1));
6507
6553
  }
6508
6554
  }
6509
6555
  return { topAdjust: d, leftAdjust: h, thumbWidth: T };
6510
6556
  }
6511
- function Js(s, c) {
6512
- if (s.removeEventListener("pointerdown", An), s.addEventListener("pointerdown", An), !!c)
6557
+ function ea(s, c) {
6558
+ if (s.removeEventListener(
6559
+ "pointerdown",
6560
+ Ln
6561
+ ), s.addEventListener(
6562
+ "pointerdown",
6563
+ Ln
6564
+ ), !!c)
6513
6565
  for (const d of ["pointermove", "pointerup"])
6514
6566
  s.ownerDocument.body.addEventListener(
6515
6567
  d,
@@ -6519,22 +6571,22 @@ function Js(s, c) {
6519
6571
  }
6520
6572
  );
6521
6573
  }
6522
- function Sa(s, c) {
6523
- s.querySelectorAll(Xr).forEach(
6574
+ function Ca(s, c) {
6575
+ s.querySelectorAll(Ur).forEach(
6524
6576
  (d) => {
6525
6577
  const h = Qt(d).getNiceScroll();
6526
6578
  if (h && h.length > 0) {
6527
- let { topAdjust: T, leftAdjust: A, thumbWidth: z } = vo(c, d);
6528
- h[0].opt.railoffset.top = -T, h[0].opt.railoffset.left = -A, h[0].opt.cursorwidth = z, h[0].resize();
6579
+ let { topAdjust: T, leftAdjust: L, thumbWidth: z } = bo(c, d);
6580
+ h[0].opt.railoffset.top = -T, h[0].opt.railoffset.left = -L, h[0].opt.cursorwidth = z, h[0].resize();
6529
6581
  }
6530
6582
  }
6531
6583
  );
6532
6584
  }
6533
- function An(s) {
6585
+ function Ln(s) {
6534
6586
  s.target instanceof HTMLDivElement && s.target.classList.contains("nicescroll-cursors") && (s.target.setPointerCapture(s.pointerId), s.pointerType === "mouse" && s.stopPropagation());
6535
6587
  }
6536
- function Ea() {
6537
- Qt("div.bloom-page")[0]?.querySelectorAll(Xr).forEach((s) => {
6588
+ function Aa() {
6589
+ Qt("div.bloom-page")[0]?.querySelectorAll(Ur).forEach((s) => {
6538
6590
  const c = Qt(
6539
6591
  s
6540
6592
  ).getNiceScroll();
@@ -6551,7 +6603,7 @@ function Ea() {
6551
6603
  ), d.classList.add("bloom-vertical-align-bottom")), s.style.overflow = "", s.style.outline = "", s.style.width = "");
6552
6604
  });
6553
6605
  }
6554
- class Qs {
6606
+ class ta {
6555
6607
  static getActualUrlFromCSSPropertyValue(c) {
6556
6608
  const d = c.match(/.*url\((['"])(.*?)\1\).*/i);
6557
6609
  return d ? d[2] : "";
@@ -6632,16 +6684,16 @@ const gt = class gt {
6632
6684
  this.animatableCanvas.classList[D]
6633
6685
  );
6634
6686
  h.classList.add("bloom-animationBackground");
6635
- const A = this.animatableCanvas.cloneNode(
6687
+ const L = this.animatableCanvas.cloneNode(
6636
6688
  !0
6637
6689
  ), z = () => {
6638
6690
  const D = this.animatableCanvas.style.backgroundImage;
6639
- D ? A.style.backgroundImage = D : requestAnimationFrame(z);
6691
+ D ? L.style.backgroundImage = D : requestAnimationFrame(z);
6640
6692
  };
6641
- A.hasAttribute("data-imgsizebasedon") || requestAnimationFrame(z), T = document.createElement("div"), T.classList.add(gt.wrapperClassName), T.appendChild(A), T.style.visibility = "hidden", h.appendChild(T), c.insertBefore(h, c.firstChild), this.applyCanvasAspectRatioToAnimationWrapper(
6693
+ L.hasAttribute("data-imgsizebasedon") || requestAnimationFrame(z), T = document.createElement("div"), T.classList.add(gt.wrapperClassName), T.appendChild(L), T.style.visibility = "hidden", h.appendChild(T), c.insertBefore(h, c.firstChild), this.applyCanvasAspectRatioToAnimationWrapper(
6642
6694
  c,
6643
6695
  T,
6644
- A,
6696
+ L,
6645
6697
  d
6646
6698
  );
6647
6699
  } else
@@ -6655,10 +6707,10 @@ const gt = class gt {
6655
6707
  createAndPlayAnimation(c, d) {
6656
6708
  const h = gt.getAnimationCanvas(c);
6657
6709
  if (this.animationEngine && this.animationEngine.endAnimation(), h) {
6658
- const T = h.getAttribute("data-initialrect"), A = h.getAttribute("data-finalrect");
6659
- this.animationEngine = new ea(
6710
+ const T = h.getAttribute("data-initialrect"), L = h.getAttribute("data-finalrect");
6711
+ this.animationEngine = new ia(
6660
6712
  T,
6661
- A,
6713
+ L,
6662
6714
  this.animationDuration,
6663
6715
  h
6664
6716
  ), d ? this.animationEngine.setCurrentAnimationFrame() : this.animationEngine.startAnimation();
@@ -6668,13 +6720,13 @@ const gt = class gt {
6668
6720
  if (c.hasAttribute("data-aspectRatio"))
6669
6721
  this.placeAnimationWrapper(d), this.createAndPlayAnimation(c, T);
6670
6722
  else if (h.hasAttribute("data-imgsizebasedon")) {
6671
- const A = h.getAttribute("data-imgsizebasedon").split(",").map(parseFloat);
6723
+ const L = h.getAttribute("data-imgsizebasedon").split(",").map(parseFloat);
6672
6724
  d.setAttribute(
6673
6725
  "data-aspectRatio",
6674
- (A[0] / A[1]).toString()
6726
+ (L[0] / L[1]).toString()
6675
6727
  ), this.placeAnimationWrapper(d), this.createAndPlayAnimation(c, T);
6676
6728
  } else {
6677
- const A = () => {
6729
+ const L = () => {
6678
6730
  if (h.style.backgroundImage) {
6679
6731
  const z = new Image();
6680
6732
  z.addEventListener("load", () => {
@@ -6682,13 +6734,13 @@ const gt = class gt {
6682
6734
  "data-aspectRatio",
6683
6735
  (z.naturalWidth / z.naturalHeight).toString()
6684
6736
  ), this.placeAnimationWrapper(d), this.createAndPlayAnimation(c, T);
6685
- }), z.src = Qs.getActualUrlFromCSSPropertyValue(
6737
+ }), z.src = ta.getActualUrlFromCSSPropertyValue(
6686
6738
  h.style.backgroundImage
6687
6739
  );
6688
6740
  } else
6689
- requestAnimationFrame(A);
6741
+ requestAnimationFrame(L);
6690
6742
  };
6691
- requestAnimationFrame(A);
6743
+ requestAnimationFrame(L);
6692
6744
  }
6693
6745
  }
6694
6746
  // Enhance: some of the calculations here may require adjustment if we ever do
@@ -6698,13 +6750,13 @@ const gt = class gt {
6698
6750
  placeAnimationWrapper(c) {
6699
6751
  const d = parseFloat(
6700
6752
  c.getAttribute("data-aspectRatio")
6701
- ), h = c.parentElement, T = h.clientWidth, A = h.clientHeight, z = T / A;
6753
+ ), h = c.parentElement, T = h.clientWidth, L = h.clientHeight, z = T / L;
6702
6754
  if (d < z) {
6703
- const D = A * d;
6755
+ const D = L * d;
6704
6756
  c.style.height = "100%", c.style.width = `${D}px`, c.style.left = `${(T - D) / 2}px`;
6705
6757
  } else {
6706
6758
  const D = T / d;
6707
- c.style.width = "100%", c.style.height = `${D}px`, c.style.top = `${(A - D) / 2}px`;
6759
+ c.style.width = "100%", c.style.height = `${D}px`, c.style.top = `${(L - D) / 2}px`;
6708
6760
  }
6709
6761
  c.style.overflow = "hidden", c.style.visibility = "visible", this.placeCanvasByScale(
6710
6762
  c,
@@ -6766,8 +6818,8 @@ const gt = class gt {
6766
6818
  }
6767
6819
  };
6768
6820
  gt.wrapperClassName = "bloom-ui-animationWrapper";
6769
- let kn = gt;
6770
- class ea {
6821
+ let Nn = gt;
6822
+ class ia {
6771
6823
  //initial and final rect strings come in as space-separated "left top width height"
6772
6824
  // all four of these parameters are reperesented as fractions of the canvas
6773
6825
  //duration is the length of the animation in seconds
@@ -6776,8 +6828,8 @@ class ea {
6776
6828
  // the parent's transform can just be translateZ(0), but it needs to be moved out of the page stacking context in the same way as its child in order for overflow:hidden to have any effect
6777
6829
  constructor(c, d, h, T) {
6778
6830
  this.duration = h * 1e3, this.totalElapsedTime = 0, this.lastFrameTime = Date.now(), this.paused = !0, this.canvasToAnimate = T;
6779
- const A = c.split(" ").map(parseFloat), z = d.split(" ").map(parseFloat);
6780
- A.length != 4 || z.length != 4 || Math.min(...z) < 0 || Math.min(...A) < 0 || A[0] + A[2] > 1.01 || A[1] + A[3] > 1.01 || z[0] + z[2] > 1.01 || z[1] + z[3] > 1.01 ? (this.initialScale = 1, this.finalScale = 1, this.initialLeft = 0, this.finalLeft = 0, this.initialTop = 0, this.finalTop = 0) : (A[0], z[0], A[1], z[1], this.initialScale = 1 / Math.min(A[2], A[3]), this.initialScale == 1 && (this.initialScale = 1.0001), this.finalScale = 1 / Math.min(z[2], z[3]), this.finalScale == 1 && (this.finalScale = 1.0001), this.initialLeft = this.initialScale * 100 * (0.5 - (0.5 * A[2] + A[0])), this.initialTop = this.initialScale * 100 * (0.5 - (0.5 * A[3] + A[1])), this.finalLeft = this.finalScale * 100 * (0.5 - (0.5 * z[2] + z[0])), this.finalTop = this.finalScale * 100 * (0.5 - (0.5 * z[3] + z[1])));
6831
+ const L = c.split(" ").map(parseFloat), z = d.split(" ").map(parseFloat);
6832
+ L.length != 4 || z.length != 4 || Math.min(...z) < 0 || Math.min(...L) < 0 || L[0] + L[2] > 1.01 || L[1] + L[3] > 1.01 || z[0] + z[2] > 1.01 || z[1] + z[3] > 1.01 ? (this.initialScale = 1, this.finalScale = 1, this.initialLeft = 0, this.finalLeft = 0, this.initialTop = 0, this.finalTop = 0) : (L[0], z[0], L[1], z[1], this.initialScale = 1 / Math.min(L[2], L[3]), this.initialScale == 1 && (this.initialScale = 1.0001), this.finalScale = 1 / Math.min(z[2], z[3]), this.finalScale == 1 && (this.finalScale = 1.0001), this.initialLeft = this.initialScale * 100 * (0.5 - (0.5 * L[2] + L[0])), this.initialTop = this.initialScale * 100 * (0.5 - (0.5 * L[3] + L[1])), this.finalLeft = this.finalScale * 100 * (0.5 - (0.5 * z[2] + z[0])), this.finalTop = this.finalScale * 100 * (0.5 - (0.5 * z[3] + z[1])));
6781
6833
  }
6782
6834
  //Enhance: changing scale while changing left/top can result in slightly choppy motion if the direction of apparent motion from scaling is opposite the direction of motion from left and/or top
6783
6835
  //this is noticeable at low speeds.
@@ -6785,11 +6837,11 @@ class ea {
6785
6837
  getScaleAndPosition() {
6786
6838
  let c = this.totalElapsedTime / this.duration;
6787
6839
  c = Math.min(1, Math.max(0, c));
6788
- const d = this.easingFunction(c), h = this.initialScale + (this.finalScale - this.initialScale) * d, T = this.initialLeft + (this.finalLeft - this.initialLeft) * d, A = this.initialTop + (this.finalTop - this.initialTop) * d;
6840
+ const d = this.easingFunction(c), h = this.initialScale + (this.finalScale - this.initialScale) * d, T = this.initialLeft + (this.finalLeft - this.initialLeft) * d, L = this.initialTop + (this.finalTop - this.initialTop) * d;
6789
6841
  return {
6790
6842
  scale: h,
6791
6843
  left: T,
6792
- top: A
6844
+ top: L
6793
6845
  };
6794
6846
  }
6795
6847
  //make the animation smoother by applying a non-linear transformation.
@@ -6822,78 +6874,79 @@ class ea {
6822
6874
  }
6823
6875
  }
6824
6876
  export {
6825
- kn as Animation,
6826
- jr as IsRunningOnBloomDesktop,
6877
+ Nn as Animation,
6878
+ Fr as IsRunningOnBloomDesktop,
6827
6879
  mi as LiteEvent,
6828
- zi as PageNarrationComplete,
6829
- Sr as PlayCompleted,
6830
- wn as PlayFailed,
6831
- sa as PlayUnblocked,
6832
- ns as PlaybackMode,
6833
- Ii as ToggleImageDescription,
6834
- ea as TransformBasedAnimator,
6835
- la as abortNarrationPlayback,
6836
- Ta as addScrollbarsToPage,
6837
- Is as adjustDraggablesForLanguage,
6880
+ Ii as PageNarrationComplete,
6881
+ Er as PlayCompleted,
6882
+ Tn as PlayFailed,
6883
+ la as PlayUnblocked,
6884
+ ss as PlaybackMode,
6885
+ Hi as ToggleImageDescription,
6886
+ ia as TransformBasedAnimator,
6887
+ ua as abortNarrationPlayback,
6888
+ Ea as addScrollbarsToPage,
6889
+ Os as adjustDraggablesForLanguage,
6890
+ Rr as cancelVideoFirstFramePriming,
6838
6891
  jt as classSetter,
6839
- qs as cleanupActivitySounds,
6840
- Ea as cleanupNiceScroll,
6841
- da as computeDuration,
6842
- $s as copyContentToTarget,
6892
+ js as cleanupActivitySounds,
6893
+ Aa as cleanupNiceScroll,
6894
+ pa as computeDuration,
6895
+ Ys as copyContentToTarget,
6843
6896
  ei as currentPlaybackMode,
6844
- go as doShowAnswersInTargets,
6845
- wa as draggingSlider,
6846
- xr as durationReporter,
6847
- Sa as fixNiceScrollOffsets,
6848
- Os as getAudioSentencesOfVisibleEditables,
6849
- us as getCurrentNarrationPage,
6850
- $r as getTarget,
6851
- Pn as getUrlPrefixFromWindowHref,
6852
- qi as hideVideoAutoplayBlockedHint,
6853
- Ms as hideVideoError,
6854
- ha as hidingPage,
6855
- Ps as isDefiniteVideoPlaybackSupportFailure,
6856
- Ln as isSwipeInProgress,
6857
- ya as isTheTextInDraggablesTheSame,
6858
- Ls as isTransientVideoPlayFailure,
6859
- Di as kAudioSentence,
6860
- ls as kHighlightSegmentClass,
6861
- Ri as kLegacyCanvasElementSelector,
6862
- Xr as kSelectorForPotentialNiceScrollElements,
6863
- ta as listenForPlayDuration,
6864
- Nn as logNarration,
6865
- ca as pageHasAudio,
6866
- fa as pauseNarration,
6867
- so as performCheck,
6868
- ao as performTryAgain,
6897
+ vo as doShowAnswersInTargets,
6898
+ Ta as draggingSlider,
6899
+ Tr as durationReporter,
6900
+ Ca as fixNiceScrollOffsets,
6901
+ qs as getAudioSentencesOfVisibleEditables,
6902
+ ds as getCurrentNarrationPage,
6903
+ Yr as getTarget,
6904
+ Mn as getUrlPrefixFromWindowHref,
6905
+ Ri as hideVideoAutoplayBlockedHint,
6906
+ Is as hideVideoError,
6907
+ ga as hidingPage,
6908
+ Ms as isDefiniteVideoPlaybackSupportFailure,
6909
+ Pn as isSwipeInProgress,
6910
+ wa as isTheTextInDraggablesTheSame,
6911
+ Ps as isTransientVideoPlayFailure,
6912
+ Mi as kAudioSentence,
6913
+ us as kHighlightSegmentClass,
6914
+ ji as kLegacyCanvasElementSelector,
6915
+ Ur as kSelectorForPotentialNiceScrollElements,
6916
+ ra as listenForPlayDuration,
6917
+ Dn as logNarration,
6918
+ fa as pageHasAudio,
6919
+ ha as pauseNarration,
6920
+ lo as performCheck,
6921
+ co as performTryAgain,
6869
6922
  gi as playAllAudio,
6870
- fs as playAllSentences,
6871
- qr as playAllVideo,
6872
- js as playCorrectOrWrongSound,
6873
- ma as playInitialElements,
6874
- ua as playNarration,
6875
- Zn as playSoundOf,
6876
- Rs as preloadSoundsForActivity,
6877
- pa as prepareActivity,
6878
- cs as setCurrentPage,
6923
+ hs as playAllSentences,
6924
+ jr as playAllVideo,
6925
+ Fs as playCorrectOrWrongSound,
6926
+ ya as playInitialElements,
6927
+ da as playNarration,
6928
+ Jn as playSoundOf,
6929
+ Ws as preloadSoundsForActivity,
6930
+ ma as prepareActivity,
6931
+ fs as setCurrentPage,
6879
6932
  Kt as setCurrentPlaybackMode,
6880
- ba as setDefaultSoundUrls,
6881
- oa as setDurationOfPagesWithoutNarration,
6882
- aa as setIncludeImageDescriptions,
6883
- ra as setLogNarration,
6884
- os as setPlayerUrlPrefix,
6885
- na as setPlayerUrlPrefixFromWindowLocationHref,
6886
- va as setReportScore,
6887
- ia as setTestIsSwipeInProgress,
6888
- Js as setupSpecialMouseTrackingForNiceScroll,
6889
- xa as setupWordChooserSlider,
6890
- Yn as showVideoAutoplayBlockedHint,
6891
- xn as showVideoError,
6892
- Ns as showVideoFirstFrameWhenReady,
6893
- Bs as shuffle,
6894
- ss as sortAudioElements,
6895
- Br as stopPlayAllVideoPlayback,
6896
- ga as undoPrepareActivity,
6897
- Nr as urlPrefix
6933
+ xa as setDefaultSoundUrls,
6934
+ aa as setDurationOfPagesWithoutNarration,
6935
+ ca as setIncludeImageDescriptions,
6936
+ oa as setLogNarration,
6937
+ as as setPlayerUrlPrefix,
6938
+ sa as setPlayerUrlPrefixFromWindowLocationHref,
6939
+ ba as setReportScore,
6940
+ na as setTestIsSwipeInProgress,
6941
+ ea as setupSpecialMouseTrackingForNiceScroll,
6942
+ Sa as setupWordChooserSlider,
6943
+ Gn as showVideoAutoplayBlockedHint,
6944
+ Sn as showVideoError,
6945
+ Ds as showVideoFirstFrameWhenReady,
6946
+ Rs as shuffle,
6947
+ ls as sortAudioElements,
6948
+ qr as stopPlayAllVideoPlayback,
6949
+ va as undoPrepareActivity,
6950
+ Pr as urlPrefix
6898
6951
  };
6899
6952
  //# sourceMappingURL=shared.es.js.map