@beyondwords/player 0.1.40 → 0.1.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/es.js CHANGED
@@ -1,15 +1,15 @@
1
- var hu = Object.defineProperty, _u = Object.defineProperties;
2
- var yu = Object.getOwnPropertyDescriptors;
1
+ var _u = Object.defineProperty, yu = Object.defineProperties;
2
+ var vu = Object.getOwnPropertyDescriptors;
3
3
  var Io = Object.getOwnPropertySymbols;
4
4
  var bl = Object.prototype.hasOwnProperty, kl = Object.prototype.propertyIsEnumerable;
5
- var Vs = (t, e, i) => e in t ? hu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, Kt = (t, e) => {
5
+ var Vs = (t, e, i) => e in t ? _u(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, Kt = (t, e) => {
6
6
  for (var i in e || (e = {}))
7
7
  bl.call(e, i) && Vs(t, i, e[i]);
8
8
  if (Io)
9
9
  for (var i of Io(e))
10
10
  kl.call(e, i) && Vs(t, i, e[i]);
11
11
  return t;
12
- }, Zi = (t, e) => _u(t, yu(e));
12
+ }, Zi = (t, e) => yu(t, vu(e));
13
13
  var Ws = (t, e) => {
14
14
  var i = {};
15
15
  for (var n in t)
@@ -45,11 +45,11 @@ var Si = (t, e, i) => new Promise((n, o) => {
45
45
  }, a = (r) => r.done ? n(r.value) : Promise.resolve(r.value).then(s, l);
46
46
  a((i = i.apply(t, e)).next());
47
47
  });
48
- /*! version:"0.1.40" */
48
+ /*! version:"0.1.42" */
49
49
  function ee() {
50
50
  }
51
- const vu = (t) => t;
52
- function bu(t, e) {
51
+ const bu = (t) => t;
52
+ function ku(t, e) {
53
53
  for (const i in e)
54
54
  t[i] = e[i];
55
55
  return (
@@ -76,7 +76,7 @@ let Bo;
76
76
  function sn(t, e) {
77
77
  return t === e ? !0 : (Bo || (Bo = document.createElement("a")), Bo.href = e, t === Bo.href);
78
78
  }
79
- function ku(t) {
79
+ function pu(t) {
80
80
  return Object.keys(t).length === 0;
81
81
  }
82
82
  function qn(t, e, i, n) {
@@ -86,7 +86,7 @@ function qn(t, e, i, n) {
86
86
  }
87
87
  }
88
88
  function Ya(t, e, i, n) {
89
- return t[1] && n ? bu(i.ctx.slice(), t[1](n(e))) : i.ctx;
89
+ return t[1] && n ? ku(i.ctx.slice(), t[1](n(e))) : i.ctx;
90
90
  }
91
91
  function Hn(t, e, i, n) {
92
92
  if (t[2] && n) {
@@ -130,14 +130,14 @@ function Tl(t) {
130
130
  ];
131
131
  }
132
132
  const Za = typeof window != "undefined";
133
- let pu = Za ? () => window.performance.now() : () => Date.now(), Cs = Za ? (t) => requestAnimationFrame(t) : ee;
133
+ let Su = Za ? () => window.performance.now() : () => Date.now(), Cs = Za ? (t) => requestAnimationFrame(t) : ee;
134
134
  const Rn = /* @__PURE__ */ new Set();
135
135
  function Ga(t) {
136
136
  Rn.forEach((e) => {
137
137
  e.c(t) || (Rn.delete(e), e.f());
138
138
  }), Rn.size !== 0 && Cs(Ga);
139
139
  }
140
- function Su(t) {
140
+ function wu(t) {
141
141
  let e;
142
142
  return Rn.size === 0 && Cs(Ga), {
143
143
  promise: new Promise((i) => {
@@ -148,7 +148,7 @@ function Su(t) {
148
148
  }
149
149
  };
150
150
  }
151
- const wu = typeof window != "undefined" ? window : typeof globalThis != "undefined" ? globalThis : (
151
+ const Tu = typeof window != "undefined" ? window : typeof globalThis != "undefined" ? globalThis : (
152
152
  // @ts-ignore Node typings have this
153
153
  global
154
154
  );
@@ -165,11 +165,11 @@ function Ka(t) {
165
165
  e
166
166
  ) : t.ownerDocument;
167
167
  }
168
- function Tu(t) {
168
+ function Pu(t) {
169
169
  const e = p("style");
170
- return e.textContent = "/* empty */", Pu(Ka(t), e), e.sheet;
170
+ return e.textContent = "/* empty */", Cu(Ka(t), e), e.sheet;
171
171
  }
172
- function Pu(t, e) {
172
+ function Cu(t, e) {
173
173
  return f(
174
174
  /** @type {Document} */
175
175
  t.head || t,
@@ -207,7 +207,7 @@ function q(t, e, i, n) {
207
207
  function Ce(t, e, i) {
208
208
  i == null ? t.removeAttribute(e) : t.getAttribute(e) !== i && t.setAttribute(e, i);
209
209
  }
210
- function Cu(t) {
210
+ function Au(t) {
211
211
  return Array.from(t.childNodes);
212
212
  }
213
213
  function Pi(t, e) {
@@ -237,19 +237,19 @@ function Ct(t) {
237
237
  function ie(t, e, i) {
238
238
  t.classList.toggle(e, !!i);
239
239
  }
240
- function Au(t, e, { bubbles: i = !1, cancelable: n = !1 } = {}) {
240
+ function Iu(t, e, { bubbles: i = !1, cancelable: n = !1 } = {}) {
241
241
  return new CustomEvent(t, { detail: e, bubbles: i, cancelable: n });
242
242
  }
243
243
  const Zo = /* @__PURE__ */ new Map();
244
244
  let Go = 0;
245
- function Iu(t) {
245
+ function Bu(t) {
246
246
  let e = 5381, i = t.length;
247
247
  for (; i--; )
248
248
  e = (e << 5) - e ^ t.charCodeAt(i);
249
249
  return e >>> 0;
250
250
  }
251
- function Bu(t, e) {
252
- const i = { stylesheet: Tu(e), rules: {} };
251
+ function Vu(t, e) {
252
+ const i = { stylesheet: Pu(e), rules: {} };
253
253
  return Zo.set(t, i), i;
254
254
  }
255
255
  function Pl(t, e, i, n, o, s, l, a = 0) {
@@ -262,19 +262,19 @@ function Pl(t, e, i, n, o, s, l, a = 0) {
262
262
  `;
263
263
  }
264
264
  const c = u + `100% {${l(i, 1 - i)}}
265
- }`, g = `__svelte_${Iu(c)}_${a}`, v = Ka(t), { stylesheet: _, rules: m } = Zo.get(v) || Bu(v, t);
265
+ }`, g = `__svelte_${Bu(c)}_${a}`, v = Ka(t), { stylesheet: _, rules: m } = Zo.get(v) || Vu(v, t);
266
266
  m[g] || (m[g] = !0, _.insertRule(`@keyframes ${g} ${c}`, _.cssRules.length));
267
267
  const w = t.style.animation || "";
268
268
  return t.style.animation = `${w ? `${w}, ` : ""}${g} ${n}ms linear ${o}ms 1 both`, Go += 1, g;
269
269
  }
270
- function Vu(t, e) {
270
+ function Wu(t, e) {
271
271
  const i = (t.style.animation || "").split(", "), n = i.filter(
272
272
  e ? (s) => s.indexOf(e) < 0 : (s) => s.indexOf("__svelte") === -1
273
273
  // remove all Svelte animations
274
274
  ), o = i.length - n.length;
275
- o && (t.style.animation = n.join(", "), Go -= o, Go || Wu());
275
+ o && (t.style.animation = n.join(", "), Go -= o, Go || Ou());
276
276
  }
277
- function Wu() {
277
+ function Ou() {
278
278
  Cs(() => {
279
279
  Go || (Zo.forEach((t) => {
280
280
  const { ownerNode: e } = t.stylesheet;
@@ -294,7 +294,7 @@ function Ja() {
294
294
  function vo(t) {
295
295
  Ja().$$.on_mount.push(t);
296
296
  }
297
- function Ou(t) {
297
+ function Eu(t) {
298
298
  Ja().$$.on_destroy.push(t);
299
299
  }
300
300
  const jn = [], oe = [];
@@ -304,7 +304,7 @@ let Ys = !1;
304
304
  function Qa() {
305
305
  Ys || (Ys = !0, Xa.then(d));
306
306
  }
307
- function Eu() {
307
+ function $a() {
308
308
  return Qa(), Xa;
309
309
  }
310
310
  function nt(t) {
@@ -358,7 +358,7 @@ function zu() {
358
358
  })), Jn;
359
359
  }
360
360
  function js(t, e, i) {
361
- t.dispatchEvent(Au(`${e ? "intro" : "outro"}${i}`));
361
+ t.dispatchEvent(Iu(`${e ? "intro" : "outro"}${i}`));
362
362
  }
363
363
  const Ho = /* @__PURE__ */ new Set();
364
364
  let on;
@@ -390,7 +390,7 @@ const Lu = { duration: 0 };
390
390
  function Cl(t, e, i, n) {
391
391
  let s = e(t, i, { direction: "both" }), l = n ? 0 : 1, a = null, r = null, u = null, c;
392
392
  function g() {
393
- u && Vu(t, u);
393
+ u && Wu(t, u);
394
394
  }
395
395
  function v(m, w) {
396
396
  const y = (
@@ -411,15 +411,15 @@ function Cl(t, e, i, n) {
411
411
  const {
412
412
  delay: w = 0,
413
413
  duration: y = 300,
414
- easing: A = vu,
414
+ easing: A = bu,
415
415
  tick: S = ee,
416
416
  css: C
417
417
  } = s || Lu, T = {
418
- start: pu() + w,
418
+ start: Su() + w,
419
419
  b: m
420
420
  };
421
421
  m || (T.group = on, on.r += 1), "inert" in t && (m ? c !== void 0 && (t.inert = c) : (c = /** @type {HTMLElement} */
422
- t.inert, t.inert = !0)), a || r ? r = T : (C && (g(), u = Pl(t, l, m, y, w, A, C)), m && S(0, 1), a = v(T, y), nt(() => js(t, m, "start")), Su((I) => {
422
+ t.inert, t.inert = !0)), a || r ? r = T : (C && (g(), u = Pl(t, l, m, y, w, A, C)), m && S(0, 1), a = v(T, y), nt(() => js(t, m, "start")), wu((I) => {
423
423
  if (r && I > r.start && (a = v(r, y), r = null, js(t, a.b, "start"), C && (g(), u = Pl(
424
424
  t,
425
425
  l,
@@ -537,7 +537,7 @@ function Se(t, e, i, n, o, s, l = null, a = [-1]) {
537
537
  return u.ctx && o(u.ctx[g], u.ctx[g] = m) && (!u.skip_bound && u.bound[g] && u.bound[g](m), c && Nu(t, g)), v;
538
538
  }) : [], u.update(), c = !0, ot(u.before_update), u.fragment = n ? n(u.ctx) : !1, e.target) {
539
539
  if (e.hydrate) {
540
- const g = Cu(e.target);
540
+ const g = Au(e.target);
541
541
  u.fragment && u.fragment.l(g), g.forEach(O);
542
542
  } else
543
543
  u.fragment && u.fragment.c();
@@ -588,12 +588,12 @@ class we {
588
588
  * @returns {void}
589
589
  */
590
590
  $set(e) {
591
- this.$$set && !ku(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
591
+ this.$$set && !pu(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
592
592
  }
593
593
  }
594
594
  const xu = "4";
595
595
  typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(xu);
596
- const Fu = "@beyondwords/player", Yo = "0.1.40", ci = (t, e) => {
596
+ const Fu = "@beyondwords/player", Yo = "0.1.42", ci = (t, e) => {
597
597
  t = [t].flat().join(`
598
598
  `);
599
599
  let i = `${Fu}:
@@ -645,12 +645,12 @@ function Ko(t, e, i) {
645
645
  }
646
646
  return Yu(n);
647
647
  }
648
- const dl = ["user", "media", "browser", "media-session-api", "google-ima-sdk", "websocket"], $a = ["inline-player", "bottom-widget", "segment", "segment-widget"], Gu = ["handled", "ignored-due-to-advert", "ignored-due-to-scrubbing", "ignored-due-to-precedence"], Ku = ["load", "play", "play_progress", "ad_link_click"], Ju = ["phone", "tablet", "desktop", "ios", "android"], Xu = ["content", "ad"], Qu = (t) => {
648
+ const dl = ["user", "media", "browser", "media-session-api", "google-ima-sdk", "websocket"], er = ["inline-player", "bottom-widget", "segment", "segment-widget"], Gu = ["handled", "ignored-due-to-advert", "ignored-due-to-scrubbing", "ignored-due-to-precedence"], Ku = ["load", "play", "play_progress", "ad_link_click"], Ju = ["phone", "tablet", "desktop", "ios", "android"], Xu = ["content", "ad"], Qu = (t) => {
649
649
  Ee(t, "type", (e) => gl(e)), Ee(t, "description", (e) => e.length > 0), Ee(t, "initiatedBy", (e) => dl.includes(e));
650
650
  }, $u = (t) => {
651
- Ee(t, "type", (e) => gl(e)), Ee(t, "description", (e) => e.length > 0), Ee(t, "initiatedBy", (e) => dl.includes(e)), Ee(t, "emittedFrom", (e) => $a.includes(e)), Ee(t, "id", (e) => oo(e)), Ee(t, "createdAt", (e) => Zs(e)), Ee(t, "status", (e) => e === "pending");
651
+ Ee(t, "type", (e) => gl(e)), Ee(t, "description", (e) => e.length > 0), Ee(t, "initiatedBy", (e) => dl.includes(e)), Ee(t, "emittedFrom", (e) => er.includes(e)), Ee(t, "id", (e) => oo(e)), Ee(t, "createdAt", (e) => Zs(e)), Ee(t, "status", (e) => e === "pending");
652
652
  }, ec = (t) => {
653
- Ee(t, "type", (e) => gl(e)), Ee(t, "description", (e) => e.length > 0), Ee(t, "initiatedBy", (e) => dl.includes(e)), Ee(t, "emittedFrom", (e) => $a.includes(e)), Ee(t, "id", (e) => oo(e)), Ee(t, "createdAt", (e) => Zs(e)), Ee(t, "status", (e) => Gu.includes(e)), Ee(t, "changedProps", (e) => typeof e == "object"), Ee(t, "processedAt", (e) => Zs(e));
653
+ Ee(t, "type", (e) => gl(e)), Ee(t, "description", (e) => e.length > 0), Ee(t, "initiatedBy", (e) => dl.includes(e)), Ee(t, "emittedFrom", (e) => er.includes(e)), Ee(t, "id", (e) => oo(e)), Ee(t, "createdAt", (e) => Zs(e)), Ee(t, "status", (e) => Gu.includes(e)), Ee(t, "changedProps", (e) => typeof e == "object"), Ee(t, "processedAt", (e) => Zs(e));
654
654
  }, tc = (t) => {
655
655
  Ee(t, "event_type", (e) => Ku.includes(e)), Ee(t, "device_type", (e) => Ju.includes(e)), Ee(t, "media_type", (e) => Xu.includes(e)), Ee(t, "content_id", (e) => !e || oo(e)), Ee(t, "project_id", (e) => !e || e > 0), Ee(t, "analytics_id", (e) => !e || e > 0), Ee(t, "ad_id", (e) => !e || e > 0), Ee(t, "media_id", (e) => !e || e > 0), Ee(t, "local_storage_id", (e) => !e || oo(e)), Ee(t, "listen_session_id", (e) => !e || oo(e)), Ee(t, "session_created_at", (e) => e >= 0), Ee(t, "duration", (e) => e >= 0), Ee(t, "listen_length_percent", (e) => e >= 0 && e <= 100), Ee(t, "listen_length_seconds", (e) => e >= 0), Ee(t, "speed", (e) => e >= 0), Ee(t, "location", (e) => e.length > 0), Ee(t, "referrer", (e) => typeof e == "string"), Ee(t, "player_version", (e) => e.length > 0), Ee(t, "player_npm_version", (e) => e.length > 0);
656
656
  }, gl = (t) => {
@@ -688,7 +688,7 @@ const dl = ["user", "media", "browser", "media-session-api", "google-ima-sdk", "
688
688
  return !1;
689
689
  const e = window.innerHeight || document.documentElement.clientHeight, i = window.innerWidth || document.documentElement.clientWidth, { top: n, bottom: o, left: s, right: l } = t.getBoundingClientRect();
690
690
  return n < e && o > 0 && s < i && l > 0;
691
- }, Il = (t, e, i) => Ce(t, e, e === "style" ? lc(i) : i), sc = /;(?!([^()]*\([^()]*\))*[^()]*\))/, lc = (t) => t.split(sc).filter((e) => e).map((e) => e + " !important").join(";"), { document: ac } = wu;
691
+ }, Il = (t, e, i) => Ce(t, e, e === "style" ? lc(i) : i), sc = /;(?!([^()]*\([^()]*\))*[^()]*\))/, lc = (t) => t.split(sc).filter((e) => e).map((e) => e + " !important").join(";"), { document: ac } = Tu;
692
692
  function rc(t) {
693
693
  let e, i, n, o, s, l;
694
694
  return {
@@ -925,8 +925,8 @@ const dc = (t, e, i) => {
925
925
  };
926
926
  let xn;
927
927
  const fc = (t, e) => Si(void 0, null, function* () {
928
- return er(t, e) && (yield mc()), xn;
929
- }), er = (t, e) => !(!(t && e) || !((t == null ? void 0 : t.contentType) === "application/x-mpegURL") || (e == null ? void 0 : e.canPlayType("application/vnd.apple.mpegurl")) || !(xn ? xn.isSupported() : !0)), mc = () => Si(void 0, null, function* () {
928
+ return tr(t, e) && (yield mc()), xn;
929
+ }), tr = (t, e) => !(!(t && e) || !((t == null ? void 0 : t.contentType) === "application/x-mpegURL") || (e == null ? void 0 : e.canPlayType("application/vnd.apple.mpegurl")) || !(xn ? xn.isSupported() : !0)), mc = () => Si(void 0, null, function* () {
930
930
  xn || (xn || (xn = (yield import("././././././hls.light.min.js")).default), xn || (xn = window.Hls));
931
931
  }), hc = () => {
932
932
  const t = {
@@ -955,7 +955,7 @@ const fc = (t, e) => Si(void 0, null, function* () {
955
955
  if (window.disableMediaLoad || ((c = n == null ? void 0 : n.detachMedia) == null || c.call(n), (g = n == null ? void 0 : n.destroy) == null || g.call(n), n = null, !e || !t))
956
956
  return;
957
957
  const a = e.paused, r = e.playbackRate, u = e.sourceUrl && e.sourceUrl !== t.url;
958
- if (er(t, e)) {
958
+ if (tr(t, e)) {
959
959
  if (!i)
960
960
  return "pending";
961
961
  n = new i(Kt({
@@ -970,10 +970,10 @@ const fc = (t, e) => Si(void 0, null, function* () {
970
970
  } else
971
971
  u ? (e.removeAttribute("src"), e.load()) : e.sourceUrl && s({});
972
972
  return a || l(), e.playbackRate = r, e.sourceUrl = t.url, n || "not-used";
973
- }, tr = (t, e, i = 10) => {
973
+ }, ir = (t, e, i = 10) => {
974
974
  if (!(!t || t === "not-used" || t.loadMediaCalled)) {
975
975
  if (!t.manifestLoaded) {
976
- setTimeout(() => tr(t, e, i * 2), i);
976
+ setTimeout(() => ir(t, e, i * 2), i);
977
977
  return;
978
978
  }
979
979
  t.startLoad(e), t.loadMediaCalled = !0;
@@ -4248,7 +4248,7 @@ const fc = (t, e) => Si(void 0, null, function* () {
4248
4248
  `The locale '${n}' is missing the translation key '${s}'.`,
4249
4249
  `Please set '${s}: "something"' in src/translations/${n}.ts`
4250
4250
  ]);
4251
- }, T1 = /* @__PURE__ */ Object.assign({ "../translations/af.ts": bc, "../translations/ak.ts": pc, "../translations/am.ts": wc, "../translations/ar.ts": Pc, "../translations/as.ts": Ac, "../translations/az.ts": Bc, "../translations/be.ts": Wc, "../translations/bg.ts": Ec, "../translations/bm.ts": jc, "../translations/bn.ts": Lc, "../translations/bs.ts": Rc, "../translations/ca.ts": xc, "../translations/ckb.ts": Uc, "../translations/cs.ts": Hc, "../translations/cy.ts": Zc, "../translations/da.ts": Kc, "../translations/de.ts": Xc, "../translations/ee.ts": $c, "../translations/el.ts": td, "../translations/en.ts": nd, "../translations/eo.ts": sd, "../translations/es.ts": ad, "../translations/et.ts": ud, "../translations/eu.ts": dd, "../translations/fa.ts": fd, "../translations/fi.ts": hd, "../translations/fil.ts": yd, "../translations/fr.ts": bd, "../translations/ga.ts": pd, "../translations/gd.ts": wd, "../translations/gl.ts": Pd, "../translations/gu.ts": Ad, "../translations/ha.ts": Bd, "../translations/haw.ts": Wd, "../translations/he.ts": Ed, "../translations/hi.ts": jd, "../translations/hr.ts": Ld, "../translations/hu.ts": Rd, "../translations/hy.ts": xd, "../translations/id.ts": Ud, "../translations/ig.ts": Hd, "../translations/is.ts": Zd, "../translations/it.ts": Kd, "../translations/iw.ts": Xd, "../translations/ja.ts": $d, "../translations/ka.ts": tg, "../translations/kk.ts": ng, "../translations/km.ts": sg, "../translations/kn.ts": ag, "../translations/ko.ts": ug, "../translations/ky.ts": dg, "../translations/lb.ts": fg, "../translations/lg.ts": hg, "../translations/ln.ts": yg, "../translations/lo.ts": bg, "../translations/lt.ts": pg, "../translations/lv.ts": wg, "../translations/mg.ts": Pg, "../translations/mk.ts": Ag, "../translations/ml.ts": Bg, "../translations/mn.ts": Wg, "../translations/mr.ts": Eg, "../translations/ms.ts": jg, "../translations/mt.ts": Lg, "../translations/my.ts": Rg, "../translations/nb.ts": xg, "../translations/ne.ts": Ug, "../translations/nl.ts": Hg, "../translations/nn.ts": Zg, "../translations/no.ts": Kg, "../translations/om.ts": Xg, "../translations/or.ts": $g, "../translations/pa.ts": tf, "../translations/pl.ts": of, "../translations/ps.ts": lf, "../translations/pt.ts": rf, "../translations/qu.ts": cf, "../translations/ro.ts": gf, "../translations/ru.ts": mf, "../translations/rw.ts": _f, "../translations/si.ts": vf, "../translations/sk.ts": kf, "../translations/sl.ts": Sf, "../translations/sn.ts": Tf, "../translations/so.ts": Cf, "../translations/sq.ts": If, "../translations/sr.ts": Vf, "../translations/sv.ts": Of, "../translations/sw.ts": Mf, "../translations/ta.ts": zf, "../translations/te.ts": Df, "../translations/tg.ts": Nf, "../translations/th.ts": Ff, "../translations/ti.ts": qf, "../translations/tr.ts": Yf, "../translations/tt.ts": Gf, "../translations/ug.ts": Jf, "../translations/uk.ts": Qf, "../translations/ur.ts": e1, "../translations/uz.ts": i1, "../translations/vi.ts": o1, "../translations/yi.ts": l1, "../translations/yo.ts": r1, "../translations/zh-HK.ts": c1, "../translations/zh-MO.ts": g1, "../translations/zh-TW.ts": m1, "../translations/zh.ts": _1, "../translations/zu.ts": v1 }), ir = Object.entries(T1).map(([t, e]) => [b1(t), e.default]), Gs = Object.fromEntries(ir.filter(([t, e]) => t.includes("-"))), Ks = Object.fromEntries(ir.filter(([t, e]) => e.isDefaultForLanguage).map(([t, e]) => [t.split("-")[0], e]));
4251
+ }, T1 = /* @__PURE__ */ Object.assign({ "../translations/af.ts": bc, "../translations/ak.ts": pc, "../translations/am.ts": wc, "../translations/ar.ts": Pc, "../translations/as.ts": Ac, "../translations/az.ts": Bc, "../translations/be.ts": Wc, "../translations/bg.ts": Ec, "../translations/bm.ts": jc, "../translations/bn.ts": Lc, "../translations/bs.ts": Rc, "../translations/ca.ts": xc, "../translations/ckb.ts": Uc, "../translations/cs.ts": Hc, "../translations/cy.ts": Zc, "../translations/da.ts": Kc, "../translations/de.ts": Xc, "../translations/ee.ts": $c, "../translations/el.ts": td, "../translations/en.ts": nd, "../translations/eo.ts": sd, "../translations/es.ts": ad, "../translations/et.ts": ud, "../translations/eu.ts": dd, "../translations/fa.ts": fd, "../translations/fi.ts": hd, "../translations/fil.ts": yd, "../translations/fr.ts": bd, "../translations/ga.ts": pd, "../translations/gd.ts": wd, "../translations/gl.ts": Pd, "../translations/gu.ts": Ad, "../translations/ha.ts": Bd, "../translations/haw.ts": Wd, "../translations/he.ts": Ed, "../translations/hi.ts": jd, "../translations/hr.ts": Ld, "../translations/hu.ts": Rd, "../translations/hy.ts": xd, "../translations/id.ts": Ud, "../translations/ig.ts": Hd, "../translations/is.ts": Zd, "../translations/it.ts": Kd, "../translations/iw.ts": Xd, "../translations/ja.ts": $d, "../translations/ka.ts": tg, "../translations/kk.ts": ng, "../translations/km.ts": sg, "../translations/kn.ts": ag, "../translations/ko.ts": ug, "../translations/ky.ts": dg, "../translations/lb.ts": fg, "../translations/lg.ts": hg, "../translations/ln.ts": yg, "../translations/lo.ts": bg, "../translations/lt.ts": pg, "../translations/lv.ts": wg, "../translations/mg.ts": Pg, "../translations/mk.ts": Ag, "../translations/ml.ts": Bg, "../translations/mn.ts": Wg, "../translations/mr.ts": Eg, "../translations/ms.ts": jg, "../translations/mt.ts": Lg, "../translations/my.ts": Rg, "../translations/nb.ts": xg, "../translations/ne.ts": Ug, "../translations/nl.ts": Hg, "../translations/nn.ts": Zg, "../translations/no.ts": Kg, "../translations/om.ts": Xg, "../translations/or.ts": $g, "../translations/pa.ts": tf, "../translations/pl.ts": of, "../translations/ps.ts": lf, "../translations/pt.ts": rf, "../translations/qu.ts": cf, "../translations/ro.ts": gf, "../translations/ru.ts": mf, "../translations/rw.ts": _f, "../translations/si.ts": vf, "../translations/sk.ts": kf, "../translations/sl.ts": Sf, "../translations/sn.ts": Tf, "../translations/so.ts": Cf, "../translations/sq.ts": If, "../translations/sr.ts": Vf, "../translations/sv.ts": Of, "../translations/sw.ts": Mf, "../translations/ta.ts": zf, "../translations/te.ts": Df, "../translations/tg.ts": Nf, "../translations/th.ts": Ff, "../translations/ti.ts": qf, "../translations/tr.ts": Yf, "../translations/tt.ts": Gf, "../translations/ug.ts": Jf, "../translations/uk.ts": Qf, "../translations/ur.ts": e1, "../translations/uz.ts": i1, "../translations/vi.ts": o1, "../translations/yi.ts": l1, "../translations/yo.ts": r1, "../translations/zh-HK.ts": c1, "../translations/zh-MO.ts": g1, "../translations/zh-TW.ts": m1, "../translations/zh.ts": _1, "../translations/zu.ts": v1 }), nr = Object.entries(T1).map(([t, e]) => [b1(t), e.default]), Gs = Object.fromEntries(nr.filter(([t, e]) => t.includes("-"))), Ks = Object.fromEntries(nr.filter(([t, e]) => e.isDefaultForLanguage).map(([t, e]) => [t.split("-")[0], e]));
4252
4252
  k1(Gs, Ks);
4253
4253
  const dt = (t, { locale: e } = {}) => {
4254
4254
  const i = P1(e);
@@ -4314,7 +4314,7 @@ function B1(t) {
4314
4314
  });
4315
4315
  }), i;
4316
4316
  }
4317
- var nr = { exports: {} };
4317
+ var or = { exports: {} };
4318
4318
  function V1(t) {
4319
4319
  throw new Error('Could not dynamically require "' + t + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4320
4320
  }
@@ -4886,9 +4886,9 @@ function M1() {
4886
4886
  o.MD5 = a._createHelper(c), o.HmacMD5 = a._createHmacHelper(c);
4887
4887
  }(Math), i.MD5;
4888
4888
  });
4889
- })(nr);
4890
- var j1 = nr.exports;
4891
- const z1 = /* @__PURE__ */ I1(j1), or = (t) => {
4889
+ })(or);
4890
+ var j1 = or.exports;
4891
+ const z1 = /* @__PURE__ */ I1(j1), sr = (t) => {
4892
4892
  const e = BeyondWords.Player.instances(), i = [...e.entries()], n = i.map(([s, l]) => ({ p: s, player: l })), o = L1(i);
4893
4893
  for (; t && !D1(t) && !(o.size === 0 || R1(t)); )
4894
4894
  Ol(N1, t, e, n, o), Ol(x1, t, e, n, o), t = t.parentNode;
@@ -4926,7 +4926,7 @@ const z1 = /* @__PURE__ */ I1(j1), or = (t) => {
4926
4926
  const e = t.getAttribute("data-beyondwords-marker");
4927
4927
  return e ? (i) => i.marker === e : null;
4928
4928
  }, x1 = (t) => {
4929
- const e = El(() => Js(t)), i = El(() => sr(t));
4929
+ const e = El(() => Js(t)), i = El(() => lr(t));
4930
4930
  return (n) => n.xpath === e() && n.md5 === i();
4931
4931
  }, El = (t) => {
4932
4932
  let e, i;
@@ -4937,7 +4937,7 @@ const z1 = /* @__PURE__ */ I1(j1), or = (t) => {
4937
4937
  return "";
4938
4938
  const i = t.nodeName.toLowerCase(), n = [...e.children].filter((s) => s.nodeName.toLowerCase() === i);
4939
4939
  return n.length === 1 ? `${Js(e)}/${i}` : `${Js(e)}/${i}[${n.indexOf(t) + 1}]`;
4940
- }, Wo = /* @__PURE__ */ new WeakMap(), sr = (t) => {
4940
+ }, Wo = /* @__PURE__ */ new WeakMap(), lr = (t) => {
4941
4941
  var i, n;
4942
4942
  if (Wo.has(t))
4943
4943
  return Wo.get(t);
@@ -4973,7 +4973,7 @@ const z1 = /* @__PURE__ */ I1(j1), or = (t) => {
4973
4973
  const i = document.evaluate(t, document), n = [];
4974
4974
  for (; ; ) {
4975
4975
  const o = i.iterateNext();
4976
- if (o && sr(o) === e)
4976
+ if (o && lr(o) === e)
4977
4977
  n.push(o);
4978
4978
  else
4979
4979
  return n;
@@ -5390,7 +5390,7 @@ function G1(t) {
5390
5390
  function K1(t, e, i) {
5391
5391
  let n, o, s, l, a, r, u, c, g, v, _, m, w, y, A, { content: S } = e, { contentIndex: C } = e, { introOrOutro: T } = e, { activeAdvert: I } = e, { advertConsent: M } = e, { playbackState: R } = e, { duration: Z } = e, { currentTime: F } = e, { playbackRate: U } = e, { prevPercentage: ae } = e, { showUserInterface: ce } = e, { videoBehindWidget: se } = e, { videoBehindStatic: $ } = e, { videoMightBeShown: Q } = e, { widgetPosition: re } = e, { widgetWidth: de } = e, { widgetTarget: Y } = e, { onEvent: K = () => {
5392
5392
  } } = e, { metadataLoaded: te } = e, { video: b = void 0 } = e, P, j, L, Pe = 0, Ve = 0, Ue = F, G, Te;
5393
- const qe = (H) => i(11, Pe = H), Qe = () => Q, st = () => {
5393
+ const qe = (H) => $a().then(() => i(11, Pe = H)), Qe = () => Q, st = () => {
5394
5394
  var H;
5395
5395
  return (b == null ? void 0 : b.paused) && ((H = b == null ? void 0 : b.play()) == null ? void 0 : H.catch(We));
5396
5396
  }, pt = () => !(b != null && b.paused) && (b == null ? void 0 : b.pause()), ut = () => {
@@ -5566,7 +5566,7 @@ function K1(t, e, i) {
5566
5566
  5124 | t.$$.dirty[1] & /*Hls*/
5567
5567
  4096 && i(10, j = _c(u[0], b, P, j, et, lt, st)), t.$$.dirty[0] & /*playbackState, hls*/
5568
5568
  1025 | t.$$.dirty[1] & /*startPosition*/
5569
- 524288 && (R === "playing" || Qe()) && tr(j, a), t.$$.dirty[1] & /*activeAdvert*/
5569
+ 524288 && (R === "playing" || Qe()) && ir(j, a), t.$$.dirty[1] & /*activeAdvert*/
5570
5570
  64 && i(13, c = I == null ? void 0 : I.vastUrl), t.$$.dirty[1] & /*activeAdvert*/
5571
5571
  64 && i(20, g = I == null ? void 0 : I.clickThroughUrl), t.$$.dirty[0] & /*vastUrl, playbackState*/
5572
5572
  8193 | t.$$.dirty[1] & /*metadataLoaded*/
@@ -5814,7 +5814,7 @@ function Q1(t, { delay: e = 0, duration: i = 400, easing: n = X1, x: o = 0, y: s
5814
5814
  opacity: ${r - c * y}`
5815
5815
  };
5816
5816
  }
5817
- var lr = function() {
5817
+ var ar = function() {
5818
5818
  if (typeof Map != "undefined")
5819
5819
  return Map;
5820
5820
  function t(e, i) {
@@ -5928,7 +5928,7 @@ var im = 20, nm = ["top", "right", "bottom", "left", "width", "height", "size",
5928
5928
  return this.instance_ || (this.instance_ = new t()), this.instance_;
5929
5929
  }, t.instance_ = null, t;
5930
5930
  }()
5931
- ), ar = function(t, e) {
5931
+ ), rr = function(t, e) {
5932
5932
  for (var i = 0, n = Object.keys(e); i < n.length; i++) {
5933
5933
  var o = n[i];
5934
5934
  Object.defineProperty(t, o, {
@@ -5942,7 +5942,7 @@ var im = 20, nm = ["top", "right", "bottom", "left", "width", "height", "size",
5942
5942
  }, Fn = function(t) {
5943
5943
  var e = t && t.ownerDocument && t.ownerDocument.defaultView;
5944
5944
  return e || Jo;
5945
- }, rr = As(0, 0, 0, 0);
5945
+ }, ur = As(0, 0, 0, 0);
5946
5946
  function Xo(t) {
5947
5947
  return parseFloat(t) || 0;
5948
5948
  }
@@ -5968,7 +5968,7 @@ function am(t) {
5968
5968
  function rm(t) {
5969
5969
  var e = t.clientWidth, i = t.clientHeight;
5970
5970
  if (!e && !i)
5971
- return rr;
5971
+ return ur;
5972
5972
  var n = Fn(t).getComputedStyle(t), o = lm(n), s = o.left + o.right, l = o.top + o.bottom, a = Xo(n.width), r = Xo(n.height);
5973
5973
  if (n.boxSizing === "border-box" && (Math.round(a + s) !== e && (a -= xl(n, "left", "right") + s), Math.round(r + l) !== i && (r -= xl(n, "top", "bottom") + l)), !cm(t)) {
5974
5974
  var u = Math.round(a + s) - e, c = Math.round(r + l) - i;
@@ -5987,11 +5987,11 @@ function cm(t) {
5987
5987
  return t === Fn(t).document.documentElement;
5988
5988
  }
5989
5989
  function dm(t) {
5990
- return Xs ? um(t) ? am(t) : rm(t) : rr;
5990
+ return Xs ? um(t) ? am(t) : rm(t) : ur;
5991
5991
  }
5992
5992
  function gm(t) {
5993
5993
  var e = t.x, i = t.y, n = t.width, o = t.height, s = typeof DOMRectReadOnly != "undefined" ? DOMRectReadOnly : Object, l = Object.create(s.prototype);
5994
- return ar(l, {
5994
+ return rr(l, {
5995
5995
  x: e,
5996
5996
  y: i,
5997
5997
  width: n,
@@ -6024,7 +6024,7 @@ var fm = (
6024
6024
  function() {
6025
6025
  function t(e, i) {
6026
6026
  var n = gm(i);
6027
- ar(this, { target: e, contentRect: n });
6027
+ rr(this, { target: e, contentRect: n });
6028
6028
  }
6029
6029
  return t;
6030
6030
  }()
@@ -6032,7 +6032,7 @@ var fm = (
6032
6032
  /** @class */
6033
6033
  function() {
6034
6034
  function t(e, i, n) {
6035
- if (this.activeObservations_ = [], this.observations_ = new lr(), typeof e != "function")
6035
+ if (this.activeObservations_ = [], this.observations_ = new ar(), typeof e != "function")
6036
6036
  throw new TypeError("The callback provided as parameter 1 is not a function.");
6037
6037
  this.callback_ = e, this.controller_ = i, this.callbackCtx_ = n;
6038
6038
  }
@@ -6074,7 +6074,7 @@ var fm = (
6074
6074
  return this.activeObservations_.length > 0;
6075
6075
  }, t;
6076
6076
  }()
6077
- ), ur = typeof WeakMap != "undefined" ? /* @__PURE__ */ new WeakMap() : new lr(), cr = (
6077
+ ), cr = typeof WeakMap != "undefined" ? /* @__PURE__ */ new WeakMap() : new ar(), dr = (
6078
6078
  /** @class */
6079
6079
  function() {
6080
6080
  function t(e) {
@@ -6083,7 +6083,7 @@ var fm = (
6083
6083
  if (!arguments.length)
6084
6084
  throw new TypeError("1 argument required, but only 0 present.");
6085
6085
  var i = sm.getInstance(), n = new hm(e, i, this);
6086
- ur.set(this, n);
6086
+ cr.set(this, n);
6087
6087
  }
6088
6088
  return t;
6089
6089
  }()
@@ -6093,13 +6093,13 @@ var fm = (
6093
6093
  "unobserve",
6094
6094
  "disconnect"
6095
6095
  ].forEach(function(t) {
6096
- cr.prototype[t] = function() {
6096
+ dr.prototype[t] = function() {
6097
6097
  var e;
6098
- return (e = ur.get(this))[t].apply(e, arguments);
6098
+ return (e = cr.get(this))[t].apply(e, arguments);
6099
6099
  };
6100
6100
  });
6101
6101
  var _m = function() {
6102
- return typeof Jo.ResizeObserver != "undefined" ? Jo.ResizeObserver : cr;
6102
+ return typeof Jo.ResizeObserver != "undefined" ? Jo.ResizeObserver : dr;
6103
6103
  }();
6104
6104
  const Li = (t, e, i) => Ce(t, e, e === "style" ? vm(i) : i), ym = /;(?!([^()]*\([^()]*\))*[^()]*\))/, vm = (t) => t.split(ym).filter((e) => e).map((e) => e + " !important").join(";");
6105
6105
  function bm(t) {
@@ -8238,7 +8238,7 @@ function a0(t, e, i) {
8238
8238
  g
8239
8239
  ];
8240
8240
  }
8241
- class dr extends we {
8241
+ class gr extends we {
8242
8242
  constructor(e) {
8243
8243
  super(), Se(this, e, a0, l0, pe, {
8244
8244
  downloadFormats: 7,
@@ -8685,7 +8685,7 @@ class O0 extends we {
8685
8685
  this.$$set({ color: e }), d();
8686
8686
  }
8687
8687
  }
8688
- const gr = (t) => !t || t != null && t.startsWith("http") ? t : `https://${t}`, E0 = (t) => {
8688
+ const fr = (t) => !t || t != null && t.startsWith("http") ? t : `https://${t}`, E0 = (t) => {
8689
8689
  var o;
8690
8690
  const e = Gl(t);
8691
8691
  if (!e)
@@ -8812,7 +8812,7 @@ function D0(t, e, i) {
8812
8812
  "href" in y && i(9, l = y.href), "scale" in y && i(10, a = y.scale), "color" in y && i(11, r = y.color), "playerStyle" in y && i(0, u = y.playerStyle), "controlsOrder" in y && i(1, c = y.controlsOrder), "largeImage" in y && i(2, g = y.largeImage), "isMobile" in y && i(3, v = y.isMobile), "endVisible" in y && i(4, _ = y.endVisible), "onEvent" in y && i(12, m = y.onEvent);
8813
8813
  }, t.$$.update = () => {
8814
8814
  t.$$.dirty & /*href*/
8815
- 512 && i(5, n = gr(l)), t.$$.dirty & /*hrefWithProtocol*/
8815
+ 512 && i(5, n = fr(l)), t.$$.dirty & /*hrefWithProtocol*/
8816
8816
  32 && i(7, o = E0(n)), t.$$.dirty & /*scale, color*/
8817
8817
  3072 && i(6, s = `font-size: ${12 * a}px; color: ${r}; border-color: ${r}`);
8818
8818
  }, [
@@ -9001,7 +9001,7 @@ function H0(t, e, i) {
9001
9001
  "scale" in l && i(0, n = l.scale), "color" in l && i(1, o = l.color), "circular" in l && i(2, s = l.circular);
9002
9002
  }, [n, o, s];
9003
9003
  }
9004
- class fr extends we {
9004
+ class mr extends we {
9005
9005
  constructor(e) {
9006
9006
  super(), Se(this, e, H0, q0, pe, { scale: 0, color: 1, circular: 2 });
9007
9007
  }
@@ -9044,7 +9044,7 @@ function G0(t) {
9044
9044
  }
9045
9045
  function K0(t) {
9046
9046
  let e, i, n, o, s, l;
9047
- return i = new fr({
9047
+ return i = new mr({
9048
9048
  props: {
9049
9049
  color: (
9050
9050
  /*color*/
@@ -9155,7 +9155,7 @@ function X0(t, e, i) {
9155
9155
  "href" in g && i(6, o = g.href), "scale" in g && i(0, s = g.scale), "color" in g && i(1, l = g.color), "playerStyle" in g && i(2, a = g.playerStyle), "controlsOrder" in g && i(3, r = g.controlsOrder), "onEvent" in g && i(7, u = g.onEvent);
9156
9156
  }, t.$$.update = () => {
9157
9157
  t.$$.dirty & /*href*/
9158
- 64 && i(4, n = gr(o));
9158
+ 64 && i(4, n = fr(o));
9159
9159
  }, [
9160
9160
  s,
9161
9161
  l,
@@ -9365,7 +9365,7 @@ function a_(t, e, i) {
9365
9365
  "scale" in a && i(0, n = a.scale), "visible" in a && i(1, o = a.visible), "onEvent" in a && i(3, s = a.onEvent);
9366
9366
  }, [n, o, l, s];
9367
9367
  }
9368
- let mr = class extends we {
9368
+ let hr = class extends we {
9369
9369
  constructor(e) {
9370
9370
  super(), Se(this, e, a_, l_, pe, { scale: 0, visible: 1, onEvent: 3 });
9371
9371
  }
@@ -9391,7 +9391,7 @@ let mr = class extends we {
9391
9391
  const Xn = (t, e, i) => Ce(t, e, e === "style" ? u_(i) : i), r_ = /;(?!([^()]*\([^()]*\))*[^()]*\))/, u_ = (t) => t.split(r_).filter((e) => e).map((e) => e + " !important").join(";");
9392
9392
  function c_(t) {
9393
9393
  let e, i, n, o, s;
9394
- return i = new fr({
9394
+ return i = new mr({
9395
9395
  props: {
9396
9396
  scale: (
9397
9397
  /*scale*/
@@ -9791,7 +9791,7 @@ function w_(t, e, i) {
9791
9791
  _
9792
9792
  ];
9793
9793
  }
9794
- class hr extends we {
9794
+ class _r extends we {
9795
9795
  constructor(e) {
9796
9796
  super(), Se(this, e, w_, S_, pe, {
9797
9797
  title: 0,
@@ -10786,7 +10786,7 @@ function J_(t, e, i) {
10786
10786
  16 && i(3, n = Math.max(1, Math.round((o || 0) / 60)));
10787
10787
  }, [s, l, a, n, o];
10788
10788
  }
10789
- class _r extends we {
10789
+ class yr extends we {
10790
10790
  constructor(e) {
10791
10791
  super(), Se(this, e, J_, K_, pe, { duration: 4, bold: 0, scale: 1, color: 2 });
10792
10792
  }
@@ -10957,7 +10957,7 @@ function sy(t) {
10957
10957
  }
10958
10958
  function ly(t) {
10959
10959
  let e, i;
10960
- return e = new _r({
10960
+ return e = new yr({
10961
10961
  props: {
10962
10962
  duration: (
10963
10963
  /*duration*/
@@ -11332,7 +11332,7 @@ function hy(t, e, i) {
11332
11332
  "scale" in a && i(0, n = a.scale), "zoom" in a && i(1, o = a.zoom), "color" in a && i(2, s = a.color), "fill" in a && i(3, l = a.fill);
11333
11333
  }, [n, o, s, l];
11334
11334
  }
11335
- class yr extends we {
11335
+ class vr extends we {
11336
11336
  constructor(e) {
11337
11337
  super(), Se(this, e, hy, my, pe, { scale: 0, zoom: 1, color: 2, fill: 3 });
11338
11338
  }
@@ -11401,7 +11401,7 @@ function vy(t) {
11401
11401
  }
11402
11402
  function by(t) {
11403
11403
  let e, i, n;
11404
- return i = new yr({
11404
+ return i = new vr({
11405
11405
  props: {
11406
11406
  color: (
11407
11407
  /*iconColor*/
@@ -11472,7 +11472,7 @@ function Ql(t) {
11472
11472
  t[2]
11473
11473
  )
11474
11474
  }
11475
- }), c = new _r({
11475
+ }), c = new yr({
11476
11476
  props: {
11477
11477
  duration: (
11478
11478
  /*duration*/
@@ -11529,7 +11529,7 @@ function Ql(t) {
11529
11529
  return (
11530
11530
  /*downloadIsVisible*/
11531
11531
  t[9] !== void 0 && (Z.isVisible = /*downloadIsVisible*/
11532
- t[9]), m = new dr({ props: Z }), oe.push(() => be(m, "isVisible", R)), {
11532
+ t[9]), m = new gr({ props: Z }), oe.push(() => be(m, "isVisible", R)), {
11533
11533
  c() {
11534
11534
  e = p("div"), i = p("button"), o.c(), s = X(), l = p("span"), me(a.$$.fragment), r = X(), u = p("span"), me(c.$$.fragment), v = X(), _ = p("span"), me(m.$$.fragment), y = X(), bi(l, "class", "title svelte-1hl1xir"), ie(
11535
11535
  l,
@@ -11975,7 +11975,7 @@ function Cy(t, e, i) {
11975
11975
  }, m = () => {
11976
11976
  g && clearTimeout(g), i(7, u = !1), g = setTimeout(() => i(7, u = !0), l);
11977
11977
  };
11978
- return Ou(() => {
11978
+ return Eu(() => {
11979
11979
  c && clearTimeout(c), g && clearTimeout(g);
11980
11980
  }), t.$$set = (w) => {
11981
11981
  "exitDelay" in w && i(5, s = w.exitDelay), "idleDelay" in w && i(0, l = w.idleDelay), "isHovering" in w && i(4, a = w.isHovering), "$$scope" in w && i(8, o = w.$$scope);
@@ -12295,7 +12295,7 @@ function oa(t) {
12295
12295
  }
12296
12296
  function sa(t) {
12297
12297
  let e, i, n, o, s;
12298
- return i = new hr({
12298
+ return i = new _r({
12299
12299
  props: {
12300
12300
  title: (
12301
12301
  /*playerTitle*/
@@ -12524,7 +12524,7 @@ function xy(t) {
12524
12524
  }
12525
12525
  function la(t) {
12526
12526
  let e, i;
12527
- return e = new hr({
12527
+ return e = new _r({
12528
12528
  props: {
12529
12529
  title: (
12530
12530
  /*callToAction*/
@@ -13008,7 +13008,7 @@ function da(t) {
13008
13008
  function Fy(t) {
13009
13009
  var n, o;
13010
13010
  let e, i;
13011
- return e = new dr({
13011
+ return e = new gr({
13012
13012
  props: {
13013
13013
  onEvent: (
13014
13014
  /*onEvent*/
@@ -13247,7 +13247,7 @@ function ga(t) {
13247
13247
  }
13248
13248
  function fa(t) {
13249
13249
  let e, i;
13250
- return e = new mr({
13250
+ return e = new hr({
13251
13251
  props: {
13252
13252
  onEvent: (
13253
13253
  /*onEvent*/
@@ -13422,7 +13422,7 @@ function ma(t) {
13422
13422
  }
13423
13423
  function Yy(t) {
13424
13424
  let e, i;
13425
- return e = new mr({
13425
+ return e = new hr({
13426
13426
  props: {
13427
13427
  onEvent: (
13428
13428
  /*onEvent*/
@@ -16300,7 +16300,7 @@ function Ca(t) {
16300
16300
  /*i*/
16301
16301
  t[43]
16302
16302
  ), s;
16303
- i = new yr({
16303
+ i = new vr({
16304
16304
  props: {
16305
16305
  fill: (
16306
16306
  /*background*/
@@ -16461,7 +16461,7 @@ function k2(t, e, i) {
16461
16461
  32 && i(2, _ = o && (se == null ? void 0 : se.backgroundColor) || K), t.$$.dirty[0] & /*activeAdvert, iconColor*/
16462
16462
  8256 | t.$$.dirty[1] & /*isAdvert*/
16463
16463
  32 && i(1, m = o && (se == null ? void 0 : se.iconColor) || te), t.$$.dirty[0] & /*background, foreground, fallbackSvgs*/
16464
- 7 && i(17, Pe = F.map((G, Te) => Eu().then(() => L[Te]))), t.$$.dirty[0] & /*companionAdvert, activeAdvert*/
16464
+ 7 && i(17, Pe = F.map((G, Te) => $a().then(() => L[Te]))), t.$$.dirty[0] & /*companionAdvert, activeAdvert*/
16465
16465
  320 && i(35, w = (Q == null ? void 0 : Q.imageUrl) || (se == null ? void 0 : se.imageUrl)), t.$$.dirty[0] & /*persistentAdvert, contentItem*/
16466
16466
  268435584 | t.$$.dirty[1] & /*isAdvert, advertImageUrl, isStopped*/
16467
16467
  56 && i(33, y = o && w || !n && ($ == null ? void 0 : $.imageUrl) || (l == null ? void 0 : l.imageUrl)), t.$$.dirty[0] & /*failedUrls*/
@@ -16740,7 +16740,7 @@ class A2 extends we {
16740
16740
  super(), Se(this, e, null, null, pe, {});
16741
16741
  }
16742
16742
  }
16743
- var ro, Qs, ns, vr;
16743
+ var ro, Qs, ns, br;
16744
16744
  class _l {
16745
16745
  constructor(e, i) {
16746
16746
  // private
@@ -16758,7 +16758,7 @@ class _l {
16758
16758
  var l;
16759
16759
  (l = this.consumers)[e] || (l[e] = []);
16760
16760
  const n = this.consumers[e].slice(-1)[0];
16761
- if (N(this, ns, vr).call(this, this.consumers[e], (a) => a.consumerId === i), !(n && i === n.consumerId))
16761
+ if (N(this, ns, br).call(this, this.consumers[e], (a) => a.consumerId === i), !(n && i === n.consumerId))
16762
16762
  return;
16763
16763
  const s = this.consumers[e].slice(-1)[0];
16764
16764
  s && N(this, ro, Qs).call(this, n.args, s.args) || (this.onDeselected(e, ...n.args), s && this.onSelected(e, ...s.args));
@@ -16766,24 +16766,24 @@ class _l {
16766
16766
  }
16767
16767
  ro = new WeakSet(), Qs = function(e, i) {
16768
16768
  return e.length === i.length && e.every((n, o) => n === i[o]);
16769
- }, ns = new WeakSet(), vr = function(e, i) {
16769
+ }, ns = new WeakSet(), br = function(e, i) {
16770
16770
  for (let n = e.length - 1; n >= 0; n -= 1)
16771
16771
  if (i(e[n])) {
16772
16772
  e.splice(n, 1);
16773
16773
  return;
16774
16774
  }
16775
16775
  };
16776
- var os, br;
16776
+ var os, kr;
16777
16777
  class yl {
16778
16778
  constructor() {
16779
16779
  Ae(this, os);
16780
16780
  this.randomIds = /* @__PURE__ */ new WeakMap();
16781
16781
  }
16782
16782
  fetchOrAdd(e) {
16783
- return e != null && e.segmentElement ? e.marker ? e.marker : (this.uniqueIds.has(e.segmentElement) || this.uniqueIds.set(e.segmentElement, N(this, os, br).call(this)), this.randomIds.get(e.segmentElement)) : null;
16783
+ return e != null && e.segmentElement ? e.marker ? e.marker : (this.uniqueIds.has(e.segmentElement) || this.uniqueIds.set(e.segmentElement, N(this, os, kr).call(this)), this.randomIds.get(e.segmentElement)) : null;
16784
16784
  }
16785
16785
  }
16786
- os = new WeakSet(), br = function() {
16786
+ os = new WeakSet(), kr = function() {
16787
16787
  return Math.random().toString(36).substring(2);
16788
16788
  };
16789
16789
  const ao = (t, e, i) => {
@@ -16792,7 +16792,7 @@ const ao = (t, e, i) => {
16792
16792
  const s = t === "current" ? n : o;
16793
16793
  return s === "all" || s === "body" && (e == null ? void 0 : e.section) === "body";
16794
16794
  }, Uo = ["beyondwords-clickable", "bwp"];
16795
- var uo, ss, kr, ls, pr;
16795
+ var uo, ss, pr, ls, Sr;
16796
16796
  const Ji = class Ji {
16797
16797
  constructor() {
16798
16798
  this.ids = new yl();
@@ -16802,19 +16802,19 @@ const Ji = class Ji {
16802
16802
  s && Mi(Ji, uo).addInterest(s, this, e), o && Mi(Ji, uo).removeInterest(o, this), this.previous = s;
16803
16803
  }
16804
16804
  };
16805
- uo = new WeakMap(), ss = new WeakSet(), kr = function(e, i) {
16805
+ uo = new WeakMap(), ss = new WeakSet(), pr = function(e, i) {
16806
16806
  if (i.segmentElement.classList.add(...Uo), !i.marker)
16807
16807
  return;
16808
16808
  const n = document.querySelectorAll(`[data-beyondwords-marker="${i.marker}"]`);
16809
16809
  for (const o of n)
16810
16810
  o.classList.add(...Uo);
16811
- }, ls = new WeakSet(), pr = function(e, i) {
16811
+ }, ls = new WeakSet(), Sr = function(e, i) {
16812
16812
  if (el(i.segmentElement, Uo), !i.marker)
16813
16813
  return;
16814
16814
  const n = document.querySelectorAll(`[data-beyondwords-marker="${i.marker}"]`);
16815
16815
  for (const o of n)
16816
16816
  el(o, Uo);
16817
- }, Ae(Ji, ss), Ae(Ji, ls), Ae(Ji, uo, new _l(N(Ji, ss, kr), N(Ji, ls, pr)));
16817
+ }, Ae(Ji, ss), Ae(Ji, ls), Ae(Ji, uo, new _l(N(Ji, ss, pr), N(Ji, ls, Sr)));
16818
16818
  let $s = Ji;
16819
16819
  const el = (t, e) => {
16820
16820
  if (!t)
@@ -16822,7 +16822,7 @@ const el = (t, e) => {
16822
16822
  const o = [...t.classList].filter((s) => !e.includes(s)).some((s) => s.startsWith("beyondwords-")) ? e.filter((s) => s !== "bwp") : e;
16823
16823
  t.classList.remove(...o);
16824
16824
  }, Ba = (t, e, i) => ["beyondwords-widget", "bwp", `id-${t}`, `position-${e}`, `for-${i}-player`], Va = ["beyondwords-relative", "bwp"];
16825
- var co, as, Sr, rs, wr, us, Tr;
16825
+ var co, as, wr, rs, Tr, us, Pr;
16826
16826
  const Xi = class Xi {
16827
16827
  constructor(e) {
16828
16828
  // Add the container next to the first DOM node that matches the segment's
@@ -16842,13 +16842,13 @@ const Xi = class Xi {
16842
16842
  this.update(null, "none");
16843
16843
  }
16844
16844
  };
16845
- co = new WeakMap(), as = new WeakSet(), Sr = function(e, i, n, o, s) {
16845
+ co = new WeakMap(), as = new WeakSet(), wr = function(e, i, n, o, s) {
16846
16846
  var c;
16847
- const l = N(c = i, us, Tr).call(c, n);
16847
+ const l = N(c = i, us, Pr).call(c, n);
16848
16848
  ["2-oclock", "3-oclock", "4-oclock", "8-oclock", "9-oclock", "10-oclock"].includes(o) && l.classList.add(...Va);
16849
16849
  const r = document.createElement("div");
16850
16850
  r.classList.add(...Ba(e, o, s)), ["11-oclock", "12-oclock", "1-oclock"].includes(o) ? l.insertBefore(r, l.firstChild) : l.appendChild(r), i.containers.push(r), i.onUpdate(i.containers);
16851
- }, rs = new WeakSet(), wr = function(e, i, n, o, s) {
16851
+ }, rs = new WeakSet(), Tr = function(e, i, n, o, s) {
16852
16852
  const l = Ba(e, o, s);
16853
16853
  for (let a = 0; a < i.containers.length; a += 1) {
16854
16854
  if (!l.every((c) => i.containers[a].classList.contains(c)))
@@ -16857,7 +16857,7 @@ co = new WeakMap(), as = new WeakSet(), Sr = function(e, i, n, o, s) {
16857
16857
  el(u, Va), i.containers[a].remove(), i.containers.splice(a, 1), a -= 1;
16858
16858
  }
16859
16859
  i.onUpdate(i.containers);
16860
- }, us = new WeakSet(), Tr = function(e) {
16860
+ }, us = new WeakSet(), Pr = function(e) {
16861
16861
  var s;
16862
16862
  const i = e.marker, n = (s = e.segmentElement) == null ? void 0 : s.getAttribute("data-beyondwords-marker");
16863
16863
  let o;
@@ -16866,10 +16866,10 @@ co = new WeakMap(), as = new WeakSet(), Sr = function(e, i, n, o, s) {
16866
16866
  o = document.querySelectorAll(r);
16867
16867
  }
16868
16868
  return o.length > 0 ? o[0] : e.segmentElement;
16869
- }, Ae(Xi, as), Ae(Xi, rs), Ae(Xi, co, new _l(N(Xi, as, Sr), N(Xi, rs, wr)));
16869
+ }, Ae(Xi, as), Ae(Xi, rs), Ae(Xi, co, new _l(N(Xi, as, wr), N(Xi, rs, Tr)));
16870
16870
  let tl = Xi;
16871
16871
  const Wa = (t) => ["beyondwords-highlight", "bwp", `id-${t}`];
16872
- var go, cs, Pr, ds, Cr, fo, nl;
16872
+ var go, cs, Cr, ds, Ar, fo, nl;
16873
16873
  const Qi = class Qi {
16874
16874
  constructor() {
16875
16875
  // Highlight the segmentElement and all DOM nodes with the same marker. There
@@ -16884,7 +16884,7 @@ const Qi = class Qi {
16884
16884
  a && Mi(Qi, go).addInterest(a, this, this, i, o), l && Mi(Qi, go).removeInterest(l, this), this[`prev${e}`] = a;
16885
16885
  }
16886
16886
  };
16887
- go = new WeakMap(), cs = new WeakSet(), Pr = function(e, i, n, o) {
16887
+ go = new WeakMap(), cs = new WeakSet(), Cr = function(e, i, n, o) {
16888
16888
  var s;
16889
16889
  for (const l of N(s = i, fo, nl).call(s, n)) {
16890
16890
  const a = document.createTreeWalker(l, NodeFilter.SHOW_TEXT, null, !1);
@@ -16897,7 +16897,7 @@ go = new WeakMap(), cs = new WeakSet(), Pr = function(e, i, n, o) {
16897
16897
  g.classList.add(...Wa(e)), g.style.background = o, r.parentNode.insertBefore(g, r), g.appendChild(r);
16898
16898
  }
16899
16899
  }
16900
- }, ds = new WeakSet(), Cr = function(e, i, n) {
16900
+ }, ds = new WeakSet(), Ar = function(e, i, n) {
16901
16901
  var o;
16902
16902
  for (const s of N(o = i, fo, nl).call(o, n)) {
16903
16903
  const l = s.querySelectorAll(`mark.${Wa(e)}`);
@@ -16914,7 +16914,7 @@ go = new WeakMap(), cs = new WeakSet(), Pr = function(e, i, n, o) {
16914
16914
  i.add(r);
16915
16915
  }
16916
16916
  return i;
16917
- }, Ae(Qi, cs), Ae(Qi, ds), Ae(Qi, go, new _l(N(Qi, cs, Pr), N(Qi, ds, Cr)));
16917
+ }, Ae(Qi, cs), Ae(Qi, ds), Ae(Qi, go, new _l(N(Qi, cs, Cr), N(Qi, ds, Ar)));
16918
16918
  let il = Qi;
16919
16919
  const I2 = () => ye({
16920
16920
  type: "IdentifiersChanged",
@@ -16933,12 +16933,12 @@ const I2 = () => ye({
16933
16933
  headers: { "Content-Type": "application/json" },
16934
16934
  body: JSON.stringify(e, (i, n) => n === void 0 ? null : n)
16935
16935
  });
16936
- var gs, Ar;
16936
+ var gs, Ir;
16937
16937
  class V2 {
16938
16938
  constructor(e, i, n) {
16939
16939
  // private
16940
16940
  Ae(this, gs);
16941
- this.baseUrl = N(this, gs, Ar).call(this, e), this.projectId = i, this.writeToken = n;
16941
+ this.baseUrl = N(this, gs, Ir).call(this, e), this.projectId = i, this.writeToken = n;
16942
16942
  }
16943
16943
  getWebSocketToken() {
16944
16944
  return Si(this, null, function* () {
@@ -16962,7 +16962,7 @@ class V2 {
16962
16962
  }, this.webSocket.close(), this.webSocket = null);
16963
16963
  }
16964
16964
  }
16965
- gs = new WeakSet(), Ar = function(e) {
16965
+ gs = new WeakSet(), Ir = function(e) {
16966
16966
  return e.includes("staging") ? "app.staging-beyondwords.io" : "app.beyondwords.io";
16967
16967
  };
16968
16968
  let wn;
@@ -16987,7 +16987,7 @@ const W2 = (t, e, i, n) => Si(void 0, null, function* () {
16987
16987
  ci("The WebSocket status change subscription was rejected.", { webSocketEvent: t });
16988
16988
  }, j2 = (t) => {
16989
16989
  ci("Unexpected WebSocket error.", { error: t });
16990
- }, Ir = (t) => {
16990
+ }, Br = (t) => {
16991
16991
  if (!t())
16992
16992
  return new Promise((e) => {
16993
16993
  setInterval(() => t() && e(), 10);
@@ -17002,7 +17002,7 @@ const W2 = (t, e, i, n) => Si(void 0, null, function* () {
17002
17002
  "userInterface",
17003
17003
  "widgetInterface",
17004
17004
  "controller"
17005
- ]), Br = (t, e) => {
17005
+ ]), Vr = (t, e) => {
17006
17006
  const i = /* @__PURE__ */ new Set([...Object.keys(t), ...Object.keys(e)]), n = {};
17007
17007
  for (const o of i) {
17008
17008
  const s = t[o], l = e[o];
@@ -17011,8 +17011,8 @@ const W2 = (t, e, i, n) => Si(void 0, null, function* () {
17011
17011
  return n;
17012
17012
  };
17013
17013
  let $n = -1;
17014
- const Vr = [], L2 = (t, e, i) => Si(void 0, null, function* () {
17015
- yield Ir(() => e.player);
17014
+ const Wr = [], L2 = (t, e, i) => Si(void 0, null, function* () {
17015
+ yield Br(() => e.player);
17016
17016
  const n = e.player, o = D2(n.contentIndex, i, t);
17017
17017
  o > $n && R2(n, $n, o, t), o < $n && N2(n, $n, o), $n = o;
17018
17018
  }), D2 = (t, e, i) => {
@@ -17022,12 +17022,12 @@ const Vr = [], L2 = (t, e, i) => Si(void 0, null, function* () {
17022
17022
  for (let o = e + 1; o <= i; o += 1) {
17023
17023
  const s = es(t);
17024
17024
  n[o][2](t);
17025
- const l = es(t), a = Br(s, l);
17026
- Vr.push(a);
17025
+ const l = es(t), a = Vr(s, l);
17026
+ Wr.push(a);
17027
17027
  }
17028
17028
  }, N2 = (t, e, i) => {
17029
17029
  for (let n = e; n > i; n -= 1) {
17030
- const o = Vr.pop();
17030
+ const o = Wr.pop();
17031
17031
  for (const [s, l] of Object.entries(o))
17032
17032
  t[s] = l.previousValue;
17033
17033
  }
@@ -18428,7 +18428,7 @@ function J2(t) {
18428
18428
  }
18429
18429
  function X2(t, e, i) {
18430
18430
  let n, o, s, l, a, r, u, c, g, v, _, m, w, y, A, S, C, T, I, M, R, Z, F, { playerApiUrl: U = "https://api.beyondwords.io/v1/projects/{id}/player" } = e, { projectId: ae = void 0 } = e, { contentId: ce = void 0 } = e, { playlistId: se = void 0 } = e, { sourceId: $ = void 0 } = e, { sourceUrl: Q = void 0 } = e, { playlist: re = [] } = e, { showUserInterface: de = !0 } = e, { showBottomWidget: Y = !1 } = e, { playerStyle: K = "standard" } = e, { playerTitle: te = void 0 } = e, { callToAction: b = void 0 } = e, { skipButtonStyle: P = "auto" } = e, { playlistStyle: j = "auto-5-4" } = e, { playlistToggle: L = "auto" } = e, { downloadFormats: Pe = [] } = e, { mediaSession: Ve = "auto" } = e, { content: Ue = [] } = e, { contentIndex: G = 0 } = e, { introsOutros: Te = [] } = e, { introsOutrosIndex: qe = -1 } = e, { adverts: Qe = [] } = e, { advertIndex: st = -1 } = e, { minDurationForMidroll: pt = 2 * 60 } = e, { minTimeUntilEndForMidroll: ut = 10 } = e, { persistentAdImage: Ye = !1 } = e, { persistentIndex: Re = -1 } = e, { duration: Ne = 0 } = e, { currentTime: gt = 0 } = e, { playbackState: ze = "stopped" } = e, { playbackRate: lt = 1 } = e, { playbackRates: $e = [0.5, 0.6, 0.7, 0.8, 0.9, 1, 1.1, 1.2, 1.3, 1.4, 1.5, 2, 2.5, 3] } = e, { widgetStyle: xe = "standard" } = e, { widgetPosition: jt = "auto" } = e, { widgetWidth: Je = "auto" } = e, { widgetTarget: Be = void 0 } = e, { textColor: We = "#111" } = e, { backgroundColor: Xe = "#f5f5f5" } = e, { iconColor: et = "rgba(0, 0, 0, 0.8)" } = e, { highlightColor: at = "#eee" } = e, { videoTextColor: Fe = "white" } = e, { videoBackgroundColor: Tt = "black" } = e, { videoIconColor: ft = "white" } = e, { logoIconEnabled: mt = !0 } = e, { highlightSections: He = "all" } = e, { clickableSections: Ze = "all" } = e, { segmentWidgetSections: tt = "body" } = e, { segmentWidgetPosition: H = "7-oclock" } = e, { currentSegment: Me = void 0 } = e, { hoveredSegment: je = void 0 } = e, { loadedMedia: ht = void 0 } = e, { advertConsent: St = "personalized" } = e, { analyticsConsent: Ge = "allowed" } = e, { analyticsCustomUrl: Ke = void 0 } = e, { analyticsDeviceType: It = "auto" } = e, { analyticsTag: rt = void 0 } = e, { writeToken: wt = void 0 } = e, { captureErrors: ct = !0 } = e, { onError: zt = () => {
18431
- } } = e, { transitions: Lt = [] } = e, { controlPanel: Dt = void 0 } = e, { clientSideIntegration: Pt = {} } = e;
18431
+ } } = e, { transitions: Lt = [] } = e, { controlPanel: Dt = void 0 } = e, { clientSideEnabled: Pt = !1 } = e;
18432
18432
  const _t = (...h) => ki.addEventListener(...h), _e = (...h) => ki.removeEventListener(...h);
18433
18433
  let { initialProps: k = {} } = e, { showMediaSession: V = !1 } = e, { metadataLoaded: ue = !1 } = e, { isFullScreen: Rt = !1 } = e, { mediaElement: Ht = void 0 } = e, { userInterface: di = void 0 } = e, { widgetInterface: Bt = void 0 } = e, { controller: ki = void 0 } = e, { logoImagePosition: si = void 0 } = e, { analyticsUrl: ln = void 0 } = e, { analyticsId: yt = void 0 } = e, { listenSessionId: Ci = void 0 } = e, { sessionCreatedAt: li = void 0 } = e, { companionAdvert: Ai = void 0 } = e, { isNewListen: Wt = !1 } = e, { prevPercentage: Nt = 0 } = e, { segmentWidgets: pi = [] } = e, { segmentContainers: Ot = new tl((h) => i(49, pi = h)) } = e, { segmentClickables: gi = new $s() } = e, { segmentHighlights: xt = new il() } = e;
18434
18434
  const zi = (h) => ki.processEvent(Kt({ emittedFrom: w }, h)), Yt = () => i(100, T = je);
@@ -18554,53 +18554,53 @@ function X2(t, e, i) {
18554
18554
  function Ao(h) {
18555
18555
  Xe = h, i(36, Xe);
18556
18556
  }
18557
- function eu(h) {
18557
+ function tu(h) {
18558
18558
  et = h, i(37, et);
18559
18559
  }
18560
- function tu(h) {
18560
+ function iu(h) {
18561
18561
  at = h, i(15, at);
18562
18562
  }
18563
- function iu(h) {
18563
+ function nu(h) {
18564
18564
  Fe = h, i(38, Fe);
18565
18565
  }
18566
- function nu(h) {
18566
+ function ou(h) {
18567
18567
  ft = h, i(39, ft);
18568
18568
  }
18569
- function ou(h) {
18569
+ function su(h) {
18570
18570
  mt = h, i(40, mt);
18571
18571
  }
18572
- function su(h) {
18572
+ function lu(h) {
18573
18573
  He = h, i(16, He);
18574
18574
  }
18575
- function lu(h) {
18575
+ function au(h) {
18576
18576
  Ze = h, i(17, Ze);
18577
18577
  }
18578
- function au(h) {
18578
+ function ru(h) {
18579
18579
  tt = h, i(18, tt);
18580
18580
  }
18581
- function ru(h) {
18581
+ function uu(h) {
18582
18582
  H = h, i(19, H);
18583
18583
  }
18584
- function uu(h) {
18584
+ function cu(h) {
18585
18585
  Me = h, i(20, Me);
18586
18586
  }
18587
- function cu(h) {
18587
+ function du(h) {
18588
18588
  je = h, i(21, je);
18589
18589
  }
18590
- function du(h) {
18590
+ function gu(h) {
18591
18591
  St = h, i(41, St);
18592
18592
  }
18593
- function gu(h) {
18593
+ function fu(h) {
18594
18594
  Ge = h, i(42, Ge);
18595
18595
  }
18596
- function fu(h) {
18596
+ function mu(h) {
18597
18597
  Ke = h, i(43, Ke);
18598
18598
  }
18599
- function mu(h) {
18599
+ function hu(h) {
18600
18600
  rt = h, i(44, rt);
18601
18601
  }
18602
18602
  return t.$$set = (h) => {
18603
- "playerApiUrl" in h && i(75, U = h.playerApiUrl), "projectId" in h && i(0, ae = h.projectId), "contentId" in h && i(1, ce = h.contentId), "playlistId" in h && i(2, se = h.playlistId), "sourceId" in h && i(3, $ = h.sourceId), "sourceUrl" in h && i(4, Q = h.sourceUrl), "playlist" in h && i(76, re = h.playlist), "showUserInterface" in h && i(5, de = h.showUserInterface), "showBottomWidget" in h && i(77, Y = h.showBottomWidget), "playerStyle" in h && i(6, K = h.playerStyle), "playerTitle" in h && i(24, te = h.playerTitle), "callToAction" in h && i(25, b = h.callToAction), "skipButtonStyle" in h && i(26, P = h.skipButtonStyle), "playlistStyle" in h && i(27, j = h.playlistStyle), "playlistToggle" in h && i(28, L = h.playlistToggle), "downloadFormats" in h && i(50, Pe = h.downloadFormats), "mediaSession" in h && i(29, Ve = h.mediaSession), "content" in h && i(51, Ue = h.content), "contentIndex" in h && i(7, G = h.contentIndex), "introsOutros" in h && i(52, Te = h.introsOutros), "introsOutrosIndex" in h && i(8, qe = h.introsOutrosIndex), "adverts" in h && i(53, Qe = h.adverts), "advertIndex" in h && i(9, st = h.advertIndex), "minDurationForMidroll" in h && i(78, pt = h.minDurationForMidroll), "minTimeUntilEndForMidroll" in h && i(79, ut = h.minTimeUntilEndForMidroll), "persistentAdImage" in h && i(30, Ye = h.persistentAdImage), "persistentIndex" in h && i(10, Re = h.persistentIndex), "duration" in h && i(31, Ne = h.duration), "currentTime" in h && i(11, gt = h.currentTime), "playbackState" in h && i(12, ze = h.playbackState), "playbackRate" in h && i(32, lt = h.playbackRate), "playbackRates" in h && i(54, $e = h.playbackRates), "widgetStyle" in h && i(13, xe = h.widgetStyle), "widgetPosition" in h && i(33, jt = h.widgetPosition), "widgetWidth" in h && i(34, Je = h.widgetWidth), "widgetTarget" in h && i(14, Be = h.widgetTarget), "textColor" in h && i(35, We = h.textColor), "backgroundColor" in h && i(36, Xe = h.backgroundColor), "iconColor" in h && i(37, et = h.iconColor), "highlightColor" in h && i(15, at = h.highlightColor), "videoTextColor" in h && i(38, Fe = h.videoTextColor), "videoBackgroundColor" in h && i(55, Tt = h.videoBackgroundColor), "videoIconColor" in h && i(39, ft = h.videoIconColor), "logoIconEnabled" in h && i(40, mt = h.logoIconEnabled), "highlightSections" in h && i(16, He = h.highlightSections), "clickableSections" in h && i(17, Ze = h.clickableSections), "segmentWidgetSections" in h && i(18, tt = h.segmentWidgetSections), "segmentWidgetPosition" in h && i(19, H = h.segmentWidgetPosition), "currentSegment" in h && i(20, Me = h.currentSegment), "hoveredSegment" in h && i(21, je = h.hoveredSegment), "loadedMedia" in h && i(80, ht = h.loadedMedia), "advertConsent" in h && i(41, St = h.advertConsent), "analyticsConsent" in h && i(42, Ge = h.analyticsConsent), "analyticsCustomUrl" in h && i(43, Ke = h.analyticsCustomUrl), "analyticsDeviceType" in h && i(81, It = h.analyticsDeviceType), "analyticsTag" in h && i(44, rt = h.analyticsTag), "writeToken" in h && i(82, wt = h.writeToken), "captureErrors" in h && i(83, ct = h.captureErrors), "onError" in h && i(84, zt = h.onError), "transitions" in h && i(85, Lt = h.transitions), "controlPanel" in h && i(22, Dt = h.controlPanel), "clientSideIntegration" in h && i(86, Pt = h.clientSideIntegration), "initialProps" in h && i(89, k = h.initialProps), "showMediaSession" in h && i(56, V = h.showMediaSession), "metadataLoaded" in h && i(23, ue = h.metadataLoaded), "isFullScreen" in h && i(57, Rt = h.isFullScreen), "mediaElement" in h && i(45, Ht = h.mediaElement), "userInterface" in h && i(46, di = h.userInterface), "widgetInterface" in h && i(47, Bt = h.widgetInterface), "controller" in h && i(90, ki = h.controller), "logoImagePosition" in h && i(58, si = h.logoImagePosition), "analyticsUrl" in h && i(91, ln = h.analyticsUrl), "analyticsId" in h && i(92, yt = h.analyticsId), "listenSessionId" in h && i(93, Ci = h.listenSessionId), "sessionCreatedAt" in h && i(94, li = h.sessionCreatedAt), "companionAdvert" in h && i(59, Ai = h.companionAdvert), "isNewListen" in h && i(95, Wt = h.isNewListen), "prevPercentage" in h && i(48, Nt = h.prevPercentage), "segmentWidgets" in h && i(49, pi = h.segmentWidgets), "segmentContainers" in h && i(96, Ot = h.segmentContainers), "segmentClickables" in h && i(97, gi = h.segmentClickables), "segmentHighlights" in h && i(98, xt = h.segmentHighlights);
18603
+ "playerApiUrl" in h && i(75, U = h.playerApiUrl), "projectId" in h && i(0, ae = h.projectId), "contentId" in h && i(1, ce = h.contentId), "playlistId" in h && i(2, se = h.playlistId), "sourceId" in h && i(3, $ = h.sourceId), "sourceUrl" in h && i(4, Q = h.sourceUrl), "playlist" in h && i(76, re = h.playlist), "showUserInterface" in h && i(5, de = h.showUserInterface), "showBottomWidget" in h && i(77, Y = h.showBottomWidget), "playerStyle" in h && i(6, K = h.playerStyle), "playerTitle" in h && i(24, te = h.playerTitle), "callToAction" in h && i(25, b = h.callToAction), "skipButtonStyle" in h && i(26, P = h.skipButtonStyle), "playlistStyle" in h && i(27, j = h.playlistStyle), "playlistToggle" in h && i(28, L = h.playlistToggle), "downloadFormats" in h && i(50, Pe = h.downloadFormats), "mediaSession" in h && i(29, Ve = h.mediaSession), "content" in h && i(51, Ue = h.content), "contentIndex" in h && i(7, G = h.contentIndex), "introsOutros" in h && i(52, Te = h.introsOutros), "introsOutrosIndex" in h && i(8, qe = h.introsOutrosIndex), "adverts" in h && i(53, Qe = h.adverts), "advertIndex" in h && i(9, st = h.advertIndex), "minDurationForMidroll" in h && i(78, pt = h.minDurationForMidroll), "minTimeUntilEndForMidroll" in h && i(79, ut = h.minTimeUntilEndForMidroll), "persistentAdImage" in h && i(30, Ye = h.persistentAdImage), "persistentIndex" in h && i(10, Re = h.persistentIndex), "duration" in h && i(31, Ne = h.duration), "currentTime" in h && i(11, gt = h.currentTime), "playbackState" in h && i(12, ze = h.playbackState), "playbackRate" in h && i(32, lt = h.playbackRate), "playbackRates" in h && i(54, $e = h.playbackRates), "widgetStyle" in h && i(13, xe = h.widgetStyle), "widgetPosition" in h && i(33, jt = h.widgetPosition), "widgetWidth" in h && i(34, Je = h.widgetWidth), "widgetTarget" in h && i(14, Be = h.widgetTarget), "textColor" in h && i(35, We = h.textColor), "backgroundColor" in h && i(36, Xe = h.backgroundColor), "iconColor" in h && i(37, et = h.iconColor), "highlightColor" in h && i(15, at = h.highlightColor), "videoTextColor" in h && i(38, Fe = h.videoTextColor), "videoBackgroundColor" in h && i(55, Tt = h.videoBackgroundColor), "videoIconColor" in h && i(39, ft = h.videoIconColor), "logoIconEnabled" in h && i(40, mt = h.logoIconEnabled), "highlightSections" in h && i(16, He = h.highlightSections), "clickableSections" in h && i(17, Ze = h.clickableSections), "segmentWidgetSections" in h && i(18, tt = h.segmentWidgetSections), "segmentWidgetPosition" in h && i(19, H = h.segmentWidgetPosition), "currentSegment" in h && i(20, Me = h.currentSegment), "hoveredSegment" in h && i(21, je = h.hoveredSegment), "loadedMedia" in h && i(80, ht = h.loadedMedia), "advertConsent" in h && i(41, St = h.advertConsent), "analyticsConsent" in h && i(42, Ge = h.analyticsConsent), "analyticsCustomUrl" in h && i(43, Ke = h.analyticsCustomUrl), "analyticsDeviceType" in h && i(81, It = h.analyticsDeviceType), "analyticsTag" in h && i(44, rt = h.analyticsTag), "writeToken" in h && i(82, wt = h.writeToken), "captureErrors" in h && i(83, ct = h.captureErrors), "onError" in h && i(84, zt = h.onError), "transitions" in h && i(85, Lt = h.transitions), "controlPanel" in h && i(22, Dt = h.controlPanel), "clientSideEnabled" in h && i(86, Pt = h.clientSideEnabled), "initialProps" in h && i(89, k = h.initialProps), "showMediaSession" in h && i(56, V = h.showMediaSession), "metadataLoaded" in h && i(23, ue = h.metadataLoaded), "isFullScreen" in h && i(57, Rt = h.isFullScreen), "mediaElement" in h && i(45, Ht = h.mediaElement), "userInterface" in h && i(46, di = h.userInterface), "widgetInterface" in h && i(47, Bt = h.widgetInterface), "controller" in h && i(90, ki = h.controller), "logoImagePosition" in h && i(58, si = h.logoImagePosition), "analyticsUrl" in h && i(91, ln = h.analyticsUrl), "analyticsId" in h && i(92, yt = h.analyticsId), "listenSessionId" in h && i(93, Ci = h.listenSessionId), "sessionCreatedAt" in h && i(94, li = h.sessionCreatedAt), "companionAdvert" in h && i(59, Ai = h.companionAdvert), "isNewListen" in h && i(95, Wt = h.isNewListen), "prevPercentage" in h && i(48, Nt = h.prevPercentage), "segmentWidgets" in h && i(49, pi = h.segmentWidgets), "segmentContainers" in h && i(96, Ot = h.segmentContainers), "segmentClickables" in h && i(97, gi = h.segmentClickables), "segmentHighlights" in h && i(98, xt = h.segmentHighlights);
18604
18604
  }, t.$$.update = () => {
18605
18605
  t.$$.dirty[0] & /*contentIndex*/
18606
18606
  128 | t.$$.dirty[1] & /*content*/
@@ -18812,7 +18812,6 @@ function X2(t, e, i) {
18812
18812
  it,
18813
18813
  kt,
18814
18814
  Ao,
18815
- eu,
18816
18815
  tu,
18817
18816
  iu,
18818
18817
  nu,
@@ -18826,7 +18825,8 @@ function X2(t, e, i) {
18826
18825
  du,
18827
18826
  gu,
18828
18827
  fu,
18829
- mu
18828
+ mu,
18829
+ hu
18830
18830
  ];
18831
18831
  }
18832
18832
  let Q2 = class extends we {
@@ -18899,7 +18899,7 @@ let Q2 = class extends we {
18899
18899
  onError: 84,
18900
18900
  transitions: 85,
18901
18901
  controlPanel: 22,
18902
- clientSideIntegration: 86,
18902
+ clientSideEnabled: 86,
18903
18903
  addEventListener: 87,
18904
18904
  removeEventListener: 88,
18905
18905
  initialProps: 89,
@@ -19294,11 +19294,11 @@ let Q2 = class extends we {
19294
19294
  set controlPanel(e) {
19295
19295
  this.$$set({ controlPanel: e }), d();
19296
19296
  }
19297
- get clientSideIntegration() {
19297
+ get clientSideEnabled() {
19298
19298
  return this.$$.ctx[86];
19299
19299
  }
19300
- set clientSideIntegration(e) {
19301
- this.$$set({ clientSideIntegration: e }), d();
19300
+ set clientSideEnabled(e) {
19301
+ this.$$set({ clientSideEnabled: e }), d();
19302
19302
  }
19303
19303
  get addEventListener() {
19304
19304
  return this.$$.ctx[87];
@@ -19436,15 +19436,8 @@ class $2 {
19436
19436
  Ae(this, yn);
19437
19437
  this.baseUrl = e == null ? void 0 : e.replace("{id}", i), this.headers = {
19438
19438
  "X-Referer": window.location.href,
19439
- "X-Import": n == null ? void 0 : n.enabled,
19440
- "X-Author": n == null ? void 0 : n.contentAuthor,
19441
- "X-Title": n == null ? void 0 : n.contentTitle,
19442
- "X-Publish-Date": n == null ? void 0 : n.publishDate,
19443
- "X-Published": n == null ? void 0 : n.published,
19444
- "X-Ads-Enabled": n == null ? void 0 : n.adsEnabled
19439
+ "X-Import": !!n
19445
19440
  };
19446
- for (const o of Object.keys(this.headers))
19447
- typeof this.headers[o] == "undefined" && delete this.headers[o];
19448
19441
  }
19449
19442
  byContentId(e) {
19450
19443
  return N(this, yn, zn).call(this, `by_content_id/${e}`);
@@ -19465,8 +19458,8 @@ class $2 {
19465
19458
  yn = new WeakSet(), zn = function(e) {
19466
19459
  return vl(`${this.baseUrl}/${e}`, { headers: this.headers });
19467
19460
  };
19468
- const ll = (t) => typeof t != "object" || t === null ? t : Array.isArray(t) ? t.map(ll) : Object.fromEntries(Object.entries(t).map(([e, i]) => [e.replace(/([A-Z])/g, (n) => `_${n.toLowerCase()}`), ll(i)])), Wr = (t) => t === "dark" || t === "auto" && ev() ? "dark" : "light", ev = () => window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches, Ra = (t) => Si(void 0, null, function* () {
19469
- const e = new $2(t.playerApiUrl, t.projectId, t.clientSideIntegration);
19461
+ const ll = (t) => typeof t != "object" || t === null ? t : Array.isArray(t) ? t.map(ll) : Object.fromEntries(Object.entries(t).map(([e, i]) => [e.replace(/([A-Z])/g, (n) => `_${n.toLowerCase()}`), ll(i)])), Or = (t) => t === "dark" || t === "auto" && ev() ? "dark" : "light", ev = () => window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches, Ra = (t) => Si(void 0, null, function* () {
19462
+ const e = new $2(t.playerApiUrl, t.projectId, t.clientSideEnabled);
19470
19463
  if (!t.playerApiUrl || !t.projectId)
19471
19464
  return;
19472
19465
  const i = tv(t);
@@ -19497,18 +19490,18 @@ const ll = (t) => typeof t != "object" || t === null ? t : Array.isArray(t) ? t.
19497
19490
  if (i.source_url)
19498
19491
  return t.bySourceUrl(i.source_url);
19499
19492
  }, nv = (t) => {
19500
- Or(t), Er(t), Mr(t), t.onEvent(ye({
19493
+ Er(t), Mr(t), jr(t), t.onEvent(ye({
19501
19494
  type: "NoContentAvailable",
19502
19495
  description: "No published and processed content is available for the identifiers.",
19503
19496
  initiatedBy: "browser"
19504
19497
  }));
19505
19498
  }, ov = (t, e) => {
19506
19499
  var s, l, a, r;
19507
- const i = Wr(e.settings.theme), n = e.settings[`${i}_theme`], o = e.settings.video_theme;
19508
- Or(t), Er(t, e), Mr(t, e), Oe(t, "playerStyle", e.settings.player_style), Oe(t, "playerTitle", ((s = e.playlist) == null ? void 0 : s.title) || e.settings.player_title), Oe(t, "callToAction", e.settings.call_to_action === "Listen to this article" ? null : e.settings.call_to_action), Oe(t, "skipButtonStyle", e.settings.skip_button_style), Oe(t, "downloadFormats", e.settings.download_button_enabled ? ["mp3"] : []), Oe(t, "introsOutros", sv(e.settings)), Oe(t, "persistentAdImage", e.settings.persistent_ad_image), Oe(t, "duration", (r = (a = (l = t.content[t.contentIndex]) == null ? void 0 : l.audio) == null ? void 0 : a[0]) == null ? void 0 : r.duration), Oe(t, "widgetStyle", e.settings.widget_style), Oe(t, "widgetPosition", e.settings.widget_position), Oe(t, "textColor", n.text_color), Oe(t, "backgroundColor", n.background_color), Oe(t, "iconColor", n.icon_color), Oe(t, "highlightColor", n.highlight_color), Oe(t, "videoTextColor", o.text_color), Oe(t, "videoBackgroundColor", o.background_color), Oe(t, "videoIconColor", o.icon_color), Oe(t, "logoIconEnabled", e.settings.logo_icon_enabled), Oe(t, "logoImagePosition", e.video_settings.logo_image_position), Oe(t, "highlightSections", e.settings.segment_playback_enabled ? "all" : "none"), Oe(t, "clickableSections", e.settings.segment_playback_enabled ? "all" : "none"), Oe(t, "segmentWidgetSections", (e.settings.segment_playback_enabled, "none")), Oe(t, "analyticsConsent", lv(e.settings)), Oe(t, "analyticsCustomUrl", e.settings.analytics_custom_url), Oe(t, "analyticsTag", e.settings.analytics_tag), Oe(t, "analyticsUrl", e.settings.analytics_url), Oe(t, "analyticsId", e.settings.analytics_id);
19509
- }, Or = (t) => {
19500
+ const i = Or(e.settings.theme), n = e.settings[`${i}_theme`], o = e.settings.video_theme;
19501
+ Er(t), Mr(t, e), jr(t, e), Oe(t, "playerStyle", e.settings.player_style), Oe(t, "playerTitle", ((s = e.playlist) == null ? void 0 : s.title) || e.settings.player_title), Oe(t, "callToAction", e.settings.call_to_action === "Listen to this article" ? null : e.settings.call_to_action), Oe(t, "skipButtonStyle", e.settings.skip_button_style), Oe(t, "downloadFormats", e.settings.download_button_enabled ? ["mp3"] : []), Oe(t, "introsOutros", sv(e.settings)), Oe(t, "persistentAdImage", e.settings.persistent_ad_image), Oe(t, "duration", (r = (a = (l = t.content[t.contentIndex]) == null ? void 0 : l.audio) == null ? void 0 : a[0]) == null ? void 0 : r.duration), Oe(t, "widgetStyle", e.settings.widget_style), Oe(t, "widgetPosition", e.settings.widget_position), Oe(t, "textColor", n.text_color), Oe(t, "backgroundColor", n.background_color), Oe(t, "iconColor", n.icon_color), Oe(t, "highlightColor", n.highlight_color), Oe(t, "videoTextColor", o.text_color), Oe(t, "videoBackgroundColor", o.background_color), Oe(t, "videoIconColor", o.icon_color), Oe(t, "logoIconEnabled", e.settings.logo_icon_enabled), Oe(t, "logoImagePosition", e.video_settings.logo_image_position), Oe(t, "highlightSections", e.settings.segment_playback_enabled ? "all" : "none"), Oe(t, "clickableSections", e.settings.segment_playback_enabled ? "all" : "none"), Oe(t, "segmentWidgetSections", (e.settings.segment_playback_enabled, "none")), Oe(t, "analyticsConsent", lv(e.settings)), Oe(t, "analyticsCustomUrl", e.settings.analytics_custom_url), Oe(t, "analyticsTag", e.settings.analytics_tag), Oe(t, "analyticsUrl", e.settings.analytics_url), Oe(t, "analyticsId", e.settings.analytics_id);
19502
+ }, Er = (t) => {
19510
19503
  Oe(t, "contentIndex", 0), Oe(t, "introsOutrosIndex", -1), Oe(t, "advertIndex", -1), Oe(t, "persistentIndex", -1), Oe(t, "duration", 0), Oe(t, "currentTime", 0), Oe(t, "playbackState", "stopped"), Oe(t, "currentSegment", void 0), Oe(t, "hoveredSegment", void 0);
19511
- }, Er = (t, e) => {
19504
+ }, Mr = (t, e) => {
19512
19505
  var o;
19513
19506
  const i = (o = e == null ? void 0 : e.settings) == null ? void 0 : o.image_enabled, n = (e == null ? void 0 : e.content) || [];
19514
19507
  Oe(t, "content", n.map((s) => {
@@ -19543,11 +19536,11 @@ const ll = (t) => typeof t != "object" || t === null ? t : Array.isArray(t) ? t.
19543
19536
  }))
19544
19537
  };
19545
19538
  }));
19546
- }, Mr = (t, e) => {
19539
+ }, jr = (t, e) => {
19547
19540
  var o;
19548
19541
  const i = (o = e == null ? void 0 : e.settings) == null ? void 0 : o.image_enabled, n = (e == null ? void 0 : e.ads) || [];
19549
19542
  Oe(t, "adverts", n.map((s) => {
19550
- const l = s.type === "vast", a = Wr(s.theme), r = s[`${a}_theme`], u = s.video_theme;
19543
+ const l = s.type === "vast", a = Or(s.theme), r = s[`${a}_theme`], u = s.video_theme;
19551
19544
  return {
19552
19545
  id: s.id,
19553
19546
  type: s.type,
@@ -19590,16 +19583,16 @@ const ll = (t) => typeof t != "object" || t === null ? t : Array.isArray(t) ? t.
19590
19583
  t.vastUrl && ts.vastUrls.add(t.vastUrl);
19591
19584
  for (const e of [...t.audio || [], ...t.video || []])
19592
19585
  ts.mediaSources.add(e.url);
19593
- }, jr = (t) => {
19586
+ }, zr = (t) => {
19594
19587
  if (t.vastUrl && ts.vastUrls.has(t.vastUrl))
19595
19588
  return !0;
19596
19589
  for (const e of [...t.audio || [], ...t.video || []])
19597
19590
  if (ts.mediaSources.has(e.url))
19598
19591
  return !0;
19599
19592
  return !1;
19600
- }, zr = /* @__PURE__ */ new Set(), uv = (t) => {
19601
- [...t.audio || [], ...t.video || []].forEach((i) => zr.add(i.url));
19602
- }, cv = (t) => [...t.audio || [], ...t.video || []].some((i) => zr.has(i.url)), dv = ({ introsOutrosIndex: t, adverts: e, advertIndex: i, content: n = [], contentIndex: o, currentTime: s, atTheStart: l, atTheEnd: a, errored: r, minTimeUntilEndForMidroll: u, minDurationForMidroll: c } = {}) => {
19593
+ }, Lr = /* @__PURE__ */ new Set(), uv = (t) => {
19594
+ [...t.audio || [], ...t.video || []].forEach((i) => Lr.add(i.url));
19595
+ }, cv = (t) => [...t.audio || [], ...t.video || []].some((i) => Lr.has(i.url)), dv = ({ introsOutrosIndex: t, adverts: e, advertIndex: i, content: n = [], contentIndex: o, currentTime: s, atTheStart: l, atTheEnd: a, errored: r, minTimeUntilEndForMidroll: u, minDurationForMidroll: c } = {}) => {
19603
19596
  var y;
19604
19597
  const g = e && e[i];
19605
19598
  e:
@@ -19618,7 +19611,7 @@ const ll = (t) => typeof t != "object" || t === null ? t : Array.isArray(t) ? t.
19618
19611
  const v = fv({ content: n, contentIndex: o, currentTime: s, atTheStart: l, atTheEnd: a, minTimeUntilEndForMidroll: u, minDurationForMidroll: c });
19619
19612
  let _ = -1, m = -1 / 0, w = -1 / 0;
19620
19613
  for (const [A, S] of e.entries()) {
19621
- if (cv(S) || jr(S) || !v.has(S.placement))
19614
+ if (cv(S) || zr(S) || !v.has(S.placement))
19622
19615
  continue;
19623
19616
  const C = gv[S.type] || 0;
19624
19617
  if (C < m)
@@ -19643,7 +19636,7 @@ const ll = (t) => typeof t != "object" || t === null ? t : Array.isArray(t) ? t.
19643
19636
  }, _v = (t, e, i, n) => {
19644
19637
  let o = -1, s = -1 / 0, l = -1 / 0;
19645
19638
  for (const [a, r] of (n || []).entries()) {
19646
- if (!t || jr(r) || r.type === "vast")
19639
+ if (!t || zr(r) || r.type === "vast")
19647
19640
  continue;
19648
19641
  const u = vv(a, e, i);
19649
19642
  if (u < s)
@@ -19652,17 +19645,17 @@ const ll = (t) => typeof t != "object" || t === null ? t : Array.isArray(t) ? t.
19652
19645
  u === s && c < l || (o = a, s = u, l = c);
19653
19646
  }
19654
19647
  return o;
19655
- }, yv = { "pre-roll": 2, "mid-roll": 1 }, vv = (t, e, i) => t === i ? 2 : t === e ? 1 : 0, Lr = { mediaSources: /* @__PURE__ */ new Set() }, bv = (t) => {
19648
+ }, yv = { "pre-roll": 2, "mid-roll": 1 }, vv = (t, e, i) => t === i ? 2 : t === e ? 1 : 0, Dr = { mediaSources: /* @__PURE__ */ new Set() }, bv = (t) => {
19656
19649
  for (const e of [...t.audio || [], t.video || []])
19657
- Lr.mediaSources.add(e.url);
19650
+ Dr.mediaSources.add(e.url);
19658
19651
  }, kv = (t) => {
19659
19652
  for (const e of [...t.audio || [], t.video || []])
19660
- if (Lr.mediaSources.has(e.url))
19653
+ if (Dr.mediaSources.has(e.url))
19661
19654
  return !0;
19662
19655
  return !1;
19663
- }, Dr = /* @__PURE__ */ new Set(), pv = (t) => {
19664
- [...t.audio || [], ...t.video || []].forEach((i) => Dr.add(i.url));
19665
- }, Sv = (t) => [...t.audio || [], ...t.video || []].some((i) => Dr.has(i.url)), wv = ({ introsOutros: t = [], introsOutrosIndex: e, advertIndex: i, content: n, contentIndex: o, currentTime: s, atTheStart: l, atTheEnd: a, errored: r }) => {
19656
+ }, Rr = /* @__PURE__ */ new Set(), pv = (t) => {
19657
+ [...t.audio || [], ...t.video || []].forEach((i) => Rr.add(i.url));
19658
+ }, Sv = (t) => [...t.audio || [], ...t.video || []].some((i) => Rr.has(i.url)), wv = ({ introsOutros: t = [], introsOutrosIndex: e, advertIndex: i, content: n, contentIndex: o, currentTime: s, atTheStart: l, atTheEnd: a, errored: r }) => {
19666
19659
  const u = t[e];
19667
19660
  e:
19668
19661
  if (u) {
@@ -19738,7 +19731,7 @@ const ll = (t) => typeof t != "object" || t === null ? t : Array.isArray(t) ? t.
19738
19731
  for (const s of t.instances())
19739
19732
  s.showBottomWidget = s === i;
19740
19733
  }, Vv = { playing: 2, paused: 1, stopped: 0 };
19741
- var fs, Rr, ms, Nr, hs, xr, mo, al, _s, Fr, ys, Ur, ji, Ki, $i, Tn, yi, Bi, vs, qr, In, to, en, Pn, bs, Hr, ho, rl, qi, mn, _o, ul, tn, Cn, Ut, ni, nn, An, Hi, hn, ks, Yr, ps, Zr, Bn, io, yo, cl, Ss, Gr, ws, Kr, Ts, Jr, Ps, Xr;
19734
+ var fs, Nr, ms, xr, hs, Fr, mo, al, _s, Ur, ys, qr, ji, Ki, $i, Tn, yi, Bi, vs, Hr, In, to, en, Pn, bs, Yr, ho, rl, qi, mn, _o, ul, tn, Cn, Ut, ni, nn, An, Hi, hn, ks, Zr, ps, Gr, Bn, io, yo, cl, Ss, Kr, ws, Jr, Ts, Xr, Ps, Qr;
19742
19735
  class Wv {
19743
19736
  constructor(e, i) {
19744
19737
  // private
@@ -19782,11 +19775,11 @@ class Wv {
19782
19775
  }
19783
19776
  processEvent(e) {
19784
19777
  return Si(this, null, function* () {
19785
- yield Ir(() => this.player), $u(e);
19778
+ yield Br(() => this.player), $u(e);
19786
19779
  const i = this[`handle${e.type}`], n = es(this.player);
19787
- N(this, fs, Rr).call(this, e) ? e.status = "ignored-due-to-advert" : N(this, ms, Nr).call(this, e) ? e.status = "ignored-due-to-scrubbing" : N(this, hs, xr).call(this, e) ? e.status = "ignored-due-to-precedence" : i ? (yield i.call(this, e), N(this, ks, Yr).call(this), N(this, ps, Zr).call(this), e.status = "handled") : ci("No handler function for event.", e);
19780
+ N(this, fs, Nr).call(this, e) ? e.status = "ignored-due-to-advert" : N(this, ms, xr).call(this, e) ? e.status = "ignored-due-to-scrubbing" : N(this, hs, Fr).call(this, e) ? e.status = "ignored-due-to-precedence" : i ? (yield i.call(this, e), N(this, ks, Zr).call(this), N(this, ps, Gr).call(this), e.status = "handled") : ci("No handler function for event.", e);
19788
19781
  const o = es(this.player);
19789
- e.changedProps = Br(n, o), e.processedAt = (/* @__PURE__ */ new Date()).toISOString(), ec(e), N(this, mo, al).call(this, e.type, e), N(this, mo, al).call(this, "<any>", e);
19782
+ e.changedProps = Vr(n, o), e.processedAt = (/* @__PURE__ */ new Date()).toISOString(), ec(e), N(this, mo, al).call(this, e.type, e), N(this, mo, al).call(this, "<any>", e);
19790
19783
  });
19791
19784
  }
19792
19785
  // Please document all events and keep in-sync with /doc/player-events.md
@@ -19884,7 +19877,7 @@ class Wv {
19884
19877
  N(this, Ut, ni).call(this, (e) => e + 5);
19885
19878
  }
19886
19879
  handlePressedProgressBar({ ratio: e }) {
19887
- this.preScrubState = this.player.playbackState, this.pauseTimeout = setTimeout(() => N(this, bs, Hr).call(this), 100), N(this, Ut, ni).call(this, (i, n) => e * n), e !== 0 && (this.segmentPlayed = !0);
19880
+ this.preScrubState = this.player.playbackState, this.pauseTimeout = setTimeout(() => N(this, bs, Yr).call(this), 100), N(this, Ut, ni).call(this, (i, n) => e * n), e !== 0 && (this.segmentPlayed = !0);
19888
19881
  }
19889
19882
  handleScrubbedProgressBar({ ratio: e }) {
19890
19883
  N(this, Ut, ni).call(this, (i, n) => e * n - 0.01), e !== 0 && (this.segmentPlayed = !0);
@@ -19919,7 +19912,7 @@ class Wv {
19919
19912
  !e && !i && !n && (this.player.playbackState = "playing");
19920
19913
  }
19921
19914
  handlePlaybackEnded() {
19922
- N(this, vs, qr).call(this) && (this.midrollPlayed = !0), this.segmentPlayed = !1;
19915
+ N(this, vs, Hr).call(this) && (this.midrollPlayed = !0), this.segmentPlayed = !1;
19923
19916
  const e = N(this, ji, Ki).call(this), i = N(this, yi, Bi).call(this);
19924
19917
  N(this, Hi, hn).call(this, { atTheEnd: !0, wasIntro: e }), !i && (N(this, nn, An).call(this, { atTheEnd: !0 }), !e && (N(this, $i, Tn).call(this) || N(this, yi, Bi).call(this) || N(this, tn, Cn).call(this, (n) => n + 1)));
19925
19918
  }
@@ -19958,7 +19951,7 @@ class Wv {
19958
19951
  e.playbackState = "paused", e.widgetStyle = "closed-by-user";
19959
19952
  }
19960
19953
  handleContentStatusChanged({ contentId: e, legacyId: i, sourceId: n, sourceUrl: o, contentStatus: s }) {
19961
- s === "processed" && this.player.playbackState === "stopped" && this.player.contentIndex === 0 && this.player.currentTime === 0 && N(this, Ts, Jr).call(this, { contentId: e, legacyId: i, sourceId: n, sourceUrl: o }) && Ra(this.player).then(() => {
19954
+ s === "processed" && this.player.playbackState === "stopped" && this.player.contentIndex === 0 && this.player.currentTime === 0 && N(this, Ts, Xr).call(this, { contentId: e, legacyId: i, sourceId: n, sourceUrl: o }) && Ra(this.player).then(() => {
19962
19955
  N(this, nn, An).call(this, { atTheStart: !0 }), N(this, Hi, hn).call(this, { atTheStart: !0 });
19963
19956
  });
19964
19957
  }
@@ -19972,25 +19965,25 @@ class Wv {
19972
19965
  handlePressedSegment({ segment: e, contentIndex: i, segmentIndex: n, segmentElement: o }) {
19973
19966
  if (!ao("hovered", e, this.player.clickableSections))
19974
19967
  return;
19975
- if (!N(this, Ps, Xr).call(this, { contentIndex: i, segmentIndex: n }) && !N(this, yi, Bi).call(this)) {
19968
+ if (!N(this, Ps, Qr).call(this, { contentIndex: i, segmentIndex: n }) && !N(this, yi, Bi).call(this)) {
19976
19969
  N(this, en, Pn).call(this);
19977
19970
  return;
19978
19971
  }
19979
19972
  i !== this.player.contentIndex && N(this, tn, Cn).call(this, () => i), N(this, ho, rl).call(this, Kt({ contentIndex: i, segmentIndex: n, segmentElement: o }, e));
19980
19973
  }
19981
19974
  }
19982
- fs = new WeakSet(), Rr = function({ type: e }) {
19975
+ fs = new WeakSet(), Nr = function({ type: e }) {
19983
19976
  return N(this, yi, Bi).call(this) && (e.includes("ChangeRate") || e.includes("PrevSegment") || e.includes("NextSegment") || e.includes("SeekBack") || e.includes("SeekAhead") || e.includes("Progress") && !e.includes("Space") && !e.includes("Enter"));
19984
- }, ms = new WeakSet(), Nr = function({ type: e }) {
19977
+ }, ms = new WeakSet(), xr = function({ type: e }) {
19985
19978
  return this.preScrubState && (e.includes("CurrentTimeUpdated") || e.includes("PlaybackEnded"));
19986
- }, hs = new WeakSet(), xr = function({ type: e, precedence: i }) {
19979
+ }, hs = new WeakSet(), Fr = function({ type: e, precedence: i }) {
19987
19980
  return e.includes("PressedSegment") && i > 0;
19988
19981
  }, mo = new WeakSet(), al = function(e, i) {
19989
19982
  const n = this.eventListeners[e] || {};
19990
19983
  Object.values(n).forEach((o) => o(i));
19991
- }, _s = new WeakSet(), Fr = function() {
19984
+ }, _s = new WeakSet(), Ur = function() {
19992
19985
  return this.player.introsOutros.some((e) => e.placement === "pre-roll");
19993
- }, ys = new WeakSet(), Ur = function() {
19986
+ }, ys = new WeakSet(), qr = function() {
19994
19987
  return this.player.introsOutros.some((e) => e.placement === "post-roll");
19995
19988
  }, ji = new WeakSet(), Ki = function(e = this.player.introsOutrosIndex) {
19996
19989
  var i, n, o;
@@ -20000,14 +19993,14 @@ fs = new WeakSet(), Rr = function({ type: e }) {
20000
19993
  return ((o = (n = (i = this.player) == null ? void 0 : i.introsOutros) == null ? void 0 : n[e]) == null ? void 0 : o.placement) === "post-roll";
20001
19994
  }, yi = new WeakSet(), Bi = function() {
20002
19995
  return this.player.advertIndex !== -1;
20003
- }, vs = new WeakSet(), qr = function() {
19996
+ }, vs = new WeakSet(), Hr = function() {
20004
19997
  var e;
20005
19998
  return ((e = this.player.adverts[this.player.advertIndex]) == null ? void 0 : e.placement) === "mid-roll";
20006
19999
  }, In = new WeakSet(), to = function() {
20007
20000
  return !N(this, ji, Ki).call(this) && !N(this, $i, Tn).call(this) && !N(this, yi, Bi).call(this);
20008
20001
  }, en = new WeakSet(), Pn = function() {
20009
20002
  this.player.playbackState === "playing" ? this.player.playbackState = "paused" : this.player.playbackState = "playing";
20010
- }, bs = new WeakSet(), Hr = function() {
20003
+ }, bs = new WeakSet(), Yr = function() {
20011
20004
  this.player.playbackState === "playing" && (this.player.playbackState = "paused");
20012
20005
  }, ho = new WeakSet(), rl = function(s) {
20013
20006
  var l = s, { contentIndex: e, segmentIndex: i, segmentElement: n } = l, o = Ws(l, ["contentIndex", "segmentIndex", "segmentElement"]);
@@ -20021,7 +20014,7 @@ fs = new WeakSet(), Rr = function({ type: e }) {
20021
20014
  N(this, ji, Ki).call(this) && o >= 0 ? this.handlePlaybackEnded() : N(this, $i, Tn).call(this) && o < 0 ? (N(this, Bn, io).call(this, -1), N(this, Ut, ni).call(this, () => {
20022
20015
  var s;
20023
20016
  return ((s = i[i.length - 1]) == null ? void 0 : s.startTime) || 0.01;
20024
- }), this.player.playbackState = "playing") : N(this, In, to).call(this) && o < 0 && N(this, _s, Fr).call(this) ? (N(this, Ut, ni).call(this, () => 0), N(this, nn, An).call(this, { atTheStart: !0 })) : N(this, In, to).call(this) && o === i.length && N(this, ys, Ur).call(this) ? N(this, Ut, ni).call(this, () => this.player.duration - 0.01) : N(this, In, to).call(this) && o >= 0 && o < i.length && N(this, Ut, ni).call(this, () => i[o].startTime);
20017
+ }), this.player.playbackState = "playing") : N(this, In, to).call(this) && o < 0 && N(this, _s, Ur).call(this) ? (N(this, Ut, ni).call(this, () => 0), N(this, nn, An).call(this, { atTheStart: !0 })) : N(this, In, to).call(this) && o === i.length && N(this, ys, qr).call(this) ? N(this, Ut, ni).call(this, () => this.player.duration - 0.01) : N(this, In, to).call(this) && o >= 0 && o < i.length && N(this, Ut, ni).call(this, () => i[o].startTime);
20025
20018
  }, tn = new WeakSet(), Cn = function(e) {
20026
20019
  const i = e(this.player.contentIndex), n = i < 0 || i >= this.player.content.length;
20027
20020
  n ? (this.player.playbackState = "stopped", N(this, Ut, ni).call(this, () => 0)) : (this.player.contentIndex = i, N(this, yi, Bi).call(this) || (N(this, Ut, ni).call(this, () => 0), this.midrollPlayed = !1)), N(this, Bn, io).call(this, -1), N(this, nn, An).call(this, { atTheStart: !0 }), n || N(this, Hi, hn).call(this, { atTheStart: !0 });
@@ -20042,9 +20035,9 @@ fs = new WeakSet(), Rr = function({ type: e }) {
20042
20035
  n && (e = !0, i = !1, c = -1), N(this, yo, cl).call(this, dv({ introsOutrosIndex: c, adverts: s, advertIndex: g, content: l, contentIndex: v, currentTime: a, atTheStart: e, atTheEnd: i, errored: o, minDurationForMidroll: r, minTimeUntilEndForMidroll: u }));
20043
20036
  const _ = this.player.persistentAdImage, m = this.player.persistentIndex;
20044
20037
  this.player.persistentIndex = _v(_, m, g, s);
20045
- }, ks = new WeakSet(), Yr = function() {
20038
+ }, ks = new WeakSet(), Zr = function() {
20046
20039
  this.player.playbackState === "playing" && typeof this.nextIntroOutro != "undefined" && (N(this, Bn, io).call(this, this.nextIntroOutro), delete this.nextIntroOutro);
20047
- }, ps = new WeakSet(), Zr = function() {
20040
+ }, ps = new WeakSet(), Gr = function() {
20048
20041
  this.player.playbackState === "playing" && typeof this.nextAdvert != "undefined" && (N(this, yo, cl).call(this, this.nextAdvert), delete this.nextAdvert);
20049
20042
  }, Bn = new WeakSet(), io = function(e) {
20050
20043
  if (this.player.playbackState !== "playing" && e !== -1) {
@@ -20069,15 +20062,15 @@ fs = new WeakSet(), Rr = function({ type: e }) {
20069
20062
  const n = N(this, yi, Bi).call(this);
20070
20063
  this.player.advertIndex = e;
20071
20064
  const o = !n && N(this, yi, Bi).call(this), s = n && !N(this, yi, Bi).call(this);
20072
- o && N(this, Ss, Gr).call(this), s && N(this, ws, Kr).call(this);
20073
- }, Ss = new WeakSet(), Gr = function() {
20065
+ o && N(this, Ss, Kr).call(this), s && N(this, ws, Jr).call(this);
20066
+ }, Ss = new WeakSet(), Kr = function() {
20074
20067
  N(this, ji, Ki).call(this) || (this.prevTime = this.player.currentTime), this.prevRate = this.player.playbackRate, this.prevContent = this.player.contentIndex, this.player.currentTime = 0, this.player.playbackRate = 1;
20075
- }, ws = new WeakSet(), Kr = function() {
20068
+ }, ws = new WeakSet(), Jr = function() {
20076
20069
  this.player.playbackRate = this.prevRate || 1, this.player.contentIndex !== this.prevContent || (this.player.currentTime = this.prevTime), delete this.prevTime, delete this.prevRate, delete this.prevContent;
20077
- }, Ts = new WeakSet(), Jr = function({ contentId: e, legacyId: i, sourceId: n, sourceUrl: o }) {
20070
+ }, Ts = new WeakSet(), Xr = function({ contentId: e, legacyId: i, sourceId: n, sourceUrl: o }) {
20078
20071
  var s, l, a, r;
20079
20072
  return this.player.contentId === e || this.player.contentId === i || this.player.sourceId === n || this.player.sourceUrl === o || ((s = this.player.playlist) == null ? void 0 : s.some((u) => u.contentId === e)) || ((l = this.player.playlist) == null ? void 0 : l.some((u) => u.contentId === i)) || ((a = this.player.playlist) == null ? void 0 : a.some((u) => u.sourceId === n)) || ((r = this.player.playlist) == null ? void 0 : r.some((u) => u.sourceUrl === o));
20080
- }, Ps = new WeakSet(), Xr = function({ contentIndex: e, segmentIndex: i }) {
20073
+ }, Ps = new WeakSet(), Qr = function({ contentIndex: e, segmentIndex: i }) {
20081
20074
  var n, o;
20082
20075
  return ((n = this.player.currentSegment) == null ? void 0 : n.contentIndex) !== e || ((o = this.player.currentSegment) == null ? void 0 : o.segmentIndex) !== i;
20083
20076
  };
@@ -20186,15 +20179,15 @@ let Fa = !1;
20186
20179
  const Zv = () => {
20187
20180
  Fa || (addEventListener("mousedown", Gv), addEventListener("click", Jv), addEventListener("mousemove", Xv), Fa = !0);
20188
20181
  };
20189
- let Qr, $r;
20182
+ let $r, eu;
20190
20183
  const Gv = (t) => {
20191
- Qr = t.pageX, $r = t.pageY;
20184
+ $r = t.pageX, eu = t.pageY;
20192
20185
  }, Kv = (t) => {
20193
- const e = t.pageX - Qr, i = t.pageY - $r;
20186
+ const e = t.pageX - $r, i = t.pageY - eu;
20194
20187
  return Math.sqrt(e * e + i * i) > 5;
20195
20188
  }, Jv = (t) => {
20196
20189
  if (!t.defaultPrevented && !Kv(t) && t.button === 0)
20197
- for (const { player: e, segment: i, contentIndex: n, segmentIndex: o, segmentElement: s, precedence: l } of or(t.target))
20190
+ for (const { player: e, segment: i, contentIndex: n, segmentIndex: o, segmentElement: s, precedence: l } of sr(t.target))
20198
20191
  i && e.onEvent(ye({
20199
20192
  type: "PressedSegment",
20200
20193
  description: "The user pressed on a segment in the article.",
@@ -20207,7 +20200,7 @@ const Gv = (t) => {
20207
20200
  precedence: l
20208
20201
  }));
20209
20202
  }, Xv = (t) => {
20210
- for (const { p: e, player: i, segment: n, contentIndex: o, segmentIndex: s, segmentElement: l, precedence: a } of or(t.target))
20203
+ for (const { p: e, player: i, segment: n, contentIndex: o, segmentIndex: s, segmentElement: l, precedence: a } of sr(t.target))
20211
20204
  n && Qv(e, o, s) && i.onEvent(ye({
20212
20205
  type: "HoveredSegmentUpdated",
20213
20206
  description: "The user hovered over a different segment in the article.",