@castlabs/prestoplay 6.25.0 → 6.25.1

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.core.js CHANGED
@@ -1,23 +1,23 @@
1
1
  (function(){var g={}; var _ = {};
2
- (function(window){var ba,ca,ea,fa,ha,sa,va,za,Aa,Ga,Ha,Ia,Ka,La,Ra,Wa,Xa,$a,bb,cb,db,hb,ib,jb,kb,lb,mb,nb,ob,pb,rb,sb,wb,yb,zb,Bb,Cb,Db,Eb,Gb,Hb,Lb,Pb,Wb,Xb,Yb,Zb,bc,dc,gc,hc,ic,lc,mc,oc,pc,qc,rc,sc,tc,uc,wc,Dc,Ec,Fc,Yc,cd,id,rd,sd,zd,Ad,Bd,Dd,Ed,Fd,Gd,Id,Jd,Kd,Ld,Md,Nd,Td,Ud,Wd,ae,ge,he,ie,je,ke,le,ne,oe,pe,ue,ve,xe,De,Ke,Me,Ne,Ve,of,vf,xf,yf,zf,Af,Bf,Cf,Df,Ef,Ff,Hf,Of,Pf,Qf,Rf,Sf,Tf,Vf,Zf,ag,pg,sg,zg,Mg,Qg,Wg,dh,hh,ih,jh,kh,lh,nh,oh,ph,uh,yh,Ch,Eh,Dh,Fh,Gh,Hh,Mh,Ph,Nh,Oh,Qh,Sh,Th,Xh,$h,ei,ii,li,ni,oi,pi,ri,si,qi,
2
+ (function(window){var ba,ca,ea,fa,ha,sa,va,za,Aa,Ga,Ha,Ia,Ka,La,Ra,Wa,Xa,$a,bb,cb,db,hb,ib,jb,kb,lb,mb,nb,ob,pb,rb,sb,wb,yb,zb,Bb,Cb,Db,Eb,Gb,Hb,Lb,Pb,Wb,Xb,Yb,Zb,bc,dc,gc,hc,ic,lc,mc,oc,pc,qc,rc,sc,tc,uc,vc,Dc,Ec,Fc,Yc,cd,id,rd,sd,zd,Ad,Bd,Dd,Ed,Fd,Gd,Id,Jd,Kd,Ld,Md,Nd,Td,Ud,Wd,ae,ge,he,ie,je,ke,le,ne,oe,re,ue,ve,xe,De,Ke,Me,Ne,Ve,of,vf,xf,yf,zf,Af,Bf,Cf,Df,Ef,Gf,Kf,Of,Pf,Qf,Rf,Sf,Tf,Vf,Zf,ag,pg,sg,zg,Mg,Qg,Wg,dh,hh,ih,jh,kh,lh,nh,oh,ph,uh,yh,Ch,Eh,Dh,Fh,Gh,Hh,Mh,Ph,Nh,Oh,Qh,Sh,Th,Xh,$h,ei,ii,li,ni,oi,pi,ri,si,qi,
3
3
  ui,vi,xi,Ai,yi,Bi,Di,Ci,Hi,Ki,Ji,Ii,Mi,Pi,Oi,Ni,Fi,Ei,Li,Gi,Si,Ti,Ui,Wi,Yi,Xi,$i,kj,lj,mj,oj,qj,rj,tj,uj,yj,Aj,Cj,wj,Ej,Sj,Tj,Zj,dk,fk,gk,jk,ek,ak,mk,nk,qk,rk,sk,uk,vk,wk,zk,Lk,Mk,Nk,Ok,Pk,Vk,Xk,Yk,el,fl,il,kl,jl,hl,ll,gl,ol,ml,nl,pl,ql,xl,Fl,Ql,Sl,Tl,Ul,dm,Vl,gm,im,km,lm,jm,nm,om,hm,pm,qm,rm,sm,tm,vm,wm,xm,ym,um,Cm,Dm,Fm,Im,Km,Qm,Rm,Sm,Tm,Um,Vm,Wm,Xm,Ym,fn,gn,hn,on,Bn,Hn,Kn,Ln,Nn,On,Xn,ao,bo,ho,no,oo,qo,ro,to,uo,vo,wo,xo,yo,zo,Ao,Bo,Co,Do,Eo,Fo,Io,Go,Jo,Lo,Mo,Ho,Ko,To,Uo,Vo,Wo,Zo,ap,bp,hp,ip,qp,
4
4
  wp,Fp,Cp,Dp,Jp,Lp,Op,Sp,Tp,Xp,Hp,Bp,dq,Vp,eq,gq,fq,oq,kq,jq,mq,pq,nq,rq,lq,qq,sp,Mp,hq,tp,cq,Ap,Zp,$p,uq,bq,Gp,Ep,vp,zq,Bq,Cq,Dq,Eq,Kq,Lq,Nq,Rq,Wq,Jq,Xq,Yq,ar,cr,dr,fr,gr,br,hr,ir,jr,kr,or,pr,qr,rr,sr,xr,yr,zr,Dr,Cr,Ir,Mr,Or,Pr,Qr,Kr,cs,Jr,Rr,Lr,ds,es,Gr,as,Er,fs,hs,$r,Xr,Yr,Wr,Zr,Vr,gs,js,bs,ms,Hr,Fr,Sr,ns,os,ls,Nr,vs,ws,ys,ps,xs,Es,As,zs,ss,Ds,Cs,Is,us,Ls,Bs,Js,qs,ts,Fs,Ts,Gs,Ks,Ns,Ms,Vs,Ss,Ys,rs,Ps,Zs,$s,bt,at,dt,et,ft,gt,ct,it,kt,lt,nt,ot,pt,qt,rt,st,tt,ut,wt,xt,yt,zt,vt,Ct,Et,Dt,Ft,Gt,X,Lt,Pt,
5
- Nt,Qt,St,Rt,Ut,Vt,$t,bu,au,Xt,Kt,Wt,du,eu,fu,iu,ju,hu,gu,mu,ou,nu,ru,pu,uu,vu,tu,xu,yu,zu,wu,lu,Au,ku,Du,Eu,Fu,Hu,Iu,Ju,Ku,Lu,Mu,Nu,Ou,Pu,Ru,Tu,Uu,Vu,Su,Xu,Yu,ev,jv,kv,mv,lv,Ik,ov,rv,qv,sv,uv,pv,wv,xv,vv,yv,Jk,Bv,Ek,Ov,fw,wh,hw;_.aa=" is registered.";ba=" is unsupported on this platform.";ca=" to a log level. Falling back to default!";_.da="#text";ea="': 'output-restricted'";fa="() is ongoing!";ha=".start";_.ia="6.25.0";_.ja="AUDIO";_.ka="AdaptationSet";_.ma="Already destroyed. No-op";_.na="Already released. No-op";
5
+ Nt,Qt,St,Rt,Ut,Vt,$t,bu,au,Xt,Kt,Wt,du,eu,fu,iu,ju,hu,gu,mu,ou,nu,ru,pu,uu,vu,tu,xu,yu,zu,wu,lu,Au,ku,Du,Eu,Fu,Hu,Iu,Ju,Ku,Lu,Mu,Nu,Ou,Pu,Ru,Tu,Uu,Vu,Su,Xu,Yu,ev,jv,kv,mv,lv,Ik,ov,rv,qv,sv,uv,pv,wv,xv,vv,yv,Jk,Bv,Ek,Ov,fw,wh,hw;_.aa=" is registered.";ba=" is unsupported on this platform.";ca=" to a log level. Falling back to default!";_.da="#text";ea="': 'output-restricted'";fa="() is ongoing!";ha=".start";_.ia="6.25.1";_.ja="AUDIO";_.ka="AdaptationSet";_.ma="Already destroyed. No-op";_.na="Already released. No-op";
6
6
  _.oa="Autoplay is not allowed due to browser policy.";_.pa="BANDWIDTH";_.qa="BASIC";sa="CHECKSUM";_.ta="CLOSED-CAPTIONS";_.ua="CODECS";va="Can not set volume to ";_.wa="Cannot retrieve buffer information due to platform limitations";_.xa="CastlabsPlayer";_.ya="Configuration is valid";za="Content-Length";Aa="Content-Type";_.Ea="Could not find configured DRM environment.";_.Fa="DRM environment '";Ga="DRM licenses loaded";Ha="DRMtoday";Ia="DRMtodayOnboard";_.Ja="DURATION";Ka="Destroying player";La="EXT-X-BYTERANGE";
7
7
  _.Na="EXT-X-DATERANGE";_.Oa="EXT-X-DEFINE";_.Pa="EXT-X-DISCONTINUITY";_.Qa="EXT-X-DISCONTINUITY-SEQUENCE";Ra="EXT-X-ENDLIST";_.Sa="EXT-X-KEY";_.Ta="EXT-X-MAP";_.Ua="EXT-X-MEDIA";_.Va="EXT-X-MEDIA-SEQUENCE";Wa="EXT-X-PART-INF";Xa="EXT-X-PLAYLIST-TYPE";_.Ya="EXT-X-PRELOAD-HINT";_.Za="EXT-X-PROGRAM-DATE-TIME";$a="EXT-X-SERVER-CONTROL";_.ab="EXT-X-STREAM-INF";bb="EXT-X-TARGETDURATION";cb="Error while decoding string!";db="Error while fetching certificate!";_.eb="FairPlay Certificate URL is not defined";
8
8
  _.fb="FairPlay License URL is not defined";_.gb="GROUP-ID";hb="HW_SECURE_ALL";ib="HW_SECURE_CRYPTO";jb="HW_SECURE_DECODE";kb="HeaderDrm";lb="Hide video element .";mb="Interstitial ";nb="Invalid track type: ";ob="InvalidStateError";pb="Key status for Key ID '";_.qb="LANGUAGE";rb="License verification failed: ";sb="Load interrupted while a player release is pending";_.tb="Loading player with configuration";_.ub="MaxHeight";_.vb="MaxWidth";wb="Missing media element";_.xb="NAME";yb="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";
9
9
  zb="No event provided!";Bb="No items in the playlist";Cb="No sources provided!";Db="No track data attached to the event, unable to add track!";Eb="Not a persistent session.";_.Fb="Not supported";Gb="NotAllowedError";Hb="NotSupportedError";_.Ib="PLAYLIST";_.Jb="POST";_.Kb="PlayReady License URL is not defined";Lb="Player not ready yet.";_.Mb="Player sources";_.Nb="Player state change: ";_.Ob="Please make sure ";Pb="Preloading is not supported by this player.";_.Qb="QualityLevel";_.Rb="RESOLUTION";
10
10
  _.Sb="Representation";_.Tb="SUBTITLES";_.Ub="SW_SECURE_CRYPTO";_.Vb="SW_SECURE_DECODE";Wb="Session is closed";Xb="Setting native ";Yb="Show video element .";Zb="Skipping Session creation. License for init data was already requested in Session: '";_.$b="SmoothStreamingMedia";_.ac="TYPE";bc="The index is not in the allowed range.";_.cc="URI";dc="Unable to translate ";_.ec="Unhandled/ignored event";_.fc="Unregistering listeners";gc="Unsupported keySystem";hc="Updating playout limit for interstitial";
11
- ic="Using VTTCue polyfill from 3 argument TextTrackCue.";_.jc="VIDEO";_.kc="VOD";lc="Wait for preloading to finish";mc="WebkitEmeManager.MediaKeySession.load";_.nc="Widevine License URL is not defined";oc="Will create EME Manager: ";pc="X-AD-CREATIVE-SIGNALING";qc="X-ASSET-LIST";rc="X-ASSET-URI";sc="X-PLAYOUT-LIMIT";tc="X-RESTRICT";uc="X-RESUME-OFFSET";wc="X-TIMELINE-OCCUPIES";_.xc="ad-break-started";_.yc="ad-break-stopped";_.zc="ad-buffering";_.Ac="ad-clicked";_.Bc="ad-completed";_.Cc="ad-first-quartile";
11
+ ic="Using VTTCue polyfill from 3 argument TextTrackCue.";_.jc="VIDEO";_.kc="VOD";lc="Wait for preloading to finish";mc="WebkitEmeManager.MediaKeySession.load";_.nc="Widevine License URL is not defined";oc="Will create EME Manager: ";pc="X-AD-CREATIVE-SIGNALING";qc="X-ASSET-LIST";rc="X-ASSET-URI";sc="X-PLAYOUT-LIMIT";tc="X-RESTRICT";uc="X-RESUME-OFFSET";vc="X-TIMELINE-OCCUPIES";_.xc="ad-break-started";_.yc="ad-break-stopped";_.zc="ad-buffering";_.Ac="ad-clicked";_.Bc="ad-completed";_.Cc="ad-first-quartile";
12
12
  Dc="ad-hls-asset-list-request";Ec="ad-hls-asset-list-response";Fc="ad-hls-resoled";_.Gc="ad-impression";_.Hc="ad-loaded";_.Ic="ad-midpoint";_.Jc="ad-paused";_.Kc="ad-progress";_.Lc="ad-resumed";_.Mc="ad-skipped";_.Nc="ad-started";_.Oc="ad-stopped";_.Pc="ad-third-quartile";_.Qc="addtrack";_.Rc="ads-timeline-changed";_.Sc="airplay-casting-ended";_.Tc="airplay-casting-started";_.Uc="airplay-status-changed";_.Vc="application";_.Wc="application/cea-608";_.Xc="application/dash+xml";Yc="application/mp4";
13
13
  _.Zc='application/mp4; codecs\x3d"stpp"';_.$c='application/mp4; codecs\x3d"wvtt"';_.ad="application/ttml+xml";_.bd="application/vnd.ms-sstr+xml";cd="application/x-www-form-urlencoded";_.dd="audio";_.ed="audio/aac";_.fd="audio/ac3";_.gd="audio/eac3";_.hd="audio/mp4";id='audio/mp4;codecs\x3d"mp4a.40.2"';_.jd="audiobufferchanged";_.kd="audiotrackchanged";_.ld="autoplaynotallowed";_.md="bitratechanged";_.nd="boolean";_.od="bufferingended";_.qd="bufferingstarted";rd="canplay";sd="canplaythrough";
14
- _.td="caption";_.ud="castingstarted";_.vd="caststatuschanged";_.wd="cdn-switch-success";_.xd="cenc";_.yd="center";zd="certificate-request";Ad="change";Bd="chrome";_.Cd="clpp-fill";Dd="clpp-hidden";Ed="clpp-mc-playlist";Fd="clpp-visible";Gd="clpp.PlayerFleet";_.Hd="clpp.cast.CastSender";Id="clpp.drm.HeaderDrm";Jd="clpp.drm.eme.AppleEmeManager";Kd="clpp.drm.eme.EmeFactory";Ld="clpp.native.Player";Md="clpp.plist.McPlaylist";Nd="clpp.utils.Platform";_.Od="codecs";_.Pd="column-reverse";_.Rd="com.adobe.primetime";
14
+ _.td="caption";_.ud="castingstarted";_.vd="caststatuschanged";_.wd="cdn-switch-success";_.xd="cenc";_.yd="center";zd="certificate-request";Ad="change";Bd="chrome";_.Cd="clpp-fill";Dd="clpp-hidden";Ed="clpp-mc-playlist";Fd="clpp-visible";Gd="clpp.PlayerFleet";_.Hd="clpp.cast.CastSender";Id="clpp.drm.HeaderDrm";Jd="clpp.drm.eme.AppleEmeManager";Kd="clpp.drm.eme.EmeFactory";Ld="clpp.native.Player";Md="clpp.plist.McPlaylist";Nd="clpp.utils.Platform";_.Od="codecs";_.Qd="column-reverse";_.Rd="com.adobe.primetime";
15
15
  _.Sd="com.apple.fps";Td="com.apple.hls.interstitial";Ud="com.apple.quicktime.HLS";_.Vd="com.microsoft.playready";Wd="com.microsoft.playready.recommendation";_.Xd="com.widevine.alpha";_.Yd="config.drm.customData is not defined";_.Zd="content-steering-change";_.$d="content-steering-location-ban-update";ae="controls";_.be="cuechange";_.ce="decoder";_.de="destroy()";_.ee="disabled";_.fe="div";ge="drm.license.req.";he="drm.mediaKeys.end";ie="drm.mediaKeys.start";je="drm.onPlay.end";ke="drm.onPlay.start";
16
- le="drm.sess.update.";_.me="drmexpirationupdate";ne="drmlicenserequested";oe="drmrenewalstarted";pe="drmsessioncreated";_.se="drmsessionpersisted";_.te="drmsessionupdate";ue="drmtoday";ve="durationchange";_.we="ec-3";xe="encrypted";_.ye="end";_.ze="ended";_.Ae="error";_.Be="estimatedThroughputKbps";_.Ce="forced";De="fullscreenElement";_.Ee="function";_.Fe="height";_.Ge="hidden";_.He="html";_.Ie="image";_.Je="internal-error";Ke="keystatuseschange";_.Le="left";Me="license-renewal";Ne="license-request";
17
- _.Oe="line-left";_.Qe="line-right";_.Re="live-turned-static";_.Se="load";_.Te="loadeddata";_.Ue="loadedmetadata";Ve="loadstart";_.We="main";_.Xe="mdat";_.Ye="mdia";_.Ze="message";_.$e="metadata";_.af="mimeType";_.bf="minf";_.cf="moov";_.df="mpd-type-changed";_.ef="mpeg-dash-callback-event";_.ff="none";_.k="number";_.gf="object";_.hf="onBitrateChanged()";_.jf="onContentLoaded";_.kf="onPlayerError()";_.lf="onPlayerWillDestroy";_.mf="onPlayerWillRelease";_.nf="onStateChanged()";of="online-status-changed";
18
- _.pf="optional";_.qf="org.w3.clearkey";_.rf="output-restricted";_.sf="pause";_.tf="persistent";_.uf="persistent-license";vf="picture-in-picture";_.wf="play";xf="player.afterLoad.end";yf="player.afterLoad.start";zf="player.appendLoad.end";Af="player.appendLoad.start";Bf="player.beforeLoad.end";Cf="player.beforeLoad.start";Df="player.load.end";Ef="player.load.start";Ff="player.setupPlaylist.end";Hf="player.setupPlaylist.start";_.Lf="playing";_.Mf="playlist-item-changed";_.Nf="playlist-modified";
16
+ le="drm.sess.update.";_.me="drmexpirationupdate";ne="drmlicenserequested";oe="drmrenewalstarted";re="drmsessioncreated";_.se="drmsessionpersisted";_.te="drmsessionupdate";ue="drmtoday";ve="durationchange";_.we="ec-3";xe="encrypted";_.ye="end";_.ze="ended";_.Ae="error";_.Be="estimatedThroughputKbps";_.Ce="forced";De="fullscreenElement";_.Ee="function";_.Fe="height";_.Ge="hidden";_.He="html";_.Ie="image";_.Je="internal-error";Ke="keystatuseschange";_.Le="left";Me="license-renewal";Ne="license-request";
17
+ _.Pe="line-left";_.Qe="line-right";_.Re="live-turned-static";_.Se="load";_.Te="loadeddata";_.Ue="loadedmetadata";Ve="loadstart";_.We="main";_.Xe="mdat";_.Ye="mdia";_.Ze="message";_.$e="metadata";_.af="mimeType";_.bf="minf";_.cf="moov";_.df="mpd-type-changed";_.ef="mpeg-dash-callback-event";_.ff="none";_.k="number";_.gf="object";_.hf="onBitrateChanged()";_.jf="onContentLoaded";_.kf="onPlayerError()";_.lf="onPlayerWillDestroy";_.mf="onPlayerWillRelease";_.nf="onStateChanged()";of="online-status-changed";
18
+ _.pf="optional";_.qf="org.w3.clearkey";_.rf="output-restricted";_.sf="pause";_.tf="persistent";_.uf="persistent-license";vf="picture-in-picture";_.wf="play";xf="player.afterLoad.end";yf="player.afterLoad.start";zf="player.appendLoad.end";Af="player.appendLoad.start";Bf="player.beforeLoad.end";Cf="player.beforeLoad.start";Df="player.load.end";Ef="player.load.start";Gf="player.setupPlaylist.end";Kf="player.setupPlaylist.start";_.Lf="playing";_.Mf="playlist-item-changed";_.Nf="playlist-modified";
19
19
  Of="playlist.next.end";Pf="playlist.next.start";Qf="preload-aborted";Rf="preload-failed";Sf="preloaded";Tf="preloading";_.Uf="prevent";Vf="primary-content";_.Wf="progress";_.Xf="px";_.Yf="ratechange";Zf="released";_.$f="releasing";ag="removetrack";_.bg="required";_.cg="resize";_.dg="right";_.eg="sc-playlist-ended";_.fg="sc-playlist-item-changed";_.gg="sc-playlist-live-turned-static";_.hg="sc-playlist-timeline-changed";_.ig="seeked";_.jg="seeking";_.kg="showing";_.lg="simid-creative-started";
20
- _.mg="simid-creative-stopped";_.ng="sinf";_.og="smooth";pg="stalled";_.qg="start";_.rg="statechanged";sg="status-pending";_.tg="stbl";_.ug="string";_.vg="stsd";_.wg="style";_.xg="subtitle";_.yg="subtitles-htmlcue";zg="temporary";_.Ag="text/vtt";_.Bg="text/xml";_.Cg="texttrackchanged";_.Dg="timeline-cue-added";_.Eg="timeline-cue-enter";_.Fg="timeline-cue-exit";_.Gg="timeline-cues-changed";_.Hg="timeupdate";_.Ig="tracksadded";_.Jg="trak";_.Kg="ttml-xml";Mg="unauthenticated";_.Ng="und";_.Pg="unknown";
20
+ _.mg="simid-creative-stopped";_.ng="sinf";_.og="smooth";pg="stalled";_.qg="start";_.rg="statechanged";sg="status-pending";_.tg="stbl";_.ug="string";_.vg="stsd";_.wg="style";_.xg="subtitle";_.yg="subtitles-htmlcue";zg="temporary";_.Ag="text/vtt";_.Bg="text/xml";_.Cg="texttrackchanged";_.Dg="timeline-cue-added";_.Eg="timeline-cue-enter";_.Fg="timeline-cue-exit";_.Gg="timeline-cues-changed";_.Hg="timeupdate";_.Ig="tracksadded";_.Jg="trak";_.Lg="ttml-xml";Mg="unauthenticated";_.Og="und";_.Pg="unknown";
21
21
  Qg="update";_.Rg="urn:scte:scte35";_.Sg="urn:scte:scte35:2014";_.Tg="user-seeked";_.Ug="user-seeking";_.Vg="value";Wg="version";_.Xg="vertical-lr";_.Yg="vertical-rl";_.r="video";_.Zg="video/mp2t";_.$g="video/mp4";_.ah="videobufferchanged";_.bh="videotrackchanged";_.ch="vimond-response";dh="visibilitychange";_.eh="vtt-xml";_.fh="waiting";_.gh="waitingforkey";hh="webkit-org.w3.clearkey";ih="webkitkeyadded";jh="webkitkeyerror";kh="webkitkeymessage";lh="webkitneedkey";_.mh="width";nh="x-dt-csl-tracking-token";
22
22
  oh="x-dt-follow-up-token";ph="x-dt-resp-code";_.qh="yospace-session-ended";_.rh="yospace-session-started";_.th=function(a){return function(){return _.sh[a].apply(this,arguments)}};uh=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:uh(a)}};_.vh=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};
23
23
  _.x=function(a,b){a.prototype=wh(b.prototype);a.prototype.constructor=a;if(xh)xh(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]};yh=function(){yh=function(){};zh.Symbol||(zh.Symbol=Ah)};Ch=function(a,b){this.a=a;Bh(this,"description",{configurable:!0,writable:!0,value:b})};
@@ -30,7 +30,7 @@ Sh=function(a,b){if(b){for(var c=zh,d=a.split("."),e=0;e<d.length-1;e++){var f=d
30
30
  _.J=function(a,b){var c=a.split("."),d=Uh;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};Xh=function(a){return a&&0<=Vh[a]?Vh[a]:Wh};$h=function(a){if(!a)return _.Yh("clpp.log",dc+a+ca),-1;var b=Zh[a.toUpperCase()];return void 0===b?(_.Yh("clpp.log",dc+a+ca),-1):b};_.K=function(a){(this.tag=a)&&void 0===Vh[a]&&(Vh[a]=-1)};_.bi=function(a){ai.info.apply(ai,arguments)};
31
31
  _.ci=function(a){ai.debug.apply(ai,arguments)};_.Yh=function(a){ai.warn.apply(ai,arguments)};_.di=function(a){ai.error.apply(ai,arguments)};ei=function(a,b){this.ob=a;this.sourceIndex=b};_.hi=function(a){if(a){var b=a.a();b in _.fi?_.gi.warn("Player-Factory '"+b+"' already registered"):(_.fi[b]=a,_.gi.info("Registered Player-Factory: '"+b+"'"))}};ii=function(a){return Object.values(_.fi).find(a)||null};_.ji=function(a){this.f=a;this.a=null};
32
32
  li=function(a,b,c){function d(){e&&a.f()}a.stop();var e=!0,f=null;a.a=function(){c?clearInterval(f):clearTimeout(f);e=!1};f=c?setInterval(d,1E3*b):setTimeout(d,1E3*b);return a};_.mi=function(a){this.f=a;this.a=null};ni=function(a){return 0>=a?Promise.resolve():new Promise(function(b){setTimeout(function(){b()},1E3*a)})};oi=function(){this.Oc=null;this.f=[];this.h=[];this.Ca=new _.K(Gd);this.a=null;this.j=!1};pi=function(a){return[a.Oc].concat(_.vh(a.f)).filter(function(b){return null!=b})};
33
- ri=function(a,b){var c;_.I(function(d){c=function(){return Promise.all(a.f.filter(function(e){return null!=e.getLoadedSource()}).map(b))};return _.y(d,qi(a,c),0)})};si=function(a,b){var c;return _.I(function(d){c=function(){return Promise.all(pi(a).map(b))};return _.y(d,qi(a,c),0)})};qi=function(a,b){return _.I(function(c){if(1==c.a)return a.a?_.y(c,a.a,2):c.F(2);a.a=b().then(function(){a.a=null});_.C(c)})};_.ti=function(){this.a={}};ui=function(a,b,c,d){this.f=a;this.hd=b;this.a=c;this.jo=!!d};
33
+ ri=function(a,b){var c;_.I(function(d){c=function(){return Promise.all(a.f.filter(function(e){return null!=e.getLoadedSource()}).map(b))};return _.y(d,qi(a,c),0)})};si=function(a,b){var c;return _.I(function(d){c=function(){return Promise.all(pi(a).map(b))};return _.y(d,qi(a,c),0)})};qi=function(a,b){return _.I(function(c){if(1==c.a)return a.a?_.y(c,a.a,2):c.F(2);a.a=b().then(function(){a.a=null});_.C(c)})};_.ti=function(){this.a={}};ui=function(a,b,c,d){this.f=a;this.hd=b;this.a=c;this.io=!!d};
34
34
  _.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};vi=function(a){this.a=new _.ti;this.f=a};_.wi=function(){this.a=new _.ti};
35
35
  xi=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=[xe,"msneedkey",lh,"needkey"],f=_.w(e),g=f.next();!g.done;g=f.next())a.on(b,g.value,d)};_.zi=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)yi(c[b]);a.a.clear()};Ai=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};yi=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
36
36
  Bi=function(a){this.m=a;this.l=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.j=new _.wi;this.f=new Set;this.a=new Set;this.h=null;this.g=new _.K("clpp.native.Metadata")};Di=function(a,b){a.j.on(b,_.Qc,function(c){c=c.track;c.kind===_.$e&&Ci(a,c)})};
@@ -43,7 +43,7 @@ Pi=function(a){var b=[],c={};a=_.w(a);for(var d=a.next();!d.done;c={Gd:c.Gd},d=a
43
43
  Ni=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=_.Sg,b.type=_.Ri};Fi=function(a){a.forEach(function(b){b.Hg=!0})};Ei=function(a){return Li(a).filter(function(b){return b.type===Ud&&!b.Hg})};Li=function(a){var b=[];a=_.w(a);for(var c=a.next();!c.done;c=a.next())b.push(c.value);return b};
44
44
  Gi=function(a,b){var c=a.map(function(d){return{startTime:d.startTime,endTime:d.endTime,key:d.value.key,value:d.value.data,Di:!1}});c=Si(c);b&&(c=Ti(c));return new Set(Pi(c))};Si=function(a){var b=new Set(a),c=new Set(a.filter(function(d){return"SCTE35-OUT"===d.key}).map(Ui));a.filter(function(d){return"SCTE35-IN"===d.key}).forEach(function(d){c.has(Ui(d))||(d.Di=!0)});return Array.from(b.values())};Ti=function(a){a.forEach(function(b){b.Di&&(b.endTime=b.startTime,b.startTime=0)});return a};
45
45
  Ui=function(a){return a.startTime+"-"+a.endTime};_.Vi=function(a){return Array.isArray(a)?a:[a]};Wi=function(a,b){return a===b?!0:a.length===b.length&&a.every(function(c,d){return c===b[d]})};Yi=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 Xi(a,b)&&Xi(b,a)};Xi=function(a,b){var c=new Set(a);return b.every(function(d){return c.has(d)})};
46
- _.Zi=function(a,b){b=void 0===b?{}:b;if(b.Rh){for(var c=[],d={},e=_.w(a),f=e.next();!f.done;d={Le:d.Le},f=e.next())d.Le=f.value,c.some(function(g){return function(h){return b.Rh(g.Le,h)}}(d))||c.push(d.Le);return c}return Array.from((new Set(a)).values())};$i=function(a,b){var c=new Set(a),d=new Set(b);return{ko:a.filter(function(e){return!d.has(e)}),Dp:a.filter(function(e){return d.has(e)}),Rj:b.filter(function(e){return!c.has(e)})}};
46
+ _.Zi=function(a,b){b=void 0===b?{}:b;if(b.Rh){for(var c=[],d={},e=_.w(a),f=e.next();!f.done;d={Le:d.Le},f=e.next())d.Le=f.value,c.some(function(g){return function(h){return b.Rh(g.Le,h)}}(d))||c.push(d.Le);return c}return Array.from((new Set(a)).values())};$i=function(a,b){var c=new Set(a),d=new Set(b);return{jo:a.filter(function(e){return!d.has(e)}),Cp:a.filter(function(e){return d.has(e)}),Qj:b.filter(function(e){return!c.has(e)})}};
47
47
  _.gj=function(a,b,c,d){d=void 0===d?_.aj:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.bj;this.writingMode=_.cj;this.lineInterpretation=_.dj;this.line=null;this.lineAlign=_.ej;this.direction=fj;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
48
48
  _.jj=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.hj;this.scroll=ij;this.cssClassList=[];this.writingMode=this.displayAlign=null};kj=function(a){this.m=a;this.l=a.getTextDisplayer();this.f=this.h=null;this.a=new _.wi;this.j=!1;this.g=new _.K("clpp.native.CueHandler")};
49
49
  lj=function(a,b){var c=b.track;c.kind!==_.$e&&(c.mode===_.kg&&(c.mode=_.Ge),a.a.on(c,_.be,function(d){d=d.target||d.srcElement;d.mode=_.Ge;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.l.append(d,[]))}))};_.O=function(a,b,c,d,e){var f=Error.call(this,mj(a,b,c,d));this.message=f.message;"stack"in f&&(this.stack=f.stack);this.severity=a;this.category=b;this.code=c;this.data=!d||_.N.ha(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.O)};
@@ -56,7 +56,7 @@ _.Gj=function(a,b){for(var c=Fj[a],d=0;d<c.length;d++)for(var e=0;e<b.length;e++
56
56
  _.S=function(a,b,c,d){d=void 0===d?{}:d;a=a.getAttribute(b);if(!a&&d.required)throw new _.O(_.P,4,4023,"Required attribute missing: "+b);return a?a.value:c||null};_.Lj=function(a,b){return _.S(a,b,void 0,{required:!0})};_.Mj=function(a,b){this.name=a;this.value=b};
57
57
  _.Nj=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.Ja=g;this.eb=d;this.Da=e;this.pa=f;this.keyInfo=(void 0===h?null:h)||null;this.sd=_.N.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.ye=z;this.Ta=A};
58
58
  _.Oj=function(a,b,c,d,e,f,g,h,l,m,n,p,q,t,v){t=void 0===t?[]:t;_.Nj.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.oa=0};_.Qj=function(a,b){a=_.Pj(a);b=_.Pj(b);return a.split("-")[0]===b.split("-")[0]};_.Pj=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Rj.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};Sj=function(a){if(null!==a&&void 0!==a)return Number(a)};
