@castlabs/prestoplay 6.34.0-beta.1 → 6.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/CHANGELOG.md +8 -2
  2. package/cjs/cl.adobe.js +3 -3
  3. package/cjs/cl.airplay.js +3 -3
  4. package/cjs/cl.broadpeak.js +18 -18
  5. package/cjs/cl.cast.js +127 -127
  6. package/cjs/cl.conviva.js +31 -31
  7. package/cjs/cl.core.js +541 -539
  8. package/cjs/cl.crypto.js +9 -9
  9. package/cjs/cl.dash.js +100 -100
  10. package/cjs/cl.externs.js +37 -38
  11. package/cjs/cl.freewheel.js +26 -26
  12. package/cjs/cl.hls.js +76 -76
  13. package/cjs/cl.hlssmpte.js +6 -6
  14. package/cjs/cl.htmlcue.js +30 -30
  15. package/cjs/cl.ima.js +25 -25
  16. package/cjs/cl.mediatailor.js +3 -3
  17. package/cjs/cl.mse.js +348 -349
  18. package/cjs/cl.muxdata.js +13 -13
  19. package/cjs/cl.onboard.js +4 -4
  20. package/cjs/cl.persistent.js +14 -14
  21. package/cjs/cl.playlist.js +5 -5
  22. package/cjs/cl.simid.js +16 -16
  23. package/cjs/cl.smooth.js +71 -71
  24. package/cjs/cl.thumbnails.js +26 -26
  25. package/cjs/cl.tizen.js +68 -68
  26. package/cjs/cl.ttml.js +29 -29
  27. package/cjs/cl.verimatrix.js +5 -5
  28. package/cjs/cl.vimond.js +11 -11
  29. package/cjs/cl.vr.js +19 -19
  30. package/cjs/cl.vtt.js +14 -14
  31. package/cjs/cl.yospace.js +3 -3
  32. package/cjs/cl.youbora.js +37 -37
  33. package/cl.adobe.js +3 -3
  34. package/cl.airplay.js +3 -3
  35. package/cl.broadpeak.js +14 -14
  36. package/cl.cast.js +98 -98
  37. package/cl.conviva.js +26 -26
  38. package/cl.core.js +435 -432
  39. package/cl.crypto.js +7 -7
  40. package/cl.dash.js +89 -89
  41. package/cl.externs.js +37 -38
  42. package/cl.freewheel.js +20 -20
  43. package/cl.hls.js +82 -82
  44. package/cl.hlssmpte.js +5 -5
  45. package/cl.htmlcue.js +26 -26
  46. package/cl.ima.js +19 -19
  47. package/cl.mediatailor.js +2 -2
  48. package/cl.mse.js +297 -299
  49. package/cl.muxdata.js +12 -12
  50. package/cl.onboard.js +5 -5
  51. package/cl.persistent.js +10 -10
  52. package/cl.playlist.js +5 -5
  53. package/cl.simid.js +14 -14
  54. package/cl.smooth.js +60 -60
  55. package/cl.thumbnails.js +17 -17
  56. package/cl.tizen.js +55 -55
  57. package/cl.ttml.js +22 -22
  58. package/cl.verimatrix.js +4 -4
  59. package/cl.vimond.js +7 -7
  60. package/cl.vr.js +14 -14
  61. package/cl.vtt.js +12 -12
  62. package/cl.yospace.js +3 -3
  63. package/cl.youbora.js +30 -30
  64. package/package.json +1 -1
  65. package/typings.d.ts +24 -125
package/cjs/cl.core.js CHANGED
@@ -1,41 +1,41 @@
1
1
  (function(){var g={}; var _ = {};
2
- (function(window){var ba,ca,da,fa,ha,ia,ka,ua,ya,Ca,Ha,Ja,Ma,Na,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,$a,ab,fb,hb,ib,jb,kb,mb,nb,rb,ub,yb,Cb,Db,Eb,Fb,Gb,Jb,Lb,Pb,Qb,Rb,Ub,Vb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,mc,nc,oc,Nc,Xc,ed,fd,nd,od,pd,sd,td,ud,vd,xd,yd,zd,Ad,Bd,Gd,Id,Ld,Td,Ud,Vd,Wd,Xd,Yd,$d,ae,be,ee,fe,he,oe,we,ye,ze,Ge,$e,gf,jf,kf,lf,mf,nf,of,pf,qf,rf,sf,xf,yf,zf,Af,Bf,Cf,Gf,Lf,Nf,bg,dg,eg,lg,yg,Bg,Hg,Wg,Xg,Yg,Zg,$g,bh,ch,dh,ih,oh,ph,rh,th,sh,uh,vh,wh,xh,Ah,Dh,Bh,Ch,Eh,Fh,Jh,Mh,Rh,Vh,Xh,Zh,$h,ai,ci,di,bi,fi,li,oi,mi,pi,Ai,Ci,Di,Ei,
3
- Oi,Fi,Ti,Wi,Yi,Zi,bj,Xi,Ui,dj,fj,jj,cj,kj,mj,lj,qj,tj,sj,rj,vj,yj,xj,wj,oj,nj,uj,pj,Bj,Cj,Dj,Fj,Hj,Gj,Jj,Uj,Vj,Wj,Yj,Zj,ak,kk,wk,xk,yk,zk,Ak,Ck,Dk,Gk,Fk,Kk,Lk,Pk,Qk,Rk,Uk,Vk,Wk,Yk,Zk,nl,ol,pl,rl,ql,sl,ul,vl,tl,wl,yl,xl,Al,zl,Bl,Cl,Dl,Ml,kl,Pl,Ql,Ol,Rl,Ul,Sl,Vl,Wl,Xl,am,Yl,Zl,hm,im,jm,lm,om,qm,pm,nm,rm,mm,um,sm,tm,vm,wm,zm,Lm,Nm,Om,Qm,Sm,Tm,Rm,Vm,Wm,Pm,Ym,Xm,Zm,$m,an,bn,Mm,cn,en,dn,fn,hn,jn,mn,nn,pn,sn,un,wn,xn,Cn,Dn,En,Fn,Hn,In,Jn,Kn,Ln,Mn,Yn,eo,ho,io,ko,lo,oo,so,uo,yo,zo,Bo,Co,Jo,Ko,Lo,Mo,No,Oo,
4
- Po,Qo,Ro,So,To,Wo,Uo,Xo,Zo,$o,Vo,Yo,ap,bp,cp,fp,hp,ip,op,pp,xp,Dp,Mp,Jp,Kp,Qp,Sp,Up,Yp,Zp,cq,Op,Ip,jq,aq,kq,mq,lq,uq,qq,pq,sq,vq,tq,xq,rq,wq,zp,Tp,oq,nq,Ap,iq,Hp,eq,fq,yq,hq,Np,Lp,Cp,Eq,Gq,Hq,Iq,Jq,Mq,Nq,Qq,Sq,Tq,Vq,Wq,Rq,Xq,Yq,Zq,$q,dr,er,fr,gr,hr,mr,nr,or,sr,rr,xr,Br,Dr,Er,Gr,Fr,Jr,Kr,Ir,zr,Yr,yr,Mr,Ar,Zr,Lr,vr,Wr,tr,Hr,as,Vr,Sr,Tr,Rr,Ur,Qr,$r,cs,Xr,fs,wr,ur,Nr,gs,hs,es,Cr,rs,ss,us,js,ks,is,ps,ns,os,ts,Cs,xs,ws,vs,Ds,Bs,As,Hs,qs,Js,zs,ys,Is,ls,ms,Es,Ms,Os,Qs,Rs,Fs,Gs,Ls,Ks,Ss,Ns,Ps,Ts,Us,Ws,Vs,
5
- Ys,Zs,$s,Xs,bt,dt,et,gt,ht,it,jt,kt,lt,mt,nt,pt,qt,rt,st,ot,wt,yt,xt,zt,At,Gt,Jt,Kt,Mt,Lt,Ot,Pt,Ut,Wt,Vt,Xt,Ft,Qt,Zt,$t,au,du,eu,cu,bu,hu,ju,iu,mu,ku,pu,qu,ou,su,tu,uu,ru,gu,vu,fu,yu,zu,Au,Hu,Lu,Mu,Ou,Qu,Vu,Wu,Xu,Yu,Zu,$u,av,bv,cv,dv,ev,Bv,Jv,Mv,Qv,kh,Sv;_.aa=" is registered.";ba=" is unsupported on this platform.";ca=" out of range [0, ";da=" to a log level. Falling back to default!";_.ea="#text";fa="': 'output-restricted'";ha="() is ongoing!";ia=".start";_.ja="6.34.0-beta.1";ka="APPLE";_.la="AUDIO";
6
- _.ma="AdaptationSet";_.na="Already destroyed. No-op";_.pa="Already released. No-op";_.qa="Autoplay is not allowed due to browser policy.";_.ra="BANDWIDTH";_.ta="BASIC";ua="CHECKSUM";_.va="CLOSED-CAPTIONS";_.xa="CODECS";ya="Can not set volume to ";_.za="Cannot retrieve buffer information due to platform limitations";_.Ba="CastlabsPlayer";Ca="Content-Length";_.Da="Content-Type";_.Ea="Could not find configured DRM environment.";_.Fa="DRM environment '";Ha="DRM licenses loaded";_.Ia="DURATION";Ja="Destroying player";
7
- _.Ka="EXT-X-MEDIA";_.La="EXT-X-STREAM-INF";Ma="Error while decoding string!";Na="Error while fetching certificate!";_.Oa="FairPlay Certificate URL is not defined";_.Pa="FairPlay License URL is not defined";_.Qa="GROUP-ID";Ra="HW_SECURE_ALL";Sa="HW_SECURE_CRYPTO";Ta="HW_SECURE_DECODE";Ua="HeaderDrm";Va="Hide video element .";Wa="Invalid track type: ";Xa="InvalidStateError";Ya="Key status for Key ID '";_.Za="LANGUAGE";$a="License verification failed: ";ab="Load interrupted while a player release is pending";
8
- _.cb="Loading player with configuration";_.db="MaxHeight";_.eb="MaxWidth";fb="Missing media element";_.gb="NAME";hb="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";ib="No items in the playlist";jb="No sources provided!";kb="Not a persistent session.";_.lb="Not supported";mb="NotAllowedError";nb="NotSupportedError";_.ob="PLAYLIST";_.pb="POST";_.qb="PlayReady License URL is not defined";rb="Player not ready yet.";_.sb="Player sources";_.tb="Please make sure ";
2
+ (function(window){var ba,ca,da,fa,ha,ia,ka,ua,ya,Ca,Ha,Ja,Ma,Na,Ra,Sa,Ta,Ua,Va,Wa,Xa,Ya,$a,ab,fb,hb,ib,jb,kb,mb,nb,rb,ub,yb,Cb,Db,Eb,Fb,Gb,Jb,Lb,Pb,Qb,Rb,Ub,Vb,Xb,Yb,Zb,$b,ac,bc,cc,dc,ec,mc,nc,oc,Nc,Xc,ed,fd,nd,od,pd,sd,td,ud,vd,xd,yd,zd,Ad,Bd,Gd,Id,Ld,Td,Ud,Vd,Wd,Xd,Yd,$d,ae,be,ee,fe,he,oe,we,ye,ze,Ge,af,hf,kf,lf,mf,nf,of,pf,qf,rf,sf,tf,yf,zf,Af,Bf,Cf,Df,Hf,Mf,Of,cg,eg,fg,lg,yg,Bg,Hg,Wg,Xg,Yg,Zg,$g,bh,ch,dh,ih,oh,ph,rh,th,sh,uh,vh,wh,xh,Ah,Dh,Bh,Ch,Eh,Fh,Jh,Mh,Rh,Vh,Xh,Zh,$h,ai,ci,di,bi,fi,li,oi,mi,pi,Ai,Ci,Di,Ei,
3
+ Oi,Fi,Ti,Wi,Yi,Zi,bj,Xi,Ui,dj,fj,jj,cj,kj,mj,lj,qj,tj,sj,rj,vj,yj,xj,wj,oj,nj,uj,pj,Bj,Cj,Dj,Fj,Hj,Gj,Jj,Uj,Vj,Wj,Yj,Zj,ak,kk,wk,xk,yk,zk,Ak,Ck,Dk,Gk,Fk,Jk,Mk,Nk,Rk,Sk,Tk,Wk,Xk,Yk,$k,al,pl,ql,rl,tl,sl,ul,wl,xl,yl,vl,zl,Bl,Al,Dl,Cl,El,Fl,Gl,Pl,ml,Sl,Tl,Rl,Ul,Xl,Vl,Yl,Zl,$l,dm,am,bm,km,lm,mm,om,rm,tm,sm,qm,um,pm,xm,vm,wm,ym,zm,Cm,Om,Qm,Rm,Tm,Vm,Wm,Um,Ym,Zm,Sm,an,$m,bn,cn,dn,en,fn,Pm,hn,kn,jn,ln,mn,gn,on,pn,sn,tn,vn,yn,An,Cn,Dn,En,Fn,Gn,Sn,Yn,ao,bo,eo,fo,io,lo,oo,po,to,uo,wo,xo,yo,zo,Ao,Bo,Co,Do,Eo,
4
+ Fo,Go,Ho,Io,Ro,Po,So,Uo,Vo,Qo,To,Wo,Xo,Yo,ap,cp,dp,jp,kp,sp,yp,Hp,Ep,Fp,Lp,Np,Pp,Tp,Up,Yp,Jp,Dp,eq,Wp,fq,hq,gq,pq,lq,kq,nq,qq,oq,sq,mq,rq,up,Op,jq,iq,vp,dq,Cp,$p,aq,tq,cq,Ip,Gp,xp,zq,Bq,Cq,Dq,Eq,Hq,Iq,Lq,Nq,Oq,Qq,Rq,Mq,Sq,Tq,Uq,Vq,Zq,dr,er,fr,gr,ir,jr,kr,lr,mr,nr,or,tr,ur,vr,zr,yr,Er,Ir,Kr,Lr,Nr,Mr,Qr,Rr,Pr,Gr,es,Fr,Tr,Hr,fs,Sr,Cr,cs,Ar,Or,hs,bs,Zr,$r,Yr,as,Xr,gs,js,ds,ms,Dr,Br,Ur,ns,os,ls,Jr,ys,zs,Bs,qs,rs,ps,ws,us,vs,As,Js,Es,Ds,Cs,Ks,Is,Hs,Os,xs,Qs,Gs,Fs,Ps,ss,ts,Ls,Ts,Vs,Xs,Ys,Ms,Ns,Ss,Rs,Zs,
5
+ Us,Ws,$s,at,ct,bt,et,ft,gt,dt,it,kt,lt,nt,ot,pt,qt,rt,st,tt,ut,wt,xt,yt,zt,vt,Dt,Ft,Et,Gt,Ht,Nt,Qt,Rt,Tt,St,Vt,Wt,au,cu,bu,du,Mt,Xt,fu,gu,hu,ku,lu,ju,iu,ou,qu,pu,tu,ru,wu,xu,vu,zu,Au,Bu,yu,nu,Cu,mu,Fu,Gu,Hu,Ou,Su,Tu,Vu,Xu,Zu,$u,av,bv,cv,dv,Yu,ev,fv,kv,lv,mv,nv,ov,pv,qv,rv,sv,uv,vv,wv,Zv,$v,cw,gw,kh,iw;_.aa=" is registered.";ba=" is unsupported on this platform.";ca=" out of range [0, ";da=" to a log level. Falling back to default!";_.ea="#text";fa="': 'output-restricted'";ha="() is ongoing!";ia=".start";
6
+ _.ja="6.34.0";ka="APPLE";_.la="AUDIO";_.ma="AdaptationSet";_.na="Already destroyed. No-op";_.pa="Already released. No-op";_.qa="Autoplay is not allowed due to browser policy.";_.ra="BANDWIDTH";_.ta="BASIC";ua="CHECKSUM";_.va="CLOSED-CAPTIONS";_.xa="CODECS";ya="Can not set volume to ";_.za="Cannot retrieve buffer information due to platform limitations";_.Ba="CastlabsPlayer";Ca="Content-Length";_.Da="Content-Type";_.Ea="Could not find configured DRM environment.";_.Fa="DRM environment '";Ha="DRM licenses loaded";
7
+ _.Ia="DURATION";Ja="Destroying player";_.Ka="EXT-X-MEDIA";_.La="EXT-X-STREAM-INF";Ma="Error while decoding string!";Na="Error while fetching certificate!";_.Oa="FairPlay Certificate URL is not defined";_.Pa="FairPlay License URL is not defined";_.Qa="GROUP-ID";Ra="HW_SECURE_ALL";Sa="HW_SECURE_CRYPTO";Ta="HW_SECURE_DECODE";Ua="HeaderDrm";Va="Hide video element .";Wa="Invalid track type: ";Xa="InvalidStateError";Ya="Key status for Key ID '";_.Za="LANGUAGE";$a="License verification failed: ";ab="Load interrupted while a player release is pending";
8
+ _.bb="Loading player with configuration";_.db="MaxHeight";_.eb="MaxWidth";fb="Missing media element";_.gb="NAME";hb="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";ib="No items in the playlist";jb="No sources provided!";kb="Not a persistent session.";_.lb="Not supported";mb="NotAllowedError";nb="NotSupportedError";_.ob="PLAYLIST";_.pb="POST";_.qb="PlayReady License URL is not defined";rb="Player not ready yet.";_.sb="Player sources";_.tb="Please make sure ";
9
9
  ub="Preloading is not supported by this player.";_.vb="QualityLevel";_.wb="RESOLUTION";_.xb="Representation";yb="STANDARD";_.zb="SUBTITLES";_.Ab="SW_SECURE_CRYPTO";_.Bb="SW_SECURE_DECODE";Cb="Schedule interstitial ";Db="Session is closed";Eb="Setting native ";Fb="Show video element .";Gb="Skipping Session creation. License for init data was already requested in Session: '";_.Hb="SmoothStreamingMedia";_.Ib="TYPE";Jb="The index is not in the allowed range.";_.Kb="URI";Lb="Unable to translate ";
10
10
  _.Nb="Unhandled/ignored event";_.Ob="Unregistering listeners";Pb="Unsupported keySystem";Qb="Updating playout limit for interstitial";Rb="Using VTTCue polyfill from 3 argument TextTrackCue.";_.Sb="VIDEO";_.Tb="VOD";Ub="Wait for preloading to finish";Vb="WebkitEmeManager.MediaKeySession.load";_.Wb="Widevine License URL is not defined";Xb="Will create EME Manager: ";Yb="X-AD-CREATIVE-SIGNALING";Zb="X-ASSET-LIST";$b="X-ASSET-URI";ac="X-GROUPED-ASSET-LIST";bc="X-PLAYOUT-LIMIT";cc="X-RESTRICT";dc="X-RESUME-OFFSET";
11
- ec="X-TIMELINE-OCCUPIES";_.gc="ad-break-started";_.hc="ad-break-stopped";_.ic="ad-buffering";_.jc="ad-clicked";_.kc="ad-completed";_.lc="ad-first-quartile";mc="ad-hls-asset-list-request";nc="ad-hls-asset-list-response";oc="ad-hls-resoled";_.pc="ad-impression";_.qc="ad-loaded";_.rc="ad-midpoint";_.tc="ad-paused";_.uc="ad-progress";_.vc="ad-resumed";_.wc="ad-skipped";_.yc="ad-started";_.Ac="ad-stopped";_.Bc="ad-third-quartile";_.Cc="addtrack";_.Dc="ads-timeline-changed";_.Ec="airplay-casting-ended";
12
- _.Fc="airplay-casting-started";_.Gc="airplay-status-changed";_.Hc="application";_.Ic="application/cea-608";_.Jc="application/dash+xml";_.Kc="application/mp4";_.Lc='application/mp4; codecs\x3d"stpp"';_.Mc='application/mp4; codecs\x3d"wvtt"';Nc="application/octet-stream";_.Oc="application/ttml+xml";_.Pc="application/vnd.ms-sstr+xml";_.Qc="application/x-www-form-urlencoded";_.Rc="audio";_.Tc="audio/aac";_.Uc="audio/ac3";_.Vc="audio/eac3";_.Wc="audio/mp4";Xc='audio/mp4;codecs\x3d"mp4a.40.2"';_.Yc="audiobufferchanged";
11
+ ec="X-TIMELINE-OCCUPIES";_.gc="ad-break-started";_.hc="ad-break-stopped";_.ic="ad-buffering";_.jc="ad-clicked";_.kc="ad-completed";_.lc="ad-first-quartile";mc="ad-hls-asset-list-request";nc="ad-hls-asset-list-response";oc="ad-hls-resoled";_.pc="ad-impression";_.qc="ad-loaded";_.rc="ad-midpoint";_.tc="ad-paused";_.uc="ad-progress";_.vc="ad-resumed";_.wc="ad-skipped";_.xc="ad-started";_.zc="ad-stopped";_.Bc="ad-third-quartile";_.Cc="addtrack";_.Dc="ads-timeline-changed";_.Ec="airplay-casting-ended";
12
+ _.Fc="airplay-casting-started";_.Gc="airplay-status-changed";_.Hc="application";_.Ic="application/cea-608";_.Jc="application/dash+xml";_.Kc="application/mp4";_.Lc='application/mp4; codecs\x3d"stpp"';_.Mc='application/mp4; codecs\x3d"wvtt"';Nc="application/octet-stream";_.Oc="application/ttml+xml";_.Pc="application/vnd.ms-sstr+xml";_.Qc="application/x-www-form-urlencoded";_.Rc="audio";_.Sc="audio/aac";_.Tc="audio/ac3";_.Vc="audio/eac3";_.Wc="audio/mp4";Xc='audio/mp4;codecs\x3d"mp4a.40.2"';_.Yc="audiobufferchanged";
13
13
  _.Zc="audiotrackchanged";_.$c="autoplaynotallowed";_.ad="bitratechanged";_.bd="boolean";_.cd="bufferingended";_.dd="bufferingstarted";ed="canplay";fd="canplaythrough";_.gd="caption";_.hd="castingstarted";_.id="caststatuschanged";_.jd="castvisibilitychanged";_.kd="cdn-switch-success";_.ld="cenc";_.md="center";nd="certificate-request";od="change";pd="chrome";_.qd="clpp-fill";sd="clpp-hidden";td="clpp-mc-playlist";ud="clpp-visible";vd="clpp.PlayerFleet";_.wd="clpp.cast.CastSender";xd="clpp.drm.HeaderDrm";
14
14
  yd="clpp.drm.eme.AppleEmeManager";zd="clpp.native.Player";Ad="clpp.playlist.McPlaylist";Bd="clpp.utils.Platform";_.Cd="codecs";_.Dd="column-reverse";_.Ed="com.adobe.primetime";_.Fd="com.apple.fps";Gd="com.apple.quicktime.HLS";_.Hd="com.microsoft.playready";Id="com.microsoft.playready.recommendation";_.Jd="com.widevine.alpha";_.Kd="config.drm.customData is not defined";Ld="controls";_.Md="cuechange";_.Nd="decoder";_.Od="destroy()";_.Qd="disabled";_.Sd="div";Td="drm.license.req.";Ud="drm.mediaKeys.end";
15
- Vd="drm.mediaKeys.start";Wd="drm.onPlay.end";Xd="drm.onPlay.start";Yd="drm.sess.update.";_.Zd="drmexpirationupdate";$d="drmlicenserequested";ae="drmrenewalstarted";be="drmsessioncreated";_.ce="drmsessionpersisted";_.de="drmsessionupdate";ee="drmtoday";fe="durationchange";_.ge="ec-3";he="encrypted";_.ie="end";_.ke="ended";_.le="error";_.me="estimatedThroughputKbps";_.ne="forced";oe="fullscreenElement";_.pe="function";_.qe="height";_.re="hidden";_.se="html";_.te="https://";_.ue="image";_.ve="internal-error";
16
- we="keystatuseschange";_.xe="left";ye="license-renewal";ze="license-request";_.Ae="line-left";_.Be="line-right";_.Ce="live-turned-static";_.De="load";_.Ee="loadeddata";_.Fe="loadedmetadata";Ge="loadstart";_.He="main";_.Ie="mdat";_.Je="mdia";_.Ke="message";_.Le="metadata";_.Me="mimeType";_.Ne="minf";_.Oe="moov";_.Pe="mpd-type-changed";_.Qe="mpeg-dash-callback-event";_.Re="none";_.h="number";_.Te="object";_.Ue="onBitrateChanged()";_.Ve="onContentLoaded";_.We="onPlayerError()";_.Xe="onPlayerWillDestroy";
17
- _.Ye="onPlayerWillRelease";_.Ze="onStateChanged()";$e="online-status-changed";_.af="optional";_.bf="org.w3.clearkey";_.cf="output-restricted";_.df="pause";_.ef="persistent";_.ff="persistent-license";gf="picture-in-picture";_.hf="play";jf="player.afterLoad.end";kf="player.afterLoad.start";lf="player.appendLoad.end";mf="player.appendLoad.start";nf="player.beforeLoad.end";of="player.beforeLoad.start";pf="player.open.end";qf="player.open.start";rf="player.setupPlaylist.end";sf="player.setupPlaylist.start";
18
- _.tf="playerstatechanged";_.uf="playing";_.vf="playlist-item-changed";_.wf="playlist-modified";xf="playlist.next.end";yf="playlist.next.start";zf="preload-aborted";Af="preload-failed";Bf="preloaded";Cf="preloading";_.Ef="prevent";Gf="primary-content";_.If="progress";_.Jf="px";_.Kf="ratechange";Lf="released";_.Mf="releasing";Nf="removetrack";_.Of="required";_.Pf="resize";_.Qf="right";_.Rf="sc-playlist-ended";_.Sf="sc-playlist-item-changed";_.Tf="sc-playlist-live-turned-static";_.Uf="sc-playlist-timeline-changed";
19
- _.Vf="seeked";_.Wf="seeking";_.Xf="showing";_.Yf="simid-creative-started";_.Zf="simid-creative-stopped";_.$f="sinf";_.ag="smooth";bg="stalled";_.cg="start";dg="statechanged";eg="status-pending";_.fg="stbl";_.gg="string";_.hg="stsd";_.ig="style";_.jg="subtitle";_.kg="subtitles-htmlcue";lg="temporary";_.mg="text";_.ng="text/vtt";_.og="text/xml";_.pg="texttrackchanged";_.qg="timeline-cue-added";_.rg="timeline-cue-enter";_.sg="timeline-cue-exit";_.tg="timeline-cues-changed";_.ug="timeupdate";_.vg="tracksadded";
20
- _.wg="trak";_.xg="ttml-xml";yg="unauthenticated";_.zg="und";_.Ag="unknown";Bg="update";_.Cg="urn:scte:scte35";_.Dg="urn:scte:scte35:2014";_.Eg="user-seeked";_.Fg="user-seeking";_.Gg="value";Hg="version";_.Ig="vertical-lr";_.Jg="vertical-rl";_.Lg="video";_.Ng="video/mp2t";_.Og="video/mp4";_.Pg="videobufferchanged";_.Qg="videotrackchanged";_.Rg="vimond-response";_.Sg="visibilitychange";_.Tg="vtt-xml";_.Ug="waiting";_.Vg="waitingforkey";Wg="webkit-org.w3.clearkey";Xg="webkitkeyadded";Yg="webkitkeyerror";
21
- Zg="webkitkeymessage";$g="webkitneedkey";_.ah="width";bh="x-dt-csl-tracking-token";ch="x-dt-follow-up-token";dh="x-dt-resp-code";_.eh="yospace-session-ended";_.fh="yospace-session-started";_.hh=function(a){return function(){return _.gh[a].apply(this,arguments)}};ih=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};_.v=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:ih(a)}};
15
+ Vd="drm.mediaKeys.start";Wd="drm.onPlay.end";Xd="drm.onPlay.start";Yd="drm.sess.update.";_.Zd="drmexpirationupdate";$d="drmlicenserequested";ae="drmrenewalstarted";be="drmsessioncreated";_.ce="drmsessionpersisted";_.de="drmsessionupdate";ee="drmtoday";fe="durationchange";_.ge="ec-3";he="encrypted";_.je="end";_.ke="ended";_.le="error";_.me="estimatedThroughputKbps";_.ne="forced";oe="fullscreenElement";_.pe="function";_.qe="height";_.re="hidden";_.se="html";_.te="https://";_.ue="image";_.ve="internal-error";
16
+ we="keystatuseschange";_.xe="left";ye="license-renewal";ze="license-request";_.Ae="line-left";_.Be="line-right";_.Ce="live-turned-static";_.De="load";_.Ee="loadeddata";_.Fe="loadedmetadata";Ge="loadstart";_.He="main";_.Ie="mdat";_.Je="mdia";_.Ke="message";_.Le="metadata";_.Me="mimeType";_.Ne="minf";_.Oe="moov";_.Pe="mpd-type-changed";_.Qe="mpeg-dash-callback-event";_.Re="native";_.Se="none";_.h="number";_.Ue="object";_.Ve="onBitrateChanged()";_.We="onContentLoaded";_.Xe="onPlayerError()";_.Ye="onPlayerWillDestroy";
17
+ _.Ze="onPlayerWillRelease";_.$e="onStateChanged()";af="online-status-changed";_.bf="optional";_.cf="org.w3.clearkey";_.df="output-restricted";_.ef="pause";_.ff="persistent";_.gf="persistent-license";hf="picture-in-picture";_.jf="play";kf="player.afterLoad.end";lf="player.afterLoad.start";mf="player.appendLoad.end";nf="player.appendLoad.start";of="player.beforeLoad.end";pf="player.beforeLoad.start";qf="player.open.end";rf="player.open.start";sf="player.setupPlaylist.end";tf="player.setupPlaylist.start";
18
+ _.uf="playerstatechanged";_.vf="playing";_.wf="playlist-item-changed";_.xf="playlist-modified";yf="playlist.next.end";zf="playlist.next.start";Af="preload-aborted";Bf="preload-failed";Cf="preloaded";Df="preloading";_.Ff="prevent";Hf="primary-content";_.Jf="progress";_.Kf="px";_.Lf="ratechange";Mf="released";_.Nf="releasing";Of="removetrack";_.Pf="required";_.Qf="resize";_.Rf="right";_.Sf="sc-playlist-ended";_.Tf="sc-playlist-item-changed";_.Uf="sc-playlist-live-turned-static";_.Vf="sc-playlist-timeline-changed";
19
+ _.Wf="seeked";_.Xf="seeking";_.Yf="showing";_.Zf="simid-creative-started";_.$f="simid-creative-stopped";_.ag="sinf";_.bg="smooth";cg="stalled";_.dg="start";eg="statechanged";fg="status-pending";_.gg="stbl";_.hg="string";_.ig="stsd";_.jg="style";_.kg="subtitle";lg="temporary";_.mg="text";_.ng="text/vtt";_.og="text/xml";_.pg="texttrackchanged";_.qg="timeline-cue-added";_.rg="timeline-cue-enter";_.sg="timeline-cue-exit";_.tg="timeline-cues-changed";_.ug="timeupdate";_.vg="tracksadded";_.wg="trak";
20
+ _.xg="ttml-xml";yg="unauthenticated";_.zg="und";_.Ag="unknown";Bg="update";_.Cg="urn:scte:scte35";_.Dg="urn:scte:scte35:2014";_.Eg="user-seeked";_.Fg="user-seeking";_.Gg="value";Hg="version";_.Ig="vertical-lr";_.Jg="vertical-rl";_.Kg="video";_.Mg="video/mp2t";_.Og="video/mp4";_.Pg="videobufferchanged";_.Qg="videotrackchanged";_.Rg="vimond-response";_.Sg="visibilitychange";_.Tg="vtt-xml";_.Ug="waiting";_.Vg="waitingforkey";Wg="webkit-org.w3.clearkey";Xg="webkitkeyadded";Yg="webkitkeyerror";Zg="webkitkeymessage";
21
+ $g="webkitneedkey";_.ah="width";bh="x-dt-csl-tracking-token";ch="x-dt-follow-up-token";dh="x-dt-resp-code";_.eh="yospace-session-ended";_.fh="yospace-session-started";_.hh=function(a){return function(){return _.gh[a].apply(this,arguments)}};ih=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};_.v=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:ih(a)}};
22
22
  _.jh=function(a){if(!(a instanceof Array)){a=_.v(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a};_.w=function(a,b){a.prototype=kh(b.prototype);a.prototype.constructor=a;if(lh)lh(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]};
23
23
  oh=function(a,b){if(b){for(var c=mh,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];f in c||(c[f]={});c=c[f]}d=d[d.length-1];e=c[d];f=b(e);f!=e&&null!=f&&nh(c,d,{configurable:!0,writable:!0,value:f})}};ph=function(){ph=function(){};mh.Symbol||(mh.Symbol=qh)};rh=function(a,b){this.a=a;nh(this,"description",{configurable:!0,writable:!0,value:b})};
24
24
  th=function(){ph();var a=mh.Symbol.iterator;a||(a=mh.Symbol.iterator=mh.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.pe&&nh(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return sh(ih(this))}});th=function(){}};sh=function(a){th();a={next:a};a[mh.Symbol.iterator]=function(){return this};return a};uh=function(){this.w=!1;this.l=null;this.f=void 0;this.a=1;this.j=this.o=0;this.B=this.h=null};vh=function(a){if(a.w)throw new TypeError("Generator is already running");a.w=!0};
25
- wh=function(a,b){a.h={oi:b,Ti:!0};a.a=a.o||a.j};_.x=function(a,b,c){a.a=c;return{value:b}};_.z=function(a){a.a=0};_.F=function(a,b,c){a.o=b;void 0!=c&&(a.j=c)};xh=function(a,b){a.o=0;a.j=b||0};_.G=function(a,b){a.a=b;a.o=0};_.H=function(a){a.o=0;var b=a.h.oi;a.h=null;return b};_.yh=function(a){a.B=[a.h];a.o=0;a.j=0};_.zh=function(a){var b=a.B.splice(0)[0];(b=a.h=a.h||b)?b.Ti?a.a=a.o||a.j:void 0!=b.C&&a.j<b.C?(a.a=b.C,a.h=null):a.a=a.j:a.a=0};Ah=function(a){this.a=new uh;this.f=a};
25
+ wh=function(a,b){a.h={pi:b,Ui:!0};a.a=a.o||a.j};_.x=function(a,b,c){a.a=c;return{value:b}};_.z=function(a){a.a=0};_.F=function(a,b,c){a.o=b;void 0!=c&&(a.j=c)};xh=function(a,b){a.o=0;a.j=b||0};_.G=function(a,b){a.a=b;a.o=0};_.H=function(a){a.o=0;var b=a.h.pi;a.h=null;return b};_.yh=function(a){a.B=[a.h];a.o=0;a.j=0};_.zh=function(a){var b=a.B.splice(0)[0];(b=a.h=a.h||b)?b.Ui?a.a=a.o||a.j:void 0!=b.C&&a.j<b.C?(a.a=b.C,a.h=null):a.a=a.j:a.a=0};Ah=function(a){this.a=new uh;this.f=a};
26
26
  Dh=function(a,b){vh(a.a);var c=a.a.l;if(c)return Bh(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return Ch(a)};Bh=function(a,b,c,d){try{var e=b.call(a.a.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.a.w=!1,e;var f=e.value}catch(g){return a.a.l=null,wh(a.a,g),Ch(a)}a.a.l=null;d.call(a.a,f);return Ch(a)};
27
- Ch=function(a){for(;a.a.a;)try{var b=a.f(a.a);if(b)return a.a.w=!1,{value:b.value,done:!1}}catch(c){a.a.f=void 0,wh(a.a,c)}a.a.w=!1;if(a.a.h){b=a.a.h;a.a.h=null;if(b.Ti)throw b.oi;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
27
+ Ch=function(a){for(;a.a.a;)try{var b=a.f(a.a);if(b)return a.a.w=!1,{value:b.value,done:!1}}catch(c){a.a.f=void 0,wh(a.a,c)}a.a.w=!1;if(a.a.h){b=a.a.h;a.a.h=null;if(b.Ui)throw b.pi;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
28
28
  Eh=function(a){this.next=function(b){vh(a.a);a.a.l?b=Bh(a,a.a.l.next,b,a.a.A):(a.a.A(b),b=Ch(a));return b};this["throw"]=function(b){vh(a.a);a.a.l?b=Bh(a,a.a.l["throw"],b,a.a.A):(wh(a.a,b),b=Ch(a));return b};this["return"]=function(b){return Dh(a,b)};th();this[Symbol.iterator]=function(){return this}};Fh=function(a){function b(d){return a.next(d)}function c(d){return a["throw"](d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})};
29
29
  _.I=function(a){return Fh(new Eh(new Ah(a)))};_.J=function(a,b){var c=a.split("."),d=Gh;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};Jh=function(a){return a&&0<=Hh[a]?Hh[a]:Ih};Mh=function(a){if(!a)return _.Kh("clpp.log",Lb+a+da),-1;var b=Lh[a.toUpperCase()];return void 0===b?(_.Kh("clpp.log",Lb+a+da),-1):b};
30
30
  _.L=function(a){(this.tag=a)&&void 0===Hh[a]&&(Hh[a]=-1)};_.Oh=function(a){Nh.info.apply(Nh,arguments)};_.Ph=function(a){Nh.debug.apply(Nh,arguments)};_.Kh=function(a){Nh.warn.apply(Nh,arguments)};_.Qh=function(a){Nh.error.apply(Nh,arguments)};Rh=function(a,b){this.xb=a;this.sourceIndex=b};_.Uh=function(a){if(a){var b=a.a();b in _.Sh?_.Th.warn("Player-Factory '"+b+"' already registered"):(_.Sh[b]=a,_.Th.info("Registered Player-Factory: '"+b+"'"))}};
31
31
  Vh=function(a){return Object.values(_.Sh).find(a)||null};_.Wh=function(a){this.f=a;this.a=null};Xh=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};_.Yh=function(a){this.f=a;this.a=null};Zh=function(a){return 0>=a?Promise.resolve():new Promise(function(b){setTimeout(function(){b()},1E3*a)})};
32
- $h=function(){this.dd=null;this.f=[];this.h=[];this.Ea=new _.L(vd);this.a=null;this.j=!1};ai=function(a){return[a.dd].concat(_.jh(a.f)).filter(function(b){return null!=b})};ci=function(a,b){var c;_.I(function(d){c=function(){return Promise.all(a.f.filter(function(e){return null!=e.$a()}).map(b))};return _.x(d,bi(a,c),0)})};di=function(a,b){var c;return _.I(function(d){c=function(){return Promise.all(ai(a).map(b))};return _.x(d,bi(a,c),0)})};
32
+ $h=function(){this.dd=null;this.f=[];this.h=[];this.Ea=new _.L(vd);this.a=null;this.j=!1};ai=function(a){return[a.dd].concat(_.jh(a.f)).filter(function(b){return null!=b})};ci=function(a,b){var c;_.I(function(d){c=function(){return Promise.all(a.f.filter(function(e){return null!=e.ab()}).map(b))};return _.x(d,bi(a,c),0)})};di=function(a,b){var c;return _.I(function(d){c=function(){return Promise.all(ai(a).map(b))};return _.x(d,bi(a,c),0)})};
33
33
  bi=function(a,b){return _.I(function(c){if(1==c.a)return a.a?_.x(c,a.a,2):c.C(2);a.a=b().then(function(){a.a=null});_.z(c)})};_.O=function(a,b,c,d,e,f){var g=Error.call(this,fi(a,b,c,d));this.message=g.message;"stack"in g&&(this.stack=g.stack);this.severity=a;this.category=b;this.code=c;this.svtaCode=f||M.get(c)||gi;this.data=!d||_.N.ja(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.O)};
34
34
  fi=function(a,b,c,d){a=(a===_.Q?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.N.ja(d))a+=": "+d;else if(null!=d)if(null!=d.message)a+=": "+d.message,delete d.message;else try{a+=": "+JSON.stringify(d)}catch(e){}return a};_.hi=function(a,b){var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=b};
35
35
  _.R=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.stopped=this.a=!1};_.ji=function(){this.a={}};_.ki=function(){this.a=new _.ji};
36
36
  li=function(a,b,c){function d(k){for(var l=_.v(e),m=l.next();!m.done;m=l.next())a.off(b,m.value,d);c(k)}for(var e=[he,"msneedkey",$g,"needkey"],f=_.v(e),g=f.next();!g.done;g=f.next())a.on(b,g.value,d)};_.ni=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)mi(c[b]);a.a.clear()};oi=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};mi=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
37
37
  pi=function(){};_.qi=function(){return!!navigator.userAgent.match(/Edge?\//)};_.si=function(a){return _.ri("Tizen"+(a?" "+String(a):""))};_.ti=function(){return _.ri("Web0S")};_.ui=function(){return _.ri("CrKey")};_.vi=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.si()};_.wi=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.vi()&&1<navigator.maxTouchPoints};_.xi=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};
38
- _.ri=function(a){return(navigator.userAgent||"").includes(a)};Ai=function(){if(yi)return yi;zi||(zi=new _.Yh(function(){yi=null}));(yi=document.querySelector(_.Lg)||document.querySelector(_.Rc))||(yi=document.createElement(_.Lg));zi.ia(1);return yi};Ci=function(a,b){try{return parseInt(b,10)}catch(c){Bi.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
38
+ _.ri=function(a){return(navigator.userAgent||"").includes(a)};Ai=function(){if(yi)return yi;zi||(zi=new _.Yh(function(){yi=null}));(yi=document.querySelector(_.Kg)||document.querySelector(_.Rc))||(yi=document.createElement(_.Kg));zi.ia(1);return yi};Ci=function(a,b){try{return parseInt(b,10)}catch(c){Bi.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
39
39
  Di=function(a){var b={major:-1,name:_.Ag};if(!a)return b;var c=a.replace(/_/g,".");b.name=c;c=c.split(".");1<=c.length&&(b.major=Ci(a,c[0]));2<=c.length&&(b.minor=Ci(a,c[1]));3<=c.length&&(b.patch=Ci(a,c[2]));4<=c.length&&(b.build=Ci(a,c[3]));return b};Ei=function(a,b){if(!a||!b||0===b.length)return!1;for(var c=0;c<b.length;c++)if(0<=a.indexOf(b[c]))return!0;return!1};
40
40
  Oi=function(){var a=Fi();if(!a)return Gi;var b=a.match(/^.+?(?=\))/);if(!b)return Gi;b=b[0];if(Ei(b,["iphone","ipad"]))return Hi;if(Ei(b,["android"]))return Ii;if(Ei(b,["macintosh"]))return Ji;if(Ei(b,["windows nt"]))return Ki;if(Ei(b,["tizen"]))return Li;if(Ei(b,["web0s"]))return Mi;if(Ei(b,["linux"]))return Ni;Bi.warn("Unable to identify OS from user agent: "+a);return Gi};
41
41
  _.Qi=function(){var a=Fi(),b=["ie","edge","opera","firefox","safari",pd];var c=Oi();for(var d=Pi[c],e=0,f=b.length;e<f;e++)if(c=d[b[e]]&&a.match(d[b[e]]))return Di(c[1]);return Di("")};Fi=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
@@ -45,419 +45,420 @@ _.$i=function(a,b,c){c=void 0===c?Infinity:c;return Xi(a,void 0===b?0:b,c,Int32A
45
45
  Xi=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=Ui(a),g=(a.byteOffset||0)+a.byteLength;a=Math.max(0,Math.min((a.byteOffset||0)+b*e,g));c=Math.min(a+Math.max(c*e,0),g);a/=e;return new d(f,a,c/e-a)};Ui=function(a){return a instanceof ArrayBuffer?a:a.buffer};
46
46
  dj=function(a){this.g=new _.L("clpp.native.StateManager");this.m=a;this.a=new _.ki;this.K=this.A=this.f=0;this.w=2;this.L=this.o=this.I=this.G=0;this.j=this.h=this.D=!1;this.H=0;this.l=null;this.J=0;this.M=_.vi();this.B=!1;this.I=Date.now();cj(this)};
47
47
  fj=function(a,b){if(a.f===b)return!1;var c=Date.now(),d=6===a.f;a.A=a.f;a.f=b;11===a.A&&(a.I=c,a.o=0);a.o||(a.o=a.I||c);a.K=c-a.o;a.o=c;6===b?(a.L=a.o,a.w=a.h?1:2,a.g.info("Buffering started. Reason: "+_.S.Uc(a.w,ej)),a.m.trigger(new _.R(_.dd,{detail:{bufferedTimeMS:-1,reason:a.w}}))):d&&(a.G=a.o-a.L,a.g.info("Buffering finished. Reason: "+_.S.Uc(a.w,ej)+". Buffering time: "+a.G+" ms"),a.m.trigger(new _.R(_.cd,{detail:{bufferedTimeMS:a.G,reason:a.w}})));c={currentState:a.f,previousState:a.A,timeSinceLastStateChangeMS:a.K};
48
- if(6===a.f||6===a.A)c.reason=a.w;a.m.trigger(new _.R(_.tf,{detail:c}));return!0};
49
- jj=function(a,b){if(3===a.f)a.g.warn("Player is in error state, aborting any further state checks");else{var c=a.m.isPaused(),d=a.m.isEnded();if(d)a.h||(a.j=!1,fj(a,11));else if(b!==_.ug){var e=a.m.getPosition();e=null!==e&&void 0!==e&&0<=e?a.m.getBufferInfo().Xa(e,!0):-1;a.H=e;e=a.m.getSurface().getMedia();a.l=e?e.readyState:null;a.J=a.m.getPlaybackRate()||1;e=typeof a.l===_.h&&a.l<gj&&e.networkState===hj;var f=typeof a.l===_.h&&0>=a.H&&0===a.f,g=typeof a.l===_.h&&a.l<=gj&&a.j;e=a.h||f||e||g;!a.M||
50
- a.m.isLive()||6!==a.f||e||(f=b===_.Vf&&4===a.l,(g=2===a.A)&&!a.B?e=!0:g||a.B||f||(e=!0));f=!1;e?f=fj(a,6):c?f=fj(a,10):a.D&&(f=fj(a,8));f&&(a.B=!1);a.g.debug("Video state check for event "+b+":: seeking: "+a.h+", waiting: "+a.j+", playing: "+a.D+", paused: "+c+", readyState: "+a.l+", rate: "+a.J+", buffer: "+a.H+", ended: "+d+". Changed state: "+f+", Current state: "+_.S.Uc(a.f,_.ij))}}};
51
- cj=function(a){function b(d){return jj(a,d.type)}a.g.debug("Start watching for video events for "+a.m.namespace());var c=a.m;a.a.on(c,_.ke,function(){a.h||(a.j=!1,fj(a,11))});a.a.on(c,ed,b);a.a.on(c,_.uf,function(){a.D=!0;a.j=!1;jj(a,_.uf)});a.a.on(c,_.df,function(){a.D=!1;a.j=!1;jj(a,_.df)});a.a.on(c,_.ug,b);a.a.on(c,_.Kf,b);a.a.on(c,_.Vf,function(d){a.h=!1;a.j=!1;jj(a,d.type)});a.a.on(c,_.Wf,function(d){a.h=!0;jj(a,d.type)});a.a.on(c,bg,b);a.a.on(c,_.Ug,function(){a.j=!0;jj(a,_.Ug)});a.a.on(c,_.le,
48
+ if(6===a.f||6===a.A)c.reason=a.w;a.m.trigger(new _.R(_.uf,{detail:c}));return!0};
49
+ jj=function(a,b){if(3===a.f)a.g.warn("Player is in error state, aborting any further state checks");else{var c=a.m.isPaused(),d=a.m.isEnded();if(d)a.h||(a.j=!1,fj(a,11));else if(b!==_.ug){var e=a.m.getPosition();e=null!==e&&void 0!==e&&0<=e?a.m.getBufferInfo().Ya(e,!0):-1;a.H=e;e=a.m.getSurface().getMedia();a.l=e?e.readyState:null;a.J=a.m.getPlaybackRate()||1;e=typeof a.l===_.h&&a.l<gj&&e.networkState===hj;var f=typeof a.l===_.h&&0>=a.H&&0===a.f,g=typeof a.l===_.h&&a.l<=gj&&a.j;e=a.h||f||e||g;!a.M||
50
+ a.m.isLive()||6!==a.f||e||(f=b===_.Wf&&4===a.l,(g=2===a.A)&&!a.B?e=!0:g||a.B||f||(e=!0));f=!1;e?f=fj(a,6):c?f=fj(a,10):a.D&&(f=fj(a,8));f&&(a.B=!1);a.g.debug("Video state check for event "+b+":: seeking: "+a.h+", waiting: "+a.j+", playing: "+a.D+", paused: "+c+", readyState: "+a.l+", rate: "+a.J+", buffer: "+a.H+", ended: "+d+". Changed state: "+f+", Current state: "+_.S.Uc(a.f,_.ij))}}};
51
+ cj=function(a){function b(d){return jj(a,d.type)}a.g.debug("Start watching for video events for "+a.m.namespace());var c=a.m;a.a.on(c,_.ke,function(){a.h||(a.j=!1,fj(a,11))});a.a.on(c,ed,b);a.a.on(c,_.vf,function(){a.D=!0;a.j=!1;jj(a,_.vf)});a.a.on(c,_.ef,function(){a.D=!1;a.j=!1;jj(a,_.ef)});a.a.on(c,_.ug,b);a.a.on(c,_.Lf,b);a.a.on(c,_.Wf,function(d){a.h=!1;a.j=!1;jj(a,d.type)});a.a.on(c,_.Xf,function(d){a.h=!0;jj(a,d.type)});a.a.on(c,cg,b);a.a.on(c,_.Ug,function(){a.j=!0;jj(a,_.Ug)});a.a.on(c,_.le,
52
52
  function(d){(d=d&&d.detail)&&d.severity&&d.severity===_.Q&&fj(a,3)});a.a.on(c,_.Fe,b);a.a.on(c,fd,function(){a.B=!0;jj(a,fd)});a.a.on(c,_.Fg,function(d){a.h=!0;jj(a,d.type)});a.a.on(c,_.Eg,function(d){a.h=!1;a.j=!1;jj(a,d.type)})};kj=function(a){this.m=a;this.l=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.j=new _.ki;this.f=new Set;this.a=new Set;this.h=null;this.g=new _.L("clpp.native.Metadata")};mj=function(a,b){a.j.on(b,_.Cc,function(c){c=c.track;c.kind===_.Le&&lj(a,c)})};
53
53
  lj=function(a,b){a.g.debug("onMetadataTrackAdded_()");b.mode=_.re;var c=!b.cues||0===b.cues.length;if(a.m.isLive()||!c){var d=b.cues;c=nj(d);oj(c);a.a=pj(c,a.l);0<a.a.size&&(qj(a,a.a),a.m.trigger(new _.R(_.tg)));a.j.on(b,_.Md,function(){for(var e=a.m.getPosition(),f=_.v(a.a),g=f.next();!g.done;g=f.next()){var k,l=a;g=g.value;if(Infinity===g.endTime){if(k=!l.f.has(g)){k=g.startTime;var m=k+.5;k=k<=e&&e<=m}k&&(l.f.add(g),l.m.trigger(new _.R(_.rg,{detail:g})))}else k=g.startTime<=e&&e<=g.endTime,!k&&
54
54
  l.f.has(g)?(l.f["delete"](g),l.m.trigger(new _.R(_.sg,{detail:g}))):k&&!l.f.has(g)&&(l.f.add(g),l.m.trigger(new _.R(_.rg,{detail:g})))}});a.m.isLive()&&(a.h=setInterval(function(){if(b.cues){var e=a.m.getSeekRange().start;for(var f=[],g=_.v(b.cues),k=g.next();!k.done;k=g.next())k=k.value,k.endTime<e&&f.push(k);rj(a,b,f);0<f.length&&a.g.debug("Evicted "+f.length+" old cues.");g=_.v(a.a);for(k=g.next();!k.done;k=g.next())k=k.value,k.endTime<e&&a.a["delete"](k);e=0<f.length}else e=!1;sj(a,b);f=nj(d);
55
55
  var l=pj(f,a.l);g=new Set;k=!1;l=_.v(l);for(var m=l.next();!m.done;m=l.next()){m=m.value;var n=tj(a,m);n?(m.customAttributes&&(n.customAttributes=_.N.ta(n.customAttributes||{},m.customAttributes)||void 0),k=!0):(a.a.add(m),g.add(m))}k=0<g.size||k;oj(f);(e||k)&&a.m.trigger(new _.R(_.tg));qj(a,g)},6E3))}};qj=function(a,b){for(var c=_.v(b),d=c.next();!d.done;d=c.next())a.m.trigger(new _.R(_.qg,{detail:d.value}))};
56
- tj=function(a,b){return Array.from(a.a.values()).find(function(c){return b.startTime===c.startTime&&b.endTime===c.endTime})||null};sj=function(a,b){if(b.cues){var c=uj(b.cues).filter(function(l){return l.type===Gd}),d=c.filter(function(l){return l.dh}),e=c.filter(function(l){return!l.dh});c=[];e=_.v(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var g=_.v(d),k=g.next();!k.done;k=g.next())k=k.value,vj(f,k)&&(c.push(f),k.li=f.startTime)}rj(a,b,c);0<c.length&&a.g.debug("Removed "+c.length+" duplicated cues.")}};
57
- rj=function(a,b,c){c=_.v(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;try{b.removeCue(d)}catch(e){a.g.debug("Failed to remove cue",d,e)}}};vj=function(a,b){var c=a.endTime-a.startTime,d=b.endTime-b.startTime,e=a.li||a.startTime,f=b.li||b.startTime;return(Infinity===c&&Infinity===d||.01>Math.abs(c-d))&&.5>Math.abs(e-f)&&a.value.key===b.value.key&&a.value.data===b.value.data};
56
+ tj=function(a,b){return Array.from(a.a.values()).find(function(c){return b.startTime===c.startTime&&b.endTime===c.endTime})||null};sj=function(a,b){if(b.cues){var c=uj(b.cues).filter(function(l){return l.type===Gd}),d=c.filter(function(l){return l.eh}),e=c.filter(function(l){return!l.eh});c=[];e=_.v(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var g=_.v(d),k=g.next();!k.done;k=g.next())k=k.value,vj(f,k)&&(c.push(f),k.mi=f.startTime)}rj(a,b,c);0<c.length&&a.g.debug("Removed "+c.length+" duplicated cues.")}};
57
+ rj=function(a,b,c){c=_.v(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;try{b.removeCue(d)}catch(e){a.g.debug("Failed to remove cue",d,e)}}};vj=function(a,b){var c=a.endTime-a.startTime,d=b.endTime-b.startTime,e=a.mi||a.startTime,f=b.mi||b.startTime;return(Infinity===c&&Infinity===d||.01>Math.abs(c-d))&&.5>Math.abs(e-f)&&a.value.key===b.value.key&&a.value.data===b.value.data};
58
58
  yj=function(a){var b=[],c={};a=_.v(a);for(var d=a.next();!d.done;c={Zd:c.Zd},d=a.next())c.Zd=d.value,(d=b.find(function(e){return function(f){var g=e.Zd;return f.startTime===g.startTime&&f.endTime===g.endTime}}(c)))?wj(c.Zd,d):(d=xj(c.Zd),b.push(d));return b};xj=function(a){var b=a.startTime,c=a.endTime;b={schemeIdUri:"",value:"",startTime:b,endTime:c,id:"T"+b.toFixed(2)+"-"+c.toFixed(2),type:_.zj,eventElement:null};wj(a,b);return b};
59
- wj=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=_.Dg,b.type=_.Aj};oj=function(a){a.forEach(function(b){b.dh=!0})};nj=function(a){return uj(a).filter(function(b){return b.type===Gd&&!b.dh})};uj=function(a){var b=[];a=_.v(a);for(var c=a.next();!c.done;c=a.next())b.push(c.value);return b};
60
- pj=function(a,b){var c=a.map(function(d){return{startTime:d.startTime,endTime:d.endTime,key:d.value.key,value:d.value.data,Ui:!1}});c=Bj(c);b&&(c=Cj(c));return new Set(yj(c))};Bj=function(a){var b=new Set(a),c=new Set(a.filter(function(d){return"SCTE35-OUT"===d.key}).map(Dj));a.filter(function(d){return"SCTE35-IN"===d.key}).forEach(function(d){c.has(Dj(d))||(d.Ui=!0)});return Array.from(b.values())};Cj=function(a){a.forEach(function(b){b.Ui&&(b.endTime=b.startTime,b.startTime=0)});return a};
59
+ wj=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=_.Dg,b.type=_.Aj};oj=function(a){a.forEach(function(b){b.eh=!0})};nj=function(a){return uj(a).filter(function(b){return b.type===Gd&&!b.eh})};uj=function(a){var b=[];a=_.v(a);for(var c=a.next();!c.done;c=a.next())b.push(c.value);return b};
60
+ pj=function(a,b){var c=a.map(function(d){return{startTime:d.startTime,endTime:d.endTime,key:d.value.key,value:d.value.data,Vi:!1}});c=Bj(c);b&&(c=Cj(c));return new Set(yj(c))};Bj=function(a){var b=new Set(a),c=new Set(a.filter(function(d){return"SCTE35-OUT"===d.key}).map(Dj));a.filter(function(d){return"SCTE35-IN"===d.key}).forEach(function(d){c.has(Dj(d))||(d.Vi=!0)});return Array.from(b.values())};Cj=function(a){a.forEach(function(b){b.Vi&&(b.endTime=b.startTime,b.startTime=0)});return a};
61
61
  Dj=function(a){return a.startTime+"-"+a.endTime};_.Ej=function(a){return Array.isArray(a)?a:[a]};Fj=function(a,b){return a===b?!0:a.length===b.length&&a.every(function(c,d){return c===b[d]})};Hj=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 Gj(a,b)&&Gj(b,a)};Gj=function(a,b){var c=new Set(a);return b.every(function(d){return c.has(d)})};
62
- _.Ij=function(a,b){b=void 0===b?{}:b;if(b.fi){for(var c=[],d={},e=_.v(a),f=e.next();!f.done;d={ef:d.ef},f=e.next())d.ef=f.value,c.some(function(g){return function(k){return b.fi(g.ef,k)}}(d))||c.push(d.ef);return c}return Array.from((new Set(a)).values())};Jj=function(a,b){var c=new Set(a),d=new Set(b);return{Ko:a.filter(function(e){return!d.has(e)}),iq:a.filter(function(e){return d.has(e)}),qk:b.filter(function(e){return!c.has(e)})}};
62
+ _.Ij=function(a,b){b=void 0===b?{}:b;if(b.gi){for(var c=[],d={},e=_.v(a),f=e.next();!f.done;d={ef:d.ef},f=e.next())d.ef=f.value,c.some(function(g){return function(k){return b.gi(g.ef,k)}}(d))||c.push(d.ef);return c}return Array.from((new Set(a)).values())};Jj=function(a,b){var c=new Set(a),d=new Set(b);return{Lo:a.filter(function(e){return!d.has(e)}),kq:a.filter(function(e){return d.has(e)}),rk:b.filter(function(e){return!c.has(e)})}};
63
63
  _.Qj=function(a,b,c,d){d=void 0===d?_.Kj:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.Lj;this.writingMode=_.Mj;this.lineInterpretation=_.Nj;this.line=null;this.lineAlign=_.Oj;this.direction=Pj;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
64
- _.Tj=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.Rj;this.scroll=Sj;this.cssClassList=[];this.writingMode=this.displayAlign=null};Uj=function(a){this.m=a;this.l=a.getTextDisplayer();this.f=this.h=null;this.a=new _.ki;this.j=!1;this.g=new _.L("clpp.native.CueHandler")};
65
- Vj=function(a,b){var c=b.track;c.kind!==_.Le&&(c.mode===_.Xf&&(c.mode=_.re),a.a.on(c,_.Md,function(d){d=d.target||d.srcElement;d.mode=_.re;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.l.append(d,[]))}))};Wj=function(a,b){var c=b||Fj,d=null,e=null,f=!1;return function(g){for(var k=[],l=0;l<arguments.length;++l)k[l]=arguments[l];if(f&&c(k,d))return e;f=!0;d=k;return e=a.apply(null,_.jh(k))}};_.Xj=function(a){return null!=a};
66
- Yj=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}throw new _.hi("No non-null, non-undefined value found");};Zj=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}};
67
- _.bk=function(a,b){var c=[a];var d=ak.apply(_.bk,_.jh(c));if(!d||d.protocol.includes("."))c=b?[a,b]:[a,location.href],c=(d=ak.apply(_.bk,_.jh(c)))?c:null;if(!c)throw new _.O(_.Q,1,1011,{message:"The provided URL is invalid.",url:a,base:b});d=_.v(c);c=d.next().value;d=d.next().value;this.a=new URL(c,d);this.f=a.startsWith("//")};ak=function(a,b){try{return new URL(a,b)}catch(c){return null}};
64
+ _.Tj=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.Rj;this.scroll=Sj;this.cssClassList=[];this.writingMode=this.displayAlign=null};Uj=function(a){this.h=a;this.a=new _.ki;this.f=!1};Vj=function(a,b){var c=b.track;if(c.kind!==_.Le)a.a.on(c,_.Md,function(d){d=d.target||d.srcElement;d.activeCues&&(d=Array.from(d.activeCues).map(a.j),a.h.append(d,[]))})};
65
+ Wj=function(a,b){var c=b||Fj,d=null,e=null,f=!1;return function(g){for(var k=[],l=0;l<arguments.length;++l)k[l]=arguments[l];if(f&&c(k,d))return e;f=!0;d=k;return e=a.apply(null,_.jh(k))}};_.Xj=function(a){return null!=a};Yj=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}throw new _.hi("No non-null, non-undefined value found");};
66
+ Zj=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}};_.bk=function(a,b){var c=[a];var d=ak.apply(_.bk,_.jh(c));if(!d||d.protocol.includes("."))c=b?[a,b]:[a,location.href],c=(d=ak.apply(_.bk,_.jh(c)))?c:null;if(!c)throw new _.O(_.Q,1,1011,{message:"The provided URL is invalid.",url:a,base:b});d=_.v(c);c=d.next().value;d=d.next().value;this.a=new URL(c,d);this.f=a.startsWith("//")};
67
+ ak=function(a,b){try{return new URL(a,b)}catch(c){return null}};
68
68
  _.ck=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;_.S.startsWith(this.path,
69
69
  "/")||(this.path="/"+this.path);this.f=b.search;this.h=b.hash};_.dk=function(a){return a.scheme+"//"+(a.a+(a.port?":"+a.port:"")+a.path+a.h+a.f)};_.ek=function(a,b,c){return a?(c||Object.keys(a).sort()).reduce(function(d,e){if(!(e in a))return d;var f=a[e],g="\x26";""===d&&(g=b?"":"?");d=d+g+encodeURIComponent(e);return d=d+"\x3d"+encodeURIComponent(void 0===f?"":f)},""):""};
70
70
  _.fk=function(a){var b={};a=a||"";a=a.substring(a.indexOf("?")+1);a=_.v(a.split("\x26"));for(var c=a.next();!c.done;c=a.next()){var d=c.value.split("\x3d");c=decodeURIComponent(d[0]);d=decodeURIComponent(d[1]||"");c&&(b[c]=d)}return b};_.gk=function(a,b){if(a.startsWith("http://")||a.startsWith(_.te))return a;var c=b;b.startsWith("//")&&(c=location.protocol+c);c=new URL(c);c.search="";return(new URL(a,c)).toString()};
71
71
  _.hk=function(a){if(!a)return null;a=(new _.bk(a)).a.pathname.split("/");if(1>a.length)return null;a=a.pop().split(".");return 1>=a.length?null:a.pop().toLowerCase()};kk=function(a,b){for(var c=_.v(ik[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=_.v(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a===_.jk?"":null};
72
72
  _.mk=function(a,b){for(var c=lk[a],d=0;d<c.length;d++)for(var e=0;e<b.length;e++)if(c[d].test(b[e].trim()))return b[e].trim();return a===_.jk?"":null};_.ok=function(a,b,c){return a.map(function(d){d=_.hk(d)||"";return(d=_.nk[b][d])?d:b===_.jk?c&&"vtt"!==c?_.Kc:_.ng:null}).filter(Boolean)[0]||null};_.pk=function(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d};
73
73
  _.U=function(a,b,c,d){d=void 0===d?{}:d;a=a.getAttribute(b);if(!a&&d.required)throw new _.O(_.Q,4,4023,"Required attribute missing: "+b);return a?a.value:c||null};_.qk=function(a,b){return _.U(a,b,void 0,{required:!0})};_.rk=function(a,b){this.name=a;this.value=b};
74
- _.uk=function(a,b,c,d,e,f,g,k,l,m,n,p,q,t,u,y,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;u=void 0===u?null:u;y=void 0===y?function(){return""}:y;this.position=a;this.startTime=b;this.endTime=c;this.Ta=g;this.Ia=d;this.la=e;this.fa=f;this.keyInfo=(void 0===k?null:k)||null;this.Fd=_.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=u;this.Kd=
75
- y?y:function(){return""};this.Na=A};_.vk=function(a,b,c,d,e,f,g,k,l,m,n,p,q,t,u){t=void 0===t?[]:t;_.uk.call(this,a,b,c,d,e,f,g,void 0===k?null:k,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===u?null:u);this.ka=0};wk=function(a){return"com.apple.hls.interstitial"===a||"com.apple.hls.overlay"===a};xk=function(a){if(!a)return!1;var b=!!a[$b];a=!!a[Zb];return(b||a)&&!(b&&a)};
76
- yk=function(a){return a&&a.ASSETS&&Array.isArray(a.ASSETS)?a.ASSETS.every(function(b){return typeof b.URI===_.gg&&typeof b.DURATION===_.h}):!1};zk=function(a){return a.zh&&!(a.once&&a.Oj)&&[0,6].includes(a.state)};Ak=function(a){a=a.customAttributes[Yb];if(!a)return null;try{return JSON.parse(atob(a))}catch(b){return null}};Ck=function(a,b){for(var c=0;c<a.length;c++){var d=a[c],e=c===a.length-1;e&&b===_.Bk||(e?(d.next=[Gf],d.transition={Ja:Gf}):(e=a[c+1].id,d.next=[e],d.transition={Ja:e}))}};
74
+ _.uk=function(a,b,c,d,e,f,g,k,l,m,n,p,q,t,u,y,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;u=void 0===u?null:u;y=void 0===y?function(){return""}:y;this.position=a;this.startTime=b;this.endTime=c;this.Ua=g;this.Ia=d;this.la=e;this.fa=f;this.keyInfo=(void 0===k?null:k)||null;this.Fd=_.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=u;this.Kd=
75
+ y?y:function(){return""};this.Oa=A};_.vk=function(a,b,c,d,e,f,g,k,l,m,n,p,q,t,u){t=void 0===t?[]:t;_.uk.call(this,a,b,c,d,e,f,g,void 0===k?null:k,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===u?null:u);this.ka=0};wk=function(a){return"com.apple.hls.interstitial"===a||"com.apple.hls.overlay"===a};xk=function(a){if(!a)return!1;var b=!!a[$b];a=!!a[Zb];return(b||a)&&!(b&&a)};
76
+ yk=function(a){return a&&a.ASSETS&&Array.isArray(a.ASSETS)?a.ASSETS.every(function(b){return typeof b.URI===_.hg&&typeof b.DURATION===_.h}):!1};zk=function(a){return a.Ah&&!(a.once&&a.Pj)&&[0,6].includes(a.state)};Ak=function(a){a=a.customAttributes[Yb];if(!a)return null;try{return JSON.parse(atob(a))}catch(b){return null}};Ck=function(a,b){for(var c=0;c<a.length;c++){var d=a[c],e=c===a.length-1;e&&b===_.Bk||(e?(d.next=[Hf],d.transition={Ja:Hf}):(e=a[c+1].id,d.next=[e],d.transition={Ja:e}))}};
77
77
  Dk=function(a){var b={};a=a.map(function(g){return g.customAttributes||{}});var c=new Set;a.forEach(function(g){Object.keys(g).forEach(function(k){c.add(k)})});for(var d={},e=_.v(c),f=e.next();!f.done;d={Rb:d.Rb,kf:d.kf},f=e.next())d.Rb=f.value,d.Rb===cc?(d.kf=new Set([]),a.forEach(function(g){return function(k){k[g.Rb]&&k[g.Rb].forEach(function(l){return g.kf.add(l)})}}(d)),b[d.Rb]=Array.from(d.kf)):d.Rb===dc&&(f=a.reduce(function(g){return function(k,l){return l[g.Rb]?k+l[g.Rb]:k}}(d),0),b[d.Rb]=
78
78
  f);return b};Gk=function(a,b){if(0===a.length)return a;var c=new Map;b===_.Ek?a.forEach(function(g){var k=c.get(g.startTime)||[];k.push(g);c.set(g.startTime,k)}):c.set(0,a);for(var d=[],e=_.v(c.values()),f=e.next();!f.done;f=e.next())f=f.value,1===f.length?d.push(f[0]):(f=Fk(f),d.push(f));return d};
79
79
  Fk=function(a){var b=[],c=0;a.forEach(function(f){var g=Math.max(0,f.endTime-f.startTime);c+=g;var k=f.customAttributes[Zb];k&&b.push({type:"list",id:f.id,customAttributes:f.customAttributes,Qc:{URI:k,DURATION:0}});if(k=f.customAttributes[$b])g={type:"uri",id:f.id,customAttributes:f.customAttributes,Qc:{URI:k,DURATION:g}},(f=Ak(f))&&(g.Qc[Yb]=f),b.push(g)});var d=Dk(a);d[ac]={entries:b,oa:[]};var e=a[0];a=a.map(function(f){return f.id}).join("+");return Object.assign({},e,{id:a,endTime:e.startTime+
80
- c,customAttributes:d})};_.Ik=function(a,b){a=_.Hk(a);b=_.Hk(b);return a.split("-")[0]===b.split("-")[0]};_.Hk=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Jk.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};Kk=function(a){if(null!==a&&void 0!==a)return Number(a)};Lk=function(a){return a.reduce(function(b,c){return b+c},0)};
81
- _.Mk=function(a){if(typeof a!==_.gg)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:{Ce:a,$e:b,gp:a*b}};_.Ok=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0,fatalStatusCodes:_.jh(Nk).concat()}};
82
- Pk=function(a,b){a.timeout=b.timeout;a.baseDelay=b.baseDelay;a.backoffFactor=b.backoffFactor;a.fuzzFactor=b.fuzzFactor;a.maxAttempts=b.maxAttempts;a.fatalStatusCodes=b.fatalStatusCodes||_.jh(Nk).concat()};Qk=function(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b};Rk=function(a){var b={};if(!a)return b;a=_.v(a.trim().split("\r\n"));for(var c=a.next();!c.done;c=a.next())if(c=c.value)c=c.split(": "),b[c[0].toLowerCase()]=c.slice(1).join(": ");return b};
83
- _.Tk=function(a,b){_.N.ja(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.Sk,uriIndex:0,method:a.method||"GET",body:a.body||null,headers:Object.assign({},a.headers),allowCrossSiteCredentials:a.allowCrossSiteCredentials||!1,onProgress:a.onProgress||null,onFragment:a.onFragment||null,maxAttempts:a.maxAttempts||1,currentAttempt:0,baseDelay:a.baseDelay||1E3,backoffFactor:a.backoffFactor||2,fuzzFactor:a.fuzzFactor||.5,timeout:a.timeout||0,requestModifiers:a.requestModifiers||
84
- [],responseModifiers:a.responseModifiers||[],startTime:a.startTime||null,endTime:a.endTime||null,contentType:a.contentType||null,licenseRequestType:a.licenseRequestType||null,sessionId:null,bytesRemaining:-1,bytesLoaded:-1,bytesTotal:-1,timescale:a.timescale||null,rateLimitBps:a.rateLimitBps||null,disableFragmentSupport:a.disableFragmentSupport||!1,disableMergedFragments:a.disableMergedFragments||!1,fatalStatusCodes:_.jh(Nk).concat(),requestStartTimestamp:null};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&
85
- Pk(c,b);return c};_.Xk=function(a,b,c,d,e,f,g,k){a={uri:e||d,data:b,headers:a,status:c,timeMs:g,responseStartMs:k,request:f};if(Uk(c))return Vk(a);throw Wk(a);};Uk=function(a){return 200<=a&&299>=a&&202!==a};Vk=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}};
86
- Wk=function(a){a=Vk(a);try{var b=_.S.ve(a.data,!0)}catch(e){b=null}_.Ph("HTTP error text:",b);var c=a.request;c=0<=(c?c.fatalStatusCodes||[]:[]).indexOf(a.status)?_.Q:1;var d=3001;null!=a.status&&(d=3E3+a.status);return new _.O(c,1,1001,{url:a.uri,status:a.status,responseText:b,headers:a.headers,request:a.request,response:a},void 0,d)};Yk=function(a,b){var c=null==b?-1:b;a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};
87
- Zk=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b,0>a.bytesRemaining&&(a.bytesTotal+=-a.bytesRemaining,a.bytesRemaining=0));a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};_.al=function(a){_.$k[a.J]=a};
88
- _.dl=function(a){var b={attemptParameters:_.Ok(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,enableSessionCacheForSkd:!1,ignoreUnrecognizedInitData:!0,Ua:{},widevineVersion:_.Jd};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!==
89
- a.ignoreUnrecognizedInitData&&(b.ignoreUnrecognizedInitData=!!a.ignoreUnrecognizedInitData),typeof a.widevineVersion===_.gg&&0<a.widevineVersion.length&&(b.widevineVersion=a.widevineVersion),a.env)){var c=_.$k[a.env]||null;if(!c)throw _.Ph(_.Ea,_.tb+a.env+_.aa),new _.O(_.Q,6,6015,_.Fa+a.env+"' is missing.");b.Ua=_.bl(c,a.customData)||{};_.S.startsWith(a.env.toLowerCase(),ee)&&(b.enforceSingleSession=!0)}return b};_.fl=function(a,b){return a.length&&b.length?0<_.el(a,b).length:!0};
90
- _.el=function(a,b){if(!a.length)return b;if(!b.length)return a;for(var c=[],d=0;d<a.length;d++)for(var e={},f=0;f<b.length;e={be:e.be},f++)if(a[d].keySystem===b[f].keySystem&&a[d].periodId===b[f].periodId){var g=a[d];f=b[f];var k=[];k=k.concat(g.initData||[]);k=k.concat(f.initData||[]);e.be=_.jh(g.keyIds||[]).concat();f.keyIds&&f.keyIds.length&&f.keyIds.forEach(function(l){return function(m){l.be.includes(m)||l.be.push(m)}}(e));c.push({keySystem:g.keySystem,licenseServerUri:g.licenseServerUri||f.licenseServerUri,
80
+ c,customAttributes:d})};_.Ik=function(a,b){a=_.Hk(a);b=_.Hk(b);return a.split("-")[0]===b.split("-")[0]};Jk=function(a,b){a=_.Hk(a);b=_.Hk(b);var c=a.split("-"),d=b.split("-");return c[0]===d[0]&&1===c.length&&2===d.length};_.Hk=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Kk.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};
81
+ _.Lk=function(a,b){for(var c=_.Hk(a),d=new Set,e=_.v(b),f=e.next();!f.done;f=e.next())d.add(_.Hk(f.value));e=_.v(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,f===c)return f;e=_.v(d);for(f=e.next();!f.done;f=e.next())if(f=f.value,Jk(f,c))return f;e=_.v(d);for(f=e.next();!f.done;f=e.next()){var g=f=f.value,k=c;g=_.Hk(g);k=_.Hk(k);g=g.split("-");k=k.split("-");if(2===g.length&&2===k.length&&g[0]===k[0])return f}d=_.v(d);for(f=d.next();!f.done;f=d.next())if(e=f.value,Jk(c,e))return e;return null};
82
+ Mk=function(a){if(null!==a&&void 0!==a)return Number(a)};Nk=function(a){return a.reduce(function(b,c){return b+c},0)};_.Ok=function(a){if(typeof a!==_.hg)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:{Ce:a,$e:b,hp:a*b}};_.Qk=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0,fatalStatusCodes:_.jh(Pk).concat()}};
83
+ Rk=function(a,b){a.timeout=b.timeout;a.baseDelay=b.baseDelay;a.backoffFactor=b.backoffFactor;a.fuzzFactor=b.fuzzFactor;a.maxAttempts=b.maxAttempts;a.fatalStatusCodes=b.fatalStatusCodes||_.jh(Pk).concat()};Sk=function(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b};Tk=function(a){var b={};if(!a)return b;a=_.v(a.trim().split("\r\n"));for(var c=a.next();!c.done;c=a.next())if(c=c.value)c=c.split(": "),b[c[0].toLowerCase()]=c.slice(1).join(": ");return b};
84
+ _.Vk=function(a,b){_.N.ja(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.Uk,uriIndex:0,method:a.method||"GET",body:a.body||null,headers:Object.assign({},a.headers),allowCrossSiteCredentials:a.allowCrossSiteCredentials||!1,onProgress:a.onProgress||null,onFragment:a.onFragment||null,maxAttempts:a.maxAttempts||1,currentAttempt:0,baseDelay:a.baseDelay||1E3,backoffFactor:a.backoffFactor||2,fuzzFactor:a.fuzzFactor||.5,timeout:a.timeout||0,requestModifiers:a.requestModifiers||
85
+ [],responseModifiers:a.responseModifiers||[],startTime:a.startTime||null,endTime:a.endTime||null,contentType:a.contentType||null,licenseRequestType:a.licenseRequestType||null,sessionId:null,bytesRemaining:-1,bytesLoaded:-1,bytesTotal:-1,timescale:a.timescale||null,rateLimitBps:a.rateLimitBps||null,disableFragmentSupport:a.disableFragmentSupport||!1,disableMergedFragments:a.disableMergedFragments||!1,fatalStatusCodes:_.jh(Pk).concat(),requestStartTimestamp:null};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&
86
+ Rk(c,b);return c};_.Zk=function(a,b,c,d,e,f,g,k){a={uri:e||d,data:b,headers:a,status:c,timeMs:g,responseStartMs:k,request:f};if(Wk(c))return Xk(a);throw Yk(a);};Wk=function(a){return 200<=a&&299>=a&&202!==a};Xk=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}};
87
+ Yk=function(a){a=Xk(a);try{var b=_.S.ve(a.data,!0)}catch(e){b=null}_.Ph("HTTP error text:",b);var c=a.request;c=0<=(c?c.fatalStatusCodes||[]:[]).indexOf(a.status)?_.Q:1;var d=3001;null!=a.status&&(d=3E3+a.status);return new _.O(c,1,1001,{url:a.uri,status:a.status,responseText:b,headers:a.headers,request:a.request,response:a},void 0,d)};$k=function(a,b){var c=null==b?-1:b;a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};
88
+ al=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b,0>a.bytesRemaining&&(a.bytesTotal+=-a.bytesRemaining,a.bytesRemaining=0));a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};_.dl=function(a){_.bl[a.L]=a};
89
+ _.fl=function(a){var b={attemptParameters:_.Qk(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,enableSessionCacheForSkd:!1,ignoreUnrecognizedInitData:!0,Va:{},widevineVersion:_.Jd};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!==
90
+ a.ignoreUnrecognizedInitData&&(b.ignoreUnrecognizedInitData=!!a.ignoreUnrecognizedInitData),typeof a.widevineVersion===_.hg&&0<a.widevineVersion.length&&(b.widevineVersion=a.widevineVersion),a.env)){var c=_.bl[a.env]||null;if(!c)throw _.Ph(_.Ea,_.tb+a.env+_.aa),new _.O(_.Q,6,6015,_.Fa+a.env+"' is missing.");b.Va=_.el(c,a.customData)||{};_.S.startsWith(a.env.toLowerCase(),ee)&&(b.enforceSingleSession=!0)}return b};_.hl=function(a,b){return a.length&&b.length?0<_.gl(a,b).length:!0};
91
+ _.gl=function(a,b){if(!a.length)return b;if(!b.length)return a;for(var c=[],d=0;d<a.length;d++)for(var e={},f=0;f<b.length;e={be:e.be},f++)if(a[d].keySystem===b[f].keySystem&&a[d].periodId===b[f].periodId){var g=a[d];f=b[f];var k=[];k=k.concat(g.initData||[]);k=k.concat(f.initData||[]);e.be=_.jh(g.keyIds||[]).concat();f.keyIds&&f.keyIds.length&&f.keyIds.forEach(function(l){return function(m){l.be.includes(m)||l.be.push(m)}}(e));c.push({keySystem:g.keySystem,licenseServerUri:g.licenseServerUri||f.licenseServerUri,
91
92
  licenseServerUriOrigin:g.licenseServerUriOrigin||f.licenseServerUriOrigin,distinctiveIdentifierRequired:g.distinctiveIdentifierRequired||f.distinctiveIdentifierRequired,persistentStateRequired:g.persistentStateRequired||f.persistentStateRequired,videoRobustness:g.videoRobustness||f.videoRobustness,audioRobustness:g.audioRobustness||f.audioRobustness,serverCertificate:g.serverCertificate||f.serverCertificate,initData:k,keyIds:e.be,periodId:g.periodId});break}return c};
92
- _.gl=function(a){this.f=a;this.a=0};_.hl=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};
93
- _.il=function(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new _.O(_.Q,4,4016,{invalidTag:b});var d=c[1],e=c[2];c=[];var f;if(e){e=new _.gl(e);var g;(g=_.hl(e,/^([^,=]+)(?:,|$)/g))&&g[1]&&(f=g[1].trim());for(var k=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=_.hl(e,k);)c.push(new _.rk(g[1],g[2]||g[3]||""))}return new _.pk(a,d,c,f)};_.jl=function(){this.a=[]};_.ll=function(a,b){a.a.push(kl(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};
94
- _.ml=function(){var a,b,c=new Promise(function(e,f){a=e;b=f}),d=Object.assign(c,{done:!1,gh:!1,Ho:!1,value:null,error:null,resolve:function(e){d.gh=!0;d.done=!0;d.value=e;a(e)},reject:function(e){d.Ho=!0;d.done=!0;d.error=e;b(e)}});return d};nl=function(a){this.f=new Uint8Array(a);this.a=0};
95
- ol=function(a,b,c){b=void 0===b?0:b;c=void 0===c?a.a-b:c;if(0>b||b>a.a)throw new RangeError("getDataView: start "+b+ca+a.a+"]");if(0>c||b+c>a.a)throw new RangeError("getDataView: length "+c+ca+(a.a-b)+"]");return new DataView(a.f.buffer,b,c)};pl=function(a){this.o=a;this.f=this.a=this.h=0;this.j=null;this.l=-1};
96
- rl=function(a){if(0<=a.l&&a.f<a.l)return null;for(var b=ql(a);null!==b;){if(b.name===_.Ie){var c={start:a.h,end:b.end,length:b.end-a.h,data:ol(a.o,a.h,b.end-a.h),count:1};a.h=b.end;return c}b=ql(a)}return null};
97
- ql=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=sl(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=sl(a);d=String.fromCharCode(d>>24&255,d>>16&255,d>>8&255,d&255);switch(c){case 0:c=a.f-b;break;case 1:if(a.a+8>=a.f)return a.a=a.f,null;try{var e=a.j.getUint32(a.a,!1);var f=a.j.getUint32(a.a+4,!1)}catch(g){throw new _.O(_.Q,3,3E3);}if(2097151<e)throw new _.O(_.Q,3,3E3);a.a+=8;c=e*Math.pow(2,32)+f}c=b+c;a.l=c;return a.f>=c?(a.a=c,{name:d,start:b,end:c}):null};
98
- sl=function(a){var b=a.j.getUint32(a.a,!1);a.a+=4;return b};ul=function(){this.a=tl()};vl=function(a){var b=new ul;b.a=a.a;return b};tl=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};wl=function(a,b){b=void 0===b?!0:b;this.a=new nl(a||1048576);this.f=new pl(this.a);this.j=b;this.h=a};
99
- yl=function(a,b,c,d){var e,f,g,k,l;return _.I(function(m){switch(m.a){case 1:e=new ul,f=!1,Yk(c,a.h);case 2:if(f){m.C(3);break}return _.x(m,b.read(),4);case 4:g=m.f;if(g.done){f=!0;m.C(3);break}k=g.value;a.a.append(k);l=tl()-e.a;e.a=tl();Zk(c,k.byteLength,l);if(!d){m.C(2);break}return _.x(m,xl(a,d),2);case 3:return m["return"](a.a.get())}})};
100
- xl=function(a,b){var c,d,e,f,g,k,l,m,n,p,q;return _.I(function(t){if(1==t.a){var u=a.f;u.a=u.h;u.j=ol(u.o);u.f=u.j.byteLength;c=rl(a.f);for(d=[];c;)d.push(c),c=rl(a.f);if(0===d.length)return t["return"]();if(a.j)return l=d[0],1<d.length&&(m=d[0],n=d[d.length-1],p=n.end-m.start,l={start:m.start,end:n.end,length:p,data:ol(a.a,m.start,p),count:d.length}),(q=b(l))?_.x(t,q,0):t.C(0);e=_.v(d);f=e.next()}if(5!=t.a){if(f.done)return t.C(0);g=f.value;return(k=b(g))?_.x(t,k,5):t.C(5)}f=e.next();return t.C(4)})};
101
- Al=function(a){var b=new window.Headers,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new window.AbortController,e={ie:!1,Uj:!1};b={U:zl(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.ie||(e.ie=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.Uj=!0;d.abort()},a);b.U=b.U["finally"](function(){window.clearTimeout(f)})}return b};
102
- zl=function(a,b,c,d){var e,f,g,k,l,m,n,p,q,t,u,y,A;return _.I(function(D){switch(D.a){case 1:return e=new ul,_.F(D,2),_.Ph("sending Fetch request",c.method,a),_.x(D,window.fetch(a,c),4);case 4:f=D.f;g=Qk(f.headers);k={uri:f.url,data:null,headers:g,status:f.status,timeMs:0,responseStartMs:tl()-e.a,request:b};if(Uk(f.status)){D.C(5);break}l=k;return _.x(D,f.arrayBuffer(),6);case 6:throw l.data=D.f,k.timeMs=tl()-e.a,Wk(k);case 5:return m=f.headers.get(Ca),n=_.S.Vj(m),p=f.body.getReader(),q=new wl(n,
103
- !b.disableMergedFragments),t=null,(u=Bl(b,f))&&(t=function(B){if(!d.ie)return b.onFragment(B)}),y=k,_.x(D,yl(q,p,b,t),7);case 7:y.data=D.f;if(d.ie)throw Error("Request was aborted");k.timeMs=tl()-e.a;return D["return"](Vk(k));case 2:A=_.H(D);if(d.ie)throw new _.O(1,1,7001,{url:a,request:b});if(d.Uj)throw new _.O(1,1,1003,{url:a,request:b});if(A&&1001===A.code)throw A;_.Qh("Error while fetching data:",A);throw new _.O(1,1,1002,{url:a,error:A,request:b,status:-1},A);}})};
104
- Bl=function(a,b){var c=b.headers.get(_.Da);c=c?c.split(";")[0].trim():null;return!(c!==_.Og&&c!==_.Wc&&c!==_.Kc||!a.onFragment||a.disableFragmentSupport||2!==a.type)};
105
- Cl=function(a){var b=a.uris[a.uriIndex],c=new window.XMLHttpRequest,d=new ul,e=vl(d),f=0,g,k=new _.ml;c.open(a.method,b,!0);c.responseType="arraybuffer";c.timeout=a.timeout;c.withCredentials=a.allowCrossSiteCredentials;var l=!1,m=!1;c.onreadystatechange=function(){c.readyState>=XMLHttpRequest.LOADING&&0===f&&(g=tl()-e.a);if(c.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!l){var p=c.getResponseHeader(Ca);Yk(a,_.S.Vj(p));l=!0}};c.onload=function(){var p,q,t,u;return _.I(function(y){p=Rk(c.getAllResponseHeaders());
106
- try{q=c.response,t=tl()-e.a,m||Zk(a,q?q.byteLength:0,t),u=_.Xk(p,q,c.status,b,c.responseURL,a,t,g),k.resolve(u)}catch(A){k.reject(A)}_.z(y)})};c.onerror=function(){if(0>=c.status)k.reject(new _.O(1,1,1002,{url:b,request:a,status:c.status}));else{var p=Rk(c.getAllResponseHeaders());p=_.Xk(p,c.response,c.status,b,c.responseURL,a,tl()-e.a,g);k.resolve(p)}};c.ontimeout=function(){k.reject(new _.O(1,1,1003,{url:b,request:a}))};c.onprogress=function(p){var q=tl()-d.a;p.lengthComputable&&(100<q||p.loaded>=
107
- p.total)&&(d.a=tl(),Zk(a,p.loaded-f,q),f=p.loaded,m=!0)};for(var n in a.headers)c.setRequestHeader(n.toLowerCase(),a.headers[n]);_.Ph("sending XHR request",a.method,b);c.send(a.body);return{U:k,request:a,abort:function(){c.abort();k.reject(new _.O(1,1,7001,{url:b,request:a}));return Promise.resolve()}}};Dl=function(){};_.Fl=function(a,b){b=void 0===b?!0:b;var c=_.El(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")};
108
- _.Gl=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};_.Hl=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};_.Il=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};
109
- _.Jl=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};_.Kl=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};_.El=function(a){a=_.S.fromCharCode(_.Vi(a));return btoa(a)};
110
- Ml=function(a){try{var b=a.uris[a.uriIndex],c=_.Ll(b);return{U:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{U:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
111
- _.Ll=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.Qh("Bad data URI, failed to parse scheme"),new _.O(_.Q,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.Qh("Bad data URI, failed to extract encoding and MIME type"),new _.O(_.Q,1,1004,{uri:a});var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"===b[b.length-1]&&(d=!0,b.pop());return{data:d?_.Gl(a).buffer:_.S.sb(a).buffer,contentType:c}};
112
- _.Nl=function(a,b){this.U=a;this.B=b;this.a=!1};kl=function(a,b){a.U.then(function(){return b(!0)},function(){return b(!1)});return a};Pl=function(a,b){_.Nl.call(this,new _.ml,function(){return Promise.resolve()});this.D=a;this.j=null;this.w=this.U;this.h=-1;this.f=this.l=this.o=null;this.A=b||null;Ol(this)};Ql=function(a,b,c){a.o=setTimeout(b,c)};
113
- Ol=function(a){a.j=a.D.then(function(e){a.f=e.request;e.request.uriIndex=e.request.currentAttempt%e.request.uris.length;if(0<e.request.currentAttempt){-1===a.h&&(a.h=Rl(e.request.baseDelay,1E3));var f=a.h*(1+(2*Math.random()-1)*Rl(e.request.fuzzFactor,.5));a.h*=Rl(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,k){a.l=k;Ql(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});
114
- return e.plugin(e.request)});var b=0,c=0,d=0;return a.j.then(function(e){var f=e.request;f.currentAttempt+=1;b=f.currentAttempt;c=f.maxAttempts;d=f.uris.length;return e.U}).then(function(e){a.w.resolve(e)})["catch"](function(e){if(e instanceof _.O){var f=b<d,g=7001!==e.code,k=b<c;if((1===e.severity||f)&&g&&k)return e.a(1),a.A&&a.A(e),Ol(a);g&&e.a(_.Q);a.w.reject(e)}else a.w.reject(e)})};Rl=function(a,b){return null===a||void 0===a?b:a};
115
- _.Tl=function(){this.f=[];this.a=[];this.h=[];this.w=!1;this.o=new _.jl;this.l={};this.headers=new Map;this.j=0;this.A=null;this.l.data=Ml;Sl(this)};Ul=function(a,b){Sl(a,b.forceXhr)};Sl=function(a,b){var c=(void 0===b?0:b)||!window.fetch||!window.AbortController||_.si(6)||_.ti()&&68<_.Si().browserVersion.major?Cl:Al;a.l.http=c;a.l.https=c};Vl=function(a,b){a.A=b};Wl=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return c=_.S,_.x(e,a.fetch(b),2);d=e.f;return e["return"](c.ej(c.ga(d.data)))})};
116
- Xl=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.x(e,Wl(a,b),2);c=e.f;if(!c)return e["return"](null);try{d=JSON.parse(c);if(null==d||typeof d!==_.Te)throw Error("Not an object");return e["return"](d)}catch(f){throw new _.hi("Failed to parse JSON response","json-failed");}})};
117
- _.$l=function(a,b,c){if(a.w)return new Pl(Promise.reject(new _.O(1,1,7001,{url:b.uris[b.uriIndex],request:b})));a.j&&0<a.j&&(b.rateLimitBps=a.j);for(var d=[],e=_.v(a.f),f=e.next();!f.done;f=e.next())d.push(f.value);if(b.requestModifiers)for(e=_.v(b.requestModifiers),f=e.next();!f.done;f=e.next())d.push(f.value);b.requestModifiers=d;Yl(a,b);b.responseModifiers=_.jh(a.h).concat(_.jh(b.responseModifiers||[]));f=d=new _.ml;try{e={};for(var g=_.v([{type:"public",modifiers:b.requestModifiers},{type:"internal",
118
- modifiers:a.a}]),k=g.next();!k.done;e={hf:e.hf},k=g.next()){e.hf=k.value;for(var l={},m=_.v(e.hf.modifiers),n=m.next();!n.done;l={gf:l.gf},n=m.next())l.gf=n.value,f=f.then(function(t,u){return function(y){if(p.a)throw new _.O(_.Q,1,7001,y?{url:y.uris[y.uriIndex],request:y}:null);return"internal"===t.hf.type?u.gf(y,c)||y:u.gf(y)||y}}(e,l))["catch"](function(t){if(t instanceof _.O)throw t;throw new _.O(_.Q,1,1006,null,t);})}f=f.then(function(t){return{request:t,plugin:Zl(a,t)}});var p=new Pl(f,a.A);
93
+ _.il=function(a){this.f=a;this.a=0};_.jl=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};
94
+ _.kl=function(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new _.O(_.Q,4,4016,{invalidTag:b});var d=c[1],e=c[2];c=[];var f;if(e){e=new _.il(e);var g;(g=_.jl(e,/^([^,=]+)(?:,|$)/g))&&g[1]&&(f=g[1].trim());for(var k=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=_.jl(e,k);)c.push(new _.rk(g[1],g[2]||g[3]||""))}return new _.pk(a,d,c,f)};_.ll=function(){this.a=[]};_.nl=function(a,b){a.a.push(ml(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};
95
+ _.ol=function(){var a,b,c=new Promise(function(e,f){a=e;b=f}),d=Object.assign(c,{done:!1,hh:!1,Io:!1,value:null,error:null,resolve:function(e){d.hh=!0;d.done=!0;d.value=e;a(e)},reject:function(e){d.Io=!0;d.done=!0;d.error=e;b(e)}});return d};pl=function(a){this.f=new Uint8Array(a);this.a=0};
96
+ ql=function(a,b,c){b=void 0===b?0:b;c=void 0===c?a.a-b:c;if(0>b||b>a.a)throw new RangeError("getDataView: start "+b+ca+a.a+"]");if(0>c||b+c>a.a)throw new RangeError("getDataView: length "+c+ca+(a.a-b)+"]");return new DataView(a.f.buffer,b,c)};rl=function(a){this.o=a;this.f=this.a=this.h=0;this.j=null;this.l=-1};
97
+ tl=function(a){if(0<=a.l&&a.f<a.l)return null;for(var b=sl(a);null!==b;){if(b.name===_.Ie){var c={start:a.h,end:b.end,length:b.end-a.h,data:ql(a.o,a.h,b.end-a.h),count:1};a.h=b.end;return c}b=sl(a)}return null};
98
+ sl=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=ul(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=ul(a);d=String.fromCharCode(d>>24&255,d>>16&255,d>>8&255,d&255);switch(c){case 0:c=a.f-b;break;case 1:if(a.a+8>=a.f)return a.a=a.f,null;try{var e=a.j.getUint32(a.a,!1);var f=a.j.getUint32(a.a+4,!1)}catch(g){throw new _.O(_.Q,3,3E3);}if(2097151<e)throw new _.O(_.Q,3,3E3);a.a+=8;c=e*Math.pow(2,32)+f}c=b+c;a.l=c;return a.f>=c?(a.a=c,{name:d,start:b,end:c}):null};
99
+ ul=function(a){var b=a.j.getUint32(a.a,!1);a.a+=4;return b};wl=function(){this.a=vl()};xl=function(a){return vl()-a.a};yl=function(a){var b=new wl;b.a=a.a;return b};vl=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};zl=function(a,b){b=void 0===b?!0:b;this.a=new pl(a||1048576);this.f=new rl(this.a);this.j=b;this.h=a};
100
+ Bl=function(a,b,c,d){var e,f,g,k,l;return _.I(function(m){switch(m.a){case 1:e=new wl,f=!1,$k(c,a.h);case 2:if(f){m.C(3);break}return _.x(m,b.read(),4);case 4:g=m.f;if(g.done){f=!0;m.C(3);break}k=g.value;a.a.append(k);l=xl(e);e.a=vl();al(c,k.byteLength,l);if(!d){m.C(2);break}return _.x(m,Al(a,d),2);case 3:return m["return"](a.a.get())}})};
101
+ Al=function(a,b){var c,d,e,f,g,k,l,m,n,p,q;return _.I(function(t){if(1==t.a){var u=a.f;u.a=u.h;u.j=ql(u.o);u.f=u.j.byteLength;c=tl(a.f);for(d=[];c;)d.push(c),c=tl(a.f);if(0===d.length)return t["return"]();if(a.j)return l=d[0],1<d.length&&(m=d[0],n=d[d.length-1],p=n.end-m.start,l={start:m.start,end:n.end,length:p,data:ql(a.a,m.start,p),count:d.length}),(q=b(l))?_.x(t,q,0):t.C(0);e=_.v(d);f=e.next()}if(5!=t.a){if(f.done)return t.C(0);g=f.value;return(k=b(g))?_.x(t,k,5):t.C(5)}f=e.next();return t.C(4)})};
102
+ Dl=function(a){var b=new window.Headers,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new window.AbortController,e={ie:!1,Vj:!1};b={U:Cl(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.ie||(e.ie=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.Vj=!0;d.abort()},a);b.U=b.U["finally"](function(){window.clearTimeout(f)})}return b};
103
+ Cl=function(a,b,c,d){var e,f,g,k,l,m,n,p,q,t,u,y,A;return _.I(function(D){switch(D.a){case 1:return e=new wl,_.F(D,2),_.Ph("sending Fetch request",c.method,a),_.x(D,window.fetch(a,c),4);case 4:f=D.f;g=Sk(f.headers);k={uri:f.url,data:null,headers:g,status:f.status,timeMs:0,responseStartMs:xl(e),request:b};if(Wk(f.status)){D.C(5);break}l=k;return _.x(D,f.arrayBuffer(),6);case 6:throw l.data=D.f,k.timeMs=xl(e),Yk(k);case 5:m=f.headers.get(Ca);n=_.S.Wj(m);if(!f.body)return $k(b,0),k.data=new ArrayBuffer(0),
104
+ k.timeMs=xl(e),D["return"](Xk(k));p=f.body.getReader();q=new zl(n,!b.disableMergedFragments);t=null;(u=El(b,f))&&(t=function(B){if(!d.ie)return b.onFragment(B)});y=k;return _.x(D,Bl(q,p,b,t),7);case 7:y.data=D.f;if(d.ie)throw Error("Request was aborted");k.timeMs=xl(e);return D["return"](Xk(k));case 2:A=_.H(D);if(d.ie)throw new _.O(1,1,7001,{url:a,request:b});if(d.Vj)throw new _.O(1,1,1003,{url:a,request:b});if(A&&1001===A.code)throw A;_.Qh("Error while fetching data:",A);throw new _.O(1,1,1002,{url:a,
105
+ error:A,request:b,status:-1},A);}})};El=function(a,b){var c=b.headers.get(_.Da);c=c?c.split(";")[0].trim():null;return!(c!==_.Og&&c!==_.Wc&&c!==_.Kc||!a.onFragment||a.disableFragmentSupport||2!==a.type)};
106
+ Fl=function(a){var b=a.uris[a.uriIndex],c=new window.XMLHttpRequest,d=new wl,e=yl(d),f=0,g,k=new _.ol;c.open(a.method,b,!0);c.responseType="arraybuffer";c.timeout=a.timeout;c.withCredentials=a.allowCrossSiteCredentials;var l=!1,m=!1;c.onreadystatechange=function(){c.readyState>=XMLHttpRequest.LOADING&&0===f&&(g=xl(e));if(c.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!l){var p=c.getResponseHeader(Ca);$k(a,_.S.Wj(p));l=!0}};c.onload=function(){var p,q,t,u;return _.I(function(y){p=Tk(c.getAllResponseHeaders());
107
+ try{q=c.response,t=xl(e),m||al(a,q?q.byteLength:0,t),u=_.Zk(p,q,c.status,b,c.responseURL,a,t,g),k.resolve(u)}catch(A){k.reject(A)}_.z(y)})};c.onerror=function(){if(0>=c.status)k.reject(new _.O(1,1,1002,{url:b,request:a,status:c.status}));else{var p=Tk(c.getAllResponseHeaders());p=_.Zk(p,c.response,c.status,b,c.responseURL,a,xl(e),g);k.resolve(p)}};c.ontimeout=function(){k.reject(new _.O(1,1,1003,{url:b,request:a}))};c.onprogress=function(p){var q=xl(d);p.lengthComputable&&(100<q||p.loaded>=p.total)&&
108
+ (d.a=vl(),al(a,p.loaded-f,q),f=p.loaded,m=!0)};for(var n in a.headers)c.setRequestHeader(n.toLowerCase(),a.headers[n]);_.Ph("sending XHR request",a.method,b);c.send(a.body);return{U:k,request:a,abort:function(){c.abort();k.reject(new _.O(1,1,7001,{url:b,request:a}));return Promise.resolve()}}};Gl=function(){};_.Il=function(a,b){b=void 0===b?!0:b;var c=_.Hl(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")};
109
+ _.Jl=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};_.Kl=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};_.Ll=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};
110
+ _.Ml=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};_.Nl=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};_.Hl=function(a){a=_.S.fromCharCode(_.Vi(a));return btoa(a)};
111
+ Pl=function(a){try{var b=a.uris[a.uriIndex],c=_.Ol(b);return{U:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{U:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
112
+ _.Ol=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.Qh("Bad data URI, failed to parse scheme"),new _.O(_.Q,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.Qh("Bad data URI, failed to extract encoding and MIME type"),new _.O(_.Q,1,1004,{uri:a});var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"===b[b.length-1]&&(d=!0,b.pop());return{data:d?_.Jl(a).buffer:_.S.sb(a).buffer,contentType:c}};
113
+ _.Ql=function(a,b){this.U=a;this.B=b;this.a=!1};ml=function(a,b){a.U.then(function(){return b(!0)},function(){return b(!1)});return a};Sl=function(a,b){_.Ql.call(this,new _.ol,function(){return Promise.resolve()});this.D=a;this.j=null;this.w=this.U;this.h=-1;this.f=this.l=this.o=null;this.A=b||null;Rl(this)};Tl=function(a,b,c){a.o=setTimeout(b,c)};
114
+ Rl=function(a){a.j=a.D.then(function(e){a.f=e.request;e.request.uriIndex=e.request.currentAttempt%e.request.uris.length;if(0<e.request.currentAttempt){-1===a.h&&(a.h=Ul(e.request.baseDelay,1E3));var f=a.h*(1+(2*Math.random()-1)*Ul(e.request.fuzzFactor,.5));a.h*=Ul(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,k){a.l=k;Tl(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});
115
+ return e.plugin(e.request)});var b=0,c=0,d=0;return a.j.then(function(e){var f=e.request;f.currentAttempt+=1;b=f.currentAttempt;c=f.maxAttempts;d=f.uris.length;return e.U}).then(function(e){a.w.resolve(e)})["catch"](function(e){if(e instanceof _.O){var f=b<d,g=7001!==e.code,k=b<c;if((1===e.severity||f)&&g&&k)return e.a(1),a.A&&a.A(e),Rl(a);g&&e.a(_.Q);a.w.reject(e)}else a.w.reject(e)})};Ul=function(a,b){return null===a||void 0===a?b:a};
116
+ _.Wl=function(){this.f=[];this.a=[];this.h=[];this.w=!1;this.o=new _.ll;this.l={};this.headers=new Map;this.j=0;this.A=null;this.l.data=Pl;Vl(this)};Xl=function(a,b){Vl(a,b.forceXhr)};Vl=function(a,b){var c=(void 0===b?0:b)||!window.fetch||!window.AbortController||_.si(6)||_.ti()&&68<_.Si().browserVersion.major?Fl:Dl;a.l.http=c;a.l.https=c};Yl=function(a,b){a.A=b};Zl=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return c=_.S,_.x(e,a.fetch(b),2);d=e.f;return e["return"](c.fj(c.ga(d.data)))})};
117
+ $l=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.x(e,Zl(a,b),2);c=e.f;if(!c)return e["return"](null);try{d=JSON.parse(c);if(null==d||typeof d!==_.Ue)throw Error("Not an object");return e["return"](d)}catch(f){throw new _.hi("Failed to parse JSON response","json-failed");}})};
118
+ _.cm=function(a,b,c){if(a.w)return new Sl(Promise.reject(new _.O(1,1,7001,{url:b.uris[b.uriIndex],request:b})));a.j&&0<a.j&&(b.rateLimitBps=a.j);for(var d=[],e=_.v(a.f),f=e.next();!f.done;f=e.next())d.push(f.value);if(b.requestModifiers)for(e=_.v(b.requestModifiers),f=e.next();!f.done;f=e.next())d.push(f.value);b.requestModifiers=d;am(a,b);b.responseModifiers=_.jh(a.h).concat(_.jh(b.responseModifiers||[]));f=d=new _.ol;try{e={};for(var g=_.v([{type:"public",modifiers:b.requestModifiers},{type:"internal",
119
+ modifiers:a.a}]),k=g.next();!k.done;e={hf:e.hf},k=g.next()){e.hf=k.value;for(var l={},m=_.v(e.hf.modifiers),n=m.next();!n.done;l={gf:l.gf},n=m.next())l.gf=n.value,f=f.then(function(t,u){return function(y){if(p.a)throw new _.O(_.Q,1,7001,y?{url:y.uris[y.uriIndex],request:y}:null);return"internal"===t.hf.type?u.gf(y,c)||y:u.gf(y)||y}}(e,l))["catch"](function(t){if(t instanceof _.O)throw t;throw new _.O(_.Q,1,1006,null,t);})}f=f.then(function(t){return{request:t,plugin:bm(a,t)}});var p=new Sl(f,a.A);
119
120
  g={};var q=_.v(b.responseModifiers);for(n=q.next();!n.done;g={ff:g.ff},n=q.next())g.ff=n.value,p.then(function(t){return function(u){function y(){if(p.a)throw new _.O(_.Q,1,7001,u?{url:u.request.uris[u.request.uriIndex],request:u.request}:null);}y();var A=t.ff(u)||u;y();return A}}(g))["catch"](function(t){return function(u){if(u instanceof _.O&&u.data&&u.data.response){var y=t.ff(u.data.response);if(y&&y.then)return y.then(function(){return Promise.reject(u)})}return Promise.reject(u)}}(g))["catch"](function(t){if(t instanceof
120
- _.O)throw t;throw new _.O(_.Q,1,1007,null,t);});_.ll(a.o,p);d.resolve(b);return p}catch(t){return new Pl(Promise.reject(t))}};am=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.C(2);break}e=_.Tk(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.F(g,4);return _.x(g,a.fetch(e).U,6);case 6:_.G(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)}})};
121
- Yl=function(a,b){for(var c=_.v(a.headers),d=c.next();!d.done;d=c.next()){var e=_.v(d.value);d=e.next().value;e=e.next().value;b.headers[d]||(b.headers[d]=e)}};Zl=function(a,b){var c=b.uris[b.uriIndex],d=new _.bk(c,location.href);d=d?d.a.protocol.slice(0,-1):"";var e=a.l[d];if(!e)throw new _.O(_.Q,1,1E3,{url:c});return function(f){return e(f)}};
122
- _.bm=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=[]};_.cm=function(a){return a&&a!==_.zg?a:null};
123
- hm=function(a){if(!a)throw new _.O(_.Q,3,3101,Wa+a);if(!_.N.ja(a))throw new _.O(_.Q,3,3101,Wa+a+". Track type must be a string!");switch(a.toLowerCase()){case _.dm:return _.dm;case _.em:return _.em;case _.fm:return _.fm;case gm:return gm}throw new _.O(_.Q,3,3101,"Unknown track type: "+a+".");};im=function(a,b,c){a=hm(a);var d=_.cm(c.kind);a=new _.bm(b,d===_.Le?gm:a);a.kind=d;a.label=_.cm(c.label);a.language=_.cm(c.language);a.originalLanguage=c.originalLanguage||a.language;return a};
124
- jm=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};_.km=function(a,b){this.track=b;this.id=a;this.originalId=this.codec=this.fe=this.bandwidth=this.height=this.width=null;this.a=!1};lm=function(a){this.f=a;this.g=new _.L("clpp.native.hls.HlsMetadataParser");this.a=Wj(this.h.bind(this),function(b,c){return b[0]===c[0]&&b[1].enableHlsVideoTrackInfo===c[1].enableHlsVideoTrackInfo&&b[1].enableMetadata===c[1].enableMetadata})};
125
- om=function(a,b,c){var d,e,f,g,k;return _.I(function(l){if(1==l.a)return _.x(l,mm(a,b,c),2);d=l.f;e=d.mimeType;f=d.renditions;g=new _.bm("dummy",_.fm);k=f.map(function(m,n){var p=new _.km("R"+n,g);p.bandwidth=m.bandwidth;p.fe=m.fe;p.codec=m.codec;p.width=m.width;p.height=m.height;return p});nm(k);return l["return"]({renditions:k,mimeType:e||void 0})})};
126
- qm=function(a){a=a.split("\n").filter(function(c){return c.trim().startsWith("#EXT-X-MEDIA:")}).map(function(c){return pm(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};
127
- pm=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.il(0,a);a=b(_.Ib);a=null!=a?{AUDIO:_.em,VIDEO:_.fm,SUBTITLES:_.dm}[a]:void 0;return{type:a,groupId:b(_.Qa),name:b(_.gb),language:b(_.Za),Pp:b("AUTOSELECT"),"default":b("DEFAULT"),Zp:b("FORCED"),Th:b("CHARACTERISTICS"),uri:b(_.Kb)}};nm=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.");};
128
- rm=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return c=_.Tk(b),_.x(e,Wl(a.f,c),2);d=e.f;return e["return"](d)})};mm=function(a,b,c){var d,e,f,g;return _.I(function(k){if(1==k.a)return d=sm(b),e=tm(b,c),f=d[0]?d[0].codec:null,_.x(k,um(a,e,f),2);g=k.f;return k["return"]({mimeType:g,renditions:d})})};um=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return b&&c?_.x(f,rm(a,b),2):f["return"](null);d=f.f;e=[vm(d,b),wm(d,b)].filter(Boolean);return f["return"](_.ok(e,_.Lg,c))})};
129
- sm=function(a){return a.split("\n").filter(function(b){return b.trim().startsWith("#EXT-X-STREAM-INF:")}).map(function(b){var c=_.il(0,b);if(c.getAttribute(_.Sb))throw Error("Playlist contains alternative video streams.");var d=_.U(c,_.wb);b=d?Number(d.split("x")[0]):null;d=d?Number(d.split("x")[1]):null;var e=_.U(c,_.ra);e=e?Number(e):null;var f=_.U(c,"AVERAGE-BANDWIDTH");f=f?Number(f):null;c=_.U(c,_.xa);c=_.mk(_.Lg,c?c.split(","):[]);return{bandwidth:e,fe:f,codec:c,width:b,height:d,mimeType:null}})};
130
- tm=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?_.gk(c,b):null};vm=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?_.gk(c,b):null};wm=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.U(_.il(0,c),_.Kb))?_.gk(c,b):null:null};zm=function(a,b){var c=xm;ym.set(a.toLowerCase().split(";")[0]+"-"+c,{priority:c,plugin:b})};
131
- _.Dm=function(a,b){for(var c=_.v([Am,Bm,Cm,xm]),d=c.next();!d.done;d=c.next())if(d=ym.get(a.toLowerCase().split(";")[0]+"-"+d.value)){var e=d.plugin(),f=e.isSupported(a,b);e.destroy();if(f)return d.plugin}return null};_.Em=function(a,b){var c=a;b&&(c+=';codecs\x3d"'+b+'"');return c.replace(/\s/g,"")};_.Fm=function(a){return a.split(";")[0]};
132
- _.Gm=function(a){a=a.split(/\s*;\s*/);a.shift();return(a=a.find(function(b){return b.startsWith("codecs\x3d")}))?a.split("\x3d")[1].replace(/^"|"$/g,"").split(/\s*,\s*/).join(","):""};_.Im=function(a,b,c){for(var d=_.v(_.Hm),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.Jm=function(a){a=_.Hm.indexOf(a);0<=a&&_.Hm.splice(a,1)};_.Km=function(){};
133
- Lm=function(){this.g=new _.L("clpp.native.TrackManager");this.m=null;this.f=new _.ki;this.h=[];this.G=0;this.A={};this.D=new Set;this.a=new Map;this.w=null;this.o=new Map;this.B=!0;this.K=this.Wg.bind(this,_.dm);this.M=this.Yg.bind(this,_.dm);this.L=this.Xg.bind(this,_.dm);this.P=this.Wg.bind(this,_.fm);this.W=this.Yg.bind(this,_.fm);this.T=this.Xg.bind(this,_.fm);this.H=this.Wg.bind(this,_.em);this.J=this.Yg.bind(this,_.em);this.I=this.Xg.bind(this,_.em);this.l=null;this.j=new Map};
134
- Nm=function(a){if(0!==a.j.size){for(var b={},c=_.v(a.j),d=c.next();!d.done;b={de:b.de,lg:b.lg},d=c.next()){var e=_.v(d.value);d=e.next().value;e=e.next().value;b.de=d;null===e?Mm(a,b.de,null):(b.lg=e,(d=a.h.find(function(f){return function(g){var k;if(k=g.type===f.de)k=f.lg,k=g.language===k.language&&g.kind===k.kind&&g.label===k.label;return k}}(b)))&&Mm(a,b.de,d))}a.j.clear()}};Om=function(a){a.h=[];a.A={};a.a.clear();a.o.clear();a.f.release()};
135
- Qm=function(a,b,c){var d,e,f,g,k,l,m,n,p,q,t;return _.I(function(u){if(1==u.a){d=a.m.getConfiguration();e=_.Im(d,b.mimeType,_.ng);if(!e)return a.g.warn("Track MIME type is not supported",b),u["return"]();f=_.Tk(b.url);g=b.mimeType===_.Kc?"tt":"c";k={objectType:g};l=_.$l(a.m.getNetworkEngine(),f,k);return _.x(u,l.U,2)}(m=u.f)&&m.data&&(n="External_"+a.G++,a.A[n]=b,p=e.a(_.Vi(m.data)),q=URL.createObjectURL(new Blob([p])),t={url:q,kind:b.kind,language:b.language,label:b.label,mimeType:_.ng},Pm(a,t,n,
136
- c));_.z(u)})};Sm=function(a,b,c){return Rm(a)&&b===_.fm&&!!c.enableHlsVideoTrackInfo};Tm=function(a,b,c){return Rm(a)&&(b===_.em||b===_.dm)&&!!c.enableMetadata};Rm=function(a){a=a.m.getLoadedSource();return!(!a||a.type!==_.Um&&!a.url.endsWith(".m3u8"))&&_.vi()};
137
- Vm=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return(d=a.m.getLoadedSource())&&a.l?_.x(f,a.l.a(d.url,c),2):f["return"]();e=f.f;e.mimeType&&(b.mimeType=e.mimeType);e.renditions&&0<e.renditions.length&&(b.renditions=e.renditions,b.renditions.forEach(function(g){g.track=b}));_.z(f)})};
138
- Wm=function(a,b,c){var d,e,f,g;return _.I(function(k){if(1==k.a)return(d=a.m.getLoadedSource())&&a.l?_.x(k,a.l.a(d.url,c),2):k["return"]();e=k.f;e.fd&&(f=b.type+":"+b.label,(g=e.fd.get(f))&&g.Th&&(b.accessibility=g.Th.split(",").map(function(l){return l.trim()}).map(function(l){return{value:l,type:b.type,protocol:"HLS"}})));_.z(k)})};
139
- Pm=function(a,b,c,d){var e=document.createElement("track");e.id=c;e.kind=b.kind;e.srclang=b.language;b.label&&(e.label=b.label);_.S.empty(b.url)?e.src=URL.createObjectURL(new Blob([])):e.src=b.url;d.appendChild(e);a.D.add(e)};Ym=function(a){var b=Xm(a,_.dm);b&&(a.f.on(b,_.Cc,a.K),a.f.on(b,Nf,a.M),a.f.on(b,od,a.L));if(b=Xm(a,_.em))a.f.on(b,_.Cc,a.H),a.f.on(b,Nf,a.J),a.f.on(b,od,a.I);if(b=Xm(a,_.fm))a.f.on(b,_.Cc,a.P),a.f.on(b,Nf,a.W),a.f.on(b,od,a.T)};
140
- Xm=function(a,b){if(!a.m)return null;var c=a.m.getSurface();if(!c)return null;c=c.getMedia();if(!c)return null;switch(b){case _.em:return c.audioTracks;case _.fm:return c.videoTracks;case _.dm:return c.textTracks;default:return null}};Zm=function(a,b){var c=Xm(a,b);c&&(c=Array.from(c),b===_.dm&&(c=c.filter(function(d){return d.kind!==_.Le})));return c};$m=function(a,b){return a.h.filter(function(c){return c.type===b})};an=function(a,b){var c=a.a.get(b)||null;return c&&c.renditions[0]};
141
- bn=function(a,b){var c=a.o.get(b);return c&&c.renditions[0]};
142
- Mm=function(a,b,c){var d=Zm(a,b);if(c){if(void 0===a.h.find(function(l){return l.id===c.id}))throw Error("Unknown track with ID "+c.id+" and type "+b);if(c.type!==b)throw Error("Types mismatch for track "+c.type+" and arg "+b);a.g.debug("Activate track type "+b+" with ID: "+c.id);if(d){a.o.set(b,c);var e=!0,f=!1;switch(b){case _.dm:var g="mode";e=_.Xf;f=_.Qd;break;case _.em:g="enabled";break;case _.fm:g="selected"}if(g){d=_.v(d);for(var k=d.next();!k.done;k=d.next())k=k.value,k[g]=c.type===c.type&&
143
- c.id===k.id?e:f}}}else if(a.g.debug("Disable track type "+b),a.a.get(b)&&d&&b===_.dm){g=_.v(d);for(k=g.next();!k.done;k=g.next())k.value.mode=_.Qd;a.a.set(b,null)}b===_.em?a.m.trigger(new _.R(_.Zc)):b===_.dm&&a.m.trigger(new _.R(_.pg))};cn=function(a){return a.enabled||a.selected||a.mode===_.Xf||a.mode===_.re};
144
- en=function(a){var b,c,d;_.I(function(e){if(1==e.a){b=a.m.getConfiguration();dn(a,_.em,b.preferredAudioLanguage);c=Zm(a,_.dm);if(c.some(function(f){return cn(f)}))return e.C(2);d=Xm(a,_.dm);return _.x(e,new Promise(function(f){a.f.one(d,od,f);(new _.Yh(f)).ia(1)}),2)}if(a.B)return e["return"]();dn(a,_.dm,b.preferredTextLanguage);_.z(e)})};
145
- dn=function(a,b,c){c=_.Ej(c).filter(function(e){return e});a.g.info("Find preferred tracks for",b,c);var d=$m(a,b);c.some(function(e){var f=_.Hk(e);return(e=d.find(function(g){g=_.Hk(g.language||"");return _.Ik(f,g)}))?(a.g.info("Will select track with id",e.id),Mm(a,b,e),!0):!1})};fn=function(a){(a=a.m.getTextDisplayer())&&a.remove(0,Infinity)};_.gn=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};hn=function(a,b,c,d){this.h=a;this.a=b;this.f=c;this.j=!!d};
146
- jn=function(a){this.a=new _.ji;this.f=a};_.kn=function(){this.te=new jn(this);this.pe=[]};mn=function(a){return a.name===mb&&ln.some(function(b){return a.message.startsWith(b)})};nn=function(){};
147
- _.rn=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.wi()&&(a=360);var b=_.Ok();b.maxAttempts=3;a={source:"",license:on,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,ads:{hls:{enable:!0,resolutionOffsetSec:35}},manifest:{attemptParameters:_.Ok(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0,timeline:{version:1,type:void 0}},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,
148
- bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,restrictions:pn(a),useCmsd:!0},contentSteering:{enabled:!0,attemptParameters:_.Ok()},drm:null,cmcd:{enabled:!1,version:1,rtpMultiplier:5,deliveryMode:"headers"},enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:_.He,preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],preferSpatialAudio:!1,preferForcedSubtitles:!1,volume:null,startTime:null,loop:!1,lowLatencyMode:!1,
149
- suggestedPresentationDelay:void 0,muted:void 0,forceWaitForTracks:!1,xmlParser:_.qn,streaming:{attemptParameters:b,bufferingGoal:10,rebufferingGoal:2,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,relativeTextTimestamp:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.1,disableAudioTracks:!1,disableVideoTracks:!1,smallGapLimit:.5,jumpLargeGaps:!0,gapTolerance:.001,durationBackoff:1,maxSegmentToMediaOffset:1,forceNativeTS:!1,preferNativeHlsOnSafari:!0,safeSeekOffset:5,stallEnabled:!0,
150
- stallThreshold:3,stallSkip:.5,bufferLimitUpdateInterval:.5,overridePasp:!1,enableLiveEdgeChasing:!1,chasingRate:1.15,startChasingAt:5,stopChasingAt:2,chaseJumpDistance:10,patchEdgeWhenMixedContent:!1,ignoreDrift:!1,disableFragmentSupport:!1,disableMergedFragments:!1,ignoreManagedMediaSourceStreamingHints:!1,enableStalledSegmentAbort:!0},mediaSource:{codecSwitchingStrategy:_.Ef},restrictions:pn(),tizen:{sideStreamText:_.si(2)},safari:{enableHlsVideoTrackInfo:!1,enableMetadata:!1},mse:{sendPlaybackSessionIdHeader:!1},
121
+ _.O)throw t;throw new _.O(_.Q,1,1007,null,t);});_.nl(a.o,p);d.resolve(b);return p}catch(t){return new Sl(Promise.reject(t))}};dm=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.C(2);break}e=_.Vk(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.F(g,4);return _.x(g,a.fetch(e).U,6);case 6:_.G(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)}})};
122
+ am=function(a,b){for(var c=_.v(a.headers),d=c.next();!d.done;d=c.next()){var e=_.v(d.value);d=e.next().value;e=e.next().value;b.headers[d]||(b.headers[d]=e)}};bm=function(a,b){var c=b.uris[b.uriIndex],d=new _.bk(c,location.href);d=d?d.a.protocol.slice(0,-1):"";var e=a.l[d];if(!e)throw new _.O(_.Q,1,1E3,{url:c});return function(f){return e(f)}};
123
+ _.em=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=[]};_.fm=function(a){return a&&a!==_.zg?a:null};
124
+ km=function(a){if(!a)throw new _.O(_.Q,3,3101,Wa+a);if(!_.N.ja(a))throw new _.O(_.Q,3,3101,Wa+a+". Track type must be a string!");switch(a.toLowerCase()){case _.gm:return _.gm;case _.hm:return _.hm;case _.im:return _.im;case jm:return jm}throw new _.O(_.Q,3,3101,"Unknown track type: "+a+".");};lm=function(a,b,c){a=km(a);var d=_.fm(c.kind);a=new _.em(b,d===_.Le?jm:a);a.kind=d;a.label=_.fm(c.label);a.language=_.fm(c.language);a.originalLanguage=c.originalLanguage||a.language;return a};
125
+ mm=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};_.nm=function(a,b){this.track=b;this.id=a;this.originalId=this.codec=this.fe=this.bandwidth=this.height=this.width=null;this.a=!1};om=function(a){this.f=a;this.g=new _.L("clpp.native.hls.HlsMetadataParser");this.a=Wj(this.h.bind(this),function(b,c){return b[0]===c[0]&&b[1].enableHlsVideoTrackInfo===c[1].enableHlsVideoTrackInfo&&b[1].enableMetadata===c[1].enableMetadata})};
126
+ rm=function(a,b,c){var d,e,f,g,k;return _.I(function(l){if(1==l.a)return _.x(l,pm(a,b,c),2);d=l.f;e=d.mimeType;f=d.renditions;g=new _.em("dummy",_.im);k=f.map(function(m,n){var p=new _.nm("R"+n,g);p.bandwidth=m.bandwidth;p.fe=m.fe;p.codec=m.codec;p.width=m.width;p.height=m.height;return p});qm(k);return l["return"]({renditions:k,mimeType:e||void 0})})};
127
+ tm=function(a){a=a.split("\n").filter(function(c){return c.trim().startsWith("#EXT-X-MEDIA:")}).map(function(c){return sm(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};
128
+ sm=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.kl(0,a);a=b(_.Ib);a=null!=a?{AUDIO:_.hm,VIDEO:_.im,SUBTITLES:_.gm}[a]:void 0;return{type:a,groupId:b(_.Qa),name:b(_.gb),language:b(_.Za),Qp:b("AUTOSELECT"),"default":b("DEFAULT"),$p:b("FORCED"),Uh:b("CHARACTERISTICS"),uri:b(_.Kb)}};qm=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.");};
129
+ um=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return c=_.Vk(b),_.x(e,Zl(a.f,c),2);d=e.f;return e["return"](d)})};pm=function(a,b,c){var d,e,f,g;return _.I(function(k){if(1==k.a)return d=vm(b),e=wm(b,c),f=d[0]?d[0].codec:null,_.x(k,xm(a,e,f),2);g=k.f;return k["return"]({mimeType:g,renditions:d})})};xm=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return b&&c?_.x(f,um(a,b),2):f["return"](null);d=f.f;e=[ym(d,b),zm(d,b)].filter(Boolean);return f["return"](_.ok(e,_.Kg,c))})};
130
+ vm=function(a){return a.split("\n").filter(function(b){return b.trim().startsWith("#EXT-X-STREAM-INF:")}).map(function(b){var c=_.kl(0,b);if(c.getAttribute(_.Sb))throw Error("Playlist contains alternative video streams.");var d=_.U(c,_.wb);b=d?Number(d.split("x")[0]):null;d=d?Number(d.split("x")[1]):null;var e=_.U(c,_.ra);e=e?Number(e):null;var f=_.U(c,"AVERAGE-BANDWIDTH");f=f?Number(f):null;c=_.U(c,_.xa);c=_.mk(_.Kg,c?c.split(","):[]);return{bandwidth:e,fe:f,codec:c,width:b,height:d,mimeType:null}})};
131
+ wm=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?_.gk(c,b):null};ym=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?_.gk(c,b):null};zm=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.U(_.kl(0,c),_.Kb))?_.gk(c,b):null:null};Cm=function(a,b){var c=Am;Bm.set(a.toLowerCase().split(";")[0]+"-"+c,{priority:c,plugin:b})};
132
+ _.Gm=function(a,b){for(var c=_.v([Dm,Em,Fm,Am]),d=c.next();!d.done;d=c.next())if(d=Bm.get(a.toLowerCase().split(";")[0]+"-"+d.value)){var e=d.plugin(),f=e.isSupported(a,b);e.destroy();if(f)return d.plugin}return null};_.Hm=function(a,b){var c=a;b&&(c+=';codecs\x3d"'+b+'"');return c.replace(/\s/g,"")};_.Im=function(a){return a.split(";")[0]};
133
+ _.Jm=function(a){a=a.split(/\s*;\s*/);a.shift();return(a=a.find(function(b){return b.startsWith("codecs\x3d")}))?a.split("\x3d")[1].replace(/^"|"$/g,"").split(/\s*,\s*/).join(","):""};_.Lm=function(a,b,c){for(var d=_.v(_.Km),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.Mm=function(a){a=_.Km.indexOf(a);0<=a&&_.Km.splice(a,1)};_.Nm=function(){};
134
+ Om=function(){this.g=new _.L("clpp.native.TrackManager");this.m=null;this.f=new _.ki;this.h=[];this.G=0;this.A={};this.D=new Set;this.a=new Map;this.w=null;this.o=new Map;this.B=!0;this.K=this.Xg.bind(this,_.gm);this.M=this.Zg.bind(this,_.gm);this.L=this.Yg.bind(this,_.gm);this.P=this.Xg.bind(this,_.im);this.W=this.Zg.bind(this,_.im);this.T=this.Yg.bind(this,_.im);this.H=this.Xg.bind(this,_.hm);this.J=this.Zg.bind(this,_.hm);this.I=this.Yg.bind(this,_.hm);this.l=null;this.j=new Map};
135
+ Qm=function(a){if(0!==a.j.size){for(var b={},c=_.v(a.j),d=c.next();!d.done;b={de:b.de,mg:b.mg},d=c.next()){var e=_.v(d.value);d=e.next().value;e=e.next().value;b.de=d;null===e?Pm(a,b.de,null):(b.mg=e,(d=a.h.find(function(f){return function(g){var k;if(k=g.type===f.de)k=f.mg,k=g.language===k.language&&g.kind===k.kind&&g.label===k.label;return k}}(b)))&&Pm(a,b.de,d))}a.j.clear()}};Rm=function(a){a.h=[];a.A={};a.a.clear();a.o.clear();a.f.release()};
136
+ Tm=function(a,b,c){var d,e,f,g,k,l,m,n,p,q,t;return _.I(function(u){if(1==u.a){d=a.m.getConfiguration();e=_.Lm(d,b.mimeType,_.ng);if(!e)return a.g.warn("Track MIME type is not supported",b),u["return"]();f=_.Vk(b.url);g=b.mimeType===_.Kc?"tt":"c";k={objectType:g};l=_.cm(a.m.getNetworkEngine(),f,k);return _.x(u,l.U,2)}(m=u.f)&&m.data&&(n="External_"+a.G++,a.A[n]=b,p=e.a(_.Vi(m.data)),q=URL.createObjectURL(new Blob([p])),t={url:q,kind:b.kind,language:b.language,label:b.label,mimeType:_.ng},Sm(a,t,n,
137
+ c));_.z(u)})};Vm=function(a,b,c){return Um(a)&&b===_.im&&!!c.enableHlsVideoTrackInfo};Wm=function(a,b,c){return Um(a)&&(b===_.hm||b===_.gm)&&!!c.enableMetadata};Um=function(a){a=a.m.getLoadedSource();return!(!a||a.type!==_.Xm&&!a.url.endsWith(".m3u8"))&&_.vi()};
138
+ Ym=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return(d=a.m.getLoadedSource())&&a.l?_.x(f,a.l.a(d.url,c),2):f["return"]();e=f.f;e.mimeType&&(b.mimeType=e.mimeType);e.renditions&&0<e.renditions.length&&(b.renditions=e.renditions,b.renditions.forEach(function(g){g.track=b}));_.z(f)})};
139
+ Zm=function(a,b,c){var d,e,f,g;return _.I(function(k){if(1==k.a)return(d=a.m.getLoadedSource())&&a.l?_.x(k,a.l.a(d.url,c),2):k["return"]();e=k.f;e.fd&&(f=b.type+":"+b.label,(g=e.fd.get(f))&&g.Uh&&(b.accessibility=g.Uh.split(",").map(function(l){return l.trim()}).map(function(l){return{value:l,type:b.type,protocol:"HLS"}})));_.z(k)})};
140
+ Sm=function(a,b,c,d){var e=document.createElement("track");e.id=c;e.kind=b.kind;e.srclang=b.language;b.label&&(e.label=b.label);_.S.empty(b.url)?e.src=URL.createObjectURL(new Blob([])):e.src=b.url;d.appendChild(e);a.D.add(e)};an=function(a){var b=$m(a,_.gm);b&&(a.f.on(b,_.Cc,a.K),a.f.on(b,Of,a.M),a.f.on(b,od,a.L));if(b=$m(a,_.hm))a.f.on(b,_.Cc,a.H),a.f.on(b,Of,a.J),a.f.on(b,od,a.I);if(b=$m(a,_.im))a.f.on(b,_.Cc,a.P),a.f.on(b,Of,a.W),a.f.on(b,od,a.T)};
141
+ $m=function(a,b){if(!a.m)return null;var c=a.m.getSurface();if(!c)return null;c=c.getMedia();if(!c)return null;switch(b){case _.hm:return c.audioTracks;case _.im:return c.videoTracks;case _.gm:return c.textTracks;default:return null}};bn=function(a,b){var c=$m(a,b);c&&(c=Array.from(c),b===_.gm&&(c=c.filter(function(d){return d.kind!==_.Le})));return c};cn=function(a,b){return a.h.filter(function(c){return c.type===b})};dn=function(a,b){var c=a.a.get(b)||null;return c&&c.renditions[0]};
142
+ en=function(a,b){var c=a.o.get(b);return c&&c.renditions[0]};fn=function(a){return(a=a.m.getTextDisplayer())?a.isRenderer()?_.re:_.Yf:_.Yf};
143
+ Pm=function(a,b,c){var d=bn(a,b);if(d&&b!==_.im){if(c){if(c.type!==b||!a.h.find(function(f){return f.id===c.id}))return;var e=d.find(function(f){return gn(c,f,c.type)});if(!e)return;a.o.set(b,c);if(b===_.gm){d.forEach(function(f){f.mode=_.Qd});e.mode=fn(a);a.m.trigger(new _.R(_.pg));a.g.info("Selected text track",e);return}if(b===_.hm){d.forEach(function(f){f.enabled=!1});e.enabled=!0;a.m.trigger(new _.R(_.Zc));a.g.info("Selected audio track",e);return}}a.a.get(b)&&b===_.gm&&(d.forEach(function(f){f.mode=
144
+ _.Qd}),a.a.set(b,null),a.m.trigger(new _.R(_.pg)),a.g.info("Disabled text track"))}};hn=function(a){return a.enabled||a.selected||a.mode===_.Yf||a.mode===_.re};kn=function(a){var b,c,d;_.I(function(e){if(1==e.a){b=a.m.getConfiguration();jn(a,_.hm,b.preferredAudioLanguage);c=bn(a,_.gm);if(c.some(function(f){return hn(f)}))return e.C(2);d=$m(a,_.gm);return _.x(e,new Promise(function(f){a.f.one(d,od,f);(new _.Yh(f)).ia(1)}),2)}if(a.B)return e["return"]();jn(a,_.gm,b.preferredTextLanguage);_.z(e)})};
145
+ jn=function(a,b,c){var d=_.Ej(c).filter(Boolean),e=cn(a,b);(d=ln(e,d))?(a.g.info("Selected track by language "+d.language+"."),Pm(a,b,d)):a.g.info("No track found for language "+c+".")};ln=function(a,b){for(var c=a.map(function(g){return g.language}).filter(Boolean),d={},e=_.v(b),f=e.next();!f.done;d={jg:d.jg},f=e.next())if(f=_.Hk(f.value),d.jg=_.Lk(f,c),f=a.find(function(g){return function(k){return _.Hk(k.language||"")===g.jg}}(d)))return f;return null};
146
+ mn=function(a){(a=a.m.getTextDisplayer())&&a.remove(0,Infinity)};gn=function(a,b,c){return a.type!==c?!1:b.id||c!==_.gm?a.id===b.id:a.language===(b.language||null)&&a.kind===(b.kind||null)&&a.label===(b.label||null)};_.nn=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};on=function(a,b,c,d){this.h=a;this.a=b;this.f=c;this.j=!!d};pn=function(a){this.a=new _.ji;this.f=a};_.qn=function(){this.te=new pn(this);this.pe=[]};sn=function(a){return a.name===mb&&rn.some(function(b){return a.message.startsWith(b)})};
147
+ tn=function(){};
148
+ _.xn=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.wi()&&(a=360);var b=_.Qk();b.maxAttempts=3;a={source:"",license:un,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,ads:{hls:{enable:!0,resolutionOffsetSec:35}},manifest:{attemptParameters:_.Qk(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0,timeline:{version:1,type:void 0}},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,
149
+ bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,restrictions:vn(a),useCmsd:!0},contentSteering:{enabled:!0,attemptParameters:_.Qk()},drm:null,cmcd:{enabled:!1,version:1,rtpMultiplier:5,deliveryMode:"headers"},enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:_.He,preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],preferSpatialAudio:!1,preferForcedSubtitles:!1,volume:null,startTime:null,loop:!1,lowLatencyMode:!1,
150
+ suggestedPresentationDelay:void 0,muted:void 0,forceWaitForTracks:!1,xmlParser:_.wn,streaming:{attemptParameters:b,bufferingGoal:10,rebufferingGoal:2,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,relativeTextTimestamp:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.1,disableAudioTracks:!1,disableVideoTracks:!1,smallGapLimit:.5,jumpLargeGaps:!0,gapTolerance:.001,durationBackoff:1,maxSegmentToMediaOffset:1,forceNativeTS:!1,preferNativeHlsOnSafari:!0,safeSeekOffset:5,stallEnabled:!0,
151
+ stallThreshold:3,stallSkip:.5,bufferLimitUpdateInterval:.5,overridePasp:!1,enableLiveEdgeChasing:!1,chasingRate:1.15,startChasingAt:5,stopChasingAt:2,chaseJumpDistance:10,patchEdgeWhenMixedContent:!1,ignoreDrift:!1,disableFragmentSupport:!1,disableMergedFragments:!1,ignoreManagedMediaSourceStreamingHints:!1,enableStalledSegmentAbort:!0},mediaSource:{codecSwitchingStrategy:_.Ff},restrictions:vn(),tizen:{sideStreamText:_.si(2)},safari:{enableHlsVideoTrackInfo:!1,enableMetadata:!1},mse:{sendPlaybackSessionIdHeader:!1},
151
152
  trickPlay:{speedUpMode:_.Nd,preferTrickPlayTracks:!0},playlist:{timeline:"basic",content:_.Tb,cropTimeline:!1},yospace:{enabled:!1},broadpeak:{adTracking:!1},cmsd:{enabled:!0},mediatailor:{enabled:!1,sessionConfig:{}},disableRestrictions:!1,chromecast:{useSenderAbrConfig:!1,useSenderStreamingConfig:!1}};if(_.si()||_.ti())a.ads.hls.enable=!1;if(_.ri("Edge/")||_.si())a.streaming.gapDetectionThreshold=.5;_.ti()&&(a.streaming.stallEnabled=!1);_.ti()&&79===_.Qi().major&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=
152
153
  1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=.02);_.si()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=0);a.vr={enable:!1,attachMouseListener:!0,fieldOfView:70,sensitivity:1,invertHorizontalControl:!1,invertVerticalControl:!1};return a};
153
- _.tn=function(a,b){b=void 0===b?{}:b;if(!a)return _.rn();for(var c=[_.rn()],d=!1,e=_.v(a),f=e.next();!f.done;f=e.next())f=f.value,null!==f&&void 0!==f&&(_.N.ja(f)&&(f={source:f}),f.lowLatencyMode&&!d&&(c.push({streaming:{rebufferingGoal:.1,bufferLimitUpdateInterval:.01,attemptParameters:{maxAttempts:3,baseDelay:250,backoffFactor:1}},abr:{bandwidthUpgradeTarget:.6,bandwidthDowngradeTarget:.95},manifest:{lowLatencyMode:!0}}),d=!0),c.push(f),b.Qo||null==f.suggestedPresentationDelay||c.push({manifest:{suggestedPresentationDelay:f.suggestedPresentationDelay}}));
154
+ _.zn=function(a,b){b=void 0===b?{}:b;if(!a)return _.xn();for(var c=[_.xn()],d=!1,e=_.v(a),f=e.next();!f.done;f=e.next())f=f.value,null!==f&&void 0!==f&&(_.N.ja(f)&&(f={source:f}),f.lowLatencyMode&&!d&&(c.push({streaming:{rebufferingGoal:.1,bufferLimitUpdateInterval:.01,attemptParameters:{maxAttempts:3,baseDelay:250,backoffFactor:1}},abr:{bandwidthUpgradeTarget:.6,bandwidthDowngradeTarget:.95},manifest:{lowLatencyMode:!0}}),d=!0),c.push(f),b.Ro||null==f.suggestedPresentationDelay||c.push({manifest:{suggestedPresentationDelay:f.suggestedPresentationDelay}}));
154
155
  c=_.N.ta.apply(null,c);_.N.ja(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.N.R(c.volume)&&(!_.N.ya(c.volume)||_.N.isNaN(c.volume)))throw new _.O(_.Q,7,7100,"config.volume is not a number");if(!_.N.R(c.preferredTextLanguage)&&!_.N.ja(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.O(_.Q,7,7100,"config.preferredTextLanguage is not a string or an array");if(!_.N.R(c.preferredAudioLanguage)&&!_.N.ja(c.preferredAudioLanguage)&&!Array.isArray(c.preferredAudioLanguage))throw new _.O(_.Q,
155
156
  7,7100,"config.preferredAudioLanguage is not a string or an array");if(!_.N.R(c.preferredAudioCodec)&&!_.N.ja(c.preferredAudioCodec)&&!Array.isArray(c.preferredAudioCodec))throw new _.O(_.Q,7,7100,"config.preferredAudioCodec is not a string or an array");if(!_.N.R(c.preferredVideoCodec)&&!_.N.ja(c.preferredVideoCodec)&&!Array.isArray(c.preferredVideoCodec))throw new _.O(_.Q,7,7100,"config.preferredVideoCodec is not a string or an array");if(!_.N.R(c.drm)){if(c.drm.env&&!_.N.ja(c.drm.env))throw new _.O(_.Q,
156
157
  7,7100,"config.drm.env is not a string");if(c.drm.offlineId&&!_.N.ja(c.drm.offlineId))throw new _.O(_.Q,7,7100,"config.drm.offlineId is not a string");}if(d=c.streaming){d.bufferingGoal=Number(d.bufferingGoal);d.rebufferingGoal=Number(d.rebufferingGoal);d.bufferBehind=Number(d.bufferBehind);d.smallGapLimit=Number(d.smallGapLimit);d.durationBackoff=Number(d.durationBackoff);if(!_.N.ya(d.bufferingGoal)||_.N.isNaN(d.bufferingGoal))throw new _.O(_.Q,7,7100,"config.streaming.bufferingGoal is not a number");
157
158
  if(!_.N.ya(d.rebufferingGoal)||_.N.isNaN(d.rebufferingGoal))throw new _.O(_.Q,7,7100,"config.streaming.rebufferingGoal is not a number");if(d.rebufferingGoal>d.bufferingGoal)throw new _.O(_.Q,7,7100,"config.streaming.rebufferingGoal must be \x3e\x3d bufferingGoal");if(!_.N.ya(d.bufferBehind)||_.N.isNaN(d.bufferBehind))throw new _.O(_.Q,7,7100,"config.streaming.bufferBehind is not a number");if(!_.N.ya(d.smallGapLimit)||_.N.isNaN(d.smallGapLimit))throw new _.O(_.Q,7,7100,"config.streaming.smallGapLimit is not a number");
158
- if(!_.N.ya(d.durationBackoff)||_.N.isNaN(d.durationBackoff))throw new _.O(_.Q,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.N.R(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.h)throw new _.O(_.Q,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");sn(c.restrictions);sn(c.abr.restrictions);c.abr.initialRestrictions&&sn(c.abr.initialRestrictions)}return c};
159
- pn=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}};
160
- sn=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);
161
- 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(_.Q,7,7100,"Restrictions contain NaN");};un=function(a){return typeof a===_.Te&&!Array.isArray(a)&&"source"in a};
162
- _.vn=function(a){_.kn.call(this);this.log=new _.L(a);this.configuration=this.vb=_.rn();this.ea=this.D=null;this.xd=this.qh=!1;this.ak=new _.L("clpp.video.events");this.ne=null;this.If=-1;this.bk=this.Jo.bind(this);this.he=new _.Tl;this.setNetworkEngine(this.he);this.M=new _.ki;this.hh=this.xc=this.Gd=this.T=null};
163
- wn=function(a,b){return _.I(function(c){if(1==c.a){if(0!==a.getState())return c.C(2);a.log.debug("Player is in IDLE state. Postpone seek.");return _.x(c,new Promise(function(d,e){a.M.one(a,_.tf,function(){switch(a.getState()){case 6:case 8:case 10:a.log.debug("Valid seek state reached.");d();break;default:a.log.warn("Invalid seek target state. Aborting seek"),e()}})}),2)}return b.readyState>HTMLMediaElement.HAVE_NOTHING?c["return"]():_.x(c,new Promise(function(d){a.M.one(b,_.Fe,d)}),0)})};
164
- xn=function(a,b,c,d,e,f){return new Promise(function(g){function k(l){var m=a.getMediaPosition(),n=Math.abs(c-m)<=f,p=.25<m-c,q=b.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,t=l.type===_.Vf,u=l.type===_.If,y=l.type===_.ug,A=u&&q;p=t||n&&A||y&&p;a.log.debug("Checking seeking state after "+l.type+" event. Seek completed:",p,"Current Time:",m,"Target Time:",c,"Native Event:",t,"Time reached",n,"Timeupdate:",y,"Progress:",u,"ReadyState:",q,"Progress Ready:",A);p?(a.qh=!1,a.xd=!1,a.M.off(b,_.Vf,k),
165
- a.M.off(b,_.ug,k),a.M.off(b,_.If,k),a.qj(),a.trigger(new _.R(_.Eg)),g()):u&&e===m&&(a.log.debug("Seek seemed to have been ignored. Trying again"),b.currentTime=c)}a.trigger(new _.R(_.Fg));a.M.on(b,_.Vf,k);a.M.on(b,_.ug,k);a.M.on(b,_.If,k);a.log.info("Seeking to "+c+". Delta "+d);a.qh=!0;a.xd=!0;b.currentTime=c})};_.zn=function(a){return _.yn.get(a)||null};_.Bn=function(a){_.yn.get(a.id())?An.warn("Component already in use."):_.yn.set(a.id(),a)};
166
- Cn=function(a){return Array.from(_.yn.values()).find(function(b){return b instanceof a})||null};Dn=function(a){for(var b=_.v(_.yn.values()),c=b.next();!c.done;c=b.next())a(c.value)};En=function(a){Dn(function(b){b.playerConstructed(a)})};Fn=function(a){Dn(function(b){b.beforeLoad(a)})};_.Gn=function(a){Dn(function(b){b.drmConfigurationResolved(a)})};Hn=function(a){Dn(function(b){b.afterLoad(a)})};
167
- In=function(a){if(null!==Cn(a))return null;a=new a;a.install();_.Bn(a);An.info("Installed component:",a.id());return a};Jn=function(a){if(a=Cn(a))a.uninstall(),_.yn["delete"](a.id()),An.info("Uninstalled component:",a.id())};Kn=function(){this.a=this.f=null;this.g=new _.L("clpp.drm.csl")};Ln=function(a,b){3===b.type&&(a.f&&(a.g.debug("Attaching tracking token"),b.headers[bh]=a.f),a.a&&(b.headers[ch]=a.a))};
168
- Mn=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[bh];a.a=b.headers[ch];var c=b.headers["x-dt-csl-renewal-info"];a.f&&a.g.debug("Loaded tracking token "+a.f);a.a&&a.g.debug("Loaded followup token "+a.a);if(c)return c=JSON.parse(_.S.ga(_.Gl(c))),{delay:c.renewalPeriod,Lp:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};
169
- _.Nn=function(a,b){b=void 0===b?!1:b;this.f=_.N.ya(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.h=b;this.buffer=this.f.buffer};_.Pn=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.Vi(a.f.buffer);b=_.Vi(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.On()}};_.V=function(a,b){try{a.f.setUint32(a.a,b,a.h),a.a+=4}catch(c){_.On()}};_.On=function(){throw new _.O(_.Q,3,3E3);};_.Qn=function(a,b){this.f=a;this.h=void 0===b?!0:b;this.a=0};_.Rn=function(a){return a.a<a.f.byteLength};
170
- _.Tn=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){_.Sn()}};_.Un=function(a){try{var b=a.f.getUint16(a.a,a.h);a.a+=2;return b}catch(c){_.Sn()}};_.Vn=function(a){try{var b=a.f.getUint32(a.a,a.h);a.a+=4;return b}catch(c){_.Sn()}};_.Wn=function(a){try{var b=a.f.getInt32(a.a,a.h);a.a+=4;return b}catch(c){_.Sn()}};
171
- _.Xn=function(a){var b=0,c=0;try{!0===a.h?(b=a.f.getUint32(a.a,!0),c=a.f.getUint32(a.a+4,!0)):(c=a.f.getUint32(a.a,!1),b=a.f.getUint32(a.a+4,!1))}catch(d){_.Sn()}if(2097151<c)throw new _.O(_.Q,3,3001);a.a+=8;return c*Math.pow(2,32)+b};Yn=function(a,b){for(var c=new Uint8Array(b),d=0;d<b;d++)c[d]=_.Tn(a);return c};_.Zn=function(a,b){a.a+b>a.f.byteLength&&_.Sn();var c=a.a+a.f.byteOffset;c=a.f.buffer.slice(c,c+b);a.a+=b;return _.Vi(c)};
172
- _.Sn=function(){throw new _.O(_.Q,3,3E3,"Buffer read out of bounds.");};_.$n=function(){this.h=[];this.f=[];this.a=!1;this.g=new _.L("clpp.mp4")};_.ao=function(a){for(;_.Rn(a.reader)&&!a.parser.a;)a.parser.Wf(a.start+a.headerSize,a.reader,a.partialOkay)};_.bo=function(a){for(var b=_.Vn(a.reader);0<b&&!a.parser.a;--b)a.parser.Wf(a.start+a.headerSize,a.reader,a.partialOkay)};_.co=function(a){return function(b){var c=b.reader.bb()-b.reader.getPosition();a(_.Zn(b.reader,c))}};
173
- eo=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.fo=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};_.go=function(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)};ho=function(){};io=function(a){var b="";try{b=_.S.ve(a)}catch(c){}return b};_.jo=function(a){a=io(a);var b="";a.length&&(b=(new _.ck(a)).a);return b};
174
- ko=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.S.ga(a)),d=_.Gl(c.sinf[0]);(new _.$n).N(_.$f,_.ao).N("schi",_.ao).N("tenc",function(e){e.reader.skip(6);_.Tn(e.reader)&&(e.reader.skip(1),b=_.Il(_.Zn(e.reader,16)));e.parser.stop()}).parse(d)}catch(e){}return b};
175
- lo=function(a,b,c){if(!c||!c.byteLength)throw new _.O(_.Q,6,6102);var d;typeof b===_.gg?d=_.S.eg(b,!0):d=b;a=_.S.eg(io(a),!0);b=new _.Nn(12+a.byteLength+d.byteLength+c.byteLength,!0);_.V(b,a.byteLength);_.Pn(b,_.Vi(a));_.V(b,d.byteLength);_.Pn(b,_.Vi(d));_.V(b,c.byteLength);_.Pn(b,_.Vi(c));return _.Vi(b.buffer)};_.mo=function(a){var b=_.Vi(a.body);b=_.Fl(b);a.headers[_.Da]=_.Qc;a.body=_.S.sb("spc\x3d"+b).buffer};
176
- _.no=function(a){try{var b=_.S.ga(a.data)}catch(d){return}b=b.trim();"\x3cckc\x3e"===b.substr(0,5)&&"\x3c/ckc\x3e"===b.substr(-6)&&(b=b.slice(5,-6));try{var c=JSON.parse(b);c.ckc&&(b=c.ckc);c.CkcMessage&&(b=c.CkcMessage);c.License&&(b=c.License)}catch(d){}a.data=bj(_.Gl(b))};
177
- oo=function(a){switch(a){case "PRODUCTION":return"https://lic.drmtoday.com";case "STAGING":return"https://lic.staging.drmtoday.com";case "DEMO":return"https://lic-demo.staging.drmtoday.com";case "TEST":return"https://lic.test.drmtoday.com";default:throw new _.hi("Cannot infer DRMtoday base URL for environment: "+a);}};_.po=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
178
- _.qo=function(a,b){var c=b.drm;if(c&&c.customData){var d={userId:c.customData.userId,sessionId:c.customData.sessionId,merchant:c.customData.merchant};_.N.Yb(d)&&(a.headers["dt-custom-data"]=btoa(JSON.stringify(d)));(c=c.customData.authToken)&&(a.headers["x-dt-auth-token"]=c)}};so=function(a){var b={},c=a?a[dh]:void 0;a=ro[a?a[dh]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};
179
- uo=function(a){a=a["x-dt-li"];if(!a)return null;try{var b=JSON.parse(atob(a));a={};b.ti&&(a.requestId=b.ti);b.rpd&&(a.delay=Number(b.rpd)/1E3);return a}catch(c){return _.to.warn("Unable to parse DRMtoday License Info header (x-dt-li)",c),null}};_.wo=function(a){a=vo[a];if(!a)return null;var b=_.Si();return b.os===Ii&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.xo=function(a){this.f=a;this.a=void 0};yo=function(){this.size=0;this.a=void 0;this.g=new _.L("clpp.drm.eme.MediaKeyStatusMap")};
180
- zo=function(a,b){a.size=void 0===b?0:1;a.g.debug("Setting key status to",b);a.a=b};Bo=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Ao.value().get(b),c.one(a,b,d))};Co=function(){this.a=this.f=null};
181
- Jo=function(a,b){this.keySystem=a;if(a.startsWith(_.Fd))for(var c=_.v(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.Of)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.af,distinctiveIdentifier:_.af,initDataTypes:e.initDataTypes,sessionTypes:[lg],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var k=_.v(e.audioCapabilities),l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&
159
+ if(!_.N.ya(d.durationBackoff)||_.N.isNaN(d.durationBackoff))throw new _.O(_.Q,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.N.R(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.h)throw new _.O(_.Q,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");yn(c.restrictions);yn(c.abr.restrictions);c.abr.initialRestrictions&&yn(c.abr.initialRestrictions)}return c};
160
+ vn=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}};
161
+ yn=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);
162
+ 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(_.Q,7,7100,"Restrictions contain NaN");};An=function(a){return typeof a===_.Ue&&!Array.isArray(a)&&"source"in a};
163
+ _.Bn=function(a){_.qn.call(this);this.log=new _.L(a);this.configuration=this.vb=_.xn();this.ea=this.D=null;this.xd=this.rh=!1;this.bk=new _.L("clpp.video.events");this.ne=null;this.If=-1;this.ck=this.Ko.bind(this);this.he=new _.Wl;this.setNetworkEngine(this.he);this.P=new _.ki;this.ih=this.xc=this.Gd=this.L=null};
164
+ Cn=function(a,b){return _.I(function(c){if(1==c.a){if(0!==a.getState())return c.C(2);a.log.debug("Player is in IDLE state. Postpone seek.");return _.x(c,new Promise(function(d,e){a.P.one(a,_.uf,function(){switch(a.getState()){case 6:case 8:case 10:a.log.debug("Valid seek state reached.");d();break;default:a.log.warn("Invalid seek target state. Aborting seek"),e()}})}),2)}return b.readyState>HTMLMediaElement.HAVE_NOTHING?c["return"]():_.x(c,new Promise(function(d){a.P.one(b,_.Fe,d)}),0)})};
165
+ Dn=function(a,b,c,d,e,f){return new Promise(function(g){function k(l){var m=a.getMediaPosition(),n=Math.abs(c-m)<=f,p=.25<m-c,q=b.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,t=l.type===_.Wf,u=l.type===_.Jf,y=l.type===_.ug,A=u&&q;p=t||n&&A||y&&p;a.log.debug("Checking seeking state after "+l.type+" event. Seek completed:",p,"Current Time:",m,"Target Time:",c,"Native Event:",t,"Time reached",n,"Timeupdate:",y,"Progress:",u,"ReadyState:",q,"Progress Ready:",A);p?(a.rh=!1,a.xd=!1,a.P.off(b,_.Wf,k),
166
+ a.P.off(b,_.ug,k),a.P.off(b,_.Jf,k),a.rj(),a.trigger(new _.R(_.Eg)),g()):u&&e===m&&(a.log.debug("Seek seemed to have been ignored. Trying again"),b.currentTime=c)}a.trigger(new _.R(_.Fg));a.P.on(b,_.Wf,k);a.P.on(b,_.ug,k);a.P.on(b,_.Jf,k);a.log.info("Seeking to "+c+". Delta "+d);a.rh=!0;a.xd=!0;b.currentTime=c})};En=function(){this.a=this.f=null;this.g=new _.L("clpp.drm.csl")};Fn=function(a,b){3===b.type&&(a.f&&(a.g.debug("Attaching tracking token"),b.headers[bh]=a.f),a.a&&(b.headers[ch]=a.a))};
167
+ Gn=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[bh];a.a=b.headers[ch];var c=b.headers["x-dt-csl-renewal-info"];a.f&&a.g.debug("Loaded tracking token "+a.f);a.a&&a.g.debug("Loaded followup token "+a.a);if(c)return c=JSON.parse(_.S.ga(_.Jl(c))),{delay:c.renewalPeriod,Mp:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};
168
+ _.Hn=function(a,b){b=void 0===b?!1:b;this.f=_.N.ya(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.h=b;this.buffer=this.f.buffer};_.Jn=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.Vi(a.f.buffer);b=_.Vi(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.In()}};_.V=function(a,b){try{a.f.setUint32(a.a,b,a.h),a.a+=4}catch(c){_.In()}};_.In=function(){throw new _.O(_.Q,3,3E3);};_.Kn=function(a,b){this.f=a;this.h=void 0===b?!0:b;this.a=0};_.Ln=function(a){return a.a<a.f.byteLength};
169
+ _.Nn=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){_.Mn()}};_.On=function(a){try{var b=a.f.getUint16(a.a,a.h);a.a+=2;return b}catch(c){_.Mn()}};_.Pn=function(a){try{var b=a.f.getUint32(a.a,a.h);a.a+=4;return b}catch(c){_.Mn()}};_.Qn=function(a){try{var b=a.f.getInt32(a.a,a.h);a.a+=4;return b}catch(c){_.Mn()}};
170
+ _.Rn=function(a){var b=0,c=0;try{!0===a.h?(b=a.f.getUint32(a.a,!0),c=a.f.getUint32(a.a+4,!0)):(c=a.f.getUint32(a.a,!1),b=a.f.getUint32(a.a+4,!1))}catch(d){_.Mn()}if(2097151<c)throw new _.O(_.Q,3,3001);a.a+=8;return c*Math.pow(2,32)+b};Sn=function(a,b){for(var c=new Uint8Array(b),d=0;d<b;d++)c[d]=_.Nn(a);return c};_.Tn=function(a,b){a.a+b>a.f.byteLength&&_.Mn();var c=a.a+a.f.byteOffset;c=a.f.buffer.slice(c,c+b);a.a+=b;return _.Vi(c)};
171
+ _.Mn=function(){throw new _.O(_.Q,3,3E3,"Buffer read out of bounds.");};_.Un=function(){this.h=[];this.f=[];this.a=!1;this.g=new _.L("clpp.mp4")};_.Vn=function(a){for(;_.Ln(a.reader)&&!a.parser.a;)a.parser.Wf(a.start+a.headerSize,a.reader,a.partialOkay)};_.Wn=function(a){for(var b=_.Pn(a.reader);0<b&&!a.parser.a;--b)a.parser.Wf(a.start+a.headerSize,a.reader,a.partialOkay)};_.Xn=function(a){return function(b){var c=b.reader.cb()-b.reader.getPosition();a(_.Tn(b.reader,c))}};
172
+ Yn=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.Zn=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};_.$n=function(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)};ao=function(){};bo=function(a){var b="";try{b=_.S.ve(a)}catch(c){}return b};_.co=function(a){a=bo(a);var b="";a.length&&(b=(new _.ck(a)).a);return b};
173
+ eo=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.S.ga(a)),d=_.Jl(c.sinf[0]);(new _.Un).N(_.ag,_.Vn).N("schi",_.Vn).N("tenc",function(e){e.reader.skip(6);_.Nn(e.reader)&&(e.reader.skip(1),b=_.Ll(_.Tn(e.reader,16)));e.parser.stop()}).parse(d)}catch(e){}return b};
174
+ fo=function(a,b,c){if(!c||!c.byteLength)throw new _.O(_.Q,6,6102);var d;typeof b===_.hg?d=_.S.eg(b,!0):d=b;a=_.S.eg(bo(a),!0);b=new _.Hn(12+a.byteLength+d.byteLength+c.byteLength,!0);_.V(b,a.byteLength);_.Jn(b,_.Vi(a));_.V(b,d.byteLength);_.Jn(b,_.Vi(d));_.V(b,c.byteLength);_.Jn(b,_.Vi(c));return _.Vi(b.buffer)};_.go=function(a){var b=_.Vi(a.body);b=_.Il(b);a.headers[_.Da]=_.Qc;a.body=_.S.sb("spc\x3d"+b).buffer};
175
+ _.ho=function(a){try{var b=_.S.ga(a.data)}catch(d){return}b=b.trim();"\x3cckc\x3e"===b.substr(0,5)&&"\x3c/ckc\x3e"===b.substr(-6)&&(b=b.slice(5,-6));try{var c=JSON.parse(b);c.ckc&&(b=c.ckc);c.CkcMessage&&(b=c.CkcMessage);c.License&&(b=c.License)}catch(d){}a.data=bj(_.Jl(b))};
176
+ io=function(a){switch(a){case "PRODUCTION":return"https://lic.drmtoday.com";case "STAGING":return"https://lic.staging.drmtoday.com";case "DEMO":return"https://lic-demo.staging.drmtoday.com";case "TEST":return"https://lic.test.drmtoday.com";default:throw new _.hi("Cannot infer DRMtoday base URL for environment: "+a);}};_.jo=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
177
+ lo=function(a,b){var c=bo(b);c=new _.ck(_.jo(c));var d=_.fk(c.f);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData,f=e.assetId;e=e.variantId;f&&_.S.Of(""+f)&&(d.assetId=f,_.ko.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.S.Of(""+e)&&(d.variantId=e,_.ko.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(f=["keyId"],_.ko.debug("KeyId found in FPS SKD. Removing other parameters")):f=["assetId","variantId"];
178
+ c.f=_.ek(d,!1,f);"/"!==c.path||c.j.includes(c.a+"/")||(c.path="");return _.dk(c)};_.mo=function(a,b){var c=b.drm;if(c&&c.customData){var d={userId:c.customData.userId,sessionId:c.customData.sessionId,merchant:c.customData.merchant};_.N.Yb(d)&&(a.headers["dt-custom-data"]=btoa(JSON.stringify(d)));(c=c.customData.authToken)&&(a.headers["x-dt-auth-token"]=c)}};oo=function(a){var b={},c=a?a[dh]:void 0;a=no[a?a[dh]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};
179
+ po=function(a){a=a["x-dt-li"];if(!a)return null;try{var b=JSON.parse(atob(a));a={};b.ti&&(a.requestId=b.ti);b.rpd&&(a.delay=Number(b.rpd)/1E3);return a}catch(c){return _.ko.warn("Unable to parse DRMtoday License Info header (x-dt-li)",c),null}};_.ro=function(a){a=qo[a];if(!a)return null;var b=_.Si();return b.os===Ii&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.so=function(a){this.f=a;this.a=void 0};to=function(){this.size=0;this.a=void 0;this.g=new _.L("clpp.drm.eme.MediaKeyStatusMap")};
180
+ uo=function(a,b){a.size=void 0===b?0:1;a.g.debug("Setting key status to",b);a.a=b};wo=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=vo.value().get(b),c.one(a,b,d))};xo=function(){this.a=this.f=null};
181
+ yo=function(a,b){this.keySystem=a;if(a.startsWith(_.Fd))for(var c=_.v(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.Pf)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.bf,distinctiveIdentifier:_.bf,initDataTypes:e.initDataTypes,sessionTypes:[lg],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var k=_.v(e.audioCapabilities),l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&
182
182
  (d.audioCapabilities.push(l),g=!0));if(e.videoCapabilities)for(e=_.v(e.videoCapabilities),l=e.next();!l.done;l=e.next())k=l.value,k.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,k.contentType.split(";")[0])&&(d.videoCapabilities.push(k),g=!0));f||(g=WebKitMediaKeys.isTypeSupported(this.keySystem,_.Og));d=g?d:null}if(d){this.a=d;return}}c=Error(Pb);c.name=nb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
183
- Ko=function(a){this.f=null;this.h=new WebKitMediaKeys(a);this.a=new _.ki;this.j=0;this.g=new _.L(yd);this.g.info("Created Media Keys for "+a)};
184
- Lo=function(a,b){a.f=b;_.ni(a.a);if(!b)return Promise.resolve();a.a.on(b,he,function(c){_.Ph("AppleEmeManager.cancelNativeMediaEncryptedEvent_",c);"MediaEncryptedEvent"in window&&c instanceof MediaEncryptedEvent&&(a.g.info("Cancel native MediaEncryptedEvent when using Apple-prefixed EME"),c.stopImmediatePropagation())});a.a.on(b,$g,function(c){a.g.debug("Handle webkitNeedKey event");c=_.Vi(c.initData);if(_.aj(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");
185
- c=_.S.Xc(c.subarray(4),!0);c=_.S.sb(c);var d=new Event(he);d.initDataType="skd";d.initData=bj(c);a.f.dispatchEvent(d)});Bo(b,HTMLMediaElement.HAVE_METADATA,a.a,function(){return b.webkitSetMediaKeys(a.h)});return Promise.resolve()};Mo=function(a,b){_.kn.call(this);this.a=null;this.o=a;this.f=this.h=null;this.j=new _.ki;this.sessionId=b;this.expiration=NaN;this.closed=new _.ml;this.l=!1;this.keyStatuses=new yo;this.g=new _.L(yd)};No=function(a,b){zo(a.keyStatuses,b);a.dispatchEvent(new _.R(we))};
186
- Oo=function(){};Po=function(){this.a=null;this.g=new _.L("clpp.drm.eme.StandardEmeManager")};Qo=function(){};Ro=function(){this.f=this.a=null;this.h="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.h="webkit")};
187
- So=function(a,b,c,d){this.h=a;this.a=this.keySystem=c;a=!1;c===_.bf&&(this.a=Wg,a=!1);var e=!1;d=_.v(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=[],k=[],l=!1;if(f.audioCapabilities)for(var m=_.v(f.audioCapabilities),n=m.next();!n.done;n=m.next())n=n.value,n.contentType&&(l=!0,b.canPlayType(n.contentType.split(";")[0],this.a)&&(g.push(n),e=!0));if(f.videoCapabilities)for(g=_.v(f.videoCapabilities),n=g.next();!n.done;n=g.next())m=n.value,m.contentType&&(l=!0,b.canPlayType(m.contentType,
188
- this.a)&&(k.push(m),e=!0));l||(e=b.canPlayType(_.Og,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.Of||a||(e=!1);if(e){this.f=f;return}}b=Pb;if(c===_.bf||c===_.Jd)b="None of the requested configurations were supported.";c=Error(b);c.name=nb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};To=function(a,b){this.h=a;this.o=b;this.a=null;this.f=new _.ki;this.j=[];this.l=new Map};
189
- Wo=function(a,b){a.a=b;_.ni(a.f);b&&(a.f.on(b,a.h+"needkey",function(c){var d=new Event(he);d.initDataType=_.ld;d.initData=bj(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.h+"keymessage",function(c){var d=Uo(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.R(_.Ke,{messageType:e?ze:ye,message:c.message});_.Ph("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.Qh("Session not found",c.sessionId)}),a.f.on(b,a.h+"keyadded",function(c){(c=
190
- Uo(a,c.sessionId))&&c.ready()}),a.f.on(b,a.h+"keyerror",function(c){var d=Uo(a,c.sessionId);if(d){var e=Error("EME v0.1b key error"),f=c.errorCode;f.systemCode=c.systemCode;e.errorCode=f;!c.sessionId&&d.f?(45===c.systemCode&&(e.message="Unsupported session type."),d.f.reject(e),d.f=null):c.sessionId&&d.a?(d.a.reject(e),d.a=null):(e=c.systemCode,c.errorCode.code===MediaKeyError.MEDIA_KEYERR_OUTPUT?Vo(d,_.cf):1===e?Vo(d,"expired"):Vo(d,_.ve))}}))};
191
- Uo=function(a,b){var c=a.l.get(b);return c?c:(c=a.j.shift())?(c.sessionId=b,a.l.set(b,c),c):null};Xo=function(a,b,c,d){_.kn.call(this);this.w=a;this.j=b;this.o=!1;this.a=this.f=null;this.h=c;this.l=d;this.sessionId="";this.expiration=NaN;this.closed=new _.ml;this.keyStatuses=new yo};
192
- Zo=function(a,b,c){if(a.o)return Promise.reject(Error("The session is already initialized."));a.o=!0;try{if(a.l===_.ff)if(c)var d=_.Vi(_.S.sb("LOAD_SESSION|"+c));else{var e=_.S.sb("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.Vi(b),e.byteLength);d=f}else d=_.Vi(b)}catch(k){return Promise.reject(k)}a.f=new _.ml;var g=Yo(a,"generateKeyRequest");try{a.j[g](a.h,d)}catch(k){if(k.name!==Xa)return a.f=null,Promise.reject(k);(new _.Yh(function(){try{a.j[g](a.h,d)}catch(l){a.f.reject(l),
193
- a.f=null}})).ia(.01)}return a.f};$o=function(a,b,c){if(a.a)a.a.then(function(){return $o(a,b,c)})["catch"](function(){return $o(a,b,c)});else{a.a=b;if(a.h===Wg){var d=_.S.ga(c);var e=JSON.parse(d);"oct"!==e.keys[0].kty&&(a.a.reject(Error("Response is not a valid JSON Web Key Set.")),a.a=null);d=_.Gl(e.keys[0].k);e=_.Gl(e.keys[0].kid)}else d=_.Vi(c),e=null;var f=Yo(a,"addKey");try{a.j[f](a.h,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};Vo=function(a,b){zo(a.keyStatuses,b);a.dispatchEvent(new _.R(we))};
194
- Yo=function(a,b){return a.w?a.w+b.charAt(0).toUpperCase()+b.slice(1):b};ap=function(){};bp=function(){};cp=function(){};fp=function(a,b){var c=dp;if(a){var d=c.find(function(e){return e.a()===a});if(d)return ep.info(Xb+d.a()),d.create();ep.info("Cannot create selected EME manager, falling back to the default.")}if(b&&(d=c.find(function(e){return e.a()===b})))return ep.info(Xb+d.a()),d.create();c=c[0];if(!c)throw Error("Missing EME managers.");ep.info(Xb+c.a());return c.create()};_.gp=function(){};
195
- hp=function(a,b,c){this.j=new Uint8Array(a);this.a=b;this.f=c};ip=function(){hp.apply(this,arguments)};_.kp=function(a){var b=_.Hl(a);b=parseInt(b.byteLength,10).toString(16);b=_.Hl("12"+b+a);return new ip(jp,a,b)};
196
- _.lp=function(a){function b(t){switch(t){case 0:do if(!_.Rn(d))throw Error("not enough data to skip!");while(_.Tn(d)&128);break;case 1:d.skip(8);break;case 2:d.skip(c());break;case 3:for(;4!==(t=c()&7);)b(t);break;case 5:d.skip(4);break;default:throw Error("invalid wire type "+t);}}function c(){for(var t=_.Tn(d),u=(t&127)>>>0,y=7;128<=t&&28>=y;)t=_.Tn(d),u=(u|(t&(28>y?127:15))<<y)>>>0,y+=7;return 28<y?-1:u}var d=new _.Qn(new DataView(a.buffer,a.byteOffset,a.byteLength),!1);a=_.Vn(d);var e=_.Vn(d);
197
- e=_.fo(e);var f=_.Vn(d),g=f>>>24;f&=16777215;var k=_.Zn(d,16);k=_.Il(k);if(0<g){var l=_.Vn(d);d.skip(16*l)}l=_.Vn(d);for(var m=[],n=null;_.Rn(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=Yn(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.Ph("Parsed WV PSSH Box","size",a,"name",e,Hg,g,"flags",f,"size",l,"systemId",k,"contentId (base64)",n?_.El(n):"","keyIds",m.map(function(t){return _.Il(t)}));return 0<m.length?_.kp(_.Il(m[0])):null};
198
- _.mp=function(a,b,c,d,e,f){f=void 0===f?null:f;hp.call(this,a,b,d);this.version=e;this.h=c;this.l=f};
199
- _.sp=function(a){var b=_.np;a:{var c=new _.Qn(new DataView(a.buffer),!0);_.Vn(c);for(_.Un(c);_.Rn(c);)if(1===_.Un(c)){var d=_.Un(c);c=_.Zn(c,d);break a}c=null}c||(c=a);a=_.S.Xc(c,!0);d=b.Se(a,"WRMHEADER");a=d.getAttribute(Hg)||"";d=b.Pa(d,"DATA");var e=b.Pa(d,"LA_URL");b=e?b.ua(e):"";e=_.np;var f=e.Pa(d,"KID");if(f)if(f=e.ua(f)){var g=e.Pa(d,ua);e=g?e.ua(g):null;e={value:f,xg:e}}else e=null;else e=null;d=e?[e]:(e=op(d))?[e]:(d=pp(d))?d:null;e=d&&d[0]||{};d=e.xg;e=_.Gl(void 0===e.value?"":e.value);
200
- e=_.qp(e);e=_.Il(e);return new _.mp(_.rp,e,b,c,a,d)};_.qp=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=_.Vi(a);a.set(b,0);return a};op=function(a){var b=_.np;a=b.Pa(a,"PROTECTINFO");if(!a)return null;var c=b.Pa(a,"KID");if(!c)return null;b=c.getAttribute("VALUE");if(!b)return null;a=c.getAttribute(ua);c=c.getAttribute("ALGID");return{value:b,xg:a,sk:c}};
201
- pp=function(a){var b=_.np;a=b.Pa(a,"PROTECTINFO");if(!a)return null;a=b.Pa(a,"KIDS");if(!a)return null;a=b.aa(a,"KID");if(!a.length)return null;b=[];a=_.v(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;if(c=d.getAttribute("VALUE")){var e=d.getAttribute(ua);d=d.getAttribute("ALGID");b.push({value:c,xg:e,sk:d})}}return b.length?b:null};_.up=function(a){tp&&performance.mark(a)};
202
- _.wp=function(a,b,c){tp&&(b=performance.measure(a,b,c),null!=b&&vp.info('Step: "'+a+'" took '+b.duration.toFixed(0)+" ms."))};xp=function(a){this.f=[];this.h=[];this.a=[];8<=a.byteLength&&(new _.$n).da("pssh",this.j.bind(this)).parse(a.buffer);0===this.a.length&&_.Kh("No pssh box found!")};
203
- _.Bp=function(a,b){var c=this;this.F=a;this.xc=b;this.K=new Set;this.D=this.J=this.l=null;this.X=!1;this.a=null;this.L=yp;this.B=new _.ki;this.P=new Kn;this.h=new Map;this.M=[];this.I=new _.ml;this.Sb=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.na=new Map;this.ba=new _.Yh(function(){return zp(c)});this.j=!1;this.Fa=new _.ml;this.H=!1;this.ha=[];this.vb=!1;this.W=0;this.g=new _.L("clpp.drm.DrmEngine");this.Aa=(new _.Yh(function(){Ap(c)})).Qb(1);this.I["catch"](function(){});
183
+ zo=function(a){this.f=null;this.h=new WebKitMediaKeys(a);this.a=new _.ki;this.j=0;this.g=new _.L(yd);this.g.info("Created Media Keys for "+a)};
184
+ Ao=function(a,b){a.f=b;_.ni(a.a);if(!b)return Promise.resolve();a.a.on(b,he,function(c){_.Ph("AppleEmeManager.cancelNativeMediaEncryptedEvent_",c);"MediaEncryptedEvent"in window&&c instanceof MediaEncryptedEvent&&(a.g.info("Cancel native MediaEncryptedEvent when using Apple-prefixed EME"),c.stopImmediatePropagation())});a.a.on(b,$g,function(c){a.g.debug("Handle webkitNeedKey event");c=_.Vi(c.initData);if(_.aj(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");
185
+ c=_.S.Xc(c.subarray(4),!0);c=_.S.sb(c);var d=new Event(he);d.initDataType="skd";d.initData=bj(c);a.f.dispatchEvent(d)});wo(b,HTMLMediaElement.HAVE_METADATA,a.a,function(){return b.webkitSetMediaKeys(a.h)});return Promise.resolve()};Bo=function(a,b){_.qn.call(this);this.a=null;this.o=a;this.f=this.h=null;this.j=new _.ki;this.sessionId=b;this.expiration=NaN;this.closed=new _.ol;this.l=!1;this.keyStatuses=new to;this.g=new _.L(yd)};Co=function(a,b){uo(a.keyStatuses,b);a.dispatchEvent(new _.R(we))};
186
+ Do=function(){};Eo=function(){this.a=null;this.g=new _.L("clpp.drm.eme.StandardEmeManager")};Fo=function(){};Go=function(){this.f=this.a=null;this.h="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.h="webkit")};
187
+ Ho=function(a,b,c,d){this.h=a;this.a=this.keySystem=c;a=!1;c===_.cf&&(this.a=Wg,a=!1);var e=!1;d=_.v(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=[],k=[],l=!1;if(f.audioCapabilities)for(var m=_.v(f.audioCapabilities),n=m.next();!n.done;n=m.next())n=n.value,n.contentType&&(l=!0,b.canPlayType(n.contentType.split(";")[0],this.a)&&(g.push(n),e=!0));if(f.videoCapabilities)for(g=_.v(f.videoCapabilities),n=g.next();!n.done;n=g.next())m=n.value,m.contentType&&(l=!0,b.canPlayType(m.contentType,
188
+ this.a)&&(k.push(m),e=!0));l||(e=b.canPlayType(_.Og,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.Pf||a||(e=!1);if(e){this.f=f;return}}b=Pb;if(c===_.cf||c===_.Jd)b="None of the requested configurations were supported.";c=Error(b);c.name=nb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};Io=function(a,b){this.h=a;this.o=b;this.a=null;this.f=new _.ki;this.j=[];this.l=new Map};
189
+ Ro=function(a,b){a.a=b;_.ni(a.f);b&&(a.f.on(b,a.h+"needkey",function(c){var d=new Event(he);d.initDataType=_.ld;d.initData=bj(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.h+"keymessage",function(c){var d=Po(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.R(_.Ke,{messageType:e?ze:ye,message:c.message});_.Ph("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.Qh("Session not found",c.sessionId)}),a.f.on(b,a.h+"keyadded",function(c){(c=
190
+ Po(a,c.sessionId))&&c.ready()}),a.f.on(b,a.h+"keyerror",function(c){var d=Po(a,c.sessionId);if(d){var e=Error("EME v0.1b key error"),f=c.errorCode;f.systemCode=c.systemCode;e.errorCode=f;!c.sessionId&&d.f?(45===c.systemCode&&(e.message="Unsupported session type."),d.f.reject(e),d.f=null):c.sessionId&&d.a?(d.a.reject(e),d.a=null):(e=c.systemCode,c.errorCode.code===MediaKeyError.MEDIA_KEYERR_OUTPUT?Qo(d,_.df):1===e?Qo(d,"expired"):Qo(d,_.ve))}}))};
191
+ Po=function(a,b){var c=a.l.get(b);return c?c:(c=a.j.shift())?(c.sessionId=b,a.l.set(b,c),c):null};So=function(a,b,c,d){_.qn.call(this);this.w=a;this.j=b;this.o=!1;this.a=this.f=null;this.h=c;this.l=d;this.sessionId="";this.expiration=NaN;this.closed=new _.ol;this.keyStatuses=new to};
192
+ Uo=function(a,b,c){if(a.o)return Promise.reject(Error("The session is already initialized."));a.o=!0;try{if(a.l===_.gf)if(c)var d=_.Vi(_.S.sb("LOAD_SESSION|"+c));else{var e=_.S.sb("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.Vi(b),e.byteLength);d=f}else d=_.Vi(b)}catch(k){return Promise.reject(k)}a.f=new _.ol;var g=To(a,"generateKeyRequest");try{a.j[g](a.h,d)}catch(k){if(k.name!==Xa)return a.f=null,Promise.reject(k);(new _.Yh(function(){try{a.j[g](a.h,d)}catch(l){a.f.reject(l),
193
+ a.f=null}})).ia(.01)}return a.f};Vo=function(a,b,c){if(a.a)a.a.then(function(){return Vo(a,b,c)})["catch"](function(){return Vo(a,b,c)});else{a.a=b;if(a.h===Wg){var d=_.S.ga(c);var e=JSON.parse(d);"oct"!==e.keys[0].kty&&(a.a.reject(Error("Response is not a valid JSON Web Key Set.")),a.a=null);d=_.Jl(e.keys[0].k);e=_.Jl(e.keys[0].kid)}else d=_.Vi(c),e=null;var f=To(a,"addKey");try{a.j[f](a.h,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};Qo=function(a,b){uo(a.keyStatuses,b);a.dispatchEvent(new _.R(we))};
194
+ To=function(a,b){return a.w?a.w+b.charAt(0).toUpperCase()+b.slice(1):b};Wo=function(){};Xo=function(){};Yo=function(){};ap=function(a,b){var c=Zo;if(a){var d=c.find(function(e){return e.a()===a});if(d)return $o.info(Xb+d.a()),d.create();$o.info("Cannot create selected EME manager, falling back to the default.")}if(b&&(d=c.find(function(e){return e.a()===b})))return $o.info(Xb+d.a()),d.create();c=c[0];if(!c)throw Error("Missing EME managers.");$o.info(Xb+c.a());return c.create()};_.bp=function(){};
195
+ cp=function(a,b,c){this.j=new Uint8Array(a);this.a=b;this.f=c};dp=function(){cp.apply(this,arguments)};_.fp=function(a){var b=_.Kl(a);b=parseInt(b.byteLength,10).toString(16);b=_.Kl("12"+b+a);return new dp(ep,a,b)};
196
+ _.gp=function(a){function b(t){switch(t){case 0:do if(!_.Ln(d))throw Error("not enough data to skip!");while(_.Nn(d)&128);break;case 1:d.skip(8);break;case 2:d.skip(c());break;case 3:for(;4!==(t=c()&7);)b(t);break;case 5:d.skip(4);break;default:throw Error("invalid wire type "+t);}}function c(){for(var t=_.Nn(d),u=(t&127)>>>0,y=7;128<=t&&28>=y;)t=_.Nn(d),u=(u|(t&(28>y?127:15))<<y)>>>0,y+=7;return 28<y?-1:u}var d=new _.Kn(new DataView(a.buffer,a.byteOffset,a.byteLength),!1);a=_.Pn(d);var e=_.Pn(d);
197
+ e=_.Zn(e);var f=_.Pn(d),g=f>>>24;f&=16777215;var k=_.Tn(d,16);k=_.Ll(k);if(0<g){var l=_.Pn(d);d.skip(16*l)}l=_.Pn(d);for(var m=[],n=null;_.Ln(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=Sn(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.Ph("Parsed WV PSSH Box","size",a,"name",e,Hg,g,"flags",f,"size",l,"systemId",k,"contentId (base64)",n?_.Hl(n):"","keyIds",m.map(function(t){return _.Ll(t)}));return 0<m.length?_.fp(_.Ll(m[0])):null};
198
+ _.hp=function(a,b,c,d,e,f){f=void 0===f?null:f;cp.call(this,a,b,d);this.version=e;this.h=c;this.l=f};
199
+ _.np=function(a){var b=_.ip;a:{var c=new _.Kn(new DataView(a.buffer),!0);_.Pn(c);for(_.On(c);_.Ln(c);)if(1===_.On(c)){var d=_.On(c);c=_.Tn(c,d);break a}c=null}c||(c=a);a=_.S.Xc(c,!0);d=b.Se(a,"WRMHEADER");a=d.getAttribute(Hg)||"";d=b.Qa(d,"DATA");var e=b.Qa(d,"LA_URL");b=e?b.ua(e):"";e=_.ip;var f=e.Qa(d,"KID");if(f)if(f=e.ua(f)){var g=e.Qa(d,ua);e=g?e.ua(g):null;e={value:f,yg:e}}else e=null;else e=null;d=e?[e]:(e=jp(d))?[e]:(d=kp(d))?d:null;e=d&&d[0]||{};d=e.yg;e=_.Jl(void 0===e.value?"":e.value);
200
+ e=_.lp(e);e=_.Ll(e);return new _.hp(_.mp,e,b,c,a,d)};_.lp=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=_.Vi(a);a.set(b,0);return a};jp=function(a){var b=_.ip;a=b.Qa(a,"PROTECTINFO");if(!a)return null;var c=b.Qa(a,"KID");if(!c)return null;b=c.getAttribute("VALUE");if(!b)return null;a=c.getAttribute(ua);c=c.getAttribute("ALGID");return{value:b,yg:a,tk:c}};
201
+ kp=function(a){var b=_.ip;a=b.Qa(a,"PROTECTINFO");if(!a)return null;a=b.Qa(a,"KIDS");if(!a)return null;a=b.aa(a,"KID");if(!a.length)return null;b=[];a=_.v(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;if(c=d.getAttribute("VALUE")){var e=d.getAttribute(ua);d=d.getAttribute("ALGID");b.push({value:c,yg:e,tk:d})}}return b.length?b:null};_.pp=function(a){op&&performance.mark(a)};
202
+ _.rp=function(a,b,c){op&&(b=performance.measure(a,b,c),null!=b&&qp.info('Step: "'+a+'" took '+b.duration.toFixed(0)+" ms."))};sp=function(a){this.f=[];this.h=[];this.a=[];8<=a.byteLength&&(new _.Un).da("pssh",this.j.bind(this)).parse(a.buffer);0===this.a.length&&_.Kh("No pssh box found!")};
203
+ _.wp=function(a,b){var c=this;this.F=a;this.xc=b;this.K=new Set;this.D=this.J=this.l=null;this.X=!1;this.a=null;this.L=tp;this.B=new _.ki;this.P=new En;this.h=new Map;this.M=[];this.I=new _.ol;this.Sb=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.na=new Map;this.ba=new _.Yh(function(){return up(c)});this.j=!1;this.Fa=new _.ol;this.H=!1;this.ha=[];this.vb=!1;this.W=0;this.g=new _.L("clpp.drm.DrmEngine");this.Aa=(new _.Yh(function(){vp(c)})).Qb(1);this.I["catch"](function(){});
204
204
  this.A=this.G=!1;this.T=null};
205
- Dp=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.Aa.stop();a.Aa=null;a.ba.stop();a.ba=null;b=Array.from(a.h.keys());c=_.v(a.h.values());for(d=c.next();!d.done;d=c.next())e=d.value,e.Ed&&e.Ed.stop();a.h.clear();return _.x(g,Promise.all(b.map(function(k){return Promise.resolve().then(function(){var l;return _.I(function(m){if(1==m.a)return a.g.debug("Closing session",k.sessionId),_.F(m,2),_.x(m,Cp(k),4);
205
+ yp=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.Aa.stop();a.Aa=null;a.ba.stop();a.ba=null;b=Array.from(a.h.keys());c=_.v(a.h.values());for(d=c.next();!d.done;d=c.next())e=d.value,e.Ed&&e.Ed.stop();a.h.clear();return _.x(g,Promise.all(b.map(function(k){return Promise.resolve().then(function(){var l;return _.I(function(m){if(1==m.a)return a.g.debug("Closing session",k.sessionId),_.F(m,2),_.x(m,xp(k),4);
206
206
  if(2!=m.a)return _.G(m,0);l=_.H(m);a.g.warn("Error while closing session",l);_.z(m)})})})),2);case 2:if(!a.D){g.C(3);break}_.F(g,4);return _.x(g,a.l.ke(null),6);case 6:_.G(g,5);break;case 4:f=_.H(g),a.g.warn("Error while resetting media keys",f);case 5:a.D=null;case 3:a.l=null,a.a=null,a.K.clear(),a.J=null,a.M=[],a.f=null,a.w=null,a.F=null,a.W=0,a.T=null,_.z(g)}})};
207
- _.Gp=function(a,b,c){c=void 0===c?[]:c;a.L=Ep;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 _.Fp(a,b)};
208
- Mp=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.N.Eh(a.f.Ua);Hp(b,d)}var e=a.f.Ua[_.Fd];d=b.some(function(g){return g.drmInfos.some(function(k){return k.keySystem===_.Fd})});if(!1!==a.f.Op&&_.vi()&&!d&&e){var f=_.v(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos.push({keySystem:_.Fd,licenseServerUri:e.licenseUrl,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:[],
209
- periodId:null})}if(e=Ip(a))for(f=_.v(b),d=f.next();!d.done;d=f.next())d.value.drmInfos=[e];d=Jp(b);Kp(a,d);d=_.v(d);for(e=d.next();!e.done;e=d.next())Lp(e.value,a.f.Ua);return c};_.Fp=function(a,b){var c=Mp(a,b),d=Jp(b);d=_.v(d);for(var e=d.next();!e.done;e=d.next())Np(a,e.value,a.f.Ua);d=Op(a,b);if(!d.size)return a.X=!0,Promise.resolve();_.up(Vd);d=_.Pp(a,d);return(c?d:d["catch"](function(){})).then(function(){_.up(Ud);_.wp("DRM queryMediaKeys_()",Vd,Ud)})};
210
- Jp=function(a){var b=[];a=_.v(a);for(var c=a.next();!c.done;c=a.next()){c=_.v(c.value.drmInfos);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};Kp=function(a,b){for(var c=_.v(b),d=c.next();!d.done;d=c.next())d=d.value,""===d.licenseServerUri||a.f.Ua[d.keySystem]||(a.f.Ua[d.keySystem]={licenseUrl:""})};
211
- Qp=function(a){var b;return _.I(function(c){switch(c.a){case 1:if(a.l.Gf())return c["return"]();if(!a.T){c.C(2);break}return _.x(c,a.T,3);case 3:return c["return"]();case 2:return _.F(c,4),a.T=a.l.ke(a.J),_.x(c,a.T,6);case 6:_.G(c,0);break;case 4:b=_.H(c);if(a.j)return c["return"]();a.w(new _.O(_.Q,6,6003,b.message,b));_.z(c)}})};
212
- Sp=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Handle encrypted event for type "+b.initDataType),_.x(c,Qp(a),2);if(!b.initData)return c["return"]();_.Rp(a,b.initDataType,_.Vi(b.initData));_.z(c)})};
213
- _.Xp=function(a,b){if(!a.J)return li(a.B,b,function(){a.w(new _.O(_.Q,6,6010))}),Promise.resolve();a.D=b;a.l.uf(b);a.B.one(a.D,_.hf,function(){return Tp(a)});a.B.on(a.D,_.Vg,function(e){var f=a.G;a.G=!a.A;!f&&a.G&&(a.g.info("Waiting for DRM license key delivery"),a.F.onEvent(e))});var c=a.a.initData.find(function(e){return 0<e.initData.length}),d=Promise.resolve();if(c||a.l.je()!==yb||a.M.length)d=Qp(a);c=Promise.resolve();_.ti()&&38===_.Qi().major||(a.a&&a.a.keySystem!==_.bf&&!a.a.serverCertificate&&
214
- (c=Up(a)),c=c.then(function(){return _.Vp(a)}));return Promise.all([d,c]).then(function(){a.j||(_.Wp(a),a.B.on(a.D,he,function(e){return Sp(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.a&&a.a.keySystem===_.Jd&&1>a.W&&a.a.serverCertificate&&a.a.serverCertificate.length)return a.g.warn("Detected invalid widevine server certificate!. Retrying"),a.w(new _.O(1,6,6004)),a.a.serverCertificate=null,a.W++,_.Xp(a,b);1<=a.W&&a.g.info("Could not get valid widevine server certificate. Giving up");
215
- throw e;}})};_.Vp=function(a){var b,c;return _.I(function(d){if(1==d.a){if(!(a.J&&a.a&&a.a.serverCertificate&&a.a.serverCertificate.length))return d.C(0);_.F(d,3);return _.x(d,a.J.setServerCertificate(a.a.serverCertificate),5)}if(3!=d.a)return b=d.f,void 0===b||b||a.g.debug("Server certificates are not supported by the key system. The server certificate has been ignored."),_.G(d,0);c=_.H(d);throw new _.O(_.Q,6,6004,{browserError:c.message});})};
216
- Up=function(a){var b=a.keySystem(),c=a.f.Ua[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.F.getConfiguration();return Yp(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,k=f&&f.certificateResponse;f=_.Tk([d],a.f.attemptParameters);f.type=3;f.licenseRequestType=nd;g&&f.requestModifiers.push(function(l){return g(e,l)});k&&f.responseModifiers.push(function(l){return k(e,l)});a.g.debug("Fetching certificate");return a.F.Lb.fetch(f).U}).then(function(f){a.a.serverCertificate=
217
- _.Vi(f.data)})["catch"](function(f){var g=f.data.headers;g=Object.assign({message:Na,url:f.data.url,status:f.data.status,response:f.data.response},g?{headers:g}:{},so(g));throw new _.O(_.Q,6,6100,g,f);})};Yp=function(a,b){var c,d;return _.I(function(e){c=a.F.Jd();return c?(d=b&&b.drm&&b.drm.customData)?_.x(e,c(d),0):e["return"]():e["return"]()})};Zp=function(a,b){if(!a)return!1;for(var c=0;c<b.Af.length;c++)if(_.Jl(a,b.Af[c]))return!0;return!1};
218
- _.Wp=function(a){for(var b=a.a?a.a.initData||[]:[],c=_.v(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=!_.si(2);if(a.f.enforceSingleSession&&!a.keySystem().startsWith(_.Fd)){var f=a.h.values();f=_.v(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.Jl(d.initData,g.initData)?(a.g.info("Skipping Session creation. Existing init data in single session mode!"),e=!1):g.periodId===d.periodId&&(a.g.info("Skipping Session creation. Merging init data for period in single session mode for Key ID "+(d.keyId+
219
- ".")),Zp(d.initData,g)||(g.Af.push(d.initData),d.keyId&&!g.Eb.includes(d.keyId)&&g.Eb.push(d.keyId),a.o.get(d.keyId)||a.o.set(d.keyId,eg)),e=!1)}!e||a.H&&a.L===Ep||(_.$p(a,d.keyId,d.initData)&&(e=!1),e&&(a.g.info("Request new media key session on create"),aq(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.v(a.M);for(d=c.next();!d.done;d=c.next())_.bq(a,d.value);b.length||a.M.length||(a.A||a.g.info(Ha),a.A=!0,a.G=!1,a.I.resolve());return a.I};
220
- _.Rp=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.H||a.L!==Ep)){var e=a.keySystem();if(!e.startsWith(_.Fd)&&b===_.ld){var f=new xp(c);if(1<f.a.length&&(e={"org.w3.clearkey":"1077efecc0b24d02ace33c1e52e2fb4b","com.widevine.alpha":"edef8ba979d64acea3c827dcd51d21ed","com.microsoft.playready":"9a04f07998404286ab92e65be0885f95","com.adobe.primetime":"f239e769efa348509c16a903c6932efb"}[e]))for(var g=0;g<f.f.length;g++)if(e===f.f[g]){c=c.subarray(f.a[g].start,f.a[g].end+1);break}}(a.D.webkitCurrentPlaybackTargetIsWireless||
221
- _.si(2)||a.keySystem().startsWith(_.Fd)||!_.$p(a,d,c,!0))&&aq(a,d,null,b,c)}};
222
- _.$p=function(a,b,c,d){d=void 0===d?!1:d;for(var e=_.v(a.h.keys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.h.get(f);if(_.Jl(c,g.initData))return b?g.Eb.includes(b)?d&&a.g.info("Skipping Session creation. License for init data with Key ID "+(b+" was already requested in Session: '")+(f.sessionId+"'. ")):(g.Eb.push(b),a.o.get(b)||a.o.set(b,eg),d&&a.g.info(Gb+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.g.info(Gb+(f.sessionId+"'")),!0;if(Zp(c,g))return d&&a.g.info("Skipping Session creation. License for init data was already requested [extra]"),
223
- !0}return!1};cq=function(a){var b=Infinity;a=a.h.keys();a=_.v(a);for(var c=a.next();!c.done;c=a.next())c=c.value,isNaN(c.expiration)||(b=Math.min(b,c.expiration));return b};
224
- Op=function(a,b){var c=new Set(Jp(b)),d=a.H?_.Of:_.af,e=a.H?[_.ff]:[lg],f=new Map,g=_.v(c);for(c=g.next();!c.done;c=g.next())c=c.value,f.set(c.keySystem,{initDataTypes:[_.ld],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.af,persistentState:d,sessionTypes:e,label:c.keySystem,drmInfos:[]});d={};e=_.v(b);for(c=e.next();!c.done;d={ig:d.ig,$d:d.$d,ng:d.ng,ae:d.ae},c=e.next()){c=c.value;g=c.audio;var k=c.video;d.ig=g?_.dq(g):"";d.$d=null;g&&"ac-3"===g.codecs.toLowerCase()&&_.si()&&(d.$d=
225
- _.dq(g,_.ge));d.ng=k?_.dq(k):"";d.ae=null;k&&"ac-3"===k.codecs.toLowerCase()&&_.si()&&(d.ae=_.dq(k,_.ge));var l={},m=_.v(c.drmInfos);for(c=m.next();!c.done;l={ub:l.ub},c=m.next())c=c.value,l.ub=f.get(c.keySystem),l.ub.drmInfos.push(c),c.initData&&c.initData.length&&(l.ub.initDataTypes=_.jh(new Set(c.initData.map(function(n){return n.initDataType}))).concat()),c.distinctiveIdentifierRequired&&(l.ub.distinctiveIdentifier=_.Of),c.persistentStateRequired&&(l.ub.persistentState=_.Of),g&&_.Ej(c.audioRobustness).forEach(function(n,
226
- p){return function(q){var t={robustness:q||"",contentType:n.ig};p.ub.audioCapabilities.find(function(u){return u.robustness===t.robustness&&u.contentType===t.contentType})||p.ub.audioCapabilities.push(t);n.$d&&p.ub.audioCapabilities.push({robustness:q||"",contentType:n.$d})}}(d,l)),k&&_.Ej(c.videoRobustness).forEach(function(n,p){return function(q){var t={robustness:q||"",contentType:n.ng};p.ub.videoCapabilities.find(function(u){return u.robustness===t.robustness&&u.contentType===t.contentType})||
227
- p.ub.videoCapabilities.push(t);n.ae&&p.ub.videoCapabilities.push({robustness:q||"",contentType:n.ae})}}(d,l))}return f};_.dq=function(a,b){var c=_.Em(a.mimeType,b||a.codecs);if(_.Dm(c,a.type)){var d=a.type,e=_.Dm(c,d);e&&(e=e(),c=e.convertCodecs(d,c),e.destroy())}return c};
228
- _.Pp=function(a,b){function c(n,p,q){p.drmInfos.some(function(t){return!!t.licenseServerUri})===n&&(f=f["catch"](function(){if(a.j)return null;if(q===_.Hd){if((_.qi()||g.os===Ki&&_.ri("Chrome")&&!_.qi())&&!a.f.Ua[q].useLegacySystem)return p.label=Id,a.l.hc(Id,[p])["catch"](function(){a.g.warn("Unable to create com.microsoft.playready.recommendation. Falling back to com.microsoft.playready.");p.label=_.Hd;eq(p);return a.l.hc(q,[p])});eq(p)}if(q===_.Jd&&a.f.widevineVersion!==_.Jd){var t=a.f.widevineVersion;
229
- if(!t.startsWith(_.Jd))return a.g.error('Invalid "widevineVersion" value "'+t+'".'),Promise.reject();var u=Object.assign({},p,{label:t,distinctiveIdentifier:_.af,persistentState:_.af});return a.l.hc(t,[u])["catch"](function(){return a.l.hc(q,[p])})}return a.l.hc(q,[p])["catch"](function(y){a:{if(q===_.Jd&&fq(p)){var A=_.Si();if(fq(p)&&A.os===Ii&&A.browser===pd){a.g.warn("requestMediaKeySystemAccess() failed",y);a.g.warn("Will try to recover by removing the robustness attribute of videoCapabilities and audioCapabilities.");
230
- eq(p);y=a.l.hc(q,[p]);break a}}throw y;}return y})}))}if(1===b.size&&b.has(""))return Promise.reject(new _.O(_.Q,6,6E3));null===a.l&&(a.l=fp(a.f.emeApi,a.xc));for(var d=_.v(b.values()),e=d.next();!e.done;e=d.next())e=e.value,0===e.audioCapabilities.length&&delete e.audioCapabilities,0===e.videoCapabilities.length&&delete e.videoCapabilities;var f=d=new _.ml,g=_.Si(),k=a.f.preferredDrmSystem;if(!k)if(e=_.Si(),e.os===Ki&&10<=e.osVersion.major&&"edge"===e.browser)k=_.Hd;else if("safari"===e.browser)k=
231
- _.Fd;else if(e.browser===pd||"firefox"===e.browser)k=_.Jd;k&&(e=b.get(k))&&(c(!0,e,k),c(!1,e,k));e={};for(var l=_.v([!0,!1]),m=l.next();!m.done;e={mg:e.mg},m=l.next())e.mg=m.value,b.forEach(function(n){return function(p,q){q!==k&&c(n.mg,p,q)}}(e));f=f["catch"](function(){throw new _.O(_.Q,6,6001,"Failed to get MediaKeySystemAccess.");});f=f.then(function(n){if(a.j)return null;a.K.clear();var p=n.getConfiguration();a.g.info("Got MediaKeySystemAccess with configuration",p);var q=p.videoCapabilities||
232
- [],t=_.v(p.audioCapabilities||[]);for(p=t.next();!p.done;p=t.next())a.K.add(p.value.contentType.toLowerCase());q=_.v(q);for(p=q.next();!p.done;p=q.next())a.K.add(p.value.contentType.toLowerCase());q=n.keySystem;p=b.get(_.gq(n.keySystem));t=[];var u=[],y=[],A=[];hq(p.drmInfos,t,u,y,A);1<u.length&&_.Kh("Multiple unique server certificates found! Only the first will be used.");1<t.length&&_.Kh("Multiple unique license server URIs found! Only the first will be used.");a.a={keySystem:q,licenseServerUri:t[0],
233
- distinctiveIdentifierRequired:p.distinctiveIdentifier===_.Of,persistentStateRequired:p.persistentState===_.Of,audioRobustness:p.audioCapabilities?p.audioCapabilities[0].robustness:"",videoRobustness:p.videoCapabilities?p.videoCapabilities[0].robustness:"",serverCertificate:u[0],initData:y,keyIds:A,periodId:null};if(!a.a.licenseServerUri)throw new _.O(_.Q,6,6012,a.a.keySystem);return n.createMediaKeys()}).then(function(n){a.j||(a.g.info("Created MediaKeys for key system",a.a.keySystem),a.J=n,a.X=!0)})["catch"](function(n){if(!a.j){a.a=
207
+ _.Bp=function(a,b,c){c=void 0===c?[]:c;a.L=zp;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 _.Ap(a,b)};
208
+ Hp=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.N.Fh(a.f.Va);Cp(b,d)}var e=a.f.Va[_.Fd];d=b.some(function(g){return g.drmInfos.some(function(k){return k.keySystem===_.Fd})});if(!1!==a.f.Pp&&_.vi()&&!d&&e){var f=_.v(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos.push({keySystem:_.Fd,licenseServerUri:e.licenseUrl,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:[],
209
+ periodId:null})}if(e=Dp(a))for(f=_.v(b),d=f.next();!d.done;d=f.next())d.value.drmInfos=[e];d=Ep(b);Fp(a,d);d=_.v(d);for(e=d.next();!e.done;e=d.next())Gp(e.value,a.f.Va);return c};_.Ap=function(a,b){var c=Hp(a,b),d=Ep(b);d=_.v(d);for(var e=d.next();!e.done;e=d.next())Ip(a,e.value,a.f.Va);d=Jp(a,b);if(!d.size)return a.X=!0,Promise.resolve();_.pp(Vd);d=_.Kp(a,d);return(c?d:d["catch"](function(){})).then(function(){_.pp(Ud);_.rp("DRM queryMediaKeys_()",Vd,Ud)})};
210
+ Ep=function(a){var b=[];a=_.v(a);for(var c=a.next();!c.done;c=a.next()){c=_.v(c.value.drmInfos);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};Fp=function(a,b){for(var c=_.v(b),d=c.next();!d.done;d=c.next())d=d.value,""===d.licenseServerUri||a.f.Va[d.keySystem]||(a.f.Va[d.keySystem]={licenseUrl:""})};
211
+ Lp=function(a){var b;return _.I(function(c){switch(c.a){case 1:if(a.l.Gf())return c["return"]();if(!a.T){c.C(2);break}return _.x(c,a.T,3);case 3:return c["return"]();case 2:return _.F(c,4),a.T=a.l.ke(a.J),_.x(c,a.T,6);case 6:_.G(c,0);break;case 4:b=_.H(c);if(a.j)return c["return"]();a.w(new _.O(_.Q,6,6003,b.message,b));_.z(c)}})};
212
+ Np=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Handle encrypted event for type "+b.initDataType),_.x(c,Lp(a),2);if(!b.initData)return c["return"]();_.Mp(a,b.initDataType,_.Vi(b.initData));_.z(c)})};
213
+ _.Sp=function(a,b){if(!a.J)return li(a.B,b,function(){a.w(new _.O(_.Q,6,6010))}),Promise.resolve();a.D=b;a.l.uf(b);a.B.one(a.D,_.jf,function(){return Op(a)});a.B.on(a.D,_.Vg,function(e){var f=a.G;a.G=!a.A;!f&&a.G&&(a.g.info("Waiting for DRM license key delivery"),a.F.onEvent(e))});var c=a.a.initData.find(function(e){return 0<e.initData.length}),d=Promise.resolve();if(c||a.l.je()!==yb||a.M.length)d=Lp(a);c=Promise.resolve();_.ti()&&38===_.Qi().major||(a.a&&a.a.keySystem!==_.cf&&!a.a.serverCertificate&&
214
+ (c=Pp(a)),c=c.then(function(){return _.Qp(a)}));return Promise.all([d,c]).then(function(){a.j||(_.Rp(a),a.B.on(a.D,he,function(e){return Np(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.a&&a.a.keySystem===_.Jd&&1>a.W&&a.a.serverCertificate&&a.a.serverCertificate.length)return a.g.warn("Detected invalid widevine server certificate!. Retrying"),a.w(new _.O(1,6,6004)),a.a.serverCertificate=null,a.W++,_.Sp(a,b);1<=a.W&&a.g.info("Could not get valid widevine server certificate. Giving up");
215
+ throw e;}})};_.Qp=function(a){var b,c;return _.I(function(d){if(1==d.a){if(!(a.J&&a.a&&a.a.serverCertificate&&a.a.serverCertificate.length))return d.C(0);_.F(d,3);return _.x(d,a.J.setServerCertificate(a.a.serverCertificate),5)}if(3!=d.a)return b=d.f,void 0===b||b||a.g.debug("Server certificates are not supported by the key system. The server certificate has been ignored."),_.G(d,0);c=_.H(d);throw new _.O(_.Q,6,6004,{browserError:c.message});})};
216
+ Pp=function(a){var b=a.keySystem(),c=a.f.Va[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.F.getConfiguration();return Tp(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,k=f&&f.certificateResponse;f=_.Vk([d],a.f.attemptParameters);f.type=3;f.licenseRequestType=nd;g&&f.requestModifiers.push(function(l){return g(e,l)});k&&f.responseModifiers.push(function(l){return k(e,l)});a.g.debug("Fetching certificate");return a.F.Lb.fetch(f).U}).then(function(f){a.a.serverCertificate=
217
+ _.Vi(f.data)})["catch"](function(f){var g=f.data.headers;g=Object.assign({message:Na,url:f.data.url,status:f.data.status,response:f.data.response},g?{headers:g}:{},oo(g));throw new _.O(_.Q,6,6100,g,f);})};Tp=function(a,b){var c,d;return _.I(function(e){c=a.F.Jd();return c?(d=b&&b.drm&&b.drm.customData)?_.x(e,c(d),0):e["return"]():e["return"]()})};Up=function(a,b){if(!a)return!1;for(var c=0;c<b.Af.length;c++)if(_.Ml(a,b.Af[c]))return!0;return!1};
218
+ _.Rp=function(a){for(var b=a.a?a.a.initData||[]:[],c=_.v(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=!_.si(2);if(a.f.enforceSingleSession&&!a.keySystem().startsWith(_.Fd)){var f=a.h.values();f=_.v(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.Ml(d.initData,g.initData)?(a.g.info("Skipping Session creation. Existing init data in single session mode!"),e=!1):g.periodId===d.periodId&&(a.g.info("Skipping Session creation. Merging init data for period in single session mode for Key ID "+(d.keyId+
219
+ ".")),Up(d.initData,g)||(g.Af.push(d.initData),d.keyId&&!g.Eb.includes(d.keyId)&&g.Eb.push(d.keyId),a.o.get(d.keyId)||a.o.set(d.keyId,fg)),e=!1)}!e||a.H&&a.L===zp||(_.Vp(a,d.keyId,d.initData)&&(e=!1),e&&(a.g.info("Request new media key session on create"),Wp(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.v(a.M);for(d=c.next();!d.done;d=c.next())_.Xp(a,d.value);b.length||a.M.length||(a.A||a.g.info(Ha),a.A=!0,a.G=!1,a.I.resolve());return a.I};
220
+ _.Mp=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.H||a.L!==zp)){var e=a.keySystem();if(!e.startsWith(_.Fd)&&b===_.ld){var f=new sp(c);if(1<f.a.length&&(e={"org.w3.clearkey":"1077efecc0b24d02ace33c1e52e2fb4b","com.widevine.alpha":"edef8ba979d64acea3c827dcd51d21ed","com.microsoft.playready":"9a04f07998404286ab92e65be0885f95","com.adobe.primetime":"f239e769efa348509c16a903c6932efb"}[e]))for(var g=0;g<f.f.length;g++)if(e===f.f[g]){c=c.subarray(f.a[g].start,f.a[g].end+1);break}}(a.D.webkitCurrentPlaybackTargetIsWireless||
221
+ _.si(2)||a.keySystem().startsWith(_.Fd)||!_.Vp(a,d,c,!0))&&Wp(a,d,null,b,c)}};
222
+ _.Vp=function(a,b,c,d){d=void 0===d?!1:d;for(var e=_.v(a.h.keys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.h.get(f);if(_.Ml(c,g.initData))return b?g.Eb.includes(b)?d&&a.g.info("Skipping Session creation. License for init data with Key ID "+(b+" was already requested in Session: '")+(f.sessionId+"'. ")):(g.Eb.push(b),a.o.get(b)||a.o.set(b,fg),d&&a.g.info(Gb+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.g.info(Gb+(f.sessionId+"'")),!0;if(Up(c,g))return d&&a.g.info("Skipping Session creation. License for init data was already requested [extra]"),
223
+ !0}return!1};Yp=function(a){var b=Infinity;a=a.h.keys();a=_.v(a);for(var c=a.next();!c.done;c=a.next())c=c.value,isNaN(c.expiration)||(b=Math.min(b,c.expiration));return b};
224
+ Jp=function(a,b){var c=new Set(Ep(b)),d=a.H?_.Pf:_.bf,e=a.H?[_.gf]:[lg],f=new Map,g=_.v(c);for(c=g.next();!c.done;c=g.next())c=c.value,f.set(c.keySystem,{initDataTypes:[_.ld],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.bf,persistentState:d,sessionTypes:e,label:c.keySystem,drmInfos:[]});d={};e=_.v(b);for(c=e.next();!c.done;d={ig:d.ig,$d:d.$d,og:d.og,ae:d.ae},c=e.next()){c=c.value;g=c.audio;var k=c.video;d.ig=g?_.Zp(g):"";d.$d=null;g&&"ac-3"===g.codecs.toLowerCase()&&_.si()&&(d.$d=
225
+ _.Zp(g,_.ge));d.og=k?_.Zp(k):"";d.ae=null;k&&"ac-3"===k.codecs.toLowerCase()&&_.si()&&(d.ae=_.Zp(k,_.ge));var l={},m=_.v(c.drmInfos);for(c=m.next();!c.done;l={ub:l.ub},c=m.next())c=c.value,l.ub=f.get(c.keySystem),l.ub.drmInfos.push(c),c.initData&&c.initData.length&&(l.ub.initDataTypes=_.jh(new Set(c.initData.map(function(n){return n.initDataType}))).concat()),c.distinctiveIdentifierRequired&&(l.ub.distinctiveIdentifier=_.Pf),c.persistentStateRequired&&(l.ub.persistentState=_.Pf),g&&_.Ej(c.audioRobustness).forEach(function(n,
226
+ p){return function(q){var t={robustness:q||"",contentType:n.ig};p.ub.audioCapabilities.find(function(u){return u.robustness===t.robustness&&u.contentType===t.contentType})||p.ub.audioCapabilities.push(t);n.$d&&p.ub.audioCapabilities.push({robustness:q||"",contentType:n.$d})}}(d,l)),k&&_.Ej(c.videoRobustness).forEach(function(n,p){return function(q){var t={robustness:q||"",contentType:n.og};p.ub.videoCapabilities.find(function(u){return u.robustness===t.robustness&&u.contentType===t.contentType})||
227
+ p.ub.videoCapabilities.push(t);n.ae&&p.ub.videoCapabilities.push({robustness:q||"",contentType:n.ae})}}(d,l))}return f};_.Zp=function(a,b){var c=_.Hm(a.mimeType,b||a.codecs);if(_.Gm(c,a.type)){var d=a.type,e=_.Gm(c,d);e&&(e=e(),c=e.convertCodecs(d,c),e.destroy())}return c};
228
+ _.Kp=function(a,b){function c(n,p,q){p.drmInfos.some(function(t){return!!t.licenseServerUri})===n&&(f=f["catch"](function(){if(a.j)return null;if(q===_.Hd){if((_.qi()||g.os===Ki&&_.ri("Chrome")&&!_.qi())&&!a.f.Va[q].useLegacySystem)return p.label=Id,a.l.hc(Id,[p])["catch"](function(){a.g.warn("Unable to create com.microsoft.playready.recommendation. Falling back to com.microsoft.playready.");p.label=_.Hd;$p(p);return a.l.hc(q,[p])});$p(p)}if(q===_.Jd&&a.f.widevineVersion!==_.Jd){var t=a.f.widevineVersion;
229
+ if(!t.startsWith(_.Jd))return a.g.error('Invalid "widevineVersion" value "'+t+'".'),Promise.reject();var u=Object.assign({},p,{label:t,distinctiveIdentifier:_.bf,persistentState:_.bf});return a.l.hc(t,[u])["catch"](function(){return a.l.hc(q,[p])})}return a.l.hc(q,[p])["catch"](function(y){a:{if(q===_.Jd&&aq(p)){var A=_.Si();if(aq(p)&&A.os===Ii&&A.browser===pd){a.g.warn("requestMediaKeySystemAccess() failed",y);a.g.warn("Will try to recover by removing the robustness attribute of videoCapabilities and audioCapabilities.");
230
+ $p(p);y=a.l.hc(q,[p]);break a}}throw y;}return y})}))}if(1===b.size&&b.has(""))return Promise.reject(new _.O(_.Q,6,6E3));null===a.l&&(a.l=ap(a.f.emeApi,a.xc));for(var d=_.v(b.values()),e=d.next();!e.done;e=d.next())e=e.value,0===e.audioCapabilities.length&&delete e.audioCapabilities,0===e.videoCapabilities.length&&delete e.videoCapabilities;var f=d=new _.ol,g=_.Si(),k=a.f.preferredDrmSystem;if(!k)if(e=_.Si(),e.os===Ki&&10<=e.osVersion.major&&"edge"===e.browser)k=_.Hd;else if("safari"===e.browser)k=
231
+ _.Fd;else if(e.browser===pd||"firefox"===e.browser)k=_.Jd;k&&(e=b.get(k))&&(c(!0,e,k),c(!1,e,k));e={};for(var l=_.v([!0,!1]),m=l.next();!m.done;e={ng:e.ng},m=l.next())e.ng=m.value,b.forEach(function(n){return function(p,q){q!==k&&c(n.ng,p,q)}}(e));f=f["catch"](function(){throw new _.O(_.Q,6,6001,"Failed to get MediaKeySystemAccess.");});f=f.then(function(n){if(a.j)return null;a.K.clear();var p=n.getConfiguration();a.g.info("Got MediaKeySystemAccess with configuration",p);var q=p.videoCapabilities||
232
+ [],t=_.v(p.audioCapabilities||[]);for(p=t.next();!p.done;p=t.next())a.K.add(p.value.contentType.toLowerCase());q=_.v(q);for(p=q.next();!p.done;p=q.next())a.K.add(p.value.contentType.toLowerCase());q=n.keySystem;p=b.get(_.bq(n.keySystem));t=[];var u=[],y=[],A=[];cq(p.drmInfos,t,u,y,A);1<u.length&&_.Kh("Multiple unique server certificates found! Only the first will be used.");1<t.length&&_.Kh("Multiple unique license server URIs found! Only the first will be used.");a.a={keySystem:q,licenseServerUri:t[0],
233
+ distinctiveIdentifierRequired:p.distinctiveIdentifier===_.Pf,persistentStateRequired:p.persistentState===_.Pf,audioRobustness:p.audioCapabilities?p.audioCapabilities[0].robustness:"",videoRobustness:p.videoCapabilities?p.videoCapabilities[0].robustness:"",serverCertificate:u[0],initData:y,keyIds:A,periodId:null};if(!a.a.licenseServerUri)throw new _.O(_.Q,6,6012,a.a.keySystem);return n.createMediaKeys()}).then(function(n){a.j||(a.g.info("Created MediaKeys for key system",a.a.keySystem),a.J=n,a.X=!0)})["catch"](function(n){if(!a.j){a.a=
234
234
  null;a.K.clear();if(n instanceof _.O)throw n;throw new _.O(_.Q,6,6002,{browserError:n.message});}});d.reject();return f};
235
- Ip=function(a){a=_.N.Eh(a.f.Ua[_.bf]||{});if(0===a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.Hl(f),k=_.Hl(e);g={kty:"oct",kid:_.Fl(g,!1),k:_.Fl(k,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.S.sb(d),initDataType:"keyids"}];return{keySystem:_.bf,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
235
+ Dp=function(a){a=_.N.Fh(a.f.Va[_.cf]||{});if(0===a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.Kl(f),k=_.Kl(e);g={kty:"oct",kid:_.Il(g,!1),k:_.Il(k,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.S.sb(d),initDataType:"keyids"}];return{keySystem:_.cf,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
236
236
  initData:d,keyIds:[],periodId:null}};
237
- _.bq=function(a,b){try{a.g.debug("Attempting to load an offline session",b);var c=a.J.createSession(_.ff)}catch(f){var d=new _.O(_.Q,6,6005,{browserError:f.message});a.w(d);return Promise.reject(d)}a.B.on(c,_.Ke,a.pj.bind(a));a.B.on(c,we,a.lj.bind(a));var e={initData:null,loaded:!1,Qg:Infinity,Mc:null,Ab:new _.ml,periodId:null,Af:[],keyId:null,Eb:[],initDataType:null,Vc:null,sessionContext:{ldlDelay:0,customData:{}}};e.Ab["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",
238
- b,f);if(!f)return a.h["delete"](c),a.w(new _.O(_.Q,6,6013)),null;e.loaded=!0;iq(a)&&(a.A||a.g.info(Ha),a.A=!0,a.G=!1,a.I.resolve());return c},function(f){a.j||(a.h["delete"](c),a.w(new _.O(_.Q,6,6005,{browserError:f.message})))})};jq=function(a,b,c,d){if(!b&&c!==_.$f)return!1;d=b||ko(d);a=_.v(a.h.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||b&&e.Eb.includes(b)||c===_.$f&&(e.keyId||ko(e.initData))===d)return!0;return!1};
239
- aq=function(a,b,c,d,e,f,g){f=void 0===f?null:f;g=void 0===g?!1:g;var k,l,m,n,p,q,t,u,y,A,D,B,E,C,K,P,T,W,oa,Aa,wa;_.I(function(sa){switch(sa.a){case 1:if(!e.length)return a.g.warn("Empty init data"),sa["return"]();k=b;if(!k)try{k=kq(a,d,e,f)}catch(Ga){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:Ga,initDataType:d,
240
- initData:e}),a.f.ignoreUnrecognizedInitData)return sa["return"]()}if(g){sa.C(2);break}if(!jq(a,k,d,e)){sa.C(2);break}l=!0;if("skd"!==d||a.f.enableSessionCacheForSkd){sa.C(4);break}m=_.v(a.h.keys());n=m.next();case 5:if(n.done){sa.C(4);break}p=n.value;q=a.h.get(p);if(!k||q.keyId!==k){sa.C(6);break}a.g.warn("Close and re-open session for "+k);_.F(sa,9);return _.x(sa,p.close(),11);case 11:_.G(sa,10);break;case 9:t=_.H(sa),a.g.warn("Unable to close session",t);case 10:l=!1;case 6:n=m.next();sa.C(5);break;
241
- case 4:if(l)return a.g.warn("Skip creating a new session for "+k),sa["return"]();case 2:try{y=a.H?_.ff:lg,u=a.J.createSession(y),a.F.onEvent(new _.R(be,{keySystem:a.keySystem()})),a.g.info("Created new "+y+" session for Key ID: '"+k+"'. Init data type: "+(d+"."))}catch(Ga){return a.w(new _.O(_.Q,6,6005,{browserError:Ga.message})),sa["return"]()}a.B.on(u,_.Ke,a.pj.bind(a));a.B.on(u,we,a.lj.bind(a));A={Vc:f,Af:[],initData:e,initDataType:d,keyId:k,Eb:k?[k]:[],loaded:!1,Qg:Infinity,periodId:c,Mc:null,
242
- Ab:new _.ml,sessionContext:{ldlDelay:0,customData:{}}};A.Ab["catch"](function(){});f&&(D=a.h.get(f),A.sessionContext=D.sessionContext);a.h.set(u,A);k&&!a.o.get(k)&&a.o.set(k,eg);if(e)for(B=0;B<a.a.initData.length;B++)E=a.a.initData[B],E.keyId&&!A.Eb.includes(E.keyId)&&_.Jl(E.initData,e)&&(A.keyId||(A.keyId=E.keyId),A.Eb.push(E.keyId),a.o.get(E.keyId)||a.o.set(E.keyId,eg));C=_.N;K=C.ac;P=a.F.getConfiguration();T=a.keySystem();W=a.f.Ua[T];Aa=(oa=W.modifiers)&&oa.transformInitData;K(Aa)||(Aa=lq);try{e=
237
+ _.Xp=function(a,b){try{a.g.debug("Attempting to load an offline session",b);var c=a.J.createSession(_.gf)}catch(f){var d=new _.O(_.Q,6,6005,{browserError:f.message});a.w(d);return Promise.reject(d)}a.B.on(c,_.Ke,a.qj.bind(a));a.B.on(c,we,a.mj.bind(a));var e={initData:null,loaded:!1,Rg:Infinity,Mc:null,Ab:new _.ol,periodId:null,Af:[],keyId:null,Eb:[],initDataType:null,Vc:null,sessionContext:{ldlDelay:0,customData:{}}};e.Ab["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",
238
+ b,f);if(!f)return a.h["delete"](c),a.w(new _.O(_.Q,6,6013)),null;e.loaded=!0;dq(a)&&(a.A||a.g.info(Ha),a.A=!0,a.G=!1,a.I.resolve());return c},function(f){a.j||(a.h["delete"](c),a.w(new _.O(_.Q,6,6005,{browserError:f.message})))})};eq=function(a,b,c,d){if(!b&&c!==_.ag)return!1;d=b||eo(d);a=_.v(a.h.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||b&&e.Eb.includes(b)||c===_.ag&&(e.keyId||eo(e.initData))===d)return!0;return!1};
239
+ Wp=function(a,b,c,d,e,f,g){f=void 0===f?null:f;g=void 0===g?!1:g;var k,l,m,n,p,q,t,u,y,A,D,B,E,C,K,P,T,W,oa,Aa,wa;_.I(function(sa){switch(sa.a){case 1:if(!e.length)return a.g.warn("Empty init data"),sa["return"]();k=b;if(!k)try{k=fq(a,d,e,f)}catch(Ga){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:Ga,initDataType:d,
240
+ initData:e}),a.f.ignoreUnrecognizedInitData)return sa["return"]()}if(g){sa.C(2);break}if(!eq(a,k,d,e)){sa.C(2);break}l=!0;if("skd"!==d||a.f.enableSessionCacheForSkd){sa.C(4);break}m=_.v(a.h.keys());n=m.next();case 5:if(n.done){sa.C(4);break}p=n.value;q=a.h.get(p);if(!k||q.keyId!==k){sa.C(6);break}a.g.warn("Close and re-open session for "+k);_.F(sa,9);return _.x(sa,p.close(),11);case 11:_.G(sa,10);break;case 9:t=_.H(sa),a.g.warn("Unable to close session",t);case 10:l=!1;case 6:n=m.next();sa.C(5);break;
241
+ case 4:if(l)return a.g.warn("Skip creating a new session for "+k),sa["return"]();case 2:try{y=a.H?_.gf:lg,u=a.J.createSession(y),a.F.onEvent(new _.R(be,{keySystem:a.keySystem()})),a.g.info("Created new "+y+" session for Key ID: '"+k+"'. Init data type: "+(d+"."))}catch(Ga){return a.w(new _.O(_.Q,6,6005,{browserError:Ga.message})),sa["return"]()}a.B.on(u,_.Ke,a.qj.bind(a));a.B.on(u,we,a.mj.bind(a));A={Vc:f,Af:[],initData:e,initDataType:d,keyId:k,Eb:k?[k]:[],loaded:!1,Rg:Infinity,periodId:c,Mc:null,
242
+ Ab:new _.ol,sessionContext:{ldlDelay:0,customData:{}}};A.Ab["catch"](function(){});f&&(D=a.h.get(f),A.sessionContext=D.sessionContext);a.h.set(u,A);k&&!a.o.get(k)&&a.o.set(k,fg);if(e)for(B=0;B<a.a.initData.length;B++)E=a.a.initData[B],E.keyId&&!A.Eb.includes(E.keyId)&&_.Ml(E.initData,e)&&(A.keyId||(A.keyId=E.keyId),A.Eb.push(E.keyId),a.o.get(E.keyId)||a.o.set(E.keyId,fg));C=_.N;K=C.ac;P=a.F.getConfiguration();T=a.keySystem();W=a.f.Va[T];Aa=(oa=W.modifiers)&&oa.transformInitData;K(Aa)||(Aa=gq);try{e=
243
243
  Aa({playerConfig:P,initData:e,initDataType:d,drmInfo:a.a,drmSystemConfig:W,sessionContext:A.sessionContext,emeApi:a.l.je()})}catch(Ga){return wa=Ga,Ga instanceof _.O||(wa=new _.O(_.Q,6,6016,Ga)),A.Ab&&A.Ab.reject(Ga),a.w(wa),sa["return"]()}a.g.info("Generate License Request for key ID: '"+k+"'");u.generateRequest(d,e.buffer)["catch"](function(Ga){if(!a.j){var sc=null;Ga.errorCode&&Ga.errorCode.systemCode&&(sc=Ga.errorCode.systemCode,0>sc&&(sc+=Math.pow(2,32)),sc="0x"+sc.toString(16));a.w(new _.O(_.Q,
244
244
  6,6006,{browserError:Ga.message,error:Ga,extended:sc},Ga))}});_.z(sa)}})};
245
- kq=function(a,b,c,d){d=void 0===d?null:d;if("skd"===b){a:{var e=d;e=void 0===e?null:e;var f=a.keySystem(),g=a.f.Ua[f];f=a.F.getConfiguration();g=g&&g.modifiers&&g.modifiers.extractContentId;_.N.ac(g)||(g=mq);try{var k={ldlDelay:0,customData:{}};e&&(k=a.h.get(e).sessionContext);var l=g(f,c,k);a.g.debug("Extracted Content ID '"+l+"' from SKD");var m=l;break a}catch(B){a.g.warn("Unable to extract Content ID from SKD",B)}m=""}return m}if(b===_.$f)return ko(c)||"";if(b===_.ld){m=a.keySystem();try{if(nq(m)){var n=
246
- _.lp(c);if(n)return n.a}else if(oq(m)){e=new _.Qn(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);f=_.Vn(e);var p=_.Vn(e);g=_.fo(p);var q=_.Vn(e);c=q>>>24;l=q&16777215;k=_.Zn(e,16);var t=_.Il(k);if(0<c){var u=_.Vn(e);e.skip(16*u)}var y=_.Vn(e),A=_.Zn(e,y),D=_.sp(A);_.Ph("Parsed PR PSSH Box","size",f,"name",g,Hg,c,"flags",l,"size",y,"systemId",t,"keyId",D.a);if(D)return D.a}}catch(B){throw a.g.warn("Unable to extract Key ID from PSSH data.",{error:B,keySystem:m}),B;}}return""};
247
- mq=function(a,b){var c=_.jo(b);_.Ph("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
248
- lq=function(a){var b=a.playerConfig,c=a.initData,d=a.drmInfo,e=a.drmSystemConfig,f=a.sessionContext,g=a.emeApi;if("skd"===a.initDataType&&g===ka){a=_.N.ac;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=mq);a="";try{a=e(b,c,f)}catch(k){throw new _.O(_.Q,6,6103);}if(!a.length)throw new _.O(_.Q,6,6101,"Content ID is an empty string");c=lo(c,a,d)}return c};
249
- uq=function(a,b){var c,d,e,f,g,k,l,m,n,p,q,t,u,y,A,D,B,E;return _.I(function(C){switch(C.a){case 1:c=b.target;d=a.h.get(c);if(!d)return a.g.error("Session metadata not found for "+c.sessionId+"."),C["return"]();e=a.a.licenseServerUri;if(!pq(a,b)){C.C(2);break}return _.x(C,qq(a,e,b,c,d),3);case 3:return C["return"]();case 2:f=a.Sb;if(!(0<f)){C.C(4);break}a.g.info("Delaying license request by "+f+" s.");return _.x(C,Zh(f),5);case 5:if(a.j)return C["return"]();case 4:g=a.keySystem();k=a.f.Ua[g];"individualization-request"===
250
- b.messageType&&k&&k.individualizationServer&&(e=k.individualizationServer);l=_.Tk([e],a.f.attemptParameters);l.type=3;l.body=b.message;l.method=_.pb;nq(g)&&(l.headers[_.Da]=Nc);l.licenseRequestType=b.messageType===ze&&d.Vc?ye:b.messageType;l.sessionId=c.sessionId;if(l.licenseRequestType===ye)a.F.onEvent(new _.R(ae));oq(a.a.keySystem)&&rq(a,l);Ln(a.P,l);m=String(Math.floor(b.timeStamp));return _.x(C,sq(a,l,d,m,e,c.sessionId,b.messageType,f),6);case 6:n=C.f;if(!n)return C["return"]();p=Mn(a.P,n);return _.x(C,
251
- tq(a,c,n.data,d,m),7);case 7:q=C.f;if(!q)return C["return"]();t=cq(a);u=p?Date.now()+1E3*p.delay:Number.NaN;a.F.onEvent(new _.R(_.de,{keySystem:g,expirationTime:t,expectedRenewalTime:u}));d.Mc&&d.Mc.resolve();d.Vc&&(y=d.Vc,a.g.info("Closing expired session '"+y.sessionId+"'"),Cp(y)["catch"](function(){a.g.warn("Unable to close expired session in time")}),(A=a.h.get(d.Vc))&&A.Ed&&A.Ed.stop(),a.h["delete"](d.Vc),d.Vc=null);D=new _.Yh(function(){a.j||(d.loaded=!0,d.Ab&&d.Ab.resolve(),iq(a)&&(a.A||a.g.info(Ha),
252
- a.A=!0,a.G=!1,a.I.resolve()))});D.ia(5);null!==d.initData&&(0<d.sessionContext.ldlDelay||p&&(_.S.startsWith(g,_.Fd)||_.S.startsWith(g,_.Hd)))&&(B=new _.Yh(function(){!a.j&&a.P&&(a.g.info("Updating CSL Sessions"),oq(g)?aq(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):g.startsWith(_.Fd)&&c.update(_.S.sb("renew")))}),d.Ed=B,E=p?p.delay:d.sessionContext.ldlDelay,B.ia(E));_.z(C)}})};
253
- qq=function(a,b,c,d,e){var f,g,k;return _.I(function(l){if(1==l.a)return f=_.Tk([b],a.f.attemptParameters),f.type=3,f.body=c.message,f.method=_.pb,f.licenseRequestType=nd,f.sessionId=d.sessionId,f.headers[_.Da]=Nc,_.x(l,vq(a,f,e,b,d.sessionId,c.messageType),2);g=l.f;if(!g)return l["return"]();k=String(Math.floor(c.timeStamp));return _.x(l,tq(a,d,g.data,e,k),0)})};pq=function(a,b){var c=a.keySystem();return nq(c)&&b.message&&2===b.message.byteLength};
254
- sq=function(a,b,c,d,e,f,g,k){var l,m,n,p,q,t,u,y,A,D,B,E;return _.I(function(C){switch(C.a){case 1:return a.g.info("License request for SID:'"+(f+"'/KID:'"+c.keyId+"' from msg '")+(g+"'.")),_.x(C,wq(a,b,c.sessionContext),2);case 2:return a.g.debug("Sending DRM license request to",e,b),a.F.onEvent(new _.R($d,{delay:k})),l=Date.now(),_.up(Td+d+ia),m=null,_.F(C,3),_.x(C,a.F.Lb.fetch(b).U,5);case 5:m=C.f;_.G(C,4);break;case 3:n=_.H(C);if(a.j)return C["return"](null);p=n;q=p.data.headers;t=so(q);u=Object.assign({message:"Error while fetching DRM license!",
255
- url:p.data.url,status:p.data.status,response:p.data.response},q?{headers:q}:{},t);y=new _.O(_.Q,6,6007,u,p);xq(a,y,c);return C["return"](null);case 4:_.up(Td+d+".end");_.wp(Td+d,Td+d+ia,Td+d+".end");A=Date.now()-l;if(D=uo(m.headers))a.Sb=D.delay||0;B="";D&&D.requestId&&(B=" RID:"+D.requestId);E=m.data.byteLength;a.g.info("License response for SID:'"+(f+"'/KID:'")+(c.keyId+"' ")+(E+" bytes in ")+(A+"ms"+B));return a.j?C["return"](null):C["return"](m)}})};
256
- vq=function(a,b,c,d,e,f){var g,k,l,m,n,p,q,t,u,y,A,D;return _.I(function(B){switch(B.a){case 1:return a.g.info("WV Server certificate request for SID:'"+(e+" from msg '"+f+"'.")),_.x(B,wq(a,b,c.sessionContext),2);case 2:return a.g.debug("Sending Widevine certificate request to",d,b),g=Date.now(),k=null,_.F(B,3),_.x(B,a.F.Lb.fetch(b).U,5);case 5:k=B.f;_.G(B,4);break;case 3:l=_.H(B);if(a.j)return B["return"](null);m=l;n=m.data.headers;p=so(n);q=Object.assign({message:Na,url:m.data.url,status:m.data.status,
257
- response:m.data.response},n?{headers:n}:{},p);t=new _.O(_.Q,6,6100,q,m);xq(a,t,c);return B["return"](null);case 4:return u=Date.now()-g,y=uo(k.headers),A="",y&&y.requestId&&(A=" RID:"+y.requestId),D=k.data.byteLength,a.g.info("WV Server certificate response for SID:'"+(e+"' ")+(D+" bytes in ")+(u+"ms"+A)),a.j?B["return"](null):B["return"](k)}})};
258
- tq=function(a,b,c,d,e){var f,g;return _.I(function(k){switch(k.a){case 1:return _.up(Yd+e+ia),_.F(k,2),_.x(k,b.update(c),4);case 4:_.G(k,3);break;case 2:f=_.H(k);if(a.j)return k["return"](!1);if(f===Db)return a.g.info("Ignore update for closed sessions"),k["return"](!1);g=new _.O(_.Q,6,6008,{browserError:f.message});xq(a,g,d);return k["return"](!1);case 3:return _.up(Yd+e+".end"),_.wp(Yd+e,Yd+e+ia,Yd+e+".end"),a.j?k["return"](!1):k["return"](!0)}})};
259
- xq=function(a,b,c){a.j||(a.w(b),c.Mc&&c.Mc.reject(b),c.Ab&&c.Ab.reject(b))};
260
- rq=function(a,b){var c=_.S.Xc(b.body,!0,!0);if(c.includes("PlayReadyKeyMessage")){a.g.debug("Unwrapping PlayReady request.");c=(new DOMParser).parseFromString(c,"application/xml");for(var d=c.getElementsByTagName("HttpHeader"),e=0;e<d.length;++e)b.headers[d[e].querySelector("name").textContent]=d[e].querySelector(_.Gg).textContent;b.body=_.Gl(c.querySelector("Challenge").textContent).buffer}else a.g.debug("PlayReady request is already unwrapped."),b.headers[_.Da]="text/xml; charset\x3dutf-8"};
261
- wq=function(a,b,c){var d,e,f,g,k,l;return _.I(function(m){if(1==m.a)return d=a.F.getConfiguration(),_.x(m,Yp(a,d),2);e=a.keySystem();k=(g=(f=a.f.Ua[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;k?b.requestModifiers.push(function(n){return k(d,n,c)}):e.startsWith(_.Fd)&&b.requestModifiers.push(function(n){return _.mo(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Fd)&&b.responseModifiers.push(function(n){return _.no(n)});_.z(m)})};
262
- zp=function(a){var b=a.o,c=a.na;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"===d})&&a.w(new _.O(_.Q,6,6014));a.F.Ug(_.N.Fh(c));a.A||a.g.info(Ha);a.A=!0;a.G=!1};Tp=function(a){var b;return _.I(function(c){if(1==c.a)return _.up(Xd),b=a.ha.map(function(d){return uq(a,d)}),a.vb=!0,a.ha=[],_.x(c,Promise.all(b),2);_.up(Wd);_.wp("drm.onPlay",Xd,Wd);_.z(c)})};oq=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};
263
- nq=function(a){return!!a.match(/^com\.widevine\.alpha/)};_.gq=function(a){return oq(a)?_.Hd:a};Ap=function(a){a.h.forEach(function(b,c){var d=b.Qg,e=c.expiration;isNaN(e)&&(e=Infinity);e!==d&&(a.F.Tg(c.sessionId,e),b.Qg=e)})};iq=function(a){a=_.v(a.h.values());for(var b=a.next();!b.done;b=a.next())if(!b.value.loaded)return!1;return!0};
264
- Hp=function(a,b){var c=[];b.forEach(function(f,g){c.push({keySystem:g,licenseServerUri:f.licenseUrl,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:[]})});for(var d=_.v(a),e=d.next();!e.done;e=d.next())e.value.drmInfos=c};eq=function(a){for(var b=_.v(a.audioCapabilities||[]),c=b.next();!c.done;c=b.next())delete c.value.robustness;a=_.v(a.videoCapabilities||[]);for(b=a.next();!b.done;b=a.next())delete b.value.robustness};
265
- fq=function(a){return(a.audioCapabilities||[]).some(yq)||(a.videoCapabilities||[]).some(yq)};yq=function(a){return null!=a.robustness&&""!==a.robustness};
266
- hq=function(a,b,c,d,e){var f={};a=_.v(a);for(var g=a.next();!g.done;f={Ma:f.Ma},g=a.next()){f.Ma=g.value;b.includes(f.Ma.licenseServerUri)||b.push(f.Ma.licenseServerUri);f.Ma.serverCertificate&&(c.some(function(m){return function(n){return _.Jl(n,m.Ma.serverCertificate)}}(f))||c.push(f.Ma.serverCertificate));if(f.Ma.initData){var k=_.v(f.Ma.initData);for(g=k.next();!g.done;g=k.next())g.value.periodId=f.Ma.periodId;k={};var l=_.v(f.Ma.initData);for(g=l.next();!g.done;k={df:k.df},g=l.next())k.df=g.value,
267
- d.some(function(m){return function(n){var p=m.df;return n.keyId&&n.keyId===p.keyId&&n.periodId===p.periodId?!0:!1}}(k))||d.push(k.df)}if(f.Ma.keyIds)for(g=0;g<f.Ma.keyIds.length;++g)e.includes(f.Ma.keyIds[g])||e.push(f.Ma.keyIds[g])}};
268
- Np=function(a,b,c){var d=_.gq(b.keySystem);c=c[d];d===_.bf&&b.licenseServerUri?a.g.debug("Using Clear Key data URI for",d):c&&c.licenseUrl?(b.licenseServerUri=c.licenseUrl,a.g.debug("Using license server URI from user-configured clpp.drm.DrmEnvironment (licenseUrl) for",d)):a.g.debug("Using license server URI from the manifest for ",d)};
269
- Lp=function(a,b){var c=b[_.gq(a.keySystem)];a.keyIds||(a.keyIds=[]);c&&(a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.videoRobustness||(a.videoRobustness=c.videoRobustness||""),a.audioRobustness||(a.audioRobustness=c.audioRobustness||""),a.serverCertificate||(a.serverCertificate=c.serverCertificate||null))};
270
- Cp=function(a){var b,c;return _.I(function(d){if(1==d.a)return b=new Promise(function(e){(new _.Yh(e)).ia(1)}),_.x(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.Kh("Timeout waiting for session close");_.z(d)})};_.Bq=function(a,b){a&&b&&(_.zq.set(a,b),_.Aq.info("Registered TextDisplayerFactory: '"+a+"'"))};
271
- _.Cq=function(a,b){var c=b.find(function(d){return(d=_.zq.get(d))?d.a(a):!1});if(null==c)return _.Aq.warn("Subtitles may not work as expected. No compatible text displayer found for this platform."),null;_.Aq.info("Chosen the text displayer: "+c);return _.zq.get(c)};_.Dq=function(a){switch(a){case 0:return 0;case 2:case 4:return 1;case 6:case 5:return 2;case 7:case 8:return 3;case 9:case 10:return 4;case 11:case 1:return 5;case 3:return 6;default:return 0}};Eq=function(){this.a=null;this.f=[]};
272
- _.Fq=function(a,b){if(null==a.a)a.a={timestamp:Date.now()/1E3,state:b,duration:0};else{var c=Date.now()/1E3;a.a.duration=c-a.a.timestamp;a.a.state!==b&&(a.f.push(a.a),a.a={timestamp:c,state:b,duration:0})}};Gq=function(a,b){var c=0;a.a&&a.a.state===b&&(c+=a.a.duration);for(var d=_.v(a.f),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state===b?e.duration:0;return c};
273
- Hq=function(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=_.v(a.f),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.a&&c.push(b(a.a));return c};Iq=function(){this.h=this.f=this.j=null;this.a=[]};Jq=function(a){return a.a.map(function(b){return _.N.wb(b)})};_.Kq=function(){this.h=this.w=this.B=this.D=this.l=this.o=this.j=this.A=NaN;this.a=new Eq;this.f=new Iq};
274
- _.Lq=function(){return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,estimatedBandwidth:NaN,loadLatency:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,switchHistory:[],stateHistory:[]}};Mq=function(a){if(!a)return null;a=(new _.bk(a)).a.pathname.toUpperCase();return a.endsWith(".MPD")?_.Jc:a.endsWith(".M3U8")?_.Um:a.endsWith(".MP4")?_.Og:a.endsWith(".MP3")?"audio/mp3":a.endsWith("MANIFEST")||a.endsWith(".ISM")?_.Pc:null};
275
- _.Oq=function(a){var b;un(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.gg||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=Nq(b[c]);d&&a.push(d)}return a};
276
- Nq=function(a){var b=null;_.N.ja(a)&&(a={url:a});typeof a===_.Te&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.N.R(a.drmProtected)||typeof a.drmProtected!==_.bd||(b.drmProtected=a.drmProtected),_.N.R(a.isLive)||typeof a.isLive!==_.bd||(b.isLive=a.isLive),_.N.R(a.name)||typeof a.name!==_.gg||(b.name=a.name),_.N.R(a.videoMimeType)||typeof a.videoMimeType!==_.gg||(b.videoMimeType=a.videoMimeType),_.N.R(a.audioMimeType)||typeof a.audioMimeType!==_.gg||(b.audioMimeType=a.audioMimeType));
277
- b&&!b.type&&(b.type=Mq(a.url),b.type?Pq.debug("Detect media type "+b.type+" for "+a.url):Pq.warn("Unable to detect media type for "+a.url));return b};Qq=function(){_.vn.call(this,zd);this.w=this.H=!1;this.l=this.A=this.o=this.a=this.j=null;this.h=new _.ki;this.G=this.B=this.f=this.I=null};
278
- Sq=function(a,b){if(a.w)throw new _.O(_.Q,7,7E3);a.a||(a.h.on(b,_.le,function(){var c=Rq(a);if(c)a.onError(c)}),a.h.on(b,_.Pf,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 _.R(_.ad,{detail:{width:c,height:d}}))}),a.a=b)};Tq=function(a){var b=_.vi()?ka:void 0;return new _.Bp(a,b)};
279
- Vq=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(_.Q,7,7E3)));b=a.ea[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=_.Uq;d=_.dl(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.o=Tq({Lb:e,onError:function(k){return a.onError(k)},Ug:function(){},Tg:function(k,l){a.trigger(new _.R(_.Zd,
245
+ fq=function(a,b,c,d){d=void 0===d?null:d;if("skd"===b){a:{var e=d;e=void 0===e?null:e;var f=a.keySystem(),g=a.f.Va[f];f=a.F.getConfiguration();g=g&&g.modifiers&&g.modifiers.extractContentId;_.N.ac(g)||(g=hq);try{var k={ldlDelay:0,customData:{}};e&&(k=a.h.get(e).sessionContext);var l=g(f,c,k);a.g.debug("Extracted Content ID '"+l+"' from SKD");var m=l;break a}catch(B){a.g.warn("Unable to extract Content ID from SKD",B)}m=""}return m}if(b===_.ag)return eo(c)||"";if(b===_.ld){m=a.keySystem();try{if(iq(m)){var n=
246
+ _.gp(c);if(n)return n.a}else if(jq(m)){e=new _.Kn(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);f=_.Pn(e);var p=_.Pn(e);g=_.Zn(p);var q=_.Pn(e);c=q>>>24;l=q&16777215;k=_.Tn(e,16);var t=_.Ll(k);if(0<c){var u=_.Pn(e);e.skip(16*u)}var y=_.Pn(e),A=_.Tn(e,y),D=_.np(A);_.Ph("Parsed PR PSSH Box","size",f,"name",g,Hg,c,"flags",l,"size",y,"systemId",t,"keyId",D.a);if(D)return D.a}}catch(B){throw a.g.warn("Unable to extract Key ID from PSSH data.",{error:B,keySystem:m}),B;}}return""};
247
+ hq=function(a,b){var c=_.co(b);_.Ph("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
248
+ gq=function(a){var b=a.playerConfig,c=a.initData,d=a.drmInfo,e=a.drmSystemConfig,f=a.sessionContext,g=a.emeApi;if("skd"===a.initDataType&&g===ka){a=_.N.ac;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=hq);a="";try{a=e(b,c,f)}catch(k){throw new _.O(_.Q,6,6103);}if(!a.length)throw new _.O(_.Q,6,6101,"Content ID is an empty string");c=fo(c,a,d)}return c};
249
+ pq=function(a,b){var c,d,e,f,g,k,l,m,n,p,q,t,u,y,A,D,B,E;return _.I(function(C){switch(C.a){case 1:c=b.target;d=a.h.get(c);if(!d)return a.g.error("Session metadata not found for "+c.sessionId+"."),C["return"]();e=a.a.licenseServerUri;if(!kq(a,b)){C.C(2);break}return _.x(C,lq(a,e,b,c,d),3);case 3:return C["return"]();case 2:f=a.Sb;if(!(0<f)){C.C(4);break}a.g.info("Delaying license request by "+f+" s.");return _.x(C,Zh(f),5);case 5:if(a.j)return C["return"]();case 4:g=a.keySystem();k=a.f.Va[g];"individualization-request"===
250
+ b.messageType&&k&&k.individualizationServer&&(e=k.individualizationServer);l=_.Vk([e],a.f.attemptParameters);l.type=3;l.body=b.message;l.method=_.pb;iq(g)&&(l.headers[_.Da]=Nc);l.licenseRequestType=b.messageType===ze&&d.Vc?ye:b.messageType;l.sessionId=c.sessionId;if(l.licenseRequestType===ye)a.F.onEvent(new _.R(ae));jq(a.a.keySystem)&&mq(a,l);Fn(a.P,l);m=String(Math.floor(b.timeStamp));return _.x(C,nq(a,l,d,m,e,c.sessionId,b.messageType,f),6);case 6:n=C.f;if(!n)return C["return"]();p=Gn(a.P,n);return _.x(C,
251
+ oq(a,c,n.data,d,m),7);case 7:q=C.f;if(!q)return C["return"]();t=Yp(a);u=p?Date.now()+1E3*p.delay:Number.NaN;a.F.onEvent(new _.R(_.de,{keySystem:g,expirationTime:t,expectedRenewalTime:u}));d.Mc&&d.Mc.resolve();d.Vc&&(y=d.Vc,a.g.info("Closing expired session '"+y.sessionId+"'"),xp(y)["catch"](function(){a.g.warn("Unable to close expired session in time")}),(A=a.h.get(d.Vc))&&A.Ed&&A.Ed.stop(),a.h["delete"](d.Vc),d.Vc=null);D=new _.Yh(function(){a.j||(d.loaded=!0,d.Ab&&d.Ab.resolve(),dq(a)&&(a.A||a.g.info(Ha),
252
+ a.A=!0,a.G=!1,a.I.resolve()))});D.ia(5);null!==d.initData&&(0<d.sessionContext.ldlDelay||p&&(_.S.startsWith(g,_.Fd)||_.S.startsWith(g,_.Hd)))&&(B=new _.Yh(function(){!a.j&&a.P&&(a.g.info("Updating CSL Sessions"),jq(g)?Wp(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):g.startsWith(_.Fd)&&c.update(_.S.sb("renew")))}),d.Ed=B,E=p?p.delay:d.sessionContext.ldlDelay,B.ia(E));_.z(C)}})};
253
+ lq=function(a,b,c,d,e){var f,g,k;return _.I(function(l){if(1==l.a)return f=_.Vk([b],a.f.attemptParameters),f.type=3,f.body=c.message,f.method=_.pb,f.licenseRequestType=nd,f.sessionId=d.sessionId,f.headers[_.Da]=Nc,_.x(l,qq(a,f,e,b,d.sessionId,c.messageType),2);g=l.f;if(!g)return l["return"]();k=String(Math.floor(c.timeStamp));return _.x(l,oq(a,d,g.data,e,k),0)})};kq=function(a,b){var c=a.keySystem();return iq(c)&&b.message&&2===b.message.byteLength};
254
+ nq=function(a,b,c,d,e,f,g,k){var l,m,n,p,q,t,u,y,A,D,B,E;return _.I(function(C){switch(C.a){case 1:return a.g.info("License request for SID:'"+(f+"'/KID:'"+c.keyId+"' from msg '")+(g+"'.")),_.x(C,rq(a,b,c.sessionContext),2);case 2:return a.g.debug("Sending DRM license request to",e,b),a.F.onEvent(new _.R($d,{delay:k})),l=Date.now(),_.pp(Td+d+ia),m=null,_.F(C,3),_.x(C,a.F.Lb.fetch(b).U,5);case 5:m=C.f;_.G(C,4);break;case 3:n=_.H(C);if(a.j)return C["return"](null);p=n;q=p.data.headers;t=oo(q);u=Object.assign({message:"Error while fetching DRM license!",
255
+ url:p.data.url,status:p.data.status,response:p.data.response},q?{headers:q}:{},t);y=new _.O(_.Q,6,6007,u,p);sq(a,y,c);return C["return"](null);case 4:_.pp(Td+d+".end");_.rp(Td+d,Td+d+ia,Td+d+".end");A=Date.now()-l;if(D=po(m.headers))a.Sb=D.delay||0;B="";D&&D.requestId&&(B=" RID:"+D.requestId);E=m.data.byteLength;a.g.info("License response for SID:'"+(f+"'/KID:'")+(c.keyId+"' ")+(E+" bytes in ")+(A+"ms"+B));return a.j?C["return"](null):C["return"](m)}})};
256
+ qq=function(a,b,c,d,e,f){var g,k,l,m,n,p,q,t,u,y,A,D;return _.I(function(B){switch(B.a){case 1:return a.g.info("WV Server certificate request for SID:'"+(e+" from msg '"+f+"'.")),_.x(B,rq(a,b,c.sessionContext),2);case 2:return a.g.debug("Sending Widevine certificate request to",d,b),g=Date.now(),k=null,_.F(B,3),_.x(B,a.F.Lb.fetch(b).U,5);case 5:k=B.f;_.G(B,4);break;case 3:l=_.H(B);if(a.j)return B["return"](null);m=l;n=m.data.headers;p=oo(n);q=Object.assign({message:Na,url:m.data.url,status:m.data.status,
257
+ response:m.data.response},n?{headers:n}:{},p);t=new _.O(_.Q,6,6100,q,m);sq(a,t,c);return B["return"](null);case 4:return u=Date.now()-g,y=po(k.headers),A="",y&&y.requestId&&(A=" RID:"+y.requestId),D=k.data.byteLength,a.g.info("WV Server certificate response for SID:'"+(e+"' ")+(D+" bytes in ")+(u+"ms"+A)),a.j?B["return"](null):B["return"](k)}})};
258
+ oq=function(a,b,c,d,e){var f,g;return _.I(function(k){switch(k.a){case 1:return _.pp(Yd+e+ia),_.F(k,2),_.x(k,b.update(c),4);case 4:_.G(k,3);break;case 2:f=_.H(k);if(a.j)return k["return"](!1);if(f===Db)return a.g.info("Ignore update for closed sessions"),k["return"](!1);g=new _.O(_.Q,6,6008,{browserError:f.message});sq(a,g,d);return k["return"](!1);case 3:return _.pp(Yd+e+".end"),_.rp(Yd+e,Yd+e+ia,Yd+e+".end"),a.j?k["return"](!1):k["return"](!0)}})};
259
+ sq=function(a,b,c){a.j||(a.w(b),c.Mc&&c.Mc.reject(b),c.Ab&&c.Ab.reject(b))};
260
+ mq=function(a,b){var c=_.S.Xc(b.body,!0,!0);if(c.includes("PlayReadyKeyMessage")){a.g.debug("Unwrapping PlayReady request.");c=(new DOMParser).parseFromString(c,"application/xml");for(var d=c.getElementsByTagName("HttpHeader"),e=0;e<d.length;++e)b.headers[d[e].querySelector("name").textContent]=d[e].querySelector(_.Gg).textContent;b.body=_.Jl(c.querySelector("Challenge").textContent).buffer}else a.g.debug("PlayReady request is already unwrapped."),b.headers[_.Da]="text/xml; charset\x3dutf-8"};
261
+ rq=function(a,b,c){var d,e,f,g,k,l;return _.I(function(m){if(1==m.a)return d=a.F.getConfiguration(),_.x(m,Tp(a,d),2);e=a.keySystem();k=(g=(f=a.f.Va[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;k?b.requestModifiers.push(function(n){return k(d,n,c)}):e.startsWith(_.Fd)&&b.requestModifiers.push(function(n){return _.go(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Fd)&&b.responseModifiers.push(function(n){return _.ho(n)});_.z(m)})};
262
+ up=function(a){var b=a.o,c=a.na;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"===d})&&a.w(new _.O(_.Q,6,6014));a.F.Vg(_.N.Gh(c));a.A||a.g.info(Ha);a.A=!0;a.G=!1};Op=function(a){var b;return _.I(function(c){if(1==c.a)return _.pp(Xd),b=a.ha.map(function(d){return pq(a,d)}),a.vb=!0,a.ha=[],_.x(c,Promise.all(b),2);_.pp(Wd);_.rp("drm.onPlay",Xd,Wd);_.z(c)})};jq=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};
263
+ iq=function(a){return!!a.match(/^com\.widevine\.alpha/)};_.bq=function(a){return jq(a)?_.Hd:a};vp=function(a){a.h.forEach(function(b,c){var d=b.Rg,e=c.expiration;isNaN(e)&&(e=Infinity);e!==d&&(a.F.Ug(c.sessionId,e),b.Rg=e)})};dq=function(a){a=_.v(a.h.values());for(var b=a.next();!b.done;b=a.next())if(!b.value.loaded)return!1;return!0};
264
+ Cp=function(a,b){var c=[];b.forEach(function(f,g){c.push({keySystem:g,licenseServerUri:f.licenseUrl,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:[]})});for(var d=_.v(a),e=d.next();!e.done;e=d.next())e.value.drmInfos=c};$p=function(a){for(var b=_.v(a.audioCapabilities||[]),c=b.next();!c.done;c=b.next())delete c.value.robustness;a=_.v(a.videoCapabilities||[]);for(b=a.next();!b.done;b=a.next())delete b.value.robustness};
265
+ aq=function(a){return(a.audioCapabilities||[]).some(tq)||(a.videoCapabilities||[]).some(tq)};tq=function(a){return null!=a.robustness&&""!==a.robustness};
266
+ cq=function(a,b,c,d,e){var f={};a=_.v(a);for(var g=a.next();!g.done;f={Na:f.Na},g=a.next()){f.Na=g.value;b.includes(f.Na.licenseServerUri)||b.push(f.Na.licenseServerUri);f.Na.serverCertificate&&(c.some(function(m){return function(n){return _.Ml(n,m.Na.serverCertificate)}}(f))||c.push(f.Na.serverCertificate));if(f.Na.initData){var k=_.v(f.Na.initData);for(g=k.next();!g.done;g=k.next())g.value.periodId=f.Na.periodId;k={};var l=_.v(f.Na.initData);for(g=l.next();!g.done;k={df:k.df},g=l.next())k.df=g.value,
267
+ d.some(function(m){return function(n){var p=m.df;return n.keyId&&n.keyId===p.keyId&&n.periodId===p.periodId?!0:!1}}(k))||d.push(k.df)}if(f.Na.keyIds)for(g=0;g<f.Na.keyIds.length;++g)e.includes(f.Na.keyIds[g])||e.push(f.Na.keyIds[g])}};
268
+ Ip=function(a,b,c){var d=_.bq(b.keySystem);c=c[d];d===_.cf&&b.licenseServerUri?a.g.debug("Using Clear Key data URI for",d):c&&c.licenseUrl?(b.licenseServerUri=c.licenseUrl,a.g.debug("Using license server URI from user-configured clpp.drm.DrmEnvironment (licenseUrl) for",d)):a.g.debug("Using license server URI from the manifest for ",d)};
269
+ Gp=function(a,b){var c=b[_.bq(a.keySystem)];a.keyIds||(a.keyIds=[]);c&&(a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.videoRobustness||(a.videoRobustness=c.videoRobustness||""),a.audioRobustness||(a.audioRobustness=c.audioRobustness||""),a.serverCertificate||(a.serverCertificate=c.serverCertificate||null))};
270
+ xp=function(a){var b,c;return _.I(function(d){if(1==d.a)return b=new Promise(function(e){(new _.Yh(e)).ia(1)}),_.x(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.Kh("Timeout waiting for session close");_.z(d)})};_.wq=function(a,b){a&&b&&(_.uq.set(a,b),_.vq.info("Registered TextDisplayerFactory: '"+a+"'"))};
271
+ _.xq=function(a,b){var c=b.find(function(d){return(d=_.uq.get(d))?d.a(a):!1});if(null==c)return _.vq.warn("Subtitles may not work as expected. No compatible text displayer found for this platform."),null;_.vq.info("Chosen the text displayer: "+c);return _.uq.get(c)};_.yq=function(a){switch(a){case 0:return 0;case 2:case 4:return 1;case 6:case 5:return 2;case 7:case 8:return 3;case 9:case 10:return 4;case 11:case 1:return 5;case 3:return 6;default:return 0}};zq=function(){this.a=null;this.f=[]};
272
+ _.Aq=function(a,b){if(null==a.a)a.a={timestamp:Date.now()/1E3,state:b,duration:0};else{var c=Date.now()/1E3;a.a.duration=c-a.a.timestamp;a.a.state!==b&&(a.f.push(a.a),a.a={timestamp:c,state:b,duration:0})}};Bq=function(a,b){var c=0;a.a&&a.a.state===b&&(c+=a.a.duration);for(var d=_.v(a.f),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state===b?e.duration:0;return c};
273
+ Cq=function(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=_.v(a.f),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.a&&c.push(b(a.a));return c};Dq=function(){this.h=this.f=this.j=null;this.a=[]};Eq=function(a){return a.a.map(function(b){return _.N.wb(b)})};_.Fq=function(){this.h=this.w=this.B=this.D=this.l=this.o=this.j=this.A=NaN;this.a=new zq;this.f=new Dq};
274
+ _.Gq=function(){return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,estimatedBandwidth:NaN,loadLatency:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,switchHistory:[],stateHistory:[]}};Hq=function(a){if(!a)return null;a=(new _.bk(a)).a.pathname.toUpperCase();return a.endsWith(".MPD")?_.Jc:a.endsWith(".M3U8")?_.Xm:a.endsWith(".MP4")?_.Og:a.endsWith(".MP3")?"audio/mp3":a.endsWith("MANIFEST")||a.endsWith(".ISM")?_.Pc:null};
275
+ _.Jq=function(a){var b;An(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.hg||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=Iq(b[c]);d&&a.push(d)}return a};
276
+ Iq=function(a){var b=null;_.N.ja(a)&&(a={url:a});typeof a===_.Ue&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.N.R(a.drmProtected)||typeof a.drmProtected!==_.bd||(b.drmProtected=a.drmProtected),_.N.R(a.isLive)||typeof a.isLive!==_.bd||(b.isLive=a.isLive),_.N.R(a.name)||typeof a.name!==_.hg||(b.name=a.name),_.N.R(a.videoMimeType)||typeof a.videoMimeType!==_.hg||(b.videoMimeType=a.videoMimeType),_.N.R(a.audioMimeType)||typeof a.audioMimeType!==_.hg||(b.audioMimeType=a.audioMimeType));
277
+ b&&!b.type&&(b.type=Hq(a.url),b.type?Kq.debug("Detect media type "+b.type+" for "+a.url):Kq.warn("Unable to detect media type for "+a.url));return b};Lq=function(){_.Bn.call(this,zd);this.w=this.H=!1;this.l=this.A=this.o=this.a=this.j=null;this.h=new _.ki;this.G=this.B=this.f=this.I=null};
278
+ Nq=function(a,b){if(a.w)throw new _.O(_.Q,7,7E3);a.a||(a.h.on(b,_.le,function(){var c=Mq(a);if(c)a.onError(c)}),a.h.on(b,_.Qf,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 _.R(_.ad,{detail:{width:c,height:d}}))}),a.a=b)};Oq=function(a){var b=_.vi()?ka:void 0;return new _.wp(a,b)};
279
+ Qq=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(_.Q,7,7E3)));b=a.ea[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=_.Pq;d=_.fl(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.o=Oq({Lb:e,onError:function(k){return a.onError(k)},Vg:function(){},Ug:function(k,l){a.trigger(new _.R(_.Zd,
280
280
  {expirationTime:l}))},onEvent:function(k){k instanceof _.R?a.dispatchEvent(k):a.log.debug(_.Nb,k.type)},getConfiguration:function(){return a.getConfiguration()},Jd:function(){return a.Jd()}});a.o.f=d;f={id:0,language:_.zg,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,
281
- Ta:0,mimeType:_.Og,codecs:"",encrypted:!0,keyId:null,language:_.zg,originalLanguage:_.zg,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,eq:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,spatialAudio:!1,Mp:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.x(g,_.Gp(a.o,[f]),2)}return _.x(g,_.Xp(a.o,a.a),0)})};
282
- Wq=function(a,b){Bo(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){3!==a.getState()&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};Rq=function(a){if(null===a.ea||!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(_.Q,3,3016,{code:b,Xp:c,message:a.a.error.message})};
283
- Xq=function(a){if(a.w)return new _.Nl(Promise.reject(new _.O(_.Q,7,7E3)),function(){});var b=a.ea[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.I;c&&Wq(a,c);if(d.preload!==_.Re)a.h.one(d,_.Fe,function(){var g=Date.now()/1E3-e;a.f.B=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.si()||_.ti())&&d.load();var f=new _.ml;a.h.one(d,bg,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.B||(a.B=(new _.Yh(function(){f.reject(new _.O(_.Q,3,3100,{message:"Unable to load media source successfully from "+
284
- b.url,uri:b.url},d.error))})).ia(g))});Bo(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.h,function(){return f.resolve()});d.error?f.reject(Rq(a)):d.preload===_.Re&&(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,_.le,function(){f.reject(Rq(a))});
285
- return new _.Nl(f,function(){var g=new _.O(_.Q,7,7001);f.reject(g);return Promise.resolve()})};
286
- Yq=function(a,b){Bo(b,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){if(a.isLive()&&3!==a.getState()){var c=a.getSeekRange().end,d=a.getPosition();Infinity===c||20>c-d||(a.log.warn("Detected that HLS live stream was not started from close to the live edge. Auto-fixing, seeking to seek range end.(position: "+(d+", seek range end: "+c+")")),a.seek(c)["catch"](function(e){a.log.warn("Error while seeking to seek range edge.",e)}))}})};
287
- Zq=function(a,b){var c=!1;a.h.on(b,_.Wf,function(){c=b.paused});a.h.on(b,_.Vf,function(){.2>b.duration-b.currentTime&&b.paused&&!c&&(a.log.warn("Player was auto-paused during seek to the end, auto-resuming."),b.play())})};$q=function(){};_.cr=function(a){0<=ar.indexOf(a)?br.warn("Factory '"+a.name()+"' is already registered"):(ar.push(a),br.info("Factory '"+a.name()+"' has been registered."))};
288
- dr=function(a,b){var c=ar.find(function(d){return d.a(a,b)})||null;c&&br.info("Chosen ads manager: "+c.name());return c};er=function(){};fr=function(){};gr=function(a,b,c,d,e,f,g){this.o=this.l=this.j=!1;this.G=a;this.f=b;this.a=c;this.h=d;this.w=0;this.B=e+":"+b;this.H=e;this.videoEl=null;this.A=f;this.D=g||null};hr=function(a){this.a=a.map(function(b){return{uc:b.getSurface().getMedia().id,player:b,qf:!0,ready:Promise.resolve()}});this.g=new _.L("clpp.playlist.PlayerPool")};
289
- _.ir=function(a,b){var c=document.createElement(a),d;for(d in b){var e=b[d];null===e||void 0===e?c.setAttribute(d,""):c.setAttribute(d,e)}return c};_.jr=function(a,b){a.classList.add(b)};_.kr=function(a,b){if(a&&typeof b===_.Te)for(var c in b)a.style[c]=b[c]};_.lr=function(a){return document.createElement(a)};mr=function(){this.a=null;this.h=new Set;this.f=null;this.set(null)};nr=function(a,b){a.a&&0!==b.length&&(a.a.classList.add(b),a.h.add(b))};
290
- or=function(a,b){var c=new MutationObserver(function(){var d=Array.from(a.h.values());Gj(Array.from(b.classList),Array.from(d))||b.classList.add.apply(b.classList,_.jh(d))});c.observe(b,{attributes:!0,attributeFilter:["class"]});return c};
291
- sr=function(a,b){this.g=new _.L("clpp.PlayerSurface");this.w=_.N.ta(pr,b);this.f=new mr;this.h=null;this.a=new mr;this.l=qr;qr+=1;this.o="clpp-video-"+this.l;this.j=new _.ki;if(null==a)throw new _.O(_.Q,7,7102,"No Media element was provided");if(a instanceof Element)var c=a;else if(c=document.getElementById(a),!c)throw new _.O(_.Q,7,7004,"Media element not found");var d=this.w;this.g.debug("Initializing Player Surface on ",c);if("cast-media-player"===c.tagName.toLowerCase())this.h=c;else{if(!(c instanceof
281
+ Ua:0,mimeType:_.Og,codecs:"",encrypted:!0,keyId:null,language:_.zg,originalLanguage:_.zg,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,fq:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,spatialAudio:!1,Np:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.x(g,_.Bp(a.o,[f]),2)}return _.x(g,_.Sp(a.o,a.a),0)})};
282
+ Rq=function(a,b){wo(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){3!==a.getState()&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};Mq=function(a){if(null===a.ea||!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(_.Q,3,3016,{code:b,Yp:c,message:a.a.error.message})};
283
+ Sq=function(a){if(a.w)return new _.Ql(Promise.reject(new _.O(_.Q,7,7E3)),function(){});var b=a.ea[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.I;c&&Rq(a,c);if(d.preload!==_.Se)a.h.one(d,_.Fe,function(){var g=Date.now()/1E3-e;a.f.B=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.si()||_.ti())&&d.load();var f=new _.ol;a.h.one(d,cg,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.B||(a.B=(new _.Yh(function(){f.reject(new _.O(_.Q,3,3100,{message:"Unable to load media source successfully from "+
284
+ b.url,uri:b.url},d.error))})).ia(g))});wo(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.h,function(){return f.resolve()});d.error?f.reject(Mq(a)):d.preload===_.Se&&(a.log.warn('With \x3cvideo preload\x3d"none"\x3e, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way. Please do not use preload\x3d"none" with PRESTOplay for Web Apps.'),f.resolve());a.h.one(d,_.le,function(){f.reject(Mq(a))});
285
+ return new _.Ql(f,function(){var g=new _.O(_.Q,7,7001);f.reject(g);return Promise.resolve()})};
286
+ Tq=function(a,b){wo(b,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){if(a.isLive()&&3!==a.getState()){var c=a.getSeekRange().end,d=a.getPosition();Infinity===c||20>c-d||(a.log.warn("Detected that HLS live stream was not started from close to the live edge. Auto-fixing, seeking to seek range end.(position: "+(d+", seek range end: "+c+")")),a.seek(c)["catch"](function(e){a.log.warn("Error while seeking to seek range edge.",e)}))}})};
287
+ Uq=function(a,b){var c=!1;a.h.on(b,_.Xf,function(){c=b.paused});a.h.on(b,_.Wf,function(){.2>b.duration-b.currentTime&&b.paused&&!c&&(a.log.warn("Player was auto-paused during seek to the end, auto-resuming."),b.play())})};Vq=function(){};_.Yq=function(a){0<=Wq.indexOf(a)?Xq.warn("Factory '"+a.name()+"' is already registered"):(Wq.push(a),Xq.info("Factory '"+a.name()+"' has been registered."))};
288
+ Zq=function(a,b){var c=Wq.find(function(d){return d.a(a,b)})||null;c&&Xq.info("Chosen ads manager: "+c.name());return c};_.ar=function(a){return _.$q.get(a)||null};_.cr=function(a){_.$q.get(a.id())?br.warn("Component already in use."):_.$q.set(a.id(),a)};dr=function(a){return Array.from(_.$q.values()).find(function(b){return b instanceof a})||null};er=function(a){for(var b=_.v(_.$q.values()),c=b.next();!c.done;c=b.next())a(c.value)};fr=function(a){er(function(b){b.playerConstructed(a)})};gr=function(a){er(function(b){b.beforeLoad(a)})};
289
+ _.hr=function(a){er(function(b){b.drmConfigurationResolved(a)})};ir=function(a){er(function(b){b.afterLoad(a)})};jr=function(a){if(null!==dr(a))return null;a=new a;a.install();_.cr(a);br.info("Installed component:",a.id());return a};kr=function(a){if(a=dr(a))a.uninstall(),_.$q["delete"](a.id()),br.info("Uninstalled component:",a.id())};lr=function(){};mr=function(){};
290
+ nr=function(a,b,c,d,e,f,g){this.o=this.l=this.j=!1;this.G=a;this.f=b;this.a=c;this.h=d;this.w=0;this.B=e+":"+b;this.H=e;this.videoEl=null;this.A=f;this.D=g||null};or=function(a){this.a=a.map(function(b){return{uc:b.getSurface().getMedia().id,player:b,qf:!0,ready:Promise.resolve()}});this.g=new _.L("clpp.playlist.PlayerPool")};_.pr=function(a,b){var c=document.createElement(a),d;for(d in b){var e=b[d];null===e||void 0===e?c.setAttribute(d,""):c.setAttribute(d,e)}return c};_.qr=function(a,b){a.classList.add(b)};
291
+ _.rr=function(a,b){if(a&&typeof b===_.Ue)for(var c in b)a.style[c]=b[c]};_.sr=function(a){return document.createElement(a)};tr=function(){this.a=null;this.h=new Set;this.f=null;this.set(null)};ur=function(a,b){a.a&&0!==b.length&&(a.a.classList.add(b),a.h.add(b))};vr=function(a,b){var c=new MutationObserver(function(){var d=Array.from(a.h.values());Gj(Array.from(b.classList),Array.from(d))||b.classList.add.apply(b.classList,_.jh(d))});c.observe(b,{attributes:!0,attributeFilter:["class"]});return c};
292
+ zr=function(a,b){this.g=new _.L("clpp.PlayerSurface");this.w=_.N.ta(wr,b);this.f=new tr;this.h=null;this.a=new tr;this.l=xr;xr+=1;this.o="clpp-video-"+this.l;this.j=new _.ki;if(null==a)throw new _.O(_.Q,7,7102,"No Media element was provided");if(a instanceof Element)var c=a;else if(c=document.getElementById(a),!c)throw new _.O(_.Q,7,7004,"Media element not found");var d=this.w;this.g.debug("Initializing Player Surface on ",c);if("cast-media-player"===c.tagName.toLowerCase())this.h=c;else{if(!(c instanceof
292
293
  HTMLMediaElement))throw new _.O(_.Q,7,7005,"Media element is not instance of HTMLMediaElement");if(!c.hasAttribute("crossorigin")){var e=d.crossorigin;this.g.info("Setting media elements crossorigin to "+e);c.setAttribute("crossorigin",e)}this.f.set(c);if(d.disableContainer)e=null;else if(d.containerEl){if(c.parentNode!==d.containerEl)throw new _.O(_.Q,7,7006,"Container element is not a direct parent of media element");e=d.containerEl}else{e=document.createElement(_.Sd);c.parentNode?c.parentNode.replaceChild(e,
293
- 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=_.v(f);for(g=f.next();!g.done;g=f.next())g=g.value,c.classList.remove(g),_.jr(e,g);e.style.cssText=c.style.cssText;c.removeAttribute(_.ig);f=_.v([_.ah,_.qe]);for(g=f.next();!g.done;g=f.next()){g=g.value;var k=c.getAttribute(g);k=parseInt(k,10);isNaN(k)||(e.style[g]=k+_.Jf);_.si()||c.removeAttribute(g)}e.appendChild(c)}e&&
294
- (this.a.set(e),nr(this.a,"clpp-container"),nr(this.a,this.o),nr(this.f,_.qd),nr(this.f,"clpp-video"));d.webOSStartupPatch&&rr(this,c,e)}};rr=function(a,b,c){b.hasAttribute(Ld)||(b.style.opacity="0",b.setAttribute(Ld,""),a.j.one(b,fe,function(){b.removeAttribute(Ld);b.style.opacity="1";c&&(c.style.opacity="1")}))};
295
- xr=function(a){var b=this;this.j=a;this.w=!!a.sideAdContainer;this.l=[];this.a=a.Ej;this.H=tr(a);this.D=[];var c=ur(this,this.H,this.j.Yl);this.A=new hr(c);this.f=null;this.B=!1;this.o=new Map;this.I=a.toggleVisible;this.g=new _.L("clpp.interstitial.MultiController");this.h=this.G=!1;this.J=a.ao||function(){};vr(this).forEach(function(d){return wr(b,d,!1)})};
296
- Br=function(a,b){var c,d,e,f,g,k,l,m,n,p,q,t,u;return _.I(function(y){if(1==y.a){a.g.info("Crop ads by playout limit",b);c=yr(a);d=a.getCurrentItem();if(!c||!d||!d.Va||null==c.V)return y["return"]();e=a.l.filter(function(A){return!A.primary});f=Math.max.apply(Math,_.jh(e.map(function(A){return A.Fb})));if(b>f)return a.g.info("Playout limit is greater than ad pod duration, ignored."),y["return"]();g=d.player.getPosition()+(d.Fb-d.duration);k=e.sort(function(A,D){return D.Fb-A.Fb})[0];l=c.V;m=b<=g;
297
- if(!m)return y.C(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 _.x(y,zr(a,c.id,_.hf),3)}if(2!=y.a)return k.Ja&&k.Ja(),p=d.Va,a.a.trigger(new _.R(_.Ac,{ad:p})),a.a.trigger(new _.R(_.kc,{ad:p})),a.a.trigger(new _.R(_.hc,{id:d.kc})),y["return"]();a.g.warn("Limiting playout of ads to",b);q=e.find(function(A){return b<=A.Fb&&b>=A.Fb-A.duration});if(!q)return a.g.warn("Cannot find ad hit by limit"),y["return"]();
298
- t=b-(q.Fb-q.duration);q.Va.h=t;u=f-b;c.V-=u;a.g.info("Last ad is now ",q.Va.nb(),"with cropped duration",t,"and primary will resume at",c.V.toFixed(1),"instead of",l.toFixed(1));k.Ja&&(q.Ja=k.Ja);q.transition={Sf:{position:t,itemId:c.id,V:c.V}};Ar(a,q);_.z(y)})};Dr=function(a){var b;return _.I(function(c){if(1==c.a)return(b=a.f)?"loaded"===b.state?c.C(2):_.x(c,b.Sd,2):c["return"]();if(4!=c.a)return _.x(c,b.player.play(),4);b.state=_.uf;Cr(b);_.z(c)})};
299
- Er=function(a,b){a.g.info("Add items",b);a.l=a.l.concat(b.map(function(c){return Object.assign({},c,{state:"idle",disposers:[],preloadPromise:Promise.resolve(),Sd:Promise.resolve()})}))};Gr=function(a){return _.I(function(b){return _.x(b,Fr(a,a.l.map(function(c){return c.id})),0)})};
300
- Fr=function(a,b){var c,d,e,f,g;return _.I(function(k){a.g.info("Remove items",b);c=[];d=[];e=_.v(a.l);for(f=e.next();!f.done;f=e.next())g=f.value,b.includes(g.id)?d.push(g):c.push(g);a.l=c;return _.x(k,Promise.all(d.map(function(l){l.disposers.forEach(function(m){return m()});l.disposers=[];return Hr(a,l.id)})),0)})};Jr=function(a){var b;return _.I(function(c){b=a.l.filter(function(d){return!d.primary}).map(function(d){return d.id});Ir(a);return _.x(c,Fr(a,b),0)})};
301
- Kr=function(a){var b,c;_.I(function(d){b=a.getCurrentItem();c=b.next[0];if(!(b&&b.primary&&c))return d.C(0);Ir(a);return _.x(d,a.play(c),0)})};Ir=function(a){var b=yr(a);b&&(b.transition=void 0,b.next=[],Lr(a))};
302
- zr=function(a,b,c){var d,e,f,g,k,l;return _.I(function(m){switch(m.a){case 1:if(a.B)return a.g.warn("Cannot "+c+" item while busy (ID: "+b+")"),m["return"]();d=Mr(a,b);if(!d)return a.g.warn("Item not found (ID: "+b+")"),m["return"]();a.g.info(c+" item (ID: "+b+")");a.B=!0;if(e=a.f)e.player.isPaused()||(a.w?e.primary?Nr(a,e,Or):e.player.pause():a.a.isLive()||e.player.pause()),e.primary?Nr(a,e,Or):Nr(a,e,Pr);(f=a.o.has(b))&&a.o["delete"](b);_.F(m,2,3);if(c===_.hf)return(g=e&&d.primary)?_.x(m,Qr(a,d),
303
- 10):f?_.x(m,Rr(a,d),10):_.x(m,Sr(a,d),10);if(f){a.g.error("Loading preloaded items is not supported");m.C(6);break}return _.x(m,Tr(a,d),6);case 10:Cr(d);case 6:Ar(a,d);d.primary?Nr(a,d,Pr):Nr(a,d,Or);d.Va&&Ur(a,d,d.Va);if(d.Ja)d.player.one(_.ke,d.Ja);e&&Vr(a,e);case 3:_.yh(m);a.B=!1;Wr(a);Xr(a,d.next);_.zh(m);break;case 2:k=_.H(m);a.g.error("Item failed to "+c+" (ID: "+b+")",k);if(d.primary)throw k;if(l=yr(a))return a.g.warn("Ad failed, resuming primary item"),_.x(m,Qr(a,l),3);m.C(3)}})};
304
- Yr=function(a,b,c){c=void 0===c?!1:c;if(!a.h&&!a.a.isLive()){var d=yr(a);d?(d.V=b,c&&(a.h=!0)):a.g.error("Failed to get primary item. Cannot configure resume position.")}};yr=function(a){return a.l.find(function(b){return!!b.primary})||null};Mr=function(a,b){return a.l.find(function(c){return c.id===b})||null};
305
- Ar=function(a,b){var c=b.transition;if(c&&!c.Nj){if(c.Ja){var d=c.Ja,e=function(){a.g.info("Transition onEnded to (ID: "+d+")");a.play(d)};b.player.one(_.ke,e);b.disposers.push(function(){b.player.off(_.ke,e)})}c.Sf&&Zr(a,b,function(){var f=a.f.Va;f&&(b.disposers.forEach(function(g){return g()}),b.disposers=[],a.a.trigger(new _.R(_.Ac,{ad:f})),a.a.trigger(new _.R(_.kc,{ad:f})),a.a.trigger(new _.R(_.hc,{id:b.kc})))});c.Nj=!0}};
306
- Zr=function(a,b,c){function d(){a.g.info("Stop timeupdate polling");b.player.off(_.ug,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?k=null:k=requestAnimationFrame(e)}function f(){var l=b.player.getPosition();.5>=g.position-l&&(a.g.info("Start RAF polling"),d(),e())}var g=b.transition.Sf,k=null;g.V&&Yr(a,
307
- g.V);a.g.info("Start timeupdate polling");b.player.on(_.ug,f);b.disposers.push(function(){null!=k&&(a.g.info("Stop RAF polling"),cancelAnimationFrame(k),k=null)});b.disposers.push(d)};Lr=function(a){a.f&&(a.f.disposers.forEach(function(b){return b()}),a.f.disposers=[],a.f.transition&&(a.f.transition.Nj=!1),Ar(a,a.f))};vr=function(a){return[a.a].concat(_.jh(a.A.a.map(function(b){return b.player})))};Wr=function(a){Promise.all(Array.from(a.o.keys()).map(function(b){return Hr(a,b)}))};
308
- tr=function(a){if(a.sideAdContainer)a=a.sideAdContainer;else if(a=a.Ej.getSurface().getContainer(),!a)throw Error("Primary player does not have a container");return a};Hr=function(a,b){var c;return _.I(function(d){if(1==d.a){c=a.o.get(b);if(!c)return d.C(0);a.g.info("Stop preloading item (ID: "+b+")");return c.player?_.x(d,$r(a,c.player),3):d.C(3)}a.o["delete"](b);_.z(d)})};as=function(a){return _.I(function(b){if(1==b.a)return a.f?_.x(b,Vr(a,a.f),3):b.C(0);wr(a,a.a,!0);_.z(b)})};
309
- Vr=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||wr(a,c,!1),d.C(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=bs;return b.fh?(a.g.info("Release player (ID: "+b.id+") after delay "+(b.fh+" ms.")),_.x(d,new Promise(function(e){setTimeout(function(){return _.I(function(f){if(1==f.a)return _.x(f,$r(a,c),2);wr(a,c,!1);a.a.trigger(new _.R("ad-hls-released"));
310
- e();_.z(f)})},b.fh)}),0)):_.x(d,$r(a,c),5)}wr(a,c,!1);return d.C(0)})};Sr=function(a,b){return _.I(function(c){if(1==c.a)return _.x(c,Tr(a,b),2);if(3!=c.a)return _.x(c,b.player.play(),3);b.state=_.uf;_.z(c)})};Tr=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.x(d,cs(a,!!b.primary),2);if(3!=d.a)return c=d.f,a.f=b,b.role=ds,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),wr(a,c,!0),b.state="loading",b.Sd=es(a,c,b.config,b.Re),_.x(d,b.Sd,3);b.state="loaded";_.z(d)})};
311
- Rr=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!==Cf){d.C(2);break}a.g.info(Ub);_.F(d,3);return _.x(d,b.preloadPromise,5);case 5:_.G(d,2);break;case 3:_.H(d);case 2:a.f=b;b.role=ds;wr(a,c,!0);if(b.state===Bf)return _.x(d,c.play(),7);if(b.state!==Af){d.C(7);break}return _.x(d,es(a,c,b.config,b.Re),7);case 7:b.state=_.uf,_.z(d)}})};
312
- Ur=function(a,b,c){function d(){a.a.trigger(new _.R(_.Ac,{ad:c}));a.a.trigger(new _.R(_.kc,{ad:c}));c.f===c.a&&a.a.trigger(new _.R(_.hc,{id:b.kc}))}function e(){a.a.trigger(new _.R(_.ic,{ad:c}))}function f(){a.a.trigger(new _.R(_.vc,{ad:c}))}function g(){l.isEnded()||a.a.trigger(new _.R(_.tc,{ad:c}))}function k(){var m=l.getPosition(),n=c.getDuration();c.setPosition(m);a.a.trigger(new _.R(_.uc,{ad:c}));!c.j&&m>=n/4&&(c.j=!0,a.a.trigger(new _.R(_.lc,{ad:c})));!c.l&&m>=n/2&&(c.l=!0,a.a.trigger(new _.R(_.rc,
313
- {ad:c})));!c.o&&m>=3*n/4&&(c.o=!0,a.a.trigger(new _.R(_.Bc,{ad:c})))}var l=b.player;l.on(_.ug,k);l.on(_.df,g);l.on(_.uf,f);l.on(_.dd,e);l.one(_.ke,d);b.disposers.push(function(){l.off(_.ug,k);l.off(_.df,g);l.off(_.uf,f);l.off(_.dd,e);l.off(_.ke,d)});1===c.f&&a.a.trigger(new _.R(_.gc,{id:b.kc}));c.videoEl=l.getSurface().getMedia();a.a.trigger(new _.R(_.pc,{ad:c}));a.a.trigger(new _.R(_.yc,{ad:c}))};
314
- Qr=function(a,b){return _.I(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();a.J();if(b.state!==Cf){c.C(2);break}a.g.info("Wait for seek to finish");_.F(c,3);return _.x(c,b.preloadPromise,5);case 5:_.G(c,2);break;case 3:_.H(c);case 2:a.h=!1;if(!b.V){c.C(6);break}return _.x(c,b.player.seek(b.V,!0),6);case 6:a.f=b;b.role=ds;wr(a,b.player,!0);b.state="loading";if(a.w){Nr(a,b,Pr);if(!b.player.isPaused()){c.C(9);break}return _.x(c,b.player.play(),9)}if(!a.a.isPaused()){c.C(9);break}return _.x(c,
315
- b.player.play(),9);case 9:b.state=_.uf,_.z(c)}})};$r=function(a,b){return _.I(function(c){return b===a.a?c.C(0):_.x(c,a.A.release(b),0)})};cs=function(a,b){var c;return _.I(function(d){if(1==d.a)return b?d["return"](a.a):_.x(d,a.A.get(),2);c=d.f;if(!c)throw Error("No player available");return d["return"](c)})};
316
- Xr=function(a,b){var c;_.I(function(d){if(0===b.length)return d["return"]();a.g.info("Preload items (IDs: "+b+")");c=a.l.filter(function(e){return b.includes(e.id)})||[];return _.x(d,Promise.all(c.map(function(e){return fs(a,e)})),0)})};
317
- fs=function(a,b){var c,d,e,f,g;return _.I(function(k){switch(k.a){case 1:if(!b.primary){k.C(2);break}b.state=Cf;a.o.set(b.id,b);if(!b.V||a.w){k.C(3);break}c=b.player;a.g.info("Preparing to resume at",b.V);Nr(a,b,Or);return _.x(k,c.seek(b.V,!0),3);case 3:return b.state=Bf,k["return"]();case 2:return d=b.id,_.x(k,cs(a,!1),5);case 5:e=k.f;b.player=e;b.videoEl=e.getSurface().getMedia();b.role=bs;b.state=Cf;_.F(k,6);a.o.set(d,b);b.config.autoplay&&(a.g.warn("Autoplay should not be used for preloaded streams. Force disabling autoplay (ID: "+
318
- (d+")")),b.config.autoplay=!1);if(f=a.a.getBandwidthEstimate())b.config.abr||(b.config.abr={}),b.config.abr.defaultBandwidthEstimate=f;b.preloadPromise=es(a,e,b.config,b.Re);return _.x(k,b.preloadPromise,8);case 8:b.state=Bf;_.G(k,0);break;case 6:g=_.H(k),7001===g.code?(a.g.info("Preload aborted (ID: "+d+")"),b.state=zf):(a.g.warn("Preload failed (ID: "+d+")",g),b.state=Af),_.z(k)}})};
319
- wr=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.debug(Fb+b),d.classList.add(ud),d.classList.remove("clpp-hide")):(a.g.debug(Va+b),d.classList.remove(ud),d.classList.add("clpp-hide")),a.I&&a.I(d,c))};
320
- ur=function(a,b,c){return Array.from({length:2}).map(function(d,e){var f=document.createElement(_.Lg);b.appendChild(f);var g=a.j.xb.create();f=new sr(f);g.init(f,c);g.setSourceIndex(0);var k=f.getContainer();if(!k)throw Error("Failed to create player surface container element");k.classList.add("secondary");f.getMedia().classList.add("v-"+e);a.D.push(k);return g})};
321
- Nr=function(a,b,c){var d=b?b.kc||null:null;a.G?(a.a.setMuted(!0),gs(a,!0)):(b.audio&&(c=b.audio),a.j.onAudioDecision&&(c=a.j.onAudioDecision(d)),c===Pr?(a.a.setMuted(!1),gs(a,!0)):c===Or?(a.a.setMuted(!0),gs(a,!1)):a.g.warn("Audio decision not supported",c))};gs=function(a,b){a.l.filter(function(c){return!c.primary&&c.player}).forEach(function(c){return c.player.setMuted(b)})};hs=function(a){a.D.forEach(function(b){return a.H.removeChild(b)});a.D=[];wr(a,a.a,!0)};
322
- es=function(a,b,c,d){var e,f;return _.I(function(g){if(1==g.a)return _.x(g,b.release(),2);if(3!=g.a)return _.x(g,b.load(c),3);d&&d(b.getDuration());a.f&&a.f.player&&(e=a.f.player.getVolume(),f=null==e?1:e,b.setVolume(f),b.setMuted(a.f.player.isMuted()||!1));_.z(g)})};Cr=function(a){if(a.Va){var b=a.player.getDuration();a.maxDuration&&(b=Math.min(b,a.maxDuration));a.Va.h=b}a.Uf&&a.Uf()};
323
- rs=function(a){_.kn.call(this);var b=this;this.j=_.N.ta({Fo:.5},a);this.A=this.h=!1;this.g=new _.L("clpp.interstitial.Player");this.l=a.player;this.l.setSeekInterceptor(function(c,d){if(d)return!0;if(b.h)return!1;var e=is(b);if(e)return b.g.info("Seek ignored while binding interstitial",e.ca),!1;js(b,c);e=ks(b);var f=ls(b,c),g=ms(b,c);if(e){if(f&&f!==e)return ns(b,f,c),!1;if(g&&g!==e)return os(b,g,c),!1;if(c<e.startTime-b.j.resolutionOffsetSec)return ps(b,e),!0;if(c<e.startTime)return Lr(b.a),b.g.info("Seek inside resolution area of",
324
- e.ca),!0;if(c<=e.endTime)return b.g.info("Seek into the scheduled interstitial",e.ca),Kr(b.a),!1;if(e.Rh)return b.g.info("Jump over a scheduled interstitial",e.ca),Jr(b.a),e.state=0,!0;b.g.info("Jump over a scheduled interstitial triggering it",e.ca);Kr(b.a);Yr(b.a,c,!0);return!1}return f?(ns(b,f,c),!1):g&&!g.bm?(os(b,g,c),!1):!0});this.a=new xr({Yl:this.j.config,Ej:a.player,preloadMedia:!0,xb:a.xb,sideAdContainer:this.j.sideAdContainer,onAudioDecision:this.j.onAudioDecision,ao:function(){b.g.info("Resume primary content")}});
325
- this.o=[];this.f=[];this.w=!1;qs(this,a.player)};ss=function(a){return(a=a.a.getCurrentItem())&&!a.primary?a.player:null};
326
- us=function(a){var b,c,d;_.I(function(e){var f=a.a;Er(f,[{id:Gf,primary:!0,config:f.a.getConfiguration(),next:[],Fb:0,duration:0,kc:null}]);var g=yr(f);if(!g)throw Error("Failed to find primary item");f.f=g;g.role=ds;g.player=f.a;g.videoEl=g.player.getSurface().getMedia();wr(f,g.player,!0);b=a.l;c=b.getConfiguration();d=!c.autoplay;a.w=ts(a,d,b.isLive(),!1);if(a.w){f=a.a;g=f.A;if(g=g.a[0]?g.a[0].player:null)f.w||wr(f,f.a,!1),wr(f,g,!0);return e.C(0)}return c.autoplay?_.x(e,Dr(a.a),0):e.C(0)})};
327
- js=function(a,b){var c=a.l.getPosition();b>=c||a.f.filter(function(d){return d.Ud===_.Ek&&!d.once&&d.dj&&d.startTime>b}).forEach(function(d){d.zh=!0})};ks=function(a){return a.f.find(function(b){return 4===b.state})||null};is=function(a){return a.f.find(function(b){return 1===b.state})||null};ps=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Unschedule interstitial",b.ca),_.x(c,Jr(a.a),2);b.state=0;_.z(c)})};
328
- ns=function(a,b,c){var d;_.I(function(e){switch(e.a){case 1:a.h=!0;_.F(e,2,3);d=ks(a);if(!d){e.C(5);break}return _.x(e,ps(a,d),5);case 5:return a.g.info("Seek into interstitial",b.ca),_.x(e,vs(a,b),3);case 3:_.yh(e);a.h=!1;_.zh(e);break;case 2:return _.H(e),_.x(e,a.l.seek(c),3)}})};
329
- os=function(a,b,c){var d,e;_.I(function(f){switch(f.a){case 1:a.h=!0;_.F(f,2,3);d=ks(a);if(!d){f.C(5);break}return _.x(f,ps(a,d),5);case 5:return a.g.info("Play jumped interstitial",b.ca,"resume at",c.toFixed(2)),_.x(f,vs(a,b,c),3);case 3:_.yh(f);a.h=!1;_.zh(f);break;case 2:return e=_.H(f),a.g.warn("Failed to play jumped interstitial",b.ca,e),b.bm=new Date,_.x(f,a.l.seek(c),3)}})};
330
- ts=function(a,b,c,d){var e=ws(a);a.g.info("Interstitial cues changed",e);var f=e;if(d){f=Jj(a.f.map(function(q){return q.ca}),e.map(function(q){return q.id}));xs(a,f.Ko);var g=new Set(f.qk);f=e.filter(function(q){return g.has(q.id)})}if(!ys(a,f))return!1;var k=[],l=[],m=[];f.forEach(function(q){var t=q.customAttributes.CUE||[];t.includes(_.pb)?l.push(q):!d&&t.includes("PRE")?k.push(q):!c&&q.startTime<a.j.Fo?k.push(q):m.push(q)});e=Gk(k,0);f=Gk(l,_.Bk);var n=Gk(m,_.Ek),p=e.concat(f,n);zs(a,p);0<e.length&&
331
- As(a,e[0],b);n.forEach(function(q){return Bs(a,q,_.Ek)});0<f.length&&Bs(a,f[0],_.Bk);Cs(a,p);return 0<e.length};
332
- Cs=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(k){var l=b.find(function(n){return n.id===k.ca});if(l){var m=l.customAttributes[bc];null==k.Hc&&null!=m&&(a.g.info(Qb,l.id,"Playout limit",m),k.Hc=m,k.Ud===_.Ek&&4===k.state&&Ds(a,k))}}),g["return"]();d=b.find(function(k){return k.id===c.kc});if(!d)return g["return"]();e=d.customAttributes[bc];if(null==e)return g["return"]();f=a.f.find(function(k){return k.ca===d.id});
333
- if(!f||null!=f.Hc)return g["return"]();a.g.info(Qb,d.id,"Playout limit",e);f.Hc=e;return _.x(g,Br(a.a,e),0)})};xs=function(a,b){var c=new Set(b);a.f.forEach(function(d){c.has(d.ca)&&!zk(d)&&a.g.warn("Removing an interstitial in active state",d)});a.f=a.f.filter(function(d){return!c.has(d.ca)})};ws=function(a){return a.l.getTimelineCues().filter(function(b){return wk(b.schemeIdUri)&&b.customAttributes})};
334
- vs=function(a,b,c){var d;return _.I(function(e){if(1==e.a)return _.x(e,Es(a,b),2);d=e.f;if(!d)throw Error("Failed to bind");return _.x(e,Fs(a,b,_.Ek,!1,c),0)})};Ds=function(a,b){_.I(function(c){return 1==c.a?_.x(c,ps(a,b),2):_.x(c,Gs(a,b,a.l),0)})};
335
- Bs=function(a,b,c){var d=b.customAttributes[$b],e=b.customAttributes[Zb],f=b.customAttributes[ac],g=b.customAttributes[dc],k=b.customAttributes[bc],l=b.customAttributes[cc]||[];b.customAttributes[ec]||(b.customAttributes[ec]=null==g||0<g?"RANGE":"POINT");var m=b.customAttributes["X-YOSPACE-AUDIO-PRIORITY"];m="CONTENT"===m?Pr:"AD"===m?Or:void 0;b={ca:b.id,startTime:b.startTime,endTime:b.endTime,state:0,Gh:e,Hh:d,Be:f,oa:null,V:null==g?null:Math.max(0,b.startTime+g),Oo:g,Hc:k,Ud:c,Um:"POINT"===b.customAttributes[ec],
336
- zk:!l.includes("SKIP"),Rh:!l.includes("JUMP"),Rj:Ak(b),dj:null!=g&&0>g,once:(b.customAttributes.CUE||[]).includes("ONCE"),Oj:!1,zh:!0,customAttributes:b.customAttributes,audio:m};a.f.push(b);return b};
337
- As=function(a,b,c){var d,e,f,g,k;_.I(function(l){switch(l.a){case 1:return d=Bs(a,b,0),_.x(l,Es(a,d),2);case 2:e=l.f;f=d.oa?d.oa.length:0;if(e&&0<f){_.F(l,8);a.g.info("Player preroll interstitial "+d.ca);var m=Fs(a,d,0,c);return _.x(l,m,10)}e?a.g.warn("Preroll interstitial has no assets, skipping"):a.g.error("Preroll interstitial failed, skipping");return _.x(l,as(a.a),5);case 5:if(c){l.C(0);break}return _.x(l,Dr(a.a),0);case 10:_.G(l,0);break;case 8:g=_.H(l);a.g.error("Preroll interstitial failed.",
338
- g);if(k=yr(a.a))return _.x(l,a.a.play(k.id),0);l.C(0)}})};Hs=function(a){a.o.forEach(function(b){return b()});a.o=[]};
339
- qs=function(a,b){function c(){a.A=!1}function d(){a.A=!0}function e(){ts(a,!1,!0,!0)}function f(){var g,k,l,m,n;return _.I(function(p){switch(p.a){case 1:if(a.h||a.A)return p["return"]();g=b.getPosition();k=Is(a,g);if(!k){p.C(2);break}return _.x(p,Es(a,k),3);case 3:(l=p.f)&&Gs(a,k,b);case 2:m=Js(a);if(!(m&&0===m.state&&b.getDuration()-g<a.j.resolutionOffsetSec)){p.C(0);break}return _.x(p,Es(a,m),5);case 5:if(n=p.f)if(m.oa&&0!==m.oa.length){var q=a.a.getCurrentItem();if(q){var t=Ks(a,m,_.Bk);if(0!==
340
- t.length){var u=t[0].id;q.next=[u];q.transition={Ja:u};a.g.info("Schedule postroll interstitial "+m.ca);Ls(a,m,t)}}}else a.g.warn("Postroll interstitial has no assets, ignoring.");_.z(p)}})}b.on(_.ug,f);a.o.push(function(){b.off(_.ug,f)});b.on(_.tg,e);a.o.push(function(){b.off(_.tg,e)});b.on(_.gc,d);a.o.push(function(){b.off(_.gc,d)});b.on(_.hc,c);a.o.push(function(){b.off(_.hc,c)})};Js=function(a){return a.f.find(function(b){return b.Ud===_.Bk})||null};
341
- zs=function(a,b){for(var c=b.sort(function(m,n){return m.startTime-n.startTime}),d=a.j.resolutionOffsetSec,e=Infinity,f=[],g=0;g<c.length-1;g++){var k=c[g],l=c[g+1];l&&(e=Math.min(e,l.startTime-k.endTime));l&&l.startTime<=k.endTime&&f.push("Interstitials "+k.id+" and "+l.id+" overlap.")}e<d&&(c=e/2,a.j.resolutionOffsetSec=c,a.g.info("Interstitials are closer than configured resolutionOffsetSec ("+(d+" s) auto-reconfiguring to ")+(c+" s.")));0<f.length&&a.g.warn("Unsupported format of interstitials, playback may not behave correctly. "+
342
- f.join(" "))};ys=function(a,b){var c=[];b.forEach(function(d){xk(d.customAttributes)||c.push("Interstitial cue "+d.id+" is invalid it must contain exactly one of X-ASSET-LIST or X-ASSET-URI.")});0<c.length&&a.g.error("Invalid interstitials, all interstitials will be skipped. "+c.join(" "));return 0===c.length};Is=function(a,b){return a.f.find(function(c){var d=c.startTime-b;return c.Ud===_.Ek&&zk(c)&&0<d&&d<=a.j.resolutionOffsetSec})||null};
343
- ls=function(a,b){return a.f.find(function(c){return zk(c)&&!c.Um&&c.Ud===_.Ek&&b>c.startTime&&b<c.endTime})||null};ms=function(a,b){var c=a.l.getPosition();return a.f.filter(function(d){return d.Ud===_.Ek&&!d.Rh}).sort(function(d,e){return e.startTime-d.startTime}).find(function(d){return d.startTime>c&&d.startTime<b})||null};
344
- Es=function(a,b){return _.I(function(c){if(1==c.a){b.state=1;if(b.Be)return _.x(c,Ms(a,b,b.Be),3);if(!b.Gh){if(b.Hh){b.oa=[{URI:b.Hh,DURATION:b.endTime-b.startTime}];var d={URI:b.oa[0].URI,DURATION:b.oa[0].DURATION};b.Rj&&(d[Yb]=b.Rj);Ns(a,new _.R(oc,{id:b.ca,detail:{ASSETS:[d]}}));b.state=2}else b.state=3;return c.C(3)}return _.x(c,Os(a,b,b.Gh),3)}return c["return"](2===b.state)})};
345
- Ms=function(a,b,c){var d,e,f,g,k,l;return _.I(function(m){if(1==m.a)return _.F(m,2),d=[],e=c.entries,f=e.map(function(n){var p;return _.I(function(q){if(1==q.a)return"list"!==n.type?q.C(2):_.x(q,Ps(a,n.Qc.URI),3);if(2!=q.a)return p=q.f,q["return"](p.ASSETS.map(function(t){return{id:n.id,customAttributes:n.customAttributes,Qc:t}}));if("uri"===n.type)return q["return"]([{id:n.id,customAttributes:n.customAttributes,Qc:n.Qc}]);throw new _.hi("Invalid group asset entry type");})}),_.x(m,Promise.all(f),
346
- 4);if(2!=m.a)return g=m.f,g.forEach(function(n){return d.push.apply(d,_.jh(n))}),b.Be={entries:e,oa:d},k={ASSETS:d.map(function(n){return n.Qc})},Qs(a,b,k),_.G(m,0);l=_.H(m);a.g.error("Failed to bind grouped asset list for "+b.ca,l);b.state=3;_.z(m)})};
347
- Os=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return _.F(f,2),a.g.info("Load X-ASSET-LIST for "+b.ca),Ns(a,new _.R(mc)),_.x(f,Ps(a,c),4);if(2!=f.a)return d=f.f,Qs(a,b,d),_.G(f,0);e=_.H(f);a.g.error("Failed to load X-ASSET-LIST",e);b.state=3;_.z(f)})};
348
- Qs=function(a,b,c){b.oa=c.ASSETS;b.oa&&0!==b.oa.length||a.g.info("Interstitial "+b.ca+" has no assets, will be smoothly skipped");if(null==b.V){var d=Lk(b.oa.map(function(e){return e.DURATION}));b.V=b.startTime+(null==b.Hc?d:Math.min(b.Hc,d))}b.state=2;Ns(a,new _.R(nc));Ns(a,new _.R(oc,{id:b.ca,detail:c}))};Rs=function(a,b){var c=a.j.Do;if(c){var d=new URL(b);d.searchParams.set("_HLS_primary_id",c);return d.toString()}return b};
349
- Fs=function(a,b,c,d,e){var f,g,k;return _.I(function(l){if(0===b.oa.length)return l["return"]();f=a.a.getCurrentItem();if(!f)return l["return"]();g=Ks(a,b,c);if(0===g.length)return l["return"]();Ls(a,b,g);(k=0===c&&a.l.isLive())||(null!=e?Yr(a.a,e,!0):null!=b.V&&Yr(a.a,b.V));return d?_.x(l,a.a.load(g[0].id),0):_.x(l,a.a.play(g[0].id),0)})};
350
- Gs=function(a,b,c){if(b.oa)if(0===b.oa.length){var d=function(){c.isLive()?a.g.info("Skipping empty live interstitial "+b.ca):null!=b.V&&0!==b.Oo?c.seek(b.V):a.g.info("Empty VOD interstitial "+b.ca+", continuing to next segment")};c.one(_.rg,d);a.o.push(function(){c.off(_.rg,d)});a.g.info(Cb+b.ca+" to be skipped")}else{var e=a.a.getCurrentItem();if(e){var f=Ks(a,b,_.Ek);if(0!==f.length){var g=f[0].id;null!=b.V&&Yr(a.a,b.V);e.next=[g];e.transition={Sf:{position:b.startTime,itemId:g,V:b.V}};a.g.info(Cb+
351
- b.ca+" for "+(b.startTime+" s"));Ls(a,b,f)}}}};Ls=function(a,b,c){Er(a.a,c);a=a.a;Lr(a);a.f&&(a.f.Va&&Ur(a,a.f,a.f.Va),Wr(a),Xr(a,a.f.next));b.state=4};
352
- Ks=function(a,b,c){var d=0,e=!!b.Be,f=b.oa.map(function(m,n){var p=b.ca;e&&(p=b.Be.oa[n].id);d+=m.DURATION;return{id:p+"-"+n,config:{source:{url:Rs(a,m.URI),type:_.Um}},duration:m.DURATION,Fb:d,kc:p,next:[],Va:new gr(c,n+1,b.oa.length,m.DURATION,p,b.zk,b.customAttributes||null),audio:b.audio}});Ck(f,c);f.forEach(function(m){m.Uf=function(){var n=m.Va;a.g.info("Playing ad "+(n.f+"/"+n.a)+" of interstitial "+m.kc)};m.Re=function(){Ns(a,new _.R(_.qc,{ad:m.Va}))}});if(null!=b.Hc&&(f=Ss(a,b,f),0===f.length))return[];
353
- var g=f[0].Uf;f[0].Uf=function(){b.state=5;b.Oj=!0;b.dj&&(b.zh=!1);a.g.info("Playing interstitial "+b.ca+" with "+(b.oa.length+" assets and will resume primary content ")+((b.V?"at "+b.V.toFixed(1)+" s":"after interstitial ended")+"."));g()};var k=f[0].Re;f[0].Re=function(m){null==b.V&&(b.V=b.startTime+m,Yr(a.a,b.V),a.g.info("Primary content will resume at",b.V.toFixed(1),"s"));k(m)};var l=f[f.length-1];l.Ja=function(){b.state=6;Fr(a.a,f.map(function(m){return m.id}));c===_.Bk&&as(a.a)};l.fh=a.j.adReleaseDelayMs;
354
- return f};Ss=function(a,b,c){var d=b.Hc;a.g.info("Playout limit for "+b.ca+" is "+(d+" s"));b=c[c.length-1].Fb;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.Fb-f.duration<=d});e.forEach(function(f){f.Va.a=e.length});a=e[e.length-1];c=d-(a.Fb-a.duration);.1>Math.abs(c-a.duration)?a.transition.Ja=Gf:a.transition.Sf={position:c,itemId:Gf,V:null};a.maxDuration=c;return e};
355
- Ns=function(a,b){a.l.trigger(b)};Ps=function(a,b){var c,d,e,f,g,k;return _.I(function(l){if(1==l.a){c=a.a.Ef();if(!c)throw Error("No player found");d=c.getNetworkEngine();e=_.Tk(Rs(a,b));return _.x(l,Xl(d,e),2)}f=l.f;if(null===f)return a.g.warn("X-ASSET-LIST "+b+" returned no content"),l["return"]({ASSETS:[]});g=yk(f);if(!g)throw new _.hi("Invalid X-ASSET-LIST list response");k=f;return l["return"](k)})};Ts=function(){this.a=null};
356
- Us=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)})}};Ws=function(a){this.m=a;this.j=this.m.getNetworkEngine();this.f=new _.ki;this.h=null;this.a=!0;Vs(this)};
357
- Vs=function(a){a.f.on(window,"offline",function(){Xs(a,!1)});a.f.on(window,"online",function(){a.a||Ys(a)});a.f.on(a.m,bg,function(){a.a&&Ys(a)});a.f.on(a.m,"suspend",function(){a.a&&Ys(a)});a.f.on(a.m,_.Ug,function(){a.a&&Ys(a)});a.f.on(a.m,_.uf,function(){a.a||Ys(a)});a.f.on(a.m,_.If,function(){a.a||Ys(a)});a.f.on(a.m,_.tf,function(b){b.detail&&a.a&&Ys(a)})};Ys=function(a){a.m.getConfiguration().connectivityCheck&&(Zs(a),a.h=(new _.Yh(function(){return $s(a)})).ia(5))};
358
- Zs=function(a){a.h&&(a.h.stop(),a.h=null)};$s=function(a){var b,c;return _.I(function(d){if(1==d.a)return(b=a.m.getConfiguration().connectivityCheck)&&a.m?_.x(d,am(a.j,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;Xs(a,c);_.z(d)})};Xs=function(a,b){Zs(a);a.a!==b&&(a.a=b,a.m&&a.m.getConfiguration().connectivityCheck&&a.m.trigger(new _.R($e,{online:a.a})))};bt=function(){at.forEach(function(a){return a()})};_.ct=function(a){at.push(a)};dt=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};
359
- et=function(a,b,c){var d=_.S.ga;this.h=a;this.f=b;JSON.parse(d(_.Gl(a)));this.a=JSON.parse(d(_.Gl(b)));this.j=c};
360
- gt=function(a){var b=ft,c=_.S.sb,d={kty:"RSA",n:b.n,e:b.e},e=a.h+"."+a.f,f=a.j;return new Promise(function(g,k){try{var l=window&&window.crypto&&window.crypto.subtle}catch(n){}if(l){var m={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};l.importKey("jwk",d,m,!1,["verify"]).then(function(n){var p=c(e),q=_.Gl(f);return l.verify(m,n,q.buffer,p.buffer)}).then(function(n){n?g():k(new _.hi("Signature Verification failed",yg))})["catch"](k)}else g()})};ht=function(a){this.f=a;this.a=null;this.g=new _.L("clpp.utils.LicenseKey")};
361
- it=function(a){if(!a.a){var b=a.f.split(".");if(3!==b.length)throw Error("Expected to find 3 data sections in JWT raw data");b=new et(b[0],b[1],b[2]);a.a=b}return a.a};
362
- jt=function(a){var b,c,d;return _.I(function(e){if(1==e.a)return b=it(a),_.F(e,2),_.x(e,gt(b),4);if(2!=e.a)return _.G(e,0);if((c=_.H(e))&&c.code===yg)throw c;d=new _.bk(window.location.href);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(d.a.hostname))return e["return"]();throw c;})};
363
- kt=function(a){switch((a.ea[0]||{src:"",type:""}).type){case _.Jc:a="dash";break;case _.Pc:a="ss";break;case _.Um:a="hls";break;case _.Og:a="mp4";break;default:a=""}return a};lt=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};mt=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};nt=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};
364
- pt=function(a){var b=a.configuration,c="no";b.drm&&!_.N.va(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(ee)||ot(a).endsWith("drmtoday.com"))&&(c=ee);return c};qt=function(a){a=a.drmInfo;var b="";if(a)switch(a.keySystem){case _.Jd:b="wv";break;case _.Hd:b="pr";break;case _.Fd:b="fps"}return b};rt=function(a){a=a.drmInfo;var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};
365
- st=function(a){a=a.drmInfo;var b="";if(a)switch(a.videoRobustness){case Ta:case Ra:b="L1";break;case Sa:b="L2";break;case _.Bb:case _.Ab:b="L3"}return b};ot=function(a){return(a=(a=a.drmInfo)&&a.licenseServerUri||"")?(new _.bk(a)).a.hostname:""};
366
- wt=function(a,b){var c=b.configuration,d=_.jh(Array.from(_.yn.keys())).concat(_.jh(b.Dj)),e={"CL-KEY":a.f,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ja,"CL-USER-ID":lt(c),"CL-ASSET-ID":mt(c),"CL-SESSION-ID":nt(c),"CL-PLAYBACK-TYPE":b.isLive?tt:ut,"CL-CONTENT-TYPE":kt(b),"CL-PLUGINS":d.join(" "),"CL-DRM":pt(b),"CL-DRM-CDM":qt(b),"CL-DRM-SEC-LEVEL":st(b),"CL-DRM-OFFLINE":rt(b),"CL-DRM-IP":ot(b)};vt&&vt.companionSdk&&(vt.companionSdk.name&&(e["CL-COMPANION-SDK"]=vt.companionSdk.name),vt.companionSdk.version&&
367
- (e["CL-COMPANION-SDK-VERSION"]=vt.companionSdk.version));d=_.Tk(["https://downloads.castlabs.com/r/register/"]);d.method="GET";d.headers=e;e=new _.Tl;Ul(e,{forceXhr:c.forceXhr});return e.fetch(d).U["catch"](function(f){a:{var g=it(a);f=f.data;var k=f.status;if(g.a&&g.a.ilv)f=Promise.resolve();else{switch(k){case 403:case 404:g=7101;var l="Castlabs Player license is invalid";if(403===k){k=l;l="";try{l=JSON.parse(decodeURIComponent(f.responseText)).message}catch(m){}f=k+(": "+l)}else f=l+"!";l=f;break;
368
- case 412:g=7103;l="License requires a viewer ID. It should be supplied either via the `viewerId` config or in case of DRMtoday via the `drm.customData.userID` config.";break;default:f=Promise.resolve();break a}a.g.error($a+l);f=Promise.reject(new _.O(_.Q,7,g,l))}}return f})};yt=function(a){this.m=a;this.f=a.getNetworkEngine();this.h=xt(this);this.f.ee(this.h);this.a=null};
369
- xt=function(a){return function(b){var c=b.headers,d=b=null,e=_.N.Hi(c,"cmsd-dynamic");c=_.N.Hi(c,"cmsd-static");e&&(b=zt(e),a.a=b);if(c)try{e={};var f=c.split(",");for(c=0;c<f.length;c++){var g=At(f[c]),k=g.key,l=g.value;Object.keys(Bt).includes(k)&&(e[Bt[k]]=l)}d=_.N.Yb(e)?e:null}catch(m){Ct.error("CmsdManager parseCmsdStaticHeader_ failed:",m),d=null}(b||d)&&a.m.trigger(new _.R("cmsd-event",{Wp:b,kq:d}))}};
370
- zt=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=At(c[e]),g=f.key;f=f.value;Object.keys(Dt).includes(g)&&(d[Dt[g]]=f)}return d}).filter(function(c){return _.N.Yb(c)});return 0<b.length?b:null}catch(c){return Ct.error("CmsdManager parseCmsdDynamicHeader_ failed:",c),null}};
371
- At=function(a){var b=a.split("\x3d"),c=b[0];b=b[1];if(!c)throw new _.hi("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 _.hi("Parsing CMSD, not recognized value type of "+a);};
372
- _.X=function(a,b,c){_.kn.call(this);var d=this;bt();this.g=new _.L("clpp.Player");this.g.info("SDK version: 6.34.0-beta.1");if(!a)throw new _.O(_.Q,7,7102);this.na=new _.ki;this.on(_.tf,function(f){if(f=f.detail){f={currentState:_.Dq(f.currentState),previousState:_.Dq(f.previousState),timeSinceLastStateChangeMS:f.timeSinceLastStateChangeMS,reason:f.reason};var g=_.S.Uc,k=g(f.previousState,Et),l=g(f.currentState,Et);g=null==f.reason?"":" ["+g(f.reason,ej)+"]";d.g.info("Player state change: "+k+" -\x3e "+
373
- l+g);d.trigger(new _.R(dg,{detail:f}))}});this.f=this.G=b||_.rn();this.l=null;void 0===this.f.license&&(this.f.license=on,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(_.Q,7,7101,"No license provided in configuration!");this.j=new sr(a,c);this.H=this.B=this.a=this.K=null;this.A=new _.Tl;Ul(this.A,this.f);this.h=null;this.ha=[];this.M={};this.Aa=null;
374
- this.I=!0;this.X=this.W=!1;this.P=this.Gd=null;this.Kg=!1;this.Fa=new Ws(this);this.D=null;this.on(dg,function(){3===d.getPlayerState()&&(d.a?d.a.unload():Promise.resolve())});this.on(_.Fc,function(){d.Kg=!0});this.on(_.Ec,function(){d.Kg=!1});this.on(_.tg,function(){return Ft(d)});Gt(this,this.f.license);(a=this.j.getMedia())&&a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),this.g.warn("The autoplay attribute on the video element is not supported. Use the autoplay option in player configuration instead."));
375
- a=[];b=_.v(Ht);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)}}this.$i(a);this.T=_.ta;En(this)};_.It=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.B=null),b&&(b.init(a.j,a.G),b.setNetworkEngine(a.getNetworkEngine()),b.forwardEventsTo(a),a.a=b,a.B=c))};
376
- Gt=function(a,b){a.K=new ht(b);jt(a.K)["catch"](function(c){setTimeout(function(){a.g.error($a+c);a.trigger(new _.R(_.le,{detail:new _.O(_.Q,7,7101)}));a.destroy()},1E3)})};
377
- Jt=function(a,b){var c,d;_.I(function(e){if(1==e.a)return a.j.getMedia()||a.j.getCastElement(),a.K||(a.K=new ht(a.f.license)),_.F(e,2),a.g.debug("Verifying license remotely"),_.x(e,wt(a.K,b),4);if(2!=e.a)return a.g.debug("License verified remotely"),_.G(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(dt,1E3,d,c);_.z(e)})};
378
- Kt=function(a){var b,c;return _.I(function(d){switch(d.a){case 1:if(a.I)return a.g.debug("The player is already released. No-op"),d["return"]();a.na.off(document,_.Sg);a.trigger(new _.R(_.Mf));a.j&&a.j.release();if(!a.h){d.C(2);break}return _.x(d,a.h.Ac(),3);case 3:a.h=null;case 2:if(!a.D){d.C(4);break}return _.x(d,a.D.release(),5);case 5:a.D=null;case 4:if(!a.a)return a.trigger(new _.R(Lf)),a.I=!0,d["return"]();b=null;c=a.a.on(_.tf,function(e){b=e});xh(d,6);return _.x(d,a.hd(_.Ye),8);case 8:return a.a.stopForwardingEventsTo(a),
379
- _.x(d,Promise.all([a.a.release(),a.A.release()]),9);case 9:a.g.debug("Releasing player completed"),b&&(a.g.debug("Re-post player state change event after release"),a.trigger(b)),a.trigger(new _.R(Lf)),a.I=!0;case 6:_.yh(d),a.a.off(_.tf,c),_.zh(d)}})};
380
- Mt=function(a,b,c){if(a.T===_.ob)b=Lt(b,c);else if(2!==(a.a?a.a.canPlay(b[0],c):0)||a.X){a.X=!1;if(b){for(var d=a=null,e=0;e<b.length;e++);e=Object.values(_.Sh);for(var f=0;f<b.length;f++)for(var g=0;g<e.length;g++){var k={xb:e[g],confidence:e[g].canPlay(b[f],c)};if(null===a||a.confidence<k.confidence)a=k,d=f}a&&typeof d===_.h&&0<a.confidence?(_.Th.debug("Player Factory '"+a.xb.a()+"' can play",b[d]),b=new Rh(a.xb,d)):(_.Th.debug("No compatible Player Factory found for sources:",b),b=null)}else b=
381
- null;if(!b)throw new _.O(_.Q,7,7003,"No player factory compatible with given sources found!");c=b.xb;a=c.create();b={xb:c,player:a,sourceIndex:b.sourceIndex}}else b={xb:a.B,player:a.a,sourceIndex:0};return b};Lt=function(a,b){var c=Vh(function(d){return d.f(_.ob)&&a.every(function(e){return 2===d.canPlay(e,b)})});if(!c)throw new _.O(_.Q,7,7003,"No compatible player implementing playlist mode found!");return{xb:c,player:c.create(),sourceIndex:0}};
382
- Ot=function(a){var b;return _.I(function(c){if(1==c.a){if(!a.a)return a.g.warn(rb),c["return"]();b=a.a;if(!b.Wh)return a.g.warn(ub),c["return"]();a.trigger(new _.R(Ge));return _.x(c,b.Wh(),2)}return _.x(c,_.Nt(a),0)})};
383
- _.St=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a){if(a.W)throw new _.O(_.Q,7,7E3,"Player is already destroyed.");if(!a.j)throw new _.O(_.Q,7,7E3,"No surface associated with this player!");_.up(of);return _.x(f,a.release(),2)}if(3!=f.a){d=c||_.Oq(b);if(!b||0===d.length)throw new _.O(_.Q,7,7003,jb);a.Aa=d;a.f=_.tn([a.G,b,{source:d}]);Ul(a.A,a.f);a.I=!1;e=Mt(a,d,a.f);_.It(a,e.player,e.xb);Pt(a,a.a);a.a&&a.a.setSourceIndex(e.sourceIndex);Qt(a);a.a&&a.a.setCdnErrorCallback(a.P);_.Rt(a,a.f);
384
- a.f.cmsd.enabled&&(a.D=new yt(a),a.a.setCmsdManager(a.D));if(a.f.pauseWhenInBackground)a.na.on(document,_.Sg,function(){document.hidden?(a.g.debug("Player is hidden: pausing..."),a.pause()):(a.g.debug("Player is visible: resuming..."),a.play())});_.Gn(a.f.drm);Fn(a);return _.x(f,a.hd("onContentWillLoad",a.f.source[e.sourceIndex]),3)}_.up(nf);_.wp("player.beforeLoad",of,nf);_.z(f)})};
385
- _.Tt=function(a){return _.I(function(b){a.j.getMedia()||a.j.getCastElement();a.trigger(new _.R(Ge));return _.x(b,Promise.all([a.a.load(a.f),a.h?a.h.load():Promise.resolve()]),0)})};Pt=function(a,b){try{var c=crypto.randomUUID()}catch(d){c=Us()}a.g.info("Playback session started, ID:",c);b.setPlaybackSessionId(c);a.H=c};Ut=function(a){a.H&&(a.g.info("Playback session ended, ID:",a.H),a.H=null,a.a&&a.a.setPlaybackSessionId(null))};
386
- Wt=function(a){var b,c,d,e;_.I(function(f){if(1==f.a){b=[];if(a.f.remoteTextTracks)for(c=_.v(a.f.remoteTextTracks),d=c.next();!d.done;d=c.next())e=d.value,b.push(a.getTrackManager().addTextTrack(e));return _.x(f,Promise.all(b),2)}Vt(a);_.z(f)})};
387
- Vt=function(a){var b=_.Ej(a.f.preferredTextLanguage).filter(function(f){return f}),c=a.f.preferForcedSubtitles,d=a.getTrackManager().ra().filter(function(f){return c?f.kind===_.ne:f.kind!==_.ne});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().qa();e&&e.language?(e=_.Hk(e.language||""),b.push(e)):(e=a.getTrackManager().Qa())&&e.language&&(e=_.Hk(e.language||""),b.push(e));0===
388
- 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=_.Hk(f);if(f=d.find(function(k){k=_.Hk(k.language||"");return _.Ik(k,g)}))return a.getTrackManager().jb(f),!0;c&&a.g.warn("Forced subtitles are configured to be preferred, but no forced subtitles match the preferred languages: ",b);return!1})}};
389
- _.Nt=function(a){var b;return _.I(function(c){if(1==c.a)return _.up(kf),Jt(a,{configuration:a.getConfiguration(),ea:a.Ki(),drmInfo:a.getDrmInfo(),Dj:Object.keys(a.M),isLive:a.isLive()}),Wt(a),Hn(a),_.x(c,a.hd(_.Ve),2);if(3!=c.a)return a.f.autoplay?(b=a.h?a.h.Pc():!0)?_.x(c,a.play(),3):c.C(3):c.C(3);_.up(jf);_.wp("player.afterLoad",kf,jf);_.z(c)})};_.Rt=function(a,b){var c=b||a.f,d=dr(a,c);d&&(d=d.create(a),Xt(a,d,c))};Xt=function(a,b,c){a.h=b;b.Oa(null==c.volume?1:c.volume);b.setMuted(c.muted||!1)};
390
- Ft=function(a){if(!a.h&&a.B&&a.a&&a.f.ads.hls.enable&&a.getTimelineCues().some(function(c){return wk(c.schemeIdUri)})){var b=new Ts;b.Sc(a.a,a.B,a.f.mse.sendPlaybackSessionIdHeader?a.H:null);Xt(a,b,a.f)}};Qt=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.I(function(c){return a.Kg&&a.Gd?_.x(c,a.Gd(b),0):c["return"]()})})};_.Yt=function(a){a&&(0<=Ht.indexOf(a)||Ht.push(a))};
391
- Zt=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.G=_.N.ta(this.G,a);this.f=_.N.ta(this.f,a);this.J=0;this.o=[];this.ba=!1;this.w=null;this.L=[]};$t=function(a){a.L.forEach(function(b){return b()});a.L=[]};
392
- au=function(a,b){function c(f){a.J=a.o.findIndex(function(g){return g.id===f.id})}a.addEventListener(_.Sf,c);a.L.push(function(){a.removeEventListener(_.Sf,c)});if(b.endTime){var d=b.endTime,e=function(){a.getPosition()>=d&&(a.removeEventListener(_.ug,e),a.g.info("Playlist end time reached. Stopping playback."),a.trigger(new _.R(_.Rf)),a.pause())};a.addEventListener(_.ug,e);a.L.push(function(){a.removeEventListener(_.ug,e)})}};
393
- du=function(a,b){var c,d;return _.I(function(e){switch(e.a){case 1:return _.F(e,2),_.up(sf),a.T=_.ob,c=b.slice(1).map(function(f){return{config:f,ea:_.Oq(f)}}),_.x(e,_.St(a,b[0]),4);case 4:return c.forEach(function(f){bu(a,f.config,f.ea)}),a.trigger(new _.R(Ge)),_.x(e,a.a.setupPlaylist(b),5);case 5:return _.x(e,_.Nt(a),6);case 6:c.forEach(function(f){cu(a,f.config,f.ea)});_.up(rf);_.wp("player.setupPlaylist",sf,rf);_.G(e,0);break;case 2:d=_.H(e);if(a.l)throw a.g.info(ab),new _.O(_.Q,7,7E3);throw d;
394
- }})};eu=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.F(e,2),_.up(mf),c=_.Oq(b),bu(a,b,c),_.x(e,a.a.appendLoad(b),4);if(2!=e.a)return cu(a,b,c),_.up(lf),_.wp("player.appendLoad",mf,lf),_.G(e,0);d=_.H(e);if(a.l)throw a.g.info(ab),new _.O(_.Q,7,7E3,{id:b.id});throw d;})};cu=function(a,b,c){Jt(a,{configuration:b,ea:c,drmInfo:a.getDrmInfo(),Dj:Object.keys(a.M),isLive:c[0].isLive})};
395
- bu=function(a,b,c){if(0===c.length)throw new _.O(_.Q,7,7003,{message:jb,id:b.id});if(1<c.length)throw new _.O(_.Q,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(_.Q,7,7003,{message:"Source not supported by the current player!",id:b.id,source:c[0]});};
396
- hu=function(a){_.kn.call(this);var b=this;this.j=_.N.ta({transition:_.df,preloadMedia:!1},a);this.h=[];this.a=0;var c=fu(a.anchorId,this.j.config);this.w=new hr(c);this.f=null;this.l=!1;this.o=new Map;this.A=a.toggleVisible;this.g=new _.L(Ad);this.w.a.forEach(function(d){return gu(b,d.player,!1)})};ju=function(a){return Promise.all(Array.from(a.o.keys()).map(function(b){return iu(a,b)}))};
397
- iu=function(a,b){var c;return _.I(function(d){if(1==d.a){c=a.o.get(b);if(!c)return d.C(0);a.g.info("Stop preloading item (index: "+b+")");return c.player?_.x(d,ku(a,c),3):d.C(3)}a.o["delete"](b);_.z(d)})};mu=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Stop current playback (index: "+b.index+")"),b.player.pause(),gu(a,b.player,!1),_.x(c,ku(a,b),2);b.player=null;b.videoEl=null;b.role=lu;_.z(c)})};
398
- ku=function(a,b){return _.I(function(c){b.disposers.forEach(function(d){return d()});b.disposers=[];return b.player?_.x(c,a.w.release(b.player),0):c.C(0)})};pu=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.x(d,a.w.get(),2);if(3!=d.a)return c=d.f,a.f=b,b.role=nu,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),gu(a,c,!0),_.x(d,c.open(b.config),3);ou(a,b);return b.config.autoplay?d.C(0):_.x(d,c.play(),0)})};
399
- qu=function(a,b){return _.I(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==Cf){c.C(2);break}a.g.info(Ub);_.F(c,3);return _.x(c,b.preloadPromise,5);case 5:_.G(c,2);break;case 3:_.H(c);case 2:a.f=b;b.role=nu;gu(a,b.player,!0);if(b.state===Bf)return _.up(yf),a.j.preloadMedia?_.x(c,b.player.play(),11):_.x(c,Ot(b.player),11);if(b.state!==Af){c.C(7);break}return _.x(c,b.player.open(b.config),7);case 11:_.up(xf),_.wp("playlist.next",yf,xf);case 7:if(ou(a,b),b.config.autoplay)c.C(0);
400
- else return _.x(c,b.player.play(),0)}})};ou=function(a,b){if(a.j.autoplayNext){var c=function(){a.g.info("Automatically transition to next item");a.Bj()};b.player.on(_.ke,c);var d=b.player;b.disposers.push(function(){d.off(_.ke,c)})}};su=function(a){var b;return _.I(function(c){b=a.a+1;a.g.info("Preload following item (index: "+b+")");return _.x(c,ru(a,b),0)})};tu=function(a){var b;return _.I(function(c){b=a.a-1;a.g.info("Preload preceding item (index: "+b+")");return _.x(c,ru(a,b),0)})};
401
- uu=function(a){var b;_.I(function(c){if(0===a.a)return _.x(c,su(a),0);if(a.a===a.h.length-1)return _.x(c,tu(a),0);b=[a.a-1,a.a+1];a.g.info("Preload items (indices: "+b+")");return _.x(c,Promise.all(b.map(function(d){return ru(a,d)})),0)})};
402
- ru=function(a,b){var c,d,e;return _.I(function(f){switch(f.a){case 1:return _.x(f,a.w.get(),2);case 2:return c=f.f,d=a.h[b],d.player=c,d.videoEl=c.getSurface().getMedia(),d.role=lu,d.state=Cf,a.trigger(new _.R(Bg)),_.F(f,3),a.o.set(b,d),a.j.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.open(d.config)):d.preloadPromise=c.preload(d.config),_.x(f,d.preloadPromise,5);case 5:d.state=
403
- Bf;a.trigger(new _.R(Bg));_.G(f,0);break;case 3:e=_.H(f),7001===e.code?(a.g.info("Preload aborted (index: "+b+")"),d.state=zf):(a.g.warn("Preload failed (index: "+b+")",e),a.trigger(new _.R(_.le,{detail:e})),d.state=Af),a.trigger(new _.R(Bg)),_.z(f)}})};gu=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.info(Fb+b),d.classList.add(ud)):(a.g.info(Va+b),d.classList.remove(ud)),a.A&&a.A(d,c))};
404
- vu=function(a){var b;return _.I(function(c){if(1==c.a)return _.x(c,a.w.destroy(),2);b=document.getElementById(a.j.anchorId);if(!b)return c["return"]();b.classList.remove(td);b.innerHTML="";_.z(c)})};
405
- fu=function(a,b){var c=document.getElementById(a);if(!c)throw Error("Anchor element not found");c.classList.add(td);return Array.from({length:3}).map(function(){var d=document.createElement(_.Lg);d.classList.add("clpp-mc-playlist-video-el");var e=document.createElement(_.Sd);e.classList.add("clpp-mc-playlist-item");e.appendChild(d);c.appendChild(e);return new _.X(d,b)})};
406
- _.xu=function(a){if(wu.has(a))return wu.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);wu.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),wu.set(a,b),b):!1};yu=function(a){this.h=a;this.f={keepOriginalTimestamps:!0,remux:!1};this.a=new muxjs.mp4.Transmuxer(this.f)};
407
- zu=function(a,b){var c=b.replace(/mp2t/i,"mp4");a===_.Rc&&(c=c.replace(_.Lg,_.Rc));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};Au=function(){};_.Bu=function(){};_.Cu=function(a){this.J=a;this.f={}};
408
- _.bl=function(a,b){var c={},d=b?b.widevineVideoRobustness:void 0,e=b?b.widevineAudioRobustness:void 0,f=b?b.serverCertificate:void 0,g=a.f[_.Jd];g&&(c[_.Jd]={licenseUrl:g.licenseUrl,videoRobustness:Zj(d,g.videoRobustness),audioRobustness:Zj(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:Yj(b?b.widevineDistinctiveIdentifierRequired:void 0,g.distinctiveIdentifierRequired,!1),persistentStateRequired:Yj(b?b.widevinePersistentStateRequired:void 0,g.persistentStateRequired,!1),
409
- serverCertificate:_.Du(f,g.serverCertificate)});(g=a.f[_.Fd])&&(c[_.Fd]={licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.f[_.Hd])&&(c[_.Hd]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});return c};
410
- _.Du=function(a,b){return void 0===a?b:null===a?null:typeof a===_.gg?_.wo(a):a};Hu=function(a,b){var c=oo(b);switch(a){case _.Jd:return c+Eu;case _.Hd:return c+Fu;case _.Fd:return c+Gu;default:throw new _.hi("Cannot infer DRMtoday license URL for key system: "+a);}};
411
- _.Iu=function(a,b,c){b=io(b);b=new _.ck(_.po(b));var d=_.fk(b.f);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.S.Of(""+a)&&(d.assetId=a,_.to.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.S.Of(""+e)&&(d.variantId=e,_.to.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],_.to.debug("KeyId found in FPS SKD. Removing other parameters")):a=["assetId","variantId"];
412
- b.f=_.ek(d,!1,a);"/"!==b.path||b.j.includes(b.a+"/")||(b.path="");b=_.dk(b);return(c&&c.customData?c.customData:{}).fpsContentId=b};_.Ku=function(a,b,c,d){d=void 0===d?!0:d;c=a.drm;c?c.customData&&(_.qo(b,a),a=a.drm,(void 0===d||d)&&a&&a.customData&&(c=a.customData.assetId))&&(d=b.uris[0],d+="?assetId\x3d"+encodeURIComponent(""+c),(a=a.customData.variantId)&&(d+="\x26variantId\x3d"+encodeURIComponent(""+a)),b.uris[0]=d):_.Ju.warn(hb)};
413
- Lu=function(a,b,c){_.Ku(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.bk(b.uris[0]);c.a.searchParams.set(_.ef,a.toString());b.uris[0]=c.toString()};Mu=function(a,b,c){_.Ku(a,b,c,!1);b.headers[_.Da]=_.Qc;a={spc:_.El(b.body)};b.body=_.S.kd(_.ek(a,!0))};_.Nu=function(a,b){if(200===b.status){var c=_.S.ga(b.data).trim();c.startsWith("\x3cckc\x3e")&&c.endsWith("\x3c/ckc\x3e")&&(c=c.slice(5,-6));c=_.Gl(c).buffer;b.data=c}};
414
- Ou=function(a,b){var c=a.drm;if(!c)_.Ju.warn(hb);else if(c.customData&&c.customData.merchant){var d=new _.bk(b.uris[0]),e=d.a.pathname;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.a.pathname=e;b.uris[0]=d.toString()}};
415
- _.Pu=function(a,b){try{var c=_.Vi(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));_.to.debug("Widevine License response",d);var e=atob(d.license),f=new Uint8Array(e.length);for(c=0;c<e.length;++c)f[c]=e.charCodeAt(c);var g=f.buffer}catch(k){_.to.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data"),g=null}g&&(b.data=g)};Qu=function(){};
416
- Vu=function(a){switch(a){case "DRMtoday":return Ru;case "DRMtoday_STAGING":return Su;case "DRMtoday_DEMO":return Tu;case "DRMtoday_TEST":return Uu;default:return null}};Wu=function(){};
417
- Xu=function(a,b,c,d,e){_.Cu.call(this,Ua);this.l=a;this.j=b;this.h=c;this.a=d;this.o=e;this.g=new _.L(xd);_.S.empty(this.l)?this.g.warn(_.Wb):this.qb(_.Jd,{licenseUrl:this.l,videoRobustness:[_.Bb,void 0],audioRobustness:[_.Ab,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.Qe.bind(this)}});_.S.empty(this.j)?this.g.warn(_.qb):this.qb(_.Hd,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.Qe.bind(this)}});
418
- _.S.empty(this.h)?this.g.warn(_.Pa):_.S.empty(this.a)?this.g.warn(_.Oa):this.qb(_.Fd,{licenseUrl:this.h,certificateUrl:this.a,modifiers:{licenseRequest:this.jj.bind(this),licenseResponse:this.kj.bind(this),certificateRequest:this.Qe.bind(this),extractContentId:this.ri.bind(this)}})};Yu=function(){};Zu=function(a){var b=new Event(a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase(),a);a.target.dispatchEvent(b)};
419
- $u=function(a){a=a.target;if(a.webkitPresentationMode===gf){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)};av=function(){return this.webkitSupportsPresentationMode(gf)?(this.webkitSetPresentationMode(gf),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
420
- bv=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};cv=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};dv=function(a,b,c){return new window.TextTrackCue(a,b,c)};
421
- ev=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};_.fv=function(a){var b=[];a=_.v(a);for(var c=a.next();!c.done;c=a.next()){c=_.v(c.value.variants);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};_.gv=function(a,b,c){this.h=a;this.j=b;this.f=c||this.h.getMedia();this.a=null};_.iv=function(){this.a=new Blob([hv],{type:_.Og})};_.kv=function(a,b){var c=_.Em(_.Fm(a),_.Gm(a));_.jv[c]=b};_.lv=function(a){a=_.Em(_.Fm(a),_.Gm(a));return _.jv[a]||null};
422
- _.mv=function(a){a=_.Em(_.Fm(a),_.Gm(a));delete _.jv[a]};
423
- _.nv=function(a){a=a.getConfiguration();a=_.N.wb(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.gg?a.backgroundColor:null;this.T=typeof a.windowColor===_.gg?a.windowColor:null;this.M=typeof a.fontColor===_.gg?a.fontColor:null;this.P=typeof a.fontFamily===_.gg?a.fontFamily:null;this.I=typeof a.fontSize===_.gg?a.fontSize:null;this.B=typeof a.fontSizePercent===_.h?a.fontSizePercent:null;this.H=typeof a.edgeColor===_.gg?a.edgeColor:"rgba(0, 0, 0, 1)";this.o=null;typeof a.edgeType===
424
- _.gg&&(this.o=a.edgeType)};_.sv=function(a){if(!a.o)return null;var b=a.H;switch(a.o){case ov:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case pv:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case qv:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case rv:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.Re}};
425
- _.vv=function(a){_.nv.call(this,a);this.l=a.getSurface().getMedia();this.f="clpp-video-"+uv++;this.h=document.createElement(_.ig);this.j=this.w=!1;_.jr(this.l,this.f);document.head.appendChild(this.h);this.ec()};Bv=function(){};Jv=function(a){this.f=a;this.a=null;this.g=new _.L("clpp.text.Mp4TextParser")};_.Kv=function(a,b,c,d){this.id=a;this.f=b;this.a=c;this.h=d};_.Lv=function(){this.a=[];this.f=-1;this.h=null};
426
- _.Nv=function(a,b,c,d){var e,f;return _.I(function(g){if(1==g.a)return _.F(g,2),_.x(g,Mv(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.H(g);f.a(_.Q);throw f;})};
427
- Mv=function(a,b,c,d){var e,f,g,k;return _.I(function(l){if(1==l.a){if(d){if(e=_.Ov[d.toLowerCase()])return l["return"](e);_.Kh("Could not determine manifest type using MIME type ",d)}if(f=_.hk(a)){if(g=_.Pv[f])return l["return"](g);_.Kh("Could not determine manifest type for extension ",f)}else _.Kh("Could not find extension for ",a);return d?l.C(2):_.x(l,Qv(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(k=_.Ov[d])return l["return"](k);_.Kh("Could not determine manifest type using MIME type",d)}throw new _.O(_.Q,
428
- 4,4E3,{url:a});})};Qv=function(a,b,c){var d,e,f;return _.I(function(g){if(1==g.a)return d=_.Tk(a),Pk(d,c),d.type=1,d.method="HEAD",_.x(g,b.fetch(d).U,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.Rv=function(){};_.gh=[];kh=typeof Object.create==_.pe?Object.create:function(a){function b(){}b.prototype=a;return new b};
429
- if(typeof Object.setPrototypeOf==_.pe)Sv=Object.setPrototypeOf;else{var Tv;a:{var Uv={kk:!0},Vv={};try{Vv.__proto__=Uv;Tv=Vv.kk;break a}catch(a){}Tv=!1}Sv=Tv?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
430
- var lh=Sv,mh="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,nh=typeof Object.defineProperties==_.pe?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};
294
+ 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=_.v(f);for(g=f.next();!g.done;g=f.next())g=g.value,c.classList.remove(g),_.qr(e,g);e.style.cssText=c.style.cssText;c.removeAttribute(_.jg);f=_.v([_.ah,_.qe]);for(g=f.next();!g.done;g=f.next()){g=g.value;var k=c.getAttribute(g);k=parseInt(k,10);isNaN(k)||(e.style[g]=k+_.Kf);_.si()||c.removeAttribute(g)}e.appendChild(c)}e&&
295
+ (this.a.set(e),ur(this.a,"clpp-container"),ur(this.a,this.o),ur(this.f,_.qd),ur(this.f,"clpp-video"));d.webOSStartupPatch&&yr(this,c,e)}};yr=function(a,b,c){b.hasAttribute(Ld)||(b.style.opacity="0",b.setAttribute(Ld,""),a.j.one(b,fe,function(){b.removeAttribute(Ld);b.style.opacity="1";c&&(c.style.opacity="1")}))};
296
+ Er=function(a){var b=this;this.j=a;this.w=!!a.sideAdContainer;this.l=[];this.a=a.Fj;this.H=Ar(a);this.D=[];var c=Br(this,this.H,this.j.Zl);this.A=new or(c);this.f=null;this.B=!1;this.o=new Map;this.I=a.toggleVisible;this.g=new _.L("clpp.interstitial.MultiController");this.h=this.G=!1;this.J=a.bo||function(){};Cr(this).forEach(function(d){return Dr(b,d,!1)})};
297
+ Ir=function(a,b){var c,d,e,f,g,k,l,m,n,p,q,t,u;return _.I(function(y){if(1==y.a){a.g.info("Crop ads by playout limit",b);c=Fr(a);d=a.getCurrentItem();if(!c||!d||!d.Wa||null==c.V)return y["return"]();e=a.l.filter(function(A){return!A.primary});f=Math.max.apply(Math,_.jh(e.map(function(A){return A.Fb})));if(b>f)return a.g.info("Playout limit is greater than ad pod duration, ignored."),y["return"]();g=d.player.getPosition()+(d.Fb-d.duration);k=e.sort(function(A,D){return D.Fb-A.Fb})[0];l=c.V;m=b<=g;
298
+ if(!m)return y.C(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 _.x(y,Gr(a,c.id,_.jf),3)}if(2!=y.a)return k.Ja&&k.Ja(),p=d.Wa,a.a.trigger(new _.R(_.zc,{ad:p})),a.a.trigger(new _.R(_.kc,{ad:p})),a.a.trigger(new _.R(_.hc,{id:d.kc})),y["return"]();a.g.warn("Limiting playout of ads to",b);q=e.find(function(A){return b<=A.Fb&&b>=A.Fb-A.duration});if(!q)return a.g.warn("Cannot find ad hit by limit"),y["return"]();
299
+ t=b-(q.Fb-q.duration);q.Wa.h=t;u=f-b;c.V-=u;a.g.info("Last ad is now ",q.Wa.ob(),"with cropped duration",t,"and primary will resume at",c.V.toFixed(1),"instead of",l.toFixed(1));k.Ja&&(q.Ja=k.Ja);q.transition={Sf:{position:t,itemId:c.id,V:c.V}};Hr(a,q);_.z(y)})};Kr=function(a){var b;return _.I(function(c){if(1==c.a)return(b=a.f)?"loaded"===b.state?c.C(2):_.x(c,b.Sd,2):c["return"]();if(4!=c.a)return _.x(c,b.player.play(),4);b.state=_.vf;Jr(b);_.z(c)})};
300
+ Lr=function(a,b){a.g.info("Add items",b);a.l=a.l.concat(b.map(function(c){return Object.assign({},c,{state:"idle",disposers:[],preloadPromise:Promise.resolve(),Sd:Promise.resolve()})}))};Nr=function(a){return _.I(function(b){return _.x(b,Mr(a,a.l.map(function(c){return c.id})),0)})};
301
+ Mr=function(a,b){var c,d,e,f,g;return _.I(function(k){a.g.info("Remove items",b);c=[];d=[];e=_.v(a.l);for(f=e.next();!f.done;f=e.next())g=f.value,b.includes(g.id)?d.push(g):c.push(g);a.l=c;return _.x(k,Promise.all(d.map(function(l){l.disposers.forEach(function(m){return m()});l.disposers=[];return Or(a,l.id)})),0)})};Qr=function(a){var b;return _.I(function(c){b=a.l.filter(function(d){return!d.primary}).map(function(d){return d.id});Pr(a);return _.x(c,Mr(a,b),0)})};
302
+ Rr=function(a){var b,c;_.I(function(d){b=a.getCurrentItem();c=b.next[0];if(!(b&&b.primary&&c))return d.C(0);Pr(a);return _.x(d,a.play(c),0)})};Pr=function(a){var b=Fr(a);b&&(b.transition=void 0,b.next=[],Sr(a))};
303
+ Gr=function(a,b,c){var d,e,f,g,k,l;return _.I(function(m){switch(m.a){case 1:if(a.B)return a.g.warn("Cannot "+c+" item while busy (ID: "+b+")"),m["return"]();d=Tr(a,b);if(!d)return a.g.warn("Item not found (ID: "+b+")"),m["return"]();a.g.info(c+" item (ID: "+b+")");a.B=!0;if(e=a.f)e.player.isPaused()||(a.w?e.primary?Ur(a,e,Vr):e.player.pause():a.a.isLive()||e.player.pause()),e.primary?Ur(a,e,Vr):Ur(a,e,Wr);(f=a.o.has(b))&&a.o["delete"](b);_.F(m,2,3);if(c===_.jf)return(g=e&&d.primary)?_.x(m,Xr(a,d),
304
+ 10):f?_.x(m,Yr(a,d),10):_.x(m,Zr(a,d),10);if(f){a.g.error("Loading preloaded items is not supported");m.C(6);break}return _.x(m,$r(a,d),6);case 10:Jr(d);case 6:Hr(a,d);d.primary?Ur(a,d,Wr):Ur(a,d,Vr);d.Wa&&as(a,d,d.Wa);if(d.Ja)d.player.one(_.ke,d.Ja);e&&bs(a,e);case 3:_.yh(m);a.B=!1;cs(a);ds(a,d.next);_.zh(m);break;case 2:k=_.H(m);a.g.error("Item failed to "+c+" (ID: "+b+")",k);if(d.primary)throw k;if(l=Fr(a))return a.g.warn("Ad failed, resuming primary item"),_.x(m,Xr(a,l),3);m.C(3)}})};
305
+ es=function(a,b,c){c=void 0===c?!1:c;if(!a.h&&!a.a.isLive()){var d=Fr(a);d?(d.V=b,c&&(a.h=!0)):a.g.error("Failed to get primary item. Cannot configure resume position.")}};Fr=function(a){return a.l.find(function(b){return!!b.primary})||null};Tr=function(a,b){return a.l.find(function(c){return c.id===b})||null};
306
+ Hr=function(a,b){var c=b.transition;if(c&&!c.Oj){if(c.Ja){var d=c.Ja,e=function(){a.g.info("Transition onEnded to (ID: "+d+")");a.play(d)};b.player.one(_.ke,e);b.disposers.push(function(){b.player.off(_.ke,e)})}c.Sf&&fs(a,b,function(){var f=a.f.Wa;f&&(b.disposers.forEach(function(g){return g()}),b.disposers=[],a.a.trigger(new _.R(_.zc,{ad:f})),a.a.trigger(new _.R(_.kc,{ad:f})),a.a.trigger(new _.R(_.hc,{id:b.kc})))});c.Oj=!0}};
307
+ fs=function(a,b,c){function d(){a.g.info("Stop timeupdate polling");b.player.off(_.ug,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?k=null:k=requestAnimationFrame(e)}function f(){var l=b.player.getPosition();.5>=g.position-l&&(a.g.info("Start RAF polling"),d(),e())}var g=b.transition.Sf,k=null;g.V&&es(a,
308
+ g.V);a.g.info("Start timeupdate polling");b.player.on(_.ug,f);b.disposers.push(function(){null!=k&&(a.g.info("Stop RAF polling"),cancelAnimationFrame(k),k=null)});b.disposers.push(d)};Sr=function(a){a.f&&(a.f.disposers.forEach(function(b){return b()}),a.f.disposers=[],a.f.transition&&(a.f.transition.Oj=!1),Hr(a,a.f))};Cr=function(a){return[a.a].concat(_.jh(a.A.a.map(function(b){return b.player})))};cs=function(a){Promise.all(Array.from(a.o.keys()).map(function(b){return Or(a,b)}))};
309
+ Ar=function(a){if(a.sideAdContainer)a=a.sideAdContainer;else if(a=a.Fj.getSurface().getContainer(),!a)throw Error("Primary player does not have a container");return a};Or=function(a,b){var c;return _.I(function(d){if(1==d.a){c=a.o.get(b);if(!c)return d.C(0);a.g.info("Stop preloading item (ID: "+b+")");return c.player?_.x(d,gs(a,c.player),3):d.C(3)}a.o["delete"](b);_.z(d)})};hs=function(a){return _.I(function(b){if(1==b.a)return a.f?_.x(b,bs(a,a.f),3):b.C(0);Dr(a,a.a,!0);_.z(b)})};
310
+ bs=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||Dr(a,c,!1),d.C(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.gh?(a.g.info("Release player (ID: "+b.id+") after delay "+(b.gh+" ms.")),_.x(d,new Promise(function(e){setTimeout(function(){return _.I(function(f){if(1==f.a)return _.x(f,gs(a,c),2);Dr(a,c,!1);a.a.trigger(new _.R("ad-hls-released"));
311
+ e();_.z(f)})},b.gh)}),0)):_.x(d,gs(a,c),5)}Dr(a,c,!1);return d.C(0)})};Zr=function(a,b){return _.I(function(c){if(1==c.a)return _.x(c,$r(a,b),2);if(3!=c.a)return _.x(c,b.player.play(),3);b.state=_.vf;_.z(c)})};$r=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.x(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(),Dr(a,c,!0),b.state="loading",b.Sd=ls(a,c,b.config,b.Re),_.x(d,b.Sd,3);b.state="loaded";_.z(d)})};
312
+ Yr=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!==Df){d.C(2);break}a.g.info(Ub);_.F(d,3);return _.x(d,b.preloadPromise,5);case 5:_.G(d,2);break;case 3:_.H(d);case 2:a.f=b;b.role=ks;Dr(a,c,!0);if(b.state===Cf)return _.x(d,c.play(),7);if(b.state!==Bf){d.C(7);break}return _.x(d,ls(a,c,b.config,b.Re),7);case 7:b.state=_.vf,_.z(d)}})};
313
+ as=function(a,b,c){function d(){a.a.trigger(new _.R(_.zc,{ad:c}));a.a.trigger(new _.R(_.kc,{ad:c}));c.f===c.a&&a.a.trigger(new _.R(_.hc,{id:b.kc}))}function e(){a.a.trigger(new _.R(_.ic,{ad:c}))}function f(){a.a.trigger(new _.R(_.vc,{ad:c}))}function g(){l.isEnded()||a.a.trigger(new _.R(_.tc,{ad:c}))}function k(){var m=l.getPosition(),n=c.getDuration();c.setPosition(m);a.a.trigger(new _.R(_.uc,{ad:c}));!c.j&&m>=n/4&&(c.j=!0,a.a.trigger(new _.R(_.lc,{ad:c})));!c.l&&m>=n/2&&(c.l=!0,a.a.trigger(new _.R(_.rc,
314
+ {ad:c})));!c.o&&m>=3*n/4&&(c.o=!0,a.a.trigger(new _.R(_.Bc,{ad:c})))}var l=b.player;l.on(_.ug,k);l.on(_.ef,g);l.on(_.vf,f);l.on(_.dd,e);l.one(_.ke,d);b.disposers.push(function(){l.off(_.ug,k);l.off(_.ef,g);l.off(_.vf,f);l.off(_.dd,e);l.off(_.ke,d)});1===c.f&&a.a.trigger(new _.R(_.gc,{id:b.kc}));c.videoEl=l.getSurface().getMedia();a.a.trigger(new _.R(_.pc,{ad:c}));a.a.trigger(new _.R(_.xc,{ad:c}))};
315
+ Xr=function(a,b){return _.I(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();a.J();if(b.state!==Df){c.C(2);break}a.g.info("Wait for seek to finish");_.F(c,3);return _.x(c,b.preloadPromise,5);case 5:_.G(c,2);break;case 3:_.H(c);case 2:a.h=!1;if(!b.V){c.C(6);break}return _.x(c,b.player.seek(b.V,!0),6);case 6:a.f=b;b.role=ks;Dr(a,b.player,!0);b.state="loading";if(a.w){Ur(a,b,Wr);if(!b.player.isPaused()){c.C(9);break}return _.x(c,b.player.play(),9)}if(!a.a.isPaused()){c.C(9);break}return _.x(c,
316
+ b.player.play(),9);case 9:b.state=_.vf,_.z(c)}})};gs=function(a,b){return _.I(function(c){return b===a.a?c.C(0):_.x(c,a.A.release(b),0)})};js=function(a,b){var c;return _.I(function(d){if(1==d.a)return b?d["return"](a.a):_.x(d,a.A.get(),2);c=d.f;if(!c)throw Error("No player available");return d["return"](c)})};
317
+ ds=function(a,b){var c;_.I(function(d){if(0===b.length)return d["return"]();a.g.info("Preload items (IDs: "+b+")");c=a.l.filter(function(e){return b.includes(e.id)})||[];return _.x(d,Promise.all(c.map(function(e){return ms(a,e)})),0)})};
318
+ ms=function(a,b){var c,d,e,f,g;return _.I(function(k){switch(k.a){case 1:if(!b.primary){k.C(2);break}b.state=Df;a.o.set(b.id,b);if(!b.V||a.w){k.C(3);break}c=b.player;a.g.info("Preparing to resume at",b.V);Ur(a,b,Vr);return _.x(k,c.seek(b.V,!0),3);case 3:return b.state=Cf,k["return"]();case 2:return d=b.id,_.x(k,js(a,!1),5);case 5:e=k.f;b.player=e;b.videoEl=e.getSurface().getMedia();b.role=is;b.state=Df;_.F(k,6);a.o.set(d,b);b.config.autoplay&&(a.g.warn("Autoplay should not be used for preloaded streams. Force disabling autoplay (ID: "+
319
+ (d+")")),b.config.autoplay=!1);if(f=a.a.getBandwidthEstimate())b.config.abr||(b.config.abr={}),b.config.abr.defaultBandwidthEstimate=f;b.preloadPromise=ls(a,e,b.config,b.Re);return _.x(k,b.preloadPromise,8);case 8:b.state=Cf;_.G(k,0);break;case 6:g=_.H(k),7001===g.code?(a.g.info("Preload aborted (ID: "+d+")"),b.state=Af):(a.g.warn("Preload failed (ID: "+d+")",g),b.state=Bf),_.z(k)}})};
320
+ Dr=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.debug(Fb+b),d.classList.add(ud),d.classList.remove("clpp-hide")):(a.g.debug(Va+b),d.classList.remove(ud),d.classList.add("clpp-hide")),a.I&&a.I(d,c))};
321
+ Br=function(a,b,c){return Array.from({length:2}).map(function(d,e){var f=document.createElement(_.Kg);b.appendChild(f);var g=a.j.xb.create();f=new zr(f);g.init(f,c);g.setSourceIndex(0);var k=f.getContainer();if(!k)throw Error("Failed to create player surface container element");k.classList.add("secondary");f.getMedia().classList.add("v-"+e);a.D.push(k);return g})};
322
+ Ur=function(a,b,c){var d=b?b.kc||null:null;a.G?(a.a.setMuted(!0),ns(a,!0)):(b.audio&&(c=b.audio),a.j.onAudioDecision&&(c=a.j.onAudioDecision(d)),c===Wr?(a.a.setMuted(!1),ns(a,!0)):c===Vr?(a.a.setMuted(!0),ns(a,!1)):a.g.warn("Audio decision not supported",c))};ns=function(a,b){a.l.filter(function(c){return!c.primary&&c.player}).forEach(function(c){return c.player.setMuted(b)})};os=function(a){a.D.forEach(function(b){return a.H.removeChild(b)});a.D=[];Dr(a,a.a,!0)};
323
+ ls=function(a,b,c,d){var e,f;return _.I(function(g){if(1==g.a)return _.x(g,b.release(),2);if(3!=g.a)return _.x(g,b.load(c),3);d&&d(b.getDuration());a.f&&a.f.player&&(e=a.f.player.getVolume(),f=null==e?1:e,b.setVolume(f),b.setMuted(a.f.player.isMuted()||!1));_.z(g)})};Jr=function(a){if(a.Wa){var b=a.player.getDuration();a.maxDuration&&(b=Math.min(b,a.maxDuration));a.Wa.h=b}a.Uf&&a.Uf()};
324
+ ys=function(a){_.qn.call(this);var b=this;this.j=_.N.ta({Go:.5},a);this.A=this.h=!1;this.g=new _.L("clpp.interstitial.Player");this.l=a.player;this.l.setSeekInterceptor(function(c,d){if(d)return!0;if(b.h)return!1;var e=ps(b);if(e)return b.g.info("Seek ignored while binding interstitial",e.ca),!1;qs(b,c);e=rs(b);var f=ss(b,c),g=ts(b,c);if(e){if(f&&f!==e)return us(b,f,c),!1;if(g&&g!==e)return vs(b,g,c),!1;if(c<e.startTime-b.j.resolutionOffsetSec)return ws(b,e),!0;if(c<e.startTime)return Sr(b.a),b.g.info("Seek inside resolution area of",
325
+ e.ca),!0;if(c<=e.endTime)return b.g.info("Seek into the scheduled interstitial",e.ca),Rr(b.a),!1;if(e.Sh)return b.g.info("Jump over a scheduled interstitial",e.ca),Qr(b.a),e.state=0,!0;b.g.info("Jump over a scheduled interstitial triggering it",e.ca);Rr(b.a);es(b.a,c,!0);return!1}return f?(us(b,f,c),!1):g&&!g.cm?(vs(b,g,c),!1):!0});this.a=new Er({Zl:this.j.config,Fj:a.player,preloadMedia:!0,xb:a.xb,sideAdContainer:this.j.sideAdContainer,onAudioDecision:this.j.onAudioDecision,bo:function(){b.g.info("Resume primary content")}});
326
+ this.o=[];this.f=[];this.w=!1;xs(this,a.player)};zs=function(a){return(a=a.a.getCurrentItem())&&!a.primary?a.player:null};
327
+ Bs=function(a){var b,c,d;_.I(function(e){var f=a.a;Lr(f,[{id:Hf,primary:!0,config:f.a.getConfiguration(),next:[],Fb:0,duration:0,kc:null}]);var g=Fr(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();Dr(f,g.player,!0);b=a.l;c=b.getConfiguration();d=!c.autoplay;a.w=As(a,d,b.isLive(),!1);if(a.w){f=a.a;g=f.A;if(g=g.a[0]?g.a[0].player:null)f.w||Dr(f,f.a,!1),Dr(f,g,!0);return e.C(0)}return c.autoplay?_.x(e,Kr(a.a),0):e.C(0)})};
328
+ qs=function(a,b){var c=a.l.getPosition();b>=c||a.f.filter(function(d){return d.Ud===_.Ek&&!d.once&&d.ej&&d.startTime>b}).forEach(function(d){d.Ah=!0})};rs=function(a){return a.f.find(function(b){return 4===b.state})||null};ps=function(a){return a.f.find(function(b){return 1===b.state})||null};ws=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Unschedule interstitial",b.ca),_.x(c,Qr(a.a),2);b.state=0;_.z(c)})};
329
+ us=function(a,b,c){var d;_.I(function(e){switch(e.a){case 1:a.h=!0;_.F(e,2,3);d=rs(a);if(!d){e.C(5);break}return _.x(e,ws(a,d),5);case 5:return a.g.info("Seek into interstitial",b.ca),_.x(e,Cs(a,b),3);case 3:_.yh(e);a.h=!1;_.zh(e);break;case 2:return _.H(e),_.x(e,a.l.seek(c),3)}})};
330
+ vs=function(a,b,c){var d,e;_.I(function(f){switch(f.a){case 1:a.h=!0;_.F(f,2,3);d=rs(a);if(!d){f.C(5);break}return _.x(f,ws(a,d),5);case 5:return a.g.info("Play jumped interstitial",b.ca,"resume at",c.toFixed(2)),_.x(f,Cs(a,b,c),3);case 3:_.yh(f);a.h=!1;_.zh(f);break;case 2:return e=_.H(f),a.g.warn("Failed to play jumped interstitial",b.ca,e),b.cm=new Date,_.x(f,a.l.seek(c),3)}})};
331
+ As=function(a,b,c,d){var e=Ds(a);a.g.info("Interstitial cues changed",e);var f=e;if(d){f=Jj(a.f.map(function(q){return q.ca}),e.map(function(q){return q.id}));Es(a,f.Lo);var g=new Set(f.rk);f=e.filter(function(q){return g.has(q.id)})}if(!Fs(a,f))return!1;var k=[],l=[],m=[];f.forEach(function(q){var t=q.customAttributes.CUE||[];t.includes(_.pb)?l.push(q):!d&&t.includes("PRE")?k.push(q):!c&&q.startTime<a.j.Go?k.push(q):m.push(q)});e=Gk(k,0);f=Gk(l,_.Bk);var n=Gk(m,_.Ek),p=e.concat(f,n);Gs(a,p);0<e.length&&
332
+ Hs(a,e[0],b);n.forEach(function(q){return Is(a,q,_.Ek)});0<f.length&&Is(a,f[0],_.Bk);Js(a,p);return 0<e.length};
333
+ Js=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(k){var l=b.find(function(n){return n.id===k.ca});if(l){var m=l.customAttributes[bc];null==k.Hc&&null!=m&&(a.g.info(Qb,l.id,"Playout limit",m),k.Hc=m,k.Ud===_.Ek&&4===k.state&&Ks(a,k))}}),g["return"]();d=b.find(function(k){return k.id===c.kc});if(!d)return g["return"]();e=d.customAttributes[bc];if(null==e)return g["return"]();f=a.f.find(function(k){return k.ca===d.id});
334
+ if(!f||null!=f.Hc)return g["return"]();a.g.info(Qb,d.id,"Playout limit",e);f.Hc=e;return _.x(g,Ir(a.a,e),0)})};Es=function(a,b){var c=new Set(b);a.f.forEach(function(d){c.has(d.ca)&&!zk(d)&&a.g.warn("Removing an interstitial in active state",d)});a.f=a.f.filter(function(d){return!c.has(d.ca)})};Ds=function(a){return a.l.getTimelineCues().filter(function(b){return wk(b.schemeIdUri)&&b.customAttributes})};
335
+ Cs=function(a,b,c){var d;return _.I(function(e){if(1==e.a)return _.x(e,Ls(a,b),2);d=e.f;if(!d)throw Error("Failed to bind");return _.x(e,Ms(a,b,_.Ek,!1,c),0)})};Ks=function(a,b){_.I(function(c){return 1==c.a?_.x(c,ws(a,b),2):_.x(c,Ns(a,b,a.l),0)})};
336
+ Is=function(a,b,c){var d=b.customAttributes[$b],e=b.customAttributes[Zb],f=b.customAttributes[ac],g=b.customAttributes[dc],k=b.customAttributes[bc],l=b.customAttributes[cc]||[];b.customAttributes[ec]||(b.customAttributes[ec]=null==g||0<g?"RANGE":"POINT");var m=b.customAttributes["X-YOSPACE-AUDIO-PRIORITY"];m="CONTENT"===m?Wr:"AD"===m?Vr:void 0;b={ca:b.id,startTime:b.startTime,endTime:b.endTime,state:0,Hh:e,Ih:d,Be:f,oa:null,V:null==g?null:Math.max(0,b.startTime+g),Po:g,Hc:k,Ud:c,Vm:"POINT"===b.customAttributes[ec],
337
+ Ak:!l.includes("SKIP"),Sh:!l.includes("JUMP"),Sj:Ak(b),ej:null!=g&&0>g,once:(b.customAttributes.CUE||[]).includes("ONCE"),Pj:!1,Ah:!0,customAttributes:b.customAttributes,audio:m};a.f.push(b);return b};
338
+ Hs=function(a,b,c){var d,e,f,g,k;_.I(function(l){switch(l.a){case 1:return d=Is(a,b,0),_.x(l,Ls(a,d),2);case 2:e=l.f;f=d.oa?d.oa.length:0;if(e&&0<f){_.F(l,8);a.g.info("Player preroll interstitial "+d.ca);var m=Ms(a,d,0,c);return _.x(l,m,10)}e?a.g.warn("Preroll interstitial has no assets, skipping"):a.g.error("Preroll interstitial failed, skipping");return _.x(l,hs(a.a),5);case 5:if(c){l.C(0);break}return _.x(l,Kr(a.a),0);case 10:_.G(l,0);break;case 8:g=_.H(l);a.g.error("Preroll interstitial failed.",
339
+ g);if(k=Fr(a.a))return _.x(l,a.a.play(k.id),0);l.C(0)}})};Os=function(a){a.o.forEach(function(b){return b()});a.o=[]};
340
+ xs=function(a,b){function c(){a.A=!1}function d(){a.A=!0}function e(){As(a,!1,!0,!0)}function f(){var g,k,l,m,n;return _.I(function(p){switch(p.a){case 1:if(a.h||a.A)return p["return"]();g=b.getPosition();k=Ps(a,g);if(!k){p.C(2);break}return _.x(p,Ls(a,k),3);case 3:(l=p.f)&&Ns(a,k,b);case 2:m=Qs(a);if(!(m&&0===m.state&&b.getDuration()-g<a.j.resolutionOffsetSec)){p.C(0);break}return _.x(p,Ls(a,m),5);case 5:if(n=p.f)if(m.oa&&0!==m.oa.length){var q=a.a.getCurrentItem();if(q){var t=Rs(a,m,_.Bk);if(0!==
341
+ t.length){var u=t[0].id;q.next=[u];q.transition={Ja:u};a.g.info("Schedule postroll interstitial "+m.ca);Ss(a,m,t)}}}else a.g.warn("Postroll interstitial has no assets, ignoring.");_.z(p)}})}b.on(_.ug,f);a.o.push(function(){b.off(_.ug,f)});b.on(_.tg,e);a.o.push(function(){b.off(_.tg,e)});b.on(_.gc,d);a.o.push(function(){b.off(_.gc,d)});b.on(_.hc,c);a.o.push(function(){b.off(_.hc,c)})};Qs=function(a){return a.f.find(function(b){return b.Ud===_.Bk})||null};
342
+ Gs=function(a,b){for(var c=b.sort(function(m,n){return m.startTime-n.startTime}),d=a.j.resolutionOffsetSec,e=Infinity,f=[],g=0;g<c.length-1;g++){var k=c[g],l=c[g+1];l&&(e=Math.min(e,l.startTime-k.endTime));l&&l.startTime<=k.endTime&&f.push("Interstitials "+k.id+" and "+l.id+" overlap.")}e<d&&(c=e/2,a.j.resolutionOffsetSec=c,a.g.info("Interstitials are closer than configured resolutionOffsetSec ("+(d+" s) auto-reconfiguring to ")+(c+" s.")));0<f.length&&a.g.warn("Unsupported format of interstitials, playback may not behave correctly. "+
343
+ f.join(" "))};Fs=function(a,b){var c=[];b.forEach(function(d){xk(d.customAttributes)||c.push("Interstitial cue "+d.id+" is invalid it must contain exactly one of X-ASSET-LIST or X-ASSET-URI.")});0<c.length&&a.g.error("Invalid interstitials, all interstitials will be skipped. "+c.join(" "));return 0===c.length};Ps=function(a,b){return a.f.find(function(c){var d=c.startTime-b;return c.Ud===_.Ek&&zk(c)&&0<d&&d<=a.j.resolutionOffsetSec})||null};
344
+ ss=function(a,b){return a.f.find(function(c){return zk(c)&&!c.Vm&&c.Ud===_.Ek&&b>c.startTime&&b<c.endTime})||null};ts=function(a,b){var c=a.l.getPosition();return a.f.filter(function(d){return d.Ud===_.Ek&&!d.Sh}).sort(function(d,e){return e.startTime-d.startTime}).find(function(d){return d.startTime>c&&d.startTime<b})||null};
345
+ Ls=function(a,b){return _.I(function(c){if(1==c.a){b.state=1;if(b.Be)return _.x(c,Ts(a,b,b.Be),3);if(!b.Hh){if(b.Ih){b.oa=[{URI:b.Ih,DURATION:b.endTime-b.startTime}];var d={URI:b.oa[0].URI,DURATION:b.oa[0].DURATION};b.Sj&&(d[Yb]=b.Sj);Us(a,new _.R(oc,{id:b.ca,detail:{ASSETS:[d]}}));b.state=2}else b.state=3;return c.C(3)}return _.x(c,Vs(a,b,b.Hh),3)}return c["return"](2===b.state)})};
346
+ Ts=function(a,b,c){var d,e,f,g,k,l;return _.I(function(m){if(1==m.a)return _.F(m,2),d=[],e=c.entries,f=e.map(function(n){var p;return _.I(function(q){if(1==q.a)return"list"!==n.type?q.C(2):_.x(q,Ws(a,n.Qc.URI),3);if(2!=q.a)return p=q.f,q["return"](p.ASSETS.map(function(t){return{id:n.id,customAttributes:n.customAttributes,Qc:t}}));if("uri"===n.type)return q["return"]([{id:n.id,customAttributes:n.customAttributes,Qc:n.Qc}]);throw new _.hi("Invalid group asset entry type");})}),_.x(m,Promise.all(f),
347
+ 4);if(2!=m.a)return g=m.f,g.forEach(function(n){return d.push.apply(d,_.jh(n))}),b.Be={entries:e,oa:d},k={ASSETS:d.map(function(n){return n.Qc})},Xs(a,b,k),_.G(m,0);l=_.H(m);a.g.error("Failed to bind grouped asset list for "+b.ca,l);b.state=3;_.z(m)})};
348
+ Vs=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return _.F(f,2),a.g.info("Load X-ASSET-LIST for "+b.ca),Us(a,new _.R(mc)),_.x(f,Ws(a,c),4);if(2!=f.a)return d=f.f,Xs(a,b,d),_.G(f,0);e=_.H(f);a.g.error("Failed to load X-ASSET-LIST",e);b.state=3;_.z(f)})};
349
+ Xs=function(a,b,c){b.oa=c.ASSETS;b.oa&&0!==b.oa.length||a.g.info("Interstitial "+b.ca+" has no assets, will be smoothly skipped");if(null==b.V){var d=Nk(b.oa.map(function(e){return e.DURATION}));b.V=b.startTime+(null==b.Hc?d:Math.min(b.Hc,d))}b.state=2;Us(a,new _.R(nc));Us(a,new _.R(oc,{id:b.ca,detail:c}))};Ys=function(a,b){var c=a.j.Eo;if(c){var d=new URL(b);d.searchParams.set("_HLS_primary_id",c);return d.toString()}return b};
350
+ Ms=function(a,b,c,d,e){var f,g,k;return _.I(function(l){if(0===b.oa.length)return l["return"]();f=a.a.getCurrentItem();if(!f)return l["return"]();g=Rs(a,b,c);if(0===g.length)return l["return"]();Ss(a,b,g);(k=0===c&&a.l.isLive())||(null!=e?es(a.a,e,!0):null!=b.V&&es(a.a,b.V));return d?_.x(l,a.a.load(g[0].id),0):_.x(l,a.a.play(g[0].id),0)})};
351
+ Ns=function(a,b,c){if(b.oa)if(0===b.oa.length){var d=function(){c.isLive()?a.g.info("Skipping empty live interstitial "+b.ca):null!=b.V&&0!==b.Po?c.seek(b.V):a.g.info("Empty VOD interstitial "+b.ca+", continuing to next segment")};c.one(_.rg,d);a.o.push(function(){c.off(_.rg,d)});a.g.info(Cb+b.ca+" to be skipped")}else{var e=a.a.getCurrentItem();if(e){var f=Rs(a,b,_.Ek);if(0!==f.length){var g=f[0].id;null!=b.V&&es(a.a,b.V);e.next=[g];e.transition={Sf:{position:b.startTime,itemId:g,V:b.V}};a.g.info(Cb+
352
+ b.ca+" for "+(b.startTime+" s"));Ss(a,b,f)}}}};Ss=function(a,b,c){Lr(a.a,c);a=a.a;Sr(a);a.f&&(a.f.Wa&&as(a,a.f,a.f.Wa),cs(a),ds(a,a.f.next));b.state=4};
353
+ Rs=function(a,b,c){var d=0,e=!!b.Be,f=b.oa.map(function(m,n){var p=b.ca;e&&(p=b.Be.oa[n].id);d+=m.DURATION;return{id:p+"-"+n,config:{source:{url:Ys(a,m.URI),type:_.Xm}},duration:m.DURATION,Fb:d,kc:p,next:[],Wa:new nr(c,n+1,b.oa.length,m.DURATION,p,b.Ak,b.customAttributes||null),audio:b.audio}});Ck(f,c);f.forEach(function(m){m.Uf=function(){var n=m.Wa;a.g.info("Playing ad "+(n.f+"/"+n.a)+" of interstitial "+m.kc)};m.Re=function(){Us(a,new _.R(_.qc,{ad:m.Wa}))}});if(null!=b.Hc&&(f=Zs(a,b,f),0===f.length))return[];
354
+ var g=f[0].Uf;f[0].Uf=function(){b.state=5;b.Pj=!0;b.ej&&(b.Ah=!1);a.g.info("Playing interstitial "+b.ca+" with "+(b.oa.length+" assets and will resume primary content ")+((b.V?"at "+b.V.toFixed(1)+" s":"after interstitial ended")+"."));g()};var k=f[0].Re;f[0].Re=function(m){null==b.V&&(b.V=b.startTime+m,es(a.a,b.V),a.g.info("Primary content will resume at",b.V.toFixed(1),"s"));k(m)};var l=f[f.length-1];l.Ja=function(){b.state=6;Mr(a.a,f.map(function(m){return m.id}));c===_.Bk&&hs(a.a)};l.gh=a.j.adReleaseDelayMs;
355
+ return f};Zs=function(a,b,c){var d=b.Hc;a.g.info("Playout limit for "+b.ca+" is "+(d+" s"));b=c[c.length-1].Fb;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.Fb-f.duration<=d});e.forEach(function(f){f.Wa.a=e.length});a=e[e.length-1];c=d-(a.Fb-a.duration);.1>Math.abs(c-a.duration)?a.transition.Ja=Hf:a.transition.Sf={position:c,itemId:Hf,V:null};a.maxDuration=c;return e};
356
+ Us=function(a,b){a.l.trigger(b)};Ws=function(a,b){var c,d,e,f,g,k;return _.I(function(l){if(1==l.a){c=a.a.Ef();if(!c)throw Error("No player found");d=c.getNetworkEngine();e=_.Vk(Ys(a,b));return _.x(l,$l(d,e),2)}f=l.f;if(null===f)return a.g.warn("X-ASSET-LIST "+b+" returned no content"),l["return"]({ASSETS:[]});g=yk(f);if(!g)throw new _.hi("Invalid X-ASSET-LIST list response");k=f;return l["return"](k)})};$s=function(){this.a=null};
357
+ at=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)})}};ct=function(a){this.m=a;this.j=this.m.getNetworkEngine();this.f=new _.ki;this.h=null;this.a=!0;bt(this)};
358
+ bt=function(a){a.f.on(window,"offline",function(){dt(a,!1)});a.f.on(window,"online",function(){a.a||et(a)});a.f.on(a.m,cg,function(){a.a&&et(a)});a.f.on(a.m,"suspend",function(){a.a&&et(a)});a.f.on(a.m,_.Ug,function(){a.a&&et(a)});a.f.on(a.m,_.vf,function(){a.a||et(a)});a.f.on(a.m,_.Jf,function(){a.a||et(a)});a.f.on(a.m,_.uf,function(b){b.detail&&a.a&&et(a)})};et=function(a){a.m.getConfiguration().connectivityCheck&&(ft(a),a.h=(new _.Yh(function(){return gt(a)})).ia(5))};
359
+ 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?_.x(d,dm(a.j,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;dt(a,c);_.z(d)})};dt=function(a,b){ft(a);a.a!==b&&(a.a=b,a.m&&a.m.getConfiguration().connectivityCheck&&a.m.trigger(new _.R(af,{online:a.a})))};it=function(){ht.forEach(function(a){return a()})};_.jt=function(a){ht.push(a)};kt=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};
360
+ lt=function(a,b,c){var d=_.S.ga;this.h=a;this.f=b;JSON.parse(d(_.Jl(a)));this.a=JSON.parse(d(_.Jl(b)));this.j=c};
361
+ nt=function(a){var b=mt,c=_.S.sb,d={kty:"RSA",n:b.n,e:b.e},e=a.h+"."+a.f,f=a.j;return new Promise(function(g,k){try{var l=window&&window.crypto&&window.crypto.subtle}catch(n){}if(l){var m={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};l.importKey("jwk",d,m,!1,["verify"]).then(function(n){var p=c(e),q=_.Jl(f);return l.verify(m,n,q.buffer,p.buffer)}).then(function(n){n?g():k(new _.hi("Signature Verification failed",yg))})["catch"](k)}else g()})};ot=function(a){this.f=a;this.a=null;this.g=new _.L("clpp.utils.LicenseKey")};
362
+ pt=function(a){if(!a.a){var b=a.f.split(".");if(3!==b.length)throw Error("Expected to find 3 data sections in JWT raw data");b=new lt(b[0],b[1],b[2]);a.a=b}return a.a};
363
+ qt=function(a){var b,c,d;return _.I(function(e){if(1==e.a)return b=pt(a),_.F(e,2),_.x(e,nt(b),4);if(2!=e.a)return _.G(e,0);if((c=_.H(e))&&c.code===yg)throw c;d=new _.bk(window.location.href);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(d.a.hostname))return e["return"]();throw c;})};
364
+ rt=function(a){switch((a.ea[0]||{src:"",type:""}).type){case _.Jc:a="dash";break;case _.Pc:a="ss";break;case _.Xm:a="hls";break;case _.Og: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:""};
365
+ wt=function(a){var b=a.configuration,c="no";b.drm&&!_.N.va(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(ee)||vt(a).endsWith("drmtoday.com"))&&(c=ee);return c};xt=function(a){a=a.drmInfo;var b="";if(a)switch(a.keySystem){case _.Jd:b="wv";break;case _.Hd:b="pr";break;case _.Fd:b="fps"}return b};yt=function(a){a=a.drmInfo;var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};
366
+ zt=function(a){a=a.drmInfo;var b="";if(a)switch(a.videoRobustness){case Ta:case Ra:b="L1";break;case Sa:b="L2";break;case _.Bb:case _.Ab:b="L3"}return b};vt=function(a){return(a=(a=a.drmInfo)&&a.licenseServerUri||"")?(new _.bk(a)).a.hostname:""};
367
+ Dt=function(a,b){var c=b.configuration,d=_.jh(Array.from(_.$q.keys())).concat(_.jh(b.Ej)),e={"CL-KEY":a.f,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ja,"CL-USER-ID":st(c),"CL-ASSET-ID":tt(c),"CL-SESSION-ID":ut(c),"CL-PLAYBACK-TYPE":b.isLive?At:Bt,"CL-CONTENT-TYPE":rt(b),"CL-PLUGINS":d.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)};Ct&&Ct.companionSdk&&(Ct.companionSdk.name&&(e["CL-COMPANION-SDK"]=Ct.companionSdk.name),Ct.companionSdk.version&&
368
+ (e["CL-COMPANION-SDK-VERSION"]=Ct.companionSdk.version));d=_.Vk(["https://downloads.castlabs.com/r/register/"]);d.method="GET";d.headers=e;e=new _.Wl;Xl(e,{forceXhr:c.forceXhr});return e.fetch(d).U["catch"](function(f){a:{var g=pt(a);f=f.data;var k=f.status;if(g.a&&g.a.ilv)f=Promise.resolve();else{switch(k){case 403:case 404:g=7101;var l="Castlabs Player license is invalid";if(403===k){k=l;l="";try{l=JSON.parse(decodeURIComponent(f.responseText)).message}catch(m){}f=k+(": "+l)}else f=l+"!";l=f;break;
369
+ case 412:g=7103;l="License requires a viewer ID. It should be supplied either via the `viewerId` config or in case of DRMtoday via the `drm.customData.userID` config.";break;default:f=Promise.resolve();break a}a.g.error($a+l);f=Promise.reject(new _.O(_.Q,7,g,l))}}return f})};Ft=function(a){this.m=a;this.f=a.getNetworkEngine();this.h=Et(this);this.f.ee(this.h);this.a=null};
370
+ Et=function(a){return function(b){var c=b.headers,d=b=null,e=_.N.Ii(c,"cmsd-dynamic");c=_.N.Ii(c,"cmsd-static");e&&(b=Gt(e),a.a=b);if(c)try{e={};var f=c.split(",");for(c=0;c<f.length;c++){var g=Ht(f[c]),k=g.key,l=g.value;Object.keys(It).includes(k)&&(e[It[k]]=l)}d=_.N.Yb(e)?e:null}catch(m){Jt.error("CmsdManager parseCmsdStaticHeader_ failed:",m),d=null}(b||d)&&a.m.trigger(new _.R("cmsd-event",{Xp:b,mq:d}))}};
371
+ Gt=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=Ht(c[e]),g=f.key;f=f.value;Object.keys(Kt).includes(g)&&(d[Kt[g]]=f)}return d}).filter(function(c){return _.N.Yb(c)});return 0<b.length?b:null}catch(c){return Jt.error("CmsdManager parseCmsdDynamicHeader_ failed:",c),null}};
372
+ Ht=function(a){var b=a.split("\x3d"),c=b[0];b=b[1];if(!c)throw new _.hi("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 _.hi("Parsing CMSD, not recognized value type of "+a);};
373
+ _.X=function(a,b,c){_.qn.call(this);var d=this;it();this.g=new _.L("clpp.Player");this.g.info("SDK version: 6.34.0");if(!a)throw new _.O(_.Q,7,7102);this.na=new _.ki;this.on(_.uf,function(f){if(f=f.detail){f={currentState:_.yq(f.currentState),previousState:_.yq(f.previousState),timeSinceLastStateChangeMS:f.timeSinceLastStateChangeMS,reason:f.reason};var g=_.S.Uc,k=g(f.previousState,Lt),l=g(f.currentState,Lt);g=null==f.reason?"":" ["+g(f.reason,ej)+"]";d.g.info("Player state change: "+k+" -\x3e "+
374
+ l+g);d.trigger(new _.R(eg,{detail:f}))}});this.f=this.G=b||_.xn();this.l=null;void 0===this.f.license&&(this.f.license=un,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(_.Q,7,7101,"No license provided in configuration!");this.j=new zr(a,c);this.H=this.B=this.a=this.K=null;this.A=new _.Wl;Xl(this.A,this.f);this.h=null;this.ha=[];this.M={};this.Aa=null;
375
+ this.I=!0;this.X=this.W=!1;this.P=this.Gd=null;this.Lg=!1;this.Fa=new ct(this);this.D=null;this.on(eg,function(){3===d.getPlayerState()&&(d.a?d.a.unload():Promise.resolve())});this.on(_.Fc,function(){d.Lg=!0});this.on(_.Ec,function(){d.Lg=!1});this.on(_.tg,function(){return Mt(d)});Nt(this,this.f.license);(a=this.j.getMedia())&&a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),this.g.warn("The autoplay attribute on the video element is not supported. Use the autoplay option in player configuration instead."));
376
+ a=[];b=_.v(Ot);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)}}this.aj(a);this.T=_.ta;fr(this)};_.Pt=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.B=null),b&&(b.init(a.j,a.G),b.setNetworkEngine(a.getNetworkEngine()),b.forwardEventsTo(a),a.a=b,a.B=c))};
377
+ Nt=function(a,b){a.K=new ot(b);qt(a.K)["catch"](function(c){setTimeout(function(){a.g.error($a+c);a.trigger(new _.R(_.le,{detail:new _.O(_.Q,7,7101)}));a.destroy()},1E3)})};
378
+ Qt=function(a,b){var c,d;_.I(function(e){if(1==e.a)return a.j.getMedia()||a.j.getCastElement(),a.K||(a.K=new ot(a.f.license)),_.F(e,2),a.g.debug("Verifying license remotely"),_.x(e,Dt(a.K,b),4);if(2!=e.a)return a.g.debug("License verified remotely"),_.G(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);_.z(e)})};
379
+ Rt=function(a){var b,c;return _.I(function(d){switch(d.a){case 1:if(a.I)return a.g.debug("The player is already released. No-op"),d["return"]();a.na.off(document,_.Sg);a.trigger(new _.R(_.Nf));a.j&&a.j.release();if(!a.h){d.C(2);break}return _.x(d,a.h.Ac(),3);case 3:a.h=null;case 2:if(!a.D){d.C(4);break}return _.x(d,a.D.release(),5);case 5:a.D=null;case 4:if(!a.a)return a.trigger(new _.R(Mf)),a.I=!0,d["return"]();b=null;c=a.a.on(_.uf,function(e){b=e});xh(d,6);return _.x(d,a.hd(_.Ze),8);case 8:return a.a.stopForwardingEventsTo(a),
380
+ _.x(d,Promise.all([a.a.release(),a.A.release()]),9);case 9:a.g.debug("Releasing player completed"),b&&(a.g.debug("Re-post player state change event after release"),a.trigger(b)),a.trigger(new _.R(Mf)),a.I=!0;case 6:_.yh(d),a.a.off(_.uf,c),_.zh(d)}})};
381
+ Tt=function(a,b,c){if(a.T===_.ob)b=St(b,c);else if(2!==(a.a?a.a.canPlay(b[0],c):0)||a.X){a.X=!1;if(b){for(var d=a=null,e=0;e<b.length;e++);e=Object.values(_.Sh);for(var f=0;f<b.length;f++)for(var g=0;g<e.length;g++){var k={xb:e[g],confidence:e[g].canPlay(b[f],c)};if(null===a||a.confidence<k.confidence)a=k,d=f}a&&typeof d===_.h&&0<a.confidence?(_.Th.debug("Player Factory '"+a.xb.a()+"' can play",b[d]),b=new Rh(a.xb,d)):(_.Th.debug("No compatible Player Factory found for sources:",b),b=null)}else b=
382
+ null;if(!b)throw new _.O(_.Q,7,7003,"No player factory compatible with given sources found!");c=b.xb;a=c.create();b={xb:c,player:a,sourceIndex:b.sourceIndex}}else b={xb:a.B,player:a.a,sourceIndex:0};return b};St=function(a,b){var c=Vh(function(d){return d.f(_.ob)&&a.every(function(e){return 2===d.canPlay(e,b)})});if(!c)throw new _.O(_.Q,7,7003,"No compatible player implementing playlist mode found!");return{xb:c,player:c.create(),sourceIndex:0}};
383
+ Vt=function(a){var b;return _.I(function(c){if(1==c.a){if(!a.a)return a.g.warn(rb),c["return"]();b=a.a;if(!b.Xh)return a.g.warn(ub),c["return"]();a.trigger(new _.R(Ge));return _.x(c,b.Xh(),2)}return _.x(c,_.Ut(a),0)})};
384
+ _.Zt=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a){if(a.W)throw new _.O(_.Q,7,7E3,"Player is already destroyed.");if(!a.j)throw new _.O(_.Q,7,7E3,"No surface associated with this player!");_.pp(pf);return _.x(f,a.release(),2)}if(3!=f.a){d=c||_.Jq(b);if(!b||0===d.length)throw new _.O(_.Q,7,7003,jb);a.Aa=d;a.f=_.zn([a.G,b,{source:d}]);Xl(a.A,a.f);a.I=!1;e=Tt(a,d,a.f);_.Pt(a,e.player,e.xb);Wt(a,a.a);a.a&&a.a.setSourceIndex(e.sourceIndex);Xt(a);a.a&&a.a.setCdnErrorCallback(a.P);_.Yt(a,a.f);
385
+ a.f.cmsd.enabled&&(a.D=new Ft(a),a.a.setCmsdManager(a.D));if(a.f.pauseWhenInBackground)a.na.on(document,_.Sg,function(){document.hidden?(a.g.debug("Player is hidden: pausing..."),a.pause()):(a.g.debug("Player is visible: resuming..."),a.play())});_.hr(a.f.drm);gr(a);return _.x(f,a.hd("onContentWillLoad",a.f.source[e.sourceIndex]),3)}_.pp(of);_.rp("player.beforeLoad",pf,of);_.z(f)})};
386
+ _.$t=function(a){return _.I(function(b){a.j.getMedia()||a.j.getCastElement();a.trigger(new _.R(Ge));return _.x(b,Promise.all([a.a.load(a.f),a.h?a.h.load():Promise.resolve()]),0)})};Wt=function(a,b){try{var c=crypto.randomUUID()}catch(d){c=at()}a.g.info("Playback session started, ID:",c);b.setPlaybackSessionId(c);a.H=c};au=function(a){a.H&&(a.g.info("Playback session ended, ID:",a.H),a.H=null,a.a&&a.a.setPlaybackSessionId(null))};
387
+ cu=function(a){var b,c,d,e;_.I(function(f){if(1==f.a){b=[];if(a.f.remoteTextTracks)for(c=_.v(a.f.remoteTextTracks),d=c.next();!d.done;d=c.next())e=d.value,b.push(a.getTrackManager().addTextTrack(e));return _.x(f,Promise.all(b),2)}bu(a);_.z(f)})};
388
+ bu=function(a){var b=_.Ej(a.f.preferredTextLanguage).filter(function(f){return f}),c=a.f.preferForcedSubtitles,d=a.getTrackManager().ra().filter(function(f){return c?f.kind===_.ne:f.kind!==_.ne});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().qa();e&&e.language?(e=_.Hk(e.language||""),b.push(e)):(e=a.getTrackManager().Ra())&&e.language&&(e=_.Hk(e.language||""),b.push(e));0===
389
+ 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=_.Hk(f);if(f=d.find(function(k){k=_.Hk(k.language||"");return _.Ik(k,g)}))return a.getTrackManager().kb(f),!0;c&&a.g.warn("Forced subtitles are configured to be preferred, but no forced subtitles match the preferred languages: ",b);return!1})}};
390
+ _.Ut=function(a){var b;return _.I(function(c){if(1==c.a)return _.pp(lf),Qt(a,{configuration:a.getConfiguration(),ea:a.Li(),drmInfo:a.getDrmInfo(),Ej:Object.keys(a.M),isLive:a.isLive()}),cu(a),ir(a),_.x(c,a.hd(_.We),2);if(3!=c.a)return a.f.autoplay?(b=a.h?a.h.Pc():!0)?_.x(c,a.play(),3):c.C(3):c.C(3);_.pp(kf);_.rp("player.afterLoad",lf,kf);_.z(c)})};_.Yt=function(a,b){var c=b||a.f,d=Zq(a,c);d&&(d=d.create(a),du(a,d,c))};du=function(a,b,c){a.h=b;b.Pa(null==c.volume?1:c.volume);b.setMuted(c.muted||!1)};
391
+ Mt=function(a){if(!a.h&&a.B&&a.a&&a.f.ads.hls.enable&&a.getTimelineCues().some(function(c){return wk(c.schemeIdUri)})){var b=new $s;b.Sc(a.a,a.B,a.f.mse.sendPlaybackSessionIdHeader?a.H:null);du(a,b,a.f)}};Xt=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.I(function(c){return a.Lg&&a.Gd?_.x(c,a.Gd(b),0):c["return"]()})})};_.eu=function(a){a&&(0<=Ot.indexOf(a)||Ot.push(a))};
392
+ fu=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.G=_.N.ta(this.G,a);this.f=_.N.ta(this.f,a);this.J=0;this.o=[];this.ba=!1;this.w=null;this.L=[]};gu=function(a){a.L.forEach(function(b){return b()});a.L=[]};
393
+ hu=function(a,b){function c(f){a.J=a.o.findIndex(function(g){return g.id===f.id})}a.addEventListener(_.Tf,c);a.L.push(function(){a.removeEventListener(_.Tf,c)});if(b.endTime){var d=b.endTime,e=function(){a.getPosition()>=d&&(a.removeEventListener(_.ug,e),a.g.info("Playlist end time reached. Stopping playback."),a.trigger(new _.R(_.Sf)),a.pause())};a.addEventListener(_.ug,e);a.L.push(function(){a.removeEventListener(_.ug,e)})}};
394
+ ku=function(a,b){var c,d;return _.I(function(e){switch(e.a){case 1:return _.F(e,2),_.pp(tf),a.T=_.ob,c=b.slice(1).map(function(f){return{config:f,ea:_.Jq(f)}}),_.x(e,_.Zt(a,b[0]),4);case 4:return c.forEach(function(f){iu(a,f.config,f.ea)}),a.trigger(new _.R(Ge)),_.x(e,a.a.setupPlaylist(b),5);case 5:return _.x(e,_.Ut(a),6);case 6:c.forEach(function(f){ju(a,f.config,f.ea)});_.pp(sf);_.rp("player.setupPlaylist",tf,sf);_.G(e,0);break;case 2:d=_.H(e);if(a.l)throw a.g.info(ab),new _.O(_.Q,7,7E3);throw d;
395
+ }})};lu=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.F(e,2),_.pp(nf),c=_.Jq(b),iu(a,b,c),_.x(e,a.a.appendLoad(b),4);if(2!=e.a)return ju(a,b,c),_.pp(mf),_.rp("player.appendLoad",nf,mf),_.G(e,0);d=_.H(e);if(a.l)throw a.g.info(ab),new _.O(_.Q,7,7E3,{id:b.id});throw d;})};ju=function(a,b,c){Qt(a,{configuration:b,ea:c,drmInfo:a.getDrmInfo(),Ej:Object.keys(a.M),isLive:c[0].isLive})};
396
+ iu=function(a,b,c){if(0===c.length)throw new _.O(_.Q,7,7003,{message:jb,id:b.id});if(1<c.length)throw new _.O(_.Q,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(_.Q,7,7003,{message:"Source not supported by the current player!",id:b.id,source:c[0]});};
397
+ ou=function(a){_.qn.call(this);var b=this;this.j=_.N.ta({transition:_.ef,preloadMedia:!1},a);this.h=[];this.a=0;var c=mu(a.anchorId,this.j.config);this.w=new or(c);this.f=null;this.l=!1;this.o=new Map;this.A=a.toggleVisible;this.g=new _.L(Ad);this.w.a.forEach(function(d){return nu(b,d.player,!1)})};qu=function(a){return Promise.all(Array.from(a.o.keys()).map(function(b){return pu(a,b)}))};
398
+ pu=function(a,b){var c;return _.I(function(d){if(1==d.a){c=a.o.get(b);if(!c)return d.C(0);a.g.info("Stop preloading item (index: "+b+")");return c.player?_.x(d,ru(a,c),3):d.C(3)}a.o["delete"](b);_.z(d)})};tu=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Stop current playback (index: "+b.index+")"),b.player.pause(),nu(a,b.player,!1),_.x(c,ru(a,b),2);b.player=null;b.videoEl=null;b.role=su;_.z(c)})};
399
+ ru=function(a,b){return _.I(function(c){b.disposers.forEach(function(d){return d()});b.disposers=[];return b.player?_.x(c,a.w.release(b.player),0):c.C(0)})};wu=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.x(d,a.w.get(),2);if(3!=d.a)return c=d.f,a.f=b,b.role=uu,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),nu(a,c,!0),_.x(d,c.open(b.config),3);vu(a,b);return b.config.autoplay?d.C(0):_.x(d,c.play(),0)})};
400
+ xu=function(a,b){return _.I(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==Df){c.C(2);break}a.g.info(Ub);_.F(c,3);return _.x(c,b.preloadPromise,5);case 5:_.G(c,2);break;case 3:_.H(c);case 2:a.f=b;b.role=uu;nu(a,b.player,!0);if(b.state===Cf)return _.pp(zf),a.j.preloadMedia?_.x(c,b.player.play(),11):_.x(c,Vt(b.player),11);if(b.state!==Bf){c.C(7);break}return _.x(c,b.player.open(b.config),7);case 11:_.pp(yf),_.rp("playlist.next",zf,yf);case 7:if(vu(a,b),b.config.autoplay)c.C(0);
401
+ else return _.x(c,b.player.play(),0)}})};vu=function(a,b){if(a.j.autoplayNext){var c=function(){a.g.info("Automatically transition to next item");a.Cj()};b.player.on(_.ke,c);var d=b.player;b.disposers.push(function(){d.off(_.ke,c)})}};zu=function(a){var b;return _.I(function(c){b=a.a+1;a.g.info("Preload following item (index: "+b+")");return _.x(c,yu(a,b),0)})};Au=function(a){var b;return _.I(function(c){b=a.a-1;a.g.info("Preload preceding item (index: "+b+")");return _.x(c,yu(a,b),0)})};
402
+ Bu=function(a){var b;_.I(function(c){if(0===a.a)return _.x(c,zu(a),0);if(a.a===a.h.length-1)return _.x(c,Au(a),0);b=[a.a-1,a.a+1];a.g.info("Preload items (indices: "+b+")");return _.x(c,Promise.all(b.map(function(d){return yu(a,d)})),0)})};
403
+ yu=function(a,b){var c,d,e;return _.I(function(f){switch(f.a){case 1:return _.x(f,a.w.get(),2);case 2:return c=f.f,d=a.h[b],d.player=c,d.videoEl=c.getSurface().getMedia(),d.role=su,d.state=Df,a.trigger(new _.R(Bg)),_.F(f,3),a.o.set(b,d),a.j.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.open(d.config)):d.preloadPromise=c.preload(d.config),_.x(f,d.preloadPromise,5);case 5:d.state=
404
+ Cf;a.trigger(new _.R(Bg));_.G(f,0);break;case 3:e=_.H(f),7001===e.code?(a.g.info("Preload aborted (index: "+b+")"),d.state=Af):(a.g.warn("Preload failed (index: "+b+")",e),a.trigger(new _.R(_.le,{detail:e})),d.state=Bf),a.trigger(new _.R(Bg)),_.z(f)}})};nu=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.info(Fb+b),d.classList.add(ud)):(a.g.info(Va+b),d.classList.remove(ud)),a.A&&a.A(d,c))};
405
+ Cu=function(a){var b;return _.I(function(c){if(1==c.a)return _.x(c,a.w.destroy(),2);b=document.getElementById(a.j.anchorId);if(!b)return c["return"]();b.classList.remove(td);b.innerHTML="";_.z(c)})};
406
+ mu=function(a,b){var c=document.getElementById(a);if(!c)throw Error("Anchor element not found");c.classList.add(td);return Array.from({length:3}).map(function(){var d=document.createElement(_.Kg);d.classList.add("clpp-mc-playlist-video-el");var e=document.createElement(_.Sd);e.classList.add("clpp-mc-playlist-item");e.appendChild(d);c.appendChild(e);return new _.X(d,b)})};
407
+ _.Eu=function(a){if(Du.has(a))return Du.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);Du.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),Du.set(a,b),b):!1};Fu=function(a){this.h=a;this.f={keepOriginalTimestamps:!0,remux:!1};this.a=new muxjs.mp4.Transmuxer(this.f)};
408
+ Gu=function(a,b){var c=b.replace(/mp2t/i,"mp4");a===_.Rc&&(c=c.replace(_.Kg,_.Rc));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};Hu=function(){};_.Iu=function(){};_.Ju=function(a){this.L=a;this.h={}};
409
+ _.el=function(a,b){var c={},d=b?b.widevineVideoRobustness:void 0,e=b?b.widevineAudioRobustness:void 0,f=b?b.serverCertificate:void 0,g=a.h[_.Jd];g&&(c[_.Jd]={licenseUrl:a.f(_.Jd,g,b),videoRobustness:Zj(d,g.videoRobustness),audioRobustness:Zj(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:Yj(b?b.widevineDistinctiveIdentifierRequired:void 0,g.distinctiveIdentifierRequired,!1),persistentStateRequired:Yj(b?b.widevinePersistentStateRequired:void 0,g.persistentStateRequired,!1),
410
+ serverCertificate:_.Ku(f,g.serverCertificate)});(g=a.h[_.Fd])&&(c[_.Fd]={licenseUrl:a.f(_.Fd,g,b),certificateUrl:a.H(g,b),modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.h[_.Hd])&&(c[_.Hd]={licenseUrl:a.f(_.Hd,g,b),videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});return c};
411
+ _.Ku=function(a,b){return void 0===a?b:null===a?null:typeof a===_.hg?_.ro(a):a};Ou=function(a,b){var c=io(b);switch(a){case _.Jd:return c+Lu;case _.Hd:return c+Mu;case _.Fd:return c+Nu;default:throw new _.hi("Cannot infer DRMtoday license URL for key system: "+a);}};_.Pu=function(a,b,c){a=lo(a,b);return(c&&c.customData?c.customData:{}).fpsContentId=a};
412
+ _.Ru=function(a,b,c,d){d=void 0===d?!0:d;c=a.drm;c?c.customData&&(_.mo(b,a),a=a.drm,(void 0===d||d)&&a&&a.customData&&(c=a.customData.assetId))&&(d=b.uris[0],d+="?assetId\x3d"+encodeURIComponent(""+c),(a=a.customData.variantId)&&(d+="\x26variantId\x3d"+encodeURIComponent(""+a)),b.uris[0]=d):_.Qu.warn(hb)};Su=function(a,b,c){_.Ru(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.bk(b.uris[0]);c.a.searchParams.set(_.ff,a.toString());b.uris[0]=c.toString()};
413
+ Tu=function(a,b,c){_.Ru(a,b,c,!1);b.headers[_.Da]=_.Qc;a={spc:_.Hl(b.body)};b.body=_.S.kd(_.ek(a,!0))};_.Uu=function(a,b){if(200===b.status){var c=_.S.ga(b.data).trim();c.startsWith("\x3cckc\x3e")&&c.endsWith("\x3c/ckc\x3e")&&(c=c.slice(5,-6));c=_.Jl(c).buffer;b.data=c}};Vu=function(a,b){var c=a.drm;if(!c)_.Qu.warn(hb);else if(c.customData&&c.customData.merchant){var d=new _.bk(b.uris[0]),e=d.a.pathname;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.a.pathname=e;b.uris[0]=d.toString()}};
414
+ _.Wu=function(a,b){try{var c=_.Vi(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));_.ko.debug("Widevine License response",d);var e=atob(d.license),f=new Uint8Array(e.length);for(c=0;c<e.length;++c)f[c]=e.charCodeAt(c);var g=f.buffer}catch(k){_.ko.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data"),g=null}g&&(b.data=g)};
415
+ Xu=function(a){a=a&&(a.organizationId||a.merchant);if(null==a||!(""+a))throw new _.O(_.Q,6,7100,"DRMtoday organizationId missing");return""+a};Zu=function(a,b){var c=a.drm;c&&c.customData&&Yu(b,c.customData)};$u=function(a,b){Zu(a,b);b.headers[_.Da]=Nc};av=function(a,b){var c=a.drm;c&&c.customData&&Yu(b,c.customData)};bv=function(a,b){Zu(a,b);var c=a.drm;c=!(!c||!c.offlineId);var d=new _.bk(b.uris[0]);d.a.searchParams.set(_.ff,c.toString());b.uris[0]=d.toString()};cv=function(){};
416
+ dv=function(a,b){return lo(a,b)};Yu=function(a,b){var c=b.authToken;c=null!=c?(""+c).trim():"";""!==c?a.headers.Authorization="Bearer "+c.replace(/^Bearer\s+/i,"").trim():(c={},null!=b.userId&&(c.userId=b.userId),null!=b.sessionId&&(c.sessionId=b.sessionId),0!==Object.keys(c).length&&(a.headers["x-dt-custom-data"]=btoa(JSON.stringify(c))))};ev=function(a,b){_.Ju.call(this,a);this.a=b};fv=function(){};
417
+ kv=function(a){switch(a){case "DRMtoday":return gv;case "DRMtoday_STAGING":return hv;case "DRMtoday_DEMO":return iv;case "DRMtoday_TEST":return jv;default:return null}};lv=function(a){switch(a){case gv:case hv:case iv:return _.ro("V2")}return null};mv=function(){};
418
+ nv=function(a,b,c,d,e){_.Ju.call(this,Ua);this.o=a;this.l=b;this.j=c;this.a=d;this.w=e;this.g=new _.L(xd);_.S.empty(this.o)?this.g.warn(_.Wb):this.Ma(_.Jd,{licenseUrl:this.o,videoRobustness:[_.Bb,void 0],audioRobustness:[_.Ab,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.Qe.bind(this)}});_.S.empty(this.l)?this.g.warn(_.qb):this.Ma(_.Hd,{licenseUrl:this.l,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.Qe.bind(this)}});
419
+ _.S.empty(this.j)?this.g.warn(_.Pa):_.S.empty(this.a)?this.g.warn(_.Oa):this.Ma(_.Fd,{licenseUrl:this.j,certificateUrl:this.a,modifiers:{licenseRequest:this.kj.bind(this),licenseResponse:this.lj.bind(this),certificateRequest:this.Qe.bind(this),extractContentId:this.si.bind(this)}})};ov=function(){};pv=function(a){var b=new Event(a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase(),a);a.target.dispatchEvent(b)};
420
+ qv=function(a){a=a.target;if(a.webkitPresentationMode===hf){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)};rv=function(){return this.webkitSupportsPresentationMode(hf)?(this.webkitSetPresentationMode(hf),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
421
+ sv=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};uv=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};vv=function(a,b,c){return new window.TextTrackCue(a,b,c)};
422
+ wv=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};_.xv=function(a){var b=[];a=_.v(a);for(var c=a.next();!c.done;c=a.next()){c=_.v(c.value.variants);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};_.yv=function(a,b,c){this.h=a;this.j=b;this.f=c||this.h.getMedia();this.a=null};_.Av=function(){this.a=new Blob([zv],{type:_.Og})};_.Cv=function(a,b){var c=_.Hm(_.Im(a),_.Jm(a));_.Bv[c]=b};_.Iv=function(a){a=_.Hm(_.Im(a),_.Jm(a));return _.Bv[a]||null};
423
+ _.Qv=function(a){a=_.Hm(_.Im(a),_.Jm(a));delete _.Bv[a]};
424
+ _.Rv=function(a){a=a.getConfiguration();a=_.N.wb(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.hg?a.backgroundColor:null;this.T=typeof a.windowColor===_.hg?a.windowColor:null;this.M=typeof a.fontColor===_.hg?a.fontColor:null;this.P=typeof a.fontFamily===_.hg?a.fontFamily:null;this.I=typeof a.fontSize===_.hg?a.fontSize:null;this.B=typeof a.fontSizePercent===_.h?a.fontSizePercent:null;this.H=typeof a.edgeColor===_.hg?a.edgeColor:"rgba(0, 0, 0, 1)";this.o=null;typeof a.edgeType===
425
+ _.hg&&(this.o=a.edgeType)};_.Wv=function(a){if(!a.o)return null;var b=a.H;switch(a.o){case Sv:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case Tv:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case Uv:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case Vv:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.Se}};
426
+ _.Yv=function(a){_.Rv.call(this,a);this.l=a.getSurface().getMedia();this.f="clpp-video-"+Xv++;this.h=document.createElement(_.jg);this.j=this.w=!1;_.qr(this.l,this.f);document.head.appendChild(this.h);this.ec()};Zv=function(){};$v=function(a){this.f=a;this.a=null;this.g=new _.L("clpp.text.Mp4TextParser")};_.aw=function(a,b,c,d){this.id=a;this.f=b;this.a=c;this.h=d};_.bw=function(){this.a=[];this.f=-1;this.h=null};
427
+ _.dw=function(a,b,c,d){var e,f;return _.I(function(g){if(1==g.a)return _.F(g,2),_.x(g,cw(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.H(g);f.a(_.Q);throw f;})};
428
+ cw=function(a,b,c,d){var e,f,g,k;return _.I(function(l){if(1==l.a){if(d){if(e=_.ew[d.toLowerCase()])return l["return"](e);_.Kh("Could not determine manifest type using MIME type ",d)}if(f=_.hk(a)){if(g=_.fw[f])return l["return"](g);_.Kh("Could not determine manifest type for extension ",f)}else _.Kh("Could not find extension for ",a);return d?l.C(2):_.x(l,gw(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(k=_.ew[d])return l["return"](k);_.Kh("Could not determine manifest type using MIME type",d)}throw new _.O(_.Q,
429
+ 4,4E3,{url:a});})};gw=function(a,b,c){var d,e,f;return _.I(function(g){if(1==g.a)return d=_.Vk(a),Rk(d,c),d.type=1,d.method="HEAD",_.x(g,b.fetch(d).U,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.hw=function(){};_.gh=[];kh=typeof Object.create==_.pe?Object.create:function(a){function b(){}b.prototype=a;return new b};
430
+ if(typeof Object.setPrototypeOf==_.pe)iw=Object.setPrototypeOf;else{var jw;a:{var kw={lk:!0},lw={};try{lw.__proto__=kw;jw=lw.lk;break a}catch(a){}jw=!1}iw=jw?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
431
+ var lh=iw,mh="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,nh=typeof Object.defineProperties==_.pe?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};
431
432
  oh("Promise",function(a){function b(g){this.f=0;this.l=void 0;this.a=[];var k=this.j();try{g(k.resolve,k.reject)}catch(l){k.reject(l)}}function c(){this.a=null}function d(g){return g instanceof b?g:new b(function(k){k(g)})}if(a)return a;c.prototype.f=function(g){if(null==this.a){this.a=[];var k=this;this.h(function(){k.l()})}this.a.push(g)};var e=mh.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 k=0;k<g.length;++k){var l=
432
- g[k];g[k]=null;try{l()}catch(m){this.j(m)}}}this.a=null};c.prototype.j=function(g){this.h(function(){throw g;})};b.prototype.j=function(){function g(m){return function(n){l||(l=!0,m.call(k,n))}}var k=this,l=!1;return{resolve:g(this.D),reject:g(this.h)}};b.prototype.D=function(g){if(g===this)this.h(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.G(g);else{a:switch(typeof g){case _.Te:var k=null!=g;break a;case _.pe:k=!0;break a;default:k=!1}k?this.B(g):this.o(g)}};
433
+ g[k];g[k]=null;try{l()}catch(m){this.j(m)}}}this.a=null};c.prototype.j=function(g){this.h(function(){throw g;})};b.prototype.j=function(){function g(m){return function(n){l||(l=!0,m.call(k,n))}}var k=this,l=!1;return{resolve:g(this.D),reject:g(this.h)}};b.prototype.D=function(g){if(g===this)this.h(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.G(g);else{a:switch(typeof g){case _.Ue:var k=null!=g;break a;case _.pe:k=!0;break a;default:k=!1}k?this.B(g):this.o(g)}};
433
434
  b.prototype.B=function(g){var k=void 0;try{k=g.then}catch(l){this.h(l);return}typeof k==_.pe?this.H(k,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,k){if(0!=this.f)throw Error("Cannot settle("+g+", "+k+"): Promise already settled in state"+this.f);this.f=g;this.l=k;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 k=this.j();
434
435
  g.rf(k.resolve,k.reject)};b.prototype.H=function(g,k){var l=this.j();try{g.call(k,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,k){function l(q,t){return typeof q==_.pe?function(u){try{m(q(u))}catch(y){n(y)}}:t}var m,n,p=new b(function(q,t){m=q;n=t});this.rf(l(g,m),l(k,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.rf=function(g,k){function l(){switch(m.f){case 1:g(m.l);break;case 2:k(m.l);break;default:throw Error("Unexpected state: "+
435
436
  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(k,l){l(g)})};b.race=function(g){return new b(function(k,l){for(var m=_.v(g),n=m.next();!n.done;n=m.next())d(n.value).rf(k,l)})};b.all=function(g){var k=_.v(g),l=k.next();return l.done?d([]):new b(function(m,n){function p(u){return function(y){q[u]=y;t--;0==t&&m(q)}}var q=[],t=0;do q.push(void 0),t++,d(l.value).rf(p(q.length-1),n),l=k.next();while(!l.done)})};return b});
436
- rh.prototype.toString=function(){return this.a};var qh=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new rh("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();uh.prototype.A=function(a){this.f=a};uh.prototype["return"]=function(a){this.h={"return":a};this.a=this.j};uh.prototype.C=function(a){this.a=a};var Gh=this||self;Gh.a=!0;_.N={ik:20,wb:function(a){var b=_.N.R,c=_.N.Vi,d=_.N.ta;return b(a)||c(a)?a:d(a)}};_.J("clpp.utils.obj.cloneItem",_.N.wb);_.N.ta=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.bj(c,{merging:b[d]},1));return c.merging||null};_.J("clpp.utils.obj.merge",_.N.ta);_.N.Yb=function(a){for(var b in a)if(void 0!==a[b])return!0;return!1};
437
- _.N.bj=function(a,b,c){var d=_.N.R,e=_.N.Vi,f=_.N.bj,g=_.N.ac,k=_.N.Xm,l=_.N.Lg,m=_.N.Rm,n=_.N.Qd;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:n instanceof Date?a[p]=n:k(n)?a[p]=n.subarray(0):n instanceof Array?a[p]=f([],n,c):!d(n)&&l(n)&&c<_.N.ik&&(a[p]=f(a[p],n,c));return a};_.N.Vi=function(a){a=typeof a;return a===_.gg||a===_.h||a===_.bd};_.N.Rm=function(a){return a instanceof Element};_.N.R=function(a){return null===a||"undefined"===typeof a};
438
- _.N.Qd=function(a){return typeof a===_.Te};_.N.ac=function(a){return typeof a===_.pe};_.N.ja=function(a){return typeof a===_.gg};_.N.ya=function(a){return typeof a===_.h};_.N.Si=function(a){return typeof a===_.bd};_.N.Lg=function(a){var b=_.N.Qd,c=_.N.R;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.N.Xm=function(a){var b=_.N.Qd,c=_.N.ac;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
437
+ rh.prototype.toString=function(){return this.a};var qh=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new rh("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();uh.prototype.A=function(a){this.f=a};uh.prototype["return"]=function(a){this.h={"return":a};this.a=this.j};uh.prototype.C=function(a){this.a=a};var Gh=this||self;Gh.a=!0;_.N={jk:20,wb:function(a){var b=_.N.R,c=_.N.Wi,d=_.N.ta;return b(a)||c(a)?a:d(a)}};_.J("clpp.utils.obj.cloneItem",_.N.wb);_.N.ta=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.cj(c,{merging:b[d]},1));return c.merging||null};_.J("clpp.utils.obj.merge",_.N.ta);_.N.Yb=function(a){for(var b in a)if(void 0!==a[b])return!0;return!1};
438
+ _.N.cj=function(a,b,c){var d=_.N.R,e=_.N.Wi,f=_.N.cj,g=_.N.ac,k=_.N.Ym,l=_.N.Mg,m=_.N.Sm,n=_.N.Qd;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:n instanceof Date?a[p]=n:k(n)?a[p]=n.subarray(0):n instanceof Array?a[p]=f([],n,c):!d(n)&&l(n)&&c<_.N.jk&&(a[p]=f(a[p],n,c));return a};_.N.Wi=function(a){a=typeof a;return a===_.hg||a===_.h||a===_.bd};_.N.Sm=function(a){return a instanceof Element};_.N.R=function(a){return null===a||"undefined"===typeof a};
439
+ _.N.Qd=function(a){return typeof a===_.Ue};_.N.ac=function(a){return typeof a===_.pe};_.N.ja=function(a){return typeof a===_.hg};_.N.ya=function(a){return typeof a===_.h};_.N.Ti=function(a){return typeof a===_.bd};_.N.Mg=function(a){var b=_.N.Qd,c=_.N.R;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.N.Ym=function(a){var b=_.N.Qd,c=_.N.ac;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
439
440
  _.N.va=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.Qd(a)||!_.N.Qd(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var k=e[g];if(_.N.R(d)||0>d.indexOf(k))if(f[k]=!0,a[k]!==b[k])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};
440
- _.N.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.N.Sm=function(a,b,c){return a>=b&&a<=c};_.N.Eh=function(a){for(var b=new Map,c=_.v(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b};_.N.Fh=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};
441
- _.N.Hi=function(a,b){for(var c=b.toLowerCase(),d=_.v(Object.entries(a)),e=d.next();!e.done;e=d.next()){var f=_.v(e.value);e=f.next().value;f=f.next().value;if(e.toLowerCase()===c)return f}return null};_.N.Wi=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===_.Te&&e&&typeof e===_.Te){if(!_.N.Wi(d,e))return!1}else if(void 0!==d&&void 0!==e&&d!==e)return!1}return!0};
442
- _.N.Xi=function(a,b){if(!_.N.Wi(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===_.Te&&e&&typeof e===_.Te&&_.N.Xi(d,e))return!0}return!1};
443
- _.N.Mi=function(a,b){if(a===b||_.N.R(a)||_.N.R(b))return!1;for(var c=Object.keys(a),d=0;d<c.length;d++){var e=c[d];if(e in b){var f=a[e];e=b[e];if(f instanceof Date&&e instanceof Date&&f.getTime()!==e.getTime())return!0;if(typeof f===_.Te&&typeof e===_.Te){if(_.N.Mi(f,e))return!0}else{if(f instanceof Array&&e instanceof Array){if(f.length!==e.length)return!0;for(var g=0;g<f.length;g++)if(f[g]!==e[g])return!0}if(f!==e)return!0}}}return!1};var Lh={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.J("clpp.log.Level",Lh);var Ih=0,Hh={},Wv=[];_.J("clpp.log.getLoggers",function(){return _.N.wb(Hh)});_.J("clpp.log.addInterceptor",function(a){a&&Wv.push(a)});_.J("clpp.log.removeInterceptor",function(a){a&&(a=Wv.indexOf(a),0<=a&&Wv.splice(a,1))});_.J("clpp.log.getTagLevel",Jh);_.J("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Hh[a]});_.J("clpp.log.setTagLevel",function(a,b){a&&(_.N.ja(b)&&(b=Mh(b)),Hh[a]=b)});
441
+ _.N.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.N.Tm=function(a,b,c){return a>=b&&a<=c};_.N.Fh=function(a){for(var b=new Map,c=_.v(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b};_.N.Gh=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};
442
+ _.N.Ii=function(a,b){for(var c=b.toLowerCase(),d=_.v(Object.entries(a)),e=d.next();!e.done;e=d.next()){var f=_.v(e.value);e=f.next().value;f=f.next().value;if(e.toLowerCase()===c)return f}return null};_.N.Xi=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===_.Ue&&e&&typeof e===_.Ue){if(!_.N.Xi(d,e))return!1}else if(void 0!==d&&void 0!==e&&d!==e)return!1}return!0};
443
+ _.N.Yi=function(a,b){if(!_.N.Xi(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===_.Ue&&e&&typeof e===_.Ue&&_.N.Yi(d,e))return!0}return!1};
444
+ _.N.Ni=function(a,b){if(a===b||_.N.R(a)||_.N.R(b))return!1;for(var c=Object.keys(a),d=0;d<c.length;d++){var e=c[d];if(e in b){var f=a[e];e=b[e];if(f instanceof Date&&e instanceof Date&&f.getTime()!==e.getTime())return!0;if(typeof f===_.Ue&&typeof e===_.Ue){if(_.N.Ni(f,e))return!0}else{if(f instanceof Array&&e instanceof Array){if(f.length!==e.length)return!0;for(var g=0;g<f.length;g++)if(f[g]!==e[g])return!0}if(f!==e)return!0}}}return!1};var Lh={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.J("clpp.log.Level",Lh);var Ih=0,Hh={},mw=[];_.J("clpp.log.getLoggers",function(){return _.N.wb(Hh)});_.J("clpp.log.addInterceptor",function(a){a&&mw.push(a)});_.J("clpp.log.removeInterceptor",function(a){a&&(a=mw.indexOf(a),0<=a&&mw.splice(a,1))});_.J("clpp.log.getTagLevel",Jh);_.J("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Hh[a]});_.J("clpp.log.setTagLevel",function(a,b){a&&(_.N.ja(b)&&(b=Mh(b)),Hh[a]=b)});
444
445
  _.J("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.N.ja(a)&&(a=Mh(a));Ih=a});_.J("clpp.log.getLogLevel",function(){return Ih});_.r=_.L.prototype;
445
446
  _.r.log=function(a,b){if(window.console){if(1<arguments.length){var c=arguments[0];Array.prototype.shift.call(arguments)}else c=3;var d=Jh(this.tag);if(0<=d){if(d<c)return}else if(Ih<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):
446
- 1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.v(Wv);for(var e=d.next();!e.done;e=d.next())e=e.value,e.call(e,c,arguments)}};_.r.info=function(a){Array.prototype.unshift.call(arguments,3);this.log.apply(this,arguments)};_.r.debug=function(a){Array.prototype.unshift.call(arguments,4);this.log.apply(this,arguments)};_.r.warn=function(a){Array.prototype.unshift.call(arguments,2);this.log.apply(this,arguments)};
447
- _.r.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.r.Sl=function(a){return a?this.tag?new _.L(this.tag+"."+a):new _.L(a):this};_.J("clpp.log.Logger",_.L);_.L.prototype.createChild=_.L.prototype.Sl;_.L.prototype.error=_.L.prototype.error;_.L.prototype.warn=_.L.prototype.warn;_.L.prototype.debug=_.L.prototype.debug;_.L.prototype.info=_.L.prototype.info;_.L.prototype.log=_.L.prototype.log;var Nh=new _.L("clpp");_.J("clpp.log.info",_.Oh);
448
- _.J("clpp.log.debug",_.Ph);_.J("clpp.log.warn",_.Kh);_.J("clpp.log.error",_.Qh);_.Th=new _.L("clpp.players");_.Sh={};_.ij={IDLE:0,STOPPING:1,Ep:2,ERROR:3,READY:4,SEEKING:5,BUFFERING:6,PLAY:7,PLAYING:8,Fp:9,PAUSED:10,ENDED:11};_.J("clpp.events.ERROR",_.le);_.J("clpp.events.LOADEDMETADATA",_.Fe);_.J("clpp.events.BUFFERING_ENDED",_.cd);_.J("clpp.events.BUFFERING_STARTED",_.dd);_.J("clpp.events.STATE_CHANGED",dg);_.J("clpp.events.AUDIO_TRACK_CHANGED",_.Zc);_.J("clpp.events.TEXT_TRACK_CHANGED",_.pg);_.J("clpp.events.VIDEO_TRACK_CHANGED",_.Qg);_.J("clpp.events.BITRATE_CHANGED",_.ad);_.J("clpp.events.TRACKS_ADDED",_.vg);_.J("clpp.events.TRACKS_REMOVED","tracksremoved");_.J("clpp.events.LOAD_START",Ge);
449
- _.J("clpp.events.RELEASING",_.Mf);_.J("clpp.events.RELEASED",Lf);_.J("clpp.events.DESTROYING","destroying");_.J("clpp.events.DESTROYED","destroyed");_.J("clpp.events.VIDEO_BUFFER_CHANGED",_.Pg);_.J("clpp.events.AUDIO_BUFFER_CHANGED",_.Yc);_.J("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.J("clpp.events.DRM_SESSION_CREATED",be);_.J("clpp.events.DRM_SESSION_UPDATE",_.de);_.J("clpp.events.DRM_SESSION_PERSISTED",_.ce);_.J("clpp.events.DRM_RENEWAL_STARTED",ae);
450
- _.J("clpp.events.DRM_EXPIRATION_UPDATE",_.Zd);_.J("clpp.events.DRM_LICENSE_REQUESTED",$d);_.J("clpp.events.AUTOPLAY_NOT_ALLOWED",_.$c);_.J("clpp.events.PLAY",_.hf);_.J("clpp.events.SEEKING",_.Wf);_.J("clpp.events.SEEKED",_.Vf);_.J("clpp.events.USER_SEEKING",_.Fg);_.J("clpp.events.USER_SEEKED",_.Eg);var ej={SEEKING:1,NO_DATA:2};_.J("clpp.events.BufferingReasons",ej);_.J("clpp.events.ADS_TIMELINE_CHANGED",_.Dc);_.J("clpp.events.AD_LOADED",_.qc);_.J("clpp.events.AD_BREAK_STARTED",_.gc);
451
- _.J("clpp.events.AD_STARTED",_.yc);_.J("clpp.events.AD_BUFFERING",_.ic);_.J("clpp.events.AD_PROGRESS",_.uc);_.J("clpp.events.AD_FIRST_QUARTILE",_.lc);_.J("clpp.events.AD_MIDPOINT",_.rc);_.J("clpp.events.AD_THIRD_QUARTILE",_.Bc);_.J("clpp.events.AD_PAUSED",_.tc);_.J("clpp.events.AD_RESUMED",_.vc);_.J("clpp.events.AD_SKIPPED",_.wc);_.J("clpp.events.AD_CLICKED",_.jc);_.J("clpp.events.AD_IMPRESSION",_.pc);_.J("clpp.events.AD_COMPLETED",_.kc);_.J("clpp.events.AD_STOPPED",_.Ac);
452
- _.J("clpp.events.AD_BREAK_STOPPED",_.hc);_.J("clpp.events.AD_HLS_ASSET_LIST_REQUEST",mc);_.J("clpp.events.AD_HLS_ASSET_LIST_RESPONSE",nc);_.J("clpp.events.AD_HLS_RESOLVED",oc);_.J("clpp.events.SIMID_CREATIVE_STARTED",_.Yf);_.J("clpp.events.SIMID_CREATIVE_STOPPED",_.Zf);_.J("clpp.events.CASTING_STARTED",_.hd);_.J("clpp.events.CASTING_ENDED","castingended");_.J("clpp.events.CAST_STATUS_CHANGED",_.id);_.J("clpp.events.CAST_VISIBILITY_CHANGED",_.jd);_.J("clpp.events.AIRPLAY_STATUS_CHANGED",_.Gc);
453
- _.J("clpp.events.AIRPLAY_CASTING_STARTED",_.Fc);_.J("clpp.events.AIRPLAY_CASTING_ENDED",_.Ec);_.J("clpp.events.TIMELINE_CUE_ADDED",_.qg);_.J("clpp.events.TIMELINE_CUE_ENTER",_.rg);_.J("clpp.events.TIMELINE_CUE_EXIT",_.sg);_.J("clpp.events.TIMELINE_CUES_CHANGED",_.tg);_.J("clpp.events.MPD_TYPE_CHANGED",_.Pe);_.J("clpp.events.LIVE_TURNED_STATIC",_.Ce);_.J("clpp.events.VIMOND_RESPONSE",_.Rg);_.J("clpp.events.PLAYLIST_ITEM_CHANGED",_.vf);_.J("clpp.events.PLAYLIST_MODIFIED",_.wf);
454
- _.J("clpp.events.SC_PLAYLIST_TIMELINE_CHANGED",_.Uf);_.J("clpp.events.SC_PLAYLIST_ITEM_CHANGED",_.Sf);_.J("clpp.events.SC_PLAYLIST_ENDED",_.Rf);_.J("clpp.events.SC_PLAYLIST_LIVE_TURNED_STATIC",_.Tf);_.J("clpp.events.CDN_SWITCH_SUCCESS",_.kd);_.J("clpp.events.ONLINE_STATUS_CHANGED",$e);_.J("clpp.events.CMSD_EVENT","cmsd-event");_.J("clpp.events.YOSPACE_SESSION_STARTED",_.fh);_.J("clpp.events.YOSPACE_SESSION_ENDED",_.eh);_.Wh.prototype.ia=function(a){return Xh(this,a,!1)};_.Wh.prototype.Qb=function(a){return Xh(this,a,!0)};_.Wh.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.Yh.prototype.rh=function(){this.stop();this.f();return this};_.Yh.prototype.ia=function(a){var b=this;this.stop();this.a=(new _.Wh(function(){b.f()})).ia(a);return this};_.Yh.prototype.Qb=function(a){var b=this;this.stop();this.a=(new _.Wh(function(){b.f()})).Qb(a);return this};_.Yh.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.J("clpp.utils.Timer",_.Yh);_.Yh.prototype.stop=_.Yh.prototype.stop;_.Yh.prototype.tickEvery=_.Yh.prototype.Qb;_.Yh.prototype.tickAfter=_.Yh.prototype.ia;
455
- _.Yh.prototype.tickNow=_.Yh.prototype.rh;_.r=$h.prototype;_.r.load=function(a){var b=this;return _.I(function(c){return b.dd?_.x(c,di(b,function(d){return _.I(function(e){return _.x(e,d.open(a),0)})}),0):(b.Ea.warn("No main player, cannot load."),c["return"]())})};_.r.Wo=function(a){this.j=a;this.Ea.info("Looping set to",a)};_.r.pk=function(a){this.f.push(a)};
456
- _.r.nk=function(a){if(this.dd)this.Ea.warn("Main player already set.");else{this.dd=a;var b=this.jn.bind(this),c=this.kn.bind(this),d=this.Dk.bind(this);a.on(_.tf,b);a.on(_.ug,c);a.on(_.ke,d);this.h.push(function(){a.off(_.tf,b);a.off(_.ug,c);a.off(_.ke,d)})}};_.r.clear=function(){this.dd=null;this.f=[];this.h.forEach(function(a){return a()});this.h=[]};
457
- _.r.Dk=function(){var a=this;return _.I(function(b){if(!a.j)return b.C(0);a.Ea.info("Looping playback.");return _.x(b,di(a,function(c){return _.I(function(d){return 1==d.a?_.x(d,c.setPosition(0),2):_.x(d,c.play(),0)})}),0)})};
458
- _.r.jn=function(a){var b=this;this.a||(a=a.detail.currentState,8===a?(this.Ea.info("Mirroring playing."),ci(this,function(c){return _.I(function(d){return _.x(d,c.play(),0)})})):[10,6,3].includes(a)&&(this.Ea.info("Mirroring paused/buffering/error."),ci(this,function(c){var d,e;return _.I(function(f){if(1==f.a)return d=Math.round(b.dd.getPosition())-.1,_.x(f,c.setPosition(d),2);if(3!=f.a)return _.x(f,Zh(.2),3);e=c.getPlayerState();return 8!==e&&6!==e?f.C(0):_.x(f,c.pause(),0)})})))};
459
- _.r.kn=function(){var a=this;this.a||ci(this,function(b){var c,d,e,f,g,k,l;return _.I(function(m){switch(m.a){case 1:if(!b.isPaused()){m.C(2);break}return _.x(m,b.play(),2);case 2:c=a.dd.getPosition();d=b.getPosition();e=c-d;f=Math.abs(e);g=b.Cc();k=b.getPlayerState();if(8!==k||.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.C(4);break}b.Wd(1);return _.x(m,b.setPosition(c),5);case 5:return m["return"]();case 4:if(g===l)return 1!==
460
- l&&a.Ea.info("Delta "+e.toFixed(1)+" s."),m["return"]();1===l?a.Ea.info("Secondary caught up."):1>l?a.Ea.info("Secondary slowing down to catch up. Rate: "+(l.toFixed(1)+", delta: "+e.toFixed(1)+" s")):1<l&&a.Ea.info("Secondary speeding up to catch up. Rate: "+(l.toFixed(1)+", delta: "+e.toFixed(1)+" s"));b.Wd(l);_.z(m)}})})};_.J(vd,$h);$h.prototype.clear=$h.prototype.clear;$h.prototype.addMainPlayer=$h.prototype.nk;$h.prototype.addSecondaryPlayer=$h.prototype.pk;$h.prototype.setLoop=$h.prototype.Wo;
447
+ 1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.v(mw);for(var e=d.next();!e.done;e=d.next())e=e.value,e.call(e,c,arguments)}};_.r.info=function(a){Array.prototype.unshift.call(arguments,3);this.log.apply(this,arguments)};_.r.debug=function(a){Array.prototype.unshift.call(arguments,4);this.log.apply(this,arguments)};_.r.warn=function(a){Array.prototype.unshift.call(arguments,2);this.log.apply(this,arguments)};
448
+ _.r.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.r.Tl=function(a){return a?this.tag?new _.L(this.tag+"."+a):new _.L(a):this};_.J("clpp.log.Logger",_.L);_.L.prototype.createChild=_.L.prototype.Tl;_.L.prototype.error=_.L.prototype.error;_.L.prototype.warn=_.L.prototype.warn;_.L.prototype.debug=_.L.prototype.debug;_.L.prototype.info=_.L.prototype.info;_.L.prototype.log=_.L.prototype.log;var Nh=new _.L("clpp");_.J("clpp.log.info",_.Oh);
449
+ _.J("clpp.log.debug",_.Ph);_.J("clpp.log.warn",_.Kh);_.J("clpp.log.error",_.Qh);_.Th=new _.L("clpp.players");_.Sh={};_.ij={IDLE:0,STOPPING:1,Fp:2,ERROR:3,READY:4,SEEKING:5,BUFFERING:6,PLAY:7,PLAYING:8,Gp:9,PAUSED:10,ENDED:11};_.J("clpp.events.ERROR",_.le);_.J("clpp.events.LOADEDMETADATA",_.Fe);_.J("clpp.events.BUFFERING_ENDED",_.cd);_.J("clpp.events.BUFFERING_STARTED",_.dd);_.J("clpp.events.STATE_CHANGED",eg);_.J("clpp.events.AUDIO_TRACK_CHANGED",_.Zc);_.J("clpp.events.TEXT_TRACK_CHANGED",_.pg);_.J("clpp.events.VIDEO_TRACK_CHANGED",_.Qg);_.J("clpp.events.BITRATE_CHANGED",_.ad);_.J("clpp.events.TRACKS_ADDED",_.vg);_.J("clpp.events.TRACKS_REMOVED","tracksremoved");_.J("clpp.events.LOAD_START",Ge);
450
+ _.J("clpp.events.RELEASING",_.Nf);_.J("clpp.events.RELEASED",Mf);_.J("clpp.events.DESTROYING","destroying");_.J("clpp.events.DESTROYED","destroyed");_.J("clpp.events.VIDEO_BUFFER_CHANGED",_.Pg);_.J("clpp.events.AUDIO_BUFFER_CHANGED",_.Yc);_.J("clpp.events.DRM_SESSION_CREATED",be);_.J("clpp.events.DRM_SESSION_UPDATE",_.de);_.J("clpp.events.DRM_SESSION_PERSISTED",_.ce);_.J("clpp.events.DRM_RENEWAL_STARTED",ae);_.J("clpp.events.DRM_EXPIRATION_UPDATE",_.Zd);_.J("clpp.events.DRM_LICENSE_REQUESTED",$d);
451
+ _.J("clpp.events.AUTOPLAY_NOT_ALLOWED",_.$c);_.J("clpp.events.PLAY",_.jf);_.J("clpp.events.SEEKING",_.Xf);_.J("clpp.events.SEEKED",_.Wf);_.J("clpp.events.USER_SEEKING",_.Fg);_.J("clpp.events.USER_SEEKED",_.Eg);var ej={SEEKING:1,NO_DATA:2};_.J("clpp.events.BufferingReasons",ej);_.J("clpp.events.ADS_TIMELINE_CHANGED",_.Dc);_.J("clpp.events.AD_LOADED",_.qc);_.J("clpp.events.AD_BREAK_STARTED",_.gc);_.J("clpp.events.AD_STARTED",_.xc);_.J("clpp.events.AD_BUFFERING",_.ic);_.J("clpp.events.AD_PROGRESS",_.uc);
452
+ _.J("clpp.events.AD_FIRST_QUARTILE",_.lc);_.J("clpp.events.AD_MIDPOINT",_.rc);_.J("clpp.events.AD_THIRD_QUARTILE",_.Bc);_.J("clpp.events.AD_PAUSED",_.tc);_.J("clpp.events.AD_RESUMED",_.vc);_.J("clpp.events.AD_SKIPPED",_.wc);_.J("clpp.events.AD_CLICKED",_.jc);_.J("clpp.events.AD_IMPRESSION",_.pc);_.J("clpp.events.AD_COMPLETED",_.kc);_.J("clpp.events.AD_STOPPED",_.zc);_.J("clpp.events.AD_BREAK_STOPPED",_.hc);_.J("clpp.events.AD_HLS_ASSET_LIST_REQUEST",mc);
453
+ _.J("clpp.events.AD_HLS_ASSET_LIST_RESPONSE",nc);_.J("clpp.events.AD_HLS_RESOLVED",oc);_.J("clpp.events.SIMID_CREATIVE_STARTED",_.Zf);_.J("clpp.events.SIMID_CREATIVE_STOPPED",_.$f);_.J("clpp.events.CASTING_STARTED",_.hd);_.J("clpp.events.CASTING_ENDED","castingended");_.J("clpp.events.CAST_STATUS_CHANGED",_.id);_.J("clpp.events.CAST_VISIBILITY_CHANGED",_.jd);_.J("clpp.events.AIRPLAY_STATUS_CHANGED",_.Gc);_.J("clpp.events.AIRPLAY_CASTING_STARTED",_.Fc);_.J("clpp.events.AIRPLAY_CASTING_ENDED",_.Ec);
454
+ _.J("clpp.events.TIMELINE_CUE_ADDED",_.qg);_.J("clpp.events.TIMELINE_CUE_ENTER",_.rg);_.J("clpp.events.TIMELINE_CUE_EXIT",_.sg);_.J("clpp.events.TIMELINE_CUES_CHANGED",_.tg);_.J("clpp.events.MPD_TYPE_CHANGED",_.Pe);_.J("clpp.events.LIVE_TURNED_STATIC",_.Ce);_.J("clpp.events.VIMOND_RESPONSE",_.Rg);_.J("clpp.events.PLAYLIST_ITEM_CHANGED",_.wf);_.J("clpp.events.PLAYLIST_MODIFIED",_.xf);_.J("clpp.events.SC_PLAYLIST_TIMELINE_CHANGED",_.Vf);_.J("clpp.events.SC_PLAYLIST_ITEM_CHANGED",_.Tf);
455
+ _.J("clpp.events.SC_PLAYLIST_ENDED",_.Sf);_.J("clpp.events.SC_PLAYLIST_LIVE_TURNED_STATIC",_.Uf);_.J("clpp.events.CDN_SWITCH_SUCCESS",_.kd);_.J("clpp.events.ONLINE_STATUS_CHANGED",af);_.J("clpp.events.CMSD_EVENT","cmsd-event");_.J("clpp.events.YOSPACE_SESSION_STARTED",_.fh);_.J("clpp.events.YOSPACE_SESSION_ENDED",_.eh);_.Wh.prototype.ia=function(a){return Xh(this,a,!1)};_.Wh.prototype.Qb=function(a){return Xh(this,a,!0)};_.Wh.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.Yh.prototype.sh=function(){this.stop();this.f();return this};_.Yh.prototype.ia=function(a){var b=this;this.stop();this.a=(new _.Wh(function(){b.f()})).ia(a);return this};_.Yh.prototype.Qb=function(a){var b=this;this.stop();this.a=(new _.Wh(function(){b.f()})).Qb(a);return this};_.Yh.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.J("clpp.utils.Timer",_.Yh);_.Yh.prototype.stop=_.Yh.prototype.stop;_.Yh.prototype.tickEvery=_.Yh.prototype.Qb;_.Yh.prototype.tickAfter=_.Yh.prototype.ia;
456
+ _.Yh.prototype.tickNow=_.Yh.prototype.sh;_.r=$h.prototype;_.r.load=function(a){var b=this;return _.I(function(c){return b.dd?_.x(c,di(b,function(d){return _.I(function(e){return _.x(e,d.open(a),0)})}),0):(b.Ea.warn("No main player, cannot load."),c["return"]())})};_.r.Xo=function(a){this.j=a;this.Ea.info("Looping set to",a)};_.r.qk=function(a){this.f.push(a)};
457
+ _.r.pk=function(a){if(this.dd)this.Ea.warn("Main player already set.");else{this.dd=a;var b=this.kn.bind(this),c=this.ln.bind(this),d=this.Ek.bind(this);a.on(_.uf,b);a.on(_.ug,c);a.on(_.ke,d);this.h.push(function(){a.off(_.uf,b);a.off(_.ug,c);a.off(_.ke,d)})}};_.r.clear=function(){this.dd=null;this.f=[];this.h.forEach(function(a){return a()});this.h=[]};
458
+ _.r.Ek=function(){var a=this;return _.I(function(b){if(!a.j)return b.C(0);a.Ea.info("Looping playback.");return _.x(b,di(a,function(c){return _.I(function(d){return 1==d.a?_.x(d,c.setPosition(0),2):_.x(d,c.play(),0)})}),0)})};
459
+ _.r.kn=function(a){var b=this;this.a||(a=a.detail.currentState,8===a?(this.Ea.info("Mirroring playing."),ci(this,function(c){return _.I(function(d){return _.x(d,c.play(),0)})})):[10,6,3].includes(a)&&(this.Ea.info("Mirroring paused/buffering/error."),ci(this,function(c){var d,e;return _.I(function(f){if(1==f.a)return d=Math.round(b.dd.getPosition())-.1,_.x(f,c.setPosition(d),2);if(3!=f.a)return _.x(f,Zh(.2),3);e=c.getPlayerState();return 8!==e&&6!==e?f.C(0):_.x(f,c.pause(),0)})})))};
460
+ _.r.ln=function(){var a=this;this.a||ci(this,function(b){var c,d,e,f,g,k,l;return _.I(function(m){switch(m.a){case 1:if(!b.isPaused()){m.C(2);break}return _.x(m,b.play(),2);case 2:c=a.dd.getPosition();d=b.getPosition();e=c-d;f=Math.abs(e);g=b.Cc();k=b.getPlayerState();if(8!==k||.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.C(4);break}b.Wd(1);return _.x(m,b.setPosition(c),5);case 5:return m["return"]();case 4:if(g===l)return 1!==
461
+ l&&a.Ea.info("Delta "+e.toFixed(1)+" s."),m["return"]();1===l?a.Ea.info("Secondary caught up."):1>l?a.Ea.info("Secondary slowing down to catch up. Rate: "+(l.toFixed(1)+", delta: "+e.toFixed(1)+" s")):1<l&&a.Ea.info("Secondary speeding up to catch up. Rate: "+(l.toFixed(1)+", delta: "+e.toFixed(1)+" s"));b.Wd(l);_.z(m)}})})};_.J(vd,$h);$h.prototype.clear=$h.prototype.clear;$h.prototype.addMainPlayer=$h.prototype.pk;$h.prototype.addSecondaryPlayer=$h.prototype.qk;$h.prototype.setLoop=$h.prototype.Xo;
461
462
  $h.prototype.load=$h.prototype.load;_.w(_.O,Error);_.O.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=fi(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);_.Q=2;_.O.Severity={RECOVERABLE:1,FATAL:_.Q};_.O.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
462
463
  _.O.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_MODIFIER_ERROR:1006,RESPONSE_MODIFIER_ERROR:1007,MALFORMED_TEST_URI:1008,MALFORMED_URL:1011,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,FETCH_OR_APPEND_ERROR:2010,INVALID_MP4:2011,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,
463
464
  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,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,
@@ -476,74 +477,74 @@ M.set(8001,6E3);M.set(8002,6003);M.set(8003,6008);M.set(8004,6005);M.set(9E3,990
476
477
  var zi=null,yi=null,Bi=new _.L(Bd),Ii="android",Hi="ios",Ni="linux",Ji="osx",Ki="windows",Li="tizen",Mi="webos",Gi=_.Ag,Ri=_.Ag,Pi={windows:{os_version:/windows\s+?nt\s([\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,chrome:/macintosh.+?chrome\/([\d._]+)/i,
477
478
  firefox:/macintosh.+?firefox\/([\d._]+)/i,opera:/macintosh.+?opr\/([\d._]+)/i},unknown:{edge:/.+?edge?\/([\d.]+)/i,safari:/.+?version\/([\d._]+).+?safari/i,chrome:/.+?chrome\/([\d._]+)/i,firefox:/.+?firefox\/([\d._]+)/i,opera:/.+?opr\/([\d._]+)/i},android:{os_version:/android.+?([\d._]+)/i,chrome:/android.+?chrome\/([\d._]+)/i,firefox:/android.+?firefox\/([\d._]+)/i,opera:/android.+?opr\/([\d._]+)/i},ios:{os_version:/(?:iPad|iPhone).+?([\d._]+)/i,chrome:/.+?CriOS\/([\d._]+)/i,firefox:/.+?FxiOS\/([\d._]+)/i,
478
479
  safari:/.+?version\/([\d._]+).+?safari/i,opera:/.+?opr\/([\d._]+)/i},linux:{os_version:/linux.+?([\d._]+)/i,safari:/linux.+?version\/([\d._]+).+?safari/i,chrome:/linux.+?chrome\/([\d._]+)/i,firefox:/linux.+?firefox\/([\d._]+)/i,opera:/linux.+?opr\/([\d._]+)/i},tizen:{os_version:/tizen.+?([\d._]+)/i,safari:/linux.+?version\/([\d._]+).+?safari/i,chrome:/linux.+?chrome\/([\d._]+)/i,firefox:/linux.+?firefox\/([\d._]+)/i,opera:/linux.+?opr\/([\d._]+)/i},webos:{os_version:/linux.+?([\d._]+)/i,safari:/linux.+?version\/([\d._]+).+?safari/i,
479
- chrome:/linux.+?chrome\/([\d._]+)/i,firefox:/linux.+?firefox\/([\d._]+)/i,opera:/linux.+?opr\/([\d._]+)/i}};_.J("clpp.utils.BufferUtils",Ti);Ti.toArrayBuffer=bj;Ti.toDataView=_.aj;Ti.toInt32Array=_.$i;Ti.toUint32Array=Zi;Ti.toUint16Array=Yi;Ti.toUint8Array=_.Vi;Ti.equal=Wi;_.S={};_.S.Ea=new _.L("clpp.utils.strings");_.S.hk=16E3;_.S.fromCharCode=function(a){for(var b=_.S.hk,c="",d=0;d<a.length;d+=b)c+=String.fromCharCode.apply(null,a.subarray(d,d+b));return c};_.S.ga=function(a){if(!a)return"";a=_.Vi(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(Ma);return a}a=escape(_.S.fromCharCode(a));try{return decodeURIComponent(a)}catch(b){throw Error(Ma);}};
480
+ chrome:/linux.+?chrome\/([\d._]+)/i,firefox:/linux.+?firefox\/([\d._]+)/i,opera:/linux.+?opr\/([\d._]+)/i}};_.J("clpp.utils.BufferUtils",Ti);Ti.toArrayBuffer=bj;Ti.toDataView=_.aj;Ti.toInt32Array=_.$i;Ti.toUint32Array=Zi;Ti.toUint16Array=Yi;Ti.toUint8Array=_.Vi;Ti.equal=Wi;_.S={};_.S.Ea=new _.L("clpp.utils.strings");_.S.ik=16E3;_.S.fromCharCode=function(a){for(var b=_.S.ik,c="",d=0;d<a.length;d+=b)c+=String.fromCharCode.apply(null,a.subarray(d,d+b));return c};_.S.ga=function(a){if(!a)return"";a=_.Vi(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(Ma);return a}a=escape(_.S.fromCharCode(a));try{return decodeURIComponent(a)}catch(b){throw Error(Ma);}};
480
481
  _.J("clpp.utils.strings.fromUtf8",_.S.ga);
481
482
  _.S.Xc=function(a,b,c){if(!a)return"";var d=_.S.Ea;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=_.Vi(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(_.Vi(a)),d=c.buffer);a=Math.floor(a.byteLength/2);c=new Uint16Array(a);d=new DataView(d);for(var e=0;e<a;e++)c[e]=d.getUint16(2*e,b);return _.S.fromCharCode(c)};
482
483
  _.S.ve=function(a,b){if(_.N.ja(a))return a;var c="",d=!!b,e=_.Vi(a);239===e[0]&&187===e[1]&&191===e[2]?c=_.S.ga(e):254===e[0]&&255===e[1]?c=_.S.Xc(e.subarray(2),!1):255===e[0]&&254===e[1]&&(c=_.S.Xc(e.subarray(2),!0));var f=function(g,k){return g.byteLength<=k||32<=g[k]&&126>=g[k]}.bind(null,e);_.S.Ea.debug("Unable to find byte-order-mark, making an educated guess.");0===e[0]&&0===e[2]?c=_.S.Xc(a,!1):0===e[1]&&0===e[3]?c=_.S.Xc(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.S.ga(a));if(c)return d&&(c=escape(c)),
483
484
  c;throw Error("Unable to detect text encoding");};_.J("clpp.utils.strings.fromBytesAutoDetect",_.S.ve);_.S.sb=function(a){if("TextEncoder"in window)return(new TextEncoder).encode(a);a=encodeURIComponent(a);a=unescape(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b};_.J("clpp.utils.strings.toUtf8",_.S.sb);_.S.eg=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};
484
485
  _.J("clpp.utils.strings.toUtf16",_.S.eg);_.S.kd=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=Zi(e):2===c?f=Yi(e):f=_.Vi(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};_.J("clpp.utils.strings.toByteArray",_.S.kd);_.S.startsWith=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.J("clpp.utils.strings.startsWith",_.S.startsWith);
485
- _.S.endsWith=function(a,b){if(String.prototype.endsWith)return a.endsWith(b);var c=a.length-b.length,d=a.lastIndexOf(b,c);return-1!==d&&d===c};_.J("clpp.utils.strings.endsWith",_.S.endsWith);_.S.Of=function(a){return!!(a&&0<a.length)};_.S.empty=function(a){return!a||0===a.length};_.S.Rp=function(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()};_.S.Up=function(a){return a.replace(/-(\w)/g,function(b,c){return c.toUpperCase()})};
486
- _.S.ug=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",_.S.ug);
487
- _.S.$l=function(a,b){function c(k){return function(l,m){return d(k,m.length-1)}}function d(k,l){return k.length<l?d("0"+k,l):k}b=void 0===b?"%h:%mm:%ss":b;if(null===a||void 0===a)a=0;if(null===b||void 0===b)b="%h:%mm:%ss";var e=Math.floor(a/3600),f=Math.floor((a-3600*e)/60),g=Math.floor(a-3600*e-60*f);return b.replace(/(%h+)/,c(String(e))).replace(/(%m+)/,c(String(f))).replace(/(%s+)/,c(String(g)))};_.J("clpp.utils.strings.durationToString",_.S.$l);
488
- _.S.Uc=function(a,b){for(var c in b)if(b[c]===a)return c;return""};_.S.Jm=function(a){var b=0;if(0===a.length)return b;for(var c=0;c<a.length;c++)b=(b<<5)-b+a.charCodeAt(c),b|=0;return b};_.J("clpp.utils.strings.hashCode",_.S.Jm);_.S.mp=function(a){_.S.Qj.innerHTML=a;return _.S.Qj.textContent};_.S.Qj=document.createElement("span");_.S.oh=function(a){a=a.replace(/<[^>]+>/gi,"");a=_.S.mp(a);return a=a.replace(/<[^>]+>/gi,"")};
489
- _.S.Vj=function(a){if(null===a||void 0===a||""===a)return null;a=Number(a);return isNaN(a)?null:a};_.S.ej=function(a){return a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")};dj.prototype.getState=function(){return this.f};dj.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.m.namespace());this.a.release()};kj.prototype.release=function(){this.j.release();this.a=new Set;this.f.clear();null!=this.h&&(clearInterval(this.h),this.h=null)};kj.prototype.destroy=function(){var a=this;return _.I(function(b){a.release();_.z(b)})};kj.prototype.getTimelineCues=function(){return Array.from(this.a.values()).sort(function(a,b){return a.startTime-b.startTime})};_.Qj.prototype.va=function(a){return this.payload===a.payload&&this.startTime===a.startTime&&this.endTime===a.endTime&&this.payloadType===a.payloadType};_.J("clpp.text.Cue",_.Qj);_.Qj.positionAlign={LEFT:_.Ae,RIGHT:_.Be,CENTER:_.md,AUTO:"auto"};_.Kj=_.mg;_.Qj.payloadType={TEXT:_.Kj,VTT_XML:_.Tg,TTML_XML:_.xg};_.Lj=_.md;_.Xv={LEFT:_.xe,RIGHT:_.Qf,CENTER:_.Lj,START:_.cg,END:_.ie};_.Qj.textAlign=_.Xv;var Pj="ltr";_.Qj.direction={HORIZONTAL_LEFT_TO_RIGHT:Pj,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.Mj="horizontal-tb";
490
- _.Qj.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Mj,VERTICAL_LEFT_TO_RIGHT:_.Ig,VERTICAL_RIGHT_TO_LEFT:_.Jg};_.Nj=0;_.Qj.lineInterpretation={LINE_NUMBER:_.Nj,PERCENTAGE:1};_.Oj=_.cg;_.Yv={CENTER:_.md,START:_.Oj,END:_.ie};_.Qj.lineAlign=_.Yv;_.J("clpp.text.CueRegion",_.Tj);_.Rj=1;_.Tj.units={PX:0,PERCENTAGE:_.Rj,LINES:2};var Sj="";_.Tj.scrollMode={NONE:Sj,UP:"up"};_.Tj.displayAlign={BEFORE:"flex-end",CENTER:_.md,AFTER:"flex-start"};
491
- _.Tj.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Dd,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};Uj.prototype.destroy=function(){this.a.release();this.j=!1;this.l=this.a=this.h=this.f=null;return Promise.resolve()};Uj.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,_.Cc,function(c){return Vj(b,c)}),this.a.on(this.f,od,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.Xf&&(e.mode=_.re)}}))};
492
- Uj.prototype.o=function(a){var b=new _.Qj(a.startTime,a.endTime,a.text,_.Tg);if(_.N.ja(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Ig;break;case "rl":b.writingMode=_.Jg}_.N.ya(a.size)&&(b.size=a.size);if(_.N.ja(a.align))switch(a.align){case _.xe:case _.cg:b.textAlign=_.cg;break;case _.md:b.textAlign=_.Lj;break;case _.Qf:case _.ie:b.textAlign=_.ie}_.N.ya(a.position)&&(b.position=a.position);if(_.N.ja(a.positionAlign))switch(a.positionAlign){case _.Ae:b.positionAlign=_.Ae;break;case _.md:b.positionAlign=
493
- _.md;break;case _.Be:b.positionAlign=_.Be}_.N.ya(a.line)&&(b.line=a.line);if(_.N.ja(a.lineAlign))switch(a.lineAlign){case _.cg:b.lineAlign=_.Oj;break;case _.md:b.lineAlign=_.md;break;case _.ie:b.lineAlign=_.ie}_.N.Si(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.Nj:1);return b};_.bk.prototype.toString=function(){var a=this.a.toString();return this.f?a.replace(Zv,""):a};var Zv=/^[A-Za-z]+:/;_.J("clpp.utils.url.queryString",_.ek);var ik;_.jk=_.mg;_.Uq={VIDEO:_.Lg,AUDIO:_.Rc,TEXT:_.jk,wp:_.Hc,IMAGE:_.ue,Ch:_.jg};_.$v=1/15;ik={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/]};ik[_.jk]=[/^vtt$/,/^wvtt/,/^stpp/];var lk={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av0?1/],text:[/^vtt$/,/^wvtt/,/^stpp/]};_.nk={text:{mp4:_.Kc,m4s:_.Kc,m4i:_.Kc,cmft:_.Kc,vtt:_.ng,ttml:_.Oc},video:{mp4:_.Og,m4s:_.Og,m4f:_.Og,m4i:_.Og,m4v:_.Og,cmfv:_.Og,ts:_.Ng},audio:{mp4:_.Wc,m4s:_.Wc,m4f:_.Wc,m4i:_.Wc,m4a:_.Wc,cmfa:_.Wc,ts:_.Ng,aac:_.Tc,ec3:_.Vc,ac3:_.Uc},image:{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.pk.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};_.pk.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name===a});return b.length?b[0]:null};_.pk.prototype.hasAttribute=function(a){return null!=this.getAttribute(a)};_.uk.prototype.getPosition=function(){return this.position};_.uk.prototype.Ae=function(){return this.fa?this.fa-this.la+1:null};_.uk.prototype.f=_.hh(0);_.w(_.vk,_.uk);var Jk=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",
486
+ _.S.endsWith=function(a,b){if(String.prototype.endsWith)return a.endsWith(b);var c=a.length-b.length,d=a.lastIndexOf(b,c);return-1!==d&&d===c};_.J("clpp.utils.strings.endsWith",_.S.endsWith);_.S.Of=function(a){return!!(a&&0<a.length)};_.S.empty=function(a){return!a||0===a.length};_.S.Sp=function(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()};_.S.Vp=function(a){return a.replace(/-(\w)/g,function(b,c){return c.toUpperCase()})};
487
+ _.S.vg=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",_.S.vg);
488
+ _.S.am=function(a,b){function c(k){return function(l,m){return d(k,m.length-1)}}function d(k,l){return k.length<l?d("0"+k,l):k}b=void 0===b?"%h:%mm:%ss":b;if(null===a||void 0===a)a=0;if(null===b||void 0===b)b="%h:%mm:%ss";var e=Math.floor(a/3600),f=Math.floor((a-3600*e)/60),g=Math.floor(a-3600*e-60*f);return b.replace(/(%h+)/,c(String(e))).replace(/(%m+)/,c(String(f))).replace(/(%s+)/,c(String(g)))};_.J("clpp.utils.strings.durationToString",_.S.am);
489
+ _.S.Uc=function(a,b){for(var c in b)if(b[c]===a)return c;return""};_.S.Km=function(a){var b=0;if(0===a.length)return b;for(var c=0;c<a.length;c++)b=(b<<5)-b+a.charCodeAt(c),b|=0;return b};_.J("clpp.utils.strings.hashCode",_.S.Km);_.S.np=function(a){_.S.Rj.innerHTML=a;return _.S.Rj.textContent};_.S.Rj=document.createElement("span");_.S.ph=function(a){a=a.replace(/<[^>]+>/gi,"");a=_.S.np(a);return a=a.replace(/<[^>]+>/gi,"")};
490
+ _.S.Wj=function(a){if(null===a||void 0===a||""===a)return null;a=Number(a);return isNaN(a)?null:a};_.S.fj=function(a){return a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")};dj.prototype.getState=function(){return this.f};dj.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.m.namespace());this.a.release()};kj.prototype.release=function(){this.j.release();this.a=new Set;this.f.clear();null!=this.h&&(clearInterval(this.h),this.h=null)};kj.prototype.destroy=function(){var a=this;return _.I(function(b){a.release();_.z(b)})};kj.prototype.getTimelineCues=function(){return Array.from(this.a.values()).sort(function(a,b){return a.startTime-b.startTime})};_.Qj.prototype.va=function(a){return this.payload===a.payload&&this.startTime===a.startTime&&this.endTime===a.endTime&&this.payloadType===a.payloadType};_.J("clpp.text.Cue",_.Qj);_.Qj.positionAlign={LEFT:_.Ae,RIGHT:_.Be,CENTER:_.md,AUTO:"auto"};_.Kj=_.mg;_.Qj.payloadType={TEXT:_.Kj,VTT_XML:_.Tg,TTML_XML:_.xg};_.Lj=_.md;_.nw={LEFT:_.xe,RIGHT:_.Rf,CENTER:_.Lj,START:_.dg,END:_.je};_.Qj.textAlign=_.nw;var Pj="ltr";_.Qj.direction={HORIZONTAL_LEFT_TO_RIGHT:Pj,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.Mj="horizontal-tb";
491
+ _.Qj.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Mj,VERTICAL_LEFT_TO_RIGHT:_.Ig,VERTICAL_RIGHT_TO_LEFT:_.Jg};_.Nj=0;_.Qj.lineInterpretation={LINE_NUMBER:_.Nj,PERCENTAGE:1};_.Oj=_.dg;_.ow={CENTER:_.md,START:_.Oj,END:_.je};_.Qj.lineAlign=_.ow;_.J("clpp.text.CueRegion",_.Tj);_.Rj=1;_.Tj.units={PX:0,PERCENTAGE:_.Rj,LINES:2};var Sj="";_.Tj.scrollMode={NONE:Sj,UP:"up"};_.Tj.displayAlign={BEFORE:"flex-end",CENTER:_.md,AFTER:"flex-start"};
492
+ _.Tj.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Dd,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};Uj.prototype.destroy=function(){this.a.release();this.f=!1;return Promise.resolve()};Uj.prototype.start=function(a){var b=this;this.f||(this.f=!0,this.a.on(a.textTracks,_.Cc,function(c){return Vj(b,c)}))};
493
+ Uj.prototype.j=function(a){var b=new _.Qj(a.startTime,a.endTime,a.text,_.Tg);if(_.N.ja(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Ig;break;case "rl":b.writingMode=_.Jg}_.N.ya(a.size)&&(b.size=a.size);if(_.N.ja(a.align))switch(a.align){case _.xe:case _.dg:b.textAlign=_.dg;break;case _.md:b.textAlign=_.Lj;break;case _.Rf:case _.je:b.textAlign=_.je}_.N.ya(a.position)&&(b.position=a.position);if(_.N.ja(a.positionAlign))switch(a.positionAlign){case _.Ae:b.positionAlign=_.Ae;break;case _.md:b.positionAlign=
494
+ _.md;break;case _.Be:b.positionAlign=_.Be}_.N.ya(a.line)&&(b.line=a.line);if(_.N.ja(a.lineAlign))switch(a.lineAlign){case _.dg:b.lineAlign=_.Oj;break;case _.md:b.lineAlign=_.md;break;case _.je:b.lineAlign=_.je}_.N.Ti(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.Nj:1);return b};_.bk.prototype.toString=function(){var a=this.a.toString();return this.f?a.replace(pw,""):a};var pw=/^[A-Za-z]+:/;_.J("clpp.utils.url.queryString",_.ek);var ik;_.jk=_.mg;_.Pq={VIDEO:_.Kg,AUDIO:_.Rc,TEXT:_.jk,xp:_.Hc,IMAGE:_.ue,Dh:_.kg};_.qw=1/15;ik={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/]};ik[_.jk]=[/^vtt$/,/^wvtt/,/^stpp/];var lk={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av0?1/],text:[/^vtt$/,/^wvtt/,/^stpp/]};_.nk={text:{mp4:_.Kc,m4s:_.Kc,m4i:_.Kc,cmft:_.Kc,vtt:_.ng,ttml:_.Oc},video:{mp4:_.Og,m4s:_.Og,m4f:_.Og,m4i:_.Og,m4v:_.Og,cmfv:_.Og,ts:_.Mg},audio:{mp4:_.Wc,m4s:_.Wc,m4f:_.Wc,m4i:_.Wc,m4a:_.Wc,cmfa:_.Wc,ts:_.Mg,aac:_.Sc,ec3:_.Vc,ac3:_.Tc},image:{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.pk.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};_.pk.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name===a});return b.length?b[0]:null};_.pk.prototype.hasAttribute=function(a){return null!=this.getAttribute(a)};_.uk.prototype.getPosition=function(){return this.position};_.uk.prototype.Ae=function(){return this.fa?this.fa-this.la+1:null};_.uk.prototype.f=_.hh(0);_.w(_.vk,_.uk);var Kk=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",
494
495
  "cs"],["dan","da"],["deu","de"],[_.Sd,"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",
495
496
  "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",
496
497
  "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",
497
498
  "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",
498
- "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);var Nk=[403,401];_.J("clpp.net.DEFAULT_FATAL_STATUS_CODES",Nk);_.J("clpp.net.makeRequest",_.Tk);_.Sk=6;_.J("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.Sk,CONTENT_STEERING:7});_.J("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.Ab,SW_SECURE_DECODE:_.Bb,HW_SECURE_CRYPTO:Sa,HW_SECURE_DECODE:Ta,HW_SECURE_ALL:Ra});_.J("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.J("clpp.drm.KeySystem",{NONE:_.Re,CLEAR_KEY:_.bf,WIDEVINE:_.Jd,PLAYREADY:_.Hd,FAIRPLAY:_.Fd,PRIMETIME:_.Ed});_.$k={};_.J("clpp.drm.registerDrmEnvironment",_.al);_.Y={Bc:function(a,b){return a.filter(function(c){return c.name===b})},Wj:function(a){var b=/^[a-zA-Z0-9_-]+$/,c=new Set;a.forEach(function(d){var e=_.U(d,"VALUE"),f=_.U(d,_.gb),g=_.U(d,"IMPORT"),k=_.U(d,"QUERYPARAM");if(1!==[f,g,k].filter(Boolean).length||f&&null==e)throw new _.O(_.Q,4,4044,{message:"Invalid tag.",text:d.toString()});d=f||g||k;if(c.has(d))throw new _.O(_.Q,4,4044,'EXT-X-DEFINE redefined variable "'+d+'".');if(!b.test(d))throw new _.O(_.Q,4,4044,'EXT-X-DEFINE invalid variable name "'+
499
- d+'".');c.add(d)})},Gg:function(a,b){var c=Array.isArray(b)?b:[b];return a.filter(function(d){d=_.qk(d,_.Ib);return c.includes(d)})},bd:function(a,b){return a.some(function(c){return c.name===b})},ab: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(_.Q,4,4024,{missingTag:b});return a},Ii:function(a,b){return _.Y.ab(a,b,{required:!0})},xm:function(a,b,c){c=void 0===c?0:c;return(a=_.Y.ab(a,b))?Number(a.value):c},Yp:function(a,b,c){return a.filter(function(d){var e=
500
- d.getAttribute(_.Ib);d=d.getAttribute(_.Qa);return e.value===b&&d.value===c})},yo:function(a){var b=_.Y.ab(a,"EXT-X-TILES");if(!b)return{Ce:1,$e:1,durationPerTile:null};a=_.U(b,"LAYOUT")||"1x1";b=_.U(b,_.Ia);a=_.Mk(a);return{Ce:a.Ce,$e:a.$e,durationPerTile:b?Number(b):null}},Pm:function(a){return/^#(?!EXT)/m.test(a)},Vm:function(a){return/^(#EXT)/.test(a)},Zm:function(a,b){Array.isArray(a)||(a=[a]);a.forEach(function(c){for(var d=_.v(_.Y.cg(c)),e=d.next();!e.done;e=d.next())b(e.value,c)})},cg:function(a){var b=
501
- 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)},Km:function(a){return a.some(function(b){return _.Y.bd(b.$,"EXT-X-ENDLIST")})},vk:function(a){return _.Y.cg(a).filter(_.Y.Ri)},yj:function(a){if(_.Y.ab(a,"EXT-X-ENDLIST"))return _.Tb;a=_.Y.ab(a,"EXT-X-PLAYLIST-TYPE");if(!a)return"LIVE";if(a.value===_.Tb)return _.Tb;if("EVENT"===a.value)return"EVENT";
502
- throw new _.O(_.Q,4,4044,"Invalid EXT-X-PLAYLIST-TYPE value: "+a.value);},gi:function(a){a={AUDIO:_.Rc,VIDEO:_.Lg,SUBTITLES:_.jk,"CLOSED-CAPTIONS":_.jk}[a.toUpperCase()];if(!a)throw new _.O(_.Q,4,4044,"EXT-X-MEDIA tag has an invalid TYPE attribute.");return a},Rl:function(a){var b=_.qk(a,_.Ib).toUpperCase();if(_.Y.gi(b)!==_.jk)return null;a=a.getAttribute("FORCED");a=!(!a||!a.value||"YES"!==a.value.toUpperCase());var c=_.jg;b===_.va&&(c=_.gd);a&&(c=_.ne);return c},uj:function(a,b,c){c=void 0===c?
503
- !1:c;var d=0,e=null;if(a){d=a.split("@");a=Number(d[0]);if(0>=a)throw new _.O(_.Q,4,4044,"Byte range length must be positive.");if(d[1]){if(d=Number(d[1]),0>d)throw new _.O(_.Q,4,4044,"Byte range start byte must not be negative.");}else{if(c)throw new _.O(_.Q,4,4044,"Invalid byte range, offset is required but missing.");if(null==b)throw new _.O(_.Q,4,4044,"Invalid byte range, cannot calculate offset based on previous byte ranges.");d=b+1}e=d+a-1}return{la:d,fa:e}},wj:function(a,b){var c=_.Y.ab(a,
504
- "EXT-X-BYTERANGE");return _.Y.uj(c?c.value:null,b)},xj:function(a){a=_.Y.Ii(a,"EXTINF").value.split(",");var b=Number(a[0]);if(isNaN(b))throw new _.O(_.Q,4,4044,"#EXTINF must be a number.");return{duration:b,title:a[1]||null}},zj:function(a,b){function c(f){return null==f?null:Number(f)}b=void 0===b?{}:b;var d={Qh:!1,Ak:!1,Bk:null,Lm:null,Aj:null},e=_.Y.ab(a,"EXT-X-SERVER-CONTROL",{required:b.Lj});if(!e)return d;d.Qh="YES"===_.U(e,"CAN-BLOCK-RELOAD");d.Ak="YES"===_.U(e,"CAN-SKIP-DATERANGES");d.Bk=
505
- c(_.U(e,"CAN-SKIP-UNTIL"));d.Lm=c(_.U(e,"HOLD-BACK"));d.Aj=c(_.U(e,"PART-HOLD-BACK",void 0,{required:b.Lj}));return d},vj:function(a,b,c){c=void 0===c?!1:c;a=_.U(a,"BYTERANGE");return _.Y.uj(a,b,c)},xo:function(a){var b=_.Y.Bc(a,_.Ka),c=_.Y.Bc(a,_.La);a=_.Y.Bc(a,"EXT-X-IMAGE-STREAM-INF");return{fd:{Kh:_.Y.Gg(b,[_.la,_.Sb]),closedCaptions:_.Y.Gg(b,_.va),ep:_.Y.Gg(b,_.zb)},af:c,Ig:a}},Tl:function(a,b){var c=_.Y.wj(a.$,null);return new _.vk(0,0,0,function(){return[a.a]},c.la,c.fa,0,b)},Em:function(a){var b=
506
- a.S;a=b[0].startTime;b=b[b.length-1].endTime;return{Gc:a,Jf:b,duration:b-a}},Bm:function(a){var b=Infinity,c=Infinity;_.Y.vk(a).forEach(function(d){d=_.Y.Em(d);b=Math.min(b,d.Gc);c=Math.min(c,d.duration)});return{Gc:b,duration:c}},Ri:function(a){return a.type===_.Rc||a.type===_.Lg},cm:function(a){return a.filter(_.Y.Ri)},zm:function(a){return a.map(function(b){return _.Y.Bm(b).duration}).reduce(function(b,c){return b+c},0)},rm:function(a,b){return a&&b?_.fl(a.drmInfos,b.drmInfos)?_.el(a.drmInfos,
507
- b.drmInfos):null:a?a.drmInfos:b?b.drmInfos:null},Vl:function(a,b){return(b?b.Dc():"")+" - "+(a?a.Dc():"")},hi:function(a){return(a.video?a.video.ld:"")+" - "+(a.audio?a.audio.ld:"")},wo:function(a,b,c,d,e){if(b===_.Tb)return{delay:0,Ze:0};b=_.Y.ab(a,"EXT-X-PART-INF");if(c&&b)return e=Number(_.qk(b,"PART-TARGET")),null!=d?{delay:d,Ze:e}:{delay:_.Y.zj(a,{Lj:!0}).Aj,Ze:e};a=_.Y.Ii(a,"EXT-X-TARGETDURATION");a=Number(a.value);e=e||a;return null!=d?{delay:d,Ze:e}:{delay:3*a,Ze:e}},xf:function(a,b){return a+
508
- ":"+b},ip:function(a){var b=_.Y.xf,c=new Map;a.forEach(function(d){var e=b(d.$c(),d.a());c.has(e)?(e=c.get(e),e.includes(d)||e.push(d)):c.set(e,[d])});return c},Ei:function(a){return _.Hk(a||_.zg)},po:function(a){var b=new Map;a=_.v(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=_.U(c,_.Za);d=_.Y.Ei(d);var e=_.qk(c,_.Qa);c=_.qk(c,"INSTREAM-ID");b.has(e)||b.set(e,new Map);b.get(e).set(c,d)}return b},Zl:function(a){return a.filter(function(b){return"mp4a.40.34"!==b})},zo:function(a){if(!a.hasAttribute("FRAME-RATE")&&
509
- !a.hasAttribute(_.wb))return null;var b=_.U(a,"FRAME-RATE");a=_.U(a,_.wb);var c=_.v(a?a.split("x"):[null,null]);a=c.next().value;c=c.next().value;return{frameRate:Kk(b),width:Kk(a),height:Kk(c)}},Ym:function(a){return a.name!==_.Ka?!0:_.U(a,_.Ib)===_.zb},qo:function(a,b,c,d,e){var f=e&&e.Xe,g=e&&e.schemeIdUri,k=_.U(a,"ID");f=_.U(a,"START-DATE")||f;if(null===k||!f)return _.Y.g.warn("Invalid EXT-X-DATERANGE missing mandatory ID or required START-DATE attribute, ignoring the EXT-X-DATERANGE tag.",a),
510
- null;b=d?c-b:-b;d=new Date(f);c=d.getTime()/1E3+b;k={id:k,startTime:c,startDate:d,Xe:f};f=Kk(_.U(a,_.Ia));void 0!==f&&0<=f&&(k.duration=f);f=Kk(_.U(a,"PLANNED-DURATION"));void 0!==f&&0<=f&&(k.plannedDuration=f);g=_.U(a,"CLASS")||g||null;null!==g&&(k.schemeIdUri=g);f=(f=_.U(a,"END-DATE"))?new Date(f):null;null!==f&&f.getTime()>=d.getTime()&&(k.endDate=f);d=_.Y.oo(a)||{};(f=_.U(a,"CUE"))&&(d.CUE=f.split(","));wk(g)&&(f=_.Y.uo(a))&&(d=Object.assign(d,f));_.N.Yb(d)&&(k.customAttributes=d);if(_.N.Mi(e,
511
- k))return _.Y.g.warn("EXT-X-DATERANGE augmented and previous values differ.Ignoring the EXT-X-DATERANGE tag.",a),null;k=_.N.ta(e,k);if(wk(g)&&!xk(k.customAttributes))return _.Y.g.warn("Invalid EXT-X-DATERANGE Interstitial attributes X-ASSET-URI, X-ASSET-LIST"),null;var l;k.endDate?l=k.endDate.getTime()/1E3+b:k.duration?l=c+k.duration:k.plannedDuration?l=c+k.plannedDuration:l=c;k.endTime=l;k.type=_.zj;return k},oo:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.v(b);for(var c=b.next();!c.done;c=
512
- b.next())c=c.value,c.name.trim().startsWith("X-")&&(a[c.name]=c.value);return _.N.Yb(a)?a:null},uo:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.v(b);for(var c=b.next();!c.done;c=b.next())switch(c=c.value,c.name){case $b:a[$b]=c.value;break;case Zb:a[Zb]=c.value;break;case dc:a[dc]=Kk(c.value);break;case bc:a[bc]=Kk(c.value);break;case "X-SNAP":a["X-SNAP"]=c.value.split(",");break;case cc:a[cc]=c.value.split(",")}return _.N.Yb(a)?a:null},si:function(a,b){if(!a)return null;var c=a.ld;
513
- return b.find(function(d){return d.Dc()===c})||null},Ai:function(a){return(a=_.U(a,"CHANNELS"))?parseInt(a.split("/")[0],10):null}};_.Y.g=new _.L("clpp.hls.Utils");_.jl.prototype.destroy=function(){for(var a=[],b=_.v(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.U["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.ml.prototype.resolve=function(){};_.ml.prototype.reject=function(){};nl.prototype.append=function(a){var b=this.a+a.byteLength;if(b>this.f.byteLength){var c=this.f;this.f=new Uint8Array(Math.max(2*this.f.byteLength,b));this.f.set(c)}this.f.set(a,this.a);this.a+=a.byteLength};nl.prototype.get=function(){return this.a===this.f.byteLength?this.f.buffer:this.f.buffer.slice(0,this.a)};_.J("clpp.utils.Uint8ArrayUtils",Dl);Dl.toStandardBase64=_.El;Dl.concat=_.Kl;Dl.equal=_.Jl;Dl.toHex=_.Il;Dl.fromHex=_.Hl;Dl.fromBase64=_.Gl;Dl.toBase64Url=_.Fl;_.Nl.prototype.abort=function(){this.a=!0;return this.B()};_.w(Pl,_.Nl);Pl.prototype.then=function(a,b){this.U=this.U.then(a,b);return this};Pl.prototype["catch"]=function(a){this.U=this.U["catch"](a);return this};Pl.prototype.abort=function(){var a=this;if(this.a)return Promise.resolve();this.a=!0;return this.j.then(function(b){a.o&&clearTimeout(a.o);a.l&&a.l();return b.abort()})["catch"](function(){})};_.r=_.Tl.prototype;_.r.Yo=function(a){0<a?_.Kh("Rate limit set to "+a+"bps"):_.Kh("Rate limit disabled");this.j=a};_.r.release=function(){return this.o.destroy()};_.r.destroy=function(){this.w=!0;this.f=[];this.a=[];this.h=[];return this.o.destroy()};_.r.Dh=function(a){this.f.push(a)};_.r.ee=function(a){this.h.push(a)};_.r.Ij=function(a){this.f=this.f.filter(function(b){return b!==a})};_.r.ag=function(a){this.h=this.h.filter(function(b){return b!==a})};
514
- _.r.fetch=function(a){var b=void 0;1===a.type&&(b={objectType:aw});return _.$l(this,a,b)};_.J("clpp.net.NetworkEngine",_.Tl);_.Tl.prototype.fetch=_.Tl.prototype.fetch;_.Tl.prototype.removeResponseModifier=_.Tl.prototype.ag;_.Tl.prototype.removeRequestModifier=_.Tl.prototype.Ij;_.Tl.prototype.addResponseModifier=_.Tl.prototype.ee;_.Tl.prototype.addRequestModifier=_.Tl.prototype.Dh;_.Tl.prototype.setRateLimit=_.Tl.prototype.Yo;var gm;_.bm.prototype.va=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&&Hj(this.roles,a.roles)&&Hj(this.accessibility,a.accessibility,jm)};_.bm.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.J("clpp.Track",_.bm);
515
- _.bm.prototype.toString=_.bm.prototype.toString;_.J("clpp.Rendition",_.km);_.fm=_.Lg;_.em=_.Rc;_.dm=_.mg;gm=_.Le;_.bw={VIDEO:_.fm,AUDIO:_.em,TEXT:_.dm,METADATA:gm};_.bm.Type=_.bw;lm.prototype.h=function(a,b){var c=this,d,e,f,g,k,l,m;return _.I(function(n){switch(n.a){case 1:return d=null,_.F(n,2),_.x(n,rm(c,a),4);case 4:d=n.f;_.G(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={};_.F(n,5);if(!b.enableHlsVideoTrackInfo){n.C(7);break}return _.x(n,om(c,d,a),8);case 8:g=n.f,f.renditions=g.renditions,f.mimeType=g.mimeType;case 7:_.G(n,6);break;case 5:k=_.H(n),c.g.warn("Failed to parse video metadata from HLS playlist.",
516
- k.message);case 6:return _.F(n,9),_.x(n,qm(d),11);case 11:l=n.f;f.fd=l;_.G(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)}})};var ym=new Map,xm=1,Cm=2,Bm=3,Am=4;var aw="m";_.Hm=[];_.r=_.Km.prototype;_.r.detach=function(){};_.r.wg=function(){return!0};_.r.jm=function(a){return this.getVideoTracks().find(function(b){return _.N.va(b,a,a&&Object.keys(a))})};_.r.fm=function(a){return this.getAudioTracks().find(function(b){return _.N.va(b,a,a&&Object.keys(a))})};_.r.hm=function(a){return this.ra().find(function(b){return _.N.va(b,a,a&&Object.keys(a))})};
517
- _.r.im=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.N.va(b,a,a&&Object.keys(a))})};_.r.em=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.N.va(b,a,a&&Object.keys(a))})};_.r.gm=function(a){return this.ra().flatMap(function(b){return b.renditions}).find(function(b){return _.N.va(b,a,a&&Object.keys(a))})};_.J("clpp.TrackManager",_.Km);_.Km.prototype.isAbrEnabled=_.Km.prototype.xa;
518
- _.Km.prototype.addTextTrack=_.Km.prototype.addTextTrack;_.Km.prototype.findTextRendition=_.Km.prototype.gm;_.Km.prototype.findAudioRendition=_.Km.prototype.em;_.Km.prototype.findVideoRendition=_.Km.prototype.im;_.Km.prototype.findTextTrack=_.Km.prototype.hm;_.Km.prototype.findAudioTrack=_.Km.prototype.fm;_.Km.prototype.findVideoTrack=_.Km.prototype.jm;_.Km.prototype.setTextRendition=_.Km.prototype.Ob;_.Km.prototype.setAudioRendition=_.Km.prototype.Nb;_.Km.prototype.setVideoRendition=_.Km.prototype.Cb;
519
- _.Km.prototype.setTextTrack=_.Km.prototype.jb;_.Km.prototype.setAudioTrack=_.Km.prototype.La;_.Km.prototype.setVideoTrack=_.Km.prototype.Pb;_.Km.prototype.getTextTrack=_.Km.prototype.wa;_.Km.prototype.getAudioTrack=_.Km.prototype.qa;_.Km.prototype.getVideoTrack=_.Km.prototype.Qa;_.Km.prototype.getLoadingTextRendition=_.Km.prototype.Xb;_.Km.prototype.getLoadingAudioRendition=_.Km.prototype.Wb;_.Km.prototype.getLoadingVideoRendition=_.Km.prototype.Gb;_.Km.prototype.getTextRendition=_.Km.prototype.gb;
520
- _.Km.prototype.getAudioRendition=_.Km.prototype.Ya;_.Km.prototype.getVideoRendition=_.Km.prototype.sa;_.Km.prototype.getTextTracks=_.Km.prototype.ra;_.Km.prototype.getAudioTracks=_.Km.prototype.getAudioTracks;_.Km.prototype.getVideoTracks=_.Km.prototype.getVideoTracks;_.Km.prototype.canSelectVideoTracks=_.Km.prototype.wg;_.w(Lm,_.Km);_.r=Lm.prototype;_.r.wg=function(){return!_.vi()};_.r.detach=function(){this.j.clear();for(var a=_.v(this.a),b=a.next();!b.done;b=a.next()){var c=_.v(b.value);b=c.next().value;(c=c.next().value)?this.j.set(b,{language:c.language,kind:c.kind,label:c.label}):b===_.dm&&this.j.set(b,null)}Om(this);this.m.trigger(new _.R("tracksremoved"))};
521
- _.r.Wg=function(a,b){var c=this,d,e,f,g,k,l,m,n,p,q,t,u,y,A,D,B,E,C;return _.I(function(K){if(1==K.a){d=b.track;e=a===_.em;f=a===_.fm;g=a===_.dm;k=e||f;l=d.id;m=im(a,l,d);n=cn(d);if(g){if(d.kind===_.Le)return K["return"]();m.kind&&"captions"===m.kind&&(m.mimeType=_.Ic);if(p=c.A[d.id])m.src=p.url,m.mimeType=p.mimeType}else if(q=c.h.find(function(P){return P.type===a&&_.N.va(P,m,["kind","label","language"])}))return q.id=d.id,n&&(c.g.debug(Eb+a+" track active"),c.a.set(a,q)),c.g.debug("Track from event seems to already exists, flipped native track to",
522
- d),K["return"]();_.F(K,2);t=new _.km(m.id,m);m.renditions.push(t);c.h.push(m);u=c.m.getConfiguration().safari;return Sm(c,a,u)?_.x(K,Vm(c,m,u),5):Tm(c,a,u)?_.x(K,Wm(c,m,u),5):K.C(5)}if(2!=K.a)return c.g.debug(a+" Track added",m),c.m.trigger(new _.R(_.vg)),y=$m(c,a).length,A=b.target,D=!(!A||!A.length),B=A&&A.length||0,E=function(){c.g.debug(Eb+a+" track active. Native track active: "+(n+". Number of tracks: ")+y,d);c.a.set(a,m)},n?E():1===y&&k&&(f?E():D&&1!==B||E()),_.G(K,0);C=_.H(K);c.g.error("Error while converting track data",
523
- C);_.z(K)})};_.r.Yg=function(a,b){var c=b.track;if(a===_.dm&&c.kind!==_.Le){var d=this.h.find(function(e){return e.type===a&&e.id===c.id});d&&(this.h.splice(this.h.indexOf(d),1),(this.a.get(a)||null)===d&&(this.a.set(a,null),fn(this)),this.g.debug(a+" Track removed, id: ",d.id))}};
524
- _.r.Xg=function(a,b){this.g.debug(a+" Track changed",b);a===_.dm&&fn(this);var c=Zm(this,a);if(c)for(var d={sd:0};d.sd<c.length;d={sd:d.sd},++d.sd)if(cn(c[d.sd])){if(d=this.h.find(function(e){return function(f){return f.type===a&&f.id===c[e.sd].id}}(d)))this.a.set(a,d),this.g.debug("Track change detected, id:",d.id),d===this.o.get(a)&&this.o.set(a,null),a===_.em?this.m.trigger(new _.R(_.Zc)):a===_.dm&&this.m.trigger(new _.R(_.pg));break}};_.r.initialize=function(a){this.m=a;this.l=new lm(a.getNetworkEngine())};
525
- _.r.load=function(){var a=this;this.B=!1;Ym(this);this.f.one(this.m,fd,function(){0===a.j.size?en(a):Nm(a)})};_.r.release=function(){var a=this.m.getSurface().getMedia();if(a)for(var b=_.v(this.D),c=b.next();!c.done;c=b.next())a.removeChild(c.value);this.D.clear();this.B=!0;Om(this)};_.r.destroy=function(){this.release();this.j.clear();this.m=null};_.r.getVideoTracks=function(){return $m(this,_.fm)};_.r.getAudioTracks=function(){return $m(this,_.em)};_.r.ra=function(){return $m(this,_.dm)};
526
- _.r.sa=function(){var a=this,b=this.a.get(_.fm)||null;if(!b)return null;if(this.w){var c=b.renditions.find(function(d){return d.width===a.w.width&&d.height===a.w.height});if(c)return c}return b.renditions[0]||null};_.r.Ya=function(){return an(this,_.em)};_.r.gb=function(){return an(this,_.dm)};_.r.Gb=function(){return bn(this,_.fm)};_.r.Wb=function(){return bn(this,_.em)};_.r.Xb=function(){return bn(this,_.dm)};_.r.Qa=function(){return this.a.get(_.fm)||null};
527
- _.r.qa=function(){return this.a.get(_.em)||null};_.r.wa=function(){return this.a.get(_.dm)||null};_.r.Pb=function(a){Mm(this,_.fm,a)};_.r.La=function(a){Mm(this,_.em,a)};_.r.jb=function(a){Mm(this,_.dm,a)};_.r.Cb=function(a){Mm(this,_.fm,a&&a.track)};_.r.Nb=function(a){Mm(this,_.em,a&&a.track)};_.r.Ob=function(a){Mm(this,_.dm,a&&a.track)};
528
- _.r.addTextTrack=function(a){var b=this,c,d;return _.I(function(e){if(!b.m)return e["return"]();c=b.m.getSurface().getMedia();return c?a.mimeType.match(/text\/vtt/)?(d="External_"+b.G++,b.A[d]=a,Pm(b,a,d,c),e.C(0)):_.x(e,Qm(b,a,c),0):e["return"]()})};_.r.xa=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};Lm.prototype.isAbrEnabled=Lm.prototype.xa;Lm.prototype.addTextTrack=Lm.prototype.addTextTrack;Lm.prototype.setTextRendition=Lm.prototype.Ob;
529
- Lm.prototype.setAudioRendition=Lm.prototype.Nb;Lm.prototype.setVideoRendition=Lm.prototype.Cb;Lm.prototype.setTextTrack=Lm.prototype.jb;Lm.prototype.setAudioTrack=Lm.prototype.La;Lm.prototype.setVideoTrack=Lm.prototype.Pb;Lm.prototype.getTextTrack=Lm.prototype.wa;Lm.prototype.getAudioTrack=Lm.prototype.qa;Lm.prototype.getVideoTrack=Lm.prototype.Qa;Lm.prototype.getLoadingTextRendition=Lm.prototype.Xb;Lm.prototype.getLoadingAudioRendition=Lm.prototype.Wb;Lm.prototype.getLoadingVideoRendition=Lm.prototype.Gb;
530
- Lm.prototype.getTextRendition=Lm.prototype.gb;Lm.prototype.getAudioRendition=Lm.prototype.Ya;Lm.prototype.getVideoRendition=Lm.prototype.sa;Lm.prototype.getTextTracks=Lm.prototype.ra;Lm.prototype.getAudioTracks=Lm.prototype.getAudioTracks;Lm.prototype.getVideoTracks=Lm.prototype.getVideoTracks;Lm.prototype.canSelectVideoTracks=Lm.prototype.wg;_.r=_.gn.prototype;_.r.start=function(a){if(this.f)return this.f.start(a);if(a<this.a.length)return this.a[a].start;throw Error(Jb);};_.r.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(Jb);};_.r.gc=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:1===this.length&&0>this.start(0)?0:this.start(0)};_.r.Wa=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
499
+ "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);var Pk=[403,401];_.J("clpp.net.DEFAULT_FATAL_STATUS_CODES",Pk);_.J("clpp.net.makeRequest",_.Vk);_.Uk=6;_.J("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.Uk,CONTENT_STEERING:7});_.J("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.Ab,SW_SECURE_DECODE:_.Bb,HW_SECURE_CRYPTO:Sa,HW_SECURE_DECODE:Ta,HW_SECURE_ALL:Ra});_.J("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.J("clpp.drm.KeySystem",{NONE:_.Se,CLEAR_KEY:_.cf,WIDEVINE:_.Jd,PLAYREADY:_.Hd,FAIRPLAY:_.Fd,PRIMETIME:_.Ed});_.bl={};_.J("clpp.drm.registerDrmEnvironment",_.dl);_.Y={Bc:function(a,b){return a.filter(function(c){return c.name===b})},Xj:function(a){var b=/^[a-zA-Z0-9_-]+$/,c=new Set;a.forEach(function(d){var e=_.U(d,"VALUE"),f=_.U(d,_.gb),g=_.U(d,"IMPORT"),k=_.U(d,"QUERYPARAM");if(1!==[f,g,k].filter(Boolean).length||f&&null==e)throw new _.O(_.Q,4,4044,{message:"Invalid tag.",text:d.toString()});d=f||g||k;if(c.has(d))throw new _.O(_.Q,4,4044,'EXT-X-DEFINE redefined variable "'+d+'".');if(!b.test(d))throw new _.O(_.Q,4,4044,'EXT-X-DEFINE invalid variable name "'+
500
+ d+'".');c.add(d)})},Hg:function(a,b){var c=Array.isArray(b)?b:[b];return a.filter(function(d){d=_.qk(d,_.Ib);return c.includes(d)})},bd:function(a,b){return a.some(function(c){return c.name===b})},bb: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(_.Q,4,4024,{missingTag:b});return a},Ji:function(a,b){return _.Y.bb(a,b,{required:!0})},ym:function(a,b,c){c=void 0===c?0:c;return(a=_.Y.bb(a,b))?Number(a.value):c},Zp:function(a,b,c){return a.filter(function(d){var e=
501
+ d.getAttribute(_.Ib);d=d.getAttribute(_.Qa);return e.value===b&&d.value===c})},zo:function(a){var b=_.Y.bb(a,"EXT-X-TILES");if(!b)return{Ce:1,$e:1,durationPerTile:null};a=_.U(b,"LAYOUT")||"1x1";b=_.U(b,_.Ia);a=_.Ok(a);return{Ce:a.Ce,$e:a.$e,durationPerTile:b?Number(b):null}},Qm:function(a){return/^#(?!EXT)/m.test(a)},Wm:function(a){return/^(#EXT)/.test(a)},$m:function(a,b){Array.isArray(a)||(a=[a]);a.forEach(function(c){for(var d=_.v(_.Y.cg(c)),e=d.next();!e.done;e=d.next())b(e.value,c)})},cg:function(a){var b=
502
+ 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)},Lm:function(a){return a.some(function(b){return _.Y.bd(b.$,"EXT-X-ENDLIST")})},wk:function(a){return _.Y.cg(a).filter(_.Y.Si)},zj:function(a){if(_.Y.bb(a,"EXT-X-ENDLIST"))return _.Tb;a=_.Y.bb(a,"EXT-X-PLAYLIST-TYPE");if(!a)return"LIVE";if(a.value===_.Tb)return _.Tb;if("EVENT"===a.value)return"EVENT";
503
+ throw new _.O(_.Q,4,4044,"Invalid EXT-X-PLAYLIST-TYPE value: "+a.value);},hi:function(a){a={AUDIO:_.Rc,VIDEO:_.Kg,SUBTITLES:_.jk,"CLOSED-CAPTIONS":_.jk}[a.toUpperCase()];if(!a)throw new _.O(_.Q,4,4044,"EXT-X-MEDIA tag has an invalid TYPE attribute.");return a},Sl:function(a){var b=_.qk(a,_.Ib).toUpperCase();if(_.Y.hi(b)!==_.jk)return null;a=a.getAttribute("FORCED");a=!(!a||!a.value||"YES"!==a.value.toUpperCase());var c=_.kg;b===_.va&&(c=_.gd);a&&(c=_.ne);return c},vj:function(a,b,c){c=void 0===c?
504
+ !1:c;var d=0,e=null;if(a){d=a.split("@");a=Number(d[0]);if(0>=a)throw new _.O(_.Q,4,4044,"Byte range length must be positive.");if(d[1]){if(d=Number(d[1]),0>d)throw new _.O(_.Q,4,4044,"Byte range start byte must not be negative.");}else{if(c)throw new _.O(_.Q,4,4044,"Invalid byte range, offset is required but missing.");if(null==b)throw new _.O(_.Q,4,4044,"Invalid byte range, cannot calculate offset based on previous byte ranges.");d=b+1}e=d+a-1}return{la:d,fa:e}},xj:function(a,b){var c=_.Y.bb(a,
505
+ "EXT-X-BYTERANGE");return _.Y.vj(c?c.value:null,b)},yj:function(a){a=_.Y.Ji(a,"EXTINF").value.split(",");var b=Number(a[0]);if(isNaN(b))throw new _.O(_.Q,4,4044,"#EXTINF must be a number.");return{duration:b,title:a[1]||null}},Aj:function(a,b){function c(f){return null==f?null:Number(f)}b=void 0===b?{}:b;var d={Rh:!1,Bk:!1,Ck:null,Mm:null,Bj:null},e=_.Y.bb(a,"EXT-X-SERVER-CONTROL",{required:b.Mj});if(!e)return d;d.Rh="YES"===_.U(e,"CAN-BLOCK-RELOAD");d.Bk="YES"===_.U(e,"CAN-SKIP-DATERANGES");d.Ck=
506
+ c(_.U(e,"CAN-SKIP-UNTIL"));d.Mm=c(_.U(e,"HOLD-BACK"));d.Bj=c(_.U(e,"PART-HOLD-BACK",void 0,{required:b.Mj}));return d},wj:function(a,b,c){c=void 0===c?!1:c;a=_.U(a,"BYTERANGE");return _.Y.vj(a,b,c)},yo:function(a){var b=_.Y.Bc(a,_.Ka),c=_.Y.Bc(a,_.La);a=_.Y.Bc(a,"EXT-X-IMAGE-STREAM-INF");return{fd:{Lh:_.Y.Hg(b,[_.la,_.Sb]),closedCaptions:_.Y.Hg(b,_.va),fp:_.Y.Hg(b,_.zb)},af:c,Jg:a}},Ul:function(a,b){var c=_.Y.xj(a.$,null);return new _.vk(0,0,0,function(){return[a.a]},c.la,c.fa,0,b)},Fm:function(a){var b=
507
+ a.S;a=b[0].startTime;b=b[b.length-1].endTime;return{Gc:a,Jf:b,duration:b-a}},Cm:function(a){var b=Infinity,c=Infinity;_.Y.wk(a).forEach(function(d){d=_.Y.Fm(d);b=Math.min(b,d.Gc);c=Math.min(c,d.duration)});return{Gc:b,duration:c}},Si:function(a){return a.type===_.Rc||a.type===_.Kg},dm:function(a){return a.filter(_.Y.Si)},Am:function(a){return a.map(function(b){return _.Y.Cm(b).duration}).reduce(function(b,c){return b+c},0)},sm:function(a,b){return a&&b?_.hl(a.drmInfos,b.drmInfos)?_.gl(a.drmInfos,
508
+ b.drmInfos):null:a?a.drmInfos:b?b.drmInfos:null},Wl:function(a,b){return(b?b.Dc():"")+" - "+(a?a.Dc():"")},ii:function(a){return(a.video?a.video.ld:"")+" - "+(a.audio?a.audio.ld:"")},xo:function(a,b,c,d,e){if(b===_.Tb)return{delay:0,Ze:0};b=_.Y.bb(a,"EXT-X-PART-INF");if(c&&b)return e=Number(_.qk(b,"PART-TARGET")),null!=d?{delay:d,Ze:e}:{delay:_.Y.Aj(a,{Mj:!0}).Bj,Ze:e};a=_.Y.Ji(a,"EXT-X-TARGETDURATION");a=Number(a.value);e=e||a;return null!=d?{delay:d,Ze:e}:{delay:3*a,Ze:e}},xf:function(a,b){return a+
509
+ ":"+b},jp:function(a){var b=_.Y.xf,c=new Map;a.forEach(function(d){var e=b(d.$c(),d.a());c.has(e)?(e=c.get(e),e.includes(d)||e.push(d)):c.set(e,[d])});return c},Fi:function(a){return _.Hk(a||_.zg)},qo:function(a){var b=new Map;a=_.v(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=_.U(c,_.Za);d=_.Y.Fi(d);var e=_.qk(c,_.Qa);c=_.qk(c,"INSTREAM-ID");b.has(e)||b.set(e,new Map);b.get(e).set(c,d)}return b},$l:function(a){return a.filter(function(b){return"mp4a.40.34"!==b})},Ao:function(a){if(!a.hasAttribute("FRAME-RATE")&&
510
+ !a.hasAttribute(_.wb))return null;var b=_.U(a,"FRAME-RATE");a=_.U(a,_.wb);var c=_.v(a?a.split("x"):[null,null]);a=c.next().value;c=c.next().value;return{frameRate:Mk(b),width:Mk(a),height:Mk(c)}},Zm:function(a){return a.name!==_.Ka?!0:_.U(a,_.Ib)===_.zb},ro:function(a,b,c,d,e){var f=e&&e.Xe,g=e&&e.schemeIdUri,k=_.U(a,"ID");f=_.U(a,"START-DATE")||f;if(null===k||!f)return _.Y.g.warn("Invalid EXT-X-DATERANGE missing mandatory ID or required START-DATE attribute, ignoring the EXT-X-DATERANGE tag.",a),
511
+ null;b=d?c-b:-b;d=new Date(f);c=d.getTime()/1E3+b;k={id:k,startTime:c,startDate:d,Xe:f};f=Mk(_.U(a,_.Ia));void 0!==f&&0<=f&&(k.duration=f);f=Mk(_.U(a,"PLANNED-DURATION"));void 0!==f&&0<=f&&(k.plannedDuration=f);g=_.U(a,"CLASS")||g||null;null!==g&&(k.schemeIdUri=g);f=(f=_.U(a,"END-DATE"))?new Date(f):null;null!==f&&f.getTime()>=d.getTime()&&(k.endDate=f);d=_.Y.po(a)||{};(f=_.U(a,"CUE"))&&(d.CUE=f.split(","));wk(g)&&(f=_.Y.vo(a))&&(d=Object.assign(d,f));_.N.Yb(d)&&(k.customAttributes=d);if(_.N.Ni(e,
512
+ k))return _.Y.g.warn("EXT-X-DATERANGE augmented and previous values differ.Ignoring the EXT-X-DATERANGE tag.",a),null;k=_.N.ta(e,k);if(wk(g)&&!xk(k.customAttributes))return _.Y.g.warn("Invalid EXT-X-DATERANGE Interstitial attributes X-ASSET-URI, X-ASSET-LIST"),null;var l;k.endDate?l=k.endDate.getTime()/1E3+b:k.duration?l=c+k.duration:k.plannedDuration?l=c+k.plannedDuration:l=c;k.endTime=l;k.type=_.zj;return k},po:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.v(b);for(var c=b.next();!c.done;c=
513
+ b.next())c=c.value,c.name.trim().startsWith("X-")&&(a[c.name]=c.value);return _.N.Yb(a)?a:null},vo:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.v(b);for(var c=b.next();!c.done;c=b.next())switch(c=c.value,c.name){case $b:a[$b]=c.value;break;case Zb:a[Zb]=c.value;break;case dc:a[dc]=Mk(c.value);break;case bc:a[bc]=Mk(c.value);break;case "X-SNAP":a["X-SNAP"]=c.value.split(",");break;case cc:a[cc]=c.value.split(",")}return _.N.Yb(a)?a:null},vi:function(a,b){if(!a)return null;var c=a.ld;
514
+ return b.find(function(d){return d.Dc()===c})||null},Bi:function(a){return(a=_.U(a,"CHANNELS"))?parseInt(a.split("/")[0],10):null}};_.Y.g=new _.L("clpp.hls.Utils");_.ll.prototype.destroy=function(){for(var a=[],b=_.v(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.U["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.ol.prototype.resolve=function(){};_.ol.prototype.reject=function(){};pl.prototype.append=function(a){var b=this.a+a.byteLength;if(b>this.f.byteLength){var c=this.f;this.f=new Uint8Array(Math.max(2*this.f.byteLength,b));this.f.set(c)}this.f.set(a,this.a);this.a+=a.byteLength};pl.prototype.get=function(){return this.a===this.f.byteLength?this.f.buffer:this.f.buffer.slice(0,this.a)};_.J("clpp.utils.Uint8ArrayUtils",Gl);Gl.toStandardBase64=_.Hl;Gl.concat=_.Nl;Gl.equal=_.Ml;Gl.toHex=_.Ll;Gl.fromHex=_.Kl;Gl.fromBase64=_.Jl;Gl.toBase64Url=_.Il;_.Ql.prototype.abort=function(){this.a=!0;return this.B()};_.w(Sl,_.Ql);Sl.prototype.then=function(a,b){this.U=this.U.then(a,b);return this};Sl.prototype["catch"]=function(a){this.U=this.U["catch"](a);return this};Sl.prototype.abort=function(){var a=this;if(this.a)return Promise.resolve();this.a=!0;return this.j.then(function(b){a.o&&clearTimeout(a.o);a.l&&a.l();return b.abort()})["catch"](function(){})};_.r=_.Wl.prototype;_.r.Zo=function(a){0<a?_.Kh("Rate limit set to "+a+"bps"):_.Kh("Rate limit disabled");this.j=a};_.r.release=function(){return this.o.destroy()};_.r.destroy=function(){this.w=!0;this.f=[];this.a=[];this.h=[];return this.o.destroy()};_.r.Eh=function(a){this.f.push(a)};_.r.ee=function(a){this.h.push(a)};_.r.Jj=function(a){this.f=this.f.filter(function(b){return b!==a})};_.r.ag=function(a){this.h=this.h.filter(function(b){return b!==a})};
515
+ _.r.fetch=function(a){var b=void 0;1===a.type&&(b={objectType:rw});return _.cm(this,a,b)};_.J("clpp.net.NetworkEngine",_.Wl);_.Wl.prototype.fetch=_.Wl.prototype.fetch;_.Wl.prototype.removeResponseModifier=_.Wl.prototype.ag;_.Wl.prototype.removeRequestModifier=_.Wl.prototype.Jj;_.Wl.prototype.addResponseModifier=_.Wl.prototype.ee;_.Wl.prototype.addRequestModifier=_.Wl.prototype.Eh;_.Wl.prototype.setRateLimit=_.Wl.prototype.Zo;var jm;_.em.prototype.va=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&&Hj(this.roles,a.roles)&&Hj(this.accessibility,a.accessibility,mm)};_.em.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.J("clpp.Track",_.em);
516
+ _.em.prototype.toString=_.em.prototype.toString;_.J("clpp.Rendition",_.nm);_.sw=1;_.im=_.Kg;_.hm=_.Rc;_.gm=_.mg;jm=_.Le;_.tw={VIDEO:_.im,AUDIO:_.hm,TEXT:_.gm,METADATA:jm};_.em.Type=_.tw;om.prototype.h=function(a,b){var c=this,d,e,f,g,k,l,m;return _.I(function(n){switch(n.a){case 1:return d=null,_.F(n,2),_.x(n,um(c,a),4);case 4:d=n.f;_.G(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={};_.F(n,5);if(!b.enableHlsVideoTrackInfo){n.C(7);break}return _.x(n,rm(c,d,a),8);case 8:g=n.f,f.renditions=g.renditions,f.mimeType=g.mimeType;case 7:_.G(n,6);break;case 5:k=_.H(n),c.g.warn("Failed to parse video metadata from HLS playlist.",
517
+ k.message);case 6:return _.F(n,9),_.x(n,tm(d),11);case 11:l=n.f;f.fd=l;_.G(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)}})};var Bm=new Map,Am=1,Fm=2,Em=3,Dm=4;var rw="m";_.Km=[];_.r=_.Nm.prototype;_.r.detach=function(){};_.r.xg=function(){return!0};_.r.km=function(a){return this.getVideoTracks().find(function(b){return _.N.va(b,a,a&&Object.keys(a))})};_.r.gm=function(a){return this.getAudioTracks().find(function(b){return _.N.va(b,a,a&&Object.keys(a))})};_.r.im=function(a){return this.ra().find(function(b){return _.N.va(b,a,a&&Object.keys(a))})};
518
+ _.r.jm=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.N.va(b,a,a&&Object.keys(a))})};_.r.fm=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.N.va(b,a,a&&Object.keys(a))})};_.r.hm=function(a){return this.ra().flatMap(function(b){return b.renditions}).find(function(b){return _.N.va(b,a,a&&Object.keys(a))})};_.J("clpp.TrackManager",_.Nm);_.Nm.prototype.isAbrEnabled=_.Nm.prototype.xa;
519
+ _.Nm.prototype.addTextTrack=_.Nm.prototype.addTextTrack;_.Nm.prototype.findTextRendition=_.Nm.prototype.hm;_.Nm.prototype.findAudioRendition=_.Nm.prototype.fm;_.Nm.prototype.findVideoRendition=_.Nm.prototype.jm;_.Nm.prototype.findTextTrack=_.Nm.prototype.im;_.Nm.prototype.findAudioTrack=_.Nm.prototype.gm;_.Nm.prototype.findVideoTrack=_.Nm.prototype.km;_.Nm.prototype.setTextRendition=_.Nm.prototype.Ob;_.Nm.prototype.setAudioRendition=_.Nm.prototype.Nb;_.Nm.prototype.setVideoRendition=_.Nm.prototype.Cb;
520
+ _.Nm.prototype.setTextTrack=_.Nm.prototype.kb;_.Nm.prototype.setAudioTrack=_.Nm.prototype.La;_.Nm.prototype.setVideoTrack=_.Nm.prototype.Pb;_.Nm.prototype.getTextTrack=_.Nm.prototype.wa;_.Nm.prototype.getAudioTrack=_.Nm.prototype.qa;_.Nm.prototype.getVideoTrack=_.Nm.prototype.Ra;_.Nm.prototype.getLoadingTextRendition=_.Nm.prototype.Xb;_.Nm.prototype.getLoadingAudioRendition=_.Nm.prototype.Wb;_.Nm.prototype.getLoadingVideoRendition=_.Nm.prototype.Gb;_.Nm.prototype.getTextRendition=_.Nm.prototype.hb;
521
+ _.Nm.prototype.getAudioRendition=_.Nm.prototype.Za;_.Nm.prototype.getVideoRendition=_.Nm.prototype.sa;_.Nm.prototype.getTextTracks=_.Nm.prototype.ra;_.Nm.prototype.getAudioTracks=_.Nm.prototype.getAudioTracks;_.Nm.prototype.getVideoTracks=_.Nm.prototype.getVideoTracks;_.Nm.prototype.canSelectVideoTracks=_.Nm.prototype.xg;_.w(Om,_.Nm);_.r=Om.prototype;_.r.xg=function(){return!_.vi()};_.r.detach=function(){this.j.clear();for(var a=_.v(this.a),b=a.next();!b.done;b=a.next()){var c=_.v(b.value);b=c.next().value;(c=c.next().value)?this.j.set(b,{language:c.language,kind:c.kind,label:c.label}):b===_.gm&&this.j.set(b,null)}Rm(this);this.m.trigger(new _.R("tracksremoved"))};
522
+ _.r.Xg=function(a,b){var c=this,d,e,f,g,k,l,m,n,p,q,t,u,y,A,D,B,E,C;return _.I(function(K){if(1==K.a){d=b.track;e=a===_.hm;f=a===_.im;g=a===_.gm;k=e||f;d.mode===_.Yf&&(d.mode=fn(c));l=d.id||String(_.sw++);m=lm(a,l,d);n=hn(d);if(g){if(d.kind===_.Le)return K["return"]();m.kind&&"captions"===m.kind&&(m.mimeType=_.Ic);if(p=c.A[d.id])m.src=p.url,m.mimeType=p.mimeType}else if(q=c.h.find(function(P){return P.type===a&&_.N.va(P,m,["kind","label","language"])}))return q.id=d.id,n&&(c.g.debug(Eb+a+" track active"),
523
+ c.a.set(a,q)),c.g.debug("Track from event seems to already exists, flipped native track to",d),K["return"]();_.F(K,2);t=new _.nm(m.id,m);m.renditions.push(t);c.h.push(m);c.h.sort(function(P,T){return(P.label||"").localeCompare(T.label||"","en")});u=c.m.getConfiguration().safari;return Vm(c,a,u)?_.x(K,Ym(c,m,u),5):Wm(c,a,u)?_.x(K,Zm(c,m,u),5):K.C(5)}if(2!=K.a)return c.g.debug(a+" Track added",m),c.m.trigger(new _.R(_.vg)),y=cn(c,a).length,A=b.target,D=!(!A||!A.length),B=A&&A.length||0,E=function(){c.g.debug(Eb+
524
+ a+" track active. Native track active: "+(n+". Number of tracks: ")+y,d);c.a.set(a,m)},n?E():1===y&&k&&(f?E():D&&1!==B||E()),_.G(K,0);C=_.H(K);c.g.error("Error while converting track data",C);_.z(K)})};_.r.Zg=function(a,b){var c=b.track;if(a===_.gm&&c.kind!==_.Le){var d=this.h.find(function(e){return gn(e,c,a)});d&&(this.h.splice(this.h.indexOf(d),1),(this.a.get(a)||null)===d&&(this.a.set(a,null),mn(this)),this.g.debug(a+" Track removed, id: ",d.id))}};
525
+ _.r.Yg=function(a,b){this.g.debug(a+" Track changed",b);a===_.gm&&mn(this);var c=bn(this,a);if(c)for(var d={sd:0};d.sd<c.length;d={sd:d.sd},++d.sd)if(hn(c[d.sd])){if(d=this.h.find(function(e){return function(f){return gn(f,c[e.sd],a)}}(d)))this.a.set(a,d),this.g.debug("Track change detected, id:",d.id),d===this.o.get(a)&&this.o.set(a,null),a===_.hm?this.m.trigger(new _.R(_.Zc)):a===_.gm&&this.m.trigger(new _.R(_.pg));break}};_.r.initialize=function(a){this.m=a;this.l=new om(a.getNetworkEngine())};
526
+ _.r.load=function(){var a=this;this.B=!1;an(this);this.f.one(this.m,fd,function(){0===a.j.size?kn(a):Qm(a)})};_.r.release=function(){var a=this.m.getSurface().getMedia();if(a)for(var b=_.v(this.D),c=b.next();!c.done;c=b.next())a.removeChild(c.value);this.D.clear();this.B=!0;Rm(this)};_.r.destroy=function(){this.release();this.j.clear();this.m=null};_.r.getVideoTracks=function(){return cn(this,_.im)};_.r.getAudioTracks=function(){return cn(this,_.hm)};_.r.ra=function(){return cn(this,_.gm)};
527
+ _.r.sa=function(){var a=this,b=this.a.get(_.im)||null;if(!b)return null;if(this.w){var c=b.renditions.find(function(d){return d.width===a.w.width&&d.height===a.w.height});if(c)return c}return b.renditions[0]||null};_.r.Za=function(){return dn(this,_.hm)};_.r.hb=function(){return dn(this,_.gm)};_.r.Gb=function(){return en(this,_.im)};_.r.Wb=function(){return en(this,_.hm)};_.r.Xb=function(){return en(this,_.gm)};_.r.Ra=function(){return this.a.get(_.im)||null};
528
+ _.r.qa=function(){return this.a.get(_.hm)||null};_.r.wa=function(){return this.a.get(_.gm)||null};_.r.Pb=function(a){Pm(this,_.im,a)};_.r.La=function(a){Pm(this,_.hm,a)};_.r.kb=function(a){Pm(this,_.gm,a)};_.r.Cb=function(a){Pm(this,_.im,a&&a.track)};_.r.Nb=function(a){Pm(this,_.hm,a&&a.track)};_.r.Ob=function(a){Pm(this,_.gm,a&&a.track)};
529
+ _.r.addTextTrack=function(a){var b=this,c,d;return _.I(function(e){if(!b.m)return e["return"]();c=b.m.getSurface().getMedia();return c?a.mimeType.match(/text\/vtt/)?(d="External_"+b.G++,b.A[d]=a,Sm(b,a,d,c),e.C(0)):_.x(e,Tm(b,a,c),0):e["return"]()})};_.r.xa=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};Om.prototype.isAbrEnabled=Om.prototype.xa;Om.prototype.addTextTrack=Om.prototype.addTextTrack;Om.prototype.setTextRendition=Om.prototype.Ob;
530
+ Om.prototype.setAudioRendition=Om.prototype.Nb;Om.prototype.setVideoRendition=Om.prototype.Cb;Om.prototype.setTextTrack=Om.prototype.kb;Om.prototype.setAudioTrack=Om.prototype.La;Om.prototype.setVideoTrack=Om.prototype.Pb;Om.prototype.getTextTrack=Om.prototype.wa;Om.prototype.getAudioTrack=Om.prototype.qa;Om.prototype.getVideoTrack=Om.prototype.Ra;Om.prototype.getLoadingTextRendition=Om.prototype.Xb;Om.prototype.getLoadingAudioRendition=Om.prototype.Wb;Om.prototype.getLoadingVideoRendition=Om.prototype.Gb;
531
+ Om.prototype.getTextRendition=Om.prototype.hb;Om.prototype.getAudioRendition=Om.prototype.Za;Om.prototype.getVideoRendition=Om.prototype.sa;Om.prototype.getTextTracks=Om.prototype.ra;Om.prototype.getAudioTracks=Om.prototype.getAudioTracks;Om.prototype.getVideoTracks=Om.prototype.getVideoTracks;Om.prototype.canSelectVideoTracks=Om.prototype.xg;_.r=_.nn.prototype;_.r.start=function(a){if(this.f)return this.f.start(a);if(a<this.a.length)return this.a[a].start;throw Error(Jb);};_.r.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(Jb);};_.r.gc=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:1===this.length&&0>this.start(0)?0:this.start(0)};_.r.Xa=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
531
532
  _.r.Ec=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};
532
- _.r.Xa=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.Wa();null!=d&&(c=Math.max(0,d-a))}else for(d=this.length-1;0<=d&&this.end(d)>a;--d)c+=this.end(d)-Math.max(this.start(d),a);return c};_.r.toString=function(){for(var a="",b=0;b<this.length;b++)0<b&&(a+=" "),a+=this.start(b).toFixed(3)+"-"+this.end(b).toFixed(3);return a};_.J("clpp.BufferInfo",_.gn);_.gn.prototype.bufferedAheadOf=_.gn.prototype.Xa;
533
- _.gn.prototype.isBuffered=_.gn.prototype.Ec;_.gn.prototype.bufferEnd=_.gn.prototype.Wa;_.gn.prototype.bufferStart=_.gn.prototype.gc;_.gn.prototype.end=_.gn.prototype.end;_.gn.prototype.start=_.gn.prototype.start;hn.prototype.trigger=function(a){try{this.a.handleEvent?this.a.handleEvent(a):this.a.call(this.f,a)}catch(b){_.Qh("clpp","Uncaught exception in event handler for event '"+this.h+"'",b,b?b.message:null,b?b.stack:null)}};_.r=jn.prototype;_.r.trigger=function(a){var b=this.a.get(a.type);if(b)for(var c=0;c<b.length&&(a.target=this.f,a.currentTarget=this.f,b[c].trigger(a),b[c].j&&this.a.remove(a.type,b[c]),!a||!a.stopped);c++);};_.r.on=function(a,b,c){this.a.push(a,new hn(a,b,c||this.f));return b};_.r.one=function(a,b,c){this.a.push(a,new hn(a,b,c||this.f,!0));return b};_.r.off=function(a,b){var c=this.a.get(a),d=!1;if(c)for(var e=0;e<c.length;e++)c[e].a===b&&(d=this.a.remove(a,c[e])||d);return d};_.r.clear=function(){this.a.clear()};_.r=_.kn.prototype;_.r.addEventListener=function(a,b){this.on(a,b)};_.r.removeEventListener=function(a,b){this.off(a,b)};_.r.on=function(a,b,c){return this.te.on(a,b,c)};_.r.one=function(a,b,c){return this.te.one(a,b,c)};_.r.off=function(a,b){return this.te.off(a,b)};_.r.forwardEventsTo=function(a){a&&(0<=this.pe.indexOf(a)||this.pe.push(a))};_.r.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};
534
- _.r.stopForwardingEventsTo=function(a){a&&(a=this.pe.indexOf(a),0<=a&&this.pe.splice(a,1))};_.r.trigger=function(a){this.te.trigger(a);for(var b=_.v(this.pe),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.kn.prototype.off=_.kn.prototype.off;_.kn.prototype.one=_.kn.prototype.one;_.kn.prototype.on=_.kn.prototype.on;_.kn.prototype.removeEventListener=_.kn.prototype.removeEventListener;_.kn.prototype.addEventListener=_.kn.prototype.addEventListener;var ln=["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",_.ja);_.J("clpp.name",_.Ba);var vt=null;_.J("clpp.configure",function(a){vt=a});_.Um="application/x-mpegurl";_.J("clpp.Type",{DASH:_.Jc,HLS:_.Um,SMOOTH_STREAMING:_.Pc,MP4:_.Og,MP3:"audio/mp3"});_.Aj="scte35";_.zj="hls-daterange";_.J("clpp.TimelineCueType",{SCTE35:_.Aj,DASH_CALLBACK:_.Qe,HLS_DATERANGE:_.zj,UNKNOWN:_.Ag});_.J("clpp.SpeedUpMode",{DECODER:_.Nd,SEEK:"seek"});_.J("clpp.CodecSwitchingStrategy",{PREVENT:_.Ef,SMOOTH:_.ag});_.J("clpp.utils.PlayerConfiguration",nn);nn.create=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];return _.tn(b,{Qo:!1})};nn.build=_.tn;var cw=["abort",ed,fd,fe,"emptied",he,_.ke,_.le,"interruptbegin","interruptend",_.Ee,_.Fe,Ge,"mozaudioavailable",_.df,_.hf,_.uf,_.If,_.Kf,_.Vf,_.Wf,bg,"suspend",_.ug,"volumechange",_.Ug,_.Vg,_.Pf,$g,Zg,Xg,Yg],gj=2,hj=2;_.w(_.vn,_.kn);_.r=_.vn.prototype;_.r.init=function(a,b){this.configuration=this.vb=b;this.D=a;this.log.info("Initializing Player surface");var c=this.D.getMedia();this.log.info("Attaching media element listeners");for(var d=_.v(cw),e=d.next();!e.done;e=d.next())e=e.value,this.M.on(c,e,this.bk,e!==_.le);this.ne||(this.ne=this.ii());this.ne.initialize(this);this.D.showMediaElement()};_.r.release=function(){var a=this;return _.I(function(b){a.T&&(a.T.destroy(),a.T=null);_.z(b)})};
535
- _.r.destroy=function(){this.M.release();return this.he.release()};_.r.canPlay=function(a,b){return _.Sh[this.namespace()].canPlay(a,b)};_.r.getTimeline=function(){return null};_.r.setupPlaylist=function(){return _.I(function(){throw new _.hi(_.lb);})};_.r.appendLoad=function(){return _.I(function(){throw new _.hi(_.lb);})};_.r.seekWith=function(){return _.I(function(){throw new _.hi(_.lb);})};_.r.detach=function(){return _.I(function(a){_.z(a)})};_.r.setSeekInterceptor=function(){};
533
+ _.r.Ya=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.Xa();null!=d&&(c=Math.max(0,d-a))}else for(d=this.length-1;0<=d&&this.end(d)>a;--d)c+=this.end(d)-Math.max(this.start(d),a);return c};_.r.toString=function(){for(var a="",b=0;b<this.length;b++)0<b&&(a+=" "),a+=this.start(b).toFixed(3)+"-"+this.end(b).toFixed(3);return a};_.J("clpp.BufferInfo",_.nn);_.nn.prototype.bufferedAheadOf=_.nn.prototype.Ya;
534
+ _.nn.prototype.isBuffered=_.nn.prototype.Ec;_.nn.prototype.bufferEnd=_.nn.prototype.Xa;_.nn.prototype.bufferStart=_.nn.prototype.gc;_.nn.prototype.end=_.nn.prototype.end;_.nn.prototype.start=_.nn.prototype.start;on.prototype.trigger=function(a){try{this.a.handleEvent?this.a.handleEvent(a):this.a.call(this.f,a)}catch(b){_.Qh("clpp","Uncaught exception in event handler for event '"+this.h+"'",b,b?b.message:null,b?b.stack:null)}};_.r=pn.prototype;_.r.trigger=function(a){var b=this.a.get(a.type);if(b)for(var c=0;c<b.length&&(a.target=this.f,a.currentTarget=this.f,b[c].trigger(a),b[c].j&&this.a.remove(a.type,b[c]),!a||!a.stopped);c++);};_.r.on=function(a,b,c){this.a.push(a,new on(a,b,c||this.f));return b};_.r.one=function(a,b,c){this.a.push(a,new on(a,b,c||this.f,!0));return b};_.r.off=function(a,b){var c=this.a.get(a),d=!1;if(c)for(var e=0;e<c.length;e++)c[e].a===b&&(d=this.a.remove(a,c[e])||d);return d};_.r.clear=function(){this.a.clear()};_.r=_.qn.prototype;_.r.addEventListener=function(a,b){this.on(a,b)};_.r.removeEventListener=function(a,b){this.off(a,b)};_.r.on=function(a,b,c){return this.te.on(a,b,c)};_.r.one=function(a,b,c){return this.te.one(a,b,c)};_.r.off=function(a,b){return this.te.off(a,b)};_.r.forwardEventsTo=function(a){a&&(0<=this.pe.indexOf(a)||this.pe.push(a))};_.r.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};
535
+ _.r.stopForwardingEventsTo=function(a){a&&(a=this.pe.indexOf(a),0<=a&&this.pe.splice(a,1))};_.r.trigger=function(a){this.te.trigger(a);for(var b=_.v(this.pe),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.qn.prototype.off=_.qn.prototype.off;_.qn.prototype.one=_.qn.prototype.one;_.qn.prototype.on=_.qn.prototype.on;_.qn.prototype.removeEventListener=_.qn.prototype.removeEventListener;_.qn.prototype.addEventListener=_.qn.prototype.addEventListener;var rn=["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",_.ja);_.J("clpp.name",_.Ba);var Ct=null;_.J("clpp.configure",function(a){Ct=a});_.Xm="application/x-mpegurl";_.J("clpp.Type",{DASH:_.Jc,HLS:_.Xm,SMOOTH_STREAMING:_.Pc,MP4:_.Og,MP3:"audio/mp3"});_.Aj="scte35";_.zj="hls-daterange";_.J("clpp.TimelineCueType",{SCTE35:_.Aj,DASH_CALLBACK:_.Qe,HLS_DATERANGE:_.zj,UNKNOWN:_.Ag});_.J("clpp.SpeedUpMode",{DECODER:_.Nd,SEEK:"seek"});_.J("clpp.CodecSwitchingStrategy",{PREVENT:_.Ff,SMOOTH:_.bg});_.J("clpp.utils.PlayerConfiguration",tn);tn.create=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];return _.zn(b,{Ro:!1})};tn.build=_.zn;var uw=["abort",ed,fd,fe,"emptied",he,_.ke,_.le,"interruptbegin","interruptend",_.Ee,_.Fe,Ge,"mozaudioavailable",_.ef,_.jf,_.vf,_.Jf,_.Lf,_.Wf,_.Xf,cg,"suspend",_.ug,"volumechange",_.Ug,_.Vg,_.Qf,$g,Zg,Xg,Yg],gj=2,hj=2;_.w(_.Bn,_.qn);_.r=_.Bn.prototype;_.r.init=function(a,b){this.configuration=this.vb=b;this.D=a;this.log.info("Initializing Player surface");var c=this.D.getMedia();this.log.info("Attaching media element listeners");for(var d=_.v(uw),e=d.next();!e.done;e=d.next())e=e.value,this.P.on(c,e,this.ck,e!==_.le);this.ne||(this.ne=this.ji());this.ne.initialize(this);this.D.showMediaElement()};_.r.release=function(){var a=this;return _.I(function(b){a.L&&(a.L.destroy(),a.L=null);_.z(b)})};
536
+ _.r.destroy=function(){this.P.release();return this.he.release()};_.r.canPlay=function(a,b){return _.Sh[this.namespace()].canPlay(a,b)};_.r.getTimeline=function(){return null};_.r.setupPlaylist=function(){return _.I(function(){throw new _.hi(_.lb);})};_.r.appendLoad=function(){return _.I(function(){throw new _.hi(_.lb);})};_.r.seekWith=function(){return _.I(function(){throw new _.hi(_.lb);})};_.r.detach=function(){return _.I(function(a){_.z(a)})};_.r.setSeekInterceptor=function(){};
536
537
  _.r.setPlaybackSessionId=function(){};_.r.getBandwidthEstimate=function(){return null};
537
- _.r.play=function(){var a=this,b,c,d;return _.I(function(e){if(1==e.a){if(!a.ea)throw new _.O(_.Q,7,7003,"No sources specified yet. You need to load content before calling play.");_.F(e,2);return _.x(e,a.D.getMedia().play(),4)}if(2!=e.a)return _.G(e,0);c=b=_.H(e);a.log.info("Caught play promise exception",b);d={name:c.name||"",message:c.message||"",stack:c.stack||""};mn(d)?(a.trigger(new _.R(_.$c)),a.log.warn(_.qa)):d.name===mb&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+
538
- c.message));throw b;})};_.r.pause=function(){var a=this,b;return _.I(function(c){if(!a.ea)throw new _.O(_.Q,7,3201,"No sources specified yet. You need to load content before calling pause.");b=a.getState();if(6!==b&&11!==b&&8!==b&&10!==b)throw new _.O(_.Q,7,3201,"The player state does not allow pause.");a.D.getMedia().pause();return 8!==a.getState()?c.C(0):_.x(c,new Promise(function(d){a.M.one(a,_.tf,function(){d()})}),0)})};_.r.isPaused=function(){return this.D.getMedia().paused};_.r.isEnded=function(){return this.D.getMedia().ended};
539
- _.r.getConfiguration=function(){return this.configuration};_.r.setDrmCustomDataModifier=function(a){this.Gd=a};_.r.setCdnErrorCallback=function(a){this.xc=a};_.r.Jd=function(){return this.Gd};_.r.getSurface=function(){return this.D};_.r.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.gn(b?b.buffered:void 0,a)};_.r.getPosition=function(){return this.getMediaPosition()};
538
+ _.r.play=function(){var a=this,b,c,d;return _.I(function(e){if(1==e.a){if(!a.ea)throw new _.O(_.Q,7,7003,"No sources specified yet. You need to load content before calling play.");_.F(e,2);return _.x(e,a.D.getMedia().play(),4)}if(2!=e.a)return _.G(e,0);c=b=_.H(e);a.log.info("Caught play promise exception",b);d={name:c.name||"",message:c.message||"",stack:c.stack||""};sn(d)?(a.trigger(new _.R(_.$c)),a.log.warn(_.qa)):d.name===mb&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+
539
+ c.message));throw b;})};_.r.pause=function(){var a=this,b;return _.I(function(c){if(!a.ea)throw new _.O(_.Q,7,3201,"No sources specified yet. You need to load content before calling pause.");b=a.getState();if(6!==b&&11!==b&&8!==b&&10!==b)throw new _.O(_.Q,7,3201,"The player state does not allow pause.");a.D.getMedia().pause();return 8!==a.getState()?c.C(0):_.x(c,new Promise(function(d){a.P.one(a,_.uf,function(){d()})}),0)})};_.r.isPaused=function(){return this.D.getMedia().paused};_.r.isEnded=function(){return this.D.getMedia().ended};
540
+ _.r.getConfiguration=function(){return this.configuration};_.r.setDrmCustomDataModifier=function(a){this.Gd=a};_.r.setCdnErrorCallback=function(a){this.xc=a};_.r.Jd=function(){return this.Gd};_.r.getSurface=function(){return this.D};_.r.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.nn(b?b.buffered:void 0,a)};_.r.getPosition=function(){return this.getMediaPosition()};
540
541
  _.r.getMediaPosition=function(){var a=this.D.getMedia();if(a)return a.currentTime;this.log.warn("No media element available, can not report current time!");return 0};
541
- _.r.seek=function(a){var b=this,c,d,e,f;return _.I(function(g){if(1==g.a){c=b.getMediaPosition();if(null==a||typeof a!==_.h||a===c)return g["return"]();d=.1;e=b.D.getMedia();if(!e)throw new _.hi("No media element available, can not set current time!");f=a-c;return Math.abs(f)<=d?(b.log.info("Skip seek. Delta "+Math.abs(f)+" \x3c "+d),g["return"]()):_.x(g,wn(b,e),2)}return _.x(g,xn(b,e,a,f,c,d),0)})};
542
+ _.r.seek=function(a){var b=this,c,d,e,f;return _.I(function(g){if(1==g.a){c=b.getMediaPosition();if(null==a||typeof a!==_.h||a===c)return g["return"]();d=.1;e=b.D.getMedia();if(!e)throw new _.hi("No media element available, can not set current time!");f=a-c;return Math.abs(f)<=d?(b.log.info("Skip seek. Delta "+Math.abs(f)+" \x3c "+d),g["return"]()):_.x(g,Cn(b,e),2)}return _.x(g,Dn(b,e,a,f,c,d),0)})};
542
543
  _.r.getVolume=function(){var a=this.D.getMedia();if(a)return a.volume;this.log.warn("No media element available, can not report volume!");return null};_.r.setVolume=function(a){var b=this.D.getMedia();b?_.N.ya(a)?0>a||1<a?this.log.warn(ya+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(ya+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.r.isMuted=function(){return this.D.getMedia().muted};
543
544
  _.r.setMuted=function(a){var b=this.D.getMedia();typeof a===_.bd&&(b.muted=a)};_.r.getDuration=function(){return this.getMediaDuration()};_.r.getMediaDuration=function(){return this.ea?this.D.getMedia().duration:-1};_.r.getTrackManager=function(){return this.ne};_.r.getPlaybackRate=function(){var a=this.D.getMedia();return a&&a.playbackRate||1};_.r.setPlaybackRate=function(a){var b=this.D.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.r.setSourceIndex=function(a){this.If=a};_.r.getSourceIndex=function(){return this.If};
544
- _.r.getLoadedSource=function(){return this.ea&&-1!==this.If?this.ea[this.If]:null};_.r.getPeriods=function(){return[]};_.r.getNetworkEngine=function(){return this.he};_.r.setNetworkEngine=function(a){var b=this;this.he=a;Vl(this.he,function(c){b.onError(c)})};_.r.setCmsdManager=function(a){this.hh=a};_.r.getTextDisplayer=function(){return this.T};_.r.getTimelineCues=function(){return[]};_.r.getCueTimeline=function(){return null};_.r.resetAbr=function(){};
545
- _.r.Jo=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.ug||a.type===_.If)this.ak.debug(d);else{var e="";switch(a.type){case _.Kf:e="Rate: "+this.getPlaybackRate();break;case fe:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.hf:case _.uf:case "suspend":case _.Ug:case bg:case _.Wf:case _.Vf:case _.ug:case _.If:case ed:case fd:b=
546
- this.getBufferInfo().Xa(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.Pf:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.ak.info(d)}a.type!==_.le&&this.trigger(new _.R(a.type,{detail:a}))};_.r.qj=function(){};var An;An=new _.L("clpp.Components");_.yn=new Map;_.J("clpp.install",function(a){In(a)});_.J("clpp.uninstall",function(a){Jn(a)});Kn.prototype.release=function(){this.a=this.f=null};var vo={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,
545
+ _.r.getLoadedSource=function(){return this.ea&&-1!==this.If?this.ea[this.If]:null};_.r.getPeriods=function(){return[]};_.r.getNetworkEngine=function(){return this.he};_.r.setNetworkEngine=function(a){var b=this;this.he=a;Yl(this.he,function(c){b.onError(c)})};_.r.setCmsdManager=function(a){this.ih=a};_.r.getTextDisplayer=function(){return this.L};_.r.getTimelineCues=function(){return[]};_.r.getCueTimeline=function(){return null};_.r.resetAbr=function(){};
546
+ _.r.Ko=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.ug||a.type===_.Jf)this.bk.debug(d);else{var e="";switch(a.type){case _.Lf:e="Rate: "+this.getPlaybackRate();break;case fe:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.jf:case _.vf:case "suspend":case _.Ug:case cg:case _.Xf:case _.Wf:case _.ug:case _.Jf:case ed:case fd:b=
547
+ this.getBufferInfo().Ya(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.Qf:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.bk.info(d)}a.type!==_.le&&this.trigger(new _.R(a.type,{detail:a}))};_.r.rj=function(){};En.prototype.release=function(){this.a=this.f=null};var qo={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,
547
548
  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,
548
549
  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,
549
550
  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,
@@ -557,112 +558,113 @@ this.getBufferInfo().Xa(c);e="State "+this.getSurface().getMedia().readyState+"
557
558
  21,58,231,13,118,215,58,166,74,44,51,103,50,120,198,197,213,64,34,105,66,115,72,235,88,51,28,238,54,93,147,140,187,28,173,50,109,5,234,155,141,29,52,234,135,38,55,103,111,116,98,171,210,13,211,129,249,70,57,64,155,151,38,8,225,188,229,3,247,234,26,46,91,211,250,252,38,87,111,205,37,108,74,168,112,74,116,191,73,170,243,167,54,36,20,23,72,67,35,181,159,241,102,250,221,22,18,92,161,54,236,172,183,214,18,160,199,92,46,171,180,211,90,64,62,144,121,201,77,74,211,17,244,49,124,244,120,116,148,234,184,79,
558
559
  136,12,176,34,231,39,149,87,28,219,2,3,1,0,1,58,12,99,97,115,116,108,97,98,115,46,99,111,109,64,1,18,128,3,50,97,151,165,120,63,210,172,84,187,10,36,166,202,149,32,118,107,37,251,186,217,170,254,4,95,20,85,66,157,43,154,24,66,136,147,101,223,78,204,173,228,175,111,100,168,97,164,222,84,160,51,79,233,227,223,105,252,85,11,242,129,199,206,11,9,236,118,163,118,204,179,159,69,108,223,229,114,176,8,26,36,9,23,103,233,62,55,162,154,209,96,98,102,80,173,114,233,213,36,56,135,65,188,245,176,95,70,189,199,
559
560
  143,81,72,182,124,207,225,238,28,172,144,110,89,44,12,137,51,52,239,130,117,119,15,207,200,229,142,166,8,80,79,111,255,191,70,47,189,108,75,234,184,241,119,21,255,98,167,124,132,30,239,102,113,7,132,96,39,134,123,220,209,255,110,222,35,147,0,77,125,253,129,139,66,158,126,221,13,117,113,163,143,235,9,130,180,3,133,94,152,45,199,69,168,182,95,122,82,25,203,10,99,191,186,193,238,225,224,140,156,142,171,110,26,214,32,240,6,218,138,10,47,114,133,17,1,151,43,213,223,198,210,186,81,18,50,221,84,177,180,
560
- 26,58,164,235,113,177,235,207,22,230,8,119,76,167,166,176,173,209,214,53,116,116,231,227,221,238,174,87,249,19,166,195,81,47,210,172,15,75,251,202,192,80,85,213,23,17,178,104,181,193,115,239,91,72,230,167,55,143,10,250,26,54,8,60,13,213,206,235,3,215,179,205,232,1,144,158,35,48,196,149,117,219,63,196,130,117,40,165,193,65,215,122,44,201,218,67,216,6,131,178,5,168,229,21,137,112,215,254,127,48,160,181,68,49,255,64,46,247,236,85,155,146,208,5,219,252,37,174,31,218,136,135,55,119,112]};_.Nn.prototype.getPosition=function(){return this.a};_.Nn.prototype.bb=function(){return this.f.byteLength};_.Nn.prototype.seek=function(a){(0>a||a>=this.f.byteLength)&&_.On();this.a=a};_.Qn.prototype.getPosition=function(){return this.a};_.Qn.prototype.bb=function(){return this.f.byteLength};_.Qn.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.Sn();this.a+=a};_.Qn.prototype.seek=function(a){if(0>a||a>=this.f.byteLength)throw _.Sn();this.a=a};_.J("clpp.utils.dataview.DataViewReader",_.Qn);_.r=_.$n.prototype;_.r.N=function(a,b){var c=eo(a);this.h[c]=dw;this.f[c]=b;return this};_.r.da=function(a,b){var c=eo(a);this.h[c]=ew;this.f[c]=b;return this};_.r.stop=function(){this.a=!0};_.r.parse=function(a,b){var c=_.Vi(a);c=new _.Qn(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.Rn(c)&&!this.a;)this.Wf(0,c,b)};
561
- _.r.Wf=function(a,b,c){var d=b.getPosition(),e=_.Vn(b),f=_.Vn(b),g=!1;this.g.debug("Parsing MP4 box",_.fo(f));switch(e){case 0:e=b.bb()-d;break;case 1:e=_.Xn(b),g=!0}var k=this.f[f];if(k){var l=null,m=null;this.h[f]===ew&&(m=_.Vn(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.bb()&&(n=b.bb());n-=b.getPosition();b=0<n?_.Zn(b,n):new Uint8Array(0);b=new _.Qn(new DataView(b.buffer,b.byteOffset,b.byteLength),!1);k({parser:this,partialOkay:c||!1,version:l,flags:m,reader:b,size:e,start:d+
562
- a,headerSize:f,has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.bb()-b.getPosition()),b.skip(a)};_.J("clpp.utils.Mp4Parser",_.$n);_.$n.typeToString=_.fo;_.$n.allData=_.co;_.$n.sampleDescription=_.bo;_.$n.children=_.ao;_.$n.prototype.parseNext=_.$n.prototype.Wf;_.$n.prototype.parse=_.$n.prototype.parse;_.$n.prototype.stop=_.$n.prototype.stop;_.$n.prototype.fullBox=_.$n.prototype.da;_.$n.prototype.box=_.$n.prototype.N;_.$n.headerSize=_.go;var dw=0,ew=1;_.J("clpp.utils.FairplayUtils",ho);ho.parseFairPlayResponse=_.no;ho.formatFairPlayRequest=_.mo;ho.createFairplayPayload=lo;ho.extractContentId=_.jo;ho.extractExtXKeyUri=io;var fw,gw,hw,iw,ro;fw=[Ra,Ta,Sa,_.Bb,_.Ab];gw=[Ra,Ta,Sa,_.Bb,_.Ab];hw=["3000","2000","150"];iw=["2000","150"];
563
- ro={1001:"Internal Error",1002:"External Error",10001:"Bad request",10002:"Request read failed",10003:"Content keys not found",10101:"Request denied",10201:"Missing config",10202:"Feature disabled",20001:"Authtoken invalid",20002:"Authtoken expired",20003:"Auth callback failed",20101:"Auth denied",40001:"Device revoked (override possible)",40002:"Device permanently revoked",40003:"Invalid service certificate (unmapped)",40004:"Persistence forbidden",60001:"CSL Invalid",60100:"CSL Denied",70100:"GBL Denied"};
564
- _.to=new _.L("clpp.drm.DrmTodayUtils");_.xo.prototype.value=function(){void 0===this.a&&(this.a=this.f());return this.a};_.r=yo.prototype;_.r.getStatus=function(){return this.a};_.r.forEach=function(a){this.a&&a(this.a,jw.value())};_.r.get=function(a){if(this.has(a))return this.a};_.r.has=function(a){var b=jw.value();return this.a&&Wi(a,b)?!0:!1};_.r.entries=function(){};_.r.keys=function(){};_.r.values=function(){};var jw=new _.xo(function(){return bj(new Uint8Array([0]))});var Ao=new _.xo(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.Fe],[HTMLMediaElement.HAVE_CURRENT_DATA,_.Ee],[HTMLMediaElement.HAVE_FUTURE_DATA,ed],[HTMLMediaElement.HAVE_ENOUGH_DATA,fd]])});_.J("clpp.drm.eme.EmeFactory.Apis",{STANDARD:yb,APPLE:ka,WEBKIT:"WEBKIT",NOP:"NOP"});_.r=Co.prototype;_.r.uf=function(a){this.f=a};_.r.ke=function(a){var b=this.a;b&&b!==a&&Lo(b,null);return(this.a=a)?Lo(a,this.f):Promise.resolve()};_.r.Gf=function(){return this.a};_.r.hc=function(a,b){_.Ph("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new Jo(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.r.je=function(){return ka};Jo.prototype.createMediaKeys=function(){var a=new Ko(this.keySystem);return Promise.resolve(a)};
565
- Jo.prototype.getConfiguration=function(){_.Ph("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};Ko.prototype.createSession=function(a){a=void 0===a?lg:a;this.g.debug("Creating Apple MediaKeys Session");if(a!==lg)throw new TypeError("Session type "+a+ba);return new Mo(this.h,"__session_"+this.j++)};Ko.prototype.setServerCertificate=function(){this.g.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.w(Mo,_.kn);_.r=Mo.prototype;
566
- _.r.generateRequest=function(a,b){var c=this;if(this.l)return Promise.reject(Db);this.g.debug("generateRequest");this.h=new _.ml;try{var d=this.o.createSession(_.Og,_.Vi(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,Zg,function(e){var f=c.keyStatuses.getStatus();c.g.debug("Received Key Message in "+c.sessionId);c.h&&(c.h.resolve(),c.h=null);e=new _.R(_.Ke,{messageType:void 0===f||f===eg?ze:ye,message:bj(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,Xg,function(e){c.g.debug("onWebkitKeyAdded_",
567
- e);c.f&&(No(c,"usable"),c.f.resolve(),c.f=null)});this.j.on(d,Yg,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===eg)c.g.warn("Ignoring webkit key error for session "+c.sessionId);else if(c.g.error("Received key error in session "+c.sessionId+" with code "+(c.a.error.code+". Session Status ")+(e+".")),e=Error("EME AppleEmeManager key error"),e.errorCode=c.a.error,null!==c.h)c.h.reject(e),c.h=null;else if(null!==c.f)c.f.reject(e),
568
- c.f=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:No(c,"output-not-allowed");break;default:No(c,_.ve)}});No(this,eg)}catch(e){this.h.reject(e)}return this.h};_.r.load=function(){this.g.debug(_.De);return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.r.update=function(a){if(this.l)return Promise.reject(Db);this.g.debug(Bg);this.f=new _.ml;try{this.a.update(_.Vi(a))}catch(b){this.f.reject(b)}return this.f};
569
- _.r.close=function(){if(this.l)return this.closed;this.g.info("Closing Key Session "+this.sessionId);this.l=!0;try{this.a.close(),this.closed.resolve(),_.ni(this.j)}catch(a){this.closed.reject(a)}return this.closed};_.r.remove=function(){this.g.debug("remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};Oo.prototype.a=function(){return ka};Oo.prototype.f=function(){return!!window.WebKitMediaKeys};
570
- Oo.prototype.create=function(){return new Co};_.r=Po.prototype;_.r.uf=function(a){this.a=a};_.r.ke=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(fb)};_.r.Gf=function(){return this.a&&this.a.mediaKeys};
571
- _.r.hc=function(a,b){var c=this;this.g.info("Requesting media key system access for",a,b.map(function(d){return Object.assign({},d,{drmInfos:d.drmInfos.map(function(){return"_anonymous_"})})}));return navigator.requestMediaKeySystemAccess(a,b)["catch"](function(d){c.g.info("Failed to request media key system access for "+(a+"."),d);return Promise.reject(d)})};_.r.je=function(){return yb};Qo.prototype.a=function(){return yb};
572
- Qo.prototype.f=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};Qo.prototype.create=function(){return new Po};_.r=Ro.prototype;_.r.uf=function(a){this.a=a};_.r.ke=function(a){_.Ph("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(fb);var b=this.f;b&&b!==a&&Wo(b,null);(this.f=a)&&Wo(a,this.a);return Promise.resolve()};_.r.Gf=function(){return this.f};_.r.hc=function(a,b){_.Ph("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.Lg);c=d.length?d[0]:document.createElement(_.Lg)}var e=new So(this.h,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
573
- _.r.je=function(){return"WEBKIT"};So.prototype.createMediaKeys=function(){return Promise.resolve(new To(this.h,this.a))};So.prototype.getConfiguration=function(){return this.f};To.prototype.createSession=function(a){a=void 0===a?lg:a;if(a!==lg&&a!==_.ff)throw new TypeError("Session type "+a+ba);if(!this.a)throw a=Error("Media element is missing."),a.name=Xa,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new Xo(this.h,this.a,this.o,a);this.j.push(a);return a};
574
- To.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.w(Xo,_.kn);_.r=Xo.prototype;_.r.ready=function(){_.Ph("WebkitEmeManager.MediaKeySession.ready");Vo(this,"usable");this.a&&this.a.resolve();this.a=null};_.r.generateRequest=function(a,b){_.Ph("WebkitEmeManager.MediaKeySession.generateRequest");return Zo(this,b,null)};_.r.load=function(a){_.Ph(Vb);return this.l===_.ff?Zo(this,null,a):Promise.reject(Error(kb))};_.r.update=function(a){_.Ph(Vb);var b=new _.ml;$o(this,b,a);return b};
575
- _.r.close=function(){_.Ph("WebkitEmeManager.MediaKeySession.close");if(this.l!==_.ff){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=Yo(this,"cancelKeyRequest");try{this.j[a](this.h,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.r.remove=function(){_.Ph("WebkitEmeManager.MediaKeySession.remove");return this.l!==_.ff?Promise.reject(Error(kb)):this.close()};ap.prototype.a=function(){return"WEBKIT"};
576
- ap.prototype.f=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};ap.prototype.create=function(){return new Ro};_.r=bp.prototype;_.r.uf=function(){};_.r.ke=function(a){_.Ph("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.r.Gf=function(){return null};_.r.hc=function(){_.Ph("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.r.je=function(){return"NOP"};cp.prototype.a=function(){return"NOP"};cp.prototype.f=function(){return!0};cp.prototype.create=function(){return new bp};var ep=new _.L("clpp.drm.EmeFactory"),dp=[];_.r=_.gp.prototype;_.r.Pa=function(a,b){var c=this.aa(a,b);return 1!==c.length?null:c[0]};_.r.ic=_.hh(2);_.r.aa=function(a,b){return Array.from(a.childNodes).filter(function(c){return c instanceof Element&&c.tagName===b})};_.r.Wc=_.hh(4);_.r.getAttributeNS=function(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null};_.r.ua=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};
577
- _.r.Z=_.hh(6);_.r.Se=function(a,b){var c=new DOMParser,d=null;try{d=c.parseFromString(a,_.og)}catch(e){}if(!d)return null;c=d.documentElement;return b&&c.tagName!==b||0<d.getElementsByTagName("parsererror").length?null:c};_.r.Df=_.hh(8);_.r.Cd=_.hh(10);_.r.Zf=_.hh(12);_.r.removeChild=function(a,b){a.removeChild(b)};_.r.Lf=_.hh(14);_.r.Kf=_.hh(16);_.r.$f=_.hh(18);_.r.Ye=_.hh(20);_.np=new _.gp;_.kw=new _.L("clpp.xml.Parser");_.qn="dom";var jp;_.rp=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];jp=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.w(ip,hp);_.w(_.mp,hp);var tp=!!(performance&&performance.mark&&performance.measure),vp=new _.L("clpp.perf");xp.prototype.j=function(a){if(1<a.version)_.Kh("Unrecognized PSSH version found!");else{var b=_.Il(_.Zn(a.reader,16)),c=[];if(0<a.version)for(var d=_.Vn(a.reader),e=0;e<d;++e){var f=_.Il(_.Zn(a.reader,16));c.push(f)}d=_.Vn(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.bb()&&_.Kh("Mismatch between box size and data size!")}};_.r=_.Bp.prototype;_.r.destroy=function(){var a=this;return _.I(function(b){if(1==b.a){if(a.j)return _.x(b,a.Fa,0);a.j=!0;return _.x(b,Dp(a),4)}a.Fa.resolve();return b.C(0)})};_.r.keySystem=function(){return this.a?_.gq(this.a.keySystem):""};_.r.getDrmInfo=function(){return this.a};_.r.pj=function(a){var b=this;return _.I(function(c){return b.H&&b.L===Ep?c["return"]():!b.f.delayLicenseRequestUntilPlayed||b.D&&!b.D.paused||b.vb?_.x(c,uq(b,a),0):(b.ha.push(a),c.C(0))})};
578
- _.r.lj=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,k){if(typeof k===_.gg){var l=k;k=g;g=l}if(oq(b.a.keySystem)&&16===k.byteLength&&_.qi()){l=_.aj(k);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!==eg&&(d.loaded=!0);d&&d.Ab&&d.Ab.resolve();"expired"===g&&(e=!0);l=_.Vi(k);var q=_.Il(l);"00"===q&&d&&d.keyId?q=d.keyId:
579
- b.a.keySystem.startsWith(_.Fd)&&16!==l.byteLength&&(q=_.S.fromCharCode(l));(l=q||"")?b.g.info(Ya+q+"': "+g):b.g.info("Key status global keys: "+g);b.o.set(l,g);d&&!d.keyId&&b.h.forEach(function(t,u){u===c||t.keyId!==q||t.loaded||(t.loaded=!0)})});d&&d.loaded&&d.Eb.forEach(function(g){b.o.get(g)===eg&&(b.g.warn(Ya+g+fa),b.o.set(g,_.cf))});for(a=0;a<this.a.initData.length;a++){var f=this.a.initData[a];f.keyId&&this.o.get(f.keyId)===eg&&_.Jl(f.initData,d.initData)&&(this.g.warn(Ya+f.keyId+fa),this.o.set(f.keyId,
580
- _.cf))}a=c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.Mc&&(this.g.debug("Session has expired",c.sessionId),(a=this.h.get(c))&&a.Ed&&a.Ed.stop(),this.h["delete"](c),c.close()["catch"](function(){}));iq(this)&&(this.I.resolve(),1!==this.h.size||e?this.ba.ia(.5):zp(this))};var Ep=0,yp=3;_.zq=new Map;_.Aq=new _.L("clpp.text");_.Kq.prototype.getStats=function(){for(var a=[],b=_.v(Hq(this.a)),c=b.next();!c.done;c=b.next())c=c.value,a.push({timestamp:c.timestamp,state:_.Dq(c.state),duration:c.duration});return{width:this.A,height:this.j,streamBandwidth:this.w,decodedFrames:this.l,droppedFrames:this.o,corruptedFrames:this.D,estimatedBandwidth:this.h,loadLatency:this.B,playTime:Gq(this.a,8),pauseTime:Gq(this.a,10),bufferingTime:Gq(this.a,6),stateHistory:a,switchHistory:Jq(this.f)}};_.J("clpp.utils.media.detectType",Mq);var Pq=new _.L("clpp.sources");_.w(Qq,_.vn);_.r=Qq.prototype;_.r.init=function(a,b){_.vn.prototype.init.call(this,a,b);this.j=new dj(this);fj(this.j,0)};_.r.namespace=function(){return zd};
581
- _.r.unload=function(){var a=this,b;return _.I(function(c){if(a.ea){a.log.debug("Releasing player with source",a.ea);a.B&&(a.B.stop(),a.B=null);(b=a.getTrackManager())&&b.release();a.A&&(a.A.destroy(),a.A=null);a.T&&(a.T.destroy(),a.T=null);a.l&&a.l.release();a.o&&(a.o.destroy(),a.o=null);_.ni(a.h);a.f&&(a.f=new _.Kq);a.G=null;a.ea=null;a.H=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());if(a.w)throw new _.O(_.Q,7,7E3);if(a.a){var d=a.a;a.h.off(d,_.le);a.h.off(d,_.Pf);a.a=null}}_.z(c)})};
582
- _.r.release=function(){var a=this;return _.vn.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.j&&fj(a.j,0)})};
583
- _.r.destroy=function(){var a=this;if(this.w)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.w=!0;return _.vn.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Ja);var b=a.getTrackManager();b&&b.destroy();a.l&&(a.l.destroy()["catch"](function(c){a.log.warn("Error while disposing metadata handler",c)}),a.l=null);a.j&&(a.j.destroy(),a.j=null);a.f=null})};_.r.getDrmInfo=function(){return this.o?this.o.getDrmInfo():null};
561
+ 26,58,164,235,113,177,235,207,22,230,8,119,76,167,166,176,173,209,214,53,116,116,231,227,221,238,174,87,249,19,166,195,81,47,210,172,15,75,251,202,192,80,85,213,23,17,178,104,181,193,115,239,91,72,230,167,55,143,10,250,26,54,8,60,13,213,206,235,3,215,179,205,232,1,144,158,35,48,196,149,117,219,63,196,130,117,40,165,193,65,215,122,44,201,218,67,216,6,131,178,5,168,229,21,137,112,215,254,127,48,160,181,68,49,255,64,46,247,236,85,155,146,208,5,219,252,37,174,31,218,136,135,55,119,112]};_.Hn.prototype.getPosition=function(){return this.a};_.Hn.prototype.cb=function(){return this.f.byteLength};_.Hn.prototype.seek=function(a){(0>a||a>=this.f.byteLength)&&_.In();this.a=a};_.Kn.prototype.getPosition=function(){return this.a};_.Kn.prototype.cb=function(){return this.f.byteLength};_.Kn.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.Mn();this.a+=a};_.Kn.prototype.seek=function(a){if(0>a||a>=this.f.byteLength)throw _.Mn();this.a=a};_.J("clpp.utils.dataview.DataViewReader",_.Kn);_.r=_.Un.prototype;_.r.N=function(a,b){var c=Yn(a);this.h[c]=vw;this.f[c]=b;return this};_.r.da=function(a,b){var c=Yn(a);this.h[c]=ww;this.f[c]=b;return this};_.r.stop=function(){this.a=!0};_.r.parse=function(a,b){var c=_.Vi(a);c=new _.Kn(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.Ln(c)&&!this.a;)this.Wf(0,c,b)};
562
+ _.r.Wf=function(a,b,c){var d=b.getPosition(),e=_.Pn(b),f=_.Pn(b),g=!1;this.g.debug("Parsing MP4 box",_.Zn(f));switch(e){case 0:e=b.cb()-d;break;case 1:e=_.Rn(b),g=!0}var k=this.f[f];if(k){var l=null,m=null;this.h[f]===ww&&(m=_.Pn(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.cb()&&(n=b.cb());n-=b.getPosition();b=0<n?_.Tn(b,n):new Uint8Array(0);b=new _.Kn(new DataView(b.buffer,b.byteOffset,b.byteLength),!1);k({parser:this,partialOkay:c||!1,version:l,flags:m,reader:b,size:e,start:d+
563
+ a,headerSize:f,has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.cb()-b.getPosition()),b.skip(a)};_.J("clpp.utils.Mp4Parser",_.Un);_.Un.typeToString=_.Zn;_.Un.allData=_.Xn;_.Un.sampleDescription=_.Wn;_.Un.children=_.Vn;_.Un.prototype.parseNext=_.Un.prototype.Wf;_.Un.prototype.parse=_.Un.prototype.parse;_.Un.prototype.stop=_.Un.prototype.stop;_.Un.prototype.fullBox=_.Un.prototype.da;_.Un.prototype.box=_.Un.prototype.N;_.Un.headerSize=_.$n;var vw=0,ww=1;_.J("clpp.utils.FairplayUtils",ao);ao.parseFairPlayResponse=_.ho;ao.formatFairPlayRequest=_.go;ao.createFairplayPayload=fo;ao.extractContentId=_.co;ao.extractExtXKeyUri=bo;var xw,yw,zw,Aw,no;xw=[Ra,Ta,Sa,_.Bb,_.Ab];yw=[Ra,Ta,Sa,_.Bb,_.Ab];zw=["3000","2000","150"];Aw=["2000","150"];
564
+ no={1001:"Internal Error",1002:"External Error",10001:"Bad request",10002:"Request read failed",10003:"Content keys not found",10101:"Request denied",10201:"Missing config",10202:"Feature disabled",20001:"Authtoken invalid",20002:"Authtoken expired",20003:"Auth callback failed",20101:"Auth denied",40001:"Device revoked (override possible)",40002:"Device permanently revoked",40003:"Invalid service certificate (unmapped)",40004:"Persistence forbidden",60001:"CSL Invalid",60100:"CSL Denied",70100:"GBL Denied"};
565
+ _.ko=new _.L("clpp.drm.DrmTodayUtils");_.so.prototype.value=function(){void 0===this.a&&(this.a=this.f());return this.a};_.r=to.prototype;_.r.getStatus=function(){return this.a};_.r.forEach=function(a){this.a&&a(this.a,Bw.value())};_.r.get=function(a){if(this.has(a))return this.a};_.r.has=function(a){var b=Bw.value();return this.a&&Wi(a,b)?!0:!1};_.r.entries=function(){};_.r.keys=function(){};_.r.values=function(){};var Bw=new _.so(function(){return bj(new Uint8Array([0]))});var vo=new _.so(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.Fe],[HTMLMediaElement.HAVE_CURRENT_DATA,_.Ee],[HTMLMediaElement.HAVE_FUTURE_DATA,ed],[HTMLMediaElement.HAVE_ENOUGH_DATA,fd]])});_.J("clpp.drm.eme.EmeFactory.Apis",{STANDARD:yb,APPLE:ka,WEBKIT:"WEBKIT",NOP:"NOP"});_.r=xo.prototype;_.r.uf=function(a){this.f=a};_.r.ke=function(a){var b=this.a;b&&b!==a&&Ao(b,null);return(this.a=a)?Ao(a,this.f):Promise.resolve()};_.r.Gf=function(){return this.a};_.r.hc=function(a,b){_.Ph("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new yo(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.r.je=function(){return ka};yo.prototype.createMediaKeys=function(){var a=new zo(this.keySystem);return Promise.resolve(a)};
566
+ yo.prototype.getConfiguration=function(){_.Ph("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};zo.prototype.createSession=function(a){a=void 0===a?lg:a;this.g.debug("Creating Apple MediaKeys Session");if(a!==lg)throw new TypeError("Session type "+a+ba);return new Bo(this.h,"__session_"+this.j++)};zo.prototype.setServerCertificate=function(){this.g.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.w(Bo,_.qn);_.r=Bo.prototype;
567
+ _.r.generateRequest=function(a,b){var c=this;if(this.l)return Promise.reject(Db);this.g.debug("generateRequest");this.h=new _.ol;try{var d=this.o.createSession(_.Og,_.Vi(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,Zg,function(e){var f=c.keyStatuses.getStatus();c.g.debug("Received Key Message in "+c.sessionId);c.h&&(c.h.resolve(),c.h=null);e=new _.R(_.Ke,{messageType:void 0===f||f===fg?ze:ye,message:bj(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,Xg,function(e){c.g.debug("onWebkitKeyAdded_",
568
+ e);c.f&&(Co(c,"usable"),c.f.resolve(),c.f=null)});this.j.on(d,Yg,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===fg)c.g.warn("Ignoring webkit key error for session "+c.sessionId);else if(c.g.error("Received key error in session "+c.sessionId+" with code "+(c.a.error.code+". Session Status ")+(e+".")),e=Error("EME AppleEmeManager key error"),e.errorCode=c.a.error,null!==c.h)c.h.reject(e),c.h=null;else if(null!==c.f)c.f.reject(e),
569
+ c.f=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:Co(c,"output-not-allowed");break;default:Co(c,_.ve)}});Co(this,fg)}catch(e){this.h.reject(e)}return this.h};_.r.load=function(){this.g.debug(_.De);return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.r.update=function(a){if(this.l)return Promise.reject(Db);this.g.debug(Bg);this.f=new _.ol;try{this.a.update(_.Vi(a))}catch(b){this.f.reject(b)}return this.f};
570
+ _.r.close=function(){if(this.l)return this.closed;this.g.info("Closing Key Session "+this.sessionId);this.l=!0;try{this.a.close(),this.closed.resolve(),_.ni(this.j)}catch(a){this.closed.reject(a)}return this.closed};_.r.remove=function(){this.g.debug("remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};Do.prototype.a=function(){return ka};Do.prototype.f=function(){return!!window.WebKitMediaKeys};
571
+ Do.prototype.create=function(){return new xo};_.r=Eo.prototype;_.r.uf=function(a){this.a=a};_.r.ke=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(fb)};_.r.Gf=function(){return this.a&&this.a.mediaKeys};
572
+ _.r.hc=function(a,b){var c=this;this.g.info("Requesting media key system access for",a,b.map(function(d){return Object.assign({},d,{drmInfos:d.drmInfos.map(function(){return"_anonymous_"})})}));return navigator.requestMediaKeySystemAccess(a,b)["catch"](function(d){c.g.info("Failed to request media key system access for "+(a+"."),d);return Promise.reject(d)})};_.r.je=function(){return yb};Fo.prototype.a=function(){return yb};
573
+ Fo.prototype.f=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};Fo.prototype.create=function(){return new Eo};_.r=Go.prototype;_.r.uf=function(a){this.a=a};_.r.ke=function(a){_.Ph("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(fb);var b=this.f;b&&b!==a&&Ro(b,null);(this.f=a)&&Ro(a,this.a);return Promise.resolve()};_.r.Gf=function(){return this.f};_.r.hc=function(a,b){_.Ph("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.Kg);c=d.length?d[0]:document.createElement(_.Kg)}var e=new Ho(this.h,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
574
+ _.r.je=function(){return"WEBKIT"};Ho.prototype.createMediaKeys=function(){return Promise.resolve(new Io(this.h,this.a))};Ho.prototype.getConfiguration=function(){return this.f};Io.prototype.createSession=function(a){a=void 0===a?lg:a;if(a!==lg&&a!==_.gf)throw new TypeError("Session type "+a+ba);if(!this.a)throw a=Error("Media element is missing."),a.name=Xa,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new So(this.h,this.a,this.o,a);this.j.push(a);return a};
575
+ Io.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.w(So,_.qn);_.r=So.prototype;_.r.ready=function(){_.Ph("WebkitEmeManager.MediaKeySession.ready");Qo(this,"usable");this.a&&this.a.resolve();this.a=null};_.r.generateRequest=function(a,b){_.Ph("WebkitEmeManager.MediaKeySession.generateRequest");return Uo(this,b,null)};_.r.load=function(a){_.Ph(Vb);return this.l===_.gf?Uo(this,null,a):Promise.reject(Error(kb))};_.r.update=function(a){_.Ph(Vb);var b=new _.ol;Vo(this,b,a);return b};
576
+ _.r.close=function(){_.Ph("WebkitEmeManager.MediaKeySession.close");if(this.l!==_.gf){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=To(this,"cancelKeyRequest");try{this.j[a](this.h,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.r.remove=function(){_.Ph("WebkitEmeManager.MediaKeySession.remove");return this.l!==_.gf?Promise.reject(Error(kb)):this.close()};Wo.prototype.a=function(){return"WEBKIT"};
577
+ Wo.prototype.f=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};Wo.prototype.create=function(){return new Go};_.r=Xo.prototype;_.r.uf=function(){};_.r.ke=function(a){_.Ph("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.r.Gf=function(){return null};_.r.hc=function(){_.Ph("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.r.je=function(){return"NOP"};Yo.prototype.a=function(){return"NOP"};Yo.prototype.f=function(){return!0};Yo.prototype.create=function(){return new Xo};var $o=new _.L("clpp.drm.EmeFactory"),Zo=[];_.r=_.bp.prototype;_.r.Qa=function(a,b){var c=this.aa(a,b);return 1!==c.length?null:c[0]};_.r.ic=_.hh(2);_.r.aa=function(a,b){return Array.from(a.childNodes).filter(function(c){return c instanceof Element&&c.tagName===b})};_.r.Wc=_.hh(4);_.r.getAttributeNS=function(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null};_.r.ua=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};
578
+ _.r.Z=_.hh(6);_.r.Se=function(a,b){var c=new DOMParser,d=null;try{d=c.parseFromString(a,_.og)}catch(e){}if(!d)return null;c=d.documentElement;return b&&c.tagName!==b||0<d.getElementsByTagName("parsererror").length?null:c};_.r.Df=_.hh(8);_.r.Cd=_.hh(10);_.r.Zf=_.hh(12);_.r.removeChild=function(a,b){a.removeChild(b)};_.r.Lf=_.hh(14);_.r.Kf=_.hh(16);_.r.$f=_.hh(18);_.r.Ye=_.hh(20);_.ip=new _.bp;_.Cw=new _.L("clpp.xml.Parser");_.wn="dom";var ep;_.mp=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];ep=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.w(dp,cp);_.w(_.hp,cp);var op=!!(performance&&performance.mark&&performance.measure),qp=new _.L("clpp.perf");sp.prototype.j=function(a){if(1<a.version)_.Kh("Unrecognized PSSH version found!");else{var b=_.Ll(_.Tn(a.reader,16)),c=[];if(0<a.version)for(var d=_.Pn(a.reader),e=0;e<d;++e){var f=_.Ll(_.Tn(a.reader,16));c.push(f)}d=_.Pn(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.cb()&&_.Kh("Mismatch between box size and data size!")}};_.r=_.wp.prototype;_.r.destroy=function(){var a=this;return _.I(function(b){if(1==b.a){if(a.j)return _.x(b,a.Fa,0);a.j=!0;return _.x(b,yp(a),4)}a.Fa.resolve();return b.C(0)})};_.r.keySystem=function(){return this.a?_.bq(this.a.keySystem):""};_.r.getDrmInfo=function(){return this.a};_.r.qj=function(a){var b=this;return _.I(function(c){return b.H&&b.L===zp?c["return"]():!b.f.delayLicenseRequestUntilPlayed||b.D&&!b.D.paused||b.vb?_.x(c,pq(b,a),0):(b.ha.push(a),c.C(0))})};
579
+ _.r.mj=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,k){if(typeof k===_.hg){var l=k;k=g;g=l}if(jq(b.a.keySystem)&&16===k.byteLength&&_.qi()){l=_.aj(k);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!==fg&&(d.loaded=!0);d&&d.Ab&&d.Ab.resolve();"expired"===g&&(e=!0);l=_.Vi(k);var q=_.Ll(l);"00"===q&&d&&d.keyId?q=d.keyId:
580
+ b.a.keySystem.startsWith(_.Fd)&&16!==l.byteLength&&(q=_.S.fromCharCode(l));(l=q||"")?b.g.info(Ya+q+"': "+g):b.g.info("Key status global keys: "+g);b.o.set(l,g);d&&!d.keyId&&b.h.forEach(function(t,u){u===c||t.keyId!==q||t.loaded||(t.loaded=!0)})});d&&d.loaded&&d.Eb.forEach(function(g){b.o.get(g)===fg&&(b.g.warn(Ya+g+fa),b.o.set(g,_.df))});for(a=0;a<this.a.initData.length;a++){var f=this.a.initData[a];f.keyId&&this.o.get(f.keyId)===fg&&_.Ml(f.initData,d.initData)&&(this.g.warn(Ya+f.keyId+fa),this.o.set(f.keyId,
581
+ _.df))}a=c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.Mc&&(this.g.debug("Session has expired",c.sessionId),(a=this.h.get(c))&&a.Ed&&a.Ed.stop(),this.h["delete"](c),c.close()["catch"](function(){}));dq(this)&&(this.I.resolve(),1!==this.h.size||e?this.ba.ia(.5):up(this))};var zp=0,tp=3;_.uq=new Map;_.vq=new _.L("clpp.text");_.Fq.prototype.getStats=function(){for(var a=[],b=_.v(Cq(this.a)),c=b.next();!c.done;c=b.next())c=c.value,a.push({timestamp:c.timestamp,state:_.yq(c.state),duration:c.duration});return{width:this.A,height:this.j,streamBandwidth:this.w,decodedFrames:this.l,droppedFrames:this.o,corruptedFrames:this.D,estimatedBandwidth:this.h,loadLatency:this.B,playTime:Bq(this.a,8),pauseTime:Bq(this.a,10),bufferingTime:Bq(this.a,6),stateHistory:a,switchHistory:Eq(this.f)}};_.J("clpp.utils.media.detectType",Hq);var Kq=new _.L("clpp.sources");_.w(Lq,_.Bn);_.r=Lq.prototype;_.r.init=function(a,b){_.Bn.prototype.init.call(this,a,b);this.j=new dj(this);fj(this.j,0)};_.r.namespace=function(){return zd};
582
+ _.r.unload=function(){var a=this,b;return _.I(function(c){if(a.ea){a.log.debug("Releasing player with source",a.ea);a.B&&(a.B.stop(),a.B=null);(b=a.getTrackManager())&&b.release();a.A&&(a.A.destroy(),a.A=null);a.L&&(a.L.destroy(),a.L=null);a.l&&a.l.release();a.o&&(a.o.destroy(),a.o=null);_.ni(a.h);a.f&&(a.f=new _.Fq);a.G=null;a.ea=null;a.H=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());if(a.w)throw new _.O(_.Q,7,7E3);if(a.a){var d=a.a;a.h.off(d,_.le);a.h.off(d,_.Qf);a.a=null}}_.z(c)})};
583
+ _.r.release=function(){var a=this;return _.Bn.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.j&&fj(a.j,0)})};
584
+ _.r.destroy=function(){var a=this;if(this.w)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.w=!0;return _.Bn.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Ja);var b=a.getTrackManager();b&&b.destroy();a.l&&(a.l.destroy()["catch"](function(c){a.log.warn("Error while disposing metadata handler",c)}),a.l=null);a.j&&(a.j.destroy(),a.j=null);a.f=null})};_.r.getDrmInfo=function(){return this.o?this.o.getDrmInfo():null};
584
585
  _.r.getTrackManager=function(){return this.ne};
585
- _.r.load=function(a){var b=this,c,d,e,f,g;return _.I(function(k){switch(k.a){case 1:if(b.w)return k["return"](Promise.reject(new _.O(_.Q,7,7E3)));if(!b.getSurface()||!b.getSurface().getMedia())return k["return"](Promise.reject("No surface or no media element in surface"));c=_.N;d=b.D.getMedia();b.I=Date.now()/1E3;b.f=new _.Kq;b.h.on(b,_.tf,function(){b.f&&_.Fq(b.f.a,b.getState())});fj(b.j,2);b.ea=_.Oq(a);b.configuration=_.tn([b.vb,a]);b.log.debug(_.cb,b.configuration);b.log.debug(_.sb,b.ea);e=_.Cq(b.configuration,
586
- [_.se,"native"]);b.T=e.create(b);b.T.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.zn(_.kg)&&!_.xi()&&(b.A=new Uj(b),b.A.start(d));b.l?b.l.release():b.l=new kj(b);d.textTracks&&mj(b.l,d.textTracks);f=b.getTrackManager();f.load();d.loop=!!b.configuration.loop;c.R(b.configuration.volume)||b.setVolume(b.configuration.volume);c.R(b.configuration.muted)||b.setMuted(b.configuration.muted);null==b.configuration.startTime&&Yq(b,d);_.vi()&&Zq(b,d);_.F(k,2);Sq(b,d);return _.x(k,Vq(b),4);case 4:return _.x(k,
587
- Xq(b).U,5);case 5:_.G(k,0);break;case 2:g=_.H(k),b.H=!1,b.onError(g),_.z(k)}})};_.r.onError=function(a){this.H||(a.severity===_.Q&&null!==this.j&&fj(this.j,3),this.trigger(new _.R(_.le,{detail:a})))};_.r.ii=function(){return new Lm};_.r.getState=function(){return null!==this.j?this.j.getState():0};_.r.getPresentationStartTime=function(){if(this.a&&this.a.getStartDate&&this.isLive()){var a=this.a.getStartDate();return isNaN(a.getTime())?null:a.getTime()/1E3}return null};
586
+ _.r.load=function(a){var b=this,c,d,e,f,g;return _.I(function(k){switch(k.a){case 1:if(b.w)return k["return"](Promise.reject(new _.O(_.Q,7,7E3)));if(!b.getSurface()||!b.getSurface().getMedia())return k["return"](Promise.reject("No surface or no media element in surface"));c=_.N;d=b.D.getMedia();b.I=Date.now()/1E3;b.f=new _.Fq;b.h.on(b,_.uf,function(){b.f&&_.Aq(b.f.a,b.getState())});fj(b.j,2);b.ea=_.Jq(a);b.configuration=_.zn([b.vb,a]);b.log.debug(_.bb,b.configuration);b.log.debug(_.sb,b.ea);e=_.xq(b.configuration,
587
+ [_.se,_.Re]);b.L=e.create(b);b.L.setTextVisibility(!0);b.L.getClass()===_.se&&(b.A=new Uj(b.L),b.A.start(d));b.l?b.l.release():b.l=new kj(b);d.textTracks&&mj(b.l,d.textTracks);f=b.getTrackManager();f.load();d.loop=!!b.configuration.loop;c.R(b.configuration.volume)||b.setVolume(b.configuration.volume);c.R(b.configuration.muted)||b.setMuted(b.configuration.muted);null==b.configuration.startTime&&Tq(b,d);_.vi()&&Uq(b,d);_.F(k,2);Nq(b,d);return _.x(k,Qq(b),4);case 4:return _.x(k,Sq(b).U,5);case 5:_.G(k,
588
+ 0);break;case 2:g=_.H(k),b.H=!1,b.onError(g),_.z(k)}})};_.r.onError=function(a){this.H||(a.severity===_.Q&&null!==this.j&&fj(this.j,3),this.trigger(new _.R(_.le,{detail:a})))};_.r.ji=function(){return new Om};_.r.getState=function(){return null!==this.j?this.j.getState():0};_.r.getPresentationStartTime=function(){if(this.a&&this.a.getStartDate&&this.isLive()){var a=this.a.getStartDate();return isNaN(a.getTime())?null:a.getTime()/1E3}return null};
588
589
  _.r.getSeekRange=function(){var a=this.getSurface().getMedia();if(a&&a.src){a=a.seekable;if(a.length)return this.G=a={start:a.start(0),end:a.end(a.length-1)};if(this.G)return this.G}return{start:0,end:0}};_.r.isLive=function(){return this.a&&this.a.src?Infinity===this.a.duration:!1};
589
- _.r.getStats=function(){if(!this.f||!this.a)return _.Lq();this.f&&_.Fq(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.A=a.videoWidth;b.j=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.o=Number(a.droppedVideoFrames),b.l=c,this.f.D=Number(a.corruptedVideoFrames));if(a=this.getTrackManager())if(a=a.sa())a.bandwidth&&(this.f.w=a.bandwidth),a.fe&&(this.f.h=a.fe);return this.f.getStats()};
590
- _.r.getTimelineCues=function(){return this.l?this.l.getTimelineCues():[]};_.r.getCueTimeline=function(){return null};$q.prototype.a=function(){return zd};$q.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.Jc,e=c===_.Pc,f=c===_.Um;return _.ui()||d||e||f&&!_.vi()?0:""!==Ai().canPlayType(c)?f&&_.vi()&&(window.ManagedMediaSource||window.MediaSource&&MediaSource.isTypeSupported)&&!b.streaming.preferNativeHlsOnSafari?1:2:0};$q.prototype.f=function(a){return a===_.ta};$q.prototype.create=function(){return new Qq};_.Ek=1;_.Bk=2;_.J("clpp.ads.PodType",{PREROLL:0,MIDROLL:_.Ek,POSTROLL:_.Bk});_.J("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1,SERVER_GUIDED:2});_.J("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var br=new _.L("clpp.ads"),ar=[];_.r=er.prototype;_.r.load=function(){};_.r.Bb=function(){};_.r.Sc=function(){};_.r.resume=function(){};_.r.pause=function(){};_.r.Ra=function(){};_.r.isPaused=function(){};_.r.skip=function(){};_.r.getVolume=function(){};_.r.getAdVolume=function(){};_.r.setVolume=function(){};_.r.Oa=function(){};_.r.setMuted=function(){};_.r.isMuted=function(){};_.r.zb=function(){};_.r.getPosition=function(){};_.r.Ac=function(){};_.r.Pc=function(){};_.J("clpp.ads.IAdsManager",er);er.prototype.getPosition=er.prototype.getPosition;
591
- er.prototype.setVolume=er.prototype.setVolume;er.prototype.getVolume=er.prototype.getVolume;er.prototype.skip=er.prototype.skip;er.prototype.pause=er.prototype.pause;er.prototype.resume=er.prototype.resume;_.r=fr.prototype;_.r.kb=function(){};_.r.lb=function(){};_.r.ob=function(){};_.r.getId=function(){};_.r.getCreativeId=function(){};_.r.Ib=function(){};_.r.getApiFramework=function(){};_.r.getAdSystem=function(){};_.r.getAdvertiserName=function(){};_.r.getTitle=function(){};_.r.getDuration=function(){};_.r.getPosition=function(){};_.r.getSkipTimeOffset=function(){};_.r.Kb=function(){};_.r.Za=function(){};_.r.getMediaUrl=function(){};_.r.eb=function(){};_.r.cb=function(){};_.r.Ga=function(){};
592
- _.r.Ha=function(){};_.r.getPodIndex=function(){};_.r.yb=function(){};_.r.nb=function(){};_.r.fb=function(){};_.r.getWrapperAdIds=function(){};_.r.getWrapperAdSystems=function(){};_.r.getWrapperCreativeIds=function(){};_.r.Jb=function(){};_.r.canSeek=function(){};_.J("clpp.ads.IAd",fr);fr.prototype.canSeek=fr.prototype.canSeek;fr.prototype.getVideoElement=fr.prototype.Jb;fr.prototype.getWrapperCreativeIds=fr.prototype.getWrapperCreativeIds;fr.prototype.getWrapperAdSystems=fr.prototype.getWrapperAdSystems;
593
- fr.prototype.getWrapperAdIds=fr.prototype.getWrapperAdIds;fr.prototype.getSequenceLength=fr.prototype.fb;fr.prototype.getPositionInSequence=fr.prototype.nb;fr.prototype.getPodTimeOffset=fr.prototype.yb;fr.prototype.getPodIndex=fr.prototype.getPodIndex;fr.prototype.getPodType=fr.prototype.Ha;fr.prototype.getMediaBitrate=fr.prototype.Ga;fr.prototype.getMediaHeight=fr.prototype.cb;fr.prototype.getMediaWidth=fr.prototype.eb;fr.prototype.getMediaUrl=fr.prototype.getMediaUrl;
594
- fr.prototype.getClickThroughUrl=fr.prototype.Za;fr.prototype.isBumper=fr.prototype.Kb;fr.prototype.getSkipTimeOffset=fr.prototype.getSkipTimeOffset;fr.prototype.getPosition=fr.prototype.getPosition;fr.prototype.getDuration=fr.prototype.getDuration;fr.prototype.getTitle=fr.prototype.getTitle;fr.prototype.getAdvertiserName=fr.prototype.getAdvertiserName;fr.prototype.getAdSystem=fr.prototype.getAdSystem;fr.prototype.getApiFramework=fr.prototype.getApiFramework;fr.prototype.getSourceId=fr.prototype.Ib;
595
- fr.prototype.getCreativeId=fr.prototype.getCreativeId;fr.prototype.getId=fr.prototype.getId;fr.prototype.getTechnology=fr.prototype.ob;fr.prototype.getAdManagerVersion=fr.prototype.lb;fr.prototype.getAdManagerName=fr.prototype.kb;_.r=gr.prototype;_.r.kb=function(){return""};_.r.lb=function(){return""};_.r.ob=function(){return 2};_.r.getId=function(){return this.B};_.r.getCreativeId=function(){return""};_.r.Ib=function(){return this.H};_.r.getApiFramework=function(){return null};_.r.getAdSystem=function(){return""};_.r.getAdvertiserName=function(){return""};_.r.getTitle=function(){return""};_.r.getDuration=function(){return this.h};_.r.setPosition=function(a){this.w=a};_.r.getPosition=function(){return this.w};
596
- _.r.getSkipTimeOffset=function(){return-1};_.r.canSeek=function(){return this.A};_.r.Kb=function(){return!1};_.r.Za=function(){return null};_.r.getMediaUrl=function(){return null};_.r.eb=function(){return 0};_.r.cb=function(){return 0};_.r.Ga=function(){return 0};_.r.Ha=function(){return this.G};_.r.getPodIndex=function(){return 0};_.r.yb=function(){return 0};_.r.nb=function(){return this.f};_.r.fb=function(){return this.a};_.r.getWrapperAdIds=function(){return[]};_.r.getWrapperAdSystems=function(){return[]};
597
- _.r.getWrapperCreativeIds=function(){return[]};_.r.Jb=function(){return this.videoEl};_.r.um=function(){return this.D};gr.prototype.getCustomAttributes=gr.prototype.um;gr.prototype.getVideoElement=gr.prototype.Jb;gr.prototype.getWrapperCreativeIds=gr.prototype.getWrapperCreativeIds;gr.prototype.getWrapperAdSystems=gr.prototype.getWrapperAdSystems;gr.prototype.getWrapperAdIds=gr.prototype.getWrapperAdIds;gr.prototype.getSequenceLength=gr.prototype.fb;gr.prototype.getPositionInSequence=gr.prototype.nb;
598
- gr.prototype.getPodTimeOffset=gr.prototype.yb;gr.prototype.getPodIndex=gr.prototype.getPodIndex;gr.prototype.getPodType=gr.prototype.Ha;gr.prototype.getMediaBitrate=gr.prototype.Ga;gr.prototype.getMediaHeight=gr.prototype.cb;gr.prototype.getMediaWidth=gr.prototype.eb;gr.prototype.getMediaUrl=gr.prototype.getMediaUrl;gr.prototype.getClickThroughUrl=gr.prototype.Za;gr.prototype.isBumper=gr.prototype.Kb;gr.prototype.canSeek=gr.prototype.canSeek;gr.prototype.getSkipTimeOffset=gr.prototype.getSkipTimeOffset;
599
- gr.prototype.getPosition=gr.prototype.getPosition;gr.prototype.getDuration=gr.prototype.getDuration;gr.prototype.getTitle=gr.prototype.getTitle;gr.prototype.getAdvertiserName=gr.prototype.getAdvertiserName;gr.prototype.getAdSystem=gr.prototype.getAdSystem;gr.prototype.getApiFramework=gr.prototype.getApiFramework;gr.prototype.getSourceId=gr.prototype.Ib;gr.prototype.getCreativeId=gr.prototype.getCreativeId;gr.prototype.getId=gr.prototype.getId;gr.prototype.getTechnology=gr.prototype.ob;
600
- gr.prototype.getAdManagerVersion=gr.prototype.lb;gr.prototype.getAdManagerName=gr.prototype.kb;hr.prototype.has=function(){return this.a.some(function(a){return a.qf})};hr.prototype.get=function(){var a=this,b;return _.I(function(c){if(1==c.a){b=a.a.find(function(d){return d.qf});if(!b)throw Error("No available players in the pool");b.qf=!1;return _.x(c,b.ready,2)}return c["return"](b.player)})};
601
- hr.prototype.release=function(a){var b=this,c=this.a.find(function(d){return d.player===a});if(!c)return Promise.resolve();c.qf=!0;c.ready=new Promise(function(d){a.release()["catch"](function(e){b.g.error("Failed to unload player",e)}).then(d)});return c.ready};hr.prototype.destroy=function(){var a=this;return _.I(function(b){return _.x(b,Promise.all(a.a.map(function(c){return c.player.destroy()})),0)})};_.J("clpp.utils.dom.createHTMLElement",_.lr);mr.prototype.set=function(a){this.h.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=or(this,a)};mr.prototype.get=function(){return this.a};_.r=sr.prototype;_.r.getMedia=function(){return this.f.get()};_.r.getContainer=function(){return this.a.get()};_.r.getSafeContainer=function(){return this.a};_.r.getId=function(){return this.l};_.r.getUniqueCssClass=function(){return this.o};_.r.getCastElement=function(){return this.h};_.r.isFullscreen=function(){return!!document.fullscreenElement};_.r.hideMediaElement=function(){var a=this.getMedia();a?_.jr(a,sd):this.g.debug("No media element available that could be hidden")};
602
- _.r.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(sd):this.g.debug("No media element available that could be shown")};_.r.addElementToContainer=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.getContainer();if(!d)throw Error("No container is available. Unable to add element");b&&_.jr(a,_.qd);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
603
- _.r.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.r.hide=function(a){_.jr(a,sd)};_.r.show=function(a){a.classList.remove(sd)};_.r.release=function(){this.j.release()};sr.prototype.removeElementFromContainer=sr.prototype.removeElementFromContainer;sr.prototype.addElementToContainer=sr.prototype.addElementToContainer;sr.prototype.getCastElement=sr.prototype.getCastElement;
604
- sr.prototype.getContainer=sr.prototype.getContainer;sr.prototype.getMedia=sr.prototype.getMedia;var pr={disableContainer:!1,webOSStartupPatch:!1,crossorigin:"anonymous",containerEl:null},qr=1;_.r=xr.prototype;_.r.getCurrentItem=function(){return this.f};_.r.Ef=function(){return this.f?this.f.player:null};_.r.Fi=function(){return Array.from(this.o.values())};_.r.Ee=function(){return 0<this.o.size};_.r.play=function(a){return zr(this,a,_.hf)};_.r.load=function(a){return zr(this,a,_.De)};_.r.release=function(){var a=this,b,c;return _.I(function(d){if(1==d.a)return b=Promise,c=b.all,_.x(d,Gr(a),3);if(2!=d.a)return _.x(d,c.call(b,[d.f,a.f?Vr(a,a.f):Promise.resolve()]),2);a.f=null;a.B=!1;_.z(d)})};
605
- _.r.destroy=function(){var a=this;return _.I(function(b){if(1==b.a)return a.g.info("Destroy"),_.x(b,a.release(),2);if(3!=b.a)return _.x(b,a.A.destroy(),3);hs(a);_.z(b)})};_.r.isMuted=function(){return this.G};var bs="preload",ds=_.He,Pr="primary",Or="ad";_.w(rs,_.kn);_.r=rs.prototype;_.r.destroy=function(){var a=this;return _.I(function(b){Hs(a);a.f=[];a.w=!1;a.l.setSeekInterceptor(null);return _.x(b,a.a.destroy(),0)})};_.r.$b=function(){return this.w};_.r.setMuted=function(a){var b=this.a;b.G=a;b.w?a?(b.a.setMuted(!0),gs(b,!0)):(a=b.getCurrentItem(),Nr(b,a,a&&a.kc?Or:Pr)):(b.a.setMuted(a),gs(b,a))};_.r.isMuted=function(){return this.a.isMuted()};_.r.setVolume=function(a){vr(this.a).forEach(function(b){b.setVolume(a)})};
606
- _.r.Ra=function(){var a=ss(this);a&&(a.pause(),this.j.sideAdContainer&&this.l.pause())};_.r.isLive=function(){var a=this.a.Ef();return a?a.isLive():null};_.r=Ts.prototype;_.r.load=function(){return Promise.resolve()};_.r.Bb=function(){var a=this.a;var b=ss(a);b?(b.play(),a.j.sideAdContainer&&a.l.play(),a=!1):a=!0;return a};_.r.Sc=function(a,b,c){var d=a.getConfiguration();a=Object.assign({},{config:d,player:a,xb:b},d.ads.hls||{},{Do:c});this.a=new rs(a);us(this.a)};_.r.setMuted=function(a){this.a&&this.a.setMuted(a)};_.r.isMuted=function(){return this.a?this.a.isMuted():!0};_.r.zb=function(){return null!==ss(this.a)};_.r.Ra=function(){this.a.Ra()};
607
- _.r.isPaused=function(){var a=ss(this.a);return a?a.isPaused():!1};_.r.skip=function(){};_.r.getAdVolume=function(){var a=ss(this.a);return a?a.getVolume()||0:0};_.r.Oa=function(a){this.a.setVolume(a)};_.r.getPosition=function(){var a=ss(this.a);return a?a.getPosition():-1};_.r.Pc=function(){return!this.a.$b()};_.r.Ac=function(){return this.a.destroy()};_.r.setVolume=function(a){this.Oa(a)};_.r.getVolume=function(){return this.getAdVolume()};_.r.pause=function(){this.Ra()};_.r.resume=function(){this.Bb()};
608
- Ts.prototype.resume=Ts.prototype.resume;Ts.prototype.pause=Ts.prototype.pause;Ts.prototype.getVolume=Ts.prototype.getVolume;Ts.prototype.setVolume=Ts.prototype.setVolume;Ts.prototype.getPosition=Ts.prototype.getPosition;Ts.prototype.skip=Ts.prototype.skip;Ws.prototype.release=function(){this.f.release();Zs(this);this.m=null};var at=[];var ft={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},on="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";var ut="vod",tt="live";var Dt,Bt,Ct;yt.prototype.release=function(){this.a=null;this.f.ag(this.h)};_.lw="maxSuggestedBitrateKbps";Dt={du:"duress",etp:_.me,mb:_.lw,rd:"responseDelay",rtt:"roundTripTime"};Bt={at:"availabilityTime",br:"encodedBitrateKbps",ht:"heldTime",n:"intermediaryIdentifier",nor:"nextObjectResponse",nrr:"nextRangeResponse",d:"objectDuration",ot:"objectType",su:"startup",st:"streamType",sf:"streamingFormat",v:Hg};Ct=new _.L("clpp.net.CmsdManager");_.w(_.X,_.kn);_.r=_.X.prototype;_.r.on=function(a,b,c){return _.kn.prototype.on.call(this,a,b,c)};_.r.one=function(a,b,c){return _.kn.prototype.one.call(this,a,b,c)};_.r.off=function(a,b){return _.kn.prototype.off.call(this,a,b)};_.r.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.R(_.le,{detail:a}))};_.r.$i=function(a){this.ha=a;a=_.v(this.ha);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=b.id();c&&(this.M[c]=b)}this.hd("onPlayerCreated")};
590
+ _.r.getStats=function(){if(!this.f||!this.a)return _.Gq();this.f&&_.Aq(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.A=a.videoWidth;b.j=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.o=Number(a.droppedVideoFrames),b.l=c,this.f.D=Number(a.corruptedVideoFrames));if(a=this.getTrackManager())if(a=a.sa())a.bandwidth&&(this.f.w=a.bandwidth),a.fe&&(this.f.h=a.fe);return this.f.getStats()};
591
+ _.r.getTimelineCues=function(){return this.l?this.l.getTimelineCues():[]};_.r.getCueTimeline=function(){return null};Vq.prototype.a=function(){return zd};Vq.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.Jc,e=c===_.Pc,f=c===_.Xm;return _.ui()||d||e||f&&!_.vi()?0:""!==Ai().canPlayType(c)?f&&_.vi()&&(window.ManagedMediaSource||window.MediaSource&&MediaSource.isTypeSupported)&&!b.streaming.preferNativeHlsOnSafari?1:2:0};Vq.prototype.f=function(a){return a===_.ta};Vq.prototype.create=function(){return new Lq};_.Ek=1;_.Bk=2;_.J("clpp.ads.PodType",{PREROLL:0,MIDROLL:_.Ek,POSTROLL:_.Bk});_.J("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1,SERVER_GUIDED:2});_.J("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var Xq=new _.L("clpp.ads"),Wq=[];var br;br=new _.L("clpp.Components");_.$q=new Map;_.J("clpp.install",function(a){jr(a)});_.J("clpp.uninstall",function(a){kr(a)});_.r=lr.prototype;_.r.load=function(){};_.r.Bb=function(){};_.r.Sc=function(){};_.r.resume=function(){};_.r.pause=function(){};_.r.Sa=function(){};_.r.isPaused=function(){};_.r.skip=function(){};_.r.getVolume=function(){};_.r.getAdVolume=function(){};_.r.setVolume=function(){};_.r.Pa=function(){};_.r.setMuted=function(){};_.r.isMuted=function(){};_.r.zb=function(){};_.r.getPosition=function(){};_.r.Ac=function(){};_.r.Pc=function(){};_.J("clpp.ads.IAdsManager",lr);lr.prototype.getPosition=lr.prototype.getPosition;
592
+ lr.prototype.setVolume=lr.prototype.setVolume;lr.prototype.getVolume=lr.prototype.getVolume;lr.prototype.skip=lr.prototype.skip;lr.prototype.pause=lr.prototype.pause;lr.prototype.resume=lr.prototype.resume;_.r=mr.prototype;_.r.lb=function(){};_.r.nb=function(){};_.r.pb=function(){};_.r.getId=function(){};_.r.getCreativeId=function(){};_.r.Ib=function(){};_.r.getApiFramework=function(){};_.r.getAdSystem=function(){};_.r.getAdvertiserName=function(){};_.r.getTitle=function(){};_.r.getDuration=function(){};_.r.getPosition=function(){};_.r.getSkipTimeOffset=function(){};_.r.Kb=function(){};_.r.$a=function(){};_.r.getMediaUrl=function(){};_.r.fb=function(){};_.r.eb=function(){};_.r.Ga=function(){};
593
+ _.r.Ha=function(){};_.r.getPodIndex=function(){};_.r.yb=function(){};_.r.ob=function(){};_.r.gb=function(){};_.r.getWrapperAdIds=function(){};_.r.getWrapperAdSystems=function(){};_.r.getWrapperCreativeIds=function(){};_.r.Jb=function(){};_.r.canSeek=function(){};_.J("clpp.ads.IAd",mr);mr.prototype.canSeek=mr.prototype.canSeek;mr.prototype.getVideoElement=mr.prototype.Jb;mr.prototype.getWrapperCreativeIds=mr.prototype.getWrapperCreativeIds;mr.prototype.getWrapperAdSystems=mr.prototype.getWrapperAdSystems;
594
+ mr.prototype.getWrapperAdIds=mr.prototype.getWrapperAdIds;mr.prototype.getSequenceLength=mr.prototype.gb;mr.prototype.getPositionInSequence=mr.prototype.ob;mr.prototype.getPodTimeOffset=mr.prototype.yb;mr.prototype.getPodIndex=mr.prototype.getPodIndex;mr.prototype.getPodType=mr.prototype.Ha;mr.prototype.getMediaBitrate=mr.prototype.Ga;mr.prototype.getMediaHeight=mr.prototype.eb;mr.prototype.getMediaWidth=mr.prototype.fb;mr.prototype.getMediaUrl=mr.prototype.getMediaUrl;
595
+ mr.prototype.getClickThroughUrl=mr.prototype.$a;mr.prototype.isBumper=mr.prototype.Kb;mr.prototype.getSkipTimeOffset=mr.prototype.getSkipTimeOffset;mr.prototype.getPosition=mr.prototype.getPosition;mr.prototype.getDuration=mr.prototype.getDuration;mr.prototype.getTitle=mr.prototype.getTitle;mr.prototype.getAdvertiserName=mr.prototype.getAdvertiserName;mr.prototype.getAdSystem=mr.prototype.getAdSystem;mr.prototype.getApiFramework=mr.prototype.getApiFramework;mr.prototype.getSourceId=mr.prototype.Ib;
596
+ mr.prototype.getCreativeId=mr.prototype.getCreativeId;mr.prototype.getId=mr.prototype.getId;mr.prototype.getTechnology=mr.prototype.pb;mr.prototype.getAdManagerVersion=mr.prototype.nb;mr.prototype.getAdManagerName=mr.prototype.lb;_.r=nr.prototype;_.r.lb=function(){return""};_.r.nb=function(){return""};_.r.pb=function(){return 2};_.r.getId=function(){return this.B};_.r.getCreativeId=function(){return""};_.r.Ib=function(){return this.H};_.r.getApiFramework=function(){return null};_.r.getAdSystem=function(){return""};_.r.getAdvertiserName=function(){return""};_.r.getTitle=function(){return""};_.r.getDuration=function(){return this.h};_.r.setPosition=function(a){this.w=a};_.r.getPosition=function(){return this.w};
597
+ _.r.getSkipTimeOffset=function(){return-1};_.r.canSeek=function(){return this.A};_.r.Kb=function(){return!1};_.r.$a=function(){return null};_.r.getMediaUrl=function(){return null};_.r.fb=function(){return 0};_.r.eb=function(){return 0};_.r.Ga=function(){return 0};_.r.Ha=function(){return this.G};_.r.getPodIndex=function(){return 0};_.r.yb=function(){return 0};_.r.ob=function(){return this.f};_.r.gb=function(){return this.a};_.r.getWrapperAdIds=function(){return[]};_.r.getWrapperAdSystems=function(){return[]};
598
+ _.r.getWrapperCreativeIds=function(){return[]};_.r.Jb=function(){return this.videoEl};_.r.vm=function(){return this.D};nr.prototype.getCustomAttributes=nr.prototype.vm;nr.prototype.getVideoElement=nr.prototype.Jb;nr.prototype.getWrapperCreativeIds=nr.prototype.getWrapperCreativeIds;nr.prototype.getWrapperAdSystems=nr.prototype.getWrapperAdSystems;nr.prototype.getWrapperAdIds=nr.prototype.getWrapperAdIds;nr.prototype.getSequenceLength=nr.prototype.gb;nr.prototype.getPositionInSequence=nr.prototype.ob;
599
+ nr.prototype.getPodTimeOffset=nr.prototype.yb;nr.prototype.getPodIndex=nr.prototype.getPodIndex;nr.prototype.getPodType=nr.prototype.Ha;nr.prototype.getMediaBitrate=nr.prototype.Ga;nr.prototype.getMediaHeight=nr.prototype.eb;nr.prototype.getMediaWidth=nr.prototype.fb;nr.prototype.getMediaUrl=nr.prototype.getMediaUrl;nr.prototype.getClickThroughUrl=nr.prototype.$a;nr.prototype.isBumper=nr.prototype.Kb;nr.prototype.canSeek=nr.prototype.canSeek;nr.prototype.getSkipTimeOffset=nr.prototype.getSkipTimeOffset;
600
+ nr.prototype.getPosition=nr.prototype.getPosition;nr.prototype.getDuration=nr.prototype.getDuration;nr.prototype.getTitle=nr.prototype.getTitle;nr.prototype.getAdvertiserName=nr.prototype.getAdvertiserName;nr.prototype.getAdSystem=nr.prototype.getAdSystem;nr.prototype.getApiFramework=nr.prototype.getApiFramework;nr.prototype.getSourceId=nr.prototype.Ib;nr.prototype.getCreativeId=nr.prototype.getCreativeId;nr.prototype.getId=nr.prototype.getId;nr.prototype.getTechnology=nr.prototype.pb;
601
+ nr.prototype.getAdManagerVersion=nr.prototype.nb;nr.prototype.getAdManagerName=nr.prototype.lb;or.prototype.has=function(){return this.a.some(function(a){return a.qf})};or.prototype.get=function(){var a=this,b;return _.I(function(c){if(1==c.a){b=a.a.find(function(d){return d.qf});if(!b)throw Error("No available players in the pool");b.qf=!1;return _.x(c,b.ready,2)}return c["return"](b.player)})};
602
+ or.prototype.release=function(a){var b=this,c=this.a.find(function(d){return d.player===a});if(!c)return Promise.resolve();c.qf=!0;c.ready=new Promise(function(d){a.release()["catch"](function(e){b.g.error("Failed to unload player",e)}).then(d)});return c.ready};or.prototype.destroy=function(){var a=this;return _.I(function(b){return _.x(b,Promise.all(a.a.map(function(c){return c.player.destroy()})),0)})};_.J("clpp.utils.dom.createHTMLElement",_.sr);tr.prototype.set=function(a){this.h.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=vr(this,a)};tr.prototype.get=function(){return this.a};_.r=zr.prototype;_.r.getMedia=function(){return this.f.get()};_.r.getContainer=function(){return this.a.get()};_.r.getSafeContainer=function(){return this.a};_.r.getId=function(){return this.l};_.r.getUniqueCssClass=function(){return this.o};_.r.getCastElement=function(){return this.h};_.r.isFullscreen=function(){return!!document.fullscreenElement};_.r.hideMediaElement=function(){var a=this.getMedia();a?_.qr(a,sd):this.g.debug("No media element available that could be hidden")};
603
+ _.r.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(sd):this.g.debug("No media element available that could be shown")};_.r.addElementToContainer=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.getContainer();if(!d)throw Error("No container is available. Unable to add element");b&&_.qr(a,_.qd);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
604
+ _.r.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.r.hide=function(a){_.qr(a,sd)};_.r.show=function(a){a.classList.remove(sd)};_.r.release=function(){this.j.release()};zr.prototype.removeElementFromContainer=zr.prototype.removeElementFromContainer;zr.prototype.addElementToContainer=zr.prototype.addElementToContainer;zr.prototype.getCastElement=zr.prototype.getCastElement;
605
+ zr.prototype.getContainer=zr.prototype.getContainer;zr.prototype.getMedia=zr.prototype.getMedia;var wr={disableContainer:!1,webOSStartupPatch:!1,crossorigin:"anonymous",containerEl:null},xr=1;_.r=Er.prototype;_.r.getCurrentItem=function(){return this.f};_.r.Ef=function(){return this.f?this.f.player:null};_.r.Gi=function(){return Array.from(this.o.values())};_.r.Ee=function(){return 0<this.o.size};_.r.play=function(a){return Gr(this,a,_.jf)};_.r.load=function(a){return Gr(this,a,_.De)};_.r.release=function(){var a=this,b,c;return _.I(function(d){if(1==d.a)return b=Promise,c=b.all,_.x(d,Nr(a),3);if(2!=d.a)return _.x(d,c.call(b,[d.f,a.f?bs(a,a.f):Promise.resolve()]),2);a.f=null;a.B=!1;_.z(d)})};
606
+ _.r.destroy=function(){var a=this;return _.I(function(b){if(1==b.a)return a.g.info("Destroy"),_.x(b,a.release(),2);if(3!=b.a)return _.x(b,a.A.destroy(),3);os(a);_.z(b)})};_.r.isMuted=function(){return this.G};var is="preload",ks=_.He,Wr="primary",Vr="ad";_.w(ys,_.qn);_.r=ys.prototype;_.r.destroy=function(){var a=this;return _.I(function(b){Os(a);a.f=[];a.w=!1;a.l.setSeekInterceptor(null);return _.x(b,a.a.destroy(),0)})};_.r.$b=function(){return this.w};_.r.setMuted=function(a){var b=this.a;b.G=a;b.w?a?(b.a.setMuted(!0),ns(b,!0)):(a=b.getCurrentItem(),Ur(b,a,a&&a.kc?Vr:Wr)):(b.a.setMuted(a),ns(b,a))};_.r.isMuted=function(){return this.a.isMuted()};_.r.setVolume=function(a){Cr(this.a).forEach(function(b){b.setVolume(a)})};
607
+ _.r.Sa=function(){var a=zs(this);a&&(a.pause(),this.j.sideAdContainer&&this.l.pause())};_.r.isLive=function(){var a=this.a.Ef();return a?a.isLive():null};_.r=$s.prototype;_.r.load=function(){return Promise.resolve()};_.r.Bb=function(){var a=this.a;var b=zs(a);b?(b.play(),a.j.sideAdContainer&&a.l.play(),a=!1):a=!0;return a};_.r.Sc=function(a,b,c){var d=a.getConfiguration();a=Object.assign({},{config:d,player:a,xb:b},d.ads.hls||{},{Eo:c});this.a=new ys(a);Bs(this.a)};_.r.setMuted=function(a){this.a&&this.a.setMuted(a)};_.r.isMuted=function(){return this.a?this.a.isMuted():!0};_.r.zb=function(){return null!==zs(this.a)};_.r.Sa=function(){this.a.Sa()};
608
+ _.r.isPaused=function(){var a=zs(this.a);return a?a.isPaused():!1};_.r.skip=function(){};_.r.getAdVolume=function(){var a=zs(this.a);return a?a.getVolume()||0:0};_.r.Pa=function(a){this.a.setVolume(a)};_.r.getPosition=function(){var a=zs(this.a);return a?a.getPosition():-1};_.r.Pc=function(){return!this.a.$b()};_.r.Ac=function(){return this.a.destroy()};_.r.setVolume=function(a){this.Pa(a)};_.r.getVolume=function(){return this.getAdVolume()};_.r.pause=function(){this.Sa()};_.r.resume=function(){this.Bb()};
609
+ $s.prototype.resume=$s.prototype.resume;$s.prototype.pause=$s.prototype.pause;$s.prototype.getVolume=$s.prototype.getVolume;$s.prototype.setVolume=$s.prototype.setVolume;$s.prototype.getPosition=$s.prototype.getPosition;$s.prototype.skip=$s.prototype.skip;ct.prototype.release=function(){this.f.release();ft(this);this.m=null};var ht=[];var mt={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},un="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";var Bt="vod",At="live";var Kt,It,Jt;Ft.prototype.release=function(){this.a=null;this.f.ag(this.h)};_.Dw="maxSuggestedBitrateKbps";Kt={du:"duress",etp:_.me,mb:_.Dw,rd:"responseDelay",rtt:"roundTripTime"};It={at:"availabilityTime",br:"encodedBitrateKbps",ht:"heldTime",n:"intermediaryIdentifier",nor:"nextObjectResponse",nrr:"nextRangeResponse",d:"objectDuration",ot:"objectType",su:"startup",st:"streamType",sf:"streamingFormat",v:Hg};Jt=new _.L("clpp.net.CmsdManager");_.w(_.X,_.qn);_.r=_.X.prototype;_.r.on=function(a,b,c){return _.qn.prototype.on.call(this,a,b,c)};_.r.one=function(a,b,c){return _.qn.prototype.one.call(this,a,b,c)};_.r.off=function(a,b){return _.qn.prototype.off.call(this,a,b)};_.r.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.R(_.le,{detail:a}))};_.r.aj=function(a){this.ha=a;a=_.v(this.ha);for(var b=a.next();!b.done;b=a.next()){b=b.value;var c=b.id();c&&(this.M[c]=b)}this.hd("onPlayerCreated")};
609
610
  _.r.ye=function(a){a=this.M[a];void 0===a&&(a=null);return a};_.r.getSurface=function(){return this.j};_.r.getConfiguration=function(){return _.N.wb(this.f)};_.r.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.r.detach=function(){var a=this,b;return _.I(function(c){if(1==c.a)return(b=a.getTrackManager())&&b.detach(),a.a?_.x(c,a.a.detach(),3):c.C(0);a.a.stopForwardingEventsTo(a);_.z(c)})};
610
- _.r.release=function(){var a=this;if(null!=this.l)return this.g.info("Player release already in progress"),this.l;this.g.debug("Releasing player");this.l=Kt(this);return this.l["finally"](function(){Ut(a);a.g.debug("Player released");a.l=null})};_.r.stop=function(){return this.release()};
611
- _.r.destroy=function(){var a=this;return _.I(function(b){switch(b.a){case 1:if(a.W)return a.g.debug("The player is already destroyed. No-op"),b["return"]();a.W=!0;return _.x(b,a.release(),2);case 2:return a.g.debug(Ja),a.trigger(new _.R("destroying")),_.x(b,a.hd(_.Xe),3);case 3:a.a&&a.a.stopForwardingEventsTo(a);a.te.clear();a.Fa.release();if(!a.a){b.C(4);break}return _.x(b,a.a.destroy(),4);case 4:return _.x(b,a.A.destroy(),6);case 6:a.a=null,a.B=null,a.trigger(new _.R("destroyed")),a.g.debug("Player destroyed"),
612
- _.z(b)}})};_.r.open=function(a){var b=this,c,d,e;return _.I(function(f){switch(f.a){case 1:_.F(f,2);_.up(qf);b.T=_.ta;c=_.Oq(a);d=un(a)?a:{};if(d.license)throw new _.O(_.Q,7,7100,"License cannot be passed into the open method.");return _.x(f,_.St(b,d,c),4);case 4:return _.x(f,_.Tt(b),5);case 5:return _.x(f,_.Nt(b),6);case 6:_.up(pf);_.wp("player.open",qf,pf);_.G(f,0);break;case 2:e=_.H(f);Ut(b);if(b.l)throw b.g.info(ab),new _.O(_.Q,7,7E3);throw e;}})};_.r.load=function(a){return this.open(a)};
613
- _.r.preload=function(a){var b=this,c;return _.I(function(d){if(1==d.a)return _.x(d,_.St(b,a),2);if(!b.a)return b.g.warn(rb),d["return"]();c=b.a;return c.preload?_.x(d,c.preload(b.f),0):(b.g.warn(ub),d["return"]())})};_.r.hd=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];var e=this;d=this.ha.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.jh(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};_.r.use=function(a){(a=In(a))&&a.playerConstructed(this)};
614
- _.r.remove=function(a){return 0!==this.getPlayerState()&&!this.I||null===Cn(a)?!1:(Jn(a),this.X=!0)};_.r.play=function(){return this.a?this.h&&!this.h.Bb()?Promise.resolve():this.a.play():Promise.reject("No player initialized. You need to load content before calling play.")};_.r.pause=function(){return this.a?this.h&&this.h.zb()?(this.h.Ra(),Promise.resolve()):this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};
615
- _.r.getTrackManager=function(){return this.a&&this.a.getTrackManager()};_.r.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.gn};_.r.getState=function(){return _.Dq(this.getPlayerState())};_.r.getPlayerState=function(){return this.a?this.a.getState():0};_.r.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.r.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.r.isPaused=function(){return this.h&&this.h.zb()?this.h.isPaused():this.a?this.a.isPaused():!1};
611
+ _.r.release=function(){var a=this;if(null!=this.l)return this.g.info("Player release already in progress"),this.l;this.g.debug("Releasing player");this.l=Rt(this);return this.l["finally"](function(){au(a);a.g.debug("Player released");a.l=null})};_.r.stop=function(){return this.release()};
612
+ _.r.destroy=function(){var a=this;return _.I(function(b){switch(b.a){case 1:if(a.W)return a.g.debug("The player is already destroyed. No-op"),b["return"]();a.W=!0;return _.x(b,a.release(),2);case 2:return a.g.debug(Ja),a.trigger(new _.R("destroying")),_.x(b,a.hd(_.Ye),3);case 3:a.a&&a.a.stopForwardingEventsTo(a);a.te.clear();a.Fa.release();if(!a.a){b.C(4);break}return _.x(b,a.a.destroy(),4);case 4:return _.x(b,a.A.destroy(),6);case 6:a.a=null,a.B=null,a.trigger(new _.R("destroyed")),a.g.debug("Player destroyed"),
613
+ _.z(b)}})};_.r.open=function(a){var b=this,c,d,e;return _.I(function(f){switch(f.a){case 1:_.F(f,2);_.pp(rf);b.T=_.ta;c=_.Jq(a);d=An(a)?a:{};if(d.license)throw new _.O(_.Q,7,7100,"License cannot be passed into the open method.");return _.x(f,_.Zt(b,d,c),4);case 4:return _.x(f,_.$t(b),5);case 5:return _.x(f,_.Ut(b),6);case 6:_.pp(qf);_.rp("player.open",rf,qf);_.G(f,0);break;case 2:e=_.H(f);au(b);if(b.l)throw b.g.info(ab),new _.O(_.Q,7,7E3);throw e;}})};_.r.load=function(a){return this.open(a)};
614
+ _.r.preload=function(a){var b=this,c;return _.I(function(d){if(1==d.a)return _.x(d,_.Zt(b,a),2);if(!b.a)return b.g.warn(rb),d["return"]();c=b.a;return c.preload?_.x(d,c.preload(b.f),0):(b.g.warn(ub),d["return"]())})};_.r.hd=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];var e=this;d=this.ha.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.jh(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};_.r.use=function(a){(a=jr(a))&&a.playerConstructed(this)};
615
+ _.r.remove=function(a){return 0!==this.getPlayerState()&&!this.I||null===dr(a)?!1:(kr(a),this.X=!0)};_.r.play=function(){return this.a?this.h&&!this.h.Bb()?Promise.resolve():this.a.play():Promise.reject("No player initialized. You need to load content before calling play.")};_.r.pause=function(){return this.a?this.h&&this.h.zb()?(this.h.Sa(),Promise.resolve()):this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};
616
+ _.r.getTrackManager=function(){return this.a&&this.a.getTrackManager()};_.r.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.nn};_.r.getState=function(){return _.yq(this.getPlayerState())};_.r.getPlayerState=function(){return this.a?this.a.getState():0};_.r.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.r.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.r.isPaused=function(){return this.h&&this.h.zb()?this.h.isPaused():this.a?this.a.isPaused():!1};
616
617
  _.r.getPosition=function(){return this.a?this.a.getPosition():0};_.r.setPosition=function(a){return 3===this.getPlayerState()?Promise.reject("Cannot seek in current state."):this.a?this.a.seek(a):Promise.reject("delegate does not exist")};_.r.seek=function(a){return this.setPosition(a)};_.r.getPresentationStartTime=function(){return this.a?this.a.getPresentationStartTime():null};_.r.getSeekRange=function(){return this.a?this.a.getSeekRange():{start:0,end:0}};
617
- _.r.Zc=function(){var a=this.a;return a&&a.Zc?a.Zc():null};_.r.getVolume=function(){return this.a?this.a.getVolume():null};_.r.setVolume=function(a){this.h&&this.h.Oa(a);this.a&&this.a.setVolume(a)};_.r.getDuration=function(){return this.a?this.a.getDuration():-1};_.r.getAdsManager=function(){return this.h};_.r.namespace=function(){return this.a&&this.a.namespace()||"Undefined"};_.r.zb=function(){return this.h?this.h.zb():!1};_.r.Cc=function(){return this.a?this.a.getPlaybackRate():1};
618
+ _.r.Zc=function(){var a=this.a;return a&&a.Zc?a.Zc():null};_.r.getVolume=function(){return this.a?this.a.getVolume():null};_.r.setVolume=function(a){this.h&&this.h.Pa(a);this.a&&this.a.setVolume(a)};_.r.getDuration=function(){return this.a?this.a.getDuration():-1};_.r.getAdsManager=function(){return this.h};_.r.namespace=function(){return this.a&&this.a.namespace()||"Undefined"};_.r.zb=function(){return this.h?this.h.zb():!1};_.r.Cc=function(){return this.a?this.a.getPlaybackRate():1};
618
619
  _.r.getPlaybackRate=function(){return this.Cc()};_.r.Wd=function(a,b){this.a&&this.a.setPlaybackRate(a,b)};_.r.setPlaybackRate=function(a,b){this.Wd(a,b)};_.r.isMuted=function(){return this.a?!!this.a.isMuted():!1};_.r.setMuted=function(a){this.h&&this.h.setMuted(a);this.a&&this.a.setMuted(a)};_.r.getNetworkEngine=function(){return this.A};_.r.setNetworkEngine=function(a){this.A=a};_.r.getTextDisplayer=function(){return this.a&&this.a.getTextDisplayer()};_.r.isLive=function(){return!!this.a&&this.a.isLive()};
619
- _.r.getStats=function(){return this.a?this.a.getStats():null};_.r.Ki=function(){return Object.freeze(this.Aa)};_.r.$a=function(){return this.a&&this.a.getLoadedSource()};_.r.getLoadedSource=function(){return this.$a()};_.r.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.r.getCueTimeline=function(){return this.a?this.a.getCueTimeline():null};_.r.resetAbr=function(){this.a&&this.a.resetAbr()};_.r.setDrmCustomDataModifier=function(a){this.Gd=a;Qt(this)};
620
- _.r.setCdnErrorCallback=function(a){this.P=a;this.a&&this.a.setCdnErrorCallback(this.P)};_.J("clpp.Player",_.X);_.X.registerPlugin=_.Yt;_.X.prototype.setCdnErrorCallback=_.X.prototype.setCdnErrorCallback;_.X.prototype.setDrmCustomDataModifier=_.X.prototype.setDrmCustomDataModifier;_.X.prototype.resetAbr=_.X.prototype.resetAbr;_.X.prototype.getTimelineCues=_.X.prototype.getTimelineCues;_.X.prototype.getLoadedSource=_.X.prototype.getLoadedSource;_.X.prototype.getCurrentSource=_.X.prototype.$a;
621
- _.X.prototype.getSources=_.X.prototype.Ki;_.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;_.X.prototype.isMuted=_.X.prototype.isMuted;_.X.prototype.setPlaybackRate=_.X.prototype.setPlaybackRate;_.X.prototype.setRate=_.X.prototype.Wd;
620
+ _.r.getStats=function(){return this.a?this.a.getStats():null};_.r.Li=function(){return Object.freeze(this.Aa)};_.r.ab=function(){return this.a&&this.a.getLoadedSource()};_.r.getLoadedSource=function(){return this.ab()};_.r.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.r.getCueTimeline=function(){return this.a?this.a.getCueTimeline():null};_.r.resetAbr=function(){this.a&&this.a.resetAbr()};_.r.setDrmCustomDataModifier=function(a){this.Gd=a;Xt(this)};
621
+ _.r.setCdnErrorCallback=function(a){this.P=a;this.a&&this.a.setCdnErrorCallback(this.P)};_.J("clpp.Player",_.X);_.X.registerPlugin=_.eu;_.X.prototype.setCdnErrorCallback=_.X.prototype.setCdnErrorCallback;_.X.prototype.setDrmCustomDataModifier=_.X.prototype.setDrmCustomDataModifier;_.X.prototype.resetAbr=_.X.prototype.resetAbr;_.X.prototype.getTimelineCues=_.X.prototype.getTimelineCues;_.X.prototype.getLoadedSource=_.X.prototype.getLoadedSource;_.X.prototype.getCurrentSource=_.X.prototype.ab;
622
+ _.X.prototype.getSources=_.X.prototype.Li;_.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;_.X.prototype.isMuted=_.X.prototype.isMuted;_.X.prototype.setPlaybackRate=_.X.prototype.setPlaybackRate;_.X.prototype.setRate=_.X.prototype.Wd;
622
623
  _.X.prototype.getPlaybackRate=_.X.prototype.getPlaybackRate;_.X.prototype.getRate=_.X.prototype.Cc;_.X.prototype.isPlayingAd=_.X.prototype.zb;_.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.Zc;_.X.prototype.getSeekRange=_.X.prototype.getSeekRange;
623
624
  _.X.prototype.getPresentationStartTime=_.X.prototype.getPresentationStartTime;_.X.prototype.seek=_.X.prototype.seek;_.X.prototype.setPosition=_.X.prototype.setPosition;_.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;
624
625
  _.X.prototype.play=_.X.prototype.play;_.X.prototype.remove=_.X.prototype.remove;_.X.prototype.use=_.X.prototype.use;_.X.prototype.load=_.X.prototype.load;_.X.prototype.open=_.X.prototype.open;_.X.prototype.destroy=_.X.prototype.destroy;_.X.prototype.stop=_.X.prototype.stop;_.X.prototype.release=_.X.prototype.release;_.X.prototype.getDrmInfo=_.X.prototype.getDrmInfo;_.X.prototype.getConfiguration=_.X.prototype.getConfiguration;_.X.prototype.getSurface=_.X.prototype.getSurface;
625
- _.X.prototype.getPlugin=_.X.prototype.ye;_.X.prototype.off=_.X.prototype.off;_.X.prototype.one=_.X.prototype.one;_.X.prototype.on=_.X.prototype.on;var Et={IDLE:0,PREPARING:1,BUFFERING:2,PLAYING:3,PAUSED:4,ENDED:5,ERROR:6,UNSET:7};_.X.State=Et;var Ht=[];_.w(Zt,_.X);_.r=Zt.prototype;
626
- _.r.no=function(a,b){var c=this,d,e,f,g,k,l,m;return _.I(function(n){if(1==n.a){if(c.w)throw new _.O(_.Q,7,7008,"Cannot call openPlaylist() while "+c.w+ha);if(0!==a)throw new _.O(_.Q,7,7007,"The index parameter only supports the value of 0.");if(0===b.length)throw new _.O(_.Q,7,7003,jb);if(b.some(function(p){return!p.id||!p.source}))throw new _.O(_.Q,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(_.Q,
626
+ _.X.prototype.getPlugin=_.X.prototype.ye;_.X.prototype.off=_.X.prototype.off;_.X.prototype.one=_.X.prototype.one;_.X.prototype.on=_.X.prototype.on;var Lt={IDLE:0,PREPARING:1,BUFFERING:2,PLAYING:3,PAUSED:4,ENDED:5,ERROR:6,UNSET:7};_.X.State=Lt;var Ot=[];_.w(fu,_.X);_.r=fu.prototype;
627
+ _.r.oo=function(a,b){var c=this,d,e,f,g,k,l,m;return _.I(function(n){if(1==n.a){if(c.w)throw new _.O(_.Q,7,7008,"Cannot call openPlaylist() while "+c.w+ha);if(0!==a)throw new _.O(_.Q,7,7007,"The index parameter only supports the value of 0.");if(0===b.length)throw new _.O(_.Q,7,7003,jb);if(b.some(function(p){return!p.id||!p.source}))throw new _.O(_.Q,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(_.Q,
627
628
  7,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(_.Q,7,7100,"Unsupported `playlist.timeline` config value!");k=e.startTime;if(null!=k&&(typeof k!==_.h||0>k))throw new _.O(_.Q,7,7100,"Invalid `playlist.startTime` config value!");l=e.endTime;if(null!=l&&(typeof l!==_.h||0>l||null!=k&&l<=k))throw new _.O(_.Q,7,7100,"Invalid `playlist.endTime` config value!");m=e.content;if("DVR"===m&&!l)throw new _.O(_.Q,
628
- 7,7100,"`playlist.endTime` config value is required for DVR content!");}xh(n,2);$t(c);c.w="openPlaylist";return _.x(n,du(c,b),4)}2!=n.a&&(c.J=0,c.o=b,c.ba=!0,au(c,b[0].playlist||{}));_.yh(n);c.w=null;return _.zh(n)})};
629
- _.r.mk=function(a){var b=this,c;return _.I(function(d){if(1==d.a){if(b.w)throw new _.O(_.Q,7,7008,"Cannot call addItem() while "+b.w+ha);if(!b.ba)throw new _.O(_.Q,7,7008,"openPlaylist() must be called before addItem()!");if(!a.id||!a.source)throw new _.O(_.Q,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(_.Q,7,7100,"A config with this `id` already exists in the playlist!");xh(d,2);b.w="addItem";b.o.push(a);
630
- return _.x(d,eu(b,a),2)}_.yh(d);b.w=null;return _.zh(d)})};_.r.getCurrentItem=function(){return this.o[this.J]||null};_.r.getCurrentItemIndex=function(){return this.J};_.r.Cm=function(){return _.jh(this.o).concat()};_.r.Ae=function(){return this.o.length};_.r.getTimeline=function(){return this.a?this.a.getTimeline():null};_.r.seekWith=function(a){return this.a?this.a.seekWith(a):Promise.resolve()};_.r.release=function(){this.o=[];this.J=0;this.ba=!1;return _.X.prototype.release.call(this)};
631
- _.r.destroy=function(){$t(this);return _.X.prototype.destroy.call(this)};_.r.setCdnErrorCallback=function(){throw new _.O(1,7,7009,"CDN switching is not supported!");};_.r.$i=function(){};_.J("clpp.playlist.ScPlaylist",Zt);Zt.prototype.setCdnErrorCallback=Zt.prototype.setCdnErrorCallback;Zt.prototype.destroy=Zt.prototype.destroy;Zt.prototype.release=Zt.prototype.release;Zt.prototype.seekWith=Zt.prototype.seekWith;Zt.prototype.getTimeline=Zt.prototype.getTimeline;Zt.prototype.getSize=Zt.prototype.Ae;
632
- Zt.prototype.getPlaylist=Zt.prototype.Cm;Zt.prototype.getCurrentItemIndex=Zt.prototype.getCurrentItemIndex;Zt.prototype.getCurrentItem=Zt.prototype.getCurrentItem;Zt.prototype.addItem=Zt.prototype.mk;Zt.prototype.openPlaylist=Zt.prototype.no;_.w(hu,_.kn);_.r=hu.prototype;_.r.Vb=function(){return this.f};_.r.Ef=function(){return this.f?this.f.player:null};_.r.Di=function(){return this.o.get(this.a+1)||null};_.r.Gi=function(){return this.o.get(this.a-1)||null};_.r.Fi=function(){return[this.Gi(),this.Di()].filter(Boolean)};_.r.Uo=function(a){if(0<this.h.length)throw Error("Cannot re-set items in the playlist");this.g.info("Set items",a);this.h=a.map(function(b,c){return{config:b,index:c,preloadPromise:Promise.resolve(),disposers:[]}})};
633
- _.r.To=function(a){if(0===this.h.length)throw Error(ib);if(0>a||a>this.h.length-1)throw Error("Index out of bounds");this.a=a};_.r.Ee=function(){return this.a<this.h.length-1};_.r.Ni=function(){return 0<this.a};
634
- _.r.Bo=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.h.length)return a.g.warn(ib),d["return"]();a.l=!0;a.g.info("First (index: "+a.a+")");b=a.h[a.a];_.F(d,2,3);a.g.info("First loading (index: "+a.a+")");return _.x(d,pu(a,b),5);case 5:a.g.info("First playing (index: "+a.a+")");case 3:_.yh(d);a.l=!1;uu(a);_.zh(d);break;case 2:throw c=_.H(d),a.g.error("First failed (index: "+a.a+")"),c;}})};
635
- _.r.Bj=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.Ee())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.j.transition===_.df&&b.player.pause();iu(a,a.a+-2);a.o["delete"](a.a);c=a.h[a.a];_.F(e,2,3);a.g.info("Next loading (index: "+a.a+")");return _.x(e,qu(a,c),5);case 5:a.g.info("Next playing (index: "+a.a+")");case 3:_.yh(e);
636
- a.l=!1;if(!b){e.C(6);break}return _.x(e,mu(a,b),6);case 6:uu(a);_.zh(e);break;case 2:throw d=_.H(e),a.g.error("Next failed (index: "+a.a+")"),d;}})};
637
- _.r.Co=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.Ni())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.j.transition===_.df&&b.player.pause();iu(a,a.a+2);a.o["delete"](a.a);c=a.h[a.a];_.F(e,2,3);a.g.info("Previous loading (index: "+a.a+")");return _.x(e,qu(a,c),5);case 5:a.g.info("Previous playing (index: "+
638
- a.a+")");case 3:_.yh(e);a.l=!1;if(!b){e.C(6);break}return _.x(e,mu(a,b),6);case 6:uu(a);_.zh(e);break;case 2:throw d=_.H(e),a.g.error("Previous failed (index: "+a.a+")"),d;}})};_.r.destroy=function(){var a=this;return _.I(function(b){return 1==b.a?(a.g.info("Destroy"),_.x(b,Promise.all([ju(a),a.f?mu(a,a.f):Promise.resolve()]),2)):_.x(b,vu(a),0)})};_.J(Ad,hu);hu.prototype.destroy=hu.prototype.destroy;hu.prototype.playPrev=hu.prototype.Co;hu.prototype.playNext=hu.prototype.Bj;
639
- hu.prototype.playFirst=hu.prototype.Bo;hu.prototype.hasPrev=hu.prototype.Ni;hu.prototype.hasNext=hu.prototype.Ee;hu.prototype.setIndex=hu.prototype.To;hu.prototype.setItems=hu.prototype.Uo;hu.prototype.getPreloading=hu.prototype.Fi;hu.prototype.getPrev=hu.prototype.Gi;hu.prototype.getNext=hu.prototype.Di;hu.prototype.getCurrentPlayer=hu.prototype.Ef;hu.prototype.getCurrent=hu.prototype.Vb;var lu="preload",nu=_.He;var wu=new Map;_.r=yu.prototype;_.r.destroy=function(){this.a.dispose();this.a=null};_.r.reset=function(){this.a=new muxjs.mp4.Transmuxer(this.f)};_.r.isSupported=function(a,b){var c="mp2t"===a.toLowerCase().split(";")[0].split("/")[1],d=a.toLowerCase().split(";")[0]===_.Tc;if(!window.muxjs||!c&&!d)return!1;if(d)return _.xu(Xc);if(b)return _.xu(zu(b,a));c=zu(_.Rc,a);d=zu(_.Lg,a);return _.xu(c)||_.xu(d)};_.r.isMuxed=function(a,b){return 1<this.demuxMimeTypes(a,b).size};
640
- _.r.demuxMimeTypes=function(a,b){var c=new Map;c.set(a,b);try{var d=_.Fm(b),e=_.Gm(b).split(","),f=new Map,g=kk(_.Rc,e),k=kk(_.Lg,e);g&&f.set(_.Rc,this.convertCodecs(_.Rc,_.Em(d,g)));k&&f.set(_.Lg,this.convertCodecs(_.Lg,_.Em(d,k)));return f}catch(l){return c}};_.r.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]===_.Tc?Xc:"mp2t"===b.toLowerCase().split(";")[0].split("/")[1]?zu(a,b):b};_.r.getOriginalMimeType=function(){return this.h};
641
- _.r.transmux=function(a){function b(){g={video:_.Kl.apply(Dl,_.jh(d)),captions:f,audio:_.Kl.apply(Dl,_.jh(e))}}function c(k){f=k.captions;var l=new Uint8Array(k.data.byteLength+k.initSegment.byteLength);l.set(k.initSegment,0);l.set(k.data,k.initSegment.byteLength);k.type===mw?d.push(l):k.type===nw&&e.push(l)}var d=[],e=[],f=[],g=null;a=_.Vi(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(_.Q,3,3018);return g};
642
- var nw=_.Rc,mw=_.Lg;Au.prototype.getCuePoints=function(){};Au.prototype.$b=function(){};Au.prototype.Zb=function(){};_.J("clpp.ads.IAdsTimeline",Au);Au.prototype.hasPostroll=Au.prototype.Zb;Au.prototype.hasPreroll=Au.prototype.$b;Au.prototype.getCuePoints=Au.prototype.getCuePoints;_.r=_.Bu.prototype;_.r.install=function(){};_.r.uninstall=function(){};_.r.beforeLoad=function(){};_.r.drmConfigurationResolved=function(){};_.r.afterLoad=function(){};_.r.playerConstructed=function(){};_.Cu.prototype.qb=function(a,b){this.f[a]=b};_.J("clpp.drm.DrmEnvironment",_.Cu);_.Cu.prototype.setDrmSystem=_.Cu.prototype.qb;var Eu,Fu,Gu;Eu="/license-proxy-widevine/cenc/";Fu="/license-proxy-headerauth/drmtoday/RightsManager.asmx";Gu="/license-server-fairplay/";_.Ju=new _.L("clpp.drm.DrmTodayLegacyEndpointHandler");_.J("clpp.drm.DrmToday",Qu);var Ru="PRODUCTION",Su="STAGING",Tu="DEMO",Uu="TEST";Qu.Environment={PRODUCTION:Ru,STAGING:Su,DEMO:Tu,TEST:Uu};Qu.WidevineCertificates={V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"};_.w(Wu,_.Bu);
643
- Wu.prototype.drmConfigurationResolved=function(a){if(a){var b=a.env;if(b&&Vu(b)&&!_.$k[a.env]){b=a.env;a=Vu(b);if(!a)throw new _.hi("env not recognized as DRMtoday environment: "+b);b=new _.Cu(b);var c=null;switch(a){case Ru:case Su:case Tu:c=_.wo("V2");break;case Uu:c=null}b.qb(_.Jd,{licenseUrl:Hu(_.Jd,a),videoRobustness:fw,audioRobustness:gw,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:c,modifiers:{licenseRequest:_.Ku,licenseResponse:_.Pu}});b.qb(_.Fd,{licenseUrl:Hu(_.Fd,
644
- a),certificateUrl:oo(a)+"/license-server-fairplay/cert/",modifiers:{licenseRequest:Mu,licenseResponse:_.Nu,extractContentId:_.Iu,certificateRequest:Ou}});b.qb(_.Hd,{licenseUrl:Hu(_.Hd,a),videoRobustness:hw,audioRobustness:iw,modifiers:{licenseRequest:Lu}});_.al(b)}}};Wu.prototype.id=function(){return ee};_.w(Xu,_.Cu);Xu.prototype.Qe=function(a,b){for(var c=a.drm.customData.headers||{},d=_.v(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};Xu.prototype.ri=function(a,b){var c=io(b);switch(this.o){case ow:return c;case pw:return(new _.ck(c)).a;default:throw Error("Unknown content ID strategy");}};Xu.prototype.jj=function(a,b){b.headers[_.Da]=_.Qc;this.Qe(a,b);var c={spc:_.El(b.body)};b.body=_.S.kd(_.ek(c,!0))};
645
- Xu.prototype.kj=function(a,b){var c=_.S.ga(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.Gl(c).buffer};_.J(xd,Xu);Xu.prototype.onFairPlayLicenseResponse=Xu.prototype.kj;Xu.prototype.onFairPlayLicenseRequest=Xu.prototype.jj;Xu.prototype.extractFairPlayContentId=Xu.prototype.ri;Xu.prototype.onLicenseRequest=Xu.prototype.Qe;Xu.prototype.constructor=Xu.prototype.constructor;Xu.NAME=Ua;var pw="hostname",ow="full-skd";
646
- Xu.FairPlayContentIdStrategy={HOSTNAME:pw,FULL_SKD:ow};_.w(Yu,_.Bu);Yu.prototype.drmConfigurationResolved=function(a){if(a&&a.env===Ua){a=a.customData;if(!a)throw new _.O(_.Q,7,7100,_.Kd);a=new Xu(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||ow);_.al(a)}};Yu.prototype.uninstall=function(){delete _.$k.HeaderDrm};Yu.prototype.id=function(){return"headerdrm"};_.J("clpp.drm.HeaderDrmComponent",Yu);_.gv.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)};_.gv.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.iv.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.Lg);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.ml;c=c.play();var e=(new _.Yh(function(){b(a)})).ia(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===nb?b(!0):b(!1)}):b(!0);return d};
647
- var hv=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,
629
+ 7,7100,"`playlist.endTime` config value is required for DVR content!");}xh(n,2);gu(c);c.w="openPlaylist";return _.x(n,ku(c,b),4)}2!=n.a&&(c.J=0,c.o=b,c.ba=!0,hu(c,b[0].playlist||{}));_.yh(n);c.w=null;return _.zh(n)})};
630
+ _.r.nk=function(a){var b=this,c;return _.I(function(d){if(1==d.a){if(b.w)throw new _.O(_.Q,7,7008,"Cannot call addItem() while "+b.w+ha);if(!b.ba)throw new _.O(_.Q,7,7008,"openPlaylist() must be called before addItem()!");if(!a.id||!a.source)throw new _.O(_.Q,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(_.Q,7,7100,"A config with this `id` already exists in the playlist!");xh(d,2);b.w="addItem";b.o.push(a);
631
+ return _.x(d,lu(b,a),2)}_.yh(d);b.w=null;return _.zh(d)})};_.r.getCurrentItem=function(){return this.o[this.J]||null};_.r.getCurrentItemIndex=function(){return this.J};_.r.Dm=function(){return _.jh(this.o).concat()};_.r.Ae=function(){return this.o.length};_.r.getTimeline=function(){return this.a?this.a.getTimeline():null};_.r.seekWith=function(a){return this.a?this.a.seekWith(a):Promise.resolve()};_.r.release=function(){this.o=[];this.J=0;this.ba=!1;return _.X.prototype.release.call(this)};
632
+ _.r.destroy=function(){gu(this);return _.X.prototype.destroy.call(this)};_.r.setCdnErrorCallback=function(){throw new _.O(1,7,7009,"CDN switching is not supported!");};_.r.aj=function(){};_.J("clpp.playlist.ScPlaylist",fu);fu.prototype.setCdnErrorCallback=fu.prototype.setCdnErrorCallback;fu.prototype.destroy=fu.prototype.destroy;fu.prototype.release=fu.prototype.release;fu.prototype.seekWith=fu.prototype.seekWith;fu.prototype.getTimeline=fu.prototype.getTimeline;fu.prototype.getSize=fu.prototype.Ae;
633
+ fu.prototype.getPlaylist=fu.prototype.Dm;fu.prototype.getCurrentItemIndex=fu.prototype.getCurrentItemIndex;fu.prototype.getCurrentItem=fu.prototype.getCurrentItem;fu.prototype.addItem=fu.prototype.nk;fu.prototype.openPlaylist=fu.prototype.oo;_.w(ou,_.qn);_.r=ou.prototype;_.r.Vb=function(){return this.f};_.r.Ef=function(){return this.f?this.f.player:null};_.r.Ei=function(){return this.o.get(this.a+1)||null};_.r.Hi=function(){return this.o.get(this.a-1)||null};_.r.Gi=function(){return[this.Hi(),this.Ei()].filter(Boolean)};_.r.Vo=function(a){if(0<this.h.length)throw Error("Cannot re-set items in the playlist");this.g.info("Set items",a);this.h=a.map(function(b,c){return{config:b,index:c,preloadPromise:Promise.resolve(),disposers:[]}})};
634
+ _.r.Uo=function(a){if(0===this.h.length)throw Error(ib);if(0>a||a>this.h.length-1)throw Error("Index out of bounds");this.a=a};_.r.Ee=function(){return this.a<this.h.length-1};_.r.Oi=function(){return 0<this.a};
635
+ _.r.Co=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.h.length)return a.g.warn(ib),d["return"]();a.l=!0;a.g.info("First (index: "+a.a+")");b=a.h[a.a];_.F(d,2,3);a.g.info("First loading (index: "+a.a+")");return _.x(d,wu(a,b),5);case 5:a.g.info("First playing (index: "+a.a+")");case 3:_.yh(d);a.l=!1;Bu(a);_.zh(d);break;case 2:throw c=_.H(d),a.g.error("First failed (index: "+a.a+")"),c;}})};
636
+ _.r.Cj=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.Ee())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.j.transition===_.ef&&b.player.pause();pu(a,a.a+-2);a.o["delete"](a.a);c=a.h[a.a];_.F(e,2,3);a.g.info("Next loading (index: "+a.a+")");return _.x(e,xu(a,c),5);case 5:a.g.info("Next playing (index: "+a.a+")");case 3:_.yh(e);
637
+ a.l=!1;if(!b){e.C(6);break}return _.x(e,tu(a,b),6);case 6:Bu(a);_.zh(e);break;case 2:throw d=_.H(e),a.g.error("Next failed (index: "+a.a+")"),d;}})};
638
+ _.r.Do=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.Oi())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.j.transition===_.ef&&b.player.pause();pu(a,a.a+2);a.o["delete"](a.a);c=a.h[a.a];_.F(e,2,3);a.g.info("Previous loading (index: "+a.a+")");return _.x(e,xu(a,c),5);case 5:a.g.info("Previous playing (index: "+
639
+ a.a+")");case 3:_.yh(e);a.l=!1;if(!b){e.C(6);break}return _.x(e,tu(a,b),6);case 6:Bu(a);_.zh(e);break;case 2:throw d=_.H(e),a.g.error("Previous failed (index: "+a.a+")"),d;}})};_.r.destroy=function(){var a=this;return _.I(function(b){return 1==b.a?(a.g.info("Destroy"),_.x(b,Promise.all([qu(a),a.f?tu(a,a.f):Promise.resolve()]),2)):_.x(b,Cu(a),0)})};_.J(Ad,ou);ou.prototype.destroy=ou.prototype.destroy;ou.prototype.playPrev=ou.prototype.Do;ou.prototype.playNext=ou.prototype.Cj;
640
+ ou.prototype.playFirst=ou.prototype.Co;ou.prototype.hasPrev=ou.prototype.Oi;ou.prototype.hasNext=ou.prototype.Ee;ou.prototype.setIndex=ou.prototype.Uo;ou.prototype.setItems=ou.prototype.Vo;ou.prototype.getPreloading=ou.prototype.Gi;ou.prototype.getPrev=ou.prototype.Hi;ou.prototype.getNext=ou.prototype.Ei;ou.prototype.getCurrentPlayer=ou.prototype.Ef;ou.prototype.getCurrent=ou.prototype.Vb;var su="preload",uu=_.He;var Du=new Map;_.r=Fu.prototype;_.r.destroy=function(){this.a.dispose();this.a=null};_.r.reset=function(){this.a=new muxjs.mp4.Transmuxer(this.f)};_.r.isSupported=function(a,b){var c="mp2t"===a.toLowerCase().split(";")[0].split("/")[1],d=a.toLowerCase().split(";")[0]===_.Sc;if(!window.muxjs||!c&&!d)return!1;if(d)return _.Eu(Xc);if(b)return _.Eu(Gu(b,a));c=Gu(_.Rc,a);d=Gu(_.Kg,a);return _.Eu(c)||_.Eu(d)};_.r.isMuxed=function(a,b){return 1<this.demuxMimeTypes(a,b).size};
641
+ _.r.demuxMimeTypes=function(a,b){var c=new Map;c.set(a,b);try{var d=_.Im(b),e=_.Jm(b).split(","),f=new Map,g=kk(_.Rc,e),k=kk(_.Kg,e);g&&f.set(_.Rc,this.convertCodecs(_.Rc,_.Hm(d,g)));k&&f.set(_.Kg,this.convertCodecs(_.Kg,_.Hm(d,k)));return f}catch(l){return c}};_.r.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]===_.Sc?Xc:"mp2t"===b.toLowerCase().split(";")[0].split("/")[1]?Gu(a,b):b};_.r.getOriginalMimeType=function(){return this.h};
642
+ _.r.transmux=function(a){function b(){g={video:_.Nl.apply(Gl,_.jh(d)),captions:f,audio:_.Nl.apply(Gl,_.jh(e))}}function c(k){f=k.captions;var l=new Uint8Array(k.data.byteLength+k.initSegment.byteLength);l.set(k.initSegment,0);l.set(k.data,k.initSegment.byteLength);k.type===Ew?d.push(l):k.type===Fw&&e.push(l)}var d=[],e=[],f=[],g=null;a=_.Vi(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(_.Q,3,3018);return g};
643
+ var Fw=_.Rc,Ew=_.Kg;Hu.prototype.getCuePoints=function(){};Hu.prototype.$b=function(){};Hu.prototype.Zb=function(){};_.J("clpp.ads.IAdsTimeline",Hu);Hu.prototype.hasPostroll=Hu.prototype.Zb;Hu.prototype.hasPreroll=Hu.prototype.$b;Hu.prototype.getCuePoints=Hu.prototype.getCuePoints;_.r=_.Iu.prototype;_.r.install=function(){};_.r.uninstall=function(){};_.r.beforeLoad=function(){};_.r.drmConfigurationResolved=function(){};_.r.afterLoad=function(){};_.r.playerConstructed=function(){};_.Ju.prototype.Ma=function(a,b){this.h[a]=b};_.Ju.prototype.f=function(a,b){return b.licenseUrl};_.Ju.prototype.H=function(a){return a.certificateUrl};_.J("clpp.drm.DrmEnvironment",_.Ju);_.Ju.prototype.setDrmSystem=_.Ju.prototype.Ma;var Lu,Mu,Nu;Lu="/license-proxy-widevine/cenc/";Mu="/license-proxy-headerauth/drmtoday/RightsManager.asmx";Nu="/license-server-fairplay/";_.Qu=new _.L("clpp.drm.DrmTodayLegacyEndpointHandler");_.w(ev,_.Ju);ev.prototype.f=function(a,b,c){c=Xu(c);a:switch(b=io(this.a),c="/v4/"+encodeURIComponent(c),a){case _.Jd:a=b+c+"/wv";break a;case _.Hd:a=b+c+"/pr";break a;case _.Fd:a=b+c+"/fp";break a;default:throw new _.hi("Cannot infer DRMtoday V4 license URL for key system: "+a);}return a};ev.prototype.H=function(a,b){var c=Xu(b),d=io(this.a);c="/v4/"+encodeURIComponent(c);return d+c+"/fp/cert"};_.J("clpp.drm.DrmToday",fv);var gv="PRODUCTION",hv="STAGING",iv="DEMO",jv="TEST";fv.Environment={PRODUCTION:gv,STAGING:hv,DEMO:iv,TEST:jv};fv.WidevineCertificates={V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"};_.w(mv,_.Iu);
644
+ mv.prototype.drmConfigurationResolved=function(a){if(a){var b=a.env;if(b&&kv(b)&&(b=_.bl[a.env]||null,!b||!0===a.useDrmTodayV4Endpoints!==b instanceof ev)){b=!0===a.useDrmTodayV4Endpoints;var c=a.env;a=kv(c);if(!a)throw new _.hi("env not recognized as DRMtoday environment: "+c);b?(b=new ev(c,a),b.Ma(_.Jd,{licenseUrl:"",videoRobustness:xw,audioRobustness:yw,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:lv(a),modifiers:{licenseRequest:Zu}}),b.Ma(_.Fd,{licenseUrl:"",certificateUrl:"",
645
+ modifiers:{licenseRequest:$u,licenseResponse:cv,extractContentId:dv,certificateRequest:av}}),b.Ma(_.Hd,{licenseUrl:"",videoRobustness:zw,audioRobustness:Aw,modifiers:{licenseRequest:bv}}),a=b):(b=new _.Ju(c),b.Ma(_.Jd,{licenseUrl:Ou(_.Jd,a),videoRobustness:xw,audioRobustness:yw,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:lv(a),modifiers:{licenseRequest:_.Ru,licenseResponse:_.Wu}}),b.Ma(_.Fd,{licenseUrl:Ou(_.Fd,a),certificateUrl:io(a)+"/license-server-fairplay/cert/",
646
+ modifiers:{licenseRequest:Tu,licenseResponse:_.Uu,extractContentId:_.Pu,certificateRequest:Vu}}),b.Ma(_.Hd,{licenseUrl:Ou(_.Hd,a),videoRobustness:zw,audioRobustness:Aw,modifiers:{licenseRequest:Su}}),a=b);_.dl(a)}}};mv.prototype.id=function(){return ee};_.w(nv,_.Ju);nv.prototype.Qe=function(a,b){for(var c=a.drm.customData.headers||{},d=_.v(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};nv.prototype.si=function(a,b){var c=bo(b);switch(this.w){case Gw:return c;case Hw:return(new _.ck(c)).a;default:throw Error("Unknown content ID strategy");}};nv.prototype.kj=function(a,b){b.headers[_.Da]=_.Qc;this.Qe(a,b);var c={spc:_.Hl(b.body)};b.body=_.S.kd(_.ek(c,!0))};
647
+ nv.prototype.lj=function(a,b){var c=_.S.ga(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.Jl(c).buffer};_.J(xd,nv);nv.prototype.onFairPlayLicenseResponse=nv.prototype.lj;nv.prototype.onFairPlayLicenseRequest=nv.prototype.kj;nv.prototype.extractFairPlayContentId=nv.prototype.si;nv.prototype.onLicenseRequest=nv.prototype.Qe;nv.prototype.constructor=nv.prototype.constructor;nv.NAME=Ua;var Hw="hostname",Gw="full-skd";
648
+ nv.FairPlayContentIdStrategy={HOSTNAME:Hw,FULL_SKD:Gw};_.w(ov,_.Iu);ov.prototype.drmConfigurationResolved=function(a){if(a&&a.env===Ua){a=a.customData;if(!a)throw new _.O(_.Q,7,7100,_.Kd);a=new nv(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||Gw);_.dl(a)}};ov.prototype.uninstall=function(){delete _.bl.HeaderDrm};ov.prototype.id=function(){return"headerdrm"};_.J("clpp.drm.HeaderDrmComponent",ov);_.yv.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)};_.yv.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.Av.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.Kg);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.ol;c=c.play();var e=(new _.Yh(function(){b(a)})).ia(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===nb?b(!0):b(!1)}):b(!0);return d};
649
+ var zv=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,
648
650
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,167,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
649
651
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,167,128,0,0,0,0,
650
652
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
651
653
  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,
652
654
  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,
653
- 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]);_.jv={};_.r=_.nv.prototype;_.r.getBackgroundColor=function(){return this.K};_.r.setBackgroundColor=function(a){this.K=a;this.ec()};_.r.getWindowColor=function(){return this.T};_.r.setWindowColor=function(a){this.T=a;this.ec()};_.r.getFontFamily=function(){return this.P};_.r.setFontFamily=function(a){this.P=a;this.ec()};_.r.getFontColor=function(){return this.M};_.r.setFontColor=function(a){this.M=a;this.ec()};_.r.getFontSize=function(){return this.I};_.r.setFontSize=function(a){this.I=a;this.ec()};
654
- _.r.getFontSizePercent=function(){return null===this.B?qw:this.B};_.r.setFontSizePercent=function(a){this.B=a;this.ec()};_.r.getEdgeColor=function(){return this.H};_.r.setEdgeColor=function(a){this.H=a;this.ec()};_.r.getEdgeType=function(){return this.o};_.r.setEdgeType=function(a){this.o=a;this.ec()};_.nv.prototype.setEdgeType=_.nv.prototype.setEdgeType;_.nv.prototype.getEdgeType=_.nv.prototype.getEdgeType;_.nv.prototype.setEdgeColor=_.nv.prototype.setEdgeColor;_.nv.prototype.getEdgeColor=_.nv.prototype.getEdgeColor;
655
- _.nv.prototype.setFontSizePercent=_.nv.prototype.setFontSizePercent;_.nv.prototype.getFontSizePercent=_.nv.prototype.getFontSizePercent;_.nv.prototype.setFontSize=_.nv.prototype.setFontSize;_.nv.prototype.getFontSize=_.nv.prototype.getFontSize;_.nv.prototype.setFontColor=_.nv.prototype.setFontColor;_.nv.prototype.getFontColor=_.nv.prototype.getFontColor;_.nv.prototype.setFontFamily=_.nv.prototype.setFontFamily;_.nv.prototype.getFontFamily=_.nv.prototype.getFontFamily;
656
- _.nv.prototype.setWindowColor=_.nv.prototype.setWindowColor;_.nv.prototype.getWindowColor=_.nv.prototype.getWindowColor;_.nv.prototype.setBackgroundColor=_.nv.prototype.setBackgroundColor;_.nv.prototype.getBackgroundColor=_.nv.prototype.getBackgroundColor;var qw=1/15;_.w(_.vv,_.nv);_.r=_.vv.prototype;_.r.append=function(){};_.r.remove=function(){return!0};_.r.isTextVisible=function(){return this.w};_.r.setTextVisibility=function(a){this.w=a};
657
- _.r.ec=function(){if(!this.j){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.sv(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.h.textContent="."+this.f+"::cue {"+b+"}"}};_.r.destroy=function(){this.l.classList.remove(this.f);document.head.removeChild(this.h);this.j=!0;return Promise.resolve()};var uv=0;Bv.prototype.a=function(){return!0};Bv.prototype.create=function(a){return new _.vv(a)};Jv.prototype.parseInit=function(a){try{var b=_.lv(_.Lc);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=_.lv(_.Mc);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(_.Q,2,2011);}};
658
- Jv.prototype.parseMedia=function(a,b){if(!this.a)throw new _.O(_.Q,2,2011);return this.a.parseMedia(a,b)};_.ct(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=_.Vi(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});
659
- _.ct(function(){if(window.Document){var a=Element.prototype;a.requestFullscreen=a.requestFullscreen||a.mozRequestFullScreen||a.msRequestFullscreen||a.webkitRequestFullscreen;a=Document.prototype;a.exitFullscreen=a.exitFullscreen||a.mozCancelFullScreen||a.msExitFullscreen||a.webkitExitFullscreen;oe in document||(Object.defineProperty(document,oe,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
660
- {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",Zu);document.addEventListener("webkitfullscreenerror",Zu);document.addEventListener("mozfullscreenchange",Zu);document.addEventListener("mozfullscreenerror",Zu);document.addEventListener("MSFullscreenChange",Zu);document.addEventListener("MSFullscreenError",Zu)}});
661
- _.ct(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.ct(function(){_.Ph("mathRound.install")});
662
- _.ct(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Ph("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=av,document.exitPictureInPicture=bv,document.addEventListener("webkitpresentationmodechanged",$u,!0))}});
663
- _.ct(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=cv)}});_.ct(function(){_.Ph("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}}});
664
- _.ct(function(){if(window.VTTCue)_.Oh("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Oh(Rb),window.VTTCue=dv;else if(6===a)_.Oh("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=ev;else{try{var b=!!dv(1,2,"")}catch(c){b=!1}b&&(_.Oh(Rb),window.VTTCue=dv)}}else _.Qh("VTTCue not available.")});_.Uh(new $q);_.kv(_.Kc,Jv);_.Bq("native",new Bv);zm(_.Tc,function(){return new yu(_.Tc)});zm(_.Ng,function(){return new yu(_.Ng)});In(Wu);In(Yu);
665
- dp=[new Qo,new Oo,new ap,new cp].filter(function(a){return a.f()});_.r=_.Kv.prototype;_.r.getDuration=function(){return this.a};_.r.getId=function(){return this.id};_.r.jc=function(){return this.f};_.r.Ie=function(){return this.h};_.r.va=function(a){return this.getId()===a.getId()&&this.jc()===a.jc()&&this.getDuration()===a.getDuration()&&this.Ie()===a.Ie()};_.J("clpp.media.TimelineWindow",_.Kv);_.Kv.prototype.isDynamic=_.Kv.prototype.Ie;_.Kv.prototype.getStart=_.Kv.prototype.jc;_.Kv.prototype.getId=_.Kv.prototype.getId;_.Kv.prototype.getDuration=_.Kv.prototype.getDuration;_.rw=new _.L("clpp.media.TimestampParser");_.r=_.Lv.prototype;_.r.Fm=function(a){return this.a[a]||null};_.r.Gm=function(){return this.a.length};_.r.Hm=function(){return this.a};_.r.Bi=function(){return this.a[this.f]||null};_.r.tm=function(){return this.f};_.J("clpp.media.Timeline",_.Lv);_.Lv.prototype.getCurrentWindowIndex=_.Lv.prototype.tm;_.Lv.prototype.getCurrentWindow=_.Lv.prototype.Bi;_.Lv.prototype.getWindows=_.Lv.prototype.Hm;_.Lv.prototype.getWindowCount=_.Lv.prototype.Gm;_.Lv.prototype.getWindow=_.Lv.prototype.Fm;_.Ov={};_.Pv={};var ov="raised",pv="depressed",rv="dropshadow",qv="uniform";_.J("clpp.text.EdgeType",{NONE:_.Re,RAISED:ov,DEPRESSED:pv,DROP_SHADOW:rv,UNIFORM:qv});_.r=_.Rv.prototype;_.r.onPlayerCreated=function(){};_.r.onContentWillLoad=function(){return Promise.resolve()};_.r.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.r.onPlayerWillDestroy=function(){};_.r.onPlayerWillRelease=function(){};}.call(g,this));
655
+ 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]);_.Bv={};_.r=_.Rv.prototype;_.r.getBackgroundColor=function(){return this.K};_.r.setBackgroundColor=function(a){this.K=a;this.ec()};_.r.getWindowColor=function(){return this.T};_.r.setWindowColor=function(a){this.T=a;this.ec()};_.r.getFontFamily=function(){return this.P};_.r.setFontFamily=function(a){this.P=a;this.ec()};_.r.getFontColor=function(){return this.M};_.r.setFontColor=function(a){this.M=a;this.ec()};_.r.getFontSize=function(){return this.I};_.r.setFontSize=function(a){this.I=a;this.ec()};
656
+ _.r.getFontSizePercent=function(){return null===this.B?Iw:this.B};_.r.setFontSizePercent=function(a){this.B=a;this.ec()};_.r.getEdgeColor=function(){return this.H};_.r.setEdgeColor=function(a){this.H=a;this.ec()};_.r.getEdgeType=function(){return this.o};_.r.setEdgeType=function(a){this.o=a;this.ec()};_.Rv.prototype.setEdgeType=_.Rv.prototype.setEdgeType;_.Rv.prototype.getEdgeType=_.Rv.prototype.getEdgeType;_.Rv.prototype.setEdgeColor=_.Rv.prototype.setEdgeColor;_.Rv.prototype.getEdgeColor=_.Rv.prototype.getEdgeColor;
657
+ _.Rv.prototype.setFontSizePercent=_.Rv.prototype.setFontSizePercent;_.Rv.prototype.getFontSizePercent=_.Rv.prototype.getFontSizePercent;_.Rv.prototype.setFontSize=_.Rv.prototype.setFontSize;_.Rv.prototype.getFontSize=_.Rv.prototype.getFontSize;_.Rv.prototype.setFontColor=_.Rv.prototype.setFontColor;_.Rv.prototype.getFontColor=_.Rv.prototype.getFontColor;_.Rv.prototype.setFontFamily=_.Rv.prototype.setFontFamily;_.Rv.prototype.getFontFamily=_.Rv.prototype.getFontFamily;
658
+ _.Rv.prototype.setWindowColor=_.Rv.prototype.setWindowColor;_.Rv.prototype.getWindowColor=_.Rv.prototype.getWindowColor;_.Rv.prototype.setBackgroundColor=_.Rv.prototype.setBackgroundColor;_.Rv.prototype.getBackgroundColor=_.Rv.prototype.getBackgroundColor;var Iw=1/15;_.w(_.Yv,_.Rv);_.r=_.Yv.prototype;_.r.getClass=function(){return _.Re};_.r.isRenderer=function(){return!1};_.r.append=function(){};_.r.remove=function(){return!0};_.r.isTextVisible=function(){return this.w};_.r.setTextVisibility=function(a){this.w=a};
659
+ _.r.ec=function(){if(!this.j){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.Wv(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.h.textContent="."+this.f+"::cue {"+b+"}"}};_.r.destroy=function(){this.l.classList.remove(this.f);document.head.removeChild(this.h);this.j=!0;return Promise.resolve()};var Xv=0;Zv.prototype.a=function(){return!0};Zv.prototype.create=function(a){return new _.Yv(a)};$v.prototype.parseInit=function(a){try{var b=_.Iv(_.Lc);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=_.Iv(_.Mc);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(_.Q,2,2011);}};
660
+ $v.prototype.parseMedia=function(a,b){if(!this.a)throw new _.O(_.Q,2,2011);return this.a.parseMedia(a,b)};_.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=_.Vi(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});
661
+ _.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;oe in document||(Object.defineProperty(document,oe,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
662
+ {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",pv);document.addEventListener("webkitfullscreenerror",pv);document.addEventListener("mozfullscreenchange",pv);document.addEventListener("mozfullscreenerror",pv);document.addEventListener("MSFullscreenChange",pv);document.addEventListener("MSFullscreenError",pv)}});
663
+ _.jt(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.jt(function(){_.Ph("mathRound.install")});
664
+ _.jt(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Ph("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=rv,document.exitPictureInPicture=sv,document.addEventListener("webkitpresentationmodechanged",qv,!0))}});
665
+ _.jt(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=uv)}});_.jt(function(){_.Ph("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}}});
666
+ _.jt(function(){if(window.VTTCue)_.Oh("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Oh(Rb),window.VTTCue=vv;else if(6===a)_.Oh("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=wv;else{try{var b=!!vv(1,2,"")}catch(c){b=!1}b&&(_.Oh(Rb),window.VTTCue=vv)}}else _.Qh("VTTCue not available.")});_.Uh(new Vq);_.Cv(_.Kc,$v);_.wq(_.Re,new Zv);Cm(_.Sc,function(){return new Fu(_.Sc)});Cm(_.Mg,function(){return new Fu(_.Mg)});jr(mv);jr(ov);
667
+ Zo=[new Fo,new Do,new Wo,new Yo].filter(function(a){return a.f()});_.r=_.aw.prototype;_.r.getDuration=function(){return this.a};_.r.getId=function(){return this.id};_.r.jc=function(){return this.f};_.r.Ie=function(){return this.h};_.r.va=function(a){return this.getId()===a.getId()&&this.jc()===a.jc()&&this.getDuration()===a.getDuration()&&this.Ie()===a.Ie()};_.J("clpp.media.TimelineWindow",_.aw);_.aw.prototype.isDynamic=_.aw.prototype.Ie;_.aw.prototype.getStart=_.aw.prototype.jc;_.aw.prototype.getId=_.aw.prototype.getId;_.aw.prototype.getDuration=_.aw.prototype.getDuration;_.Jw=new _.L("clpp.media.TimestampParser");_.r=_.bw.prototype;_.r.Gm=function(a){return this.a[a]||null};_.r.Hm=function(){return this.a.length};_.r.Im=function(){return this.a};_.r.Ci=function(){return this.a[this.f]||null};_.r.um=function(){return this.f};_.J("clpp.media.Timeline",_.bw);_.bw.prototype.getCurrentWindowIndex=_.bw.prototype.um;_.bw.prototype.getCurrentWindow=_.bw.prototype.Ci;_.bw.prototype.getWindows=_.bw.prototype.Im;_.bw.prototype.getWindowCount=_.bw.prototype.Hm;_.bw.prototype.getWindow=_.bw.prototype.Gm;_.ew={};_.fw={};var Sv="raised",Tv="depressed",Vv="dropshadow",Uv="uniform";_.J("clpp.text.EdgeType",{NONE:_.Se,RAISED:Sv,DEPRESSED:Tv,DROP_SHADOW:Vv,UNIFORM:Uv});_.r=_.hw.prototype;_.r.onPlayerCreated=function(){};_.r.onContentWillLoad=function(){return Promise.resolve()};_.r.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.r.onPlayerWillDestroy=function(){};_.r.onPlayerWillRelease=function(){};}.call(g,this));
666
668
  g.clpp._ = _;
667
669
  if (typeof(module)!="undefined"&&module.exports) {module.exports=g.clpp;}
668
670
  else if (typeof(define)!="undefined" && define.amd) {define(function(){return g.clpp;});}