@beyondwords/player 0.1.26 → 0.1.27

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
@@ -45,7 +45,7 @@ var bi = (t, e, i) => new Promise((n, o) => {
45
45
  }, l = (a) => a.done ? n(a.value) : Promise.resolve(a.value).then(s, r);
46
46
  l((i = i.apply(t, e)).next());
47
47
  });
48
- /*! version:"0.1.26" */
48
+ /*! version:"0.1.27" */
49
49
  function ee() {
50
50
  }
51
51
  const hc = (t) => t;
@@ -593,7 +593,7 @@ class we {
593
593
  }
594
594
  const Lc = "4";
595
595
  typeof window != "undefined" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Lc);
596
- const Dc = "@beyondwords/player", Yo = "0.1.26", gi = (t, e) => {
596
+ const Dc = "@beyondwords/player", Yo = "0.1.27", gi = (t, e) => {
597
597
  t = [t].flat().join(`
598
598
  `);
599
599
  let i = `${Dc}:
@@ -8049,18 +8049,19 @@ class I0 extends we {
8049
8049
  }
8050
8050
  }
8051
8051
  const ua = (t) => !t || t != null && t.startsWith("http") ? t : `https://${t}`, V0 = (t) => {
8052
+ var o;
8052
8053
  const e = Zr(t);
8053
8054
  if (!e)
8054
8055
  return "";
8055
8056
  let i = e, n = -1;
8056
- for (const [o, s] of e.searchParams) {
8057
- const r = Zr(s);
8058
- if (!r)
8057
+ for (const [s, r] of e.searchParams) {
8058
+ const l = Zr(r);
8059
+ if (!l)
8059
8060
  continue;
8060
- const l = W0[o] || 0;
8061
- l <= n || (i = r, n = l);
8061
+ const a = W0[s] || 0;
8062
+ a <= n || (i = l, n = a);
8062
8063
  }
8063
- return (i == null ? void 0 : i.hostname) || "";
8064
+ return ((o = i == null ? void 0 : i.hostname) == null ? void 0 : o.replace(/^www./, "")) || "";
8064
8065
  }, Zr = (t) => {
8065
8066
  try {
8066
8067
  return new URL(t);