59
- Tj=function(a){return a.reduce(function(b,c){return b+c},0)};_.Uj=function(a){if(typeof a!==_.ug)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:{je:a,Ge:b,Go:a*b}};_.Vj=function(a){this.f=a;this.a=0};_.Wj=function(a,b){b.lastIndex=a.a;var c=b.exec(a.f);c=null==c?null:{position:c.index,length:c[0].length,results:c};if(a.a===a.f.length||null===c||c.position!==a.a)return null;a.a+=c.length;return c.results};
59
+ Tj=function(a){return a.reduce(function(b,c){return b+c},0)};_.Uj=function(a){if(typeof a!==_.ug)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:{je:a,Ge:b,Fo:a*b}};_.Vj=function(a){this.f=a;this.a=0};_.Wj=function(a,b){b.lastIndex=a.a;var c=b.exec(a.f);c=null==c?null:{position:c.index,length:c[0].length,results:c};if(a.a===a.f.length||null===c||c.position!==a.a)return null;a.a+=c.length;return c.results};
60
60
  _.Xj=function(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new _.O(_.P,4,4016,{invalidTag:b});var d=c[1],e=c[2];c=[];var f;if(e){e=new _.Vj(e);var g;(g=_.Wj(e,/^([^,=]+)(?:,|$)/g))&&g[1]&&(f=g[1].trim());for(var h=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=_.Wj(e,h);)c.push(new _.Mj(g[1],g[2]||g[3]||""))}return new _.Kj(a,d,c,f)};_.Yj=function(a,b){for(var c=_.w(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};Zj=function(){};
61
61
  dk=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!==b.byteLength)return!1;if(ak(a)===ak(b)&&(a.byteOffset||0)===(b.byteOffset||0))return!0;for(var c=_.bk(a),d=_.bk(b),e=_.w(ck(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!==d[f])return!1;return!0};_.bk=function(a,b,c){c=void 0===c?Infinity:c;return ek(a,void 0===b?0:b,c,Uint8Array)};fk=function(a,b,c){c=void 0===c?Infinity:c;return ek(a,void 0===b?0:b,c,Uint16Array)};
62
62
  gk=function(a,b,c){c=void 0===c?Infinity:c;return ek(a,void 0===b?0:b,c,Uint32Array)};_.hk=function(a,b,c){c=void 0===c?Infinity:c;return ek(a,void 0===b?0:b,c,Int32Array)};_.ik=function(a,b,c){c=void 0===c?Infinity:c;return ek(a,void 0===b?0:b,c,DataView)};jk=function(a){return a instanceof ArrayBuffer?a:0===a.byteOffset&&a.byteLength===a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
@@ -67,12 +67,12 @@ _.pk=function(a,b){_.N.ha(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var
67
67
  mk(c,b);return c};_.tk=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(qk(c))return rk(a);throw sk(a);};qk=function(a){return 200<=a&&299>=a&&202!==a};rk=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}};
68
68
  sk=function(a){a=rk(a);try{var b=_.T.ce(a.data,!0)}catch(d){b=null}_.ci("HTTP error text:",b);var c=a.request;return new _.O(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})};uk=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};
69
69
  vk=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};wk=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()};
70
- _.xk=function(){this.nj=this.Cf=this.done=!1;this.error=this.value=null;var a,b,c=new Promise(function(d,e){a=function(f){this.done=this.Cf=!0;this.value=f;d(f)};b=function(f){this.done=this.nj=!0;this.error=f;e(f)}});c.Cf=!1;c.done=!1;c.nj=!1;c.value=null;c.error=null;c.resolve=a;c.reject=b;return c};_.yk=function(a,b){this.T=a;this.A=b;this.a=!1};zk=function(a,b){a.T.then(function(){return b(!0)},function(){return b(!1)});return a};_.Ak=function(){this.a=[]};
70
+ _.xk=function(){this.mj=this.Cf=this.done=!1;this.error=this.value=null;var a,b,c=new Promise(function(d,e){a=function(f){this.done=this.Cf=!0;this.value=f;d(f)};b=function(f){this.done=this.mj=!0;this.error=f;e(f)}});c.Cf=!1;c.done=!1;c.mj=!1;c.value=null;c.error=null;c.resolve=a;c.reject=b;return c};_.yk=function(a,b){this.T=a;this.A=b;this.a=!1};zk=function(a,b){a.T.then(function(){return b(!0)},function(){return b(!1)});return a};_.Ak=function(){this.a=[]};
71
71
  _.Bk=function(a,b){a.a.push(zk(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};_.Kk=function(){this.f=[];this.h=[];this.j=[];this.w=!1;this.o=new _.Ak;this.a={};this.headers=new Map;this.l=0;this.a.data=Ek;!window.fetch||!window.AbortController||_.Fk(6)||_.Gk()&&68<_.Hk().browserVersion.major?(this.a.http=Ik,this.a.https=Ik):(this.a.http=Jk,this.a.https=Jk)};Lk=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return c=_.T,_.y(e,a.fetch(b),2);d=e.f;return e["return"](c.Pi(c.ea(d.data)))})};
72
72
  Mk=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.y(e,Lk(a,b),2);c=e.f;try{d=JSON.parse(c);if(null==d||typeof d!==_.gf)throw Error("Not an object");return e["return"](d)}catch(f){throw new _.nj("Failed to parse JSON response","json-failed");}})};
73
73
  Nk=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=_.pk(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.D(g,4);return _.y(g,a.fetch(e).T,6);case 6:_.Jh(g,2);break;case 4:if(f=_.H(g),1002===f.code||1003===f.code)return g["return"](!1);case 2:return g["return"](!0)}})};
74
74
  Ok=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)}};Pk=function(a,b){var c=new _.sj(b.uris[b.uriIndex]),d=c.Gb;d||(d=location.protocol,d=d.slice(0,-1),tj(c,d),b.uris[b.uriIndex]=c.toString());var e=a.a[d];if(!e)throw new _.O(_.P,1,1E3,{url:c.toString()});return function(f){return e(f)}};
75
- _.Qk=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=[]};_.Rk=function(a){return a&&a!==_.Ng?a:null};
75
+ _.Qk=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=[]};_.Rk=function(a){return a&&a!==_.Og?a:null};
76
76
  Vk=function(a){if(!a)throw new _.O(_.P,3,3101,nb+a);if(!_.N.ha(a))throw new _.O(_.P,3,3101,nb+a+". Track type must be a string!");switch(a.toLowerCase()){case _.Sk:return _.Sk;case _.V:return _.V;case _.Tk:return _.Tk;case Uk:return Uk}throw new _.O(_.P,3,3101,"Unknown track type: "+a+".");};
77
77
  Xk=function(a,b){a=Vk(a);var c=_.Rk(b.kind),d=b.id;d||(d=String(_.Wk++));d=new _.Qk(d,c===_.$e?Uk:a);d.kind=c;d.label=_.Rk(b.label);d.language=_.Rk(b.language);d.originalLanguage=b.originalLanguage||d.language;return d};Yk=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};_.Zk=function(a,b){this.track=b;this.id=a;this.originalId=this.codec=this.Nd=this.bandwidth=this.height=this.width=null;this.a=!1};
78
78
  _.$k=function(a){this.j=a;this.scheme=null;var b=document.createElement("a"),c=a.match(/^(.*:)(\/\/(.*))$/),d=!1;if(c){if(this.scheme=c[1],b.href=c[2],":"===b.protocol||""===b.host&&""===b.pathname)b.href="//dummy.com/"+c[3],d=!0}else{b.href=a;if(":"===b.protocol||""===b.host&&""===b.pathname)b.href="//dummy.com/"+a.match(/\/?\/?(.*)/)[1],d=!0;this.scheme=b.protocol}""===this.scheme&&(this.scheme=window.location.protocol);this.a=d?"":b.hostname;this.port=b.port;this.path=b.pathname;_.T.startsWith(this.path,
@@ -81,7 +81,7 @@ _.dl=function(a){var b={};a=a||"";a=a.substring(a.indexOf("?")+1);a=_.w(a.split(
81
81
  fl=function(a){this.f=a;this.g=new _.K("clpp.native.hls.HlsMetadataParser");this.a=oj(this.h.bind(this),function(b,c){return b[0]===c[0]&&b[1].enableHlsVideoTrackInfo===c[1].enableHlsVideoTrackInfo&&b[1].enableMetadata===c[1].enableMetadata})};
82
82
  il=function(a,b,c){var d,e,f,g,h;return _.I(function(l){if(1==l.a)return _.y(l,gl(a,b,c),2);d=l.f;e=d.mimeType;f=d.renditions;g=new _.Qk("dummy",_.Tk);h=f.map(function(m,n){var p=new _.Zk("R"+n,g);p.bandwidth=m.bandwidth;p.Nd=m.Nd;p.codec=m.codec;p.width=m.width;p.height=m.height;return p});hl(h);return l["return"]({renditions:h,mimeType:e||void 0})})};
83
83
  kl=function(a){a=a.split("\n").filter(function(c){return c.trim().startsWith("#EXT-X-MEDIA:")}).map(function(c){return jl(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};
84
- jl=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.Xj(0,a);a=b(_.ac);a=null!=a?{AUDIO:_.V,VIDEO:_.Tk,SUBTITLES:_.Sk}[a]:void 0;return{type:a,groupId:b(_.gb),name:b(_.xb),language:b(_.qb),jp:b("AUTOSELECT"),"default":b("DEFAULT"),up:b("FORCED"),xh:b("CHARACTERISTICS"),uri:b(_.cc)}};hl=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.");};
84
+ jl=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.Xj(0,a);a=b(_.ac);a=null!=a?{AUDIO:_.V,VIDEO:_.Tk,SUBTITLES:_.Sk}[a]:void 0;return{type:a,groupId:b(_.gb),name:b(_.xb),language:b(_.qb),ip:b("AUTOSELECT"),"default":b("DEFAULT"),tp:b("FORCED"),xh:b("CHARACTERISTICS"),uri:b(_.cc)}};hl=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.");};
85
85
  ll=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return c=_.pk(b),_.y(e,Lk(a.f,c),2);d=e.f;return e["return"](d)})};gl=function(a,b,c){var d,e,f,g;return _.I(function(h){if(1==h.a)return d=ml(b),e=nl(b,c),f=d[0]?d[0].codec:null,_.y(h,ol(a,e,f),2);g=h.f;return h["return"]({mimeType:g,renditions:d})})};ol=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return b&&c?_.y(f,ll(a,b),2):f["return"](null);d=f.f;e=[pl(d,b),ql(d,b)].filter(Boolean);return f["return"](_.Jj(e,_.r,c))})};
86
86
  ml=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(_.jc))throw Error("Playlist contains alternative video streams.");var d=_.S(c,_.Rb);b=d?Number(d.split("x")[0]):null;d=d?Number(d.split("x")[1]):null;var e=_.S(c,_.pa);e=e?Number(e):null;var f=_.S(c,"AVERAGE-BANDWIDTH");f=f?Number(f):null;c=_.S(c,_.ua);c=_.Gj(_.r,c?c.split(","):[]);return{bandwidth:e,Nd:f,codec:c,width:b,height:d,mimeType:null}})};
87
87
  nl=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?el(c,b):null};pl=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?el(c,b):null};ql=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.S(_.Xj(0,c),_.cc))?el(c,b):null:null};_.sl=function(a,b,c){for(var d=_.w(_.rl),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};
@@ -118,12 +118,12 @@ if(!_.N.R(c.drm)){if(c.drm.env&&!_.N.ha(c.drm.env))throw new _.O(_.P,7,7100,"con
118
118
  Fm=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}};
119
119
  Im=function(a){_.N.R(a.maxPixels)&&(a.maxPixels=Infinity);_.N.R(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.N.R(a.maxHeight)&&(a.maxHeight=Infinity);_.N.R(a.maxWidth)&&(a.maxWidth=Infinity);_.N.R(a.minPixels)&&(a.minPixels=0);_.N.R(a.minBandwidth)&&(a.minBandwidth=0);_.N.R(a.minHeight)&&(a.minHeight=0);_.N.R(a.minWidth)&&(a.minWidth=0);a.minWidth=Number(a.minWidth);a.maxWidth=Number(a.maxWidth);a.minHeight=Number(a.minHeight);a.maxHeight=Number(a.maxHeight);a.minBandwidth=Number(a.minBandwidth);
120
120
  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 _.O(_.P,7,7100,"Restrictions contain NaN");};Km=function(a){return typeof a===_.gf&&!Array.isArray(a)&&"source"in a};
121
- _.Lm=function(a){_.Am.call(this);this.log=new _.K(a);this.configuration=this.kb=_.Hm();this.ba=this.G=null;this.re=this.Ng=!1;this.ih=new _.K("clpp.video.events");this.Od=null;this.gf=-1;this.Ej=this.io.bind(this);this.Jg=new _.Kk;this.P=new _.wi;this.Ig=this.cd=this.td=this.U=null};_.Nm=function(a){return _.Mm.get(a)||null};_.Pm=function(a){_.Mm.get(a.id())?Om.warn("Component already in use."):_.Mm.set(a.id(),a)};
121
+ _.Lm=function(a){_.Am.call(this);this.log=new _.K(a);this.configuration=this.kb=_.Hm();this.ba=this.G=null;this.re=this.Ng=!1;this.ih=new _.K("clpp.video.events");this.Od=null;this.gf=-1;this.Dj=this.ho.bind(this);this.Jg=new _.Kk;this.P=new _.wi;this.Ig=this.cd=this.td=this.U=null};_.Nm=function(a){return _.Mm.get(a)||null};_.Pm=function(a){_.Mm.get(a.id())?Om.warn("Component already in use."):_.Mm.set(a.id(),a)};
122
122
  Qm=function(a){return Array.from(_.Mm.values()).find(function(b){return b instanceof a})||null};Rm=function(a){for(var b=_.w(_.Mm.values()),c=b.next();!c.done;c=b.next())a(c.value)};Sm=function(a){Rm(function(b){b.o(a)})};Tm=function(a){Rm(function(b){b.h(a)})};Um=function(){Rm(function(){})};Vm=function(){Rm(function(){})};Wm=function(a){if(null!==Qm(a))return null;a=new a;a.f();_.Pm(a);Om.info("Installed component:",a.id());return a};
123
123
  Xm=function(a){if(a=Qm(a))a.a(),_.Mm["delete"](a.id()),Om.info("Uninstalled component:",a.id())};Ym=function(){};_.$m=function(a,b){b=void 0===b?!0:b;var c=_.Zm(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")};_.an=function(a){a=window.atob(a.replace(/-/g,"+").replace(/_/g,"/"));for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b};
124
124
  _.bn=function(a){for(var b=new Uint8Array(a.length/2),c=0;c<a.length;c+=2)b[c/2]=window.parseInt(a.substr(c,2),16);return b};_.cn=function(a){for(var b="",c=0;c<a.length;++c){var d=a[c].toString(16);1===d.length&&(d="0"+d);b+=d}return b};_.dn=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.length!==b.length)return!1;for(var c=0;c<a.length;++c)if(a[c]!==b[c])return!1;return!0};
125
125
  _.en=function(a){for(var b=0,c=0;c<arguments.length;++c)b+=arguments[c].length;b=new Uint8Array(+b);for(var d=c=0;d<arguments.length;++d)b.set(arguments[d],c),c+=arguments[d].length;return b};_.Zm=function(a){a=_.T.fromCharCode(_.bk(a));return btoa(a)};fn=function(){this.a=this.f=null;this.g=new _.K("clpp.drm.csl")};gn=function(a,b){3===b.type&&(a.f&&(a.g.debug("Attaching tracking token"),b.headers[nh]=a.f),a.a&&(b.headers[oh]=a.a))};
126
- hn=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[nh];a.a=b.headers[oh];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(_.T.ea(_.an(c))),{delay:c.renewalPeriod,fp:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};_.kn=function(a){_.jn[a.J]=a};
126
+ hn=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[nh];a.a=b.headers[oh];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(_.T.ea(_.an(c))),{delay:c.renewalPeriod,ep:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};_.kn=function(a){_.jn[a.J]=a};
127
127
  _.mn=function(a){var b={attemptParameters:_.lk(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,enableSessionCacheForSkd:!1,ignoreUnrecognizedInitData:!0,Sa:{},widevineVersion:_.Xd};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===_.ug&&0<a.widevineVersion.length&&(b.widevineVersion=a.widevineVersion),a.env)){var c=_.jn[a.env]||null;if(!c)throw _.ci(_.Ea,_.Ob+a.env+_.aa),new _.O(_.P,6,6015,_.Fa+a.env+"' is missing.");b.Sa=_.ln(c,a.customData)||{};_.T.startsWith(a.env.toLowerCase(),ue)&&(b.enforceSingleSession=!0)}return b};
129
129
  on=function(a){a=nn[a];if(!a)return null;var b=_.Hk();return b.os===Yl&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.pn=function(a){this.J=a;this.f={}};
@@ -167,15 +167,15 @@ _.ep=function(a){function b(t){switch(t){case 0:do if(!_.un(d))throw Error("not
167
167
  e=_.In(e);var f=_.yn(d),g=f>>>24;f&=16777215;var h=_.Cn(d,16);h=_.cn(h);if(0<g){var l=_.yn(d);d.skip(16*l)}l=_.yn(d);for(var m=[],n=null;_.un(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=Bn(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.ci("Parsed WV PSSH Box","size",a,"name",e,Wg,g,"flags",f,"size",l,"systemId",h,"contentId (base64)",n?_.Zm(n):"","keyIds",m.map(function(t){return _.cn(t)}));return 0<m.length?_.dp(_.cn(m[0])):null};
168
168
  _.fp=function(a,b,c,d,e,f){f=void 0===f?null:f;ap.call(this,a,b,d);this.version=e;this.h=c;this.l=f};
169
169
  _.lp=function(a){var b=_.gp;a:{var c=new _.tn(new DataView(a.buffer),!0);_.yn(c);for(_.xn(c);_.un(c);)if(1===_.xn(c)){var d=_.xn(c);c=_.Cn(c,d);break a}c=null}c||(c=a);a=_.T.Jc(c,!0);d=b.we(a,"WRMHEADER");a=d.getAttribute(Wg)||"";d=b.Ma(d,"DATA");var e=b.Ma(d,"LA_URL");b=e?b.sa(e):"";e=_.gp;var f=e.Ma(d,"KID");if(f)if(f=e.sa(f)){var g=e.Ma(d,sa);e=g?e.sa(g):null;e={value:f,Zf:e}}else e=null;else e=null;d=e?[e]:(e=hp(d))?[e]:(d=ip(d))?d:null;e=d&&d[0]||{};d=e.Zf;e=_.an(void 0===e.value?"":e.value);
170
- e=_.jp(e);e=_.cn(e);return new _.fp(_.kp,e,b,c,a,d)};_.jp=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=_.bk(a);a.set(b,0);return a};hp=function(a){var b=_.gp;a=b.Ma(a,"PROTECTINFO");if(!a)return null;var c=b.Ma(a,"KID");if(!c)return null;b=c.getAttribute("VALUE");if(!b)return null;a=c.getAttribute(sa);c=c.getAttribute("ALGID");return{value:b,Zf:a,Tj:c}};
171
- ip=function(a){var b=_.gp;a=b.Ma(a,"PROTECTINFO");if(!a)return null;a=b.Ma(a,"KIDS");if(!a)return null;a=b.Z(a,"KID");if(!a.length)return null;b=[];a=_.w(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;if(c=d.getAttribute("VALUE")){var e=d.getAttribute(sa);d=d.getAttribute("ALGID");b.push({value:c,Zf:e,Tj:d})}}return b.length?b:null};_.np=function(a){mp&&performance.mark(a)};
170
+ e=_.jp(e);e=_.cn(e);return new _.fp(_.kp,e,b,c,a,d)};_.jp=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=_.bk(a);a.set(b,0);return a};hp=function(a){var b=_.gp;a=b.Ma(a,"PROTECTINFO");if(!a)return null;var c=b.Ma(a,"KID");if(!c)return null;b=c.getAttribute("VALUE");if(!b)return null;a=c.getAttribute(sa);c=c.getAttribute("ALGID");return{value:b,Zf:a,Sj:c}};
171
+ ip=function(a){var b=_.gp;a=b.Ma(a,"PROTECTINFO");if(!a)return null;a=b.Ma(a,"KIDS");if(!a)return null;a=b.Z(a,"KID");if(!a.length)return null;b=[];a=_.w(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;if(c=d.getAttribute("VALUE")){var e=d.getAttribute(sa);d=d.getAttribute("ALGID");b.push({value:c,Zf:e,Sj:d})}}return b.length?b:null};_.np=function(a){mp&&performance.mark(a)};
172
172
  _.pp=function(a,b,c){mp&&(b=performance.measure(a,b,c),null!=b&&op.info('Step: "'+a+'" took '+b.duration.toFixed(0)+" ms."))};qp=function(a){this.f=[];this.h=[];this.a=[];8<=a.byteLength&&(new _.Dn).aa("pssh",this.j.bind(this)).parse(a.buffer);0===this.a.length&&_.Yh("No pssh box found!")};
173
173
  _.up=function(a,b){var c=this;this.D=a;this.Zb=b;this.K=new Set;this.C=this.J=this.l=null;this.ca=!1;this.a=null;this.L=rp;this.B=new _.wi;this.P=new fn;this.h=new Map;this.M=[];this.I=new _.xk;this.Lb=0;this.f=null;this.w=function(d){c.A=!0;c.G=!1;c.I.reject(d);a.onError(d)};this.o=new Map;this.ja=new Map;this.da=new _.mi(function(){return sp(c)});this.j=!1;this.Ea=new _.xk;this.H=!1;this.ga=[];this.kb=!1;this.Y=0;this.g=new _.K("clpp.drm.DrmEngine");this.ya=(new _.mi(function(){tp(c)})).Kb(1);this.I["catch"](function(){});
174
174
  this.A=this.G=!1;this.U=null};
175
175
  wp=function(a){var b,c,d,e,f;return _.I(function(g){switch(g.a){case 1:a.B.release();a.B=null;a.P.release();a.P=null;a.A=!1;a.G=!1;a.I.reject();a.ya.stop();a.ya=null;a.da.stop();a.da=null;b=Array.from(a.h.keys());c=_.w(a.h.values());for(d=c.next();!d.done;d=c.next())e=d.value,e.qd&&e.qd.stop();a.h.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,vp(h),4);
176
176
  if(2!=m.a)return _.Jh(m,0);l=_.H(m);a.g.warn("Error while closing session",l);_.C(m)})})})),2);case 2:if(!a.C){g.F(3);break}_.D(g,4);return _.y(g,a.l.Td(null),6);case 6:_.Jh(g,5);break;case 4:f=_.H(g),a.g.warn("Error while resetting media keys",f);case 5:a.C=null;case 3:a.l=null,a.a=null,a.K.clear(),a.J=null,a.M=[],a.f=null,a.w=null,a.D=null,a.Y=0,a.U=null,_.C(g)}})};
177
177
  _.zp=function(a,b,c){c=void 0===c?[]:c;a.L=xp;a.M=c;a.H=0<c.length;a.g.debug("Using Persisted Licenses: "+a.H);a.f&&a.f.enableSessionCacheForSkd&&a.g.info("Enabled session cache for SKD license requests");return _.yp(a,b)};
178
- Fp=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.N.kh(a.f.Sa);Ap(b,d)}var e=a.f.Sa[_.Sd];d=b.some(function(g){return g.drmInfos.some(function(h){return h.keySystem===_.Sd})});if(!1!==a.f.ip&&_.Ll()&&!d&&e){var f=_.w(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos.push({keySystem:_.Sd,licenseServerUri:e.licenseUrl,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:[],
178
+ Fp=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.N.kh(a.f.Sa);Ap(b,d)}var e=a.f.Sa[_.Sd];d=b.some(function(g){return g.drmInfos.some(function(h){return h.keySystem===_.Sd})});if(!1!==a.f.hp&&_.Ll()&&!d&&e){var f=_.w(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos.push({keySystem:_.Sd,licenseServerUri:e.licenseUrl,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:[],
179
179
  periodId:null})}if(e=Bp(a))for(f=_.w(b),d=f.next();!d.done;d=f.next())d.value.drmInfos=[e];d=Cp(b);Dp(a,d);d=_.w(d);for(e=d.next();!e.done;e=d.next())Ep(e.value,a.f.Sa);return c};_.yp=function(a,b){var c=Fp(a,b),d=Cp(b);d=_.w(d);for(var e=d.next();!e.done;e=d.next())Gp(a,e.value,a.f.Sa);d=Hp(a,b);if(!d.size)return a.ca=!0,Promise.resolve();_.np(ie);d=_.Ip(a,d);return(c?d:d["catch"](function(){})).then(function(){_.np(he);_.pp("DRM queryMediaKeys_()",ie,he)})};
180
180
  Cp=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};Dp=function(a,b){for(var c=_.w(b),d=c.next();!d.done;d=c.next())d=d.value,""===d.licenseServerUri||a.f.Sa[d.keySystem]||(a.f.Sa[d.keySystem]={licenseUrl:""})};
181
181
  Jp=function(a){var b;return _.I(function(c){switch(c.a){case 1:if(a.l.df())return c["return"]();if(!a.U){c.F(2);break}return _.y(c,a.U,3);case 3:return c["return"]();case 2:return _.D(c,4),a.U=a.l.Td(a.J),_.y(c,a.U,6);case 6:_.Jh(c,0);break;case 4:b=_.H(c);if(a.j)return c["return"]();a.w(new _.O(_.P,6,6003,b.message,b));_.C(c)}})};
@@ -204,11 +204,11 @@ _.bg,persistentStateRequired:n.persistentState===_.bg,audioRobustness:n.audioCap
204
204
  if(m instanceof _.O)throw m;throw new _.O(_.P,6,6002,{browserError:m.message});}});d.reject();return f};
205
205
  Bp=function(a){a=_.N.kh(a.f.Sa[_.qf]||{});if(0===a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.bn(f),h=_.bn(e);g={kty:"oct",kid:_.$m(g,!1),k:_.$m(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.T.ib(d),initDataType:"keyids"}];return{keySystem:_.qf,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
206
206
  initData:d,keyIds:[],periodId:null}};
207
- _.Wp=function(a,b){try{a.g.debug("Attempting to load an offline session",b);var c=a.J.createSession(_.uf)}catch(f){var d=new _.O(_.P,6,6005,{browserError:f.message});a.w(d);return Promise.reject(d)}a.B.on(c,_.Ze,a.aj.bind(a));a.B.on(c,Ke,a.Wi.bind(a));var e={initData:null,loaded:!1,vg:Infinity,zc:null,sb:new _.xk,periodId:null,$e:[],keyId:null,wb:[],initDataType:null,Gc:null,sessionContext:{ldlDelay:0,customData:{}}};e.sb["catch"](function(){});a.h.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.g.debug("Loaded offline session",
207
+ _.Wp=function(a,b){try{a.g.debug("Attempting to load an offline session",b);var c=a.J.createSession(_.uf)}catch(f){var d=new _.O(_.P,6,6005,{browserError:f.message});a.w(d);return Promise.reject(d)}a.B.on(c,_.Ze,a.$i.bind(a));a.B.on(c,Ke,a.Vi.bind(a));var e={initData:null,loaded:!1,vg:Infinity,zc:null,sb:new _.xk,periodId:null,$e:[],keyId:null,wb:[],initDataType:null,Gc:null,sessionContext:{ldlDelay:0,customData:{}}};e.sb["catch"](function(){});a.h.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.g.debug("Loaded offline session",
208
208
  b,f);if(!f)return a.h["delete"](c),a.w(new _.O(_.P,6,6013)),null;e.loaded=!0;cq(a)&&(a.A||a.g.info(Ga),a.A=!0,a.G=!1,a.I.resolve());return c},function(f){a.j||(a.h["delete"](c),a.w(new _.O(_.P,6,6005,{browserError:f.message})))})};dq=function(a,b,c,d){if(!b&&c!==_.ng)return!1;d=b||Nn(d);a=_.w(a.h.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||b&&e.wb.includes(b)||c===_.ng&&(e.keyId||Nn(e.initData))===d)return!0;return!1};
209
209
  Vp=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,E,G,B,F,M,R,la,U,ra,Ba,Ca;_.I(function(Da){switch(Da.a){case 1:if(!e.length)return a.g.warn("Empty init data"),Da["return"]();h=b;if(!h)try{h=eq(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,
210
210
  initData:e}),a.f.ignoreUnrecognizedInitData)return Da["return"]()}if(g){Da.F(2);break}if(!dq(a,h,d,e)){Da.F(2);break}l=!0;if("skd"!==d||a.f.enableSessionCacheForSkd){Da.F(4);break}m=_.w(a.h.keys());n=m.next();case 5:if(n.done){Da.F(4);break}p=n.value;q=a.h.get(p);if(!h||q.keyId!==h){Da.F(6);break}a.g.warn("Close and re-open session for "+h);_.D(Da,9);return _.y(Da,p.close(),11);case 11:_.Jh(Da,10);break;case 9:t=_.H(Da),a.g.warn("Unable to close session",t);case 10:l=!1;case 6:n=m.next();Da.F(5);
211
- break;case 4:if(l)return a.g.warn("Skip creating a new session for "+h),Da["return"]();case 2:try{z=a.H?_.uf:zg,v=a.J.createSession(z),a.D.onEvent(new _.L(pe,{keySystem:a.keySystem()})),a.g.info("Created new "+z+" session for Key ID: '"+h+"'. Init data type: "+(d+"."))}catch(Ma){return a.w(new _.O(_.P,6,6005,{browserError:Ma.message})),Da["return"]()}a.B.on(v,_.Ze,a.aj.bind(a));a.B.on(v,Ke,a.Wi.bind(a));A={Gc:f,$e:[],initData:e,initDataType:d,keyId:h,wb:h?[h]:[],loaded:!1,vg:Infinity,periodId:c,zc:null,
211
+ break;case 4:if(l)return a.g.warn("Skip creating a new session for "+h),Da["return"]();case 2:try{z=a.H?_.uf:zg,v=a.J.createSession(z),a.D.onEvent(new _.L(re,{keySystem:a.keySystem()})),a.g.info("Created new "+z+" session for Key ID: '"+h+"'. Init data type: "+(d+"."))}catch(Ma){return a.w(new _.O(_.P,6,6005,{browserError:Ma.message})),Da["return"]()}a.B.on(v,_.Ze,a.$i.bind(a));a.B.on(v,Ke,a.Vi.bind(a));A={Gc:f,$e:[],initData:e,initDataType:d,keyId:h,wb:h?[h]:[],loaded:!1,vg:Infinity,periodId:c,zc:null,
212
212
  sb:new _.xk,sessionContext:{ldlDelay:0,customData:{}}};A.sb["catch"](function(){});f&&(E=a.h.get(f),A.sessionContext=E.sessionContext);a.h.set(v,A);h&&!a.o.get(h)&&a.o.set(h,sg);if(e)for(G=0;G<a.a.initData.length;G++)B=a.a.initData[G],B.keyId&&!A.wb.includes(B.keyId)&&_.dn(B.initData,e)&&(A.keyId||(A.keyId=B.keyId),A.wb.push(B.keyId),a.o.get(B.keyId)||a.o.set(B.keyId,sg));F=_.N;M=F.Vb;R=a.D.getConfiguration();la=a.keySystem();U=a.f.Sa[la];Ba=(ra=U.modifiers)&&ra.transformInitData;M(Ba)||(Ba=fq);try{e=
213
213
  Ba({playerConfig:R,initData:e,initDataType:d,drmInfo:a.a,drmSystemConfig:U,sessionContext:A.sessionContext,emeApi:a.l.Sd()})}catch(Ma){return Ca=Ma,Ma instanceof _.O||(Ca=new _.O(_.P,6,6016,Ma)),A.sb&&A.sb.reject(Ma),a.w(Ca),Da["return"]()}a.g.info("Generate License Request for key ID: '"+h+"'");v.generateRequest(d,e.buffer)["catch"](function(Ma){if(!a.j){var Ab=null;Ma.errorCode&&Ma.errorCode.systemCode&&(Ab=Ma.errorCode.systemCode,0>Ab&&(Ab+=Math.pow(2,32)),Ab="0x"+Ab.toString(16));a.w(new _.O(_.P,
214
214
  6,6006,{browserError:Ma.message,error:Ma,extended:Ab},Ma))}});_.C(Da)}})};
@@ -256,9 +256,9 @@ Yq=function(a){var b=null;_.N.ha(a)&&(a={url:a});typeof a===_.gf&&!Array.isArray
256
256
  $q.debug("Detect media type "+b.type+" for "+a.url):$q.warn("Unable to detect media type for "+a.url));return b};ar=function(){_.Lm.call(this,Ld);this.w=this.H=!1;this.l=this.A=this.o=this.a=this.j=null;this.h=new _.wi;this.C=this.B=this.f=this.I=null};
257
257
  cr=function(a,b){if(a.w)throw new _.O(_.P,7,7E3);a.a||(a.h.on(b,_.Ae,function(){var c=br(a);if(c)a.onError(c)}),a.h.on(b,_.cg,function(){var c=b.videoWidth,d=b.videoHeight,e=a.getTrackManager();e&&0<c&&0<d&&(e.w={width:c,height:d});a.trigger(new _.L(_.md,{detail:{width:c,height:d}}))}),a.a=b)};dr=function(a){var b=_.Ll()?iq:void 0;return new _.up(a,b)};
