@instructure/studio-player 1.3.5 → 1.3.7
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/{index-xG5a6-lC.css → index-DXP-5F25.css} +1 -1
- package/dist/studio-player.es.js +625 -625
- package/dist/{vidstack-06_rAYQ2.js → vidstack-C21JrmAf.js} +1080 -1080
- package/dist/{vidstack-audio-D-Rq-ghI.js → vidstack-audio-BBGk19Gk.js} +2 -2
- package/dist/{vidstack-dash-tR8ufawh.js → vidstack-dash-DGxcLdqt.js} +2 -2
- package/dist/{vidstack-google-cast-BaNgBqhV.js → vidstack-google-cast-B4Vl3EJ9.js} +1 -1
- package/dist/{vidstack-hls-DqW0EBdu.js → vidstack-hls-CJjsZ6ts.js} +2 -2
- package/dist/{vidstack-html-BCriItrL.js → vidstack-html-Dz_pUri3.js} +1 -1
- package/dist/{vidstack-video-dFAZHvkx.js → vidstack-video-CsAf3dvY.js} +2 -2
- package/dist/{vidstack-vimeo-DzDdm0bI.js → vidstack-vimeo-Ca0VhtFD.js} +1 -1
- package/dist/{vidstack-youtube-CpDJCw0z.js → vidstack-youtube-rG35f6dD.js} +1 -1
- package/package.json +1 -1
package/dist/studio-player.es.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import './index-
|
|
2
|
-
var oc = (z, se,
|
|
3
|
-
var Mr = (z, se,
|
|
4
|
-
import { jsx as ve, jsxs as sn, Fragment as
|
|
1
|
+
import './index-DXP-5F25.css';var ac = Object.defineProperty;
|
|
2
|
+
var oc = (z, se, ye) => se in z ? ac(z, se, { enumerable: !0, configurable: !0, writable: !0, value: ye }) : z[se] = ye;
|
|
3
|
+
var Mr = (z, se, ye) => oc(z, typeof se != "symbol" ? se + "" : se, ye);
|
|
4
|
+
import { jsx as ve, jsxs as sn, Fragment as ii } from "react/jsx-runtime";
|
|
5
5
|
import { useRef as pr, useCallback as qn, useSyncExternalStore as sc, createContext as fa, useContext as da, useState as gr, useEffect as Fr, useMemo as Rr, useId as uc, forwardRef as lc } from "react";
|
|
6
6
|
import { initReactI18next as cc, useTranslation as Hn } from "react-i18next";
|
|
7
7
|
import fc from "i18next";
|
|
8
8
|
import dc from "i18next-resources-to-backend";
|
|
9
|
-
import { S as kr, U as gc, W as hc, X as mc, Z as ga, _ as
|
|
10
|
-
import { am as cm } from "./vidstack-
|
|
9
|
+
import { S as kr, U as gc, W as hc, X as mc, Z as ga, _ as Yn, $ as pc, a0 as yc, a1 as _c, a2 as Ec, a3 as vc, a4 as Tc, a5 as bc, a6 as ca, a7 as to, a8 as Sc, a9 as Ks, aa as Ac, ab as zs, ac as Ws, ad as Ic, ae as Rc, af as wc, ag as xs, ah as Fs, ai as Cc, aj as $a, ak as Nc, al as Dc } from "./vidstack-C21JrmAf.js";
|
|
10
|
+
import { am as cm } from "./vidstack-C21JrmAf.js";
|
|
11
11
|
import { useFloating as ha, autoUpdate as ma, shift as io, offset as ao, arrow as oo, useMergeRefs as so, useListNavigation as Qs, useDismiss as uo, useInteractions as lo, FloatingFocusManager as co, FloatingArrow as fo, detectOverflow as Oc } from "@floating-ui/react";
|
|
12
12
|
var Ja = { exports: {} };
|
|
13
13
|
/*! For license information please see dash.all.min.js.LICENSE.txt */
|
|
14
14
|
var ks;
|
|
15
15
|
function Mc() {
|
|
16
16
|
return ks || (ks = 1, function(z, se) {
|
|
17
|
-
(function(
|
|
17
|
+
(function(ye, xe) {
|
|
18
18
|
z.exports = xe();
|
|
19
19
|
})(self, function() {
|
|
20
20
|
return function() {
|
|
21
|
-
var
|
|
21
|
+
var ye = { 4593: function(Ce, Ee) {
|
|
22
22
|
var C, ne, E, t, e, p = function(v) {
|
|
23
23
|
for (var h = [], n = 0; n < v.length; ++n) {
|
|
24
24
|
var c = v.charCodeAt(n);
|
|
@@ -1411,8 +1411,8 @@ function Mc() {
|
|
|
1411
1411
|
}, getEnded: nt, getIsDynamic: rt, getStreamController: function() {
|
|
1412
1412
|
return l;
|
|
1413
1413
|
}, computeAndSetLiveDelay: function(Te, Je) {
|
|
1414
|
-
var Nt, xt, yn, On = !isNaN(Te) && isFinite(Te) ? Te : NaN,
|
|
1415
|
-
return Nt = isNaN(D.get().streaming.delay.liveDelay) ? D.get().streaming.delay.liveDelayFragmentCount === null || isNaN(D.get().streaming.delay.liveDelayFragmentCount) || isNaN(On) ? Nn && !isNaN(Nn.liveDelay) && Nn.liveDelay > 0 ? Nn.liveDelay : D.get().streaming.delay.useSuggestedPresentationDelay === !0 &&
|
|
1414
|
+
var Nt, xt, yn, On = !isNaN(Te) && isFinite(Te) ? Te : NaN, Wn = I.getSuggestedPresentationDelay(), Nn = _.getServiceDescriptionSettings();
|
|
1415
|
+
return Nt = isNaN(D.get().streaming.delay.liveDelay) ? D.get().streaming.delay.liveDelayFragmentCount === null || isNaN(D.get().streaming.delay.liveDelayFragmentCount) || isNaN(On) ? Nn && !isNaN(Nn.liveDelay) && Nn.liveDelay > 0 ? Nn.liveDelay : D.get().streaming.delay.useSuggestedPresentationDelay === !0 && Wn !== null && !isNaN(Wn) && Wn > 0 ? Wn : isNaN(On) ? Je && !isNaN(Je.minBufferTime) ? 4 * Je.minBufferTime : 4 * N.manifestInfo.minBufferTime : 4 * On : On * D.get().streaming.delay.liveDelayFragmentCount : D.get().streaming.delay.liveDelay, (yn = I.getAvailabilityStartTime()) !== null && (ce = yn), xt = Je && Je.dvrWindowSize > 0 ? Math.min(Nt, Je.dvrWindowSize) : Nt, q = xt, G = xt, xt;
|
|
1416
1416
|
}, getLiveDelay: function() {
|
|
1417
1417
|
return q;
|
|
1418
1418
|
}, getOriginalLiveDelay: function() {
|
|
@@ -1932,12 +1932,12 @@ function Mc() {
|
|
|
1932
1932
|
var Te = function(Nt, xt) {
|
|
1933
1933
|
var yn = pe.get().streaming.buffer.bufferToKeep, On = xt.start(0);
|
|
1934
1934
|
if (Nt - On > yn) {
|
|
1935
|
-
var
|
|
1936
|
-
if (Nn && (
|
|
1935
|
+
var Wn = Math.max(0, Nt - yn), Nn = O.getRequests({ state: K.FRAGMENT_MODEL_EXECUTED, time: Nt, threshold: ke })[0];
|
|
1936
|
+
if (Nn && (Wn = Math.min(Nn.startTime, Wn)), Wn > 0) return { start: On, end: Wn };
|
|
1937
1937
|
}
|
|
1938
1938
|
return null;
|
|
1939
1939
|
}(Me, ge), Je = function(Nt, xt) {
|
|
1940
|
-
var yn = xt.end(xt.length - 1) + 0.5, On = qt(Nt),
|
|
1940
|
+
var yn = xt.end(xt.length - 1) + 0.5, On = qt(Nt), Wn = k.manifestInfo.duration >= pe.get().streaming.buffer.longFormContentDurationThreshold ? pe.get().streaming.buffer.bufferTimeAtTopQualityLongForm : pe.get().streaming.buffer.bufferTimeAtTopQuality, Nn = isNaN(On) ? Nt : Math.min(On, Nt + Wn);
|
|
1941
1941
|
if (Nn >= xt.end(xt.length - 1)) return null;
|
|
1942
1942
|
var fr = O.getRequests({ state: K.FRAGMENT_MODEL_EXECUTED, time: Nt, threshold: ke })[0];
|
|
1943
1943
|
if (fr && (Nn = Math.max(fr.startTime + fr.duration, Nn)), pe.get().streaming.buffer.avoidCurrentTimeRangePruning) {
|
|
@@ -1964,11 +1964,11 @@ function Mc() {
|
|
|
1964
1964
|
}
|
|
1965
1965
|
function mt(Me, ft) {
|
|
1966
1966
|
if (!q) return null;
|
|
1967
|
-
var ge, Te, Je = q.getAllBufferRanges(), Nt = 0, xt = 0, yn = null, On = null,
|
|
1967
|
+
var ge, Te, Je = q.getAllBufferRanges(), Nt = 0, xt = 0, yn = null, On = null, Wn = 0, Nn = isNaN(ft) ? 0.15 : ft;
|
|
1968
1968
|
if (Je != null) {
|
|
1969
|
-
for (Te = 0, ge = Je.length; Te < ge; Te++) if (Nt = Je.start(Te), xt = Je.end(Te), yn === null)
|
|
1969
|
+
for (Te = 0, ge = Je.length; Te < ge; Te++) if (Nt = Je.start(Te), xt = Je.end(Te), yn === null) Wn = Math.abs(Nt - Me), (Me >= Nt && Me < xt || Wn <= Nn) && (yn = Nt, On = xt);
|
|
1970
1970
|
else {
|
|
1971
|
-
if (!((
|
|
1971
|
+
if (!((Wn = Nt - On) <= Nn)) break;
|
|
1972
1972
|
On = xt;
|
|
1973
1973
|
}
|
|
1974
1974
|
if (yn !== null) return { start: yn, end: On };
|
|
@@ -2279,7 +2279,7 @@ function Mc() {
|
|
|
2279
2279
|
} }, _ = !1, R = null, l = !1, y = Se(w).getInstance(), F.on(o.Z.INIT_FRAGMENT_LOADED, re, r), r;
|
|
2280
2280
|
}
|
|
2281
2281
|
me.__dashjs_factory_name = at;
|
|
2282
|
-
var
|
|
2282
|
+
var _e = v.Z.getClassFactory(me);
|
|
2283
2283
|
function Ye(i) {
|
|
2284
2284
|
i = i || {};
|
|
2285
2285
|
var r, l, _, R, I, y, w, F, q, G, N, U, Z, de = this.context, re = (0, m.Z)(de).getInstance(), ce = i.dashMetrics, he = i.mediaPlayerModel, H = i.fragmentModel, oe = i.abrController, V = i.playbackController, fe = i.textController, g = i.type, L = i.bufferController, D = i.representationController, O = i.settings;
|
|
@@ -2711,7 +2711,7 @@ function Mc() {
|
|
|
2711
2711
|
}
|
|
2712
2712
|
var yn = L.getEventsFor(Te.mediaInfo, null, H), On = L.getEventsFor(Te, Je, H);
|
|
2713
2713
|
if (yn && yn.length > 0 || On && On.length > 0) {
|
|
2714
|
-
var
|
|
2714
|
+
var Wn = A.getRequests({ state: K.FRAGMENT_MODEL_EXECUTED, quality: ge, index: Me.index })[0], Nn = function(fr, $n, Vr, $r) {
|
|
2715
2715
|
try {
|
|
2716
2716
|
for (var Jr = {}, Or = [], Zr = Vr.concat($r), dr = 0, jr = Zr.length; dr < jr; dr++) Jr[Zr[dr].schemeIdUri + "/" + Zr[dr].value] = Zr[dr];
|
|
2717
2717
|
var ei = fr.getBoxes("emsg");
|
|
@@ -2724,7 +2724,7 @@ function Mc() {
|
|
|
2724
2724
|
} catch {
|
|
2725
2725
|
return [];
|
|
2726
2726
|
}
|
|
2727
|
-
}(Nt = Nt || pe.parse(ft),
|
|
2727
|
+
}(Nt = Nt || pe.parse(ft), Wn, yn, On);
|
|
2728
2728
|
he.trigger(o.Z.INBAND_EVENTS, { events: Nn }, { streamId: H.id });
|
|
2729
2729
|
}
|
|
2730
2730
|
}
|
|
@@ -2745,7 +2745,7 @@ function Mc() {
|
|
|
2745
2745
|
}
|
|
2746
2746
|
return r = { initialize: function(ze, Me, ft) {
|
|
2747
2747
|
Z = (0, He.Z)(ce).create({ events: o.Z, eventBus: he, streamInfo: H, timelineConverter: g, dashConstants: e.Z, segmentBaseController: i.segmentBaseController, type: oe }), U = (0, Y.Z)(ce).create({ streamInfo: H, type: oe, timelineConverter: g, dashMetrics: k, mediaPlayerModel: O, baseURLController: i.baseURLController, errHandler: V, segmentsController: Z, settings: ee, boxParser: pe, events: o.Z, eventBus: he, errors: X, debug: (0, h.Z)(ce).getInstance(), requestModifier: (0, we.Z)(ce).getInstance(), dashConstants: e.Z, constants: t.Z, urlUtils: (0, tt.Z)(ce).getInstance() }), _ = H.manifestInfo.isDynamic, U.initialize(_), ie.registerStreamType(oe, r), F = b(ce).create({ streamInfo: H, type: oe, abrController: ie, dashMetrics: k, playbackController: W, timelineConverter: g, dashConstants: e.Z, events: o.Z, eventBus: he, errors: X, isDynamic: _, adapter: L, segmentsController: Z }), y = function(ge, Te) {
|
|
2748
|
-
return ge ? ge !== t.Z.TEXT || Te ? qe(ce).create({ streamInfo: H, type: ge, mediaPlayerModel: O, manifestModel: D, fragmentModel: A, errHandler: V, mediaController: ue, representationController: F, adapter: L, textController: $, abrController: ie, playbackController: W, settings: ee }) :
|
|
2748
|
+
return ge ? ge !== t.Z.TEXT || Te ? qe(ce).create({ streamInfo: H, type: ge, mediaPlayerModel: O, manifestModel: D, fragmentModel: A, errHandler: V, mediaController: ue, representationController: F, adapter: L, textController: $, abrController: ie, playbackController: W, settings: ee }) : _e(ce).create({ streamInfo: H, type: ge, mimeType: fe, fragmentModel: A, textController: $, errHandler: V, settings: ee }) : (V.error(new ae.Z(X.MEDIASOURCE_TYPE_UNSUPPORTED_CODE, X.MEDIASOURCE_TYPE_UNSUPPORTED_MESSAGE + "not properly defined")), null);
|
|
2749
2749
|
}(oe, ft), y && y.initialize(ze), (w = f(ce).create({ streamInfo: H, type: oe, mimeType: fe, adapter: L, dashMetrics: k, mediaPlayerModel: O, fragmentModel: A, abrController: ie, playbackController: W, textController: $, mediaController: ue, bufferController: y, representationController: F, settings: ee })).initialize(Me), de = 0, q = !1, G = !1;
|
|
2750
2750
|
}, getStreamId: Re, getType: Pe, isUpdating: function() {
|
|
2751
2751
|
return !!F && F.isUpdating();
|
|
@@ -3122,11 +3122,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3122
3122
|
})(this, i), this.id = null, this.index = -1, this.duration = NaN, this.start = NaN, this.mpd = null, this.nextPeriodId = null;
|
|
3123
3123
|
};
|
|
3124
3124
|
cr.DEFAULT_ID = "defaultId";
|
|
3125
|
-
var
|
|
3125
|
+
var Kn = cr, ir = function i() {
|
|
3126
3126
|
(function(r, l) {
|
|
3127
3127
|
if (!(r instanceof l)) throw new TypeError("Cannot call a class as a function");
|
|
3128
3128
|
})(this, i), this.manifest = null, this.suggestedPresentationDelay = 0, this.availabilityStartTime = null, this.availabilityEndTime = Number.POSITIVE_INFINITY, this.timeShiftBufferDepth = Number.POSITIVE_INFINITY, this.maxSegmentDuration = Number.POSITIVE_INFINITY, this.publishTime = null, this.minimumUpdatePeriod = NaN, this.mediaPresentationDuration = NaN;
|
|
3129
|
-
}, yr = C(2610),
|
|
3129
|
+
}, yr = C(2610), ar = function i() {
|
|
3130
3130
|
(function(r, l) {
|
|
3131
3131
|
if (!(r instanceof l)) throw new TypeError("Cannot call a class as a function");
|
|
3132
3132
|
})(this, i), this.type = "", this.duration = NaN, this.presentationTime = NaN, this.id = NaN, this.messageData = "", this.eventStream = null, this.presentationTimeDelta = NaN;
|
|
@@ -3136,7 +3136,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3136
3136
|
})(this, i), this.url = r || "", this.serviceLocation = l || r || "", this.dvbPriority = _ || 1, this.dvbWeight = R || 1, this.availabilityTimeOffset = 0, this.availabilityTimeComplete = !0, this.queryParams = {};
|
|
3137
3137
|
};
|
|
3138
3138
|
vr.DEFAULT_DVB_PRIORITY = 1, vr.DEFAULT_DVB_WEIGHT = 1;
|
|
3139
|
-
var Tr = vr,
|
|
3139
|
+
var Tr = vr, oi = function i() {
|
|
3140
3140
|
(function(r, l) {
|
|
3141
3141
|
if (!(r instanceof l)) throw new TypeError("Cannot call a class as a function");
|
|
3142
3142
|
})(this, i), this.adaptionSet = null, this.representation = null, this.period = null, this.timescale = 1, this.value = "", this.schemeIdUri = "", this.presentationTimeOffset = 0;
|
|
@@ -3320,14 +3320,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3320
3320
|
}
|
|
3321
3321
|
function H(g, L) {
|
|
3322
3322
|
if (!g) throw new Error("Period cannot be null or undefined");
|
|
3323
|
-
var D =
|
|
3323
|
+
var D = Kn.DEFAULT_ID + "_" + L;
|
|
3324
3324
|
return g.hasOwnProperty(e.Z.ID) && g.id.length > 0 && g.id !== "__proto__" && (D = g.id), D;
|
|
3325
3325
|
}
|
|
3326
3326
|
function oe(g, L, D) {
|
|
3327
3327
|
var O, A = [];
|
|
3328
3328
|
if (!g) return A;
|
|
3329
3329
|
for (O = 0; O < g.length; O++) {
|
|
3330
|
-
var ie = new
|
|
3330
|
+
var ie = new oi();
|
|
3331
3331
|
if (ie.timescale = 1, ie.representation = L, !g[O].hasOwnProperty(t.Z.SCHEME_ID_URI)) throw new Error("Invalid EventStream. SchemeIdUri has to be set");
|
|
3332
3332
|
ie.schemeIdUri = g[O].schemeIdUri, g[O].hasOwnProperty(e.Z.TIMESCALE) && (ie.timescale = g[O].timescale), g[O].hasOwnProperty(e.Z.VALUE) && (ie.value = g[O].value), A.push(ie), ie.period = D;
|
|
3333
3333
|
}
|
|
@@ -3483,7 +3483,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3483
3483
|
return ie;
|
|
3484
3484
|
}, getRegularPeriods: function(g) {
|
|
3485
3485
|
var L, D, O = !!g && re(g.manifest), A = [], ie = null, W = null, ue = null, $ = null;
|
|
3486
|
-
for (D = 0, L = g && g.manifest && g.manifest.Period_asArray ? g.manifest.Period_asArray.length : 0; D < L; D++) (W = g.manifest.Period_asArray[D]).hasOwnProperty(e.Z.START) ? ($ = new
|
|
3486
|
+
for (D = 0, L = g && g.manifest && g.manifest.Period_asArray ? g.manifest.Period_asArray.length : 0; D < L; D++) (W = g.manifest.Period_asArray[D]).hasOwnProperty(e.Z.START) ? ($ = new Kn()).start = W.start : ie !== null && ie.hasOwnProperty(e.Z.DURATION) && ue !== null ? ($ = new Kn()).start = parseFloat((ue.start + ue.duration).toFixed(5)) : D !== 0 || O || (($ = new Kn()).start = 0), ue !== null && isNaN(ue.duration) && ($ !== null ? ue.duration = parseFloat(($.start - ue.start).toFixed(5)) : r.warn("First period duration could not be calculated because lack of start and duration period properties. This will cause timing issues during playback")), $ !== null && ($.id = H(W, D), $.index = D, $.mpd = g, W.hasOwnProperty(e.Z.DURATION) && ($.duration = W.duration), ue && (ue.nextPeriodId = $.id), A.push($), ie = W, ue = $), W = null, $ = null;
|
|
3487
3487
|
return A.length === 0 || ue !== null && isNaN(ue.duration) && (ue.duration = parseFloat((function(k) {
|
|
3488
3488
|
(function() {
|
|
3489
3489
|
if (!l || !l.hasOwnProperty("error")) throw new Error(t.Z.MISSING_CONFIG_ERROR);
|
|
@@ -3492,15 +3492,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3492
3492
|
return k.mpd.manifest.mediaPresentationDuration ? ee = k.mpd.manifest.mediaPresentationDuration : k.duration ? ee = k.duration : pe ? ee = Number.POSITIVE_INFINITY : l.error(new ae.Z(X.MANIFEST_ERROR_ID_PARSE_CODE, "Must have @mediaPresentationDuration on MPD or an explicit @duration on the last period.", k)), ee;
|
|
3493
3493
|
}(ue) - ue.start).toFixed(5))), A;
|
|
3494
3494
|
}, getMpd: function(g) {
|
|
3495
|
-
var L = new
|
|
3495
|
+
var L = new ir();
|
|
3496
3496
|
return g && (L.manifest = g, g.hasOwnProperty(e.Z.AVAILABILITY_START_TIME) ? L.availabilityStartTime = new Date(g.availabilityStartTime.getTime()) : g.loadedTime && (L.availabilityStartTime = new Date(g.loadedTime.getTime())), g.hasOwnProperty(e.Z.AVAILABILITY_END_TIME) && (L.availabilityEndTime = new Date(g.availabilityEndTime.getTime())), g.hasOwnProperty(e.Z.MINIMUM_UPDATE_PERIOD) && (L.minimumUpdatePeriod = g.minimumUpdatePeriod), g.hasOwnProperty(e.Z.MEDIA_PRESENTATION_DURATION) && (L.mediaPresentationDuration = g.mediaPresentationDuration), g.hasOwnProperty(e.Z.SUGGESTED_PRESENTATION_DELAY) && (L.suggestedPresentationDelay = g.suggestedPresentationDelay), g.hasOwnProperty(e.Z.TIMESHIFT_BUFFER_DEPTH) && (L.timeShiftBufferDepth = g.timeShiftBufferDepth), g.hasOwnProperty(e.Z.MAX_SEGMENT_DURATION) && (L.maxSegmentDuration = g.maxSegmentDuration), g.hasOwnProperty(e.Z.PUBLISH_TIME) && (L.publishTime = new Date(g.publishTime))), L;
|
|
3497
3497
|
}, getEventsForPeriod: function(g) {
|
|
3498
3498
|
var L, D, O = g && g.mpd && g.mpd.manifest ? g.mpd.manifest : null, A = O ? O.Period_asArray : null, ie = A && g && y(g.index) ? A[g.index].EventStream_asArray : null, W = [];
|
|
3499
3499
|
if (ie) for (L = 0; L < ie.length; L++) {
|
|
3500
|
-
var ue = new
|
|
3500
|
+
var ue = new oi();
|
|
3501
3501
|
if (ue.period = g, ue.timescale = 1, !ie[L].hasOwnProperty(t.Z.SCHEME_ID_URI)) throw new Error("Invalid EventStream. SchemeIdUri has to be set");
|
|
3502
3502
|
for (ue.schemeIdUri = ie[L][t.Z.SCHEME_ID_URI], ie[L].hasOwnProperty(e.Z.TIMESCALE) && (ue.timescale = ie[L][e.Z.TIMESCALE]), ie[L].hasOwnProperty(e.Z.VALUE) && (ue.value = ie[L][e.Z.VALUE]), ie[L].hasOwnProperty(e.Z.PRESENTATION_TIME_OFFSET) && (ue.presentationTimeOffset = ie[L][e.Z.PRESENTATION_TIME_OFFSET]), D = 0; ie[L].Event_asArray && D < ie[L].Event_asArray.length; D++) {
|
|
3503
|
-
var $ = ie[L].Event_asArray[D], k = new
|
|
3503
|
+
var $ = ie[L].Event_asArray[D], k = new ar();
|
|
3504
3504
|
k.presentationTime = 0, k.eventStream = ue, $.hasOwnProperty(e.Z.PRESENTATION_TIME) && (k.presentationTime = $.presentationTime);
|
|
3505
3505
|
var ee = ue.presentationTimeOffset ? ue.presentationTimeOffset / ue.timescale : 0;
|
|
3506
3506
|
k.calculatedPresentationTime = k.presentationTime / ue.timescale + g.start - ee, $.hasOwnProperty(e.Z.DURATION) && (k.duration = $.duration / ue.timescale), $.hasOwnProperty(e.Z.ID) ? k.id = $.id : k.id = null, $.Signal && $.Signal.Binary ? k.messageData = _.decodeArray($.Signal.Binary.toString()) : k.messageData = $.messageData || $.__cdata || $.__text, W.push(k);
|
|
@@ -3967,8 +3967,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3967
3967
|
return r.__proto__ || Object.getPrototypeOf(r);
|
|
3968
3968
|
}, rr(i);
|
|
3969
3969
|
}
|
|
3970
|
-
var Gr = "static", br = "dynamic", Cr = "cmsd-", sr = Cr + Gr, Di = Cr + br,
|
|
3971
|
-
function
|
|
3970
|
+
var Gr = "static", br = "dynamic", Cr = "cmsd-", sr = Cr + Gr, Di = Cr + br, si = "stream", Oi = ["mb", "st", "sf", "v"], Mi = { video: "v", audio: "a", text: "tt", stream: si }, Li = /^[-0-9]/;
|
|
3971
|
+
function ui() {
|
|
3972
3972
|
var i, r, l, _, R = this.context, I = (0, m.Z)(R).getInstance();
|
|
3973
3973
|
function y() {
|
|
3974
3974
|
l = {}, _ = {};
|
|
@@ -4007,7 +4007,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4007
4007
|
return Mi[Z] || "o";
|
|
4008
4008
|
}
|
|
4009
4009
|
function U(Z, de, re) {
|
|
4010
|
-
var ce = Z === Gr ? l : _, he = ce[de] || {}, H = ce[
|
|
4010
|
+
var ce = Z === Gr ? l : _, he = ce[de] || {}, H = ce[si] || {};
|
|
4011
4011
|
return he[re] || H[re];
|
|
4012
4012
|
}
|
|
4013
4013
|
return i = { setConfig: function() {
|
|
@@ -4029,7 +4029,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4029
4029
|
}
|
|
4030
4030
|
}
|
|
4031
4031
|
}
|
|
4032
|
-
var g =
|
|
4032
|
+
var g = si;
|
|
4033
4033
|
return re && re.ot ? g = re.ot : de && (g = N(de)), w(l[g]), w(_[g]), re && (l[g] = Object.assign(l[g] || {}, re)), ce && (_[g] = Object.assign(_[g] || {}, ce)), { static: re, dynamic: ce };
|
|
4034
4034
|
}, getMaxBitrate: function(Z) {
|
|
4035
4035
|
var de = N(Z);
|
|
@@ -4045,8 +4045,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4045
4045
|
return U(br, de, "rtt") || null;
|
|
4046
4046
|
} }, r = (0, h.Z)(R).getInstance().getLogger(i), y(), i;
|
|
4047
4047
|
}
|
|
4048
|
-
|
|
4049
|
-
var Ft = v.Z.getSingletonFactory(
|
|
4048
|
+
ui.__dashjs_factory_name = "CmsdModel";
|
|
4049
|
+
var Ft = v.Z.getSingletonFactory(ui);
|
|
4050
4050
|
function ln() {
|
|
4051
4051
|
var i, r, l = this.context, _ = {};
|
|
4052
4052
|
function R() {
|
|
@@ -4221,11 +4221,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4221
4221
|
}, unregisterAllLoader: r, reset: l };
|
|
4222
4222
|
}
|
|
4223
4223
|
_r.__dashjs_factory_name = "SchemeLoaderFactory";
|
|
4224
|
-
var
|
|
4224
|
+
var zn = v.Z.getSingletonFactory(_r);
|
|
4225
4225
|
function Un(i) {
|
|
4226
4226
|
i = i || {};
|
|
4227
4227
|
var r, l, _ = this.context;
|
|
4228
|
-
return r =
|
|
4228
|
+
return r = zn(_).getInstance(), { load: function(R) {
|
|
4229
4229
|
if (!l) {
|
|
4230
4230
|
var I = r.getLoader(R && R.request ? R.request.url : null);
|
|
4231
4231
|
l = I(_).create({ errHandler: i.errHandler, mediaPlayerModel: i.mediaPlayerModel, requestModifier: i.requestModifier, dashMetrics: i.dashMetrics, boxParser: i.boxParser ? i.boxParser : null, constants: i.constants ? i.constants : null, dashConstants: i.dashConstants ? i.dashConstants : null, urlUtils: i.urlUtils ? i.urlUtils : null, requestTimeout: isNaN(i.requestTimeout) ? 0 : i.requestTimeout, errors: i.errors });
|
|
@@ -4325,14 +4325,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4325
4325
|
} }, l = ur(_).create({ errHandler: i.errHandler, errors: w, dashMetrics: i.dashMetrics, mediaPlayerModel: i.mediaPlayerModel, requestModifier: i.requestModifier, urlUtils: y, constants: t.Z, boxParser: i.boxParser, dashConstants: i.dashConstants, requestTimeout: i.settings.get().streaming.fragmentRequestTimeout }), r;
|
|
4326
4326
|
}
|
|
4327
4327
|
bi.__dashjs_factory_name = "FragmentLoader";
|
|
4328
|
-
var
|
|
4329
|
-
function
|
|
4328
|
+
var li = v.Z.getClassFactory(bi);
|
|
4329
|
+
function ci() {
|
|
4330
4330
|
return { modifyResponseAsync: function(i) {
|
|
4331
4331
|
return Promise.resolve(i);
|
|
4332
4332
|
} };
|
|
4333
4333
|
}
|
|
4334
|
-
|
|
4335
|
-
var Pi = v.Z.getSingletonFactory(
|
|
4334
|
+
ci.__dashjs_factory_name = "SegmentResponseModifier";
|
|
4335
|
+
var Pi = v.Z.getSingletonFactory(ci);
|
|
4336
4336
|
function xi(i) {
|
|
4337
4337
|
i = i || {};
|
|
4338
4338
|
var r, l, _, R = this.context, I = (0, m.Z)(R).getInstance(), y = i.errHandler, w = i.mediaPlayerModel, F = i.dashMetrics, q = (0, h.Z)(R).getInstance(), G = Pi(R).getInstance(), N = i.streamInfo;
|
|
@@ -4361,7 +4361,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4361
4361
|
}
|
|
4362
4362
|
return r = { getStreamId: U, getModel: function(re) {
|
|
4363
4363
|
var ce = _[re];
|
|
4364
|
-
return ce || (ce = K(R).create({ streamInfo: N, type: re, dashMetrics: F, fragmentLoader:
|
|
4364
|
+
return ce || (ce = K(R).create({ streamInfo: N, type: re, dashMetrics: F, fragmentLoader: li(R).create({ dashMetrics: F, mediaPlayerModel: w, errHandler: y, requestModifier: (0, we.Z)(R).getInstance(), settings: i.settings, boxParser: i.boxParser, eventBus: I, events: o.Z, errors: X, dashConstants: i.dashConstants, urlUtils: i.urlUtils, streamId: U() }), debug: q, eventBus: I, events: o.Z }), _[re] = ce), ce;
|
|
4365
4365
|
}, reset: function() {
|
|
4366
4366
|
I.off(n.Z.FRAGMENT_LOADING_COMPLETED, de, this), I.off(n.Z.FRAGMENT_LOADING_PROGRESS, de, this), Z();
|
|
4367
4367
|
} }, l = q.getLogger(r), Z(), I.on(n.Z.FRAGMENT_LOADING_COMPLETED, de, r), I.on(n.Z.FRAGMENT_LOADING_PROGRESS, de, r), r;
|
|
@@ -4439,7 +4439,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4439
4439
|
}, r), r;
|
|
4440
4440
|
}
|
|
4441
4441
|
Zi.__dashjs_factory_name = "BlackListController";
|
|
4442
|
-
var
|
|
4442
|
+
var fi = v.Z.getClassFactory(Zi), Ta = [t.Z.VIDEO, t.Z.AUDIO, t.Z.TEXT, t.Z.MUXED, t.Z.IMAGE];
|
|
4443
4443
|
function kn(i) {
|
|
4444
4444
|
i = i || {};
|
|
4445
4445
|
var r, l, _, R, I, y, w, F, q, G, N, U, Z, de, re, ce, he, H, oe = this.context, V = (0, m.Z)(oe).getInstance(), fe = (0, tt.Z)(oe).getInstance(), g = i.manifestModel, L = i.mediaPlayerModel, D = i.dashMetrics, O = i.manifestUpdater, A = i.adapter, ie = i.timelineConverter, W = i.capabilities, ue = i.errHandler, $ = i.abrController, k = i.playbackController, ee = i.eventController, pe = i.mediaController, Le = i.protectionController, Re = i.textController, Pe = i.videoModel, Oe = i.streamInfo, ut = i.settings;
|
|
@@ -4485,8 +4485,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4485
4485
|
if (pt === t.Z.IMAGE) return (U = va(oe).create({ streamInfo: Oe, adapter: A, baseURLController: i.baseURLController, timelineConverter: i.timelineConverter, debug: ce, eventBus: V, events: o.Z, dashConstants: e.Z, dashMetrics: i.dashMetrics, segmentBaseController: i.segmentBaseController })).initialize(), Promise.resolve();
|
|
4486
4486
|
V.trigger(o.Z.STREAM_INITIALIZING, { streamInfo: Oe, mediaInfo: ze }), pe.setInitialMediaSettingsForType(pt, Oe);
|
|
4487
4487
|
var ge = function(Te, Je) {
|
|
4488
|
-
var Nt = Te && Te.length > 0 ? Te[0] : null, xt = N.getModel(Nt ? Nt.type : null), yn = Nt ? Nt.type : null, On = Nt ? Nt.mimeType : null,
|
|
4489
|
-
Nn.initialize(Je, w,
|
|
4488
|
+
var Nt = Te && Te.length > 0 ? Te[0] : null, xt = N.getModel(Nt ? Nt.type : null), yn = Nt ? Nt.type : null, On = Nt ? Nt.mimeType : null, Wn = Nt ? Nt.isFragmented : null, Nn = Yt(oe).create({ streamInfo: Oe, type: yn, mimeType: On, timelineConverter: ie, adapter: A, manifestModel: g, mediaPlayerModel: L, fragmentModel: xt, dashMetrics: i.dashMetrics, baseURLController: i.baseURLController, segmentBaseController: i.segmentBaseController, abrController: $, playbackController: k, mediaController: pe, textController: Re, errHandler: ue, settings: ut, boxParser: re, segmentBlacklistController: Z });
|
|
4489
|
+
Nn.initialize(Je, w, Wn), _.push(Nn);
|
|
4490
4490
|
for (var fr = 0; fr < Te.length; fr++) Nn.addMediaInfo(Te[fr]);
|
|
4491
4491
|
return yn === t.Z.TEXT && Re.addMediaInfosToBuffer(Oe, yn, Te, xt), Nn;
|
|
4492
4492
|
}(Vt, kt);
|
|
@@ -4734,14 +4734,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4734
4734
|
kt && kt.prepareQualityChange(pt);
|
|
4735
4735
|
} }, function() {
|
|
4736
4736
|
try {
|
|
4737
|
-
ce = (0, h.Z)(oe).getInstance(), l = ce.getLogger(r), Ae(), re = (0, Si.Z)(oe).getInstance(), Z =
|
|
4737
|
+
ce = (0, h.Z)(oe).getInstance(), l = ce.getLogger(r), Ae(), re = (0, Si.Z)(oe).getInstance(), Z = fi(oe).create({ updateEventName: o.Z.SEGMENT_LOCATION_BLACKLIST_CHANGED, addBlacklistEventName: o.Z.SEGMENT_LOCATION_BLACKLIST_ADD }), N = _a(oe).create({ streamInfo: Oe, mediaPlayerModel: L, dashMetrics: D, errHandler: ue, settings: ut, boxParser: re, dashConstants: e.Z, urlUtils: fe });
|
|
4738
4738
|
} catch (pt) {
|
|
4739
4739
|
throw pt;
|
|
4740
4740
|
}
|
|
4741
4741
|
}(), r;
|
|
4742
4742
|
}
|
|
4743
4743
|
kn.__dashjs_factory_name = "Stream";
|
|
4744
|
-
var Qr = v.Z.getClassFactory(kn),
|
|
4744
|
+
var Qr = v.Z.getClassFactory(kn), di = function i(r) {
|
|
4745
4745
|
(function(l, _) {
|
|
4746
4746
|
if (!(l instanceof _)) throw new TypeError("Cannot call a class as a function");
|
|
4747
4747
|
})(this, i), this.url = r || null, this.type = Be.w.CONTENT_STEERING_TYPE, this.responseType = "json";
|
|
@@ -4809,7 +4809,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4809
4809
|
}), Pe.push({ key: "_DASH_pathway", value: '"'.concat(lt, '"') }), Pe.push({ key: "_DASH_throughput", value: nt });
|
|
4810
4810
|
}
|
|
4811
4811
|
return Re = At.Z.addAditionalQueryParameterToUrl(Re, Pe);
|
|
4812
|
-
}(k), pe = new
|
|
4812
|
+
}(k), pe = new di(ee);
|
|
4813
4813
|
y.load({ request: pe, success: function(Le) {
|
|
4814
4814
|
(function(Re) {
|
|
4815
4815
|
Re && Re[e.Z.CONTENT_STEERING_RESPONSE.VERSION] && parseInt(Re[e.Z.CONTENT_STEERING_RESPONSE.VERSION]) === 1 && ((l = new Xr()).version = Re[e.Z.CONTENT_STEERING_RESPONSE.VERSION], Re[e.Z.CONTENT_STEERING_RESPONSE.TTL] && !isNaN(Re[e.Z.CONTENT_STEERING_RESPONSE.TTL]) && (l.ttl = Re[e.Z.CONTENT_STEERING_RESPONSE.TTL]), Re[e.Z.CONTENT_STEERING_RESPONSE.RELOAD_URI] && (l.reloadUri = Re[e.Z.CONTENT_STEERING_RESPONSE.RELOAD_URI]), Re[e.Z.CONTENT_STEERING_RESPONSE.PATHWAY_PRIORITY] && (l.pathwayPriority = Re[e.Z.CONTENT_STEERING_RESPONSE.PATHWAY_PRIORITY]), Re[e.Z.CONTENT_STEERING_RESPONSE.PATHWAY_CLONES] && (l.pathwayClones = Re[e.Z.CONTENT_STEERING_RESPONSE.PATHWAY_CLONES], l.pathwayClones = l.pathwayClones.filter(function(Pe) {
|
|
@@ -4934,7 +4934,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4934
4934
|
I.blacklistController && (r = I.blacklistController), I.contentSteeringController && (l = I.contentSteeringController);
|
|
4935
4935
|
}, reset: function() {
|
|
4936
4936
|
r.reset();
|
|
4937
|
-
} }, r =
|
|
4937
|
+
} }, r = fi(_).create({ updateEventName: o.Z.SERVICE_LOCATION_LOCATION_BLACKLIST_CHANGED, addBlacklistEventName: o.Z.SERVICE_LOCATION_LOCATION_BLACKLIST_ADD }), l = Ar(_).getInstance(), i;
|
|
4938
4938
|
}
|
|
4939
4939
|
Bi.__dashjs_factory_name = "LocationSelector";
|
|
4940
4940
|
var qr = v.Z.getClassFactory(Bi);
|
|
@@ -5373,7 +5373,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5373
5373
|
} }, r = (0, h.Z)(re).getInstance().getLogger(i), H(), i;
|
|
5374
5374
|
}
|
|
5375
5375
|
To.__dashjs_factory_name = "EventController";
|
|
5376
|
-
var Eu = v.Z.getSingletonFactory(To),
|
|
5376
|
+
var Eu = v.Z.getSingletonFactory(To), gi = { LEVELS: { SUGGESTION: "Suggestion", WARNING: "Warning", ERROR: "Error" }, EVENTS: { NO_UTC_TIMING_ELEMENT: { key: "NO_UTC_TIMING_ELEMENT", message: "No UTCTiming element is present in the manifest. You may experience playback failures. For a detailed validation use https://conformance.dashif.org/" }, NON_COMPLIANT_SMPTE_IMAGE_ATTRIBUTE: { key: "NON_COMPLIANT_SMPTE_IMAGE_ATTRIBUTE", message: 'SMPTE 2052-1:2013 defines the attribute name as "imageType" and does not define "imagetype"' }, INVALID_DVR_WINDOW: { key: "INVALID_DVR_WINDOW", message: "No valid segment found when applying a specification compliant DVR window calculation. Using SegmentTimeline entries as a fallback." } } };
|
|
5377
5377
|
function Aa(i, r) {
|
|
5378
5378
|
(r == null || r > i.length) && (r = i.length);
|
|
5379
5379
|
for (var l = 0, _ = new Array(r); l < r; l++) _[l] = i[l];
|
|
@@ -5476,8 +5476,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5476
5476
|
isNaN(Ur) || (r.info("Start time from URI parameters: ".concat(Ur)), hn = Math.max(hn, Ur));
|
|
5477
5477
|
} else {
|
|
5478
5478
|
r.info("Start time provided by the app: ".concat(We));
|
|
5479
|
-
var
|
|
5480
|
-
isNaN(
|
|
5479
|
+
var yi = $n(!1, We);
|
|
5480
|
+
isNaN(yi) || (hn = Math.max(hn, yi));
|
|
5481
5481
|
}
|
|
5482
5482
|
return hn;
|
|
5483
5483
|
}(), Lt = Vt(et), an = Lt !== null ? Lt : fe[0];
|
|
@@ -5652,15 +5652,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5652
5652
|
function On() {
|
|
5653
5653
|
return g ? g.getProcessors() : [];
|
|
5654
5654
|
}
|
|
5655
|
-
function
|
|
5655
|
+
function Wn(et) {
|
|
5656
5656
|
if (g && !g.getIsEndedEventSignaled()) {
|
|
5657
5657
|
g.setIsEndedEventSignaled(!0);
|
|
5658
5658
|
var Lt = function() {
|
|
5659
5659
|
var an = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : null, hn = an || g || null;
|
|
5660
5660
|
if (!hn) return null;
|
|
5661
5661
|
for (var bn = hn.getStreamInfo(), Sn = bn.start, _n = 0, Gn = -1, Pn = NaN; _n < fe.length; ) {
|
|
5662
|
-
var Ur = fe[_n].getStreamInfo(),
|
|
5663
|
-
|
|
5662
|
+
var Ur = fe[_n].getStreamInfo(), yi = Ur.start - Sn;
|
|
5663
|
+
yi > 0 && (isNaN(Pn) || yi < Pn) && bn.id !== Ur.id && (Pn = yi, Gn = _n), _n += 1;
|
|
5664
5664
|
}
|
|
5665
5665
|
return Gn >= 0 ? fe[Gn] : null;
|
|
5666
5666
|
}();
|
|
@@ -5731,7 +5731,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5731
5731
|
var Lt = et.manifest;
|
|
5732
5732
|
w.updatePeriods(Lt);
|
|
5733
5733
|
var an = w.getUTCTimingSources();
|
|
5734
|
-
!w.getIsDynamic() || an && an.length !== 0 || mt.trigger(n.Z.CONFORMANCE_VIOLATION, { level:
|
|
5734
|
+
!w.getIsDynamic() || an && an.length !== 0 || mt.trigger(n.Z.CONFORMANCE_VIOLATION, { level: gi.LEVELS.WARNING, event: gi.EVENTS.NO_UTC_TIMING_ELEMENT });
|
|
5735
5735
|
var hn = w.getIsDynamic() ? an.concat(Re.getUTCTimingSources()) : an;
|
|
5736
5736
|
_.filterUnsupportedFeatures(Lt).then(function() {
|
|
5737
5737
|
U.initialize(Lt), G.attemptSync(hn, w.getIsDynamic());
|
|
@@ -5797,7 +5797,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5797
5797
|
function Yr() {
|
|
5798
5798
|
Wt(), G.reset(), dr(W || ue ? Ne.FAILURE_STOP_REASON : Ne.USER_REQUEST_STOP_REASON);
|
|
5799
5799
|
for (var et = 0, Lt = fe ? fe.length : 0; et < Lt; et++) fe[et].reset(W);
|
|
5800
|
-
mt.off(n.Z.PLAYBACK_TIME_UPDATED, ge, i), mt.off(n.Z.PLAYBACK_SEEKING, Qt, i), mt.off(n.Z.PLAYBACK_ERROR, ei, i), mt.off(n.Z.PLAYBACK_STARTED, Te, i), mt.off(n.Z.PLAYBACK_PAUSED, Je, i), mt.off(n.Z.PLAYBACK_ENDED,
|
|
5800
|
+
mt.off(n.Z.PLAYBACK_TIME_UPDATED, ge, i), mt.off(n.Z.PLAYBACK_SEEKING, Qt, i), mt.off(n.Z.PLAYBACK_ERROR, ei, i), mt.off(n.Z.PLAYBACK_STARTED, Te, i), mt.off(n.Z.PLAYBACK_PAUSED, Je, i), mt.off(n.Z.PLAYBACK_ENDED, Wn, i), mt.off(n.Z.METRIC_ADDED, ia, i), mt.off(n.Z.MANIFEST_VALIDITY_CHANGED, na, i), mt.off(n.Z.BUFFER_LEVEL_UPDATED, ze, i), mt.off(n.Z.QUALITY_CHANGE_REQUESTED, Me, i), o.Z.KEY_SESSION_UPDATED && mt.off(o.Z.KEY_SESSION_UPDATED, pn, i), mt.off(o.Z.MANIFEST_UPDATED, Jr, i), mt.off(o.Z.STREAM_BUFFERING_COMPLETED, Nt, i), mt.off(o.Z.TIME_SYNCHRONIZATION_COMPLETED, gn, i), mt.off(o.Z.CURRENT_TRACK_CHANGED, pt, i), mt.off(o.Z.SETTING_UPDATED_LIVE_DELAY, ft, i), mt.off(o.Z.SETTING_UPDATED_LIVE_DELAY_FRAGMENT_COUNT, ft, i), U.reset(), R.reset(), he.reset(), F.clearAllCurrentMetrics(), y.setValue(null), I.reset(), V.reset(), H.reset(), $ && (q.detachMediaSource(k), $ = null), k = null, L && (L = null, O = null, y.getValue() && mt.trigger(o.Z.PROTECTION_DESTROYED, { data: y.getValue().url })), yn(), mt.trigger(o.Z.STREAM_TEARDOWN_COMPLETE), ra();
|
|
5801
5801
|
}
|
|
5802
5802
|
function ia(et) {
|
|
5803
5803
|
if (et.metric === p.Z.DVR_INFO) {
|
|
@@ -5809,7 +5809,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
5809
5809
|
return fe;
|
|
5810
5810
|
}
|
|
5811
5811
|
return i = { initialize: function(et, Lt) {
|
|
5812
|
-
Wt(), A = et, O = Lt, V.initialize(), (R = Eo(vt).create()).setConfig({ manifestModel: y, adapter: w, manifestLoader: I, errHandler: oe, settings: Ae, contentSteeringController: N }), R.initialize(), (he = Eu(vt).getInstance()).setConfig({ manifestUpdater: R, playbackController: ee, settings: Ae }), he.start(), G.setConfig({ dashMetrics: F, baseURLController: U, errHandler: oe, settings: Ae }), G.initialize(), q.setConfig({ settings: Ae }), L && (mt.trigger(o.Z.PROTECTION_CREATED, { controller: L }), L.setMediaElement(k.getElement()), O && L.setProtectionData(O)), mt.on(n.Z.PLAYBACK_TIME_UPDATED, ge, i), mt.on(n.Z.PLAYBACK_SEEKING, Qt, i), mt.on(n.Z.PLAYBACK_ERROR, ei, i), mt.on(n.Z.PLAYBACK_STARTED, Te, i), mt.on(n.Z.PLAYBACK_PAUSED, Je, i), mt.on(n.Z.PLAYBACK_ENDED,
|
|
5812
|
+
Wt(), A = et, O = Lt, V.initialize(), (R = Eo(vt).create()).setConfig({ manifestModel: y, adapter: w, manifestLoader: I, errHandler: oe, settings: Ae, contentSteeringController: N }), R.initialize(), (he = Eu(vt).getInstance()).setConfig({ manifestUpdater: R, playbackController: ee, settings: Ae }), he.start(), G.setConfig({ dashMetrics: F, baseURLController: U, errHandler: oe, settings: Ae }), G.initialize(), q.setConfig({ settings: Ae }), L && (mt.trigger(o.Z.PROTECTION_CREATED, { controller: L }), L.setMediaElement(k.getElement()), O && L.setProtectionData(O)), mt.on(n.Z.PLAYBACK_TIME_UPDATED, ge, i), mt.on(n.Z.PLAYBACK_SEEKING, Qt, i), mt.on(n.Z.PLAYBACK_ERROR, ei, i), mt.on(n.Z.PLAYBACK_STARTED, Te, i), mt.on(n.Z.PLAYBACK_PAUSED, Je, i), mt.on(n.Z.PLAYBACK_ENDED, Wn, i), mt.on(n.Z.METRIC_ADDED, ia, i), mt.on(n.Z.MANIFEST_VALIDITY_CHANGED, na, i), mt.on(n.Z.BUFFER_LEVEL_UPDATED, ze, i), mt.on(n.Z.QUALITY_CHANGE_REQUESTED, Me, i), o.Z.KEY_SESSION_UPDATED && mt.on(o.Z.KEY_SESSION_UPDATED, pn, i), mt.on(o.Z.MANIFEST_UPDATED, Jr, i), mt.on(o.Z.STREAM_BUFFERING_COMPLETED, Nt, i), mt.on(o.Z.TIME_SYNCHRONIZATION_COMPLETED, gn, i), mt.on(o.Z.CURRENT_TRACK_CHANGED, pt, i), mt.on(o.Z.SETTING_UPDATED_LIVE_DELAY, ft, i), mt.on(o.Z.SETTING_UPDATED_LIVE_DELAY_FRAGMENT_COUNT, ft, i);
|
|
5813
5813
|
}, getActiveStreamInfo: Ir, addDVRMetric: Xt, hasVideoTrack: Or, hasAudioTrack: Zr, getStreamById: wi, getStreamForTime: Vt, getTimeRelativeToStreamId: function(et, Lt) {
|
|
5814
5814
|
for (var an = null, hn = 0, bn = 0, Sn = null, _n = 0; _n < fe.length; _n++) {
|
|
5815
5815
|
if (bn = (an = fe[_n]).getStartTime(), Sn = an.getDuration(), Number.isFinite(bn) && (hn = bn), an.getId() === Lt) return et - hn;
|
|
@@ -6450,7 +6450,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6450
6450
|
}
|
|
6451
6451
|
}, reset: q, setConfig: function(G) {
|
|
6452
6452
|
G.selector && (I = G.selector), G.contentSteeringSelector && (R = G.contentSteeringSelector);
|
|
6453
|
-
} }, r =
|
|
6453
|
+
} }, r = fi(y).create({ updateEventName: o.Z.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED, addBlacklistEventName: o.Z.SERVICE_LOCATION_BASE_URL_BLACKLIST_ADD }), l = Cu(y).create({ blacklistController: r }), _ = wu(y).create({ blacklistController: r }), (R = Nu(y).create()).setConfig({ blacklistController: r }), I = l, i;
|
|
6454
6454
|
}
|
|
6455
6455
|
Fo.__dashjs_factory_name = "BaseURLSelector";
|
|
6456
6456
|
var Du = v.Z.getClassFactory(Fo);
|
|
@@ -6720,7 +6720,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6720
6720
|
}, this.getVersion = function() {
|
|
6721
6721
|
return "1.2.0";
|
|
6722
6722
|
};
|
|
6723
|
-
},
|
|
6723
|
+
}, hi = "onLoad";
|
|
6724
6724
|
function Go(i) {
|
|
6725
6725
|
i = i || {};
|
|
6726
6726
|
var r, l, _, R, I, y, w = this.context, F = (0, m.Z)(w).getInstance(), q = (0, tt.Z)(w).getInstance();
|
|
@@ -6753,10 +6753,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6753
6753
|
A = [];
|
|
6754
6754
|
}
|
|
6755
6755
|
oe.elements.length > 0 && _.run(R);
|
|
6756
|
-
}(re), re.resolveType === "onActuate" && F.trigger(o.Z.XLINK_READY, { manifest: R }), re.resolveType ===
|
|
6756
|
+
}(re), re.resolveType === "onActuate" && F.trigger(o.Z.XLINK_READY, { manifest: R }), re.resolveType === hi) switch (re.type) {
|
|
6757
6757
|
case e.Z.PERIOD:
|
|
6758
|
-
for (ce = 0; ce < R[e.Z.PERIOD + "_asArray"].length; ce++) (he = R[e.Z.PERIOD + "_asArray"][ce]).hasOwnProperty(e.Z.ADAPTATION_SET + "_asArray") && (H = H.concat(Z(he[e.Z.ADAPTATION_SET + "_asArray"], he, e.Z.ADAPTATION_SET,
|
|
6759
|
-
G(H, e.Z.ADAPTATION_SET,
|
|
6758
|
+
for (ce = 0; ce < R[e.Z.PERIOD + "_asArray"].length; ce++) (he = R[e.Z.PERIOD + "_asArray"][ce]).hasOwnProperty(e.Z.ADAPTATION_SET + "_asArray") && (H = H.concat(Z(he[e.Z.ADAPTATION_SET + "_asArray"], he, e.Z.ADAPTATION_SET, hi))), he.hasOwnProperty(e.Z.EVENT_STREAM + "_asArray") && (H = H.concat(Z(he[e.Z.EVENT_STREAM + "_asArray"], he, e.Z.EVENT_STREAM, hi)));
|
|
6759
|
+
G(H, e.Z.ADAPTATION_SET, hi);
|
|
6760
6760
|
break;
|
|
6761
6761
|
case e.Z.ADAPTATION_SET:
|
|
6762
6762
|
F.trigger(o.Z.XLINK_READY, { manifest: R });
|
|
@@ -6772,7 +6772,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
6772
6772
|
return { url: re, parentElement: ce, type: he, index: H, resolveType: oe, originalContent: V, resolvedContent: null, resolved: !1 };
|
|
6773
6773
|
}
|
|
6774
6774
|
return r = { resolveManifestOnLoad: function(re) {
|
|
6775
|
-
I = new Bo({ escapeMode: !1, attributePrefix: "", arrayAccessForm: "property", emptyNodeForm: "object", stripWhitespaces: !1, enableToStringFunc: !1, ignoreRoot: !0, matchers: l }), (R = re).Period_asArray ? G(Z(R.Period_asArray, R, e.Z.PERIOD,
|
|
6775
|
+
I = new Bo({ escapeMode: !1, attributePrefix: "", arrayAccessForm: "property", emptyNodeForm: "object", stripWhitespaces: !1, enableToStringFunc: !1, ignoreRoot: !0, matchers: l }), (R = re).Period_asArray ? G(Z(R.Period_asArray, R, e.Z.PERIOD, hi), e.Z.PERIOD, hi) : F.trigger(o.Z.XLINK_READY, { manifest: R });
|
|
6776
6776
|
}, setMatchers: function(re) {
|
|
6777
6777
|
re && (l = re);
|
|
6778
6778
|
}, setIron: function(re) {
|
|
@@ -7176,7 +7176,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7176
7176
|
_.enumerable = _.enumerable || !1, _.configurable = !0, "value" in _ && (_.writable = !0), Object.defineProperty(i, _.key, _);
|
|
7177
7177
|
}
|
|
7178
7178
|
}
|
|
7179
|
-
var
|
|
7179
|
+
var mi = function() {
|
|
7180
7180
|
function i(_, R, I) {
|
|
7181
7181
|
var y = this;
|
|
7182
7182
|
(function(w, F) {
|
|
@@ -7244,10 +7244,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7244
7244
|
if (!(y instanceof w)) throw new TypeError("Cannot call a class as a function");
|
|
7245
7245
|
})(this, R);
|
|
7246
7246
|
var I = [e.Z.PROFILES, e.Z.WIDTH, e.Z.HEIGHT, e.Z.SAR, e.Z.FRAMERATE, e.Z.AUDIO_SAMPLING_RATE, e.Z.MIME_TYPE, e.Z.SEGMENT_PROFILES, e.Z.CODECS, e.Z.MAXIMUM_SAP_PERIOD, e.Z.START_WITH_SAP, e.Z.MAX_PLAYOUT_RATE, e.Z.CODING_DEPENDENCY, e.Z.SCAN_TYPE, e.Z.FRAME_PACKING, e.Z.AUDIO_CHANNEL_CONFIGURATION, e.Z.CONTENT_PROTECTION, e.Z.ESSENTIAL_PROPERTY, e.Z.ESSENTIAL_PROPERTY + "_asArray", e.Z.SUPPLEMENTAL_PROPERTY, e.Z.INBAND_EVENT_STREAM];
|
|
7247
|
-
return _.call(this, e.Z.ADAPTATION_SET, I, [new
|
|
7247
|
+
return _.call(this, e.Z.ADAPTATION_SET, I, [new mi(e.Z.REPRESENTATION, I, [new mi(e.Z.SUB_REPRESENTATION, I)])]);
|
|
7248
7248
|
}
|
|
7249
7249
|
return R;
|
|
7250
|
-
}(
|
|
7250
|
+
}(mi);
|
|
7251
7251
|
function Ba(i) {
|
|
7252
7252
|
return Ba = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(r) {
|
|
7253
7253
|
return typeof r;
|
|
@@ -7298,10 +7298,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7298
7298
|
if (!(y instanceof w)) throw new TypeError("Cannot call a class as a function");
|
|
7299
7299
|
})(this, R);
|
|
7300
7300
|
var I = [e.Z.SEGMENT_BASE, e.Z.SEGMENT_TEMPLATE, e.Z.SEGMENT_LIST];
|
|
7301
|
-
return _.call(this, e.Z.PERIOD, I, [new
|
|
7301
|
+
return _.call(this, e.Z.PERIOD, I, [new mi(e.Z.ADAPTATION_SET, I, [new mi(e.Z.REPRESENTATION, I)])]);
|
|
7302
7302
|
}
|
|
7303
7303
|
return R;
|
|
7304
|
-
}(
|
|
7304
|
+
}(mi);
|
|
7305
7305
|
function jo(i) {
|
|
7306
7306
|
i = i || {};
|
|
7307
7307
|
var r, l, _, R, I, y = this.context, w = i.debug;
|
|
@@ -8074,7 +8074,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8074
8074
|
} }, r = (0, h.Z)(F).getInstance().getLogger(i), _ = NaN, i;
|
|
8075
8075
|
}
|
|
8076
8076
|
is.__dashjs_factory_name = "VideoModel";
|
|
8077
|
-
var ml = v.Z.getSingletonFactory(is), pl = [{ oldKey: "dashjs_vbitrate", newKey: "dashjs_video_bitrate" }, { oldKey: "dashjs_abitrate", newKey: "dashjs_audio_bitrate" }, { oldKey: "dashjs_vsettings", newKey: "dashjs_video_settings" }, { oldKey: "dashjs_asettings", newKey: "dashjs_audio_settings" }], as = "dashjs_?_bitrate", os = "dashjs_?_settings",
|
|
8077
|
+
var ml = v.Z.getSingletonFactory(is), pl = [{ oldKey: "dashjs_vbitrate", newKey: "dashjs_video_bitrate" }, { oldKey: "dashjs_abitrate", newKey: "dashjs_audio_bitrate" }, { oldKey: "dashjs_vsettings", newKey: "dashjs_video_settings" }, { oldKey: "dashjs_asettings", newKey: "dashjs_audio_settings" }], as = "dashjs_?_bitrate", os = "dashjs_?_settings", pi = "localStorage", ss = "lastBitrate", us = "lastMediaSettings";
|
|
8078
8078
|
function ls(i) {
|
|
8079
8079
|
i = i || {};
|
|
8080
8080
|
var r, l, _, R = this.context, I = i.settings;
|
|
@@ -8087,7 +8087,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8087
8087
|
} catch (U) {
|
|
8088
8088
|
return l.warn("DOMStorage access denied: " + U.message), _;
|
|
8089
8089
|
}
|
|
8090
|
-
if (!N || G !==
|
|
8090
|
+
if (!N || G !== pi) return _;
|
|
8091
8091
|
try {
|
|
8092
8092
|
N.setItem("1", "1"), N.removeItem("1"), _ = !0;
|
|
8093
8093
|
} catch (U) {
|
|
@@ -8108,7 +8108,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8108
8108
|
return r = { getSavedBitrateSettings: function(G) {
|
|
8109
8109
|
if (q(), !I.get().streaming.lastBitrateCachingInfo.enabled) return NaN;
|
|
8110
8110
|
var N = NaN;
|
|
8111
|
-
if (F(
|
|
8111
|
+
if (F(pi, ss)) {
|
|
8112
8112
|
var U = as.replace(/\?/, G);
|
|
8113
8113
|
try {
|
|
8114
8114
|
var Z = JSON.parse(localStorage.getItem(U)) || {}, de = (/* @__PURE__ */ new Date()).getTime() - parseInt(Z.timestamp, 10) >= I.get().streaming.lastBitrateCachingInfo.ttl || !1, re = parseFloat(Z.bitrate);
|
|
@@ -8119,7 +8119,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8119
8119
|
}
|
|
8120
8120
|
return N;
|
|
8121
8121
|
}, setSavedBitrateSettings: function(G, N) {
|
|
8122
|
-
if (F(
|
|
8122
|
+
if (F(pi, ss) && N) {
|
|
8123
8123
|
var U = as.replace(/\?/, G);
|
|
8124
8124
|
try {
|
|
8125
8125
|
localStorage.setItem(U, JSON.stringify({ bitrate: N.toFixed(3), timestamp: w() }));
|
|
@@ -8130,7 +8130,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8130
8130
|
}, getSavedMediaSettings: function(G) {
|
|
8131
8131
|
if (q(), !I.get().streaming.lastMediaSettingsCachingInfo.enabled) return null;
|
|
8132
8132
|
var N = null;
|
|
8133
|
-
if (F(
|
|
8133
|
+
if (F(pi, us)) {
|
|
8134
8134
|
var U = os.replace(/\?/, G);
|
|
8135
8135
|
try {
|
|
8136
8136
|
var Z = JSON.parse(localStorage.getItem(U)) || {}, de = (/* @__PURE__ */ new Date()).getTime() - parseInt(Z.timestamp, 10) >= I.get().streaming.lastMediaSettingsCachingInfo.ttl || !1;
|
|
@@ -8141,7 +8141,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8141
8141
|
}
|
|
8142
8142
|
return N;
|
|
8143
8143
|
}, setSavedMediaSettings: function(G, N) {
|
|
8144
|
-
if (F(
|
|
8144
|
+
if (F(pi, us)) {
|
|
8145
8145
|
var U = os.replace(/\?/, G);
|
|
8146
8146
|
try {
|
|
8147
8147
|
localStorage.setItem(U, JSON.stringify({ settings: N, timestamp: w() }));
|
|
@@ -8149,7 +8149,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8149
8149
|
l.error(Z.message);
|
|
8150
8150
|
}
|
|
8151
8151
|
}
|
|
8152
|
-
} }, l = (0, h.Z)(R).getInstance().getLogger(r), y(
|
|
8152
|
+
} }, l = (0, h.Z)(R).getInstance().getLogger(r), y(pi) && pl.forEach(function(G) {
|
|
8153
8153
|
var N = localStorage.getItem(G.oldKey);
|
|
8154
8154
|
if (N) {
|
|
8155
8155
|
localStorage.removeItem(G.oldKey);
|
|
@@ -8724,7 +8724,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8724
8724
|
if (!D || !O || isNaN(A) || !ie) return null;
|
|
8725
8725
|
var W = D.scheme_id_uri, ue = D.value;
|
|
8726
8726
|
if (!O[W + "/" + ue]) return null;
|
|
8727
|
-
var $, k = new
|
|
8727
|
+
var $, k = new ar(), ee = D.timescale || 1, pe = ie.adaptation.period.start, Le = O[W + "/" + ue], Re = isNaN(ie.presentationTimeOffset) ? isNaN(Le.presentationTimeOffset) ? 0 : Le.presentationTimeOffset : ie.presentationTimeOffset, Pe = D.presentation_time_delta / ee;
|
|
8728
8728
|
$ = D.version === 0 ? pe + A - Re + Pe : pe - Re + Pe;
|
|
8729
8729
|
var Oe = D.event_duration / ee, ut = D.id, lt = D.message_data;
|
|
8730
8730
|
return k.eventStream = Le, k.eventStream.value = ue, k.eventStream.timescale = ee, k.duration = Oe, k.id = ut, k.calculatedPresentationTime = $, k.messageData = lt, k.presentationTimeDelta = Pe, k;
|
|
@@ -9178,7 +9178,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9178
9178
|
var g = V[0].getAdapter().getRegularPeriods()[0], L = q(/* @__PURE__ */ new Date(), g), D = g.mpd.timeShiftBufferDepth, O = isNaN(D) ? 0 : L - D;
|
|
9179
9179
|
if (fe.start = Z(V, O), fe.end = !isNaN(fe.start) && L < fe.start ? L : Z(V, L, !0), !isNaN(D) && fe.end < L - D && (fe.end = NaN), y.get().streaming.timeShiftBuffer.fallbackToSegmentTimeline) {
|
|
9180
9180
|
var A = N(V);
|
|
9181
|
-
if (A.range.end < fe.start) return I.trigger(n.Z.CONFORMANCE_VIOLATION, { level:
|
|
9181
|
+
if (A.range.end < fe.start) return I.trigger(n.Z.CONFORMANCE_VIOLATION, { level: gi.LEVELS.WARNING, event: gi.EVENTS.INVALID_DVR_WINDOW }), U(A.now, A.range), A.range;
|
|
9182
9182
|
}
|
|
9183
9183
|
return fe;
|
|
9184
9184
|
}(he);
|
|
@@ -9918,7 +9918,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
9918
9918
|
var i, r, l = this.context, _ = (0, m.Z)(l).getInstance(), R = 0;
|
|
9919
9919
|
return i = { parse: function(I, y, w, F, q) {
|
|
9920
9920
|
var G, N, U, Z = "", de = [], re = {}, ce = {}, he = "", H = "", oe = { onOpenTag: function(D, O, A) {
|
|
9921
|
-
if (A[" imagetype"] && !A[" imageType"] && (_.trigger(n.Z.CONFORMANCE_VIOLATION, { level:
|
|
9921
|
+
if (A[" imagetype"] && !A[" imageType"] && (_.trigger(n.Z.CONFORMANCE_VIOLATION, { level: gi.LEVELS.ERROR, event: gi.EVENTS.NON_COMPLIANT_SMPTE_IMAGE_ATTRIBUTE }), A[" imageType"] = A[" imagetype"]), O === "image" && (D === "http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt" || D === "http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt")) {
|
|
9922
9922
|
if (!A[" imageType"] || A[" imageType"].value !== "PNG") return void r.warn("smpte-tt imageType != PNG. Discarded");
|
|
9923
9923
|
he = A["http://www.w3.org/XML/1998/namespace id"].value;
|
|
9924
9924
|
}
|
|
@@ -10327,7 +10327,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10327
10327
|
}
|
|
10328
10328
|
return i = { initialize: function(ge, Te, Je) {
|
|
10329
10329
|
var Nt = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : NaN;
|
|
10330
|
-
g || (g = (0, zo.Z)(Ge).getInstance()).setConfig({ settings: We }), V || (V = rl(Ge).getInstance()), g.supportsMediaSource() ? (R || (R = !0, N = Vl(Ge).getInstance(), q || (q = gl(Ge).getInstance()).setConfig({ settings: We }), G || (G =
|
|
10330
|
+
g || (g = (0, zo.Z)(Ge).getInstance()).setConfig({ settings: We }), V || (V = rl(Ge).getInstance()), g.supportsMediaSource() ? (R || (R = !0, N = Vl(Ge).getInstance(), q || (q = gl(Ge).getInstance()).setConfig({ settings: We }), G || (G = zn(Ge).getInstance()), ie || (ie = d(Ge).getInstance()), U || (U = Iu(Ge).getInstance()), D || (D = So(Ge).getInstance()), A || (A = vu(Ge).getInstance()), $ || ($ = Tu(Ge).getInstance()), W || (W = Su(Ge).getInstance()), ue || (ue = Ar(Ge).getInstance()), L || (L = il(Ge).getInstance()), he = Cl(Ge).getInstance(), ee = sl(Ge).getInstance(), pe = mn(Ge).getInstance(), Le = Ft(Ge).getInstance(), k = ql(Ge).getInstance({ settings: We }), Oe = yl(Ge).getInstance({ settings: We }), he.setConfig({ constants: t.Z, cea608parser: E(), errHandler: V, BASE64: Ka }), fe || (fe = Ou(Ge).create()), fe.setConfig({ adapter: he, contentSteeringController: ue }), W.setConfig({ adapter: he }), ut || (ut = Tl(Ge).getInstance({ dashMetrics: k, mediaPlayerModel: H, errHandler: V, baseURLController: fe, events: o.Z, eventBus: yt, debug: Tt, boxParser: (0, Si.Z)(Ge).getInstance(), requestModifier: (0, we.Z)(Ge).getInstance(), errors: X })), U.setConfig({ domStorage: Oe, settings: We, customParametersModel: oe }), H.setConfig({ playbackController: ie, serviceDescriptionController: W }), ue.setConfig({ adapter: he, errHandler: V, dashMetrics: k, mediaPlayerModel: H, manifestModel: ee, serviceDescriptionController: W, eventBus: yt, requestModifier: (0, we.Z)(Ge).getInstance() }), wt(), st(Je === void 0 || Je), ze()), ge && Qt(ge), Te && on(Te, Nt), r.info("[dash.js " + Wt() + "] MediaPlayer has been initialized")) : V.error(new ae.Z(X.CAPABILITY_MEDIASOURCE_ERROR_CODE, X.CAPABILITY_MEDIASOURCE_ERROR_MESSAGE));
|
|
10331
10331
|
}, setConfig: function(ge) {
|
|
10332
10332
|
ge && (ge.capabilities && (g = ge.capabilities), ge.capabilitiesFilter && (L = ge.capabilitiesFilter), ge.streamController && (D = ge.streamController), ge.textController && (O = ge.textController), ge.gapController && (A = ge.gapController), ge.playbackController && (ie = ge.playbackController), ge.serviceDescriptionController && (W = ge.serviceDescriptionController), ge.contentSteeringController && (ue = ge.contentSteeringController), ge.catchupController && ($ = ge.catchupController), ge.mediaPlayerModel && (H = ge.mediaPlayerModel), ge.customParametersModel && (oe = ge.customParametersModel), ge.abrController && (q = ge.abrController), ge.schemeLoaderFactory && (G = ge.schemeLoaderFactory), ge.mediaController && (U = ge.mediaController), ge.settings && (We = ge.settings));
|
|
10333
10333
|
}, on: function(ge, Te, Je, Nt) {
|
|
@@ -11034,7 +11034,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11034
11034
|
}
|
|
11035
11035
|
at.__dashjs_factory_name = "ManifestParsing";
|
|
11036
11036
|
var me = dashjs.FactoryMaker.getSingletonFactory(at);
|
|
11037
|
-
function
|
|
11037
|
+
function _e(b) {
|
|
11038
11038
|
var Q;
|
|
11039
11039
|
b = b || {};
|
|
11040
11040
|
var Y = {}, we = this.context, tt = b.eventBus, Ue = b.events;
|
|
@@ -11063,8 +11063,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11063
11063
|
tt.off(Ue.MANIFEST_UPDATED, Fe, Q), tt.off(Ue.STREAM_TEARDOWN_COMPLETE, Ne, Q);
|
|
11064
11064
|
} }, tt.on(Ue.MANIFEST_UPDATED, Fe, Q), tt.on(Ue.STREAM_TEARDOWN_COMPLETE, Ne, Q), Q;
|
|
11065
11065
|
}
|
|
11066
|
-
|
|
11067
|
-
var Ye = dashjs.FactoryMaker.getClassFactory(
|
|
11066
|
+
_e.__dashjs_factory_name = "MetricsCollectionController";
|
|
11067
|
+
var Ye = dashjs.FactoryMaker.getClassFactory(_e);
|
|
11068
11068
|
function f() {
|
|
11069
11069
|
var b = this.context;
|
|
11070
11070
|
return { createMetricsReporting: function(Q) {
|
|
@@ -11251,7 +11251,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11251
11251
|
}
|
|
11252
11252
|
}
|
|
11253
11253
|
C.d(Ee, { default: function() {
|
|
11254
|
-
return
|
|
11254
|
+
return oi;
|
|
11255
11255
|
} });
|
|
11256
11256
|
var E = { attributes: ["Laurl", "laurl"], prefixes: ["clearkey", "dashif"] }, t = function() {
|
|
11257
11257
|
function Dt() {
|
|
@@ -11406,24 +11406,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11406
11406
|
if (!nn) {
|
|
11407
11407
|
nn = !0;
|
|
11408
11408
|
var Cn, Xn = [];
|
|
11409
|
-
En = En.sort(function(
|
|
11410
|
-
return ($e && $e[
|
|
11409
|
+
En = En.sort(function(zn, Un) {
|
|
11410
|
+
return ($e && $e[zn.ks.systemString] && $e[zn.ks.systemString].priority >= 0 ? $e[zn.ks.systemString].priority : En.length) - ($e && $e[Un.ks.systemString] && $e[Un.ks.systemString].priority >= 0 ? $e[Un.ks.systemString].priority : En.length);
|
|
11411
11411
|
});
|
|
11412
11412
|
for (var Fn = 0; Fn < En.length; Fn++) {
|
|
11413
11413
|
var _r = Gr(En[Fn]);
|
|
11414
11414
|
Xn.push({ ks: En[Fn].ks, configs: [_r], protData: En[Fn].protData });
|
|
11415
11415
|
}
|
|
11416
|
-
tn.requestKeySystemAccess(Xn).then(function(
|
|
11417
|
-
var Un = (Cn =
|
|
11416
|
+
tn.requestKeySystemAccess(Xn).then(function(zn) {
|
|
11417
|
+
var Un = (Cn = zn.data).mksa && Cn.mksa.selectedSystemString ? Cn.mksa.selectedSystemString : Cn.keySystem.systemString;
|
|
11418
11418
|
return Ct.info("DRM: KeySystem Access Granted for system string (" + Un + ")! Selecting key system..."), tn.selectKeySystem(Cn);
|
|
11419
|
-
}).then(function(
|
|
11420
|
-
if (Gt =
|
|
11419
|
+
}).then(function(zn) {
|
|
11420
|
+
if (Gt = zn, nn = !1, tn) {
|
|
11421
11421
|
Jt.trigger(dn.KEY_SYSTEM_SELECTED, { data: Cn });
|
|
11422
11422
|
var Un = Qn(Gt);
|
|
11423
11423
|
Un && Un.serverCertificate && Un.serverCertificate.length > 0 && tn.setServerCertificate(wn.decodeArray(Un.serverCertificate).buffer), Rn();
|
|
11424
11424
|
}
|
|
11425
|
-
}).catch(function(
|
|
11426
|
-
Gt = null, nn = !1, jn || Jt.trigger(dn.KEY_SYSTEM_SELECTED, { data: null, error: new c.Z(n.KEY_SYSTEM_ACCESS_DENIED_ERROR_CODE, n.KEY_SYSTEM_ACCESS_DENIED_ERROR_MESSAGE + "Error selecting key system! -- " +
|
|
11425
|
+
}).catch(function(zn) {
|
|
11426
|
+
Gt = null, nn = !1, jn || Jt.trigger(dn.KEY_SYSTEM_SELECTED, { data: null, error: new c.Z(n.KEY_SYSTEM_ACCESS_DENIED_ERROR_CODE, n.KEY_SYSTEM_ACCESS_DENIED_ERROR_MESSAGE + "Error selecting key system! -- " + zn.error) });
|
|
11427
11427
|
});
|
|
11428
11428
|
}
|
|
11429
11429
|
}(Ft, ln);
|
|
@@ -11481,13 +11481,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11481
11481
|
}
|
|
11482
11482
|
}
|
|
11483
11483
|
function rr(Ft) {
|
|
11484
|
-
mn(), Ft ? (tn.setMediaElement(Ft), Jt.on(dn.NEED_KEY,
|
|
11484
|
+
mn(), Ft ? (tn.setMediaElement(Ft), Jt.on(dn.NEED_KEY, ui, Rt)) : Ft === null && (tn.setMediaElement(Ft), Jt.off(dn.NEED_KEY, ui, Rt));
|
|
11485
11485
|
}
|
|
11486
11486
|
function Gr(Ft) {
|
|
11487
|
-
var ln = Ft.protData, En = [], jn = [], Cn = ln && ln.audioRobustness && ln.audioRobustness.length > 0 ? ln.audioRobustness : Zt, Xn = ln && ln.videoRobustness && ln.videoRobustness.length > 0 ? ln.videoRobustness : Zt, Fn = Ft.sessionType, _r = ln && ln.distinctiveIdentifier ? ln.distinctiveIdentifier : "optional",
|
|
11487
|
+
var ln = Ft.protData, En = [], jn = [], Cn = ln && ln.audioRobustness && ln.audioRobustness.length > 0 ? ln.audioRobustness : Zt, Xn = ln && ln.videoRobustness && ln.videoRobustness.length > 0 ? ln.videoRobustness : Zt, Fn = Ft.sessionType, _r = ln && ln.distinctiveIdentifier ? ln.distinctiveIdentifier : "optional", zn = ln && ln.persistentState ? ln.persistentState : Fn === "temporary" ? "optional" : "required";
|
|
11488
11488
|
return _t.forEach(function(Un) {
|
|
11489
11489
|
Un.type === un.AUDIO ? En.push(new e(Un.codec, Cn)) : Un.type === un.VIDEO && jn.push(new e(Un.codec, Xn));
|
|
11490
|
-
}), new p(En, jn, _r,
|
|
11490
|
+
}), new p(En, jn, _r, zn, [Fn]);
|
|
11491
11491
|
}
|
|
11492
11492
|
function br(Ft) {
|
|
11493
11493
|
Ft.error ? Jt.trigger(dn.KEY_STATUSES_CHANGED, { data: null, error: Ft.error }) : Ct.debug("DRM: key status = " + Ft.status);
|
|
@@ -11500,34 +11500,34 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11500
11500
|
if (jn && jn.byteLength !== 0) {
|
|
11501
11501
|
if (!Fn) return Ct.debug("DRM: License server request not required for this message (type = " + Ft.data.messageType + "). Session ID = " + Cn.getSessionId()), void sr(_r);
|
|
11502
11502
|
if (It.isClearKey(Gt)) {
|
|
11503
|
-
var
|
|
11504
|
-
if (
|
|
11503
|
+
var zn = It.processClearKeyLicenseRequest(Gt, Xn, jn);
|
|
11504
|
+
if (zn && zn.keyPairs && zn.keyPairs.length > 0) return Ct.debug("DRM: ClearKey license request handled by application!"), sr(_r), void tn.updateKeySession(Cn, zn);
|
|
11505
11505
|
}
|
|
11506
11506
|
(function(Un, ur, lr) {
|
|
11507
|
-
var Nr = Un.sessionToken, Sr = Un.messageType ? Un.messageType : "license-request", Dr = { sessionToken: Nr, messageType: Sr }, Hr = Gt ? Gt.systemString : null, bi = function(kn, Qr,
|
|
11507
|
+
var Nr = Un.sessionToken, Sr = Un.messageType ? Un.messageType : "license-request", Dr = { sessionToken: Nr, messageType: Sr }, Hr = Gt ? Gt.systemString : null, bi = function(kn, Qr, di, Xr, Ui) {
|
|
11508
11508
|
var Ar = null, Bi = Xr.message;
|
|
11509
11509
|
if (kn && kn.serverURL) {
|
|
11510
11510
|
var qr = kn.serverURL;
|
|
11511
11511
|
typeof qr == "string" && qr !== "" ? Ar = qr : M(qr) === "object" && qr.hasOwnProperty(Qr) && (Ar = qr[Qr]);
|
|
11512
11512
|
} else if (kn && kn.laURL && kn.laURL !== "") Ar = kn.laURL;
|
|
11513
11513
|
else if (!(Ar = t.getLicenseServerUrlFromMediaInfo(_t, Gt.schemeIdURI)) && !It.isClearKey(Gt)) {
|
|
11514
|
-
var Gi = t.getPSSHData(
|
|
11514
|
+
var Gi = t.getPSSHData(di.initData);
|
|
11515
11515
|
(Ar = Gt.getLicenseServerURLFromInitData(Gi)) || (Ar = Xr.laURL);
|
|
11516
11516
|
}
|
|
11517
11517
|
return Ar = Ui.getServerURLFromMessage(Ar, Bi, Qr);
|
|
11518
11518
|
}(lr, Sr, Nr, Un, ur);
|
|
11519
11519
|
if (bi) {
|
|
11520
|
-
var
|
|
11521
|
-
lr && Oi(
|
|
11520
|
+
var li = {}, ci = !1;
|
|
11521
|
+
lr && Oi(li, lr.httpRequestHeaders);
|
|
11522
11522
|
var Pi = Un.message;
|
|
11523
|
-
Oi(
|
|
11524
|
-
kn.toLowerCase() === "authorization" && (
|
|
11525
|
-
}), lr && typeof lr.withCredentials == "boolean" && (
|
|
11523
|
+
Oi(li, Gt.getRequestHeadersFromMessage(Pi)), Object.keys(li).forEach(function(kn) {
|
|
11524
|
+
kn.toLowerCase() === "authorization" && (ci = !0);
|
|
11525
|
+
}), lr && typeof lr.withCredentials == "boolean" && (ci = lr.withCredentials);
|
|
11526
11526
|
var xi = function(kn) {
|
|
11527
11527
|
if (tn) if (kn.status >= 200 && kn.status <= 299) {
|
|
11528
|
-
var Qr = B.Z.parseHttpHeaders(kn.getAllResponseHeaders ? kn.getAllResponseHeaders() : null),
|
|
11529
|
-
Li(fn.getLicenseResponseFilters(),
|
|
11530
|
-
var Xr = ur.getLicenseMessage(
|
|
11528
|
+
var Qr = B.Z.parseHttpHeaders(kn.getAllResponseHeaders ? kn.getAllResponseHeaders() : null), di = new S(kn.responseURL, Qr, kn.response);
|
|
11529
|
+
Li(fn.getLicenseResponseFilters(), di).then(function() {
|
|
11530
|
+
var Xr = ur.getLicenseMessage(di.data, Hr, Sr);
|
|
11531
11531
|
Xr !== null ? (sr(Dr), tn.updateKeySession(Nr, Xr)) : Mi(kn, Dr, Hr, Sr, ur);
|
|
11532
11532
|
});
|
|
11533
11533
|
} else Mi(kn, Dr, Hr, Sr, ur);
|
|
@@ -11535,9 +11535,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11535
11535
|
sr(Dr, new c.Z(n.MEDIA_KEY_MESSAGE_LICENSER_ERROR_CODE, n.MEDIA_KEY_MESSAGE_LICENSER_ERROR_MESSAGE + Hr + ' update, XHR aborted. status is "' + kn.statusText + '" (' + kn.status + "), readyState is " + kn.readyState));
|
|
11536
11536
|
}, Ea = function(kn) {
|
|
11537
11537
|
sr(Dr, new c.Z(n.MEDIA_KEY_MESSAGE_LICENSER_ERROR_CODE, n.MEDIA_KEY_MESSAGE_LICENSER_ERROR_MESSAGE + Hr + ' update, XHR error. status is "' + kn.statusText + '" (' + kn.status + "), readyState is " + kn.readyState));
|
|
11538
|
-
}, Fi = Gt.getLicenseRequestFromMessage(Pi), ki = ur.getHTTPMethod(Sr), va = ur.getResponseType(Hr, Sr), Si = lr && !isNaN(lr.httpTimeout) ? lr.httpTimeout : 8e3, Zi = Nr.getSessionId() || null,
|
|
11539
|
-
Li(fn.getLicenseRequestFilters(),
|
|
11540
|
-
Di(
|
|
11538
|
+
}, Fi = Gt.getLicenseRequestFromMessage(Pi), ki = ur.getHTTPMethod(Sr), va = ur.getResponseType(Hr, Sr), Si = lr && !isNaN(lr.httpTimeout) ? lr.httpTimeout : 8e3, Zi = Nr.getSessionId() || null, fi = new d(bi, ki, va, li, ci, Sr, Zi, Fi), Ta = isNaN(jt.get().streaming.retryAttempts[x.w.LICENSE]) ? 3 : jt.get().streaming.retryAttempts[x.w.LICENSE];
|
|
11539
|
+
Li(fn.getLicenseRequestFilters(), fi).then(function() {
|
|
11540
|
+
Di(fi, Ta, Si, xi, _a, Ea);
|
|
11541
11541
|
});
|
|
11542
11542
|
} else sr(Dr, new c.Z(n.MEDIA_KEY_MESSAGE_NO_LICENSE_SERVER_URL_ERROR_CODE, n.MEDIA_KEY_MESSAGE_NO_LICENSE_SERVER_URL_ERROR_MESSAGE));
|
|
11543
11543
|
})(ln, Fn, Xn);
|
|
@@ -11552,7 +11552,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11552
11552
|
var _r = Ot.getQueryParameter({ url: Ft.url, type: x.w.LICENSE });
|
|
11553
11553
|
_r && (Ft.url = B.Z.addAditionalQueryParameterToUrl(Ft.url, [_r]));
|
|
11554
11554
|
}
|
|
11555
|
-
for (var
|
|
11555
|
+
for (var zn in Fn.open(Ft.method, Ft.url, !0), Fn.responseType = Ft.responseType, Fn.withCredentials = Ft.withCredentials, En > 0 && (Fn.timeout = En), Ft.headers) Fn.setRequestHeader(zn, Ft.headers[zn]);
|
|
11556
11556
|
if (jt.get().streaming.cmcd && jt.get().streaming.cmcd.enabled && jt.get().streaming.cmcd.mode === P.Z.CMCD_MODE_HEADER) {
|
|
11557
11557
|
var Un = Ot.getHeaderParameters({ url: Ft.url, type: x.w.LICENSE });
|
|
11558
11558
|
if (Un) for (var ur in Un) {
|
|
@@ -11575,7 +11575,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11575
11575
|
Cn(this);
|
|
11576
11576
|
}, Jt.trigger(dn.LICENSE_REQUEST_SENDING, { url: Ft.url, headers: Ft.headers, payload: Ft.data, sessionId: Ft.sessionId }), rn = Fn, Fn.send(Ft.data);
|
|
11577
11577
|
}
|
|
11578
|
-
function
|
|
11578
|
+
function si() {
|
|
11579
11579
|
rn && (rn.onloadend = rn.onerror = rn.onprogress = void 0, rn.abort(), rn = null), Kt && (clearTimeout(Kt), Kt = null);
|
|
11580
11580
|
}
|
|
11581
11581
|
function Oi(Ft, ln) {
|
|
@@ -11592,11 +11592,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11592
11592
|
});
|
|
11593
11593
|
}, Promise.resolve()) : Promise.resolve();
|
|
11594
11594
|
}
|
|
11595
|
-
function
|
|
11595
|
+
function ui(Ft, ln) {
|
|
11596
11596
|
if (!jt.get().streaming.protection.ignoreEmeEncryptedEvent) {
|
|
11597
11597
|
if (Ct.debug("DRM: onNeedKey"), Ft.key.initDataType !== "cenc") return void Ct.warn("DRM: Only 'cenc' initData is supported! Ignoring initData of type: " + Ft.key.initDataType);
|
|
11598
11598
|
if (_t.length === 0 && (Ct.warn("DRM: onNeedKey called before initializeForMedia, wait until initialized"), (ln = ln === void 0 ? 1 : ln + 1) < 5)) return void At.push(setTimeout(function() {
|
|
11599
|
-
|
|
11599
|
+
ui(Ft, ln);
|
|
11600
11600
|
}, 500));
|
|
11601
11601
|
var En = Ft.key.initData;
|
|
11602
11602
|
if (ArrayBuffer.isView(En) && (En = En.buffer), Gt) {
|
|
@@ -11643,9 +11643,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11643
11643
|
}, setKeySystems: function(Ft) {
|
|
11644
11644
|
It && It.setKeySystems(Ft);
|
|
11645
11645
|
}, stop: function() {
|
|
11646
|
-
|
|
11646
|
+
si(), tn && tn.stop();
|
|
11647
11647
|
}, reset: function() {
|
|
11648
|
-
Jt.off(dn.INTERNAL_KEY_MESSAGE, Cr, Rt), Jt.off(dn.INTERNAL_KEY_STATUS_CHANGED, br, Rt), mn(),
|
|
11648
|
+
Jt.off(dn.INTERNAL_KEY_MESSAGE, Cr, Rt), Jt.off(dn.INTERNAL_KEY_STATUS_CHANGED, br, Rt), mn(), si(), rr(null), Gt = null, nn = !1, tn && (tn.reset(), tn = null), At.forEach(function(Ft) {
|
|
11649
11649
|
return clearTimeout(Ft);
|
|
11650
11650
|
}), At = [], _t = [], je = [];
|
|
11651
11651
|
} }, Ct = Tn.getLogger(Rt), je = [], _t = [], ht = "temporary", Zt = "", rn = null, Kt = null, Jt.on(dn.INTERNAL_KEY_MESSAGE, Cr, Rt), Jt.on(dn.INTERNAL_KEY_STATUS_CHANGED, br, Rt), Rt;
|
|
@@ -11786,7 +11786,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11786
11786
|
} };
|
|
11787
11787
|
}
|
|
11788
11788
|
me.__dashjs_factory_name = "KeySystemWidevine";
|
|
11789
|
-
var
|
|
11789
|
+
var _e = dashjs.FactoryMaker.getSingletonFactory(me), Ye = "9a04f079-9840-4286-ab92-e65be0885f95", f = X.PLAYREADY_KEYSTEM_STRING, u = "urn:uuid:" + Ye;
|
|
11790
11790
|
function T(Dt) {
|
|
11791
11791
|
var Rt = "utf-16", Ct = (Dt = Dt || {}).BASE64, je = Dt.settings;
|
|
11792
11792
|
function _t() {
|
|
@@ -11960,7 +11960,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11960
11960
|
}
|
|
11961
11961
|
return Dt = { initialize: function() {
|
|
11962
11962
|
var It;
|
|
11963
|
-
je = [], It = b(Gt).getInstance({ BASE64: _t, settings: $e }), je.push(It), It =
|
|
11963
|
+
je = [], It = b(Gt).getInstance({ BASE64: _t, settings: $e }), je.push(It), It = _e(Gt).getInstance({ BASE64: _t }), je.push(It), It = Ze(Gt).getInstance({ BASE64: _t }), je.push(It), ht = It, It = ct(Gt).getInstance({ BASE64: _t, debug: Rt }), je.push(It), Zt = It;
|
|
11964
11964
|
}, setProtectionData: function(It) {
|
|
11965
11965
|
for (var tn, Jt, dn = 0; dn < je.length; dn++) {
|
|
11966
11966
|
var Tn = je[dn];
|
|
@@ -12357,7 +12357,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12357
12357
|
}
|
|
12358
12358
|
In.__dashjs_factory_name = "ProtectionModel_3Feb2014";
|
|
12359
12359
|
var cr = dashjs.FactoryMaker.getClassFactory(In);
|
|
12360
|
-
function
|
|
12360
|
+
function Kn(Dt) {
|
|
12361
12361
|
Dt = Dt || {};
|
|
12362
12362
|
var Rt, Ct, je, _t, $e, ht, Zt, Gt, nn, rn = this.context, Kt = Dt.eventBus, It = Dt.events, tn = Dt.debug, Jt = Dt.api, dn = Dt.errHandler;
|
|
12363
12363
|
function Tn() {
|
|
@@ -12487,8 +12487,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12487
12487
|
}
|
|
12488
12488
|
} }, Rt;
|
|
12489
12489
|
}
|
|
12490
|
-
|
|
12491
|
-
var
|
|
12490
|
+
Kn.__dashjs_factory_name = "ProtectionModel_01b";
|
|
12491
|
+
var ir = dashjs.FactoryMaker.getClassFactory(Kn), yr = [{ generateKeyRequest: "generateKeyRequest", addKey: "addKey", cancelKeyRequest: "cancelKeyRequest", needkey: "needkey", keyerror: "keyerror", keyadded: "keyadded", keymessage: "keymessage" }, { generateKeyRequest: "webkitGenerateKeyRequest", addKey: "webkitAddKey", cancelKeyRequest: "webkitCancelKeyRequest", needkey: "webkitneedkey", keyerror: "webkitkeyerror", keyadded: "webkitkeyadded", keymessage: "webkitkeymessage" }], ar = [{ setMediaKeys: "setMediaKeys", MediaKeys: "MediaKeys", release: "close", needkey: "needkey", error: "keyerror", message: "keymessage", ready: "keyadded", close: "keyclose" }, { setMediaKeys: "msSetMediaKeys", MediaKeys: "MSMediaKeys", release: "close", needkey: "msneedkey", error: "mskeyerror", message: "mskeymessage", ready: "mskeyadded", close: "mskeyclose" }];
|
|
12492
12492
|
function vr() {
|
|
12493
12493
|
var Dt, Rt = this.context;
|
|
12494
12494
|
function Ct(je, _t) {
|
|
@@ -12503,7 +12503,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12503
12503
|
$e.setConfig({ debug: je.debug, BASE64: je.BASE64, settings: je.settings }), $e.initialize();
|
|
12504
12504
|
var ht = function(Zt) {
|
|
12505
12505
|
var Gt = Zt.debug, nn = Gt.getLogger(Dt), rn = Zt.eventBus, Kt = Zt.errHandler, It = Zt.videoModel ? Zt.videoModel.getElement() : null;
|
|
12506
|
-
return It && It.onencrypted === void 0 || It && It.mediaKeys === void 0 ? Ct(It,
|
|
12506
|
+
return It && It.onencrypted === void 0 || It && It.mediaKeys === void 0 ? Ct(It, ar) ? (nn.info("EME detected on this user agent! (ProtectionModel_3Feb2014)"), cr(Rt).create({ debug: Gt, eventBus: rn, events: Zt.events, api: Ct(It, ar) })) : Ct(It, yr) ? (nn.info("EME detected on this user agent! (ProtectionModel_01b)"), ir(Rt).create({ debug: Gt, eventBus: rn, errHandler: Kt, events: Zt.events, api: Ct(It, yr) })) : (nn.warn("No supported version of EME detected on this user agent! - Attempts to play encrypted content will fail!"), null) : (nn.info("EME detected on this user agent! (ProtectionModel_21Jan2015)"), er(Rt).create({ debug: Gt, eventBus: rn, events: Zt.events }));
|
|
12507
12507
|
}(je);
|
|
12508
12508
|
return !_t && ht && (_t = ae(Rt).create({ protectionModel: ht, protectionKeyController: $e, eventBus: je.eventBus, debug: je.debug, events: je.events, BASE64: je.BASE64, constants: je.constants, cmcdModel: je.cmcdModel, customParametersModel: je.customParametersModel, settings: je.settings }), je.capabilities.setEncryptedMediaSupported(!0)), _t;
|
|
12509
12509
|
} };
|
|
@@ -12511,7 +12511,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12511
12511
|
vr.__dashjs_factory_name = "Protection";
|
|
12512
12512
|
var Tr = dashjs.FactoryMaker.getClassFactory(vr);
|
|
12513
12513
|
Tr.events = Bt, Tr.errors = n, dashjs.FactoryMaker.updateClassFactory(vr.__dashjs_factory_name, Tr);
|
|
12514
|
-
var
|
|
12514
|
+
var oi = Tr;
|
|
12515
12515
|
}, 2068: function(Ce, Ee, C) {
|
|
12516
12516
|
var ne = C(5448), E = { DEFAULT: 0.5, STRONG: 1, WEAK: 0 };
|
|
12517
12517
|
function t(p, m, o) {
|
|
@@ -12608,8 +12608,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12608
12608
|
d = d || {};
|
|
12609
12609
|
var S, x, B, P = this.context, J = d.dashMetrics, M = d.mediaPlayerModel, K = (0, p.Z)(P).getInstance();
|
|
12610
12610
|
function ae(Se, ke, ct) {
|
|
12611
|
-
var gt = ct.reduce(function(me,
|
|
12612
|
-
return
|
|
12611
|
+
var gt = ct.reduce(function(me, _e, Ye) {
|
|
12612
|
+
return _e > ct[me] ? Ye : me;
|
|
12613
12613
|
}, 0);
|
|
12614
12614
|
if (gt === 0) return null;
|
|
12615
12615
|
var qe = Math.max(Se, n + 2 * ke.length), at = (ct[gt] - 1) / (qe / n - 1);
|
|
@@ -12633,7 +12633,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12633
12633
|
}
|
|
12634
12634
|
function Ie(Se, ke) {
|
|
12635
12635
|
for (var ct = Se.bitrates[ke], gt = Se.utilities[ke], qe = 0, at = ke - 1; at >= 0; --at) if (Se.utilities[at] < Se.utilities[ke]) {
|
|
12636
|
-
var me = Se.bitrates[at],
|
|
12636
|
+
var me = Se.bitrates[at], _e = Se.utilities[at], Ye = Se.Vp * (Se.gp + (ct * _e - me * gt) / (ct - me));
|
|
12637
12637
|
qe = Math.max(qe, Ye);
|
|
12638
12638
|
}
|
|
12639
12639
|
return qe;
|
|
@@ -12695,7 +12695,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12695
12695
|
return S = { getMaxIndex: function(Se) {
|
|
12696
12696
|
var ke = (0, E.Z)(P).create();
|
|
12697
12697
|
if (!(Se && Se.hasOwnProperty("getMediaInfo") && Se.hasOwnProperty("getMediaType") && Se.hasOwnProperty("getScheduleController") && Se.hasOwnProperty("getStreamInfo") && Se.hasOwnProperty("getAbrController") && Se.hasOwnProperty("useBufferOccupancyABR"))) return ke;
|
|
12698
|
-
var ct = Se.getMediaInfo(), gt = Se.getMediaType(), qe = Se.getScheduleController(), at = Se.getStreamInfo(), me = Se.getAbrController(),
|
|
12698
|
+
var ct = Se.getMediaInfo(), gt = Se.getMediaType(), qe = Se.getScheduleController(), at = Se.getStreamInfo(), me = Se.getAbrController(), _e = me.getThroughputHistory(), Ye = at ? at.id : null, f = at && at.manifestInfo && at.manifestInfo.isDynamic, u = Se.useBufferOccupancyABR();
|
|
12699
12699
|
if (ke.reason = ke.reason || {}, !u) return ke;
|
|
12700
12700
|
qe.setTimeToLoadDelay(0);
|
|
12701
12701
|
var T = function(Ne) {
|
|
@@ -12716,7 +12716,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12716
12716
|
}(Ne), B[He] = it), it;
|
|
12717
12717
|
}(Se);
|
|
12718
12718
|
if (T.state === 0) return ke;
|
|
12719
|
-
var b, Q = J.getCurrentBufferLevel(gt), Y =
|
|
12719
|
+
var b, Q = J.getCurrentBufferLevel(gt), Y = _e.getAverageThroughput(gt, f), we = _e.getSafeAverageThroughput(gt, f), tt = _e.getAverageLatency(gt);
|
|
12720
12720
|
if (ke.reason.state = T.state, ke.reason.throughput = Y, ke.reason.latency = tt, isNaN(Y)) return ke;
|
|
12721
12721
|
switch (T.state) {
|
|
12722
12722
|
case 1:
|
|
@@ -12861,8 +12861,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12861
12861
|
return c = { getMaxIndex: function(De) {
|
|
12862
12862
|
var Be, Qe = (0, E.Z)(B).create(), be = Math.pow(4, 0.99), Ze = Math.max(Math.pow(4, 1), be * Math.sqrt(4)), Xe = De.getMediaInfo(), ot = De.getMediaType(), Se = Xe.bitrateList.map(function(Bt) {
|
|
12863
12863
|
return Bt.bandwidth;
|
|
12864
|
-
}), ke = Se.length, ct = De.getScheduleController(), gt = De.getStreamInfo(), qe = De.getAbrController(), at = qe.getThroughputHistory(), me = gt && gt.manifestInfo && gt.manifestInfo.isDynamic,
|
|
12865
|
-
if (!(De && De.hasOwnProperty("getMediaInfo") && De.hasOwnProperty("getMediaType") && De.hasOwnProperty("getScheduleController") && De.hasOwnProperty("getStreamInfo") && De.hasOwnProperty("getAbrController") && De.hasOwnProperty("useL2AABR")) || (Qe.reason = Qe.reason || {}, !
|
|
12864
|
+
}), ke = Se.length, ct = De.getScheduleController(), gt = De.getStreamInfo(), qe = De.getAbrController(), at = qe.getThroughputHistory(), me = gt && gt.manifestInfo && gt.manifestInfo.isDynamic, _e = De.useL2AABR(), Ye = P.getCurrentBufferLevel(ot, !0), f = at.getSafeAverageThroughput(ot, me), u = at.getAverageThroughput(ot, me), T = at.getAverageLatency(ot), b = De.getVideoModel().getPlaybackRate();
|
|
12865
|
+
if (!(De && De.hasOwnProperty("getMediaInfo") && De.hasOwnProperty("getMediaType") && De.hasOwnProperty("getScheduleController") && De.hasOwnProperty("getStreamInfo") && De.hasOwnProperty("getAbrController") && De.hasOwnProperty("useL2AABR")) || (Qe.reason = Qe.reason || {}, !_e || ot === v.Z.AUDIO)) return Qe;
|
|
12866
12866
|
ct.setTimeToLoadDelay(0);
|
|
12867
12867
|
var Q = function(Bt) {
|
|
12868
12868
|
var cn = Bt.getMediaType(), vn = d[cn];
|
|
@@ -12896,14 +12896,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12896
12896
|
for (var it = Q.lastSegmentDurationS, St = 1, dt = 0; dt < ke; ++dt) Se[dt] = Se[dt] / 1e3, b * Se[dt] > Ne && (St = -1), Y.w[dt] = Y.prev_w[dt] + St * (it / (2 * Ze)) * ((Y.Q + be) * (b * Se[dt] / Ne));
|
|
12897
12897
|
Y.w = function(Bt) {
|
|
12898
12898
|
for (var cn = Bt.length, vn = !1, Ln = [], Dn = 0; Dn < cn; ++Dn) Ln[Dn] = Bt[Dn];
|
|
12899
|
-
for (var xn = Bt.sort(function(yr,
|
|
12900
|
-
return
|
|
12901
|
-
}), er = 0, In = 0, cr = [],
|
|
12899
|
+
for (var xn = Bt.sort(function(yr, ar) {
|
|
12900
|
+
return ar - yr;
|
|
12901
|
+
}), er = 0, In = 0, cr = [], Kn = 0; Kn < cn - 1; ++Kn) if ((In = ((er += xn[Kn]) - 1) / (Kn + 1)) >= xn[Kn + 1]) {
|
|
12902
12902
|
vn = !0;
|
|
12903
12903
|
break;
|
|
12904
12904
|
}
|
|
12905
12905
|
vn || (In = (er + xn[cn - 1] - 1) / cn);
|
|
12906
|
-
for (var
|
|
12906
|
+
for (var ir = 0; ir < cn; ++ir) cr[ir] = Math.max(Ln[ir] - In, 0);
|
|
12907
12907
|
return cr;
|
|
12908
12908
|
}(Y.w);
|
|
12909
12909
|
for (var Yt = 0; Yt < ke; ++Yt) tt[Yt] = Y.w[Yt] - Y.prev_w[Yt], Y.prev_w[Yt] = Y.w[Yt];
|
|
@@ -13005,8 +13005,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13005
13005
|
m.push(Fe);
|
|
13006
13006
|
}
|
|
13007
13007
|
c = function(He) {
|
|
13008
|
-
var it = [], St = function(
|
|
13009
|
-
for (var Dt = [], Rt = 0; Rt <
|
|
13008
|
+
var it = [], St = function(oi) {
|
|
13009
|
+
for (var Dt = [], Rt = 0; Rt < oi; Rt++) {
|
|
13010
13010
|
var Ct = [Math.random() * B(), Math.random(), Math.random(), Math.random()];
|
|
13011
13011
|
Dt.push(Ct);
|
|
13012
13012
|
}
|
|
@@ -13024,18 +13024,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13024
13024
|
it.push(Mt);
|
|
13025
13025
|
}
|
|
13026
13026
|
for (var xn = null, er = null, In = 0; In < it.length; In++) {
|
|
13027
|
-
for (var cr = 0,
|
|
13027
|
+
for (var cr = 0, Kn = 0; Kn < it.length; Kn++) In !== Kn && (cr += P(it[In], it[Kn], dt));
|
|
13028
13028
|
(xn === null || cr > xn) && (xn = cr, er = In);
|
|
13029
13029
|
}
|
|
13030
|
-
var
|
|
13031
|
-
for (
|
|
13032
|
-
for (var yr = null,
|
|
13033
|
-
var Tr = P(
|
|
13034
|
-
(yr === null || Tr < yr) && (yr = Tr,
|
|
13030
|
+
var ir = [];
|
|
13031
|
+
for (ir.push(it[er]), it.splice(er, 1); it.length > 0; ) {
|
|
13032
|
+
for (var yr = null, ar = null, vr = 0; vr < it.length; vr++) {
|
|
13033
|
+
var Tr = P(ir[0], it[vr], dt);
|
|
13034
|
+
(yr === null || Tr < yr) && (yr = Tr, ar = vr);
|
|
13035
13035
|
}
|
|
13036
|
-
|
|
13036
|
+
ir.push(it[ar]), it.splice(ar, 1);
|
|
13037
13037
|
}
|
|
13038
|
-
return
|
|
13038
|
+
return ir;
|
|
13039
13039
|
}(m);
|
|
13040
13040
|
}
|
|
13041
13041
|
var Ne;
|
|
@@ -13071,7 +13071,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13071
13071
|
})(De, Ze, Be, Qe, ke, be, Ie);
|
|
13072
13072
|
}
|
|
13073
13073
|
for (var ct = null, gt = null, qe = null, at = 0; at < Ze.length; at++) {
|
|
13074
|
-
var me = Ze[at],
|
|
13074
|
+
var me = Ze[at], _e = me.state, Ye = [_e.throughput, _e.latency, _e.rebuffer, _e.switch], f = n.slice(), u = De.getNextBufferWithBitrate(me.bitrate, Qe, be), T = u < De.getMinBuffer();
|
|
13075
13075
|
T && p.debug("Buffer is low for bitrate=".concat(me.bitrate, " downloadTime=").concat(Se, " currentBuffer=").concat(Qe, " nextBuffer=").concat(u)), (me.bitrate > j - 1e4 || T) && me.bitrate !== h && (f[0] = 100);
|
|
13076
13076
|
var b = P(Ye, [Xe, 0, 0, 0], f);
|
|
13077
13077
|
(ct === null || b < ct) && (ct = b, gt = me.qualityIndex, qe = me);
|
|
@@ -13134,7 +13134,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13134
13134
|
var qe = ot[gt].bandwidth / 1e3;
|
|
13135
13135
|
qe > ct ? ct = qe : qe < ke && (ke = qe);
|
|
13136
13136
|
}
|
|
13137
|
-
var at = ot[te].bandwidth / 1e3, me = B.getCurrentHttpRequest(K, !0),
|
|
13137
|
+
var at = ot[te].bandwidth / 1e3, me = B.getCurrentHttpRequest(K, !0), _e = (me.tresponse.getTime() - me.trequest.getTime()) / 1e3, Ye = _e > Se ? _e - Se : 0;
|
|
13138
13138
|
x.setupPerSegmentQoe(Se, ct, ke), x.logSegmentMetrics(at, Ye, be, Ze);
|
|
13139
13139
|
var f = (0, o.Z)(P).create({ targetLatency: 1.5, bufferMin: 0.3, segmentDuration: Se, qoeEvaluator: x });
|
|
13140
13140
|
return M.quality = S.getNextQuality(le, 1e3 * Xe, be, De, Ze, te, f), M.reason = { throughput: Xe, latency: be }, M.priority = p.Z.PRIORITY.STRONG, X.setTimeToLoadDelay(0), M.quality !== te && c.debug("[TgcLearningRule][" + K + "] requesting switch to index: ", M.quality, "Average throughput", Math.round(Xe), "kbps"), M;
|
|
@@ -13202,12 +13202,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13202
13202
|
at.length !== 2 || isNaN(at[0]) || isNaN(at[1]) || (gt.tilesHor = parseInt(at[0], 10), gt.tilesVert = parseInt(at[1], 10));
|
|
13203
13203
|
}
|
|
13204
13204
|
}), ct ? K.updateSegmentData(ke).then(function(qe) {
|
|
13205
|
-
(function(at, me,
|
|
13205
|
+
(function(at, me, _e) {
|
|
13206
13206
|
var Ye = [], f = function(u, T) {
|
|
13207
13207
|
var b, Q, Y, we, tt = [], Ue = 0;
|
|
13208
13208
|
for (b = 0, Q = u.segments.length; b < Q; b++) Y = u.segments[b], (we = (0, m.TJ)(De, le.getIsDynamic(), T, Y.startTime, Y.duration, Y.timescale, Y.media, Y.mediaRange, Ue)) && (tt.push(we), we = null, Ue++);
|
|
13209
13209
|
return tt;
|
|
13210
|
-
}(
|
|
13210
|
+
}(_e, me);
|
|
13211
13211
|
me.segments = f, at.segmentDuration = me.segments[0].duration, at.readThumbnail = function(u, T) {
|
|
13212
13212
|
var b = null;
|
|
13213
13213
|
Ye.some(function(Q) {
|
|
@@ -13294,9 +13294,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13294
13294
|
for (j = 0; j < gt.length; j++) {
|
|
13295
13295
|
var qe = gt[j], at = qe.getChildBox("tfhd"), me = qe.getChildBox("tfdt");
|
|
13296
13296
|
J = me.baseMediaDecodeTime;
|
|
13297
|
-
var
|
|
13298
|
-
for (te = 0; te <
|
|
13299
|
-
var f =
|
|
13297
|
+
var _e = qe.getChildBoxes("trun"), Ye = qe.getChildBoxes("subs");
|
|
13298
|
+
for (te = 0; te < _e.length; te++) {
|
|
13299
|
+
var f = _e[te];
|
|
13300
13300
|
for (B = f.sample_count, De = (at.base_data_offset || 0) + (f.data_offset || 0), ae = 0; ae < B; ae++) {
|
|
13301
13301
|
x = (K = f.samples[ae]).sample_duration !== void 0 ? K.sample_duration : at.default_sample_duration, P = K.sample_size !== void 0 ? K.sample_size : at.default_sample_size;
|
|
13302
13302
|
var u = { dts: J, cts: J + (K.sample_composition_time_offset !== void 0 ? K.sample_composition_time_offset : 0), duration: x, offset: ct.offset + De, size: P, subSizes: [P] };
|
|
@@ -13859,7 +13859,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13859
13859
|
var we = 0 | d(Y.length), tt = p(we);
|
|
13860
13860
|
return tt.length === 0 || Y.copy(tt, 0, 0, we), tt;
|
|
13861
13861
|
}
|
|
13862
|
-
return Y.length !== void 0 ? typeof Y.length != "number" ||
|
|
13862
|
+
return Y.length !== void 0 ? typeof Y.length != "number" || _e(Y.length) ? p(0) : n(Y) : Y.type === "Buffer" && Array.isArray(Y.data) ? n(Y.data) : void 0;
|
|
13863
13863
|
}(f);
|
|
13864
13864
|
if (Q) return Q;
|
|
13865
13865
|
if (typeof Symbol < "u" && Symbol.toPrimitive != null && typeof f[Symbol.toPrimitive] == "function") return m.from(f[Symbol.toPrimitive]("string"), u, T);
|
|
@@ -13946,7 +13946,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13946
13946
|
}
|
|
13947
13947
|
function P(f, u, T, b, Q) {
|
|
13948
13948
|
if (f.length === 0) return -1;
|
|
13949
|
-
if (typeof T == "string" ? (b = T, T = 0) : T > 2147483647 ? T = 2147483647 : T < -2147483648 && (T = -2147483648),
|
|
13949
|
+
if (typeof T == "string" ? (b = T, T = 0) : T > 2147483647 ? T = 2147483647 : T < -2147483648 && (T = -2147483648), _e(T = +T) && (T = Q ? 0 : f.length - 1), T < 0 && (T = f.length + T), T >= f.length) {
|
|
13950
13950
|
if (Q) return -1;
|
|
13951
13951
|
T = f.length - 1;
|
|
13952
13952
|
} else if (T < 0) {
|
|
@@ -13988,7 +13988,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13988
13988
|
b > Y / 2 && (b = Y / 2);
|
|
13989
13989
|
for (var we = 0; we < b; ++we) {
|
|
13990
13990
|
var tt = parseInt(u.substr(2 * we, 2), 16);
|
|
13991
|
-
if (
|
|
13991
|
+
if (_e(tt)) return we;
|
|
13992
13992
|
f[T + we] = tt;
|
|
13993
13993
|
}
|
|
13994
13994
|
return we;
|
|
@@ -14415,7 +14415,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14415
14415
|
function me(f, u) {
|
|
14416
14416
|
return f instanceof u || f != null && f.constructor != null && f.constructor.name != null && f.constructor.name === u.name;
|
|
14417
14417
|
}
|
|
14418
|
-
function
|
|
14418
|
+
function _e(f) {
|
|
14419
14419
|
return f != f;
|
|
14420
14420
|
}
|
|
14421
14421
|
var Ye = function() {
|
|
@@ -14904,16 +14904,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14904
14904
|
}
|
|
14905
14905
|
var B, P, J, M, K = void 0;
|
|
14906
14906
|
function ae(qe, at) {
|
|
14907
|
-
var me = this,
|
|
14908
|
-
|
|
14907
|
+
var me = this, _e = new this.constructor(le);
|
|
14908
|
+
_e[te] === void 0 && ke(_e);
|
|
14909
14909
|
var Ye = me._state;
|
|
14910
14910
|
if (Ye) {
|
|
14911
14911
|
var f = arguments[Ye - 1];
|
|
14912
14912
|
m(function() {
|
|
14913
|
-
return ot(Ye,
|
|
14913
|
+
return ot(Ye, _e, f, me._result);
|
|
14914
14914
|
});
|
|
14915
|
-
} else Ze(me,
|
|
14916
|
-
return
|
|
14915
|
+
} else Ze(me, _e, qe, at);
|
|
14916
|
+
return _e;
|
|
14917
14917
|
}
|
|
14918
14918
|
function j(qe) {
|
|
14919
14919
|
if (qe && typeof qe == "object" && qe.constructor === this) return qe;
|
|
@@ -14941,13 +14941,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14941
14941
|
}
|
|
14942
14942
|
var Ie = void 0;
|
|
14943
14943
|
function X(qe, at, me) {
|
|
14944
|
-
at.constructor === qe.constructor && me === ae && at.constructor.resolve === j ? function(
|
|
14945
|
-
Ye._state === 1 ? Qe(
|
|
14946
|
-
return De(
|
|
14944
|
+
at.constructor === qe.constructor && me === ae && at.constructor.resolve === j ? function(_e, Ye) {
|
|
14945
|
+
Ye._state === 1 ? Qe(_e, Ye._result) : Ye._state === 2 ? be(_e, Ye._result) : Ze(Ye, void 0, function(f) {
|
|
14946
|
+
return De(_e, f);
|
|
14947
14947
|
}, function(f) {
|
|
14948
|
-
return be(
|
|
14948
|
+
return be(_e, f);
|
|
14949
14949
|
});
|
|
14950
|
-
}(qe, at) : me === void 0 ? Qe(qe, at) : ne(me) ? function(
|
|
14950
|
+
}(qe, at) : me === void 0 ? Qe(qe, at) : ne(me) ? function(_e, Ye, f) {
|
|
14951
14951
|
m(function(u) {
|
|
14952
14952
|
var T = !1, b = function(Q, Y, we, tt) {
|
|
14953
14953
|
try {
|
|
@@ -14961,12 +14961,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14961
14961
|
T || (T = !0, be(u, Q));
|
|
14962
14962
|
}, u._label);
|
|
14963
14963
|
!T && b && (T = !0, be(u, b));
|
|
14964
|
-
},
|
|
14964
|
+
}, _e);
|
|
14965
14965
|
}(qe, at, me) : Qe(qe, at);
|
|
14966
14966
|
}
|
|
14967
14967
|
function De(qe, at) {
|
|
14968
14968
|
if (qe === at) be(qe, new TypeError("You cannot resolve a promise with itself"));
|
|
14969
|
-
else if (Ye = typeof (
|
|
14969
|
+
else if (Ye = typeof (_e = at), _e === null || Ye !== "object" && Ye !== "function") Qe(qe, at);
|
|
14970
14970
|
else {
|
|
14971
14971
|
var me = void 0;
|
|
14972
14972
|
try {
|
|
@@ -14976,7 +14976,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14976
14976
|
}
|
|
14977
14977
|
X(qe, at, me);
|
|
14978
14978
|
}
|
|
14979
|
-
var
|
|
14979
|
+
var _e, Ye;
|
|
14980
14980
|
}
|
|
14981
14981
|
function Be(qe) {
|
|
14982
14982
|
qe._onerror && qe._onerror(qe._result), Xe(qe);
|
|
@@ -14987,27 +14987,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14987
14987
|
function be(qe, at) {
|
|
14988
14988
|
qe._state === Ie && (qe._state = 2, qe._result = at, m(Be, qe));
|
|
14989
14989
|
}
|
|
14990
|
-
function Ze(qe, at, me,
|
|
14990
|
+
function Ze(qe, at, me, _e) {
|
|
14991
14991
|
var Ye = qe._subscribers, f = Ye.length;
|
|
14992
|
-
qe._onerror = null, Ye[f] = at, Ye[f + 1] = me, Ye[f + 2] =
|
|
14992
|
+
qe._onerror = null, Ye[f] = at, Ye[f + 1] = me, Ye[f + 2] = _e, f === 0 && qe._state && m(Xe, qe);
|
|
14993
14993
|
}
|
|
14994
14994
|
function Xe(qe) {
|
|
14995
14995
|
var at = qe._subscribers, me = qe._state;
|
|
14996
14996
|
if (at.length !== 0) {
|
|
14997
|
-
for (var
|
|
14997
|
+
for (var _e = void 0, Ye = void 0, f = qe._result, u = 0; u < at.length; u += 3) _e = at[u], Ye = at[u + me], _e ? ot(me, _e, Ye, f) : Ye(f);
|
|
14998
14998
|
qe._subscribers.length = 0;
|
|
14999
14999
|
}
|
|
15000
15000
|
}
|
|
15001
|
-
function ot(qe, at, me,
|
|
15001
|
+
function ot(qe, at, me, _e) {
|
|
15002
15002
|
var Ye = ne(me), f = void 0, u = void 0, T = !0;
|
|
15003
15003
|
if (Ye) {
|
|
15004
15004
|
try {
|
|
15005
|
-
f = me(
|
|
15005
|
+
f = me(_e);
|
|
15006
15006
|
} catch (b) {
|
|
15007
15007
|
T = !1, u = b;
|
|
15008
15008
|
}
|
|
15009
15009
|
if (at === f) return void be(at, new TypeError("A promises callback cannot return that same promise."));
|
|
15010
|
-
} else f =
|
|
15010
|
+
} else f = _e;
|
|
15011
15011
|
at._state !== Ie || (Ye && T ? De(at, f) : T === !1 ? be(at, u) : qe === 1 ? Qe(at, f) : qe === 2 && be(at, f));
|
|
15012
15012
|
}
|
|
15013
15013
|
var Se = 0;
|
|
@@ -15021,7 +15021,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15021
15021
|
return qe.prototype._enumerate = function(at) {
|
|
15022
15022
|
for (var me = 0; this._state === Ie && me < at.length; me++) this._eachEntry(at[me], me);
|
|
15023
15023
|
}, qe.prototype._eachEntry = function(at, me) {
|
|
15024
|
-
var
|
|
15024
|
+
var _e = this._instanceConstructor, Ye = _e.resolve;
|
|
15025
15025
|
if (Ye === j) {
|
|
15026
15026
|
var f = void 0, u = void 0, T = !1;
|
|
15027
15027
|
try {
|
|
@@ -15031,31 +15031,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15031
15031
|
}
|
|
15032
15032
|
if (f === ae && at._state !== Ie) this._settledAt(at._state, me, at._result);
|
|
15033
15033
|
else if (typeof f != "function") this._remaining--, this._result[me] = at;
|
|
15034
|
-
else if (
|
|
15035
|
-
var b = new
|
|
15034
|
+
else if (_e === gt) {
|
|
15035
|
+
var b = new _e(le);
|
|
15036
15036
|
T ? be(b, u) : X(b, at, f), this._willSettleAt(b, me);
|
|
15037
|
-
} else this._willSettleAt(new
|
|
15037
|
+
} else this._willSettleAt(new _e(function(Q) {
|
|
15038
15038
|
return Q(at);
|
|
15039
15039
|
}), me);
|
|
15040
15040
|
} else this._willSettleAt(Ye(at), me);
|
|
15041
|
-
}, qe.prototype._settledAt = function(at, me,
|
|
15041
|
+
}, qe.prototype._settledAt = function(at, me, _e) {
|
|
15042
15042
|
var Ye = this.promise;
|
|
15043
|
-
Ye._state === Ie && (this._remaining--, at === 2 ? be(Ye,
|
|
15043
|
+
Ye._state === Ie && (this._remaining--, at === 2 ? be(Ye, _e) : this._result[me] = _e), this._remaining === 0 && Qe(Ye, this._result);
|
|
15044
15044
|
}, qe.prototype._willSettleAt = function(at, me) {
|
|
15045
|
-
var
|
|
15045
|
+
var _e = this;
|
|
15046
15046
|
Ze(at, void 0, function(Ye) {
|
|
15047
|
-
return
|
|
15047
|
+
return _e._settledAt(1, me, Ye);
|
|
15048
15048
|
}, function(Ye) {
|
|
15049
|
-
return
|
|
15049
|
+
return _e._settledAt(2, me, Ye);
|
|
15050
15050
|
});
|
|
15051
15051
|
}, qe;
|
|
15052
15052
|
}(), gt = function() {
|
|
15053
15053
|
function qe(at) {
|
|
15054
15054
|
this[te] = Se++, this._result = this._state = void 0, this._subscribers = [], le !== at && (typeof at != "function" && function() {
|
|
15055
15055
|
throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");
|
|
15056
|
-
}(), this instanceof qe ? function(me,
|
|
15056
|
+
}(), this instanceof qe ? function(me, _e) {
|
|
15057
15057
|
try {
|
|
15058
|
-
|
|
15058
|
+
_e(function(Ye) {
|
|
15059
15059
|
De(me, Ye);
|
|
15060
15060
|
}, function(Ye) {
|
|
15061
15061
|
be(me, Ye);
|
|
@@ -15070,13 +15070,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15070
15070
|
return qe.prototype.catch = function(at) {
|
|
15071
15071
|
return this.then(null, at);
|
|
15072
15072
|
}, qe.prototype.finally = function(at) {
|
|
15073
|
-
var me = this,
|
|
15073
|
+
var me = this, _e = me.constructor;
|
|
15074
15074
|
return ne(at) ? me.then(function(Ye) {
|
|
15075
|
-
return
|
|
15075
|
+
return _e.resolve(at()).then(function() {
|
|
15076
15076
|
return Ye;
|
|
15077
15077
|
});
|
|
15078
15078
|
}, function(Ye) {
|
|
15079
|
-
return
|
|
15079
|
+
return _e.resolve(at()).then(function() {
|
|
15080
15080
|
throw Ye;
|
|
15081
15081
|
});
|
|
15082
15082
|
}) : me.then(at, at);
|
|
@@ -15086,10 +15086,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15086
15086
|
return new ct(this, qe).promise;
|
|
15087
15087
|
}, gt.race = function(qe) {
|
|
15088
15088
|
var at = this;
|
|
15089
|
-
return E(qe) ? new at(function(me,
|
|
15090
|
-
for (var Ye = qe.length, f = 0; f < Ye; f++) at.resolve(qe[f]).then(me,
|
|
15091
|
-
}) : new at(function(me,
|
|
15092
|
-
return
|
|
15089
|
+
return E(qe) ? new at(function(me, _e) {
|
|
15090
|
+
for (var Ye = qe.length, f = 0; f < Ye; f++) at.resolve(qe[f]).then(me, _e);
|
|
15091
|
+
}) : new at(function(me, _e) {
|
|
15092
|
+
return _e(new TypeError("You must pass an array to race."));
|
|
15093
15093
|
});
|
|
15094
15094
|
}, gt.resolve = j, gt.reject = function(qe) {
|
|
15095
15095
|
var at = new this(le);
|
|
@@ -15399,7 +15399,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15399
15399
|
var Y = u.attributes[Q].uri + " " + u.attributes[Q].local, we = e.byQName[Y];
|
|
15400
15400
|
if (we !== void 0) {
|
|
15401
15401
|
var tt = we.parse(u.attributes[Q].value);
|
|
15402
|
-
tt !== null ? (b[Y] = tt, we === e.byName.zIndex && me(T, "zIndex attribute present but not used by IMSC1 since regions do not overlap")) :
|
|
15402
|
+
tt !== null ? (b[Y] = tt, we === e.byName.zIndex && me(T, "zIndex attribute present but not used by IMSC1 since regions do not overlap")) : _e(T, "Cannot parse styling attribute " + Y + " --> " + u.attributes[Q].value);
|
|
15403
15403
|
}
|
|
15404
15404
|
}
|
|
15405
15405
|
return b;
|
|
@@ -15415,13 +15415,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15415
15415
|
function gt(u, T, b) {
|
|
15416
15416
|
for (; T.styleRefs.length > 0; ) {
|
|
15417
15417
|
var Q = T.styleRefs.pop();
|
|
15418
|
-
Q in u.styles ? (gt(u, u.styles[Q], b), at(u.styles[Q].styleAttrs, T.styleAttrs)) :
|
|
15418
|
+
Q in u.styles ? (gt(u, u.styles[Q], b), at(u.styles[Q].styleAttrs, T.styleAttrs)) : _e(b, "Non-existant style id referenced");
|
|
15419
15419
|
}
|
|
15420
15420
|
}
|
|
15421
15421
|
function qe(u, T, b, Q) {
|
|
15422
15422
|
for (var Y = T.length - 1; Y >= 0; Y--) {
|
|
15423
15423
|
var we = T[Y];
|
|
15424
|
-
we in u.styles ? at(u.styles[we].styleAttrs, b) :
|
|
15424
|
+
we in u.styles ? at(u.styles[we].styleAttrs, b) : _e(Q, "Non-existant style id referenced");
|
|
15425
15425
|
}
|
|
15426
15426
|
}
|
|
15427
15427
|
function at(u, T) {
|
|
@@ -15430,7 +15430,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15430
15430
|
function me(u, T) {
|
|
15431
15431
|
if (u && u.warn && u.warn(T)) throw T;
|
|
15432
15432
|
}
|
|
15433
|
-
function
|
|
15433
|
+
function _e(u, T) {
|
|
15434
15434
|
if (u && u.error && u.error(T)) throw T;
|
|
15435
15435
|
}
|
|
15436
15436
|
function Ye(u, T) {
|
|
@@ -15479,7 +15479,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15479
15479
|
else if (dt.local === "styling") Y[0] instanceof n || Ye(T, "Parent of <styling> element is not <head> at (" + this.line + "," + this.column + ")"), Y.unshift(Fe.head.styling);
|
|
15480
15480
|
else if (dt.local === "style") {
|
|
15481
15481
|
var Ht;
|
|
15482
|
-
Y[0] instanceof c ? ((Ht = new d()).initFromNode(dt, T), Ht.id ? Fe.head.styling.styles[Ht.id] = Ht :
|
|
15482
|
+
Y[0] instanceof c ? ((Ht = new d()).initFromNode(dt, T), Ht.id ? Fe.head.styling.styles[Ht.id] = Ht : _e(T, "<style> element missing @id attribute"), Y.unshift(Ht)) : Y[0] instanceof be ? ((Ht = new d()).initFromNode(dt, T), at(Ht.styleAttrs, Y[0].styleAttrs), Y.unshift(Ht)) : Ye(T, "Parent of <style> element is not <styling> or <region> at (" + this.line + "," + this.column + ")");
|
|
15483
15483
|
} else if (dt.local === "initial") {
|
|
15484
15484
|
var Bt;
|
|
15485
15485
|
if (Y[0] instanceof c) {
|
|
@@ -15490,7 +15490,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15490
15490
|
else if (dt.local === "region") {
|
|
15491
15491
|
Y[0] instanceof x || Ye(T, "Parent of <region> element is not <layout> at " + this.line + "," + this.column + ")");
|
|
15492
15492
|
var vn = new be();
|
|
15493
|
-
vn.initFromNode(Fe, dt, we[0], T), !vn.id || vn.id in Fe.head.layout.regions ?
|
|
15493
|
+
vn.initFromNode(Fe, dt, we[0], T), !vn.id || vn.id in Fe.head.layout.regions ? _e(T, "Ignoring <region> with duplicate or missing @id at " + this.line + "," + this.column + ")") : Fe.head.layout.regions[vn.id] = vn, Y.unshift(vn);
|
|
15494
15494
|
} else if (dt.local === "body") {
|
|
15495
15495
|
Y[0] instanceof h || Ye(T, "Parent of <body> element is not <tt> at " + this.line + "," + this.column + ")"), Fe.body !== null && Ye(T, "Second <body> element at " + this.line + "," + this.column + ")");
|
|
15496
15496
|
var Ln = new le();
|
|
@@ -15515,19 +15515,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15515
15515
|
cr.initFromNode(Fe, Y[0], dt, we[0], tt[0], T), Y[0].contents.push(cr), Y.unshift(cr);
|
|
15516
15516
|
} else if (dt.local === "br") {
|
|
15517
15517
|
Y[0] instanceof De || Y[0] instanceof X || Ye(T, "Parent of <br> element is not <span> or <p> at " + this.line + "," + this.column + ")");
|
|
15518
|
-
var
|
|
15519
|
-
|
|
15518
|
+
var Kn = new Qe();
|
|
15519
|
+
Kn.initFromNode(Fe, Y[0], dt, we[0], T), Y[0].contents.push(Kn), Y.unshift(Kn);
|
|
15520
15520
|
} else if (dt.local === "set") {
|
|
15521
15521
|
Y[0] instanceof De || Y[0] instanceof X || Y[0] instanceof Ie || Y[0] instanceof le || Y[0] instanceof be || Y[0] instanceof Qe || Ye(T, "Parent of <set> element is not a content element or a region at " + this.line + "," + this.column + ")");
|
|
15522
|
-
var
|
|
15523
|
-
|
|
15522
|
+
var ir = new Ze();
|
|
15523
|
+
ir.initFromNode(Fe, Y[0], dt, T), Y[0].sets.push(ir), Y.unshift(ir);
|
|
15524
15524
|
} else Y.unshift(new v(dt));
|
|
15525
15525
|
else Y.unshift(new v(dt));
|
|
15526
15526
|
if (Y[0] instanceof v) {
|
|
15527
15527
|
if (dt.uri === t.ns_tt && dt.local === "metadata") Ue++;
|
|
15528
15528
|
else if (Ue > 0 && b && "onOpenTag" in b) {
|
|
15529
15529
|
var yr = [];
|
|
15530
|
-
for (var
|
|
15530
|
+
for (var ar in dt.attributes) yr[dt.attributes[ar].uri + " " + dt.attributes[ar].local] = { uri: dt.attributes[ar].uri, local: dt.attributes[ar].local, value: dt.attributes[ar].value };
|
|
15531
15531
|
b.onOpenTag(dt.uri, dt.local, yr);
|
|
15532
15532
|
}
|
|
15533
15533
|
}
|
|
@@ -15569,8 +15569,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15569
15569
|
var it = /(\d+)\s+(\d+)/.exec(Ne);
|
|
15570
15570
|
if (it !== null) {
|
|
15571
15571
|
var St = parseInt(it[1]), dt = parseInt(it[2]);
|
|
15572
|
-
St !== 0 && dt !== 0 ? He = St / dt :
|
|
15573
|
-
} else
|
|
15572
|
+
St !== 0 && dt !== 0 ? He = St / dt : _e(Fe, "Illegal aspectRatio values (ignoring)");
|
|
15573
|
+
} else _e(Fe, "Malformed aspectRatio attribute (ignoring)");
|
|
15574
15574
|
}
|
|
15575
15575
|
return He;
|
|
15576
15576
|
}(u, b);
|
|
@@ -15605,7 +15605,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15605
15605
|
this.styleAttrs[Q] = u.attributes[b].value;
|
|
15606
15606
|
}
|
|
15607
15607
|
}, B.prototype.initFromNode = function(u, T, b, Q, Y) {
|
|
15608
|
-
this.src = "src" in b.attributes ? b.attributes.src.value : null, this.src ||
|
|
15608
|
+
this.src = "src" in b.attributes ? b.attributes.src.value : null, this.src || _e(Y, "Invalid image@src attribute"), this.type = "type" in b.attributes ? b.attributes.type.value : null, this.type || _e(Y, "Invalid image@type attribute"), K.prototype.initFromNode.call(this, u, T, b, Y), te.prototype.initFromNode.call(this, u, T, b, Y), ae.prototype.initFromNode.call(this, u, T, b, Y), M.prototype.initFromNode.call(this, u, T, b, Y), this.lang = Q;
|
|
15609
15609
|
}, J.prototype.initFromNode = function(u, T, b, Q) {
|
|
15610
15610
|
this.id = Xe(b);
|
|
15611
15611
|
}, M.prototype.initFromNode = function(u, T, b, Q) {
|
|
@@ -15629,7 +15629,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15629
15629
|
}(u, 0, b, Q);
|
|
15630
15630
|
this.explicit_begin = Y.explicit_begin, this.explicit_end = Y.explicit_end, this.explicit_dur = Y.explicit_dur, this.timeContainer = function(we, tt) {
|
|
15631
15631
|
var Ue = we && "timeContainer" in we.attributes ? we.attributes.timeContainer.value : null;
|
|
15632
|
-
return Ue && Ue !== "par" ? Ue === "seq" ? "seq" : (
|
|
15632
|
+
return Ue && Ue !== "par" ? Ue === "seq" ? "seq" : (_e(tt, "Illegal value of timeContainer (assuming 'par')"), "par") : "par";
|
|
15633
15633
|
}(b, Q);
|
|
15634
15634
|
}, le.prototype.initFromNode = function(u, T, b, Q) {
|
|
15635
15635
|
K.prototype.initFromNode.call(this, u, null, T, Q), te.prototype.initFromNode.call(this, u, null, T, Q), ae.prototype.initFromNode.call(this, u, null, T, Q), M.prototype.initFromNode.call(this, u, null, T, Q), j.prototype.initFromNode.call(this, u, null, T, Q), this.lang = b;
|
|
@@ -15653,7 +15653,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15653
15653
|
var Y = Se(b, Q);
|
|
15654
15654
|
for (var we in this.qname = null, this.value = null, Y) if (Y.hasOwnProperty(we)) {
|
|
15655
15655
|
if (this.qname) {
|
|
15656
|
-
|
|
15656
|
+
_e(Q, "More than one style specified on set");
|
|
15657
15657
|
break;
|
|
15658
15658
|
}
|
|
15659
15659
|
this.qname = we, this.value = Y[we];
|
|
@@ -15713,12 +15713,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15713
15713
|
if (at && at[0] !== "none" && (j.rubyReserve = at), le.styleAttrs[e.byName.fillLineGap.qname] && (j.flg = !0), le.kind === "span" && le.text) {
|
|
15714
15714
|
var me = le.styleAttrs[e.byName.textEmphasis.qname];
|
|
15715
15715
|
if (me && me.style !== "none" && (j.textEmphasis = !0), e.byName.textCombine.qname in le.styleAttrs && le.styleAttrs[e.byName.textCombine.qname] === "all") X.textContent = le.text, X._isd_element = le, me && c(j, X, 0, me);
|
|
15716
|
-
else for (var
|
|
15717
|
-
|
|
15716
|
+
else for (var _e = "", Ye = 0; Ye < le.text.length; Ye++) {
|
|
15717
|
+
_e += le.text.charAt(Ye);
|
|
15718
15718
|
var f = le.text.charCodeAt(Ye);
|
|
15719
15719
|
if (f < 55296 || f > 56319 || Ye === le.text.length - 1) {
|
|
15720
15720
|
var u = document.createElement("span");
|
|
15721
|
-
u.textContent =
|
|
15721
|
+
u.textContent = _e, me && c(j, u, 0, me), X.appendChild(u), _e = "", u._isd_element = le;
|
|
15722
15722
|
}
|
|
15723
15723
|
}
|
|
15724
15724
|
}
|
|
@@ -16004,8 +16004,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
16004
16004
|
for (var at = 0; at < t.all.length; at++) {
|
|
16005
16005
|
var me = t.all[at];
|
|
16006
16006
|
if (me.qname in Ie && me.compute !== null) {
|
|
16007
|
-
var
|
|
16008
|
-
|
|
16007
|
+
var _e = me.compute(d, P, te, te.styleAttrs[me.qname], ae);
|
|
16008
|
+
_e !== null ? te.styleAttrs[me.qname] = _e : (te.styleAttrs[me.qname] = me.compute(d, P, te, me.parse(me.initial), ae), c(K, "Style '" + me.qname + "' on element '" + te.kind + "' cannot be computed"));
|
|
16009
16009
|
}
|
|
16010
16010
|
}
|
|
16011
16011
|
if (te.styleAttrs[t.byName.display.qname] === "none") return null;
|
|
@@ -16518,10 +16518,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
16518
16518
|
` ? (u.line++, u.column = 0) : u.column++), u.state) {
|
|
16519
16519
|
case X.BEGIN:
|
|
16520
16520
|
if (u.state = X.BEGIN_WHITESPACE, b === "\uFEFF") continue;
|
|
16521
|
-
|
|
16521
|
+
_e(u, b);
|
|
16522
16522
|
continue;
|
|
16523
16523
|
case X.BEGIN_WHITESPACE:
|
|
16524
|
-
|
|
16524
|
+
_e(u, b);
|
|
16525
16525
|
continue;
|
|
16526
16526
|
case X.TEXT:
|
|
16527
16527
|
if (u.sawRoot && !u.closedRoot) {
|
|
@@ -16859,7 +16859,7 @@ Actual: ` + f.attribValue);
|
|
|
16859
16859
|
var u, T = f.entity, b = T.toLowerCase(), Q = "";
|
|
16860
16860
|
return f.ENTITIES[T] ? f.ENTITIES[T] : f.ENTITIES[b] ? f.ENTITIES[b] : ((T = b).charAt(0) === "#" && (T.charAt(1) === "x" ? (T = T.slice(2), Q = (u = parseInt(T, 16)).toString(16)) : (T = T.slice(1), Q = (u = parseInt(T, 10)).toString(10))), T = T.replace(/^0+/, ""), Q.toLowerCase() !== T ? (Se(f, "Invalid character entity"), "&" + f.entity + ";") : String.fromCodePoint(u));
|
|
16861
16861
|
}
|
|
16862
|
-
function
|
|
16862
|
+
function _e(f, u) {
|
|
16863
16863
|
u === "<" ? (f.state = X.OPEN_WAKA, f.startTagPosition = f.position) : j(o, u) && (Se(f, "Non-whitespace before first tag."), f.textNode = u, f.state = X.TEXT);
|
|
16864
16864
|
}
|
|
16865
16865
|
function Ye(f, u) {
|
|
@@ -17008,8 +17008,8 @@ Actual: ` + f.attribValue);
|
|
|
17008
17008
|
}, 2846: function(Ce, Ee, C) {
|
|
17009
17009
|
var ne;
|
|
17010
17010
|
Ce.exports = te, te.ReadableState = j, C(1159).EventEmitter;
|
|
17011
|
-
var E, t = function(me,
|
|
17012
|
-
return me.listeners(
|
|
17011
|
+
var E, t = function(me, _e) {
|
|
17012
|
+
return me.listeners(_e).length;
|
|
17013
17013
|
}, e = C(9299), p = C(1549).Buffer, m = C.g.Uint8Array || function() {
|
|
17014
17014
|
}, o = C(964);
|
|
17015
17015
|
E = o && o.debuglog ? o.debuglog("stream") : function() {
|
|
@@ -17017,18 +17017,18 @@ Actual: ` + f.attribValue);
|
|
|
17017
17017
|
var v, h, n, c = C(8393), d = C(6163), S = C(7269).getHighWaterMark, x = C(3690).q, B = x.ERR_INVALID_ARG_TYPE, P = x.ERR_STREAM_PUSH_AFTER_EOF, J = x.ERR_METHOD_NOT_IMPLEMENTED, M = x.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;
|
|
17018
17018
|
C(1765)(te, e);
|
|
17019
17019
|
var K = d.errorOrDestroy, ae = ["error", "close", "destroy", "pause", "resume"];
|
|
17020
|
-
function j(me,
|
|
17021
|
-
ne = ne || C(6138), me = me || {}, typeof Ye != "boolean" && (Ye =
|
|
17020
|
+
function j(me, _e, Ye) {
|
|
17021
|
+
ne = ne || C(6138), me = me || {}, typeof Ye != "boolean" && (Ye = _e instanceof ne), this.objectMode = !!me.objectMode, Ye && (this.objectMode = this.objectMode || !!me.readableObjectMode), this.highWaterMark = S(this, me, "readableHighWaterMark", Ye), this.buffer = new c(), this.length = 0, this.pipes = null, this.pipesCount = 0, this.flowing = null, this.ended = !1, this.endEmitted = !1, this.reading = !1, this.sync = !0, this.needReadable = !1, this.emittedReadable = !1, this.readableListening = !1, this.resumeScheduled = !1, this.paused = !0, this.emitClose = me.emitClose !== !1, this.autoDestroy = !!me.autoDestroy, this.destroyed = !1, this.defaultEncoding = me.defaultEncoding || "utf8", this.awaitDrain = 0, this.readingMore = !1, this.decoder = null, this.encoding = null, me.encoding && (v || (v = C(7503).s), this.decoder = new v(me.encoding), this.encoding = me.encoding);
|
|
17022
17022
|
}
|
|
17023
17023
|
function te(me) {
|
|
17024
17024
|
if (ne = ne || C(6138), !(this instanceof te)) return new te(me);
|
|
17025
|
-
var
|
|
17026
|
-
this._readableState = new j(me, this,
|
|
17025
|
+
var _e = this instanceof ne;
|
|
17026
|
+
this._readableState = new j(me, this, _e), this.readable = !0, me && (typeof me.read == "function" && (this._read = me.read), typeof me.destroy == "function" && (this._destroy = me.destroy)), e.call(this);
|
|
17027
17027
|
}
|
|
17028
|
-
function le(me,
|
|
17029
|
-
E("readableAddChunk",
|
|
17028
|
+
function le(me, _e, Ye, f, u) {
|
|
17029
|
+
E("readableAddChunk", _e);
|
|
17030
17030
|
var T, b = me._readableState;
|
|
17031
|
-
if (
|
|
17031
|
+
if (_e === null) b.reading = !1, function(Q, Y) {
|
|
17032
17032
|
if (E("onEofChunk"), !Y.ended) {
|
|
17033
17033
|
if (Y.decoder) {
|
|
17034
17034
|
var we = Y.decoder.end();
|
|
@@ -17040,107 +17040,107 @@ Actual: ` + f.attribValue);
|
|
|
17040
17040
|
else if (u || (T = function(Q, Y) {
|
|
17041
17041
|
var we, tt;
|
|
17042
17042
|
return tt = Y, p.isBuffer(tt) || tt instanceof m || typeof Y == "string" || Y === void 0 || Q.objectMode || (we = new B("chunk", ["string", "Buffer", "Uint8Array"], Y)), we;
|
|
17043
|
-
}(b,
|
|
17044
|
-
else if (b.objectMode ||
|
|
17043
|
+
}(b, _e)), T) K(me, T);
|
|
17044
|
+
else if (b.objectMode || _e && _e.length > 0) if (typeof _e == "string" || b.objectMode || Object.getPrototypeOf(_e) === p.prototype || (_e = function(Q) {
|
|
17045
17045
|
return p.from(Q);
|
|
17046
|
-
}(
|
|
17046
|
+
}(_e)), f) b.endEmitted ? K(me, new M()) : Ie(me, b, _e, !0);
|
|
17047
17047
|
else if (b.ended) K(me, new P());
|
|
17048
17048
|
else {
|
|
17049
17049
|
if (b.destroyed) return !1;
|
|
17050
|
-
b.reading = !1, b.decoder && !Ye ? (
|
|
17050
|
+
b.reading = !1, b.decoder && !Ye ? (_e = b.decoder.write(_e), b.objectMode || _e.length !== 0 ? Ie(me, b, _e, !1) : be(me, b)) : Ie(me, b, _e, !1);
|
|
17051
17051
|
}
|
|
17052
17052
|
else f || (b.reading = !1, be(me, b));
|
|
17053
17053
|
return !b.ended && (b.length < b.highWaterMark || b.length === 0);
|
|
17054
17054
|
}
|
|
17055
|
-
function Ie(me,
|
|
17056
|
-
|
|
17055
|
+
function Ie(me, _e, Ye, f) {
|
|
17056
|
+
_e.flowing && _e.length === 0 && !_e.sync ? (_e.awaitDrain = 0, me.emit("data", Ye)) : (_e.length += _e.objectMode ? 1 : Ye.length, f ? _e.buffer.unshift(Ye) : _e.buffer.push(Ye), _e.needReadable && Be(me)), be(me, _e);
|
|
17057
17057
|
}
|
|
17058
17058
|
Object.defineProperty(te.prototype, "destroyed", { enumerable: !1, get: function() {
|
|
17059
17059
|
return this._readableState !== void 0 && this._readableState.destroyed;
|
|
17060
17060
|
}, set: function(me) {
|
|
17061
17061
|
this._readableState && (this._readableState.destroyed = me);
|
|
17062
|
-
} }), te.prototype.destroy = d.destroy, te.prototype._undestroy = d.undestroy, te.prototype._destroy = function(me,
|
|
17063
|
-
|
|
17064
|
-
}, te.prototype.push = function(me,
|
|
17062
|
+
} }), te.prototype.destroy = d.destroy, te.prototype._undestroy = d.undestroy, te.prototype._destroy = function(me, _e) {
|
|
17063
|
+
_e(me);
|
|
17064
|
+
}, te.prototype.push = function(me, _e) {
|
|
17065
17065
|
var Ye, f = this._readableState;
|
|
17066
|
-
return f.objectMode ? Ye = !0 : typeof me == "string" && ((
|
|
17066
|
+
return f.objectMode ? Ye = !0 : typeof me == "string" && ((_e = _e || f.defaultEncoding) !== f.encoding && (me = p.from(me, _e), _e = ""), Ye = !0), le(this, me, _e, !1, Ye);
|
|
17067
17067
|
}, te.prototype.unshift = function(me) {
|
|
17068
17068
|
return le(this, me, null, !0, !1);
|
|
17069
17069
|
}, te.prototype.isPaused = function() {
|
|
17070
17070
|
return this._readableState.flowing === !1;
|
|
17071
17071
|
}, te.prototype.setEncoding = function(me) {
|
|
17072
17072
|
v || (v = C(7503).s);
|
|
17073
|
-
var
|
|
17074
|
-
this._readableState.decoder =
|
|
17075
|
-
for (var Ye = this._readableState.buffer.head, f = ""; Ye !== null; ) f +=
|
|
17073
|
+
var _e = new v(me);
|
|
17074
|
+
this._readableState.decoder = _e, this._readableState.encoding = this._readableState.decoder.encoding;
|
|
17075
|
+
for (var Ye = this._readableState.buffer.head, f = ""; Ye !== null; ) f += _e.write(Ye.data), Ye = Ye.next;
|
|
17076
17076
|
return this._readableState.buffer.clear(), f !== "" && this._readableState.buffer.push(f), this._readableState.length = f.length, this;
|
|
17077
17077
|
};
|
|
17078
17078
|
var X = 1073741824;
|
|
17079
|
-
function De(me,
|
|
17080
|
-
return me <= 0 ||
|
|
17079
|
+
function De(me, _e) {
|
|
17080
|
+
return me <= 0 || _e.length === 0 && _e.ended ? 0 : _e.objectMode ? 1 : me != me ? _e.flowing && _e.length ? _e.buffer.head.data.length : _e.length : (me > _e.highWaterMark && (_e.highWaterMark = function(Ye) {
|
|
17081
17081
|
return Ye >= X ? Ye = X : (Ye--, Ye |= Ye >>> 1, Ye |= Ye >>> 2, Ye |= Ye >>> 4, Ye |= Ye >>> 8, Ye |= Ye >>> 16, Ye++), Ye;
|
|
17082
|
-
}(me)), me <=
|
|
17082
|
+
}(me)), me <= _e.length ? me : _e.ended ? _e.length : (_e.needReadable = !0, 0));
|
|
17083
17083
|
}
|
|
17084
17084
|
function Be(me) {
|
|
17085
|
-
var
|
|
17086
|
-
E("emitReadable",
|
|
17085
|
+
var _e = me._readableState;
|
|
17086
|
+
E("emitReadable", _e.needReadable, _e.emittedReadable), _e.needReadable = !1, _e.emittedReadable || (E("emitReadable", _e.flowing), _e.emittedReadable = !0, process.nextTick(Qe, me));
|
|
17087
17087
|
}
|
|
17088
17088
|
function Qe(me) {
|
|
17089
|
-
var
|
|
17090
|
-
E("emitReadable_",
|
|
17089
|
+
var _e = me._readableState;
|
|
17090
|
+
E("emitReadable_", _e.destroyed, _e.length, _e.ended), _e.destroyed || !_e.length && !_e.ended || (me.emit("readable"), _e.emittedReadable = !1), _e.needReadable = !_e.flowing && !_e.ended && _e.length <= _e.highWaterMark, ke(me);
|
|
17091
17091
|
}
|
|
17092
|
-
function be(me,
|
|
17093
|
-
|
|
17092
|
+
function be(me, _e) {
|
|
17093
|
+
_e.readingMore || (_e.readingMore = !0, process.nextTick(Ze, me, _e));
|
|
17094
17094
|
}
|
|
17095
|
-
function Ze(me,
|
|
17096
|
-
for (; !
|
|
17097
|
-
var Ye =
|
|
17098
|
-
if (E("maybeReadMore read 0"), me.read(0), Ye ===
|
|
17095
|
+
function Ze(me, _e) {
|
|
17096
|
+
for (; !_e.reading && !_e.ended && (_e.length < _e.highWaterMark || _e.flowing && _e.length === 0); ) {
|
|
17097
|
+
var Ye = _e.length;
|
|
17098
|
+
if (E("maybeReadMore read 0"), me.read(0), Ye === _e.length) break;
|
|
17099
17099
|
}
|
|
17100
|
-
|
|
17100
|
+
_e.readingMore = !1;
|
|
17101
17101
|
}
|
|
17102
17102
|
function Xe(me) {
|
|
17103
|
-
var
|
|
17104
|
-
|
|
17103
|
+
var _e = me._readableState;
|
|
17104
|
+
_e.readableListening = me.listenerCount("readable") > 0, _e.resumeScheduled && !_e.paused ? _e.flowing = !0 : me.listenerCount("data") > 0 && me.resume();
|
|
17105
17105
|
}
|
|
17106
17106
|
function ot(me) {
|
|
17107
17107
|
E("readable nexttick read 0"), me.read(0);
|
|
17108
17108
|
}
|
|
17109
|
-
function Se(me,
|
|
17110
|
-
E("resume",
|
|
17109
|
+
function Se(me, _e) {
|
|
17110
|
+
E("resume", _e.reading), _e.reading || me.read(0), _e.resumeScheduled = !1, me.emit("resume"), ke(me), _e.flowing && !_e.reading && me.read(0);
|
|
17111
17111
|
}
|
|
17112
17112
|
function ke(me) {
|
|
17113
|
-
var
|
|
17114
|
-
for (E("flow",
|
|
17113
|
+
var _e = me._readableState;
|
|
17114
|
+
for (E("flow", _e.flowing); _e.flowing && me.read() !== null; ) ;
|
|
17115
17115
|
}
|
|
17116
|
-
function ct(me,
|
|
17117
|
-
return
|
|
17116
|
+
function ct(me, _e) {
|
|
17117
|
+
return _e.length === 0 ? null : (_e.objectMode ? Ye = _e.buffer.shift() : !me || me >= _e.length ? (Ye = _e.decoder ? _e.buffer.join("") : _e.buffer.length === 1 ? _e.buffer.first() : _e.buffer.concat(_e.length), _e.buffer.clear()) : Ye = _e.buffer.consume(me, _e.decoder), Ye);
|
|
17118
17118
|
var Ye;
|
|
17119
17119
|
}
|
|
17120
17120
|
function gt(me) {
|
|
17121
|
-
var
|
|
17122
|
-
E("endReadable",
|
|
17121
|
+
var _e = me._readableState;
|
|
17122
|
+
E("endReadable", _e.endEmitted), _e.endEmitted || (_e.ended = !0, process.nextTick(qe, _e, me));
|
|
17123
17123
|
}
|
|
17124
|
-
function qe(me,
|
|
17125
|
-
if (E("endReadableNT", me.endEmitted, me.length), !me.endEmitted && me.length === 0 && (me.endEmitted = !0,
|
|
17126
|
-
var Ye =
|
|
17127
|
-
(!Ye || Ye.autoDestroy && Ye.finished) &&
|
|
17124
|
+
function qe(me, _e) {
|
|
17125
|
+
if (E("endReadableNT", me.endEmitted, me.length), !me.endEmitted && me.length === 0 && (me.endEmitted = !0, _e.readable = !1, _e.emit("end"), me.autoDestroy)) {
|
|
17126
|
+
var Ye = _e._writableState;
|
|
17127
|
+
(!Ye || Ye.autoDestroy && Ye.finished) && _e.destroy();
|
|
17128
17128
|
}
|
|
17129
17129
|
}
|
|
17130
|
-
function at(me,
|
|
17131
|
-
for (var Ye = 0, f = me.length; Ye < f; Ye++) if (me[Ye] ===
|
|
17130
|
+
function at(me, _e) {
|
|
17131
|
+
for (var Ye = 0, f = me.length; Ye < f; Ye++) if (me[Ye] === _e) return Ye;
|
|
17132
17132
|
return -1;
|
|
17133
17133
|
}
|
|
17134
17134
|
te.prototype.read = function(me) {
|
|
17135
17135
|
E("read", me), me = parseInt(me, 10);
|
|
17136
|
-
var
|
|
17137
|
-
if (me !== 0 && (
|
|
17138
|
-
if ((me = De(me,
|
|
17139
|
-
var f, u =
|
|
17140
|
-
return E("need readable", u), (
|
|
17136
|
+
var _e = this._readableState, Ye = me;
|
|
17137
|
+
if (me !== 0 && (_e.emittedReadable = !1), me === 0 && _e.needReadable && ((_e.highWaterMark !== 0 ? _e.length >= _e.highWaterMark : _e.length > 0) || _e.ended)) return E("read: emitReadable", _e.length, _e.ended), _e.length === 0 && _e.ended ? gt(this) : Be(this), null;
|
|
17138
|
+
if ((me = De(me, _e)) === 0 && _e.ended) return _e.length === 0 && gt(this), null;
|
|
17139
|
+
var f, u = _e.needReadable;
|
|
17140
|
+
return E("need readable", u), (_e.length === 0 || _e.length - me < _e.highWaterMark) && E("length less than watermark", u = !0), _e.ended || _e.reading ? E("reading or ended", u = !1) : u && (E("do read"), _e.reading = !0, _e.sync = !0, _e.length === 0 && (_e.needReadable = !0), this._read(_e.highWaterMark), _e.sync = !1, _e.reading || (me = De(Ye, _e))), (f = me > 0 ? ct(me, _e) : null) === null ? (_e.needReadable = _e.length <= _e.highWaterMark, me = 0) : (_e.length -= me, _e.awaitDrain = 0), _e.length === 0 && (_e.ended || (_e.needReadable = !0), Ye !== me && _e.ended && gt(this)), f !== null && this.emit("data", f), f;
|
|
17141
17141
|
}, te.prototype._read = function(me) {
|
|
17142
17142
|
K(this, new J("_read()"));
|
|
17143
|
-
}, te.prototype.pipe = function(me,
|
|
17143
|
+
}, te.prototype.pipe = function(me, _e) {
|
|
17144
17144
|
var Ye = this, f = this._readableState;
|
|
17145
17145
|
switch (f.pipesCount) {
|
|
17146
17146
|
case 0:
|
|
@@ -17152,8 +17152,8 @@ Actual: ` + f.attribValue);
|
|
|
17152
17152
|
default:
|
|
17153
17153
|
f.pipes.push(me);
|
|
17154
17154
|
}
|
|
17155
|
-
f.pipesCount += 1, E("pipe count=%d opts=%j", f.pipesCount,
|
|
17156
|
-
var u =
|
|
17155
|
+
f.pipesCount += 1, E("pipe count=%d opts=%j", f.pipesCount, _e);
|
|
17156
|
+
var u = _e && _e.end === !1 || me === process.stdout || me === process.stderr ? Fe : T;
|
|
17157
17157
|
function T() {
|
|
17158
17158
|
E("onend"), me.end();
|
|
17159
17159
|
}
|
|
@@ -17190,43 +17190,43 @@ Actual: ` + f.attribValue);
|
|
|
17190
17190
|
Ne._events && Ne._events[He] ? Array.isArray(Ne._events[He]) ? Ne._events[He].unshift(it) : Ne._events[He] = [it, Ne._events[He]] : Ne.on(He, it);
|
|
17191
17191
|
}(me, "error", we), me.once("close", tt), me.once("finish", Ue), me.emit("pipe", Ye), f.flowing || (E("pipe resume"), Ye.resume()), me;
|
|
17192
17192
|
}, te.prototype.unpipe = function(me) {
|
|
17193
|
-
var
|
|
17194
|
-
if (
|
|
17195
|
-
if (
|
|
17193
|
+
var _e = this._readableState, Ye = { hasUnpiped: !1 };
|
|
17194
|
+
if (_e.pipesCount === 0) return this;
|
|
17195
|
+
if (_e.pipesCount === 1) return me && me !== _e.pipes || (me || (me = _e.pipes), _e.pipes = null, _e.pipesCount = 0, _e.flowing = !1, me && me.emit("unpipe", this, Ye)), this;
|
|
17196
17196
|
if (!me) {
|
|
17197
|
-
var f =
|
|
17198
|
-
|
|
17197
|
+
var f = _e.pipes, u = _e.pipesCount;
|
|
17198
|
+
_e.pipes = null, _e.pipesCount = 0, _e.flowing = !1;
|
|
17199
17199
|
for (var T = 0; T < u; T++) f[T].emit("unpipe", this, { hasUnpiped: !1 });
|
|
17200
17200
|
return this;
|
|
17201
17201
|
}
|
|
17202
|
-
var b = at(
|
|
17203
|
-
return b === -1 || (
|
|
17204
|
-
}, te.prototype.on = function(me,
|
|
17205
|
-
var Ye = e.prototype.on.call(this, me,
|
|
17202
|
+
var b = at(_e.pipes, me);
|
|
17203
|
+
return b === -1 || (_e.pipes.splice(b, 1), _e.pipesCount -= 1, _e.pipesCount === 1 && (_e.pipes = _e.pipes[0]), me.emit("unpipe", this, Ye)), this;
|
|
17204
|
+
}, te.prototype.on = function(me, _e) {
|
|
17205
|
+
var Ye = e.prototype.on.call(this, me, _e), f = this._readableState;
|
|
17206
17206
|
return me === "data" ? (f.readableListening = this.listenerCount("readable") > 0, f.flowing !== !1 && this.resume()) : me === "readable" && (f.endEmitted || f.readableListening || (f.readableListening = f.needReadable = !0, f.flowing = !1, f.emittedReadable = !1, E("on readable", f.length, f.reading), f.length ? Be(this) : f.reading || process.nextTick(ot, this))), Ye;
|
|
17207
|
-
}, te.prototype.addListener = te.prototype.on, te.prototype.removeListener = function(me,
|
|
17208
|
-
var Ye = e.prototype.removeListener.call(this, me,
|
|
17207
|
+
}, te.prototype.addListener = te.prototype.on, te.prototype.removeListener = function(me, _e) {
|
|
17208
|
+
var Ye = e.prototype.removeListener.call(this, me, _e);
|
|
17209
17209
|
return me === "readable" && process.nextTick(Xe, this), Ye;
|
|
17210
17210
|
}, te.prototype.removeAllListeners = function(me) {
|
|
17211
|
-
var
|
|
17212
|
-
return me !== "readable" && me !== void 0 || process.nextTick(Xe, this),
|
|
17211
|
+
var _e = e.prototype.removeAllListeners.apply(this, arguments);
|
|
17212
|
+
return me !== "readable" && me !== void 0 || process.nextTick(Xe, this), _e;
|
|
17213
17213
|
}, te.prototype.resume = function() {
|
|
17214
17214
|
var me = this._readableState;
|
|
17215
|
-
return me.flowing || (E("resume"), me.flowing = !me.readableListening, function(
|
|
17216
|
-
Ye.resumeScheduled || (Ye.resumeScheduled = !0, process.nextTick(Se,
|
|
17215
|
+
return me.flowing || (E("resume"), me.flowing = !me.readableListening, function(_e, Ye) {
|
|
17216
|
+
Ye.resumeScheduled || (Ye.resumeScheduled = !0, process.nextTick(Se, _e, Ye));
|
|
17217
17217
|
}(this, me)), me.paused = !1, this;
|
|
17218
17218
|
}, te.prototype.pause = function() {
|
|
17219
17219
|
return E("call pause flowing=%j", this._readableState.flowing), this._readableState.flowing !== !1 && (E("pause"), this._readableState.flowing = !1, this.emit("pause")), this._readableState.paused = !0, this;
|
|
17220
17220
|
}, te.prototype.wrap = function(me) {
|
|
17221
|
-
var
|
|
17221
|
+
var _e = this, Ye = this._readableState, f = !1;
|
|
17222
17222
|
for (var u in me.on("end", function() {
|
|
17223
17223
|
if (E("wrapped end"), Ye.decoder && !Ye.ended) {
|
|
17224
17224
|
var b = Ye.decoder.end();
|
|
17225
|
-
b && b.length &&
|
|
17225
|
+
b && b.length && _e.push(b);
|
|
17226
17226
|
}
|
|
17227
|
-
|
|
17227
|
+
_e.push(null);
|
|
17228
17228
|
}), me.on("data", function(b) {
|
|
17229
|
-
E("wrapped data"), Ye.decoder && (b = Ye.decoder.write(b)), Ye.objectMode && b == null || (Ye.objectMode || b && b.length) && (
|
|
17229
|
+
E("wrapped data"), Ye.decoder && (b = Ye.decoder.write(b)), Ye.objectMode && b == null || (Ye.objectMode || b && b.length) && (_e.push(b) || (f = !0, me.pause()));
|
|
17230
17230
|
}), me) this[u] === void 0 && typeof me[u] == "function" && (this[u] = /* @__PURE__ */ function(b) {
|
|
17231
17231
|
return function() {
|
|
17232
17232
|
return me[b].apply(me, arguments);
|
|
@@ -17248,8 +17248,8 @@ Actual: ` + f.attribValue);
|
|
|
17248
17248
|
this._readableState && (this._readableState.flowing = me);
|
|
17249
17249
|
} }), te._fromList = ct, Object.defineProperty(te.prototype, "readableLength", { enumerable: !1, get: function() {
|
|
17250
17250
|
return this._readableState.length;
|
|
17251
|
-
} }), typeof Symbol == "function" && (te.from = function(me,
|
|
17252
|
-
return n === void 0 && (n = C(6233)), n(te, me,
|
|
17251
|
+
} }), typeof Symbol == "function" && (te.from = function(me, _e) {
|
|
17252
|
+
return n === void 0 && (n = C(6233)), n(te, me, _e);
|
|
17253
17253
|
});
|
|
17254
17254
|
}, 9798: function(Ce, Ee, C) {
|
|
17255
17255
|
Ce.exports = v;
|
|
@@ -17324,10 +17324,10 @@ Actual: ` + f.attribValue);
|
|
|
17324
17324
|
(function(ke, ct) {
|
|
17325
17325
|
var gt = ke._writableState, qe = gt.sync, at = gt.writecb;
|
|
17326
17326
|
if (typeof at != "function") throw new S();
|
|
17327
|
-
if (function(
|
|
17328
|
-
|
|
17329
|
-
}(gt), ct) (function(
|
|
17330
|
-
--Ye.pendingcb, f ? (process.nextTick(T, u), process.nextTick(Qe,
|
|
17327
|
+
if (function(_e) {
|
|
17328
|
+
_e.writing = !1, _e.writecb = null, _e.length -= _e.writelen, _e.writelen = 0;
|
|
17329
|
+
}(gt), ct) (function(_e, Ye, f, u, T) {
|
|
17330
|
+
--Ye.pendingcb, f ? (process.nextTick(T, u), process.nextTick(Qe, _e, Ye), _e._writableState.errorEmitted = !0, K(_e, u)) : (T(u), _e._writableState.errorEmitted = !0, K(_e, u), Qe(_e, Ye));
|
|
17331
17331
|
})(ke, gt, qe, ct, at);
|
|
17332
17332
|
else {
|
|
17333
17333
|
var me = De(gt) || ke.destroyed;
|
|
@@ -17408,22 +17408,22 @@ Actual: ` + f.attribValue);
|
|
|
17408
17408
|
var at = new J();
|
|
17409
17409
|
K(gt, at), process.nextTick(qe, at);
|
|
17410
17410
|
}(this, Xe) : (ct || function(gt, qe, at, me) {
|
|
17411
|
-
var
|
|
17412
|
-
return at === null ?
|
|
17413
|
-
}(this, Se, be, Xe)) && (Se.pendingcb++, ke = function(gt, qe, at, me,
|
|
17411
|
+
var _e;
|
|
17412
|
+
return at === null ? _e = new P() : typeof at == "string" || qe.objectMode || (_e = new c("chunk", ["string", "Buffer"], at)), !_e || (K(gt, _e), process.nextTick(me, _e), !1);
|
|
17413
|
+
}(this, Se, be, Xe)) && (Se.pendingcb++, ke = function(gt, qe, at, me, _e, Ye) {
|
|
17414
17414
|
if (!at) {
|
|
17415
17415
|
var f = function(Q, Y, we) {
|
|
17416
17416
|
return Q.objectMode || Q.decodeStrings === !1 || typeof Y != "string" || (Y = m.from(Y, we)), Y;
|
|
17417
|
-
}(qe, me,
|
|
17418
|
-
me !== f && (at = !0,
|
|
17417
|
+
}(qe, me, _e);
|
|
17418
|
+
me !== f && (at = !0, _e = "buffer", me = f);
|
|
17419
17419
|
}
|
|
17420
17420
|
var u = qe.objectMode ? 1 : me.length;
|
|
17421
17421
|
qe.length += u;
|
|
17422
17422
|
var T = qe.length < qe.highWaterMark;
|
|
17423
17423
|
if (T || (qe.needDrain = !0), qe.writing || qe.corked) {
|
|
17424
17424
|
var b = qe.lastBufferedRequest;
|
|
17425
|
-
qe.lastBufferedRequest = { chunk: me, encoding:
|
|
17426
|
-
} else le(gt, qe, !1, u, me,
|
|
17425
|
+
qe.lastBufferedRequest = { chunk: me, encoding: _e, isBuf: at, callback: Ye, next: null }, b ? b.next = qe.lastBufferedRequest : qe.bufferedRequest = qe.lastBufferedRequest, qe.bufferedRequestCount += 1;
|
|
17426
|
+
} else le(gt, qe, !1, u, me, _e, Ye);
|
|
17427
17427
|
return T;
|
|
17428
17428
|
}(this, Se, ct, be, Ze, Xe)), ke;
|
|
17429
17429
|
}, te.prototype.cork = function() {
|
|
@@ -17872,7 +17872,7 @@ Actual: ` + f.attribValue);
|
|
|
17872
17872
|
}, 1067: function(Ce, Ee, C) {
|
|
17873
17873
|
var ne;
|
|
17874
17874
|
(function(E, t) {
|
|
17875
|
-
var e = "function", p = "undefined", m = "object", o = "string", v = "major", h = "model", n = "name", c = "type", d = "vendor", S = "version", x = "architecture", B = "console", P = "mobile", J = "tablet", M = "smarttv", K = "wearable", ae = "embedded", j = "Amazon", te = "Apple", le = "ASUS", Ie = "BlackBerry", X = "Browser", De = "Chrome", Be = "Firefox", Qe = "Google", be = "Huawei", Ze = "LG", Xe = "Microsoft", ot = "Motorola", Se = "Opera", ke = "Samsung", ct = "Sharp", gt = "Sony", qe = "Xiaomi", at = "Zebra", me = "Facebook",
|
|
17875
|
+
var e = "function", p = "undefined", m = "object", o = "string", v = "major", h = "model", n = "name", c = "type", d = "vendor", S = "version", x = "architecture", B = "console", P = "mobile", J = "tablet", M = "smarttv", K = "wearable", ae = "embedded", j = "Amazon", te = "Apple", le = "ASUS", Ie = "BlackBerry", X = "Browser", De = "Chrome", Be = "Firefox", Qe = "Google", be = "Huawei", Ze = "LG", Xe = "Microsoft", ot = "Motorola", Se = "Opera", ke = "Samsung", ct = "Sharp", gt = "Sony", qe = "Xiaomi", at = "Zebra", me = "Facebook", _e = "Chromium OS", Ye = "Mac OS", f = function(He) {
|
|
17876
17876
|
for (var it = {}, St = 0; St < He.length; St++) it[He[St].toUpperCase()] = He[St];
|
|
17877
17877
|
return it;
|
|
17878
17878
|
}, u = function(He, it) {
|
|
@@ -17892,7 +17892,7 @@ Actual: ` + f.attribValue);
|
|
|
17892
17892
|
for (var dt = 0; dt < it[St].length; dt++) if (u(it[St][dt], He)) return St === "?" ? t : St;
|
|
17893
17893
|
} else if (u(it[St], He)) return St === "?" ? t : St;
|
|
17894
17894
|
return He;
|
|
17895
|
-
}, we = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, tt = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [S, [n, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [S, [n, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [n, S], [/opios[\/ ]+([\w\.]+)/i], [S, [n, Se + " Mini"]], [/\bopr\/([\w\.]+)/i], [S, [n, Se]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [S, [n, "Baidu"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [n, S], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [S, [n, "UC" + X]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [S, [n, "WeChat"]], [/konqueror\/([\w\.]+)/i], [S, [n, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [S, [n, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [S, [n, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [S, [n, "Smart Lenovo " + X]], [/(avast|avg)\/([\w\.]+)/i], [[n, /(.+)/, "$1 Secure " + X], S], [/\bfocus\/([\w\.]+)/i], [S, [n, Be + " Focus"]], [/\bopt\/([\w\.]+)/i], [S, [n, Se + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [S, [n, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [S, [n, "Dolphin"]], [/coast\/([\w\.]+)/i], [S, [n, Se + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [S, [n, "MIUI " + X]], [/fxios\/([-\w\.]+)/i], [S, [n, Be]], [/\bqihu|(qi?ho?o?|360)browser/i], [[n, "360 " + X]], [/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i], [[n, /(.+)/, "$1 " + X], S], [/samsungbrowser\/([\w\.]+)/i], [S, [n, ke + " Internet"]], [/(comodo_dragon)\/([\w\.]+)/i], [[n, /_/g, " "], S], [/metasr[\/ ]?([\d\.]+)/i], [S, [n, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[n, "Sogou Mobile"], S], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i], [n, S], [/(lbbrowser)/i, /\[(linkedin)app\]/i], [n], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[n, me], S], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [n, S], [/\bgsa\/([\w\.]+) .*safari\//i], [S, [n, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [S, [n, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [S, [n, De + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[n, De + " WebView"], S], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [S, [n, "Android " + X]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [n, S], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [S, [n, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [S, n], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [n, [S, Y, { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }]], [/(webkit|khtml)\/([\w\.]+)/i], [n, S], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[n, "Netscape"], S], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [S, [n, Be + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [n, S], [/(cobalt)\/([\w\.]+)/i], [n, [S, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[x, "amd64"]], [/(ia32(?=;))/i], [[x, T]], [/((?:i[346]|x)86)[;\)]/i], [[x, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[x, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[x, "armhf"]], [/windows (ce|mobile); ppc;/i], [[x, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[x, /ower/, "", T]], [/(sun4\w)[;\)]/i], [[x, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[x, T]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [h, [d, ke], [c, J]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [h, [d, ke], [c, P]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [h, [d, te], [c, P]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [h, [d, te], [c, J]], [/(macintosh);/i], [h, [d, te]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [h, [d, ct], [c, P]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [h, [d, be], [c, J]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [h, [d, be], [c, P]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[h, /_/g, " "], [d, qe], [c, P]], [/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i, /\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[h, /_/g, " "], [d, qe], [c, J]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [h, [d, "OPPO"], [c, P]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [h, [d, "Vivo"], [c, P]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [h, [d, "Realme"], [c, P]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [h, [d, ot], [c, P]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [h, [d, ot], [c, J]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [h, [d, Ze], [c, J]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [h, [d, Ze], [c, P]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [h, [d, "Lenovo"], [c, J]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[h, /_/g, " "], [d, "Nokia"], [c, P]], [/(pixel c)\b/i], [h, [d, Qe], [c, J]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [h, [d, Qe], [c, P]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [h, [d, gt], [c, P]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[h, "Xperia Tablet"], [d, gt], [c, J]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [h, [d, "OnePlus"], [c, P]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [h, [d, j], [c, J]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[h, /(.+)/g, "Fire Phone $1"], [d, j], [c, P]], [/(playbook);[-\w\),; ]+(rim)/i], [h, d, [c, J]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [h, [d, Ie], [c, P]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [h, [d, le], [c, J]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [h, [d, le], [c, P]], [/(nexus 9)/i], [h, [d, "HTC"], [c, J]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [d, [h, /_/g, " "], [c, P]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [h, [d, "Acer"], [c, J]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [h, [d, "Meizu"], [c, P]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [h, [d, "Ulefone"], [c, P]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [d, h, [c, P]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [d, h, [c, J]], [/(surface duo)/i], [h, [d, Xe], [c, J]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [h, [d, "Fairphone"], [c, P]], [/(u304aa)/i], [h, [d, "AT&T"], [c, P]], [/\bsie-(\w*)/i], [h, [d, "Siemens"], [c, P]], [/\b(rct\w+) b/i], [h, [d, "RCA"], [c, J]], [/\b(venue[\d ]{2,7}) b/i], [h, [d, "Dell"], [c, J]], [/\b(q(?:mv|ta)\w+) b/i], [h, [d, "Verizon"], [c, J]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [h, [d, "Barnes & Noble"], [c, J]], [/\b(tm\d{3}\w+) b/i], [h, [d, "NuVision"], [c, J]], [/\b(k88) b/i], [h, [d, "ZTE"], [c, J]], [/\b(nx\d{3}j) b/i], [h, [d, "ZTE"], [c, P]], [/\b(gen\d{3}) b.+49h/i], [h, [d, "Swiss"], [c, P]], [/\b(zur\d{3}) b/i], [h, [d, "Swiss"], [c, J]], [/\b((zeki)?tb.*\b) b/i], [h, [d, "Zeki"], [c, J]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[d, "Dragon Touch"], h, [c, J]], [/\b(ns-?\w{0,9}) b/i], [h, [d, "Insignia"], [c, J]], [/\b((nxa|next)-?\w{0,9}) b/i], [h, [d, "NextBook"], [c, J]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[d, "Voice"], h, [c, P]], [/\b(lvtel\-)?(v1[12]) b/i], [[d, "LvTel"], h, [c, P]], [/\b(ph-1) /i], [h, [d, "Essential"], [c, P]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [h, [d, "Envizen"], [c, J]], [/\b(trio[-\w\. ]+) b/i], [h, [d, "MachSpeed"], [c, J]], [/\btu_(1491) b/i], [h, [d, "Rotor"], [c, J]], [/(shield[\w ]+) b/i], [h, [d, "Nvidia"], [c, J]], [/(sprint) (\w+)/i], [d, h, [c, P]], [/(kin\.[onetw]{3})/i], [[h, /\./g, " "], [d, Xe], [c, P]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [h, [d, at], [c, J]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [h, [d, at], [c, P]], [/smart-tv.+(samsung)/i], [d, [c, M]], [/hbbtv.+maple;(\d+)/i], [[h, /^/, "SmartTV"], [d, ke], [c, M]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[d, Ze], [c, M]], [/(apple) ?tv/i], [d, [h, te + " TV"], [c, M]], [/crkey/i], [[h, De + "cast"], [d, Qe], [c, M]], [/droid.+aft(\w+)( bui|\))/i], [h, [d, j], [c, M]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [h, [d, ct], [c, M]], [/(bravia[\w ]+)( bui|\))/i], [h, [d, gt], [c, M]], [/(mitv-\w{5}) bui/i], [h, [d, qe], [c, M]], [/Hbbtv.*(technisat) (.*);/i], [d, h, [c, M]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[d, b], [h, b], [c, M]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[c, M]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [d, h, [c, B]], [/droid.+; (shield) bui/i], [h, [d, "Nvidia"], [c, B]], [/(playstation [345portablevi]+)/i], [h, [d, gt], [c, B]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [h, [d, Xe], [c, B]], [/((pebble))app/i], [d, h, [c, K]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [h, [d, te], [c, K]], [/droid.+; (glass) \d/i], [h, [d, Qe], [c, K]], [/droid.+; (wt63?0{2,3})\)/i], [h, [d, at], [c, K]], [/(quest( 2| pro)?)/i], [h, [d, me], [c, K]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [d, [c, ae]], [/(aeobc)\b/i], [h, [d, j], [c, ae]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [h, [c, P]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [h, [c, J]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[c, J]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[c, P]], [/(android[-\w\. ]{0,9});.+buil/i], [h, [d, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [S, [n, "EdgeHTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [S, [n, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [n, S], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [S, n]], os: [[/microsoft (windows) (vista|xp)/i], [n, S], [/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i], [n, [S, Y, we]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[S, Y, we], [n, "Windows"]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[S, /_/g, "."], [n, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[n, Ye], [S, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [S, n], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [n, S], [/\(bb(10);/i], [S, [n, Ie]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [S, [n, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [S, [n, Be + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [S, [n, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [S, [n, "watchOS"]], [/crkey\/([\d\.]+)/i], [S, [n, De + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[n, ye], S], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [n, S], [/(sunos) ?([\w\.\d]*)/i], [[n, "Solaris"], S], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [n, S]] }, Ue = function(He, it) {
|
|
17895
|
+
}, we = { ME: "4.90", "NT 3.11": "NT3.51", "NT 4.0": "NT4.0", 2e3: "NT 5.0", XP: ["NT 5.1", "NT 5.2"], Vista: "NT 6.0", 7: "NT 6.1", 8: "NT 6.2", 8.1: "NT 6.3", 10: ["NT 6.4", "NT 10.0"], RT: "ARM" }, tt = { browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [S, [n, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [S, [n, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [n, S], [/opios[\/ ]+([\w\.]+)/i], [S, [n, Se + " Mini"]], [/\bopr\/([\w\.]+)/i], [S, [n, Se]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [S, [n, "Baidu"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [n, S], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [S, [n, "UC" + X]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [S, [n, "WeChat"]], [/konqueror\/([\w\.]+)/i], [S, [n, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [S, [n, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [S, [n, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [S, [n, "Smart Lenovo " + X]], [/(avast|avg)\/([\w\.]+)/i], [[n, /(.+)/, "$1 Secure " + X], S], [/\bfocus\/([\w\.]+)/i], [S, [n, Be + " Focus"]], [/\bopt\/([\w\.]+)/i], [S, [n, Se + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [S, [n, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [S, [n, "Dolphin"]], [/coast\/([\w\.]+)/i], [S, [n, Se + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [S, [n, "MIUI " + X]], [/fxios\/([-\w\.]+)/i], [S, [n, Be]], [/\bqihu|(qi?ho?o?|360)browser/i], [[n, "360 " + X]], [/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i], [[n, /(.+)/, "$1 " + X], S], [/samsungbrowser\/([\w\.]+)/i], [S, [n, ke + " Internet"]], [/(comodo_dragon)\/([\w\.]+)/i], [[n, /_/g, " "], S], [/metasr[\/ ]?([\d\.]+)/i], [S, [n, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[n, "Sogou Mobile"], S], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i], [n, S], [/(lbbrowser)/i, /\[(linkedin)app\]/i], [n], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[n, me], S], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [n, S], [/\bgsa\/([\w\.]+) .*safari\//i], [S, [n, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [S, [n, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [S, [n, De + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[n, De + " WebView"], S], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [S, [n, "Android " + X]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [n, S], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [S, [n, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [S, n], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [n, [S, Y, { "1.0": "/8", 1.2: "/1", 1.3: "/3", "2.0": "/412", "2.0.2": "/416", "2.0.3": "/417", "2.0.4": "/419", "?": "/" }]], [/(webkit|khtml)\/([\w\.]+)/i], [n, S], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[n, "Netscape"], S], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [S, [n, Be + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [n, S], [/(cobalt)\/([\w\.]+)/i], [n, [S, /master.|lts./, ""]]], cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[x, "amd64"]], [/(ia32(?=;))/i], [[x, T]], [/((?:i[346]|x)86)[;\)]/i], [[x, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[x, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[x, "armhf"]], [/windows (ce|mobile); ppc;/i], [[x, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[x, /ower/, "", T]], [/(sun4\w)[;\)]/i], [[x, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[x, T]]], device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [h, [d, ke], [c, J]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [h, [d, ke], [c, P]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [h, [d, te], [c, P]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [h, [d, te], [c, J]], [/(macintosh);/i], [h, [d, te]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [h, [d, ct], [c, P]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [h, [d, be], [c, J]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [h, [d, be], [c, P]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[h, /_/g, " "], [d, qe], [c, P]], [/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i, /\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[h, /_/g, " "], [d, qe], [c, J]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [h, [d, "OPPO"], [c, P]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [h, [d, "Vivo"], [c, P]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [h, [d, "Realme"], [c, P]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [h, [d, ot], [c, P]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [h, [d, ot], [c, J]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [h, [d, Ze], [c, J]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [h, [d, Ze], [c, P]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [h, [d, "Lenovo"], [c, J]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[h, /_/g, " "], [d, "Nokia"], [c, P]], [/(pixel c)\b/i], [h, [d, Qe], [c, J]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [h, [d, Qe], [c, P]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [h, [d, gt], [c, P]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[h, "Xperia Tablet"], [d, gt], [c, J]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [h, [d, "OnePlus"], [c, P]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [h, [d, j], [c, J]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[h, /(.+)/g, "Fire Phone $1"], [d, j], [c, P]], [/(playbook);[-\w\),; ]+(rim)/i], [h, d, [c, J]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [h, [d, Ie], [c, P]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [h, [d, le], [c, J]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [h, [d, le], [c, P]], [/(nexus 9)/i], [h, [d, "HTC"], [c, J]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [d, [h, /_/g, " "], [c, P]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [h, [d, "Acer"], [c, J]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [h, [d, "Meizu"], [c, P]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [h, [d, "Ulefone"], [c, P]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [d, h, [c, P]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [d, h, [c, J]], [/(surface duo)/i], [h, [d, Xe], [c, J]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [h, [d, "Fairphone"], [c, P]], [/(u304aa)/i], [h, [d, "AT&T"], [c, P]], [/\bsie-(\w*)/i], [h, [d, "Siemens"], [c, P]], [/\b(rct\w+) b/i], [h, [d, "RCA"], [c, J]], [/\b(venue[\d ]{2,7}) b/i], [h, [d, "Dell"], [c, J]], [/\b(q(?:mv|ta)\w+) b/i], [h, [d, "Verizon"], [c, J]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [h, [d, "Barnes & Noble"], [c, J]], [/\b(tm\d{3}\w+) b/i], [h, [d, "NuVision"], [c, J]], [/\b(k88) b/i], [h, [d, "ZTE"], [c, J]], [/\b(nx\d{3}j) b/i], [h, [d, "ZTE"], [c, P]], [/\b(gen\d{3}) b.+49h/i], [h, [d, "Swiss"], [c, P]], [/\b(zur\d{3}) b/i], [h, [d, "Swiss"], [c, J]], [/\b((zeki)?tb.*\b) b/i], [h, [d, "Zeki"], [c, J]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[d, "Dragon Touch"], h, [c, J]], [/\b(ns-?\w{0,9}) b/i], [h, [d, "Insignia"], [c, J]], [/\b((nxa|next)-?\w{0,9}) b/i], [h, [d, "NextBook"], [c, J]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[d, "Voice"], h, [c, P]], [/\b(lvtel\-)?(v1[12]) b/i], [[d, "LvTel"], h, [c, P]], [/\b(ph-1) /i], [h, [d, "Essential"], [c, P]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [h, [d, "Envizen"], [c, J]], [/\b(trio[-\w\. ]+) b/i], [h, [d, "MachSpeed"], [c, J]], [/\btu_(1491) b/i], [h, [d, "Rotor"], [c, J]], [/(shield[\w ]+) b/i], [h, [d, "Nvidia"], [c, J]], [/(sprint) (\w+)/i], [d, h, [c, P]], [/(kin\.[onetw]{3})/i], [[h, /\./g, " "], [d, Xe], [c, P]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [h, [d, at], [c, J]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [h, [d, at], [c, P]], [/smart-tv.+(samsung)/i], [d, [c, M]], [/hbbtv.+maple;(\d+)/i], [[h, /^/, "SmartTV"], [d, ke], [c, M]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[d, Ze], [c, M]], [/(apple) ?tv/i], [d, [h, te + " TV"], [c, M]], [/crkey/i], [[h, De + "cast"], [d, Qe], [c, M]], [/droid.+aft(\w+)( bui|\))/i], [h, [d, j], [c, M]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [h, [d, ct], [c, M]], [/(bravia[\w ]+)( bui|\))/i], [h, [d, gt], [c, M]], [/(mitv-\w{5}) bui/i], [h, [d, qe], [c, M]], [/Hbbtv.*(technisat) (.*);/i], [d, h, [c, M]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[d, b], [h, b], [c, M]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[c, M]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [d, h, [c, B]], [/droid.+; (shield) bui/i], [h, [d, "Nvidia"], [c, B]], [/(playstation [345portablevi]+)/i], [h, [d, gt], [c, B]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [h, [d, Xe], [c, B]], [/((pebble))app/i], [d, h, [c, K]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [h, [d, te], [c, K]], [/droid.+; (glass) \d/i], [h, [d, Qe], [c, K]], [/droid.+; (wt63?0{2,3})\)/i], [h, [d, at], [c, K]], [/(quest( 2| pro)?)/i], [h, [d, me], [c, K]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [d, [c, ae]], [/(aeobc)\b/i], [h, [d, j], [c, ae]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [h, [c, P]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [h, [c, J]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[c, J]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[c, P]], [/(android[-\w\. ]{0,9});.+buil/i], [h, [d, "Generic"]]], engine: [[/windows.+ edge\/([\w\.]+)/i], [S, [n, "EdgeHTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [S, [n, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [n, S], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [S, n]], os: [[/microsoft (windows) (vista|xp)/i], [n, S], [/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i], [n, [S, Y, we]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[S, Y, we], [n, "Windows"]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[S, /_/g, "."], [n, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[n, Ye], [S, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [S, n], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [n, S], [/\(bb(10);/i], [S, [n, Ie]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [S, [n, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [S, [n, Be + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [S, [n, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [S, [n, "watchOS"]], [/crkey\/([\d\.]+)/i], [S, [n, De + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[n, _e], S], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [n, S], [/(sunos) ?([\w\.\d]*)/i], [[n, "Solaris"], S], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [n, S]] }, Ue = function(He, it) {
|
|
17896
17896
|
if (typeof He === m && (it = He, He = t), !(this instanceof Ue)) return new Ue(He, it).getResult();
|
|
17897
17897
|
var St = typeof E !== p && E.navigator ? E.navigator : t, dt = He || (St && St.userAgent ? St.userAgent : ""), Yt = St && St.userAgentData ? St.userAgentData : t, Mt = it ? function(Bt, cn) {
|
|
17898
17898
|
var vn = {};
|
|
@@ -17913,7 +17913,7 @@ Actual: ` + f.attribValue);
|
|
|
17913
17913
|
return Bt[n] = t, Bt[S] = t, Q.call(Bt, dt, Mt.engine), Bt;
|
|
17914
17914
|
}, this.getOS = function() {
|
|
17915
17915
|
var Bt = {};
|
|
17916
|
-
return Bt[n] = t, Bt[S] = t, Q.call(Bt, dt, Mt.os), Ht && !Bt[n] && Yt && Yt.platform != "Unknown" && (Bt[n] = Yt.platform.replace(/chrome os/i,
|
|
17916
|
+
return Bt[n] = t, Bt[S] = t, Q.call(Bt, dt, Mt.os), Ht && !Bt[n] && Yt && Yt.platform != "Unknown" && (Bt[n] = Yt.platform.replace(/chrome os/i, _e).replace(/macos/i, Ye)), Bt;
|
|
17917
17917
|
}, this.getResult = function() {
|
|
17918
17918
|
return { ua: this.getUA(), browser: this.getBrowser(), engine: this.getEngine(), os: this.getOS(), device: this.getDevice(), cpu: this.getCPU() };
|
|
17919
17919
|
}, this.getUA = function() {
|
|
@@ -17977,7 +17977,7 @@ Actual: ` + f.attribValue);
|
|
|
17977
17977
|
var Ee = xe[Ce];
|
|
17978
17978
|
if (Ee !== void 0) return Ee.exports;
|
|
17979
17979
|
var C = xe[Ce] = { exports: {} };
|
|
17980
|
-
return
|
|
17980
|
+
return ye[Ce].call(C.exports, C, C.exports, Ve), C.exports;
|
|
17981
17981
|
}
|
|
17982
17982
|
Ve.amdO = {}, Ve.n = function(Ce) {
|
|
17983
17983
|
var Ee = Ce && Ce.__esModule ? function() {
|
|
@@ -18049,24 +18049,24 @@ var Lc = Mc();
|
|
|
18049
18049
|
let Pc = Symbol("clean"), Lr = [], Kr = 0;
|
|
18050
18050
|
const aa = 4;
|
|
18051
18051
|
let zr = (z) => {
|
|
18052
|
-
let se = [],
|
|
18052
|
+
let se = [], ye = {
|
|
18053
18053
|
get() {
|
|
18054
|
-
return
|
|
18055
|
-
})(),
|
|
18054
|
+
return ye.lc || ye.listen(() => {
|
|
18055
|
+
})(), ye.value;
|
|
18056
18056
|
},
|
|
18057
18057
|
lc: 0,
|
|
18058
18058
|
listen(xe) {
|
|
18059
|
-
return
|
|
18059
|
+
return ye.lc = se.push(xe), () => {
|
|
18060
18060
|
for (let bt = Kr + aa; bt < Lr.length; )
|
|
18061
18061
|
Lr[bt] === xe ? Lr.splice(bt, aa) : bt += aa;
|
|
18062
18062
|
let Ve = se.indexOf(xe);
|
|
18063
|
-
~Ve && (se.splice(Ve, 1), --
|
|
18063
|
+
~Ve && (se.splice(Ve, 1), --ye.lc || ye.off());
|
|
18064
18064
|
};
|
|
18065
18065
|
},
|
|
18066
18066
|
notify(xe, Ve) {
|
|
18067
18067
|
let bt = !Lr.length;
|
|
18068
18068
|
for (let Ce of se)
|
|
18069
|
-
Lr.push(Ce,
|
|
18069
|
+
Lr.push(Ce, ye.value, xe, Ve);
|
|
18070
18070
|
if (bt) {
|
|
18071
18071
|
for (Kr = 0; Kr < Lr.length; Kr += aa)
|
|
18072
18072
|
Lr[Kr](
|
|
@@ -18082,42 +18082,42 @@ let zr = (z) => {
|
|
|
18082
18082
|
off() {
|
|
18083
18083
|
},
|
|
18084
18084
|
set(xe) {
|
|
18085
|
-
let Ve =
|
|
18086
|
-
Ve !== xe && (
|
|
18085
|
+
let Ve = ye.value;
|
|
18086
|
+
Ve !== xe && (ye.value = xe, ye.notify(Ve));
|
|
18087
18087
|
},
|
|
18088
18088
|
subscribe(xe) {
|
|
18089
|
-
let Ve =
|
|
18090
|
-
return xe(
|
|
18089
|
+
let Ve = ye.listen(xe);
|
|
18090
|
+
return xe(ye.value), Ve;
|
|
18091
18091
|
},
|
|
18092
18092
|
value: z
|
|
18093
18093
|
};
|
|
18094
|
-
return process.env.NODE_ENV !== "production" && (
|
|
18095
|
-
se = [],
|
|
18096
|
-
}),
|
|
18094
|
+
return process.env.NODE_ENV !== "production" && (ye[Pc] = () => {
|
|
18095
|
+
se = [], ye.lc = 0, ye.off();
|
|
18096
|
+
}), ye;
|
|
18097
18097
|
};
|
|
18098
|
-
function xc(z, se,
|
|
18098
|
+
function xc(z, se, ye) {
|
|
18099
18099
|
let xe = new Set(se).add(void 0);
|
|
18100
18100
|
return z.listen((Ve, bt, Ce) => {
|
|
18101
|
-
xe.has(Ce) &&
|
|
18101
|
+
xe.has(Ce) && ye(Ve, bt, Ce);
|
|
18102
18102
|
});
|
|
18103
18103
|
}
|
|
18104
|
-
let eo = (z, se) => (
|
|
18105
|
-
z.current !==
|
|
18104
|
+
let eo = (z, se) => (ye) => {
|
|
18105
|
+
z.current !== ye && (z.current = ye, se());
|
|
18106
18106
|
};
|
|
18107
|
-
function no(z, { keys: se, deps:
|
|
18107
|
+
function no(z, { keys: se, deps: ye = [z, se] } = {}) {
|
|
18108
18108
|
let xe = pr();
|
|
18109
18109
|
xe.current = z.get();
|
|
18110
|
-
let Ve = qn((Ce) => (eo(xe, Ce)(z.value), (se == null ? void 0 : se.length) > 0 ? xc(z, se, eo(xe, Ce)) : z.listen(eo(xe, Ce))),
|
|
18110
|
+
let Ve = qn((Ce) => (eo(xe, Ce)(z.value), (se == null ? void 0 : se.length) > 0 ? xc(z, se, eo(xe, Ce)) : z.listen(eo(xe, Ce))), ye), bt = () => xe.current;
|
|
18111
18111
|
return sc(Ve, bt, bt);
|
|
18112
18112
|
}
|
|
18113
|
-
const Fc = (z, se,
|
|
18113
|
+
const Fc = (z, se, ye) => {
|
|
18114
18114
|
const xe = z[se];
|
|
18115
18115
|
return xe ? typeof xe == "function" ? xe() : Promise.resolve(xe) : new Promise((Ve, bt) => {
|
|
18116
18116
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
18117
18117
|
bt.bind(
|
|
18118
18118
|
null,
|
|
18119
18119
|
new Error(
|
|
18120
|
-
"Unknown variable dynamic import: " + se + (se.split("/").length !==
|
|
18120
|
+
"Unknown variable dynamic import: " + se + (se.split("/").length !== ye ? ". Note that variables only represent file names one level deep." : "")
|
|
18121
18121
|
)
|
|
18122
18122
|
)
|
|
18123
18123
|
);
|
|
@@ -18151,14 +18151,14 @@ function wr() {
|
|
|
18151
18151
|
);
|
|
18152
18152
|
return z;
|
|
18153
18153
|
}
|
|
18154
|
-
const
|
|
18154
|
+
const or = (z) => {
|
|
18155
18155
|
const se = wr();
|
|
18156
18156
|
return no(se[z]);
|
|
18157
18157
|
}, $s = fa(null);
|
|
18158
18158
|
function Zc({
|
|
18159
18159
|
title: z,
|
|
18160
18160
|
hideFullScreen: se,
|
|
18161
|
-
comments:
|
|
18161
|
+
comments: ye,
|
|
18162
18162
|
captions: xe,
|
|
18163
18163
|
thumbnail: Ve,
|
|
18164
18164
|
annotations: bt,
|
|
@@ -18187,7 +18187,7 @@ function Zc({
|
|
|
18187
18187
|
const K = {
|
|
18188
18188
|
title: z,
|
|
18189
18189
|
hideFullScreen: se,
|
|
18190
|
-
comments:
|
|
18190
|
+
comments: ye,
|
|
18191
18191
|
captions: xe,
|
|
18192
18192
|
thumbnail: Ve,
|
|
18193
18193
|
annotations: bt,
|
|
@@ -18199,7 +18199,7 @@ function Zc({
|
|
|
18199
18199
|
interactiveMenuElements: t,
|
|
18200
18200
|
kebabMenuElements: e,
|
|
18201
18201
|
darkMode: p,
|
|
18202
|
-
hasComments:
|
|
18202
|
+
hasComments: ye.length > 0,
|
|
18203
18203
|
hasAnnotations: bt.length > 0,
|
|
18204
18204
|
hasQuizmarkers: Ce.length > 0,
|
|
18205
18205
|
forceComments: o,
|
|
@@ -18229,22 +18229,22 @@ const Uc = "_annotation-overlay_1kxzn_1", Bc = {
|
|
|
18229
18229
|
"annotation-overlay": "_annotation-overlay_1kxzn_1",
|
|
18230
18230
|
annotationOverlay: Uc
|
|
18231
18231
|
}, Zs = 0.25, Gc = (z, se) => {
|
|
18232
|
-
let
|
|
18232
|
+
let ye = !1;
|
|
18233
18233
|
return (xe) => {
|
|
18234
18234
|
const Ve = xe.detail.currentTime;
|
|
18235
|
-
Ve >= z.time && Ve < z.time + Zs && !
|
|
18235
|
+
Ve >= z.time && Ve < z.time + Zs && !ye && (ye = !0, se(z)), (Ve < z.time || Ve >= z.time + Zs) && ye && (ye = !1);
|
|
18236
18236
|
};
|
|
18237
18237
|
};
|
|
18238
18238
|
function Hc({ annotations: z }) {
|
|
18239
|
-
const se = kr(),
|
|
18239
|
+
const se = kr(), ye = wr(), xe = Jn(), [Ve, bt] = gr(
|
|
18240
18240
|
null
|
|
18241
18241
|
), Ce = qn(
|
|
18242
18242
|
(C) => {
|
|
18243
|
-
se == null || se.pause(), bt(C),
|
|
18243
|
+
se == null || se.pause(), bt(C), ye.interactionsDisabled.set(!0);
|
|
18244
18244
|
},
|
|
18245
|
-
[se,
|
|
18245
|
+
[se, ye]
|
|
18246
18246
|
), Ee = () => {
|
|
18247
|
-
bt(null),
|
|
18247
|
+
bt(null), ye.interactionsDisabled.set(!1);
|
|
18248
18248
|
let C;
|
|
18249
18249
|
xe.interactive ? C = () => {
|
|
18250
18250
|
const ne = document.querySelector(
|
|
@@ -18273,7 +18273,7 @@ function Hc({ annotations: z }) {
|
|
|
18273
18273
|
const ne = z.find(
|
|
18274
18274
|
(E) => E.id === Ve.id
|
|
18275
18275
|
);
|
|
18276
|
-
ne ? bt(ne) : (bt(null),
|
|
18276
|
+
ne ? bt(ne) : (bt(null), ye.interactionsDisabled.set(!1));
|
|
18277
18277
|
}
|
|
18278
18278
|
}), () => C.abort();
|
|
18279
18279
|
}, [se, z]), Ve ? /* @__PURE__ */ ve("div", { className: Bc.annotationOverlay, children: Ve.render(Ee) }) : null;
|
|
@@ -18309,9 +18309,9 @@ const zc = [
|
|
|
18309
18309
|
"ArrowRight",
|
|
18310
18310
|
"Escape"
|
|
18311
18311
|
];
|
|
18312
|
-
function go(z, se = !1,
|
|
18312
|
+
function go(z, se = !1, ye = !0) {
|
|
18313
18313
|
Fr(() => {
|
|
18314
|
-
if (!
|
|
18314
|
+
if (!ye)
|
|
18315
18315
|
return;
|
|
18316
18316
|
const xe = new AbortController();
|
|
18317
18317
|
return document.addEventListener(
|
|
@@ -18333,7 +18333,7 @@ function go(z, se = !1, _e = !0) {
|
|
|
18333
18333
|
), () => {
|
|
18334
18334
|
xe.abort();
|
|
18335
18335
|
};
|
|
18336
|
-
}, [z, se,
|
|
18336
|
+
}, [z, se, ye]);
|
|
18337
18337
|
}
|
|
18338
18338
|
function Wc(z) {
|
|
18339
18339
|
const se = Rr(() => ({ Escape: z }), [z]);
|
|
@@ -18473,16 +18473,16 @@ function sf({ onClose: z }) {
|
|
|
18473
18473
|
);
|
|
18474
18474
|
}
|
|
18475
18475
|
function tu(z) {
|
|
18476
|
-
var se,
|
|
18476
|
+
var se, ye, xe = "";
|
|
18477
18477
|
if (typeof z == "string" || typeof z == "number") xe += z;
|
|
18478
18478
|
else if (typeof z == "object") if (Array.isArray(z)) {
|
|
18479
18479
|
var Ve = z.length;
|
|
18480
|
-
for (se = 0; se < Ve; se++) z[se] && (
|
|
18481
|
-
} else for (
|
|
18480
|
+
for (se = 0; se < Ve; se++) z[se] && (ye = tu(z[se])) && (xe && (xe += " "), xe += ye);
|
|
18481
|
+
} else for (ye in z) z[ye] && (xe && (xe += " "), xe += ye);
|
|
18482
18482
|
return xe;
|
|
18483
18483
|
}
|
|
18484
18484
|
function Ni() {
|
|
18485
|
-
for (var z, se,
|
|
18485
|
+
for (var z, se, ye = 0, xe = "", Ve = arguments.length; ye < Ve; ye++) (z = arguments[ye]) && (se = tu(z)) && (xe && (xe += " "), xe += se);
|
|
18486
18486
|
return xe;
|
|
18487
18487
|
}
|
|
18488
18488
|
const uf = (z) => /* @__PURE__ */ ve("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...z, children: /* @__PURE__ */ ve("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.8 3.6C9.79288 3.6 10.6 2.79288 10.6 1.8C10.6 0.80712 9.79288 0 8.8 0C7.80712 0 7 0.80712 7 1.8C7 2.79288 7.80712 3.6 8.8 3.6ZM10.6 8.99999C10.6 9.99287 9.79288 10.8 8.8 10.8C7.80712 10.8 7 9.99287 7 8.99999C7 8.00711 7.80712 7.19999 8.8 7.19999C9.79288 7.19999 10.6 8.00711 10.6 8.99999ZM10.6 16.2C10.6 17.1929 9.79288 18 8.8 18C7.80712 18 7 17.1929 7 16.2C7 15.2071 7.80712 14.4 8.8 14.4C9.79288 14.4 10.6 15.2071 10.6 16.2Z", fill: "currentColor" }) }), lf = (z) => /* @__PURE__ */ ve("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...z, children: /* @__PURE__ */ ve("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.1074 16.8677C12.8638 16.8677 11.8524 15.8563 11.8524 14.6127C11.8524 14.4154 11.8862 14.2271 11.9336 14.0444C12.0317 13.6701 12.22 13.3318 12.4804 13.059C12.8908 12.6294 13.467 12.3576 14.1074 12.3576C15.3511 12.3576 16.3625 13.369 16.3625 14.6127C16.3625 15.8563 15.3511 16.8677 14.1074 16.8677ZM4.38257 11.2301C3.13891 11.2301 2.12752 10.2187 2.12752 8.97507C2.12752 7.73141 3.13891 6.72002 4.38257 6.72002C5.01623 6.72002 5.58676 6.98386 5.99718 7.40556C6.25989 7.67616 6.44819 8.01329 6.54966 8.38763C6.60153 8.57592 6.63761 8.76986 6.63761 8.97507C6.63761 9.2017 6.59364 9.41818 6.53049 9.62452C6.41887 9.99435 6.22155 10.327 5.94982 10.5908C5.54391 10.9843 4.99256 11.2301 4.38257 11.2301ZM11.8524 3.38257C11.8524 2.13891 12.8638 1.12753 14.1074 1.12753C15.3511 1.12753 16.3625 2.13891 16.3625 3.38257C16.3625 4.62622 15.3511 5.63761 14.1074 5.63761C13.4749 5.63761 12.9055 5.3749 12.4962 4.95546C12.2324 4.68485 12.0429 4.34773 11.9415 3.97339C11.8896 3.78397 11.8524 3.5889 11.8524 3.38257ZM14.1074 11.2301C13.0498 11.2301 12.1151 11.7273 11.495 12.4907L7.52722 10.1996C7.67605 9.81846 7.76513 9.40804 7.76513 8.97507C7.76513 8.56465 7.68056 8.17678 7.54639 7.8126L11.5108 5.5226C12.132 6.27466 13.0588 6.76513 14.1074 6.76513C15.9724 6.76513 17.49 5.24748 17.49 3.38256C17.49 1.51764 15.9724 0 14.1074 0C12.2425 0 10.7249 1.51764 10.7249 3.38256C10.7249 3.79411 10.8094 4.18423 10.9447 4.54842L6.9815 6.83729C6.36136 6.08411 5.43341 5.59251 4.38256 5.59251C2.51764 5.59251 1 7.11015 1 8.97507C1 10.84 2.51764 12.3576 4.38256 12.3576C5.40974 12.3576 6.32077 11.8875 6.94091 11.1625L10.9368 13.4694C10.8072 13.829 10.7249 14.2102 10.7249 14.6127C10.7249 16.4776 12.2425 17.9952 14.1074 17.9952C15.9724 17.9952 17.49 16.4776 17.49 14.6127C17.49 12.7478 15.9724 11.2301 14.1074 11.2301Z", fill: "currentColor" }) }), cf = (z) => /* @__PURE__ */ ve("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...z, children: /* @__PURE__ */ ve("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.7647 16.9412H2.05882V1.05883H10.5294V5.29412H14.7647V16.9412ZM11.5882 1.278L14.5455 4.2353H11.5882V1.278ZM15.3587 3.55129L12.2722 0.464824C11.9715 0.165176 11.5724 0 11.1488 0H1V18H15.8235V4.67471C15.8235 4.25118 15.6584 3.852 15.3587 3.55129ZM1 0H15.8235V18H1V0ZM1 18H15.8235V0H1V18ZM4.17649 5.29412H8.41178V4.23529H4.17649V5.29412ZM4.17649 9.52941H10.5294V8.47059H4.17649V9.52941ZM4.17649 13.7647H8.41178V12.7059H4.17649V13.7647ZM4.17649 7.41177H12.6471V6.35294H4.17649V7.41177ZM4.17649 11.6471H11.5883V10.5882H4.17649V11.6471Z", fill: "currentColor" }) }), ff = (z) => /* @__PURE__ */ ve("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...z, children: /* @__PURE__ */ ve("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.30365 10.9535V0H9.3637V10.9535L12.6986 7.61855L13.4491 8.368L8.83261 12.9824L4.21823 8.368L4.96875 7.61855L8.30365 10.9535ZM3.77376 16.94H13.9354L16.9607 13.9146L17.7091 14.6651L14.3742 18H3.3349L0 14.6651L0.749452 13.9146L3.77376 16.94Z", fill: "currentColor" }) }), nu = (z) => /* @__PURE__ */ ve("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...z, children: /* @__PURE__ */ ve("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.8234 16.4118C14.8234 16.7029 14.5852 16.9412 14.294 16.9412H3.70577C3.41459 16.9412 3.17636 16.7029 3.17636 16.4118V5.29412H2.11753V16.4118C2.11753 17.2874 2.83012 18 3.70577 18H14.294C15.1697 18 15.8822 17.2874 15.8822 16.4118V5.29412H14.8234V16.4118ZM6.35284 14.8235H7.41166V6.35294H6.35284V14.8235ZM10.5881 14.8235H11.6469V6.35294H10.5881V14.8235ZM12.5682 3.17647L11.4099 0H6.51176L5.35553 3.17647H0V4.23529H18V3.17647H12.5682ZM6.48105 3.17647L7.25293 1.05882H10.6698L11.4416 3.17647H6.48105Z", fill: "currentColor" }) }), df = (z) => /* @__PURE__ */ ve("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...z, children: /* @__PURE__ */ ve("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M16.9412 15.2941C16.9412 15.5853 16.704 15.8235 16.4118 15.8235H1.58823C1.296 15.8235 1.05882 15.5853 1.05882 15.2941V6.82353C1.05882 6.53235 1.296 6.29412 1.58823 6.29412H16.4118C16.704 6.29412 16.9412 6.53235 16.9412 6.82353V15.2941ZM16.4118 5.23529H9.57494C9.71471 4.42 10.1933 4.17118 10.8254 3.85565C11.6629 3.43741 12.7059 2.91541 12.7059 1H11.6471C11.6471 2.26106 11.1039 2.53212 10.3511 2.90906C9.59824 3.28494 8.68659 3.75506 8.50871 5.23529H1.58824C0.712588 5.23529 0 5.94788 0 6.82353V15.2941C0 16.1698 0.712588 16.8824 1.58824 16.8824H16.4118C17.2874 16.8824 18 16.1698 18 15.2941V6.82353C18 5.94788 17.2874 5.23529 16.4118 5.23529ZM11.1177 11.5882H6.88236C6.59013 11.5882 6.35295 11.8254 6.35295 12.1176V13.1765C6.35295 13.4687 6.59013 13.7059 6.88236 13.7059H11.1177C11.4099 13.7059 11.6471 13.4687 11.6471 13.1765V12.1176C11.6471 11.8254 11.4099 11.5882 11.1177 11.5882ZM14.2941 11.5882H13.2353C12.943 11.5882 12.7059 11.8254 12.7059 12.1176V13.1765C12.7059 13.4687 12.943 13.7059 13.2353 13.7059H14.2941C14.5863 13.7059 14.8235 13.4687 14.8235 13.1765V12.1176C14.8235 11.8254 14.5863 11.5882 14.2941 11.5882ZM4.76472 11.5882H3.7059C3.41366 11.5882 3.17649 11.8254 3.17649 12.1176V13.1765C3.17649 13.4687 3.41366 13.7059 3.7059 13.7059H4.76472C5.05696 13.7059 5.29413 13.4687 5.29413 13.1765V12.1176C5.29413 11.8254 5.05696 11.5882 4.76472 11.5882ZM4.76472 8.41176H3.7059C3.41366 8.41176 3.17649 8.64894 3.17649 8.94118V10C3.17649 10.2922 3.41366 10.5294 3.7059 10.5294H4.76472C5.05696 10.5294 5.29413 10.2922 5.29413 10V8.94118C5.29413 8.64894 5.05696 8.41176 4.76472 8.41176ZM6.88236 10.5294H7.94118C8.23342 10.5294 8.4706 10.2922 8.4706 10V8.94118C8.4706 8.64894 8.23342 8.41176 7.94118 8.41176H6.88236C6.59013 8.41176 6.35295 8.64894 6.35295 8.94118V10C6.35295 10.2922 6.59013 10.5294 6.88236 10.5294ZM11.1176 8.41176H10.0588C9.76658 8.41176 9.52941 8.64894 9.52941 8.94118V10C9.52941 10.2922 9.76658 10.5294 10.0588 10.5294H11.1176C11.4099 10.5294 11.6471 10.2922 11.6471 10V8.94118C11.6471 8.64894 11.4099 8.41176 11.1176 8.41176ZM14.2941 8.41176H13.2353C12.943 8.41176 12.7059 8.64894 12.7059 8.94118V10C12.7059 10.2922 12.943 10.5294 13.2353 10.5294H14.2941C14.5863 10.5294 14.8235 10.2922 14.8235 10V8.94118C14.8235 8.64894 14.5863 8.41176 14.2941 8.41176Z", fill: "currentColor" }) });
|
|
@@ -18501,13 +18501,13 @@ function mf() {
|
|
|
18501
18501
|
function pf(z) {
|
|
18502
18502
|
return typeof z != "string";
|
|
18503
18503
|
}
|
|
18504
|
-
function yf(z, se,
|
|
18504
|
+
function yf(z, se, ye) {
|
|
18505
18505
|
const xe = [];
|
|
18506
18506
|
return mf() || xe.push({
|
|
18507
18507
|
id: "keyboard-shortcuts",
|
|
18508
18508
|
text: se,
|
|
18509
18509
|
icon: "shortcuts",
|
|
18510
|
-
onClick:
|
|
18510
|
+
onClick: ye,
|
|
18511
18511
|
order: 0
|
|
18512
18512
|
}), xe.concat(z).sort((bt, Ce) => (bt.order ?? 1) - (Ce.order ?? 1));
|
|
18513
18513
|
}
|
|
@@ -18519,10 +18519,10 @@ const _f = {
|
|
|
18519
18519
|
shortcuts: /* @__PURE__ */ ve(df, {})
|
|
18520
18520
|
};
|
|
18521
18521
|
function Ef({ openShortcuts: z, shouldFocus: se }) {
|
|
18522
|
-
const [
|
|
18523
|
-
xe(!
|
|
18522
|
+
const [ye, xe] = gr(!1), [Ve, bt] = gr(null), Ce = wr(), Ee = Jn(), C = () => {
|
|
18523
|
+
xe(!ye), Ce.globalKeysDisabled.set(!ye);
|
|
18524
18524
|
}, ne = pr(null), E = pr([]), { refs: t, floatingStyles: e, context: p } = ha({
|
|
18525
|
-
open:
|
|
18525
|
+
open: ye,
|
|
18526
18526
|
onOpenChange: C,
|
|
18527
18527
|
whileElementsMounted: ma,
|
|
18528
18528
|
placement: "bottom-end",
|
|
@@ -18550,7 +18550,7 @@ function Ef({ openShortcuts: z, shouldFocus: se }) {
|
|
|
18550
18550
|
),
|
|
18551
18551
|
[Ee.kebabMenuElements, S, z]
|
|
18552
18552
|
);
|
|
18553
|
-
return x.length > 0 ? /* @__PURE__ */ sn(
|
|
18553
|
+
return x.length > 0 ? /* @__PURE__ */ sn(ii, { children: [
|
|
18554
18554
|
/* @__PURE__ */ ve(
|
|
18555
18555
|
"button",
|
|
18556
18556
|
{
|
|
@@ -18558,7 +18558,7 @@ function Ef({ openShortcuts: z, shouldFocus: se }) {
|
|
|
18558
18558
|
type: "button",
|
|
18559
18559
|
"aria-label": S("KEBAB_MENU", { title: Ee.title }),
|
|
18560
18560
|
"aria-haspopup": "true",
|
|
18561
|
-
"aria-expanded":
|
|
18561
|
+
"aria-expanded": ye,
|
|
18562
18562
|
className: Ni(Br.controlsButton, Br.kebabMenuButton),
|
|
18563
18563
|
ref: o,
|
|
18564
18564
|
...n({
|
|
@@ -18567,7 +18567,7 @@ function Ef({ openShortcuts: z, shouldFocus: se }) {
|
|
|
18567
18567
|
children: /* @__PURE__ */ ve(uf, {})
|
|
18568
18568
|
}
|
|
18569
18569
|
),
|
|
18570
|
-
|
|
18570
|
+
ye && /* @__PURE__ */ ve(co, { context: p, guards: !1, children: /* @__PURE__ */ sn(
|
|
18571
18571
|
"div",
|
|
18572
18572
|
{
|
|
18573
18573
|
id: "kebab-menu",
|
|
@@ -18614,14 +18614,14 @@ function Ef({ openShortcuts: z, shouldFocus: se }) {
|
|
|
18614
18614
|
] }) : null;
|
|
18615
18615
|
}
|
|
18616
18616
|
function vf() {
|
|
18617
|
-
const z = wr(), [se,
|
|
18618
|
-
|
|
18617
|
+
const z = wr(), [se, ye] = gr(!1), xe = ga(), Ve = pr(!1), bt = pr(!1), Ce = qn(() => {
|
|
18618
|
+
ye(!0), requestAnimationFrame(() => {
|
|
18619
18619
|
z.interactionsDisabled.set(!0);
|
|
18620
18620
|
});
|
|
18621
18621
|
const C = xe.getPlayer();
|
|
18622
18622
|
C != null && C.state.playing && (Ve.current = !0, xe.pause()), bt.current = !0;
|
|
18623
18623
|
}, [xe, z]), Ee = qn(() => {
|
|
18624
|
-
|
|
18624
|
+
ye(!1), z.interactionsDisabled.set(!1), Ve.current && (Ve.current = !1, xe.play());
|
|
18625
18625
|
}, [xe, z]);
|
|
18626
18626
|
return se ? /* @__PURE__ */ ve(sf, { onClose: Ee }) : /* @__PURE__ */ ve("div", { className: Br.controlsOverlay, children: /* @__PURE__ */ ve(
|
|
18627
18627
|
Ef,
|
|
@@ -18639,13 +18639,13 @@ const ru = (z) => /* @__PURE__ */ sn("svg", { width: 24, height: 24, viewBox: "0
|
|
|
18639
18639
|
/* @__PURE__ */ ve("g", { clipPath: "url(#clip0_149_104406)", children: /* @__PURE__ */ ve("path", { d: "M21.3333 0H2.66666C1.18666 0 0 1.35 0 3V21C0 22.65 1.18666 24 2.66666 24H21.3333C22.8 24 24 22.65 24 21V3C24 1.35 22.8 0 21.3333 0ZM10.6667 10.6667H8.66666V10H6V14H8.66666V13.3333H10.6667V14.6667C10.6667 15.4 10.0667 16 9.33334 16H5.33334C4.6 16 4 15.4 4 14.6667V9.33334C4 8.6 4.6 8 5.33334 8H9.33334C10.0667 8 10.6667 8.6 10.6667 9.33334V10.6667ZM20.0042 10.6667H18.0042V10H15.3375V14H18.0042V13.3333H20.0042V14.6667C20.0042 15.4 19.4042 16 18.6708 16H14.6708C13.9375 16 13.3375 15.4 13.3375 14.6667V9.33334C13.3375 8.6 13.9375 8 14.6708 8H18.6708C19.4042 8 20.0042 8.6 20.0042 9.33334V10.6667Z", fill: "currentColor" }) })
|
|
18640
18640
|
] });
|
|
18641
18641
|
function Tf() {
|
|
18642
|
-
const z = ga(), se =
|
|
18642
|
+
const z = ga(), se = Yn("textTrack"), ye = Yn("hasCaptions"), xe = se && pc(se), { t: Ve } = Hn(), bt = qn(
|
|
18643
18643
|
(Ce) => {
|
|
18644
18644
|
z.toggleCaptions(Ce.nativeEvent);
|
|
18645
18645
|
},
|
|
18646
18646
|
[z]
|
|
18647
18647
|
);
|
|
18648
|
-
return
|
|
18648
|
+
return ye ? /* @__PURE__ */ ve(
|
|
18649
18649
|
"button",
|
|
18650
18650
|
{
|
|
18651
18651
|
type: "button",
|
|
@@ -18661,11 +18661,11 @@ const bf = "_captions_guhpx_1", Sf = {
|
|
|
18661
18661
|
captions: bf
|
|
18662
18662
|
}, Af = (z, se) => z ? se.top : se.bottom;
|
|
18663
18663
|
function au({ captions: z }) {
|
|
18664
|
-
const { captionOffsetOverride: se, controlsLayout:
|
|
18664
|
+
const { captionOffsetOverride: se, controlsLayout: ye } = Jn(), xe = or("captionPositionOnTop"), Ve = or("captionsInvertColors"), bt = or("captionsFontSizeMultiplier"), Ce = Af(
|
|
18665
18665
|
xe,
|
|
18666
18666
|
se ?? {}
|
|
18667
18667
|
);
|
|
18668
|
-
return /* @__PURE__ */ sn(
|
|
18668
|
+
return /* @__PURE__ */ sn(ii, { children: [
|
|
18669
18669
|
z.map((Ee) => /* @__PURE__ */ ve(
|
|
18670
18670
|
yc,
|
|
18671
18671
|
{
|
|
@@ -18688,60 +18688,60 @@ function au({ captions: z }) {
|
|
|
18688
18688
|
"--captions-flex-direction": xe ? "column" : "column-reverse",
|
|
18689
18689
|
"--captions-color": Ve ? "rgba(22, 22, 22)" : "white",
|
|
18690
18690
|
"--captions-background-color": Ve ? "rgba(255, 255, 255, 0.75)" : "rgba(22, 22, 22, 0.75)",
|
|
18691
|
-
"--captions-fullscreen-offset":
|
|
18691
|
+
"--captions-fullscreen-offset": ye === "normal" ? "5.5rem" : "4rem"
|
|
18692
18692
|
},
|
|
18693
18693
|
children: /* @__PURE__ */ ve(_c, { className: Sf.captions })
|
|
18694
18694
|
}
|
|
18695
18695
|
) : null
|
|
18696
18696
|
] });
|
|
18697
18697
|
}
|
|
18698
|
-
const
|
|
18698
|
+
const vi = [0.5, 0.75, 1, 1.25, 1.5, 2], If = [0.5, 1, 2, 3, 4], Rf = 5, ho = "-ytb", wf = (z) => {
|
|
18699
18699
|
const [, se] = gr({});
|
|
18700
18700
|
return Rr(() => {
|
|
18701
|
-
let
|
|
18701
|
+
let ye = [];
|
|
18702
18702
|
return {
|
|
18703
18703
|
add(xe) {
|
|
18704
|
-
|
|
18704
|
+
ye.length >= z && ye.shift(), ye.push(xe), se({});
|
|
18705
18705
|
},
|
|
18706
18706
|
remove(xe) {
|
|
18707
|
-
|
|
18707
|
+
ye = ye.filter((Ve) => Ve !== xe), se({});
|
|
18708
18708
|
},
|
|
18709
18709
|
clear() {
|
|
18710
|
-
|
|
18710
|
+
ye = [], se({});
|
|
18711
18711
|
},
|
|
18712
18712
|
map(xe) {
|
|
18713
|
-
return
|
|
18713
|
+
return ye.map(xe);
|
|
18714
18714
|
}
|
|
18715
18715
|
};
|
|
18716
18716
|
}, []);
|
|
18717
|
-
}, Cf = (z, se,
|
|
18717
|
+
}, Cf = (z, se, ye) => {
|
|
18718
18718
|
let xe = !1;
|
|
18719
18719
|
return (Ve) => {
|
|
18720
18720
|
const bt = Ve.detail.currentTime;
|
|
18721
|
-
bt >= z.timestamp && bt < z.timestamp + se && !xe && (
|
|
18721
|
+
bt >= z.timestamp && bt < z.timestamp + se && !xe && (ye.add(z), xe = !0), (bt < z.timestamp || bt >= z.timestamp + se) && xe && (ye.remove(z), xe = !1);
|
|
18722
18722
|
};
|
|
18723
18723
|
}, Nf = (z, se = 5) => {
|
|
18724
|
-
const
|
|
18724
|
+
const ye = kr(), xe = wf(se);
|
|
18725
18725
|
return Fr(() => {
|
|
18726
|
-
if (!
|
|
18726
|
+
if (!ye)
|
|
18727
18727
|
return;
|
|
18728
18728
|
const Ve = new AbortController();
|
|
18729
18729
|
return requestAnimationFrame(() => {
|
|
18730
18730
|
for (const bt of z) {
|
|
18731
18731
|
const Ce = Cf(bt, Rf, xe);
|
|
18732
|
-
|
|
18732
|
+
ye.addEventListener("time-update", Ce, {
|
|
18733
18733
|
signal: Ve.signal
|
|
18734
18734
|
});
|
|
18735
18735
|
}
|
|
18736
|
-
|
|
18736
|
+
ye.dispatchEvent(
|
|
18737
18737
|
new CustomEvent("time-update", {
|
|
18738
|
-
detail: { currentTime:
|
|
18738
|
+
detail: { currentTime: ye.currentTime }
|
|
18739
18739
|
})
|
|
18740
18740
|
);
|
|
18741
18741
|
}), () => {
|
|
18742
18742
|
Ve.abort(), xe.clear();
|
|
18743
18743
|
};
|
|
18744
|
-
}, [
|
|
18744
|
+
}, [ye, xe, z]), xe;
|
|
18745
18745
|
}, Df = "_comments-overlay_z1669_1", Of = "_comments-container_z1669_12", Mf = "_comment_z1669_1", Lf = "_comment-text_z1669_55", Pf = "_comment-author-avatar_z1669_75", xf = "_comment-author-name_z1669_99", ri = {
|
|
18746
18746
|
"comments-overlay": "_comments-overlay_z1669_1",
|
|
18747
18747
|
commentsOverlay: Df,
|
|
@@ -18774,8 +18774,8 @@ function Ff({ comment: z }) {
|
|
|
18774
18774
|
}
|
|
18775
18775
|
const kf = 4;
|
|
18776
18776
|
function Zf({ comments: z }) {
|
|
18777
|
-
const { controlsLayout: se } = Jn(),
|
|
18778
|
-
return z.length > 0 &&
|
|
18777
|
+
const { controlsLayout: se } = Jn(), ye = or("commentsEnabled"), xe = or("captionPositionOnTop"), Ve = Nf(z, kf), bt = !!Yn("textTrack"), Ce = Ve.map((Ee) => /* @__PURE__ */ ve(Ff, { comment: Ee }, Ee.id));
|
|
18778
|
+
return z.length > 0 && ye ? /* @__PURE__ */ ve(
|
|
18779
18779
|
"div",
|
|
18780
18780
|
{
|
|
18781
18781
|
className: ri.commentsOverlay,
|
|
@@ -18812,13 +18812,13 @@ const Bf = (z) => /* @__PURE__ */ ve("svg", { width: 24, height: 24, viewBox: "0
|
|
|
18812
18812
|
menuBackButton: Qf,
|
|
18813
18813
|
arrow: Xf
|
|
18814
18814
|
};
|
|
18815
|
-
function
|
|
18815
|
+
function ai({
|
|
18816
18816
|
noBackButton: z,
|
|
18817
18817
|
heading: se,
|
|
18818
|
-
children:
|
|
18818
|
+
children: ye
|
|
18819
18819
|
}) {
|
|
18820
18820
|
const xe = Wr(), { t: Ve } = Hn();
|
|
18821
|
-
return /* @__PURE__ */ sn(
|
|
18821
|
+
return /* @__PURE__ */ sn(ii, { children: [
|
|
18822
18822
|
!z && /* @__PURE__ */ sn(
|
|
18823
18823
|
"button",
|
|
18824
18824
|
{
|
|
@@ -18842,7 +18842,7 @@ function ii({
|
|
|
18842
18842
|
children: se
|
|
18843
18843
|
}
|
|
18844
18844
|
),
|
|
18845
|
-
|
|
18845
|
+
ye
|
|
18846
18846
|
] });
|
|
18847
18847
|
}
|
|
18848
18848
|
const $f = (z) => /* @__PURE__ */ ve("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...z, children: /* @__PURE__ */ ve("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6 3.03704L7.03704 2L14.037 9L7.03704 16L6 14.963L11.963 9L6 3.03704Z", fill: "currentColor" }) }), Jf = "_menu-hint_t7ne3_1", ed = "_menu-button_t7ne3_5", td = "_menu-label_t7ne3_41", nd = "_menu-icon_t7ne3_46", sa = {
|
|
@@ -18858,7 +18858,7 @@ const $f = (z) => /* @__PURE__ */ ve("svg", { width: 18, height: 18, viewBox: "0
|
|
|
18858
18858
|
function Ti({
|
|
18859
18859
|
label: z,
|
|
18860
18860
|
hint: se,
|
|
18861
|
-
onClick:
|
|
18861
|
+
onClick: ye,
|
|
18862
18862
|
Icon: xe,
|
|
18863
18863
|
disabled: Ve = !1
|
|
18864
18864
|
}) {
|
|
@@ -18870,7 +18870,7 @@ function Ti({
|
|
|
18870
18870
|
"aria-haspopup": Ve ? void 0 : "true",
|
|
18871
18871
|
disabled: Ve,
|
|
18872
18872
|
tabIndex: -1,
|
|
18873
|
-
onClick:
|
|
18873
|
+
onClick: ye,
|
|
18874
18874
|
className: sa.menuButton,
|
|
18875
18875
|
children: [
|
|
18876
18876
|
xe && /* @__PURE__ */ ve(xe, { className: sa.menuIcon }),
|
|
@@ -18883,14 +18883,14 @@ function Ti({
|
|
|
18883
18883
|
}
|
|
18884
18884
|
const rd = (z) => /* @__PURE__ */ ve("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...z, children: /* @__PURE__ */ ve("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.42229 2.82911C4.71149 1.83006 6.23876 1.19768 7.8383 1L7.96797 2.05432C6.55867 2.22862 5.21101 2.7866 4.07273 3.66874L3.42229 2.82911ZM5.44493 6.71393L9.49745 10.7665L17.0924 3.1705L17.8438 3.92297L9.49745 12.2693L4.69352 7.46534L5.44493 6.71393ZM17.932 8.83829C17.8618 8.27074 17.7364 7.70745 17.5589 7.16222L16.5482 7.49276C16.7055 7.97209 16.816 8.46843 16.8766 8.96689C16.917 9.29742 16.9372 9.6269 16.9372 9.96594C16.9372 10.305 16.917 10.6344 16.8777 10.9639C16.7033 12.3732 16.1454 13.7209 15.2632 14.8592L16.1029 15.5096C17.1019 14.2204 17.7343 12.6931 17.932 11.0925C17.9766 10.7205 18 10.3486 18 9.96594C18 9.58332 17.9766 9.21134 17.932 8.83829ZM1.05432 8.96795L0 8.83829C0.197684 7.23874 0.830061 5.71147 1.82911 4.42228L2.66874 5.07272C1.7866 6.211 1.22862 7.55865 1.05432 8.96795ZM0 11.0936C0.197684 12.6931 0.830061 14.2204 1.82911 15.5096L2.66874 14.8591C1.7866 13.7209 1.22862 12.3732 1.05432 10.9639L0 11.0936ZM10.0939 1.00011C11.6935 1.19673 13.2207 1.83017 14.5099 2.82922L13.8595 3.66884C12.7202 2.7867 11.3736 2.22872 9.96426 2.05442L10.0939 1.00011Z", fill: "currentColor" }) });
|
|
18885
18885
|
function id() {
|
|
18886
|
-
const z = Wr(), se = Jn(),
|
|
18886
|
+
const z = Wr(), se = Jn(), ye = Yn("playbackRate"), { t: xe } = Hn(), Ve = qn(() => {
|
|
18887
18887
|
z.setPage("speed");
|
|
18888
18888
|
}, [z]);
|
|
18889
18889
|
return /* @__PURE__ */ ve(
|
|
18890
18890
|
Ti,
|
|
18891
18891
|
{
|
|
18892
18892
|
label: xe("PLAYBACK_SPEED"),
|
|
18893
|
-
hint: `${
|
|
18893
|
+
hint: `${ye}x`,
|
|
18894
18894
|
onClick: Ve,
|
|
18895
18895
|
disabled: se.lockSpeed,
|
|
18896
18896
|
Icon: rd
|
|
@@ -18906,22 +18906,22 @@ const ad = (z) => /* @__PURE__ */ sn("svg", { width: 18, height: 18, viewBox: "0
|
|
|
18906
18906
|
] })
|
|
18907
18907
|
] });
|
|
18908
18908
|
function ou(z) {
|
|
18909
|
-
const { width: se, height:
|
|
18910
|
-
if (se >= 3800 ||
|
|
18909
|
+
const { width: se, height: ye } = z;
|
|
18910
|
+
if (se >= 3800 || ye >= 2100)
|
|
18911
18911
|
return "2160p";
|
|
18912
|
-
const xe =
|
|
18912
|
+
const xe = ye > se, Ve = xe ? se : ye, bt = xe ? ye : se;
|
|
18913
18913
|
return Ve >= 1400 || bt >= 2500 ? "1440p" : Ve >= 1e3 || bt >= 1800 ? "1080p" : Ve >= 700 || bt >= 1200 ? "720p" : Ve >= 460 || bt >= 800 ? "480p" : Ve >= 300 || bt >= 540 ? "360p" : Ve >= 200 || bt >= 360 ? "240p" : "144p";
|
|
18914
18914
|
}
|
|
18915
|
-
function od(z, se,
|
|
18916
|
-
return z ? se ? xe("AUTO_QUALITY", { quality:
|
|
18915
|
+
function od(z, se, ye, xe) {
|
|
18916
|
+
return z ? se ? xe("AUTO_QUALITY", { quality: ye }) : xe("AUTO") : ye;
|
|
18917
18917
|
}
|
|
18918
18918
|
function sd() {
|
|
18919
|
-
const z = Wr(), se =
|
|
18919
|
+
const z = Wr(), se = Yn("autoQuality"), ye = Yn("started"), xe = Yn("quality"), { t: Ve } = Hn(), bt = qn(() => {
|
|
18920
18920
|
z.setPage("quality");
|
|
18921
18921
|
}, [z]);
|
|
18922
18922
|
if (!xe)
|
|
18923
18923
|
return null;
|
|
18924
|
-
const Ce = ou(xe), Ee = od(se,
|
|
18924
|
+
const Ce = ou(xe), Ee = od(se, ye, Ce, Ve);
|
|
18925
18925
|
return /* @__PURE__ */ ve(
|
|
18926
18926
|
Ti,
|
|
18927
18927
|
{
|
|
@@ -18933,14 +18933,14 @@ function sd() {
|
|
|
18933
18933
|
);
|
|
18934
18934
|
}
|
|
18935
18935
|
function ud() {
|
|
18936
|
-
const z = Wr(), se =
|
|
18936
|
+
const z = Wr(), se = Yn("hasCaptions"), ye = Yn("textTrack"), { t: xe } = Hn(), Ve = qn(() => {
|
|
18937
18937
|
z.setPage("captions");
|
|
18938
18938
|
}, [z]);
|
|
18939
18939
|
return se ? /* @__PURE__ */ ve(
|
|
18940
18940
|
Ti,
|
|
18941
18941
|
{
|
|
18942
18942
|
label: xe("CAPTIONS"),
|
|
18943
|
-
hint: (
|
|
18943
|
+
hint: (ye == null ? void 0 : ye.label) ?? xe("OFF"),
|
|
18944
18944
|
onClick: Ve,
|
|
18945
18945
|
Icon: ru
|
|
18946
18946
|
}
|
|
@@ -18963,7 +18963,7 @@ const ld = (z) => /* @__PURE__ */ ve("svg", { width: 24, height: 24, viewBox: "0
|
|
|
18963
18963
|
function mo({
|
|
18964
18964
|
label: z,
|
|
18965
18965
|
checked: se = !1,
|
|
18966
|
-
onClick:
|
|
18966
|
+
onClick: ye,
|
|
18967
18967
|
Icon: xe
|
|
18968
18968
|
}) {
|
|
18969
18969
|
return /* @__PURE__ */ sn(
|
|
@@ -18973,7 +18973,7 @@ function mo({
|
|
|
18973
18973
|
role: "menuitemcheckbox",
|
|
18974
18974
|
"aria-label": z,
|
|
18975
18975
|
"aria-checked": se,
|
|
18976
|
-
onClick:
|
|
18976
|
+
onClick: ye,
|
|
18977
18977
|
tabIndex: -1,
|
|
18978
18978
|
children: [
|
|
18979
18979
|
xe && /* @__PURE__ */ ve(xe, { className: ni.menuIcon }),
|
|
@@ -18985,19 +18985,19 @@ function mo({
|
|
|
18985
18985
|
}
|
|
18986
18986
|
const yd = (z) => /* @__PURE__ */ ve("svg", { width: 18, height: 18, viewBox: "0 0 18 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...z, children: /* @__PURE__ */ ve("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1 0V12.7489H5.44V18L10.5007 12.7489H16.582V0H1ZM2 1H15.58V11.7339H9.98655L6.52667 15.25V11.7339H2V1ZM5.24963 5.35011H12.3323V4.24835H5.24963V5.35011ZM5.24963 8.18462H9.50067V7.08285H5.24963V8.18462Z", fill: "currentColor" }) });
|
|
18987
18987
|
function _d() {
|
|
18988
|
-
const { t: z } = Hn(), se = Jn(),
|
|
18988
|
+
const { t: z } = Hn(), se = Jn(), ye = wr(), xe = or("commentsEnabled");
|
|
18989
18989
|
return !se.forceComments && se.hasComments ? /* @__PURE__ */ ve(
|
|
18990
18990
|
mo,
|
|
18991
18991
|
{
|
|
18992
18992
|
Icon: yd,
|
|
18993
18993
|
label: z("COMMENTS"),
|
|
18994
|
-
onClick: () =>
|
|
18994
|
+
onClick: () => ye.commentsEnabled.set(!xe),
|
|
18995
18995
|
checked: xe
|
|
18996
18996
|
}
|
|
18997
18997
|
) : null;
|
|
18998
18998
|
}
|
|
18999
18999
|
function Ed() {
|
|
19000
|
-
return /* @__PURE__ */ sn(
|
|
19000
|
+
return /* @__PURE__ */ sn(ai, { noBackButton: !0, children: [
|
|
19001
19001
|
/* @__PURE__ */ ve(id, {}),
|
|
19002
19002
|
/* @__PURE__ */ ve(ud, {}),
|
|
19003
19003
|
/* @__PURE__ */ ve(_d, {}),
|
|
@@ -19008,7 +19008,7 @@ const vd = (z) => /* @__PURE__ */ ve("svg", { width: 18, height: 18, viewBox: "0
|
|
|
19008
19008
|
function pa({
|
|
19009
19009
|
selected: z,
|
|
19010
19010
|
label: se,
|
|
19011
|
-
secondaryLabel:
|
|
19011
|
+
secondaryLabel: ye,
|
|
19012
19012
|
onClick: xe
|
|
19013
19013
|
}) {
|
|
19014
19014
|
return /* @__PURE__ */ sn(
|
|
@@ -19024,7 +19024,7 @@ function pa({
|
|
|
19024
19024
|
/* @__PURE__ */ ve(vd, { className: xr.checkIcon }),
|
|
19025
19025
|
/* @__PURE__ */ sn("div", { className: xr.menuItemMultilineLabelWrapper, children: [
|
|
19026
19026
|
/* @__PURE__ */ ve("span", { className: xr.menuItemLabel, children: se }),
|
|
19027
|
-
|
|
19027
|
+
ye && /* @__PURE__ */ ve("span", { className: xr.menuItemSecondaryLabel, children: ye })
|
|
19028
19028
|
] })
|
|
19029
19029
|
]
|
|
19030
19030
|
}
|
|
@@ -19032,88 +19032,88 @@ function pa({
|
|
|
19032
19032
|
}
|
|
19033
19033
|
function Td() {
|
|
19034
19034
|
const z = Ec({
|
|
19035
|
-
rates:
|
|
19035
|
+
rates: vi,
|
|
19036
19036
|
normalLabel: "1x"
|
|
19037
19037
|
}), { t: se } = Hn();
|
|
19038
|
-
return /* @__PURE__ */ ve(
|
|
19038
|
+
return /* @__PURE__ */ ve(ai, { heading: se("PLAYBACK_SPEED"), children: z.map(({ value: ye, label: xe, select: Ve, selected: bt }) => /* @__PURE__ */ ve(
|
|
19039
19039
|
pa,
|
|
19040
19040
|
{
|
|
19041
19041
|
selected: bt,
|
|
19042
19042
|
onClick: () => Ve(),
|
|
19043
19043
|
label: xe
|
|
19044
19044
|
},
|
|
19045
|
-
|
|
19045
|
+
ye
|
|
19046
19046
|
)) });
|
|
19047
19047
|
}
|
|
19048
19048
|
function bd() {
|
|
19049
|
-
const z = Wr(), { t: se } = Hn(),
|
|
19049
|
+
const z = Wr(), { t: se } = Hn(), ye = qn(() => {
|
|
19050
19050
|
z.setPage("captionManage");
|
|
19051
19051
|
}, [z]);
|
|
19052
|
-
return /* @__PURE__ */ ve(Ti, { label: se("CAPTIONS_MANAGE"), onClick:
|
|
19052
|
+
return /* @__PURE__ */ ve(Ti, { label: se("CAPTIONS_MANAGE"), onClick: ye });
|
|
19053
19053
|
}
|
|
19054
19054
|
function Sd() {
|
|
19055
|
-
const { t: z } = Hn(), se = Wr(),
|
|
19055
|
+
const { t: z } = Hn(), se = Wr(), ye = or("captionsFontSizeMultiplier"), xe = qn(() => {
|
|
19056
19056
|
se.setPage("captionFontSize");
|
|
19057
19057
|
}, [se]);
|
|
19058
19058
|
return /* @__PURE__ */ ve(
|
|
19059
19059
|
Ti,
|
|
19060
19060
|
{
|
|
19061
19061
|
label: z("CAPTION_FONT_SIZE"),
|
|
19062
|
-
hint: `${
|
|
19062
|
+
hint: `${ye * 100}%`,
|
|
19063
19063
|
onClick: xe
|
|
19064
19064
|
}
|
|
19065
19065
|
);
|
|
19066
19066
|
}
|
|
19067
19067
|
function Ad() {
|
|
19068
|
-
const z = Wr(), se =
|
|
19068
|
+
const z = Wr(), se = Yn("textTrack"), { t: ye } = Hn(), { disableCaptionSettings: xe } = Jn(), Ve = qn(() => {
|
|
19069
19069
|
z.setPage("captionLanguage");
|
|
19070
19070
|
}, [z]);
|
|
19071
19071
|
return xe ? null : /* @__PURE__ */ ve(
|
|
19072
19072
|
Ti,
|
|
19073
19073
|
{
|
|
19074
|
-
label:
|
|
19075
|
-
hint: (se == null ? void 0 : se.label) ??
|
|
19074
|
+
label: ye("LANGUAGE"),
|
|
19075
|
+
hint: (se == null ? void 0 : se.label) ?? ye("OFF"),
|
|
19076
19076
|
onClick: Ve
|
|
19077
19077
|
}
|
|
19078
19078
|
);
|
|
19079
19079
|
}
|
|
19080
19080
|
function Id() {
|
|
19081
|
-
const { t: z } = Hn(), se = wr(),
|
|
19081
|
+
const { t: z } = Hn(), se = wr(), ye = or("captionPositionOnTop");
|
|
19082
19082
|
return /* @__PURE__ */ ve(
|
|
19083
19083
|
mo,
|
|
19084
19084
|
{
|
|
19085
19085
|
label: z("ON_TOP"),
|
|
19086
|
-
onClick: () => se.captionPositionOnTop.set(!
|
|
19087
|
-
checked:
|
|
19086
|
+
onClick: () => se.captionPositionOnTop.set(!ye),
|
|
19087
|
+
checked: ye
|
|
19088
19088
|
}
|
|
19089
19089
|
);
|
|
19090
19090
|
}
|
|
19091
19091
|
function Rd() {
|
|
19092
|
-
const { t: z } = Hn(), se = wr(),
|
|
19092
|
+
const { t: z } = Hn(), se = wr(), ye = or("captionsInvertColors");
|
|
19093
19093
|
return /* @__PURE__ */ ve(
|
|
19094
19094
|
mo,
|
|
19095
19095
|
{
|
|
19096
19096
|
label: z("INVERT_COLORS"),
|
|
19097
|
-
onClick: () => se.captionsInvertColors.set(!
|
|
19098
|
-
checked:
|
|
19097
|
+
onClick: () => se.captionsInvertColors.set(!ye),
|
|
19098
|
+
checked: ye
|
|
19099
19099
|
}
|
|
19100
19100
|
);
|
|
19101
19101
|
}
|
|
19102
19102
|
function wd() {
|
|
19103
|
-
const z = Jn(), se =
|
|
19104
|
-
|
|
19105
|
-
), { t: _e } = Hn();
|
|
19106
|
-
return /* @__PURE__ */ sn(ii, { heading: _e("CAPTIONS"), children: [
|
|
19103
|
+
const z = Jn(), { t: se } = Hn(), ye = Yn("textTrack");
|
|
19104
|
+
return /* @__PURE__ */ sn(ai, { heading: se("CAPTIONS"), children: [
|
|
19107
19105
|
/* @__PURE__ */ ve(Ad, {}),
|
|
19108
19106
|
/* @__PURE__ */ ve(Sd, {}),
|
|
19109
|
-
|
|
19110
|
-
|
|
19107
|
+
(ye == null ? void 0 : ye.sourceType) !== "youtube" && /* @__PURE__ */ sn(ii, { children: [
|
|
19108
|
+
/* @__PURE__ */ ve(Id, {}),
|
|
19109
|
+
/* @__PURE__ */ ve(Rd, {})
|
|
19110
|
+
] }),
|
|
19111
19111
|
z.onCaptionsDelete && /* @__PURE__ */ ve(bd, {})
|
|
19112
19112
|
] });
|
|
19113
19113
|
}
|
|
19114
19114
|
function Cd() {
|
|
19115
19115
|
const z = vc(), { t: se } = Hn();
|
|
19116
|
-
return /* @__PURE__ */ ve(
|
|
19116
|
+
return /* @__PURE__ */ ve(ai, { heading: se("CAPTIONS_LANGUAGE"), children: z.map(({ value: ye, label: xe, select: Ve, selected: bt, track: Ce }) => /* @__PURE__ */ ve(
|
|
19117
19117
|
pa,
|
|
19118
19118
|
{
|
|
19119
19119
|
selected: bt,
|
|
@@ -19121,22 +19121,22 @@ function Cd() {
|
|
|
19121
19121
|
label: xe,
|
|
19122
19122
|
secondaryLabel: (Ce == null ? void 0 : Ce.sourceType) === "youtube" ? "YouTube" : void 0
|
|
19123
19123
|
},
|
|
19124
|
-
`${
|
|
19124
|
+
`${ye}-${(Ce == null ? void 0 : Ce.language) || "und"}-${(Ce == null ? void 0 : Ce.sourceType) || "standard"}`
|
|
19125
19125
|
)) });
|
|
19126
19126
|
}
|
|
19127
19127
|
const Nd = (z) => z.map((se) => {
|
|
19128
|
-
const { language:
|
|
19129
|
-
return xe === "youtube" ? { ...se, language: `${
|
|
19128
|
+
const { language: ye, sourceType: xe } = se;
|
|
19129
|
+
return xe === "youtube" ? { ...se, language: `${ye}${ho}` } : se;
|
|
19130
19130
|
}), Dd = (z) => z ? z.replace(ho, "") : null;
|
|
19131
19131
|
function ua(z, se) {
|
|
19132
19132
|
if (!(z != null && z.contentWindow)) return;
|
|
19133
|
-
const
|
|
19133
|
+
const ye = se ? Dd(se) : null, xe = {
|
|
19134
19134
|
event: "command",
|
|
19135
19135
|
func: "setOption",
|
|
19136
19136
|
args: [
|
|
19137
19137
|
"captions",
|
|
19138
19138
|
"track",
|
|
19139
|
-
se ? { languageCode:
|
|
19139
|
+
se ? { languageCode: ye } : {}
|
|
19140
19140
|
]
|
|
19141
19141
|
};
|
|
19142
19142
|
z.contentWindow.postMessage(JSON.stringify(xe), "*");
|
|
@@ -19151,7 +19151,7 @@ const Us = {
|
|
|
19151
19151
|
function su(z, se) {
|
|
19152
19152
|
var xe;
|
|
19153
19153
|
if (!(z != null && z.contentWindow)) return;
|
|
19154
|
-
const
|
|
19154
|
+
const ye = {
|
|
19155
19155
|
event: "command",
|
|
19156
19156
|
func: "setOption",
|
|
19157
19157
|
args: [
|
|
@@ -19160,18 +19160,18 @@ function su(z, se) {
|
|
|
19160
19160
|
Us[se] !== void 0 ? Us[se] : 0
|
|
19161
19161
|
]
|
|
19162
19162
|
};
|
|
19163
|
-
(xe = z.contentWindow) == null || xe.postMessage(JSON.stringify(
|
|
19163
|
+
(xe = z.contentWindow) == null || xe.postMessage(JSON.stringify(ye), "*");
|
|
19164
19164
|
}
|
|
19165
19165
|
function Od() {
|
|
19166
|
-
const z = wr(), se =
|
|
19166
|
+
const z = wr(), se = or("captionsFontSizeMultiplier"), ye = or(
|
|
19167
19167
|
"youtubeEducationProvider"
|
|
19168
19168
|
), { t: xe } = Hn();
|
|
19169
|
-
return /* @__PURE__ */ ve(
|
|
19169
|
+
return /* @__PURE__ */ ve(ai, { heading: xe("CAPTION_FONT_SIZE"), children: If.map((Ve) => /* @__PURE__ */ ve(
|
|
19170
19170
|
pa,
|
|
19171
19171
|
{
|
|
19172
19172
|
selected: Ve === se,
|
|
19173
19173
|
onClick: () => {
|
|
19174
|
-
z.captionsFontSizeMultiplier.set(Ve),
|
|
19174
|
+
z.captionsFontSizeMultiplier.set(Ve), ye && su(ye.iframe, Ve);
|
|
19175
19175
|
},
|
|
19176
19176
|
label: `${Ve * 100}%`
|
|
19177
19177
|
},
|
|
@@ -19187,10 +19187,10 @@ const Wr = () => {
|
|
|
19187
19187
|
return z;
|
|
19188
19188
|
};
|
|
19189
19189
|
function Md() {
|
|
19190
|
-
const z = Wr(), se = Jn(), { t:
|
|
19190
|
+
const z = Wr(), se = Jn(), { t: ye } = Hn();
|
|
19191
19191
|
return Fr(() => {
|
|
19192
19192
|
se.captions.length === 0 && z.backToMain();
|
|
19193
|
-
}, [se.captions]), /* @__PURE__ */ ve(
|
|
19193
|
+
}, [se.captions]), /* @__PURE__ */ ve(ai, { heading: ye("CAPTIONS_MANAGE"), children: se.captions.map((xe) => /* @__PURE__ */ sn(
|
|
19194
19194
|
"button",
|
|
19195
19195
|
{
|
|
19196
19196
|
type: "button",
|
|
@@ -19203,15 +19203,15 @@ function Md() {
|
|
|
19203
19203
|
className: xr.menuItem,
|
|
19204
19204
|
children: [
|
|
19205
19205
|
/* @__PURE__ */ ve(nu, { className: xr.trashIcon }),
|
|
19206
|
-
/* @__PURE__ */ ve("span", { className: xr.menuItemLabel, children:
|
|
19206
|
+
/* @__PURE__ */ ve("span", { className: xr.menuItemLabel, children: ye("CAPTION_DELETE", { language: xe.label }) })
|
|
19207
19207
|
]
|
|
19208
19208
|
},
|
|
19209
19209
|
xe.language
|
|
19210
19210
|
)) });
|
|
19211
19211
|
}
|
|
19212
19212
|
function Ld() {
|
|
19213
|
-
const z =
|
|
19214
|
-
return /* @__PURE__ */ ve(
|
|
19213
|
+
const z = Yn("autoQuality"), se = Tc({ sort: "descending" }), { t: ye } = Hn();
|
|
19214
|
+
return /* @__PURE__ */ ve(ai, { heading: ye("QUALITY"), children: se.map(({ value: xe, select: Ve, selected: bt, label: Ce, quality: Ee }) => /* @__PURE__ */ ve(
|
|
19215
19215
|
pa,
|
|
19216
19216
|
{
|
|
19217
19217
|
selected: xe === "auto" && z || bt && !z,
|
|
@@ -19222,16 +19222,16 @@ function Ld() {
|
|
|
19222
19222
|
)) });
|
|
19223
19223
|
}
|
|
19224
19224
|
function Pd(z, se) {
|
|
19225
|
-
const
|
|
19225
|
+
const ye = Array.from(z.querySelectorAll("button")).filter(
|
|
19226
19226
|
(Ve) => !Ve.disabled
|
|
19227
|
-
), xe =
|
|
19228
|
-
return
|
|
19227
|
+
), xe = ye.indexOf(se);
|
|
19228
|
+
return ye[xe - 1] ?? null;
|
|
19229
19229
|
}
|
|
19230
19230
|
function xd(z, se) {
|
|
19231
|
-
const
|
|
19231
|
+
const ye = Array.from(z.querySelectorAll("button")).filter(
|
|
19232
19232
|
(Ve) => !Ve.disabled
|
|
19233
|
-
), xe =
|
|
19234
|
-
return
|
|
19233
|
+
), xe = ye.indexOf(se);
|
|
19234
|
+
return ye[xe + 1] ?? null;
|
|
19235
19235
|
}
|
|
19236
19236
|
function Bs(z) {
|
|
19237
19237
|
return z.querySelector("button");
|
|
@@ -19241,54 +19241,54 @@ function Gs(z) {
|
|
|
19241
19241
|
return se[se.length - 1] ?? null;
|
|
19242
19242
|
}
|
|
19243
19243
|
function Fd(z, se) {
|
|
19244
|
-
const
|
|
19244
|
+
const ye = pr(null), xe = Rr(
|
|
19245
19245
|
() => ({
|
|
19246
19246
|
Escape: z.toggle,
|
|
19247
19247
|
ArrowUp: () => {
|
|
19248
19248
|
const Ve = document.activeElement;
|
|
19249
|
-
if (Ve &&
|
|
19249
|
+
if (Ve && ye.current && ye.current.contains(Ve)) {
|
|
19250
19250
|
const bt = Pd(
|
|
19251
|
-
|
|
19251
|
+
ye.current,
|
|
19252
19252
|
Ve
|
|
19253
19253
|
);
|
|
19254
19254
|
if (bt)
|
|
19255
19255
|
bt.focus();
|
|
19256
19256
|
else {
|
|
19257
|
-
const Ce = Gs(
|
|
19257
|
+
const Ce = Gs(ye.current);
|
|
19258
19258
|
Ce == null || Ce.focus();
|
|
19259
19259
|
}
|
|
19260
|
-
} else if (
|
|
19261
|
-
const bt = Gs(
|
|
19260
|
+
} else if (ye.current) {
|
|
19261
|
+
const bt = Gs(ye.current);
|
|
19262
19262
|
bt == null || bt.focus();
|
|
19263
19263
|
}
|
|
19264
19264
|
},
|
|
19265
19265
|
ArrowDown: () => {
|
|
19266
19266
|
const Ve = document.activeElement;
|
|
19267
|
-
if (Ve &&
|
|
19267
|
+
if (Ve && ye.current && ye.current.contains(Ve)) {
|
|
19268
19268
|
const bt = xd(
|
|
19269
|
-
|
|
19269
|
+
ye.current,
|
|
19270
19270
|
Ve
|
|
19271
19271
|
);
|
|
19272
19272
|
if (bt)
|
|
19273
19273
|
bt.focus();
|
|
19274
19274
|
else {
|
|
19275
|
-
const Ce = Bs(
|
|
19275
|
+
const Ce = Bs(ye.current);
|
|
19276
19276
|
Ce == null || Ce.focus();
|
|
19277
19277
|
}
|
|
19278
|
-
} else if (
|
|
19279
|
-
const bt = Bs(
|
|
19278
|
+
} else if (ye.current) {
|
|
19279
|
+
const bt = Bs(ye.current);
|
|
19280
19280
|
bt == null || bt.focus();
|
|
19281
19281
|
}
|
|
19282
19282
|
},
|
|
19283
19283
|
ArrowRight: () => {
|
|
19284
19284
|
const Ve = document.activeElement;
|
|
19285
|
-
Ve && Ve.getAttribute("aria-haspopup") === "true" &&
|
|
19285
|
+
Ve && Ve.getAttribute("aria-haspopup") === "true" && ye.current && ye.current.contains(Ve) && Ve.click();
|
|
19286
19286
|
},
|
|
19287
19287
|
ArrowLeft: z.back
|
|
19288
19288
|
}),
|
|
19289
19289
|
[z]
|
|
19290
19290
|
);
|
|
19291
|
-
return go(xe, !0, se),
|
|
19291
|
+
return go(xe, !0, se), ye;
|
|
19292
19292
|
}
|
|
19293
19293
|
const uu = fa(null), kd = {
|
|
19294
19294
|
main: Ed,
|
|
@@ -19309,14 +19309,14 @@ const uu = fa(null), kd = {
|
|
|
19309
19309
|
}
|
|
19310
19310
|
};
|
|
19311
19311
|
function Ud() {
|
|
19312
|
-
const z = wr(), [se,
|
|
19313
|
-
Ve(!xe),
|
|
19312
|
+
const z = wr(), [se, ye] = gr(["main"]), [xe, Ve] = gr(!1), bt = qn(() => {
|
|
19313
|
+
Ve(!xe), ye(["main"]), z.globalKeysDisabled.set(!xe);
|
|
19314
19314
|
}, [xe]), Ce = qn((c) => {
|
|
19315
|
-
|
|
19315
|
+
ye((d) => d.concat(c));
|
|
19316
19316
|
}, []), Ee = qn(() => {
|
|
19317
|
-
|
|
19317
|
+
ye((c) => c.length > 1 ? c.slice(0, -1) : c);
|
|
19318
19318
|
}, []), C = qn(() => {
|
|
19319
|
-
|
|
19319
|
+
ye(["main"]);
|
|
19320
19320
|
}, []), ne = Rr(() => kd[se[se.length - 1]], [se]), { refs: E, floatingStyles: t, context: e } = ha({
|
|
19321
19321
|
open: xe,
|
|
19322
19322
|
onOpenChange: bt,
|
|
@@ -19343,7 +19343,7 @@ function Bd() {
|
|
|
19343
19343
|
const {
|
|
19344
19344
|
Page: z,
|
|
19345
19345
|
context: se,
|
|
19346
|
-
floatingStyles:
|
|
19346
|
+
floatingStyles: ye,
|
|
19347
19347
|
getFloatingProps: xe,
|
|
19348
19348
|
getReferenceProps: Ve,
|
|
19349
19349
|
open: bt,
|
|
@@ -19351,7 +19351,7 @@ function Bd() {
|
|
|
19351
19351
|
referenceRef: Ee,
|
|
19352
19352
|
contextValue: C
|
|
19353
19353
|
} = Ud(), { t: ne } = Hn();
|
|
19354
|
-
return /* @__PURE__ */ sn(
|
|
19354
|
+
return /* @__PURE__ */ sn(ii, { children: [
|
|
19355
19355
|
/* @__PURE__ */ ve(
|
|
19356
19356
|
"button",
|
|
19357
19357
|
{
|
|
@@ -19381,7 +19381,7 @@ function Bd() {
|
|
|
19381
19381
|
"aria-labelledby": "menu-heading",
|
|
19382
19382
|
className: xr.settingsMenu,
|
|
19383
19383
|
ref: Ce,
|
|
19384
|
-
style:
|
|
19384
|
+
style: ye,
|
|
19385
19385
|
...xe(),
|
|
19386
19386
|
children: /* @__PURE__ */ ve(uu.Provider, { value: C, children: /* @__PURE__ */ ve(z, {}) })
|
|
19387
19387
|
}
|
|
@@ -19447,18 +19447,18 @@ function Kd({ action: z }) {
|
|
|
19447
19447
|
}
|
|
19448
19448
|
}
|
|
19449
19449
|
function zd({ action: z }) {
|
|
19450
|
-
const { t: se } = Hn(),
|
|
19451
|
-
if (!
|
|
19450
|
+
const { t: se } = Hn(), ye = kr();
|
|
19451
|
+
if (!ye)
|
|
19452
19452
|
return null;
|
|
19453
19453
|
switch (z) {
|
|
19454
19454
|
case "captionsChange":
|
|
19455
|
-
return /* @__PURE__ */ ve("div", { className: Er.feedbackMessage, children:
|
|
19456
|
-
language:
|
|
19455
|
+
return /* @__PURE__ */ ve("div", { className: Er.feedbackMessage, children: ye.textTracks.selected ? se("CAPTION_LANGUAGE", {
|
|
19456
|
+
language: ye.textTracks.selected.label
|
|
19457
19457
|
}) : `${se("CAPTIONS")}: ${se("OFF")}` });
|
|
19458
19458
|
case "volumeChange":
|
|
19459
|
-
return /* @__PURE__ */ ve("div", { className: Er.feedbackMessage, children:
|
|
19459
|
+
return /* @__PURE__ */ ve("div", { className: Er.feedbackMessage, children: ye.muted || ye.volume === 0 ? se("MUTED") : se("VOLUME_VALUE", { volume: (ye.volume * 100).toFixed(0) }) });
|
|
19460
19460
|
case "playbackRateChange":
|
|
19461
|
-
return /* @__PURE__ */ ve("div", { className: Er.feedbackMessage, children: se("PLAYBACK_SPEED_MESSAGE", { speed:
|
|
19461
|
+
return /* @__PURE__ */ ve("div", { className: Er.feedbackMessage, children: se("PLAYBACK_SPEED_MESSAGE", { speed: ye.playbackRate }) });
|
|
19462
19462
|
case "seekForward":
|
|
19463
19463
|
return /* @__PURE__ */ ve("div", { className: Er.feedbackMessage, children: se("SEEK_FORWARD", { seconds: 5 }) });
|
|
19464
19464
|
case "seekForward10":
|
|
@@ -19483,8 +19483,8 @@ const Xd = (z) => /* @__PURE__ */ ve("svg", { width: 24, height: 24, viewBox: "0
|
|
|
19483
19483
|
fullScreenButton: Jd
|
|
19484
19484
|
};
|
|
19485
19485
|
function tg() {
|
|
19486
|
-
const z =
|
|
19487
|
-
return
|
|
19486
|
+
const z = Yn("fullscreen"), se = kr(), ye = Jn(), { t: xe } = Hn();
|
|
19487
|
+
return ye.hideFullScreen ? null : /* @__PURE__ */ ve(
|
|
19488
19488
|
"button",
|
|
19489
19489
|
{
|
|
19490
19490
|
role: "button",
|
|
@@ -19520,7 +19520,7 @@ function ug(z, se) {
|
|
|
19520
19520
|
return se ? "REPLAY" : z ? "PLAY" : "PAUSE";
|
|
19521
19521
|
}
|
|
19522
19522
|
function lg() {
|
|
19523
|
-
const z = kr(), se =
|
|
19523
|
+
const z = kr(), se = Yn("paused"), ye = Yn("ended"), { t: xe } = Hn(), Ve = pr(null), bt = sg(se, ye);
|
|
19524
19524
|
return z ? /* @__PURE__ */ ve(
|
|
19525
19525
|
"button",
|
|
19526
19526
|
{
|
|
@@ -19529,7 +19529,7 @@ function lg() {
|
|
|
19529
19529
|
type: "button",
|
|
19530
19530
|
"data-play-pause-button": "",
|
|
19531
19531
|
className: `controls-button ${og.playPauseButton}`,
|
|
19532
|
-
"aria-label": xe(ug(se,
|
|
19532
|
+
"aria-label": xe(ug(se, ye)),
|
|
19533
19533
|
onClick: () => {
|
|
19534
19534
|
z.paused ? z.remoteControl.play() : z.remoteControl.pause();
|
|
19535
19535
|
},
|
|
@@ -19542,23 +19542,23 @@ const cg = "_studio-player-sidebar_xamuy_13", fg = "_appear_xamuy_1", dg = {
|
|
|
19542
19542
|
studioPlayerSidebar: cg,
|
|
19543
19543
|
appear: fg
|
|
19544
19544
|
}, gg = (z) => {
|
|
19545
|
-
const [se,
|
|
19545
|
+
const [se, ye] = gr(!1);
|
|
19546
19546
|
Fr(() => {
|
|
19547
|
-
z && !se &&
|
|
19547
|
+
z && !se && ye(!0);
|
|
19548
19548
|
}, [z, se]);
|
|
19549
19549
|
const xe = qn(
|
|
19550
19550
|
(Ve) => {
|
|
19551
|
-
Ve.propertyName === "width" && Ve.type === "transitionend" &&
|
|
19551
|
+
Ve.propertyName === "width" && Ve.type === "transitionend" && ye(!1);
|
|
19552
19552
|
},
|
|
19553
19553
|
[]
|
|
19554
19554
|
);
|
|
19555
19555
|
return [se, xe];
|
|
19556
19556
|
};
|
|
19557
19557
|
function hg() {
|
|
19558
|
-
const { enableSidebar: z } = Jn(), se =
|
|
19558
|
+
const { enableSidebar: z } = Jn(), se = or("sidebarOpen"), [ye, xe] = gg(se), Ve = pr("details"), bt = qn((Ce) => {
|
|
19559
19559
|
Ve.current = Ce;
|
|
19560
19560
|
}, []);
|
|
19561
|
-
return z &&
|
|
19561
|
+
return z && ye ? /* @__PURE__ */ ve(
|
|
19562
19562
|
"aside",
|
|
19563
19563
|
{
|
|
19564
19564
|
onTransitionEnd: xe,
|
|
@@ -19579,7 +19579,7 @@ function hg() {
|
|
|
19579
19579
|
}
|
|
19580
19580
|
const mg = (z) => /* @__PURE__ */ ve("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...z, children: /* @__PURE__ */ ve("path", { d: "M10.5103 16H1.30225C0.584268 15.9998 -0.000287151 15.3679 -0.000488281 14.5889V1.41113C-0.000155536 0.633169 0.584349 0.000169112 1.30225 0H10.5103V16ZM14.6978 0C15.4156 0.00023285 16.0002 0.633208 16.0005 1.41113V14.5889C16.0003 15.3679 15.4157 15.9998 14.6978 16H11.4507V0H14.6978ZM2.91943 4.09766L6.82178 8.00098L2.91943 11.9033L3.79639 12.7793L8.57666 8.00098L3.79639 3.2207L2.91943 4.09766Z", fill: "currentColor" }) }), pg = (z) => /* @__PURE__ */ ve("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...z, children: /* @__PURE__ */ ve("path", { d: "M10.5103 16H1.30225C0.584268 15.9998 -0.000287151 15.3679 -0.000488281 14.5889V1.41113C-0.000155536 0.633169 0.584349 0.000169112 1.30225 0H10.5103V16ZM14.6978 0C15.4156 0.00023285 16.0002 0.633208 16.0005 1.41113V14.5889C16.0003 15.3679 15.4157 15.9998 14.6978 16H11.4507V0H14.6978ZM2.02979 8.00098L6.81006 12.7793L7.68701 11.9033L3.78467 8.00098L7.68701 4.09766L6.81006 3.2207L2.02979 8.00098Z", fill: "currentColor" }) });
|
|
19581
19581
|
function yg() {
|
|
19582
|
-
const z =
|
|
19582
|
+
const z = or("sidebarOpen"), se = wr(), { t: ye } = Hn();
|
|
19583
19583
|
return /* @__PURE__ */ ve(
|
|
19584
19584
|
"button",
|
|
19585
19585
|
{
|
|
@@ -19588,13 +19588,13 @@ function yg() {
|
|
|
19588
19588
|
onClick: () => {
|
|
19589
19589
|
se.sidebarOpen.set(!z);
|
|
19590
19590
|
},
|
|
19591
|
-
"aria-label":
|
|
19591
|
+
"aria-label": ye(z ? "SIDEBAR_CLOSE" : "SIDEBAR_OPEN"),
|
|
19592
19592
|
"aria-pressed": z ? "true" : "false",
|
|
19593
19593
|
children: z ? /* @__PURE__ */ ve(mg, { className: "controls-button-icon" }) : /* @__PURE__ */ ve(pg, { className: "controls-button-icon" })
|
|
19594
19594
|
}
|
|
19595
19595
|
);
|
|
19596
19596
|
}
|
|
19597
|
-
const _g = "_small-layout-overlay_cmaq3_1", Eg = "_small-layout-button_cmaq3_14", vg = "_small-layout-icon-play_cmaq3_24", Tg = "_small-layout-icon-pause_cmaq3_30", bg = "_small-layout-timestamp_cmaq3_36", Sg = "_full-screen-close-icon_cmaq3_49", Ag = "_fade-out_cmaq3_1",
|
|
19597
|
+
const _g = "_small-layout-overlay_cmaq3_1", Eg = "_small-layout-button_cmaq3_14", vg = "_small-layout-icon-play_cmaq3_24", Tg = "_small-layout-icon-pause_cmaq3_30", bg = "_small-layout-timestamp_cmaq3_36", Sg = "_full-screen-close-icon_cmaq3_49", Ag = "_fade-out_cmaq3_1", _i = {
|
|
19598
19598
|
"small-layout-overlay": "_small-layout-overlay_cmaq3_1",
|
|
19599
19599
|
smallLayoutOverlay: _g,
|
|
19600
19600
|
"small-layout-button": "_small-layout-button_cmaq3_14",
|
|
@@ -19611,16 +19611,16 @@ const _g = "_small-layout-overlay_cmaq3_1", Eg = "_small-layout-button_cmaq3_14"
|
|
|
19611
19611
|
fadeOut: Ag
|
|
19612
19612
|
};
|
|
19613
19613
|
function mu() {
|
|
19614
|
-
const z =
|
|
19614
|
+
const z = Yn("paused");
|
|
19615
19615
|
return /* @__PURE__ */ sn(
|
|
19616
19616
|
"div",
|
|
19617
19617
|
{
|
|
19618
|
-
className:
|
|
19618
|
+
className: _i.smallLayoutOverlay,
|
|
19619
19619
|
"data-testid": "small-layout-overlay",
|
|
19620
19620
|
children: [
|
|
19621
|
-
/* @__PURE__ */ ve(bc, { className:
|
|
19622
|
-
/* @__PURE__ */ ve("i", { className:
|
|
19623
|
-
/* @__PURE__ */ sn("div", { className:
|
|
19621
|
+
/* @__PURE__ */ ve(bc, { className: _i.fullScreenCloseIcon, children: /* @__PURE__ */ ve(eu, {}) }),
|
|
19622
|
+
/* @__PURE__ */ ve("i", { className: _i.smallLayoutButton, children: z ? /* @__PURE__ */ ve(yo, { className: _i.smallLayoutIconPlay }) : /* @__PURE__ */ ve(po, { className: _i.smallLayoutIconPause }) }),
|
|
19623
|
+
/* @__PURE__ */ sn("div", { className: _i.smallLayoutTimestamp, children: [
|
|
19624
19624
|
/* @__PURE__ */ ve(ca, { type: "current" }),
|
|
19625
19625
|
"/",
|
|
19626
19626
|
/* @__PURE__ */ ve(ca, { type: "duration" })
|
|
@@ -19630,13 +19630,13 @@ function mu() {
|
|
|
19630
19630
|
);
|
|
19631
19631
|
}
|
|
19632
19632
|
function Ig(z) {
|
|
19633
|
-
const se = fa(null),
|
|
19633
|
+
const se = fa(null), ye = () => {
|
|
19634
19634
|
const xe = da(se);
|
|
19635
19635
|
if (xe === null)
|
|
19636
19636
|
throw new Error(z);
|
|
19637
19637
|
return xe;
|
|
19638
19638
|
};
|
|
19639
|
-
return [se.Provider,
|
|
19639
|
+
return [se.Provider, ye];
|
|
19640
19640
|
}
|
|
19641
19641
|
const [Rg, _o] = Ig(
|
|
19642
19642
|
"useTabsContext must be used within a TabsProvider"
|
|
@@ -19647,21 +19647,21 @@ function wg() {
|
|
|
19647
19647
|
if (!se.current)
|
|
19648
19648
|
return () => {
|
|
19649
19649
|
};
|
|
19650
|
-
const
|
|
19651
|
-
return
|
|
19650
|
+
const ye = se.current, xe = new AbortController();
|
|
19651
|
+
return ye.addEventListener(
|
|
19652
19652
|
"keydown",
|
|
19653
19653
|
(Ve) => {
|
|
19654
19654
|
if (Ve.key === "ArrowRight") {
|
|
19655
19655
|
Ve.preventDefault(), Ve.stopPropagation();
|
|
19656
|
-
const bt = Array.from(
|
|
19656
|
+
const bt = Array.from(ye.children).findIndex(
|
|
19657
19657
|
(Ee) => Ee.getAttribute("aria-selected") === "true"
|
|
19658
|
-
), Ce = bt + 1 <
|
|
19658
|
+
), Ce = bt + 1 < ye.children.length ? ye.children[bt + 1] : ye.children[0];
|
|
19659
19659
|
Ce && Ce.dataset.value && (z(Ce.dataset.value), Ce.focus());
|
|
19660
19660
|
} else if (Ve.key === "ArrowLeft") {
|
|
19661
19661
|
Ve.preventDefault(), Ve.stopPropagation();
|
|
19662
|
-
const bt = Array.from(
|
|
19662
|
+
const bt = Array.from(ye.children).findIndex(
|
|
19663
19663
|
(Ee) => Ee.getAttribute("aria-selected") === "true"
|
|
19664
|
-
), Ce = bt - 1 >= 0 ?
|
|
19664
|
+
), Ce = bt - 1 >= 0 ? ye.children[bt - 1] : ye.children[ye.children.length - 1];
|
|
19665
19665
|
Ce && Ce.dataset.value && (z(Ce.dataset.value), Ce.focus());
|
|
19666
19666
|
}
|
|
19667
19667
|
},
|
|
@@ -19701,7 +19701,7 @@ function Pg({ children: z }) {
|
|
|
19701
19701
|
function xg({
|
|
19702
19702
|
value: z,
|
|
19703
19703
|
keepMounted: se = !1,
|
|
19704
|
-
children:
|
|
19704
|
+
children: ye
|
|
19705
19705
|
}) {
|
|
19706
19706
|
const { activeTab: xe, getPanelId: Ve, getTabId: bt } = _o();
|
|
19707
19707
|
return /* @__PURE__ */ ve(
|
|
@@ -19712,12 +19712,12 @@ function xg({
|
|
|
19712
19712
|
"aria-labelledby": bt(z),
|
|
19713
19713
|
hidden: xe !== z,
|
|
19714
19714
|
className: ya.tabsPanel,
|
|
19715
|
-
children: se || xe === z ?
|
|
19715
|
+
children: se || xe === z ? ye : null
|
|
19716
19716
|
}
|
|
19717
19717
|
);
|
|
19718
19718
|
}
|
|
19719
19719
|
function Fg({ value: z, children: se }) {
|
|
19720
|
-
const { activeTab:
|
|
19720
|
+
const { activeTab: ye, setActiveTab: xe, getTabId: Ve, getPanelId: bt } = _o(), Ce = ye === z;
|
|
19721
19721
|
return /* @__PURE__ */ ve(
|
|
19722
19722
|
"button",
|
|
19723
19723
|
{
|
|
@@ -19736,7 +19736,7 @@ function Fg({ value: z, children: se }) {
|
|
|
19736
19736
|
function Pr({
|
|
19737
19737
|
defaultValue: z,
|
|
19738
19738
|
onTabChange: se,
|
|
19739
|
-
children:
|
|
19739
|
+
children: ye
|
|
19740
19740
|
}) {
|
|
19741
19741
|
const xe = uc(), [Ve, bt] = gr(z ?? null), Ce = qn(
|
|
19742
19742
|
(ne) => {
|
|
@@ -19759,7 +19759,7 @@ function Pr({
|
|
|
19759
19759
|
getTabId: C,
|
|
19760
19760
|
getPanelId: Ee
|
|
19761
19761
|
},
|
|
19762
|
-
children: /* @__PURE__ */ ve("div", { className: ya.tabs, children:
|
|
19762
|
+
children: /* @__PURE__ */ ve("div", { className: ya.tabs, children: ye })
|
|
19763
19763
|
}
|
|
19764
19764
|
);
|
|
19765
19765
|
}
|
|
@@ -19827,8 +19827,8 @@ const Bg = "_comment-markers_2yz4f_1", Gg = "_comment-marker_2yz4f_1", Hg = "_ti
|
|
|
19827
19827
|
tooltipArrow: gh
|
|
19828
19828
|
};
|
|
19829
19829
|
function qs() {
|
|
19830
|
-
const z =
|
|
19831
|
-
return z > 0 && se.hasComments &&
|
|
19830
|
+
const z = Yn("duration"), se = Jn(), ye = or("commentsEnabled");
|
|
19831
|
+
return z > 0 && se.hasComments && ye ? /* @__PURE__ */ ve("div", { className: Mn.commentMarkers, children: se.comments.map((xe) => /* @__PURE__ */ ve(
|
|
19832
19832
|
"span",
|
|
19833
19833
|
{
|
|
19834
19834
|
className: Mn.commentMarker,
|
|
@@ -19839,7 +19839,7 @@ function qs() {
|
|
|
19839
19839
|
xe.id
|
|
19840
19840
|
)) }) : null;
|
|
19841
19841
|
}
|
|
19842
|
-
const hh = lc(function({ currentTime: se, position:
|
|
19842
|
+
const hh = lc(function({ currentTime: se, position: ye }, xe) {
|
|
19843
19843
|
const [Ve, bt] = gr(!1), [Ce, Ee] = gr(null), C = Jn(), ne = wr(), E = qn(() => {
|
|
19844
19844
|
C.interactiveMenuElements.length > 0 ? bt((P) => (ne.globalKeysDisabled.set(!P), !P)) : C.onInteractivePinClick(se);
|
|
19845
19845
|
}, [
|
|
@@ -19867,7 +19867,7 @@ const hh = lc(function({ currentTime: se, position: _e }, xe) {
|
|
|
19867
19867
|
}), { getReferenceProps: n, getFloatingProps: c, getItemProps: d } = lo(
|
|
19868
19868
|
[v, h]
|
|
19869
19869
|
), S = so([e.setReference, xe]), { t: x } = Hn(), B = to(se);
|
|
19870
|
-
return /* @__PURE__ */ sn(
|
|
19870
|
+
return /* @__PURE__ */ sn(ii, { children: [
|
|
19871
19871
|
/* @__PURE__ */ ve(
|
|
19872
19872
|
"button",
|
|
19873
19873
|
{
|
|
@@ -19878,7 +19878,7 @@ const hh = lc(function({ currentTime: se, position: _e }, xe) {
|
|
|
19878
19878
|
"aria-haspopup": C.interactiveMenuElements.length > 0 ? "true" : void 0,
|
|
19879
19879
|
className: Mn.interactivePinButton,
|
|
19880
19880
|
ref: S,
|
|
19881
|
-
style: { left: `${
|
|
19881
|
+
style: { left: `${ye}%` },
|
|
19882
19882
|
...n({
|
|
19883
19883
|
onClick: E
|
|
19884
19884
|
}),
|
|
@@ -19985,7 +19985,7 @@ const hh = lc(function({ currentTime: se, position: _e }, xe) {
|
|
|
19985
19985
|
) })
|
|
19986
19986
|
] });
|
|
19987
19987
|
}), mh = () => {
|
|
19988
|
-
const z = pr(!1), se = pr(!1),
|
|
19988
|
+
const z = pr(!1), se = pr(!1), ye = Rr(() => ({
|
|
19989
19989
|
ArrowLeft: () => {
|
|
19990
19990
|
se.current = !0;
|
|
19991
19991
|
},
|
|
@@ -19996,7 +19996,7 @@ const hh = lc(function({ currentTime: se, position: _e }, xe) {
|
|
|
19996
19996
|
se.current = !1;
|
|
19997
19997
|
}
|
|
19998
19998
|
}), []);
|
|
19999
|
-
return go(
|
|
19999
|
+
return go(ye), { focusCallback: qn((Ve) => {
|
|
20000
20000
|
Ve && (Ve.addEventListener("focus", () => {
|
|
20001
20001
|
z.current = !0;
|
|
20002
20002
|
}), Ve.addEventListener("blur", () => {
|
|
@@ -20006,7 +20006,7 @@ const hh = lc(function({ currentTime: se, position: _e }, xe) {
|
|
|
20006
20006
|
};
|
|
20007
20007
|
function ph() {
|
|
20008
20008
|
var Ee;
|
|
20009
|
-
const z =
|
|
20009
|
+
const z = Yn("duration"), se = Yn("currentTime"), ye = se / z * 100, { disableInteractivePinRanges: xe } = Jn(), Ve = !xe.some(
|
|
20010
20010
|
([C, ne]) => se >= C && se <= ne
|
|
20011
20011
|
), { wasPinFocused: bt, focusCallback: Ce } = mh();
|
|
20012
20012
|
return Ve ? /* @__PURE__ */ ve("div", { className: Mn.interactivePinContainer, children: /* @__PURE__ */ ve("div", { className: Mn.interactivePinWrapper, children: /* @__PURE__ */ ve(
|
|
@@ -20014,24 +20014,24 @@ function ph() {
|
|
|
20014
20014
|
{
|
|
20015
20015
|
ref: Ce,
|
|
20016
20016
|
currentTime: se,
|
|
20017
|
-
position:
|
|
20017
|
+
position: ye
|
|
20018
20018
|
}
|
|
20019
20019
|
) }) }) : (bt && ((Ee = document.querySelector("[data-media-time-slider]")) == null || Ee.focus()), null);
|
|
20020
20020
|
}
|
|
20021
20021
|
function yh() {
|
|
20022
|
-
const z =
|
|
20022
|
+
const z = Yn("paused"), se = or("interactionsDisabled");
|
|
20023
20023
|
return z && !se ? /* @__PURE__ */ ve(ph, {}) : null;
|
|
20024
20024
|
}
|
|
20025
20025
|
const _h = {
|
|
20026
20026
|
annotation: Mn.annotationPin,
|
|
20027
20027
|
quiz: Mn.quizPin
|
|
20028
|
-
}, Eh = (z, se,
|
|
20029
|
-
time: to(
|
|
20028
|
+
}, Eh = (z, se, ye, xe = !1) => se === "annotation" ? z("OPEN_ANNOTATION_AT", { time: to(ye) }) : se === "quiz" ? z(xe ? "OPEN_COMPLETED_QUIZ_AT" : "OPEN_QUIZ_AT", {
|
|
20029
|
+
time: to(ye)
|
|
20030
20030
|
}) : "";
|
|
20031
20031
|
function pu({
|
|
20032
20032
|
type: z,
|
|
20033
20033
|
position: se,
|
|
20034
|
-
children:
|
|
20034
|
+
children: ye,
|
|
20035
20035
|
onClick: xe,
|
|
20036
20036
|
id: Ve,
|
|
20037
20037
|
time: bt,
|
|
@@ -20057,7 +20057,7 @@ function pu({
|
|
|
20057
20057
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20058
20058
|
children: [
|
|
20059
20059
|
/* @__PURE__ */ ve("path", { d: "M25.5 13C25.5 15.4774 24.7798 17.785 23.5376 19.7268C21.932 22.1411 20.1501 23.9459 18.2945 25.7433C18.0942 25.9373 17.8929 26.1314 17.6908 26.3262C16.157 27.8047 14.5793 29.3256 13.0545 31.2007C11.5227 29.3377 9.93394 27.8282 8.39067 26.362C8.17552 26.1576 7.96126 25.954 7.74816 25.7505C5.87029 23.9566 4.07076 22.1526 2.46259 19.7271C1.22024 17.7852 0.5 15.4775 0.5 13C0.5 6.09644 6.09644 0.5 13 0.5C19.9036 0.5 25.5 6.09644 25.5 13Z" }),
|
|
20060
|
-
|
|
20060
|
+
ye
|
|
20061
20061
|
]
|
|
20062
20062
|
}
|
|
20063
20063
|
)
|
|
@@ -20104,24 +20104,24 @@ function Th(z) {
|
|
|
20104
20104
|
return /* @__PURE__ */ ve(pu, { type: "quiz", ...z, children: z.multiple ? /* @__PURE__ */ ve("circle", { className: Mn.quizPinChild, cx: "13", cy: "13", r: "6" }) : se });
|
|
20105
20105
|
}
|
|
20106
20106
|
function bh(z, se) {
|
|
20107
|
-
return z.map((
|
|
20108
|
-
id:
|
|
20109
|
-
time:
|
|
20107
|
+
return z.map((ye, xe) => ({
|
|
20108
|
+
id: ye.id,
|
|
20109
|
+
time: ye.time,
|
|
20110
20110
|
type: "annotation",
|
|
20111
20111
|
ordinal: xe + 1,
|
|
20112
|
-
onClick: () => se(
|
|
20112
|
+
onClick: () => se(ye)
|
|
20113
20113
|
}));
|
|
20114
20114
|
}
|
|
20115
20115
|
function Sh(z, se) {
|
|
20116
|
-
const
|
|
20116
|
+
const ye = /* @__PURE__ */ new Map();
|
|
20117
20117
|
z.forEach((bt) => {
|
|
20118
20118
|
var Ee;
|
|
20119
20119
|
const Ce = bt.time;
|
|
20120
|
-
|
|
20120
|
+
ye.has(Ce) || ye.set(Ce, []), (Ee = ye.get(Ce)) == null || Ee.push(bt);
|
|
20121
20121
|
});
|
|
20122
20122
|
const xe = [];
|
|
20123
20123
|
let Ve = 0;
|
|
20124
|
-
return
|
|
20124
|
+
return ye.forEach((bt, Ce) => {
|
|
20125
20125
|
xe.push({
|
|
20126
20126
|
id: bt.map((Ee) => Ee.id).join("-"),
|
|
20127
20127
|
time: Ce,
|
|
@@ -20133,10 +20133,10 @@ function Sh(z, se) {
|
|
|
20133
20133
|
}), Ve++;
|
|
20134
20134
|
}), xe;
|
|
20135
20135
|
}
|
|
20136
|
-
function Ah(z, se,
|
|
20136
|
+
function Ah(z, se, ye, xe) {
|
|
20137
20137
|
switch (z.type) {
|
|
20138
20138
|
case "annotation": {
|
|
20139
|
-
const Ve = () => xe ? z.onClick() :
|
|
20139
|
+
const Ve = () => xe ? z.onClick() : ye.seek(z.time);
|
|
20140
20140
|
return /* @__PURE__ */ ve(
|
|
20141
20141
|
vh,
|
|
20142
20142
|
{
|
|
@@ -20167,17 +20167,17 @@ function Ah(z, se, _e, xe) {
|
|
|
20167
20167
|
}
|
|
20168
20168
|
}
|
|
20169
20169
|
function Ih() {
|
|
20170
|
-
const z = ga(), se =
|
|
20170
|
+
const z = ga(), se = Yn("duration"), ye = Jn(), xe = Rr(() => [
|
|
20171
20171
|
...bh(
|
|
20172
|
-
|
|
20173
|
-
|
|
20172
|
+
ye.annotations,
|
|
20173
|
+
ye.onAnnotationClick
|
|
20174
20174
|
),
|
|
20175
|
-
...
|
|
20176
|
-
|
|
20177
|
-
|
|
20175
|
+
...ye.hideQuizMarkers ? [] : Sh(
|
|
20176
|
+
ye.quizMarkers,
|
|
20177
|
+
ye.onQuizMarkerClick
|
|
20178
20178
|
)
|
|
20179
|
-
].sort((bt, Ce) => bt.time - Ce.time).map((bt) => Ah(bt, se, z,
|
|
20180
|
-
return
|
|
20179
|
+
].sort((bt, Ce) => bt.time - Ce.time).map((bt) => Ah(bt, se, z, ye.interactive)), [ye.annotations, ye.quizMarkers, se, z]);
|
|
20180
|
+
return ye.interactive || xe.length > 0 ? /* @__PURE__ */ ve("div", { className: Mn.pins, "data-pins": "", children: xe }) : null;
|
|
20181
20181
|
}
|
|
20182
20182
|
const Rh = {
|
|
20183
20183
|
normal: Mn.timelineWrapper,
|
|
@@ -20187,8 +20187,8 @@ function Vs({
|
|
|
20187
20187
|
layout: z,
|
|
20188
20188
|
children: se
|
|
20189
20189
|
}) {
|
|
20190
|
-
const [
|
|
20191
|
-
open:
|
|
20190
|
+
const [ye, xe] = gr(!1), Ve = qn(() => xe(!0), []), bt = qn(() => xe(!1), []), Ce = pr(null), { refs: Ee, floatingStyles: C, context: ne } = ha({
|
|
20191
|
+
open: ye,
|
|
20192
20192
|
onOpenChange: xe,
|
|
20193
20193
|
whileElementsMounted: (E, t, e) => ma(E, t, e, {
|
|
20194
20194
|
animationFrame: !0
|
|
@@ -20226,7 +20226,7 @@ function Vs({
|
|
|
20226
20226
|
)
|
|
20227
20227
|
] }),
|
|
20228
20228
|
/* @__PURE__ */ ve(Ws, { className: Mn.thumb, ref: Ee.setReference }),
|
|
20229
|
-
|
|
20229
|
+
ye ? /* @__PURE__ */ sn(
|
|
20230
20230
|
"div",
|
|
20231
20231
|
{
|
|
20232
20232
|
role: "tooltip",
|
|
@@ -20262,7 +20262,7 @@ const wh = "_wrapper_trdhg_1", Ch = "_track_trdhg_6", Nh = "_thumb_trdhg_18", Dh
|
|
|
20262
20262
|
root: Oh
|
|
20263
20263
|
};
|
|
20264
20264
|
function Mh() {
|
|
20265
|
-
const z = kr(), se =
|
|
20265
|
+
const z = kr(), se = Yn("volume"), xe = Yn("muted") || se === 0, { t: Ve } = Hn();
|
|
20266
20266
|
return /* @__PURE__ */ sn("div", { className: Ci.wrapper, children: [
|
|
20267
20267
|
/* @__PURE__ */ ve(
|
|
20268
20268
|
"button",
|
|
@@ -20284,16 +20284,16 @@ function Mh() {
|
|
|
20284
20284
|
] });
|
|
20285
20285
|
}
|
|
20286
20286
|
function Lh(z, se) {
|
|
20287
|
-
return z.reduce((
|
|
20287
|
+
return z.reduce((ye, xe) => (Object.keys(se).includes(xe.id) || (ye[xe.id] = !0), ye), se);
|
|
20288
20288
|
}
|
|
20289
|
-
function Ph(z, se,
|
|
20289
|
+
function Ph(z, se, ye, xe, Ve) {
|
|
20290
20290
|
return (bt) => {
|
|
20291
|
-
const Ce = bt.detail.currentTime, Ee = !
|
|
20291
|
+
const Ce = bt.detail.currentTime, Ee = !ye.paused, C = Math.min(ye.duration * 0.05, 2);
|
|
20292
20292
|
Ce >= z.time && Ce < z.time + C && !xe[z.id] && (Ve({ ...xe, [z.id]: !0 }), se(z, Ee));
|
|
20293
20293
|
};
|
|
20294
20294
|
}
|
|
20295
20295
|
function xh() {
|
|
20296
|
-
const z = kr(), { quizMarkers: se, onQuizMarkerShow:
|
|
20296
|
+
const z = kr(), { quizMarkers: se, onQuizMarkerShow: ye } = Jn(), [xe, Ve] = gr(
|
|
20297
20297
|
se.reduce((bt, Ce) => (bt[Ce.id] = !1, bt), {})
|
|
20298
20298
|
);
|
|
20299
20299
|
Fr(() => {
|
|
@@ -20312,7 +20312,7 @@ function xh() {
|
|
|
20312
20312
|
for (const Ee of se) {
|
|
20313
20313
|
const C = Ph(
|
|
20314
20314
|
Ee,
|
|
20315
|
-
|
|
20315
|
+
ye,
|
|
20316
20316
|
z,
|
|
20317
20317
|
xe,
|
|
20318
20318
|
Ve
|
|
@@ -20342,68 +20342,68 @@ function mr(z, se) {
|
|
|
20342
20342
|
const js = {
|
|
20343
20343
|
togglePaused: {
|
|
20344
20344
|
keys: ["Space", "Enter", "k"],
|
|
20345
|
-
onKeyDown({ player: z, remote: se, event:
|
|
20345
|
+
onKeyDown({ player: z, remote: se, event: ye }) {
|
|
20346
20346
|
var xe;
|
|
20347
|
-
(xe = document.activeElement) != null && xe.hasAttribute("data-media-player") && mr(
|
|
20348
|
-
se.togglePaused(
|
|
20347
|
+
(xe = document.activeElement) != null && xe.hasAttribute("data-media-player") && mr(ye, () => {
|
|
20348
|
+
se.togglePaused(ye), hr(z, "togglePaused");
|
|
20349
20349
|
});
|
|
20350
20350
|
}
|
|
20351
20351
|
},
|
|
20352
20352
|
seekForward: {
|
|
20353
20353
|
keys: ["ArrowRight"],
|
|
20354
|
-
onKeyDown({ player: z, remote: se, event:
|
|
20355
|
-
|
|
20356
|
-
se.seek(z.currentTime + 5,
|
|
20354
|
+
onKeyDown({ player: z, remote: se, event: ye }) {
|
|
20355
|
+
ye.preventDefault(), mr(ye, () => {
|
|
20356
|
+
se.seek(z.currentTime + 5, ye), hr(z, "seekForward");
|
|
20357
20357
|
});
|
|
20358
20358
|
}
|
|
20359
20359
|
},
|
|
20360
20360
|
seekBackward: {
|
|
20361
20361
|
keys: ["ArrowLeft"],
|
|
20362
|
-
onKeyDown({ player: z, remote: se, event:
|
|
20363
|
-
mr(
|
|
20364
|
-
se.seek(z.currentTime - 5,
|
|
20362
|
+
onKeyDown({ player: z, remote: se, event: ye }) {
|
|
20363
|
+
mr(ye, () => {
|
|
20364
|
+
se.seek(z.currentTime - 5, ye), hr(z, "seekBackward");
|
|
20365
20365
|
});
|
|
20366
20366
|
}
|
|
20367
20367
|
},
|
|
20368
20368
|
volumeUp: {
|
|
20369
20369
|
keys: ["ArrowUp"],
|
|
20370
|
-
onKeyDown({ player: z, remote: se, event:
|
|
20371
|
-
mr(
|
|
20372
|
-
se.changeVolume(z.volume + 0.05,
|
|
20370
|
+
onKeyDown({ player: z, remote: se, event: ye }) {
|
|
20371
|
+
mr(ye, () => {
|
|
20372
|
+
se.changeVolume(z.volume + 0.05, ye), hr(z, "volumeChange");
|
|
20373
20373
|
});
|
|
20374
20374
|
}
|
|
20375
20375
|
},
|
|
20376
20376
|
volumeDown: {
|
|
20377
20377
|
keys: ["ArrowDown"],
|
|
20378
|
-
onKeyDown({ player: z, remote: se, event:
|
|
20379
|
-
mr(
|
|
20380
|
-
se.changeVolume(z.volume - 0.05,
|
|
20378
|
+
onKeyDown({ player: z, remote: se, event: ye }) {
|
|
20379
|
+
mr(ye, () => {
|
|
20380
|
+
se.changeVolume(z.volume - 0.05, ye), hr(z, "volumeChange");
|
|
20381
20381
|
});
|
|
20382
20382
|
}
|
|
20383
20383
|
},
|
|
20384
20384
|
toggleFullscreen: ["f"],
|
|
20385
20385
|
toggleMuted: {
|
|
20386
20386
|
keys: ["m"],
|
|
20387
|
-
onKeyDown({ player: z, remote: se, event:
|
|
20388
|
-
mr(
|
|
20389
|
-
se.toggleMuted(
|
|
20387
|
+
onKeyDown({ player: z, remote: se, event: ye }) {
|
|
20388
|
+
mr(ye, () => {
|
|
20389
|
+
se.toggleMuted(ye), hr(z, "volumeChange");
|
|
20390
20390
|
});
|
|
20391
20391
|
}
|
|
20392
20392
|
},
|
|
20393
20393
|
toggleCaptions: {
|
|
20394
20394
|
keys: ["c"],
|
|
20395
|
-
onKeyDown({ player: z, remote: se, event:
|
|
20396
|
-
mr(
|
|
20397
|
-
se.toggleCaptions(
|
|
20395
|
+
onKeyDown({ player: z, remote: se, event: ye }) {
|
|
20396
|
+
mr(ye, () => {
|
|
20397
|
+
se.toggleCaptions(ye), hr(z, "captionsChange");
|
|
20398
20398
|
});
|
|
20399
20399
|
}
|
|
20400
20400
|
},
|
|
20401
20401
|
nextCaptionLanguage: {
|
|
20402
20402
|
keys: ["v"],
|
|
20403
|
-
onKeyDown({ event: z, player: se, remote:
|
|
20403
|
+
onKeyDown({ event: z, player: se, remote: ye }) {
|
|
20404
20404
|
mr(z, () => {
|
|
20405
20405
|
const xe = se.textTracks.selectedIndex, Ve = xe + 1;
|
|
20406
|
-
|
|
20406
|
+
ye.changeTextTrackMode(xe, "hidden", z), ye.changeTextTrackMode(
|
|
20407
20407
|
Ve >= se.textTracks.length ? 0 : Ve,
|
|
20408
20408
|
"showing",
|
|
20409
20409
|
z
|
|
@@ -20413,10 +20413,10 @@ const js = {
|
|
|
20413
20413
|
},
|
|
20414
20414
|
previousCaptionLanguage: {
|
|
20415
20415
|
keys: ["x"],
|
|
20416
|
-
onKeyDown({ event: z, player: se, remote:
|
|
20416
|
+
onKeyDown({ event: z, player: se, remote: ye }) {
|
|
20417
20417
|
mr(z, () => {
|
|
20418
20418
|
const xe = se.textTracks.selectedIndex, Ve = xe - 1;
|
|
20419
|
-
|
|
20419
|
+
ye.changeTextTrackMode(xe, "hidden", z), ye.changeTextTrackMode(
|
|
20420
20420
|
Ve < 0 ? se.textTracks.length - 1 : Ve,
|
|
20421
20421
|
"showing",
|
|
20422
20422
|
z
|
|
@@ -20426,52 +20426,52 @@ const js = {
|
|
|
20426
20426
|
},
|
|
20427
20427
|
decreasePlaybackRate: {
|
|
20428
20428
|
keys: ["a"],
|
|
20429
|
-
onKeyDown({ event: z, player: se, remote:
|
|
20429
|
+
onKeyDown({ event: z, player: se, remote: ye }) {
|
|
20430
20430
|
mr(z, () => {
|
|
20431
|
-
const Ve =
|
|
20432
|
-
Ve >= 0 && (
|
|
20431
|
+
const Ve = vi.indexOf(se.playbackRate) - 1;
|
|
20432
|
+
Ve >= 0 && (ye.changePlaybackRate(vi[Ve], z), hr(se, "playbackRateChange"));
|
|
20433
20433
|
});
|
|
20434
20434
|
}
|
|
20435
20435
|
},
|
|
20436
20436
|
increasePlaybackRate: {
|
|
20437
20437
|
keys: ["d"],
|
|
20438
|
-
onKeyDown({ event: z, player: se, remote:
|
|
20438
|
+
onKeyDown({ event: z, player: se, remote: ye }) {
|
|
20439
20439
|
mr(z, () => {
|
|
20440
|
-
const Ve =
|
|
20441
|
-
Ve <
|
|
20440
|
+
const Ve = vi.indexOf(se.playbackRate) + 1;
|
|
20441
|
+
Ve < vi.length && (ye.changePlaybackRate(vi[Ve], z), hr(se, "playbackRateChange"));
|
|
20442
20442
|
});
|
|
20443
20443
|
}
|
|
20444
20444
|
},
|
|
20445
20445
|
resetPlaybackRate: {
|
|
20446
20446
|
keys: ["s"],
|
|
20447
|
-
onKeyDown({ event: z, player: se, remote:
|
|
20447
|
+
onKeyDown({ event: z, player: se, remote: ye }) {
|
|
20448
20448
|
mr(z, () => {
|
|
20449
|
-
|
|
20449
|
+
ye.changePlaybackRate(1, z), hr(se, "playbackRateChange");
|
|
20450
20450
|
});
|
|
20451
20451
|
}
|
|
20452
20452
|
},
|
|
20453
20453
|
seekForward10Seconds: {
|
|
20454
20454
|
keys: ["l"],
|
|
20455
|
-
onKeyDown({ event: z, player: se, remote:
|
|
20455
|
+
onKeyDown({ event: z, player: se, remote: ye }) {
|
|
20456
20456
|
mr(z, () => {
|
|
20457
|
-
|
|
20457
|
+
ye.seek(se.currentTime + 10, z), hr(se, "seekForward10");
|
|
20458
20458
|
});
|
|
20459
20459
|
}
|
|
20460
20460
|
},
|
|
20461
20461
|
seekBackward10Seconds: {
|
|
20462
20462
|
keys: ["j"],
|
|
20463
|
-
onKeyDown({ event: z, player: se, remote:
|
|
20463
|
+
onKeyDown({ event: z, player: se, remote: ye }) {
|
|
20464
20464
|
mr(z, () => {
|
|
20465
|
-
|
|
20465
|
+
ye.seek(se.currentTime - 10, z), hr(se, "seekBackward10");
|
|
20466
20466
|
});
|
|
20467
20467
|
}
|
|
20468
20468
|
}
|
|
20469
20469
|
};
|
|
20470
20470
|
function kh(z, se = 1e3) {
|
|
20471
|
-
let
|
|
20471
|
+
let ye = !1;
|
|
20472
20472
|
return () => {
|
|
20473
|
-
|
|
20474
|
-
|
|
20473
|
+
ye || (z(), ye = !0, setTimeout(() => {
|
|
20474
|
+
ye = !1;
|
|
20475
20475
|
}, se));
|
|
20476
20476
|
};
|
|
20477
20477
|
}
|
|
@@ -20502,10 +20502,10 @@ class Zh {
|
|
|
20502
20502
|
Mr(this, "saveTimeThrottled", kh(this.saveTime, 1e3));
|
|
20503
20503
|
// only used for useStudioPlayer hook's state initialization
|
|
20504
20504
|
Mr(this, "initializeState", (se) => {
|
|
20505
|
-
const
|
|
20506
|
-
if (ro(se) && se >= 0 && (this.overrideTime = se),
|
|
20505
|
+
const ye = localStorage.getItem(this.playerId);
|
|
20506
|
+
if (ro(se) && se >= 0 && (this.overrideTime = se), ye)
|
|
20507
20507
|
try {
|
|
20508
|
-
this.data = JSON.parse(
|
|
20508
|
+
this.data = JSON.parse(ye);
|
|
20509
20509
|
} catch {
|
|
20510
20510
|
}
|
|
20511
20511
|
return {
|
|
@@ -20515,10 +20515,10 @@ class Zh {
|
|
|
20515
20515
|
commentsEnabled: this.data.comments || !1
|
|
20516
20516
|
};
|
|
20517
20517
|
});
|
|
20518
|
-
Mr(this, "saveData", (se,
|
|
20518
|
+
Mr(this, "saveData", (se, ye) => {
|
|
20519
20519
|
this.data = {
|
|
20520
20520
|
...this.data,
|
|
20521
|
-
[se]:
|
|
20521
|
+
[se]: ye
|
|
20522
20522
|
}, this.save();
|
|
20523
20523
|
});
|
|
20524
20524
|
this.lockSpeed = se;
|
|
@@ -20571,9 +20571,9 @@ class Zh {
|
|
|
20571
20571
|
async setPlaybackRate(se) {
|
|
20572
20572
|
this.data.rate = se, this.save();
|
|
20573
20573
|
}
|
|
20574
|
-
onChange(se,
|
|
20575
|
-
const Ve = xe ? localStorage.getItem(xe) : null, bt =
|
|
20576
|
-
this.playerId = xe, this.mediaId =
|
|
20574
|
+
onChange(se, ye, xe = "studio-player") {
|
|
20575
|
+
const Ve = xe ? localStorage.getItem(xe) : null, bt = ye ? localStorage.getItem(ye) : null;
|
|
20576
|
+
this.playerId = xe, this.mediaId = ye;
|
|
20577
20577
|
let Ce = {};
|
|
20578
20578
|
if (Ve)
|
|
20579
20579
|
try {
|
|
@@ -20591,7 +20591,7 @@ class Zh {
|
|
|
20591
20591
|
localStorage.setItem(this.playerId, se);
|
|
20592
20592
|
}
|
|
20593
20593
|
}
|
|
20594
|
-
function Uh(z, se,
|
|
20594
|
+
function Uh(z, se, ye, xe, Ve) {
|
|
20595
20595
|
const bt = Rr(
|
|
20596
20596
|
() => new Zh(xe),
|
|
20597
20597
|
[xe]
|
|
@@ -20611,7 +20611,7 @@ function Uh(z, se, _e, xe, Ve) {
|
|
|
20611
20611
|
youtubeEducationProvider: zr(null),
|
|
20612
20612
|
sidebarOpen: zr(!1)
|
|
20613
20613
|
};
|
|
20614
|
-
return
|
|
20614
|
+
return ye || (ne.captionsFontSizeMultiplier.listen((E) => {
|
|
20615
20615
|
bt.saveData("multiplier", E);
|
|
20616
20616
|
}), ne.captionPositionOnTop.listen((E) => {
|
|
20617
20617
|
bt.saveData("ontop", E);
|
|
@@ -20620,7 +20620,7 @@ function Uh(z, se, _e, xe, Ve) {
|
|
|
20620
20620
|
}), ne.commentsEnabled.listen((E) => {
|
|
20621
20621
|
bt.saveData("comments", E);
|
|
20622
20622
|
})), ne;
|
|
20623
|
-
}, [
|
|
20623
|
+
}, [ye]),
|
|
20624
20624
|
shortcuts: Ce,
|
|
20625
20625
|
storage: bt
|
|
20626
20626
|
};
|
|
@@ -20645,47 +20645,47 @@ function Gh() {
|
|
|
20645
20645
|
] });
|
|
20646
20646
|
}
|
|
20647
20647
|
function Hh() {
|
|
20648
|
-
const z = Jn(), se =
|
|
20648
|
+
const z = Jn(), se = or(
|
|
20649
20649
|
"youtubeEducationProvider"
|
|
20650
|
-
),
|
|
20651
|
-
return /* @__PURE__ */ sn(
|
|
20650
|
+
), ye = Rr(() => se ? Nd(z.captions) : z.captions, [z.captions, se]);
|
|
20651
|
+
return /* @__PURE__ */ sn(ii, { children: [
|
|
20652
20652
|
/* @__PURE__ */ ve(gu, {}),
|
|
20653
20653
|
/* @__PURE__ */ ve(Js, {}),
|
|
20654
|
-
/* @__PURE__ */ ve(au, { captions:
|
|
20654
|
+
/* @__PURE__ */ ve(au, { captions: ye }),
|
|
20655
20655
|
/* @__PURE__ */ ve(mu, {}),
|
|
20656
20656
|
/* @__PURE__ */ ve(hu, {}),
|
|
20657
20657
|
/* @__PURE__ */ ve(Zf, { comments: z.comments })
|
|
20658
20658
|
] });
|
|
20659
20659
|
}
|
|
20660
|
-
const qh = "
|
|
20660
|
+
const qh = "_root_1y8fp_1", Vh = "_normal_1y8fp_22", jh = "_compact_1y8fp_33", Yh = "_left-controls_1y8fp_66", Kh = "_right-controls_1y8fp_75", zh = "_indicators_1y8fp_84", Ei = {
|
|
20661
20661
|
root: qh,
|
|
20662
20662
|
normal: Vh,
|
|
20663
20663
|
compact: jh,
|
|
20664
|
-
"left-controls": "_left-
|
|
20664
|
+
"left-controls": "_left-controls_1y8fp_66",
|
|
20665
20665
|
leftControls: Yh,
|
|
20666
|
-
"right-controls": "_right-
|
|
20666
|
+
"right-controls": "_right-controls_1y8fp_75",
|
|
20667
20667
|
rightControls: Kh,
|
|
20668
20668
|
indicators: zh
|
|
20669
20669
|
};
|
|
20670
20670
|
function Wh() {
|
|
20671
20671
|
const z = kr(), se = Jn();
|
|
20672
20672
|
Fr(() => {
|
|
20673
|
-
const
|
|
20673
|
+
const ye = () => {
|
|
20674
20674
|
const xe = se.startAt;
|
|
20675
20675
|
z && se.disableStorage && ro(xe) && (z.remoteControl.seek(xe), z.$state.started.set(!0));
|
|
20676
20676
|
};
|
|
20677
|
-
return z == null || z.addEventListener("loaded-metadata",
|
|
20678
|
-
z == null || z.removeEventListener("loaded-metadata",
|
|
20677
|
+
return z == null || z.addEventListener("loaded-metadata", ye), () => {
|
|
20678
|
+
z == null || z.removeEventListener("loaded-metadata", ye);
|
|
20679
20679
|
};
|
|
20680
20680
|
}, [z]);
|
|
20681
20681
|
}
|
|
20682
20682
|
function Qh({
|
|
20683
20683
|
darkMode: z,
|
|
20684
20684
|
playerRef: se,
|
|
20685
|
-
controlsLayout:
|
|
20685
|
+
controlsLayout: ye,
|
|
20686
20686
|
disableCaptionSettings: xe
|
|
20687
20687
|
}) {
|
|
20688
|
-
const Ve = kr(), { hasAnnotations: bt, hasQuizmarkers: Ce, interactive: Ee, enableSidebar: C } = Jn(), ne =
|
|
20688
|
+
const Ve = kr(), { hasAnnotations: bt, hasQuizmarkers: Ce, interactive: Ee, enableSidebar: C } = Jn(), ne = or("interactionsDisabled");
|
|
20689
20689
|
return Wh(), Fr(() => {
|
|
20690
20690
|
const E = new AbortController();
|
|
20691
20691
|
return Ve && (Ve.remoteControl.pauseControls(), Ve.addEventListener(
|
|
@@ -20704,25 +20704,25 @@ function Qh({
|
|
|
20704
20704
|
{
|
|
20705
20705
|
"data-darkmode": z,
|
|
20706
20706
|
"data-testid": "controls-layout",
|
|
20707
|
-
"data-controls-layout":
|
|
20708
|
-
className: Ni(
|
|
20709
|
-
[
|
|
20710
|
-
[
|
|
20707
|
+
"data-controls-layout": ye,
|
|
20708
|
+
className: Ni(Ei.root, {
|
|
20709
|
+
[Ei.normal]: ye === "normal",
|
|
20710
|
+
[Ei.compact]: ye === "compact"
|
|
20711
20711
|
}),
|
|
20712
20712
|
inert: ne ? "true" : void 0,
|
|
20713
20713
|
children: [
|
|
20714
|
-
|
|
20714
|
+
ye === "normal" ? /* @__PURE__ */ sn(Vs, { layout: "normal", children: [
|
|
20715
20715
|
Ee || bt || Ce ? /* @__PURE__ */ ve(Ih, {}) : null,
|
|
20716
20716
|
Ee ? /* @__PURE__ */ ve(yh, {}) : null,
|
|
20717
20717
|
/* @__PURE__ */ ve(qs, {})
|
|
20718
20718
|
] }) : null,
|
|
20719
|
-
/* @__PURE__ */ sn("div", { className:
|
|
20719
|
+
/* @__PURE__ */ sn("div", { className: Ei.leftControls, children: [
|
|
20720
20720
|
/* @__PURE__ */ ve(lg, {}),
|
|
20721
20721
|
/* @__PURE__ */ ve(Mh, {})
|
|
20722
20722
|
] }),
|
|
20723
|
-
/* @__PURE__ */ ve("div", { className:
|
|
20724
|
-
|
|
20725
|
-
/* @__PURE__ */ sn("div", { className:
|
|
20723
|
+
/* @__PURE__ */ ve("div", { className: Ei.indicators, children: /* @__PURE__ */ ve(Ug, {}) }),
|
|
20724
|
+
ye === "compact" ? /* @__PURE__ */ ve(Vs, { layout: "compact", children: /* @__PURE__ */ ve(qs, {}) }) : null,
|
|
20725
|
+
/* @__PURE__ */ sn("div", { className: Ei.rightControls, children: [
|
|
20726
20726
|
!xe && /* @__PURE__ */ ve(Tf, {}),
|
|
20727
20727
|
C && /* @__PURE__ */ ve(yg, {}),
|
|
20728
20728
|
/* @__PURE__ */ ve(Bd, {}),
|
|
@@ -20743,7 +20743,7 @@ const $h = {}, la = () => {
|
|
|
20743
20743
|
function sm({
|
|
20744
20744
|
title: z,
|
|
20745
20745
|
playerRef: se,
|
|
20746
|
-
src:
|
|
20746
|
+
src: ye,
|
|
20747
20747
|
captions: xe = [],
|
|
20748
20748
|
thumbnail: Ve,
|
|
20749
20749
|
hideFullScreen: bt = !1,
|
|
@@ -20830,11 +20830,11 @@ function sm({
|
|
|
20830
20830
|
children: /* @__PURE__ */ ve(kc, { contextValue: X, children: /* @__PURE__ */ ve(Xh, { children: /* @__PURE__ */ sn(
|
|
20831
20831
|
Nc,
|
|
20832
20832
|
{
|
|
20833
|
-
"data-version": "1.3.
|
|
20833
|
+
"data-version": "1.3.7",
|
|
20834
20834
|
crossOrigin: P,
|
|
20835
20835
|
storage: x ? null : Be,
|
|
20836
20836
|
title: z,
|
|
20837
|
-
src: hf(
|
|
20837
|
+
src: hf(ye),
|
|
20838
20838
|
keyShortcuts: De,
|
|
20839
20839
|
playsInline: !0,
|
|
20840
20840
|
keyDisabled: Se || ke,
|
|
@@ -20900,9 +20900,9 @@ function sm({
|
|
|
20900
20900
|
export {
|
|
20901
20901
|
If as CAPTION_FONT_SIZE_MULTIPLIERS,
|
|
20902
20902
|
Rf as COMMENT_DURATION,
|
|
20903
|
-
|
|
20903
|
+
vi as PLAYBACK_RATES,
|
|
20904
20904
|
sm as StudioPlayer,
|
|
20905
20905
|
ho as YOUTUBE_CAPTION_SUFFIX,
|
|
20906
|
-
|
|
20906
|
+
Yn as useMediaState,
|
|
20907
20907
|
cm as useMediaStore
|
|
20908
20908
|
};
|