@castlabs/prestoplay 6.7.0 → 6.9.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 +50 -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 +110 -110
- package/cjs/cl.conviva.js +33 -33
- package/cjs/cl.core.js +419 -420
- package/cjs/cl.crypto.js +9 -9
- package/cjs/cl.dash.js +71 -71
- package/cjs/cl.externs.js +26 -26
- package/cjs/cl.freewheel.js +24 -24
- package/cjs/cl.hls.js +72 -67
- package/cjs/cl.hlssmpte.js +6 -6
- package/cjs/cl.htmlcue.js +31 -31
- package/cjs/cl.ima.js +23 -23
- package/cjs/cl.mse.js +272 -261
- package/cjs/cl.muxdata.js +15 -11
- package/cjs/cl.onboard.js +3 -3
- package/cjs/cl.persistent.js +13 -13
- package/cjs/cl.playlist.js +6 -6
- package/cjs/cl.smooth.js +71 -71
- package/cjs/cl.thumbnails.js +24 -24
- package/cjs/cl.tizen.js +71 -71
- package/cjs/cl.ttml.js +27 -27
- 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 +18 -18
- package/cl.adobe.js +3 -3
- package/cl.airplay.js +3 -3
- package/cl.broadpeak.js +5 -5
- package/cl.cast.js +87 -87
- package/cl.conviva.js +27 -27
- package/cl.core.js +358 -363
- package/cl.crypto.js +8 -8
- package/cl.dash.js +67 -67
- package/cl.externs.js +26 -26
- package/cl.freewheel.js +19 -19
- package/cl.hls.js +61 -57
- package/cl.hlssmpte.js +5 -5
- package/cl.htmlcue.js +25 -25
- package/cl.ima.js +17 -17
- package/cl.mse.js +238 -228
- package/cl.muxdata.js +12 -9
- package/cl.onboard.js +4 -4
- package/cl.persistent.js +9 -9
- package/cl.playlist.js +5 -5
- package/cl.smooth.js +58 -58
- package/cl.thumbnails.js +17 -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 +15 -15
- package/cl.vtt.js +12 -12
- package/cl.youbora.js +15 -15
- package/package.json +1 -1
- package/typings.d.ts +74 -20
package/cjs/cl.core.js
CHANGED
|
@@ -1,316 +1,315 @@
|
|
|
1
1
|
(function(){var g={}; var _ = {};
|
|
2
|
-
(function(window){var ba,ca,da,ma,
|
|
3
|
-
Ij,
|
|
4
|
-
|
|
5
|
-
_.
|
|
6
|
-
|
|
7
|
-
_.
|
|
8
|
-
_.
|
|
9
|
-
_.
|
|
10
|
-
_.
|
|
11
|
-
|
|
12
|
-
_.
|
|
13
|
-
_.
|
|
14
|
-
_.
|
|
15
|
-
_.
|
|
16
|
-
_.u=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
_.C=function(a,b){var c=a.split("."),d=
|
|
24
|
-
_.
|
|
25
|
-
_.
|
|
26
|
-
_.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
f.next())if(g=g.value,!
|
|
30
|
-
else{if(l=a.a)l=a.a,m=a.l.getPosition(),l=l.endTime<=m;l&&(l=a.a,a.a=null,a.l.trigger(new _.
|
|
31
|
-
_.
|
|
32
|
-
_.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
_.
|
|
36
|
-
|
|
37
|
-
_.
|
|
38
|
-
_.
|
|
39
|
-
_.L=function(a,b,c,d,e){var f=Error.call(this,
|
|
40
|
-
|
|
41
|
-
_.
|
|
42
|
-
_.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
_.
|
|
46
|
-
|
|
47
|
-
_.
|
|
48
|
-
};_.
|
|
49
|
-
_.
|
|
50
|
-
_.
|
|
51
|
-
_.
|
|
52
|
-
_.
|
|
53
|
-
_.
|
|
54
|
-
_.
|
|
55
|
-
|
|
56
|
-
_.
|
|
57
|
-
[],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:_.
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
_.
|
|
61
|
-
_.
|
|
62
|
-
|
|
63
|
-
_.
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
_.
|
|
67
|
-
"/")||(this.path="/"+this.path);this.f=b.search;this.g=b.hash};_.
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
_.
|
|
77
|
-
_.
|
|
78
|
-
_.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
_.
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
f}}}else if(a.h.debug(_.
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
_.
|
|
94
|
-
restrictions:
|
|
95
|
-
gapDetectionThreshold:.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,disableMergedFragments:!1
|
|
96
|
-
enableMetadata:!
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
7,7100,"config.
|
|
2
|
+
(function(window){var ba,ca,da,ma,sa,ta,wa,xa,ya,Aa,Ea,Ka,Ma,Na,Oa,Pa,Qa,Ra,Va,Wa,Xa,Ya,Za,$a,ab,kb,nb,ob,pb,qb,ub,wb,zb,Ab,Cb,Eb,dc,ic,vc,wc,Cc,Dc,Ec,Gc,Ic,Jc,Kc,Lc,Tc,Zc,bd,cd,dd,id,od,qd,rd,wd,zd,Pd,Wd,de,fe,ne,qe,ze,He,Ve,Ze,$e,af,bf,cf,ef,ff,hf,lf,pf,tf,vf,uf,wf,xf,yf,Cf,Ff,Df,Ef,Gf,If,Jf,Nf,Pf,Uf,Vf,$f,cg,hg,fg,ig,kg,jg,mg,pg,Cg,Dg,Fg,Hg,Gg,Ig,Lg,Mg,Qg,Sg,Ug,Rg,Og,ah,ih,lh,oh,ph,sh,mh,jh,th,Vh,Zh,$h,ai,di,ei,oi,pi,ui,wi,xi,Ci,Di,Ei,Hi,Ji,Ii,Gi,Ki,Fi,Ni,Li,Mi,Oi,Pi,Vi,Xi,hj,lj,mj,nj,xj,$i,oj,Aj,Cj,Ej,Fj,Dj,Hj,
|
|
3
|
+
Ij,Bj,Jj,Kj,Lj,Mj,Nj,Rj,Sj,Tj,Uj,Oj,Yj,Zj,bk,dk,lk,mk,nk,ok,pk,vk,xk,Hk,Ok,Rk,Sk,Uk,Vk,bl,gl,hl,ll,rl,sl,ul,vl,xl,Bl,Hl,Ql,Sl,Ul,Yl,Zl,cm,Ol,Ml,gm,am,hm,jm,im,om,nm,lm,mm,Dl,Tl,km,El,fm,Ll,em,Nl,Gl,tm,vm,wm,xm,ym,Dm,Mm,Nm,Pm,Tm,Ym,Lm,Zm,$m,cn,fn,gn,jn,kn,en,dn,ln,mn,nn,sn,xn,yn,zn,Dn,Cn,Fn,En,Hn,In,Jn,Kn,Gn,Mn,On,Pn,Qn,Rn,Sn,Tn,Un,Vn,Xn,Yn,Zn,$n,Wn,co,U,fo,eo,ho,jo,ko,oo,lo,ro,so,to,uo,rn,vo,xo,yo,zo,Ao,Bo,Co,Do,Eo,Fo,Go,Ho,Io,Jo,Ko,Lo,Mo,Po,No,Qo,So,To,Oo,Ro,Uo,Vo,Wo,Xo,Yo,Zo,$o,ap,bp,cp,ep,gp,hp,
|
|
4
|
+
ip,fp,kp,lp,pp,up,vp,xp,wp,li,zp,Cp,Bp,Dp,Ep,Ap,Gp,Hp,Fp,Ip,mi,Lp,hi,Wp,Zp,nf,aq;_.aa=" is registered.";ba=" is unsupported on this platform.";ca=" to a log level. Falling back to default!";da="': 'output-restricted'";_.ea="6.9.0";_.fa="AdaptationSet";_.ha="Already destroyed. No-op";_.ia="Already released. No-op";_.ja="Autoplay is not allowed due to browser policy.";_.ka="BANDWIDTH";_.la="CODECS";ma="Can not set volume to ";_.na="Cannot retrieve buffer information due to platform limitations";
|
|
5
|
+
_.oa="CastlabsPlayer";sa="Content-Length";ta="Content-Type";_.ua="Could not find configured DRM environment.";_.va="DRM environment '";wa="DRM licenses loaded";xa="DRMtoday";ya="DRMtodayOnboard";Aa="Destroying player";_.Ba="Disable track type ";Ea="Error while decoding string!";_.Ga="Error while fetching license!";_.Ha="FairPlay Certificate URL is not defined";_.Ia="FairPlay License URL is not defined";_.Ja="GROUP-ID";Ka="HW_SECURE_CRYPTO";Ma="HW_SECURE_DECODE";Na="HeaderDrm";Oa="Invalid track type: ";
|
|
6
|
+
Pa="InvalidStateError";Qa="Key status for Key ID '";Ra="License verification failed: ";_.Sa="Loading player with configuration";_.Ta="MaxHeight";_.Ua="MaxWidth";Va="Missing media element";Wa="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";Xa="No event provided!";Ya="No track data attached to the event, unable to add track!";Za="Not a persistent session.";$a="NotAllowedError";ab="NotSupportedError";_.cb="PlayReady License URL is not defined";
|
|
7
|
+
_.db="Player sources";_.eb="Player state change: ";_.fb="Please make sure ";_.gb="QualityLevel";_.hb="RESOLUTION";_.ib="Releasing player with source";_.jb="Representation";kb="STANDARD";_.lb="SW_SECURE_CRYPTO";_.mb="SW_SECURE_DECODE";nb="Session is closed";ob="Setting native ";pb="Signature Verification failed";qb="Skipping Session creation. License for init data was already requested in Session: '";_.rb="SmoothStreamingMedia";_.sb="TYPE";ub="The index is not in the allowed range.";_.vb="URI";
|
|
8
|
+
wb="Unable to translate ";_.xb="Unhandled/ignored event";_.yb="Unregistering listeners";zb="Unsupported keySystem";Ab="Using VTTCue polyfill from 3 argument TextTrackCue.";_.Bb="VIDEO";Cb="WebkitEmeManager.MediaKeySession.load";_.Db="Widevine License URL is not defined";Eb="Will create EME Manager: ";_.Fb="ad-break-started";_.Gb="ad-break-stopped";_.Hb="ad-buffering";_.Ib="ad-clicked";_.Jb="ad-completed";_.Kb="ad-first-quartile";_.Lb="ad-impression";_.Mb="ad-loaded";_.Nb="ad-midpoint";_.Ob="ad-paused";
|
|
9
|
+
_.Pb="ad-progress";_.Qb="ad-resumed";_.Rb="ad-skipped";_.Sb="ad-started";_.Tb="ad-stopped";_.Ub="ad-third-quartile";_.Vb="addtrack";_.Wb="ads-timeline-changed";_.Xb="airplay-casting-ended";_.Yb="airplay-casting-started";_.$b="airplay-status-changed";_.ac="application";_.bc="application/cea-608";_.cc="application/dash+xml";dc="application/mp4";_.ec='application/mp4; codecs\x3d"stpp"';_.fc='application/mp4; codecs\x3d"wvtt"';_.gc="application/ttml+xml";_.hc="application/vnd.ms-sstr+xml";ic="application/x-www-form-urlencoded";
|
|
10
|
+
_.jc="audio";_.kc="audio/aac";_.lc="audio/ac3";_.nc="audio/eac3";_.oc="audio/mp4";_.pc="audiobufferchanged";_.qc="autoplaynotallowed";_.rc="bitratechanged";_.sc="boolean";_.tc="bufferingended";_.uc="bufferingstarted";vc="canplay";wc="canplaythrough";_.xc="castingstarted";_.yc="caststatuschanged";_.zc="cdn-switch-success";_.Ac="cenc";_.Bc="center";Cc="certificate-request";Dc="change";Ec="chrome";_.Fc="clpp-fill";Gc="clpp-hidden";_.Hc="clpp.cast.CastSender";Ic="clpp.drm.HeaderDrm";Jc="clpp.drm.eme.AppleEmeManager";
|
|
11
|
+
Kc="clpp.native.Player";Lc="clpp.utils.Platform";_.Mc="codecs";_.Nc="column-reverse";_.Oc="com.adobe.primetime";_.Pc="com.apple.fps";_.Qc="com.microsoft.playready";_.Rc="com.widevine.alpha";_.Sc="config.drm.customData is not defined";Tc="controls";_.Uc="cuechange";_.Vc="destroy()";_.Wc="disabled";_.Xc="div";_.Yc="drmexpirationupdate";Zc="drmrenewalstarted";_.$c="drmsessionpersisted";_.ad="drmsessionupdate";bd="drmtoday";cd="durationchange";dd="encrypted";_.ed="end";_.gd="ended";_.hd="error";id="fullscreenElement";
|
|
12
|
+
_.jd="function";_.kd="height";_.ld="hidden";_.md="image";_.nd="internal-error";od="keystatuseschange";_.pd="left";qd="license-renewal";rd="license-request";_.sd="line-left";_.td="line-right";_.ud="loadeddata";_.vd="loadedmetadata";wd="loadstart";_.xd="mdat";_.yd="mdia";zd="message";_.Ad="metadata";_.Bd="mimeType";_.Cd="minf";_.Dd="moov";_.Ed="mp4";_.Fd="mpd-type-changed";_.Gd="mpeg-dash-callback-event";_.Id="none";_.k="number";_.Jd="object";_.Kd="onBitrateChanged()";_.Ld="onPlayerError()";_.Md="onPlayerWillDestroy";
|
|
13
|
+
_.Nd="onPlayerWillRelease";_.Od="onStateChanged()";Pd="online-status-changed";_.Qd="optional";_.Rd="org.w3.clearkey";_.Sd="output-restricted";_.Td="pause";_.Ud="persistent";_.Vd="persistent-license";Wd="picture-in-picture";_.Xd="play";_.Yd="playing";_.Zd="playlist-item-changed";_.$d="playlist-modified";_.ae="progress";_.be="px";_.ce="ratechange";de="released";_.ee="releasing";fe="removetrack";_.ge="required";_.he="resize";_.ie="right";_.je="seeked";_.ke="seeking";_.le="showing";_.me="sinf";ne="stalled";
|
|
14
|
+
_.oe="start";_.pe="statechanged";qe="status-pending";_.re="stbl";_.te="string";_.ue="stsd";_.ve="style";_.we="subtitle";_.xe="subtitles-htmlcue";_.ye="subtitles-ttml";ze="temporary";_.Ae="text";_.Be="text/vtt";_.Ce="text/xml";_.De="timeupdate";_.Ee="trak";_.Fe="ttml-xml";_.Ge="und";He="unknown";_.Ie="urn:scte:scte35";_.Je="urn:scte:scte35:2014";_.Ke="user-seeked";_.Le="user-seeking";_.Me="value";_.Ne="vertical-lr";_.Oe="vertical-rl";_.Pe="video";_.Qe="video/mp2t";_.Re="video/mp4";_.Se="videobufferchanged";
|
|
15
|
+
_.Te="videotrackchanged";_.Ue="vimond-response";Ve="visibilitychange";_.We="vtt-xml";_.Xe="waiting";_.Ye="waitingforkey";Ze="webkit-org.w3.clearkey";$e="webkitkeyadded";af="webkitkeyerror";bf="webkitkeymessage";cf="webkitneedkey";_.df="width";ef="x-dt-csl-tracking-token";ff="x-dt-follow-up-token";hf="x-dt-resp-code";lf=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
|
|
16
|
+
_.u=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:lf(a)}};_.mf=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};_.w=function(a,b){a.prototype=nf(b.prototype);a.prototype.constructor=a;if(of)of(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]};
|
|
17
|
+
pf=function(){pf=function(){};qf.Symbol||(qf.Symbol=rf)};tf=function(a,b){this.a=a;sf(this,"description",{configurable:!0,writable:!0,value:b})};vf=function(){pf();var a=qf.Symbol.iterator;a||(a=qf.Symbol.iterator=qf.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.jd&&sf(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return uf(lf(this))}});vf=function(){}};uf=function(a){vf();a={next:a};a[qf.Symbol.iterator]=function(){return this};return a};
|
|
18
|
+
wf=function(){this.w=!1;this.j=null;this.f=void 0;this.a=1;this.m=this.o=0;this.B=this.g=null};xf=function(a){if(a.w)throw new TypeError("Generator is already running");a.w=!0};yf=function(a,b){a.g={ag:b,qg:!0};a.a=a.o||a.m};_.x=function(a,b,c){a.a=c;return{value:b}};_.y=function(a){a.a=0};_.zf=function(a,b,c){a.o=b;void 0!=c&&(a.m=c)};_.Af=function(a,b,c){a.a=b;a.o=c||0};_.Bf=function(a,b){a.o=b||0;var c=a.g.ag;a.g=null;return c};Cf=function(a){this.a=new wf;this.f=a};
|
|
19
|
+
Ff=function(a,b){xf(a.a);var c=a.a.j;if(c)return Df(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return Ef(a)};Df=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,yf(a.a,g),Ef(a)}a.a.j=null;d.call(a.a,f);return Ef(a)};
|
|
20
|
+
Ef=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,yf(a.a,c)}a.a.w=!1;if(a.a.g){b=a.a.g;a.a.g=null;if(b.qg)throw b.ag;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
|
|
21
|
+
Gf=function(a){this.next=function(b){xf(a.a);a.a.j?b=Df(a,a.a.j.next,b,a.a.A):(a.a.A(b),b=Ef(a));return b};this["throw"]=function(b){xf(a.a);a.a.j?b=Df(a,a.a.j["throw"],b,a.a.A):(yf(a.a,b),b=Ef(a));return b};this["return"]=function(b){return Ff(a,b)};vf();this[Symbol.iterator]=function(){return this}};_.Hf=function(a,b){var c=new Gf(new Cf(b));of&&of(c,a.prototype);return c};
|
|
22
|
+
If=function(a,b){if(b){for(var c=qf,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&&sf(c,d,{configurable:!0,writable:!0,value:f})}};Jf=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())})};_.B=function(a){return Jf(new Gf(new Cf(a)))};
|
|
23
|
+
_.C=function(a,b){var c=a.split("."),d=Kf;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};Nf=function(a){return a&&0<=Lf[a]?Lf[a]:Mf};Pf=function(a){if(!a)return _.G("clpp.log",wb+a+ca),-1;var b=Of[a.toUpperCase()];return void 0===b?(_.G("clpp.log",wb+a+ca),-1):b};_.I=function(a){(this.tag=a)&&void 0===Lf[a]&&(Lf[a]=-1)};_.Rf=function(a){Qf.info.apply(Qf,arguments)};
|
|
24
|
+
_.Sf=function(a){Qf.debug.apply(Qf,arguments)};_.G=function(a){Qf.warn.apply(Qf,arguments)};_.Tf=function(a){Qf.error.apply(Qf,arguments)};Uf=function(a,b){this.Mb=a;this.a=b};Vf=function(a,b){this.a=a;this.f=b};_.Yf=function(a){if(a){var b=a.a();b in _.Wf?_.Xf.warn("Player-Factory '"+b+"' already registered"):(_.Wf[b]=a,_.Xf.info("Registered Player-Factory: '"+b+"'"))}};_.Zf=function(){this.a={}};$f=function(a,b,c,d){this.f=a;this.Dc=b;this.a=c;this.$k=!!d};
|
|
25
|
+
_.J=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};cg=function(a){this.a=new _.Zf;this.f=a};_.dg=function(){this.a=new _.Zf};
|
|
26
|
+
_.eg=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)};_.gg=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)fg(c[b]);a.a.clear()};hg=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};fg=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
|
|
27
|
+
ig=function(a){this.l=a;this.o=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.j=null;this.f=new _.dg;this.a=this.m=null;this.g=[];this.h=new _.I("clpp.native.Metadata")};kg=function(a,b){a.j=b;a.m=a.j.textTracks;a.f.on(a.m,_.Vb,function(c){c=c.track;c.kind===_.Ad&&jg(a,c)})};
|
|
28
|
+
jg=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:_.lg,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.h.debug("onMetadata_()");b.mode=_.ld;var d=[],e=!0;if(b.cues){for(var f=_.u(b.cues),g=f.next();!g.done;g=
|
|
29
|
+
f.next())if(g=g.value,!mg(a,g)){var h=c(g);switch(g.value.key){case "SCTE35-IN":case "SCTE35-OUT":h.schemeIdUri=_.Je;h.type=_.ng;break;case "X-CUSTOM-ID":h.id=g.value.data}}f=_.u(d);for(g=f.next();!g.done;g=f.next())a.l.trigger(new _.J(_.og,{detail:g.value}));Array.prototype.push.apply(a.g,d);pg(a,d,b);a.f.off(b,_.Uc);a.f.on(b,_.Uc,function(l){l=l.target.activeCues;l=l.length?mg(a,l[0]):a.a;var m;if(m=l)m=a.l.getPosition(),m=l.startTime<=m&&m<l.endTime;if(m)a.a=l,a.l.trigger(new _.J(_.qg,{detail:l}));
|
|
30
|
+
else{if(l=a.a)l=a.a,m=a.l.getPosition(),l=l.endTime<=m;l&&(l=a.a,a.a=null,a.l.trigger(new _.J(_.rg,{detail:l})))}})}};mg=function(a,b){for(var c=_.u(a.g),d=c.next();!d.done;d=c.next())if(d=d.value,b.startTime===d.startTime&&b.endTime===d.endTime)return d;return null};pg=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}))})}};
|
|
31
|
+
_.yg=function(a,b,c,d){d=void 0===d?_.sg:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.tg;this.writingMode=_.ug;this.lineInterpretation=_.vg;this.line=null;this.lineAlign=_.wg;this.direction=xg;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
|
|
32
|
+
_.Bg=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.zg;this.scroll=Ag;this.cssClassList=[];this.writingMode=this.displayAlign=null};Cg=function(a){this.l=a;this.m=a.getTextDisplayer();this.f=this.g=null;this.a=new _.dg;this.j=!1;this.h=new _.I("clpp.native.CueHandler")};
|
|
33
|
+
Dg=function(a,b){var c=b.track;c.kind!==_.Ad&&(c.mode===_.le&&(c.mode=_.ld),a.a.on(c,_.Uc,function(d){d=d.target||d.srcElement;d.mode=_.ld;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.m.append(d,[]))}))};_.Eg=function(a){return Array.isArray(a)?a:[a]};Fg=function(a,b){return a===b?!0:a.length===b.length&&a.every(function(c,d){return c===b[d]})};Hg=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 Gg(a,b)&&Gg(b,a)};
|
|
34
|
+
Gg=function(a,b){var c=new Set(a);return b.every(function(d){return c.has(d)})};Ig=function(a,b){var c=b||Fg,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,_.mf(h))}};_.Jg=function(a){return null!=a};
|
|
35
|
+
_.Kg=function(a){var b;a instanceof _.Kg?(Lg(this,a.bb),this.oc=a.oc,this.Sa=a.Sa,Mg(this,a.Sc),this.Ba=a.Ba,_.Ng(this,Og(a.a)),this.cc=a.cc):a&&(b=String(a).match(Pg))?(Lg(this,b[1]||"",!0),this.oc=Qg(b[2]||""),this.Sa=Qg(b[3]||"",!0),Mg(this,b[4]),this.Ba=Qg(b[5]||"",!0),_.Ng(this,b[6]||"",!0),this.cc=Qg(b[7]||"")):this.a=new Rg(null)};Lg=function(a,b,c){a.bb=c?Qg(b,!0):b;a.bb&&(a.bb=a.bb.replace(/:$/,""))};
|
|
36
|
+
Mg=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Sc=b}else a.Sc=null};_.Ng=function(a,b,c){b instanceof Rg?a.a=b:(c||(b=Sg(b,Tg)),a.a=new Rg(b))};Qg=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""};Sg=function(a,b,c){return typeof a===_.te?(a=encodeURI(a).replace(b,Ug),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};Ug=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};Rg=function(a){this.f=a||null};
|
|
37
|
+
_.Vg=function(a){if(!a.a&&(a.a={},a.g=0,a.f))for(var b=a.f.split("\x26"),c=0;c<b.length;c++){var d=b[c].indexOf("\x3d"),e=null;if(0<=d){var f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));e=e||"";a.add(f,decodeURIComponent(e.replace(/\+/g," ")))}};Og=function(a){var b=new Rg;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.g=a.g}return b};
|
|
38
|
+
_.Xg=function(a,b){for(var c=Wg[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===_.Ae?"":null};_.$g=function(a,b,c){return a.map(function(d){d=_.Yg(d)||"";return(d=_.Zg[b][d])?d:b===_.Ae?c&&"vtt"!==c?dc:_.Be:null}).filter(Boolean)[0]||null};_.Yg=function(a){a=(new _.Kg(a)).Ba.split(".");return 1>=a.length?null:a.pop()};
|
|
39
|
+
_.L=function(a,b,c,d,e){var f=Error.call(this,ah(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||_.K.$(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.L)};
|
|
40
|
+
ah=function(a,b,c,d){a=(a===_.M?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.K.$(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};_.bh=function(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d};
|
|
41
|
+
_.ch=function(a,b,c,d){d=void 0===d?{}:d;a=a.getAttribute(b);if(!a&&d.required)throw new _.L(_.M,4,4023,"Required attribute missing: "+b);return a?a.value:c||null};_.dh=function(a,b){this.name=a;this.value=b};_.fh=function(a,b){a=_.eh(a);b=_.eh(b);return a.split("-")[0]==b.split("-")[0]};_.eh=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=gh.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};
|
|
42
|
+
_.hh=function(a,b){for(var c=_.u(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};ih=function(){};lh=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(jh(a)==jh(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;for(var c=_.N(a),d=_.N(b),e=_.u(kh(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!=d[f])return!1;return!0};_.N=function(a,b,c){c=void 0===c?Infinity:c;return mh(a,void 0===b?0:b,c,Uint8Array)};
|
|
43
|
+
oh=function(a,b,c){c=void 0===c?Infinity:c;return mh(a,void 0===b?0:b,c,Uint16Array)};ph=function(a,b,c){c=void 0===c?Infinity:c;return mh(a,void 0===b?0:b,c,Uint32Array)};_.qh=function(a,b,c){c=void 0===c?Infinity:c;return mh(a,void 0===b?0:b,c,Int32Array)};_.rh=function(a,b,c){c=void 0===c?Infinity:c;return mh(a,void 0===b?0:b,c,DataView)};sh=function(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
|
|
44
|
+
mh=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=jh(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)};jh=function(a){return a instanceof ArrayBuffer?a:a.buffer};th=function(a){for(var b="",c=0;c<a.length;c+=16E3)b+=String.fromCharCode.apply(null,a.subarray(c,c+16E3));return b};
|
|
45
|
+
_.uh=function(a){if(!a)return"";a=_.N(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(Ea);return a}a=escape(th(a));try{return decodeURIComponent(a)}catch(b){throw Error(Ea);}};
|
|
46
|
+
_.wh=function(a,b,c){if(!a)return"";if(!c&&0!==a.byteLength%2)throw vh.error("Data has an incorrect length, must be even."),Error("Data does not seem to be UTF-16 encoded!");c=_.N(a);if(b&&255===c[0]&&254===c[1]||254===c[0]&&255===c[1])a=c.subarray(2);if(a instanceof ArrayBuffer)var d=a;else c=new Uint8Array(a.byteLength),c.set(_.N(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 th(c)};
|
|
47
|
+
_.xh=function(a,b){if(_.K.$(a))return a;var c="",d=!!b,e=_.N(a);239==e[0]&&187==e[1]&&191==e[2]?c=_.uh(e):254==e[0]&&255==e[1]?c=_.wh(e.subarray(2),!1):255==e[0]&&254==e[1]&&(c=_.wh(e.subarray(2),!0));var f=function(g,h){return g.byteLength<=h||32<=g[h]&&126>=g[h]}.bind(null,e);vh.debug("Unable to find byte-order-mark, making an educated guess.");0==e[0]&&0==e[2]?c=_.wh(a,!1):0==e[1]&&0==e[3]?c=_.wh(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.uh(a));if(c)return d&&(c=escape(c)),c;throw Error("Unable to detect text encoding");
|
|
48
|
+
};_.yh=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};_.zh=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};_.Ah=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=ph(e):2===c?f=oh(e):f=_.N(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};
|
|
49
|
+
_.Bh=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.Ch=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};_.Dh=function(a){return!!(a&&0<a.length)};_.Eh=function(a){return!a||0===a.length};
|
|
50
|
+
_.Fh=function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.K.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""}};_.Hh=function(a){a=a.replace(/<[^>]+>/gi,"");Gh.innerHTML=a;a=Gh.textContent;return a=a.replace(/<[^>]+>/gi,"")};_.Ih=function(){};_.Kh=function(a,b){var c=void 0==b?!0:b,d=_.Jh(a).replace(/\+/g,"-").replace(/\//g,"_");return c?d:d.replace(/[=]*$/,"")};
|
|
51
|
+
_.Lh=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};_.Mh=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};_.Nh=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};
|
|
52
|
+
_.Oh=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};_.Ph=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};_.Jh=function(a){a=th(_.N(a));return btoa(a)};_.Qh=function(a){this.f=a;this.a=0};
|
|
53
|
+
_.Rh=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};
|
|
54
|
+
_.Sh=function(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new _.L(_.M,4,4016,{invalidTag:b});var d=c[1],e=c[2];c=[];var f;if(e){e=new _.Qh(e);var g;(g=_.Rh(e,/^([^,=]+)(?:,|$)/g))&&(f=g[1]);for(var h=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=_.Rh(e,h);)c.push(new _.dh(g[1],g[2]||g[3]))}return new _.bh(a,d,c,f)};_.Uh=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0,fatalStatusCodes:_.mf(Th).concat()}};
|
|
55
|
+
Vh=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||_.mf(Th).concat()};
|
|
56
|
+
_.Xh=function(a,b){_.K.$(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.Wh,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||
|
|
57
|
+
[],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:_.mf(Th).concat(),requestStartTimestamp:null};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&
|
|
58
|
+
Vh(c,b);return c};_.Yh=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=_.xh(b,!0)}catch(l){}_.Sf("HTTP error text:",g);throw new _.L(0<=(f.fatalStatusCodes||[]).indexOf(c)?_.M:1,1,1001,{url:d,status:c,responseText:g,headers:a,request:f,response:e});};
|
|
59
|
+
Zh=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};$h=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};ai=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()};_.bi=function(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c};
|
|
60
|
+
_.ci=function(a,b){this.P=a;this.A=b;this.a=!1};di=function(a,b){a.P.then(function(){return b(!0)},function(){return b(!1)});return a};ei=function(a,b,c){try{var d=a(b);if(d&&d.P&&d.abort)return c.resolve(d.P),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()}}};_.fi=function(){this.a=[]};
|
|
61
|
+
_.gi=function(a,b){a.a.push(di(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};_.ni=function(){this.f=[];this.g=[];this.o=!1;this.m=new _.fi;this.a={};this.j=0;this.a.data=hi;!window.fetch||!window.AbortController||_.ii(6)||_.ji()&&68<_.ki().browserVersion.major?(this.a.http=li,this.a.https=li):(this.a.http=mi,this.a.https=mi)};oi=function(a,b){var c;return _.B(function(d){if(1==d.a)return _.x(d,a.fetch(b),2);c=d.f;return d["return"](_.uh(c.data))})};
|
|
62
|
+
pi=function(a,b,c,d){d=void 0===d?"HEAD":d;var e,f;return _.B(function(g){switch(g.a){case 1:if(!navigator.onLine)return g["return"](!1);if(!b){g.G(2);break}e=_.Xh(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.zf(g,4);return _.x(g,a.fetch(e).P,6);case 6:_.Af(g,2);break;case 4:if(f=_.Bf(g),1002===f.code||1003===f.code)return g["return"](!1);case 2:return g["return"](!0)}})};
|
|
63
|
+
_.qi=function(a,b){this.id=a;this.type=b;this.roles=[];this.channelsCount=this.src=this.mimeType=this.frameRate=this.label=this.language=this.kind=null;this.renditions=[];this.accessibility=[]};_.ri=function(a){return a&&a!==_.Ge?a:null};
|
|
64
|
+
ui=function(a){if(!a)throw new _.L(_.M,3,3101,Oa+a);if(!_.K.$(a))throw new _.L(_.M,3,3101,Oa+a+". Track type must be a string!");switch(a.toLowerCase()){case _.O:return _.O;case _.Q:return _.Q;case _.si:return _.si;case ti:return ti}throw new _.L(_.M,3,3101,"Unknown track type: "+a+".");};wi=function(a,b){a=ui(a);var c=_.ri(b.kind),d=b.id;d||(d=String(_.vi++));d=new _.qi(d,c===_.Ad?ti:a);d.kind=c;d.label=_.ri(b.label);d.language=_.ri(b.language);return d};
|
|
65
|
+
xi=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};_.yi=function(a,b){this.track=b;this.id=a;this.originalId=this.drm=this.drmInfo=this.codec=this.Yc=this.bandwidth=this.height=this.width=null};
|
|
66
|
+
_.zi=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;_.Bh(this.path,
|
|
67
|
+
"/")||(this.path="/"+this.path);this.f=b.search;this.g=b.hash};_.Ai=function(a){return a.scheme+"//"+(a.a+(a.port?":"+a.port:"")+a.path+a.g+a.f)};_.Bi=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)},""):""};
|
|
68
|
+
Ci=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};Di=function(a,b){return a.startsWith("http:://")||a.startsWith("https:://")?a:(new URL(a,b)).toString()};
|
|
69
|
+
Ei=function(a){this.f=a;this.h=new _.I("clpp.native.hls.HlsMetadataParser");this.a=Ig(this.g.bind(this),function(b,c){return b[0]===c[0]&&b[1].enableHlsVideoTrackInfo===c[1].enableHlsVideoTrackInfo&&b[1].enableMetadata===c[1].enableMetadata})};
|
|
70
|
+
Hi=function(a,b,c){var d,e,f,g,h;return _.B(function(l){if(1==l.a)return _.x(l,Fi(a,b,c),2);d=l.f;e=d.mimeType;f=d.renditions;g=new _.qi("dummy",_.si);h=f.map(function(m,n){var p=new _.yi("R"+n,g);p.bandwidth=m.bandwidth;p.Yc=m.Yc;p.codec=m.codec;p.width=m.width;p.height=m.height;return p});Gi(h);return l["return"]({renditions:h,mimeType:e||void 0})})};
|
|
71
|
+
Ji=function(a){a=a.split("\n").filter(function(c){return c.trim().startsWith("#EXT-X-MEDIA:")}).map(function(c){return Ii(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};
|
|
72
|
+
Ii=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.Sh(0,a);a=b(_.sb);a=null!=a?{AUDIO:_.Q,VIDEO:_.si,SUBTITLES:_.O}[a]:void 0;return{type:a,groupId:b(_.Ja),name:b("NAME"),language:b("LANGUAGE"),Ol:b("AUTOSELECT"),"default":b("DEFAULT"),Wl:b("FORCED"),Mf:b("CHARACTERISTICS"),uri:b(_.vb)}};Gi=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.");};
|
|
73
|
+
Ki=function(a,b){var c,d;return _.B(function(e){if(1==e.a)return c=_.Xh(b),_.x(e,oi(a.f,c),2);d=e.f;return e["return"](d)})};Fi=function(a,b,c){var d,e,f,g;return _.B(function(h){if(1==h.a)return d=Li(b),e=Mi(b,c),f=d[0]?d[0].codec:null,_.x(h,Ni(a,e,f),2);g=h.f;return h["return"]({mimeType:g,renditions:d})})};Ni=function(a,b,c){var d,e;return _.B(function(f){if(1==f.a)return b&&c?_.x(f,Ki(a,b),2):f["return"](null);d=f.f;e=[Oi(d,b),Pi(d,b)].filter(Boolean);return f["return"](_.$g(e,_.Pe,c))})};
|
|
74
|
+
Li=function(a){return a.split("\n").filter(function(b){return b.trim().startsWith("#EXT-X-STREAM-INF:")}).map(function(b){var c=_.Sh(0,b);if(c.getAttribute(_.Bb))throw Error("Playlist contains alternative video streams.");var d=_.ch(c,_.hb);b=d?Number(d.split("x")[0]):null;d=d?Number(d.split("x")[1]):null;var e=_.ch(c,_.ka);e=e?Number(e):null;var f=_.ch(c,"AVERAGE-BANDWIDTH");f=f?Number(f):null;c=_.ch(c,_.la);c=_.Xg(_.Pe,c?c.split(","):[]);return{bandwidth:e,Yc:f,codec:c,width:b,height:d,mimeType:null}})};
|
|
75
|
+
Mi=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?Di(c,b):null};Oi=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?Di(c,b):null};Pi=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.ch(_.Sh(0,c),_.vb))?Di(c,b):null:null};
|
|
76
|
+
_.Ri=function(a,b,c){for(var d=_.u(_.Qi),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.Si=function(a){a=_.Qi.indexOf(a);0<=a&&_.Qi.splice(a,1)};_.R=function(){};_.Ti=function(a,b){var c=a;b&&(c+='; codecs\x3d"'+b+'"');return c};_.Ui=function(a){this.f=a;this.a=null};Vi=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};
|
|
77
|
+
_.Wi=function(a){this.f=a;this.a=null};Xi=function(){};_.Yi=function(){return!!navigator.userAgent.match(/Edge?\//)};_.ii=function(a){return _.Zi("Tizen"+(a?" "+String(a):""))};_.ji=function(){return _.Zi("Web0S")};_.aj=function(){return _.ji()&&79===$i().major};_.bj=function(){return _.Zi("CrKey")};_.cj=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.ii()};_.dj=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.cj()&&1<navigator.maxTouchPoints};
|
|
78
|
+
_.ej=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};_.Zi=function(a){return(navigator.userAgent||"").includes(a)};hj=function(){if(fj)return fj;gj||(gj=new _.Wi(function(){fj=null}));(fj=document.querySelector(_.Pe)||document.querySelector(_.jc))||(fj=document.createElement(_.Pe));gj.aa(1);return fj};lj=function(a,b){try{return parseInt(b,10)}catch(c){kj.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
|
|
79
|
+
mj=function(a){var b={major:-1,name:He};if(!a)return b;var c=a.replace(/_/g,".");b.name=c;c=c.split(".");1<=c.length&&(b.major=lj(a,c[0]));2<=c.length&&(b.minor=lj(a,c[1]));3<=c.length&&(b.patch=lj(a,c[2]));4<=c.length&&(b.build=lj(a,c[3]));return b};nj=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};
|
|
80
|
+
xj=function(){var a=oj();if(!a)return pj;var b=a.match(/^.+?(?=\))/);if(!b)return pj;b=b[0];if(nj(b,["iphone","ipad"]))return qj;if(nj(b,["android"]))return rj;if(nj(b,["macintosh"]))return sj;if(nj(b,["windows nt"]))return tj;if(nj(b,["tizen"]))return uj;if(nj(b,["web0s"]))return vj;if(nj(b,["linux"]))return wj;kj.warn("Unable to identify OS from user agent: "+a);return pj};
|
|
81
|
+
$i=function(){var a=oj(),b=["ie","edge","opera","firefox","safari",Ec];var c=xj();for(var d=yj[c],e=0,f=b.length;e<f;e++)if(c=d[b[e]]&&a.match(d[b[e]]))return mj(c[1]);return mj("")};oj=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
|
|
82
|
+
_.ki=function(){var a=xj();var b=xj();var c=yj[b];if(c){c=oj().match(c.os_version)[1];c=mj(c);if(b===tj)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=mj("");a:{c=oj();var d=["ie","edge","opera","firefox","safari",Ec],e=xj();e=yj[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=zj}return{os:a,osVersion:b,browser:c,browserVersion:$i()}};
|
|
83
|
+
Aj=function(){this.h=new _.I("clpp.native.TrackManager");this.l=null;this.f=new _.dg;this.g=[];this.B=0;this.o={};this.D=[];this.a=new Map;this.w=null;this.m=new Map;this.A=!0;this.J=this.ef.bind(this,_.O);this.M=this.gf.bind(this,_.O);this.K=this.ff.bind(this,_.O);this.N=this.ef.bind(this,_.si);this.V=this.gf.bind(this,_.si);this.T=this.ff.bind(this,_.si);this.F=this.ef.bind(this,_.Q);this.I=this.gf.bind(this,_.Q);this.H=this.ff.bind(this,_.Q);this.j=null};
|
|
84
|
+
Cj=function(a,b){var c,d,e,f,g,h,l,m;return _.B(function(n){if(1==n.a){c=a.l.getConfiguration();d=_.Ri(c,b.mimeType,_.Be);if(!d)return a.h.warn("Track mimetype is not supported",b),n["return"]();e=_.Xh(b.url);return _.x(n,a.l.getNetworkEngine().fetch(e).P,2)}(f=n.f)&&f.data&&(g="External_"+a.B++,a.o[g]=b,h=d.a(_.N(f.data)),l=URL.createObjectURL(new Blob([h])),m={url:l,kind:b.kind,language:b.language,label:b.label,mimeType:_.Be},Bj(a,m,g));_.y(n)})};Ej=function(a,b,c){return Dj(a)&&b===_.si&&!!c.enableHlsVideoTrackInfo};
|
|
85
|
+
Fj=function(a,b,c){return Dj(a)&&(b===_.Q||b===_.O)&&!!c.enableMetadata};Dj=function(a){a=a.l.getLoadedSource();return!(!a||a.type!==_.Gj&&!a.url.endsWith(".m3u8"))&&_.cj()};Hj=function(a,b,c){var d,e;return _.B(function(f){if(1==f.a)return(d=a.l.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)})};
|
|
86
|
+
Ij=function(a,b,c){var d,e,f,g;return _.B(function(h){if(1==h.a)return(d=a.l.getLoadedSource())&&a.j?_.x(h,a.j.a(d.url,c),2):h["return"]();e=h.f;e.Pc&&(f=b.type+":"+b.label,(g=e.Pc.get(f))&&g.Mf&&(b.accessibility=g.Mf.split(",").map(function(l){return l.trim()}).map(function(l){return{value:l,type:b.type,protocol:"HLS"}})));_.y(h)})};
|
|
87
|
+
Bj=function(a,b,c){if(a.l){var d=a.l.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);e.src=_.Eh(b.url)?URL.createObjectURL(new Blob([])):b.url;d.appendChild(e);a.D.push(e)}}};Jj=function(a,b){if(!a.l)return null;var c=a.l.getSurface();if(!c)return null;c=c.getMedia();if(!c)return null;switch(b){case _.Q:return c.audioTracks;case _.si:return c.videoTracks;case _.O:return c.textTracks;default:return null}};
|
|
88
|
+
Kj=function(a,b){var c=Jj(a,b);c&&(c=Array.from(c),b===_.O&&(c=c.filter(function(d){return d.kind!==_.Ad})));return c};Lj=function(a,b){return a.g.filter(function(c){return c.type===b})};Mj=function(a,b){var c=a.a.get(b)||null;return c&&c.renditions[0]};Nj=function(a,b){var c=a.m.get(b);return c&&c.renditions[0]};
|
|
89
|
+
Rj=function(a,b,c){var d=Kj(a,b);if(c){if(void 0===a.g.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.h.debug("Activate track type "+b+" with ID: "+c.id);if(d){a.m.set(b,c);var e=!0,f=!1;switch(b){case _.O:var g="mode";e=_.le;f=_.Wc;break;case _.Q:g="enabled";break;case _.si:g="selected"}if(g){d=_.u(d);for(var h=d.next();!h.done;h=d.next())h=h.value,h[g]=Oj(c,h,c.type)?e:
|
|
90
|
+
f}}}else if(a.h.debug(_.Ba+b),a.a.get(b)&&d&&b===_.O){g=_.u(d);for(h=g.next();!h.done;h=g.next())h.value.mode=_.Wc;a.a.set(b,null)}b===_.Q?a.l.trigger(new _.J(_.Pj)):b===_.O&&a.l.trigger(new _.J(_.Qj))};Sj=function(a){return a.enabled||a.selected||a.mode===_.le||a.mode===_.ld};
|
|
91
|
+
Tj=function(a,b,c){c=_.Eg(c).filter(function(e){return e});a.h.info("Find preferred tracks for",b,c);var d=Lj(a,b);c.some(function(e){var f=_.eh(e);return(e=d.find(function(g){g=_.eh(g.language||"");return _.fh(f,g)}))?(a.h.info("Will select track with id",e.id),Rj(a,b,e),!0):!1})};Uj=function(a){(a=a.l.getTextDisplayer())&&a.remove(0,Infinity)};
|
|
92
|
+
Oj=function(a,b,c){return a.type!==c?!1:void 0!==b.id&&null!==b.id&&""!==b.id?a.id===b.id:_.K.Aa(a,{kind:_.ri(b.kind),language:_.ri(b.language),label:_.ri(b.label)},["kind","language","label"])};_.Vj=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};_.Wj=function(){this.ld=new cg(this);this.jd=[]};Yj=function(a){return a.name===$a&&Xj.some(function(b){return a.message.startsWith(b)})};Zj=function(){};
|
|
93
|
+
_.ck=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.dj()&&(a=360);var b=_.Uh();b.maxAttempts=3;a={source:"",license:ak,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,manifest:{attemptParameters:_.Uh(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,
|
|
94
|
+
restrictions:bk(a)},drm:null,enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:"main",preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],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,relativeTextTimestamp:!1,startAtSegmentBoundary:!1,
|
|
95
|
+
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,disableMergedFragments:!1,ignoreManagedMediaSourceStreamingHints:!1},
|
|
96
|
+
restrictions:bk(),tizen:{sideStreamText:_.ii(2)},safari:{enableHlsVideoTrackInfo:!1,enableMetadata:!1}};if(_.Zi("Edge/")||_.ii())a.streaming.gapDetectionThreshold=.5;_.ji()&&(a.streaming.stallEnabled=!1);_.aj()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=.02);_.ii()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=0);a.vr={enable:!1,attachMouseListener:!0,fieldOfView:70,sensitivity:1,invertHorizontalControl:!1,
|
|
97
|
+
invertVerticalControl:!1};return a};
|
|
98
|
+
_.ek=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(!b)return _.ck();c=[_.ck()];var d=!1;b=_.u(b);for(var e=b.next();!e.done;e=b.next())e=e.value,null!==e&&void 0!==e&&(_.K.$(e)&&(e={source:e}),e.lowLatencyMode&&!d&&(c.push({suggestedPresentationDelay:0,streaming:{rebufferingGoal:.1,bufferLimitUpdateInterval:.01,attemptParameters:{maxAttempts:3,baseDelay:250,backoffFactor:1}},abr:{bandwidthUpgradeTarget:.6,bandwidthDowngradeTarget:.95},manifest:{hlsLowLatency:!0}}),d=!0),
|
|
99
|
+
c.push(e));c=_.K.va.apply(null,c);_.K.$(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.K.R(c.volume)&&(!_.K.la(c.volume)||_.K.isNaN(c.volume)))throw new _.L(_.M,7,7100,"config.volume is not a number");if(!_.K.R(c.preferredTextLanguage)&&!_.K.$(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.L(_.M,7,7100,"config.preferredTextLanguage is not a string or an array");if(!_.K.R(c.preferredAudioLanguage)&&!_.K.$(c.preferredAudioLanguage)&&!Array.isArray(c.preferredAudioLanguage))throw new _.L(_.M,
|
|
100
|
+
7,7100,"config.preferredAudioLanguage is not a string or an array");if(!_.K.R(c.preferredAudioCodec)&&!_.K.$(c.preferredAudioCodec)&&!Array.isArray(c.preferredAudioCodec))throw new _.L(_.M,7,7100,"config.preferredAudioCodec is not a string or an array");if(!_.K.R(c.preferredVideoCodec)&&!_.K.$(c.preferredVideoCodec)&&!Array.isArray(c.preferredVideoCodec))throw new _.L(_.M,7,7100,"config.preferredVideoCodec is not a string or an array");if(!_.K.R(c.drm)){if(c.drm.env&&!_.K.$(c.drm.env))throw new _.L(_.M,
|
|
101
|
+
7,7100,"config.drm.env is not a string");if(c.drm.offlineId&&!_.K.$(c.drm.offlineId))throw new _.L(_.M,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(!_.K.la(d.bufferingGoal)||_.K.isNaN(d.bufferingGoal))throw new _.L(_.M,7,7100,"config.streaming.bufferingGoal is not a number");
|
|
101
102
|
if(!_.K.la(d.rebufferingGoal)||_.K.isNaN(d.rebufferingGoal))throw new _.L(_.M,7,7100,"config.streaming.rebufferingGoal is not a number");if(d.rebufferingGoal>d.bufferingGoal)throw new _.L(_.M,7,7100,"config.streaming.rebufferingGoal must be \x3e\x3d bufferingGoal");if(!_.K.la(d.bufferBehind)||_.K.isNaN(d.bufferBehind))throw new _.L(_.M,7,7100,"config.streaming.bufferBehind is not a number");if(!_.K.la(d.smallGapLimit)||_.K.isNaN(d.smallGapLimit))throw new _.L(_.M,7,7100,"config.streaming.smallGapLimit is not a number");
|
|
102
|
-
if(!_.K.la(d.durationBackoff)||_.K.isNaN(d.durationBackoff))throw new _.L(_.M,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.K.R(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.k)throw new _.L(_.M,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
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 _.L(_.M,7,7100,"Restrictions contain NaN");};_.
|
|
106
|
-
_.
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
_.
|
|
110
|
-
a.env+_.aa),new _.L(_.M,6,6015,_.
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
_.
|
|
115
|
-
_.
|
|
116
|
-
_.
|
|
117
|
-
_.
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
a=
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
_.
|
|
128
|
-
_.
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
_.
|
|
133
|
-
_.
|
|
134
|
-
_.
|
|
135
|
-
|
|
136
|
-
_.
|
|
137
|
-
return new _.Kl(_.Ol,e,c,a,b,d)};_.Nl=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=_.N(a);a.set(b,0);return a};Ll=function(a){a=_.Cl(a,"PROTECTINFO");if(!a)return null;var b=_.Cl(a,"KID");if(!b)return null;a=b.getAttribute("VALUE");if(!a)return null;var c=b.getAttribute(ma);b=b.getAttribute("ALGID");return{value:a,se:c,nh:b}};
|
|
138
|
-
Ml=function(a){a=_.Cl(a,"PROTECTINFO");if(!a)return null;a=_.Cl(a,"KIDS");if(!a)return null;var b=_.Bl(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(ma);d=d.getAttribute("ALGID");a.push({value:c,se:e,nh:d})}}return a.length?a:null};Ql=function(a){this.f=[];this.g=[];this.a=[];8<=a.byteLength&&(new _.Pk).W("pssh",this.j.bind(this)).parse(a.buffer);0==this.a.length&&_.G("No pssh box found!")};
|
|
139
|
-
_.Ul=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=Rl;this.A=new _.eg;this.P=new rk;this.f=new Map;this.K=[];this.H=new _.di;this.g=null;this.S=function(c){b.w=!0;b.D=!1;b.H.reject(c);a.onError(c)};this.m=new Map;this.ma=new Map;this.ga=new _.aj(function(){return Sl(b)});this.j=!1;this.Ga=new _.di;this.F=!1;this.ha=[];this.Va=!1;this.V=0;this.h=new _.H("clpp.drm.DrmEngine");this.na=(new _.aj(function(){Tl(b)})).eb(1);this.H["catch"](function(){});
|
|
103
|
+
if(!_.K.la(d.durationBackoff)||_.K.isNaN(d.durationBackoff))throw new _.L(_.M,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.K.R(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.k)throw new _.L(_.M,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");dk(c.restrictions);dk(c.abr.restrictions);c.abr.initialRestrictions&&dk(c.abr.initialRestrictions)}return c};
|
|
104
|
+
bk=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}};
|
|
105
|
+
dk=function(a){_.K.R(a.maxPixels)&&(a.maxPixels=Infinity);_.K.R(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.K.R(a.maxHeight)&&(a.maxHeight=Infinity);_.K.R(a.maxWidth)&&(a.maxWidth=Infinity);_.K.R(a.minPixels)&&(a.minPixels=0);_.K.R(a.minBandwidth)&&(a.minBandwidth=0);_.K.R(a.minHeight)&&(a.minHeight=0);_.K.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);
|
|
106
|
+
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 _.L(_.M,7,7100,"Restrictions contain NaN");};_.fk=function(a){return typeof a===_.Jd&&!Array.isArray(a)&&"source"in a};
|
|
107
|
+
_.gk=function(a){_.Wj.call(this);this.log=new _.I(a);this.configuration=this.Nd=_.ck();this.w=this.D=null;this.Wd=this.Se=!1;this.fh=new _.I("clpp.video.events");this.Zc=null;this.Pd=-1;this.ql=this.Zk.bind(this);this.xg=new _.ni;this.M=new _.dg;this.wc=this.Ic=this.K=null};_.ik=function(a){return _.hk.get(a)||null};_.kk=function(a){_.hk.get(a.id())?jk.warn("Component already in use."):_.hk.set(a.id(),a)};lk=function(a){for(var b=_.u(_.hk.values()),c=b.next();!c.done;c=b.next())a(c.value)};
|
|
108
|
+
mk=function(){this.a=this.f=null;this.h=new _.I("clpp.drm.csl")};nk=function(a,b){3===b.type&&(a.f&&(a.h.debug("Attaching tracking token"),b.headers[ef]=a.f),a.a&&(b.headers[ff]=a.a))};
|
|
109
|
+
ok=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[ef];a.a=b.headers[ff];var c=b.headers["x-dt-csl-renewal-info"];a.f&&a.h.debug("Loaded tracking token "+a.f);a.a&&a.h.debug("Loaded followup token "+a.a);if(c)return c=JSON.parse(_.uh(_.Lh(c))),{delay:c.renewalPeriod,Ll:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};pk=function(a){return _.Bh(a,_.Pc)||_.Bh(a,_.Qc)};_.rk=function(a){_.qk[a.J]=a};
|
|
110
|
+
_.tk=function(a){var b={attemptParameters:_.Uh(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,enableSessionCacheForSkd:!1,ignoreUnrecognizedInitData:!0,Wa:{}};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&&
|
|
111
|
+
(b.ignoreUnrecognizedInitData=!!a.ignoreUnrecognizedInitData),a.env)){var c=_.qk[a.env]||null;if(!c)throw _.Sf(_.ua,_.fb+a.env+_.aa),new _.L(_.M,6,6015,_.va+a.env+"' is missing.");b.Wa=_.sk(c,a.customData)||{};_.Bh(a.env.toLowerCase(),bd)&&(b.enforceSingleSession=!0)}return b};vk=function(a){a=uk[a];if(!a)return null;var b=_.ki();return b.os===rj&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.wk=function(a){this.J=a;this.f={}};
|
|
112
|
+
xk=function(a,b){var c=_.ki();if(c.os!==rj||c.browser!==Ec)return a||b};
|
|
113
|
+
_.sk=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[_.Rc];g&&(c[_.Rc]={licenseUrl:g.licenseUrl,videoRobustness:xk(d,g.videoRobustness),audioRobustness:xk(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:g.distinctiveIdentifierRequired,persistentStateRequired:g.persistentStateRequired,serverCertificate:void 0===f?g.serverCertificate:null===f?null:typeof f===_.te?vk(f):f});(g=a.f[_.Pc])&&(c[_.Pc]=
|
|
114
|
+
{licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.f[_.Qc])&&(c[_.Qc]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});return c};
|
|
115
|
+
_.yk=function(a,b){this.f=_.K.la(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.g=!!b;this.buffer=this.f.buffer};_.Ak=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.N(a.f.buffer);b=_.N(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.zk()}};_.S=function(a,b){try{a.f.setUint32(a.a,b,a.g),a.a+=4}catch(c){_.zk()}};_.zk=function(){throw new _.L(_.M,3,3E3);};_.Bk=function(a,b){this.f=a;this.g=void 0===b?!0:b;this.a=0};_.Ck=function(a){return a.a<a.f.byteLength};
|
|
116
|
+
_.Ek=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){_.Dk()}};_.Fk=function(a){try{var b=a.f.getUint16(a.a,a.g);a.a+=2;return b}catch(c){_.Dk()}};_.T=function(a){try{var b=a.f.getUint32(a.a,a.g);a.a+=4;return b}catch(c){_.Dk()}};_.Gk=function(a){try{var b=a.f.getInt32(a.a,a.g);a.a+=4;return b}catch(c){_.Dk()}};Hk=function(a,b){for(var c=new Uint8Array(b),d=0;d<b;d++)c[d]=_.Ek(a);return c};
|
|
117
|
+
_.Ik=function(a){var b=0,c=0;try{a.g?(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){_.Dk()}if(2097151<c)throw new _.L(_.M,3,3001);a.a+=8;return c*Math.pow(2,32)+b};_.Jk=function(a,b){a.a+b>a.f.byteLength&&_.Dk();var c=a.f.buffer.slice(a.a,a.a+b);a.a+=b;return _.N(c)};_.Dk=function(){throw new _.L(_.M,3,3E3,"Buffer read out of bounds.");};_.Kk=function(){this.g=[];this.f=[];this.a=!1;this.h=new _.I("clpp.mp4")};
|
|
118
|
+
_.Lk=function(a){for(;_.Ck(a.reader)&&!a.parser.a;)a.parser.ae(a.start+a.headerSize,a.reader,a.partialOkay)};_.Mk=function(a){for(var b=_.T(a.reader);0<b&&!a.parser.a;--b)a.parser.ae(a.start+a.headerSize,a.reader,a.partialOkay)};_.Nk=function(a){return function(b){var c=b.reader.Ea()-b.reader.getPosition();a(_.Jk(b.reader,c))}};Ok=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.Pk=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};
|
|
119
|
+
_.Qk=function(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)};Rk=function(){};Sk=function(a){var b="";try{b=_.xh(a)}catch(c){}return b};_.Tk=function(a){a=Sk(a);var b="";a.length&&(b=(new _.zi(a)).a);return b};Uk=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.uh(a)),d=_.Lh(c.sinf[0]);(new _.Kk).L(_.me,_.Lk).L("schi",_.Lk).L("tenc",function(e){e.reader.skip(6);_.Ek(e.reader)&&(e.reader.skip(1),b=_.Nh(_.Jk(e.reader,16)));e.parser.stop()}).parse(d)}catch(e){}return b};
|
|
120
|
+
Vk=function(a,b,c){if(!c||!c.byteLength)throw new _.L(_.M,6,6102);var d;typeof b===_.te?d=_.zh(b,!0):d=b;a=_.zh(Sk(a),!0);b=new _.yk(12+a.byteLength+d.byteLength+c.byteLength,!0);_.S(b,a.byteLength);_.Ak(b,_.N(a));_.S(b,d.byteLength);_.Ak(b,_.N(d));_.S(b,c.byteLength);_.Ak(b,_.N(c));return _.N(b.buffer)};_.Wk=function(a){var b=_.N(a.body);b=_.Kh(b);a.headers[ta]=ic;a.body=_.yh("spc\x3d"+b).buffer};
|
|
121
|
+
_.Xk=function(a){try{var b=_.uh(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=sh(_.Lh(b))};
|
|
122
|
+
bl=function(){var a=Yk;if(a===Zk)return"https://lic.drmtoday.com";if(a===$k)return"https://lic.staging.drmtoday.com";if(a===al)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};gl=function(a){var b=bl();if(a==_.Rc)return b+dl;if(a==_.Qc)return b+el;if(a==_.Pc)return b+fl;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
|
|
123
|
+
hl=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
|
|
124
|
+
_.jl=function(a,b,c){b=Sk(b);c=c&&c.customData?c.customData:{};b=new _.zi(hl(b));var d=Ci(b.f);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.Dh(""+a)&&(d.assetId=a,il.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.Dh(""+e)&&(d.variantId=e,il.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],il.debug("KeyId found in FPS SKD. Removing other parameters")):
|
|
125
|
+
a=["assetId","variantId"];b.f=_.Bi(d,!1,a);"/"!==b.path||b.j.includes(b.a+"/")||(b.path="");b=_.Ai(b);return c.fpsContentId=b};
|
|
126
|
+
_.kl=function(a,b,c,d){d=void 0===d?!0:d;a=a.drm;a&&a.env.startsWith(xa)?a.customData&&(c=btoa(JSON.stringify({userId:a.customData.userId,sessionId:a.customData.sessionId,merchant:a.customData.merchant})),b.headers["dt-custom-data"]=c,a.customData.authToken&&(b.headers["x-dt-auth-token"]=""+a.customData.authToken),c=b.uris[0],d&&a.customData.assetId&&(c+="?assetId\x3d"+encodeURI(""+a.customData.assetId),a.customData.variantId&&(c+="\x26variantId\x3d"+encodeURI(""+a.customData.variantId)),b.uris[0]=
|
|
127
|
+
c)):il.warn(Wa)};ll=function(a,b,c){_.kl(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.Kg(b.uris[0]);c.a.add(_.Ud,a);b.uris[0]=c.toString()};
|
|
128
|
+
_.ml=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.kl(a,b,c,!1);b.headers[ta]=ic;c={spc:_.Jh(b.body)};if((a=a.drm)&&a.env.startsWith(ya)&&d){a={};var e=Ci((new _.zi(hl(d))).f);d=e.keyId;if(e=e.assetId)il.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(il.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(il.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(il.info("Adding assetID to FPS payload:",a.assetId),c.assetId=a.assetId)}b.body=
|
|
129
|
+
_.Ah(_.Bi(c,!0))};_.nl=function(a,b){il.debug("Clearing response data");if(200===b.status){var c=_.uh(b.data).trim();"\x3cckc\x3e"===c.substr(0,5)&&"\x3c/ckc\x3e"===c.substr(-6)&&(c=c.slice(5,-6));b.data=_.Lh(c).buffer}};_.ol=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(xa))il.warn(Wa);else if(c.customData&&c.customData.merchant&&!c.env.startsWith(ya)){var d=new _.Kg(b.uris[0]),e=d.Ba;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.Ba=e;b.uris[0]=d.toString()}};
|
|
130
|
+
_.pl=function(a,b){try{var c=_.N(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));il.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){il.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data")}};rl=function(a){var b={},c=a?a[hf]:void 0;a=ql[a?a[hf]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};sl=function(){};
|
|
131
|
+
ul=function(a,b){b=void 0===b?0:b;_.Rf("Registering EME Factory: "+a.a());for(var c={priority:b,Mb:a},d=0;d<tl.length;++d)if(tl[d].priority<b){tl.splice(d,0,c);return}tl.push(c)};
|
|
132
|
+
vl=function(a){if(a){var b=tl.find(function(d){return d.Mb.a()===a}).Mb;if(b&&b.ba())return _.Rf(Eb+b.a()),b.create();_.Rf("Cannot create selected EME manager. Choosing by priority list.")}b=_.u(tl);for(var c=b.next();!c.done;c=b.next())if(c=c.value.Mb,c.ba())return _.Rf(Eb+c.a()),c.create();throw Error("Missing EME managers");};_.wl=function(a,b,c){this.j=new Uint8Array(a);this.a=b;this.f=c};xl=function(){_.wl.apply(this,arguments)};
|
|
133
|
+
_.zl=function(a){var b=_.Mh(a);b=parseInt(b.byteLength,10).toString(16);b=_.Mh("12"+b+a);return new xl(yl,a,b)};
|
|
134
|
+
_.Al=function(a){function b(r){switch(r){case 0:do if(!_.Ck(d))throw Error("not enough data to skip!");while(_.Ek(d)&128);break;case 1:d.skip(8);break;case 2:d.skip(c());break;case 3:for(;4!==(r=c()&7);)b(r);break;case 5:d.skip(4);break;default:throw Error("invalid wire type "+r);}}function c(){for(var r=_.Ek(d),v=(r&127)>>>0,z=7;128<=r&&28>=z;)r=_.Ek(d),v=(v|(r&(28>z?127:15))<<z)>>>0,z+=7;return 28<z?-1:v}var d=new _.Bk(new DataView(a.buffer,a.byteOffset,a.byteLength),!1);a=_.T(d);var e=_.T(d);e=
|
|
135
|
+
_.Pk(e);var f=_.T(d),g=f>>>24;f&=16777215;var h=_.Jk(d,16);h=_.Nh(h);if(0<g){var l=_.T(d);d.skip(16*l)}l=_.T(d);for(var m=[],n=null;_.Ck(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=Hk(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.Sf("Parsed WV PSSH Box","size",a,"name",e,"version",g,"flags",f,"size",l,"systemId",h,"contentId (base64)",n?_.Jh(n):"","keyIds",m.map(function(r){return _.Nh(r)}));return 0<m.length?_.zl(_.Nh(m[0])):null};
|
|
136
|
+
Bl=function(a){this.f=[];this.g=[];this.a=[];8<=a.byteLength&&(new _.Kk).Y("pssh",this.j.bind(this)).parse(a.buffer);0==this.a.length&&_.G("No pssh box found!")};
|
|
137
|
+
_.Fl=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=Cl;this.A=new _.dg;this.N=new mk;this.f=new Map;this.K=[];this.H=new _.bi;this.g=null;this.U=function(c){b.w=!0;b.D=!1;b.H.reject(c);a.onError(c)};this.m=new Map;this.ma=new Map;this.ga=new _.Wi(function(){return Dl(b)});this.j=!1;this.Ia=new _.bi;this.F=!1;this.ha=[];this.Xa=!1;this.V=0;this.h=new _.I("clpp.drm.DrmEngine");this.na=(new _.Wi(function(){El(b)})).fb(1);this.H["catch"](function(){});
|
|
140
138
|
this.w=this.D=!1;this.T=null};
|
|
141
|
-
|
|
142
|
-
if(2!=m.a)return _.
|
|
143
|
-
_.
|
|
144
|
-
_.
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
_.
|
|
148
|
-
_.
|
|
149
|
-
throw e;}})};_.
|
|
150
|
-
|
|
151
|
-
_.N(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}:{},
|
|
152
|
-
_.
|
|
153
|
-
".")),
|
|
154
|
-
_.
|
|
155
|
-
_.
|
|
156
|
-
_
|
|
157
|
-
!0}return!1};
|
|
158
|
-
|
|
159
|
-
for(e=f.next();!e.done;c={
|
|
160
|
-
(l.
|
|
161
|
-
_.
|
|
162
|
-
n=_.u(n.videoCapabilities);for(p=n.next();!p.done;p=n.next())delete p.value.robustness}if(1==b.size&&b.has(""))return Promise.reject(new _.L(_.M,6,6E3));null===a.o&&(a.o=
|
|
163
|
-
f.browser)h=_.
|
|
164
|
-
[]);for(p=r.next();!p.done;p=r.next())a.M.add(p.value.contentType);q=_.u(q);for(p=q.next();!p.done;p=q.next())a.M.add(p.value.contentType);q=n.keySystem;p=b.get(_.
|
|
165
|
-
_.
|
|
139
|
+
Hl=function(a){var b,c,d,e,f;return _.B(function(g){switch(g.a){case 1:a.A.release();a.A=null;a.N.release();a.N=null;a.w=!1;a.D=!1;a.H.reject();a.na.stop();a.na=null;a.ga.stop();a.ga=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.Gc&&e.Gc.stop();a.f.clear();return _.x(g,Promise.all(b.map(function(h){return Promise.resolve().then(function(){var l;return _.B(function(m){if(1==m.a)return a.h.debug("Closing session",h.sessionId),_.zf(m,2),_.x(m,Gl(h),4);
|
|
140
|
+
if(2!=m.a)return _.Af(m,0);l=_.Bf(m);a.h.warn("Error while closing session",l);_.y(m)})})})),2);case 2:if(!a.B){g.G(3);break}_.zf(g,4);return _.x(g,a.o.dd(null),6);case 6:_.Af(g,5);break;case 4:f=_.Bf(g),a.h.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.g=null,a.U=null,a.C=null,a.V=0,a.T=null,_.y(g)}})};
|
|
141
|
+
_.Kl=function(a,b,c){a.J=Il;a.K=c;a.F=0<c.length;a.h.debug("Using Persisted Licenses: "+a.F);a.g&&a.g.enableSessionCacheForSkd&&a.h.info("Enabled session cache for SKD license requests");return _.Jl(a,b)};
|
|
142
|
+
_.Jl=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.K.Ef(a.g.Wa);Ll(b,d)}var e=Ml(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())Nl(f.value,a.g.Wa);d=Ol(a,b);if(!d.size)return a.da=!0,Promise.resolve();d=_.Pl(a,d);return c?d:d["catch"](function(){})};
|
|
143
|
+
Ql=function(a){var b;return _.B(function(c){switch(c.a){case 1:if(a.o.Sd())return c["return"]();if(!a.T){c.G(2);break}return _.x(c,a.T,3);case 3:return c["return"]();case 2:return _.zf(c,4),a.T=a.o.dd(a.I),_.x(c,a.T,6);case 6:_.Af(c,0);break;case 4:b=_.Bf(c);if(a.j)return c["return"]();a.U(new _.L(_.M,6,6003,b.message,b));_.y(c)}})};
|
|
144
|
+
Sl=function(a,b){return _.B(function(c){if(1==c.a)return a.h.info("Handle encrypted event for type "+b.initDataType),_.x(c,Ql(a),2);if(!b.initData)return c["return"]();_.Rl(a,b.initDataType,_.N(b.initData));_.y(c)})};
|
|
145
|
+
_.Xl=function(a,b){if(!a.I)return _.eg(a.A,b,[dd,"msneedkey",cf,"needkey"],function(){a.U(new _.L(_.M,6,6010))}),Promise.resolve();a.B=b;a.o.Kd(b);a.A.one(a.B,_.Xd,function(){return Tl(a)});a.A.on(a.B,_.Ye,function(e){var f=a.D;a.D=!a.w;!f&&a.D&&(a.h.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.cd()!==kb||a.K.length)d=Ql(a);c=Promise.resolve();_.ji()&&38===$i().major||(a.a&&a.a.keySystem!==
|
|
146
|
+
_.Rd&&!a.a.serverCertificate&&(c=Ul(a)),c=c.then(function(){return _.Vl(a)}));return Promise.all([d,c]).then(function(){a.j||(_.Wl(a),a.A.on(a.B,dd,function(e){return Sl(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.a&&a.a.keySystem===_.Rc&&1>a.V&&a.a.serverCertificate&&a.a.serverCertificate.length)return a.h.warn("Detected invalid widevine server certificate!. Retrying"),a.U(new _.L(1,6,6004)),a.a.serverCertificate=null,a.V++,_.Xl(a,b);1<=a.V&&a.h.info("Could not get valid widevine server certificate. Giving up");
|
|
147
|
+
throw e;}})};_.Vl=function(a){var b,c;return _.B(function(d){if(1==d.a){if(!(a.I&&a.a&&a.a.serverCertificate&&a.a.serverCertificate.length))return d.G(0);_.zf(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.h.debug("Server certificates are not supported by the key system. The server certificate has been ignored."),_.Af(d,0);c=_.Bf(d);throw new _.L(_.M,6,6004,{browserError:c.message});})};
|
|
148
|
+
Ul=function(a){var b=a.keySystem(),c=a.g.Wa[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.C.getConfiguration();return Yl(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,h=f&&f.certificateResponse;f=_.Xh([d],a.g.attemptParameters);f.type=3;f.licenseRequestType=Cc;g&&f.requestModifiers.push(function(l){return g(e,l)});h&&f.responseModifiers.push(function(l){return h(e,l)});a.h.debug("Fetching certificate");return a.C.Db.fetch(f).P}).then(function(f){a.a.serverCertificate=
|
|
149
|
+
_.N(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}:{},rl(g));throw new _.L(_.M,6,6100,g,f);})};Yl=function(a,b){var c,d;return _.B(function(e){c=a.C.Mc();return c?(d=b&&b.drm&&b.drm.customData)?_.x(e,c(d),0):e["return"]():e["return"]()})};Zl=function(a,b){if(!a)return!1;for(var c=0;c<b.Od.length;c++)if(_.Oh(a,b.Od[c]))return!0;return!1};
|
|
150
|
+
_.Wl=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=!_.ii(2);if(a.g.enforceSingleSession&&!a.keySystem().startsWith(_.Pc)){var f=a.f.values();f=_.u(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.Oh(d.initData,g.initData)?(a.h.info("Skipping Session creation. Existing init data in single session mode!"),e=!1):g.periodId===d.periodId&&(a.h.info("Skipping Session creation. Merging init data for period in single session mode for Key ID "+(d.keyId+
|
|
151
|
+
".")),Zl(d.initData,g)||(g.Od.push(d.initData),d.keyId&&!g.gb.includes(d.keyId)&&g.gb.push(d.keyId),a.m.get(d.keyId)||a.m.set(d.keyId,qe)),e=!1)}!e||a.F&&a.J===Il||(_.$l(a,d.keyId,d.initData)&&(e=!1),e&&(a.h.info("Request new media key session on create"),am(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.u(a.K);for(d=c.next();!d.done;d=c.next())_.bm(a,d.value);b.length||a.K.length||(a.w||a.h.info(wa),a.w=!0,a.D=!1,a.H.resolve());return a.H};
|
|
152
|
+
_.Rl=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.F||a.J!==Il)){var e=a.keySystem();if(!e.startsWith(_.Pc)&&b===_.Ac){var f=new Bl(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||
|
|
153
|
+
_.ii(2)||a.keySystem().startsWith(_.Pc)||!_.$l(a,d,c,!0))&&am(a,d,null,b,c)}};
|
|
154
|
+
_.$l=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(_.Oh(c,g.initData))return b?g.gb.includes(b)?d&&a.h.info("Skipping Session creation. License for init data with Key ID "+(b+" was already requested in Session: '")+(f.sessionId+"'. ")):(g.gb.push(b),a.m.get(b)||a.m.set(b,qe),d&&a.h.info(qb+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.h.info(qb+(f.sessionId+"'")),!0;if(Zl(c,g))return d&&a.h.info("Skipping Session creation. License for init data was already requested [extra]"),
|
|
155
|
+
!0}return!1};cm=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};
|
|
156
|
+
Ol=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())c.add(e.value)}d=_.u(c);for(e=d.next();!e.done;e=d.next())Nl(e.value,a.g.Wa);f=a.F?_.ge:_.Qd;var g=a.F?[_.Vd]:[ze];d=new Map;c=_.u(c);for(e=c.next();!e.done;e=c.next())e=e.value,d.set(e.keySystem,{initDataTypes:[_.Ac],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.Qd,persistentState:f,sessionTypes:g,label:e.keySystem,drmInfos:[]});c={};f=_.u(b);
|
|
157
|
+
for(e=f.next();!e.done;c={he:c.he,pe:c.pe},e=f.next()){e=e.value;g=e.audio;var h=e.video;c.he=g?_.Ti(g.mimeType,g.codecs):"";c.pe=h?_.Ti(h.mimeType,h.codecs):"";var l={},m=_.u(e.drmInfos);for(e=m.next();!e.done;l={Jb:l.Jb},e=m.next())e=e.value,l.Jb=d.get(e.keySystem),l.Jb.drmInfos.push(e),e.initData&&e.initData.length&&(l.Jb.initDataTypes=_.mf(new Set(e.initData.map(function(n){return n.initDataType}))).concat()),e.distinctiveIdentifierRequired&&(l.Jb.distinctiveIdentifier=_.ge),e.persistentStateRequired&&
|
|
158
|
+
(l.Jb.persistentState=_.ge),g&&_.Eg(e.audioRobustness).forEach(function(n,p){return function(q){p.Jb.audioCapabilities.push({robustness:q||"",contentType:n.he})}}(c,l)),h&&_.Eg(e.videoRobustness).forEach(function(n,p){return function(q){p.Jb.videoCapabilities.push({robustness:q||"",contentType:n.pe})}}(c,l))}return d};
|
|
159
|
+
_.Pl=function(a,b){function c(n,p,q){p.drmInfos.some(function(r){return!!r.licenseServerUri})==n&&(g=g["catch"](function(){if(a.j)return null;if(q===_.Qc){var r=a.C.getConfiguration();if(!_.Yi()||r.streaming.patchEdgeWhenMixedContent||a.g.Wa[q].useLegacySystem)d(p);else return a.o.Ec("com.microsoft.playready.recommendation",[p])["catch"](function(){d(p);return a.o.Ec(q,[p])})}return a.o.Ec(q,[p])}))}function d(n){for(var p=_.u(n.audioCapabilities),q=p.next();!q.done;q=p.next())delete q.value.robustness;
|
|
160
|
+
n=_.u(n.videoCapabilities);for(p=n.next();!p.done;p=n.next())delete p.value.robustness}if(1==b.size&&b.has(""))return Promise.reject(new _.L(_.M,6,6E3));null===a.o&&(a.o=vl(a.g.emeApi));for(var e=_.u(b.values()),f=e.next();!f.done;f=e.next())f=f.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;var g=e=new _.bi,h=a.g.preferredDrmSystem;if(!h)if(f=_.ki(),f.os===tj&&10<=f.osVersion.major&&"edge"===f.browser)h=_.Qc;else if("safari"===
|
|
161
|
+
f.browser)h=_.Pc;else if(f.browser===Ec||"firefox"===f.browser)h=_.Rc;h&&(f=b.get(h))&&(c(!0,f,h),c(!1,f,h));f={};for(var l=_.u([!0,!1]),m=l.next();!m.done;f={ne:f.ne},m=l.next())f.ne=m.value,b.forEach(function(n){return function(p,q){q!==h&&c(n.ne,p,q)}}(f));g=g["catch"](function(n){throw new _.L(_.M,6,6001,null,n);});g=g.then(function(n){if(a.j)return null;a.M.clear();var p=n.getConfiguration();a.h.debug("Got MediaKeySystemAccess with configuration",p);var q=p.videoCapabilities||[],r=_.u(p.audioCapabilities||
|
|
162
|
+
[]);for(p=r.next();!p.done;p=r.next())a.M.add(p.value.contentType);q=_.u(q);for(p=q.next();!p.done;p=q.next())a.M.add(p.value.contentType);q=n.keySystem;p=b.get(_.dm(n.keySystem));r=[];var v=[],z=[],A=[];em(p.drmInfos,r,v,z,A);1<v.length&&_.G("Multiple unique server certificates found! Only the first will be used.");1<r.length&&_.G("Multiple unique license server URIs found! Only the first will be used.");a.a={keySystem:q,licenseServerUri:r[0],distinctiveIdentifierRequired:p.distinctiveIdentifier==
|
|
163
|
+
_.ge,persistentStateRequired:p.persistentState==_.ge,audioRobustness:p.audioCapabilities?p.audioCapabilities[0].robustness:"",videoRobustness:p.videoCapabilities?p.videoCapabilities[0].robustness:"",serverCertificate:v[0],initData:z,keyIds:A,periodId:null};if(!a.a.licenseServerUri)throw new _.L(_.M,6,6012,a.a.keySystem);return n.createMediaKeys()}).then(function(n){a.j||(a.h.info("Created MediaKeys for key system",a.a.keySystem),a.I=n,a.da=!0)})["catch"](function(n){if(!a.j){a.a=null;a.M.clear();
|
|
166
164
|
if(n instanceof _.L)throw n;throw new _.L(_.M,6,6002,{browserError:n.message});}});e.reject();return g};
|
|
167
|
-
|
|
165
|
+
Ml=function(a){a=_.K.Ef(a.g.Wa[_.Rd]||{});if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.Mh(f),h=_.Mh(e);g={kty:"oct",kid:_.Kh(g,!1),k:_.Kh(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.yh(d),initDataType:"keyids"}];return{keySystem:_.Rd,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
|
|
168
166
|
initData:d,keyIds:[],periodId:null}};
|
|
169
|
-
_.
|
|
170
|
-
b,f);if(!f)return a.f["delete"](c),a.
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
(
|
|
176
|
-
|
|
177
|
-
if(e.
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
a
|
|
181
|
-
|
|
182
|
-
"'")
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
d.some(function(m){return function(n){
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
f+",
|
|
203
|
-
|
|
204
|
-
a.a.on(c,_.
|
|
205
|
-
_.
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
_.
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
a
|
|
240
|
-
|
|
241
|
-
(f=
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
_.
|
|
246
|
-
_.
|
|
247
|
-
|
|
248
|
-
(d.
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
this.a
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
_.
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
_.u(q
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
b
|
|
284
|
-
P)
|
|
285
|
-
|
|
286
|
-
_.
|
|
287
|
-
_.
|
|
288
|
-
_.
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
g[
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
_.K
|
|
299
|
-
_.K.
|
|
300
|
-
_.K.
|
|
301
|
-
_.K.
|
|
302
|
-
_.C("clpp.log.
|
|
303
|
-
_.
|
|
304
|
-
|
|
305
|
-
_.t.
|
|
306
|
-
_.
|
|
307
|
-
_.
|
|
308
|
-
_.
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
_.
|
|
312
|
-
|
|
313
|
-
|
|
167
|
+
_.bm=function(a,b){try{a.h.debug("Attempting to load an offline session",b);var c=a.I.createSession(_.Vd)}catch(f){var d=new _.L(_.M,6,6005,{browserError:f.message});a.U(d);return Promise.reject(d)}a.A.on(c,zd,a.Kg.bind(a));a.A.on(c,od,a.Gg.bind(a));var e={initData:null,loaded:!1,Ze:Infinity,rb:null,Fa:new _.bi,periodId:null,Od:[],keyId:null,gb:[],initDataType:null,bc:null,sessionContext:{ldlDelay:0,customData:{}}};e.Fa["catch"](function(){});a.f.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.h.debug("Loaded offline session",
|
|
168
|
+
b,f);if(!f)return a.f["delete"](c),a.U(new _.L(_.M,6,6013)),null;e.loaded=!0;fm(a)&&(a.w||a.h.info(wa),a.w=!0,a.D=!1,a.H.resolve());return c},function(f){a.j||(a.f["delete"](c),a.U(new _.L(_.M,6,6005,{browserError:f.message})))})};gm=function(a,b,c,d){if(!b&&c!==_.me)return!1;d=b||Uk(d);a=_.u(a.f.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||c===_.me&&(e.keyId||Uk(e.initData))===d)return!0;return!1};
|
|
169
|
+
am=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,r,v,z,A,E,H,D,F,V,P,Ca,qa,ra,Da,Fa;_.B(function(pa){switch(pa.a){case 1:if(!e.length)return a.h.warn("Empty init data"),pa["return"]();h=b;if(!h)try{h=hm(a,d,e,f)}catch(za){if(a.h.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:za,initDataType:d,
|
|
170
|
+
initData:e}),a.g.ignoreUnrecognizedInitData)return pa["return"]()}if(g){pa.G(2);break}if(!gm(a,h,d,e)){pa.G(2);break}l=!0;if("skd"!==d||a.g.enableSessionCacheForSkd){pa.G(4);break}m=_.u(a.f.keys());n=m.next();case 5:if(n.done){pa.G(4);break}p=n.value;q=a.f.get(p);if(!h||q.keyId!==h){pa.G(6);break}a.h.warn("Close and re-open session for "+h);_.zf(pa,9);return _.x(pa,p.close(),11);case 11:_.Af(pa,10);break;case 9:r=_.Bf(pa),a.h.warn("Unable to close session",r);case 10:l=!1;case 6:n=m.next();pa.G(5);
|
|
171
|
+
break;case 4:if(l)return a.h.warn("Skip creating a new session for "+h),pa["return"]();case 2:try{z=a.F?_.Vd:ze,v=a.I.createSession(z),a.h.info("Created new "+z+" session for Key ID: '"+h+"'. Init data type: "+(d+"."))}catch(za){return a.U(new _.L(_.M,6,6005,{browserError:za.message})),pa["return"]()}a.A.on(v,zd,a.Kg.bind(a));a.A.on(v,od,a.Gg.bind(a));A={bc:f,Od:[],initData:e,initDataType:d,keyId:h,gb:h?[h]:[],loaded:!1,Ze:Infinity,periodId:c,rb:null,Fa:new _.bi,sessionContext:{ldlDelay:0,customData:{}}};
|
|
172
|
+
A.Fa["catch"](function(){});f&&(E=a.f.get(f),A.sessionContext=E.sessionContext);a.f.set(v,A);h&&!a.m.get(h)&&a.m.set(h,qe);if(e)for(H=0;H<a.a.initData.length;H++)D=a.a.initData[H],D.keyId&&!A.gb.includes(D.keyId)&&_.Oh(D.initData,e)&&(A.keyId||(A.keyId=D.keyId),A.gb.push(D.keyId),a.m.get(D.keyId)||a.m.set(D.keyId,qe));F=_.K;V=F.nb;P=a.C.getConfiguration();Ca=a.keySystem();qa=a.g.Wa[Ca];Da=(ra=qa.modifiers)&&ra.transformInitData;V(Da)||(Da=im);try{e=Da({playerConfig:P,initData:e,initDataType:d,drmInfo:a.a,
|
|
173
|
+
drmSystemConfig:qa,sessionContext:A.sessionContext,emeApi:a.o.cd()})}catch(za){return Fa=za,za instanceof _.L||(Fa=new _.L(_.M,6,6016,za)),A.Fa&&A.Fa.reject(za),a.U(Fa),pa["return"]()}a.h.info("Generate License Request for key ID: '"+h+"'");v.generateRequest(d,e.buffer)["catch"](function(za){if(!a.j){var La=null;za.errorCode&&za.errorCode.systemCode&&(La=za.errorCode.systemCode,0>La&&(La+=Math.pow(2,32)),La="0x"+La.toString(16));a.U(new _.L(_.M,6,6006,{browserError:za.message,error:za,extended:La},
|
|
174
|
+
za))}});_.y(pa)}})};
|
|
175
|
+
hm=function(a,b,c,d){d=void 0===d?null:d;if("skd"===b){a:{var e=d;e=void 0===e?null:e;b=a.keySystem();d=a.g.Wa[b];b=a.C.getConfiguration();d=d&&d.modifiers&&d.modifiers.extractContentId;_.K.nb(d)||(d=jm);try{var f={ldlDelay:0,customData:{}};e&&(f=a.f.get(e).sessionContext);var g=d(b,c,f);a.h.debug("Extracted Content ID '"+g+"' from SKD");var h=g;break a}catch(l){a.h.warn("Unable to extract Content ID from SKD",l)}h=""}return h}if(b===_.me)return Uk(c)||"";if(b===_.Ac){h=a.keySystem();try{if(h.match(/^com\.widevine\.alpha/)&&
|
|
176
|
+
(e=_.Al(c)))return e.a}catch(l){throw a.h.warn("Unable to extract Key ID from PSSH data.",{error:l,keySystem:h}),l;}}return""};jm=function(a,b){var c=_.Tk(b);_.Sf("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
|
|
177
|
+
im=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=_.K.nb;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=jm);a="";try{a=e(b,c,f)}catch(h){throw new _.L(_.M,6,6103);}if(!a.length)throw new _.L(_.M,6,6101,"Content ID is an empty string");c=Vk(c,a,d)}return c};
|
|
178
|
+
om=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.h.info("WV Server certificate request for SID:'"+(c.sessionId+" from msg '")+(b.messageType+"'"))):a.h.info("License request for SID:'"+(c.sessionId+"'/KID:'"+d.keyId+"' from msg '")+(b.messageType+"'"));var g=a.a.licenseServerUri;e=a.g.Wa[e];"individualization-request"===b.messageType&&e&&e.individualizationServer&&(g=e.individualizationServer);var h=_.Xh([g],
|
|
179
|
+
a.g.attemptParameters);h.type=3;h.body=b.message;h.method="POST";h.licenseRequestType=b.messageType===rd&&d.bc?qd:f?Cc:b.messageType;h.sessionId=c.sessionId;if(h.licenseRequestType===qd)a.C.onEvent(new _.J(Zc));km(a.a.keySystem)&&lm(a,h);nk(a.N,h);var l=Date.now();return mm(a,h,d.sessionContext).then(function(){a.h.debug("Sending DRM license request to",g,h);return a.C.Db.fetch(h).P}).then(function(m){if(a.j)return Promise.reject();var n=Date.now()-l,p=nm(a,m),q="";p&&(q=" RID:"+p);p=m&&m.data?m.data.byteLength:
|
|
180
|
+
-1;f?a.h.info("WV Server certificate response for SID:'"+(c.sessionId+"' ")+(p+" bytes in ")+(n+"ms"+q)):a.h.info("License response for SID:'"+(c.sessionId+"'/KID:'")+(d.keyId+"' ")+(p+" bytes in ")+(n+"ms"+q));var r=ok(a.N,m);return c.update(m.data).then(function(){if(!f){var v=cm(a),z=r?Date.now()+1E3*r.delay:Number.NaN;v=new _.J(_.ad,{keySystem:a.keySystem(),expirationTime:v,expectedRenewalTime:z});a.C.onEvent(v);d&&(d.rb&&d.rb.resolve(),d.bc&&(v=d.bc,a.h.info("Closing expired session '"+v.sessionId+
|
|
181
|
+
"'"),Gl(v)["catch"](function(){a.h.warn("Unable to close expired session in time")}),(v=a.f.get(d.bc))&&v.Gc&&v.Gc.stop(),a.f["delete"](d.bc),d.bc=null),(new _.Wi(function(){a.j||(d.loaded=!0,d.Fa&&d.Fa.resolve(),fm(a)&&(a.w||a.h.info(wa),a.w=!0,a.D=!1,a.H.resolve()))})).aa(5),null!==d.initData&&(0<d.sessionContext.ldlDelay||r&&pk(a.keySystem()))&&(v=new _.Wi(function(){!a.j&&a.N&&(a.h.info("Updating CSL Sessions"),km(a.keySystem())?am(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):a.keySystem().startsWith(_.Pc)&&
|
|
182
|
+
c.update(_.yh("renew")))}),d.Gc=v,v.aa(r?r.delay:d.sessionContext.ldlDelay)))}})},function(m){var n,p,q,r;return _.B(function(v){if(a.j)return v["return"]();n=m.data.headers;p=rl(n);q=Object.assign({message:_.Ga,url:m.data.url,status:m.data.status,response:m.data.response},n?{headers:n}:{},p);r=new _.L(_.M,6,6007,q,m);a.U(r);d&&d.rb&&d.rb.reject(r);d&&d.Fa&&d.Fa.reject(r);_.y(v)})})["catch"](function(m){a.j||(m===nb?a.h.info("Ignore update for closed sessions"):(m=new _.L(_.M,6,6008,{browserError:m.message}),
|
|
183
|
+
a.U(m),d&&d.rb&&d.rb.reject(m),d&&d.Fa&&d.Fa.reject(m)))})};nm=function(a,b){if(!b||!b.headers)return"";var c=b.headers["x-dt-li"];if(c)try{return JSON.parse(_.uh(_.Lh(c))).ti}catch(d){a.h.warn("Unable to parse DRMtoday Request ID",d)}return""};
|
|
184
|
+
lm=function(a,b){var c=_.wh(b.body,!0,!0);if(c.includes("PlayReadyKeyMessage")){a.h.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(_.Me).textContent;b.body=_.Lh(c.querySelector("Challenge").textContent).buffer}else a.h.debug("PlayReady request is already unwrapped."),b.headers[ta]="text/xml; charset\x3dutf-8"};
|
|
185
|
+
mm=function(a,b,c){var d,e,f,g,h,l;return _.B(function(m){if(1==m.a)return d=a.C.getConfiguration(),_.x(m,Yl(a,d),2);e=a.keySystem();h=(g=(f=a.g.Wa[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;h?b.requestModifiers.push(function(n){return h(d,n,c)}):e.startsWith(_.Pc)&&b.requestModifiers.push(function(n){return _.Wk(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Pc)&&b.responseModifiers.push(function(n){return _.Xk(n)});_.y(m)})};
|
|
186
|
+
Dl=function(a){var b=a.m,c=a.ma;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 _.L(_.M,6,6014));a.C.cf(_.K.Ff(c));a.w||a.h.info(wa);a.w=!0;a.D=!1};Tl=function(a){var b;return _.B(function(c){b=a.ha.map(function(d){return om(a,d)});a.Xa=!0;a.ha=[];return _.x(c,Promise.all(b),0)})};km=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};_.dm=function(a){return km(a)?_.Qc:a};
|
|
187
|
+
El=function(a){a.f.forEach(function(b,c){var d=b.Ze,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.C.onExpirationUpdated(c.sessionId,e),b.Ze=e)})};fm=function(a){a=a.f.values();return _.hh(a,function(b){return b.loaded})};
|
|
188
|
+
Ll=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};
|
|
189
|
+
em=function(a,b,c,d,e){var f={};a=_.u(a);for(var g=a.next();!g.done;f={ya:f.ya},g=a.next()){f.ya=g.value;b.includes(f.ya.licenseServerUri)||b.push(f.ya.licenseServerUri);f.ya.serverCertificate&&(c.some(function(m){return function(n){return _.Oh(n,m.ya.serverCertificate)}}(f))||c.push(f.ya.serverCertificate));if(f.ya.initData){var h=_.u(f.ya.initData);for(g=h.next();!g.done;g=h.next())g.value.periodId=f.ya.periodId;h={};var l=_.u(f.ya.initData);for(g=l.next();!g.done;h={Bd:h.Bd},g=l.next())h.Bd=g.value,
|
|
190
|
+
d.some(function(m){return function(n){var p=m.Bd;return n.keyId&&n.keyId==p.keyId&&n.periodId===p.periodId?!0:!1}}(h))||d.push(h.Bd)}if(f.ya.keyIds)for(g=0;g<f.ya.keyIds.length;++g)e.includes(f.ya.keyIds[g])||e.push(f.ya.keyIds[g])}};
|
|
191
|
+
Nl=function(a,b){if(a.keySystem){var c=_.dm(a.keySystem),d=b[c];c===_.Rd&&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=
|
|
192
|
+
d.serverCertificate||null)))}};Gl=function(a){var b,c;return _.B(function(d){if(1==d.a)return b=new Promise(function(e){(new _.Wi(e)).aa(1)}),_.x(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.G("Timeout waiting for session close");_.y(d)})};_.rm=function(a,b){a&&b&&(pm.set(a,b),qm.info("Registered TextDisplayerFactory: '"+a+"'"))};
|
|
193
|
+
_.sm=function(a,b){var c=b.find(function(d){return(d=pm.get(d))?d.ba(a):!1});if(null==c)return qm.warn("Subtitles may not work as expected. No compatible text displayer found for this platform."),null;qm.info("Chosen the text displayer: "+c);return pm.get(c)};tm=function(){this.a=null;this.f=[]};_.um=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})}};
|
|
194
|
+
vm=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};wm=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};xm=function(){this.g=this.f=this.j=null;this.a=[]};ym=function(a){return a.a.map(function(b){return _.K.Ra(b)})};
|
|
195
|
+
_.zm=function(){this.f=this.o=this.A=this.D=this.j=this.m=this.g=this.w=NaN;this.a=new tm;this.B=new xm};_.Am=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:[]}};_.Bm=function(a){this.f=a;this.a=void 0};Dm=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Cm.value().get(b),c.one(a,b,d))};
|
|
196
|
+
Mm=function(a){this.h=new _.I("clpp.StateManager");this.l=a;this.a=new _.dg;this.f=_.Em;this.A=_.Km;this.I=0;this.w=-1;this.M=this.o=this.J=this.B=0;this.j=this.m=this.F=!1;this.H=0;this.g=null;this.K=0;this.N=_.cj();this.D=!1;this.J=Date.now();Lm(this)};Nm=function(a,b){return Object.keys(b)[a]};
|
|
197
|
+
Pm=function(a,b){var c={type:_.pe};b===_.uc||b===_.tc?(c.reason=a.w,b===_.uc?c.timeSinceLastStateChangeMS=a.I:c.bufferedTimeMS=a.B):(a.f===_.Om&&(c.reason=a.w),a.A===_.Om&&(c.reason=a.w,c.bufferedTimeMS=a.B),c.currentState=a.f,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.I);return c};
|
|
198
|
+
Tm=function(a,b){if(a.f===b)return!1;var c=Date.now(),d=a.f===_.Om;a.A=a.f;a.f=b;a.A===_.Qm&&(a.J=c,a.o=0);a.o||(a.o=a.J||c);a.I=c-a.o;a.o=c;b===_.Om?(a.M=a.o,a.w=a.m?1:2,a.h.info("Buffering started. Reason: "+Nm(a.w-1,_.Rm)),c=Pm(a,_.uc),a.Xb(_.uc,c)):d&&(a.B=a.o-a.M,a.h.info("Buffering finished. Reason: "+Nm(a.w-1,_.Rm)+". Buffering time: "+a.B+" ms"),c=Pm(a,_.tc),a.Xb(_.tc,c));c=Nm(a.A,_.Sm);d=Nm(a.f,_.Sm);a.h.info(_.eb+c+" -\x3e "+d);a.Xb(_.pe,Pm(a,""));return!0};
|
|
199
|
+
Ym=function(a,b){if(a.f===_.Um)a.h.warn("Player is in error state, aborting any further state checks");else{var c=a.l.isPaused();var d=a.l.getPosition();var e=a.l.getDuration();if(d=a.l.isEnded()||a.f===_.Qm&&1>=Math.abs(d-e)||c&&d>=e)Tm(a,_.Qm)&&a.h.debug("Player claims to be in ended state, not checking more");else if(b!==_.De){e=a.l.getPosition();e=null!==e&&void 0!==e&&0<=e?a.l.getBufferInfo().Ja(e,!0):-1;a.H=e;e=a.l.getSurface().getMedia();a.g=e?e.readyState:null;a.K=a.l.getPlaybackRate()||1;
|
|
200
|
+
e=typeof a.g===_.k&&2>a.g&&2===e.networkState;var f=typeof a.g===_.k&&0>=a.H&&a.f===_.Em,g=typeof a.g===_.k&&2>=a.g&&a.j;e=a.m||f||e||g;!a.N||a.l.isLive()||a.f!==_.Om||e||(f=b===_.je&&4===a.g,(g=a.A===_.Vm)&&!a.D?e=!0:g||a.D||f||(e=!0));f=!1;e?f=Tm(a,_.Om):c?f=Tm(a,_.Wm):a.F&&(f=Tm(a,_.Xm));f&&(a.D=!1);a.h.debug("Video state check for event "+b+":: seeking: "+a.m+", waiting: "+a.j+", playing: "+a.F+", paused: "+c+", readyState: "+a.g+", rate: "+a.K+", buffer: "+a.H+", ended: "+d+". Changed state: "+
|
|
201
|
+
f+", Current state: "+Nm(a.f,_.Sm))}}};
|
|
202
|
+
Lm=function(a){function b(d){return Ym(a,d.type)}a.h.debug("Start watching for video events for "+a.l.namespace());var c=a.l;a.a.on(c,_.gd,function(){a.j=!1;Tm(a,_.Qm)});a.a.on(c,vc,b);a.a.on(c,_.Yd,function(){a.F=!0;a.j=!1;Ym(a,_.Yd)});a.a.on(c,_.Td,function(){a.F=!1;a.j=!1;Ym(a,_.Td)});a.a.on(c,_.De,b);a.a.on(c,_.ce,b);a.a.on(c,_.je,function(d){a.m=!1;a.j=!1;Ym(a,d.type)});a.a.on(c,_.ke,function(d){a.m=!0;Ym(a,d.type)});a.a.on(c,ne,b);a.a.on(c,_.Xe,function(){a.j=!0;Ym(a,_.Xe)});a.a.on(c,_.hd,function(d){return a.U(d)});
|
|
203
|
+
a.a.on(c,_.vd,b);a.a.on(c,wc,function(){a.D=!0;Ym(a,wc)});a.a.on(c,_.Le,function(d){a.m=!0;Ym(a,d.type)});a.a.on(c,_.Ke,function(d){a.m=!1;a.j=!1;Ym(a,d.type)})};Zm=function(a){a=(new _.Kg(a)).Ba;if(!a)return null;a=a.toUpperCase();return _.Ch(a,".MPD")?_.cc:_.Ch(a,".M3U8")?_.Gj:_.Ch(a,".MP4")?_.Re:_.Ch(a,"MANIFEST")||_.Ch(a,".ISM")?_.hc:null};
|
|
204
|
+
_.an=function(a){var b;_.fk(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.te||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=$m(b[c]);d&&a.push(d)}return a};
|
|
205
|
+
$m=function(a){var b=null;_.K.$(a)&&(a={url:a});typeof a===_.Jd&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.K.R(a.drmProtected)||typeof a.drmProtected!==_.sc||(b.drmProtected=a.drmProtected),_.K.R(a.isLive)||typeof a.isLive!==_.sc||(b.isLive=a.isLive),_.K.R(a.name)||typeof a.name!==_.te||(b.name=a.name),_.K.R(a.Hb)||typeof a.Hb!==_.te||(b.Hb=a.Hb),_.K.R(a.audioMimeType)||typeof a.audioMimeType!==_.te||(b.audioMimeType=a.audioMimeType));b&&!b.type&&(b.type=Zm(a.url),b.type?
|
|
206
|
+
bn.debug("Detect media type "+b.type+" for "+a.url):bn.warn("Unable to detect media type for "+a.url));return b};cn=function(){_.gk.call(this,Kc);this.A=this.I=!1;this.m=this.B=this.o=this.a=this.j=null;this.g=new _.dg;this.H=this.F=this.f=this.J=null};
|
|
207
|
+
fn=function(a,b){return a.A?dn():new Promise(function(c){a.a||(a.g.on(b,_.hd,function(){var d=en(a);if(d)a.onError(d)}),a.g.on(b,_.he,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 _.J(_.rc,{detail:{width:d,height:e}}))}),a.a=b);c()})};gn=function(a){return a.A?dn():new Promise(function(b){if(a.a){var c=a.a;a.g.off(c,_.hd);a.g.off(c,_.he);a.a=null}b()})};
|
|
208
|
+
jn=function(a){var b,c,d,e,f;return _.B(function(g){if(1==g.a){if(a.A)return g["return"](dn());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=_.hn;d=_.tk(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.o=new _.Fl({Db:e,onError:function(h){return a.onError(h)},cf:function(){},onExpirationUpdated:function(h,l){a.trigger(new _.J(_.Yc,
|
|
209
|
+
{expirationTime:l}))},onEvent:function(h){h instanceof _.J?a.dispatchEvent(h):a.log.debug(_.xb,h.type)},getConfiguration:function(){return a.getConfiguration()},Mc:function(){return a.Mc()}});a.o.g=d;f={id:0,language:_.Ge,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,
|
|
210
|
+
sa:0,mimeType:_.Re,codecs:"",encrypted:!0,keyId:null,language:_.Ge,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,am:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,Ml:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.x(g,_.Kl(a.o,[f],[]),2)}return 3!=g.a?_.x(g,_.Xl(a.o,a.a),3):g["return"](Promise.resolve())})};
|
|
211
|
+
kn=function(a,b){Dm(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.g,function(){a.getState()!==_.Um&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};en=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 _.L(_.M,3,3016,{code:b,Ul:c,message:a.a.error.message})};dn=function(){return Promise.reject(new _.L(_.M,7,7E3))};
|
|
212
|
+
ln=function(a){if(a.A)return new _.ci(dn(),function(){});var b=a.w[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.J;c&&kn(a,c);if(d.preload!==_.Id)a.g.one(d,_.vd,function(){var g=Date.now()/1E3-e;a.f.A=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.ii()||_.ji())&&d.load();var f=new _.bi;a.g.one(d,ne,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.F||(a.F=(new _.Wi(function(){f.reject(new _.L(_.M,3,3100,{message:"Unable to load media source successfully from "+
|
|
213
|
+
b.url,uri:b.url},d.error))})).aa(g))});Dm(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.g,function(){return f.resolve()});d.error?f.reject(en(a)):d.preload===_.Id&&(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.g.one(d,_.hd,function(){f.reject(en(a))});
|
|
214
|
+
return new _.ci(f,function(){var g=new _.L(_.M,7,7001);f.reject(g);return Promise.resolve()})};
|
|
215
|
+
mn=function(a,b){Dm(b,HTMLMediaElement.HAVE_CURRENT_DATA,a.g,function(){if(a.isLive()&&a.getState()!==_.Um){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)}))}})};nn=function(){};
|
|
216
|
+
_.qn=function(a){a&&(0<=on.indexOf(a)?pn.warn("Factory '"+a.name()+"' is already registered"):(on.push(a),pn.info("Factory "+a.name()+"' has been registered.")))};sn=function(a,b){var c=on.find(function(d){return d.ba(a,b)});c||(c=new rn);pn.info("Chosen ads: "+c.name());return c};_.tn=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};_.un=function(a,b){a.classList.add(b)};
|
|
217
|
+
_.vn=function(a,b){if(a&&typeof b===_.Jd)for(var c in b)a.style[c]=b[c]};_.wn=function(a){return document.createElement(a)};xn=function(){this.a=null;this.g=new Set;this.f=null;this.set(null)};yn=function(a,b){a.a&&0!==b.length&&(a.a.classList.add(b),a.g.add(b))};zn=function(a,b){var c=new MutationObserver(function(){var d=Array.from(a.g.values());Gg(Array.from(b.classList),Array.from(d))||b.classList.add.apply(b.classList,_.mf(d))});c.observe(b,{attributes:!0,attributeFilter:["class"]});return c};
|
|
218
|
+
Dn=function(a,b){this.h=new _.I("clpp.PlayerSurface");this.w=_.K.va(An,b);this.f=new xn;this.g=null;this.a=new xn;this.m=Bn;Bn+=1;this.o="clpp-video-"+this.m;this.j=new _.dg;if(null==a)throw new _.L(_.M,7,7102,"No Media element was provided");if(a instanceof Element)var c=a;else if(c=document.getElementById(a),!c)throw new _.L(_.M,7,7004,"Media element not found");var d=this.w;this.h.debug("Initializing Player Surface on ",c);if("cast-media-player"===c.tagName.toLowerCase())this.g=c;else{if(!(c instanceof
|
|
219
|
+
HTMLMediaElement))throw new _.L(_.M,7,7005,"Media element is not instance of HTMLMediaElement");if(!c.hasAttribute("crossorigin")){var e=d.crossorigin;this.h.info("Setting media elements crossorigin to "+e);c.setAttribute("crossorigin",e)}this.f.set(c);if(d.disableContainer)d=null;else if(d.containerEl){if(c.parentNode!==d.containerEl)throw new _.L(_.M,7,7006,"Container element is not a direct parent of media element");d=d.containerEl}else{d=document.createElement(_.Xc);c.parentNode?c.parentNode.replaceChild(d,
|
|
220
|
+
c):this.h.warn("Player Surface Element has no parent. Can not inject container. You have to manually add playerSurface.getContainer() to the DOM!");e=[];for(var f=0;f<c.classList.length;f++)e.push(c.classList[f]);e=_.u(e);for(f=e.next();!f.done;f=e.next())f=f.value,c.classList.remove(f),_.un(d,f);d.style.cssText=c.style.cssText;c.removeAttribute(_.ve);e=_.u([_.df,_.kd]);for(f=e.next();!f.done;f=e.next()){f=f.value;var g=c.getAttribute(f);g=parseInt(g,10);isNaN(g)||(d.style[f]=g+_.be);_.ii()||c.removeAttribute(f)}d.appendChild(c)}d&&
|
|
221
|
+
(this.a.set(d),yn(this.a,"clpp-container"),yn(this.a,this.o),yn(this.f,_.Fc),yn(this.f,"clpp-video"));Cn(this,c,d)}};Cn=function(a,b,c){(_.ji()&&53===$i().major||_.ji()&&68===$i().major||_.aj())&&!b.hasAttribute(Tc)&&(b.style.opacity="0",b.setAttribute(Tc,""),a.j.one(b,cd,function(){b.removeAttribute(Tc);b.style.opacity="1";c&&(c.style.opacity="1")}))};Fn=function(a){this.l=a;this.j=this.l.getNetworkEngine();this.a=new _.dg;this.g=null;this.f=!0;En(this)};
|
|
222
|
+
En=function(a){a.a.on(window,"offline",function(){Gn(a,!1)});a.a.on(window,"online",function(){a.f||Hn(a)});a.a.on(a.l,ne,function(){return In(a)});a.a.on(a.l,"suspend",function(){return In(a)});a.a.on(a.l,_.Xe,function(){return In(a)});a.a.on(a.l,_.Yd,function(){a.f||Hn(a)});a.a.on(a.l,_.ae,function(){a.f||Hn(a)});a.a.on(a.l,_.pe,function(){switch(a.l.getState()){case _.Om:In(a);break;default:In(a)}})};Hn=function(a){a.l.getConfiguration().connectivityCheck&&(Jn(a),a.g=(new _.Wi(function(){return Kn(a)})).aa(5))};
|
|
223
|
+
In=function(a){a.f&&Hn(a)};Jn=function(a){a.g&&(a.g.stop(),a.g=null)};Kn=function(a){var b,c;return _.B(function(d){if(1==d.a)return(b=a.l.getConfiguration().connectivityCheck)&&a.l?_.x(d,pi(a.j,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;Gn(a,c);_.y(d)})};Gn=function(a,b){Jn(a);a.f!==b&&(a.f=b,a.l&&a.l.getConfiguration().connectivityCheck&&a.l.trigger(new _.J(Pd,{online:a.f})))};Mn=function(){for(var a=0;a<Ln.length;++a)Ln[a].Dc()};
|
|
224
|
+
_.Nn=function(a,b){b=b||0;for(var c={priority:b,Dc:a},d=0;d<Ln.length;d++)if(Ln[d].priority<b){Ln.splice(d,0,c);return}Ln.push(c)};On=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};Pn=function(a,b,c){this.g=a;this.f=b;JSON.parse(_.uh(_.Lh(a)));this.a=JSON.parse(_.uh(_.Lh(b)));this.j=c};Qn=function(a){this.license=a;this.a=null;this.h=new _.I("clpp.utils.LicenseKey")};
|
|
225
|
+
Rn=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 Pn(b[0],b[1],b[2]);a.a=b}return a.a};Sn=function(a){switch((a.Td()[0]||{src:"",type:""}).type){case _.cc:a="dash";break;case _.hc:a="ss";break;case _.Gj:a="hls";break;case _.Re:a=_.Ed;break;default:a=""}return a};Tn=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};
|
|
226
|
+
Un=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};Vn=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};Xn=function(a){var b=a.getConfiguration(),c="no";b.drm&&!_.K.Aa(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(bd)||Wn(a).endsWith("drmtoday.com"))&&(c=bd);return c};
|
|
227
|
+
Yn=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.keySystem){case _.Rc:b="wv";break;case _.Qc:b="pr";break;case _.Pc:b="fps"}return b};Zn=function(a){a=a.getDrmInfo();var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};$n=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.videoRobustness){case Ma:case "HW_SECURE_ALL":b="L1";break;case Ka:b="L2";break;case _.mb:case _.lb:b="L3"}return b};Wn=function(a){a=a.getDrmInfo();return(new _.Kg(a&&a.licenseServerUri||"")).Sa};
|
|
228
|
+
co=function(a,b){var c="ie"===_.ki().browser,d=b.getConfiguration(),e=_.mf(Array.from(_.hk.keys())).concat(_.mf(b.qj()));d={"CL-KEY":a.license,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ea,"CL-USER-ID":Tn(d),"CL-ASSET-ID":Un(d),"CL-SESSION-ID":Vn(d),"CL-PLAYBACK-TYPE":b.isLive()?ao:bo,"CL-CONTENT-TYPE":Sn(b),"CL-PLUGINS":e.join(" "),"CL-DRM":Xn(b),"CL-DRM-CDM":Yn(b),"CL-DRM-SEC-LEVEL":$n(b),"CL-DRM-OFFLINE":Zn(b),"CL-DRM-IP":Wn(b)};c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=
|
|
229
|
+
e);e=_.Xh(["https://downloads.castlabs.com/r/register/"]);e.method="GET";e.headers=d;return(new _.ni).fetch(e).P.then(function(f){200===f.status&&c&&window.localStorage.setItem("cl_et",f.headers.etag);return Promise.resolve()})["catch"](function(f){a:{var g=Rn(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=
|
|
230
|
+
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.h.error(Ra+l);f=Promise.reject(new _.L(_.M,7,g,l))}}return f})};
|
|
231
|
+
U=function(a,b,c){_.Wj.call(this);var d=this;Mn();this.h=new _.I("clpp.Player");if(!a)throw new _.L(_.M,7,7102);this.A=new _.dg;this.f=this.T=b||_.ck();this.m=null;void 0===this.f.license&&(this.f.license=ak,this.h.warn("You are using the embedded demo license!"));if(!this.f.license)throw this.h.error("You provided null or empty string as your license. Please check your license configuration."),new _.L(_.M,7,7101,"No license provided in configuration!");this.g=new Dn(a,c);this.a=this.w=null;this.H=
|
|
232
|
+
new _.ni;this.j=null;this.K=[];this.M={};this.o=null;this.I=!0;this.J=this.F=!1;this.D=this.Ic=null;this.Ae=!1;this.V=new Fn(this);this.N=!1;this.B=function(f){(f=f.detail)&&f.currentState===_.Xm&&(d.off(_.pe,d.B),eo(d))};this.on(_.pe,function(){d.getState()===_.Um&&d.unload()});this.on(_.Yb,this.Ag.bind(this));this.on(_.Xb,this.Ag.bind(this));fo(this,this.f.license);this.g.getMedia()&&(a=this.g.getMedia(),a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),this.h.debug("Removed autoplay attribute from video element. Auto play will be handled by configuration."),
|
|
233
|
+
void 0===this.f.autoplay&&(this.f.autoplay=!0,this.h.debug("Setting autoplay in configuration since it was specified in the video element"))));a=[];b=_.u(go);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.h.error("Error while creating player plugin",f)}}ho(this,a);_.hk.clear()};_.io=function(a,b){b!==a.a&&(a.a&&(a.a.removeDelegate(a),a.a.destroy()),a.a=b,a.a&&(a.a.init(a.g,a.f),a.a.setNetworkEngine(a.getNetworkEngine()),a.a.addDelegate(a)))};
|
|
234
|
+
fo=function(a,b){a.w=new Qn(b);a.w.verify()["catch"](function(c){setTimeout(function(){a.h.error(Ra+c);a.trigger(new _.J(_.hd,{detail:new _.L(_.M,7,7101)}));a.destroy()},1E3)})};
|
|
235
|
+
eo=function(a){if(!a.N){a.N=!0;a.g.getMedia()||a.g.getCastElement();a.w||(a.w=new Qn(a.f.license));var b=Object.keys(a.M);co(a.w,{getConfiguration:a.getConfiguration.bind(a),Td:a.Td.bind(a),getDrmInfo:a.getDrmInfo.bind(a),qj:function(){return b},isLive:a.isLive.bind(a)}).then(function(){a.h.debug("License verified remotely")})["catch"](function(c){setTimeout(On,1E3,{release:a.release.bind(a),destroy:a.destroy.bind(a),onError:a.onError.bind(a)},c)})}};
|
|
236
|
+
ho=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.kc("onPlayerCreated")};
|
|
237
|
+
jo=function(a){var b,c;return _.B(function(d){if(1==d.a){if(a.I)return a.h.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.off(_.pe,a.B);a.A.off(a,_.pe,a.B);a.A.off(document,Ve);a.trigger(new _.J(_.ee));a.N=!1;a.g&&a.g.release();return a.j?_.x(d,a.j.dispose(),3):d.G(2)}2!=d.a&&(a.j=null);lk(function(e){e.release()});if(a.a)return b=null,c=a.a.on(_.pe,function(e){b=e}),d["return"](a.kc(_.Nd).then(function(){a.a.removeDelegate(a);return Promise.all([a.a.release(),
|
|
238
|
+
a.H.release()])}).then(function(){a.h.debug("Releasing player completed");b&&(a.h.debug("Re-post state change event after release"),a.trigger(b))})["finally"](function(){a.a.off(_.pe,c);a.trigger(new _.J(de))}));a.trigger(new _.J(de));return d["return"](new Promise(function(e){return e()}))})};
|
|
239
|
+
ko=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(_.Wf);for(var l=0;l<b.length;l++)for(var m=0;m<h.length;m++){var n={Mb: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?(_.Xf.debug("Player Factory '"+f.Mb.a()+"' can play",b[g]),f=new Uf(f.Mb,g)):(_.Xf.error("No compatible Player Factory found for sources:",b),f=null)}else f=null;f?(g=f.Mb.create(),d(new Vf(g,f.a))):
|
|
240
|
+
(f=new _.J(_.hd,{detail:new _.L(_.M,7,7003)}),a.trigger(f),e(f))})};
|
|
241
|
+
_.mo=function(a,b){var c,d,e,f;return _.B(function(g){switch(g.a){case 1:if(a.F)throw Error("Player is already destroyed.");if(!a.g)throw Error("No surface associated with this player!");return _.x(g,a.release(),2);case 2:a.o=_.an(b);c=_.fk(b);a.f=_.ek(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.G(3);break}return _.x(g,ko(a,a.o,a.f),4);case 4:f=g.f,d=f.a,e=f.f,a.J=!1;case 3:d?_.io(a,
|
|
242
|
+
d):a.a.addDelegate(a);lo(a);a.a&&a.a.setCdnErrorCallback(a.D);a.j=sn(a,a.f).create(a);a.setSourceIndex(e);if(a.f.pauseWhenInBackground)a.A.on(document,Ve,function(){document.hidden?(a.h.debug("Player is hidden: pausing..."),a.pause()):(a.h.debug("Player is visible: resuming..."),a.play())});lk(function(h){h.ac()});return _.x(g,a.kc("onContentWillLoad",a.f.source[e]),0)}})};
|
|
243
|
+
_.no=function(a){return _.B(function(b){a.g.getMedia()||a.g.getCastElement();a.A.on(a,_.pe,a.B);a.trigger(new _.J(wd));return _.x(b,Promise.all([a.a.load(a.f),a.j.load()]),0)})};oo=function(a){var b=_.Eg(a.f.preferredTextLanguage).filter(function(d){return d}),c=a.getTrackManager().ia();b.some(function(d){var e=_.eh(d);return(d=c.find(function(f){f=_.eh(f.language||"");return _.fh(f,e)}))?(a.getTrackManager().Ga(d),!0):!1})};
|
|
244
|
+
_.po=function(a){var b,c,d,e;return _.B(function(f){if(1==f.a){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)}return 3!=f.a?(oo(a),lk(function(){}),_.x(f,a.kc("onContentLoaded"),3)):a.f.autoplay?_.x(f,a.play(),0):f.G(0)})};lo=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.B(function(c){if(!a.Ic||!a.Ae)return c.G(0);a.Ae=!1;return _.x(c,a.Ic(b),0)})})};
|
|
245
|
+
_.qo=function(a){a&&(0<=go.indexOf(a)||go.push(a))};ro=function(){};so=function(){};to=function(){};uo=function(){};rn=function(){};vo=function(){};_.wo=function(){};xo=function(){this.a=null};yo=function(){};zo=function(){this.size=0;this.a=void 0;this.h=new _.I("clpp.drm.eme.MediaKeyStatusMap")};Ao=function(a,b){a.size=void 0===b?0:1;a.h.debug("Setting key status to",b);a.a=b};Bo=function(){};Co=function(){};Do=function(){this.a=this.f=null};
|
|
246
|
+
Eo=function(a,b){this.keySystem=a;if(a.startsWith(_.Pc))for(var c=_.u(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.ge)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.Qd,distinctiveIdentifier:_.Qd,initDataTypes:e.initDataTypes,sessionTypes:[ze],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])&&
|
|
247
|
+
(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,_.Re));d=g?d:null}if(d){this.a=d;return}}c=Error(zb);c.name=ab;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
|
|
248
|
+
Fo=function(a){this.f=null;this.g=new WebKitMediaKeys(a);this.a=new _.dg;this.j=0;this.h=new _.I(Jc);this.h.info("Created Media Keys for "+a)};
|
|
249
|
+
Go=function(a,b){a.f=b;_.gg(a.a);if(!b)return Promise.resolve();a.a.on(b,dd,function(c){_.Sf("AppleEmeManager.cancelNativeMediaEncryptedEvent_",c);"MediaEncryptedEvent"in window&&c instanceof MediaEncryptedEvent&&(a.h.info("Cancel native MediaEncryptedEvent when using Apple-prefixed EME"),c.stopImmediatePropagation())});a.a.on(b,cf,function(c){a.h.debug("Handle webkitNeedKey event");c=_.N(c.initData);if(_.rh(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");
|
|
250
|
+
c=_.wh(c.subarray(4),!0);c=_.yh(c);var d=new Event(dd);d.initDataType="skd";d.initData=sh(c);a.f.dispatchEvent(d)});Dm(b,HTMLMediaElement.HAVE_METADATA,a.a,function(){return b.webkitSetMediaKeys(a.g)});return Promise.resolve()};Ho=function(a,b){_.Wj.call(this);this.a=null;this.o=a;this.f=this.g=null;this.j=new _.dg;this.sessionId=b;this.expiration=NaN;this.closed=new _.bi;this.m=!1;this.keyStatuses=new zo;this.h=new _.I(Jc)};Io=function(a,b){Ao(a.keyStatuses,b);a.dispatchEvent(new _.J(od))};Jo=function(){};
|
|
251
|
+
Ko=function(){this.f=this.a=null;this.g="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.g="webkit")};
|
|
252
|
+
Lo=function(a,b,c,d){this.g=a;this.a=this.keySystem=c;a=!1;c===_.Rd&&(this.a=Ze,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,
|
|
253
|
+
this.a)&&(h.push(m),e=!0));l||(e=b.canPlayType(_.Re,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.ge||a||(e=!1);if(e){this.f=f;return}}b=zb;if(c===_.Rd||c===_.Rc)b="None of the requested configurations were supported.";c=Error(b);c.name=ab;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};Mo=function(a,b){this.g=a;this.o=b;this.a=null;this.f=new _.dg;this.j=[];this.m=new Map};
|
|
254
|
+
Po=function(a,b){a.a=b;_.gg(a.f);b&&(a.f.on(b,a.g+"needkey",function(c){var d=new Event(dd);d.initDataType=_.Ac;d.initData=sh(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.g+"keymessage",function(c){var d=No(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.J(zd,{messageType:e?rd:qd,message:c.message});_.Sf("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.Tf("Session not found",c.sessionId)}),a.f.on(b,a.g+"keyadded",function(c){if(c=
|
|
255
|
+
No(a,c.sessionId))_.Sf("WebkitEmeManager.MediaKeySession.ready"),Oo(c,"usable"),c.a&&c.a.resolve(),c.a=null}),a.f.on(b,a.g+"keyerror",function(c){var d=No(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?Oo(d,_.Sd):1===e?Oo(d,"expired"):
|
|
256
|
+
Oo(d,_.nd))}}))};No=function(a,b){var c=a.m.get(b);return c?c:(c=a.j.shift())?(c.sessionId=b,a.m.set(b,c),c):null};Qo=function(a,b,c,d){_.Wj.call(this);this.w=a;this.j=b;this.o=!1;this.a=this.f=null;this.g=c;this.m=d;this.sessionId="";this.expiration=NaN;this.closed=new _.bi;this.keyStatuses=new zo};
|
|
257
|
+
So=function(a,b,c){if(a.o)return Promise.reject(Error("The session is already initialized."));a.o=!0;try{if(a.m===_.Vd)if(c)var d=_.N(_.yh("LOAD_SESSION|"+c));else{var e=_.yh("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.N(b),e.byteLength);d=f}else d=_.N(b)}catch(h){return Promise.reject(h)}a.f=new _.bi;var g=Ro(a,"generateKeyRequest");try{a.j[g](a.g,d)}catch(h){if(h.name!==Pa)return a.f=null,Promise.reject(h);(new _.Wi(function(){try{a.j[g](a.g,d)}catch(l){a.f.reject(l),
|
|
258
|
+
a.f=null}})).aa(.01)}return a.f};To=function(a,b,c){if(a.a)a.a.then(function(){return To(a,b,c)})["catch"](function(){return To(a,b,c)});else{a.a=b;if(a.g===Ze){var d=_.uh(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=_.Lh(e.keys[0].k);e=_.Lh(e.keys[0].kid)}else d=_.N(c),e=null;var f=Ro(a,"addKey");try{a.j[f](a.g,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};Oo=function(a,b){Ao(a.keyStatuses,b);a.dispatchEvent(new _.J(od))};
|
|
259
|
+
Ro=function(a,b){return a.w?a.w+b.charAt(0).toUpperCase()+b.slice(1):b};Uo=function(){};
|
|
260
|
+
Vo=function(a,b,c,d,e){_.wk.call(this,Na);this.m=a;this.j=b;this.g=c;this.a=d;this.o=e;this.h=new _.I(Ic);_.Eh(this.m)?this.h.warn(_.Db):this.Pa(_.Rc,{licenseUrl:this.m,videoRobustness:[_.mb,void 0],audioRobustness:[_.lb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.td.bind(this)}});_.Eh(this.j)?this.h.warn(_.cb):this.Pa(_.Qc,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.td.bind(this)}});
|
|
261
|
+
_.Eh(this.g)?this.h.warn(_.Ia):_.Eh(this.a)?this.h.warn(_.Ha):this.Pa(_.Pc,{licenseUrl:this.g,certificateUrl:this.a,modifiers:{licenseRequest:this.Eg.bind(this),licenseResponse:this.Fg.bind(this),certificateRequest:this.td.bind(this),extractContentId:this.cg.bind(this)}})};Wo=function(){this.l=null};Xo=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.jd)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
|
|
262
|
+
Yo=function(a){a=a.target;if(a.webkitPresentationMode===Wd){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)};Zo=function(){return this.webkitSupportsPresentationMode(Wd)?(this.webkitSetPresentationMode(Wd),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
|
|
263
|
+
$o=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};ap=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};bp=function(a,b,c){return new window.TextTrackCue(a,b,c)};
|
|
264
|
+
cp=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};ep=function(a,b,c){if("input"===a)switch(this.type){case "range":a=Dc}dp.call(this,a,b,c)};gp=function(){this.a=fp()};hp=function(a){return fp()-a.a};ip=function(a){var b=new gp;b.a=a.a;return b};fp=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};_.jp=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};
|
|
265
|
+
kp=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.g=b;this.f=0};lp=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.g),c));a.a.set(d)}a.a.set(b,a.f);a.f+=b.byteLength};_.mp=function(a,b,c){this.f=a;this.j=b;this.g=c||this.f.getMedia();this.a=null};_.op=function(){this.a=new Blob([np],{type:_.Re})};
|
|
266
|
+
_.qp=function(a,b,c,d){var e,f;return _.B(function(g){if(1==g.a)return _.zf(g,2),_.x(g,pp(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.Bf(g);f.a(_.M);throw f;})};
|
|
267
|
+
pp=function(a,b,c,d){var e,f,g,h;return _.B(function(l){if(1==l.a){if(d){if(e=_.rp[d.toLowerCase()])return l["return"](e);_.G("Could not determine manifest type using MIME type ",d)}if(f=_.sp(a)){if(g=_.tp[f])return l["return"](g);_.G("Could not determine manifest type for extension ",f)}else _.G("Could not find extension for ",a);return d?l.G(2):_.x(l,up(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(h=_.rp[d])return l["return"](h);_.G("Could not determine manifest type using MIME type",d)}throw new _.L(_.M,4,
|
|
268
|
+
4E3,{url:a});})};up=function(a,b,c){var d,e,f;return _.B(function(g){if(1==g.a)return d=_.Xh(a),Vh(d,c),d.type=1,d.method="HEAD",_.x(g,b.fetch(d).P,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.sp=function(a){a=(new _.Kg(a)).Ba.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()};vp=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.g=new gp};
|
|
269
|
+
xp=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(wp(a,d),$h(c,d.byteLength,hp(a.g)),a.g.a=fp());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 xp(a,b,c)})})};wp=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};
|
|
270
|
+
li=function(a){var b=a.uris[a.uriIndex],c=new yp,d=new gp,e=ip(d),f=0,g,h=new _.bi;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=hp(e));p.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!l&&(p=p.getResponseHeader(sa),Zh(a,p),l=!0)};c.onload=function(p){p=p.target;var q=(p.getAllResponseHeaders()||"").trim().split("\r\n"),r={};
|
|
271
|
+
q=_.u(q);for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),r[v[0].toLowerCase()]=v.slice(1).join(": ");try{var z=hp(e);m||$h(a,p.response?p.response.length:0,z);var A=_.Yh(r,p.response,p.status,b,p.responseURL,a,z,g);a.rateLimitBps?ai(a.rateLimitBps,hp(e),a.bytesLoaded).then(function(){h.resolve(A)}):h.resolve(A)}catch(E){h.reject(E)}};c.onerror=function(p){p=p.target;if(0>=p.status)h.reject(new _.L(1,1,1002,{url:b,request:a,status:p.status}));else{var q=p.getAllResponseHeaders(),r={};if(q){q=
|
|
272
|
+
_.u(q.trim().split("\r\n"));for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),r[v[0].toLowerCase()]=v.slice(1).join(": ")}p=_.Yh(r,p.response,p.status,b,p.responseURL,a,hp(e),g);h.resolve(p)}};c.ontimeout=function(){h.reject(new _.L(1,1,1003,{url:b,request:a}))};c.onprogress=function(p){var q=hp(d);d.a=fp();if(100<q||p.lengthComputable&&p.loaded===p.total)$h(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{P:h,
|
|
273
|
+
request:a,abort:function(){c.abort();h.reject(new _.L(1,1,7001,{url:b,request:a}));return Promise.resolve()}}};zp=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.j=new kp(a);this.length=a;this.A=b;this.f=this.a=this.g=0;this.m=null;this.o=-1;this.w=new gp};
|
|
274
|
+
Cp=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,hp(a.w)),a.w.a=fp());if(f)return f=Ap(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){lp(a.j,e);a.a=a.g;a.f=a.j.f;a.m=new DataView(a.j.a.buffer,0,a.j.f);e=Bp(a);for(f=[];e;)f.push(e),e=Bp(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],
|
|
275
|
+
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 Cp(a,b,c,d)})})};Bp=function(a){if(0<=a.o&&a.f<a.o)return null;for(var b=Dp(a);null!==b;){if(b.name===_.xd){var c={start:a.g,end:b.end,length:b.end-a.g,data:new DataView(a.j.a.buffer,a.g,b.end-a.g),count:1};a.g=b.end;return c}b=Dp(a)}return null};
|
|
276
|
+
Dp=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=Ep(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=Ep(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.m.getUint32(a.a,!1);var f=a.m.getUint32(a.a+4,!1)}catch(g){throw new _.L(_.M,3,3E3);}if(2097151<e)throw new _.L(_.M,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};
|
|
277
|
+
Ep=function(a){var b=a.m.getUint32(a.a,!1);a.a+=4;return b};Ap=function(a){var b=null;a.g!==a.f&&(b={start:a.g,end:a.f,length:a.f-a.g,data:new DataView(a.j.a.buffer,a.g,a.f-a.g),count:-1});return b};Gp=function(a){_.ci.call(this,new _.bi,function(){return Promise.resolve()});this.B=a;this.g=null;this.w=this.P;this.f=-1;this.j=this.m=this.o=null;Fp(this)};Hp=function(a,b,c){a.o=setTimeout(b,c)};
|
|
278
|
+
Fp=function(a){a.g=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=Ip(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*Ip(e.request.fuzzFactor,.5));a.f*=Ip(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,h){a.m=h;Hp(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.L(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
|
|
279
|
+
return e.plugin(e.request)});var b=0,c=0,d=0;return a.g.then(function(e){var f=e.request;f.currentAttempt+=1;b=f.currentAttempt;c=f.maxAttempts;d=f.uris.length;return e.P}).then(function(e){a.w.resolve(e)})["catch"](function(e){if(e instanceof _.L){var f=b<d,g=7001!==e.code,h=b<c;if((1===e.severity||f)&&g&&h)return Fp(a);g&&e.a(_.M);a.w.reject(e)}else a.w.reject(e)})};Ip=function(a,b){return null===a||void 0===a?b:a};
|
|
280
|
+
mi=function(a){var b=new Jp,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new Kp,e={bd:!1,hh:!1};b={P:Lp(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.bd||(e.bd=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.hh=!0;d.abort()},a);b.P=b.P["finally"](function(){window.clearTimeout(f)})}return b};
|
|
281
|
+
Lp=function(a,b,c,d){var e,f,g,h,l,m,n,p,q,r,v,z,A,E,H,D;return _.B(function(F){switch(F.a){case 1:return e=Mp,l=new gp,m=ip(l),_.zf(F,2),_.x(F,e(a,c),4);case 4:f=F.f;h=hp(l);n=f.headers.get(sa);Zh(b,n);p=n?parseInt(n,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return v=f.body.getReader(),z=new zp(p,!b.disableMergedFragments),A=function(V,P){if(d.bd)return null;P&&P.data&&($h(b,P.data.byteLength,hp(l)),l.a=fp());return b.onFragment&&P?b.rateLimitBps?ai(b.rateLimitBps,hp(m),b.bytesLoaded).then(function(){return b.onFragment(P)}):
|
|
282
|
+
b.onFragment(P):null},_.x(F,Cp(z,v,A,b.onProgress),10);q=f.body.getReader();r=new vp(p);return _.x(F,xp(r,q,b),7);case 7:g=F.f;if(!b.rateLimitBps){F.G(6);break}return _.x(F,ai(b.rateLimitBps,hp(m),g.byteLength),6);case 10:g=F.f;case 6:_.Af(F,3);break;case 2:E=_.Bf(F);if(d.bd)throw new _.L(1,1,7001,{url:a,request:b});if(d.hh)throw new _.L(1,1,1003,{url:a,request:b});_.Tf("Error while fetching data:",E);throw new _.L(1,1,1002,{url:a,error:E,request:b,status:-1},E);case 3:H={};D=f.headers;D.forEach(function(V,
|
|
283
|
+
P){H[P.trim()]=V});if(d.bd)throw new _.L(1,1,7001,{url:a,request:b});return F["return"](_.Yh(H,g,f.status,a,f.url,b,hp(m),h))}})};hi=function(a){try{var b=a.uris[a.uriIndex],c=_.Np(b);return{P:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{P:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
|
|
284
|
+
_.Np=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.Tf("Bad data URI, failed to parse scheme"),new _.L(_.M,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.Tf("Bad data URI, failed to extract encoding and MIME type"),new _.L(_.M,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?_.Lh(a).buffer:_.yh(a).buffer,contentType:c}};_.Pp=function(a){delete _.Op[a]};
|
|
285
|
+
_.Qp=function(a){a=a.getConfiguration();a=_.K.Ra(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.te?a.backgroundColor:null;this.V=typeof a.windowColor===_.te?a.windowColor:null;this.N=typeof a.fontColor===_.te?a.fontColor:null;this.T=typeof a.fontFamily===_.te?a.fontFamily:null;this.I=typeof a.fontSize===_.te?a.fontSize:null;this.B=typeof a.fontSizePercent===_.k?a.fontSizePercent:null;this.H=typeof a.edgeColor===_.te?a.edgeColor:"rgba(0, 0, 0, 1)";this.o=null;typeof a.edgeType===
|
|
286
|
+
_.te&&(this.o=a.edgeType)};_.Vp=function(a){if(!a.o)return null;var b=a.H;switch(a.o){case Rp:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case Sp:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case Tp:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case Up:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.Id}};Wp=function(a){this.f=a;this.a=null;this.h=new _.I("clpp.text.Mp4TextParser")};
|
|
287
|
+
_.Yp=function(a){_.Qp.call(this,a);this.m=a.getSurface().getMedia();this.f="clpp-video-"+Xp++;this.g=document.createElement(_.ve);this.j=this.w=!1;_.un(this.m,this.f);document.head.appendChild(this.g);this.sb()};Zp=function(){};_.$p=function(){};nf=typeof Object.create==_.jd?Object.create:function(a){function b(){}b.prototype=a;return new b};
|
|
288
|
+
if(typeof Object.setPrototypeOf==_.jd)aq=Object.setPrototypeOf;else{var bq;a:{var cq={oh:!0},dq={};try{dq.__proto__=cq;bq=dq.oh;break a}catch(a){}bq=!1}aq=bq?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
|
|
289
|
+
var of=aq,sf=typeof Object.defineProperties==_.jd?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},qf="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;tf.prototype.toString=function(){return this.a};var rf=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new tf("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
|
|
290
|
+
wf.prototype.A=function(a){this.f=a};wf.prototype["return"]=function(a){this.g={"return":a};this.a=this.m};wf.prototype.G=function(a){this.a=a};
|
|
291
|
+
If("Promise",function(a){function b(g){this.f=0;this.m=void 0;this.a=[];var h=this.g();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.g(function(){h.m()})}this.a.push(g)};var e=qf.setTimeout;c.prototype.g=function(g){e(g,0)};c.prototype.m=function(){for(;this.a&&this.a.length;){var g=this.a;this.a=[];for(var h=0;h<g.length;++h){var l=
|
|
292
|
+
g[h];g[h]=null;try{l()}catch(m){this.j(m)}}}this.a=null};c.prototype.j=function(g){this.g(function(){throw g;})};b.prototype.g=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.j)}};b.prototype.D=function(g){if(g===this)this.j(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.F(g);else{a:switch(typeof g){case _.Jd:var h=null!=g;break a;case _.jd:h=!0;break a;default:h=!1}h?this.B(g):this.o(g)}};
|
|
293
|
+
b.prototype.B=function(g){var h=void 0;try{h=g.then}catch(l){this.j(l);return}typeof h==_.jd?this.H(h,g):this.o(g)};b.prototype.j=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.m=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.F=function(g){var h=this.g();
|
|
294
|
+
g.Fd(h.resolve,h.reject)};b.prototype.H=function(g,h){var l=this.g();try{g.call(h,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,h){function l(q,r){return typeof q==_.jd?function(v){try{m(q(v))}catch(z){n(z)}}:r}var m,n,p=new b(function(q,r){m=q;n=r});this.Fd(l(g,m),l(h,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.Fd=function(g,h){function l(){switch(m.f){case 1:g(m.m);break;case 2:h(m.m);break;default:throw Error("Unexpected state: "+
|
|
295
|
+
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).Fd(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;r--;0==r&&m(q)}}var q=[],r=0;do q.push(void 0),r++,d(l.value).Fd(p(q.length-1),n),l=h.next();while(!l.done)})};return b});var Kf=this||self;
|
|
296
|
+
Kf.a=!0;_.K={mh:20,Ra:function(a){var b=_.K.R,c=_.K.sg,d=_.K.va;return b(a)||c(a)?a:d(a)}};_.C("clpp.utils.obj.cloneItem",_.K.Ra);_.K.va=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=_.K.vg(c,{merging:b[d]},1));return c.merging||null};_.C("clpp.utils.obj.merge",_.K.va);
|
|
297
|
+
_.K.vg=function(a,b,c){var d=_.K.R,e=_.K.sg,f=_.K.vg,g=_.K.nb,h=_.K.Hj,l=_.K.rg,m=_.K.Dj,n=_.K.Oc;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<_.K.mh&&(a[p]=f(a[p],n,c));return a};_.K.sg=function(a){a=typeof a;return a===_.te||a===_.k||a===_.sc};_.K.Dj=function(a){return a instanceof Element};_.K.R=function(a){return null===a||"undefined"===typeof a};_.K.Oc=function(a){return typeof a===_.Jd};
|
|
298
|
+
_.K.nb=function(a){return typeof a===_.jd};_.K.$=function(a){return typeof a===_.te};_.K.la=function(a){return typeof a===_.k};_.K.pg=function(a){return typeof a===_.sc};_.K.rg=function(a){var b=_.K.Oc,c=_.K.R;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.K.Hj=function(a){var b=_.K.Oc,c=_.K.nb;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
|
|
299
|
+
_.K.Aa=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||!_.K.Oc(a)||!_.K.Oc(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var h=e[g];if(_.K.R(d)||0>d.indexOf(h))if(f[h]=!0,a[h]!==b[h])return!1}if(_.K.R(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.K.R(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
|
|
300
|
+
_.K.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.K.Ej=function(a,b,c){return a>=b&&a<=c};_.K.Ef=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};_.K.Ff=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};var Of={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.C("clpp.log.Level",Of);var Mf=3,Lf={},eq=[];_.C("clpp.log.getLoggers",function(){return _.K.Ra(Lf)});_.C("clpp.log.addInterceptor",function(a){a&&eq.push(a)});_.C("clpp.log.removeInterceptor",function(a){a&&(a=eq.indexOf(a),0<=a&&eq.splice(a,1))});_.C("clpp.log.getTagLevel",Nf);_.C("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Lf[a]});_.C("clpp.log.setTagLevel",function(a,b){a&&(_.K.$(b)&&(b=Pf(b)),Lf[a]=b)});
|
|
301
|
+
_.C("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.K.$(a)&&(a=Pf(a));Mf=a});_.C("clpp.log.getLogLevel",function(){return Mf});_.t=_.I.prototype;
|
|
302
|
+
_.t.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=Nf(this.tag);if(0<=d){if(d<c)return}else if(Mf<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):
|
|
303
|
+
1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.u(eq);for(var e=d.next();!e.done;e=d.next())e=e.value,e.call(e,c,arguments)}};_.t.info=function(a){Array.prototype.unshift.call(arguments,3);this.log.apply(this,arguments)};_.t.debug=function(a){Array.prototype.unshift.call(arguments,4);this.log.apply(this,arguments)};_.t.warn=function(a){Array.prototype.unshift.call(arguments,2);this.log.apply(this,arguments)};
|
|
304
|
+
_.t.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.t.Qi=function(a){return a?this.tag?new _.I(this.tag+"."+a):new _.I(a):this};_.C("clpp.log.Logger",_.I);_.I.prototype.createChild=_.I.prototype.Qi;_.I.prototype.error=_.I.prototype.error;_.I.prototype.warn=_.I.prototype.warn;_.I.prototype.debug=_.I.prototype.debug;_.I.prototype.info=_.I.prototype.info;_.I.prototype.log=_.I.prototype.log;var Qf=new _.I("clpp");_.C("clpp.log.info",_.Rf);
|
|
305
|
+
_.C("clpp.log.debug",_.Sf);_.C("clpp.log.warn",_.G);_.C("clpp.log.error",_.Tf);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.Xf=new _.I("clpp.players");_.Wf={};_.Zf.prototype.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.Zf.prototype.get=function(a){return(a=this.a[a])?a.slice():[]};_.Zf.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};_.Zf.prototype.clear=function(){this.a={}};$f.prototype.Xb=function(a){try{this.Dc.handleEvent?this.Dc.handleEvent(a):this.Dc.call(this.a,a)}catch(b){_.Tf("clpp","Uncaught exception in event handler for event '"+this.f+"'",b,b?b.message:null,b?b.stack:null)}};_.J.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};_.J.prototype.stopImmediatePropagation=function(){this.f=!0};_.J.prototype.stopPropagation=function(){};_.t=cg.prototype;
|
|
306
|
+
_.t.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].Xb(a),b[c].$k&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.t.on=function(a,b,c){this.a.push(a,new $f(a,b,c||this.f));return b};_.t.one=function(a,b,c){this.a.push(a,new $f(a,b,c||this.f,!0));return b};_.t.off=function(a,b){var c=this.a.get(a),d=!1;if(c)for(var e=0;e<c.length;e++)c[e].Dc===b&&(d=this.a.remove(a,c[e])||d);return d};_.t.clear=function(){this.a.clear()};_.dg.prototype.release=function(){_.gg(this)};_.dg.prototype.on=function(a,b,c,d){a=new hg(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.dg.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)};_.dg.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||(fg(f),this.a.remove(b,f))}};ig.prototype.release=function(){this.f.release();this.g=[];this.a=null};ig.prototype.destroy=function(){var a=this;return _.B(function(b){a.release();a.m=null;a.j=null;_.y(b)})};ig.prototype.getTimelineCues=function(){return this.g};_.C("clpp.text.Cue",_.yg);_.yg.positionAlign={LEFT:_.sd,RIGHT:_.td,CENTER:_.Bc,AUTO:"auto"};_.sg=_.Ae;_.yg.payloadType={TEXT:_.sg,VTT_XML:_.We,TTML_XML:_.Fe};_.tg=_.Bc;_.fq={LEFT:_.pd,RIGHT:_.ie,CENTER:_.tg,START:_.pd,END:_.ie};_.yg.textAlign=_.fq;var xg="ltr";_.yg.direction={HORIZONTAL_LEFT_TO_RIGHT:xg,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.ug="horizontal-tb";_.yg.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.ug,VERTICAL_LEFT_TO_RIGHT:_.Ne,VERTICAL_RIGHT_TO_LEFT:_.Oe};_.vg=0;
|
|
307
|
+
_.yg.lineInterpretation={LINE_NUMBER:_.vg,PERCENTAGE:1};_.wg=_.oe;_.gq={CENTER:_.Bc,START:_.wg,END:_.ed};_.yg.lineAlign=_.gq;_.C("clpp.text.CueRegion",_.Bg);_.zg=1;_.Bg.units={PX:0,PERCENTAGE:_.zg,LINES:2};var Ag="";_.Bg.scrollMode={NONE:Ag,UP:"up"};_.Bg.displayAlign={BEFORE:"flex-end",CENTER:_.Bc,AFTER:"flex-start"};_.Bg.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Nc,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};Cg.prototype.destroy=function(){this.a.release();this.j=!1;this.m=this.a=this.g=this.f=null;return Promise.resolve()};Cg.prototype.start=function(a){var b=this;this.j?this.h.warn("Already started. Ignoring request..."):(this.j=!0,this.g=a,this.f=this.g.textTracks,this.a.on(this.f,_.Vb,function(c){return Dg(b,c)}),this.a.on(this.f,Dc,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.le&&(e.mode=_.ld)}}))};
|
|
308
|
+
Cg.prototype.o=function(a){var b=new _.yg(a.startTime,a.endTime,a.text,_.We);if(_.K.$(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Ne;break;case "rl":b.writingMode=_.Oe}_.K.la(a.size)&&(b.size=a.size);if(_.K.$(a.align))switch(a.align){case _.pd:case _.oe:b.textAlign=_.pd;break;case _.Bc:b.textAlign=_.tg;break;case _.ie:case _.ed:b.textAlign=_.ie}_.K.la(a.position)&&(b.position=a.position);if(_.K.$(a.positionAlign))switch(a.positionAlign){case _.sd:b.positionAlign=_.sd;break;case _.Bc:b.positionAlign=
|
|
309
|
+
_.Bc;break;case _.td:b.positionAlign=_.td}_.K.la(a.line)&&(b.line=a.line);if(_.K.$(a.lineAlign))switch(a.lineAlign){case _.oe:b.lineAlign=_.wg;break;case _.Bc:b.lineAlign=_.Bc;break;case _.ed:b.lineAlign=_.ed}_.K.pg(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.vg:1);return b};var Pg=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;_.t=_.Kg.prototype;_.t.bb="";_.t.oc="";_.t.Sa="";_.t.Sc=null;_.t.Ba="";_.t.cc="";_.t.toString=function(){var a=[],b=this.bb;b&&a.push(Sg(b,hq,!0),":");if(b=this.Sa){a.push("//");var c=this.oc;c&&a.push(Sg(c,hq,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Sc;null!=b&&a.push(":",String(b))}if(b=this.Ba)this.Sa&&"/"!=b.charAt(0)&&a.push("/"),a.push(Sg(b,"/"==b.charAt(0)?iq:jq,!0));(b=this.a.toString())&&a.push("?",b);(b=this.cc)&&a.push("#",Sg(b,kq));return a.join("")};
|
|
310
|
+
_.t.resolve=function(a){var b=new _.Kg(this);"data"===b.bb&&(b=new _.Kg);var c=!!a.bb;c?Lg(b,a.bb):c=!!a.oc;c?b.oc=a.oc:c=!!a.Sa;c?b.Sa=a.Sa:c=null!=a.Sc;var d=a.Ba;if(c)Mg(b,a.Sc);else if(c=!!a.Ba){if("/"!=d.charAt(0))if(this.Sa&&!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(""):
|
|
311
|
+
".."==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?_.Ng(b,Og(a.a)):c=!!a.cc;c&&(b.cc=a.cc);return b};var hq=/[#\/\?@]/g,jq=/[#\?:]/g,iq=/[#\?]/g,Tg=/[#\?@]/g,kq=/#/g;Rg.prototype.a=null;Rg.prototype.g=null;Rg.prototype.add=function(a,b){_.Vg(this);this.f=null;var c=this.a.hasOwnProperty(a)&&this.a[a];c||(this.a[a]=c=[]);c.push(b);null!==this.g&&this.g++;return this};
|
|
312
|
+
Rg.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")};_.hn={VIDEO:_.Pe,AUDIO:_.jc,TEXT:_.Ae,vl:_.ac,IMAGE:_.md,Gl:_.we};_.lq=1/15;var Wg={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av1$/],text:[/^vtt$/,/^wvtt/,/^stpp/]};_.Zg={text:{mp4:dc,m4s:dc,m4i:dc,cmft:dc,vtt:_.Be,ttml:_.gc},video:{mp4:_.Re,m4s:_.Re,m4i:_.Re,m4v:_.Re,cmfv:_.Re,ts:_.Qe},audio:{mp4:_.oc,m4s:_.oc,m4i:_.oc,m4a:_.oc,cmfa:_.oc,ts:_.Qe,aac:_.kc,ec3:_.nc,ac3:_.lc},image:{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.w(_.L,Error);_.L.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=ah(this.severity,this.category,this.code,this.data))};_.L.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.C("clpp.Error",_.L);_.M=2;_.L.Severity={RECOVERABLE:1,FATAL:_.M};_.L.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
|
|
314
313
|
_.L.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,
|
|
315
314
|
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,
|
|
316
315
|
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,
|
|
@@ -319,64 +318,64 @@ DASH_XLINK_DEPTH_LIMIT:4028,HLS_COULD_NOT_PARSE_SEGMENT_START_TIME:4030,CONTENT_
|
|
|
319
318
|
HLS_DISCONTINUITY_NOT_SUPPORTED:4045,HLS_UNSUPPORTED_FEATURE:4046,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,EXPIRED:6014,REQUESTED_DRM_ENVIRONMENT_UNAVAILABLE:6015,
|
|
320
319
|
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,INVALID_LICENSE:7101,NO_ELEMENT:7102,USER_ID_NOT_PROVIDED:7103,
|
|
321
320
|
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,VIMOND_SESSION_ERROR:9201,MUXDATA_INVALID_CONFIGURATION:9300,
|
|
322
|
-
MUX_SDK_MISSING:9301,MUXDATA_INIT_ERROR:9302,IMA_SDK_MISSING:1E4,IMA_INVALID_CONFIGURATION:10001,IMA_UNSUPPORTED_PLATFORM:10002,AD_ERROR:10003,BROADPEAK_SDK_MISSING:11E3,BROADPEAK_SESSION_ERROR:11001,FREEWHEEL_SDK_MISSING:12E3,FREEWHEEL_INVALID_CONFIGURATION:12001,CONTENT_TRANSFORMATION_FAILED:14E3};_.
|
|
323
|
-
"cs"],["dan","da"],["deu","de"],[_
|
|
321
|
+
MUX_SDK_MISSING:9301,MUXDATA_INIT_ERROR:9302,IMA_SDK_MISSING:1E4,IMA_INVALID_CONFIGURATION:10001,IMA_UNSUPPORTED_PLATFORM:10002,AD_ERROR:10003,BROADPEAK_SDK_MISSING:11E3,BROADPEAK_SESSION_ERROR:11001,FREEWHEEL_SDK_MISSING:12E3,FREEWHEEL_INVALID_CONFIGURATION:12001,CONTENT_TRANSFORMATION_FAILED:14E3};_.bh.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};_.bh.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name==a});return b.length?b[0]:null};var gh=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",
|
|
322
|
+
"cs"],["dan","da"],["deu","de"],[_.Xc,"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",
|
|
324
323
|
"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",
|
|
325
324
|
"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",
|
|
326
325
|
"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",
|
|
327
|
-
"vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);var
|
|
326
|
+
"vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);var kh=function mq(a){var c;return _.Hf(mq,function(d){1==d.a&&(c=0);if(3!=d.a)return c<a?_.x(d,c,3):d.G(0);c++;return d.G(2)})};_.C("clpp.utils.BufferUtils",ih);ih.toArrayBuffer=sh;ih.toDataView=_.rh;ih.toInt32Array=_.qh;ih.toUint32Array=ph;ih.toUint16Array=oh;ih.toUint8Array=_.N;ih.equal=lh;var vh=new _.I("clpp.utils.strings");_.C("clpp.utils.strings.fromUtf8",_.uh);_.C("clpp.utils.strings.fromBytesAutoDetect",_.xh);_.C("clpp.utils.strings.toUtf8",_.yh);_.C("clpp.utils.strings.toUtf16",_.zh);_.C("clpp.utils.strings.toByteArray",_.Ah);_.C("clpp.utils.strings.startsWith",_.Bh);_.C("clpp.utils.strings.endsWith",_.Ch);_.C("clpp.utils.strings.bitrateToString",_.Fh);
|
|
328
327
|
_.C("clpp.utils.strings.durationToString",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)))});
|
|
329
|
-
_.C("clpp.utils.strings.hashCode",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});var
|
|
330
|
-
_.
|
|
331
|
-
_.t.fetch=function(a){var b=this;if(this.o)return new
|
|
332
|
-
d.next())c.push(e.value);a.responseModifiers=c;d=c=new _.
|
|
333
|
-
n.toString());p=b.a[p];if(!p)throw new _.L(_.M,1,1E3,{url:n.toString()});return{request:m,plugin:p}});var h=new
|
|
334
|
-
if(p)return p.then(function(){return Promise.reject(n)})}return Promise.reject(n)}}(g))["catch"](function(m){if(m instanceof _.L)throw m;throw new _.L(_.M,1,1007,null,m);});_.
|
|
335
|
-
_.
|
|
336
|
-
_.C("clpp.Rendition",_.
|
|
337
|
-
h.message);case 6:return _.
|
|
338
|
-
_.t.
|
|
339
|
-
_.R.prototype.findVideoRendition=_.R.prototype.
|
|
340
|
-
_.R.prototype.getAudioTrack=_.R.prototype.pa;_.R.prototype.getVideoTrack=_.R.prototype.
|
|
341
|
-
_.R.prototype.getVideoTracks=_.R.prototype.getVideoTracks;_.R.prototype.canSelectVideoTracks=_.R.prototype.
|
|
342
|
-
_.
|
|
343
|
-
var
|
|
328
|
+
_.C("clpp.utils.strings.hashCode",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});var Gh=document.createElement("span");_.C("clpp.utils.Uint8ArrayUtils",_.Ih);_.Ih.toStandardBase64=_.Jh;_.Ih.concat=_.Ph;_.Ih.equal=_.Oh;_.Ih.toHex=_.Nh;_.Ih.fromHex=_.Mh;_.Ih.fromBase64=_.Lh;_.Ih.toBase64Url=_.Kh;var Th=[403,401];_.C("clpp.net.DEFAULT_FATAL_STATUS_CODES",Th);_.C("clpp.net.makeRequest",_.Xh);_.Wh=6;_.C("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.Wh});_.bi.prototype.resolve=function(){};_.bi.prototype.reject=function(){};_.ci.prototype.abort=function(){this.a=!0;return this.A()};_.ci.prototype.Hd=function(a,b){function c(){e.reject(new _.L(_.M,7,7001));return d.abort()}var d=this,e=new _.bi;this.P.then(function(f){d.a?e.reject(new _.L(_.M,7,7001)):a?c=ei(a,f,e):e.resolve(f)},function(f){b?c=ei(b,f,e):e.reject(f)});return new _.ci(e,function(){return c()})};_.ci.aborted=function(){var a=Promise.reject(new _.L(_.M,7,7001));a["catch"](function(){});return new _.ci(a,function(){return Promise.resolve()})};
|
|
329
|
+
_.ci.prototype.chain=_.ci.prototype.Hd;_.fi.prototype.destroy=function(){for(var a=[],b=_.u(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.P["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.t=_.ni.prototype;_.t.hl=function(a){0<a?_.G("Rate limit set to "+a+"bps"):_.G("Rate limit disabled");this.j=a};_.t.release=function(){return this.m.destroy()};_.t.destroy=function(){this.o=!0;this.f=[];this.g=[];return this.m.destroy()};_.t.Cf=function(a){this.f.push(a)};_.t.Ed=function(a){this.g.push(a)};_.t.Wg=function(a){this.f=this.f.filter(function(b){return b!==a})};_.t.be=function(a){this.g=this.g.filter(function(b){return b!==a})};
|
|
330
|
+
_.t.fetch=function(a){var b=this;if(this.o)return new Gp(Promise.reject(new _.L(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.g);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=
|
|
331
|
+
d.next())c.push(e.value);a.responseModifiers=c;d=c=new _.bi;try{var f={},g=_.u(a.requestModifiers);for(e=g.next();!e.done;f={ke:f.ke},e=g.next())f.ke=e.value,d=d.then(function(m){return function(n){if(h.a)throw new _.L(_.M,1,7001,n?{url:n.uris[n.uriIndex],request:n}:null);return m.ke(n)||n}}(f))["catch"](function(m){if(m instanceof _.L)throw m;throw new _.L(_.M,1,1006,null,m);});d=d.then(function(m){var n=new _.Kg(m.uris[m.uriIndex]),p=n.bb;p||(p=location.protocol,p=p.slice(0,-1),Lg(n,p),m.uris[m.uriIndex]=
|
|
332
|
+
n.toString());p=b.a[p];if(!p)throw new _.L(_.M,1,1E3,{url:n.toString()});return{request:m,plugin:p}});var h=new Gp(d);g={};var l=_.u(a.responseModifiers);for(e=l.next();!e.done;g={Cd:g.Cd},e=l.next())g.Cd=e.value,h.then(function(m){return function(n){function p(){if(h.a)throw new _.L(_.M,1,7001,n?{url:n.request.uris[n.request.uriIndex],request:n.request}:null);}p();var q=m.Cd(n)||n;p();return q}}(g))["catch"](function(m){return function(n){if(n instanceof _.L&&n.data&&n.data.response){var p=m.Cd(n.data.response);
|
|
333
|
+
if(p)return p.then(function(){return Promise.reject(n)})}return Promise.reject(n)}}(g))["catch"](function(m){if(m instanceof _.L)throw m;throw new _.L(_.M,1,1007,null,m);});_.gi(this.m,h);c.resolve(a);return h}catch(m){return new Gp(Promise.reject(m))}};_.C("clpp.net.NetworkEngine",_.ni);_.ni.prototype.fetch=_.ni.prototype.fetch;_.ni.prototype.removeResponseModifier=_.ni.prototype.be;_.ni.prototype.removeRequestModifier=_.ni.prototype.Wg;_.ni.prototype.addResponseModifier=_.ni.prototype.Ed;
|
|
334
|
+
_.ni.prototype.addRequestModifier=_.ni.prototype.Cf;_.ni.prototype.setRateLimit=_.ni.prototype.hl;var ti;_.qi.prototype.Aa=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&&Hg(this.roles,a.roles)&&Hg(this.accessibility,a.accessibility,xi)};_.qi.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.C("clpp.Track",_.qi);_.qi.prototype.toString=_.qi.prototype.toString;
|
|
335
|
+
_.C("clpp.Rendition",_.yi);_.vi=1;_.si=_.Pe;_.Q=_.jc;_.O=_.Ae;ti=_.Ad;_.nq={VIDEO:_.si,AUDIO:_.Q,TEXT:_.O,METADATA:ti};_.qi.Type=_.nq;_.C("clpp.utils.url.queryString",_.Bi);Ei.prototype.g=function(a,b){var c=this,d,e,f,g,h,l,m;return _.B(function(n){switch(n.a){case 1:return d=null,_.zf(n,2),_.x(n,Ki(c,a),4);case 4:d=n.f;_.Af(n,3);break;case 2:return e=_.Bf(n),c.h.warn("Failed to fetch playlist in order metadata from HLS playlist.",e.message),n["return"](Promise.resolve({}));case 3:f={};_.zf(n,5);if(!b.enableHlsVideoTrackInfo){n.G(7);break}return _.x(n,Hi(c,d,a),8);case 8:g=n.f,f.renditions=g.renditions,f.mimeType=g.mimeType;case 7:_.Af(n,6);break;case 5:h=_.Bf(n),c.h.warn("Failed to parse video metadata from HLS playlist.",
|
|
336
|
+
h.message);case 6:return _.zf(n,9),_.x(n,Ji(d),11);case 11:l=n.f;f.Pc=l;_.Af(n,10);break;case 9:m=_.Bf(n),c.h.warn("Failed to parse metadata from HLS playlist.",m.message);case 10:return n["return"](f)}})};_.Qi=[];_.t=_.R.prototype;_.t.ue=function(){return!0};_.t.cj=function(a){return this.getVideoTracks().find(function(b){return _.K.Aa(b,a,a&&Object.keys(a))})};_.t.Zi=function(a){return this.getAudioTracks().find(function(b){return _.K.Aa(b,a,a&&Object.keys(a))})};_.t.aj=function(a){return this.ia().find(function(b){return _.K.Aa(b,a,a&&Object.keys(a))})};_.t.bj=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.K.Aa(b,a,a&&Object.keys(a))})};
|
|
337
|
+
_.t.Yi=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.K.Aa(b,a,a&&Object.keys(a))})};_.t.$i=function(a){return this.ia().flatMap(function(b){return b.renditions}).find(function(b){return _.K.Aa(b,a,a&&Object.keys(a))})};_.C("clpp.TrackManager",_.R);_.R.prototype.isAbrEnabled=_.R.prototype.ka;_.R.prototype.addTextTrack=_.R.prototype.addTextTrack;_.R.prototype.findTextRendition=_.R.prototype.$i;_.R.prototype.findAudioRendition=_.R.prototype.Yi;
|
|
338
|
+
_.R.prototype.findVideoRendition=_.R.prototype.bj;_.R.prototype.findTextTrack=_.R.prototype.aj;_.R.prototype.findAudioTrack=_.R.prototype.Zi;_.R.prototype.findVideoTrack=_.R.prototype.cj;_.R.prototype.setTextRendition=_.R.prototype.qb;_.R.prototype.setAudioRendition=_.R.prototype.pb;_.R.prototype.setVideoRendition=_.R.prototype.cb;_.R.prototype.setTextTrack=_.R.prototype.Ga;_.R.prototype.setAudioTrack=_.R.prototype.xa;_.R.prototype.setVideoTrack=_.R.prototype.eb;_.R.prototype.getTextTrack=_.R.prototype.qa;
|
|
339
|
+
_.R.prototype.getAudioTrack=_.R.prototype.pa;_.R.prototype.getVideoTrack=_.R.prototype.Na;_.R.prototype.getLoadingTextRendition=_.R.prototype.jb;_.R.prototype.getLoadingAudioRendition=_.R.prototype.ib;_.R.prototype.getLoadingVideoRendition=_.R.prototype.Za;_.R.prototype.getTextRendition=_.R.prototype.La;_.R.prototype.getAudioRendition=_.R.prototype.Ka;_.R.prototype.getVideoRendition=_.R.prototype.fa;_.R.prototype.getTextTracks=_.R.prototype.ia;_.R.prototype.getAudioTracks=_.R.prototype.getAudioTracks;
|
|
340
|
+
_.R.prototype.getVideoTracks=_.R.prototype.getVideoTracks;_.R.prototype.canSelectVideoTracks=_.R.prototype.ue;_.oq=new Map;_.pq=(new Map).set(_.Mc,_.Mc).set("frameRate","framerate").set("bandwidth","bitrate").set(_.df,_.df).set(_.kd,_.kd).set("channelsCount","channels");_.Ui.prototype.aa=function(a){return Vi(this,a,!1)};_.Ui.prototype.fb=function(a){return Vi(this,a,!0)};_.Ui.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.Wi.prototype.vf=function(){this.stop();this.f();return this};_.Wi.prototype.aa=function(a){var b=this;this.stop();this.a=(new _.Ui(function(){b.f()})).aa(a);return this};_.Wi.prototype.fb=function(a){var b=this;this.stop();this.a=(new _.Ui(function(){b.f()})).fb(a);return this};_.Wi.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.C("clpp.utils.Timer",_.Wi);_.Wi.prototype.stop=_.Wi.prototype.stop;_.Wi.prototype.tickEvery=_.Wi.prototype.fb;_.Wi.prototype.tickAfter=_.Wi.prototype.aa;
|
|
341
|
+
_.Wi.prototype.tickNow=_.Wi.prototype.vf;_.C(Lc,Xi);Xi.getInfo=_.ki;
|
|
342
|
+
var gj=null,fj=null,kj=new _.I(Lc),rj="android",qj="ios",wj="linux",sj="osx",tj="windows",uj="tizen",vj="webos",pj=He,zj=He,yj={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,
|
|
344
343
|
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,
|
|
345
344
|
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},
|
|
346
|
-
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(
|
|
347
|
-
_.t.
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
_.t.
|
|
351
|
-
_.t.
|
|
352
|
-
_.t.load=function(){this.A=!1;var a=
|
|
353
|
-
_.t.getVideoTracks=function(){return
|
|
354
|
-
_.t.
|
|
355
|
-
_.t.addTextTrack=function(a){var b=this,c;return _.B(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.B++,b.o[c]=a,
|
|
356
|
-
_.t.
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
_.t.
|
|
360
|
-
_.t.
|
|
361
|
-
_.
|
|
362
|
-
_.t.trigger=function(a){this.
|
|
363
|
-
_.C("clpp.events.RELEASING",_.
|
|
364
|
-
_.C("clpp.events.AUTOPLAY_NOT_ALLOWED",_.
|
|
365
|
-
_.C("clpp.events.AD_FIRST_QUARTILE",_.
|
|
366
|
-
_.C("clpp.events.CAST_STATUS_CHANGED",_.
|
|
367
|
-
_.C("clpp.events.PLAYLIST_ITEM_CHANGED",_.
|
|
368
|
-
_.t.destroy=function(){this.M.release();return Promise.resolve()};_.t.canPlay=function(a,b){return _.
|
|
369
|
-
_.t.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||""};
|
|
370
|
-
_.t.pause=function(){var a=this;return this.w?new Promise(function(b,c){var d=a.getState();if(d!==_.
|
|
371
|
-
_.t.setDrmCustomDataModifier=function(a){this.
|
|
372
|
-
_.t.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.M.one(d,_.
|
|
373
|
-
q=.1>=Math.abs(a-p),r=.25<p-a,v=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,
|
|
374
|
-
d.currentTime=a)}function m(){b.trigger(new _.
|
|
375
|
-
_.t.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};_.t.setVolume=function(a){var b=this.D.getMedia();b?_.K.la(a)?0>a||1<a?this.log.warn(
|
|
376
|
-
_.t.setMuted=function(a){var b=this.D.getMedia();typeof a===_.
|
|
377
|
-
_.t.getLoadedSource=function(){return this.w&&-1!==this.
|
|
378
|
-
_.t.
|
|
379
|
-
this.getBufferInfo().
|
|
345
|
+
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(Aj,_.R);_.t=Aj.prototype;_.t.ue=function(){return!_.cj()};
|
|
346
|
+
_.t.ef=function(a,b){var c=this,d,e,f,g,h,l,m,n,p,q,r,v,z,A,E,H,D;return _.B(function(F){if(1==F.a){if(!b)return c.h.warn(Xa),F["return"]();d=b.track;if(!d)return c.h.warn(Ya),F["return"]();e=b.target;if(f=c.g.find(function(V){return Oj(V,d,a)}))return c.h.warn("Track from event already exists",d,f),F["return"]();g=wi(a,d);h=Sj(d);if(a===_.O){if(d.kind===_.Ad)return F["return"]();void 0!==d.id?l=c.o[d.id]:(m=Object.values(c.o),l=m.find(function(V){return Oj(g,V,a)}));g.kind&&"captions"===g.kind&&
|
|
347
|
+
(g.mimeType=_.bc);l&&(g.src=l.url,g.mimeType=l.mimeType)}else if(f=c.g.find(function(V){return V.type===a&&_.K.Aa(V,g,["kind","label","language"])}))return f.id=d.id,h&&(c.h.debug(ob+a+" track active"),c.a.set(a,f)),c.h.debug("Track from event seems to already exists, flipped native track to",d),F["return"]();_.zf(F,2);n=new _.yi(g.id,g);g.renditions.push(n);c.g.push(g);p=c.l.getConfiguration().safari;return Ej(c,a,p)?_.x(F,Hj(c,g,p),5):Fj(c,a,p)?_.x(F,Ij(c,g,p),5):F.G(5)}if(2!=F.a)return c.h.debug(a+
|
|
348
|
+
" Track added",g),c.l.trigger(new _.J(_.qq)),q=Lj(c,a).length,r=a===_.Q,v=a===_.si,z=r||v,A=!(!e||!e.length),E=e&&e.length||0,H=function(){c.h.debug(ob+a+" track active. Native track active: "+(h+". Number of tracks: ")+q,d);c.a.set(a,g)},h?H():1===q&&z&&(v?H():A&&1!==E||H()),_.Af(F,0);D=_.Bf(F);c.h.error("Error while converting track data",D);_.y(F)})};
|
|
349
|
+
_.t.gf=function(a,b){if(b){var c=b.track;if(!c)this.h.warn(Ya);else if(a===_.O&&c.kind!==_.Ad){var d=this.g.find(function(e){return Oj(e,c,a)});d&&(this.g.splice(this.g.indexOf(d),1),(this.a.get(a)||null)===d&&(this.a.set(a,null),Uj(this)),this.h.debug(a+" Track removed, id: ",d.id))}}else this.h.warn(Xa)};
|
|
350
|
+
_.t.ff=function(a,b){this.h.debug(a+" Track changed",b);a===_.O&&Uj(this);var c=Kj(this,a);if(c)for(var d={uc:0};d.uc<c.length;d={uc:d.uc},++d.uc)if(Sj(c[d.uc])){if(d=this.g.find(function(e){return function(f){return Oj(f,c[e.uc],a)}}(d)))this.a.set(a,d),this.h.debug("Track change detected, id:",d.id),d===this.m.get(a)&&this.m.set(a,null),a===_.Q?this.l.trigger(new _.J(_.Pj)):a===_.O&&this.l.trigger(new _.J(_.Qj));break}};_.t.initialize=function(a){this.l=a;this.j=new Ei(a.getNetworkEngine())};
|
|
351
|
+
_.t.load=function(){this.A=!1;var a=Jj(this,_.O);a&&(this.f.on(a,_.Vb,this.J),this.f.on(a,fe,this.M),this.f.on(a,Dc,this.K));if(a=Jj(this,_.Q))this.f.on(a,_.Vb,this.F),this.f.on(a,fe,this.I),this.f.on(a,Dc,this.H);if(a=Jj(this,_.si))this.f.on(a,_.Vb,this.N),this.f.on(a,fe,this.V),this.f.on(a,Dc,this.T);this.f.one(this.l,wc,this.wi.bind(this))};_.t.release=function(){this.A=!0;this.g=[];this.o={};this.a.clear();this.m.clear();this.f.release()};_.t.destroy=function(){this.release();this.l=null};
|
|
352
|
+
_.t.getVideoTracks=function(){return Lj(this,_.si)};_.t.getAudioTracks=function(){return Lj(this,_.Q)};_.t.ia=function(){return Lj(this,_.O)};_.t.fa=function(){var a=this,b=this.a.get(_.si)||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};_.t.Ka=function(){return Mj(this,_.Q)};_.t.La=function(){return Mj(this,_.O)};_.t.Za=function(){return Nj(this,_.si)};
|
|
353
|
+
_.t.ib=function(){return Nj(this,_.Q)};_.t.jb=function(){return Nj(this,_.O)};_.t.Na=function(){return this.a.get(_.si)||null};_.t.pa=function(){return this.a.get(_.Q)||null};_.t.qa=function(){return this.a.get(_.O)||null};_.t.eb=function(a){Rj(this,_.si,a)};_.t.xa=function(a){Rj(this,_.Q,a)};_.t.Ga=function(a){Rj(this,_.O,a)};_.t.cb=function(a){Rj(this,_.si,a&&a.track)};_.t.pb=function(a){Rj(this,_.Q,a&&a.track)};_.t.qb=function(a){Rj(this,_.O,a&&a.track)};
|
|
354
|
+
_.t.addTextTrack=function(a){var b=this,c;return _.B(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.B++,b.o[c]=a,Bj(b,a,c),d.G(0)):_.x(d,Cj(b,a),0)})};_.t.ka=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};
|
|
355
|
+
_.t.wi=function(){var a=this,b,c,d;return _.B(function(e){if(1==e.a){b=a.l.getConfiguration();Tj(a,_.Q,b.preferredAudioLanguage);c=Kj(a,_.O);if(c.some(function(f){return Sj(f)}))return e.G(2);d=Jj(a,_.O);return _.x(e,new Promise(function(f){a.f.one(d,Dc,f);(new _.Wi(f)).aa(1)}),2)}if(a.A)return e["return"]();Tj(a,_.O,b.preferredTextLanguage);_.y(e)})};Aj.prototype.isAbrEnabled=Aj.prototype.ka;Aj.prototype.addTextTrack=Aj.prototype.addTextTrack;Aj.prototype.setTextRendition=Aj.prototype.qb;
|
|
356
|
+
Aj.prototype.setAudioRendition=Aj.prototype.pb;Aj.prototype.setVideoRendition=Aj.prototype.cb;Aj.prototype.setTextTrack=Aj.prototype.Ga;Aj.prototype.setAudioTrack=Aj.prototype.xa;Aj.prototype.setVideoTrack=Aj.prototype.eb;Aj.prototype.getTextTrack=Aj.prototype.qa;Aj.prototype.getAudioTrack=Aj.prototype.pa;Aj.prototype.getVideoTrack=Aj.prototype.Na;Aj.prototype.getLoadingTextRendition=Aj.prototype.jb;Aj.prototype.getLoadingAudioRendition=Aj.prototype.ib;Aj.prototype.getLoadingVideoRendition=Aj.prototype.Za;
|
|
357
|
+
Aj.prototype.getTextRendition=Aj.prototype.La;Aj.prototype.getAudioRendition=Aj.prototype.Ka;Aj.prototype.getVideoRendition=Aj.prototype.fa;Aj.prototype.getTextTracks=Aj.prototype.ia;Aj.prototype.getAudioTracks=Aj.prototype.getAudioTracks;Aj.prototype.getVideoTracks=Aj.prototype.getVideoTracks;Aj.prototype.canSelectVideoTracks=Aj.prototype.ue;_.t=_.Vj.prototype;_.t.start=function(a){if(this.f)return this.f.start(a);if(a<this.a.length)return this.a[a].start;throw Error(ub);};_.t.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(ub);};_.t.ub=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)};_.t.Da=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
|
|
358
|
+
_.t.hc=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};
|
|
359
|
+
_.t.Ja=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.Da();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};_.t.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};_.C("clpp.BufferInfo",_.Vj);_.Vj.prototype.bufferedAheadOf=_.Vj.prototype.Ja;
|
|
360
|
+
_.Vj.prototype.isBuffered=_.Vj.prototype.hc;_.Vj.prototype.bufferEnd=_.Vj.prototype.Da;_.Vj.prototype.bufferStart=_.Vj.prototype.ub;_.Vj.prototype.end=_.Vj.prototype.end;_.Vj.prototype.start=_.Vj.prototype.start;_.t=_.Wj.prototype;_.t.addEventListener=function(a,b){this.on(a,b)};_.t.removeEventListener=function(a,b){this.off(a,b)};_.t.on=function(a,b,c){return this.ld.on(a,b,c)};_.t.one=function(a,b,c){return this.ld.one(a,b,c)};_.t.off=function(a,b){return this.ld.off(a,b)};_.t.addDelegate=function(a){a&&(0<=this.jd.indexOf(a)||this.jd.push(a))};_.t.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};_.t.removeDelegate=function(a){a&&(a=this.jd.indexOf(a),0<=a&&this.jd.splice(a,1))};
|
|
361
|
+
_.t.trigger=function(a){this.ld.trigger(a);for(var b=_.u(this.jd),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.Wj.prototype.off=_.Wj.prototype.off;_.Wj.prototype.one=_.Wj.prototype.one;_.Wj.prototype.on=_.Wj.prototype.on;_.Wj.prototype.removeEventListener=_.Wj.prototype.removeEventListener;_.Wj.prototype.addEventListener=_.Wj.prototype.addEventListener;_.C("clpp.events.ERROR",_.hd);_.C("clpp.events.LOADEDMETADATA",_.vd);_.C("clpp.events.BUFFERING_ENDED",_.tc);_.C("clpp.events.BUFFERING_STARTED",_.uc);_.C("clpp.events.STATE_CHANGED",_.pe);_.Pj="audiotrackchanged";_.C("clpp.events.AUDIO_TRACK_CHANGED",_.Pj);_.Qj="texttrackchanged";_.C("clpp.events.TEXT_TRACK_CHANGED",_.Qj);_.C("clpp.events.VIDEO_TRACK_CHANGED",_.Te);_.C("clpp.events.BITRATE_CHANGED",_.rc);_.qq="tracksadded";_.C("clpp.events.TRACKS_ADDED",_.qq);_.C("clpp.events.LOAD_START",wd);
|
|
362
|
+
_.C("clpp.events.RELEASING",_.ee);_.C("clpp.events.RELEASED",de);_.C("clpp.events.DESTROYING","destroying");_.C("clpp.events.DESTROYED","destroyed");_.C("clpp.events.VIDEO_BUFFER_CHANGED",_.Se);_.C("clpp.events.AUDIO_BUFFER_CHANGED",_.pc);_.C("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.C("clpp.events.DRM_SESSION_UPDATE",_.ad);_.C("clpp.events.DRM_SESSION_PERSISTED",_.$c);_.C("clpp.events.DRM_RENEWAL_STARTED",Zc);_.C("clpp.events.DRM_EXPIRATION_UPDATE",_.Yc);
|
|
363
|
+
_.C("clpp.events.AUTOPLAY_NOT_ALLOWED",_.qc);_.C("clpp.events.PLAY",_.Xd);_.C("clpp.events.SEEKING",_.ke);_.C("clpp.events.SEEKED",_.je);_.C("clpp.events.USER_SEEKING",_.Le);_.C("clpp.events.USER_SEEKED",_.Ke);_.Rm={SEEKING:1,NO_DATA:2};_.C("clpp.events.BufferingReasons",_.Rm);_.C("clpp.events.ADS_TIMELINE_CHANGED",_.Wb);_.C("clpp.events.AD_LOADED",_.Mb);_.C("clpp.events.AD_BREAK_STARTED",_.Fb);_.C("clpp.events.AD_STARTED",_.Sb);_.C("clpp.events.AD_BUFFERING",_.Hb);_.C("clpp.events.AD_PROGRESS",_.Pb);
|
|
364
|
+
_.C("clpp.events.AD_FIRST_QUARTILE",_.Kb);_.C("clpp.events.AD_MIDPOINT",_.Nb);_.C("clpp.events.AD_THIRD_QUARTILE",_.Ub);_.C("clpp.events.AD_PAUSED",_.Ob);_.C("clpp.events.AD_RESUMED",_.Qb);_.C("clpp.events.AD_SKIPPED",_.Rb);_.C("clpp.events.AD_CLICKED",_.Ib);_.C("clpp.events.AD_IMPRESSION",_.Lb);_.C("clpp.events.AD_COMPLETED",_.Jb);_.C("clpp.events.AD_STOPPED",_.Tb);_.C("clpp.events.AD_BREAK_STOPPED",_.Gb);_.C("clpp.events.CASTING_STARTED",_.xc);_.C("clpp.events.CASTING_ENDED","castingended");
|
|
365
|
+
_.C("clpp.events.CAST_STATUS_CHANGED",_.yc);_.C("clpp.events.AIRPLAY_STATUS_CHANGED",_.$b);_.C("clpp.events.AIRPLAY_CASTING_STARTED",_.Yb);_.C("clpp.events.AIRPLAY_CASTING_ENDED",_.Xb);_.og="timeline-cue-added";_.C("clpp.events.TIMELINE_CUE_ADDED",_.og);_.qg="timeline-cue-enter";_.C("clpp.events.TIMELINE_CUE_ENTER",_.qg);_.rg="timeline-cue-exit";_.C("clpp.events.TIMELINE_CUE_EXIT",_.rg);_.C("clpp.events.MPD_TYPE_CHANGED",_.Fd);_.C("clpp.events.VIMOND_RESPONSE",_.Ue);
|
|
366
|
+
_.C("clpp.events.PLAYLIST_ITEM_CHANGED",_.Zd);_.C("clpp.events.PLAYLIST_MODIFIED",_.$d);_.C("clpp.events.CDN_SWITCH_SUCCESS",_.zc);_.C("clpp.events.ONLINE_STATUS_CHANGED",Pd);var Xj=["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"];_.C("clpp.utils.PlayerConfiguration",Zj);Zj.create=_.ek;var rq=["abort",vc,wc,cd,"emptied",dd,_.gd,_.hd,"interruptbegin","interruptend",_.ud,_.vd,wd,"mozaudioavailable",_.Td,_.Xd,_.Yd,_.ae,_.ce,_.je,_.ke,ne,"suspend",_.De,"volumechange",_.Xe,_.Ye,_.he,cf,bf,$e,af];_.w(_.gk,_.Wj);_.t=_.gk.prototype;_.t.init=function(a,b){this.configuration=this.Nd=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(rq),e=d.next();!e.done;e=d.next())e=e.value,this.M.on(c,e,this.ql,e!==_.hd);this.Zc||(this.Zc=this.Yf());this.Zc.initialize(this);this.D.showMediaElement()};_.t.release=function(){this.K&&(this.K.destroy(),this.K=null);return Promise.resolve()};
|
|
367
|
+
_.t.destroy=function(){this.M.release();return Promise.resolve()};_.t.canPlay=function(a,b){return _.Wf[this.namespace()].canPlay(a,b)};
|
|
368
|
+
_.t.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||""};Yj(d)?(a.trigger(new _.J(_.qc)),a.log.warn(_.ja)):d.name===$a&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
|
|
369
|
+
_.t.pause=function(){var a=this;return this.w?new Promise(function(b,c){var d=a.getState();if(d!==_.Om&&d!==_.Qm&&d!==_.Xm&&d!==_.Wm)c();else if(a.D.getMedia().pause(),a.getState()===_.Xm)a.M.one(a,_.pe,function(){b()});else b()}):Promise.reject("No sources specified yet. You need to load content before calling pause.")};_.t.isPaused=function(){return this.D.getMedia().paused};_.t.isEnded=function(){return this.D.getMedia().ended};_.t.getConfiguration=function(){return this.configuration};
|
|
370
|
+
_.t.setDrmCustomDataModifier=function(a){this.Ic=a};_.t.setCdnErrorCallback=function(a){this.wc=a};_.t.Mc=function(){return this.Ic};_.t.getSurface=function(){return this.D};_.t.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.Vj(b?b.buffered:void 0,a)};_.t.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};
|
|
371
|
+
_.t.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.M.one(d,_.vd,m)}function l(n){var p=b.getPosition(),
|
|
372
|
+
q=.1>=Math.abs(a-p),r=.25<p-a,v=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,z=n.type===_.je,A=n.type===_.ae,E=n.type===_.De,H=A&&v;r=z||q&&H||E&&r;b.log.debug("Checking seeking state after "+n.type+" event. Seek completed:",r,"Current Time:",p,"Target Time:",a,"Native Event:",z,"Time reached",q,"Timeupdate:",E,"Progress:",A,"ReadyState:",v,"Progress Ready:",H);r?(b.Se=!1,b.Wd=!1,b.M.off(d,_.je,l),b.M.off(d,_.De,l),b.M.off(d,_.ae,l),b.Lg(),b.trigger(new _.J(_.Ke)),f()):A&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
|
|
373
|
+
d.currentTime=a)}function m(){b.trigger(new _.J(_.Le));b.M.on(d,_.je,l);b.M.on(d,_.De,l);b.M.on(d,_.ae,l);b.log.info("Seeking to "+a+". Delta "+e);b.Se=!0;b.Wd=!0;d.currentTime=a}b.getState()===_.Em?(b.log.debug("Player is in IDLE state. Postpone seek."),b.M.one(b,_.pe,function(){switch(b.getState()){case _.Om:case _.Xm:case _.Wm:b.log.debug("Valid seek state reached.");h();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):h()})};
|
|
374
|
+
_.t.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};_.t.setVolume=function(a){var b=this.D.getMedia();b?_.K.la(a)?0>a||1<a?this.log.warn(ma+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(ma+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.t.isMuted=function(){return this.D.getMedia().muted};
|
|
375
|
+
_.t.setMuted=function(a){var b=this.D.getMedia();typeof a===_.sc&&(b.muted=a)};_.t.getDuration=function(){return this.w?this.D.getMedia().duration:-1};_.t.getTrackManager=function(){return this.Zc};_.t.getPlaybackRate=function(){var a=this.D.getMedia();return a&&a.playbackRate||1};_.t.setPlaybackRate=function(a){var b=this.D.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.t.setSourceIndex=function(a){this.Pd=a};_.t.getSourceIndex=function(){return this.Pd};
|
|
376
|
+
_.t.getLoadedSource=function(){return this.w&&-1!==this.Pd?this.w[this.Pd]:null};_.t.getPeriods=function(){return[]};_.t.getNetworkEngine=function(){return this.xg};_.t.setNetworkEngine=function(a){this.xg=a};_.t.getTextDisplayer=function(){return this.K};_.t.getTimelineCues=function(){return[]};_.t.resetAbr=function(){};
|
|
377
|
+
_.t.Zk=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.De||a.type===_.ae)this.fh.debug(d);else{var e="";switch(a.type){case _.ce:e="Rate: "+this.getPlaybackRate();break;case cd:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.Xd:case _.Yd:case "suspend":case _.Xe:case ne:case _.ke:case _.je:case _.De:case _.ae:case vc:case wc:b=
|
|
378
|
+
this.getBufferInfo().Ja(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.he:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.fh.info(d)}a.type!==_.hd&&this.trigger(new _.J(a.type,{detail:a}))};_.t.Lg=function(){};_.gk.prototype.getTextDisplayer=_.gk.prototype.getTextDisplayer;_.gk.prototype.setNetworkEngine=_.gk.prototype.setNetworkEngine;_.gk.prototype.getNetworkEngine=_.gk.prototype.getNetworkEngine;var jk;jk=new _.I("clpp.Components");_.hk=new Map;mk.prototype.release=function(){this.a=this.f=null};_.C("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.lb,SW_SECURE_DECODE:_.mb,HW_SECURE_CRYPTO:Ka,HW_SECURE_DECODE:Ma,HW_SECURE_ALL:"HW_SECURE_ALL"});_.C("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.C("clpp.drm.KeySystem",{NONE:_.Id,CLEAR_KEY:_.Rd,WIDEVINE:_.Rc,PLAYREADY:_.Qc,FAIRPLAY:_.Pc,PRIMETIME:_.Oc});_.qk={};_.C("clpp.drm.registerDrmEnvironment",_.rk);var uk={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,
|
|
380
379
|
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,
|
|
381
380
|
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,
|
|
382
381
|
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,
|
|
@@ -390,77 +389,77 @@ this.getBufferInfo().Ha(c);e="State "+this.getSurface().getMedia().readyState+"
|
|
|
390
389
|
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,
|
|
391
390
|
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,
|
|
392
391
|
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,
|
|
393
|
-
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]};_.
|
|
394
|
-
_.C("clpp.utils.dataview.DataViewReader",_.
|
|
395
|
-
_.t
|
|
396
|
-
has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.
|
|
397
|
-
for(var
|
|
398
|
-
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"},
|
|
399
|
-
audio:["2000"]},
|
|
400
|
-
"/license-server-fairplay/cert/",modifiers:{licenseRequest:_.
|
|
401
|
-
_.t.
|
|
402
|
-
b.a.keySystem.startsWith(_.
|
|
403
|
-
c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.
|
|
404
|
-
_.t.unload=function(){var a=this,b;return _.B(function(c){if(!a.w)return c.G(0);a.log.debug(_.
|
|
405
|
-
_.t.release=function(){var a=this;return _.
|
|
406
|
-
_.t.destroy=function(){var a=this;if(this.A)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.A=!0;return _.
|
|
407
|
-
_.t.detach=function(){};_.t.getTrackManager=function(){return this.
|
|
408
|
-
_.t.load=function(a){var b=this,c,d,e,f,g;return _.B(function(h){switch(h.a){case 1:if(b.A)return h["return"](
|
|
409
|
-
"native"]);b.K=e.create(b);b.K.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.
|
|
410
|
-
|
|
392
|
+
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]};_.wk.prototype.Pa=function(a,b){this.f[a]=b};_.C("clpp.drm.DrmEnvironment",_.wk);_.wk.prototype.setDrmSystem=_.wk.prototype.Pa;_.yk.prototype.getPosition=function(){return this.a};_.yk.prototype.Ea=function(){return this.f.byteLength};_.yk.prototype.seek=function(a){(0>a||a>this.f.byteLength)&&_.zk();this.a=a};_.yk.prototype.seek=_.yk.prototype.seek;_.Bk.prototype.getPosition=function(){return this.a};_.Bk.prototype.Ea=function(){return this.f.byteLength};_.Bk.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.Dk();this.a+=a};_.Bk.prototype.seek=function(a){if(0>a||a>this.f.byteLength)throw _.Dk();this.a=a};
|
|
393
|
+
_.C("clpp.utils.dataview.DataViewReader",_.Bk);_.t=_.Kk.prototype;_.t.L=function(a,b){var c=Ok(a);this.g[c]=sq;this.f[c]=b;return this};_.t.Y=function(a,b){var c=Ok(a);this.g[c]=tq;this.f[c]=b;return this};_.t.stop=function(){this.a=!0};_.t.parse=function(a,b){var c=_.N(a);c=new _.Bk(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.Ck(c)&&!this.a;)this.ae(0,c,b)};
|
|
394
|
+
_.t.ae=function(a,b,c){var d=b.getPosition(),e=_.T(b),f=_.T(b),g=!1;this.h.debug("Parsing MP4 box",_.Pk(f));switch(e){case 0:e=b.Ea()-d;break;case 1:e=_.Ik(b),g=!0}var h=this.f[f];if(h){var l=null,m=null;this.g[f]==tq&&(m=_.T(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.Ea()&&(n=b.Ea());n-=b.getPosition();b=0<n?_.Jk(b,n):new Uint8Array(0);b=new _.Bk(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,
|
|
395
|
+
has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.Ea()-b.getPosition()),b.skip(a)};_.C("clpp.utils.Mp4Parser",_.Kk);_.Kk.typeToString=_.Pk;_.Kk.allData=_.Nk;_.Kk.sampleDescription=_.Mk;_.Kk.children=_.Lk;_.Kk.prototype.parseNext=_.Kk.prototype.ae;_.Kk.prototype.parse=_.Kk.prototype.parse;_.Kk.prototype.stop=_.Kk.prototype.stop;_.Kk.prototype.fullBox=_.Kk.prototype.Y;_.Kk.prototype.box=_.Kk.prototype.L;_.Kk.headerSize=_.Qk;var sq=0,tq=1;_.C("clpp.utils.FairplayUtils",Rk);Rk.parseFairPlayResponse=_.Xk;Rk.formatFairPlayRequest=_.Wk;Rk.createFairplayPayload=Vk;Rk.extractContentId=_.Tk;Rk.extractExtXKeyUri=Sk;var il=new _.I("clpp.drm.DrmToday"),Zk="PRODUCTION",$k="STAGING",al="TEST",uq={PRODUCTION:Zk,STAGING:$k,TEST:al};_.C("clpp.drm.DrmToday.Environment",uq);_.C("clpp.drm.DrmToday.WidevineCertificates",{V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"});
|
|
396
|
+
for(var dl="/license-proxy-widevine/cenc/",el="/license-proxy-headerauth/drmtoday/RightsManager.asmx",fl="/license-server-fairplay/",ql={"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",
|
|
397
|
+
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"},vq={video:[_.mb,void 0],audio:[_.lb,void 0]},wq={video:["3000"],
|
|
398
|
+
audio:["2000"]},xq=_.u(Object.keys(uq)),yq=xq.next();!yq.done;yq=xq.next()){var Yk=yq.value,zq=xa;Yk!==Zk&&(zq+="_"+Yk);var Aq=new _.wk(zq),Bq=null;switch(Yk){case Zk:Bq=vk("V1_PROD");break;case $k:Bq=vk("V2");break;case al:Bq=null}Aq.Pa(_.Rc,{licenseUrl:gl(_.Rc),videoRobustness:vq.video,audioRobustness:vq.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:Bq,modifiers:{licenseRequest:_.kl,licenseResponse:_.pl}});Aq.Pa(_.Pc,{licenseUrl:gl(_.Pc),certificateUrl:bl()+
|
|
399
|
+
"/license-server-fairplay/cert/",modifiers:{licenseRequest:_.ml,licenseResponse:_.nl,extractContentId:_.jl,certificateRequest:_.ol}});Aq.Pa(_.Qc,{licenseUrl:gl(_.Qc),videoRobustness:wq.video,audioRobustness:wq.audio,modifiers:{licenseRequest:ll}});_.rk(Aq)};_.C("clpp.drm.eme.EmeFactory",sl);var tl=[];sl.Apis={STANDARD:kb,APPLE:"APPLE",WEBKIT:"WEBKIT",NOP:"NOP"};var yl=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.w(xl,_.wl);Bl.prototype.j=function(a){if(1<a.version)_.G("Unrecognized PSSH version found!");else{var b=_.Nh(_.Jk(a.reader,16)),c=[];if(0<a.version)for(var d=_.T(a.reader),e=0;e<d;++e){var f=_.Nh(_.Jk(a.reader,16));c.push(f)}d=_.T(a.reader);a.reader.skip(d);this.g.push.apply(this.g,c);this.f.push(b);this.a.push({start:a.start,end:a.start+a.size-1});a.reader.getPosition()!=a.reader.Ea()&&_.G("Mismatch between box size and data size!")}};_.t=_.Fl.prototype;_.t.destroy=function(){var a=this;return _.B(function(b){if(1==b.a){if(a.j)return _.x(b,a.Ia,0);a.j=!0;return _.x(b,Hl(a),4)}a.Ia.resolve();return b.G(0)})};_.t.keySystem=function(){return this.a?_.dm(this.a.keySystem):""};_.t.getDrmInfo=function(){return this.a};_.t.Kg=function(a){var b=this;return _.B(function(c){return b.F&&b.J===Il?c["return"]():!b.g.delayLicenseRequestUntilPlayed||b.B&&!b.B.paused||b.Xa?_.x(c,om(b,a),0):(b.ha.push(a),c.G(0))})};
|
|
400
|
+
_.t.Gg=function(a){var b=this,c=a.target;this.h.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==_.te){var l=h;h=g;g=l}if(km(b.a.keySystem)&&16===h.byteLength&&_.Yi()){l=_.rh(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!==qe&&(d.loaded=!0);d&&d.Fa&&d.Fa.resolve();"expired"===g&&(e=!0);l=_.N(h);var q=_.Nh(l);"00"===q&&d&&d.keyId?q=d.keyId:
|
|
401
|
+
b.a.keySystem.startsWith(_.Pc)&&16!==l.byteLength&&(q=th(l));(l=q||"")?b.h.info(Qa+q+"': "+g):b.h.info("Key status global keys: "+g);b.m.set(l,g);d&&!d.keyId&&b.f.forEach(function(r,v){v===c||r.keyId!==q||r.loaded||(r.loaded=!0)})});d&&d.loaded&&d.gb.forEach(function(g){b.m.get(g)===qe&&(b.h.warn(Qa+g+da),b.m.set(g,_.Sd))});for(a=0;a<this.a.initData.length;a++){var f=this.a.initData[a];f.keyId&&this.m.get(f.keyId)===qe&&_.Oh(f.initData,d.initData)&&(this.h.warn(Qa+f.keyId+da),this.m.set(f.keyId,_.Sd))}a=
|
|
402
|
+
c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.rb&&(this.h.debug("Session has expired",c.sessionId),(a=this.f.get(c))&&a.Gc&&a.Gc.stop(),this.f["delete"](c),c.close()["catch"](function(){}));fm(this)&&(this.H.resolve(),1!==this.f.size||e?this.ga.aa(.5):Dl(this))};var Il=0,Cl=3;var pm=new Map,qm=new _.I("clpp.text");_.zm.prototype.getStats=function(){return{width:this.w,height:this.g,streamBandwidth:this.o,decodedFrames:this.j,droppedFrames:this.m,corruptedFrames:this.D,estimatedBandwidth:this.f,loadLatency:this.A,playTime:vm(this.a,_.Xm),pauseTime:vm(this.a,_.Wm),bufferingTime:vm(this.a,_.Om),stateHistory:wm(this.a),switchHistory:ym(this.B)}};_.Bm.prototype.value=function(){void 0==this.a&&(this.a=this.f());return this.a};var Cm=new _.Bm(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.vd],[HTMLMediaElement.HAVE_CURRENT_DATA,_.ud],[HTMLMediaElement.HAVE_FUTURE_DATA,vc],[HTMLMediaElement.HAVE_ENOUGH_DATA,wc]])});Mm.prototype.Xb=function(a,b){this.l&&this.l.trigger(new _.J(a,{detail:b}))};Mm.prototype.getState=function(){return Pm(this,"")};Mm.prototype.U=function(a){(a=a&&a.detail)&&a.severity&&a.severity===_.M&&Tm(this,_.Um)};Mm.prototype.destroy=function(){this.h.debug("Stop watching for video events for "+this.l.namespace());this.a.release()};_.C("clpp.version",_.ea);_.C("clpp.name",_.oa);_.Gj="application/x-mpegurl";_.C("clpp.Type",{DASH:_.cc,HLS:_.Gj,SMOOTH_STREAMING:_.hc,MP4:_.Re});_.ng="scte35";_.lg=He;_.C("clpp.TimelineCueType",{SCTE35:_.ng,DASH_CALLBACK:_.Gd,UNKNOWN:_.lg});_.C("clpp.utils.media.detectType",Zm);var bn=new _.I("clpp.sources");_.w(cn,_.gk);_.t=cn.prototype;_.t.init=function(a,b){_.gk.prototype.init.call(this,a,b);this.j=new Mm(this);Tm(this.j,_.Em)};_.t.namespace=function(){return Kc};
|
|
403
|
+
_.t.unload=function(){var a=this,b;return _.B(function(c){if(!a.w)return c.G(0);a.log.debug(_.ib,a.w);a.F&&(a.F.stop(),a.F=null);(b=a.getTrackManager())&&b.release();a.B&&(a.B.destroy(),a.B=null);a.K&&(a.K.destroy(),a.K=null);a.m&&a.m.release();a.o&&(a.o.destroy(),a.o=null);_.gg(a.g);a.f&&(a.f=new _.zm);a.H=null;a.w=null;a.I=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());return _.x(c,gn(a),0)})};
|
|
404
|
+
_.t.release=function(){var a=this;return _.gk.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.j&&Tm(a.j,_.Em)})};
|
|
405
|
+
_.t.destroy=function(){var a=this;if(this.A)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.A=!0;return _.gk.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Aa);var b=a.getTrackManager();b&&b.destroy();a.m&&(a.m.destroy()["catch"](function(c){a.log.warn("Error while disposing metadata handler",c)}),a.m=null);a.j&&(a.j.destroy(),a.j=null);a.f=null})};_.t.getDrmInfo=function(){return this.o?this.o.getDrmInfo():null};
|
|
406
|
+
_.t.detach=function(){};_.t.getTrackManager=function(){return this.Zc};
|
|
407
|
+
_.t.load=function(a){var b=this,c,d,e,f,g;return _.B(function(h){switch(h.a){case 1:if(b.A)return h["return"](dn());if(!b.getSurface()||!b.getSurface().getMedia())return h["return"](Promise.reject("No surface or no media element in surface"));c=_.K;d=b.D.getMedia();b.J=Date.now()/1E3;b.f=new _.zm;b.g.on(b,_.pe,function(){b.f&&_.um(b.f.a,b.getState())});Tm(b.j,_.Vm);b.w=_.an(a);_.fk(a)&&(b.configuration=_.ek(b.Nd,a));b.log.debug(_.Sa,b.configuration);b.log.debug(_.db,b.w);e=_.sm(b.configuration,["html",
|
|
408
|
+
"native"]);b.K=e.create(b);b.K.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.ik(_.xe)&&!_.ej()&&(b.B=new Cg(b),b.B.start(d));b.m?b.m.release():b.m=new ig(b);kg(b.m,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.g.one(d,vc,function(){b.trigger(new _.J(_.qq))});null==b.configuration.startTime&&mn(b,d);_.zf(h,2);return _.x(h,fn(b,d),4);case 4:return _.x(h,
|
|
409
|
+
jn(b),5);case 5:return _.x(h,ln(b).P,6);case 6:_.Af(h,0);break;case 2:g=_.Bf(h),b.I=!1,b.onError(g),_.y(h)}})};_.t.onError=function(a){this.I||(a.severity===_.M&&null!==this.j&&Tm(this.j,_.Um),this.trigger(new _.J(_.hd,{detail:a})))};_.t.Yf=function(){return new Aj};_.t.getState=function(){return null!==this.j?this.j.getState().currentState:_.Km};
|
|
411
410
|
_.t.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};_.t.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}};
|
|
412
411
|
_.t.isLive=function(){return this.a&&this.a.src?Infinity===this.a.duration:!1};
|
|
413
|
-
_.t.getStats=function(){if(!this.f||!this.a)return _.
|
|
414
|
-
_.t.getTimelineCues=function(){return this.m?this.m.getTimelineCues():[]};
|
|
415
|
-
_.t.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(
|
|
416
|
-
_.t.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.t.hide=function(a){_.
|
|
417
|
-
|
|
418
|
-
_.t.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.t.unload=function(){return this.a?this.a.unload():Promise.resolve()};_.t.detach=function(){return this.a?this.a.detach():Promise.resolve()};_.t.release=function(){var a=this;if(null!=this.m)return this.h.info("Player release already in progress"),this.m;this.h.debug("Releasing player");this.m=
|
|
419
|
-
_.t.destroy=function(){var a=this;if(this.F)return this.h.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.F=!0;return this.release().then(function(){a.h.debug(
|
|
420
|
-
_.t.load=function(a){var b=this,c;return _.B(function(d){switch(d.a){case 1:return _.
|
|
421
|
-
_.t.
|
|
422
|
-
_.t.play=function(){return this.a?this.j&&this.a.namespace()!==_.
|
|
423
|
-
_.t.getState=function(){return this.a?this.a.getState():_.
|
|
412
|
+
_.t.getStats=function(){if(!this.f||!this.a)return _.Am();this.f&&_.um(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.w=a.videoWidth;b.g=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.m=Number(a.droppedVideoFrames),b.j=c,this.f.D=Number(a.corruptedVideoFrames));if(a=this.getTrackManager())if(a=a.fa())a.bandwidth&&(this.f.o=a.bandwidth),a.Yc&&(this.f.f=a.Yc);return this.f.getStats()};
|
|
413
|
+
_.t.getTimelineCues=function(){return this.m?this.m.getTimelineCues():[]};nn.prototype.a=function(){return Kc};nn.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.cc,e=c===_.hc,f=c===_.Gj;return _.bj()||d||e||f&&!_.cj()?0:""!==hj().canPlayType(c)?f&&_.cj()&&(window.ManagedMediaSource||window.MediaSource&&MediaSource.isTypeSupported)&&!b.streaming.preferNativeHlsOnSafari?1:2:0};nn.prototype.create=function(){return new cn};_.Yf(new nn);_.C("clpp.ads.PodType",{PREROLL:0,MIDROLL:1,POSTROLL:2});_.C("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1});_.C("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var pn=new _.I("clpp.ads"),on=[];_.C("clpp.utils.dom.createHTMLElement",_.wn);xn.prototype.set=function(a){this.g.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=zn(this,a)};xn.prototype.get=function(){return this.a};_.t=Dn.prototype;_.t.getMedia=function(){return this.f.get()};_.t.getContainer=function(){return this.a.get()};_.t.getSafeContainer=function(){return this.a};_.t.getId=function(){return this.m};_.t.getUniqueCssClass=function(){return this.o};_.t.getCastElement=function(){return this.g};_.t.isFullscreen=function(){return!!document.fullscreenElement};_.t.hideMediaElement=function(){var a=this.getMedia();a?_.un(a,Gc):this.h.debug("No media element available that could be hidden")};
|
|
414
|
+
_.t.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(Gc):this.h.debug("No media element available that could be shown")};_.t.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&&_.un(a,_.Fc);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
|
|
415
|
+
_.t.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.t.hide=function(a){_.un(a,Gc)};_.t.show=function(a){a.classList.remove(Gc)};_.t.release=function(){this.j.release()};Dn.prototype.removeElementFromContainer=Dn.prototype.removeElementFromContainer;Dn.prototype.addElementToContainer=Dn.prototype.addElementToContainer;Dn.prototype.getCastElement=Dn.prototype.getCastElement;
|
|
416
|
+
Dn.prototype.getContainer=Dn.prototype.getContainer;Dn.prototype.getMedia=Dn.prototype.getMedia;var An={disableContainer:!1,crossorigin:"anonymous",containerEl:null},Bn=1;Fn.prototype.release=function(){this.a.release();Jn(this);this.l=null};_.C("clpp.polyfill.installAll",Mn);var Ln=[];_.C("clpp.polyfill.register",_.Nn);Pn.prototype.verify=function(a,b){var c={kty:"RSA",n:a.n,e:a.e},d=this.g+"."+this.f,e=this.j;return new Promise(function(f,g){try{var h=window&&window.crypto&&window.crypto.subtle}catch(m){}if(h){var l={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};h.importKey("jwk",c,l,!1,["verify"]).then(function(m){var n=_.yh(d),p=_.Lh(e);return h.verify(l,m,p.buffer,n.buffer)}).then(function(m){m?f():g(pb)})["catch"](g)}else b?g("Web Crypto API is not supported"):f()})};var Cq={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},ak="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";Qn.prototype.verify=function(){var a=this;return(new Promise(function(b,c){try{var d=Rn(a);b(d)}catch(e){c()}})).then(function(b){return b.verify(Cq)})["catch"](function(b){if(b&&b!==pb){var c=window.location.href;var d=new _.Kg(c);c=d.bb||d.Sa?d:new _.Kg("//"+c);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(c.Sa))return Promise.resolve()}throw b;})};var bo="vod",ao="live";_.w(U,_.Wj);_.t=U.prototype;_.t.on=function(a,b,c){return _.Wj.prototype.on.call(this,a,b,c)};_.t.one=function(a,b,c){return _.Wj.prototype.one.call(this,a,b,c)};_.t.off=function(a,b){return _.Wj.prototype.off.call(this,a,b)};_.t.init=function(){};_.t.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.J(_.hd,{detail:a}))};_.t.dc=function(a){a=this.M[a];void 0===a&&(a=null);return a};_.t.getSurface=function(){return this.g};_.t.getConfiguration=function(){return _.K.Ra(this.f)};
|
|
417
|
+
_.t.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.t.unload=function(){return this.a?this.a.unload():Promise.resolve()};_.t.detach=function(){return this.a?this.a.detach():Promise.resolve()};_.t.release=function(){var a=this;if(null!=this.m)return this.h.info("Player release already in progress"),this.m;this.h.debug("Releasing player");this.m=jo(this);return this.m["finally"](function(){a.h.debug("Player released");a.m=null})};
|
|
418
|
+
_.t.destroy=function(){var a=this;if(this.F)return this.h.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.F=!0;return this.release().then(function(){a.h.debug(Aa);a.trigger(new _.J("destroying"));return a.kc(_.Md)}).then(function(){a.a&&a.a.removeDelegate(a);a.ld.clear();a.V.release();if(a.a)return a.a.destroy()}).then(function(){lk(function(b){b.Ha()});_.hk.clear();a.a=null;a.trigger(new _.J("destroyed"))})};
|
|
419
|
+
_.t.load=function(a){var b=this,c;return _.B(function(d){switch(d.a){case 1:return _.zf(d,2),_.x(d,_.mo(b,a),4);case 4:return _.x(d,_.no(b),5);case 5:return _.x(d,_.po(b),6);case 6:_.Af(d,0);break;case 2:c=_.Bf(d);if(b.m)throw b.h.info("Load interrupted while a player release is pending"),new _.L(_.M,7,7E3);throw c;}})};
|
|
420
|
+
_.t.kc=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(_.mf(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};_.t.use=function(a){a=new a;a.Oa(this);_.kk(a)};_.t.remove=function(a){if(this.getState()<=_.Em||this.I){var b="";lk(function(c){c instanceof a&&(b=c.id(),c.Ha())});if(b)return _.hk["delete"](b),this.J=!0}return!1};
|
|
421
|
+
_.t.play=function(){return this.a?this.j&&this.a.namespace()!==_.Hc?this.j.start(this.a):this.a.play():Promise.reject("No player initialized. You need to load content before calling play.")};_.t.pause=function(){return this.a?this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};_.t.getTrackManager=function(){return this.a&&this.a.getTrackManager()};_.t.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.Vj};
|
|
422
|
+
_.t.getState=function(){return this.a?this.a.getState():_.Em};_.t.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.t.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.t.isPaused=function(){return this.a&&this.a.isPaused()||!1};_.t.getPosition=function(){return this.a?this.a.getPosition():0};_.t.seek=function(a){return this.getState()===_.Um?Promise.reject("Cannot seek in current state."):this.a?this.a.seek(a):Promise.reject("delegate does not exist")};
|
|
424
423
|
_.t.getPresentationStartTime=function(){return this.a?this.a.getPresentationStartTime():null};_.t.getSeekRange=function(){return this.a?this.a.getSeekRange():{start:0,end:0}};_.t.getVolume=function(){return this.a?this.a.getVolume():null};_.t.setVolume=function(a){this.a&&this.a.setVolume(a)};_.t.getDuration=function(){return this.a?this.a.getDuration():-1};_.t.getAdsManager=function(){return this.j};_.t.namespace=function(){return this.a&&this.a.namespace()||"Undefined"};
|
|
425
424
|
_.t.canPlay=function(a,b){return this.a?this.a.canPlay(a,b):0};_.t.getPlaybackRate=function(){return this.a?this.a.getPlaybackRate():1};_.t.setPlaybackRate=function(a){this.a&&this.a.setPlaybackRate(a)};_.t.isMuted=function(){return this.a&&this.a.isMuted()||!1};_.t.setMuted=function(a){this.a&&this.a.setMuted(a)};_.t.getNetworkEngine=function(){return this.H};_.t.setNetworkEngine=function(a){this.H=a};_.t.getTextDisplayer=function(){return this.a&&this.a.getTextDisplayer()};
|
|
426
|
-
_.t.isLive=function(){return!!this.a&&this.a.isLive()};_.t.getStats=function(){return this.a?this.a.getStats():null};_.t.
|
|
427
|
-
_.t.setDrmCustomDataModifier=function(a){this.
|
|
428
|
-
U.prototype.getSources=U.prototype.
|
|
425
|
+
_.t.isLive=function(){return!!this.a&&this.a.isLive()};_.t.getStats=function(){return this.a?this.a.getStats():null};_.t.Td=function(){return Object.freeze(this.o)};_.t.setSourceIndex=function(a){this.a&&this.a.setSourceIndex(a)};_.t.getSourceIndex=function(){return this.a?this.a.getSourceIndex():-1};_.t.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};_.t.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.t.resetAbr=function(){this.a&&this.a.resetAbr()};
|
|
426
|
+
_.t.setDrmCustomDataModifier=function(a){this.Ic=a;lo(this)};_.t.setCdnErrorCallback=function(a){this.D=a;this.a&&this.a.setCdnErrorCallback(this.D)};_.t.Ag=function(){this.Ae=!0};_.C("clpp.Player",U);U.registerPlugin=_.qo;U.prototype.setCdnErrorCallback=U.prototype.setCdnErrorCallback;U.prototype.setDrmCustomDataModifier=U.prototype.setDrmCustomDataModifier;U.prototype.resetAbr=U.prototype.resetAbr;U.prototype.getTimelineCues=U.prototype.getTimelineCues;U.prototype.getLoadedSource=U.prototype.getLoadedSource;
|
|
427
|
+
U.prototype.getSources=U.prototype.Td;U.prototype.getStats=U.prototype.getStats;U.prototype.isLive=U.prototype.isLive;U.prototype.getTextDisplayer=U.prototype.getTextDisplayer;U.prototype.setNetworkEngine=U.prototype.setNetworkEngine;U.prototype.getNetworkEngine=U.prototype.getNetworkEngine;U.prototype.setMuted=U.prototype.setMuted;U.prototype.isMuted=U.prototype.isMuted;U.prototype.setPlaybackRate=U.prototype.setPlaybackRate;U.prototype.getPlaybackRate=U.prototype.getPlaybackRate;
|
|
429
428
|
U.prototype.namespace=U.prototype.namespace;U.prototype.getAdsManager=U.prototype.getAdsManager;U.prototype.getDuration=U.prototype.getDuration;U.prototype.setVolume=U.prototype.setVolume;U.prototype.getVolume=U.prototype.getVolume;U.prototype.getSeekRange=U.prototype.getSeekRange;U.prototype.getPresentationStartTime=U.prototype.getPresentationStartTime;U.prototype.seek=U.prototype.seek;U.prototype.getPosition=U.prototype.getPosition;U.prototype.isPaused=U.prototype.isPaused;U.prototype.isEnded=U.prototype.isEnded;
|
|
430
429
|
U.prototype.getState=U.prototype.getState;U.prototype.getBufferInfo=U.prototype.getBufferInfo;U.prototype.getTrackManager=U.prototype.getTrackManager;U.prototype.pause=U.prototype.pause;U.prototype.play=U.prototype.play;U.prototype.remove=U.prototype.remove;U.prototype.use=U.prototype.use;U.prototype.load=U.prototype.load;U.prototype.destroy=U.prototype.destroy;U.prototype.release=U.prototype.release;U.prototype.getDrmInfo=U.prototype.getDrmInfo;U.prototype.getConfiguration=U.prototype.getConfiguration;
|
|
431
|
-
U.prototype.getSurface=U.prototype.getSurface;U.prototype.getPlugin=U.prototype.
|
|
432
|
-
_.t.Ob=function(){};_.t.Pb=function(){};_.t.
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
_.t.generateRequest=function(a,b){var c=this;if(this.m)return Promise.reject(
|
|
441
|
-
e);c.f&&(
|
|
442
|
-
c.f=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:
|
|
443
|
-
_.t.close=function(){if(this.m)return this.closed;this.h.info("Closing Key Session "+this.sessionId);this.m=!0;try{this.a.close(),this.closed.resolve(),_.
|
|
444
|
-
|
|
445
|
-
_.t
|
|
446
|
-
|
|
447
|
-
_.t.close=function(){_.
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",
|
|
452
|
-
var
|
|
430
|
+
U.prototype.getSurface=U.prototype.getSurface;U.prototype.getPlugin=U.prototype.dc;U.prototype.off=U.prototype.off;U.prototype.one=U.prototype.one;U.prototype.on=U.prototype.on;_.Em=0;_.Vm=1;_.Om=2;_.Xm=3;_.Wm=4;_.Qm=5;_.Um=6;_.Km=7;_.Sm={IDLE:_.Em,PREPARING:_.Vm,BUFFERING:_.Om,PLAYING:_.Xm,PAUSED:_.Wm,ENDED:_.Qm,ERROR:_.Um,UNSET:_.Km};U.State=_.Sm;var go=[];_.t=ro.prototype;_.t.vb=function(){};_.t.wb=function(){};_.t.Bb=function(){};_.t.getId=function(){};_.t.getCreativeId=function(){};_.t.getApiFramework=function(){};_.t.getAdSystem=function(){};_.t.getAdvertiserName=function(){};_.t.getTitle=function(){};_.t.getDuration=function(){};_.t.getSkipTimeOffset=function(){};_.t.ic=function(){};_.t.Nb=function(){};_.t.getMediaUrl=function(){};_.t.yb=function(){};_.t.xb=function(){};_.t.kb=function(){};_.t.$a=function(){};_.t.getPodIndex=function(){};
|
|
431
|
+
_.t.Ob=function(){};_.t.Pb=function(){};_.t.Ab=function(){};_.t.getWrapperAdIds=function(){};_.t.getWrapperAdSystems=function(){};_.t.getWrapperCreativeIds=function(){};_.C("clpp.ads.IAd",ro);ro.prototype.getWrapperCreativeIds=ro.prototype.getWrapperCreativeIds;ro.prototype.getWrapperAdSystems=ro.prototype.getWrapperAdSystems;ro.prototype.getWrapperAdIds=ro.prototype.getWrapperAdIds;ro.prototype.getSequenceLength=ro.prototype.Ab;ro.prototype.getPositionInSequence=ro.prototype.Pb;
|
|
432
|
+
ro.prototype.getPodTimeOffset=ro.prototype.Ob;ro.prototype.getPodIndex=ro.prototype.getPodIndex;ro.prototype.getPodType=ro.prototype.$a;ro.prototype.getMediaBitrate=ro.prototype.kb;ro.prototype.getMediaHeight=ro.prototype.xb;ro.prototype.getMediaWidth=ro.prototype.yb;ro.prototype.getMediaUrl=ro.prototype.getMediaUrl;ro.prototype.getClickThroughUrl=ro.prototype.Nb;ro.prototype.isBumper=ro.prototype.ic;ro.prototype.getSkipTimeOffset=ro.prototype.getSkipTimeOffset;ro.prototype.getDuration=ro.prototype.getDuration;
|
|
433
|
+
ro.prototype.getTitle=ro.prototype.getTitle;ro.prototype.getAdvertiserName=ro.prototype.getAdvertiserName;ro.prototype.getAdSystem=ro.prototype.getAdSystem;ro.prototype.getApiFramework=ro.prototype.getApiFramework;ro.prototype.getCreativeId=ro.prototype.getCreativeId;ro.prototype.getId=ro.prototype.getId;ro.prototype.getTechnology=ro.prototype.Bb;ro.prototype.getAdManagerVersion=ro.prototype.wb;ro.prototype.getAdManagerName=ro.prototype.vb;so.prototype.name=function(){};so.prototype.ba=function(){};so.prototype.create=function(){};_.C("clpp.ads.IAdsManagerFactory",so);so.prototype.create=so.prototype.create;so.prototype.isSupported=so.prototype.ba;so.prototype.name=so.prototype.name;_.t=to.prototype;_.t.load=function(){};_.t.start=function(){};_.t.resume=function(){};_.t.pause=function(){};_.t.skip=function(){};_.t.getVolume=function(){};_.t.setVolume=function(){};_.t.getPosition=function(){};_.t.dispose=function(){};_.C("clpp.ads.IAdsManager",to);to.prototype.getPosition=to.prototype.getPosition;to.prototype.setVolume=to.prototype.setVolume;to.prototype.getVolume=to.prototype.getVolume;to.prototype.skip=to.prototype.skip;to.prototype.pause=to.prototype.pause;
|
|
434
|
+
to.prototype.resume=to.prototype.resume;_.t=uo.prototype;_.t.load=function(){return Promise.resolve()};_.t.start=function(a){return a.play()};_.t.resume=function(){};_.t.pause=function(){};_.t.skip=function(){};_.t.getVolume=function(){return 1};_.t.setVolume=function(){};_.t.getPosition=function(){return-1};_.t.dispose=function(){return _.B(function(a){_.y(a)})};uo.prototype.dispose=uo.prototype.dispose;uo.prototype.getPosition=uo.prototype.getPosition;uo.prototype.setVolume=uo.prototype.setVolume;uo.prototype.getVolume=uo.prototype.getVolume;
|
|
435
|
+
uo.prototype.skip=uo.prototype.skip;uo.prototype.pause=uo.prototype.pause;uo.prototype.resume=uo.prototype.resume;uo.prototype.start=uo.prototype.start;uo.prototype.load=uo.prototype.load;rn.prototype.name=function(){return"clpp.ads.NopAdsManagerFactory"};rn.prototype.ba=function(){return!0};rn.prototype.create=function(){return new uo};rn.prototype.create=rn.prototype.create;rn.prototype.isSupported=rn.prototype.ba;rn.prototype.name=rn.prototype.name;vo.prototype.getCuePoints=function(){};vo.prototype.Qb=function(){};vo.prototype.lb=function(){};_.C("clpp.ads.IAdsTimeline",vo);vo.prototype.hasPostroll=vo.prototype.lb;vo.prototype.hasPreroll=vo.prototype.Qb;vo.prototype.getCuePoints=vo.prototype.getCuePoints;_.wo.prototype.ac=function(){};_.wo.prototype.release=function(){};_.t=xo.prototype;_.t.Kd=function(a){this.a=a};_.t.dd=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(Va)};_.t.Sd=function(){return this.a&&this.a.mediaKeys};_.t.Ec=function(a,b){return navigator.requestMediaKeySystemAccess(a,b)};_.t.cd=function(){return kb};yo.prototype.a=function(){return kb};yo.prototype.ba=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};
|
|
436
|
+
yo.prototype.create=function(){return new xo};ul(new yo,1E3);_.t=zo.prototype;_.t.getStatus=function(){return this.a};_.t.forEach=function(a){this.a&&a(this.a,Dq.value())};_.t.get=function(a){if(this.has(a))return this.a};_.t.has=function(a){var b=Dq.value();return this.a&&lh(a,b)?!0:!1};_.t.entries=function(){};_.t.keys=function(){};_.t.values=function(){};var Dq=new _.Bm(function(){return sh(new Uint8Array([0]))});_.t=Bo.prototype;_.t.Kd=function(){};_.t.dd=function(a){_.Sf("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.t.Sd=function(){return null};_.t.Ec=function(){_.Sf("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.t.cd=function(){return"NOP"};Co.prototype.a=function(){return"NOP"};Co.prototype.ba=function(){return!0};Co.prototype.create=function(){return new Bo};
|
|
437
|
+
ul(new Co,-1);_.t=Do.prototype;_.t.Kd=function(a){this.f=a};_.t.dd=function(a){var b=this.a;b&&b!==a&&Go(b,null);return(this.a=a)?Go(a,this.f):Promise.resolve()};_.t.Sd=function(){return this.a};_.t.Ec=function(a,b){_.Sf("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new Eo(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.t.cd=function(){return"APPLE"};Eo.prototype.createMediaKeys=function(){var a=new Fo(this.keySystem);return Promise.resolve(a)};
|
|
438
|
+
Eo.prototype.getConfiguration=function(){_.Sf("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};Fo.prototype.createSession=function(a){a=void 0===a?ze:a;this.h.debug("Creating Apple MediaKeys Session");if(a!==ze)throw new TypeError("Session type "+a+ba);return new Ho(this.g,"__session_"+this.j++)};Fo.prototype.setServerCertificate=function(){this.h.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.w(Ho,_.Wj);_.t=Ho.prototype;
|
|
439
|
+
_.t.generateRequest=function(a,b){var c=this;if(this.m)return Promise.reject(nb);this.h.debug("generateRequest");this.g=new _.bi;try{var d=this.o.createSession(_.Re,_.N(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,bf,function(e){var f=c.keyStatuses.getStatus();c.h.debug("Received Key Message in "+c.sessionId);c.g&&(c.g.resolve(),c.g=null);e=new _.J(zd,{messageType:void 0===f||f===qe?rd:qd,message:sh(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,$e,function(e){c.h.debug("onWebkitKeyAdded_",
|
|
440
|
+
e);c.f&&(Io(c,"usable"),c.f.resolve(),c.f=null)});this.j.on(d,af,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===qe)c.h.warn("Ignoring webkit key error for session "+c.sessionId);else if(c.h.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.g)c.g.reject(e),c.g=null;else if(null!==c.f)c.f.reject(e),
|
|
441
|
+
c.f=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:Io(c,"output-not-allowed");break;default:Io(c,_.nd)}});Io(this,qe)}catch(e){this.g.reject(e)}return this.g};_.t.load=function(){this.h.debug("load");return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.t.update=function(a){if(this.m)return Promise.reject(nb);this.h.debug("update");this.f=new _.bi;try{this.a.update(_.N(a))}catch(b){this.f.reject(b)}return this.f};
|
|
442
|
+
_.t.close=function(){if(this.m)return this.closed;this.h.info("Closing Key Session "+this.sessionId);this.m=!0;try{this.a.close(),this.closed.resolve(),_.gg(this.j)}catch(a){this.closed.reject(a)}return this.closed};_.t.remove=function(){this.h.debug("remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};Jo.prototype.a=function(){return"APPLE"};Jo.prototype.ba=function(){return!!window.WebKitMediaKeys};
|
|
443
|
+
Jo.prototype.create=function(){return new Do};ul(new Jo,1100);_.t=Ko.prototype;_.t.Kd=function(a){this.a=a};_.t.dd=function(a){_.Sf("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(Va);var b=this.f;b&&b!==a&&Po(b,null);(this.f=a)&&Po(a,this.a);return Promise.resolve()};_.t.Sd=function(){return this.f};_.t.Ec=function(a,b){_.Sf("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.Pe);c=d.length?d[0]:document.createElement(_.Pe)}var e=new Lo(this.g,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
|
|
444
|
+
_.t.cd=function(){return"WEBKIT"};Lo.prototype.createMediaKeys=function(){return Promise.resolve(new Mo(this.g,this.a))};Lo.prototype.getConfiguration=function(){return this.f};Mo.prototype.createSession=function(a){a=void 0===a?ze:a;if(a!==ze&&a!==_.Vd)throw new TypeError("Session type "+a+ba);if(!this.a)throw a=Error("Media element is missing."),a.name=Pa,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new Qo(this.g,this.a,this.o,a);this.j.push(a);return a};
|
|
445
|
+
Mo.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.w(Qo,_.Wj);_.t=Qo.prototype;_.t.generateRequest=function(a,b){_.Sf("WebkitEmeManager.MediaKeySession.generateRequest");return So(this,b,null)};_.t.load=function(a){_.Sf(Cb);return this.m===_.Vd?So(this,null,a):Promise.reject(Error(Za))};_.t.update=function(a){_.Sf(Cb);var b=new _.bi;To(this,b,a);return b};
|
|
446
|
+
_.t.close=function(){_.Sf("WebkitEmeManager.MediaKeySession.close");if(this.m!==_.Vd){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=Ro(this,"cancelKeyRequest");try{this.j[a](this.g,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.t.remove=function(){_.Sf("WebkitEmeManager.MediaKeySession.remove");return this.m!==_.Vd?Promise.reject(Error(Za)):this.close()};Uo.prototype.a=function(){return"WEBKIT"};
|
|
447
|
+
Uo.prototype.ba=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};Uo.prototype.create=function(){return new Ko};ul(new Uo);_.w(Vo,_.wk);Vo.prototype.td=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]};Vo.prototype.cg=function(a,b){var c=Sk(b);switch(this.o){case Eq:return c;case Fq:return(new _.zi(c)).a;default:throw Error("Unknown content ID strategy");}};Vo.prototype.Eg=function(a,b){b.headers[ta]=ic;this.td(a,b);var c={spc:_.Jh(b.body)};b.body=_.Ah(_.Bi(c,!0))};
|
|
448
|
+
Vo.prototype.Fg=function(a,b){var c=_.uh(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.Lh(c).buffer};_.C(Ic,Vo);Vo.prototype.onFairPlayLicenseResponse=Vo.prototype.Fg;Vo.prototype.onFairPlayLicenseRequest=Vo.prototype.Eg;Vo.prototype.extractFairPlayContentId=Vo.prototype.cg;Vo.prototype.onLicenseRequest=Vo.prototype.td;Vo.prototype.constructor=Vo.prototype.constructor;Vo.NAME=Na;var Fq="hostname",Eq="full-skd";
|
|
449
|
+
Vo.FairPlayContentIdStrategy={HOSTNAME:Fq,FULL_SKD:Eq};_.w(Wo,_.wo);_.t=Wo.prototype;_.t.Oa=function(a){this.l=a};_.t.Ha=function(){this.l=null};_.t.ac=function(){var a=this.l.getConfiguration();if(a.drm&&a.drm&&a.drm.env===Na){a=a.drm.customData;if(!a)throw new _.L(_.M,7,7100,_.Sc);a=new Vo(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||Eq);_.rk(a)}};_.t.release=function(){};_.t.id=function(){return"headerdrm"};_.C("clpp.drm.HeaderDrmComponent",Wo);_.Nn(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=_.N(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});_.Nn(function(){_.Sf("mathRound.install")});_.Nn(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;id in document||(Object.defineProperty(document,id,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
|
|
450
|
+
{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",Xo);document.addEventListener("webkitfullscreenerror",Xo);document.addEventListener("mozfullscreenchange",Xo);document.addEventListener("mozfullscreenerror",Xo);document.addEventListener("MSFullscreenChange",Xo);document.addEventListener("MSFullscreenError",Xo)}});_.Nn(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Sf("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Zo,document.exitPictureInPicture=$o,document.addEventListener("webkitpresentationmodechanged",Yo,!0))}});_.Nn(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=ap)}});_.Nn(function(){if(window.VTTCue)_.Rf("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Rf(Ab),window.VTTCue=bp;else if(6===a)_.Rf("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=cp;else{try{var b=!!bp(1,2,"")}catch(c){b=!1}b&&(_.Rf(Ab),window.VTTCue=bp)}}else _.Tf("VTTCue not available.")});var dp;_.Nn(function(){_.Sf("InputEvent.install");_.Zi("Trident/")&&HTMLInputElement.prototype.addEventListener!==ep&&(_.Rf("Patching input event support on IE."),dp=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=ep)});_.Nn(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.Nn(function(){_.Sf("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}}});_.mp.prototype.start=function(){var a=this;this.a=new ResizeObserver(function(b){b=b[0];a.j(b.contentRect.width,b.contentRect.height,a.f.isFullscreen())});this.a.observe(this.g)};_.mp.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.op.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.Pe);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.bi;c=c.play();var e=(new _.Wi(function(){b(a)})).aa(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===ab?b(!0):b(!1)}):b(!0);return d};
|
|
451
|
+
var np=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,
|
|
453
452
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
|
|
454
453
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
|
|
455
454
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
|
|
456
455
|
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,
|
|
457
456
|
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,
|
|
458
|
-
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]);_.
|
|
459
|
-
_.t.getFontSizePercent=function(){return null===this.B?
|
|
460
|
-
_.
|
|
461
|
-
_.
|
|
462
|
-
|
|
463
|
-
_.t.
|
|
457
|
+
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]);_.Gq=new _.I("clpp.media.TimestampParser");_.rp={};_.tp={};var yp=window.XMLHttpRequest;_.w(Gp,_.ci);Gp.prototype.then=function(a,b){this.P=this.P.then(a,b);return this};Gp.prototype["catch"]=function(a){this.P=this.P["catch"](a);return this};Gp.prototype.abort=function(){var a=this;if(this.a)return Promise.resolve();this.a=!0;return this.g.then(function(b){a.o&&clearTimeout(a.o);a.m&&a.m();return b.abort()})["catch"](function(){})};var Mp=window.fetch,Kp=window.AbortController,Jp=window.Headers;_.Op={};_.t=_.Qp.prototype;_.t.getBackgroundColor=function(){return this.K};_.t.setBackgroundColor=function(a){this.K=a;this.sb()};_.t.getWindowColor=function(){return this.V};_.t.setWindowColor=function(a){this.V=a;this.sb()};_.t.getFontFamily=function(){return this.T};_.t.setFontFamily=function(a){this.T=a;this.sb()};_.t.getFontColor=function(){return this.N};_.t.setFontColor=function(a){this.N=a;this.sb()};_.t.getFontSize=function(){return this.I};_.t.setFontSize=function(a){this.I=a;this.sb()};
|
|
458
|
+
_.t.getFontSizePercent=function(){return null===this.B?Hq:this.B};_.t.setFontSizePercent=function(a){this.B=a;this.sb()};_.t.getEdgeColor=function(){return this.H};_.t.setEdgeColor=function(a){this.H=a;this.sb()};_.t.getEdgeType=function(){return this.o};_.t.setEdgeType=function(a){this.o=a;this.sb()};_.Qp.prototype.setEdgeType=_.Qp.prototype.setEdgeType;_.Qp.prototype.getEdgeType=_.Qp.prototype.getEdgeType;_.Qp.prototype.setEdgeColor=_.Qp.prototype.setEdgeColor;_.Qp.prototype.getEdgeColor=_.Qp.prototype.getEdgeColor;
|
|
459
|
+
_.Qp.prototype.setFontSizePercent=_.Qp.prototype.setFontSizePercent;_.Qp.prototype.getFontSizePercent=_.Qp.prototype.getFontSizePercent;_.Qp.prototype.setFontSize=_.Qp.prototype.setFontSize;_.Qp.prototype.getFontSize=_.Qp.prototype.getFontSize;_.Qp.prototype.setFontColor=_.Qp.prototype.setFontColor;_.Qp.prototype.getFontColor=_.Qp.prototype.getFontColor;_.Qp.prototype.setFontFamily=_.Qp.prototype.setFontFamily;_.Qp.prototype.getFontFamily=_.Qp.prototype.getFontFamily;
|
|
460
|
+
_.Qp.prototype.setWindowColor=_.Qp.prototype.setWindowColor;_.Qp.prototype.getWindowColor=_.Qp.prototype.getWindowColor;_.Qp.prototype.setBackgroundColor=_.Qp.prototype.setBackgroundColor;_.Qp.prototype.getBackgroundColor=_.Qp.prototype.getBackgroundColor;var Hq=1/15;var Rp="raised",Sp="depressed",Up="dropshadow",Tp="uniform";_.C("clpp.text.EdgeType",{NONE:_.Id,RAISED:Rp,DEPRESSED:Sp,DROP_SHADOW:Up,UNIFORM:Tp});Wp.prototype.parseInit=function(a){try{var b=_.Op[_.ec]||null;if(b){var c=new b(this.f);c.parseInit(a)}else this.h.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=_.Op[_.fc]||null;d?(c=new d(this.f),c.parseInit(a)):this.h.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 _.L(_.M,2,2011);}};
|
|
461
|
+
Wp.prototype.parseMedia=function(a,b){if(!this.a)throw new _.L(_.M,2,2011);return this.a.parseMedia(a,b)};_.Op[dc]=Wp;_.w(_.Yp,_.Qp);_.t=_.Yp.prototype;_.t.append=function(){};_.t.remove=function(){return!0};_.t.isTextVisible=function(){return this.w};_.t.setTextVisibility=function(a){this.w=a};
|
|
462
|
+
_.t.sb=function(){if(!this.j){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.Vp(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.g.textContent="."+this.f+"::cue {"+b+"}"}};_.t.destroy=function(){this.m.classList.remove(this.f);document.head.removeChild(this.g);this.j=!0;return Promise.resolve()};var Xp=0;Zp.prototype.ba=function(){return!0};Zp.prototype.create=function(a){return new _.Yp(a)};_.rm("native",new Zp);_.$p.prototype.onContentWillLoad=function(){return Promise.resolve()};_.$p.prototype.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.$p.prototype.onPlayerWillDestroy=function(){};_.$p.prototype.onPlayerWillRelease=function(){};}.call(g,this));
|
|
464
463
|
g.clpp._ = _;
|
|
465
464
|
if (typeof(module)!="undefined"&&module.exports) {module.exports=g.clpp;}
|
|
466
465
|
else if (typeof(define)!="undefined" && define.amd) {define(function(){return g.clpp;});}
|