258
258
  fr=function(a){var b,c,d,e,f;return _.I(function(g){if(1==g.a){if(a.w)return g["return"](Promise.reject(new _.O(_.P,7,7E3)));b=a.ba[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=_.er;d=_.mn(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.o=dr({Eb:e,onError:function(h){return a.onError(h)},Ag:function(){},zg:function(h,l){a.trigger(new _.L(_.me,
259
- {expirationTime:l}))},onEvent:function(h){h instanceof _.L?a.dispatchEvent(h):a.log.debug(_.ec,h.type)},getConfiguration:function(){return a.getConfiguration()},vd:function(){return a.vd()}});a.o.f=d;f={id:0,language:_.Ng,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,
260
- Ja:0,mimeType:_.$g,codecs:"",encrypted:!0,keyId:null,language:_.Ng,originalLanguage:_.Ng,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,zp:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,spatialAudio:!1,gp:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.y(g,_.zp(a.o,[f]),2)}return _.y(g,_.Rp(a.o,a.a),0)})};
261
- gr=function(a,b){to(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){a.getState()!==_.Sq&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};br=function(a){if(null===a.ba||!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 _.O(_.P,3,3016,{code:b,sp:c,message:a.a.error.message})};
259
+ {expirationTime:l}))},onEvent:function(h){h instanceof _.L?a.dispatchEvent(h):a.log.debug(_.ec,h.type)},getConfiguration:function(){return a.getConfiguration()},vd:function(){return a.vd()}});a.o.f=d;f={id:0,language:_.Og,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,
260
+ Ja:0,mimeType:_.$g,codecs:"",encrypted:!0,keyId:null,language:_.Og,originalLanguage:_.Og,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,yp:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,spatialAudio:!1,fp:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.y(g,_.zp(a.o,[f]),2)}return _.y(g,_.Rp(a.o,a.a),0)})};
261
+ gr=function(a,b){to(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){a.getState()!==_.Sq&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};br=function(a){if(null===a.ba||!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 _.O(_.P,3,3016,{code:b,rp:c,message:a.a.error.message})};
262
262
  hr=function(a){if(a.w)return new _.yk(Promise.reject(new _.O(_.P,7,7E3)),function(){});var b=a.ba[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.I;c&&gr(a,c);if(d.preload!==_.ff)a.h.one(d,_.Ue,function(){var g=Date.now()/1E3-e;a.f.B=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.Fk()||_.Gk())&&d.load();var f=new _.xk;a.h.one(d,pg,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.B||(a.B=(new _.mi(function(){f.reject(new _.O(_.P,3,3100,{message:"Unable to load media source successfully from "+
263
263
  b.url,uri:b.url},d.error))})).fa(g))});to(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.h,function(){return f.resolve()});d.error?f.reject(br(a)):d.preload===_.ff&&(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,_.Ae,function(){f.reject(br(a))});
264
264
  return new _.yk(f,function(){var g=new _.O(_.P,7,7001);f.reject(g);return Promise.resolve()})};
@@ -271,18 +271,18 @@ Dr=function(a,b){this.g=new _.K("clpp.PlayerSurface");this.w=_.N.ua(Ar,b);this.f
271
271
  HTMLMediaElement))throw new _.O(_.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 _.O(_.P,7,7006,"Container element is not a direct parent of media element");e=d.containerEl}else{e=document.createElement(_.fe);c.parentNode?c.parentNode.replaceChild(e,
272
272
  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),_.ur(e,g);e.style.cssText=c.style.cssText;c.removeAttribute(_.wg);f=_.w([_.mh,_.Fe]);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+_.Xf);_.Fk()||c.removeAttribute(g)}e.appendChild(c)}e&&
273
273
  (this.a.set(e),yr(this.a,"clpp-container"),yr(this.a,this.o),yr(this.f,_.Cd),yr(this.f,"clpp-video"));d.webOSStartupPatch&&Cr(this,c,e)}};Cr=function(a,b,c){(_.Gk()&&53===_.Il().major||_.Gk()&&68===_.Il().major||_.Jl())&&!b.hasAttribute(ae)&&(b.style.opacity="0",b.setAttribute(ae,""),a.j.one(b,ve,function(){b.removeAttribute(ae);b.style.opacity="1";c&&(c.style.opacity="1")}))};
274
- Ir=function(a){var b=this;this.h=a;this.w=!!a.sideAdContainer;this.j=[];this.a=a.mj;this.G=Er(a);this.B=[];var c=Fr(this,this.G,this.h.Fl);this.o=new sr(c);this.f=null;this.A=!1;this.l=new Map;this.H=a.toggleVisible;this.g=new _.K("clpp.interstitial.MultiController");this.C=!1;Gr(this).forEach(function(d){return Hr(b,d,!1)})};
274
+ Ir=function(a){var b=this;this.h=a;this.w=!!a.sideAdContainer;this.j=[];this.a=a.lj;this.G=Er(a);this.B=[];var c=Fr(this,this.G,this.h.El);this.o=new sr(c);this.f=null;this.A=!1;this.l=new Map;this.H=a.toggleVisible;this.g=new _.K("clpp.interstitial.MultiController");this.C=!1;Gr(this).forEach(function(d){return Hr(b,d,!1)})};
275
275
  Mr=function(a,b){var c,d,e,f,g,h,l,m,n,p,q,t,v;return _.I(function(z){if(1==z.a){a.g.info("Crop ads by playout limit",b);c=Jr(a);d=a.getCurrentItem();if(!c||!d||!d.lb||null==c.V)return z["return"]();e=a.j.filter(function(A){return!A.primary});f=Math.max.apply(Math,_.vh(e.map(function(A){return A.xb})));if(b>f)return a.g.info("Playout limit is greater than ad pod duration, ignored."),z["return"]();g=d.player.getPosition()+(d.xb-d.duration);h=e.sort(function(A,E){return E.xb-A.xb})[0];l=c.V;m=b<=g;
276
276
  if(!m)return z.F(2);n=f-g;c.V-=n;a.g.warn("Playout limit exceeded, immediately returning to primary at "+(c.V.toFixed(1)+" instead of ")+l.toFixed(1));return _.y(z,Kr(a,c.id,_.wf),3)}if(2!=z.a)return h.Ha&&h.Ha(),p=d.lb,a.a.trigger(new _.L(_.Oc,{ad:p})),a.a.trigger(new _.L(_.Bc,{ad:p})),a.a.trigger(new _.L(_.yc,{id:d.Oa})),z["return"]();a.g.warn("Limiting playout of ads to",b);q=e.find(function(A){return b<=A.xb&&b>=A.xb-A.duration});if(!q)return a.g.warn("Cannot find ad hit by limit"),z["return"]();
277
277
  t=b-(q.xb-q.duration);q.lb.a=t;v=f-b;c.V-=v;a.g.info("Last ad is now ",q.lb.Cb(),"with cropped duration",t,"and primary will resume at",c.V.toFixed(1),"instead of",l.toFixed(1));h.Ha&&(q.Ha=h.Ha);q.transition={vf:{position:t,itemId:c.id,V:c.V}};Lr(a,q);_.C(z)})};Or=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.zd,2):c["return"]();if(4!=c.a)return _.y(c,b.player.play(),4);b.state=_.Lf;Nr(b);_.C(c)})};
278
278
  Pr=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(),zd:Promise.resolve()})}))};Qr=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=[]))};
279
279
  Kr=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=Rr(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?Sr(a,e.Oa,Tr):e.player.pause():e.player.pause()),e.primary?Sr(a,e.Oa,Tr):Sr(a,e.Oa,Ur);(f=a.l.has(b))&&a.l["delete"](b);_.D(l,2,3);if(c===_.wf)return(g=e&&d.primary)?_.y(l,Vr(a,d),10):f?
280
- _.y(l,Wr(a,d),10):_.y(l,Xr(a,d),10);if(f){a.g.error("Loading preloaded items is not supported");l.F(6);break}return _.y(l,Yr(a,d),6);case 10:Nr(d);case 6:Lr(a,d);d.primary?Sr(a,d.Oa,Ur):Sr(a,d.Oa,Tr);d.lb&&Zr(a,d,d.lb);if(d.Ha)d.player.one(_.ze,d.Ha);d.Xi&&d.Xi(d.player.getDuration());case 3:_.Kh(l);a.A=!1;e&&$r(a,e);as(a);bs(a,d.next);_.Lh(l);break;case 2:throw h=_.H(l),a.g.error("Item failed to "+c+" (ID: "+b+")"),h;}})};cs=function(a,b){var c=Jr(a);c?c.V=b:a.g.error("Failed to get primary item. Cannot configure resume position.")};
280
+ _.y(l,Wr(a,d),10):_.y(l,Xr(a,d),10);if(f){a.g.error("Loading preloaded items is not supported");l.F(6);break}return _.y(l,Yr(a,d),6);case 10:Nr(d);case 6:Lr(a,d);d.primary?Sr(a,d.Oa,Ur):Sr(a,d.Oa,Tr);d.lb&&Zr(a,d,d.lb);if(d.Ha)d.player.one(_.ze,d.Ha);d.Wi&&d.Wi(d.player.getDuration());case 3:_.Kh(l);a.A=!1;e&&$r(a,e);as(a);bs(a,d.next);_.Lh(l);break;case 2:throw h=_.H(l),a.g.error("Item failed to "+c+" (ID: "+b+")"),h;}})};cs=function(a,b){var c=Jr(a);c?c.V=b:a.g.error("Failed to get primary item. Cannot configure resume position.")};
281
281
  Jr=function(a){return a.j.find(function(b){return!!b.primary})||null};Rr=function(a,b){return a.j.find(function(c){return c.id===b})||null};
282
- Lr=function(a,b){var c=b.transition;if(c&&!c.ro){if(c.Ha){var d=c.Ha,e=function(){a.g.info("Transition onEnded to (ID: "+d+")");a.play(d)};b.player.one(_.ze,e);b.disposers.push(function(){b.player.off(_.ze,e)})}c.vf&&ds(a,b,function(){var f=a.f.lb;f&&(b.disposers.forEach(function(g){return g()}),b.disposers=[],a.a.trigger(new _.L(_.Oc,{ad:f})),a.a.trigger(new _.L(_.Bc,{ad:f})),a.a.trigger(new _.L(_.yc,{id:b.Oa})))});c.ro=!0}};
282
+ Lr=function(a,b){var c=b.transition;if(c&&!c.qo){if(c.Ha){var d=c.Ha,e=function(){a.g.info("Transition onEnded to (ID: "+d+")");a.play(d)};b.player.one(_.ze,e);b.disposers.push(function(){b.player.off(_.ze,e)})}c.vf&&ds(a,b,function(){var f=a.f.lb;f&&(b.disposers.forEach(function(g){return g()}),b.disposers=[],a.a.trigger(new _.L(_.Oc,{ad:f})),a.a.trigger(new _.L(_.Bc,{ad:f})),a.a.trigger(new _.L(_.yc,{id:b.Oa})))});c.qo=!0}};
283
283
  ds=function(a,b,c){function d(){b.player.off(_.Hg,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.vf,h=null;g.V&&cs(a,g.V);b.player.on(_.Hg,f);b.disposers.push(function(){null!=h&&(cancelAnimationFrame(h),
284
284
  h=null)});b.disposers.push(d)};es=function(a){a.f&&(a.f.disposers.forEach(function(b){return b()}),a.f.disposers=[],a.f.lb&&Zr(a,a.f,a.f.lb),Lr(a,a.f),as(a),bs(a,a.f.next))};Gr=function(a){return[a.a].concat(_.vh(a.o.a.map(function(b){return b.player})))};as=function(a){return Promise.all(Array.from(a.l.keys()).map(function(b){return fs(a,b)}))};
285
- Er=function(a){if(a.sideAdContainer)a=a.sideAdContainer;else if(a=a.mj.getSurface().getContainer(),!a)throw Error("Primary player does not have a container");return a};fs=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,gs(a,c.player),3):d.F(3)}a.l["delete"](b);_.C(d)})};hs=function(a){return _.I(function(b){if(1==b.a)return a.f?_.y(b,$r(a,a.f),3):b.F(0);Hr(a,a.a,!0);_.C(b)})};
285
+ Er=function(a){if(a.sideAdContainer)a=a.sideAdContainer;else if(a=a.lj.getSurface().getContainer(),!a)throw Error("Primary player does not have a container");return a};fs=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,gs(a,c.player),3):d.F(3)}a.l["delete"](b);_.C(d)})};hs=function(a){return _.I(function(b){if(1==b.a)return a.f?_.y(b,$r(a,a.f),3):b.F(0);Hr(a,a.a,!0);_.C(b)})};
286
286
  $r=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||Hr(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=is;return b.Lg?(a.g.info("Release player (ID: "+b.id+") after delay "+(b.Lg+" ms.")),_.y(d,new Promise(function(e){setTimeout(function(){return _.I(function(f){if(1==f.a)return _.y(f,gs(a,c),2);Hr(a,c,!1);a.a.trigger(new _.L("ad-hls-released"));
287
287
  e();_.C(f)})},b.Lg)}),0)):_.y(d,gs(a,c),5)}Hr(a,c,!1);return d.F(0)})};Xr=function(a,b){return _.I(function(c){if(1==c.a)return _.y(c,Yr(a,b),2);if(3!=c.a)return _.y(c,b.player.play(),3);b.state=_.Lf;_.C(c)})};Yr=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.y(d,js(a,!!b.primary),2);if(3!=d.a)return c=d.f,a.f=b,b.role=ks,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),Hr(a,c,!0),b.state="loading",b.zd=ls(c,b.config),_.y(d,b.zd,3);b.state="loaded";_.C(d)})};
288
288
  Wr=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!==Tf){d.F(2);break}a.g.info(lc);_.D(d,3);return _.y(d,b.preloadPromise,5);case 5:_.Jh(d,2);break;case 3:_.H(d);case 2:a.f=b;b.role=ks;Hr(a,c,!0);if(b.state===Sf)return _.y(d,c.play(),7);if(b.state!==Rf){d.F(7);break}return _.y(d,ls(c,b.config),7);case 7:b.state=_.Lf,_.C(d)}})};
@@ -296,34 +296,34 @@ Hr=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCss
296
296
  Fr=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.ob.create();f=new Dr(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})};
297
297
  Sr=function(a,b,c){a.a.getConfiguration().muted||a.C?(a.a.setMuted(!0),ns(a,!0)):(a.h.onAudioDecision&&(c=a.h.onAudioDecision(b)),c===Ur?(a.a.setMuted(!1),ns(a,!0)):c===Tr?(a.a.setMuted(!0),ns(a,!1)):a.g.warn("Audio decision not supported",c))};ns=function(a,b){a.j.filter(function(c){return!c.primary&&c.player}).forEach(function(c){return c.player.setMuted(b)})};os=function(a){a.B.forEach(function(b){return a.G.removeChild(b)});a.B=[];Hr(a,a.a,!0)};
298
298
  ls=function(a,b){return _.I(function(c){return 1==c.a?_.y(c,a.release(),2):_.y(c,a.load(b),0)})};Nr=function(a){if(a.lb){var b=a.player.getDuration();a.maxDuration&&(b=Math.min(b,a.maxDuration));a.lb.a=b}a.xf&&a.xf()};
299
- vs=function(a){_.Am.call(this);var b=this;this.h=_.N.ua({bo:.5},a);this.g=new _.K("clpp.interstitial.Player");this.j=a.player;this.j.setSeekInterceptor(function(c,d){d||ps(b,c);var e=qs(b,c);if(e){if(rs(e))return b.g.info("Seeking into an interstitial",e.ia),ss(b,e)["catch"](function(){b.j.seek(c)}),!1}else{var f=ts(b,c);f&&!f.Kl&&(b.g.info("Trigger interstitial due to jump over it",f,"will resume at",c),ss(b,f,c)["catch"](function(){f.Kl=new Date;b.j.seek(c)}))}return!0});this.a=new Ir({Fl:this.h.config,
300
- mj:a.player,preloadMedia:!0,ob:a.ob,sideAdContainer:this.h.sideAdContainer,onAudioDecision:this.h.onAudioDecision});this.l=[];this.f=[];this.o=!1;us(this,a.player)};ws=function(a){return(a=a.a.getCurrentItem())&&!a.primary?a.player:null};
299
+ vs=function(a){_.Am.call(this);var b=this;this.h=_.N.ua({ao:.5},a);this.g=new _.K("clpp.interstitial.Player");this.j=a.player;this.j.setSeekInterceptor(function(c,d){d||ps(b,c);var e=qs(b,c);if(e){if(rs(e))return b.g.info("Seeking into an interstitial",e.ia),ss(b,e)["catch"](function(){b.j.seek(c)}),!1}else{var f=ts(b,c);f&&!f.Jl&&(b.g.info("Trigger interstitial due to jump over it",f,"will resume at",c),ss(b,f,c)["catch"](function(){f.Jl=new Date;b.j.seek(c)}))}return!0});this.a=new Ir({El:this.h.config,
300
+ lj:a.player,preloadMedia:!0,ob:a.ob,sideAdContainer:this.h.sideAdContainer,onAudioDecision:this.h.onAudioDecision});this.l=[];this.f=[];this.o=!1;us(this,a.player)};ws=function(a){return(a=a.a.getCurrentItem())&&!a.primary?a.player:null};
301
301
  ys=function(a){var b,c,d;_.I(function(e){var f=a.a;Pr(f,[{id:Vf,primary:!0,config:f.a.getConfiguration(),next:[],xb:0,duration:0,Oa:null}]);var g=Jr(f);if(!g)throw Error("Failed to find primary item");f.f=g;g.role=ks;g.player=f.a;g.videoEl=g.player.getSurface().getMedia();Hr(f,g.player,!0);b=a.j;c=b.getConfiguration();d=!c.autoplay;a.o=xs(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||Hr(f,f.a,!1),Hr(f,g,!0);return e.F(0)}return c.autoplay?_.y(e,Or(a.a),0):e.F(0)})};
302
302
  ps=function(a,b){var c=a.j.getPosition();b>=c||a.f.filter(function(d){return 1===d.xe&&!d.once&&d.Oi&&d.startTime>b}).forEach(function(d){d.eh=!0})};
303
- xs=function(a,b,c,d){var e=zs(a);a.g.info("Interstitial cues found",e);var f=e;if(d){f=$i(a.f.map(function(n){return n.ia}),e.map(function(n){return n.id}));As(a,f.ko);var g=new Set(f.Rj);f=e.filter(function(n){return g.has(n.id)})}if(!Bs(a,f))return!1;var h=[],l=[],m=[];f.forEach(function(n){var p=n.customAttributes.CUE||[];p.includes(_.Jb)?l.push(n):!d&&p.includes("PRE")?h.push(n):!c&&n.startTime<a.h.bo?h.push(n):m.push(n)});1<h.length?a.g.warn("Multiple preroll interstitials not supported. Will display only the 1st one."):
303
+ xs=function(a,b,c,d){var e=zs(a);a.g.info("Interstitial cues found",e);var f=e;if(d){f=$i(a.f.map(function(n){return n.ia}),e.map(function(n){return n.id}));As(a,f.jo);var g=new Set(f.Qj);f=e.filter(function(n){return g.has(n.id)})}if(!Bs(a,f))return!1;var h=[],l=[],m=[];f.forEach(function(n){var p=n.customAttributes.CUE||[];p.includes(_.Jb)?l.push(n):!d&&p.includes("PRE")?h.push(n):!c&&n.startTime<a.h.ao?h.push(n):m.push(n)});1<h.length?a.g.warn("Multiple preroll interstitials not supported. Will display only the 1st one."):
304
304
  h[0]&&Cs(a,h[0],b);m.forEach(function(n){return Ds(a,n,1)});1<l.length?a.g.warn("Multiple postroll interstitials not supported. Will display only the 1st one."):l[0]&&Ds(a,l[0],2);Es(a,e);a.g.info("Interstitials changed",a.f);return 0<h.length};
305
305
  Es=function(a,b){var c,d,e,f;_.I(function(g){c=a.a.getCurrentItem();if(!c)return g["return"]();if(c.primary)return a.f.forEach(function(h){var l=b.find(function(n){return n.id===h.ia});if(l){var m=l.customAttributes[sc];null==h.sc&&null!=m&&(a.g.info(hc,l.id,"Playout limit",m),h.sc=m)}}),g["return"]();d=b.find(function(h){return h.id===c.Oa});if(!d)return g["return"]();e=d.customAttributes[sc];if(null==e)return g["return"]();f=a.f.find(function(h){return h.ia===d.id});if(!f||null!=f.sc)return g["return"]();
306
306
  a.g.info(hc,d.id,"Playout limit",e);f.sc=e;return _.y(g,Mr(a.a,e),0)})};As=function(a,b){var c=new Set(b);a.f.forEach(function(d){c.has(d.ia)&&!rs(d)&&a.g.warn("Removing an interstitial in active state",d)});a.f=a.f.filter(function(d){return!c.has(d.ia)})};zs=function(a){return a.j.getTimelineCues().filter(function(b){return b.schemeIdUri===Td&&b.customAttributes})};
307
307
  ss=function(a,b,c){var d;return _.I(function(e){if(1==e.a)return _.y(e,Fs(a,b),2);d=e.f;if(!d)throw Error("Failed to bind");return _.y(e,Gs(a,b,1,!1,c),0)})};
308
- Ds=function(a,b,c){var d=b.customAttributes[rc],e=b.customAttributes[qc],f=b.customAttributes[uc],g=b.customAttributes[sc],h=b.customAttributes[tc]||[];b.customAttributes[wc]||(b.customAttributes[wc]=null==f||0<f?"RANGE":"POINT");var l=b.id,m=b.startTime,n=b.endTime,p=Hs,q=null==f?null:Math.max(0,b.startTime+f),t="POINT"===b.customAttributes[wc],v=!h.includes("SKIP");h=!h.includes("JUMP");var z=b.customAttributes[pc];if(z)try{var A=JSON.parse(atob(z))}catch(E){A=null}else A=null;b={ia:l,startTime:m,
309
- endTime:n,state:p,mh:e,nh:d,Fa:null,V:q,po:f,sc:g,xe:c,Bm:t,ak:v,$j:h,vj:A,Oi:null!=f&&0>f,once:(b.customAttributes.CUE||[]).includes("ONCE"),sj:!1,eh:!0};a.f.push(b);return b};
308
+ Ds=function(a,b,c){var d=b.customAttributes[rc],e=b.customAttributes[qc],f=b.customAttributes[uc],g=b.customAttributes[sc],h=b.customAttributes[tc]||[];b.customAttributes[vc]||(b.customAttributes[vc]=null==f||0<f?"RANGE":"POINT");var l=b.id,m=b.startTime,n=b.endTime,p=Hs,q=null==f?null:Math.max(0,b.startTime+f),t="POINT"===b.customAttributes[vc],v=!h.includes("SKIP");h=!h.includes("JUMP");var z=b.customAttributes[pc];if(z)try{var A=JSON.parse(atob(z))}catch(E){A=null}else A=null;b={ia:l,startTime:m,
309
+ endTime:n,state:p,mh:e,nh:d,Fa:null,V:q,oo:f,sc:g,xe:c,Am:t,$j:v,Zj:h,uj:A,Oi:null!=f&&0>f,once:(b.customAttributes.CUE||[]).includes("ONCE"),rj:!1,eh:!0};a.f.push(b);return b};
310
310
  Cs=function(a,b,c){var d,e,f,g,h;_.I(function(l){switch(l.a){case 1:return d=Ds(a,b,0),_.y(l,Fs(a,d),2);case 2:e=l.f;f=d.Fa?d.Fa.length:0;if(e&&0<f){_.D(l,9);var m=Gs(a,d,0,c);a.g.info("Preroll interstitial "+d.ia+" scheduled");return _.y(l,m,11)}if(e){a.g.warn("Preroll interstitial has no assets, skipping");l.F(5);break}a.g.error("Preroll interstitial failed, skipping");return _.y(l,hs(a.a),5);case 5:if(c){l.F(0);break}return _.y(l,Or(a.a),0);case 11:_.Jh(l,0);break;case 9:g=_.H(l);a.g.error("Preroll interstitial failed.",
311
311
  g);if(h=Jr(a.a))return _.y(l,a.a.play(h.id),0);l.F(0)}})};Is=function(a){a.l.forEach(function(b){return b()});a.l=[]};
312
312
  us=function(a,b){function c(){xs(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=Js(a,e);if(!f){m.F(2);break}a.g.info(mb+f.ia+" coming up at "+(f.startTime+" s"));return _.y(m,Fs(a,f),3);case 3:(g=m.f)&&Ks(a,f,b);case 2:h=Ls(a);if(!(h&&h.state===Hs&&b.getDuration()-e<a.h.resolutionOffsetSec)){m.F(0);break}return _.y(m,Fs(a,h),5);case 5:if(l=m.f)if(h.Fa&&0!==h.Fa.length){var n=a.a.getCurrentItem();if(n){var p=Ms(a,h,2);if(0!==p.length){var q=p[0].id;
313
313
  n.next=[q];n.transition={Ha:q};Ns(a,h,p);a.g.info("Postroll interstitial "+h.ia+" scheduled")}}}else a.g.warn("Postroll interstitial has no assets, ignoring.");_.C(m)}})}b.addEventListener(_.Hg,d);a.l.push(function(){b.removeEventListener(_.Hg,d)});b.addEventListener(_.Gg,c);a.l.push(function(){b.removeEventListener(_.Gg,c)})};Ls=function(a){return a.f.find(function(b){return 2===b.xe})||null};
314
314
  Bs=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.info("Interstitials are closer than configured resolutionOffsetSec ("+(d+" s) auto-reconfiguring to ")+(c+" s.")));var m=[];b.forEach(function(n){var p=n.customAttributes[rc];
315
315
  n.customAttributes[qc]||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};Js=function(a,b){return a.f.find(function(c){var d=c.startTime-b;return 1===c.xe&&rs(c)&&0<d&&d<=a.h.resolutionOffsetSec})||null};
316
- qs=function(a,b){return a.f.find(function(c){return!c.Bm&&1===c.xe&&b>c.startTime&&b<c.endTime})||null};ts=function(a,b){var c=a.j.getPosition();return a.f.filter(function(d){return 1===d.xe&&!d.$j}).sort(function(d,e){return e.startTime-d.startTime}).find(function(d){return d.startTime>c&&d.startTime<b})||null};
316
+ qs=function(a,b){return a.f.find(function(c){return!c.Am&&1===c.xe&&b>c.startTime&&b<c.endTime})||null};ts=function(a,b){var c=a.j.getPosition();return a.f.filter(function(d){return 1===d.xe&&!d.Zj}).sort(function(d,e){return e.startTime-d.startTime}).find(function(d){return d.startTime>c&&d.startTime<b})||null};
317
317
  Fs=function(a,b){var c,d,e,f;return _.I(function(g){switch(g.a){case 1:b.state=Os;if(!b.mh){b.nh?(b.Fa=[{URI:b.nh,DURATION:b.endTime-b.startTime}],a.ab(new _.L(Fc,{id:b.ia,detail:Ps(b)})),b.state=Qs):b.state=Rs;g.F(2);break}_.D(g,3);a.g.info("Load X-ASSET-LIST for "+b.ia);a.ab(new _.L(Dc));return _.y(g,Ss(a,b.mh),5);case 5:c=g.f;b.Fa=c.ASSETS;b.Fa&&0!==b.Fa.length||a.g.info(mb+b.ia+" has no assets, will be smoothly skipped");null==b.V&&(d=Tj(b.Fa.map(function(h){return h.DURATION})),e=null==b.sc?
318
- d:Math.min(b.sc,d),b.V=b.startTime+e);b.state=Qs;a.ab(new _.L(Ec));a.ab(new _.L(Fc,{id:b.ia,detail:c}));_.Jh(g,2);break;case 3:f=_.H(g),a.g.error("Failed to load X-ASSET-LIST",f),b.state=Rs;case 2:return g["return"](b.state===Qs)}})};Ts=function(a,b){var c=a.h.$n;if(c){var d=new URL(b);d.searchParams.set("_HLS_primary_id",c);return d.toString()}return b};
318
+ d:Math.min(b.sc,d),b.V=b.startTime+e);b.state=Qs;a.ab(new _.L(Ec));a.ab(new _.L(Fc,{id:b.ia,detail:c}));_.Jh(g,2);break;case 3:f=_.H(g),a.g.error("Failed to load X-ASSET-LIST",f),b.state=Rs;case 2:return g["return"](b.state===Qs)}})};Ts=function(a,b){var c=a.h.Zn;if(c){var d=new URL(b);d.searchParams.set("_HLS_primary_id",c);return d.toString()}return b};
319
319
  Gs=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=Ms(a,b,c);if(0===g.length)return m["return"]();Ns(a,b,g);h=0===c&&a.j.isLive();h||(l=e||b.V)&&cs(a.a,l);return d?_.y(m,a.a.load(g[0].id),0):_.y(m,a.a.play(g[0].id),0)})};
320
- Ks=function(a,b,c){if(b.Fa)if(0===b.Fa.length){var d=function(){c.isLive()?a.g.info("Skipping empty live interstitial "+b.ia):null!=b.V&&0!==b.po?c.seek(b.V):a.g.info("Empty VOD interstitial "+b.ia+", continuing to next segment")};c.one(_.Eg,d);a.l.push(function(){c.off(_.Eg,d)});a.g.info(mb+b.ia+" scheduled to be skipped")}else{var e=a.a.getCurrentItem();if(e){var f=Ms(a,b,1);if(0!==f.length){var g=f[0].id;null!=b.V&&cs(a.a,b.V);e.next=[g];e.transition={vf:{position:b.startTime,itemId:g,V:b.V}};
320
+ Ks=function(a,b,c){if(b.Fa)if(0===b.Fa.length){var d=function(){c.isLive()?a.g.info("Skipping empty live interstitial "+b.ia):null!=b.V&&0!==b.oo?c.seek(b.V):a.g.info("Empty VOD interstitial "+b.ia+", continuing to next segment")};c.one(_.Eg,d);a.l.push(function(){c.off(_.Eg,d)});a.g.info(mb+b.ia+" scheduled to be skipped")}else{var e=a.a.getCurrentItem();if(e){var f=Ms(a,b,1);if(0!==f.length){var g=f[0].id;null!=b.V&&cs(a.a,b.V);e.next=[g];e.transition={vf:{position:b.startTime,itemId:g,V:b.V}};
321
321
  Ns(a,b,f);a.g.info(mb+b.ia+" scheduled for "+(b.startTime+" s"))}}}};Ns=function(a,b,c){Pr(a.a,c);es(a.a);b.state=Us;a.ab(new _.L(_.Hc,{detail:null}))};
322
- Ms=function(a,b,c){var d=0,e=b.Fa.map(function(h,l){var m=b.ia+"-"+l;d+=h.DURATION;return{id:m,config:{source:{url:Ts(a,h.URI),type:_.mm}},duration:h.DURATION,xb:d,Oa:b.ia,next:[],lb:new rr(c,l+1,b.Fa.length,h.DURATION,b.ia,b.ak)}});e.forEach(function(h,l){var m=l===e.length-1;m&&2===c||(m?(h.next=[Vf],h.transition={Ha:Vf}):(m=m?Vf:h.Oa+"-"+(l+1),h.next=[m],h.transition={Ha:m}))});e.forEach(function(h){h.xf=function(){a.g.info("Playing interstitial asset "+h.id,h)}});if(null!=b.sc&&(e=Vs(a,b,e),0===
323
- e.length))return[];var f=e[0].xf;e[0].xf=function(){b.sj=!0;b.Oi&&(b.eh=!1);a.g.info("Playing interstitial "+c+" "+b.ia+" with "+(b.Fa.length+" assets and will resume primary content ")+((b.V?"at "+b.V.toFixed(1)+" s":"after interstitial ended")+"."),e);f()};e[0].Xi=function(h){null==b.V&&(b.V=b.startTime+h,cs(a.a,b.V),a.g.info("Primary content will resume at",b.V));b.state=Ws};var g=e[e.length-1];g.Ha=function(){b.state=Xs;Qr(a.a,e.map(function(h){return h.id}));2===c&&hs(a.a)};g.Lg=a.h.adReleaseDelayMs;
322
+ Ms=function(a,b,c){var d=0,e=b.Fa.map(function(h,l){var m=b.ia+"-"+l;d+=h.DURATION;return{id:m,config:{source:{url:Ts(a,h.URI),type:_.mm}},duration:h.DURATION,xb:d,Oa:b.ia,next:[],lb:new rr(c,l+1,b.Fa.length,h.DURATION,b.ia,b.$j)}});e.forEach(function(h,l){var m=l===e.length-1;m&&2===c||(m?(h.next=[Vf],h.transition={Ha:Vf}):(m=m?Vf:h.Oa+"-"+(l+1),h.next=[m],h.transition={Ha:m}))});e.forEach(function(h){h.xf=function(){a.g.info("Playing interstitial asset "+h.id,h)}});if(null!=b.sc&&(e=Vs(a,b,e),0===
323
+ e.length))return[];var f=e[0].xf;e[0].xf=function(){b.rj=!0;b.Oi&&(b.eh=!1);a.g.info("Playing interstitial "+c+" "+b.ia+" with "+(b.Fa.length+" assets and will resume primary content ")+((b.V?"at "+b.V.toFixed(1)+" s":"after interstitial ended")+"."),e);f()};e[0].Wi=function(h){null==b.V&&(b.V=b.startTime+h,cs(a.a,b.V),a.g.info("Primary content will resume at",b.V));b.state=Ws};var g=e[e.length-1];g.Ha=function(){b.state=Xs;Qr(a.a,e.map(function(h){return h.id}));2===c&&hs(a.a)};g.Lg=a.h.adReleaseDelayMs;
324
324
  return e};Vs=function(a,b,c){var d=b.sc;a.g.info("Playout limit for "+b.ia+" is "+(d+" s"));b=c[c.length-1].xb;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.xb-f.duration<=d});e.forEach(function(f){f.lb.f=e.length});a=e[e.length-1];c=d-(a.xb-a.duration);.1>Math.abs(c-a.duration)?a.transition.Ha=Vf:a.transition.vf={position:c,itemId:Vf,V:null};a.maxDuration=c;return e};
325
- Ss=function(a,b){var c,d,e,f,g,h;return _.I(function(l){if(1==l.a){c=a.a.bf();if(!c)throw Error("No player found");d=c.getNetworkEngine();e=_.pk(Ts(a,b));return _.y(l,Mk(d,e),2)}f=l.f;g=Ys(f);if(!g)throw new _.nj("Invalid X-ASSET-LIST list response");h=f;return l["return"](h)})};Ys=function(a){return a&&a.ASSETS&&Array.isArray(a.ASSETS)?a.ASSETS.every(function(b){return typeof b.URI===_.ug&&typeof b.DURATION===_.k}):!1};rs=function(a){return a.eh&&!(a.once&&a.sj)&&[Hs,Xs].includes(a.state)};
326
- Ps=function(a){var b={URI:a.Fa[0].URI,DURATION:a.Fa[0].DURATION};a.vj&&(b[pc]=a.vj);return{ASSETS:[b]}};Zs=function(){this.a=null};$s=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)})}};
325
+ Ss=function(a,b){var c,d,e,f,g,h;return _.I(function(l){if(1==l.a){c=a.a.bf();if(!c)throw Error("No player found");d=c.getNetworkEngine();e=_.pk(Ts(a,b));return _.y(l,Mk(d,e),2)}f=l.f;g=Ys(f);if(!g)throw new _.nj("Invalid X-ASSET-LIST list response");h=f;return l["return"](h)})};Ys=function(a){return a&&a.ASSETS&&Array.isArray(a.ASSETS)?a.ASSETS.every(function(b){return typeof b.URI===_.ug&&typeof b.DURATION===_.k}):!1};rs=function(a){return a.eh&&!(a.once&&a.rj)&&[Hs,Xs].includes(a.state)};
326
+ Ps=function(a){var b={URI:a.Fa[0].URI,DURATION:a.Fa[0].DURATION};a.uj&&(b[pc]=a.uj);return{ASSETS:[b]}};Zs=function(){this.a=null};$s=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)})}};
327
327
  bt=function(a){this.m=a;this.j=this.m.getNetworkEngine();this.a=new _.wi;this.h=null;this.f=!0;at(this)};at=function(a){a.a.on(window,"offline",function(){ct(a,!1)});a.a.on(window,"online",function(){a.f||dt(a)});a.a.on(a.m,pg,function(){return et(a)});a.a.on(a.m,"suspend",function(){return et(a)});a.a.on(a.m,_.fh,function(){return et(a)});a.a.on(a.m,_.Lf,function(){a.f||dt(a)});a.a.on(a.m,_.Wf,function(){a.f||dt(a)});a.a.on(a.m,_.rg,function(){switch(a.m.getState()){case _.Mq:et(a);break;default:et(a)}})};
