@golstats/gsc-landing 1.0.132 → 1.0.133
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/gsc-landing.js +607 -564
- package/dist/gsc-landing.umd.cjs +26 -26
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/gsc-landing.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCssVars as Je, openBlock as y, createElementBlock as b, normalizeClass as R, createElementVNode as v, createCommentVNode as x, renderSlot as It, ref as L, onMounted as tt, onUnmounted as Kt, toDisplayString as M, unref as Ie, watch as ye, createBlock as le, withCtx as Ue, Fragment as J, renderList as we, mergeProps as xs, pushScopeId as Ye, popScopeId as Ze, computed as se, normalizeStyle as U, defineComponent as Lt, inject as ke, reactive as qe, h as Fe, provide as Oe, nextTick as Hi, cloneVNode as vs, resolveComponent as Ne, createVNode as pe, createTextVNode as ge, createStaticVNode as xp, onBeforeMount as oa, Transition as Ki, withDirectives as Ds, vShow as Ns, toRef as Ep, onBeforeUnmount as zh } from "vue";
|
|
2
|
-
function
|
|
2
|
+
function Gh(s, e) {
|
|
3
3
|
return function() {
|
|
4
4
|
return s.apply(e, arguments);
|
|
5
5
|
};
|
|
@@ -11,10 +11,10 @@ const { toString: kp } = Object.prototype, { getPrototypeOf: Kr } = Object, ra =
|
|
|
11
11
|
function Rp(s) {
|
|
12
12
|
return s !== null && !Li(s) && s.constructor !== null && !Li(s.constructor) && zt(s.constructor.isBuffer) && s.constructor.isBuffer(s);
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const jh = as("ArrayBuffer");
|
|
15
15
|
function Ip(s) {
|
|
16
16
|
let e;
|
|
17
|
-
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(s) : e = s && s.buffer &&
|
|
17
|
+
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(s) : e = s && s.buffer && jh(s.buffer), e;
|
|
18
18
|
}
|
|
19
19
|
const Op = la("string"), zt = la("function"), Vh = la("number"), ca = (s) => s !== null && typeof s == "object", Fp = (s) => s === !0 || s === !1, mn = (s) => {
|
|
20
20
|
if (ra(s) !== "object")
|
|
@@ -25,7 +25,7 @@ const Op = la("string"), zt = la("function"), Vh = la("number"), ca = (s) => s !
|
|
|
25
25
|
let e;
|
|
26
26
|
return s && (typeof FormData == "function" && s instanceof FormData || zt(s.append) && ((e = ra(s)) === "formdata" || // detect form-data instance
|
|
27
27
|
e === "object" && zt(s.toString) && s.toString() === "[object FormData]"));
|
|
28
|
-
}, Up = as("URLSearchParams"), [zp,
|
|
28
|
+
}, Up = as("URLSearchParams"), [zp, Gp, jp, Vp] = ["ReadableStream", "Request", "Response", "Headers"].map(as), Hp = (s) => s.trim ? s.trim() : s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
29
29
|
function qi(s, e, { allOwnKeys: t = !1 } = {}) {
|
|
30
30
|
if (s === null || typeof s > "u")
|
|
31
31
|
return;
|
|
@@ -60,7 +60,7 @@ function Mo() {
|
|
|
60
60
|
return e;
|
|
61
61
|
}
|
|
62
62
|
const Kp = (s, e, t, { allOwnKeys: i } = {}) => (qi(e, (n, a) => {
|
|
63
|
-
t && zt(n) ? s[a] =
|
|
63
|
+
t && zt(n) ? s[a] = Gh(n, t) : s[a] = n;
|
|
64
64
|
}, { allOwnKeys: i }), s), qp = (s) => (s.charCodeAt(0) === 65279 && (s = s.slice(1)), s), Yp = (s, e, t, i) => {
|
|
65
65
|
s.prototype = Object.create(e.prototype, i), s.prototype.constructor = s, Object.defineProperty(s, "super", {
|
|
66
66
|
value: e.prototype
|
|
@@ -168,7 +168,7 @@ const l0 = (s) => {
|
|
|
168
168
|
return t(s, 0);
|
|
169
169
|
}, c0 = as("AsyncFunction"), d0 = (s) => s && (ca(s) || zt(s)) && zt(s.then) && zt(s.catch), H = {
|
|
170
170
|
isArray: mi,
|
|
171
|
-
isArrayBuffer:
|
|
171
|
+
isArrayBuffer: jh,
|
|
172
172
|
isBuffer: Rp,
|
|
173
173
|
isFormData: Np,
|
|
174
174
|
isArrayBufferView: Ip,
|
|
@@ -178,8 +178,8 @@ const l0 = (s) => {
|
|
|
178
178
|
isObject: ca,
|
|
179
179
|
isPlainObject: mn,
|
|
180
180
|
isReadableStream: zp,
|
|
181
|
-
isRequest:
|
|
182
|
-
isResponse:
|
|
181
|
+
isRequest: Gp,
|
|
182
|
+
isResponse: jp,
|
|
183
183
|
isHeaders: Vp,
|
|
184
184
|
isUndefined: Li,
|
|
185
185
|
isDate: Lp,
|
|
@@ -1007,7 +1007,7 @@ const nm = (s) => {
|
|
|
1007
1007
|
l && o.set(n, l);
|
|
1008
1008
|
}
|
|
1009
1009
|
return e;
|
|
1010
|
-
},
|
|
1010
|
+
}, G0 = typeof XMLHttpRequest < "u", j0 = G0 && function(s) {
|
|
1011
1011
|
return new Promise(function(t, i) {
|
|
1012
1012
|
const n = nm(s);
|
|
1013
1013
|
let a = n.data;
|
|
@@ -1246,7 +1246,7 @@ const Y0 = async (s) => {
|
|
|
1246
1246
|
}
|
|
1247
1247
|
}), No = {
|
|
1248
1248
|
http: u0,
|
|
1249
|
-
xhr:
|
|
1249
|
+
xhr: j0,
|
|
1250
1250
|
fetch: W0
|
|
1251
1251
|
};
|
|
1252
1252
|
H.forEach(No, (s, e) => {
|
|
@@ -1622,31 +1622,31 @@ Object.entries(zo).forEach(([s, e]) => {
|
|
|
1622
1622
|
zo[e] = s;
|
|
1623
1623
|
});
|
|
1624
1624
|
function lm(s) {
|
|
1625
|
-
const e = new Hs(s), t =
|
|
1625
|
+
const e = new Hs(s), t = Gh(Hs.prototype.request, e);
|
|
1626
1626
|
return H.extend(t, Hs.prototype, e, { allOwnKeys: !0 }), H.extend(t, e, null, { allOwnKeys: !0 }), t.create = function(n) {
|
|
1627
1627
|
return lm(qs(s, n));
|
|
1628
1628
|
}, t;
|
|
1629
1629
|
}
|
|
1630
|
-
const
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1630
|
+
const je = lm(Yi);
|
|
1631
|
+
je.Axios = Hs;
|
|
1632
|
+
je.CanceledError = fi;
|
|
1633
|
+
je.CancelToken = Wr;
|
|
1634
|
+
je.isCancel = tm;
|
|
1635
|
+
je.VERSION = rm;
|
|
1636
|
+
je.toFormData = da;
|
|
1637
|
+
je.AxiosError = Me;
|
|
1638
|
+
je.Cancel = je.CanceledError;
|
|
1639
|
+
je.all = function(e) {
|
|
1640
1640
|
return Promise.all(e);
|
|
1641
1641
|
};
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1642
|
+
je.spread = X0;
|
|
1643
|
+
je.isAxiosError = _0;
|
|
1644
|
+
je.mergeConfig = qs;
|
|
1645
|
+
je.AxiosHeaders = Dt;
|
|
1646
|
+
je.formToJSON = (s) => em(H.isHTMLForm(s) ? new FormData(s) : s);
|
|
1647
|
+
je.getAdapter = om.getAdapter;
|
|
1648
|
+
je.HttpStatusCode = zo;
|
|
1649
|
+
je.default = je;
|
|
1650
1650
|
const $0 = (s, e) => {
|
|
1651
1651
|
const t = s.__vccOpts || s;
|
|
1652
1652
|
for (const [i, n] of e)
|
|
@@ -1812,7 +1812,7 @@ function cy(s) {
|
|
|
1812
1812
|
window.removeEventListener("resize", t);
|
|
1813
1813
|
}), { elementSize: e };
|
|
1814
1814
|
}
|
|
1815
|
-
const
|
|
1815
|
+
const Go = /* @__PURE__ */ new Map([
|
|
1816
1816
|
[1, "Portero"],
|
|
1817
1817
|
[2, "Defensa Central"],
|
|
1818
1818
|
[3, "Lateral por izquierda"],
|
|
@@ -1891,7 +1891,7 @@ const jo = /* @__PURE__ */ new Map([
|
|
|
1891
1891
|
]),
|
|
1892
1892
|
v("div", gy, [
|
|
1893
1893
|
v("p", py, M(s.name), 1),
|
|
1894
|
-
v("p", yy, M(Ie(
|
|
1894
|
+
v("p", yy, M(Ie(Go).get(s.position_id)), 1)
|
|
1895
1895
|
])
|
|
1896
1896
|
]));
|
|
1897
1897
|
}
|
|
@@ -1934,7 +1934,7 @@ const jo = /* @__PURE__ */ new Map([
|
|
|
1934
1934
|
const r = await o(t.teamId, t.seasonId, t.token);
|
|
1935
1935
|
a.value = r.length, i.value = r.map((c) => ({
|
|
1936
1936
|
...c,
|
|
1937
|
-
position:
|
|
1937
|
+
position: Go.get(c.position_id)
|
|
1938
1938
|
})), t.isPlayer && t.playerId && (i.value = r.filter((c) => c.player_id !== t.playerId)), e("totalPlayers", a.value);
|
|
1939
1939
|
});
|
|
1940
1940
|
const o = async (r, c, l) => {
|
|
@@ -1957,7 +1957,7 @@ const jo = /* @__PURE__ */ new Map([
|
|
|
1957
1957
|
const c = await o(t.teamId, r, t.token);
|
|
1958
1958
|
a.value = c.length, i.value = c.map((l) => ({
|
|
1959
1959
|
...l,
|
|
1960
|
-
position:
|
|
1960
|
+
position: Go.get(l.position_id)
|
|
1961
1961
|
})), e("totalPlayers", a.value), n.value += 1;
|
|
1962
1962
|
}
|
|
1963
1963
|
), (r, c) => (y(), b("div", Ay, [
|
|
@@ -2136,22 +2136,22 @@ const { toString: Py } = Object.prototype, { getPrototypeOf: Jr } = Object, ha =
|
|
|
2136
2136
|
return s[t] || (s[t] = t.slice(8, -1).toLowerCase());
|
|
2137
2137
|
})(/* @__PURE__ */ Object.create(null)), os = (s) => (s = s.toLowerCase(), (e) => ha(e) === s), ma = (s) => (e) => typeof e === s, { isArray: gi } = Array, Pi = ma("undefined");
|
|
2138
2138
|
function By(s) {
|
|
2139
|
-
return s !== null && !Pi(s) && s.constructor !== null && !Pi(s.constructor) &&
|
|
2139
|
+
return s !== null && !Pi(s) && s.constructor !== null && !Pi(s.constructor) && Gt(s.constructor.isBuffer) && s.constructor.isBuffer(s);
|
|
2140
2140
|
}
|
|
2141
2141
|
const um = os("ArrayBuffer");
|
|
2142
2142
|
function Dy(s) {
|
|
2143
2143
|
let e;
|
|
2144
2144
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(s) : e = s && s.buffer && um(s.buffer), e;
|
|
2145
2145
|
}
|
|
2146
|
-
const Ny = ma("string"),
|
|
2146
|
+
const Ny = ma("string"), Gt = ma("function"), hm = ma("number"), fa = (s) => s !== null && typeof s == "object", Uy = (s) => s === !0 || s === !1, gn = (s) => {
|
|
2147
2147
|
if (ha(s) !== "object")
|
|
2148
2148
|
return !1;
|
|
2149
2149
|
const e = Jr(s);
|
|
2150
2150
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in s) && !(Symbol.iterator in s);
|
|
2151
|
-
}, zy = os("Date"),
|
|
2151
|
+
}, zy = os("Date"), Gy = os("File"), jy = os("Blob"), Vy = os("FileList"), Hy = (s) => fa(s) && Gt(s.pipe), Ky = (s) => {
|
|
2152
2152
|
let e;
|
|
2153
|
-
return s && (typeof FormData == "function" && s instanceof FormData ||
|
|
2154
|
-
e === "object" &&
|
|
2153
|
+
return s && (typeof FormData == "function" && s instanceof FormData || Gt(s.append) && ((e = ha(s)) === "formdata" || // detect form-data instance
|
|
2154
|
+
e === "object" && Gt(s.toString) && s.toString() === "[object FormData]"));
|
|
2155
2155
|
}, qy = os("URLSearchParams"), [Yy, Zy, Wy, Qy] = ["ReadableStream", "Request", "Response", "Headers"].map(os), Jy = (s) => s.trim ? s.trim() : s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
2156
2156
|
function Zi(s, e, { allOwnKeys: t = !1 } = {}) {
|
|
2157
2157
|
if (s === null || typeof s > "u")
|
|
@@ -2177,17 +2177,17 @@ function mm(s, e) {
|
|
|
2177
2177
|
return null;
|
|
2178
2178
|
}
|
|
2179
2179
|
const fm = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, gm = (s) => !Pi(s) && s !== fm;
|
|
2180
|
-
function
|
|
2180
|
+
function jo() {
|
|
2181
2181
|
const { caseless: s } = gm(this) && this || {}, e = {}, t = (i, n) => {
|
|
2182
2182
|
const a = s && mm(e, n) || n;
|
|
2183
|
-
gn(e[a]) && gn(i) ? e[a] =
|
|
2183
|
+
gn(e[a]) && gn(i) ? e[a] = jo(e[a], i) : gn(i) ? e[a] = jo({}, i) : gi(i) ? e[a] = i.slice() : e[a] = i;
|
|
2184
2184
|
};
|
|
2185
2185
|
for (let i = 0, n = arguments.length; i < n; i++)
|
|
2186
2186
|
arguments[i] && Zi(arguments[i], t);
|
|
2187
2187
|
return e;
|
|
2188
2188
|
}
|
|
2189
2189
|
const Xy = (s, e, t, { allOwnKeys: i } = {}) => (Zi(e, (n, a) => {
|
|
2190
|
-
t &&
|
|
2190
|
+
t && Gt(n) ? s[a] = dm(n, t) : s[a] = n;
|
|
2191
2191
|
}, { allOwnKeys: i }), s), _y = (s) => (s.charCodeAt(0) === 65279 && (s = s.slice(1)), s), $y = (s, e, t, i) => {
|
|
2192
2192
|
s.prototype = Object.create(e.prototype, i), s.prototype.constructor = s, Object.defineProperty(s, "super", {
|
|
2193
2193
|
value: e.prototype
|
|
@@ -2245,10 +2245,10 @@ const Xy = (s, e, t, { allOwnKeys: i } = {}) => (Zi(e, (n, a) => {
|
|
|
2245
2245
|
}), Object.defineProperties(s, i);
|
|
2246
2246
|
}, cv = (s) => {
|
|
2247
2247
|
pm(s, (e, t) => {
|
|
2248
|
-
if (
|
|
2248
|
+
if (Gt(s) && ["arguments", "caller", "callee"].indexOf(t) !== -1)
|
|
2249
2249
|
return !1;
|
|
2250
2250
|
const i = s[t];
|
|
2251
|
-
if (
|
|
2251
|
+
if (Gt(i)) {
|
|
2252
2252
|
if (e.enumerable = !1, "writable" in e) {
|
|
2253
2253
|
e.writable = !1;
|
|
2254
2254
|
return;
|
|
@@ -2278,7 +2278,7 @@ const Xy = (s, e, t, { allOwnKeys: i } = {}) => (Zi(e, (n, a) => {
|
|
|
2278
2278
|
return t;
|
|
2279
2279
|
};
|
|
2280
2280
|
function fv(s) {
|
|
2281
|
-
return !!(s &&
|
|
2281
|
+
return !!(s && Gt(s.append) && s[Symbol.toStringTag] === "FormData" && s[Symbol.iterator]);
|
|
2282
2282
|
}
|
|
2283
2283
|
const gv = (s) => {
|
|
2284
2284
|
const e = new Array(10), t = (i, n) => {
|
|
@@ -2297,7 +2297,7 @@ const gv = (s) => {
|
|
|
2297
2297
|
return i;
|
|
2298
2298
|
};
|
|
2299
2299
|
return t(s, 0);
|
|
2300
|
-
}, pv = os("AsyncFunction"), yv = (s) => s && (fa(s) ||
|
|
2300
|
+
}, pv = os("AsyncFunction"), yv = (s) => s && (fa(s) || Gt(s)) && Gt(s.then) && Gt(s.catch), K = {
|
|
2301
2301
|
isArray: gi,
|
|
2302
2302
|
isArrayBuffer: um,
|
|
2303
2303
|
isBuffer: By,
|
|
@@ -2314,16 +2314,16 @@ const gv = (s) => {
|
|
|
2314
2314
|
isHeaders: Qy,
|
|
2315
2315
|
isUndefined: Pi,
|
|
2316
2316
|
isDate: zy,
|
|
2317
|
-
isFile:
|
|
2318
|
-
isBlob:
|
|
2317
|
+
isFile: Gy,
|
|
2318
|
+
isBlob: jy,
|
|
2319
2319
|
isRegExp: lv,
|
|
2320
|
-
isFunction:
|
|
2320
|
+
isFunction: Gt,
|
|
2321
2321
|
isStream: Hy,
|
|
2322
2322
|
isURLSearchParams: qy,
|
|
2323
2323
|
isTypedArray: iv,
|
|
2324
2324
|
isFileList: Vy,
|
|
2325
2325
|
forEach: Zi,
|
|
2326
|
-
merge:
|
|
2326
|
+
merge: jo,
|
|
2327
2327
|
extend: Xy,
|
|
2328
2328
|
trim: Jy,
|
|
2329
2329
|
stripBOM: _y,
|
|
@@ -2772,7 +2772,7 @@ function Za(s, e, t, i, n) {
|
|
|
2772
2772
|
function zv(s) {
|
|
2773
2773
|
return s.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (e, t, i) => t.toUpperCase() + i);
|
|
2774
2774
|
}
|
|
2775
|
-
function
|
|
2775
|
+
function Gv(s, e) {
|
|
2776
2776
|
const t = K.toCamelCase(" " + e);
|
|
2777
2777
|
["get", "set", "has"].forEach((i) => {
|
|
2778
2778
|
Object.defineProperty(s, i + t, {
|
|
@@ -2896,7 +2896,7 @@ let pa = class {
|
|
|
2896
2896
|
}).accessors, i = this.prototype;
|
|
2897
2897
|
function n(a) {
|
|
2898
2898
|
const o = Ci(a);
|
|
2899
|
-
t[o] || (
|
|
2899
|
+
t[o] || (Gv(i, a), t[o] = !0);
|
|
2900
2900
|
}
|
|
2901
2901
|
return K.isArray(e) ? e.forEach(n) : n(e), this;
|
|
2902
2902
|
}
|
|
@@ -2939,7 +2939,7 @@ function Em(s, e, t) {
|
|
|
2939
2939
|
t
|
|
2940
2940
|
));
|
|
2941
2941
|
}
|
|
2942
|
-
function
|
|
2942
|
+
function jv(s) {
|
|
2943
2943
|
const e = /^([-+\w]{1,25})(:?\/\/|:)/.exec(s);
|
|
2944
2944
|
return e && e[1] || "";
|
|
2945
2945
|
}
|
|
@@ -3193,7 +3193,7 @@ const Rm = (s) => {
|
|
|
3193
3193
|
}), K.isUndefined(i.withCredentials) || (l.withCredentials = !!i.withCredentials), o && o !== "json" && (l.responseType = i.responseType), typeof i.onDownloadProgress == "function" && l.addEventListener("progress", Nn(i.onDownloadProgress, !0)), typeof i.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", Nn(i.onUploadProgress)), (i.cancelToken || i.signal) && (r = (m) => {
|
|
3194
3194
|
l && (t(!m || m.type ? new pi(null, s, l) : m), l.abort(), l = null);
|
|
3195
3195
|
}, i.cancelToken && i.cancelToken.subscribe(r), i.signal && (i.signal.aborted ? r() : i.signal.addEventListener("abort", r)));
|
|
3196
|
-
const u =
|
|
3196
|
+
const u = jv(i.url);
|
|
3197
3197
|
if (u && $t.protocols.indexOf(u) === -1) {
|
|
3198
3198
|
t(new Pe("Unsupported protocol " + u + ":", Pe.ERR_BAD_REQUEST, s));
|
|
3199
3199
|
return;
|
|
@@ -3426,7 +3426,7 @@ function Qa(s) {
|
|
|
3426
3426
|
if (s.cancelToken && s.cancelToken.throwIfRequested(), s.signal && s.signal.aborted)
|
|
3427
3427
|
throw new pi(null, s);
|
|
3428
3428
|
}
|
|
3429
|
-
function
|
|
3429
|
+
function Gc(s) {
|
|
3430
3430
|
return Qa(s), s.headers = es.from(s.headers), s.data = Wa.call(
|
|
3431
3431
|
s,
|
|
3432
3432
|
s.transformRequest
|
|
@@ -3450,7 +3450,7 @@ const Fm = "1.7.2", tl = {};
|
|
|
3450
3450
|
return typeof t === s || "a" + (e < 1 ? "n " : " ") + s;
|
|
3451
3451
|
};
|
|
3452
3452
|
});
|
|
3453
|
-
const
|
|
3453
|
+
const jc = {};
|
|
3454
3454
|
tl.transitional = function(s, e, t) {
|
|
3455
3455
|
function i(n, a) {
|
|
3456
3456
|
return "[Axios v" + Fm + "] Transitional option '" + n + "'" + a + (t ? ". " + t : "");
|
|
@@ -3461,7 +3461,7 @@ tl.transitional = function(s, e, t) {
|
|
|
3461
3461
|
i(a, " has been removed" + (e ? " in " + e : "")),
|
|
3462
3462
|
Pe.ERR_DEPRECATED
|
|
3463
3463
|
);
|
|
3464
|
-
return e && !
|
|
3464
|
+
return e && !jc[a] && (jc[a] = !0, console.warn(
|
|
3465
3465
|
i(
|
|
3466
3466
|
a,
|
|
3467
3467
|
" has been deprecated since v" + e + " and will be removed in the near future"
|
|
@@ -3556,7 +3556,7 @@ let zn = class {
|
|
|
3556
3556
|
});
|
|
3557
3557
|
let d, u = 0, m;
|
|
3558
3558
|
if (!c) {
|
|
3559
|
-
const f = [
|
|
3559
|
+
const f = [Gc.bind(this), void 0];
|
|
3560
3560
|
for (f.unshift.apply(f, r), f.push.apply(f, l), m = f.length, d = Promise.resolve(t); u < m; )
|
|
3561
3561
|
d = d.then(f[u++], f[u++]);
|
|
3562
3562
|
return d;
|
|
@@ -3573,7 +3573,7 @@ let zn = class {
|
|
|
3573
3573
|
}
|
|
3574
3574
|
}
|
|
3575
3575
|
try {
|
|
3576
|
-
d =
|
|
3576
|
+
d = Gc.call(this, h);
|
|
3577
3577
|
} catch (f) {
|
|
3578
3578
|
return Promise.reject(f);
|
|
3579
3579
|
}
|
|
@@ -4251,7 +4251,7 @@ function U1(s, e, t, i, n, a) {
|
|
|
4251
4251
|
]);
|
|
4252
4252
|
}
|
|
4253
4253
|
const z1 = /* @__PURE__ */ I1(nl, [["render", U1], ["__scopeId", "data-v-fb269a1e"]]);
|
|
4254
|
-
function
|
|
4254
|
+
function G1(s) {
|
|
4255
4255
|
const e = L({ width: 0, height: 0 });
|
|
4256
4256
|
function t() {
|
|
4257
4257
|
const i = s.value.getBoundingClientRect();
|
|
@@ -4263,7 +4263,7 @@ function j1(s) {
|
|
|
4263
4263
|
window.removeEventListener("resize", t);
|
|
4264
4264
|
}), { elementSize: e };
|
|
4265
4265
|
}
|
|
4266
|
-
const
|
|
4266
|
+
const j1 = (s, e) => {
|
|
4267
4267
|
const t = s.__vccOpts || s;
|
|
4268
4268
|
for (const [i, n] of e)
|
|
4269
4269
|
t[i] = n;
|
|
@@ -4328,7 +4328,7 @@ const G1 = (s, e) => {
|
|
|
4328
4328
|
}
|
|
4329
4329
|
},
|
|
4330
4330
|
setup() {
|
|
4331
|
-
const s = L("myDivRef"), { elementSize: e } =
|
|
4331
|
+
const s = L("myDivRef"), { elementSize: e } = G1(s);
|
|
4332
4332
|
return {
|
|
4333
4333
|
myDivRef: s,
|
|
4334
4334
|
elementSize: e
|
|
@@ -4606,7 +4606,7 @@ function nb(s, e, t, i, n, a) {
|
|
|
4606
4606
|
], 6)
|
|
4607
4607
|
]);
|
|
4608
4608
|
}
|
|
4609
|
-
const ab = /* @__PURE__ */
|
|
4609
|
+
const ab = /* @__PURE__ */ j1(V1, [["render", nb], ["__scopeId", "data-v-fc279410"]]);
|
|
4610
4610
|
/**
|
|
4611
4611
|
* Vue 3 Carousel 0.3.1
|
|
4612
4612
|
* (c) 2023
|
|
@@ -4949,10 +4949,10 @@ var hb = Lt({
|
|
|
4949
4949
|
function _() {
|
|
4950
4950
|
Z(m.value + l.itemsToScroll);
|
|
4951
4951
|
}
|
|
4952
|
-
function
|
|
4952
|
+
function j() {
|
|
4953
4953
|
Z(m.value - l.itemsToScroll);
|
|
4954
4954
|
}
|
|
4955
|
-
const $ = { slideTo: Z, next: _, prev:
|
|
4955
|
+
const $ = { slideTo: Z, next: _, prev: j };
|
|
4956
4956
|
Oe("nav", $), Oe("isSliding", z);
|
|
4957
4957
|
const oe = se(() => lb({
|
|
4958
4958
|
config: l,
|
|
@@ -4969,11 +4969,11 @@ var hb = Lt({
|
|
|
4969
4969
|
width: "100%"
|
|
4970
4970
|
};
|
|
4971
4971
|
});
|
|
4972
|
-
function
|
|
4972
|
+
function Ve() {
|
|
4973
4973
|
S(), O(), V(), I(), Q();
|
|
4974
4974
|
}
|
|
4975
4975
|
Object.keys(Qc).forEach((k) => {
|
|
4976
|
-
["modelValue"].includes(k) || ye(() => s[k],
|
|
4976
|
+
["modelValue"].includes(k) || ye(() => s[k], Ve);
|
|
4977
4977
|
}), ye(() => s.modelValue, (k) => {
|
|
4978
4978
|
k !== m.value && Z(Number(k));
|
|
4979
4979
|
}), ye(c, V), t("before-init"), S();
|
|
@@ -4982,7 +4982,7 @@ var hb = Lt({
|
|
|
4982
4982
|
slidesCount: c,
|
|
4983
4983
|
slideWidth: r,
|
|
4984
4984
|
next: _,
|
|
4985
|
-
prev:
|
|
4985
|
+
prev: j,
|
|
4986
4986
|
slideTo: Z,
|
|
4987
4987
|
currentSlide: m,
|
|
4988
4988
|
maxSlide: g,
|
|
@@ -4994,10 +4994,10 @@ var hb = Lt({
|
|
|
4994
4994
|
updateSlidesData: V,
|
|
4995
4995
|
updateSlideWidth: I,
|
|
4996
4996
|
initDefaultConfigs: S,
|
|
4997
|
-
restartCarousel:
|
|
4997
|
+
restartCarousel: Ve,
|
|
4998
4998
|
slideTo: Z,
|
|
4999
4999
|
next: _,
|
|
5000
|
-
prev:
|
|
5000
|
+
prev: j,
|
|
5001
5001
|
nav: $,
|
|
5002
5002
|
data: $e
|
|
5003
5003
|
});
|
|
@@ -5488,7 +5488,7 @@ ol.setup = _c ? (s, e) => (Xc(), _c(s, e)) : Xc;
|
|
|
5488
5488
|
const Db = (s) => (Ye("data-v-fb269a1e"), s = s(), Ze(), s), Nb = ["src"], Ub = {
|
|
5489
5489
|
key: 1,
|
|
5490
5490
|
class: "text"
|
|
5491
|
-
}, zb = ["src"],
|
|
5491
|
+
}, zb = ["src"], Gb = { class: "stats" }, jb = /* @__PURE__ */ Db(() => /* @__PURE__ */ v("img", {
|
|
5492
5492
|
class: "iconstats",
|
|
5493
5493
|
src: "https://az755631.vo.msecnd.net/todoelfut/playdes.png"
|
|
5494
5494
|
}, null, -1)), Vb = { class: "numstats" }, Hb = { class: "leyend" };
|
|
@@ -5519,8 +5519,8 @@ function Kb(s, e, t, i, n, a) {
|
|
|
5519
5519
|
class: "button-target",
|
|
5520
5520
|
onClick: e[1] || (e[1] = (...o) => a.btnClick && a.btnClick(...o))
|
|
5521
5521
|
}, [
|
|
5522
|
-
v("div",
|
|
5523
|
-
|
|
5522
|
+
v("div", Gb, [
|
|
5523
|
+
jb,
|
|
5524
5524
|
v("div", Vb, M(t.textStat), 1)
|
|
5525
5525
|
]),
|
|
5526
5526
|
v("div", Hb, M(t.textCategory), 1)
|
|
@@ -6559,7 +6559,7 @@ const LA = {
|
|
|
6559
6559
|
ref: "gscScrollableContainer",
|
|
6560
6560
|
class: "scrollable-container"
|
|
6561
6561
|
}, MA = { class: "scrollable-arrows" }, PA = ["width", "height", "viewBox"], BA = ["stroke"], DA = { class: "scrollable-wrapper" }, NA = { class: "scrollable-arrows" }, UA = ["width", "height", "viewBox"], zA = ["stroke"];
|
|
6562
|
-
function
|
|
6562
|
+
function GA(s, e, t, i, n, a) {
|
|
6563
6563
|
return y(), b("div", LA, [
|
|
6564
6564
|
t.arrows ? (y(), b("div", {
|
|
6565
6565
|
key: 0,
|
|
@@ -6613,14 +6613,14 @@ function jA(s, e, t, i, n, a) {
|
|
|
6613
6613
|
], 2)) : x("", !0)
|
|
6614
6614
|
], 512);
|
|
6615
6615
|
}
|
|
6616
|
-
const
|
|
6616
|
+
const jA = /* @__PURE__ */ FA(ll, [["render", GA], ["__scopeId", "data-v-b548a08d"]]), VA = (s, e) => {
|
|
6617
6617
|
const t = s.__vccOpts || s;
|
|
6618
6618
|
for (const [i, n] of e)
|
|
6619
6619
|
t[i] = n;
|
|
6620
6620
|
return t;
|
|
6621
6621
|
}, cl = {
|
|
6622
6622
|
components: {
|
|
6623
|
-
GSCSlider:
|
|
6623
|
+
GSCSlider: jA
|
|
6624
6624
|
},
|
|
6625
6625
|
props: {
|
|
6626
6626
|
arrow: {
|
|
@@ -7791,7 +7791,7 @@ const Uw = /* @__PURE__ */ Rw(dl, [["render", Nw], ["__scopeId", "data-v-b548a08
|
|
|
7791
7791
|
}));
|
|
7792
7792
|
}, ld = ul.setup;
|
|
7793
7793
|
ul.setup = ld ? (s, e) => (rd(), ld(s, e)) : rd;
|
|
7794
|
-
const
|
|
7794
|
+
const Gw = { ref: "myDivRef" }, jw = {
|
|
7795
7795
|
key: 0,
|
|
7796
7796
|
class: "gs-switch-container"
|
|
7797
7797
|
}, Vw = ["onClick"], Hw = {
|
|
@@ -7803,8 +7803,8 @@ const jw = { ref: "myDivRef" }, Gw = {
|
|
|
7803
7803
|
}, Yw = ["onClick"];
|
|
7804
7804
|
function Zw(s, e, t, i, n, a) {
|
|
7805
7805
|
const o = Ne("GSCSlider");
|
|
7806
|
-
return y(), b("div",
|
|
7807
|
-
t.type == 0 ? (y(), b("div",
|
|
7806
|
+
return y(), b("div", Gw, [
|
|
7807
|
+
t.type == 0 ? (y(), b("div", jw, [
|
|
7808
7808
|
v("div", {
|
|
7809
7809
|
class: "gs-switch-container__control",
|
|
7810
7810
|
style: U([a.customGrid(i.elementSize)])
|
|
@@ -7870,22 +7870,22 @@ const { toString: Ww } = Object.prototype, { getPrototypeOf: ml } = Object, va =
|
|
|
7870
7870
|
return s[t] || (s[t] = t.slice(8, -1).toLowerCase());
|
|
7871
7871
|
})(/* @__PURE__ */ Object.create(null)), rs = (s) => (s = s.toLowerCase(), (e) => va(e) === s), ba = (s) => (e) => typeof e === s, { isArray: yi } = Array, Bi = ba("undefined");
|
|
7872
7872
|
function Qw(s) {
|
|
7873
|
-
return s !== null && !Bi(s) && s.constructor !== null && !Bi(s.constructor) &&
|
|
7873
|
+
return s !== null && !Bi(s) && s.constructor !== null && !Bi(s.constructor) && jt(s.constructor.isBuffer) && s.constructor.isBuffer(s);
|
|
7874
7874
|
}
|
|
7875
7875
|
const zm = rs("ArrayBuffer");
|
|
7876
7876
|
function Jw(s) {
|
|
7877
7877
|
let e;
|
|
7878
7878
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(s) : e = s && s.buffer && zm(s.buffer), e;
|
|
7879
7879
|
}
|
|
7880
|
-
const Xw = ba("string"),
|
|
7880
|
+
const Xw = ba("string"), jt = ba("function"), Gm = ba("number"), Aa = (s) => s !== null && typeof s == "object", _w = (s) => s === !0 || s === !1, vn = (s) => {
|
|
7881
7881
|
if (va(s) !== "object")
|
|
7882
7882
|
return !1;
|
|
7883
7883
|
const e = ml(s);
|
|
7884
7884
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in s) && !(Symbol.iterator in s);
|
|
7885
|
-
}, $w = rs("Date"), eS = rs("File"), tS = rs("Blob"), sS = rs("FileList"), iS = (s) => Aa(s) &&
|
|
7885
|
+
}, $w = rs("Date"), eS = rs("File"), tS = rs("Blob"), sS = rs("FileList"), iS = (s) => Aa(s) && jt(s.pipe), nS = (s) => {
|
|
7886
7886
|
let e;
|
|
7887
|
-
return s && (typeof FormData == "function" && s instanceof FormData ||
|
|
7888
|
-
e === "object" &&
|
|
7887
|
+
return s && (typeof FormData == "function" && s instanceof FormData || jt(s.append) && ((e = va(s)) === "formdata" || // detect form-data instance
|
|
7888
|
+
e === "object" && jt(s.toString) && s.toString() === "[object FormData]"));
|
|
7889
7889
|
}, aS = rs("URLSearchParams"), [oS, rS, lS, cS] = ["ReadableStream", "Request", "Response", "Headers"].map(rs), dS = (s) => s.trim ? s.trim() : s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
7890
7890
|
function Wi(s, e, { allOwnKeys: t = !1 } = {}) {
|
|
7891
7891
|
if (s === null || typeof s > "u")
|
|
@@ -7901,7 +7901,7 @@ function Wi(s, e, { allOwnKeys: t = !1 } = {}) {
|
|
|
7901
7901
|
r = a[i], e.call(null, s[r], r, s);
|
|
7902
7902
|
}
|
|
7903
7903
|
}
|
|
7904
|
-
function
|
|
7904
|
+
function jm(s, e) {
|
|
7905
7905
|
e = e.toLowerCase();
|
|
7906
7906
|
const t = Object.keys(s);
|
|
7907
7907
|
let i = t.length, n;
|
|
@@ -7913,7 +7913,7 @@ function Gm(s, e) {
|
|
|
7913
7913
|
const Vm = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Hm = (s) => !Bi(s) && s !== Vm;
|
|
7914
7914
|
function Jo() {
|
|
7915
7915
|
const { caseless: s } = Hm(this) && this || {}, e = {}, t = (i, n) => {
|
|
7916
|
-
const a = s &&
|
|
7916
|
+
const a = s && jm(e, n) || n;
|
|
7917
7917
|
vn(e[a]) && vn(i) ? e[a] = Jo(e[a], i) : vn(i) ? e[a] = Jo({}, i) : yi(i) ? e[a] = i.slice() : e[a] = i;
|
|
7918
7918
|
};
|
|
7919
7919
|
for (let i = 0, n = arguments.length; i < n; i++)
|
|
@@ -7921,7 +7921,7 @@ function Jo() {
|
|
|
7921
7921
|
return e;
|
|
7922
7922
|
}
|
|
7923
7923
|
const uS = (s, e, t, { allOwnKeys: i } = {}) => (Wi(e, (n, a) => {
|
|
7924
|
-
t &&
|
|
7924
|
+
t && jt(n) ? s[a] = Um(n, t) : s[a] = n;
|
|
7925
7925
|
}, { allOwnKeys: i }), s), hS = (s) => (s.charCodeAt(0) === 65279 && (s = s.slice(1)), s), mS = (s, e, t, i) => {
|
|
7926
7926
|
s.prototype = Object.create(e.prototype, i), s.prototype.constructor = s, Object.defineProperty(s, "super", {
|
|
7927
7927
|
value: e.prototype
|
|
@@ -7947,7 +7947,7 @@ const uS = (s, e, t, { allOwnKeys: i } = {}) => (Wi(e, (n, a) => {
|
|
|
7947
7947
|
if (yi(s))
|
|
7948
7948
|
return s;
|
|
7949
7949
|
let e = s.length;
|
|
7950
|
-
if (!
|
|
7950
|
+
if (!Gm(e))
|
|
7951
7951
|
return null;
|
|
7952
7952
|
const t = new Array(e);
|
|
7953
7953
|
for (; e-- > 0; )
|
|
@@ -7979,10 +7979,10 @@ const uS = (s, e, t, { allOwnKeys: i } = {}) => (Wi(e, (n, a) => {
|
|
|
7979
7979
|
}), Object.defineProperties(s, i);
|
|
7980
7980
|
}, CS = (s) => {
|
|
7981
7981
|
Km(s, (e, t) => {
|
|
7982
|
-
if (
|
|
7982
|
+
if (jt(s) && ["arguments", "caller", "callee"].indexOf(t) !== -1)
|
|
7983
7983
|
return !1;
|
|
7984
7984
|
const i = s[t];
|
|
7985
|
-
if (
|
|
7985
|
+
if (jt(i)) {
|
|
7986
7986
|
if (e.enumerable = !1, "writable" in e) {
|
|
7987
7987
|
e.writable = !1;
|
|
7988
7988
|
return;
|
|
@@ -8012,7 +8012,7 @@ const uS = (s, e, t, { allOwnKeys: i } = {}) => (Wi(e, (n, a) => {
|
|
|
8012
8012
|
return t;
|
|
8013
8013
|
};
|
|
8014
8014
|
function RS(s) {
|
|
8015
|
-
return !!(s &&
|
|
8015
|
+
return !!(s && jt(s.append) && s[Symbol.toStringTag] === "FormData" && s[Symbol.iterator]);
|
|
8016
8016
|
}
|
|
8017
8017
|
const IS = (s) => {
|
|
8018
8018
|
const e = new Array(10), t = (i, n) => {
|
|
@@ -8031,14 +8031,14 @@ const IS = (s) => {
|
|
|
8031
8031
|
return i;
|
|
8032
8032
|
};
|
|
8033
8033
|
return t(s, 0);
|
|
8034
|
-
}, OS = rs("AsyncFunction"), FS = (s) => s && (Aa(s) ||
|
|
8034
|
+
}, OS = rs("AsyncFunction"), FS = (s) => s && (Aa(s) || jt(s)) && jt(s.then) && jt(s.catch), q = {
|
|
8035
8035
|
isArray: yi,
|
|
8036
8036
|
isArrayBuffer: zm,
|
|
8037
8037
|
isBuffer: Qw,
|
|
8038
8038
|
isFormData: nS,
|
|
8039
8039
|
isArrayBufferView: Jw,
|
|
8040
8040
|
isString: Xw,
|
|
8041
|
-
isNumber:
|
|
8041
|
+
isNumber: Gm,
|
|
8042
8042
|
isBoolean: _w,
|
|
8043
8043
|
isObject: Aa,
|
|
8044
8044
|
isPlainObject: vn,
|
|
@@ -8051,7 +8051,7 @@ const IS = (s) => {
|
|
|
8051
8051
|
isFile: eS,
|
|
8052
8052
|
isBlob: tS,
|
|
8053
8053
|
isRegExp: SS,
|
|
8054
|
-
isFunction:
|
|
8054
|
+
isFunction: jt,
|
|
8055
8055
|
isStream: iS,
|
|
8056
8056
|
isURLSearchParams: aS,
|
|
8057
8057
|
isTypedArray: yS,
|
|
@@ -8079,7 +8079,7 @@ const IS = (s) => {
|
|
|
8079
8079
|
toCamelCase: wS,
|
|
8080
8080
|
noop: xS,
|
|
8081
8081
|
toFiniteNumber: ES,
|
|
8082
|
-
findKey:
|
|
8082
|
+
findKey: jm,
|
|
8083
8083
|
global: Vm,
|
|
8084
8084
|
isContextDefined: Hm,
|
|
8085
8085
|
ALPHABET: qm,
|
|
@@ -8320,7 +8320,7 @@ const md = DS, Xm = {
|
|
|
8320
8320
|
silentJSONParsing: !0,
|
|
8321
8321
|
forcedJSONParsing: !0,
|
|
8322
8322
|
clarifyTimeoutError: !1
|
|
8323
|
-
}, NS = typeof URLSearchParams < "u" ? URLSearchParams : fl, US = typeof FormData < "u" ? FormData : null, zS = typeof Blob < "u" ? Blob : null,
|
|
8323
|
+
}, NS = typeof URLSearchParams < "u" ? URLSearchParams : fl, US = typeof FormData < "u" ? FormData : null, zS = typeof Blob < "u" ? Blob : null, GS = {
|
|
8324
8324
|
isBrowser: !0,
|
|
8325
8325
|
classes: {
|
|
8326
8326
|
URLSearchParams: NS,
|
|
@@ -8328,16 +8328,16 @@ const md = DS, Xm = {
|
|
|
8328
8328
|
Blob: zS
|
|
8329
8329
|
},
|
|
8330
8330
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
8331
|
-
}, gl = typeof window < "u" && typeof document < "u",
|
|
8331
|
+
}, gl = typeof window < "u" && typeof document < "u", jS = ((s) => gl && ["ReactNative", "NativeScript", "NS"].indexOf(s) < 0)(typeof navigator < "u" && navigator.product), VS = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
8332
8332
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", HS = gl && window.location.href || "http://localhost", KS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8333
8333
|
__proto__: null,
|
|
8334
8334
|
hasBrowserEnv: gl,
|
|
8335
|
-
hasStandardBrowserEnv:
|
|
8335
|
+
hasStandardBrowserEnv: jS,
|
|
8336
8336
|
hasStandardBrowserWebWorkerEnv: VS,
|
|
8337
8337
|
origin: HS
|
|
8338
8338
|
}, Symbol.toStringTag, { value: "Module" })), ts = {
|
|
8339
8339
|
...KS,
|
|
8340
|
-
...
|
|
8340
|
+
...GS
|
|
8341
8341
|
};
|
|
8342
8342
|
function qS(s, e) {
|
|
8343
8343
|
return wa(s, new ts.classes.URLSearchParams(), Object.assign({
|
|
@@ -8704,7 +8704,7 @@ function i2(s, e) {
|
|
|
8704
8704
|
n || (n = setTimeout(() => (n = null, t = Date.now(), s.apply(null, arguments)), i - (o - t)));
|
|
8705
8705
|
};
|
|
8706
8706
|
}
|
|
8707
|
-
const
|
|
8707
|
+
const Gn = (s, e, t = 3) => {
|
|
8708
8708
|
let i = 0;
|
|
8709
8709
|
const n = s2(50, 250);
|
|
8710
8710
|
return i2((a) => {
|
|
@@ -8924,7 +8924,7 @@ const sf = (s) => {
|
|
|
8924
8924
|
)), l = null;
|
|
8925
8925
|
}, n === void 0 && a.setContentType(null), "setRequestHeader" in l && q.forEach(a.toJSON(), function(m, h) {
|
|
8926
8926
|
l.setRequestHeader(h, m);
|
|
8927
|
-
}), q.isUndefined(i.withCredentials) || (l.withCredentials = !!i.withCredentials), o && o !== "json" && (l.responseType = i.responseType), typeof i.onDownloadProgress == "function" && l.addEventListener("progress",
|
|
8927
|
+
}), q.isUndefined(i.withCredentials) || (l.withCredentials = !!i.withCredentials), o && o !== "json" && (l.responseType = i.responseType), typeof i.onDownloadProgress == "function" && l.addEventListener("progress", Gn(i.onDownloadProgress, !0)), typeof i.onUploadProgress == "function" && l.upload && l.upload.addEventListener("progress", Gn(i.onUploadProgress)), (i.cancelToken || i.signal) && (r = (m) => {
|
|
8928
8928
|
l && (t(!m || m.type ? new vi(null, s, l) : m), l.abort(), l = null);
|
|
8929
8929
|
}, i.cancelToken && i.cancelToken.subscribe(r), i.signal && (i.signal.aborted ? r() : i.signal.addEventListener("abort", r)));
|
|
8930
8930
|
const u = t2(i.url);
|
|
@@ -9010,12 +9010,12 @@ const sf = (s) => {
|
|
|
9010
9010
|
return q.isReadableStream(new Response("").body);
|
|
9011
9011
|
} catch {
|
|
9012
9012
|
}
|
|
9013
|
-
})(),
|
|
9013
|
+
})(), jn = {
|
|
9014
9014
|
stream: $o && ((s) => s.body)
|
|
9015
9015
|
};
|
|
9016
9016
|
Ca && ((s) => {
|
|
9017
9017
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
9018
|
-
!
|
|
9018
|
+
!jn[e] && (jn[e] = q.isFunction(s[e]) ? (t) => t[e]() : (t, i) => {
|
|
9019
9019
|
throw new Be(`Response type '${e}' is not supported`, Be.ERR_NOT_SUPPORT, i);
|
|
9020
9020
|
});
|
|
9021
9021
|
});
|
|
@@ -9063,7 +9063,7 @@ const g2 = async (s) => {
|
|
|
9063
9063
|
}), I;
|
|
9064
9064
|
q.isFormData(i) && (I = F.headers.get("content-type")) && d.setContentType(I), F.body && (i = pd(F.body, vd, yd(
|
|
9065
9065
|
C,
|
|
9066
|
-
|
|
9066
|
+
Gn(c)
|
|
9067
9067
|
), null, _o));
|
|
9068
9068
|
}
|
|
9069
9069
|
q.isString(u) || (u = u ? "cors" : "omit"), p = new Request(e, {
|
|
@@ -9086,13 +9086,13 @@ const g2 = async (s) => {
|
|
|
9086
9086
|
S = new Response(
|
|
9087
9087
|
pd(S.body, vd, r && yd(
|
|
9088
9088
|
I,
|
|
9089
|
-
|
|
9089
|
+
Gn(r, !0)
|
|
9090
9090
|
), O && A, _o),
|
|
9091
9091
|
F
|
|
9092
9092
|
);
|
|
9093
9093
|
}
|
|
9094
9094
|
l = l || "text";
|
|
9095
|
-
let E = await
|
|
9095
|
+
let E = await jn[q.findKey(jn, l) || "text"](S, s);
|
|
9096
9096
|
return !O && A(), f && f(), await new Promise((F, I) => {
|
|
9097
9097
|
ef(F, I, {
|
|
9098
9098
|
data: E,
|
|
@@ -9861,10 +9861,10 @@ var F2 = Lt({
|
|
|
9861
9861
|
function _() {
|
|
9862
9862
|
Z(m.value + l.itemsToScroll);
|
|
9863
9863
|
}
|
|
9864
|
-
function
|
|
9864
|
+
function j() {
|
|
9865
9865
|
Z(m.value - l.itemsToScroll);
|
|
9866
9866
|
}
|
|
9867
|
-
const $ = { slideTo: Z, next: _, prev:
|
|
9867
|
+
const $ = { slideTo: Z, next: _, prev: j };
|
|
9868
9868
|
Oe("nav", $), Oe("isSliding", z);
|
|
9869
9869
|
const oe = se(() => k2({
|
|
9870
9870
|
config: l,
|
|
@@ -9881,11 +9881,11 @@ var F2 = Lt({
|
|
|
9881
9881
|
width: "100%"
|
|
9882
9882
|
};
|
|
9883
9883
|
});
|
|
9884
|
-
function
|
|
9884
|
+
function Ve() {
|
|
9885
9885
|
S(), O(), V(), I(), Q();
|
|
9886
9886
|
}
|
|
9887
9887
|
Object.keys(Cd).forEach((k) => {
|
|
9888
|
-
["modelValue"].includes(k) || ye(() => s[k],
|
|
9888
|
+
["modelValue"].includes(k) || ye(() => s[k], Ve);
|
|
9889
9889
|
}), ye(() => s.modelValue, (k) => {
|
|
9890
9890
|
k !== m.value && Z(Number(k));
|
|
9891
9891
|
}), ye(c, V), t("before-init"), S();
|
|
@@ -9894,7 +9894,7 @@ var F2 = Lt({
|
|
|
9894
9894
|
slidesCount: c,
|
|
9895
9895
|
slideWidth: r,
|
|
9896
9896
|
next: _,
|
|
9897
|
-
prev:
|
|
9897
|
+
prev: j,
|
|
9898
9898
|
slideTo: Z,
|
|
9899
9899
|
currentSlide: m,
|
|
9900
9900
|
maxSlide: g,
|
|
@@ -9906,10 +9906,10 @@ var F2 = Lt({
|
|
|
9906
9906
|
updateSlidesData: V,
|
|
9907
9907
|
updateSlideWidth: I,
|
|
9908
9908
|
initDefaultConfigs: S,
|
|
9909
|
-
restartCarousel:
|
|
9909
|
+
restartCarousel: Ve,
|
|
9910
9910
|
slideTo: Z,
|
|
9911
9911
|
next: _,
|
|
9912
|
-
prev:
|
|
9912
|
+
prev: j,
|
|
9913
9913
|
nav: $,
|
|
9914
9914
|
data: $e
|
|
9915
9915
|
});
|
|
@@ -10000,7 +10000,7 @@ const P2 = (s, e) => {
|
|
|
10000
10000
|
return t;
|
|
10001
10001
|
}, B2 = (s) => (Ye("data-v-54620d25"), s = s(), Ze(), s), D2 = { class: "gsc-carousel" }, N2 = { key: 0 }, U2 = /* @__PURE__ */ B2(() => /* @__PURE__ */ v("div", null, "no hay", -1)), z2 = [
|
|
10002
10002
|
U2
|
|
10003
|
-
],
|
|
10003
|
+
], G2 = { class: "gsc-carousel__2d__slides" }, j2 = {
|
|
10004
10004
|
width: "9",
|
|
10005
10005
|
height: "18",
|
|
10006
10006
|
viewBox: "0 0 9 18",
|
|
@@ -10200,7 +10200,7 @@ const P2 = (s, e) => {
|
|
|
10200
10200
|
key: 1,
|
|
10201
10201
|
class: R(["gsc-carousel__2d", { "main-slide-priority": s.isMainSlidePriority }])
|
|
10202
10202
|
}, [
|
|
10203
|
-
v("div",
|
|
10203
|
+
v("div", G2, [
|
|
10204
10204
|
pe(Ie(L2), {
|
|
10205
10205
|
ref_key: "carousel2d",
|
|
10206
10206
|
ref: n,
|
|
@@ -10228,7 +10228,7 @@ const P2 = (s, e) => {
|
|
|
10228
10228
|
v("div", {
|
|
10229
10229
|
class: R(["gsc-carousel__2d__slide-button", { rounded: s.areSlidesArrowsRounded }])
|
|
10230
10230
|
}, [
|
|
10231
|
-
(y(), b("svg",
|
|
10231
|
+
(y(), b("svg", j2, [
|
|
10232
10232
|
v("path", {
|
|
10233
10233
|
"fill-rule": "evenodd",
|
|
10234
10234
|
"clip-rule": "evenodd",
|
|
@@ -10688,10 +10688,10 @@ var uC = Lt({
|
|
|
10688
10688
|
function _() {
|
|
10689
10689
|
Z(m.value + l.itemsToScroll);
|
|
10690
10690
|
}
|
|
10691
|
-
function
|
|
10691
|
+
function j() {
|
|
10692
10692
|
Z(m.value - l.itemsToScroll);
|
|
10693
10693
|
}
|
|
10694
|
-
const $ = { slideTo: Z, next: _, prev:
|
|
10694
|
+
const $ = { slideTo: Z, next: _, prev: j };
|
|
10695
10695
|
Oe("nav", $), Oe("isSliding", z);
|
|
10696
10696
|
const oe = se(() => rC({
|
|
10697
10697
|
config: l,
|
|
@@ -10708,11 +10708,11 @@ var uC = Lt({
|
|
|
10708
10708
|
width: "100%"
|
|
10709
10709
|
};
|
|
10710
10710
|
});
|
|
10711
|
-
function
|
|
10711
|
+
function Ve() {
|
|
10712
10712
|
S(), O(), V(), I(), Q();
|
|
10713
10713
|
}
|
|
10714
10714
|
Object.keys(xd).forEach((k) => {
|
|
10715
|
-
["modelValue"].includes(k) || ye(() => s[k],
|
|
10715
|
+
["modelValue"].includes(k) || ye(() => s[k], Ve);
|
|
10716
10716
|
}), ye(() => s.modelValue, (k) => {
|
|
10717
10717
|
k !== m.value && Z(Number(k));
|
|
10718
10718
|
}), ye(c, V), t("before-init"), S();
|
|
@@ -10721,7 +10721,7 @@ var uC = Lt({
|
|
|
10721
10721
|
slidesCount: c,
|
|
10722
10722
|
slideWidth: r,
|
|
10723
10723
|
next: _,
|
|
10724
|
-
prev:
|
|
10724
|
+
prev: j,
|
|
10725
10725
|
slideTo: Z,
|
|
10726
10726
|
currentSlide: m,
|
|
10727
10727
|
maxSlide: g,
|
|
@@ -10733,10 +10733,10 @@ var uC = Lt({
|
|
|
10733
10733
|
updateSlidesData: V,
|
|
10734
10734
|
updateSlideWidth: I,
|
|
10735
10735
|
initDefaultConfigs: S,
|
|
10736
|
-
restartCarousel:
|
|
10736
|
+
restartCarousel: Ve,
|
|
10737
10737
|
slideTo: Z,
|
|
10738
10738
|
next: _,
|
|
10739
|
-
prev:
|
|
10739
|
+
prev: j,
|
|
10740
10740
|
nav: $,
|
|
10741
10741
|
data: $e
|
|
10742
10742
|
});
|
|
@@ -11360,7 +11360,7 @@ const SC = { class: "game-info__teams" }, CC = { class: "game-info__teams__team_
|
|
|
11360
11360
|
PLAY_RESUME: "PLAY_RESUME",
|
|
11361
11361
|
NOTIFICATION: "NOTIFICATION",
|
|
11362
11362
|
STATISTICS: "STATISTICS"
|
|
11363
|
-
},
|
|
11363
|
+
}, GC = (s) => (Ye("data-v-0d97b1a8"), s = s(), Ze(), s), jC = { class: "actions" }, VC = { class: "actions__row" }, HC = /* @__PURE__ */ GC(() => /* @__PURE__ */ v("svg", {
|
|
11364
11364
|
width: "10",
|
|
11365
11365
|
height: "12",
|
|
11366
11366
|
viewBox: "0 0 10 12",
|
|
@@ -11440,7 +11440,7 @@ const SC = { class: "game-info__teams" }, CC = { class: "game-info__teams__team_
|
|
|
11440
11440
|
function n(a) {
|
|
11441
11441
|
e("action", a);
|
|
11442
11442
|
}
|
|
11443
|
-
return (a, o) => (y(), b("div",
|
|
11443
|
+
return (a, o) => (y(), b("div", jC, [
|
|
11444
11444
|
v("div", VC, [
|
|
11445
11445
|
v("div", {
|
|
11446
11446
|
class: "actions__button rounded",
|
|
@@ -12179,8 +12179,8 @@ const SC = { class: "game-info__teams" }, CC = { class: "game-info__teams__team_
|
|
|
12179
12179
|
}, 8, ["is-pagination-visible", "items"])
|
|
12180
12180
|
]));
|
|
12181
12181
|
}
|
|
12182
|
-
},
|
|
12183
|
-
liveMinutes:
|
|
12182
|
+
}, GT = /* @__PURE__ */ ls(zT, [["__scopeId", "data-v-d93dcb09"]]), jT = "_liveMinutes_7ejvy_3", VT = "_viewButtomEvent_7ejvy_11", HT = "_containerEvents_7ejvy_39", KT = "_sepEvents_7ejvy_51", qT = "_goalsContainer_7ejvy_71", YT = "_yellowContainer_7ejvy_87", ZT = "_redContainer_7ejvy_103", WT = "_containerEventsGameHometeam_7ejvy_119", QT = "_containerEventsGameAwayteam_7ejvy_147", JT = "_image62Icon_7ejvy_173", XT = "_imgChivasIcon_7ejvy_191", _T = "_nameDesktop_7ejvy_205", $T = "_nameMobile_7ejvy_231", ex = "_homeTeam_7ejvy_255", tx = "_sbado16De_7ejvy_277", sx = "_gameDate_7ejvy_295", ix = "_sab16092023_7ejvy_303", nx = "_div_7ejvy_329", ax = "_divscore_7ejvy_347", ox = "_cst_7ejvy_367", rx = "_hour_7ejvy_385", lx = "_score_7ejvy_387", cx = "_chivasTvCanal_7ejvy_409", dx = "_gameStatus_7ejvy_433", ux = "_matchInfo_7ejvy_455", hx = "_image62Icon1_7ejvy_483", mx = "_name_7ejvy_205", fx = "_imgAtlasIcon_7ejvy_527", gx = "_name1_7ejvy_541", px = "_awayTeam_7ejvy_565", yx = "_matchCard_7ejvy_587", vx = {
|
|
12183
|
+
liveMinutes: jT,
|
|
12184
12184
|
viewButtomEvent: VT,
|
|
12185
12185
|
containerEvents: HT,
|
|
12186
12186
|
sepEvents: KT,
|
|
@@ -12669,9 +12669,9 @@ const SC = { class: "game-info__teams" }, CC = { class: "game-info__teams__team_
|
|
|
12669
12669
|
], 2)
|
|
12670
12670
|
], 2));
|
|
12671
12671
|
}
|
|
12672
|
-
},
|
|
12672
|
+
}, Gx = {
|
|
12673
12673
|
$style: vx
|
|
12674
|
-
},
|
|
12674
|
+
}, jx = /* @__PURE__ */ ls(zx, [["__cssModules", Gx]]), Vx = { class: "calendar-by-game__carousel" }, Hx = {
|
|
12675
12675
|
__name: "GSC-CalendarByGame",
|
|
12676
12676
|
props: {
|
|
12677
12677
|
showVideos: {
|
|
@@ -12874,8 +12874,8 @@ const SC = { class: "game-info__teams" }, CC = { class: "game-info__teams__team_
|
|
|
12874
12874
|
l,
|
|
12875
12875
|
(Q) => {
|
|
12876
12876
|
if (t.onlyGamesTeamId && Q.size) {
|
|
12877
|
-
const z = Array.from(Q.values()).reduce((Z, _) => (_.forEach((
|
|
12878
|
-
const $ =
|
|
12877
|
+
const z = Array.from(Q.values()).reduce((Z, _) => (_.forEach((j) => {
|
|
12878
|
+
const $ = j.find((oe) => oe.home_team.team_id === t.onlyGamesTeamId || oe.visiting_team.team_id === t.onlyGamesTeamId);
|
|
12879
12879
|
$ && Z.push($);
|
|
12880
12880
|
}), Z), []);
|
|
12881
12881
|
e("change-games-by-client-privileges", z);
|
|
@@ -12888,22 +12888,22 @@ const SC = { class: "game-info__teams" }, CC = { class: "game-info__teams__team_
|
|
|
12888
12888
|
}
|
|
12889
12889
|
function F(Q) {
|
|
12890
12890
|
const z = Object.entries(
|
|
12891
|
-
Object.entries(Q).reduce((
|
|
12892
|
-
Re.games.forEach((
|
|
12893
|
-
const $e = new Date(
|
|
12894
|
-
|
|
12891
|
+
Object.entries(Q).reduce((j, [$, oe]) => (j[$] = [], oe.forEach((Re) => {
|
|
12892
|
+
Re.games.forEach((Ve) => {
|
|
12893
|
+
const $e = new Date(Ve.date_time_utc).getTime() + 66e5;
|
|
12894
|
+
j[$].push($e);
|
|
12895
12895
|
});
|
|
12896
|
-
}),
|
|
12896
|
+
}), j), {})
|
|
12897
12897
|
);
|
|
12898
12898
|
if (!z.length)
|
|
12899
12899
|
return "1";
|
|
12900
12900
|
const Z = (/* @__PURE__ */ new Date()).getTime(), _ = z.reduce(
|
|
12901
|
-
(
|
|
12901
|
+
(j, [$, oe]) => {
|
|
12902
12902
|
let Re = null;
|
|
12903
|
-
return oe.forEach((
|
|
12904
|
-
const $e =
|
|
12903
|
+
return oe.forEach((Ve) => {
|
|
12904
|
+
const $e = Ve - Z;
|
|
12905
12905
|
$e >= 0 && (Re === null || $e < Re) && (Re = $e);
|
|
12906
|
-
}), Re && (
|
|
12906
|
+
}), Re && (j.shortestTime === null || Re < j.shortestTime) && (j.round = $, j.shortestTime = Re), j;
|
|
12907
12907
|
},
|
|
12908
12908
|
{ round: "", shortestTime: null }
|
|
12909
12909
|
);
|
|
@@ -12913,8 +12913,8 @@ const SC = { class: "game-info__teams" }, CC = { class: "game-info__teams__team_
|
|
|
12913
12913
|
let z = 1;
|
|
12914
12914
|
if (S.value.length) {
|
|
12915
12915
|
const Z = S.value[0];
|
|
12916
|
-
for (const [_,
|
|
12917
|
-
for (const $ of
|
|
12916
|
+
for (const [_, j] of Object.entries(Q))
|
|
12917
|
+
for (const $ of j)
|
|
12918
12918
|
if ($.games.find((oe) => oe.game_id === Z.game_id))
|
|
12919
12919
|
return _;
|
|
12920
12920
|
}
|
|
@@ -12930,18 +12930,18 @@ const SC = { class: "game-info__teams" }, CC = { class: "game-info__teams__team_
|
|
|
12930
12930
|
async function V(Q, z, Z = "") {
|
|
12931
12931
|
let _ = Z;
|
|
12932
12932
|
try {
|
|
12933
|
-
const
|
|
12934
|
-
t.token && (
|
|
12935
|
-
_ += `${
|
|
12933
|
+
const j = {};
|
|
12934
|
+
t.token && (j.Authorization = t.token), _ || (_ = "https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?", Q.forEach((Re, Ve) => {
|
|
12935
|
+
_ += `${Ve === 0 ? "" : "&"}seasons=${Re}`;
|
|
12936
12936
|
}));
|
|
12937
12937
|
const {
|
|
12938
12938
|
data: { data: $, teams: oe }
|
|
12939
|
-
} = await Sd.get(_, { headers:
|
|
12939
|
+
} = await Sd.get(_, { headers: j });
|
|
12940
12940
|
return { seasonsAndGames: $, seasonsAndTeams: oe };
|
|
12941
|
-
} catch (
|
|
12941
|
+
} catch (j) {
|
|
12942
12942
|
if (z > 0)
|
|
12943
12943
|
return V(Q, z - 1, _);
|
|
12944
|
-
throw new Error(
|
|
12944
|
+
throw new Error(j);
|
|
12945
12945
|
}
|
|
12946
12946
|
}
|
|
12947
12947
|
function D(Q) {
|
|
@@ -12954,21 +12954,21 @@ const SC = { class: "game-info__teams" }, CC = { class: "game-info__teams__team_
|
|
|
12954
12954
|
try {
|
|
12955
12955
|
a.value = {};
|
|
12956
12956
|
let Z = 0;
|
|
12957
|
-
const { seasonsAndGames: _, seasonsAndTeams:
|
|
12957
|
+
const { seasonsAndGames: _, seasonsAndTeams: j } = await V(
|
|
12958
12958
|
Q.map((oe) => oe.id),
|
|
12959
12959
|
3
|
|
12960
12960
|
);
|
|
12961
12961
|
if (z && D(_))
|
|
12962
12962
|
return;
|
|
12963
12963
|
_.forEach((oe) => {
|
|
12964
|
-
const { type: Re } = Q.find((
|
|
12965
|
-
oe.type = Re, oe.games.forEach((
|
|
12966
|
-
|
|
12964
|
+
const { type: Re } = Q.find((Ve) => Ve.id === oe.season_id);
|
|
12965
|
+
oe.type = Re, oe.games.forEach((Ve) => {
|
|
12966
|
+
Ve.season_id = oe.season_id;
|
|
12967
12967
|
}), Re === 0 && (Z = oe.season_id);
|
|
12968
12968
|
}), u.value = {
|
|
12969
12969
|
seasonsGames: _
|
|
12970
12970
|
};
|
|
12971
|
-
const { teams: $ } =
|
|
12971
|
+
const { teams: $ } = j.find((oe) => oe.season_id === Z);
|
|
12972
12972
|
m.value = $, e("change-teams", $), W();
|
|
12973
12973
|
} catch (Z) {
|
|
12974
12974
|
throw new Error(Z);
|
|
@@ -12979,22 +12979,22 @@ const SC = { class: "game-info__teams" }, CC = { class: "game-info__teams__team_
|
|
|
12979
12979
|
return;
|
|
12980
12980
|
S.value = [];
|
|
12981
12981
|
const Q = u.value && u.value.seasonsGames ? u.value.seasonsGames.map((z) => {
|
|
12982
|
-
const Z = z.games.reduce((_,
|
|
12983
|
-
if (t.onlyGamesTeamId && t.onlyGamesTeamId !==
|
|
12982
|
+
const Z = z.games.reduce((_, j) => {
|
|
12983
|
+
if (t.onlyGamesTeamId && t.onlyGamesTeamId !== j.home_team && t.onlyGamesTeamId !== j.visiting_team)
|
|
12984
12984
|
return _;
|
|
12985
|
-
const $ = { ...
|
|
12985
|
+
const $ = { ...j };
|
|
12986
12986
|
return $.dateTimeMillis = new Date($.date_time_utc).valueOf(), $.home_team = m.value.find(
|
|
12987
|
-
(oe) => oe.team_id ===
|
|
12987
|
+
(oe) => oe.team_id === j.home_team
|
|
12988
12988
|
), $.visiting_team = m.value.find(
|
|
12989
|
-
(oe) => oe.team_id ===
|
|
12990
|
-
), t.teamId && $.home_team.team_id !== t.teamId && $.visiting_team.team_id !== t.teamId || (_[
|
|
12991
|
-
[
|
|
12989
|
+
(oe) => oe.team_id === j.visiting_team
|
|
12990
|
+
), t.teamId && $.home_team.team_id !== t.teamId && $.visiting_team.team_id !== t.teamId || (_[j.matchday_abbreviation] ? _[j.matchday_abbreviation][j.game_status === 3 ? "canceled" : j.date] ? _[j.matchday_abbreviation][j.game_status === 3 ? "canceled" : j.date].push($) : _[j.matchday_abbreviation][j.game_status === 3 ? "canceled" : j.date] = [$] : _[j.matchday_abbreviation] = {
|
|
12991
|
+
[j.game_status === 3 ? "canceled" : j.date]: [$]
|
|
12992
12992
|
}, t.userTeamId && $.game_status === 4 && ($.home_team.team_id === t.userTeamId || $.visiting_team.team_id === t.userTeamId) && S.value.push($)), _;
|
|
12993
12993
|
}, {});
|
|
12994
|
-
for (let [_,
|
|
12995
|
-
Z[_] = Object.entries(
|
|
12994
|
+
for (let [_, j] of Object.entries(Z))
|
|
12995
|
+
Z[_] = Object.entries(j).map(([$, oe]) => ({
|
|
12996
12996
|
date: $,
|
|
12997
|
-
games: oe.sort((Re,
|
|
12997
|
+
games: oe.sort((Re, Ve) => Re.dateTimeMillis - Ve.dateTimeMillis)
|
|
12998
12998
|
})), Z[_].sort(($, oe) => $.date < oe.date ? -1 : $.date > oe.date ? 1 : 0);
|
|
12999
12999
|
return {
|
|
13000
13000
|
type: z.type,
|
|
@@ -13003,7 +13003,7 @@ const SC = { class: "game-info__teams" }, CC = { class: "game-info__teams__team_
|
|
|
13003
13003
|
};
|
|
13004
13004
|
}) : [];
|
|
13005
13005
|
Q.sort((z, Z) => z.weight - Z.weight), a.value = Q.reduce((z, Z) => {
|
|
13006
|
-
for (const [_,
|
|
13006
|
+
for (const [_, j] of Object.entries(Z.schedule))
|
|
13007
13007
|
if (Z.type === 0)
|
|
13008
13008
|
if ([1, 2].includes(t.tournamentType)) {
|
|
13009
13009
|
const $ = nC.get(
|
|
@@ -13011,30 +13011,30 @@ const SC = { class: "game-info__teams" }, CC = { class: "game-info__teams__team_
|
|
|
13011
13011
|
);
|
|
13012
13012
|
if ($) {
|
|
13013
13013
|
const oe = $.get(_);
|
|
13014
|
-
oe && (z[oe.matchDayAbbreviation] =
|
|
13014
|
+
oe && (z[oe.matchDayAbbreviation] = j);
|
|
13015
13015
|
}
|
|
13016
13016
|
} else if (f.value) {
|
|
13017
13017
|
const $ = _.replace("M", ""), oe = $;
|
|
13018
|
-
g.value ? z[iC[$] || oe] =
|
|
13018
|
+
g.value ? z[iC[$] || oe] = j : z[sC[_] || oe] = j;
|
|
13019
13019
|
} else
|
|
13020
|
-
z[Number(_.replace("M", "")).toString()] =
|
|
13020
|
+
z[Number(_.replace("M", "")).toString()] = j;
|
|
13021
13021
|
else
|
|
13022
|
-
Z.type === 2 ? _.charAt(1) == "I" ? z[`PI${Number(_.replace("PI", ""))}`] =
|
|
13022
|
+
Z.type === 2 ? _.charAt(1) == "I" ? z[`PI${Number(_.replace("PI", ""))}`] = j : z[`R${Number(_.replace("PO", ""))}`] = j : Z.type === 1 && (z[tC[_]] = j);
|
|
13023
13023
|
return z;
|
|
13024
13024
|
}, {}), l.value = /* @__PURE__ */ new Map(), C.value = Array.from(
|
|
13025
|
-
Object.entries(a.value).reduce((z, [Z, _],
|
|
13025
|
+
Object.entries(a.value).reduce((z, [Z, _], j) => {
|
|
13026
13026
|
const $ = Number(Z);
|
|
13027
13027
|
let oe = "";
|
|
13028
13028
|
Number.isNaN($) ? oe = Z : oe = $ < 10 ? `0${$}` : Z, z.set(Z, {
|
|
13029
13029
|
key: Z,
|
|
13030
13030
|
value: $,
|
|
13031
13031
|
valueText: oe,
|
|
13032
|
-
index:
|
|
13032
|
+
index: j
|
|
13033
13033
|
});
|
|
13034
13034
|
const Re = _.reduce(($e, pt) => (pt.games.forEach((yt) => {
|
|
13035
13035
|
yt.game_id === t.defaultGameId && (h.value = Z), yt.roundAbbreviation = Number.isNaN($) ? $ : `J ${$}`;
|
|
13036
|
-
}), $e = $e.concat(pt.games), $e), []),
|
|
13037
|
-
return l.value.set(Z,
|
|
13036
|
+
}), $e = $e.concat(pt.games), $e), []), Ve = ne(Re);
|
|
13037
|
+
return l.value.set(Z, Ve), z;
|
|
13038
13038
|
}, /* @__PURE__ */ new Map()).values()
|
|
13039
13039
|
);
|
|
13040
13040
|
}
|
|
@@ -13042,8 +13042,8 @@ const SC = { class: "game-info__teams" }, CC = { class: "game-info__teams__team_
|
|
|
13042
13042
|
const Z = [];
|
|
13043
13043
|
if (t.gamesPerMatchDay > 0) {
|
|
13044
13044
|
let _ = [];
|
|
13045
|
-
Q.forEach((
|
|
13046
|
-
_.push(
|
|
13045
|
+
Q.forEach((j, $) => {
|
|
13046
|
+
_.push(j), ($ + 1) % t.gamesPerMatchDay === 0 && (Z.push([..._]), _ = []);
|
|
13047
13047
|
}), _.length && Z.push([..._]);
|
|
13048
13048
|
} else
|
|
13049
13049
|
Z.push(Q);
|
|
@@ -13082,7 +13082,7 @@ const SC = { class: "game-info__teams" }, CC = { class: "game-info__teams__team_
|
|
|
13082
13082
|
e("open-modal-event", Q);
|
|
13083
13083
|
}
|
|
13084
13084
|
function re(Q) {
|
|
13085
|
-
const z = "PLAY_RESUME", Z = "PLAY_GOALS", _ = [607, 608, 12, 55, 54, 35, 14, 52, 15, 53, 466, 477],
|
|
13085
|
+
const z = "PLAY_RESUME", Z = "PLAY_GOALS", _ = [607, 608, 12, 55, 54, 35, 14, 52, 15, 53, 466, 477], j = [12, 55, "35_r", "54_r"], { game_id: $, season_id: oe } = Q.game;
|
|
13086
13086
|
let Re = {
|
|
13087
13087
|
seasonId: oe,
|
|
13088
13088
|
tournaments: [],
|
|
@@ -13121,7 +13121,7 @@ const SC = { class: "game-info__teams" }, CC = { class: "game-info__teams__team_
|
|
|
13121
13121
|
objectPlaySync: null
|
|
13122
13122
|
// sync play seconds between media players { numberPlayId, numberCurrentTime }
|
|
13123
13123
|
};
|
|
13124
|
-
Q.action === z ? (Re.categoryIds = _, Re.advancedFilter.playListTitle = "Resumen", e("openmedia", Re)) : Q.action === Z && (Re.categoryIds =
|
|
13124
|
+
Q.action === z ? (Re.categoryIds = _, Re.advancedFilter.playListTitle = "Resumen", e("openmedia", Re)) : Q.action === Z && (Re.categoryIds = j, Re.advancedFilter.playListTitle = "Goles", e("openmedia", Re));
|
|
13125
13125
|
}
|
|
13126
13126
|
async function ae() {
|
|
13127
13127
|
try {
|
|
@@ -13146,7 +13146,7 @@ const SC = { class: "game-info__teams" }, CC = { class: "game-info__teams__team_
|
|
|
13146
13146
|
class: "calendar-by-game",
|
|
13147
13147
|
style: U(p.value)
|
|
13148
13148
|
}, [
|
|
13149
|
-
s.teamId && !s.avoidTeamIdFilter ? (y(), le(
|
|
13149
|
+
s.teamId && !s.avoidTeamIdFilter ? (y(), le(GT, {
|
|
13150
13150
|
key: 0,
|
|
13151
13151
|
"full-tournament-schedule": a.value,
|
|
13152
13152
|
"team-id": s.teamId,
|
|
@@ -13186,7 +13186,7 @@ const SC = { class: "game-info__teams" }, CC = { class: "game-info__teams__team_
|
|
|
13186
13186
|
onInput: he
|
|
13187
13187
|
}, {
|
|
13188
13188
|
default: Ue(({ item: Z }) => [
|
|
13189
|
-
s.areGamesCarouselType ? (y(), le(
|
|
13189
|
+
s.areGamesCarouselType ? (y(), le(jx, {
|
|
13190
13190
|
key: 0,
|
|
13191
13191
|
is_captured: s.is_captured,
|
|
13192
13192
|
game: Z,
|
|
@@ -13611,8 +13611,8 @@ const $x = /* @__PURE__ */ Ct(Yx, [["render", _x], ["__scopeId", "data-v-b024ca0
|
|
|
13611
13611
|
class: "game-item__header__info__post-match"
|
|
13612
13612
|
}, PE = /* @__PURE__ */ xa(() => /* @__PURE__ */ v("span", { class: "text-type-2" }, "Finalizado", -1)), BE = [
|
|
13613
13613
|
PE
|
|
13614
|
-
], DE = { class: "game-item__body" }, NE = { class: "game-item__body__team__info" }, UE = ["src"], zE = { class: "game-item__body__team__info__acronym" },
|
|
13615
|
-
|
|
13614
|
+
], DE = { class: "game-item__body" }, NE = { class: "game-item__body__team__info" }, UE = ["src"], zE = { class: "game-item__body__team__info__acronym" }, GE = { class: "game-item__body__team__score" }, jE = /* @__PURE__ */ xa(() => /* @__PURE__ */ v("div", null, "Analizar partido →", -1)), VE = [
|
|
13615
|
+
jE
|
|
13616
13616
|
], HE = {
|
|
13617
13617
|
__name: "GameItem",
|
|
13618
13618
|
props: {
|
|
@@ -13674,7 +13674,7 @@ const $x = /* @__PURE__ */ Ct(Yx, [["render", _x], ["__scopeId", "data-v-b024ca0
|
|
|
13674
13674
|
}, null, 8, UE),
|
|
13675
13675
|
v("div", zE, M(l.acronym), 1)
|
|
13676
13676
|
]),
|
|
13677
|
-
v("div",
|
|
13677
|
+
v("div", GE, [
|
|
13678
13678
|
Ds(v("div", { class: "game-item__body__team__score__value" }, M(l.score || 0), 513), [
|
|
13679
13679
|
[Ns, s.game.is_live || s.game.game_status !== 4]
|
|
13680
13680
|
])
|
|
@@ -14067,10 +14067,10 @@ var $E = Lt({
|
|
|
14067
14067
|
function _() {
|
|
14068
14068
|
Z(m.value + l.itemsToScroll);
|
|
14069
14069
|
}
|
|
14070
|
-
function
|
|
14070
|
+
function j() {
|
|
14071
14071
|
Z(m.value - l.itemsToScroll);
|
|
14072
14072
|
}
|
|
14073
|
-
const $ = { slideTo: Z, next: _, prev:
|
|
14073
|
+
const $ = { slideTo: Z, next: _, prev: j };
|
|
14074
14074
|
Oe("nav", $), Oe("isSliding", z);
|
|
14075
14075
|
const oe = se(() => QE({
|
|
14076
14076
|
config: l,
|
|
@@ -14087,11 +14087,11 @@ var $E = Lt({
|
|
|
14087
14087
|
width: "100%"
|
|
14088
14088
|
};
|
|
14089
14089
|
});
|
|
14090
|
-
function
|
|
14090
|
+
function Ve() {
|
|
14091
14091
|
S(), O(), V(), I(), Q();
|
|
14092
14092
|
}
|
|
14093
14093
|
Object.keys(Id).forEach((k) => {
|
|
14094
|
-
["modelValue"].includes(k) || ye(() => s[k],
|
|
14094
|
+
["modelValue"].includes(k) || ye(() => s[k], Ve);
|
|
14095
14095
|
}), ye(() => s.modelValue, (k) => {
|
|
14096
14096
|
k !== m.value && Z(Number(k));
|
|
14097
14097
|
}), ye(c, V), t("before-init"), S();
|
|
@@ -14100,7 +14100,7 @@ var $E = Lt({
|
|
|
14100
14100
|
slidesCount: c,
|
|
14101
14101
|
slideWidth: r,
|
|
14102
14102
|
next: _,
|
|
14103
|
-
prev:
|
|
14103
|
+
prev: j,
|
|
14104
14104
|
slideTo: Z,
|
|
14105
14105
|
currentSlide: m,
|
|
14106
14106
|
maxSlide: g,
|
|
@@ -14112,10 +14112,10 @@ var $E = Lt({
|
|
|
14112
14112
|
updateSlidesData: V,
|
|
14113
14113
|
updateSlideWidth: I,
|
|
14114
14114
|
initDefaultConfigs: S,
|
|
14115
|
-
restartCarousel:
|
|
14115
|
+
restartCarousel: Ve,
|
|
14116
14116
|
slideTo: Z,
|
|
14117
14117
|
next: _,
|
|
14118
|
-
prev:
|
|
14118
|
+
prev: j,
|
|
14119
14119
|
nav: $,
|
|
14120
14120
|
data: $e
|
|
14121
14121
|
});
|
|
@@ -14536,11 +14536,11 @@ const a5 = {
|
|
|
14536
14536
|
], U5 = {
|
|
14537
14537
|
class: "quadrant-matches__body",
|
|
14538
14538
|
style: { "column-gap": "16px" }
|
|
14539
|
-
}, z5 = { class: "quadrant-matches__view-more" },
|
|
14539
|
+
}, z5 = { class: "quadrant-matches__view-more" }, G5 = /* @__PURE__ */ qt(() => /* @__PURE__ */ v("img", {
|
|
14540
14540
|
src: Al,
|
|
14541
14541
|
alt: ""
|
|
14542
|
-
}, null, -1)),
|
|
14543
|
-
|
|
14542
|
+
}, null, -1)), j5 = [
|
|
14543
|
+
G5
|
|
14544
14544
|
], V5 = { class: "quadrant-matches__body matches" }, H5 = { class: "quadrant-matches__view-more" }, K5 = /* @__PURE__ */ qt(() => /* @__PURE__ */ v("img", {
|
|
14545
14545
|
src: Al,
|
|
14546
14546
|
alt: ""
|
|
@@ -14748,7 +14748,7 @@ const a5 = {
|
|
|
14748
14748
|
v("div", {
|
|
14749
14749
|
class: "quadrant-matches__view-more__icon",
|
|
14750
14750
|
onClick: d[10] || (d[10] = (u) => l.$emit("clickCalendar"))
|
|
14751
|
-
},
|
|
14751
|
+
}, j5),
|
|
14752
14752
|
v("div", {
|
|
14753
14753
|
class: "quadrant-matches__view-more__button",
|
|
14754
14754
|
onClick: d[11] || (d[11] = (u) => l.$emit("clickCalendar"))
|
|
@@ -15857,7 +15857,7 @@ const Bk = /* @__PURE__ */ Ct(Sl, [["render", Pk], ["__scopeId", "data-v-c2ae0cf
|
|
|
15857
15857
|
async getCategoryStats(s, e, t = 0) {
|
|
15858
15858
|
try {
|
|
15859
15859
|
let a = {}, o = {}, r = [];
|
|
15860
|
-
const c =
|
|
15860
|
+
const c = je.create({
|
|
15861
15861
|
headers: {
|
|
15862
15862
|
Authorization: `${this.token}`
|
|
15863
15863
|
}
|
|
@@ -15913,7 +15913,7 @@ const Dk = (s) => (Ye("data-v-b2bc5320"), s = s(), Ze(), s), Nk = {
|
|
|
15913
15913
|
}, Uk = { class: "gsc-best__line-bar-tools" }, zk = {
|
|
15914
15914
|
key: 0,
|
|
15915
15915
|
class: "gsc-best__line-bar-tools__title"
|
|
15916
|
-
},
|
|
15916
|
+
}, Gk = /* @__PURE__ */ Dk(() => /* @__PURE__ */ v("span", null, "Los mejores ", -1)), jk = {
|
|
15917
15917
|
key: 1,
|
|
15918
15918
|
class: "gsc-best__line-bar-tools__titlefull"
|
|
15919
15919
|
}, Vk = { class: "unit-items" }, Hk = {
|
|
@@ -15934,7 +15934,7 @@ function Jk(s, e, t, i, n, a) {
|
|
|
15934
15934
|
return s.showTops ? (y(), b("div", Nk, [
|
|
15935
15935
|
v("div", Uk, [
|
|
15936
15936
|
i.elementSize.width > 900 ? (y(), b("div", zk, [
|
|
15937
|
-
|
|
15937
|
+
Gk,
|
|
15938
15938
|
s.optionSelected !== "Equipos" && t.showSwitch ? (y(), le(o, {
|
|
15939
15939
|
key: 0,
|
|
15940
15940
|
height: "20px",
|
|
@@ -15952,7 +15952,7 @@ function Jk(s, e, t, i, n, a) {
|
|
|
15952
15952
|
onChange: a.ChangeRadio
|
|
15953
15953
|
}, null, 8, ["iconA", "onChange"])) : x("", !0)
|
|
15954
15954
|
])) : x("", !0),
|
|
15955
|
-
i.elementSize.width <= 900 ? (y(), b("div",
|
|
15955
|
+
i.elementSize.width <= 900 ? (y(), b("div", jk, [
|
|
15956
15956
|
v("span", {
|
|
15957
15957
|
style: U(i.elementSize.width <= 380 ? "font-size: 15px; margin-top:0px; width:60px;" : "")
|
|
15958
15958
|
}, "Los mejores ", 4),
|
|
@@ -16460,10 +16460,10 @@ var nR = Lt({
|
|
|
16460
16460
|
function _() {
|
|
16461
16461
|
Z(m.value + l.itemsToScroll);
|
|
16462
16462
|
}
|
|
16463
|
-
function
|
|
16463
|
+
function j() {
|
|
16464
16464
|
Z(m.value - l.itemsToScroll);
|
|
16465
16465
|
}
|
|
16466
|
-
const $ = { slideTo: Z, next: _, prev:
|
|
16466
|
+
const $ = { slideTo: Z, next: _, prev: j };
|
|
16467
16467
|
Oe("nav", $), Oe("isSliding", z);
|
|
16468
16468
|
const oe = se(() => eR({
|
|
16469
16469
|
config: l,
|
|
@@ -16480,11 +16480,11 @@ var nR = Lt({
|
|
|
16480
16480
|
width: "100%"
|
|
16481
16481
|
};
|
|
16482
16482
|
});
|
|
16483
|
-
function
|
|
16483
|
+
function Ve() {
|
|
16484
16484
|
S(), O(), V(), I(), Q();
|
|
16485
16485
|
}
|
|
16486
16486
|
Object.keys(Dd).forEach((k) => {
|
|
16487
|
-
["modelValue"].includes(k) || ye(() => s[k],
|
|
16487
|
+
["modelValue"].includes(k) || ye(() => s[k], Ve);
|
|
16488
16488
|
}), ye(() => s.modelValue, (k) => {
|
|
16489
16489
|
k !== m.value && Z(Number(k));
|
|
16490
16490
|
}), ye(c, V), t("before-init"), S();
|
|
@@ -16493,7 +16493,7 @@ var nR = Lt({
|
|
|
16493
16493
|
slidesCount: c,
|
|
16494
16494
|
slideWidth: r,
|
|
16495
16495
|
next: _,
|
|
16496
|
-
prev:
|
|
16496
|
+
prev: j,
|
|
16497
16497
|
slideTo: Z,
|
|
16498
16498
|
currentSlide: m,
|
|
16499
16499
|
maxSlide: g,
|
|
@@ -16505,10 +16505,10 @@ var nR = Lt({
|
|
|
16505
16505
|
updateSlidesData: V,
|
|
16506
16506
|
updateSlideWidth: I,
|
|
16507
16507
|
initDefaultConfigs: S,
|
|
16508
|
-
restartCarousel:
|
|
16508
|
+
restartCarousel: Ve,
|
|
16509
16509
|
slideTo: Z,
|
|
16510
16510
|
next: _,
|
|
16511
|
-
prev:
|
|
16511
|
+
prev: j,
|
|
16512
16512
|
nav: $,
|
|
16513
16513
|
data: $e
|
|
16514
16514
|
});
|
|
@@ -16994,7 +16994,7 @@ function zd(s, e) {
|
|
|
16994
16994
|
}
|
|
16995
16995
|
return t;
|
|
16996
16996
|
}
|
|
16997
|
-
function
|
|
16997
|
+
function Gd(s) {
|
|
16998
16998
|
for (var e = 1; e < arguments.length; e++) {
|
|
16999
16999
|
var t = arguments[e] != null ? arguments[e] : {};
|
|
17000
17000
|
e % 2 ? zd(Object(t), !0).forEach(function(i) {
|
|
@@ -17005,7 +17005,7 @@ function jd(s) {
|
|
|
17005
17005
|
}
|
|
17006
17006
|
return s;
|
|
17007
17007
|
}
|
|
17008
|
-
var
|
|
17008
|
+
var jd = { addCSS: !0, thumbWidth: 15, watch: !0 };
|
|
17009
17009
|
function DR(s, e) {
|
|
17010
17010
|
return (function() {
|
|
17011
17011
|
return Array.from(document.querySelectorAll(e)).includes(this);
|
|
@@ -17031,19 +17031,19 @@ var Qi = function(s) {
|
|
|
17031
17031
|
return Qi(s) === String;
|
|
17032
17032
|
}, zR = function(s) {
|
|
17033
17033
|
return Qi(s) === Boolean;
|
|
17034
|
-
},
|
|
17034
|
+
}, GR = function(s) {
|
|
17035
17035
|
return Qi(s) === Function;
|
|
17036
17036
|
}, xf = function(s) {
|
|
17037
17037
|
return Array.isArray(s);
|
|
17038
17038
|
}, Ef = function(s) {
|
|
17039
17039
|
return Tl(s, NodeList);
|
|
17040
|
-
},
|
|
17040
|
+
}, jR = function(s) {
|
|
17041
17041
|
return Tl(s, Element);
|
|
17042
17042
|
}, VR = function(s) {
|
|
17043
17043
|
return Tl(s, Event);
|
|
17044
17044
|
}, HR = function(s) {
|
|
17045
17045
|
return Sf(s) || (Tf(s) || xf(s) || Ef(s)) && !s.length || Cf(s) && !Object.keys(s).length;
|
|
17046
|
-
}, Ot = { nullOrUndefined: Sf, object: Cf, number: UR, string: Tf, boolean: zR, function:
|
|
17046
|
+
}, Ot = { nullOrUndefined: Sf, object: Cf, number: UR, string: Tf, boolean: zR, function: GR, array: xf, nodeList: Ef, element: jR, event: VR, empty: HR };
|
|
17047
17047
|
function KR(s) {
|
|
17048
17048
|
var e = "".concat(s).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);
|
|
17049
17049
|
return e ? Math.max(0, (e[1] ? e[1].length : 0) - (e[2] ? +e[2] : 0)) : 0;
|
|
@@ -17057,7 +17057,7 @@ function qR(s, e) {
|
|
|
17057
17057
|
}
|
|
17058
17058
|
var YR = function() {
|
|
17059
17059
|
function s(e, t) {
|
|
17060
|
-
MR(this, s), Ot.element(e) ? this.element = e : Ot.string(e) && (this.element = document.querySelector(e)), Ot.element(this.element) && Ot.empty(this.element.rangeTouch) && (this.config =
|
|
17060
|
+
MR(this, s), Ot.element(e) ? this.element = e : Ot.string(e) && (this.element = document.querySelector(e)), Ot.element(this.element) && Ot.empty(this.element.rangeTouch) && (this.config = Gd({}, jd, {}, t), this.init());
|
|
17061
17061
|
}
|
|
17062
17062
|
return PR(s, [{ key: "init", value: function() {
|
|
17063
17063
|
s.enabled && (this.config.addCSS && (this.element.style.userSelect = "none", this.element.style.webKitUserSelect = "none", this.element.style.touchAction = "manipulation"), this.listeners(!0), this.element.rangeTouch = this);
|
|
@@ -17079,7 +17079,7 @@ var YR = function() {
|
|
|
17079
17079
|
} }], [{ key: "setup", value: function(e) {
|
|
17080
17080
|
var t = 1 < arguments.length && arguments[1] !== void 0 ? arguments[1] : {}, i = null;
|
|
17081
17081
|
if (Ot.empty(e) || Ot.string(e) ? i = Array.from(document.querySelectorAll(Ot.string(e) ? e : 'input[type="range"]')) : Ot.element(e) ? i = [e] : Ot.nodeList(e) ? i = Array.from(e) : Ot.array(e) && (i = e.filter(Ot.element)), Ot.empty(i)) return null;
|
|
17082
|
-
var n =
|
|
17082
|
+
var n = Gd({}, jd, {}, t);
|
|
17083
17083
|
if (Ot.string(e) && n.watch) {
|
|
17084
17084
|
var a = new MutationObserver(function(o) {
|
|
17085
17085
|
Array.from(o).forEach(function(r) {
|
|
@@ -17200,7 +17200,7 @@ function Ke(s, e, t) {
|
|
|
17200
17200
|
function Kn(s, e) {
|
|
17201
17201
|
return T.element(s) && s.classList.contains(e);
|
|
17202
17202
|
}
|
|
17203
|
-
function
|
|
17203
|
+
function js(s, e) {
|
|
17204
17204
|
const { prototype: t } = Element;
|
|
17205
17205
|
return (t.matches || t.webkitMatchesSelector || t.mozMatchesSelector || t.msMatchesSelector || function() {
|
|
17206
17206
|
return Array.from(document.querySelectorAll(e)).includes(this);
|
|
@@ -17211,7 +17211,7 @@ function hI(s, e) {
|
|
|
17211
17211
|
return (t.closest || function() {
|
|
17212
17212
|
let i = this;
|
|
17213
17213
|
do {
|
|
17214
|
-
if (
|
|
17214
|
+
if (js.matches(i, e)) return i;
|
|
17215
17215
|
i = i.parentElement || i.parentNode;
|
|
17216
17216
|
} while (i !== null && i.nodeType === 1);
|
|
17217
17217
|
return null;
|
|
@@ -17260,7 +17260,7 @@ function Ni(s, e, t, i = !1, n = !0, a = !1) {
|
|
|
17260
17260
|
this && this.eventListeners && i && this.eventListeners.push({ element: s, type: c, callback: t, options: r }), s[i ? "addEventListener" : "removeEventListener"](c, t, r);
|
|
17261
17261
|
});
|
|
17262
17262
|
}
|
|
17263
|
-
function
|
|
17263
|
+
function Ge(s, e = "", t, i = !0, n = !1) {
|
|
17264
17264
|
Ni.call(this, s, e, t, !0, i, n);
|
|
17265
17265
|
}
|
|
17266
17266
|
function ka(s, e = "", t, i = !0, n = !1) {
|
|
@@ -17284,7 +17284,7 @@ function fI() {
|
|
|
17284
17284
|
}), this.eventListeners = []);
|
|
17285
17285
|
}
|
|
17286
17286
|
function gI() {
|
|
17287
|
-
return new Promise((s) => this.ready ? setTimeout(s, 0) :
|
|
17287
|
+
return new Promise((s) => this.ready ? setTimeout(s, 0) : Ge.call(this, this.elements.container, "ready", s)).then(() => {
|
|
17288
17288
|
});
|
|
17289
17289
|
}
|
|
17290
17290
|
function fs(s) {
|
|
@@ -17449,7 +17449,7 @@ function Xi(s, e = "text") {
|
|
|
17449
17449
|
}
|
|
17450
17450
|
});
|
|
17451
17451
|
}
|
|
17452
|
-
function
|
|
17452
|
+
function Gf(s, e) {
|
|
17453
17453
|
if (!T.string(s)) return;
|
|
17454
17454
|
const t = "cache", i = T.string(e);
|
|
17455
17455
|
let n = !1;
|
|
@@ -17477,11 +17477,11 @@ function jf(s, e) {
|
|
|
17477
17477
|
});
|
|
17478
17478
|
}
|
|
17479
17479
|
}
|
|
17480
|
-
const
|
|
17480
|
+
const jf = (s) => Math.trunc(s / 60 / 60 % 60, 10), CI = (s) => Math.trunc(s / 60 % 60, 10), TI = (s) => Math.trunc(s % 60, 10);
|
|
17481
17481
|
function Ra(s = 0, e = !1, t = !1) {
|
|
17482
17482
|
if (!T.number(s)) return Ra(void 0, e, t);
|
|
17483
17483
|
const i = (r) => `0${r}`.slice(-2);
|
|
17484
|
-
let n =
|
|
17484
|
+
let n = jf(s);
|
|
17485
17485
|
const a = CI(s), o = TI(s);
|
|
17486
17486
|
return n = e || n > 0 ? `${n}:` : "", `${t && s > 0 ? "-" : ""}${n}${i(a)}:${i(o)}`;
|
|
17487
17487
|
}
|
|
@@ -17548,21 +17548,21 @@ const ce = { getIconUrl() {
|
|
|
17548
17548
|
const t = us(this.config.selectors.display[s], e), i = Ce("div", it(t, { class: `${t.class ? t.class : ""} ${this.config.classNames.display.time} `.trim(), "aria-label": bt.get(s, this.config), role: "timer" }), "00:00");
|
|
17549
17549
|
return this.elements.display[s] = i, i;
|
|
17550
17550
|
}, bindMenuItemShortcuts(s, e) {
|
|
17551
|
-
|
|
17551
|
+
Ge.call(this, s, "keydown keyup", (t) => {
|
|
17552
17552
|
if (![" ", "ArrowUp", "ArrowDown", "ArrowRight"].includes(t.key) || (t.preventDefault(), t.stopPropagation(), t.type === "keydown")) return;
|
|
17553
|
-
const i =
|
|
17553
|
+
const i = js(s, '[role="menuitemradio"]');
|
|
17554
17554
|
if (!i && [" ", "ArrowRight"].includes(t.key)) ce.showMenuPanel.call(this, e, !0);
|
|
17555
17555
|
else {
|
|
17556
17556
|
let n;
|
|
17557
17557
|
t.key !== " " && (t.key === "ArrowDown" || i && t.key === "ArrowRight" ? (n = s.nextElementSibling, T.element(n) || (n = s.parentNode.firstElementChild)) : (n = s.previousElementSibling, T.element(n) || (n = s.parentNode.lastElementChild)), to.call(this, n, !0));
|
|
17558
17558
|
}
|
|
17559
|
-
}, !1),
|
|
17559
|
+
}, !1), Ge.call(this, s, "keyup", (t) => {
|
|
17560
17560
|
t.key === "Return" && ce.focusFirstMenuItem.call(this, null, !0);
|
|
17561
17561
|
});
|
|
17562
17562
|
}, createMenuItem({ value: s, list: e, type: t, title: i, badge: n = null, checked: a = !1 }) {
|
|
17563
17563
|
const o = us(this.config.selectors.inputs[t]), r = Ce("button", it(o, { type: "button", role: "menuitemradio", class: `${this.config.classNames.control} ${o.class ? o.class : ""}`.trim(), "aria-checked": a, value: s })), c = Ce("span");
|
|
17564
17564
|
c.innerHTML = i, T.element(n) && c.appendChild(n), r.appendChild(c), Object.defineProperty(r, "checked", { enumerable: !0, get: () => r.getAttribute("aria-checked") === "true", set(l) {
|
|
17565
|
-
l && Array.from(r.parentNode.children).filter((d) =>
|
|
17565
|
+
l && Array.from(r.parentNode.children).filter((d) => js(d, '[role="menuitemradio"]')).forEach((d) => d.setAttribute("aria-checked", "false")), r.setAttribute("aria-checked", l ? "true" : "false");
|
|
17566
17566
|
} }), this.listeners.bind(r, "click keyup", (l) => {
|
|
17567
17567
|
if (!T.keyboardEvent(l) || l.key === " ") {
|
|
17568
17568
|
switch (l.preventDefault(), l.stopPropagation(), r.checked = !0, t) {
|
|
@@ -17579,7 +17579,7 @@ const ce = { getIconUrl() {
|
|
|
17579
17579
|
}
|
|
17580
17580
|
}, t, !1), ce.bindMenuItemShortcuts.call(this, r, t), e.appendChild(r);
|
|
17581
17581
|
}, formatTime(s = 0, e = !1) {
|
|
17582
|
-
return T.number(s) ? Ra(s,
|
|
17582
|
+
return T.number(s) ? Ra(s, jf(this.duration) > 0, e) : s;
|
|
17583
17583
|
}, updateTimeDisplay(s = null, e = 0, t = !1) {
|
|
17584
17584
|
T.element(s) && T.number(e) && (s.innerText = ce.formatTime(e, t));
|
|
17585
17585
|
}, updateVolume() {
|
|
@@ -17610,11 +17610,11 @@ const ce = { getIconUrl() {
|
|
|
17610
17610
|
}, updateRangeFill(s) {
|
|
17611
17611
|
const e = T.event(s) ? s.target : s;
|
|
17612
17612
|
if (T.element(e) && e.getAttribute("type") === "range") {
|
|
17613
|
-
if (
|
|
17613
|
+
if (js(e, this.config.selectors.inputs.seek)) {
|
|
17614
17614
|
e.setAttribute("aria-valuenow", this.currentTime);
|
|
17615
17615
|
const t = ce.formatTime(this.currentTime), i = ce.formatTime(this.duration), n = bt.get("seekLabel", this.config);
|
|
17616
17616
|
e.setAttribute("aria-valuetext", n.replace("{currentTime}", t).replace("{duration}", i));
|
|
17617
|
-
} else if (
|
|
17617
|
+
} else if (js(e, this.config.selectors.inputs.volume)) {
|
|
17618
17618
|
const t = 100 * e.value;
|
|
17619
17619
|
e.setAttribute("aria-valuenow", t), e.setAttribute("aria-valuetext", `${t.toFixed(1)}%`);
|
|
17620
17620
|
} else e.setAttribute("aria-valuenow", e.value);
|
|
@@ -17671,7 +17671,7 @@ const ce = { getIconUrl() {
|
|
|
17671
17671
|
}
|
|
17672
17672
|
return zf(e);
|
|
17673
17673
|
case "captions":
|
|
17674
|
-
return
|
|
17674
|
+
return He.getLabel.call(this);
|
|
17675
17675
|
default:
|
|
17676
17676
|
return null;
|
|
17677
17677
|
}
|
|
@@ -17693,9 +17693,9 @@ const ce = { getIconUrl() {
|
|
|
17693
17693
|
}), ce.updateSetting.call(this, e, t);
|
|
17694
17694
|
}, setCaptionsMenu() {
|
|
17695
17695
|
if (!T.element(this.elements.settings.panels.captions)) return;
|
|
17696
|
-
const s = "captions", e = this.elements.settings.panels.captions.querySelector('[role="menu"]'), t =
|
|
17696
|
+
const s = "captions", e = this.elements.settings.panels.captions.querySelector('[role="menu"]'), t = He.getTracks.call(this), i = !!t.length;
|
|
17697
17697
|
if (ce.toggleMenuButton.call(this, s, i), wn(e), ce.checkMenu.call(this), !i) return;
|
|
17698
|
-
const n = t.map((a, o) => ({ value: o, checked: this.captions.toggled && this.currentTrack === o, title:
|
|
17698
|
+
const n = t.map((a, o) => ({ value: o, checked: this.captions.toggled && this.currentTrack === o, title: He.getLabel.call(this, a), badge: a.language && ce.createBadge.call(this, a.language.toUpperCase()), list: e, type: "language" }));
|
|
17699
17699
|
n.unshift({ value: -1, checked: !this.captions.toggled, title: bt.get("disabled", this.config), list: e, type: "language" }), n.forEach(ce.createMenuItem.bind(this)), ce.updateSetting.call(this, s, e);
|
|
17700
17700
|
}, setSpeedMenu() {
|
|
17701
17701
|
if (!T.element(this.elements.settings.panels.speed)) return;
|
|
@@ -17740,7 +17740,7 @@ const ce = { getIconUrl() {
|
|
|
17740
17740
|
const a = ce.getMenuSize.call(this, t), o = (r) => {
|
|
17741
17741
|
r.target === i && ["width", "height"].includes(r.propertyName) && (i.style.width = "", i.style.height = "", ka.call(this, i, gr, o));
|
|
17742
17742
|
};
|
|
17743
|
-
|
|
17743
|
+
Ge.call(this, i, gr, o), i.style.width = `${a.width}px`, i.style.height = `${a.height}px`;
|
|
17744
17744
|
}
|
|
17745
17745
|
Us(n, !0), Us(t, !1), ce.focusFirstMenuItem.call(this, t, e);
|
|
17746
17746
|
}, setDownloadUrl() {
|
|
@@ -17774,15 +17774,15 @@ const ce = { getIconUrl() {
|
|
|
17774
17774
|
const h = Ce("div", { class: "plyr__menu__container", id: `plyr-settings-${s.id}`, hidden: "" }), f = Ce("div"), g = Ce("div", { id: `plyr-settings-${s.id}-home` }), p = Ce("div", { role: "menu" });
|
|
17775
17775
|
g.appendChild(p), f.appendChild(g), this.elements.settings.panels.home = g, this.config.settings.forEach((A) => {
|
|
17776
17776
|
const C = Ce("button", it(us(this.config.selectors.buttons.settings), { type: "button", class: `${this.config.classNames.control} ${this.config.classNames.control}--forward`, role: "menuitem", "aria-haspopup": !0, hidden: "" }));
|
|
17777
|
-
e.call(this, C, A),
|
|
17777
|
+
e.call(this, C, A), Ge.call(this, C, "click", () => {
|
|
17778
17778
|
c.call(this, A, !1);
|
|
17779
17779
|
});
|
|
17780
17780
|
const S = Ce("span", null, bt.get(A, this.config)), O = Ce("span", { class: this.config.classNames.menu.value });
|
|
17781
17781
|
O.innerHTML = s[A], S.appendChild(O), C.appendChild(S), p.appendChild(C);
|
|
17782
17782
|
const E = Ce("div", { id: `plyr-settings-${s.id}-${A}`, hidden: "" }), F = Ce("button", { type: "button", class: `${this.config.classNames.control} ${this.config.classNames.control}--back` });
|
|
17783
|
-
F.appendChild(Ce("span", { "aria-hidden": !0 }, bt.get(A, this.config))), F.appendChild(Ce("span", { class: this.config.classNames.hidden }, bt.get("menuBack", this.config))),
|
|
17783
|
+
F.appendChild(Ce("span", { "aria-hidden": !0 }, bt.get(A, this.config))), F.appendChild(Ce("span", { class: this.config.classNames.hidden }, bt.get("menuBack", this.config))), Ge.call(this, E, "keydown", (I) => {
|
|
17784
17784
|
I.key === "ArrowLeft" && (I.preventDefault(), I.stopPropagation(), c.call(this, "home", !0));
|
|
17785
|
-
}, !1),
|
|
17785
|
+
}, !1), Ge.call(this, F, "click", () => {
|
|
17786
17786
|
c.call(this, "home", !1);
|
|
17787
17787
|
}), E.appendChild(F), E.appendChild(Ce("div", { role: "menu" })), f.appendChild(E), this.elements.settings.buttons[A] = C, this.elements.settings.panels[A] = E;
|
|
17788
17788
|
}), h.appendChild(f), m.appendChild(h), l.appendChild(m), this.elements.settings.popup = h, this.elements.settings.menu = m;
|
|
@@ -17798,14 +17798,14 @@ const ce = { getIconUrl() {
|
|
|
17798
17798
|
}, inject() {
|
|
17799
17799
|
if (this.config.loadSprite) {
|
|
17800
17800
|
const n = ce.getIconUrl.call(this);
|
|
17801
|
-
n.cors &&
|
|
17801
|
+
n.cors && Gf(n.url, "sprite-plyr");
|
|
17802
17802
|
}
|
|
17803
17803
|
this.id = Math.floor(1e4 * Math.random());
|
|
17804
17804
|
let s = null;
|
|
17805
17805
|
this.elements.controls = null;
|
|
17806
17806
|
const e = { id: this.id, seektime: this.config.seekTime, title: this.config.title };
|
|
17807
17807
|
let t = !0;
|
|
17808
|
-
T.function(this.config.controls) && (this.config.controls = this.config.controls.call(this, e)), this.config.controls || (this.config.controls = []), T.element(this.config.controls) || T.string(this.config.controls) ? s = this.config.controls : (s = ce.create.call(this, { id: this.id, seektime: this.config.seekTime, speed: this.speed, quality: this.quality, captions:
|
|
17808
|
+
T.function(this.config.controls) && (this.config.controls = this.config.controls.call(this, e)), this.config.controls || (this.config.controls = []), T.element(this.config.controls) || T.string(this.config.controls) ? s = this.config.controls : (s = ce.create.call(this, { id: this.id, seektime: this.config.seekTime, speed: this.speed, quality: this.quality, captions: He.getLabel.call(this) }), t = !1);
|
|
17809
17809
|
let i;
|
|
17810
17810
|
if (t && T.string(this.config.controls) && (s = ((n) => {
|
|
17811
17811
|
let a = n;
|
|
@@ -17871,7 +17871,7 @@ function Hf(s) {
|
|
|
17871
17871
|
e.set(t, i);
|
|
17872
17872
|
}), e;
|
|
17873
17873
|
}
|
|
17874
|
-
const
|
|
17874
|
+
const He = { setup() {
|
|
17875
17875
|
if (!this.supported.ui) return;
|
|
17876
17876
|
if (!this.isVideo || this.isYouTube || this.isHTML5 && !nt.textTracks) return void (T.array(this.config.controls) && this.config.controls.includes("settings") && this.config.settings.includes("captions") && ce.setCaptionsMenu.call(this));
|
|
17877
17877
|
if (T.element(this.elements.captions) || (this.elements.captions = Ce("div", us(this.config.selectors.captions)), this.elements.captions.setAttribute("dir", "auto"), uI(this.elements.captions, this.elements.wrapper)), At.isIE && window.URL) {
|
|
@@ -17891,21 +17891,21 @@ const Ve = { setup() {
|
|
|
17891
17891
|
let t = this.storage.get("captions");
|
|
17892
17892
|
if (T.boolean(t) || ({ active: t } = this.config.captions), Object.assign(this.captions, { toggled: !1, active: t, language: e, languages: s }), this.isHTML5) {
|
|
17893
17893
|
const i = this.config.captions.update ? "addtrack removetrack" : "removetrack";
|
|
17894
|
-
|
|
17894
|
+
Ge.call(this, this.media.textTracks, i, He.update.bind(this));
|
|
17895
17895
|
}
|
|
17896
|
-
setTimeout(
|
|
17896
|
+
setTimeout(He.update.bind(this), 0);
|
|
17897
17897
|
}, update() {
|
|
17898
|
-
const s =
|
|
17898
|
+
const s = He.getTracks.call(this, !0), { active: e, language: t, meta: i, currentTrackNode: n } = this.captions, a = !!s.find((o) => o.language === t);
|
|
17899
17899
|
this.isHTML5 && this.isVideo && s.filter((o) => !i.get(o)).forEach((o) => {
|
|
17900
|
-
this.debug.log("Track added", o), i.set(o, { default: o.mode === "showing" }), o.mode === "showing" && (o.mode = "hidden"),
|
|
17901
|
-
}), (a && this.language !== t || !s.includes(n)) && (
|
|
17900
|
+
this.debug.log("Track added", o), i.set(o, { default: o.mode === "showing" }), o.mode === "showing" && (o.mode = "hidden"), Ge.call(this, o, "cuechange", () => He.updateCues.call(this));
|
|
17901
|
+
}), (a && this.language !== t || !s.includes(n)) && (He.setLanguage.call(this, t), He.toggle.call(this, e && a)), this.elements && Ke(this.elements.container, this.config.classNames.captions.enabled, !T.empty(s)), T.array(this.config.controls) && this.config.controls.includes("settings") && this.config.settings.includes("captions") && ce.setCaptionsMenu.call(this);
|
|
17902
17902
|
}, toggle(s, e = !0) {
|
|
17903
17903
|
if (!this.supported.ui) return;
|
|
17904
17904
|
const { toggled: t } = this.captions, i = this.config.classNames.captions.active, n = T.nullOrUndefined(s) ? !t : s;
|
|
17905
17905
|
if (n !== t) {
|
|
17906
17906
|
if (e || (this.captions.active = n, this.storage.set({ captions: n })), !this.language && n && !e) {
|
|
17907
|
-
const a =
|
|
17908
|
-
return this.captions.language = o.language, void
|
|
17907
|
+
const a = He.getTracks.call(this), o = He.findTrack.call(this, [this.captions.language, ...this.captions.languages], !0);
|
|
17908
|
+
return this.captions.language = o.language, void He.set.call(this, a.indexOf(o));
|
|
17909
17909
|
}
|
|
17910
17910
|
this.elements.buttons.captions && (this.elements.buttons.captions.pressed = n), Ke(this.elements.container, i, n), this.captions.toggled = n, ce.updateSetting.call(this, "captions"), Ee.call(this, this.media, n ? "captionsenabled" : "captionsdisabled");
|
|
17911
17911
|
}
|
|
@@ -17913,41 +17913,41 @@ const Ve = { setup() {
|
|
|
17913
17913
|
n && this.captions.toggled && (this.captions.currentTrackNode.mode = "hidden");
|
|
17914
17914
|
});
|
|
17915
17915
|
}, set(s, e = !0) {
|
|
17916
|
-
const t =
|
|
17916
|
+
const t = He.getTracks.call(this);
|
|
17917
17917
|
if (s !== -1) if (T.number(s)) if (s in t) {
|
|
17918
17918
|
if (this.captions.currentTrack !== s) {
|
|
17919
17919
|
this.captions.currentTrack = s;
|
|
17920
17920
|
const i = t[s], { language: n } = i || {};
|
|
17921
17921
|
this.captions.currentTrackNode = i, ce.updateSetting.call(this, "captions"), e || (this.captions.language = n, this.storage.set({ language: n })), this.isVimeo && this.embed.enableTextTrack(n), Ee.call(this, this.media, "languagechange");
|
|
17922
17922
|
}
|
|
17923
|
-
|
|
17923
|
+
He.toggle.call(this, !0, e), this.isHTML5 && this.isVideo && He.updateCues.call(this);
|
|
17924
17924
|
} else this.debug.warn("Track not found", s);
|
|
17925
17925
|
else this.debug.warn("Invalid caption argument", s);
|
|
17926
|
-
else
|
|
17926
|
+
else He.toggle.call(this, !1, e);
|
|
17927
17927
|
}, setLanguage(s, e = !0) {
|
|
17928
17928
|
if (!T.string(s)) return void this.debug.warn("Invalid language argument", s);
|
|
17929
17929
|
const t = s.toLowerCase();
|
|
17930
17930
|
this.captions.language = t;
|
|
17931
|
-
const i =
|
|
17932
|
-
|
|
17931
|
+
const i = He.getTracks.call(this), n = He.findTrack.call(this, [t]);
|
|
17932
|
+
He.set.call(this, i.indexOf(n), e);
|
|
17933
17933
|
}, getTracks(s = !1) {
|
|
17934
17934
|
return Array.from((this.media || {}).textTracks || []).filter((e) => !this.isHTML5 || s || this.captions.meta.has(e)).filter((e) => ["captions", "subtitles"].includes(e.kind));
|
|
17935
17935
|
}, findTrack(s, e = !1) {
|
|
17936
|
-
const t =
|
|
17936
|
+
const t = He.getTracks.call(this), i = (o) => Number((this.captions.meta.get(o) || {}).default), n = Array.from(t).sort((o, r) => i(r) - i(o));
|
|
17937
17937
|
let a;
|
|
17938
17938
|
return s.every((o) => (a = n.find((r) => r.language === o), !a)), a || (e ? n[0] : void 0);
|
|
17939
17939
|
}, getCurrentTrack() {
|
|
17940
|
-
return
|
|
17940
|
+
return He.getTracks.call(this)[this.currentTrack];
|
|
17941
17941
|
}, getLabel(s) {
|
|
17942
17942
|
let e = s;
|
|
17943
|
-
return !T.track(e) && nt.textTracks && this.captions.toggled && (e =
|
|
17943
|
+
return !T.track(e) && nt.textTracks && this.captions.toggled && (e = He.getCurrentTrack.call(this)), T.track(e) ? T.empty(e.label) ? T.empty(e.language) ? bt.get("enabled", this.config) : s.language.toUpperCase() : e.label : bt.get("disabled", this.config);
|
|
17944
17944
|
}, updateCues(s) {
|
|
17945
17945
|
if (!this.supported.ui) return;
|
|
17946
17946
|
if (!T.element(this.elements.captions)) return void this.debug.warn("No captions element to render to");
|
|
17947
17947
|
if (!T.nullOrUndefined(s) && !Array.isArray(s)) return void this.debug.warn("updateCues: Invalid input", s);
|
|
17948
17948
|
let e = s;
|
|
17949
17949
|
if (!e) {
|
|
17950
|
-
const i =
|
|
17950
|
+
const i = He.getCurrentTrack.call(this);
|
|
17951
17951
|
e = Array.from((i || {}).activeCues || []).map((n) => n.getCueAsHTML()).map(SI);
|
|
17952
17952
|
}
|
|
17953
17953
|
const t = e.map((i) => i.trim()).join(`
|
|
@@ -18017,11 +18017,11 @@ class Wt {
|
|
|
18017
18017
|
} else (document.cancelFullScreen || document.exitFullscreen).call(document);
|
|
18018
18018
|
}), de(this, "toggle", () => {
|
|
18019
18019
|
this.active ? this.exit() : this.enter();
|
|
18020
|
-
}), this.player = e, this.prefix = Wt.prefix, this.property = Wt.property, this.scrollPosition = { x: 0, y: 0 }, this.forceFallback = e.config.fullscreen.fallback === "force", this.player.elements.fullscreen = e.config.fullscreen.container && hI(this.player.elements.container, e.config.fullscreen.container),
|
|
18020
|
+
}), this.player = e, this.prefix = Wt.prefix, this.property = Wt.property, this.scrollPosition = { x: 0, y: 0 }, this.forceFallback = e.config.fullscreen.fallback === "force", this.player.elements.fullscreen = e.config.fullscreen.container && hI(this.player.elements.container, e.config.fullscreen.container), Ge.call(this.player, document, this.prefix === "ms" ? "MSFullscreenChange" : `${this.prefix}fullscreenchange`, () => {
|
|
18021
18021
|
this.onChange();
|
|
18022
|
-
}),
|
|
18022
|
+
}), Ge.call(this.player, this.player.elements.container, "dblclick", (t) => {
|
|
18023
18023
|
T.element(this.player.elements.controls) && this.player.elements.controls.contains(t.target) || this.player.listeners.proxy(t, this.toggle, "fullscreen");
|
|
18024
|
-
}),
|
|
18024
|
+
}), Ge.call(this, this.player.elements.container, "keydown", (t) => this.trapFocus(t)), this.update();
|
|
18025
18025
|
}
|
|
18026
18026
|
static get nativeSupported() {
|
|
18027
18027
|
return !!(document.fullscreenEnabled || document.webkitFullscreenEnabled || document.mozFullScreenEnabled || document.msFullscreenEnabled);
|
|
@@ -18064,7 +18064,7 @@ const Xe = { addStyleHook() {
|
|
|
18064
18064
|
s && this.isHTML5 ? this.media.setAttribute("controls", "") : this.media.removeAttribute("controls");
|
|
18065
18065
|
}, build() {
|
|
18066
18066
|
if (this.listeners.media(), !this.supported.ui) return this.debug.warn(`Basic support only for ${this.provider} ${this.type}`), void Xe.toggleNativeControls.call(this, !0);
|
|
18067
|
-
T.element(this.elements.controls) || (ce.inject.call(this), this.listeners.controls()), Xe.toggleNativeControls.call(this), this.isHTML5 &&
|
|
18067
|
+
T.element(this.elements.controls) || (ce.inject.call(this), this.listeners.controls()), Xe.toggleNativeControls.call(this), this.isHTML5 && He.setup.call(this), this.volume = null, this.muted = null, this.loop = null, this.quality = null, this.speed = null, ce.updateVolume.call(this), ce.timeUpdate.call(this), ce.durationUpdate.call(this), Xe.checkPlaying.call(this), Ke(this.elements.container, this.config.classNames.pip.supported, nt.pip && this.isHTML5 && this.isVideo), Ke(this.elements.container, this.config.classNames.airplay.supported, nt.airplay && this.isHTML5), Ke(this.elements.container, this.config.classNames.isTouch, this.touch), this.ready = !0, setTimeout(() => {
|
|
18068
18068
|
Ee.call(this, this.media, "ready");
|
|
18069
18069
|
}, 0), Xe.setTitle.call(this), this.poster && Xe.setPoster.call(this, this.poster, !1).catch(() => {
|
|
18070
18070
|
}), this.config.duration && ce.durationUpdate.call(this), this.config.mediaMetadata && ce.setMediaMetadata.call(this);
|
|
@@ -18115,7 +18115,7 @@ class kI {
|
|
|
18115
18115
|
i.config.keyboard.global && Ni.call(i, window, "keydown keyup", this.handleKey, t, !1), Ni.call(i, document.body, "click", this.toggleMenu, t), El.call(i, document.body, "touchstart", this.firstTouch);
|
|
18116
18116
|
}), de(this, "container", () => {
|
|
18117
18117
|
const { player: t } = this, { config: i, elements: n, timers: a } = t;
|
|
18118
|
-
!i.keyboard.global && i.keyboard.focused &&
|
|
18118
|
+
!i.keyboard.global && i.keyboard.focused && Ge.call(t, n.container, "keydown keyup", this.handleKey, !1), Ge.call(t, n.container, "mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen", (c) => {
|
|
18119
18119
|
const { controls: l } = n;
|
|
18120
18120
|
l && c.type === "enterfullscreen" && (l.pressed = !1, l.hover = !1);
|
|
18121
18121
|
let d = 0;
|
|
@@ -18130,18 +18130,18 @@ class kI {
|
|
|
18130
18130
|
}, r = () => {
|
|
18131
18131
|
clearTimeout(a.resized), a.resized = setTimeout(o, 50);
|
|
18132
18132
|
};
|
|
18133
|
-
|
|
18133
|
+
Ge.call(t, n.container, "enterfullscreen exitfullscreen", (c) => {
|
|
18134
18134
|
const { target: l } = t.fullscreen;
|
|
18135
|
-
l === n.container && (!t.isEmbed && T.empty(t.config.ratio) || (o(), (c.type === "enterfullscreen" ?
|
|
18135
|
+
l === n.container && (!t.isEmbed && T.empty(t.config.ratio) || (o(), (c.type === "enterfullscreen" ? Ge : ka).call(t, window, "resize", r)));
|
|
18136
18136
|
});
|
|
18137
18137
|
}), de(this, "media", () => {
|
|
18138
18138
|
const { player: t } = this, { elements: i } = t;
|
|
18139
|
-
if (
|
|
18139
|
+
if (Ge.call(t, t.media, "timeupdate seeking seeked", (a) => ce.timeUpdate.call(t, a)), Ge.call(t, t.media, "durationchange loadeddata loadedmetadata", (a) => ce.durationUpdate.call(t, a)), Ge.call(t, t.media, "ended", () => {
|
|
18140
18140
|
t.isHTML5 && t.isVideo && t.config.resetOnEnd && (t.restart(), t.pause());
|
|
18141
|
-
}),
|
|
18141
|
+
}), Ge.call(t, t.media, "progress playing seeking seeked", (a) => ce.updateProgress.call(t, a)), Ge.call(t, t.media, "volumechange", (a) => ce.updateVolume.call(t, a)), Ge.call(t, t.media, "playing play pause ended emptied timeupdate", (a) => Xe.checkPlaying.call(t, a)), Ge.call(t, t.media, "waiting canplay seeked playing", (a) => Xe.checkLoading.call(t, a)), t.supported.ui && t.config.clickToPlay && !t.isAudio) {
|
|
18142
18142
|
const a = ht.call(t, `.${t.config.classNames.video}`);
|
|
18143
18143
|
if (!T.element(a)) return;
|
|
18144
|
-
|
|
18144
|
+
Ge.call(t, i.container, "click", (o) => {
|
|
18145
18145
|
([i.container, a].includes(o.target) || a.contains(o.target)) && (t.touch && t.config.hideControls || (t.ended ? (this.proxy(o, t.restart, "restart"), this.proxy(o, () => {
|
|
18146
18146
|
fs(t.play());
|
|
18147
18147
|
}, "play")) : this.proxy(o, () => {
|
|
@@ -18149,19 +18149,19 @@ class kI {
|
|
|
18149
18149
|
}, "play")));
|
|
18150
18150
|
});
|
|
18151
18151
|
}
|
|
18152
|
-
t.supported.ui && t.config.disableContextMenu &&
|
|
18152
|
+
t.supported.ui && t.config.disableContextMenu && Ge.call(t, i.wrapper, "contextmenu", (a) => {
|
|
18153
18153
|
a.preventDefault();
|
|
18154
|
-
}, !1),
|
|
18154
|
+
}, !1), Ge.call(t, t.media, "volumechange", () => {
|
|
18155
18155
|
t.storage.set({ volume: t.volume, muted: t.muted });
|
|
18156
|
-
}),
|
|
18156
|
+
}), Ge.call(t, t.media, "ratechange", () => {
|
|
18157
18157
|
ce.updateSetting.call(t, "speed"), t.storage.set({ speed: t.speed });
|
|
18158
|
-
}),
|
|
18158
|
+
}), Ge.call(t, t.media, "qualitychange", (a) => {
|
|
18159
18159
|
ce.updateSetting.call(t, "quality", null, a.detail.quality);
|
|
18160
|
-
}),
|
|
18160
|
+
}), Ge.call(t, t.media, "ready qualitychange", () => {
|
|
18161
18161
|
ce.setDownloadUrl.call(t);
|
|
18162
18162
|
});
|
|
18163
18163
|
const n = t.config.events.concat(["keyup", "keydown"]).join(" ");
|
|
18164
|
-
|
|
18164
|
+
Ge.call(t, t.media, n, (a) => {
|
|
18165
18165
|
let { detail: o = {} } = a;
|
|
18166
18166
|
a.type === "error" && (o = t.media.error), Ee.call(t, i.container, a.type, !0, o);
|
|
18167
18167
|
});
|
|
@@ -18171,7 +18171,7 @@ class kI {
|
|
|
18171
18171
|
T.function(o) && (r = o.call(a, t)), r !== !1 && T.function(i) && i.call(a, t);
|
|
18172
18172
|
}), de(this, "bind", (t, i, n, a, o = !0) => {
|
|
18173
18173
|
const { player: r } = this, c = r.config.listeners[a], l = T.function(c);
|
|
18174
|
-
|
|
18174
|
+
Ge.call(r, t, i, (d) => this.proxy(d, n, a), o && !l);
|
|
18175
18175
|
}), de(this, "controls", () => {
|
|
18176
18176
|
const { player: t } = this, { elements: i } = t, n = At.isIE ? "change" : "input";
|
|
18177
18177
|
if (i.buttons.play && Array.from(i.buttons.play).forEach((a) => {
|
|
@@ -18261,7 +18261,7 @@ class kI {
|
|
|
18261
18261
|
const h = document.activeElement;
|
|
18262
18262
|
if (T.element(h)) {
|
|
18263
18263
|
const { editable: f } = t.config.selectors, { seek: g } = i.inputs;
|
|
18264
|
-
if (h !== g &&
|
|
18264
|
+
if (h !== g && js(h, f) || e.key === " " && js(h, 'button, [role^="menuitem"]')) return;
|
|
18265
18265
|
}
|
|
18266
18266
|
switch ([" ", "ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "c", "f", "k", "l", "m"].includes(n) && (e.preventDefault(), e.stopPropagation()), n) {
|
|
18267
18267
|
case "0":
|
|
@@ -18477,10 +18477,10 @@ const br = { setup() {
|
|
|
18477
18477
|
}), s.embed.getDuration().then((C) => {
|
|
18478
18478
|
s.media.duration = C, Ee.call(s, s.media, "durationchange");
|
|
18479
18479
|
}), s.embed.getTextTracks().then((C) => {
|
|
18480
|
-
s.media.textTracks = C,
|
|
18480
|
+
s.media.textTracks = C, He.setup.call(s);
|
|
18481
18481
|
}), s.embed.on("cuechange", ({ cues: C = [] }) => {
|
|
18482
18482
|
const S = C.map((O) => wI(O.text));
|
|
18483
|
-
|
|
18483
|
+
He.updateCues.call(s, S);
|
|
18484
18484
|
}), s.embed.on("loaded", () => {
|
|
18485
18485
|
s.embed.getPaused().then((C) => {
|
|
18486
18486
|
xi.call(s, !C), C || Ee.call(s, s.media, "playing");
|
|
@@ -18984,7 +18984,7 @@ class li {
|
|
|
18984
18984
|
}
|
|
18985
18985
|
return !1;
|
|
18986
18986
|
}), de(this, "on", (r, c) => {
|
|
18987
|
-
|
|
18987
|
+
Ge.call(this, this.elements.container, r, c);
|
|
18988
18988
|
}), de(this, "once", (r, c) => {
|
|
18989
18989
|
El.call(this, this.elements.container, r, c);
|
|
18990
18990
|
}), de(this, "off", (r, c) => {
|
|
@@ -19029,7 +19029,7 @@ class li {
|
|
|
19029
19029
|
default:
|
|
19030
19030
|
return void this.debug.error("Setup failed: unsupported type");
|
|
19031
19031
|
}
|
|
19032
|
-
this.supported = nt.check(this.type, this.provider), this.supported.api ? (this.eventListeners = [], this.listeners = new kI(this), this.storage = new Ui(this), this.media.plyr = this, T.element(this.elements.container) || (this.elements.container = Ce("div"), Pf(this.media, this.elements.container)), Xe.migrateStyles.call(this), Xe.addStyleHook.call(this), qf.setup.call(this), this.config.debug &&
|
|
19032
|
+
this.supported = nt.check(this.type, this.provider), this.supported.api ? (this.eventListeners = [], this.listeners = new kI(this), this.storage = new Ui(this), this.media.plyr = this, T.element(this.elements.container) || (this.elements.container = Ce("div"), Pf(this.media, this.elements.container)), Xe.migrateStyles.call(this), Xe.addStyleHook.call(this), qf.setup.call(this), this.config.debug && Ge.call(this, this.elements.container, this.config.events.join(" "), (r) => {
|
|
19033
19033
|
this.debug.log(`event: ${r.type}`);
|
|
19034
19034
|
}), this.fullscreen = new Wt(this), (this.isHTML5 || this.isEmbed && !this.supported.ui) && Xe.build.call(this), this.listeners.container(), this.listeners.global(), this.config.ads.enabled && (this.ads = new PI(this)), this.isHTML5 && this.config.autoplay && this.once("canplay", () => fs(this.play())), this.lastSeekTime = 0, this.config.previewThumbnails.enabled && (this.previewThumbnails = new Ar(this))) : this.debug.error("Setup failed: no support");
|
|
19035
19035
|
}
|
|
@@ -19171,20 +19171,20 @@ class li {
|
|
|
19171
19171
|
return !!this.config.autoplay;
|
|
19172
19172
|
}
|
|
19173
19173
|
toggleCaptions(e) {
|
|
19174
|
-
|
|
19174
|
+
He.toggle.call(this, e, !1);
|
|
19175
19175
|
}
|
|
19176
19176
|
set currentTrack(e) {
|
|
19177
|
-
|
|
19177
|
+
He.set.call(this, e, !1), He.setup.call(this);
|
|
19178
19178
|
}
|
|
19179
19179
|
get currentTrack() {
|
|
19180
19180
|
const { toggled: e, currentTrack: t } = this.captions;
|
|
19181
19181
|
return e ? t : -1;
|
|
19182
19182
|
}
|
|
19183
19183
|
set language(e) {
|
|
19184
|
-
|
|
19184
|
+
He.setLanguage.call(this, e, !1);
|
|
19185
19185
|
}
|
|
19186
19186
|
get language() {
|
|
19187
|
-
return (
|
|
19187
|
+
return (He.getCurrentTrack.call(this) || {}).language;
|
|
19188
19188
|
}
|
|
19189
19189
|
set pip(e) {
|
|
19190
19190
|
if (!nt.pip) return;
|
|
@@ -19201,7 +19201,7 @@ class li {
|
|
|
19201
19201
|
return nt.check(e, t);
|
|
19202
19202
|
}
|
|
19203
19203
|
static loadSprite(e, t) {
|
|
19204
|
-
return
|
|
19204
|
+
return Gf(e, t);
|
|
19205
19205
|
}
|
|
19206
19206
|
static setup(e, t = {}) {
|
|
19207
19207
|
let i = null;
|
|
@@ -19215,7 +19215,7 @@ const DI = {
|
|
|
19215
19215
|
}, NI = { class: "carousel-video-player__play-info-portrait__date" }, UI = { class: "carousel-video-player__play-info-portrait__game" }, zI = {
|
|
19216
19216
|
key: 2,
|
|
19217
19217
|
class: "carousel-video-player__play-info__data"
|
|
19218
|
-
},
|
|
19218
|
+
}, GI = { class: "video-container" }, jI = ["id"], VI = {
|
|
19219
19219
|
__name: "CarouselVideoPlayer",
|
|
19220
19220
|
props: {
|
|
19221
19221
|
play: {
|
|
@@ -19314,13 +19314,13 @@ const DI = {
|
|
|
19314
19314
|
], 2), [
|
|
19315
19315
|
[Ns, n.value]
|
|
19316
19316
|
]),
|
|
19317
|
-
v("div",
|
|
19317
|
+
v("div", GI, [
|
|
19318
19318
|
v("video", {
|
|
19319
19319
|
id: a.value,
|
|
19320
19320
|
controls: "",
|
|
19321
19321
|
preload: "auto",
|
|
19322
19322
|
"data-setup": "{}"
|
|
19323
|
-
}, null, 8,
|
|
19323
|
+
}, null, 8, jI)
|
|
19324
19324
|
])
|
|
19325
19325
|
], 32));
|
|
19326
19326
|
}
|
|
@@ -20258,7 +20258,7 @@ function NO(s, e, t, i, n, a) {
|
|
|
20258
20258
|
])) : x("", !0)
|
|
20259
20259
|
]);
|
|
20260
20260
|
}
|
|
20261
|
-
const UO = /* @__PURE__ */ RO(Fl, [["render", NO], ["__scopeId", "data-v-fb269a1e"]]), zO = { class: "gsc-dropdown__main-container__item-selected" },
|
|
20261
|
+
const UO = /* @__PURE__ */ RO(Fl, [["render", NO], ["__scopeId", "data-v-fb269a1e"]]), zO = { class: "gsc-dropdown__main-container__item-selected" }, GO = ["height", "width"], jO = ["stroke"], VO = { class: "gsc-dropdown__items-container" }, HO = ["onClick"], KO = {
|
|
20262
20262
|
key: 0,
|
|
20263
20263
|
class: "gsc-dropdown__items-footer"
|
|
20264
20264
|
}, qO = {
|
|
@@ -20499,8 +20499,8 @@ const UO = /* @__PURE__ */ RO(Fl, [["render", NO], ["__scopeId", "data-v-fb269a1
|
|
|
20499
20499
|
v("path", {
|
|
20500
20500
|
d: "M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",
|
|
20501
20501
|
stroke: s.arrowColor
|
|
20502
|
-
}, null, 8,
|
|
20503
|
-
], 8,
|
|
20502
|
+
}, null, 8, jO)
|
|
20503
|
+
], 8, GO))
|
|
20504
20504
|
], 6)
|
|
20505
20505
|
], 4),
|
|
20506
20506
|
pe(Ki, null, {
|
|
@@ -21051,11 +21051,11 @@ const au = z4, og = {
|
|
|
21051
21051
|
silentJSONParsing: !0,
|
|
21052
21052
|
forcedJSONParsing: !0,
|
|
21053
21053
|
clarifyTimeoutError: !1
|
|
21054
|
-
},
|
|
21054
|
+
}, G4 = typeof URLSearchParams < "u" ? URLSearchParams : Ml, j4 = typeof FormData < "u" ? FormData : null, V4 = typeof Blob < "u" ? Blob : null, H4 = {
|
|
21055
21055
|
isBrowser: !0,
|
|
21056
21056
|
classes: {
|
|
21057
|
-
URLSearchParams:
|
|
21058
|
-
FormData:
|
|
21057
|
+
URLSearchParams: G4,
|
|
21058
|
+
FormData: j4,
|
|
21059
21059
|
Blob: V4
|
|
21060
21060
|
},
|
|
21061
21061
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
@@ -22408,7 +22408,7 @@ const N6 = /* @__PURE__ */ k6(zl, [["render", D6], ["__scopeId", "data-v-b548a08
|
|
|
22408
22408
|
return t;
|
|
22409
22409
|
};
|
|
22410
22410
|
let yu = null;
|
|
22411
|
-
const
|
|
22411
|
+
const Gl = {
|
|
22412
22412
|
components: {},
|
|
22413
22413
|
props: {
|
|
22414
22414
|
titleCategory: {
|
|
@@ -22536,8 +22536,8 @@ const jl = {
|
|
|
22536
22536
|
"20ca4c40": s.colorBackgroundHome,
|
|
22537
22537
|
"20c73a4f": s.colorBackgroundAway
|
|
22538
22538
|
}));
|
|
22539
|
-
}, bu =
|
|
22540
|
-
|
|
22539
|
+
}, bu = Gl.setup;
|
|
22540
|
+
Gl.setup = bu ? (s, e) => (vu(), bu(s, e)) : vu;
|
|
22541
22541
|
const Ba = (s) => (Ye("data-v-b97cae0c"), s = s(), Ze(), s), U6 = /* @__PURE__ */ Ba(() => /* @__PURE__ */ v("svg", {
|
|
22542
22542
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22543
22543
|
width: "24",
|
|
@@ -22551,11 +22551,11 @@ const Ba = (s) => (Ye("data-v-b97cae0c"), s = s(), Ze(), s), U6 = /* @__PURE__ *
|
|
|
22551
22551
|
})
|
|
22552
22552
|
], -1)), z6 = [
|
|
22553
22553
|
U6
|
|
22554
|
-
],
|
|
22554
|
+
], G6 = /* @__PURE__ */ Ba(() => /* @__PURE__ */ v("img", {
|
|
22555
22555
|
src: "https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",
|
|
22556
22556
|
alt: "",
|
|
22557
22557
|
class: "paper-texture position-image"
|
|
22558
|
-
}, null, -1)),
|
|
22558
|
+
}, null, -1)), j6 = ["src"], V6 = /* @__PURE__ */ Ba(() => /* @__PURE__ */ v("div", { class: "gradient-back position-image" }, null, -1)), H6 = /* @__PURE__ */ Ba(() => /* @__PURE__ */ v("img", {
|
|
22559
22559
|
src: "https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",
|
|
22560
22560
|
alt: "",
|
|
22561
22561
|
class: "halftone-texture position-image"
|
|
@@ -22587,12 +22587,12 @@ function Z6(s, e, t, i, n, a) {
|
|
|
22587
22587
|
class: R(a.seasoncontainer)
|
|
22588
22588
|
}, M(t.seasonName), 3)) : x("", !0)
|
|
22589
22589
|
], 2)) : x("", !0),
|
|
22590
|
-
|
|
22590
|
+
G6,
|
|
22591
22591
|
v("img", {
|
|
22592
22592
|
src: t.background,
|
|
22593
22593
|
alt: "",
|
|
22594
22594
|
class: "bkg-blackwhite position-image"
|
|
22595
|
-
}, null, 8,
|
|
22595
|
+
}, null, 8, j6),
|
|
22596
22596
|
v("div", {
|
|
22597
22597
|
class: R([a.baselogo, "position-image"])
|
|
22598
22598
|
}, null, 2),
|
|
@@ -22621,9 +22621,9 @@ function Z6(s, e, t, i, n, a) {
|
|
|
22621
22621
|
])
|
|
22622
22622
|
], 2);
|
|
22623
22623
|
}
|
|
22624
|
-
const W6 = /* @__PURE__ */ Js(
|
|
22624
|
+
const W6 = /* @__PURE__ */ Js(Gl, [["render", Z6], ["__scopeId", "data-v-b97cae0c"]]);
|
|
22625
22625
|
let Au = null;
|
|
22626
|
-
const
|
|
22626
|
+
const jl = {
|
|
22627
22627
|
components: {},
|
|
22628
22628
|
props: {
|
|
22629
22629
|
colorBackgroundHome: {
|
|
@@ -22733,8 +22733,8 @@ const Gl = {
|
|
|
22733
22733
|
d99ace42: s.colorBackgroundHome,
|
|
22734
22734
|
"7ba58dc9": s.colorBackgroundHome + "36"
|
|
22735
22735
|
}));
|
|
22736
|
-
}, Su =
|
|
22737
|
-
|
|
22736
|
+
}, Su = jl.setup;
|
|
22737
|
+
jl.setup = Su ? (s, e) => (wu(), Su(s, e)) : wu;
|
|
22738
22738
|
const $i = (s) => (Ye("data-v-e678b93e"), s = s(), Ze(), s), Q6 = /* @__PURE__ */ $i(() => /* @__PURE__ */ v("svg", {
|
|
22739
22739
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22740
22740
|
width: "24",
|
|
@@ -22808,7 +22808,7 @@ function lF(s, e, t, i, n, a) {
|
|
|
22808
22808
|
rF
|
|
22809
22809
|
], 2);
|
|
22810
22810
|
}
|
|
22811
|
-
const cF = /* @__PURE__ */ Js(
|
|
22811
|
+
const cF = /* @__PURE__ */ Js(jl, [["render", lF], ["__scopeId", "data-v-e678b93e"]]);
|
|
22812
22812
|
let Cu = null;
|
|
22813
22813
|
const Vl = {
|
|
22814
22814
|
components: {},
|
|
@@ -23359,7 +23359,7 @@ const Kl = {
|
|
|
23359
23359
|
}));
|
|
23360
23360
|
}, Fu = Kl.setup;
|
|
23361
23361
|
Kl.setup = Fu ? (s, e) => (Ou(), Fu(s, e)) : Ou;
|
|
23362
|
-
const Ua = (s) => (Ye("data-v-b1d20f0e"), s = s(), Ze(), s),
|
|
23362
|
+
const Ua = (s) => (Ye("data-v-b1d20f0e"), s = s(), Ze(), s), GF = ["width", "src"], jF = /* @__PURE__ */ Ua(() => /* @__PURE__ */ v("img", {
|
|
23363
23363
|
src: "https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",
|
|
23364
23364
|
alt: "",
|
|
23365
23365
|
class: "paper-texture position-image"
|
|
@@ -23393,9 +23393,9 @@ function eL(s, e, t, i, n, a) {
|
|
|
23393
23393
|
v("img", {
|
|
23394
23394
|
width: t.playStatus == 1 ? 60 : 40,
|
|
23395
23395
|
src: t.playStatus == 1 ? "http://golstatsimages.blob.core.windows.net/images-library/icn-live@2x.png" : "http://golstatsimages.blob.core.windows.net/images-library/icn-info@2x.png"
|
|
23396
|
-
}, null, 8,
|
|
23396
|
+
}, null, 8, GF)
|
|
23397
23397
|
], 2)) : x("", !0),
|
|
23398
|
-
|
|
23398
|
+
jF,
|
|
23399
23399
|
t.showVideos ? (y(), b("div", {
|
|
23400
23400
|
key: 1,
|
|
23401
23401
|
class: R(a.playbutton),
|
|
@@ -25444,7 +25444,7 @@ const EL = {
|
|
|
25444
25444
|
},
|
|
25445
25445
|
methods: {
|
|
25446
25446
|
async getDataGoals() {
|
|
25447
|
-
const s =
|
|
25447
|
+
const s = je.create({
|
|
25448
25448
|
headers: { Authorization: `${this.token}` }
|
|
25449
25449
|
});
|
|
25450
25450
|
try {
|
|
@@ -25845,29 +25845,29 @@ function lt() {
|
|
|
25845
25845
|
}
|
|
25846
25846
|
const me = Number.isFinite || function(s) {
|
|
25847
25847
|
return typeof s == "number" && isFinite(s);
|
|
25848
|
-
},
|
|
25849
|
-
return typeof s == "number" && Math.abs(s) <=
|
|
25850
|
-
},
|
|
25848
|
+
}, GL = Number.isSafeInteger || function(s) {
|
|
25849
|
+
return typeof s == "number" && Math.abs(s) <= jL;
|
|
25850
|
+
}, jL = Number.MAX_SAFE_INTEGER || 9007199254740991;
|
|
25851
25851
|
let w = /* @__PURE__ */ function(s) {
|
|
25852
25852
|
return s.MEDIA_ATTACHING = "hlsMediaAttaching", s.MEDIA_ATTACHED = "hlsMediaAttached", s.MEDIA_DETACHING = "hlsMediaDetaching", s.MEDIA_DETACHED = "hlsMediaDetached", s.BUFFER_RESET = "hlsBufferReset", s.BUFFER_CODECS = "hlsBufferCodecs", s.BUFFER_CREATED = "hlsBufferCreated", s.BUFFER_APPENDING = "hlsBufferAppending", s.BUFFER_APPENDED = "hlsBufferAppended", s.BUFFER_EOS = "hlsBufferEos", s.BUFFER_FLUSHING = "hlsBufferFlushing", s.BUFFER_FLUSHED = "hlsBufferFlushed", s.MANIFEST_LOADING = "hlsManifestLoading", s.MANIFEST_LOADED = "hlsManifestLoaded", s.MANIFEST_PARSED = "hlsManifestParsed", s.LEVEL_SWITCHING = "hlsLevelSwitching", s.LEVEL_SWITCHED = "hlsLevelSwitched", s.LEVEL_LOADING = "hlsLevelLoading", s.LEVEL_LOADED = "hlsLevelLoaded", s.LEVEL_UPDATED = "hlsLevelUpdated", s.LEVEL_PTS_UPDATED = "hlsLevelPtsUpdated", s.LEVELS_UPDATED = "hlsLevelsUpdated", s.AUDIO_TRACKS_UPDATED = "hlsAudioTracksUpdated", s.AUDIO_TRACK_SWITCHING = "hlsAudioTrackSwitching", s.AUDIO_TRACK_SWITCHED = "hlsAudioTrackSwitched", s.AUDIO_TRACK_LOADING = "hlsAudioTrackLoading", s.AUDIO_TRACK_LOADED = "hlsAudioTrackLoaded", s.SUBTITLE_TRACKS_UPDATED = "hlsSubtitleTracksUpdated", s.SUBTITLE_TRACKS_CLEARED = "hlsSubtitleTracksCleared", s.SUBTITLE_TRACK_SWITCH = "hlsSubtitleTrackSwitch", s.SUBTITLE_TRACK_LOADING = "hlsSubtitleTrackLoading", s.SUBTITLE_TRACK_LOADED = "hlsSubtitleTrackLoaded", s.SUBTITLE_FRAG_PROCESSED = "hlsSubtitleFragProcessed", s.CUES_PARSED = "hlsCuesParsed", s.NON_NATIVE_TEXT_TRACKS_FOUND = "hlsNonNativeTextTracksFound", s.INIT_PTS_FOUND = "hlsInitPtsFound", s.FRAG_LOADING = "hlsFragLoading", s.FRAG_LOAD_EMERGENCY_ABORTED = "hlsFragLoadEmergencyAborted", s.FRAG_LOADED = "hlsFragLoaded", s.FRAG_DECRYPTED = "hlsFragDecrypted", s.FRAG_PARSING_INIT_SEGMENT = "hlsFragParsingInitSegment", s.FRAG_PARSING_USERDATA = "hlsFragParsingUserdata", s.FRAG_PARSING_METADATA = "hlsFragParsingMetadata", s.FRAG_PARSED = "hlsFragParsed", s.FRAG_BUFFERED = "hlsFragBuffered", s.FRAG_CHANGED = "hlsFragChanged", s.FPS_DROP = "hlsFpsDrop", s.FPS_DROP_LEVEL_CAPPING = "hlsFpsDropLevelCapping", s.MAX_AUTO_LEVEL_UPDATED = "hlsMaxAutoLevelUpdated", s.ERROR = "hlsError", s.DESTROYING = "hlsDestroying", s.KEY_LOADING = "hlsKeyLoading", s.KEY_LOADED = "hlsKeyLoaded", s.LIVE_BACK_BUFFER_REACHED = "hlsLiveBackBufferReached", s.BACK_BUFFER_REACHED = "hlsBackBufferReached", s.STEERING_MANIFEST_LOADED = "hlsSteeringManifestLoaded", s;
|
|
25853
25853
|
}({}), Te = /* @__PURE__ */ function(s) {
|
|
25854
25854
|
return s.NETWORK_ERROR = "networkError", s.MEDIA_ERROR = "mediaError", s.KEY_SYSTEM_ERROR = "keySystemError", s.MUX_ERROR = "muxError", s.OTHER_ERROR = "otherError", s;
|
|
25855
|
-
}({}),
|
|
25855
|
+
}({}), G = /* @__PURE__ */ function(s) {
|
|
25856
25856
|
return s.KEY_SYSTEM_NO_KEYS = "keySystemNoKeys", s.KEY_SYSTEM_NO_ACCESS = "keySystemNoAccess", s.KEY_SYSTEM_NO_SESSION = "keySystemNoSession", s.KEY_SYSTEM_NO_CONFIGURED_LICENSE = "keySystemNoConfiguredLicense", s.KEY_SYSTEM_LICENSE_REQUEST_FAILED = "keySystemLicenseRequestFailed", s.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED = "keySystemServerCertificateRequestFailed", s.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED = "keySystemServerCertificateUpdateFailed", s.KEY_SYSTEM_SESSION_UPDATE_FAILED = "keySystemSessionUpdateFailed", s.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED = "keySystemStatusOutputRestricted", s.KEY_SYSTEM_STATUS_INTERNAL_ERROR = "keySystemStatusInternalError", s.MANIFEST_LOAD_ERROR = "manifestLoadError", s.MANIFEST_LOAD_TIMEOUT = "manifestLoadTimeOut", s.MANIFEST_PARSING_ERROR = "manifestParsingError", s.MANIFEST_INCOMPATIBLE_CODECS_ERROR = "manifestIncompatibleCodecsError", s.LEVEL_EMPTY_ERROR = "levelEmptyError", s.LEVEL_LOAD_ERROR = "levelLoadError", s.LEVEL_LOAD_TIMEOUT = "levelLoadTimeOut", s.LEVEL_PARSING_ERROR = "levelParsingError", s.LEVEL_SWITCH_ERROR = "levelSwitchError", s.AUDIO_TRACK_LOAD_ERROR = "audioTrackLoadError", s.AUDIO_TRACK_LOAD_TIMEOUT = "audioTrackLoadTimeOut", s.SUBTITLE_LOAD_ERROR = "subtitleTrackLoadError", s.SUBTITLE_TRACK_LOAD_TIMEOUT = "subtitleTrackLoadTimeOut", s.FRAG_LOAD_ERROR = "fragLoadError", s.FRAG_LOAD_TIMEOUT = "fragLoadTimeOut", s.FRAG_DECRYPT_ERROR = "fragDecryptError", s.FRAG_PARSING_ERROR = "fragParsingError", s.FRAG_GAP = "fragGap", s.REMUX_ALLOC_ERROR = "remuxAllocError", s.KEY_LOAD_ERROR = "keyLoadError", s.KEY_LOAD_TIMEOUT = "keyLoadTimeOut", s.BUFFER_ADD_CODEC_ERROR = "bufferAddCodecError", s.BUFFER_INCOMPATIBLE_CODECS_ERROR = "bufferIncompatibleCodecsError", s.BUFFER_APPEND_ERROR = "bufferAppendError", s.BUFFER_APPENDING_ERROR = "bufferAppendingError", s.BUFFER_STALLED_ERROR = "bufferStalledError", s.BUFFER_FULL_ERROR = "bufferFullError", s.BUFFER_SEEK_OVER_HOLE = "bufferSeekOverHole", s.BUFFER_NUDGE_ON_STALL = "bufferNudgeOnStall", s.INTERNAL_EXCEPTION = "internalException", s.INTERNAL_ABORTED = "aborted", s.UNKNOWN = "unknown", s;
|
|
25857
25857
|
}({});
|
|
25858
|
-
const
|
|
25858
|
+
const Gs = function() {
|
|
25859
25859
|
}, Ir = {
|
|
25860
|
-
trace:
|
|
25861
|
-
debug:
|
|
25862
|
-
log:
|
|
25863
|
-
warn:
|
|
25864
|
-
info:
|
|
25865
|
-
error:
|
|
25860
|
+
trace: Gs,
|
|
25861
|
+
debug: Gs,
|
|
25862
|
+
log: Gs,
|
|
25863
|
+
warn: Gs,
|
|
25864
|
+
info: Gs,
|
|
25865
|
+
error: Gs
|
|
25866
25866
|
};
|
|
25867
25867
|
let Fi = Ir;
|
|
25868
25868
|
function VL(s) {
|
|
25869
25869
|
const e = self.console[s];
|
|
25870
|
-
return e ? e.bind(self.console, `[${s}] >`) :
|
|
25870
|
+
return e ? e.bind(self.console, `[${s}] >`) : Gs;
|
|
25871
25871
|
}
|
|
25872
25872
|
function HL(s, ...e) {
|
|
25873
25873
|
e.forEach(function(t) {
|
|
@@ -26010,7 +26010,7 @@ class yg {
|
|
|
26010
26010
|
return !!this.id && !this._badValueForSameId && me(this.startDate.getTime()) && (this.duration === null || this.duration >= 0) && (!this.endOnNext || !!this.class);
|
|
26011
26011
|
}
|
|
26012
26012
|
}
|
|
26013
|
-
class
|
|
26013
|
+
class Ga {
|
|
26014
26014
|
constructor() {
|
|
26015
26015
|
this.aborted = !1, this.loaded = 0, this.retry = 0, this.total = 0, this.chunkCount = 0, this.bwEstimate = 0, this.loading = {
|
|
26016
26016
|
start: 0,
|
|
@@ -26065,7 +26065,7 @@ class vg {
|
|
|
26065
26065
|
}
|
|
26066
26066
|
class ho extends vg {
|
|
26067
26067
|
constructor(e, t) {
|
|
26068
|
-
super(t), this._decryptdata = null, this.rawProgramDateTime = null, this.programDateTime = null, this.tagList = [], this.duration = 0, this.sn = 0, this.levelkeys = void 0, this.type = void 0, this.loader = null, this.keyLoader = null, this.level = -1, this.cc = 0, this.startPTS = void 0, this.endPTS = void 0, this.startDTS = void 0, this.endDTS = void 0, this.start = 0, this.deltaPTS = void 0, this.maxStartPTS = void 0, this.minEndPTS = void 0, this.stats = new
|
|
26068
|
+
super(t), this._decryptdata = null, this.rawProgramDateTime = null, this.programDateTime = null, this.tagList = [], this.duration = 0, this.sn = 0, this.levelkeys = void 0, this.type = void 0, this.loader = null, this.keyLoader = null, this.level = -1, this.cc = 0, this.startPTS = void 0, this.endPTS = void 0, this.startDTS = void 0, this.endDTS = void 0, this.start = 0, this.deltaPTS = void 0, this.maxStartPTS = void 0, this.minEndPTS = void 0, this.stats = new Ga(), this.data = void 0, this.bitrateTest = !1, this.title = null, this.initSegment = null, this.endList = void 0, this.gap = void 0, this.urlId = 0, this.type = e;
|
|
26069
26069
|
}
|
|
26070
26070
|
get decryptdata() {
|
|
26071
26071
|
const {
|
|
@@ -26140,7 +26140,7 @@ class ho extends vg {
|
|
|
26140
26140
|
}
|
|
26141
26141
|
class WL extends vg {
|
|
26142
26142
|
constructor(e, t, i, n, a) {
|
|
26143
|
-
super(i), this.fragOffset = 0, this.duration = 0, this.gap = !1, this.independent = !1, this.relurl = void 0, this.fragment = void 0, this.index = void 0, this.stats = new
|
|
26143
|
+
super(i), this.fragOffset = 0, this.duration = 0, this.gap = !1, this.independent = !1, this.relurl = void 0, this.fragment = void 0, this.index = void 0, this.stats = new Ga(), this.duration = e.decimalFloatingPoint("DURATION"), this.gap = e.bool("GAP"), this.independent = e.bool("INDEPENDENT"), this.relurl = e.enumeratedString("URI"), this.fragment = t, this.index = n;
|
|
26144
26144
|
const o = e.enumeratedString("BYTERANGE");
|
|
26145
26145
|
o && this.setByteRange(o, a), a && (this.fragOffset = a.fragOffset + a.duration);
|
|
26146
26146
|
}
|
|
@@ -26263,7 +26263,7 @@ function eM(s) {
|
|
|
26263
26263
|
if (s === bg.WIDEVINE)
|
|
26264
26264
|
return et.WIDEVINE;
|
|
26265
26265
|
}
|
|
26266
|
-
function
|
|
26266
|
+
function Gu(s) {
|
|
26267
26267
|
switch (s) {
|
|
26268
26268
|
case et.FAIRPLAY:
|
|
26269
26269
|
return Bt.FAIRPLAY;
|
|
@@ -26324,20 +26324,20 @@ function sM(s, e, t, i) {
|
|
|
26324
26324
|
function Ks(s, e, t) {
|
|
26325
26325
|
return Uint8Array.prototype.slice ? s.slice(e, t) : new Uint8Array(Array.prototype.slice.call(s, e, t));
|
|
26326
26326
|
}
|
|
26327
|
-
const Ql = (s, e) => e + 10 <= s.length && s[e] === 73 && s[e + 1] === 68 && s[e + 2] === 51 && s[e + 3] < 255 && s[e + 4] < 255 && s[e + 6] < 128 && s[e + 7] < 128 && s[e + 8] < 128 && s[e + 9] < 128, wg = (s, e) => e + 10 <= s.length && s[e] === 51 && s[e + 1] === 68 && s[e + 2] === 73 && s[e + 3] < 255 && s[e + 4] < 255 && s[e + 6] < 128 && s[e + 7] < 128 && s[e + 8] < 128 && s[e + 9] < 128,
|
|
26327
|
+
const Ql = (s, e) => e + 10 <= s.length && s[e] === 73 && s[e + 1] === 68 && s[e + 2] === 51 && s[e + 3] < 255 && s[e + 4] < 255 && s[e + 6] < 128 && s[e + 7] < 128 && s[e + 8] < 128 && s[e + 9] < 128, wg = (s, e) => e + 10 <= s.length && s[e] === 51 && s[e + 1] === 68 && s[e + 2] === 73 && s[e + 3] < 255 && s[e + 4] < 255 && s[e + 6] < 128 && s[e + 7] < 128 && s[e + 8] < 128 && s[e + 9] < 128, Gi = (s, e) => {
|
|
26328
26328
|
const t = e;
|
|
26329
26329
|
let i = 0;
|
|
26330
26330
|
for (; Ql(s, e); ) {
|
|
26331
26331
|
i += 10;
|
|
26332
|
-
const n =
|
|
26332
|
+
const n = ja(s, e + 6);
|
|
26333
26333
|
i += n, wg(s, e + 10) && (i += 10), e += i;
|
|
26334
26334
|
}
|
|
26335
26335
|
if (i > 0)
|
|
26336
26336
|
return s.subarray(t, t + i);
|
|
26337
|
-
},
|
|
26337
|
+
}, ja = (s, e) => {
|
|
26338
26338
|
let t = 0;
|
|
26339
26339
|
return t = (s[e] & 127) << 21, t |= (s[e + 1] & 127) << 14, t |= (s[e + 2] & 127) << 7, t |= s[e + 3] & 127, t;
|
|
26340
|
-
}, iM = (s, e) => Ql(s, e) &&
|
|
26340
|
+
}, iM = (s, e) => Ql(s, e) && ja(s, e + 6) + 10 <= s.length - e, Jl = (s) => {
|
|
26341
26341
|
const e = Cg(s);
|
|
26342
26342
|
for (let t = 0; t < e.length; t++) {
|
|
26343
26343
|
const i = e[t];
|
|
@@ -26345,7 +26345,7 @@ const Ql = (s, e) => e + 10 <= s.length && s[e] === 73 && s[e + 1] === 68 && s[e
|
|
|
26345
26345
|
return cM(i);
|
|
26346
26346
|
}
|
|
26347
26347
|
}, Sg = (s) => s && s.key === "PRIV" && s.info === "com.apple.streaming.transportStreamTimestamp", nM = (s) => {
|
|
26348
|
-
const e = String.fromCharCode(s[0], s[1], s[2], s[3]), t =
|
|
26348
|
+
const e = String.fromCharCode(s[0], s[1], s[2], s[3]), t = ja(s, 4), i = 10;
|
|
26349
26349
|
return {
|
|
26350
26350
|
type: e,
|
|
26351
26351
|
size: t,
|
|
@@ -26355,7 +26355,7 @@ const Ql = (s, e) => e + 10 <= s.length && s[e] === 73 && s[e + 1] === 68 && s[e
|
|
|
26355
26355
|
let e = 0;
|
|
26356
26356
|
const t = [];
|
|
26357
26357
|
for (; Ql(s, e); ) {
|
|
26358
|
-
const i =
|
|
26358
|
+
const i = ja(s, e + 6);
|
|
26359
26359
|
e += 10;
|
|
26360
26360
|
const n = e + i;
|
|
26361
26361
|
for (; e + 8 < n; ) {
|
|
@@ -26488,7 +26488,7 @@ function be(s, e) {
|
|
|
26488
26488
|
const t = Eg(s, e);
|
|
26489
26489
|
return t < 0 ? 4294967296 + t : t;
|
|
26490
26490
|
}
|
|
26491
|
-
function
|
|
26491
|
+
function ju(s, e) {
|
|
26492
26492
|
let t = be(s, e);
|
|
26493
26493
|
return t *= Math.pow(2, 32), t += be(s, e + 4), t;
|
|
26494
26494
|
}
|
|
@@ -26532,7 +26532,7 @@ function mM(s) {
|
|
|
26532
26532
|
const n = be(s, i);
|
|
26533
26533
|
i += 4;
|
|
26534
26534
|
let a = 0, o = 0;
|
|
26535
|
-
t === 0 ? (a = be(s, i), o = be(s, i + 4), i += 8) : (a =
|
|
26535
|
+
t === 0 ? (a = be(s, i), o = be(s, i + 4), i += 8) : (a = ju(s, i), o = ju(s, i + 8), i += 16), i += 2;
|
|
26536
26536
|
let r = s.length + o;
|
|
26537
26537
|
const c = xg(s, i);
|
|
26538
26538
|
i += 2;
|
|
@@ -26866,14 +26866,14 @@ function Vu(s, e) {
|
|
|
26866
26866
|
let Z = ne + l;
|
|
26867
26867
|
for (let _ = 0; _ < Q; _++) {
|
|
26868
26868
|
if (ue ? (fe = be(V, z), z += 4) : fe = S, he ? (ve = be(V, z), z += 4) : ve = E, xe && (z += 4), re && (D === 0 ? ae = be(V, z) : ae = Eg(V, z), z += 4), e.type === Qe.VIDEO) {
|
|
26869
|
-
let
|
|
26870
|
-
for (;
|
|
26869
|
+
let j = 0;
|
|
26870
|
+
for (; j < ve; ) {
|
|
26871
26871
|
const $ = be(i, Z);
|
|
26872
26872
|
if (Z += 4, SM(o, i[Z])) {
|
|
26873
26873
|
const oe = i.subarray(Z, Z + $);
|
|
26874
26874
|
Ig(oe, o ? 2 : 1, s + ae / n, t);
|
|
26875
26875
|
}
|
|
26876
|
-
Z += $,
|
|
26876
|
+
Z += $, j += $ + 4;
|
|
26877
26877
|
}
|
|
26878
26878
|
}
|
|
26879
26879
|
s += fe / n;
|
|
@@ -26993,7 +26993,7 @@ function CM(s) {
|
|
|
26993
26993
|
const u = be(s, l);
|
|
26994
26994
|
l += 4;
|
|
26995
26995
|
const m = be(s, l);
|
|
26996
|
-
for (l += 4, o = 2 ** 32 * u + m,
|
|
26996
|
+
for (l += 4, o = 2 ** 32 * u + m, GL(o) || (o = Number.MAX_SAFE_INTEGER, P.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")), r = be(s, l), l += 4, c = be(s, l), l += 4; gt(s.subarray(l, l + 1)) !== "\0"; )
|
|
26997
26997
|
t += gt(s.subarray(l, l + 1)), l += 1;
|
|
26998
26998
|
for (t += gt(s.subarray(l, l + 1)), l += 1; gt(s.subarray(l, l + 1)) !== "\0"; )
|
|
26999
26999
|
i += gt(s.subarray(l, l + 1)), l += 1;
|
|
@@ -27071,7 +27071,7 @@ function EM(s) {
|
|
|
27071
27071
|
return e;
|
|
27072
27072
|
}
|
|
27073
27073
|
let sn = {};
|
|
27074
|
-
class
|
|
27074
|
+
class ji {
|
|
27075
27075
|
static clearKeyUriToKeyIdMap() {
|
|
27076
27076
|
sn = {};
|
|
27077
27077
|
}
|
|
@@ -27100,7 +27100,7 @@ class Gi {
|
|
|
27100
27100
|
if (this.method === "AES-128" && this.uri && !this.iv) {
|
|
27101
27101
|
typeof e != "number" && (this.method === "AES-128" && !this.iv && P.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`), e = 0);
|
|
27102
27102
|
const i = kM(e);
|
|
27103
|
-
return new
|
|
27103
|
+
return new ji(this.method, this.uri, "identity", this.keyFormatVersions, i);
|
|
27104
27104
|
}
|
|
27105
27105
|
const t = $L(this.uri);
|
|
27106
27106
|
if (t)
|
|
@@ -27647,7 +27647,7 @@ function Ju(s, e, t) {
|
|
|
27647
27647
|
const o = (i = a.METHOD) != null ? i : "", r = a.URI, c = a.hexadecimalInteger("IV"), l = a.KEYFORMATVERSIONS, d = (n = a.KEYFORMAT) != null ? n : "identity";
|
|
27648
27648
|
r && a.IV && !c && P.error(`Invalid IV: ${a.IV}`);
|
|
27649
27649
|
const u = r ? gs.resolve(r, e) : "", m = (l || "1").split("/").map(Number).filter(Number.isFinite);
|
|
27650
|
-
return new
|
|
27650
|
+
return new ji(o, u, d, m, c);
|
|
27651
27651
|
}
|
|
27652
27652
|
function Xu(s) {
|
|
27653
27653
|
const t = new st(s).decimalFloatingPoint("TIME-OFFSET");
|
|
@@ -27957,7 +27957,7 @@ class UM {
|
|
|
27957
27957
|
handleManifestParsingError(e, t, i, n, a) {
|
|
27958
27958
|
this.hls.trigger(w.ERROR, {
|
|
27959
27959
|
type: Te.NETWORK_ERROR,
|
|
27960
|
-
details:
|
|
27960
|
+
details: G.MANIFEST_PARSING_ERROR,
|
|
27961
27961
|
fatal: t.type === ze.MANIFEST,
|
|
27962
27962
|
url: e.url,
|
|
27963
27963
|
err: i,
|
|
@@ -27974,20 +27974,20 @@ class UM {
|
|
|
27974
27974
|
e.type === ze.LEVEL ? o += `: ${e.level} id: ${e.id}` : (e.type === ze.AUDIO_TRACK || e.type === ze.SUBTITLE_TRACK) && (o += ` id: ${e.id} group-id: "${e.groupId}"`);
|
|
27975
27975
|
const r = new Error(o);
|
|
27976
27976
|
P.warn(`[playlist-loader]: ${o}`);
|
|
27977
|
-
let c =
|
|
27977
|
+
let c = G.UNKNOWN, l = !1;
|
|
27978
27978
|
const d = this.getInternalLoader(e);
|
|
27979
27979
|
switch (e.type) {
|
|
27980
27980
|
case ze.MANIFEST:
|
|
27981
|
-
c = i ?
|
|
27981
|
+
c = i ? G.MANIFEST_LOAD_TIMEOUT : G.MANIFEST_LOAD_ERROR, l = !0;
|
|
27982
27982
|
break;
|
|
27983
27983
|
case ze.LEVEL:
|
|
27984
|
-
c = i ?
|
|
27984
|
+
c = i ? G.LEVEL_LOAD_TIMEOUT : G.LEVEL_LOAD_ERROR, l = !1;
|
|
27985
27985
|
break;
|
|
27986
27986
|
case ze.AUDIO_TRACK:
|
|
27987
|
-
c = i ?
|
|
27987
|
+
c = i ? G.AUDIO_TRACK_LOAD_TIMEOUT : G.AUDIO_TRACK_LOAD_ERROR, l = !1;
|
|
27988
27988
|
break;
|
|
27989
27989
|
case ze.SUBTITLE_TRACK:
|
|
27990
|
-
c = i ?
|
|
27990
|
+
c = i ? G.SUBTITLE_TRACK_LOAD_TIMEOUT : G.SUBTITLE_LOAD_ERROR, l = !1;
|
|
27991
27991
|
break;
|
|
27992
27992
|
}
|
|
27993
27993
|
d && this.resetInternalLoader(e.type);
|
|
@@ -28023,7 +28023,7 @@ class UM {
|
|
|
28023
28023
|
const A = new Error("No Segments found in Playlist");
|
|
28024
28024
|
r.trigger(w.ERROR, {
|
|
28025
28025
|
type: Te.NETWORK_ERROR,
|
|
28026
|
-
details:
|
|
28026
|
+
details: G.LEVEL_EMPTY_ERROR,
|
|
28027
28027
|
fatal: !1,
|
|
28028
28028
|
url: h,
|
|
28029
28029
|
error: A,
|
|
@@ -28042,7 +28042,7 @@ class UM {
|
|
|
28042
28042
|
if (p) {
|
|
28043
28043
|
r.trigger(w.ERROR, {
|
|
28044
28044
|
type: Te.NETWORK_ERROR,
|
|
28045
|
-
details:
|
|
28045
|
+
details: G.LEVEL_PARSING_ERROR,
|
|
28046
28046
|
fatal: !1,
|
|
28047
28047
|
url: h,
|
|
28048
28048
|
error: p,
|
|
@@ -28127,7 +28127,7 @@ function ni(s) {
|
|
|
28127
28127
|
function Lr(s, e, t, i) {
|
|
28128
28128
|
const n = s.mode;
|
|
28129
28129
|
if (n === "disabled" && (s.mode = "hidden"), s.cues && s.cues.length > 0) {
|
|
28130
|
-
const a =
|
|
28130
|
+
const a = GM(s.cues, e, t);
|
|
28131
28131
|
for (let o = 0; o < a.length; o++)
|
|
28132
28132
|
(!i || i(a[o])) && s.removeCue(a[o]);
|
|
28133
28133
|
}
|
|
@@ -28151,7 +28151,7 @@ function zM(s, e) {
|
|
|
28151
28151
|
}
|
|
28152
28152
|
return s[i].startTime - e < e - s[n].startTime ? i : n;
|
|
28153
28153
|
}
|
|
28154
|
-
function
|
|
28154
|
+
function GM(s, e, t) {
|
|
28155
28155
|
const i = [], n = zM(s, e);
|
|
28156
28156
|
if (n > -1)
|
|
28157
28157
|
for (let a = n, o = s.length; a < o; a++) {
|
|
@@ -28176,7 +28176,7 @@ var Xt = {
|
|
|
28176
28176
|
dateRange: "com.apple.quicktime.HLS",
|
|
28177
28177
|
emsg: "https://aomedia.org/emsg/ID3"
|
|
28178
28178
|
};
|
|
28179
|
-
const
|
|
28179
|
+
const jM = 0.25;
|
|
28180
28180
|
function Mr() {
|
|
28181
28181
|
if (!(typeof self > "u"))
|
|
28182
28182
|
return self.VTTCue || self.TextTrackCue;
|
|
@@ -28277,7 +28277,7 @@ class HM {
|
|
|
28277
28277
|
if (l) {
|
|
28278
28278
|
const d = a[r].pts;
|
|
28279
28279
|
let u = d + a[r].duration;
|
|
28280
|
-
u > nn && (u = nn), u - d <= 0 && (u = d +
|
|
28280
|
+
u > nn && (u = nn), u - d <= 0 && (u = d + jM);
|
|
28281
28281
|
for (let h = 0; h < l.length; h++) {
|
|
28282
28282
|
const f = l[h];
|
|
28283
28283
|
if (!Sg(f)) {
|
|
@@ -28479,7 +28479,7 @@ class KM {
|
|
|
28479
28479
|
}
|
|
28480
28480
|
onError(e, t) {
|
|
28481
28481
|
var i;
|
|
28482
|
-
t.details ===
|
|
28482
|
+
t.details === G.BUFFER_STALLED_ERROR && (this.stallCount++, (i = this.levelDetails) != null && i.live && P.warn("[playback-rate-controller]: Stall detected, adjusting target latency"));
|
|
28483
28483
|
}
|
|
28484
28484
|
timeupdate() {
|
|
28485
28485
|
const {
|
|
@@ -28776,10 +28776,10 @@ function Ug(s) {
|
|
|
28776
28776
|
}
|
|
28777
28777
|
function ea(s) {
|
|
28778
28778
|
switch (s.details) {
|
|
28779
|
-
case
|
|
28780
|
-
case
|
|
28781
|
-
case
|
|
28782
|
-
case
|
|
28779
|
+
case G.FRAG_LOAD_TIMEOUT:
|
|
28780
|
+
case G.KEY_LOAD_TIMEOUT:
|
|
28781
|
+
case G.LEVEL_LOAD_TIMEOUT:
|
|
28782
|
+
case G.MANIFEST_LOAD_TIMEOUT:
|
|
28783
28783
|
return !0;
|
|
28784
28784
|
}
|
|
28785
28785
|
return !1;
|
|
@@ -28935,13 +28935,13 @@ class n3 {
|
|
|
28935
28935
|
return;
|
|
28936
28936
|
const a = this.hls, o = t.context;
|
|
28937
28937
|
switch (t.details) {
|
|
28938
|
-
case
|
|
28939
|
-
case
|
|
28940
|
-
case
|
|
28941
|
-
case
|
|
28938
|
+
case G.FRAG_LOAD_ERROR:
|
|
28939
|
+
case G.FRAG_LOAD_TIMEOUT:
|
|
28940
|
+
case G.KEY_LOAD_ERROR:
|
|
28941
|
+
case G.KEY_LOAD_TIMEOUT:
|
|
28942
28942
|
t.errorAction = this.getFragRetryOrSwitchAction(t);
|
|
28943
28943
|
return;
|
|
28944
|
-
case
|
|
28944
|
+
case G.FRAG_PARSING_ERROR:
|
|
28945
28945
|
if ((i = t.frag) != null && i.gap) {
|
|
28946
28946
|
t.errorAction = {
|
|
28947
28947
|
action: Rt.DoNothing,
|
|
@@ -28949,27 +28949,27 @@ class n3 {
|
|
|
28949
28949
|
};
|
|
28950
28950
|
return;
|
|
28951
28951
|
}
|
|
28952
|
-
case
|
|
28953
|
-
case
|
|
28952
|
+
case G.FRAG_GAP:
|
|
28953
|
+
case G.FRAG_DECRYPT_ERROR: {
|
|
28954
28954
|
t.errorAction = this.getFragRetryOrSwitchAction(t), t.errorAction.action = Rt.SendAlternateToPenaltyBox;
|
|
28955
28955
|
return;
|
|
28956
28956
|
}
|
|
28957
|
-
case
|
|
28958
|
-
case
|
|
28957
|
+
case G.LEVEL_EMPTY_ERROR:
|
|
28958
|
+
case G.LEVEL_PARSING_ERROR:
|
|
28959
28959
|
{
|
|
28960
28960
|
var r, c;
|
|
28961
28961
|
const l = t.parent === Ae.MAIN ? t.level : a.loadLevel;
|
|
28962
|
-
t.details ===
|
|
28962
|
+
t.details === G.LEVEL_EMPTY_ERROR && ((r = t.context) != null && (c = r.levelDetails) != null && c.live) ? t.errorAction = this.getPlaylistRetryOrSwitchAction(t, l) : (t.levelRetry = !1, t.errorAction = this.getLevelSwitchAction(t, l));
|
|
28963
28963
|
}
|
|
28964
28964
|
return;
|
|
28965
|
-
case
|
|
28966
|
-
case
|
|
28965
|
+
case G.LEVEL_LOAD_ERROR:
|
|
28966
|
+
case G.LEVEL_LOAD_TIMEOUT:
|
|
28967
28967
|
typeof (o == null ? void 0 : o.level) == "number" && (t.errorAction = this.getPlaylistRetryOrSwitchAction(t, o.level));
|
|
28968
28968
|
return;
|
|
28969
|
-
case
|
|
28970
|
-
case
|
|
28971
|
-
case
|
|
28972
|
-
case
|
|
28969
|
+
case G.AUDIO_TRACK_LOAD_ERROR:
|
|
28970
|
+
case G.AUDIO_TRACK_LOAD_TIMEOUT:
|
|
28971
|
+
case G.SUBTITLE_LOAD_ERROR:
|
|
28972
|
+
case G.SUBTITLE_TRACK_LOAD_TIMEOUT:
|
|
28973
28973
|
if (o) {
|
|
28974
28974
|
const l = a.levels[a.loadLevel];
|
|
28975
28975
|
if (l && (o.type === ze.AUDIO_TRACK && l.hasAudioGroup(o.groupId) || o.type === ze.SUBTITLE_TRACK && l.hasSubtitleGroup(o.groupId))) {
|
|
@@ -28978,7 +28978,7 @@ class n3 {
|
|
|
28978
28978
|
}
|
|
28979
28979
|
}
|
|
28980
28980
|
return;
|
|
28981
|
-
case
|
|
28981
|
+
case G.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:
|
|
28982
28982
|
{
|
|
28983
28983
|
const l = a.levels[a.loadLevel], d = l == null ? void 0 : l.attrs["HDCP-LEVEL"];
|
|
28984
28984
|
d ? t.errorAction = {
|
|
@@ -28988,18 +28988,18 @@ class n3 {
|
|
|
28988
28988
|
} : this.keySystemError(t);
|
|
28989
28989
|
}
|
|
28990
28990
|
return;
|
|
28991
|
-
case
|
|
28992
|
-
case
|
|
28993
|
-
case
|
|
28991
|
+
case G.BUFFER_ADD_CODEC_ERROR:
|
|
28992
|
+
case G.REMUX_ALLOC_ERROR:
|
|
28993
|
+
case G.BUFFER_APPEND_ERROR:
|
|
28994
28994
|
t.errorAction = this.getLevelSwitchAction(t, (n = t.level) != null ? n : a.loadLevel);
|
|
28995
28995
|
return;
|
|
28996
|
-
case
|
|
28997
|
-
case
|
|
28998
|
-
case
|
|
28999
|
-
case
|
|
29000
|
-
case
|
|
29001
|
-
case
|
|
29002
|
-
case
|
|
28996
|
+
case G.INTERNAL_EXCEPTION:
|
|
28997
|
+
case G.BUFFER_APPENDING_ERROR:
|
|
28998
|
+
case G.BUFFER_FULL_ERROR:
|
|
28999
|
+
case G.LEVEL_SWITCH_ERROR:
|
|
29000
|
+
case G.BUFFER_STALLED_ERROR:
|
|
29001
|
+
case G.BUFFER_SEEK_OVER_HOLE:
|
|
29002
|
+
case G.BUFFER_NUDGE_ON_STALL:
|
|
29003
29003
|
t.errorAction = {
|
|
29004
29004
|
action: Rt.DoNothing,
|
|
29005
29005
|
flags: Zt.None
|
|
@@ -29029,7 +29029,7 @@ class n3 {
|
|
|
29029
29029
|
fragLoadPolicy: a,
|
|
29030
29030
|
keyLoadPolicy: o
|
|
29031
29031
|
} = t.config, r = lh(e.details.startsWith("key") ? o : a, e), c = t.levels.reduce((d, u) => d + u.fragmentError, 0);
|
|
29032
|
-
if (n && (e.details !==
|
|
29032
|
+
if (n && (e.details !== G.FRAG_GAP && n.fragmentError++, ta(r, c, ea(e), e.response)))
|
|
29033
29033
|
return {
|
|
29034
29034
|
action: Rt.RetryRequest,
|
|
29035
29035
|
flags: Zt.None,
|
|
@@ -29046,7 +29046,7 @@ class n3 {
|
|
|
29046
29046
|
if (n) {
|
|
29047
29047
|
var a, o;
|
|
29048
29048
|
const l = e.details;
|
|
29049
|
-
n.loadError++, l ===
|
|
29049
|
+
n.loadError++, l === G.BUFFER_APPEND_ERROR && n.fragmentError++;
|
|
29050
29050
|
let d = -1;
|
|
29051
29051
|
const {
|
|
29052
29052
|
levels: u,
|
|
@@ -29055,9 +29055,9 @@ class n3 {
|
|
|
29055
29055
|
maxAutoLevel: f
|
|
29056
29056
|
} = i;
|
|
29057
29057
|
i.autoLevelEnabled || (i.loadLevel = -1);
|
|
29058
|
-
const g = (a = e.frag) == null ? void 0 : a.type, A = (g === Ae.AUDIO && l ===
|
|
29058
|
+
const g = (a = e.frag) == null ? void 0 : a.type, A = (g === Ae.AUDIO && l === G.FRAG_PARSING_ERROR || e.sourceBufferName === "audio" && (l === G.BUFFER_ADD_CODEC_ERROR || l === G.BUFFER_APPEND_ERROR)) && u.some(({
|
|
29059
29059
|
audioCodec: F
|
|
29060
|
-
}) => n.audioCodec !== F), S = e.sourceBufferName === "video" && (l ===
|
|
29060
|
+
}) => n.audioCodec !== F), S = e.sourceBufferName === "video" && (l === G.BUFFER_ADD_CODEC_ERROR || l === G.BUFFER_APPEND_ERROR) && u.some(({
|
|
29061
29061
|
codecSet: F,
|
|
29062
29062
|
audioCodec: I
|
|
29063
29063
|
}) => n.codecSet !== F && n.audioCodec === I), {
|
|
@@ -29069,7 +29069,7 @@ class n3 {
|
|
|
29069
29069
|
if (I !== m && I >= h && I <= f && u[I].loadError === 0) {
|
|
29070
29070
|
var r, c;
|
|
29071
29071
|
const V = u[I];
|
|
29072
|
-
if (l ===
|
|
29072
|
+
if (l === G.FRAG_GAP && g === Ae.MAIN && e.frag) {
|
|
29073
29073
|
const D = u[I].details;
|
|
29074
29074
|
if (D) {
|
|
29075
29075
|
const N = sa(e.frag, D.fragments, e.frag.start);
|
|
@@ -29104,7 +29104,7 @@ class n3 {
|
|
|
29104
29104
|
case Rt.DoNothing:
|
|
29105
29105
|
break;
|
|
29106
29106
|
case Rt.SendAlternateToPenaltyBox:
|
|
29107
|
-
this.sendAlternateToPenaltyBox(t), !t.errorAction.resolved && t.details !==
|
|
29107
|
+
this.sendAlternateToPenaltyBox(t), !t.errorAction.resolved && t.details !== G.FRAG_GAP ? t.fatal = !0 : /MediaSource readyState: ended/.test(t.error.message) && (this.warn(`MediaSource ended after "${t.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`), this.hls.recoverMediaError());
|
|
29108
29108
|
break;
|
|
29109
29109
|
}
|
|
29110
29110
|
if (t.fatal) {
|
|
@@ -29307,7 +29307,7 @@ class a3 {
|
|
|
29307
29307
|
destroy() {
|
|
29308
29308
|
}
|
|
29309
29309
|
}
|
|
29310
|
-
const
|
|
29310
|
+
const Gg = {
|
|
29311
29311
|
supported: !0,
|
|
29312
29312
|
configurations: [],
|
|
29313
29313
|
decodingInfoResults: [{
|
|
@@ -29342,7 +29342,7 @@ function o3(s, e, t, i, n, a) {
|
|
|
29342
29342
|
function r3(s, e, t) {
|
|
29343
29343
|
const i = s.videoCodec, n = s.audioCodec;
|
|
29344
29344
|
if (!i || !n || !t)
|
|
29345
|
-
return Promise.resolve(
|
|
29345
|
+
return Promise.resolve(Gg);
|
|
29346
29346
|
const a = {
|
|
29347
29347
|
width: s.width,
|
|
29348
29348
|
height: s.height,
|
|
@@ -29673,11 +29673,11 @@ class p3 {
|
|
|
29673
29673
|
onError(e, t) {
|
|
29674
29674
|
if (!t.fatal)
|
|
29675
29675
|
switch (t.details) {
|
|
29676
|
-
case
|
|
29677
|
-
case
|
|
29676
|
+
case G.BUFFER_ADD_CODEC_ERROR:
|
|
29677
|
+
case G.BUFFER_APPEND_ERROR:
|
|
29678
29678
|
this.lastLoadedFragLevel = -1, this.firstSelection = -1;
|
|
29679
29679
|
break;
|
|
29680
|
-
case
|
|
29680
|
+
case G.FRAG_LOAD_TIMEOUT: {
|
|
29681
29681
|
const i = t.frag, {
|
|
29682
29682
|
fragCurrent: n,
|
|
29683
29683
|
partCurrent: a
|
|
@@ -29851,13 +29851,13 @@ class p3 {
|
|
|
29851
29851
|
continue;
|
|
29852
29852
|
if (A.useMediaCapabilities && !he.supportedResult && !he.supportedPromise) {
|
|
29853
29853
|
const _ = navigator.mediaCapabilities;
|
|
29854
|
-
typeof (_ == null ? void 0 : _.decodingInfo) == "function" && o3(he, N, F, I, e, V) ? (he.supportedPromise = r3(he, N, _), he.supportedPromise.then((
|
|
29854
|
+
typeof (_ == null ? void 0 : _.decodingInfo) == "function" && o3(he, N, F, I, e, V) ? (he.supportedPromise = r3(he, N, _), he.supportedPromise.then((j) => {
|
|
29855
29855
|
if (!this.hls)
|
|
29856
29856
|
return;
|
|
29857
|
-
he.supportedResult =
|
|
29857
|
+
he.supportedResult = j;
|
|
29858
29858
|
const $ = this.hls.levels, oe = $.indexOf(he);
|
|
29859
|
-
|
|
29860
|
-
})) : he.supportedResult =
|
|
29859
|
+
j.error ? P.warn(`[abr] MediaCapabilities decodingInfo error: "${j.error}" for level ${oe} ${JSON.stringify(j)}`) : j.supported || (P.warn(`[abr] Unsupported MediaCapabilities decodingInfo result for level ${oe} ${JSON.stringify(j)}`), oe > -1 && $.length > 1 && (P.log(`[abr] Removing unsupported level ${oe}`), this.hls.removeLevel(oe)));
|
|
29860
|
+
})) : he.supportedResult = Gg;
|
|
29861
29861
|
}
|
|
29862
29862
|
if (E && he.codecSet !== E || F && he.videoRange !== F || ve && I > he.frameRate || !ve && I > 0 && I < he.frameRate || he.supportedResult && !((ue = he.supportedResult.decodingInfoResults) != null && ue[0].smooth)) {
|
|
29863
29863
|
te.push(fe);
|
|
@@ -30334,7 +30334,7 @@ function hh(s, e) {
|
|
|
30334
30334
|
s.start = s.startPTS = t, s.endPTS = t + s.duration;
|
|
30335
30335
|
}
|
|
30336
30336
|
}
|
|
30337
|
-
function
|
|
30337
|
+
function jg(s, e) {
|
|
30338
30338
|
const t = e.fragments;
|
|
30339
30339
|
for (let i = 0, n = t.length; i < n; i++)
|
|
30340
30340
|
hh(t[i], s);
|
|
@@ -30346,7 +30346,7 @@ function S3(s, e, t) {
|
|
|
30346
30346
|
function C3(s, e, t) {
|
|
30347
30347
|
if (A3(s, t, e)) {
|
|
30348
30348
|
const i = w3(t, e);
|
|
30349
|
-
i && me(i.start) && (P.log(`Adjusting PTS using last level due to CC increase within current level ${e.url}`),
|
|
30349
|
+
i && me(i.start) && (P.log(`Adjusting PTS using last level due to CC increase within current level ${e.url}`), jg(i.start, e));
|
|
30350
30350
|
}
|
|
30351
30351
|
}
|
|
30352
30352
|
function ia(s, e) {
|
|
@@ -30362,7 +30362,7 @@ function ia(s, e) {
|
|
|
30362
30362
|
if (!r || !c)
|
|
30363
30363
|
return;
|
|
30364
30364
|
const l = (c - r) / 1e3 - (a.start - n.start);
|
|
30365
|
-
|
|
30365
|
+
jg(l, s);
|
|
30366
30366
|
}
|
|
30367
30367
|
const mh = Math.pow(2, 17);
|
|
30368
30368
|
class T3 {
|
|
@@ -30380,7 +30380,7 @@ class T3 {
|
|
|
30380
30380
|
if (!i)
|
|
30381
30381
|
return Promise.reject(new Ss({
|
|
30382
30382
|
type: Te.NETWORK_ERROR,
|
|
30383
|
-
details:
|
|
30383
|
+
details: G.FRAG_LOAD_ERROR,
|
|
30384
30384
|
fatal: !1,
|
|
30385
30385
|
frag: e,
|
|
30386
30386
|
error: new Error(`Fragment does not have a ${i ? "part list" : "url"}`),
|
|
@@ -30417,7 +30417,7 @@ class T3 {
|
|
|
30417
30417
|
onError: (h, f, g, p) => {
|
|
30418
30418
|
this.resetLoader(e, l), c(new Ss({
|
|
30419
30419
|
type: Te.NETWORK_ERROR,
|
|
30420
|
-
details:
|
|
30420
|
+
details: G.FRAG_LOAD_ERROR,
|
|
30421
30421
|
fatal: !1,
|
|
30422
30422
|
frag: e,
|
|
30423
30423
|
response: St({
|
|
@@ -30432,7 +30432,7 @@ class T3 {
|
|
|
30432
30432
|
onAbort: (h, f, g) => {
|
|
30433
30433
|
this.resetLoader(e, l), c(new Ss({
|
|
30434
30434
|
type: Te.NETWORK_ERROR,
|
|
30435
|
-
details:
|
|
30435
|
+
details: G.INTERNAL_ABORTED,
|
|
30436
30436
|
fatal: !1,
|
|
30437
30437
|
frag: e,
|
|
30438
30438
|
error: new Error("Aborted"),
|
|
@@ -30443,7 +30443,7 @@ class T3 {
|
|
|
30443
30443
|
onTimeout: (h, f, g) => {
|
|
30444
30444
|
this.resetLoader(e, l), c(new Ss({
|
|
30445
30445
|
type: Te.NETWORK_ERROR,
|
|
30446
|
-
details:
|
|
30446
|
+
details: G.FRAG_LOAD_TIMEOUT,
|
|
30447
30447
|
fatal: !1,
|
|
30448
30448
|
frag: e,
|
|
30449
30449
|
error: new Error(`Timeout after ${m.timeout}ms`),
|
|
@@ -30492,7 +30492,7 @@ class T3 {
|
|
|
30492
30492
|
onError: (h, f, g, p) => {
|
|
30493
30493
|
this.resetLoader(e, l), c(new Ss({
|
|
30494
30494
|
type: Te.NETWORK_ERROR,
|
|
30495
|
-
details:
|
|
30495
|
+
details: G.FRAG_LOAD_ERROR,
|
|
30496
30496
|
fatal: !1,
|
|
30497
30497
|
frag: e,
|
|
30498
30498
|
part: t,
|
|
@@ -30508,7 +30508,7 @@ class T3 {
|
|
|
30508
30508
|
onAbort: (h, f, g) => {
|
|
30509
30509
|
e.stats.aborted = t.stats.aborted, this.resetLoader(e, l), c(new Ss({
|
|
30510
30510
|
type: Te.NETWORK_ERROR,
|
|
30511
|
-
details:
|
|
30511
|
+
details: G.INTERNAL_ABORTED,
|
|
30512
30512
|
fatal: !1,
|
|
30513
30513
|
frag: e,
|
|
30514
30514
|
part: t,
|
|
@@ -30520,7 +30520,7 @@ class T3 {
|
|
|
30520
30520
|
onTimeout: (h, f, g) => {
|
|
30521
30521
|
this.resetLoader(e, l), c(new Ss({
|
|
30522
30522
|
type: Te.NETWORK_ERROR,
|
|
30523
|
-
details:
|
|
30523
|
+
details: G.FRAG_LOAD_TIMEOUT,
|
|
30524
30524
|
fatal: !1,
|
|
30525
30525
|
frag: e,
|
|
30526
30526
|
part: t,
|
|
@@ -30570,7 +30570,7 @@ function fh(s, e = null) {
|
|
|
30570
30570
|
function gh(s, e) {
|
|
30571
30571
|
const t = new Error(`GAP ${s.gap ? "tag" : "attribute"} found`), i = {
|
|
30572
30572
|
type: Te.MEDIA_ERROR,
|
|
30573
|
-
details:
|
|
30573
|
+
details: G.FRAG_GAP,
|
|
30574
30574
|
fatal: !1,
|
|
30575
30575
|
frag: s,
|
|
30576
30576
|
error: t,
|
|
@@ -30930,7 +30930,7 @@ class tc extends y3 {
|
|
|
30930
30930
|
return this.decrypter.decrypt(new Uint8Array(a), o.key.buffer, o.iv.buffer).catch((c) => {
|
|
30931
30931
|
throw n.trigger(w.ERROR, {
|
|
30932
30932
|
type: Te.MEDIA_ERROR,
|
|
30933
|
-
details:
|
|
30933
|
+
details: G.FRAG_DECRYPT_ERROR,
|
|
30934
30934
|
fatal: !1,
|
|
30935
30935
|
error: c,
|
|
30936
30936
|
reason: c.message,
|
|
@@ -31065,11 +31065,11 @@ class tc extends y3 {
|
|
|
31065
31065
|
handleFragLoadError(e) {
|
|
31066
31066
|
if ("data" in e) {
|
|
31067
31067
|
const t = e.data;
|
|
31068
|
-
e.data && t.details ===
|
|
31068
|
+
e.data && t.details === G.INTERNAL_ABORTED ? this.handleFragLoadAborted(t.frag, t.part) : this.hls.trigger(w.ERROR, t);
|
|
31069
31069
|
} else
|
|
31070
31070
|
this.hls.trigger(w.ERROR, {
|
|
31071
31071
|
type: Te.OTHER_ERROR,
|
|
31072
|
-
details:
|
|
31072
|
+
details: G.INTERNAL_EXCEPTION,
|
|
31073
31073
|
err: e,
|
|
31074
31074
|
error: e,
|
|
31075
31075
|
fatal: !0
|
|
@@ -31350,7 +31350,7 @@ class tc extends y3 {
|
|
|
31350
31350
|
this.warn(`Frag load error must match current frag to retry ${i.url} > ${(n = this.fragCurrent) == null ? void 0 : n.url}`);
|
|
31351
31351
|
return;
|
|
31352
31352
|
}
|
|
31353
|
-
const a = t.details ===
|
|
31353
|
+
const a = t.details === G.FRAG_GAP;
|
|
31354
31354
|
a && this.fragmentTracker.fragBuffered(i, !0);
|
|
31355
31355
|
const o = t.errorAction, {
|
|
31356
31356
|
action: r,
|
|
@@ -31434,7 +31434,7 @@ class tc extends y3 {
|
|
|
31434
31434
|
const c = new Error(`Found no media in fragment ${e.sn} of level ${e.level} resetting transmuxer to fallback to playlist timing`);
|
|
31435
31435
|
if (i.fragmentError === 0 && (i.fragmentError++, e.gap = !0, this.fragmentTracker.removeFragment(e), this.fragmentTracker.fragBuffered(e, !0)), this.warn(c.message), this.hls.trigger(w.ERROR, {
|
|
31436
31436
|
type: Te.MEDIA_ERROR,
|
|
31437
|
-
details:
|
|
31437
|
+
details: G.FRAG_PARSING_ERROR,
|
|
31438
31438
|
fatal: !1,
|
|
31439
31439
|
error: c,
|
|
31440
31440
|
frag: e,
|
|
@@ -31552,7 +31552,7 @@ class sc {
|
|
|
31552
31552
|
// feed incoming data to the front of the parsing pipeline
|
|
31553
31553
|
demux(e, t) {
|
|
31554
31554
|
this.cachedData && (e = Ht(this.cachedData, e), this.cachedData = null);
|
|
31555
|
-
let i =
|
|
31555
|
+
let i = Gi(e, 0), n = i ? i.length : 0, a;
|
|
31556
31556
|
const o = this._audioTrack, r = this._id3Track, c = i ? Jl(i) : void 0, l = e.length;
|
|
31557
31557
|
for ((this.basePTS === null || this.frameIndex === 0 && me(c)) && (this.basePTS = B3(c, t, this.initPTS), this.lastPTS = this.basePTS), this.lastPTS === null && (this.lastPTS = this.basePTS), i && i.length > 0 && r.samples.push({
|
|
31558
31558
|
pts: this.lastPTS,
|
|
@@ -31564,7 +31564,7 @@ class sc {
|
|
|
31564
31564
|
if (this.canParse(e, n)) {
|
|
31565
31565
|
const d = this.appendFrame(o, e, n);
|
|
31566
31566
|
d ? (this.frameIndex++, this.lastPTS = d.sample.pts, n += d.length, a = n) : n = l;
|
|
31567
|
-
} else iM(e, n) ? (i =
|
|
31567
|
+
} else iM(e, n) ? (i = Gi(e, n), r.samples.push({
|
|
31568
31568
|
pts: this.lastPTS,
|
|
31569
31569
|
dts: this.lastPTS,
|
|
31570
31570
|
data: i,
|
|
@@ -31613,7 +31613,7 @@ function D3(s, e, t, i) {
|
|
|
31613
31613
|
const m = new Error(`invalid ADTS sampling index:${u}`);
|
|
31614
31614
|
s.emit(w.ERROR, w.ERROR, {
|
|
31615
31615
|
type: Te.MEDIA_ERROR,
|
|
31616
|
-
details:
|
|
31616
|
+
details: G.FRAG_PARSING_ERROR,
|
|
31617
31617
|
fatal: !0,
|
|
31618
31618
|
error: m,
|
|
31619
31619
|
reason: m.message
|
|
@@ -31670,7 +31670,7 @@ function qg(s, e, t, i, n) {
|
|
|
31670
31670
|
function Yg(s) {
|
|
31671
31671
|
return 1024 * 9e4 / s;
|
|
31672
31672
|
}
|
|
31673
|
-
function
|
|
31673
|
+
function G3(s, e) {
|
|
31674
31674
|
const t = Kg(s, e);
|
|
31675
31675
|
if (e + t <= s.length) {
|
|
31676
31676
|
const i = ic(s, e) - t;
|
|
@@ -31682,7 +31682,7 @@ function j3(s, e) {
|
|
|
31682
31682
|
}
|
|
31683
31683
|
}
|
|
31684
31684
|
function Zg(s, e, t, i, n) {
|
|
31685
|
-
const a = Yg(s.samplerate), o = i + n * a, r =
|
|
31685
|
+
const a = Yg(s.samplerate), o = i + n * a, r = G3(e, t);
|
|
31686
31686
|
let c;
|
|
31687
31687
|
if (r) {
|
|
31688
31688
|
const {
|
|
@@ -31711,7 +31711,7 @@ function Zg(s, e, t, i, n) {
|
|
|
31711
31711
|
};
|
|
31712
31712
|
}
|
|
31713
31713
|
let rn = null;
|
|
31714
|
-
const
|
|
31714
|
+
const j3 = [32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448, 32, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 32, 48, 56, 64, 80, 96, 112, 128, 144, 160, 176, 192, 224, 256, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160], V3 = [44100, 48e3, 32e3, 22050, 24e3, 16e3, 11025, 12e3, 8e3], H3 = [
|
|
31715
31715
|
// MPEG 2.5
|
|
31716
31716
|
[
|
|
31717
31717
|
0,
|
|
@@ -31786,7 +31786,7 @@ function Wg(s, e, t, i, n) {
|
|
|
31786
31786
|
function Qg(s, e) {
|
|
31787
31787
|
const t = s[e + 1] >> 3 & 3, i = s[e + 1] >> 1 & 3, n = s[e + 2] >> 4 & 15, a = s[e + 2] >> 2 & 3;
|
|
31788
31788
|
if (t !== 1 && n !== 0 && n !== 15 && a !== 3) {
|
|
31789
|
-
const o = s[e + 2] >> 1 & 1, r = s[e + 3] >> 6, c = t === 3 ? 3 - i : i === 3 ? 3 : 4, l =
|
|
31789
|
+
const o = s[e + 2] >> 1 & 1, r = s[e + 3] >> 6, c = t === 3 ? 3 - i : i === 3 ? 3 : 4, l = j3[c * 14 + n - 1] * 1e3, u = V3[(t === 3 ? 0 : t === 2 ? 1 : 2) * 3 + a], m = r === 3 ? 1 : 2, h = H3[t][i], f = K3[i], g = h * 8 * f, p = Math.floor(h * l / u + o) * f;
|
|
31790
31790
|
if (rn === null) {
|
|
31791
31791
|
const S = (navigator.userAgent || "").match(/Chrome\/(\d+)/i);
|
|
31792
31792
|
rn = S ? parseInt(S[1]) : 0;
|
|
@@ -31841,7 +31841,7 @@ class Y3 extends sc {
|
|
|
31841
31841
|
static probe(e) {
|
|
31842
31842
|
if (!e)
|
|
31843
31843
|
return !1;
|
|
31844
|
-
const t =
|
|
31844
|
+
const t = Gi(e, 0);
|
|
31845
31845
|
let i = (t == null ? void 0 : t.length) || 0;
|
|
31846
31846
|
if (Xg(e, i))
|
|
31847
31847
|
return !1;
|
|
@@ -32000,7 +32000,7 @@ class Q3 extends sc {
|
|
|
32000
32000
|
static probe(e) {
|
|
32001
32001
|
if (!e)
|
|
32002
32002
|
return !1;
|
|
32003
|
-
const t =
|
|
32003
|
+
const t = Gi(e, 0);
|
|
32004
32004
|
if (!t)
|
|
32005
32005
|
return !1;
|
|
32006
32006
|
const i = t.length;
|
|
@@ -32786,7 +32786,7 @@ function eP(s, e, t, i, n) {
|
|
|
32786
32786
|
function aa(s, e, t) {
|
|
32787
32787
|
P.warn(`parsing error: ${e.message}`), s.emit(w.ERROR, w.ERROR, {
|
|
32788
32788
|
type: Te.MEDIA_ERROR,
|
|
32789
|
-
details:
|
|
32789
|
+
details: G.FRAG_PARSING_ERROR,
|
|
32790
32790
|
fatal: !1,
|
|
32791
32791
|
levelRetry: t,
|
|
32792
32792
|
error: e,
|
|
@@ -32860,7 +32860,7 @@ class tP extends sc {
|
|
|
32860
32860
|
static probe(e) {
|
|
32861
32861
|
if (!e)
|
|
32862
32862
|
return !1;
|
|
32863
|
-
const t =
|
|
32863
|
+
const t = Gi(e, 0);
|
|
32864
32864
|
let i = (t == null ? void 0 : t.length) || 0;
|
|
32865
32865
|
if (t && e[i] === 11 && e[i + 1] === 119 && Jl(t) !== void 0 && // check the bsid to confirm ac-3 or ec-3 (not mp3)
|
|
32866
32866
|
_g(e, i) <= 16)
|
|
@@ -34100,7 +34100,7 @@ class On {
|
|
|
34100
34100
|
} catch (re) {
|
|
34101
34101
|
this.observer.emit(w.ERROR, w.ERROR, {
|
|
34102
34102
|
type: Te.MUX_ERROR,
|
|
34103
|
-
details:
|
|
34103
|
+
details: G.REMUX_ALLOC_ERROR,
|
|
34104
34104
|
fatal: !1,
|
|
34105
34105
|
error: re,
|
|
34106
34106
|
bytes: V,
|
|
@@ -34114,17 +34114,17 @@ class On {
|
|
|
34114
34114
|
for (let re = 0; re < c; re++) {
|
|
34115
34115
|
const ae = o[re], Q = ae.units;
|
|
34116
34116
|
let z = 0;
|
|
34117
|
-
for (let
|
|
34118
|
-
const oe = Q[
|
|
34119
|
-
N.setUint32(u,
|
|
34117
|
+
for (let j = 0, $ = Q.length; j < $; j++) {
|
|
34118
|
+
const oe = Q[j], Re = oe.data, Ve = oe.data.byteLength;
|
|
34119
|
+
N.setUint32(u, Ve), u += 4, D.set(Re, u), u += Ve, z += 4 + Ve;
|
|
34120
34120
|
}
|
|
34121
34121
|
let Z;
|
|
34122
34122
|
if (re < c - 1)
|
|
34123
34123
|
m = o[re + 1].dts - ae.dts, Z = o[re + 1].pts - ae.pts;
|
|
34124
34124
|
else {
|
|
34125
|
-
const
|
|
34126
|
-
if (Z = re > 0 ? ae.pts - o[re - 1].pts : O,
|
|
34127
|
-
const oe = Math.floor(
|
|
34125
|
+
const j = this.config, $ = re > 0 ? ae.dts - o[re - 1].dts : O;
|
|
34126
|
+
if (Z = re > 0 ? ae.pts - o[re - 1].pts : O, j.stretchShortVideoTrack && this.nextAudioPts !== null) {
|
|
34127
|
+
const oe = Math.floor(j.maxBufferHole * a), Re = (n ? g + n * a : this.nextAudioPts) - ae.pts;
|
|
34128
34128
|
Re > oe ? (m = Re - $, m < 0 ? m = $ : W = !0, P.log(`[mp4-remuxer]: It is approximately ${Re / 90} ms to the next segment; using duration ${m / 90} ms for the last video frame.`)) : m = $;
|
|
34129
34129
|
} else
|
|
34130
34130
|
m = $;
|
|
@@ -34201,11 +34201,11 @@ class On {
|
|
|
34201
34201
|
let Z = Math.round(Q / d);
|
|
34202
34202
|
xe = ae - Z * d, xe < 0 && (Z--, xe += d), ve === 0 && (this.nextAudioPts = A = xe), P.warn(`[mp4-remuxer]: Injecting ${Z} audio frame @ ${(xe / o).toFixed(3)}s due to ${Math.round(1e3 * Q / o)} ms gap.`);
|
|
34203
34203
|
for (let _ = 0; _ < Z; _++) {
|
|
34204
|
-
const
|
|
34204
|
+
const j = Math.max(xe, 0);
|
|
34205
34205
|
let $ = yh.getSilentFrame(e.manifestCodec || e.codec, e.channelCount);
|
|
34206
34206
|
$ || (P.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."), $ = re.unit.subarray()), g.splice(ve, 0, {
|
|
34207
34207
|
unit: $,
|
|
34208
|
-
pts:
|
|
34208
|
+
pts: j
|
|
34209
34209
|
}), xe += d, ve++;
|
|
34210
34210
|
}
|
|
34211
34211
|
}
|
|
@@ -34228,7 +34228,7 @@ class On {
|
|
|
34228
34228
|
} catch (z) {
|
|
34229
34229
|
this.observer.emit(w.ERROR, w.ERROR, {
|
|
34230
34230
|
type: Te.MUX_ERROR,
|
|
34231
|
-
details:
|
|
34231
|
+
details: G.REMUX_ALLOC_ERROR,
|
|
34232
34232
|
fatal: !1,
|
|
34233
34233
|
error: z,
|
|
34234
34234
|
bytes: I,
|
|
@@ -34525,7 +34525,7 @@ class wh {
|
|
|
34525
34525
|
if (V)
|
|
34526
34526
|
return P.warn(`[transmuxer] ${V.message}`), this.observer.emit(w.ERROR, w.ERROR, {
|
|
34527
34527
|
type: Te.MEDIA_ERROR,
|
|
34528
|
-
details:
|
|
34528
|
+
details: G.FRAG_PARSING_ERROR,
|
|
34529
34529
|
fatal: !1,
|
|
34530
34530
|
error: V,
|
|
34531
34531
|
reason: V.message
|
|
@@ -34806,7 +34806,7 @@ class np {
|
|
|
34806
34806
|
const m = new Error(`${u.message} (${u.filename}:${u.lineno})`);
|
|
34807
34807
|
a.enableWorker = !1, P.warn(`Error in "${t}" Web Worker, fallback to inline`), this.hls.trigger(w.ERROR, {
|
|
34808
34808
|
type: Te.OTHER_ERROR,
|
|
34809
|
-
details:
|
|
34809
|
+
details: G.INTERNAL_EXCEPTION,
|
|
34810
34810
|
fatal: !1,
|
|
34811
34811
|
event: "demuxerWorker",
|
|
34812
34812
|
error: m
|
|
@@ -34902,7 +34902,7 @@ class np {
|
|
|
34902
34902
|
transmuxerError(e, t, i) {
|
|
34903
34903
|
this.hls && (this.error = e, this.hls.trigger(w.ERROR, {
|
|
34904
34904
|
type: Te.MEDIA_ERROR,
|
|
34905
|
-
details:
|
|
34905
|
+
details: G.FRAG_PARSING_ERROR,
|
|
34906
34906
|
chunkMeta: t,
|
|
34907
34907
|
frag: this.frag || void 0,
|
|
34908
34908
|
fatal: !1,
|
|
@@ -35291,31 +35291,31 @@ class fP extends tc {
|
|
|
35291
35291
|
return;
|
|
35292
35292
|
}
|
|
35293
35293
|
switch (t.details) {
|
|
35294
|
-
case
|
|
35295
|
-
case
|
|
35296
|
-
case
|
|
35297
|
-
case
|
|
35298
|
-
case
|
|
35299
|
-
case
|
|
35300
|
-
case
|
|
35294
|
+
case G.FRAG_GAP:
|
|
35295
|
+
case G.FRAG_PARSING_ERROR:
|
|
35296
|
+
case G.FRAG_DECRYPT_ERROR:
|
|
35297
|
+
case G.FRAG_LOAD_ERROR:
|
|
35298
|
+
case G.FRAG_LOAD_TIMEOUT:
|
|
35299
|
+
case G.KEY_LOAD_ERROR:
|
|
35300
|
+
case G.KEY_LOAD_TIMEOUT:
|
|
35301
35301
|
this.onFragmentOrKeyLoadError(Ae.AUDIO, t);
|
|
35302
35302
|
break;
|
|
35303
|
-
case
|
|
35304
|
-
case
|
|
35305
|
-
case
|
|
35303
|
+
case G.AUDIO_TRACK_LOAD_ERROR:
|
|
35304
|
+
case G.AUDIO_TRACK_LOAD_TIMEOUT:
|
|
35305
|
+
case G.LEVEL_PARSING_ERROR:
|
|
35306
35306
|
!t.levelRetry && this.state === X.WAITING_TRACK && ((i = t.context) == null ? void 0 : i.type) === ze.AUDIO_TRACK && (this.state = X.IDLE);
|
|
35307
35307
|
break;
|
|
35308
|
-
case
|
|
35309
|
-
case
|
|
35308
|
+
case G.BUFFER_APPEND_ERROR:
|
|
35309
|
+
case G.BUFFER_FULL_ERROR:
|
|
35310
35310
|
if (!t.parent || t.parent !== "audio")
|
|
35311
35311
|
return;
|
|
35312
|
-
if (t.details ===
|
|
35312
|
+
if (t.details === G.BUFFER_APPEND_ERROR) {
|
|
35313
35313
|
this.resetLoadingState();
|
|
35314
35314
|
return;
|
|
35315
35315
|
}
|
|
35316
35316
|
this.reduceLengthAndFlushBuffer(t) && (this.bufferedTrack = null, super.flushMainBuffer(0, Number.POSITIVE_INFINITY, "audio"));
|
|
35317
35317
|
break;
|
|
35318
|
-
case
|
|
35318
|
+
case G.INTERNAL_EXCEPTION:
|
|
35319
35319
|
this.recoverWorkerError(t);
|
|
35320
35320
|
break;
|
|
35321
35321
|
}
|
|
@@ -35538,7 +35538,7 @@ class gP extends _l {
|
|
|
35538
35538
|
const m = new Error(`No audio track selected for current audio group-ID(s): ${(o = this.groupIds) == null ? void 0 : o.join(",")} track count: ${r.length}`);
|
|
35539
35539
|
this.warn(m.message), this.hls.trigger(w.ERROR, {
|
|
35540
35540
|
type: Te.MEDIA_ERROR,
|
|
35541
|
-
details:
|
|
35541
|
+
details: G.AUDIO_TRACK_LOAD_ERROR,
|
|
35542
35542
|
fatal: !0,
|
|
35543
35543
|
error: m
|
|
35544
35544
|
});
|
|
@@ -35751,7 +35751,7 @@ class pP extends tc {
|
|
|
35751
35751
|
// If something goes wrong, proceed to next frag, if we were processing one.
|
|
35752
35752
|
onError(e, t) {
|
|
35753
35753
|
const i = t.frag;
|
|
35754
|
-
(i == null ? void 0 : i.type) === Ae.SUBTITLE && (t.details ===
|
|
35754
|
+
(i == null ? void 0 : i.type) === Ae.SUBTITLE && (t.details === G.FRAG_GAP && this.fragmentTracker.fragBuffered(i, !0), this.fragCurrent && this.fragCurrent.abortRequests(), this.state !== X.STOPPED && (this.state = X.IDLE));
|
|
35755
35755
|
}
|
|
35756
35756
|
// Got all new subtitle levels.
|
|
35757
35757
|
onSubtitleTracksUpdated(e, {
|
|
@@ -35818,7 +35818,7 @@ class pP extends tc {
|
|
|
35818
35818
|
this.decrypter.decrypt(new Uint8Array(i), n.key.buffer, n.iv.buffer).catch((r) => {
|
|
35819
35819
|
throw a.trigger(w.ERROR, {
|
|
35820
35820
|
type: Te.MEDIA_ERROR,
|
|
35821
|
-
details:
|
|
35821
|
+
details: G.FRAG_DECRYPT_ERROR,
|
|
35822
35822
|
fatal: !1,
|
|
35823
35823
|
error: r,
|
|
35824
35824
|
reason: r.message,
|
|
@@ -36458,7 +36458,7 @@ class AP {
|
|
|
36458
36458
|
const O = {
|
|
36459
36459
|
type: Te.MEDIA_ERROR,
|
|
36460
36460
|
parent: c.type,
|
|
36461
|
-
details:
|
|
36461
|
+
details: G.BUFFER_APPEND_ERROR,
|
|
36462
36462
|
sourceBufferName: r,
|
|
36463
36463
|
frag: c,
|
|
36464
36464
|
part: l,
|
|
@@ -36468,10 +36468,10 @@ class AP {
|
|
|
36468
36468
|
fatal: !1
|
|
36469
36469
|
};
|
|
36470
36470
|
if (S.code === DOMException.QUOTA_EXCEEDED_ERR)
|
|
36471
|
-
O.details =
|
|
36471
|
+
O.details = G.BUFFER_FULL_ERROR;
|
|
36472
36472
|
else {
|
|
36473
36473
|
const E = ++this.appendErrors[r];
|
|
36474
|
-
O.details =
|
|
36474
|
+
O.details = G.BUFFER_APPEND_ERROR, this.warn(`Failed ${E}/${i.config.appendErrorMaxRetry} times to append segment in "${r}" sourceBuffer`), E >= i.config.appendErrorMaxRetry && (O.fatal = !0);
|
|
36475
36475
|
}
|
|
36476
36476
|
i.trigger(w.ERROR, O);
|
|
36477
36477
|
}
|
|
@@ -36660,7 +36660,7 @@ class AP {
|
|
|
36660
36660
|
const o = new Error("could not create source buffer for media codec(s)");
|
|
36661
36661
|
this.hls.trigger(w.ERROR, {
|
|
36662
36662
|
type: Te.MEDIA_ERROR,
|
|
36663
|
-
details:
|
|
36663
|
+
details: G.BUFFER_INCOMPATIBLE_CODECS_ERROR,
|
|
36664
36664
|
fatal: !0,
|
|
36665
36665
|
error: o,
|
|
36666
36666
|
reason: o.message
|
|
@@ -36703,7 +36703,7 @@ class AP {
|
|
|
36703
36703
|
} catch (l) {
|
|
36704
36704
|
this.error(`error while trying to add sourceBuffer: ${l.message}`), this.hls.trigger(w.ERROR, {
|
|
36705
36705
|
type: Te.MEDIA_ERROR,
|
|
36706
|
-
details:
|
|
36706
|
+
details: G.BUFFER_ADD_CODEC_ERROR,
|
|
36707
36707
|
fatal: !1,
|
|
36708
36708
|
error: l,
|
|
36709
36709
|
sourceBufferName: a,
|
|
@@ -36739,7 +36739,7 @@ class AP {
|
|
|
36739
36739
|
const n = new Error(`${e} SourceBuffer error. MediaSource readyState: ${(i = this.mediaSource) == null ? void 0 : i.readyState}`);
|
|
36740
36740
|
this.error(`${n}`, t), this.hls.trigger(w.ERROR, {
|
|
36741
36741
|
type: Te.MEDIA_ERROR,
|
|
36742
|
-
details:
|
|
36742
|
+
details: G.BUFFER_APPENDING_ERROR,
|
|
36743
36743
|
sourceBufferName: e,
|
|
36744
36744
|
error: n,
|
|
36745
36745
|
fatal: !1
|
|
@@ -37986,7 +37986,7 @@ const zP = function(e, t, i) {
|
|
|
37986
37986
|
}
|
|
37987
37987
|
e.presentationOffset = i;
|
|
37988
37988
|
};
|
|
37989
|
-
function
|
|
37989
|
+
function GP(s, e, t, i, n, a, o) {
|
|
37990
37990
|
const r = new DP(), c = ys(new Uint8Array(s)).trim().replace(NP, `
|
|
37991
37991
|
`).split(`
|
|
37992
37992
|
`), l = [], d = e ? iP(e.baseTime, e.timescale) : 0;
|
|
@@ -38031,7 +38031,7 @@ function jP(s, e, t, i, n, a, o) {
|
|
|
38031
38031
|
`);
|
|
38032
38032
|
}), r.flush();
|
|
38033
38033
|
}
|
|
38034
|
-
const Ro = "stpp.ttml.im1t", up = /^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/, hp = /^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,
|
|
38034
|
+
const Ro = "stpp.ttml.im1t", up = /^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/, hp = /^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/, jP = {
|
|
38035
38035
|
left: "start",
|
|
38036
38036
|
center: "center",
|
|
38037
38037
|
right: "end",
|
|
@@ -38080,7 +38080,7 @@ function VP(s, e) {
|
|
|
38080
38080
|
textAlign: O
|
|
38081
38081
|
} = S;
|
|
38082
38082
|
if (O) {
|
|
38083
|
-
const E =
|
|
38083
|
+
const E = jP[O];
|
|
38084
38084
|
E && (p.lineAlign = E), p.align = O;
|
|
38085
38085
|
}
|
|
38086
38086
|
return lt(p, S), p;
|
|
@@ -38433,7 +38433,7 @@ class YP {
|
|
|
38433
38433
|
return;
|
|
38434
38434
|
}
|
|
38435
38435
|
const c = this.hls, l = (t = i.initSegment) != null && t.data ? Ht(i.initSegment.data, new Uint8Array(n)) : n;
|
|
38436
|
-
|
|
38436
|
+
GP(l, this.initPTS[i.cc], this.vttCCs, i.cc, i.start, (d) => {
|
|
38437
38437
|
this._appendCues(d, i.level), c.trigger(w.SUBTITLE_FRAG_PROCESSED, {
|
|
38438
38438
|
success: !0,
|
|
38439
38439
|
frag: i
|
|
@@ -38786,7 +38786,7 @@ class oi {
|
|
|
38786
38786
|
})).catch((u) => {
|
|
38787
38787
|
l.length ? c(l) : u instanceof Nt ? r(u) : r(new Nt({
|
|
38788
38788
|
type: Te.KEY_SYSTEM_ERROR,
|
|
38789
|
-
details:
|
|
38789
|
+
details: G.KEY_SYSTEM_NO_ACCESS,
|
|
38790
38790
|
error: u,
|
|
38791
38791
|
fatal: !0
|
|
38792
38792
|
}, u.message));
|
|
@@ -38872,7 +38872,7 @@ class oi {
|
|
|
38872
38872
|
return this.getKeySystemSelectionPromise(a).then(({
|
|
38873
38873
|
keySystem: o
|
|
38874
38874
|
}) => {
|
|
38875
|
-
const r =
|
|
38875
|
+
const r = Gu(o);
|
|
38876
38876
|
r ? t(r) : i(new Error(`Unable to find format for key-system "${o}"`));
|
|
38877
38877
|
}).catch(i);
|
|
38878
38878
|
});
|
|
@@ -38901,7 +38901,7 @@ class oi {
|
|
|
38901
38901
|
handleError(e) {
|
|
38902
38902
|
this.hls && (this.error(e.message), e instanceof Nt ? this.hls.trigger(w.ERROR, e.data) : this.hls.trigger(w.ERROR, {
|
|
38903
38903
|
type: Te.KEY_SYSTEM_ERROR,
|
|
38904
|
-
details:
|
|
38904
|
+
details: G.KEY_SYSTEM_NO_KEYS,
|
|
38905
38905
|
error: e,
|
|
38906
38906
|
fatal: !0
|
|
38907
38907
|
}));
|
|
@@ -38918,7 +38918,7 @@ class oi {
|
|
|
38918
38918
|
if (e.length || (e = mo(this.config)), e.length === 0)
|
|
38919
38919
|
throw new Nt({
|
|
38920
38920
|
type: Te.KEY_SYSTEM_ERROR,
|
|
38921
|
-
details:
|
|
38921
|
+
details: G.KEY_SYSTEM_NO_CONFIGURED_LICENSE,
|
|
38922
38922
|
fatal: !0
|
|
38923
38923
|
}, `Missing key-system license configuration options ${JSON.stringify({
|
|
38924
38924
|
drmSystems: this.config.drmSystems
|
|
@@ -38973,7 +38973,7 @@ class oi {
|
|
|
38973
38973
|
}) => {
|
|
38974
38974
|
var m;
|
|
38975
38975
|
this.throwIfDestroyed();
|
|
38976
|
-
const h = new
|
|
38976
|
+
const h = new ji("ISO-23001-7", o, (m = Gu(d)) != null ? m : "");
|
|
38977
38977
|
return h.pssh = new Uint8Array(i), h.keyId = n, this.attemptSetMediaKeys(d, u).then(() => {
|
|
38978
38978
|
this.throwIfDestroyed();
|
|
38979
38979
|
const f = this.createMediaKeySessionContext({
|
|
@@ -39045,11 +39045,11 @@ class oi {
|
|
|
39045
39045
|
d.on("error", g), d.on("keyStatus", (p) => {
|
|
39046
39046
|
p.startsWith("usable") ? f() : p === "output-restricted" ? g(new Nt({
|
|
39047
39047
|
type: Te.KEY_SYSTEM_ERROR,
|
|
39048
|
-
details:
|
|
39048
|
+
details: G.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,
|
|
39049
39049
|
fatal: !1
|
|
39050
39050
|
}, "HDCP level output restricted")) : p === "internal-error" ? g(new Nt({
|
|
39051
39051
|
type: Te.KEY_SYSTEM_ERROR,
|
|
39052
|
-
details:
|
|
39052
|
+
details: G.KEY_SYSTEM_STATUS_INTERNAL_ERROR,
|
|
39053
39053
|
fatal: !0
|
|
39054
39054
|
}, `key status changed to "${p}"`)) : p === "expired" ? g(new Error("key expired while generating request")) : this.warn(`unhandled key status change "${p}"`);
|
|
39055
39055
|
});
|
|
@@ -39060,7 +39060,7 @@ class oi {
|
|
|
39060
39060
|
}).catch((f) => {
|
|
39061
39061
|
throw new Nt({
|
|
39062
39062
|
type: Te.KEY_SYSTEM_ERROR,
|
|
39063
|
-
details:
|
|
39063
|
+
details: G.KEY_SYSTEM_NO_SESSION,
|
|
39064
39064
|
error: f,
|
|
39065
39065
|
fatal: !1
|
|
39066
39066
|
}, `Error generating key-session request: ${f}`);
|
|
@@ -39092,7 +39092,7 @@ class oi {
|
|
|
39092
39092
|
onError: (m, h, f, g) => {
|
|
39093
39093
|
r(new Nt({
|
|
39094
39094
|
type: Te.KEY_SYSTEM_ERROR,
|
|
39095
|
-
details:
|
|
39095
|
+
details: G.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,
|
|
39096
39096
|
fatal: !0,
|
|
39097
39097
|
networkDetails: f,
|
|
39098
39098
|
response: St({
|
|
@@ -39104,7 +39104,7 @@ class oi {
|
|
|
39104
39104
|
onTimeout: (m, h, f) => {
|
|
39105
39105
|
r(new Nt({
|
|
39106
39106
|
type: Te.KEY_SYSTEM_ERROR,
|
|
39107
|
-
details:
|
|
39107
|
+
details: G.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,
|
|
39108
39108
|
fatal: !0,
|
|
39109
39109
|
networkDetails: f,
|
|
39110
39110
|
response: {
|
|
@@ -39127,7 +39127,7 @@ class oi {
|
|
|
39127
39127
|
}).catch((o) => {
|
|
39128
39128
|
a(new Nt({
|
|
39129
39129
|
type: Te.KEY_SYSTEM_ERROR,
|
|
39130
|
-
details:
|
|
39130
|
+
details: G.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,
|
|
39131
39131
|
error: o,
|
|
39132
39132
|
fatal: !0
|
|
39133
39133
|
}, o.message));
|
|
@@ -39138,7 +39138,7 @@ class oi {
|
|
|
39138
39138
|
return this.requestLicense(e, new Uint8Array(t)).then((i) => this.updateKeySession(e, new Uint8Array(i)).catch((n) => {
|
|
39139
39139
|
throw new Nt({
|
|
39140
39140
|
type: Te.KEY_SYSTEM_ERROR,
|
|
39141
|
-
details:
|
|
39141
|
+
details: G.KEY_SYSTEM_SESSION_UPDATE_FAILED,
|
|
39142
39142
|
error: n,
|
|
39143
39143
|
fatal: !0
|
|
39144
39144
|
}, n.message);
|
|
@@ -39208,7 +39208,7 @@ class oi {
|
|
|
39208
39208
|
if (this._requestLicenseFailureCount++, this._requestLicenseFailureCount > l || r.status >= 400 && r.status < 500)
|
|
39209
39209
|
a(new Nt({
|
|
39210
39210
|
type: Te.KEY_SYSTEM_ERROR,
|
|
39211
|
-
details:
|
|
39211
|
+
details: G.KEY_SYSTEM_LICENSE_REQUEST_FAILED,
|
|
39212
39212
|
fatal: !0,
|
|
39213
39213
|
networkDetails: r,
|
|
39214
39214
|
response: {
|
|
@@ -39239,7 +39239,7 @@ class oi {
|
|
|
39239
39239
|
}
|
|
39240
39240
|
onMediaDetached() {
|
|
39241
39241
|
const e = this.media, t = this.mediaKeySessions;
|
|
39242
|
-
e && (e.removeEventListener("encrypted", this.onMediaEncrypted), e.removeEventListener("waitingforkey", this.onWaitingForKey), this.media = null), this._requestLicenseFailureCount = 0, this.setMediaKeysQueue = [], this.mediaKeySessions = [], this.keyIdToKeySessionPromise = {},
|
|
39242
|
+
e && (e.removeEventListener("encrypted", this.onMediaEncrypted), e.removeEventListener("waitingforkey", this.onWaitingForKey), this.media = null), this._requestLicenseFailureCount = 0, this.setMediaKeysQueue = [], this.mediaKeySessions = [], this.keyIdToKeySessionPromise = {}, ji.clearKeyUriToKeyIdMap();
|
|
39243
39243
|
const i = t.length;
|
|
39244
39244
|
oi.CDMCleanupPromise = Promise.all(t.map((n) => this.removeSession(n)).concat(e == null ? void 0 : e.setMediaKeys(null).catch((n) => {
|
|
39245
39245
|
this.log(`Could not clear media keys: ${n}`);
|
|
@@ -39286,10 +39286,10 @@ var Ft;
|
|
|
39286
39286
|
(function(s) {
|
|
39287
39287
|
s.MANIFEST = "m", s.AUDIO = "a", s.VIDEO = "v", s.MUXED = "av", s.INIT = "i", s.CAPTION = "c", s.TIMED_TEXT = "tt", s.KEY = "k", s.OTHER = "o";
|
|
39288
39288
|
})(Ft || (Ft = {}));
|
|
39289
|
-
var
|
|
39289
|
+
var Gr;
|
|
39290
39290
|
(function(s) {
|
|
39291
39291
|
s.DASH = "d", s.HLS = "h", s.SMOOTH = "s", s.OTHER = "o";
|
|
39292
|
-
})(
|
|
39292
|
+
})(Gr || (Gr = {}));
|
|
39293
39293
|
var Vs;
|
|
39294
39294
|
(function(s) {
|
|
39295
39295
|
s.OBJECT = "CMCD-Object", s.REQUEST = "CMCD-Request", s.SESSION = "CMCD-Session", s.STATUS = "CMCD-Status";
|
|
@@ -39380,7 +39380,7 @@ function Ph(s) {
|
|
|
39380
39380
|
throw bs(e, a8);
|
|
39381
39381
|
return e;
|
|
39382
39382
|
}
|
|
39383
|
-
function
|
|
39383
|
+
function jr(s) {
|
|
39384
39384
|
switch (typeof s) {
|
|
39385
39385
|
case "number":
|
|
39386
39386
|
if (!me(s))
|
|
@@ -39409,10 +39409,10 @@ function Vr(s) {
|
|
|
39409
39409
|
return s;
|
|
39410
39410
|
}
|
|
39411
39411
|
function dc(s) {
|
|
39412
|
-
return s == null ? "" : Object.entries(s).map(([e, t]) => t === !0 ? `;${Vr(e)}` : `;${Vr(e)}=${
|
|
39412
|
+
return s == null ? "" : Object.entries(s).map(([e, t]) => t === !0 ? `;${Vr(e)}` : `;${Vr(e)}=${jr(t)}`).join("");
|
|
39413
39413
|
}
|
|
39414
39414
|
function vp(s) {
|
|
39415
|
-
return s instanceof hi ? `${
|
|
39415
|
+
return s instanceof hi ? `${jr(s.value)}${dc(s.params)}` : jr(s);
|
|
39416
39416
|
}
|
|
39417
39417
|
function g8(s) {
|
|
39418
39418
|
return `(${s.value.map(vp).join(" ")})${dc(s.params)}`;
|
|
@@ -39602,7 +39602,7 @@ class O8 {
|
|
|
39602
39602
|
var e;
|
|
39603
39603
|
return {
|
|
39604
39604
|
v: 1,
|
|
39605
|
-
sf:
|
|
39605
|
+
sf: Gr.HLS,
|
|
39606
39606
|
sid: this.sid,
|
|
39607
39607
|
cid: this.cid,
|
|
39608
39608
|
pr: (e = this.media) == null ? void 0 : e.playbackRate,
|
|
@@ -39978,7 +39978,7 @@ function Ap(s, e, t, i) {
|
|
|
39978
39978
|
const M8 = /^age:\s*[\d.]+\s*$/im;
|
|
39979
39979
|
class wp {
|
|
39980
39980
|
constructor(e) {
|
|
39981
|
-
this.xhrSetup = void 0, this.requestTimeout = void 0, this.retryTimeout = void 0, this.retryDelay = void 0, this.config = null, this.callbacks = null, this.context = null, this.loader = null, this.stats = void 0, this.xhrSetup = e && e.xhrSetup || null, this.stats = new
|
|
39981
|
+
this.xhrSetup = void 0, this.requestTimeout = void 0, this.retryTimeout = void 0, this.retryDelay = void 0, this.config = null, this.callbacks = null, this.context = null, this.loader = null, this.stats = void 0, this.xhrSetup = e && e.xhrSetup || null, this.stats = new Ga(), this.retryDelay = 0;
|
|
39982
39982
|
}
|
|
39983
39983
|
destroy() {
|
|
39984
39984
|
this.callbacks = null, this.abortInternal(), this.loader = null, this.config = null, this.context = null, this.xhrSetup = null;
|
|
@@ -40120,7 +40120,7 @@ function P8() {
|
|
|
40120
40120
|
const B8 = /(\d+)-(\d+)\/(\d+)/;
|
|
40121
40121
|
class Nh {
|
|
40122
40122
|
constructor(e) {
|
|
40123
|
-
this.fetchSetup = void 0, this.requestTimeout = void 0, this.request = null, this.response = null, this.controller = void 0, this.context = null, this.config = null, this.callbacks = null, this.stats = void 0, this.loader = null, this.fetchSetup = e.fetchSetup || z8, this.controller = new self.AbortController(), this.stats = new
|
|
40123
|
+
this.fetchSetup = void 0, this.requestTimeout = void 0, this.request = null, this.response = null, this.controller = void 0, this.context = null, this.config = null, this.callbacks = null, this.stats = void 0, this.loader = null, this.fetchSetup = e.fetchSetup || z8, this.controller = new self.AbortController(), this.stats = new Ga();
|
|
40124
40124
|
}
|
|
40125
40125
|
destroy() {
|
|
40126
40126
|
this.loader = this.callbacks = this.context = this.config = this.request = null, this.abortInternal(), this.response = null, this.fetchSetup = this.controller = this.stats = null;
|
|
@@ -40153,7 +40153,7 @@ class Nh {
|
|
|
40153
40153
|
status: h,
|
|
40154
40154
|
statusText: f
|
|
40155
40155
|
} = u;
|
|
40156
|
-
throw new
|
|
40156
|
+
throw new G8(f || "fetch, bad network response", h, u);
|
|
40157
40157
|
}
|
|
40158
40158
|
return n.loading.first = m, n.total = U8(u.headers) || n.total, o && me(t.highWaterMark) ? this.loadProgressively(u, n, e, t.highWaterMark, o) : r ? u.arrayBuffer() : e.responseType === "json" ? u.json() : u.text();
|
|
40159
40159
|
}).then((u) => {
|
|
@@ -40229,12 +40229,12 @@ function U8(s) {
|
|
|
40229
40229
|
function z8(s, e) {
|
|
40230
40230
|
return new self.Request(s.url, e);
|
|
40231
40231
|
}
|
|
40232
|
-
class
|
|
40232
|
+
class G8 extends Error {
|
|
40233
40233
|
constructor(e, t, i) {
|
|
40234
40234
|
super(e), this.code = void 0, this.details = void 0, this.code = t, this.details = i;
|
|
40235
40235
|
}
|
|
40236
40236
|
}
|
|
40237
|
-
const
|
|
40237
|
+
const j8 = /\s/, V8 = {
|
|
40238
40238
|
newCue(s, e, t, i) {
|
|
40239
40239
|
const n = [];
|
|
40240
40240
|
let a, o, r, c, l;
|
|
@@ -40243,7 +40243,7 @@ const G8 = /\s/, V8 = {
|
|
|
40243
40243
|
if (a = i.rows[m], r = !0, c = 0, l = "", !a.isEmpty()) {
|
|
40244
40244
|
var u;
|
|
40245
40245
|
for (let g = 0; g < a.chars.length; g++)
|
|
40246
|
-
|
|
40246
|
+
j8.test(a.chars[g].uchar) && r ? c++ : (l += a.chars[g].uchar, r = !1);
|
|
40247
40247
|
a.cueStartTime = e, e === t && (t += 1e-4), c >= 16 ? c-- : c++;
|
|
40248
40248
|
const h = dp(l.trim()), f = lc(e, t, h);
|
|
40249
40249
|
s != null && (u = s.cues) != null && u.getCueById(f) || (o = new d(e, t, h), o.id = f, o.line = m + 1, o.align = "left", o.position = 10 + Math.min(80, Math.floor(c * 8 / 32) * 10), n.push(o));
|
|
@@ -40655,7 +40655,7 @@ class Z8 extends _l {
|
|
|
40655
40655
|
const f = new Error("no level with compatible codecs found in manifest");
|
|
40656
40656
|
this.hls.trigger(w.ERROR, {
|
|
40657
40657
|
type: Te.MEDIA_ERROR,
|
|
40658
|
-
details:
|
|
40658
|
+
details: G.MANIFEST_INCOMPATIBLE_CODECS_ERROR,
|
|
40659
40659
|
fatal: !0,
|
|
40660
40660
|
url: t.url,
|
|
40661
40661
|
error: f,
|
|
@@ -40742,7 +40742,7 @@ class Z8 extends _l {
|
|
|
40742
40742
|
const d = new Error("invalid level idx"), u = e < 0;
|
|
40743
40743
|
if (this.hls.trigger(w.ERROR, {
|
|
40744
40744
|
type: Te.OTHER_ERROR,
|
|
40745
|
-
details:
|
|
40745
|
+
details: G.LEVEL_SWITCH_ERROR,
|
|
40746
40746
|
level: e,
|
|
40747
40747
|
fatal: u,
|
|
40748
40748
|
error: d,
|
|
@@ -40929,7 +40929,7 @@ class W8 {
|
|
|
40929
40929
|
}
|
|
40930
40930
|
this.keyUriToKeyInfo = {};
|
|
40931
40931
|
}
|
|
40932
|
-
createKeyLoadError(e, t =
|
|
40932
|
+
createKeyLoadError(e, t = G.KEY_LOAD_ERROR, i, n, a) {
|
|
40933
40933
|
return new Ss({
|
|
40934
40934
|
type: Te.NETWORK_ERROR,
|
|
40935
40935
|
details: t,
|
|
@@ -40966,11 +40966,11 @@ class W8 {
|
|
|
40966
40966
|
const a = e.decryptdata;
|
|
40967
40967
|
if (!a) {
|
|
40968
40968
|
const l = new Error(t ? `Expected frag.decryptdata to be defined after setting format ${t}` : "Missing decryption data on fragment in onKeyLoading");
|
|
40969
|
-
return Promise.reject(this.createKeyLoadError(e,
|
|
40969
|
+
return Promise.reject(this.createKeyLoadError(e, G.KEY_LOAD_ERROR, l));
|
|
40970
40970
|
}
|
|
40971
40971
|
const o = a.uri;
|
|
40972
40972
|
if (!o)
|
|
40973
|
-
return Promise.reject(this.createKeyLoadError(e,
|
|
40973
|
+
return Promise.reject(this.createKeyLoadError(e, G.KEY_LOAD_ERROR, new Error(`Invalid key URI: "${o}"`)));
|
|
40974
40974
|
let r = this.keyUriToKeyInfo[o];
|
|
40975
40975
|
if ((i = r) != null && i.decryptdata.key)
|
|
40976
40976
|
return a.key = r.decryptdata.key, Promise.resolve({
|
|
@@ -41004,7 +41004,7 @@ class W8 {
|
|
|
41004
41004
|
case "AES-128":
|
|
41005
41005
|
return this.loadKeyHTTP(r, e);
|
|
41006
41006
|
default:
|
|
41007
|
-
return Promise.reject(this.createKeyLoadError(e,
|
|
41007
|
+
return Promise.reject(this.createKeyLoadError(e, G.KEY_LOAD_ERROR, new Error(`Key supplied with unsupported METHOD: "${a.method}"`)));
|
|
41008
41008
|
}
|
|
41009
41009
|
}
|
|
41010
41010
|
loadKeyEME(e, t) {
|
|
@@ -41043,23 +41043,23 @@ class W8 {
|
|
|
41043
41043
|
url: C
|
|
41044
41044
|
} = f;
|
|
41045
41045
|
if (!p.decryptdata || A !== this.keyUriToKeyInfo[C])
|
|
41046
|
-
return r(this.createKeyLoadError(p,
|
|
41046
|
+
return r(this.createKeyLoadError(p, G.KEY_LOAD_ERROR, new Error("after key load, decryptdata unset or changed"), g));
|
|
41047
41047
|
A.decryptdata.key = p.decryptdata.key = new Uint8Array(m.data), p.keyLoader = null, A.loader = null, o({
|
|
41048
41048
|
frag: p,
|
|
41049
41049
|
keyInfo: A
|
|
41050
41050
|
});
|
|
41051
41051
|
},
|
|
41052
41052
|
onError: (m, h, f, g) => {
|
|
41053
|
-
this.resetLoader(h), r(this.createKeyLoadError(t,
|
|
41053
|
+
this.resetLoader(h), r(this.createKeyLoadError(t, G.KEY_LOAD_ERROR, new Error(`HTTP Error ${m.code} loading key ${m.text}`), f, St({
|
|
41054
41054
|
url: c.url,
|
|
41055
41055
|
data: void 0
|
|
41056
41056
|
}, m)));
|
|
41057
41057
|
},
|
|
41058
41058
|
onTimeout: (m, h, f) => {
|
|
41059
|
-
this.resetLoader(h), r(this.createKeyLoadError(t,
|
|
41059
|
+
this.resetLoader(h), r(this.createKeyLoadError(t, G.KEY_LOAD_TIMEOUT, new Error("key loading timed out"), f));
|
|
41060
41060
|
},
|
|
41061
41061
|
onAbort: (m, h, f) => {
|
|
41062
|
-
this.resetLoader(h), r(this.createKeyLoadError(t,
|
|
41062
|
+
this.resetLoader(h), r(this.createKeyLoadError(t, G.INTERNAL_ABORTED, new Error("key loading aborted"), f));
|
|
41063
41063
|
}
|
|
41064
41064
|
};
|
|
41065
41065
|
a.load(c, d, u);
|
|
@@ -41199,7 +41199,7 @@ class eB {
|
|
|
41199
41199
|
const a = new Error(`Playback stalling at @${i.currentTime} due to low buffer (${JSON.stringify(e)})`);
|
|
41200
41200
|
P.warn(a.message), t.trigger(w.ERROR, {
|
|
41201
41201
|
type: Te.MEDIA_ERROR,
|
|
41202
|
-
details:
|
|
41202
|
+
details: G.BUFFER_STALLED_ERROR,
|
|
41203
41203
|
fatal: !1,
|
|
41204
41204
|
error: a,
|
|
41205
41205
|
buffer: e.len
|
|
@@ -41255,7 +41255,7 @@ class eB {
|
|
|
41255
41255
|
const m = new Error(`fragment loaded with buffer holes, seeking from ${a} to ${u}`);
|
|
41256
41256
|
i.trigger(w.ERROR, {
|
|
41257
41257
|
type: Te.MEDIA_ERROR,
|
|
41258
|
-
details:
|
|
41258
|
+
details: G.BUFFER_SEEK_OVER_HOLE,
|
|
41259
41259
|
fatal: !1,
|
|
41260
41260
|
error: m,
|
|
41261
41261
|
reason: m.message,
|
|
@@ -41285,7 +41285,7 @@ class eB {
|
|
|
41285
41285
|
const o = a + (n + 1) * e.nudgeOffset, r = new Error(`Nudging 'currentTime' from ${a} to ${o}`);
|
|
41286
41286
|
P.warn(r.message), i.currentTime = o, t.trigger(w.ERROR, {
|
|
41287
41287
|
type: Te.MEDIA_ERROR,
|
|
41288
|
-
details:
|
|
41288
|
+
details: G.BUFFER_NUDGE_ON_STALL,
|
|
41289
41289
|
error: r,
|
|
41290
41290
|
fatal: !1
|
|
41291
41291
|
});
|
|
@@ -41293,7 +41293,7 @@ class eB {
|
|
|
41293
41293
|
const o = new Error(`Playhead still not moving while enough data buffered @${a} after ${e.nudgeMaxRetry} nudges`);
|
|
41294
41294
|
P.error(o.message), t.trigger(w.ERROR, {
|
|
41295
41295
|
type: Te.MEDIA_ERROR,
|
|
41296
|
-
details:
|
|
41296
|
+
details: G.BUFFER_STALLED_ERROR,
|
|
41297
41297
|
error: o,
|
|
41298
41298
|
fatal: !0
|
|
41299
41299
|
});
|
|
@@ -41646,31 +41646,31 @@ class sB extends tc {
|
|
|
41646
41646
|
return;
|
|
41647
41647
|
}
|
|
41648
41648
|
switch (t.details) {
|
|
41649
|
-
case
|
|
41650
|
-
case
|
|
41651
|
-
case
|
|
41652
|
-
case
|
|
41653
|
-
case
|
|
41654
|
-
case
|
|
41655
|
-
case
|
|
41649
|
+
case G.FRAG_GAP:
|
|
41650
|
+
case G.FRAG_PARSING_ERROR:
|
|
41651
|
+
case G.FRAG_DECRYPT_ERROR:
|
|
41652
|
+
case G.FRAG_LOAD_ERROR:
|
|
41653
|
+
case G.FRAG_LOAD_TIMEOUT:
|
|
41654
|
+
case G.KEY_LOAD_ERROR:
|
|
41655
|
+
case G.KEY_LOAD_TIMEOUT:
|
|
41656
41656
|
this.onFragmentOrKeyLoadError(Ae.MAIN, t);
|
|
41657
41657
|
break;
|
|
41658
|
-
case
|
|
41659
|
-
case
|
|
41660
|
-
case
|
|
41658
|
+
case G.LEVEL_LOAD_ERROR:
|
|
41659
|
+
case G.LEVEL_LOAD_TIMEOUT:
|
|
41660
|
+
case G.LEVEL_PARSING_ERROR:
|
|
41661
41661
|
!t.levelRetry && this.state === X.WAITING_LEVEL && ((i = t.context) == null ? void 0 : i.type) === ze.LEVEL && (this.state = X.IDLE);
|
|
41662
41662
|
break;
|
|
41663
|
-
case
|
|
41664
|
-
case
|
|
41663
|
+
case G.BUFFER_APPEND_ERROR:
|
|
41664
|
+
case G.BUFFER_FULL_ERROR:
|
|
41665
41665
|
if (!t.parent || t.parent !== "main")
|
|
41666
41666
|
return;
|
|
41667
|
-
if (t.details ===
|
|
41667
|
+
if (t.details === G.BUFFER_APPEND_ERROR) {
|
|
41668
41668
|
this.resetLoadingState();
|
|
41669
41669
|
return;
|
|
41670
41670
|
}
|
|
41671
41671
|
this.reduceLengthAndFlushBuffer(t) && this.flushMainBuffer(0, Number.POSITIVE_INFINITY);
|
|
41672
41672
|
break;
|
|
41673
|
-
case
|
|
41673
|
+
case G.INTERNAL_EXCEPTION:
|
|
41674
41674
|
this.recoverWorkerError(t);
|
|
41675
41675
|
break;
|
|
41676
41676
|
}
|
|
@@ -41971,7 +41971,7 @@ class Bs {
|
|
|
41971
41971
|
return Te;
|
|
41972
41972
|
}
|
|
41973
41973
|
static get ErrorDetails() {
|
|
41974
|
-
return
|
|
41974
|
+
return G;
|
|
41975
41975
|
}
|
|
41976
41976
|
/**
|
|
41977
41977
|
* Get the default configuration applied to new instances.
|
|
@@ -42049,7 +42049,7 @@ class Bs {
|
|
|
42049
42049
|
const n = e === w.ERROR;
|
|
42050
42050
|
this.trigger(w.ERROR, {
|
|
42051
42051
|
type: Te.OTHER_ERROR,
|
|
42052
|
-
details:
|
|
42052
|
+
details: G.INTERNAL_EXCEPTION,
|
|
42053
42053
|
fatal: n,
|
|
42054
42054
|
event: e,
|
|
42055
42055
|
error: i
|
|
@@ -42566,7 +42566,7 @@ const iB = (s) => (Ye("data-v-bbb70a6a"), s = s(), Ze(), s), nB = /* @__PURE__ *
|
|
|
42566
42566
|
emits: ["close", "last-story-index", "swipe"],
|
|
42567
42567
|
setup(s, { emit: e }) {
|
|
42568
42568
|
const t = s;
|
|
42569
|
-
Je((
|
|
42569
|
+
Je((j) => ({
|
|
42570
42570
|
"67ff94e8": g.value,
|
|
42571
42571
|
"1e735959": p.value,
|
|
42572
42572
|
"7f492b7c": E.value
|
|
@@ -42596,24 +42596,24 @@ const iB = (s) => (Ye("data-v-bbb70a6a"), s = s(), Ze(), s), nB = /* @__PURE__ *
|
|
|
42596
42596
|
ids: [466, 477],
|
|
42597
42597
|
name: "Penal Recibido"
|
|
42598
42598
|
}
|
|
42599
|
-
].reduce((
|
|
42600
|
-
|
|
42601
|
-
}),
|
|
42599
|
+
].reduce((j, $) => ($.ids.forEach((oe) => {
|
|
42600
|
+
j.set(oe, $.name);
|
|
42601
|
+
}), j), /* @__PURE__ */ new Map()), a = L(null), o = L(null), r = L([]), c = L(0), l = L(null), d = L(0), u = L(0), m = L(0), h = L(!1), f = L(0), g = L("auto"), p = L("100%"), A = L(null), C = L(0), S = L(null), O = L(null), E = se(() => Q() ? "7vw" : "16px"), F = se(() => r.value[c.value]);
|
|
42602
42602
|
function I() {
|
|
42603
42603
|
o.value.muted = !1, o.value.play();
|
|
42604
42604
|
}
|
|
42605
42605
|
const V = se(() => !F.value.isHls && ["ios"].includes(eo()));
|
|
42606
42606
|
ye(
|
|
42607
42607
|
() => F.value,
|
|
42608
|
-
(
|
|
42609
|
-
|
|
42608
|
+
(j) => {
|
|
42609
|
+
j && N();
|
|
42610
42610
|
}
|
|
42611
42611
|
), ye(
|
|
42612
42612
|
() => t.stories,
|
|
42613
|
-
(
|
|
42614
|
-
if (
|
|
42613
|
+
(j) => {
|
|
42614
|
+
if (j.length) {
|
|
42615
42615
|
c.value = 0, m.value = 0;
|
|
42616
|
-
const $ =
|
|
42616
|
+
const $ = j.map((oe) => ({
|
|
42617
42617
|
...oe,
|
|
42618
42618
|
progress: 0,
|
|
42619
42619
|
isHls: oe.url.includes(".m3u8"),
|
|
@@ -42628,14 +42628,14 @@ const iB = (s) => (Ye("data-v-bbb70a6a"), s = s(), Ze(), s), nB = /* @__PURE__ *
|
|
|
42628
42628
|
{ immediate: !0 }
|
|
42629
42629
|
), ye(
|
|
42630
42630
|
() => a.value,
|
|
42631
|
-
(
|
|
42632
|
-
|
|
42631
|
+
(j) => {
|
|
42632
|
+
j && D();
|
|
42633
42633
|
},
|
|
42634
42634
|
{ flush: "post" }
|
|
42635
42635
|
), ye(
|
|
42636
42636
|
() => l.value,
|
|
42637
|
-
(
|
|
42638
|
-
|
|
42637
|
+
(j) => {
|
|
42638
|
+
j && (IR() ? (j.addEventListener("touchstart", re), j.addEventListener("touchend", ae)) : (j.addEventListener("mousedown", re), j.addEventListener("mouseup", ae)));
|
|
42639
42639
|
},
|
|
42640
42640
|
{ flush: "post" }
|
|
42641
42641
|
);
|
|
@@ -42657,26 +42657,26 @@ const iB = (s) => (Ye("data-v-bbb70a6a"), s = s(), Ze(), s), nB = /* @__PURE__ *
|
|
|
42657
42657
|
]
|
|
42658
42658
|
});
|
|
42659
42659
|
}
|
|
42660
|
-
function W(
|
|
42660
|
+
function W(j) {
|
|
42661
42661
|
if (a.value)
|
|
42662
42662
|
if (Bs.isSupported()) {
|
|
42663
42663
|
a.value.src = null;
|
|
42664
42664
|
let $ = new Bs();
|
|
42665
|
-
$.loadSource(
|
|
42665
|
+
$.loadSource(j.url), $.attachMedia(a.value);
|
|
42666
42666
|
} else
|
|
42667
42667
|
o.value.source = {
|
|
42668
42668
|
type: "video",
|
|
42669
42669
|
sources: [
|
|
42670
42670
|
{
|
|
42671
|
-
src:
|
|
42671
|
+
src: j.url,
|
|
42672
42672
|
type: "video/mp4"
|
|
42673
42673
|
}
|
|
42674
42674
|
]
|
|
42675
42675
|
};
|
|
42676
42676
|
}
|
|
42677
42677
|
function ne() {
|
|
42678
|
-
const
|
|
42679
|
-
return
|
|
42678
|
+
const j = document.querySelector(".plyr__video-wrapper");
|
|
42679
|
+
return j && (C.value = j.getBoundingClientRect()), () => {
|
|
42680
42680
|
o.value.duration > 0 && (o.value.currentTime = F.value.startTime || 0, o.value.muted = !1, o.value.play());
|
|
42681
42681
|
};
|
|
42682
42682
|
}
|
|
@@ -42685,28 +42685,28 @@ const iB = (s) => (Ye("data-v-bbb70a6a"), s = s(), Ze(), s), nB = /* @__PURE__ *
|
|
|
42685
42685
|
F.value.progress = (o.value.currentTime - F.value.startTime) / F.value.duration * 100, (o.value.currentTime - F.value.startTime) / F.value.duration * 100 == 0 ? Q() && (h.value = !0) : Q() && (h.value = !1), (o.value.currentTime - F.value.startTime) / F.value.duration * 100 < 0 ? Q() || (O.value.style = "display: none", p.value = "100%") : Q() || (O.value.style = "display: block", p.value = "auto"), o.value.currentTime >= F.value.endTime && (o.value.pause(), ue());
|
|
42686
42686
|
};
|
|
42687
42687
|
}
|
|
42688
|
-
function ue(
|
|
42689
|
-
const $ = c.value +
|
|
42690
|
-
$ < 0 ? t.isFirstGameStories ? o.value && (o.value.currentTime = F.value.startTime) : he("right") : $ === r.value.length ? t.isLastGameStories ? xe() : he("left") : (c.value = $,
|
|
42688
|
+
function ue(j = 1) {
|
|
42689
|
+
const $ = c.value + j;
|
|
42690
|
+
$ < 0 ? t.isFirstGameStories ? o.value && (o.value.currentTime = F.value.startTime) : he("right") : $ === r.value.length ? t.isLastGameStories ? xe() : he("left") : (c.value = $, j === 1 && (m.value = c.value));
|
|
42691
42691
|
}
|
|
42692
42692
|
function fe() {
|
|
42693
42693
|
d.value > u.value ? he("left") : d.value < u.value ? he("right") : ve();
|
|
42694
42694
|
}
|
|
42695
|
-
function he(
|
|
42696
|
-
e("last-story-index", m.value), e("swipe",
|
|
42695
|
+
function he(j) {
|
|
42696
|
+
e("last-story-index", m.value), e("swipe", j);
|
|
42697
42697
|
}
|
|
42698
42698
|
function ve() {
|
|
42699
|
-
const
|
|
42699
|
+
const j = window.innerWidth / 2, $ = d.value < j;
|
|
42700
42700
|
F.value.progress = $ ? 0 : 100, o.value.pause(), ue($ ? -1 : 1);
|
|
42701
42701
|
}
|
|
42702
42702
|
function xe() {
|
|
42703
42703
|
o.value.pause(), o.value.muted = !0, e("last-story-index", m.value), e("close");
|
|
42704
42704
|
}
|
|
42705
|
-
function re(
|
|
42706
|
-
d.value =
|
|
42705
|
+
function re(j) {
|
|
42706
|
+
d.value = j.changedTouches ? j.changedTouches[0].clientX : j.clientX;
|
|
42707
42707
|
}
|
|
42708
|
-
function ae(
|
|
42709
|
-
u.value =
|
|
42708
|
+
function ae(j) {
|
|
42709
|
+
u.value = j.changedTouches ? j.changedTouches[0].clientX : j.clientX, fe();
|
|
42710
42710
|
}
|
|
42711
42711
|
function Q() {
|
|
42712
42712
|
return /iPhone|iPad/i.test(navigator.userAgent);
|
|
@@ -42716,8 +42716,8 @@ const iB = (s) => (Ye("data-v-bbb70a6a"), s = s(), Ze(), s), nB = /* @__PURE__ *
|
|
|
42716
42716
|
}
|
|
42717
42717
|
function Z() {
|
|
42718
42718
|
if (window.scrollTo(0, 100), eo() == "android") {
|
|
42719
|
-
const
|
|
42720
|
-
|
|
42719
|
+
const j = document.querySelector("#stories");
|
|
42720
|
+
j.requestFullscreen(j);
|
|
42721
42721
|
}
|
|
42722
42722
|
}
|
|
42723
42723
|
function _() {
|
|
@@ -42734,7 +42734,7 @@ const iB = (s) => (Ye("data-v-bbb70a6a"), s = s(), Ze(), s), nB = /* @__PURE__ *
|
|
|
42734
42734
|
}, 500);
|
|
42735
42735
|
}), zh(() => {
|
|
42736
42736
|
window.scrollTo(0, f.value), Q() ? window.removeEventListener("resize", z) : (eo() == "android" && document.exitFullscreen(), window.removeEventListener("orientationchange", Z)), A.value && (A.value.disconnect(), A.value = null);
|
|
42737
|
-
}), (
|
|
42737
|
+
}), (j, $) => (y(), b("div", {
|
|
42738
42738
|
class: R(["stories", Q() ? "stories-safe-areas-iphone" : ""]),
|
|
42739
42739
|
id: "stories",
|
|
42740
42740
|
ref_key: "eStories",
|
|
@@ -44304,7 +44304,7 @@ const Yt = BL(), SB = {
|
|
|
44304
44304
|
games: {
|
|
44305
44305
|
immediate: !0,
|
|
44306
44306
|
deep: !0,
|
|
44307
|
-
handler(s) {
|
|
44307
|
+
async handler(s) {
|
|
44308
44308
|
if (s.length > 0) {
|
|
44309
44309
|
for (let t = 0; t < s.length; t++) {
|
|
44310
44310
|
const i = this.gamesAllStories.findIndex((n) => n.game_id === s[t].game_id);
|
|
@@ -44313,7 +44313,43 @@ const Yt = BL(), SB = {
|
|
|
44313
44313
|
const e = s.filter((t) => t.is_live);
|
|
44314
44314
|
for (let t = 0; t < e.length; t++) {
|
|
44315
44315
|
const i = this.gamesAllStories.findIndex((n) => n.game_id === e[t].game_id);
|
|
44316
|
-
i !== -1
|
|
44316
|
+
if (i !== -1)
|
|
44317
|
+
this.gamesAllStories[i].score = e[t].score;
|
|
44318
|
+
else {
|
|
44319
|
+
this.gamesAllStories.push(e[t]), this.gamesAllStories = this.ordenarYFiltrarPartidos(this.gamesAllStories);
|
|
44320
|
+
let n = [];
|
|
44321
|
+
for (let a = 0; a < this.gamesAllStories.length; a++)
|
|
44322
|
+
this.arrayGamesAdd.findIndex(
|
|
44323
|
+
(o) => o.game_id === this.gamesAllStories[a].game_id
|
|
44324
|
+
) == -1 ? n.push({
|
|
44325
|
+
game_id: this.gamesAllStories[a].game_id,
|
|
44326
|
+
last_index: 0,
|
|
44327
|
+
status: 1
|
|
44328
|
+
}) : n.push({
|
|
44329
|
+
game_id: this.arrayGamesAdd[this.arrayGamesAdd.findIndex(
|
|
44330
|
+
(o) => o.game_id === this.gamesAllStories[a].game_id
|
|
44331
|
+
)].game_id,
|
|
44332
|
+
last_index: this.arrayGamesAdd[this.arrayGamesAdd.findIndex(
|
|
44333
|
+
(o) => o.game_id === this.gamesAllStories[a].game_id
|
|
44334
|
+
)].last_index,
|
|
44335
|
+
status: this.arrayGamesAdd[this.arrayGamesAdd.findIndex(
|
|
44336
|
+
(o) => o.game_id === this.gamesAllStories[a].game_id
|
|
44337
|
+
)].status
|
|
44338
|
+
});
|
|
44339
|
+
this.arrayGamesAdd = n, await je.post(
|
|
44340
|
+
`https://ssh88fgvll.execute-api.us-east-2.amazonaws.com/prod/users/${this.user.id}/seasons/${this.seasonsSelected[0].id}/stories`,
|
|
44341
|
+
{ stories: this.arrayGamesAdd },
|
|
44342
|
+
{ headers: { Authorization: `${this.token}`, "Content-Type": "application/json" } }
|
|
44343
|
+
);
|
|
44344
|
+
for (let a = 0; a < this.arrayGamesAdd.length; a++)
|
|
44345
|
+
this.gamesAllStories.findIndex(
|
|
44346
|
+
(o) => o.game_id === this.arrayGamesAdd[a].game_id
|
|
44347
|
+
) != -1 && (this.gamesAllStories[this.gamesAllStories.findIndex(
|
|
44348
|
+
(o) => o.game_id === this.arrayGamesAdd[a].game_id
|
|
44349
|
+
)].index = this.arrayGamesAdd[a].last_index, this.gamesAllStories[this.gamesAllStories.findIndex(
|
|
44350
|
+
(o) => o.game_id === this.arrayGamesAdd[a].game_id
|
|
44351
|
+
)].status_storie = this.arrayGamesAdd[a].status);
|
|
44352
|
+
}
|
|
44317
44353
|
}
|
|
44318
44354
|
}
|
|
44319
44355
|
}
|
|
@@ -44416,7 +44452,7 @@ const Yt = BL(), SB = {
|
|
|
44416
44452
|
},
|
|
44417
44453
|
async fetchGameEvents(s) {
|
|
44418
44454
|
try {
|
|
44419
|
-
return (await
|
|
44455
|
+
return (await je.get(`${this.gameEventsUrl}${s}`, {
|
|
44420
44456
|
headers: {
|
|
44421
44457
|
Authorization: `${this.token}`
|
|
44422
44458
|
}
|
|
@@ -44429,7 +44465,7 @@ const Yt = BL(), SB = {
|
|
|
44429
44465
|
try {
|
|
44430
44466
|
if (this.seasonsForLiveGames.length === 0)
|
|
44431
44467
|
return [];
|
|
44432
|
-
const s = this.seasonsForLiveGames.reduce((i, n) => `${i}seasons=${n}&`, ""), e =
|
|
44468
|
+
const s = this.seasonsForLiveGames.reduce((i, n) => `${i}seasons=${n}&`, ""), e = je.create({
|
|
44433
44469
|
headers: {
|
|
44434
44470
|
Authorization: `${this.token}`
|
|
44435
44471
|
}
|
|
@@ -44516,7 +44552,7 @@ const Yt = BL(), SB = {
|
|
|
44516
44552
|
this.$emit("clickOnMainCards", e);
|
|
44517
44553
|
},
|
|
44518
44554
|
async fetchGames(s, e) {
|
|
44519
|
-
const t = e.map((n) => `seasons=${n.id}`).join("&"), i =
|
|
44555
|
+
const t = e.map((n) => `seasons=${n.id}`).join("&"), i = je.create({
|
|
44520
44556
|
headers: {
|
|
44521
44557
|
Authorization: `${this.token}`
|
|
44522
44558
|
}
|
|
@@ -44543,11 +44579,11 @@ const Yt = BL(), SB = {
|
|
|
44543
44579
|
Authorization: `${this.token}`
|
|
44544
44580
|
}
|
|
44545
44581
|
}, [t, i] = await Promise.all([
|
|
44546
|
-
|
|
44582
|
+
je.get(
|
|
44547
44583
|
`https://ssh88fgvll.execute-api.us-east-2.amazonaws.com/prod/users/${this.user.id}/seasons/${s.id}/stories`,
|
|
44548
44584
|
e
|
|
44549
44585
|
),
|
|
44550
|
-
|
|
44586
|
+
je.get(
|
|
44551
44587
|
`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/${s.id}`,
|
|
44552
44588
|
e
|
|
44553
44589
|
)
|
|
@@ -44567,7 +44603,7 @@ const Yt = BL(), SB = {
|
|
|
44567
44603
|
},
|
|
44568
44604
|
async fetchTournaments(s) {
|
|
44569
44605
|
try {
|
|
44570
|
-
const { data: e } = await
|
|
44606
|
+
const { data: e } = await je.get(
|
|
44571
44607
|
"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"
|
|
44572
44608
|
);
|
|
44573
44609
|
return e;
|
|
@@ -44586,7 +44622,7 @@ const Yt = BL(), SB = {
|
|
|
44586
44622
|
async fetchSeasonsGamesAndTeams(s, e, t = "") {
|
|
44587
44623
|
let i = t;
|
|
44588
44624
|
try {
|
|
44589
|
-
const n =
|
|
44625
|
+
const n = je.create({
|
|
44590
44626
|
headers: {
|
|
44591
44627
|
Authorization: `${this.token}`
|
|
44592
44628
|
}
|
|
@@ -44630,7 +44666,7 @@ const Yt = BL(), SB = {
|
|
|
44630
44666
|
(g) => g.game_id === this.gamesAllStories[f].game_id
|
|
44631
44667
|
)].status
|
|
44632
44668
|
});
|
|
44633
|
-
this.arrayGamesAdd = h, await
|
|
44669
|
+
this.arrayGamesAdd = h, await je.post(
|
|
44634
44670
|
`https://ssh88fgvll.execute-api.us-east-2.amazonaws.com/prod/users/${this.user.id}/seasons/${this.seasonsSelected[0].id}/stories`,
|
|
44635
44671
|
{ stories: this.arrayGamesAdd },
|
|
44636
44672
|
{ headers: { Authorization: `${this.token}`, "Content-Type": "application/json" } }
|
|
@@ -44975,7 +45011,7 @@ const Yt = BL(), SB = {
|
|
|
44975
45011
|
status: this.currentStories[0].gameId == this.storiesItems[e].game_id && s >= this.storiesItems[e].stories.length - 1 ? 0 : 1
|
|
44976
45012
|
});
|
|
44977
45013
|
}
|
|
44978
|
-
await
|
|
45014
|
+
await je.post(
|
|
44979
45015
|
`https://ssh88fgvll.execute-api.us-east-2.amazonaws.com/prod/users/${this.user.id}/seasons/${this.seasonsSelected[0].id}/stories`,
|
|
44980
45016
|
{ stories: this.arrayGamesAdd },
|
|
44981
45017
|
{ headers: { Authorization: `${this.token}`, "Content-Type": "application/json" } }
|
|
@@ -44990,7 +45026,7 @@ const Yt = BL(), SB = {
|
|
|
44990
45026
|
)].status_storie = this.arrayGamesAdd[e].status);
|
|
44991
45027
|
},
|
|
44992
45028
|
async getLiveGamePlays(s) {
|
|
44993
|
-
var i = (await
|
|
45029
|
+
var i = (await je.create({
|
|
44994
45030
|
headers: {
|
|
44995
45031
|
Authorization: `${this.token}`
|
|
44996
45032
|
}
|
|
@@ -45025,7 +45061,14 @@ const Yt = BL(), SB = {
|
|
|
45025
45061
|
};
|
|
45026
45062
|
},
|
|
45027
45063
|
async openStory(s) {
|
|
45028
|
-
|
|
45064
|
+
const e = {
|
|
45065
|
+
headers: {
|
|
45066
|
+
Authorization: `${this.token}`
|
|
45067
|
+
}
|
|
45068
|
+
}, [t] = await Promise.all([je.get(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/games/${this.gamesAllStories[s].game_id}`, e)]);
|
|
45069
|
+
t.data && t.data.players.forEach((i) => {
|
|
45070
|
+
this.seasonPlayersMap.set(i.player_id, i);
|
|
45071
|
+
}), this.gamesAllStories[s].is_live == 1 ? (await this.getLiveGamePlays(s), setTimeout(() => {
|
|
45029
45072
|
this.currentStoryIndex = s, this.currentStories = this.storiesItems[s].stories, this.currentStoriesLastIndex = this.gamesAllStories[s].index;
|
|
45030
45073
|
}, 150)) : (this.currentStoryIndex = s, this.currentStories = this.storiesItems[s].stories, this.currentStoriesLastIndex = this.gamesAllStories[s].index), setTimeout(() => {
|
|
45031
45074
|
this.isStoriesVisible = !0;
|
|
@@ -45046,7 +45089,7 @@ const Yt = BL(), SB = {
|
|
|
45046
45089
|
beforeUnmount() {
|
|
45047
45090
|
this.resetGamesLiveInterval();
|
|
45048
45091
|
}
|
|
45049
|
-
}, wi = (s) => (Ye("data-v-
|
|
45092
|
+
}, wi = (s) => (Ye("data-v-e847f18c"), s = s(), Ze(), s), CB = {
|
|
45050
45093
|
class: "gsclanding",
|
|
45051
45094
|
ref: "landingref"
|
|
45052
45095
|
}, TB = {
|
|
@@ -45074,10 +45117,10 @@ const Yt = BL(), SB = {
|
|
|
45074
45117
|
}, NB = /* @__PURE__ */ wi(() => /* @__PURE__ */ v("div", { class: "home-movil" }, "Inicio", -1)), UB = { class: "name-user-movil" }, zB = {
|
|
45075
45118
|
key: 1,
|
|
45076
45119
|
class: "home-item"
|
|
45077
|
-
},
|
|
45120
|
+
}, GB = {
|
|
45078
45121
|
key: 2,
|
|
45079
45122
|
class: "bar-settings"
|
|
45080
|
-
},
|
|
45123
|
+
}, jB = { class: "name-user" }, VB = { class: "container-selectors" }, HB = { class: "selector-tournament" }, KB = { class: "selector-seasons" }, qB = {
|
|
45081
45124
|
key: 3,
|
|
45082
45125
|
class: "stories-circle-wrapper"
|
|
45083
45126
|
}, YB = ["onClick"], ZB = { class: "story-result" }, WB = {
|
|
@@ -45166,8 +45209,8 @@ function tD(s, e, t, i, n, a) {
|
|
|
45166
45209
|
])
|
|
45167
45210
|
])) : x("", !0),
|
|
45168
45211
|
i.elementSize.width > 680 ? (y(), b("div", zB, "Inicio")) : x("", !0),
|
|
45169
|
-
i.elementSize.width > 680 ? (y(), b("div",
|
|
45170
|
-
v("div",
|
|
45212
|
+
i.elementSize.width > 680 ? (y(), b("div", GB, [
|
|
45213
|
+
v("div", jB, [
|
|
45171
45214
|
ge(" Bienvenido "),
|
|
45172
45215
|
n.is_public ? (y(), b(J, { key: 0 }, [
|
|
45173
45216
|
ge("a GolStats")
|
|
@@ -45360,7 +45403,7 @@ function tD(s, e, t, i, n, a) {
|
|
|
45360
45403
|
], 2)
|
|
45361
45404
|
], 512);
|
|
45362
45405
|
}
|
|
45363
|
-
const dD = /* @__PURE__ */ Ct(SB, [["render", tD], ["__scopeId", "data-v-
|
|
45406
|
+
const dD = /* @__PURE__ */ Ct(SB, [["render", tD], ["__scopeId", "data-v-e847f18c"]]);
|
|
45364
45407
|
export {
|
|
45365
45408
|
dD as GSCLanding
|
|
45366
45409
|
};
|