@instructure/studio-player 1.3.2 → 1.3.3
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/studio-player.es.js +339 -339
- package/dist/{vidstack-B8iikcPv.js → vidstack-CX-SWm4x.js} +10 -10
- package/dist/{vidstack-audio-Bq1pJf-F.js → vidstack-audio-Bd4Zsj4O.js} +2 -2
- package/dist/{vidstack-dash-Bi8vMZlt.js → vidstack-dash-D7xlwNJ9.js} +2 -2
- package/dist/{vidstack-google-cast-D3ys_R-E.js → vidstack-google-cast-DxqRtIco.js} +1 -1
- package/dist/{vidstack-hls-BytcbBHn.js → vidstack-hls-DVErTQIN.js} +2 -2
- package/dist/{vidstack-html-BpBnqulz.js → vidstack-html-B5QcGPQk.js} +1 -1
- package/dist/{vidstack-video-CqIaj_35.js → vidstack-video-DpYthusy.js} +2 -2
- package/dist/{vidstack-vimeo-B9SDrle5.js → vidstack-vimeo-Z3RDzI6N.js} +1 -1
- package/dist/{vidstack-youtube-Dgmpq-MT.js → vidstack-youtube-y1PQLbV7.js} +96 -92
- package/package.json +1 -1
package/dist/studio-player.es.js
CHANGED
|
@@ -6,8 +6,8 @@ import { useRef as Rr, useCallback as jn, useSyncExternalStore as ic, createCont
|
|
|
6
6
|
import { initReactI18next as oc, useTranslation as Hn } from "react-i18next";
|
|
7
7
|
import sc from "i18next";
|
|
8
8
|
import uc from "i18next-resources-to-backend";
|
|
9
|
-
import { S as Pr, U as lc, W as cc, X as fc, Z as ca, _ as Wn, $ as dc, a0 as gc, a1 as hc, a2 as mc, a3 as pc, a4 as yc, a5 as _c, a6 as la, a7 as Xa, a8 as Ec, a9 as qs, aa as vc, ab as Vs, ac as js, ad as Tc, ae as bc, af as Sc, ag as Os, ah as Ms, ai as Ac, aj as za, ak as Ic, al as Rc } from "./vidstack-
|
|
10
|
-
import { am as zh } from "./vidstack-
|
|
9
|
+
import { S as Pr, U as lc, W as cc, X as fc, Z as ca, _ as Wn, $ as dc, a0 as gc, a1 as hc, a2 as mc, a3 as pc, a4 as yc, a5 as _c, a6 as la, a7 as Xa, a8 as Ec, a9 as qs, aa as vc, ab as Vs, ac as js, ad as Tc, ae as bc, af as Sc, ag as Os, ah as Ms, ai as Ac, aj as za, ak as Ic, al as Rc } from "./vidstack-CX-SWm4x.js";
|
|
10
|
+
import { am as zh } from "./vidstack-CX-SWm4x.js";
|
|
11
11
|
import { useFloating as fa, autoUpdate as da, shift as no, offset as ro, arrow as io, useMergeRefs as ao, useListNavigation as Ys, useDismiss as oo, useInteractions as so, FloatingFocusManager as uo, FloatingArrow as lo, detectOverflow as wc } from "@floating-ui/react";
|
|
12
12
|
var Wa = { exports: {} };
|
|
13
13
|
/*! For license information please see dash.all.min.js.LICENSE.txt */
|
|
@@ -351,8 +351,8 @@ function Cc() {
|
|
|
351
351
|
} }, C.logger = n, C.PenState = d, C.CaptionScreen = B, C.Cea608Parser = J, C.findCea608Nalus = function(M, K, ae) {
|
|
352
352
|
for (var j = 0, te = K, le = [], Se = function(be, Ze, Qe, ot) {
|
|
353
353
|
if (be !== 4 || Ze < 8) return null;
|
|
354
|
-
var Ae = Qe.getUint8(ot),
|
|
355
|
-
return Ae == 181 &&
|
|
354
|
+
var Ae = Qe.getUint8(ot), we = Qe.getUint16(ot + 1), Tt = Qe.getUint32(ot + 3), _t = Qe.getUint8(ot + 7);
|
|
355
|
+
return Ae == 181 && we == 49 && Tt == 1195456820 && _t == 3;
|
|
356
356
|
}; te < K + ae; ) {
|
|
357
357
|
if (j = M.getUint32(te), (31 & M.getUint8(te + 4)) == 6) for (var X = te + 5, De = -1; X < te + 4 + j - 1; ) {
|
|
358
358
|
De = 0;
|
|
@@ -415,8 +415,8 @@ function Cc() {
|
|
|
415
415
|
var be = "", Ze = null;
|
|
416
416
|
S && (Ze = (/* @__PURE__ */ new Date()).getTime(), be += "[" + (Ze - B) + "]"), x && We && We.getClassName && (be += "[" + We.getClassName() + "]", We.getType && (be += "[" + We.getType() + "]")), be.length > 0 && (be += " ");
|
|
417
417
|
for (var Qe = arguments.length, ot = new Array(Qe > 2 ? Qe - 2 : 0), Ae = 2; Ae < Qe; Ae++) ot[Ae - 2] = arguments[Ae];
|
|
418
|
-
Array.apply(null, ot).forEach(function(
|
|
419
|
-
be +=
|
|
418
|
+
Array.apply(null, ot).forEach(function(we) {
|
|
419
|
+
be += we + " ";
|
|
420
420
|
}), K[Ue] && M && M.get().debug.logLevel >= Ue && K[Ue](be), M && M.get().debug.dispatchEvent && J.trigger(v.Z.LOG, { message: be, level: Ue });
|
|
421
421
|
}
|
|
422
422
|
return d = { getLogger: function(Ue) {
|
|
@@ -828,13 +828,13 @@ function Cc() {
|
|
|
828
828
|
c = null;
|
|
829
829
|
}
|
|
830
830
|
function Se(be, Ze, Qe) {
|
|
831
|
-
var ot, Ae,
|
|
832
|
-
return
|
|
831
|
+
var ot, Ae, we = j.resolve(Qe.path), Tt = {};
|
|
832
|
+
return we && Ze !== we.url && P.isRelative(Ze) ? (ot = we.url, Ae = we.serviceLocation, Tt = we.queryParams, Ze && (ot = P.resolve(Ze, ot))) : ot = Ze, !P.isRelative(ot) && (be.url = ot, be.serviceLocation = Ae, be.queryParams = Tt, !0);
|
|
833
833
|
}
|
|
834
834
|
function X(be, Ze) {
|
|
835
835
|
if (Ze == null) return null;
|
|
836
|
-
var Qe = new ne.Z(), ot = Ze.representation, Ae = ot.adaptation.period.mpd.manifest.Period_asArray[ot.adaptation.period.index].AdaptationSet_asArray[ot.adaptation.index].Representation_asArray[ot.index].bandwidth,
|
|
837
|
-
return
|
|
836
|
+
var Qe = new ne.Z(), ot = Ze.representation, Ae = ot.adaptation.period.mpd.manifest.Period_asArray[ot.adaptation.period.index].AdaptationSet_asArray[ot.adaptation.index].Representation_asArray[ot.index].bandwidth, we = Ze.media;
|
|
837
|
+
return we = (0, p.vi)(we, "Number", Ze.replacementNumber), we = (0, p.vi)(we, "Time", Ze.replacementTime), we = (0, p.vi)(we, "Bandwidth", Ae), we = (0, p.Aj)(we, ot.id), we = (0, p.eR)(we), Qe.mediaType = te(), Qe.type = v.w.MEDIA_SEGMENT_TYPE, Qe.range = Ze.mediaRange, Qe.startTime = Ze.presentationStartTime, Qe.mediaStartTime = Ze.mediaStartTime, Qe.duration = Ze.duration, Qe.timescale = ot.timescale, Qe.availabilityStartTime = Ze.availabilityStartTime, Qe.availabilityEndTime = Ze.availabilityEndTime, Qe.availabilityTimeComplete = ot.availabilityTimeComplete, Qe.wallStartTime = Ze.wallStartTime, Qe.quality = ot.index, Qe.index = Ze.index, Qe.mediaInfo = be, Qe.adaptationIndex = ot.adaptation.index, Qe.representationId = ot.id, Se(Qe, we, ot) ? Qe : void 0;
|
|
838
838
|
}
|
|
839
839
|
function De(be, Ze, Qe) {
|
|
840
840
|
var ot = null;
|
|
@@ -858,8 +858,8 @@ function Cc() {
|
|
|
858
858
|
return c ? c.index : -1;
|
|
859
859
|
}, getInitRequest: function(be, Ze) {
|
|
860
860
|
return Ze ? function(Qe, ot, Ae) {
|
|
861
|
-
var
|
|
862
|
-
if (
|
|
861
|
+
var we = new ne.Z(), Tt = ot.adaptation.period, _t = Tt.start;
|
|
862
|
+
if (we.mediaType = Ae, we.type = v.w.INIT_SEGMENT_TYPE, we.range = ot.range, we.availabilityStartTime = ae.calcAvailabilityStartTimeFromPresentationTime(_t, ot, d), we.availabilityEndTime = ae.calcAvailabilityEndTimeFromPresentationTime(_t + Tt.duration, ot, d), we.quality = ot.index, we.mediaInfo = Qe, we.representationId = ot.id, Se(we, ot.initialization, ot)) return we.url = (0, p.vi)(we.url, "Bandwidth", ot.bandwidth), we;
|
|
863
863
|
}(be, Ze, te()) : null;
|
|
864
864
|
}, getNextSegmentRequest: function(be, Ze) {
|
|
865
865
|
return Ze && Ze.segmentInfoType ? Ue(be, Ze, c ? c.index + 1 : 0) : null;
|
|
@@ -875,13 +875,13 @@ function Cc() {
|
|
|
875
875
|
if (isNaN(be) || !Ze || !Qe) return NaN;
|
|
876
876
|
if (be < 0 && (be = 0), isNaN(ot) && (ot = 0.5), De(Ze, Qe, be)) return be;
|
|
877
877
|
if (Qe.adaptation.period.start + Qe.adaptation.period.duration < be) return NaN;
|
|
878
|
-
for (var Ae = isFinite(Qe.adaptation.period.duration) ? Qe.adaptation.period.start + Qe.adaptation.period.duration : be + 30,
|
|
878
|
+
for (var Ae = isFinite(Qe.adaptation.period.duration) ? Qe.adaptation.period.start + Qe.adaptation.period.duration : be + 30, we = Math.min(be + ot, Ae), Tt = NaN, _t = null; we <= Ae; ) {
|
|
879
879
|
var qe = null;
|
|
880
|
-
if (
|
|
881
|
-
Tt =
|
|
880
|
+
if (we <= Ae && (qe = De(Ze, Qe, we)), qe) {
|
|
881
|
+
Tt = we, _t = qe;
|
|
882
882
|
break;
|
|
883
883
|
}
|
|
884
|
-
|
|
884
|
+
we += ot;
|
|
885
885
|
}
|
|
886
886
|
if (_t) {
|
|
887
887
|
var at = _t.startTime + _t.duration;
|
|
@@ -1815,7 +1815,7 @@ function Cc() {
|
|
|
1815
1815
|
} };
|
|
1816
1816
|
}
|
|
1817
1817
|
ot.__dashjs_factory_name = "InitCache";
|
|
1818
|
-
var Ae = E.Z.getSingletonFactory(ot),
|
|
1818
|
+
var Ae = E.Z.getSingletonFactory(ot), we = 0.01, Tt = "BufferController";
|
|
1819
1819
|
function _t(i) {
|
|
1820
1820
|
i = i || {};
|
|
1821
1821
|
var r, l, _, R, I, y, w, F, q, G, N, U, Z, de, re, ce, he, H, oe, V, fe, g = this.context, L = (0, m.Z)(g).getInstance(), D = i.errHandler, O = i.fragmentModel, A = i.representationController, ie = i.adapter, z = i.textController, ue = i.abrController, $ = i.playbackController, k = i.streamInfo, ee = i.type, pe = i.settings;
|
|
@@ -1932,14 +1932,14 @@ function Cc() {
|
|
|
1932
1932
|
var Ee = function(Ct, xt) {
|
|
1933
1933
|
var yn = pe.get().streaming.buffer.bufferToKeep, On = xt.start(0);
|
|
1934
1934
|
if (Ct - On > yn) {
|
|
1935
|
-
var zn = Math.max(0, Ct - yn), Nn = O.getRequests({ state: K.FRAGMENT_MODEL_EXECUTED, time: Ct, threshold:
|
|
1935
|
+
var zn = Math.max(0, Ct - yn), Nn = O.getRequests({ state: K.FRAGMENT_MODEL_EXECUTED, time: Ct, threshold: we })[0];
|
|
1936
1936
|
if (Nn && (zn = Math.min(Nn.startTime, zn)), zn > 0) return { start: On, end: zn };
|
|
1937
1937
|
}
|
|
1938
1938
|
return null;
|
|
1939
1939
|
}(Le, ge), $e = function(Ct, xt) {
|
|
1940
1940
|
var yn = xt.end(xt.length - 1) + 0.5, On = qt(Ct), zn = k.manifestInfo.duration >= pe.get().streaming.buffer.longFormContentDurationThreshold ? pe.get().streaming.buffer.bufferTimeAtTopQualityLongForm : pe.get().streaming.buffer.bufferTimeAtTopQuality, Nn = isNaN(On) ? Ct : Math.min(On, Ct + zn);
|
|
1941
1941
|
if (Nn >= xt.end(xt.length - 1)) return null;
|
|
1942
|
-
var fr = O.getRequests({ state: K.FRAGMENT_MODEL_EXECUTED, time: Ct, threshold:
|
|
1942
|
+
var fr = O.getRequests({ state: K.FRAGMENT_MODEL_EXECUTED, time: Ct, threshold: we })[0];
|
|
1943
1943
|
if (fr && (Nn = Math.max(fr.startTime + fr.duration, Nn)), pe.get().streaming.buffer.avoidCurrentTimeRangePruning) {
|
|
1944
1944
|
for (var $n = 0; $n < xt.length; $n++) if (xt.start($n) <= Ct && Ct <= xt.end($n) && xt.start($n) <= Nn && Nn <= xt.end($n)) {
|
|
1945
1945
|
var qr = Nn;
|
|
@@ -2002,7 +2002,7 @@ function Cc() {
|
|
|
2002
2002
|
function yt() {
|
|
2003
2003
|
var Le = [], ct = q.getAllBufferRanges();
|
|
2004
2004
|
if (!ct || ct.length === 0) return Le;
|
|
2005
|
-
var ge = $.getTime(), Ee = Math.max(0, ge - pe.get().streaming.buffer.bufferToKeep), $e = O.getRequests({ state: K.FRAGMENT_MODEL_EXECUTED, time: ge, threshold:
|
|
2005
|
+
var ge = $.getTime(), Ee = Math.max(0, ge - pe.get().streaming.buffer.bufferToKeep), $e = O.getRequests({ state: K.FRAGMENT_MODEL_EXECUTED, time: ge, threshold: we })[0];
|
|
2006
2006
|
if ($e) Ee = Math.min($e.startTime, Ee);
|
|
2007
2007
|
else if (ge === 0 && $.getIsDynamic()) return [];
|
|
2008
2008
|
if (ct.start(0) <= Ee) {
|
|
@@ -2511,7 +2511,7 @@ function Cc() {
|
|
|
2511
2511
|
} }, g(), w.on(n.Z.MANIFEST_VALIDITY_CHANGED, z, r), r;
|
|
2512
2512
|
}
|
|
2513
2513
|
T.__dashjs_factory_name = "RepresentationController";
|
|
2514
|
-
var b = E.Z.getClassFactory(T), Q = C(3106), Y = C(9326),
|
|
2514
|
+
var b = E.Z.getClassFactory(T), Q = C(3106), Y = C(9326), Ce = C(7473), tt = C(2594);
|
|
2515
2515
|
function ke(i, r) {
|
|
2516
2516
|
if (!(i instanceof r)) throw new TypeError("Cannot call a class as a function");
|
|
2517
2517
|
}
|
|
@@ -2744,7 +2744,7 @@ function Cc() {
|
|
|
2744
2744
|
de = Ke, q = !0;
|
|
2745
2745
|
}
|
|
2746
2746
|
return r = { initialize: function(Ke, Le, ct) {
|
|
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,
|
|
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, Ce.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: z, timelineConverter: g, dashConstants: e.Z, events: o.Z, eventBus: he, errors: X, isDynamic: _, adapter: L, segmentsController: Z }), y = function(ge, Ee) {
|
|
2748
2748
|
return ge ? ge !== t.Z.TEXT || Ee ? 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: z, settings: ee }) : ye(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, ct), y && y.initialize(Ke), (w = f(ce).create({ streamInfo: H, type: oe, mimeType: fe, adapter: L, dashMetrics: k, mediaPlayerModel: O, fragmentModel: A, abrController: ie, playbackController: z, textController: $, mediaController: ue, bufferController: y, representationController: F, settings: ee })).initialize(Le), de = 0, q = !1, G = !1;
|
|
2750
2750
|
}, getStreamId: Re, getType: xe, isUpdating: function() {
|
|
@@ -3079,7 +3079,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3079
3079
|
}
|
|
3080
3080
|
}
|
|
3081
3081
|
return r = { load: function(N) {
|
|
3082
|
-
R && R.modifyRequest ? (0,
|
|
3082
|
+
R && R.modifyRequest ? (0, Ce.k)(N, R).then(function() {
|
|
3083
3083
|
return F(N);
|
|
3084
3084
|
}) : F(N);
|
|
3085
3085
|
}, abort: function(N) {
|
|
@@ -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: si(R).create({ dashMetrics: F, mediaPlayerModel: w, errHandler: y, requestModifier: (0,
|
|
4364
|
+
return ce || (ce = K(R).create({ streamInfo: N, type: re, dashMetrics: F, fragmentLoader: si(R).create({ dashMetrics: F, mediaPlayerModel: w, errHandler: y, requestModifier: (0, Ce.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;
|
|
@@ -10295,7 +10295,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10295
10295
|
D || (D = Eo(Ge).getInstance()), O || (O = ec(Ge).create({ errHandler: V, manifestModel: ee, adapter: he, mediaController: U, baseURLController: fe, videoModel: Re, settings: ze })), L.setConfig({ capabilities: g, customParametersModel: oe, adapter: he, settings: ze, manifestModel: ee, errHandler: V }), D.setConfig({ capabilities: g, capabilitiesFilter: L, manifestLoader: ge, manifestModel: ee, mediaPlayerModel: H, customParametersModel: oe, protectionController: Z, textController: O, adapter: he, dashMetrics: k, errHandler: V, timelineConverter: N, videoModel: Re, playbackController: ie, serviceDescriptionController: z, contentSteeringController: ue, abrController: q, mediaController: U, settings: ze, baseURLController: fe, uriFragmentModel: xe, segmentBaseController: ut }), A.setConfig({ settings: ze, playbackController: ie, streamController: D, videoModel: Re, timelineConverter: N, adapter: he }), ie.setConfig({ streamController: D, serviceDescriptionController: z, dashMetrics: k, adapter: he, videoModel: Re, timelineConverter: N, settings: ze }), $.setConfig({ streamController: D, playbackController: ie, mediaPlayerModel: H, videoModel: Re, settings: ze }), q.setConfig({ streamController: D, domStorage: Oe, mediaPlayerModel: H, customParametersModel: oe, cmsdModel: Pe, dashMetrics: k, adapter: he, videoModel: Re, settings: ze }), pe.setConfig({ abrController: q, dashMetrics: k, playbackController: ie }), Pe.setConfig({}), q.initialize(), D.initialize(w, _), O.initialize(), A.initialize(), $.initialize(), pe.initialize(), Pe.initialize(), ue.initialize(), ut.initialize();
|
|
10296
10296
|
}
|
|
10297
10297
|
function Vt() {
|
|
10298
|
-
return Ju(Ge).create({ debug: vt, errHandler: V, dashMetrics: k, mediaPlayerModel: H, requestModifier: (0,
|
|
10298
|
+
return Ju(Ge).create({ debug: vt, errHandler: V, dashMetrics: k, mediaPlayerModel: H, requestModifier: (0, Ce.Z)(Ge).getInstance(), mssHandler: re, settings: ze });
|
|
10299
10299
|
}
|
|
10300
10300
|
function Xt() {
|
|
10301
10301
|
if (Z) return Z;
|
|
@@ -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, Ee, $e) {
|
|
10329
10329
|
var Ct = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : NaN;
|
|
10330
|
-
g || (g = (0, Vo.Z)(Ge).getInstance()).setConfig({ settings: ze }), V || (V = el(Ge).getInstance()), g.supportsMediaSource() ? (R || (R = !0, N = Gl(Ge).getInstance(), q || (q = cl(Ge).getInstance()).setConfig({ settings: ze }), G || (G = Kn(Ge).getInstance()), ie || (ie = d(Ge).getInstance()), U || (U = bu(Ge).getInstance()), D || (D = Eo(Ge).getInstance()), A || (A = yu(Ge).getInstance()), $ || ($ = _u(Ge).getInstance()), z || (z = vu(Ge).getInstance()), ue || (ue = Sr(Ge).getInstance()), L || (L = tl(Ge).getInstance()), he = Il(Ge).getInstance(), ee = il(Ge).getInstance(), pe = mn(Ge).getInstance(), Pe = Ft(Ge).getInstance(), k = Bl(Ge).getInstance({ settings: ze }), Oe = hl(Ge).getInstance({ settings: ze }), he.setConfig({ constants: t.Z, cea608parser: v(), errHandler: V, BASE64: qa }), fe || (fe = Cu(Ge).create()), fe.setConfig({ adapter: he, contentSteeringController: ue }), z.setConfig({ adapter: he }), ut || (ut = _l(Ge).getInstance({ dashMetrics: k, mediaPlayerModel: H, errHandler: V, baseURLController: fe, events: o.Z, eventBus: mt, debug: vt, boxParser: (0, bi.Z)(Ge).getInstance(), requestModifier: (0,
|
|
10330
|
+
g || (g = (0, Vo.Z)(Ge).getInstance()).setConfig({ settings: ze }), V || (V = el(Ge).getInstance()), g.supportsMediaSource() ? (R || (R = !0, N = Gl(Ge).getInstance(), q || (q = cl(Ge).getInstance()).setConfig({ settings: ze }), G || (G = Kn(Ge).getInstance()), ie || (ie = d(Ge).getInstance()), U || (U = bu(Ge).getInstance()), D || (D = Eo(Ge).getInstance()), A || (A = yu(Ge).getInstance()), $ || ($ = _u(Ge).getInstance()), z || (z = vu(Ge).getInstance()), ue || (ue = Sr(Ge).getInstance()), L || (L = tl(Ge).getInstance()), he = Il(Ge).getInstance(), ee = il(Ge).getInstance(), pe = mn(Ge).getInstance(), Pe = Ft(Ge).getInstance(), k = Bl(Ge).getInstance({ settings: ze }), Oe = hl(Ge).getInstance({ settings: ze }), he.setConfig({ constants: t.Z, cea608parser: v(), errHandler: V, BASE64: qa }), fe || (fe = Cu(Ge).create()), fe.setConfig({ adapter: he, contentSteeringController: ue }), z.setConfig({ adapter: he }), ut || (ut = _l(Ge).getInstance({ dashMetrics: k, mediaPlayerModel: H, errHandler: V, baseURLController: fe, events: o.Z, eventBus: mt, debug: vt, boxParser: (0, bi.Z)(Ge).getInstance(), requestModifier: (0, Ce.Z)(Ge).getInstance(), errors: X })), U.setConfig({ domStorage: Oe, settings: ze, customParametersModel: oe }), H.setConfig({ playbackController: ie, serviceDescriptionController: z }), ue.setConfig({ adapter: he, errHandler: V, dashMetrics: k, mediaPlayerModel: H, manifestModel: ee, serviceDescriptionController: z, eventBus: mt, requestModifier: (0, Ce.Z)(Ge).getInstance() }), Rt(), st($e === void 0 || $e), Ke()), ge && Qt(ge), Ee && on(Ee, Ct), 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 && (z = 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 && (ze = ge.settings));
|
|
10333
10333
|
}, on: function(ge, Ee, $e, Ct) {
|
|
@@ -10685,7 +10685,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10685
10685
|
ne.SSL_CONNECTION_FAILED_PREFIX = "SSL", ne.DNS_RESOLUTION_FAILED = "C00", ne.HOST_UNREACHABLE = "C01", ne.CONNECTION_REFUSED = "C02", ne.CONNECTION_ERROR = "C03", ne.CORRUPT_MEDIA_ISOBMFF = "M00", ne.CORRUPT_MEDIA_OTHER = "M01", ne.BASE_URL_CHANGED = "F00", ne.BECAME_REPORTER = "S00";
|
|
10686
10686
|
var v = ne, t = C(1180);
|
|
10687
10687
|
function e(b) {
|
|
10688
|
-
var Q, Y,
|
|
10688
|
+
var Q, Y, Ce = (b = b || {}).eventBus, tt = b.dashMetrics, ke = b.metricsConstants, Fe = b.events;
|
|
10689
10689
|
function Ne(Ot) {
|
|
10690
10690
|
var Ht = new v();
|
|
10691
10691
|
if (Y) {
|
|
@@ -10721,27 +10721,27 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10721
10721
|
Ne({ errorcode: Ht });
|
|
10722
10722
|
}
|
|
10723
10723
|
return Q = { initialize: function() {
|
|
10724
|
-
|
|
10724
|
+
Ce.on(Fe.MANIFEST_UPDATED, He, Q), Ce.on(Fe.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED, it, Q), Ce.on(Fe.METRIC_ADDED, ft, Q), Ce.on(Fe.METRIC_UPDATED, ft, Q), Ce.on(Fe.PLAYBACK_ERROR, Yt, Q), Ce.on(t.Z.BECAME_REPORTING_PLAYER, bt, Q);
|
|
10725
10725
|
}, reset: function() {
|
|
10726
|
-
|
|
10726
|
+
Ce.off(Fe.MANIFEST_UPDATED, He, Q), Ce.off(Fe.SERVICE_LOCATION_BASE_URL_BLACKLIST_CHANGED, it, Q), Ce.off(Fe.METRIC_ADDED, ft, Q), Ce.off(Fe.METRIC_UPDATED, ft, Q), Ce.off(Fe.PLAYBACK_ERROR, Yt, Q), Ce.off(t.Z.BECAME_REPORTING_PLAYER, bt, Q);
|
|
10727
10727
|
} };
|
|
10728
10728
|
}
|
|
10729
10729
|
e.__dashjs_factory_name = "DVBErrorsTranslator";
|
|
10730
10730
|
var p = dashjs.FactoryMaker.getSingletonFactory(e), m = C(2295);
|
|
10731
10731
|
function o(b) {
|
|
10732
10732
|
b = b || {};
|
|
10733
|
-
var Q, Y,
|
|
10733
|
+
var Q, Y, Ce = !1, tt = this.context, ke = b.mediaElement;
|
|
10734
10734
|
return Q = { initialize: function(Fe) {
|
|
10735
10735
|
Fe && Fe.length && (Fe.forEach(function(Ne) {
|
|
10736
10736
|
var He = Ne.starttime, it = He + Ne.duration;
|
|
10737
10737
|
Y.add(He, it);
|
|
10738
|
-
}),
|
|
10738
|
+
}), Ce = !!Fe[0]._useWallClockTime);
|
|
10739
10739
|
}, reset: function() {
|
|
10740
10740
|
Y.clear();
|
|
10741
10741
|
}, isEnabled: function() {
|
|
10742
10742
|
var Fe, Ne = Y.length;
|
|
10743
10743
|
if (!Ne) return !0;
|
|
10744
|
-
Fe =
|
|
10744
|
+
Fe = Ce ? (/* @__PURE__ */ new Date()).getTime() / 1e3 : ke.currentTime;
|
|
10745
10745
|
for (var He = 0; He < Ne; He += 1) {
|
|
10746
10746
|
var it = Y.start(He), bt = Y.end(He);
|
|
10747
10747
|
if (it <= Fe && Fe < bt) return !0;
|
|
@@ -10753,16 +10753,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10753
10753
|
var E = dashjs.FactoryMaker.getClassFactory(o);
|
|
10754
10754
|
function h() {
|
|
10755
10755
|
return { serialise: function b(Q) {
|
|
10756
|
-
var Y,
|
|
10756
|
+
var Y, Ce, tt = [], ke = [];
|
|
10757
10757
|
for (Y in Q) if (Q.hasOwnProperty(Y) && Y.indexOf("_") !== 0) {
|
|
10758
|
-
if ((
|
|
10759
|
-
if (!
|
|
10760
|
-
ke = [],
|
|
10758
|
+
if ((Ce = Q[Y]) == null && (Ce = ""), Array.isArray(Ce)) {
|
|
10759
|
+
if (!Ce.length) continue;
|
|
10760
|
+
ke = [], Ce.forEach(function(Fe) {
|
|
10761
10761
|
var Ne = Object.prototype.toString.call(Fe).slice(8, -1) !== "Object";
|
|
10762
10762
|
ke.push(Ne ? Fe : b(Fe));
|
|
10763
|
-
}),
|
|
10764
|
-
} else typeof
|
|
10765
|
-
tt.push(Y + "=" +
|
|
10763
|
+
}), Ce = ke.map(encodeURIComponent).join(",");
|
|
10764
|
+
} else typeof Ce == "string" ? Ce = encodeURIComponent(Ce) : Ce instanceof Date ? Ce = Ce.toISOString() : typeof Ce == "number" && (Ce = Math.round(Ce));
|
|
10765
|
+
tt.push(Y + "=" + Ce);
|
|
10766
10766
|
}
|
|
10767
10767
|
return tt.join("&");
|
|
10768
10768
|
} };
|
|
@@ -10770,13 +10770,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10770
10770
|
h.__dashjs_factory_name = "MetricSerialiser";
|
|
10771
10771
|
var n = dashjs.FactoryMaker.getSingletonFactory(h);
|
|
10772
10772
|
function c() {
|
|
10773
|
-
var b, Q, Y,
|
|
10773
|
+
var b, Q, Y, Ce = window.crypto || window.msCrypto, tt = Uint32Array, ke = Math.pow(2, 8 * tt.BYTES_PER_ELEMENT) - 1;
|
|
10774
10774
|
function Fe() {
|
|
10775
|
-
|
|
10775
|
+
Ce && (b || (b = new tt(10)), Ce.getRandomValues(b), Q = 0);
|
|
10776
10776
|
}
|
|
10777
10777
|
return Y = { random: function(Ne, He) {
|
|
10778
10778
|
var it;
|
|
10779
|
-
return Ne || (Ne = 0), He || (He = 1),
|
|
10779
|
+
return Ne || (Ne = 0), He || (He = 1), Ce ? (Q === b.length && Fe(), it = b[Q] / ke, Q += 1) : it = Math.random(), it * (He - Ne) + Ne;
|
|
10780
10780
|
} }, Fe(), Y;
|
|
10781
10781
|
}
|
|
10782
10782
|
c.__dashjs_factory_name = "RNG";
|
|
@@ -10784,7 +10784,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10784
10784
|
function x(b) {
|
|
10785
10785
|
var Q;
|
|
10786
10786
|
b = b || {};
|
|
10787
|
-
var Y,
|
|
10787
|
+
var Y, Ce, tt, ke, Fe, Ne, He, it = this.context, bt = [], ft = b.metricsConstants;
|
|
10788
10788
|
function Yt() {
|
|
10789
10789
|
ke = !1, Fe = !1, Ne = null, He = null;
|
|
10790
10790
|
}
|
|
@@ -10793,7 +10793,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10793
10793
|
var cn = Y.serialise(Bt);
|
|
10794
10794
|
Ot !== ft.DVB_ERRORS && (cn = "metricname=".concat(Ot, "&").concat(cn)), function(vn, Ln, Dn) {
|
|
10795
10795
|
var xn = new XMLHttpRequest();
|
|
10796
|
-
xn.withCredentials =
|
|
10796
|
+
xn.withCredentials = Ce.getXHRWithCredentialsForType(ft.HTTP_REQUEST_DVB_REPORTING_TYPE);
|
|
10797
10797
|
var Jn = function() {
|
|
10798
10798
|
var In = bt.indexOf(xn);
|
|
10799
10799
|
In !== -1 && (bt.splice(In, 1), !(xn.status >= 200 && xn.status < 300) && Dn());
|
|
@@ -10814,17 +10814,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10814
10814
|
ke || ((Bt = Ot.dvbProbability) && (Bt === 1e3 || Bt / 1e3 >= tt.random()) && (Fe = !0), ke = !0);
|
|
10815
10815
|
}, reset: function() {
|
|
10816
10816
|
Yt();
|
|
10817
|
-
} }, Y = n(it).getInstance(), tt = d(it).getInstance(),
|
|
10817
|
+
} }, Y = n(it).getInstance(), tt = d(it).getInstance(), Ce = (0, S.Z)(it).getInstance(), Yt(), Q;
|
|
10818
10818
|
}
|
|
10819
10819
|
x.__dashjs_factory_name = "DVBReporting";
|
|
10820
10820
|
var B = dashjs.FactoryMaker.getClassFactory(x);
|
|
10821
10821
|
function P(b) {
|
|
10822
10822
|
b = b || {};
|
|
10823
|
-
var Q, Y = { "urn:dvb:dash:reporting:2014": B },
|
|
10823
|
+
var Q, Y = { "urn:dvb:dash:reporting:2014": B }, Ce = this.context, tt = b.debug ? b.debug.getLogger(Q) : {}, ke = b.metricsConstants, Fe = b.mediaPlayerModel || {};
|
|
10824
10824
|
return { create: function(Ne, He) {
|
|
10825
10825
|
var it;
|
|
10826
10826
|
try {
|
|
10827
|
-
(it = Y[Ne.schemeIdUri](
|
|
10827
|
+
(it = Y[Ne.schemeIdUri](Ce).create({ metricsConstants: ke, mediaPlayerModel: Fe })).initialize(Ne, He);
|
|
10828
10828
|
} catch (bt) {
|
|
10829
10829
|
it = null, tt.error("ReportingFactory: could not create Reporting with schemeIdUri ".concat(Ne.schemeIdUri, " (").concat(bt.message, ")"));
|
|
10830
10830
|
}
|
|
@@ -10839,18 +10839,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10839
10839
|
var J = dashjs.FactoryMaker.getSingletonFactory(P);
|
|
10840
10840
|
function M(b) {
|
|
10841
10841
|
var Q = [], Y = J(this.context).getInstance(b);
|
|
10842
|
-
return { initialize: function(
|
|
10843
|
-
|
|
10842
|
+
return { initialize: function(Ce, tt) {
|
|
10843
|
+
Ce.some(function(ke) {
|
|
10844
10844
|
var Fe = Y.create(ke, tt);
|
|
10845
10845
|
if (Fe) return Q.push(Fe), !0;
|
|
10846
10846
|
});
|
|
10847
10847
|
}, reset: function() {
|
|
10848
|
-
Q.forEach(function(
|
|
10849
|
-
return
|
|
10848
|
+
Q.forEach(function(Ce) {
|
|
10849
|
+
return Ce.reset();
|
|
10850
10850
|
}), Q = [];
|
|
10851
|
-
}, report: function(
|
|
10851
|
+
}, report: function(Ce, tt) {
|
|
10852
10852
|
Q.forEach(function(ke) {
|
|
10853
|
-
return ke.report(
|
|
10853
|
+
return ke.report(Ce, tt);
|
|
10854
10854
|
});
|
|
10855
10855
|
} };
|
|
10856
10856
|
}
|
|
@@ -10858,8 +10858,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10858
10858
|
var K = dashjs.FactoryMaker.getClassFactory(M);
|
|
10859
10859
|
function ae() {
|
|
10860
10860
|
return { reconstructFullMetricName: function(b, Q, Y) {
|
|
10861
|
-
var
|
|
10862
|
-
return Q && (
|
|
10861
|
+
var Ce = b;
|
|
10862
|
+
return Q && (Ce += "(" + Q, Y && Y.length && (Ce += "," + Y), Ce += ")"), Ce;
|
|
10863
10863
|
}, validateN: function(b) {
|
|
10864
10864
|
if (!b) throw new Error("missing n");
|
|
10865
10865
|
if (isNaN(b)) throw new Error("n is NaN");
|
|
@@ -10870,7 +10870,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10870
10870
|
ae.__dashjs_factory_name = "HandlerHelpers";
|
|
10871
10871
|
var j = dashjs.FactoryMaker.getSingletonFactory(ae);
|
|
10872
10872
|
function te(b) {
|
|
10873
|
-
var Q, Y,
|
|
10873
|
+
var Q, Y, Ce, tt, ke;
|
|
10874
10874
|
b = b || {};
|
|
10875
10875
|
var Fe = this.context, Ne = j(Fe).getInstance(), He = [], it = b.metricsConstants;
|
|
10876
10876
|
function bt() {
|
|
@@ -10885,10 +10885,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10885
10885
|
return;
|
|
10886
10886
|
}
|
|
10887
10887
|
}();
|
|
10888
|
-
ft && ke !== ft.t && (ke = ft.t, Q.report(
|
|
10888
|
+
ft && ke !== ft.t && (ke = ft.t, Q.report(Ce, ft));
|
|
10889
10889
|
}
|
|
10890
10890
|
return { initialize: function(ft, Yt, Ot) {
|
|
10891
|
-
Yt && (Y = Ne.validateN(Ot), Q = Yt,
|
|
10891
|
+
Yt && (Y = Ne.validateN(Ot), Q = Yt, Ce = Ne.reconstructFullMetricName(ft, Ot), tt = setInterval(bt, Y));
|
|
10892
10892
|
}, reset: function() {
|
|
10893
10893
|
clearInterval(tt), tt = null, Y = 0, Q = null, ke = null;
|
|
10894
10894
|
}, handleNewMetric: function(ft, Yt, Ot) {
|
|
@@ -10897,7 +10897,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10897
10897
|
}
|
|
10898
10898
|
te.__dashjs_factory_name = "BufferLevelHandler";
|
|
10899
10899
|
var le = dashjs.FactoryMaker.getClassFactory(te), Se = dashjs.FactoryMaker.getClassFactory(function(b) {
|
|
10900
|
-
var Q, Y = (b = b || {}).eventBus,
|
|
10900
|
+
var Q, Y = (b = b || {}).eventBus, Ce = b.metricsConstants;
|
|
10901
10901
|
function tt() {
|
|
10902
10902
|
Y.off(t.Z.METRICS_INITIALISATION_COMPLETE, tt, this), Y.trigger(t.Z.BECAME_REPORTING_PLAYER);
|
|
10903
10903
|
}
|
|
@@ -10906,11 +10906,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10906
10906
|
}, reset: function() {
|
|
10907
10907
|
Q = null;
|
|
10908
10908
|
}, handleNewMetric: function(ke, Fe) {
|
|
10909
|
-
ke ===
|
|
10909
|
+
ke === Ce.DVB_ERRORS && Q && Q.report(ke, Fe);
|
|
10910
10910
|
} };
|
|
10911
10911
|
});
|
|
10912
10912
|
function X(b) {
|
|
10913
|
-
var Q, Y,
|
|
10913
|
+
var Q, Y, Ce, tt, ke;
|
|
10914
10914
|
b = b || {};
|
|
10915
10915
|
var Fe = [], Ne = j(this.context).getInstance(), He = b.metricsConstants;
|
|
10916
10916
|
function it() {
|
|
@@ -10918,31 +10918,31 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10918
10918
|
bt.length && Q && Q.report(tt, bt), Fe = [];
|
|
10919
10919
|
}
|
|
10920
10920
|
return { initialize: function(bt, ft, Yt, Ot) {
|
|
10921
|
-
ft && (Y = Ne.validateN(Yt), Q = ft, Ot && Ot.length && (
|
|
10921
|
+
ft && (Y = Ne.validateN(Yt), Q = ft, Ot && Ot.length && (Ce = Ot), tt = Ne.reconstructFullMetricName(bt, Yt, Ot), ke = setInterval(it, Y));
|
|
10922
10922
|
}, reset: function() {
|
|
10923
|
-
clearInterval(ke), ke = null, Y = null,
|
|
10923
|
+
clearInterval(ke), ke = null, Y = null, Ce = null, Fe = [], Q = null;
|
|
10924
10924
|
}, handleNewMetric: function(bt, ft) {
|
|
10925
|
-
bt === He.HTTP_REQUEST && (
|
|
10925
|
+
bt === He.HTTP_REQUEST && (Ce && Ce !== ft.type || Fe.push(ft));
|
|
10926
10926
|
} };
|
|
10927
10927
|
}
|
|
10928
10928
|
X.__dashjs_factory_name = "HttpListHandler";
|
|
10929
10929
|
var De = dashjs.FactoryMaker.getClassFactory(X);
|
|
10930
10930
|
function Ue() {
|
|
10931
10931
|
var b, Q;
|
|
10932
|
-
return { initialize: function(Y,
|
|
10933
|
-
b = Y, Q =
|
|
10932
|
+
return { initialize: function(Y, Ce) {
|
|
10933
|
+
b = Y, Q = Ce;
|
|
10934
10934
|
}, reset: function() {
|
|
10935
10935
|
Q = null, b = void 0;
|
|
10936
|
-
}, handleNewMetric: function(Y,
|
|
10937
|
-
Y === b && Q && Q.report(b,
|
|
10936
|
+
}, handleNewMetric: function(Y, Ce) {
|
|
10937
|
+
Y === b && Q && Q.report(b, Ce);
|
|
10938
10938
|
} };
|
|
10939
10939
|
}
|
|
10940
10940
|
Ue.__dashjs_factory_name = "GenericMetricHandler";
|
|
10941
10941
|
var We = dashjs.FactoryMaker.getClassFactory(Ue);
|
|
10942
10942
|
function be(b) {
|
|
10943
|
-
var Q, Y = (b = b || {}).debug ? b.debug.getLogger(Q) : {},
|
|
10943
|
+
var Q, Y = (b = b || {}).debug ? b.debug.getLogger(Q) : {}, Ce = /([a-zA-Z]*)(\(([0-9]*)(\,\s*([a-zA-Z]*))?\))?/, tt = this.context, ke = { BufferLevel: le, DVBErrors: Se, HttpList: De, PlayList: We, RepSwitchList: We, TcpList: We };
|
|
10944
10944
|
return { create: function(Fe, Ne) {
|
|
10945
|
-
var He, it = Fe.match(
|
|
10945
|
+
var He, it = Fe.match(Ce);
|
|
10946
10946
|
if (it) {
|
|
10947
10947
|
try {
|
|
10948
10948
|
(He = ke[it[1]](tt).create({ eventBus: b.eventBus, metricsConstants: b.metricsConstants })).initialize(it[1], Ne, it[3], it[5]);
|
|
@@ -10961,7 +10961,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10961
10961
|
var Ze = dashjs.FactoryMaker.getSingletonFactory(be);
|
|
10962
10962
|
function Qe(b) {
|
|
10963
10963
|
b = b || {};
|
|
10964
|
-
var Q, Y = [],
|
|
10964
|
+
var Q, Y = [], Ce = this.context, tt = b.eventBus, ke = b.events, Fe = Ze(Ce).getInstance({ debug: b.debug, eventBus: b.eventBus, metricsConstants: b.metricsConstants });
|
|
10965
10965
|
function Ne(He) {
|
|
10966
10966
|
Y.forEach(function(it) {
|
|
10967
10967
|
it.handleNewMetric(He.metric, He.value, He.mediaType);
|
|
@@ -10985,22 +10985,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
10985
10985
|
Qe.__dashjs_factory_name = "MetricsHandlersController";
|
|
10986
10986
|
var ot = dashjs.FactoryMaker.getClassFactory(Qe);
|
|
10987
10987
|
function Ae(b) {
|
|
10988
|
-
var Q, Y,
|
|
10988
|
+
var Q, Y, Ce;
|
|
10989
10989
|
b = b || {};
|
|
10990
10990
|
var tt = this.context;
|
|
10991
10991
|
function ke() {
|
|
10992
|
-
Q && Q.reset(), Y && Y.reset(),
|
|
10992
|
+
Q && Q.reset(), Y && Y.reset(), Ce && Ce.reset();
|
|
10993
10993
|
}
|
|
10994
10994
|
return { initialize: function(Fe) {
|
|
10995
10995
|
try {
|
|
10996
|
-
(
|
|
10996
|
+
(Ce = E(tt).create({ mediaElement: b.mediaElement })).initialize(Fe.Range), (Y = K(tt).create({ debug: b.debug, metricsConstants: b.metricsConstants, mediaPlayerModel: b.mediaPlayerModel })).initialize(Fe.Reporting, Ce), (Q = ot(tt).create({ debug: b.debug, eventBus: b.eventBus, metricsConstants: b.metricsConstants, events: b.events })).initialize(Fe.metrics, Y);
|
|
10997
10997
|
} catch (Ne) {
|
|
10998
10998
|
throw ke(), Ne;
|
|
10999
10999
|
}
|
|
11000
11000
|
}, reset: ke };
|
|
11001
11001
|
}
|
|
11002
11002
|
Ae.__dashjs_factory_name = "MetricsController";
|
|
11003
|
-
var
|
|
11003
|
+
var we = dashjs.FactoryMaker.getClassFactory(Ae), Tt = function b() {
|
|
11004
11004
|
(function(Q, Y) {
|
|
11005
11005
|
if (!(Q instanceof Y)) throw new TypeError("Cannot call a class as a function");
|
|
11006
11006
|
})(this, b), this.metrics = "", this.Range = [], this.Reporting = [];
|
|
@@ -11015,16 +11015,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11015
11015
|
};
|
|
11016
11016
|
function at(b) {
|
|
11017
11017
|
var Q = (b = b || {}).adapter, Y = b.constants;
|
|
11018
|
-
return { getMetrics: function(
|
|
11018
|
+
return { getMetrics: function(Ce) {
|
|
11019
11019
|
var tt = [];
|
|
11020
|
-
return
|
|
11021
|
-
var Fe = new Tt(), Ne = Q.getIsDynamic(
|
|
11020
|
+
return Ce && Ce.Metrics_asArray && Ce.Metrics_asArray.forEach(function(ke) {
|
|
11021
|
+
var Fe = new Tt(), Ne = Q.getIsDynamic(Ce);
|
|
11022
11022
|
ke.hasOwnProperty("metrics") && (Fe.metrics = ke.metrics, ke.Range_asArray && ke.Range_asArray.forEach(function(He) {
|
|
11023
11023
|
var it = new _t();
|
|
11024
11024
|
it.starttime = function(bt, ft, Yt) {
|
|
11025
11025
|
var Ot, Ht, Bt = 0;
|
|
11026
11026
|
return ft ? Bt = Q.getAvailabilityStartTime(bt) / 1e3 : (Ot = Q.getRegularPeriods(bt)).length && (Bt = Ot[0].start), Ht = Bt, Yt && Yt.hasOwnProperty(Y.START_TIME) && (Ht += Yt.starttime), Ht;
|
|
11027
|
-
}(
|
|
11027
|
+
}(Ce, Ne, He), He.hasOwnProperty("duration") ? it.duration = He.duration : it.duration = Q.getDuration(Ce), it._useWallClockTime = Ne, Fe.Range.push(it);
|
|
11028
11028
|
}), ke.Reporting_asArray && (ke.Reporting_asArray.forEach(function(He) {
|
|
11029
11029
|
var it = new qe();
|
|
11030
11030
|
He.hasOwnProperty(Y.SCHEME_ID_URI) && (it.schemeIdUri = He.schemeIdUri, He.hasOwnProperty("value") && (it.value = He.value), He.hasOwnProperty(Y.DVB_REPORTING_URL) && (it.dvbReportingUrl = He[Y.DVB_REPORTING_URL]), He.hasOwnProperty(Y.DVB_PROBABILITY) && (it.dvbProbability = He[Y.DVB_PROBABILITY]), Fe.Reporting.push(it));
|
|
@@ -11037,15 +11037,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11037
11037
|
function ye(b) {
|
|
11038
11038
|
var Q;
|
|
11039
11039
|
b = b || {};
|
|
11040
|
-
var Y = {},
|
|
11040
|
+
var Y = {}, Ce = this.context, tt = b.eventBus, ke = b.events;
|
|
11041
11041
|
function Fe(He) {
|
|
11042
11042
|
if (!He.error) {
|
|
11043
11043
|
var it = Object.keys(Y);
|
|
11044
|
-
me(
|
|
11044
|
+
me(Ce).getInstance({ adapter: b.adapter, constants: b.constants }).getMetrics(He.manifest).forEach(function(bt) {
|
|
11045
11045
|
var ft = JSON.stringify(bt);
|
|
11046
11046
|
if (Y.hasOwnProperty(ft)) it.splice(ft, 1);
|
|
11047
11047
|
else try {
|
|
11048
|
-
var Yt = Ce
|
|
11048
|
+
var Yt = we(Ce).create(b);
|
|
11049
11049
|
Yt.initialize(bt), Y[ft] = Yt;
|
|
11050
11050
|
} catch {
|
|
11051
11051
|
}
|
|
@@ -11744,7 +11744,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11744
11744
|
}
|
|
11745
11745
|
be.__dashjs_factory_name = "KeySystemClearKey";
|
|
11746
11746
|
var Ze = dashjs.FactoryMaker.getSingletonFactory(be), Qe = "1077efec-c0b2-4d02-ace3-3c1e52e2fb4b", ot = X.CLEARKEY_KEYSTEM_STRING, Ae = "urn:uuid:" + Qe;
|
|
11747
|
-
function
|
|
11747
|
+
function we(Nt) {
|
|
11748
11748
|
var It, wt = Nt.BASE64, Ve = Nt.debug.getLogger(It);
|
|
11749
11749
|
return { uuid: Qe, schemeIdURI: Ae, systemString: ot, getInitData: function(pt) {
|
|
11750
11750
|
return t.parseInitDataFromContentProtection(pt, wt);
|
|
@@ -11769,8 +11769,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11769
11769
|
return dt;
|
|
11770
11770
|
} };
|
|
11771
11771
|
}
|
|
11772
|
-
|
|
11773
|
-
var Tt = dashjs.FactoryMaker.getSingletonFactory(
|
|
11772
|
+
we.__dashjs_factory_name = "KeySystemW3CClearKey";
|
|
11773
|
+
var Tt = dashjs.FactoryMaker.getSingletonFactory(we), _t = "edef8ba9-79d6-4ace-a3c8-27dcd51d21ed", qe = X.WIDEVINE_KEYSTEM_STRING, at = "urn:uuid:" + _t;
|
|
11774
11774
|
function me(Nt) {
|
|
11775
11775
|
var It = (Nt = Nt || {}).BASE64;
|
|
11776
11776
|
return { uuid: _t, schemeIdURI: at, systemString: qe, getInitData: function(wt) {
|
|
@@ -11875,7 +11875,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11875
11875
|
}
|
|
11876
11876
|
Q.__dashjs_factory_name = "DRMToday";
|
|
11877
11877
|
var Y = dashjs.FactoryMaker.getSingletonFactory(Q);
|
|
11878
|
-
function
|
|
11878
|
+
function Ce() {
|
|
11879
11879
|
var Nt = "http://schemas.xmlsoap.org/soap/envelope/";
|
|
11880
11880
|
function It(pt) {
|
|
11881
11881
|
var Xe = String.fromCharCode.apply(null, new Uint8Array(pt));
|
|
@@ -11910,8 +11910,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
11910
11910
|
return Ve.call(this, pt);
|
|
11911
11911
|
} };
|
|
11912
11912
|
}
|
|
11913
|
-
|
|
11914
|
-
var tt = J.Z.getSingletonFactory(
|
|
11913
|
+
Ce.__dashjs_factory_name = "PlayReady";
|
|
11914
|
+
var tt = J.Z.getSingletonFactory(Ce);
|
|
11915
11915
|
function ke() {
|
|
11916
11916
|
return { getServerURLFromMessage: function(Nt) {
|
|
11917
11917
|
return Nt;
|
|
@@ -12585,11 +12585,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12585
12585
|
if (S.getCurrentBufferLevel(j) > X) return J;
|
|
12586
12586
|
var De = E[j][Se.index];
|
|
12587
12587
|
if (De === null || Se.firstByteDate === null || h.hasOwnProperty(De.id)) return J;
|
|
12588
|
-
if (De.firstByteTime === void 0 && (n[j] = [], De.firstByteTime = Se.firstByteDate.getTime(), De.segmentDuration = Se.duration, De.bytesTotal = Se.bytesTotal, De.id = Se.index), De.bytesLoaded = Se.bytesLoaded, De.elapsedTime = (/* @__PURE__ */ new Date()).getTime() - De.firstByteTime, De.bytesLoaded > 0 && De.elapsedTime > 0 && function(
|
|
12589
|
-
n[
|
|
12588
|
+
if (De.firstByteTime === void 0 && (n[j] = [], De.firstByteTime = Se.firstByteDate.getTime(), De.segmentDuration = Se.duration, De.bytesTotal = Se.bytesTotal, De.id = Se.index), De.bytesLoaded = Se.bytesLoaded, De.elapsedTime = (/* @__PURE__ */ new Date()).getTime() - De.firstByteTime, De.bytesLoaded > 0 && De.elapsedTime > 0 && function(we, Tt) {
|
|
12589
|
+
n[we] = n[we] || [], n[we].push(Tt);
|
|
12590
12590
|
}(j, Math.round(8 * De.bytesLoaded / De.elapsedTime)), n[j].length >= x.get().streaming.abr.abrRulesParameters.abandonRequestsRule.minLengthToAverage && De.elapsedTime > x.get().streaming.abr.abrRulesParameters.abandonRequestsRule.graceTimeThreshold && De.bytesLoaded < De.bytesTotal) {
|
|
12591
|
-
var Ue = n[j].reduce(function(
|
|
12592
|
-
return
|
|
12591
|
+
var Ue = n[j].reduce(function(we, Tt) {
|
|
12592
|
+
return we + Tt;
|
|
12593
12593
|
}, 0);
|
|
12594
12594
|
if (De.measuredBandwidthInKbps = Math.round(Ue / n[j].length), De.estimatedTimeOfDownload = +(8 * De.bytesTotal / De.measuredBandwidthInKbps / 1e3).toFixed(2), De.estimatedTimeOfDownload < De.segmentDuration * x.get().streaming.abr.abrRulesParameters.abandonRequestsRule.abandonMultiplier || P.getRepresentationInfo().quality === 0) return J;
|
|
12595
12595
|
if (!h.hasOwnProperty(De.id)) {
|
|
@@ -12607,66 +12607,66 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12607
12607
|
function c(d) {
|
|
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
|
-
function ae(Ae,
|
|
12610
|
+
function ae(Ae, we, Tt) {
|
|
12611
12611
|
var _t = Tt.reduce(function(me, ye, je) {
|
|
12612
12612
|
return ye > Tt[me] ? je : me;
|
|
12613
12613
|
}, 0);
|
|
12614
12614
|
if (_t === 0) return null;
|
|
12615
|
-
var qe = Math.max(Ae, n + 2 *
|
|
12615
|
+
var qe = Math.max(Ae, n + 2 * we.length), at = (Tt[_t] - 1) / (qe / n - 1);
|
|
12616
12616
|
return { gp: at, Vp: n / at };
|
|
12617
12617
|
}
|
|
12618
12618
|
function j(Ae) {
|
|
12619
12619
|
Ae.placeholderBuffer = 0, Ae.mostAdvancedSegmentStart = NaN, Ae.lastSegmentWasReplacement = !1, Ae.lastSegmentStart = NaN, Ae.lastSegmentDurationS = NaN, Ae.lastSegmentRequestTimeMs = NaN, Ae.lastSegmentFinishTimeMs = NaN;
|
|
12620
12620
|
}
|
|
12621
|
-
function te(Ae,
|
|
12621
|
+
function te(Ae, we) {
|
|
12622
12622
|
var Tt = M.getStableBufferTime();
|
|
12623
12623
|
if (Ae.stableBufferTime !== Tt) {
|
|
12624
12624
|
var _t = ae(Tt, Ae.bitrates, Ae.utilities);
|
|
12625
12625
|
if (_t.Vp !== Ae.Vp || _t.gp !== Ae.gp) {
|
|
12626
|
-
var qe = J.getCurrentBufferLevel(
|
|
12626
|
+
var qe = J.getCurrentBufferLevel(we), at = qe + Ae.placeholderBuffer;
|
|
12627
12627
|
at -= n, at *= _t.Vp / Ae.Vp, at += n, Ae.stableBufferTime = Tt, Ae.Vp = _t.Vp, Ae.gp = _t.gp, Ae.placeholderBuffer = Math.max(0, at - qe);
|
|
12628
12628
|
}
|
|
12629
12629
|
}
|
|
12630
12630
|
}
|
|
12631
|
-
function le(Ae,
|
|
12632
|
-
return Ae.Vp * (Ae.utilities[
|
|
12631
|
+
function le(Ae, we) {
|
|
12632
|
+
return Ae.Vp * (Ae.utilities[we] + Ae.gp);
|
|
12633
12633
|
}
|
|
12634
|
-
function Se(Ae,
|
|
12635
|
-
for (var Tt = Ae.bitrates[
|
|
12634
|
+
function Se(Ae, we) {
|
|
12635
|
+
for (var Tt = Ae.bitrates[we], _t = Ae.utilities[we], qe = 0, at = we - 1; at >= 0; --at) if (Ae.utilities[at] < Ae.utilities[we]) {
|
|
12636
12636
|
var me = Ae.bitrates[at], ye = Ae.utilities[at], je = Ae.Vp * (Ae.gp + (Tt * ye - me * _t) / (Tt - me));
|
|
12637
12637
|
qe = Math.max(qe, je);
|
|
12638
12638
|
}
|
|
12639
12639
|
return qe;
|
|
12640
12640
|
}
|
|
12641
12641
|
function X(Ae) {
|
|
12642
|
-
var
|
|
12643
|
-
for (var Tt in
|
|
12642
|
+
var we = Ae.mediaType === h.Z.AUDIO ? [h.Z.AUDIO] : B;
|
|
12643
|
+
for (var Tt in we) B.hasOwnProperty(Tt) && B[Tt].state === 2 && (B[Tt].placeholderBuffer = 0);
|
|
12644
12644
|
}
|
|
12645
12645
|
function De() {
|
|
12646
12646
|
for (var Ae in B) if (B.hasOwnProperty(Ae)) {
|
|
12647
|
-
var
|
|
12648
|
-
|
|
12647
|
+
var we = B[Ae];
|
|
12648
|
+
we.state !== 0 && (we.state = 1, j(we));
|
|
12649
12649
|
}
|
|
12650
12650
|
}
|
|
12651
12651
|
function Ue(Ae) {
|
|
12652
12652
|
if (Ae && Ae.chunk && Ae.chunk.mediaInfo) {
|
|
12653
|
-
var
|
|
12654
|
-
if (
|
|
12653
|
+
var we = B[Ae.chunk.mediaInfo.type];
|
|
12654
|
+
if (we && we.state !== 0) {
|
|
12655
12655
|
var Tt = Ae.chunk.start;
|
|
12656
|
-
isNaN(
|
|
12656
|
+
isNaN(we.mostAdvancedSegmentStart) || Tt > we.mostAdvancedSegmentStart ? (we.mostAdvancedSegmentStart = Tt, we.lastSegmentWasReplacement = !1) : we.lastSegmentWasReplacement = !0, we.lastSegmentStart = Tt, we.lastSegmentDurationS = Ae.chunk.duration, we.lastQuality = Ae.chunk.quality, be(we, Ae.chunk.mediaInfo.type);
|
|
12657
12657
|
}
|
|
12658
12658
|
}
|
|
12659
12659
|
}
|
|
12660
12660
|
function We(Ae) {
|
|
12661
12661
|
if (Ae && Ae.metric === ne.Z.HTTP_REQUEST && Ae.value && Ae.value.type === e.w.MEDIA_SEGMENT_TYPE && Ae.value.trace && Ae.value.trace.length) {
|
|
12662
|
-
var
|
|
12663
|
-
|
|
12662
|
+
var we = B[Ae.mediaType];
|
|
12663
|
+
we && we.state !== 0 && (we.lastSegmentRequestTimeMs = Ae.value.trequest.getTime(), we.lastSegmentFinishTimeMs = Ae.value._tfinish.getTime(), be(we, Ae.mediaType));
|
|
12664
12664
|
}
|
|
12665
12665
|
}
|
|
12666
|
-
function be(Ae,
|
|
12666
|
+
function be(Ae, we) {
|
|
12667
12667
|
if (!isNaN(Ae.lastSegmentStart) && !isNaN(Ae.lastSegmentRequestTimeMs) && !isNaN(Ae.placeholderBuffer)) {
|
|
12668
12668
|
if (Ae.placeholderBuffer *= 0.99, !isNaN(Ae.lastSegmentFinishTimeMs)) {
|
|
12669
|
-
var Tt = J.getCurrentBufferLevel(
|
|
12669
|
+
var Tt = J.getCurrentBufferLevel(we) + 1e-3 * (Ae.lastSegmentFinishTimeMs - Ae.lastSegmentRequestTimeMs), _t = le(Ae, Ae.lastQuality), qe = Math.max(0, _t - Tt);
|
|
12670
12670
|
Ae.placeholderBuffer = Math.min(qe, Ae.placeholderBuffer);
|
|
12671
12671
|
}
|
|
12672
12672
|
Ae.lastSegmentWasReplacement && !isNaN(Ae.lastSegmentDurationS) && (Ae.placeholderBuffer += Ae.lastSegmentDurationS), Ae.lastSegmentStart = NaN, Ae.lastSegmentRequestTimeMs = NaN;
|
|
@@ -12674,18 +12674,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12674
12674
|
}
|
|
12675
12675
|
function Ze(Ae) {
|
|
12676
12676
|
if (Ae) {
|
|
12677
|
-
var
|
|
12678
|
-
|
|
12677
|
+
var we = B[Ae.mediaType];
|
|
12678
|
+
we && we.state !== 0 && (we.abrQuality = Ae.newQuality);
|
|
12679
12679
|
}
|
|
12680
12680
|
}
|
|
12681
12681
|
function Qe(Ae) {
|
|
12682
12682
|
if (Ae) {
|
|
12683
|
-
var
|
|
12684
|
-
if (
|
|
12683
|
+
var we = B[Ae.mediaType];
|
|
12684
|
+
if (we && we.state !== 0) {
|
|
12685
12685
|
var Tt, _t = J.getCurrentBufferLevel(Ae.mediaType);
|
|
12686
|
-
Tt =
|
|
12686
|
+
Tt = we.abrQuality > 0 ? Se(we, we.abrQuality) : n;
|
|
12687
12687
|
var qe = Math.max(0, Tt - _t);
|
|
12688
|
-
|
|
12688
|
+
we.placeholderBuffer = Math.min(we.placeholderBuffer, qe);
|
|
12689
12689
|
}
|
|
12690
12690
|
}
|
|
12691
12691
|
}
|
|
@@ -12693,10 +12693,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12693
12693
|
B = {};
|
|
12694
12694
|
}
|
|
12695
12695
|
return S = { getMaxIndex: function(Ae) {
|
|
12696
|
-
var
|
|
12697
|
-
if (!(Ae && Ae.hasOwnProperty("getMediaInfo") && Ae.hasOwnProperty("getMediaType") && Ae.hasOwnProperty("getScheduleController") && Ae.hasOwnProperty("getStreamInfo") && Ae.hasOwnProperty("getAbrController") && Ae.hasOwnProperty("useBufferOccupancyABR"))) return
|
|
12696
|
+
var we = (0, v.Z)(P).create();
|
|
12697
|
+
if (!(Ae && Ae.hasOwnProperty("getMediaInfo") && Ae.hasOwnProperty("getMediaType") && Ae.hasOwnProperty("getScheduleController") && Ae.hasOwnProperty("getStreamInfo") && Ae.hasOwnProperty("getAbrController") && Ae.hasOwnProperty("useBufferOccupancyABR"))) return we;
|
|
12698
12698
|
var Tt = Ae.getMediaInfo(), _t = Ae.getMediaType(), qe = Ae.getScheduleController(), at = Ae.getStreamInfo(), me = Ae.getAbrController(), ye = me.getThroughputHistory(), je = at ? at.id : null, f = at && at.manifestInfo && at.manifestInfo.isDynamic, u = Ae.useBufferOccupancyABR();
|
|
12699
|
-
if (
|
|
12699
|
+
if (we.reason = we.reason || {}, !u) return we;
|
|
12700
12700
|
qe.setTimeToLoadDelay(0);
|
|
12701
12701
|
var T = function(Ne) {
|
|
12702
12702
|
var He = Ne.getMediaType(), it = B[He];
|
|
@@ -12715,12 +12715,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12715
12715
|
return Bt ? (ft.state = 1, ft.bitrates = Yt, ft.utilities = Ot, ft.stableBufferTime = Ht, ft.Vp = Bt.Vp, ft.gp = Bt.gp, ft.lastQuality = 0, j(ft)) : ft.state = 0, ft;
|
|
12716
12716
|
}(Ne), B[He] = it), it;
|
|
12717
12717
|
}(Ae);
|
|
12718
|
-
if (T.state === 0) return
|
|
12719
|
-
var b, Q = J.getCurrentBufferLevel(_t), Y = ye.getAverageThroughput(_t, f),
|
|
12720
|
-
if (
|
|
12718
|
+
if (T.state === 0) return we;
|
|
12719
|
+
var b, Q = J.getCurrentBufferLevel(_t), Y = ye.getAverageThroughput(_t, f), Ce = ye.getSafeAverageThroughput(_t, f), tt = ye.getAverageLatency(_t);
|
|
12720
|
+
if (we.reason.state = T.state, we.reason.throughput = Y, we.reason.latency = tt, isNaN(Y)) return we;
|
|
12721
12721
|
switch (T.state) {
|
|
12722
12722
|
case 1:
|
|
12723
|
-
b = me.getQualityForBitrate(Tt,
|
|
12723
|
+
b = me.getQualityForBitrate(Tt, Ce, je, tt), we.quality = b, we.reason.throughput = Ce, T.placeholderBuffer = Math.max(0, Se(T, b) - Q), T.lastQuality = b, !isNaN(T.lastSegmentDurationS) && Q >= T.lastSegmentDurationS && (T.state = 2);
|
|
12724
12724
|
break;
|
|
12725
12725
|
case 2:
|
|
12726
12726
|
(function(Ne, He) {
|
|
@@ -12742,15 +12742,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12742
12742
|
}
|
|
12743
12743
|
return bt;
|
|
12744
12744
|
}(T, Q + T.placeholderBuffer);
|
|
12745
|
-
var ke = me.getQualityForBitrate(Tt,
|
|
12745
|
+
var ke = me.getQualityForBitrate(Tt, Ce, je, tt);
|
|
12746
12746
|
b > T.lastQuality && b > ke && (b = Math.max(ke, T.lastQuality));
|
|
12747
12747
|
var Fe = Math.max(0, Q + T.placeholderBuffer - le(T, b));
|
|
12748
|
-
Fe <= T.placeholderBuffer ? (T.placeholderBuffer -= Fe, Fe = 0) : (Fe -= T.placeholderBuffer, T.placeholderBuffer = 0, b < me.getMaxAllowedIndexFor(_t, je) ? qe.setTimeToLoadDelay(1e3 * Fe) : Fe = 0),
|
|
12748
|
+
Fe <= T.placeholderBuffer ? (T.placeholderBuffer -= Fe, Fe = 0) : (Fe -= T.placeholderBuffer, T.placeholderBuffer = 0, b < me.getMaxAllowedIndexFor(_t, je) ? qe.setTimeToLoadDelay(1e3 * Fe) : Fe = 0), we.quality = b, we.reason.throughput = Y, we.reason.latency = tt, we.reason.bufferLevel = Q, we.reason.placeholderBuffer = T.placeholderBuffer, we.reason.delay = Fe, T.lastQuality = b;
|
|
12749
12749
|
break;
|
|
12750
12750
|
default:
|
|
12751
|
-
x.debug("BOLA ABR rule invoked in bad state."),
|
|
12751
|
+
x.debug("BOLA ABR rule invoked in bad state."), we.quality = me.getQualityForBitrate(Tt, Ce, je, tt), we.reason.state = T.state, we.reason.throughput = Ce, we.reason.latency = tt, T.state = 1, j(T);
|
|
12752
12752
|
}
|
|
12753
|
-
return
|
|
12753
|
+
return we;
|
|
12754
12754
|
}, reset: function() {
|
|
12755
12755
|
ot(), K.off(E.Z.BUFFER_EMPTY, X, S), K.off(E.Z.PLAYBACK_SEEKING, De, S), K.off(E.Z.METRIC_ADDED, We, S), K.off(E.Z.QUALITY_CHANGE_REQUESTED, Ze, S), K.off(E.Z.FRAGMENT_LOADING_ABANDONED, Qe, S), K.off(m.Z.MEDIA_FRAGMENT_LOADED, Ue, S);
|
|
12756
12756
|
} }, x = (0, o.Z)(P).getInstance().getLogger(S), ot(), K.on(E.Z.BUFFER_EMPTY, X, S), K.on(E.Z.PLAYBACK_SEEKING, De, S), K.on(E.Z.METRIC_ADDED, We, S), K.on(E.Z.QUALITY_CHANGE_REQUESTED, Ze, S), K.on(E.Z.FRAGMENT_LOADING_ABANDONED, Qe, S), K.on(m.Z.MEDIA_FRAGMENT_LOADED, Ue, S), S;
|
|
@@ -12803,8 +12803,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12803
12803
|
}(Ue.getPlaybackController().getLowLatencyModeEnabled(), te) || !Se) return j;
|
|
12804
12804
|
if (le && le.state === o.Z.BUFFER_EMPTY) d.debug("[" + te + "] Switch to index 0; buffer is empty."), j.quality = 0, j.reason = "InsufficientBufferRule: Buffer is empty";
|
|
12805
12805
|
else {
|
|
12806
|
-
var be = ae.getMediaInfo(), Ze = ae.getAbrController(), Qe = Ze.getThroughputHistory(), ot = P.getCurrentBufferLevel(te), Ae = Qe.getAverageThroughput(te, We),
|
|
12807
|
-
j.quality = Ze.getQualityForBitrate(be, Tt, De,
|
|
12806
|
+
var be = ae.getMediaInfo(), Ze = ae.getAbrController(), Qe = Ze.getThroughputHistory(), ot = P.getCurrentBufferLevel(te), Ae = Qe.getAverageThroughput(te, We), we = Qe.getAverageLatency(te), Tt = Ae * (ot / Se) * 0.5;
|
|
12807
|
+
j.quality = Ze.getQualityForBitrate(be, Tt, De, we), j.reason = "InsufficientBufferRule: being conservative to avoid immediate rebuffering";
|
|
12808
12808
|
}
|
|
12809
12809
|
return j;
|
|
12810
12810
|
}, reset: function() {
|
|
@@ -12861,7 +12861,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12861
12861
|
return c = { getMaxIndex: function(De) {
|
|
12862
12862
|
var Ue, We = (0, v.Z)(B).create(), be = Math.pow(4, 0.99), Ze = Math.max(Math.pow(4, 1), be * Math.sqrt(4)), Qe = De.getMediaInfo(), ot = De.getMediaType(), Ae = Qe.bitrateList.map(function(Bt) {
|
|
12863
12863
|
return Bt.bandwidth;
|
|
12864
|
-
}),
|
|
12864
|
+
}), we = Ae.length, Tt = De.getScheduleController(), _t = De.getStreamInfo(), qe = De.getAbrController(), at = qe.getThroughputHistory(), me = _t && _t.manifestInfo && _t.manifestInfo.isDynamic, ye = De.useL2AABR(), je = P.getCurrentBufferLevel(ot, !0), f = at.getSafeAverageThroughput(ot, me), u = at.getAverageThroughput(ot, me), T = at.getAverageLatency(ot), b = De.getVideoModel().getPlaybackRate();
|
|
12865
12865
|
if (!(De && De.hasOwnProperty("getMediaInfo") && De.hasOwnProperty("getMediaType") && De.hasOwnProperty("getScheduleController") && De.hasOwnProperty("getStreamInfo") && De.hasOwnProperty("getAbrController") && De.hasOwnProperty("useL2AABR")) || (We.reason = We.reason || {}, !ye || ot === E.Z.AUDIO)) return We;
|
|
12866
12866
|
Tt.setTimeToLoadDelay(0);
|
|
12867
12867
|
var Q = function(Bt) {
|
|
@@ -12882,7 +12882,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12882
12882
|
case 1:
|
|
12883
12883
|
if (Ue = qe.getQualityForBitrate(Qe, f, _t.id, T), We.quality = Ue, We.reason.throughput = f, Q.lastQuality = Ue, !isNaN(Q.lastSegmentDurationS) && je >= Y.B_target) {
|
|
12884
12884
|
Q.state = 2, Y.Q = be;
|
|
12885
|
-
for (var
|
|
12885
|
+
for (var Ce = 0; Ce < we; ++Ce) Ce === Q.lastQuality ? Y.prev_w[Ce] = 1 : Y.prev_w[Ce] = 0;
|
|
12886
12886
|
}
|
|
12887
12887
|
break;
|
|
12888
12888
|
case 2:
|
|
@@ -12893,7 +12893,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12893
12893
|
}, 0), Ne = Math.round(8 * Fe / ke), He = P.getCurrentHttpRequest(ot);
|
|
12894
12894
|
if (Ne < 1 && (Ne = 1), He.url === Q.lastSegmentUrl || He.type === e.w.INIT_SEGMENT_TYPE) Ue = Q.lastQuality;
|
|
12895
12895
|
else {
|
|
12896
|
-
for (var it = Q.lastSegmentDurationS, bt = 1, ft = 0; ft <
|
|
12896
|
+
for (var it = Q.lastSegmentDurationS, bt = 1, ft = 0; ft < we; ++ft) Ae[ft] = Ae[ft] / 1e3, b * Ae[ft] > Ne && (bt = -1), Y.w[ft] = Y.prev_w[ft] + bt * (it / (2 * Ze)) * ((Y.Q + be) * (b * Ae[ft] / 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
12899
|
for (var xn = Bt.sort(function(pr, or) {
|
|
@@ -12906,9 +12906,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12906
12906
|
for (var ar = 0; ar < cn; ++ar) cr[ar] = Math.max(Ln[ar] - In, 0);
|
|
12907
12907
|
return cr;
|
|
12908
12908
|
}(Y.w);
|
|
12909
|
-
for (var Yt = 0; Yt <
|
|
12909
|
+
for (var Yt = 0; Yt < we; ++Yt) tt[Yt] = Y.w[Yt] - Y.prev_w[Yt], Y.prev_w[Yt] = Y.w[Yt];
|
|
12910
12910
|
Y.Q = Math.max(0, Y.Q - it + it * b * ((Se(Ae, Y.prev_w) + Se(Ae, tt)) / Ne));
|
|
12911
|
-
for (var Ot = [], Ht = 0; Ht <
|
|
12911
|
+
for (var Ot = [], Ht = 0; Ht < we; ++Ht) Ot[Ht] = Math.abs(Ae[Ht] - Se(Y.w, Ae));
|
|
12912
12912
|
(Ue = Ot.indexOf(Math.min.apply(Math, Ot))) > Q.lastQuality && Ae[Q.lastQuality + 1] <= Ne && (Ue = Q.lastQuality + 1), Ae[Ue] >= Ne && (Y.Q = 2 * Math.max(be, Y.Q)), Q.lastSegmentUrl = He.url;
|
|
12913
12913
|
}
|
|
12914
12914
|
We.quality = Ue, We.reason.throughput = u, We.reason.latency = T, We.reason.bufferLevel = je, Q.lastQuality = We.quality;
|
|
@@ -12992,16 +12992,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
12992
12992
|
var Ue = te, We = le, be = j, Ze = function(Y) {
|
|
12993
12993
|
if (!m) {
|
|
12994
12994
|
m = [];
|
|
12995
|
-
var
|
|
12996
|
-
h =
|
|
12995
|
+
var Ce = Y.bitrateList, tt = [];
|
|
12996
|
+
h = Ce[0].bandwidth, Ce.forEach(function(He) {
|
|
12997
12997
|
tt.push(He.bandwidth), He.bandwidth < h && (h = He.bandwidth);
|
|
12998
12998
|
}), Ne = tt.map(function(He) {
|
|
12999
12999
|
return Math.pow(He, 2);
|
|
13000
13000
|
}).reduce(function(He, it) {
|
|
13001
13001
|
return He + it;
|
|
13002
13002
|
}), o = Math.sqrt(Ne);
|
|
13003
|
-
for (var ke = 0; ke <
|
|
13004
|
-
var Fe = { qualityIndex: ke, bitrate:
|
|
13003
|
+
for (var ke = 0; ke < Ce.length; ke++) {
|
|
13004
|
+
var Fe = { qualityIndex: ke, bitrate: Ce[ke].bandwidth, state: { throughput: Ce[ke].bandwidth / o, latency: 0, rebuffer: 0, switch: 0 } };
|
|
13005
13005
|
m.push(Fe);
|
|
13006
13006
|
}
|
|
13007
13007
|
c = function(He) {
|
|
@@ -13042,12 +13042,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13042
13042
|
return m;
|
|
13043
13043
|
}(ae), Qe = j / o;
|
|
13044
13044
|
Qe > 1 && (Qe = B()), te /= E, p.debug("getNextQuality called throughput:".concat(Qe, " latency:").concat(te, " bufferSize:").concat(le, " currentQualityIndex:").concat(X, " playbackRate:").concat(Se));
|
|
13045
|
-
var ot = Ze[X], Ae = ot.bitrate * De.getSegmentDuration() / be,
|
|
13046
|
-
if (We - Ae < De.getMinBuffer()) return p.debug("Buffer is low for bitrate= ".concat(ot.bitrate, " downloadTime=").concat(Ae, " currentBuffer=").concat(We, " rebuffer=").concat(
|
|
13045
|
+
var ot = Ze[X], Ae = ot.bitrate * De.getSegmentDuration() / be, we = Math.max(0, Ae - We);
|
|
13046
|
+
if (We - Ae < De.getMinBuffer()) return p.debug("Buffer is low for bitrate= ".concat(ot.bitrate, " downloadTime=").concat(Ae, " currentBuffer=").concat(We, " rebuffer=").concat(we)), function(Y, Ce) {
|
|
13047
13047
|
var tt = 0, ke = Y;
|
|
13048
13048
|
if (m) for (var Fe = 0; Fe < m.length; Fe++) {
|
|
13049
13049
|
var Ne = m[Fe];
|
|
13050
|
-
Ne.bitrate < Y.bitrate && Ne.bitrate > tt &&
|
|
13050
|
+
Ne.bitrate < Y.bitrate && Ne.bitrate > tt && Ce > Ne.bitrate && (tt = Ne.bitrate, ke = Ne);
|
|
13051
13051
|
}
|
|
13052
13052
|
return ke;
|
|
13053
13053
|
}(ot, be).qualityIndex;
|
|
@@ -13057,18 +13057,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13057
13057
|
break;
|
|
13058
13058
|
case "random_weight_selection":
|
|
13059
13059
|
(function(Y) {
|
|
13060
|
-
n = function(
|
|
13061
|
-
for (var ke = [], Fe = Math.sqrt(2 /
|
|
13060
|
+
n = function(Ce, tt) {
|
|
13061
|
+
for (var ke = [], Fe = Math.sqrt(2 / Ce), Ne = 0; Ne < 4; Ne++) ke.push(Math.random() * Fe);
|
|
13062
13062
|
return n = ke;
|
|
13063
13063
|
}(Y.length);
|
|
13064
13064
|
})(Ze);
|
|
13065
13065
|
break;
|
|
13066
13066
|
default:
|
|
13067
|
-
(function(Y,
|
|
13067
|
+
(function(Y, Ce, tt, ke, Fe, Ne, He) {
|
|
13068
13068
|
n || (n = c[c.length - 1]);
|
|
13069
|
-
var it = Y.findWeightVector(
|
|
13069
|
+
var it = Y.findWeightVector(Ce, tt, ke, Fe, Ne, He);
|
|
13070
13070
|
it !== null && it !== -1 && (n = it);
|
|
13071
|
-
})(De, Ze, Ue, We,
|
|
13071
|
+
})(De, Ze, Ue, We, we, be, Se);
|
|
13072
13072
|
}
|
|
13073
13073
|
for (var Tt = null, _t = null, qe = null, at = 0; at < Ze.length; at++) {
|
|
13074
13074
|
var me = Ze[at], ye = me.state, je = [ye.throughput, ye.latency, ye.rebuffer, ye.switch], f = n.slice(), u = De.getNextBufferWithBitrate(me.bitrate, We, be), T = u < De.getMinBuffer();
|
|
@@ -13077,7 +13077,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13077
13077
|
(Tt === null || b < Tt) && (Tt = b, _t = me.qualityIndex, qe = me);
|
|
13078
13078
|
}
|
|
13079
13079
|
var Q = Math.abs(ot.bitrate - qe.bitrate) / o;
|
|
13080
|
-
return M(ot, Ze, [Qe, te,
|
|
13080
|
+
return M(ot, Ze, [Qe, te, we, Q]), M(qe, Ze, [Qe, 0, 0, Q]), _t;
|
|
13081
13081
|
}, reset: function() {
|
|
13082
13082
|
x();
|
|
13083
13083
|
} }, p = (0, v.Z)(S).getInstance().getLogger(e), x(), e;
|
|
@@ -13130,12 +13130,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13130
13130
|
be || (be = 0);
|
|
13131
13131
|
var Ze = We.getPlaybackRate(), Qe = ae.getThroughputHistory().getSafeAverageThroughput(K, Ue);
|
|
13132
13132
|
if (c.debug("Throughput ".concat(Math.round(Qe), " kbps")), isNaN(Qe) || !Se || ae.getAbandonmentStateFor(j.id, K) === m.Z.ABANDON_LOAD) return M;
|
|
13133
|
-
for (var ot = le.bitrateList, Ae = J.getRepresentationInfo().fragmentDuration,
|
|
13133
|
+
for (var ot = le.bitrateList, Ae = J.getRepresentationInfo().fragmentDuration, we = ot[0].bandwidth / 1e3, Tt = ot[ot.length - 1].bandwidth / 1e3, _t = 0; _t < ot.length; _t++) {
|
|
13134
13134
|
var qe = ot[_t].bandwidth / 1e3;
|
|
13135
|
-
qe > Tt ? Tt = qe : qe <
|
|
13135
|
+
qe > Tt ? Tt = qe : qe < we && (we = qe);
|
|
13136
13136
|
}
|
|
13137
13137
|
var at = ot[te].bandwidth / 1e3, me = B.getCurrentHttpRequest(K, !0), ye = (me.tresponse.getTime() - me.trequest.getTime()) / 1e3, je = ye > Ae ? ye - Ae : 0;
|
|
13138
|
-
x.setupPerSegmentQoe(Ae, Tt,
|
|
13138
|
+
x.setupPerSegmentQoe(Ae, Tt, we), x.logSegmentMetrics(at, je, be, Ze);
|
|
13139
13139
|
var f = (0, o.Z)(P).create({ targetLatency: 1.5, bufferMin: 0.3, segmentDuration: Ae, qoeEvaluator: x });
|
|
13140
13140
|
return M.quality = S.getNextQuality(le, 1e3 * Qe, be, De, Ze, te, f), M.reason = { throughput: Qe, 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(Qe), "kbps"), M;
|
|
13141
13141
|
} catch (u) {
|
|
@@ -13167,8 +13167,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13167
13167
|
p.forEach(function(X) {
|
|
13168
13168
|
X[0];
|
|
13169
13169
|
var De = X[1], Ue = X[2], We = (X[3], Se.bitrate * n / M), be = S(P, We), Ze = (Ue === 0 ? 10 : 1 / Ue) * Math.max(1e-5, We - be), Qe = (De === 0 ? 10 : 1 / De) * Se.state.latency, ot = c.calculateSingleUseQoe(Se.bitrate, Ze, Qe, K);
|
|
13170
|
-
(ae === null || ot > ae) && function(Ae,
|
|
13171
|
-
return !(Ae > E + Tt) &&
|
|
13170
|
+
(ae === null || ot > ae) && function(Ae, we, Tt) {
|
|
13171
|
+
return !(Ae > E + Tt) && we >= h;
|
|
13172
13172
|
}(B, be, le) && (ae = ot, j = X, te = Se.bitrate);
|
|
13173
13173
|
});
|
|
13174
13174
|
}), j === null && te === null && (j = -1), m = B, j;
|
|
@@ -13194,18 +13194,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13194
13194
|
var ne = C(3393), v = C(1553), t = C(5448), e = C(2128), p = C(2594), m = C(7387), o = C(7417), E = C(9032), h = C(9326), n = C(7802), c = ["http://dashif.org/thumbnail_tile", "http://dashif.org/guidelines/thumbnail_tile"];
|
|
13195
13195
|
function d(S) {
|
|
13196
13196
|
var x, B, P, J, M, K, ae, j, te = this.context, le = S.adapter, Se = S.baseURLController, X = S.streamInfo, De = S.timelineConverter, Ue = S.debug, We = S.eventBus, be = S.events, Ze = S.dashConstants, Qe = (0, p.Z)(te).getInstance();
|
|
13197
|
-
function ot(
|
|
13197
|
+
function ot(we, Tt) {
|
|
13198
13198
|
var _t = new e.Z();
|
|
13199
|
-
_t.id =
|
|
13199
|
+
_t.id = we.id, _t.bitrate = we.bandwidth, _t.width = we.width, _t.height = we.height, _t.tilesHor = 1, _t.tilesVert = 1, we.essentialProperties && we.essentialProperties.forEach(function(qe) {
|
|
13200
13200
|
if (c.indexOf(qe.schemeIdUri) >= 0 && qe.value) {
|
|
13201
13201
|
var at = qe.value.split("x");
|
|
13202
13202
|
at.length !== 2 || isNaN(at[0]) || isNaN(at[1]) || (_t.tilesHor = parseInt(at[0], 10), _t.tilesVert = parseInt(at[1], 10));
|
|
13203
13203
|
}
|
|
13204
|
-
}), Tt ? K.updateSegmentData(
|
|
13204
|
+
}), Tt ? K.updateSegmentData(we).then(function(qe) {
|
|
13205
13205
|
(function(at, me, ye) {
|
|
13206
13206
|
var je = [], f = function(u, T) {
|
|
13207
|
-
var b, Q, Y,
|
|
13208
|
-
for (b = 0, Q = u.segments.length; b < Q; b++) Y = u.segments[b], (
|
|
13207
|
+
var b, Q, Y, Ce, tt = [], ke = 0;
|
|
13208
|
+
for (b = 0, Q = u.segments.length; b < Q; b++) Y = u.segments[b], (Ce = (0, m.TJ)(De, le.getIsDynamic(), T, Y.startTime, Y.duration, Y.timescale, Y.media, Y.mediaRange, ke)) && (tt.push(Ce), Ce = null, ke++);
|
|
13209
13209
|
return tt;
|
|
13210
13210
|
}(ye, me);
|
|
13211
13211
|
me.segments = f, at.segmentDuration = me.segments[0].duration, at.readThumbnail = function(u, T) {
|
|
@@ -13215,18 +13215,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13215
13215
|
}), b ? T(b) : me.segments.some(function(Q) {
|
|
13216
13216
|
if (Q.mediaStartTime <= u && Q.mediaStartTime + Q.duration > u) {
|
|
13217
13217
|
var Y = Se.resolve(me.path);
|
|
13218
|
-
return ae.load({ method: "get", url: Y.url, request: { range: Q.mediaRange, responseType: "arraybuffer" }, onload: function(
|
|
13219
|
-
var tt = j.getSamplesInfo(
|
|
13218
|
+
return ae.load({ method: "get", url: Y.url, request: { range: Q.mediaRange, responseType: "arraybuffer" }, onload: function(Ce) {
|
|
13219
|
+
var tt = j.getSamplesInfo(Ce.target.response), ke = new Blob([Ce.target.response.slice(tt.sampleList[0].offset, tt.sampleList[0].offset + tt.sampleList[0].size)], { type: "image/jpeg" }), Fe = window.URL.createObjectURL(ke);
|
|
13220
13220
|
je.push({ start: Q.mediaStartTime, end: Q.mediaStartTime + Q.duration, url: Fe }), T && T(Fe);
|
|
13221
13221
|
} }), !0;
|
|
13222
13222
|
}
|
|
13223
13223
|
});
|
|
13224
13224
|
};
|
|
13225
|
-
})(_t,
|
|
13226
|
-
}) : (_t.startNumber =
|
|
13225
|
+
})(_t, we, qe);
|
|
13226
|
+
}) : (_t.startNumber = we.startNumber, _t.segmentDuration = we.segmentDuration, _t.timescale = we.timescale, _t.templateUrl = function(qe) {
|
|
13227
13227
|
var at = Qe.isRelative(qe.media) ? Qe.resolve(qe.media, Se.resolve(qe.path).url) : qe.media;
|
|
13228
13228
|
return at ? (0, m.Aj)(at, qe.id) : "";
|
|
13229
|
-
}(
|
|
13229
|
+
}(we)), _t.tilesHor > 0 && _t.tilesVert > 0 && (_t.widthPerTile = _t.width / _t.tilesHor, _t.heightPerTile = _t.height / _t.tilesVert, B.push(_t));
|
|
13230
13230
|
}
|
|
13231
13231
|
function Ae() {
|
|
13232
13232
|
B = [], J = -1, M = null;
|
|
@@ -13235,25 +13235,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13235
13235
|
return B;
|
|
13236
13236
|
}, addTracks: function() {
|
|
13237
13237
|
if (X && le && (M = le.getMediaInfoForType(X, ne.Z.IMAGE))) {
|
|
13238
|
-
var
|
|
13239
|
-
|
|
13238
|
+
var we = le.getVoRepresentations(M);
|
|
13239
|
+
we && we.length > 0 && we.forEach(function(Tt) {
|
|
13240
13240
|
(Tt.segmentInfoType === v.Z.SEGMENT_TEMPLATE && Tt.segmentDuration > 0 && Tt.media || Tt.segmentInfoType === v.Z.SEGMENT_TIMELINE) && ot(Tt), Tt.segmentInfoType === v.Z.SEGMENT_BASE && ot(Tt, !0);
|
|
13241
13241
|
}), B.length > 0 && B.sort(function(Tt, _t) {
|
|
13242
13242
|
return Tt.bitrate - _t.bitrate;
|
|
13243
13243
|
});
|
|
13244
13244
|
}
|
|
13245
|
-
}, reset: Ae, setTrackByIndex: function(
|
|
13246
|
-
B && B.length !== 0 && (
|
|
13245
|
+
}, reset: Ae, setTrackByIndex: function(we) {
|
|
13246
|
+
B && B.length !== 0 && (we >= B.length && (we = B.length - 1), J = we);
|
|
13247
13247
|
}, getCurrentTrack: function() {
|
|
13248
13248
|
return J < 0 ? null : B[J];
|
|
13249
13249
|
}, getCurrentTrackIndex: function() {
|
|
13250
13250
|
return J;
|
|
13251
|
-
}, getThumbnailRequestForTime: function(
|
|
13251
|
+
}, getThumbnailRequestForTime: function(we) {
|
|
13252
13252
|
for (var Tt, _t = le.getVoRepresentations(M), qe = 0; qe < _t.length; qe++) if (B[J].id === _t[qe].id) {
|
|
13253
13253
|
Tt = _t[qe];
|
|
13254
13254
|
break;
|
|
13255
13255
|
}
|
|
13256
|
-
return P.getSegmentRequestForTime(M, Tt,
|
|
13256
|
+
return P.getSegmentRequestForTime(M, Tt, we);
|
|
13257
13257
|
} }, Ae(), ae = (0, E.Z)(te).create({}), j = (0, o.Z)(te).getInstance(), K = (0, n.Z)(te).create({ events: be, eventBus: We, streamInfo: X, timelineConverter: De, dashConstants: Ze, dashMetrics: S.dashMetrics, segmentBaseController: S.segmentBaseController, type: ne.Z.IMAGE }), (P = (0, h.Z)(te).create({ streamInfo: X, type: ne.Z.IMAGE, timelineConverter: De, segmentsController: K, baseURLController: Se, debug: Ue, eventBus: We, events: be, dashConstants: Ze, urlUtils: Qe })).initialize(!!le && le.getIsDynamic()), x;
|
|
13258
13258
|
}
|
|
13259
13259
|
d.__dashjs_factory_name = "ThumbnailTracks", _e.Z = t.Z.getClassFactory(d);
|
|
@@ -13288,7 +13288,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13288
13288
|
if (!S || S.byteLength === 0) return { sampleList: [], lastSequenceNumber: NaN, totalDuration: NaN, numSequences: NaN };
|
|
13289
13289
|
var x, B, P, J, M, K, ae, j, te, le, Se, X, De, Ue, We, be, Ze = n(S), Qe = Ze.getBoxes("moof"), ot = Ze.getBoxes("mfhd");
|
|
13290
13290
|
We = Ze.getBoxes("moof").length, Ue = ot[ot.length - 1].sequence_number, B = 0, M = [];
|
|
13291
|
-
var Ae = -1,
|
|
13291
|
+
var Ae = -1, we = -1;
|
|
13292
13292
|
for (le = 0; le < Qe.length; le++) {
|
|
13293
13293
|
var Tt = Qe[le], _t = Tt.getChildBoxes("traf");
|
|
13294
13294
|
for (j = 0; j < _t.length; j++) {
|
|
@@ -13302,7 +13302,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13302
13302
|
var u = { dts: J, cts: J + (K.sample_composition_time_offset !== void 0 ? K.sample_composition_time_offset : 0), duration: x, offset: Tt.offset + De, size: P, subSizes: [P] };
|
|
13303
13303
|
if (je) for (Se = 0; Se < je.length; Se++) {
|
|
13304
13304
|
var T = je[Se];
|
|
13305
|
-
if (Ae < T.entry_count - 1 && ae >
|
|
13305
|
+
if (Ae < T.entry_count - 1 && ae > we && (Ae++, we += T.entries[Ae].sample_delta), ae == we) {
|
|
13306
13306
|
u.subSizes = [];
|
|
13307
13307
|
var b = T.entries[Ae];
|
|
13308
13308
|
for (X = 0; X < b.subsample_count; X++) u.subSizes.push(b.subsamples[X].subsample_size);
|
|
@@ -13837,15 +13837,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13837
13837
|
return o(f, u, T);
|
|
13838
13838
|
}
|
|
13839
13839
|
function o(f, u, T) {
|
|
13840
|
-
if (typeof f == "string") return function(Y,
|
|
13841
|
-
if (typeof
|
|
13842
|
-
var tt = 0 | S(Y,
|
|
13840
|
+
if (typeof f == "string") return function(Y, Ce) {
|
|
13841
|
+
if (typeof Ce == "string" && Ce !== "" || (Ce = "utf8"), !m.isEncoding(Ce)) throw new TypeError("Unknown encoding: " + Ce);
|
|
13842
|
+
var tt = 0 | S(Y, Ce), ke = p(tt), Fe = ke.write(Y, Ce);
|
|
13843
13843
|
return Fe !== tt && (ke = ke.slice(0, Fe)), ke;
|
|
13844
13844
|
}(f, u);
|
|
13845
13845
|
if (ArrayBuffer.isView(f)) return function(Y) {
|
|
13846
13846
|
if (me(Y, Uint8Array)) {
|
|
13847
|
-
var
|
|
13848
|
-
return c(
|
|
13847
|
+
var Ce = new Uint8Array(Y);
|
|
13848
|
+
return c(Ce.buffer, Ce.byteOffset, Ce.byteLength);
|
|
13849
13849
|
}
|
|
13850
13850
|
return n(Y);
|
|
13851
13851
|
}(f);
|
|
@@ -13856,8 +13856,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13856
13856
|
if (b != null && b !== f) return m.from(b, u, T);
|
|
13857
13857
|
var Q = function(Y) {
|
|
13858
13858
|
if (m.isBuffer(Y)) {
|
|
13859
|
-
var
|
|
13860
|
-
return tt.length === 0 || Y.copy(tt, 0, 0,
|
|
13859
|
+
var Ce = 0 | d(Y.length), tt = p(Ce);
|
|
13860
|
+
return tt.length === 0 || Y.copy(tt, 0, 0, Ce), tt;
|
|
13861
13861
|
}
|
|
13862
13862
|
return Y.length !== void 0 ? typeof Y.length != "number" || ye(Y.length) ? p(0) : n(Y) : Y.type === "Buffer" && Array.isArray(Y.data) ? n(Y.data) : void 0;
|
|
13863
13863
|
}(f);
|
|
@@ -13958,18 +13958,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13958
13958
|
throw new TypeError("val must be string, number or Buffer");
|
|
13959
13959
|
}
|
|
13960
13960
|
function J(f, u, T, b, Q) {
|
|
13961
|
-
var Y,
|
|
13961
|
+
var Y, Ce = 1, tt = f.length, ke = u.length;
|
|
13962
13962
|
if (b !== void 0 && ((b = String(b).toLowerCase()) === "ucs2" || b === "ucs-2" || b === "utf16le" || b === "utf-16le")) {
|
|
13963
13963
|
if (f.length < 2 || u.length < 2) return -1;
|
|
13964
|
-
|
|
13964
|
+
Ce = 2, tt /= 2, ke /= 2, T /= 2;
|
|
13965
13965
|
}
|
|
13966
13966
|
function Fe(bt, ft) {
|
|
13967
|
-
return
|
|
13967
|
+
return Ce === 1 ? bt[ft] : bt.readUInt16BE(ft * Ce);
|
|
13968
13968
|
}
|
|
13969
13969
|
if (Q) {
|
|
13970
13970
|
var Ne = -1;
|
|
13971
13971
|
for (Y = T; Y < tt; Y++) if (Fe(f, Y) === Fe(u, Ne === -1 ? 0 : Y - Ne)) {
|
|
13972
|
-
if (Ne === -1 && (Ne = Y), Y - Ne + 1 === ke) return Ne *
|
|
13972
|
+
if (Ne === -1 && (Ne = Y), Y - Ne + 1 === ke) return Ne * Ce;
|
|
13973
13973
|
} else Ne !== -1 && (Y -= Y - Ne), Ne = -1;
|
|
13974
13974
|
} else for (T + ke > tt && (T = tt - ke), Y = T; Y >= 0; Y--) {
|
|
13975
13975
|
for (var He = !0, it = 0; it < ke; it++) if (Fe(f, Y + it) !== Fe(u, it)) {
|
|
@@ -13986,19 +13986,19 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13986
13986
|
b ? (b = Number(b)) > Q && (b = Q) : b = Q;
|
|
13987
13987
|
var Y = u.length;
|
|
13988
13988
|
b > Y / 2 && (b = Y / 2);
|
|
13989
|
-
for (var
|
|
13990
|
-
var tt = parseInt(u.substr(2 *
|
|
13991
|
-
if (ye(tt)) return
|
|
13992
|
-
f[T +
|
|
13989
|
+
for (var Ce = 0; Ce < b; ++Ce) {
|
|
13990
|
+
var tt = parseInt(u.substr(2 * Ce, 2), 16);
|
|
13991
|
+
if (ye(tt)) return Ce;
|
|
13992
|
+
f[T + Ce] = tt;
|
|
13993
13993
|
}
|
|
13994
|
-
return
|
|
13994
|
+
return Ce;
|
|
13995
13995
|
}
|
|
13996
13996
|
function K(f, u, T, b) {
|
|
13997
13997
|
return at(_t(u, f.length - T), f, T, b);
|
|
13998
13998
|
}
|
|
13999
13999
|
function ae(f, u, T, b) {
|
|
14000
14000
|
return at(function(Q) {
|
|
14001
|
-
for (var Y = [],
|
|
14001
|
+
for (var Y = [], Ce = 0; Ce < Q.length; ++Ce) Y.push(255 & Q.charCodeAt(Ce));
|
|
14002
14002
|
return Y;
|
|
14003
14003
|
}(u), f, T, b);
|
|
14004
14004
|
}
|
|
@@ -14007,7 +14007,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14007
14007
|
}
|
|
14008
14008
|
function te(f, u, T, b) {
|
|
14009
14009
|
return at(function(Q, Y) {
|
|
14010
|
-
for (var
|
|
14010
|
+
for (var Ce, tt, ke, Fe = [], Ne = 0; Ne < Q.length && !((Y -= 2) < 0); ++Ne) tt = (Ce = Q.charCodeAt(Ne)) >> 8, ke = Ce % 256, Fe.push(ke), Fe.push(tt);
|
|
14011
14011
|
return Fe;
|
|
14012
14012
|
}(u, f.length - T), f, T, b);
|
|
14013
14013
|
}
|
|
@@ -14017,7 +14017,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14017
14017
|
function Se(f, u, T) {
|
|
14018
14018
|
T = Math.min(f.length, T);
|
|
14019
14019
|
for (var b = [], Q = u; Q < T; ) {
|
|
14020
|
-
var Y,
|
|
14020
|
+
var Y, Ce, tt, ke, Fe = f[Q], Ne = null, He = Fe > 239 ? 4 : Fe > 223 ? 3 : Fe > 191 ? 2 : 1;
|
|
14021
14021
|
if (Q + He <= T) switch (He) {
|
|
14022
14022
|
case 1:
|
|
14023
14023
|
Fe < 128 && (Ne = Fe);
|
|
@@ -14026,10 +14026,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14026
14026
|
(192 & (Y = f[Q + 1])) == 128 && (ke = (31 & Fe) << 6 | 63 & Y) > 127 && (Ne = ke);
|
|
14027
14027
|
break;
|
|
14028
14028
|
case 3:
|
|
14029
|
-
Y = f[Q + 1],
|
|
14029
|
+
Y = f[Q + 1], Ce = f[Q + 2], (192 & Y) == 128 && (192 & Ce) == 128 && (ke = (15 & Fe) << 12 | (63 & Y) << 6 | 63 & Ce) > 2047 && (ke < 55296 || ke > 57343) && (Ne = ke);
|
|
14030
14030
|
break;
|
|
14031
14031
|
case 4:
|
|
14032
|
-
Y = f[Q + 1],
|
|
14032
|
+
Y = f[Q + 1], Ce = f[Q + 2], tt = f[Q + 3], (192 & Y) == 128 && (192 & Ce) == 128 && (192 & tt) == 128 && (ke = (15 & Fe) << 18 | (63 & Y) << 12 | (63 & Ce) << 6 | 63 & tt) > 65535 && ke < 1114112 && (Ne = ke);
|
|
14033
14033
|
}
|
|
14034
14034
|
Ne === null ? (Ne = 65533, He = 1) : Ne > 65535 && (Ne -= 65536, b.push(Ne >>> 10 & 1023 | 55296), Ne = 56320 | 1023 & Ne), b.push(Ne), Q += He;
|
|
14035
14035
|
}
|
|
@@ -14137,11 +14137,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14137
14137
|
if (b >= Q) return -1;
|
|
14138
14138
|
if (u >= T) return 1;
|
|
14139
14139
|
if (this === f) return 0;
|
|
14140
|
-
for (var Y = (Q >>>= 0) - (b >>>= 0),
|
|
14141
|
-
Y = ke[Ne],
|
|
14140
|
+
for (var Y = (Q >>>= 0) - (b >>>= 0), Ce = (T >>>= 0) - (u >>>= 0), tt = Math.min(Y, Ce), ke = this.slice(b, Q), Fe = f.slice(u, T), Ne = 0; Ne < tt; ++Ne) if (ke[Ne] !== Fe[Ne]) {
|
|
14141
|
+
Y = ke[Ne], Ce = Fe[Ne];
|
|
14142
14142
|
break;
|
|
14143
14143
|
}
|
|
14144
|
-
return Y <
|
|
14144
|
+
return Y < Ce ? -1 : Ce < Y ? 1 : 0;
|
|
14145
14145
|
}, m.prototype.includes = function(f, u, T) {
|
|
14146
14146
|
return this.indexOf(f, u, T) !== -1;
|
|
14147
14147
|
}, m.prototype.indexOf = function(f, u, T) {
|
|
@@ -14221,7 +14221,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14221
14221
|
function Ae(f, u, T, b, Q) {
|
|
14222
14222
|
return u = +u, T >>>= 0, Q || ot(f, 0, T, 4), v.write(f, u, T, b, 23, 4), T + 4;
|
|
14223
14223
|
}
|
|
14224
|
-
function
|
|
14224
|
+
function we(f, u, T, b, Q) {
|
|
14225
14225
|
return u = +u, T >>>= 0, Q || ot(f, 0, T, 8), v.write(f, u, T, b, 52, 8), T + 8;
|
|
14226
14226
|
}
|
|
14227
14227
|
m.prototype.slice = function(f, u) {
|
|
@@ -14302,16 +14302,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14302
14302
|
var Q = Math.pow(2, 8 * T - 1);
|
|
14303
14303
|
Qe(this, f, u, T, Q - 1, -Q);
|
|
14304
14304
|
}
|
|
14305
|
-
var Y = 0,
|
|
14306
|
-
for (this[u] = 255 & f; ++Y < T && (
|
|
14305
|
+
var Y = 0, Ce = 1, tt = 0;
|
|
14306
|
+
for (this[u] = 255 & f; ++Y < T && (Ce *= 256); ) f < 0 && tt === 0 && this[u + Y - 1] !== 0 && (tt = 1), this[u + Y] = (f / Ce >> 0) - tt & 255;
|
|
14307
14307
|
return u + T;
|
|
14308
14308
|
}, m.prototype.writeIntBE = function(f, u, T, b) {
|
|
14309
14309
|
if (f = +f, u >>>= 0, !b) {
|
|
14310
14310
|
var Q = Math.pow(2, 8 * T - 1);
|
|
14311
14311
|
Qe(this, f, u, T, Q - 1, -Q);
|
|
14312
14312
|
}
|
|
14313
|
-
var Y = T - 1,
|
|
14314
|
-
for (this[u + Y] = 255 & f; --Y >= 0 && (
|
|
14313
|
+
var Y = T - 1, Ce = 1, tt = 0;
|
|
14314
|
+
for (this[u + Y] = 255 & f; --Y >= 0 && (Ce *= 256); ) f < 0 && tt === 0 && this[u + Y + 1] !== 0 && (tt = 1), this[u + Y] = (f / Ce >> 0) - tt & 255;
|
|
14315
14315
|
return u + T;
|
|
14316
14316
|
}, m.prototype.writeInt8 = function(f, u, T) {
|
|
14317
14317
|
return f = +f, u >>>= 0, T || Qe(this, f, u, 1, 127, -128), f < 0 && (f = 255 + f + 1), this[u] = 255 & f, u + 1;
|
|
@@ -14328,9 +14328,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14328
14328
|
}, m.prototype.writeFloatBE = function(f, u, T) {
|
|
14329
14329
|
return Ae(this, f, u, !1, T);
|
|
14330
14330
|
}, m.prototype.writeDoubleLE = function(f, u, T) {
|
|
14331
|
-
return
|
|
14331
|
+
return we(this, f, u, !0, T);
|
|
14332
14332
|
}, m.prototype.writeDoubleBE = function(f, u, T) {
|
|
14333
|
-
return
|
|
14333
|
+
return we(this, f, u, !1, T);
|
|
14334
14334
|
}, m.prototype.copy = function(f, u, T, b) {
|
|
14335
14335
|
if (!m.isBuffer(f)) throw new TypeError("argument should be a Buffer");
|
|
14336
14336
|
if (T || (T = 0), b || b === 0 || (b = this.length), u >= f.length && (u = f.length), u || (u = 0), b > 0 && b < T && (b = T), b === T || f.length === 0 || this.length === 0) return 0;
|
|
@@ -14354,9 +14354,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14354
14354
|
var Y;
|
|
14355
14355
|
if (u >>>= 0, T = T === void 0 ? this.length : T >>> 0, f || (f = 0), typeof f == "number") for (Y = u; Y < T; ++Y) this[Y] = f;
|
|
14356
14356
|
else {
|
|
14357
|
-
var
|
|
14357
|
+
var Ce = m.isBuffer(f) ? f : m.from(f, b), tt = Ce.length;
|
|
14358
14358
|
if (tt === 0) throw new TypeError('The value "' + f + '" is invalid for argument "value"');
|
|
14359
|
-
for (Y = 0; Y < T - u; ++Y) this[Y + u] =
|
|
14359
|
+
for (Y = 0; Y < T - u; ++Y) this[Y + u] = Ce[Y % tt];
|
|
14360
14360
|
}
|
|
14361
14361
|
return this;
|
|
14362
14362
|
};
|
|
@@ -14364,14 +14364,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14364
14364
|
function _t(f, u) {
|
|
14365
14365
|
var T;
|
|
14366
14366
|
u = u || 1 / 0;
|
|
14367
|
-
for (var b = f.length, Q = null, Y = [],
|
|
14368
|
-
if ((T = f.charCodeAt(
|
|
14367
|
+
for (var b = f.length, Q = null, Y = [], Ce = 0; Ce < b; ++Ce) {
|
|
14368
|
+
if ((T = f.charCodeAt(Ce)) > 55295 && T < 57344) {
|
|
14369
14369
|
if (!Q) {
|
|
14370
14370
|
if (T > 56319) {
|
|
14371
14371
|
(u -= 3) > -1 && Y.push(239, 191, 189);
|
|
14372
14372
|
continue;
|
|
14373
14373
|
}
|
|
14374
|
-
if (
|
|
14374
|
+
if (Ce + 1 === b) {
|
|
14375
14375
|
(u -= 3) > -1 && Y.push(239, 191, 189);
|
|
14376
14376
|
continue;
|
|
14377
14377
|
}
|
|
@@ -14905,7 +14905,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14905
14905
|
var B, P, J, M, K = void 0;
|
|
14906
14906
|
function ae(qe, at) {
|
|
14907
14907
|
var me = this, ye = new this.constructor(le);
|
|
14908
|
-
ye[te] === void 0 &&
|
|
14908
|
+
ye[te] === void 0 && we(ye);
|
|
14909
14909
|
var je = me._state;
|
|
14910
14910
|
if (je) {
|
|
14911
14911
|
var f = arguments[je - 1];
|
|
@@ -14949,9 +14949,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
14949
14949
|
});
|
|
14950
14950
|
}(qe, at) : me === void 0 ? We(qe, at) : ne(me) ? function(ye, je, f) {
|
|
14951
14951
|
m(function(u) {
|
|
14952
|
-
var T = !1, b = function(Q, Y,
|
|
14952
|
+
var T = !1, b = function(Q, Y, Ce, tt) {
|
|
14953
14953
|
try {
|
|
14954
|
-
Q.call(Y,
|
|
14954
|
+
Q.call(Y, Ce, tt);
|
|
14955
14955
|
} catch (ke) {
|
|
14956
14956
|
return ke;
|
|
14957
14957
|
}
|
|
@@ -15011,12 +15011,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15011
15011
|
at._state !== Se || (je && T ? De(at, f) : T === !1 ? be(at, u) : qe === 1 ? We(at, f) : qe === 2 && be(at, f));
|
|
15012
15012
|
}
|
|
15013
15013
|
var Ae = 0;
|
|
15014
|
-
function
|
|
15014
|
+
function we(qe) {
|
|
15015
15015
|
qe[te] = Ae++, qe._state = void 0, qe._result = void 0, qe._subscribers = [];
|
|
15016
15016
|
}
|
|
15017
15017
|
var Tt = function() {
|
|
15018
15018
|
function qe(at, me) {
|
|
15019
|
-
this._instanceConstructor = at, this.promise = new at(le), this.promise[te] ||
|
|
15019
|
+
this._instanceConstructor = at, this.promise = new at(le), this.promise[te] || we(this.promise), v(me) ? (this.length = me.length, this._remaining = me.length, this._result = new Array(this.length), this.length === 0 ? We(this.promise, this._result) : (this.length = this.length || 0, this._enumerate(me), this._remaining === 0 && We(this.promise, this._result))) : be(this.promise, new Error("Array Methods must be provided an Array"));
|
|
15020
15020
|
}
|
|
15021
15021
|
return qe.prototype._enumerate = function(at) {
|
|
15022
15022
|
for (var me = 0; this._state === Se && me < at.length; me++) this._eachEntry(at[me], me);
|
|
@@ -15311,14 +15311,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15311
15311
|
if ("contents" in u) for (var T = ("styleAttrs" in u) ? u.styleAttrs[e.byName.ruby.qname] : null, b = u.kind === "span" && (T === "container" || T === "textContainer" || T === "baseContainer"), Q = u.contents.length - 1; Q >= 0; Q--) !b || "styleAttrs" in u.contents[Q] && e.byName.ruby.qname in u.contents[Q].styleAttrs ? m(u.contents[Q]) : delete u.contents[Q];
|
|
15312
15312
|
}
|
|
15313
15313
|
function o(u, T, b, Q) {
|
|
15314
|
-
var Y = Q && Q.timeContainer === "seq",
|
|
15315
|
-
Q && (
|
|
15314
|
+
var Y = Q && Q.timeContainer === "seq", Ce = 0;
|
|
15315
|
+
Q && (Ce = Y && b ? b.end : Q.begin), T.begin = T.explicit_begin ? T.explicit_begin + Ce : Ce;
|
|
15316
15316
|
var tt = T.begin, ke = null;
|
|
15317
15317
|
if ("sets" in T) for (var Fe = 0; Fe < T.sets.length; Fe++) o(u, T.sets[Fe], ke, T), tt = T.timeContainer === "seq" ? T.sets[Fe].end : Math.max(tt, T.sets[Fe].end), ke = T.sets[Fe];
|
|
15318
15318
|
if ("contents" in T) {
|
|
15319
15319
|
if ("contents" in T) for (var Ne = 0; Ne < T.contents.length; Ne++) o(u, T.contents[Ne], ke, T), tt = T.timeContainer === "seq" ? T.contents[Ne].end : Math.max(tt, T.contents[Ne].end), ke = T.contents[Ne];
|
|
15320
15320
|
} else tt = Y ? T.begin : Number.POSITIVE_INFINITY;
|
|
15321
|
-
T.explicit_end !== null && T.explicit_dur !== null ? T.end = Math.min(T.begin + T.explicit_dur,
|
|
15321
|
+
T.explicit_end !== null && T.explicit_dur !== null ? T.end = Math.min(T.begin + T.explicit_dur, Ce + T.explicit_end) : T.explicit_end === null && T.explicit_dur !== null ? T.end = T.begin + T.explicit_dur : T.explicit_end !== null && T.explicit_dur === null ? T.end = Ce + T.explicit_end : T.end = tt, delete T.explicit_begin, delete T.explicit_dur, delete T.explicit_end, u._registerEvent(T);
|
|
15322
15322
|
}
|
|
15323
15323
|
function E(u) {
|
|
15324
15324
|
this.node = u;
|
|
@@ -15396,15 +15396,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15396
15396
|
function Ae(u, T) {
|
|
15397
15397
|
var b = {};
|
|
15398
15398
|
if (u !== null) for (var Q in u.attributes) {
|
|
15399
|
-
var Y = u.attributes[Q].uri + " " + u.attributes[Q].local,
|
|
15400
|
-
if (
|
|
15401
|
-
var tt =
|
|
15402
|
-
tt !== null ? (b[Y] = tt,
|
|
15399
|
+
var Y = u.attributes[Q].uri + " " + u.attributes[Q].local, Ce = e.byQName[Y];
|
|
15400
|
+
if (Ce !== void 0) {
|
|
15401
|
+
var tt = Ce.parse(u.attributes[Q].value);
|
|
15402
|
+
tt !== null ? (b[Y] = tt, Ce === e.byName.zIndex && me(T, "zIndex attribute present but not used by IMSC1 since regions do not overlap")) : ye(T, "Cannot parse styling attribute " + Y + " --> " + u.attributes[Q].value);
|
|
15403
15403
|
}
|
|
15404
15404
|
}
|
|
15405
15405
|
return b;
|
|
15406
15406
|
}
|
|
15407
|
-
function
|
|
15407
|
+
function we(u, T, b) {
|
|
15408
15408
|
for (var Q in u.attributes) if (u.attributes[Q].uri === T && u.attributes[Q].local === b) return u.attributes[Q].value;
|
|
15409
15409
|
return null;
|
|
15410
15410
|
}
|
|
@@ -15420,8 +15420,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15420
15420
|
}
|
|
15421
15421
|
function qe(u, T, b, Q) {
|
|
15422
15422
|
for (var Y = T.length - 1; Y >= 0; Y--) {
|
|
15423
|
-
var
|
|
15424
|
-
|
|
15423
|
+
var Ce = T[Y];
|
|
15424
|
+
Ce in u.styles ? at(u.styles[Ce].styleAttrs, b) : ye(Q, "Non-existant style id referenced");
|
|
15425
15425
|
}
|
|
15426
15426
|
}
|
|
15427
15427
|
function at(u, T) {
|
|
@@ -15438,17 +15438,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15438
15438
|
}
|
|
15439
15439
|
function f(u, T) {
|
|
15440
15440
|
for (var b, Q = 0, Y = u.length - 1; Q <= Y; ) {
|
|
15441
|
-
var
|
|
15442
|
-
if (
|
|
15441
|
+
var Ce = u[b = Math.floor((Q + Y) / 2)];
|
|
15442
|
+
if (Ce < T) Q = b + 1;
|
|
15443
15443
|
else {
|
|
15444
|
-
if (!(
|
|
15444
|
+
if (!(Ce > T)) return { found: !0, index: b };
|
|
15445
15445
|
Y = b - 1;
|
|
15446
15446
|
}
|
|
15447
15447
|
}
|
|
15448
15448
|
return { found: !1, index: Q };
|
|
15449
15449
|
}
|
|
15450
15450
|
ne.fromXML = function(u, T, b) {
|
|
15451
|
-
var Q = v.parser(!0, { xmlns: !0 }), Y = [],
|
|
15451
|
+
var Q = v.parser(!0, { xmlns: !0 }), Y = [], Ce = [], tt = [], ke = 0, Fe = null;
|
|
15452
15452
|
Q.onclosetag = function(ft) {
|
|
15453
15453
|
if (Y[0] instanceof be) Fe.head !== null && Fe.head.styling !== null && qe(Fe.head.styling, Y[0].styleRefs, Y[0].styleAttrs, T), delete Y[0].styleRefs;
|
|
15454
15454
|
else if (Y[0] instanceof c) for (var Yt in Y[0].styles) Y[0].styles.hasOwnProperty(Yt) && _t(Y[0], Y[0].styles[Yt], T);
|
|
@@ -15460,7 +15460,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15460
15460
|
}
|
|
15461
15461
|
Y[0] instanceof De && Y[0].contents.length === 1 && Y[0].contents[0] instanceof Ue && (Y[0].text = Y[0].contents[0].text, delete Y[0].contents);
|
|
15462
15462
|
} else Y[0] instanceof E && (Y[0].node.uri === t.ns_tt && Y[0].node.local === "metadata" ? ke-- : ke > 0 && b && "onCloseTag" in b && b.onCloseTag());
|
|
15463
|
-
tt.shift(),
|
|
15463
|
+
tt.shift(), Ce.shift(), Y.shift();
|
|
15464
15464
|
}, Q.ontext = function(ft) {
|
|
15465
15465
|
if (Y[0] !== void 0) if (Y[0] instanceof De || Y[0] instanceof X) {
|
|
15466
15466
|
if (Y[0] instanceof De) {
|
|
@@ -15468,13 +15468,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15468
15468
|
if (Yt === "container" || Yt === "textContainer" || Yt === "baseContainer") return;
|
|
15469
15469
|
}
|
|
15470
15470
|
var Ot = new Ue();
|
|
15471
|
-
Ot.initFromText(Fe, Y[0], ft,
|
|
15471
|
+
Ot.initFromText(Fe, Y[0], ft, Ce[0], tt[0], T), Y[0].contents.push(Ot);
|
|
15472
15472
|
} else Y[0] instanceof E && ke > 0 && b && "onText" in b && b.onText(ft);
|
|
15473
15473
|
}, Q.onopentag = function(ft) {
|
|
15474
15474
|
var Yt = ft.attributes["xml:space"];
|
|
15475
15475
|
Yt ? tt.unshift(Yt.value) : tt.length === 0 ? tt.unshift("default") : tt.unshift(tt[0]);
|
|
15476
15476
|
var Ot = ft.attributes["xml:lang"];
|
|
15477
|
-
if (Ot ?
|
|
15477
|
+
if (Ot ? Ce.unshift(Ot.value) : Ce.length === 0 ? Ce.unshift("") : Ce.unshift(Ce[0]), ft.uri === t.ns_tt) if (ft.local === "tt") Fe !== null && je(T, "Two <tt> elements at (" + this.line + "," + this.column + ")"), (Fe = new h()).initFromNode(ft, Ce[0], T), Y.unshift(Fe);
|
|
15478
15478
|
else if (ft.local === "head") Y[0] instanceof h || je(T, "Parent of <head> element is not <tt> at (" + this.line + "," + this.column + ")"), Y.unshift(Fe.head);
|
|
15479
15479
|
else if (ft.local === "styling") Y[0] instanceof n || je(T, "Parent of <styling> element is not <head> at (" + this.line + "," + this.column + ")"), Y.unshift(Fe.head.styling);
|
|
15480
15480
|
else if (ft.local === "style") {
|
|
@@ -15490,33 +15490,33 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15490
15490
|
else if (ft.local === "region") {
|
|
15491
15491
|
Y[0] instanceof x || je(T, "Parent of <region> element is not <layout> at " + this.line + "," + this.column + ")");
|
|
15492
15492
|
var vn = new be();
|
|
15493
|
-
vn.initFromNode(Fe, ft,
|
|
15493
|
+
vn.initFromNode(Fe, ft, Ce[0], T), !vn.id || vn.id in Fe.head.layout.regions ? ye(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 (ft.local === "body") {
|
|
15495
15495
|
Y[0] instanceof h || je(T, "Parent of <body> element is not <tt> at " + this.line + "," + this.column + ")"), Fe.body !== null && je(T, "Second <body> element at " + this.line + "," + this.column + ")");
|
|
15496
15496
|
var Ln = new le();
|
|
15497
|
-
Ln.initFromNode(Fe, ft,
|
|
15497
|
+
Ln.initFromNode(Fe, ft, Ce[0], T), Fe.body = Ln, Y.unshift(Ln);
|
|
15498
15498
|
} else if (ft.local === "div") {
|
|
15499
15499
|
Y[0] instanceof Se || Y[0] instanceof le || je(T, "Parent of <div> element is not <body> or <div> at " + this.line + "," + this.column + ")");
|
|
15500
15500
|
var Dn = new Se();
|
|
15501
|
-
Dn.initFromNode(Fe, Y[0], ft,
|
|
15501
|
+
Dn.initFromNode(Fe, Y[0], ft, Ce[0], T);
|
|
15502
15502
|
var xn = Dn.styleAttrs[e.byName.backgroundImage.qname];
|
|
15503
15503
|
xn && (Dn.contents.push(new B(xn)), delete Dn.styleAttrs[e.byName.backgroundImage.qname]), Y[0].contents.push(Dn), Y.unshift(Dn);
|
|
15504
15504
|
} else if (ft.local === "image") {
|
|
15505
15505
|
Y[0] instanceof Se || je(T, "Parent of <image> element is not <div> at " + this.line + "," + this.column + ")");
|
|
15506
15506
|
var Jn = new B();
|
|
15507
|
-
Jn.initFromNode(Fe, Y[0], ft,
|
|
15507
|
+
Jn.initFromNode(Fe, Y[0], ft, Ce[0], T), Y[0].contents.push(Jn), Y.unshift(Jn);
|
|
15508
15508
|
} else if (ft.local === "p") {
|
|
15509
15509
|
Y[0] instanceof Se || je(T, "Parent of <p> element is not <div> at " + this.line + "," + this.column + ")");
|
|
15510
15510
|
var In = new X();
|
|
15511
|
-
In.initFromNode(Fe, Y[0], ft,
|
|
15511
|
+
In.initFromNode(Fe, Y[0], ft, Ce[0], T), Y[0].contents.push(In), Y.unshift(In);
|
|
15512
15512
|
} else if (ft.local === "span") {
|
|
15513
15513
|
Y[0] instanceof De || Y[0] instanceof X || je(T, "Parent of <span> element is not <span> or <p> at " + this.line + "," + this.column + ")");
|
|
15514
15514
|
var cr = new De();
|
|
15515
|
-
cr.initFromNode(Fe, Y[0], ft,
|
|
15515
|
+
cr.initFromNode(Fe, Y[0], ft, Ce[0], tt[0], T), Y[0].contents.push(cr), Y.unshift(cr);
|
|
15516
15516
|
} else if (ft.local === "br") {
|
|
15517
15517
|
Y[0] instanceof De || Y[0] instanceof X || je(T, "Parent of <br> element is not <span> or <p> at " + this.line + "," + this.column + ")");
|
|
15518
15518
|
var Yn = new We();
|
|
15519
|
-
Yn.initFromNode(Fe, Y[0], ft,
|
|
15519
|
+
Yn.initFromNode(Fe, Y[0], ft, Ce[0], T), Y[0].contents.push(Yn), Y.unshift(Yn);
|
|
15520
15520
|
} else if (ft.local === "set") {
|
|
15521
15521
|
Y[0] instanceof De || Y[0] instanceof X || Y[0] instanceof Se || Y[0] instanceof le || Y[0] instanceof be || Y[0] instanceof We || je(T, "Parent of <set> element is not a content element or a region at " + this.line + "," + this.column + ")");
|
|
15522
15522
|
var ar = new Ze();
|
|
@@ -15545,7 +15545,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15545
15545
|
return Fe.body && o(Fe, Fe.body, null, null), Fe.body && m(Fe.body), Fe;
|
|
15546
15546
|
}, h.prototype.initFromNode = function(u, T, b) {
|
|
15547
15547
|
var Q = function(ke, Fe) {
|
|
15548
|
-
var Ne =
|
|
15548
|
+
var Ne = we(ke, t.ns_ttp, "cellResolution"), He = 15, it = 32;
|
|
15549
15549
|
if (Ne !== null) {
|
|
15550
15550
|
var bt = /(\d+) (\d+)/.exec(Ne);
|
|
15551
15551
|
bt !== null ? (it = parseInt(bt[1]), He = parseInt(bt[2])) : me(Fe, "Malformed cellResolution value (using initial value instead)");
|
|
@@ -15554,16 +15554,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15554
15554
|
}(u, b);
|
|
15555
15555
|
this.cellLength = { h: new p.ComputedLength(0, 1 / Q.h), w: new p.ComputedLength(1 / Q.w, 0) };
|
|
15556
15556
|
var Y = function(ke, Fe) {
|
|
15557
|
-
var Ne, He =
|
|
15557
|
+
var Ne, He = we(ke, t.ns_ttp, "frameRate"), it = 30;
|
|
15558
15558
|
He !== null && ((Ne = /(\d+)/.exec(He)) !== null ? it = parseInt(Ne[1]) : me(Fe, "Malformed frame rate attribute (using initial value instead)"));
|
|
15559
|
-
var bt =
|
|
15559
|
+
var bt = we(ke, t.ns_ttp, "frameRateMultiplier"), ft = 1;
|
|
15560
15560
|
bt !== null && ((Ne = /(\d+) (\d+)/.exec(bt)) !== null ? ft = parseInt(Ne[1]) / parseInt(Ne[2]) : me(Fe, "Malformed frame rate multiplier attribute (using initial value instead)"));
|
|
15561
|
-
var Yt = ft * it, Ot = 1, Ht =
|
|
15561
|
+
var Yt = ft * it, Ot = 1, Ht = we(ke, t.ns_ttp, "tickRate");
|
|
15562
15562
|
return Ht === null ? He !== null && (Ot = Yt) : (Ne = /(\d+)/.exec(Ht)) !== null ? Ot = parseInt(Ne[1]) : me(Fe, "Malformed tick rate attribute (using initial value instead)"), { effectiveFrameRate: Yt, tickRate: Ot };
|
|
15563
15563
|
}(u, b);
|
|
15564
15564
|
this.effectiveFrameRate = Y.effectiveFrameRate, this.tickRate = Y.tickRate, this.aspectRatio = function(ke, Fe) {
|
|
15565
|
-
var Ne =
|
|
15566
|
-
Ne === null && (Ne =
|
|
15565
|
+
var Ne = we(ke, t.ns_ittp, "aspectRatio");
|
|
15566
|
+
Ne === null && (Ne = we(ke, t.ns_ttp, "displayAspectRatio"));
|
|
15567
15567
|
var He = null;
|
|
15568
15568
|
if (Ne !== null) {
|
|
15569
15569
|
var it = /(\d+)\s+(\d+)/.exec(Ne);
|
|
@@ -15574,10 +15574,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15574
15574
|
}
|
|
15575
15575
|
return He;
|
|
15576
15576
|
}(u, b);
|
|
15577
|
-
var
|
|
15578
|
-
|
|
15577
|
+
var Ce = we(u, t.ns_ttp, "timeBase");
|
|
15578
|
+
Ce !== null && Ce !== "media" && je(b, "Unsupported time base");
|
|
15579
15579
|
var tt = function(ke, Fe) {
|
|
15580
|
-
var Ne =
|
|
15580
|
+
var Ne = we(ke, t.ns_tts, "extent");
|
|
15581
15581
|
if (Ne === null) return null;
|
|
15582
15582
|
var He = Ne.split(" ");
|
|
15583
15583
|
if (He.length !== 2) return me(Fe, "Malformed extent (ignoring)"), null;
|
|
@@ -15619,16 +15619,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15619
15619
|
}, j.prototype.initFromNode = function(u, T, b, Q) {
|
|
15620
15620
|
this.contents = [];
|
|
15621
15621
|
}, te.prototype.initFromNode = function(u, T, b, Q) {
|
|
15622
|
-
var Y = function(
|
|
15622
|
+
var Y = function(Ce, tt, ke, Fe) {
|
|
15623
15623
|
var Ne = null;
|
|
15624
|
-
ke && "begin" in ke.attributes && (Ne = Tt(
|
|
15624
|
+
ke && "begin" in ke.attributes && (Ne = Tt(Ce.tickRate, Ce.effectiveFrameRate, ke.attributes.begin.value)) === null && me(Fe, "Malformed begin value " + ke.attributes.begin.value + " (using 0)");
|
|
15625
15625
|
var He = null;
|
|
15626
|
-
ke && "dur" in ke.attributes && (He = Tt(
|
|
15626
|
+
ke && "dur" in ke.attributes && (He = Tt(Ce.tickRate, Ce.effectiveFrameRate, ke.attributes.dur.value)) === null && me(Fe, "Malformed dur value " + ke.attributes.dur.value + " (ignoring)");
|
|
15627
15627
|
var it = null;
|
|
15628
|
-
return ke && "end" in ke.attributes && (it = Tt(
|
|
15628
|
+
return ke && "end" in ke.attributes && (it = Tt(Ce.tickRate, Ce.effectiveFrameRate, ke.attributes.end.value)) === null && me(Fe, "Malformed end value (ignoring)"), { explicit_begin: Ne, explicit_end: it, explicit_dur: He };
|
|
15629
15629
|
}(u, 0, b, Q);
|
|
15630
|
-
this.explicit_begin = Y.explicit_begin, this.explicit_end = Y.explicit_end, this.explicit_dur = Y.explicit_dur, this.timeContainer = function(
|
|
15631
|
-
var ke =
|
|
15630
|
+
this.explicit_begin = Y.explicit_begin, this.explicit_end = Y.explicit_end, this.explicit_dur = Y.explicit_dur, this.timeContainer = function(Ce, tt) {
|
|
15631
|
+
var ke = Ce && "timeContainer" in Ce.attributes ? Ce.attributes.timeContainer.value : null;
|
|
15632
15632
|
return ke && ke !== "par" ? ke === "seq" ? "seq" : (ye(tt, "Illegal value of timeContainer (assuming 'par')"), "par") : "par";
|
|
15633
15633
|
}(b, Q);
|
|
15634
15634
|
}, le.prototype.initFromNode = function(u, T, b, Q) {
|
|
@@ -15637,10 +15637,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15637
15637
|
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), j.prototype.initFromNode.call(this, u, T, b, Y), this.lang = Q;
|
|
15638
15638
|
}, X.prototype.initFromNode = function(u, T, b, Q, Y) {
|
|
15639
15639
|
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), j.prototype.initFromNode.call(this, u, T, b, Y), this.lang = Q;
|
|
15640
|
-
}, De.prototype.initFromNode = function(u, T, b, Q, Y,
|
|
15641
|
-
K.prototype.initFromNode.call(this, u, T, b,
|
|
15642
|
-
}, Ue.prototype.initFromText = function(u, T, b, Q, Y,
|
|
15643
|
-
te.prototype.initFromNode.call(this, u, T, null,
|
|
15640
|
+
}, De.prototype.initFromNode = function(u, T, b, Q, Y, Ce) {
|
|
15641
|
+
K.prototype.initFromNode.call(this, u, T, b, Ce), te.prototype.initFromNode.call(this, u, T, b, Ce), ae.prototype.initFromNode.call(this, u, T, b, Ce), M.prototype.initFromNode.call(this, u, T, b, Ce), j.prototype.initFromNode.call(this, u, T, b, Ce), this.space = Y, this.lang = Q;
|
|
15642
|
+
}, Ue.prototype.initFromText = function(u, T, b, Q, Y, Ce) {
|
|
15643
|
+
te.prototype.initFromNode.call(this, u, T, null, Ce), this.text = b, this.space = Y, this.lang = Q;
|
|
15644
15644
|
}, We.prototype.initFromNode = function(u, T, b, Q, Y) {
|
|
15645
15645
|
M.prototype.initFromNode.call(this, u, T, b, Y), te.prototype.initFromNode.call(this, u, T, b, Y), this.lang = Q;
|
|
15646
15646
|
}, be.prototype.createDefaultRegion = function(u) {
|
|
@@ -15651,12 +15651,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15651
15651
|
}, Ze.prototype.initFromNode = function(u, T, b, Q) {
|
|
15652
15652
|
te.prototype.initFromNode.call(this, u, T, b, Q);
|
|
15653
15653
|
var Y = Ae(b, Q);
|
|
15654
|
-
for (var
|
|
15654
|
+
for (var Ce in this.qname = null, this.value = null, Y) if (Y.hasOwnProperty(Ce)) {
|
|
15655
15655
|
if (this.qname) {
|
|
15656
15656
|
ye(Q, "More than one style specified on set");
|
|
15657
15657
|
break;
|
|
15658
15658
|
}
|
|
15659
|
-
this.qname =
|
|
15659
|
+
this.qname = Ce, this.value = Y[Ce];
|
|
15660
15660
|
}
|
|
15661
15661
|
};
|
|
15662
15662
|
})(_e, typeof sax > "u" ? C(5378) : sax, typeof imscNames > "u" ? C(210) : imscNames, typeof imscStyles > "u" ? C(6811) : imscStyles, typeof imscUtils > "u" ? C(5926) : imscUtils);
|
|
@@ -15698,9 +15698,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15698
15698
|
}
|
|
15699
15699
|
var ot = X, Ae = le.styleAttrs[e.byName.linePadding.qname];
|
|
15700
15700
|
if (Ae && !Ae.isZero()) {
|
|
15701
|
-
var
|
|
15702
|
-
if (
|
|
15703
|
-
var Tt = Math.ceil(
|
|
15701
|
+
var we = Ae.toUsedLength(j.w, j.h);
|
|
15702
|
+
if (we > 0) {
|
|
15703
|
+
var Tt = Math.ceil(we) + "px";
|
|
15704
15704
|
j.bpd === "tb" ? (ot.style.paddingLeft = Tt, ot.style.paddingRight = Tt) : (ot.style.paddingTop = Tt, ot.style.paddingBottom = Tt), j.lp = Ae;
|
|
15705
15705
|
}
|
|
15706
15706
|
}
|
|
@@ -15788,8 +15788,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15788
15788
|
n(j, ot, b, null);
|
|
15789
15789
|
var Y = new E(le.id === "" ? "_" : le.id, b);
|
|
15790
15790
|
if (j.currentISDState[Y.id] = Y, j.previousISDState && Y.id in j.previousISDState && j.previousISDState[Y.id].plist.length > 0 && Y.plist.length > 1 && Y.plist[Y.plist.length - 2].text === j.previousISDState[Y.id].plist[j.previousISDState[Y.id].plist.length - 1].text) {
|
|
15791
|
-
var
|
|
15792
|
-
|
|
15791
|
+
var Ce = X.firstElementChild, tt = Y.plist[Y.plist.length - 1].after - Y.plist[Y.plist.length - 1].before;
|
|
15792
|
+
Ce.style.bottom = "-" + tt + "px", Ce.style.transition = "transform 0.4s", Ce.style.position = "relative", Ce.style.transform = "translateY(-" + tt + "px)";
|
|
15793
15793
|
}
|
|
15794
15794
|
}
|
|
15795
15795
|
} else ae(j.errorHandler, "Error processing ISD element kind: " + le.kind);
|
|
@@ -15845,9 +15845,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15845
15845
|
}
|
|
15846
15846
|
var Ae = document.createElement("div");
|
|
15847
15847
|
Ae.style.position = "relative", Ae.style.width = Qe + "px", Ae.style.height = Ze + "px", Ae.style.margin = "auto", Ae.style.top = 0, Ae.style.bottom = 0, Ae.style.left = 0, Ae.style.right = 0, Ae.style.zIndex = 0;
|
|
15848
|
-
var
|
|
15849
|
-
if (te.appendChild(Ae), "contents" in j) for (var Tt = 0; Tt < j.contents.length; Tt++) p(
|
|
15850
|
-
return
|
|
15848
|
+
var we = { h: Ze, w: Qe, regionH: null, regionW: null, imgResolver: le, displayForcedOnlyMode: De || !1, isd: j, errorHandler: Ue, previousISDState: We, enableRollUp: be || !1, currentISDState: {}, flg: null, lp: null, mra: null, ipd: null, bpd: null, ruby: null, textEmphasis: null, rubyReserve: null };
|
|
15849
|
+
if (te.appendChild(Ae), "contents" in j) for (var Tt = 0; Tt < j.contents.length; Tt++) p(we, Ae, j.contents[Tt], j);
|
|
15850
|
+
return we.currentISDState;
|
|
15851
15851
|
};
|
|
15852
15852
|
for (var S = [new d("http://www.w3.org/ns/ttml#styling backgroundColor", function(j, te, le, Se) {
|
|
15853
15853
|
Se[3] !== 0 && (te.style.backgroundColor = "rgba(" + Se[0].toString() + "," + Se[1].toString() + "," + Se[2].toString() + "," + (Se[3] / 255).toString() + ")");
|
|
@@ -15991,8 +15991,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
15991
15991
|
te.styleAttrs[We.qname] = new e.ComputedLength(0.5 * Ae.rw, 0.5 * Ae.rh);
|
|
15992
15992
|
}
|
|
15993
15993
|
}
|
|
15994
|
-
for (var
|
|
15995
|
-
var Tt = t.all[
|
|
15994
|
+
for (var we = 0; we < t.all.length; we++) {
|
|
15995
|
+
var Tt = t.all[we];
|
|
15996
15996
|
if (!(Tt.qname in te.styleAttrs) && !(Tt.qname === t.byName.position.qname && t.byName.origin.qname in te.styleAttrs || Tt.qname === t.byName.origin.qname && t.byName.position.qname in te.styleAttrs)) {
|
|
15997
15997
|
var _t = d.head.styling.initials[Tt.qname] || Tt.initial;
|
|
15998
15998
|
if (_t !== null && (te.kind === "region" || Tt.inherit === !1 && _t !== null)) {
|
|
@@ -16027,8 +16027,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
16027
16027
|
}
|
|
16028
16028
|
b && delete te.styleAttrs[T];
|
|
16029
16029
|
}
|
|
16030
|
-
var
|
|
16031
|
-
if (te.kind === "p" || te.kind === "span" && (
|
|
16030
|
+
var Ce = te.styleAttrs[t.byName.ruby.qname];
|
|
16031
|
+
if (te.kind === "p" || te.kind === "span" && (Ce === "textContainer" || Ce === "text")) {
|
|
16032
16032
|
var tt = [];
|
|
16033
16033
|
o(te, tt), function(ke) {
|
|
16034
16034
|
for (var Fe, Ne = 0; Ne < ke.length; ) if ((Fe = ke[Ne]).kind !== "br" && Fe.space !== "preserve") {
|
|
@@ -16597,7 +16597,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
16597
16597
|
b === ">" ? (We(u, "onprocessinginstruction", { name: u.procInstName, body: u.procInstBody }), u.procInstName = u.procInstBody = "", u.state = X.TEXT) : (u.procInstBody += "?" + b, u.state = X.PROC_INST_BODY);
|
|
16598
16598
|
continue;
|
|
16599
16599
|
case X.OPEN_TAG:
|
|
16600
|
-
ae(P, b) ? u.tagName += b : (
|
|
16600
|
+
ae(P, b) ? u.tagName += b : (we(u), b === ">" ? qe(u) : b === "/" ? u.state = X.OPEN_TAG_SLASH : (j(o, b) && Ae(u, "Invalid character in tag name"), u.state = X.ATTRIB));
|
|
16601
16601
|
continue;
|
|
16602
16602
|
case X.OPEN_TAG_SLASH:
|
|
16603
16603
|
b === ">" ? (qe(u, !0), at(u)) : (Ae(u, "Forward-slash in opening tag not followed by >"), u.state = X.ATTRIB);
|
|
@@ -16651,18 +16651,18 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
16651
16651
|
case X.TEXT_ENTITY:
|
|
16652
16652
|
case X.ATTRIB_VALUE_ENTITY_Q:
|
|
16653
16653
|
case X.ATTRIB_VALUE_ENTITY_U:
|
|
16654
|
-
var
|
|
16654
|
+
var Ce, tt;
|
|
16655
16655
|
switch (u.state) {
|
|
16656
16656
|
case X.TEXT_ENTITY:
|
|
16657
|
-
|
|
16657
|
+
Ce = X.TEXT, tt = "textNode";
|
|
16658
16658
|
break;
|
|
16659
16659
|
case X.ATTRIB_VALUE_ENTITY_Q:
|
|
16660
|
-
|
|
16660
|
+
Ce = X.ATTRIB_VALUE_QUOTED, tt = "attribValue";
|
|
16661
16661
|
break;
|
|
16662
16662
|
case X.ATTRIB_VALUE_ENTITY_U:
|
|
16663
|
-
|
|
16663
|
+
Ce = X.ATTRIB_VALUE_UNQUOTED, tt = "attribValue";
|
|
16664
16664
|
}
|
|
16665
|
-
b === ";" ? (u[tt] += me(u), u.entity = "", u.state =
|
|
16665
|
+
b === ";" ? (u[tt] += me(u), u.entity = "", u.state = Ce) : ae(u.entity.length ? M : J, b) ? u.entity += b : (Ae(u, "Invalid character in entity name"), u[tt] += "&" + u.entity + b, u.entity = "", u.state = Ce);
|
|
16666
16666
|
continue;
|
|
16667
16667
|
default:
|
|
16668
16668
|
throw new Error(u, "Unknown state: " + u.state);
|
|
@@ -16788,7 +16788,7 @@ Char: ` + f.c), u = new Error(u), f.error = u, Ue(f, "onerror", u), f;
|
|
|
16788
16788
|
if (typeof f != "object" || !(f instanceof e)) throw new Error("bad call to strictFail");
|
|
16789
16789
|
f.strict && Qe(f, u);
|
|
16790
16790
|
}
|
|
16791
|
-
function
|
|
16791
|
+
function we(f) {
|
|
16792
16792
|
f.strict || (f.tagName = f.tagName[f.looseCase]());
|
|
16793
16793
|
var u = f.tags[f.tags.length - 1] || f, T = f.tag = { name: f.tagName, attributes: {} };
|
|
16794
16794
|
f.opt.xmlns && (T.ns = u.ns), f.attribList.length = 0, We(f, "onopentagstart", T);
|
|
@@ -16823,7 +16823,7 @@ Actual: ` + f.attribValue);
|
|
|
16823
16823
|
T.ns && Q.ns !== T.ns && Object.keys(T.ns).forEach(function(Yt) {
|
|
16824
16824
|
We(f, "onopennamespace", { prefix: Yt, uri: T.ns[Yt] });
|
|
16825
16825
|
});
|
|
16826
|
-
for (var Y = 0,
|
|
16826
|
+
for (var Y = 0, Ce = f.attribList.length; Y < Ce; Y++) {
|
|
16827
16827
|
var tt = f.attribList[Y], ke = tt[0], Fe = tt[1], Ne = Tt(ke, !0), He = Ne.prefix, it = Ne.local, bt = He === "" ? "" : T.ns[He] || "", ft = { name: ke, value: Fe, prefix: He, local: it, uri: bt };
|
|
16828
16828
|
He && He !== "xmlns" && !bt && (Ae(f, "Unbound namespace prefix: " + JSON.stringify(He)), ft.uri = He), f.tag.attributes[ke] = ft, We(f, "onattribute", ft);
|
|
16829
16829
|
}
|
|
@@ -16845,8 +16845,8 @@ Actual: ` + f.attribValue);
|
|
|
16845
16845
|
for (var Q = f.tags.length; Q-- > u; ) {
|
|
16846
16846
|
var Y = f.tag = f.tags.pop();
|
|
16847
16847
|
f.tagName = f.tag.name, We(f, "onclosetag", f.tagName);
|
|
16848
|
-
var
|
|
16849
|
-
for (var tt in Y.ns)
|
|
16848
|
+
var Ce = {};
|
|
16849
|
+
for (var tt in Y.ns) Ce[tt] = Y.ns[tt];
|
|
16850
16850
|
var ke = f.tags[f.tags.length - 1] || f;
|
|
16851
16851
|
f.opt.xmlns && Y.ns !== ke.ns && Object.keys(Y.ns).forEach(function(Fe) {
|
|
16852
16852
|
var Ne = Y.ns[Fe];
|
|
@@ -16869,12 +16869,12 @@ Actual: ` + f.attribValue);
|
|
|
16869
16869
|
X = ne.STATE, String.fromCodePoint || (te = String.fromCharCode, le = Math.floor, Se = function() {
|
|
16870
16870
|
var f, u, T = 16384, b = [], Q = -1, Y = arguments.length;
|
|
16871
16871
|
if (!Y) return "";
|
|
16872
|
-
for (var
|
|
16872
|
+
for (var Ce = ""; ++Q < Y; ) {
|
|
16873
16873
|
var tt = Number(arguments[Q]);
|
|
16874
16874
|
if (!isFinite(tt) || tt < 0 || tt > 1114111 || le(tt) !== tt) throw RangeError("Invalid code point: " + tt);
|
|
16875
|
-
tt <= 65535 ? b.push(tt) : (f = 55296 + ((tt -= 65536) >> 10), u = tt % 1024 + 56320, b.push(f, u)), (Q + 1 === Y || b.length > T) && (
|
|
16875
|
+
tt <= 65535 ? b.push(tt) : (f = 55296 + ((tt -= 65536) >> 10), u = tt % 1024 + 56320, b.push(f, u)), (Q + 1 === Y || b.length > T) && (Ce += te.apply(null, b), b.length = 0);
|
|
16876
16876
|
}
|
|
16877
|
-
return
|
|
16877
|
+
return Ce;
|
|
16878
16878
|
}, Object.defineProperty ? Object.defineProperty(String, "fromCodePoint", { value: Se, configurable: !0, writable: !0 }) : String.fromCodePoint = Se);
|
|
16879
16879
|
})(_e);
|
|
16880
16880
|
}, 182: function(Me, _e, C) {
|
|
@@ -17031,15 +17031,15 @@ Actual: ` + f.attribValue);
|
|
|
17031
17031
|
if (ye === null) b.reading = !1, function(Q, Y) {
|
|
17032
17032
|
if (v("onEofChunk"), !Y.ended) {
|
|
17033
17033
|
if (Y.decoder) {
|
|
17034
|
-
var
|
|
17035
|
-
|
|
17034
|
+
var Ce = Y.decoder.end();
|
|
17035
|
+
Ce && Ce.length && (Y.buffer.push(Ce), Y.length += Y.objectMode ? 1 : Ce.length);
|
|
17036
17036
|
}
|
|
17037
17037
|
Y.ended = !0, Y.sync ? Ue(Q) : (Y.needReadable = !1, Y.emittedReadable || (Y.emittedReadable = !0, We(Q)));
|
|
17038
17038
|
}
|
|
17039
17039
|
}(me, b);
|
|
17040
17040
|
else if (u || (T = function(Q, Y) {
|
|
17041
|
-
var
|
|
17042
|
-
return tt = Y, p.isBuffer(tt) || tt instanceof m || typeof Y == "string" || Y === void 0 || Q.objectMode || (
|
|
17041
|
+
var Ce, tt;
|
|
17042
|
+
return tt = Y, p.isBuffer(tt) || tt instanceof m || typeof Y == "string" || Y === void 0 || Q.objectMode || (Ce = new B("chunk", ["string", "Buffer", "Uint8Array"], Y)), Ce;
|
|
17043
17043
|
}(b, ye)), T) K(me, T);
|
|
17044
17044
|
else if (b.objectMode || ye && ye.length > 0) if (typeof ye == "string" || b.objectMode || Object.getPrototypeOf(ye) === p.prototype || (ye = function(Q) {
|
|
17045
17045
|
return p.from(Q);
|
|
@@ -17087,7 +17087,7 @@ Actual: ` + f.attribValue);
|
|
|
17087
17087
|
}
|
|
17088
17088
|
function We(me) {
|
|
17089
17089
|
var ye = me._readableState;
|
|
17090
|
-
v("emitReadable_", ye.destroyed, ye.length, ye.ended), ye.destroyed || !ye.length && !ye.ended || (me.emit("readable"), ye.emittedReadable = !1), ye.needReadable = !ye.flowing && !ye.ended && ye.length <= ye.highWaterMark,
|
|
17090
|
+
v("emitReadable_", ye.destroyed, ye.length, ye.ended), ye.destroyed || !ye.length && !ye.ended || (me.emit("readable"), ye.emittedReadable = !1), ye.needReadable = !ye.flowing && !ye.ended && ye.length <= ye.highWaterMark, we(me);
|
|
17091
17091
|
}
|
|
17092
17092
|
function be(me, ye) {
|
|
17093
17093
|
ye.readingMore || (ye.readingMore = !0, process.nextTick(Ze, me, ye));
|
|
@@ -17107,9 +17107,9 @@ Actual: ` + f.attribValue);
|
|
|
17107
17107
|
v("readable nexttick read 0"), me.read(0);
|
|
17108
17108
|
}
|
|
17109
17109
|
function Ae(me, ye) {
|
|
17110
|
-
v("resume", ye.reading), ye.reading || me.read(0), ye.resumeScheduled = !1, me.emit("resume"),
|
|
17110
|
+
v("resume", ye.reading), ye.reading || me.read(0), ye.resumeScheduled = !1, me.emit("resume"), we(me), ye.flowing && !ye.reading && me.read(0);
|
|
17111
17111
|
}
|
|
17112
|
-
function
|
|
17112
|
+
function we(me) {
|
|
17113
17113
|
var ye = me._readableState;
|
|
17114
17114
|
for (v("flow", ye.flowing); ye.flowing && me.read() !== null; ) ;
|
|
17115
17115
|
}
|
|
@@ -17158,12 +17158,12 @@ Actual: ` + f.attribValue);
|
|
|
17158
17158
|
v("onend"), me.end();
|
|
17159
17159
|
}
|
|
17160
17160
|
f.endEmitted ? process.nextTick(u) : je.once("end", u), me.on("unpipe", function Ne(He, it) {
|
|
17161
|
-
v("onunpipe"), He === je && it && it.hasUnpiped === !1 && (it.hasUnpiped = !0, v("cleanup"), me.removeListener("close", tt), me.removeListener("finish", ke), me.removeListener("drain", b), me.removeListener("error",
|
|
17161
|
+
v("onunpipe"), He === je && it && it.hasUnpiped === !1 && (it.hasUnpiped = !0, v("cleanup"), me.removeListener("close", tt), me.removeListener("finish", ke), me.removeListener("drain", b), me.removeListener("error", Ce), me.removeListener("unpipe", Ne), je.removeListener("end", T), je.removeListener("end", Fe), je.removeListener("data", Y), Q = !0, !f.awaitDrain || me._writableState && !me._writableState.needDrain || b());
|
|
17162
17162
|
});
|
|
17163
17163
|
var b = /* @__PURE__ */ function(Ne) {
|
|
17164
17164
|
return function() {
|
|
17165
17165
|
var He = Ne._readableState;
|
|
17166
|
-
v("pipeOnDrain", He.awaitDrain), He.awaitDrain && He.awaitDrain--, He.awaitDrain === 0 && t(Ne, "data") && (He.flowing = !0,
|
|
17166
|
+
v("pipeOnDrain", He.awaitDrain), He.awaitDrain && He.awaitDrain--, He.awaitDrain === 0 && t(Ne, "data") && (He.flowing = !0, we(Ne));
|
|
17167
17167
|
};
|
|
17168
17168
|
}(je);
|
|
17169
17169
|
me.on("drain", b);
|
|
@@ -17173,8 +17173,8 @@ Actual: ` + f.attribValue);
|
|
|
17173
17173
|
var He = me.write(Ne);
|
|
17174
17174
|
v("dest.write", He), He === !1 && ((f.pipesCount === 1 && f.pipes === me || f.pipesCount > 1 && at(f.pipes, me) !== -1) && !Q && (v("false write response, pause", f.awaitDrain), f.awaitDrain++), je.pause());
|
|
17175
17175
|
}
|
|
17176
|
-
function
|
|
17177
|
-
v("onerror", Ne), Fe(), me.removeListener("error",
|
|
17176
|
+
function Ce(Ne) {
|
|
17177
|
+
v("onerror", Ne), Fe(), me.removeListener("error", Ce), t(me, "error") === 0 && K(me, Ne);
|
|
17178
17178
|
}
|
|
17179
17179
|
function tt() {
|
|
17180
17180
|
me.removeListener("finish", ke), Fe();
|
|
@@ -17188,7 +17188,7 @@ Actual: ` + f.attribValue);
|
|
|
17188
17188
|
return je.on("data", Y), function(Ne, He, it) {
|
|
17189
17189
|
if (typeof Ne.prependListener == "function") return Ne.prependListener(He, it);
|
|
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
|
-
}(me, "error",
|
|
17191
|
+
}(me, "error", Ce), me.once("close", tt), me.once("finish", ke), me.emit("pipe", je), f.flowing || (v("pipe resume"), je.resume()), me;
|
|
17192
17192
|
}, te.prototype.unpipe = function(me) {
|
|
17193
17193
|
var ye = this._readableState, je = { hasUnpiped: !1 };
|
|
17194
17194
|
if (ye.pipesCount === 0) return this;
|
|
@@ -17302,10 +17302,10 @@ Actual: ` + f.attribValue);
|
|
|
17302
17302
|
var Ze = this;
|
|
17303
17303
|
this.next = null, this.entry = null, this.finish = function() {
|
|
17304
17304
|
(function(Qe, ot, Ae) {
|
|
17305
|
-
var
|
|
17306
|
-
for (Qe.entry = null;
|
|
17307
|
-
var Tt =
|
|
17308
|
-
ot.pendingcb--, Tt(void 0),
|
|
17305
|
+
var we = Qe.entry;
|
|
17306
|
+
for (Qe.entry = null; we; ) {
|
|
17307
|
+
var Tt = we.callback;
|
|
17308
|
+
ot.pendingcb--, Tt(void 0), we = we.next;
|
|
17309
17309
|
}
|
|
17310
17310
|
ot.corkedRequestsFree.next = Qe;
|
|
17311
17311
|
})(Ze, be);
|
|
@@ -17321,17 +17321,17 @@ Actual: ` + f.attribValue);
|
|
|
17321
17321
|
v = v || C(6138), be = be || {}, typeof Qe != "boolean" && (Qe = Ze instanceof v), this.objectMode = !!be.objectMode, Qe && (this.objectMode = this.objectMode || !!be.writableObjectMode), this.highWaterMark = h(this, be, "writableHighWaterMark", Qe), this.finalCalled = !1, this.needDrain = !1, this.ending = !1, this.ended = !1, this.finished = !1, this.destroyed = !1;
|
|
17322
17322
|
var ot = be.decodeStrings === !1;
|
|
17323
17323
|
this.decodeStrings = !ot, this.defaultEncoding = be.defaultEncoding || "utf8", this.length = 0, this.writing = !1, this.corked = 0, this.sync = !0, this.bufferProcessing = !1, this.onwrite = function(Ae) {
|
|
17324
|
-
(function(
|
|
17325
|
-
var _t =
|
|
17324
|
+
(function(we, Tt) {
|
|
17325
|
+
var _t = we._writableState, qe = _t.sync, at = _t.writecb;
|
|
17326
17326
|
if (typeof at != "function") throw new S();
|
|
17327
17327
|
if (function(ye) {
|
|
17328
17328
|
ye.writing = !1, ye.writecb = null, ye.length -= ye.writelen, ye.writelen = 0;
|
|
17329
17329
|
}(_t), Tt) (function(ye, je, f, u, T) {
|
|
17330
17330
|
--je.pendingcb, f ? (process.nextTick(T, u), process.nextTick(We, ye, je), ye._writableState.errorEmitted = !0, K(ye, u)) : (T(u), ye._writableState.errorEmitted = !0, K(ye, u), We(ye, je));
|
|
17331
|
-
})(
|
|
17331
|
+
})(we, _t, qe, Tt, at);
|
|
17332
17332
|
else {
|
|
17333
|
-
var me = De(_t) ||
|
|
17334
|
-
me || _t.corked || _t.bufferProcessing || !_t.bufferedRequest || X(
|
|
17333
|
+
var me = De(_t) || we.destroyed;
|
|
17334
|
+
me || _t.corked || _t.bufferProcessing || !_t.bufferedRequest || X(we, _t), qe ? process.nextTick(Se, we, _t, me, at) : Se(we, _t, me, at);
|
|
17335
17335
|
}
|
|
17336
17336
|
})(Ze, Ae);
|
|
17337
17337
|
}, this.writecb = null, this.writelen = 0, this.bufferedRequest = null, this.lastBufferedRequest = null, this.pendingcb = 0, this.prefinished = !1, this.errorEmitted = !1, this.emitClose = be.emitClose !== !1, this.autoDestroy = !!be.autoDestroy, this.bufferedRequestCount = 0, this.corkedRequestsFree = new ne(this);
|
|
@@ -17341,22 +17341,22 @@ Actual: ` + f.attribValue);
|
|
|
17341
17341
|
if (!Ze && !t.call(te, this)) return new te(be);
|
|
17342
17342
|
this._writableState = new j(be, this, Ze), this.writable = !0, be && (typeof be.write == "function" && (this._write = be.write), typeof be.writev == "function" && (this._writev = be.writev), typeof be.destroy == "function" && (this._destroy = be.destroy), typeof be.final == "function" && (this._final = be.final)), p.call(this);
|
|
17343
17343
|
}
|
|
17344
|
-
function le(be, Ze, Qe, ot, Ae,
|
|
17345
|
-
Ze.writelen = ot, Ze.writecb = Tt, Ze.writing = !0, Ze.sync = !0, Ze.destroyed ? Ze.onwrite(new B("write")) : Qe ? be._writev(Ae, Ze.onwrite) : be._write(Ae,
|
|
17344
|
+
function le(be, Ze, Qe, ot, Ae, we, Tt) {
|
|
17345
|
+
Ze.writelen = ot, Ze.writecb = Tt, Ze.writing = !0, Ze.sync = !0, Ze.destroyed ? Ze.onwrite(new B("write")) : Qe ? be._writev(Ae, Ze.onwrite) : be._write(Ae, we, Ze.onwrite), Ze.sync = !1;
|
|
17346
17346
|
}
|
|
17347
17347
|
function Se(be, Ze, Qe, ot) {
|
|
17348
|
-
Qe || function(Ae,
|
|
17349
|
-
|
|
17348
|
+
Qe || function(Ae, we) {
|
|
17349
|
+
we.length === 0 && we.needDrain && (we.needDrain = !1, Ae.emit("drain"));
|
|
17350
17350
|
}(be, Ze), Ze.pendingcb--, ot(), We(be, Ze);
|
|
17351
17351
|
}
|
|
17352
17352
|
function X(be, Ze) {
|
|
17353
17353
|
Ze.bufferProcessing = !0;
|
|
17354
17354
|
var Qe = Ze.bufferedRequest;
|
|
17355
17355
|
if (be._writev && Qe && Qe.next) {
|
|
17356
|
-
var ot = Ze.bufferedRequestCount, Ae = new Array(ot),
|
|
17357
|
-
|
|
17356
|
+
var ot = Ze.bufferedRequestCount, Ae = new Array(ot), we = Ze.corkedRequestsFree;
|
|
17357
|
+
we.entry = Qe;
|
|
17358
17358
|
for (var Tt = 0, _t = !0; Qe; ) Ae[Tt] = Qe, Qe.isBuf || (_t = !1), Qe = Qe.next, Tt += 1;
|
|
17359
|
-
Ae.allBuffers = _t, le(be, Ze, !0, Ze.length, Ae, "",
|
|
17359
|
+
Ae.allBuffers = _t, le(be, Ze, !0, Ze.length, Ae, "", we.finish), Ze.pendingcb++, Ze.lastBufferedRequest = null, we.next ? (Ze.corkedRequestsFree = we.next, we.next = null) : Ze.corkedRequestsFree = new ne(Ze), Ze.bufferedRequestCount = 0;
|
|
17360
17360
|
} else {
|
|
17361
17361
|
for (; Qe; ) {
|
|
17362
17362
|
var qe = Qe.chunk, at = Qe.encoding, me = Qe.callback;
|
|
@@ -17376,8 +17376,8 @@ Actual: ` + f.attribValue);
|
|
|
17376
17376
|
}
|
|
17377
17377
|
function We(be, Ze) {
|
|
17378
17378
|
var Qe = De(Ze);
|
|
17379
|
-
if (Qe && (function(Ae,
|
|
17380
|
-
|
|
17379
|
+
if (Qe && (function(Ae, we) {
|
|
17380
|
+
we.prefinished || we.finalCalled || (typeof Ae._final != "function" || we.destroyed ? (we.prefinished = !0, Ae.emit("prefinish")) : (we.pendingcb++, we.finalCalled = !0, process.nextTick(Ue, Ae, we)));
|
|
17381
17381
|
}(be, Ze), Ze.pendingcb === 0 && (Ze.finished = !0, be.emit("finish"), Ze.autoDestroy))) {
|
|
17382
17382
|
var ot = be._readableState;
|
|
17383
17383
|
(!ot || ot.autoDestroy && ot.endEmitted) && be.destroy();
|
|
@@ -17401,7 +17401,7 @@ Actual: ` + f.attribValue);
|
|
|
17401
17401
|
}, te.prototype.pipe = function() {
|
|
17402
17402
|
K(this, new x());
|
|
17403
17403
|
}, te.prototype.write = function(be, Ze, Qe) {
|
|
17404
|
-
var ot, Ae = this._writableState,
|
|
17404
|
+
var ot, Ae = this._writableState, we = !1, Tt = !Ae.objectMode && (ot = be, m.isBuffer(ot) || ot instanceof o);
|
|
17405
17405
|
return Tt && !m.isBuffer(be) && (be = function(_t) {
|
|
17406
17406
|
return m.from(_t);
|
|
17407
17407
|
}(be)), typeof Ze == "function" && (Qe = Ze, Ze = null), Tt ? Ze = "buffer" : Ze || (Ze = Ae.defaultEncoding), typeof Qe != "function" && (Qe = ae), Ae.ending ? function(_t, qe) {
|
|
@@ -17410,10 +17410,10 @@ Actual: ` + f.attribValue);
|
|
|
17410
17410
|
}(this, Qe) : (Tt || function(_t, qe, at, me) {
|
|
17411
17411
|
var ye;
|
|
17412
17412
|
return at === null ? ye = new P() : typeof at == "string" || qe.objectMode || (ye = new c("chunk", ["string", "Buffer"], at)), !ye || (K(_t, ye), process.nextTick(me, ye), !1);
|
|
17413
|
-
}(this, Ae, be, Qe)) && (Ae.pendingcb++,
|
|
17413
|
+
}(this, Ae, be, Qe)) && (Ae.pendingcb++, we = function(_t, qe, at, me, ye, je) {
|
|
17414
17414
|
if (!at) {
|
|
17415
|
-
var f = function(Q, Y,
|
|
17416
|
-
return Q.objectMode || Q.decodeStrings === !1 || typeof Y != "string" || (Y = m.from(Y,
|
|
17415
|
+
var f = function(Q, Y, Ce) {
|
|
17416
|
+
return Q.objectMode || Q.decodeStrings === !1 || typeof Y != "string" || (Y = m.from(Y, Ce)), Y;
|
|
17417
17417
|
}(qe, me, ye);
|
|
17418
17418
|
me !== f && (at = !0, ye = "buffer", me = f);
|
|
17419
17419
|
}
|
|
@@ -17425,7 +17425,7 @@ Actual: ` + f.attribValue);
|
|
|
17425
17425
|
qe.lastBufferedRequest = { chunk: me, encoding: ye, isBuf: at, callback: je, next: null }, b ? b.next = qe.lastBufferedRequest : qe.bufferedRequest = qe.lastBufferedRequest, qe.bufferedRequestCount += 1;
|
|
17426
17426
|
} else le(_t, qe, !1, u, me, ye, je);
|
|
17427
17427
|
return T;
|
|
17428
|
-
}(this, Ae, Tt, be, Ze, Qe)),
|
|
17428
|
+
}(this, Ae, Tt, be, Ze, Qe)), we;
|
|
17429
17429
|
}, te.prototype.cork = function() {
|
|
17430
17430
|
this._writableState.corked++;
|
|
17431
17431
|
}, te.prototype.uncork = function() {
|
|
@@ -17442,8 +17442,8 @@ Actual: ` + f.attribValue);
|
|
|
17442
17442
|
Qe(new d("_write()"));
|
|
17443
17443
|
}, te.prototype._writev = null, te.prototype.end = function(be, Ze, Qe) {
|
|
17444
17444
|
var ot = this._writableState;
|
|
17445
|
-
return typeof be == "function" ? (Qe = be, be = null, Ze = null) : typeof Ze == "function" && (Qe = Ze, Ze = null), be != null && this.write(be, Ze), ot.corked && (ot.corked = 1, this.uncork()), ot.ending || function(Ae,
|
|
17446
|
-
|
|
17445
|
+
return typeof be == "function" ? (Qe = be, be = null, Ze = null) : typeof Ze == "function" && (Qe = Ze, Ze = null), be != null && this.write(be, Ze), ot.corked && (ot.corked = 1, this.uncork()), ot.ending || function(Ae, we, Tt) {
|
|
17446
|
+
we.ending = !0, We(Ae, we), Tt && (we.finished ? process.nextTick(Tt) : Ae.once("finish", Tt)), we.ended = !0, Ae.writable = !1;
|
|
17447
17447
|
}(this, ot, Qe), this;
|
|
17448
17448
|
}, Object.defineProperty(te.prototype, "writableLength", { enumerable: !1, get: function() {
|
|
17449
17449
|
return this._writableState.length;
|
|
@@ -17872,7 +17872,7 @@ Actual: ` + f.attribValue);
|
|
|
17872
17872
|
}, 1067: function(Me, _e, C) {
|
|
17873
17873
|
var ne;
|
|
17874
17874
|
(function(v, t) {
|
|
17875
|
-
var e = "function", p = "undefined", m = "object", o = "string", E = "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", Se = "BlackBerry", X = "Browser", De = "Chrome", Ue = "Firefox", We = "Google", be = "Huawei", Ze = "LG", Qe = "Microsoft", ot = "Motorola", Ae = "Opera",
|
|
17875
|
+
var e = "function", p = "undefined", m = "object", o = "string", E = "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", Se = "BlackBerry", X = "Browser", De = "Chrome", Ue = "Firefox", We = "Google", be = "Huawei", Ze = "LG", Qe = "Microsoft", ot = "Motorola", Ae = "Opera", we = "Samsung", Tt = "Sharp", _t = "Sony", qe = "Xiaomi", at = "Zebra", me = "Facebook", ye = "Chromium OS", je = "Mac OS", f = function(He) {
|
|
17876
17876
|
for (var it = {}, bt = 0; bt < He.length; bt++) it[He[bt].toUpperCase()] = He[bt];
|
|
17877
17877
|
return it;
|
|
17878
17878
|
}, u = function(He, it) {
|
|
@@ -17892,7 +17892,7 @@ Actual: ` + f.attribValue);
|
|
|
17892
17892
|
for (var ft = 0; ft < it[bt].length; ft++) if (u(it[bt][ft], He)) return bt === "?" ? t : bt;
|
|
17893
17893
|
} else if (u(it[bt], He)) return bt === "?" ? t : bt;
|
|
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, Ae + " Mini"]], [/\bopr\/([\w\.]+)/i], [S, [n, Ae]], [/\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, Ue + " Focus"]], [/\bopt\/([\w\.]+)/i], [S, [n, Ae + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [S, [n, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [S, [n, "Dolphin"]], [/coast\/([\w\.]+)/i], [S, [n, Ae + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [S, [n, "MIUI " + X]], [/fxios\/([-\w\.]+)/i], [S, [n, Ue]], [/\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, Ce + " 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, Ue + " 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, Ce], [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, Ce], [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, Tt], [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, We], [c, J]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [h, [d, We], [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, _t], [c, P]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[h, "Xperia Tablet"], [d, _t], [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, Se], [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, Qe], [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, Qe], [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, Ce], [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, We], [c, M]], [/droid.+aft(\w+)( bui|\))/i], [h, [d, j], [c, M]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [h, [d, Tt], [c, M]], [/(bravia[\w ]+)( bui|\))/i], [h, [d, _t], [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, _t], [c, B]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [h, [d, Qe], [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, We], [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, je], [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, Se]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [S, [n, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [S, [n, Ue + " 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]] }, ke = function(He, it) {
|
|
17895
|
+
}, Ce = { 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, Ae + " Mini"]], [/\bopr\/([\w\.]+)/i], [S, [n, Ae]], [/\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, Ue + " Focus"]], [/\bopt\/([\w\.]+)/i], [S, [n, Ae + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [S, [n, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [S, [n, "Dolphin"]], [/coast\/([\w\.]+)/i], [S, [n, Ae + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [S, [n, "MIUI " + X]], [/fxios\/([-\w\.]+)/i], [S, [n, Ue]], [/\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, we + " 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, Ue + " 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, we], [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, we], [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, Tt], [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, We], [c, J]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [h, [d, We], [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, _t], [c, P]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[h, "Xperia Tablet"], [d, _t], [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, Se], [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, Qe], [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, Qe], [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, we], [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, We], [c, M]], [/droid.+aft(\w+)( bui|\))/i], [h, [d, j], [c, M]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [h, [d, Tt], [c, M]], [/(bravia[\w ]+)( bui|\))/i], [h, [d, _t], [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, _t], [c, B]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [h, [d, Qe], [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, We], [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, Ce]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[S, Y, Ce], [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, je], [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, Se]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [S, [n, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [S, [n, Ue + " 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]] }, ke = function(He, it) {
|
|
17896
17896
|
if (typeof He === m && (it = He, He = t), !(this instanceof ke)) return new ke(He, it).getResult();
|
|
17897
17897
|
var bt = typeof v !== p && v.navigator ? v.navigator : t, ft = He || (bt && bt.userAgent ? bt.userAgent : ""), Yt = bt && bt.userAgentData ? bt.userAgentData : t, Ot = it ? function(Bt, cn) {
|
|
17898
17898
|
var vn = {};
|
|
@@ -20617,13 +20617,13 @@ function jh({
|
|
|
20617
20617
|
Ue.changeLanguage(_e);
|
|
20618
20618
|
}, [Ue, _e]);
|
|
20619
20619
|
const [We, be] = mr("none"), Ze = jn(
|
|
20620
|
-
(
|
|
20621
|
-
Sc(
|
|
20620
|
+
(we) => {
|
|
20621
|
+
Sc(we) ? be("audio") : (Os(we) || Ms(we) || Ac(we)) && be("video"), (Os(we) || za(we)) && Je && (we.video.poster = Je);
|
|
20622
20622
|
},
|
|
20623
20623
|
[Je]
|
|
20624
20624
|
), Qe = jn(
|
|
20625
|
-
(
|
|
20626
|
-
za(
|
|
20625
|
+
(we) => {
|
|
20626
|
+
za(we) ? we.library = Nc.MediaPlayer : Ms(we) && (typeof te == "string" && te.length > 0 ? (we.encryptedPayload = te, we.education = !0, we.autoLoadCaptions = Be.some((Tt) => Tt.sourceType === "youtube"), Se.youtubeEducationProvider.set(we)) : we.cookies = !0);
|
|
20627
20627
|
},
|
|
20628
20628
|
[]
|
|
20629
20629
|
), ot = $a(Se.interactionsDisabled), Ae = $a(Se.globalKeysDisabled);
|
|
@@ -20658,7 +20658,7 @@ function jh({
|
|
|
20658
20658
|
children: /* @__PURE__ */ Te(Lc, { contextValue: Se, children: /* @__PURE__ */ Te(xh, { children: /* @__PURE__ */ un(
|
|
20659
20659
|
Ic,
|
|
20660
20660
|
{
|
|
20661
|
-
"data-version": "1.3.
|
|
20661
|
+
"data-version": "1.3.3",
|
|
20662
20662
|
crossOrigin: P,
|
|
20663
20663
|
storage: x ? null : De,
|
|
20664
20664
|
title: W,
|
|
@@ -20666,39 +20666,39 @@ function jh({
|
|
|
20666
20666
|
keyShortcuts: X,
|
|
20667
20667
|
playsInline: !0,
|
|
20668
20668
|
keyDisabled: ot || Ae,
|
|
20669
|
-
onTextTracksChange: (
|
|
20670
|
-
const Tt =
|
|
20669
|
+
onTextTracksChange: (we) => {
|
|
20670
|
+
const Tt = we == null ? void 0 : we.findIndex(
|
|
20671
20671
|
(_t) => _t.src === c
|
|
20672
20672
|
);
|
|
20673
|
-
Tt > -1 && (
|
|
20673
|
+
Tt > -1 && (we[Tt].mode = "showing");
|
|
20674
20674
|
},
|
|
20675
20675
|
onLoadedMetadata: () => {
|
|
20676
|
-
const
|
|
20677
|
-
if (
|
|
20676
|
+
const we = Se.youtubeEducationProvider.get();
|
|
20677
|
+
if (we)
|
|
20678
20678
|
if (x)
|
|
20679
|
-
sa(
|
|
20679
|
+
sa(we.iframe, null);
|
|
20680
20680
|
else {
|
|
20681
20681
|
const Tt = De.data.captions && De.data.lang || null;
|
|
20682
20682
|
sa(
|
|
20683
|
-
|
|
20683
|
+
we.iframe,
|
|
20684
20684
|
Tt
|
|
20685
20685
|
), iu(
|
|
20686
|
-
|
|
20686
|
+
we.iframe,
|
|
20687
20687
|
De.data.multiplier
|
|
20688
20688
|
);
|
|
20689
20689
|
}
|
|
20690
20690
|
},
|
|
20691
20691
|
onProviderChange: Qe,
|
|
20692
20692
|
onProviderSetup: Ze,
|
|
20693
|
-
onTextTrackChange: (
|
|
20693
|
+
onTextTrackChange: (we) => {
|
|
20694
20694
|
const Tt = Se.youtubeEducationProvider.get();
|
|
20695
|
-
Tt && ((
|
|
20695
|
+
Tt && ((we == null ? void 0 : we.sourceType) === "youtube" ? sa(
|
|
20696
20696
|
Tt.iframe,
|
|
20697
|
-
|
|
20697
|
+
we == null ? void 0 : we.language
|
|
20698
20698
|
) : sa(Tt.iframe, null));
|
|
20699
20699
|
},
|
|
20700
|
-
onCanPlay: ({ provider:
|
|
20701
|
-
za(
|
|
20700
|
+
onCanPlay: ({ provider: we }) => {
|
|
20701
|
+
za(we) && (we.ctx.qualities.items.length === 0 ? be("audio") : be("video"));
|
|
20702
20702
|
},
|
|
20703
20703
|
children: [
|
|
20704
20704
|
/* @__PURE__ */ un(Rc, { className: Fh.mediaProvider, children: [
|