328
328
  dt=function(a){a.m.getConfiguration().connectivityCheck&&(ft(a),a.h=(new _.mi(function(){return gt(a)})).fa(5))};et=function(a){a.f&&dt(a)};ft=function(a){a.h&&(a.h.stop(),a.h=null)};gt=function(a){var b,c;return _.I(function(d){if(1==d.a)return(b=a.m.getConfiguration().connectivityCheck)&&a.m?_.y(d,Nk(a.j,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;ct(a,c);_.C(d)})};ct=function(a,b){ft(a);a.f!==b&&(a.f=b,a.m&&a.m.getConfiguration().connectivityCheck&&a.m.trigger(new _.L(of,{online:a.f})))};
329
329
  it=function(){for(var a=0;a<ht.length;++a)ht[a].hd()};_.jt=function(a){var b=b||0;a={priority:b,hd:a};for(var c=0;c<ht.length;c++)if(ht[c].priority<b){ht.splice(c,0,a);return}ht.push(a)};kt=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};lt=function(a,b,c){var d=_.T.ea;this.h=a;this.f=b;JSON.parse(d(_.an(a)));this.a=JSON.parse(d(_.an(b)));this.j=c};
@@ -333,14 +333,14 @@ qt=function(a){var b,c,d;return _.I(function(e){if(1==e.a)return b=pt(a),_.D(e,2
333
333
  rt=function(a){switch((a.ba[0]||{src:"",type:""}).type){case _.Xc:a="dash";break;case _.bd:a="ss";break;case _.mm:a="hls";break;case _.$g:a="mp4";break;default:a=""}return a};st=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};tt=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};ut=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};
334
334
  wt=function(a){var b=a.configuration,c="no";b.drm&&!_.N.qa(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(ue)||vt(a).endsWith("drmtoday.com"))&&(c=ue);return c};xt=function(a){a=a.drmInfo;var b="";if(a)switch(a.keySystem){case _.Xd:b="wv";break;case _.Vd:b="pr";break;case _.Sd:b="fps"}return b};yt=function(a){a=a.drmInfo;var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};
335
335
  zt=function(a){a=a.drmInfo;var b="";if(a)switch(a.videoRobustness){case jb:case hb:b="L1";break;case ib:b="L2";break;case _.Vb:case _.Ub:b="L3"}return b};vt=function(a){a=a.drmInfo;return(new _.sj(a&&a.licenseServerUri||"")).bb};
336
- Ct=function(a,b){var c="ie"===_.Hk().browser,d=b.configuration,e=_.vh(Array.from(_.Mm.keys())).concat(_.vh(b.lj));d={"CL-KEY":a.f,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ia,"CL-USER-ID":st(d),"CL-ASSET-ID":tt(d),"CL-SESSION-ID":ut(d),"CL-PLAYBACK-TYPE":b.isLive?At:Bt,"CL-CONTENT-TYPE":rt(b),"CL-PLUGINS":e.join(" "),"CL-DRM":wt(b),"CL-DRM-CDM":xt(b),"CL-DRM-SEC-LEVEL":zt(b),"CL-DRM-OFFLINE":yt(b),"CL-DRM-IP":vt(b)};c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=e);e=_.pk(["https://downloads.castlabs.com/r/register/"]);
336
+ Ct=function(a,b){var c="ie"===_.Hk().browser,d=b.configuration,e=_.vh(Array.from(_.Mm.keys())).concat(_.vh(b.kj));d={"CL-KEY":a.f,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ia,"CL-USER-ID":st(d),"CL-ASSET-ID":tt(d),"CL-SESSION-ID":ut(d),"CL-PLAYBACK-TYPE":b.isLive?At:Bt,"CL-CONTENT-TYPE":rt(b),"CL-PLUGINS":e.join(" "),"CL-DRM":wt(b),"CL-DRM-CDM":xt(b),"CL-DRM-SEC-LEVEL":zt(b),"CL-DRM-OFFLINE":yt(b),"CL-DRM-IP":vt(b)};c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=e);e=_.pk(["https://downloads.castlabs.com/r/register/"]);
337
337
  e.method="GET";e.headers=d;return(new _.Kk).fetch(e).T.then(function(f){200===f.status&&c&&window.localStorage.setItem("cl_et",f.headers.etag);return Promise.resolve()})["catch"](function(f){a:{var g=pt(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.";
338
338
  break;default:f=Promise.resolve();break a}a.g.error(rb+l);f=Promise.reject(new _.O(_.P,7,g,l))}}return f})};Et=function(a){this.m=a;this.f=a.getNetworkEngine();this.h=Dt(this);this.f.fd(this.h);this.a=null};
339
- Dt=function(a){return function(b){var c=b.headers,d=b=null,e=_.N.ni(c,"cmsd-dynamic");c=_.N.ni(c,"cmsd-static");e&&(b=Ft(e),a.a=b);if(c)try{e={};var f=c.split(",");for(c=0;c<f.length;c++){var g=Gt(f[c]),h=g.key,l=g.value;Object.keys(Ht).includes(h)&&(e[Ht[h]]=l)}d=_.N.Lc(e)?e:null}catch(m){It.error("CmsdManager parseCmsdStaticHeader_ failed:",m),d=null}(b||d)&&a.m.trigger(new _.L("cmsd-event",{rp:b,Fp:d}))}};
339
+ Dt=function(a){return function(b){var c=b.headers,d=b=null,e=_.N.ni(c,"cmsd-dynamic");c=_.N.ni(c,"cmsd-static");e&&(b=Ft(e),a.a=b);if(c)try{e={};var f=c.split(",");for(c=0;c<f.length;c++){var g=Gt(f[c]),h=g.key,l=g.value;Object.keys(Ht).includes(h)&&(e[Ht[h]]=l)}d=_.N.Lc(e)?e:null}catch(m){It.error("CmsdManager parseCmsdStaticHeader_ failed:",m),d=null}(b||d)&&a.m.trigger(new _.L("cmsd-event",{qp:b,Ep:d}))}};
340
340
  Ft=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=Gt(c[e]),g=f.key;f=f.value;Object.keys(Jt).includes(g)&&(d[Jt[g]]=f)}return d}).filter(function(c){return _.N.Lc(c)});return 0<b.length?b:null}catch(c){return It.error("CmsdManager parseCmsdDynamicHeader_ failed:",c),null}};
341
341
  Gt=function(a){var b=a.split("\x3d"),c=b[0];b=b[1];if(!c)throw new _.nj("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 _.nj("Parsing CMSD, not recognized value type of "+a);};
342
342
  X=function(a,b,c){_.Am.call(this);var d=this;it();this.g=new _.K("clpp.Player");if(!a)throw new _.O(_.P,7,7102);this.ya=new _.wi;this.f=this.C=b||_.Hm();this.l=null;void 0===this.f.license&&(this.f.license=Em,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 _.O(_.P,7,7101,"No license provided in configuration!");this.j=new Dr(a,c);this.H=this.A=this.a=this.G=
343
- null;this.J=new _.Kk;this.h=null;this.ga=[];this.ja=!0;this.L={};this.Ea=null;this.Y=!0;this.ca=this.U=!1;this.M=this.td=null;this.fg=!1;this.kb=new bt(this);this.B=null;this.on(_.rg,function(){d.getState()===_.Sq&&(d.a?d.a.unload():Promise.resolve())});this.on(_.Tc,this.Ri.bind(this));this.on(_.Sc,this.Ri.bind(this));this.on(_.Gg,function(){return Kt(d)});Lt(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."),
343
+ null;this.J=new _.Kk;this.h=null;this.ga=[];this.ja=!0;this.L={};this.Ea=null;this.Y=!0;this.ca=this.U=!1;this.M=this.td=null;this.og=!1;this.kb=new bt(this);this.B=null;this.on(_.rg,function(){d.getState()===_.Sq&&(d.a?d.a.unload():Promise.resolve())});this.on(_.Tc,function(){d.og=!0});this.on(_.Sc,function(){d.og=!1});this.on(_.Gg,function(){return Kt(d)});Lt(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."),
344
344
  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(Mt);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)}}Nt(this,a);this.P=_.qa;Sm(this)};
345
345
  _.Ot=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))};Lt=function(a,b){a.G=new ot(b);qt(a.G)["catch"](function(c){setTimeout(function(){a.g.error(rb+c);a.trigger(new _.L(_.Ae,{detail:new _.O(_.P,7,7101)}));a.destroy()},1E3)})};
346
346
  Pt=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 ot(a.f.license)),_.D(e,2),a.g.debug("Verifying license remotely"),_.y(e,Ct(a.G,b),4);if(2!=e.a)return a.g.debug("License verified remotely"),_.Jh(e,0);c=_.H(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(kt,1E3,d,c);_.C(e)})};
@@ -356,18 +356,18 @@ _.Zt=function(a){return _.I(function(b){a.j.getMedia()||a.j.getCastElement();a.t
356
356
  bu=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)}au(a);_.C(f)})};
357
357
  au=function(a){var b=_.Vi(a.f.preferredTextLanguage).filter(function(f){return f}),c=a.f.preferForcedSubtitles,d=a.getTrackManager().ma().filter(function(f){return c?f.kind===_.Ce:f.kind!==_.Ce});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().ra();e&&e.language?(e=_.Pj(e.language||""),b.push(e)):(e=a.getTrackManager().Na())&&e.language&&(e=_.Pj(e.language||""),b.push(e));0===
358
358
  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=_.Pj(f);if(f=d.find(function(h){h=_.Pj(h.language||"");return _.Qj(h,g)}))return a.getTrackManager().$a(f),!0;c&&a.g.warn("Forced subtitles are configured to be preferred, but no forced subtitles match the preferred languages: ",b);return!1})}};
359
- _.Tt=function(a){var b;return _.I(function(c){if(1==c.a)return _.np(yf),Pt(a,{configuration:a.getConfiguration(),ba:a.si(),drmInfo:a.getDrmInfo(),lj:Object.keys(a.L),isLive:a.isLive()}),bu(a),Um(),_.y(c,a.Rc(_.jf),2);if(3!=c.a)return a.f.autoplay?(b=a.h?a.h.gd():!0)?_.y(c,a.play(),3):c.F(3):c.F(3);_.np(xf);_.pp("player.afterLoad",yf,xf);_.C(c)})};Xt=function(a,b){var c=or(a,b);c&&(a.h=c.create(a))};
360
- Kt=function(a){if(!a.h&&a.A&&a.a&&a.f.ads.hls.enable&&a.getTimelineCues().some(function(c){return c.schemeIdUri===Td})){var b=a.f.mse.sendPlaybackSessionIdHeader?a.H:null;a.h=new Zs;a.h.kd(a.a,a.A,b)}};Wt=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.I(function(c){if(!a.td||!a.fg)return c.F(0);a.fg=!1;return _.y(c,a.td(b),0)})})};_.cu=function(a){a&&(0<=Mt.indexOf(a)||Mt.push(a))};
359
+ _.Tt=function(a){var b;return _.I(function(c){if(1==c.a)return _.np(yf),Pt(a,{configuration:a.getConfiguration(),ba:a.si(),drmInfo:a.getDrmInfo(),kj:Object.keys(a.L),isLive:a.isLive()}),bu(a),Um(),_.y(c,a.Rc(_.jf),2);if(3!=c.a)return a.f.autoplay?(b=a.h?a.h.gd():!0)?_.y(c,a.play(),3):c.F(3):c.F(3);_.np(xf);_.pp("player.afterLoad",yf,xf);_.C(c)})};Xt=function(a,b){var c=or(a,b);c&&(a.h=c.create(a))};
360
+ Kt=function(a){if(!a.h&&a.A&&a.a&&a.f.ads.hls.enable&&a.getTimelineCues().some(function(c){return c.schemeIdUri===Td})){var b=a.f.mse.sendPlaybackSessionIdHeader?a.H:null;a.h=new Zs;a.h.kd(a.a,a.A,b)}};Wt=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.I(function(c){return a.og&&a.td?_.y(c,a.td(b),0):c["return"]()})})};_.cu=function(a){a&&(0<=Mt.indexOf(a)||Mt.push(a))};
361
361
  du=function(a,b,c){X.call(this,a,b,c);a={manifest:{timeline:{version:2},keepTimelineLive:!0},streaming:{preferNativeHlsOnSafari:!1,enableLiveEdgeChasing:!1,startAtSegmentBoundary:!1}};this.C=_.N.ua(this.C,a);this.f=_.N.ua(this.f,a);this.I=0;this.o=[];this.da=!1;this.w=null;this.K=[]};eu=function(a){a.K.forEach(function(b){return b()});a.K=[]};
362
362
  fu=function(a,b){function c(f){a.I=a.o.findIndex(function(g){return g.id===f.id})}a.addEventListener(_.fg,c);a.K.push(function(){a.removeEventListener(_.fg,c)});if(b.endTime){var d=b.endTime,e=function(){a.getPosition()>=d&&(a.removeEventListener(_.Hg,e),a.g.info("Playlist end time reached. Stopping playback."),a.trigger(new _.L(_.eg)),a.pause())};a.addEventListener(_.Hg,e);a.K.push(function(){a.removeEventListener(_.Hg,e)})}};
363
- iu=function(a,b){var c,d;return _.I(function(e){switch(e.a){case 1:return _.D(e,2),_.np(Hf),a.P=_.Ib,a.ja=!1,c=b.slice(1).map(function(f){return{config:f,ba:_.Zq(f)}}),_.y(e,_.Yt(a,b[0]),4);case 4:return c.forEach(function(f){gu(a,f.config,f.ba)}),a.trigger(new _.L(Ve)),_.y(e,a.a.setupPlaylist(b),5);case 5:return _.y(e,_.Tt(a),6);case 6:c.forEach(function(f){hu(a,f.config,f.ba)});_.np(Ff);_.pp("player.setupPlaylist",Hf,Ff);_.Jh(e,0);break;case 2:d=_.H(e);if(a.l)throw a.g.info(sb),new _.O(_.P,7,7E3);
364
- throw d;}})};ju=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.D(e,2),_.np(Af),c=_.Zq(b),gu(a,b,c),_.y(e,a.a.appendLoad(b),4);if(2!=e.a)return hu(a,b,c),_.np(zf),_.pp("player.appendLoad",Af,zf),_.Jh(e,0);d=_.H(e);if(a.l)throw a.g.info(sb),new _.O(_.P,7,7E3,{id:b.id});throw d;})};hu=function(a,b,c){Pt(a,{configuration:b,ba:c,drmInfo:a.getDrmInfo(),lj:Object.keys(a.L),isLive:c[0].isLive})};
363
+ iu=function(a,b){var c,d;return _.I(function(e){switch(e.a){case 1:return _.D(e,2),_.np(Kf),a.P=_.Ib,a.ja=!1,c=b.slice(1).map(function(f){return{config:f,ba:_.Zq(f)}}),_.y(e,_.Yt(a,b[0]),4);case 4:return c.forEach(function(f){gu(a,f.config,f.ba)}),a.trigger(new _.L(Ve)),_.y(e,a.a.setupPlaylist(b),5);case 5:return _.y(e,_.Tt(a),6);case 6:c.forEach(function(f){hu(a,f.config,f.ba)});_.np(Gf);_.pp("player.setupPlaylist",Kf,Gf);_.Jh(e,0);break;case 2:d=_.H(e);if(a.l)throw a.g.info(sb),new _.O(_.P,7,7E3);
364
+ throw d;}})};ju=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.D(e,2),_.np(Af),c=_.Zq(b),gu(a,b,c),_.y(e,a.a.appendLoad(b),4);if(2!=e.a)return hu(a,b,c),_.np(zf),_.pp("player.appendLoad",Af,zf),_.Jh(e,0);d=_.H(e);if(a.l)throw a.g.info(sb),new _.O(_.P,7,7E3,{id:b.id});throw d;})};hu=function(a,b,c){Pt(a,{configuration:b,ba:c,drmInfo:a.getDrmInfo(),kj:Object.keys(a.L),isLive:c[0].isLive})};
365
365
  gu=function(a,b,c){if(0===c.length)throw new _.O(_.P,7,7003,{message:Cb,id:b.id});if(1<c.length)throw new _.O(_.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 _.O(_.P,7,7003,{message:"Source not supported by the current player!",id:b.id,source:c[0]});};
366
366
  mu=function(a){_.Am.call(this);var b=this;this.h=_.N.ua({transition:_.sf,preloadMedia:!1},a);this.j=[];this.a=0;var c=ku(a.anchorId,this.h.config);this.w=new sr(c);this.f=null;this.l=!1;this.o=new Map;this.A=a.toggleVisible;this.g=new _.K(Md);this.w.a.forEach(function(d){return lu(b,d.player,!1)})};ou=function(a){return Promise.all(Array.from(a.o.keys()).map(function(b){return nu(a,b)}))};
367
367
  nu=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,pu(a,c),3):d.F(3)}a.o["delete"](b);_.C(d)})};ru=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Stop current playback (index: "+b.index+")"),b.player.pause(),lu(a,b.player,!1),_.y(c,pu(a,b),2);b.player=null;b.videoEl=null;b.role=qu;_.C(c)})};
368
368
  pu=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)})};uu=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=su,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),lu(a,c,!0),_.y(d,c.load(b.config),3);tu(a,b);return b.config.autoplay?d.F(0):_.y(d,c.play(),0)})};
369
369
  vu=function(a,b){return _.I(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==Tf){c.F(2);break}a.g.info(lc);_.D(c,3);return _.y(c,b.preloadPromise,5);case 5:_.Jh(c,2);break;case 3:_.H(c);case 2:a.f=b;b.role=su;lu(a,b.player,!0);if(b.state===Sf)return _.np(Pf),a.h.preloadMedia?_.y(c,b.player.play(),11):_.y(c,Ut(b.player),11);if(b.state!==Rf){c.F(7);break}return _.y(c,b.player.load(b.config),7);case 11:_.np(Of),_.pp("playlist.next",Pf,Of);case 7:if(tu(a,b),b.config.autoplay)c.F(0);
370
- else return _.y(c,b.player.play(),0)}})};tu=function(a,b){if(a.h.autoplayNext){var c=function(){a.g.info("Automatically transition to next item");a.kj()};b.player.on(_.ze,c);var d=b.player;b.disposers.push(function(){d.off(_.ze,c)})}};xu=function(a){var b;return _.I(function(c){b=a.a+1;a.g.info("Preload following item (index: "+b+")");return _.y(c,wu(a,b),0)})};yu=function(a){var b;return _.I(function(c){b=a.a-1;a.g.info("Preload preceding item (index: "+b+")");return _.y(c,wu(a,b),0)})};
370
+ else return _.y(c,b.player.play(),0)}})};tu=function(a,b){if(a.h.autoplayNext){var c=function(){a.g.info("Automatically transition to next item");a.jj()};b.player.on(_.ze,c);var d=b.player;b.disposers.push(function(){d.off(_.ze,c)})}};xu=function(a){var b;return _.I(function(c){b=a.a+1;a.g.info("Preload following item (index: "+b+")");return _.y(c,wu(a,b),0)})};yu=function(a){var b;return _.I(function(c){b=a.a-1;a.g.info("Preload preceding item (index: "+b+")");return _.y(c,wu(a,b),0)})};
371
371
  zu=function(a){var b;_.I(function(c){if(0===a.a)return _.y(c,xu(a),0);if(a.a===a.j.length-1)return _.y(c,yu(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 wu(a,d)})),0)})};
372
372
  wu=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=qu,d.state=Tf,a.trigger(new _.L(Qg)),_.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=
373
373
  Sf;a.trigger(new _.L(Qg));_.Jh(f,0);break;case 3:e=_.H(f),7001===e.code?(a.g.info("Preload aborted (index: "+b+")"),d.state=Qf):(a.g.warn("Preload failed (index: "+b+")",e),a.trigger(new _.L(_.Ae,{detail:e})),d.state=Rf),a.trigger(new _.L(Qg)),_.C(f)}})};lu=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.info(Yb+b),d.classList.add(Fd)):(a.g.info(lb+b),d.classList.remove(Fd)),a.A&&a.A(d,c))};
@@ -376,7 +376,7 @@ ku=function(a,b){var c=document.getElementById(a);if(!c)throw Error("Anchor elem
376
376
  _.Cu=function(a){if(Bu.has(a))return Bu.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);Bu.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),Bu.set(a,b),b):!1};Du=function(a){this.h=a;this.f={keepOriginalTimestamps:!0,remux:!1};this.a=new muxjs.mp4.Transmuxer(this.f)};
377
377
  Eu=function(a,b){var c=b.replace(/mp2t/i,"mp4");a===_.dd&&(c=c.replace(_.r,_.dd));var d=/avc1\.(66|77|100)\.(\d+)/.exec(c);if(d){var e="avc1.",f=d[1],g=Number(d[2]);e=("66"===f?e+"4200":"77"===f?e+"4d00":e+"6400")+(g>>4).toString(16);e+=(g&15).toString(16);c=c.replace(d[0],e)}return c};Fu=function(){};_.Gu=function(){};
378
378
  Hu=function(a,b,c,d,e){_.pn.call(this,kb);this.l=a;this.j=b;this.h=c;this.a=d;this.o=e;this.g=new _.K(Id);_.T.empty(this.l)?this.g.warn(_.nc):this.gb(_.Xd,{licenseUrl:this.l,videoRobustness:[_.Vb,void 0],audioRobustness:[_.Ub,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.ve.bind(this)}});_.T.empty(this.j)?this.g.warn(_.Kb):this.gb(_.Vd,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.ve.bind(this)}});
379
- _.T.empty(this.h)?this.g.warn(_.fb):_.T.empty(this.a)?this.g.warn(_.eb):this.gb(_.Sd,{licenseUrl:this.h,certificateUrl:this.a,modifiers:{licenseRequest:this.Ui.bind(this),licenseResponse:this.Vi.bind(this),certificateRequest:this.ve.bind(this),extractContentId:this.ai.bind(this)}})};Iu=function(){};Ju=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.Ee)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
379
+ _.T.empty(this.h)?this.g.warn(_.fb):_.T.empty(this.a)?this.g.warn(_.eb):this.gb(_.Sd,{licenseUrl:this.h,certificateUrl:this.a,modifiers:{licenseRequest:this.Ti.bind(this),licenseResponse:this.Ui.bind(this),certificateRequest:this.ve.bind(this),extractContentId:this.ai.bind(this)}})};Iu=function(){};Ju=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.Ee)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
380
380
  Ku=function(a){a=a.target;if(a.webkitPresentationMode===vf){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)};Lu=function(){return this.webkitSupportsPresentationMode(vf)?(this.webkitSetPresentationMode(vf),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
381
381
  Mu=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};Nu=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};Ou=function(a,b,c){return new window.TextTrackCue(a,b,c)};
382
382
  Pu=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};Ru=function(a,b,c){if("input"===a)switch(this.type){case "range":a=Ad}Qu.call(this,a,b,c)};Tu=function(){this.a=Su()};Uu=function(a){return Su()-a.a};Vu=function(a){var b=new Tu;b.a=a.a;return b};Su=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};_.Wu=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};
@@ -395,17 +395,17 @@ sv=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=uv(a);if(a.a+4>
395
395
  uv=function(a){var b=a.l.getUint32(a.a,!1);a.a+=4;return b};pv=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};wv=function(a){_.yk.call(this,new _.xk,function(){return Promise.resolve()});this.B=a;this.h=null;this.w=this.T;this.f=-1;this.j=this.l=this.o=null;vv(this)};xv=function(a,b,c){a.o=setTimeout(b,c)};
396
396
  vv=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=yv(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*yv(e.request.fuzzFactor,.5));a.f*=yv(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,h){a.l=h;xv(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.O(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
397
397
  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.T}).then(function(e){a.w.resolve(e)})["catch"](function(e){if(e instanceof _.O){var f=b<d,g=7001!==e.code,h=b<c;if((1===e.severity||f)&&g&&h)return vv(a);g&&e.a(_.P);a.w.reject(e)}else a.w.reject(e)})};yv=function(a,b){return null===a||void 0===a?b:a};
398
- Jk=function(a){var b=new zv,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new Av,e={Rd:!1,yj:!1};b={T:Bv(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.Rd||(e.Rd=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.yj=!0;d.abort()},a);b.T=b.T["finally"](function(){window.clearTimeout(f)})}return b};
398
+ Jk=function(a){var b=new zv,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new Av,e={Rd:!1,xj:!1};b={T:Bv(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.Rd||(e.Rd=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.xj=!0;d.abort()},a);b.T=b.T["finally"](function(){window.clearTimeout(f)})}return b};
399
399
  Bv=function(a,b,c,d){var e,f,g,h,l,m,n,p,q,t,v,z,A,E,G,B,F;return _.I(function(M){switch(M.a){case 1:return e=Cv,f=new Tu,g=Vu(f),_.D(M,2),_.y(M,e(a,c),4);case 4:h=M.f;l=nk(h.headers);m={uri:h.url,data:null,headers:l,status:h.status,timeMs:0,responseStartMs:Uu(g),request:b};if(qk(h.status)){M.F(5);break}n=m;return _.y(M,h.arrayBuffer(),6);case 6:throw n.data=M.f,m.timeMs=Uu(f),sk(m);case 5:p=h.headers.get(za);uk(b,p);q=p?parseInt(p,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return A=
400
400
  h.body.getReader(),E=new ov(q,!b.disableMergedFragments),G=function(R,la){if(d.Rd)return null;la&&la.data&&(vk(b,la.data.byteLength,Uu(g)),g.a=Su());return b.onFragment&&la?b.rateLimitBps?wk(b.rateLimitBps,Uu(f),b.bytesLoaded).then(function(){return b.onFragment(la)}):b.onFragment(la):null},B=m,_.y(M,rv(E,A,G,b.onProgress),12);t=h.body.getReader();v=new kv(q);return _.y(M,mv(v,t,b),9);case 9:z=M.f;if(!b.rateLimitBps){M.F(10);break}return _.y(M,wk(b.rateLimitBps,Uu(f),z.byteLength),10);case 10:m.data=
401
- z;M.F(8);break;case 12:B.data=M.f;case 8:if(d.Rd)throw Error("Request was aborted");m.timeMs=Uu(f);return M["return"](rk(m));case 2:F=_.H(M);if(d.Rd)throw new _.O(1,1,7001,{url:a,request:b});if(d.yj)throw new _.O(1,1,1003,{url:a,request:b});if(F&&1001===F.code)throw F;_.di("Error while fetching data:",F);throw new _.O(1,1,1002,{url:a,error:F,request:b,status:-1},F);}})};
401
+ z;M.F(8);break;case 12:B.data=M.f;case 8:if(d.Rd)throw Error("Request was aborted");m.timeMs=Uu(f);return M["return"](rk(m));case 2:F=_.H(M);if(d.Rd)throw new _.O(1,1,7001,{url:a,request:b});if(d.xj)throw new _.O(1,1,1003,{url:a,request:b});if(F&&1001===F.code)throw F;_.di("Error while fetching data:",F);throw new _.O(1,1,1002,{url:a,error:F,request:b,status:-1},F);}})};
402
402
  Ek=function(a){try{var b=a.uris[a.uriIndex],c=_.Dv(b);return{T:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{T:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
403
403
  _.Dv=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.di("Bad data URI, failed to parse scheme"),new _.O(_.P,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.di("Bad data URI, failed to extract encoding and MIME type"),new _.O(_.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?_.an(a).buffer:_.T.ib(a).buffer,contentType:c}};
404
404
  _.Fv=function(a,b){var c=_.Cl(_.Dl(a),_.El(a));_.Ev[c]=b};_.Gv=function(a){a=_.Cl(_.Dl(a),_.El(a));return _.Ev[a]||null};_.Hv=function(a){a=_.Cl(_.Dl(a),_.El(a));delete _.Ev[a]};
405
405
  _.Iv=function(a){a=a.getConfiguration();a=_.N.nb(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.ug?a.backgroundColor:null;this.U=typeof a.windowColor===_.ug?a.windowColor:null;this.M=typeof a.fontColor===_.ug?a.fontColor:null;this.P=typeof a.fontFamily===_.ug?a.fontFamily:null;this.I=typeof a.fontSize===_.ug?a.fontSize:null;this.B=typeof a.fontSizePercent===_.k?a.fontSizePercent:null;this.H=typeof a.edgeColor===_.ug?a.edgeColor:"rgba(0, 0, 0, 1)";this.o=null;typeof a.edgeType===
406
406
  _.ug&&(this.o=a.edgeType)};_.Nv=function(a){if(!a.o)return null;var b=a.H;switch(a.o){case Jv:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case Kv:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case Lv:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case Mv:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.ff}};Ov=function(a){this.f=a;this.a=null;this.g=new _.K("clpp.text.Mp4TextParser")};
407
407
  _.ew=function(a){_.Iv.call(this,a);this.l=a.getSurface().getMedia();this.f="clpp-video-"+Xv++;this.h=document.createElement(_.wg);this.j=this.w=!1;_.ur(this.l,this.f);document.head.appendChild(this.h);this.Xb()};fw=function(){};_.gw=function(){};_.sh=[];wh=typeof Object.create==_.Ee?Object.create:function(a){function b(){}b.prototype=a;return new b};
408
- if(typeof Object.setPrototypeOf==_.Ee)hw=Object.setPrototypeOf;else{var iw;a:{var jw={Nj:!0},kw={};try{kw.__proto__=jw;iw=kw.Nj;break a}catch(a){}iw=!1}hw=iw?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
408
+ if(typeof Object.setPrototypeOf==_.Ee)hw=Object.setPrototypeOf;else{var iw;a:{var jw={Mj:!0},kw={};try{kw.__proto__=jw;iw=kw.Mj;break a}catch(a){}iw=!1}hw=iw?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
409
409
  var xh=hw,Bh=typeof Object.defineProperties==_.Ee?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},zh="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;Ch.prototype.toString=function(){return this.a};var Ah=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new Ch("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
410
410
  Fh.prototype.A=function(a){this.f=a};Fh.prototype["return"]=function(a){this.h={"return":a};this.a=this.j};Fh.prototype.F=function(a){this.a=a};
411
411
  Sh("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=zh.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=
@@ -413,35 +413,35 @@ g[h];g[h]=null;try{l()}catch(m){this.j(m)}}}this.a=null};c.prototype.j=function(
413
413
  b.prototype.B=function(g){var h=void 0;try{h=g.then}catch(l){this.h(l);return}typeof h==_.Ee?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();
414
414
  g.Se(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==_.Ee?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.Se(l(g,m),l(h,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.Se=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: "+
415
415
  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).Se(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).Se(p(q.length-1),n),l=h.next();while(!l.done)})};return b});var Uh=this||self;
416
- Uh.a=!0;_.N={Lj:20,nb:function(a){var b=_.N.R,c=_.N.Fi,d=_.N.ua;return b(a)||c(a)?a:d(a)}};_.J("clpp.utils.obj.cloneItem",_.N.nb);_.N.ua=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];c={};for(var d=0;d<b.length;d++)null!=b[d]&&(c=_.N.Mi(c,{merging:b[d]},1));return c.merging||null};_.J("clpp.utils.obj.merge",_.N.ua);_.N.Lc=function(a){for(var b in a)if(void 0!==a[b])return!0;return!1};
417
- _.N.Mi=function(a,b,c){var d=_.N.R,e=_.N.Fi,f=_.N.Mi,g=_.N.Vb,h=_.N.Em,l=_.N.pg,m=_.N.zm,n=_.N.xd;c+=1;if(d(a)||!n(a))a={};for(var p in b)n=b[p],e(n)||d(n)||g(n)||m(n)?a[p]=n:h(n)?a[p]=n.subarray(0):n instanceof Array?a[p]=f([],n,c):!d(n)&&l(n)&&c<_.N.Lj&&(a[p]=f(a[p],n,c));return a};_.N.Fi=function(a){a=typeof a;return a===_.ug||a===_.k||a===_.nd};_.N.zm=function(a){return a instanceof Element};_.N.R=function(a){return null===a||"undefined"===typeof a};_.N.xd=function(a){return typeof a===_.gf};
418
- _.N.Vb=function(a){return typeof a===_.Ee};_.N.ha=function(a){return typeof a===_.ug};_.N.xa=function(a){return typeof a===_.k};_.N.Ai=function(a){return typeof a===_.nd};_.N.pg=function(a){var b=_.N.xd,c=_.N.R;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.N.Em=function(a){var b=_.N.xd,c=_.N.Vb;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
416
+ Uh.a=!0;_.N={Kj:20,nb:function(a){var b=_.N.R,c=_.N.Fi,d=_.N.ua;return b(a)||c(a)?a:d(a)}};_.J("clpp.utils.obj.cloneItem",_.N.nb);_.N.ua=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];c={};for(var d=0;d<b.length;d++)null!=b[d]&&(c=_.N.Mi(c,{merging:b[d]},1));return c.merging||null};_.J("clpp.utils.obj.merge",_.N.ua);_.N.Lc=function(a){for(var b in a)if(void 0!==a[b])return!0;return!1};
417
+ _.N.Mi=function(a,b,c){var d=_.N.R,e=_.N.Fi,f=_.N.Mi,g=_.N.Vb,h=_.N.Dm,l=_.N.pg,m=_.N.ym,n=_.N.xd;c+=1;if(d(a)||!n(a))a={};for(var p in b)n=b[p],e(n)||d(n)||g(n)||m(n)?a[p]=n:h(n)?a[p]=n.subarray(0):n instanceof Array?a[p]=f([],n,c):!d(n)&&l(n)&&c<_.N.Kj&&(a[p]=f(a[p],n,c));return a};_.N.Fi=function(a){a=typeof a;return a===_.ug||a===_.k||a===_.nd};_.N.ym=function(a){return a instanceof Element};_.N.R=function(a){return null===a||"undefined"===typeof a};_.N.xd=function(a){return typeof a===_.gf};
418
+ _.N.Vb=function(a){return typeof a===_.Ee};_.N.ha=function(a){return typeof a===_.ug};_.N.xa=function(a){return typeof a===_.k};_.N.Ai=function(a){return typeof a===_.nd};_.N.pg=function(a){var b=_.N.xd,c=_.N.R;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.N.Dm=function(a){var b=_.N.xd,c=_.N.Vb;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
419
419
  _.N.qa=function(a,b,c,d){if(a===b||null===a&&null===b||void 0===a&&void 0===b)return!0;if(null===a&&null!==b||null!==a&&null===b||void 0!==a&&void 0===b||void 0===a&&void 0!==b||!_.N.xd(a)||!_.N.xd(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var h=e[g];if(_.N.R(d)||0>d.indexOf(h))if(f[h]=!0,a[h]!==b[h])return!1}if(_.N.R(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.N.R(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
420
- _.N.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.N.Am=function(a,b,c){return a>=b&&a<=c};_.N.kh=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};_.N.lh=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};
420
+ _.N.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.N.zm=function(a,b,c){return a>=b&&a<=c};_.N.kh=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};_.N.lh=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};
421
421
  _.N.ni=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};_.N.Hi=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===_.gf&&e&&typeof e===_.gf){if(!_.N.Hi(d,e))return!1}else if(void 0!==d&&void 0!==e&&d!==e)return!1}return!0};
