@castlabs/prestoplay 6.12.0 → 6.13.0
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/CHANGELOG.md +22 -0
- package/cjs/cl.adobe.js +3 -3
- package/cjs/cl.airplay.js +3 -3
- package/cjs/cl.broadpeak.js +6 -6
- package/cjs/cl.cast.js +106 -106
- package/cjs/cl.conviva.js +33 -33
- package/cjs/cl.core.js +504 -505
- package/cjs/cl.crypto.js +9 -9
- package/cjs/cl.dash.js +72 -72
- package/cjs/cl.externs.js +53 -50
- package/cjs/cl.freewheel.js +22 -22
- package/cjs/cl.hls.js +66 -66
- package/cjs/cl.hlssmpte.js +6 -6
- package/cjs/cl.htmlcue.js +30 -30
- package/cjs/cl.ima.js +21 -21
- package/cjs/cl.mse.js +269 -267
- package/cjs/cl.muxdata.js +14 -14
- package/cjs/cl.onboard.js +3 -3
- package/cjs/cl.persistent.js +13 -13
- package/cjs/cl.playlist.js +6 -6
- package/cjs/cl.simid.js +15 -15
- package/cjs/cl.smooth.js +71 -71
- package/cjs/cl.thumbnails.js +26 -24
- package/cjs/cl.tizen.js +68 -68
- package/cjs/cl.ttml.js +28 -28
- package/cjs/cl.verimatrix.js +5 -5
- package/cjs/cl.vimond.js +13 -13
- package/cjs/cl.vr.js +19 -19
- package/cjs/cl.vtt.js +14 -14
- package/cjs/cl.youbora.js +16 -16
- package/cjs/polyfill.min.js +26 -23
- package/cl.adobe.js +3 -3
- package/cl.airplay.js +3 -3
- package/cl.broadpeak.js +5 -5
- package/cl.cast.js +83 -83
- package/cl.conviva.js +27 -27
- package/cl.core.js +416 -416
- package/cl.crypto.js +9 -9
- package/cl.dash.js +67 -67
- package/cl.externs.js +53 -50
- package/cl.freewheel.js +15 -15
- package/cl.hls.js +69 -69
- package/cl.hlssmpte.js +5 -5
- package/cl.htmlcue.js +26 -26
- package/cl.ima.js +15 -15
- package/cl.mse.js +232 -231
- package/cl.muxdata.js +12 -12
- package/cl.onboard.js +4 -4
- package/cl.persistent.js +10 -10
- package/cl.playlist.js +5 -5
- package/cl.simid.js +13 -13
- package/cl.smooth.js +59 -59
- package/cl.thumbnails.js +19 -17
- package/cl.tizen.js +57 -57
- package/cl.ttml.js +22 -22
- package/cl.verimatrix.js +4 -4
- package/cl.vimond.js +8 -8
- package/cl.vr.js +14 -14
- package/cl.vtt.js +12 -12
- package/cl.youbora.js +13 -13
- package/package.json +1 -1
- package/typings.d.ts +82 -13
package/cjs/cl.core.js
CHANGED
|
@@ -1,462 +1,462 @@
|
|
|
1
1
|
(function(){var g={}; var _ = {};
|
|
2
|
-
(function(window){var ba,da,ea,fa,ha,ra,ua,ya,za,Ca,Da,Ea,Ha,Ka,Pa,Ta,Ua,Xa,Za,$a,eb,fb,gb,hb,ib,jb,kb,lb,mb,ob,pb,qb,rb,sb,ub,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Hb,Lb,Nb,Sb,Wb,Xb,Yb,Zb,$b,cc,ec,hc,jc,nc,oc,qc,rc,sc,tc,uc,Uc,Zc,kd,ld,td,ud,vd,xd,yd,zd,Ad,Bd,Dd,Ed,Fd,Gd,Hd,Id,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
ea=" to a log level. Falling back to default!";fa="': 'output-restricted'";ha=".start";_.ia="6.
|
|
2
|
+
(function(window){var ba,da,ea,fa,ha,ra,ua,ya,za,Ca,Da,Ea,Ha,Ka,Pa,Ta,Ua,Xa,Za,$a,eb,fb,gb,hb,ib,jb,kb,lb,mb,ob,pb,qb,rb,sb,ub,yb,zb,Ab,Bb,Cb,Db,Eb,Fb,Hb,Lb,Nb,Sb,Wb,Xb,Yb,Zb,$b,cc,ec,hc,jc,nc,oc,qc,rc,sc,tc,uc,Uc,Zc,kd,ld,td,ud,vd,xd,yd,zd,Ad,Bd,Dd,Ed,Fd,Gd,Hd,Id,Nd,Qd,Td,Zd,$d,ae,be,ce,de,fe,ie,je,ke,oe,ve,we,ze,Ae,Ge,Ze,ff,hf,jf,kf,lf,mf,nf,uf,vf,wf,xf,yf,zf,Af,Bf,Ff,Hf,Rf,Uf,ag,ig,jg,yg,Cg,Dg,Eg,Fg,Gg,Ig,Jg,Kg,Mg,Ng,Rg,Vg,Xg,Wg,Yg,Zg,$g,dh,gh,eh,fh,hh,jh,kh,oh,qh,vh,wh,Bh,Dh,Ih,Gh,Jh,Lh,Kh,Nh,Qh,Uh,Wh,Vh,hi,ii,
|
|
3
|
+
ji,ki,li,oi,pi,ri,si,wi,yi,Ai,ui,Qi,Si,Wi,Yi,Zi,bj,Xi,Ti,pj,tj,uj,vj,yj,zj,Jj,Kj,Nj,Sj,Uj,Vj,bk,ck,fk,hk,gk,ek,ik,dk,lk,jk,kk,mk,nk,tk,vk,Gk,Ik,Jk,Kk,Uk,yk,Lk,Xk,Zk,al,bl,$k,el,fl,Yk,gl,hl,il,jl,kl,ol,pl,ql,rl,ll,vl,wl,yl,Al,Il,Jl,Kl,Ll,Ml,Nl,Ol,Pl,Ql,Rl,Sl,Tl,Zl,km,qm,tm,um,wm,xm,Fm,Jm,Km,Pm,Vm,Wm,Ym,Zm,dn,en,kn,ln,sn,Dn,Mn,On,Qn,Un,Vn,Zn,Kn,In,fo,Xn,go,io,ho,no,mo,ko,lo,un,Pn,jo,vn,eo,Hn,$n,ao,qo,co,Jn,xn,vo,xo,yo,zo,Ao,Fo,Jo,Ko,Mo,Qo,Vo,Io,Wo,Xo,$o,cp,dp,fp,gp,bp,ap,hp,ip,jp,op,tp,up,vp,zp,yp,
|
|
4
|
+
Bp,Ap,Dp,Ep,Fp,Gp,Cp,Ip,Kp,Lp,Mp,Np,Op,Pp,Qp,Rp,Tp,Up,Vp,Wp,Sp,Zp,X,aq,$p,cq,eq,fq,hq,lq,iq,nq,qq,sq,rq,uq,wq,xq,zq,Aq,Bq,yq,pq,Cq,oq,Fq,Gq,Hq,Iq,Lq,Jq,Mq,Oq,Qq,Pq,Sq,Kq,Tq,Eq,Uq,Dq,Zq,ar,$q,er,cr,dr,Wq,Xq,br,lr,hr,ir,jr,tr,ur,rr,Br,Cr,Dr,Er,Fr,np,Gr,Ir,Jr,Kr,Lr,Mr,Nr,Or,Pr,Qr,Rr,Sr,Tr,Ur,Vr,Wr,Xr,$r,Yr,as,cs,ds,Zr,bs,es,fs,gs,hs,is,js,ks,ls,ms,ns,ps,rs,ss,ts,qs,vs,ws,As,Fs,Gs,Is,Hs,Gj,Ls,Os,Ns,Ps,Qs,Ms,Ss,Ts,Rs,Us,Vs,Xs,Hj,bt,Cj,mt,pt,Pg,rt;ba=" coming up at ";_.ca=" is registered.";da=" is unsupported on this platform.";
|
|
5
|
+
ea=" to a log level. Falling back to default!";fa="': 'output-restricted'";ha=".start";_.ia="6.13.0";_.ja="AdaptationSet";_.ka="Already destroyed. No-op";_.la="Already released. No-op";_.ma="Autoplay is not allowed due to browser policy.";_.na="BANDWIDTH";ra="CHECKSUM";_.sa="CLOSED-CAPTIONS";_.ta="CODECS";ua="Can not set volume to ";_.va="Cannot retrieve buffer information due to platform limitations";_.wa="CastlabsPlayer";ya="Content-Length";za="Content-Type";_.Aa="Could not find configured DRM environment.";
|
|
6
6
|
_.Ba="DRM environment '";Ca="DRM licenses loaded";Da="DRMtoday";Ea="DRMtodayOnboard";_.Ga="DURATION";Ha="Destroying player";_.Ia="Disable track type ";Ka="EXT-X-BYTERANGE";_.La="EXT-X-DATERANGE";_.Na="EXT-X-DISCONTINUITY";_.Oa="EXT-X-DISCONTINUITY-SEQUENCE";Pa="EXT-X-ENDLIST";_.Qa="EXT-X-KEY";_.Ra="EXT-X-MAP";_.Sa="EXT-X-MEDIA-SEQUENCE";Ta="EXT-X-PART-INF";Ua="EXT-X-PLAYLIST-TYPE";_.Va="EXT-X-PRELOAD-HINT";_.Wa="EXT-X-PROGRAM-DATE-TIME";Xa="EXT-X-SERVER-CONTROL";_.Ya="EXT-X-STREAM-INF";Za="EXT-X-TARGETDURATION";
|
|
7
7
|
$a="Error while decoding string!";_.ab="Error while fetching license!";_.bb="FairPlay Certificate URL is not defined";_.cb="FairPlay License URL is not defined";_.db="GROUP-ID";eb="HW_SECURE_ALL";fb="HW_SECURE_CRYPTO";gb="HW_SECURE_DECODE";hb="HeaderDrm";ib="Hide video element .";jb="Interstitial ";kb="Interstitial cue ";lb="Interstitials ";mb="Invalid track type: ";ob="InvalidStateError";pb="Item failed (ID: ";qb="Item loading (ID: ";rb="Item not found (ID: ";sb="Key status for Key ID '";_.tb="LANGUAGE";
|
|
8
8
|
ub="License verification failed: ";_.vb="Loading player with configuration";_.wb="MaxHeight";_.xb="MaxWidth";yb="Missing media element";zb="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";Ab="No event provided!";Bb="No items in the playlist";Cb="No track data attached to the event, unable to add track!";Db="Not a persistent session.";Eb="NotAllowedError";Fb="NotSupportedError";_.Gb="PlayReady License URL is not defined";Hb="Player not ready yet.";
|
|
9
|
-
_.Ib="Player sources";_.
|
|
9
|
+
_.Ib="Player sources";_.Jb="Player state change: ";Lb="Playing interstitial asset ";_.Mb="Please make sure ";Nb="Preloading is not supported by this player.";_.Ob="QualityLevel";_.Pb="RESOLUTION";_.Qb="Releasing player with source";_.Rb="Representation";Sb="STANDARD";_.Tb="SUBTITLES";_.Ub="SW_SECURE_CRYPTO";_.Vb="SW_SECURE_DECODE";Wb="Session is closed";Xb="Setting native ";Yb="Show video element .";Zb="Signature Verification failed";$b="Skipping Session creation. License for init data was already requested in Session: '";
|
|
10
10
|
_.ac="SmoothStreamingMedia";_.bc="TYPE";cc="The index is not in the allowed range.";_.dc="URI";ec="Unable to translate ";_.fc="Unhandled/ignored event";_.gc="Unregistering listeners";hc="Unsupported keySystem";jc="Using VTTCue polyfill from 3 argument TextTrackCue.";_.lc="VIDEO";_.mc="VOD";nc="Wait for preloading to finish";oc="WebkitEmeManager.MediaKeySession.load";_.pc="Widevine License URL is not defined";qc="Will create EME Manager: ";rc="X-ASSET-LIST";sc="X-ASSET-URI";tc="X-PLAYOUT-LIMIT";
|
|
11
|
-
uc="X-RESUME-OFFSET";_.vc="ad-break-started";_.wc="ad-break-stopped";_.xc="ad-buffering";_.yc="ad-clicked";_.zc="ad-completed";_.Ac="ad-first-quartile";_.Bc="ad-impression";_.Cc="ad-loaded";_.Dc="ad-midpoint";_.Ec="ad-paused";_.Fc="ad-progress";_.Gc="ad-resumed";_.Hc="ad-skipped";_.Ic="ad-started";_.Jc="ad-stopped";_.Kc="ad-third-quartile";_.
|
|
11
|
+
uc="X-RESUME-OFFSET";_.vc="ad-break-started";_.wc="ad-break-stopped";_.xc="ad-buffering";_.yc="ad-clicked";_.zc="ad-completed";_.Ac="ad-first-quartile";_.Bc="ad-impression";_.Cc="ad-loaded";_.Dc="ad-midpoint";_.Ec="ad-paused";_.Fc="ad-progress";_.Gc="ad-resumed";_.Hc="ad-skipped";_.Ic="ad-started";_.Jc="ad-stopped";_.Kc="ad-third-quartile";_.Lc="addtrack";_.Nc="ads-timeline-changed";_.Oc="airplay-casting-ended";_.Pc="airplay-casting-started";_.Qc="airplay-status-changed";_.Rc="application";_.Sc="application/cea-608";
|
|
12
12
|
_.Tc="application/dash+xml";Uc="application/mp4";_.Vc='application/mp4; codecs\x3d"stpp"';_.Wc='application/mp4; codecs\x3d"wvtt"';_.Xc="application/ttml+xml";_.Yc="application/vnd.ms-sstr+xml";Zc="application/x-www-form-urlencoded";_.$c="audio";_.ad="audio/aac";_.bd="audio/ac3";_.cd="audio/eac3";_.dd="audio/mp4";_.ed="audiobufferchanged";_.fd="autoplaynotallowed";_.gd="bitratechanged";_.hd="boolean";_.id="bufferingended";_.jd="bufferingstarted";kd="canplay";ld="canplaythrough";_.md="caption";
|
|
13
|
-
_.nd="castingstarted";_.od="caststatuschanged";_.
|
|
14
|
-
_.Ld="com.adobe.primetime";_.Md="com.apple.fps";
|
|
15
|
-
_.ge="
|
|
16
|
-
_.Ne="
|
|
17
|
-
kf="player.beforeLoad.
|
|
18
|
-
_.Of="simid-creative-
|
|
19
|
-
_.tg="video/
|
|
20
|
-
|
|
21
|
-
_.w=function(a,b){a.prototype=
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
_.H=function(a,b){var c=a.split("."),d=
|
|
29
|
-
_.
|
|
30
|
-
_.L=function(a,b){if(b)for(var c in b)this[c]=b[c];this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.f=this.a=!1};
|
|
31
|
-
_.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
f.next())if(g=g.value,!
|
|
35
|
-
else{if(l=a.a)l=a.a,m=a.m.getPosition(),l=l.endTime<=m;l&&(l=a.a,a.a=null,a.m.trigger(new _.L(_.
|
|
36
|
-
|
|
37
|
-
_.
|
|
38
|
-
_.
|
|
39
|
-
_.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
_.
|
|
47
|
-
_.
|
|
48
|
-
_.
|
|
49
|
-
_.
|
|
50
|
-
_.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
_.
|
|
54
|
-
_.
|
|
55
|
-
_.
|
|
56
|
-
_.
|
|
57
|
-
|
|
58
|
-
_.
|
|
59
|
-
[],responseModifiers:a.responseModifiers||[],startTime:a.startTime||null,endTime:a.endTime||null,contentType:a.contentType||null,licenseRequestType:a.licenseRequestType||null,sessionId:null,bytesRemaining:-1,bytesLoaded:-1,bytesTotal:-1,timescale:a.timescale||null,rateLimitBps:a.rateLimitBps||null,disableFragmentSupport:a.disableFragmentSupport||!1,disableMergedFragments:a.disableMergedFragments||!1,fatalStatusCodes:_.
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
_.
|
|
63
|
-
_.
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
_.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
_.
|
|
70
|
-
"/")||(this.path="/"+this.path);this.f=b.search;this.h=b.hash};_.
|
|
71
|
-
_.
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
_.
|
|
80
|
-
_.
|
|
81
|
-
_.
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
_.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
f}}}else if(a.g.debug(_.Ia+b),a.a.get(b)&&d&&b===_.S){g=_.u(d);for(h=g.next();!h.done;h=g.next())h.value.mode=_.
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
_.
|
|
97
|
-
restrictions:
|
|
13
|
+
_.nd="castingstarted";_.od="caststatuschanged";_.pd="cdn-switch-success";_.rd="cenc";_.sd="center";td="certificate-request";ud="change";vd="chrome";_.wd="clpp-fill";xd="clpp-hidden";yd="clpp-mc-playlist";zd="clpp-mc-playlist-item";Ad="clpp-mc-playlist-video-el";Bd="clpp-visible";_.Cd="clpp.cast.CastSender";Dd="clpp.drm.HeaderDrm";Ed="clpp.drm.eme.AppleEmeManager";Fd="clpp.interstitial.Player";Gd="clpp.native.Player";Hd="clpp.plist.McPlaylist";Id="clpp.utils.Platform";_.Jd="codecs";_.Kd="column-reverse";
|
|
14
|
+
_.Ld="com.adobe.primetime";_.Md="com.apple.fps";Nd="com.apple.hls.interstitial";_.Pd="com.microsoft.playready";Qd="com.microsoft.playready.recommendation";_.Rd="com.widevine.alpha";_.Sd="config.drm.customData is not defined";Td="controls";_.Ud="cuechange";_.Vd="decoder";_.Wd="destroy()";_.Xd="disabled";_.Yd="div";Zd="drm.license.req.";$d="drm.mediaKeys.end";ae="drm.mediaKeys.start";be="drm.onPlay.end";ce="drm.onPlay.start";de="drm.sess.update.";_.ee="drmexpirationupdate";fe="drmrenewalstarted";
|
|
15
|
+
_.ge="drmsessionpersisted";_.he="drmsessionupdate";ie="drmtoday";je="durationchange";ke="encrypted";_.le="end";_.me="ended";_.ne="error";oe="fullscreenElement";_.pe="function";_.qe="height";_.re="hidden";_.se="html";_.te="image";_.ue="internal-error";ve="itemchange";we="keystatuseschange";_.xe="left";ze="license-renewal";Ae="license-request";_.Be="line-left";_.De="line-right";_.Ee="loadeddata";_.Fe="loadedmetadata";Ge="loadstart";_.He="main";_.Ie="mdat";_.Je="mdia";_.Ke="message";_.Le="metadata";
|
|
16
|
+
_.Me="mimeType";_.Ne="minf";_.Oe="moov";_.Pe="mp4";_.Qe="mpd-type-changed";_.Re="mpeg-dash-callback-event";_.Se="none";_.k="number";_.Te="object";_.Ue="onBitrateChanged()";_.Ve="onPlayerError()";_.We="onPlayerWillDestroy";_.Xe="onPlayerWillRelease";_.Ye="onStateChanged()";Ze="online-status-changed";_.$e="optional";_.af="org.w3.clearkey";_.bf="output-restricted";_.cf="pause";_.df="persistent";_.ef="persistent-license";ff="picture-in-picture";_.gf="play";hf="player.afterLoad.end";jf="player.afterLoad.start";
|
|
17
|
+
kf="player.beforeLoad.end";lf="player.beforeLoad.start";mf="player.load.end";nf="player.load.start";_.of="playing";_.pf="playlist-item-changed";_.qf="playlist-modified";uf="playlist.next.end";vf="playlist.next.start";wf="preload-aborted";xf="preload-failed";yf="preloaded";zf="preloading";Af="primary-before-load";Bf="primary-content";_.Cf="progress";_.Df="px";_.Ef="ratechange";Ff="released";_.Gf="releasing";Hf="removetrack";_.If="required";_.Jf="resize";_.Kf="right";_.Lf="seeked";_.Mf="seeking";
|
|
18
|
+
_.Nf="showing";_.Of="simid-creative-started";_.Pf="simid-creative-stopped";_.Qf="sinf";Rf="stalled";_.Sf="start";_.Tf="statechanged";Uf="status-pending";_.Vf="stbl";_.Wf="string";_.Xf="stsd";_.Yf="style";_.Zf="subtitle";_.$f="subtitles-htmlcue";ag="temporary";_.bg="text";_.cg="text/vtt";_.dg="text/xml";_.eg="timeupdate";_.fg="trak";_.gg="ttml-xml";_.hg="und";ig="unknown";jg="update";_.kg="urn:scte:scte35";_.lg="urn:scte:scte35:2014";_.mg="user-seeked";_.ng="user-seeking";_.pg="value";_.qg="vertical-lr";
|
|
19
|
+
_.rg="vertical-rl";_.sg="video";_.tg="video/mp2t";_.ug="video/mp4";_.vg="videobufferchanged";_.wg="videotrackchanged";_.xg="vimond-response";yg="visibilitychange";_.zg="vtt-xml";_.Ag="waiting";_.Bg="waitingforkey";Cg="webkit-org.w3.clearkey";Dg="webkitkeyadded";Eg="webkitkeyerror";Fg="webkitkeymessage";Gg="webkitneedkey";_.Hg="width";Ig="x-dt-csl-tracking-token";Jg="x-dt-follow-up-token";Kg="x-dt-resp-code";Mg=function(a){return function(){return _.Lg[a].apply(this,arguments)}};
|
|
20
|
+
Ng=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};_.u=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:Ng(a)}};_.Og=function(a){if(!(a instanceof Array)){a=_.u(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a};
|
|
21
|
+
_.w=function(a,b){a.prototype=Pg(b.prototype);a.prototype.constructor=a;if(Qg)Qg(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c]};Rg=function(){Rg=function(){};Sg.Symbol||(Sg.Symbol=Tg)};Vg=function(a,b){this.a=a;Ug(this,"description",{configurable:!0,writable:!0,value:b})};
|
|
22
|
+
Xg=function(){Rg();var a=Sg.Symbol.iterator;a||(a=Sg.Symbol.iterator=Sg.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.pe&&Ug(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return Wg(Ng(this))}});Xg=function(){}};Wg=function(a){Xg();a={next:a};a[Sg.Symbol.iterator]=function(){return this};return a};Yg=function(){this.w=!1;this.j=null;this.f=void 0;this.a=1;this.l=this.o=0;this.B=this.h=null};Zg=function(a){if(a.w)throw new TypeError("Generator is already running");a.w=!0};
|
|
23
|
+
$g=function(a,b){a.h={Bg:b,$g:!0};a.a=a.o||a.l};_.x=function(a,b,c){a.a=c;return{value:b}};_.y=function(a){a.a=0};_.A=function(a,b,c){a.o=b;void 0!=c&&(a.l=c)};_.ah=function(a,b,c){a.a=b;a.o=c||0};_.C=function(a,b){a.o=b||0;var c=a.h.Bg;a.h=null;return c};_.bh=function(a){a.B=[a.h];a.o=0;a.l=0};_.ch=function(a,b){var c=a.B.splice(0)[0];(c=a.h=a.h||c)?c.$g?a.a=a.o||a.l:void 0!=c.F&&a.l<c.F?(a.a=c.F,a.h=null):a.a=a.l:a.a=b};dh=function(a){this.a=new Yg;this.f=a};
|
|
24
|
+
gh=function(a,b){Zg(a.a);var c=a.a.j;if(c)return eh(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return fh(a)};eh=function(a,b,c,d){try{var e=b.call(a.a.j,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.a.w=!1,e;var f=e.value}catch(g){return a.a.j=null,$g(a.a,g),fh(a)}a.a.j=null;d.call(a.a,f);return fh(a)};
|
|
25
|
+
fh=function(a){for(;a.a.a;)try{var b=a.f(a.a);if(b)return a.a.w=!1,{value:b.value,done:!1}}catch(c){a.a.f=void 0,$g(a.a,c)}a.a.w=!1;if(a.a.h){b=a.a.h;a.a.h=null;if(b.$g)throw b.Bg;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
|
|
26
|
+
hh=function(a){this.next=function(b){Zg(a.a);a.a.j?b=eh(a,a.a.j.next,b,a.a.A):(a.a.A(b),b=fh(a));return b};this["throw"]=function(b){Zg(a.a);a.a.j?b=eh(a,a.a.j["throw"],b,a.a.A):($g(a.a,b),b=fh(a));return b};this["return"]=function(b){return gh(a,b)};Xg();this[Symbol.iterator]=function(){return this}};_.ih=function(a,b){var c=new hh(new dh(b));Qg&&Qg(c,a.prototype);return c};
|
|
27
|
+
jh=function(a,b){if(b){for(var c=Sg,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];f in c||(c[f]={});c=c[f]}d=d[d.length-1];e=c[d];f=b(e);f!=e&&null!=f&&Ug(c,d,{configurable:!0,writable:!0,value:f})}};kh=function(a){function b(d){return a.next(d)}function c(d){return a["throw"](d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})};_.E=function(a){return kh(new hh(new dh(a)))};
|
|
28
|
+
_.H=function(a,b){var c=a.split("."),d=lh;c[0]in d||"undefined"==typeof d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d[e]&&d[e]!==Object.prototype[e]?d=d[e]:d=d[e]={}:d[e]=b};oh=function(a){return a&&0<=mh[a]?mh[a]:nh};qh=function(a){if(!a)return _.J("clpp.log",ec+a+ea),-1;var b=ph[a.toUpperCase()];return void 0===b?(_.J("clpp.log",ec+a+ea),-1):b};_.K=function(a){(this.tag=a)&&void 0===mh[a]&&(mh[a]=-1)};_.sh=function(a){rh.info.apply(rh,arguments)};
|
|
29
|
+
_.th=function(a){rh.debug.apply(rh,arguments)};_.J=function(a){rh.warn.apply(rh,arguments)};_.uh=function(a){rh.error.apply(rh,arguments)};vh=function(a,b){this.Pb=a;this.a=b};wh=function(a,b){this.player=a;this.a=b};_.zh=function(a){if(a){var b=a.a();b in _.xh?_.yh.warn("Player-Factory '"+b+"' already registered"):(_.xh[b]=a,_.yh.info("Registered Player-Factory: '"+b+"'"))}};_.Ah=function(){this.a={}};Bh=function(a,b,c,d){this.f=a;this.Mc=b;this.a=c;this.$l=!!d};
|
|
30
|
+
_.L=function(a,b){if(b)for(var c in b)this[c]=b[c];this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.f=this.a=!1};Dh=function(a){this.a=new _.Ah;this.f=a};_.Eh=function(){this.a=new _.Ah};
|
|
31
|
+
_.Fh=function(a,b,c,d){function e(h){for(var l=_.u(c),m=l.next();!m.done;m=l.next())a.off(b,m.value,e);d(h)}for(var f=_.u(c),g=f.next();!g.done;g=f.next())a.on(b,g.value,e)};_.Hh=function(a){var b=a.a,c=[],d;for(d in b.a)c.push.apply(c,b.a[d]);for(b=0;b<c.length;++b)Gh(c[b]);a.a.clear()};Ih=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};Gh=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
|
|
32
|
+
Jh=function(a){this.m=a;this.o=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.j=null;this.f=new _.Eh;this.a=this.l=null;this.h=[];this.g=new _.K("clpp.native.Metadata")};Lh=function(a,b){a.j=b;a.l=a.j.textTracks;a.f.on(a.l,_.Lc,function(c){c=c.track;c.kind===_.Le&&Kh(a,c)})};
|
|
33
|
+
Kh=function(a,b){function c(l){for(var m=_.u(d),n=m.next();!n.done;n=m.next())if(n=n.value,l.startTime===n.startTime&&l.endTime===n.endTime)return n;m={schemeIdUri:"",value:"",startTime:0,endTime:0,id:"",type:_.Mh,eventElement:null};a.o&&e&&"SCTE35-IN"===l.value.key&&0<l.startTime?(m.startTime=0,m.endTime=l.startTime):(m.startTime=l.startTime,m.endTime=l.endTime);e=!1;d.push(m);return d[d.length-1]}a.g.debug("onMetadata_()");b.mode=_.re;var d=[],e=!0;if(b.cues){for(var f=_.u(b.cues),g=f.next();!g.done;g=
|
|
34
|
+
f.next())if(g=g.value,!Nh(a,g)){var h=c(g);switch(g.value.key){case "SCTE35-IN":case "SCTE35-OUT":h.schemeIdUri=_.lg;h.type=_.Oh;break;case "X-CUSTOM-ID":h.id=g.value.data}}f=_.u(d);for(g=f.next();!g.done;g=f.next())a.m.trigger(new _.L(_.Ph,{detail:g.value}));Array.prototype.push.apply(a.h,d);Qh(a,d,b);a.f.off(b,_.Ud);a.f.on(b,_.Ud,function(l){l=l.target.activeCues;l=l.length?Nh(a,l[0]):a.a;var m;if(m=l)m=a.m.getPosition(),m=l.startTime<=m&&m<l.endTime;if(m)a.a=l,a.m.trigger(new _.L(_.Rh,{detail:l}));
|
|
35
|
+
else{if(l=a.a)l=a.a,m=a.m.getPosition(),l=l.endTime<=m;l&&(l=a.a,a.a=null,a.m.trigger(new _.L(_.Sh,{detail:l})))}})}};Nh=function(a,b){for(var c=_.u(a.h),d=c.next();!d.done;d=c.next())if(d=d.value,b.startTime===d.startTime&&b.endTime===d.endTime)return d;return null};Qh=function(a,b,c){if(a.o){for(;0<c.cues.length;)c.removeCue(c.cues[0]);b.forEach(function(d){c.addCue(new DataCue(d.startTime,d.endTime,{key:"SCTE35-OUT",data:null}))})}};_.Th=function(a){return Array.isArray(a)?a:[a]};
|
|
36
|
+
Uh=function(a,b){return a===b?!0:a.length===b.length&&a.every(function(c,d){return c===b[d]})};Wh=function(a,b,c){if(null==a&&null==b)return!0;if(null==a||null==b)return!1;a=c?a.map(c):a;b=c?b.map(c):b;return Vh(a,b)&&Vh(b,a)};Vh=function(a,b){var c=new Set(a);return b.every(function(d){return c.has(d)})};
|
|
37
|
+
_.Xh=function(a,b){b=void 0===b?{}:b;if(b.tg){for(var c=[],d={},e=_.u(a),f=e.next();!f.done;d={Td:d.Td},f=e.next())d.Td=f.value,c.some(function(g){return function(h){return b.tg(g.Td,h)}}(d))||c.push(d.Td);return c}return Array.from((new Set(a)).values())};
|
|
38
|
+
_.di=function(a,b,c,d){d=void 0===d?_.Yh:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.Zh;this.writingMode=_.$h;this.lineInterpretation=_.ai;this.line=null;this.lineAlign=_.bi;this.direction=ci;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
|
|
39
|
+
_.gi=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.ei;this.scroll=fi;this.cssClassList=[];this.writingMode=this.displayAlign=null};hi=function(a){this.m=a;this.l=a.getTextDisplayer();this.f=this.h=null;this.a=new _.Eh;this.j=!1;this.g=new _.K("clpp.native.CueHandler")};
|
|
40
|
+
ii=function(a,b){var c=b.track;c.kind!==_.Le&&(c.mode===_.Nf&&(c.mode=_.re),a.a.on(c,_.Ud,function(d){d=d.target||d.srcElement;d.mode=_.re;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.l.append(d,[]))}))};_.P=function(a,b,c,d,e){var f=Error.call(this,ji(a,b,c,d));this.message=f.message;"stack"in f&&(this.stack=f.stack);this.severity=a;this.category=b;this.code=c;this.data=!d||_.N.$(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.P)};
|
|
41
|
+
ji=function(a,b,c,d){a=(a===_.Q?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.N.$(d))a+=": "+d;else if(null!=d&&void 0!=d)if(null!=d.message&&void 0!=d.message)a+=": "+d.message,delete d.message;else try{a+=": "+JSON.stringify(d)}catch(e){}return a};ki=function(a,b){var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=b};
|
|
42
|
+
li=function(a,b){var c=b||Uh,d=null,e=null,f=!1;return function(g){for(var h=[],l=0;l<arguments.length;++l)h[l]=arguments[l];if(f&&c(h,d))return e;f=!0;d=h;return e=a.apply(null,_.Og(h))}};_.mi=function(a,b){return a.concat(b)};_.ni=function(a){return null!=a};oi=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}throw new ki("No non-null, non-undefined value found");};
|
|
43
|
+
pi=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}};_.qi=function(a){var b;a instanceof _.qi?(ri(this,a.eb),this.zc=a.zc,this.Na=a.Na,si(this,a.cd),this.Ba=a.Ba,_.ti(this,ui(a.a)),this.lc=a.lc):a&&(b=String(a).match(vi))?(ri(this,b[1]||"",!0),this.zc=wi(b[2]||""),this.Na=wi(b[3]||"",!0),si(this,b[4]),this.Ba=wi(b[5]||"",!0),_.ti(this,b[6]||"",!0),this.lc=wi(b[7]||"")):this.a=new _.xi(null)};
|
|
44
|
+
ri=function(a,b,c){a.eb=c?wi(b,!0):b;a.eb&&(a.eb=a.eb.replace(/:$/,""))};si=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.cd=b}else a.cd=null};_.ti=function(a,b,c){b instanceof _.xi?a.a=b:(c||(b=yi(b,zi)),a.a=new _.xi(b))};wi=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""};yi=function(a,b,c){return typeof a===_.Wf?(a=encodeURI(a).replace(b,Ai),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
|
|
45
|
+
Ai=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};_.xi=function(a){this.f=a||null};ui=function(a){var b=new _.xi;b.f=a.f;if(a.a){var c={},d;for(d in a.a)c[d]=a.a[d].concat();b.a=c;b.h=a.h}return b};_.Bi=function(a,b){if(0==b.length)return a;var c=b.map(function(d){return new _.qi(d)});return a.map(function(d){return new _.qi(d)}).map(function(d){return c.map(d.resolve.bind(d))}).reduce(_.mi,[]).map(function(d){return d.toString()})};
|
|
46
|
+
_.Di=function(a,b){for(var c=Ci[a],d=0;d<c.length;d++)for(var e=0;e<b.length;e++)if(c[d].test(b[e].trim()))return b[e].trim();return a===_.bg?"":null};_.Gi=function(a,b,c){return a.map(function(d){d=_.Ei(d)||"";return(d=_.Fi[b][d])?d:b===_.bg?c&&"vtt"!==c?Uc:_.cg:null}).filter(Boolean)[0]||null};_.Ei=function(a){a=(new _.qi(a)).Ba.split(".");return 1>=a.length?null:a.pop()};_.Hi=function(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d};
|
|
47
|
+
_.Ii=function(a,b,c,d){d=void 0===d?{}:d;a=a.getAttribute(b);if(!a&&d.required)throw new _.P(_.Q,4,4023,"Required attribute missing: "+b);return a?a.value:c||null};_.Ji=function(a,b){return _.Ii(a,b,void 0,{required:!0})};_.Ki=function(a,b){this.name=a;this.value=b};
|
|
48
|
+
_.Li=function(a,b,c,d,e,f,g,h,l,m,n,p,q,t){l=void 0===l?!1:l;m=void 0===m?null:m;n=void 0===n?null:n;p=void 0===p?null:p;q=void 0===q?null:q;t=void 0===t?[]:t;this.position=a;this.startTime=b;this.endTime=c;this.ya=g;this.Ra=d;this.va=e;this.ha=f;this.keyInfo=(void 0===h?null:h)||null;this.Pc=_.N.R(l)?!1:!!l;this.timescale=m;this.horizontalTiles=n;this.verticalTiles=p;this.durationPerTile=q;this.a=t||[];this.h=!1};
|
|
49
|
+
_.Mi=function(a,b,c,d,e,f,g,h,l,m,n,p,q,t){t=void 0===t?[]:t;_.Li.call(this,a,b,c,d,e,f,g,void 0===h?null:h,void 0===l?!1:l,void 0===m?null:m,void 0===n?null:n,void 0===p?null:p,void 0===q?null:q,t);this.initSegment=void 0;this.ca=0};_.Oi=function(a,b){a=_.Ni(a);b=_.Ni(b);return a.split("-")[0]==b.split("-")[0]};_.Ni=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Pi.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};Qi=function(a){if(null!==a&&void 0!==a)return Number(a)};
|
|
50
|
+
_.Ri=function(a,b){for(var c=_.u(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};Si=function(){};Wi=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(Ti(a)==Ti(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;for(var c=_.Ui(a),d=_.Ui(b),e=_.u(Vi(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!=d[f])return!1;return!0};_.Ui=function(a,b,c){c=void 0===c?Infinity:c;return Xi(a,void 0===b?0:b,c,Uint8Array)};
|
|
51
|
+
Yi=function(a,b,c){c=void 0===c?Infinity:c;return Xi(a,void 0===b?0:b,c,Uint16Array)};Zi=function(a,b,c){c=void 0===c?Infinity:c;return Xi(a,void 0===b?0:b,c,Uint32Array)};_.$i=function(a,b,c){c=void 0===c?Infinity:c;return Xi(a,void 0===b?0:b,c,Int32Array)};_.aj=function(a,b,c){c=void 0===c?Infinity:c;return Xi(a,void 0===b?0:b,c,DataView)};bj=function(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
|
|
52
|
+
Xi=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=Ti(a),g=(a.byteOffset||0)+a.byteLength;a=Math.max(0,Math.min((a.byteOffset||0)+b*e,g));c=Math.min(a+Math.max(c*e,0),g);a/=e;return new d(f,a,c/e-a)};Ti=function(a){return a instanceof ArrayBuffer?a:a.buffer};_.cj=function(){};_.ej=function(a,b){var c=void 0==b?!0:b,d=_.dj(a).replace(/\+/g,"-").replace(/\//g,"_");return c?d:d.replace(/[=]*$/,"")};
|
|
53
|
+
_.fj=function(a){a=window.atob(a.replace(/-/g,"+").replace(/_/g,"/"));for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b};_.gj=function(a){for(var b=new Uint8Array(a.length/2),c=0;c<a.length;c+=2)b[c/2]=window.parseInt(a.substr(c,2),16);return b};_.hj=function(a){for(var b="",c=0;c<a.length;++c){var d=a[c].toString(16);1==d.length&&(d="0"+d);b+=d}return b};
|
|
54
|
+
_.ij=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.length!=b.length)return!1;for(var c=0;c<a.length;++c)if(a[c]!=b[c])return!1;return!0};_.jj=function(a){for(var b=0,c=0;c<arguments.length;++c)b+=arguments[c].length;b=new Uint8Array(+b);for(var d=c=0;d<arguments.length;++d)b.set(arguments[d],c),c+=arguments[d].length;return b};_.dj=function(a){a=_.R.fromCharCode(_.Ui(a));return btoa(a)};_.kj=function(a){this.f=a;this.a=0};
|
|
55
|
+
_.lj=function(a,b){b.lastIndex=a.a;var c=b.exec(a.f);c=null==c?null:{position:c.index,length:c[0].length,results:c};if(a.a==a.f.length||null==c||c.position!=a.a)return null;a.a+=c.length;return c.results};
|
|
56
|
+
_.mj=function(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new _.P(_.Q,4,4016,{invalidTag:b});var d=c[1],e=c[2];c=[];var f;if(e){e=new _.kj(e);var g;(g=_.lj(e,/^([^,=]+)(?:,|$)/g))&&(f=g[1]);for(var h=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=_.lj(e,h);)c.push(new _.Ki(g[1],g[2]||g[3]))}return new _.Hi(a,d,c,f)};_.oj=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0,fatalStatusCodes:_.Og(nj).concat()}};
|
|
57
|
+
pj=function(a,b){a.timeout=b.timeout;a.baseDelay=b.baseDelay;a.backoffFactor=b.backoffFactor;a.fuzzFactor=b.fuzzFactor;a.maxAttempts=b.maxAttempts;a.fatalStatusCodes=b.fatalStatusCodes||_.Og(nj).concat()};
|
|
58
|
+
_.rj=function(a,b){_.N.$(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.qj,uriIndex:0,method:a.method||"GET",body:a.body||null,headers:Object.assign({},a.headers),allowCrossSiteCredentials:a.allowCrossSiteCredentials||!1,onProgress:a.onProgress||null,onFragment:a.onFragment||null,maxAttempts:a.maxAttempts||1,currentAttempt:0,baseDelay:a.baseDelay||1E3,backoffFactor:a.backoffFactor||2,fuzzFactor:a.fuzzFactor||.5,timeout:a.timeout||0,requestModifiers:a.requestModifiers||
|
|
59
|
+
[],responseModifiers:a.responseModifiers||[],startTime:a.startTime||null,endTime:a.endTime||null,contentType:a.contentType||null,licenseRequestType:a.licenseRequestType||null,sessionId:null,bytesRemaining:-1,bytesLoaded:-1,bytesTotal:-1,timescale:a.timescale||null,rateLimitBps:a.rateLimitBps||null,disableFragmentSupport:a.disableFragmentSupport||!1,disableMergedFragments:a.disableMergedFragments||!1,fatalStatusCodes:_.Og(nj).concat(),requestStartTimestamp:null};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&
|
|
60
|
+
pj(c,b);return c};_.sj=function(a,b,c,d,e,f,g,h){e&&(d=e);e={uri:d,data:b||new ArrayBuffer(0),headers:a,status:c,fromCache:!!a["x-shaka-from-cache"],timeMs:g,responseStartMs:h,request:f};if(200<=c&&299>=c&&202!==c)return e;g=null;try{g=_.R.xd(b,!0)}catch(l){}_.th("HTTP error text:",g);throw new _.P(0<=(f.fatalStatusCodes||[]).indexOf(c)?_.Q:1,1,1001,{url:d,status:c,responseText:g,headers:a,request:f,response:e});};
|
|
61
|
+
tj=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};uj=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};vj=function(a,b,c){if(0>=a)return Promise.resolve();var d=8*c/a-b/1E3;return 0<d?new Promise(function(e){setTimeout(e,1E3*d)}):Promise.resolve()};_.wj=function(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c};
|
|
62
|
+
_.xj=function(a,b){this.O=a;this.A=b;this.a=!1};yj=function(a,b){a.O.then(function(){return b(!0)},function(){return b(!1)});return a};zj=function(a,b,c){try{var d=a(b);if(d&&d.O&&d.abort)return c.resolve(d.O),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){})["catch"](function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}};_.Aj=function(){this.a=[]};
|
|
63
|
+
_.Bj=function(a,b){a.a.push(yj(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};_.Ij=function(){this.f=[];this.h=[];this.o=!1;this.l=new _.Aj;this.a={};this.j=0;this.a.data=Cj;!window.fetch||!window.AbortController||_.Dj(6)||_.Ej()&&68<_.Fj().browserVersion.major?(this.a.http=Gj,this.a.https=Gj):(this.a.http=Hj,this.a.https=Hj)};Jj=function(a,b){var c,d;return _.E(function(e){if(1==e.a)return c=_.R,_.x(e,a.fetch(b),2);d=e.f;return e["return"](c.hh(c.Z(d.data)))})};
|
|
64
|
+
Kj=function(a,b){var c,d;return _.E(function(e){if(1==e.a)return _.x(e,Jj(a,b),2);c=e.f;try{d=JSON.parse(c);if(null==d||typeof d!==_.Te)throw Error("Not an object");return e["return"](d)}catch(f){throw new ki("Failed to parse JSON response","json-failed");}})};
|
|
65
|
+
Nj=function(a,b,c,d){d=void 0===d?"HEAD":d;var e,f;return _.E(function(g){switch(g.a){case 1:if(!navigator.onLine)return g["return"](!1);if(!b){g.F(2);break}e=_.rj(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.A(g,4);return _.x(g,a.fetch(e).O,6);case 6:_.ah(g,2);break;case 4:if(f=_.C(g),1002===f.code||1003===f.code)return g["return"](!1);case 2:return g["return"](!0)}})};
|
|
66
|
+
_.Oj=function(a,b){this.id=a;this.type=b;this.roles=[];this.channelsCount=this.src=this.mimeType=this.frameRate=this.label=this.originalLanguage=this.language=this.kind=null;this.spatialAudio=!1;this.renditions=[];this.accessibility=[]};_.Pj=function(a){return a&&a!==_.hg?a:null};
|
|
67
|
+
Sj=function(a){if(!a)throw new _.P(_.Q,3,3101,mb+a);if(!_.N.$(a))throw new _.P(_.Q,3,3101,mb+a+". Track type must be a string!");switch(a.toLowerCase()){case _.S:return _.S;case _.T:return _.T;case _.Qj:return _.Qj;case Rj:return Rj}throw new _.P(_.Q,3,3101,"Unknown track type: "+a+".");};Uj=function(a,b){a=Sj(a);var c=_.Pj(b.kind),d=b.id;d||(d=String(_.Tj++));d=new _.Oj(d,c===_.Le?Rj:a);d.kind=c;d.label=_.Pj(b.label);d.language=_.Pj(b.language);d.originalLanguage=b.originalLanguage||d.language;return d};
|
|
68
|
+
Vj=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};_.Wj=function(a,b){this.track=b;this.id=a;this.originalId=this.drm=this.drmInfo=this.codec=this.kd=this.bandwidth=this.height=this.width=null};
|
|
69
|
+
_.Xj=function(a){this.j=a;this.scheme=null;var b=document.createElement("a"),c=a.match(/^(.*:)(\/\/(.*))$/),d=!1;if(c){if(this.scheme=c[1],b.href=c[2],":"===b.protocol||""===b.host&&""===b.pathname)b.href="//dummy.com/"+c[3],d=!0}else{b.href=a;if(":"===b.protocol||""===b.host&&""===b.pathname)b.href="//dummy.com/"+a.match(/\/?\/?(.*)/)[1],d=!0;this.scheme=b.protocol}""===this.scheme&&(this.scheme=window.location.protocol);this.a=d?"":b.hostname;this.port=b.port;this.path=b.pathname;_.R.startsWith(this.path,
|
|
70
|
+
"/")||(this.path="/"+this.path);this.f=b.search;this.h=b.hash};_.Yj=function(a){return a.scheme+"//"+(a.a+(a.port?":"+a.port:"")+a.path+a.h+a.f)};_.Zj=function(a,b,c){return a?(c||Object.keys(a).sort()).reduce(function(d,e){if(!(e in a))return d;var f=a[e],g="\x26";""===d&&(g=b?"":"?");d=d+g+encodeURIComponent(e);return d=d+"\x3d"+encodeURIComponent(void 0===f?"":f)},""):""};
|
|
71
|
+
_.ak=function(a){var b={};a=a||"";a=a.substring(a.indexOf("?")+1);a=_.u(a.split("\x26"));for(var c=a.next();!c.done;c=a.next()){var d=c.value.split("\x3d");c=decodeURIComponent(d[0]);d=decodeURIComponent(d[1]||"");c&&(b[c]=d)}return b};bk=function(a,b){return a.startsWith("http:://")||a.startsWith("https:://")?a:(new URL(a,b)).toString()};
|
|
72
|
+
ck=function(a){this.f=a;this.g=new _.K("clpp.native.hls.HlsMetadataParser");this.a=li(this.h.bind(this),function(b,c){return b[0]===c[0]&&b[1].enableHlsVideoTrackInfo===c[1].enableHlsVideoTrackInfo&&b[1].enableMetadata===c[1].enableMetadata})};
|
|
73
|
+
fk=function(a,b,c){var d,e,f,g,h;return _.E(function(l){if(1==l.a)return _.x(l,dk(a,b,c),2);d=l.f;e=d.mimeType;f=d.renditions;g=new _.Oj("dummy",_.Qj);h=f.map(function(m,n){var p=new _.Wj("R"+n,g);p.bandwidth=m.bandwidth;p.kd=m.kd;p.codec=m.codec;p.width=m.width;p.height=m.height;return p});ek(h);return l["return"]({renditions:h,mimeType:e||void 0})})};
|
|
74
|
+
hk=function(a){a=a.split("\n").filter(function(c){return c.trim().startsWith("#EXT-X-MEDIA:")}).map(function(c){return gk(c)});var b=new Map;a.forEach(function(c){if(c.type&&c.name){var d=c.type+":"+c.name;if(b.has(d))throw Error("#EXT-X-MEDIA:NAME attributes are not unique. It is impossible to map HLS metadata to Safari data structures.");b.set(d,c)}});return b};
|
|
75
|
+
gk=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.mj(0,a);a=b(_.bc);a=null!=a?{AUDIO:_.T,VIDEO:_.Qj,SUBTITLES:_.S}[a]:void 0;return{type:a,groupId:b(_.db),name:b("NAME"),language:b(_.tb),Um:b("AUTOSELECT"),"default":b("DEFAULT"),dn:b("FORCED"),hg:b("CHARACTERISTICS"),uri:b(_.dc)}};ek=function(a){var b=new Set;a.forEach(function(c){b.add(c.width+"x"+c.height)});if(b.size<a.length)throw Error("Playlist contains multiple renditions with the same resolution.");};
|
|
76
|
+
ik=function(a,b){var c,d;return _.E(function(e){if(1==e.a)return c=_.rj(b),_.x(e,Jj(a.f,c),2);d=e.f;return e["return"](d)})};dk=function(a,b,c){var d,e,f,g;return _.E(function(h){if(1==h.a)return d=jk(b),e=kk(b,c),f=d[0]?d[0].codec:null,_.x(h,lk(a,e,f),2);g=h.f;return h["return"]({mimeType:g,renditions:d})})};lk=function(a,b,c){var d,e;return _.E(function(f){if(1==f.a)return b&&c?_.x(f,ik(a,b),2):f["return"](null);d=f.f;e=[mk(d,b),nk(d,b)].filter(Boolean);return f["return"](_.Gi(e,_.sg,c))})};
|
|
77
|
+
jk=function(a){return a.split("\n").filter(function(b){return b.trim().startsWith("#EXT-X-STREAM-INF:")}).map(function(b){var c=_.mj(0,b);if(c.getAttribute(_.lc))throw Error("Playlist contains alternative video streams.");var d=_.Ii(c,_.Pb);b=d?Number(d.split("x")[0]):null;d=d?Number(d.split("x")[1]):null;var e=_.Ii(c,_.na);e=e?Number(e):null;var f=_.Ii(c,"AVERAGE-BANDWIDTH");f=f?Number(f):null;c=_.Ii(c,_.ta);c=_.Di(_.sg,c?c.split(","):[]);return{bandwidth:e,kd:f,codec:c,width:b,height:d,mimeType:null}})};
|
|
78
|
+
kk=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?bk(c,b):null};mk=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?bk(c,b):null};nk=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.Ii(_.mj(0,c),_.dc))?bk(c,b):null:null};
|
|
79
|
+
_.pk=function(a,b,c){for(var d=_.u(_.ok),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.qk=function(a){a=_.ok.indexOf(a);0<=a&&_.ok.splice(a,1)};_.U=function(){};_.rk=function(a,b){var c=a;b&&(c+='; codecs\x3d"'+b+'"');return c};_.sk=function(a){this.f=a;this.a=null};tk=function(a,b,c){function d(){e&&a.f()}a.stop();var e=!0,f=null;a.a=function(){c?clearInterval(f):clearTimeout(f);e=!1};f=c?setInterval(d,1E3*b):setTimeout(d,1E3*b);return a};
|
|
80
|
+
_.uk=function(a){this.f=a;this.a=null};vk=function(){};_.wk=function(){return!!navigator.userAgent.match(/Edge?\//)};_.Dj=function(a){return _.xk("Tizen"+(a?" "+String(a):""))};_.Ej=function(){return _.xk("Web0S")};_.zk=function(){return _.Ej()&&79===yk().major};_.Ak=function(){return _.xk("CrKey")};_.Bk=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.Dj()};_.Ck=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.Bk()&&1<navigator.maxTouchPoints};
|
|
81
|
+
_.Dk=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};_.xk=function(a){return(navigator.userAgent||"").includes(a)};Gk=function(){if(Ek)return Ek;Fk||(Fk=new _.uk(function(){Ek=null}));(Ek=document.querySelector(_.sg)||document.querySelector(_.$c))||(Ek=document.createElement(_.sg));Fk.aa(1);return Ek};Ik=function(a,b){try{return parseInt(b,10)}catch(c){Hk.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
|
|
82
|
+
Jk=function(a){var b={major:-1,name:ig};if(!a)return b;var c=a.replace(/_/g,".");b.name=c;c=c.split(".");1<=c.length&&(b.major=Ik(a,c[0]));2<=c.length&&(b.minor=Ik(a,c[1]));3<=c.length&&(b.patch=Ik(a,c[2]));4<=c.length&&(b.build=Ik(a,c[3]));return b};Kk=function(a,b){if(!a||!b||0===b.length)return!1;for(var c=0;c<b.length;c++)if(0<=a.indexOf(b[c]))return!0;return!1};
|
|
83
|
+
Uk=function(){var a=Lk();if(!a)return Mk;var b=a.match(/^.+?(?=\))/);if(!b)return Mk;b=b[0];if(Kk(b,["iphone","ipad"]))return Nk;if(Kk(b,["android"]))return Ok;if(Kk(b,["macintosh"]))return Pk;if(Kk(b,["windows nt"]))return Qk;if(Kk(b,["tizen"]))return Rk;if(Kk(b,["web0s"]))return Sk;if(Kk(b,["linux"]))return Tk;Hk.warn("Unable to identify OS from user agent: "+a);return Mk};
|
|
84
|
+
yk=function(){var a=Lk(),b=["ie","edge","opera","firefox","safari",vd];var c=Uk();for(var d=Vk[c],e=0,f=b.length;e<f;e++)if(c=d[b[e]]&&a.match(d[b[e]]))return Jk(c[1]);return Jk("")};Lk=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
|
|
85
|
+
_.Fj=function(){var a=Uk();var b=Uk();var c=Vk[b];if(c){c=Lk().match(c.os_version)[1];c=Jk(c);if(b===Qk)if("5.1"===c.name)c.name="xp";else if("6.1"===c.name)c.name="7";else if("6.2"===c.name||"6.3"===c.name)c.name="8";b=c}else b=Jk("");a:{c=Lk();var d=["ie","edge","opera","firefox","safari",vd],e=Uk();e=Vk[e];for(var f=0,g=d.length;f<g;f++)if(e[d[f]]&&c.match(e[d[f]])){c=d[f];break a}c=Wk}return{os:a,osVersion:b,browser:c,browserVersion:yk()}};
|
|
86
|
+
Xk=function(){this.g=new _.K("clpp.native.TrackManager");this.m=null;this.f=new _.Eh;this.h=[];this.B=0;this.o={};this.D=[];this.a=new Map;this.w=null;this.l=new Map;this.A=!0;this.J=this.Af.bind(this,_.S);this.M=this.Cf.bind(this,_.S);this.K=this.Bf.bind(this,_.S);this.P=this.Af.bind(this,_.Qj);this.V=this.Cf.bind(this,_.Qj);this.T=this.Bf.bind(this,_.Qj);this.G=this.Af.bind(this,_.T);this.I=this.Cf.bind(this,_.T);this.H=this.Bf.bind(this,_.T);this.j=null};
|
|
87
|
+
Zk=function(a,b){var c,d,e,f,g,h,l,m;return _.E(function(n){if(1==n.a){c=a.m.getConfiguration();d=_.pk(c,b.mimeType,_.cg);if(!d)return a.g.warn("Track mimetype is not supported",b),n["return"]();e=_.rj(b.url);return _.x(n,a.m.getNetworkEngine().fetch(e).O,2)}(f=n.f)&&f.data&&(g="External_"+a.B++,a.o[g]=b,h=d.a(_.Ui(f.data)),l=URL.createObjectURL(new Blob([h])),m={url:l,kind:b.kind,language:b.language,label:b.label,mimeType:_.cg},Yk(a,m,g));_.y(n)})};al=function(a,b,c){return $k(a)&&b===_.Qj&&!!c.enableHlsVideoTrackInfo};
|
|
88
|
+
bl=function(a,b,c){return $k(a)&&(b===_.T||b===_.S)&&!!c.enableMetadata};$k=function(a){a=a.m.getLoadedSource();return!(!a||a.type!==_.dl&&!a.url.endsWith(".m3u8"))&&_.Bk()};el=function(a,b,c){var d,e;return _.E(function(f){if(1==f.a)return(d=a.m.getLoadedSource())&&a.j?_.x(f,a.j.a(d.url,c),2):f["return"]();e=f.f;e.mimeType&&(b.mimeType=e.mimeType);e.renditions&&0<e.renditions.length&&(b.renditions=e.renditions,b.renditions.forEach(function(g){g.track=b}));_.y(f)})};
|
|
89
|
+
fl=function(a,b,c){var d,e,f,g;return _.E(function(h){if(1==h.a)return(d=a.m.getLoadedSource())&&a.j?_.x(h,a.j.a(d.url,c),2):h["return"]();e=h.f;e.Zc&&(f=b.type+":"+b.label,(g=e.Zc.get(f))&&g.hg&&(b.accessibility=g.hg.split(",").map(function(l){return l.trim()}).map(function(l){return{value:l,type:b.type,protocol:"HLS"}})));_.y(h)})};
|
|
90
|
+
Yk=function(a,b,c){if(a.m){var d=a.m.getSurface().getMedia();if(d){var e=document.createElement("track");e.id=c;e.kind=b.kind;e.srclang=b.language;b.label&&(e.label=b.label);_.R.empty(b.url)?e.src=URL.createObjectURL(new Blob([])):e.src=b.url;d.appendChild(e);a.D.push(e)}}};gl=function(a,b){if(!a.m)return null;var c=a.m.getSurface();if(!c)return null;c=c.getMedia();if(!c)return null;switch(b){case _.T:return c.audioTracks;case _.Qj:return c.videoTracks;case _.S:return c.textTracks;default:return null}};
|
|
91
|
+
hl=function(a,b){var c=gl(a,b);c&&(c=Array.from(c),b===_.S&&(c=c.filter(function(d){return d.kind!==_.Le})));return c};il=function(a,b){return a.h.filter(function(c){return c.type===b})};jl=function(a,b){var c=a.a.get(b)||null;return c&&c.renditions[0]};kl=function(a,b){var c=a.l.get(b);return c&&c.renditions[0]};
|
|
92
|
+
ol=function(a,b,c){var d=hl(a,b);if(c){if(void 0===a.h.find(function(l){return l.id===c.id}))throw Error("Unknown track with ID "+c.id+" and type "+b);if(c.type!==b)throw Error("Types mismatch for track "+c.type+" and arg "+b);a.g.debug("Activate track type "+b+" with ID: "+c.id);if(d){a.l.set(b,c);var e=!0,f=!1;switch(b){case _.S:var g="mode";e=_.Nf;f=_.Xd;break;case _.T:g="enabled";break;case _.Qj:g="selected"}if(g){d=_.u(d);for(var h=d.next();!h.done;h=d.next())h=h.value,h[g]=ll(c,h,c.type)?e:
|
|
93
|
+
f}}}else if(a.g.debug(_.Ia+b),a.a.get(b)&&d&&b===_.S){g=_.u(d);for(h=g.next();!h.done;h=g.next())h.value.mode=_.Xd;a.a.set(b,null)}b===_.T?a.m.trigger(new _.L(_.ml)):b===_.S&&a.m.trigger(new _.L(_.nl))};pl=function(a){return a.enabled||a.selected||a.mode===_.Nf||a.mode===_.re};
|
|
94
|
+
ql=function(a,b,c){c=_.Th(c).filter(function(e){return e});a.g.info("Find preferred tracks for",b,c);var d=il(a,b);c.some(function(e){var f=_.Ni(e);return(e=d.find(function(g){g=_.Ni(g.language||"");return _.Oi(f,g)}))?(a.g.info("Will select track with id",e.id),ol(a,b,e),!0):!1})};rl=function(a){(a=a.m.getTextDisplayer())&&a.remove(0,Infinity)};
|
|
95
|
+
ll=function(a,b,c){return a.type!==c?!1:void 0!==b.id&&null!==b.id&&""!==b.id?a.id===b.id:_.N.ra(a,{kind:_.Pj(b.kind),language:_.Pj(b.language),label:_.Pj(b.label)},["kind","language","label"])};_.sl=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};_.tl=function(){this.wd=new Dh(this);this.td=[]};vl=function(a){return a.name===Eb&&ul.some(function(b){return a.message.startsWith(b)})};wl=function(){};
|
|
96
|
+
_.zl=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.Ck()&&(a=360);var b=_.oj();b.maxAttempts=3;a={source:"",license:xl,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,manifest:{attemptParameters:_.oj(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,
|
|
97
|
+
restrictions:yl(a),useCmsd:!1},drm:null,enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:_.He,preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],preferSpatialAudio:!1,volume:null,startTime:null,loop:!1,lowLatencyMode:!1,suggestedPresentationDelay:void 0,muted:void 0,forceWaitForTracks:!1,streaming:{attemptParameters:b,bufferingGoal:10,rebufferingGoal:2,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,
|
|
98
98
|
relativeTextTimestamp:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.1,disableAudioTracks:!1,disableVideoTracks:!1,smallGapLimit:.5,jumpLargeGaps:!0,durationBackoff:1,maxSegmentToMediaOffset:1,forceNativeTS:!1,preferNativeHlsOnSafari:!0,safeSeekOffset:5,stallEnabled:!0,stallThreshold:3,stallSkip:.5,bufferLimitUpdateInterval:.5,overridePasp:!1,enableLiveEdgeChasing:!1,chasingRate:1.15,startChasingAt:5,stopChasingAt:2,chaseJumpDistance:10,patchEdgeWhenMixedContent:!1,ignoreDrift:!1,disableFragmentSupport:!1,
|
|
99
|
-
disableMergedFragments:!1,ignoreManagedMediaSourceStreamingHints:!1},restrictions:
|
|
100
|
-
attachMouseListener:!0,fieldOfView:70,sensitivity:1,invertHorizontalControl:!1,invertVerticalControl:!1};return a};
|
|
101
|
-
_.
|
|
99
|
+
disableMergedFragments:!1,ignoreManagedMediaSourceStreamingHints:!1},restrictions:yl(),tizen:{sideStreamText:_.Dj(2)},safari:{enableHlsVideoTrackInfo:!1,enableMetadata:!1},trickPlay:{speedUpMode:_.Vd,preferTrickPlayTracks:!0}};if(_.xk("Edge/")||_.Dj())a.streaming.gapDetectionThreshold=.5;_.Ej()&&(a.streaming.stallEnabled=!1);_.zk()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=.02);_.Dj()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=
|
|
100
|
+
1,a.streaming.stallSkip=0);a.vr={enable:!1,attachMouseListener:!0,fieldOfView:70,sensitivity:1,invertHorizontalControl:!1,invertVerticalControl:!1};return a};
|
|
101
|
+
_.Bl=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(!b)return _.zl();c=[_.zl()];var d=!1;b=_.u(b);for(var e=b.next();!e.done;e=b.next())e=e.value,null!==e&&void 0!==e&&(_.N.$(e)&&(e={source:e}),e.lowLatencyMode&&!d&&(c.push({suggestedPresentationDelay:0,streaming:{rebufferingGoal:.1,bufferLimitUpdateInterval:.01,ignoreDrift:!0,attemptParameters:{maxAttempts:3,baseDelay:250,backoffFactor:1}},abr:{bandwidthUpgradeTarget:.6,bandwidthDowngradeTarget:.95},manifest:{hlsLowLatency:!0}}),
|
|
102
102
|
d=!0),c.push(e));c=_.N.na.apply(null,c);_.N.$(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.N.R(c.volume)&&(!_.N.ma(c.volume)||_.N.isNaN(c.volume)))throw new _.P(_.Q,7,7100,"config.volume is not a number");if(!_.N.R(c.preferredTextLanguage)&&!_.N.$(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.P(_.Q,7,7100,"config.preferredTextLanguage is not a string or an array");if(!_.N.R(c.preferredAudioLanguage)&&!_.N.$(c.preferredAudioLanguage)&&
|
|
103
103
|
!Array.isArray(c.preferredAudioLanguage))throw new _.P(_.Q,7,7100,"config.preferredAudioLanguage is not a string or an array");if(!_.N.R(c.preferredAudioCodec)&&!_.N.$(c.preferredAudioCodec)&&!Array.isArray(c.preferredAudioCodec))throw new _.P(_.Q,7,7100,"config.preferredAudioCodec is not a string or an array");if(!_.N.R(c.preferredVideoCodec)&&!_.N.$(c.preferredVideoCodec)&&!Array.isArray(c.preferredVideoCodec))throw new _.P(_.Q,7,7100,"config.preferredVideoCodec is not a string or an array");if(!_.N.R(c.drm)){if(c.drm.env&&
|
|
104
104
|
!_.N.$(c.drm.env))throw new _.P(_.Q,7,7100,"config.drm.env is not a string");if(c.drm.offlineId&&!_.N.$(c.drm.offlineId))throw new _.P(_.Q,7,7100,"config.drm.offlineId is not a string");}if(d=c.streaming){d.bufferingGoal=Number(d.bufferingGoal);d.rebufferingGoal=Number(d.rebufferingGoal);d.bufferBehind=Number(d.bufferBehind);d.smallGapLimit=Number(d.smallGapLimit);d.durationBackoff=Number(d.durationBackoff);if(!_.N.ma(d.bufferingGoal)||_.N.isNaN(d.bufferingGoal))throw new _.P(_.Q,7,7100,"config.streaming.bufferingGoal is not a number");
|
|
105
105
|
if(!_.N.ma(d.rebufferingGoal)||_.N.isNaN(d.rebufferingGoal))throw new _.P(_.Q,7,7100,"config.streaming.rebufferingGoal is not a number");if(d.rebufferingGoal>d.bufferingGoal)throw new _.P(_.Q,7,7100,"config.streaming.rebufferingGoal must be \x3e\x3d bufferingGoal");if(!_.N.ma(d.bufferBehind)||_.N.isNaN(d.bufferBehind))throw new _.P(_.Q,7,7100,"config.streaming.bufferBehind is not a number");if(!_.N.ma(d.smallGapLimit)||_.N.isNaN(d.smallGapLimit))throw new _.P(_.Q,7,7100,"config.streaming.smallGapLimit is not a number");
|
|
106
|
-
if(!_.N.ma(d.durationBackoff)||_.N.isNaN(d.durationBackoff))throw new _.P(_.Q,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.N.R(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.k)throw new _.P(_.Q,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
a.maxBandwidth=Number(a.maxBandwidth);a.minPixels=Number(a.minPixels);a.maxPixels=Number(a.maxPixels);if(Number.isNaN(a.minWidth)||Number.isNaN(a.maxWidth)||Number.isNaN(a.minHeight)||Number.isNaN(a.maxHeight)||Number.isNaN(a.minBandwidth)||Number.isNaN(a.maxBandwidth)||Number.isNaN(a.minPixels)||Number.isNaN(a.maxPixels))throw new _.P(_.Q,7,7100,"Restrictions contain NaN");};_.
|
|
110
|
-
_.
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
_.
|
|
115
|
-
(b.ignoreUnrecognizedInitData=!!a.ignoreUnrecognizedInitData),a.env)){var c=_.
|
|
116
|
-
_.
|
|
117
|
-
serverCertificate:void 0===f?g.serverCertificate:null===f?null:typeof f===_.
|
|
118
|
-
return c};_
|
|
119
|
-
_.
|
|
120
|
-
_.
|
|
121
|
-
_.
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
_.
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
_.
|
|
129
|
-
a=["assetId","variantId"];b.f=_.
|
|
130
|
-
|
|
131
|
-
_.
|
|
132
|
-
_.R.fd(_.
|
|
133
|
-
_.
|
|
134
|
-
_.
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
_
|
|
138
|
-
_.
|
|
139
|
-
_.
|
|
140
|
-
_.
|
|
141
|
-
_.
|
|
142
|
-
_.
|
|
143
|
-
e=_.
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
_.
|
|
106
|
+
if(!_.N.ma(d.durationBackoff)||_.N.isNaN(d.durationBackoff))throw new _.P(_.Q,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.N.R(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.k)throw new _.P(_.Q,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");Al(c.restrictions);Al(c.abr.restrictions);c.abr.initialRestrictions&&Al(c.abr.initialRestrictions)}return c};
|
|
107
|
+
yl=function(a){a=void 0===a?Infinity:a;return{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:a,minPixels:0,maxPixels:Infinity,minBandwidth:0,maxBandwidth:Infinity}};
|
|
108
|
+
Al=function(a){_.N.R(a.maxPixels)&&(a.maxPixels=Infinity);_.N.R(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.N.R(a.maxHeight)&&(a.maxHeight=Infinity);_.N.R(a.maxWidth)&&(a.maxWidth=Infinity);_.N.R(a.minPixels)&&(a.minPixels=0);_.N.R(a.minBandwidth)&&(a.minBandwidth=0);_.N.R(a.minHeight)&&(a.minHeight=0);_.N.R(a.minWidth)&&(a.minWidth=0);a.minWidth=Number(a.minWidth);a.maxWidth=Number(a.maxWidth);a.minHeight=Number(a.minHeight);a.maxHeight=Number(a.maxHeight);a.minBandwidth=Number(a.minBandwidth);
|
|
109
|
+
a.maxBandwidth=Number(a.maxBandwidth);a.minPixels=Number(a.minPixels);a.maxPixels=Number(a.maxPixels);if(Number.isNaN(a.minWidth)||Number.isNaN(a.maxWidth)||Number.isNaN(a.minHeight)||Number.isNaN(a.maxHeight)||Number.isNaN(a.minBandwidth)||Number.isNaN(a.maxBandwidth)||Number.isNaN(a.minPixels)||Number.isNaN(a.maxPixels))throw new _.P(_.Q,7,7100,"Restrictions contain NaN");};_.Cl=function(a){return typeof a===_.Te&&!Array.isArray(a)&&"source"in a};
|
|
110
|
+
_.Dl=function(a){_.tl.call(this);this.log=new _.K(a);this.configuration=this.fe=_.zl();this.w=this.D=null;this.re=this.nf=!1;this.Uh=new _.K("clpp.video.events");this.ld=null;this.ge=-1;this.Am=this.Zl.bind(this);this.mf=new _.Ij;this.T=new _.Eh;this.Hc=this.Qc=this.P=null};_.Fl=function(a){return _.El.get(a)||null};_.Hl=function(a){_.El.get(a.id())?Gl.warn("Component already in use."):_.El.set(a.id(),a)};Il=function(a){return Array.from(_.El.values()).find(function(b){return b instanceof a})||null};
|
|
111
|
+
Jl=function(a){for(var b=_.u(_.El.values()),c=b.next();!c.done;c=b.next())a(c.value)};Kl=function(a){Jl(function(b){b.o(a)})};Ll=function(a){Jl(function(b){b.h(a)})};Ml=function(){Jl(function(){})};Nl=function(){Jl(function(){})};Ol=function(a){if(null!==Il(a))return null;a=new a;a.f();_.Hl(a);Gl.info("Installed component:",a.id());return a};Pl=function(a){if(a=Il(a))a.a(),_.El["delete"](a.id()),Gl.info("Uninstalled component:",a.id())};Ql=function(){this.a=this.f=null;this.g=new _.K("clpp.drm.csl")};
|
|
112
|
+
Rl=function(a,b){3===b.type&&(a.f&&(a.g.debug("Attaching tracking token"),b.headers[Ig]=a.f),a.a&&(b.headers[Jg]=a.a))};Sl=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[Ig];a.a=b.headers[Jg];var c=b.headers["x-dt-csl-renewal-info"];a.f&&a.g.debug("Loaded tracking token "+a.f);a.a&&a.g.debug("Loaded followup token "+a.a);if(c)return c=JSON.parse(_.R.Z(_.fj(c))),{delay:c.renewalPeriod,Rm:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};
|
|
113
|
+
Tl=function(a){return _.R.startsWith(a,_.Md)||_.R.startsWith(a,_.Pd)};_.Vl=function(a){_.Ul[a.J]=a};
|
|
114
|
+
_.Xl=function(a){var b={attemptParameters:_.oj(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,enableSessionCacheForSkd:!1,ignoreUnrecognizedInitData:!0,Ya:{}};if(a&&(b.enforceSingleSession=!!a.enforceSingleSession,b.delayLicenseRequestUntilPlayed=!!a.delayLicenseRequestUntilPlayed,b.preferredDrmSystem=a.preferredDrmSystem,b.emeApi=a.emeApi,a.attemptParameters&&(b.attemptParameters=a.attemptParameters),b.enableSessionCacheForSkd=!!a.enableSessionCacheForSkd,void 0!==a.ignoreUnrecognizedInitData&&
|
|
115
|
+
(b.ignoreUnrecognizedInitData=!!a.ignoreUnrecognizedInitData),a.env)){var c=_.Ul[a.env]||null;if(!c)throw _.th(_.Aa,_.Mb+a.env+_.ca),new _.P(_.Q,6,6015,_.Ba+a.env+"' is missing.");b.Ya=_.Wl(c,a.customData)||{};_.R.startsWith(a.env.toLowerCase(),ie)&&(b.enforceSingleSession=!0)}return b};Zl=function(a){a=Yl[a];if(!a)return null;var b=_.Fj();return b.os===Ok&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.$l=function(a){this.J=a;this.f={}};
|
|
116
|
+
_.Wl=function(a,b){var c={},d=b?b.widevineVideoRobustness:void 0,e=b?b.widevineAudioRobustness:void 0,f=b?b.serverCertificate:void 0,g=a.f[_.Rd];g&&(c[_.Rd]={licenseUrl:g.licenseUrl,videoRobustness:pi(d,g.videoRobustness),audioRobustness:pi(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:oi(b?b.widevineDistinctiveIdentifierRequired:void 0,g.distinctiveIdentifierRequired,!1),persistentStateRequired:oi(b?b.widevinePersistentStateRequired:void 0,g.persistentStateRequired,!1),
|
|
117
|
+
serverCertificate:void 0===f?g.serverCertificate:null===f?null:typeof f===_.Wf?Zl(f):f});(g=a.f[_.Md])&&(c[_.Md]={licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.f[_.Pd])&&(c[_.Pd]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});
|
|
118
|
+
return c};_.am=function(a,b){b=void 0===b?!1:b;this.f=_.N.ma(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.h=b;this.buffer=this.f.buffer};_.cm=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.Ui(a.f.buffer);b=_.Ui(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.bm()}};_.V=function(a,b){try{a.f.setUint32(a.a,b,a.h),a.a+=4}catch(c){_.bm()}};_.bm=function(){throw new _.P(_.Q,3,3E3);};_.dm=function(a,b){this.f=a;this.h=void 0===b?!0:b;this.a=0};_.em=function(a){return a.a<a.f.byteLength};
|
|
119
|
+
_.gm=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){_.fm()}};_.hm=function(a){try{var b=a.f.getUint16(a.a,a.h);a.a+=2;return b}catch(c){_.fm()}};_.W=function(a){try{var b=a.f.getUint32(a.a,a.h);a.a+=4;return b}catch(c){_.fm()}};_.im=function(a){try{var b=a.f.getInt32(a.a,a.h);a.a+=4;return b}catch(c){_.fm()}};
|
|
120
|
+
_.jm=function(a){var b=0,c=0;try{!0===a.h?(b=a.f.getUint32(a.a,!0),c=a.f.getUint32(a.a+4,!0)):(c=a.f.getUint32(a.a,!1),b=a.f.getUint32(a.a+4,!1))}catch(d){_.fm()}if(2097151<c)throw new _.P(_.Q,3,3001);a.a+=8;return c*Math.pow(2,32)+b};km=function(a,b){for(var c=new Uint8Array(b),d=0;d<b;d++)c[d]=_.gm(a);return c};_.lm=function(a,b){a.a+b>a.f.byteLength&&_.fm();var c=a.a+a.f.byteOffset;c=a.f.buffer.slice(c,c+b);a.a+=b;return _.Ui(c)};
|
|
121
|
+
_.fm=function(){throw new _.P(_.Q,3,3E3,"Buffer read out of bounds.");};_.mm=function(){this.h=[];this.f=[];this.a=!1;this.g=new _.K("clpp.mp4")};_.nm=function(a){for(;_.em(a.reader)&&!a.parser.a;)a.parser.xe(a.start+a.headerSize,a.reader,a.partialOkay)};_.om=function(a){for(var b=_.W(a.reader);0<b&&!a.parser.a;--b)a.parser.xe(a.start+a.headerSize,a.reader,a.partialOkay)};_.pm=function(a){return function(b){var c=b.reader.Ga()-b.reader.getPosition();a(_.lm(b.reader,c))}};
|
|
122
|
+
qm=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.rm=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};_.sm=function(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)};tm=function(){};um=function(a){var b="";try{b=_.R.xd(a)}catch(c){}return b};_.vm=function(a){a=um(a);var b="";a.length&&(b=(new _.Xj(a)).a);return b};
|
|
123
|
+
wm=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.R.Z(a)),d=_.fj(c.sinf[0]);(new _.mm).L(_.Qf,_.nm).L("schi",_.nm).L("tenc",function(e){e.reader.skip(6);_.gm(e.reader)&&(e.reader.skip(1),b=_.hj(_.lm(e.reader,16)));e.parser.stop()}).parse(d)}catch(e){}return b};
|
|
124
|
+
xm=function(a,b,c){if(!c||!c.byteLength)throw new _.P(_.Q,6,6102);var d;typeof b===_.Wf?d=_.R.Be(b,!0):d=b;a=_.R.Be(um(a),!0);b=new _.am(12+a.byteLength+d.byteLength+c.byteLength,!0);_.V(b,a.byteLength);_.cm(b,_.Ui(a));_.V(b,d.byteLength);_.cm(b,_.Ui(d));_.V(b,c.byteLength);_.cm(b,_.Ui(c));return _.Ui(b.buffer)};_.ym=function(a){var b=_.Ui(a.body);b=_.ej(b);a.headers[za]=Zc;a.body=_.R.Va("spc\x3d"+b).buffer};
|
|
125
|
+
_.zm=function(a){try{var b=_.R.Z(a.data)}catch(d){return}b=b.trim();"\x3cckc\x3e"===b.substr(0,5)&&"\x3c/ckc\x3e"===b.substr(-6)&&(b=b.slice(5,-6));try{var c=JSON.parse(b);c.ckc&&(b=c.ckc);c.CkcMessage&&(b=c.CkcMessage);c.License&&(b=c.License)}catch(d){}a.data=bj(_.fj(b))};
|
|
126
|
+
Fm=function(){var a=Am;if(a===Bm)return"https://lic.drmtoday.com";if(a===Cm)return"https://lic.staging.drmtoday.com";if(a===Dm)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};Jm=function(a){var b=Fm();if(a==_.Rd)return b+Gm;if(a==_.Pd)return b+Hm;if(a==_.Md)return b+Im;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
|
|
127
|
+
Km=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
|
|
128
|
+
_.Mm=function(a,b,c){b=um(b);c=c&&c.customData?c.customData:{};b=new _.Xj(Km(b));var d=_.ak(b.f);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.R.te(""+a)&&(d.assetId=a,Lm.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.R.te(""+e)&&(d.variantId=e,Lm.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],Lm.debug("KeyId found in FPS SKD. Removing other parameters")):
|
|
129
|
+
a=["assetId","variantId"];b.f=_.Zj(d,!1,a);"/"!==b.path||b.j.includes(b.a+"/")||(b.path="");b=_.Yj(b);return c.fpsContentId=b};_.Om=function(a,b,c,d){d=void 0===d?!0:d;c=a.drm;c&&c.env.startsWith(Da)?c.customData&&(_.Nm(b,a),a=b.uris[0],d&&c.customData.assetId&&(a+="?assetId\x3d"+encodeURI(""+c.customData.assetId),c.customData.variantId&&(a+="\x26variantId\x3d"+encodeURI(""+c.customData.variantId)),b.uris[0]=a)):Lm.warn(zb)};
|
|
130
|
+
Pm=function(a,b,c){_.Om(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.qi(b.uris[0]);c.a.add(_.df,a);b.uris[0]=c.toString()};
|
|
131
|
+
_.Qm=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.Om(a,b,c,!1);b.headers[za]=Zc;c={spc:_.dj(b.body)};if((a=a.drm)&&a.env.startsWith(Ea)&&d){a={};var e=_.ak((new _.Xj(Km(d))).f);d=e.keyId;if(e=e.assetId)Lm.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(Lm.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(Lm.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(Lm.info("Adding assetID to FPS payload:",a.assetId),c.assetId=a.assetId)}b.body=
|
|
132
|
+
_.R.fd(_.Zj(c,!0))};_.Rm=function(a,b){Lm.debug("Clearing response data");if(200===b.status){var c=_.R.Z(b.data).trim();"\x3cckc\x3e"===c.substr(0,5)&&"\x3c/ckc\x3e"===c.substr(-6)&&(c=c.slice(5,-6));b.data=_.fj(c).buffer}};_.Sm=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(Da))Lm.warn(zb);else if(c.customData&&c.customData.merchant&&!c.env.startsWith(Ea)){var d=new _.qi(b.uris[0]),e=d.Ba;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.Ba=e;b.uris[0]=d.toString()}};
|
|
133
|
+
_.Tm=function(a,b){try{var c=_.Ui(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));Lm.debug("Widevine License response",d);var e=atob(d.license),f=new Uint8Array(e.length);for(c=0;c<e.length;++c)f[c]=e.charCodeAt(c);b.data=f.buffer}catch(g){Lm.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data")}};
|
|
134
|
+
_.Nm=function(a,b){var c=b.drm;if(c&&c.customData){var d={userId:c.customData.userId,sessionId:c.customData.sessionId,merchant:c.customData.merchant};_.N.Bd(d)&&(a.headers["dt-custom-data"]=btoa(JSON.stringify(d)));(c=c.customData.authToken)&&(a.headers["x-dt-auth-token"]=c)}};Vm=function(a){var b={},c=a?a[Kg]:void 0;a=Um[a?a[Kg]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};Wm=function(){};
|
|
135
|
+
Ym=function(a,b){b=void 0===b?0:b;_.sh("Registering EME Factory: "+a.a());for(var c={priority:b,Pb:a},d=0;d<Xm.length;++d)if(Xm[d].priority<b){Xm.splice(d,0,c);return}Xm.push(c)};
|
|
136
|
+
Zm=function(a){if(a){var b=Xm.find(function(d){return d.Pb.a()===a}).Pb;if(b&&b.ba())return _.sh(qc+b.a()),b.create();_.sh("Cannot create selected EME manager. Choosing by priority list.")}b=_.u(Xm);for(var c=b.next();!c.done;c=b.next())if(c=c.value.Pb,c.ba())return _.sh(qc+c.a()),c.create();throw Error("Missing EME managers");};_.an=function(a,b){var c=_.$m(a,b);return 1!=c.length?null:c[0]};
|
|
137
|
+
_.$m=function(a,b){return Array.prototype.filter.call(a.childNodes,function(c){return c instanceof Element&&c.tagName==b})};_.bn=function(a){return Array.prototype.every.call(a.childNodes,function(b){return b.nodeType==Node.TEXT_NODE||b.nodeType==Node.CDATA_SECTION_NODE})?a.textContent.trim():null};
|
|
138
|
+
_.cn=function(a,b){var c=new DOMParser,d=null,e=null;try{e=c.parseFromString(a,_.dg)}catch(f){}e&&e.documentElement.tagName==b&&(d=e.documentElement);return d&&0<d.getElementsByTagName("parsererror").length?null:d};dn=function(a,b,c){this.j=new Uint8Array(a);this.a=b;this.f=c};en=function(){dn.apply(this,arguments)};_.gn=function(a){var b=_.gj(a);b=parseInt(b.byteLength,10).toString(16);b=_.gj("12"+b+a);return new en(fn,a,b)};
|
|
139
|
+
_.hn=function(a){function b(t){switch(t){case 0:do if(!_.em(d))throw Error("not enough data to skip!");while(_.gm(d)&128);break;case 1:d.skip(8);break;case 2:d.skip(c());break;case 3:for(;4!==(t=c()&7);)b(t);break;case 5:d.skip(4);break;default:throw Error("invalid wire type "+t);}}function c(){for(var t=_.gm(d),v=(t&127)>>>0,z=7;128<=t&&28>=z;)t=_.gm(d),v=(v|(t&(28>z?127:15))<<z)>>>0,z+=7;return 28<z?-1:v}var d=new _.dm(new DataView(a.buffer,a.byteOffset,a.byteLength),!1);a=_.W(d);var e=_.W(d);e=
|
|
140
|
+
_.rm(e);var f=_.W(d),g=f>>>24;f&=16777215;var h=_.lm(d,16);h=_.hj(h);if(0<g){var l=_.W(d);d.skip(16*l)}l=_.W(d);for(var m=[],n=null;_.em(d);){var p=c(),q=p&7;p>>>=3;if(2===q){q=c();if(0>q)throw Error("unable to read length of field "+p);q=km(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.th("Parsed WV PSSH Box","size",a,"name",e,"version",g,"flags",f,"size",l,"systemId",h,"contentId (base64)",n?_.dj(n):"","keyIds",m.map(function(t){return _.hj(t)}));return 0<m.length?_.gn(_.hj(m[0])):null};
|
|
141
|
+
_.jn=function(a,b,c,d,e,f){f=void 0===f?null:f;dn.call(this,a,b,d);this.version=e;this.h=c;this.l=f};
|
|
142
|
+
_.on=function(a){a:{var b=new _.dm(new DataView(a.buffer),!0);_.W(b);for(_.hm(b);_.em(b);)if(1===_.hm(b)){var c=_.hm(b);b=_.lm(b,c);break a}b=null}b||(b=a);a=_.R.mc(b,!0);c=_.cn(a,"WRMHEADER");a=c.getAttribute("version");var d=_.an(c,"DATA");c=(c=_.an(d,"LA_URL"))?_.bn(c):"";var e;if(e=_.an(d,"KID"))if(e=_.bn(e)){var f=_.an(d,ra);e={value:e,Ue:f?f.textContent.trim():null}}else e=null;else e=null;d=e?[e]:(e=kn(d))?[e]:(d=ln(d))?d:null;e=d&&d[0]||{};d=e.Ue;e=_.fj(void 0===e.value?"":e.value);e=_.mn(e);
|
|
143
|
+
e=_.hj(e);return new _.jn(_.nn,e,c,b,a,d)};_.mn=function(a){var b=[];b.push(a[3]);b.push(a[2]);b.push(a[1]);b.push(a[0]);b.push(a[5]);b.push(a[4]);b.push(a[7]);b.push(a[6]);a=_.Ui(a);a.set(b,0);return a};kn=function(a){a=_.an(a,"PROTECTINFO");if(!a)return null;var b=_.an(a,"KID");if(!b)return null;a=b.getAttribute("VALUE");if(!a)return null;var c=b.getAttribute(ra);b=b.getAttribute("ALGID");return{value:a,Ue:c,ei:b}};
|
|
144
|
+
ln=function(a){a=_.an(a,"PROTECTINFO");if(!a)return null;a=_.an(a,"KIDS");if(!a)return null;var b=_.$m(a,"KID");if(!b.length)return null;a=[];b=_.u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;if(c=d.getAttribute("VALUE")){var e=d.getAttribute(ra);d=d.getAttribute("ALGID");a.push({value:c,Ue:e,ei:d})}}return a.length?a:null};_.qn=function(a){pn&&performance.mark(a)};_.rn=function(a,b,c){pn&&performance.measure(a,b,c)};
|
|
145
|
+
sn=function(a){this.f=[];this.h=[];this.a=[];8<=a.byteLength&&(new _.mm).Y("pssh",this.j.bind(this)).parse(a.buffer);0==this.a.length&&_.J("No pssh box found!")};
|
|
146
|
+
_.wn=function(a){var b=this;this.C=a;this.M=new Set;this.B=this.I=this.o=null;this.da=!1;this.a=null;this.J=tn;this.A=new _.Eh;this.P=new Ql;this.f=new Map;this.K=[];this.H=new _.wj;this.h=null;this.U=function(c){b.w=!0;b.D=!1;b.H.reject(c);a.onError(c)};this.l=new Map;this.oa=new Map;this.ea=new _.uk(function(){return un(b)});this.j=!1;this.Da=new _.wj;this.G=!1;this.ga=[];this.Ka=!1;this.V=0;this.g=new _.K("clpp.drm.DrmEngine");this.pa=(new _.uk(function(){vn(b)})).hb(1);this.H["catch"](function(){});
|
|
147
147
|
this.w=this.D=!1;this.T=null};
|
|
148
|
-
|
|
149
|
-
if(2!=m.a)return _
|
|
150
|
-
_.
|
|
151
|
-
_.
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
_.
|
|
155
|
-
_
|
|
156
|
-
throw e;}})};_.
|
|
157
|
-
|
|
158
|
-
_.
|
|
159
|
-
_.
|
|
160
|
-
".")),
|
|
161
|
-
_.
|
|
162
|
-
_.
|
|
163
|
-
_.
|
|
164
|
-
!0}return!1};
|
|
165
|
-
|
|
166
|
-
e=f.next()){e=e.value;g=e.audio;var h=e.video;c.
|
|
167
|
-
p){return function(q){var t={robustness:q||"",contentType:n.
|
|
168
|
-
_.
|
|
169
|
-
t.browser===vd){a.g.warn("requestMediaKeySystemAccess() failed",q);a.g.warn("Will try to recover by removing the robustness attribute of videoCapabilities and audioCapabilities.")
|
|
170
|
-
var f=d=new _.
|
|
171
|
-
var n=m.getConfiguration();a.g.info("Got MediaKeySystemAccess with configuration",n);var p=n.videoCapabilities||[],q=_.u(n.audioCapabilities||[]);for(n=q.next();!n.done;n=q.next())a.M.add(n.value.contentType);p=_.u(p);for(n=p.next();!n.done;n=p.next())a.M.add(n.value.contentType);p=m.keySystem;n=b.get(_.
|
|
172
|
-
a.a={keySystem:p,licenseServerUri:q[0],distinctiveIdentifierRequired:n.distinctiveIdentifier==_.
|
|
148
|
+
Dn=function(a){var b,c,d,e,f;return _.E(function(g){switch(g.a){case 1:a.A.release();a.A=null;a.P.release();a.P=null;a.w=!1;a.D=!1;a.H.reject();a.pa.stop();a.pa=null;a.ea.stop();a.ea=null;b=Array.from(a.f.keys());c=_.u(a.f.values());for(d=c.next();!d.done;d=c.next())e=d.value,e.Oc&&e.Oc.stop();a.f.clear();return _.x(g,Promise.all(b.map(function(h){return Promise.resolve().then(function(){var l;return _.E(function(m){if(1==m.a)return a.g.debug("Closing session",h.sessionId),_.A(m,2),_.x(m,xn(h),4);
|
|
149
|
+
if(2!=m.a)return _.ah(m,0);l=_.C(m);a.g.warn("Error while closing session",l);_.y(m)})})})),2);case 2:if(!a.B){g.F(3);break}_.A(g,4);return _.x(g,a.o.od(null),6);case 6:_.ah(g,5);break;case 4:f=_.C(g),a.g.warn("Error while resetting media keys",f);case 5:a.B=null;case 3:a.o=null,a.a=null,a.M.clear(),a.I=null,a.K=[],a.h=null,a.U=null,a.C=null,a.V=0,a.T=null,_.y(g)}})};
|
|
150
|
+
_.Gn=function(a,b,c){a.J=En;a.K=c;a.G=0<c.length;a.g.debug("Using Persisted Licenses: "+a.G);a.h&&a.h.enableSessionCacheForSkd&&a.g.info("Enabled session cache for SKD license requests");return _.Fn(a,b)};
|
|
151
|
+
_.Fn=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.N.Xf(a.h.Ya);Hn(b,d)}var e=In(a);if(e){var f=_.u(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos=[e]}e=_.u(b);for(d=e.next();!d.done;d=e.next())for(d=_.u(d.value.drmInfos),f=d.next();!f.done;f=d.next())Jn(f.value,a.h.Ya);d=Kn(a,b);if(!d.size)return a.da=!0,Promise.resolve();_.qn(ae);d=_.Ln(a,d);return(c?d:d["catch"](function(){})).then(function(){_.qn($d);_.rn("DRM queryMediaKeys_()",ae,$d)})};
|
|
152
|
+
Mn=function(a){var b;return _.E(function(c){switch(c.a){case 1:if(a.o.ke())return c["return"]();if(!a.T){c.F(2);break}return _.x(c,a.T,3);case 3:return c["return"]();case 2:return _.A(c,4),a.T=a.o.od(a.I),_.x(c,a.T,6);case 6:_.ah(c,0);break;case 4:b=_.C(c);if(a.j)return c["return"]();a.U(new _.P(_.Q,6,6003,b.message,b));_.y(c)}})};
|
|
153
|
+
On=function(a,b){return _.E(function(c){if(1==c.a)return a.g.info("Handle encrypted event for type "+b.initDataType),_.x(c,Mn(a),2);if(!b.initData)return c["return"]();_.Nn(a,b.initDataType,_.Ui(b.initData));_.y(c)})};
|
|
154
|
+
_.Tn=function(a,b){if(!a.I)return _.Fh(a.A,b,[ke,"msneedkey",Gg,"needkey"],function(){a.U(new _.P(_.Q,6,6010))}),Promise.resolve();a.B=b;a.o.be(b);a.A.one(a.B,_.gf,function(){return Pn(a)});a.A.on(a.B,_.Bg,function(e){var f=a.D;a.D=!a.w;!f&&a.D&&(a.g.info("Waiting for DRM license key delivery"),a.C.onEvent(e))});var c=a.a.initData.find(function(e){return 0<e.initData.length}),d=Promise.resolve();if(c||a.o.nd()!==Sb||a.K.length)d=Mn(a);c=Promise.resolve();_.Ej()&&38===yk().major||(a.a&&a.a.keySystem!==
|
|
155
|
+
_.af&&!a.a.serverCertificate&&(c=Qn(a)),c=c.then(function(){return _.Rn(a)}));return Promise.all([d,c]).then(function(){a.j||(_.Sn(a),a.A.on(a.B,ke,function(e){return On(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.a&&a.a.keySystem===_.Rd&&1>a.V&&a.a.serverCertificate&&a.a.serverCertificate.length)return a.g.warn("Detected invalid widevine server certificate!. Retrying"),a.U(new _.P(1,6,6004)),a.a.serverCertificate=null,a.V++,_.Tn(a,b);1<=a.V&&a.g.info("Could not get valid widevine server certificate. Giving up");
|
|
156
|
+
throw e;}})};_.Rn=function(a){var b,c;return _.E(function(d){if(1==d.a){if(!(a.I&&a.a&&a.a.serverCertificate&&a.a.serverCertificate.length))return d.F(0);_.A(d,3);return _.x(d,a.I.setServerCertificate(a.a.serverCertificate),5)}if(3!=d.a)return b=d.f,void 0===b||b||a.g.debug("Server certificates are not supported by the key system. The server certificate has been ignored."),_.ah(d,0);c=_.C(d);throw new _.P(_.Q,6,6004,{browserError:c.message});})};
|
|
157
|
+
Qn=function(a){var b=a.keySystem(),c=a.h.Ya[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.C.getConfiguration();return Un(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,h=f&&f.certificateResponse;f=_.rj([d],a.h.attemptParameters);f.type=3;f.licenseRequestType=td;g&&f.requestModifiers.push(function(l){return g(e,l)});h&&f.responseModifiers.push(function(l){return h(e,l)});a.g.debug("Fetching certificate");return a.C.Gb.fetch(f).O}).then(function(f){a.a.serverCertificate=
|
|
158
|
+
_.Ui(f.data)})["catch"](function(f){var g=f.data.headers;g=Object.assign({message:"Error while fetching certificate!",url:f.data.url,status:f.data.status,response:f.data.response},g?{headers:g}:{},Vm(g));throw new _.P(_.Q,6,6100,g,f);})};Un=function(a,b){var c,d;return _.E(function(e){c=a.C.Tc();return c?(d=b&&b.drm&&b.drm.customData)?_.x(e,c(d),0):e["return"]():e["return"]()})};Vn=function(a,b){if(!a)return!1;for(var c=0;c<b.ee.length;c++)if(_.ij(a,b.ee[c]))return!0;return!1};
|
|
159
|
+
_.Sn=function(a){for(var b=a.a?a.a.initData||[]:[],c=_.u(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=!_.Dj(2);if(a.h.enforceSingleSession&&!a.keySystem().startsWith(_.Md)){var f=a.f.values();f=_.u(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.ij(d.initData,g.initData)?(a.g.info("Skipping Session creation. Existing init data in single session mode!"),e=!1):g.periodId===d.periodId&&(a.g.info("Skipping Session creation. Merging init data for period in single session mode for Key ID "+(d.keyId+
|
|
160
|
+
".")),Vn(d.initData,g)||(g.ee.push(d.initData),d.keyId&&!g.Za.includes(d.keyId)&&g.Za.push(d.keyId),a.l.get(d.keyId)||a.l.set(d.keyId,Uf)),e=!1)}!e||a.G&&a.J===En||(_.Wn(a,d.keyId,d.initData)&&(e=!1),e&&(a.g.info("Request new media key session on create"),Xn(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.u(a.K);for(d=c.next();!d.done;d=c.next())_.Yn(a,d.value);b.length||a.K.length||(a.w||a.g.info(Ca),a.w=!0,a.D=!1,a.H.resolve());return a.H};
|
|
161
|
+
_.Nn=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.G||a.J!==En)){var e=a.keySystem();if(!e.startsWith(_.Md)&&b===_.rd){var f=new sn(c);if(1<f.a.length&&(e={"org.w3.clearkey":"1077efecc0b24d02ace33c1e52e2fb4b","com.widevine.alpha":"edef8ba979d64acea3c827dcd51d21ed","com.microsoft.playready":"9a04f07998404286ab92e65be0885f95","com.adobe.primetime":"f239e769efa348509c16a903c6932efb"}[e]))for(var g=0;g<f.f.length;g++)if(e===f.f[g]){c=c.subarray(f.a[g].start,f.a[g].end+1);break}}(a.B.webkitCurrentPlaybackTargetIsWireless||
|
|
162
|
+
_.Dj(2)||a.keySystem().startsWith(_.Md)||!_.Wn(a,d,c,!0))&&Xn(a,d,null,b,c)}};
|
|
163
|
+
_.Wn=function(a,b,c,d){d=void 0===d?!1:d;for(var e=_.u(a.f.keys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.f.get(f);if(_.ij(c,g.initData))return b?g.Za.includes(b)?d&&a.g.info("Skipping Session creation. License for init data with Key ID "+(b+" was already requested in Session: '")+(f.sessionId+"'. ")):(g.Za.push(b),a.l.get(b)||a.l.set(b,Uf),d&&a.g.info($b+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.g.info($b+(f.sessionId+"'")),!0;if(Vn(c,g))return d&&a.g.info("Skipping Session creation. License for init data was already requested [extra]"),
|
|
164
|
+
!0}return!1};Zn=function(a){var b=Infinity;a=a.f.keys();a=_.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,isNaN(c.expiration)||(b=Math.min(b,c.expiration));return b};
|
|
165
|
+
Kn=function(a,b){for(var c=new Set,d=_.u(b),e=d.next();!e.done;e=d.next()){var f=_.u(e.value.drmInfos);for(e=f.next();!e.done;e=f.next())e=e.value,Jn(e,a.h.Ya),c.add(e)}f=a.G?_.If:_.$e;var g=a.G?[_.ef]:[ag];d=new Map;c=_.u(c);for(e=c.next();!e.done;e=c.next())e=e.value,d.set(e.keySystem,{initDataTypes:[_.rd],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.$e,persistentState:f,sessionTypes:g,label:e.keySystem,drmInfos:[]});c={};f=_.u(b);for(e=f.next();!e.done;c={Ge:c.Ge,Ne:c.Ne},
|
|
166
|
+
e=f.next()){e=e.value;g=e.audio;var h=e.video;c.Ge=g?_.rk(g.mimeType,g.codecs):"";c.Ne=h?_.rk(h.mimeType,h.codecs):"";var l={},m=_.u(e.drmInfos);for(e=m.next();!e.done;l={ib:l.ib},e=m.next())e=e.value,l.ib=d.get(e.keySystem),l.ib.drmInfos.push(e),e.initData&&e.initData.length&&(l.ib.initDataTypes=_.Og(new Set(e.initData.map(function(n){return n.initDataType}))).concat()),e.distinctiveIdentifierRequired&&(l.ib.distinctiveIdentifier=_.If),e.persistentStateRequired&&(l.ib.persistentState=_.If),g&&_.Th(e.audioRobustness).forEach(function(n,
|
|
167
|
+
p){return function(q){var t={robustness:q||"",contentType:n.Ge};p.ib.audioCapabilities.find(function(v){return v.robustness===t.robustness&&v.contentType===t.contentType})||p.ib.audioCapabilities.push(t)}}(c,l)),h&&_.Th(e.videoRobustness).forEach(function(n,p){return function(q){var t={robustness:q||"",contentType:n.Ne};p.ib.videoCapabilities.find(function(v){return v.robustness===t.robustness&&v.contentType===t.contentType})||p.ib.videoCapabilities.push(t)}}(c,l))}return d};
|
|
168
|
+
_.Ln=function(a,b){function c(m,n,p){n.drmInfos.some(function(q){return!!q.licenseServerUri})==m&&(f=f["catch"](function(){if(a.j)return null;if(p===_.Pd){if(_.wk()&&!a.h.Ya[p].useLegacySystem)return n.label=Qd,a.o.ic(Qd,[n])["catch"](function(){a.g.warn("Unable to create com.microsoft.playready.recommendation. Falling back to com.microsoft.playready.");n.label=_.Pd;$n(n);return a.o.ic(p,[n])});$n(n)}return a.o.ic(p,[n])["catch"](function(q){a:{if(p===_.Rd&&ao(n)){var t=_.Fj();if(ao(n)&&t.os===Ok&&
|
|
169
|
+
t.browser===vd){a.g.warn("requestMediaKeySystemAccess() failed",q);a.g.warn("Will try to recover by removing the robustness attribute of videoCapabilities and audioCapabilities.");$n(n);q=a.o.ic(p,[n]);break a}}throw q;}return q})}))}if(1==b.size&&b.has(""))return Promise.reject(new _.P(_.Q,6,6E3));null===a.o&&(a.o=Zm(a.h.emeApi));for(var d=_.u(b.values()),e=d.next();!e.done;e=d.next())e=e.value,0===e.audioCapabilities.length&&delete e.audioCapabilities,0===e.videoCapabilities.length&&delete e.videoCapabilities;
|
|
170
|
+
var f=d=new _.wj,g=a.h.preferredDrmSystem;if(!g)if(e=_.Fj(),e.os===Qk&&10<=e.osVersion.major&&"edge"===e.browser)g=_.Pd;else if("safari"===e.browser)g=_.Md;else if(e.browser===vd||"firefox"===e.browser)g=_.Rd;g&&(e=b.get(g))&&(c(!0,e,g),c(!1,e,g));e={};for(var h=_.u([!0,!1]),l=h.next();!l.done;e={Le:e.Le},l=h.next())e.Le=l.value,b.forEach(function(m){return function(n,p){p!==g&&c(m.Le,n,p)}}(e));f=f["catch"](function(m){throw new _.P(_.Q,6,6001,null,m);});f=f.then(function(m){if(a.j)return null;a.M.clear();
|
|
171
|
+
var n=m.getConfiguration();a.g.info("Got MediaKeySystemAccess with configuration",n);var p=n.videoCapabilities||[],q=_.u(n.audioCapabilities||[]);for(n=q.next();!n.done;n=q.next())a.M.add(n.value.contentType);p=_.u(p);for(n=p.next();!n.done;n=p.next())a.M.add(n.value.contentType);p=m.keySystem;n=b.get(_.bo(m.keySystem));q=[];var t=[],v=[],z=[];co(n.drmInfos,q,t,v,z);1<t.length&&_.J("Multiple unique server certificates found! Only the first will be used.");1<q.length&&_.J("Multiple unique license server URIs found! Only the first will be used.");
|
|
172
|
+
a.a={keySystem:p,licenseServerUri:q[0],distinctiveIdentifierRequired:n.distinctiveIdentifier==_.If,persistentStateRequired:n.persistentState==_.If,audioRobustness:n.audioCapabilities?n.audioCapabilities[0].robustness:"",videoRobustness:n.videoCapabilities?n.videoCapabilities[0].robustness:"",serverCertificate:t[0],initData:v,keyIds:z,periodId:null};if(!a.a.licenseServerUri)throw new _.P(_.Q,6,6012,a.a.keySystem);return m.createMediaKeys()}).then(function(m){a.j||(a.g.info("Created MediaKeys for key system",
|
|
173
173
|
a.a.keySystem),a.I=m,a.da=!0)})["catch"](function(m){if(!a.j){a.a=null;a.M.clear();if(m instanceof _.P)throw m;throw new _.P(_.Q,6,6002,{browserError:m.message});}});d.reject();return f};
|
|
174
|
-
|
|
174
|
+
In=function(a){a=_.N.Xf(a.h.Ya[_.af]||{});if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.gj(f),h=_.gj(e);g={kty:"oct",kid:_.ej(g,!1),k:_.ej(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.R.Va(d),initDataType:"keyids"}];return{keySystem:_.af,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
|
|
175
175
|
initData:d,keyIds:[],periodId:null}};
|
|
176
|
-
_.
|
|
177
|
-
b,f);if(!f)return a.f["delete"](c),a.U(new _.P(_.Q,6,6013)),null;e.loaded=!0;
|
|
178
|
-
|
|
179
|
-
initData:e}),a.h.ignoreUnrecognizedInitData)return
|
|
180
|
-
break;case 4:if(l)return a.g.warn("Skip creating a new session for "+h),
|
|
181
|
-
D.Ha["catch"](function(){});f&&(G=a.f.get(f),D.sessionContext=G.sessionContext);a.f.set(v,D);h&&!a.l.get(h)&&a.l.set(h,
|
|
182
|
-
drmSystemConfig:oa,sessionContext:D.sessionContext,emeApi:a.o.
|
|
183
|
-
qa))}});_.y(
|
|
184
|
-
|
|
185
|
-
_.
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
a.h.attemptParameters);h.type=3;h.body=b.message;h.method="POST";h.licenseRequestType=b.messageType===
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
_.
|
|
198
|
-
_.
|
|
176
|
+
_.Yn=function(a,b){try{a.g.debug("Attempting to load an offline session",b);var c=a.I.createSession(_.ef)}catch(f){var d=new _.P(_.Q,6,6005,{browserError:f.message});a.U(d);return Promise.reject(d)}a.A.on(c,_.Ke,a.uh.bind(a));a.A.on(c,we,a.ph.bind(a));var e={initData:null,loaded:!1,uf:Infinity,tb:null,Ha:new _.wj,periodId:null,ee:[],keyId:null,Za:[],initDataType:null,kc:null,sessionContext:{ldlDelay:0,customData:{}}};e.Ha["catch"](function(){});a.f.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.g.debug("Loaded offline session",
|
|
177
|
+
b,f);if(!f)return a.f["delete"](c),a.U(new _.P(_.Q,6,6013)),null;e.loaded=!0;eo(a)&&(a.w||a.g.info(Ca),a.w=!0,a.D=!1,a.H.resolve());return c},function(f){a.j||(a.f["delete"](c),a.U(new _.P(_.Q,6,6005,{browserError:f.message})))})};fo=function(a,b,c,d){if(!b&&c!==_.Qf)return!1;d=b||wm(d);a=_.u(a.f.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||b&&e.Za.includes(b)||c===_.Qf&&(e.keyId||wm(e.initData))===d)return!0;return!1};
|
|
178
|
+
Xn=function(a,b,c,d,e,f,g){f=void 0===f?null:f;g=void 0===g?!1:g;var h,l,m,n,p,q,t,v,z,D,G,F,B,I,O,M,aa,oa,pa,Ja,Ma;_.E(function(xa){switch(xa.a){case 1:if(!e.length)return a.g.warn("Empty init data"),xa["return"]();h=b;if(!h)try{h=go(a,d,e,f)}catch(qa){if(a.g.warn("Ignoring unrecognized init data. This may be caused by unsupported or malformed init data. Set `drm.ignoreUnrecognizedInitData \x3d false` if you want to override this behavior and use the init data after all.",{error:qa,initDataType:d,
|
|
179
|
+
initData:e}),a.h.ignoreUnrecognizedInitData)return xa["return"]()}if(g){xa.F(2);break}if(!fo(a,h,d,e)){xa.F(2);break}l=!0;if("skd"!==d||a.h.enableSessionCacheForSkd){xa.F(4);break}m=_.u(a.f.keys());n=m.next();case 5:if(n.done){xa.F(4);break}p=n.value;q=a.f.get(p);if(!h||q.keyId!==h){xa.F(6);break}a.g.warn("Close and re-open session for "+h);_.A(xa,9);return _.x(xa,p.close(),11);case 11:_.ah(xa,10);break;case 9:t=_.C(xa),a.g.warn("Unable to close session",t);case 10:l=!1;case 6:n=m.next();xa.F(5);
|
|
180
|
+
break;case 4:if(l)return a.g.warn("Skip creating a new session for "+h),xa["return"]();case 2:try{z=a.G?_.ef:ag,v=a.I.createSession(z),a.g.info("Created new "+z+" session for Key ID: '"+h+"'. Init data type: "+(d+"."))}catch(qa){return a.U(new _.P(_.Q,6,6005,{browserError:qa.message})),xa["return"]()}a.A.on(v,_.Ke,a.uh.bind(a));a.A.on(v,we,a.ph.bind(a));D={kc:f,ee:[],initData:e,initDataType:d,keyId:h,Za:h?[h]:[],loaded:!1,uf:Infinity,periodId:c,tb:null,Ha:new _.wj,sessionContext:{ldlDelay:0,customData:{}}};
|
|
181
|
+
D.Ha["catch"](function(){});f&&(G=a.f.get(f),D.sessionContext=G.sessionContext);a.f.set(v,D);h&&!a.l.get(h)&&a.l.set(h,Uf);if(e)for(F=0;F<a.a.initData.length;F++)B=a.a.initData[F],B.keyId&&!D.Za.includes(B.keyId)&&_.ij(B.initData,e)&&(D.keyId||(D.keyId=B.keyId),D.Za.push(B.keyId),a.l.get(B.keyId)||a.l.set(B.keyId,Uf));I=_.N;O=I.pb;M=a.C.getConfiguration();aa=a.keySystem();oa=a.h.Ya[aa];Ja=(pa=oa.modifiers)&&pa.transformInitData;O(Ja)||(Ja=ho);try{e=Ja({playerConfig:M,initData:e,initDataType:d,drmInfo:a.a,
|
|
182
|
+
drmSystemConfig:oa,sessionContext:D.sessionContext,emeApi:a.o.nd()})}catch(qa){return Ma=qa,qa instanceof _.P||(Ma=new _.P(_.Q,6,6016,qa)),D.Ha&&D.Ha.reject(qa),a.U(Ma),xa["return"]()}a.g.info("Generate License Request for key ID: '"+h+"'");v.generateRequest(d,e.buffer)["catch"](function(qa){if(!a.j){var Fa=null;qa.errorCode&&qa.errorCode.systemCode&&(Fa=qa.errorCode.systemCode,0>Fa&&(Fa+=Math.pow(2,32)),Fa="0x"+Fa.toString(16));a.U(new _.P(_.Q,6,6006,{browserError:qa.message,error:qa,extended:Fa},
|
|
183
|
+
qa))}});_.y(xa)}})};
|
|
184
|
+
go=function(a,b,c,d){d=void 0===d?null:d;if("skd"===b){a:{var e=d;e=void 0===e?null:e;var f=a.keySystem(),g=a.h.Ya[f];f=a.C.getConfiguration();g=g&&g.modifiers&&g.modifiers.extractContentId;_.N.pb(g)||(g=io);try{var h={ldlDelay:0,customData:{}};e&&(h=a.f.get(e).sessionContext);var l=g(f,c,h);a.g.debug("Extracted Content ID '"+l+"' from SKD");var m=l;break a}catch(F){a.g.warn("Unable to extract Content ID from SKD",F)}m=""}return m}if(b===_.Qf)return wm(c)||"";if(b===_.rd){m=a.keySystem();try{if(m.match(/^com\.widevine\.alpha/)){var n=
|
|
185
|
+
_.hn(c);if(n)return n.a}else if(jo(m)){e=new _.dm(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);f=_.W(e);var p=_.W(e);g=_.rm(p);var q=_.W(e);c=q>>>24;l=q&16777215;h=_.lm(e,16);var t=_.hj(h);if(0<c){var v=_.W(e);e.skip(16*v)}var z=_.W(e),D=_.lm(e,z),G=_.on(D);_.th("Parsed PR PSSH Box","size",f,"name",g,"version",c,"flags",l,"size",z,"systemId",t,"keyId",G.a);if(G)return G.a}}catch(F){throw a.g.warn("Unable to extract Key ID from PSSH data.",{error:F,keySystem:m}),F;}}return""};
|
|
186
|
+
io=function(a,b){var c=_.vm(b);_.th("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
|
|
187
|
+
ho=function(a){var b=a.playerConfig,c=a.initData,d=a.drmInfo,e=a.drmSystemConfig,f=a.sessionContext,g=a.emeApi;if("skd"===a.initDataType&&"APPLE"===g){a=_.N.pb;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=io);a="";try{a=e(b,c,f)}catch(h){throw new _.P(_.Q,6,6103);}if(!a.length)throw new _.P(_.Q,6,6101,"Content ID is an empty string");c=xm(c,a,d)}return c};
|
|
188
|
+
no=function(a,b){var c=b.target,d=a.f.get(c),e=a.keySystem(),f=!1;e.match(/^com\.widevine\.alpha/)&&b.message&&2===b.message.byteLength?(f=!0,a.g.info("WV Server certificate request for SID:'"+(c.sessionId+" from msg '")+(b.messageType+"'"))):a.g.info("License request for SID:'"+(c.sessionId+"'/KID:'"+d.keyId+"' from msg '")+(b.messageType+"'"));var g=a.a.licenseServerUri;e=a.h.Ya[e];"individualization-request"===b.messageType&&e&&e.individualizationServer&&(g=e.individualizationServer);var h=_.rj([g],
|
|
189
|
+
a.h.attemptParameters);h.type=3;h.body=b.message;h.method="POST";h.licenseRequestType=b.messageType===Ae&&d.kc?ze:f?td:b.messageType;h.sessionId=c.sessionId;if(h.licenseRequestType===ze)a.C.onEvent(new _.L(fe));jo(a.a.keySystem)&&ko(a,h);Rl(a.P,h);var l=Math.floor(b.timeStamp),m=Date.now();return lo(a,h,d.sessionContext).then(function(){_.qn(Zd+l+ha);a.g.debug("Sending DRM license request to",g,h);return a.C.Gb.fetch(h).O}).then(function(n){_.qn(Zd+l+".end");_.rn(Zd+l,Zd+l+ha,Zd+l+".end");if(a.j)return Promise.reject();
|
|
190
|
+
var p=Date.now()-m,q=mo(a,n),t="";q&&(t=" RID:"+q);q=n&&n.data?n.data.byteLength:-1;f?a.g.info("WV Server certificate response for SID:'"+(c.sessionId+"' ")+(q+" bytes in ")+(p+"ms"+t)):a.g.info("License response for SID:'"+(c.sessionId+"'/KID:'")+(d.keyId+"' ")+(q+" bytes in ")+(p+"ms"+t));var v=Sl(a.P,n);_.qn(de+l+ha);return c.update(n.data).then(function(){_.qn(de+l+".end");_.rn(de+l,de+l+ha,de+l+".end");if(!f){var z=Zn(a),D=v?Date.now()+1E3*v.delay:Number.NaN;z=new _.L(_.he,{keySystem:a.keySystem(),
|
|
191
|
+
expirationTime:z,expectedRenewalTime:D});a.C.onEvent(z);d&&(d.tb&&d.tb.resolve(),d.kc&&(z=d.kc,a.g.info("Closing expired session '"+z.sessionId+"'"),xn(z)["catch"](function(){a.g.warn("Unable to close expired session in time")}),(z=a.f.get(d.kc))&&z.Oc&&z.Oc.stop(),a.f["delete"](d.kc),d.kc=null),(new _.uk(function(){a.j||(d.loaded=!0,d.Ha&&d.Ha.resolve(),eo(a)&&(a.w||a.g.info(Ca),a.w=!0,a.D=!1,a.H.resolve()))})).aa(5),null!==d.initData&&(0<d.sessionContext.ldlDelay||v&&Tl(a.keySystem()))&&(z=new _.uk(function(){!a.j&&
|
|
192
|
+
a.P&&(a.g.info("Updating CSL Sessions"),jo(a.keySystem())?Xn(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):a.keySystem().startsWith(_.Md)&&c.update(_.R.Va("renew")))}),d.Oc=z,z.aa(v?v.delay:d.sessionContext.ldlDelay)))}})},function(n){var p,q,t,v;return _.E(function(z){if(a.j)return z["return"]();p=n.data.headers;q=Vm(p);t=Object.assign({message:_.ab,url:n.data.url,status:n.data.status,response:n.data.response},p?{headers:p}:{},q);v=new _.P(_.Q,6,6007,t,n);a.U(v);d&&d.tb&&d.tb.reject(v);d&&
|
|
193
|
+
d.Ha&&d.Ha.reject(v);_.y(z)})})["catch"](function(n){a.j||(n===Wb?a.g.info("Ignore update for closed sessions"):(n=new _.P(_.Q,6,6008,{browserError:n.message}),a.U(n),d&&d.tb&&d.tb.reject(n),d&&d.Ha&&d.Ha.reject(n)))})};mo=function(a,b){if(!b||!b.headers)return"";var c=b.headers["x-dt-li"];if(c)try{return JSON.parse(_.R.Z(_.fj(c))).ti}catch(d){a.g.warn("Unable to parse DRMtoday Request ID",d)}return""};
|
|
194
|
+
ko=function(a,b){var c=_.R.mc(b.body,!0,!0);if(c.includes("PlayReadyKeyMessage")){a.g.debug("Unwrapping PlayReady request.");c=(new DOMParser).parseFromString(c,"application/xml");for(var d=c.getElementsByTagName("HttpHeader"),e=0;e<d.length;++e)b.headers[d[e].querySelector("name").textContent]=d[e].querySelector(_.pg).textContent;b.body=_.fj(c.querySelector("Challenge").textContent).buffer}else a.g.debug("PlayReady request is already unwrapped."),b.headers[za]="text/xml; charset\x3dutf-8"};
|
|
195
|
+
lo=function(a,b,c){var d,e,f,g,h,l;return _.E(function(m){if(1==m.a)return d=a.C.getConfiguration(),_.x(m,Un(a,d),2);e=a.keySystem();h=(g=(f=a.h.Ya[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;h?b.requestModifiers.push(function(n){return h(d,n,c)}):e.startsWith(_.Md)&&b.requestModifiers.push(function(n){return _.ym(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Md)&&b.responseModifiers.push(function(n){return _.zm(n)});_.y(m)})};
|
|
196
|
+
un=function(a){var b=a.l,c=a.oa;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"==d})&&a.U(new _.P(_.Q,6,6014));a.C.yf(_.N.Yf(c));a.w||a.g.info(Ca);a.w=!0;a.D=!1};Pn=function(a){var b;return _.E(function(c){if(1==c.a)return _.qn(ce),b=a.ga.map(function(d){return no(a,d)}),a.Ka=!0,a.ga=[],_.x(c,Promise.all(b),2);_.qn(be);_.rn("drm.onPlay",ce,be);_.y(c)})};jo=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};
|
|
197
|
+
_.bo=function(a){return jo(a)?_.Pd:a};_.po=function(a,b){return a.length&&b.length?0<_.oo(a,b).length:!0};
|
|
198
|
+
_.oo=function(a,b){if(!a.length)return b;if(!b.length)return a;for(var c=[],d=0;d<a.length;d++)for(var e={},f=0;f<b.length;e={gd:e.gd},f++)if(a[d].keySystem===b[f].keySystem&&a[d].periodId===b[f].periodId){var g=a[d];f=b[f];var h=[];h=h.concat(g.initData||[]);h=h.concat(f.initData||[]);e.gd=_.Og(g.keyIds||[]).concat();f.keyIds&&f.keyIds.length&&f.keyIds.forEach(function(l){return function(m){l.gd.includes(m)||l.gd.push(m)}}(e));c.push({keySystem:g.keySystem,licenseServerUri:g.licenseServerUri||f.licenseServerUri,
|
|
199
199
|
distinctiveIdentifierRequired:g.distinctiveIdentifierRequired||f.distinctiveIdentifierRequired,persistentStateRequired:g.persistentStateRequired||f.persistentStateRequired,videoRobustness:g.videoRobustness||f.videoRobustness,audioRobustness:g.audioRobustness||f.audioRobustness,serverCertificate:g.serverCertificate||f.serverCertificate,initData:h,keyIds:e.gd,periodId:g.periodId});break}return c};
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
200
|
+
vn=function(a){a.f.forEach(function(b,c){var d=b.uf,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.C.onExpirationUpdated(c.sessionId,e),b.uf=e)})};eo=function(a){a=a.f.values();return _.Ri(a,function(b){return b.loaded})};
|
|
201
|
+
Hn=function(a,b){var c=[];b.forEach(function(f,g){c.push({keySystem:g,licenseServerUri:f.licenseUrl,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:[]})});for(var d=_.u(a),e=d.next();!e.done;e=d.next())e.value.drmInfos=c};$n=function(a){for(var b=_.u(a.audioCapabilities||[]),c=b.next();!c.done;c=b.next())delete c.value.robustness;a=_.u(a.videoCapabilities||[]);for(b=a.next();!b.done;b=a.next())delete b.value.robustness};
|
|
202
|
+
ao=function(a){return(a.audioCapabilities||[]).some(qo)||(a.videoCapabilities||[]).some(qo)};qo=function(a){return null!=a.robustness&&""!==a.robustness};
|
|
203
|
+
co=function(a,b,c,d,e){var f={};a=_.u(a);for(var g=a.next();!g.done;f={Aa:f.Aa},g=a.next()){f.Aa=g.value;b.includes(f.Aa.licenseServerUri)||b.push(f.Aa.licenseServerUri);f.Aa.serverCertificate&&(c.some(function(m){return function(n){return _.ij(n,m.Aa.serverCertificate)}}(f))||c.push(f.Aa.serverCertificate));if(f.Aa.initData){var h=_.u(f.Aa.initData);for(g=h.next();!g.done;g=h.next())g.value.periodId=f.Aa.periodId;h={};var l=_.u(f.Aa.initData);for(g=l.next();!g.done;h={Sd:h.Sd},g=l.next())h.Sd=g.value,
|
|
204
204
|
d.some(function(m){return function(n){var p=m.Sd;return n.keyId&&n.keyId==p.keyId&&n.periodId===p.periodId?!0:!1}}(h))||d.push(h.Sd)}if(f.Aa.keyIds)for(g=0;g<f.Aa.keyIds.length;++g)e.includes(f.Aa.keyIds[g])||e.push(f.Aa.keyIds[g])}};
|
|
205
|
-
|
|
206
|
-
d.serverCertificate||null)))}};
|
|
207
|
-
_.
|
|
208
|
-
|
|
209
|
-
_.
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
e=typeof a.h===_.k&&2>a.h&&2===e.networkState;var f=typeof a.h===_.k&&0>=a.H&&a.f===_.
|
|
215
|
-
f+", Current state: "+
|
|
216
|
-
|
|
217
|
-
a.a.on(c,_.
|
|
218
|
-
_.
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
{expirationTime:l}))},onEvent:function(h){h instanceof _.L?a.dispatchEvent(h):a.log.debug(_.fc,h.type)},getConfiguration:function(){return a.getConfiguration()},Tc:function(){return a.Tc()}});a.o.h=d;f={id:0,language:_.
|
|
224
|
-
ya:0,mimeType:_.
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
b.url,uri:b.url},d.error))})).aa(g))});
|
|
228
|
-
return new _.
|
|
229
|
-
|
|
230
|
-
_.
|
|
231
|
-
_.
|
|
232
|
-
|
|
233
|
-
HTMLMediaElement))throw new _.P(_.Q,7,7005,"Media element is not instance of HTMLMediaElement");if(!c.hasAttribute("crossorigin")){var e=d.crossorigin;this.g.info("Setting media elements crossorigin to "+e);c.setAttribute("crossorigin",e)}this.f.set(c);if(d.disableContainer)e=null;else if(d.containerEl){if(c.parentNode!==d.containerEl)throw new _.P(_.Q,7,7006,"Container element is not a direct parent of media element");e=d.containerEl}else{e=document.createElement(_.
|
|
234
|
-
c):this.g.warn("Player Surface Element has no parent. Can not inject container. You have to manually add playerSurface.getContainer() to the DOM!");for(var f=[],g=0;g<c.classList.length;g++)f.push(c.classList[g]);f=_.u(f);for(g=f.next();!g.done;g=f.next())g=g.value,c.classList.remove(g),_.
|
|
235
|
-
(this.a.set(e),
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
_.
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
e);e=_.
|
|
205
|
+
Jn=function(a,b){if(a.keySystem){var c=_.bo(a.keySystem),d=b[c];c===_.af&&a.licenseServerUri||(d&&(a.licenseServerUri=d.licenseUrl||""),a.keyIds||(a.keyIds=[]),d&&(a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=d.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=d.persistentStateRequired),a.videoRobustness||(a.videoRobustness=d.videoRobustness||""),a.audioRobustness||(a.audioRobustness=d.audioRobustness||""),a.serverCertificate||(a.serverCertificate=
|
|
206
|
+
d.serverCertificate||null)))}};xn=function(a){var b,c;return _.E(function(d){if(1==d.a)return b=new Promise(function(e){(new _.uk(e)).aa(1)}),_.x(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.J("Timeout waiting for session close");_.y(d)})};_.to=function(a,b){a&&b&&(_.ro.set(a,b),_.so.info("Registered TextDisplayerFactory: '"+a+"'"))};
|
|
207
|
+
_.uo=function(a,b){var c=b.find(function(d){return(d=_.ro.get(d))?d.ba(a):!1});if(null==c)return _.so.warn("Subtitles may not work as expected. No compatible text displayer found for this platform."),null;_.so.info("Chosen the text displayer: "+c);return _.ro.get(c)};vo=function(){this.a=null;this.f=[]};_.wo=function(a,b){if(null==a.a)a.a={timestamp:Date.now()/1E3,state:b,duration:0};else{var c=Date.now()/1E3;a.a.duration=c-a.a.timestamp;a.a.state!=b&&(a.f.push(a.a),a.a={timestamp:c,state:b,duration:0})}};
|
|
208
|
+
xo=function(a,b){var c=0;a.a&&a.a.state==b&&(c+=a.a.duration);for(var d=_.u(a.f),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state==b?e.duration:0;return c};yo=function(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=_.u(a.f),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.a&&c.push(b(a.a));return c};zo=function(){this.h=this.f=this.j=null;this.a=[]};Ao=function(a){return a.a.map(function(b){return _.N.Ma(b)})};
|
|
209
|
+
_.Bo=function(){this.f=this.o=this.A=this.D=this.j=this.l=this.h=this.w=NaN;this.a=new vo;this.B=new zo};_.Co=function(){return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,estimatedBandwidth:NaN,loadLatency:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,switchHistory:[],stateHistory:[]}};_.Do=function(a){this.f=a;this.a=void 0};Fo=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Eo.value().get(b),c.one(a,b,d))};
|
|
210
|
+
Jo=function(a){this.g=new _.K("clpp.StateManager");this.m=a;this.a=new _.Eh;this.f=_.Go;this.A=_.Ho;this.I=0;this.w=-1;this.M=this.o=this.J=this.B=0;this.j=this.l=this.G=!1;this.H=0;this.h=null;this.K=0;this.P=_.Bk();this.D=!1;this.J=Date.now();Io(this)};Ko=function(a,b){return Object.keys(b)[a]};
|
|
211
|
+
Mo=function(a,b){var c={type:_.Tf};b===_.jd||b===_.id?(c.reason=a.w,b===_.jd?c.timeSinceLastStateChangeMS=a.I:c.bufferedTimeMS=a.B):(a.f===_.Lo&&(c.reason=a.w),a.A===_.Lo&&(c.reason=a.w,c.bufferedTimeMS=a.B),c.currentState=a.f,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.I);return c};
|
|
212
|
+
Qo=function(a,b){if(a.f===b)return!1;var c=Date.now(),d=a.f===_.Lo;a.A=a.f;a.f=b;a.A===_.No&&(a.J=c,a.o=0);a.o||(a.o=a.J||c);a.I=c-a.o;a.o=c;b===_.Lo?(a.M=a.o,a.w=a.l?1:2,a.g.info("Buffering started. Reason: "+Ko(a.w-1,_.Oo)),c=Mo(a,_.jd),a.cc(_.jd,c)):d&&(a.B=a.o-a.M,a.g.info("Buffering finished. Reason: "+Ko(a.w-1,_.Oo)+". Buffering time: "+a.B+" ms"),c=Mo(a,_.id),a.cc(_.id,c));c=Ko(a.A,_.Po);d=Ko(a.f,_.Po);a.g.info(_.Jb+c+" -\x3e "+d);a.cc(_.Tf,Mo(a,""));return!0};
|
|
213
|
+
Vo=function(a,b){if(a.f===_.Ro)a.g.warn("Player is in error state, aborting any further state checks");else{var c=a.m.isPaused();var d=a.m.getPosition();var e=a.m.getDuration();if(d=a.m.isEnded()||a.f===_.No&&1>=Math.abs(d-e)||c&&d>=e)Qo(a,_.No)&&a.g.debug("Player claims to be in ended state, not checking more");else if(b!==_.eg){e=a.m.getPosition();e=null!==e&&void 0!==e&&0<=e?a.m.getBufferInfo().La(e,!0):-1;a.H=e;e=a.m.getSurface().getMedia();a.h=e?e.readyState:null;a.K=a.m.getPlaybackRate()||1;
|
|
214
|
+
e=typeof a.h===_.k&&2>a.h&&2===e.networkState;var f=typeof a.h===_.k&&0>=a.H&&a.f===_.Go,g=typeof a.h===_.k&&2>=a.h&&a.j;e=a.l||f||e||g;!a.P||a.m.isLive()||a.f!==_.Lo||e||(f=b===_.Lf&&4===a.h,(g=a.A===_.So)&&!a.D?e=!0:g||a.D||f||(e=!0));f=!1;e?f=Qo(a,_.Lo):c?f=Qo(a,_.To):a.G&&(f=Qo(a,_.Uo));f&&(a.D=!1);a.g.debug("Video state check for event "+b+":: seeking: "+a.l+", waiting: "+a.j+", playing: "+a.G+", paused: "+c+", readyState: "+a.h+", rate: "+a.K+", buffer: "+a.H+", ended: "+d+". Changed state: "+
|
|
215
|
+
f+", Current state: "+Ko(a.f,_.Po))}}};
|
|
216
|
+
Io=function(a){function b(d){return Vo(a,d.type)}a.g.debug("Start watching for video events for "+a.m.namespace());var c=a.m;a.a.on(c,_.me,function(){a.j=!1;Qo(a,_.No)});a.a.on(c,kd,b);a.a.on(c,_.of,function(){a.G=!0;a.j=!1;Vo(a,_.of)});a.a.on(c,_.cf,function(){a.G=!1;a.j=!1;Vo(a,_.cf)});a.a.on(c,_.eg,b);a.a.on(c,_.Ef,b);a.a.on(c,_.Lf,function(d){a.l=!1;a.j=!1;Vo(a,d.type)});a.a.on(c,_.Mf,function(d){a.l=!0;Vo(a,d.type)});a.a.on(c,Rf,b);a.a.on(c,_.Ag,function(){a.j=!0;Vo(a,_.Ag)});a.a.on(c,_.ne,function(d){return a.U(d)});
|
|
217
|
+
a.a.on(c,_.Fe,b);a.a.on(c,ld,function(){a.D=!0;Vo(a,ld)});a.a.on(c,_.ng,function(d){a.l=!0;Vo(a,d.type)});a.a.on(c,_.mg,function(d){a.l=!1;a.j=!1;Vo(a,d.type)})};Wo=function(a){a=(new _.qi(a)).Ba;if(!a)return null;a=a.toUpperCase();return _.R.endsWith(a,".MPD")?_.Tc:_.R.endsWith(a,".M3U8")?_.dl:_.R.endsWith(a,".MP4")?_.ug:_.R.endsWith(a,"MANIFEST")||_.R.endsWith(a,".ISM")?_.Yc:null};
|
|
218
|
+
_.Yo=function(a){var b;_.Cl(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.Wf||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=Xo(b[c]);d&&a.push(d)}return a};
|
|
219
|
+
Xo=function(a){var b=null;_.N.$(a)&&(a={url:a});typeof a===_.Te&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.N.R(a.drmProtected)||typeof a.drmProtected!==_.hd||(b.drmProtected=a.drmProtected),_.N.R(a.isLive)||typeof a.isLive!==_.hd||(b.isLive=a.isLive),_.N.R(a.name)||typeof a.name!==_.Wf||(b.name=a.name),_.N.R(a.Lb)||typeof a.Lb!==_.Wf||(b.Lb=a.Lb),_.N.R(a.audioMimeType)||typeof a.audioMimeType!==_.Wf||(b.audioMimeType=a.audioMimeType));b&&!b.type&&(b.type=Wo(a.url),b.type?
|
|
220
|
+
Zo.debug("Detect media type "+b.type+" for "+a.url):Zo.warn("Unable to detect media type for "+a.url));return b};$o=function(){_.Dl.call(this,Gd);this.A=this.I=!1;this.l=this.B=this.o=this.a=this.j=null;this.h=new _.Eh;this.H=this.G=this.f=this.J=null};
|
|
221
|
+
cp=function(a,b){return a.A?ap():new Promise(function(c){a.a||(a.h.on(b,_.ne,function(){var d=bp(a);if(d)a.onError(d)}),a.h.on(b,_.Jf,function(){var d=b.videoWidth,e=b.videoHeight,f=a.getTrackManager();f&&0<d&&0<e&&(f.w={width:d,height:e});a.trigger(new _.L(_.gd,{detail:{width:d,height:e}}))}),a.a=b);c()})};dp=function(a){return a.A?ap():new Promise(function(b){if(a.a){var c=a.a;a.h.off(c,_.ne);a.h.off(c,_.Jf);a.a=null}b()})};
|
|
222
|
+
fp=function(a){var b,c,d,e,f;return _.E(function(g){if(1==g.a){if(a.A)return g["return"](ap());b=a.w[a.getSourceIndex()];if(!a.configuration.drm||!1===b.drmProtected)return a.log.debug("No DRM configuration present.","Skipping DRM engine initialization"),g["return"](Promise.resolve());c=_.ep;d=_.Xl(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.o=new _.wn({Gb:e,onError:function(h){return a.onError(h)},yf:function(){},onExpirationUpdated:function(h,l){a.trigger(new _.L(_.ee,
|
|
223
|
+
{expirationTime:l}))},onEvent:function(h){h instanceof _.L?a.dispatchEvent(h):a.log.debug(_.fc,h.type)},getConfiguration:function(){return a.getConfiguration()},Tc:function(){return a.Tc()}});a.o.h=d;f={id:0,language:_.hg,primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:Promise.resolve.bind(Promise),findSegmentPosition:function(){return null},getSegmentReference:function(){return null},adjustSegmentDurations:function(){},getDuration:a.getDuration.bind(a),initSegmentReference:null,
|
|
224
|
+
ya:0,mimeType:_.ug,codecs:"",encrypted:!0,keyId:null,language:_.hg,originalLanguage:_.hg,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,kn:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,spatialAudio:!1,Sm:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.x(g,_.Gn(a.o,[f],[]),2)}return 3!=g.a?_.x(g,_.Tn(a.o,a.a),3):g["return"](Promise.resolve())})};
|
|
225
|
+
gp=function(a,b){Fo(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){a.getState()!==_.Ro&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};bp=function(a){if(null===a.w||!a.a.error)return null;var b=a.a.error.code;if(1===b)return null;var c=a.a.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new _.P(_.Q,3,3016,{code:b,bn:c,message:a.a.error.message})};ap=function(){return Promise.reject(new _.P(_.Q,7,7E3))};
|
|
226
|
+
hp=function(a){if(a.A)return new _.xj(ap(),function(){});var b=a.w[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.J;c&&gp(a,c);if(d.preload!==_.Se)a.h.one(d,_.Fe,function(){var g=Date.now()/1E3-e;a.f.A=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.Dj()||_.Ej())&&d.load();var f=new _.wj;a.h.one(d,Rf,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.G||(a.G=(new _.uk(function(){f.reject(new _.P(_.Q,3,3100,{message:"Unable to load media source successfully from "+
|
|
227
|
+
b.url,uri:b.url},d.error))})).aa(g))});Fo(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.h,function(){return f.resolve()});d.error?f.reject(bp(a)):d.preload===_.Se&&(a.log.warn('With \x3cvideo preload\x3d"none"\x3e, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way. Please do not use preload\x3d"none" with PRESTOplay for Web Apps.'),f.resolve());a.h.one(d,_.ne,function(){f.reject(bp(a))});
|
|
228
|
+
return new _.xj(f,function(){var g=new _.P(_.Q,7,7001);f.reject(g);return Promise.resolve()})};
|
|
229
|
+
ip=function(a,b){Fo(b,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){if(a.isLive()&&a.getState()!==_.Ro){var c=a.getSeekRange().end,d=a.getPosition();Infinity===c||20>c-d||(a.log.warn("Detected that HLS live stream was not started from close to the live edge. Auto-fixing, seeking to seek range end.(position: "+(d+", seek range end: "+c+")")),a.seek(c)["catch"](function(e){a.log.warn("Error while seeking to seek range edge.",e)}))}})};jp=function(){};
|
|
230
|
+
_.mp=function(a){a&&(0<=kp.indexOf(a)?lp.warn("Factory '"+a.name()+"' is already registered"):(kp.push(a),lp.info("Factory "+a.name()+"' has been registered.")))};op=function(a,b){var c=kp.find(function(d){return d.ba(a,b)});c||(c=new np);lp.info("Chosen ads: "+c.name());return c};_.pp=function(a,b){var c=document.createElement(a),d;for(d in b){var e=b[d];null===e||void 0===e?c.setAttribute(d,""):c.setAttribute(d,e)}return c};_.qp=function(a,b){a.classList.add(b)};
|
|
231
|
+
_.rp=function(a,b){if(a&&typeof b===_.Te)for(var c in b)a.style[c]=b[c]};_.sp=function(a){return document.createElement(a)};tp=function(){this.a=null;this.h=new Set;this.f=null;this.set(null)};up=function(a,b){a.a&&0!==b.length&&(a.a.classList.add(b),a.h.add(b))};vp=function(a,b){var c=new MutationObserver(function(){var d=Array.from(a.h.values());Vh(Array.from(b.classList),Array.from(d))||b.classList.add.apply(b.classList,_.Og(d))});c.observe(b,{attributes:!0,attributeFilter:["class"]});return c};
|
|
232
|
+
zp=function(a,b){this.g=new _.K("clpp.PlayerSurface");this.w=_.N.na(wp,b);this.f=new tp;this.h=null;this.a=new tp;this.l=xp;xp+=1;this.o="clpp-video-"+this.l;this.j=new _.Eh;if(null==a)throw new _.P(_.Q,7,7102,"No Media element was provided");if(a instanceof Element)var c=a;else if(c=document.getElementById(a),!c)throw new _.P(_.Q,7,7004,"Media element not found");var d=this.w;this.g.debug("Initializing Player Surface on ",c);if("cast-media-player"===c.tagName.toLowerCase())this.h=c;else{if(!(c instanceof
|
|
233
|
+
HTMLMediaElement))throw new _.P(_.Q,7,7005,"Media element is not instance of HTMLMediaElement");if(!c.hasAttribute("crossorigin")){var e=d.crossorigin;this.g.info("Setting media elements crossorigin to "+e);c.setAttribute("crossorigin",e)}this.f.set(c);if(d.disableContainer)e=null;else if(d.containerEl){if(c.parentNode!==d.containerEl)throw new _.P(_.Q,7,7006,"Container element is not a direct parent of media element");e=d.containerEl}else{e=document.createElement(_.Yd);c.parentNode?c.parentNode.replaceChild(e,
|
|
234
|
+
c):this.g.warn("Player Surface Element has no parent. Can not inject container. You have to manually add playerSurface.getContainer() to the DOM!");for(var f=[],g=0;g<c.classList.length;g++)f.push(c.classList[g]);f=_.u(f);for(g=f.next();!g.done;g=f.next())g=g.value,c.classList.remove(g),_.qp(e,g);e.style.cssText=c.style.cssText;c.removeAttribute(_.Yf);f=_.u([_.Hg,_.qe]);for(g=f.next();!g.done;g=f.next()){g=g.value;var h=c.getAttribute(g);h=parseInt(h,10);isNaN(h)||(e.style[g]=h+_.Df);_.Dj()||c.removeAttribute(g)}e.appendChild(c)}e&&
|
|
235
|
+
(this.a.set(e),up(this.a,"clpp-container"),up(this.a,this.o),up(this.f,_.wd),up(this.f,"clpp-video"));d.webOSStartupPatch&&yp(this,c,e)}};yp=function(a,b,c){(_.Ej()&&53===yk().major||_.Ej()&&68===yk().major||_.zk())&&!b.hasAttribute(Td)&&(b.style.opacity="0",b.setAttribute(Td,""),a.j.one(b,je,function(){b.removeAttribute(Td);b.style.opacity="1";c&&(c.style.opacity="1")}))};Bp=function(a){this.m=a;this.j=this.m.getNetworkEngine();this.a=new _.Eh;this.h=null;this.f=!0;Ap(this)};
|
|
236
|
+
Ap=function(a){a.a.on(window,"offline",function(){Cp(a,!1)});a.a.on(window,"online",function(){a.f||Dp(a)});a.a.on(a.m,Rf,function(){return Ep(a)});a.a.on(a.m,"suspend",function(){return Ep(a)});a.a.on(a.m,_.Ag,function(){return Ep(a)});a.a.on(a.m,_.of,function(){a.f||Dp(a)});a.a.on(a.m,_.Cf,function(){a.f||Dp(a)});a.a.on(a.m,_.Tf,function(){switch(a.m.getState()){case _.Lo:Ep(a);break;default:Ep(a)}})};Dp=function(a){a.m.getConfiguration().connectivityCheck&&(Fp(a),a.h=(new _.uk(function(){return Gp(a)})).aa(5))};
|
|
237
|
+
Ep=function(a){a.f&&Dp(a)};Fp=function(a){a.h&&(a.h.stop(),a.h=null)};Gp=function(a){var b,c;return _.E(function(d){if(1==d.a)return(b=a.m.getConfiguration().connectivityCheck)&&a.m?_.x(d,Nj(a.j,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;Cp(a,c);_.y(d)})};Cp=function(a,b){Fp(a);a.f!==b&&(a.f=b,a.m&&a.m.getConfiguration().connectivityCheck&&a.m.trigger(new _.L(Ze,{online:a.f})))};Ip=function(){for(var a=0;a<Hp.length;++a)Hp[a].Mc()};
|
|
238
|
+
_.Jp=function(a,b){b=b||0;for(var c={priority:b,Mc:a},d=0;d<Hp.length;d++)if(Hp[d].priority<b){Hp.splice(d,0,c);return}Hp.push(c)};Kp=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};Lp=function(a,b,c){var d=_.R.Z;this.h=a;this.f=b;JSON.parse(d(_.fj(a)));this.a=JSON.parse(d(_.fj(b)));this.j=c};Mp=function(a){this.license=a;this.a=null;this.g=new _.K("clpp.utils.LicenseKey")};
|
|
239
|
+
Np=function(a){if(!a.a){var b=a.license.split(".");if(3!==b.length)throw Error("Expected to find 3 data sections in JWT raw data");b=new Lp(b[0],b[1],b[2]);a.a=b}return a.a};Op=function(a){switch((a.le()[0]||{src:"",type:""}).type){case _.Tc:a="dash";break;case _.Yc:a="ss";break;case _.dl:a="hls";break;case _.ug:a=_.Pe;break;default:a=""}return a};Pp=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};
|
|
240
|
+
Qp=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};Rp=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};Tp=function(a){var b=a.getConfiguration(),c="no";b.drm&&!_.N.ra(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(ie)||Sp(a).endsWith("drmtoday.com"))&&(c=ie);return c};
|
|
241
|
+
Up=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.keySystem){case _.Rd:b="wv";break;case _.Pd:b="pr";break;case _.Md:b="fps"}return b};Vp=function(a){a=a.getDrmInfo();var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};Wp=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.videoRobustness){case gb:case eb:b="L1";break;case fb:b="L2";break;case _.Vb:case _.Ub:b="L3"}return b};Sp=function(a){a=a.getDrmInfo();return(new _.qi(a&&a.licenseServerUri||"")).Na};
|
|
242
|
+
Zp=function(a,b){var c="ie"===_.Fj().browser,d=b.getConfiguration(),e=_.Og(Array.from(_.El.keys())).concat(_.Og(b.hk()));d={"CL-KEY":a.license,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ia,"CL-USER-ID":Pp(d),"CL-ASSET-ID":Qp(d),"CL-SESSION-ID":Rp(d),"CL-PLAYBACK-TYPE":b.isLive()?Xp:Yp,"CL-CONTENT-TYPE":Op(b),"CL-PLUGINS":e.join(" "),"CL-DRM":Tp(b),"CL-DRM-CDM":Up(b),"CL-DRM-SEC-LEVEL":Wp(b),"CL-DRM-OFFLINE":Vp(b),"CL-DRM-IP":Sp(b)};c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=
|
|
243
|
+
e);e=_.rj(["https://downloads.castlabs.com/r/register/"]);e.method="GET";e.headers=d;return(new _.Ij).fetch(e).O.then(function(f){200===f.status&&c&&window.localStorage.setItem("cl_et",f.headers.etag);return Promise.resolve()})["catch"](function(f){a:{var g=Np(a);f=f.data;var h=f.status;if(g.a&&g.a.ilv)f=Promise.resolve();else{switch(h){case 403:case 404:g=7101;var l="castLabs Player license is invalid";if(403===h){h=l;l="";try{l=JSON.parse(decodeURIComponent(f.responseText)).message}catch(m){}f=
|
|
244
244
|
h+(": "+l)}else f=l+"!";l=f;break;case 412:g=7103;l="License requires a viewer ID. It should be supplied either via the `viewerId` config or in case of DRMtoday via the `drm.customData.userID` config.";break;default:f=Promise.resolve();break a}a.g.error(ub+l);f=Promise.reject(new _.P(_.Q,7,g,l))}}return f})};
|
|
245
|
-
X=function(a,b,c){_.
|
|
246
|
-
new _.
|
|
247
|
-
void 0===this.f.autoplay&&(this.f.autoplay=!0,this.g.debug("Setting autoplay in configuration since it was specified in the video element"))));a=[];b=_.u(
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
b&&(a.g.debug("Re-post state change event after release"),a.trigger(b))})["finally"](function(){a.a.off(_.
|
|
253
|
-
|
|
254
|
-
(f=new _.L(_.
|
|
255
|
-
_.
|
|
256
|
-
case 3:d?_.
|
|
257
|
-
_.
|
|
258
|
-
_.
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
else return _.x(c,b.player.play(),0)}})};
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
g.itemId+")"),a.play(g.itemId))};b.player.on(_.
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
0<l.length?a.g.error("Invalid interstitials, all interstitials will be skipped. "+l.join(" ")):0<e.length&&a.g.warn("Unsupported format of interstitials, playback may not behave correctly. "+e.join(" "));return 0===l.length};
|
|
291
|
-
|
|
292
|
-
b.Ea.length;case 4:_.
|
|
293
|
-
|
|
245
|
+
X=function(a,b,c){_.tl.call(this);var d=this;Ip();this.g=new _.K("clpp.Player");if(!a)throw new _.P(_.Q,7,7102);this.A=new _.Eh;this.f=this.T=b||_.zl();this.l=null;void 0===this.f.license&&(this.f.license=xl,this.g.warn("You are using the embedded demo license!"));if(!this.f.license)throw this.g.error("You provided null or empty string as your license. Please check your license configuration."),new _.P(_.Q,7,7101,"No license provided in configuration!");this.h=new zp(a,c);this.a=this.w=null;this.B=
|
|
246
|
+
new _.Ij;this.j=null;this.K=[];this.M={};this.o=null;this.I=!0;this.J=this.H=!1;this.G=this.Qc=null;this.Ze=!1;this.V=new Bp(this);this.P=!1;this.D=function(f){(f=f.detail)&&f.currentState===_.Uo&&(d.off(_.Tf,d.D),$p(d))};this.on(_.Tf,function(){d.getState()===_.Ro&&d.unload()});this.on(_.Pc,this.jh.bind(this));this.on(_.Oc,this.jh.bind(this));aq(this,this.f.license);this.h.getMedia()&&(a=this.h.getMedia(),a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),this.g.debug("Removed autoplay attribute from video element. Auto play will be handled by configuration."),
|
|
247
|
+
void 0===this.f.autoplay&&(this.f.autoplay=!0,this.g.debug("Setting autoplay in configuration since it was specified in the video element"))));a=[];b=_.u(bq);for(c=b.next();!c.done;c=b.next()){c=c.value;try{var e=c.create(this.f);e&&a.push(e)}catch(f){this.g.error("Error while creating player plugin",f)}}cq(this,a);Kl(this)};_.dq=function(a,b){b!==a.a&&(a.a&&(a.a.removeDelegate(a),a.a.destroy()),a.a=b,a.a&&(a.a.init(a.h,a.f),a.a.setNetworkEngine(a.getNetworkEngine()),a.a.addDelegate(a)))};
|
|
248
|
+
aq=function(a,b){a.w=new Mp(b);a.w.verify()["catch"](function(c){setTimeout(function(){a.g.error(ub+c);a.trigger(new _.L(_.ne,{detail:new _.P(_.Q,7,7101)}));a.destroy()},1E3)})};
|
|
249
|
+
$p=function(a){if(!a.P){a.P=!0;a.h.getMedia()||a.h.getCastElement();a.w||(a.w=new Mp(a.f.license));var b=Object.keys(a.M);Zp(a.w,{getConfiguration:a.getConfiguration.bind(a),le:a.le.bind(a),getDrmInfo:a.getDrmInfo.bind(a),hk:function(){return b},isLive:a.isLive.bind(a)}).then(function(){a.g.debug("License verified remotely")})["catch"](function(c){setTimeout(Kp,1E3,{release:a.release.bind(a),destroy:a.destroy.bind(a),onError:a.onError.bind(a)},c)})}};
|
|
250
|
+
cq=function(a,b){a.K=b;for(var c=_.u(a.K),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.id();e&&(a.M[e]=d)}a.vc("onPlayerCreated")};
|
|
251
|
+
eq=function(a){var b,c;return _.E(function(d){if(1==d.a){if(a.I)return a.g.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.off(_.Tf,a.D);a.A.off(a,_.Tf,a.D);a.A.off(document,yg);a.trigger(new _.L(_.Gf));a.P=!1;a.h&&a.h.release();return a.j?_.x(d,a.j.dispose(),3):d.F(2)}2!=d.a&&(a.j=null);if(a.a)return b=null,c=a.a.on(_.Tf,function(e){b=e}),d["return"](a.vc(_.Xe).then(function(){a.a.removeDelegate(a);return Promise.all([a.a.release(),a.B.release()])}).then(function(){a.g.debug("Releasing player completed");
|
|
252
|
+
b&&(a.g.debug("Re-post state change event after release"),a.trigger(b))})["finally"](function(){a.a.off(_.Tf,c);a.trigger(new _.L(Ff))}));a.trigger(new _.L(Ff));return d["return"](new Promise(function(e){return e()}))})};
|
|
253
|
+
fq=function(a,b,c){return new Promise(function(d,e){var f;if(b){for(var g=f=null,h=0;h<b.length;h++);h=Object.values(_.xh);for(var l=0;l<b.length;l++)for(var m=0;m<h.length;m++){var n={Pb:h[m],confidence:h[m].canPlay(b[l],c)};if(null===f||f.confidence<n.confidence)f=n,g=l}f&&typeof g===_.k&&0<f.confidence?(_.yh.debug("Player Factory '"+f.Pb.a()+"' can play",b[g]),f=new vh(f.Pb,g)):(_.yh.error("No compatible Player Factory found for sources:",b),f=null)}else f=null;f?(g=f.Pb.create(),d(new wh(g,f.a))):
|
|
254
|
+
(f=new _.L(_.ne,{detail:new _.P(_.Q,7,7003)}),a.trigger(f),e(f))})};hq=function(a){var b;return _.E(function(c){if(1==c.a){if(!a.a)return a.g.warn(Hb),c["return"]();b=a.a;if(!b.kg)return a.g.warn(Nb),c["return"]();a.trigger(new _.L(Ge));return _.x(c,b.kg(),2)}return _.x(c,_.gq(a),0)})};
|
|
255
|
+
_.jq=function(a,b){var c,d,e,f;return _.E(function(g){switch(g.a){case 1:_.qn(lf);if(a.H)throw Error("Player is already destroyed.");if(!a.h)throw Error("No surface associated with this player!");return _.x(g,a.release(),2);case 2:a.o=_.Yo(b);c=_.Cl(b);a.f=_.Bl(a.T,c?b:{},{source:a.o});if(0===a.o.length)throw Error("Invalid request to load: could not find source to load");a.I=!1;e=0;if(!a.J&&2===a.canPlay(a.o[0],a.f)){g.F(3);break}return _.x(g,fq(a,a.o,a.f),4);case 4:f=g.f,d=f.player,e=f.a,a.J=!1;
|
|
256
|
+
case 3:d?_.dq(a,d):a.a.addDelegate(a);iq(a);a.a&&a.a.setCdnErrorCallback(a.G);a.j=op(a,a.f).create(a);a.setSourceIndex(e);if(a.f.pauseWhenInBackground)a.A.on(document,yg,function(){document.hidden?(a.g.debug("Player is hidden: pausing..."),a.pause()):(a.g.debug("Player is visible: resuming..."),a.play())});Ll(a);return _.x(g,a.vc("onContentWillLoad",a.f.source[e]),5);case 5:_.qn(kf),_.rn("player.beforeLoad",lf,kf),_.y(g)}})};
|
|
257
|
+
_.kq=function(a){return _.E(function(b){a.h.getMedia()||a.h.getCastElement();a.A.on(a,_.Tf,a.D);a.trigger(new _.L(Ge));return _.x(b,Promise.all([a.a.load(a.f),a.j.load()]),0)})};lq=function(a){var b=_.Th(a.f.preferredTextLanguage).filter(function(d){return d}),c=a.getTrackManager().ja();b.some(function(d){var e=_.Ni(d);return(d=c.find(function(f){f=_.Ni(f.language||"");return _.Oi(f,e)}))?(a.getTrackManager().Ja(d),!0):!1})};
|
|
258
|
+
_.gq=function(a){var b,c,d,e;return _.E(function(f){switch(f.a){case 1:_.qn(jf);b=[];if(a.f.remoteTextTracks)for(c=_.u(a.f.remoteTextTracks),d=c.next();!d.done;d=c.next())e=d.value,b.push(a.getTrackManager().addTextTrack(e));return _.x(f,Promise.all(b),2);case 2:return lq(a),Ml(),_.x(f,a.vc("onContentLoaded"),3);case 3:if(!a.f.autoplay){f.F(4);break}return _.x(f,a.play(),4);case 4:_.qn(hf),_.rn("player.afterLoad",jf,hf),_.y(f)}})};
|
|
259
|
+
iq=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.E(function(c){if(!a.Qc||!a.Ze)return c.F(0);a.Ze=!1;return _.x(c,a.Qc(b),0)})})};_.mq=function(a){a&&(0<=bq.indexOf(a)||bq.push(a))};nq=function(a){this.a=a.map(function(b){return{videoId:b.getSurface().getMedia().id,player:b,Xd:!0,ready:Promise.resolve()}});this.g=new _.K("clpp.plist.PlayerPool")};
|
|
260
|
+
qq=function(a){_.tl.call(this);var b=this;this.w=_.N.na({transition:_.cf,preloadMedia:!1},a);this.h=[];this.a=0;var c=oq(a.anchorId);this.o=new nq(c);this.f=null;this.j=!1;this.l=new Map;this.A=a.toggleVisible;this.g=new _.K(Hd);this.o.a.forEach(function(d){return pq(b,d.player,!1)})};sq=function(a){return Promise.all(Array.from(a.l.keys()).map(function(b){return rq(a,b)}))};
|
|
261
|
+
rq=function(a,b){var c;return _.E(function(d){if(1==d.a){c=a.l.get(b);if(!c)return d.F(0);a.g.info("Stop preloading item (index: "+b+")");return c.player?_.x(d,a.o.release(c.player),3):d.F(3)}a.l["delete"](b);_.y(d)})};uq=function(a,b){var c;return _.E(function(d){if(1==d.a)return a.g.info("Stop current playback (index: "+b.index+")"),c=b.player,b.player=null,b.videoEl=null,b.role=tq,c.pause(),_.x(d,a.o.release(c),2);pq(a,c,!1);_.y(d)})};
|
|
262
|
+
wq=function(a,b){var c;return _.E(function(d){return 1==d.a?_.x(d,a.o.get(),2):3!=d.a?(c=d.f,a.f=b,b.role=vq,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),pq(a,c,!0),_.x(d,c.load(b.config),3)):b.config.autoplay?d.F(0):_.x(d,c.play(),0)})};
|
|
263
|
+
xq=function(a,b){return _.E(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==zf){c.F(2);break}a.g.info(nc);_.A(c,3);return _.x(c,b.preloadPromise,5);case 5:_.ah(c,2);break;case 3:_.C(c);case 2:a.f=b;b.role=vq;pq(a,b.player,!0);if(b.state===yf)return _.qn(vf),a.w.preloadMedia?_.x(c,b.player.play(),11):_.x(c,hq(b.player),11);if(b.state!==xf){c.F(7);break}return _.x(c,b.player.load(b.config),7);case 11:_.qn(uf),_.rn("playlist.next",vf,uf);case 7:if(b.config.autoplay)c.F(0);
|
|
264
|
+
else return _.x(c,b.player.play(),0)}})};zq=function(a){var b;return _.E(function(c){b=a.a+1;a.g.info("Preload following item (index: "+b+")");return _.x(c,yq(a,b),0)})};Aq=function(a){var b;return _.E(function(c){b=a.a-1;a.g.info("Preload preceding item (index: "+b+")");return _.x(c,yq(a,b),0)})};
|
|
265
|
+
Bq=function(a){var b;_.E(function(c){if(0===a.a)return _.x(c,zq(a),0);if(a.a===a.h.length-1)return _.x(c,Aq(a),0);b=[a.a-1,a.a+1];a.g.info("Preload items (indices: "+b+")");return _.x(c,Promise.all(b.map(function(d){return yq(a,d)})),0)})};
|
|
266
|
+
yq=function(a,b){var c,d,e;return _.E(function(f){switch(f.a){case 1:return _.x(f,a.o.get(),2);case 2:return c=f.f,d=a.h[b],d.player=c,d.videoEl=c.getSurface().getMedia(),d.role=tq,d.state=zf,a.trigger(new _.L(jg)),_.A(f,3),a.l.set(b,d),a.w.preloadMedia?(d.config.autoplay&&(a.g.warn("Autoplay should not be used for preloaded streams. Force disabling autoplay (index: "+(b+")")),d.config.autoplay=!1),d.preloadPromise=c.load(d.config)):d.preloadPromise=c.preload(d.config),_.x(f,d.preloadPromise,5);case 5:d.state=
|
|
267
|
+
yf;a.trigger(new _.L(jg));_.ah(f,0);break;case 3:e=_.C(f),7001===e.code?(a.g.info("Preload aborted (index: "+b+")"),d.state=wf):(a.g.warn("Preload failed (index: "+b+")",e),a.trigger(new _.L(_.ne,{detail:e})),d.state=xf),a.trigger(new _.L(jg)),_.y(f)}})};pq=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.info(Yb+b),d.classList.add(Bd)):(a.g.info(ib+b),d.classList.remove(Bd)),a.A&&a.A(d,c))};
|
|
268
|
+
Cq=function(a){var b;return _.E(function(c){if(1==c.a)return _.x(c,a.o.destroy(),2);b=document.getElementById(a.w.anchorId);if(!b)return c["return"]();b.classList.remove(yd);b.innerHTML="";_.y(c)})};
|
|
269
|
+
oq=function(a){var b=document.getElementById(a);if(!b)throw Error("Anchor element not found");b.classList.add(yd);return Array.from({length:3}).map(function(){var c=document.createElement(_.sg);c.classList.add(Ad);var d=document.createElement(_.Yd);d.classList.add(zd);d.appendChild(c);b.appendChild(d);return new X(c)})};
|
|
270
|
+
Fq=function(a){_.tl.call(this);var b=this;this.o=_.N.na({Jk:2},a);this.j=[];var c=Dq(a.anchorEl,this.o.Jk+1,this.o.Ij);this.l=new nq(c);this.a=null;this.h=!1;this.f=new Map;this.A=!1;this.w=a.toggleVisible;this.g=new _.K("clpp.interstitial.MultiController");this.l.a.forEach(function(d){return Eq(b,d.player,!1)})};
|
|
271
|
+
Gq=function(a){var b;return _.E(function(c){if(1==c.a)return(b=a.a)?"loaded"===b.state?c.F(2):_.x(c,b.Jd,2):c["return"]();if(4!=c.a)return _.x(c,b.player.play(),4);b.state=_.of;b.uc&&b.uc();_.y(c)})};Hq=function(a,b){a.A=b;var c=a.a&&a.a.player;c&&Eq(a,c,!b)};
|
|
272
|
+
Iq=function(a,b){var c=b.transition;if(c){if(c.tc){var d=c.tc,e=function(){a.g.info("Transition onEnded to (ID: "+d+")");a.play(d)};b.player.on(_.me,e);b.jc.push(function(){b.player.off(_.me,e)})}if(c.lh){var f=function(l){var m=c.lh.find(function(n){return n.cueId===l.detail.id});m&&(a.g.info("Transition onCue to (ID: "+m.itemId+")"),a.play(m.itemId))};b.player.on(_.Rh,f);b.jc.push(function(){b.player.off(_.Rh,f)})}if(c.rh){var g=c.rh,h=function(){b.player.getPosition()>=g.position&&(a.g.info("Transition onPosition to (ID: "+
|
|
273
|
+
g.itemId+")"),a.play(g.itemId))};b.player.on(_.eg,h);b.jc.push(function(){b.player.off(_.eg,h)})}}};Lq=function(a){a.a&&(a.a.jc.forEach(function(b){return b()}),a.a.jc=[],Iq(a,a.a),Jq(a),Kq(a,a.a.next))};Jq=function(a){return Promise.all(Array.from(a.f.keys()).map(function(b){return Mq(a,b)}))};
|
|
274
|
+
Mq=function(a,b){var c;return _.E(function(d){if(1==d.a){c=a.f.get(b);if(!c)return d.F(0);a.g.info("Stop preloading item (ID: "+b+")");return c.player?_.x(d,a.l.release(c.player),3):d.F(3)}a.f["delete"](b);_.y(d)})};Oq=function(a,b){var c;return _.E(function(d){if(1==d.a)return a.g.info("Stop current playback (ID: "+b.id+")"),b.jc.forEach(function(e){return e()}),b.jc=[],c=b.player,b.player=null,b.videoEl=null,b.role=Nq,c.pause(),_.x(d,a.l.release(c),2);Eq(a,c,!1);_.y(d)})};
|
|
275
|
+
Qq=function(a,b){return _.E(function(c){if(1==c.a)return _.x(c,Pq(a,b),2);if(3!=c.a)return b.config.autoplay?c.F(3):_.x(c,b.player.play(),3);b.state=_.of;_.y(c)})};Pq=function(a,b){var c,d;return _.E(function(e){if(1==e.a)return _.x(e,a.l.get(),2);if(3!=e.a)return c=e.f,a.a=b,b.role=Rq,a.a.player=c,a.a.videoEl=c.getSurface().getMedia(),Eq(a,c,!0),b.primary&&a.trigger(new _.L(Af,{detail:{player:c}})),b.state="loading",d=b,_.x(e,c.load(b.config),3);d.Jd=e.f;b.state="loaded";_.y(e)})};
|
|
276
|
+
Sq=function(a,b){return _.E(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==zf){c.F(2);break}a.g.info(nc);_.A(c,3);return _.x(c,b.preloadPromise,5);case 5:_.ah(c,2);break;case 3:_.C(c);case 2:a.a=b;b.role=Rq;Eq(a,b.player,!0);b.state="loading";if(b.state===yf)return _.x(c,b.player.play(),7);if(b.state!==xf){c.F(7);break}return _.x(c,b.player.load(b.config),7);case 7:if(b.config.autoplay){c.F(11);break}return _.x(c,b.player.play(),11);case 11:b.state=_.of,_.y(c)}})};
|
|
277
|
+
Kq=function(a,b){var c;_.E(function(d){if(0===b.length)return d["return"]();a.g.info("Preload items (IDs: "+b+")");c=a.j.filter(function(e){return b.includes(e.id)})||[];return _.x(d,Promise.all(c.map(function(e){return Tq(a,e)})),0)})};
|
|
278
|
+
Tq=function(a,b){var c,d,e;return _.E(function(f){switch(f.a){case 1:return c=b.id,_.x(f,a.l.get(),2);case 2:return d=f.f,b.player=d,b.videoEl=d.getSurface().getMedia(),b.role=Nq,b.state=zf,a.trigger(new _.L(jg)),_.A(f,3),a.f.set(c,b),b.config.autoplay&&(a.g.warn("Autoplay should not be used for preloaded streams. Force disabling autoplay (ID: "+(c+")")),b.config.autoplay=!1),b.primary&&a.trigger(new _.L(Af,{detail:{player:d}})),b.preloadPromise=d.load(b.config),_.x(f,b.preloadPromise,5);case 5:b.state=
|
|
279
|
+
yf;a.trigger(new _.L(jg));_.ah(f,0);break;case 3:e=_.C(f),7001===e.code?(a.g.info("Preload aborted (ID: "+c+")"),b.state=wf):(a.g.warn("Preload failed (ID: "+c+")",e),a.trigger(new _.L(_.ne,{detail:e})),b.state=xf),a.trigger(new _.L(jg)),_.y(f)}})};
|
|
280
|
+
Eq=function(a,b,c){if(!a.A){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.info(Yb+b),d.classList.add(Bd),d.classList.remove("clpp-hide")):(a.g.info(ib+b),d.classList.remove(Bd),d.classList.add("clpp-hide")),a.w&&a.w(d,c))}};Uq=function(a){var b;return _.E(function(c){if(1==c.a)return _.x(c,a.l.destroy(),2);b=a.o.anchorEl;if(!b)return c["return"]();b.classList.remove(yd);b.innerHTML="";_.y(c)})};
|
|
281
|
+
Dq=function(a,b,c){a.classList.add(yd);return Array.from({length:b}).map(function(){var d=document.createElement(_.sg);d.classList.add(Ad);var e=document.createElement(_.Yd);e.classList.add(zd);e.appendChild(d);a.appendChild(e);return new X(d,c)})};
|
|
282
|
+
Zq=function(a){_.tl.call(this);var b=this;this.f=_.N.na({prerollMarginSec:.5,resolutionOffsetSec:35},a);this.g=new _.K(Fd);this.l=null;this.a=new Fq({Ij:this.f.config,anchorEl:a.anchorEl,preloadMedia:!0});Hq(this.a,!0);this.a.on(ve,function(c){var d=c.detail;d.primary&&(b.l=d.player.getDuration());b.trigger(new _.L(Vq,c));Wq(b);d.primary&&Xq(b,d.player)});this.h=[];this.a.on(Af,function(c){b.trigger(new _.L(Yq,{detail:{player:c.detail.player}}))});this.j=[]};
|
|
283
|
+
ar=function(a,b,c){var d,e,f,g;return _.E(function(h){if(1==h.a){if(!b.source)return a.g.error("Config must be of type cl.api.PlayerConfiguration"),h["return"]();a.a.Wd([{id:Bf,primary:!0,config:_.N.Ma(b),next:[]}]);return _.x(h,a.a.load(Bf),2)}d=a.a.zb();if(!d||!d.he())return a.g.error("Failed to get cue timeline after load"),h["return"]();e=d.he();f=Array.from(e.cues());if(g=$q(a,f,c))return h.F(0);Hq(a.a,!1);return c?h.F(0):_.x(h,Gq(a.a),0)})};
|
|
284
|
+
$q=function(a,b,c){function d(g){return g.startTime<a.f.prerollMarginSec}var e=b.filter(function(g){return g.schemeIdUri===Nd&&g.Wa});a.g.info("Interstitial cues found",e);if(!br(a,e))return!1;b=e.find(d);var f=e.filter(function(g){return g.startTime<a.f.resolutionOffsetSec&&!d(g)});e=e.filter(function(g){return!(g.startTime<a.f.resolutionOffsetSec)});b&&cr(a,b,c);0<f.length&&f.forEach(function(g){return dr(a,g)});e.forEach(function(g){return er(a,g)});a.trigger(new _.L(fr,{detail:a.yd()}));return!!b};
|
|
285
|
+
er=function(a,b){var c=b.Wa[uc];c={cueId:b.id,startTime:b.startTime,endTime:b.endTime,state:gr,Zf:b.Wa[rc],$f:b.Wa[sc],Ea:null,resumePosition:null==c?b.endTime:b.startTime+c,playoutLimit:b.Wa[tc]};a.j.push(c);return c};
|
|
286
|
+
cr=function(a,b,c){var d,e,f;_.E(function(g){if(1==g.a)return d=er(a,b),_.x(g,hr(a,d),2);e=g.f;f=d.Ea?d.Ea.length:0;if(e&&0<f)return ir(a,d,c),g.F(0);e?a.g.warn("Preroll interstitial has no assets, skipping"):a.g.error("Preroll interstitial failed, skipping");Hq(a.a,!1);return c?g.F(0):_.x(g,Gq(a.a),0)})};
|
|
287
|
+
dr=function(a,b){var c,d,e,f;return _.E(function(g){if(1==g.a)return c=er(a,b),a.g.info(jb+c.cueId+ba+(c.startTime+" s")),_.x(g,hr(a,c),2);if(d=g.f){e=a.a.getCurrentItem();if(!e)return a.g.error("Cannot schedule interstitial "+(c.cueId+", no primary content not found in playlist")),g["return"]();if(!e.player)return g["return"]();f=e.player;e.state===_.of?jr(a,c,f):e.uc=function(){jr(a,c,f)}}_.y(g)})};Wq=function(a){a.h.forEach(function(b){return b()});a.h=[]};
|
|
288
|
+
Xq=function(a,b){function c(){a.trigger(new _.L(kr))}function d(){var e,f,g;return _.E(function(h){if(1==h.a){e=b.getPosition();f=lr(a,e);if(!f)return h.F(0);a.g.info(jb+f.cueId+ba+(f.startTime+" s"));return _.x(h,hr(a,f),3)}(g=h.f)&&jr(a,f,b);_.y(h)})}b.addEventListener(_.eg,d);a.h.push(function(){b.removeEventListener(_.eg,d)});b.on(_.me,c);a.h.push(function(){b.off(_.me,c)})};
|
|
289
|
+
br=function(a,b){for(var c=b.sort(function(m,n){return m.startTime-n.startTime}),d=a.f.resolutionOffsetSec,e=[],f=0;f<c.length-1;f++){var g=c[f],h=c[f+1];h&&h.startTime-g.endTime<d&&e.push(lb+g.id+" and "+h.id+" are too close to each other (less than "+(d+" s)."));h&&h.startTime<=g.endTime&&e.push(lb+g.id+" and "+h.id+" overlap.")}var l=[];b.forEach(function(m){var n=m.Wa[sc],p=m.Wa[tc];m.Wa[rc]||n?null!=p&&1>p&&a.g.warn(kb+m.id+" is invalid X-PLAYOUT-LIMIT is less than 1 s.",m):l.push(kb+m.id+" is invalid it contains neither X-ASSET-LIST nor X-ASSET-URI.")});
|
|
290
|
+
0<l.length?a.g.error("Invalid interstitials, all interstitials will be skipped. "+l.join(" ")):0<e.length&&a.g.warn("Unsupported format of interstitials, playback may not behave correctly. "+e.join(" "));return 0===l.length};lr=function(a,b){return a.j.find(function(c){var d=c.startTime-b;return c.state===gr&&0<d&&d<=a.f.resolutionOffsetSec})||null};
|
|
291
|
+
hr=function(a,b){var c,d,e;return _.E(function(f){switch(f.a){case 1:b.state=mr;c={id:b.cueId,startTime:b.startTime,endTime:b.endTime,resumePosition:b.resumePosition,itemCount:-1,playoutLimit:b.playoutLimit};a.trigger(new _.L(nr,{detail:c}));if(!b.Zf){b.$f?(b.Ea=[{URI:b.$f,DURATION:b.endTime-b.startTime}],b.state=or):b.state=pr;f.F(2);break}_.A(f,3,4);a.g.info("Load X-ASSET-LIST for "+b.cueId);a.trigger(new _.L(qr,{detail:c}));d=b;return _.x(f,rr(a,b.Zf),6);case 6:d.Ea=f.f,b.state=or,c.itemCount=
|
|
292
|
+
b.Ea.length;case 4:_.bh(f);a.trigger(new _.L(sr,{detail:c}));_.ch(f,2);break;case 3:e=_.C(f);a.g.error("Failed to load X-ASSET-LIST",e);b.state=pr;f.F(4);break;case 2:return f["return"](b.state===or)}})};ir=function(a,b,c){var d,e;_.E(function(f){if(1==f.a){d=a.a.getCurrentItem();if(!d)return f["return"]();e=tr(a,b,"preroll");a.a.Wd(e);ur(a,d,b,e,!0);Lq(a.a);b.state=or;return c?_.x(f,a.a.load(e[0].id),3):_.x(f,a.a.play(e[0].id),3)}Hq(a.a,!1);_.y(f)})};
|
|
293
|
+
jr=function(a,b,c){if(b.Ea)if(0===b.Ea.length){var d=function(){c.seek(b.resumePosition)};c.on(_.Rh,d);a.h.push(function(){c.off(_.Rh,d)});a.g.info(jb+b.cueId+" scheduled to be skipped")}else{var e=a.a.getCurrentItem();if(e){var f=tr(a,b);a.a.Wd(f);var g=f[0].id;ur(a,e,b,f,!1);e.next=[g];e.transition={lh:[{cueId:b.cueId,itemId:g}]};Lq(a.a);b.state=or;a.g.info(jb+b.cueId+" scheduled for "+(b.startTime+" s"));a.trigger(new _.L(vr,{detail:{id:b.cueId,startTime:b.startTime,endTime:b.endTime,resumePosition:b.resumePosition,
|
|
294
294
|
itemCount:f.length,playoutLimit:b.playoutLimit}}))}}};
|
|
295
|
-
|
|
296
|
-
if(null!=b.playoutLimit){var f=b.playoutLimit;a.g.info("Playout limit for "+b.cueId+" is "+(f+" s"));e=e.filter(function(l){return l.
|
|
297
|
-
{detail:{id:b.cueId,startTime:b.startTime,endTime:b.endTime,resumePosition:b.resumePosition,itemCount:e.length,playoutLimit:b.playoutLimit}}));a.trigger(new _.L(
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
(d.audioCapabilities.push(l),g=!0));if(e.videoCapabilities)for(e=_.u(e.videoCapabilities),l=e.next();!l.done;l=e.next())h=l.value,h.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,h.contentType.split(";")[0])&&(d.videoCapabilities.push(h),g=!0));f||(g=WebKitMediaKeys.isTypeSupported(this.keySystem,_.
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
c=_.R.
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
this.a)&&(h.push(m),e=!0));l||(e=b.canPlayType(_.
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
a.f=null}})).aa(.01)}return a.f};
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
_.R.empty(this.h)?this.g.warn(_.cb):_.R.empty(this.a)?this.g.warn(_.bb):this.
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
_.
|
|
322
|
-
|
|
323
|
-
4E3,{url:a});})};
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
q=_.u(q);for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),t[v[0].toLowerCase()]=v.slice(1).join(": ");try{var z=
|
|
327
|
-
_.u(q.trim().split("\r\n"));for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),t[v[0].toLowerCase()]=v.slice(1).join(": ")}p=_.
|
|
328
|
-
request:a,abort:function(){c.abort();h.reject(new _.P(1,1,7001,{url:b,request:a}));return Promise.resolve()}}};
|
|
329
|
-
|
|
330
|
-
l=h.end-e.start;e={start:e.start,end:h.end,length:l,data:new DataView(a.j.a.buffer,e.start,l),count:f.length}}(f=c(!1,e))&&(g=f)}}return g.then(function(){return
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
return e.plugin(e.request)});var b=0,c=0,d=0;return a.h.then(function(e){var f=e.request;f.currentAttempt+=1;b=f.currentAttempt;c=f.maxAttempts;d=f.uris.length;return e.O}).then(function(e){a.w.resolve(e)})["catch"](function(e){if(e instanceof _.P){var f=b<d,g=7001!==e.code,h=b<c;if((1===e.severity||f)&&g&&h)return
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
b.onFragment(M):null},_.x(I,
|
|
340
|
-
M){F[M.trim()]=O});if(d.
|
|
341
|
-
_.
|
|
342
|
-
_
|
|
343
|
-
_.
|
|
344
|
-
_.
|
|
345
|
-
_.
|
|
346
|
-
if(typeof Object.setPrototypeOf==_.
|
|
347
|
-
var
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
g[h];g[h]=null;try{l()}catch(m){this.j(m)}}}this.a=null};c.prototype.j=function(g){this.h(function(){throw g;})};b.prototype.j=function(){function g(m){return function(n){l||(l=!0,m.call(h,n))}}var h=this,l=!1;return{resolve:g(this.D),reject:g(this.h)}};b.prototype.D=function(g){if(g===this)this.h(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.G(g);else{a:switch(typeof g){case _.
|
|
351
|
-
b.prototype.B=function(g){var h=void 0;try{h=g.then}catch(l){this.h(l);return}typeof h==_.
|
|
352
|
-
g.Yd(h.resolve,h.reject)};b.prototype.H=function(g,h){var l=this.j();try{g.call(h,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,h){function l(q,t){return typeof q==_.
|
|
353
|
-
m.f);}}var m=this;null==this.a?f.f(l):this.a.push(l)};b.resolve=d;b.reject=function(g){return new b(function(h,l){l(g)})};b.race=function(g){return new b(function(h,l){for(var m=_.u(g),n=m.next();!n.done;n=m.next())d(n.value).Yd(h,l)})};b.all=function(g){var h=_.u(g),l=h.next();return l.done?d([]):new b(function(m,n){function p(v){return function(z){q[v]=z;t--;0==t&&m(q)}}var q=[],t=0;do q.push(void 0),t++,d(l.value).Yd(p(q.length-1),n),l=h.next();while(!l.done)})};return b});var
|
|
354
|
-
|
|
355
|
-
_.N.
|
|
356
|
-
_.N.pb=function(a){return typeof a===_.
|
|
295
|
+
tr=function(a,b,c){c=void 0===c?"":c;var d=0,e=b.Ea.map(function(l,m){var n=b.cueId+"-"+m,p=m===b.Ea.length-1?Bf:b.cueId+"-"+(m+1);d+=l.DURATION;n={id:n,config:{source:{url:l.URI,type:_.dl}},next:[p],transition:{tc:p},duration:l.DURATION,yg:d,en:b.cueId};return a.f.interstitialAssetConverter?a.f.interstitialAssetConverter(n):n});e.forEach(function(l,m){l.uc=function(){a.g.info(Lb+l.id,l);a.trigger(new _.L(wr,{detail:{id:l.id,podId:b.cueId,uri:l.config.source.url,duration:l.duration,podOrder:m+1,podCount:b.Ea.length}}))}});
|
|
296
|
+
if(null!=b.playoutLimit){var f=b.playoutLimit;a.g.info("Playout limit for "+b.cueId+" is "+(f+" s"));e=e.filter(function(l){return l.yg-l.duration<=f});var g=e[e.length-1],h=Math.abs(g.yg-f);1>h?g.transition.tc=Bf:(g.transition.tc=void 0,g.transition.rh={position:g.duration-h,itemId:Bf});g.next=[Bf]}e[0].uc=function(){a.g.info("Playing interstitial "+c+" "+b.cueId+" with "+(b.Ea.length+" assets and will resume primary content at ")+(b.resumePosition+" s."),e);a.g.info(Lb+e[0].id,e[0]);a.trigger(new _.L(xr,
|
|
297
|
+
{detail:{id:b.cueId,startTime:b.startTime,endTime:b.endTime,resumePosition:b.resumePosition,itemCount:e.length,playoutLimit:b.playoutLimit}}));a.trigger(new _.L(wr,{detail:{id:e[0].id,podId:b.cueId,uri:b.Ea[0].URI,duration:b.Ea[0].DURATION,podOrder:1,podCount:b.Ea.length}}))};return e};
|
|
298
|
+
ur=function(a,b,c,d,e){b.uc=function(){a.g.info("Resuming primary content at "+(b.config.startTime+" s."));a.trigger(new _.L(yr,{detail:{id:c.cueId}}));c.state=zr;a.a.removeItems(d.map(function(f){return f.id}));b.next=[];e&&a.trigger(new _.L(Ar))};b.config.startTime=c.resumePosition};
|
|
299
|
+
rr=function(a,b){var c,d,e,f,g,h;return _.E(function(l){if(1==l.a){c=a.a.zb();if(!c)throw Error("No player found");d=c.getNetworkEngine();e=_.rj(b);return _.x(l,Kj(d,e),2)}f=l.f;g=Br(f);if(!g)throw new ki("Invalid X-ASSET-LIST list response");h=f;return l["return"](Promise.resolve(h.ASSETS))})};Br=function(a){return a&&a.ASSETS&&Array.isArray(a.ASSETS)?a.ASSETS.every(function(b){return typeof b.URI===_.Wf&&typeof b.DURATION===_.k}):!1};Cr=function(){};Dr=function(){};Er=function(){};Fr=function(){};
|
|
300
|
+
np=function(){};Gr=function(){};_.Hr=function(){};Ir=function(){this.a=null;this.g=new _.K("clpp.drm.eme.StandardEmeManager")};Jr=function(){};Kr=function(){this.size=0;this.a=void 0;this.g=new _.K("clpp.drm.eme.MediaKeyStatusMap")};Lr=function(a,b){a.size=void 0===b?0:1;a.g.debug("Setting key status to",b);a.a=b};Mr=function(){};Nr=function(){};Or=function(){this.a=this.f=null};
|
|
301
|
+
Pr=function(a,b){this.keySystem=a;if(a.startsWith(_.Md))for(var c=_.u(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.If)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.$e,distinctiveIdentifier:_.$e,initDataTypes:e.initDataTypes,sessionTypes:[ag],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var h=_.u(e.audioCapabilities),l=h.next();!l.done;l=h.next())l=l.value,l.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&
|
|
302
|
+
(d.audioCapabilities.push(l),g=!0));if(e.videoCapabilities)for(e=_.u(e.videoCapabilities),l=e.next();!l.done;l=e.next())h=l.value,h.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,h.contentType.split(";")[0])&&(d.videoCapabilities.push(h),g=!0));f||(g=WebKitMediaKeys.isTypeSupported(this.keySystem,_.ug));d=g?d:null}if(d){this.a=d;return}}c=Error(hc);c.name=Fb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
|
|
303
|
+
Qr=function(a){this.f=null;this.h=new WebKitMediaKeys(a);this.a=new _.Eh;this.j=0;this.g=new _.K(Ed);this.g.info("Created Media Keys for "+a)};
|
|
304
|
+
Rr=function(a,b){a.f=b;_.Hh(a.a);if(!b)return Promise.resolve();a.a.on(b,ke,function(c){_.th("AppleEmeManager.cancelNativeMediaEncryptedEvent_",c);"MediaEncryptedEvent"in window&&c instanceof MediaEncryptedEvent&&(a.g.info("Cancel native MediaEncryptedEvent when using Apple-prefixed EME"),c.stopImmediatePropagation())});a.a.on(b,Gg,function(c){a.g.debug("Handle webkitNeedKey event");c=_.Ui(c.initData);if(_.aj(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");
|
|
305
|
+
c=_.R.mc(c.subarray(4),!0);c=_.R.Va(c);var d=new Event(ke);d.initDataType="skd";d.initData=bj(c);a.f.dispatchEvent(d)});Fo(b,HTMLMediaElement.HAVE_METADATA,a.a,function(){return b.webkitSetMediaKeys(a.h)});return Promise.resolve()};Sr=function(a,b){_.tl.call(this);this.a=null;this.o=a;this.f=this.h=null;this.j=new _.Eh;this.sessionId=b;this.expiration=NaN;this.closed=new _.wj;this.l=!1;this.keyStatuses=new Kr;this.g=new _.K(Ed)};Tr=function(a,b){Lr(a.keyStatuses,b);a.dispatchEvent(new _.L(we))};
|
|
306
|
+
Ur=function(){};Vr=function(){this.f=this.a=null;this.h="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.h="webkit")};
|
|
307
|
+
Wr=function(a,b,c,d){this.h=a;this.a=this.keySystem=c;a=!1;c===_.af&&(this.a=Cg,a=!1);var e=!1;d=_.u(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=[],h=[],l=!1;if(f.audioCapabilities)for(var m=_.u(f.audioCapabilities),n=m.next();!n.done;n=m.next())n=n.value,n.contentType&&(l=!0,b.canPlayType(n.contentType.split(";")[0],this.a)&&(g.push(n),e=!0));if(f.videoCapabilities)for(g=_.u(f.videoCapabilities),n=g.next();!n.done;n=g.next())m=n.value,m.contentType&&(l=!0,b.canPlayType(m.contentType,
|
|
308
|
+
this.a)&&(h.push(m),e=!0));l||(e=b.canPlayType(_.ug,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.If||a||(e=!1);if(e){this.f=f;return}}b=hc;if(c===_.af||c===_.Rd)b="None of the requested configurations were supported.";c=Error(b);c.name=Fb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};Xr=function(a,b){this.h=a;this.o=b;this.a=null;this.f=new _.Eh;this.j=[];this.l=new Map};
|
|
309
|
+
$r=function(a,b){a.a=b;_.Hh(a.f);b&&(a.f.on(b,a.h+"needkey",function(c){var d=new Event(ke);d.initDataType=_.rd;d.initData=bj(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.h+"keymessage",function(c){var d=Yr(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.L(_.Ke,{messageType:e?Ae:ze,message:c.message});_.th("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.uh("Session not found",c.sessionId)}),a.f.on(b,a.h+"keyadded",function(c){(c=
|
|
310
|
+
Yr(a,c.sessionId))&&c.ready()}),a.f.on(b,a.h+"keyerror",function(c){var d=Yr(a,c.sessionId);if(d){var e=Error("EME v0.1b key error"),f=c.errorCode;f.systemCode=c.systemCode;e.errorCode=f;!c.sessionId&&d.f?(45===c.systemCode&&(e.message="Unsupported session type."),d.f.reject(e),d.f=null):c.sessionId&&d.a?(d.a.reject(e),d.a=null):(e=c.systemCode,c.errorCode.code===MediaKeyError.MEDIA_KEYERR_OUTPUT?Zr(d,_.bf):1===e?Zr(d,"expired"):Zr(d,_.ue))}}))};
|
|
311
|
+
Yr=function(a,b){var c=a.l.get(b);return c?c:(c=a.j.shift())?(c.sessionId=b,a.l.set(b,c),c):null};as=function(a,b,c,d){_.tl.call(this);this.w=a;this.j=b;this.o=!1;this.a=this.f=null;this.h=c;this.l=d;this.sessionId="";this.expiration=NaN;this.closed=new _.wj;this.keyStatuses=new Kr};
|
|
312
|
+
cs=function(a,b,c){if(a.o)return Promise.reject(Error("The session is already initialized."));a.o=!0;try{if(a.l===_.ef)if(c)var d=_.Ui(_.R.Va("LOAD_SESSION|"+c));else{var e=_.R.Va("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.Ui(b),e.byteLength);d=f}else d=_.Ui(b)}catch(h){return Promise.reject(h)}a.f=new _.wj;var g=bs(a,"generateKeyRequest");try{a.j[g](a.h,d)}catch(h){if(h.name!==ob)return a.f=null,Promise.reject(h);(new _.uk(function(){try{a.j[g](a.h,d)}catch(l){a.f.reject(l),
|
|
313
|
+
a.f=null}})).aa(.01)}return a.f};ds=function(a,b,c){if(a.a)a.a.then(function(){return ds(a,b,c)})["catch"](function(){return ds(a,b,c)});else{a.a=b;if(a.h===Cg){var d=_.R.Z(c);var e=JSON.parse(d);"oct"!==e.keys[0].kty&&(a.a.reject(Error("Response is not a valid JSON Web Key Set.")),a.a=null);d=_.fj(e.keys[0].k);e=_.fj(e.keys[0].kid)}else d=_.Ui(c),e=null;var f=bs(a,"addKey");try{a.j[f](a.h,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};Zr=function(a,b){Lr(a.keyStatuses,b);a.dispatchEvent(new _.L(we))};
|
|
314
|
+
bs=function(a,b){return a.w?a.w+b.charAt(0).toUpperCase()+b.slice(1):b};es=function(){};
|
|
315
|
+
fs=function(a,b,c,d,e){_.$l.call(this,hb);this.l=a;this.j=b;this.h=c;this.a=d;this.o=e;this.g=new _.K(Dd);_.R.empty(this.l)?this.g.warn(_.pc):this.Ta(_.Rd,{licenseUrl:this.l,videoRobustness:[_.Vb,void 0],audioRobustness:[_.Ub,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.Ld.bind(this)}});_.R.empty(this.j)?this.g.warn(_.Gb):this.Ta(_.Pd,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.Ld.bind(this)}});
|
|
316
|
+
_.R.empty(this.h)?this.g.warn(_.cb):_.R.empty(this.a)?this.g.warn(_.bb):this.Ta(_.Md,{licenseUrl:this.h,certificateUrl:this.a,modifiers:{licenseRequest:this.nh.bind(this),licenseResponse:this.oh.bind(this),certificateRequest:this.Ld.bind(this),extractContentId:this.Dg.bind(this)}})};gs=function(){};hs=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.pe)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
|
|
317
|
+
is=function(a){a=a.target;if(a.webkitPresentationMode===ff){document.pictureInPictureElement=a;var b=new Event("enterpictureinpicture");a.dispatchEvent(b)}else document.pictureInPictureElement===a&&(document.pictureInPictureElement=null),b=new Event("leavepictureinpicture"),a.dispatchEvent(b)};js=function(){return this.webkitSupportsPresentationMode(ff)?(this.webkitSetPresentationMode(ff),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
|
|
318
|
+
ks=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};ls=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};ms=function(a,b,c){return new window.TextTrackCue(a,b,c)};
|
|
319
|
+
ns=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};ps=function(a,b,c){if("input"===a)switch(this.type){case "range":a=ud}os.call(this,a,b,c)};rs=function(){this.a=qs()};ss=function(a){return qs()-a.a};ts=function(a){var b=new rs;b.a=a.a;return b};qs=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};_.us=function(a){var b=[];a=_.u(a);for(var c=a.next();!c.done;c=a.next()){c=_.u(c.value.variants);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};
|
|
320
|
+
vs=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.h=b;this.f=0};ws=function(a,b){var c=a.f+b.byteLength;if(c>a.a.byteLength){var d=a.a;a.a=new Uint8Array(Math.max(Math.ceil(a.a.buffer.byteLength*a.h),c));a.a.set(d)}a.a.set(b,a.f);a.f+=b.byteLength};_.xs=function(a,b,c){this.h=a;this.j=b;this.f=c||this.h.getMedia();this.a=null};_.zs=function(){this.a=new Blob([ys],{type:_.ug})};
|
|
321
|
+
_.Bs=function(a,b,c,d){var e,f;return _.E(function(g){if(1==g.a)return _.A(g,2),_.x(g,As(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.C(g);f.a(_.Q);throw f;})};
|
|
322
|
+
As=function(a,b,c,d){var e,f,g,h;return _.E(function(l){if(1==l.a){if(d){if(e=_.Cs[d.toLowerCase()])return l["return"](e);_.J("Could not determine manifest type using MIME type ",d)}if(f=_.Ds(a)){if(g=_.Es[f])return l["return"](g);_.J("Could not determine manifest type for extension ",f)}else _.J("Could not find extension for ",a);return d?l.F(2):_.x(l,Fs(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(h=_.Cs[d])return l["return"](h);_.J("Could not determine manifest type using MIME type",d)}throw new _.P(_.Q,4,
|
|
323
|
+
4E3,{url:a});})};Fs=function(a,b,c){var d,e,f;return _.E(function(g){if(1==g.a)return d=_.rj(a),pj(d,c),d.type=1,d.method="HEAD",_.x(g,b.fetch(d).O,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.Ds=function(a){a=(new _.qi(a)).Ba.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()};Gs=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.h=new rs};
|
|
324
|
+
Is=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(Hs(a,d),uj(c,d.byteLength,ss(a.h)),a.h.a=qs());return e?(e=a.a.buffer,a.a.byteLength!==a.f&&(e=e.slice(0,a.f)),Promise.resolve(e)):Promise.resolve().then(function(){return Is(a,b,c)})})};Hs=function(a,b){var c=a.f+b.byteLength;if(a.a.byteLength<c){for(var d=a.a.byteLength;d<c;)d*=2;c=new Uint8Array(d);c.set(a.a);a.a=c}a.a.set(b,a.f);a.f+=b.byteLength};
|
|
325
|
+
Gj=function(a){var b=a.uris[a.uriIndex],c=new Js,d=new rs,e=ts(d),f=0,g,h=new _.wj;c.open(a.method,b,!0);c.responseType="arraybuffer";c.timeout=a.timeout;c.withCredentials=a.allowCrossSiteCredentials;var l=!1,m=!1;c.onreadystatechange=function(p){p=p.target;p.readyState>=XMLHttpRequest.LOADING&&0===f&&(g=ss(e));p.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!l&&(p=p.getResponseHeader(ya),tj(a,p),l=!0)};c.onload=function(p){p=p.target;var q=(p.getAllResponseHeaders()||"").trim().split("\r\n"),t={};
|
|
326
|
+
q=_.u(q);for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),t[v[0].toLowerCase()]=v.slice(1).join(": ");try{var z=ss(e);m||uj(a,p.response?p.response.length:0,z);var D=_.sj(t,p.response,p.status,b,p.responseURL,a,z,g);a.rateLimitBps?vj(a.rateLimitBps,ss(e),a.bytesLoaded).then(function(){h.resolve(D)}):h.resolve(D)}catch(G){h.reject(G)}};c.onerror=function(p){p=p.target;if(0>=p.status)h.reject(new _.P(1,1,1002,{url:b,request:a,status:p.status}));else{var q=p.getAllResponseHeaders(),t={};if(q){q=
|
|
327
|
+
_.u(q.trim().split("\r\n"));for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),t[v[0].toLowerCase()]=v.slice(1).join(": ")}p=_.sj(t,p.response,p.status,b,p.responseURL,a,ss(e),g);h.resolve(p)}};c.ontimeout=function(){h.reject(new _.P(1,1,1003,{url:b,request:a}))};c.onprogress=function(p){var q=ss(d);d.a=qs();if(100<q||p.lengthComputable&&p.loaded===p.total)uj(a,p.loaded-f,q),f=p.loaded,m=!0};for(var n in a.headers)c.setRequestHeader(n.toLowerCase(),a.headers[n]);c.send(a.body);return{O:h,
|
|
328
|
+
request:a,abort:function(){c.abort();h.reject(new _.P(1,1,7001,{url:b,request:a}));return Promise.resolve()}}};Ls=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.j=new vs(a);this.length=a;this.A=b;this.f=this.a=this.h=0;this.l=null;this.o=-1;this.w=new rs};
|
|
329
|
+
Os=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,ss(a.w)),a.w.a=qs());if(f)return f=Ms(a),(f=c(!0,f))?f.then(function(){return a.j.a.buffer}):Promise.resolve(a.j.a.buffer);var g=Promise.resolve();if(null!=e){ws(a.j,e);a.a=a.h;a.f=a.j.f;a.l=new DataView(a.j.a.buffer,0,a.j.f);e=Ns(a);for(f=[];e;)f.push(e),e=Ns(a);if(!a.A)f.forEach(function(m){g=g.then(function(){return c(!1,m)})});else if(0<f.length){e=f[0];if(1<f.length){e=f[0];var h=f[f.length-1],
|
|
330
|
+
l=h.end-e.start;e={start:e.start,end:h.end,length:l,data:new DataView(a.j.a.buffer,e.start,l),count:f.length}}(f=c(!1,e))&&(g=f)}}return g.then(function(){return Os(a,b,c,d)})})};Ns=function(a){if(0<=a.o&&a.f<a.o)return null;for(var b=Ps(a);null!==b;){if(b.name===_.Ie){var c={start:a.h,end:b.end,length:b.end-a.h,data:new DataView(a.j.a.buffer,a.h,b.end-a.h),count:1};a.h=b.end;return c}b=Ps(a)}return null};
|
|
331
|
+
Ps=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=Qs(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=Qs(a);d=String.fromCharCode(d>>24&255,d>>16&255,d>>8&255,d&255);switch(c){case 0:c=a.f-b;break;case 1:if(a.a+8>=a.f)return a.a=a.f,null;try{var e=a.l.getUint32(a.a,!1);var f=a.l.getUint32(a.a+4,!1)}catch(g){throw new _.P(_.Q,3,3E3);}if(2097151<e)throw new _.P(_.Q,3,3E3);a.a+=8;c=e*Math.pow(2,32)+f}c=b+c;a.o=c;return a.f>=c?(a.a=c,{name:d,start:b,end:c}):null};
|
|
332
|
+
Qs=function(a){var b=a.l.getUint32(a.a,!1);a.a+=4;return b};Ms=function(a){var b=null;a.h!==a.f&&(b={start:a.h,end:a.f,length:a.f-a.h,data:new DataView(a.j.a.buffer,a.h,a.f-a.h),count:-1});return b};Ss=function(a){_.xj.call(this,new _.wj,function(){return Promise.resolve()});this.B=a;this.h=null;this.w=this.O;this.f=-1;this.j=this.l=this.o=null;Rs(this)};Ts=function(a,b,c){a.o=setTimeout(b,c)};
|
|
333
|
+
Rs=function(a){a.h=a.B.then(function(e){a.j=e.request;e.request.uriIndex=e.request.currentAttempt%e.request.uris.length;if(0<e.request.currentAttempt){-1===a.f&&(a.f=Us(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*Us(e.request.fuzzFactor,.5));a.f*=Us(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,h){a.l=h;Ts(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.P(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
|
|
334
|
+
return e.plugin(e.request)});var b=0,c=0,d=0;return a.h.then(function(e){var f=e.request;f.currentAttempt+=1;b=f.currentAttempt;c=f.maxAttempts;d=f.uris.length;return e.O}).then(function(e){a.w.resolve(e)})["catch"](function(e){if(e instanceof _.P){var f=b<d,g=7001!==e.code,h=b<c;if((1===e.severity||f)&&g&&h)return Rs(a);g&&e.a(_.Q);a.w.reject(e)}else a.w.reject(e)})};Us=function(a,b){return null===a||void 0===a?b:a};_.Ws=function(a){this.a=!1;this.h=a;this.j=Vs(this);this.h.hd(this.j);this.f=null};
|
|
335
|
+
Vs=function(a){return function(b){if(a.a&&(b=b.headers["cmsd-dynamic"])){try{var c=new Map,d=b.split(";");for(b=0;b<d.length;b++){var e=Xs(d[b]),f=e.key,g=e.value;Object.values(Ys).includes(f)&&c.set(f,g)}var h=c}catch(l){Zs.error("CmsdManager parseCmsdDynamicHeader_ failed:",l),h=null}a.f=h}}};
|
|
336
|
+
Xs=function(a){var b=a.split("\x3d"),c=b[0];b=b[1];if(!c)throw new ki("Parsing CMSD, missing parameter or wrong format");if(c&&!b)return{key:c,value:!0};var d=b[0];if('"'===d&&'"'===b[b.length-1])return{key:c,value:b.replaceAll(/(^")|("$)/g,"")};if(/^[-0-9]/.test(d))return{key:c,value:parseInt(b,10)};if(/^[a-zA-Z*]/.test(d))return{key:c,value:b};throw new ki("Parsing CMSD, not recognized value type of "+a);};
|
|
337
|
+
Hj=function(a){var b=new $s,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new at,e={md:!1,Qh:!1};b={O:bt(a.uris[a.uriIndex],a,{body:a.body||void 0,headers:b,method:a.method,signal:d.signal,credentials:a.allowCrossSiteCredentials?"include":void 0},e),request:a,abort:function(){e.md||(e.md=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.Qh=!0;d.abort()},a);b.O=b.O["finally"](function(){window.clearTimeout(f)})}return b};
|
|
338
|
+
bt=function(a,b,c,d){var e,f,g,h,l,m,n,p,q,t,v,z,D,G,F,B;return _.E(function(I){switch(I.a){case 1:return e=ct,l=new rs,m=ts(l),_.A(I,2),_.x(I,e(a,c),4);case 4:f=I.f;h=ss(l);n=f.headers.get(ya);tj(b,n);p=n?parseInt(n,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return v=f.body.getReader(),z=new Ls(p,!b.disableMergedFragments),D=function(O,M){if(d.md)return null;M&&M.data&&(uj(b,M.data.byteLength,ss(l)),l.a=qs());return b.onFragment&&M?b.rateLimitBps?vj(b.rateLimitBps,ss(m),b.bytesLoaded).then(function(){return b.onFragment(M)}):
|
|
339
|
+
b.onFragment(M):null},_.x(I,Os(z,v,D,b.onProgress),10);q=f.body.getReader();t=new Gs(p);return _.x(I,Is(t,q,b),7);case 7:g=I.f;if(!b.rateLimitBps){I.F(6);break}return _.x(I,vj(b.rateLimitBps,ss(m),g.byteLength),6);case 10:g=I.f;case 6:_.ah(I,3);break;case 2:G=_.C(I);if(d.md)throw new _.P(1,1,7001,{url:a,request:b});if(d.Qh)throw new _.P(1,1,1003,{url:a,request:b});_.uh("Error while fetching data:",G);throw new _.P(1,1,1002,{url:a,error:G,request:b,status:-1},G);case 3:F={};B=f.headers;B.forEach(function(O,
|
|
340
|
+
M){F[M.trim()]=O});if(d.md)throw new _.P(1,1,7001,{url:a,request:b});return I["return"](_.sj(F,g,f.status,a,f.url,b,ss(m),h))}})};Cj=function(a){try{var b=a.uris[a.uriIndex],c=_.dt(b);return{O:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{O:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
|
|
341
|
+
_.dt=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.uh("Bad data URI, failed to parse scheme"),new _.P(_.Q,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.uh("Bad data URI, failed to extract encoding and MIME type"),new _.P(_.Q,1,1004,{uri:a});var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"===b[b.length-1]&&(d=!0,b.pop());return{data:d?_.fj(a).buffer:_.R.Va(a).buffer,contentType:c}};
|
|
342
|
+
_.ft=function(a){delete _.et[a]};
|
|
343
|
+
_.gt=function(a){a=a.getConfiguration();a=_.N.Ma(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.Wf?a.backgroundColor:null;this.V=typeof a.windowColor===_.Wf?a.windowColor:null;this.P=typeof a.fontColor===_.Wf?a.fontColor:null;this.T=typeof a.fontFamily===_.Wf?a.fontFamily:null;this.I=typeof a.fontSize===_.Wf?a.fontSize:null;this.B=typeof a.fontSizePercent===_.k?a.fontSizePercent:null;this.H=typeof a.edgeColor===_.Wf?a.edgeColor:"rgba(0, 0, 0, 1)";this.o=null;typeof a.edgeType===
|
|
344
|
+
_.Wf&&(this.o=a.edgeType)};_.lt=function(a){if(!a.o)return null;var b=a.H;switch(a.o){case ht:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case it:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case jt:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case kt:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.Se}};mt=function(a){this.f=a;this.a=null;this.g=new _.K("clpp.text.Mp4TextParser")};
|
|
345
|
+
_.ot=function(a){_.gt.call(this,a);this.l=a.getSurface().getMedia();this.f="clpp-video-"+nt++;this.h=document.createElement(_.Yf);this.j=this.w=!1;_.qp(this.l,this.f);document.head.appendChild(this.h);this.ub()};pt=function(){};_.qt=function(){};_.Lg=[];Pg=typeof Object.create==_.pe?Object.create:function(a){function b(){}b.prototype=a;return new b};
|
|
346
|
+
if(typeof Object.setPrototypeOf==_.pe)rt=Object.setPrototypeOf;else{var st;a:{var Ct={bi:!0},Kt={};try{Kt.__proto__=Ct;st=Kt.bi;break a}catch(a){}st=!1}rt=st?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
|
|
347
|
+
var Qg=rt,Ug=typeof Object.defineProperties==_.pe?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},Sg="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;Vg.prototype.toString=function(){return this.a};var Tg=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new Vg("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
|
|
348
|
+
Yg.prototype.A=function(a){this.f=a};Yg.prototype["return"]=function(a){this.h={"return":a};this.a=this.l};Yg.prototype.F=function(a){this.a=a};
|
|
349
|
+
jh("Promise",function(a){function b(g){this.f=0;this.l=void 0;this.a=[];var h=this.j();try{g(h.resolve,h.reject)}catch(l){h.reject(l)}}function c(){this.a=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.f=function(g){if(null==this.a){this.a=[];var h=this;this.h(function(){h.l()})}this.a.push(g)};var e=Sg.setTimeout;c.prototype.h=function(g){e(g,0)};c.prototype.l=function(){for(;this.a&&this.a.length;){var g=this.a;this.a=[];for(var h=0;h<g.length;++h){var l=
|
|
350
|
+
g[h];g[h]=null;try{l()}catch(m){this.j(m)}}}this.a=null};c.prototype.j=function(g){this.h(function(){throw g;})};b.prototype.j=function(){function g(m){return function(n){l||(l=!0,m.call(h,n))}}var h=this,l=!1;return{resolve:g(this.D),reject:g(this.h)}};b.prototype.D=function(g){if(g===this)this.h(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.G(g);else{a:switch(typeof g){case _.Te:var h=null!=g;break a;case _.pe:h=!0;break a;default:h=!1}h?this.B(g):this.o(g)}};
|
|
351
|
+
b.prototype.B=function(g){var h=void 0;try{h=g.then}catch(l){this.h(l);return}typeof h==_.pe?this.H(h,g):this.o(g)};b.prototype.h=function(g){this.w(2,g)};b.prototype.o=function(g){this.w(1,g)};b.prototype.w=function(g,h){if(0!=this.f)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.f);this.f=g;this.l=h;this.A()};b.prototype.A=function(){if(null!=this.a){for(var g=0;g<this.a.length;++g)f.f(this.a[g]);this.a=null}};var f=new c;b.prototype.G=function(g){var h=this.j();
|
|
352
|
+
g.Yd(h.resolve,h.reject)};b.prototype.H=function(g,h){var l=this.j();try{g.call(h,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,h){function l(q,t){return typeof q==_.pe?function(v){try{m(q(v))}catch(z){n(z)}}:t}var m,n,p=new b(function(q,t){m=q;n=t});this.Yd(l(g,m),l(h,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.Yd=function(g,h){function l(){switch(m.f){case 1:g(m.l);break;case 2:h(m.l);break;default:throw Error("Unexpected state: "+
|
|
353
|
+
m.f);}}var m=this;null==this.a?f.f(l):this.a.push(l)};b.resolve=d;b.reject=function(g){return new b(function(h,l){l(g)})};b.race=function(g){return new b(function(h,l){for(var m=_.u(g),n=m.next();!n.done;n=m.next())d(n.value).Yd(h,l)})};b.all=function(g){var h=_.u(g),l=h.next();return l.done?d([]):new b(function(m,n){function p(v){return function(z){q[v]=z;t--;0==t&&m(q)}}var q=[],t=0;do q.push(void 0),t++,d(l.value).Yd(p(q.length-1),n),l=h.next();while(!l.done)})};return b});var lh=this||self;
|
|
354
|
+
lh.a=!0;_.N={Zh:20,Ma:function(a){var b=_.N.R,c=_.N.bh,d=_.N.na;return b(a)||c(a)?a:d(a)}};_.H("clpp.utils.obj.cloneItem",_.N.Ma);_.N.na=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];c={};for(var d=0;d<b.length;d++)null!=b[d]&&(c=_.N.fh(c,{merging:b[d]},1));return c.merging||null};_.H("clpp.utils.obj.merge",_.N.na);_.N.Bd=function(a){for(var b in a)if(void 0!==a[b])return!0;return!1};
|
|
355
|
+
_.N.fh=function(a,b,c){var d=_.N.R,e=_.N.bh,f=_.N.fh,g=_.N.pb,h=_.N.Bk,l=_.N.ah,m=_.N.xk,n=_.N.Xc;c+=1;if(d(a)||!n(a))a={};for(var p in b)n=b[p],e(n)||d(n)||g(n)||m(n)?a[p]=n:h(n)?a[p]=n.subarray(0):n instanceof Array?a[p]=f([],n,c):!d(n)&&l(n)&&c<_.N.Zh&&(a[p]=f(a[p],n,c));return a};_.N.bh=function(a){a=typeof a;return a===_.Wf||a===_.k||a===_.hd};_.N.xk=function(a){return a instanceof Element};_.N.R=function(a){return null===a||"undefined"===typeof a};_.N.Xc=function(a){return typeof a===_.Te};
|
|
356
|
+
_.N.pb=function(a){return typeof a===_.pe};_.N.$=function(a){return typeof a===_.Wf};_.N.ma=function(a){return typeof a===_.k};_.N.Yg=function(a){return typeof a===_.hd};_.N.ah=function(a){var b=_.N.Xc,c=_.N.R;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.N.Bk=function(a){var b=_.N.Xc,c=_.N.pb;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
|
|
357
357
|
_.N.ra=function(a,b,c,d){if(a===b||null===a&&null===b||void 0===a&&void 0===b)return!0;if(null===a&&null!==b||null!==a&&null===b||void 0!==a&&void 0===b||void 0===a&&void 0!==b||!_.N.Xc(a)||!_.N.Xc(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var h=e[g];if(_.N.R(d)||0>d.indexOf(h))if(f[h]=!0,a[h]!==b[h])return!1}if(_.N.R(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.N.R(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
|
|
358
|
-
_.N.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.N.
|
|
359
|
-
_.H("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.N.$(a)&&(a=
|
|
360
|
-
_.r.log=function(a,b){if(window.console){if(1<arguments.length){var c=arguments[0];Array.prototype.shift.call(arguments)}else c=3;var d=
|
|
361
|
-
1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.u(
|
|
362
|
-
_.r.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.r.
|
|
363
|
-
_.H("clpp.log.debug",_.
|
|
364
|
-
_.r.trigger=function(a){var b=this.a.get(a.type);if(b)for(var c=0;c<b.length&&(a.target=this.f,a.currentTarget=this.f,b[c].cc(a),b[c]
|
|
365
|
-
_.
|
|
366
|
-
_.
|
|
367
|
-
|
|
368
|
-
_.sd;break;case _.
|
|
358
|
+
_.N.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.N.yk=function(a,b,c){return a>=b&&a<=c};_.N.Xf=function(a){for(var b=new Map,c=_.u(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b};_.N.Yf=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};var ph={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.H("clpp.log.Level",ph);var nh=3,mh={},Lt=[];_.H("clpp.log.getLoggers",function(){return _.N.Ma(mh)});_.H("clpp.log.addInterceptor",function(a){a&&Lt.push(a)});_.H("clpp.log.removeInterceptor",function(a){a&&(a=Lt.indexOf(a),0<=a&&Lt.splice(a,1))});_.H("clpp.log.getTagLevel",oh);_.H("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=mh[a]});_.H("clpp.log.setTagLevel",function(a,b){a&&(_.N.$(b)&&(b=qh(b)),mh[a]=b)});
|
|
359
|
+
_.H("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.N.$(a)&&(a=qh(a));nh=a});_.H("clpp.log.getLogLevel",function(){return nh});_.r=_.K.prototype;
|
|
360
|
+
_.r.log=function(a,b){if(window.console){if(1<arguments.length){var c=arguments[0];Array.prototype.shift.call(arguments)}else c=3;var d=oh(this.tag);if(0<=d){if(d<c)return}else if(nh<c)return;this.tag&&Array.prototype.unshift.call(arguments,"["+this.tag+"]");d=new Date;d.toISOString&&(d=d.toISOString().substring(11).replace("Z",""),Array.prototype.unshift.call(arguments,d));4===c?console.log.apply(console,arguments):3===c?console.info.apply(console,arguments):2===c?console.warn.apply(console,arguments):
|
|
361
|
+
1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.u(Lt);for(var e=d.next();!e.done;e=d.next())e=e.value,e.call(e,c,arguments)}};_.r.info=function(a){Array.prototype.unshift.call(arguments,3);this.log.apply(this,arguments)};_.r.debug=function(a){Array.prototype.unshift.call(arguments,4);this.log.apply(this,arguments)};_.r.warn=function(a){Array.prototype.unshift.call(arguments,2);this.log.apply(this,arguments)};
|
|
362
|
+
_.r.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.r.Dj=function(a){return a?this.tag?new _.K(this.tag+"."+a):new _.K(a):this};_.H("clpp.log.Logger",_.K);_.K.prototype.createChild=_.K.prototype.Dj;_.K.prototype.error=_.K.prototype.error;_.K.prototype.warn=_.K.prototype.warn;_.K.prototype.debug=_.K.prototype.debug;_.K.prototype.info=_.K.prototype.info;_.K.prototype.log=_.K.prototype.log;var rh=new _.K("clpp");_.H("clpp.log.info",_.sh);
|
|
363
|
+
_.H("clpp.log.debug",_.th);_.H("clpp.log.warn",_.J);_.H("clpp.log.error",_.uh);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.yh=new _.K("clpp.players");_.xh={};_.Ah.prototype.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.Ah.prototype.get=function(a){return(a=this.a[a])?a.slice():[]};_.Ah.prototype.remove=function(a,b){var c=this.a[a];if(!c)return!1;for(var d=!1,e=0;e<c.length;++e)c[e]==b&&(c.splice(e,1),--e,d=!0);return d};_.Ah.prototype.clear=function(){this.a={}};Bh.prototype.cc=function(a){try{this.Mc.handleEvent?this.Mc.handleEvent(a):this.Mc.call(this.a,a)}catch(b){_.uh("clpp","Uncaught exception in event handler for event '"+this.f+"'",b,b?b.message:null,b?b.stack:null)}};_.L.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};_.L.prototype.stopImmediatePropagation=function(){this.f=!0};_.L.prototype.stopPropagation=function(){};_.r=Dh.prototype;
|
|
364
|
+
_.r.trigger=function(a){var b=this.a.get(a.type);if(b)for(var c=0;c<b.length&&(a.target=this.f,a.currentTarget=this.f,b[c].cc(a),b[c].$l&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.r.on=function(a,b,c){this.a.push(a,new Bh(a,b,c||this.f));return b};_.r.one=function(a,b,c){this.a.push(a,new Bh(a,b,c||this.f,!0));return b};_.r.off=function(a,b){var c=this.a.get(a),d=!1;if(c)for(var e=0;e<c.length;e++)c[e].Mc===b&&(d=this.a.remove(a,c[e])||d);return d};_.r.clear=function(){this.a.clear()};_.Eh.prototype.release=function(){_.Hh(this)};_.Eh.prototype.on=function(a,b,c,d){a=new Ih(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.Eh.prototype.one=function(a,b,c){function d(f){e.off(a,b,d);return c(f)}var e=this;this.on(a,b,d)};_.Eh.prototype.off=function(a,b,c){for(var d=this.a.get(b)||[],e=0;e<d.length;++e){var f=d[e];f.target!=a||c!=f.a&&c||(Gh(f),this.a.remove(b,f))}};Jh.prototype.release=function(){this.f.release();this.h=[];this.a=null};Jh.prototype.destroy=function(){var a=this;return _.E(function(b){a.release();a.l=null;a.j=null;_.y(b)})};Jh.prototype.getTimelineCues=function(){return this.h};_.di.prototype.ra=function(a){return this.payload===a.payload&&this.startTime===a.startTime&&this.endTime===a.endTime&&this.payloadType===a.payloadType};_.H("clpp.text.Cue",_.di);_.di.positionAlign={LEFT:_.Be,RIGHT:_.De,CENTER:_.sd,AUTO:"auto"};_.Yh=_.bg;_.di.payloadType={TEXT:_.Yh,VTT_XML:_.zg,TTML_XML:_.gg};_.Zh=_.sd;_.Mt={LEFT:_.xe,RIGHT:_.Kf,CENTER:_.Zh,START:_.xe,END:_.Kf};_.di.textAlign=_.Mt;var ci="ltr";_.di.direction={HORIZONTAL_LEFT_TO_RIGHT:ci,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.$h="horizontal-tb";
|
|
365
|
+
_.di.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.$h,VERTICAL_LEFT_TO_RIGHT:_.qg,VERTICAL_RIGHT_TO_LEFT:_.rg};_.ai=0;_.di.lineInterpretation={LINE_NUMBER:_.ai,PERCENTAGE:1};_.bi=_.Sf;_.Nt={CENTER:_.sd,START:_.bi,END:_.le};_.di.lineAlign=_.Nt;_.H("clpp.text.CueRegion",_.gi);_.ei=1;_.gi.units={PX:0,PERCENTAGE:_.ei,LINES:2};var fi="";_.gi.scrollMode={NONE:fi,UP:"up"};_.gi.displayAlign={BEFORE:"flex-end",CENTER:_.sd,AFTER:"flex-start"};
|
|
366
|
+
_.gi.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Kd,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};hi.prototype.destroy=function(){this.a.release();this.j=!1;this.l=this.a=this.h=this.f=null;return Promise.resolve()};hi.prototype.start=function(a){var b=this;this.j?this.g.warn("Already started. Ignoring request..."):(this.j=!0,this.h=a,this.f=this.h.textTracks,this.a.on(this.f,_.Lc,function(c){return ii(b,c)}),this.a.on(this.f,ud,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.Nf&&(e.mode=_.re)}}))};
|
|
367
|
+
hi.prototype.o=function(a){var b=new _.di(a.startTime,a.endTime,a.text,_.zg);if(_.N.$(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.qg;break;case "rl":b.writingMode=_.rg}_.N.ma(a.size)&&(b.size=a.size);if(_.N.$(a.align))switch(a.align){case _.xe:case _.Sf:b.textAlign=_.xe;break;case _.sd:b.textAlign=_.Zh;break;case _.Kf:case _.le:b.textAlign=_.Kf}_.N.ma(a.position)&&(b.position=a.position);if(_.N.$(a.positionAlign))switch(a.positionAlign){case _.Be:b.positionAlign=_.Be;break;case _.sd:b.positionAlign=
|
|
368
|
+
_.sd;break;case _.De:b.positionAlign=_.De}_.N.ma(a.line)&&(b.line=a.line);if(_.N.$(a.lineAlign))switch(a.lineAlign){case _.Sf:b.lineAlign=_.bi;break;case _.sd:b.lineAlign=_.sd;break;case _.le:b.lineAlign=_.le}_.N.Yg(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.ai:1);return b};_.w(_.P,Error);_.P.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=ji(this.severity,this.category,this.code,this.data))};_.P.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.H("clpp.Error",_.P);_.Q=2;_.P.Severity={RECOVERABLE:1,FATAL:_.Q};_.P.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
|
|
369
369
|
_.P.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,UNKNOWN_DATA_URI_ENCODING:1005,REQUEST_MODIFIER_ERROR:1006,RESPONSE_MODIFIER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,FETCH_OR_APPEND_ERROR:2010,INVALID_MP4:2011,
|
|
370
|
-
TEXT_PARSER_MISSING:2012,THUMBNAILS_FAILED_TO_LOAD:2013,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,
|
|
370
|
+
TEXT_PARSER_MISSING:2012,THUMBNAILS_FAILED_TO_LOAD:2013,THUMBNAIL_ERROR:2014,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,
|
|
371
371
|
MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,MP4_PARSER_ERROR:3019,MEDIA_LOAD_ERROR:3100,INVALID_TRACK_TYPE:3101,UNKNOWN_TRACK:3102,MEDIA_DECRYPTION_ERROR:3103,PLAY_NOT_ALLOWED:3200,UNABLE_TO_GUESS_MANIFEST_TYPE:4E3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,
|
|
372
372
|
DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,UNPLAYABLE_PERIOD:4011,RESTRICTIONS_CANNOT_BE_MET:4012,NO_PERIODS:4014,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_COULD_NOT_GUESS_MIME_TYPE:4021,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027,
|
|
373
373
|
DASH_XLINK_DEPTH_LIMIT:4028,HLS_COULD_NOT_PARSE_SEGMENT_START_TIME:4030,CONTENT_UNSUPPORTED_BY_BROWSER:4032,SMOOTH_INVALID_MANIFEST_XML:4033,SMOOTH_EMPTY_PRESENTATION:4034,SMOOTH_MEDIA_PROCESSING_ERROR:4035,SMOOTH_INVALID_VERSION:4036,SMOOTH_INVALID_FRAGMENT_METADATA:4037,SMOOTH_REQUIRED_ATTRIBUTE_MISSING:4038,SMOOTH_TRUNCATED_MEDIA_FILE:4039,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4040,HLS_MSE_ENCRYPTED_TS_NOT_SUPPORTED:4041,HLS_PLAYLIST_NOT_UTF8:4042,HLS_PLAYLIST_EMPTY:4043,HLS_INVALID_VALUE:4044,
|
|
374
374
|
HLS_DISCONTINUITY_NOT_SUPPORTED:4045,HLS_UNSUPPORTED_FEATURE:4046,HLS_INCOMPATIBLE_PLAYLIST_UPDATE:4047,INVALID_STREAMS_CHOSEN:5005,NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,
|
|
375
375
|
EXPIRED:6014,REQUESTED_DRM_ENVIRONMENT_UNAVAILABLE:6015,INIT_DATA_TRANSFORM_ERROR:6016,CERTIFICATE_REQUEST_FAILED:6100,NO_CONTENT_ID:6101,SERVER_CERTIFICATE_REQUIRED:6102,EXTRACT_CONTENT_ID_MODIFIER_ERROR:6103,FAILED_TO_PERSIST_SESSION:6200,FAILED_TO_REMOVE_SESSION:6201,INVALID_SESSION_STORAGE_IMPLEMENTATION:6202,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,CANNOT_LOAD_SOURCE:7003,MEDIA_ELEMENT_NOT_FOUND:7004,INVALID_MEDIA_ELEMENT:7005,INVALID_CONTAINER_ELEMENT:7006,INVALID_CONFIGURATION:7100,
|
|
376
376
|
INVALID_LICENSE:7101,NO_ELEMENT:7102,USER_ID_NOT_PROVIDED:7103,KEY_LOAD_ERROR:7104,TIZEN_INTERNAL_ERROR:7200,CAF_INTERNAL_ERROR:7300,INTERNAL_CAST_ERROR:8E3,CAST_API_NOT_READY:8001,NO_RECEIVERS_AVAILABLE:8002,ALREADY_CASTING:8003,NO_CAST_SESSION:8004,CONVIVA_SDK_NOT_LOADED:9E3,CONVIVA_INVALID_CONFIGURATION:9001,CONVIVA_RUNTIME_ERROR:9002,GL_CONTEXT_ERROR:9003,GL_SHADER_ERROR:9004,YOUBORA_SDK_MISSING:9100,YOUBORA_INVALID_CONFIGURATION:9101,YOUBORA_SDK_VERSION_NOT_SUPPORTED:9102,VIMOND_INVALID_CONFIGURATION:9200,
|
|
377
|
-
VIMOND_SESSION_ERROR:9201,MUXDATA_INVALID_CONFIGURATION:9300,MUX_SDK_MISSING:9301,MUXDATA_INIT_ERROR:9302,IMA_SDK_MISSING:1E4,IMA_INVALID_CONFIGURATION:10001,IMA_UNSUPPORTED_PLATFORM:10002,AD_ERROR:10003,SIMID_CONTAINER_MISSING:10100,BROADPEAK_SDK_MISSING:11E3,BROADPEAK_SESSION_ERROR:11001,FREEWHEEL_SDK_MISSING:12E3,FREEWHEEL_INVALID_CONFIGURATION:12001,CONTENT_TRANSFORMATION_FAILED:14E3};_.w(
|
|
378
|
-
_.r.resolve=function(a){var b=new _.
|
|
379
|
-
".."==h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.Ba=d:c=""!==a.a.toString();c?_.
|
|
380
|
-
_.
|
|
381
|
-
_.
|
|
382
|
-
"cs"],["dan","da"],["deu","de"],[_.
|
|
377
|
+
VIMOND_SESSION_ERROR:9201,MUXDATA_INVALID_CONFIGURATION:9300,MUX_SDK_MISSING:9301,MUXDATA_INIT_ERROR:9302,IMA_SDK_MISSING:1E4,IMA_INVALID_CONFIGURATION:10001,IMA_UNSUPPORTED_PLATFORM:10002,AD_ERROR:10003,SIMID_CONTAINER_MISSING:10100,BROADPEAK_SDK_MISSING:11E3,BROADPEAK_SESSION_ERROR:11001,FREEWHEEL_SDK_MISSING:12E3,FREEWHEEL_INVALID_CONFIGURATION:12001,CONTENT_TRANSFORMATION_FAILED:14E3};_.w(ki,Error);var vi=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;_.r=_.qi.prototype;_.r.eb="";_.r.zc="";_.r.Na="";_.r.cd=null;_.r.Ba="";_.r.lc="";_.r.toString=function(){var a=[],b=this.eb;b&&a.push(yi(b,Ot,!0),":");if(b=this.Na){a.push("//");var c=this.zc;c&&a.push(yi(c,Ot,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.cd;null!=b&&a.push(":",String(b))}if(b=this.Ba)this.Na&&"/"!=b.charAt(0)&&a.push("/"),a.push(yi(b,"/"==b.charAt(0)?Pt:Qt,!0));(b=this.a.toString())&&a.push("?",b);(b=this.lc)&&a.push("#",yi(b,Rt));return a.join("")};
|
|
378
|
+
_.r.resolve=function(a){var b=new _.qi(this);"data"===b.eb&&(b=new _.qi);var c=!!a.eb;c?ri(b,a.eb):c=!!a.zc;c?b.zc=a.zc:c=!!a.Na;c?b.Na=a.Na:c=null!=a.cd;var d=a.Ba;if(c)si(b,a.cd);else if(c=!!a.Ba){if("/"!=d.charAt(0))if(this.Na&&!this.Ba)d="/"+d;else{var e=b.Ba.lastIndexOf("/");-1!=e&&(d=b.Ba.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):
|
|
379
|
+
".."==h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.Ba=d:c=""!==a.a.toString();c?_.ti(b,ui(a.a)):c=!!a.lc;c&&(b.lc=a.lc);return b};var Ot=/[#\/\?@]/g,Qt=/[#\?:]/g,Pt=/[#\?]/g,zi=/[#\?@]/g,Rt=/#/g;_.xi.prototype.a=null;_.xi.prototype.h=null;
|
|
380
|
+
_.xi.prototype.add=function(a,b){if(!this.a&&(this.a={},this.h=0,this.f))for(var c=this.f.split("\x26"),d=0;d<c.length;d++){var e=c[d].indexOf("\x3d"),f=null;if(0<=e){var g=c[d].substring(0,e);f=c[d].substring(e+1)}else g=c[d];g=decodeURIComponent(g.replace(/\+/g," "));f=f||"";this.add(g,decodeURIComponent(f.replace(/\+/g," ")))}this.f=null;(c=this.a.hasOwnProperty(a)&&this.a[a])||(this.a[a]=c=[]);c.push(b);null!==this.h&&this.h++;return this};
|
|
381
|
+
_.xi.prototype.toString=function(){if(this.f)return this.f;if(!this.a)return"";var a=[],b;for(b in this.a)for(var c=encodeURIComponent(b),d=this.a[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="\x3d"+encodeURIComponent(d[e]));a.push(f)}return this.f=a.join("\x26")};_.ep={VIDEO:_.sg,AUDIO:_.$c,TEXT:_.bg,Bm:_.Rc,IMAGE:_.te,ai:_.Zf};_.St=1/15;var Ci={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av1$/],text:[/^vtt$/,/^wvtt/,/^stpp/]};_.Fi={text:{mp4:Uc,m4s:Uc,m4i:Uc,cmft:Uc,vtt:_.cg,ttml:_.Xc},video:{mp4:_.ug,m4s:_.ug,m4i:_.ug,m4v:_.ug,cmfv:_.ug,ts:_.tg},audio:{mp4:_.dd,m4s:_.dd,m4i:_.dd,m4a:_.dd,cmfa:_.dd,ts:_.tg,aac:_.ad,ec3:_.cd,ac3:_.bd},image:{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.Hi.prototype.toString=function(){function a(d){return d.name+"\x3d"+(isNaN(Number(d.value))?'"'+d.value+'"':d.value)}var b="#"+this.name,c=this.attributes?this.attributes.map(a):[];this.value&&c.unshift(this.value);0<c.length&&(b+=":"+c.join(","));return b};_.Hi.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name==a});return b.length?b[0]:null};_.Li.prototype.getPosition=function(){return this.position};_.Li.prototype.f=Mg(0);_.w(_.Mi,_.Li);var Pi=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze",
|
|
382
|
+
"cs"],["dan","da"],["deu","de"],[_.Yd,"dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice",
|
|
383
383
|
"is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao",
|
|
384
384
|
"mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san",
|
|
385
385
|
"sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie",
|
|
386
|
-
"vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);var
|
|
386
|
+
"vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);var Vi=function Tt(a){var c;return _.ih(Tt,function(d){1==d.a&&(c=0);if(3!=d.a)return c<a?_.x(d,c,3):d.F(0);c++;return d.F(2)})};_.H("clpp.utils.BufferUtils",Si);Si.toArrayBuffer=bj;Si.toDataView=_.aj;Si.toInt32Array=_.$i;Si.toUint32Array=Zi;Si.toUint16Array=Yi;Si.toUint8Array=_.Ui;Si.equal=Wi;_.R={};_.R.Yc=new _.K("clpp.utils.strings");_.R.Yh=16E3;_.R.fromCharCode=function(a){for(var b=_.R.Yh,c="",d=0;d<a.length;d+=b)c+=String.fromCharCode.apply(null,a.subarray(d,d+b));return c};_.R.Z=function(a){if(!a)return"";a=_.Ui(a);239===a[0]&&187===a[1]&&191===a[2]&&(a=a.subarray(3));if("TextDecoder"in window){a=(new TextDecoder).decode(a);if(a.includes("\ufffd"))throw Error($a);return a}a=escape(_.R.fromCharCode(a));try{return decodeURIComponent(a)}catch(b){throw Error($a);}};
|
|
387
387
|
_.H("clpp.utils.strings.fromUtf8",_.R.Z);
|
|
388
|
-
_.R.
|
|
389
|
-
_.R.
|
|
390
|
-
};_.H("clpp.utils.strings.fromBytesAutoDetect",_.R.
|
|
391
|
-
_.R.fd=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=
|
|
392
|
-
_.H("clpp.utils.strings.endsWith",_.R.endsWith);_.R.
|
|
393
|
-
_.R.
|
|
394
|
-
_.R.
|
|
395
|
-
_.R.
|
|
396
|
-
b))?Number(a.value):c},cn:function(a,b,c){return a.filter(function(d){var e=d.getAttribute(_.bc);d=d.getAttribute(_.db);return e.value==b&&d.value==c})},
|
|
397
|
-
|
|
398
|
-
_.Y.
|
|
399
|
-
!a.value||"YES"!==a.value.toUpperCase());var c=_.
|
|
400
|
-
d=b+1}e=d+a-1}return{va:d,
|
|
401
|
-
"HOLD-BACK"));d.
|
|
402
|
-
var c=Object.assign({},a);null==c.iv&&(c.iv=_.
|
|
403
|
-
c){return b+c},0)},
|
|
404
|
-
[];_.Y.
|
|
405
|
-
b.has(e)||b.set(e,new Map);b.get(e).set(c,d)}return b},
|
|
406
|
-
a.name?!0:_.
|
|
407
|
-
_.
|
|
408
|
-
return _.N.
|
|
409
|
-
null):_.N.
|
|
410
|
-
_.
|
|
411
|
-
_.r.fetch=function(a){var b=this;if(this.o)return new
|
|
412
|
-
d.next())c.push(e.value);a.responseModifiers=c;d=c=new _.
|
|
413
|
-
n.toString());p=b.a[p];if(!p)throw new _.P(_.Q,1,1E3,{url:n.toString()});return{request:m,plugin:p}});var h=new
|
|
414
|
-
if(p)return p.then(function(){return Promise.reject(n)})}return Promise.reject(n)}}(g))["catch"](function(m){if(m instanceof _.P)throw m;throw new _.P(_.Q,1,1007,null,m);});_.
|
|
415
|
-
_.
|
|
416
|
-
_.H("clpp.Rendition",_.
|
|
417
|
-
h.message);case 6:return _.A(n,9),_.x(n,
|
|
418
|
-
_.r.
|
|
419
|
-
_.U.prototype.findVideoRendition=_.U.prototype.
|
|
420
|
-
_.U.prototype.getAudioTrack=_.U.prototype.sa;_.U.prototype.getVideoTrack=_.U.prototype.
|
|
421
|
-
_.U.prototype.getVideoTracks=_.U.prototype.getVideoTracks;_.U.prototype.canSelectVideoTracks=_.U.prototype.
|
|
422
|
-
_.
|
|
423
|
-
var
|
|
388
|
+
_.R.mc=function(a,b,c){if(!a)return"";var d=_.R.Yc;if(!c&&0!==a.byteLength%2)throw d.error("Data has an incorrect length, must be even."),Error("Data does not seem to be UTF-16 encoded!");c=_.Ui(a);if(b&&255===c[0]&&254===c[1]||254===c[0]&&255===c[1])a=c.subarray(2);a instanceof ArrayBuffer?d=a:(c=new Uint8Array(a.byteLength),c.set(_.Ui(a)),d=c.buffer);a=Math.floor(a.byteLength/2);c=new Uint16Array(a);d=new DataView(d);for(var e=0;e<a;e++)c[e]=d.getUint16(2*e,b);return _.R.fromCharCode(c)};
|
|
389
|
+
_.R.xd=function(a,b){if(_.N.$(a))return a;var c="",d=!!b,e=_.Ui(a);239==e[0]&&187==e[1]&&191==e[2]?c=_.R.Z(e):254==e[0]&&255==e[1]?c=_.R.mc(e.subarray(2),!1):255==e[0]&&254==e[1]&&(c=_.R.mc(e.subarray(2),!0));var f=function(g,h){return g.byteLength<=h||32<=g[h]&&126>=g[h]}.bind(null,e);_.R.Yc.debug("Unable to find byte-order-mark, making an educated guess.");0==e[0]&&0==e[2]?c=_.R.mc(a,!1):0==e[1]&&0==e[3]?c=_.R.mc(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.R.Z(a));if(c)return d&&(c=escape(c)),c;throw Error("Unable to detect text encoding");
|
|
390
|
+
};_.H("clpp.utils.strings.fromBytesAutoDetect",_.R.xd);_.R.Va=function(a){if("TextEncoder"in window)return(new TextEncoder).encode(a);a=encodeURIComponent(a);a=unescape(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b};_.H("clpp.utils.strings.toUtf8",_.R.Va);_.R.Be=function(a,b){for(var c=new Uint8Array(2*a.length),d=new DataView(c.buffer),e=0;e<a.length;++e)d.setUint16(2*e,a.charCodeAt(e),b);return c.buffer};_.H("clpp.utils.strings.toUtf16",_.R.Be);
|
|
391
|
+
_.R.fd=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=Zi(e):2===c?f=Yi(e):f=_.Ui(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};_.H("clpp.utils.strings.toByteArray",_.R.fd);_.R.startsWith=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.H("clpp.utils.strings.startsWith",_.R.startsWith);_.R.endsWith=function(a,b){if(String.prototype.endsWith)return a.endsWith(b);var c=a.length-b.length,d=a.lastIndexOf(b,c);return-1!==d&&d===c};
|
|
392
|
+
_.H("clpp.utils.strings.endsWith",_.R.endsWith);_.R.te=function(a){return!!(a&&0<a.length)};_.R.empty=function(a){return!a||0===a.length};_.R.Wm=function(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()};_.R.Zm=function(a){return a.replace(/-(\w)/g,function(b,c){return c.toUpperCase()})};
|
|
393
|
+
_.R.Qe=function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.N.isNaN(b))return"";a="bps";1E3<=Math.abs(b)&&(a="Kbps",b/=1E3);1E3<=Math.abs(b)&&(a="Mbps",b/=1E3);return b.toFixed(2).replace(/[.,]00$/,"")+a}catch(c){return""}};_.H("clpp.utils.strings.bitrateToString",_.R.Qe);
|
|
394
|
+
_.R.Kj=function(a,b){function c(h){return function(l,m){return d(h,m.length-1)}}function d(h,l){return h.length<l?d("0"+h,l):h}b=void 0===b?"%h:%mm:%ss":b;if(null===a||void 0===a)a=0;if(null===b||void 0===b)b="%h:%mm:%ss";var e=Math.floor(a/3600),f=Math.floor((a-3600*e)/60),g=Math.floor(a-3600*e-60*f);return b.replace(/(%h+)/,c(String(e))).replace(/(%m+)/,c(String(f))).replace(/(%s+)/,c(String(g)))};_.H("clpp.utils.strings.durationToString",_.R.Kj);
|
|
395
|
+
_.R.Mj=function(a,b){for(var c in b)if(b[c]===a)return c;return""};_.R.qk=function(a){var b=0;if(0===a.length)return b;for(var c=0;c<a.length;c++)b=(b<<5)-b+a.charCodeAt(c),b|=0;return b};_.H("clpp.utils.strings.hashCode",_.R.qk);_.R.um=function(a){_.R.Mh.innerHTML=a;return _.R.Mh.textContent};_.R.Mh=document.createElement("span");_.R.Of=function(a){a=a.replace(/<[^>]+>/gi,"");a=_.R.um(a);return a=a.replace(/<[^>]+>/gi,"")};_.R.hh=function(a){return a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")};_.H("clpp.utils.Uint8ArrayUtils",_.cj);_.cj.toStandardBase64=_.dj;_.cj.concat=_.jj;_.cj.equal=_.ij;_.cj.toHex=_.hj;_.cj.fromHex=_.gj;_.cj.fromBase64=_.fj;_.cj.toBase64Url=_.ej;_.Y={Qb:function(a,b){return a.filter(function(c){return c.name===b})},bf:function(a,b){var c=Array.isArray(b)?b:[b];return a.filter(function(d){d=_.Ji(d,_.bc);return c.includes(d)})},Wb:function(a,b){return a.some(function(c){return c.name===b})},Pa:function(a,b,c){c=void 0===c?{}:c;a=a.find(function(d){return d.name===b})||null;if(!a&&c.required)throw new _.P(_.Q,4,4024,{missingTag:b});return a},Qg:function(a,b){return _.Y.Pa(a,b,{required:!0})},dk:function(a,b,c){c=void 0===c?0:c;return(a=_.Y.Pa(a,
|
|
396
|
+
b))?Number(a.value):c},cn:function(a,b,c){return a.filter(function(d){var e=d.getAttribute(_.bc);d=d.getAttribute(_.db);return e.value==b&&d.value==c})},Pl:function(a){a=_.Y.Pa(a,"EXT-X-TILES");if(!a)return{Rg:1,Th:1,durationPerTile:null};var b=_.Ii(a,"LAYOUT")||"1x1";a=(a=_.Ii(a,_.Ga))?Number(a):null;var c=_.u(b.split("x").map(function(d){return parseInt(d,10)}));b=c.next().value;c=c.next().value;return{Rg:b,Th:c,durationPerTile:a}},qd:function(a,b){return _.Bi([a],[b])[0]},Zg:function(a){return/^#(?!EXT)/m.test(a)},
|
|
397
|
+
dh:function(a,b){Array.isArray(a)||(a=[a]);a.forEach(function(c){for(var d=_.u(_.Y.ze(c)),e=d.next();!e.done;e=d.next())b(e.value,c)})},ze:function(a){var b=new Set;a.variants.forEach(function(c){c.audio&&b.add(c.audio);c.video&&b.add(c.video)});a.textStreams.forEach(function(c){return b.add(c)});a.thumbStreams.forEach(function(c){return b.add(c)});return Array.from(b)},rk:function(a){return a.some(function(b){return _.Y.Wb(b.W,Pa)})},ii:function(a){return _.Y.ze(a).filter(_.Y.Xg)},Ol:function(a){var b=
|
|
398
|
+
_.Y.Pa(a,Ua);if(_.Y.Pa(a,Pa))return _.mc;if(!b)return"LIVE";if(b.value===_.mc)return _.mc;if("EVENT"===b.value)return"EVENT";throw new _.P(_.Q,4,4044,"Invalid EXT-X-PLAYLIST-TYPE value: "+b.value);},ug:function(a){a={AUDIO:_.$c,VIDEO:_.sg,SUBTITLES:_.bg,"CLOSED-CAPTIONS":_.bg}[a.toUpperCase()];if(!a)throw new _.P(_.Q,4,4044,"EXT-X-MEDIA tag has an invalid TYPE attribute.");return a},Bj:function(a){var b=_.Ji(a,_.bc).toUpperCase();if(_.Y.ug(b)!==_.bg)return null;a=a.getAttribute("FORCED");a=!(!a||
|
|
399
|
+
!a.value||"YES"!==a.value.toUpperCase());var c=_.Zf;b===_.sa&&(c=_.md);a&&(c="forced");return c},xh:function(a,b,c){c=void 0===c?!1:c;var d=0,e=null;if(a){d=a.split("@");a=Number(d[0]);if(0>=a)throw new _.P(_.Q,4,4044,"Byte range length must be positive.");if(d[1]){if(d=Number(d[1]),0>d)throw new _.P(_.Q,4,4044,"Byte range start byte must not be negative.");}else{if(c)throw new _.P(_.Q,4,4044,"Invalid byte range, offset is required but missing.");if(null==b)throw new _.P(_.Q,4,4044,"Invalid byte range, cannot calculate offset based on previous byte ranges.");
|
|
400
|
+
d=b+1}e=d+a-1}return{va:d,ha:e}},zh:function(a,b){var c=_.Y.Pa(a,Ka);return _.Y.xh(c?c.value:null,b)},Jl:function(a){a=_.Y.Qg(a,"EXTINF").value.split(",");return{duration:Number(a[0]),title:a[1]||null}},Ah:function(a,b){function c(f){return null==f?null:Number(f)}b=void 0===b?{}:b;var d={Zd:!1,mi:!1,ni:null,sk:null,Bh:null},e=_.Y.Pa(a,Xa,{required:b.Ih});if(!e)return d;d.Zd="YES"===_.Ii(e,"CAN-BLOCK-RELOAD");d.mi="YES"===_.Ii(e,"CAN-SKIP-DATERANGES");d.ni=c(_.Ii(e,"CAN-SKIP-UNTIL"));d.sk=c(_.Ii(e,
|
|
401
|
+
"HOLD-BACK"));d.Bh=c(_.Ii(e,"PART-HOLD-BACK",void 0,{required:b.Ih}));return d},yh:function(a,b,c){c=void 0===c?!1:c;a=_.Ii(a,"BYTERANGE");return _.Y.xh(a,b,c)},Ml:function(a){var b=_.Y.Qb(a,"EXT-X-MEDIA"),c=_.Y.Qb(a,_.Ya);a=_.Y.Qb(a,"EXT-X-IMAGE-STREAM-INF");return{Zc:{gi:_.Y.bf(b,["AUDIO",_.lc]),closedCaptions:_.Y.bf(b,_.sa),qm:_.Y.bf(b,_.Tb)},Qd:c,hf:a}},Ej:function(a,b){var c=_.Y.zh(a.W,null);return new _.Mi(0,0,0,function(){return[a.a]},c.va,c.ha,0,b)},ef:function(a,b){if(null==a)return null;
|
|
402
|
+
var c=Object.assign({},a);null==c.iv&&(c.iv=_.jj(new Uint8Array(12),new Uint8Array([b>>24&255,b>>16&255,b>>8&255,b&255])));return c},lk:function(a){var b=a.S;a=b[0].startTime;b=b[b.length-1].endTime;return{Zb:a,se:b,duration:b-a}},jk:function(a){var b=Infinity,c=Infinity;_.Y.ii(a).forEach(function(d){d=_.Y.lk(d);b=Math.min(b,d.Zb);c=Math.min(c,d.duration)});return{Zb:b,duration:c}},Xg:function(a){return a.type===_.$c||a.type===_.sg},Nj:function(a){return a.filter(_.Y.Xg)},ik:function(a){return a.map(function(b){return _.Y.jk(b).duration}).reduce(function(b,
|
|
403
|
+
c){return b+c},0)},ak:function(a,b){return a&&b?_.po(a.drmInfos,b.drmInfos)?_.oo(a.drmInfos,b.drmInfos):null:a?a.drmInfos:b?b.drmInfos:null},Fj:function(a,b){return(b?b.Ub():"")+" - "+(a?a.Ub():"")},wg:function(a){return(a.video?a.video.Kb:"")+" - "+(a.audio?a.audio.Kb:"")},Ll:function(a,b,c){if(b===_.mc)return{delay:0,Pd:0};b=_.Y.Pa(a,Ta);if(c&&b)return c=Number(_.Ji(b,"PART-TARGET")),{delay:_.Y.Ah(a,{Ih:!0}).Bh,Pd:c};a=_.Y.Qg(a,Za);a=Number(a.value);return{delay:3*a,Pd:a}},gk:function(a){var b=
|
|
404
|
+
[];_.Y.dh(a,function(c){b.push(c.Fk)});return{delay:Math.max.apply(Math,_.Og(b.map(function(c){return c.delay}))),Pd:Math.min.apply(Math,_.Og(b.map(function(c){return c.Pd})))}},sm:function(a){var b=new Map;a.forEach(function(c){var d=c.ek();b.has(d)?(d=b.get(d),d.includes(c)||d.push(c)):b.set(d,[c])});return b},Ng:function(a){return _.Ni(a||_.hg)},Fl:function(a){var b=new Map;a=_.u(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=_.Ii(c,_.tb);d=_.Y.Ng(d);var e=_.Ji(c,_.db);c=_.Ji(c,"INSTREAM-ID");
|
|
405
|
+
b.has(e)||b.set(e,new Map);b.get(e).set(c,d)}return b},Jj:function(a){a=_.u(a.audio.concat(a.video));for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=b.$j().filter(function(d){return"mp4a.40.34"!==d});b.gm(c)}},Ql:function(a){if(null==a.getAttribute("FRAME-RATE")&&null==a.getAttribute(_.Pb))return null;var b=_.Ii(a,"FRAME-RATE");a=_.Ii(a,_.Pb);var c=_.u(a?a.split("x"):[null,null]);a=c.next().value;c=c.next().value;return{frameRate:Qi(b),width:Qi(a),height:Qi(c)}},Ck:function(a){return"EXT-X-MEDIA"!==
|
|
406
|
+
a.name?!0:_.Ii(a,_.bc)===_.Tb},Gl:function(a,b){var c=_.Ii(a,"ID"),d=_.Ii(a,"START-DATE");if(null===c||null===d)return _.Y.g.warn("Invalid EXT-X-DATERANGE missing mandatory ID or START-DATE attribute, ignoring the EXT-X-DATERANGE tag.",a),null;var e=new Date(d);d=e.getTime()/1E3-b;c={id:c,startTime:d,startDate:e};var f=Qi(_.Ii(a,_.Ga));void 0!==f&&0<=f&&(c.duration=f);var g=Qi(_.Ii(a,"PLANNED-DURATION"));void 0!==g&&0<=g&&(c.plannedDuration=g);var h=_.Ii(a,"CLASS");null!==h&&(c.schemeIdUri=h);var l=
|
|
407
|
+
_.Ii(a,"END-DATE");l=l?new Date(l):null;null!==l&&l.getTime()>=e.getTime()&&(c.endDate=l);e=_.Y.El(a)||{};if(h===Nd){h=_.Y.Kl(a);if(null===h)return _.Y.g.warn("Invalid interstitial attributes, ignoring the EXT-X-DATERANGE tag.",a),null;e=Object.assign(e,h)}_.N.Bd(e)&&(c.Wa=e);c.endTime=l?l.getTime()/1E3:f?d+f:g?d+g:d;c.type=Ut;return c},El:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.u(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c.name.startsWith("X-")&&(a[c.name]=c.value);
|
|
408
|
+
return _.N.Bd(a)?a:null},Kl:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.u(b);for(var c=b.next();!c.done;c=b.next())switch(c=c.value,c.name){case sc:a[sc]=c.value;break;case rc:a[rc]=c.value;break;case uc:a[uc]=Qi(c.value);break;case tc:a[tc]=Qi(c.value);break;case "X-SNAP":a["X-SNAP"]=c.value.split(",");break;case "X-RESTRICT":a["X-SNAP"]=c.value.split(",")}return a[sc]&&a[rc]||!a[sc]&&!a[rc]?(_.Y.g.warn("Invalid EXT-X-DATERANGE Interstitial attributes X-ASSET-URI, X-ASSET-LIST"),
|
|
409
|
+
null):_.N.Bd(a)?a:null},Fg:function(a,b){if(!a)return null;var c=a.Kb;return b.find(function(d){return d.Ub()===c})||null}};_.Y.g=new _.K("clpp.hls.Utils");_.Vt=new Set([_.Oa,Pa,"EXT-X-I-FRAMES-ONLY",_.Sa,Ta,Ua,Xa,Za]);_.Wt=new Set(["EXTINF",Ka,_.Na,_.Qa,_.Ra,_.Wa]);_.Xt=new Set(["EXT-X-PART",_.Va]);_.Yt=new Set([_.La]);var nj=[403,401];_.H("clpp.net.DEFAULT_FATAL_STATUS_CODES",nj);_.H("clpp.net.makeRequest",_.rj);_.qj=6;_.H("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.qj});_.wj.prototype.resolve=function(){};_.wj.prototype.reject=function(){};_.xj.prototype.abort=function(){this.a=!0;return this.A()};_.xj.prototype.$d=function(a,b){function c(){e.reject(new _.P(_.Q,7,7001));return d.abort()}var d=this,e=new _.wj;this.O.then(function(f){d.a?e.reject(new _.P(_.Q,7,7001)):a?c=zj(a,f,e):e.resolve(f)},function(f){b?c=zj(b,f,e):e.reject(f)});return new _.xj(e,function(){return c()})};_.xj.aborted=function(){var a=Promise.reject(new _.P(_.Q,7,7001));a["catch"](function(){});return new _.xj(a,function(){return Promise.resolve()})};
|
|
410
|
+
_.xj.prototype.chain=_.xj.prototype.$d;_.Aj.prototype.destroy=function(){for(var a=[],b=_.u(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.O["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.r=_.Ij.prototype;_.r.lm=function(a){0<a?_.J("Rate limit set to "+a+"bps"):_.J("Rate limit disabled");this.j=a};_.r.release=function(){return this.l.destroy()};_.r.destroy=function(){this.o=!0;this.f=[];this.h=[];return this.l.destroy()};_.r.Wf=function(a){this.f.push(a)};_.r.hd=function(a){this.h.push(a)};_.r.Fh=function(a){this.f=this.f.filter(function(b){return b!==a})};_.r.ye=function(a){this.h=this.h.filter(function(b){return b!==a})};
|
|
411
|
+
_.r.fetch=function(a){var b=this;if(this.o)return new Ss(Promise.reject(new _.P(1,1,7001,{url:a.uris[a.uriIndex],request:a})));this.j&&0<this.j&&(a.rateLimitBps=this.j);for(var c=[],d=_.u(this.f),e=d.next();!e.done;e=d.next())c.push(e.value);if(a.requestModifiers)for(d=_.u(a.requestModifiers),e=d.next();!e.done;e=d.next())c.push(e.value);a.requestModifiers=c;c=[];d=_.u(this.h);for(e=d.next();!e.done;e=d.next())c.push(e.value);if(a.responseModifiers)for(d=_.u(a.responseModifiers),e=d.next();!e.done;e=
|
|
412
|
+
d.next())c.push(e.value);a.responseModifiers=c;d=c=new _.wj;try{var f={},g=_.u(a.requestModifiers);for(e=g.next();!e.done;f={Ie:f.Ie},e=g.next())f.Ie=e.value,d=d.then(function(m){return function(n){if(h.a)throw new _.P(_.Q,1,7001,n?{url:n.uris[n.uriIndex],request:n}:null);return m.Ie(n)||n}}(f))["catch"](function(m){if(m instanceof _.P)throw m;throw new _.P(_.Q,1,1006,null,m);});d=d.then(function(m){var n=new _.qi(m.uris[m.uriIndex]),p=n.eb;p||(p=location.protocol,p=p.slice(0,-1),ri(n,p),m.uris[m.uriIndex]=
|
|
413
|
+
n.toString());p=b.a[p];if(!p)throw new _.P(_.Q,1,1E3,{url:n.toString()});return{request:m,plugin:p}});var h=new Ss(d);g={};var l=_.u(a.responseModifiers);for(e=l.next();!e.done;g={Ud:g.Ud},e=l.next())g.Ud=e.value,h.then(function(m){return function(n){function p(){if(h.a)throw new _.P(_.Q,1,7001,n?{url:n.request.uris[n.request.uriIndex],request:n.request}:null);}p();var q=m.Ud(n)||n;p();return q}}(g))["catch"](function(m){return function(n){if(n instanceof _.P&&n.data&&n.data.response){var p=m.Ud(n.data.response);
|
|
414
|
+
if(p&&p.then)return p.then(function(){return Promise.reject(n)})}return Promise.reject(n)}}(g))["catch"](function(m){if(m instanceof _.P)throw m;throw new _.P(_.Q,1,1007,null,m);});_.Bj(this.l,h);c.resolve(a);return h}catch(m){return new Ss(Promise.reject(m))}};_.H("clpp.net.NetworkEngine",_.Ij);_.Ij.prototype.fetch=_.Ij.prototype.fetch;_.Ij.prototype.removeResponseModifier=_.Ij.prototype.ye;_.Ij.prototype.removeRequestModifier=_.Ij.prototype.Fh;_.Ij.prototype.addResponseModifier=_.Ij.prototype.hd;
|
|
415
|
+
_.Ij.prototype.addRequestModifier=_.Ij.prototype.Wf;_.Ij.prototype.setRateLimit=_.Ij.prototype.lm;var Rj;_.Oj.prototype.ra=function(a){return this.type===a.type&&this.channelsCount===a.channelsCount&&this.frameRate===a.frameRate&&this.kind===a.kind&&this.label===a.label&&this.language===a.language&&this.mimeType===a.mimeType&&Wh(this.roles,a.roles)&&Wh(this.accessibility,a.accessibility,Vj)};_.Oj.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.H("clpp.Track",_.Oj);_.Oj.prototype.toString=_.Oj.prototype.toString;
|
|
416
|
+
_.H("clpp.Rendition",_.Wj);_.Tj=1;_.Qj=_.sg;_.T=_.$c;_.S=_.bg;Rj=_.Le;_.Zt={VIDEO:_.Qj,AUDIO:_.T,TEXT:_.S,METADATA:Rj};_.Oj.Type=_.Zt;_.H("clpp.utils.url.queryString",_.Zj);ck.prototype.h=function(a,b){var c=this,d,e,f,g,h,l,m;return _.E(function(n){switch(n.a){case 1:return d=null,_.A(n,2),_.x(n,ik(c,a),4);case 4:d=n.f;_.ah(n,3);break;case 2:return e=_.C(n),c.g.warn("Failed to fetch playlist in order metadata from HLS playlist.",e.message),n["return"](Promise.resolve({}));case 3:f={};_.A(n,5);if(!b.enableHlsVideoTrackInfo){n.F(7);break}return _.x(n,fk(c,d,a),8);case 8:g=n.f,f.renditions=g.renditions,f.mimeType=g.mimeType;case 7:_.ah(n,6);break;case 5:h=_.C(n),c.g.warn("Failed to parse video metadata from HLS playlist.",
|
|
417
|
+
h.message);case 6:return _.A(n,9),_.x(n,hk(d),11);case 11:l=n.f;f.Zc=l;_.ah(n,10);break;case 9:m=_.C(n),c.g.warn("Failed to parse metadata from HLS playlist.",m.message);case 10:return n["return"](f)}})};_.ok=[];_.r=_.U.prototype;_.r.Te=function(){return!0};_.r.Tj=function(a){return this.getVideoTracks().find(function(b){return _.N.ra(b,a,a&&Object.keys(a))})};_.r.Pj=function(a){return this.getAudioTracks().find(function(b){return _.N.ra(b,a,a&&Object.keys(a))})};_.r.Rj=function(a){return this.ja().find(function(b){return _.N.ra(b,a,a&&Object.keys(a))})};_.r.Sj=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.N.ra(b,a,a&&Object.keys(a))})};
|
|
418
|
+
_.r.Oj=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.N.ra(b,a,a&&Object.keys(a))})};_.r.Qj=function(a){return this.ja().flatMap(function(b){return b.renditions}).find(function(b){return _.N.ra(b,a,a&&Object.keys(a))})};_.H("clpp.TrackManager",_.U);_.U.prototype.isAbrEnabled=_.U.prototype.la;_.U.prototype.addTextTrack=_.U.prototype.addTextTrack;_.U.prototype.findTextRendition=_.U.prototype.Qj;_.U.prototype.findAudioRendition=_.U.prototype.Oj;
|
|
419
|
+
_.U.prototype.findVideoRendition=_.U.prototype.Sj;_.U.prototype.findTextTrack=_.U.prototype.Rj;_.U.prototype.findAudioTrack=_.U.prototype.Pj;_.U.prototype.findVideoTrack=_.U.prototype.Tj;_.U.prototype.setTextRendition=_.U.prototype.sb;_.U.prototype.setAudioRendition=_.U.prototype.rb;_.U.prototype.setVideoRendition=_.U.prototype.fb;_.U.prototype.setTextTrack=_.U.prototype.Ja;_.U.prototype.setAudioTrack=_.U.prototype.za;_.U.prototype.setVideoTrack=_.U.prototype.gb;_.U.prototype.getTextTrack=_.U.prototype.ta;
|
|
420
|
+
_.U.prototype.getAudioTrack=_.U.prototype.sa;_.U.prototype.getVideoTrack=_.U.prototype.Sa;_.U.prototype.getLoadingTextRendition=_.U.prototype.lb;_.U.prototype.getLoadingAudioRendition=_.U.prototype.kb;_.U.prototype.getLoadingVideoRendition=_.U.prototype.ab;_.U.prototype.getTextRendition=_.U.prototype.Qa;_.U.prototype.getAudioRendition=_.U.prototype.Oa;_.U.prototype.getVideoRendition=_.U.prototype.ia;_.U.prototype.getTextTracks=_.U.prototype.ja;_.U.prototype.getAudioTracks=_.U.prototype.getAudioTracks;
|
|
421
|
+
_.U.prototype.getVideoTracks=_.U.prototype.getVideoTracks;_.U.prototype.canSelectVideoTracks=_.U.prototype.Te;_.$t=new Map;_.au=(new Map).set(_.Jd,_.Jd).set("frameRate","framerate").set("bandwidth","bitrate").set(_.Hg,_.Hg).set(_.qe,_.qe).set("channelsCount","channels");_.sk.prototype.aa=function(a){return tk(this,a,!1)};_.sk.prototype.hb=function(a){return tk(this,a,!0)};_.sk.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.uk.prototype.Qf=function(){this.stop();this.f();return this};_.uk.prototype.aa=function(a){var b=this;this.stop();this.a=(new _.sk(function(){b.f()})).aa(a);return this};_.uk.prototype.hb=function(a){var b=this;this.stop();this.a=(new _.sk(function(){b.f()})).hb(a);return this};_.uk.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.H("clpp.utils.Timer",_.uk);_.uk.prototype.stop=_.uk.prototype.stop;_.uk.prototype.tickEvery=_.uk.prototype.hb;_.uk.prototype.tickAfter=_.uk.prototype.aa;
|
|
422
|
+
_.uk.prototype.tickNow=_.uk.prototype.Qf;_.H(Id,vk);vk.getInfo=_.Fj;
|
|
423
|
+
var Fk=null,Ek=null,Hk=new _.K(Id),Ok="android",Nk="ios",Tk="linux",Pk="osx",Qk="windows",Rk="tizen",Sk="webos",Mk=ig,Wk=ig,Vk={windows:{os_version:/windows\s+?nt\s([\d.]+)/i,ie:/windows\s+?nt.+?trident\/[\d.]+.*rv:([\d.]+)/i,edge:/windows\s+?nt.+?edge?\/([\d.]+)/i,chrome:/windows\s+?nt.+?chrome\/([\d.]+)/i,firefox:/windows\s+?nt.+?firefox\/([\d.]+)/i,opera:/windows\s+?nt.+?opr\/([\d.]+)/i},osx:{os_version:/macintosh.+?([\d._]+)/i,safari:/macintosh.+?version\/([\d._]+).+?safari/i,edge:/macintosh.+?edge?\/([\d._]+)/i,
|
|
424
424
|
chrome:/macintosh.+?chrome\/([\d._]+)/i,firefox:/macintosh.+?firefox\/([\d._]+)/i,opera:/macintosh.+?opr\/([\d._]+)/i},unknown:{ie:/.+?trident\/([\d.]+)/i,edge:/.+?edge?\/([\d.]+)/i,safari:/.+?version\/([\d._]+).+?safari/i,chrome:/.+?chrome\/([\d._]+)/i,firefox:/.+?firefox\/([\d._]+)/i,opera:/.+?opr\/([\d._]+)/i},android:{os_version:/android.+?([\d._]+)/i,chrome:/android.+?chrome\/([\d._]+)/i,firefox:/android.+?firefox\/([\d._]+)/i,opera:/android.+?opr\/([\d._]+)/i},ios:{os_version:/(?:iPad|iPhone).+?([\d._]+)/i,
|
|
425
425
|
chrome:/.+?CriOS\/([\d._]+)/i,firefox:/.+?FxiOS\/([\d._]+)/i,safari:/.+?version\/([\d._]+).+?safari/i,opera:/.+?opr\/([\d._]+)/i},linux:{os_version:/linux.+?([\d._]+)/i,safari:/linux.+?version\/([\d._]+).+?safari/i,chrome:/linux.+?chrome\/([\d._]+)/i,firefox:/linux.+?firefox\/([\d._]+)/i,opera:/linux.+?opr\/([\d._]+)/i},tizen:{os_version:/tizen.+?([\d._]+)/i,safari:/linux.+?version\/([\d._]+).+?safari/i,chrome:/linux.+?chrome\/([\d._]+)/i,firefox:/linux.+?firefox\/([\d._]+)/i,opera:/linux.+?opr\/([\d._]+)/i},
|
|
426
|
-
webos:{os_version:/linux.+?([\d._]+)/i,safari:/linux.+?version\/([\d._]+).+?safari/i,chrome:/linux.+?chrome\/([\d._]+)/i,firefox:/linux.+?firefox\/([\d._]+)/i,opera:/linux.+?opr\/([\d._]+)/i}};_.w(
|
|
427
|
-
_.r.
|
|
428
|
-
n.kind&&"captions"===n.kind&&(n.mimeType=_.Sc);q&&(n.src=q.url,n.mimeType=q.mimeType)}else if(m=c.h.find(function(M){return M.type===a&&_.N.ra(M,n,["kind","label","language"])}))return m.id=d.id,p&&(c.g.debug(Xb+a+" track active"),c.a.set(a,m)),c.g.debug("Track from event seems to already exists, flipped native track to",d),O["return"]();_.A(O,2);v=new _.
|
|
429
|
-
O.a)return c.g.debug(a+" Track added",n),c.m.trigger(new _.L(_.
|
|
430
|
-
_.r.
|
|
431
|
-
_.r.
|
|
432
|
-
_.r.load=function(){this.A=!1;var a=
|
|
433
|
-
_.r.getVideoTracks=function(){return
|
|
434
|
-
_.r.kb=function(){return
|
|
435
|
-
_.r.addTextTrack=function(a){var b=this,c;return _.E(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.B++,b.o[c]=a,
|
|
436
|
-
_.r.
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
_.r.
|
|
440
|
-
_.r.
|
|
441
|
-
_.
|
|
442
|
-
_.r.trigger=function(a){this.
|
|
443
|
-
_.H("clpp.events.RELEASING",_.
|
|
444
|
-
_.H("clpp.events.AUTOPLAY_NOT_ALLOWED",_.fd);_.H("clpp.events.PLAY",_.
|
|
445
|
-
_.H("clpp.events.AD_FIRST_QUARTILE",_.Ac);_.H("clpp.events.AD_MIDPOINT",_.Dc);_.H("clpp.events.AD_THIRD_QUARTILE",_.Kc);_.H("clpp.events.AD_PAUSED",_.Ec);_.H("clpp.events.AD_RESUMED",_.Gc);_.H("clpp.events.AD_SKIPPED",_.Hc);_.H("clpp.events.AD_CLICKED",_.yc);_.H("clpp.events.AD_IMPRESSION",_.Bc);_.H("clpp.events.AD_COMPLETED",_.zc);_.H("clpp.events.AD_STOPPED",_.Jc);_.H("clpp.events.AD_BREAK_STOPPED",_.wc);_.H("clpp.events.SIMID_CREATIVE_STARTED",_.
|
|
446
|
-
_.H("clpp.events.CASTING_STARTED",_.nd);_.H("clpp.events.CASTING_ENDED","castingended");_.H("clpp.events.CAST_STATUS_CHANGED",_.od);_.H("clpp.events.AIRPLAY_STATUS_CHANGED",_.Qc);_.H("clpp.events.AIRPLAY_CASTING_STARTED",_.Pc);_.H("clpp.events.AIRPLAY_CASTING_ENDED",_.Oc);_.
|
|
447
|
-
_.H("clpp.events.MPD_TYPE_CHANGED",_.
|
|
448
|
-
_.r.destroy=function(){this.
|
|
449
|
-
_.r.play=function(){var a=this;if(!this.w)return Promise.reject("No sources specified yet. You need to load content before calling play.");var b=this.D.getMedia().play();return Promise.resolve(b)["catch"](function(c){a.log.info("Caught play promise exception",c);var d={name:c.name||"",message:c.message||"",stack:c.stack||""};
|
|
450
|
-
_.r.pause=function(){var a=this;return this.w?new Promise(function(b,c){var d=a.getState();if(d!==_.
|
|
451
|
-
_.r.setDrmCustomDataModifier=function(a){this.Qc=a};_.r.setCdnErrorCallback=function(a){this.
|
|
452
|
-
_.r.seek=function(a){var b=this,c=this.getPosition();if(void 0===a||null===a||typeof a!==_.k||a===c)return Promise.resolve();var d=this.D.getMedia();if(!d)return this.log.warn("No media element available, can not set current time!"),Promise.reject();var e=a-c;return.1>=Math.abs(e)?(this.log.info("Skip seek. Delta "+Math.abs(e)+" \x3c 0.1"),Promise.resolve()):new Promise(function(f,g){function h(){if(d.readyState>HTMLMediaElement.HAVE_NOTHING)m();else b.
|
|
453
|
-
q=.1>=Math.abs(a-p),t=.25<p-a,v=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,z=n.type===_.
|
|
454
|
-
d.currentTime=a)}function m(){b.trigger(new _.L(_.
|
|
426
|
+
webos:{os_version:/linux.+?([\d._]+)/i,safari:/linux.+?version\/([\d._]+).+?safari/i,chrome:/linux.+?chrome\/([\d._]+)/i,firefox:/linux.+?firefox\/([\d._]+)/i,opera:/linux.+?opr\/([\d._]+)/i}};_.w(Xk,_.U);_.r=Xk.prototype;_.r.Te=function(){return!_.Bk()};
|
|
427
|
+
_.r.Af=function(a,b){var c=this,d,e,f,g,h,l,m,n,p,q,t,v,z,D,G,F,B,I;return _.E(function(O){if(1==O.a){if(!b)return c.g.warn(Ab),O["return"]();d=b.track;if(!d)return c.g.warn(Cb),O["return"]();e=a===_.T;f=a===_.Qj;g=a===_.S;h=e||f;l=b.target;if(m=c.h.find(function(M){return ll(M,d,a)}))return c.g.warn("Track from event already exists",d,m),O["return"]();n=Uj(a,d);p=pl(d);if(g){if(d.kind===_.Le)return O["return"]();void 0!==d.id?q=c.o[d.id]:(t=Object.values(c.o),q=t.find(function(M){return ll(n,M,a)}));
|
|
428
|
+
n.kind&&"captions"===n.kind&&(n.mimeType=_.Sc);q&&(n.src=q.url,n.mimeType=q.mimeType)}else if(m=c.h.find(function(M){return M.type===a&&_.N.ra(M,n,["kind","label","language"])}))return m.id=d.id,p&&(c.g.debug(Xb+a+" track active"),c.a.set(a,m)),c.g.debug("Track from event seems to already exists, flipped native track to",d),O["return"]();_.A(O,2);v=new _.Wj(n.id,n);n.renditions.push(v);c.h.push(n);z=c.m.getConfiguration().safari;return al(c,a,z)?_.x(O,el(c,n,z),5):bl(c,a,z)?_.x(O,fl(c,n,z),5):O.F(5)}if(2!=
|
|
429
|
+
O.a)return c.g.debug(a+" Track added",n),c.m.trigger(new _.L(_.bu)),D=il(c,a).length,G=!(!l||!l.length),F=l&&l.length||0,B=function(){c.g.debug(Xb+a+" track active. Native track active: "+(p+". Number of tracks: ")+D,d);c.a.set(a,n)},p?B():1===D&&h&&(f?B():G&&1!==F||B()),_.ah(O,0);I=_.C(O);c.g.error("Error while converting track data",I);_.y(O)})};
|
|
430
|
+
_.r.Cf=function(a,b){if(b){var c=b.track;if(!c)this.g.warn(Cb);else if(a===_.S&&c.kind!==_.Le){var d=this.h.find(function(e){return ll(e,c,a)});d&&(this.h.splice(this.h.indexOf(d),1),(this.a.get(a)||null)===d&&(this.a.set(a,null),rl(this)),this.g.debug(a+" Track removed, id: ",d.id))}}else this.g.warn(Ab)};
|
|
431
|
+
_.r.Bf=function(a,b){this.g.debug(a+" Track changed",b);a===_.S&&rl(this);var c=hl(this,a);if(c)for(var d={Ec:0};d.Ec<c.length;d={Ec:d.Ec},++d.Ec)if(pl(c[d.Ec])){if(d=this.h.find(function(e){return function(f){return ll(f,c[e.Ec],a)}}(d)))this.a.set(a,d),this.g.debug("Track change detected, id:",d.id),d===this.l.get(a)&&this.l.set(a,null),a===_.T?this.m.trigger(new _.L(_.ml)):a===_.S&&this.m.trigger(new _.L(_.nl));break}};_.r.initialize=function(a){this.m=a;this.j=new ck(a.getNetworkEngine())};
|
|
432
|
+
_.r.load=function(){this.A=!1;var a=gl(this,_.S);a&&(this.f.on(a,_.Lc,this.J),this.f.on(a,Hf,this.M),this.f.on(a,ud,this.K));if(a=gl(this,_.T))this.f.on(a,_.Lc,this.G),this.f.on(a,Hf,this.I),this.f.on(a,ud,this.H);if(a=gl(this,_.Qj))this.f.on(a,_.Lc,this.P),this.f.on(a,Hf,this.V),this.f.on(a,ud,this.T);this.f.one(this.m,ld,this.ij.bind(this))};_.r.release=function(){this.A=!0;this.h=[];this.o={};this.a.clear();this.l.clear();this.f.release()};_.r.destroy=function(){this.release();this.m=null};
|
|
433
|
+
_.r.getVideoTracks=function(){return il(this,_.Qj)};_.r.getAudioTracks=function(){return il(this,_.T)};_.r.ja=function(){return il(this,_.S)};_.r.ia=function(){var a=this,b=this.a.get(_.Qj)||null;if(!b)return null;if(this.w){var c=b.renditions.find(function(d){return d.width===a.w.width&&d.height===a.w.height});if(c)return c}return b.renditions[0]||null};_.r.Oa=function(){return jl(this,_.T)};_.r.Qa=function(){return jl(this,_.S)};_.r.ab=function(){return kl(this,_.Qj)};
|
|
434
|
+
_.r.kb=function(){return kl(this,_.T)};_.r.lb=function(){return kl(this,_.S)};_.r.Sa=function(){return this.a.get(_.Qj)||null};_.r.sa=function(){return this.a.get(_.T)||null};_.r.ta=function(){return this.a.get(_.S)||null};_.r.gb=function(a){ol(this,_.Qj,a)};_.r.za=function(a){ol(this,_.T,a)};_.r.Ja=function(a){ol(this,_.S,a)};_.r.fb=function(a){ol(this,_.Qj,a&&a.track)};_.r.rb=function(a){ol(this,_.T,a&&a.track)};_.r.sb=function(a){ol(this,_.S,a&&a.track)};
|
|
435
|
+
_.r.addTextTrack=function(a){var b=this,c;return _.E(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.B++,b.o[c]=a,Yk(b,a,c),d.F(0)):_.x(d,Zk(b,a),0)})};_.r.la=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};
|
|
436
|
+
_.r.ij=function(){var a=this,b,c,d;return _.E(function(e){if(1==e.a){b=a.m.getConfiguration();ql(a,_.T,b.preferredAudioLanguage);c=hl(a,_.S);if(c.some(function(f){return pl(f)}))return e.F(2);d=gl(a,_.S);return _.x(e,new Promise(function(f){a.f.one(d,ud,f);(new _.uk(f)).aa(1)}),2)}if(a.A)return e["return"]();ql(a,_.S,b.preferredTextLanguage);_.y(e)})};Xk.prototype.isAbrEnabled=Xk.prototype.la;Xk.prototype.addTextTrack=Xk.prototype.addTextTrack;Xk.prototype.setTextRendition=Xk.prototype.sb;
|
|
437
|
+
Xk.prototype.setAudioRendition=Xk.prototype.rb;Xk.prototype.setVideoRendition=Xk.prototype.fb;Xk.prototype.setTextTrack=Xk.prototype.Ja;Xk.prototype.setAudioTrack=Xk.prototype.za;Xk.prototype.setVideoTrack=Xk.prototype.gb;Xk.prototype.getTextTrack=Xk.prototype.ta;Xk.prototype.getAudioTrack=Xk.prototype.sa;Xk.prototype.getVideoTrack=Xk.prototype.Sa;Xk.prototype.getLoadingTextRendition=Xk.prototype.lb;Xk.prototype.getLoadingAudioRendition=Xk.prototype.kb;Xk.prototype.getLoadingVideoRendition=Xk.prototype.ab;
|
|
438
|
+
Xk.prototype.getTextRendition=Xk.prototype.Qa;Xk.prototype.getAudioRendition=Xk.prototype.Oa;Xk.prototype.getVideoRendition=Xk.prototype.ia;Xk.prototype.getTextTracks=Xk.prototype.ja;Xk.prototype.getAudioTracks=Xk.prototype.getAudioTracks;Xk.prototype.getVideoTracks=Xk.prototype.getVideoTracks;Xk.prototype.canSelectVideoTracks=Xk.prototype.Te;_.r=_.sl.prototype;_.r.start=function(a){if(this.f)return this.f.start(a);if(a<this.a.length)return this.a[a].start;throw Error(cc);};_.r.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(cc);};_.r.wb=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:1===this.length&&0>this.start(0)?0:this.start(0)};_.r.Fa=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
|
|
439
|
+
_.r.qc=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?0:c;if(!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)||a>this.end(this.length-1))return!1;if(b)return c+a>=this.start(0)&&a<=this.end(this.length-1);for(b=0;b<this.length;b++)if(c+a>=this.start(b)&&a<=this.end(b))return!0;return!1};
|
|
440
|
+
_.r.La=function(a,b){b=void 0===b?!1:b;if(!this.length||1===this.length&&1E-6>this.end(0)-this.start(0))return 0;var c=0;if(b){var d=this.Fa();null!=d&&(c=Math.max(0,d-a))}else for(d=this.length-1;0<=d&&this.end(d)>a;--d)c+=this.end(d)-Math.max(this.start(d),a);return c};_.r.toString=function(){for(var a="",b=0;b<this.length;b++)0<b&&(a+=" "),a+=this.start(b).toFixed(3)+"-"+this.end(b).toFixed(3);return a};_.H("clpp.BufferInfo",_.sl);_.sl.prototype.bufferedAheadOf=_.sl.prototype.La;
|
|
441
|
+
_.sl.prototype.isBuffered=_.sl.prototype.qc;_.sl.prototype.bufferEnd=_.sl.prototype.Fa;_.sl.prototype.bufferStart=_.sl.prototype.wb;_.sl.prototype.end=_.sl.prototype.end;_.sl.prototype.start=_.sl.prototype.start;_.r=_.tl.prototype;_.r.addEventListener=function(a,b){this.on(a,b)};_.r.removeEventListener=function(a,b){this.off(a,b)};_.r.on=function(a,b,c){return this.wd.on(a,b,c)};_.r.one=function(a,b,c){return this.wd.one(a,b,c)};_.r.off=function(a,b){return this.wd.off(a,b)};_.r.addDelegate=function(a){a&&(0<=this.td.indexOf(a)||this.td.push(a))};_.r.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};_.r.removeDelegate=function(a){a&&(a=this.td.indexOf(a),0<=a&&this.td.splice(a,1))};
|
|
442
|
+
_.r.trigger=function(a){this.wd.trigger(a);for(var b=_.u(this.td),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.tl.prototype.off=_.tl.prototype.off;_.tl.prototype.one=_.tl.prototype.one;_.tl.prototype.on=_.tl.prototype.on;_.tl.prototype.removeEventListener=_.tl.prototype.removeEventListener;_.tl.prototype.addEventListener=_.tl.prototype.addEventListener;_.H("clpp.events.ERROR",_.ne);_.H("clpp.events.LOADEDMETADATA",_.Fe);_.H("clpp.events.BUFFERING_ENDED",_.id);_.H("clpp.events.BUFFERING_STARTED",_.jd);_.H("clpp.events.STATE_CHANGED",_.Tf);_.ml="audiotrackchanged";_.H("clpp.events.AUDIO_TRACK_CHANGED",_.ml);_.nl="texttrackchanged";_.H("clpp.events.TEXT_TRACK_CHANGED",_.nl);_.H("clpp.events.VIDEO_TRACK_CHANGED",_.wg);_.H("clpp.events.BITRATE_CHANGED",_.gd);_.bu="tracksadded";_.H("clpp.events.TRACKS_ADDED",_.bu);_.H("clpp.events.LOAD_START",Ge);
|
|
443
|
+
_.H("clpp.events.RELEASING",_.Gf);_.H("clpp.events.RELEASED",Ff);_.H("clpp.events.DESTROYING","destroying");_.H("clpp.events.DESTROYED","destroyed");_.H("clpp.events.VIDEO_BUFFER_CHANGED",_.vg);_.H("clpp.events.AUDIO_BUFFER_CHANGED",_.ed);_.H("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.H("clpp.events.DRM_SESSION_UPDATE",_.he);_.H("clpp.events.DRM_SESSION_PERSISTED",_.ge);_.H("clpp.events.DRM_RENEWAL_STARTED",fe);_.H("clpp.events.DRM_EXPIRATION_UPDATE",_.ee);
|
|
444
|
+
_.H("clpp.events.AUTOPLAY_NOT_ALLOWED",_.fd);_.H("clpp.events.PLAY",_.gf);_.H("clpp.events.SEEKING",_.Mf);_.H("clpp.events.SEEKED",_.Lf);_.H("clpp.events.USER_SEEKING",_.ng);_.H("clpp.events.USER_SEEKED",_.mg);_.Oo={SEEKING:1,NO_DATA:2};_.H("clpp.events.BufferingReasons",_.Oo);_.H("clpp.events.ADS_TIMELINE_CHANGED",_.Nc);_.H("clpp.events.AD_LOADED",_.Cc);_.H("clpp.events.AD_BREAK_STARTED",_.vc);_.H("clpp.events.AD_STARTED",_.Ic);_.H("clpp.events.AD_BUFFERING",_.xc);_.H("clpp.events.AD_PROGRESS",_.Fc);
|
|
445
|
+
_.H("clpp.events.AD_FIRST_QUARTILE",_.Ac);_.H("clpp.events.AD_MIDPOINT",_.Dc);_.H("clpp.events.AD_THIRD_QUARTILE",_.Kc);_.H("clpp.events.AD_PAUSED",_.Ec);_.H("clpp.events.AD_RESUMED",_.Gc);_.H("clpp.events.AD_SKIPPED",_.Hc);_.H("clpp.events.AD_CLICKED",_.yc);_.H("clpp.events.AD_IMPRESSION",_.Bc);_.H("clpp.events.AD_COMPLETED",_.zc);_.H("clpp.events.AD_STOPPED",_.Jc);_.H("clpp.events.AD_BREAK_STOPPED",_.wc);_.H("clpp.events.SIMID_CREATIVE_STARTED",_.Of);_.H("clpp.events.SIMID_CREATIVE_STOPPED",_.Pf);
|
|
446
|
+
_.H("clpp.events.CASTING_STARTED",_.nd);_.H("clpp.events.CASTING_ENDED","castingended");_.H("clpp.events.CAST_STATUS_CHANGED",_.od);_.H("clpp.events.AIRPLAY_STATUS_CHANGED",_.Qc);_.H("clpp.events.AIRPLAY_CASTING_STARTED",_.Pc);_.H("clpp.events.AIRPLAY_CASTING_ENDED",_.Oc);_.Ph="timeline-cue-added";_.H("clpp.events.TIMELINE_CUE_ADDED",_.Ph);_.Rh="timeline-cue-enter";_.H("clpp.events.TIMELINE_CUE_ENTER",_.Rh);_.Sh="timeline-cue-exit";_.H("clpp.events.TIMELINE_CUE_EXIT",_.Sh);
|
|
447
|
+
_.H("clpp.events.MPD_TYPE_CHANGED",_.Qe);_.H("clpp.events.VIMOND_RESPONSE",_.xg);_.H("clpp.events.PLAYLIST_ITEM_CHANGED",_.pf);_.H("clpp.events.PLAYLIST_MODIFIED",_.qf);_.H("clpp.events.CDN_SWITCH_SUCCESS",_.pd);_.H("clpp.events.ONLINE_STATUS_CHANGED",Ze);var ul=["play() failed because the user didn't interact","The play method is not allowed by the user agent","The request is not allowed by the user agent or the platform"];var Ut;_.H("clpp.version",_.ia);_.H("clpp.name",_.wa);_.dl="application/x-mpegurl";_.H("clpp.Type",{DASH:_.Tc,HLS:_.dl,SMOOTH_STREAMING:_.Yc,MP4:_.ug});_.Oh="scte35";Ut="hls-daterange";_.Mh=ig;_.H("clpp.TimelineCueType",{SCTE35:_.Oh,DASH_CALLBACK:_.Re,HLS_DATERANGE:Ut,UNKNOWN:_.Mh});_.H("clpp.SpeedUpMode",{Em:_.Vd,SEEK:"seek"});_.H("clpp.utils.PlayerConfiguration",wl);wl.create=_.Bl;var cu=["abort",kd,ld,je,"emptied",ke,_.me,_.ne,"interruptbegin","interruptend",_.Ee,_.Fe,Ge,"mozaudioavailable",_.cf,_.gf,_.of,_.Cf,_.Ef,_.Lf,_.Mf,Rf,"suspend",_.eg,"volumechange",_.Ag,_.Bg,_.Jf,Gg,Fg,Dg,Eg];_.w(_.Dl,_.tl);_.r=_.Dl.prototype;_.r.init=function(a,b){this.configuration=this.fe=b;this.D=a;this.log.info("Initializing Player surface");var c=this.D.getMedia();this.log.info("Attaching media element listeners");for(var d=_.u(cu),e=d.next();!e.done;e=d.next())e=e.value,this.T.on(c,e,this.Am,e!==_.ne);this.ld||(this.ld=this.xg());this.ld.initialize(this);this.D.showMediaElement()};_.r.release=function(){this.P&&(this.P.destroy(),this.P=null);return Promise.resolve()};
|
|
448
|
+
_.r.destroy=function(){this.T.release();return this.mf.release()};_.r.canPlay=function(a,b){return _.xh[this.namespace()].canPlay(a,b)};
|
|
449
|
+
_.r.play=function(){var a=this;if(!this.w)return Promise.reject("No sources specified yet. You need to load content before calling play.");var b=this.D.getMedia().play();return Promise.resolve(b)["catch"](function(c){a.log.info("Caught play promise exception",c);var d={name:c.name||"",message:c.message||"",stack:c.stack||""};vl(d)?(a.trigger(new _.L(_.fd)),a.log.warn(_.ma)):d.name===Eb&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
|
|
450
|
+
_.r.pause=function(){var a=this;return this.w?new Promise(function(b,c){var d=a.getState();if(d!==_.Lo&&d!==_.No&&d!==_.Uo&&d!==_.To)c();else if(a.D.getMedia().pause(),a.getState()===_.Uo)a.T.one(a,_.Tf,function(){b()});else b()}):Promise.reject("No sources specified yet. You need to load content before calling pause.")};_.r.isPaused=function(){return this.D.getMedia().paused};_.r.isEnded=function(){return this.D.getMedia().ended};_.r.getConfiguration=function(){return this.configuration};
|
|
451
|
+
_.r.setDrmCustomDataModifier=function(a){this.Qc=a};_.r.setCdnErrorCallback=function(a){this.Hc=a};_.r.Tc=function(){return this.Qc};_.r.getSurface=function(){return this.D};_.r.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.sl(b?b.buffered:void 0,a)};_.r.getPosition=function(){var a=this.D.getMedia();if(a)return a.currentTime;this.log.warn("No media element available, can not report current time!");return 0};
|
|
452
|
+
_.r.seek=function(a){var b=this,c=this.getPosition();if(void 0===a||null===a||typeof a!==_.k||a===c)return Promise.resolve();var d=this.D.getMedia();if(!d)return this.log.warn("No media element available, can not set current time!"),Promise.reject();var e=a-c;return.1>=Math.abs(e)?(this.log.info("Skip seek. Delta "+Math.abs(e)+" \x3c 0.1"),Promise.resolve()):new Promise(function(f,g){function h(){if(d.readyState>HTMLMediaElement.HAVE_NOTHING)m();else b.T.one(d,_.Fe,m)}function l(n){var p=b.getPosition(),
|
|
453
|
+
q=.1>=Math.abs(a-p),t=.25<p-a,v=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,z=n.type===_.Lf,D=n.type===_.Cf,G=n.type===_.eg,F=D&&v;t=z||q&&F||G&&t;b.log.debug("Checking seeking state after "+n.type+" event. Seek completed:",t,"Current Time:",p,"Target Time:",a,"Native Event:",z,"Time reached",q,"Timeupdate:",G,"Progress:",D,"ReadyState:",v,"Progress Ready:",F);t?(b.nf=!1,b.re=!1,b.T.off(d,_.Lf,l),b.T.off(d,_.eg,l),b.T.off(d,_.Cf,l),b.vh(),b.trigger(new _.L(_.mg)),f()):D&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
|
|
454
|
+
d.currentTime=a)}function m(){b.trigger(new _.L(_.ng));b.T.on(d,_.Lf,l);b.T.on(d,_.eg,l);b.T.on(d,_.Cf,l);b.log.info("Seeking to "+a+". Delta "+e);b.nf=!0;b.re=!0;d.currentTime=a}b.getState()===_.Go?(b.log.debug("Player is in IDLE state. Postpone seek."),b.T.one(b,_.Tf,function(){switch(b.getState()){case _.Lo:case _.Uo:case _.To:b.log.debug("Valid seek state reached.");h();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):h()})};
|
|
455
455
|
_.r.getVolume=function(){var a=this.D.getMedia();if(a)return a.volume;this.log.warn("No media element available, can not report volume!");return null};_.r.setVolume=function(a){var b=this.D.getMedia();b?_.N.ma(a)?0>a||1<a?this.log.warn(ua+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(ua+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.r.isMuted=function(){return this.D.getMedia().muted};
|
|
456
|
-
_.r.setMuted=function(a){var b=this.D.getMedia();typeof a===_.hd&&(b.muted=a)};_.r.getDuration=function(){return this.w?this.D.getMedia().duration:-1};_.r.getTrackManager=function(){return this.
|
|
457
|
-
_.r.getLoadedSource=function(){return this.w&&-1!==this.ge?this.w[this.ge]:null};_.r.getPeriods=function(){return[]};_.r.getNetworkEngine=function(){return this.
|
|
458
|
-
_.r.
|
|
459
|
-
this.getBufferInfo().
|
|
456
|
+
_.r.setMuted=function(a){var b=this.D.getMedia();typeof a===_.hd&&(b.muted=a)};_.r.getDuration=function(){return this.w?this.D.getMedia().duration:-1};_.r.getTrackManager=function(){return this.ld};_.r.getPlaybackRate=function(){var a=this.D.getMedia();return a&&a.playbackRate||1};_.r.setPlaybackRate=function(a){var b=this.D.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.r.setSourceIndex=function(a){this.ge=a};_.r.getSourceIndex=function(){return this.ge};
|
|
457
|
+
_.r.getLoadedSource=function(){return this.w&&-1!==this.ge?this.w[this.ge]:null};_.r.getPeriods=function(){return[]};_.r.getNetworkEngine=function(){return this.mf};_.r.setNetworkEngine=function(a){this.mf=a};_.r.getTextDisplayer=function(){return this.P};_.r.getTimelineCues=function(){return[]};_.r.resetAbr=function(){};
|
|
458
|
+
_.r.Zl=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.eg||a.type===_.Cf)this.Uh.debug(d);else{var e="";switch(a.type){case _.Ef:e="Rate: "+this.getPlaybackRate();break;case je:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.gf:case _.of:case "suspend":case _.Ag:case Rf:case _.Mf:case _.Lf:case _.eg:case _.Cf:case kd:case ld:b=
|
|
459
|
+
this.getBufferInfo().La(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.Jf:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.Uh.info(d)}a.type!==_.ne&&this.trigger(new _.L(a.type,{detail:a}))};_.r.vh=function(){};_.Dl.prototype.getTextDisplayer=_.Dl.prototype.getTextDisplayer;_.Dl.prototype.setNetworkEngine=_.Dl.prototype.setNetworkEngine;_.Dl.prototype.getNetworkEngine=_.Dl.prototype.getNetworkEngine;var Gl;Gl=new _.K("clpp.Components");_.El=new Map;_.H("clpp.install",function(a){Ol(a)});_.H("clpp.uninstall",function(a){Pl(a)});Ql.prototype.release=function(){this.a=this.f=null};_.H("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.Ub,SW_SECURE_DECODE:_.Vb,HW_SECURE_CRYPTO:fb,HW_SECURE_DECODE:gb,HW_SECURE_ALL:eb});_.H("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.H("clpp.drm.KeySystem",{NONE:_.Se,CLEAR_KEY:_.af,WIDEVINE:_.Rd,PLAYREADY:_.Pd,FAIRPLAY:_.Md,PRIMETIME:_.Ld});_.Ul={};_.H("clpp.drm.registerDrmEnvironment",_.Vl);var Yl={V1_STAGING:[10,191,2,8,3,18,16,40,112,52,84,192,8,246,54,24,173,231,68,61,182,196,200,24,139,231,249,144,5,34,142,2,48,130,1,10,2,130,1,1,0,181,33,18,184,208,93,2,63,204,93,149,226,194,81,193,198,73,180,23,124,216,210,190,239,53,91,176,103,67,222,102,30,61,42,188,49,130,183,153,70,213,95,220,8,223,233,84,7,129,94,154,98,116,179,34,162,199,245,224,103,187,95,10,192,122,137,212,90,234,148,178,81,111,7,91,102,239,129,29,13,38,225,185,166,184,148,242,185,133,121,98,170,23,28,79,102,99,13,62,76,
|
|
460
460
|
96,39,24,137,127,94,30,249,182,170,245,173,77,186,42,126,20,23,109,241,52,161,211,24,91,90,33,138,192,90,76,65,240,129,239,255,128,163,160,64,197,11,9,187,199,64,238,220,216,241,77,103,90,145,152,15,146,202,125,220,100,106,6,173,173,81,1,247,74,14,73,140,192,31,0,83,43,172,33,120,80,189,144,94,144,146,54,86,183,223,239,239,66,72,103,103,243,62,246,40,61,79,66,84,171,114,88,147,144,190,229,88,8,241,214,104,8,13,69,216,147,194,188,162,247,77,96,160,192,208,160,153,60,239,1,96,71,3,51,76,54,56,19,148,
|
|
461
461
|
134,188,157,175,36,253,103,160,127,154,217,67,2,3,1,0,1,58,18,115,116,97,103,105,110,103,46,103,111,111,103,108,101,46,99,111,109,18,128,3,152,62,48,53,38,117,244,11,167,21,252,36,155,218,229,212,172,114,73,162,102,101,33,228,54,85,115,149,41,114,31,248,128,224,170,239,197,226,123,201,128,218,234,218,191,63,195,134,208,132,160,44,130,83,120,72,204,117,63,244,151,176,17,167,218,151,120,138,0,226,170,107,132,205,125,113,192,122,72,235,246,22,2,204,165,163,243,32,48,167,41,92,48,218,145,91,145,220,24,
|
|
462
462
|
185,188,149,147,184,222,139,181,15,13,237,193,41,56,184,233,224,57,205,222,24,250,130,232,27,176,50,99,15,233,85,216,90,86,108,225,84,48,11,246,212,193,189,18,105,102,53,107,40,125,101,123,24,206,99,208,239,212,95,197,38,158,151,234,177,28,181,99,229,86,67,178,111,244,159,16,156,33,1,175,202,243,91,131,47,40,143,13,157,69,150,14,37,158,133,251,93,36,219,210,207,130,118,76,93,217,191,114,126,251,233,200,97,248,105,50,31,106,222,24,144,95,77,146,249,166,218,101,54,219,132,117,135,29,22,142,135,11,178,
|
|
@@ -470,97 +470,96 @@ this.getBufferInfo().Ka(c);e="State "+this.getSurface().getMedia().readyState+"
|
|
|
470
470
|
21,58,231,13,118,215,58,166,74,44,51,103,50,120,198,197,213,64,34,105,66,115,72,235,88,51,28,238,54,93,147,140,187,28,173,50,109,5,234,155,141,29,52,234,135,38,55,103,111,116,98,171,210,13,211,129,249,70,57,64,155,151,38,8,225,188,229,3,247,234,26,46,91,211,250,252,38,87,111,205,37,108,74,168,112,74,116,191,73,170,243,167,54,36,20,23,72,67,35,181,159,241,102,250,221,22,18,92,161,54,236,172,183,214,18,160,199,92,46,171,180,211,90,64,62,144,121,201,77,74,211,17,244,49,124,244,120,116,148,234,184,79,
|
|
471
471
|
136,12,176,34,231,39,149,87,28,219,2,3,1,0,1,58,12,99,97,115,116,108,97,98,115,46,99,111,109,64,1,18,128,3,50,97,151,165,120,63,210,172,84,187,10,36,166,202,149,32,118,107,37,251,186,217,170,254,4,95,20,85,66,157,43,154,24,66,136,147,101,223,78,204,173,228,175,111,100,168,97,164,222,84,160,51,79,233,227,223,105,252,85,11,242,129,199,206,11,9,236,118,163,118,204,179,159,69,108,223,229,114,176,8,26,36,9,23,103,233,62,55,162,154,209,96,98,102,80,173,114,233,213,36,56,135,65,188,245,176,95,70,189,199,
|
|
472
472
|
143,81,72,182,124,207,225,238,28,172,144,110,89,44,12,137,51,52,239,130,117,119,15,207,200,229,142,166,8,80,79,111,255,191,70,47,189,108,75,234,184,241,119,21,255,98,167,124,132,30,239,102,113,7,132,96,39,134,123,220,209,255,110,222,35,147,0,77,125,253,129,139,66,158,126,221,13,117,113,163,143,235,9,130,180,3,133,94,152,45,199,69,168,182,95,122,82,25,203,10,99,191,186,193,238,225,224,140,156,142,171,110,26,214,32,240,6,218,138,10,47,114,133,17,1,151,43,213,223,198,210,186,81,18,50,221,84,177,180,
|
|
473
|
-
26,58,164,235,113,177,235,207,22,230,8,119,76,167,166,176,173,209,214,53,116,116,231,227,221,238,174,87,249,19,166,195,81,47,210,172,15,75,251,202,192,80,85,213,23,17,178,104,181,193,115,239,91,72,230,167,55,143,10,250,26,54,8,60,13,213,206,235,3,215,179,205,232,1,144,158,35,48,196,149,117,219,63,196,130,117,40,165,193,65,215,122,44,201,218,67,216,6,131,178,5,168,229,21,137,112,215,254,127,48,160,181,68,49,255,64,46,247,236,85,155,146,208,5,219,252,37,174,31,218,136,135,55,119,112]};_.
|
|
474
|
-
_.r.
|
|
475
|
-
has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.Ga()-b.getPosition()),b.skip(a)};_.H("clpp.utils.Mp4Parser",_.
|
|
476
|
-
for(var
|
|
477
|
-
43E3:"General Fairplay error",44E3:"General OMA error",44001:"OMA Device registration failed",45E3:"General CDRM error",45001:"CDRM Device registration failed",6E4:"CSL",60001:"CSL - INVALID",60100:"CSL - Denied by Stream Limiting",7E4:"General Output Protection",70001:"All keys filtered by EOP settings",8E4:"TAKE DOWN",80001:"TAKE DOWN - Denied by Take Down",9E4:"General GBL error",90001:"License delivery prohibited in your region"},
|
|
478
|
-
"2000","150"],audio:["2000","150"]},
|
|
479
|
-
certificateUrl:
|
|
480
|
-
_.r.
|
|
481
|
-
_.r.
|
|
482
|
-
b.a.keySystem.startsWith(_.Md)&&16!==l.byteLength&&(q=_.R.fromCharCode(l));(l=q||"")?b.g.info(sb+q+"': "+g):b.g.info("Key status global keys: "+g);b.l.set(l,g);d&&!d.keyId&&b.f.forEach(function(t,v){v===c||t.keyId!==q||t.loaded||(t.loaded=!0)})});d&&d.loaded&&d.Za.forEach(function(g){b.l.get(g)===
|
|
483
|
-
_.
|
|
484
|
-
_.r.unload=function(){var a=this,b;return _.E(function(c){if(!a.w)return c.F(0);a.log.debug(_.Qb,a.w);a.G&&(a.G.stop(),a.G=null);(b=a.getTrackManager())&&b.release();a.B&&(a.B.destroy(),a.B=null);a.
|
|
485
|
-
_.r.release=function(){var a=this;return _.
|
|
486
|
-
_.r.destroy=function(){var a=this;if(this.A)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.A=!0;return _.
|
|
487
|
-
_.r.detach=function(){};_.r.getTrackManager=function(){return this.
|
|
488
|
-
_.r.load=function(a){var b=this,c,d,e,f,g;return _.E(function(h){switch(h.a){case 1:if(b.A)return h["return"](
|
|
489
|
-
"native"]);b.
|
|
490
|
-
|
|
473
|
+
26,58,164,235,113,177,235,207,22,230,8,119,76,167,166,176,173,209,214,53,116,116,231,227,221,238,174,87,249,19,166,195,81,47,210,172,15,75,251,202,192,80,85,213,23,17,178,104,181,193,115,239,91,72,230,167,55,143,10,250,26,54,8,60,13,213,206,235,3,215,179,205,232,1,144,158,35,48,196,149,117,219,63,196,130,117,40,165,193,65,215,122,44,201,218,67,216,6,131,178,5,168,229,21,137,112,215,254,127,48,160,181,68,49,255,64,46,247,236,85,155,146,208,5,219,252,37,174,31,218,136,135,55,119,112]};_.$l.prototype.Ta=function(a,b){this.f[a]=b};_.H("clpp.drm.DrmEnvironment",_.$l);_.$l.prototype.setDrmSystem=_.$l.prototype.Ta;_.am.prototype.getPosition=function(){return this.a};_.am.prototype.Ga=function(){return this.f.byteLength};_.am.prototype.seek=function(a){(0>a||a>=this.f.byteLength)&&_.bm();this.a=a};_.dm.prototype.getPosition=function(){return this.a};_.dm.prototype.Ga=function(){return this.f.byteLength};_.dm.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.fm();this.a+=a};_.dm.prototype.seek=function(a){if(0>a||a>=this.f.byteLength)throw _.fm();this.a=a};_.H("clpp.utils.dataview.DataViewReader",_.dm);_.r=_.mm.prototype;_.r.L=function(a,b){var c=qm(a);this.h[c]=du;this.f[c]=b;return this};_.r.Y=function(a,b){var c=qm(a);this.h[c]=eu;this.f[c]=b;return this};_.r.stop=function(){this.a=!0};_.r.parse=function(a,b){var c=_.Ui(a);c=new _.dm(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.em(c)&&!this.a;)this.xe(0,c,b)};
|
|
474
|
+
_.r.xe=function(a,b,c){var d=b.getPosition(),e=_.W(b),f=_.W(b),g=!1;this.g.debug("Parsing MP4 box",_.rm(f));switch(e){case 0:e=b.Ga()-d;break;case 1:e=_.jm(b),g=!0}var h=this.f[f];if(h){var l=null,m=null;this.h[f]==eu&&(m=_.W(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.Ga()&&(n=b.Ga());n-=b.getPosition();b=0<n?_.lm(b,n):new Uint8Array(0);b=new _.dm(new DataView(b.buffer,b.byteOffset,b.byteLength),!1);h({parser:this,partialOkay:c||!1,version:l,flags:m,reader:b,size:e,start:d+a,headerSize:f,
|
|
475
|
+
has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.Ga()-b.getPosition()),b.skip(a)};_.H("clpp.utils.Mp4Parser",_.mm);_.mm.typeToString=_.rm;_.mm.allData=_.pm;_.mm.sampleDescription=_.om;_.mm.children=_.nm;_.mm.prototype.parseNext=_.mm.prototype.xe;_.mm.prototype.parse=_.mm.prototype.parse;_.mm.prototype.stop=_.mm.prototype.stop;_.mm.prototype.fullBox=_.mm.prototype.Y;_.mm.prototype.box=_.mm.prototype.L;_.mm.headerSize=_.sm;var du=0,eu=1;_.H("clpp.utils.FairplayUtils",tm);tm.parseFairPlayResponse=_.zm;tm.formatFairPlayRequest=_.ym;tm.createFairplayPayload=xm;tm.extractContentId=_.vm;tm.extractExtXKeyUri=um;var Lm=new _.K("clpp.drm.DrmToday"),Bm="PRODUCTION",Cm="STAGING",Dm="TEST",fu={PRODUCTION:Bm,STAGING:Cm,TEST:Dm};_.H("clpp.drm.DrmToday.Environment",fu);_.H("clpp.drm.DrmToday.WidevineCertificates",{V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"});
|
|
476
|
+
for(var Gm="/license-proxy-widevine/cenc/",Hm="/license-proxy-headerauth/drmtoday/RightsManager.asmx",Im="/license-server-fairplay/",Um={"00000":"Success","01000":"General Internal Error","02000":"General Request Error","03000":"General Request Authentication Error",3E4:"General DRM error",4E4:"General Widevine Modular error",40001:"Widevine Device Certificate Revocation (wv 127)",40002:"Widevine Device Certificate Revocation - Permanently (wv 175)",41E3:"General Widevine Classic error",42E3:"General Playready error",
|
|
477
|
+
43E3:"General Fairplay error",44E3:"General OMA error",44001:"OMA Device registration failed",45E3:"General CDRM error",45001:"CDRM Device registration failed",6E4:"CSL",60001:"CSL - INVALID",60100:"CSL - Denied by Stream Limiting",7E4:"General Output Protection",70001:"All keys filtered by EOP settings",8E4:"TAKE DOWN",80001:"TAKE DOWN - Denied by Take Down",9E4:"General GBL error",90001:"License delivery prohibited in your region"},gu={video:[eb,gb,fb,_.Vb,_.Ub],audio:[_.Vb,_.Ub]},hu={video:["3000",
|
|
478
|
+
"2000","150"],audio:["2000","150"]},iu=_.u(Object.keys(fu)),ju=iu.next();!ju.done;ju=iu.next()){var Am=ju.value,ku=Da;Am!==Bm&&(ku+="_"+Am);var lu=new _.$l(ku),mu=null;switch(Am){case Bm:mu=Zl("V1_PROD");break;case Cm:mu=Zl("V2");break;case Dm:mu=null}lu.Ta(_.Rd,{licenseUrl:Jm(_.Rd),videoRobustness:gu.video,audioRobustness:gu.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:mu,modifiers:{licenseRequest:_.Om,licenseResponse:_.Tm}});lu.Ta(_.Md,{licenseUrl:Jm(_.Md),
|
|
479
|
+
certificateUrl:Fm()+"/license-server-fairplay/cert/",modifiers:{licenseRequest:_.Qm,licenseResponse:_.Rm,extractContentId:_.Mm,certificateRequest:_.Sm}});lu.Ta(_.Pd,{licenseUrl:Jm(_.Pd),videoRobustness:hu.video,audioRobustness:hu.audio,modifiers:{licenseRequest:Pm}});_.Vl(lu)};_.H("clpp.drm.eme.EmeFactory",Wm);var Xm=[];Wm.Apis={STANDARD:Sb,APPLE:"APPLE",WEBKIT:"WEBKIT",NOP:"NOP"};var fn;_.nn=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];fn=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.w(en,dn);_.w(_.jn,dn);var pn=!!(performance&&performance.mark&&performance.measure);sn.prototype.j=function(a){if(1<a.version)_.J("Unrecognized PSSH version found!");else{var b=_.hj(_.lm(a.reader,16)),c=[];if(0<a.version)for(var d=_.W(a.reader),e=0;e<d;++e){var f=_.hj(_.lm(a.reader,16));c.push(f)}d=_.W(a.reader);a.reader.skip(d);this.h.push.apply(this.h,c);this.f.push(b);this.a.push({start:a.start,end:a.start+a.size-1});a.reader.getPosition()!=a.reader.Ga()&&_.J("Mismatch between box size and data size!")}};_.r=_.wn.prototype;_.r.destroy=function(){var a=this;return _.E(function(b){if(1==b.a){if(a.j)return _.x(b,a.Da,0);a.j=!0;return _.x(b,Dn(a),4)}a.Da.resolve();return b.F(0)})};_.r.keySystem=function(){return this.a?_.bo(this.a.keySystem):""};_.r.getDrmInfo=function(){return this.a};
|
|
480
|
+
_.r.uh=function(a){var b=this,c,d,e;return _.E(function(f){if(1==f.a){if(b.G&&b.J===En)return f["return"]();c=Math.floor(a.timeStamp);d="drm.msg."+c+ha;e="drm.msg."+c+".end";_.qn(d);return!b.h.delayLicenseRequestUntilPlayed||b.B&&!b.B.paused||b.Ka?_.x(f,no(b,a),2):(b.ga.push(a),f.F(2))}_.qn(e);_.rn("drm.sess.msg."+c,d,e);_.y(f)})};
|
|
481
|
+
_.r.ph=function(a){var b=this,c=a.target;this.g.info("Key status changed for session",c.sessionId);var d=this.f.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if(typeof h==_.Wf){var l=h;h=g;g=l}if(jo(b.a.keySystem)&&16===h.byteLength&&_.wk()){l=_.aj(h);var m=l.getUint32(0,!0),n=l.getUint16(4,!0),p=l.getUint16(6,!0);l.setUint32(0,m,!1);l.setUint16(4,n,!1);l.setUint16(6,p,!1)}d&&g!==Uf&&(d.loaded=!0);d&&d.Ha&&d.Ha.resolve();"expired"===g&&(e=!0);l=_.Ui(h);var q=_.hj(l);"00"===q&&d&&d.keyId?q=d.keyId:
|
|
482
|
+
b.a.keySystem.startsWith(_.Md)&&16!==l.byteLength&&(q=_.R.fromCharCode(l));(l=q||"")?b.g.info(sb+q+"': "+g):b.g.info("Key status global keys: "+g);b.l.set(l,g);d&&!d.keyId&&b.f.forEach(function(t,v){v===c||t.keyId!==q||t.loaded||(t.loaded=!0)})});d&&d.loaded&&d.Za.forEach(function(g){b.l.get(g)===Uf&&(b.g.warn(sb+g+fa),b.l.set(g,_.bf))});for(a=0;a<this.a.initData.length;a++){var f=this.a.initData[a];f.keyId&&this.l.get(f.keyId)===Uf&&_.ij(f.initData,d.initData)&&(this.g.warn(sb+f.keyId+fa),this.l.set(f.keyId,
|
|
483
|
+
_.bf))}a=c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.tb&&(this.g.debug("Session has expired",c.sessionId),(a=this.f.get(c))&&a.Oc&&a.Oc.stop(),this.f["delete"](c),c.close()["catch"](function(){}));eo(this)&&(this.H.resolve(),1!==this.f.size||e?this.ea.aa(.5):un(this))};var En=0,tn=3;_.ro=new Map;_.so=new _.K("clpp.text");_.Bo.prototype.getStats=function(){return{width:this.w,height:this.h,streamBandwidth:this.o,decodedFrames:this.j,droppedFrames:this.l,corruptedFrames:this.D,estimatedBandwidth:this.f,loadLatency:this.A,playTime:xo(this.a,_.Uo),pauseTime:xo(this.a,_.To),bufferingTime:xo(this.a,_.Lo),stateHistory:yo(this.a),switchHistory:Ao(this.B)}};_.Do.prototype.value=function(){void 0==this.a&&(this.a=this.f());return this.a};var Eo=new _.Do(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.Fe],[HTMLMediaElement.HAVE_CURRENT_DATA,_.Ee],[HTMLMediaElement.HAVE_FUTURE_DATA,kd],[HTMLMediaElement.HAVE_ENOUGH_DATA,ld]])});Jo.prototype.cc=function(a,b){this.m&&this.m.trigger(new _.L(a,{detail:b}))};Jo.prototype.getState=function(){return Mo(this,"")};Jo.prototype.U=function(a){(a=a&&a.detail)&&a.severity&&a.severity===_.Q&&Qo(this,_.Ro)};Jo.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.m.namespace());this.a.release()};_.H("clpp.utils.media.detectType",Wo);var Zo=new _.K("clpp.sources");_.w($o,_.Dl);_.r=$o.prototype;_.r.init=function(a,b){_.Dl.prototype.init.call(this,a,b);this.j=new Jo(this);Qo(this.j,_.Go)};_.r.namespace=function(){return Gd};
|
|
484
|
+
_.r.unload=function(){var a=this,b;return _.E(function(c){if(!a.w)return c.F(0);a.log.debug(_.Qb,a.w);a.G&&(a.G.stop(),a.G=null);(b=a.getTrackManager())&&b.release();a.B&&(a.B.destroy(),a.B=null);a.P&&(a.P.destroy(),a.P=null);a.l&&a.l.release();a.o&&(a.o.destroy(),a.o=null);_.Hh(a.h);a.f&&(a.f=new _.Bo);a.H=null;a.w=null;a.I=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());return _.x(c,dp(a),0)})};
|
|
485
|
+
_.r.release=function(){var a=this;return _.Dl.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.j&&Qo(a.j,_.Go)})};
|
|
486
|
+
_.r.destroy=function(){var a=this;if(this.A)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.A=!0;return _.Dl.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Ha);var b=a.getTrackManager();b&&b.destroy();a.l&&(a.l.destroy()["catch"](function(c){a.log.warn("Error while disposing metadata handler",c)}),a.l=null);a.j&&(a.j.destroy(),a.j=null);a.f=null})};_.r.getDrmInfo=function(){return this.o?this.o.getDrmInfo():null};
|
|
487
|
+
_.r.detach=function(){};_.r.getTrackManager=function(){return this.ld};
|
|
488
|
+
_.r.load=function(a){var b=this,c,d,e,f,g;return _.E(function(h){switch(h.a){case 1:if(b.A)return h["return"](ap());if(!b.getSurface()||!b.getSurface().getMedia())return h["return"](Promise.reject("No surface or no media element in surface"));c=_.N;d=b.D.getMedia();b.J=Date.now()/1E3;b.f=new _.Bo;b.h.on(b,_.Tf,function(){b.f&&_.wo(b.f.a,b.getState())});Qo(b.j,_.So);b.w=_.Yo(a);_.Cl(a)&&(b.configuration=_.Bl(b.fe,a));b.log.debug(_.vb,b.configuration);b.log.debug(_.Ib,b.w);e=_.uo(b.configuration,[_.se,
|
|
489
|
+
"native"]);b.P=e.create(b);b.P.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.Fl(_.$f)&&!_.Dk()&&(b.B=new hi(b),b.B.start(d));b.l?b.l.release():b.l=new Jh(b);Lh(b.l,d);f=b.getTrackManager();f.load();d.loop=!!b.configuration.loop;c.R(b.configuration.volume)||b.setVolume(b.configuration.volume);c.R(b.configuration.muted)||b.setMuted(b.configuration.muted);b.h.one(d,kd,function(){b.trigger(new _.L(_.bu))});null==b.configuration.startTime&&ip(b,d);_.A(h,2);return _.x(h,cp(b,d),4);case 4:return _.x(h,
|
|
490
|
+
fp(b),5);case 5:return _.x(h,hp(b).O,6);case 6:_.ah(h,0);break;case 2:g=_.C(h),b.I=!1,b.onError(g),_.y(h)}})};_.r.onError=function(a){this.I||(a.severity===_.Q&&null!==this.j&&Qo(this.j,_.Ro),this.trigger(new _.L(_.ne,{detail:a})))};_.r.xg=function(){return new Xk};_.r.getState=function(){return null!==this.j?this.j.getState().currentState:_.Ho};
|
|
491
491
|
_.r.getPresentationStartTime=function(){if(this.a&&this.a.getStartDate&&this.isLive()){var a=this.a.getStartDate();return isNaN(a.getTime())?(this.log.warn("EXT-X-PROGRAM-DATETIME required to get presentation start time as Date!"),null):a.getTime()/1E3}return null};_.r.getSeekRange=function(){var a=this.getSurface().getMedia();if(a&&a.src){a=a.seekable;if(a.length)return this.H=a={start:a.start(0),end:a.end(a.length-1)};if(this.H)return this.H}return{start:0,end:0}};
|
|
492
492
|
_.r.isLive=function(){return this.a&&this.a.src?Infinity===this.a.duration:!1};
|
|
493
|
-
_.r.getStats=function(){if(!this.f||!this.a)return _.
|
|
494
|
-
_.r.getTimelineCues=function(){return this.l?this.l.getTimelineCues():[]};
|
|
495
|
-
_.r.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(xd):this.g.debug("No media element available that could be shown")};_.r.addElementToContainer=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.getContainer();if(!d)throw Error("No container is available. Unable to add element");b&&_.
|
|
496
|
-
_.r.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.r.hide=function(a){_.
|
|
497
|
-
|
|
498
|
-
_.r.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.r.unload=function(){return this.a?this.a.unload():Promise.resolve()};_.r.detach=function(){return this.a?this.a.detach():Promise.resolve()};_.r.release=function(){var a=this;if(null!=this.l)return this.g.info("Player release already in progress"),this.l;this.g.debug("Releasing player");this.l=
|
|
499
|
-
_.r.destroy=function(){var a=this;if(this.H)return this.g.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.H=!0;return this.release().then(function(){a.g.debug(Ha);a.trigger(new _.L("destroying"));return a.
|
|
500
|
-
_.r.load=function(a){var b=this,c;return _.E(function(d){switch(d.a){case 1:return _.A(d,2),_.
|
|
501
|
-
_.r.preload=function(a){var b=this,c;return _.E(function(d){if(1==d.a)return _.x(d,_.
|
|
502
|
-
_.r.remove=function(a){return(this.getState()<=_.
|
|
503
|
-
_.r.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.
|
|
504
|
-
_.r.seek=function(a){return this.getState()===_.
|
|
505
|
-
_.r.getDuration=function(){return this.a?this.a.getDuration():-1};_.r.getAdsManager=function(){return this.j};_.r.namespace=function(){return this.a&&this.a.namespace()||"Undefined"};_.r.canPlay=function(a,b){return this.a?this.a.canPlay(a,b):0};_.r.getPlaybackRate=function(){return this.a?this.a.getPlaybackRate():1};_.r.setPlaybackRate=function(a){this.a&&this.a.setPlaybackRate(a)};_.r.isMuted=function(){return this.a&&this.a.isMuted()||!1};_.r.setMuted=function(a){this.a&&this.a.setMuted(a)};
|
|
493
|
+
_.r.getStats=function(){if(!this.f||!this.a)return _.Co();this.f&&_.wo(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.w=a.videoWidth;b.h=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.l=Number(a.droppedVideoFrames),b.j=c,this.f.D=Number(a.corruptedVideoFrames));if(a=this.getTrackManager())if(a=a.ia())a.bandwidth&&(this.f.o=a.bandwidth),a.kd&&(this.f.f=a.kd);return this.f.getStats()};
|
|
494
|
+
_.r.getTimelineCues=function(){return this.l?this.l.getTimelineCues():[]};jp.prototype.a=function(){return Gd};jp.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.Tc,e=c===_.Yc,f=c===_.dl;return _.Ak()||d||e||f&&!_.Bk()?0:""!==Gk().canPlayType(c)?f&&_.Bk()&&(window.ManagedMediaSource||window.MediaSource&&MediaSource.isTypeSupported)&&!b.streaming.preferNativeHlsOnSafari?1:2:0};jp.prototype.create=function(){return new $o};_.zh(new jp);_.H("clpp.ads.PodType",{PREROLL:0,MIDROLL:1,POSTROLL:2});_.H("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1});_.H("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var lp=new _.K("clpp.ads"),kp=[];_.H("clpp.utils.dom.createHTMLElement",_.sp);tp.prototype.set=function(a){this.h.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=vp(this,a)};tp.prototype.get=function(){return this.a};_.r=zp.prototype;_.r.getMedia=function(){return this.f.get()};_.r.getContainer=function(){return this.a.get()};_.r.getSafeContainer=function(){return this.a};_.r.getId=function(){return this.l};_.r.getUniqueCssClass=function(){return this.o};_.r.getCastElement=function(){return this.h};_.r.isFullscreen=function(){return!!document.fullscreenElement};_.r.hideMediaElement=function(){var a=this.getMedia();a?_.qp(a,xd):this.g.debug("No media element available that could be hidden")};
|
|
495
|
+
_.r.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(xd):this.g.debug("No media element available that could be shown")};_.r.addElementToContainer=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.getContainer();if(!d)throw Error("No container is available. Unable to add element");b&&_.qp(a,_.wd);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
|
|
496
|
+
_.r.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.r.hide=function(a){_.qp(a,xd)};_.r.show=function(a){a.classList.remove(xd)};_.r.release=function(){this.j.release()};zp.prototype.removeElementFromContainer=zp.prototype.removeElementFromContainer;zp.prototype.addElementToContainer=zp.prototype.addElementToContainer;zp.prototype.getCastElement=zp.prototype.getCastElement;
|
|
497
|
+
zp.prototype.getContainer=zp.prototype.getContainer;zp.prototype.getMedia=zp.prototype.getMedia;var wp={disableContainer:!1,webOSStartupPatch:!0,crossorigin:"anonymous",containerEl:null},xp=1;Bp.prototype.release=function(){this.a.release();Fp(this);this.m=null};_.H("clpp.polyfill.installAll",Ip);var Hp=[];_.H("clpp.polyfill.register",_.Jp);Lp.prototype.verify=function(a,b){var c=_.R.Va,d={kty:"RSA",n:a.n,e:a.e},e=this.h+"."+this.f,f=this.j;return new Promise(function(g,h){try{var l=window&&window.crypto&&window.crypto.subtle}catch(n){}if(l){var m={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};l.importKey("jwk",d,m,!1,["verify"]).then(function(n){var p=c(e),q=_.fj(f);return l.verify(m,n,q.buffer,p.buffer)}).then(function(n){n?g():h(Zb)})["catch"](h)}else b?h("Web Crypto API is not supported"):g()})};var nu={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},xl="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";Mp.prototype.verify=function(){var a=this;return(new Promise(function(b,c){try{var d=Np(a);b(d)}catch(e){c()}})).then(function(b){return b.verify(nu)})["catch"](function(b){if(b&&b!==Zb){var c=window.location.href;var d=new _.qi(c);c=d.eb||d.Na?d:new _.qi("//"+c);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(c.Na))return Promise.resolve()}throw b;})};var Yp="vod",Xp="live";_.w(X,_.tl);_.r=X.prototype;_.r.on=function(a,b,c){return _.tl.prototype.on.call(this,a,b,c)};_.r.one=function(a,b,c){return _.tl.prototype.one.call(this,a,b,c)};_.r.off=function(a,b){return _.tl.prototype.off.call(this,a,b)};_.r.init=function(){};_.r.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.L(_.ne,{detail:a}))};_.r.nc=function(a){a=this.M[a];void 0===a&&(a=null);return a};_.r.getSurface=function(){return this.h};_.r.getConfiguration=function(){return _.N.Ma(this.f)};
|
|
498
|
+
_.r.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.r.unload=function(){return this.a?this.a.unload():Promise.resolve()};_.r.detach=function(){return this.a?this.a.detach():Promise.resolve()};_.r.release=function(){var a=this;if(null!=this.l)return this.g.info("Player release already in progress"),this.l;this.g.debug("Releasing player");this.l=eq(this);return this.l["finally"](function(){a.g.debug("Player released");a.l=null})};
|
|
499
|
+
_.r.destroy=function(){var a=this;if(this.H)return this.g.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.H=!0;return this.release().then(function(){a.g.debug(Ha);a.trigger(new _.L("destroying"));return a.vc(_.We)}).then(function(){a.a&&a.a.removeDelegate(a);a.wd.clear();a.V.release();if(a.a)return a.a.destroy()}).then(function(){return a.B.destroy()}).then(function(){Nl();a.a=null;a.trigger(new _.L("destroyed"))})};
|
|
500
|
+
_.r.load=function(a){var b=this,c;return _.E(function(d){switch(d.a){case 1:return _.A(d,2),_.qn(nf),_.x(d,_.jq(b,a),4);case 4:return _.x(d,_.kq(b),5);case 5:return _.x(d,_.gq(b),6);case 6:_.qn(mf);_.rn("player.load",nf,mf);_.ah(d,0);break;case 2:c=_.C(d);if(b.l)throw b.g.info("Load interrupted while a player release is pending"),new _.P(_.Q,7,7E3);throw c;}})};
|
|
501
|
+
_.r.preload=function(a){var b=this,c;return _.E(function(d){if(1==d.a)return _.x(d,_.jq(b,a),2);if(!b.a)return b.g.warn(Hb),d["return"]();c=b.a;return c.preload?_.x(d,c.preload(b.f),0):(b.g.warn(Nb),d["return"]())})};_.r.vc=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];var e=this;d=this.K.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.Og(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};_.r.use=function(a){(a=Ol(a))&&a.o(this)};
|
|
502
|
+
_.r.remove=function(a){return(this.getState()<=_.Go||this.I)&&null!==Il(a)?(Pl(a),this.J=!0):!1};_.r.play=function(){return this.a?this.j&&this.a.namespace()!==_.Cd?this.j.start(this.a):this.a.play():Promise.reject("No player initialized. You need to load content before calling play.")};_.r.pause=function(){return this.a?this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};_.r.getTrackManager=function(){return this.a&&this.a.getTrackManager()};
|
|
503
|
+
_.r.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.sl};_.r.getState=function(){return this.a?this.a.getState():_.Go};_.r.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.r.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.r.isPaused=function(){return this.a&&this.a.isPaused()||!1};_.r.getPosition=function(){return this.a?this.a.getPosition():0};
|
|
504
|
+
_.r.seek=function(a){return this.getState()===_.Ro?Promise.reject("Cannot seek in current state."):this.a?this.a.seek(a):Promise.reject("delegate does not exist")};_.r.getPresentationStartTime=function(){return this.a?this.a.getPresentationStartTime():null};_.r.getSeekRange=function(){return this.a?this.a.getSeekRange():{start:0,end:0}};_.r.Uc=function(){var a=this.a;return a&&a.Uc?a.Uc():null};_.r.getVolume=function(){return this.a?this.a.getVolume():null};_.r.setVolume=function(a){this.a&&this.a.setVolume(a)};
|
|
505
|
+
_.r.getDuration=function(){return this.a?this.a.getDuration():-1};_.r.getAdsManager=function(){return this.j};_.r.namespace=function(){return this.a&&this.a.namespace()||"Undefined"};_.r.canPlay=function(a,b){return this.a?this.a.canPlay(a,b):0};_.r.getPlaybackRate=function(){return this.a?this.a.getPlaybackRate():1};_.r.setPlaybackRate=function(a,b){this.a&&this.a.setPlaybackRate(a,b)};_.r.isMuted=function(){return this.a&&this.a.isMuted()||!1};_.r.setMuted=function(a){this.a&&this.a.setMuted(a)};
|
|
506
506
|
_.r.getNetworkEngine=function(){return this.B};_.r.setNetworkEngine=function(a){this.B=a};_.r.getTextDisplayer=function(){return this.a&&this.a.getTextDisplayer()};_.r.isLive=function(){return!!this.a&&this.a.isLive()};_.r.getStats=function(){return this.a?this.a.getStats():null};_.r.le=function(){return Object.freeze(this.o)};_.r.setSourceIndex=function(a){this.a&&this.a.setSourceIndex(a)};_.r.getSourceIndex=function(){return this.a?this.a.getSourceIndex():-1};
|
|
507
|
-
_.r.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};_.r.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.r.he=function(){return this.a?this.a.he():null};_.r.resetAbr=function(){this.a&&this.a.resetAbr()};_.r.setDrmCustomDataModifier=function(a){this.Qc=a;
|
|
507
|
+
_.r.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};_.r.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.r.he=function(){return this.a?this.a.he():null};_.r.resetAbr=function(){this.a&&this.a.resetAbr()};_.r.setDrmCustomDataModifier=function(a){this.Qc=a;iq(this)};_.r.setCdnErrorCallback=function(a){this.G=a;this.a&&this.a.setCdnErrorCallback(this.G)};_.r.jh=function(){this.Ze=!0};_.H("clpp.Player",X);X.registerPlugin=_.mq;
|
|
508
508
|
X.prototype.setCdnErrorCallback=X.prototype.setCdnErrorCallback;X.prototype.setDrmCustomDataModifier=X.prototype.setDrmCustomDataModifier;X.prototype.resetAbr=X.prototype.resetAbr;X.prototype.getTimelineCues=X.prototype.getTimelineCues;X.prototype.getLoadedSource=X.prototype.getLoadedSource;X.prototype.getSources=X.prototype.le;X.prototype.getStats=X.prototype.getStats;X.prototype.isLive=X.prototype.isLive;X.prototype.getTextDisplayer=X.prototype.getTextDisplayer;X.prototype.setNetworkEngine=X.prototype.setNetworkEngine;
|
|
509
509
|
X.prototype.getNetworkEngine=X.prototype.getNetworkEngine;X.prototype.setMuted=X.prototype.setMuted;X.prototype.isMuted=X.prototype.isMuted;X.prototype.setPlaybackRate=X.prototype.setPlaybackRate;X.prototype.getPlaybackRate=X.prototype.getPlaybackRate;X.prototype.namespace=X.prototype.namespace;X.prototype.getAdsManager=X.prototype.getAdsManager;X.prototype.getDuration=X.prototype.getDuration;X.prototype.setVolume=X.prototype.setVolume;X.prototype.getVolume=X.prototype.getVolume;
|
|
510
510
|
X.prototype.getTimelineOffset=X.prototype.Uc;X.prototype.getSeekRange=X.prototype.getSeekRange;X.prototype.getPresentationStartTime=X.prototype.getPresentationStartTime;X.prototype.seek=X.prototype.seek;X.prototype.getPosition=X.prototype.getPosition;X.prototype.isPaused=X.prototype.isPaused;X.prototype.isEnded=X.prototype.isEnded;X.prototype.getState=X.prototype.getState;X.prototype.getBufferInfo=X.prototype.getBufferInfo;X.prototype.getTrackManager=X.prototype.getTrackManager;
|
|
511
|
-
X.prototype.pause=X.prototype.pause;X.prototype.play=X.prototype.play;X.prototype.remove=X.prototype.remove;X.prototype.use=X.prototype.use;X.prototype.load=X.prototype.load;X.prototype.destroy=X.prototype.destroy;X.prototype.release=X.prototype.release;X.prototype.getDrmInfo=X.prototype.getDrmInfo;X.prototype.getConfiguration=X.prototype.getConfiguration;X.prototype.getSurface=X.prototype.getSurface;X.prototype.getPlugin=X.prototype.
|
|
512
|
-
X.prototype.on=X.prototype.on;_.
|
|
513
|
-
|
|
514
|
-
_.r.
|
|
515
|
-
_.r.
|
|
516
|
-
_.r.
|
|
517
|
-
a.j=!1;b&&
|
|
518
|
-
_.r.
|
|
519
|
-
a.a+")");case 3:_.
|
|
520
|
-
|
|
511
|
+
X.prototype.pause=X.prototype.pause;X.prototype.play=X.prototype.play;X.prototype.remove=X.prototype.remove;X.prototype.use=X.prototype.use;X.prototype.load=X.prototype.load;X.prototype.destroy=X.prototype.destroy;X.prototype.release=X.prototype.release;X.prototype.getDrmInfo=X.prototype.getDrmInfo;X.prototype.getConfiguration=X.prototype.getConfiguration;X.prototype.getSurface=X.prototype.getSurface;X.prototype.getPlugin=X.prototype.nc;X.prototype.off=X.prototype.off;X.prototype.one=X.prototype.one;
|
|
512
|
+
X.prototype.on=X.prototype.on;_.Go=0;_.So=1;_.Lo=2;_.Uo=3;_.To=4;_.No=5;_.Ro=6;_.Ho=7;_.Po={IDLE:_.Go,PREPARING:_.So,BUFFERING:_.Lo,PLAYING:_.Uo,PAUSED:_.To,ENDED:_.No,ERROR:_.Ro,UNSET:_.Ho};X.State=_.Po;var bq=[];nq.prototype.has=function(){return this.a.some(function(a){return a.Xd})};nq.prototype.get=function(){var a=this,b;return _.E(function(c){if(1==c.a){b=a.a.find(function(d){return d.Xd});if(!b)throw Error("No available players in the pool");b.Xd=!1;return _.x(c,b.ready,2)}return c["return"](b.player)})};
|
|
513
|
+
nq.prototype.release=function(a){var b=this,c=this.a.find(function(d){return d.player===a});if(!c)return Promise.resolve();c.Xd=!0;c.ready=new Promise(function(d){a.unload()["catch"](function(e){b.g.error("Failed to unload player",e)}).then(d)});return c.ready};nq.prototype.destroy=function(){var a=this;return _.E(function(b){return _.x(b,Promise.all(a.a.map(function(c){return c.player.destroy()})),0)})};_.w(qq,_.tl);_.r=qq.prototype;_.r.zd=function(){return this.f};_.r.zb=function(){return this.f?this.f.player:null};_.r.Mg=function(){return this.l.get(this.a+1)||null};_.r.Og=function(){return this.l.get(this.a-1)||null};_.r.ff=function(){return[this.Og(),this.Mg()].filter(Boolean)};_.r.im=function(a){if(0<this.h.length)throw Error("Cannot re-set items in the playlist");this.g.info("Set items",a);this.h=a.map(function(b,c){return{config:b,index:c,preloadPromise:Promise.resolve()}})};
|
|
514
|
+
_.r.hm=function(a){if(0===this.h.length)throw Error(Bb);if(0>a||a>this.h.length-1)throw Error("Index out of bounds");this.a=a};_.r.Wc=function(){return this.a<this.h.length-1};_.r.Tg=function(){return 0<this.a};
|
|
515
|
+
_.r.Sl=function(){var a=this,b,c;return _.E(function(d){switch(d.a){case 1:if(a.j)return a.g.warn("Cannot play first item while busy"),d["return"]();if(0===a.h.length)return a.g.warn(Bb),d["return"]();a.j=!0;a.g.info("First (index: "+a.a+")");b=a.h[a.a];_.A(d,2,3);a.g.info("First loading (index: "+a.a+")");return _.x(d,wq(a,b),5);case 5:a.g.info("First playing (index: "+a.a+")");case 3:_.bh(d);a.j=!1;Bq(a);_.ch(d,0);break;case 2:throw c=_.C(d),a.g.error("First failed (index: "+a.a+")"),c;}})};
|
|
516
|
+
_.r.Tl=function(){var a=this,b,c,d;return _.E(function(e){switch(e.a){case 1:if(a.j)return a.g.warn("Cannot play next item while busy"),e["return"]();if(!a.Wc())return a.g.warn("There are no more items in the playlist"),e["return"]();a.j=!0;a.a+=1;a.g.info("Next (index: "+a.a+")");b=a.f;a.w.transition===_.cf&&b.player.pause();rq(a,a.a+-2);a.l["delete"](a.a);c=a.h[a.a];_.A(e,2,3);a.g.info("Next loading (index: "+a.a+")");return _.x(e,xq(a,c),5);case 5:a.g.info("Next playing (index: "+a.a+")");case 3:_.bh(e);
|
|
517
|
+
a.j=!1;b&&uq(a,b);Bq(a);_.ch(e,0);break;case 2:throw d=_.C(e),a.g.error("Next failed (index: "+a.a+")"),d;}})};
|
|
518
|
+
_.r.Ul=function(){var a=this,b,c,d;return _.E(function(e){switch(e.a){case 1:if(a.j)return a.g.warn("Cannot play previous item while busy"),e["return"]();if(!a.Tg())return a.g.warn("There are no more previous items in the playlist"),e["return"]();a.j=!0;--a.a;a.g.info("Previous (index: "+a.a+")");b=a.f;a.w.transition===_.cf&&b.player.pause();rq(a,a.a+2);a.l["delete"](a.a);c=a.h[a.a];_.A(e,2,3);a.g.info("Previous loading (index: "+a.a+")");return _.x(e,xq(a,c),5);case 5:a.g.info("Previous playing (index: "+
|
|
519
|
+
a.a+")");case 3:_.bh(e);a.j=!1;b&&uq(a,b);Bq(a);_.ch(e,0);break;case 2:throw d=_.C(e),a.g.error("Previous failed (index: "+a.a+")"),d;}})};_.r.destroy=function(){var a=this;return _.E(function(b){return 1==b.a?(a.g.info("Destroy"),_.x(b,Promise.all([sq(a),a.f?uq(a,a.f):Promise.resolve()]),2)):_.x(b,Cq(a),0)})};_.H(Hd,qq);qq.prototype.destroy=qq.prototype.destroy;qq.prototype.playPrev=qq.prototype.Ul;qq.prototype.playNext=qq.prototype.Tl;qq.prototype.playFirst=qq.prototype.Sl;
|
|
520
|
+
qq.prototype.hasPrev=qq.prototype.Tg;qq.prototype.hasNext=qq.prototype.Wc;qq.prototype.setIndex=qq.prototype.hm;qq.prototype.setItems=qq.prototype.im;qq.prototype.getPreloading=qq.prototype.ff;qq.prototype.getPrev=qq.prototype.Og;qq.prototype.getNext=qq.prototype.Mg;qq.prototype.getCurrentPlayer=qq.prototype.zb;qq.prototype.getCurrent=qq.prototype.zd;var tq="preload",vq=_.He;_.w(Fq,_.tl);_.r=Fq.prototype;_.r.getCurrentItem=function(){return this.a};_.r.zb=function(){return this.a?this.a.player:null};_.r.ff=function(){return Array.from(this.f.values())};_.r.Wd=function(a){this.g.info("Add items",a);this.j=this.j.concat(a.map(function(b){return Object.assign({},b,{state:"idle",jc:[],preloadPromise:Promise.resolve(),Jd:Promise.resolve()})}))};_.r.removeItems=function(a){this.g.info("Remove items",a);a?this.j=this.j.filter(function(b){return!a.includes(b.id)}):this.j=[]};
|
|
521
521
|
_.r.Wc=function(){return 0<this.f.size};
|
|
522
|
-
_.r.play=function(a){var b=this,c,d,e,f;return _.E(function(g){switch(g.a){case 1:if(b.h)return b.g.warn("Cannot play item while busy (ID: "+a+")"),g["return"]();c=b.getItem(a);if(!c)return b.g.warn(rb+a+")"),g["return"]();b.g.info("Play item (ID: "+a+")");b.h=!0;(d=b.a)&&d.player.pause();(e=b.f.has(a))&&b.f["delete"](a);_.A(g,2,3);b.g.info(qb+a+")");return e?_.x(g,
|
|
523
|
-
b.h=!1;d&&
|
|
524
|
-
_.r.load=function(a){var b=this,c,d,e,f;return _.E(function(g){switch(g.a){case 1:if(b.h)return b.g.warn("Cannot load item while busy (ID: "+a+")"),g["return"]();c=b.getItem(a);if(!c)return b.g.warn(rb+a+")"),g["return"]();b.g.info("Load item (ID: "+a+")");b.h=!0;(d=b.a)&&d.player.pause();(e=b.f.has(a))&&b.f["delete"](a);_.A(g,2,3);b.g.info(qb+a+")");if(e){b.g.error("Loading preloaded items is not supported");g.F(5);break}return _.x(g,
|
|
525
|
-
a+")");case 3:_.
|
|
526
|
-
_.r.destroy=function(){var a=this;return _.E(function(b){return 1==b.a?(a.g.info("Destroy"),_.x(b,a.release(),2)):_.x(b,
|
|
527
|
-
|
|
528
|
-
_.r.unload=function(){var a=this;return _.E(function(b){if(1==b.a)return _.x(b,a.a.release(),2);a.j=[];_.y(b)})};_.r.destroy=function(){var a=this;return _.E(function(b){return _.x(b,a.a.destroy(),0)})};_.r.
|
|
529
|
-
_.r.getCurrentItem=function(){return this.a.getCurrentItem()};_.H(Fd,
|
|
530
|
-
var
|
|
531
|
-
_.r.Sb=function(){};_.r.Tb=function(){};_.r.Db=function(){};_.r.getWrapperAdIds=function(){};_.r.getWrapperAdSystems=function(){};_.r.getWrapperCreativeIds=function(){};_.H("clpp.ads.IAd",
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
_.r.
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
_.r.generateRequest=function(a,b){var c=this;if(this.l)return Promise.reject(Wb);this.g.debug("generateRequest");this.h=new _.
|
|
540
|
-
e);c.f&&(
|
|
541
|
-
c.f=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:
|
|
542
|
-
_.r.close=function(){if(this.l)return this.closed;this.g.info("Closing Key Session "+this.sessionId);this.l=!0;try{this.a.close(),this.closed.resolve(),_.
|
|
543
|
-
|
|
544
|
-
_.r.
|
|
545
|
-
|
|
546
|
-
_.r.close=function(){_.
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",
|
|
551
|
-
var
|
|
522
|
+
_.r.play=function(a){var b=this,c,d,e,f;return _.E(function(g){switch(g.a){case 1:if(b.h)return b.g.warn("Cannot play item while busy (ID: "+a+")"),g["return"]();c=b.getItem(a);if(!c)return b.g.warn(rb+a+")"),g["return"]();b.g.info("Play item (ID: "+a+")");b.h=!0;(d=b.a)&&d.player.pause();(e=b.f.has(a))&&b.f["delete"](a);_.A(g,2,3);b.g.info(qb+a+")");return e?_.x(g,Sq(b,c),6):_.x(g,Qq(b,c),6);case 6:c.uc&&c.uc(),b.trigger(new _.L(ve,{detail:c})),Iq(b,c),b.g.info("Item playing (ID: "+a+")");case 3:_.bh(g);
|
|
523
|
+
b.h=!1;d&&Oq(b,d);Jq(b);Kq(b,c.next);_.ch(g,0);break;case 2:throw f=_.C(g),b.g.error(pb+a+")"),f;}})};
|
|
524
|
+
_.r.load=function(a){var b=this,c,d,e,f;return _.E(function(g){switch(g.a){case 1:if(b.h)return b.g.warn("Cannot load item while busy (ID: "+a+")"),g["return"]();c=b.getItem(a);if(!c)return b.g.warn(rb+a+")"),g["return"]();b.g.info("Load item (ID: "+a+")");b.h=!0;(d=b.a)&&d.player.pause();(e=b.f.has(a))&&b.f["delete"](a);_.A(g,2,3);b.g.info(qb+a+")");if(e){b.g.error("Loading preloaded items is not supported");g.F(5);break}return _.x(g,Pq(b,c),5);case 5:b.trigger(new _.L(ve,{detail:c})),Iq(b,c),b.g.info("Item loaded (ID: "+
|
|
525
|
+
a+")");case 3:_.bh(g);b.h=!1;d&&Oq(b,d);Jq(b);Kq(b,c.next);_.ch(g,0);break;case 2:throw f=_.C(g),b.g.error(pb+a+")"),f;}})};_.r.getItem=function(a){return this.j.find(function(b){return b.id===a})||null};_.r.release=function(){var a=this;return _.E(function(b){if(1==b.a)return _.x(b,Promise.all([Jq(a),a.a?Oq(a,a.a):Promise.resolve()]),2);a.a=null;a.h=!1;a.removeItems();Hq(a,!0);_.y(b)})};
|
|
526
|
+
_.r.destroy=function(){var a=this;return _.E(function(b){return 1==b.a?(a.g.info("Destroy"),_.x(b,a.release(),2)):_.x(b,Uq(a),0)})};Fq.prototype.destroy=Fq.prototype.destroy;Fq.prototype.release=Fq.prototype.release;Fq.prototype.getItem=Fq.prototype.getItem;Fq.prototype.load=Fq.prototype.load;Fq.prototype.play=Fq.prototype.play;Fq.prototype.hasNext=Fq.prototype.Wc;Fq.prototype.removeItems=Fq.prototype.removeItems;Fq.prototype.addItems=Fq.prototype.Wd;Fq.prototype.getPreloading=Fq.prototype.ff;
|
|
527
|
+
Fq.prototype.getCurrentPlayer=Fq.prototype.zb;Fq.prototype.getCurrentItem=Fq.prototype.getCurrentItem;var Nq="preload",Rq=_.He;_.w(Zq,_.tl);_.r=Zq.prototype;_.r.load=function(a){var b=this,c;return _.E(function(d){if(1==d.a)return _.x(d,ar(b,a,!1),2);b.trigger(new _.L(ou));c=b.a.getCurrentItem();c.primary&&b.trigger(new _.L(Ar));_.y(d)})};_.r.yd=function(){var a=this.l;return a?this.j.map(function(b){return{cueId:b.cueId,startTime:b.startTime,endTime:b.endTime,primaryDuration:a}}):[]};_.r.Hk=function(a){var b=this;return _.E(function(c){return _.x(c,ar(b,a,!0),0)})};
|
|
528
|
+
_.r.unload=function(){var a=this;return _.E(function(b){if(1==b.a)return _.x(b,a.a.release(),2);a.j=[];_.y(b)})};_.r.destroy=function(){var a=this;return _.E(function(b){return _.x(b,a.a.destroy(),0)})};_.r.vm=function(){var a=this,b;return _.E(function(c){if(1==c.a)return _.x(c,Gq(a.a),2);a.trigger(new _.L(ou));b=a.a.getCurrentItem();b.primary&&a.trigger(new _.L(Ar));_.y(c)})};_.r.getPosition=function(){var a=this.a.zb();return a?a.getPosition():null};_.r.zb=function(){return this.a.zb()};
|
|
529
|
+
_.r.getCurrentItem=function(){return this.a.getCurrentItem()};_.H(Fd,Zq);Zq.prototype.getCurrentItem=Zq.prototype.getCurrentItem;Zq.prototype.getCurrentPlayer=Zq.prototype.zb;Zq.prototype.getPosition=Zq.prototype.getPosition;Zq.prototype.unpause=Zq.prototype.vm;Zq.prototype.destroy=Zq.prototype.destroy;Zq.prototype.unload=Zq.prototype.unload;Zq.prototype.loadPaused=Zq.prototype.Hk;Zq.prototype.getCues=Zq.prototype.yd;Zq.prototype.load=Zq.prototype.load;
|
|
530
|
+
var gr="new",mr="preparing",or="ready",zr="completed",pr="failed",nr="interstitial-preload-started",qr="x-asset-list-request-started",sr="x-asset-list-request-ended",vr="interstitial-scheduled",xr="interstitial-started",yr="interstitial-ended",wr="interstitial-item-started",Yq="primary-player-changed",Vq="item-changed",ou="playback-started",Ar="primary-started",kr="primary-ended",fr="cues-changed";_.r=Cr.prototype;_.r.xb=function(){};_.r.yb=function(){};_.r.Eb=function(){};_.r.getId=function(){};_.r.getCreativeId=function(){};_.r.getApiFramework=function(){};_.r.getAdSystem=function(){};_.r.getAdvertiserName=function(){};_.r.getTitle=function(){};_.r.getDuration=function(){};_.r.getSkipTimeOffset=function(){};_.r.rc=function(){};_.r.Rb=function(){};_.r.getMediaUrl=function(){};_.r.Bb=function(){};_.r.Ab=function(){};_.r.mb=function(){};_.r.bb=function(){};_.r.getPodIndex=function(){};
|
|
531
|
+
_.r.Sb=function(){};_.r.Tb=function(){};_.r.Db=function(){};_.r.getWrapperAdIds=function(){};_.r.getWrapperAdSystems=function(){};_.r.getWrapperCreativeIds=function(){};_.H("clpp.ads.IAd",Cr);Cr.prototype.getWrapperCreativeIds=Cr.prototype.getWrapperCreativeIds;Cr.prototype.getWrapperAdSystems=Cr.prototype.getWrapperAdSystems;Cr.prototype.getWrapperAdIds=Cr.prototype.getWrapperAdIds;Cr.prototype.getSequenceLength=Cr.prototype.Db;Cr.prototype.getPositionInSequence=Cr.prototype.Tb;
|
|
532
|
+
Cr.prototype.getPodTimeOffset=Cr.prototype.Sb;Cr.prototype.getPodIndex=Cr.prototype.getPodIndex;Cr.prototype.getPodType=Cr.prototype.bb;Cr.prototype.getMediaBitrate=Cr.prototype.mb;Cr.prototype.getMediaHeight=Cr.prototype.Ab;Cr.prototype.getMediaWidth=Cr.prototype.Bb;Cr.prototype.getMediaUrl=Cr.prototype.getMediaUrl;Cr.prototype.getClickThroughUrl=Cr.prototype.Rb;Cr.prototype.isBumper=Cr.prototype.rc;Cr.prototype.getSkipTimeOffset=Cr.prototype.getSkipTimeOffset;Cr.prototype.getDuration=Cr.prototype.getDuration;
|
|
533
|
+
Cr.prototype.getTitle=Cr.prototype.getTitle;Cr.prototype.getAdvertiserName=Cr.prototype.getAdvertiserName;Cr.prototype.getAdSystem=Cr.prototype.getAdSystem;Cr.prototype.getApiFramework=Cr.prototype.getApiFramework;Cr.prototype.getCreativeId=Cr.prototype.getCreativeId;Cr.prototype.getId=Cr.prototype.getId;Cr.prototype.getTechnology=Cr.prototype.Eb;Cr.prototype.getAdManagerVersion=Cr.prototype.yb;Cr.prototype.getAdManagerName=Cr.prototype.xb;Dr.prototype.name=function(){};Dr.prototype.ba=function(){};Dr.prototype.create=function(){};_.H("clpp.ads.IAdsManagerFactory",Dr);Dr.prototype.create=Dr.prototype.create;Dr.prototype.isSupported=Dr.prototype.ba;Dr.prototype.name=Dr.prototype.name;_.r=Er.prototype;_.r.load=function(){};_.r.start=function(){};_.r.resume=function(){};_.r.pause=function(){};_.r.skip=function(){};_.r.getVolume=function(){};_.r.setVolume=function(){};_.r.getPosition=function(){};_.r.dispose=function(){};_.H("clpp.ads.IAdsManager",Er);Er.prototype.getPosition=Er.prototype.getPosition;Er.prototype.setVolume=Er.prototype.setVolume;Er.prototype.getVolume=Er.prototype.getVolume;Er.prototype.skip=Er.prototype.skip;Er.prototype.pause=Er.prototype.pause;
|
|
534
|
+
Er.prototype.resume=Er.prototype.resume;_.r=Fr.prototype;_.r.load=function(){return Promise.resolve()};_.r.start=function(a){return a.play()};_.r.resume=function(){};_.r.pause=function(){};_.r.skip=function(){};_.r.getVolume=function(){return 1};_.r.setVolume=function(){};_.r.getPosition=function(){return-1};_.r.dispose=function(){return _.E(function(a){_.y(a)})};Fr.prototype.dispose=Fr.prototype.dispose;Fr.prototype.getPosition=Fr.prototype.getPosition;Fr.prototype.setVolume=Fr.prototype.setVolume;Fr.prototype.getVolume=Fr.prototype.getVolume;
|
|
535
|
+
Fr.prototype.skip=Fr.prototype.skip;Fr.prototype.pause=Fr.prototype.pause;Fr.prototype.resume=Fr.prototype.resume;Fr.prototype.start=Fr.prototype.start;Fr.prototype.load=Fr.prototype.load;np.prototype.name=function(){return"clpp.ads.NopAdsManagerFactory"};np.prototype.ba=function(){return!0};np.prototype.create=function(){return new Fr};np.prototype.create=np.prototype.create;np.prototype.isSupported=np.prototype.ba;np.prototype.name=np.prototype.name;Gr.prototype.getCuePoints=function(){};Gr.prototype.Vb=function(){};Gr.prototype.nb=function(){};_.H("clpp.ads.IAdsTimeline",Gr);Gr.prototype.hasPostroll=Gr.prototype.nb;Gr.prototype.hasPreroll=Gr.prototype.Vb;Gr.prototype.getCuePoints=Gr.prototype.getCuePoints;_.Hr.prototype.f=function(){};_.Hr.prototype.a=function(){};_.Hr.prototype.h=function(){};_.Hr.prototype.o=function(){};_.r=Ir.prototype;_.r.be=function(a){this.a=a};_.r.od=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(yb)};_.r.ke=function(){return this.a&&this.a.mediaKeys};_.r.ic=function(a,b){this.g.debug("Requesting media key system access for",a,b.map(function(c){return Object.assign({},c,{drmInfos:c.drmInfos.map(function(){return"_anonymous_"})})}));return navigator.requestMediaKeySystemAccess(a,b)["catch"](function(c){c.message&&(c=Error(c.message+" (keySystem: "+a+")"));return Promise.reject(c)})};
|
|
536
|
+
_.r.nd=function(){return Sb};Jr.prototype.a=function(){return Sb};Jr.prototype.ba=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};Jr.prototype.create=function(){return new Ir};Ym(new Jr,1E3);_.r=Kr.prototype;_.r.getStatus=function(){return this.a};_.r.forEach=function(a){this.a&&a(this.a,pu.value())};_.r.get=function(a){if(this.has(a))return this.a};_.r.has=function(a){var b=pu.value();return this.a&&Wi(a,b)?!0:!1};_.r.entries=function(){};_.r.keys=function(){};_.r.values=function(){};var pu=new _.Do(function(){return bj(new Uint8Array([0]))});_.r=Mr.prototype;_.r.be=function(){};_.r.od=function(a){_.th("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.r.ke=function(){return null};_.r.ic=function(){_.th("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.r.nd=function(){return"NOP"};Nr.prototype.a=function(){return"NOP"};Nr.prototype.ba=function(){return!0};Nr.prototype.create=function(){return new Mr};
|
|
537
|
+
Ym(new Nr,-1);_.r=Or.prototype;_.r.be=function(a){this.f=a};_.r.od=function(a){var b=this.a;b&&b!==a&&Rr(b,null);return(this.a=a)?Rr(a,this.f):Promise.resolve()};_.r.ke=function(){return this.a};_.r.ic=function(a,b){_.th("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new Pr(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.r.nd=function(){return"APPLE"};Pr.prototype.createMediaKeys=function(){var a=new Qr(this.keySystem);return Promise.resolve(a)};
|
|
538
|
+
Pr.prototype.getConfiguration=function(){_.th("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};Qr.prototype.createSession=function(a){a=void 0===a?ag:a;this.g.debug("Creating Apple MediaKeys Session");if(a!==ag)throw new TypeError("Session type "+a+da);return new Sr(this.h,"__session_"+this.j++)};Qr.prototype.setServerCertificate=function(){this.g.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.w(Sr,_.tl);_.r=Sr.prototype;
|
|
539
|
+
_.r.generateRequest=function(a,b){var c=this;if(this.l)return Promise.reject(Wb);this.g.debug("generateRequest");this.h=new _.wj;try{var d=this.o.createSession(_.ug,_.Ui(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,Fg,function(e){var f=c.keyStatuses.getStatus();c.g.debug("Received Key Message in "+c.sessionId);c.h&&(c.h.resolve(),c.h=null);e=new _.L(_.Ke,{messageType:void 0===f||f===Uf?Ae:ze,message:bj(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,Dg,function(e){c.g.debug("onWebkitKeyAdded_",
|
|
540
|
+
e);c.f&&(Tr(c,"usable"),c.f.resolve(),c.f=null)});this.j.on(d,Eg,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===Uf)c.g.warn("Ignoring webkit key error for session "+c.sessionId);else if(c.g.error("Received key error in session "+c.sessionId+" with code "+(c.a.error.code+". Session Status ")+(e+".")),e=Error("EME AppleEmeManager key error"),e.errorCode=c.a.error,null!==c.h)c.h.reject(e),c.h=null;else if(null!==c.f)c.f.reject(e),
|
|
541
|
+
c.f=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:Tr(c,"output-not-allowed");break;default:Tr(c,_.ue)}});Tr(this,Uf)}catch(e){this.h.reject(e)}return this.h};_.r.load=function(){this.g.debug("load");return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.r.update=function(a){if(this.l)return Promise.reject(Wb);this.g.debug(jg);this.f=new _.wj;try{this.a.update(_.Ui(a))}catch(b){this.f.reject(b)}return this.f};
|
|
542
|
+
_.r.close=function(){if(this.l)return this.closed;this.g.info("Closing Key Session "+this.sessionId);this.l=!0;try{this.a.close(),this.closed.resolve(),_.Hh(this.j)}catch(a){this.closed.reject(a)}return this.closed};_.r.remove=function(){this.g.debug("remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};Ur.prototype.a=function(){return"APPLE"};Ur.prototype.ba=function(){return!!window.WebKitMediaKeys};
|
|
543
|
+
Ur.prototype.create=function(){return new Or};Ym(new Ur,1100);_.r=Vr.prototype;_.r.be=function(a){this.a=a};_.r.od=function(a){_.th("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(yb);var b=this.f;b&&b!==a&&$r(b,null);(this.f=a)&&$r(a,this.a);return Promise.resolve()};_.r.ke=function(){return this.f};_.r.ic=function(a,b){_.th("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.sg);c=d.length?d[0]:document.createElement(_.sg)}var e=new Wr(this.h,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
|
|
544
|
+
_.r.nd=function(){return"WEBKIT"};Wr.prototype.createMediaKeys=function(){return Promise.resolve(new Xr(this.h,this.a))};Wr.prototype.getConfiguration=function(){return this.f};Xr.prototype.createSession=function(a){a=void 0===a?ag:a;if(a!==ag&&a!==_.ef)throw new TypeError("Session type "+a+da);if(!this.a)throw a=Error("Media element is missing."),a.name=ob,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new as(this.h,this.a,this.o,a);this.j.push(a);return a};
|
|
545
|
+
Xr.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.w(as,_.tl);_.r=as.prototype;_.r.ready=function(){_.th("WebkitEmeManager.MediaKeySession.ready");Zr(this,"usable");this.a&&this.a.resolve();this.a=null};_.r.generateRequest=function(a,b){_.th("WebkitEmeManager.MediaKeySession.generateRequest");return cs(this,b,null)};_.r.load=function(a){_.th(oc);return this.l===_.ef?cs(this,null,a):Promise.reject(Error(Db))};_.r.update=function(a){_.th(oc);var b=new _.wj;ds(this,b,a);return b};
|
|
546
|
+
_.r.close=function(){_.th("WebkitEmeManager.MediaKeySession.close");if(this.l!==_.ef){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=bs(this,"cancelKeyRequest");try{this.j[a](this.h,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.r.remove=function(){_.th("WebkitEmeManager.MediaKeySession.remove");return this.l!==_.ef?Promise.reject(Error(Db)):this.close()};es.prototype.a=function(){return"WEBKIT"};
|
|
547
|
+
es.prototype.ba=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};es.prototype.create=function(){return new Vr};Ym(new es);_.w(fs,_.$l);fs.prototype.Ld=function(a,b){for(var c=a.drm.customData.headers||{},d=_.u(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};fs.prototype.Dg=function(a,b){var c=um(b);switch(this.o){case qu:return c;case ru:return(new _.Xj(c)).a;default:throw Error("Unknown content ID strategy");}};fs.prototype.nh=function(a,b){b.headers[za]=Zc;this.Ld(a,b);var c={spc:_.dj(b.body)};b.body=_.R.fd(_.Zj(c,!0))};
|
|
548
|
+
fs.prototype.oh=function(a,b){var c=_.R.Z(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.fj(c).buffer};_.H(Dd,fs);fs.prototype.onFairPlayLicenseResponse=fs.prototype.oh;fs.prototype.onFairPlayLicenseRequest=fs.prototype.nh;fs.prototype.extractFairPlayContentId=fs.prototype.Dg;fs.prototype.onLicenseRequest=fs.prototype.Ld;fs.prototype.constructor=fs.prototype.constructor;fs.NAME=hb;var ru="hostname",qu="full-skd";
|
|
549
|
+
fs.FairPlayContentIdStrategy={HOSTNAME:ru,FULL_SKD:qu};_.w(gs,_.Hr);gs.prototype.h=function(a){a=a.getConfiguration();if(a.drm&&a.drm&&a.drm.env===hb){a=a.drm.customData;if(!a)throw new _.P(_.Q,7,7100,_.Sd);a=new fs(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||qu);_.Vl(a)}};gs.prototype.a=function(){delete _.Ul.HeaderDrm};gs.prototype.id=function(){return"headerdrm"};_.H("clpp.drm.HeaderDrmComponent",gs);_.Jp(function(){ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(a,b){b=void 0!==b?b:this.byteLength;a=Math.floor(a);b=Math.floor(b);0>a&&(a+=this.byteLength);0>b&&(b+=this.byteLength);a=Math.min(Math.max(0,a),this.byteLength);b=Math.min(Math.max(0,b),this.byteLength);if(0>=b-a)return new ArrayBuffer(0);var c=new ArrayBuffer(b-a),d=_.Ui(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});_.Jp(function(){_.th("mathRound.install")});_.Jp(function(){if(window.Document){var a=Element.prototype;a.requestFullscreen=a.requestFullscreen||a.mozRequestFullScreen||a.msRequestFullscreen||a.webkitRequestFullscreen;a=Document.prototype;a.exitFullscreen=a.exitFullscreen||a.mozCancelFullScreen||a.msExitFullscreen||a.webkitExitFullscreen;oe in document||(Object.defineProperty(document,oe,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
|
|
550
|
+
{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",hs);document.addEventListener("webkitfullscreenerror",hs);document.addEventListener("mozfullscreenchange",hs);document.addEventListener("mozfullscreenerror",hs);document.addEventListener("MSFullscreenChange",hs);document.addEventListener("MSFullscreenError",hs)}});_.Jp(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.th("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=js,document.exitPictureInPicture=ks,document.addEventListener("webkitpresentationmodechanged",is,!0))}});_.Jp(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=ls)}});_.Jp(function(){if(window.VTTCue)_.sh("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.sh(jc),window.VTTCue=ms;else if(6===a)_.sh("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=ns;else{try{var b=!!ms(1,2,"")}catch(c){b=!1}b&&(_.sh(jc),window.VTTCue=ms)}}else _.uh("VTTCue not available.")});var os;_.Jp(function(){_.th("InputEvent.install");_.xk("Trident/")&&HTMLInputElement.prototype.addEventListener!==ps&&(_.sh("Patching input event support on IE."),os=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=ps)});_.Jp(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.Jp(function(){_.th("VideoPlayPromise.install");if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b["catch"](function(){});return b}}});_.xs.prototype.start=function(){var a=this;this.a=new ResizeObserver(function(b){b=b[0];a.j(b.contentRect.width,b.contentRect.height,a.h.isFullscreen())});this.f&&this.a.observe(this.f)};_.xs.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.zs.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.sg);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.wj;c=c.play();var e=(new _.uk(function(){b(a)})).aa(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===Fb?b(!0):b(!1)}):b(!0);return d};
|
|
551
|
+
var ys=new Uint8Array([0,0,0,28,102,116,121,112,105,115,111,109,0,0,2,0,105,115,111,109,105,115,111,50,109,112,52,49,0,0,0,8,102,114,101,101,0,0,2,239,109,100,97,116,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
552
552
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,167,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
|
553
553
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,167,128,0,0,0,0,
|
|
554
554
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,0,0,2,194,109,111,111,118,0,0,0,108,109,118,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,232,0,0,0,47,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,1,236,116,114,97,107,0,0,0,92,116,107,104,100,0,0,0,3,0,0,0,0,
|
|
555
555
|
0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,47,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,101,100,116,115,0,0,0,28,101,108,115,116,0,0,0,0,0,0,0,1,0,0,0,47,0,0,0,0,0,1,0,0,0,0,1,100,109,100,105,97,0,0,0,32,109,100,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,68,0,0,8,0,85,196,0,0,0,0,0,45,104,100,108,114,0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0,0,0,1,15,109,105,110,102,
|
|
556
556
|
0,0,0,16,115,109,104,100,0,0,0,0,0,0,0,0,0,0,0,36,100,105,110,102,0,0,0,28,100,114,101,102,0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1,0,0,0,211,115,116,98,108,0,0,0,103,115,116,115,100,0,0,0,0,0,0,0,1,0,0,0,87,109,112,52,97,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,2,0,16,0,0,0,0,172,68,0,0,0,0,0,51,101,115,100,115,0,0,0,0,3,128,128,128,34,0,2,0,4,128,128,128,20,64,21,0,0,0,0,1,244,0,0,1,243,249,5,128,128,128,2,18,16,6,128,128,128,1,2,0,0,0,24,115,116,116,115,0,0,0,0,0,0,0,1,0,0,0,2,0,0,4,0,0,0,0,28,
|
|
557
|
-
115,116,115,99,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,28,115,116,115,122,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,115,0,0,1,116,0,0,0,20,115,116,99,111,0,0,0,0,0,0,0,1,0,0,0,44,0,0,0,98,117,100,116,97,0,0,0,90,109,101,116,97,0,0,0,0,0,0,0,33,104,100,108,114,0,0,0,0,0,0,0,0,109,100,105,114,97,112,112,108,0,0,0,0,0,0,0,0,0,0,0,0,45,105,108,115,116,0,0,0,37,169,116,111,111,0,0,0,29,100,97,116,97,0,0,0,1,0,0,0,0,76,97,118,102,53,54,46,52,48,46,49,48,49]);_.
|
|
558
|
-
_.
|
|
559
|
-
_.
|
|
560
|
-
_.
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
_.r.ub=function(){if(!this.j){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.ft(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.h.textContent="."+this.f+"::cue {"+b+"}"}};_.r.destroy=function(){this.l.classList.remove(this.f);document.head.removeChild(this.h);this.j=!0;return Promise.resolve()};var ht=0;jt.prototype.ba=function(){return!0};jt.prototype.create=function(a){return new _.it(a)};_.qo("native",new jt);_.kt.prototype.onContentWillLoad=function(){return Promise.resolve()};_.kt.prototype.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.kt.prototype.onPlayerWillDestroy=function(){};_.kt.prototype.onPlayerWillRelease=function(){};}.call(g,this));
|
|
557
|
+
115,116,115,99,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,28,115,116,115,122,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,115,0,0,1,116,0,0,0,20,115,116,99,111,0,0,0,0,0,0,0,1,0,0,0,44,0,0,0,98,117,100,116,97,0,0,0,90,109,101,116,97,0,0,0,0,0,0,0,33,104,100,108,114,0,0,0,0,0,0,0,0,109,100,105,114,97,112,112,108,0,0,0,0,0,0,0,0,0,0,0,0,45,105,108,115,116,0,0,0,37,169,116,111,111,0,0,0,29,100,97,116,97,0,0,0,1,0,0,0,0,76,97,118,102,53,54,46,52,48,46,49,48,49]);_.su=new _.K("clpp.media.TimestampParser");_.Cs={};_.Es={};var Js=window.XMLHttpRequest;_.w(Ss,_.xj);Ss.prototype.then=function(a,b){this.O=this.O.then(a,b);return this};Ss.prototype["catch"]=function(a){this.O=this.O["catch"](a);return this};Ss.prototype.abort=function(){var a=this;if(this.a)return Promise.resolve();this.a=!0;return this.h.then(function(b){a.o&&clearTimeout(a.o);a.l&&a.l();return b.abort()})["catch"](function(){})};_.Ws.prototype.enabled=function(){return this.a};_.Ws.prototype.Lg=function(){return this.a&&this.f&&this.f.has(tu)?1E3*this.f.get(tu):null};_.Ws.prototype.release=function(){this.f=null;this.a=!1;this.h.ye(this.j)};_.Ws.prototype.getEstimatedThroughput=_.Ws.prototype.Lg;var tu="etp",Ys={Hm:tu},Zs=new _.K("clpp.net.CmsdManager");var ct=window.fetch,at=window.AbortController,$s=window.Headers;_.et={};_.r=_.gt.prototype;_.r.getBackgroundColor=function(){return this.K};_.r.setBackgroundColor=function(a){this.K=a;this.ub()};_.r.getWindowColor=function(){return this.V};_.r.setWindowColor=function(a){this.V=a;this.ub()};_.r.getFontFamily=function(){return this.T};_.r.setFontFamily=function(a){this.T=a;this.ub()};_.r.getFontColor=function(){return this.P};_.r.setFontColor=function(a){this.P=a;this.ub()};_.r.getFontSize=function(){return this.I};_.r.setFontSize=function(a){this.I=a;this.ub()};
|
|
558
|
+
_.r.getFontSizePercent=function(){return null===this.B?uu:this.B};_.r.setFontSizePercent=function(a){this.B=a;this.ub()};_.r.getEdgeColor=function(){return this.H};_.r.setEdgeColor=function(a){this.H=a;this.ub()};_.r.getEdgeType=function(){return this.o};_.r.setEdgeType=function(a){this.o=a;this.ub()};_.gt.prototype.setEdgeType=_.gt.prototype.setEdgeType;_.gt.prototype.getEdgeType=_.gt.prototype.getEdgeType;_.gt.prototype.setEdgeColor=_.gt.prototype.setEdgeColor;_.gt.prototype.getEdgeColor=_.gt.prototype.getEdgeColor;
|
|
559
|
+
_.gt.prototype.setFontSizePercent=_.gt.prototype.setFontSizePercent;_.gt.prototype.getFontSizePercent=_.gt.prototype.getFontSizePercent;_.gt.prototype.setFontSize=_.gt.prototype.setFontSize;_.gt.prototype.getFontSize=_.gt.prototype.getFontSize;_.gt.prototype.setFontColor=_.gt.prototype.setFontColor;_.gt.prototype.getFontColor=_.gt.prototype.getFontColor;_.gt.prototype.setFontFamily=_.gt.prototype.setFontFamily;_.gt.prototype.getFontFamily=_.gt.prototype.getFontFamily;
|
|
560
|
+
_.gt.prototype.setWindowColor=_.gt.prototype.setWindowColor;_.gt.prototype.getWindowColor=_.gt.prototype.getWindowColor;_.gt.prototype.setBackgroundColor=_.gt.prototype.setBackgroundColor;_.gt.prototype.getBackgroundColor=_.gt.prototype.getBackgroundColor;var uu=1/15;var ht="raised",it="depressed",kt="dropshadow",jt="uniform";_.H("clpp.text.EdgeType",{NONE:_.Se,RAISED:ht,DEPRESSED:it,DROP_SHADOW:kt,UNIFORM:jt});mt.prototype.parseInit=function(a){try{var b=_.et[_.Vc]||null;if(b){var c=new b(this.f);c.parseInit(a)}else this.g.warn("The clpp.ttml.Mp4TtmlParser class is not available. Please register the ttml component first.")}catch(e){c=null}if(c)this.a=c;else{try{var d=_.et[_.Wc]||null;d?(c=new d(this.f),c.parseInit(a)):this.g.warn("The clpp.vtt.Mp4VttParser class is not available. Please register the vtt component first.")}catch(e){c=null}if(c)this.a=c;else throw new _.P(_.Q,2,2011);}};
|
|
561
|
+
mt.prototype.parseMedia=function(a,b){if(!this.a)throw new _.P(_.Q,2,2011);return this.a.parseMedia(a,b)};_.et[Uc]=mt;_.w(_.ot,_.gt);_.r=_.ot.prototype;_.r.append=function(){};_.r.remove=function(){return!0};_.r.isTextVisible=function(){return this.w};_.r.setTextVisibility=function(a){this.w=a};
|
|
562
|
+
_.r.ub=function(){if(!this.j){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.lt(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.h.textContent="."+this.f+"::cue {"+b+"}"}};_.r.destroy=function(){this.l.classList.remove(this.f);document.head.removeChild(this.h);this.j=!0;return Promise.resolve()};var nt=0;pt.prototype.ba=function(){return!0};pt.prototype.create=function(a){return new _.ot(a)};_.to("native",new pt);_.qt.prototype.onContentWillLoad=function(){return Promise.resolve()};_.qt.prototype.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.qt.prototype.onPlayerWillDestroy=function(){};_.qt.prototype.onPlayerWillRelease=function(){};}.call(g,this));
|
|
564
563
|
g.clpp._ = _;
|
|
565
564
|
if (typeof(module)!="undefined"&&module.exports) {module.exports=g.clpp;}
|
|
566
565
|
else if (typeof(define)!="undefined" && define.amd) {define(function(){return g.clpp;});}
|