@castlabs/prestoplay 6.21.1-beta.13 → 6.21.1-beta.15
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/cjs/cl.airplay.js +3 -3
- package/cjs/cl.broadpeak.js +2 -2
- package/cjs/cl.cast.js +60 -60
- package/cjs/cl.conviva.js +22 -22
- package/cjs/cl.core.js +199 -199
- package/cjs/cl.crypto.js +1 -1
- package/cjs/cl.dash.js +27 -27
- package/cjs/cl.externs.js +30 -30
- package/cjs/cl.freewheel.js +16 -16
- package/cjs/cl.hls.js +44 -44
- package/cjs/cl.hlssmpte.js +2 -2
- package/cjs/cl.htmlcue.js +5 -5
- package/cjs/cl.ima.js +16 -16
- package/cjs/cl.mse.js +102 -102
- package/cjs/cl.muxdata.js +8 -8
- package/cjs/cl.persistent.js +3 -3
- package/cjs/cl.playlist.js +5 -5
- package/cjs/cl.sessions.js +6 -6
- package/cjs/cl.simid.js +3 -3
- package/cjs/cl.smooth.js +24 -24
- package/cjs/cl.thumbnails.js +5 -5
- package/cjs/cl.tizen.js +28 -28
- package/cjs/cl.ttml.js +4 -4
- package/cjs/cl.verimatrix.js +1 -1
- package/cjs/cl.vimond.js +8 -8
- package/cjs/cl.vr.js +7 -7
- package/cjs/cl.vtt.js +4 -4
- package/cjs/cl.yospace.js +2 -2
- package/cjs/cl.youbora.js +18 -18
- package/cl.airplay.js +1 -1
- package/cl.cast.js +30 -30
- package/cl.conviva.js +4 -4
- package/cl.core.js +145 -144
- package/cl.crypto.js +3 -3
- package/cl.dash.js +28 -28
- package/cl.externs.js +30 -30
- package/cl.freewheel.js +1 -1
- package/cl.hls.js +31 -31
- package/cl.hlssmpte.js +2 -2
- package/cl.htmlcue.js +1 -1
- package/cl.ima.js +6 -6
- package/cl.mse.js +74 -74
- package/cl.muxdata.js +1 -1
- package/cl.playlist.js +4 -4
- package/cl.sessions.js +1 -1
- package/cl.simid.js +1 -1
- package/cl.smooth.js +22 -22
- package/cl.thumbnails.js +8 -8
- package/cl.tizen.js +13 -13
- package/cl.verimatrix.js +1 -1
- package/cl.vimond.js +5 -5
- package/cl.vr.js +5 -5
- package/cl.vtt.js +2 -2
- package/cl.yospace.js +2 -2
- package/cl.youbora.js +7 -7
- package/package.json +1 -1
package/cjs/cl.core.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
(function(window){var ba,ca,da,ea,fa,oa,sa,wa,xa,Aa,Ba,Da,Fa,Ha,La,Qa,Ra,Ua,Xa,Ya,cb,db,eb,gb,hb,ib,jb,kb,lb,nb,ob,sb,tb,ub,vb,xb,yb,zb,Bb,Cb,Gb,Lb,Pb,Tb,Ub,Vb,Wb,Zb,ac,dc,ec,hc,ic,kc,lc,mc,nc,oc,pc,qc,sc,zc,Ac,Bc,Uc,Zc,ed,ld,md,td,ud,vd,xd,yd,zd,Bd,Cd,Dd,Ed,Fd,Kd,Md,Od,Td,Zd,$d,ae,be,ce,de,fe,ge,ke,le,ne,te,Ae,Ce,De,Ke,cf,kf,mf,nf,of,pf,qf,rf,sf,tf,uf,vf,zf,Af,Bf,Cf,Gf,Hf,Jf,Nf,Pf,dg,gg,ng,tg,wg,Cg,Mg,Qg,Rg,Sg,Tg,Ug,Wg,Xg,Yg,bh,ch,gh,kh,mh,lh,nh,oh,ph,uh,xh,vh,wh,yh,Ah,Bh,Fh,Ih,Nh,Rh,Th,Uh,Wh,Zh,Xh,$h,ci,bi,gi,mi,
|
|
3
3
|
li,ki,pi,si,ri,qi,ei,di,oi,fi,vi,wi,xi,zi,Bi,Ai,Di,Oi,Pi,Qi,Si,Ui,Vi,Xi,Zi,cj,ej,gj,aj,jj,yj,zj,Cj,Gj,Ij,Jj,Mj,Hj,Dj,Nj,Uj,ak,bk,ek,fk,gk,ik,jk,kk,nk,zk,Ak,Bk,Ck,Dk,Jk,Lk,Mk,Sk,Tk,Wk,Yk,Xk,Vk,Zk,Uk,bl,$k,al,dl,el,ll,ul,wl,Hl,Jl,Kl,Ll,Vl,Ml,Yl,$l,bm,cm,am,em,fm,Zl,gm,hm,im,jm,km,om,pm,qm,rm,lm,vm,wm,ym,Am,Cm,Im,Jm,Km,Lm,Mm,Nm,Om,Pm,Qm,Rm,Sm,Tm,Zm,mn,sn,vn,wn,yn,zn,Hn,Ln,Mn,Rn,Xn,Yn,$n,ao,go,ho,mo,no,Bo,Ho,Qo,No,Oo,Uo,Wo,Yo,bp,cp,gp,So,Mo,np,ep,op,qp,pp,wp,up,vp,sp,tp,Do,Xo,rp,Eo,mp,Lo,ip,jp,zp,lp,
|
|
4
4
|
Ro,Po,Go,Ep,Gp,Hp,Ip,Jp,Op,Sp,Tp,Vp,Zp,dq,Rp,eq,fq,iq,lq,mq,oq,pq,kq,jq,qq,rq,sq,tq,xq,yq,zq,Aq,Bq,Gq,Hq,Iq,Mq,Lq,Rq,Tq,Uq,Vq,gr,ir,hr,Wq,br,jr,kr,Pq,er,Nq,lr,nr,dr,$q,ar,Zq,cr,Yq,mr,pr,fr,sr,Qq,Oq,Xq,tr,rr,Sq,Ar,Br,Dr,ur,Cr,Fr,Er,xr,Ir,Hr,Mr,zr,Pr,Gr,Nr,vr,yr,Jr,Xr,Kr,Or,Rr,Qr,Zr,Wr,bs,wr,Tr,cs,ds,fs,es,hs,is,js,ks,gs,ms,os,ps,rs,ss,ts,us,vs,ws,xs,ys,As,Bs,Cs,Ds,zs,Gs,Is,Hs,Js,Ks,W,Ps,Ts,Rs,Us,Ws,Vs,Ys,Zs,dt,ft,et,at,Os,$s,ht,it,jt,mt,nt,lt,kt,qt,st,rt,vt,tt,yt,zt,xt,Bt,Ct,Dt,At,pt,Et,ot,Ht,It,Jt,
|
|
5
|
-
Lt,Mt,Nt,Ot,Pt,Qt,Rt,St,Tt,Ut,Vt,Wt,Xt,Yt,Zt,$t,cu,au,du,fu,gu,bu,eu,hu,iu,ju,ku,lu,mu,nu,ou,pu,qu,su,uu,vu,wu,tu,yu,zu,Fu,Ku,Lu,Nu,Mu,wk,Pu,Su,Ru,Tu,Uu,Qu,Wu,Xu,Vu,Yu,xk,av,sk,Dv,Gv,eh,Iv;_.aa=" is registered.";ba=" is unsupported on this platform.";ca=" to a log level. Falling back to default!";da="': 'output-restricted'";ea="() is ongoing!";fa=".start";_.ha="6.21.1-beta.
|
|
5
|
+
Lt,Mt,Nt,Ot,Pt,Qt,Rt,St,Tt,Ut,Vt,Wt,Xt,Yt,Zt,$t,cu,au,du,fu,gu,bu,eu,hu,iu,ju,ku,lu,mu,nu,ou,pu,qu,su,uu,vu,wu,tu,yu,zu,Fu,Ku,Lu,Nu,Mu,wk,Pu,Su,Ru,Tu,Uu,Qu,Wu,Xu,Vu,Yu,xk,av,sk,Dv,Gv,eh,Iv;_.aa=" is registered.";ba=" is unsupported on this platform.";ca=" to a log level. Falling back to default!";da="': 'output-restricted'";ea="() is ongoing!";fa=".start";_.ha="6.21.1-beta.15";_.ia="AdaptationSet";_.ja="Already destroyed. No-op";_.ka="Already released. No-op";_.la="Autoplay is not allowed due to browser policy.";
|
|
6
6
|
_.ma="BANDWIDTH";_.na="BASIC";oa="CHECKSUM";_.pa="CLOSED-CAPTIONS";_.ra="CODECS";sa="Can not set volume to ";_.ta="Cannot retrieve buffer information due to platform limitations";_.ua="CastlabsPlayer";_.va="Configuration is valid";wa="Content-Length";xa="Content-Type";_.ya="Could not find configured DRM environment.";_.za="DRM environment '";Aa="DRM licenses loaded";Ba="DRMtoday";Da="DRMtodayOnboard";_.Ea="DURATION";Fa="Destroying player";_.Ga="Disable track type ";Ha="EXT-X-BYTERANGE";_.Ia="EXT-X-DATERANGE";
|
|
7
7
|
_.Ja="EXT-X-DISCONTINUITY";_.Ka="EXT-X-DISCONTINUITY-SEQUENCE";La="EXT-X-ENDLIST";_.Na="EXT-X-KEY";_.Oa="EXT-X-MAP";_.Pa="EXT-X-MEDIA-SEQUENCE";Qa="EXT-X-PART-INF";Ra="EXT-X-PLAYLIST-TYPE";_.Sa="EXT-X-PRELOAD-HINT";_.Ta="EXT-X-PROGRAM-DATE-TIME";Ua="EXT-X-SERVER-CONTROL";_.Va="EXT-X-STREAM-INF";Xa="EXT-X-TARGETDURATION";Ya="Error while decoding string!";_.Za="Error while fetching license!";_.$a="FairPlay Certificate URL is not defined";_.ab="FairPlay License URL is not defined";_.bb="GROUP-ID";
|
|
8
8
|
cb="HW_SECURE_ALL";db="HW_SECURE_CRYPTO";eb="HW_SECURE_DECODE";gb="HeaderDrm";hb="Hide video element .";ib="Interstitial ";jb="Invalid track type: ";kb="InvalidStateError";lb="Key status for Key ID '";_.mb="LANGUAGE";nb="License verification failed: ";ob="Load interrupted while a player release is pending";_.pb="Loading player with configuration";_.qb="MaxHeight";_.rb="MaxWidth";sb="Missing media element";tb="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";
|
|
@@ -21,40 +21,40 @@ _.og="text/vtt";_.pg="text/xml";_.qg="timeupdate";_.rg="trak";_.sg="ttml-xml";tg
|
|
|
21
21
|
Rg="webkitkeyadded";Sg="webkitkeyerror";Tg="webkitkeymessage";Ug="webkitneedkey";_.Vg="width";Wg="x-dt-csl-tracking-token";Xg="x-dt-follow-up-token";Yg="x-dt-resp-code";_.Zg="yospace-session-ended";_.$g="yospace-session-started";bh=function(a){return function(){return _.ah[a].apply(this,arguments)}};ch=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};_.w=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:ch(a)}};
|
|
22
22
|
_.dh=function(a){if(!(a instanceof Array)){a=_.w(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a};_.x=function(a,b){a.prototype=eh(b.prototype);a.prototype.constructor=a;if(fh)fh(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]};gh=function(){gh=function(){};hh.Symbol||(hh.Symbol=ih)};kh=function(a,b){this.a=a;jh(this,"description",{configurable:!0,writable:!0,value:b})};
|
|
23
23
|
mh=function(){gh();var a=hh.Symbol.iterator;a||(a=hh.Symbol.iterator=hh.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.ue&&jh(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return lh(ch(this))}});mh=function(){}};lh=function(a){mh();a={next:a};a[hh.Symbol.iterator]=function(){return this};return a};nh=function(){this.w=!1;this.l=null;this.f=void 0;this.a=1;this.j=this.o=0;this.B=this.h=null};oh=function(a){if(a.w)throw new TypeError("Generator is already running");a.w=!0};
|
|
24
|
-
ph=function(a,b){a.h={
|
|
24
|
+
ph=function(a,b){a.h={Lh:b,li:!0};a.a=a.o||a.j};_.y=function(a,b,c){a.a=c;return{value:b}};_.C=function(a){a.a=0};_.D=function(a,b,c){a.o=b;void 0!=c&&(a.j=c)};_.qh=function(a){a.o=0;a.j=2};_.rh=function(a,b){a.a=b;a.o=0};_.E=function(a){a.o=0;var b=a.h.Lh;a.h=null;return b};_.sh=function(a){a.B=[a.h];a.o=0;a.j=0};_.th=function(a){var b=a.B.splice(0)[0];(b=a.h=a.h||b)?b.li?a.a=a.o||a.j:void 0!=b.F&&a.j<b.F?(a.a=b.F,a.h=null):a.a=a.j:a.a=0};uh=function(a){this.a=new nh;this.f=a};
|
|
25
25
|
xh=function(a,b){oh(a.a);var c=a.a.l;if(c)return vh(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return wh(a)};vh=function(a,b,c,d){try{var e=b.call(a.a.l,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.l=null,ph(a.a,g),wh(a)}a.a.l=null;d.call(a.a,f);return wh(a)};
|
|
26
|
-
wh=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,ph(a.a,c)}a.a.w=!1;if(a.a.h){b=a.a.h;a.a.h=null;if(b.
|
|
26
|
+
wh=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,ph(a.a,c)}a.a.w=!1;if(a.a.h){b=a.a.h;a.a.h=null;if(b.li)throw b.Lh;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
|
|
27
27
|
yh=function(a){this.next=function(b){oh(a.a);a.a.l?b=vh(a,a.a.l.next,b,a.a.A):(a.a.A(b),b=wh(a));return b};this["throw"]=function(b){oh(a.a);a.a.l?b=vh(a,a.a.l["throw"],b,a.a.A):(ph(a.a,b),b=wh(a));return b};this["return"]=function(b){return xh(a,b)};mh();this[Symbol.iterator]=function(){return this}};_.zh=function(a,b){var c=new yh(new uh(b));fh&&fh(c,a.prototype);return c};
|
|
28
28
|
Ah=function(a,b){if(b){for(var c=hh,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&&jh(c,d,{configurable:!0,writable:!0,value:f})}};Bh=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())})};_.I=function(a){return Bh(new yh(new uh(a)))};
|
|
29
29
|
_.J=function(a,b){var c=a.split("."),d=Ch;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};Fh=function(a){return a&&0<=Dh[a]?Dh[a]:Eh};Ih=function(a){if(!a)return _.Gh("clpp.log",ac+a+ca),-1;var b=Hh[a.toUpperCase()];return void 0===b?(_.Gh("clpp.log",ac+a+ca),-1):b};_.K=function(a){(this.tag=a)&&void 0===Dh[a]&&(Dh[a]=-1)};_.Kh=function(a){Jh.info.apply(Jh,arguments)};
|
|
30
|
-
_.Lh=function(a){Jh.debug.apply(Jh,arguments)};_.Gh=function(a){Jh.warn.apply(Jh,arguments)};_.Mh=function(a){Jh.error.apply(Jh,arguments)};Nh=function(a,b){this.Ea=a;this.sourceIndex=b};_.Qh=function(a){if(a){var b=a.a();b in _.Oh?_.Ph.warn("Player-Factory '"+b+"' already registered"):(_.Oh[b]=a,_.Ph.info("Registered Player-Factory: '"+b+"'"))}};Rh=function(a){return Object.values(_.Oh).find(a)||null};_.Sh=function(){this.a={}};Th=function(a,b,c,d){this.f=a;this.Wc=b;this.a=c;this.
|
|
30
|
+
_.Lh=function(a){Jh.debug.apply(Jh,arguments)};_.Gh=function(a){Jh.warn.apply(Jh,arguments)};_.Mh=function(a){Jh.error.apply(Jh,arguments)};Nh=function(a,b){this.Ea=a;this.sourceIndex=b};_.Qh=function(a){if(a){var b=a.a();b in _.Oh?_.Ph.warn("Player-Factory '"+b+"' already registered"):(_.Oh[b]=a,_.Ph.info("Registered Player-Factory: '"+b+"'"))}};Rh=function(a){return Object.values(_.Oh).find(a)||null};_.Sh=function(){this.a={}};Th=function(a,b,c,d){this.f=a;this.Wc=b;this.a=c;this.En=!!d};
|
|
31
31
|
_.L=function(a,b){if(b)for(var c in b)this[c]=b[c];this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.f=this.a=!1};Uh=function(a){this.a=new _.Sh;this.f=a};_.Vh=function(){this.a=new _.Sh};
|
|
32
32
|
Wh=function(a,b,c){function d(h){for(var l=_.w(e),m=l.next();!m.done;m=l.next())a.off(b,m.value,d);c(h)}for(var e=[ne,"msneedkey",Ug,"needkey"],f=_.w(e),g=f.next();!g.done;g=f.next())a.on(b,g.value,d)};_.Yh=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)Xh(c[b]);a.a.clear()};Zh=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};Xh=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
|
|
33
33
|
$h=function(a){this.m=a;this.l=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.j=new _.Vh;this.f=new Set;this.a=new Set;this.h=null;this.g=new _.K("clpp.native.Metadata")};ci=function(a,b){a.j.on(b,_.Mc,function(c){c=c.track;c.kind===_.Qe&&bi(a,c)})};
|
|
34
34
|
bi=function(a,b){a.g.debug("onMetadataTrackAdded_()");b.mode=_.we;var c=!b.cues||0===b.cues.length;if(a.m.isLive()||!c){var d=b.cues;c=di(d);ei(c);a.a=fi(c,a.l);0<a.a.size&&(gi(a,a.a),a.m.trigger(new _.L(_.hi)));a.j.on(b,_.Ud,function(){for(var e=a.m.getPosition(),f=_.w(a.a),g=f.next();!g.done;g=f.next()){var h,l=a;g=g.value;if(Infinity===g.endTime){if(h=!l.f.has(g)){h=g.startTime;var m=h+.5;h=h<=e&&e<=m}h&&(l.f.add(g),l.m.trigger(new _.L(_.ii,{detail:g})))}else h=g.startTime<=e&&e<=g.endTime,!h&&
|
|
35
35
|
l.f.has(g)?(l.f["delete"](g),l.m.trigger(new _.L(_.ji,{detail:g}))):h&&!l.f.has(g)&&(l.f.add(g),l.m.trigger(new _.L(_.ii,{detail:g})))}});a.m.isLive()&&(a.h=setInterval(function(){if(b.cues){var e=a.m.getSeekRange().start;for(var f=[],g=_.w(b.cues),h=g.next();!h.done;h=g.next())h=h.value,h.endTime<e&&f.push(h);ki(a,b,f);0<f.length&&a.g.debug("Evicted "+f.length+" old cues.");g=_.w(a.a);for(h=g.next();!h.done;h=g.next())h=h.value,h.endTime<e&&a.a["delete"](h);e=0<f.length}else e=!1;li(a,b);f=di(d);
|
|
36
36
|
var l=fi(f,a.l);g=new Set;h=!1;l=_.w(l);for(var m=l.next();!m.done;m=l.next()){m=m.value;var n=mi(a,m);n?(m.customAttributes&&(n.customAttributes=_.M.ra(n.customAttributes||{},m.customAttributes)||void 0),h=!0):(a.a.add(m),g.add(m))}h=0<g.size||h;ei(f);(e||h)&&a.m.trigger(new _.L(_.hi));gi(a,g)},6E3))}};gi=function(a,b){for(var c=_.w(b),d=c.next();!d.done;d=c.next())a.m.trigger(new _.L(_.ni,{detail:d.value}))};
|
|
37
|
-
mi=function(a,b){return Array.from(a.a.values()).find(function(c){return b.startTime===c.startTime&&b.endTime===c.endTime})||null};li=function(a,b){if(b.cues){var c=oi(b.cues).filter(function(l){return l.type===Md}),d=c.filter(function(l){return l.
|
|
38
|
-
ki=function(a,b,c){c=_.w(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;try{b.removeCue(d)}catch(e){a.g.debug("Failed to remove cue",d,e)}}};pi=function(a,b){var c=a.endTime-a.startTime,d=b.endTime-b.startTime,e=a.
|
|
37
|
+
mi=function(a,b){return Array.from(a.a.values()).find(function(c){return b.startTime===c.startTime&&b.endTime===c.endTime})||null};li=function(a,b){if(b.cues){var c=oi(b.cues).filter(function(l){return l.type===Md}),d=c.filter(function(l){return l.ug}),e=c.filter(function(l){return!l.ug});c=[];e=_.w(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var g=_.w(d),h=g.next();!h.done;h=g.next())h=h.value,pi(f,h)&&(c.push(f),h.Ih=f.startTime)}ki(a,b,c);0<c.length&&a.g.debug("Removed "+c.length+" duplicated cues.")}};
|
|
38
|
+
ki=function(a,b,c){c=_.w(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;try{b.removeCue(d)}catch(e){a.g.debug("Failed to remove cue",d,e)}}};pi=function(a,b){var c=a.endTime-a.startTime,d=b.endTime-b.startTime,e=a.Ih||a.startTime,f=b.Ih||b.startTime;return(Infinity===c&&Infinity===d||.01>Math.abs(c-d))&&.5>Math.abs(e-f)&&a.value.key===b.value.key&&a.value.data===b.value.data};
|
|
39
39
|
si=function(a){var b=[],c={};a=_.w(a);for(var d=a.next();!d.done;c={ud:c.ud},d=a.next())c.ud=d.value,(d=b.find(function(e){return function(f){var g=e.ud;return f.startTime===g.startTime&&f.endTime===g.endTime}}(c)))?qi(c.ud,d):(d=ri(c.ud),b.push(d));return b};ri=function(a){var b=a.startTime,c=a.endTime;b={schemeIdUri:"",value:"",startTime:b,endTime:c,id:"T"+b.toFixed(2)+"-"+c.toFixed(2),type:_.ti,eventElement:null};qi(a,b);return b};
|
|
40
|
-
qi=function(a,b){if(a.key.startsWith("X-"))b.customAttributes||(b.customAttributes={}),b.customAttributes[a.key]=a.value,"X-CUSTOM-ID"===a.key&&(b.id=a.value);else if("SCTE35-OUT"===a.key||"SCTE35-IN"===a.key)b.schemeIdUri=_.yg,b.type=_.ui};ei=function(a){a.forEach(function(b){b.
|
|
41
|
-
fi=function(a,b){var c=a.map(function(d){return{startTime:d.startTime,endTime:d.endTime,key:d.value.key,value:d.value.data,
|
|
40
|
+
qi=function(a,b){if(a.key.startsWith("X-"))b.customAttributes||(b.customAttributes={}),b.customAttributes[a.key]=a.value,"X-CUSTOM-ID"===a.key&&(b.id=a.value);else if("SCTE35-OUT"===a.key||"SCTE35-IN"===a.key)b.schemeIdUri=_.yg,b.type=_.ui};ei=function(a){a.forEach(function(b){b.ug=!0})};di=function(a){return oi(a).filter(function(b){return b.type===Md&&!b.ug})};oi=function(a){var b=[];a=_.w(a);for(var c=a.next();!c.done;c=a.next())b.push(c.value);return b};
|
|
41
|
+
fi=function(a,b){var c=a.map(function(d){return{startTime:d.startTime,endTime:d.endTime,key:d.value.key,value:d.value.data,mi:!1}});c=vi(c);b&&(c=wi(c));return new Set(si(c))};vi=function(a){var b=new Set(a),c=new Set(a.filter(function(d){return"SCTE35-OUT"===d.key}).map(xi));a.filter(function(d){return"SCTE35-IN"===d.key}).forEach(function(d){c.has(xi(d))||(d.mi=!0)});return Array.from(b.values())};wi=function(a){a.forEach(function(b){b.mi&&(b.endTime=b.startTime,b.startTime=0)});return a};
|
|
42
42
|
xi=function(a){return a.startTime+"-"+a.endTime};_.yi=function(a){return Array.isArray(a)?a:[a]};zi=function(a,b){return a===b?!0:a.length===b.length&&a.every(function(c,d){return c===b[d]})};Bi=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 Ai(a,b)&&Ai(b,a)};Ai=function(a,b){var c=new Set(a);return b.every(function(d){return c.has(d)})};
|
|
43
|
-
_.Ci=function(a,b){b=void 0===b?{}:b;if(b.
|
|
43
|
+
_.Ci=function(a,b){b=void 0===b?{}:b;if(b.Ch){for(var c=[],d={},e=_.w(a),f=e.next();!f.done;d={we:d.we},f=e.next())d.we=f.value,c.some(function(g){return function(h){return b.Ch(g.we,h)}}(d))||c.push(d.we);return c}return Array.from((new Set(a)).values())};Di=function(a,b){var c=new Set(a),d=new Set(b);return{Fn:a.filter(function(e){return!d.has(e)}),Xo:a.filter(function(e){return d.has(e)}),xj:b.filter(function(e){return!c.has(e)})}};
|
|
44
44
|
_.Ki=function(a,b,c,d){d=void 0===d?_.Ei:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.Fi;this.writingMode=_.Gi;this.lineInterpretation=_.Hi;this.line=null;this.lineAlign=_.Ii;this.direction=Ji;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
|
|
45
45
|
_.Ni=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.Li;this.scroll=Mi;this.cssClassList=[];this.writingMode=this.displayAlign=null};Oi=function(a){this.m=a;this.l=a.getTextDisplayer();this.f=this.h=null;this.a=new _.Vh;this.j=!1;this.g=new _.K("clpp.native.CueHandler")};
|
|
46
46
|
Pi=function(a,b){var c=b.track;c.kind!==_.Qe&&(c.mode===_.Zf&&(c.mode=_.we),a.a.on(c,_.Ud,function(d){d=d.target||d.srcElement;d.mode=_.we;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.l.append(d,[]))}))};_.N=function(a,b,c,d,e){var f=Error.call(this,Qi(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||_.M.ea(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.N)};
|
|
47
47
|
Qi=function(a,b,c,d){a=(a===_.P?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.M.ea(d))a+=": "+d;else if(null!=d)if(null!=d.message)a+=": "+d.message,delete d.message;else try{a+=": "+JSON.stringify(d)}catch(e){}return a};_.Ri=function(a,b){var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=b};
|
|
48
48
|
Si=function(a,b){var c=b||zi,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,_.dh(h))}};_.Ti=function(a){return null!=a};Ui=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}throw new _.Ri("No non-null, non-undefined value found");};
|
|
49
|
-
Vi=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}};_.Wi=function(a){var b;a instanceof _.Wi?(Xi(this,a.
|
|
50
|
-
Xi=function(a,b,c){a.
|
|
49
|
+
Vi=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}};_.Wi=function(a){var b;a instanceof _.Wi?(Xi(this,a.xb),this.Gc=a.Gc,_.Yi(this,a.ob),Zi(this,a.pd),this.Ka=a.Ka,_.$i(this,aj(a.a)),this.xc=a.xc):a&&(b=String(a).match(bj))?(Xi(this,b[1]||"",!0),this.Gc=cj(b[2]||""),_.Yi(this,b[3]||"",!0),Zi(this,b[4]),this.Ka=cj(b[5]||"",!0),_.$i(this,b[6]||"",!0),this.xc=cj(b[7]||"")):this.a=new _.dj(null)};
|
|
50
|
+
Xi=function(a,b,c){a.xb=c?cj(b,!0):b;a.xb&&(a.xb=a.xb.replace(/:$/,""))};_.Yi=function(a,b,c){a.ob=c?cj(b,!0):b};Zi=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.pd=b}else a.pd=null};_.$i=function(a,b,c){b instanceof _.dj?a.a=b:(c||(b=ej(b,fj)),a.a=new _.dj(b))};cj=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""};ej=function(a,b,c){return typeof a===_.ig?(a=encodeURI(a).replace(b,gj),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
|
|
51
51
|
gj=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};_.dj=function(a){this.f=a||null};_.hj=function(a){if(!a.a&&(a.a={},a.h=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," ")))}};
|
|
52
52
|
aj=function(a){var b=new _.dj;b.f=a.f;if(a.a){var c={},d;for(d in a.a)c[d]=a.a[d].concat();b.a=c;b.h=a.h}return b};jj=function(a,b){for(var c=_.w(ij[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=_.w(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a===_.Q?"":null};_.lj=function(a,b){for(var c=kj[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===_.Q?"":null};
|
|
53
53
|
_.oj=function(a,b,c){return a.map(function(d){d=_.mj(d)||"";return(d=_.nj[b][d])?d:b===_.Q?c&&"vtt"!==c?Uc:_.og:null}).filter(Boolean)[0]||null};_.mj=function(a){a=(new _.Wi(a)).Ka.split(".");return 1>=a.length?null:a.pop()};_.pj=function(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d};_.qj=function(a,b,c,d){d=void 0===d?{}:d;a=a.getAttribute(b);if(!a&&d.required)throw new _.N(_.P,4,4023,"Required attribute missing: "+b);return a?a.value:c||null};
|
|
54
54
|
_.rj=function(a,b){return _.qj(a,b,void 0,{required:!0})};_.sj=function(a,b){this.name=a;this.value=b};
|
|
55
55
|
_.tj=function(a,b,c,d,e,f,g,h,l,m,n,p,q,t,v,z,A){l=void 0===l?!1:l;m=void 0===m?null:m;n=void 0===n?null:n;p=void 0===p?null:p;q=void 0===q?null:q;t=void 0===t?[]:t;v=void 0===v?null:v;z=void 0===z?"":z;this.position=a;this.startTime=b;this.endTime=c;this.Ga=g;this.Za=d;this.Aa=e;this.na=f;this.keyInfo=(void 0===h?null:h)||null;this.dd=_.M.R(l)?!1:!!l;this.timescale=m;this.horizontalTiles=n;this.verticalTiles=p;this.durationPerTile=q;this.a=t||[];this.h=!1;this.initSegment=v;this.le=z;this.Oa=A};
|
|
56
56
|
_.uj=function(a,b,c,d,e,f,g,h,l,m,n,p,q,t,v){t=void 0===t?[]:t;_.tj.call(this,a,b,c,d,e,f,g,void 0===h?null:h,void 0===l?!1:l,void 0===m?null:m,void 0===n?null:n,void 0===p?null:p,void 0===q?null:q,t,void 0===v?null:v);this.ma=0};_.wj=function(a,b){a=_.vj(a);b=_.vj(b);return a.split("-")[0]===b.split("-")[0]};_.vj=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=xj.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};yj=function(a){if(null!==a&&void 0!==a)return Number(a)};
|
|
57
|
-
zj=function(a){return a.reduce(function(b,c){return b+c},0)};_.Aj=function(a){if(typeof a!==_.ig)return null;var b=a.trim().match(/^(\d+)x(\d+)$/);if(!b)return null;a=parseInt(b[1],10);b=parseInt(b[2],10);return 0>=a||0>=b?null:{Xd:a,se:b
|
|
57
|
+
zj=function(a){return a.reduce(function(b,c){return b+c},0)};_.Aj=function(a){if(typeof a!==_.ig)return null;var b=a.trim().match(/^(\d+)x(\d+)$/);if(!b)return null;a=parseInt(b[1],10);b=parseInt(b[2],10);return 0>=a||0>=b?null:{Xd:a,se:b,$n:a*b}};_.Bj=function(a,b){for(var c=_.w(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};Cj=function(){};
|
|
58
58
|
Gj=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!==b.byteLength)return!1;if(Dj(a)===Dj(b)&&(a.byteOffset||0)===(b.byteOffset||0))return!0;for(var c=_.Ej(a),d=_.Ej(b),e=_.w(Fj(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!==d[f])return!1;return!0};_.Ej=function(a,b,c){c=void 0===c?Infinity:c;return Hj(a,void 0===b?0:b,c,Uint8Array)};Ij=function(a,b,c){c=void 0===c?Infinity:c;return Hj(a,void 0===b?0:b,c,Uint16Array)};
|
|
59
59
|
Jj=function(a,b,c){c=void 0===c?Infinity:c;return Hj(a,void 0===b?0:b,c,Uint32Array)};_.Kj=function(a,b,c){c=void 0===c?Infinity:c;return Hj(a,void 0===b?0:b,c,Int32Array)};_.Lj=function(a,b,c){c=void 0===c?Infinity:c;return Hj(a,void 0===b?0:b,c,DataView)};Mj=function(a){return a instanceof ArrayBuffer?a:0===a.byteOffset&&a.byteLength===a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
|
|
60
60
|
Hj=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=Dj(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)};Dj=function(a){return a instanceof ArrayBuffer?a:a.buffer};Nj=function(){};_.Pj=function(a,b){b=void 0===b?!0:b;var c=_.Oj(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")};
|
|
@@ -68,11 +68,11 @@ _.dk=function(a,b){_.M.ea(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var
|
|
|
68
68
|
ak(c,b);return c};_.hk=function(a,b,c,d,e,f,g,h){a={uri:e||d,data:b,headers:a,status:c,timeMs:g,responseStartMs:h,request:f};if(ek(c))return fk(a);throw gk(a);};ek=function(a){return 200<=a&&299>=a&&202!==a};fk=function(a){return{uri:a.uri,data:a.data||new ArrayBuffer(0),headers:a.headers,status:a.status,fromCache:!!a.headers["x-shaka-from-cache"],timeMs:a.timeMs,responseStartMs:a.responseStartMs,request:a.request}};
|
|
69
69
|
gk=function(a){a=fk(a);try{var b=_.S.Rd(a.data,!0)}catch(d){b=null}_.Lh("HTTP error text:",b);var c=a.request;return new _.N(0<=(c?c.fatalStatusCodes||[]:[]).indexOf(a.status)?_.P:1,1,1001,{url:a.uri,status:a.status,responseText:b,headers:a.headers,request:a.request,response:a})};ik=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};
|
|
70
70
|
jk=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};kk=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()};
|
|
71
|
-
_.lk=function(){this.
|
|
72
|
-
_.rk=function(a,b){a.a.push(nk(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};_.yk=function(){this.f=[];this.h=[];this.j=[];this.w=!1;this.o=new _.ok;this.a={};this.headers=new Map;this.l=0;this.a.data=sk;!window.fetch||!window.AbortController||_.tk(6)||_.uk()&&68<_.vk().browserVersion.major?(this.a.http=wk,this.a.https=wk):(this.a.http=xk,this.a.https=xk)};zk=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return c=_.S,_.y(e,a.fetch(b),2);d=e.f;return e["return"](c.
|
|
71
|
+
_.lk=function(){this.Xi=this.gf=this.done=!1;this.error=this.value=null;var a,b,c=new Promise(function(d,e){a=function(f){this.done=this.gf=!0;this.value=f;d(f)};b=function(f){this.done=this.Xi=!0;this.error=f;e(f)}});c.gf=!1;c.done=!1;c.Xi=!1;c.value=null;c.error=null;c.resolve=a;c.reject=b;return c};_.mk=function(a,b){this.U=a;this.A=b;this.a=!1};nk=function(a,b){a.U.then(function(){return b(!0)},function(){return b(!1)});return a};_.ok=function(){this.a=[]};
|
|
72
|
+
_.rk=function(a,b){a.a.push(nk(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};_.yk=function(){this.f=[];this.h=[];this.j=[];this.w=!1;this.o=new _.ok;this.a={};this.headers=new Map;this.l=0;this.a.data=sk;!window.fetch||!window.AbortController||_.tk(6)||_.uk()&&68<_.vk().browserVersion.major?(this.a.http=wk,this.a.https=wk):(this.a.http=xk,this.a.https=xk)};zk=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return c=_.S,_.y(e,a.fetch(b),2);d=e.f;return e["return"](c.Ai(c.aa(d.data)))})};
|
|
73
73
|
Ak=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.y(e,zk(a,b),2);c=e.f;try{d=JSON.parse(c);if(null==d||typeof d!==_.Xe)throw Error("Not an object");return e["return"](d)}catch(f){throw new _.Ri("Failed to parse JSON response","json-failed");}})};
|
|
74
74
|
Bk=function(a,b,c,d){d=void 0===d?"HEAD":d;var e,f;return _.I(function(g){switch(g.a){case 1:if(!navigator.onLine)return g["return"](!1);if(!b){g.F(2);break}e=_.dk(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.D(g,4);return _.y(g,a.fetch(e).U,6);case 6:_.rh(g,2);break;case 4:if(f=_.E(g),1002===f.code||1003===f.code)return g["return"](!1);case 2:return g["return"](!0)}})};
|
|
75
|
-
Ck=function(a,b){for(var c=_.w(a.headers),d=c.next();!d.done;d=c.next()){var e=_.w(d.value);d=e.next().value;e=e.next().value;b.headers[d]||(b.headers[d]=e)}};Dk=function(a,b){var c=new _.Wi(b.uris[b.uriIndex]),d=c.
|
|
75
|
+
Ck=function(a,b){for(var c=_.w(a.headers),d=c.next();!d.done;d=c.next()){var e=_.w(d.value);d=e.next().value;e=e.next().value;b.headers[d]||(b.headers[d]=e)}};Dk=function(a,b){var c=new _.Wi(b.uris[b.uriIndex]),d=c.xb;d||(d=location.protocol,d=d.slice(0,-1),Xi(c,d),b.uris[b.uriIndex]=c.toString());var e=a.a[d];if(!e)throw new _.N(_.P,1,1E3,{url:c.toString()});return function(f){return e(f)}};
|
|
76
76
|
_.Ek=function(a,b){this.id=a;this.type=b;this.roles=[];this.frameRate=this.label=this.originalLanguage=this.language=this.kind=null;this.trickPlay=!1;this.channelsCount=this.src=this.mimeType=null;this.spatialAudio=!1;this.renditions=[];this.accessibility=[]};_.Fk=function(a){return a&&a!==_.ug?a:null};
|
|
77
77
|
Jk=function(a){if(!a)throw new _.N(_.P,3,3101,jb+a);if(!_.M.ea(a))throw new _.N(_.P,3,3101,jb+a+". Track type must be a string!");switch(a.toLowerCase()){case _.T:return _.T;case _.Gk:return _.Gk;case _.Hk:return _.Hk;case Ik:return Ik}throw new _.N(_.P,3,3101,"Unknown track type: "+a+".");};
|
|
78
78
|
Lk=function(a,b){a=Jk(a);var c=_.Fk(b.kind),d=b.id;d||(d=String(_.Kk++));d=new _.Ek(d,c===_.Qe?Ik:a);d.kind=c;d.label=_.Fk(b.label);d.language=_.Fk(b.language);d.originalLanguage=b.originalLanguage||d.language;return d};Mk=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};_.Nk=function(a,b){this.track=b;this.id=a;this.originalId=this.codec=this.Bd=this.bandwidth=this.height=this.width=null};
|
|
@@ -82,7 +82,7 @@ _.Rk=function(a){var b={};a=a||"";a=a.substring(a.indexOf("?")+1);a=_.w(a.split(
|
|
|
82
82
|
Tk=function(a){this.f=a;this.g=new _.K("clpp.native.hls.HlsMetadataParser");this.a=Si(this.h.bind(this),function(b,c){return b[0]===c[0]&&b[1].enableHlsVideoTrackInfo===c[1].enableHlsVideoTrackInfo&&b[1].enableMetadata===c[1].enableMetadata})};
|
|
83
83
|
Wk=function(a,b,c){var d,e,f,g,h;return _.I(function(l){if(1==l.a)return _.y(l,Uk(a,b,c),2);d=l.f;e=d.mimeType;f=d.renditions;g=new _.Ek("dummy",_.Hk);h=f.map(function(m,n){var p=new _.Nk("R"+n,g);p.bandwidth=m.bandwidth;p.Bd=m.Bd;p.codec=m.codec;p.width=m.width;p.height=m.height;return p});Vk(h);return l["return"]({renditions:h,mimeType:e||void 0})})};
|
|
84
84
|
Yk=function(a){a=a.split("\n").filter(function(c){return c.trim().startsWith("#EXT-X-MEDIA:")}).map(function(c){return Xk(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};
|
|
85
|
-
Xk=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.Xj(0,a);a=b(_.Yb);a=null!=a?{AUDIO:_.Gk,VIDEO:_.Hk,SUBTITLES:_.T}[a]:void 0;return{type:a,groupId:b(_.bb),name:b("NAME"),language:b(_.mb),
|
|
85
|
+
Xk=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.Xj(0,a);a=b(_.Yb);a=null!=a?{AUDIO:_.Gk,VIDEO:_.Hk,SUBTITLES:_.T}[a]:void 0;return{type:a,groupId:b(_.bb),name:b("NAME"),language:b(_.mb),Eo:b("AUTOSELECT"),"default":b("DEFAULT"),Po:b("FORCED"),jh:b("CHARACTERISTICS"),uri:b(_.$b)}};Vk=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.");};
|
|
86
86
|
Zk=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return c=_.dk(b),_.y(e,zk(a.f,c),2);d=e.f;return e["return"](d)})};Uk=function(a,b,c){var d,e,f,g;return _.I(function(h){if(1==h.a)return d=$k(b),e=al(b,c),f=d[0]?d[0].codec:null,_.y(h,bl(a,e,f),2);g=h.f;return h["return"]({mimeType:g,renditions:d})})};bl=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return b&&c?_.y(f,Zk(a,b),2):f["return"](null);d=f.f;e=[dl(d,b),el(d,b)].filter(Boolean);return f["return"](_.oj(e,_.r,c))})};
|
|
87
87
|
$k=function(a){return a.split("\n").filter(function(b){return b.trim().startsWith("#EXT-X-STREAM-INF:")}).map(function(b){var c=_.Xj(0,b);if(c.getAttribute(_.fc))throw Error("Playlist contains alternative video streams.");var d=_.qj(c,_.Nb);b=d?Number(d.split("x")[0]):null;d=d?Number(d.split("x")[1]):null;var e=_.qj(c,_.ma);e=e?Number(e):null;var f=_.qj(c,"AVERAGE-BANDWIDTH");f=f?Number(f):null;c=_.qj(c,_.ra);c=_.lj(_.r,c?c.split(","):[]);return{bandwidth:e,Bd:f,codec:c,width:b,height:d,mimeType:null}})};
|
|
88
88
|
al=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?Sk(c,b):null};dl=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?Sk(c,b):null};el=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.qj(_.Xj(0,c),_.$b))?Sk(c,b):null:null};
|
|
@@ -98,7 +98,7 @@ _.vk=function(){var a=Vl();var b=Vl();var c=Wl[b];if(c){c=Ml().match(c.os_versio
|
|
|
98
98
|
Yl=function(){this.g=new _.K("clpp.native.TrackManager");this.m=null;this.f=new _.Vh;this.h=[];this.B=0;this.o={};this.C=[];this.a=new Map;this.w=null;this.l=new Map;this.A=!0;this.J=this.ng.bind(this,_.T);this.L=this.pg.bind(this,_.T);this.K=this.og.bind(this,_.T);this.N=this.ng.bind(this,_.Hk);this.V=this.pg.bind(this,_.Hk);this.P=this.og.bind(this,_.Hk);this.G=this.ng.bind(this,_.Gk);this.I=this.pg.bind(this,_.Gk);this.H=this.og.bind(this,_.Gk);this.j=null};
|
|
99
99
|
$l=function(a,b){var c,d,e,f,g,h,l,m;return _.I(function(n){if(1==n.a){c=a.m.getConfiguration();d=_.gl(c,b.mimeType,_.og);if(!d)return a.g.warn("Track MIME type is not supported",b),n["return"]();e=_.dk(b.url);return _.y(n,a.m.getNetworkEngine().fetch(e).U,2)}(f=n.f)&&f.data&&(g="External_"+a.B++,a.o[g]=b,h=d.a(_.Ej(f.data)),l=URL.createObjectURL(new Blob([h])),m={url:l,kind:b.kind,language:b.language,label:b.label,mimeType:_.og},Zl(a,m,g));_.C(n)})};bm=function(a,b,c){return am(a)&&b===_.Hk&&!!c.enableHlsVideoTrackInfo};
|
|
100
100
|
cm=function(a,b,c){return am(a)&&(b===_.Gk||b===_.T)&&!!c.enableMetadata};am=function(a){a=a.m.getLoadedSource();return!(!a||a.type!==_.dm&&!a.url.endsWith(".m3u8"))&&_.Cl()};em=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return(d=a.m.getLoadedSource())&&a.j?_.y(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}));_.C(f)})};
|
|
101
|
-
fm=function(a,b,c){var d,e,f,g;return _.I(function(h){if(1==h.a)return(d=a.m.getLoadedSource())&&a.j?_.y(h,a.j.a(d.url,c),2):h["return"]();e=h.f;e.nd&&(f=b.type+":"+b.label,(g=e.nd.get(f))&&g.
|
|
101
|
+
fm=function(a,b,c){var d,e,f,g;return _.I(function(h){if(1==h.a)return(d=a.m.getLoadedSource())&&a.j?_.y(h,a.j.a(d.url,c),2):h["return"]();e=h.f;e.nd&&(f=b.type+":"+b.label,(g=e.nd.get(f))&&g.jh&&(b.accessibility=g.jh.split(",").map(function(l){return l.trim()}).map(function(l){return{value:l,type:b.type,protocol:"HLS"}})));_.C(h)})};
|
|
102
102
|
Zl=function(a,b,c){if(a.m){var d=a.m.getSurface().getMedia();if(d){var e=document.createElement("track");e.id=c;e.kind=b.kind;e.srclang=b.language;b.label&&(e.label=b.label);_.S.empty(b.url)?e.src=URL.createObjectURL(new Blob([])):e.src=b.url;d.appendChild(e);a.C.push(e)}}};gm=function(a,b){if(!a.m)return null;var c=a.m.getSurface();if(!c)return null;c=c.getMedia();if(!c)return null;switch(b){case _.Gk:return c.audioTracks;case _.Hk:return c.videoTracks;case _.T:return c.textTracks;default:return null}};
|
|
103
103
|
hm=function(a,b){var c=gm(a,b);c&&(c=Array.from(c),b===_.T&&(c=c.filter(function(d){return d.kind!==_.Qe})));return c};im=function(a,b){return a.h.filter(function(c){return c.type===b})};jm=function(a,b){var c=a.a.get(b)||null;return c&&c.renditions[0]};km=function(a,b){var c=a.l.get(b);return c&&c.renditions[0]};
|
|
104
104
|
om=function(a,b,c){var d=hm(a,b);if(c){if(void 0===a.h.find(function(l){return l.id===c.id}))throw Error("Unknown track with ID "+c.id+" and type "+b);if(c.type!==b)throw Error("Types mismatch for track "+c.type+" and arg "+b);a.g.debug("Activate track type "+b+" with ID: "+c.id);if(d){a.l.set(b,c);var e=!0,f=!1;switch(b){case _.T:var g="mode";e=_.Zf;f=_.Xd;break;case _.Gk:g="enabled";break;case _.Hk:g="selected"}if(g){d=_.w(d);for(var h=d.next();!h.done;h=d.next())h=h.value,h[g]=lm(c,h,c.type)?e:
|
|
@@ -120,10 +120,10 @@ if(!_.M.R(c.drm)){if(c.drm.env&&!_.M.ea(c.drm.env))throw new _.N(_.P,7,7100,"con
|
|
|
120
120
|
ym=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}};
|
|
121
121
|
Am=function(a){_.M.R(a.maxPixels)&&(a.maxPixels=Infinity);_.M.R(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.M.R(a.maxHeight)&&(a.maxHeight=Infinity);_.M.R(a.maxWidth)&&(a.maxWidth=Infinity);_.M.R(a.minPixels)&&(a.minPixels=0);_.M.R(a.minBandwidth)&&(a.minBandwidth=0);_.M.R(a.minHeight)&&(a.minHeight=0);_.M.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);
|
|
122
122
|
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 _.N(_.P,7,7100,"Restrictions contain NaN");};Cm=function(a){return typeof a===_.Xe&&!Array.isArray(a)&&"source"in a};
|
|
123
|
-
_.Dm=function(a){_.tm.call(this);this.log=new _.K(a);this.configuration=this.
|
|
123
|
+
_.Dm=function(a){_.tm.call(this);this.log=new _.K(a);this.configuration=this.eb=_.zm();this.$=this.C=null;this.de=this.Ag=!1;this.Vg=new _.K("clpp.video.events");this.Kd=null;this.Se=-1;this.mj=this.Dn.bind(this);this.wg=new _.yk;this.N=new _.Vh;this.vg=this.Pc=this.ed=this.V=null};_.Fm=function(a){return _.Em.get(a)||null};_.Hm=function(a){_.Em.get(a.id())?Gm.warn("Component already in use."):_.Em.set(a.id(),a)};
|
|
124
124
|
Im=function(a){return Array.from(_.Em.values()).find(function(b){return b instanceof a})||null};Jm=function(a){for(var b=_.w(_.Em.values()),c=b.next();!c.done;c=b.next())a(c.value)};Km=function(a){Jm(function(b){b.o(a)})};Lm=function(a){Jm(function(b){b.h(a)})};Mm=function(){Jm(function(){})};Nm=function(){Jm(function(){})};Om=function(a){if(null!==Im(a))return null;a=new a;a.f();_.Hm(a);Gm.info("Installed component:",a.id());return a};
|
|
125
125
|
Pm=function(a){if(a=Im(a))a.a(),_.Em["delete"](a.id()),Gm.info("Uninstalled component:",a.id())};Qm=function(){this.a=this.f=null;this.g=new _.K("clpp.drm.csl")};Rm=function(a,b){3===b.type&&(a.f&&(a.g.debug("Attaching tracking token"),b.headers[Wg]=a.f),a.a&&(b.headers[Xg]=a.a))};
|
|
126
|
-
Sm=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[Wg];a.a=b.headers[Xg];var c=b.headers["x-dt-csl-renewal-info"];a.f&&a.g.debug("Loaded tracking token "+a.f);a.a&&a.g.debug("Loaded followup token "+a.a);if(c)return c=JSON.parse(_.S.aa(_.Qj(c))),{delay:c.renewalPeriod,
|
|
126
|
+
Sm=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[Wg];a.a=b.headers[Xg];var c=b.headers["x-dt-csl-renewal-info"];a.f&&a.g.debug("Loaded tracking token "+a.f);a.a&&a.g.debug("Loaded followup token "+a.a);if(c)return c=JSON.parse(_.S.aa(_.Qj(c))),{delay:c.renewalPeriod,Ao:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};Tm=function(a){return _.S.startsWith(a,_.Jd)||_.S.startsWith(a,_.Nd)};_.Vm=function(a){_.Um[a.J]=a};
|
|
127
127
|
_.Xm=function(a){var b={attemptParameters:_.Zj(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,enableSessionCacheForSkd:!1,ignoreUnrecognizedInitData:!0,Na:{},widevineVersion:_.Pd};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!==
|
|
128
128
|
a.ignoreUnrecognizedInitData&&(b.ignoreUnrecognizedInitData=!!a.ignoreUnrecognizedInitData),typeof a.widevineVersion===_.ig&&0<a.widevineVersion.length&&(b.widevineVersion=a.widevineVersion),a.env)){var c=_.Um[a.env]||null;if(!c)throw _.Lh(_.ya,_.Kb+a.env+_.aa),new _.N(_.P,6,6015,_.za+a.env+"' is missing.");b.Na=_.Wm(c,a.customData)||{};_.S.startsWith(a.env.toLowerCase(),ke)&&(b.enforceSingleSession=!0)}return b};
|
|
129
129
|
Zm=function(a){a=Ym[a];if(!a)return null;var b=_.vk();return b.os===Pl&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.$m=function(a){this.J=a;this.f={}};
|
|
@@ -153,29 +153,29 @@ _.ko=function(a){function b(t){switch(t){case 0:do if(!_.en(d))throw Error("not
|
|
|
153
153
|
e=_.tn(e);var f=_.jn(d),g=f>>>24;f&=16777215;var h=_.nn(d,16);h=_.Sj(h);if(0<g){var l=_.jn(d);d.skip(16*l)}l=_.jn(d);for(var m=[],n=null;_.en(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=mn(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.Lh("Parsed WV PSSH Box","size",a,"name",e,Cg,g,"flags",f,"size",l,"systemId",h,"contentId (base64)",n?_.Oj(n):"","keyIds",m.map(function(t){return _.Sj(t)}));return 0<m.length?_.jo(_.Sj(m[0])):null};
|
|
154
154
|
_.lo=function(a,b,c,d,e,f){f=void 0===f?null:f;go.call(this,a,b,d);this.version=e;this.h=c;this.l=f};
|
|
155
155
|
_.xo=function(a){a:{var b=new _.dn(new DataView(a.buffer),!0);_.jn(b);for(_.hn(b);_.en(b);)if(1===_.hn(b)){var c=_.hn(b);b=_.nn(b,c);break a}b=null}b||(b=a);a=_.S.yc(b,!0);c=_.fo(a,"WRMHEADER");a=c.getAttribute(Cg);var d=_.co(c,"DATA");c=(c=_.co(d,"LA_URL"))?_.eo(c):"";var e;if(e=_.co(d,"KID"))if(e=_.eo(e)){var f=_.co(d,oa);e={value:e,Hf:f?f.textContent.trim():null}}else e=null;else e=null;d=e?[e]:(e=mo(d))?[e]:(d=no(d))?d:null;e=d&&d[0]||{};d=e.Hf;e=_.Qj(void 0===e.value?"":e.value);e=_.vo(e);e=
|
|
156
|
-
_.Sj(e);return new _.lo(_.wo,e,c,b,a,d)};_.vo=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=_.Ej(a);a.set(b,0);return a};mo=function(a){a=_.co(a,"PROTECTINFO");if(!a)return null;var b=_.co(a,"KID");if(!b)return null;a=b.getAttribute("VALUE");if(!a)return null;var c=b.getAttribute(oa);b=b.getAttribute("ALGID");return{value:a,Hf:c,
|
|
157
|
-
no=function(a){a=_.co(a,"PROTECTINFO");if(!a)return null;a=_.co(a,"KIDS");if(!a)return null;var b=_.bo(a,"KID");if(!b.length)return null;a=[];b=_.w(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;if(c=d.getAttribute("VALUE")){var e=d.getAttribute(oa);d=d.getAttribute("ALGID");a.push({value:c,Hf:e,
|
|
158
|
-
Bo=function(a){this.f=[];this.h=[];this.a=[];8<=a.byteLength&&(new _.on).
|
|
159
|
-
_.Fo=function(a){var b=this;this.D=a;this.J=new Set;this.B=this.I=this.l=null;this.
|
|
160
|
-
this.w=this.C=!1;this.P=null};
|
|
161
|
-
Ho=function(a){var b,c,d,e,f;return _.I(function(g){switch(g.a){case 1:a.A.release();a.A=null;a.N.release();a.N=null;a.w=!1;a.C=!1;a.H.reject();a.
|
|
162
|
-
if(2!=m.a)return _.rh(m,0);l=_.E(m);a.g.warn("Error while closing session",l);_.C(m)})})})),2);case 2:if(!a.B){g.F(3);break}_.D(g,4);return _.y(g,a.l.Fd(null),6);case 6:_.rh(g,5);break;case 4:f=_.E(g),a.g.warn("Error while resetting media keys",f);case 5:a.B=null;case 3:a.l=null,a.a=null,a.J.clear(),a.I=null,a.L=[],a.h=null,a.S=null,a.D=null,a.
|
|
156
|
+
_.Sj(e);return new _.lo(_.wo,e,c,b,a,d)};_.vo=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=_.Ej(a);a.set(b,0);return a};mo=function(a){a=_.co(a,"PROTECTINFO");if(!a)return null;var b=_.co(a,"KID");if(!b)return null;a=b.getAttribute("VALUE");if(!a)return null;var c=b.getAttribute(oa);b=b.getAttribute("ALGID");return{value:a,Hf:c,zj:b}};
|
|
157
|
+
no=function(a){a=_.co(a,"PROTECTINFO");if(!a)return null;a=_.co(a,"KIDS");if(!a)return null;var b=_.bo(a,"KID");if(!b.length)return null;a=[];b=_.w(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;if(c=d.getAttribute("VALUE")){var e=d.getAttribute(oa);d=d.getAttribute("ALGID");a.push({value:c,Hf:e,zj:d})}}return a.length?a:null};_.zo=function(a){yo&&performance.mark(a)};_.Ao=function(a,b,c){yo&&performance.measure(a,b,c)};
|
|
158
|
+
Bo=function(a){this.f=[];this.h=[];this.a=[];8<=a.byteLength&&(new _.on).Z("pssh",this.j.bind(this)).parse(a.buffer);0===this.a.length&&_.Gh("No pssh box found!")};
|
|
159
|
+
_.Fo=function(a){var b=this;this.D=a;this.J=new Set;this.B=this.I=this.l=null;this.ca=!1;this.a=null;this.K=Co;this.A=new _.Vh;this.N=new Qm;this.f=new Map;this.L=[];this.H=new _.lk;this.h=null;this.S=function(c){b.w=!0;b.C=!1;b.H.reject(c);a.onError(c)};this.o=new Map;this.ha=new Map;this.da=new _.vl(function(){return Do(b)});this.j=!1;this.Ba=new _.lk;this.G=!1;this.fa=[];this.eb=!1;this.Y=0;this.g=new _.K("clpp.drm.DrmEngine");this.wa=(new _.vl(function(){Eo(b)})).Bb(1);this.H["catch"](function(){});
|
|
160
|
+
this.w=this.C=!1;this.V=this.P=null};
|
|
161
|
+
Ho=function(a){var b,c,d,e,f;return _.I(function(g){switch(g.a){case 1:a.A.release();a.A=null;a.N.release();a.N=null;a.w=!1;a.C=!1;a.H.reject();a.wa.stop();a.wa=null;a.da.stop();a.da=null;b=Array.from(a.f.keys());c=_.w(a.f.values());for(d=c.next();!d.done;d=c.next())e=d.value,e.cd&&e.cd.stop();a.f.clear();return _.y(g,Promise.all(b.map(function(h){return Promise.resolve().then(function(){var l;return _.I(function(m){if(1==m.a)return a.g.debug("Closing session",h.sessionId),_.D(m,2),_.y(m,Go(h),4);
|
|
162
|
+
if(2!=m.a)return _.rh(m,0);l=_.E(m);a.g.warn("Error while closing session",l);_.C(m)})})})),2);case 2:if(!a.B){g.F(3);break}_.D(g,4);return _.y(g,a.l.Fd(null),6);case 6:_.rh(g,5);break;case 4:f=_.E(g),a.g.warn("Error while resetting media keys",f);case 5:a.B=null;case 3:a.l=null,a.a=null,a.J.clear(),a.I=null,a.L=[],a.h=null,a.S=null,a.D=null,a.Y=0,a.P=null,_.C(g)}})};
|
|
163
163
|
_.Ko=function(a,b,c){c=void 0===c?[]:c;a.K=Io;a.L=c;a.G=0<c.length;a.g.debug("Using Persisted Licenses: "+a.G);a.h&&a.h.enableSessionCacheForSkd&&a.g.info("Enabled session cache for SKD license requests");return _.Jo(a,b)};
|
|
164
|
-
Qo=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.M.
|
|
165
|
-
periodId:null})}if(e=Mo(a))for(f=_.w(b),d=f.next();!d.done;d=f.next())d.value.drmInfos=[e];d=No(b);Oo(a,d);d=_.w(d);for(e=d.next();!e.done;e=d.next())Po(e.value,a.h.Na);return c};_.Jo=function(a,b){var c=Qo(a,b),d=No(b);d=_.w(d);for(var e=d.next();!e.done;e=d.next())Ro(a,e.value,a.h.Na);d=So(a,b);if(!d.size)return a.
|
|
164
|
+
Qo=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.M.Wg(a.h.Na);Lo(b,d)}var e=a.h.Na[_.Jd];d=b.some(function(g){return g.drmInfos.some(function(h){return h.keySystem===_.Jd})});if(!1!==a.h.Do&&_.Cl()&&!d&&e){var f=_.w(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos.push({keySystem:_.Jd,licenseServerUri:e.licenseUrl,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:[],
|
|
165
|
+
periodId:null})}if(e=Mo(a))for(f=_.w(b),d=f.next();!d.done;d=f.next())d.value.drmInfos=[e];d=No(b);Oo(a,d);d=_.w(d);for(e=d.next();!e.done;e=d.next())Po(e.value,a.h.Na);return c};_.Jo=function(a,b){var c=Qo(a,b),d=No(b);d=_.w(d);for(var e=d.next();!e.done;e=d.next())Ro(a,e.value,a.h.Na);d=So(a,b);if(!d.size)return a.ca=!0,Promise.resolve();_.zo(ae);d=_.To(a,d);return(c?d:d["catch"](function(){})).then(function(){_.zo($d);_.Ao("DRM queryMediaKeys_()",ae,$d)})};
|
|
166
166
|
No=function(a){var b=[];a=_.w(a);for(var c=a.next();!c.done;c=a.next()){c=_.w(c.value.drmInfos);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};Oo=function(a,b){for(var c=_.w(b),d=c.next();!d.done;d=c.next())d=d.value,""===d.licenseServerUri||a.h.Na[d.keySystem]||(a.h.Na[d.keySystem]={licenseUrl:""})};
|
|
167
167
|
Uo=function(a){var b;return _.I(function(c){switch(c.a){case 1:if(a.l.Oe())return c["return"]();if(!a.P){c.F(2);break}return _.y(c,a.P,3);case 3:return c["return"]();case 2:return _.D(c,4),a.P=a.l.Fd(a.I),_.y(c,a.P,6);case 6:_.rh(c,0);break;case 4:b=_.E(c);if(a.j)return c["return"]();a.S(new _.N(_.P,6,6003,b.message,b));_.C(c)}})};
|
|
168
168
|
Wo=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Handle encrypted event for type "+b.initDataType),_.y(c,Uo(a),2);if(!b.initData)return c["return"]();_.Vo(a,b.initDataType,_.Ej(b.initData));_.C(c)})};
|
|
169
169
|
_.ap=function(a,b){if(!a.I)return Wh(a.A,b,function(){a.S(new _.N(_.P,6,6010))}),Promise.resolve();a.B=b;a.l.Fe(b);a.A.one(a.B,_.lf,function(){return Xo(a)});a.A.on(a.B,_.Pg,function(e){var f=a.C;a.C=!a.w;!f&&a.C&&(a.g.info("Waiting for DRM license key delivery"),a.D.onEvent(e))});var c=a.a.initData.find(function(e){return 0<e.initData.length}),d=Promise.resolve();if(c||a.l.Ed()!==Pb||a.L.length)d=Uo(a);c=Promise.resolve();_.uk()&&38===_.zl().major||(a.a&&a.a.keySystem!==_.ef&&!a.a.serverCertificate&&
|
|
170
|
-
(c=Yo(a)),c=c.then(function(){return _.Zo(a)}));return Promise.all([d,c]).then(function(){a.j||(_.$o(a),a.A.on(a.B,ne,function(e){return Wo(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.a&&a.a.keySystem===_.Pd&&1>a.
|
|
170
|
+
(c=Yo(a)),c=c.then(function(){return _.Zo(a)}));return Promise.all([d,c]).then(function(){a.j||(_.$o(a),a.A.on(a.B,ne,function(e){return Wo(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.a&&a.a.keySystem===_.Pd&&1>a.Y&&a.a.serverCertificate&&a.a.serverCertificate.length)return a.g.warn("Detected invalid widevine server certificate!. Retrying"),a.S(new _.N(1,6,6004)),a.a.serverCertificate=null,a.Y++,_.ap(a,b);1<=a.Y&&a.g.info("Could not get valid widevine server certificate. Giving up");
|
|
171
171
|
throw e;}})};_.Zo=function(a){var b,c;return _.I(function(d){if(1==d.a){if(!(a.I&&a.a&&a.a.serverCertificate&&a.a.serverCertificate.length))return d.F(0);_.D(d,3);return _.y(d,a.I.setServerCertificate(a.a.serverCertificate),5)}if(3!=d.a)return b=d.f,void 0===b||b||a.g.debug("Server certificates are not supported by the key system. The server certificate has been ignored."),_.rh(d,0);c=_.E(d);throw new _.N(_.P,6,6004,{browserError:c.message});})};
|
|
172
|
-
Yo=function(a){var b=a.keySystem(),c=a.h.Na[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.D.getConfiguration();return bp(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,h=f&&f.certificateResponse;f=_.dk([d],a.h.attemptParameters);f.type=3;f.licenseRequestType=td;g&&f.requestModifiers.push(function(l){return g(e,l)});h&&f.responseModifiers.push(function(l){return h(e,l)});a.g.debug("Fetching certificate");return a.D.
|
|
172
|
+
Yo=function(a){var b=a.keySystem(),c=a.h.Na[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.D.getConfiguration();return bp(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,h=f&&f.certificateResponse;f=_.dk([d],a.h.attemptParameters);f.type=3;f.licenseRequestType=td;g&&f.requestModifiers.push(function(l){return g(e,l)});h&&f.responseModifiers.push(function(l){return h(e,l)});a.g.debug("Fetching certificate");return a.D.ub.fetch(f).U}).then(function(f){a.a.serverCertificate=
|
|
173
173
|
_.Ej(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}:{},Xn(g));throw new _.N(_.P,6,6100,g,f);})};bp=function(a,b){var c,d;return _.I(function(e){c=a.D.gd();return c?(d=b&&b.drm&&b.drm.customData)?_.y(e,c(d),0):e["return"]():e["return"]()})};cp=function(a,b){if(!a)return!1;for(var c=0;c<b.Le.length;c++)if(_.Tj(a,b.Le[c]))return!0;return!1};
|
|
174
174
|
_.$o=function(a){for(var b=a.a?a.a.initData||[]:[],c=_.w(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=!_.tk(2);if(a.h.enforceSingleSession&&!a.keySystem().startsWith(_.Jd)){var f=a.f.values();f=_.w(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.Tj(d.initData,g.initData)?(a.g.info("Skipping Session creation. Existing init data in single session mode!"),e=!1):g.periodId===d.periodId&&(a.g.info("Skipping Session creation. Merging init data for period in single session mode for Key ID "+(d.keyId+
|
|
175
|
-
".")),cp(d.initData,g)||(g.Le.push(d.initData),d.keyId&&!g.
|
|
175
|
+
".")),cp(d.initData,g)||(g.Le.push(d.initData),d.keyId&&!g.nb.includes(d.keyId)&&g.nb.push(d.keyId),a.o.get(d.keyId)||a.o.set(d.keyId,gg)),e=!1)}!e||a.G&&a.K===Io||(_.dp(a,d.keyId,d.initData)&&(e=!1),e&&(a.g.info("Request new media key session on create"),ep(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.w(a.L);for(d=c.next();!d.done;d=c.next())_.fp(a,d.value);b.length||a.L.length||(a.w||a.g.info(Aa),a.w=!0,a.C=!1,a.H.resolve());return a.H};
|
|
176
176
|
_.Vo=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.G||a.K!==Io)){var e=a.keySystem();if(!e.startsWith(_.Jd)&&b===_.rd){var f=new Bo(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}}if(a.B.webkitCurrentPlaybackTargetIsWireless||
|
|
177
177
|
_.tk(2)||a.keySystem().startsWith(_.Jd)||!_.dp(a,d,c,!0))ep(a,d,null,b,c),a.D.onEvent(new _.L("drmpsshread"))}};
|
|
178
|
-
_.dp=function(a,b,c,d){d=void 0===d?!1:d;for(var e=_.w(a.f.keys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.f.get(f);if(_.Tj(c,g.initData))return b?g.
|
|
178
|
+
_.dp=function(a,b,c,d){d=void 0===d?!1:d;for(var e=_.w(a.f.keys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.f.get(f);if(_.Tj(c,g.initData))return b?g.nb.includes(b)?d&&a.g.info("Skipping Session creation. License for init data with Key ID "+(b+" was already requested in Session: '")+(f.sessionId+"'. ")):(g.nb.push(b),a.o.get(b)||a.o.set(b,gg),d&&a.g.info(Wb+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.g.info(Wb+(f.sessionId+"'")),!0;if(cp(c,g))return d&&a.g.info("Skipping Session creation. License for init data was already requested [extra]"),
|
|
179
179
|
!0}return!1};gp=function(a){var b=Infinity;a=a.f.keys();a=_.w(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};
|
|
180
180
|
So=function(a,b){var c=new Set(No(b)),d=a.G?_.Qf:_.df,e=a.G?[_.jf]:[ng],f=new Map,g=_.w(c);for(c=g.next();!c.done;c=g.next())c=c.value,f.set(c.keySystem,{initDataTypes:[_.rd],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.df,persistentState:d,sessionTypes:e,label:c.keySystem,drmInfos:[]});d={};e=_.w(b);for(c=e.next();!c.done;d={qf:d.qf,vd:d.vd,zf:d.zf,wd:d.wd},c=e.next()){c=c.value;g=c.audio;var h=c.video;d.qf=g?_.hp(g):"";d.vd=null;g&&"ac-3"===g.codecs.toLowerCase()&&_.tk()&&(d.vd=
|
|
181
181
|
_.hp(g,_.me));d.zf=h?_.hp(h):"";d.wd=null;h&&"ac-3"===h.codecs.toLowerCase()&&_.tk()&&(d.wd=_.hp(h,_.me));var l={},m=_.w(c.drmInfos);for(c=m.next();!c.done;l={cb:l.cb},c=m.next())c=c.value,l.cb=f.get(c.keySystem),l.cb.drmInfos.push(c),c.initData&&c.initData.length&&(l.cb.initDataTypes=_.dh(new Set(c.initData.map(function(n){return n.initDataType}))).concat()),c.distinctiveIdentifierRequired&&(l.cb.distinctiveIdentifier=_.Qf),c.persistentStateRequired&&(l.cb.persistentState=_.Qf),g&&_.yi(c.audioRobustness).forEach(function(n,
|
|
@@ -186,32 +186,32 @@ q+'".'),Promise.reject();var t=Object.assign({},n,{label:q,distinctiveIdentifier
|
|
|
186
186
|
if(1===b.size&&b.has(""))return Promise.reject(new _.N(_.P,6,6E3));null===a.l&&(a.l=ao(a.h.emeApi));for(var d=_.w(b.values()),e=d.next();!e.done;e=d.next())e=e.value,0===e.audioCapabilities.length&&delete e.audioCapabilities,0===e.videoCapabilities.length&&delete e.videoCapabilities;var f=d=new _.lk,g=a.h.preferredDrmSystem;if(!g)if(e=_.vk(),e.os===Rl&&10<=e.osVersion.major&&"edge"===e.browser)g=_.Nd;else if("safari"===e.browser)g=_.Jd;else if(e.browser===vd||"firefox"===e.browser)g=_.Pd;g&&(e=b.get(g))&&
|
|
187
187
|
(c(!0,e,g),c(!1,e,g));e={};for(var h=_.w([!0,!1]),l=h.next();!l.done;e={yf:e.yf},l=h.next())e.yf=l.value,b.forEach(function(m){return function(n,p){p!==g&&c(m.yf,n,p)}}(e));f=f["catch"](function(){throw new _.N(_.P,6,6001,"Failed to get MediaKeySystemAccess.");});f=f.then(function(m){if(a.j)return null;a.J.clear();var n=m.getConfiguration();a.g.info("Got MediaKeySystemAccess with configuration",n);var p=n.videoCapabilities||[],q=_.w(n.audioCapabilities||[]);for(n=q.next();!n.done;n=q.next())a.J.add(n.value.contentType.toLowerCase());
|
|
188
188
|
p=_.w(p);for(n=p.next();!n.done;n=p.next())a.J.add(n.value.contentType.toLowerCase());p=m.keySystem;n=b.get(_.kp(m.keySystem));q=[];var t=[],v=[],z=[];lp(n.drmInfos,q,t,v,z);1<t.length&&_.Gh("Multiple unique server certificates found! Only the first will be used.");1<q.length&&_.Gh("Multiple unique license server URIs found! Only the first will be used.");a.a={keySystem:p,licenseServerUri:q[0],distinctiveIdentifierRequired:n.distinctiveIdentifier===_.Qf,persistentStateRequired:n.persistentState===
|
|
189
|
-
_.Qf,audioRobustness:n.audioCapabilities?n.audioCapabilities[0].robustness:"",videoRobustness:n.videoCapabilities?n.videoCapabilities[0].robustness:"",serverCertificate:t[0],initData:v,keyIds:z,periodId:null};if(!a.a.licenseServerUri)throw new _.N(_.P,6,6012,a.a.keySystem);return m.createMediaKeys()}).then(function(m){a.j||(a.g.info("Created MediaKeys for key system",a.a.keySystem),a.I=m,a.
|
|
190
|
-
{browserError:m.message});}});d.reject();return f};
|
|
191
|
-
Mo=function(a){a=_.M.
|
|
189
|
+
_.Qf,audioRobustness:n.audioCapabilities?n.audioCapabilities[0].robustness:"",videoRobustness:n.videoCapabilities?n.videoCapabilities[0].robustness:"",serverCertificate:t[0],initData:v,keyIds:z,periodId:null};if(!a.a.licenseServerUri)throw new _.N(_.P,6,6012,a.a.keySystem);return m.createMediaKeys()}).then(function(m){a.j||(a.g.info("Created MediaKeys for key system",a.a.keySystem),a.I=m,a.ca=!0)})["catch"](function(m){if(!a.j){a.a=null;a.J.clear();if(m instanceof _.N)throw m;throw new _.N(_.P,6,
|
|
190
|
+
6002,{browserError:m.message});}});d.reject();return f};
|
|
191
|
+
Mo=function(a){a=_.M.Wg(a.h.Na[_.ef]||{});if(0===a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.Rj(f),h=_.Rj(e);g={kty:"oct",kid:_.Pj(g,!1),k:_.Pj(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.S.bb(d),initDataType:"keyids"}];return{keySystem:_.ef,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
|
|
192
192
|
initData:d,keyIds:[],periodId:null}};
|
|
193
|
-
_.fp=function(a,b){try{a.g.debug("Attempting to load an offline session",b);var c=a.I.createSession(_.jf)}catch(f){var d=new _.N(_.P,6,6005,{browserError:f.message});a.S(d);return Promise.reject(d)}a.A.on(c,_.Pe,a.
|
|
194
|
-
a.g.debug("Loaded offline session",b,f);if(!f)return a.f["delete"](c),a.S(new _.N(_.P,6,6013)),null;e.loaded=!0;mp(a)&&(a.w||a.g.info(Aa),a.w=!0,a.C=!1,a.H.resolve());return c},function(f){a.j||(a.f["delete"](c),a.S(new _.N(_.P,6,6005,{browserError:f.message})))})};np=function(a,b,c,d){if(!b&&c!==_.bg)return!1;d=b||yn(d);a=_.w(a.f.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||b&&e.
|
|
193
|
+
_.fp=function(a,b){try{a.g.debug("Attempting to load an offline session",b);var c=a.I.createSession(_.jf)}catch(f){var d=new _.N(_.P,6,6005,{browserError:f.message});a.S(d);return Promise.reject(d)}a.A.on(c,_.Pe,a.Mi.bind(a));a.A.on(c,Ae,a.Hi.bind(a));var e={initData:null,loaded:!1,fg:Infinity,Nb:null,Ua:new _.lk,periodId:null,Le:[],keyId:null,nb:[],initDataType:null,wc:null,ne:null,sessionContext:{ldlDelay:0,customData:{}}};e.Ua["catch"](function(){});a.f.set(c,e);return c.load(b).then(function(f){if(a.j)return null;
|
|
194
|
+
a.g.debug("Loaded offline session",b,f);if(!f)return a.f["delete"](c),a.S(new _.N(_.P,6,6013)),null;e.loaded=!0;mp(a)&&(a.w||a.g.info(Aa),a.w=!0,a.C=!1,a.H.resolve());return c},function(f){a.j||(a.f["delete"](c),a.S(new _.N(_.P,6,6005,{browserError:f.message})))})};np=function(a,b,c,d){if(!b&&c!==_.bg)return!1;d=b||yn(d);a=_.w(a.f.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||b&&e.nb.includes(b)||c===_.bg&&(e.keyId||yn(e.initData))===d)return!0;return!1};
|
|
195
195
|
ep=function(a,b,c,d,e,f,g){f=void 0===f?null:f;g=void 0===g?!1:g;var h,l,m,n,p,q,t,v,z,A,F,G,B,H,O,U,X,R,qa,Ca,fb;_.I(function(Wa){switch(Wa.a){case 1:if(!e.length)return a.g.warn("Empty init data"),Wa["return"]();h=b;if(!h)try{h=op(a,d,e,f)}catch(Ma){if(a.g.warn("Ignoring unrecognized init data. This may be caused by unsupported or malformed init data. Set `drm.ignoreUnrecognizedInitData \x3d false` if you want to override this behavior and use the init data after all.",{error:Ma,initDataType:d,
|
|
196
196
|
initData:e}),a.h.ignoreUnrecognizedInitData)return Wa["return"]()}if(g){Wa.F(2);break}if(!np(a,h,d,e)){Wa.F(2);break}l=!0;if("skd"!==d||a.h.enableSessionCacheForSkd){Wa.F(4);break}m=_.w(a.f.keys());n=m.next();case 5:if(n.done){Wa.F(4);break}p=n.value;q=a.f.get(p);if(!h||q.keyId!==h){Wa.F(6);break}a.g.warn("Close and re-open session for "+h);_.D(Wa,9);return _.y(Wa,p.close(),11);case 11:_.rh(Wa,10);break;case 9:t=_.E(Wa),a.g.warn("Unable to close session",t);case 10:l=!1;case 6:n=m.next();Wa.F(5);
|
|
197
|
-
break;case 4:if(l)return a.g.warn("Skip creating a new session for "+h),Wa["return"]();case 2:try{z=a.G?_.jf:ng,v=a.I.createSession(z),a.g.info("Created new "+z+" session for Key ID: '"+h+"'. Init data type: "+(d+"."))}catch(Ma){return a.S(new _.N(_.P,6,6005,{browserError:Ma.message})),Wa["return"]()}a.A.on(v,_.Pe,a.
|
|
198
|
-
customData:{}}};A.Ua["catch"](function(){});f&&(F=a.f.get(f),A.sessionContext=F.sessionContext);a.f.set(v,A);h&&!a.o.get(h)&&a.o.set(h,gg);if(e)for(G=0;G<a.a.initData.length;G++)B=a.a.initData[G],B.keyId&&!A.
|
|
197
|
+
break;case 4:if(l)return a.g.warn("Skip creating a new session for "+h),Wa["return"]();case 2:try{z=a.G?_.jf:ng,v=a.I.createSession(z),a.g.info("Created new "+z+" session for Key ID: '"+h+"'. Init data type: "+(d+"."))}catch(Ma){return a.S(new _.N(_.P,6,6005,{browserError:Ma.message})),Wa["return"]()}a.A.on(v,_.Pe,a.Mi.bind(a));a.A.on(v,Ae,a.Hi.bind(a));A={wc:f,Le:[],initData:e,initDataType:d,keyId:h,nb:h?[h]:[],loaded:!1,fg:Infinity,periodId:c,Nb:null,Ua:new _.lk,ne:null,sessionContext:{ldlDelay:0,
|
|
198
|
+
customData:{}}};A.Ua["catch"](function(){});f&&(F=a.f.get(f),A.sessionContext=F.sessionContext);a.f.set(v,A);h&&!a.o.get(h)&&a.o.set(h,gg);if(e)for(G=0;G<a.a.initData.length;G++)B=a.a.initData[G],B.keyId&&!A.nb.includes(B.keyId)&&_.Tj(B.initData,e)&&(A.keyId||(A.keyId=B.keyId),A.nb.push(B.keyId),a.o.get(B.keyId)||a.o.set(B.keyId,gg));H=_.M;O=H.Lb;U=a.D.getConfiguration();X=a.keySystem();R=a.h.Na[X];Ca=(qa=R.modifiers)&&qa.transformInitData;O(Ca)||(Ca=pp);try{e=Ca({playerConfig:U,initData:e,initDataType:d,
|
|
199
199
|
drmInfo:a.a,drmSystemConfig:R,sessionContext:A.sessionContext,emeApi:a.l.Ed()})}catch(Ma){return fb=Ma,Ma instanceof _.N||(fb=new _.N(_.P,6,6016,Ma)),A.Ua&&A.Ua.reject(Ma),a.S(fb),Wa["return"]()}a.g.info("Generate License Request for key ID: '"+h+"'");v.generateRequest(d,e.buffer)["catch"](function(Ma){if(!a.j){var wb=null;Ma.errorCode&&Ma.errorCode.systemCode&&(wb=Ma.errorCode.systemCode,0>wb&&(wb+=Math.pow(2,32)),wb="0x"+wb.toString(16));a.S(new _.N(_.P,6,6006,{browserError:Ma.message,error:Ma,
|
|
200
200
|
extended:wb},Ma))}});_.C(Wa)}})};
|
|
201
|
-
op=function(a,b,c,d){d=void 0===d?null:d;if("skd"===b){a:{var e=d;e=void 0===e?null:e;var f=a.keySystem(),g=a.h.Na[f];f=a.D.getConfiguration();g=g&&g.modifiers&&g.modifiers.extractContentId;_.M.
|
|
201
|
+
op=function(a,b,c,d){d=void 0===d?null:d;if("skd"===b){a:{var e=d;e=void 0===e?null:e;var f=a.keySystem(),g=a.h.Na[f];f=a.D.getConfiguration();g=g&&g.modifiers&&g.modifiers.extractContentId;_.M.Lb(g)||(g=qp);try{var h={ldlDelay:0,customData:{}};e&&(h=a.f.get(e).sessionContext);var l=g(f,c,h);a.g.debug("Extracted Content ID '"+l+"' from SKD");var m=l;break a}catch(G){a.g.warn("Unable to extract Content ID from SKD",G)}m=""}return m}if(b===_.bg)return yn(c)||"";if(b===_.rd){m=a.keySystem();try{if(m.match(/^com\.widevine\.alpha/)){var n=
|
|
202
202
|
_.ko(c);if(n)return n.a}else if(rp(m)){e=new _.dn(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);f=_.jn(e);var p=_.jn(e);g=_.tn(p);var q=_.jn(e);c=q>>>24;l=q&16777215;h=_.nn(e,16);var t=_.Sj(h);if(0<c){var v=_.jn(e);e.skip(16*v)}var z=_.jn(e),A=_.nn(e,z),F=_.xo(A);_.Lh("Parsed PR PSSH Box","size",f,"name",g,Cg,c,"flags",l,"size",z,"systemId",t,"keyId",F.a);if(F)return F.a}}catch(G){throw a.g.warn("Unable to extract Key ID from PSSH data.",{error:G,keySystem:m}),G;}}return""};
|
|
203
203
|
qp=function(a,b){var c=_.xn(b);_.Lh("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
|
|
204
|
-
pp=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=_.M.
|
|
204
|
+
pp=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=_.M.Lb;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=qp);a="";try{a=e(b,c,f)}catch(h){throw new _.N(_.P,6,6103);}if(!a.length)throw new _.N(_.P,6,6101,"Content ID is an empty string");c=zn(c,a,d)}return c};
|
|
205
205
|
wp=function(a,b){var c=b.target,d=a.f.get(c),e=a.keySystem(),f=!1;e.match(/^com\.widevine\.alpha/)&&b.message&&2===b.message.byteLength?(f=!0,a.g.info("WV Server certificate request for SID:'"+(c.sessionId+" from msg '")+(b.messageType+"'"))):a.g.info("License request for SID:'"+(c.sessionId+"'/KID:'"+d.keyId+"' from msg '")+(b.messageType+"'"));var g=a.a.licenseServerUri;e=a.h.Na[e];"individualization-request"===b.messageType&&e&&e.individualizationServer&&(g=e.individualizationServer);var h=_.dk([g],
|
|
206
|
-
a.h.attemptParameters);h.type=3;h.body=b.message;h.method=_.Eb;h.licenseRequestType=b.messageType===De&&d.wc?Ce:f?td:b.messageType;h.sessionId=c.sessionId;if(h.licenseRequestType===Ce)a.D.onEvent(new _.L(ge));rp(a.a.keySystem)&&sp(a,h);Rm(a.N,h);var l=Math.floor(b.timeStamp),m=Date.now();return tp(a,h,d.sessionContext).then(function(){_.zo(Zd+l+fa);a.g.debug("Sending DRM license request to",g,h);
|
|
207
|
-
l+".end");_.Ao(Zd+l,Zd+l+fa,Zd+l+".end");if(a.j)return Promise.reject();var p=Date.now()-m,q=vp(a,n,"ti"),t="";q&&(t=" RID:"+q);a.D.onEvent(new _.L(fe));d.ne||(d.ne=Number(vp(a,n,"rpd")));q=n&&n.data?n.data.byteLength:-1;f?a.g.info("WV Server certificate response for SID:'"+(c.sessionId+"' ")+(q+" bytes in ")+(p+"ms"+t)):a.g.info("License response for SID:'"+(c.sessionId+"'/KID:'")+(d.keyId+"' ")+(q+" bytes in ")+(p+"ms"+t));var v=Sm(a.N,n);_.zo(de+l+fa);return c.update(n.data).then(function(){_.zo(de+
|
|
208
|
-
l+".end");_.Ao(de+l,de+l+fa,de+l+".end");if(!f){var z=gp(a),A=v?Date.now()+1E3*v.delay:Number.NaN;z=new _.L(_.ie,{keySystem:a.keySystem(),expirationTime:z,expectedRenewalTime:A});a.D.onEvent(z);d&&(d.
|
|
206
|
+
a.h.attemptParameters);h.type=3;h.body=b.message;h.method=_.Eb;h.licenseRequestType=b.messageType===De&&d.wc?Ce:f?td:b.messageType;h.sessionId=c.sessionId;if(h.licenseRequestType===Ce)a.D.onEvent(new _.L(ge));rp(a.a.keySystem)&&sp(a,h);Rm(a.N,h);var l=Math.floor(b.timeStamp),m=Date.now();return tp(a,h,d.sessionContext).then(function(){_.zo(Zd+l+fa);a.g.debug("Sending DRM license request to",g,h);a.V=up(a);return a.V?new Promise(function(n){setTimeout(function(){n(a.D.ub.fetch(h).U)},a.V||0)}):a.D.ub.fetch(h).U}).then(function(n){_.zo(Zd+
|
|
207
|
+
l+".end");_.Ao(Zd+l,Zd+l+fa,Zd+l+".end");if(a.j)return Promise.reject();var p=Date.now()-m,q=vp(a,n,"ti"),t="";q&&(t=" RID:"+q);a.D.onEvent(new _.L(fe,{delay:a.V}));d.ne||(d.ne=Number(vp(a,n,"rpd")));q=n&&n.data?n.data.byteLength:-1;f?a.g.info("WV Server certificate response for SID:'"+(c.sessionId+"' ")+(q+" bytes in ")+(p+"ms"+t)):a.g.info("License response for SID:'"+(c.sessionId+"'/KID:'")+(d.keyId+"' ")+(q+" bytes in ")+(p+"ms"+t));var v=Sm(a.N,n);_.zo(de+l+fa);return c.update(n.data).then(function(){_.zo(de+
|
|
208
|
+
l+".end");_.Ao(de+l,de+l+fa,de+l+".end");if(!f){var z=gp(a),A=v?Date.now()+1E3*v.delay:Number.NaN;z=new _.L(_.ie,{keySystem:a.keySystem(),expirationTime:z,expectedRenewalTime:A});a.D.onEvent(z);d&&(d.Nb&&d.Nb.resolve(),d.wc&&(z=d.wc,a.g.info("Closing expired session '"+z.sessionId+"'"),Go(z)["catch"](function(){a.g.warn("Unable to close expired session in time")}),(z=a.f.get(d.wc))&&z.cd&&z.cd.stop(),a.f["delete"](d.wc),d.wc=null),(new _.vl(function(){a.j||(d.loaded=!0,d.Ua&&d.Ua.resolve(),mp(a)&&
|
|
209
209
|
(a.w||a.g.info(Aa),a.w=!0,a.C=!1,a.H.resolve()))})).ba(5),null!==d.initData&&(0<d.sessionContext.ldlDelay||v&&Tm(a.keySystem()))&&(z=new _.vl(function(){!a.j&&a.N&&(a.g.info("Updating CSL Sessions"),rp(a.keySystem())?ep(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):a.keySystem().startsWith(_.Jd)&&c.update(_.S.bb("renew")))}),d.cd=z,z.ba(v?v.delay:d.sessionContext.ldlDelay)))}})},function(n){var p,q,t,v;return _.I(function(z){if(a.j)return z["return"]();p=n.data.headers;q=Xn(p);t=Object.assign({message:_.Za,
|
|
210
|
-
url:n.data.url,status:n.data.status,response:n.data.response},p?{headers:p}:{},q);v=new _.N(_.P,6,6007,t,n);a.S(v);d&&d.
|
|
210
|
+
url:n.data.url,status:n.data.status,response:n.data.response},p?{headers:p}:{},q);v=new _.N(_.P,6,6007,t,n);a.S(v);d&&d.Nb&&d.Nb.reject(v);d&&d.Ua&&d.Ua.reject(v);_.C(z)})})["catch"](function(n){a.j||(n===Tb?a.g.info("Ignore update for closed sessions"):(n=new _.N(_.P,6,6008,{browserError:n.message}),a.S(n),d&&d.Nb&&d.Nb.reject(n),d&&d.Ua&&d.Ua.reject(n)))})};
|
|
211
211
|
up=function(a){if(2>a.f.size)return null;var b=null;a=_.w(a.f.values());for(var c=a.next();!c.done;c=a.next())c=c.value,null!=c.ne&&(b=c.ne);return b};vp=function(a,b,c){if(!b||!b.headers)return"";if(b=b.headers["x-dt-li"])try{return JSON.parse(_.S.aa(_.Qj(b)))[c]}catch(d){a.g.warn("Unable to parse DRMtoday License Info header",d)}return""};
|
|
212
212
|
sp=function(a,b){var c=_.S.yc(b.body,!0,!0);if(c.includes("PlayReadyKeyMessage")){a.g.debug("Unwrapping PlayReady request.");c=(new DOMParser).parseFromString(c,"application/xml");for(var d=c.getElementsByTagName("HttpHeader"),e=0;e<d.length;++e)b.headers[d[e].querySelector("name").textContent]=d[e].querySelector(_.Bg).textContent;b.body=_.Qj(c.querySelector("Challenge").textContent).buffer}else a.g.debug("PlayReady request is already unwrapped."),b.headers[xa]="text/xml; charset\x3dutf-8"};
|
|
213
213
|
tp=function(a,b,c){var d,e,f,g,h,l;return _.I(function(m){if(1==m.a)return d=a.D.getConfiguration(),_.y(m,bp(a,d),2);e=a.keySystem();h=(g=(f=a.h.Na[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;h?b.requestModifiers.push(function(n){return h(d,n,c)}):e.startsWith(_.Jd)&&b.requestModifiers.push(function(n){return _.An(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Jd)&&b.responseModifiers.push(function(n){return _.Bn(n)});_.C(m)})};
|
|
214
|
-
Do=function(a){var b=a.o,c=a.
|
|
214
|
+
Do=function(a){var b=a.o,c=a.ha;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.S(new _.N(_.P,6,6014));a.D.kg(_.M.Xg(c));a.w||a.g.info(Aa);a.w=!0;a.C=!1};Xo=function(a){var b;return _.I(function(c){if(1==c.a)return _.zo(ce),b=a.fa.map(function(d){return wp(a,d)}),a.eb=!0,a.fa=[],_.y(c,Promise.all(b),2);_.zo(be);_.Ao("drm.onPlay",ce,be);_.C(c)})};rp=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};
|
|
215
215
|
_.kp=function(a){return rp(a)?_.Nd:a};_.yp=function(a,b){return a.length&&b.length?0<_.xp(a,b).length:!0};
|
|
216
216
|
_.xp=function(a,b){if(!a.length)return b;if(!b.length)return a;for(var c=[],d=0;d<a.length;d++)for(var e={},f=0;f<b.length;e={xd:e.xd},f++)if(a[d].keySystem===b[f].keySystem&&a[d].periodId===b[f].periodId){var g=a[d];f=b[f];var h=[];h=h.concat(g.initData||[]);h=h.concat(f.initData||[]);e.xd=_.dh(g.keyIds||[]).concat();f.keyIds&&f.keyIds.length&&f.keyIds.forEach(function(l){return function(m){l.xd.includes(m)||l.xd.push(m)}}(e));c.push({keySystem:g.keySystem,licenseServerUri:g.licenseServerUri||f.licenseServerUri,
|
|
217
217
|
distinctiveIdentifierRequired:g.distinctiveIdentifierRequired||f.distinctiveIdentifierRequired,persistentStateRequired:g.persistentStateRequired||f.persistentStateRequired,videoRobustness:g.videoRobustness||f.videoRobustness,audioRobustness:g.audioRobustness||f.audioRobustness,serverCertificate:g.serverCertificate||f.serverCertificate,initData:h,keyIds:e.xd,periodId:g.periodId});break}return c};
|
|
@@ -224,7 +224,7 @@ Ro=function(a,b,c){var d=_.kp(b.keySystem);c=c[d];d===_.ef&&b.licenseServerUri?a
|
|
|
224
224
|
Po=function(a,b){var c=b[_.kp(a.keySystem)];a.keyIds||(a.keyIds=[]);c&&(a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.videoRobustness||(a.videoRobustness=c.videoRobustness||""),a.audioRobustness||(a.audioRobustness=c.audioRobustness||""),a.serverCertificate||(a.serverCertificate=c.serverCertificate||null))};
|
|
225
225
|
Go=function(a){var b,c;return _.I(function(d){if(1==d.a)return b=new Promise(function(e){(new _.vl(e)).ba(1)}),_.y(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.Gh("Timeout waiting for session close");_.C(d)})};_.Cp=function(a,b){a&&b&&(_.Ap.set(a,b),_.Bp.info("Registered TextDisplayerFactory: '"+a+"'"))};
|
|
226
226
|
_.Dp=function(a,b){var c=b.find(function(d){return(d=_.Ap.get(d))?d.a(a):!1});if(null==c)return _.Bp.warn("Subtitles may not work as expected. No compatible text displayer found for this platform."),null;_.Bp.info("Chosen the text displayer: "+c);return _.Ap.get(c)};Ep=function(){this.a=null;this.f=[]};_.Fp=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})}};
|
|
227
|
-
Gp=function(a,b){var c=0;a.a&&a.a.state===b&&(c+=a.a.duration);for(var d=_.w(a.f),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state===b?e.duration:0;return c};Hp=function(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=_.w(a.f),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.a&&c.push(b(a.a));return c};Ip=function(){this.h=this.f=this.j=null;this.a=[]};Jp=function(a){return a.a.map(function(b){return _.M.
|
|
227
|
+
Gp=function(a,b){var c=0;a.a&&a.a.state===b&&(c+=a.a.duration);for(var d=_.w(a.f),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state===b?e.duration:0;return c};Hp=function(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=_.w(a.f),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.a&&c.push(b(a.a));return c};Ip=function(){this.h=this.f=this.j=null;this.a=[]};Jp=function(a){return a.a.map(function(b){return _.M.fb(b)})};
|
|
228
228
|
_.Kp=function(){this.f=this.o=this.A=this.C=this.j=this.l=this.h=this.w=NaN;this.a=new Ep;this.B=new Ip};_.Lp=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:[]}};_.Mp=function(a){this.f=a;this.a=void 0};Op=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Np.value().get(b),c.one(a,b,d))};
|
|
229
229
|
Sp=function(a){this.g=new _.K("clpp.StateManager");this.m=a;this.a=new _.Vh;this.f=_.Pp;this.A=_.Qp;this.I=0;this.w=-1;this.L=this.o=this.J=this.B=0;this.j=this.h=this.G=!1;this.H=0;this.l=null;this.K=0;this.N=_.Cl();this.C=!1;this.J=Date.now();Rp(this)};Tp=function(a,b){return Object.keys(b)[a]};
|
|
230
230
|
Vp=function(a,b){var c={type:_.fg};b===_.kd||b===_.jd?(c.reason=a.w,b===_.kd?c.timeSinceLastStateChangeMS=a.I:c.bufferedTimeMS=a.B):(a.f===_.Up&&(c.reason=a.w),a.A===_.Up&&(c.reason=a.w,c.bufferedTimeMS=a.B),c.currentState=a.f,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.I);return c};
|
|
@@ -237,10 +237,10 @@ _.gq=function(a){var b;Cm(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter
|
|
|
237
237
|
fq=function(a){var b=null;_.M.ea(a)&&(a={url:a});typeof a===_.Xe&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.M.R(a.drmProtected)||typeof a.drmProtected!==_.id||(b.drmProtected=a.drmProtected),_.M.R(a.isLive)||typeof a.isLive!==_.id||(b.isLive=a.isLive),_.M.R(a.name)||typeof a.name!==_.ig||(b.name=a.name),_.M.R(a.cc)||typeof a.cc!==_.ig||(b.cc=a.cc),_.M.R(a.audioMimeType)||typeof a.audioMimeType!==_.ig||(b.audioMimeType=a.audioMimeType));b&&!b.type&&(b.type=eq(a.url),b.type?
|
|
238
238
|
hq.debug("Detect media type "+b.type+" for "+a.url):hq.warn("Unable to detect media type for "+a.url));return b};iq=function(){_.Dm.call(this,Dd);this.w=this.H=!1;this.l=this.A=this.o=this.a=this.j=null;this.h=new _.Vh;this.G=this.B=this.f=this.I=null};
|
|
239
239
|
lq=function(a,b){return a.w?jq():new Promise(function(c){a.a||(a.h.on(b,_.qe,function(){var d=kq(a);if(d)a.onError(d)}),a.h.on(b,_.Rf,function(){var d=b.videoWidth,e=b.videoHeight,f=a.getTrackManager();f&&0<d&&0<e&&(f.w={width:d,height:e});a.trigger(new _.L(_.hd,{detail:{width:d,height:e}}))}),a.a=b);c()})};mq=function(a){return a.w?jq():new Promise(function(b){if(a.a){var c=a.a;a.h.off(c,_.qe);a.h.off(c,_.Rf);a.a=null}b()})};
|
|
240
|
-
oq=function(a){var b,c,d,e,f;return _.I(function(g){if(1==g.a){if(a.w)return g["return"](jq());b=a.$[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=_.nq;d=_.Xm(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.o=new _.Fo({
|
|
240
|
+
oq=function(a){var b,c,d,e,f;return _.I(function(g){if(1==g.a){if(a.w)return g["return"](jq());b=a.$[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=_.nq;d=_.Xm(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.o=new _.Fo({ub:e,onError:function(h){return a.onError(h)},kg:function(){},jg:function(h,l){a.trigger(new _.L(_.ee,{expirationTime:l}))},
|
|
241
241
|
onEvent:function(h){h instanceof _.L?a.dispatchEvent(h):a.log.debug(_.bc,h.type)},getConfiguration:function(){return a.getConfiguration()},gd:function(){return a.gd()}});a.o.h=d;f={id:0,language:_.ug,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,Ga:0,mimeType:_.Ig,
|
|
242
|
-
codecs:"",encrypted:!0,keyId:null,language:_.ug,originalLanguage:_.ug,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,
|
|
243
|
-
pq=function(a,b){Op(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){a.getState()!==_.$p&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};kq=function(a){if(null===a.$||!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 _.N(_.P,3,3016,{code:b,
|
|
242
|
+
codecs:"",encrypted:!0,keyId:null,language:_.ug,originalLanguage:_.ug,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,Uo:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,spatialAudio:!1,Bo:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.y(g,_.Ko(a.o,[f]),2)}return 3!=g.a?_.y(g,_.ap(a.o,a.a),3):g["return"](Promise.resolve())})};
|
|
243
|
+
pq=function(a,b){Op(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){a.getState()!==_.$p&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};kq=function(a){if(null===a.$||!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 _.N(_.P,3,3016,{code:b,No:c,message:a.a.error.message})};jq=function(){return Promise.reject(new _.N(_.P,7,7E3))};
|
|
244
244
|
qq=function(a){if(a.w)return new _.mk(jq(),function(){});var b=a.$[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.I;c&&pq(a,c);if(d.preload!==_.We)a.h.one(d,_.Je,function(){var g=Date.now()/1E3-e;a.f.A=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.tk()||_.uk())&&d.load();var f=new _.lk;a.h.one(d,dg,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.B||(a.B=(new _.vl(function(){f.reject(new _.N(_.P,3,3100,{message:"Unable to load media source successfully from "+
|
|
245
245
|
b.url,uri:b.url},d.error))})).ba(g))});Op(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.h,function(){return f.resolve()});d.error?f.reject(kq(a)):d.preload===_.We&&(a.log.warn('With \x3cvideo preload\x3d"none"\x3e, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way. Please do not use preload\x3d"none" with PRESTOplay for Web Apps.'),f.resolve());a.h.one(d,_.qe,function(){f.reject(kq(a))});
|
|
246
246
|
return new _.mk(f,function(){var g=new _.N(_.P,7,7001);f.reject(g);return Promise.resolve()})};
|
|
@@ -253,98 +253,98 @@ Mq=function(a,b){this.g=new _.K("clpp.PlayerSurface");this.w=_.M.ra(Jq,b);this.f
|
|
|
253
253
|
HTMLMediaElement))throw new _.N(_.P,7,7005,"Media element is not instance of HTMLMediaElement");if(!c.hasAttribute("crossorigin")){var e=d.crossorigin;this.g.info("Setting media elements crossorigin to "+e);c.setAttribute("crossorigin",e)}this.f.set(c);if(d.disableContainer)e=null;else if(d.containerEl){if(c.parentNode!==d.containerEl)throw new _.N(_.P,7,7006,"Container element is not a direct parent of media element");e=d.containerEl}else{e=document.createElement(_.Yd);c.parentNode?c.parentNode.replaceChild(e,
|
|
254
254
|
c):this.g.warn("Player Surface Element has no parent. Can not inject container. You have to manually add playerSurface.getContainer() to the DOM!");for(var f=[],g=0;g<c.classList.length;g++)f.push(c.classList[g]);f=_.w(f);for(g=f.next();!g.done;g=f.next())g=g.value,c.classList.remove(g),_.Dq(e,g);e.style.cssText=c.style.cssText;c.removeAttribute(_.kg);f=_.w([_.Vg,_.ve]);for(g=f.next();!g.done;g=f.next()){g=g.value;var h=c.getAttribute(g);h=parseInt(h,10);isNaN(h)||(e.style[g]=h+_.Lf);_.tk()||c.removeAttribute(g)}e.appendChild(c)}e&&
|
|
255
255
|
(this.a.set(e),Hq(this.a,"clpp-container"),Hq(this.a,this.o),Hq(this.f,_.wd),Hq(this.f,"clpp-video"));d.webOSStartupPatch&&Lq(this,c,e)}};Lq=function(a,b,c){(_.uk()&&53===_.zl().major||_.uk()&&68===_.zl().major||_.Al())&&!b.hasAttribute(Td)&&(b.style.opacity="0",b.setAttribute(Td,""),a.j.one(b,le,function(){b.removeAttribute(Td);b.style.opacity="1";c&&(c.style.opacity="1")}))};
|
|
256
|
-
Rq=function(a){var b=this;this.h=a;this.w=!!a.sideAdContainer;this.j=[];this.
|
|
257
|
-
Tq=function(a){var b;return _.I(function(c){if(1==c.a)return(b=a.
|
|
256
|
+
Rq=function(a){var b=this;this.h=a;this.w=!!a.sideAdContainer;this.j=[];this.a=a.Wi;this.C=Nq(a);this.B=[];var c=Oq(this,this.C,this.h.el);this.o=new Bq(c);this.f=null;this.A=!1;this.l=new Map;this.G=a.toggleVisible;this.g=new _.K("clpp.interstitial.MultiController");Pq(this).forEach(function(d){return Qq(b,d,!1)})};
|
|
257
|
+
Tq=function(a){var b;return _.I(function(c){if(1==c.a)return(b=a.f)?"loaded"===b.state?c.F(2):_.y(c,b.ld,2):c["return"]();if(4!=c.a)return _.y(c,b.player.play(),4);b.state=_.wf;Sq(b);_.C(c)})};Uq=function(a,b){a.g.info("Add items",b);a.j=a.j.concat(b.map(function(c){return Object.assign({},c,{state:"idle",disposers:[],preloadPromise:Promise.resolve(),ld:Promise.resolve()})}))};
|
|
258
258
|
Vq=function(a,b){0!==a.j.length&&(b?(a.g.info("Remove items",b),a.j=a.j.filter(function(c){return!b.includes(c.id)})):(a.g.info("Remove all items"),a.j=[]))};
|
|
259
|
-
gr=function(a,b,c){var d,e,f,g,h;return _.I(function(l){switch(l.a){case 1:if(a.A)return a.g.warn("Cannot "+c+" item while busy (ID: "+b+")"),l["return"]();d=Wq(a,b);if(!d)return a.g.warn("Item not found (ID: "+b+")"),l["return"]();a.g.info(c+" item (ID: "+b+")");a.A=!0;if(e=a.
|
|
260
|
-
_.y(l,$q(a,d),10);if(f){a.g.error("Loading preloaded items is not supported");l.F(6);break}return _.y(l,ar(a,d),6);case 10:Sq(d);case 6:br(a,d);Xq(a,d.player,!1);d.fc&&cr(a,d,d.fc);if(d.
|
|
259
|
+
gr=function(a,b,c){var d,e,f,g,h;return _.I(function(l){switch(l.a){case 1:if(a.A)return a.g.warn("Cannot "+c+" item while busy (ID: "+b+")"),l["return"]();d=Wq(a,b);if(!d)return a.g.warn("Item not found (ID: "+b+")"),l["return"]();a.g.info(c+" item (ID: "+b+")");a.A=!0;if(e=a.f)e.player.isPaused()||(a.w?e.primary?Xq(a,e.player,!0):e.player.pause():e.player.pause()),Xq(a,e.player,!0);(f=a.l.has(b))&&a.l["delete"](b);_.D(l,2,3);if(c===_.lf)return(g=e&&d.primary)?_.y(l,Yq(a,d),10):f?_.y(l,Zq(a,d),10):
|
|
260
|
+
_.y(l,$q(a,d),10);if(f){a.g.error("Loading preloaded items is not supported");l.F(6);break}return _.y(l,ar(a,d),6);case 10:Sq(d);case 6:br(a,d);Xq(a,d.player,!1);d.fc&&cr(a,d,d.fc);if(d.vb)d.player.one(_.pe,d.vb);d.Ii&&d.Ii(d.player.getDuration());case 3:_.sh(l);a.A=!1;e&&dr(a,e);er(a);fr(a,d.next);_.th(l);break;case 2:throw h=_.E(l),a.g.error("Item failed to "+c+" (ID: "+b+")"),h;}})};ir=function(a,b){var c=hr(a);c?c.ga=b:a.g.error("Failed to get primary item. Cannot configure resume position.")};
|
|
261
261
|
hr=function(a){return a.j.find(function(b){return!!b.primary})||null};Wq=function(a,b){return a.j.find(function(c){return c.id===b})||null};
|
|
262
|
-
br=function(a,b){var c=b.transition;if(c&&!c.
|
|
263
|
-
jr=function(a,b,c){function d(){b.player.off(_.qg,f)}function e(){var l=b.player.getPosition();l>=g.position?(c(),a.g.info("Transition onPosition to (ID: "+g.itemId+"), playback position: "+(l.toFixed(3)+" s, transition point: ")+(g.position.toFixed(3)+" s. ")),a.play(g.itemId),l=!0):l=!1;l?h=null:h=requestAnimationFrame(e)}function f(){var l=b.player.getPosition();.5>=g.position-l&&(d(),e())}var g=b.transition.lg,h=null;g.
|
|
264
|
-
h=null)});b.disposers.push(d)};kr=function(a){a.
|
|
265
|
-
Nq=function(a){if(a.sideAdContainer)a=a.sideAdContainer;else if(a=a.
|
|
266
|
-
dr=function(a,b){var c;return _.I(function(d){if(1==d.a){c=b.player;if(b.primary)return a.g.info("Pause primary playback"),a.w||Qq(a,c,!1),d.F(0);a.g.info("Stop previous playback (ID: "+b.id+")");b.disposers.forEach(function(e){return e()});b.disposers=[];b.player=null;b.videoEl=null;b.role=or;return
|
|
267
|
-
ar=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.y(d,pr(a,!!b.primary),2);if(3!=d.a)return c=d.f,a.
|
|
268
|
-
Zq=function(a,b){var c;return _.I(function(d){switch(d.a){case 1:c=b.player;if(!c)return d["return"]();if(b.state!==Hf){d.F(2);break}a.g.info(hc);_.D(d,3);return _.y(d,b.preloadPromise,5);case 5:_.rh(d,2);break;case 3:_.E(d);case 2:a.
|
|
269
|
-
cr=function(a,b,c){function d(){a.
|
|
270
|
-
!c.w&&m>=3*n/4&&(c.w=!0,a.
|
|
271
|
-
Yq=function(a,b){return _.I(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==Hf){c.F(2);break}a.g.info("Wait for seek to finish");_.D(c,3);return _.y(c,b.preloadPromise,5);case 5:_.rh(c,2);break;case 3:_.E(c);case 2:a.
|
|
272
|
-
pr=function(a,b){var c;return _.I(function(d){if(1==d.a)return b?d["return"](a.
|
|
273
|
-
sr=function(a,b){var c,d,e,f;return _.I(function(g){switch(g.a){case 1:if(!b.primary){g.F(2);break}b.state=Hf;a.l.set(b.id,b);if(!b.
|
|
262
|
+
br=function(a,b){var c=b.transition;if(c&&!c.Mn){if(c.vb){var d=c.vb,e=function(){a.g.info("Transition onEnded to (ID: "+d+")");a.play(d)};b.player.one(_.pe,e);b.disposers.push(function(){b.player.off(_.pe,e)})}c.lg&&jr(a,b,function(){var f=a.f.fc;f&&(b.disposers.forEach(function(g){return g()}),b.disposers=[],a.a.trigger(new _.L(_.Kc,{ad:f})),a.a.trigger(new _.L(_.xc,{ad:f})),f.f===f.a&&a.a.trigger(new _.L(_.uc,{id:b.Qe})))});c.Mn=!0}};
|
|
263
|
+
jr=function(a,b,c){function d(){b.player.off(_.qg,f)}function e(){var l=b.player.getPosition();l>=g.position?(c(),a.g.info("Transition onPosition to (ID: "+g.itemId+"), playback position: "+(l.toFixed(3)+" s, transition point: ")+(g.position.toFixed(3)+" s. ")),a.play(g.itemId),l=!0):l=!1;l?h=null:h=requestAnimationFrame(e)}function f(){var l=b.player.getPosition();.5>=g.position-l&&(d(),e())}var g=b.transition.lg,h=null;g.ga&&ir(a,g.ga);b.player.on(_.qg,f);b.disposers.push(function(){null!=h&&(cancelAnimationFrame(h),
|
|
264
|
+
h=null)});b.disposers.push(d)};kr=function(a){a.f&&(a.f.disposers.forEach(function(b){return b()}),a.f.disposers=[],a.f.fc&&cr(a,a.f,a.f.fc),br(a,a.f),er(a),fr(a,a.f.next))};Pq=function(a){return[a.a].concat(_.dh(a.o.a.map(function(b){return b.player})))};er=function(a){return Promise.all(Array.from(a.l.keys()).map(function(b){return lr(a,b)}))};
|
|
265
|
+
Nq=function(a){if(a.sideAdContainer)a=a.sideAdContainer;else if(a=a.Wi.getSurface().getContainer(),!a)throw Error("Primary player does not have a container");return a};lr=function(a,b){var c;return _.I(function(d){if(1==d.a){c=a.l.get(b);if(!c)return d.F(0);a.g.info("Stop preloading item (ID: "+b+")");return c.player?_.y(d,mr(a,c.player),3):d.F(3)}a.l["delete"](b);_.C(d)})};nr=function(a){_.I(function(b){if(1==b.a)return a.f?_.y(b,dr(a,a.f),3):b.F(0);Qq(a,a.a,!0);_.C(b)})};
|
|
266
|
+
dr=function(a,b){var c;return _.I(function(d){if(1==d.a){c=b.player;if(b.primary)return a.g.info("Pause primary playback"),a.w||Qq(a,c,!1),d.F(0);a.g.info("Stop previous playback (ID: "+b.id+")");b.disposers.forEach(function(e){return e()});b.disposers=[];b.player=null;b.videoEl=null;b.role=or;return b.yg?(a.g.info("Release player (ID: "+b.id+") after delay "+(b.yg+" ms.")),_.y(d,new Promise(function(e){setTimeout(function(){return _.I(function(f){if(1==f.a)return _.y(f,mr(a,c),2);Qq(a,c,!1);a.a.trigger(new _.L("ad-hls-released"));
|
|
267
|
+
e();_.C(f)})},b.yg)}),0)):_.y(d,mr(a,c),5)}Qq(a,c,!1);return d.F(0)})};$q=function(a,b){return _.I(function(c){if(1==c.a)return _.y(c,ar(a,b),2);if(3!=c.a)return _.y(c,b.player.play(),3);b.state=_.wf;_.C(c)})};ar=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.y(d,pr(a,!!b.primary),2);if(3!=d.a)return c=d.f,a.f=b,b.role=qr,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),Qq(a,c,!0),b.state="loading",b.ld=rr(c,b.config),_.y(d,b.ld,3);b.state="loaded";_.C(d)})};
|
|
268
|
+
Zq=function(a,b){var c;return _.I(function(d){switch(d.a){case 1:c=b.player;if(!c)return d["return"]();if(b.state!==Hf){d.F(2);break}a.g.info(hc);_.D(d,3);return _.y(d,b.preloadPromise,5);case 5:_.rh(d,2);break;case 3:_.E(d);case 2:a.f=b;b.role=qr;Qq(a,c,!0);if(b.state===Gf)return _.y(d,c.play(),7);if(b.state!==Cf){d.F(7);break}return _.y(d,rr(c,b.config),7);case 7:b.state=_.wf,_.C(d)}})};
|
|
269
|
+
cr=function(a,b,c){function d(){a.a.trigger(new _.L(_.Kc,{ad:c}));a.a.trigger(new _.L(_.xc,{ad:c}));c.f===c.a&&a.a.trigger(new _.L(_.uc,{id:b.Qe}))}function e(){a.a.trigger(new _.L(_.vc,{ad:c}))}function f(){a.a.trigger(new _.L(_.Hc,{ad:c}))}function g(){l.isEnded()||a.a.trigger(new _.L(_.Fc,{ad:c}))}function h(){var m=l.getPosition(),n=c.getDuration();c.j=m;a.a.trigger(new _.L(_.Gc,{ad:c}));!c.l&&m>=n/4&&(c.l=!0,a.a.trigger(new _.L(_.yc,{ad:c})));!c.o&&m>=n/2&&(c.o=!0,a.a.trigger(new _.L(_.Ec,{ad:c})));
|
|
270
|
+
!c.w&&m>=3*n/4&&(c.w=!0,a.a.trigger(new _.L(_.Lc,{ad:c})))}var l=b.player;l.on(_.qg,h);l.on(_.gf,g);l.on(_.wf,f);l.on(_.kd,e);l.one(_.pe,d);b.disposers.push(function(){l.off(_.qg,h);l.off(_.gf,g);l.off(_.wf,f);l.off(_.kd,e);l.off(_.pe,d)});1===c.f&&a.a.trigger(new _.L(_.tc,{id:b.Qe}));c.videoEl=l.getSurface().getMedia();a.a.trigger(new _.L(_.Cc,{ad:c}));a.a.trigger(new _.L(_.Jc,{ad:c}))};
|
|
271
|
+
Yq=function(a,b){return _.I(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==Hf){c.F(2);break}a.g.info("Wait for seek to finish");_.D(c,3);return _.y(c,b.preloadPromise,5);case 5:_.rh(c,2);break;case 3:_.E(c);case 2:a.f=b;b.role=qr;Qq(a,b.player,!0);b.state="loading";if(a.w){Xq(a,b.player,!1);c.F(6);break}return _.y(c,b.player.play(),6);case 6:b.state=_.wf,_.C(c)}})};mr=function(a,b){return _.I(function(c){return b===a.a?c.F(0):_.y(c,a.o.release(b),0)})};
|
|
272
|
+
pr=function(a,b){var c;return _.I(function(d){if(1==d.a)return b?d["return"](a.a):_.y(d,a.o.get(),2);c=d.f;if(!c)throw Error("No player available");return d["return"](c)})};fr=function(a,b){var c;_.I(function(d){if(0===b.length)return d["return"]();a.g.info("Preload items (IDs: "+b+")");c=a.j.filter(function(e){return b.includes(e.id)})||[];return _.y(d,Promise.all(c.map(function(e){return sr(a,e)})),0)})};
|
|
273
|
+
sr=function(a,b){var c,d,e,f;return _.I(function(g){switch(g.a){case 1:if(!b.primary){g.F(2);break}b.state=Hf;a.l.set(b.id,b);if(!b.ga||a.w){g.F(3);break}c=b.player;a.g.info("Preparing to resume at",b.ga);Xq(a,c,!0);return _.y(g,c.seek(b.ga,!0),3);case 3:return b.state=Gf,g["return"]();case 2:return d=b.id,_.y(g,pr(a,!1),5);case 5:return e=g.f,b.player=e,b.videoEl=e.getSurface().getMedia(),b.role=or,b.state=Hf,_.D(g,6),a.l.set(d,b),b.config.autoplay&&(a.g.warn("Autoplay should not be used for preloaded streams. Force disabling autoplay (ID: "+
|
|
274
274
|
(d+")")),b.config.autoplay=!1),b.preloadPromise=rr(e,b.config),_.y(g,b.preloadPromise,8);case 8:b.state=Gf;_.rh(g,0);break;case 6:f=_.E(g),7001===f.code?(a.g.info("Preload aborted (ID: "+d+")"),b.state=Bf):(a.g.warn("Preload failed (ID: "+d+")",f),b.state=Cf),_.C(g)}})};
|
|
275
275
|
Qq=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.debug(Vb+b),d.classList.add(zd),d.classList.remove("clpp-hide")):(a.g.debug(hb+b),d.classList.remove(zd),d.classList.add("clpp-hide")),a.G&&a.G(d,c))};
|
|
276
|
-
Oq=function(a,b,c){return Array.from({length:2}).map(function(d,e){var f=document.createElement(_.r);b.appendChild(f);var g=a.h.Ea.create();f=new Mq(f);g.init(f,c);g.setSourceIndex(0);var h=f.getContainer();if(!h)throw Error("Failed to create player surface container element");h.classList.add("secondary");f.getMedia().classList.add("v-"+e);a.B.push(h);return g})};Xq=function(a,b,c){a.
|
|
277
|
-
tr=function(a){a.B.forEach(function(b){return a.C.removeChild(b)});a.B=[];Qq(a,a.
|
|
278
|
-
Ar=function(a){_.tm.call(this);var b=this;this.h=_.M.ra({
|
|
279
|
-
|
|
280
|
-
Dr=function(a){var b,c,d;_.I(function(e){var f=a.a;Uq(f,[{id:Jf,primary:!0,config:f.
|
|
281
|
-
ur=function(a,b){var c=a.j.getPosition();b>=c||a.f.filter(function(d){return 1===d.ke&&!d.once&&d.
|
|
282
|
-
Cr=function(a,b,c,d){var e=Er(a);a.g.info("Interstitial cues found",e);var f=e;if(d){f=Di(a.f.map(function(n){return n.ja}),e.map(function(n){return n.id}));Fr(a,f.
|
|
276
|
+
Oq=function(a,b,c){return Array.from({length:2}).map(function(d,e){var f=document.createElement(_.r);b.appendChild(f);var g=a.h.Ea.create();f=new Mq(f);g.init(f,c);g.setSourceIndex(0);var h=f.getContainer();if(!h)throw Error("Failed to create player surface container element");h.classList.add("secondary");f.getMedia().classList.add("v-"+e);a.B.push(h);return g})};Xq=function(a,b,c){a.a.getConfiguration().muted?b.setMuted(!0):b.setMuted(c)};
|
|
277
|
+
tr=function(a){a.B.forEach(function(b){return a.C.removeChild(b)});a.B=[];Qq(a,a.a,!0)};rr=function(a,b){return _.I(function(c){return 1==c.a?_.y(c,a.release(),2):_.y(c,a.load(b),0)})};Sq=function(a){if(a.fc){var b=a.player.getDuration();a.maxDuration&&(b=Math.min(b,a.maxDuration));a.fc.h=b}a.cf&&a.cf()};
|
|
278
|
+
Ar=function(a){_.tm.call(this);var b=this;this.h=_.M.ra({yn:.5},a);this.g=new _.K("clpp.interstitial.Player");this.j=a.player;this.j.setSeekInterceptor(function(c,d){d||ur(b,c);var e=vr(b,c);if(e){if(wr(e))return b.g.info("Seeking into an interstitial",e.ja),xr(b,e)["catch"](function(){b.j.seek(c)}),!1}else{var f=yr(b,c);f&&!f.jl&&(b.g.info("Trigger interstitial due to jump over it",f,"will resume at",c),xr(b,f,c)["catch"](function(){f.jl=new Date;b.j.seek(c)}))}return!0});this.a=new Rq({el:this.h.config,
|
|
279
|
+
Wi:a.player,preloadMedia:!0,Ea:a.Ea,sideAdContainer:this.h.sideAdContainer});this.l=[];this.f=[];this.o=!1;zr(this,a.player)};Br=function(a){return(a=a.a.getCurrentItem())&&!a.primary?a.player:null};
|
|
280
|
+
Dr=function(a){var b,c,d;_.I(function(e){var f=a.a;Uq(f,[{id:Jf,primary:!0,config:f.a.getConfiguration(),next:[]}]);var g=hr(f);if(!g)throw Error("Failed to find primary item");f.f=g;g.role=qr;g.player=f.a;g.videoEl=g.player.getSurface().getMedia();Qq(f,g.player,!0);b=a.j;c=b.getConfiguration();d=!c.autoplay;a.o=Cr(a,d,b.isLive(),!1);if(a.o){f=a.a;g=f.o;if(g=g.a[0]?g.a[0].player:null)f.w||Qq(f,f.a,!1),Qq(f,g,!0);return e.F(0)}return c.autoplay?_.y(e,Tq(a.a),0):e.F(0)})};
|
|
281
|
+
ur=function(a,b){var c=a.j.getPosition();b>=c||a.f.filter(function(d){return 1===d.ke&&!d.once&&d.zi&&d.startTime>b}).forEach(function(d){d.hf=!1})};
|
|
282
|
+
Cr=function(a,b,c,d){var e=Er(a);a.g.info("Interstitial cues found",e);var f=e;if(d){f=Di(a.f.map(function(n){return n.ja}),e.map(function(n){return n.id}));Fr(a,f.Fn);var g=new Set(f.xj);f=e.filter(function(n){return g.has(n.id)})}if(!Gr(a,f))return!1;var h=[],l=[],m=[];f.forEach(function(n){var p=n.customAttributes.CUE||[];p.includes(_.Eb)?l.push(n):!d&&p.includes("PRE")?h.push(n):!c&&n.startTime<a.h.yn?h.push(n):m.push(n)});1<h.length?a.g.warn("Multiple preroll interstitials not supported. Will display only the 1st one."):
|
|
283
283
|
h[0]&&Hr(a,h[0],b);m.forEach(function(n){return Ir(a,n,1)});1<l.length?a.g.warn("Multiple postroll interstitials not supported. Will display only the 1st one."):l[0]&&Ir(a,l[0],2);a.g.info("Interstitials changed",a.f);return 0<h.length};Fr=function(a,b){var c=new Set(b);a.f.forEach(function(d){c.has(d.ja)&&!wr(d)&&a.g.warn("Removing an interstitial in active state",d)});a.f=a.f.filter(function(d){return!c.has(d.ja)})};
|
|
284
284
|
Er=function(a){return a.j.getTimelineCues().filter(function(b){return b.schemeIdUri===Kd&&b.customAttributes})};xr=function(a,b,c){var d;return _.I(function(e){if(1==e.a)return _.y(e,Jr(a,b),2);d=e.f;if(!d)throw Error("Failed to bind");return _.y(e,Kr(a,b,1,!1,c),0)})};
|
|
285
285
|
Ir=function(a,b,c){var d=b.customAttributes[nc],e=b.customAttributes[mc],f=b.customAttributes[qc],g=b.customAttributes[oc],h=b.customAttributes[pc]||[];b.customAttributes[sc]||(b.customAttributes[sc]=null==f||0<f?"RANGE":"POINT");var l=b.id,m=b.startTime,n=b.endTime,p=Lr,q=null==f?null:Math.max(0,b.startTime+f),t="POINT"===b.customAttributes[sc],v=!h.includes("SKIP");h=!h.includes("JUMP");var z=b.customAttributes[lc];if(z)try{var A=JSON.parse(atob(z))}catch(F){A=null}else A=null;b={ja:l,startTime:m,
|
|
286
|
-
endTime:n,state:p,
|
|
286
|
+
endTime:n,state:p,Yg:e,Zg:d,Ca:null,ga:q,Kn:f,sg:g,ke:c,Zl:t,Ij:v,Hj:h,dj:A,zi:null!=f&&0>f,once:(b.customAttributes.CUE||[]).includes("ONCE"),hf:!1};a.f.push(b);return b};
|
|
287
287
|
Hr=function(a,b,c){var d,e,f,g,h;_.I(function(l){switch(l.a){case 1:return d=Ir(a,b,0),_.y(l,Jr(a,d),2);case 2:e=l.f;f=d.Ca?d.Ca.length:0;if(e&&0<f){_.D(l,7);var m=Kr(a,d,0,c);a.g.info("Preroll interstitial "+d.ja+" scheduled");return _.y(l,m,9)}e?a.g.warn("Preroll interstitial has no assets, skipping"):a.g.error("Preroll interstitial failed, skipping");if(c){l.F(0);break}return _.y(l,Tq(a.a),0);case 9:_.rh(l,0);break;case 7:g=_.E(l);a.g.error("Preroll interstitial failed.",g);if(h=hr(a.a))return _.y(l,
|
|
288
288
|
a.a.play(h.id),0);l.F(0)}})};Mr=function(a){a.l.forEach(function(b){return b()});a.l=[]};
|
|
289
289
|
zr=function(a,b){function c(){Cr(a,!1,!0,!0)}function d(){var e,f,g,h,l;return _.I(function(m){switch(m.a){case 1:e=b.getPosition();f=Nr(a,e);if(!f){m.F(2);break}a.g.info(ib+f.ja+" coming up at "+(f.startTime+" s"));return _.y(m,Jr(a,f),3);case 3:(g=m.f)&&Or(a,f,b);case 2:h=Pr(a);if(!(h&&h.state===Lr&&b.getDuration()-e<a.h.resolutionOffsetSec)){m.F(0);break}return _.y(m,Jr(a,h),5);case 5:if(l=m.f)if(h.Ca&&0!==h.Ca.length){var n=a.a.getCurrentItem();if(n){var p=Qr(a,h,2);if(0!==p.length){var q=p[0].id;
|
|
290
|
-
n.next=[q];n.transition={
|
|
290
|
+
n.next=[q];n.transition={vb:q};Rr(a,h,p);a.g.info("Postroll interstitial "+h.ja+" scheduled")}}}else a.g.warn("Postroll interstitial has no assets, ignoring.");_.C(m)}})}b.addEventListener(_.qg,d);a.l.push(function(){b.removeEventListener(_.qg,d)});b.addEventListener(_.hi,c);a.l.push(function(){b.removeEventListener(_.hi,c)})};Pr=function(a){return a.f.find(function(b){return 2===b.ke})||null};
|
|
291
291
|
Gr=function(a,b){for(var c=b.sort(function(n,p){return n.startTime-p.startTime}),d=a.h.resolutionOffsetSec,e=Infinity,f=[],g=0;g<c.length-1;g++){var h=c[g],l=c[g+1];l&&(e=Math.min(e,l.startTime-h.endTime));l&&l.startTime<=h.endTime&&f.push("Interstitials "+h.id+" and "+l.id+" overlap.")}e<d&&(c=e/2,a.h.resolutionOffsetSec=c,a.g.warn("Bad configuration - Interstitials are closer than configured resolutionOffsetSec ("+(d+" s) auto-reconfiguring to ")+(c+" s.")));var m=[];b.forEach(function(n){var p=
|
|
292
292
|
n.customAttributes[nc];n.customAttributes[mc]||p||m.push("Interstitial cue "+n.id+" is invalid it contains neither X-ASSET-LIST nor X-ASSET-URI.")});0<m.length?a.g.error("Invalid interstitials, all interstitials will be skipped. "+m.join(" ")):0<f.length&&a.g.warn("Unsupported format of interstitials, playback may not behave correctly. "+f.join(" "));return 0===m.length};Nr=function(a,b){return a.f.find(function(c){var d=c.startTime-b;return 1===c.ke&&wr(c)&&0<d&&d<=a.h.resolutionOffsetSec})||null};
|
|
293
|
-
vr=function(a,b){return a.f.find(function(c){return!c.
|
|
294
|
-
Jr=function(a,b){var c,d,e;return _.I(function(f){switch(f.a){case 1:b.state=Sr;if(!b.
|
|
295
|
-
d);b.state=Ur;a.Wa(new _.L(Ac));a.Wa(new _.L(Bc,{id:b.ja,detail:c}));_.rh(f,2);break;case 3:e=_.E(f),a.g.error("Failed to load X-ASSET-LIST",e),b.state=Vr;case 2:return f["return"](b.state===Ur)}})};Xr=function(a,b){var c=a.h.
|
|
296
|
-
Kr=function(a,b,c,d,e){var f,g,h;return _.I(function(
|
|
297
|
-
Or=function(a,b,c){if(b.Ca)if(0===b.Ca.length){var d=function(){c.isLive()?a.g.info("Skipping empty live interstitial "+b.ja):null!=b.
|
|
293
|
+
vr=function(a,b){return a.f.find(function(c){return!c.Zl&&1===c.ke&&b>c.startTime&&b<c.endTime})||null};yr=function(a,b){var c=a.j.getPosition();return a.f.filter(function(d){return 1===d.ke&&!d.Hj}).sort(function(d,e){return e.startTime-d.startTime}).find(function(d){return d.startTime>c&&d.startTime<b})||null};
|
|
294
|
+
Jr=function(a,b){var c,d,e;return _.I(function(f){switch(f.a){case 1:b.state=Sr;if(!b.Yg){b.Zg?(b.Ca=[{URI:b.Zg,DURATION:b.endTime-b.startTime}],a.Wa(new _.L(Bc,{id:b.ja,detail:Tr(b)})),b.state=Ur):b.state=Vr;f.F(2);break}_.D(f,3);a.g.info("Load X-ASSET-LIST for "+b.ja);a.Wa(new _.L(zc));return _.y(f,Wr(a,b.Yg),5);case 5:c=f.f;b.Ca=c.ASSETS;b.Ca&&0!==b.Ca.length||a.g.info(ib+b.ja+" has no assets, will be smoothly skipped");null==b.ga&&(d=zj(b.Ca.map(function(g){return g.DURATION})),b.ga=b.startTime+
|
|
295
|
+
Math.min(b.sg,d));b.state=Ur;a.Wa(new _.L(Ac));a.Wa(new _.L(Bc,{id:b.ja,detail:c}));_.rh(f,2);break;case 3:e=_.E(f),a.g.error("Failed to load X-ASSET-LIST",e),b.state=Vr;case 2:return f["return"](b.state===Ur)}})};Xr=function(a,b){var c=a.h.wn;if(c){var d=new URL(b);d.searchParams.set("_HLS_primary_id",c);return d.toString()}return b};
|
|
296
|
+
Kr=function(a,b,c,d,e){var f,g,h,l;return _.I(function(m){f=a.a.getCurrentItem();if(!f)return m["return"]();g=Qr(a,b,c);if(0===g.length)return m["return"]();Rr(a,b,g);h=0===c&&a.j.isLive();h||(l=e||b.ga)&&ir(a.a,l);return d?_.y(m,a.a.load(g[0].id),0):_.y(m,a.a.play(g[0].id),0)})};
|
|
297
|
+
Or=function(a,b,c){if(b.Ca)if(0===b.Ca.length){var d=function(){c.isLive()?a.g.info("Skipping empty live interstitial "+b.ja):null!=b.ga&&0!==b.Kn?c.seek(b.ga):a.g.info("Empty VOD interstitial "+b.ja+", continuing to next segment")};c.one(_.ii,d);a.l.push(function(){c.off(_.ii,d)});a.g.info(ib+b.ja+" scheduled to be skipped")}else{var e=a.a.getCurrentItem();if(e){var f=Qr(a,b,1);if(0!==f.length){var g=f[0].id;null!=b.ga&&ir(a.a,b.ga);e.next=[g];e.transition={lg:{position:b.startTime,itemId:g,ga:b.ga}};
|
|
298
298
|
Rr(a,b,f);a.g.info(ib+b.ja+" scheduled for "+(b.startTime+" s"))}}}};Rr=function(a,b,c){Uq(a.a,c);kr(a.a);b.state=Yr;a.Wa(new _.L(_.Dc,{detail:null}))};
|
|
299
|
-
Qr=function(a,b,c){var d=0,e=b.Ca.map(function(
|
|
300
|
-
e.length))return[];var f=e[0].cf;e[0].cf=function(){a.g.info("Playing interstitial "+c+" "+b.ja+" with "+(b.Ca.length+" assets and will resume primary content ")+((b.
|
|
301
|
-
Zr=function(a,b,c){var d=b.
|
|
302
|
-
Wr=function(a,b){var c,d,e,f,g,h;return _.I(function(l){if(1==l.a){c=a.a.Me();if(!c)throw Error("No player found");d=c.getNetworkEngine();e=_.dk(Xr(a,b));return _.y(l,Ak(d,e),2)}f=l.f;g=bs(f);if(!g)throw new _.Ri("Invalid X-ASSET-LIST list response");h=f;return l["return"](h)})};bs=function(a){return a&&a.ASSETS&&Array.isArray(a.ASSETS)?a.ASSETS.every(function(b){return typeof b.URI===_.ig&&typeof b.DURATION===_.k}):!1};wr=function(a){return!(a.
|
|
303
|
-
Tr=function(a){var b={URI:a.Ca[0].URI,DURATION:a.Ca[0].DURATION};a.
|
|
299
|
+
Qr=function(a,b,c){var d=0,e=b.Ca.map(function(h,l){var m=b.ja+"-"+l;d+=h.DURATION;return{id:m,config:{source:{url:Xr(a,h.URI),type:_.dm}},duration:h.DURATION,Of:d,Qe:b.ja,next:[],fc:new Aq(c,l+1,b.Ca.length,h.DURATION,b.ja,b.Ij)}});e.forEach(function(h,l){var m=l===e.length-1;m&&2===c||(m?(h.next=[Jf],h.transition={vb:Jf}):(m=m?Jf:h.Qe+"-"+(l+1),h.next=[m],h.transition={vb:m}))});e.forEach(function(h){h.cf=function(){a.g.info("Playing interstitial asset "+h.id,h)}});if(null!=b.sg&&(e=Zr(a,b,e),0===
|
|
300
|
+
e.length))return[];var f=e[0].cf;e[0].cf=function(){a.g.info("Playing interstitial "+c+" "+b.ja+" with "+(b.Ca.length+" assets and will resume primary content ")+((b.ga?"at "+b.ga.toFixed(1)+" s":"after interstitial ended")+"."),e);f()};e[0].Ii=function(h){b.hf=!0;null==b.ga&&(b.ga=b.startTime+h,ir(a.a,b.ga),a.g.info("Primary content will resume at",b.ga));b.state=$r};var g=e[e.length-1];g.vb=function(){b.state=as;Vq(a.a,e.map(function(h){return h.id}));2===c&&nr(a.a)};g.yg=a.h.adReleaseDelayMs;return e};
|
|
301
|
+
Zr=function(a,b,c){var d=b.sg;a.g.info("Playout limit for "+b.ja+" is "+(d+" s"));b=c[c.length-1].Of;if(d>=b)return a.g.info("Playout limit ("+d+") islarger or equal to total duration: ("+(b+").")),c;if(0>=d)return a.g.info("Discarding all ads."),[];var e=c.filter(function(f){return f.Of-f.duration<=d});e.forEach(function(f){f.fc.a=e.length});a=e[e.length-1];c=d-(a.Of-a.duration);.1>Math.abs(c-a.duration)?a.transition.vb=Jf:a.transition.lg={position:c,itemId:Jf,ga:null};a.maxDuration=c;return e};
|
|
302
|
+
Wr=function(a,b){var c,d,e,f,g,h;return _.I(function(l){if(1==l.a){c=a.a.Me();if(!c)throw Error("No player found");d=c.getNetworkEngine();e=_.dk(Xr(a,b));return _.y(l,Ak(d,e),2)}f=l.f;g=bs(f);if(!g)throw new _.Ri("Invalid X-ASSET-LIST list response");h=f;return l["return"](h)})};bs=function(a){return a&&a.ASSETS&&Array.isArray(a.ASSETS)?a.ASSETS.every(function(b){return typeof b.URI===_.ig&&typeof b.DURATION===_.k}):!1};wr=function(a){return!(a.zi&&a.hf)&&!(a.once&&a.hf)&&[Lr,as].includes(a.state)};
|
|
303
|
+
Tr=function(a){var b={URI:a.Ca[0].URI,DURATION:a.Ca[0].DURATION};a.dj&&(b[lc]=a.dj);return{ASSETS:[b]}};cs=function(){this.a=null};ds=function(){try{var a=URL.createObjectURL(new Blob);URL.revokeObjectURL(a);return a.slice(a.lastIndexOf("/")+1)}catch(c){var b=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(d){var e=(b+16*Math.random())%16|0;b=Math.floor(b/16);return("x"===d?e:e&3|8).toString(16)})}};
|
|
304
304
|
fs=function(a){this.m=a;this.j=this.m.getNetworkEngine();this.a=new _.Vh;this.h=null;this.f=!0;es(this)};es=function(a){a.a.on(window,"offline",function(){gs(a,!1)});a.a.on(window,"online",function(){a.f||hs(a)});a.a.on(a.m,dg,function(){return is(a)});a.a.on(a.m,"suspend",function(){return is(a)});a.a.on(a.m,_.Og,function(){return is(a)});a.a.on(a.m,_.wf,function(){a.f||hs(a)});a.a.on(a.m,_.Kf,function(){a.f||hs(a)});a.a.on(a.m,_.fg,function(){switch(a.m.getState()){case _.Up:is(a);break;default:is(a)}})};
|
|
305
305
|
hs=function(a){a.m.getConfiguration().connectivityCheck&&(js(a),a.h=(new _.vl(function(){return ks(a)})).ba(5))};is=function(a){a.f&&hs(a)};js=function(a){a.h&&(a.h.stop(),a.h=null)};ks=function(a){var b,c;return _.I(function(d){if(1==d.a)return(b=a.m.getConfiguration().connectivityCheck)&&a.m?_.y(d,Bk(a.j,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;gs(a,c);_.C(d)})};gs=function(a,b){js(a);a.f!==b&&(a.f=b,a.m&&a.m.getConfiguration().connectivityCheck&&a.m.trigger(new _.L(cf,{online:a.f})))};
|
|
306
306
|
ms=function(){for(var a=0;a<ls.length;++a)ls[a].Wc()};_.ns=function(a,b){b=b||0;for(var c={priority:b,Wc:a},d=0;d<ls.length;d++)if(ls[d].priority<b){ls.splice(d,0,c);return}ls.push(c)};os=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};ps=function(a,b,c){var d=_.S.aa;this.h=a;this.f=b;JSON.parse(d(_.Qj(a)));this.a=JSON.parse(d(_.Qj(b)));this.j=c};
|
|
307
307
|
rs=function(a){var b=qs,c=_.S.bb,d={kty:"RSA",n:b.n,e:b.e},e=a.h+"."+a.f,f=a.j;return new Promise(function(g,h){try{var l=window&&window.crypto&&window.crypto.subtle}catch(n){}if(l){var m={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};l.importKey("jwk",d,m,!1,["verify"]).then(function(n){var p=c(e),q=_.Qj(f);return l.verify(m,n,q.buffer,p.buffer)}).then(function(n){n?g():h(new _.Ri("Signature Verification failed",tg))})["catch"](h)}else g()})};ss=function(a){this.f=a;this.a=null;this.g=new _.K("clpp.utils.LicenseKey")};
|
|
308
308
|
ts=function(a){if(!a.a){var b=a.f.split(".");if(3!==b.length)throw Error("Expected to find 3 data sections in JWT raw data");b=new ps(b[0],b[1],b[2]);a.a=b}return a.a};
|
|
309
|
-
us=function(a){var b,c,d;return _.I(function(e){if(1==e.a)return b=ts(a),_.D(e,2),_.y(e,rs(b),4);if(2!=e.a)return _.rh(e,0);if((c=_.E(e))&&c.code===tg)throw c;var f=window.location.href,g=new _.Wi(f);d=g.
|
|
309
|
+
us=function(a){var b,c,d;return _.I(function(e){if(1==e.a)return b=ts(a),_.D(e,2),_.y(e,rs(b),4);if(2!=e.a)return _.rh(e,0);if((c=_.E(e))&&c.code===tg)throw c;var f=window.location.href,g=new _.Wi(f);d=g.xb||g.ob?g:new _.Wi("//"+f);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(d.ob))return e["return"]();throw c;})};
|
|
310
310
|
vs=function(a){switch((a.$[0]||{src:"",type:""}).type){case _.Tc:a="dash";break;case _.Yc:a="ss";break;case _.dm:a="hls";break;case _.Ig:a="mp4";break;default:a=""}return a};ws=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};xs=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};ys=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};
|
|
311
311
|
As=function(a){var b=a.configuration,c="no";b.drm&&!_.M.oa(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(ke)||zs(a).endsWith("drmtoday.com"))&&(c=ke);return c};Bs=function(a){a=a.drmInfo;var b="";if(a)switch(a.keySystem){case _.Pd:b="wv";break;case _.Nd:b="pr";break;case _.Jd:b="fps"}return b};Cs=function(a){a=a.drmInfo;var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};
|
|
312
|
-
Ds=function(a){a=a.drmInfo;var b="";if(a)switch(a.videoRobustness){case eb:case cb:b="L1";break;case db:b="L2";break;case _.Sb:case _.Rb:b="L3"}return b};zs=function(a){a=a.drmInfo;return(new _.Wi(a&&a.licenseServerUri||"")).
|
|
313
|
-
Gs=function(a,b){var c="ie"===_.vk().browser,d=b.configuration,e=_.dh(Array.from(_.Em.keys())).concat(_.dh(b.
|
|
312
|
+
Ds=function(a){a=a.drmInfo;var b="";if(a)switch(a.videoRobustness){case eb:case cb:b="L1";break;case db:b="L2";break;case _.Sb:case _.Rb:b="L3"}return b};zs=function(a){a=a.drmInfo;return(new _.Wi(a&&a.licenseServerUri||"")).ob};
|
|
313
|
+
Gs=function(a,b){var c="ie"===_.vk().browser,d=b.configuration,e=_.dh(Array.from(_.Em.keys())).concat(_.dh(b.Vi));d={"CL-KEY":a.f,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ha,"CL-USER-ID":ws(d),"CL-ASSET-ID":xs(d),"CL-SESSION-ID":ys(d),"CL-PLAYBACK-TYPE":b.isLive?Es:Fs,"CL-CONTENT-TYPE":vs(b),"CL-PLUGINS":e.join(" "),"CL-DRM":As(b),"CL-DRM-CDM":Bs(b),"CL-DRM-SEC-LEVEL":Ds(b),"CL-DRM-OFFLINE":Cs(b),"CL-DRM-IP":zs(b)};c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=e);e=_.dk(["https://downloads.castlabs.com/r/register/"]);
|
|
314
314
|
e.method="GET";e.headers=d;return(new _.yk).fetch(e).U.then(function(f){200===f.status&&c&&window.localStorage.setItem("cl_et",f.headers.etag);return Promise.resolve()})["catch"](function(f){a:{var g=ts(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=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.";
|
|
315
315
|
break;default:f=Promise.resolve();break a}a.g.error(nb+l);f=Promise.reject(new _.N(_.P,7,g,l))}}return f})};Is=function(a){this.m=a;this.f=a.getNetworkEngine();this.h=Hs(this);this.f.Sc(this.h);this.a=null};
|
|
316
|
-
Hs=function(a){return function(b){var c=b.headers,d=b=null,e=_.M.
|
|
316
|
+
Hs=function(a){return function(b){var c=b.headers,d=b=null,e=_.M.Zh(c,"cmsd-dynamic");c=_.M.Zh(c,"cmsd-static");e&&(b=Js(e),a.a=b);if(c)try{e={};var f=c.split(",");for(c=0;c<f.length;c++){var g=Ks(f[c]),h=g.key,l=g.value;Object.keys(Ls).includes(h)&&(e[Ls[h]]=l)}d=_.M.Ac(e)?e:null}catch(m){Ms.error("CmsdManager parseCmsdStaticHeader_ failed:",m),d=null}(b||d)&&a.m.trigger(new _.L("cmsd-event",{Mo:b,Zo:d}))}};
|
|
317
317
|
Js=function(a){try{var b=a.split(",").map(function(c){var d={};c=c.split(";");for(var e=0;e<c.length;e++){var f=Ks(c[e]),g=f.key;f=f.value;Object.keys(Ns).includes(g)&&(d[Ns[g]]=f)}return d}).filter(function(c){return _.M.Ac(c)});return 0<b.length?b:null}catch(c){return Ms.error("CmsdManager parseCmsdDynamicHeader_ failed:",c),null}};
|
|
318
318
|
Ks=function(a){var b=a.split("\x3d"),c=b[0];b=b[1];if(!c)throw new _.Ri("Parsing CMSD, missing parameter or wrong format");if(c&&!b)return{key:c,value:!0};var d=b[0];if('"'===d&&'"'===b[b.length-1])return{key:c,value:b.replaceAll(/(^")|("$)/g,"")};if(/^[-0-9]/.test(d))return{key:c,value:parseInt(b,10)};if(/^[a-zA-Z*]/.test(d))return{key:c,value:b};throw new _.Ri("Parsing CMSD, not recognized value type of "+a);};
|
|
319
319
|
W=function(a,b,c){_.tm.call(this);var d=this;ms();this.g=new _.K("clpp.Player");if(!a)throw new _.N(_.P,7,7102);this.wa=new _.Vh;this.f=this.C=b||_.zm();this.l=null;void 0===this.f.license&&(this.f.license=xm,this.g.warn("You are using the embedded demo license!"));if(!this.f.license)throw this.g.error("You provided null or empty string as your license. Please check your license configuration."),new _.N(_.P,7,7101,"No license provided in configuration!");this.j=new Mq(a,c);this.H=this.A=this.a=this.G=
|
|
320
|
-
null;this.J=new _.yk;this.h=null;this.
|
|
320
|
+
null;this.J=new _.yk;this.h=null;this.fa=[];this.ha=!0;this.L={};this.Ba=null;this.Y=!0;this.ca=this.V=!1;this.N=this.ed=null;this.Pf=!1;this.eb=new fs(this);this.B=null;this.on(_.fg,function(){d.getState()===_.$p&&(d.a?d.a.unload():Promise.resolve())});this.on(_.Pc,this.Ci.bind(this));this.on(_.Oc,this.Ci.bind(this));this.on(_.hi,function(){return Os(d)});Ps(this,this.f.license);this.j.getMedia()&&(a=this.j.getMedia(),a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),this.g.debug("Removed autoplay attribute from video element. Auto play will be handled by configuration."),
|
|
321
321
|
void 0===this.f.autoplay&&(this.f.autoplay=!0,this.g.debug("Setting autoplay in configuration since it was specified in the video element"))));a=[];b=_.w(Qs);for(c=b.next();!c.done;c=b.next()){c=c.value;try{var e=c.create(this.f);e&&a.push(e)}catch(f){this.g.error("Error while creating player plugin",f)}}Rs(this,a);this.P=_.na;Km(this)};
|
|
322
322
|
_.Ss=function(a,b,c){c=void 0===c?null:c;null!=b&&b===a.a?a.a.forwardEventsTo(a):(a.a&&(a.a.stopForwardingEventsTo(a),a.a.destroy(),a.a=null,a.A=null),b&&(b.init(a.j,a.C),b.setNetworkEngine(a.getNetworkEngine()),b.forwardEventsTo(a),a.a=b,a.A=c))};Ps=function(a,b){a.G=new ss(b);us(a.G)["catch"](function(c){setTimeout(function(){a.g.error(nb+c);a.trigger(new _.L(_.qe,{detail:new _.N(_.P,7,7101)}));a.destroy()},1E3)})};
|
|
323
323
|
Ts=function(a,b){var c,d;_.I(function(e){if(1==e.a)return a.j.getMedia()||a.j.getCastElement(),a.G||(a.G=new ss(a.f.license)),_.D(e,2),a.g.debug("Verifying license remotely"),_.y(e,Gs(a.G,b),4);if(2!=e.a)return a.g.debug("License verified remotely"),_.rh(e,0);c=_.E(e);a.g.debug("License rejected by remote",c);d={release:a.release.bind(a),destroy:a.destroy.bind(a),onError:a.onError.bind(a)};setTimeout(os,1E3,d,c);_.C(e)})};
|
|
324
|
-
Rs=function(a,b){a.
|
|
325
|
-
Us=function(a){var b,c;return _.I(function(d){switch(d.a){case 1:if(a.
|
|
324
|
+
Rs=function(a,b){a.fa=b;for(var c=_.w(a.fa),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.id();e&&(a.L[e]=d)}a.Ec("onPlayerCreated")};
|
|
325
|
+
Us=function(a){var b,c;return _.I(function(d){switch(d.a){case 1:if(a.Y)return a.g.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.wa.off(document,Mg);a.trigger(new _.L(_.Of));a.j&&a.j.release();if(!a.h){d.F(2);break}return _.y(d,a.h.uc(),3);case 3:a.h=null;case 2:if(!a.B){d.F(4);break}return _.y(d,a.B.release(),5);case 5:a.B=null;case 4:if(a.a)return b=null,c=a.a.on(_.fg,function(e){b=e}),d["return"](a.Ec(_.af).then(function(){a.a.stopForwardingEventsTo(a);
|
|
326
326
|
return Promise.all([a.a.release(),a.J.release()])}).then(function(){a.g.debug("Releasing player completed");b&&(a.g.debug("Re-post state change event after release"),a.trigger(b))})["finally"](function(){a.a.off(_.fg,c);a.trigger(new _.L(Nf))}));a.trigger(new _.L(Nf));return d["return"](new Promise(function(e){return e()}))}})};
|
|
327
327
|
Ws=function(a,b,c){if(a.P===_.Db)b=Vs(b,c);else if(2!==(a.a?a.a.canPlay(b[0],c):0)||a.ca){a.ca=!1;if(b){for(var d=a=null,e=0;e<b.length;e++);e=Object.values(_.Oh);for(var f=0;f<b.length;f++)for(var g=0;g<e.length;g++){var h={Ea:e[g],confidence:e[g].canPlay(b[f],c)};if(null===a||a.confidence<h.confidence)a=h,d=f}a&&typeof d===_.k&&0<a.confidence?(_.Ph.debug("Player Factory '"+a.Ea.a()+"' can play",b[d]),b=new Nh(a.Ea,d)):(_.Ph.debug("No compatible Player Factory found for sources:",b),b=null)}else b=
|
|
328
328
|
null;if(!b)throw new _.N(_.P,7,7003,"No player factory compatible with given sources found!");c=b.Ea;a=c.create();b={Ea:c,player:a,sourceIndex:b.sourceIndex}}else b={Ea:a.A,player:a.a,sourceIndex:0};return b};Vs=function(a,b){var c=Rh(function(d){return d.f(_.Db)&&a.every(function(e){return 2===d.canPlay(e,b)})});if(!c)throw new _.N(_.P,7,7003,"No compatible player implementing playlist mode found!");return{Ea:c,player:c.create(),sourceIndex:0}};
|
|
329
|
-
Ys=function(a){var b;return _.I(function(c){if(1==c.a){if(!a.a)return a.g.warn(Gb),c["return"]();b=a.a;if(!b.
|
|
330
|
-
_.bt=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a){if(a.V)throw new _.N(_.P,7,7E3,"Player is already destroyed.");if(!a.j)throw new _.N(_.P,7,7E3,"No surface associated with this player!");_.zo(rf);return _.y(f,a.release(),2)}if(3!=f.a){d=c||_.gq(b);if(!b||0===d.length)throw new _.N(_.P,7,7003,xb);a.Ba=d;a.f=_.Bm(a.C,b,{source:d});a.
|
|
329
|
+
Ys=function(a){var b;return _.I(function(c){if(1==c.a){if(!a.a)return a.g.warn(Gb),c["return"]();b=a.a;if(!b.nh)return a.g.warn(Lb),c["return"]();a.trigger(new _.L(Ke));return _.y(c,b.nh(),2)}return _.y(c,_.Xs(a),0)})};
|
|
330
|
+
_.bt=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a){if(a.V)throw new _.N(_.P,7,7E3,"Player is already destroyed.");if(!a.j)throw new _.N(_.P,7,7E3,"No surface associated with this player!");_.zo(rf);return _.y(f,a.release(),2)}if(3!=f.a){d=c||_.gq(b);if(!b||0===d.length)throw new _.N(_.P,7,7003,xb);a.Ba=d;a.f=_.Bm(a.C,b,{source:d});a.Y=!1;e=Ws(a,d,a.f);_.Ss(a,e.player,e.Ea);Zs(a,a.a);a.a&&a.a.setSourceIndex(e.sourceIndex);$s(a);a.a&&a.a.setCdnErrorCallback(a.N);at(a,a.f);a.B=new Is(a);
|
|
331
331
|
a.a.setCmsdManager(a.B);if(a.f.pauseWhenInBackground)a.wa.on(document,Mg,function(){document.hidden?(a.g.debug("Player is hidden: pausing..."),a.pause()):(a.g.debug("Player is visible: resuming..."),a.play())});Lm(a);return _.y(f,a.Ec("onContentWillLoad",a.f.source[e.sourceIndex]),3)}_.zo(qf);_.Ao("player.beforeLoad",rf,qf);_.C(f)})};
|
|
332
332
|
_.ct=function(a){return _.I(function(b){a.j.getMedia()||a.j.getCastElement();a.trigger(new _.L(Ke));return _.y(b,Promise.all([a.a.load(a.f),a.h?a.h.load():Promise.resolve()]),0)})};Zs=function(a,b){try{var c=crypto.randomUUID()}catch(d){c=ds()}a.g.info("Playback session started, ID:",c);b.setPlaybackSessionId(c);a.H=c};dt=function(a){a.H&&(a.g.info("Playback session ended, ID:",a.H),a.H=null,a.a&&a.a.setPlaybackSessionId(null))};
|
|
333
333
|
ft=function(a){var b,c,d,e;_.I(function(f){if(1==f.a){b=[];if(a.f.remoteTextTracks)for(c=_.w(a.f.remoteTextTracks),d=c.next();!d.done;d=c.next())e=d.value,b.push(a.getTrackManager().addTextTrack(e));return _.y(f,Promise.all(b),2)}et(a);_.C(f)})};
|
|
334
334
|
et=function(a){var b=_.yi(a.f.preferredTextLanguage).filter(function(f){return f}),c=a.f.preferForcedSubtitles,d=a.getTrackManager().ka().filter(function(f){return c?f.kind===_.se:f.kind!==_.se});if(0===d.length)c&&a.g.warn("Forced subtitles are configured to be preferred, but no forced subtitles are available.");else{if(c&&0===b.length){var e=a.getTrackManager().pa();e&&e.language?(e=_.vj(e.language||""),b.push(e)):(e=a.getTrackManager().Ja())&&e.language&&(e=_.vj(e.language||""),b.push(e));0===
|
|
335
335
|
b.length&&a.g.warn("Forced subtitles are configured to be preferred, but neither the preferred text language is set, nor the audio or video track language is available to determine which forced subtitles language to select.")}b.some(function(f){var g=_.vj(f);if(f=d.find(function(h){h=_.vj(h.language||"");return _.wj(h,g)}))return a.getTrackManager().Va(f),!0;c&&a.g.warn("Forced subtitles are configured to be preferred, but no forced subtitles match the preferred languages: ",b);return!1})}};
|
|
336
|
-
_.Xs=function(a){var b;return _.I(function(c){if(1==c.a)return _.zo(nf),Ts(a,{configuration:a.getConfiguration(),$:a.
|
|
336
|
+
_.Xs=function(a){var b;return _.I(function(c){if(1==c.a)return _.zo(nf),Ts(a,{configuration:a.getConfiguration(),$:a.ci(),drmInfo:a.getDrmInfo(),Vi:Object.keys(a.L),isLive:a.isLive()}),ft(a),Mm(),_.y(c,a.Ec("onContentLoaded"),2);if(3!=c.a)return a.f.autoplay?(b=a.h?a.h.Tc():!0)?_.y(c,a.play(),3):c.F(3):c.F(3);_.zo(mf);_.Ao("player.afterLoad",nf,mf);_.C(c)})};at=function(a,b){var c=xq(a,b);c&&(a.h=c.create(a))};
|
|
337
337
|
Os=function(a){if(!a.h&&a.A&&a.a&&a.f.ads.hls.enable&&a.getTimelineCues().some(function(c){return c.schemeIdUri===Kd})){var b=a.f.mse.sendPlaybackSessionIdHeader?a.H:null;a.h=new cs;a.h.Yc(a.a,a.A,b)}};$s=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.I(function(c){if(!a.ed||!a.Pf)return c.F(0);a.Pf=!1;return _.y(c,a.ed(b),0)})})};_.gt=function(a){a&&(0<=Qs.indexOf(a)||Qs.push(a))};
|
|
338
338
|
ht=function(a,b,c){W.call(this,a,b,c);a={manifest:{timeline:{version:2},keepTimelineLive:!0},streaming:{preferNativeHlsOnSafari:!1,enableLiveEdgeChasing:!1,startAtSegmentBoundary:!1}};this.C=_.M.ra(this.C,a);this.f=_.M.ra(this.f,a);this.I=0;this.o=[];this.da=!1;this.w=null;this.K=[]};it=function(a){a.K.forEach(function(b){return b()});a.K=[]};
|
|
339
339
|
jt=function(a,b){function c(f){a.I=a.o.findIndex(function(g){return g.id===f.id})}a.addEventListener(_.Uf,c);a.K.push(function(){a.removeEventListener(_.Uf,c)});if(b.endTime){var d=b.endTime,e=function(){a.getPosition()>=d&&(a.removeEventListener(_.qg,e),a.g.info("Playlist end time reached. Stopping playback."),a.trigger(new _.L(_.Tf)),a.pause())};a.addEventListener(_.qg,e);a.K.push(function(){a.removeEventListener(_.qg,e)})}};
|
|
340
340
|
mt=function(a,b){var c,d;return _.I(function(e){switch(e.a){case 1:return _.D(e,2),_.zo(vf),a.P=_.Db,a.ha=!1,c=b.slice(1).map(function(f){return{config:f,$:_.gq(f)}}),_.y(e,_.bt(a,b[0]),4);case 4:return c.forEach(function(f){kt(a,f.config,f.$)}),a.trigger(new _.L(Ke)),_.y(e,a.a.setupPlaylist(b),5);case 5:return _.y(e,_.Xs(a),6);case 6:c.forEach(function(f){lt(a,f.config,f.$)});_.zo(uf);_.Ao("player.setupPlaylist",vf,uf);_.rh(e,0);break;case 2:d=_.E(e);if(a.l)throw a.g.info(ob),new _.N(_.P,7,7E3);
|
|
341
|
-
throw d;}})};nt=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.D(e,2),_.zo(pf),c=_.gq(b),kt(a,b,c),_.y(e,a.a.appendLoad(b),4);if(2!=e.a)return lt(a,b,c),_.zo(of),_.Ao("player.appendLoad",pf,of),_.rh(e,0);d=_.E(e);if(a.l)throw a.g.info(ob),new _.N(_.P,7,7E3,{id:b.id});throw d;})};lt=function(a,b,c){Ts(a,{configuration:b,$:c,drmInfo:a.getDrmInfo(),
|
|
341
|
+
throw d;}})};nt=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.D(e,2),_.zo(pf),c=_.gq(b),kt(a,b,c),_.y(e,a.a.appendLoad(b),4);if(2!=e.a)return lt(a,b,c),_.zo(of),_.Ao("player.appendLoad",pf,of),_.rh(e,0);d=_.E(e);if(a.l)throw a.g.info(ob),new _.N(_.P,7,7E3,{id:b.id});throw d;})};lt=function(a,b,c){Ts(a,{configuration:b,$:c,drmInfo:a.getDrmInfo(),Vi:Object.keys(a.L),isLive:c[0].isLive})};
|
|
342
342
|
kt=function(a,b,c){if(0===c.length)throw new _.N(_.P,7,7003,{message:xb,id:b.id});if(1<c.length)throw new _.N(_.P,7,7003,{message:"Multiple sources not supported!",id:b.id,source:c});if(2!==(a.a?a.a.canPlay(c[0],a.f):0))throw new _.N(_.P,7,7003,{message:"Source not supported by the current player!",id:b.id,source:c[0]});};
|
|
343
343
|
qt=function(a){_.tm.call(this);var b=this;this.h=_.M.ra({transition:_.gf,preloadMedia:!1},a);this.j=[];this.a=0;var c=ot(a.anchorId,this.h.config);this.w=new Bq(c);this.f=null;this.l=!1;this.o=new Map;this.A=a.toggleVisible;this.g=new _.K(Ed);this.w.a.forEach(function(d){return pt(b,d.player,!1)})};st=function(a){return Promise.all(Array.from(a.o.keys()).map(function(b){return rt(a,b)}))};
|
|
344
344
|
rt=function(a,b){var c;return _.I(function(d){if(1==d.a){c=a.o.get(b);if(!c)return d.F(0);a.g.info("Stop preloading item (index: "+b+")");return c.player?_.y(d,tt(a,c),3):d.F(3)}a.o["delete"](b);_.C(d)})};vt=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Stop current playback (index: "+b.index+")"),b.player.pause(),pt(a,b.player,!1),_.y(c,tt(a,b),2);b.player=null;b.videoEl=null;b.role=ut;_.C(c)})};
|
|
345
345
|
tt=function(a,b){return _.I(function(c){b.disposers.forEach(function(d){return d()});b.disposers=[];return b.player?_.y(c,a.w.release(b.player),0):c.F(0)})};yt=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.y(d,a.w.get(),2);if(3!=d.a)return c=d.f,a.f=b,b.role=wt,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),pt(a,c,!0),_.y(d,c.load(b.config),3);xt(a,b);return b.config.autoplay?d.F(0):_.y(d,c.play(),0)})};
|
|
346
346
|
zt=function(a,b){return _.I(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==Hf){c.F(2);break}a.g.info(hc);_.D(c,3);return _.y(c,b.preloadPromise,5);case 5:_.rh(c,2);break;case 3:_.E(c);case 2:a.f=b;b.role=wt;pt(a,b.player,!0);if(b.state===Gf)return _.zo(Af),a.h.preloadMedia?_.y(c,b.player.play(),11):_.y(c,Ys(b.player),11);if(b.state!==Cf){c.F(7);break}return _.y(c,b.player.load(b.config),7);case 11:_.zo(zf),_.Ao("playlist.next",Af,zf);case 7:if(xt(a,b),b.config.autoplay)c.F(0);
|
|
347
|
-
else return _.y(c,b.player.play(),0)}})};xt=function(a,b){if(a.h.autoplayNext){var c=function(){a.g.info("Automatically transition to next item");a.
|
|
347
|
+
else return _.y(c,b.player.play(),0)}})};xt=function(a,b){if(a.h.autoplayNext){var c=function(){a.g.info("Automatically transition to next item");a.Ui()};b.player.on(_.pe,c);var d=b.player;b.disposers.push(function(){d.off(_.pe,c)})}};Bt=function(a){var b;return _.I(function(c){b=a.a+1;a.g.info("Preload following item (index: "+b+")");return _.y(c,At(a,b),0)})};Ct=function(a){var b;return _.I(function(c){b=a.a-1;a.g.info("Preload preceding item (index: "+b+")");return _.y(c,At(a,b),0)})};
|
|
348
348
|
Dt=function(a){var b;_.I(function(c){if(0===a.a)return _.y(c,Bt(a),0);if(a.a===a.j.length-1)return _.y(c,Ct(a),0);b=[a.a-1,a.a+1];a.g.info("Preload items (indices: "+b+")");return _.y(c,Promise.all(b.map(function(d){return At(a,d)})),0)})};
|
|
349
349
|
At=function(a,b){var c,d,e;return _.I(function(f){switch(f.a){case 1:return _.y(f,a.w.get(),2);case 2:return c=f.f,d=a.j[b],d.player=c,d.videoEl=c.getSurface().getMedia(),d.role=ut,d.state=Hf,a.trigger(new _.L(wg)),_.D(f,3),a.o.set(b,d),a.h.preloadMedia?(d.config.autoplay&&(a.g.warn("Autoplay should not be used for preloaded streams. Force disabling autoplay (index: "+(b+")")),d.config.autoplay=!1),d.preloadPromise=c.load(d.config)):d.preloadPromise=c.preload(d.config),_.y(f,d.preloadPromise,5);case 5:d.state=
|
|
350
350
|
Gf;a.trigger(new _.L(wg));_.rh(f,0);break;case 3:e=_.E(f),7001===e.code?(a.g.info("Preload aborted (index: "+b+")"),d.state=Bf):(a.g.warn("Preload failed (index: "+b+")",e),a.trigger(new _.L(_.qe,{detail:e})),d.state=Cf),a.trigger(new _.L(wg)),_.C(f)}})};pt=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.info(Vb+b),d.classList.add(zd)):(a.g.info(hb+b),d.classList.remove(zd)),a.A&&a.A(d,c))};
|
|
@@ -368,7 +368,7 @@ fu=function(a,b,c){if(a.o)return Promise.reject(Error("The session is already in
|
|
|
368
368
|
a.f=null}})).ba(.01)}return a.f};gu=function(a,b,c){if(a.a)a.a.then(function(){return gu(a,b,c)})["catch"](function(){return gu(a,b,c)});else{a.a=b;if(a.h===Qg){var d=_.S.aa(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=_.Qj(e.keys[0].k);e=_.Qj(e.keys[0].kid)}else d=_.Ej(c),e=null;var f=eu(a,"addKey");try{a.j[f](a.h,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};bu=function(a,b){Ot(a.keyStatuses,b);a.dispatchEvent(new _.L(Ae))};
|
|
369
369
|
eu=function(a,b){return a.w?a.w+b.charAt(0).toUpperCase()+b.slice(1):b};hu=function(){};
|
|
370
370
|
iu=function(a,b,c,d,e){_.$m.call(this,gb);this.l=a;this.j=b;this.h=c;this.a=d;this.o=e;this.g=new _.K(Bd);_.S.empty(this.l)?this.g.warn(_.jc):this.$a(_.Pd,{licenseUrl:this.l,videoRobustness:[_.Sb,void 0],audioRobustness:[_.Rb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.je.bind(this)}});_.S.empty(this.j)?this.g.warn(_.Fb):this.$a(_.Nd,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.je.bind(this)}});
|
|
371
|
-
_.S.empty(this.h)?this.g.warn(_.ab):_.S.empty(this.a)?this.g.warn(_.$a):this.$a(_.Jd,{licenseUrl:this.h,certificateUrl:this.a,modifiers:{licenseRequest:this.
|
|
371
|
+
_.S.empty(this.h)?this.g.warn(_.ab):_.S.empty(this.a)?this.g.warn(_.$a):this.$a(_.Jd,{licenseUrl:this.h,certificateUrl:this.a,modifiers:{licenseRequest:this.Fi.bind(this),licenseResponse:this.Gi.bind(this),certificateRequest:this.je.bind(this),extractContentId:this.Nh.bind(this)}})};ju=function(){};ku=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.ue)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
|
|
372
372
|
lu=function(a){a=a.target;if(a.webkitPresentationMode===kf){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)};mu=function(){return this.webkitSupportsPresentationMode(kf)?(this.webkitSetPresentationMode(kf),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
|
|
373
373
|
nu=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};ou=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};pu=function(a,b,c){return new window.TextTrackCue(a,b,c)};
|
|
374
374
|
qu=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};su=function(a,b,c){if("input"===a)switch(this.type){case "range":a=ud}ru.call(this,a,b,c)};uu=function(){this.a=tu()};vu=function(a){return tu()-a.a};wu=function(a){var b=new uu;b.a=a.a;return b};tu=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};_.xu=function(a){var b=[];a=_.w(a);for(var c=a.next();!c.done;c=a.next()){c=_.w(c.value.variants);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};
|
|
@@ -387,17 +387,17 @@ Tu=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=Uu(a);if(a.a+4>
|
|
|
387
387
|
Uu=function(a){var b=a.l.getUint32(a.a,!1);a.a+=4;return b};Qu=function(a){var b=null;a.h!==a.f&&(b={start:a.h,end:a.f,length:a.f-a.h,data:new DataView(a.j.a.buffer,a.h,a.f-a.h),count:-1});return b};Wu=function(a){_.mk.call(this,new _.lk,function(){return Promise.resolve()});this.B=a;this.h=null;this.w=this.U;this.f=-1;this.j=this.l=this.o=null;Vu(this)};Xu=function(a,b,c){a.o=setTimeout(b,c)};
|
|
388
388
|
Vu=function(a){a.h=a.B.then(function(e){a.j=e.request;e.request.uriIndex=e.request.currentAttempt%e.request.uris.length;if(0<e.request.currentAttempt){-1===a.f&&(a.f=Yu(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*Yu(e.request.fuzzFactor,.5));a.f*=Yu(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,h){a.l=h;Xu(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.N(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
|
|
389
389
|
return e.plugin(e.request)});var b=0,c=0,d=0;return a.h.then(function(e){var f=e.request;f.currentAttempt+=1;b=f.currentAttempt;c=f.maxAttempts;d=f.uris.length;return e.U}).then(function(e){a.w.resolve(e)})["catch"](function(e){if(e instanceof _.N){var f=b<d,g=7001!==e.code,h=b<c;if((1===e.severity||f)&&g&&h)return Vu(a);g&&e.a(_.P);a.w.reject(e)}else a.w.reject(e)})};Yu=function(a,b){return null===a||void 0===a?b:a};
|
|
390
|
-
xk=function(a){var b=new Zu,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new $u,e={Dd:!1,
|
|
390
|
+
xk=function(a){var b=new Zu,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new $u,e={Dd:!1,gj:!1};b={U:av(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.Dd||(e.Dd=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.gj=!0;d.abort()},a);b.U=b.U["finally"](function(){window.clearTimeout(f)})}return b};
|
|
391
391
|
av=function(a,b,c,d){var e,f,g,h,l,m,n,p,q,t,v,z,A,F,G,B,H;return _.I(function(O){switch(O.a){case 1:return e=bv,f=new uu,g=wu(f),_.D(O,2),_.y(O,e(a,c),4);case 4:h=O.f;l=bk(h.headers);m={uri:h.url,data:null,headers:l,status:h.status,timeMs:0,responseStartMs:vu(g),request:b};if(ek(h.status)){O.F(5);break}n=m;return _.y(O,h.arrayBuffer(),6);case 6:throw n.data=O.f,m.timeMs=vu(f),gk(m);case 5:p=h.headers.get(wa);ik(b,p);q=p?parseInt(p,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return A=
|
|
392
392
|
h.body.getReader(),F=new Pu(q,!b.disableMergedFragments),G=function(U,X){if(d.Dd)return null;X&&X.data&&(jk(b,X.data.byteLength,vu(g)),g.a=tu());return b.onFragment&&X?b.rateLimitBps?kk(b.rateLimitBps,vu(f),b.bytesLoaded).then(function(){return b.onFragment(X)}):b.onFragment(X):null},B=m,_.y(O,Su(F,A,G,b.onProgress),12);t=h.body.getReader();v=new Lu(q);return _.y(O,Nu(v,t,b),9);case 9:z=O.f;if(!b.rateLimitBps){O.F(10);break}return _.y(O,kk(b.rateLimitBps,vu(f),z.byteLength),10);case 10:m.data=z;O.F(8);
|
|
393
|
-
break;case 12:B.data=O.f;case 8:if(d.Dd)throw Error("Request was aborted");m.timeMs=vu(f);return O["return"](fk(m));case 2:H=_.E(O);if(d.Dd)throw new _.N(1,1,7001,{url:a,request:b});if(d.
|
|
393
|
+
break;case 12:B.data=O.f;case 8:if(d.Dd)throw Error("Request was aborted");m.timeMs=vu(f);return O["return"](fk(m));case 2:H=_.E(O);if(d.Dd)throw new _.N(1,1,7001,{url:a,request:b});if(d.gj)throw new _.N(1,1,1003,{url:a,request:b});if(H&&1001===H.code)throw H;_.Mh("Error while fetching data:",H);throw new _.N(1,1,1002,{url:a,error:H,request:b,status:-1},H);}})};
|
|
394
394
|
sk=function(a){try{var b=a.uris[a.uriIndex],c=_.cv(b);return{U:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{U:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
|
|
395
395
|
_.cv=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.Mh("Bad data URI, failed to parse scheme"),new _.N(_.P,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.Mh("Bad data URI, failed to extract encoding and MIME type"),new _.N(_.P,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?_.Qj(a).buffer:_.S.bb(a).buffer,contentType:c}};
|
|
396
|
-
_.
|
|
397
|
-
_.xv=function(a){a=a.getConfiguration();a=_.M.
|
|
396
|
+
_.ev=function(a,b){var c=_.ql(_.rl(a),_.sl(a));_.dv[c]=b};_.nv=function(a){a=_.ql(_.rl(a),_.sl(a));return _.dv[a]||null};_.wv=function(a){a=_.ql(_.rl(a),_.sl(a));delete _.dv[a]};
|
|
397
|
+
_.xv=function(a){a=a.getConfiguration();a=_.M.fb(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.ig?a.backgroundColor:null;this.V=typeof a.windowColor===_.ig?a.windowColor:null;this.N=typeof a.fontColor===_.ig?a.fontColor:null;this.P=typeof a.fontFamily===_.ig?a.fontFamily:null;this.I=typeof a.fontSize===_.ig?a.fontSize:null;this.B=typeof a.fontSizePercent===_.k?a.fontSizePercent:null;this.H=typeof a.edgeColor===_.ig?a.edgeColor:"rgba(0, 0, 0, 1)";this.o=null;typeof a.edgeType===
|
|
398
398
|
_.ig&&(this.o=a.edgeType)};_.Cv=function(a){if(!a.o)return null;var b=a.H;switch(a.o){case yv:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case zv:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case Av:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case Bv:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.We}};Dv=function(a){this.f=a;this.a=null;this.g=new _.K("clpp.text.Mp4TextParser")};
|
|
399
|
-
_.Fv=function(a){_.xv.call(this,a);this.l=a.getSurface().getMedia();this.f="clpp-video-"+Ev++;this.h=document.createElement(_.kg);this.j=this.w=!1;_.Dq(this.l,this.f);document.head.appendChild(this.h);this.
|
|
400
|
-
if(typeof Object.setPrototypeOf==_.ue)Iv=Object.setPrototypeOf;else{var Jv;a:{var Kv={
|
|
399
|
+
_.Fv=function(a){_.xv.call(this,a);this.l=a.getSurface().getMedia();this.f="clpp-video-"+Ev++;this.h=document.createElement(_.kg);this.j=this.w=!1;_.Dq(this.l,this.f);document.head.appendChild(this.h);this.Ob()};Gv=function(){};_.Hv=function(){};_.ah=[];eh=typeof Object.create==_.ue?Object.create:function(a){function b(){}b.prototype=a;return new b};
|
|
400
|
+
if(typeof Object.setPrototypeOf==_.ue)Iv=Object.setPrototypeOf;else{var Jv;a:{var Kv={vj:!0},Lv={};try{Lv.__proto__=Kv;Jv=Lv.vj;break a}catch(a){}Jv=!1}Iv=Jv?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
|
|
401
401
|
var fh=Iv,jh=typeof Object.defineProperties==_.ue?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},hh="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;kh.prototype.toString=function(){return this.a};var ih=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new kh("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
|
|
402
402
|
nh.prototype.A=function(a){this.f=a};nh.prototype["return"]=function(a){this.h={"return":a};this.a=this.j};nh.prototype.F=function(a){this.a=a};
|
|
403
403
|
Ah("Promise",function(a){function b(g){this.f=0;this.l=void 0;this.a=[];var h=this.j();try{g(h.resolve,h.reject)}catch(l){h.reject(l)}}function c(){this.a=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.f=function(g){if(null==this.a){this.a=[];var h=this;this.h(function(){h.l()})}this.a.push(g)};var e=hh.setTimeout;c.prototype.h=function(g){e(g,0)};c.prototype.l=function(){for(;this.a&&this.a.length;){var g=this.a;this.a=[];for(var h=0;h<g.length;++h){var l=
|
|
@@ -405,23 +405,23 @@ g[h];g[h]=null;try{l()}catch(m){this.j(m)}}}this.a=null};c.prototype.j=function(
|
|
|
405
405
|
b.prototype.B=function(g){var h=void 0;try{h=g.then}catch(l){this.h(l);return}typeof h==_.ue?this.H(h,g):this.o(g)};b.prototype.h=function(g){this.w(2,g)};b.prototype.o=function(g){this.w(1,g)};b.prototype.w=function(g,h){if(0!=this.f)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.f);this.f=g;this.l=h;this.A()};b.prototype.A=function(){if(null!=this.a){for(var g=0;g<this.a.length;++g)f.f(this.a[g]);this.a=null}};var f=new c;b.prototype.G=function(g){var h=this.j();
|
|
406
406
|
g.De(h.resolve,h.reject)};b.prototype.H=function(g,h){var l=this.j();try{g.call(h,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,h){function l(q,t){return typeof q==_.ue?function(v){try{m(q(v))}catch(z){n(z)}}:t}var m,n,p=new b(function(q,t){m=q;n=t});this.De(l(g,m),l(h,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.De=function(g,h){function l(){switch(m.f){case 1:g(m.l);break;case 2:h(m.l);break;default:throw Error("Unexpected state: "+
|
|
407
407
|
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=_.w(g),n=m.next();!n.done;n=m.next())d(n.value).De(h,l)})};b.all=function(g){var h=_.w(g),l=h.next();return l.done?d([]):new b(function(m,n){function p(v){return function(z){q[v]=z;t--;0==t&&m(q)}}var q=[],t=0;do q.push(void 0),t++,d(l.value).De(p(q.length-1),n),l=h.next();while(!l.done)})};return b});var Ch=this||self;
|
|
408
|
-
Ch.a=!0;_.M={
|
|
409
|
-
_.M.
|
|
410
|
-
_.M.
|
|
408
|
+
Ch.a=!0;_.M={sj:20,fb:function(a){var b=_.M.R,c=_.M.oi,d=_.M.ra;return b(a)||c(a)?a:d(a)}};_.J("clpp.utils.obj.cloneItem",_.M.fb);_.M.ra=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=_.M.xi(c,{merging:b[d]},1));return c.merging||null};_.J("clpp.utils.obj.merge",_.M.ra);_.M.Ac=function(a){for(var b in a)if(void 0!==a[b])return!0;return!1};
|
|
409
|
+
_.M.xi=function(a,b,c){var d=_.M.R,e=_.M.oi,f=_.M.xi,g=_.M.Lb,h=_.M.bm,l=_.M.$f,m=_.M.Xl,n=_.M.kd;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<_.M.sj&&(a[p]=f(a[p],n,c));return a};_.M.oi=function(a){a=typeof a;return a===_.ig||a===_.k||a===_.id};_.M.Xl=function(a){return a instanceof Element};_.M.R=function(a){return null===a||"undefined"===typeof a};_.M.kd=function(a){return typeof a===_.Xe};
|
|
410
|
+
_.M.Lb=function(a){return typeof a===_.ue};_.M.ea=function(a){return typeof a===_.ig};_.M.va=function(a){return typeof a===_.k};_.M.ji=function(a){return typeof a===_.id};_.M.$f=function(a){var b=_.M.kd,c=_.M.R;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.M.bm=function(a){var b=_.M.kd,c=_.M.Lb;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
|
|
411
411
|
_.M.oa=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||!_.M.kd(a)||!_.M.kd(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var h=e[g];if(_.M.R(d)||0>d.indexOf(h))if(f[h]=!0,a[h]!==b[h])return!1}if(_.M.R(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.M.R(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
|
|
412
|
-
_.M.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.M.
|
|
413
|
-
_.M.
|
|
414
|
-
_.M.
|
|
412
|
+
_.M.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.M.Yl=function(a,b,c){return a>=b&&a<=c};_.M.Wg=function(a){for(var b=new Map,c=_.w(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b};_.M.Xg=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};
|
|
413
|
+
_.M.Zh=function(a,b){for(var c=b.toLowerCase(),d=_.w(Object.entries(a)),e=d.next();!e.done;e=d.next()){var f=_.w(e.value);e=f.next().value;f=f.next().value;if(e.toLowerCase()===c)return f}return null};_.M.ri=function(a,b){for(var c in a){if(!(c in b))return!1;var d=a[c],e=b[c];if(d&&typeof d===_.Xe&&e&&typeof e===_.Xe){if(!_.M.ri(d,e))return!1}else if(void 0!==d&&void 0!==e&&d!==e)return!1}return!0};
|
|
414
|
+
_.M.si=function(a,b){if(!_.M.ri(a,b))return!1;for(var c in b){if(!(c in a))return!0;var d=a[c],e=b[c];if(!d&&e||d&&typeof d===_.Xe&&e&&typeof e===_.Xe&&_.M.si(d,e))return!0}return!1};var Hh={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.J("clpp.log.Level",Hh);var Eh=3,Dh={},Mv=[];_.J("clpp.log.getLoggers",function(){return _.M.fb(Dh)});_.J("clpp.log.addInterceptor",function(a){a&&Mv.push(a)});_.J("clpp.log.removeInterceptor",function(a){a&&(a=Mv.indexOf(a),0<=a&&Mv.splice(a,1))});_.J("clpp.log.getTagLevel",Fh);_.J("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Dh[a]});_.J("clpp.log.setTagLevel",function(a,b){a&&(_.M.ea(b)&&(b=Ih(b)),Dh[a]=b)});
|
|
415
415
|
_.J("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.M.ea(a)&&(a=Ih(a));Eh=a});_.J("clpp.log.getLogLevel",function(){return Eh});_.u=_.K.prototype;
|
|
416
416
|
_.u.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=Fh(this.tag);if(0<=d){if(d<c)return}else if(Eh<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):
|
|
417
417
|
1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.w(Mv);for(var e=d.next();!e.done;e=d.next())e=e.value,e.call(e,c,arguments)}};_.u.info=function(a){Array.prototype.unshift.call(arguments,3);this.log.apply(this,arguments)};_.u.debug=function(a){Array.prototype.unshift.call(arguments,4);this.log.apply(this,arguments)};_.u.warn=function(a){Array.prototype.unshift.call(arguments,2);this.log.apply(this,arguments)};
|
|
418
|
-
_.u.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.u.
|
|
418
|
+
_.u.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.u.Zk=function(a){return a?this.tag?new _.K(this.tag+"."+a):new _.K(a):this};_.J("clpp.log.Logger",_.K);_.K.prototype.createChild=_.K.prototype.Zk;_.K.prototype.error=_.K.prototype.error;_.K.prototype.warn=_.K.prototype.warn;_.K.prototype.debug=_.K.prototype.debug;_.K.prototype.info=_.K.prototype.info;_.K.prototype.log=_.K.prototype.log;var Jh=new _.K("clpp");_.J("clpp.log.info",_.Kh);
|
|
419
419
|
_.J("clpp.log.debug",_.Lh);_.J("clpp.log.warn",_.Gh);_.J("clpp.log.error",_.Mh);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.Ph=new _.K("clpp.players");_.Oh={};_.Sh.prototype.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.Sh.prototype.get=function(a){return(a=this.a[a])?a.slice():[]};_.Sh.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};_.Sh.prototype.clear=function(){this.a={}};Th.prototype.Wa=function(a){try{this.Wc.handleEvent?this.Wc.handleEvent(a):this.Wc.call(this.a,a)}catch(b){_.Mh("clpp","Uncaught exception in event handler for event '"+this.f+"'",b,b?b.message:null,b?b.stack:null)}};_.L.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};_.L.prototype.stopImmediatePropagation=function(){this.f=!0};_.L.prototype.stopPropagation=function(){};_.u=Uh.prototype;
|
|
420
|
-
_.u.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].Wa(a),b[c].
|
|
420
|
+
_.u.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].Wa(a),b[c].En&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.u.on=function(a,b,c){this.a.push(a,new Th(a,b,c||this.f));return b};_.u.one=function(a,b,c){this.a.push(a,new Th(a,b,c||this.f,!0));return b};_.u.off=function(a,b){var c=this.a.get(a),d=!1;if(c)for(var e=0;e<c.length;e++)c[e].Wc===b&&(d=this.a.remove(a,c[e])||d);return d};_.u.clear=function(){this.a.clear()};_.Vh.prototype.release=function(){_.Yh(this)};_.Vh.prototype.on=function(a,b,c,d){a=new Zh(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.Vh.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)};_.Vh.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||(Xh(f),this.a.remove(b,f))}};$h.prototype.release=function(){this.j.release();this.a=new Set;this.f.clear();null!=this.h&&(clearInterval(this.h),this.h=null)};$h.prototype.destroy=function(){var a=this;return _.I(function(b){a.release();_.C(b)})};$h.prototype.getTimelineCues=function(){return Array.from(this.a.values()).sort(function(a,b){return a.startTime-b.startTime})};_.Ki.prototype.oa=function(a){return this.payload===a.payload&&this.startTime===a.startTime&&this.endTime===a.endTime&&this.payloadType===a.payloadType};_.J("clpp.text.Cue",_.Ki);_.Ki.positionAlign={LEFT:_.Ee,RIGHT:_.Fe,CENTER:_.sd,AUTO:"auto"};_.Ei="text";_.Ki.payloadType={TEXT:_.Ei,VTT_XML:_.Ng,TTML_XML:_.sg};_.Fi=_.sd;_.Nv={LEFT:_.Be,RIGHT:_.Sf,CENTER:_.Fi,START:_.Be,END:_.Sf};_.Ki.textAlign=_.Nv;var Ji="ltr";_.Ki.direction={HORIZONTAL_LEFT_TO_RIGHT:Ji,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.Gi="horizontal-tb";
|
|
421
421
|
_.Ki.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Gi,VERTICAL_LEFT_TO_RIGHT:_.Eg,VERTICAL_RIGHT_TO_LEFT:_.Fg};_.Hi=0;_.Ki.lineInterpretation={LINE_NUMBER:_.Hi,PERCENTAGE:1};_.Ii=_.eg;_.Ov={CENTER:_.sd,START:_.Ii,END:_.oe};_.Ki.lineAlign=_.Ov;_.J("clpp.text.CueRegion",_.Ni);_.Li=1;_.Ni.units={PX:0,PERCENTAGE:_.Li,LINES:2};var Mi="";_.Ni.scrollMode={NONE:Mi,UP:"up"};_.Ni.displayAlign={BEFORE:"flex-end",CENTER:_.sd,AFTER:"flex-start"};
|
|
422
422
|
_.Ni.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Hd,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};Oi.prototype.destroy=function(){this.a.release();this.j=!1;this.l=this.a=this.h=this.f=null;return Promise.resolve()};Oi.prototype.start=function(a){var b=this;this.j?this.g.warn("Already started. Ignoring request..."):(this.j=!0,this.h=a,this.f=this.h.textTracks,this.a.on(this.f,_.Mc,function(c){return Pi(b,c)}),this.a.on(this.f,ud,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.Zf&&(e.mode=_.we)}}))};
|
|
423
423
|
Oi.prototype.o=function(a){var b=new _.Ki(a.startTime,a.endTime,a.text,_.Ng);if(_.M.ea(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Eg;break;case "rl":b.writingMode=_.Fg}_.M.va(a.size)&&(b.size=a.size);if(_.M.ea(a.align))switch(a.align){case _.Be:case _.eg:b.textAlign=_.Be;break;case _.sd:b.textAlign=_.Fi;break;case _.Sf:case _.oe:b.textAlign=_.Sf}_.M.va(a.position)&&(b.position=a.position);if(_.M.ea(a.positionAlign))switch(a.positionAlign){case _.Ee:b.positionAlign=_.Ee;break;case _.sd:b.positionAlign=
|
|
424
|
-
_.sd;break;case _.Fe:b.positionAlign=_.Fe}_.M.va(a.line)&&(b.line=a.line);if(_.M.ea(a.lineAlign))switch(a.lineAlign){case _.eg:b.lineAlign=_.Ii;break;case _.sd:b.lineAlign=_.sd;break;case _.oe:b.lineAlign=_.oe}_.M.
|
|
424
|
+
_.sd;break;case _.Fe:b.positionAlign=_.Fe}_.M.va(a.line)&&(b.line=a.line);if(_.M.ea(a.lineAlign))switch(a.lineAlign){case _.eg:b.lineAlign=_.Ii;break;case _.sd:b.lineAlign=_.sd;break;case _.oe:b.lineAlign=_.oe}_.M.ji(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.Hi:1);return b};_.x(_.N,Error);_.N.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=Qi(this.severity,this.category,this.code,this.data))};_.N.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.J("clpp.Error",_.N);_.P=2;_.N.Severity={RECOVERABLE:1,FATAL:_.P};_.N.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
|
|
425
425
|
_.N.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,
|
|
426
426
|
TEXT_PARSER_MISSING:2012,THUMBNAILS_FAILED_TO_LOAD:2013,THUMBNAIL_ERROR:2014,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,
|
|
427
427
|
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,PAUSE_FAILED:3201,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,
|
|
@@ -431,51 +431,51 @@ HLS_INVALID_VALUE:4044,HLS_DISCONTINUITY_NOT_SUPPORTED:4045,HLS_UNSUPPORTED_FEAT
|
|
|
431
431
|
NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,REQUESTED_DRM_ENVIRONMENT_UNAVAILABLE:6015,INIT_DATA_TRANSFORM_ERROR:6016,CERTIFICATE_REQUEST_FAILED:6100,NO_CONTENT_ID:6101,SERVER_CERTIFICATE_REQUIRED:6102,EXTRACT_CONTENT_ID_MODIFIER_ERROR:6103,FAILED_TO_PERSIST_SESSION:6200,FAILED_TO_REMOVE_SESSION:6201,INVALID_SESSION_STORAGE_IMPLEMENTATION:6202,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,CANNOT_LOAD_SOURCE:7003,MEDIA_ELEMENT_NOT_FOUND:7004,INVALID_MEDIA_ELEMENT:7005,
|
|
432
432
|
INVALID_CONTAINER_ELEMENT:7006,INVALID_ARGUMENT:7007,WRONG_ORDER_OF_OPERATIONS:7008,NOT_SUPPORTED:7009,INVALID_CONFIGURATION:7100,INVALID_LICENSE:7101,NO_ELEMENT:7102,USER_ID_NOT_PROVIDED:7103,KEY_LOAD_ERROR:7104,TIZEN_INTERNAL_ERROR:7200,CAF_INTERNAL_ERROR:7300,INTERNAL_CAST_ERROR:8E3,CAST_API_NOT_READY:8001,NO_RECEIVERS_AVAILABLE:8002,ALREADY_CASTING:8003,NO_CAST_SESSION:8004,CONVIVA_SDK_NOT_LOADED:9E3,CONVIVA_INVALID_CONFIGURATION:9001,CONVIVA_RUNTIME_ERROR:9002,GL_CONTEXT_ERROR:9003,GL_SHADER_ERROR:9004,
|
|
433
433
|
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,MUX_SDK_MISSING:9301,MUXDATA_INIT_ERROR:9302,IMA_SDK_MISSING:1E4,IMA_INVALID_CONFIGURATION:10001,IMA_UNSUPPORTED_PLATFORM:10002,AD_ERROR:10003,SIMID_CONTAINER_MISSING:10100,BROADPEAK_SDK_MISSING:11E3,BROADPEAK_SESSION_ERROR:11001,FREEWHEEL_SDK_MISSING:12E3,FREEWHEEL_INVALID_CONFIGURATION:12001,CONTENT_TRANSFORMATION_FAILED:14E3,
|
|
434
|
-
SESSIONS_INVALID_CONFIGURATION:15E3};_.x(_.Ri,Error);var bj=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;_.u=_.Wi.prototype;_.u.
|
|
435
|
-
_.u.resolve=function(a){var b=new _.Wi(this);"data"===b.
|
|
434
|
+
SESSIONS_INVALID_CONFIGURATION:15E3};_.x(_.Ri,Error);var bj=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;_.u=_.Wi.prototype;_.u.xb="";_.u.Gc="";_.u.ob="";_.u.pd=null;_.u.Ka="";_.u.xc="";_.u.toString=function(){var a=[],b=this.xb;b&&a.push(ej(b,Pv,!0),":");if(b=this.ob){a.push("//");var c=this.Gc;c&&a.push(ej(c,Pv,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.pd;null!=b&&a.push(":",String(b))}if(b=this.Ka)this.ob&&"/"!=b.charAt(0)&&a.push("/"),a.push(ej(b,"/"==b.charAt(0)?Qv:Rv,!0));(b=this.a.toString())&&a.push("?",b);(b=this.xc)&&a.push("#",ej(b,Sv));return a.join("")};
|
|
435
|
+
_.u.resolve=function(a){var b=new _.Wi(this);"data"===b.xb&&(b=new _.Wi);var c=!!a.xb;c?Xi(b,a.xb):c=!!a.Gc;c?b.Gc=a.Gc:c=!!a.ob;c?_.Yi(b,a.ob):c=null!=a.pd;var d=a.Ka;if(c)Zi(b,a.pd);else if(c=!!a.Ka){if("/"!=d.charAt(0))if(this.ob&&!this.Ka)d="/"+d;else{var e=b.Ka.lastIndexOf("/");-1!=e&&(d=b.Ka.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(""):
|
|
436
436
|
".."==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.Ka=d:c=""!==a.a.toString();c?_.$i(b,aj(a.a)):c=!!a.xc;c&&(b.xc=a.xc);return b};var Pv=/[#\/\?@]/g,Rv=/[#\?:]/g,Qv=/[#\?]/g,fj=/[#\?@]/g,Sv=/#/g;_.dj.prototype.a=null;_.dj.prototype.h=null;_.dj.prototype.add=function(a,b){_.hj(this);this.f=null;var c=this.a.hasOwnProperty(a)&&this.a[a];c||(this.a[a]=c=[]);c.push(b);null!==this.h&&this.h++;return this};
|
|
437
|
-
_.dj.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")};var ij;_.Q="text";_.nq={VIDEO:_.r,AUDIO:_.$c,TEXT:_.Q,
|
|
437
|
+
_.dj.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")};var ij;_.Q="text";_.nq={VIDEO:_.r,AUDIO:_.$c,TEXT:_.Q,no:_.Rc,IMAGE:_.ye,uj:_.lg};_.Tv=1/15;ij={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4/,/^dts[cex]$/,/^iamf/,/^mhm[12]/],video:[/^avc/,/^hev/,/^hvc/,/^vvc/,/^vvi/,/^vp0?[89]/,/^av01/,/^dvh/,/^dva/,/^dav/]};ij[_.Q]=[/^vtt$/,/^wvtt/,/^stpp/];var kj={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av0?1/],text:[/^vtt$/,/^wvtt/,/^stpp/]};_.nj={text:{mp4:Uc,m4s:Uc,m4i:Uc,cmft:Uc,vtt:_.og,ttml:_.Xc},video:{mp4:_.Ig,m4s:_.Ig,m4i:_.Ig,m4v:_.Ig,cmfv:_.Ig,ts:_.Hg},audio:{mp4:_.dd,m4s:_.dd,m4i:_.dd,m4a:_.dd,cmfa:_.dd,ts:_.Hg,aac:_.ad,ec3:_.cd,ac3:_.bd},image:{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.pj.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};_.pj.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name===a});return b.length?b[0]:null};_.tj.prototype.getPosition=function(){return this.position};_.tj.prototype.Wd=function(){return this.na?this.na-this.Aa+1:null};_.tj.prototype.f=bh(0);_.x(_.uj,_.tj);var xj=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",
|
|
438
438
|
"cs"],["dan","da"],["deu","de"],[_.Yd,"dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice",
|
|
439
439
|
"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",
|
|
440
440
|
"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",
|
|
441
441
|
"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",
|
|
442
|
-
"vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);var Fj=function Uv(a){var c;return _.zh(Uv,function(d){1==d.a&&(c=0);if(3!=d.a)return c<a?_.y(d,c,3):d.F(0);c++;return d.F(2)})};_.J("clpp.utils.BufferUtils",Cj);Cj.toArrayBuffer=Mj;Cj.toDataView=_.Lj;Cj.toInt32Array=_.Kj;Cj.toUint32Array=Jj;Cj.toUint16Array=Ij;Cj.toUint8Array=_.Ej;Cj.equal=Gj;_.S={};_.S.md=new _.K("clpp.utils.strings");_.S.
|
|
442
|
+
"vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);var Fj=function Uv(a){var c;return _.zh(Uv,function(d){1==d.a&&(c=0);if(3!=d.a)return c<a?_.y(d,c,3):d.F(0);c++;return d.F(2)})};_.J("clpp.utils.BufferUtils",Cj);Cj.toArrayBuffer=Mj;Cj.toDataView=_.Lj;Cj.toInt32Array=_.Kj;Cj.toUint32Array=Jj;Cj.toUint16Array=Ij;Cj.toUint8Array=_.Ej;Cj.equal=Gj;_.S={};_.S.md=new _.K("clpp.utils.strings");_.S.rj=16E3;_.S.fromCharCode=function(a){for(var b=_.S.rj,c="",d=0;d<a.length;d+=b)c+=String.fromCharCode.apply(null,a.subarray(d,d+b));return c};_.S.aa=function(a){if(!a)return"";a=_.Ej(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(Ya);return a}a=escape(_.S.fromCharCode(a));try{return decodeURIComponent(a)}catch(b){throw Error(Ya);}};
|
|
443
443
|
_.J("clpp.utils.strings.fromUtf8",_.S.aa);
|
|
444
444
|
_.S.yc=function(a,b,c){if(!a)return"";var d=_.S.md;if(!c&&0!==a.byteLength%2)throw d.error("Data has an incorrect length, must be even."),Error("Data does not seem to be UTF-16 encoded!");c=_.Ej(a);if(b&&255===c[0]&&254===c[1]||254===c[0]&&255===c[1])a=c.subarray(2);a instanceof ArrayBuffer?d=a:(c=new Uint8Array(a.byteLength),c.set(_.Ej(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 _.S.fromCharCode(c)};
|
|
445
445
|
_.S.Rd=function(a,b){if(_.M.ea(a))return a;var c="",d=!!b,e=_.Ej(a);239===e[0]&&187===e[1]&&191===e[2]?c=_.S.aa(e):254===e[0]&&255===e[1]?c=_.S.yc(e.subarray(2),!1):255===e[0]&&254===e[1]&&(c=_.S.yc(e.subarray(2),!0));var f=function(g,h){return g.byteLength<=h||32<=g[h]&&126>=g[h]}.bind(null,e);_.S.md.debug("Unable to find byte-order-mark, making an educated guess.");0===e[0]&&0===e[2]?c=_.S.yc(a,!1):0===e[1]&&0===e[3]?c=_.S.yc(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.S.aa(a));if(c)return d&&(c=escape(c)),
|
|
446
446
|
c;throw Error("Unable to detect text encoding");};_.J("clpp.utils.strings.fromBytesAutoDetect",_.S.Rd);_.S.bb=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};_.J("clpp.utils.strings.toUtf8",_.S.bb);_.S.lf=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};
|
|
447
447
|
_.J("clpp.utils.strings.toUtf16",_.S.lf);_.S.sd=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=Jj(e):2===c?f=Ij(e):f=_.Ej(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};_.J("clpp.utils.strings.toByteArray",_.S.sd);_.S.startsWith=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.J("clpp.utils.strings.startsWith",_.S.startsWith);
|
|
448
|
-
_.S.endsWith=function(a,b){if(String.prototype.endsWith)return a.endsWith(b);var c=a.length-b.length,d=a.lastIndexOf(b,c);return-1!==d&&d===c};_.J("clpp.utils.strings.endsWith",_.S.endsWith);_.S.Ye=function(a){return!!(a&&0<a.length)};_.S.empty=function(a){return!a||0===a.length};_.S.
|
|
448
|
+
_.S.endsWith=function(a,b){if(String.prototype.endsWith)return a.endsWith(b);var c=a.length-b.length,d=a.lastIndexOf(b,c);return-1!==d&&d===c};_.J("clpp.utils.strings.endsWith",_.S.endsWith);_.S.Ye=function(a){return!!(a&&0<a.length)};_.S.empty=function(a){return!a||0===a.length};_.S.Go=function(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()};_.S.Jo=function(a){return a.replace(/-(\w)/g,function(b,c){return c.toUpperCase()})};
|
|
449
449
|
_.S.Df=function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.M.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""}};_.J("clpp.utils.strings.bitrateToString",_.S.Df);
|
|
450
|
-
_.S.
|
|
451
|
-
_.S.
|
|
452
|
-
d+'".');c.add(d)})},Tf:function(a,b){var c=Array.isArray(b)?b:[b];return a.filter(function(d){d=_.rj(d,_.Yb);return c.includes(d)})},jd:function(a,b){return a.some(function(c){return c.name===b})},Ya:function(a,b,c){c=void 0===c?{}:c;a=a.find(function(d){return d.name===b})||null;if(!a&&c.required)throw new _.N(_.P,4,4024,{missingTag:b});return a},
|
|
453
|
-
d.getAttribute(_.Yb);d=d.getAttribute(_.bb);return e.value===b&&d.value===c})},
|
|
454
|
-
_.w(_.Y.jf(c)),e=d.next();!e.done;e=d.next())b(e.value,c)})},jf:function(a){var b=new Set;a.variants.forEach(function(c){c.audio&&b.add(c.audio);c.video&&b.add(c.video)});a.textStreams.forEach(function(c){return b.add(c)});a.thumbStreams.forEach(function(c){return b.add(c)});return Array.from(b)},
|
|
455
|
-
_.gc)return _.gc;if("EVENT"===a.value)return"EVENT";throw new _.N(_.P,4,4044,"Invalid EXT-X-PLAYLIST-TYPE value: "+a.value);},
|
|
456
|
-
_.se);return c},
|
|
457
|
-
na:e}},
|
|
458
|
-
"PART-HOLD-BACK",void 0,{required:b.
|
|
459
|
-
c.iv&&(c.iv=Uj(new Uint8Array(12),new Uint8Array([b>>24&255,b>>16&255,b>>8&255,b&255])));return c},
|
|
460
|
-
c){return b+c},0)},
|
|
461
|
-
re:a}:{delay:3*a,re:a}},Je:function(a,b){return a+":"+b},
|
|
462
|
-
for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=b.
|
|
450
|
+
_.S.gl=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)))};_.J("clpp.utils.strings.durationToString",_.S.gl);
|
|
451
|
+
_.S.il=function(a,b){for(var c in b)if(b[c]===a)return c;return""};_.S.Ql=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};_.J("clpp.utils.strings.hashCode",_.S.Ql);_.S.fo=function(a){_.S.cj.innerHTML=a;return _.S.cj.textContent};_.S.cj=document.createElement("span");_.S.Ig=function(a){a=a.replace(/<[^>]+>/gi,"");a=_.S.fo(a);return a=a.replace(/<[^>]+>/gi,"")};_.S.Ai=function(a){return a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")};_.J("clpp.utils.Uint8ArrayUtils",Nj);Nj.toStandardBase64=_.Oj;Nj.concat=Uj;Nj.equal=_.Tj;Nj.toHex=_.Sj;Nj.fromHex=_.Rj;Nj.fromBase64=_.Qj;Nj.toBase64Url=_.Pj;_.Y={Rb:function(a,b){return a.filter(function(c){return c.name===b})},hj:function(a){var b=/^[a-zA-Z0-9_-]+$/,c=new Set;a.forEach(function(d){var e=_.qj(d,"VALUE"),f=_.qj(d,"NAME"),g=_.qj(d,"IMPORT"),h=_.qj(d,"QUERYPARAM");if(1!==[f,g,h].filter(Boolean).length||f&&null==e)throw new _.N(_.P,4,4044,{message:"Invalid tag.",text:d.toString()});d=f||g||h;if(c.has(d))throw new _.N(_.P,4,4044,'EXT-X-DEFINE redefined variable "'+d+'".');if(!b.test(d))throw new _.N(_.P,4,4044,'EXT-X-DEFINE invalid variable name "'+
|
|
452
|
+
d+'".');c.add(d)})},Tf:function(a,b){var c=Array.isArray(b)?b:[b];return a.filter(function(d){d=_.rj(d,_.Yb);return c.includes(d)})},jd:function(a,b){return a.some(function(c){return c.name===b})},Ya:function(a,b,c){c=void 0===c?{}:c;a=a.find(function(d){return d.name===b})||null;if(!a&&c.required)throw new _.N(_.P,4,4024,{missingTag:b});return a},ai:function(a,b){return _.Y.Ya(a,b,{required:!0})},Cl:function(a,b,c){c=void 0===c?0:c;return(a=_.Y.Ya(a,b))?Number(a.value):c},Oo:function(a,b,c){return a.filter(function(d){var e=
|
|
453
|
+
d.getAttribute(_.Yb);d=d.getAttribute(_.bb);return e.value===b&&d.value===c})},rn:function(a){var b=_.Y.Ya(a,"EXT-X-TILES");if(!b)return{Xd:1,se:1,durationPerTile:null};a=_.qj(b,"LAYOUT")||"1x1";b=_.qj(b,_.Ea);a=_.Aj(a);return{Xd:a.Xd,se:a.se,durationPerTile:b?Number(b):null}},Jd:function(a,b,c){c=void 0===c?!0:c;a=new _.Wi(a);b=new _.Wi(b);b=a.resolve(b).toString();return c?b:decodeURI(b)},ki:function(a){return/^#(?!EXT)/m.test(a)},dm:function(a,b){Array.isArray(a)||(a=[a]);a.forEach(function(c){for(var d=
|
|
454
|
+
_.w(_.Y.jf(c)),e=d.next();!e.done;e=d.next())b(e.value,c)})},jf:function(a){var b=new Set;a.variants.forEach(function(c){c.audio&&b.add(c.audio);c.video&&b.add(c.video)});a.textStreams.forEach(function(c){return b.add(c)});a.thumbStreams.forEach(function(c){return b.add(c)});return Array.from(b)},Rl:function(a){return a.some(function(b){return _.Y.jd(b.X,La)})},Dj:function(a){return _.Y.jf(a).filter(_.Y.ii)},qn:function(a){if(_.Y.Ya(a,La))return _.gc;a=_.Y.Ya(a,Ra);if(!a)return"LIVE";if(a.value===
|
|
455
|
+
_.gc)return _.gc;if("EVENT"===a.value)return"EVENT";throw new _.N(_.P,4,4044,"Invalid EXT-X-PLAYLIST-TYPE value: "+a.value);},Dh:function(a){a={AUDIO:_.$c,VIDEO:_.r,SUBTITLES:_.Q,"CLOSED-CAPTIONS":_.Q}[a.toUpperCase()];if(!a)throw new _.N(_.P,4,4044,"EXT-X-MEDIA tag has an invalid TYPE attribute.");return a},Yk:function(a){var b=_.rj(a,_.Yb).toUpperCase();if(_.Y.Dh(b)!==_.Q)return null;a=a.getAttribute("FORCED");a=!(!a||!a.value||"YES"!==a.value.toUpperCase());var c=_.lg;b===_.pa&&(c=_.nd);a&&(c=
|
|
456
|
+
_.se);return c},Pi:function(a,b,c){c=void 0===c?!1:c;var d=0,e=null;if(a){d=a.split("@");a=Number(d[0]);if(0>=a)throw new _.N(_.P,4,4044,"Byte range length must be positive.");if(d[1]){if(d=Number(d[1]),0>d)throw new _.N(_.P,4,4044,"Byte range start byte must not be negative.");}else{if(c)throw new _.N(_.P,4,4044,"Invalid byte range, offset is required but missing.");if(null==b)throw new _.N(_.P,4,4044,"Invalid byte range, cannot calculate offset based on previous byte ranges.");d=b+1}e=d+a-1}return{Aa:d,
|
|
457
|
+
na:e}},Ri:function(a,b){var c=_.Y.Ya(a,Ha);return _.Y.Pi(c?c.value:null,b)},kn:function(a){a=_.Y.ai(a,"EXTINF").value.split(",");return{duration:Number(a[0]),title:a[1]||null}},Si:function(a,b){function c(f){return null==f?null:Number(f)}b=void 0===b?{}:b;var d={hh:!1,Jj:!1,Kj:null,Sl:null,Ti:null},e=_.Y.Ya(a,Ua,{required:b.Zi});if(!e)return d;d.hh="YES"===_.qj(e,"CAN-BLOCK-RELOAD");d.Jj="YES"===_.qj(e,"CAN-SKIP-DATERANGES");d.Kj=c(_.qj(e,"CAN-SKIP-UNTIL"));d.Sl=c(_.qj(e,"HOLD-BACK"));d.Ti=c(_.qj(e,
|
|
458
|
+
"PART-HOLD-BACK",void 0,{required:b.Zi}));return d},Qi:function(a,b,c){c=void 0===c?!1:c;a=_.qj(a,"BYTERANGE");return _.Y.Pi(a,b,c)},nn:function(a){var b=_.Y.Rb(a,"EXT-X-MEDIA"),c=_.Y.Rb(a,_.Va);a=_.Y.Rb(a,"EXT-X-IMAGE-STREAM-INF");return{nd:{Bj:_.Y.Tf(b,["AUDIO",_.fc]),closedCaptions:_.Y.Tf(b,_.pa),Yn:_.Y.Tf(b,_.Qb)},te:c,Yf:a}},$k:function(a,b){var c=_.Y.Ri(a.X,null);return new _.uj(0,0,0,function(){return[a.a]},c.Aa,c.na,0,b)},Vf:function(a,b){if(null==a)return null;var c=Object.assign({},a);null==
|
|
459
|
+
c.iv&&(c.iv=Uj(new Uint8Array(12),new Uint8Array([b>>24&255,b>>16&255,b>>8&255,b&255])));return c},Jl:function(a){var b=a.T;a=b[0].startTime;b=b[b.length-1].endTime;return{ic:a,Ve:b,duration:b-a}},Gl:function(a){var b=Infinity,c=Infinity;_.Y.Dj(a).forEach(function(d){d=_.Y.Jl(d);b=Math.min(b,d.ic);c=Math.min(c,d.duration)});return{ic:b,duration:c}},ii:function(a){return a.type===_.$c||a.type===_.r},kl:function(a){return a.filter(_.Y.ii)},Fl:function(a){return a.map(function(b){return _.Y.Gl(b).duration}).reduce(function(b,
|
|
460
|
+
c){return b+c},0)},yl:function(a,b){return a&&b?_.yp(a.drmInfos,b.drmInfos)?_.xp(a.drmInfos,b.drmInfos):null:a?a.drmInfos:b?b.drmInfos:null},bl:function(a,b){return(b?b.Vb():"")+" - "+(a?a.Vb():"")},Fh:function(a){return(a.video?a.video.oc:"")+" - "+(a.audio?a.audio.oc:"")},mn:function(a,b,c,d){if(b===_.gc)return{delay:0,re:0};b=_.Y.Ya(a,Qa);if(c&&b)return c=Number(_.rj(b,"PART-TARGET")),null!=d?{delay:d,re:c}:{delay:_.Y.Si(a,{Zi:!0}).Ti,re:c};a=_.Y.ai(a,Xa);a=Number(a.value);return null!=d?{delay:d,
|
|
461
|
+
re:a}:{delay:3*a,re:a}},Je:function(a,b){return a+":"+b},bo:function(a){var b=_.Y.Je,c=new Map;a.forEach(function(d){var e=b(d.Gd(),d.Dl());c.has(e)?(e=c.get(e),e.includes(d)||e.push(d)):c.set(e,[d])});return c},Wh:function(a){return _.vj(a||_.ug)},fn:function(a){var b=new Map;a=_.w(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=_.qj(c,_.mb);d=_.Y.Wh(d);var e=_.rj(c,_.bb);c=_.rj(c,"INSTREAM-ID");b.has(e)||b.set(e,new Map);b.get(e).set(c,d)}return b},fl:function(a){a=_.w(a.audio.concat(a.video));
|
|
462
|
+
for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=b.xl().filter(function(d){return"mp4a.40.34"!==d});b.On(c)}},sn:function(a){if(null==a.getAttribute("FRAME-RATE")&&null==a.getAttribute(_.Nb))return null;var b=_.qj(a,"FRAME-RATE");a=_.qj(a,_.Nb);var c=_.w(a?a.split("x"):[null,null]);a=c.next().value;c=c.next().value;return{frameRate:yj(b),width:yj(a),height:yj(c)}},cm:function(a){return"EXT-X-MEDIA"!==a.name?!0:_.qj(a,_.Yb)===_.Qb},gn:function(a,b,c,d){var e=_.qj(a,"ID"),f=_.qj(a,"START-DATE");
|
|
463
463
|
if(null===e||null===f)return _.Y.g.warn("Invalid EXT-X-DATERANGE missing mandatory ID or START-DATE attribute, ignoring the EXT-X-DATERANGE tag.",a),null;b=d?c-b:-b;var g=new Date(f);f=g.getTime()/1E3+b;e={id:e,startTime:f,startDate:g};c=yj(_.qj(a,_.Ea));void 0!==c&&0<=c&&(e.duration=c);d=yj(_.qj(a,"PLANNED-DURATION"));void 0!==d&&0<=d&&(e.plannedDuration=d);var h=_.qj(a,"CLASS");null!==h&&(e.schemeIdUri=h);var l=_.qj(a,"END-DATE");l=l?new Date(l):null;null!==l&&l.getTime()>=g.getTime()&&(e.endDate=
|
|
464
|
-
l);g=_.Y.
|
|
465
|
-
a:null},
|
|
466
|
-
b){if(!a)return null;var c=a.oc;return b.find(function(d){return d.Vb()===c})||null}};_.Y.g=new _.K("clpp.hls.Utils");_.Vv=new Set([_.Ka,La,"EXT-X-I-FRAMES-ONLY",_.Pa,Qa,Ra,Ua,Xa]);_.Wv=new Set(["EXTINF",Ha,_.Ja,_.Na,_.Oa,_.Ta]);_.Xv=new Set(["EXT-X-PART",_.Sa]);_.Yv=new Set([_.Ia]);var Yj=[403,401];_.J("clpp.net.DEFAULT_FATAL_STATUS_CODES",Yj);_.J("clpp.net.makeRequest",_.dk);_.ck=6;_.J("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.ck,CONTENT_STEERING:7});_.lk.prototype.resolve=function(){};_.lk.prototype.reject=function(){};_.mk.prototype.abort=function(){this.a=!0;return this.A()};_.ok.prototype.destroy=function(){for(var a=[],b=_.w(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.U["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.u=_.yk.prototype;_.u.
|
|
464
|
+
l);g=_.Y.en(a)||{};var m=_.qj(a,"CUE");m&&(g.CUE=m.split(","));if(h===Kd){h=_.Y.ln(a);if(null===h)return _.Y.g.warn("Invalid interstitial attributes, ignoring the EXT-X-DATERANGE tag.",a),null;g=Object.assign(g,h)}_.M.Ac(g)&&(e.customAttributes=g);e.endTime=l?l.getTime()/1E3+b:c?f+c:d?f+d:f;e.type=_.ti;return e},en:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.w(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c.name.trim().startsWith("X-")&&(a[c.name]=c.value);return _.M.Ac(a)?
|
|
465
|
+
a:null},ln:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.w(b);for(var c=b.next();!c.done;c=b.next())switch(c=c.value,c.name){case nc:a[nc]=c.value;break;case mc:a[mc]=c.value;break;case qc:a[qc]=yj(c.value);break;case oc:a[oc]=yj(c.value);break;case "X-SNAP":a["X-SNAP"]=c.value.split(",");break;case pc:a[pc]=c.value.split(",")}return a[nc]&&a[mc]||!a[nc]&&!a[mc]?(_.Y.g.warn("Invalid EXT-X-DATERANGE Interstitial attributes X-ASSET-URI, X-ASSET-LIST"),null):_.M.Ac(a)?a:null},Ph:function(a,
|
|
466
|
+
b){if(!a)return null;var c=a.oc;return b.find(function(d){return d.Vb()===c})||null}};_.Y.g=new _.K("clpp.hls.Utils");_.Vv=new Set([_.Ka,La,"EXT-X-I-FRAMES-ONLY",_.Pa,Qa,Ra,Ua,Xa]);_.Wv=new Set(["EXTINF",Ha,_.Ja,_.Na,_.Oa,_.Ta]);_.Xv=new Set(["EXT-X-PART",_.Sa]);_.Yv=new Set([_.Ia]);var Yj=[403,401];_.J("clpp.net.DEFAULT_FATAL_STATUS_CODES",Yj);_.J("clpp.net.makeRequest",_.dk);_.ck=6;_.J("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.ck,CONTENT_STEERING:7});_.lk.prototype.resolve=function(){};_.lk.prototype.reject=function(){};_.mk.prototype.abort=function(){this.a=!0;return this.A()};_.ok.prototype.destroy=function(){for(var a=[],b=_.w(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.U["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.u=_.yk.prototype;_.u.Tn=function(a){0<a?_.Gh("Rate limit set to "+a+"bps"):_.Gh("Rate limit disabled");this.l=a};_.u.release=function(){return this.o.destroy()};_.u.destroy=function(){this.w=!0;this.f=[];this.h=[];return this.o.destroy()};_.u.Bf=function(a){this.f.push(a)};_.u.Sc=function(a){this.h.push(a)};_.u.zg=function(a){this.f=this.f.filter(function(b){return b!==a})};_.u.me=function(a){this.h=this.h.filter(function(b){return b!==a})};
|
|
467
467
|
_.u.fetch=function(a){var b=this;if(this.w)return new Wu(Promise.reject(new _.N(1,1,7001,{url:a.uris[a.uriIndex],request:a})));this.l&&0<this.l&&(a.rateLimitBps=this.l);for(var c=[],d=_.w(this.f),e=d.next();!e.done;e=d.next())c.push(e.value);if(a.requestModifiers)for(d=_.w(a.requestModifiers),e=d.next();!e.done;e=d.next())c.push(e.value);a.requestModifiers=c;Ck(this,a);c=[];d=_.w(this.h);for(e=d.next();!e.done;e=d.next())c.push(e.value);if(a.responseModifiers)for(d=_.w(a.responseModifiers),e=d.next();!e.done;e=
|
|
468
468
|
d.next())c.push(e.value);a.responseModifiers=c;d=c=new _.lk;try{var f={},g=_.w(a.requestModifiers);for(e=g.next();!e.done;f={uf:f.uf},e=g.next())f.uf=e.value,d=d.then(function(n){return function(p){if(h.a)throw new _.N(_.P,1,7001,p?{url:p.uris[p.uriIndex],request:p}:null);return n.uf(p)||p}}(f))["catch"](function(n){if(n instanceof _.N)throw n;throw new _.N(_.P,1,1006,null,n);});d=d.then(function(n){return{request:n,plugin:Dk(b,n)}});var h=new Wu(d);g={};var l=_.w(a.responseModifiers);for(e=l.next();!e.done;g=
|
|
469
469
|
{xe:g.xe},e=l.next())g.xe=e.value,h.then(function(n){return function(p){function q(){if(h.a)throw new _.N(_.P,1,7001,p?{url:p.request.uris[p.request.uriIndex],request:p.request}:null);}q();var t=n.xe(p)||p;q();return t}}(g))["catch"](function(n){return function(p){if(p instanceof _.N&&p.data&&p.data.response){var q=n.xe(p.data.response);if(q&&q.then)return q.then(function(){return Promise.reject(p)})}return Promise.reject(p)}}(g))["catch"](function(n){if(n instanceof _.N)throw n;throw new _.N(_.P,
|
|
470
470
|
1,1007,null,n);});l={};var m=_.w(this.j);for(e=m.next();!e.done;l={vf:l.vf},e=m.next())l.vf=e.value,h["catch"](function(n){return function(p){p instanceof _.N&&p.data&&p.data.response||n.vf({uri:a.uris[a.uriIndex],data:(new Uint8Array(0)).buffer,status:-1,timeMs:0,headers:{},request:a});return Promise.reject(p)}}(l))["catch"](function(n){if(n instanceof _.N)throw n;throw new _.N(_.P,1,1007,null,n);});_.rk(this.o,h);c.resolve(a);return h}catch(n){return new Wu(Promise.reject(n))}};
|
|
471
|
-
_.J("clpp.net.NetworkEngine",_.yk);_.yk.prototype.fetch=_.yk.prototype.fetch;_.yk.prototype.removeResponseModifier=_.yk.prototype.me;_.yk.prototype.removeRequestModifier=_.yk.prototype.
|
|
471
|
+
_.J("clpp.net.NetworkEngine",_.yk);_.yk.prototype.fetch=_.yk.prototype.fetch;_.yk.prototype.removeResponseModifier=_.yk.prototype.me;_.yk.prototype.removeRequestModifier=_.yk.prototype.zg;_.yk.prototype.addResponseModifier=_.yk.prototype.Sc;_.yk.prototype.addRequestModifier=_.yk.prototype.Bf;_.yk.prototype.setRateLimit=_.yk.prototype.Tn;var Ik;_.Ek.prototype.oa=function(a){return this.type===a.type&&this.channelsCount===a.channelsCount&&this.frameRate===a.frameRate&&this.trickPlay===a.trickPlay&&this.kind===a.kind&&this.label===a.label&&this.language===a.language&&this.mimeType===a.mimeType&&Bi(this.roles,a.roles)&&Bi(this.accessibility,a.accessibility,Mk)};_.Ek.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.J("clpp.Track",_.Ek);
|
|
472
472
|
_.Ek.prototype.toString=_.Ek.prototype.toString;_.J("clpp.Rendition",_.Nk);_.Kk=1;_.Hk=_.r;_.Gk=_.$c;_.T="text";Ik=_.Qe;_.Zv={VIDEO:_.Hk,AUDIO:_.Gk,TEXT:_.T,METADATA:Ik};_.Ek.Type=_.Zv;_.J("clpp.utils.url.queryString",_.Qk);Tk.prototype.h=function(a,b){var c=this,d,e,f,g,h,l,m;return _.I(function(n){switch(n.a){case 1:return d=null,_.D(n,2),_.y(n,Zk(c,a),4);case 4:d=n.f;_.rh(n,3);break;case 2:return e=_.E(n),c.g.warn("Failed to fetch playlist in order metadata from HLS playlist.",e.message),n["return"](Promise.resolve({}));case 3:f={};_.D(n,5);if(!b.enableHlsVideoTrackInfo){n.F(7);break}return _.y(n,Wk(c,d,a),8);case 8:g=n.f,f.renditions=g.renditions,f.mimeType=g.mimeType;case 7:_.rh(n,6);break;case 5:h=_.E(n),c.g.warn("Failed to parse video metadata from HLS playlist.",
|
|
473
|
-
h.message);case 6:return _.D(n,9),_.y(n,Yk(d),11);case 11:l=n.f;f.nd=l;_.rh(n,10);break;case 9:m=_.E(n),c.g.warn("Failed to parse metadata from HLS playlist.",m.message);case 10:return n["return"](f)}})};_.fl=[];_.u=_.il.prototype;_.u.Gf=function(){return!0};_.u.
|
|
474
|
-
_.u.
|
|
475
|
-
_.il.prototype.findVideoRendition=_.il.prototype.
|
|
476
|
-
_.il.prototype.getTextTrack=_.il.prototype.za;_.il.prototype.getAudioTrack=_.il.prototype.pa;_.il.prototype.getVideoTrack=_.il.prototype.Ja;_.il.prototype.getLoadingTextRendition=_.il.prototype.
|
|
477
|
-
_.il.prototype.getAudioTracks=_.il.prototype.getAudioTracks;_.il.prototype.getVideoTracks=_.il.prototype.getVideoTracks;_.il.prototype.canSelectVideoTracks=_.il.prototype.Gf;var kl=new Map,jl=1,ol=2,nl=3,ml=4;_.$v=(new Map).set(_.Gd,_.Gd).set("frameRate","framerate").set("bandwidth","bitrate").set(_.Vg,_.Vg).set(_.ve,_.ve).set("channelsCount","channels");_.tl.prototype.ba=function(a){return ul(this,a,!1)};_.tl.prototype.
|
|
478
|
-
_.vl.prototype.tickNow=_.vl.prototype.
|
|
473
|
+
h.message);case 6:return _.D(n,9),_.y(n,Yk(d),11);case 11:l=n.f;f.nd=l;_.rh(n,10);break;case 9:m=_.E(n),c.g.warn("Failed to parse metadata from HLS playlist.",m.message);case 10:return n["return"](f)}})};_.fl=[];_.u=_.il.prototype;_.u.Gf=function(){return!0};_.u.ql=function(a){return this.getVideoTracks().find(function(b){return _.M.oa(b,a,a&&Object.keys(a))})};_.u.ml=function(a){return this.getAudioTracks().find(function(b){return _.M.oa(b,a,a&&Object.keys(a))})};_.u.ol=function(a){return this.ka().find(function(b){return _.M.oa(b,a,a&&Object.keys(a))})};_.u.pl=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.M.oa(b,a,a&&Object.keys(a))})};
|
|
474
|
+
_.u.ll=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.M.oa(b,a,a&&Object.keys(a))})};_.u.nl=function(a){return this.ka().flatMap(function(b){return b.renditions}).find(function(b){return _.M.oa(b,a,a&&Object.keys(a))})};_.J("clpp.TrackManager",_.il);_.il.prototype.isAbrEnabled=_.il.prototype.ua;_.il.prototype.addTextTrack=_.il.prototype.addTextTrack;_.il.prototype.findTextRendition=_.il.prototype.nl;_.il.prototype.findAudioRendition=_.il.prototype.ll;
|
|
475
|
+
_.il.prototype.findVideoRendition=_.il.prototype.pl;_.il.prototype.findTextTrack=_.il.prototype.ol;_.il.prototype.findAudioTrack=_.il.prototype.ml;_.il.prototype.findVideoTrack=_.il.prototype.ql;_.il.prototype.setTextRendition=_.il.prototype.zb;_.il.prototype.setAudioRendition=_.il.prototype.yb;_.il.prototype.setVideoRendition=_.il.prototype.kb;_.il.prototype.setTextTrack=_.il.prototype.Va;_.il.prototype.setAudioTrack=_.il.prototype.Ha;_.il.prototype.setVideoTrack=_.il.prototype.Ab;
|
|
476
|
+
_.il.prototype.getTextTrack=_.il.prototype.za;_.il.prototype.getAudioTrack=_.il.prototype.pa;_.il.prototype.getVideoTrack=_.il.prototype.Ja;_.il.prototype.getLoadingTextRendition=_.il.prototype.Eb;_.il.prototype.getLoadingAudioRendition=_.il.prototype.Db;_.il.prototype.getLoadingVideoRendition=_.il.prototype.sb;_.il.prototype.getTextRendition=_.il.prototype.Ta;_.il.prototype.getAudioRendition=_.il.prototype.Xa;_.il.prototype.getVideoRendition=_.il.prototype.la;_.il.prototype.getTextTracks=_.il.prototype.ka;
|
|
477
|
+
_.il.prototype.getAudioTracks=_.il.prototype.getAudioTracks;_.il.prototype.getVideoTracks=_.il.prototype.getVideoTracks;_.il.prototype.canSelectVideoTracks=_.il.prototype.Gf;var kl=new Map,jl=1,ol=2,nl=3,ml=4;_.$v=(new Map).set(_.Gd,_.Gd).set("frameRate","framerate").set("bandwidth","bitrate").set(_.Vg,_.Vg).set(_.ve,_.ve).set("channelsCount","channels");_.tl.prototype.ba=function(a){return ul(this,a,!1)};_.tl.prototype.Bb=function(a){return ul(this,a,!0)};_.tl.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.vl.prototype.Lg=function(){this.stop();this.f();return this};_.vl.prototype.ba=function(a){var b=this;this.stop();this.a=(new _.tl(function(){b.f()})).ba(a);return this};_.vl.prototype.Bb=function(a){var b=this;this.stop();this.a=(new _.tl(function(){b.f()})).Bb(a);return this};_.vl.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.J("clpp.utils.Timer",_.vl);_.vl.prototype.stop=_.vl.prototype.stop;_.vl.prototype.tickEvery=_.vl.prototype.Bb;_.vl.prototype.tickAfter=_.vl.prototype.ba;
|
|
478
|
+
_.vl.prototype.tickNow=_.vl.prototype.Lg;_.J(Fd,wl);wl.getInfo=_.vk;
|
|
479
479
|
var Gl=null,Fl=null,Il=new _.K(Fd),Pl="android",Ol="ios",Ul="linux",Ql="osx",Rl="windows",Sl="tizen",Tl="webos",Nl=_.vg,Xl=_.vg,Wl={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,
|
|
480
480
|
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,
|
|
481
481
|
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},
|
|
@@ -485,16 +485,16 @@ a)}));n.kind&&"captions"===n.kind&&(n.mimeType=_.Sc);q&&(n.src=q.url,n.mimeType=
|
|
|
485
485
|
5):O.F(5)}if(2!=O.a)return c.g.debug(a+" Track added",n),c.m.trigger(new _.L(_.aw)),A=im(c,a).length,F=!(!l||!l.length),G=l&&l.length||0,B=function(){c.g.debug(Ub+a+" track active. Native track active: "+(p+". Number of tracks: ")+A,d);c.a.set(a,n)},p?B():1===A&&h&&(f?B():F&&1!==G||B()),_.rh(O,0);H=_.E(O);c.g.error("Error while converting track data",H);_.C(O)})};
|
|
486
486
|
_.u.pg=function(a,b){if(b){var c=b.track;if(!c)this.g.warn(yb);else if(a===_.T&&c.kind!==_.Qe){var d=this.h.find(function(e){return lm(e,c,a)});d&&(this.h.splice(this.h.indexOf(d),1),(this.a.get(a)||null)===d&&(this.a.set(a,null),rm(this)),this.g.debug(a+" Track removed, id: ",d.id))}}else this.g.warn(ub)};
|
|
487
487
|
_.u.og=function(a,b){this.g.debug(a+" Track changed",b);a===_.T&&rm(this);var c=hm(this,a);if(c)for(var d={Mc:0};d.Mc<c.length;d={Mc:d.Mc},++d.Mc)if(pm(c[d.Mc])){if(d=this.h.find(function(e){return function(f){return lm(f,c[e.Mc],a)}}(d)))this.a.set(a,d),this.g.debug("Track change detected, id:",d.id),d===this.l.get(a)&&this.l.set(a,null),a===_.Gk?this.m.trigger(new _.L(_.mm)):a===_.T&&this.m.trigger(new _.L(_.nm));break}};_.u.initialize=function(a){this.m=a;this.j=new Tk(a.getNetworkEngine())};
|
|
488
|
-
_.u.load=function(){this.A=!1;var a=gm(this,_.T);a&&(this.f.on(a,_.Mc,this.J),this.f.on(a,Pf,this.L),this.f.on(a,ud,this.K));if(a=gm(this,_.Gk))this.f.on(a,_.Mc,this.G),this.f.on(a,Pf,this.I),this.f.on(a,ud,this.H);if(a=gm(this,_.Hk))this.f.on(a,_.Mc,this.N),this.f.on(a,Pf,this.V),this.f.on(a,ud,this.P);this.f.one(this.m,md,this.
|
|
489
|
-
_.u.getVideoTracks=function(){return im(this,_.Hk)};_.u.getAudioTracks=function(){return im(this,_.Gk)};_.u.ka=function(){return im(this,_.T)};_.u.la=function(){var a=this,b=this.a.get(_.Hk)||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};_.u.Xa=function(){return jm(this,_.Gk)};_.u.Ta=function(){return jm(this,_.T)};_.u.
|
|
490
|
-
_.u.
|
|
488
|
+
_.u.load=function(){this.A=!1;var a=gm(this,_.T);a&&(this.f.on(a,_.Mc,this.J),this.f.on(a,Pf,this.L),this.f.on(a,ud,this.K));if(a=gm(this,_.Gk))this.f.on(a,_.Mc,this.G),this.f.on(a,Pf,this.I),this.f.on(a,ud,this.H);if(a=gm(this,_.Hk))this.f.on(a,_.Mc,this.N),this.f.on(a,Pf,this.V),this.f.on(a,ud,this.P);this.f.one(this.m,md,this.Ek.bind(this))};_.u.release=function(){this.A=!0;this.h=[];this.o={};this.a.clear();this.l.clear();this.f.release()};_.u.destroy=function(){this.release();this.m=null};
|
|
489
|
+
_.u.getVideoTracks=function(){return im(this,_.Hk)};_.u.getAudioTracks=function(){return im(this,_.Gk)};_.u.ka=function(){return im(this,_.T)};_.u.la=function(){var a=this,b=this.a.get(_.Hk)||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};_.u.Xa=function(){return jm(this,_.Gk)};_.u.Ta=function(){return jm(this,_.T)};_.u.sb=function(){return km(this,_.Hk)};
|
|
490
|
+
_.u.Db=function(){return km(this,_.Gk)};_.u.Eb=function(){return km(this,_.T)};_.u.Ja=function(){return this.a.get(_.Hk)||null};_.u.pa=function(){return this.a.get(_.Gk)||null};_.u.za=function(){return this.a.get(_.T)||null};_.u.Ab=function(a){om(this,_.Hk,a)};_.u.Ha=function(a){om(this,_.Gk,a)};_.u.Va=function(a){om(this,_.T,a)};_.u.kb=function(a){om(this,_.Hk,a&&a.track)};_.u.yb=function(a){om(this,_.Gk,a&&a.track)};_.u.zb=function(a){om(this,_.T,a&&a.track)};
|
|
491
491
|
_.u.addTextTrack=function(a){var b=this,c;return _.I(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.B++,b.o[c]=a,Zl(b,a,c),d.F(0)):_.y(d,$l(b,a),0)})};_.u.ua=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};
|
|
492
|
-
_.u.
|
|
493
|
-
Yl.prototype.setAudioRendition=Yl.prototype.
|
|
492
|
+
_.u.Ek=function(){var a=this,b,c,d;return _.I(function(e){if(1==e.a){b=a.m.getConfiguration();qm(a,_.Gk,b.preferredAudioLanguage);c=hm(a,_.T);if(c.some(function(f){return pm(f)}))return e.F(2);d=gm(a,_.T);return _.y(e,new Promise(function(f){a.f.one(d,ud,f);(new _.vl(f)).ba(1)}),2)}if(a.A)return e["return"]();qm(a,_.T,b.preferredTextLanguage);_.C(e)})};Yl.prototype.isAbrEnabled=Yl.prototype.ua;Yl.prototype.addTextTrack=Yl.prototype.addTextTrack;Yl.prototype.setTextRendition=Yl.prototype.zb;
|
|
493
|
+
Yl.prototype.setAudioRendition=Yl.prototype.yb;Yl.prototype.setVideoRendition=Yl.prototype.kb;Yl.prototype.setTextTrack=Yl.prototype.Va;Yl.prototype.setAudioTrack=Yl.prototype.Ha;Yl.prototype.setVideoTrack=Yl.prototype.Ab;Yl.prototype.getTextTrack=Yl.prototype.za;Yl.prototype.getAudioTrack=Yl.prototype.pa;Yl.prototype.getVideoTrack=Yl.prototype.Ja;Yl.prototype.getLoadingTextRendition=Yl.prototype.Eb;Yl.prototype.getLoadingAudioRendition=Yl.prototype.Db;Yl.prototype.getLoadingVideoRendition=Yl.prototype.sb;
|
|
494
494
|
Yl.prototype.getTextRendition=Yl.prototype.Ta;Yl.prototype.getAudioRendition=Yl.prototype.Xa;Yl.prototype.getVideoRendition=Yl.prototype.la;Yl.prototype.getTextTracks=Yl.prototype.ka;Yl.prototype.getAudioTracks=Yl.prototype.getAudioTracks;Yl.prototype.getVideoTracks=Yl.prototype.getVideoTracks;Yl.prototype.canSelectVideoTracks=Yl.prototype.Gf;_.u=_.sm.prototype;_.u.start=function(a){if(this.f)return this.f.start(a);if(a<this.a.length)return this.a[a].start;throw Error(Zb);};_.u.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(Zb);};_.u.Pa=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)};_.u.ia=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
|
|
495
|
-
_.u.
|
|
495
|
+
_.u.Jb=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};
|
|
496
496
|
_.u.Da=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.ia();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};_.u.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};_.J("clpp.BufferInfo",_.sm);_.sm.prototype.bufferedAheadOf=_.sm.prototype.Da;
|
|
497
|
-
_.sm.prototype.isBuffered=_.sm.prototype.
|
|
497
|
+
_.sm.prototype.isBuffered=_.sm.prototype.Jb;_.sm.prototype.bufferEnd=_.sm.prototype.ia;_.sm.prototype.bufferStart=_.sm.prototype.Pa;_.sm.prototype.end=_.sm.prototype.end;_.sm.prototype.start=_.sm.prototype.start;_.u=_.tm.prototype;_.u.addEventListener=function(a,b){this.on(a,b)};_.u.removeEventListener=function(a,b){this.off(a,b)};_.u.on=function(a,b,c){return this.Pd.on(a,b,c)};_.u.one=function(a,b,c){return this.Pd.one(a,b,c)};_.u.off=function(a,b){return this.Pd.off(a,b)};_.u.forwardEventsTo=function(a){a&&(0<=this.Md.indexOf(a)||this.Md.push(a))};_.u.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};
|
|
498
498
|
_.u.stopForwardingEventsTo=function(a){a&&(a=this.Md.indexOf(a),0<=a&&this.Md.splice(a,1))};_.u.trigger=function(a){this.Pd.trigger(a);for(var b=_.w(this.Md),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.tm.prototype.off=_.tm.prototype.off;_.tm.prototype.one=_.tm.prototype.one;_.tm.prototype.on=_.tm.prototype.on;_.tm.prototype.removeEventListener=_.tm.prototype.removeEventListener;_.tm.prototype.addEventListener=_.tm.prototype.addEventListener;_.J("clpp.events.ERROR",_.qe);_.J("clpp.events.LOADEDMETADATA",_.Je);_.J("clpp.events.BUFFERING_ENDED",_.jd);_.J("clpp.events.BUFFERING_STARTED",_.kd);_.J("clpp.events.STATE_CHANGED",_.fg);_.mm="audiotrackchanged";_.J("clpp.events.AUDIO_TRACK_CHANGED",_.mm);_.nm="texttrackchanged";_.J("clpp.events.TEXT_TRACK_CHANGED",_.nm);_.J("clpp.events.VIDEO_TRACK_CHANGED",_.Kg);_.J("clpp.events.BITRATE_CHANGED",_.hd);_.aw="tracksadded";_.J("clpp.events.TRACKS_ADDED",_.aw);_.J("clpp.events.LOAD_START",Ke);
|
|
499
499
|
_.J("clpp.events.RELEASING",_.Of);_.J("clpp.events.RELEASED",Nf);_.J("clpp.events.DESTROYING","destroying");_.J("clpp.events.DESTROYED","destroyed");_.J("clpp.events.VIDEO_BUFFER_CHANGED",_.Jg);_.J("clpp.events.AUDIO_BUFFER_CHANGED",_.fd);_.J("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.J("clpp.events.DRM_SESSION_UPDATE",_.ie);_.J("clpp.events.DRM_SESSION_PERSISTED",_.he);_.J("clpp.events.DRM_RENEWAL_STARTED",ge);_.J("clpp.events.DRM_EXPIRATION_UPDATE",_.ee);_.J("clpp.events.DRM_PSSH_READ","drmpsshread");
|
|
500
500
|
_.J("clpp.events.DRM_LICENSE_FIRED",fe);_.J("clpp.events.AUTOPLAY_NOT_ALLOWED",_.gd);_.J("clpp.events.PLAY",_.lf);_.J("clpp.events.SEEKING",_.Yf);_.J("clpp.events.SEEKED",_.Xf);_.J("clpp.events.USER_SEEKING",_.Ag);_.J("clpp.events.USER_SEEKED",_.zg);_.Xp={SEEKING:1,NO_DATA:2};_.J("clpp.events.BufferingReasons",_.Xp);_.J("clpp.events.ADS_TIMELINE_CHANGED",_.Nc);_.J("clpp.events.AD_LOADED",_.Dc);_.J("clpp.events.AD_BREAK_STARTED",_.tc);_.J("clpp.events.AD_STARTED",_.Jc);
|
|
@@ -502,20 +502,20 @@ _.J("clpp.events.AD_BUFFERING",_.vc);_.J("clpp.events.AD_PROGRESS",_.Gc);_.J("cl
|
|
|
502
502
|
_.J("clpp.events.AD_HLS_ASSET_LIST_REQUEST",zc);_.J("clpp.events.AD_HLS_ASSET_LIST_RESPONSE",Ac);_.J("clpp.events.AD_HLS_RESOLVED",Bc);_.J("clpp.events.SIMID_CREATIVE_STARTED",_.$f);_.J("clpp.events.SIMID_CREATIVE_STOPPED",_.ag);_.J("clpp.events.CASTING_STARTED",_.od);_.J("clpp.events.CASTING_ENDED","castingended");_.J("clpp.events.CAST_STATUS_CHANGED",_.pd);_.J("clpp.events.AIRPLAY_STATUS_CHANGED",_.Qc);_.J("clpp.events.AIRPLAY_CASTING_STARTED",_.Pc);_.J("clpp.events.AIRPLAY_CASTING_ENDED",_.Oc);
|
|
503
503
|
_.ni="timeline-cue-added";_.J("clpp.events.TIMELINE_CUE_ADDED",_.ni);_.ii="timeline-cue-enter";_.J("clpp.events.TIMELINE_CUE_ENTER",_.ii);_.ji="timeline-cue-exit";_.J("clpp.events.TIMELINE_CUE_EXIT",_.ji);_.hi="timeline-cues-changed";_.J("clpp.events.TIMELINE_CUES_CHANGED",_.hi);_.J("clpp.events.MPD_TYPE_CHANGED",_.Ue);_.J("clpp.events.LIVE_TURNED_STATIC",_.Ge);_.J("clpp.events.VIMOND_RESPONSE",_.Lg);_.J("clpp.events.PLAYLIST_ITEM_CHANGED",_.xf);_.J("clpp.events.PLAYLIST_MODIFIED",_.yf);
|
|
504
504
|
_.J("clpp.events.SC_PLAYLIST_TIMELINE_CHANGED",_.Wf);_.J("clpp.events.SC_PLAYLIST_ITEM_CHANGED",_.Uf);_.J("clpp.events.SC_PLAYLIST_ENDED",_.Tf);_.J("clpp.events.SC_PLAYLIST_LIVE_TURNED_STATIC",_.Vf);_.J("clpp.events.CDN_SWITCH_SUCCESS",_.qd);_.J("clpp.events.ONLINE_STATUS_CHANGED",cf);_.J("clpp.events.CMSD_EVENT","cmsd-event");_.J("clpp.events.YOSPACE_SESSION_STARTED",_.$g);_.J("clpp.events.YOSPACE_SESSION_ENDED",_.Zg);_.J("clpp.events.CONTENT_STEERING_CHANGE",_.Rd);
|
|
505
|
-
_.J("clpp.events.CONTENT_STEERING_LOCATION_BAN_UPDATE",_.Sd);var um=["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"];_.J("clpp.version",_.ha);_.J("clpp.name",_.ua);_.dm="application/x-mpegurl";_.J("clpp.Type",{DASH:_.Tc,HLS:_.dm,SMOOTH_STREAMING:_.Yc,MP4:_.Ig,MP3:"audio/mp3"});_.ui="scte35";_.ti="hls-daterange";_.J("clpp.TimelineCueType",{SCTE35:_.ui,DASH_CALLBACK:_.Ve,HLS_DATERANGE:_.ti,UNKNOWN:_.vg});_.J("clpp.SpeedUpMode",{DECODER:_.Vd,SEEK:"seek"});_.J("clpp.CodecSwitchingStrategy",{PREVENT:_.If,SMOOTH:_.cg});_.J("clpp.utils.PlayerConfiguration",wm);wm.create=_.Bm;var bw=["abort",ld,md,le,"emptied",ne,_.pe,_.qe,"interruptbegin","interruptend",_.Ie,_.Je,Ke,"mozaudioavailable",_.gf,_.lf,_.wf,_.Kf,_.Mf,_.Xf,_.Yf,dg,"suspend",_.qg,"volumechange",_.Og,_.Pg,_.Rf,Ug,Tg,Rg,Sg];_.x(_.Dm,_.tm);_.u=_.Dm.prototype;_.u.init=function(a,b){this.configuration=this.
|
|
506
|
-
_.u.destroy=function(){this.N.release();return this.
|
|
505
|
+
_.J("clpp.events.CONTENT_STEERING_LOCATION_BAN_UPDATE",_.Sd);var um=["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"];_.J("clpp.version",_.ha);_.J("clpp.name",_.ua);_.dm="application/x-mpegurl";_.J("clpp.Type",{DASH:_.Tc,HLS:_.dm,SMOOTH_STREAMING:_.Yc,MP4:_.Ig,MP3:"audio/mp3"});_.ui="scte35";_.ti="hls-daterange";_.J("clpp.TimelineCueType",{SCTE35:_.ui,DASH_CALLBACK:_.Ve,HLS_DATERANGE:_.ti,UNKNOWN:_.vg});_.J("clpp.SpeedUpMode",{DECODER:_.Vd,SEEK:"seek"});_.J("clpp.CodecSwitchingStrategy",{PREVENT:_.If,SMOOTH:_.cg});_.J("clpp.utils.PlayerConfiguration",wm);wm.create=_.Bm;var bw=["abort",ld,md,le,"emptied",ne,_.pe,_.qe,"interruptbegin","interruptend",_.Ie,_.Je,Ke,"mozaudioavailable",_.gf,_.lf,_.wf,_.Kf,_.Mf,_.Xf,_.Yf,dg,"suspend",_.qg,"volumechange",_.Og,_.Pg,_.Rf,Ug,Tg,Rg,Sg];_.x(_.Dm,_.tm);_.u=_.Dm.prototype;_.u.init=function(a,b){this.configuration=this.eb=b;this.C=a;this.log.info("Initializing Player surface");var c=this.C.getMedia();this.log.info("Attaching media element listeners");for(var d=_.w(bw),e=d.next();!e.done;e=d.next())e=e.value,this.N.on(c,e,this.mj,e!==_.qe);this.Kd||(this.Kd=this.Gh());this.Kd.initialize(this);this.C.showMediaElement()};_.u.release=function(){this.V&&(this.V.destroy(),this.V=null);return Promise.resolve()};
|
|
506
|
+
_.u.destroy=function(){this.N.release();return this.wg.release()};_.u.canPlay=function(a,b){return _.Oh[this.namespace()].canPlay(a,b)};_.u.getTimeline=function(){return null};_.u.setupPlaylist=function(){return Promise.reject(_.Ab)};_.u.appendLoad=function(){return Promise.reject(_.Ab)};_.u.seekWith=function(){return Promise.reject(_.Ab)};_.u.detach=function(){return Promise.resolve()};_.u.setSeekInterceptor=function(){};_.u.setPlaybackSessionId=function(){};
|
|
507
507
|
_.u.play=function(){var a=this;if(!this.$)return Promise.reject("No sources specified yet. You need to load content before calling play.");var b=this.C.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||""};vm(d)?(a.trigger(new _.L(_.gd)),a.log.warn(_.la)):d.name===Bb&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
|
|
508
508
|
_.u.pause=function(){var a=this;return this.$?new Promise(function(b,c){var d=a.getState();if(d!==_.Up&&d!==_.Wp&&d!==_.cq&&d!==_.bq)c(new _.N(_.P,7,3201,"The player state does not allow pause."));else if(a.C.getMedia().pause(),a.getState()===_.cq)a.N.one(a,_.fg,function(){b()});else b()}):Promise.reject(new _.N(_.P,7,3201,"No sources specified yet. You need to load content before calling pause."))};_.u.isPaused=function(){return this.C.getMedia().paused};_.u.isEnded=function(){return this.C.getMedia().ended};
|
|
509
509
|
_.u.getConfiguration=function(){return this.configuration};_.u.setDrmCustomDataModifier=function(a){this.ed=a};_.u.setCdnErrorCallback=function(a){this.Pc=a};_.u.gd=function(){return this.ed};_.u.getSurface=function(){return this.C};_.u.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.sm(b?b.buffered:void 0,a)};_.u.getPosition=function(){return this.getMediaPosition()};
|
|
510
510
|
_.u.getMediaPosition=function(){var a=this.C.getMedia();if(a)return a.currentTime;this.log.warn("No media element available, can not report current time!");return 0};
|
|
511
511
|
_.u.seek=function(a){var b=this,c=this.getMediaPosition();if(void 0===a||null===a||typeof a!==_.k||a===c)return Promise.resolve();var d=this.C.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.N.one(d,_.Je,m)}function l(n){var p=b.getMediaPosition(),
|
|
512
|
-
q=.1>=Math.abs(a-p),t=.25<p-a,v=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,z=n.type===_.Xf,A=n.type===_.Kf,F=n.type===_.qg,G=A&&v;t=z||q&&G||F&&t;b.log.debug("Checking seeking state after "+n.type+" event. Seek completed:",t,"Current Time:",p,"Target Time:",a,"Native Event:",z,"Time reached",q,"Timeupdate:",F,"Progress:",A,"ReadyState:",v,"Progress Ready:",G);t?(b.
|
|
513
|
-
d.currentTime=a)}function m(){b.trigger(new _.L(_.Ag));b.N.on(d,_.Xf,l);b.N.on(d,_.qg,l);b.N.on(d,_.Kf,l);b.log.info("Seeking to "+a+". Delta "+e);b.
|
|
512
|
+
q=.1>=Math.abs(a-p),t=.25<p-a,v=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,z=n.type===_.Xf,A=n.type===_.Kf,F=n.type===_.qg,G=A&&v;t=z||q&&G||F&&t;b.log.debug("Checking seeking state after "+n.type+" event. Seek completed:",t,"Current Time:",p,"Target Time:",a,"Native Event:",z,"Time reached",q,"Timeupdate:",F,"Progress:",A,"ReadyState:",v,"Progress Ready:",G);t?(b.Ag=!1,b.de=!1,b.N.off(d,_.Xf,l),b.N.off(d,_.qg,l),b.N.off(d,_.Kf,l),b.Ni(),b.trigger(new _.L(_.zg)),f()):A&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
|
|
513
|
+
d.currentTime=a)}function m(){b.trigger(new _.L(_.Ag));b.N.on(d,_.Xf,l);b.N.on(d,_.qg,l);b.N.on(d,_.Kf,l);b.log.info("Seeking to "+a+". Delta "+e);b.Ag=!0;b.de=!0;d.currentTime=a}b.getState()===_.Pp?(b.log.debug("Player is in IDLE state. Postpone seek."),b.N.one(b,_.fg,function(){switch(b.getState()){case _.Up:case _.cq:case _.bq:b.log.debug("Valid seek state reached.");h();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):h()})};
|
|
514
514
|
_.u.getVolume=function(){var a=this.C.getMedia();if(a)return a.volume;this.log.warn("No media element available, can not report volume!");return null};_.u.setVolume=function(a){var b=this.C.getMedia();b?_.M.va(a)?0>a||1<a?this.log.warn(sa+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(sa+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.u.isMuted=function(){return this.C.getMedia().muted};
|
|
515
515
|
_.u.setMuted=function(a){var b=this.C.getMedia();typeof a===_.id&&(b.muted=a)};_.u.getDuration=function(){return this.getMediaDuration()};_.u.getMediaDuration=function(){return this.$?this.C.getMedia().duration:-1};_.u.getTrackManager=function(){return this.Kd};_.u.getPlaybackRate=function(){var a=this.C.getMedia();return a&&a.playbackRate||1};_.u.setPlaybackRate=function(a){var b=this.C.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.u.setSourceIndex=function(a){this.Se=a};_.u.getSourceIndex=function(){return this.Se};
|
|
516
|
-
_.u.getLoadedSource=function(){return this.$&&-1!==this.Se?this.$[this.Se]:null};_.u.getPeriods=function(){return[]};_.u.getNetworkEngine=function(){return this.
|
|
517
|
-
_.u.
|
|
518
|
-
this.getBufferInfo().Da(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.Rf:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.
|
|
516
|
+
_.u.getLoadedSource=function(){return this.$&&-1!==this.Se?this.$[this.Se]:null};_.u.getPeriods=function(){return[]};_.u.getNetworkEngine=function(){return this.wg};_.u.setNetworkEngine=function(a){this.wg=a};_.u.setCmsdManager=function(a){this.vg=a};_.u.getTextDisplayer=function(){return this.V};_.u.getTimelineCues=function(){return[]};_.u.getCueTimeline=function(){return null};_.u.resetAbr=function(){};
|
|
517
|
+
_.u.Dn=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.qg||a.type===_.Kf)this.Vg.debug(d);else{var e="";switch(a.type){case _.Mf:e="Rate: "+this.getPlaybackRate();break;case le:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.lf:case _.wf:case "suspend":case _.Og:case dg:case _.Yf:case _.Xf:case _.qg:case _.Kf:case ld:case md:b=
|
|
518
|
+
this.getBufferInfo().Da(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.Rf:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.Vg.info(d)}a.type!==_.qe&&this.trigger(new _.L(a.type,{detail:a}))};_.u.Ni=function(){};var Gm;Gm=new _.K("clpp.Components");_.Em=new Map;_.J("clpp.install",function(a){Om(a)});_.J("clpp.uninstall",function(a){Pm(a)});Qm.prototype.release=function(){this.a=this.f=null};_.J("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.Rb,SW_SECURE_DECODE:_.Sb,HW_SECURE_CRYPTO:db,HW_SECURE_DECODE:eb,HW_SECURE_ALL:cb});_.J("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.J("clpp.drm.KeySystem",{NONE:_.We,CLEAR_KEY:_.ef,WIDEVINE:_.Pd,PLAYREADY:_.Nd,FAIRPLAY:_.Jd,PRIMETIME:_.Id});_.Um={};_.J("clpp.drm.registerDrmEnvironment",_.Vm);var Ym={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,
|
|
519
519
|
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,
|
|
520
520
|
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,
|
|
521
521
|
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,
|
|
@@ -529,54 +529,54 @@ this.getBufferInfo().Da(c);e="State "+this.getSurface().getMedia().readyState+"
|
|
|
529
529
|
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,
|
|
530
530
|
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,
|
|
531
531
|
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,
|
|
532
|
-
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]};_.$m.prototype.$a=function(a,b){this.f[a]=b};_.J("clpp.drm.DrmEnvironment",_.$m);_.$m.prototype.setDrmSystem=_.$m.prototype.$a;_.an.prototype.getPosition=function(){return this.a};_.an.prototype.Qa=function(){return this.f.byteLength};_.an.prototype.seek=function(a){(0>a||a>=this.f.byteLength)&&_.bn();this.a=a};_.dn.prototype.getPosition=function(){return this.a};_.dn.prototype.Qa=function(){return this.f.byteLength};_.dn.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.fn();this.a+=a};_.dn.prototype.seek=function(a){if(0>a||a>=this.f.byteLength)throw _.fn();this.a=a};_.J("clpp.utils.dataview.DataViewReader",_.dn);_.u=_.on.prototype;_.u.M=function(a,b){var c=sn(a);this.h[c]=cw;this.f[c]=b;return this};_.u.
|
|
532
|
+
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]};_.$m.prototype.$a=function(a,b){this.f[a]=b};_.J("clpp.drm.DrmEnvironment",_.$m);_.$m.prototype.setDrmSystem=_.$m.prototype.$a;_.an.prototype.getPosition=function(){return this.a};_.an.prototype.Qa=function(){return this.f.byteLength};_.an.prototype.seek=function(a){(0>a||a>=this.f.byteLength)&&_.bn();this.a=a};_.dn.prototype.getPosition=function(){return this.a};_.dn.prototype.Qa=function(){return this.f.byteLength};_.dn.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.fn();this.a+=a};_.dn.prototype.seek=function(a){if(0>a||a>=this.f.byteLength)throw _.fn();this.a=a};_.J("clpp.utils.dataview.DataViewReader",_.dn);_.u=_.on.prototype;_.u.M=function(a,b){var c=sn(a);this.h[c]=cw;this.f[c]=b;return this};_.u.Z=function(a,b){var c=sn(a);this.h[c]=dw;this.f[c]=b;return this};_.u.stop=function(){this.a=!0};_.u.parse=function(a,b){var c=_.Ej(a);c=new _.dn(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.en(c)&&!this.a;)this.ef(0,c,b)};
|
|
533
533
|
_.u.ef=function(a,b,c){var d=b.getPosition(),e=_.jn(b),f=_.jn(b),g=!1;this.g.debug("Parsing MP4 box",_.tn(f));switch(e){case 0:e=b.Qa()-d;break;case 1:e=_.ln(b),g=!0}var h=this.f[f];if(h){var l=null,m=null;this.h[f]===dw&&(m=_.jn(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.Qa()&&(n=b.Qa());n-=b.getPosition();b=0<n?_.nn(b,n):new Uint8Array(0);b=new _.dn(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+
|
|
534
|
-
a,headerSize:f,has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.Qa()-b.getPosition()),b.skip(a)};_.J("clpp.utils.Mp4Parser",_.on);_.on.typeToString=_.tn;_.on.allData=_.rn;_.on.sampleDescription=_.qn;_.on.children=_.pn;_.on.prototype.parseNext=_.on.prototype.ef;_.on.prototype.parse=_.on.prototype.parse;_.on.prototype.stop=_.on.prototype.stop;_.on.prototype.fullBox=_.on.prototype.
|
|
534
|
+
a,headerSize:f,has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.Qa()-b.getPosition()),b.skip(a)};_.J("clpp.utils.Mp4Parser",_.on);_.on.typeToString=_.tn;_.on.allData=_.rn;_.on.sampleDescription=_.qn;_.on.children=_.pn;_.on.prototype.parseNext=_.on.prototype.ef;_.on.prototype.parse=_.on.prototype.parse;_.on.prototype.stop=_.on.prototype.stop;_.on.prototype.fullBox=_.on.prototype.Z;_.on.prototype.box=_.on.prototype.M;_.on.headerSize=_.un;var cw=0,dw=1;_.J("clpp.utils.FairplayUtils",vn);vn.parseFairPlayResponse=_.Bn;vn.formatFairPlayRequest=_.An;vn.createFairplayPayload=zn;vn.extractContentId=_.xn;vn.extractExtXKeyUri=wn;var Nn=new _.K("clpp.drm.DrmToday"),Dn="PRODUCTION",En="STAGING",Fn="DEMO",Gn="TEST",ew={PRODUCTION:Dn,STAGING:En,DEMO:Fn,TEST:Gn};_.J("clpp.drm.DrmToday.Environment",ew);_.J("clpp.drm.DrmToday.WidevineCertificates",{V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"});
|
|
535
535
|
for(var In="/license-proxy-widevine/cenc/",Jn="/license-proxy-headerauth/drmtoday/RightsManager.asmx",Kn="/license-server-fairplay/",Wn={"00000":"Success","01000":"General Internal Error","02000":"General Request Error","03000":"General Request Authentication Error",10001:"Bad Request",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",
|
|
536
536
|
42E3:"General Playready error",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"},fw={video:[cb,eb,db,_.Sb,_.Rb],audio:[cb,
|
|
537
537
|
eb,db,_.Sb,_.Rb]},gw={video:["3000","2000","150"],audio:["2000","150"]},hw=_.w(Object.keys(ew)),iw=hw.next();!iw.done;iw=hw.next()){var Cn=iw.value,jw=Ba;Cn!==Dn&&(jw+="_"+Cn);var kw=new _.$m(jw),lw=null;switch(Cn){case Dn:case En:case Fn:lw=Zm("V2");break;case Gn:lw=null}kw.$a(_.Pd,{licenseUrl:Ln(_.Pd),videoRobustness:fw.video,audioRobustness:fw.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:lw,modifiers:{licenseRequest:_.Qn,licenseResponse:_.Vn}});kw.$a(_.Jd,
|
|
538
|
-
{licenseUrl:Ln(_.Jd),certificateUrl:Hn()+"/license-server-fairplay/cert/",modifiers:{licenseRequest:_.Sn,licenseResponse:_.Tn,extractContentId:_.On,certificateRequest:_.Un}});kw.$a(_.Nd,{licenseUrl:Ln(_.Nd),videoRobustness:gw.video,audioRobustness:gw.audio,modifiers:{licenseRequest:Rn}});_.Vm(kw)};_.J("clpp.drm.eme.EmeFactory",Yn);var Zn=[];Yn.Apis={STANDARD:Pb,APPLE:"APPLE",WEBKIT:"WEBKIT",NOP:"NOP"};var io;_.wo=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];io=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.x(ho,go);_.x(_.lo,go);var yo=!!(performance&&performance.mark&&performance.measure);Bo.prototype.j=function(a){if(1<a.version)_.Gh("Unrecognized PSSH version found!");else{var b=_.Sj(_.nn(a.reader,16)),c=[];if(0<a.version)for(var d=_.jn(a.reader),e=0;e<d;++e){var f=_.Sj(_.nn(a.reader,16));c.push(f)}d=_.jn(a.reader);a.reader.skip(d);this.h.push.apply(this.h,c);this.f.push(b);this.a.push({start:a.start,end:a.start+a.size-1});a.reader.getPosition()!==a.reader.Qa()&&_.Gh("Mismatch between box size and data size!")}};_.u=_.Fo.prototype;_.u.destroy=function(){var a=this;return _.I(function(b){if(1==b.a){if(a.j)return _.y(b,a.
|
|
539
|
-
_.u.
|
|
540
|
-
_.u.
|
|
541
|
-
b.a.keySystem.startsWith(_.Jd)&&16!==l.byteLength&&(q=_.S.fromCharCode(l));(l=q||"")?b.g.info(lb+q+"': "+g):b.g.info("Key status global keys: "+g);b.o.set(l,g);d&&!d.keyId&&b.f.forEach(function(t,v){v===c||t.keyId!==q||t.loaded||(t.loaded=!0)})});d&&d.loaded&&d.
|
|
542
|
-
_.ff))}a=c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.
|
|
538
|
+
{licenseUrl:Ln(_.Jd),certificateUrl:Hn()+"/license-server-fairplay/cert/",modifiers:{licenseRequest:_.Sn,licenseResponse:_.Tn,extractContentId:_.On,certificateRequest:_.Un}});kw.$a(_.Nd,{licenseUrl:Ln(_.Nd),videoRobustness:gw.video,audioRobustness:gw.audio,modifiers:{licenseRequest:Rn}});_.Vm(kw)};_.J("clpp.drm.eme.EmeFactory",Yn);var Zn=[];Yn.Apis={STANDARD:Pb,APPLE:"APPLE",WEBKIT:"WEBKIT",NOP:"NOP"};var io;_.wo=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];io=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.x(ho,go);_.x(_.lo,go);var yo=!!(performance&&performance.mark&&performance.measure);Bo.prototype.j=function(a){if(1<a.version)_.Gh("Unrecognized PSSH version found!");else{var b=_.Sj(_.nn(a.reader,16)),c=[];if(0<a.version)for(var d=_.jn(a.reader),e=0;e<d;++e){var f=_.Sj(_.nn(a.reader,16));c.push(f)}d=_.jn(a.reader);a.reader.skip(d);this.h.push.apply(this.h,c);this.f.push(b);this.a.push({start:a.start,end:a.start+a.size-1});a.reader.getPosition()!==a.reader.Qa()&&_.Gh("Mismatch between box size and data size!")}};_.u=_.Fo.prototype;_.u.destroy=function(){var a=this;return _.I(function(b){if(1==b.a){if(a.j)return _.y(b,a.Ba,0);a.j=!0;return _.y(b,Ho(a),4)}a.Ba.resolve();return b.F(0)})};_.u.keySystem=function(){return this.a?_.kp(this.a.keySystem):""};_.u.getDrmInfo=function(){return this.a};
|
|
539
|
+
_.u.Mi=function(a){var b=this,c,d,e;return _.I(function(f){if(1==f.a){if(b.G&&b.K===Io)return f["return"]();c=Math.floor(a.timeStamp);d="drm.msg."+c+fa;e="drm.msg."+c+".end";_.zo(d);return!b.h.delayLicenseRequestUntilPlayed||b.B&&!b.B.paused||b.eb?_.y(f,wp(b,a),2):(b.fa.push(a),f.F(2))}_.zo(e);_.Ao("drm.sess.msg."+c,d,e);_.C(f)})};
|
|
540
|
+
_.u.Hi=function(a){var b=this,c=a.target;this.g.info("Key status changed for session",c.sessionId);var d=this.f.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if(typeof h===_.ig){var l=h;h=g;g=l}if(rp(b.a.keySystem)&&16===h.byteLength&&_.xl()){l=_.Lj(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!==gg&&(d.loaded=!0);d&&d.Ua&&d.Ua.resolve();"expired"===g&&(e=!0);l=_.Ej(h);var q=_.Sj(l);"00"===q&&d&&d.keyId?q=d.keyId:
|
|
541
|
+
b.a.keySystem.startsWith(_.Jd)&&16!==l.byteLength&&(q=_.S.fromCharCode(l));(l=q||"")?b.g.info(lb+q+"': "+g):b.g.info("Key status global keys: "+g);b.o.set(l,g);d&&!d.keyId&&b.f.forEach(function(t,v){v===c||t.keyId!==q||t.loaded||(t.loaded=!0)})});d&&d.loaded&&d.nb.forEach(function(g){b.o.get(g)===gg&&(b.g.warn(lb+g+da),b.o.set(g,_.ff))});for(a=0;a<this.a.initData.length;a++){var f=this.a.initData[a];f.keyId&&this.o.get(f.keyId)===gg&&_.Tj(f.initData,d.initData)&&(this.g.warn(lb+f.keyId+da),this.o.set(f.keyId,
|
|
542
|
+
_.ff))}a=c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.Nb&&(this.g.debug("Session has expired",c.sessionId),(a=this.f.get(c))&&a.cd&&a.cd.stop(),this.f["delete"](c),c.close()["catch"](function(){}));mp(this)&&(this.H.resolve(),1!==this.f.size||e?this.da.ba(.5):Do(this))};var Io=0,Co=3;_.Ap=new Map;_.Bp=new _.K("clpp.text");_.Kp.prototype.getStats=function(){return{width:this.w,height:this.h,streamBandwidth:this.o,decodedFrames:this.j,droppedFrames:this.l,corruptedFrames:this.C,estimatedBandwidth:this.f,loadLatency:this.A,playTime:Gp(this.a,_.cq),pauseTime:Gp(this.a,_.bq),bufferingTime:Gp(this.a,_.Up),stateHistory:Hp(this.a),switchHistory:Jp(this.B)}};_.Mp.prototype.value=function(){void 0===this.a&&(this.a=this.f());return this.a};var Np=new _.Mp(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.Je],[HTMLMediaElement.HAVE_CURRENT_DATA,_.Ie],[HTMLMediaElement.HAVE_FUTURE_DATA,ld],[HTMLMediaElement.HAVE_ENOUGH_DATA,md]])});Sp.prototype.Wa=function(a,b){this.m&&this.m.trigger(new _.L(a,{detail:b}))};Sp.prototype.getState=function(){return Vp(this,"")};Sp.prototype.S=function(a){(a=a&&a.detail)&&a.severity&&a.severity===_.P&&Zp(this,_.$p)};Sp.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.m.namespace());this.a.release()};_.J("clpp.utils.media.detectType",eq);var hq=new _.K("clpp.sources");_.x(iq,_.Dm);_.u=iq.prototype;_.u.init=function(a,b){_.Dm.prototype.init.call(this,a,b);this.j=new Sp(this);Zp(this.j,_.Pp)};_.u.namespace=function(){return Dd};
|
|
543
543
|
_.u.unload=function(){var a=this,b;return _.I(function(c){if(!a.$)return c.F(0);a.log.debug("Releasing player with source",a.$);a.B&&(a.B.stop(),a.B=null);(b=a.getTrackManager())&&b.release();a.A&&(a.A.destroy(),a.A=null);a.V&&(a.V.destroy(),a.V=null);a.l&&a.l.release();a.o&&(a.o.destroy(),a.o=null);_.Yh(a.h);a.f&&(a.f=new _.Kp);a.G=null;a.$=null;a.H=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());return _.y(c,mq(a),0)})};
|
|
544
544
|
_.u.release=function(){var a=this;return _.Dm.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.j&&Zp(a.j,_.Pp)})};
|
|
545
545
|
_.u.destroy=function(){var a=this;if(this.w)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.w=!0;return _.Dm.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Fa);var b=a.getTrackManager();b&&b.destroy();a.l&&(a.l.destroy()["catch"](function(c){a.log.warn("Error while disposing metadata handler",c)}),a.l=null);a.j&&(a.j.destroy(),a.j=null);a.f=null})};_.u.getDrmInfo=function(){return this.o?this.o.getDrmInfo():null};
|
|
546
546
|
_.u.getTrackManager=function(){return this.Kd};
|
|
547
|
-
_.u.load=function(a){var b=this,c,d,e,f,g;return _.I(function(h){switch(h.a){case 1:if(b.w)return h["return"](jq());if(!b.getSurface()||!b.getSurface().getMedia())return h["return"](Promise.reject("No surface or no media element in surface"));c=_.M;d=b.C.getMedia();b.I=Date.now()/1E3;b.f=new _.Kp;b.h.on(b,_.fg,function(){b.f&&_.Fp(b.f.a,b.getState())});Zp(b.j,_.aq);b.$=_.gq(a);b.configuration=_.Bm(b.
|
|
547
|
+
_.u.load=function(a){var b=this,c,d,e,f,g;return _.I(function(h){switch(h.a){case 1:if(b.w)return h["return"](jq());if(!b.getSurface()||!b.getSurface().getMedia())return h["return"](Promise.reject("No surface or no media element in surface"));c=_.M;d=b.C.getMedia();b.I=Date.now()/1E3;b.f=new _.Kp;b.h.on(b,_.fg,function(){b.f&&_.Fp(b.f.a,b.getState())});Zp(b.j,_.aq);b.$=_.gq(a);b.configuration=_.Bm(b.eb,a);b.log.debug(_.pb,b.configuration);b.log.debug(_.Hb,b.$);e=_.Dp(b.configuration,[_.xe,"native"]);
|
|
548
548
|
b.V=e.create(b);b.V.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.Fm(_.mg)&&!_.El()&&(b.A=new Oi(b),b.A.start(d));b.l?b.l.release():b.l=new $h(b);d.textTracks&&ci(b.l,d.textTracks);f=b.getTrackManager();f.load();d.loop=!!b.configuration.loop;c.R(b.configuration.volume)||b.setVolume(b.configuration.volume);c.R(b.configuration.muted)||b.setMuted(b.configuration.muted);b.h.one(d,ld,function(){b.trigger(new _.L(_.aw))});null==b.configuration.startTime&&rq(b,d);_.Cl()&&sq(b,d);_.D(h,2);return _.y(h,
|
|
549
|
-
lq(b,d),4);case 4:return _.y(h,oq(b),5);case 5:return _.y(h,qq(b).U,6);case 6:_.rh(h,0);break;case 2:g=_.E(h),b.H=!1,b.onError(g),_.C(h)}})};_.u.onError=function(a){this.H||(a.severity===_.P&&null!==this.j&&Zp(this.j,_.$p),this.trigger(new _.L(_.qe,{detail:a})))};_.u.
|
|
549
|
+
lq(b,d),4);case 4:return _.y(h,oq(b),5);case 5:return _.y(h,qq(b).U,6);case 6:_.rh(h,0);break;case 2:g=_.E(h),b.H=!1,b.onError(g),_.C(h)}})};_.u.onError=function(a){this.H||(a.severity===_.P&&null!==this.j&&Zp(this.j,_.$p),this.trigger(new _.L(_.qe,{detail:a})))};_.u.Gh=function(){return new Yl};_.u.getState=function(){return null!==this.j?this.j.getState().currentState:_.Qp};
|
|
550
550
|
_.u.getPresentationStartTime=function(){if(this.a&&this.a.getStartDate&&this.isLive()){var a=this.a.getStartDate();return isNaN(a.getTime())?null:a.getTime()/1E3}return null};_.u.getSeekRange=function(){var a=this.getSurface().getMedia();if(a&&a.src){a=a.seekable;if(a.length)return this.G=a={start:a.start(0),end:a.end(a.length-1)};if(this.G)return this.G}return{start:0,end:0}};_.u.isLive=function(){return this.a&&this.a.src?Infinity===this.a.duration:!1};
|
|
551
551
|
_.u.getStats=function(){if(!this.f||!this.a)return _.Lp();this.f&&_.Fp(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.w=a.videoWidth;b.h=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.l=Number(a.droppedVideoFrames),b.j=c,this.f.C=Number(a.corruptedVideoFrames));if(a=this.getTrackManager())if(a=a.la())a.bandwidth&&(this.f.o=a.bandwidth),a.Bd&&(this.f.f=a.Bd);return this.f.getStats()};
|
|
552
552
|
_.u.getTimelineCues=function(){return this.l?this.l.getTimelineCues():[]};_.u.getCueTimeline=function(){return null};tq.prototype.a=function(){return Dd};tq.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.Tc,e=c===_.Yc,f=c===_.dm;return _.Bl()||d||e||f&&!_.Cl()?0:""!==Hl().canPlayType(c)?f&&_.Cl()&&(window.ManagedMediaSource||window.MediaSource&&MediaSource.isTypeSupported)&&!b.streaming.preferNativeHlsOnSafari?1:2:0};tq.prototype.f=function(a){return a===_.na};tq.prototype.create=function(){return new iq};
|
|
553
553
|
_.Qh(new tq);_.J("clpp.ads.PodType",{PREROLL:0,MIDROLL:1,POSTROLL:2});_.J("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1,SERVER_GUIDED:2});_.J("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var vq=new _.K("clpp.ads"),uq=[];_.u=yq.prototype;_.u.load=function(){};_.u.start=function(){};_.u.Yc=function(){};_.u.resume=function(){};_.u.pause=function(){};_.u.skip=function(){};_.u.getVolume=function(){};_.u.setVolume=function(){};_.u.getPosition=function(){};_.u.uc=function(){};_.u.Tc=function(){};_.J("clpp.ads.IAdsManager",yq);yq.prototype.getPosition=yq.prototype.getPosition;yq.prototype.setVolume=yq.prototype.setVolume;yq.prototype.getVolume=yq.prototype.getVolume;yq.prototype.skip=yq.prototype.skip;
|
|
554
|
-
yq.prototype.pause=yq.prototype.pause;yq.prototype.resume=yq.prototype.resume;_.u=zq.prototype;_.u.
|
|
555
|
-
_.u.Sa=function(){};_.u.getPodIndex=function(){};_.u.
|
|
556
|
-
zq.prototype.getWrapperAdIds=zq.prototype.getWrapperAdIds;zq.prototype.getSequenceLength=zq.prototype.
|
|
557
|
-
zq.prototype.getClickThroughUrl=zq.prototype.
|
|
558
|
-
zq.prototype.getCreativeId=zq.prototype.getCreativeId;zq.prototype.getId=zq.prototype.getId;zq.prototype.getTechnology=zq.prototype.
|
|
559
|
-
_.u.canSeek=function(){return this.A};_.u.Xb=function(){return!1};_.u.
|
|
560
|
-
_.u.Wb=function(){return this.videoEl};Aq.prototype.getVideoElement=Aq.prototype.Wb;Aq.prototype.getWrapperCreativeIds=Aq.prototype.getWrapperCreativeIds;Aq.prototype.getWrapperAdSystems=Aq.prototype.getWrapperAdSystems;Aq.prototype.getWrapperAdIds=Aq.prototype.getWrapperAdIds;Aq.prototype.getSequenceLength=Aq.prototype.
|
|
561
|
-
Aq.prototype.getMediaBitrate=Aq.prototype.Ra;Aq.prototype.getMediaHeight=Aq.prototype.
|
|
562
|
-
Aq.prototype.getAdvertiserName=Aq.prototype.getAdvertiserName;Aq.prototype.getAdSystem=Aq.prototype.getAdSystem;Aq.prototype.getApiFramework=Aq.prototype.getApiFramework;Aq.prototype.getSourceId=Aq.prototype.Tb;Aq.prototype.getCreativeId=Aq.prototype.getCreativeId;Aq.prototype.getId=Aq.prototype.getId;Aq.prototype.getTechnology=Aq.prototype.
|
|
554
|
+
yq.prototype.pause=yq.prototype.pause;yq.prototype.resume=yq.prototype.resume;_.u=zq.prototype;_.u.pb=function(){};_.u.qb=function(){};_.u.tb=function(){};_.u.getId=function(){};_.u.getCreativeId=function(){};_.u.Tb=function(){};_.u.getApiFramework=function(){};_.u.getAdSystem=function(){};_.u.getAdvertiserName=function(){};_.u.getTitle=function(){};_.u.getDuration=function(){};_.u.getPosition=function(){};_.u.getSkipTimeOffset=function(){};_.u.Xb=function(){};_.u.rb=function(){};_.u.getMediaUrl=function(){};_.u.hb=function(){};_.u.gb=function(){};_.u.Ra=function(){};
|
|
555
|
+
_.u.Sa=function(){};_.u.getPodIndex=function(){};_.u.Fb=function(){};_.u.Gb=function(){};_.u.ib=function(){};_.u.getWrapperAdIds=function(){};_.u.getWrapperAdSystems=function(){};_.u.getWrapperCreativeIds=function(){};_.u.Wb=function(){};_.u.canSeek=function(){};_.J("clpp.ads.IAd",zq);zq.prototype.canSeek=zq.prototype.canSeek;zq.prototype.getVideoElement=zq.prototype.Wb;zq.prototype.getWrapperCreativeIds=zq.prototype.getWrapperCreativeIds;zq.prototype.getWrapperAdSystems=zq.prototype.getWrapperAdSystems;
|
|
556
|
+
zq.prototype.getWrapperAdIds=zq.prototype.getWrapperAdIds;zq.prototype.getSequenceLength=zq.prototype.ib;zq.prototype.getPositionInSequence=zq.prototype.Gb;zq.prototype.getPodTimeOffset=zq.prototype.Fb;zq.prototype.getPodIndex=zq.prototype.getPodIndex;zq.prototype.getPodType=zq.prototype.Sa;zq.prototype.getMediaBitrate=zq.prototype.Ra;zq.prototype.getMediaHeight=zq.prototype.gb;zq.prototype.getMediaWidth=zq.prototype.hb;zq.prototype.getMediaUrl=zq.prototype.getMediaUrl;
|
|
557
|
+
zq.prototype.getClickThroughUrl=zq.prototype.rb;zq.prototype.isBumper=zq.prototype.Xb;zq.prototype.getSkipTimeOffset=zq.prototype.getSkipTimeOffset;zq.prototype.getPosition=zq.prototype.getPosition;zq.prototype.getDuration=zq.prototype.getDuration;zq.prototype.getTitle=zq.prototype.getTitle;zq.prototype.getAdvertiserName=zq.prototype.getAdvertiserName;zq.prototype.getAdSystem=zq.prototype.getAdSystem;zq.prototype.getApiFramework=zq.prototype.getApiFramework;zq.prototype.getSourceId=zq.prototype.Tb;
|
|
558
|
+
zq.prototype.getCreativeId=zq.prototype.getCreativeId;zq.prototype.getId=zq.prototype.getId;zq.prototype.getTechnology=zq.prototype.tb;zq.prototype.getAdManagerVersion=zq.prototype.qb;zq.prototype.getAdManagerName=zq.prototype.pb;_.u=Aq.prototype;_.u.pb=function(){return""};_.u.qb=function(){return""};_.u.tb=function(){return 2};_.u.getId=function(){return this.B};_.u.getCreativeId=function(){return""};_.u.Tb=function(){return this.G};_.u.getApiFramework=function(){return null};_.u.getAdSystem=function(){return""};_.u.getAdvertiserName=function(){return""};_.u.getTitle=function(){return""};_.u.getDuration=function(){return this.h};_.u.getPosition=function(){return this.j};_.u.getSkipTimeOffset=function(){return-1};
|
|
559
|
+
_.u.canSeek=function(){return this.A};_.u.Xb=function(){return!1};_.u.rb=function(){return null};_.u.getMediaUrl=function(){return null};_.u.hb=function(){return 0};_.u.gb=function(){return 0};_.u.Ra=function(){return 0};_.u.Sa=function(){return this.C};_.u.getPodIndex=function(){return 0};_.u.Fb=function(){return 0};_.u.Gb=function(){return this.f};_.u.ib=function(){return this.a};_.u.getWrapperAdIds=function(){return[]};_.u.getWrapperAdSystems=function(){return[]};_.u.getWrapperCreativeIds=function(){return[]};
|
|
560
|
+
_.u.Wb=function(){return this.videoEl};Aq.prototype.getVideoElement=Aq.prototype.Wb;Aq.prototype.getWrapperCreativeIds=Aq.prototype.getWrapperCreativeIds;Aq.prototype.getWrapperAdSystems=Aq.prototype.getWrapperAdSystems;Aq.prototype.getWrapperAdIds=Aq.prototype.getWrapperAdIds;Aq.prototype.getSequenceLength=Aq.prototype.ib;Aq.prototype.getPositionInSequence=Aq.prototype.Gb;Aq.prototype.getPodTimeOffset=Aq.prototype.Fb;Aq.prototype.getPodIndex=Aq.prototype.getPodIndex;Aq.prototype.getPodType=Aq.prototype.Sa;
|
|
561
|
+
Aq.prototype.getMediaBitrate=Aq.prototype.Ra;Aq.prototype.getMediaHeight=Aq.prototype.gb;Aq.prototype.getMediaWidth=Aq.prototype.hb;Aq.prototype.getMediaUrl=Aq.prototype.getMediaUrl;Aq.prototype.getClickThroughUrl=Aq.prototype.rb;Aq.prototype.isBumper=Aq.prototype.Xb;Aq.prototype.canSeek=Aq.prototype.canSeek;Aq.prototype.getSkipTimeOffset=Aq.prototype.getSkipTimeOffset;Aq.prototype.getPosition=Aq.prototype.getPosition;Aq.prototype.getDuration=Aq.prototype.getDuration;Aq.prototype.getTitle=Aq.prototype.getTitle;
|
|
562
|
+
Aq.prototype.getAdvertiserName=Aq.prototype.getAdvertiserName;Aq.prototype.getAdSystem=Aq.prototype.getAdSystem;Aq.prototype.getApiFramework=Aq.prototype.getApiFramework;Aq.prototype.getSourceId=Aq.prototype.Tb;Aq.prototype.getCreativeId=Aq.prototype.getCreativeId;Aq.prototype.getId=Aq.prototype.getId;Aq.prototype.getTechnology=Aq.prototype.tb;Aq.prototype.getAdManagerVersion=Aq.prototype.qb;Aq.prototype.getAdManagerName=Aq.prototype.pb;Bq.prototype.has=function(){return this.a.some(function(a){return a.Ce})};Bq.prototype.get=function(){var a=this,b;return _.I(function(c){if(1==c.a){b=a.a.find(function(d){return d.Ce});if(!b)throw Error("No available players in the pool");b.Ce=!1;return _.y(c,b.ready,2)}return c["return"](b.player)})};
|
|
563
563
|
Bq.prototype.release=function(a){var b=this,c=this.a.find(function(d){return d.player===a});if(!c)return Promise.resolve();c.Ce=!0;c.ready=new Promise(function(d){a.release()["catch"](function(e){b.g.error("Failed to unload player",e)}).then(d)});return c.ready};Bq.prototype.destroy=function(){var a=this;return _.I(function(b){return _.y(b,Promise.all(a.a.map(function(c){return c.player.destroy()})),0)})};_.J("clpp.utils.dom.createHTMLElement",_.Fq);Gq.prototype.set=function(a){this.h.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=Iq(this,a)};Gq.prototype.get=function(){return this.a};_.u=Mq.prototype;_.u.getMedia=function(){return this.f.get()};_.u.getContainer=function(){return this.a.get()};_.u.getSafeContainer=function(){return this.a};_.u.getId=function(){return this.l};_.u.getUniqueCssClass=function(){return this.o};_.u.getCastElement=function(){return this.h};_.u.isFullscreen=function(){return!!document.fullscreenElement};_.u.hideMediaElement=function(){var a=this.getMedia();a?_.Dq(a,xd):this.g.debug("No media element available that could be hidden")};
|
|
564
564
|
_.u.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(xd):this.g.debug("No media element available that could be shown")};_.u.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&&_.Dq(a,_.wd);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
|
|
565
565
|
_.u.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.u.hide=function(a){_.Dq(a,xd)};_.u.show=function(a){a.classList.remove(xd)};_.u.release=function(){this.j.release()};Mq.prototype.removeElementFromContainer=Mq.prototype.removeElementFromContainer;Mq.prototype.addElementToContainer=Mq.prototype.addElementToContainer;Mq.prototype.getCastElement=Mq.prototype.getCastElement;
|
|
566
|
-
Mq.prototype.getContainer=Mq.prototype.getContainer;Mq.prototype.getMedia=Mq.prototype.getMedia;var Jq={disableContainer:!1,webOSStartupPatch:!0,crossorigin:"anonymous",containerEl:null},Kq=1;_.u=Rq.prototype;_.u.getCurrentItem=function(){return this.
|
|
567
|
-
_.u.destroy=function(){var a=this;return _.I(function(b){if(1==b.a)return a.g.info("Destroy"),_.y(b,a.release(),2);if(3!=b.a)return _.y(b,a.o.destroy(),3);tr(a);_.C(b)})};var or="preload",qr=_.Le;_.x(Ar,_.tm);Ar.prototype.destroy=function(){var a=this;return _.I(function(b){Mr(a);a.f=[];a.o=!1;a.j.setSeekInterceptor(null);return _.y(b,a.a.destroy(),0)})};Ar.prototype.
|
|
568
|
-
_.u.getPosition=function(){var a=Br(this.a);return a?a.getPosition():-1};_.u.Tc=function(){return!this.a.
|
|
566
|
+
Mq.prototype.getContainer=Mq.prototype.getContainer;Mq.prototype.getMedia=Mq.prototype.getMedia;var Jq={disableContainer:!1,webOSStartupPatch:!0,crossorigin:"anonymous",containerEl:null},Kq=1;_.u=Rq.prototype;_.u.getCurrentItem=function(){return this.f};_.u.Me=function(){return this.f?this.f.player:null};_.u.Xh=function(){return Array.from(this.l.values())};_.u.Zd=function(){return 0<this.l.size};_.u.play=function(a){return gr(this,a,_.lf)};_.u.load=function(a){return gr(this,a,_.He)};_.u.release=function(){var a=this;return _.I(function(b){if(1==b.a)return _.y(b,Promise.all([er(a),a.f?dr(a,a.f):Promise.resolve()]),2);a.f=null;a.A=!1;Vq(a);_.C(b)})};
|
|
567
|
+
_.u.destroy=function(){var a=this;return _.I(function(b){if(1==b.a)return a.g.info("Destroy"),_.y(b,a.release(),2);if(3!=b.a)return _.y(b,a.o.destroy(),3);tr(a);_.C(b)})};var or="preload",qr=_.Le;_.x(Ar,_.tm);Ar.prototype.destroy=function(){var a=this;return _.I(function(b){Mr(a);a.f=[];a.o=!1;a.j.setSeekInterceptor(null);return _.y(b,a.a.destroy(),0)})};Ar.prototype.Ib=function(){return this.o};Ar.prototype.isLive=function(){var a=this.a.Me();return a?a.isLive():null};Ar.prototype.Wa=function(a){this.j.trigger(a)};var Lr=0,Sr=1,Ur=2,Vr=3,Yr=4,$r=5,as=6;_.u=cs.prototype;_.u.load=function(){return Promise.resolve()};_.u.start=function(){return Promise.resolve()};_.u.Yc=function(a,b,c){var d=a.getConfiguration();a=Object.assign({},{config:d,player:a,Ea:b},d.ads.hls||{},{wn:c});this.a=new Ar(a);Dr(this.a)};_.u.resume=function(){var a=Br(this.a);a&&a.play()};_.u.pause=function(){var a=Br(this.a);a&&a.pause()};_.u.skip=function(){};_.u.getVolume=function(){var a=Br(this.a);return a?a.getVolume()||0:0};_.u.setVolume=function(a){var b=Br(this.a);if(b)return b.setVolume(a)};
|
|
568
|
+
_.u.getPosition=function(){var a=Br(this.a);return a?a.getPosition():-1};_.u.Tc=function(){return!this.a.Ib()};_.u.uc=function(){return this.a.destroy()};cs.prototype.getPosition=cs.prototype.getPosition;cs.prototype.setVolume=cs.prototype.setVolume;cs.prototype.getVolume=cs.prototype.getVolume;cs.prototype.skip=cs.prototype.skip;cs.prototype.pause=cs.prototype.pause;cs.prototype.resume=cs.prototype.resume;fs.prototype.release=function(){this.a.release();js(this);this.m=null};_.J("clpp.polyfill.installAll",ms);var ls=[];_.J("clpp.polyfill.register",_.ns);var qs={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},xm="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";var Fs="vod",Es="live";var Ns,Ls,Ms;Is.prototype.release=function(){this.a=null;this.f.me(this.h)};_.mw="maxSuggestedBitrateKbps";Ns={du:"duress",etp:_.re,mb:_.mw,rd:"responseDelay",rtt:"roundTripTime"};Ls={at:"availabilityTime",br:"encodedBitrateKbps",ht:"heldTime",n:"intermediaryIdentifier",nor:"nextObjectResponse",nrr:"nextRangeResponse",d:"objectDuration",ot:"objectType",su:"startup",st:"streamType",sf:"streamingFormat",v:Cg};Ms=new _.K("clpp.net.CmsdManager");_.x(W,_.tm);_.u=W.prototype;_.u.on=function(a,b,c){return _.tm.prototype.on.call(this,a,b,c)};_.u.one=function(a,b,c){return _.tm.prototype.one.call(this,a,b,c)};_.u.off=function(a,b){return _.tm.prototype.off.call(this,a,b)};_.u.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.L(_.qe,{detail:a}))};_.u.Vd=function(a){a=this.L[a];void 0===a&&(a=null);return a};_.u.getSurface=function(){return this.j};_.u.getConfiguration=function(){return _.M.fb(this.f)};
|
|
569
569
|
_.u.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.u.detach=function(){return this.a?this.a.detach():Promise.resolve()};_.u.release=function(){var a=this;if(null!=this.l)return this.g.info("Player release already in progress"),this.l;this.g.debug("Releasing player");this.l=Us(this);return this.l["finally"](function(){dt(a);a.g.debug("Player released");a.l=null})};
|
|
570
|
-
_.u.destroy=function(){var a=this;if(this.V)return this.g.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.V=!0;return this.release().then(function(){a.g.debug(Fa);a.trigger(new _.L("destroying"));return a.Ec(_.$e)}).then(function(){a.a&&a.a.stopForwardingEventsTo(a);a.Pd.clear();a.
|
|
570
|
+
_.u.destroy=function(){var a=this;if(this.V)return this.g.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.V=!0;return this.release().then(function(){a.g.debug(Fa);a.trigger(new _.L("destroying"));return a.Ec(_.$e)}).then(function(){a.a&&a.a.stopForwardingEventsTo(a);a.Pd.clear();a.eb.release();if(a.a)return a.a.destroy()}).then(function(){return a.J.destroy()}).then(function(){Nm();a.a=null;a.A=null;a.trigger(new _.L("destroyed"))})};
|
|
571
571
|
_.u.load=function(a){var b=this,c,d,e;return _.I(function(f){switch(f.a){case 1:_.D(f,2);_.zo(tf);b.P=_.na;b.ha=!0;c=_.gq(a);d=Cm(a)?a:{};if(d.license)throw new _.N(_.P,7,7100,"License cannot be passed into the load method.");return _.y(f,_.bt(b,d,c),4);case 4:return _.y(f,_.ct(b),5);case 5:return _.y(f,_.Xs(b),6);case 6:_.zo(sf);_.Ao("player.load",tf,sf);_.rh(f,0);break;case 2:e=_.E(f);dt(b);if(b.l)throw b.g.info(ob),new _.N(_.P,7,7E3);throw e;}})};
|
|
572
|
-
_.u.preload=function(a){var b=this,c;return _.I(function(d){if(1==d.a)return _.y(d,_.bt(b,a),2);if(!b.a)return b.g.warn(Gb),d["return"]();c=b.a;return c.preload?_.y(d,c.preload(b.f),0):(b.g.warn(Lb),d["return"]())})};_.u.Ec=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!this.ha)return Promise.resolve();var e=this;d=this.
|
|
573
|
-
_.u.use=function(a){(a=Om(a))&&a.o(this)};_.u.remove=function(a){return(this.getState()<=_.Pp||this.
|
|
572
|
+
_.u.preload=function(a){var b=this,c;return _.I(function(d){if(1==d.a)return _.y(d,_.bt(b,a),2);if(!b.a)return b.g.warn(Gb),d["return"]();c=b.a;return c.preload?_.y(d,c.preload(b.f),0):(b.g.warn(Lb),d["return"]())})};_.u.Ec=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!this.ha)return Promise.resolve();var e=this;d=this.fa.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.dh(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};
|
|
573
|
+
_.u.use=function(a){(a=Om(a))&&a.o(this)};_.u.remove=function(a){return(this.getState()<=_.Pp||this.Y)&&null!==Im(a)?(Pm(a),this.ca=!0):!1};_.u.play=function(){return this.a?!this.h||this.h instanceof cs||this.a.namespace()===_.Ad?this.a.play():this.h.start(this.a):Promise.reject("No player initialized. You need to load content before calling play.")};_.u.pause=function(){return this.a?this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};
|
|
574
574
|
_.u.getTrackManager=function(){return this.a&&this.a.getTrackManager()};_.u.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.sm};_.u.getState=function(){return this.a?this.a.getState():_.Pp};_.u.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.u.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.u.isPaused=function(){return this.a&&this.a.isPaused()||!1};_.u.getPosition=function(){return this.a?this.a.getPosition():0};
|
|
575
575
|
_.u.seek=function(a){return this.getState()===_.$p?Promise.reject("Cannot seek in current state."):this.a?this.a.seek(a):Promise.reject("delegate does not exist")};_.u.getPresentationStartTime=function(){return this.a?this.a.getPresentationStartTime():null};_.u.getSeekRange=function(){return this.a?this.a.getSeekRange():{start:0,end:0}};_.u.zc=function(){var a=this.a;return a&&a.zc?a.zc():null};_.u.getVolume=function(){return this.a?this.a.getVolume():null};_.u.setVolume=function(a){this.a&&this.a.setVolume(a)};
|
|
576
576
|
_.u.getDuration=function(){return this.a?this.a.getDuration():-1};_.u.getAdsManager=function(){return this.h};_.u.namespace=function(){return this.a&&this.a.namespace()||"Undefined"};_.u.getPlaybackRate=function(){return this.a?this.a.getPlaybackRate():1};_.u.setPlaybackRate=function(a,b){this.a&&this.a.setPlaybackRate(a,b)};_.u.isMuted=function(){return this.a&&this.a.isMuted()||!1};_.u.setMuted=function(a){this.a&&this.a.setMuted(a)};_.u.getNetworkEngine=function(){return this.J};
|
|
577
|
-
_.u.setNetworkEngine=function(a){this.J=a};_.u.getTextDisplayer=function(){return this.a&&this.a.getTextDisplayer()};_.u.isLive=function(){return!!this.a&&this.a.isLive()};_.u.getStats=function(){return this.a?this.a.getStats():null};_.u.
|
|
578
|
-
_.u.resetAbr=function(){this.a&&this.a.resetAbr()};_.u.setDrmCustomDataModifier=function(a){this.ed=a;$s(this)};_.u.setCdnErrorCallback=function(a){this.N=a;this.a&&this.a.setCdnErrorCallback(this.N)};_.u.
|
|
579
|
-
W.prototype.getLoadedSource=W.prototype.getLoadedSource;W.prototype.getSources=W.prototype.
|
|
577
|
+
_.u.setNetworkEngine=function(a){this.J=a};_.u.getTextDisplayer=function(){return this.a&&this.a.getTextDisplayer()};_.u.isLive=function(){return!!this.a&&this.a.isLive()};_.u.getStats=function(){return this.a?this.a.getStats():null};_.u.ci=function(){return Object.freeze(this.Ba)};_.u.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};_.u.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.u.getCueTimeline=function(){return this.a?this.a.getCueTimeline():null};
|
|
578
|
+
_.u.resetAbr=function(){this.a&&this.a.resetAbr()};_.u.setDrmCustomDataModifier=function(a){this.ed=a;$s(this)};_.u.setCdnErrorCallback=function(a){this.N=a;this.a&&this.a.setCdnErrorCallback(this.N)};_.u.Ci=function(){this.Pf=!0};_.J("clpp.Player",W);W.registerPlugin=_.gt;W.prototype.setCdnErrorCallback=W.prototype.setCdnErrorCallback;W.prototype.setDrmCustomDataModifier=W.prototype.setDrmCustomDataModifier;W.prototype.resetAbr=W.prototype.resetAbr;W.prototype.getTimelineCues=W.prototype.getTimelineCues;
|
|
579
|
+
W.prototype.getLoadedSource=W.prototype.getLoadedSource;W.prototype.getSources=W.prototype.ci;W.prototype.getStats=W.prototype.getStats;W.prototype.isLive=W.prototype.isLive;W.prototype.getTextDisplayer=W.prototype.getTextDisplayer;W.prototype.setNetworkEngine=W.prototype.setNetworkEngine;W.prototype.getNetworkEngine=W.prototype.getNetworkEngine;W.prototype.setMuted=W.prototype.setMuted;W.prototype.isMuted=W.prototype.isMuted;W.prototype.setPlaybackRate=W.prototype.setPlaybackRate;
|
|
580
580
|
W.prototype.getPlaybackRate=W.prototype.getPlaybackRate;W.prototype.namespace=W.prototype.namespace;W.prototype.getAdsManager=W.prototype.getAdsManager;W.prototype.getDuration=W.prototype.getDuration;W.prototype.setVolume=W.prototype.setVolume;W.prototype.getVolume=W.prototype.getVolume;W.prototype.getTimelineOffset=W.prototype.zc;W.prototype.getSeekRange=W.prototype.getSeekRange;W.prototype.getPresentationStartTime=W.prototype.getPresentationStartTime;W.prototype.seek=W.prototype.seek;
|
|
581
581
|
W.prototype.getPosition=W.prototype.getPosition;W.prototype.isPaused=W.prototype.isPaused;W.prototype.isEnded=W.prototype.isEnded;W.prototype.getState=W.prototype.getState;W.prototype.getBufferInfo=W.prototype.getBufferInfo;W.prototype.getTrackManager=W.prototype.getTrackManager;W.prototype.pause=W.prototype.pause;W.prototype.play=W.prototype.play;W.prototype.remove=W.prototype.remove;W.prototype.use=W.prototype.use;W.prototype.load=W.prototype.load;W.prototype.destroy=W.prototype.destroy;
|
|
582
582
|
W.prototype.release=W.prototype.release;W.prototype.getDrmInfo=W.prototype.getDrmInfo;W.prototype.getConfiguration=W.prototype.getConfiguration;W.prototype.getSurface=W.prototype.getSurface;W.prototype.getPlugin=W.prototype.Vd;W.prototype.off=W.prototype.off;W.prototype.one=W.prototype.one;W.prototype.on=W.prototype.on;_.Pp=0;_.aq=1;_.Up=2;_.cq=3;_.bq=4;_.Wp=5;_.$p=6;_.Qp=7;_.Yp={IDLE:_.Pp,PREPARING:_.aq,BUFFERING:_.Up,PLAYING:_.cq,PAUSED:_.bq,ENDED:_.Wp,ERROR:_.$p,UNSET:_.Qp};W.State=_.Yp;
|
|
@@ -584,20 +584,20 @@ var Qs=[];_.x(ht,W);_.u=ht.prototype;
|
|
|
584
584
|
_.u.open=function(a,b){var c=this,d,e,f,g,h,l,m;return _.I(function(n){if(1==n.a){if(c.w)throw new _.N(_.P,7,7008,"Cannot call open() while "+c.w+ea);if(0!==a)throw new _.N(_.P,7,7007,"The index parameter only supports the value of 0.");if(0===b.length)throw new _.N(_.P,7,7003,xb);if(b.some(function(p){return!p.id||!p.source}))throw new _.N(_.P,7,7100,"Some config is missing required properties `id` or `source`!");d=new Set(b.map(function(p){return p.id}));if(d.size!==b.length)throw new _.N(_.P,7,
|
|
585
585
|
7100,"Some config contains a non-unique property `id`!");if(e=b[0].playlist){f=e.timeline;g=["flat","basic"];if(f&&!g.includes(f))throw new _.N(_.P,7,7100,"Unsupported `playlist.timeline` config value!");h=e.startTime;if(null!=h&&(typeof h!==_.k||0>h))throw new _.N(_.P,7,7100,"Invalid `playlist.startTime` config value!");l=e.endTime;if(null!=l&&(typeof l!==_.k||0>l||null!=h&&l<=h))throw new _.N(_.P,7,7100,"Invalid `playlist.endTime` config value!");m=e.content;if("DVR"===m&&!l)throw new _.N(_.P,7,
|
|
586
586
|
7100,"`playlist.endTime` config value is required for DVR content!");}_.qh(n);it(c);c.w="open";return _.y(n,mt(c,b),4)}2!=n.a&&(c.I=0,c.o=b,c.da=!0,jt(c,b[0].playlist||{}));_.sh(n);c.w=null;return _.th(n)})};
|
|
587
|
-
_.u.
|
|
588
|
-
nt(b,a),2)}_.sh(d);b.w=null;return _.th(d)})};_.u.getCurrentItem=function(){return this.o[this.I]||null};_.u.getCurrentItemIndex=function(){return this.I};_.u.
|
|
587
|
+
_.u.wj=function(a){var b=this,c;return _.I(function(d){if(1==d.a){if(b.w)throw new _.N(_.P,7,7008,"Cannot call addItem() while "+b.w+ea);if(!b.da)throw new _.N(_.P,7,7008,"open() must be called before addItem()!");if(!a.id||!a.source)throw new _.N(_.P,7,7100,"The config is missing required properties `id` or `source`!");c=new Set(b.o.map(function(e){return e.id}));if(c.has(a.id))throw new _.N(_.P,7,7100,"A config with this `id` already exists in the playlist!");_.qh(d);b.w="addItem";b.o.push(a);return _.y(d,
|
|
588
|
+
nt(b,a),2)}_.sh(d);b.w=null;return _.th(d)})};_.u.getCurrentItem=function(){return this.o[this.I]||null};_.u.getCurrentItemIndex=function(){return this.I};_.u.Hl=function(){return _.dh(this.o).concat()};_.u.Wd=function(){return this.o.length};_.u.getTimeline=function(){return this.a?this.a.getTimeline():null};_.u.seekWith=function(a){return this.a?this.a.seekWith(a):Promise.resolve()};_.u.release=function(){this.o=[];this.I=0;this.da=!1;return W.prototype.release.call(this)};
|
|
589
589
|
_.u.destroy=function(){it(this);return W.prototype.destroy.call(this)};_.u.setCdnErrorCallback=function(){throw new _.N(1,7,7009,"CDN switching is not supported!");};_.J("clpp.plist.ScPlaylist",ht);ht.prototype.setCdnErrorCallback=ht.prototype.setCdnErrorCallback;ht.prototype.destroy=ht.prototype.destroy;ht.prototype.release=ht.prototype.release;ht.prototype.seekWith=ht.prototype.seekWith;ht.prototype.getTimeline=ht.prototype.getTimeline;ht.prototype.getSize=ht.prototype.Wd;
|
|
590
|
-
ht.prototype.getPlaylist=ht.prototype.
|
|
591
|
-
_.u.
|
|
592
|
-
_.u.
|
|
593
|
-
_.u.
|
|
590
|
+
ht.prototype.getPlaylist=ht.prototype.Hl;ht.prototype.getCurrentItemIndex=ht.prototype.getCurrentItemIndex;ht.prototype.getCurrentItem=ht.prototype.getCurrentItem;ht.prototype.addItem=ht.prototype.wj;ht.prototype.open=ht.prototype.open;_.x(qt,_.tm);_.u=qt.prototype;_.u.Ud=function(){return this.f};_.u.Me=function(){return this.f?this.f.player:null};_.u.Vh=function(){return this.o.get(this.a+1)||null};_.u.Yh=function(){return this.o.get(this.a-1)||null};_.u.Xh=function(){return[this.Yh(),this.Vh()].filter(Boolean)};_.u.Qn=function(a){if(0<this.j.length)throw Error("Cannot re-set items in the playlist");this.g.info("Set items",a);this.j=a.map(function(b,c){return{config:b,index:c,preloadPromise:Promise.resolve(),disposers:[]}})};
|
|
591
|
+
_.u.Pn=function(a){if(0===this.j.length)throw Error(vb);if(0>a||a>this.j.length-1)throw Error("Index out of bounds");this.a=a};_.u.Zd=function(){return this.a<this.j.length-1};_.u.ei=function(){return 0<this.a};
|
|
592
|
+
_.u.un=function(){var a=this,b,c;return _.I(function(d){switch(d.a){case 1:if(a.l)return a.g.warn("Cannot play first item while busy"),d["return"]();if(0===a.j.length)return a.g.warn(vb),d["return"]();a.l=!0;a.g.info("First (index: "+a.a+")");b=a.j[a.a];_.D(d,2,3);a.g.info("First loading (index: "+a.a+")");return _.y(d,yt(a,b),5);case 5:a.g.info("First playing (index: "+a.a+")");case 3:_.sh(d);a.l=!1;Dt(a);_.th(d);break;case 2:throw c=_.E(d),a.g.error("First failed (index: "+a.a+")"),c;}})};
|
|
593
|
+
_.u.Ui=function(){var a=this,b,c,d;return _.I(function(e){switch(e.a){case 1:if(a.l)return a.g.warn("Cannot play next item while busy"),e["return"]();if(!a.Zd())return a.g.warn("There are no more items in the playlist"),e["return"]();a.l=!0;a.a+=1;a.g.info("Next (index: "+a.a+")");b=a.f;a.h.transition===_.gf&&b.player.pause();rt(a,a.a+-2);a.o["delete"](a.a);c=a.j[a.a];_.D(e,2,3);a.g.info("Next loading (index: "+a.a+")");return _.y(e,zt(a,c),5);case 5:a.g.info("Next playing (index: "+a.a+")");case 3:_.sh(e);
|
|
594
594
|
a.l=!1;b&&vt(a,b);Dt(a);_.th(e);break;case 2:throw d=_.E(e),a.g.error("Next failed (index: "+a.a+")"),d;}})};
|
|
595
|
-
_.u.
|
|
596
|
-
a.a+")");case 3:_.sh(e);a.l=!1;b&&vt(a,b);Dt(a);_.th(e);break;case 2:throw d=_.E(e),a.g.error("Previous failed (index: "+a.a+")"),d;}})};_.u.destroy=function(){var a=this;return _.I(function(b){return 1==b.a?(a.g.info("Destroy"),_.y(b,Promise.all([st(a),a.f?vt(a,a.f):Promise.resolve()]),2)):_.y(b,Et(a),0)})};_.J(Ed,qt);qt.prototype.destroy=qt.prototype.destroy;qt.prototype.playPrev=qt.prototype.
|
|
597
|
-
qt.prototype.hasNext=qt.prototype.Zd;qt.prototype.setIndex=qt.prototype.
|
|
595
|
+
_.u.vn=function(){var a=this,b,c,d;return _.I(function(e){switch(e.a){case 1:if(a.l)return a.g.warn("Cannot play previous item while busy"),e["return"]();if(!a.ei())return a.g.warn("There are no more previous items in the playlist"),e["return"]();a.l=!0;--a.a;a.g.info("Previous (index: "+a.a+")");b=a.f;a.h.transition===_.gf&&b.player.pause();rt(a,a.a+2);a.o["delete"](a.a);c=a.j[a.a];_.D(e,2,3);a.g.info("Previous loading (index: "+a.a+")");return _.y(e,zt(a,c),5);case 5:a.g.info("Previous playing (index: "+
|
|
596
|
+
a.a+")");case 3:_.sh(e);a.l=!1;b&&vt(a,b);Dt(a);_.th(e);break;case 2:throw d=_.E(e),a.g.error("Previous failed (index: "+a.a+")"),d;}})};_.u.destroy=function(){var a=this;return _.I(function(b){return 1==b.a?(a.g.info("Destroy"),_.y(b,Promise.all([st(a),a.f?vt(a,a.f):Promise.resolve()]),2)):_.y(b,Et(a),0)})};_.J(Ed,qt);qt.prototype.destroy=qt.prototype.destroy;qt.prototype.playPrev=qt.prototype.vn;qt.prototype.playNext=qt.prototype.Ui;qt.prototype.playFirst=qt.prototype.un;qt.prototype.hasPrev=qt.prototype.ei;
|
|
597
|
+
qt.prototype.hasNext=qt.prototype.Zd;qt.prototype.setIndex=qt.prototype.Pn;qt.prototype.setItems=qt.prototype.Qn;qt.prototype.getPreloading=qt.prototype.Xh;qt.prototype.getPrev=qt.prototype.Yh;qt.prototype.getNext=qt.prototype.Vh;qt.prototype.getCurrentPlayer=qt.prototype.Me;qt.prototype.getCurrent=qt.prototype.Ud;var ut="preload",wt=_.Le;var Ft=new Map;_.u=Ht.prototype;_.u.destroy=function(){this.a.dispose();this.a=null};_.u.reset=function(){this.a=new muxjs.mp4.Transmuxer(this.f)};_.u.isSupported=function(a,b){var c="mp2t"===a.toLowerCase().split(";")[0].split("/")[1],d=a.toLowerCase().split(";")[0]===_.ad;if(!window.muxjs||!c&&!d)return!1;if(d)return _.Gt(ed);if(b)return _.Gt(It(b,a));c=It(_.$c,a);d=It(_.r,a);return _.Gt(c)||_.Gt(d)};_.u.isMuxed=function(a,b){return 1<this.demuxMimeTypes(a,b).size};
|
|
598
598
|
_.u.demuxMimeTypes=function(a,b){var c=new Map;c.set(a,b);try{var d=_.rl(b),e=_.sl(b).split(","),f=new Map,g=jj(_.$c,e),h=jj(_.r,e);g&&f.set(_.$c,this.convertCodecs(_.$c,_.ql(d,g)));h&&f.set(_.r,this.convertCodecs(_.r,_.ql(d,h)));return f}catch(l){return c}};_.u.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]===_.ad?ed:"mp2t"===b.toLowerCase().split(";")[0].split("/")[1]?It(a,b):b};_.u.getOriginalMimeType=function(){return this.h};
|
|
599
599
|
_.u.transmux=function(a){function b(){g={video:Uj.apply(Nj,_.dh(d)),captions:f,audio:Uj.apply(Nj,_.dh(e))}}function c(h){f=h.captions;var l=new Uint8Array(h.data.byteLength+h.initSegment.byteLength);l.set(h.initSegment,0);l.set(h.data,h.initSegment.byteLength);h.type===nw?d.push(l):h.type===ow&&e.push(l)}var d=[],e=[],f=[],g=null;a=_.Ej(a);this.a.on("data",c);this.a.on("done",b);this.a.push(a);this.a.flush();this.a.off("data",c);this.a.off("done",b);if(!g)throw new _.N(_.P,3,3018);return g};
|
|
600
|
-
ll(_.ad,function(){return new Ht(_.ad)});ll(_.Hg,function(){return new Ht(_.Hg)});var ow=_.$c,nw=_.r;Jt.prototype.getCuePoints=function(){};Jt.prototype.
|
|
600
|
+
ll(_.ad,function(){return new Ht(_.ad)});ll(_.Hg,function(){return new Ht(_.Hg)});var ow=_.$c,nw=_.r;Jt.prototype.getCuePoints=function(){};Jt.prototype.Ib=function(){};Jt.prototype.Hb=function(){};_.J("clpp.ads.IAdsTimeline",Jt);Jt.prototype.hasPostroll=Jt.prototype.Hb;Jt.prototype.hasPreroll=Jt.prototype.Ib;Jt.prototype.getCuePoints=Jt.prototype.getCuePoints;_.Kt.prototype.f=function(){};_.Kt.prototype.a=function(){};_.Kt.prototype.h=function(){};_.Kt.prototype.o=function(){};_.u=Lt.prototype;_.u.Fe=function(a){this.a=a};_.u.Fd=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(sb)};_.u.Oe=function(){return this.a&&this.a.mediaKeys};
|
|
601
601
|
_.u.Qb=function(a,b){var c=this;this.g.info("Requesting media key system access for",a,b.map(function(d){return Object.assign({},d,{drmInfos:d.drmInfos.map(function(){return"_anonymous_"})})}));return navigator.requestMediaKeySystemAccess(a,b)["catch"](function(d){c.g.info("Failed to request media key system access for "+(a+"."),d);return Promise.reject(d)})};_.u.Ed=function(){return Pb};Mt.prototype.a=function(){return Pb};
|
|
602
602
|
Mt.prototype.f=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};Mt.prototype.create=function(){return new Lt};$n(new Mt,3);_.u=Nt.prototype;_.u.getStatus=function(){return this.a};_.u.forEach=function(a){this.a&&a(this.a,pw.value())};_.u.get=function(a){if(this.has(a))return this.a};_.u.has=function(a){var b=pw.value();return this.a&&Gj(a,b)?!0:!1};_.u.entries=function(){};_.u.keys=function(){};_.u.values=function(){};var pw=new _.Mp(function(){return Mj(new Uint8Array([0]))});_.u=Pt.prototype;_.u.Fe=function(){};_.u.Fd=function(a){_.Lh("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.u.Oe=function(){return null};_.u.Qb=function(){_.Lh("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.u.Ed=function(){return"NOP"};Qt.prototype.a=function(){return"NOP"};Qt.prototype.f=function(){return!0};Qt.prototype.create=function(){return new Pt};
|
|
603
603
|
$n(new Qt,0);_.u=Rt.prototype;_.u.Fe=function(a){this.f=a};_.u.Fd=function(a){var b=this.a;b&&b!==a&&Ut(b,null);return(this.a=a)?Ut(a,this.f):Promise.resolve()};_.u.Oe=function(){return this.a};_.u.Qb=function(a,b){_.Lh("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new St(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.u.Ed=function(){return"APPLE"};St.prototype.createMediaKeys=function(){var a=new Tt(this.keySystem);return Promise.resolve(a)};
|
|
@@ -610,8 +610,8 @@ Xt.prototype.create=function(){return new Rt};$n(new Xt,2);_.u=Yt.prototype;_.u.
|
|
|
610
610
|
_.u.Ed=function(){return"WEBKIT"};Zt.prototype.createMediaKeys=function(){return Promise.resolve(new $t(this.h,this.a))};Zt.prototype.getConfiguration=function(){return this.f};$t.prototype.createSession=function(a){a=void 0===a?ng:a;if(a!==ng&&a!==_.jf)throw new TypeError("Session type "+a+ba);if(!this.a)throw a=Error("Media element is missing."),a.name=kb,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new du(this.h,this.a,this.o,a);this.j.push(a);return a};
|
|
611
611
|
$t.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.x(du,_.tm);_.u=du.prototype;_.u.ready=function(){_.Lh("WebkitEmeManager.MediaKeySession.ready");bu(this,"usable");this.a&&this.a.resolve();this.a=null};_.u.generateRequest=function(a,b){_.Lh("WebkitEmeManager.MediaKeySession.generateRequest");return fu(this,b,null)};_.u.load=function(a){_.Lh(ic);return this.l===_.jf?fu(this,null,a):Promise.reject(Error(zb))};_.u.update=function(a){_.Lh(ic);var b=new _.lk;gu(this,b,a);return b};
|
|
612
612
|
_.u.close=function(){_.Lh("WebkitEmeManager.MediaKeySession.close");if(this.l!==_.jf){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=eu(this,"cancelKeyRequest");try{this.j[a](this.h,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.u.remove=function(){_.Lh("WebkitEmeManager.MediaKeySession.remove");return this.l!==_.jf?Promise.reject(Error(zb)):this.close()};hu.prototype.a=function(){return"WEBKIT"};
|
|
613
|
-
hu.prototype.f=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};hu.prototype.create=function(){return new Yt};$n(new hu,1);_.x(iu,_.$m);iu.prototype.je=function(a,b){for(var c=a.drm.customData.headers||{},d=_.w(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};iu.prototype.
|
|
614
|
-
iu.prototype.
|
|
613
|
+
hu.prototype.f=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};hu.prototype.create=function(){return new Yt};$n(new hu,1);_.x(iu,_.$m);iu.prototype.je=function(a,b){for(var c=a.drm.customData.headers||{},d=_.w(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};iu.prototype.Nh=function(a,b){var c=wn(b);switch(this.o){case qw:return c;case rw:return(new _.Ok(c)).a;default:throw Error("Unknown content ID strategy");}};iu.prototype.Fi=function(a,b){b.headers[xa]=Zc;this.je(a,b);var c={spc:_.Oj(b.body)};b.body=_.S.sd(_.Qk(c,!0))};
|
|
614
|
+
iu.prototype.Gi=function(a,b){var c=_.S.aa(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.Qj(c).buffer};_.J(Bd,iu);iu.prototype.onFairPlayLicenseResponse=iu.prototype.Gi;iu.prototype.onFairPlayLicenseRequest=iu.prototype.Fi;iu.prototype.extractFairPlayContentId=iu.prototype.Nh;iu.prototype.onLicenseRequest=iu.prototype.je;iu.prototype.constructor=iu.prototype.constructor;iu.NAME=gb;var rw="hostname",qw="full-skd";
|
|
615
615
|
iu.FairPlayContentIdStrategy={HOSTNAME:rw,FULL_SKD:qw};_.x(ju,_.Kt);ju.prototype.h=function(a){a=a.getConfiguration();if(a.drm&&a.drm&&a.drm.env===gb){a=a.drm.customData;if(!a)throw new _.N(_.P,7,7100,_.Qd);a=new iu(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||qw);_.Vm(a)}};ju.prototype.a=function(){delete _.Um.HeaderDrm};ju.prototype.id=function(){return"headerdrm"};_.J("clpp.drm.HeaderDrmComponent",ju);_.ns(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=_.Ej(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});_.ns(function(){_.Lh("mathRound.install")});_.ns(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;te in document||(Object.defineProperty(document,te,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
|
|
616
616
|
{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",ku);document.addEventListener("webkitfullscreenerror",ku);document.addEventListener("mozfullscreenchange",ku);document.addEventListener("mozfullscreenerror",ku);document.addEventListener("MSFullscreenChange",ku);document.addEventListener("MSFullscreenError",ku)}});_.ns(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Lh("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=mu,document.exitPictureInPicture=nu,document.addEventListener("webkitpresentationmodechanged",lu,!0))}});_.ns(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=ou)}});_.ns(function(){if(window.VTTCue)_.Kh("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Kh(ec),window.VTTCue=pu;else if(6===a)_.Kh("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=qu;else{try{var b=!!pu(1,2,"")}catch(c){b=!1}b&&(_.Kh(ec),window.VTTCue=pu)}}else _.Mh("VTTCue not available.")});var ru;_.ns(function(){_.Lh("InputEvent.install");_.yl("Trident/")&&HTMLInputElement.prototype.addEventListener!==su&&(_.Kh("Patching input event support on IE."),ru=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=su)});_.ns(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.ns(function(){_.Lh("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}}});_.Au.prototype.start=function(){var a=this;this.a=new ResizeObserver(function(b){b=b[0];a.j(b.contentRect.width,b.contentRect.height,a.h.isFullscreen())});this.f&&this.a.observe(this.f)};_.Au.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.Cu.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.r);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.lk;c=c.play();var e=(new _.vl(function(){b(a)})).ba(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===Cb?b(!0):b(!1)}):b(!0);return d};
|
|
617
617
|
var Bu=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,
|
|
@@ -620,12 +620,12 @@ var Bu=new Uint8Array([0,0,0,28,102,116,121,112,105,115,111,109,0,0,2,0,105,115,
|
|
|
620
620
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
|
|
621
621
|
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,
|
|
622
622
|
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,
|
|
623
|
-
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]);_.u=_.Du.prototype;_.u.getDuration=function(){return this.a};_.u.getId=function(){return this.id};_.u.Ub=function(){return this.f};_.u.ce=function(){return this.h};_.u.oa=function(a){return this.getId()===a.getId()&&this.Ub()===a.Ub()&&this.getDuration()===a.getDuration()&&this.ce()===a.ce()};_.J("clpp.media.TimelineWindow",_.Du);_.Du.prototype.isDynamic=_.Du.prototype.ce;_.Du.prototype.getStart=_.Du.prototype.Ub;_.Du.prototype.getId=_.Du.prototype.getId;_.Du.prototype.getDuration=_.Du.prototype.getDuration;_.sw=new _.K("clpp.media.TimestampParser");_.u=_.Eu.prototype;_.u.
|
|
624
|
-
_.u.getFontSizePercent=function(){return null===this.B?tw:this.B};_.u.setFontSizePercent=function(a){this.B=a;this.
|
|
623
|
+
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]);_.u=_.Du.prototype;_.u.getDuration=function(){return this.a};_.u.getId=function(){return this.id};_.u.Ub=function(){return this.f};_.u.ce=function(){return this.h};_.u.oa=function(a){return this.getId()===a.getId()&&this.Ub()===a.Ub()&&this.getDuration()===a.getDuration()&&this.ce()===a.ce()};_.J("clpp.media.TimelineWindow",_.Du);_.Du.prototype.isDynamic=_.Du.prototype.ce;_.Du.prototype.getStart=_.Du.prototype.Ub;_.Du.prototype.getId=_.Du.prototype.getId;_.Du.prototype.getDuration=_.Du.prototype.getDuration;_.sw=new _.K("clpp.media.TimestampParser");_.u=_.Eu.prototype;_.u.Ll=function(a){return this.a[a]||null};_.u.Ml=function(){return this.a.length};_.u.Nl=function(){return this.a};_.u.Th=function(){return this.a[this.f]||null};_.u.zl=function(){return this.f};_.J("clpp.media.Timeline",_.Eu);_.Eu.prototype.getCurrentWindowIndex=_.Eu.prototype.zl;_.Eu.prototype.getCurrentWindow=_.Eu.prototype.Th;_.Eu.prototype.getWindows=_.Eu.prototype.Nl;_.Eu.prototype.getWindowCount=_.Eu.prototype.Ml;_.Eu.prototype.getWindow=_.Eu.prototype.Ll;_.Hu={};_.Ju={};var Ou=window.XMLHttpRequest;_.x(Wu,_.mk);Wu.prototype.then=function(a,b){this.U=this.U.then(a,b);return this};Wu.prototype["catch"]=function(a){this.U=this.U["catch"](a);return this};Wu.prototype.abort=function(){var a=this;if(this.a)return Promise.resolve();this.a=!0;return this.h.then(function(b){a.o&&clearTimeout(a.o);a.l&&a.l();return b.abort()})["catch"](function(){})};var bv=window.fetch,$u=window.AbortController,Zu=window.Headers;_.dv={};_.u=_.xv.prototype;_.u.getBackgroundColor=function(){return this.K};_.u.setBackgroundColor=function(a){this.K=a;this.Ob()};_.u.getWindowColor=function(){return this.V};_.u.setWindowColor=function(a){this.V=a;this.Ob()};_.u.getFontFamily=function(){return this.P};_.u.setFontFamily=function(a){this.P=a;this.Ob()};_.u.getFontColor=function(){return this.N};_.u.setFontColor=function(a){this.N=a;this.Ob()};_.u.getFontSize=function(){return this.I};_.u.setFontSize=function(a){this.I=a;this.Ob()};
|
|
624
|
+
_.u.getFontSizePercent=function(){return null===this.B?tw:this.B};_.u.setFontSizePercent=function(a){this.B=a;this.Ob()};_.u.getEdgeColor=function(){return this.H};_.u.setEdgeColor=function(a){this.H=a;this.Ob()};_.u.getEdgeType=function(){return this.o};_.u.setEdgeType=function(a){this.o=a;this.Ob()};_.xv.prototype.setEdgeType=_.xv.prototype.setEdgeType;_.xv.prototype.getEdgeType=_.xv.prototype.getEdgeType;_.xv.prototype.setEdgeColor=_.xv.prototype.setEdgeColor;_.xv.prototype.getEdgeColor=_.xv.prototype.getEdgeColor;
|
|
625
625
|
_.xv.prototype.setFontSizePercent=_.xv.prototype.setFontSizePercent;_.xv.prototype.getFontSizePercent=_.xv.prototype.getFontSizePercent;_.xv.prototype.setFontSize=_.xv.prototype.setFontSize;_.xv.prototype.getFontSize=_.xv.prototype.getFontSize;_.xv.prototype.setFontColor=_.xv.prototype.setFontColor;_.xv.prototype.getFontColor=_.xv.prototype.getFontColor;_.xv.prototype.setFontFamily=_.xv.prototype.setFontFamily;_.xv.prototype.getFontFamily=_.xv.prototype.getFontFamily;
|
|
626
|
-
_.xv.prototype.setWindowColor=_.xv.prototype.setWindowColor;_.xv.prototype.getWindowColor=_.xv.prototype.getWindowColor;_.xv.prototype.setBackgroundColor=_.xv.prototype.setBackgroundColor;_.xv.prototype.getBackgroundColor=_.xv.prototype.getBackgroundColor;var tw=1/15;var yv="raised",zv="depressed",Bv="dropshadow",Av="uniform";_.J("clpp.text.EdgeType",{NONE:_.We,RAISED:yv,DEPRESSED:zv,DROP_SHADOW:Bv,UNIFORM:Av});Dv.prototype.parseInit=function(a){try{var b=_.
|
|
627
|
-
Dv.prototype.parseMedia=function(a,b){if(!this.a)throw new _.N(_.P,2,2011);return this.a.parseMedia(a,b)};_.
|
|
628
|
-
_.u.
|
|
626
|
+
_.xv.prototype.setWindowColor=_.xv.prototype.setWindowColor;_.xv.prototype.getWindowColor=_.xv.prototype.getWindowColor;_.xv.prototype.setBackgroundColor=_.xv.prototype.setBackgroundColor;_.xv.prototype.getBackgroundColor=_.xv.prototype.getBackgroundColor;var tw=1/15;var yv="raised",zv="depressed",Bv="dropshadow",Av="uniform";_.J("clpp.text.EdgeType",{NONE:_.We,RAISED:yv,DEPRESSED:zv,DROP_SHADOW:Bv,UNIFORM:Av});Dv.prototype.parseInit=function(a){try{var b=_.nv(_.Vc);if(b){var c=new b(this.f);c.parseInit(a)}else this.g.warn("The clpp.ttml.Mp4TtmlParser class is not available. Please register the ttml component first.")}catch(e){c=null}if(c)this.a=c;else{try{var d=_.nv(_.Wc);d?(c=new d(this.f),c.parseInit(a)):this.g.warn("The clpp.vtt.Mp4VttParser class is not available. Please register the vtt component first.")}catch(e){c=null}if(c)this.a=c;else throw new _.N(_.P,2,2011);}};
|
|
627
|
+
Dv.prototype.parseMedia=function(a,b){if(!this.a)throw new _.N(_.P,2,2011);return this.a.parseMedia(a,b)};_.ev(Uc,Dv);_.x(_.Fv,_.xv);_.u=_.Fv.prototype;_.u.append=function(){};_.u.remove=function(){return!0};_.u.isTextVisible=function(){return this.w};_.u.setTextVisibility=function(a){this.w=a};
|
|
628
|
+
_.u.Ob=function(){if(!this.j){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.Cv(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.h.textContent="."+this.f+"::cue {"+b+"}"}};_.u.destroy=function(){this.l.classList.remove(this.f);document.head.removeChild(this.h);this.j=!0;return Promise.resolve()};var Ev=0;Gv.prototype.a=function(){return!0};Gv.prototype.create=function(a){return new _.Fv(a)};_.Cp("native",new Gv);_.u=_.Hv.prototype;_.u.onPlayerCreated=function(){};_.u.onContentWillLoad=function(){return Promise.resolve()};_.u.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.u.onPlayerWillDestroy=function(){};_.u.onPlayerWillRelease=function(){};}.call(g,this));
|
|
629
629
|
g.clpp._ = _;
|
|
630
630
|
if (typeof(module)!="undefined"&&module.exports) {module.exports=g.clpp;}
|
|
631
631
|
else if (typeof(define)!="undefined" && define.amd) {define(function(){return g.clpp;});}
|