422
422
  _.N.Ii=function(a,b){if(!_.N.Hi(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===_.gf&&e&&typeof e===_.gf&&_.N.Ii(d,e))return!0}return!1};var Zh={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.J("clpp.log.Level",Zh);var Wh=0,Vh={},lw=[];_.J("clpp.log.getLoggers",function(){return _.N.nb(Vh)});_.J("clpp.log.addInterceptor",function(a){a&&lw.push(a)});_.J("clpp.log.removeInterceptor",function(a){a&&(a=lw.indexOf(a),0<=a&&lw.splice(a,1))});_.J("clpp.log.getTagLevel",Xh);_.J("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Vh[a]});_.J("clpp.log.setTagLevel",function(a,b){a&&(_.N.ha(b)&&(b=$h(b)),Vh[a]=b)});
423
423
  _.J("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.N.ha(a)&&(a=$h(a));Wh=a});_.J("clpp.log.getLogLevel",function(){return Wh});_.u=_.K.prototype;
424
424
  _.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=Xh(this.tag);if(0<=d){if(d<c)return}else if(Wh<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):
425
425
  1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.w(lw);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)};
426
- _.u.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.u.zl=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.zl;_.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 ai=new _.K("clpp");_.J("clpp.log.info",_.bi);
426
+ _.u.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.u.yl=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.yl;_.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 ai=new _.K("clpp");_.J("clpp.log.info",_.bi);
427
427
  _.J("clpp.log.debug",_.ci);_.J("clpp.log.warn",_.Yh);_.J("clpp.log.error",_.di);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.gi=new _.K("clpp.players");_.fi={};_.J("clpp.events.ERROR",_.Ae);_.J("clpp.events.LOADEDMETADATA",_.Ue);_.J("clpp.events.BUFFERING_ENDED",_.od);_.J("clpp.events.BUFFERING_STARTED",_.qd);_.J("clpp.events.STATE_CHANGED",_.rg);_.J("clpp.events.AUDIO_TRACK_CHANGED",_.kd);_.J("clpp.events.TEXT_TRACK_CHANGED",_.Cg);_.J("clpp.events.VIDEO_TRACK_CHANGED",_.bh);_.J("clpp.events.BITRATE_CHANGED",_.md);_.J("clpp.events.TRACKS_ADDED",_.Ig);_.J("clpp.events.LOAD_START",Ve);_.J("clpp.events.RELEASING",_.$f);_.J("clpp.events.RELEASED",Zf);
428
- _.J("clpp.events.DESTROYING","destroying");_.J("clpp.events.DESTROYED","destroyed");_.J("clpp.events.VIDEO_BUFFER_CHANGED",_.ah);_.J("clpp.events.AUDIO_BUFFER_CHANGED",_.jd);_.J("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.J("clpp.events.DRM_SESSION_CREATED",pe);_.J("clpp.events.DRM_SESSION_UPDATE",_.te);_.J("clpp.events.DRM_SESSION_PERSISTED",_.se);_.J("clpp.events.DRM_RENEWAL_STARTED",oe);_.J("clpp.events.DRM_EXPIRATION_UPDATE",_.me);_.J("clpp.events.DRM_LICENSE_REQUESTED",ne);
428
+ _.J("clpp.events.DESTROYING","destroying");_.J("clpp.events.DESTROYED","destroyed");_.J("clpp.events.VIDEO_BUFFER_CHANGED",_.ah);_.J("clpp.events.AUDIO_BUFFER_CHANGED",_.jd);_.J("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.J("clpp.events.DRM_SESSION_CREATED",re);_.J("clpp.events.DRM_SESSION_UPDATE",_.te);_.J("clpp.events.DRM_SESSION_PERSISTED",_.se);_.J("clpp.events.DRM_RENEWAL_STARTED",oe);_.J("clpp.events.DRM_EXPIRATION_UPDATE",_.me);_.J("clpp.events.DRM_LICENSE_REQUESTED",ne);
429
429
  _.J("clpp.events.AUTOPLAY_NOT_ALLOWED",_.ld);_.J("clpp.events.PLAY",_.wf);_.J("clpp.events.SEEKING",_.jg);_.J("clpp.events.SEEKED",_.ig);_.J("clpp.events.USER_SEEKING",_.Ug);_.J("clpp.events.USER_SEEKED",_.Tg);_.Pq={SEEKING:1,NO_DATA:2};_.J("clpp.events.BufferingReasons",_.Pq);_.J("clpp.events.ADS_TIMELINE_CHANGED",_.Rc);_.J("clpp.events.AD_LOADED",_.Hc);_.J("clpp.events.AD_BREAK_STARTED",_.xc);_.J("clpp.events.AD_STARTED",_.Nc);_.J("clpp.events.AD_BUFFERING",_.zc);_.J("clpp.events.AD_PROGRESS",_.Kc);
430
430
  _.J("clpp.events.AD_FIRST_QUARTILE",_.Cc);_.J("clpp.events.AD_MIDPOINT",_.Ic);_.J("clpp.events.AD_THIRD_QUARTILE",_.Pc);_.J("clpp.events.AD_PAUSED",_.Jc);_.J("clpp.events.AD_RESUMED",_.Lc);_.J("clpp.events.AD_SKIPPED",_.Mc);_.J("clpp.events.AD_CLICKED",_.Ac);_.J("clpp.events.AD_IMPRESSION",_.Gc);_.J("clpp.events.AD_COMPLETED",_.Bc);_.J("clpp.events.AD_STOPPED",_.Oc);_.J("clpp.events.AD_BREAK_STOPPED",_.yc);_.J("clpp.events.AD_HLS_ASSET_LIST_REQUEST",Dc);
431
431
  _.J("clpp.events.AD_HLS_ASSET_LIST_RESPONSE",Ec);_.J("clpp.events.AD_HLS_RESOLVED",Fc);_.J("clpp.events.SIMID_CREATIVE_STARTED",_.lg);_.J("clpp.events.SIMID_CREATIVE_STOPPED",_.mg);_.J("clpp.events.CASTING_STARTED",_.ud);_.J("clpp.events.CASTING_ENDED","castingended");_.J("clpp.events.CAST_STATUS_CHANGED",_.vd);_.J("clpp.events.AIRPLAY_STATUS_CHANGED",_.Uc);_.J("clpp.events.AIRPLAY_CASTING_STARTED",_.Tc);_.J("clpp.events.AIRPLAY_CASTING_ENDED",_.Sc);_.J("clpp.events.TIMELINE_CUE_ADDED",_.Dg);
432
432
  _.J("clpp.events.TIMELINE_CUE_ENTER",_.Eg);_.J("clpp.events.TIMELINE_CUE_EXIT",_.Fg);_.J("clpp.events.TIMELINE_CUES_CHANGED",_.Gg);_.J("clpp.events.MPD_TYPE_CHANGED",_.df);_.J("clpp.events.LIVE_TURNED_STATIC",_.Re);_.J("clpp.events.VIMOND_RESPONSE",_.ch);_.J("clpp.events.PLAYLIST_ITEM_CHANGED",_.Mf);_.J("clpp.events.PLAYLIST_MODIFIED",_.Nf);_.J("clpp.events.SC_PLAYLIST_TIMELINE_CHANGED",_.hg);_.J("clpp.events.SC_PLAYLIST_ITEM_CHANGED",_.fg);_.J("clpp.events.SC_PLAYLIST_ENDED",_.eg);
433
433
  _.J("clpp.events.SC_PLAYLIST_LIVE_TURNED_STATIC",_.gg);_.J("clpp.events.CDN_SWITCH_SUCCESS",_.wd);_.J("clpp.events.ONLINE_STATUS_CHANGED",of);_.J("clpp.events.CMSD_EVENT","cmsd-event");_.J("clpp.events.YOSPACE_SESSION_STARTED",_.rh);_.J("clpp.events.YOSPACE_SESSION_ENDED",_.qh);_.J("clpp.events.CONTENT_STEERING_CHANGE",_.Zd);_.J("clpp.events.CONTENT_STEERING_LOCATION_BAN_UPDATE",_.$d);_.ji.prototype.fa=function(a){return li(this,a,!1)};_.ji.prototype.Kb=function(a){return li(this,a,!0)};_.ji.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.mi.prototype.Xg=function(){this.stop();this.f();return this};_.mi.prototype.fa=function(a){var b=this;this.stop();this.a=(new _.ji(function(){b.f()})).fa(a);return this};_.mi.prototype.Kb=function(a){var b=this;this.stop();this.a=(new _.ji(function(){b.f()})).Kb(a);return this};_.mi.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.J("clpp.utils.Timer",_.mi);_.mi.prototype.stop=_.mi.prototype.stop;_.mi.prototype.tickEvery=_.mi.prototype.Kb;_.mi.prototype.tickAfter=_.mi.prototype.fa;
434
- _.mi.prototype.tickNow=_.mi.prototype.Xg;_.u=oi.prototype;_.u.load=function(a){var b=this;return _.I(function(c){return b.Oc?_.y(c,si(b,function(d){return _.I(function(e){return _.y(e,d.load(a),0)})}),0):(b.Ca.warn("No main player, cannot load."),c["return"]())})};_.u.xo=function(a){this.j=a;this.Ca.info("Looping set to",a)};_.u.Qj=function(a){this.f.push(a)};
435
- _.u.Pj=function(a){if(this.Oc)this.Ca.warn("Main player already set.");else{this.Oc=a;var b=this.Pm.bind(this),c=this.Qm.bind(this),d=this.ek.bind(this);a.on(_.rg,b);a.on(_.Hg,c);a.on(_.ze,d);this.h.push(function(){a.off(_.rg,b);a.off(_.Hg,c);a.on(_.ze,d)})}};_.u.clear=function(){this.Oc=null;this.f=[];this.h.forEach(function(a){return a()});this.h=[]};
436
- _.u.ek=function(){var a=this;return _.I(function(b){if(!a.j)return b.F(0);a.Ca.info("Looping playback.");return _.y(b,si(a,function(c){return _.I(function(d){return 1==d.a?_.y(d,c.seek(0),2):_.y(d,c.play(),0)})}),0)})};
437
- _.u.Pm=function(a){var b=this;this.a||(a=a.detail.currentState,a===_.Vq?(this.Ca.info("Mirroring playing."),ri(this,function(c){return _.I(function(d){return _.y(d,c.play(),0)})})):[_.Uq,_.Mq,_.Sq].includes(a)&&(this.Ca.info("Mirroring paused/buffering/error."),ri(this,function(c){var d,e;return _.I(function(f){if(1==f.a)return d=Math.round(b.Oc.getPosition())-.1,_.y(f,c.seek(d),2);if(3!=f.a)return _.y(f,ni(.2),3);e=c.getState();return e!==_.Vq&&e!==_.Mq?f.F(0):_.y(f,c.pause(),0)})})))};
438
- _.u.Qm=function(){var a=this;this.a||ri(this,function(b){var c,d,e,f,g,h,l;return _.I(function(m){switch(m.a){case 1:if(!b.isPaused()){m.F(2);break}return _.y(m,b.play(),2);case 2:c=a.Oc.getPosition();d=b.getPosition();e=c-d;f=Math.abs(e);g=b.getPlaybackRate();h=b.getState();if(h!==_.Vq||.05>=f)return m["return"]();var n=Math.abs(e);l=Math.min(Math.max(1+(.05>=n?0:n/(1>n?6:3))*Math.sign(e),.2),5);if(!(5<=f)){m.F(4);break}b.setPlaybackRate(1);return _.y(m,b.seek(c),5);case 5:return m["return"]();case 4:if(g===
439
- l)return 1!==l&&a.Ca.info("Delta "+e.toFixed(1)+" s."),m["return"]();1===l?a.Ca.info("Secondary caught up."):1>l?a.Ca.info("Secondary slowing down to catch up. Rate: "+(l.toFixed(1)+", delta: "+e.toFixed(1)+" s")):1<l&&a.Ca.info("Secondary speeding up to catch up. Rate: "+(l.toFixed(1)+", delta: "+e.toFixed(1)+" s"));b.setPlaybackRate(l);_.C(m)}})})};_.J(Gd,oi);oi.prototype.clear=oi.prototype.clear;oi.prototype.addMainPlayer=oi.prototype.Pj;oi.prototype.addSecondaryPlayer=oi.prototype.Qj;
440
- oi.prototype.setLoop=oi.prototype.xo;oi.prototype.load=oi.prototype.load;_.ti.prototype.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.ti.prototype.get=function(a){return(a=this.a[a])?a.slice():[]};_.ti.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};_.ti.prototype.clear=function(){this.a={}};ui.prototype.ab=function(a){try{this.hd.handleEvent?this.hd.handleEvent(a):this.hd.call(this.a,a)}catch(b){_.di("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=vi.prototype;
441
- _.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].ab(a),b[c].jo&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.u.on=function(a,b,c){this.a.push(a,new ui(a,b,c||this.f));return b};_.u.one=function(a,b,c){this.a.push(a,new ui(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].hd===b&&(d=this.a.remove(a,c[e])||d);return d};_.u.clear=function(){this.a.clear()};_.wi.prototype.release=function(){_.zi(this)};_.wi.prototype.on=function(a,b,c,d){a=new Ai(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.wi.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)};_.wi.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||(yi(f),this.a.remove(b,f))}};Bi.prototype.release=function(){this.j.release();this.a=new Set;this.f.clear();null!=this.h&&(clearInterval(this.h),this.h=null)};Bi.prototype.destroy=function(){var a=this;return _.I(function(b){a.release();_.C(b)})};Bi.prototype.getTimelineCues=function(){return Array.from(this.a.values()).sort(function(a,b){return a.startTime-b.startTime})};_.gj.prototype.qa=function(a){return this.payload===a.payload&&this.startTime===a.startTime&&this.endTime===a.endTime&&this.payloadType===a.payloadType};_.J("clpp.text.Cue",_.gj);_.gj.positionAlign={LEFT:_.Oe,RIGHT:_.Qe,CENTER:_.yd,AUTO:"auto"};_.aj="text";_.gj.payloadType={TEXT:_.aj,VTT_XML:_.eh,TTML_XML:_.Kg};_.bj=_.yd;_.mw={LEFT:_.Le,RIGHT:_.dg,CENTER:_.bj,START:_.Le,END:_.dg};_.gj.textAlign=_.mw;var fj="ltr";_.gj.direction={HORIZONTAL_LEFT_TO_RIGHT:fj,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.cj="horizontal-tb";
434
+ _.mi.prototype.tickNow=_.mi.prototype.Xg;_.u=oi.prototype;_.u.load=function(a){var b=this;return _.I(function(c){return b.Oc?_.y(c,si(b,function(d){return _.I(function(e){return _.y(e,d.load(a),0)})}),0):(b.Ca.warn("No main player, cannot load."),c["return"]())})};_.u.wo=function(a){this.j=a;this.Ca.info("Looping set to",a)};_.u.Pj=function(a){this.f.push(a)};
435
+ _.u.Oj=function(a){if(this.Oc)this.Ca.warn("Main player already set.");else{this.Oc=a;var b=this.Om.bind(this),c=this.Pm.bind(this),d=this.dk.bind(this);a.on(_.rg,b);a.on(_.Hg,c);a.on(_.ze,d);this.h.push(function(){a.off(_.rg,b);a.off(_.Hg,c);a.on(_.ze,d)})}};_.u.clear=function(){this.Oc=null;this.f=[];this.h.forEach(function(a){return a()});this.h=[]};
436
+ _.u.dk=function(){var a=this;return _.I(function(b){if(!a.j)return b.F(0);a.Ca.info("Looping playback.");return _.y(b,si(a,function(c){return _.I(function(d){return 1==d.a?_.y(d,c.seek(0),2):_.y(d,c.play(),0)})}),0)})};
437
+ _.u.Om=function(a){var b=this;this.a||(a=a.detail.currentState,a===_.Vq?(this.Ca.info("Mirroring playing."),ri(this,function(c){return _.I(function(d){return _.y(d,c.play(),0)})})):[_.Uq,_.Mq,_.Sq].includes(a)&&(this.Ca.info("Mirroring paused/buffering/error."),ri(this,function(c){var d,e;return _.I(function(f){if(1==f.a)return d=Math.round(b.Oc.getPosition())-.1,_.y(f,c.seek(d),2);if(3!=f.a)return _.y(f,ni(.2),3);e=c.getState();return e!==_.Vq&&e!==_.Mq?f.F(0):_.y(f,c.pause(),0)})})))};
438
+ _.u.Pm=function(){var a=this;this.a||ri(this,function(b){var c,d,e,f,g,h,l;return _.I(function(m){switch(m.a){case 1:if(!b.isPaused()){m.F(2);break}return _.y(m,b.play(),2);case 2:c=a.Oc.getPosition();d=b.getPosition();e=c-d;f=Math.abs(e);g=b.getPlaybackRate();h=b.getState();if(h!==_.Vq||.05>=f)return m["return"]();var n=Math.abs(e);l=Math.min(Math.max(1+(.05>=n?0:n/(1>n?6:3))*Math.sign(e),.2),5);if(!(5<=f)){m.F(4);break}b.setPlaybackRate(1);return _.y(m,b.seek(c),5);case 5:return m["return"]();case 4:if(g===
439
+ l)return 1!==l&&a.Ca.info("Delta "+e.toFixed(1)+" s."),m["return"]();1===l?a.Ca.info("Secondary caught up."):1>l?a.Ca.info("Secondary slowing down to catch up. Rate: "+(l.toFixed(1)+", delta: "+e.toFixed(1)+" s")):1<l&&a.Ca.info("Secondary speeding up to catch up. Rate: "+(l.toFixed(1)+", delta: "+e.toFixed(1)+" s"));b.setPlaybackRate(l);_.C(m)}})})};_.J(Gd,oi);oi.prototype.clear=oi.prototype.clear;oi.prototype.addMainPlayer=oi.prototype.Oj;oi.prototype.addSecondaryPlayer=oi.prototype.Pj;
440
+ oi.prototype.setLoop=oi.prototype.wo;oi.prototype.load=oi.prototype.load;_.ti.prototype.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.ti.prototype.get=function(a){return(a=this.a[a])?a.slice():[]};_.ti.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};_.ti.prototype.clear=function(){this.a={}};ui.prototype.ab=function(a){try{this.hd.handleEvent?this.hd.handleEvent(a):this.hd.call(this.a,a)}catch(b){_.di("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=vi.prototype;
441
+ _.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].ab(a),b[c].io&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.u.on=function(a,b,c){this.a.push(a,new ui(a,b,c||this.f));return b};_.u.one=function(a,b,c){this.a.push(a,new ui(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].hd===b&&(d=this.a.remove(a,c[e])||d);return d};_.u.clear=function(){this.a.clear()};_.wi.prototype.release=function(){_.zi(this)};_.wi.prototype.on=function(a,b,c,d){a=new Ai(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.wi.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)};_.wi.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||(yi(f),this.a.remove(b,f))}};Bi.prototype.release=function(){this.j.release();this.a=new Set;this.f.clear();null!=this.h&&(clearInterval(this.h),this.h=null)};Bi.prototype.destroy=function(){var a=this;return _.I(function(b){a.release();_.C(b)})};Bi.prototype.getTimelineCues=function(){return Array.from(this.a.values()).sort(function(a,b){return a.startTime-b.startTime})};_.gj.prototype.qa=function(a){return this.payload===a.payload&&this.startTime===a.startTime&&this.endTime===a.endTime&&this.payloadType===a.payloadType};_.J("clpp.text.Cue",_.gj);_.gj.positionAlign={LEFT:_.Pe,RIGHT:_.Qe,CENTER:_.yd,AUTO:"auto"};_.aj="text";_.gj.payloadType={TEXT:_.aj,VTT_XML:_.eh,TTML_XML:_.Lg};_.bj=_.yd;_.mw={LEFT:_.Le,RIGHT:_.dg,CENTER:_.bj,START:_.qg,END:_.ye};_.gj.textAlign=_.mw;var fj="ltr";_.gj.direction={HORIZONTAL_LEFT_TO_RIGHT:fj,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.cj="horizontal-tb";
442
442
  _.gj.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.cj,VERTICAL_LEFT_TO_RIGHT:_.Xg,VERTICAL_RIGHT_TO_LEFT:_.Yg};_.dj=0;_.gj.lineInterpretation={LINE_NUMBER:_.dj,PERCENTAGE:1};_.ej=_.qg;_.nw={CENTER:_.yd,START:_.ej,END:_.ye};_.gj.lineAlign=_.nw;_.J("clpp.text.CueRegion",_.jj);_.hj=1;_.jj.units={PX:0,PERCENTAGE:_.hj,LINES:2};var ij="";_.jj.scrollMode={NONE:ij,UP:"up"};_.jj.displayAlign={BEFORE:"flex-end",CENTER:_.yd,AFTER:"flex-start"};
443
- _.jj.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Pd,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};kj.prototype.destroy=function(){this.a.release();this.j=!1;this.l=this.a=this.h=this.f=null;return Promise.resolve()};kj.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,_.Qc,function(c){return lj(b,c)}),this.a.on(this.f,Ad,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.kg&&(e.mode=_.Ge)}}))};
444
- kj.prototype.o=function(a){var b=new _.gj(a.startTime,a.endTime,a.text,_.eh);if(_.N.ha(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Xg;break;case "rl":b.writingMode=_.Yg}_.N.xa(a.size)&&(b.size=a.size);if(_.N.ha(a.align))switch(a.align){case _.Le:case _.qg:b.textAlign=_.Le;break;case _.yd:b.textAlign=_.bj;break;case _.dg:case _.ye:b.textAlign=_.dg}_.N.xa(a.position)&&(b.position=a.position);if(_.N.ha(a.positionAlign))switch(a.positionAlign){case _.Oe:b.positionAlign=_.Oe;break;case _.yd:b.positionAlign=
443
+ _.jj.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Qd,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};kj.prototype.destroy=function(){this.a.release();this.j=!1;this.l=this.a=this.h=this.f=null;return Promise.resolve()};kj.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,_.Qc,function(c){return lj(b,c)}),this.a.on(this.f,Ad,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.kg&&(e.mode=_.Ge)}}))};
444
+ kj.prototype.o=function(a){var b=new _.gj(a.startTime,a.endTime,a.text,_.eh);if(_.N.ha(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Xg;break;case "rl":b.writingMode=_.Yg}_.N.xa(a.size)&&(b.size=a.size);if(_.N.ha(a.align))switch(a.align){case _.Le:case _.qg:b.textAlign=_.qg;break;case _.yd:b.textAlign=_.bj;break;case _.dg:case _.ye:b.textAlign=_.ye}_.N.xa(a.position)&&(b.position=a.position);if(_.N.ha(a.positionAlign))switch(a.positionAlign){case _.Pe:b.positionAlign=_.Pe;break;case _.yd:b.positionAlign=
445
445
  _.yd;break;case _.Qe:b.positionAlign=_.Qe}_.N.xa(a.line)&&(b.line=a.line);if(_.N.ha(a.lineAlign))switch(a.lineAlign){case _.qg:b.lineAlign=_.ej;break;case _.yd:b.lineAlign=_.yd;break;case _.ye:b.lineAlign=_.ye}_.N.Ai(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.dj:1);return b};_.x(_.O,Error);_.O.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=mj(this.severity,this.category,this.code,this.data))};_.O.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.J("clpp.Error",_.O);_.P=2;_.O.Severity={RECOVERABLE:1,FATAL:_.P};_.O.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
446
446
  _.O.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,
447
447
  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,
@@ -456,44 +456,44 @@ SESSIONS_INVALID_CONFIGURATION:15E3};_.x(_.nj,Error);var xj=/^(?:([^:/?#.]+):)?(
456
456
  _.u.resolve=function(a){var b=new _.sj(this);"data"===b.Gb&&(b=new _.sj);var c=!!a.Gb;c?tj(b,a.Gb):c=!!a.Tc;c?b.Tc=a.Tc:c=!!a.bb;c?b.bb=a.bb:c=null!=a.Cd;var d=a.Pa;if(c)uj(b,a.Cd);else if(c=!!a.Pa){if("/"!=d.charAt(0))if(this.bb&&!this.Pa)d="/"+d;else{var e=b.Pa.lastIndexOf("/");-1!=e&&(d=b.Pa.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(""):
457
457
  ".."==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.Pa=d:c=""!==a.a.toString();c?_.vj(b,wj(a.a)):c=!!a.Ic;c&&(b.Ic=a.Ic);return b};var ow=/[#\/\?@]/g,qw=/[#\?:]/g,pw=/[#\?]/g,Bj=/[#\?@]/g,rw=/#/g;_.zj.prototype.a=null;_.zj.prototype.h=null;
458
458
  _.zj.prototype.add=function(a,b){if(!this.a&&(this.a={},this.h=0,this.f))for(var c=this.f.split("\x26"),d=0;d<c.length;d++){var e=c[d].indexOf("\x3d"),f=null;if(0<=e){var g=c[d].substring(0,e);f=c[d].substring(e+1)}else g=c[d];g=decodeURIComponent(g.replace(/\+/g," "));f=f||"";this.add(g,decodeURIComponent(f.replace(/\+/g," ")))}this.f=null;(c=this.a.hasOwnProperty(a)&&this.a[a])||(this.a[a]=c=[]);c.push(b);null!==this.h&&this.h++;return this};
459
- _.zj.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 Dj;_.Q="text";_.er={VIDEO:_.r,AUDIO:_.dd,TEXT:_.Q,So:_.Vc,IMAGE:_.Ie,jh:_.xg};_.sw=1/15;Dj={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/]};Dj[_.Q]=[/^vtt$/,/^wvtt/,/^stpp/];var Fj={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av0?1/],text:[/^vtt$/,/^wvtt/,/^stpp/]};_.Ij={text:{mp4:Yc,m4s:Yc,m4i:Yc,cmft:Yc,vtt:_.Ag,ttml:_.ad},video:{mp4:_.$g,m4s:_.$g,m4f:_.$g,m4i:_.$g,m4v:_.$g,cmfv:_.$g,ts:_.Zg},audio:{mp4:_.hd,m4s:_.hd,m4f:_.hd,m4i:_.hd,m4a:_.hd,cmfa:_.hd,ts:_.Zg,aac:_.ed,ec3:_.gd,ac3:_.fd},image:{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.Kj.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};_.Kj.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name===a});return b.length?b[0]:null};_.Kj.prototype.hasAttribute=function(a){return null!=this.getAttribute(a)};_.Nj.prototype.getPosition=function(){return this.position};_.Nj.prototype.he=function(){return this.pa?this.pa-this.Da+1:null};_.Nj.prototype.f=_.th(0);_.x(_.Oj,_.Nj);var Rj=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",
459
+ _.zj.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 Dj;_.Q="text";_.er={VIDEO:_.r,AUDIO:_.dd,TEXT:_.Q,Ro:_.Vc,IMAGE:_.Ie,jh:_.xg};_.sw=1/15;Dj={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/]};Dj[_.Q]=[/^vtt$/,/^wvtt/,/^stpp/];var Fj={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av0?1/],text:[/^vtt$/,/^wvtt/,/^stpp/]};_.Ij={text:{mp4:Yc,m4s:Yc,m4i:Yc,cmft:Yc,vtt:_.Ag,ttml:_.ad},video:{mp4:_.$g,m4s:_.$g,m4f:_.$g,m4i:_.$g,m4v:_.$g,cmfv:_.$g,ts:_.Zg},audio:{mp4:_.hd,m4s:_.hd,m4f:_.hd,m4i:_.hd,m4a:_.hd,cmfa:_.hd,ts:_.Zg,aac:_.ed,ec3:_.gd,ac3:_.fd},image:{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.Kj.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};_.Kj.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name===a});return b.length?b[0]:null};_.Kj.prototype.hasAttribute=function(a){return null!=this.getAttribute(a)};_.Nj.prototype.getPosition=function(){return this.position};_.Nj.prototype.he=function(){return this.pa?this.pa-this.Da+1:null};_.Nj.prototype.f=_.th(0);_.x(_.Oj,_.Nj);var Rj=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",
460
460
  "cs"],["dan","da"],["deu","de"],[_.fe,"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",
461
461
  "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",
462
462
  "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",
463
463
  "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",
464
- "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);_.Y={ac:function(a,b){return a.filter(function(c){return c.name===b})},zj:function(a){var b=/^[a-zA-Z0-9_-]+$/,c=new Set;a.forEach(function(d){var e=_.S(d,"VALUE"),f=_.S(d,_.xb),g=_.S(d,"IMPORT"),h=_.S(d,"QUERYPARAM");if(1!==[f,g,h].filter(Boolean).length||f&&null==e)throw new _.O(_.P,4,4044,{message:"Invalid tag.",text:d.toString()});d=f||g||h;if(c.has(d))throw new _.O(_.P,4,4044,'EXT-X-DEFINE redefined variable "'+d+'".');if(!b.test(d))throw new _.O(_.P,4,4044,'EXT-X-DEFINE invalid variable name "'+
465
- d+'".');c.add(d)})},jg:function(a,b){var c=Array.isArray(b)?b:[b];return a.filter(function(d){d=_.Lj(d,_.ac);return c.includes(d)})},me:function(a,b){return a.some(function(c){return c.name===b})},cb: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 _.O(_.P,4,4024,{missingTag:b});return a},pi:function(a,b){return _.Y.cb(a,b,{required:!0})},dm:function(a,b,c){c=void 0===c?0:c;return(a=_.Y.cb(a,b))?Number(a.value):c},tp:function(a,b,c){return a.filter(function(d){var e=
466
- d.getAttribute(_.ac);d=d.getAttribute(_.gb);return e.value===b&&d.value===c})},Vn:function(a){var b=_.Y.cb(a,"EXT-X-TILES");if(!b)return{je:1,Ge:1,durationPerTile:null};a=_.S(b,"LAYOUT")||"1x1";b=_.S(b,_.Ja);a=_.Uj(a);return{je:a.je,Ge:a.Ge,durationPerTile:b?Number(b):null}},od:function(a,b,c){c=void 0===c?!0:c;a=new _.sj(a);b=new _.sj(b);b=a.resolve(b).toString();return c?b:decodeURI(b)},Bi:function(a){return/^#(?!EXT)/m.test(a)},Gm:function(a,b){Array.isArray(a)||(a=[a]);a.forEach(function(c){for(var d=
467
- _.w(_.Y.Df(c)),e=d.next();!e.done;e=d.next())b(e.value,c)})},Df: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)},sm:function(a){return a.some(function(b){return _.Y.me(b.$,Ra)})},Wj:function(a){return _.Y.Df(a).filter(_.Y.zi)},hj:function(a){if(_.Y.cb(a,Ra))return _.kc;a=_.Y.cb(a,Xa);if(!a)return"LIVE";if(a.value===
468
- _.kc)return _.kc;if("EVENT"===a.value)return"EVENT";throw new _.O(_.P,4,4044,"Invalid EXT-X-PLAYLIST-TYPE value: "+a.value);},Sh:function(a){a={AUDIO:_.dd,VIDEO:_.r,SUBTITLES:_.Q,"CLOSED-CAPTIONS":_.Q}[a.toUpperCase()];if(!a)throw new _.O(_.P,4,4044,"EXT-X-MEDIA tag has an invalid TYPE attribute.");return a},yl:function(a){var b=_.Lj(a,_.ac).toUpperCase();if(_.Y.Sh(b)!==_.Q)return null;a=a.getAttribute("FORCED");a=!(!a||!a.value||"YES"!==a.value.toUpperCase());var c=_.xg;b===_.ta&&(c=_.td);a&&(c=
469
- _.Ce);return c},ej: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 _.O(_.P,4,4044,"Byte range length must be positive.");if(d[1]){if(d=Number(d[1]),0>d)throw new _.O(_.P,4,4044,"Byte range start byte must not be negative.");}else{if(c)throw new _.O(_.P,4,4044,"Invalid byte range, offset is required but missing.");if(null==b)throw new _.O(_.P,4,4044,"Invalid byte range, cannot calculate offset based on previous byte ranges.");d=b+1}e=d+a-1}return{Da:d,
470
- pa:e}},gj:function(a,b){var c=_.Y.cb(a,La);return _.Y.ej(c?c.value:null,b)},Qn:function(a){a=_.Y.pi(a,"EXTINF").value.split(",");return{duration:Number(a[0]),title:a[1]||null}},ij:function(a,b){function c(f){return null==f?null:Number(f)}b=void 0===b?{}:b;var d={vh:!1,bk:!1,ck:null,tm:null,jj:null},e=_.Y.cb(a,$a,{required:b.pj});if(!e)return d;d.vh="YES"===_.S(e,"CAN-BLOCK-RELOAD");d.bk="YES"===_.S(e,"CAN-SKIP-DATERANGES");d.ck=c(_.S(e,"CAN-SKIP-UNTIL"));d.tm=c(_.S(e,"HOLD-BACK"));d.jj=c(_.S(e,"PART-HOLD-BACK",
471
- void 0,{required:b.pj}));return d},fj:function(a,b,c){c=void 0===c?!1:c;a=_.S(a,"BYTERANGE");return _.Y.ej(a,b,c)},Un:function(a){var b=_.Y.ac(a,_.Ua),c=_.Y.ac(a,_.ab);a=_.Y.ac(a,"EXT-X-IMAGE-STREAM-INF");return{Qc:{qh:_.Y.jg(b,[_.ja,_.jc]),closedCaptions:_.Y.jg(b,_.ta),Eo:_.Y.jg(b,_.Tb)},He:c,ng:a}},Al:function(a,b){var c=_.Y.gj(a.$,null);return new _.Oj(0,0,0,function(){return[a.a]},c.Da,c.pa,0,b)},km:function(a){var b=a.S;a=b[0].startTime;b=b[b.length-1].endTime;return{rc:a,kf:b,duration:b-a}},
472
- hm:function(a){var b=Infinity,c=Infinity;_.Y.Wj(a).forEach(function(d){d=_.Y.km(d);b=Math.min(b,d.rc);c=Math.min(c,d.duration)});return{rc:b,duration:c}},zi:function(a){return a.type===_.dd||a.type===_.r},Ll:function(a){return a.filter(_.Y.zi)},fm:function(a){return a.map(function(b){return _.Y.hm(b).duration}).reduce(function(b,c){return b+c},0)},$l:function(a,b){return a&&b?_.tq(a.drmInfos,b.drmInfos)?_.sq(a.drmInfos,b.drmInfos):null:a?a.drmInfos:b?b.drmInfos:null},Cl:function(a,b){return(b?b.ec():
473
- "")+" - "+(a?a.ec():"")},Th:function(a){return(a.video?a.video.Ac:"")+" - "+(a.audio?a.audio.Ac:"")},Tn:function(a,b,c,d,e){if(b===_.kc)return{delay:0,Fe:0};b=_.Y.cb(a,Wa);if(c&&b)return e=Number(_.Lj(b,"PART-TARGET")),null!=d?{delay:d,Fe:e}:{delay:_.Y.ij(a,{pj:!0}).jj,Fe:e};a=_.Y.pi(a,bb);a=Number(a.value);e=e||a;return null!=d?{delay:d,Fe:e}:{delay:3*a,Fe:e}},Ye:function(a,b){return a+":"+b},Io:function(a){var b=_.Y.Ye,c=new Map;a.forEach(function(d){var e=b(d.a(),d.f());c.has(e)?(e=c.get(e),e.includes(d)||
474
- e.push(d)):c.set(e,[d])});return c},ki:function(a){return _.Pj(a||_.Ng)},Mn:function(a){var b=new Map;a=_.w(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=_.S(c,_.qb);d=_.Y.ki(d);var e=_.Lj(c,_.gb);c=_.Lj(c,"INSTREAM-ID");b.has(e)||b.set(e,new Map);b.get(e).set(c,d)}return b},Gl:function(a){return a.filter(function(b){return"mp4a.40.34"!==b})},Wn:function(a){if(!a.hasAttribute("FRAME-RATE")&&!a.hasAttribute(_.Rb))return null;var b=_.S(a,"FRAME-RATE");a=_.S(a,_.Rb);var c=_.w(a?a.split("x"):
475
- [null,null]);a=c.next().value;c=c.next().value;return{frameRate:Sj(b),width:Sj(a),height:Sj(c)}},Fm:function(a){return a.name!==_.Ua?!0:_.S(a,_.ac)===_.Tb},Nn:function(a,b,c,d){var e=_.S(a,"ID"),f=_.S(a,"START-DATE");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=Sj(_.S(a,_.Ja));void 0!==c&&0<=c&&(e.duration=
476
- c);d=Sj(_.S(a,"PLANNED-DURATION"));void 0!==d&&0<=d&&(e.plannedDuration=d);var h=_.S(a,"CLASS");null!==h&&(e.schemeIdUri=h);var l=_.S(a,"END-DATE");l=l?new Date(l):null;null!==l&&l.getTime()>=g.getTime()&&(e.endDate=l);g=_.Y.Ln(a)||{};var m=_.S(a,"CUE");m&&(g.CUE=m.split(","));if(h===Td){h=_.Y.Rn(a);if(null===h)return _.Y.g.warn("Invalid interstitial attributes, ignoring the EXT-X-DATERANGE tag.",a),null;g=Object.assign(g,h)}_.N.Lc(g)&&(e.customAttributes=g);e.endTime=l?l.getTime()/1E3+b:c?f+c:d?
477
- f+d:f;e.type=_.Qi;return e},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())c=c.value,c.name.trim().startsWith("X-")&&(a[c.name]=c.value);return _.N.Lc(a)?a:null},Rn: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 rc:a[rc]=c.value;break;case qc:a[qc]=c.value;break;case uc:a[uc]=Sj(c.value);break;case sc:a[sc]=Sj(c.value);break;case "X-SNAP":a["X-SNAP"]=
478
- c.value.split(",");break;case tc:a[tc]=c.value.split(",")}return a[rc]&&a[qc]||!a[rc]&&!a[qc]?(_.Y.g.warn("Invalid EXT-X-DATERANGE Interstitial attributes X-ASSET-URI, X-ASSET-LIST"),null):_.N.Lc(a)?a:null},bi:function(a,b){if(!a)return null;var c=a.Ac;return b.find(function(d){return d.ec()===c})||null},gi:function(a){return(a=_.S(a,"CHANNELS"))?parseInt(a.split("/")[0],10):null}};_.Y.g=new _.K("clpp.hls.Utils");_.tw=new Set([_.Qa,Ra,"EXT-X-I-FRAMES-ONLY",_.Va,Wa,Xa,$a,bb]);_.uw=new Set(["EXTINF",La,_.Pa,_.Sa,_.Ta,_.Za]);_.vw=new Set(["EXT-X-PART",_.Ya]);_.ww=new Set([_.Oa]);_.xw=new Set([_.Na]);var ck=function yw(a){var c;return _.Rh(yw,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",Zj);Zj.toArrayBuffer=jk;Zj.toDataView=_.ik;Zj.toInt32Array=_.hk;Zj.toUint32Array=gk;Zj.toUint16Array=fk;Zj.toUint8Array=_.bk;Zj.equal=dk;_.T={};_.T.Ca=new _.K("clpp.utils.strings");_.T.Kj=16E3;_.T.fromCharCode=function(a){for(var b=_.T.Kj,c="",d=0;d<a.length;d+=b)c+=String.fromCharCode.apply(null,a.subarray(d,d+b));return c};_.T.ea=function(a){if(!a)return"";a=_.bk(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(cb);return a}a=escape(_.T.fromCharCode(a));try{return decodeURIComponent(a)}catch(b){throw Error(cb);}};
464
+ "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);_.Y={ac:function(a,b){return a.filter(function(c){return c.name===b})},yj:function(a){var b=/^[a-zA-Z0-9_-]+$/,c=new Set;a.forEach(function(d){var e=_.S(d,"VALUE"),f=_.S(d,_.xb),g=_.S(d,"IMPORT"),h=_.S(d,"QUERYPARAM");if(1!==[f,g,h].filter(Boolean).length||f&&null==e)throw new _.O(_.P,4,4044,{message:"Invalid tag.",text:d.toString()});d=f||g||h;if(c.has(d))throw new _.O(_.P,4,4044,'EXT-X-DEFINE redefined variable "'+d+'".');if(!b.test(d))throw new _.O(_.P,4,4044,'EXT-X-DEFINE invalid variable name "'+
465
+ d+'".');c.add(d)})},ig:function(a,b){var c=Array.isArray(b)?b:[b];return a.filter(function(d){d=_.Lj(d,_.ac);return c.includes(d)})},me:function(a,b){return a.some(function(c){return c.name===b})},cb: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 _.O(_.P,4,4024,{missingTag:b});return a},pi:function(a,b){return _.Y.cb(a,b,{required:!0})},cm:function(a,b,c){c=void 0===c?0:c;return(a=_.Y.cb(a,b))?Number(a.value):c},sp:function(a,b,c){return a.filter(function(d){var e=
466
+ d.getAttribute(_.ac);d=d.getAttribute(_.gb);return e.value===b&&d.value===c})},Un:function(a){var b=_.Y.cb(a,"EXT-X-TILES");if(!b)return{je:1,Ge:1,durationPerTile:null};a=_.S(b,"LAYOUT")||"1x1";b=_.S(b,_.Ja);a=_.Uj(a);return{je:a.je,Ge:a.Ge,durationPerTile:b?Number(b):null}},od:function(a,b,c){c=void 0===c?!0:c;a=new _.sj(a);b=new _.sj(b);b=a.resolve(b).toString();return c?b:decodeURI(b)},Bi:function(a){return/^#(?!EXT)/m.test(a)},Fm:function(a,b){Array.isArray(a)||(a=[a]);a.forEach(function(c){for(var d=
467
+ _.w(_.Y.Df(c)),e=d.next();!e.done;e=d.next())b(e.value,c)})},Df: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)},rm:function(a){return a.some(function(b){return _.Y.me(b.$,Ra)})},Vj:function(a){return _.Y.Df(a).filter(_.Y.zi)},gj:function(a){if(_.Y.cb(a,Ra))return _.kc;a=_.Y.cb(a,Xa);if(!a)return"LIVE";if(a.value===
468
+ _.kc)return _.kc;if("EVENT"===a.value)return"EVENT";throw new _.O(_.P,4,4044,"Invalid EXT-X-PLAYLIST-TYPE value: "+a.value);},Sh:function(a){a={AUDIO:_.dd,VIDEO:_.r,SUBTITLES:_.Q,"CLOSED-CAPTIONS":_.Q}[a.toUpperCase()];if(!a)throw new _.O(_.P,4,4044,"EXT-X-MEDIA tag has an invalid TYPE attribute.");return a},xl:function(a){var b=_.Lj(a,_.ac).toUpperCase();if(_.Y.Sh(b)!==_.Q)return null;a=a.getAttribute("FORCED");a=!(!a||!a.value||"YES"!==a.value.toUpperCase());var c=_.xg;b===_.ta&&(c=_.td);a&&(c=
469
+ _.Ce);return c},dj: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 _.O(_.P,4,4044,"Byte range length must be positive.");if(d[1]){if(d=Number(d[1]),0>d)throw new _.O(_.P,4,4044,"Byte range start byte must not be negative.");}else{if(c)throw new _.O(_.P,4,4044,"Invalid byte range, offset is required but missing.");if(null==b)throw new _.O(_.P,4,4044,"Invalid byte range, cannot calculate offset based on previous byte ranges.");d=b+1}e=d+a-1}return{Da:d,
470
+ pa:e}},fj:function(a,b){var c=_.Y.cb(a,La);return _.Y.dj(c?c.value:null,b)},Pn:function(a){a=_.Y.pi(a,"EXTINF").value.split(",");return{duration:Number(a[0]),title:a[1]||null}},hj:function(a,b){function c(f){return null==f?null:Number(f)}b=void 0===b?{}:b;var d={vh:!1,ak:!1,bk:null,sm:null,ij:null},e=_.Y.cb(a,$a,{required:b.oj});if(!e)return d;d.vh="YES"===_.S(e,"CAN-BLOCK-RELOAD");d.ak="YES"===_.S(e,"CAN-SKIP-DATERANGES");d.bk=c(_.S(e,"CAN-SKIP-UNTIL"));d.sm=c(_.S(e,"HOLD-BACK"));d.ij=c(_.S(e,"PART-HOLD-BACK",
471
+ void 0,{required:b.oj}));return d},ej:function(a,b,c){c=void 0===c?!1:c;a=_.S(a,"BYTERANGE");return _.Y.dj(a,b,c)},Tn:function(a){var b=_.Y.ac(a,_.Ua),c=_.Y.ac(a,_.ab);a=_.Y.ac(a,"EXT-X-IMAGE-STREAM-INF");return{Qc:{qh:_.Y.ig(b,[_.ja,_.jc]),closedCaptions:_.Y.ig(b,_.ta),Do:_.Y.ig(b,_.Tb)},He:c,mg:a}},zl:function(a,b){var c=_.Y.fj(a.$,null);return new _.Oj(0,0,0,function(){return[a.a]},c.Da,c.pa,0,b)},jm:function(a){var b=a.S;a=b[0].startTime;b=b[b.length-1].endTime;return{rc:a,kf:b,duration:b-a}},
472
+ gm:function(a){var b=Infinity,c=Infinity;_.Y.Vj(a).forEach(function(d){d=_.Y.jm(d);b=Math.min(b,d.rc);c=Math.min(c,d.duration)});return{rc:b,duration:c}},zi:function(a){return a.type===_.dd||a.type===_.r},Kl:function(a){return a.filter(_.Y.zi)},em:function(a){return a.map(function(b){return _.Y.gm(b).duration}).reduce(function(b,c){return b+c},0)},Zl:function(a,b){return a&&b?_.tq(a.drmInfos,b.drmInfos)?_.sq(a.drmInfos,b.drmInfos):null:a?a.drmInfos:b?b.drmInfos:null},Bl:function(a,b){return(b?b.ec():
473
+ "")+" - "+(a?a.ec():"")},Th:function(a){return(a.video?a.video.Ac:"")+" - "+(a.audio?a.audio.Ac:"")},Sn:function(a,b,c,d,e){if(b===_.kc)return{delay:0,Fe:0};b=_.Y.cb(a,Wa);if(c&&b)return e=Number(_.Lj(b,"PART-TARGET")),null!=d?{delay:d,Fe:e}:{delay:_.Y.hj(a,{oj:!0}).ij,Fe:e};a=_.Y.pi(a,bb);a=Number(a.value);e=e||a;return null!=d?{delay:d,Fe:e}:{delay:3*a,Fe:e}},Ye:function(a,b){return a+":"+b},Ho:function(a){var b=_.Y.Ye,c=new Map;a.forEach(function(d){var e=b(d.a(),d.f());c.has(e)?(e=c.get(e),e.includes(d)||
474
+ e.push(d)):c.set(e,[d])});return c},ki:function(a){return _.Pj(a||_.Og)},Ln:function(a){var b=new Map;a=_.w(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=_.S(c,_.qb);d=_.Y.ki(d);var e=_.Lj(c,_.gb);c=_.Lj(c,"INSTREAM-ID");b.has(e)||b.set(e,new Map);b.get(e).set(c,d)}return b},Fl:function(a){return a.filter(function(b){return"mp4a.40.34"!==b})},Vn:function(a){if(!a.hasAttribute("FRAME-RATE")&&!a.hasAttribute(_.Rb))return null;var b=_.S(a,"FRAME-RATE");a=_.S(a,_.Rb);var c=_.w(a?a.split("x"):
475
+ [null,null]);a=c.next().value;c=c.next().value;return{frameRate:Sj(b),width:Sj(a),height:Sj(c)}},Em:function(a){return a.name!==_.Ua?!0:_.S(a,_.ac)===_.Tb},Mn:function(a,b,c,d){var e=_.S(a,"ID"),f=_.S(a,"START-DATE");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=Sj(_.S(a,_.Ja));void 0!==c&&0<=c&&(e.duration=
476
+ c);d=Sj(_.S(a,"PLANNED-DURATION"));void 0!==d&&0<=d&&(e.plannedDuration=d);var h=_.S(a,"CLASS");null!==h&&(e.schemeIdUri=h);var l=_.S(a,"END-DATE");l=l?new Date(l):null;null!==l&&l.getTime()>=g.getTime()&&(e.endDate=l);g=_.Y.Kn(a)||{};var m=_.S(a,"CUE");m&&(g.CUE=m.split(","));if(h===Td){h=_.Y.Qn(a);if(null===h)return _.Y.g.warn("Invalid interstitial attributes, ignoring the EXT-X-DATERANGE tag.",a),null;g=Object.assign(g,h)}_.N.Lc(g)&&(e.customAttributes=g);e.endTime=l?l.getTime()/1E3+b:c?f+c:d?
477
+ f+d:f;e.type=_.Qi;return e},Kn: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 _.N.Lc(a)?a:null},Qn: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 rc:a[rc]=c.value;break;case qc:a[qc]=c.value;break;case uc:a[uc]=Sj(c.value);break;case sc:a[sc]=Sj(c.value);break;case "X-SNAP":a["X-SNAP"]=
478
+ c.value.split(",");break;case tc:a[tc]=c.value.split(",")}return a[rc]&&a[qc]||!a[rc]&&!a[qc]?(_.Y.g.warn("Invalid EXT-X-DATERANGE Interstitial attributes X-ASSET-URI, X-ASSET-LIST"),null):_.N.Lc(a)?a:null},bi:function(a,b){if(!a)return null;var c=a.Ac;return b.find(function(d){return d.ec()===c})||null},gi:function(a){return(a=_.S(a,"CHANNELS"))?parseInt(a.split("/")[0],10):null}};_.Y.g=new _.K("clpp.hls.Utils");_.tw=new Set([_.Qa,Ra,"EXT-X-I-FRAMES-ONLY",_.Va,Wa,Xa,$a,bb]);_.uw=new Set(["EXTINF",La,_.Pa,_.Sa,_.Ta,_.Za]);_.vw=new Set(["EXT-X-PART",_.Ya]);_.ww=new Set([_.Oa]);_.xw=new Set([_.Na]);var ck=function yw(a){var c;return _.Rh(yw,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",Zj);Zj.toArrayBuffer=jk;Zj.toDataView=_.ik;Zj.toInt32Array=_.hk;Zj.toUint32Array=gk;Zj.toUint16Array=fk;Zj.toUint8Array=_.bk;Zj.equal=dk;_.T={};_.T.Ca=new _.K("clpp.utils.strings");_.T.Jj=16E3;_.T.fromCharCode=function(a){for(var b=_.T.Jj,c="",d=0;d<a.length;d+=b)c+=String.fromCharCode.apply(null,a.subarray(d,d+b));return c};_.T.ea=function(a){if(!a)return"";a=_.bk(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(cb);return a}a=escape(_.T.fromCharCode(a));try{return decodeURIComponent(a)}catch(b){throw Error(cb);}};
479
479
  _.J("clpp.utils.strings.fromUtf8",_.T.ea);
480
480
  _.T.Jc=function(a,b,c){if(!a)return"";var d=_.T.Ca;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=_.bk(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(_.bk(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 _.T.fromCharCode(c)};
481
481
  _.T.ce=function(a,b){if(_.N.ha(a))return a;var c="",d=!!b,e=_.bk(a);239===e[0]&&187===e[1]&&191===e[2]?c=_.T.ea(e):254===e[0]&&255===e[1]?c=_.T.Jc(e.subarray(2),!1):255===e[0]&&254===e[1]&&(c=_.T.Jc(e.subarray(2),!0));var f=function(g,h){return g.byteLength<=h||32<=g[h]&&126>=g[h]}.bind(null,e);_.T.Ca.debug("Unable to find byte-order-mark, making an educated guess.");0===e[0]&&0===e[2]?c=_.T.Jc(a,!1):0===e[1]&&0===e[3]?c=_.T.Jc(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.T.ea(a));if(c)return d&&(c=escape(c)),
482
482
  c;throw Error("Unable to detect text encoding");};_.J("clpp.utils.strings.fromBytesAutoDetect",_.T.ce);_.T.ib=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",_.T.ib);_.T.Ff=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};
483
483
  _.J("clpp.utils.strings.toUtf16",_.T.Ff);_.T.Ed=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=gk(e):2===c?f=fk(e):f=_.bk(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};_.J("clpp.utils.strings.toByteArray",_.T.Ed);_.T.startsWith=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.J("clpp.utils.strings.startsWith",_.T.startsWith);
484
- _.T.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",_.T.endsWith);_.T.qf=function(a){return!!(a&&0<a.length)};_.T.empty=function(a){return!a||0===a.length};_.T.lp=function(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()};_.T.op=function(a){return a.replace(/-(\w)/g,function(b,c){return c.toUpperCase()})};
484
+ _.T.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",_.T.endsWith);_.T.qf=function(a){return!!(a&&0<a.length)};_.T.empty=function(a){return!a||0===a.length};_.T.kp=function(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()};_.T.np=function(a){return a.replace(/-(\w)/g,function(b,c){return c.toUpperCase()})};
485
485
  _.T.Vf=function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.N.isNaN(b))return"";a="bps";1E3<=Math.abs(b)&&(a="Kbps",b/=1E3);1E3<=Math.abs(b)&&(a="Mbps",b/=1E3);return b.toFixed(2).replace(/[.,]00$/,"")+a}catch(c){return""}};_.J("clpp.utils.strings.bitrateToString",_.T.Vf);
486
- _.T.Hl=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",_.T.Hl);
487
- _.T.Jl=function(a,b){for(var c in b)if(b[c]===a)return c;return""};_.T.rm=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",_.T.rm);_.T.Lo=function(a){_.T.uj.innerHTML=a;return _.T.uj.textContent};_.T.uj=document.createElement("span");_.T.Ug=function(a){a=a.replace(/<[^>]+>/gi,"");a=_.T.Lo(a);return a=a.replace(/<[^>]+>/gi,"")};_.T.Pi=function(a){return a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")};var kk=[403,401];_.J("clpp.net.DEFAULT_FATAL_STATUS_CODES",kk);_.J("clpp.net.makeRequest",_.pk);_.ok=6;_.J("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.ok,CONTENT_STEERING:7});_.xk.prototype.resolve=function(){};_.xk.prototype.reject=function(){};_.yk.prototype.abort=function(){this.a=!0;return this.A()};_.Ak.prototype.destroy=function(){for(var a=[],b=_.w(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.T["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.u=_.Kk.prototype;_.u.zo=function(a){0<a?_.Yh("Rate limit set to "+a+"bps"):_.Yh("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.Sf=function(a){this.f.push(a)};_.u.fd=function(a){this.h.push(a)};_.u.Mg=function(a){this.f=this.f.filter(function(b){return b!==a})};_.u.ze=function(a){this.h=this.h.filter(function(b){return b!==a})};
486
+ _.T.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",_.T.Gl);
487
+ _.T.Il=function(a,b){for(var c in b)if(b[c]===a)return c;return""};_.T.qm=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",_.T.qm);_.T.Ko=function(a){_.T.tj.innerHTML=a;return _.T.tj.textContent};_.T.tj=document.createElement("span");_.T.Ug=function(a){a=a.replace(/<[^>]+>/gi,"");a=_.T.Ko(a);return a=a.replace(/<[^>]+>/gi,"")};_.T.Pi=function(a){return a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")};var kk=[403,401];_.J("clpp.net.DEFAULT_FATAL_STATUS_CODES",kk);_.J("clpp.net.makeRequest",_.pk);_.ok=6;_.J("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.ok,CONTENT_STEERING:7});_.xk.prototype.resolve=function(){};_.xk.prototype.reject=function(){};_.yk.prototype.abort=function(){this.a=!0;return this.A()};_.Ak.prototype.destroy=function(){for(var a=[],b=_.w(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.T["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.u=_.Kk.prototype;_.u.yo=function(a){0<a?_.Yh("Rate limit set to "+a+"bps"):_.Yh("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.Sf=function(a){this.f.push(a)};_.u.fd=function(a){this.h.push(a)};_.u.Mg=function(a){this.f=this.f.filter(function(b){return b!==a})};_.u.ze=function(a){this.h=this.h.filter(function(b){return b!==a})};
488
488
  _.u.fetch=function(a){var b=this;if(this.w)return new wv(Promise.reject(new _.O(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;Ok(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=
489
489
  d.next())c.push(e.value);a.responseModifiers=c;d=c=new _.xk;try{var f={},g=_.w(a.requestModifiers);for(e=g.next();!e.done;f={Lf:f.Lf},e=g.next())f.Lf=e.value,d=d.then(function(n){return function(p){if(h.a)throw new _.O(_.P,1,7001,p?{url:p.uris[p.uriIndex],request:p}:null);return n.Lf(p)||p}}(f))["catch"](function(n){if(n instanceof _.O)throw n;throw new _.O(_.P,1,1006,null,n);});d=d.then(function(n){return{request:n,plugin:Pk(b,n)}});var h=new wv(d);g={};var l=_.w(a.responseModifiers);for(e=l.next();!e.done;g=
490
490
  {Me:g.Me},e=l.next())g.Me=e.value,h.then(function(n){return function(p){function q(){if(h.a)throw new _.O(_.P,1,7001,p?{url:p.request.uris[p.request.uriIndex],request:p.request}:null);}q();var t=n.Me(p)||p;q();return t}}(g))["catch"](function(n){return function(p){if(p instanceof _.O&&p.data&&p.data.response){var q=n.Me(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 _.O)throw n;throw new _.O(_.P,
491
491
  1,1007,null,n);});l={};var m=_.w(this.j);for(e=m.next();!e.done;l={Mf:l.Mf},e=m.next())l.Mf=e.value,h["catch"](function(n){return function(p){p instanceof _.O&&p.data&&p.data.response||n.Mf({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 _.O)throw n;throw new _.O(_.P,1,1007,null,n);});_.Bk(this.o,h);c.resolve(a);return h}catch(n){return new wv(Promise.reject(n))}};
492
- _.J("clpp.net.NetworkEngine",_.Kk);_.Kk.prototype.fetch=_.Kk.prototype.fetch;_.Kk.prototype.removeResponseModifier=_.Kk.prototype.ze;_.Kk.prototype.removeRequestModifier=_.Kk.prototype.Mg;_.Kk.prototype.addResponseModifier=_.Kk.prototype.fd;_.Kk.prototype.addRequestModifier=_.Kk.prototype.Sf;_.Kk.prototype.setRateLimit=_.Kk.prototype.zo;var Uk;_.Qk.prototype.qa=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&&Yi(this.roles,a.roles)&&Yi(this.accessibility,a.accessibility,Yk)};_.Qk.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.J("clpp.Track",_.Qk);
492
+ _.J("clpp.net.NetworkEngine",_.Kk);_.Kk.prototype.fetch=_.Kk.prototype.fetch;_.Kk.prototype.removeResponseModifier=_.Kk.prototype.ze;_.Kk.prototype.removeRequestModifier=_.Kk.prototype.Mg;_.Kk.prototype.addResponseModifier=_.Kk.prototype.fd;_.Kk.prototype.addRequestModifier=_.Kk.prototype.Sf;_.Kk.prototype.setRateLimit=_.Kk.prototype.yo;var Uk;_.Qk.prototype.qa=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&&Yi(this.roles,a.roles)&&Yi(this.accessibility,a.accessibility,Yk)};_.Qk.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.J("clpp.Track",_.Qk);
493
493
  _.Qk.prototype.toString=_.Qk.prototype.toString;_.J("clpp.Rendition",_.Zk);_.Wk=1;_.Tk=_.r;_.V=_.dd;_.Sk="text";Uk=_.$e;_.zw={VIDEO:_.Tk,AUDIO:_.V,TEXT:_.Sk,METADATA:Uk};_.Qk.Type=_.zw;_.J("clpp.utils.url.queryString",_.bl);fl.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,ll(c,a),4);case 4:d=n.f;_.Jh(n,3);break;case 2:return e=_.H(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,il(c,d,a),8);case 8:g=n.f,f.renditions=g.renditions,f.mimeType=g.mimeType;case 7:_.Jh(n,6);break;case 5:h=_.H(n),c.g.warn("Failed to parse video metadata from HLS playlist.",
494
- h.message);case 6:return _.D(n,9),_.y(n,kl(d),11);case 11:l=n.f;f.Qc=l;_.Jh(n,10);break;case 9:m=_.H(n),c.g.warn("Failed to parse metadata from HLS playlist.",m.message);case 10:return n["return"](f)}})};_.rl=[];_.u=_.ul.prototype;_.u.Yf=function(){return!0};_.u.Sl=function(a){return this.getVideoTracks().find(function(b){return _.N.qa(b,a,a&&Object.keys(a))})};_.u.Ol=function(a){return this.getAudioTracks().find(function(b){return _.N.qa(b,a,a&&Object.keys(a))})};_.u.Ql=function(a){return this.ma().find(function(b){return _.N.qa(b,a,a&&Object.keys(a))})};_.u.Rl=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.N.qa(b,a,a&&Object.keys(a))})};
495
- _.u.Nl=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.N.qa(b,a,a&&Object.keys(a))})};_.u.Pl=function(a){return this.ma().flatMap(function(b){return b.renditions}).find(function(b){return _.N.qa(b,a,a&&Object.keys(a))})};_.J("clpp.TrackManager",_.ul);_.ul.prototype.isAbrEnabled=_.ul.prototype.wa;_.ul.prototype.addTextTrack=_.ul.prototype.addTextTrack;_.ul.prototype.findTextRendition=_.ul.prototype.Pl;_.ul.prototype.findAudioRendition=_.ul.prototype.Nl;
496
- _.ul.prototype.findVideoRendition=_.ul.prototype.Rl;_.ul.prototype.findTextTrack=_.ul.prototype.Ql;_.ul.prototype.findAudioTrack=_.ul.prototype.Ol;_.ul.prototype.findVideoTrack=_.ul.prototype.Sl;_.ul.prototype.setTextRendition=_.ul.prototype.Ib;_.ul.prototype.setAudioRendition=_.ul.prototype.Hb;_.ul.prototype.setVideoRendition=_.ul.prototype.ub;_.ul.prototype.setTextTrack=_.ul.prototype.$a;_.ul.prototype.setAudioTrack=_.ul.prototype.Ka;_.ul.prototype.setVideoTrack=_.ul.prototype.Jb;
494
+ h.message);case 6:return _.D(n,9),_.y(n,kl(d),11);case 11:l=n.f;f.Qc=l;_.Jh(n,10);break;case 9:m=_.H(n),c.g.warn("Failed to parse metadata from HLS playlist.",m.message);case 10:return n["return"](f)}})};_.rl=[];_.u=_.ul.prototype;_.u.Yf=function(){return!0};_.u.Rl=function(a){return this.getVideoTracks().find(function(b){return _.N.qa(b,a,a&&Object.keys(a))})};_.u.Nl=function(a){return this.getAudioTracks().find(function(b){return _.N.qa(b,a,a&&Object.keys(a))})};_.u.Pl=function(a){return this.ma().find(function(b){return _.N.qa(b,a,a&&Object.keys(a))})};_.u.Ql=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.N.qa(b,a,a&&Object.keys(a))})};
495
+ _.u.Ml=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.N.qa(b,a,a&&Object.keys(a))})};_.u.Ol=function(a){return this.ma().flatMap(function(b){return b.renditions}).find(function(b){return _.N.qa(b,a,a&&Object.keys(a))})};_.J("clpp.TrackManager",_.ul);_.ul.prototype.isAbrEnabled=_.ul.prototype.wa;_.ul.prototype.addTextTrack=_.ul.prototype.addTextTrack;_.ul.prototype.findTextRendition=_.ul.prototype.Ol;_.ul.prototype.findAudioRendition=_.ul.prototype.Ml;
496
+ _.ul.prototype.findVideoRendition=_.ul.prototype.Ql;_.ul.prototype.findTextTrack=_.ul.prototype.Pl;_.ul.prototype.findAudioTrack=_.ul.prototype.Nl;_.ul.prototype.findVideoTrack=_.ul.prototype.Rl;_.ul.prototype.setTextRendition=_.ul.prototype.Ib;_.ul.prototype.setAudioRendition=_.ul.prototype.Hb;_.ul.prototype.setVideoRendition=_.ul.prototype.ub;_.ul.prototype.setTextTrack=_.ul.prototype.$a;_.ul.prototype.setAudioTrack=_.ul.prototype.Ka;_.ul.prototype.setVideoTrack=_.ul.prototype.Jb;
497
497
  _.ul.prototype.getTextTrack=_.ul.prototype.Ba;_.ul.prototype.getAudioTrack=_.ul.prototype.ra;_.ul.prototype.getVideoTrack=_.ul.prototype.Na;_.ul.prototype.getLoadingTextRendition=_.ul.prototype.Ob;_.ul.prototype.getLoadingAudioRendition=_.ul.prototype.Nb;_.ul.prototype.getLoadingVideoRendition=_.ul.prototype.Bb;_.ul.prototype.getTextRendition=_.ul.prototype.Za;_.ul.prototype.getAudioRendition=_.ul.prototype.Va;_.ul.prototype.getVideoRendition=_.ul.prototype.na;_.ul.prototype.getTextTracks=_.ul.prototype.ma;
498
498
  _.ul.prototype.getAudioTracks=_.ul.prototype.getAudioTracks;_.ul.prototype.getVideoTracks=_.ul.prototype.getVideoTracks;_.ul.prototype.canSelectVideoTracks=_.ul.prototype.Yf;var wl=new Map,vl=1,Al=2,zl=3,yl=4;_.Aw=(new Map).set(_.Od,_.Od).set("frameRate","framerate").set("bandwidth","bitrate").set(_.mh,_.mh).set(_.Fe,_.Fe).set("channelsCount","channels");_.J(Nd,Fl);Fl.getInfo=_.Hk;
499
499
  var Pl=null,Ol=null,Rl=new _.K(Nd),Yl="android",Xl="ios",cm="linux",Zl="osx",$l="windows",am="tizen",bm="webos",Wl=_.Pg,fm=_.Pg,em={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,
@@ -505,30 +505,30 @@ a)}));n.kind&&"captions"===n.kind&&(n.mimeType=_.Wc);q&&(n.src=q.url,n.mimeType=
505
505
  5):M.F(5)}if(2!=M.a)return c.g.debug(a+" Track added",n),c.m.trigger(new _.L(_.Ig)),A=rm(c,a).length,E=!(!l||!l.length),G=l&&l.length||0,B=function(){c.g.debug(Xb+a+" track active. Native track active: "+(p+". Number of tracks: ")+A,d);c.a.set(a,n)},p?B():1===A&&h&&(f?B():E&&1!==G||B()),_.Jh(M,0);F=_.H(M);c.g.error("Error while converting track data",F);_.C(M)})};
506
506
  _.u.Eg=function(a,b){if(b){var c=b.track;if(!c)this.g.warn(Db);else if(a===_.Sk&&c.kind!==_.$e){var d=this.h.find(function(e){return um(e,c,a)});d&&(this.h.splice(this.h.indexOf(d),1),(this.a.get(a)||null)===d&&(this.a.set(a,null),ym(this)),this.g.debug(a+" Track removed, id: ",d.id))}}else this.g.warn(zb)};
507
507
  _.u.Dg=function(a,b){this.g.debug(a+" Track changed",b);a===_.Sk&&ym(this);var c=qm(this,a);if(c)for(var d={Zc:0};d.Zc<c.length;d={Zc:d.Zc},++d.Zc)if(wm(c[d.Zc])){if(d=this.h.find(function(e){return function(f){return um(f,c[e.Zc],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===_.V?this.m.trigger(new _.L(_.kd)):a===_.Sk&&this.m.trigger(new _.L(_.Cg));break}};_.u.initialize=function(a){this.m=a;this.j=new fl(a.getNetworkEngine())};
508
- _.u.load=function(){this.A=!1;var a=pm(this,_.Sk);a&&(this.f.on(a,_.Qc,this.J),this.f.on(a,ag,this.L),this.f.on(a,Ad,this.K));if(a=pm(this,_.V))this.f.on(a,_.Qc,this.G),this.f.on(a,ag,this.I),this.f.on(a,Ad,this.H);if(a=pm(this,_.Tk))this.f.on(a,_.Qc,this.M),this.f.on(a,ag,this.U),this.f.on(a,Ad,this.P);this.f.one(this.m,sd,this.cl.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};
508
+ _.u.load=function(){this.A=!1;var a=pm(this,_.Sk);a&&(this.f.on(a,_.Qc,this.J),this.f.on(a,ag,this.L),this.f.on(a,Ad,this.K));if(a=pm(this,_.V))this.f.on(a,_.Qc,this.G),this.f.on(a,ag,this.I),this.f.on(a,Ad,this.H);if(a=pm(this,_.Tk))this.f.on(a,_.Qc,this.M),this.f.on(a,ag,this.U),this.f.on(a,Ad,this.P);this.f.one(this.m,sd,this.bl.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};
509
509
  _.u.getVideoTracks=function(){return rm(this,_.Tk)};_.u.getAudioTracks=function(){return rm(this,_.V)};_.u.ma=function(){return rm(this,_.Sk)};_.u.na=function(){var a=this,b=this.a.get(_.Tk)||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.Va=function(){return sm(this,_.V)};_.u.Za=function(){return sm(this,_.Sk)};_.u.Bb=function(){return tm(this,_.Tk)};
510
510
  _.u.Nb=function(){return tm(this,_.V)};_.u.Ob=function(){return tm(this,_.Sk)};_.u.Na=function(){return this.a.get(_.Tk)||null};_.u.ra=function(){return this.a.get(_.V)||null};_.u.Ba=function(){return this.a.get(_.Sk)||null};_.u.Jb=function(a){vm(this,_.Tk,a)};_.u.Ka=function(a){vm(this,_.V,a)};_.u.$a=function(a){vm(this,_.Sk,a)};_.u.ub=function(a){vm(this,_.Tk,a&&a.track)};_.u.Hb=function(a){vm(this,_.V,a&&a.track)};_.u.Ib=function(a){vm(this,_.Sk,a&&a.track)};
511
511
  _.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,hm(b,a,c),d.F(0)):_.y(d,im(b,a),0)})};_.u.wa=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};
512
- _.u.cl=function(){var a=this,b,c,d;return _.I(function(e){if(1==e.a){b=a.m.getConfiguration();xm(a,_.V,b.preferredAudioLanguage);c=qm(a,_.Sk);if(c.some(function(f){return wm(f)}))return e.F(2);d=pm(a,_.Sk);return _.y(e,new Promise(function(f){a.f.one(d,Ad,f);(new _.mi(f)).fa(1)}),2)}if(a.A)return e["return"]();xm(a,_.Sk,b.preferredTextLanguage);_.C(e)})};gm.prototype.isAbrEnabled=gm.prototype.wa;gm.prototype.addTextTrack=gm.prototype.addTextTrack;gm.prototype.setTextRendition=gm.prototype.Ib;
512
+ _.u.bl=function(){var a=this,b,c,d;return _.I(function(e){if(1==e.a){b=a.m.getConfiguration();xm(a,_.V,b.preferredAudioLanguage);c=qm(a,_.Sk);if(c.some(function(f){return wm(f)}))return e.F(2);d=pm(a,_.Sk);return _.y(e,new Promise(function(f){a.f.one(d,Ad,f);(new _.mi(f)).fa(1)}),2)}if(a.A)return e["return"]();xm(a,_.Sk,b.preferredTextLanguage);_.C(e)})};gm.prototype.isAbrEnabled=gm.prototype.wa;gm.prototype.addTextTrack=gm.prototype.addTextTrack;gm.prototype.setTextRendition=gm.prototype.Ib;
513
513
  gm.prototype.setAudioRendition=gm.prototype.Hb;gm.prototype.setVideoRendition=gm.prototype.ub;gm.prototype.setTextTrack=gm.prototype.$a;gm.prototype.setAudioTrack=gm.prototype.Ka;gm.prototype.setVideoTrack=gm.prototype.Jb;gm.prototype.getTextTrack=gm.prototype.Ba;gm.prototype.getAudioTrack=gm.prototype.ra;gm.prototype.getVideoTrack=gm.prototype.Na;gm.prototype.getLoadingTextRendition=gm.prototype.Ob;gm.prototype.getLoadingAudioRendition=gm.prototype.Nb;gm.prototype.getLoadingVideoRendition=gm.prototype.Bb;
514
514
  gm.prototype.getTextRendition=gm.prototype.Za;gm.prototype.getAudioRendition=gm.prototype.Va;gm.prototype.getVideoRendition=gm.prototype.na;gm.prototype.getTextTracks=gm.prototype.ma;gm.prototype.getAudioTracks=gm.prototype.getAudioTracks;gm.prototype.getVideoTracks=gm.prototype.getVideoTracks;gm.prototype.canSelectVideoTracks=gm.prototype.Yf;_.u=_.zm.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(bc);};_.u.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(bc);};_.u.Ua=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.la=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
515
515
  _.u.Tb=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};
516
516
  _.u.Ga=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.la();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",_.zm);_.zm.prototype.bufferedAheadOf=_.zm.prototype.Ga;
517
517
  _.zm.prototype.isBuffered=_.zm.prototype.Tb;_.zm.prototype.bufferEnd=_.zm.prototype.la;_.zm.prototype.bufferStart=_.zm.prototype.Ua;_.zm.prototype.end=_.zm.prototype.end;_.zm.prototype.start=_.zm.prototype.start;_.u=_.Am.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.ae.on(a,b,c)};_.u.one=function(a,b,c){return this.ae.one(a,b,c)};_.u.off=function(a,b){return this.ae.off(a,b)};_.u.forwardEventsTo=function(a){a&&(0<=this.Yd.indexOf(a)||this.Yd.push(a))};_.u.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};
518
- _.u.stopForwardingEventsTo=function(a){a&&(a=this.Yd.indexOf(a),0<=a&&this.Yd.splice(a,1))};_.u.trigger=function(a){this.ae.trigger(a);for(var b=_.w(this.Yd),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.Am.prototype.off=_.Am.prototype.off;_.Am.prototype.one=_.Am.prototype.one;_.Am.prototype.on=_.Am.prototype.on;_.Am.prototype.removeEventListener=_.Am.prototype.removeEventListener;_.Am.prototype.addEventListener=_.Am.prototype.addEventListener;var Bm=["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",_.ia);_.J("clpp.name",_.xa);_.mm="application/x-mpegurl";_.J("clpp.Type",{DASH:_.Xc,HLS:_.mm,SMOOTH_STREAMING:_.bd,MP4:_.$g,MP3:"audio/mp3"});_.Ri="scte35";_.Qi="hls-daterange";_.J("clpp.TimelineCueType",{SCTE35:_.Ri,DASH_CALLBACK:_.ef,HLS_DATERANGE:_.Qi,UNKNOWN:_.Pg});_.J("clpp.SpeedUpMode",{DECODER:_.ce,SEEK:"seek"});_.J("clpp.CodecSwitchingStrategy",{PREVENT:_.Uf,SMOOTH:_.og});_.J("clpp.utils.PlayerConfiguration",Dm);Dm.create=_.Jm;var Bw=["abort",rd,sd,ve,"emptied",xe,_.ze,_.Ae,"interruptbegin","interruptend",_.Te,_.Ue,Ve,"mozaudioavailable",_.sf,_.wf,_.Lf,_.Wf,_.Yf,_.ig,_.jg,pg,"suspend",_.Hg,"volumechange",_.fh,_.gh,_.cg,lh,kh,ih,jh];_.x(_.Lm,_.Am);_.u=_.Lm.prototype;_.u.init=function(a,b){this.configuration=this.kb=b;this.G=a;this.log.info("Initializing Player surface");var c=this.G.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.P.on(c,e,this.Ej,e!==_.Ae);this.Od||(this.Od=this.Uh());this.Od.initialize(this);this.G.showMediaElement()};_.u.release=function(){this.U&&(this.U.destroy(),this.U=null);return Promise.resolve()};
518
+ _.u.stopForwardingEventsTo=function(a){a&&(a=this.Yd.indexOf(a),0<=a&&this.Yd.splice(a,1))};_.u.trigger=function(a){this.ae.trigger(a);for(var b=_.w(this.Yd),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.Am.prototype.off=_.Am.prototype.off;_.Am.prototype.one=_.Am.prototype.one;_.Am.prototype.on=_.Am.prototype.on;_.Am.prototype.removeEventListener=_.Am.prototype.removeEventListener;_.Am.prototype.addEventListener=_.Am.prototype.addEventListener;var Bm=["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",_.ia);_.J("clpp.name",_.xa);_.mm="application/x-mpegurl";_.J("clpp.Type",{DASH:_.Xc,HLS:_.mm,SMOOTH_STREAMING:_.bd,MP4:_.$g,MP3:"audio/mp3"});_.Ri="scte35";_.Qi="hls-daterange";_.J("clpp.TimelineCueType",{SCTE35:_.Ri,DASH_CALLBACK:_.ef,HLS_DATERANGE:_.Qi,UNKNOWN:_.Pg});_.J("clpp.SpeedUpMode",{DECODER:_.ce,SEEK:"seek"});_.J("clpp.CodecSwitchingStrategy",{PREVENT:_.Uf,SMOOTH:_.og});_.J("clpp.utils.PlayerConfiguration",Dm);Dm.create=_.Jm;var Bw=["abort",rd,sd,ve,"emptied",xe,_.ze,_.Ae,"interruptbegin","interruptend",_.Te,_.Ue,Ve,"mozaudioavailable",_.sf,_.wf,_.Lf,_.Wf,_.Yf,_.ig,_.jg,pg,"suspend",_.Hg,"volumechange",_.fh,_.gh,_.cg,lh,kh,ih,jh];_.x(_.Lm,_.Am);_.u=_.Lm.prototype;_.u.init=function(a,b){this.configuration=this.kb=b;this.G=a;this.log.info("Initializing Player surface");var c=this.G.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.P.on(c,e,this.Dj,e!==_.Ae);this.Od||(this.Od=this.Uh());this.Od.initialize(this);this.G.showMediaElement()};_.u.release=function(){this.U&&(this.U.destroy(),this.U=null);return Promise.resolve()};
519
519
  _.u.destroy=function(){this.P.release();return this.Jg.release()};_.u.canPlay=function(a,b){return _.fi[this.namespace()].canPlay(a,b)};_.u.getTimeline=function(){return null};_.u.setupPlaylist=function(){return Promise.reject(_.Fb)};_.u.appendLoad=function(){return Promise.reject(_.Fb)};_.u.seekWith=function(){return Promise.reject(_.Fb)};_.u.detach=function(){return Promise.resolve()};_.u.setSeekInterceptor=function(){};_.u.setPlaybackSessionId=function(){};_.u.getBandwidthEstimate=function(){return null};
520
520
  _.u.play=function(){var a=this;if(!this.ba)return Promise.reject("No sources specified yet. You need to load content before calling play.");var b=this.G.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||""};Cm(d)?(a.trigger(new _.L(_.ld)),a.log.warn(_.oa)):d.name===Gb&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
521
521
  _.u.pause=function(){var a=this;return this.ba?new Promise(function(b,c){var d=a.getState();if(d!==_.Mq&&d!==_.Oq&&d!==_.Vq&&d!==_.Uq)c(new _.O(_.P,7,3201,"The player state does not allow pause."));else if(a.G.getMedia().pause(),a.getState()===_.Vq)a.P.one(a,_.rg,function(){b()});else b()}):Promise.reject(new _.O(_.P,7,3201,"No sources specified yet. You need to load content before calling pause."))};_.u.isPaused=function(){return this.G.getMedia().paused};_.u.isEnded=function(){return this.G.getMedia().ended};
522
522
  _.u.getConfiguration=function(){return this.configuration};_.u.setDrmCustomDataModifier=function(a){this.td=a};_.u.setCdnErrorCallback=function(a){this.cd=a};_.u.vd=function(){return this.td};_.u.getSurface=function(){return this.G};_.u.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.zm(b?b.buffered:void 0,a)};_.u.getPosition=function(){return this.getMediaPosition()};
523
523
  _.u.getMediaPosition=function(){var a=this.G.getMedia();if(a)return a.currentTime;this.log.warn("No media element available, can not report current time!");return 0};
524
524
  _.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.G.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.P.one(d,_.Ue,m)}function l(n){var p=b.getMediaPosition(),
525
- q=.1>=Math.abs(a-p),t=.25<p-a,v=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,z=n.type===_.ig,A=n.type===_.Wf,E=n.type===_.Hg,G=A&&v;t=z||q&&G||E&&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:",E,"Progress:",A,"ReadyState:",v,"Progress Ready:",G);t?(b.Ng=!1,b.re=!1,b.P.off(d,_.ig,l),b.P.off(d,_.Hg,l),b.P.off(d,_.Wf,l),b.bj(),b.trigger(new _.L(_.Tg)),f()):A&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
525
+ q=.1>=Math.abs(a-p),t=.25<p-a,v=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,z=n.type===_.ig,A=n.type===_.Wf,E=n.type===_.Hg,G=A&&v;t=z||q&&G||E&&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:",E,"Progress:",A,"ReadyState:",v,"Progress Ready:",G);t?(b.Ng=!1,b.re=!1,b.P.off(d,_.ig,l),b.P.off(d,_.Hg,l),b.P.off(d,_.Wf,l),b.aj(),b.trigger(new _.L(_.Tg)),f()):A&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
526
526
  d.currentTime=a)}function m(){b.trigger(new _.L(_.Ug));b.P.on(d,_.ig,l);b.P.on(d,_.Hg,l);b.P.on(d,_.Wf,l);b.log.info("Seeking to "+a+". Delta "+e);b.Ng=!0;b.re=!0;d.currentTime=a}b.getState()===_.Hq?(b.log.debug("Player is in IDLE state. Postpone seek."),b.P.one(b,_.rg,function(){switch(b.getState()){case _.Mq:case _.Vq:case _.Uq:b.log.debug("Valid seek state reached.");h();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):h()})};
527
527
  _.u.getVolume=function(){var a=this.G.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.G.getMedia();b?_.N.xa(a)?0>a||1<a?this.log.warn(va+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(va+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.u.isMuted=function(){return this.G.getMedia().muted};
528
528
  _.u.setMuted=function(a){var b=this.G.getMedia();typeof a===_.nd&&(b.muted=a)};_.u.getDuration=function(){return this.getMediaDuration()};_.u.getMediaDuration=function(){return this.ba?this.G.getMedia().duration:-1};_.u.getTrackManager=function(){return this.Od};_.u.getPlaybackRate=function(){var a=this.G.getMedia();return a&&a.playbackRate||1};_.u.setPlaybackRate=function(a){var b=this.G.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.u.setSourceIndex=function(a){this.gf=a};_.u.getSourceIndex=function(){return this.gf};
529
529
  _.u.getLoadedSource=function(){return this.ba&&-1!==this.gf?this.ba[this.gf]:null};_.u.getPeriods=function(){return[]};_.u.getNetworkEngine=function(){return this.Jg};_.u.setNetworkEngine=function(a){this.Jg=a};_.u.setCmsdManager=function(a){this.Ig=a};_.u.getTextDisplayer=function(){return this.U};_.u.getTimelineCues=function(){return[]};_.u.getCueTimeline=function(){return null};_.u.resetAbr=function(){};
530
- _.u.io=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.Hg||a.type===_.Wf)this.ih.debug(d);else{var e="";switch(a.type){case _.Yf:e="Rate: "+this.getPlaybackRate();break;case ve:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.wf:case _.Lf:case "suspend":case _.fh:case pg:case _.jg:case _.ig:case _.Hg:case _.Wf:case rd:case sd:b=
531
- this.getBufferInfo().Ga(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.cg:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.ih.info(d)}a.type!==_.Ae&&this.trigger(new _.L(a.type,{detail:a}))};_.u.bj=function(){};var Om;Om=new _.K("clpp.Components");_.Mm=new Map;_.J("clpp.install",function(a){Wm(a)});_.J("clpp.uninstall",function(a){Xm(a)});_.J("clpp.utils.Uint8ArrayUtils",Ym);Ym.toStandardBase64=_.Zm;Ym.concat=_.en;Ym.equal=_.dn;Ym.toHex=_.cn;Ym.fromHex=_.bn;Ym.fromBase64=_.an;Ym.toBase64Url=_.$m;fn.prototype.release=function(){this.a=this.f=null};_.J("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.Ub,SW_SECURE_DECODE:_.Vb,HW_SECURE_CRYPTO:ib,HW_SECURE_DECODE:jb,HW_SECURE_ALL:hb});_.J("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.J("clpp.drm.KeySystem",{NONE:_.ff,CLEAR_KEY:_.qf,WIDEVINE:_.Xd,PLAYREADY:_.Vd,FAIRPLAY:_.Sd,PRIMETIME:_.Rd});_.jn={};_.J("clpp.drm.registerDrmEnvironment",_.kn);var nn={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,
530
+ _.u.ho=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.Hg||a.type===_.Wf)this.ih.debug(d);else{var e="";switch(a.type){case _.Yf:e="Rate: "+this.getPlaybackRate();break;case ve:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.wf:case _.Lf:case "suspend":case _.fh:case pg:case _.jg:case _.ig:case _.Hg:case _.Wf:case rd:case sd:b=
531
+ this.getBufferInfo().Ga(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.cg:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.ih.info(d)}a.type!==_.Ae&&this.trigger(new _.L(a.type,{detail:a}))};_.u.aj=function(){};var Om;Om=new _.K("clpp.Components");_.Mm=new Map;_.J("clpp.install",function(a){Wm(a)});_.J("clpp.uninstall",function(a){Xm(a)});_.J("clpp.utils.Uint8ArrayUtils",Ym);Ym.toStandardBase64=_.Zm;Ym.concat=_.en;Ym.equal=_.dn;Ym.toHex=_.cn;Ym.fromHex=_.bn;Ym.fromBase64=_.an;Ym.toBase64Url=_.$m;fn.prototype.release=function(){this.a=this.f=null};_.J("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.Ub,SW_SECURE_DECODE:_.Vb,HW_SECURE_CRYPTO:ib,HW_SECURE_DECODE:jb,HW_SECURE_ALL:hb});_.J("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.J("clpp.drm.KeySystem",{NONE:_.ff,CLEAR_KEY:_.qf,WIDEVINE:_.Xd,PLAYREADY:_.Vd,FAIRPLAY:_.Sd,PRIMETIME:_.Rd});_.jn={};_.J("clpp.drm.registerDrmEnvironment",_.kn);var nn={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,
532
532
  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,
533
533
  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,
534
534
  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,
@@ -561,8 +561,8 @@ _.u.Sd=function(){return Nw};Eo.prototype.createMediaKeys=function(){return Prom
561
561
  Fo.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.x(Jo,_.Am);_.u=Jo.prototype;_.u.ready=function(){_.ci("WebkitEmeManager.MediaKeySession.ready");Ho(this,"usable");this.a&&this.a.resolve();this.a=null};_.u.generateRequest=function(a,b){_.ci("WebkitEmeManager.MediaKeySession.generateRequest");return Lo(this,b,null)};_.u.load=function(a){_.ci(mc);return this.l===_.uf?Lo(this,null,a):Promise.reject(Error(Eb))};_.u.update=function(a){_.ci(mc);var b=new _.xk;Mo(this,b,a);return b};
562
562
  _.u.close=function(){_.ci("WebkitEmeManager.MediaKeySession.close");if(this.l!==_.uf){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=Ko(this,"cancelKeyRequest");try{this.j[a](this.h,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.u.remove=function(){_.ci("WebkitEmeManager.MediaKeySession.remove");return this.l!==_.uf?Promise.reject(Error(Eb)):this.close()};To.prototype.a=function(){return Nw};
563
563
  To.prototype.f=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};To.prototype.create=function(){return new Do};_.u=Uo.prototype;_.u.Ue=function(){};_.u.Td=function(a){_.ci("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.u.df=function(){return null};_.u.$b=function(){_.ci("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.u.Sd=function(){return Ow};Vo.prototype.a=function(){return Ow};Vo.prototype.f=function(){return!0};Vo.prototype.create=function(){return new Uo};_.J(Kd,Wo);var Yo=new _.K(Kd),Xo=[];Xo=[new Co,new Ao,new To,new Vo].filter(function(a){return a.f()});var Np="STANDARD",iq="APPLE",Nw="WEBKIT",Ow="NOP";Wo.Apis={STANDARD:Np,APPLE:iq,WEBKIT:Nw,NOP:Ow};_.u=_.$o.prototype;_.u.Ma=function(a,b){var c=this.Z(a,b);return 1!==c.length?null:c[0]};_.u.bc=_.th(2);_.u.Z=function(a,b){return Array.from(a.childNodes).filter(function(c){return c instanceof Element&&c.tagName===b})};_.u.Hc=_.th(4);_.u.getAttributeNS=function(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null};_.u.sa=function(a){return Array.from(a.childNodes).every(function(b){return b.nodeType===Node.TEXT_NODE||b.nodeType===Node.CDATA_SECTION_NODE})?a.textContent.trim():null};
564
- _.u.W=_.th(6);_.u.we=function(a,b){var c=new DOMParser,d=null;try{d=c.parseFromString(a,_.Bg)}catch(e){}if(!d)return null;c=d.documentElement;return b&&c.tagName!==b||0<d.getElementsByTagName("parsererror").length?null:c};_.u.af=_.th(8);_.u.nd=_.th(10);_.u.Af=_.th(12);_.u.removeChild=function(a,b){a.removeChild(b)};_.u.mf=_.th(14);_.u.lf=_.th(16);_.u.Bf=_.th(18);_.u.Ee=_.th(20);_.gp=new _.$o;_.Pw=new _.K("clpp.xml.Parser");_.Gm="dom";var cp;_.kp=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];cp=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.x(bp,ap);_.x(_.fp,ap);var mp=!!(performance&&performance.mark&&performance.measure),op=new _.K("clpp.perf");qp.prototype.j=function(a){if(1<a.version)_.Yh("Unrecognized PSSH version found!");else{var b=_.cn(_.Cn(a.reader,16)),c=[];if(0<a.version)for(var d=_.yn(a.reader),e=0;e<d;++e){var f=_.cn(_.Cn(a.reader,16));c.push(f)}d=_.yn(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.Wa()&&_.Yh("Mismatch between box size and data size!")}};_.u=_.up.prototype;_.u.destroy=function(){var a=this;return _.I(function(b){if(1==b.a){if(a.j)return _.y(b,a.Ea,0);a.j=!0;return _.y(b,wp(a),4)}a.Ea.resolve();return b.F(0)})};_.u.keySystem=function(){return this.a?_.aq(this.a.keySystem):""};_.u.getDrmInfo=function(){return this.a};_.u.aj=function(a){var b=this;return _.I(function(c){return b.H&&b.L===xp?c["return"]():!b.f.delayLicenseRequestUntilPlayed||b.C&&!b.C.paused||b.kb?_.y(c,oq(b,a),0):(b.ga.push(a),c.F(0))})};
565
- _.u.Wi=function(a){var b=this,c=a.target;this.g.info("Key status changed for session",c.sessionId);var d=this.h.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if(typeof h===_.ug){var l=h;h=g;g=l}if(hq(b.a.keySystem)&&16===h.byteLength&&_.Gl()){l=_.ik(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!==sg&&(d.loaded=!0);d&&d.sb&&d.sb.resolve();"expired"===g&&(e=!0);l=_.bk(h);var q=_.cn(l);"00"===q&&d&&d.keyId?q=d.keyId:
564
+ _.u.W=_.th(6);_.u.we=function(a,b){var c=new DOMParser,d=null;try{d=c.parseFromString(a,_.Bg)}catch(e){}if(!d)return null;c=d.documentElement;return b&&c.tagName!==b||0<d.getElementsByTagName("parsererror").length?null:c};_.u.af=_.th(8);_.u.nd=_.th(10);_.u.Af=_.th(12);_.u.removeChild=function(a,b){a.removeChild(b)};_.u.mf=_.th(14);_.u.lf=_.th(16);_.u.Bf=_.th(18);_.u.Ee=_.th(20);_.gp=new _.$o;_.Pw=new _.K("clpp.xml.Parser");_.Gm="dom";var cp;_.kp=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];cp=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.x(bp,ap);_.x(_.fp,ap);var mp=!!(performance&&performance.mark&&performance.measure),op=new _.K("clpp.perf");qp.prototype.j=function(a){if(1<a.version)_.Yh("Unrecognized PSSH version found!");else{var b=_.cn(_.Cn(a.reader,16)),c=[];if(0<a.version)for(var d=_.yn(a.reader),e=0;e<d;++e){var f=_.cn(_.Cn(a.reader,16));c.push(f)}d=_.yn(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.Wa()&&_.Yh("Mismatch between box size and data size!")}};_.u=_.up.prototype;_.u.destroy=function(){var a=this;return _.I(function(b){if(1==b.a){if(a.j)return _.y(b,a.Ea,0);a.j=!0;return _.y(b,wp(a),4)}a.Ea.resolve();return b.F(0)})};_.u.keySystem=function(){return this.a?_.aq(this.a.keySystem):""};_.u.getDrmInfo=function(){return this.a};_.u.$i=function(a){var b=this;return _.I(function(c){return b.H&&b.L===xp?c["return"]():!b.f.delayLicenseRequestUntilPlayed||b.C&&!b.C.paused||b.kb?_.y(c,oq(b,a),0):(b.ga.push(a),c.F(0))})};
565
+ _.u.Vi=function(a){var b=this,c=a.target;this.g.info("Key status changed for session",c.sessionId);var d=this.h.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if(typeof h===_.ug){var l=h;h=g;g=l}if(hq(b.a.keySystem)&&16===h.byteLength&&_.Gl()){l=_.ik(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!==sg&&(d.loaded=!0);d&&d.sb&&d.sb.resolve();"expired"===g&&(e=!0);l=_.bk(h);var q=_.cn(l);"00"===q&&d&&d.keyId?q=d.keyId:
566
566
  b.a.keySystem.startsWith(_.Sd)&&16!==l.byteLength&&(q=_.T.fromCharCode(l));(l=q||"")?b.g.info(pb+q+"': "+g):b.g.info("Key status global keys: "+g);b.o.set(l,g);d&&!d.keyId&&b.h.forEach(function(t,v){v===c||t.keyId!==q||t.loaded||(t.loaded=!0)})});d&&d.loaded&&d.wb.forEach(function(g){b.o.get(g)===sg&&(b.g.warn(pb+g+ea),b.o.set(g,_.rf))});for(a=0;a<this.a.initData.length;a++){var f=this.a.initData[a];f.keyId&&this.o.get(f.keyId)===sg&&_.dn(f.initData,d.initData)&&(this.g.warn(pb+f.keyId+ea),this.o.set(f.keyId,
567
567
  _.rf))}a=c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.zc&&(this.g.debug("Session has expired",c.sessionId),(a=this.h.get(c))&&a.qd&&a.qd.stop(),this.h["delete"](c),c.close()["catch"](function(){}));cq(this)&&(this.I.resolve(),1!==this.h.size||e?this.da.fa(.5):sp(this))};var xp=0,rp=3;_.vq=new Map;_.wq=new _.K("clpp.text");_.Fq.prototype.getStats=function(){return{width:this.A,height:this.j,streamBandwidth:this.w,decodedFrames:this.l,droppedFrames:this.o,corruptedFrames:this.C,estimatedBandwidth:this.h,loadLatency:this.B,playTime:Bq(this.a,_.Vq),pauseTime:Bq(this.a,_.Uq),bufferingTime:Bq(this.a,_.Mq),stateHistory:Cq(this.a),switchHistory:Eq(this.f)}};Kq.prototype.ab=function(a,b){this.m&&this.m.trigger(new _.L(a,{detail:b}))};Kq.prototype.getState=function(){return Nq(this,"")};Kq.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.m.namespace());this.a.release()};_.J("clpp.utils.media.detectType",Xq);var $q=new _.K("clpp.sources");_.x(ar,_.Lm);_.u=ar.prototype;_.u.init=function(a,b){_.Lm.prototype.init.call(this,a,b);this.j=new Kq(this);Rq(this.j,_.Hq)};_.u.namespace=function(){return Ld};
568
568
  _.u.unload=function(){var a=this,b;return _.I(function(c){if(a.ba){a.log.debug("Releasing player with source",a.ba);a.B&&(a.B.stop(),a.B=null);(b=a.getTrackManager())&&b.release();a.A&&(a.A.destroy(),a.A=null);a.U&&(a.U.destroy(),a.U=null);a.l&&a.l.release();a.o&&(a.o.destroy(),a.o=null);_.zi(a.h);a.f&&(a.f=new _.Fq);a.C=null;a.ba=null;a.H=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());if(a.w)throw new _.O(_.P,7,7E3);if(a.a){var d=a.a;a.h.off(d,_.Ae);a.h.off(d,_.cg);a.a=null}}_.C(c)})};
@@ -590,7 +590,7 @@ _.u.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(Dd):t
590
590
  _.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){_.ur(a,Dd)};_.u.show=function(a){a.classList.remove(Dd)};_.u.release=function(){this.j.release()};Dr.prototype.removeElementFromContainer=Dr.prototype.removeElementFromContainer;Dr.prototype.addElementToContainer=Dr.prototype.addElementToContainer;Dr.prototype.getCastElement=Dr.prototype.getCastElement;
591
591
  Dr.prototype.getContainer=Dr.prototype.getContainer;Dr.prototype.getMedia=Dr.prototype.getMedia;var Ar={disableContainer:!1,webOSStartupPatch:!0,crossorigin:"anonymous",containerEl:null},Br=1;_.u=Ir.prototype;_.u.getCurrentItem=function(){return this.f};_.u.bf=function(){return this.f?this.f.player:null};_.u.li=function(){return Array.from(this.l.values())};_.u.le=function(){return 0<this.l.size};_.u.play=function(a){return Kr(this,a,_.wf)};_.u.load=function(a){return Kr(this,a,_.Se)};_.u.release=function(){var a=this;return _.I(function(b){if(1==b.a)return _.y(b,Promise.all([as(a),a.f?$r(a,a.f):Promise.resolve()]),2);a.f=null;a.A=!1;Qr(a);_.C(b)})};
592
592
  _.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);os(a);_.C(b)})};_.u.isMuted=function(){return this.C};var is="preload",ks=_.We,Ur="primary",Tr="ad";_.x(vs,_.Am);_.u=vs.prototype;_.u.destroy=function(){var a=this;return _.I(function(b){Is(a);a.f=[];a.o=!1;a.j.setSeekInterceptor(null);return _.y(b,a.a.destroy(),0)})};_.u.Sb=function(){return this.o};_.u.setMuted=function(a){var b=this.a;(b.C=a)?(b.a.setMuted(!0),ns(b,!0)):(a=(a=b.getCurrentItem())?a.Oa:null,Sr(b,a,a?Tr:Ur))};_.u.isMuted=function(){return this.a.isMuted()};_.u.isLive=function(){var a=this.a.bf();return a?a.isLive():null};_.u.ab=function(a){this.j.trigger(a)};
593
- var Hs=0,Os=1,Qs=2,Rs=3,Us=4,Ws=5,Xs=6;_.u=Zs.prototype;_.u.load=function(){return Promise.resolve()};_.u.start=function(){return Promise.resolve()};_.u.kd=function(a,b,c){var d=a.getConfiguration();a=Object.assign({},{config:d,player:a,ob:b},d.ads.hls||{},{$n:c});this.a=new vs(a);ys(this.a)};_.u.setMuted=function(a){this.a&&this.a.setMuted(a)};_.u.isMuted=function(){return this.a?this.a.isMuted():!0};_.u.resume=function(){var a=ws(this.a);a&&a.play()};_.u.pause=function(){var a=ws(this.a);a&&a.pause()};_.u.skip=function(){};
593
+ var Hs=0,Os=1,Qs=2,Rs=3,Us=4,Ws=5,Xs=6;_.u=Zs.prototype;_.u.load=function(){return Promise.resolve()};_.u.start=function(){return Promise.resolve()};_.u.kd=function(a,b,c){var d=a.getConfiguration();a=Object.assign({},{config:d,player:a,ob:b},d.ads.hls||{},{Zn:c});this.a=new vs(a);ys(this.a)};_.u.setMuted=function(a){this.a&&this.a.setMuted(a)};_.u.isMuted=function(){return this.a?this.a.isMuted():!0};_.u.resume=function(){var a=ws(this.a);a&&a.play()};_.u.pause=function(){var a=ws(this.a);a&&a.pause()};_.u.skip=function(){};
594
594
  _.u.getVolume=function(){var a=ws(this.a);return a?a.getVolume()||0:0};_.u.setVolume=function(a){var b=ws(this.a);if(b)return b.setVolume(a)};_.u.getPosition=function(){var a=ws(this.a);return a?a.getPosition():-1};_.u.gd=function(){return!this.a.Sb()};_.u.Ec=function(){return this.a.destroy()};Zs.prototype.getPosition=Zs.prototype.getPosition;Zs.prototype.setVolume=Zs.prototype.setVolume;Zs.prototype.getVolume=Zs.prototype.getVolume;Zs.prototype.skip=Zs.prototype.skip;Zs.prototype.pause=Zs.prototype.pause;
595
595
  Zs.prototype.resume=Zs.prototype.resume;bt.prototype.release=function(){this.a.release();ft(this);this.m=null};var ht=[];var mt={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},Em="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";var Bt="vod",At="live";var Jt,Ht,It;Et.prototype.release=function(){this.a=null;this.f.ze(this.h)};_.Qw="maxSuggestedBitrateKbps";Jt={du:"duress",etp:_.Be,mb:_.Qw,rd:"responseDelay",rtt:"roundTripTime"};Ht={at:"availabilityTime",br:"encodedBitrateKbps",ht:"heldTime",n:"intermediaryIdentifier",nor:"nextObjectResponse",nrr:"nextRangeResponse",d:"objectDuration",ot:"objectType",su:"startup",st:"streamType",sf:"streamingFormat",v:Wg};It=new _.K("clpp.net.CmsdManager");_.x(X,_.Am);_.u=X.prototype;_.u.on=function(a,b,c){return _.Am.prototype.on.call(this,a,b,c)};_.u.one=function(a,b,c){return _.Am.prototype.one.call(this,a,b,c)};_.u.off=function(a,b){return _.Am.prototype.off.call(this,a,b)};_.u.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.L(_.Ae,{detail:a}))};_.u.ge=function(a){a=this.L[a];void 0===a&&(a=null);return a};_.u.getSurface=function(){return this.j};_.u.getConfiguration=function(){return _.N.nb(this.f)};
596
596
  _.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=Qt(this);return this.l["finally"](function(){$t(a);a.g.debug("Player released");a.l=null})};
@@ -602,30 +602,30 @@ _.u.getTrackManager=function(){return this.a&&this.a.getTrackManager()};_.u.getB
602
602
  _.u.seek=function(a){return this.getState()===_.Sq?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.Kc=function(){var a=this.a;return a&&a.Kc?a.Kc():null};_.u.getVolume=function(){return this.a?this.a.getVolume():null};_.u.setVolume=function(a){this.a&&this.a.setVolume(a)};
603
603
  _.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.h&&this.h instanceof Zs?this.h.isMuted():this.a&&this.a.isMuted()||!1};
604
604
  _.u.setMuted=function(a){this.a&&this.a.setMuted(a);this.h&&this.h instanceof Zs&&this.h.setMuted(a)};_.u.getNetworkEngine=function(){return this.J};_.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.si=function(){return Object.freeze(this.Ea)};_.u.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};
605
- _.u.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.u.getCueTimeline=function(){return this.a?this.a.getCueTimeline():null};_.u.resetAbr=function(){this.a&&this.a.resetAbr()};_.u.setDrmCustomDataModifier=function(a){this.td=a;Wt(this)};_.u.setCdnErrorCallback=function(a){this.M=a;this.a&&this.a.setCdnErrorCallback(this.M)};_.u.Ri=function(){this.fg=!0};_.J("clpp.Player",X);X.registerPlugin=_.cu;X.prototype.setCdnErrorCallback=X.prototype.setCdnErrorCallback;
606
- X.prototype.setDrmCustomDataModifier=X.prototype.setDrmCustomDataModifier;X.prototype.resetAbr=X.prototype.resetAbr;X.prototype.getTimelineCues=X.prototype.getTimelineCues;X.prototype.getLoadedSource=X.prototype.getLoadedSource;X.prototype.getSources=X.prototype.si;X.prototype.getStats=X.prototype.getStats;X.prototype.isLive=X.prototype.isLive;X.prototype.getTextDisplayer=X.prototype.getTextDisplayer;X.prototype.setNetworkEngine=X.prototype.setNetworkEngine;X.prototype.getNetworkEngine=X.prototype.getNetworkEngine;
607
- X.prototype.setMuted=X.prototype.setMuted;X.prototype.isMuted=X.prototype.isMuted;X.prototype.setPlaybackRate=X.prototype.setPlaybackRate;X.prototype.getPlaybackRate=X.prototype.getPlaybackRate;X.prototype.namespace=X.prototype.namespace;X.prototype.getAdsManager=X.prototype.getAdsManager;X.prototype.getDuration=X.prototype.getDuration;X.prototype.setVolume=X.prototype.setVolume;X.prototype.getVolume=X.prototype.getVolume;X.prototype.getTimelineOffset=X.prototype.Kc;X.prototype.getSeekRange=X.prototype.getSeekRange;
605
+ _.u.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.u.getCueTimeline=function(){return this.a?this.a.getCueTimeline():null};_.u.resetAbr=function(){this.a&&this.a.resetAbr()};_.u.setDrmCustomDataModifier=function(a){this.td=a;Wt(this)};_.u.setCdnErrorCallback=function(a){this.M=a;this.a&&this.a.setCdnErrorCallback(this.M)};_.J("clpp.Player",X);X.registerPlugin=_.cu;X.prototype.setCdnErrorCallback=X.prototype.setCdnErrorCallback;X.prototype.setDrmCustomDataModifier=X.prototype.setDrmCustomDataModifier;
606
+ X.prototype.resetAbr=X.prototype.resetAbr;X.prototype.getTimelineCues=X.prototype.getTimelineCues;X.prototype.getLoadedSource=X.prototype.getLoadedSource;X.prototype.getSources=X.prototype.si;X.prototype.getStats=X.prototype.getStats;X.prototype.isLive=X.prototype.isLive;X.prototype.getTextDisplayer=X.prototype.getTextDisplayer;X.prototype.setNetworkEngine=X.prototype.setNetworkEngine;X.prototype.getNetworkEngine=X.prototype.getNetworkEngine;X.prototype.setMuted=X.prototype.setMuted;
607
+ X.prototype.isMuted=X.prototype.isMuted;X.prototype.setPlaybackRate=X.prototype.setPlaybackRate;X.prototype.getPlaybackRate=X.prototype.getPlaybackRate;X.prototype.namespace=X.prototype.namespace;X.prototype.getAdsManager=X.prototype.getAdsManager;X.prototype.getDuration=X.prototype.getDuration;X.prototype.setVolume=X.prototype.setVolume;X.prototype.getVolume=X.prototype.getVolume;X.prototype.getTimelineOffset=X.prototype.Kc;X.prototype.getSeekRange=X.prototype.getSeekRange;
608
608
  X.prototype.getPresentationStartTime=X.prototype.getPresentationStartTime;X.prototype.seek=X.prototype.seek;X.prototype.getPosition=X.prototype.getPosition;X.prototype.isPaused=X.prototype.isPaused;X.prototype.isEnded=X.prototype.isEnded;X.prototype.getState=X.prototype.getState;X.prototype.getBufferInfo=X.prototype.getBufferInfo;X.prototype.getTrackManager=X.prototype.getTrackManager;X.prototype.pause=X.prototype.pause;X.prototype.play=X.prototype.play;X.prototype.remove=X.prototype.remove;
609
609
  X.prototype.use=X.prototype.use;X.prototype.load=X.prototype.load;X.prototype.destroy=X.prototype.destroy;X.prototype.release=X.prototype.release;X.prototype.getDrmInfo=X.prototype.getDrmInfo;X.prototype.getConfiguration=X.prototype.getConfiguration;X.prototype.getSurface=X.prototype.getSurface;X.prototype.getPlugin=X.prototype.ge;X.prototype.off=X.prototype.off;X.prototype.one=X.prototype.one;X.prototype.on=X.prototype.on;_.Hq=0;_.Tq=1;_.Mq=2;_.Vq=3;_.Uq=4;_.Oq=5;_.Sq=6;_.Iq=7;
610
610
  _.Qq={IDLE:_.Hq,PREPARING:_.Tq,BUFFERING:_.Mq,PLAYING:_.Vq,PAUSED:_.Uq,ENDED:_.Oq,ERROR:_.Sq,UNSET:_.Iq};X.State=_.Qq;var Mt=[];_.x(du,X);_.u=du.prototype;
611
611
  _.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 _.O(_.P,7,7008,"Cannot call open() while "+c.w+fa);if(0!==a)throw new _.O(_.P,7,7007,"The index parameter only supports the value of 0.");if(0===b.length)throw new _.O(_.P,7,7003,Cb);if(b.some(function(p){return!p.id||!p.source}))throw new _.O(_.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 _.O(_.P,7,
612
612
  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 _.O(_.P,7,7100,"Unsupported `playlist.timeline` config value!");h=e.startTime;if(null!=h&&(typeof h!==_.k||0>h))throw new _.O(_.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 _.O(_.P,7,7100,"Invalid `playlist.endTime` config value!");m=e.content;if("DVR"===m&&!l)throw new _.O(_.P,7,
613
613
  7100,"`playlist.endTime` config value is required for DVR content!");}_.Ih(n);eu(c);c.w="open";return _.y(n,iu(c,b),4)}2!=n.a&&(c.I=0,c.o=b,c.da=!0,fu(c,b[0].playlist||{}));_.Kh(n);c.w=null;return _.Lh(n)})};
614
- _.u.Oj=function(a){var b=this,c;return _.I(function(d){if(1==d.a){if(b.w)throw new _.O(_.P,7,7008,"Cannot call addItem() while "+b.w+fa);if(!b.da)throw new _.O(_.P,7,7008,"open() must be called before addItem()!");if(!a.id||!a.source)throw new _.O(_.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 _.O(_.P,7,7100,"A config with this `id` already exists in the playlist!");_.Ih(d);b.w="addItem";b.o.push(a);return _.y(d,
615
- ju(b,a),2)}_.Kh(d);b.w=null;return _.Lh(d)})};_.u.getCurrentItem=function(){return this.o[this.I]||null};_.u.getCurrentItemIndex=function(){return this.I};_.u.im=function(){return _.vh(this.o).concat()};_.u.he=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 X.prototype.release.call(this)};
614
+ _.u.Nj=function(a){var b=this,c;return _.I(function(d){if(1==d.a){if(b.w)throw new _.O(_.P,7,7008,"Cannot call addItem() while "+b.w+fa);if(!b.da)throw new _.O(_.P,7,7008,"open() must be called before addItem()!");if(!a.id||!a.source)throw new _.O(_.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 _.O(_.P,7,7100,"A config with this `id` already exists in the playlist!");_.Ih(d);b.w="addItem";b.o.push(a);return _.y(d,
615
+ ju(b,a),2)}_.Kh(d);b.w=null;return _.Lh(d)})};_.u.getCurrentItem=function(){return this.o[this.I]||null};_.u.getCurrentItemIndex=function(){return this.I};_.u.hm=function(){return _.vh(this.o).concat()};_.u.he=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 X.prototype.release.call(this)};
616
616
  _.u.destroy=function(){eu(this);return X.prototype.destroy.call(this)};_.u.setCdnErrorCallback=function(){throw new _.O(1,7,7009,"CDN switching is not supported!");};_.J("clpp.plist.ScPlaylist",du);du.prototype.setCdnErrorCallback=du.prototype.setCdnErrorCallback;du.prototype.destroy=du.prototype.destroy;du.prototype.release=du.prototype.release;du.prototype.seekWith=du.prototype.seekWith;du.prototype.getTimeline=du.prototype.getTimeline;du.prototype.getSize=du.prototype.he;
617
- du.prototype.getPlaylist=du.prototype.im;du.prototype.getCurrentItemIndex=du.prototype.getCurrentItemIndex;du.prototype.getCurrentItem=du.prototype.getCurrentItem;du.prototype.addItem=du.prototype.Oj;du.prototype.open=du.prototype.open;_.x(mu,_.Am);_.u=mu.prototype;_.u.fe=function(){return this.f};_.u.bf=function(){return this.f?this.f.player:null};_.u.ji=function(){return this.o.get(this.a+1)||null};_.u.mi=function(){return this.o.get(this.a-1)||null};_.u.li=function(){return[this.mi(),this.ji()].filter(Boolean)};_.u.vo=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:[]}})};
618
- _.u.uo=function(a){if(0===this.j.length)throw Error(Bb);if(0>a||a>this.j.length-1)throw Error("Index out of bounds");this.a=a};_.u.le=function(){return this.a<this.j.length-1};_.u.vi=function(){return 0<this.a};
619
- _.u.Yn=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(Bb),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,uu(a,b),5);case 5:a.g.info("First playing (index: "+a.a+")");case 3:_.Kh(d);a.l=!1;zu(a);_.Lh(d);break;case 2:throw c=_.H(d),a.g.error("First failed (index: "+a.a+")"),c;}})};
620
- _.u.kj=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.le())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===_.sf&&b.player.pause();nu(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,vu(a,c),5);case 5:a.g.info("Next playing (index: "+a.a+")");case 3:_.Kh(e);
617
+ du.prototype.getPlaylist=du.prototype.hm;du.prototype.getCurrentItemIndex=du.prototype.getCurrentItemIndex;du.prototype.getCurrentItem=du.prototype.getCurrentItem;du.prototype.addItem=du.prototype.Nj;du.prototype.open=du.prototype.open;_.x(mu,_.Am);_.u=mu.prototype;_.u.fe=function(){return this.f};_.u.bf=function(){return this.f?this.f.player:null};_.u.ji=function(){return this.o.get(this.a+1)||null};_.u.mi=function(){return this.o.get(this.a-1)||null};_.u.li=function(){return[this.mi(),this.ji()].filter(Boolean)};_.u.uo=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:[]}})};
618
+ _.u.so=function(a){if(0===this.j.length)throw Error(Bb);if(0>a||a>this.j.length-1)throw Error("Index out of bounds");this.a=a};_.u.le=function(){return this.a<this.j.length-1};_.u.vi=function(){return 0<this.a};
619
+ _.u.Xn=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(Bb),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,uu(a,b),5);case 5:a.g.info("First playing (index: "+a.a+")");case 3:_.Kh(d);a.l=!1;zu(a);_.Lh(d);break;case 2:throw c=_.H(d),a.g.error("First failed (index: "+a.a+")"),c;}})};
620
+ _.u.jj=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.le())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===_.sf&&b.player.pause();nu(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,vu(a,c),5);case 5:a.g.info("Next playing (index: "+a.a+")");case 3:_.Kh(e);
621
621
  a.l=!1;b&&ru(a,b);zu(a);_.Lh(e);break;case 2:throw d=_.H(e),a.g.error("Next failed (index: "+a.a+")"),d;}})};
622
- _.u.Zn=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.vi())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===_.sf&&b.player.pause();nu(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,vu(a,c),5);case 5:a.g.info("Previous playing (index: "+
623
- a.a+")");case 3:_.Kh(e);a.l=!1;b&&ru(a,b);zu(a);_.Lh(e);break;case 2:throw d=_.H(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([ou(a),a.f?ru(a,a.f):Promise.resolve()]),2)):_.y(b,Au(a),0)})};_.J(Md,mu);mu.prototype.destroy=mu.prototype.destroy;mu.prototype.playPrev=mu.prototype.Zn;mu.prototype.playNext=mu.prototype.kj;mu.prototype.playFirst=mu.prototype.Yn;mu.prototype.hasPrev=mu.prototype.vi;
624
- mu.prototype.hasNext=mu.prototype.le;mu.prototype.setIndex=mu.prototype.uo;mu.prototype.setItems=mu.prototype.vo;mu.prototype.getPreloading=mu.prototype.li;mu.prototype.getPrev=mu.prototype.mi;mu.prototype.getNext=mu.prototype.ji;mu.prototype.getCurrentPlayer=mu.prototype.bf;mu.prototype.getCurrent=mu.prototype.fe;var qu="preload",su=_.We;var Bu=new Map;_.u=Du.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]===_.ed;if(!window.muxjs||!c&&!d)return!1;if(d)return _.Cu(id);if(b)return _.Cu(Eu(b,a));c=Eu(_.dd,a);d=Eu(_.r,a);return _.Cu(c)||_.Cu(d)};_.u.isMuxed=function(a,b){return 1<this.demuxMimeTypes(a,b).size};
622
+ _.u.Yn=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.vi())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===_.sf&&b.player.pause();nu(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,vu(a,c),5);case 5:a.g.info("Previous playing (index: "+
623
+ a.a+")");case 3:_.Kh(e);a.l=!1;b&&ru(a,b);zu(a);_.Lh(e);break;case 2:throw d=_.H(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([ou(a),a.f?ru(a,a.f):Promise.resolve()]),2)):_.y(b,Au(a),0)})};_.J(Md,mu);mu.prototype.destroy=mu.prototype.destroy;mu.prototype.playPrev=mu.prototype.Yn;mu.prototype.playNext=mu.prototype.jj;mu.prototype.playFirst=mu.prototype.Xn;mu.prototype.hasPrev=mu.prototype.vi;
624
+ mu.prototype.hasNext=mu.prototype.le;mu.prototype.setIndex=mu.prototype.so;mu.prototype.setItems=mu.prototype.uo;mu.prototype.getPreloading=mu.prototype.li;mu.prototype.getPrev=mu.prototype.mi;mu.prototype.getNext=mu.prototype.ji;mu.prototype.getCurrentPlayer=mu.prototype.bf;mu.prototype.getCurrent=mu.prototype.fe;var qu="preload",su=_.We;var Bu=new Map;_.u=Du.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]===_.ed;if(!window.muxjs||!c&&!d)return!1;if(d)return _.Cu(id);if(b)return _.Cu(Eu(b,a));c=Eu(_.dd,a);d=Eu(_.r,a);return _.Cu(c)||_.Cu(d)};_.u.isMuxed=function(a,b){return 1<this.demuxMimeTypes(a,b).size};
625
625
  _.u.demuxMimeTypes=function(a,b){var c=new Map;c.set(a,b);try{var d=_.Dl(b),e=_.El(b).split(","),f=new Map,g=Ej(_.dd,e),h=Ej(_.r,e);g&&f.set(_.dd,this.convertCodecs(_.dd,_.Cl(d,g)));h&&f.set(_.r,this.convertCodecs(_.r,_.Cl(d,h)));return f}catch(l){return c}};_.u.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]===_.ed?id:"mp2t"===b.toLowerCase().split(";")[0].split("/")[1]?Eu(a,b):b};_.u.getOriginalMimeType=function(){return this.h};
626
626
  _.u.transmux=function(a){function b(){g={video:_.en.apply(Ym,_.vh(d)),captions:f,audio:_.en.apply(Ym,_.vh(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===Rw?d.push(l):h.type===Sw&&e.push(l)}var d=[],e=[],f=[],g=null;a=_.bk(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 _.O(_.P,3,3018);return g};
627
- xl(_.ed,function(){return new Du(_.ed)});xl(_.Zg,function(){return new Du(_.Zg)});var Sw=_.dd,Rw=_.r;Fu.prototype.getCuePoints=function(){};Fu.prototype.Sb=function(){};Fu.prototype.Rb=function(){};_.J("clpp.ads.IAdsTimeline",Fu);Fu.prototype.hasPostroll=Fu.prototype.Rb;Fu.prototype.hasPreroll=Fu.prototype.Sb;Fu.prototype.getCuePoints=Fu.prototype.getCuePoints;_.Gu.prototype.f=function(){};_.Gu.prototype.a=function(){};_.Gu.prototype.h=function(){};_.Gu.prototype.o=function(){};_.x(Hu,_.pn);Hu.prototype.ve=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]};Hu.prototype.ai=function(a,b){var c=Ln(b);switch(this.o){case Tw:return c;case Uw:return(new _.$k(c)).a;default:throw Error("Unknown content ID strategy");}};Hu.prototype.Ui=function(a,b){b.headers[Aa]=cd;this.ve(a,b);var c={spc:_.Zm(b.body)};b.body=_.T.Ed(_.bl(c,!0))};
628
- Hu.prototype.Vi=function(a,b){var c=_.T.ea(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.an(c).buffer};_.J(Id,Hu);Hu.prototype.onFairPlayLicenseResponse=Hu.prototype.Vi;Hu.prototype.onFairPlayLicenseRequest=Hu.prototype.Ui;Hu.prototype.extractFairPlayContentId=Hu.prototype.ai;Hu.prototype.onLicenseRequest=Hu.prototype.ve;Hu.prototype.constructor=Hu.prototype.constructor;Hu.NAME=kb;var Uw="hostname",Tw="full-skd";
627
+ xl(_.ed,function(){return new Du(_.ed)});xl(_.Zg,function(){return new Du(_.Zg)});var Sw=_.dd,Rw=_.r;Fu.prototype.getCuePoints=function(){};Fu.prototype.Sb=function(){};Fu.prototype.Rb=function(){};_.J("clpp.ads.IAdsTimeline",Fu);Fu.prototype.hasPostroll=Fu.prototype.Rb;Fu.prototype.hasPreroll=Fu.prototype.Sb;Fu.prototype.getCuePoints=Fu.prototype.getCuePoints;_.Gu.prototype.f=function(){};_.Gu.prototype.a=function(){};_.Gu.prototype.h=function(){};_.Gu.prototype.o=function(){};_.x(Hu,_.pn);Hu.prototype.ve=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]};Hu.prototype.ai=function(a,b){var c=Ln(b);switch(this.o){case Tw:return c;case Uw:return(new _.$k(c)).a;default:throw Error("Unknown content ID strategy");}};Hu.prototype.Ti=function(a,b){b.headers[Aa]=cd;this.ve(a,b);var c={spc:_.Zm(b.body)};b.body=_.T.Ed(_.bl(c,!0))};
628
+ Hu.prototype.Ui=function(a,b){var c=_.T.ea(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.an(c).buffer};_.J(Id,Hu);Hu.prototype.onFairPlayLicenseResponse=Hu.prototype.Ui;Hu.prototype.onFairPlayLicenseRequest=Hu.prototype.Ti;Hu.prototype.extractFairPlayContentId=Hu.prototype.ai;Hu.prototype.onLicenseRequest=Hu.prototype.ve;Hu.prototype.constructor=Hu.prototype.constructor;Hu.NAME=kb;var Uw="hostname",Tw="full-skd";
629
629
  Hu.FairPlayContentIdStrategy={HOSTNAME:Uw,FULL_SKD:Tw};_.x(Iu,_.Gu);Iu.prototype.h=function(a){a=a.getConfiguration();if(a.drm&&a.drm&&a.drm.env===kb){a=a.drm.customData;if(!a)throw new _.O(_.P,7,7100,_.Yd);a=new Hu(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||Tw);_.kn(a)}};Iu.prototype.a=function(){delete _.jn.HeaderDrm};Iu.prototype.id=function(){return"headerdrm"};_.J("clpp.drm.HeaderDrmComponent",Iu);_.jt(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=_.bk(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});_.jt(function(){_.ci("mathRound.install")});_.jt(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;De in document||(Object.defineProperty(document,De,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
630
630
  {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",Ju);document.addEventListener("webkitfullscreenerror",Ju);document.addEventListener("mozfullscreenchange",Ju);document.addEventListener("mozfullscreenerror",Ju);document.addEventListener("MSFullscreenChange",Ju);document.addEventListener("MSFullscreenError",Ju)}});_.jt(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.ci("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Lu,document.exitPictureInPicture=Mu,document.addEventListener("webkitpresentationmodechanged",Ku,!0))}});_.jt(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=Nu)}});_.jt(function(){if(window.VTTCue)_.bi("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.bi(ic),window.VTTCue=Ou;else if(6===a)_.bi("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=Pu;else{try{var b=!!Ou(1,2,"")}catch(c){b=!1}b&&(_.bi(ic),window.VTTCue=Ou)}}else _.di("VTTCue not available.")});var Qu;_.jt(function(){_.ci("InputEvent.install");_.Hl("Trident/")&&HTMLInputElement.prototype.addEventListener!==Ru&&(_.bi("Patching input event support on IE."),Qu=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=Ru)});_.jt(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.jt(function(){_.ci("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}}});_.Zu.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)};_.Zu.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.bv.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 _.xk;c=c.play();var e=(new _.mi(function(){b(a)})).fa(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===Hb?b(!0):b(!1)}):b(!0);return d};
631
631
  var av=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,
@@ -634,7 +634,7 @@ var av=new Uint8Array([0,0,0,28,102,116,121,112,105,115,111,109,0,0,2,0,105,115,
634
634
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
635
635
  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,
636
636
  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,
637
- 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=_.cv.prototype;_.u.getDuration=function(){return this.a};_.u.getId=function(){return this.id};_.u.dc=function(){return this.f};_.u.qe=function(){return this.h};_.u.qa=function(a){return this.getId()===a.getId()&&this.dc()===a.dc()&&this.getDuration()===a.getDuration()&&this.qe()===a.qe()};_.J("clpp.media.TimelineWindow",_.cv);_.cv.prototype.isDynamic=_.cv.prototype.qe;_.cv.prototype.getStart=_.cv.prototype.dc;_.cv.prototype.getId=_.cv.prototype.getId;_.cv.prototype.getDuration=_.cv.prototype.getDuration;_.Vw=new _.K("clpp.media.TimestampParser");_.u=_.dv.prototype;_.u.mm=function(a){return this.a[a]||null};_.u.nm=function(){return this.a.length};_.u.om=function(){return this.a};_.u.hi=function(){return this.a[this.f]||null};_.u.am=function(){return this.f};_.J("clpp.media.Timeline",_.dv);_.dv.prototype.getCurrentWindowIndex=_.dv.prototype.am;_.dv.prototype.getCurrentWindow=_.dv.prototype.hi;_.dv.prototype.getWindows=_.dv.prototype.om;_.dv.prototype.getWindowCount=_.dv.prototype.nm;_.dv.prototype.getWindow=_.dv.prototype.mm;_.gv={};_.iv={};var nv=window.XMLHttpRequest;_.x(wv,_.yk);wv.prototype.then=function(a,b){this.T=this.T.then(a,b);return this};wv.prototype["catch"]=function(a){this.T=this.T["catch"](a);return this};wv.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 Cv=window.fetch,Av=window.AbortController,zv=window.Headers;_.Ev={};_.u=_.Iv.prototype;_.u.getBackgroundColor=function(){return this.K};_.u.setBackgroundColor=function(a){this.K=a;this.Xb()};_.u.getWindowColor=function(){return this.U};_.u.setWindowColor=function(a){this.U=a;this.Xb()};_.u.getFontFamily=function(){return this.P};_.u.setFontFamily=function(a){this.P=a;this.Xb()};_.u.getFontColor=function(){return this.M};_.u.setFontColor=function(a){this.M=a;this.Xb()};_.u.getFontSize=function(){return this.I};_.u.setFontSize=function(a){this.I=a;this.Xb()};
637
+ 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=_.cv.prototype;_.u.getDuration=function(){return this.a};_.u.getId=function(){return this.id};_.u.dc=function(){return this.f};_.u.qe=function(){return this.h};_.u.qa=function(a){return this.getId()===a.getId()&&this.dc()===a.dc()&&this.getDuration()===a.getDuration()&&this.qe()===a.qe()};_.J("clpp.media.TimelineWindow",_.cv);_.cv.prototype.isDynamic=_.cv.prototype.qe;_.cv.prototype.getStart=_.cv.prototype.dc;_.cv.prototype.getId=_.cv.prototype.getId;_.cv.prototype.getDuration=_.cv.prototype.getDuration;_.Vw=new _.K("clpp.media.TimestampParser");_.u=_.dv.prototype;_.u.lm=function(a){return this.a[a]||null};_.u.mm=function(){return this.a.length};_.u.nm=function(){return this.a};_.u.hi=function(){return this.a[this.f]||null};_.u.$l=function(){return this.f};_.J("clpp.media.Timeline",_.dv);_.dv.prototype.getCurrentWindowIndex=_.dv.prototype.$l;_.dv.prototype.getCurrentWindow=_.dv.prototype.hi;_.dv.prototype.getWindows=_.dv.prototype.nm;_.dv.prototype.getWindowCount=_.dv.prototype.mm;_.dv.prototype.getWindow=_.dv.prototype.lm;_.gv={};_.iv={};var nv=window.XMLHttpRequest;_.x(wv,_.yk);wv.prototype.then=function(a,b){this.T=this.T.then(a,b);return this};wv.prototype["catch"]=function(a){this.T=this.T["catch"](a);return this};wv.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 Cv=window.fetch,Av=window.AbortController,zv=window.Headers;_.Ev={};_.u=_.Iv.prototype;_.u.getBackgroundColor=function(){return this.K};_.u.setBackgroundColor=function(a){this.K=a;this.Xb()};_.u.getWindowColor=function(){return this.U};_.u.setWindowColor=function(a){this.U=a;this.Xb()};_.u.getFontFamily=function(){return this.P};_.u.setFontFamily=function(a){this.P=a;this.Xb()};_.u.getFontColor=function(){return this.M};_.u.setFontColor=function(a){this.M=a;this.Xb()};_.u.getFontSize=function(){return this.I};_.u.setFontSize=function(a){this.I=a;this.Xb()};
638
638
  _.u.getFontSizePercent=function(){return null===this.B?Ww:this.B};_.u.setFontSizePercent=function(a){this.B=a;this.Xb()};_.u.getEdgeColor=function(){return this.H};_.u.setEdgeColor=function(a){this.H=a;this.Xb()};_.u.getEdgeType=function(){return this.o};_.u.setEdgeType=function(a){this.o=a;this.Xb()};_.Iv.prototype.setEdgeType=_.Iv.prototype.setEdgeType;_.Iv.prototype.getEdgeType=_.Iv.prototype.getEdgeType;_.Iv.prototype.setEdgeColor=_.Iv.prototype.setEdgeColor;_.Iv.prototype.getEdgeColor=_.Iv.prototype.getEdgeColor;
639
639
  _.Iv.prototype.setFontSizePercent=_.Iv.prototype.setFontSizePercent;_.Iv.prototype.getFontSizePercent=_.Iv.prototype.getFontSizePercent;_.Iv.prototype.setFontSize=_.Iv.prototype.setFontSize;_.Iv.prototype.getFontSize=_.Iv.prototype.getFontSize;_.Iv.prototype.setFontColor=_.Iv.prototype.setFontColor;_.Iv.prototype.getFontColor=_.Iv.prototype.getFontColor;_.Iv.prototype.setFontFamily=_.Iv.prototype.setFontFamily;_.Iv.prototype.getFontFamily=_.Iv.prototype.getFontFamily;
640
640
  _.Iv.prototype.setWindowColor=_.Iv.prototype.setWindowColor;_.Iv.prototype.getWindowColor=_.Iv.prototype.getWindowColor;_.Iv.prototype.setBackgroundColor=_.Iv.prototype.setBackgroundColor;_.Iv.prototype.getBackgroundColor=_.Iv.prototype.getBackgroundColor;var Ww=1/15;var Jv="raised",Kv="depressed",Mv="dropshadow",Lv="uniform";_.J("clpp.text.EdgeType",{NONE:_.ff,RAISED:Jv,DEPRESSED:Kv,DROP_SHADOW:Mv,UNIFORM:Lv});Ov.prototype.parseInit=function(a){try{var b=_.Gv(_.Zc);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=_.Gv(_.$c);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 _.O(_.P,2,2011);}};