@castlabs/prestoplay 6.6.0 → 6.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/cjs/cl.adobe.js +3 -3
  3. package/cjs/cl.airplay.js +3 -3
  4. package/cjs/cl.broadpeak.js +6 -6
  5. package/cjs/cl.cast.js +110 -110
  6. package/cjs/cl.conviva.js +33 -33
  7. package/cjs/cl.core.js +406 -406
  8. package/cjs/cl.crypto.js +8 -8
  9. package/cjs/cl.dash.js +71 -71
  10. package/cjs/cl.externs.js +17 -6
  11. package/cjs/cl.freewheel.js +24 -24
  12. package/cjs/cl.hls.js +49 -48
  13. package/cjs/cl.hlssmpte.js +6 -6
  14. package/cjs/cl.htmlcue.js +30 -30
  15. package/cjs/cl.ima.js +22 -22
  16. package/cjs/cl.mse.js +256 -257
  17. package/cjs/cl.muxdata.js +12 -12
  18. package/cjs/cl.onboard.js +3 -3
  19. package/cjs/cl.persistent.js +14 -14
  20. package/cjs/cl.playlist.js +6 -6
  21. package/cjs/cl.smooth.js +71 -70
  22. package/cjs/cl.thumbnails.js +24 -24
  23. package/cjs/cl.tizen.js +71 -71
  24. package/cjs/cl.ttml.js +27 -27
  25. package/cjs/cl.verimatrix.js +5 -5
  26. package/cjs/cl.vimond.js +13 -13
  27. package/cjs/cl.vr.js +19 -19
  28. package/cjs/cl.vtt.js +14 -14
  29. package/cjs/cl.youbora.js +20 -20
  30. package/cl.adobe.js +3 -3
  31. package/cl.airplay.js +3 -3
  32. package/cl.broadpeak.js +5 -5
  33. package/cl.cast.js +88 -88
  34. package/cl.conviva.js +27 -27
  35. package/cl.core.js +357 -356
  36. package/cl.crypto.js +8 -8
  37. package/cl.dash.js +66 -66
  38. package/cl.externs.js +17 -6
  39. package/cl.freewheel.js +19 -19
  40. package/cl.hls.js +40 -40
  41. package/cl.hlssmpte.js +5 -5
  42. package/cl.htmlcue.js +25 -25
  43. package/cl.ima.js +16 -16
  44. package/cl.mse.js +199 -200
  45. package/cl.muxdata.js +8 -8
  46. package/cl.onboard.js +2 -2
  47. package/cl.persistent.js +9 -9
  48. package/cl.playlist.js +4 -4
  49. package/cl.smooth.js +59 -58
  50. package/cl.thumbnails.js +16 -16
  51. package/cl.tizen.js +57 -57
  52. package/cl.ttml.js +12 -12
  53. package/cl.verimatrix.js +4 -4
  54. package/cl.vimond.js +8 -8
  55. package/cl.vr.js +13 -13
  56. package/cl.vtt.js +11 -11
  57. package/cl.youbora.js +15 -15
  58. package/package.json +5 -1
  59. package/typings.d.ts +100 -96
package/cjs/cl.core.js CHANGED
@@ -1,382 +1,382 @@
1
1
  (function(){var g={}; var _ = {};
2
- (function(window){var ba,ca,da,oa,qa,ua,va,za,Ba,Ca,Da,Ha,Na,Oa,Pa,Qa,Ra,Sa,Ta,Xa,Ya,Za,$a,bb,cb,db,mb,pb,qb,sb,tb,vb,xb,Ab,Bb,Cb,Fb,ic,vc,wc,Cc,Dc,Ec,Gc,Ic,Jc,Kc,Lc,Tc,Zc,cd,dd,ed,id,pd,rd,sd,xd,Ad,Qd,Xd,ee,ge,pe,te,Be,Je,Xe,af,bf,cf,df,ef,gf,hf,kf,lf,pf,tf,vf,uf,wf,xf,yf,Cf,Ff,Df,Ef,Gf,If,Jf,Nf,Pf,Uf,Wf,cg,dg,ig,gg,jg,lg,kg,ng,qg,Dg,Eg,Gg,Ig,Hg,Jg,Mg,Ng,Rg,Tg,Vg,Sg,Pg,$g,ah,kh,nh,ph,qh,th,oh,lh,uh,xh,Mh,Qh,Rh,Sh,Vh,Wh,fi,gi,li,ni,oi,ti,ui,vi,yi,Ai,zi,xi,Bi,wi,Ei,Ci,Di,Fi,Gi,Qi,Si,ej,gj,hj,ij,sj,Vi,jj,vj,xj,zj,Aj,
3
- yj,Cj,Dj,wj,Ej,Fj,Gj,Hj,Ij,Mj,Nj,Oj,Pj,Jj,Tj,Uj,Wj,Yj,gk,pk,qk,rk,sk,yk,Ak,Kk,Rk,Uk,Vk,Xk,Yk,fl,jl,kl,ol,ul,vl,xl,yl,Dl,El,Jl,Kl,Ol,Ul,cm,em,gm,km,lm,pm,am,Zl,tm,nm,um,wm,vm,Gm,Am,ym,zm,Ql,fm,xm,Rl,sm,Yl,rm,$l,Tl,Lm,Nm,Om,Pm,Qm,Vm,Zm,$m,bn,fn,ln,Ym,mn,nn,qn,tn,un,wn,xn,sn,rn,yn,zn,An,Fn,Kn,Ln,Mn,Qn,Pn,Sn,Rn,Un,Vn,Wn,Xn,Tn,Zn,ao,bo,co,eo,fo,go,ho,io,ko,lo,mo,no,jo,qo,V,so,ro,uo,wo,xo,Bo,yo,W,Eo,Fo,Go,En,Ho,Jo,Ko,Lo,Mo,No,Oo,Po,Qo,Ro,So,To,Uo,Vo,Wo,Xo,Yo,ap,Zo,bp,dp,ep,$o,cp,fp,gp,hp,ip,jp,kp,lp,mp,
4
- np,op,qp,sp,tp,up,rp,wp,xp,Bp,Gp,Hp,Jp,Ip,ci,Lp,Op,Np,Pp,Qp,Mp,Sp,Tp,Rp,Up,di,Xp,Zh,hq,kq,nf,mq;_.aa=" is registered.";ba=" is unsupported on this platform.";ca=" to a log level. Falling back to default!";da="': 'output-restricted'";_.ea="6.6.0";_.ha="AdaptationSet";_.ia="Already destroyed. No-op";_.ja="Already released. No-op";_.ma="Autoplay is not allowed due to browser policy.";_.na="BANDWIDTH";oa="CHECKSUM";_.pa="CODECS";qa="Can not set volume to ";_.sa="Cannot retrieve buffer information due to platform limitations";
5
- _.ta="CastlabsPlayer";ua="Content-Length";va="Content-Type";_.xa="Could not find configured DRM environment.";_.ya="DRM environment '";za="DRM licenses loaded";Ba="DRMtoday";Ca="DRMtodayOnboard";Da="Destroying player";_.Ea="Disable track type ";Ha="Error while decoding string!";_.Ia="Error while fetching license!";_.Ja="FairPlay Certificate URL is not defined";_.Ka="FairPlay License URL is not defined";_.La="GROUP-ID";Na="HW_SECURE_CRYPTO";Oa="HW_SECURE_DECODE";Pa="HeaderDrm";Qa="Invalid track type: ";
6
- Ra="InvalidStateError";Sa="Key status for Key ID '";Ta="License verification failed: ";_.Ua="Loading player with configuration";_.Va="MaxHeight";_.Wa="MaxWidth";Xa="Missing media element";Ya="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";Za="No event provided!";$a="No track data attached to the event, unable to add track!";bb="Not a persistent session.";cb="NotAllowedError";db="NotSupportedError";_.eb="PlayReady License URL is not defined";
7
- _.fb="Player sources";_.gb="Player state change: ";_.hb="Please make sure ";_.ib="QualityLevel";_.jb="RESOLUTION";_.kb="Releasing player with source";_.lb="Representation";mb="STANDARD";_.nb="SW_SECURE_CRYPTO";_.ob="SW_SECURE_DECODE";pb="Session is closed";qb="Setting native ";sb="Signature Verification failed";tb="Skipping Session creation. License for init data was already requested in Session: '";_.ub="SmoothStreamingMedia";vb="The index is not in the allowed range.";_.wb="URI";xb="Unable to translate ";
8
- _.yb="Unhandled/ignored event";_.zb="Unregistering listeners";Ab="Unsupported keySystem";Bb="Using VTTCue polyfill from 3 argument TextTrackCue.";Cb="WebkitEmeManager.MediaKeySession.load";_.Db="Widevine License URL is not defined";Fb="Will create EME Manager: ";_.Gb="ad-break-started";_.Hb="ad-break-stopped";_.Ib="ad-buffering";_.Jb="ad-clicked";_.Kb="ad-completed";_.Lb="ad-first-quartile";_.Mb="ad-impression";_.Nb="ad-loaded";_.Ob="ad-midpoint";_.Pb="ad-paused";_.Qb="ad-progress";_.Rb="ad-resumed";
9
- _.Sb="ad-skipped";_.Tb="ad-started";_.Ub="ad-stopped";_.Vb="ad-third-quartile";_.Wb="addtrack";_.Xb="ads-timeline-changed";_.Yb="airplay-casting-ended";_.Zb="airplay-casting-started";_.$b="airplay-status-changed";_.ac="application";_.bc="application/cea-608";_.cc="application/dash+xml";_.dc="application/mp4";_.ec='application/mp4; codecs\x3d"stpp"';_.fc='application/mp4; codecs\x3d"wvtt"';_.gc="application/ttml+xml";_.hc="application/vnd.ms-sstr+xml";ic="application/x-www-form-urlencoded";_.jc="audio";
10
- _.kc="audio/aac";_.lc="audio/ac3";_.nc="audio/eac3";_.oc="audio/mp4";_.pc="audiobufferchanged";_.qc="autoplaynotallowed";_.rc="bitratechanged";_.sc="boolean";_.tc="bufferingended";_.uc="bufferingstarted";vc="canplay";wc="canplaythrough";_.xc="castingstarted";_.yc="caststatuschanged";_.zc="cdn-switch-success";_.Ac="cenc";_.Bc="center";Cc="certificate-request";Dc="change";Ec="chrome";_.Fc="clpp-fill";Gc="clpp-hidden";_.Hc="clpp.cast.CastSender";Ic="clpp.drm.HeaderDrm";Jc="clpp.drm.eme.AppleEmeManager";
11
- Kc="clpp.native.Player";Lc="clpp.utils.Platform";_.Mc="codecs";_.Nc="column-reverse";_.Oc="com.adobe.primetime";_.Pc="com.apple.fps";_.Qc="com.microsoft.playready";_.Rc="com.widevine.alpha";_.Sc="config.drm.customData is not defined";Tc="controls";_.Uc="cuechange";_.Vc="destroy()";_.Wc="disabled";_.Xc="div";_.Yc="drmexpirationupdate";Zc="drmrenewalstarted";_.ad="drmsessionpersisted";_.bd="drmsessionupdate";cd="drmtoday";dd="durationchange";ed="encrypted";_.fd="end";_.gd="ended";_.hd="error";id="fullscreenElement";
12
- _.jd="function";_.kd="height";_.ld="hidden";_.md="image";_.nd="image/jpeg";_.od="internal-error";pd="keystatuseschange";_.qd="left";rd="license-renewal";sd="license-request";_.td="line-left";_.ud="line-right";_.vd="loadeddata";_.wd="loadedmetadata";xd="loadstart";_.yd="mdat";_.zd="mdia";Ad="message";_.Bd="metadata";_.Cd="mimeType";_.Dd="minf";_.Ed="moov";_.Fd="mp4";_.Hd="mpd-type-changed";_.Id="mpeg-dash-callback-event";_.Jd="none";_.k="number";_.Kd="object";_.Ld="onBitrateChanged()";_.Md="onPlayerError()";
13
- _.Nd="onPlayerWillDestroy";_.Od="onPlayerWillRelease";_.Pd="onStateChanged()";Qd="online-status-changed";_.Rd="optional";_.Sd="org.w3.clearkey";_.Td="output-restricted";_.Ud="pause";_.Vd="persistent";_.Wd="persistent-license";Xd="picture-in-picture";_.Yd="play";_.Zd="playing";_.$d="playlist-item-changed";_.ae="playlist-modified";_.be="progress";_.ce="px";_.de="ratechange";ee="released";_.fe="releasing";ge="removetrack";_.he="required";_.ie="resize";_.je="right";_.ke="seeked";_.le="seeking";_.ne="showing";
14
- _.oe="sinf";pe="stalled";_.re="start";_.se="statechanged";te="status-pending";_.ue="stbl";_.ve="string";_.we="stsd";_.xe="style";_.ye="subtitle";_.ze="subtitles-htmlcue";_.Ae="subtitles-ttml";Be="temporary";_.Ce="text";_.De="text/vtt";_.Ee="text/xml";_.Fe="timeupdate";_.Ge="trak";_.He="ttml-xml";_.Ie="und";Je="unknown";_.Ke="urn:scte:scte35";_.Le="urn:scte:scte35:2014";_.Me="user-seeked";_.Ne="user-seeking";_.Oe="value";_.Pe="vertical-lr";_.Qe="vertical-rl";_.Re="video";_.Se="video/mp2t";_.Te="video/mp4";
15
- _.Ue="videobufferchanged";_.Ve="videotrackchanged";_.We="vimond-response";Xe="visibilitychange";_.Ye="vtt-xml";_.Ze="waiting";_.$e="waitingforkey";af="webkit-org.w3.clearkey";bf="webkitkeyadded";cf="webkitkeyerror";df="webkitkeymessage";ef="webkitneedkey";_.ff="width";gf="x-dt-csl-tracking-token";hf="x-dt-follow-up-token";kf="x-dt-resp-code";lf=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
2
+ (function(window){var ba,ca,da,ma,oa,ua,va,ya,za,Aa,Da,Fa,Na,Oa,Pa,Qa,Ra,Sa,Ta,Xa,Ya,Za,$a,ab,bb,cb,lb,ob,pb,qb,rb,tb,vb,yb,zb,Ab,Eb,ec,jc,xc,yc,Ec,Fc,Gc,Ic,Kc,Lc,Mc,Nc,Vc,bd,ed,fd,gd,kd,qd,sd,td,yd,Bd,Rd,Yd,fe,he,pe,te,Be,Je,Xe,af,bf,cf,df,ef,hf,jf,kf,lf,pf,tf,vf,uf,wf,xf,yf,Cf,Ff,Df,Ef,Gf,If,Jf,Nf,Pf,Uf,Vf,cg,dg,ig,gg,jg,lg,kg,ng,qg,Dg,Eg,Gg,Ig,Hg,Jg,Mg,Ng,Rg,Tg,Vg,Sg,Pg,bh,kh,nh,ph,qh,th,oh,lh,uh,xh,Lh,Ph,Qh,Rh,Uh,Vh,ei,fi,ki,mi,ni,si,ti,ui,xi,zi,yi,wi,Ai,vi,Di,Bi,Ci,Ei,Fi,Ri,Ti,dj,hj,ij,jj,tj,Wi,kj,wj,yj,Aj,Bj,
3
+ zj,Dj,Ej,xj,Fj,Gj,Hj,Ij,Jj,Nj,Oj,Pj,Qj,Kj,Uj,Vj,Xj,Zj,hk,qk,rk,sk,tk,zk,Bk,Lk,Sk,Vk,Wk,Yk,Zk,gl,kl,ll,pl,vl,wl,yl,zl,El,Fl,Kl,Ll,Pl,Vl,dm,fm,hm,lm,mm,qm,bm,$l,um,om,vm,xm,wm,Hm,Gm,Em,Fm,Rl,gm,Dm,Sl,tm,Zl,sm,am,Ul,Mm,Om,Pm,Qm,Rm,Wm,$m,an,cn,gn,mn,Zm,nn,on,rn,un,vn,xn,yn,tn,sn,zn,An,Bn,Gn,Ln,Mn,Nn,Rn,Qn,Tn,Sn,Vn,Wn,Xn,Yn,Un,$n,bo,co,eo,fo,go,ho,io,jo,lo,mo,no,oo,ko,ro,V,to,so,vo,xo,yo,Co,zo,W,Fo,Go,Ho,Fn,Io,Ko,Lo,Mo,No,Oo,Po,Qo,Ro,So,To,Uo,Vo,Wo,Xo,Yo,Zo,bp,$o,cp,ep,fp,ap,dp,gp,hp,ip,jp,kp,lp,mp,np,
4
+ op,pp,rp,tp,up,vp,sp,xp,yp,Cp,Hp,Ip,Kp,Jp,bi,Mp,Pp,Op,Qp,Rp,Np,Tp,Up,Sp,Vp,ci,Yp,Yh,iq,lq,nf,nq;_.aa=" is registered.";ba=" is unsupported on this platform.";ca=" to a log level. Falling back to default!";da="': 'output-restricted'";_.ea="6.6.1";_.fa="AdaptationSet";_.ha="Already destroyed. No-op";_.ia="Already released. No-op";_.ka="Autoplay is not allowed due to browser policy.";_.la="BANDWIDTH";ma="CHECKSUM";_.na="CODECS";oa="Can not set volume to ";_.ra="Cannot retrieve buffer information due to platform limitations";
5
+ _.sa="CastlabsPlayer";ua="Content-Length";va="Content-Type";_.wa="Could not find configured DRM environment.";_.xa="DRM environment '";ya="DRM licenses loaded";za="DRMtoday";Aa="DRMtodayOnboard";Da="Destroying player";_.Ea="Disable track type ";Fa="Error while decoding string!";_.Ha="Error while fetching license!";_.Ia="FairPlay Certificate URL is not defined";_.Ka="FairPlay License URL is not defined";_.La="GROUP-ID";Na="HW_SECURE_CRYPTO";Oa="HW_SECURE_DECODE";Pa="HeaderDrm";Qa="Invalid track type: ";
6
+ Ra="InvalidStateError";Sa="Key status for Key ID '";Ta="License verification failed: ";_.Ua="Loading player with configuration";_.Va="MaxHeight";_.Wa="MaxWidth";Xa="Missing media element";Ya="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";Za="No event provided!";$a="No track data attached to the event, unable to add track!";ab="Not a persistent session.";bb="NotAllowedError";cb="NotSupportedError";_.db="PlayReady License URL is not defined";
7
+ _.eb="Player sources";_.fb="Player state change: ";_.gb="Please make sure ";_.hb="QualityLevel";_.ib="RESOLUTION";_.jb="Releasing player with source";_.kb="Representation";lb="STANDARD";_.mb="SW_SECURE_CRYPTO";_.nb="SW_SECURE_DECODE";ob="Session is closed";pb="Setting native ";qb="Signature Verification failed";rb="Skipping Session creation. License for init data was already requested in Session: '";_.sb="SmoothStreamingMedia";tb="The index is not in the allowed range.";_.ub="URI";vb="Unable to translate ";
8
+ _.wb="Unhandled/ignored event";_.xb="Unregistering listeners";yb="Unsupported keySystem";zb="Using VTTCue polyfill from 3 argument TextTrackCue.";Ab="WebkitEmeManager.MediaKeySession.load";_.Db="Widevine License URL is not defined";Eb="Will create EME Manager: ";_.Gb="ad-break-started";_.Hb="ad-break-stopped";_.Ib="ad-buffering";_.Jb="ad-clicked";_.Kb="ad-completed";_.Lb="ad-first-quartile";_.Mb="ad-impression";_.Nb="ad-loaded";_.Ob="ad-midpoint";_.Pb="ad-paused";_.Qb="ad-progress";_.Rb="ad-resumed";
9
+ _.Sb="ad-skipped";_.Tb="ad-started";_.Ub="ad-stopped";_.Vb="ad-third-quartile";_.Wb="addtrack";_.Xb="ads-timeline-changed";_.Yb="airplay-casting-ended";_.Zb="airplay-casting-started";_.ac="airplay-status-changed";_.bc="application";_.cc="application/cea-608";_.dc="application/dash+xml";ec="application/mp4";_.fc='application/mp4; codecs\x3d"stpp"';_.gc='application/mp4; codecs\x3d"wvtt"';_.hc="application/ttml+xml";_.ic="application/vnd.ms-sstr+xml";jc="application/x-www-form-urlencoded";_.kc="audio";
10
+ _.mc="audio/aac";_.oc="audio/ac3";_.pc="audio/eac3";_.qc="audio/mp4";_.rc="audiobufferchanged";_.sc="autoplaynotallowed";_.tc="bitratechanged";_.uc="boolean";_.vc="bufferingended";_.wc="bufferingstarted";xc="canplay";yc="canplaythrough";_.zc="castingstarted";_.Ac="caststatuschanged";_.Bc="cdn-switch-success";_.Cc="cenc";_.Dc="center";Ec="certificate-request";Fc="change";Gc="chrome";_.Hc="clpp-fill";Ic="clpp-hidden";_.Jc="clpp.cast.CastSender";Kc="clpp.drm.HeaderDrm";Lc="clpp.drm.eme.AppleEmeManager";
11
+ Mc="clpp.native.Player";Nc="clpp.utils.Platform";_.Oc="codecs";_.Pc="column-reverse";_.Qc="com.adobe.primetime";_.Rc="com.apple.fps";_.Sc="com.microsoft.playready";_.Tc="com.widevine.alpha";_.Uc="config.drm.customData is not defined";Vc="controls";_.Wc="cuechange";_.Xc="destroy()";_.Yc="disabled";_.Zc="div";_.$c="drmexpirationupdate";bd="drmrenewalstarted";_.cd="drmsessionpersisted";_.dd="drmsessionupdate";ed="drmtoday";fd="durationchange";gd="encrypted";_.hd="end";_.id="ended";_.jd="error";kd="fullscreenElement";
12
+ _.ld="function";_.md="height";_.nd="hidden";_.od="image";_.pd="internal-error";qd="keystatuseschange";_.rd="left";sd="license-renewal";td="license-request";_.ud="line-left";_.vd="line-right";_.wd="loadeddata";_.xd="loadedmetadata";yd="loadstart";_.zd="mdat";_.Ad="mdia";Bd="message";_.Cd="metadata";_.Dd="mimeType";_.Ed="minf";_.Fd="moov";_.Hd="mp4";_.Id="mpd-type-changed";_.Jd="mpeg-dash-callback-event";_.Kd="none";_.k="number";_.Ld="object";_.Md="onBitrateChanged()";_.Nd="onPlayerError()";_.Od="onPlayerWillDestroy";
13
+ _.Pd="onPlayerWillRelease";_.Qd="onStateChanged()";Rd="online-status-changed";_.Sd="optional";_.Td="org.w3.clearkey";_.Ud="output-restricted";_.Vd="pause";_.Wd="persistent";_.Xd="persistent-license";Yd="picture-in-picture";_.Zd="play";_.$d="playing";_.ae="playlist-item-changed";_.be="playlist-modified";_.ce="progress";_.de="px";_.ee="ratechange";fe="released";_.ge="releasing";he="removetrack";_.ie="required";_.je="resize";_.ke="right";_.le="seeked";_.me="seeking";_.ne="showing";_.oe="sinf";pe="stalled";
14
+ _.re="start";_.se="statechanged";te="status-pending";_.ue="stbl";_.ve="string";_.we="stsd";_.xe="style";_.ye="subtitle";_.ze="subtitles-htmlcue";_.Ae="subtitles-ttml";Be="temporary";_.Ce="text";_.De="text/vtt";_.Ee="text/xml";_.Fe="timeupdate";_.Ge="trak";_.He="ttml-xml";_.Ie="und";Je="unknown";_.Ke="urn:scte:scte35";_.Le="urn:scte:scte35:2014";_.Me="user-seeked";_.Ne="user-seeking";_.Oe="value";_.Pe="vertical-lr";_.Qe="vertical-rl";_.Re="video";_.Se="video/mp2t";_.Te="video/mp4";_.Ue="videobufferchanged";
15
+ _.Ve="videotrackchanged";_.We="vimond-response";Xe="visibilitychange";_.Ye="vtt-xml";_.Ze="waiting";_.$e="waitingforkey";af="webkit-org.w3.clearkey";bf="webkitkeyadded";cf="webkitkeyerror";df="webkitkeymessage";ef="webkitneedkey";_.ff="width";hf="x-dt-csl-tracking-token";jf="x-dt-follow-up-token";kf="x-dt-resp-code";lf=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
16
16
  _.u=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:lf(a)}};_.mf=function(a){if(!(a instanceof Array)){a=_.u(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a};_.v=function(a,b){a.prototype=nf(b.prototype);a.prototype.constructor=a;if(of)of(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c]};
17
- pf=function(){pf=function(){};qf.Symbol||(qf.Symbol=rf)};tf=function(a,b){this.a=a;sf(this,"description",{configurable:!0,writable:!0,value:b})};vf=function(){pf();var a=qf.Symbol.iterator;a||(a=qf.Symbol.iterator=qf.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.jd&&sf(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return uf(lf(this))}});vf=function(){}};uf=function(a){vf();a={next:a};a[qf.Symbol.iterator]=function(){return this};return a};
18
- wf=function(){this.o=!1;this.h=null;this.f=void 0;this.a=1;this.j=this.m=0;this.A=this.g=null};xf=function(a){if(a.o)throw new TypeError("Generator is already running");a.o=!0};yf=function(a,b){a.g={Ff:b,Qf:!0};a.a=a.m||a.j};_.x=function(a,b,c){a.a=c;return{value:b}};_.z=function(a){a.a=0};_.zf=function(a,b,c){a.m=b;void 0!=c&&(a.j=c)};_.Af=function(a,b,c){a.a=b;a.m=c||0};_.Bf=function(a,b){a.m=b||0;var c=a.g.Ff;a.g=null;return c};Cf=function(a){this.a=new wf;this.f=a};
17
+ pf=function(){pf=function(){};qf.Symbol||(qf.Symbol=rf)};tf=function(a,b){this.a=a;sf(this,"description",{configurable:!0,writable:!0,value:b})};vf=function(){pf();var a=qf.Symbol.iterator;a||(a=qf.Symbol.iterator=qf.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.ld&&sf(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return uf(lf(this))}});vf=function(){}};uf=function(a){vf();a={next:a};a[qf.Symbol.iterator]=function(){return this};return a};
18
+ wf=function(){this.o=!1;this.h=null;this.f=void 0;this.a=1;this.j=this.m=0;this.A=this.g=null};xf=function(a){if(a.o)throw new TypeError("Generator is already running");a.o=!0};yf=function(a,b){a.g={Ef:b,Pf:!0};a.a=a.m||a.j};_.x=function(a,b,c){a.a=c;return{value:b}};_.y=function(a){a.a=0};_.zf=function(a,b,c){a.m=b;void 0!=c&&(a.j=c)};_.Af=function(a,b,c){a.a=b;a.m=c||0};_.Bf=function(a,b){a.m=b||0;var c=a.g.Ef;a.g=null;return c};Cf=function(a){this.a=new wf;this.f=a};
19
19
  Ff=function(a,b){xf(a.a);var c=a.a.h;if(c)return Df(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return Ef(a)};Df=function(a,b,c,d){try{var e=b.call(a.a.h,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.a.o=!1,e;var f=e.value}catch(g){return a.a.h=null,yf(a.a,g),Ef(a)}a.a.h=null;d.call(a.a,f);return Ef(a)};
20
- Ef=function(a){for(;a.a.a;)try{var b=a.f(a.a);if(b)return a.a.o=!1,{value:b.value,done:!1}}catch(c){a.a.f=void 0,yf(a.a,c)}a.a.o=!1;if(a.a.g){b=a.a.g;a.a.g=null;if(b.Qf)throw b.Ff;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
20
+ Ef=function(a){for(;a.a.a;)try{var b=a.f(a.a);if(b)return a.a.o=!1,{value:b.value,done:!1}}catch(c){a.a.f=void 0,yf(a.a,c)}a.a.o=!1;if(a.a.g){b=a.a.g;a.a.g=null;if(b.Pf)throw b.Ef;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
21
21
  Gf=function(a){this.next=function(b){xf(a.a);a.a.h?b=Df(a,a.a.h.next,b,a.a.w):(a.a.w(b),b=Ef(a));return b};this["throw"]=function(b){xf(a.a);a.a.h?b=Df(a,a.a.h["throw"],b,a.a.w):(yf(a.a,b),b=Ef(a));return b};this["return"]=function(b){return Ff(a,b)};vf();this[Symbol.iterator]=function(){return this}};_.Hf=function(a,b){var c=new Gf(new Cf(b));of&&of(c,a.prototype);return c};
22
- If=function(a,b){if(b){for(var c=qf,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];f in c||(c[f]={});c=c[f]}d=d[d.length-1];e=c[d];f=b(e);f!=e&&null!=f&&sf(c,d,{configurable:!0,writable:!0,value:f})}};Jf=function(a){function b(d){return a.next(d)}function c(d){return a["throw"](d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})};_.B=function(a){return Jf(new Gf(new Cf(a)))};
23
- _.C=function(a,b){var c=a.split("."),d=Kf;c[0]in d||"undefined"==typeof d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d[e]&&d[e]!==Object.prototype[e]?d=d[e]:d=d[e]={}:d[e]=b};Nf=function(a){return a&&0<=Lf[a]?Lf[a]:Mf};Pf=function(a){if(!a)return _.G("clpp.log",xb+a+ca),-1;var b=Of[a.toUpperCase()];return void 0===b?(_.G("clpp.log",xb+a+ca),-1):b};_.H=function(a){(this.a=a)&&void 0===Lf[a]&&(Lf[a]=-1)};_.Rf=function(a){Qf.info.apply(Qf,arguments)};
24
- _.Sf=function(a){Qf.debug.apply(Qf,arguments)};_.G=function(a){Qf.warn.apply(Qf,arguments)};_.Tf=function(a){Qf.error.apply(Qf,arguments)};Uf=function(a,b){this.Jb=a;this.a=b};Wf=function(a,b){this.a=a;this.f=b};_.ag=function(a){if(a){var b=a.a();b in _.Xf?_.$f.warn("Player-Factory '"+b+"' already registered"):(_.Xf[b]=a,_.$f.info("Registered Player-Factory: '"+b+"'"))}};_.bg=function(){this.a={}};cg=function(a,b,c,d){this.f=a;this.zc=b;this.a=c;this.Fj=!!d};
22
+ If=function(a,b){if(b){for(var c=qf,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];f in c||(c[f]={});c=c[f]}d=d[d.length-1];e=c[d];f=b(e);f!=e&&null!=f&&sf(c,d,{configurable:!0,writable:!0,value:f})}};Jf=function(a){function b(d){return a.next(d)}function c(d){return a["throw"](d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})};_.A=function(a){return Jf(new Gf(new Cf(a)))};
23
+ _.D=function(a,b){var c=a.split("."),d=Kf;c[0]in d||"undefined"==typeof d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d[e]&&d[e]!==Object.prototype[e]?d=d[e]:d=d[e]={}:d[e]=b};Nf=function(a){return a&&0<=Lf[a]?Lf[a]:Mf};Pf=function(a){if(!a)return _.G("clpp.log",vb+a+ca),-1;var b=Of[a.toUpperCase()];return void 0===b?(_.G("clpp.log",vb+a+ca),-1):b};_.H=function(a){(this.a=a)&&void 0===Lf[a]&&(Lf[a]=-1)};_.Rf=function(a){Qf.info.apply(Qf,arguments)};
24
+ _.Sf=function(a){Qf.debug.apply(Qf,arguments)};_.G=function(a){Qf.warn.apply(Qf,arguments)};_.Tf=function(a){Qf.error.apply(Qf,arguments)};Uf=function(a,b){this.Ib=a;this.a=b};Vf=function(a,b){this.a=a;this.f=b};_.ag=function(a){if(a){var b=a.a();b in _.Xf?_.Yf.warn("Player-Factory '"+b+"' already registered"):(_.Xf[b]=a,_.Yf.info("Registered Player-Factory: '"+b+"'"))}};_.bg=function(){this.a={}};cg=function(a,b,c,d){this.f=a;this.xc=b;this.a=c;this.Bj=!!d};
25
25
  _.J=function(a,b){if(b)for(var c in b)this[c]=b[c];this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.f=this.a=!1};dg=function(a){this.a=new _.bg;this.f=a};_.eg=function(){this.a=new _.bg};
26
26
  _.fg=function(a,b,c,d){function e(h){for(var l=_.u(c),m=l.next();!m.done;m=l.next())a.off(b,m.value,e);d(h)}for(var f=_.u(c),g=f.next();!g.done;g=f.next())a.on(b,g.value,e)};_.hg=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)gg(c[b]);a.a.clear()};ig=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};gg=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
27
- jg=function(a){this.l=a;this.m=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.h=null;this.f=new _.eg;this.a=this.j=null;this.g=[];this.o=new _.H("clpp.native.Metadata")};lg=function(a,b){a.h=b;a.j=a.h.textTracks;a.f.on(a.j,_.Wb,function(c){c=c.track;c.kind===_.Bd&&kg(a,c)})};
28
- kg=function(a,b){function c(l){for(var m=_.u(d),n=m.next();!n.done;n=m.next())if(n=n.value,l.startTime===n.startTime&&l.endTime===n.endTime)return n;m={schemeIdUri:"",value:"",startTime:0,endTime:0,id:"",type:_.mg,eventElement:null};a.m&&e&&"SCTE35-IN"===l.value.key&&0<l.startTime?(m.startTime=0,m.endTime=l.startTime):(m.startTime=l.startTime,m.endTime=l.endTime);e=!1;d.push(m);return d[d.length-1]}a.o.debug("onMetadata_()");b.mode=_.ld;var d=[],e=!0;if(b.cues){for(var f=_.u(b.cues),g=f.next();!g.done;g=
29
- f.next())if(g=g.value,!ng(a,g)){var h=c(g);switch(g.value.key){case "SCTE35-IN":case "SCTE35-OUT":h.schemeIdUri=_.Le;h.type=_.og;break;case "X-CUSTOM-ID":h.id=g.value.data}}f=_.u(d);for(g=f.next();!g.done;g=f.next())a.l.trigger(new _.J(_.pg,{detail:g.value}));Array.prototype.push.apply(a.g,d);qg(a,d,b);a.f.off(b,_.Uc);a.f.on(b,_.Uc,function(l){l=l.target.activeCues;l=l.length?ng(a,l[0]):a.a;var m;if(m=l)m=a.l.getPosition(),m=l.startTime<=m&&m<l.endTime;if(m)a.a=l,a.l.trigger(new _.J(_.rg,{detail:l}));
27
+ jg=function(a){this.l=a;this.m=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.h=null;this.f=new _.eg;this.a=this.j=null;this.g=[];this.o=new _.H("clpp.native.Metadata")};lg=function(a,b){a.h=b;a.j=a.h.textTracks;a.f.on(a.j,_.Wb,function(c){c=c.track;c.kind===_.Cd&&kg(a,c)})};
28
+ kg=function(a,b){function c(l){for(var m=_.u(d),n=m.next();!n.done;n=m.next())if(n=n.value,l.startTime===n.startTime&&l.endTime===n.endTime)return n;m={schemeIdUri:"",value:"",startTime:0,endTime:0,id:"",type:_.mg,eventElement:null};a.m&&e&&"SCTE35-IN"===l.value.key&&0<l.startTime?(m.startTime=0,m.endTime=l.startTime):(m.startTime=l.startTime,m.endTime=l.endTime);e=!1;d.push(m);return d[d.length-1]}a.o.debug("onMetadata_()");b.mode=_.nd;var d=[],e=!0;if(b.cues){for(var f=_.u(b.cues),g=f.next();!g.done;g=
29
+ f.next())if(g=g.value,!ng(a,g)){var h=c(g);switch(g.value.key){case "SCTE35-IN":case "SCTE35-OUT":h.schemeIdUri=_.Le;h.type=_.og;break;case "X-CUSTOM-ID":h.id=g.value.data}}f=_.u(d);for(g=f.next();!g.done;g=f.next())a.l.trigger(new _.J(_.pg,{detail:g.value}));Array.prototype.push.apply(a.g,d);qg(a,d,b);a.f.off(b,_.Wc);a.f.on(b,_.Wc,function(l){l=l.target.activeCues;l=l.length?ng(a,l[0]):a.a;var m;if(m=l)m=a.l.getPosition(),m=l.startTime<=m&&m<l.endTime;if(m)a.a=l,a.l.trigger(new _.J(_.rg,{detail:l}));
30
30
  else{if(l=a.a)l=a.a,m=a.l.getPosition(),l=l.endTime<=m;l&&(l=a.a,a.a=null,a.l.trigger(new _.J(_.sg,{detail:l})))}})}};ng=function(a,b){for(var c=_.u(a.g),d=c.next();!d.done;d=c.next())if(d=d.value,b.startTime===d.startTime&&b.endTime===d.endTime)return d;return null};qg=function(a,b,c){if(a.m){for(;0<c.cues.length;)c.removeCue(c.cues[0]);b.forEach(function(d){c.addCue(new DataCue(d.startTime,d.endTime,{key:"SCTE35-OUT",data:null}))})}};
31
31
  _.zg=function(a,b,c,d){d=void 0===d?_.tg:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.ug;this.writingMode=_.vg;this.lineInterpretation=_.wg;this.line=null;this.lineAlign=_.xg;this.direction=yg;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
32
32
  _.Cg=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.Ag;this.scroll=Bg;this.cssClassList=[];this.writingMode=this.displayAlign=null};Dg=function(a){this.l=a;this.j=a.getTextDisplayer();this.f=this.g=null;this.a=new _.eg;this.h=!1;this.m=new _.H("clpp.native.CueHandler")};
33
- Eg=function(a,b){var c=b.track;c.kind!==_.Bd&&(c.mode===_.ne&&(c.mode=_.ld),a.a.on(c,_.Uc,function(d){d=d.target||d.srcElement;d.mode=_.ld;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.j.append(d,[]))}))};_.Fg=function(a){return Array.isArray(a)?a:[a]};Gg=function(a,b){return a===b?!0:a.length===b.length&&a.every(function(c,d){return c===b[d]})};Ig=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 Hg(a,b)&&Hg(b,a)};
33
+ Eg=function(a,b){var c=b.track;c.kind!==_.Cd&&(c.mode===_.ne&&(c.mode=_.nd),a.a.on(c,_.Wc,function(d){d=d.target||d.srcElement;d.mode=_.nd;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.j.append(d,[]))}))};_.Fg=function(a){return Array.isArray(a)?a:[a]};Gg=function(a,b){return a===b?!0:a.length===b.length&&a.every(function(c,d){return c===b[d]})};Ig=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 Hg(a,b)&&Hg(b,a)};
34
34
  Hg=function(a,b){var c=new Set(a);return b.every(function(d){return c.has(d)})};Jg=function(a,b){var c=b||Gg,d=null,e=null,f=!1;return function(g){for(var h=[],l=0;l<arguments.length;++l)h[l]=arguments[l];if(f&&c(h,d))return e;f=!0;d=h;return e=a.apply(null,_.mf(h))}};_.Kg=function(a){return null!=a};
35
- _.Lg=function(a){var b;a instanceof _.Lg?(Mg(this,a.Za),this.mc=a.mc,this.Oa=a.Oa,Ng(this,a.Lc),this.pa=a.pa,_.Og(this,Pg(a.a)),this.ac=a.ac):a&&(b=String(a).match(Qg))?(Mg(this,b[1]||"",!0),this.mc=Rg(b[2]||""),this.Oa=Rg(b[3]||"",!0),Ng(this,b[4]),this.pa=Rg(b[5]||"",!0),_.Og(this,b[6]||"",!0),this.ac=Rg(b[7]||"")):this.a=new Sg(null)};Mg=function(a,b,c){a.Za=c?Rg(b,!0):b;a.Za&&(a.Za=a.Za.replace(/:$/,""))};
36
- Ng=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Lc=b}else a.Lc=null};_.Og=function(a,b,c){b instanceof Sg?a.a=b:(c||(b=Tg(b,Ug)),a.a=new Sg(b))};Rg=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""};Tg=function(a,b,c){return typeof a===_.ve?(a=encodeURI(a).replace(b,Vg),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};Vg=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};Sg=function(a){this.f=a||null};
35
+ _.Lg=function(a){var b;a instanceof _.Lg?(Mg(this,a.Xa),this.kc=a.kc,this.Na=a.Na,Ng(this,a.Kc),this.wa=a.wa,_.Og(this,Pg(a.a)),this.Zb=a.Zb):a&&(b=String(a).match(Qg))?(Mg(this,b[1]||"",!0),this.kc=Rg(b[2]||""),this.Na=Rg(b[3]||"",!0),Ng(this,b[4]),this.wa=Rg(b[5]||"",!0),_.Og(this,b[6]||"",!0),this.Zb=Rg(b[7]||"")):this.a=new Sg(null)};Mg=function(a,b,c){a.Xa=c?Rg(b,!0):b;a.Xa&&(a.Xa=a.Xa.replace(/:$/,""))};
36
+ Ng=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Kc=b}else a.Kc=null};_.Og=function(a,b,c){b instanceof Sg?a.a=b:(c||(b=Tg(b,Ug)),a.a=new Sg(b))};Rg=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""};Tg=function(a,b,c){return typeof a===_.ve?(a=encodeURI(a).replace(b,Vg),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};Vg=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};Sg=function(a){this.f=a||null};
37
37
  _.Wg=function(a){if(!a.a&&(a.a={},a.g=0,a.f))for(var b=a.f.split("\x26"),c=0;c<b.length;c++){var d=b[c].indexOf("\x3d"),e=null;if(0<=d){var f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));e=e||"";a.add(f,decodeURIComponent(e.replace(/\+/g," ")))}};Pg=function(a){var b=new Sg;b.f=a.f;if(a.a){var c={},d;for(d in a.a)c[d]=a.a[d].concat();b.a=c;b.g=a.g}return b};
38
- _.Yg=function(a,b){for(var c=Xg[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===_.Ce?"":null};$g=function(a){return a.map(function(b){b=(new _.Lg(b)).pa.split(".");b=1>=b.length?null:b.pop();return(b=Zg.video[b||""])?b:null}).filter(Boolean)[0]||null};
39
- _.L=function(a,b,c,d,e){var f=Error.call(this,ah(a,b,c,d));this.message=f.message;"stack"in f&&(this.stack=f.stack);this.severity=a;this.category=b;this.code=c;this.data=!d||_.K.Y(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.L)};
40
- ah=function(a,b,c,d){a=(a===_.M?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.K.Y(d))a+=": "+d;else if(null!=d&&void 0!=d)if(null!=d.message&&void 0!=d.message)a+=": "+d.message,delete d.message,_.K.Y(d.causeText)&&(a+="\n Caused by: "+d.causeText);else try{a+=": "+JSON.stringify(d)}catch(e){}return a};_.bh=function(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d};_.ch=function(a,b,c){return(a=a.getAttribute(b))?a.value:c||null};
41
- _.dh=function(a,b){this.name=a;this.value=b};_.gh=function(a,b){for(var c=_.u(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};_.hh=function(a){this.f=a;this.a=0};_.jh=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};kh=function(){};
38
+ _.Yg=function(a,b){for(var c=Xg[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===_.Ce?"":null};_.ah=function(a,b,c){return a.map(function(d){d=_.Zg(d)||"";return(d=_.$g[b][d])?d:b===_.Ce?c&&"vtt"!==c?ec:_.De:null}).filter(Boolean)[0]||null};_.Zg=function(a){a=(new _.Lg(a)).wa.split(".");return 1>=a.length?null:a.pop()};
39
+ _.L=function(a,b,c,d,e){var f=Error.call(this,bh(a,b,c,d));this.message=f.message;"stack"in f&&(this.stack=f.stack);this.severity=a;this.category=b;this.code=c;this.data=!d||_.K.Y(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.L)};
40
+ bh=function(a,b,c,d){a=(a===_.M?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.K.Y(d))a+=": "+d;else if(null!=d&&void 0!=d)if(null!=d.message&&void 0!=d.message)a+=": "+d.message,delete d.message;else try{a+=": "+JSON.stringify(d)}catch(e){}return a};_.ch=function(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d};_.dh=function(a,b,c){return(a=a.getAttribute(b))?a.value:c||null};_.eh=function(a,b){this.name=a;this.value=b};
41
+ _.fh=function(a,b){for(var c=_.u(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};_.gh=function(a){this.f=a;this.a=0};_.hh=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};
42
+ _.jh=function(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new _.L(_.M,4,4016,{invalidTag:b});var d=c[1],e=c[2];c=[];var f;if(e){e=new _.gh(e);var g;(g=_.hh(e,/^([^,=]+)(?:,|$)/g))&&(f=g[1]);for(var h=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=_.hh(e,h);)c.push(new _.eh(g[1],g[2]||g[3]))}return new _.ch(a,d,c,f)};kh=function(){};
42
43
  nh=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(lh(a)==lh(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;for(var c=_.N(a),d=_.N(b),e=_.u(mh(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!=d[f])return!1;return!0};_.N=function(a,b,c){c=void 0===c?Infinity:c;return oh(a,void 0===b?0:b,c,Uint8Array)};ph=function(a,b,c){c=void 0===c?Infinity:c;return oh(a,void 0===b?0:b,c,Uint16Array)};
43
44
  qh=function(a,b,c){c=void 0===c?Infinity:c;return oh(a,void 0===b?0:b,c,Uint32Array)};_.rh=function(a,b,c){c=void 0===c?Infinity:c;return oh(a,void 0===b?0:b,c,Int32Array)};_.sh=function(a,b,c){c=void 0===c?Infinity:c;return oh(a,void 0===b?0:b,c,DataView)};th=function(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
44
45
  oh=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=lh(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)};lh=function(a){return a instanceof ArrayBuffer?a:a.buffer};uh=function(a){for(var b="",c=0;c<a.length;c+=16E3)b+=String.fromCharCode.apply(null,a.subarray(c,c+16E3));return b};
45
- _.vh=function(a){if(!a)return"";a=_.N(a);239==a[0]&&187==a[1]&&191==a[2]&&(a=a.subarray(3));if("TextDecoder"in window){a=(new TextDecoder).decode(a);if(a.includes("\ufffd"))throw Error(Ha);return a}a=escape(uh(a));try{return decodeURIComponent(a)}catch(b){throw Error(Ha);}};
46
+ _.vh=function(a){if(!a)return"";a=_.N(a);239===a[0]&&187===a[1]&&191===a[2]&&(a=a.subarray(3));if("TextDecoder"in window){a=(new TextDecoder).decode(a);if(a.includes("\ufffd"))throw Error(Fa);return a}a=escape(uh(a));try{return decodeURIComponent(a)}catch(b){throw Error(Fa);}};
46
47
  xh=function(a,b,c){if(!a)return"";if(!c&&0!==a.byteLength%2)throw wh.error("Data has an incorrect length, must be even."),Error("Data does not seem to be UTF-16 encoded!");c=_.N(a);if(b&&255===c[0]&&254===c[1]||254===c[0]&&255===c[1])a=c.subarray(2);if(a instanceof ArrayBuffer)var d=a;else c=new Uint8Array(a.byteLength),c.set(_.N(a)),d=c.buffer;a=Math.floor(a.byteLength/2);c=new Uint16Array(a);d=new DataView(d);for(var e=0;e<a;e++)c[e]=d.getUint16(2*e,b);return uh(c)};
47
48
  _.yh=function(a,b){if(_.K.Y(a))return a;var c="",d=!!b,e=_.N(a);239==e[0]&&187==e[1]&&191==e[2]?c=_.vh(e):254==e[0]&&255==e[1]?c=xh(e.subarray(2),!1):255==e[0]&&254==e[1]&&(c=xh(e.subarray(2),!0));var f=function(g,h){return g.byteLength<=h||32<=g[h]&&126>=g[h]}.bind(null,e);wh.debug("Unable to find byte-order-mark, making an educated guess.");0==e[0]&&0==e[2]?c=xh(a,!1):0==e[1]&&0==e[3]?c=xh(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.vh(a));if(c)return d&&(c=escape(c)),c;throw Error("Unable to detect text encoding");
48
49
  };_.zh=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};_.Ah=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};_.Bh=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=qh(e):2===c?f=ph(e):f=_.N(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};
49
50
  _.Ch=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.Dh=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};_.Eh=function(a){return!!(a&&0<a.length)};_.Fh=function(a){return!a||0===a.length};
50
- _.Gh=function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.K.isNaN(b))return"";a="bps";1E3<=Math.abs(b)&&(a="Kbps",b/=1E3);1E3<=Math.abs(b)&&(a="Mbps",b/=1E3);return b.toFixed(2).replace(/[.,]00$/,"")+a}catch(c){return""}};_.Ih=function(a){a=a.replace(/<[^>]+>/gi,"");Hh.innerHTML=a;a=Hh.textContent;return a=a.replace(/<[^>]+>/gi,"")};
51
- _.Jh=function(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new _.L(_.M,4,4016,{invalidTag:b});var d=c[1],e=c[2];c=[];var f;if(e){e=new _.hh(e);var g;(g=_.jh(e,/^([^,=]+)(?:,|$)/g))&&(f=g[1]);for(var h=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=_.jh(e,h);)c.push(new _.dh(g[1],g[2]||g[3]))}return new _.bh(a,d,c,f)};_.Lh=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0,fatalStatusCodes:_.mf(Kh).concat()}};
52
- Mh=function(a,b){a.timeout=b.timeout;a.baseDelay=b.baseDelay;a.backoffFactor=b.backoffFactor;a.fuzzFactor=b.fuzzFactor;a.maxAttempts=b.maxAttempts;a.fatalStatusCodes=b.fatalStatusCodes||_.mf(Kh).concat()};
53
- _.Oh=function(a,b){_.K.Y(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.Nh,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||
54
- [],responseModifiers:a.responseModifiers||[],startTime:a.startTime||null,endTime:a.endTime||null,contentType:a.contentType||null,licenseRequestType:a.licenseRequestType||null,sessionId:null,bytesRemaining:-1,bytesLoaded:-1,bytesTotal:-1,timescale:a.timescale||null,rateLimitBps:a.rateLimitBps||null,disableFragmentSupport:a.disableFragmentSupport||!1,disableMergedFragments:a.disableMergedFragments||!1,fatalStatusCodes:_.mf(Kh).concat()};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&Mh(c,b);return c};
55
- _.Ph=function(a,b,c,d,e,f,g){e&&(d=e);e={uri:d,data:b||new ArrayBuffer(0),headers:a,status:c,fromCache:!!a["x-shaka-from-cache"],timeMs:g,request:f};if(200<=c&&299>=c&&202!==c)return e;g=null;try{g=_.yh(b,!0)}catch(h){}_.Sf("HTTP error text:",g);throw new _.L(0<=(f.fatalStatusCodes||[]).indexOf(c)?_.M:1,1,1001,{url:d,status:c,responseText:g,headers:a,request:f,response:e});};Qh=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};
56
- Rh=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};Sh=function(a,b,c){if(0>=a)return Promise.resolve();var d=8*c/a-b/1E3;return 0<d?new Promise(function(e){setTimeout(e,1E3*d)}):Promise.resolve()};_.Th=function(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c};_.Uh=function(a,b){this.P=a;this.w=b;this.a=!1};Vh=function(a,b){a.P.then(function(){return b(!0)},function(){return b(!1)});return a};
57
- Wh=function(a,b,c){try{var d=a(b);if(d&&d.P&&d.abort)return c.resolve(d.P),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){})["catch"](function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}};_.Xh=function(){this.a=[]};_.Yh=function(a,b){a.a.push(Vh(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};
58
- _.ei=function(){this.f=[];this.g=[];this.m=!1;this.j=new _.Xh;this.a={};this.h=0;this.a.data=Zh;!window.fetch||!window.AbortController||_.$h(6)||_.ai()&&68<_.bi().browserVersion.major?(this.a.http=ci,this.a.https=ci):(this.a.http=di,this.a.https=di)};fi=function(a,b){var c;return _.B(function(d){if(1==d.a)return _.x(d,a.fetch(b),2);c=d.f;return d["return"](_.vh(c.data))})};
59
- gi=function(a,b,c,d){d=void 0===d?"HEAD":d;var e,f;return _.B(function(g){switch(g.a){case 1:if(!navigator.onLine)return g["return"](!1);if(!b){g.H(2);break}e=_.Oh(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.zf(g,4);return _.x(g,a.fetch(e).P,6);case 6:_.Af(g,2);break;case 4:if(f=_.Bf(g),1002===f.code||1003===f.code)return g["return"](!1);case 2:return g["return"](!0)}})};
60
- _.hi=function(a,b){this.id=a;this.type=b;this.roles=[];this.channelsCount=this.src=this.mimeType=this.frameRate=this.label=this.language=this.kind=null;this.renditions=[];this.accessibility=[]};_.ii=function(a){return a&&a!==_.Ie?a:null};
61
- li=function(a){if(!a)throw new _.L(_.M,3,3101,Qa+a);if(!_.K.Y(a))throw new _.L(_.M,3,3101,Qa+a+". Track type must be a string!");switch(a.toLowerCase()){case _.P:return _.P;case _.Q:return _.Q;case _.ji:return _.ji;case ki:return ki}throw new _.L(_.M,3,3101,"Unknown track type: "+a+".");};ni=function(a,b){a=li(a);var c=_.ii(b.kind),d=b.id;d||(d=String(_.mi++));d=new _.hi(d,c===_.Bd?ki:a);d.kind=c;d.label=_.ii(b.label);d.language=_.ii(b.language);return d};
62
- oi=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};_.pi=function(a,b){this.track=b;this.id=a;this.originalId=this.drm=this.drmInfo=this.codec=this.Rc=this.bandwidth=this.height=this.width=null};
63
- _.qi=function(a){this.h=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;_.Ch(this.path,
64
- "/")||(this.path="/"+this.path);this.f=b.search;this.g=b.hash};_.ri=function(a){return a.scheme+"//"+(a.a+(a.port?":"+a.port:"")+a.path+a.g+a.f)};_.si=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)},""):""};
65
- ti=function(a){var b={};a=a||"";a=a.substring(a.indexOf("?")+1);a=_.u(a.split("\x26"));for(var c=a.next();!c.done;c=a.next()){var d=c.value.split("\x3d");c=decodeURIComponent(d[0]);d=decodeURIComponent(d[1]||"");c&&(b[c]=d)}return b};ui=function(a,b){return a.startsWith("http:://")||a.startsWith("https:://")?a:(new URL(a,b)).toString()};
66
- vi=function(a){this.g=a;this.a=new _.H("clpp.native.hls.HlsMetadataParser");this.f=Jg(this.h.bind(this),function(b,c){return b[0]===c[0]&&b[1].enableHlsVideoTrackInfo===c[1].enableHlsVideoTrackInfo&&b[1].enableMetadata===c[1].enableMetadata})};
67
- yi=function(a,b,c){var d,e,f,g,h;return _.B(function(l){if(1==l.a)return _.x(l,wi(a,b,c),2);d=l.f;e=d.mimeType;f=d.renditions;g=new _.hi("dummy",_.ji);h=f.map(function(m,n){var p=new _.pi("R"+n,g);p.bandwidth=m.bandwidth;p.Rc=m.Rc;p.codec=m.codec;p.width=m.width;p.height=m.height;return p});xi(h);return l["return"]({renditions:h,mimeType:e||void 0})})};
68
- Ai=function(a){a=a.split("\n").filter(function(c){return c.trim().startsWith("#EXT-X-MEDIA:")}).map(function(c){return zi(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};
69
- zi=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.Jh(0,a);a=b("TYPE");a=null!=a?{AUDIO:_.Q,VIDEO:_.ji,SUBTITLES:_.P}[a]:void 0;return{type:a,groupId:b(_.La),name:b("NAME"),language:b("LANGUAGE"),nk:b("AUTOSELECT"),"default":b("DEFAULT"),vk:b("FORCED"),sf:b("CHARACTERISTICS"),uri:b(_.wb)}};xi=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.");};
70
- Bi=function(a,b){var c,d;return _.B(function(e){if(1==e.a)return c=_.Oh(b),_.x(e,fi(a.g,c),2);d=e.f;return e["return"](d)})};wi=function(a,b,c){var d,e,f,g;return _.B(function(h){if(1==h.a)return d=Ci(b),e=Di(b,c),f=d[0]?d[0].codec:null,_.x(h,Ei(a,e,f),2);g=h.f;return h["return"]({mimeType:g,renditions:d})})};Ei=function(a,b,c){var d,e;return _.B(function(f){if(1==f.a)return b&&c?_.x(f,Bi(a,b),2):f["return"](null);d=f.f;e=[Fi(d,b),Gi(d,b)].filter(Boolean);return f["return"]($g(e,c))})};
71
- Ci=function(a){return a.split("\n").filter(function(b){return b.trim().startsWith("#EXT-X-STREAM-INF:")}).map(function(b){var c=_.Jh(0,b);if(c.getAttribute("VIDEO"))throw Error("Playlist contains alternative video streams.");var d=_.ch(c,_.jb);b=d?Number(d.split("x")[0]):null;d=d?Number(d.split("x")[1]):null;var e=_.ch(c,_.na);e=e?Number(e):null;var f=_.ch(c,"AVERAGE-BANDWIDTH");f=f?Number(f):null;c=_.ch(c,_.pa);c=_.Yg(_.Re,c?c.split(","):[]);return{bandwidth:e,Rc:f,codec:c,width:b,height:d,mimeType:null}})};
72
- Di=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?ui(c,b):null};Fi=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?ui(c,b):null};Gi=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.ch(_.Jh(0,c),_.wb))?ui(c,b):null:null};
73
- _.Ii=function(a,b,c){for(var d=_.u(_.Hi),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.Ji=function(a){a=_.Hi.indexOf(a);0<=a&&_.Hi.splice(a,1)};_.R=function(){};_.Mi=function(a,b){a=_.Ki(a);b=_.Ki(b);return a.split("-")[0]==b.split("-")[0]};_.Ki=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Ni.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};_.Oi=function(a,b){var c=a;b&&(c+='; codecs\x3d"'+b+'"');return c};
74
- _.Pi=function(a){this.f=a;this.a=null};Qi=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};_.Ri=function(a){this.f=a;this.a=null};Si=function(){};_.Ti=function(){return!!navigator.userAgent.match(/Edge?\//)};_.$h=function(a){return _.Ui("Tizen"+(a?" "+String(a):""))};_.ai=function(){return _.Ui("Web0S")};_.Wi=function(){return _.ai()&&79===Vi().major};_.Xi=function(){return _.Ui("CrKey")};
75
- _.Yi=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.$h()};_.Zi=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.Yi()&&1<navigator.maxTouchPoints};_.$i=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};_.Ui=function(a){return(navigator.userAgent||"").includes(a)};
76
- ej=function(){if(aj)return aj;bj||(bj=new _.Ri(function(){aj=null}));(aj=document.querySelector(_.Re)||document.querySelector(_.jc))||(aj=document.createElement(_.Re));bj.Z(1);return aj};gj=function(a,b){try{return parseInt(b,10)}catch(c){fj.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
77
- hj=function(a){var b={major:-1,name:Je};if(!a)return b;var c=a.replace(/_/g,".");b.name=c;c=c.split(".");1<=c.length&&(b.major=gj(a,c[0]));2<=c.length&&(b.minor=gj(a,c[1]));3<=c.length&&(b.patch=gj(a,c[2]));4<=c.length&&(b.build=gj(a,c[3]));return b};ij=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};
78
- sj=function(){var a=jj();if(!a)return kj;var b=a.match(/^.+?(?=\))/);if(!b)return kj;b=b[0];if(ij(b,["iphone","ipad"]))return lj;if(ij(b,["android"]))return mj;if(ij(b,["macintosh"]))return nj;if(ij(b,["windows nt"]))return oj;if(ij(b,["tizen"]))return pj;if(ij(b,["web0s"]))return qj;if(ij(b,["linux"]))return rj;fj.warn("Unable to identify OS from user agent: "+a);return kj};
79
- Vi=function(){var a=jj(),b=["ie","edge","opera","firefox","safari",Ec];var c=sj();for(var d=tj[c],e=0,f=b.length;e<f;e++)if(c=d[b[e]]&&a.match(d[b[e]]))return hj(c[1]);return hj("")};jj=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
80
- _.bi=function(){var a=sj();var b=sj();var c=tj[b];if(c){c=jj().match(c.os_version)[1];c=hj(c);if(b===oj)if("5.1"===c.name)c.name="xp";else if("6.1"===c.name)c.name="7";else if("6.2"===c.name||"6.3"===c.name)c.name="8";b=c}else b=hj("");a:{c=jj();var d=["ie","edge","opera","firefox","safari",Ec],e=sj();e=tj[e];for(var f=0,g=d.length;f<g;f++)if(e[d[f]]&&c.match(e[d[f]])){c=d[f];break a}c=uj}return{os:a,osVersion:b,browser:c,browserVersion:Vi()}};
81
- vj=function(){this.a=new _.H("clpp.native.TrackManager");this.l=null;this.g=new _.eg;this.h=[];this.B=0;this.o={};this.D=[];this.f=new Map;this.w=null;this.m=new Map;this.A=!0;this.K=this.Ne.bind(this,_.P);this.N=this.Pe.bind(this,_.P);this.L=this.Oe.bind(this,_.P);this.R=this.Ne.bind(this,_.ji);this.V=this.Pe.bind(this,_.ji);this.T=this.Oe.bind(this,_.ji);this.F=this.Ne.bind(this,_.Q);this.J=this.Pe.bind(this,_.Q);this.I=this.Oe.bind(this,_.Q);this.j=null};
82
- xj=function(a,b){var c,d,e,f,g,h,l,m;return _.B(function(n){if(1==n.a){c=a.l.getConfiguration();d=_.Ii(c,b.mimeType,_.De);if(!d)return a.a.warn("Track mimetype is not supported",b),n["return"]();e=_.Oh(b.url);return _.x(n,a.l.getNetworkEngine().fetch(e).P,2)}(f=n.f)&&f.data&&(g="External_"+a.B++,a.o[g]=b,h=d.a(_.N(f.data)),l=URL.createObjectURL(new Blob([h])),m={url:l,kind:b.kind,language:b.language,label:b.label,mimeType:_.De},wj(a,m,g));_.z(n)})};zj=function(a,b,c){return yj(a)&&b===_.ji&&!!c.enableHlsVideoTrackInfo};
83
- Aj=function(a,b,c){return yj(a)&&(b===_.Q||b===_.P)&&!!c.enableMetadata};yj=function(a){a=a.l.getLoadedSource();return!(!a||a.type!==_.Bj&&!a.url.endsWith(".m3u8"))&&_.Yi()};Cj=function(a,b,c){var d,e;return _.B(function(f){if(1==f.a)return(d=a.l.getLoadedSource())&&a.j?_.x(f,a.j.f(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)})};
84
- Dj=function(a,b,c){var d,e,f,g;return _.B(function(h){if(1==h.a)return(d=a.l.getLoadedSource())&&a.j?_.x(h,a.j.f(d.url,c),2):h["return"]();e=h.f;e.Vf&&(f=b.type+":"+b.label,(g=e.Vf.get(f))&&g.sf&&(b.accessibility=g.sf.split(",").map(function(l){return l.trim()}).map(function(l){return{value:l,type:b.type,protocol:"HLS"}})));_.z(h)})};
85
- wj=function(a,b,c){if(a.l){var d=a.l.getSurface().getMedia();if(d){var e=document.createElement("track");e.id=c;e.kind=b.kind;e.srclang=b.language;b.label&&(e.label=b.label);e.src=_.Fh(b.url)?URL.createObjectURL(new Blob([])):b.url;d.appendChild(e);a.D.push(e)}}};Ej=function(a,b){if(!a.l)return null;var c=a.l.getSurface();if(!c)return null;c=c.getMedia();if(!c)return null;switch(b){case _.Q:return c.audioTracks;case _.ji:return c.videoTracks;case _.P:return c.textTracks;default:return null}};
86
- Fj=function(a,b){var c=Ej(a,b);c&&(c=Array.from(c),b===_.P&&(c=c.filter(function(d){return d.kind!==_.Bd})));return c};Gj=function(a,b){return a.h.filter(function(c){return c.type===b})};Hj=function(a,b){var c=a.f.get(b)||null;return c&&c.renditions[0]};Ij=function(a,b){var c=a.m.get(b);return c&&c.renditions[0]};
87
- Mj=function(a,b,c){var d=Fj(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.a.debug("Activate track type "+b+" with ID: "+c.id);if(d){a.m.set(b,c);var e=!0,f=!1;switch(b){case _.P:var g="mode";e=_.ne;f=_.Wc;break;case _.Q:g="enabled";break;case _.ji:g="selected"}if(g){d=_.u(d);for(var h=d.next();!h.done;h=d.next())h=h.value,h[g]=Jj(c,h,c.type)?e:
88
- f}}}else if(a.a.debug(_.Ea+b),a.f.get(b)&&d&&b===_.P){g=_.u(d);for(h=g.next();!h.done;h=g.next())h.value.mode=_.Wc;a.f.set(b,null)}b===_.Q?a.l.trigger(new _.J(_.Kj)):b===_.P&&a.l.trigger(new _.J(_.Lj))};Nj=function(a){return a.enabled||a.selected||a.mode===_.ne||a.mode===_.ld};
89
- Oj=function(a,b,c){c=_.Fg(c).filter(function(e){return e});a.a.info("Find preferred tracks for",b,c);var d=Gj(a,b);c.some(function(e){var f=_.Ki(e);return(e=d.find(function(g){g=_.Ki(g.language||"");return _.Mi(f,g)}))?(a.a.info("Will select track with id",e.id),Mj(a,b,e),!0):!1})};Pj=function(a){(a=a.l.getTextDisplayer())&&a.remove(0,Infinity)};
90
- Jj=function(a,b,c){return a.type!==c?!1:void 0!==b.id&&null!==b.id&&""!==b.id?a.id===b.id:_.K.va(a,{kind:_.ii(b.kind),language:_.ii(b.language),label:_.ii(b.label)},["kind","language","label"])};_.Qj=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};_.Rj=function(){this.cd=new dg(this);this.$c=[]};Tj=function(a){return a.name===cb&&Sj.some(function(b){return a.message.startsWith(b)})};Uj=function(){};
91
- _.Xj=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.Zi()&&(a=360);var b=_.Lh();b.maxAttempts=3;a={source:"",license:Vj,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,manifest:{attemptParameters:_.Lh(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,
92
- restrictions:Wj(a)},drm:null,enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:"main",preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],volume:null,startTime:null,loop:!1,lowLatencyMode:!1,suggestedPresentationDelay:void 0,muted:void 0,forceWaitForTracks:!1,streaming:{attemptParameters:b,bufferingGoal:10,rebufferingGoal:2,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,relativeTextTimestamp:!1,startAtSegmentBoundary:!1,
93
- gapDetectionThreshold:.1,smallGapLimit:.5,jumpLargeGaps:!0,durationBackoff:1,maxSegmentToMediaOffset:1,forceNativeTS:!1,preferNativeHlsOnSafari:!0,safeSeekOffset:5,stallEnabled:!0,stallThreshold:3,stallSkip:.5,bufferLimitUpdateInterval:.5,overridePasp:!1,enableLiveEdgeChasing:!1,chasingRate:1.15,startChasingAt:5,stopChasingAt:2,chaseJumpDistance:10,patchEdgeWhenMixedContent:!1,ignoreDrift:!1,disableFragmentSupport:!1,disableMergedFragments:!1},restrictions:Wj(),tizen:{sideStreamText:_.$h(2)},safari:{enableHlsVideoTrackInfo:!1,
94
- enableMetadata:!0}};if(_.Ui("Edge/")||_.$h())a.streaming.gapDetectionThreshold=.5;_.ai()&&(a.streaming.stallEnabled=!1);_.Wi()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=.02);_.$h()&&(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};
95
- _.Zj=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(!b)return _.Xj();c=[_.Xj()];var d=!1;b=_.u(b);for(var e=b.next();!e.done;e=b.next())e=e.value,null!==e&&void 0!==e&&(_.K.Y(e)&&(e={source:e}),e.lowLatencyMode&&!d&&(c.push({suggestedPresentationDelay:0,streaming:{rebufferingGoal:.1,bufferLimitUpdateInterval:.01,attemptParameters:{maxAttempts:3,baseDelay:250,backoffFactor:1}},abr:{bandwidthUpgradeTarget:.6,bandwidthDowngradeTarget:.95},manifest:{hlsLowLatency:!0}}),d=!0),
96
- c.push(e));c=_.K.Wa.apply(null,c);_.K.Y(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.K.S(c.volume)&&(!_.K.ka(c.volume)||_.K.isNaN(c.volume)))throw new _.L(_.M,7,7100,"config.volume is not a number");if(!_.K.S(c.preferredTextLanguage)&&!_.K.Y(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.L(_.M,7,7100,"config.preferredTextLanguage is not a string or an array");if(!_.K.S(c.preferredAudioLanguage)&&!_.K.Y(c.preferredAudioLanguage)&&!Array.isArray(c.preferredAudioLanguage))throw new _.L(_.M,
97
- 7,7100,"config.preferredAudioLanguage is not a string or an array");if(!_.K.S(c.preferredAudioCodec)&&!_.K.Y(c.preferredAudioCodec)&&!Array.isArray(c.preferredAudioCodec))throw new _.L(_.M,7,7100,"config.preferredAudioCodec is not a string or an array");if(!_.K.S(c.preferredVideoCodec)&&!_.K.Y(c.preferredVideoCodec)&&!Array.isArray(c.preferredVideoCodec))throw new _.L(_.M,7,7100,"config.preferredVideoCodec is not a string or an array");if(!_.K.S(c.drm)){if(c.drm.env&&!_.K.Y(c.drm.env))throw new _.L(_.M,
98
- 7,7100,"config.drm.env is not a string");if(c.drm.offlineId&&!_.K.Y(c.drm.offlineId))throw new _.L(_.M,7,7100,"config.drm.offlineId is not a string");}if(d=c.streaming){d.bufferingGoal=Number(d.bufferingGoal);d.rebufferingGoal=Number(d.rebufferingGoal);d.bufferBehind=Number(d.bufferBehind);d.smallGapLimit=Number(d.smallGapLimit);d.durationBackoff=Number(d.durationBackoff);if(!_.K.ka(d.bufferingGoal)||_.K.isNaN(d.bufferingGoal))throw new _.L(_.M,7,7100,"config.streaming.bufferingGoal is not a number");
99
- if(!_.K.ka(d.rebufferingGoal)||_.K.isNaN(d.rebufferingGoal))throw new _.L(_.M,7,7100,"config.streaming.rebufferingGoal is not a number");if(d.rebufferingGoal>d.bufferingGoal)throw new _.L(_.M,7,7100,"config.streaming.rebufferingGoal must be \x3e\x3d bufferingGoal");if(!_.K.ka(d.bufferBehind)||_.K.isNaN(d.bufferBehind))throw new _.L(_.M,7,7100,"config.streaming.bufferBehind is not a number");if(!_.K.ka(d.smallGapLimit)||_.K.isNaN(d.smallGapLimit))throw new _.L(_.M,7,7100,"config.streaming.smallGapLimit is not a number");
100
- if(!_.K.ka(d.durationBackoff)||_.K.isNaN(d.durationBackoff))throw new _.L(_.M,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.K.S(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.k)throw new _.L(_.M,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");Yj(c.restrictions);Yj(c.abr.restrictions);c.abr.initialRestrictions&&Yj(c.abr.initialRestrictions)}return c};
101
- Wj=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}};
102
- Yj=function(a){_.K.S(a.maxPixels)&&(a.maxPixels=Infinity);_.K.S(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.K.S(a.maxHeight)&&(a.maxHeight=Infinity);_.K.S(a.maxWidth)&&(a.maxWidth=Infinity);_.K.S(a.minPixels)&&(a.minPixels=0);_.K.S(a.minBandwidth)&&(a.minBandwidth=0);_.K.S(a.minHeight)&&(a.minHeight=0);_.K.S(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);
103
- a.maxBandwidth=Number(a.maxBandwidth);a.minPixels=Number(a.minPixels);a.maxPixels=Number(a.maxPixels);if(Number.isNaN(a.minWidth)||Number.isNaN(a.maxWidth)||Number.isNaN(a.minHeight)||Number.isNaN(a.maxHeight)||Number.isNaN(a.minBandwidth)||Number.isNaN(a.maxBandwidth)||Number.isNaN(a.minPixels)||Number.isNaN(a.maxPixels))throw new _.L(_.M,7,7100,"Restrictions contain NaN");};_.ak=function(a){return typeof a===_.Kd&&!Array.isArray(a)&&"source"in a};
104
- _.bk=function(a){_.Rj.call(this);this.log=new _.H(a);this.configuration=this.zd=_.Xj();this.o=this.B=null;this.Ld=this.ze=!1;this.xg=new _.H("clpp.video.events");this.Sc=null;this.Cd=-1;this.Tj=this.Ej.bind(this);this.Yf=new _.ei;this.L=new _.eg;this.Sa=this.Dc=this.K=null};_.dk=function(a){return _.ck.get(a)||null};_.fk=function(a){_.ck.get(a.id())?ek.warn("Component already in use."):_.ck.set(a.id(),a)};gk=function(a){for(var b=_.u(_.ck.values()),c=b.next();!c.done;c=b.next())a(c.value)};_.hk=function(){};
105
- _.jk=function(a,b){var c=void 0==b?!0:b,d=_.ik(a).replace(/\+/g,"-").replace(/\//g,"_");return c?d:d.replace(/[=]*$/,"")};_.kk=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};_.lk=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};
106
- _.mk=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};_.nk=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};_.ok=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};_.ik=function(a){a=uh(_.N(a));return btoa(a)};
107
- pk=function(){this.a=this.f=null;this.g=new _.H("clpp.drm.csl")};qk=function(a,b){3===b.type&&(a.f&&(a.g.debug("Attaching tracking token"),b.headers[gf]=a.f),a.a&&(b.headers[hf]=a.a))};
108
- rk=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[gf];a.a=b.headers[hf];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(_.vh(_.kk(c))),{delay:c.renewalPeriod,kk:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};sk=function(a){return _.Ch(a,_.Pc)||_.Ch(a,_.Qc)};_.uk=function(a){_.tk[a.K]=a};
109
- _.wk=function(a){var b={attemptParameters:_.Lh(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,enableSessionCacheForSkd:!1,Ra:{}};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,a.env)){var c=_.tk[a.env]||null;if(!c)throw _.Sf(_.xa,_.hb+
110
- a.env+_.aa),new _.L(_.M,6,6015,_.ya+a.env+"' is missing.");b.Ra=_.vk(c,a.customData)||{};_.Ch(a.env.toLowerCase(),cd)&&(b.enforceSingleSession=!0)}return b};yk=function(a){a=xk[a];if(!a)return null;var b=_.bi();return b.os===mj&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.zk=function(a){this.K=a;this.g={}};Ak=function(a,b){var c=_.bi();if(c.os!==mj||c.browser!==Ec)return a||b};
111
- _.vk=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.g[_.Rc];g&&(c[_.Rc]={licenseUrl:g.licenseUrl,videoRobustness:Ak(d,g.videoRobustness),audioRobustness:Ak(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:g.distinctiveIdentifierRequired,persistentStateRequired:g.persistentStateRequired,serverCertificate:void 0===f?g.serverCertificate:null===f?null:typeof f===_.ve?yk(f):f});(g=a.g[_.Pc])&&(c[_.Pc]=
112
- {licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.g[_.Qc])&&(c[_.Qc]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});return c};
113
- _.Bk=function(a,b){this.f=_.K.ka(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.g=!!b;this.buffer=this.f.buffer};_.Dk=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.N(a.f.buffer);b=_.N(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.Ck()}};_.T=function(a,b){try{a.f.setUint32(a.a,b,a.g),a.a+=4}catch(c){_.Ck()}};_.Ck=function(){throw new _.L(_.M,3,3E3);};_.Ek=function(a,b){this.f=a;this.g=void 0===b?!0:b;this.a=0};_.Fk=function(a){return a.a<a.f.byteLength};
114
- _.Hk=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){_.Gk()}};_.Ik=function(a){try{var b=a.f.getUint16(a.a,a.g);a.a+=2;return b}catch(c){_.Gk()}};_.U=function(a){try{var b=a.f.getUint32(a.a,a.g);a.a+=4;return b}catch(c){_.Gk()}};_.Jk=function(a){try{var b=a.f.getInt32(a.a,a.g);a.a+=4;return b}catch(c){_.Gk()}};Kk=function(a,b){for(var c=new Uint8Array(b),d=0;d<b;d++)c[d]=_.Hk(a);return c};
115
- _.Lk=function(a){var b=0;try{if(a.g){var c=a.f.getUint32(a.a,!0);b=a.f.getUint32(a.a+4,!0)}else b=a.f.getUint32(a.a,!1),c=a.f.getUint32(a.a+4,!1)}catch(d){_.Gk()}if(2097151<b)throw new _.L(_.M,3,3001);a.a+=8;return b*Math.pow(2,32)+c};_.Mk=function(a,b){a.a+b>a.f.byteLength&&_.Gk();var c=a.f.buffer.slice(a.a,a.a+b);a.a+=b;return _.N(c)};_.Gk=function(){throw new _.L(_.M,3,3E3,"Buffer read out of bounds.");};_.Nk=function(){this.g=[];this.f=[];this.a=!1;this.h=new _.H("clpp.mp4")};
116
- _.Ok=function(a){for(;_.Fk(a.G)&&!a.Xa.a;)a.Xa.Qd(a.start+a.ve,a.G,a.ng)};_.Pk=function(a){for(var b=_.U(a.G);0<b&&!a.Xa.a;--b)a.Xa.Qd(a.start+a.ve,a.G,a.ng)};_.Qk=function(a){return function(b){var c=b.G.ya()-b.G.getPosition();a(_.Mk(b.G,c))}};Rk=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.Sk=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};_.Tk=function(a){return 8+(a.vi?8:0)+(null!=a.flags?4:0)};Uk=function(){};
117
- Vk=function(a){var b="";try{b=_.yh(a)}catch(c){}return b};_.Wk=function(a){a=Vk(a);var b="";a.length&&(b=(new _.qi(a)).a);return b};Xk=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.vh(a)),d=_.kk(c.sinf[0]);(new _.Nk).M(_.oe,_.Ok).M("schi",_.Ok).M("tenc",function(e){e.G.skip(6);_.Hk(e.G)&&(e.G.skip(1),b=_.mk(_.Mk(e.G,16)));e.Xa.stop()}).parse(d)}catch(e){}return b};
118
- Yk=function(a,b,c){if(!c||!c.byteLength)throw new _.L(_.M,6,6102);var d;typeof b===_.ve?d=_.Ah(b,!0):d=b;a=_.Ah(Vk(a),!0);b=new _.Bk(12+a.byteLength+d.byteLength+c.byteLength,!0);_.T(b,a.byteLength);_.Dk(b,_.N(a));_.T(b,d.byteLength);_.Dk(b,_.N(d));_.T(b,c.byteLength);_.Dk(b,_.N(c));return _.N(b.buffer)};_.Zk=function(a){var b=_.N(a.body);b=_.jk(b);a.headers[va]=ic;a.body=_.zh("spc\x3d"+b).buffer};
119
- _.$k=function(a){try{var b=_.vh(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=th(_.kk(b))};
120
- fl=function(){var a=al;if(a===bl)return"https://lic.drmtoday.com";if(a===dl)return"https://lic.staging.drmtoday.com";if(a===el)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};jl=function(a){var b=fl();if(a==_.Rc)return b+gl;if(a==_.Qc)return b+hl;if(a==_.Pc)return b+il;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
121
- kl=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
122
- _.ml=function(a,b,c){b=Vk(b);c=c&&c.customData?c.customData:{};b=new _.qi(kl(b));var d=ti(b.f);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.Eh(""+a)&&(d.assetId=a,ll.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.Eh(""+e)&&(d.variantId=e,ll.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],ll.debug("KeyId found in FPS SKD. Removing other parameters")):
123
- a=["assetId","variantId"];b.f=_.si(d,!1,a);"/"!==b.path||b.h.includes(b.a+"/")||(b.path="");b=_.ri(b);return c.fpsContentId=b};
124
- _.nl=function(a,b,c,d){d=void 0===d?!0:d;a=a.drm;a&&a.env.startsWith(Ba)?a.customData&&(c=btoa(JSON.stringify({userId:a.customData.userId,sessionId:a.customData.sessionId,merchant:a.customData.merchant})),b.headers["dt-custom-data"]=c,a.customData.authToken&&(b.headers["x-dt-auth-token"]=""+a.customData.authToken),c=b.uris[0],d&&a.customData.assetId&&(c+="?assetId\x3d"+encodeURI(""+a.customData.assetId),a.customData.variantId&&(c+="\x26variantId\x3d"+encodeURI(""+a.customData.variantId)),b.uris[0]=
125
- c)):ll.warn(Ya)};ol=function(a,b,c){_.nl(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.Lg(b.uris[0]);c.a.add(_.Vd,a);b.uris[0]=c.toString()};
126
- _.pl=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.nl(a,b,c,!1);b.headers[va]=ic;c={spc:_.ik(b.body)};if((a=a.drm)&&a.env.startsWith(Ca)&&d){a={};var e=ti((new _.qi(kl(d))).f);d=e.keyId;if(e=e.assetId)ll.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(ll.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(ll.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(ll.info("Adding assetID to FPS payload:",a.assetId),c.assetId=a.assetId)}b.body=
127
- _.Bh(_.si(c,!0))};_.ql=function(a,b){ll.debug("Clearing response data");if(200===b.status){var c=_.vh(b.data).trim();"\x3cckc\x3e"===c.substr(0,5)&&"\x3c/ckc\x3e"===c.substr(-6)&&(c=c.slice(5,-6));b.data=_.kk(c).buffer}};_.rl=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(Ba))ll.warn(Ya);else if(c.customData&&c.customData.merchant&&!c.env.startsWith(Ca)){var d=new _.Lg(b.uris[0]),e=d.pa;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.pa=e;b.uris[0]=d.toString()}};
128
- _.sl=function(a,b){try{var c=_.N(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));ll.debug("Widevine License response",d);var e=atob(d.license),f=new Uint8Array(e.length);for(c=0;c<e.length;++c)f[c]=e.charCodeAt(c);b.data=f.buffer}catch(g){ll.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data")}};ul=function(a){var b={},c=a?a[kf]:void 0;a=tl[a?a[kf]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};vl=function(){};
129
- xl=function(a,b){b=void 0===b?0:b;_.Rf("Registering EME Factory: "+a.a());for(var c={priority:b,Jb:a},d=0;d<wl.length;++d)if(wl[d].priority<b){wl.splice(d,0,c);return}wl.push(c)};
130
- yl=function(a){if(a){var b=wl.find(function(d){return d.Jb.a()===a}).Jb;if(b&&b.ca())return _.Rf(Fb+b.a()),b.create();_.Rf("Cannot create selected EME manager. Choosing by priority list.")}b=_.u(wl);for(var c=b.next();!c.done;c=b.next())if(c=c.value.Jb,c.ca())return _.Rf(Fb+c.a()),c.create();throw Error("Missing EME managers");};_.Al=function(a,b){var c=_.zl(a,b);return 1!=c.length?null:c[0]};
131
- _.zl=function(a,b){return Array.prototype.filter.call(a.childNodes,function(c){return c instanceof Element&&c.tagName==b})};_.Bl=function(a){return Array.prototype.every.call(a.childNodes,function(b){return b.nodeType==Node.TEXT_NODE||b.nodeType==Node.CDATA_SECTION_NODE})?a.textContent.trim():null};
132
- _.Cl=function(a,b){var c=new DOMParser,d=null,e=null;try{e=c.parseFromString(a,_.Ee)}catch(f){}e&&e.documentElement.tagName==b&&(d=e.documentElement);return d&&0<d.getElementsByTagName("parsererror").length?null:d};Dl=function(a,b,c){this.h=new Uint8Array(a);this.a=b;this.f=c};El=function(){Dl.apply(this,arguments)};_.Gl=function(a){var b=_.lk(a);b=parseInt(b.byteLength,10).toString(16);b=_.lk("12"+b+a);return new El(Fl,a,b)};
133
- _.Hl=function(a){function b(r){switch(r){case 0:do if(!_.Fk(d))throw Error("not enough data to skip!");while(_.Hk(d)&128);break;case 1:d.skip(8);break;case 2:d.skip(c());break;case 3:for(;4!==(r=c()&7);)b(r);break;case 5:d.skip(4);break;default:throw Error("invalid wire type "+r);}}function c(){for(var r=_.Hk(d),w=(r&127)>>>0,y=7;128<=r&&28>=y;)r=_.Hk(d),w=(w|(r&(28>y?127:15))<<y)>>>0,y+=7;return 28<y?-1:w}var d=new _.Ek(new DataView(a.buffer,a.byteOffset,a.byteLength),!1);a=_.U(d);var e=_.U(d);e=
134
- _.Sk(e);var f=_.U(d),g=f>>>24;f&=16777215;var h=_.Mk(d,16);h=_.mk(h);if(0<g){var l=_.U(d);d.skip(16*l)}l=_.U(d);for(var m=[],n=null;_.Fk(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=Kk(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.Sf("Parsed WV PSSH Box","size",a,"name",e,"version",g,"flags",f,"size",l,"systemId",h,"contentId (base64)",n?_.ik(n):"","keyIds",m.map(function(r){return _.mk(r)}));return 0<m.length?_.Gl(_.mk(m[0])):null};
135
- _.Il=function(a,b,c,d,e,f){f=void 0===f?null:f;Dl.call(this,a,b,d);this.version=e;this.g=c;this.j=f};
136
- _.Nl=function(a){a:{a=new _.Ek(new DataView(a.buffer),!0);_.U(a);for(_.Ik(a);_.Fk(a);)if(1===_.Ik(a)){var b=_.Ik(a);a=_.Mk(a,b);break a}a=null}b=xh(a,!0);var c=_.Cl(b,"WRMHEADER");b=c.getAttribute("version");var d=_.Al(c,"DATA");c=(c=_.Al(d,"LA_URL"))?_.Bl(c):"";var e;if(e=_.Al(d,"KID"))if(e=_.Bl(e)){var f=_.Al(d,oa);e={value:e,je:f?f.textContent.trim():null}}else e=null;else e=null;d=e?[e]:(e=Jl(d))?[e]:(d=Kl(d))?d:null;e=d&&d[0]||{};d=e.je;e=_.kk(void 0===e.value?"":e.value);e=_.Ll(e);e=_.mk(e);
137
- return new _.Il(_.Ml,e,c,a,b,d)};_.Ll=function(a){var b=[];b.push(a[3]);b.push(a[2]);b.push(a[1]);b.push(a[0]);b.push(a[5]);b.push(a[4]);b.push(a[7]);b.push(a[6]);a=_.N(a);a.set(b,0);return a};Jl=function(a){a=_.Al(a,"PROTECTINFO");if(!a)return null;var b=_.Al(a,"KID");if(!b)return null;a=b.getAttribute("VALUE");if(!a)return null;var c=b.getAttribute(oa);b=b.getAttribute("ALGID");return{value:a,je:c,Jg:b}};
138
- Kl=function(a){a=_.Al(a,"PROTECTINFO");if(!a)return null;a=_.Al(a,"KIDS");if(!a)return null;var b=_.zl(a,"KID");if(!b.length)return null;a=[];b=_.u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;if(c=d.getAttribute("VALUE")){var e=d.getAttribute(oa);d=d.getAttribute("ALGID");a.push({value:c,je:e,Jg:d})}}return a.length?a:null};Ol=function(a){this.f=[];this.g=[];this.a=[];8<=a.byteLength&&(new _.Nk).W("pssh",this.h.bind(this)).parse(a.buffer);0==this.a.length&&_.G("No pssh box found!")};
139
- _.Sl=function(a){var b=this;this.C=a;this.N=new Set;this.B=this.J=this.o=null;this.$=!1;this.f=null;this.K=Pl;this.A=new _.eg;this.R=new pk;this.g=new Map;this.L=[];this.I=new _.Th;this.h=null;this.U=function(c){b.w=!0;b.D=!1;b.I.reject(c);a.onError(c)};this.m=new Map;this.da=new Map;this.aa=new _.Ri(function(){return Ql(b)});this.j=!1;this.Ma=new _.Th;this.F=!1;this.ba=[];this.Sa=!1;this.V=0;this.a=new _.H("clpp.drm.DrmEngine");this.fa=(new _.Ri(function(){Rl(b)})).bb(1);this.I["catch"](function(){});
140
- this.w=this.D=!1;this.T=null};
141
- Ul=function(a){var b,c,d,e,f;return _.B(function(g){switch(g.a){case 1:a.A.release();a.A=null;a.R.release();a.R=null;a.w=!1;a.D=!1;a.I.reject();a.fa.stop();a.fa=null;a.aa.stop();a.aa=null;b=Array.from(a.g.keys());c=_.u(a.g.values());for(d=c.next();!d.done;d=c.next())e=d.value,e.Cc&&e.Cc.stop();a.g.clear();return _.x(g,Promise.all(b.map(function(h){return Promise.resolve().then(function(){var l;return _.B(function(m){if(1==m.a)return a.a.debug("Closing session",h.sessionId),_.zf(m,2),_.x(m,Tl(h),4);
142
- if(2!=m.a)return _.Af(m,0);l=_.Bf(m);a.a.warn("Error while closing session",l);_.z(m)})})})),2);case 2:if(!a.B){g.H(3);break}_.zf(g,4);return _.x(g,a.o.Wc(null),6);case 6:_.Af(g,5);break;case 4:f=_.Bf(g),a.a.warn("Error while resetting media keys",f);case 5:a.B=null;case 3:a.o=null,a.f=null,a.N.clear(),a.J=null,a.L=[],a.h=null,a.U=null,a.C=null,a.V=0,a.T=null,_.z(g)}})};
143
- _.Xl=function(a,b,c){a.K=Vl;a.L=c;a.F=0<c.length;a.a.debug("Using Persisted Licenses: "+a.F);a.h&&a.h.enableSessionCacheForSkd&&a.a.info("Enabled session cache for SKD license requests");return _.Wl(a,b)};
144
- _.Wl=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.K.jf(a.h.Ra);Yl(b,d)}var e=Zl(a);if(e){var f=_.u(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos=[e]}e=_.u(b);for(d=e.next();!d.done;d=e.next())for(d=_.u(d.value.drmInfos),f=d.next();!f.done;f=d.next())$l(f.value,a.h.Ra);d=am(a,b);if(!d.size)return a.$=!0,Promise.resolve();d=_.bm(a,d);return c?d:d["catch"](function(){})};
145
- cm=function(a){var b;return _.B(function(c){switch(c.a){case 1:if(a.o.Fd())return c["return"]();if(!a.T){c.H(2);break}return _.x(c,a.T,3);case 3:return c["return"]();case 2:return _.zf(c,4),a.T=a.o.Wc(a.J),_.x(c,a.T,6);case 6:_.Af(c,0);break;case 4:b=_.Bf(c);if(a.j)return c["return"]();a.U(new _.L(_.M,6,6003,b.message,b));_.z(c)}})};
146
- em=function(a,b){return _.B(function(c){if(1==c.a)return a.a.info("Handle encrypted event for type "+b.initDataType),_.x(c,cm(a),2);if(!b.initData)return c["return"]();_.dm(a,b.initDataType,_.N(b.initData));_.z(c)})};
147
- _.jm=function(a,b){if(!a.J)return _.fg(a.A,b,[ed,"msneedkey",ef,"needkey"],function(){a.U(new _.L(_.M,6,6010))}),Promise.resolve();a.B=b;a.o.wd(b);a.A.one(a.B,_.Yd,function(){return fm(a)});a.A.on(a.B,_.$e,function(e){var f=a.D;a.D=!a.w;!f&&a.D&&(a.a.info("Waiting for DRM license key delivery"),a.C.onEvent(e))});var c=a.f.initData.find(function(e){return 0<e.initData.length}),d=Promise.resolve();if(c||a.o.Vc()!==mb||a.L.length)d=cm(a);c=Promise.resolve();_.ai()&&38===Vi().major||(a.f&&a.f.keySystem!==
148
- _.Sd&&!a.f.serverCertificate&&(c=gm(a)),c=c.then(function(){return _.hm(a)}));return Promise.all([d,c]).then(function(){a.j||(_.im(a),a.A.on(a.B,ed,function(e){return em(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.f&&a.f.keySystem===_.Rc&&1>a.V&&a.f.serverCertificate&&a.f.serverCertificate.length)return a.a.warn("Detected invalid widevine server certificate!. Retrying"),a.U(new _.L(1,6,6004)),a.f.serverCertificate=null,a.V++,_.jm(a,b);1<=a.V&&a.a.info("Could not get valid widevine server certificate. Giving up");
149
- throw e;}})};_.hm=function(a){var b,c;return _.B(function(d){if(1==d.a){if(!(a.J&&a.f&&a.f.serverCertificate&&a.f.serverCertificate.length))return d.H(0);_.zf(d,3);return _.x(d,a.J.setServerCertificate(a.f.serverCertificate),5)}if(3!=d.a)return b=d.f,void 0===b||b||a.a.debug("Server certificates are not supported by the key system. The server certificate has been ignored."),_.Af(d,0);c=_.Bf(d);throw new _.L(_.M,6,6004,{browserError:c.message});})};
150
- gm=function(a){var b=a.keySystem(),c=a.h.Ra[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.C.getConfiguration();return km(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,h=f&&f.certificateResponse;f=_.Oh([d],a.h.attemptParameters);f.type=3;f.licenseRequestType=Cc;g&&f.requestModifiers.push(function(l){return g(e,l)});h&&f.responseModifiers.push(function(l){return h(e,l)});a.a.debug("Fetching certificate");return a.C.Ab.fetch(f).P}).then(function(f){a.f.serverCertificate=
151
- _.N(f.data)})["catch"](function(f){var g=f.data.headers;g=Object.assign({message:"Error while fetching certificate!",url:f.data.url,status:f.data.status,response:f.data.response},g?{headers:g}:{},ul(g));throw new _.L(_.M,6,6100,g,f);})};km=function(a,b){var c,d;return _.B(function(e){c=a.C.Gc();return c?(d=b&&b.drm&&b.drm.customData)?_.x(e,c(d),0):e["return"]():e["return"]()})};lm=function(a,b){if(!a)return!1;for(var c=0;c<b.Bd.length;c++)if(_.nk(a,b.Bd[c]))return!0;return!1};
152
- _.im=function(a){for(var b=a.f?a.f.initData||[]:[],c=_.u(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=!_.$h(2);if(a.h.enforceSingleSession&&!a.keySystem().startsWith(_.Pc)){var f=a.g.values();f=_.u(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.nk(d.initData,g.initData)?(a.a.info("Skipping Session creation. Existing init data in single session mode!"),e=!1):g.periodId===d.periodId&&(a.a.info("Skipping Session creation. Merging init data for period in single session mode for Key ID "+(d.keyId+
153
- ".")),lm(d.initData,g)||(g.Bd.push(d.initData),d.keyId&&!g.cb.includes(d.keyId)&&g.cb.push(d.keyId),a.m.get(d.keyId)||a.m.set(d.keyId,te)),e=!1)}!e||a.F&&a.K===Vl||(_.mm(a,d.keyId,d.initData)&&(e=!1),e&&(a.a.info("Request new media key session on create"),nm(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.u(a.L);for(d=c.next();!d.done;d=c.next())_.om(a,d.value);b.length||a.L.length||(a.w||a.a.info(za),a.w=!0,a.D=!1,a.I.resolve());return a.I};
154
- _.dm=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.F||a.K!==Vl)){var e=a.keySystem();if(!e.startsWith(_.Pc)){var f=new Ol(c);if(1<f.a.length&&(e={"org.w3.clearkey":"1077efecc0b24d02ace33c1e52e2fb4b","com.widevine.alpha":"edef8ba979d64acea3c827dcd51d21ed","com.microsoft.playready":"9a04f07998404286ab92e65be0885f95","com.adobe.primetime":"f239e769efa348509c16a903c6932efb"}[e]))for(var g=0;g<f.f.length;g++)if(e===f.f[g]){c=c.subarray(f.a[g].start,f.a[g].end+1);break}}(a.B.webkitCurrentPlaybackTargetIsWireless||
155
- _.$h(2)||a.keySystem().startsWith(_.Pc)||!_.mm(a,d,c,!0))&&nm(a,d,null,b,c)}};
156
- _.mm=function(a,b,c,d){d=void 0===d?!1:d;for(var e=_.u(a.g.keys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.g.get(f);if(_.nk(c,g.initData))return b?g.cb.includes(b)?d&&a.a.info("Skipping Session creation. License for init data with Key ID "+(b+" was already requested in Session: '")+(f.sessionId+"'. ")):(g.cb.push(b),a.m.get(b)||a.m.set(b,te),d&&a.a.info(tb+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.a.info(tb+(f.sessionId+"'")),!0;if(lm(c,g))return d&&a.a.info("Skipping Session creation. License for init data was already requested [extra]"),
157
- !0}return!1};pm=function(a){var b=Infinity;a=a.g.keys();a=_.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,isNaN(c.expiration)||(b=Math.min(b,c.expiration));return b};
158
- am=function(a,b){for(var c=new Set,d=_.u(b),e=d.next();!e.done;e=d.next()){var f=_.u(e.value.drmInfos);for(e=f.next();!e.done;e=f.next())c.add(e.value)}d=_.u(c);for(e=d.next();!e.done;e=d.next())$l(e.value,a.h.Ra);f=a.F?_.he:_.Rd;var g=a.F?[_.Wd]:[Be];d=new Map;c=_.u(c);for(e=c.next();!e.done;e=c.next())e=e.value,d.set(e.keySystem,{initDataTypes:[_.Ac],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.Rd,persistentState:f,sessionTypes:g,label:e.keySystem,drmInfos:[]});c={};f=_.u(b);
159
- for(e=f.next();!e.done;c={Wd:c.Wd,ce:c.ce},e=f.next()){e=e.value;g=e.audio;var h=e.video;c.Wd=g?_.Oi(g.mimeType,g.codecs):"";c.ce=h?_.Oi(h.mimeType,h.codecs):"";var l={},m=_.u(e.drmInfos);for(e=m.next();!e.done;l={Gb:l.Gb},e=m.next())e=e.value,l.Gb=d.get(e.keySystem),l.Gb.drmInfos.push(e),e.initData&&e.initData.length&&(l.Gb.initDataTypes=_.mf(new Set(e.initData.map(function(n){return n.initDataType}))).concat()),e.distinctiveIdentifierRequired&&(l.Gb.distinctiveIdentifier=_.he),e.persistentStateRequired&&
160
- (l.Gb.persistentState=_.he),g&&_.Fg(e.audioRobustness).forEach(function(n,p){return function(q){p.Gb.audioCapabilities.push({robustness:q||"",contentType:n.Wd})}}(c,l)),h&&_.Fg(e.videoRobustness).forEach(function(n,p){return function(q){p.Gb.videoCapabilities.push({robustness:q||"",contentType:n.ce})}}(c,l))}return d};
161
- _.bm=function(a,b){function c(n,p,q){p.drmInfos.some(function(r){return!!r.licenseServerUri})==n&&(g=g["catch"](function(){if(a.j)return null;if(q===_.Qc){var r=a.C.getConfiguration();if(!_.Ti()||r.streaming.patchEdgeWhenMixedContent||a.h.Ra[q].useLegacySystem)d(p);else return a.o.Ac("com.microsoft.playready.recommendation",[p])["catch"](function(){d(p);return a.o.Ac(q,[p])})}return a.o.Ac(q,[p])}))}function d(n){for(var p=_.u(n.audioCapabilities),q=p.next();!q.done;q=p.next())delete q.value.robustness;
162
- n=_.u(n.videoCapabilities);for(p=n.next();!p.done;p=n.next())delete p.value.robustness}if(1==b.size&&b.has(""))return Promise.reject(new _.L(_.M,6,6E3));null===a.o&&(a.o=yl(a.h.emeApi));for(var e=_.u(b.values()),f=e.next();!f.done;f=e.next())f=f.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;var g=e=new _.Th,h=a.h.preferredDrmSystem;if(!h)if(f=_.bi(),f.os===oj&&10<=f.osVersion.major&&"edge"===f.browser)h=_.Qc;else if("safari"===
163
- f.browser)h=_.Pc;else if(f.browser===Ec||"firefox"===f.browser)h=_.Rc;h&&(f=b.get(h))&&(c(!0,f,h),c(!1,f,h));f={};for(var l=_.u([!0,!1]),m=l.next();!m.done;f={ae:f.ae},m=l.next())f.ae=m.value,b.forEach(function(n){return function(p,q){q!==h&&c(n.ae,p,q)}}(f));g=g["catch"](function(n){throw new _.L(_.M,6,6001,null,n);});g=g.then(function(n){if(a.j)return null;a.N.clear();var p=n.getConfiguration();a.a.debug("Got MediaKeySystemAccess with configuration",p);var q=p.videoCapabilities||[],r=_.u(p.audioCapabilities||
164
- []);for(p=r.next();!p.done;p=r.next())a.N.add(p.value.contentType);q=_.u(q);for(p=q.next();!p.done;p=q.next())a.N.add(p.value.contentType);q=n.keySystem;p=b.get(_.qm(n.keySystem));r=[];var w=[],y=[],A=[];rm(p.drmInfos,r,w,y,A);1<w.length&&_.G("Multiple unique server certificates found! Only the first will be used.");1<r.length&&_.G("Multiple unique license server URIs found! Only the first will be used.");a.f={keySystem:q,licenseServerUri:r[0],distinctiveIdentifierRequired:p.distinctiveIdentifier==
165
- _.he,persistentStateRequired:p.persistentState==_.he,audioRobustness:p.audioCapabilities?p.audioCapabilities[0].robustness:"",videoRobustness:p.videoCapabilities?p.videoCapabilities[0].robustness:"",serverCertificate:w[0],initData:y,keyIds:A,periodId:null};if(!a.f.licenseServerUri)throw new _.L(_.M,6,6012,a.f.keySystem);return n.createMediaKeys()}).then(function(n){a.j||(a.a.info("Created MediaKeys for key system",a.f.keySystem),a.J=n,a.$=!0)})["catch"](function(n){if(!a.j){a.f=null;a.N.clear();if(n instanceof
51
+ _.Gh=function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.K.isNaN(b))return"";a="bps";1E3<=Math.abs(b)&&(a="Kbps",b/=1E3);1E3<=Math.abs(b)&&(a="Mbps",b/=1E3);return b.toFixed(2).replace(/[.,]00$/,"")+a}catch(c){return""}};_.Ih=function(a){a=a.replace(/<[^>]+>/gi,"");Hh.innerHTML=a;a=Hh.textContent;return a=a.replace(/<[^>]+>/gi,"")};_.Kh=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0,fatalStatusCodes:_.mf(Jh).concat()}};
52
+ Lh=function(a,b){a.timeout=b.timeout;a.baseDelay=b.baseDelay;a.backoffFactor=b.backoffFactor;a.fuzzFactor=b.fuzzFactor;a.maxAttempts=b.maxAttempts;a.fatalStatusCodes=b.fatalStatusCodes||_.mf(Jh).concat()};
53
+ _.Nh=function(a,b){_.K.Y(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.Mh,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||
54
+ [],responseModifiers:a.responseModifiers||[],startTime:a.startTime||null,endTime:a.endTime||null,contentType:a.contentType||null,licenseRequestType:a.licenseRequestType||null,sessionId:null,bytesRemaining:-1,bytesLoaded:-1,bytesTotal:-1,timescale:a.timescale||null,rateLimitBps:a.rateLimitBps||null,disableFragmentSupport:a.disableFragmentSupport||!1,disableMergedFragments:a.disableMergedFragments||!1,fatalStatusCodes:_.mf(Jh).concat()};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&Lh(c,b);return c};
55
+ _.Oh=function(a,b,c,d,e,f,g){e&&(d=e);e={uri:d,data:b||new ArrayBuffer(0),headers:a,status:c,fromCache:!!a["x-shaka-from-cache"],timeMs:g,request:f};if(200<=c&&299>=c&&202!==c)return e;g=null;try{g=_.yh(b,!0)}catch(h){}_.Sf("HTTP error text:",g);throw new _.L(0<=(f.fatalStatusCodes||[]).indexOf(c)?_.M:1,1,1001,{url:d,status:c,responseText:g,headers:a,request:f,response:e});};Ph=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};
56
+ Qh=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};Rh=function(a,b,c){if(0>=a)return Promise.resolve();var d=8*c/a-b/1E3;return 0<d?new Promise(function(e){setTimeout(e,1E3*d)}):Promise.resolve()};_.Sh=function(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c};_.Th=function(a,b){this.O=a;this.w=b;this.a=!1};Uh=function(a,b){a.O.then(function(){return b(!0)},function(){return b(!1)});return a};
57
+ Vh=function(a,b,c){try{var d=a(b);if(d&&d.O&&d.abort)return c.resolve(d.O),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){})["catch"](function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}};_.Wh=function(){this.a=[]};_.Xh=function(a,b){a.a.push(Uh(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};
58
+ _.di=function(){this.f=[];this.g=[];this.m=!1;this.j=new _.Wh;this.a={};this.h=0;this.a.data=Yh;!window.fetch||!window.AbortController||_.Zh(6)||_.$h()&&68<_.ai().browserVersion.major?(this.a.http=bi,this.a.https=bi):(this.a.http=ci,this.a.https=ci)};ei=function(a,b){var c;return _.A(function(d){if(1==d.a)return _.x(d,a.fetch(b),2);c=d.f;return d["return"](_.vh(c.data))})};
59
+ fi=function(a,b,c,d){d=void 0===d?"HEAD":d;var e,f;return _.A(function(g){switch(g.a){case 1:if(!navigator.onLine)return g["return"](!1);if(!b){g.G(2);break}e=_.Nh(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.zf(g,4);return _.x(g,a.fetch(e).O,6);case 6:_.Af(g,2);break;case 4:if(f=_.Bf(g),1002===f.code||1003===f.code)return g["return"](!1);case 2:return g["return"](!0)}})};
60
+ _.gi=function(a,b){this.id=a;this.type=b;this.roles=[];this.channelsCount=this.src=this.mimeType=this.frameRate=this.label=this.language=this.kind=null;this.renditions=[];this.accessibility=[]};_.hi=function(a){return a&&a!==_.Ie?a:null};
61
+ ki=function(a){if(!a)throw new _.L(_.M,3,3101,Qa+a);if(!_.K.Y(a))throw new _.L(_.M,3,3101,Qa+a+". Track type must be a string!");switch(a.toLowerCase()){case _.P:return _.P;case _.Q:return _.Q;case _.ii:return _.ii;case ji:return ji}throw new _.L(_.M,3,3101,"Unknown track type: "+a+".");};mi=function(a,b){a=ki(a);var c=_.hi(b.kind),d=b.id;d||(d=String(_.li++));d=new _.gi(d,c===_.Cd?ji:a);d.kind=c;d.label=_.hi(b.label);d.language=_.hi(b.language);return d};
62
+ ni=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};_.oi=function(a,b){this.track=b;this.id=a;this.originalId=this.drm=this.drmInfo=this.codec=this.Qc=this.bandwidth=this.height=this.width=null};
63
+ _.pi=function(a){this.h=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;_.Ch(this.path,
64
+ "/")||(this.path="/"+this.path);this.f=b.search;this.g=b.hash};_.qi=function(a){return a.scheme+"//"+(a.a+(a.port?":"+a.port:"")+a.path+a.g+a.f)};_.ri=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)},""):""};
65
+ si=function(a){var b={};a=a||"";a=a.substring(a.indexOf("?")+1);a=_.u(a.split("\x26"));for(var c=a.next();!c.done;c=a.next()){var d=c.value.split("\x3d");c=decodeURIComponent(d[0]);d=decodeURIComponent(d[1]||"");c&&(b[c]=d)}return b};ti=function(a,b){return a.startsWith("http:://")||a.startsWith("https:://")?a:(new URL(a,b)).toString()};
66
+ ui=function(a){this.g=a;this.a=new _.H("clpp.native.hls.HlsMetadataParser");this.f=Jg(this.h.bind(this),function(b,c){return b[0]===c[0]&&b[1].enableHlsVideoTrackInfo===c[1].enableHlsVideoTrackInfo&&b[1].enableMetadata===c[1].enableMetadata})};
67
+ xi=function(a,b,c){var d,e,f,g,h;return _.A(function(l){if(1==l.a)return _.x(l,vi(a,b,c),2);d=l.f;e=d.mimeType;f=d.renditions;g=new _.gi("dummy",_.ii);h=f.map(function(m,n){var p=new _.oi("R"+n,g);p.bandwidth=m.bandwidth;p.Qc=m.Qc;p.codec=m.codec;p.width=m.width;p.height=m.height;return p});wi(h);return l["return"]({renditions:h,mimeType:e||void 0})})};
68
+ zi=function(a){a=a.split("\n").filter(function(c){return c.trim().startsWith("#EXT-X-MEDIA:")}).map(function(c){return yi(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};
69
+ yi=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.jh(0,a);a=b("TYPE");a=null!=a?{AUDIO:_.Q,VIDEO:_.ii,SUBTITLES:_.P}[a]:void 0;return{type:a,groupId:b(_.La),name:b("NAME"),language:b("LANGUAGE"),jk:b("AUTOSELECT"),"default":b("DEFAULT"),rk:b("FORCED"),rf:b("CHARACTERISTICS"),uri:b(_.ub)}};wi=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.");};
70
+ Ai=function(a,b){var c,d;return _.A(function(e){if(1==e.a)return c=_.Nh(b),_.x(e,ei(a.g,c),2);d=e.f;return e["return"](d)})};vi=function(a,b,c){var d,e,f,g;return _.A(function(h){if(1==h.a)return d=Bi(b),e=Ci(b,c),f=d[0]?d[0].codec:null,_.x(h,Di(a,e,f),2);g=h.f;return h["return"]({mimeType:g,renditions:d})})};Di=function(a,b,c){var d,e;return _.A(function(f){if(1==f.a)return b&&c?_.x(f,Ai(a,b),2):f["return"](null);d=f.f;e=[Ei(d,b),Fi(d,b)].filter(Boolean);return f["return"](_.ah(e,_.Re,c))})};
71
+ Bi=function(a){return a.split("\n").filter(function(b){return b.trim().startsWith("#EXT-X-STREAM-INF:")}).map(function(b){var c=_.jh(0,b);if(c.getAttribute("VIDEO"))throw Error("Playlist contains alternative video streams.");var d=_.dh(c,_.ib);b=d?Number(d.split("x")[0]):null;d=d?Number(d.split("x")[1]):null;var e=_.dh(c,_.la);e=e?Number(e):null;var f=_.dh(c,"AVERAGE-BANDWIDTH");f=f?Number(f):null;c=_.dh(c,_.na);c=_.Yg(_.Re,c?c.split(","):[]);return{bandwidth:e,Qc:f,codec:c,width:b,height:d,mimeType:null}})};
72
+ Ci=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?ti(c,b):null};Ei=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?ti(c,b):null};Fi=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.dh(_.jh(0,c),_.ub))?ti(c,b):null:null};
73
+ _.Hi=function(a,b,c){for(var d=_.u(_.Gi),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.Ii=function(a){a=_.Gi.indexOf(a);0<=a&&_.Gi.splice(a,1)};_.R=function(){};_.Ki=function(a,b){a=_.Ji(a);b=_.Ji(b);return a.split("-")[0]==b.split("-")[0]};_.Ji=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Li.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};_.Pi=function(a,b){var c=a;b&&(c+='; codecs\x3d"'+b+'"');return c};
74
+ _.Qi=function(a){this.f=a;this.a=null};Ri=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};_.Si=function(a){this.f=a;this.a=null};Ti=function(){};_.Ui=function(){return!!navigator.userAgent.match(/Edge?\//)};_.Zh=function(a){return _.Vi("Tizen"+(a?" "+String(a):""))};_.$h=function(){return _.Vi("Web0S")};_.Xi=function(){return _.$h()&&79===Wi().major};_.Yi=function(){return _.Vi("CrKey")};
75
+ _.Zi=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.Zh()};_.$i=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.Zi()&&1<navigator.maxTouchPoints};_.aj=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};_.Vi=function(a){return(navigator.userAgent||"").includes(a)};
76
+ dj=function(){if(bj)return bj;cj||(cj=new _.Si(function(){bj=null}));(bj=document.querySelector(_.Re)||document.querySelector(_.kc))||(bj=document.createElement(_.Re));cj.Z(1);return bj};hj=function(a,b){try{return parseInt(b,10)}catch(c){ej.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
77
+ ij=function(a){var b={major:-1,name:Je};if(!a)return b;var c=a.replace(/_/g,".");b.name=c;c=c.split(".");1<=c.length&&(b.major=hj(a,c[0]));2<=c.length&&(b.minor=hj(a,c[1]));3<=c.length&&(b.patch=hj(a,c[2]));4<=c.length&&(b.build=hj(a,c[3]));return b};jj=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};
78
+ tj=function(){var a=kj();if(!a)return lj;var b=a.match(/^.+?(?=\))/);if(!b)return lj;b=b[0];if(jj(b,["iphone","ipad"]))return mj;if(jj(b,["android"]))return nj;if(jj(b,["macintosh"]))return oj;if(jj(b,["windows nt"]))return pj;if(jj(b,["tizen"]))return qj;if(jj(b,["web0s"]))return rj;if(jj(b,["linux"]))return sj;ej.warn("Unable to identify OS from user agent: "+a);return lj};
79
+ Wi=function(){var a=kj(),b=["ie","edge","opera","firefox","safari",Gc];var c=tj();for(var d=uj[c],e=0,f=b.length;e<f;e++)if(c=d[b[e]]&&a.match(d[b[e]]))return ij(c[1]);return ij("")};kj=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
80
+ _.ai=function(){var a=tj();var b=tj();var c=uj[b];if(c){c=kj().match(c.os_version)[1];c=ij(c);if(b===pj)if("5.1"===c.name)c.name="xp";else if("6.1"===c.name)c.name="7";else if("6.2"===c.name||"6.3"===c.name)c.name="8";b=c}else b=ij("");a:{c=kj();var d=["ie","edge","opera","firefox","safari",Gc],e=tj();e=uj[e];for(var f=0,g=d.length;f<g;f++)if(e[d[f]]&&c.match(e[d[f]])){c=d[f];break a}c=vj}return{os:a,osVersion:b,browser:c,browserVersion:Wi()}};
81
+ wj=function(){this.a=new _.H("clpp.native.TrackManager");this.l=null;this.g=new _.eg;this.h=[];this.B=0;this.o={};this.D=[];this.f=new Map;this.w=null;this.m=new Map;this.A=!0;this.J=this.Me.bind(this,_.P);this.M=this.Oe.bind(this,_.P);this.K=this.Ne.bind(this,_.P);this.P=this.Me.bind(this,_.ii);this.U=this.Oe.bind(this,_.ii);this.S=this.Ne.bind(this,_.ii);this.F=this.Me.bind(this,_.Q);this.I=this.Oe.bind(this,_.Q);this.H=this.Ne.bind(this,_.Q);this.j=null};
82
+ yj=function(a,b){var c,d,e,f,g,h,l,m;return _.A(function(n){if(1==n.a){c=a.l.getConfiguration();d=_.Hi(c,b.mimeType,_.De);if(!d)return a.a.warn("Track mimetype is not supported",b),n["return"]();e=_.Nh(b.url);return _.x(n,a.l.getNetworkEngine().fetch(e).O,2)}(f=n.f)&&f.data&&(g="External_"+a.B++,a.o[g]=b,h=d.a(_.N(f.data)),l=URL.createObjectURL(new Blob([h])),m={url:l,kind:b.kind,language:b.language,label:b.label,mimeType:_.De},xj(a,m,g));_.y(n)})};Aj=function(a,b,c){return zj(a)&&b===_.ii&&!!c.enableHlsVideoTrackInfo};
83
+ Bj=function(a,b,c){return zj(a)&&(b===_.Q||b===_.P)&&!!c.enableMetadata};zj=function(a){a=a.l.getLoadedSource();return!(!a||a.type!==_.Cj&&!a.url.endsWith(".m3u8"))&&_.Zi()};Dj=function(a,b,c){var d,e;return _.A(function(f){if(1==f.a)return(d=a.l.getLoadedSource())&&a.j?_.x(f,a.j.f(d.url,c),2):f["return"]();e=f.f;e.mimeType&&(b.mimeType=e.mimeType);e.renditions&&0<e.renditions.length&&(b.renditions=e.renditions,b.renditions.forEach(function(g){g.track=b}));_.y(f)})};
84
+ Ej=function(a,b,c){var d,e,f,g;return _.A(function(h){if(1==h.a)return(d=a.l.getLoadedSource())&&a.j?_.x(h,a.j.f(d.url,c),2):h["return"]();e=h.f;e.Uf&&(f=b.type+":"+b.label,(g=e.Uf.get(f))&&g.rf&&(b.accessibility=g.rf.split(",").map(function(l){return l.trim()}).map(function(l){return{value:l,type:b.type,protocol:"HLS"}})));_.y(h)})};
85
+ xj=function(a,b,c){if(a.l){var d=a.l.getSurface().getMedia();if(d){var e=document.createElement("track");e.id=c;e.kind=b.kind;e.srclang=b.language;b.label&&(e.label=b.label);e.src=_.Fh(b.url)?URL.createObjectURL(new Blob([])):b.url;d.appendChild(e);a.D.push(e)}}};Fj=function(a,b){if(!a.l)return null;var c=a.l.getSurface();if(!c)return null;c=c.getMedia();if(!c)return null;switch(b){case _.Q:return c.audioTracks;case _.ii:return c.videoTracks;case _.P:return c.textTracks;default:return null}};
86
+ Gj=function(a,b){var c=Fj(a,b);c&&(c=Array.from(c),b===_.P&&(c=c.filter(function(d){return d.kind!==_.Cd})));return c};Hj=function(a,b){return a.h.filter(function(c){return c.type===b})};Ij=function(a,b){var c=a.f.get(b)||null;return c&&c.renditions[0]};Jj=function(a,b){var c=a.m.get(b);return c&&c.renditions[0]};
87
+ Nj=function(a,b,c){var d=Gj(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.a.debug("Activate track type "+b+" with ID: "+c.id);if(d){a.m.set(b,c);var e=!0,f=!1;switch(b){case _.P:var g="mode";e=_.ne;f=_.Yc;break;case _.Q:g="enabled";break;case _.ii:g="selected"}if(g){d=_.u(d);for(var h=d.next();!h.done;h=d.next())h=h.value,h[g]=Kj(c,h,c.type)?e:
88
+ f}}}else if(a.a.debug(_.Ea+b),a.f.get(b)&&d&&b===_.P){g=_.u(d);for(h=g.next();!h.done;h=g.next())h.value.mode=_.Yc;a.f.set(b,null)}b===_.Q?a.l.trigger(new _.J(_.Lj)):b===_.P&&a.l.trigger(new _.J(_.Mj))};Oj=function(a){return a.enabled||a.selected||a.mode===_.ne||a.mode===_.nd};
89
+ Pj=function(a,b,c){c=_.Fg(c).filter(function(e){return e});a.a.info("Find preferred tracks for",b,c);var d=Hj(a,b);c.some(function(e){var f=_.Ji(e);return(e=d.find(function(g){g=_.Ji(g.language||"");return _.Ki(f,g)}))?(a.a.info("Will select track with id",e.id),Nj(a,b,e),!0):!1})};Qj=function(a){(a=a.l.getTextDisplayer())&&a.remove(0,Infinity)};
90
+ Kj=function(a,b,c){return a.type!==c?!1:void 0!==b.id&&null!==b.id&&""!==b.id?a.id===b.id:_.K.va(a,{kind:_.hi(b.kind),language:_.hi(b.language),label:_.hi(b.label)},["kind","language","label"])};_.Rj=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};_.Sj=function(){this.bd=new dg(this);this.Zc=[]};Uj=function(a){return a.name===bb&&Tj.some(function(b){return a.message.startsWith(b)})};Vj=function(){};
91
+ _.Yj=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.$i()&&(a=360);var b=_.Kh();b.maxAttempts=3;a={source:"",license:Wj,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,manifest:{attemptParameters:_.Kh(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,
92
+ restrictions:Xj(a)},drm:null,enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:"main",preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],volume:null,startTime:null,loop:!1,lowLatencyMode:!1,suggestedPresentationDelay:void 0,muted:void 0,forceWaitForTracks:!1,streaming:{attemptParameters:b,bufferingGoal:10,rebufferingGoal:2,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,relativeTextTimestamp:!1,startAtSegmentBoundary:!1,
93
+ gapDetectionThreshold:.1,smallGapLimit:.5,jumpLargeGaps:!0,durationBackoff:1,maxSegmentToMediaOffset:1,forceNativeTS:!1,preferNativeHlsOnSafari:!0,safeSeekOffset:5,stallEnabled:!0,stallThreshold:3,stallSkip:.5,bufferLimitUpdateInterval:.5,overridePasp:!1,enableLiveEdgeChasing:!1,chasingRate:1.15,startChasingAt:5,stopChasingAt:2,chaseJumpDistance:10,patchEdgeWhenMixedContent:!1,ignoreDrift:!1,disableFragmentSupport:!1,disableMergedFragments:!1},restrictions:Xj(),tizen:{sideStreamText:_.Zh(2)},safari:{enableHlsVideoTrackInfo:!1,
94
+ enableMetadata:!0}};if(_.Vi("Edge/")||_.Zh())a.streaming.gapDetectionThreshold=.5;_.$h()&&(a.streaming.stallEnabled=!1);_.Xi()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=.02);_.Zh()&&(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};
95
+ _.ak=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(!b)return _.Yj();c=[_.Yj()];var d=!1;b=_.u(b);for(var e=b.next();!e.done;e=b.next())e=e.value,null!==e&&void 0!==e&&(_.K.Y(e)&&(e={source:e}),e.lowLatencyMode&&!d&&(c.push({suggestedPresentationDelay:0,streaming:{rebufferingGoal:.1,bufferLimitUpdateInterval:.01,attemptParameters:{maxAttempts:3,baseDelay:250,backoffFactor:1}},abr:{bandwidthUpgradeTarget:.6,bandwidthDowngradeTarget:.95},manifest:{hlsLowLatency:!0}}),d=!0),
96
+ c.push(e));c=_.K.Va.apply(null,c);_.K.Y(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.K.R(c.volume)&&(!_.K.la(c.volume)||_.K.isNaN(c.volume)))throw new _.L(_.M,7,7100,"config.volume is not a number");if(!_.K.R(c.preferredTextLanguage)&&!_.K.Y(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.L(_.M,7,7100,"config.preferredTextLanguage is not a string or an array");if(!_.K.R(c.preferredAudioLanguage)&&!_.K.Y(c.preferredAudioLanguage)&&!Array.isArray(c.preferredAudioLanguage))throw new _.L(_.M,
97
+ 7,7100,"config.preferredAudioLanguage is not a string or an array");if(!_.K.R(c.preferredAudioCodec)&&!_.K.Y(c.preferredAudioCodec)&&!Array.isArray(c.preferredAudioCodec))throw new _.L(_.M,7,7100,"config.preferredAudioCodec is not a string or an array");if(!_.K.R(c.preferredVideoCodec)&&!_.K.Y(c.preferredVideoCodec)&&!Array.isArray(c.preferredVideoCodec))throw new _.L(_.M,7,7100,"config.preferredVideoCodec is not a string or an array");if(!_.K.R(c.drm)){if(c.drm.env&&!_.K.Y(c.drm.env))throw new _.L(_.M,
98
+ 7,7100,"config.drm.env is not a string");if(c.drm.offlineId&&!_.K.Y(c.drm.offlineId))throw new _.L(_.M,7,7100,"config.drm.offlineId is not a string");}if(d=c.streaming){d.bufferingGoal=Number(d.bufferingGoal);d.rebufferingGoal=Number(d.rebufferingGoal);d.bufferBehind=Number(d.bufferBehind);d.smallGapLimit=Number(d.smallGapLimit);d.durationBackoff=Number(d.durationBackoff);if(!_.K.la(d.bufferingGoal)||_.K.isNaN(d.bufferingGoal))throw new _.L(_.M,7,7100,"config.streaming.bufferingGoal is not a number");
99
+ if(!_.K.la(d.rebufferingGoal)||_.K.isNaN(d.rebufferingGoal))throw new _.L(_.M,7,7100,"config.streaming.rebufferingGoal is not a number");if(d.rebufferingGoal>d.bufferingGoal)throw new _.L(_.M,7,7100,"config.streaming.rebufferingGoal must be \x3e\x3d bufferingGoal");if(!_.K.la(d.bufferBehind)||_.K.isNaN(d.bufferBehind))throw new _.L(_.M,7,7100,"config.streaming.bufferBehind is not a number");if(!_.K.la(d.smallGapLimit)||_.K.isNaN(d.smallGapLimit))throw new _.L(_.M,7,7100,"config.streaming.smallGapLimit is not a number");
100
+ if(!_.K.la(d.durationBackoff)||_.K.isNaN(d.durationBackoff))throw new _.L(_.M,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.K.R(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.k)throw new _.L(_.M,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");Zj(c.restrictions);Zj(c.abr.restrictions);c.abr.initialRestrictions&&Zj(c.abr.initialRestrictions)}return c};
101
+ Xj=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}};
102
+ Zj=function(a){_.K.R(a.maxPixels)&&(a.maxPixels=Infinity);_.K.R(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.K.R(a.maxHeight)&&(a.maxHeight=Infinity);_.K.R(a.maxWidth)&&(a.maxWidth=Infinity);_.K.R(a.minPixels)&&(a.minPixels=0);_.K.R(a.minBandwidth)&&(a.minBandwidth=0);_.K.R(a.minHeight)&&(a.minHeight=0);_.K.R(a.minWidth)&&(a.minWidth=0);a.minWidth=Number(a.minWidth);a.maxWidth=Number(a.maxWidth);a.minHeight=Number(a.minHeight);a.maxHeight=Number(a.maxHeight);a.minBandwidth=Number(a.minBandwidth);
103
+ a.maxBandwidth=Number(a.maxBandwidth);a.minPixels=Number(a.minPixels);a.maxPixels=Number(a.maxPixels);if(Number.isNaN(a.minWidth)||Number.isNaN(a.maxWidth)||Number.isNaN(a.minHeight)||Number.isNaN(a.maxHeight)||Number.isNaN(a.minBandwidth)||Number.isNaN(a.maxBandwidth)||Number.isNaN(a.minPixels)||Number.isNaN(a.maxPixels))throw new _.L(_.M,7,7100,"Restrictions contain NaN");};_.bk=function(a){return typeof a===_.Ld&&!Array.isArray(a)&&"source"in a};
104
+ _.ck=function(a){_.Sj.call(this);this.log=new _.H(a);this.configuration=this.zd=_.Yj();this.o=this.B=null;this.Ld=this.ye=!1;this.vg=new _.H("clpp.video.events");this.Rc=null;this.Cd=-1;this.Pj=this.Aj.bind(this);this.Xf=new _.di;this.K=new _.eg;this.Ra=this.Cc=this.J=null};_.ek=function(a){return _.dk.get(a)||null};_.gk=function(a){_.dk.get(a.id())?fk.warn("Component already in use."):_.dk.set(a.id(),a)};hk=function(a){for(var b=_.u(_.dk.values()),c=b.next();!c.done;c=b.next())a(c.value)};_.ik=function(){};
105
+ _.kk=function(a,b){var c=void 0==b?!0:b,d=_.jk(a).replace(/\+/g,"-").replace(/\//g,"_");return c?d:d.replace(/[=]*$/,"")};_.lk=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};_.mk=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};
106
+ _.nk=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};_.ok=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};_.pk=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};_.jk=function(a){a=uh(_.N(a));return btoa(a)};
107
+ qk=function(){this.a=this.f=null;this.g=new _.H("clpp.drm.csl")};rk=function(a,b){3===b.type&&(a.f&&(a.g.debug("Attaching tracking token"),b.headers[hf]=a.f),a.a&&(b.headers[jf]=a.a))};
108
+ sk=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[hf];a.a=b.headers[jf];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(_.vh(_.lk(c))),{delay:c.renewalPeriod,gk:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};tk=function(a){return _.Ch(a,_.Rc)||_.Ch(a,_.Sc)};_.vk=function(a){_.uk[a.J]=a};
109
+ _.xk=function(a){var b={attemptParameters:_.Kh(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,enableSessionCacheForSkd:!1,Qa:{}};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,a.env)){var c=_.uk[a.env]||null;if(!c)throw _.Sf(_.wa,_.gb+
110
+ a.env+_.aa),new _.L(_.M,6,6015,_.xa+a.env+"' is missing.");b.Qa=_.wk(c,a.customData)||{};_.Ch(a.env.toLowerCase(),ed)&&(b.enforceSingleSession=!0)}return b};zk=function(a){a=yk[a];if(!a)return null;var b=_.ai();return b.os===nj&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.Ak=function(a){this.J=a;this.g={}};Bk=function(a,b){var c=_.ai();if(c.os!==nj||c.browser!==Gc)return a||b};
111
+ _.wk=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.g[_.Tc];g&&(c[_.Tc]={licenseUrl:g.licenseUrl,videoRobustness:Bk(d,g.videoRobustness),audioRobustness:Bk(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:g.distinctiveIdentifierRequired,persistentStateRequired:g.persistentStateRequired,serverCertificate:void 0===f?g.serverCertificate:null===f?null:typeof f===_.ve?zk(f):f});(g=a.g[_.Rc])&&(c[_.Rc]=
112
+ {licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.g[_.Sc])&&(c[_.Sc]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});return c};
113
+ _.Ck=function(a,b){this.f=_.K.la(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.g=!!b;this.buffer=this.f.buffer};_.Ek=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.N(a.f.buffer);b=_.N(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.Dk()}};_.T=function(a,b){try{a.f.setUint32(a.a,b,a.g),a.a+=4}catch(c){_.Dk()}};_.Dk=function(){throw new _.L(_.M,3,3E3);};_.Fk=function(a,b){this.f=a;this.g=void 0===b?!0:b;this.a=0};_.Gk=function(a){return a.a<a.f.byteLength};
114
+ _.Ik=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){_.Hk()}};_.Jk=function(a){try{var b=a.f.getUint16(a.a,a.g);a.a+=2;return b}catch(c){_.Hk()}};_.U=function(a){try{var b=a.f.getUint32(a.a,a.g);a.a+=4;return b}catch(c){_.Hk()}};_.Kk=function(a){try{var b=a.f.getInt32(a.a,a.g);a.a+=4;return b}catch(c){_.Hk()}};Lk=function(a,b){for(var c=new Uint8Array(b),d=0;d<b;d++)c[d]=_.Ik(a);return c};
115
+ _.Mk=function(a){var b=0;try{if(a.g){var c=a.f.getUint32(a.a,!0);b=a.f.getUint32(a.a+4,!0)}else b=a.f.getUint32(a.a,!1),c=a.f.getUint32(a.a+4,!1)}catch(d){_.Hk()}if(2097151<b)throw new _.L(_.M,3,3001);a.a+=8;return b*Math.pow(2,32)+c};_.Nk=function(a,b){a.a+b>a.f.byteLength&&_.Hk();var c=a.f.buffer.slice(a.a,a.a+b);a.a+=b;return _.N(c)};_.Hk=function(){throw new _.L(_.M,3,3E3,"Buffer read out of bounds.");};_.Ok=function(){this.g=[];this.f=[];this.a=!1;this.h=new _.H("clpp.mp4")};
116
+ _.Pk=function(a){for(;_.Gk(a.reader)&&!a.parser.a;)a.parser.Qd(a.start+a.headerSize,a.reader,a.partialOkay)};_.Qk=function(a){for(var b=_.U(a.reader);0<b&&!a.parser.a;--b)a.parser.Qd(a.start+a.headerSize,a.reader,a.partialOkay)};_.Rk=function(a){return function(b){var c=b.reader.za()-b.reader.getPosition();a(_.Nk(b.reader,c))}};Sk=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.Tk=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};
117
+ _.Uk=function(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)};Vk=function(){};Wk=function(a){var b="";try{b=_.yh(a)}catch(c){}return b};_.Xk=function(a){a=Wk(a);var b="";a.length&&(b=(new _.pi(a)).a);return b};Yk=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.vh(a)),d=_.lk(c.sinf[0]);(new _.Ok).L(_.oe,_.Pk).L("schi",_.Pk).L("tenc",function(e){e.reader.skip(6);_.Ik(e.reader)&&(e.reader.skip(1),b=_.nk(_.Nk(e.reader,16)));e.parser.stop()}).parse(d)}catch(e){}return b};
118
+ Zk=function(a,b,c){if(!c||!c.byteLength)throw new _.L(_.M,6,6102);var d;typeof b===_.ve?d=_.Ah(b,!0):d=b;a=_.Ah(Wk(a),!0);b=new _.Ck(12+a.byteLength+d.byteLength+c.byteLength,!0);_.T(b,a.byteLength);_.Ek(b,_.N(a));_.T(b,d.byteLength);_.Ek(b,_.N(d));_.T(b,c.byteLength);_.Ek(b,_.N(c));return _.N(b.buffer)};_.$k=function(a){var b=_.N(a.body);b=_.kk(b);a.headers[va]=jc;a.body=_.zh("spc\x3d"+b).buffer};
119
+ _.al=function(a){try{var b=_.vh(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=th(_.lk(b))};
120
+ gl=function(){var a=bl;if(a===dl)return"https://lic.drmtoday.com";if(a===el)return"https://lic.staging.drmtoday.com";if(a===fl)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};kl=function(a){var b=gl();if(a==_.Tc)return b+hl;if(a==_.Sc)return b+il;if(a==_.Rc)return b+jl;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
121
+ ll=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
122
+ _.nl=function(a,b,c){b=Wk(b);c=c&&c.customData?c.customData:{};b=new _.pi(ll(b));var d=si(b.f);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.Eh(""+a)&&(d.assetId=a,ml.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.Eh(""+e)&&(d.variantId=e,ml.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],ml.debug("KeyId found in FPS SKD. Removing other parameters")):
123
+ a=["assetId","variantId"];b.f=_.ri(d,!1,a);"/"!==b.path||b.h.includes(b.a+"/")||(b.path="");b=_.qi(b);return c.fpsContentId=b};
124
+ _.ol=function(a,b,c,d){d=void 0===d?!0:d;a=a.drm;a&&a.env.startsWith(za)?a.customData&&(c=btoa(JSON.stringify({userId:a.customData.userId,sessionId:a.customData.sessionId,merchant:a.customData.merchant})),b.headers["dt-custom-data"]=c,a.customData.authToken&&(b.headers["x-dt-auth-token"]=""+a.customData.authToken),c=b.uris[0],d&&a.customData.assetId&&(c+="?assetId\x3d"+encodeURI(""+a.customData.assetId),a.customData.variantId&&(c+="\x26variantId\x3d"+encodeURI(""+a.customData.variantId)),b.uris[0]=
125
+ c)):ml.warn(Ya)};pl=function(a,b,c){_.ol(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.Lg(b.uris[0]);c.a.add(_.Wd,a);b.uris[0]=c.toString()};
126
+ _.ql=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.ol(a,b,c,!1);b.headers[va]=jc;c={spc:_.jk(b.body)};if((a=a.drm)&&a.env.startsWith(Aa)&&d){a={};var e=si((new _.pi(ll(d))).f);d=e.keyId;if(e=e.assetId)ml.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(ml.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(ml.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(ml.info("Adding assetID to FPS payload:",a.assetId),c.assetId=a.assetId)}b.body=
127
+ _.Bh(_.ri(c,!0))};_.rl=function(a,b){ml.debug("Clearing response data");if(200===b.status){var c=_.vh(b.data).trim();"\x3cckc\x3e"===c.substr(0,5)&&"\x3c/ckc\x3e"===c.substr(-6)&&(c=c.slice(5,-6));b.data=_.lk(c).buffer}};_.sl=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(za))ml.warn(Ya);else if(c.customData&&c.customData.merchant&&!c.env.startsWith(Aa)){var d=new _.Lg(b.uris[0]),e=d.wa;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.wa=e;b.uris[0]=d.toString()}};
128
+ _.tl=function(a,b){try{var c=_.N(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));ml.debug("Widevine License response",d);var e=atob(d.license),f=new Uint8Array(e.length);for(c=0;c<e.length;++c)f[c]=e.charCodeAt(c);b.data=f.buffer}catch(g){ml.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data")}};vl=function(a){var b={},c=a?a[kf]:void 0;a=ul[a?a[kf]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};wl=function(){};
129
+ yl=function(a,b){b=void 0===b?0:b;_.Rf("Registering EME Factory: "+a.a());for(var c={priority:b,Ib:a},d=0;d<xl.length;++d)if(xl[d].priority<b){xl.splice(d,0,c);return}xl.push(c)};
130
+ zl=function(a){if(a){var b=xl.find(function(d){return d.Ib.a()===a}).Ib;if(b&&b.ca())return _.Rf(Eb+b.a()),b.create();_.Rf("Cannot create selected EME manager. Choosing by priority list.")}b=_.u(xl);for(var c=b.next();!c.done;c=b.next())if(c=c.value.Ib,c.ca())return _.Rf(Eb+c.a()),c.create();throw Error("Missing EME managers");};_.Bl=function(a,b){var c=_.Al(a,b);return 1!=c.length?null:c[0]};
131
+ _.Al=function(a,b){return Array.prototype.filter.call(a.childNodes,function(c){return c instanceof Element&&c.tagName==b})};_.Cl=function(a){return Array.prototype.every.call(a.childNodes,function(b){return b.nodeType==Node.TEXT_NODE||b.nodeType==Node.CDATA_SECTION_NODE})?a.textContent.trim():null};
132
+ _.Dl=function(a,b){var c=new DOMParser,d=null,e=null;try{e=c.parseFromString(a,_.Ee)}catch(f){}e&&e.documentElement.tagName==b&&(d=e.documentElement);return d&&0<d.getElementsByTagName("parsererror").length?null:d};El=function(a,b,c){this.h=new Uint8Array(a);this.a=b;this.f=c};Fl=function(){El.apply(this,arguments)};_.Hl=function(a){var b=_.mk(a);b=parseInt(b.byteLength,10).toString(16);b=_.mk("12"+b+a);return new Fl(Gl,a,b)};
133
+ _.Il=function(a){function b(r){switch(r){case 0:do if(!_.Gk(d))throw Error("not enough data to skip!");while(_.Ik(d)&128);break;case 1:d.skip(8);break;case 2:d.skip(c());break;case 3:for(;4!==(r=c()&7);)b(r);break;case 5:d.skip(4);break;default:throw Error("invalid wire type "+r);}}function c(){for(var r=_.Ik(d),w=(r&127)>>>0,z=7;128<=r&&28>=z;)r=_.Ik(d),w=(w|(r&(28>z?127:15))<<z)>>>0,z+=7;return 28<z?-1:w}var d=new _.Fk(new DataView(a.buffer,a.byteOffset,a.byteLength),!1);a=_.U(d);var e=_.U(d);e=
134
+ _.Tk(e);var f=_.U(d),g=f>>>24;f&=16777215;var h=_.Nk(d,16);h=_.nk(h);if(0<g){var l=_.U(d);d.skip(16*l)}l=_.U(d);for(var m=[],n=null;_.Gk(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=Lk(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.Sf("Parsed WV PSSH Box","size",a,"name",e,"version",g,"flags",f,"size",l,"systemId",h,"contentId (base64)",n?_.jk(n):"","keyIds",m.map(function(r){return _.nk(r)}));return 0<m.length?_.Hl(_.nk(m[0])):null};
135
+ _.Jl=function(a,b,c,d,e,f){f=void 0===f?null:f;El.call(this,a,b,d);this.version=e;this.g=c;this.j=f};
136
+ _.Ol=function(a){a:{a=new _.Fk(new DataView(a.buffer),!0);_.U(a);for(_.Jk(a);_.Gk(a);)if(1===_.Jk(a)){var b=_.Jk(a);a=_.Nk(a,b);break a}a=null}b=xh(a,!0);var c=_.Dl(b,"WRMHEADER");b=c.getAttribute("version");var d=_.Bl(c,"DATA");c=(c=_.Bl(d,"LA_URL"))?_.Cl(c):"";var e;if(e=_.Bl(d,"KID"))if(e=_.Cl(e)){var f=_.Bl(d,ma);e={value:e,he:f?f.textContent.trim():null}}else e=null;else e=null;d=e?[e]:(e=Kl(d))?[e]:(d=Ll(d))?d:null;e=d&&d[0]||{};d=e.he;e=_.lk(void 0===e.value?"":e.value);e=_.Ml(e);e=_.nk(e);
137
+ return new _.Jl(_.Nl,e,c,a,b,d)};_.Ml=function(a){var b=[];b.push(a[3]);b.push(a[2]);b.push(a[1]);b.push(a[0]);b.push(a[5]);b.push(a[4]);b.push(a[7]);b.push(a[6]);a=_.N(a);a.set(b,0);return a};Kl=function(a){a=_.Bl(a,"PROTECTINFO");if(!a)return null;var b=_.Bl(a,"KID");if(!b)return null;a=b.getAttribute("VALUE");if(!a)return null;var c=b.getAttribute(ma);b=b.getAttribute("ALGID");return{value:a,he:c,Hg:b}};
138
+ Ll=function(a){a=_.Bl(a,"PROTECTINFO");if(!a)return null;a=_.Bl(a,"KIDS");if(!a)return null;var b=_.Al(a,"KID");if(!b.length)return null;a=[];b=_.u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;if(c=d.getAttribute("VALUE")){var e=d.getAttribute(ma);d=d.getAttribute("ALGID");a.push({value:c,he:e,Hg:d})}}return a.length?a:null};Pl=function(a){this.f=[];this.g=[];this.a=[];8<=a.byteLength&&(new _.Ok).V("pssh",this.h.bind(this)).parse(a.buffer);0==this.a.length&&_.G("No pssh box found!")};
139
+ _.Tl=function(a){var b=this;this.C=a;this.M=new Set;this.B=this.I=this.o=null;this.$=!1;this.f=null;this.J=Ql;this.A=new _.eg;this.P=new qk;this.g=new Map;this.K=[];this.H=new _.Sh;this.h=null;this.T=function(c){b.w=!0;b.D=!1;b.H.reject(c);a.onError(c)};this.m=new Map;this.da=new Map;this.aa=new _.Si(function(){return Rl(b)});this.j=!1;this.ua=new _.Sh;this.F=!1;this.ba=[];this.Ra=!1;this.U=0;this.a=new _.H("clpp.drm.DrmEngine");this.ga=(new _.Si(function(){Sl(b)})).ab(1);this.H["catch"](function(){});
140
+ this.w=this.D=!1;this.S=null};
141
+ Vl=function(a){var b,c,d,e,f;return _.A(function(g){switch(g.a){case 1:a.A.release();a.A=null;a.P.release();a.P=null;a.w=!1;a.D=!1;a.H.reject();a.ga.stop();a.ga=null;a.aa.stop();a.aa=null;b=Array.from(a.g.keys());c=_.u(a.g.values());for(d=c.next();!d.done;d=c.next())e=d.value,e.Ac&&e.Ac.stop();a.g.clear();return _.x(g,Promise.all(b.map(function(h){return Promise.resolve().then(function(){var l;return _.A(function(m){if(1==m.a)return a.a.debug("Closing session",h.sessionId),_.zf(m,2),_.x(m,Ul(h),4);
142
+ if(2!=m.a)return _.Af(m,0);l=_.Bf(m);a.a.warn("Error while closing session",l);_.y(m)})})})),2);case 2:if(!a.B){g.G(3);break}_.zf(g,4);return _.x(g,a.o.Vc(null),6);case 6:_.Af(g,5);break;case 4:f=_.Bf(g),a.a.warn("Error while resetting media keys",f);case 5:a.B=null;case 3:a.o=null,a.f=null,a.M.clear(),a.I=null,a.K=[],a.h=null,a.T=null,a.C=null,a.U=0,a.S=null,_.y(g)}})};
143
+ _.Yl=function(a,b,c){a.J=Wl;a.K=c;a.F=0<c.length;a.a.debug("Using Persisted Licenses: "+a.F);a.h&&a.h.enableSessionCacheForSkd&&a.a.info("Enabled session cache for SKD license requests");return _.Xl(a,b)};
144
+ _.Xl=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.K.hf(a.h.Qa);Zl(b,d)}var e=$l(a);if(e){var f=_.u(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos=[e]}e=_.u(b);for(d=e.next();!d.done;d=e.next())for(d=_.u(d.value.drmInfos),f=d.next();!f.done;f=d.next())am(f.value,a.h.Qa);d=bm(a,b);if(!d.size)return a.$=!0,Promise.resolve();d=_.cm(a,d);return c?d:d["catch"](function(){})};
145
+ dm=function(a){var b;return _.A(function(c){switch(c.a){case 1:if(a.o.Fd())return c["return"]();if(!a.S){c.G(2);break}return _.x(c,a.S,3);case 3:return c["return"]();case 2:return _.zf(c,4),a.S=a.o.Vc(a.I),_.x(c,a.S,6);case 6:_.Af(c,0);break;case 4:b=_.Bf(c);if(a.j)return c["return"]();a.T(new _.L(_.M,6,6003,b.message,b));_.y(c)}})};
146
+ fm=function(a,b){return _.A(function(c){if(1==c.a)return a.a.info("Handle encrypted event for type "+b.initDataType),_.x(c,dm(a),2);if(!b.initData)return c["return"]();_.em(a,b.initDataType,_.N(b.initData));_.y(c)})};
147
+ _.km=function(a,b){if(!a.I)return _.fg(a.A,b,[gd,"msneedkey",ef,"needkey"],function(){a.T(new _.L(_.M,6,6010))}),Promise.resolve();a.B=b;a.o.wd(b);a.A.one(a.B,_.Zd,function(){return gm(a)});a.A.on(a.B,_.$e,function(e){var f=a.D;a.D=!a.w;!f&&a.D&&(a.a.info("Waiting for DRM license key delivery"),a.C.onEvent(e))});var c=a.f.initData.find(function(e){return 0<e.initData.length}),d=Promise.resolve();if(c||a.o.Uc()!==lb||a.K.length)d=dm(a);c=Promise.resolve();_.$h()&&38===Wi().major||(a.f&&a.f.keySystem!==
148
+ _.Td&&!a.f.serverCertificate&&(c=hm(a)),c=c.then(function(){return _.im(a)}));return Promise.all([d,c]).then(function(){a.j||(_.jm(a),a.A.on(a.B,gd,function(e){return fm(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.f&&a.f.keySystem===_.Tc&&1>a.U&&a.f.serverCertificate&&a.f.serverCertificate.length)return a.a.warn("Detected invalid widevine server certificate!. Retrying"),a.T(new _.L(1,6,6004)),a.f.serverCertificate=null,a.U++,_.km(a,b);1<=a.U&&a.a.info("Could not get valid widevine server certificate. Giving up");
149
+ throw e;}})};_.im=function(a){var b,c;return _.A(function(d){if(1==d.a){if(!(a.I&&a.f&&a.f.serverCertificate&&a.f.serverCertificate.length))return d.G(0);_.zf(d,3);return _.x(d,a.I.setServerCertificate(a.f.serverCertificate),5)}if(3!=d.a)return b=d.f,void 0===b||b||a.a.debug("Server certificates are not supported by the key system. The server certificate has been ignored."),_.Af(d,0);c=_.Bf(d);throw new _.L(_.M,6,6004,{browserError:c.message});})};
150
+ hm=function(a){var b=a.keySystem(),c=a.h.Qa[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.C.getConfiguration();return lm(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,h=f&&f.certificateResponse;f=_.Nh([d],a.h.attemptParameters);f.type=3;f.licenseRequestType=Ec;g&&f.requestModifiers.push(function(l){return g(e,l)});h&&f.responseModifiers.push(function(l){return h(e,l)});a.a.debug("Fetching certificate");return a.C.zb.fetch(f).O}).then(function(f){a.f.serverCertificate=
151
+ _.N(f.data)})["catch"](function(f){var g=f.data.headers;g=Object.assign({message:"Error while fetching certificate!",url:f.data.url,status:f.data.status,response:f.data.response},g?{headers:g}:{},vl(g));throw new _.L(_.M,6,6100,g,f);})};lm=function(a,b){var c,d;return _.A(function(e){c=a.C.Fc();return c?(d=b&&b.drm&&b.drm.customData)?_.x(e,c(d),0):e["return"]():e["return"]()})};mm=function(a,b){if(!a)return!1;for(var c=0;c<b.Bd.length;c++)if(_.ok(a,b.Bd[c]))return!0;return!1};
152
+ _.jm=function(a){for(var b=a.f?a.f.initData||[]:[],c=_.u(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=!_.Zh(2);if(a.h.enforceSingleSession&&!a.keySystem().startsWith(_.Rc)){var f=a.g.values();f=_.u(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.ok(d.initData,g.initData)?(a.a.info("Skipping Session creation. Existing init data in single session mode!"),e=!1):g.periodId===d.periodId&&(a.a.info("Skipping Session creation. Merging init data for period in single session mode for Key ID "+(d.keyId+
153
+ ".")),mm(d.initData,g)||(g.Bd.push(d.initData),d.keyId&&!g.bb.includes(d.keyId)&&g.bb.push(d.keyId),a.m.get(d.keyId)||a.m.set(d.keyId,te)),e=!1)}!e||a.F&&a.J===Wl||(_.nm(a,d.keyId,d.initData)&&(e=!1),e&&(a.a.info("Request new media key session on create"),om(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.u(a.K);for(d=c.next();!d.done;d=c.next())_.pm(a,d.value);b.length||a.K.length||(a.w||a.a.info(ya),a.w=!0,a.D=!1,a.H.resolve());return a.H};
154
+ _.em=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.F||a.J!==Wl)){var e=a.keySystem();if(!e.startsWith(_.Rc)){var f=new Pl(c);if(1<f.a.length&&(e={"org.w3.clearkey":"1077efecc0b24d02ace33c1e52e2fb4b","com.widevine.alpha":"edef8ba979d64acea3c827dcd51d21ed","com.microsoft.playready":"9a04f07998404286ab92e65be0885f95","com.adobe.primetime":"f239e769efa348509c16a903c6932efb"}[e]))for(var g=0;g<f.f.length;g++)if(e===f.f[g]){c=c.subarray(f.a[g].start,f.a[g].end+1);break}}(a.B.webkitCurrentPlaybackTargetIsWireless||
155
+ _.Zh(2)||a.keySystem().startsWith(_.Rc)||!_.nm(a,d,c,!0))&&om(a,d,null,b,c)}};
156
+ _.nm=function(a,b,c,d){d=void 0===d?!1:d;for(var e=_.u(a.g.keys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.g.get(f);if(_.ok(c,g.initData))return b?g.bb.includes(b)?d&&a.a.info("Skipping Session creation. License for init data with Key ID "+(b+" was already requested in Session: '")+(f.sessionId+"'. ")):(g.bb.push(b),a.m.get(b)||a.m.set(b,te),d&&a.a.info(rb+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.a.info(rb+(f.sessionId+"'")),!0;if(mm(c,g))return d&&a.a.info("Skipping Session creation. License for init data was already requested [extra]"),
157
+ !0}return!1};qm=function(a){var b=Infinity;a=a.g.keys();a=_.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,isNaN(c.expiration)||(b=Math.min(b,c.expiration));return b};
158
+ bm=function(a,b){for(var c=new Set,d=_.u(b),e=d.next();!e.done;e=d.next()){var f=_.u(e.value.drmInfos);for(e=f.next();!e.done;e=f.next())c.add(e.value)}d=_.u(c);for(e=d.next();!e.done;e=d.next())am(e.value,a.h.Qa);f=a.F?_.ie:_.Sd;var g=a.F?[_.Xd]:[Be];d=new Map;c=_.u(c);for(e=c.next();!e.done;e=c.next())e=e.value,d.set(e.keySystem,{initDataTypes:[_.Cc],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.Sd,persistentState:f,sessionTypes:g,label:e.keySystem,drmInfos:[]});c={};f=_.u(b);
159
+ for(e=f.next();!e.done;c={Vd:c.Vd,be:c.be},e=f.next()){e=e.value;g=e.audio;var h=e.video;c.Vd=g?_.Pi(g.mimeType,g.codecs):"";c.be=h?_.Pi(h.mimeType,h.codecs):"";var l={},m=_.u(e.drmInfos);for(e=m.next();!e.done;l={Fb:l.Fb},e=m.next())e=e.value,l.Fb=d.get(e.keySystem),l.Fb.drmInfos.push(e),e.initData&&e.initData.length&&(l.Fb.initDataTypes=_.mf(new Set(e.initData.map(function(n){return n.initDataType}))).concat()),e.distinctiveIdentifierRequired&&(l.Fb.distinctiveIdentifier=_.ie),e.persistentStateRequired&&
160
+ (l.Fb.persistentState=_.ie),g&&_.Fg(e.audioRobustness).forEach(function(n,p){return function(q){p.Fb.audioCapabilities.push({robustness:q||"",contentType:n.Vd})}}(c,l)),h&&_.Fg(e.videoRobustness).forEach(function(n,p){return function(q){p.Fb.videoCapabilities.push({robustness:q||"",contentType:n.be})}}(c,l))}return d};
161
+ _.cm=function(a,b){function c(n,p,q){p.drmInfos.some(function(r){return!!r.licenseServerUri})==n&&(g=g["catch"](function(){if(a.j)return null;if(q===_.Sc){var r=a.C.getConfiguration();if(!_.Ui()||r.streaming.patchEdgeWhenMixedContent||a.h.Qa[q].useLegacySystem)d(p);else return a.o.yc("com.microsoft.playready.recommendation",[p])["catch"](function(){d(p);return a.o.yc(q,[p])})}return a.o.yc(q,[p])}))}function d(n){for(var p=_.u(n.audioCapabilities),q=p.next();!q.done;q=p.next())delete q.value.robustness;
162
+ n=_.u(n.videoCapabilities);for(p=n.next();!p.done;p=n.next())delete p.value.robustness}if(1==b.size&&b.has(""))return Promise.reject(new _.L(_.M,6,6E3));null===a.o&&(a.o=zl(a.h.emeApi));for(var e=_.u(b.values()),f=e.next();!f.done;f=e.next())f=f.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;var g=e=new _.Sh,h=a.h.preferredDrmSystem;if(!h)if(f=_.ai(),f.os===pj&&10<=f.osVersion.major&&"edge"===f.browser)h=_.Sc;else if("safari"===
163
+ f.browser)h=_.Rc;else if(f.browser===Gc||"firefox"===f.browser)h=_.Tc;h&&(f=b.get(h))&&(c(!0,f,h),c(!1,f,h));f={};for(var l=_.u([!0,!1]),m=l.next();!m.done;f={$d:f.$d},m=l.next())f.$d=m.value,b.forEach(function(n){return function(p,q){q!==h&&c(n.$d,p,q)}}(f));g=g["catch"](function(n){throw new _.L(_.M,6,6001,null,n);});g=g.then(function(n){if(a.j)return null;a.M.clear();var p=n.getConfiguration();a.a.debug("Got MediaKeySystemAccess with configuration",p);var q=p.videoCapabilities||[],r=_.u(p.audioCapabilities||
164
+ []);for(p=r.next();!p.done;p=r.next())a.M.add(p.value.contentType);q=_.u(q);for(p=q.next();!p.done;p=q.next())a.M.add(p.value.contentType);q=n.keySystem;p=b.get(_.rm(n.keySystem));r=[];var w=[],z=[],C=[];sm(p.drmInfos,r,w,z,C);1<w.length&&_.G("Multiple unique server certificates found! Only the first will be used.");1<r.length&&_.G("Multiple unique license server URIs found! Only the first will be used.");a.f={keySystem:q,licenseServerUri:r[0],distinctiveIdentifierRequired:p.distinctiveIdentifier==
165
+ _.ie,persistentStateRequired:p.persistentState==_.ie,audioRobustness:p.audioCapabilities?p.audioCapabilities[0].robustness:"",videoRobustness:p.videoCapabilities?p.videoCapabilities[0].robustness:"",serverCertificate:w[0],initData:z,keyIds:C,periodId:null};if(!a.f.licenseServerUri)throw new _.L(_.M,6,6012,a.f.keySystem);return n.createMediaKeys()}).then(function(n){a.j||(a.a.info("Created MediaKeys for key system",a.f.keySystem),a.I=n,a.$=!0)})["catch"](function(n){if(!a.j){a.f=null;a.M.clear();if(n instanceof
166
166
  _.L)throw n;throw new _.L(_.M,6,6002,{browserError:n.message});}});e.reject();return g};
167
- Zl=function(a){a=_.K.jf(a.h.Ra[_.Sd]||{});if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.lk(f),h=_.lk(e);g={kty:"oct",kid:_.jk(g,!1),k:_.jk(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.zh(d),initDataType:"keyids"}];return{keySystem:_.Sd,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
167
+ $l=function(a){a=_.K.hf(a.h.Qa[_.Td]||{});if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.mk(f),h=_.mk(e);g={kty:"oct",kid:_.kk(g,!1),k:_.kk(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.zh(d),initDataType:"keyids"}];return{keySystem:_.Td,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
168
168
  initData:d,keyIds:[],periodId:null}};
169
- _.om=function(a,b){try{a.a.debug("Attempting to load an offline session",b);var c=a.J.createSession(_.Wd)}catch(f){var d=new _.L(_.M,6,6005,{browserError:f.message});a.U(d);return Promise.reject(d)}a.A.on(c,Ad,a.kg.bind(a));a.A.on(c,pd,a.gg.bind(a));var e={initData:null,loaded:!1,He:Infinity,ob:null,za:new _.Th,periodId:null,Bd:[],keyId:null,cb:[],initDataType:null,$b:null,sessionContext:{ldlDelay:0,customData:{}}};e.za["catch"](function(){});a.g.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.a.debug("Loaded offline session",
170
- b,f);if(!f)return a.g["delete"](c),a.U(new _.L(_.M,6,6013)),null;e.loaded=!0;sm(a)&&(a.w||a.a.info(za),a.w=!0,a.D=!1,a.I.resolve());return c},function(f){a.j||(a.g["delete"](c),a.U(new _.L(_.M,6,6005,{browserError:f.message})))})};tm=function(a,b,c,d){if(!b&&c!==_.oe)return!1;d=b||Xk(d);a=_.u(a.g.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||c===_.oe&&(e.keyId||Xk(e.initData))===d)return!0;return!1};
171
- nm=function(a,b,c,d,e,f,g){f=void 0===f?null:f;g=void 0===g?!1:g;var h,l,m,n,p,q,r,w,y,A,E,F,D,I,O,S,Fa,fa,ka,wa,Aa;_.B(function(la){switch(la.a){case 1:if(!e.length)return la["return"]();h=b||um(a,d,e,f);if(g){la.H(2);break}if(!tm(a,h,d,e)){la.H(2);break}l=!0;if("skd"!==d||a.h.enableSessionCacheForSkd){la.H(4);break}m=_.u(a.g.keys());n=m.next();case 5:if(n.done){la.H(4);break}p=n.value;q=a.g.get(p);if(!h||q.keyId!==h){la.H(6);break}a.a.warn("Close and re-open session for "+h);_.zf(la,9);return _.x(la,
172
- p.close(),11);case 11:_.Af(la,10);break;case 9:r=_.Bf(la),a.a.warn("Unable to close session",r);case 10:l=!1;case 6:n=m.next();la.H(5);break;case 4:if(l)return a.a.warn("Skip creating a new session for "+h),la["return"]();case 2:try{y=a.F?_.Wd:Be,w=a.J.createSession(y),a.a.info("Created new "+y+" session for Key ID: '"+h+"'. Init data type: "+(d+"."))}catch(ra){return a.U(new _.L(_.M,6,6005,{browserError:ra.message})),la["return"]()}a.A.on(w,Ad,a.kg.bind(a));a.A.on(w,pd,a.gg.bind(a));A={$b:f,Bd:[],
173
- initData:e,initDataType:d,keyId:h,cb:h?[h]:[],loaded:!1,He:Infinity,periodId:c,ob:null,za:new _.Th,sessionContext:{ldlDelay:0,customData:{}}};A.za["catch"](function(){});f&&(E=a.g.get(f),A.sessionContext=E.sessionContext);a.g.set(w,A);h&&!a.m.get(h)&&a.m.set(h,te);if(e)for(F=0;F<a.f.initData.length;F++)D=a.f.initData[F],D.keyId&&!A.cb.includes(D.keyId)&&_.nk(D.initData,e)&&(A.keyId||(A.keyId=D.keyId),A.cb.push(D.keyId),a.m.get(D.keyId)||a.m.set(D.keyId,te));I=_.K;O=I.kb;S=a.C.getConfiguration();Fa=
174
- a.keySystem();fa=a.h.Ra[Fa];wa=(ka=fa.modifiers)&&ka.transformInitData;O(wa)||(wa=vm);try{e=wa({playerConfig:S,initData:e,initDataType:d,drmInfo:a.f,drmSystemConfig:fa,sessionContext:A.sessionContext,emeApi:a.o.Vc()})}catch(ra){return Aa=ra,ra instanceof _.L||(Aa=new _.L(_.M,6,6016,ra)),A.za&&A.za.reject(ra),a.U(Aa),la["return"]()}a.a.info("Generate License Request for key ID: '"+h+"'");w.generateRequest(d,e.buffer)["catch"](function(ra){if(!a.j){var Ga=null;ra.errorCode&&ra.errorCode.systemCode&&
175
- (Ga=ra.errorCode.systemCode,0>Ga&&(Ga+=Math.pow(2,32)),Ga="0x"+Ga.toString(16));a.U(new _.L(_.M,6,6006,{browserError:ra.message,error:ra,extended:Ga},ra))}});_.z(la)}})};
176
- um=function(a,b,c,d){d=void 0===d?null:d;if("skd"===b){a:{b=d;b=void 0===b?null:b;d=a.keySystem();var e=a.h.Ra[d];d=a.C.getConfiguration();e=e&&e.modifiers&&e.modifiers.extractContentId;_.K.kb(e)||(e=wm);try{var f={ldlDelay:0,customData:{}};b&&(f=a.g.get(b).sessionContext);var g=e(d,c,f);a.a.debug("Extracted Content ID '"+g+"' from SKD");var h=g;break a}catch(l){a.a.warn("Unable to extract Content ID from SKD",l)}h=""}return h}if(b===_.oe)return Xk(c)||"";if(b===_.Ac)try{e=a.keySystem();if(xm(e))return _.Nl(c).a;
177
- if(e.match(/^com\.widevine\.alpha/)&&(f=_.Hl(c)))return f.a}catch(l){a.a.warn("Unable to extract Key ID from PSSH data",l)}return""};wm=function(a,b){var c=_.Wk(b);_.Sf("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
178
- vm=function(a){var b=a.playerConfig,c=a.initData,d=a.drmInfo,e=a.drmSystemConfig,f=a.sessionContext,g=a.emeApi;if("skd"===a.initDataType&&"APPLE"===g){a=_.K.kb;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=wm);a="";try{a=e(b,c,f)}catch(h){throw new _.L(_.M,6,6103);}if(!a.length)throw new _.L(_.M,6,6101,"Content ID is an empty string");c=Yk(c,a,d)}return c};
179
- Gm=function(a,b){var c=b.target,d=a.g.get(c),e=a.keySystem(),f=!1;e.match(/^com\.widevine\.alpha/)&&b.message&&2===b.message.byteLength?(f=!0,a.a.info("WV Server certificate request for SID:'"+(c.sessionId+" from msg '")+(b.messageType+"'"))):a.a.info("License request for SID:'"+(c.sessionId+"'/KID:'"+d.keyId+"' from msg '")+(b.messageType+"'"));var g=a.f.licenseServerUri;e=a.h.Ra[e];"individualization-request"===b.messageType&&e&&e.individualizationServer&&(g=e.individualizationServer);var h=_.Oh([g],
180
- a.h.attemptParameters);h.type=3;h.body=b.message;h.method="POST";h.licenseRequestType=b.messageType===sd&&d.$b?rd:f?Cc:b.messageType;h.sessionId=c.sessionId;if(h.licenseRequestType===rd)a.C.onEvent(new _.J(Zc));xm(a.f.keySystem)&&ym(a,h);qk(a.R,h);var l=Date.now();return zm(a,h,d.sessionContext).then(function(){a.a.debug("Sending DRM license request to",g,h);return a.C.Ab.fetch(h).P}).then(function(m){if(a.j)return Promise.reject();var n=Date.now()-l,p=Am(a,m),q="";p&&(q=" RID:"+p);p=m&&m.data?m.data.byteLength:
181
- -1;f?a.a.info("WV Server certificate response for SID:'"+(c.sessionId+"' ")+(p+" bytes in ")+(n+"ms"+q)):a.a.info("License response for SID:'"+(c.sessionId+"'/KID:'")+(d.keyId+"' ")+(p+" bytes in ")+(n+"ms"+q));var r=rk(a.R,m);return c.update(m.data).then(function(){if(!f){var w=pm(a),y=r?Date.now()+1E3*r.delay:Number.NaN;w=new _.J(_.bd,{keySystem:a.keySystem(),expirationTime:w,expectedRenewalTime:y});a.C.onEvent(w);d&&(d.ob&&d.ob.resolve(),d.$b&&(w=d.$b,a.a.info("Closing expired session '"+w.sessionId+
182
- "'"),Tl(w)["catch"](function(){a.a.warn("Unable to close expired session in time")}),(w=a.g.get(d.$b))&&w.Cc&&w.Cc.stop(),a.g["delete"](d.$b),d.$b=null),(new _.Ri(function(){a.j||(d.loaded=!0,d.za&&d.za.resolve(),sm(a)&&(a.w||a.a.info(za),a.w=!0,a.D=!1,a.I.resolve()))})).Z(5),null!==d.initData&&(0<d.sessionContext.ldlDelay||r&&sk(a.keySystem()))&&(w=new _.Ri(function(){!a.j&&a.R&&(a.a.info("Updating CSL Sessions"),xm(a.keySystem())?nm(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):a.keySystem().startsWith(_.Pc)&&
183
- c.update(_.zh("renew")))}),d.Cc=w,w.Z(r?r.delay:d.sessionContext.ldlDelay)))}})},function(m){var n,p,q,r;return _.B(function(w){if(a.j)return w["return"]();n=m.data.headers;p=ul(n);q=Object.assign({message:_.Ia,url:m.data.url,status:m.data.status,response:m.data.response},n?{headers:n}:{},p);r=new _.L(_.M,6,6007,q,m);a.U(r);d&&d.ob&&d.ob.reject(r);d&&d.za&&d.za.reject(r);_.z(w)})})["catch"](function(m){a.j||(m===pb?a.a.info("Ignore update for closed sessions"):(m=new _.L(_.M,6,6008,{browserError:m.message}),
184
- a.U(m),d&&d.ob&&d.ob.reject(m),d&&d.za&&d.za.reject(m)))})};Am=function(a,b){if(!b||!b.headers)return"";var c=b.headers["x-dt-li"];if(c)try{return JSON.parse(_.vh(_.kk(c))).ti}catch(d){a.a.warn("Unable to parse DRMtoday Request ID",d)}return""};
185
- ym=function(a,b){var c=xh(b.body,!0,!0);if(c.includes("PlayReadyKeyMessage")){a.a.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(_.Oe).textContent;b.body=_.kk(c.querySelector("Challenge").textContent).buffer}else a.a.debug("PlayReady request is already unwrapped."),b.headers[va]="text/xml; charset\x3dutf-8"};
186
- zm=function(a,b,c){var d,e,f,g,h,l;return _.B(function(m){if(1==m.a)return d=a.C.getConfiguration(),_.x(m,km(a,d),2);e=a.keySystem();h=(g=(f=a.h.Ra[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;h?b.requestModifiers.push(function(n){return h(d,n,c)}):e.startsWith(_.Pc)&&b.requestModifiers.push(function(n){return _.Zk(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Pc)&&b.responseModifiers.push(function(n){return _.$k(n)});_.z(m)})};
187
- Ql=function(a){var b=a.m,c=a.da;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"==d})&&a.U(new _.L(_.M,6,6014));a.C.Le(_.K.kf(c));a.w||a.a.info(za);a.w=!0;a.D=!1};fm=function(a){var b;return _.B(function(c){b=a.ba.map(function(d){return Gm(a,d)});a.Sa=!0;a.ba=[];return _.x(c,Promise.all(b),0)})};xm=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};_.qm=function(a){return xm(a)?_.Qc:a};
188
- Rl=function(a){a.g.forEach(function(b,c){var d=b.He,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.C.onExpirationUpdated(c.sessionId,e),b.He=e)})};sm=function(a){a=a.g.values();return _.gh(a,function(b){return b.loaded})};
189
- Yl=function(a,b){var c=[];b.forEach(function(f,g){c.push({keySystem:g,licenseServerUri:f.licenseUrl,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:[]})});for(var d=_.u(a),e=d.next();!e.done;e=d.next())e.value.drmInfos=c};
190
- rm=function(a,b,c,d,e){var f={};a=_.u(a);for(var g=a.next();!g.done;f={ua:f.ua},g=a.next()){f.ua=g.value;b.includes(f.ua.licenseServerUri)||b.push(f.ua.licenseServerUri);f.ua.serverCertificate&&(c.some(function(m){return function(n){return _.nk(n,m.ua.serverCertificate)}}(f))||c.push(f.ua.serverCertificate));if(f.ua.initData){var h=_.u(f.ua.initData);for(g=h.next();!g.done;g=h.next())g.value.periodId=f.ua.periodId;h={};var l=_.u(f.ua.initData);for(g=l.next();!g.done;h={qd:h.qd},g=l.next())h.qd=g.value,
191
- d.some(function(m){return function(n){var p=m.qd;return n.keyId&&n.keyId==p.keyId&&n.periodId===p.periodId?!0:!1}}(h))||d.push(h.qd)}if(f.ua.keyIds)for(g=0;g<f.ua.keyIds.length;++g)e.includes(f.ua.keyIds[g])||e.push(f.ua.keyIds[g])}};
192
- $l=function(a,b){if(a.keySystem){var c=_.qm(a.keySystem),d=b[c];c===_.Sd&&a.licenseServerUri||(d&&(a.licenseServerUri=d.licenseUrl||""),a.keyIds||(a.keyIds=[]),d&&(a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=d.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=d.persistentStateRequired),a.videoRobustness||(a.videoRobustness=d.videoRobustness||""),a.audioRobustness||(a.audioRobustness=d.audioRobustness||""),a.serverCertificate||(a.serverCertificate=
193
- d.serverCertificate||null)))}};Tl=function(a){var b,c;return _.B(function(d){if(1==d.a)return b=new Promise(function(e){(new _.Ri(e)).Z(1)}),_.x(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.G("Timeout waiting for session close");_.z(d)})};_.Jm=function(a,b){a&&b&&(Hm.set(a,b),Im.info("Registered TextDisplayerFactory: '"+a+"'"))};
194
- _.Km=function(a,b){var c=b.find(function(d){return(d=Hm.get(d))?d.ca(a):!1});if(null==c)return Im.warn("Subtitles may not work as expected. No compatible text displayer found for this platform."),null;Im.info("Chosen the text displayer: "+c);return Hm.get(c)};Lm=function(){this.a=null;this.f=[]};_.Mm=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})}};
195
- Nm=function(a,b){var c=0;a.a&&a.a.state==b&&(c+=a.a.duration);for(var d=_.u(a.f),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state==b?e.duration:0;return c};Om=function(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=_.u(a.f),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.a&&c.push(b(a.a));return c};Pm=function(){this.g=this.f=this.h=null;this.a=[]};Qm=function(a){return a.a.map(function(b){return _.K.Na(b)})};
196
- _.Rm=function(){this.f=this.m=this.w=this.B=this.h=this.j=this.g=this.o=NaN;this.a=new Lm;this.A=new Pm};_.Sm=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:[]}};_.Tm=function(a){this.f=a;this.a=void 0};Vm=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Um.value().get(b),c.one(a,b,d))};
197
- Zm=function(a){this.g=new _.H("clpp.StateManager");this.l=a;this.a=new _.eg;this.f=_.Wm;this.A=_.Xm;this.J=0;this.w=-1;this.N=this.o=this.K=this.B=0;this.j=this.m=this.F=!1;this.I=0;this.h=null;this.L=0;this.R=_.Yi();this.D=!1;this.K=Date.now();Ym(this)};$m=function(a,b){return Object.keys(b)[a]};
198
- bn=function(a,b){var c={type:_.se};b===_.uc||b===_.tc?(c.reason=a.w,b===_.uc?c.timeSinceLastStateChangeMS=a.J:c.bufferedTimeMS=a.B):(a.f===_.an&&(c.reason=a.w),a.A===_.an&&(c.reason=a.w,c.bufferedTimeMS=a.B),c.currentState=a.f,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.J);return c};
199
- fn=function(a,b){if(a.f===b)return!1;var c=Date.now(),d=a.f===_.an;a.A=a.f;a.f=b;a.A===_.cn&&(a.K=c,a.o=0);a.o||(a.o=a.K||c);a.J=c-a.o;a.o=c;b===_.an?(a.N=a.o,a.w=a.m?1:2,a.g.info("Buffering started. Reason: "+$m(a.w-1,_.dn)),c=bn(a,_.uc),a.Ub(_.uc,c)):d&&(a.B=a.o-a.N,a.g.info("Buffering finished. Reason: "+$m(a.w-1,_.dn)+". Buffering time: "+a.B+" ms"),c=bn(a,_.tc),a.Ub(_.tc,c));c=$m(a.A,_.en);d=$m(a.f,_.en);a.g.info(_.gb+c+" -\x3e "+d);a.Ub(_.se,bn(a,""));return!0};
200
- ln=function(a,b){if(a.f===_.gn)a.g.warn("Player is in error state, aborting any further state checks");else{var c=a.l.isPaused();var d=a.l.getPosition();var e=a.l.getDuration();if(d=a.l.isEnded()||a.f===_.cn&&1>=Math.abs(d-e)||c&&d>=e)fn(a,_.cn)&&a.g.debug("Player claims to be in ended state, not checking more");else if(b!==_.Fe){e=a.l.getPosition();e=null!==e&&void 0!==e&&0<=e?a.l.getBufferInfo().Da(e,!0):-1;a.I=e;e=a.l.getSurface().getMedia();a.h=e?e.readyState:null;a.L=a.l.getPlaybackRate()||1;
201
- e=typeof a.h===_.k&&2>a.h&&2===e.networkState;var f=typeof a.h===_.k&&0>=a.I&&a.f===_.Wm,g=typeof a.h===_.k&&2>=a.h&&a.j;e=a.m||f||e||g;!a.R||a.l.isLive()||a.f!==_.an||e||(f=b===_.ke&&4===a.h,(g=a.A===_.hn)&&!a.D?e=!0:g||a.D||f||(e=!0));f=!1;e?f=fn(a,_.an):c?f=fn(a,_.jn):a.F&&(f=fn(a,_.kn));f&&(a.D=!1);a.g.debug("Video state check for event "+b+":: seeking: "+a.m+", waiting: "+a.j+", playing: "+a.F+", paused: "+c+", readyState: "+a.h+", rate: "+a.L+", buffer: "+a.I+", ended: "+d+". Changed state: "+
202
- f+", Current state: "+$m(a.f,_.en))}}};
203
- Ym=function(a){function b(d){return ln(a,d.type)}a.g.debug("Start watching for video events for "+a.l.namespace());var c=a.l;a.a.on(c,_.gd,function(){a.j=!1;fn(a,_.cn)});a.a.on(c,vc,b);a.a.on(c,_.Zd,function(){a.F=!0;a.j=!1;ln(a,_.Zd)});a.a.on(c,_.Ud,function(){a.F=!1;a.j=!1;ln(a,_.Ud)});a.a.on(c,_.Fe,b);a.a.on(c,_.de,b);a.a.on(c,_.ke,function(d){a.m=!1;a.j=!1;ln(a,d.type)});a.a.on(c,_.le,function(d){a.m=!0;ln(a,d.type)});a.a.on(c,pe,b);a.a.on(c,_.Ze,function(){a.j=!0;ln(a,_.Ze)});a.a.on(c,_.hd,function(d){return a.U(d)});
204
- a.a.on(c,_.wd,b);a.a.on(c,wc,function(){a.D=!0;ln(a,wc)});a.a.on(c,_.Ne,function(d){a.m=!0;ln(a,d.type)});a.a.on(c,_.Me,function(d){a.m=!1;a.j=!1;ln(a,d.type)})};mn=function(a){a=(new _.Lg(a)).pa;if(!a)return null;a=a.toUpperCase();return _.Dh(a,".MPD")?_.cc:_.Dh(a,".M3U8")?_.Bj:_.Dh(a,".MP4")?_.Te:_.Dh(a,"MANIFEST")||_.Dh(a,".ISM")?_.hc:null};
205
- _.on=function(a){var b;_.ak(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.ve||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=nn(b[c]);d&&a.push(d)}return a};
206
- nn=function(a){var b=null;_.K.Y(a)&&(a={url:a});typeof a===_.Kd&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.K.S(a.drmProtected)||typeof a.drmProtected!==_.sc||(b.drmProtected=a.drmProtected),_.K.S(a.isLive)||typeof a.isLive!==_.sc||(b.isLive=a.isLive),_.K.S(a.name)||typeof a.name!==_.ve||(b.name=a.name),_.K.S(a.Eb)||typeof a.Eb!==_.ve||(b.Eb=a.Eb),_.K.S(a.audioMimeType)||typeof a.audioMimeType!==_.ve||(b.audioMimeType=a.audioMimeType));b&&!b.type&&(b.type=mn(a.url),b.type?
207
- pn.debug("Detect media type "+b.type+" for "+a.url):pn.warn("Unable to detect media type for "+a.url));return b};qn=function(){_.bk.call(this,Kc);this.w=this.I=!1;this.j=this.A=this.m=this.a=this.h=null;this.g=new _.eg;this.F=this.D=this.f=this.J=null};
208
- tn=function(a,b){return a.w?rn():new Promise(function(c){a.a||(a.g.on(b,_.hd,function(){var d=sn(a);if(d)a.onError(d)}),a.g.on(b,_.ie,function(){var d=b.videoWidth,e=b.videoHeight,f=a.getTrackManager();f&&0<d&&0<e&&(f.w={width:d,height:e});a.trigger(new _.J(_.rc,{detail:{width:d,height:e}}))}),a.a=b);c()})};un=function(a){return a.w?rn():new Promise(function(b){if(a.a){var c=a.a;a.g.off(c,_.hd);a.g.off(c,_.ie);a.a=null}b()})};
209
- wn=function(a){var b,c,d,e,f;return _.B(function(g){if(1==g.a){if(a.w)return g["return"](rn());b=a.o[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=_.vn;d=_.wk(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.m=new _.Sl({Ab:e,onError:function(h){return a.onError(h)},Le:function(){},onExpirationUpdated:function(h,l){a.trigger(new _.J(_.Yc,
210
- {expirationTime:l}))},onEvent:function(h){h instanceof _.J?a.dispatchEvent(h):a.log.debug(_.yb,h.type)},getConfiguration:function(){return a.getConfiguration()},Gc:function(){return a.Gc()}});a.m.h=d;f={id:0,language:_.Ie,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,
211
- Aa:0,mimeType:_.Te,codecs:"",encrypted:!0,keyId:null,language:_.Ie,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,Ak:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,lk:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.x(g,_.Xl(a.m,[f],[]),2)}return 3!=g.a?_.x(g,_.jm(a.m,a.a),3):g["return"](Promise.resolve())})};
212
- xn=function(a,b){Vm(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.g,function(){a.getState()!==_.gn&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};sn=function(a){if(null===a.o||!a.a.error)return null;var b=a.a.error.code;if(1===b)return null;var c=a.a.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new _.L(_.M,3,3016,{code:b,uk:c,message:a.a.error.message})};rn=function(){return Promise.reject(new _.L(_.M,7,7E3))};
213
- yn=function(a){if(a.w)return new _.Uh(rn(),function(){});var b=a.o[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.J;c&&xn(a,c);if(d.preload!==_.Jd)a.g.one(d,_.wd,function(){var g=Date.now()/1E3-e;a.f.w=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.$h()||_.ai())&&d.load();var f=new _.Th;a.g.one(d,pe,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.D||(a.D=(new _.Ri(function(){f.reject(new _.L(_.M,3,3100,{message:"Unable to load media source successfully from "+
214
- b.url,uri:b.url},d.error))})).Z(g))});Vm(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.g,function(){return f.resolve()});d.error?f.reject(sn(a)):d.preload===_.Jd&&(a.log.warn('With \x3cvideo preload\x3d"none"\x3e, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way. Please do not use preload\x3d"none" with PRESTOplay for Web Apps.'),f.resolve());a.g.one(d,_.hd,function(){f.reject(sn(a))});
215
- return new _.Uh(f,function(){var g=new _.L(_.M,7,7001);f.reject(g);return Promise.resolve()})};
216
- zn=function(a,b){Vm(b,HTMLMediaElement.HAVE_CURRENT_DATA,a.g,function(){if(a.isLive()&&a.getState()!==_.gn){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)}))}})};An=function(){};
217
- _.Dn=function(a){a&&(0<=Bn.indexOf(a)?Cn.warn("Factory '"+a.name()+"' is already registered"):(Bn.push(a),Cn.info("Factory "+a.name()+"' has been registered.")))};Fn=function(a,b){var c=Bn.find(function(d){return d.ca(a,b)});c||(c=new En);Cn.info("Chosen ads: "+c.name());return c};_.Gn=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};_.Hn=function(a,b){a.classList.add(b)};
218
- _.In=function(a,b){if(a&&typeof b===_.Kd)for(var c in b)a.style[c]=b[c]};_.Jn=function(a){return document.createElement(a)};Kn=function(){this.a=null;this.g=new Set;this.f=null;this.set(null)};Ln=function(a,b){a.a&&0!==b.length&&(a.a.classList.add(b),a.g.add(b))};Mn=function(a,b){var c=new MutationObserver(function(){var d=Array.from(a.g.values());Hg(Array.from(b.classList),Array.from(d))||b.classList.add.apply(b.classList,_.mf(d))});c.observe(b,{attributes:!0,attributeFilter:["class"]});return c};
219
- Qn=function(a,b){this.a=new _.H("clpp.PlayerSurface");this.w=_.K.Wa(Nn,b);this.g=new Kn;this.h=null;this.f=new Kn;this.m=On;On+=1;this.o="clpp-video-"+this.m;this.j=new _.eg;if(null==a)throw new _.L(_.M,7,7102,"No Media element was provided");if(a instanceof Element)var c=a;else if(c=document.getElementById(a),!c)throw new _.L(_.M,7,7004,"Media element not found");var d=this.w;this.a.debug("Initializing Player Surface on ",c);if("cast-media-player"===c.tagName.toLowerCase())this.h=c;else{if(!(c instanceof
220
- HTMLMediaElement))throw new _.L(_.M,7,7005,"Media element is not instance of HTMLMediaElement");if(!c.hasAttribute("crossorigin")){var e=d.crossorigin;this.a.info("Setting media elements crossorigin to "+e);c.setAttribute("crossorigin",e)}this.g.set(c);if(d.disableContainer)d=null;else if(d.containerEl){if(c.parentNode!==d.containerEl)throw new _.L(_.M,7,7006,"Container element is not a direct parent of media element");d=d.containerEl}else{d=document.createElement(_.Xc);c.parentNode?c.parentNode.replaceChild(d,
221
- c):this.a.warn("Player Surface Element has no parent. Can not inject container. You have to manually add playerSurface.getContainer() to the DOM!");e=[];for(var f=0;f<c.classList.length;f++)e.push(c.classList[f]);e=_.u(e);for(f=e.next();!f.done;f=e.next())f=f.value,c.classList.remove(f),_.Hn(d,f);d.style.cssText=c.style.cssText;c.removeAttribute(_.xe);e=_.u([_.ff,_.kd]);for(f=e.next();!f.done;f=e.next()){f=f.value;var g=c.getAttribute(f);g=parseInt(g,10);isNaN(g)||(d.style[f]=g+_.ce);_.$h()||c.removeAttribute(f)}d.appendChild(c)}d&&
222
- (this.f.set(d),Ln(this.f,"clpp-container"),Ln(this.f,this.o),Ln(this.g,_.Fc),Ln(this.g,"clpp-video"));Pn(this,c,d)}};Pn=function(a,b,c){(_.ai()&&53===Vi().major||_.ai()&&68===Vi().major||_.Wi())&&!b.hasAttribute(Tc)&&(b.style.opacity="0",b.setAttribute(Tc,""),a.j.one(b,dd,function(){b.removeAttribute(Tc);b.style.opacity="1";c&&(c.style.opacity="1")}))};Sn=function(a){this.l=a;this.h=this.l.getNetworkEngine();this.a=new _.eg;this.g=null;this.f=!0;Rn(this)};
223
- Rn=function(a){a.a.on(window,"offline",function(){Tn(a,!1)});a.a.on(window,"online",function(){a.f||Un(a)});a.a.on(a.l,pe,function(){return Vn(a)});a.a.on(a.l,"suspend",function(){return Vn(a)});a.a.on(a.l,_.Ze,function(){return Vn(a)});a.a.on(a.l,_.Zd,function(){a.f||Un(a)});a.a.on(a.l,_.be,function(){a.f||Un(a)});a.a.on(a.l,_.se,function(){switch(a.l.getState()){case _.an:Vn(a);break;default:Vn(a)}})};Un=function(a){a.l.getConfiguration().connectivityCheck&&(Wn(a),a.g=(new _.Ri(function(){return Xn(a)})).Z(5))};
224
- Vn=function(a){a.f&&Un(a)};Wn=function(a){a.g&&(a.g.stop(),a.g=null)};Xn=function(a){var b,c;return _.B(function(d){if(1==d.a)return(b=a.l.getConfiguration().connectivityCheck)&&a.l?_.x(d,gi(a.h,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;Tn(a,c);_.z(d)})};Tn=function(a,b){Wn(a);a.f!==b&&(a.f=b,a.l&&a.l.getConfiguration().connectivityCheck&&a.l.trigger(new _.J(Qd,{online:a.f})))};Zn=function(){for(var a=0;a<Yn.length;++a)Yn[a].zc()};
225
- _.$n=function(a,b){b=b||0;for(var c={priority:b,zc:a},d=0;d<Yn.length;d++)if(Yn[d].priority<b){Yn.splice(d,0,c);return}Yn.push(c)};ao=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};bo=function(a,b,c){this.g=a;this.f=b;JSON.parse(_.vh(_.kk(a)));this.a=JSON.parse(_.vh(_.kk(b)));this.h=c};co=function(a){this.license=a;this.a=null;this.f=new _.H("clpp.utils.LicenseKey")};
226
- eo=function(a){if(!a.a){var b=a.license.split(".");if(3!==b.length)throw Error("Expected to find 3 data sections in JWT raw data");b=new bo(b[0],b[1],b[2]);a.a=b}return a.a};fo=function(a){switch((a.Gd()[0]||{src:"",type:""}).type){case _.cc:a="dash";break;case _.hc:a="ss";break;case _.Bj:a="hls";break;case _.Te:a=_.Fd;break;default:a=""}return a};go=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};
227
- ho=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};io=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};ko=function(a){var b=a.getConfiguration(),c="no";b.drm&&!_.K.va(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(cd)||jo(a).endsWith("drmtoday.com"))&&(c=cd);return c};
228
- lo=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.keySystem){case _.Rc:b="wv";break;case _.Qc:b="pr";break;case _.Pc:b="fps"}return b};mo=function(a){a=a.getDrmInfo();var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};no=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.videoRobustness){case Oa:case "HW_SECURE_ALL":b="L1";break;case Na:b="L2";break;case _.ob:case _.nb:b="L3"}return b};jo=function(a){a=a.getDrmInfo();return(new _.Lg(a&&a.licenseServerUri||"")).Oa};
229
- qo=function(a,b){var c="ie"===_.bi().browser,d=b.getConfiguration(),e=_.mf(Array.from(_.ck.keys())).concat(_.mf(b.ni()));d={"CL-KEY":a.license,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ea,"CL-USER-ID":go(d),"CL-ASSET-ID":ho(d),"CL-SESSION-ID":io(d),"CL-PLAYBACK-TYPE":b.isLive()?oo:po,"CL-CONTENT-TYPE":fo(b),"CL-PLUGINS":e.join(" "),"CL-DRM":ko(b),"CL-DRM-CDM":lo(b),"CL-DRM-SEC-LEVEL":no(b),"CL-DRM-OFFLINE":mo(b),"CL-DRM-IP":jo(b)};c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=
230
- e);e=_.Oh(["https://downloads.castlabs.com/r/register/"]);e.method="GET";e.headers=d;return(new _.ei).fetch(e).P.then(function(f){200===f.status&&c&&window.localStorage.setItem("cl_et",f.headers.etag);return Promise.resolve()})["catch"](function(f){a:{var g=eo(a);f=f.data;var h=f.status;if(g.a&&g.a.ilv)f=Promise.resolve();else{switch(h){case 403:case 404:g=7101;var l="castLabs Player license is invalid";if(403===h){h=l;l="";try{l=JSON.parse(decodeURIComponent(f.responseText)).message}catch(m){}f=
169
+ _.pm=function(a,b){try{a.a.debug("Attempting to load an offline session",b);var c=a.I.createSession(_.Xd)}catch(f){var d=new _.L(_.M,6,6005,{browserError:f.message});a.T(d);return Promise.reject(d)}a.A.on(c,Bd,a.jg.bind(a));a.A.on(c,qd,a.fg.bind(a));var e={initData:null,loaded:!1,Ge:Infinity,nb:null,Aa:new _.Sh,periodId:null,Bd:[],keyId:null,bb:[],initDataType:null,Yb:null,sessionContext:{ldlDelay:0,customData:{}}};e.Aa["catch"](function(){});a.g.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.a.debug("Loaded offline session",
170
+ b,f);if(!f)return a.g["delete"](c),a.T(new _.L(_.M,6,6013)),null;e.loaded=!0;tm(a)&&(a.w||a.a.info(ya),a.w=!0,a.D=!1,a.H.resolve());return c},function(f){a.j||(a.g["delete"](c),a.T(new _.L(_.M,6,6005,{browserError:f.message})))})};um=function(a,b,c,d){if(!b&&c!==_.oe)return!1;d=b||Yk(d);a=_.u(a.g.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||c===_.oe&&(e.keyId||Yk(e.initData))===d)return!0;return!1};
171
+ om=function(a,b,c,d,e,f,g){f=void 0===f?null:f;g=void 0===g?!1:g;var h,l,m,n,p,q,r,w,z,C,E,F,B,I,O,S,Ba,ja,pa,Ca,Ga;_.A(function(qa){switch(qa.a){case 1:if(!e.length)return qa["return"]();h=b||vm(a,d,e,f);if(g){qa.G(2);break}if(!um(a,h,d,e)){qa.G(2);break}l=!0;if("skd"!==d||a.h.enableSessionCacheForSkd){qa.G(4);break}m=_.u(a.g.keys());n=m.next();case 5:if(n.done){qa.G(4);break}p=n.value;q=a.g.get(p);if(!h||q.keyId!==h){qa.G(6);break}a.a.warn("Close and re-open session for "+h);_.zf(qa,9);return _.x(qa,
172
+ p.close(),11);case 11:_.Af(qa,10);break;case 9:r=_.Bf(qa),a.a.warn("Unable to close session",r);case 10:l=!1;case 6:n=m.next();qa.G(5);break;case 4:if(l)return a.a.warn("Skip creating a new session for "+h),qa["return"]();case 2:try{z=a.F?_.Xd:Be,w=a.I.createSession(z),a.a.info("Created new "+z+" session for Key ID: '"+h+"'. Init data type: "+(d+"."))}catch(ta){return a.T(new _.L(_.M,6,6005,{browserError:ta.message})),qa["return"]()}a.A.on(w,Bd,a.jg.bind(a));a.A.on(w,qd,a.fg.bind(a));C={Yb:f,Bd:[],
173
+ initData:e,initDataType:d,keyId:h,bb:h?[h]:[],loaded:!1,Ge:Infinity,periodId:c,nb:null,Aa:new _.Sh,sessionContext:{ldlDelay:0,customData:{}}};C.Aa["catch"](function(){});f&&(E=a.g.get(f),C.sessionContext=E.sessionContext);a.g.set(w,C);h&&!a.m.get(h)&&a.m.set(h,te);if(e)for(F=0;F<a.f.initData.length;F++)B=a.f.initData[F],B.keyId&&!C.bb.includes(B.keyId)&&_.ok(B.initData,e)&&(C.keyId||(C.keyId=B.keyId),C.bb.push(B.keyId),a.m.get(B.keyId)||a.m.set(B.keyId,te));I=_.K;O=I.jb;S=a.C.getConfiguration();Ba=
174
+ a.keySystem();ja=a.h.Qa[Ba];Ca=(pa=ja.modifiers)&&pa.transformInitData;O(Ca)||(Ca=wm);try{e=Ca({playerConfig:S,initData:e,initDataType:d,drmInfo:a.f,drmSystemConfig:ja,sessionContext:C.sessionContext,emeApi:a.o.Uc()})}catch(ta){return Ga=ta,ta instanceof _.L||(Ga=new _.L(_.M,6,6016,ta)),C.Aa&&C.Aa.reject(ta),a.T(Ga),qa["return"]()}a.a.info("Generate License Request for key ID: '"+h+"'");w.generateRequest(d,e.buffer)["catch"](function(ta){if(!a.j){var Ma=null;ta.errorCode&&ta.errorCode.systemCode&&
175
+ (Ma=ta.errorCode.systemCode,0>Ma&&(Ma+=Math.pow(2,32)),Ma="0x"+Ma.toString(16));a.T(new _.L(_.M,6,6006,{browserError:ta.message,error:ta,extended:Ma},ta))}});_.y(qa)}})};
176
+ vm=function(a,b,c,d){d=void 0===d?null:d;if("skd"===b){a:{b=d;b=void 0===b?null:b;d=a.keySystem();var e=a.h.Qa[d];d=a.C.getConfiguration();e=e&&e.modifiers&&e.modifiers.extractContentId;_.K.jb(e)||(e=xm);try{var f={ldlDelay:0,customData:{}};b&&(f=a.g.get(b).sessionContext);var g=e(d,c,f);a.a.debug("Extracted Content ID '"+g+"' from SKD");var h=g;break a}catch(l){a.a.warn("Unable to extract Content ID from SKD",l)}h=""}return h}if(b===_.oe)return Yk(c)||"";if(b===_.Cc)try{e=a.keySystem();if(Dm(e))return _.Ol(c).a;
177
+ if(e.match(/^com\.widevine\.alpha/)&&(f=_.Il(c)))return f.a}catch(l){a.a.warn("Unable to extract Key ID from PSSH data",l)}return""};xm=function(a,b){var c=_.Xk(b);_.Sf("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
178
+ wm=function(a){var b=a.playerConfig,c=a.initData,d=a.drmInfo,e=a.drmSystemConfig,f=a.sessionContext,g=a.emeApi;if("skd"===a.initDataType&&"APPLE"===g){a=_.K.jb;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=xm);a="";try{a=e(b,c,f)}catch(h){throw new _.L(_.M,6,6103);}if(!a.length)throw new _.L(_.M,6,6101,"Content ID is an empty string");c=Zk(c,a,d)}return c};
179
+ Hm=function(a,b){var c=b.target,d=a.g.get(c),e=a.keySystem(),f=!1;e.match(/^com\.widevine\.alpha/)&&b.message&&2===b.message.byteLength?(f=!0,a.a.info("WV Server certificate request for SID:'"+(c.sessionId+" from msg '")+(b.messageType+"'"))):a.a.info("License request for SID:'"+(c.sessionId+"'/KID:'"+d.keyId+"' from msg '")+(b.messageType+"'"));var g=a.f.licenseServerUri;e=a.h.Qa[e];"individualization-request"===b.messageType&&e&&e.individualizationServer&&(g=e.individualizationServer);var h=_.Nh([g],
180
+ a.h.attemptParameters);h.type=3;h.body=b.message;h.method="POST";h.licenseRequestType=b.messageType===td&&d.Yb?sd:f?Ec:b.messageType;h.sessionId=c.sessionId;if(h.licenseRequestType===sd)a.C.onEvent(new _.J(bd));Dm(a.f.keySystem)&&Em(a,h);rk(a.P,h);var l=Date.now();return Fm(a,h,d.sessionContext).then(function(){a.a.debug("Sending DRM license request to",g,h);return a.C.zb.fetch(h).O}).then(function(m){if(a.j)return Promise.reject();var n=Date.now()-l,p=Gm(a,m),q="";p&&(q=" RID:"+p);p=m&&m.data?m.data.byteLength:
181
+ -1;f?a.a.info("WV Server certificate response for SID:'"+(c.sessionId+"' ")+(p+" bytes in ")+(n+"ms"+q)):a.a.info("License response for SID:'"+(c.sessionId+"'/KID:'")+(d.keyId+"' ")+(p+" bytes in ")+(n+"ms"+q));var r=sk(a.P,m);return c.update(m.data).then(function(){if(!f){var w=qm(a),z=r?Date.now()+1E3*r.delay:Number.NaN;w=new _.J(_.dd,{keySystem:a.keySystem(),expirationTime:w,expectedRenewalTime:z});a.C.onEvent(w);d&&(d.nb&&d.nb.resolve(),d.Yb&&(w=d.Yb,a.a.info("Closing expired session '"+w.sessionId+
182
+ "'"),Ul(w)["catch"](function(){a.a.warn("Unable to close expired session in time")}),(w=a.g.get(d.Yb))&&w.Ac&&w.Ac.stop(),a.g["delete"](d.Yb),d.Yb=null),(new _.Si(function(){a.j||(d.loaded=!0,d.Aa&&d.Aa.resolve(),tm(a)&&(a.w||a.a.info(ya),a.w=!0,a.D=!1,a.H.resolve()))})).Z(5),null!==d.initData&&(0<d.sessionContext.ldlDelay||r&&tk(a.keySystem()))&&(w=new _.Si(function(){!a.j&&a.P&&(a.a.info("Updating CSL Sessions"),Dm(a.keySystem())?om(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):a.keySystem().startsWith(_.Rc)&&
183
+ c.update(_.zh("renew")))}),d.Ac=w,w.Z(r?r.delay:d.sessionContext.ldlDelay)))}})},function(m){var n,p,q,r;return _.A(function(w){if(a.j)return w["return"]();n=m.data.headers;p=vl(n);q=Object.assign({message:_.Ha,url:m.data.url,status:m.data.status,response:m.data.response},n?{headers:n}:{},p);r=new _.L(_.M,6,6007,q,m);a.T(r);d&&d.nb&&d.nb.reject(r);d&&d.Aa&&d.Aa.reject(r);_.y(w)})})["catch"](function(m){a.j||(m===ob?a.a.info("Ignore update for closed sessions"):(m=new _.L(_.M,6,6008,{browserError:m.message}),
184
+ a.T(m),d&&d.nb&&d.nb.reject(m),d&&d.Aa&&d.Aa.reject(m)))})};Gm=function(a,b){if(!b||!b.headers)return"";var c=b.headers["x-dt-li"];if(c)try{return JSON.parse(_.vh(_.lk(c))).ti}catch(d){a.a.warn("Unable to parse DRMtoday Request ID",d)}return""};
185
+ Em=function(a,b){var c=xh(b.body,!0,!0);if(c.includes("PlayReadyKeyMessage")){a.a.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(_.Oe).textContent;b.body=_.lk(c.querySelector("Challenge").textContent).buffer}else a.a.debug("PlayReady request is already unwrapped."),b.headers[va]="text/xml; charset\x3dutf-8"};
186
+ Fm=function(a,b,c){var d,e,f,g,h,l;return _.A(function(m){if(1==m.a)return d=a.C.getConfiguration(),_.x(m,lm(a,d),2);e=a.keySystem();h=(g=(f=a.h.Qa[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;h?b.requestModifiers.push(function(n){return h(d,n,c)}):e.startsWith(_.Rc)&&b.requestModifiers.push(function(n){return _.$k(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Rc)&&b.responseModifiers.push(function(n){return _.al(n)});_.y(m)})};
187
+ Rl=function(a){var b=a.m,c=a.da;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.T(new _.L(_.M,6,6014));a.C.Ke(_.K.jf(c));a.w||a.a.info(ya);a.w=!0;a.D=!1};gm=function(a){var b;return _.A(function(c){b=a.ba.map(function(d){return Hm(a,d)});a.Ra=!0;a.ba=[];return _.x(c,Promise.all(b),0)})};Dm=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};_.rm=function(a){return Dm(a)?_.Sc:a};
188
+ Sl=function(a){a.g.forEach(function(b,c){var d=b.Ge,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.C.onExpirationUpdated(c.sessionId,e),b.Ge=e)})};tm=function(a){a=a.g.values();return _.fh(a,function(b){return b.loaded})};
189
+ Zl=function(a,b){var c=[];b.forEach(function(f,g){c.push({keySystem:g,licenseServerUri:f.licenseUrl,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:[]})});for(var d=_.u(a),e=d.next();!e.done;e=d.next())e.value.drmInfos=c};
190
+ sm=function(a,b,c,d,e){var f={};a=_.u(a);for(var g=a.next();!g.done;f={ta:f.ta},g=a.next()){f.ta=g.value;b.includes(f.ta.licenseServerUri)||b.push(f.ta.licenseServerUri);f.ta.serverCertificate&&(c.some(function(m){return function(n){return _.ok(n,m.ta.serverCertificate)}}(f))||c.push(f.ta.serverCertificate));if(f.ta.initData){var h=_.u(f.ta.initData);for(g=h.next();!g.done;g=h.next())g.value.periodId=f.ta.periodId;h={};var l=_.u(f.ta.initData);for(g=l.next();!g.done;h={qd:h.qd},g=l.next())h.qd=g.value,
191
+ d.some(function(m){return function(n){var p=m.qd;return n.keyId&&n.keyId==p.keyId&&n.periodId===p.periodId?!0:!1}}(h))||d.push(h.qd)}if(f.ta.keyIds)for(g=0;g<f.ta.keyIds.length;++g)e.includes(f.ta.keyIds[g])||e.push(f.ta.keyIds[g])}};
192
+ am=function(a,b){if(a.keySystem){var c=_.rm(a.keySystem),d=b[c];c===_.Td&&a.licenseServerUri||(d&&(a.licenseServerUri=d.licenseUrl||""),a.keyIds||(a.keyIds=[]),d&&(a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=d.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=d.persistentStateRequired),a.videoRobustness||(a.videoRobustness=d.videoRobustness||""),a.audioRobustness||(a.audioRobustness=d.audioRobustness||""),a.serverCertificate||(a.serverCertificate=
193
+ d.serverCertificate||null)))}};Ul=function(a){var b,c;return _.A(function(d){if(1==d.a)return b=new Promise(function(e){(new _.Si(e)).Z(1)}),_.x(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.G("Timeout waiting for session close");_.y(d)})};_.Km=function(a,b){a&&b&&(Im.set(a,b),Jm.info("Registered TextDisplayerFactory: '"+a+"'"))};
194
+ _.Lm=function(a,b){var c=b.find(function(d){return(d=Im.get(d))?d.ca(a):!1});if(null==c)return Jm.warn("Subtitles may not work as expected. No compatible text displayer found for this platform."),null;Jm.info("Chosen the text displayer: "+c);return Im.get(c)};Mm=function(){this.a=null;this.f=[]};_.Nm=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})}};
195
+ Om=function(a,b){var c=0;a.a&&a.a.state==b&&(c+=a.a.duration);for(var d=_.u(a.f),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state==b?e.duration:0;return c};Pm=function(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=_.u(a.f),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.a&&c.push(b(a.a));return c};Qm=function(){this.g=this.f=this.h=null;this.a=[]};Rm=function(a){return a.a.map(function(b){return _.K.Ma(b)})};
196
+ _.Sm=function(){this.f=this.m=this.w=this.B=this.h=this.j=this.g=this.o=NaN;this.a=new Mm;this.A=new Qm};_.Tm=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:[]}};_.Um=function(a){this.f=a;this.a=void 0};Wm=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Vm.value().get(b),c.one(a,b,d))};
197
+ $m=function(a){this.g=new _.H("clpp.StateManager");this.l=a;this.a=new _.eg;this.f=_.Xm;this.A=_.Ym;this.I=0;this.w=-1;this.M=this.o=this.J=this.B=0;this.j=this.m=this.F=!1;this.H=0;this.h=null;this.K=0;this.P=_.Zi();this.D=!1;this.J=Date.now();Zm(this)};an=function(a,b){return Object.keys(b)[a]};
198
+ cn=function(a,b){var c={type:_.se};b===_.wc||b===_.vc?(c.reason=a.w,b===_.wc?c.timeSinceLastStateChangeMS=a.I:c.bufferedTimeMS=a.B):(a.f===_.bn&&(c.reason=a.w),a.A===_.bn&&(c.reason=a.w,c.bufferedTimeMS=a.B),c.currentState=a.f,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.I);return c};
199
+ gn=function(a,b){if(a.f===b)return!1;var c=Date.now(),d=a.f===_.bn;a.A=a.f;a.f=b;a.A===_.dn&&(a.J=c,a.o=0);a.o||(a.o=a.J||c);a.I=c-a.o;a.o=c;b===_.bn?(a.M=a.o,a.w=a.m?1:2,a.g.info("Buffering started. Reason: "+an(a.w-1,_.en)),c=cn(a,_.wc),a.Tb(_.wc,c)):d&&(a.B=a.o-a.M,a.g.info("Buffering finished. Reason: "+an(a.w-1,_.en)+". Buffering time: "+a.B+" ms"),c=cn(a,_.vc),a.Tb(_.vc,c));c=an(a.A,_.fn);d=an(a.f,_.fn);a.g.info(_.fb+c+" -\x3e "+d);a.Tb(_.se,cn(a,""));return!0};
200
+ mn=function(a,b){if(a.f===_.hn)a.g.warn("Player is in error state, aborting any further state checks");else{var c=a.l.isPaused();var d=a.l.getPosition();var e=a.l.getDuration();if(d=a.l.isEnded()||a.f===_.dn&&1>=Math.abs(d-e)||c&&d>=e)gn(a,_.dn)&&a.g.debug("Player claims to be in ended state, not checking more");else if(b!==_.Fe){e=a.l.getPosition();e=null!==e&&void 0!==e&&0<=e?a.l.getBufferInfo().Da(e,!0):-1;a.H=e;e=a.l.getSurface().getMedia();a.h=e?e.readyState:null;a.K=a.l.getPlaybackRate()||1;
201
+ e=typeof a.h===_.k&&2>a.h&&2===e.networkState;var f=typeof a.h===_.k&&0>=a.H&&a.f===_.Xm,g=typeof a.h===_.k&&2>=a.h&&a.j;e=a.m||f||e||g;!a.P||a.l.isLive()||a.f!==_.bn||e||(f=b===_.le&&4===a.h,(g=a.A===_.jn)&&!a.D?e=!0:g||a.D||f||(e=!0));f=!1;e?f=gn(a,_.bn):c?f=gn(a,_.kn):a.F&&(f=gn(a,_.ln));f&&(a.D=!1);a.g.debug("Video state check for event "+b+":: seeking: "+a.m+", waiting: "+a.j+", playing: "+a.F+", paused: "+c+", readyState: "+a.h+", rate: "+a.K+", buffer: "+a.H+", ended: "+d+". Changed state: "+
202
+ f+", Current state: "+an(a.f,_.fn))}}};
203
+ Zm=function(a){function b(d){return mn(a,d.type)}a.g.debug("Start watching for video events for "+a.l.namespace());var c=a.l;a.a.on(c,_.id,function(){a.j=!1;gn(a,_.dn)});a.a.on(c,xc,b);a.a.on(c,_.$d,function(){a.F=!0;a.j=!1;mn(a,_.$d)});a.a.on(c,_.Vd,function(){a.F=!1;a.j=!1;mn(a,_.Vd)});a.a.on(c,_.Fe,b);a.a.on(c,_.ee,b);a.a.on(c,_.le,function(d){a.m=!1;a.j=!1;mn(a,d.type)});a.a.on(c,_.me,function(d){a.m=!0;mn(a,d.type)});a.a.on(c,pe,b);a.a.on(c,_.Ze,function(){a.j=!0;mn(a,_.Ze)});a.a.on(c,_.jd,function(d){return a.T(d)});
204
+ a.a.on(c,_.xd,b);a.a.on(c,yc,function(){a.D=!0;mn(a,yc)});a.a.on(c,_.Ne,function(d){a.m=!0;mn(a,d.type)});a.a.on(c,_.Me,function(d){a.m=!1;a.j=!1;mn(a,d.type)})};nn=function(a){a=(new _.Lg(a)).wa;if(!a)return null;a=a.toUpperCase();return _.Dh(a,".MPD")?_.dc:_.Dh(a,".M3U8")?_.Cj:_.Dh(a,".MP4")?_.Te:_.Dh(a,"MANIFEST")||_.Dh(a,".ISM")?_.ic:null};
205
+ _.pn=function(a){var b;_.bk(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.ve||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=on(b[c]);d&&a.push(d)}return a};
206
+ on=function(a){var b=null;_.K.Y(a)&&(a={url:a});typeof a===_.Ld&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.K.R(a.drmProtected)||typeof a.drmProtected!==_.uc||(b.drmProtected=a.drmProtected),_.K.R(a.isLive)||typeof a.isLive!==_.uc||(b.isLive=a.isLive),_.K.R(a.name)||typeof a.name!==_.ve||(b.name=a.name),_.K.R(a.Db)||typeof a.Db!==_.ve||(b.Db=a.Db),_.K.R(a.audioMimeType)||typeof a.audioMimeType!==_.ve||(b.audioMimeType=a.audioMimeType));b&&!b.type&&(b.type=nn(a.url),b.type?
207
+ qn.debug("Detect media type "+b.type+" for "+a.url):qn.warn("Unable to detect media type for "+a.url));return b};rn=function(){_.ck.call(this,Mc);this.w=this.H=!1;this.j=this.A=this.m=this.a=this.h=null;this.g=new _.eg;this.F=this.D=this.f=this.I=null};
208
+ un=function(a,b){return a.w?sn():new Promise(function(c){a.a||(a.g.on(b,_.jd,function(){var d=tn(a);if(d)a.onError(d)}),a.g.on(b,_.je,function(){var d=b.videoWidth,e=b.videoHeight,f=a.getTrackManager();f&&0<d&&0<e&&(f.w={width:d,height:e});a.trigger(new _.J(_.tc,{detail:{width:d,height:e}}))}),a.a=b);c()})};vn=function(a){return a.w?sn():new Promise(function(b){if(a.a){var c=a.a;a.g.off(c,_.jd);a.g.off(c,_.je);a.a=null}b()})};
209
+ xn=function(a){var b,c,d,e,f;return _.A(function(g){if(1==g.a){if(a.w)return g["return"](sn());b=a.o[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=_.wn;d=_.xk(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.m=new _.Tl({zb:e,onError:function(h){return a.onError(h)},Ke:function(){},onExpirationUpdated:function(h,l){a.trigger(new _.J(_.$c,
210
+ {expirationTime:l}))},onEvent:function(h){h instanceof _.J?a.dispatchEvent(h):a.log.debug(_.wb,h.type)},getConfiguration:function(){return a.getConfiguration()},Fc:function(){return a.Fc()}});a.m.h=d;f={id:0,language:_.Ie,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,
211
+ Ja:0,mimeType:_.Te,codecs:"",encrypted:!0,keyId:null,language:_.Ie,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,wk:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,hk:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.x(g,_.Yl(a.m,[f],[]),2)}return 3!=g.a?_.x(g,_.km(a.m,a.a),3):g["return"](Promise.resolve())})};
212
+ yn=function(a,b){Wm(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.g,function(){a.getState()!==_.hn&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};tn=function(a){if(null===a.o||!a.a.error)return null;var b=a.a.error.code;if(1===b)return null;var c=a.a.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new _.L(_.M,3,3016,{code:b,qk:c,message:a.a.error.message})};sn=function(){return Promise.reject(new _.L(_.M,7,7E3))};
213
+ zn=function(a){if(a.w)return new _.Th(sn(),function(){});var b=a.o[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.I;c&&yn(a,c);if(d.preload!==_.Kd)a.g.one(d,_.xd,function(){var g=Date.now()/1E3-e;a.f.w=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.Zh()||_.$h())&&d.load();var f=new _.Sh;a.g.one(d,pe,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.D||(a.D=(new _.Si(function(){f.reject(new _.L(_.M,3,3100,{message:"Unable to load media source successfully from "+
214
+ b.url,uri:b.url},d.error))})).Z(g))});Wm(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.g,function(){return f.resolve()});d.error?f.reject(tn(a)):d.preload===_.Kd&&(a.log.warn('With \x3cvideo preload\x3d"none"\x3e, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way. Please do not use preload\x3d"none" with PRESTOplay for Web Apps.'),f.resolve());a.g.one(d,_.jd,function(){f.reject(tn(a))});
215
+ return new _.Th(f,function(){var g=new _.L(_.M,7,7001);f.reject(g);return Promise.resolve()})};
216
+ An=function(a,b){Wm(b,HTMLMediaElement.HAVE_CURRENT_DATA,a.g,function(){if(a.isLive()&&a.getState()!==_.hn){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)}))}})};Bn=function(){};
217
+ _.En=function(a){a&&(0<=Cn.indexOf(a)?Dn.warn("Factory '"+a.name()+"' is already registered"):(Cn.push(a),Dn.info("Factory "+a.name()+"' has been registered.")))};Gn=function(a,b){var c=Cn.find(function(d){return d.ca(a,b)});c||(c=new Fn);Dn.info("Chosen ads: "+c.name());return c};_.Hn=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};_.In=function(a,b){a.classList.add(b)};
218
+ _.Jn=function(a,b){if(a&&typeof b===_.Ld)for(var c in b)a.style[c]=b[c]};_.Kn=function(a){return document.createElement(a)};Ln=function(){this.a=null;this.g=new Set;this.f=null;this.set(null)};Mn=function(a,b){a.a&&0!==b.length&&(a.a.classList.add(b),a.g.add(b))};Nn=function(a,b){var c=new MutationObserver(function(){var d=Array.from(a.g.values());Hg(Array.from(b.classList),Array.from(d))||b.classList.add.apply(b.classList,_.mf(d))});c.observe(b,{attributes:!0,attributeFilter:["class"]});return c};
219
+ Rn=function(a,b){this.a=new _.H("clpp.PlayerSurface");this.w=_.K.Va(On,b);this.g=new Ln;this.h=null;this.f=new Ln;this.m=Pn;Pn+=1;this.o="clpp-video-"+this.m;this.j=new _.eg;if(null==a)throw new _.L(_.M,7,7102,"No Media element was provided");if(a instanceof Element)var c=a;else if(c=document.getElementById(a),!c)throw new _.L(_.M,7,7004,"Media element not found");var d=this.w;this.a.debug("Initializing Player Surface on ",c);if("cast-media-player"===c.tagName.toLowerCase())this.h=c;else{if(!(c instanceof
220
+ HTMLMediaElement))throw new _.L(_.M,7,7005,"Media element is not instance of HTMLMediaElement");if(!c.hasAttribute("crossorigin")){var e=d.crossorigin;this.a.info("Setting media elements crossorigin to "+e);c.setAttribute("crossorigin",e)}this.g.set(c);if(d.disableContainer)d=null;else if(d.containerEl){if(c.parentNode!==d.containerEl)throw new _.L(_.M,7,7006,"Container element is not a direct parent of media element");d=d.containerEl}else{d=document.createElement(_.Zc);c.parentNode?c.parentNode.replaceChild(d,
221
+ c):this.a.warn("Player Surface Element has no parent. Can not inject container. You have to manually add playerSurface.getContainer() to the DOM!");e=[];for(var f=0;f<c.classList.length;f++)e.push(c.classList[f]);e=_.u(e);for(f=e.next();!f.done;f=e.next())f=f.value,c.classList.remove(f),_.In(d,f);d.style.cssText=c.style.cssText;c.removeAttribute(_.xe);e=_.u([_.ff,_.md]);for(f=e.next();!f.done;f=e.next()){f=f.value;var g=c.getAttribute(f);g=parseInt(g,10);isNaN(g)||(d.style[f]=g+_.de);_.Zh()||c.removeAttribute(f)}d.appendChild(c)}d&&
222
+ (this.f.set(d),Mn(this.f,"clpp-container"),Mn(this.f,this.o),Mn(this.g,_.Hc),Mn(this.g,"clpp-video"));Qn(this,c,d)}};Qn=function(a,b,c){(_.$h()&&53===Wi().major||_.$h()&&68===Wi().major||_.Xi())&&!b.hasAttribute(Vc)&&(b.style.opacity="0",b.setAttribute(Vc,""),a.j.one(b,fd,function(){b.removeAttribute(Vc);b.style.opacity="1";c&&(c.style.opacity="1")}))};Tn=function(a){this.l=a;this.h=this.l.getNetworkEngine();this.a=new _.eg;this.g=null;this.f=!0;Sn(this)};
223
+ Sn=function(a){a.a.on(window,"offline",function(){Un(a,!1)});a.a.on(window,"online",function(){a.f||Vn(a)});a.a.on(a.l,pe,function(){return Wn(a)});a.a.on(a.l,"suspend",function(){return Wn(a)});a.a.on(a.l,_.Ze,function(){return Wn(a)});a.a.on(a.l,_.$d,function(){a.f||Vn(a)});a.a.on(a.l,_.ce,function(){a.f||Vn(a)});a.a.on(a.l,_.se,function(){switch(a.l.getState()){case _.bn:Wn(a);break;default:Wn(a)}})};Vn=function(a){a.l.getConfiguration().connectivityCheck&&(Xn(a),a.g=(new _.Si(function(){return Yn(a)})).Z(5))};
224
+ Wn=function(a){a.f&&Vn(a)};Xn=function(a){a.g&&(a.g.stop(),a.g=null)};Yn=function(a){var b,c;return _.A(function(d){if(1==d.a)return(b=a.l.getConfiguration().connectivityCheck)&&a.l?_.x(d,fi(a.h,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;Un(a,c);_.y(d)})};Un=function(a,b){Xn(a);a.f!==b&&(a.f=b,a.l&&a.l.getConfiguration().connectivityCheck&&a.l.trigger(new _.J(Rd,{online:a.f})))};$n=function(){for(var a=0;a<Zn.length;++a)Zn[a].xc()};
225
+ _.ao=function(a,b){b=b||0;for(var c={priority:b,xc:a},d=0;d<Zn.length;d++)if(Zn[d].priority<b){Zn.splice(d,0,c);return}Zn.push(c)};bo=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};co=function(a,b,c){this.g=a;this.f=b;JSON.parse(_.vh(_.lk(a)));this.a=JSON.parse(_.vh(_.lk(b)));this.h=c};eo=function(a){this.license=a;this.a=null;this.f=new _.H("clpp.utils.LicenseKey")};
226
+ fo=function(a){if(!a.a){var b=a.license.split(".");if(3!==b.length)throw Error("Expected to find 3 data sections in JWT raw data");b=new co(b[0],b[1],b[2]);a.a=b}return a.a};go=function(a){switch((a.Gd()[0]||{src:"",type:""}).type){case _.dc:a="dash";break;case _.ic:a="ss";break;case _.Cj:a="hls";break;case _.Te:a=_.Hd;break;default:a=""}return a};ho=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};
227
+ io=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};jo=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};lo=function(a){var b=a.getConfiguration(),c="no";b.drm&&!_.K.va(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(ed)||ko(a).endsWith("drmtoday.com"))&&(c=ed);return c};
228
+ mo=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.keySystem){case _.Tc:b="wv";break;case _.Sc:b="pr";break;case _.Rc:b="fps"}return b};no=function(a){a=a.getDrmInfo();var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};oo=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.videoRobustness){case Oa:case "HW_SECURE_ALL":b="L1";break;case Na:b="L2";break;case _.nb:case _.mb:b="L3"}return b};ko=function(a){a=a.getDrmInfo();return(new _.Lg(a&&a.licenseServerUri||"")).Na};
229
+ ro=function(a,b){var c="ie"===_.ai().browser,d=b.getConfiguration(),e=_.mf(Array.from(_.dk.keys())).concat(_.mf(b.ki()));d={"CL-KEY":a.license,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ea,"CL-USER-ID":ho(d),"CL-ASSET-ID":io(d),"CL-SESSION-ID":jo(d),"CL-PLAYBACK-TYPE":b.isLive()?po:qo,"CL-CONTENT-TYPE":go(b),"CL-PLUGINS":e.join(" "),"CL-DRM":lo(b),"CL-DRM-CDM":mo(b),"CL-DRM-SEC-LEVEL":oo(b),"CL-DRM-OFFLINE":no(b),"CL-DRM-IP":ko(b)};c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=
230
+ e);e=_.Nh(["https://downloads.castlabs.com/r/register/"]);e.method="GET";e.headers=d;return(new _.di).fetch(e).O.then(function(f){200===f.status&&c&&window.localStorage.setItem("cl_et",f.headers.etag);return Promise.resolve()})["catch"](function(f){a:{var g=fo(a);f=f.data;var h=f.status;if(g.a&&g.a.ilv)f=Promise.resolve();else{switch(h){case 403:case 404:g=7101;var l="castLabs Player license is invalid";if(403===h){h=l;l="";try{l=JSON.parse(decodeURIComponent(f.responseText)).message}catch(m){}f=
231
231
  h+(": "+l)}else f=l+"!";l=f;break;case 412:g=7103;l="License requires a viewer ID. It should be supplied either via the `viewerId` config or in case of DRMtoday via the `drm.customData.userID` config.";break;default:f=Promise.resolve();break a}a.f.error(Ta+l);f=Promise.reject(new _.L(_.M,7,g,l))}}return f})};
232
- V=function(a,b,c){_.Rj.call(this);var d=this;Zn();this.g=new _.H("clpp.Player");if(!a)throw new _.L(_.M,7,7102);this.A=new _.eg;this.f=this.T=b||_.Xj();this.m=null;void 0===this.f.license&&(this.f.license=Vj,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 _.L(_.M,7,7101,"No license provided in configuration!");this.h=new Qn(a,c);this.a=this.w=null;this.I=
233
- new _.ei;this.j=null;this.L=[];this.N={};this.o=null;this.J=!0;this.K=this.F=!1;this.D=this.Dc=null;this.ne=!1;this.V=new Sn(this);this.R=!1;this.B=function(f){(f=f.detail)&&f.currentState===_.kn&&(d.off(_.se,d.B),ro(d))};this.on(_.se,function(){d.getState()===_.gn&&d.unload()});this.on(_.Zb,this.ag.bind(this));this.on(_.Yb,this.ag.bind(this));so(this,this.f.license);this.h.getMedia()&&(a=this.h.getMedia(),a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),this.g.debug("Removed autoplay attribute from video element. Auto play will be handled by configuration."),
234
- void 0===this.f.autoplay&&(this.f.autoplay=!0,this.g.debug("Setting autoplay in configuration since it was specified in the video element"))));a=[];b=_.u(to);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)}}uo(this,a);_.ck.clear()};_.vo=function(a,b){b!==a.a&&(a.a&&(a.a.removeDelegate(a),a.a.destroy()),a.a=b,a.a&&(a.a.init(a.h,a.f),a.a.setNetworkEngine(a.getNetworkEngine()),a.a.addDelegate(a)))};
235
- so=function(a,b){a.w=new co(b);a.w.verify()["catch"](function(c){setTimeout(function(){a.g.error(Ta+c);a.trigger(new _.J(_.hd,{detail:new _.L(_.M,7,7101)}));a.destroy()},1E3)})};
236
- ro=function(a){if(!a.R){a.R=!0;a.h.getMedia()||a.h.getCastElement();a.w||(a.w=new co(a.f.license));var b=Object.keys(a.N);qo(a.w,{getConfiguration:a.getConfiguration.bind(a),Gd:a.Gd.bind(a),getDrmInfo:a.getDrmInfo.bind(a),ni:function(){return b},isLive:a.isLive.bind(a)}).then(function(){a.g.debug("License verified remotely")})["catch"](function(c){setTimeout(ao,1E3,{release:a.release.bind(a),destroy:a.destroy.bind(a),onError:a.onError.bind(a)},c)})}};
237
- uo=function(a,b){a.L=b;for(var c=_.u(a.L),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.id();e&&(a.N[e]=d)}a.hc("onPlayerCreated")};
238
- wo=function(a){var b,c;return _.B(function(d){if(1==d.a){if(a.J)return a.g.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.off(_.se,a.B);a.A.off(a,_.se,a.B);a.A.off(document,Xe);a.trigger(new _.J(_.fe));a.R=!1;a.h&&a.h.release();return a.j?_.x(d,a.j.dispose(),3):d.H(2)}2!=d.a&&(a.j=null);gk(function(e){e.release()});if(a.a)return b=null,c=a.a.on(_.se,function(e){b=e}),d["return"](a.hc(_.Od).then(function(){a.a.removeDelegate(a);return Promise.all([a.a.release(),
239
- a.I.release()])}).then(function(){a.g.debug("Releasing player completed");b&&(a.g.debug("Re-post state change event after release"),a.trigger(b))})["finally"](function(){a.a.off(_.se,c);a.trigger(new _.J(ee))}));a.trigger(new _.J(ee));return d["return"](new Promise(function(e){return e()}))})};
240
- xo=function(a,b,c){return new Promise(function(d,e){var f;if(b){for(var g=f=null,h=0;h<b.length;h++);h=Object.values(_.Xf);for(var l=0;l<b.length;l++)for(var m=0;m<h.length;m++){var n={Jb:h[m],confidence:h[m].canPlay(b[l],c)};if(null===f||f.confidence<n.confidence)f=n,g=l}f&&typeof g===_.k&&0<f.confidence?(_.$f.debug("Player Factory '"+f.Jb.a()+"' can play",b[g]),f=new Uf(f.Jb,g)):(_.$f.error("No compatible Player Factory found for sources:",b),f=null)}else f=null;f?(g=f.Jb.create(),d(new Wf(g,f.a))):
241
- (f=new _.J(_.hd,{detail:new _.L(_.M,7,7003)}),a.trigger(f),e(f))})};
242
- _.zo=function(a,b){var c,d,e,f;return _.B(function(g){switch(g.a){case 1:if(a.F)throw Error("Player is already destroyed.");if(!a.h)throw Error("No surface associated with this player!");return _.x(g,a.release(),2);case 2:a.o=_.on(b);c=_.ak(b);a.f=_.Zj(a.T,c?b:{},{source:a.o});if(0===a.o.length)throw Error("Invalid request to load: could not find source to load");a.J=!1;e=0;if(!a.K&&2===a.canPlay(a.o[0],a.f)){g.H(3);break}return _.x(g,xo(a,a.o,a.f),4);case 4:f=g.f,d=f.a,e=f.f,a.K=!1;case 3:d?_.vo(a,
243
- d):a.a.addDelegate(a);yo(a);a.a&&a.a.setCdnErrorCallback(a.D);a.j=Fn(a,a.f).create(a);a.setSourceIndex(e);if(a.f.pauseWhenInBackground)a.A.on(document,Xe,function(){document.hidden?(a.g.debug("Player is hidden: pausing..."),a.pause()):(a.g.debug("Player is visible: resuming..."),a.play())});gk(function(h){h.Yb()});return _.x(g,a.hc("onContentWillLoad",a.f.source[e]),0)}})};
244
- _.Ao=function(a){return _.B(function(b){a.h.getMedia()||a.h.getCastElement();a.A.on(a,_.se,a.B);a.trigger(new _.J(xd));return _.x(b,Promise.all([a.a.load(a.f),a.j.load()]),0)})};Bo=function(a){var b=_.Fg(a.f.preferredTextLanguage).filter(function(d){return d}),c=a.getTrackManager().ha();b.some(function(d){var e=_.Ki(d);return(d=c.find(function(f){f=_.Ki(f.language||"");return _.Mi(f,e)}))?(a.getTrackManager().Ba(d),!0):!1})};
245
- _.Co=function(a){var b,c,d,e;return _.B(function(f){if(1==f.a){b=[];if(a.f.remoteTextTracks)for(c=_.u(a.f.remoteTextTracks),d=c.next();!d.done;d=c.next())e=d.value,b.push(a.getTrackManager().addTextTrack(e));return _.x(f,Promise.all(b),2)}return 3!=f.a?(Bo(a),gk(function(){}),_.x(f,a.hc("onContentLoaded"),3)):a.f.autoplay?_.x(f,a.play(),0):f.H(0)})};yo=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.B(function(c){if(!a.Dc||!a.ne)return c.H(0);a.ne=!1;return _.x(c,a.Dc(b),0)})})};
246
- _.Do=function(a){a&&(0<=to.indexOf(a)||to.push(a))};W=function(){};Eo=function(){};Fo=function(){};Go=function(){};En=function(){};Ho=function(){};_.Io=function(){};Jo=function(){this.a=null};Ko=function(){};Lo=function(){this.size=0;this.a=void 0;this.f=new _.H("clpp.drm.eme.MediaKeyStatusMap")};Mo=function(a,b){a.size=void 0===b?0:1;a.f.debug("Setting key status to",b);a.a=b};No=function(){};Oo=function(){};Po=function(){this.a=this.f=null};
247
- Qo=function(a,b){this.keySystem=a;if(a.startsWith(_.Pc))for(var c=_.u(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.he)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.Rd,distinctiveIdentifier:_.Rd,initDataTypes:e.initDataTypes,sessionTypes:[Be],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var h=_.u(e.audioCapabilities),l=h.next();!l.done;l=h.next())l=l.value,l.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&
248
- (d.audioCapabilities.push(l),g=!0));if(e.videoCapabilities)for(e=_.u(e.videoCapabilities),l=e.next();!l.done;l=e.next())h=l.value,h.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,h.contentType.split(";")[0])&&(d.videoCapabilities.push(h),g=!0));f||(g=WebKitMediaKeys.isTypeSupported(this.keySystem,_.Te));d=g?d:null}if(d){this.a=d;return}}c=Error(Ab);c.name=db;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
249
- Ro=function(a){this.g=null;this.h=new WebKitMediaKeys(a);this.f=new _.eg;this.j=0;this.a=new _.H(Jc);this.a.info("Created Media Keys for "+a)};
250
- So=function(a,b){a.g=b;_.hg(a.f);if(!b)return Promise.resolve();a.f.on(b,ed,function(c){_.Sf("AppleEmeManager.cancelNativeMediaEncryptedEvent_",c);"MediaEncryptedEvent"in window&&c instanceof MediaEncryptedEvent&&(a.a.info("Cancel native MediaEncryptedEvent when using Apple-prefixed EME"),c.stopImmediatePropagation())});a.f.on(b,ef,function(c){a.a.debug("Handle webkitNeedKey event");c=_.N(c.initData);if(_.sh(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");
251
- c=xh(c.subarray(4),!0);c=_.zh(c);var d=new Event(ed);d.initDataType="skd";d.initData=th(c);a.g.dispatchEvent(d)});Vm(b,HTMLMediaElement.HAVE_METADATA,a.f,function(){return b.webkitSetMediaKeys(a.h)});return Promise.resolve()};To=function(a,b){_.Rj.call(this);this.a=null;this.o=a;this.g=this.h=null;this.j=new _.eg;this.sessionId=b;this.expiration=NaN;this.closed=new _.Th;this.m=!1;this.keyStatuses=new Lo;this.f=new _.H(Jc)};Uo=function(a,b){Mo(a.keyStatuses,b);a.dispatchEvent(new _.J(pd))};Vo=function(){};
252
- Wo=function(){this.f=this.a=null;this.g="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.g="webkit")};
253
- Xo=function(a,b,c,d){this.g=a;this.a=this.keySystem=c;a=!1;c===_.Sd&&(this.a=af,a=!1);var e=!1;d=_.u(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=[],h=[],l=!1;if(f.audioCapabilities)for(var m=_.u(f.audioCapabilities),n=m.next();!n.done;n=m.next())n=n.value,n.contentType&&(l=!0,b.canPlayType(n.contentType.split(";")[0],this.a)&&(g.push(n),e=!0));if(f.videoCapabilities)for(g=_.u(f.videoCapabilities),n=g.next();!n.done;n=g.next())m=n.value,m.contentType&&(l=!0,b.canPlayType(m.contentType,
254
- this.a)&&(h.push(m),e=!0));l||(e=b.canPlayType(_.Te,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.he||a||(e=!1);if(e){this.f=f;return}}b=Ab;if(c===_.Sd||c===_.Rc)b="None of the requested configurations were supported.";c=Error(b);c.name=db;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};Yo=function(a,b){this.g=a;this.m=b;this.a=null;this.f=new _.eg;this.h=[];this.j=new Map};
255
- ap=function(a,b){a.a=b;_.hg(a.f);b&&(a.f.on(b,a.g+"needkey",function(c){var d=new Event(ed);d.initDataType=_.Ac;d.initData=th(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.g+"keymessage",function(c){var d=Zo(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.J(Ad,{messageType:e?sd:rd,message:c.message});_.Sf("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.Tf("Session not found",c.sessionId)}),a.f.on(b,a.g+"keyadded",function(c){if(c=
256
- Zo(a,c.sessionId))_.Sf("WebkitEmeManager.MediaKeySession.ready"),$o(c,"usable"),c.a&&c.a.resolve(),c.a=null}),a.f.on(b,a.g+"keyerror",function(c){var d=Zo(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?$o(d,_.Td):1===e?$o(d,"expired"):
257
- $o(d,_.od))}}))};Zo=function(a,b){var c=a.j.get(b);return c?c:(c=a.h.shift())?(c.sessionId=b,a.j.set(b,c),c):null};bp=function(a,b,c,d){_.Rj.call(this);this.o=a;this.h=b;this.m=!1;this.a=this.f=null;this.g=c;this.j=d;this.sessionId="";this.expiration=NaN;this.closed=new _.Th;this.keyStatuses=new Lo};
258
- dp=function(a,b,c){if(a.m)return Promise.reject(Error("The session is already initialized."));a.m=!0;try{if(a.j===_.Wd)if(c)var d=_.N(_.zh("LOAD_SESSION|"+c));else{var e=_.zh("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.N(b),e.byteLength);d=f}else d=_.N(b)}catch(h){return Promise.reject(h)}a.f=new _.Th;var g=cp(a,"generateKeyRequest");try{a.h[g](a.g,d)}catch(h){if(h.name!==Ra)return a.f=null,Promise.reject(h);(new _.Ri(function(){try{a.h[g](a.g,d)}catch(l){a.f.reject(l),
259
- a.f=null}})).Z(.01)}return a.f};ep=function(a,b,c){if(a.a)a.a.then(function(){return ep(a,b,c)})["catch"](function(){return ep(a,b,c)});else{a.a=b;if(a.g===af){var d=_.vh(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=_.kk(e.keys[0].k);e=_.kk(e.keys[0].kid)}else d=_.N(c),e=null;var f=cp(a,"addKey");try{a.h[f](a.g,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};$o=function(a,b){Mo(a.keyStatuses,b);a.dispatchEvent(new _.J(pd))};
260
- cp=function(a,b){return a.o?a.o+b.charAt(0).toUpperCase()+b.slice(1):b};fp=function(){};
261
- gp=function(a,b,c,d,e){_.zk.call(this,Pa);this.m=a;this.j=b;this.h=c;this.f=d;this.o=e;this.a=new _.H(Ic);_.Fh(this.m)?this.a.warn(_.Db):this.Ka(_.Rc,{licenseUrl:this.m,videoRobustness:[_.ob,void 0],audioRobustness:[_.nb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.kd.bind(this)}});_.Fh(this.j)?this.a.warn(_.eb):this.Ka(_.Qc,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.kd.bind(this)}});
262
- _.Fh(this.h)?this.a.warn(_.Ka):_.Fh(this.f)?this.a.warn(_.Ja):this.Ka(_.Pc,{licenseUrl:this.h,certificateUrl:this.f,modifiers:{licenseRequest:this.eg.bind(this),licenseResponse:this.fg.bind(this),certificateRequest:this.kd.bind(this),extractContentId:this.Hf.bind(this)}})};hp=function(){this.l=null};ip=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.jd)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
263
- jp=function(a){a=a.target;if(a.webkitPresentationMode===Xd){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)};kp=function(){return this.webkitSupportsPresentationMode(Xd)?(this.webkitSetPresentationMode(Xd),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
264
- lp=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};mp=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};np=function(a,b,c){return new window.TextTrackCue(a,b,c)};
265
- op=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};qp=function(a,b,c){if("input"===a)switch(this.type){case "range":a=Dc}pp.call(this,a,b,c)};sp=function(){this.a=rp()};tp=function(a){return rp()-a.a};up=function(a){var b=new sp;b.a=a.a;return b};rp=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};_.vp=function(a){var b=[];a=_.u(a);for(var c=a.next();!c.done;c=a.next()){c=_.u(c.value.variants);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};
266
- wp=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.g=b;this.f=0};xp=function(a,b){var c=a.f+b.byteLength;if(c>a.a.byteLength){var d=a.a;a.a=new Uint8Array(Math.max(Math.ceil(a.a.buffer.byteLength*a.g),c));a.a.set(d)}a.a.set(b,a.f);a.f+=b.byteLength};_.yp=function(a,b,c){this.f=a;this.h=b;this.g=c||this.f.getMedia();this.a=null};_.Ap=function(){this.a=new Blob([zp],{type:_.Te})};
267
- _.Cp=function(a,b,c,d){var e,f;return _.B(function(g){if(1==g.a)return _.zf(g,2),_.x(g,Bp(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.Bf(g);f.a(_.M);throw f;})};
268
- Bp=function(a,b,c,d){var e,f,g,h;return _.B(function(l){if(1==l.a){if(d){if(e=_.Dp[d.toLowerCase()])return l["return"](e);_.G("Could not determine manifest type using MIME type ",d)}if(f=_.Ep(a)){if(g=_.Fp[f])return l["return"](g);_.G("Could not determine manifest type for extension ",f)}else _.G("Could not find extension for ",a);return d?l.H(2):_.x(l,Gp(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(h=_.Dp[d])return l["return"](h);_.G("Could not determine manifest type using MIME type",d)}throw new _.L(_.M,4,
269
- 4E3,{url:a});})};Gp=function(a,b,c){var d,e,f;return _.B(function(g){if(1==g.a)return d=_.Oh(a),Mh(d,c),d.type=1,d.method="HEAD",_.x(g,b.fetch(d).P,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.Ep=function(a){a=(new _.Lg(a)).pa.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()};Hp=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.g=new sp};
270
- Jp=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(Ip(a,d),Rh(c,d.byteLength,tp(a.g)),a.g.a=rp());return e?(e=a.a.buffer,a.a.byteLength!==a.f&&(e=e.slice(0,a.f)),Promise.resolve(e)):Promise.resolve().then(function(){return Jp(a,b,c)})})};Ip=function(a,b){var c=a.f+b.byteLength;if(a.a.byteLength<c){for(var d=a.a.byteLength;d<c;)d*=2;c=new Uint8Array(d);c.set(a.a);a.a=c}a.a.set(b,a.f);a.f+=b.byteLength};
271
- ci=function(a){var b=a.uris[a.uriIndex],c=new Kp,d=new sp,e=up(d),f=0,g=new _.Th;c.open(a.method,b,!0);c.responseType="arraybuffer";c.timeout=a.timeout;c.withCredentials=a.allowCrossSiteCredentials;var h=!1,l=!1;c.onreadystatechange=function(n){n=n.target;n.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!h&&(n=n.getResponseHeader(ua),Qh(a,n),h=!0)};c.onload=function(n){n=n.target;var p=(n.getAllResponseHeaders()||"").trim().split("\r\n"),q={};p=_.u(p);for(var r=p.next();!r.done;r=p.next())r=r.value.split(": "),
272
- q[r[0].toLowerCase()]=r.slice(1).join(": ");try{var w=tp(e);l||Rh(a,n.response?n.response.length:0,w);var y=_.Ph(q,n.response,n.status,b,n.responseURL,a,w);a.rateLimitBps?Sh(a.rateLimitBps,tp(e),a.bytesLoaded).then(function(){g.resolve(y)}):g.resolve(y)}catch(A){g.reject(A)}};c.onerror=function(n){n=n.target;if(0>=n.status)g.reject(new _.L(1,1,1002,{url:b,request:a,status:n.status}));else{var p=n.getAllResponseHeaders(),q={};if(p){p=_.u(p.trim().split("\r\n"));for(var r=p.next();!r.done;r=p.next())r=
273
- r.value.split(": "),q[r[0].toLowerCase()]=r.slice(1).join(": ")}n=_.Ph(q,n.response,n.status,b,n.responseURL,a,tp(e));g.resolve(n)}};c.ontimeout=function(){g.reject(new _.L(1,1,1003,{url:b,request:a}))};c.onprogress=function(n){var p=tp(d);d.a=rp();if(100<p||n.lengthComputable&&n.loaded===n.total)Rh(a,n.loaded-f,p),f=n.loaded,l=!0};for(var m in a.headers)c.setRequestHeader(m.toLowerCase(),a.headers[m]);c.send(a.body);return{P:g,request:a,abort:function(){c.abort();g.reject(new _.L(1,1,7001,{url:b,
274
- request:a}));return Promise.resolve()}}};Lp=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.h=new wp(a);this.length=a;this.w=b;this.f=this.a=this.g=0;this.j=null;this.m=-1;this.o=new sp};
275
- Op=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,tp(a.o)),a.o.a=rp());if(f)return f=Mp(a),(f=c(!0,f))?f.then(function(){return a.h.a.buffer}):Promise.resolve(a.h.a.buffer);var g=Promise.resolve();if(null!=e){xp(a.h,e);a.a=a.g;a.f=a.h.f;a.j=new DataView(a.h.a.buffer,0,a.h.f);e=Np(a);for(f=[];e;)f.push(e),e=Np(a);if(!a.w)f.forEach(function(m){g=g.then(function(){return c(!1,m)})});else if(0<f.length){e=f[0];if(1<f.length){e=f[0];var h=f[f.length-1],
276
- l=h.end-e.start;e={start:e.start,end:h.end,length:l,data:new DataView(a.h.a.buffer,e.start,l),count:f.length}}(f=c(!1,e))&&(g=f)}}return g.then(function(){return Op(a,b,c,d)})})};Np=function(a){if(0<=a.m&&a.f<a.m)return null;for(var b=Pp(a);null!==b;){if(b.name===_.yd){var c={start:a.g,end:b.end,length:b.end-a.g,data:new DataView(a.h.a.buffer,a.g,b.end-a.g),count:1};a.g=b.end;return c}b=Pp(a)}return null};
277
- Pp=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=Qp(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=Qp(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 _.L(_.M,3,3E3);}if(2097151<e)throw new _.L(_.M,3,3E3);a.a+=8;c=e*Math.pow(2,32)+f}c=b+c;a.m=c;return a.f>=c?(a.a=c,{name:d,start:b,end:c}):null};
278
- Qp=function(a){var b=a.j.getUint32(a.a,!1);a.a+=4;return b};Mp=function(a){var b=null;a.g!==a.f&&(b={start:a.g,end:a.f,length:a.f-a.g,data:new DataView(a.h.a.buffer,a.g,a.f-a.g),count:-1});return b};Sp=function(a){_.Uh.call(this,new _.Th,function(){return Promise.resolve()});this.A=a;this.g=null;this.o=this.P;this.f=-1;this.h=this.j=this.m=null;Rp(this)};Tp=function(a,b,c){a.m=setTimeout(b,c)};
279
- Rp=function(a){a.g=a.A.then(function(e){a.h=e.request;e.request.uriIndex=e.request.currentAttempt%e.request.uris.length;if(0<e.request.currentAttempt){-1===a.f&&(a.f=Up(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*Up(e.request.fuzzFactor,.5));a.f*=Up(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,h){a.j=h;Tp(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.L(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
280
- return e.plugin(e.request)});var b=0,c=0,d=0;return a.g.then(function(e){var f=e.request;f.currentAttempt+=1;b=f.currentAttempt;c=f.maxAttempts;d=f.uris.length;return e.P}).then(function(e){a.o.resolve(e)})["catch"](function(e){if(e instanceof _.L){var f=b<d,g=7001!==e.code,h=b<c;if((1===e.severity||f)&&g&&h)return Rp(a);g&&e.a(_.M);a.o.reject(e)}else a.o.reject(e)})};Up=function(a,b){return null===a||void 0===a?b:a};
281
- di=function(a){var b=new Vp,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new Wp,e={Uc:!1,zg:!1};b={P:Xp(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.Uc||(e.Uc=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.zg=!0;d.abort()},a);b.P=b.P["finally"](function(){window.clearTimeout(f)})}return b};
282
- Xp=function(a,b,c,d){var e,f,g,h,l,m,n,p,q,r,w,y,A,E,F;return _.B(function(D){switch(D.a){case 1:return e=Yp,h=new sp,l=up(h),_.zf(D,2),_.x(D,e(a,c),4);case 4:f=D.f;m=f.headers.get(ua);Qh(b,m);n=m?parseInt(m,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return r=f.body.getReader(),w=new Lp(n,!b.disableMergedFragments),y=function(I,O){if(d.Uc)return null;O&&O.data&&(Rh(b,O.data.byteLength,tp(h)),h.a=rp());return b.onFragment&&O?b.rateLimitBps?Sh(b.rateLimitBps,tp(l),b.bytesLoaded).then(function(){return b.onFragment(O)}):
283
- b.onFragment(O):null},_.x(D,Op(w,r,y,b.onProgress),10);p=f.body.getReader();q=new Hp(n);return _.x(D,Jp(q,p,b),7);case 7:g=D.f;if(!b.rateLimitBps){D.H(6);break}return _.x(D,Sh(b.rateLimitBps,tp(l),g.byteLength),6);case 10:g=D.f;case 6:_.Af(D,3);break;case 2:A=_.Bf(D);if(d.Uc)throw new _.L(1,1,7001,{url:a,request:b});if(d.zg)throw new _.L(1,1,1003,{url:a,request:b});_.Tf("Error while fetching data:",A);throw new _.L(1,1,1002,{url:a,error:A,request:b,status:-1},A);case 3:E={};F=f.headers;F.forEach(function(I,
284
- O){E[O.trim()]=I});if(d.Uc)throw new _.L(1,1,7001,{url:a,request:b});return D["return"](_.Ph(E,g,f.status,a,f.url,b,tp(l)))}})};Zh=function(a){try{var b=a.uris[a.uriIndex],c=_.Zp(b);return{P:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{P:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
285
- _.Zp=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.Tf("Bad data URI, failed to parse scheme"),new _.L(_.M,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.Tf("Bad data URI, failed to extract encoding and MIME type"),new _.L(_.M,1,1004,{uri:a});var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"===b[b.length-1]&&(d=!0,b.pop());return{data:d?_.kk(a).buffer:_.zh(a).buffer,contentType:c}};_.aq=function(a){delete _.$p[a]};
286
- _.bq=function(a){a=a.getConfiguration();a=_.K.Na(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.ve?a.backgroundColor:null;this.V=typeof a.windowColor===_.ve?a.windowColor:null;this.R=typeof a.fontColor===_.ve?a.fontColor:null;this.T=typeof a.fontFamily===_.ve?a.fontFamily:null;this.I=typeof a.fontSize===_.ve?a.fontSize:null;this.A=typeof a.fontSizePercent===_.k?a.fontSizePercent:null;this.F=typeof a.edgeColor===_.ve?a.edgeColor:"rgba(0, 0, 0, 1)";this.m=null;typeof a.edgeType===
287
- _.ve&&(this.m=a.edgeType)};_.gq=function(a){if(!a.m)return null;var b=a.F;switch(a.m){case cq:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case dq:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case eq:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case fq:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.Jd}};hq=function(a){this.g=a;this.a=null;this.f=new _.H("clpp.text.Mp4TextParser")};
288
- _.jq=function(a){_.bq.call(this,a);this.j=a.getSurface().getMedia();this.f="clpp-video-"+iq++;this.g=document.createElement(_.xe);this.h=this.o=!1;_.Hn(this.j,this.f);document.head.appendChild(this.g);this.pb()};kq=function(){};_.lq=function(){};nf=typeof Object.create==_.jd?Object.create:function(a){function b(){}b.prototype=a;return new b};
289
- if(typeof Object.setPrototypeOf==_.jd)mq=Object.setPrototypeOf;else{var nq;a:{var oq={Eg:!0},pq={};try{pq.__proto__=oq;nq=pq.Eg;break a}catch(a){}nq=!1}mq=nq?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
290
- var of=mq,sf=typeof Object.defineProperties==_.jd?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},qf="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;tf.prototype.toString=function(){return this.a};var rf=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new tf("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
291
- wf.prototype.w=function(a){this.f=a};wf.prototype["return"]=function(a){this.g={"return":a};this.a=this.j};wf.prototype.H=function(a){this.a=a};
232
+ V=function(a,b,c){_.Sj.call(this);var d=this;$n();this.g=new _.H("clpp.Player");if(!a)throw new _.L(_.M,7,7102);this.A=new _.eg;this.f=this.S=b||_.Yj();this.m=null;void 0===this.f.license&&(this.f.license=Wj,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 _.L(_.M,7,7101,"No license provided in configuration!");this.h=new Rn(a,c);this.a=this.w=null;this.H=
233
+ new _.di;this.j=null;this.K=[];this.M={};this.o=null;this.I=!0;this.J=this.F=!1;this.D=this.Cc=null;this.ne=!1;this.U=new Tn(this);this.P=!1;this.B=function(f){(f=f.detail)&&f.currentState===_.ln&&(d.off(_.se,d.B),so(d))};this.on(_.se,function(){d.getState()===_.hn&&d.unload()});this.on(_.Zb,this.$f.bind(this));this.on(_.Yb,this.$f.bind(this));to(this,this.f.license);this.h.getMedia()&&(a=this.h.getMedia(),a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),this.g.debug("Removed autoplay attribute from video element. Auto play will be handled by configuration."),
234
+ void 0===this.f.autoplay&&(this.f.autoplay=!0,this.g.debug("Setting autoplay in configuration since it was specified in the video element"))));a=[];b=_.u(uo);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)}}vo(this,a);_.dk.clear()};_.wo=function(a,b){b!==a.a&&(a.a&&(a.a.removeDelegate(a),a.a.destroy()),a.a=b,a.a&&(a.a.init(a.h,a.f),a.a.setNetworkEngine(a.getNetworkEngine()),a.a.addDelegate(a)))};
235
+ to=function(a,b){a.w=new eo(b);a.w.verify()["catch"](function(c){setTimeout(function(){a.g.error(Ta+c);a.trigger(new _.J(_.jd,{detail:new _.L(_.M,7,7101)}));a.destroy()},1E3)})};
236
+ so=function(a){if(!a.P){a.P=!0;a.h.getMedia()||a.h.getCastElement();a.w||(a.w=new eo(a.f.license));var b=Object.keys(a.M);ro(a.w,{getConfiguration:a.getConfiguration.bind(a),Gd:a.Gd.bind(a),getDrmInfo:a.getDrmInfo.bind(a),ki:function(){return b},isLive:a.isLive.bind(a)}).then(function(){a.g.debug("License verified remotely")})["catch"](function(c){setTimeout(bo,1E3,{release:a.release.bind(a),destroy:a.destroy.bind(a),onError:a.onError.bind(a)},c)})}};
237
+ vo=function(a,b){a.K=b;for(var c=_.u(a.K),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.id();e&&(a.M[e]=d)}a.fc("onPlayerCreated")};
238
+ xo=function(a){var b,c;return _.A(function(d){if(1==d.a){if(a.I)return a.g.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.off(_.se,a.B);a.A.off(a,_.se,a.B);a.A.off(document,Xe);a.trigger(new _.J(_.ge));a.P=!1;a.h&&a.h.release();return a.j?_.x(d,a.j.dispose(),3):d.G(2)}2!=d.a&&(a.j=null);hk(function(e){e.release()});if(a.a)return b=null,c=a.a.on(_.se,function(e){b=e}),d["return"](a.fc(_.Pd).then(function(){a.a.removeDelegate(a);return Promise.all([a.a.release(),
239
+ a.H.release()])}).then(function(){a.g.debug("Releasing player completed");b&&(a.g.debug("Re-post state change event after release"),a.trigger(b))})["finally"](function(){a.a.off(_.se,c);a.trigger(new _.J(fe))}));a.trigger(new _.J(fe));return d["return"](new Promise(function(e){return e()}))})};
240
+ yo=function(a,b,c){return new Promise(function(d,e){var f;if(b){for(var g=f=null,h=0;h<b.length;h++);h=Object.values(_.Xf);for(var l=0;l<b.length;l++)for(var m=0;m<h.length;m++){var n={Ib:h[m],confidence:h[m].canPlay(b[l],c)};if(null===f||f.confidence<n.confidence)f=n,g=l}f&&typeof g===_.k&&0<f.confidence?(_.Yf.debug("Player Factory '"+f.Ib.a()+"' can play",b[g]),f=new Uf(f.Ib,g)):(_.Yf.error("No compatible Player Factory found for sources:",b),f=null)}else f=null;f?(g=f.Ib.create(),d(new Vf(g,f.a))):
241
+ (f=new _.J(_.jd,{detail:new _.L(_.M,7,7003)}),a.trigger(f),e(f))})};
242
+ _.Ao=function(a,b){var c,d,e,f;return _.A(function(g){switch(g.a){case 1:if(a.F)throw Error("Player is already destroyed.");if(!a.h)throw Error("No surface associated with this player!");return _.x(g,a.release(),2);case 2:a.o=_.pn(b);c=_.bk(b);a.f=_.ak(a.S,c?b:{},{source:a.o});if(0===a.o.length)throw Error("Invalid request to load: could not find source to load");a.I=!1;e=0;if(!a.J&&2===a.canPlay(a.o[0],a.f)){g.G(3);break}return _.x(g,yo(a,a.o,a.f),4);case 4:f=g.f,d=f.a,e=f.f,a.J=!1;case 3:d?_.wo(a,
243
+ d):a.a.addDelegate(a);zo(a);a.a&&a.a.setCdnErrorCallback(a.D);a.j=Gn(a,a.f).create(a);a.setSourceIndex(e);if(a.f.pauseWhenInBackground)a.A.on(document,Xe,function(){document.hidden?(a.g.debug("Player is hidden: pausing..."),a.pause()):(a.g.debug("Player is visible: resuming..."),a.play())});hk(function(h){h.Xb()});return _.x(g,a.fc("onContentWillLoad",a.f.source[e]),0)}})};
244
+ _.Bo=function(a){return _.A(function(b){a.h.getMedia()||a.h.getCastElement();a.A.on(a,_.se,a.B);a.trigger(new _.J(yd));return _.x(b,Promise.all([a.a.load(a.f),a.j.load()]),0)})};Co=function(a){var b=_.Fg(a.f.preferredTextLanguage).filter(function(d){return d}),c=a.getTrackManager().ia();b.some(function(d){var e=_.Ji(d);return(d=c.find(function(f){f=_.Ji(f.language||"");return _.Ki(f,e)}))?(a.getTrackManager().Ba(d),!0):!1})};
245
+ _.Do=function(a){var b,c,d,e;return _.A(function(f){if(1==f.a){b=[];if(a.f.remoteTextTracks)for(c=_.u(a.f.remoteTextTracks),d=c.next();!d.done;d=c.next())e=d.value,b.push(a.getTrackManager().addTextTrack(e));return _.x(f,Promise.all(b),2)}return 3!=f.a?(Co(a),hk(function(){}),_.x(f,a.fc("onContentLoaded"),3)):a.f.autoplay?_.x(f,a.play(),0):f.G(0)})};zo=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.A(function(c){if(!a.Cc||!a.ne)return c.G(0);a.ne=!1;return _.x(c,a.Cc(b),0)})})};
246
+ _.Eo=function(a){a&&(0<=uo.indexOf(a)||uo.push(a))};W=function(){};Fo=function(){};Go=function(){};Ho=function(){};Fn=function(){};Io=function(){};_.Jo=function(){};Ko=function(){this.a=null};Lo=function(){};Mo=function(){this.size=0;this.a=void 0;this.f=new _.H("clpp.drm.eme.MediaKeyStatusMap")};No=function(a,b){a.size=void 0===b?0:1;a.f.debug("Setting key status to",b);a.a=b};Oo=function(){};Po=function(){};Qo=function(){this.a=this.f=null};
247
+ Ro=function(a,b){this.keySystem=a;if(a.startsWith(_.Rc))for(var c=_.u(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.ie)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.Sd,distinctiveIdentifier:_.Sd,initDataTypes:e.initDataTypes,sessionTypes:[Be],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var h=_.u(e.audioCapabilities),l=h.next();!l.done;l=h.next())l=l.value,l.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&
248
+ (d.audioCapabilities.push(l),g=!0));if(e.videoCapabilities)for(e=_.u(e.videoCapabilities),l=e.next();!l.done;l=e.next())h=l.value,h.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,h.contentType.split(";")[0])&&(d.videoCapabilities.push(h),g=!0));f||(g=WebKitMediaKeys.isTypeSupported(this.keySystem,_.Te));d=g?d:null}if(d){this.a=d;return}}c=Error(yb);c.name=cb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
249
+ So=function(a){this.g=null;this.h=new WebKitMediaKeys(a);this.f=new _.eg;this.j=0;this.a=new _.H(Lc);this.a.info("Created Media Keys for "+a)};
250
+ To=function(a,b){a.g=b;_.hg(a.f);if(!b)return Promise.resolve();a.f.on(b,gd,function(c){_.Sf("AppleEmeManager.cancelNativeMediaEncryptedEvent_",c);"MediaEncryptedEvent"in window&&c instanceof MediaEncryptedEvent&&(a.a.info("Cancel native MediaEncryptedEvent when using Apple-prefixed EME"),c.stopImmediatePropagation())});a.f.on(b,ef,function(c){a.a.debug("Handle webkitNeedKey event");c=_.N(c.initData);if(_.sh(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");
251
+ c=xh(c.subarray(4),!0);c=_.zh(c);var d=new Event(gd);d.initDataType="skd";d.initData=th(c);a.g.dispatchEvent(d)});Wm(b,HTMLMediaElement.HAVE_METADATA,a.f,function(){return b.webkitSetMediaKeys(a.h)});return Promise.resolve()};Uo=function(a,b){_.Sj.call(this);this.a=null;this.o=a;this.g=this.h=null;this.j=new _.eg;this.sessionId=b;this.expiration=NaN;this.closed=new _.Sh;this.m=!1;this.keyStatuses=new Mo;this.f=new _.H(Lc)};Vo=function(a,b){No(a.keyStatuses,b);a.dispatchEvent(new _.J(qd))};Wo=function(){};
252
+ Xo=function(){this.f=this.a=null;this.g="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.g="webkit")};
253
+ Yo=function(a,b,c,d){this.g=a;this.a=this.keySystem=c;a=!1;c===_.Td&&(this.a=af,a=!1);var e=!1;d=_.u(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=[],h=[],l=!1;if(f.audioCapabilities)for(var m=_.u(f.audioCapabilities),n=m.next();!n.done;n=m.next())n=n.value,n.contentType&&(l=!0,b.canPlayType(n.contentType.split(";")[0],this.a)&&(g.push(n),e=!0));if(f.videoCapabilities)for(g=_.u(f.videoCapabilities),n=g.next();!n.done;n=g.next())m=n.value,m.contentType&&(l=!0,b.canPlayType(m.contentType,
254
+ this.a)&&(h.push(m),e=!0));l||(e=b.canPlayType(_.Te,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.ie||a||(e=!1);if(e){this.f=f;return}}b=yb;if(c===_.Td||c===_.Tc)b="None of the requested configurations were supported.";c=Error(b);c.name=cb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};Zo=function(a,b){this.g=a;this.m=b;this.a=null;this.f=new _.eg;this.h=[];this.j=new Map};
255
+ bp=function(a,b){a.a=b;_.hg(a.f);b&&(a.f.on(b,a.g+"needkey",function(c){var d=new Event(gd);d.initDataType=_.Cc;d.initData=th(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.g+"keymessage",function(c){var d=$o(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.J(Bd,{messageType:e?td:sd,message:c.message});_.Sf("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.Tf("Session not found",c.sessionId)}),a.f.on(b,a.g+"keyadded",function(c){if(c=
256
+ $o(a,c.sessionId))_.Sf("WebkitEmeManager.MediaKeySession.ready"),ap(c,"usable"),c.a&&c.a.resolve(),c.a=null}),a.f.on(b,a.g+"keyerror",function(c){var d=$o(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?ap(d,_.Ud):1===e?ap(d,"expired"):
257
+ ap(d,_.pd))}}))};$o=function(a,b){var c=a.j.get(b);return c?c:(c=a.h.shift())?(c.sessionId=b,a.j.set(b,c),c):null};cp=function(a,b,c,d){_.Sj.call(this);this.o=a;this.h=b;this.m=!1;this.a=this.f=null;this.g=c;this.j=d;this.sessionId="";this.expiration=NaN;this.closed=new _.Sh;this.keyStatuses=new Mo};
258
+ ep=function(a,b,c){if(a.m)return Promise.reject(Error("The session is already initialized."));a.m=!0;try{if(a.j===_.Xd)if(c)var d=_.N(_.zh("LOAD_SESSION|"+c));else{var e=_.zh("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.N(b),e.byteLength);d=f}else d=_.N(b)}catch(h){return Promise.reject(h)}a.f=new _.Sh;var g=dp(a,"generateKeyRequest");try{a.h[g](a.g,d)}catch(h){if(h.name!==Ra)return a.f=null,Promise.reject(h);(new _.Si(function(){try{a.h[g](a.g,d)}catch(l){a.f.reject(l),
259
+ a.f=null}})).Z(.01)}return a.f};fp=function(a,b,c){if(a.a)a.a.then(function(){return fp(a,b,c)})["catch"](function(){return fp(a,b,c)});else{a.a=b;if(a.g===af){var d=_.vh(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=_.lk(e.keys[0].k);e=_.lk(e.keys[0].kid)}else d=_.N(c),e=null;var f=dp(a,"addKey");try{a.h[f](a.g,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};ap=function(a,b){No(a.keyStatuses,b);a.dispatchEvent(new _.J(qd))};
260
+ dp=function(a,b){return a.o?a.o+b.charAt(0).toUpperCase()+b.slice(1):b};gp=function(){};
261
+ hp=function(a,b,c,d,e){_.Ak.call(this,Pa);this.m=a;this.j=b;this.h=c;this.f=d;this.o=e;this.a=new _.H(Kc);_.Fh(this.m)?this.a.warn(_.Db):this.Ka(_.Tc,{licenseUrl:this.m,videoRobustness:[_.nb,void 0],audioRobustness:[_.mb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.jd.bind(this)}});_.Fh(this.j)?this.a.warn(_.db):this.Ka(_.Sc,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.jd.bind(this)}});
262
+ _.Fh(this.h)?this.a.warn(_.Ka):_.Fh(this.f)?this.a.warn(_.Ia):this.Ka(_.Rc,{licenseUrl:this.h,certificateUrl:this.f,modifiers:{licenseRequest:this.dg.bind(this),licenseResponse:this.eg.bind(this),certificateRequest:this.jd.bind(this),extractContentId:this.Gf.bind(this)}})};ip=function(){this.l=null};jp=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.ld)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
263
+ kp=function(a){a=a.target;if(a.webkitPresentationMode===Yd){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)};lp=function(){return this.webkitSupportsPresentationMode(Yd)?(this.webkitSetPresentationMode(Yd),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
264
+ mp=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};np=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};op=function(a,b,c){return new window.TextTrackCue(a,b,c)};
265
+ pp=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};rp=function(a,b,c){if("input"===a)switch(this.type){case "range":a=Fc}qp.call(this,a,b,c)};tp=function(){this.a=sp()};up=function(a){return sp()-a.a};vp=function(a){var b=new tp;b.a=a.a;return b};sp=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};_.wp=function(a){var b=[];a=_.u(a);for(var c=a.next();!c.done;c=a.next()){c=_.u(c.value.variants);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};
266
+ xp=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.g=b;this.f=0};yp=function(a,b){var c=a.f+b.byteLength;if(c>a.a.byteLength){var d=a.a;a.a=new Uint8Array(Math.max(Math.ceil(a.a.buffer.byteLength*a.g),c));a.a.set(d)}a.a.set(b,a.f);a.f+=b.byteLength};_.zp=function(a,b,c){this.f=a;this.h=b;this.g=c||this.f.getMedia();this.a=null};_.Bp=function(){this.a=new Blob([Ap],{type:_.Te})};
267
+ _.Dp=function(a,b,c,d){var e,f;return _.A(function(g){if(1==g.a)return _.zf(g,2),_.x(g,Cp(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.Bf(g);f.a(_.M);throw f;})};
268
+ Cp=function(a,b,c,d){var e,f,g,h;return _.A(function(l){if(1==l.a){if(d){if(e=_.Ep[d.toLowerCase()])return l["return"](e);_.G("Could not determine manifest type using MIME type ",d)}if(f=_.Fp(a)){if(g=_.Gp[f])return l["return"](g);_.G("Could not determine manifest type for extension ",f)}else _.G("Could not find extension for ",a);return d?l.G(2):_.x(l,Hp(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(h=_.Ep[d])return l["return"](h);_.G("Could not determine manifest type using MIME type",d)}throw new _.L(_.M,4,
269
+ 4E3,{url:a});})};Hp=function(a,b,c){var d,e,f;return _.A(function(g){if(1==g.a)return d=_.Nh(a),Lh(d,c),d.type=1,d.method="HEAD",_.x(g,b.fetch(d).O,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.Fp=function(a){a=(new _.Lg(a)).wa.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()};Ip=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.g=new tp};
270
+ Kp=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(Jp(a,d),Qh(c,d.byteLength,up(a.g)),a.g.a=sp());return e?(e=a.a.buffer,a.a.byteLength!==a.f&&(e=e.slice(0,a.f)),Promise.resolve(e)):Promise.resolve().then(function(){return Kp(a,b,c)})})};Jp=function(a,b){var c=a.f+b.byteLength;if(a.a.byteLength<c){for(var d=a.a.byteLength;d<c;)d*=2;c=new Uint8Array(d);c.set(a.a);a.a=c}a.a.set(b,a.f);a.f+=b.byteLength};
271
+ bi=function(a){var b=a.uris[a.uriIndex],c=new Lp,d=new tp,e=vp(d),f=0,g=new _.Sh;c.open(a.method,b,!0);c.responseType="arraybuffer";c.timeout=a.timeout;c.withCredentials=a.allowCrossSiteCredentials;var h=!1,l=!1;c.onreadystatechange=function(n){n=n.target;n.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!h&&(n=n.getResponseHeader(ua),Ph(a,n),h=!0)};c.onload=function(n){n=n.target;var p=(n.getAllResponseHeaders()||"").trim().split("\r\n"),q={};p=_.u(p);for(var r=p.next();!r.done;r=p.next())r=r.value.split(": "),
272
+ q[r[0].toLowerCase()]=r.slice(1).join(": ");try{var w=up(e);l||Qh(a,n.response?n.response.length:0,w);var z=_.Oh(q,n.response,n.status,b,n.responseURL,a,w);a.rateLimitBps?Rh(a.rateLimitBps,up(e),a.bytesLoaded).then(function(){g.resolve(z)}):g.resolve(z)}catch(C){g.reject(C)}};c.onerror=function(n){n=n.target;if(0>=n.status)g.reject(new _.L(1,1,1002,{url:b,request:a,status:n.status}));else{var p=n.getAllResponseHeaders(),q={};if(p){p=_.u(p.trim().split("\r\n"));for(var r=p.next();!r.done;r=p.next())r=
273
+ r.value.split(": "),q[r[0].toLowerCase()]=r.slice(1).join(": ")}n=_.Oh(q,n.response,n.status,b,n.responseURL,a,up(e));g.resolve(n)}};c.ontimeout=function(){g.reject(new _.L(1,1,1003,{url:b,request:a}))};c.onprogress=function(n){var p=up(d);d.a=sp();if(100<p||n.lengthComputable&&n.loaded===n.total)Qh(a,n.loaded-f,p),f=n.loaded,l=!0};for(var m in a.headers)c.setRequestHeader(m.toLowerCase(),a.headers[m]);c.send(a.body);return{O:g,request:a,abort:function(){c.abort();g.reject(new _.L(1,1,7001,{url:b,
274
+ request:a}));return Promise.resolve()}}};Mp=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.h=new xp(a);this.length=a;this.w=b;this.f=this.a=this.g=0;this.j=null;this.m=-1;this.o=new tp};
275
+ Pp=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,up(a.o)),a.o.a=sp());if(f)return f=Np(a),(f=c(!0,f))?f.then(function(){return a.h.a.buffer}):Promise.resolve(a.h.a.buffer);var g=Promise.resolve();if(null!=e){yp(a.h,e);a.a=a.g;a.f=a.h.f;a.j=new DataView(a.h.a.buffer,0,a.h.f);e=Op(a);for(f=[];e;)f.push(e),e=Op(a);if(!a.w)f.forEach(function(m){g=g.then(function(){return c(!1,m)})});else if(0<f.length){e=f[0];if(1<f.length){e=f[0];var h=f[f.length-1],
276
+ l=h.end-e.start;e={start:e.start,end:h.end,length:l,data:new DataView(a.h.a.buffer,e.start,l),count:f.length}}(f=c(!1,e))&&(g=f)}}return g.then(function(){return Pp(a,b,c,d)})})};Op=function(a){if(0<=a.m&&a.f<a.m)return null;for(var b=Qp(a);null!==b;){if(b.name===_.zd){var c={start:a.g,end:b.end,length:b.end-a.g,data:new DataView(a.h.a.buffer,a.g,b.end-a.g),count:1};a.g=b.end;return c}b=Qp(a)}return null};
277
+ Qp=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=Rp(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=Rp(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 _.L(_.M,3,3E3);}if(2097151<e)throw new _.L(_.M,3,3E3);a.a+=8;c=e*Math.pow(2,32)+f}c=b+c;a.m=c;return a.f>=c?(a.a=c,{name:d,start:b,end:c}):null};
278
+ Rp=function(a){var b=a.j.getUint32(a.a,!1);a.a+=4;return b};Np=function(a){var b=null;a.g!==a.f&&(b={start:a.g,end:a.f,length:a.f-a.g,data:new DataView(a.h.a.buffer,a.g,a.f-a.g),count:-1});return b};Tp=function(a){_.Th.call(this,new _.Sh,function(){return Promise.resolve()});this.A=a;this.g=null;this.o=this.O;this.f=-1;this.h=this.j=this.m=null;Sp(this)};Up=function(a,b,c){a.m=setTimeout(b,c)};
279
+ Sp=function(a){a.g=a.A.then(function(e){a.h=e.request;e.request.uriIndex=e.request.currentAttempt%e.request.uris.length;if(0<e.request.currentAttempt){-1===a.f&&(a.f=Vp(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*Vp(e.request.fuzzFactor,.5));a.f*=Vp(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,h){a.j=h;Up(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.L(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
280
+ return e.plugin(e.request)});var b=0,c=0,d=0;return a.g.then(function(e){var f=e.request;f.currentAttempt+=1;b=f.currentAttempt;c=f.maxAttempts;d=f.uris.length;return e.O}).then(function(e){a.o.resolve(e)})["catch"](function(e){if(e instanceof _.L){var f=b<d,g=7001!==e.code,h=b<c;if((1===e.severity||f)&&g&&h)return Sp(a);g&&e.a(_.M);a.o.reject(e)}else a.o.reject(e)})};Vp=function(a,b){return null===a||void 0===a?b:a};
281
+ ci=function(a){var b=new Wp,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new Xp,e={Tc:!1,xg:!1};b={O:Yp(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.Tc||(e.Tc=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.xg=!0;d.abort()},a);b.O=b.O["finally"](function(){window.clearTimeout(f)})}return b};
282
+ Yp=function(a,b,c,d){var e,f,g,h,l,m,n,p,q,r,w,z,C,E,F;return _.A(function(B){switch(B.a){case 1:return e=Zp,h=new tp,l=vp(h),_.zf(B,2),_.x(B,e(a,c),4);case 4:f=B.f;m=f.headers.get(ua);Ph(b,m);n=m?parseInt(m,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return r=f.body.getReader(),w=new Mp(n,!b.disableMergedFragments),z=function(I,O){if(d.Tc)return null;O&&O.data&&(Qh(b,O.data.byteLength,up(h)),h.a=sp());return b.onFragment&&O?b.rateLimitBps?Rh(b.rateLimitBps,up(l),b.bytesLoaded).then(function(){return b.onFragment(O)}):
283
+ b.onFragment(O):null},_.x(B,Pp(w,r,z,b.onProgress),10);p=f.body.getReader();q=new Ip(n);return _.x(B,Kp(q,p,b),7);case 7:g=B.f;if(!b.rateLimitBps){B.G(6);break}return _.x(B,Rh(b.rateLimitBps,up(l),g.byteLength),6);case 10:g=B.f;case 6:_.Af(B,3);break;case 2:C=_.Bf(B);if(d.Tc)throw new _.L(1,1,7001,{url:a,request:b});if(d.xg)throw new _.L(1,1,1003,{url:a,request:b});_.Tf("Error while fetching data:",C);throw new _.L(1,1,1002,{url:a,error:C,request:b,status:-1},C);case 3:E={};F=f.headers;F.forEach(function(I,
284
+ O){E[O.trim()]=I});if(d.Tc)throw new _.L(1,1,7001,{url:a,request:b});return B["return"](_.Oh(E,g,f.status,a,f.url,b,up(l)))}})};Yh=function(a){try{var b=a.uris[a.uriIndex],c=_.$p(b);return{O:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{O:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
285
+ _.$p=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.Tf("Bad data URI, failed to parse scheme"),new _.L(_.M,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.Tf("Bad data URI, failed to extract encoding and MIME type"),new _.L(_.M,1,1004,{uri:a});var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"===b[b.length-1]&&(d=!0,b.pop());return{data:d?_.lk(a).buffer:_.zh(a).buffer,contentType:c}};_.bq=function(a){delete _.aq[a]};
286
+ _.cq=function(a){a=a.getConfiguration();a=_.K.Ma(a.textStyle||a.textstyle||{});this.J=typeof a.backgroundColor===_.ve?a.backgroundColor:null;this.U=typeof a.windowColor===_.ve?a.windowColor:null;this.P=typeof a.fontColor===_.ve?a.fontColor:null;this.S=typeof a.fontFamily===_.ve?a.fontFamily:null;this.H=typeof a.fontSize===_.ve?a.fontSize:null;this.A=typeof a.fontSizePercent===_.k?a.fontSizePercent:null;this.F=typeof a.edgeColor===_.ve?a.edgeColor:"rgba(0, 0, 0, 1)";this.m=null;typeof a.edgeType===
287
+ _.ve&&(this.m=a.edgeType)};_.hq=function(a){if(!a.m)return null;var b=a.F;switch(a.m){case dq:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case eq:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case fq:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case gq:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.Kd}};iq=function(a){this.g=a;this.a=null;this.f=new _.H("clpp.text.Mp4TextParser")};
288
+ _.kq=function(a){_.cq.call(this,a);this.j=a.getSurface().getMedia();this.f="clpp-video-"+jq++;this.g=document.createElement(_.xe);this.h=this.o=!1;_.In(this.j,this.f);document.head.appendChild(this.g);this.ob()};lq=function(){};_.mq=function(){};nf=typeof Object.create==_.ld?Object.create:function(a){function b(){}b.prototype=a;return new b};
289
+ if(typeof Object.setPrototypeOf==_.ld)nq=Object.setPrototypeOf;else{var oq;a:{var pq={Cg:!0},qq={};try{qq.__proto__=pq;oq=qq.Cg;break a}catch(a){}oq=!1}nq=oq?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
290
+ var of=nq,sf=typeof Object.defineProperties==_.ld?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},qf="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;tf.prototype.toString=function(){return this.a};var rf=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new tf("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
291
+ wf.prototype.w=function(a){this.f=a};wf.prototype["return"]=function(a){this.g={"return":a};this.a=this.j};wf.prototype.G=function(a){this.a=a};
292
292
  If("Promise",function(a){function b(g){this.f=0;this.j=void 0;this.a=[];var h=this.g();try{g(h.resolve,h.reject)}catch(l){h.reject(l)}}function c(){this.a=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.f=function(g){if(null==this.a){this.a=[];var h=this;this.g(function(){h.j()})}this.a.push(g)};var e=qf.setTimeout;c.prototype.g=function(g){e(g,0)};c.prototype.j=function(){for(;this.a&&this.a.length;){var g=this.a;this.a=[];for(var h=0;h<g.length;++h){var l=
293
- g[h];g[h]=null;try{l()}catch(m){this.h(m)}}}this.a=null};c.prototype.h=function(g){this.g(function(){throw g;})};b.prototype.g=function(){function g(m){return function(n){l||(l=!0,m.call(h,n))}}var h=this,l=!1;return{resolve:g(this.B),reject:g(this.h)}};b.prototype.B=function(g){if(g===this)this.h(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.D(g);else{a:switch(typeof g){case _.Kd:var h=null!=g;break a;case _.jd:h=!0;break a;default:h=!1}h?this.A(g):this.m(g)}};
294
- b.prototype.A=function(g){var h=void 0;try{h=g.then}catch(l){this.h(l);return}typeof h==_.jd?this.F(h,g):this.m(g)};b.prototype.h=function(g){this.o(2,g)};b.prototype.m=function(g){this.o(1,g)};b.prototype.o=function(g,h){if(0!=this.f)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.f);this.f=g;this.j=h;this.w()};b.prototype.w=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.D=function(g){var h=this.g();
295
- g.td(h.resolve,h.reject)};b.prototype.F=function(g,h){var l=this.g();try{g.call(h,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,h){function l(q,r){return typeof q==_.jd?function(w){try{m(q(w))}catch(y){n(y)}}:r}var m,n,p=new b(function(q,r){m=q;n=r});this.td(l(g,m),l(h,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.td=function(g,h){function l(){switch(m.f){case 1:g(m.j);break;case 2:h(m.j);break;default:throw Error("Unexpected state: "+
296
- m.f);}}var m=this;null==this.a?f.f(l):this.a.push(l)};b.resolve=d;b.reject=function(g){return new b(function(h,l){l(g)})};b.race=function(g){return new b(function(h,l){for(var m=_.u(g),n=m.next();!n.done;n=m.next())d(n.value).td(h,l)})};b.all=function(g){var h=_.u(g),l=h.next();return l.done?d([]):new b(function(m,n){function p(w){return function(y){q[w]=y;r--;0==r&&m(q)}}var q=[],r=0;do q.push(void 0),r++,d(l.value).td(p(q.length-1),n),l=h.next();while(!l.done)})};return b});var Kf=this||self;
297
- Kf.a=!0;_.K={Dg:20,Na:function(a){var b=_.K.S,c=_.K.Sf,d=_.K.Wa;return b(a)||c(a)?a:d(a)}};_.C("clpp.utils.obj.cloneItem",_.K.Na);_.K.Wa=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];c={};for(var d=0;d<b.length;d++)null!=b[d]&&(c=_.K.Wf(c,{merging:b[d]},1));return c.merging||null};_.C("clpp.utils.obj.merge",_.K.Wa);
298
- _.K.Wf=function(a,b,c){var d=_.K.S,e=_.K.Sf,f=_.K.Wf,g=_.K.kb,h=_.K.Bi,l=_.K.Rf,m=_.K.xi,n=_.K.Ic;c+=1;if(d(a)||!n(a))a={};for(var p in b)n=b[p],e(n)||d(n)||g(n)||m(n)?a[p]=n:h(n)?a[p]=n.subarray(0):n instanceof Array?a[p]=f([],n,c):!d(n)&&l(n)&&c<_.K.Dg&&(a[p]=f(a[p],n,c));return a};_.K.Sf=function(a){a=typeof a;return a===_.ve||a===_.k||a===_.sc};_.K.xi=function(a){return a instanceof Element};_.K.S=function(a){return null===a||"undefined"===typeof a};_.K.Ic=function(a){return typeof a===_.Kd};
299
- _.K.kb=function(a){return typeof a===_.jd};_.K.Y=function(a){return typeof a===_.ve};_.K.ka=function(a){return typeof a===_.k};_.K.Pf=function(a){return typeof a===_.sc};_.K.Rf=function(a){var b=_.K.Ic,c=_.K.S;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.K.Bi=function(a){var b=_.K.Ic,c=_.K.kb;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
300
- _.K.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||!_.K.Ic(a)||!_.K.Ic(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var h=e[g];if(_.K.S(d)||0>d.indexOf(h))if(f[h]=!0,a[h]!==b[h])return!1}if(_.K.S(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.K.S(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
301
- _.K.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.K.yi=function(a,b,c){return a>=b&&a<=c};_.K.jf=function(a){for(var b=new Map,c=_.u(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b};_.K.kf=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};var Of={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.C("clpp.log.Level",Of);var Mf=3,Lf={},qq=[];_.C("clpp.log.getLoggers",function(){return _.K.Na(Lf)});_.C("clpp.log.addInterceptor",function(a){a&&qq.push(a)});_.C("clpp.log.removeInterceptor",function(a){a&&(a=qq.indexOf(a),0<=a&&qq.splice(a,1))});_.C("clpp.log.getTagLevel",Nf);_.C("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Lf[a]});_.C("clpp.log.setTagLevel",function(a,b){a&&(_.K.Y(b)&&(b=Pf(b)),Lf[a]=b)});
302
- _.C("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.K.Y(a)&&(a=Pf(a));Mf=a});_.C("clpp.log.getLogLevel",function(){return Mf});_.t=_.H.prototype;
293
+ g[h];g[h]=null;try{l()}catch(m){this.h(m)}}}this.a=null};c.prototype.h=function(g){this.g(function(){throw g;})};b.prototype.g=function(){function g(m){return function(n){l||(l=!0,m.call(h,n))}}var h=this,l=!1;return{resolve:g(this.B),reject:g(this.h)}};b.prototype.B=function(g){if(g===this)this.h(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.D(g);else{a:switch(typeof g){case _.Ld:var h=null!=g;break a;case _.ld:h=!0;break a;default:h=!1}h?this.A(g):this.m(g)}};
294
+ b.prototype.A=function(g){var h=void 0;try{h=g.then}catch(l){this.h(l);return}typeof h==_.ld?this.F(h,g):this.m(g)};b.prototype.h=function(g){this.o(2,g)};b.prototype.m=function(g){this.o(1,g)};b.prototype.o=function(g,h){if(0!=this.f)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.f);this.f=g;this.j=h;this.w()};b.prototype.w=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.D=function(g){var h=this.g();
295
+ g.td(h.resolve,h.reject)};b.prototype.F=function(g,h){var l=this.g();try{g.call(h,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,h){function l(q,r){return typeof q==_.ld?function(w){try{m(q(w))}catch(z){n(z)}}:r}var m,n,p=new b(function(q,r){m=q;n=r});this.td(l(g,m),l(h,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.td=function(g,h){function l(){switch(m.f){case 1:g(m.j);break;case 2:h(m.j);break;default:throw Error("Unexpected state: "+
296
+ m.f);}}var m=this;null==this.a?f.f(l):this.a.push(l)};b.resolve=d;b.reject=function(g){return new b(function(h,l){l(g)})};b.race=function(g){return new b(function(h,l){for(var m=_.u(g),n=m.next();!n.done;n=m.next())d(n.value).td(h,l)})};b.all=function(g){var h=_.u(g),l=h.next();return l.done?d([]):new b(function(m,n){function p(w){return function(z){q[w]=z;r--;0==r&&m(q)}}var q=[],r=0;do q.push(void 0),r++,d(l.value).td(p(q.length-1),n),l=h.next();while(!l.done)})};return b});var Kf=this||self;
297
+ Kf.a=!0;_.K={Bg:20,Ma:function(a){var b=_.K.R,c=_.K.Rf,d=_.K.Va;return b(a)||c(a)?a:d(a)}};_.D("clpp.utils.obj.cloneItem",_.K.Ma);_.K.Va=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];c={};for(var d=0;d<b.length;d++)null!=b[d]&&(c=_.K.Vf(c,{merging:b[d]},1));return c.merging||null};_.D("clpp.utils.obj.merge",_.K.Va);
298
+ _.K.Vf=function(a,b,c){var d=_.K.R,e=_.K.Rf,f=_.K.Vf,g=_.K.jb,h=_.K.xi,l=_.K.Qf,m=_.K.ri,n=_.K.Hc;c+=1;if(d(a)||!n(a))a={};for(var p in b)n=b[p],e(n)||d(n)||g(n)||m(n)?a[p]=n:h(n)?a[p]=n.subarray(0):n instanceof Array?a[p]=f([],n,c):!d(n)&&l(n)&&c<_.K.Bg&&(a[p]=f(a[p],n,c));return a};_.K.Rf=function(a){a=typeof a;return a===_.ve||a===_.k||a===_.uc};_.K.ri=function(a){return a instanceof Element};_.K.R=function(a){return null===a||"undefined"===typeof a};_.K.Hc=function(a){return typeof a===_.Ld};
299
+ _.K.jb=function(a){return typeof a===_.ld};_.K.Y=function(a){return typeof a===_.ve};_.K.la=function(a){return typeof a===_.k};_.K.Of=function(a){return typeof a===_.uc};_.K.Qf=function(a){var b=_.K.Hc,c=_.K.R;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.K.xi=function(a){var b=_.K.Hc,c=_.K.jb;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
300
+ _.K.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||!_.K.Hc(a)||!_.K.Hc(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var h=e[g];if(_.K.R(d)||0>d.indexOf(h))if(f[h]=!0,a[h]!==b[h])return!1}if(_.K.R(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.K.R(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
301
+ _.K.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.K.si=function(a,b,c){return a>=b&&a<=c};_.K.hf=function(a){for(var b=new Map,c=_.u(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b};_.K.jf=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};var Of={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.D("clpp.log.Level",Of);var Mf=3,Lf={},rq=[];_.D("clpp.log.getLoggers",function(){return _.K.Ma(Lf)});_.D("clpp.log.addInterceptor",function(a){a&&rq.push(a)});_.D("clpp.log.removeInterceptor",function(a){a&&(a=rq.indexOf(a),0<=a&&rq.splice(a,1))});_.D("clpp.log.getTagLevel",Nf);_.D("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Lf[a]});_.D("clpp.log.setTagLevel",function(a,b){a&&(_.K.Y(b)&&(b=Pf(b)),Lf[a]=b)});
302
+ _.D("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.K.Y(a)&&(a=Pf(a));Mf=a});_.D("clpp.log.getLogLevel",function(){return Mf});_.t=_.H.prototype;
303
303
  _.t.log=function(a,b){if(window.console){if(1<arguments.length){var c=arguments[0];Array.prototype.shift.call(arguments)}else c=3;var d=Nf(this.a);if(0<=d){if(d<c)return}else if(Mf<c)return;this.a&&Array.prototype.unshift.call(arguments,"["+this.a+"]");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):
304
- 1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.u(qq);for(var e=d.next();!e.done;e=d.next())e=e.value,e.call(e,c,arguments)}};_.t.info=function(a){Array.prototype.unshift.call(arguments,3);this.log.apply(this,arguments)};_.t.debug=function(a){Array.prototype.unshift.call(arguments,4);this.log.apply(this,arguments)};_.t.warn=function(a){Array.prototype.unshift.call(arguments,2);this.log.apply(this,arguments)};
305
- _.t.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.t.Yh=function(a){return a?this.a?new _.H(this.a+"."+a):new _.H(a):this};_.C("clpp.log.Logger",_.H);_.H.prototype.createChild=_.H.prototype.Yh;_.H.prototype.error=_.H.prototype.error;_.H.prototype.warn=_.H.prototype.warn;_.H.prototype.debug=_.H.prototype.debug;_.H.prototype.info=_.H.prototype.info;_.H.prototype.log=_.H.prototype.log;var Qf=new _.H("clpp");_.C("clpp.log.info",_.Rf);
306
- _.C("clpp.log.debug",_.Sf);_.C("clpp.log.warn",_.G);_.C("clpp.log.error",_.Tf);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.$f=new _.H("clpp.players");_.Xf={};_.bg.prototype.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.bg.prototype.get=function(a){return(a=this.a[a])?a.slice():[]};_.bg.prototype.remove=function(a,b){var c=this.a[a];if(!c)return!1;for(var d=!1,e=0;e<c.length;++e)c[e]==b&&(c.splice(e,1),--e,d=!0);return d};_.bg.prototype.clear=function(){this.a={}};cg.prototype.Ub=function(a){try{this.zc.handleEvent?this.zc.handleEvent(a):this.zc.call(this.a,a)}catch(b){_.Tf("clpp","Uncaught exception in event handler for event '"+this.f+"'",b,b?b.message:null,b?b.stack:null)}};_.J.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};_.J.prototype.stopImmediatePropagation=function(){this.f=!0};_.J.prototype.stopPropagation=function(){};_.t=dg.prototype;
307
- _.t.trigger=function(a){var b=this.a.get(a.type);if(b)for(var c=0;c<b.length&&(a.target=this.f,a.currentTarget=this.f,b[c].Ub(a),b[c].Fj&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.t.on=function(a,b,c){this.a.push(a,new cg(a,b,c||this.f));return b};_.t.one=function(a,b,c){this.a.push(a,new cg(a,b,c||this.f,!0));return b};_.t.off=function(a,b){var c=this.a.get(a),d=!1;if(c)for(var e=0;e<c.length;e++)c[e].zc===b&&(d=this.a.remove(a,c[e])||d);return d};_.t.clear=function(){this.a.clear()};_.eg.prototype.release=function(){_.hg(this)};_.eg.prototype.on=function(a,b,c,d){a=new ig(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.eg.prototype.one=function(a,b,c){function d(f){e.off(a,b,d);return c(f)}var e=this;this.on(a,b,d)};_.eg.prototype.off=function(a,b,c){for(var d=this.a.get(b)||[],e=0;e<d.length;++e){var f=d[e];f.target!=a||c!=f.a&&c||(gg(f),this.a.remove(b,f))}};jg.prototype.release=function(){this.f.release();this.g=[];this.a=null};jg.prototype.destroy=function(){var a=this;return _.B(function(b){a.release();a.j=null;a.h=null;_.z(b)})};jg.prototype.getTimelineCues=function(){return this.g};_.C("clpp.text.Cue",_.zg);_.zg.positionAlign={LEFT:_.td,RIGHT:_.ud,CENTER:_.Bc,AUTO:"auto"};_.tg=_.Ce;_.zg.payloadType={TEXT:_.tg,VTT_XML:_.Ye,TTML_XML:_.He};_.ug=_.Bc;_.rq={LEFT:_.qd,RIGHT:_.je,CENTER:_.ug,START:_.qd,END:_.je};_.zg.textAlign=_.rq;var yg="ltr";_.zg.direction={HORIZONTAL_LEFT_TO_RIGHT:yg,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.vg="horizontal-tb";_.zg.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.vg,VERTICAL_LEFT_TO_RIGHT:_.Pe,VERTICAL_RIGHT_TO_LEFT:_.Qe};_.wg=0;
308
- _.zg.lineInterpretation={LINE_NUMBER:_.wg,PERCENTAGE:1};_.xg=_.re;_.sq={CENTER:_.Bc,START:_.xg,END:_.fd};_.zg.lineAlign=_.sq;_.C("clpp.text.CueRegion",_.Cg);_.Ag=1;_.Cg.units={PX:0,PERCENTAGE:_.Ag,LINES:2};var Bg="";_.Cg.scrollMode={NONE:Bg,UP:"up"};_.Cg.displayAlign={BEFORE:"flex-end",CENTER:_.Bc,AFTER:"flex-start"};_.Cg.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Nc,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};Dg.prototype.destroy=function(){this.a.release();this.h=!1;this.j=this.a=this.g=this.f=null;return Promise.resolve()};Dg.prototype.start=function(a){var b=this;this.h?this.m.warn("Already started. Ignoring request..."):(this.h=!0,this.g=a,this.f=this.g.textTracks,this.a.on(this.f,_.Wb,function(c){return Eg(b,c)}),this.a.on(this.f,Dc,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.ne&&(e.mode=_.ld)}}))};
309
- Dg.prototype.o=function(a){var b=new _.zg(a.startTime,a.endTime,a.text,_.Ye);if(_.K.Y(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Pe;break;case "rl":b.writingMode=_.Qe}_.K.ka(a.size)&&(b.size=a.size);if(_.K.Y(a.align))switch(a.align){case _.qd:case _.re:b.textAlign=_.qd;break;case _.Bc:b.textAlign=_.ug;break;case _.je:case _.fd:b.textAlign=_.je}_.K.ka(a.position)&&(b.position=a.position);if(_.K.Y(a.positionAlign))switch(a.positionAlign){case _.td:b.positionAlign=_.td;break;case _.Bc:b.positionAlign=
310
- _.Bc;break;case _.ud:b.positionAlign=_.ud}_.K.ka(a.line)&&(b.line=a.line);if(_.K.Y(a.lineAlign))switch(a.lineAlign){case _.re:b.lineAlign=_.xg;break;case _.Bc:b.lineAlign=_.Bc;break;case _.fd:b.lineAlign=_.fd}_.K.Pf(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.wg:1);return b};var Qg=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;_.t=_.Lg.prototype;_.t.Za="";_.t.mc="";_.t.Oa="";_.t.Lc=null;_.t.pa="";_.t.ac="";_.t.toString=function(){var a=[],b=this.Za;b&&a.push(Tg(b,tq,!0),":");if(b=this.Oa){a.push("//");var c=this.mc;c&&a.push(Tg(c,tq,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Lc;null!=b&&a.push(":",String(b))}if(b=this.pa)this.Oa&&"/"!=b.charAt(0)&&a.push("/"),a.push(Tg(b,"/"==b.charAt(0)?uq:vq,!0));(b=this.a.toString())&&a.push("?",b);(b=this.ac)&&a.push("#",Tg(b,wq));return a.join("")};
311
- _.t.resolve=function(a){var b=new _.Lg(this);"data"===b.Za&&(b=new _.Lg);var c=!!a.Za;c?Mg(b,a.Za):c=!!a.mc;c?b.mc=a.mc:c=!!a.Oa;c?b.Oa=a.Oa:c=null!=a.Lc;var d=a.pa;if(c)Ng(b,a.Lc);else if(c=!!a.pa){if("/"!=d.charAt(0))if(this.Oa&&!this.pa)d="/"+d;else{var e=b.pa.lastIndexOf("/");-1!=e&&(d=b.pa.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):
312
- ".."==h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.pa=d:c=""!==a.a.toString();c?_.Og(b,Pg(a.a)):c=!!a.ac;c&&(b.ac=a.ac);return b};var tq=/[#\/\?@]/g,vq=/[#\?:]/g,uq=/[#\?]/g,Ug=/[#\?@]/g,wq=/#/g;Sg.prototype.a=null;Sg.prototype.g=null;Sg.prototype.add=function(a,b){_.Wg(this);this.f=null;var c=this.a.hasOwnProperty(a)&&this.a[a];c||(this.a[a]=c=[]);c.push(b);null!==this.g&&this.g++;return this};
313
- Sg.prototype.toString=function(){if(this.f)return this.f;if(!this.a)return"";var a=[],b;for(b in this.a)for(var c=encodeURIComponent(b),d=this.a[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="\x3d"+encodeURIComponent(d[e]));a.push(f)}return this.f=a.join("\x26")};_.vn={VIDEO:_.Re,AUDIO:_.jc,TEXT:_.Ce,Yj:_.ac,IMAGE:_.md,gk:_.ye};_.xq=1/15;var Xg={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av1$/],text:[/^vtt$/,/^wvtt/,/^stpp/]};var Zg={text:{mp4:_.dc,m4s:_.dc,m4i:_.dc,cmft:_.dc,vtt:_.De,ttml:_.gc},video:{mp4:_.Te,m4s:_.Te,m4i:_.Te,m4v:_.Te,cmfv:_.Te,ts:_.Se},audio:{mp4:_.oc,m4s:_.oc,m4i:_.oc,m4a:_.oc,cmfa:_.oc,ts:_.Se,aac:_.kc,ec3:_.nc,ac3:_.lc},image:{jpg:_.nd,jpeg:_.nd,png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.v(_.L,Error);_.L.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=ah(this.severity,this.category,this.code,this.data))};_.L.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.C("clpp.Error",_.L);_.M=2;_.L.Severity={RECOVERABLE:1,FATAL:_.M};_.L.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
304
+ 1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.u(rq);for(var e=d.next();!e.done;e=d.next())e=e.value,e.call(e,c,arguments)}};_.t.info=function(a){Array.prototype.unshift.call(arguments,3);this.log.apply(this,arguments)};_.t.debug=function(a){Array.prototype.unshift.call(arguments,4);this.log.apply(this,arguments)};_.t.warn=function(a){Array.prototype.unshift.call(arguments,2);this.log.apply(this,arguments)};
305
+ _.t.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.t.Vh=function(a){return a?this.a?new _.H(this.a+"."+a):new _.H(a):this};_.D("clpp.log.Logger",_.H);_.H.prototype.createChild=_.H.prototype.Vh;_.H.prototype.error=_.H.prototype.error;_.H.prototype.warn=_.H.prototype.warn;_.H.prototype.debug=_.H.prototype.debug;_.H.prototype.info=_.H.prototype.info;_.H.prototype.log=_.H.prototype.log;var Qf=new _.H("clpp");_.D("clpp.log.info",_.Rf);
306
+ _.D("clpp.log.debug",_.Sf);_.D("clpp.log.warn",_.G);_.D("clpp.log.error",_.Tf);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.Yf=new _.H("clpp.players");_.Xf={};_.bg.prototype.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.bg.prototype.get=function(a){return(a=this.a[a])?a.slice():[]};_.bg.prototype.remove=function(a,b){var c=this.a[a];if(!c)return!1;for(var d=!1,e=0;e<c.length;++e)c[e]==b&&(c.splice(e,1),--e,d=!0);return d};_.bg.prototype.clear=function(){this.a={}};cg.prototype.Tb=function(a){try{this.xc.handleEvent?this.xc.handleEvent(a):this.xc.call(this.a,a)}catch(b){_.Tf("clpp","Uncaught exception in event handler for event '"+this.f+"'",b,b?b.message:null,b?b.stack:null)}};_.J.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};_.J.prototype.stopImmediatePropagation=function(){this.f=!0};_.J.prototype.stopPropagation=function(){};_.t=dg.prototype;
307
+ _.t.trigger=function(a){var b=this.a.get(a.type);if(b)for(var c=0;c<b.length&&(a.target=this.f,a.currentTarget=this.f,b[c].Tb(a),b[c].Bj&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.t.on=function(a,b,c){this.a.push(a,new cg(a,b,c||this.f));return b};_.t.one=function(a,b,c){this.a.push(a,new cg(a,b,c||this.f,!0));return b};_.t.off=function(a,b){var c=this.a.get(a),d=!1;if(c)for(var e=0;e<c.length;e++)c[e].xc===b&&(d=this.a.remove(a,c[e])||d);return d};_.t.clear=function(){this.a.clear()};_.eg.prototype.release=function(){_.hg(this)};_.eg.prototype.on=function(a,b,c,d){a=new ig(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.eg.prototype.one=function(a,b,c){function d(f){e.off(a,b,d);return c(f)}var e=this;this.on(a,b,d)};_.eg.prototype.off=function(a,b,c){for(var d=this.a.get(b)||[],e=0;e<d.length;++e){var f=d[e];f.target!=a||c!=f.a&&c||(gg(f),this.a.remove(b,f))}};jg.prototype.release=function(){this.f.release();this.g=[];this.a=null};jg.prototype.destroy=function(){var a=this;return _.A(function(b){a.release();a.j=null;a.h=null;_.y(b)})};jg.prototype.getTimelineCues=function(){return this.g};_.D("clpp.text.Cue",_.zg);_.zg.positionAlign={LEFT:_.ud,RIGHT:_.vd,CENTER:_.Dc,AUTO:"auto"};_.tg=_.Ce;_.zg.payloadType={TEXT:_.tg,VTT_XML:_.Ye,TTML_XML:_.He};_.ug=_.Dc;_.sq={LEFT:_.rd,RIGHT:_.ke,CENTER:_.ug,START:_.rd,END:_.ke};_.zg.textAlign=_.sq;var yg="ltr";_.zg.direction={HORIZONTAL_LEFT_TO_RIGHT:yg,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.vg="horizontal-tb";_.zg.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.vg,VERTICAL_LEFT_TO_RIGHT:_.Pe,VERTICAL_RIGHT_TO_LEFT:_.Qe};_.wg=0;
308
+ _.zg.lineInterpretation={LINE_NUMBER:_.wg,PERCENTAGE:1};_.xg=_.re;_.tq={CENTER:_.Dc,START:_.xg,END:_.hd};_.zg.lineAlign=_.tq;_.D("clpp.text.CueRegion",_.Cg);_.Ag=1;_.Cg.units={PX:0,PERCENTAGE:_.Ag,LINES:2};var Bg="";_.Cg.scrollMode={NONE:Bg,UP:"up"};_.Cg.displayAlign={BEFORE:"flex-end",CENTER:_.Dc,AFTER:"flex-start"};_.Cg.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Pc,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};Dg.prototype.destroy=function(){this.a.release();this.h=!1;this.j=this.a=this.g=this.f=null;return Promise.resolve()};Dg.prototype.start=function(a){var b=this;this.h?this.m.warn("Already started. Ignoring request..."):(this.h=!0,this.g=a,this.f=this.g.textTracks,this.a.on(this.f,_.Wb,function(c){return Eg(b,c)}),this.a.on(this.f,Fc,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.ne&&(e.mode=_.nd)}}))};
309
+ Dg.prototype.o=function(a){var b=new _.zg(a.startTime,a.endTime,a.text,_.Ye);if(_.K.Y(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Pe;break;case "rl":b.writingMode=_.Qe}_.K.la(a.size)&&(b.size=a.size);if(_.K.Y(a.align))switch(a.align){case _.rd:case _.re:b.textAlign=_.rd;break;case _.Dc:b.textAlign=_.ug;break;case _.ke:case _.hd:b.textAlign=_.ke}_.K.la(a.position)&&(b.position=a.position);if(_.K.Y(a.positionAlign))switch(a.positionAlign){case _.ud:b.positionAlign=_.ud;break;case _.Dc:b.positionAlign=
310
+ _.Dc;break;case _.vd:b.positionAlign=_.vd}_.K.la(a.line)&&(b.line=a.line);if(_.K.Y(a.lineAlign))switch(a.lineAlign){case _.re:b.lineAlign=_.xg;break;case _.Dc:b.lineAlign=_.Dc;break;case _.hd:b.lineAlign=_.hd}_.K.Of(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.wg:1);return b};var Qg=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;_.t=_.Lg.prototype;_.t.Xa="";_.t.kc="";_.t.Na="";_.t.Kc=null;_.t.wa="";_.t.Zb="";_.t.toString=function(){var a=[],b=this.Xa;b&&a.push(Tg(b,uq,!0),":");if(b=this.Na){a.push("//");var c=this.kc;c&&a.push(Tg(c,uq,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Kc;null!=b&&a.push(":",String(b))}if(b=this.wa)this.Na&&"/"!=b.charAt(0)&&a.push("/"),a.push(Tg(b,"/"==b.charAt(0)?vq:wq,!0));(b=this.a.toString())&&a.push("?",b);(b=this.Zb)&&a.push("#",Tg(b,xq));return a.join("")};
311
+ _.t.resolve=function(a){var b=new _.Lg(this);"data"===b.Xa&&(b=new _.Lg);var c=!!a.Xa;c?Mg(b,a.Xa):c=!!a.kc;c?b.kc=a.kc:c=!!a.Na;c?b.Na=a.Na:c=null!=a.Kc;var d=a.wa;if(c)Ng(b,a.Kc);else if(c=!!a.wa){if("/"!=d.charAt(0))if(this.Na&&!this.wa)d="/"+d;else{var e=b.wa.lastIndexOf("/");-1!=e&&(d=b.wa.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):
312
+ ".."==h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.wa=d:c=""!==a.a.toString();c?_.Og(b,Pg(a.a)):c=!!a.Zb;c&&(b.Zb=a.Zb);return b};var uq=/[#\/\?@]/g,wq=/[#\?:]/g,vq=/[#\?]/g,Ug=/[#\?@]/g,xq=/#/g;Sg.prototype.a=null;Sg.prototype.g=null;Sg.prototype.add=function(a,b){_.Wg(this);this.f=null;var c=this.a.hasOwnProperty(a)&&this.a[a];c||(this.a[a]=c=[]);c.push(b);null!==this.g&&this.g++;return this};
313
+ Sg.prototype.toString=function(){if(this.f)return this.f;if(!this.a)return"";var a=[],b;for(b in this.a)for(var c=encodeURIComponent(b),d=this.a[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="\x3d"+encodeURIComponent(d[e]));a.push(f)}return this.f=a.join("\x26")};_.wn={VIDEO:_.Re,AUDIO:_.kc,TEXT:_.Ce,Uj:_.bc,IMAGE:_.od,ck:_.ye};_.yq=1/15;var Xg={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av1$/],text:[/^vtt$/,/^wvtt/,/^stpp/]};_.$g={text:{mp4:ec,m4s:ec,m4i:ec,cmft:ec,vtt:_.De,ttml:_.hc},video:{mp4:_.Te,m4s:_.Te,m4i:_.Te,m4v:_.Te,cmfv:_.Te,ts:_.Se},audio:{mp4:_.qc,m4s:_.qc,m4i:_.qc,m4a:_.qc,cmfa:_.qc,ts:_.Se,aac:_.mc,ec3:_.pc,ac3:_.oc},image:{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.v(_.L,Error);_.L.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=bh(this.severity,this.category,this.code,this.data))};_.L.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.D("clpp.Error",_.L);_.M=2;_.L.Severity={RECOVERABLE:1,FATAL:_.M};_.L.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
314
314
  _.L.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,UNKNOWN_DATA_URI_ENCODING:1005,REQUEST_MODIFIER_ERROR:1006,RESPONSE_MODIFIER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,FETCH_OR_APPEND_ERROR:2010,INVALID_MP4:2011,
315
315
  TEXT_PARSER_MISSING:2012,THUMBNAILS_FAILED_TO_LOAD:2013,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,
316
316
  MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,MP4_PARSER_ERROR:3019,MEDIA_LOAD_ERROR:3100,INVALID_TRACK_TYPE:3101,UNKNOWN_TRACK:3102,MEDIA_DECRYPTION_ERROR:3103,PLAY_NOT_ALLOWED:3200,UNABLE_TO_GUESS_MANIFEST_TYPE:4E3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,
317
317
  DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,UNPLAYABLE_PERIOD:4011,RESTRICTIONS_CANNOT_BE_MET:4012,NO_PERIODS:4014,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_COULD_NOT_GUESS_MIME_TYPE:4021,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027,
318
- DASH_XLINK_DEPTH_LIMIT:4028,HLS_COULD_NOT_PARSE_SEGMENT_START_TIME:4030,CONTENT_UNSUPPORTED_BY_BROWSER:4032,SMOOTH_INVALID_MANIFEST_XML:4033,SMOOTH_EMPTY_PRESENTATION:4034,SMOOTH_MEDIA_PROCESSING_ERROR:4035,SMOOTH_INVALID_VERSION:4036,SMOOTH_INVALID_FRAGMENT_METADATA:4037,SMOOTH_REQUIRED_ATTRIBUTE_MISSING:4038,SMOOTH_TRUNCATED_MEDIA_FILE:4039,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4040,HLS_MSE_ENCRYPTED_TS_NOT_SUPPORTED:4041,INVALID_STREAMS_CHOSEN:5005,NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,
319
- FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,REQUESTED_DRM_ENVIRONMENT_UNAVAILABLE:6015,INIT_DATA_TRANSFORM_ERROR:6016,CERTIFICATE_REQUEST_FAILED:6100,NO_CONTENT_ID:6101,SERVER_CERTIFICATE_REQUIRED:6102,EXTRACT_CONTENT_ID_MODIFIER_ERROR:6103,
320
- FAILED_TO_PERSIST_SESSION:6200,FAILED_TO_REMOVE_SESSION:6201,INVALID_SESSION_STORAGE_IMPLEMENTATION:6202,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,CANNOT_LOAD_SOURCE:7003,MEDIA_ELEMENT_NOT_FOUND:7004,INVALID_MEDIA_ELEMENT:7005,INVALID_CONTAINER_ELEMENT:7006,INVALID_CONFIGURATION:7100,INVALID_LICENSE:7101,NO_ELEMENT:7102,USER_ID_NOT_PROVIDED:7103,KEY_LOAD_ERROR:7104,TIZEN_INTERNAL_ERROR:7200,CAF_INTERNAL_ERROR:7300,INTERNAL_CAST_ERROR:8E3,CAST_API_NOT_READY:8001,NO_RECEIVERS_AVAILABLE:8002,
321
- ALREADY_CASTING:8003,NO_CAST_SESSION:8004,CONVIVA_SDK_NOT_LOADED:9E3,CONVIVA_INVALID_CONFIGURATION:9001,CONVIVA_RUNTIME_ERROR:9002,GL_CONTEXT_ERROR:9003,GL_SHADER_ERROR:9004,YOUBORA_SDK_MISSING:9100,YOUBORA_INVALID_CONFIGURATION:9101,YOUBORA_SDK_VERSION_NOT_SUPPORTED:9102,VIMOND_INVALID_CONFIGURATION:9200,VIMOND_SESSION_ERROR:9201,MUXDATA_INVALID_CONFIGURATION:9300,MUX_SDK_MISSING:9301,MUXDATA_INIT_ERROR:9302,IMA_SDK_MISSING:1E4,IMA_INVALID_CONFIGURATION:10001,IMA_UNSUPPORTED_PLATFORM:10002,AD_ERROR:10003,
322
- BROADPEAK_SDK_MISSING:11E3,BROADPEAK_SESSION_ERROR:11001,FREEWHEEL_SDK_MISSING:12E3,FREEWHEEL_INVALID_CONFIGURATION:12001,CONTENT_TRANSFORMATION_FAILED:14E3};_.bh.prototype.toString=function(){function a(d){return d.name+"\x3d"+(isNaN(Number(d.value))?'"'+d.value+'"':d.value)}var b="#"+this.name,c=this.attributes?this.attributes.map(a):[];this.value&&c.unshift(this.value);0<c.length&&(b+=":"+c.join(","));return b};_.bh.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name==a});return b.length?b[0]:null};var mh=function yq(a){var c;return _.Hf(yq,function(d){1==d.a&&(c=0);if(3!=d.a)return c<a?_.x(d,c,3):d.H(0);c++;return d.H(2)})};_.C("clpp.utils.BufferUtils",kh);kh.toArrayBuffer=th;kh.toDataView=_.sh;kh.toInt32Array=_.rh;kh.toUint32Array=qh;kh.toUint16Array=ph;kh.toUint8Array=_.N;kh.equal=nh;var wh=new _.H("clpp.utils.strings");_.C("clpp.utils.strings.fromUtf8",_.vh);_.C("clpp.utils.strings.fromBytesAutoDetect",_.yh);_.C("clpp.utils.strings.toUtf8",_.zh);_.C("clpp.utils.strings.toUtf16",_.Ah);_.C("clpp.utils.strings.toByteArray",_.Bh);_.C("clpp.utils.strings.startsWith",_.Ch);_.C("clpp.utils.strings.endsWith",_.Dh);_.C("clpp.utils.strings.bitrateToString",_.Gh);
323
- _.C("clpp.utils.strings.durationToString",function(a,b){function c(h){return function(l,m){return d(h,m.length-1)}}function d(h,l){return h.length<l?d("0"+h,l):h}b=void 0===b?"%h:%mm:%ss":b;if(null===a||void 0===a)a=0;if(null===b||void 0===b)b="%h:%mm:%ss";var e=Math.floor(a/3600),f=Math.floor((a-3600*e)/60),g=Math.floor(a-3600*e-60*f);return b.replace(/(%h+)/,c(String(e))).replace(/(%m+)/,c(String(f))).replace(/(%s+)/,c(String(g)))});
324
- _.C("clpp.utils.strings.hashCode",function(a){var b=0;if(0===a.length)return b;for(var c=0;c<a.length;c++)b=(b<<5)-b+a.charCodeAt(c),b|=0;return b});var Hh=document.createElement("span");var Kh=[403,401];_.C("clpp.net.DEFAULT_FATAL_STATUS_CODES",Kh);_.C("clpp.net.makeRequest",_.Oh);_.Nh=6;_.C("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.Nh});_.Th.prototype.resolve=function(){};_.Th.prototype.reject=function(){};_.Uh.prototype.abort=function(){this.a=!0;return this.w()};_.Uh.prototype.ud=function(a,b){function c(){e.reject(new _.L(_.M,7,7001));return d.abort()}var d=this,e=new _.Th;this.P.then(function(f){d.a?e.reject(new _.L(_.M,7,7001)):a?c=Wh(a,f,e):e.resolve(f)},function(f){b?c=Wh(b,f,e):e.reject(f)});return new _.Uh(e,function(){return c()})};_.Uh.aborted=function(){var a=Promise.reject(new _.L(_.M,7,7001));a["catch"](function(){});return new _.Uh(a,function(){return Promise.resolve()})};
325
- _.Uh.prototype.chain=_.Uh.prototype.ud;_.Xh.prototype.destroy=function(){for(var a=[],b=_.u(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.P["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.t=_.ei.prototype;_.t.Oj=function(a){0<a?_.G("Rate limit set to "+a+"bps"):_.G("Rate limit disabled");this.h=a};_.t.release=function(){return this.j.destroy()};_.t.destroy=function(){this.m=!0;this.f=[];this.g=[];return this.j.destroy()};_.t.Hg=function(a){this.f.push(a)};_.t.de=function(a){this.g.push(a)};_.t.Gj=function(a){this.f=this.f.filter(function(b){return b!==a})};_.t.Ue=function(a){this.g=this.g.filter(function(b){return b!==a})};
326
- _.t.fetch=function(a){var b=this;if(this.m)return new Sp(Promise.reject(new _.L(1,1,7001,{url:a.uris[a.uriIndex],request:a})));this.h&&0<this.h&&(a.rateLimitBps=this.h);for(var c=[],d=_.u(this.f),e=d.next();!e.done;e=d.next())c.push(e.value);if(a.requestModifiers)for(d=_.u(a.requestModifiers),e=d.next();!e.done;e=d.next())c.push(e.value);a.requestModifiers=c;c=[];d=_.u(this.g);for(e=d.next();!e.done;e=d.next())c.push(e.value);if(a.responseModifiers)for(d=_.u(a.responseModifiers),e=d.next();!e.done;e=
327
- d.next())c.push(e.value);a.responseModifiers=c;d=c=new _.Th;try{var f={},g=_.u(a.requestModifiers);for(e=g.next();!e.done;f={Yd:f.Yd},e=g.next())f.Yd=e.value,d=d.then(function(m){return function(n){if(h.a)throw new _.L(_.M,1,7001,n?{url:n.uris[n.uriIndex],request:n}:null);return m.Yd(n)||n}}(f))["catch"](function(m){if(m instanceof _.L)throw m;throw new _.L(_.M,1,1006,null,m);});d=d.then(function(m){var n=new _.Lg(m.uris[m.uriIndex]),p=n.Za;p||(p=location.protocol,p=p.slice(0,-1),Mg(n,p),m.uris[m.uriIndex]=
328
- n.toString());p=b.a[p];if(!p)throw new _.L(_.M,1,1E3,{url:n.toString()});return{request:m,plugin:p}});var h=new Sp(d);g={};var l=_.u(a.responseModifiers);for(e=l.next();!e.done;g={rd:g.rd},e=l.next())g.rd=e.value,h.then(function(m){return function(n){function p(){if(h.a)throw new _.L(_.M,1,7001,n?{url:n.request.uris[n.request.uriIndex],request:n.request}:null);}p();var q=m.rd(n)||n;p();return q}}(g))["catch"](function(m){return function(n){if(n instanceof _.L&&n.data&&n.data.response){var p=m.rd(n.data.response);
329
- if(p)return p.then(function(){return Promise.reject(n)})}return Promise.reject(n)}}(g))["catch"](function(m){if(m instanceof _.L)throw m;throw new _.L(_.M,1,1007,null,m);});_.Yh(this.j,h);c.resolve(a);return h}catch(m){return new Sp(Promise.reject(m))}};_.ei.prototype.fetch=_.ei.prototype.fetch;_.ei.prototype.removeResponseModifier=_.ei.prototype.Ue;_.ei.prototype.removeRequestModifier=_.ei.prototype.Gj;_.ei.prototype.addResponseModifier=_.ei.prototype.de;_.ei.prototype.addRequestModifier=_.ei.prototype.Hg;
330
- _.ei.prototype.setRateLimit=_.ei.prototype.Oj;var ki;_.hi.prototype.va=function(a){return this.type===a.type&&this.channelsCount===a.channelsCount&&this.frameRate===a.frameRate&&this.kind===a.kind&&this.label===a.label&&this.language===a.language&&this.mimeType===a.mimeType&&Ig(this.roles,a.roles)&&Ig(this.accessibility,a.accessibility,oi)};_.hi.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.C("clpp.Track",_.hi);_.hi.prototype.toString=_.hi.prototype.toString;
331
- _.C("clpp.Rendition",_.pi);_.mi=1;_.ji=_.Re;_.Q=_.jc;_.P=_.Ce;ki=_.Bd;_.zq={VIDEO:_.ji,AUDIO:_.Q,TEXT:_.P,METADATA:ki};_.hi.Type=_.zq;_.C("clpp.utils.url.queryString",_.si);vi.prototype.h=function(a,b){var c=this,d,e,f,g,h,l,m;return _.B(function(n){switch(n.a){case 1:return d=null,_.zf(n,2),_.x(n,Bi(c,a),4);case 4:d=n.f;_.Af(n,3);break;case 2:return e=_.Bf(n),c.a.warn("Failed to fetch playlist in order metadata from HLS playlist.",e.message),n["return"](Promise.resolve({}));case 3:f={};_.zf(n,5);if(!b.enableHlsVideoTrackInfo){n.H(7);break}return _.x(n,yi(c,d,a),8);case 8:g=n.f,f.renditions=g.renditions,f.mimeType=g.mimeType;case 7:_.Af(n,6);break;case 5:h=_.Bf(n),c.a.warn("Failed to parse video metadata from HLS playlist.",
332
- h.message);case 6:return _.zf(n,9),_.x(n,Ai(d),11);case 11:l=n.f;f.Vf=l;_.Af(n,10);break;case 9:m=_.Bf(n),c.a.warn("Failed to parse metadata from HLS playlist.",m.message);case 10:return n["return"](f)}})};_.Hi=[];_.t=_.R.prototype;_.t.he=function(){return!0};_.t.fi=function(a){return this.getVideoTracks().find(function(b){return _.K.va(b,a,a&&Object.keys(a))})};_.t.bi=function(a){return this.getAudioTracks().find(function(b){return _.K.va(b,a,a&&Object.keys(a))})};_.t.di=function(a){return this.ha().find(function(b){return _.K.va(b,a,a&&Object.keys(a))})};_.t.ei=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.K.va(b,a,a&&Object.keys(a))})};
333
- _.t.ai=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.K.va(b,a,a&&Object.keys(a))})};_.t.ci=function(a){return this.ha().flatMap(function(b){return b.renditions}).find(function(b){return _.K.va(b,a,a&&Object.keys(a))})};_.C("clpp.TrackManager",_.R);_.R.prototype.isAbrEnabled=_.R.prototype.ja;_.R.prototype.addTextTrack=_.R.prototype.addTextTrack;_.R.prototype.findTextRendition=_.R.prototype.ci;_.R.prototype.findAudioRendition=_.R.prototype.ai;
334
- _.R.prototype.findVideoRendition=_.R.prototype.ei;_.R.prototype.findTextTrack=_.R.prototype.di;_.R.prototype.findAudioTrack=_.R.prototype.bi;_.R.prototype.findVideoTrack=_.R.prototype.fi;_.R.prototype.setTextRendition=_.R.prototype.nb;_.R.prototype.setAudioRendition=_.R.prototype.mb;_.R.prototype.setVideoRendition=_.R.prototype.$a;_.R.prototype.setTextTrack=_.R.prototype.Ba;_.R.prototype.setAudioTrack=_.R.prototype.sa;_.R.prototype.setVideoTrack=_.R.prototype.ab;_.R.prototype.getTextTrack=_.R.prototype.na;
335
- _.R.prototype.getAudioTrack=_.R.prototype.ma;_.R.prototype.getVideoTrack=_.R.prototype.Ia;_.R.prototype.getLoadingTextRendition=_.R.prototype.gb;_.R.prototype.getLoadingAudioRendition=_.R.prototype.fb;_.R.prototype.getLoadingVideoRendition=_.R.prototype.Ua;_.R.prototype.getTextRendition=_.R.prototype.Ga;_.R.prototype.getAudioRendition=_.R.prototype.Fa;_.R.prototype.getVideoRendition=_.R.prototype.ga;_.R.prototype.getTextTracks=_.R.prototype.ha;_.R.prototype.getAudioTracks=_.R.prototype.getAudioTracks;
336
- _.R.prototype.getVideoTracks=_.R.prototype.getVideoTracks;_.R.prototype.canSelectVideoTracks=_.R.prototype.he;var Ni=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",
337
- "cs"],["dan","da"],["deu","de"],[_.Xc,"dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice",
318
+ DASH_XLINK_DEPTH_LIMIT:4028,HLS_COULD_NOT_PARSE_SEGMENT_START_TIME:4030,CONTENT_UNSUPPORTED_BY_BROWSER:4032,SMOOTH_INVALID_MANIFEST_XML:4033,SMOOTH_EMPTY_PRESENTATION:4034,SMOOTH_MEDIA_PROCESSING_ERROR:4035,SMOOTH_INVALID_VERSION:4036,SMOOTH_INVALID_FRAGMENT_METADATA:4037,SMOOTH_REQUIRED_ATTRIBUTE_MISSING:4038,SMOOTH_TRUNCATED_MEDIA_FILE:4039,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4040,HLS_MSE_ENCRYPTED_TS_NOT_SUPPORTED:4041,HLS_PLAYLIST_NOT_UTF8:4042,HLS_PLAYLIST_EMPTY:4043,INVALID_STREAMS_CHOSEN:5005,
319
+ NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,REQUESTED_DRM_ENVIRONMENT_UNAVAILABLE:6015,INIT_DATA_TRANSFORM_ERROR:6016,CERTIFICATE_REQUEST_FAILED:6100,
320
+ NO_CONTENT_ID:6101,SERVER_CERTIFICATE_REQUIRED:6102,EXTRACT_CONTENT_ID_MODIFIER_ERROR:6103,FAILED_TO_PERSIST_SESSION:6200,FAILED_TO_REMOVE_SESSION:6201,INVALID_SESSION_STORAGE_IMPLEMENTATION:6202,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,CANNOT_LOAD_SOURCE:7003,MEDIA_ELEMENT_NOT_FOUND:7004,INVALID_MEDIA_ELEMENT:7005,INVALID_CONTAINER_ELEMENT:7006,INVALID_CONFIGURATION:7100,INVALID_LICENSE:7101,NO_ELEMENT:7102,USER_ID_NOT_PROVIDED:7103,KEY_LOAD_ERROR:7104,TIZEN_INTERNAL_ERROR:7200,
321
+ CAF_INTERNAL_ERROR:7300,INTERNAL_CAST_ERROR:8E3,CAST_API_NOT_READY:8001,NO_RECEIVERS_AVAILABLE:8002,ALREADY_CASTING:8003,NO_CAST_SESSION:8004,CONVIVA_SDK_NOT_LOADED:9E3,CONVIVA_INVALID_CONFIGURATION:9001,CONVIVA_RUNTIME_ERROR:9002,GL_CONTEXT_ERROR:9003,GL_SHADER_ERROR:9004,YOUBORA_SDK_MISSING:9100,YOUBORA_INVALID_CONFIGURATION:9101,YOUBORA_SDK_VERSION_NOT_SUPPORTED:9102,VIMOND_INVALID_CONFIGURATION:9200,VIMOND_SESSION_ERROR:9201,MUXDATA_INVALID_CONFIGURATION:9300,MUX_SDK_MISSING:9301,MUXDATA_INIT_ERROR:9302,
322
+ IMA_SDK_MISSING:1E4,IMA_INVALID_CONFIGURATION:10001,IMA_UNSUPPORTED_PLATFORM:10002,AD_ERROR:10003,BROADPEAK_SDK_MISSING:11E3,BROADPEAK_SESSION_ERROR:11001,FREEWHEEL_SDK_MISSING:12E3,FREEWHEEL_INVALID_CONFIGURATION:12001,CONTENT_TRANSFORMATION_FAILED:14E3};_.ch.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};_.ch.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name==a});return b.length?b[0]:null};var mh=function zq(a){var c;return _.Hf(zq,function(d){1==d.a&&(c=0);if(3!=d.a)return c<a?_.x(d,c,3):d.G(0);c++;return d.G(2)})};_.D("clpp.utils.BufferUtils",kh);kh.toArrayBuffer=th;kh.toDataView=_.sh;kh.toInt32Array=_.rh;kh.toUint32Array=qh;kh.toUint16Array=ph;kh.toUint8Array=_.N;kh.equal=nh;var wh=new _.H("clpp.utils.strings");_.D("clpp.utils.strings.fromUtf8",_.vh);_.D("clpp.utils.strings.fromBytesAutoDetect",_.yh);_.D("clpp.utils.strings.toUtf8",_.zh);_.D("clpp.utils.strings.toUtf16",_.Ah);_.D("clpp.utils.strings.toByteArray",_.Bh);_.D("clpp.utils.strings.startsWith",_.Ch);_.D("clpp.utils.strings.endsWith",_.Dh);_.D("clpp.utils.strings.bitrateToString",_.Gh);
323
+ _.D("clpp.utils.strings.durationToString",function(a,b){function c(h){return function(l,m){return d(h,m.length-1)}}function d(h,l){return h.length<l?d("0"+h,l):h}b=void 0===b?"%h:%mm:%ss":b;if(null===a||void 0===a)a=0;if(null===b||void 0===b)b="%h:%mm:%ss";var e=Math.floor(a/3600),f=Math.floor((a-3600*e)/60),g=Math.floor(a-3600*e-60*f);return b.replace(/(%h+)/,c(String(e))).replace(/(%m+)/,c(String(f))).replace(/(%s+)/,c(String(g)))});
324
+ _.D("clpp.utils.strings.hashCode",function(a){var b=0;if(0===a.length)return b;for(var c=0;c<a.length;c++)b=(b<<5)-b+a.charCodeAt(c),b|=0;return b});var Hh=document.createElement("span");var Jh=[403,401];_.D("clpp.net.DEFAULT_FATAL_STATUS_CODES",Jh);_.D("clpp.net.makeRequest",_.Nh);_.Mh=6;_.D("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.Mh});_.Sh.prototype.resolve=function(){};_.Sh.prototype.reject=function(){};_.Th.prototype.abort=function(){this.a=!0;return this.w()};_.Th.prototype.ud=function(a,b){function c(){e.reject(new _.L(_.M,7,7001));return d.abort()}var d=this,e=new _.Sh;this.O.then(function(f){d.a?e.reject(new _.L(_.M,7,7001)):a?c=Vh(a,f,e):e.resolve(f)},function(f){b?c=Vh(b,f,e):e.reject(f)});return new _.Th(e,function(){return c()})};_.Th.aborted=function(){var a=Promise.reject(new _.L(_.M,7,7001));a["catch"](function(){});return new _.Th(a,function(){return Promise.resolve()})};
325
+ _.Th.prototype.chain=_.Th.prototype.ud;_.Wh.prototype.destroy=function(){for(var a=[],b=_.u(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.O["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.t=_.di.prototype;_.t.Kj=function(a){0<a?_.G("Rate limit set to "+a+"bps"):_.G("Rate limit disabled");this.h=a};_.t.release=function(){return this.j.destroy()};_.t.destroy=function(){this.m=!0;this.f=[];this.g=[];return this.j.destroy()};_.t.Fg=function(a){this.f.push(a)};_.t.ce=function(a){this.g.push(a)};_.t.Cj=function(a){this.f=this.f.filter(function(b){return b!==a})};_.t.Te=function(a){this.g=this.g.filter(function(b){return b!==a})};
326
+ _.t.fetch=function(a){var b=this;if(this.m)return new Tp(Promise.reject(new _.L(1,1,7001,{url:a.uris[a.uriIndex],request:a})));this.h&&0<this.h&&(a.rateLimitBps=this.h);for(var c=[],d=_.u(this.f),e=d.next();!e.done;e=d.next())c.push(e.value);if(a.requestModifiers)for(d=_.u(a.requestModifiers),e=d.next();!e.done;e=d.next())c.push(e.value);a.requestModifiers=c;c=[];d=_.u(this.g);for(e=d.next();!e.done;e=d.next())c.push(e.value);if(a.responseModifiers)for(d=_.u(a.responseModifiers),e=d.next();!e.done;e=
327
+ d.next())c.push(e.value);a.responseModifiers=c;d=c=new _.Sh;try{var f={},g=_.u(a.requestModifiers);for(e=g.next();!e.done;f={Xd:f.Xd},e=g.next())f.Xd=e.value,d=d.then(function(m){return function(n){if(h.a)throw new _.L(_.M,1,7001,n?{url:n.uris[n.uriIndex],request:n}:null);return m.Xd(n)||n}}(f))["catch"](function(m){if(m instanceof _.L)throw m;throw new _.L(_.M,1,1006,null,m);});d=d.then(function(m){var n=new _.Lg(m.uris[m.uriIndex]),p=n.Xa;p||(p=location.protocol,p=p.slice(0,-1),Mg(n,p),m.uris[m.uriIndex]=
328
+ n.toString());p=b.a[p];if(!p)throw new _.L(_.M,1,1E3,{url:n.toString()});return{request:m,plugin:p}});var h=new Tp(d);g={};var l=_.u(a.responseModifiers);for(e=l.next();!e.done;g={rd:g.rd},e=l.next())g.rd=e.value,h.then(function(m){return function(n){function p(){if(h.a)throw new _.L(_.M,1,7001,n?{url:n.request.uris[n.request.uriIndex],request:n.request}:null);}p();var q=m.rd(n)||n;p();return q}}(g))["catch"](function(m){return function(n){if(n instanceof _.L&&n.data&&n.data.response){var p=m.rd(n.data.response);
329
+ if(p)return p.then(function(){return Promise.reject(n)})}return Promise.reject(n)}}(g))["catch"](function(m){if(m instanceof _.L)throw m;throw new _.L(_.M,1,1007,null,m);});_.Xh(this.j,h);c.resolve(a);return h}catch(m){return new Tp(Promise.reject(m))}};_.D("clpp.net.NetworkEngine",_.di);_.di.prototype.fetch=_.di.prototype.fetch;_.di.prototype.removeResponseModifier=_.di.prototype.Te;_.di.prototype.removeRequestModifier=_.di.prototype.Cj;_.di.prototype.addResponseModifier=_.di.prototype.ce;
330
+ _.di.prototype.addRequestModifier=_.di.prototype.Fg;_.di.prototype.setRateLimit=_.di.prototype.Kj;var ji;_.gi.prototype.va=function(a){return this.type===a.type&&this.channelsCount===a.channelsCount&&this.frameRate===a.frameRate&&this.kind===a.kind&&this.label===a.label&&this.language===a.language&&this.mimeType===a.mimeType&&Ig(this.roles,a.roles)&&Ig(this.accessibility,a.accessibility,ni)};_.gi.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.D("clpp.Track",_.gi);_.gi.prototype.toString=_.gi.prototype.toString;
331
+ _.D("clpp.Rendition",_.oi);_.li=1;_.ii=_.Re;_.Q=_.kc;_.P=_.Ce;ji=_.Cd;_.Aq={VIDEO:_.ii,AUDIO:_.Q,TEXT:_.P,METADATA:ji};_.gi.Type=_.Aq;_.D("clpp.utils.url.queryString",_.ri);ui.prototype.h=function(a,b){var c=this,d,e,f,g,h,l,m;return _.A(function(n){switch(n.a){case 1:return d=null,_.zf(n,2),_.x(n,Ai(c,a),4);case 4:d=n.f;_.Af(n,3);break;case 2:return e=_.Bf(n),c.a.warn("Failed to fetch playlist in order metadata from HLS playlist.",e.message),n["return"](Promise.resolve({}));case 3:f={};_.zf(n,5);if(!b.enableHlsVideoTrackInfo){n.G(7);break}return _.x(n,xi(c,d,a),8);case 8:g=n.f,f.renditions=g.renditions,f.mimeType=g.mimeType;case 7:_.Af(n,6);break;case 5:h=_.Bf(n),c.a.warn("Failed to parse video metadata from HLS playlist.",
332
+ h.message);case 6:return _.zf(n,9),_.x(n,zi(d),11);case 11:l=n.f;f.Uf=l;_.Af(n,10);break;case 9:m=_.Bf(n),c.a.warn("Failed to parse metadata from HLS playlist.",m.message);case 10:return n["return"](f)}})};_.Gi=[];_.t=_.R.prototype;_.t.ge=function(){return!0};_.t.ci=function(a){return this.getVideoTracks().find(function(b){return _.K.va(b,a,a&&Object.keys(a))})};_.t.Zh=function(a){return this.getAudioTracks().find(function(b){return _.K.va(b,a,a&&Object.keys(a))})};_.t.ai=function(a){return this.ia().find(function(b){return _.K.va(b,a,a&&Object.keys(a))})};_.t.bi=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.K.va(b,a,a&&Object.keys(a))})};
333
+ _.t.Yh=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.K.va(b,a,a&&Object.keys(a))})};_.t.$h=function(a){return this.ia().flatMap(function(b){return b.renditions}).find(function(b){return _.K.va(b,a,a&&Object.keys(a))})};_.D("clpp.TrackManager",_.R);_.R.prototype.isAbrEnabled=_.R.prototype.ka;_.R.prototype.addTextTrack=_.R.prototype.addTextTrack;_.R.prototype.findTextRendition=_.R.prototype.$h;_.R.prototype.findAudioRendition=_.R.prototype.Yh;
334
+ _.R.prototype.findVideoRendition=_.R.prototype.bi;_.R.prototype.findTextTrack=_.R.prototype.ai;_.R.prototype.findAudioTrack=_.R.prototype.Zh;_.R.prototype.findVideoTrack=_.R.prototype.ci;_.R.prototype.setTextRendition=_.R.prototype.mb;_.R.prototype.setAudioRendition=_.R.prototype.lb;_.R.prototype.setVideoRendition=_.R.prototype.Ya;_.R.prototype.setTextTrack=_.R.prototype.Ba;_.R.prototype.setAudioTrack=_.R.prototype.sa;_.R.prototype.setVideoTrack=_.R.prototype.Za;_.R.prototype.getTextTrack=_.R.prototype.oa;
335
+ _.R.prototype.getAudioTrack=_.R.prototype.na;_.R.prototype.getVideoTrack=_.R.prototype.Ha;_.R.prototype.getLoadingTextRendition=_.R.prototype.fb;_.R.prototype.getLoadingAudioRendition=_.R.prototype.eb;_.R.prototype.getLoadingVideoRendition=_.R.prototype.Ta;_.R.prototype.getTextRendition=_.R.prototype.Fa;_.R.prototype.getAudioRendition=_.R.prototype.Ea;_.R.prototype.getVideoRendition=_.R.prototype.ha;_.R.prototype.getTextTracks=_.R.prototype.ia;_.R.prototype.getAudioTracks=_.R.prototype.getAudioTracks;
336
+ _.R.prototype.getVideoTracks=_.R.prototype.getVideoTracks;_.R.prototype.canSelectVideoTracks=_.R.prototype.ge;var Li=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",
337
+ "cs"],["dan","da"],["deu","de"],[_.Zc,"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",
338
338
  "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",
339
339
  "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",
340
340
  "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",
341
- "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);_.Aq=(new Map).set(_.Mc,_.Mc).set("frameRate","framerate").set("bandwidth","bitrate").set(_.ff,_.ff).set(_.kd,_.kd).set("channelsCount","channels");_.Pi.prototype.Z=function(a){return Qi(this,a,!1)};_.Pi.prototype.bb=function(a){return Qi(this,a,!0)};_.Pi.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.Ri.prototype.bf=function(){this.stop();this.f();return this};_.Ri.prototype.Z=function(a){var b=this;this.stop();this.a=(new _.Pi(function(){b.f()})).Z(a);return this};_.Ri.prototype.bb=function(a){var b=this;this.stop();this.a=(new _.Pi(function(){b.f()})).bb(a);return this};_.Ri.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.C("clpp.utils.Timer",_.Ri);_.Ri.prototype.stop=_.Ri.prototype.stop;_.Ri.prototype.tickEvery=_.Ri.prototype.bb;_.Ri.prototype.tickAfter=_.Ri.prototype.Z;
342
- _.Ri.prototype.tickNow=_.Ri.prototype.bf;_.C(Lc,Si);Si.getInfo=_.bi;
343
- var bj=null,aj=null,fj=new _.H(Lc),mj="android",lj="ios",rj="linux",nj="osx",oj="windows",pj="tizen",qj="webos",kj=Je,uj=Je,tj={windows:{os_version:/windows\s+?nt\s([\d.]+)/i,ie:/windows\s+?nt.+?trident\/[\d.]+.*rv:([\d.]+)/i,edge:/windows\s+?nt.+?edge?\/([\d.]+)/i,chrome:/windows\s+?nt.+?chrome\/([\d.]+)/i,firefox:/windows\s+?nt.+?firefox\/([\d.]+)/i,opera:/windows\s+?nt.+?opr\/([\d.]+)/i},osx:{os_version:/macintosh.+?([\d._]+)/i,safari:/macintosh.+?version\/([\d._]+).+?safari/i,edge:/macintosh.+?edge?\/([\d._]+)/i,
341
+ "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);_.Bq=(new Map).set(_.Oc,_.Oc).set("frameRate","framerate").set("bandwidth","bitrate").set(_.ff,_.ff).set(_.md,_.md).set("channelsCount","channels");_.Qi.prototype.Z=function(a){return Ri(this,a,!1)};_.Qi.prototype.ab=function(a){return Ri(this,a,!0)};_.Qi.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.Si.prototype.af=function(){this.stop();this.f();return this};_.Si.prototype.Z=function(a){var b=this;this.stop();this.a=(new _.Qi(function(){b.f()})).Z(a);return this};_.Si.prototype.ab=function(a){var b=this;this.stop();this.a=(new _.Qi(function(){b.f()})).ab(a);return this};_.Si.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.D("clpp.utils.Timer",_.Si);_.Si.prototype.stop=_.Si.prototype.stop;_.Si.prototype.tickEvery=_.Si.prototype.ab;_.Si.prototype.tickAfter=_.Si.prototype.Z;
342
+ _.Si.prototype.tickNow=_.Si.prototype.af;_.D(Nc,Ti);Ti.getInfo=_.ai;
343
+ var cj=null,bj=null,ej=new _.H(Nc),nj="android",mj="ios",sj="linux",oj="osx",pj="windows",qj="tizen",rj="webos",lj=Je,vj=Je,uj={windows:{os_version:/windows\s+?nt\s([\d.]+)/i,ie:/windows\s+?nt.+?trident\/[\d.]+.*rv:([\d.]+)/i,edge:/windows\s+?nt.+?edge?\/([\d.]+)/i,chrome:/windows\s+?nt.+?chrome\/([\d.]+)/i,firefox:/windows\s+?nt.+?firefox\/([\d.]+)/i,opera:/windows\s+?nt.+?opr\/([\d.]+)/i},osx:{os_version:/macintosh.+?([\d._]+)/i,safari:/macintosh.+?version\/([\d._]+).+?safari/i,edge:/macintosh.+?edge?\/([\d._]+)/i,
344
344
  chrome:/macintosh.+?chrome\/([\d._]+)/i,firefox:/macintosh.+?firefox\/([\d._]+)/i,opera:/macintosh.+?opr\/([\d._]+)/i},unknown:{ie:/.+?trident\/([\d.]+)/i,edge:/.+?edge?\/([\d.]+)/i,safari:/.+?version\/([\d._]+).+?safari/i,chrome:/.+?chrome\/([\d._]+)/i,firefox:/.+?firefox\/([\d._]+)/i,opera:/.+?opr\/([\d._]+)/i},android:{os_version:/android.+?([\d._]+)/i,chrome:/android.+?chrome\/([\d._]+)/i,firefox:/android.+?firefox\/([\d._]+)/i,opera:/android.+?opr\/([\d._]+)/i},ios:{os_version:/(?:iPad|iPhone).+?([\d._]+)/i,
345
345
  chrome:/.+?CriOS\/([\d._]+)/i,firefox:/.+?FxiOS\/([\d._]+)/i,safari:/.+?version\/([\d._]+).+?safari/i,opera:/.+?opr\/([\d._]+)/i},linux:{os_version:/linux.+?([\d._]+)/i,safari:/linux.+?version\/([\d._]+).+?safari/i,chrome:/linux.+?chrome\/([\d._]+)/i,firefox:/linux.+?firefox\/([\d._]+)/i,opera:/linux.+?opr\/([\d._]+)/i},tizen:{os_version:/tizen.+?([\d._]+)/i,safari:/linux.+?version\/([\d._]+).+?safari/i,chrome:/linux.+?chrome\/([\d._]+)/i,firefox:/linux.+?firefox\/([\d._]+)/i,opera:/linux.+?opr\/([\d._]+)/i},
346
- webos:{os_version:/linux.+?([\d._]+)/i,safari:/linux.+?version\/([\d._]+).+?safari/i,chrome:/linux.+?chrome\/([\d._]+)/i,firefox:/linux.+?firefox\/([\d._]+)/i,opera:/linux.+?opr\/([\d._]+)/i}};_.v(vj,_.R);_.t=vj.prototype;_.t.he=function(){return!_.Yi()};
347
- _.t.Ne=function(a,b){var c=this,d,e,f,g,h,l,m,n,p,q,r;return _.B(function(w){if(1==w.a){if(!b)return c.a.warn(Za),w["return"]();d=b.track;if(!d)return c.a.warn($a),w["return"]();if(e=c.h.find(function(y){return Jj(y,d,a)}))return c.a.warn("Track from event already exists",d,e),w["return"]();f=ni(a,d);g=Nj(d);if(a===_.P){if(d.kind===_.Bd)return w["return"]();void 0!==d.id?h=c.o[d.id]:(l=Object.values(c.o),h=l.find(function(y){return Jj(f,y,a)}));f.kind&&"captions"===f.kind&&(f.mimeType=_.bc);h&&(f.src=
348
- h.url,f.mimeType=h.mimeType)}else if(e=c.h.find(function(y){return y.type===a&&_.K.va(y,f,["kind","label","language"])}))return e.id=d.id,g&&(c.a.debug(qb+a+" track active"),c.f.set(a,e)),c.a.debug("Track from event seems to already exists, flipped native track to",d),w["return"]();_.zf(w,2);m=new _.pi(f.id,f);f.renditions.push(m);c.h.push(f);n=c.l.getConfiguration().safari;return zj(c,a,n)?_.x(w,Cj(c,f,n),5):Aj(c,a,n)?_.x(w,Dj(c,f,n),5):w.H(5)}if(2!=w.a){c.a.debug(a+" Track added",f);c.l.trigger(new _.J(_.Bq));
349
- p=Gj(c,a).length;q=a===_.ji||a===_.Q;if(g||1===p&&q)c.a.debug(qb+a+" track active. Native track active: "+(g+". Number of tracks: ")+p,d),c.f.set(a,f);return _.Af(w,0)}r=_.Bf(w);c.a.error("Error while converting track data",r);_.z(w)})};
350
- _.t.Pe=function(a,b){if(b){var c=b.track;if(!c)this.a.warn($a);else if(a===_.P&&c.kind!==_.Bd){var d=this.h.find(function(e){return Jj(e,c,a)});d&&(this.h.splice(this.h.indexOf(d),1),(this.f.get(a)||null)===d&&(this.f.set(a,null),Pj(this)),this.a.debug(a+" Track removed, id: ",d.id))}}else this.a.warn(Za)};
351
- _.t.Oe=function(a,b){this.a.debug(a+" Track changed",b);a===_.P&&Pj(this);var c=Fj(this,a);if(c)for(var d={rc:0};d.rc<c.length;d={rc:d.rc},++d.rc)if(Nj(c[d.rc])){if(d=this.h.find(function(e){return function(f){return Jj(f,c[e.rc],a)}}(d)))this.f.set(a,d),this.a.debug("Track change detected, id:",d.id),d===this.m.get(a)&&this.m.set(a,null),a===_.Q?this.l.trigger(new _.J(_.Kj)):a===_.P&&this.l.trigger(new _.J(_.Lj));break}};_.t.initialize=function(a){this.l=a;this.j=new vi(a.getNetworkEngine())};
352
- _.t.load=function(){this.A=!1;var a=Ej(this,_.P);a&&(this.g.on(a,_.Wb,this.K),this.g.on(a,ge,this.N),this.g.on(a,Dc,this.L));if(a=Ej(this,_.Q))this.g.on(a,_.Wb,this.F),this.g.on(a,ge,this.J),this.g.on(a,Dc,this.I);if(a=Ej(this,_.ji))this.g.on(a,_.Wb,this.R),this.g.on(a,ge,this.V),this.g.on(a,Dc,this.T);this.g.one(this.l,wc,this.Fh.bind(this))};_.t.release=function(){this.A=!0;this.h=[];this.o={};this.f.clear();this.m.clear();this.g.release()};_.t.destroy=function(){this.release();this.l=null};
353
- _.t.getVideoTracks=function(){return Gj(this,_.ji)};_.t.getAudioTracks=function(){return Gj(this,_.Q)};_.t.ha=function(){return Gj(this,_.P)};_.t.ga=function(){var a=this,b=this.f.get(_.ji)||null;if(!b)return null;if(this.w){var c=b.renditions.find(function(d){return d.width===a.w.width&&d.height===a.w.height});if(c)return c}return b.renditions[0]||null};_.t.Fa=function(){return Hj(this,_.Q)};_.t.Ga=function(){return Hj(this,_.P)};_.t.Ua=function(){return Ij(this,_.ji)};
354
- _.t.fb=function(){return Ij(this,_.Q)};_.t.gb=function(){return Ij(this,_.P)};_.t.Ia=function(){return this.f.get(_.ji)||null};_.t.ma=function(){return this.f.get(_.Q)||null};_.t.na=function(){return this.f.get(_.P)||null};_.t.ab=function(a){Mj(this,_.ji,a)};_.t.sa=function(a){Mj(this,_.Q,a)};_.t.Ba=function(a){Mj(this,_.P,a)};_.t.$a=function(a){Mj(this,_.ji,a&&a.track)};_.t.mb=function(a){Mj(this,_.Q,a&&a.track)};_.t.nb=function(a){Mj(this,_.P,a&&a.track)};
355
- _.t.addTextTrack=function(a){var b=this,c;return _.B(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.B++,b.o[c]=a,wj(b,a,c),d.H(0)):_.x(d,xj(b,a),0)})};_.t.ja=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};
356
- _.t.Fh=function(){var a=this,b,c,d;return _.B(function(e){if(1==e.a){b=a.l.getConfiguration();Oj(a,_.Q,b.preferredAudioLanguage);c=Fj(a,_.P);if(c.some(function(f){return Nj(f)}))return e.H(2);d=Ej(a,_.P);return _.x(e,new Promise(function(f){a.g.one(d,Dc,f);(new _.Ri(f)).Z(1)}),2)}if(a.A)return e["return"]();Oj(a,_.P,b.preferredTextLanguage);_.z(e)})};vj.prototype.isAbrEnabled=vj.prototype.ja;vj.prototype.addTextTrack=vj.prototype.addTextTrack;vj.prototype.setTextRendition=vj.prototype.nb;
357
- vj.prototype.setAudioRendition=vj.prototype.mb;vj.prototype.setVideoRendition=vj.prototype.$a;vj.prototype.setTextTrack=vj.prototype.Ba;vj.prototype.setAudioTrack=vj.prototype.sa;vj.prototype.setVideoTrack=vj.prototype.ab;vj.prototype.getTextTrack=vj.prototype.na;vj.prototype.getAudioTrack=vj.prototype.ma;vj.prototype.getVideoTrack=vj.prototype.Ia;vj.prototype.getLoadingTextRendition=vj.prototype.gb;vj.prototype.getLoadingAudioRendition=vj.prototype.fb;vj.prototype.getLoadingVideoRendition=vj.prototype.Ua;
358
- vj.prototype.getTextRendition=vj.prototype.Ga;vj.prototype.getAudioRendition=vj.prototype.Fa;vj.prototype.getVideoRendition=vj.prototype.ga;vj.prototype.getTextTracks=vj.prototype.ha;vj.prototype.getAudioTracks=vj.prototype.getAudioTracks;vj.prototype.getVideoTracks=vj.prototype.getVideoTracks;vj.prototype.canSelectVideoTracks=vj.prototype.he;_.t=_.Qj.prototype;_.t.start=function(a){if(this.f)return this.f.start(a);if(a<this.a.length)return this.a[a].start;throw Error(vb);};_.t.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(vb);};_.t.rb=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:1===this.length&&0>this.start(0)?0:this.start(0)};_.t.xa=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
359
- _.t.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};
360
- _.t.Da=function(a,b){b=void 0===b?!1:b;if(!this.length||1===this.length&&1E-6>this.end(0)-this.start(0))return 0;var c=0;if(b){var d=this.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};_.C("clpp.BufferInfo",_.Qj);_.Qj.prototype.bufferedAheadOf=_.Qj.prototype.Da;_.Qj.prototype.isBuffered=_.Qj.prototype.ec;_.Qj.prototype.bufferEnd=_.Qj.prototype.xa;_.Qj.prototype.bufferStart=_.Qj.prototype.rb;_.Qj.prototype.end=_.Qj.prototype.end;
361
- _.Qj.prototype.start=_.Qj.prototype.start;_.t=_.Rj.prototype;_.t.addEventListener=function(a,b){this.on(a,b)};_.t.removeEventListener=function(a,b){this.off(a,b)};_.t.on=function(a,b,c){return this.cd.on(a,b,c)};_.t.one=function(a,b,c){return this.cd.one(a,b,c)};_.t.off=function(a,b){return this.cd.off(a,b)};_.t.addDelegate=function(a){a&&(0<=this.$c.indexOf(a)||this.$c.push(a))};_.t.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};_.t.removeDelegate=function(a){a&&(a=this.$c.indexOf(a),0<=a&&this.$c.splice(a,1))};
362
- _.t.trigger=function(a){this.cd.trigger(a);for(var b=_.u(this.$c),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.Rj.prototype.off=_.Rj.prototype.off;_.Rj.prototype.one=_.Rj.prototype.one;_.Rj.prototype.on=_.Rj.prototype.on;_.Rj.prototype.removeEventListener=_.Rj.prototype.removeEventListener;_.Rj.prototype.addEventListener=_.Rj.prototype.addEventListener;_.C("clpp.events.ERROR",_.hd);_.C("clpp.events.LOADEDMETADATA",_.wd);_.C("clpp.events.BUFFERING_ENDED",_.tc);_.C("clpp.events.BUFFERING_STARTED",_.uc);_.C("clpp.events.STATE_CHANGED",_.se);_.Kj="audiotrackchanged";_.C("clpp.events.AUDIO_TRACK_CHANGED",_.Kj);_.Lj="texttrackchanged";_.C("clpp.events.TEXT_TRACK_CHANGED",_.Lj);_.C("clpp.events.VIDEO_TRACK_CHANGED",_.Ve);_.C("clpp.events.BITRATE_CHANGED",_.rc);_.Bq="tracksadded";_.C("clpp.events.TRACKS_ADDED",_.Bq);_.C("clpp.events.LOAD_START",xd);
363
- _.C("clpp.events.RELEASING",_.fe);_.C("clpp.events.RELEASED",ee);_.C("clpp.events.DESTROYING","destroying");_.C("clpp.events.DESTROYED","destroyed");_.C("clpp.events.VIDEO_BUFFER_CHANGED",_.Ue);_.C("clpp.events.AUDIO_BUFFER_CHANGED",_.pc);_.C("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.C("clpp.events.DRM_SESSION_UPDATE",_.bd);_.C("clpp.events.DRM_SESSION_PERSISTED",_.ad);_.C("clpp.events.DRM_RENEWAL_STARTED",Zc);_.C("clpp.events.DRM_EXPIRATION_UPDATE",_.Yc);
364
- _.C("clpp.events.AUTOPLAY_NOT_ALLOWED",_.qc);_.C("clpp.events.PLAY",_.Yd);_.C("clpp.events.SEEKING",_.le);_.C("clpp.events.SEEKED",_.ke);_.C("clpp.events.USER_SEEKING",_.Ne);_.C("clpp.events.USER_SEEKED",_.Me);_.dn={SEEKING:1,NO_DATA:2};_.C("clpp.events.BufferingReasons",_.dn);_.C("clpp.events.ADS_TIMELINE_CHANGED",_.Xb);_.C("clpp.events.AD_LOADED",_.Nb);_.C("clpp.events.AD_BREAK_STARTED",_.Gb);_.C("clpp.events.AD_STARTED",_.Tb);_.C("clpp.events.AD_BUFFERING",_.Ib);_.C("clpp.events.AD_PROGRESS",_.Qb);
365
- _.C("clpp.events.AD_FIRST_QUARTILE",_.Lb);_.C("clpp.events.AD_MIDPOINT",_.Ob);_.C("clpp.events.AD_THIRD_QUARTILE",_.Vb);_.C("clpp.events.AD_PAUSED",_.Pb);_.C("clpp.events.AD_RESUMED",_.Rb);_.C("clpp.events.AD_SKIPPED",_.Sb);_.C("clpp.events.AD_CLICKED",_.Jb);_.C("clpp.events.AD_IMPRESSION",_.Mb);_.C("clpp.events.AD_COMPLETED",_.Kb);_.C("clpp.events.AD_STOPPED",_.Ub);_.C("clpp.events.AD_BREAK_STOPPED",_.Hb);_.C("clpp.events.CASTING_STARTED",_.xc);_.C("clpp.events.CASTING_ENDED","castingended");
366
- _.C("clpp.events.CAST_STATUS_CHANGED",_.yc);_.C("clpp.events.AIRPLAY_STATUS_CHANGED",_.$b);_.C("clpp.events.AIRPLAY_CASTING_STARTED",_.Zb);_.C("clpp.events.AIRPLAY_CASTING_ENDED",_.Yb);_.pg="timeline-cue-added";_.C("clpp.events.TIMELINE_CUE_ADDED",_.pg);_.rg="timeline-cue-enter";_.C("clpp.events.TIMELINE_CUE_ENTER",_.rg);_.sg="timeline-cue-exit";_.C("clpp.events.TIMELINE_CUE_EXIT",_.sg);_.C("clpp.events.MPD_TYPE_CHANGED",_.Hd);_.C("clpp.events.VIMOND_RESPONSE",_.We);
367
- _.C("clpp.events.PLAYLIST_ITEM_CHANGED",_.$d);_.C("clpp.events.PLAYLIST_MODIFIED",_.ae);_.C("clpp.events.CDN_SWITCH_SUCCESS",_.zc);_.C("clpp.events.ONLINE_STATUS_CHANGED",Qd);var Sj=["play() failed because the user didn't interact","The play method is not allowed by the user agent","The request is not allowed by the user agent or the platform"];_.C("clpp.utils.PlayerConfiguration",Uj);Uj.create=_.Zj;var Cq=["abort",vc,wc,dd,"emptied",ed,_.gd,_.hd,"interruptbegin","interruptend",_.vd,_.wd,xd,"mozaudioavailable",_.Ud,_.Yd,_.Zd,_.be,_.de,_.ke,_.le,pe,"suspend",_.Fe,"volumechange",_.Ze,_.$e,_.ie,ef,df,bf,cf];_.v(_.bk,_.Rj);_.t=_.bk.prototype;_.t.init=function(a,b){this.configuration=this.zd=b;this.B=a;this.log.info("Initializing Player surface");var c=this.B.getMedia();this.log.info("Attaching media element listeners");for(var d=_.u(Cq),e=d.next();!e.done;e=d.next())e=e.value,this.L.on(c,e,this.Tj,e!==_.hd);this.Sc||(this.Sc=this.Df());this.Sc.initialize(this);this.B.showMediaElement()};_.t.release=function(){this.K&&(this.K.destroy(),this.K=null);return Promise.resolve()};
368
- _.t.destroy=function(){this.L.release();return Promise.resolve()};_.t.canPlay=function(a,b){return _.Xf[this.namespace()].canPlay(a,b)};
369
- _.t.play=function(){var a=this;if(!this.o)return Promise.reject("No sources specified yet. You need to load content before calling play.");var b=this.B.getMedia().play();return Promise.resolve(b)["catch"](function(c){a.log.info("Caught play promise exception",c);var d={name:c.name||"",message:c.message||"",stack:c.stack||""};Tj(d)?(a.trigger(new _.J(_.qc)),a.log.warn(_.ma)):d.name===cb&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
370
- _.t.pause=function(){var a=this;return this.o?new Promise(function(b,c){var d=a.getState();if(d!==_.an&&d!==_.cn&&d!==_.kn&&d!==_.jn)c();else if(a.B.getMedia().pause(),a.getState()===_.kn)a.L.one(a,_.se,function(){b()});else b()}):Promise.reject("No sources specified yet. You need to load content before calling pause.")};_.t.isPaused=function(){return this.B.getMedia().paused};_.t.isEnded=function(){return this.B.getMedia().ended};_.t.getConfiguration=function(){return this.configuration};
371
- _.t.setDrmCustomDataModifier=function(a){this.Dc=a};_.t.setCdnErrorCallback=function(a){this.Sa=a};_.t.Gc=function(){return this.Dc};_.t.getSurface=function(){return this.B};_.t.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.Qj(b?b.buffered:void 0,a)};_.t.getPosition=function(){var a=this.B.getMedia();if(a)return a.currentTime;this.log.warn("No media element available, can not report current time!");return 0};
372
- _.t.seek=function(a){var b=this,c=this.getPosition();if(void 0===a||null===a||typeof a!==_.k||a===c)return Promise.resolve();var d=this.B.getMedia();if(!d)return this.log.warn("No media element available, can not set current time!"),Promise.reject();var e=a-c;return.1>=Math.abs(e)?(this.log.info("Skip seek. Delta "+Math.abs(e)+" \x3c 0.1"),Promise.resolve()):new Promise(function(f,g){function h(){if(d.readyState>HTMLMediaElement.HAVE_NOTHING)m();else b.L.one(d,_.wd,m)}function l(n){var p=b.getPosition(),
373
- q=.1>=Math.abs(a-p),r=.25<p-a,w=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,y=n.type===_.ke,A=n.type===_.be,E=n.type===_.Fe,F=A&&w;r=y||q&&F||E&&r;b.log.debug("Checking seeking state after "+n.type+" event. Seek completed:",r,"Current Time:",p,"Target Time:",a,"Native Event:",y,"Time reached",q,"Timeupdate:",E,"Progress:",A,"ReadyState:",w,"Progress Ready:",F);r?(b.ze=!1,b.Ld=!1,b.L.off(d,_.ke,l),b.L.off(d,_.Fe,l),b.L.off(d,_.be,l),b.lg(),b.trigger(new _.J(_.Me)),f()):A&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
374
- d.currentTime=a)}function m(){b.trigger(new _.J(_.Ne));b.L.on(d,_.ke,l);b.L.on(d,_.Fe,l);b.L.on(d,_.be,l);b.log.info("Seeking to "+a+". Delta "+e);b.ze=!0;b.Ld=!0;d.currentTime=a}b.getState()===_.Wm?(b.log.debug("Player is in IDLE state. Postpone seek."),b.L.one(b,_.se,function(){switch(b.getState()){case _.an:case _.kn:case _.jn:b.log.debug("Valid seek state reached.");h();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):h()})};
375
- _.t.getVolume=function(){var a=this.B.getMedia();if(a)return a.volume;this.log.warn("No media element available, can not report volume!");return null};_.t.setVolume=function(a){var b=this.B.getMedia();b?_.K.ka(a)?0>a||1<a?this.log.warn(qa+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(qa+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.t.isMuted=function(){return this.B.getMedia().muted};
376
- _.t.setMuted=function(a){var b=this.B.getMedia();typeof a===_.sc&&(b.muted=a)};_.t.getDuration=function(){return this.o?this.B.getMedia().duration:-1};_.t.getTrackManager=function(){return this.Sc};_.t.getPlaybackRate=function(){var a=this.B.getMedia();return a&&a.playbackRate||1};_.t.setPlaybackRate=function(a){var b=this.B.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.t.setSourceIndex=function(a){this.Cd=a};_.t.getSourceIndex=function(){return this.Cd};
377
- _.t.getLoadedSource=function(){return this.o&&-1!==this.Cd?this.o[this.Cd]:null};_.t.getPeriods=function(){return[]};_.t.getNetworkEngine=function(){return this.Yf};_.t.setNetworkEngine=function(a){this.Yf=a};_.t.getTextDisplayer=function(){return this.K};_.t.getTimelineCues=function(){return[]};_.t.resetAbr=function(){};
378
- _.t.Ej=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.Fe||a.type===_.be)this.xg.debug(d);else{var e="";switch(a.type){case _.de:e="Rate: "+this.getPlaybackRate();break;case dd:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.Yd:case _.Zd:case "suspend":case _.Ze:case pe:case _.le:case _.ke:case _.Fe:case _.be:case vc:case wc:b=
379
- this.getBufferInfo().Da(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.ie:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.xg.info(d)}a.type!==_.hd&&this.trigger(new _.J(a.type,{detail:a}))};_.t.lg=function(){};_.bk.prototype.getTextDisplayer=_.bk.prototype.getTextDisplayer;_.bk.prototype.setNetworkEngine=_.bk.prototype.setNetworkEngine;_.bk.prototype.getNetworkEngine=_.bk.prototype.getNetworkEngine;var ek;ek=new _.H("clpp.Components");_.ck=new Map;_.C("clpp.utils.Uint8ArrayUtils",_.hk);_.hk.toStandardBase64=_.ik;_.hk.concat=_.ok;_.hk.equal=_.nk;_.hk.toHex=_.mk;_.hk.fromHex=_.lk;_.hk.fromBase64=_.kk;_.hk.toBase64Url=_.jk;pk.prototype.release=function(){this.a=this.f=null};_.C("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.nb,SW_SECURE_DECODE:_.ob,HW_SECURE_CRYPTO:Na,HW_SECURE_DECODE:Oa,HW_SECURE_ALL:"HW_SECURE_ALL"});_.C("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.C("clpp.drm.KeySystem",{NONE:_.Jd,CLEAR_KEY:_.Sd,WIDEVINE:_.Rc,PLAYREADY:_.Qc,FAIRPLAY:_.Pc,PRIMETIME:_.Oc});_.tk={};_.C("clpp.drm.registerDrmEnvironment",_.uk);var xk={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,
346
+ webos:{os_version:/linux.+?([\d._]+)/i,safari:/linux.+?version\/([\d._]+).+?safari/i,chrome:/linux.+?chrome\/([\d._]+)/i,firefox:/linux.+?firefox\/([\d._]+)/i,opera:/linux.+?opr\/([\d._]+)/i}};_.v(wj,_.R);_.t=wj.prototype;_.t.ge=function(){return!_.Zi()};
347
+ _.t.Me=function(a,b){var c=this,d,e,f,g,h,l,m,n,p,q,r;return _.A(function(w){if(1==w.a){if(!b)return c.a.warn(Za),w["return"]();d=b.track;if(!d)return c.a.warn($a),w["return"]();if(e=c.h.find(function(z){return Kj(z,d,a)}))return c.a.warn("Track from event already exists",d,e),w["return"]();f=mi(a,d);g=Oj(d);if(a===_.P){if(d.kind===_.Cd)return w["return"]();void 0!==d.id?h=c.o[d.id]:(l=Object.values(c.o),h=l.find(function(z){return Kj(f,z,a)}));f.kind&&"captions"===f.kind&&(f.mimeType=_.cc);h&&(f.src=
348
+ h.url,f.mimeType=h.mimeType)}else if(e=c.h.find(function(z){return z.type===a&&_.K.va(z,f,["kind","label","language"])}))return e.id=d.id,g&&(c.a.debug(pb+a+" track active"),c.f.set(a,e)),c.a.debug("Track from event seems to already exists, flipped native track to",d),w["return"]();_.zf(w,2);m=new _.oi(f.id,f);f.renditions.push(m);c.h.push(f);n=c.l.getConfiguration().safari;return Aj(c,a,n)?_.x(w,Dj(c,f,n),5):Bj(c,a,n)?_.x(w,Ej(c,f,n),5):w.G(5)}if(2!=w.a){c.a.debug(a+" Track added",f);c.l.trigger(new _.J(_.Cq));
349
+ p=Hj(c,a).length;q=a===_.ii||a===_.Q;if(g||1===p&&q)c.a.debug(pb+a+" track active. Native track active: "+(g+". Number of tracks: ")+p,d),c.f.set(a,f);return _.Af(w,0)}r=_.Bf(w);c.a.error("Error while converting track data",r);_.y(w)})};
350
+ _.t.Oe=function(a,b){if(b){var c=b.track;if(!c)this.a.warn($a);else if(a===_.P&&c.kind!==_.Cd){var d=this.h.find(function(e){return Kj(e,c,a)});d&&(this.h.splice(this.h.indexOf(d),1),(this.f.get(a)||null)===d&&(this.f.set(a,null),Qj(this)),this.a.debug(a+" Track removed, id: ",d.id))}}else this.a.warn(Za)};
351
+ _.t.Ne=function(a,b){this.a.debug(a+" Track changed",b);a===_.P&&Qj(this);var c=Gj(this,a);if(c)for(var d={pc:0};d.pc<c.length;d={pc:d.pc},++d.pc)if(Oj(c[d.pc])){if(d=this.h.find(function(e){return function(f){return Kj(f,c[e.pc],a)}}(d)))this.f.set(a,d),this.a.debug("Track change detected, id:",d.id),d===this.m.get(a)&&this.m.set(a,null),a===_.Q?this.l.trigger(new _.J(_.Lj)):a===_.P&&this.l.trigger(new _.J(_.Mj));break}};_.t.initialize=function(a){this.l=a;this.j=new ui(a.getNetworkEngine())};
352
+ _.t.load=function(){this.A=!1;var a=Fj(this,_.P);a&&(this.g.on(a,_.Wb,this.J),this.g.on(a,he,this.M),this.g.on(a,Fc,this.K));if(a=Fj(this,_.Q))this.g.on(a,_.Wb,this.F),this.g.on(a,he,this.I),this.g.on(a,Fc,this.H);if(a=Fj(this,_.ii))this.g.on(a,_.Wb,this.P),this.g.on(a,he,this.U),this.g.on(a,Fc,this.S);this.g.one(this.l,yc,this.Ch.bind(this))};_.t.release=function(){this.A=!0;this.h=[];this.o={};this.f.clear();this.m.clear();this.g.release()};_.t.destroy=function(){this.release();this.l=null};
353
+ _.t.getVideoTracks=function(){return Hj(this,_.ii)};_.t.getAudioTracks=function(){return Hj(this,_.Q)};_.t.ia=function(){return Hj(this,_.P)};_.t.ha=function(){var a=this,b=this.f.get(_.ii)||null;if(!b)return null;if(this.w){var c=b.renditions.find(function(d){return d.width===a.w.width&&d.height===a.w.height});if(c)return c}return b.renditions[0]||null};_.t.Ea=function(){return Ij(this,_.Q)};_.t.Fa=function(){return Ij(this,_.P)};_.t.Ta=function(){return Jj(this,_.ii)};
354
+ _.t.eb=function(){return Jj(this,_.Q)};_.t.fb=function(){return Jj(this,_.P)};_.t.Ha=function(){return this.f.get(_.ii)||null};_.t.na=function(){return this.f.get(_.Q)||null};_.t.oa=function(){return this.f.get(_.P)||null};_.t.Za=function(a){Nj(this,_.ii,a)};_.t.sa=function(a){Nj(this,_.Q,a)};_.t.Ba=function(a){Nj(this,_.P,a)};_.t.Ya=function(a){Nj(this,_.ii,a&&a.track)};_.t.lb=function(a){Nj(this,_.Q,a&&a.track)};_.t.mb=function(a){Nj(this,_.P,a&&a.track)};
355
+ _.t.addTextTrack=function(a){var b=this,c;return _.A(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.B++,b.o[c]=a,xj(b,a,c),d.G(0)):_.x(d,yj(b,a),0)})};_.t.ka=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};
356
+ _.t.Ch=function(){var a=this,b,c,d;return _.A(function(e){if(1==e.a){b=a.l.getConfiguration();Pj(a,_.Q,b.preferredAudioLanguage);c=Gj(a,_.P);if(c.some(function(f){return Oj(f)}))return e.G(2);d=Fj(a,_.P);return _.x(e,new Promise(function(f){a.g.one(d,Fc,f);(new _.Si(f)).Z(1)}),2)}if(a.A)return e["return"]();Pj(a,_.P,b.preferredTextLanguage);_.y(e)})};wj.prototype.isAbrEnabled=wj.prototype.ka;wj.prototype.addTextTrack=wj.prototype.addTextTrack;wj.prototype.setTextRendition=wj.prototype.mb;
357
+ wj.prototype.setAudioRendition=wj.prototype.lb;wj.prototype.setVideoRendition=wj.prototype.Ya;wj.prototype.setTextTrack=wj.prototype.Ba;wj.prototype.setAudioTrack=wj.prototype.sa;wj.prototype.setVideoTrack=wj.prototype.Za;wj.prototype.getTextTrack=wj.prototype.oa;wj.prototype.getAudioTrack=wj.prototype.na;wj.prototype.getVideoTrack=wj.prototype.Ha;wj.prototype.getLoadingTextRendition=wj.prototype.fb;wj.prototype.getLoadingAudioRendition=wj.prototype.eb;wj.prototype.getLoadingVideoRendition=wj.prototype.Ta;
358
+ wj.prototype.getTextRendition=wj.prototype.Fa;wj.prototype.getAudioRendition=wj.prototype.Ea;wj.prototype.getVideoRendition=wj.prototype.ha;wj.prototype.getTextTracks=wj.prototype.ia;wj.prototype.getAudioTracks=wj.prototype.getAudioTracks;wj.prototype.getVideoTracks=wj.prototype.getVideoTracks;wj.prototype.canSelectVideoTracks=wj.prototype.ge;_.t=_.Rj.prototype;_.t.start=function(a){if(this.f)return this.f.start(a);if(a<this.a.length)return this.a[a].start;throw Error(tb);};_.t.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(tb);};_.t.qb=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:1===this.length&&0>this.start(0)?0:this.start(0)};_.t.ya=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
359
+ _.t.cc=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};
360
+ _.t.Da=function(a,b){b=void 0===b?!1:b;if(!this.length||1===this.length&&1E-6>this.end(0)-this.start(0))return 0;var c=0;if(b){var d=this.ya();null!=d&&(c=Math.max(0,d-a))}else for(d=this.length-1;0<=d&&this.end(d)>a;--d)c+=this.end(d)-Math.max(this.start(d),a);return c};_.t.toString=function(){for(var a="",b=0;b<this.length;b++)0<b&&(a+=" "),a+=this.start(b).toFixed(3)+"-"+this.end(b).toFixed(3);return a};_.D("clpp.BufferInfo",_.Rj);_.Rj.prototype.bufferedAheadOf=_.Rj.prototype.Da;
361
+ _.Rj.prototype.isBuffered=_.Rj.prototype.cc;_.Rj.prototype.bufferEnd=_.Rj.prototype.ya;_.Rj.prototype.bufferStart=_.Rj.prototype.qb;_.Rj.prototype.end=_.Rj.prototype.end;_.Rj.prototype.start=_.Rj.prototype.start;_.t=_.Sj.prototype;_.t.addEventListener=function(a,b){this.on(a,b)};_.t.removeEventListener=function(a,b){this.off(a,b)};_.t.on=function(a,b,c){return this.bd.on(a,b,c)};_.t.one=function(a,b,c){return this.bd.one(a,b,c)};_.t.off=function(a,b){return this.bd.off(a,b)};_.t.addDelegate=function(a){a&&(0<=this.Zc.indexOf(a)||this.Zc.push(a))};_.t.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};_.t.removeDelegate=function(a){a&&(a=this.Zc.indexOf(a),0<=a&&this.Zc.splice(a,1))};
362
+ _.t.trigger=function(a){this.bd.trigger(a);for(var b=_.u(this.Zc),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.Sj.prototype.off=_.Sj.prototype.off;_.Sj.prototype.one=_.Sj.prototype.one;_.Sj.prototype.on=_.Sj.prototype.on;_.Sj.prototype.removeEventListener=_.Sj.prototype.removeEventListener;_.Sj.prototype.addEventListener=_.Sj.prototype.addEventListener;_.D("clpp.events.ERROR",_.jd);_.D("clpp.events.LOADEDMETADATA",_.xd);_.D("clpp.events.BUFFERING_ENDED",_.vc);_.D("clpp.events.BUFFERING_STARTED",_.wc);_.D("clpp.events.STATE_CHANGED",_.se);_.Lj="audiotrackchanged";_.D("clpp.events.AUDIO_TRACK_CHANGED",_.Lj);_.Mj="texttrackchanged";_.D("clpp.events.TEXT_TRACK_CHANGED",_.Mj);_.D("clpp.events.VIDEO_TRACK_CHANGED",_.Ve);_.D("clpp.events.BITRATE_CHANGED",_.tc);_.Cq="tracksadded";_.D("clpp.events.TRACKS_ADDED",_.Cq);_.D("clpp.events.LOAD_START",yd);
363
+ _.D("clpp.events.RELEASING",_.ge);_.D("clpp.events.RELEASED",fe);_.D("clpp.events.DESTROYING","destroying");_.D("clpp.events.DESTROYED","destroyed");_.D("clpp.events.VIDEO_BUFFER_CHANGED",_.Ue);_.D("clpp.events.AUDIO_BUFFER_CHANGED",_.rc);_.D("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.D("clpp.events.DRM_SESSION_UPDATE",_.dd);_.D("clpp.events.DRM_SESSION_PERSISTED",_.cd);_.D("clpp.events.DRM_RENEWAL_STARTED",bd);_.D("clpp.events.DRM_EXPIRATION_UPDATE",_.$c);
364
+ _.D("clpp.events.AUTOPLAY_NOT_ALLOWED",_.sc);_.D("clpp.events.PLAY",_.Zd);_.D("clpp.events.SEEKING",_.me);_.D("clpp.events.SEEKED",_.le);_.D("clpp.events.USER_SEEKING",_.Ne);_.D("clpp.events.USER_SEEKED",_.Me);_.en={SEEKING:1,NO_DATA:2};_.D("clpp.events.BufferingReasons",_.en);_.D("clpp.events.ADS_TIMELINE_CHANGED",_.Xb);_.D("clpp.events.AD_LOADED",_.Nb);_.D("clpp.events.AD_BREAK_STARTED",_.Gb);_.D("clpp.events.AD_STARTED",_.Tb);_.D("clpp.events.AD_BUFFERING",_.Ib);_.D("clpp.events.AD_PROGRESS",_.Qb);
365
+ _.D("clpp.events.AD_FIRST_QUARTILE",_.Lb);_.D("clpp.events.AD_MIDPOINT",_.Ob);_.D("clpp.events.AD_THIRD_QUARTILE",_.Vb);_.D("clpp.events.AD_PAUSED",_.Pb);_.D("clpp.events.AD_RESUMED",_.Rb);_.D("clpp.events.AD_SKIPPED",_.Sb);_.D("clpp.events.AD_CLICKED",_.Jb);_.D("clpp.events.AD_IMPRESSION",_.Mb);_.D("clpp.events.AD_COMPLETED",_.Kb);_.D("clpp.events.AD_STOPPED",_.Ub);_.D("clpp.events.AD_BREAK_STOPPED",_.Hb);_.D("clpp.events.CASTING_STARTED",_.zc);_.D("clpp.events.CASTING_ENDED","castingended");
366
+ _.D("clpp.events.CAST_STATUS_CHANGED",_.Ac);_.D("clpp.events.AIRPLAY_STATUS_CHANGED",_.ac);_.D("clpp.events.AIRPLAY_CASTING_STARTED",_.Zb);_.D("clpp.events.AIRPLAY_CASTING_ENDED",_.Yb);_.pg="timeline-cue-added";_.D("clpp.events.TIMELINE_CUE_ADDED",_.pg);_.rg="timeline-cue-enter";_.D("clpp.events.TIMELINE_CUE_ENTER",_.rg);_.sg="timeline-cue-exit";_.D("clpp.events.TIMELINE_CUE_EXIT",_.sg);_.D("clpp.events.MPD_TYPE_CHANGED",_.Id);_.D("clpp.events.VIMOND_RESPONSE",_.We);
367
+ _.D("clpp.events.PLAYLIST_ITEM_CHANGED",_.ae);_.D("clpp.events.PLAYLIST_MODIFIED",_.be);_.D("clpp.events.CDN_SWITCH_SUCCESS",_.Bc);_.D("clpp.events.ONLINE_STATUS_CHANGED",Rd);var Tj=["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"];_.D("clpp.utils.PlayerConfiguration",Vj);Vj.create=_.ak;var Dq=["abort",xc,yc,fd,"emptied",gd,_.id,_.jd,"interruptbegin","interruptend",_.wd,_.xd,yd,"mozaudioavailable",_.Vd,_.Zd,_.$d,_.ce,_.ee,_.le,_.me,pe,"suspend",_.Fe,"volumechange",_.Ze,_.$e,_.je,ef,df,bf,cf];_.v(_.ck,_.Sj);_.t=_.ck.prototype;_.t.init=function(a,b){this.configuration=this.zd=b;this.B=a;this.log.info("Initializing Player surface");var c=this.B.getMedia();this.log.info("Attaching media element listeners");for(var d=_.u(Dq),e=d.next();!e.done;e=d.next())e=e.value,this.K.on(c,e,this.Pj,e!==_.jd);this.Rc||(this.Rc=this.Cf());this.Rc.initialize(this);this.B.showMediaElement()};_.t.release=function(){this.J&&(this.J.destroy(),this.J=null);return Promise.resolve()};
368
+ _.t.destroy=function(){this.K.release();return Promise.resolve()};_.t.canPlay=function(a,b){return _.Xf[this.namespace()].canPlay(a,b)};
369
+ _.t.play=function(){var a=this;if(!this.o)return Promise.reject("No sources specified yet. You need to load content before calling play.");var b=this.B.getMedia().play();return Promise.resolve(b)["catch"](function(c){a.log.info("Caught play promise exception",c);var d={name:c.name||"",message:c.message||"",stack:c.stack||""};Uj(d)?(a.trigger(new _.J(_.sc)),a.log.warn(_.ka)):d.name===bb&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
370
+ _.t.pause=function(){var a=this;return this.o?new Promise(function(b,c){var d=a.getState();if(d!==_.bn&&d!==_.dn&&d!==_.ln&&d!==_.kn)c();else if(a.B.getMedia().pause(),a.getState()===_.ln)a.K.one(a,_.se,function(){b()});else b()}):Promise.reject("No sources specified yet. You need to load content before calling pause.")};_.t.isPaused=function(){return this.B.getMedia().paused};_.t.isEnded=function(){return this.B.getMedia().ended};_.t.getConfiguration=function(){return this.configuration};
371
+ _.t.setDrmCustomDataModifier=function(a){this.Cc=a};_.t.setCdnErrorCallback=function(a){this.Ra=a};_.t.Fc=function(){return this.Cc};_.t.getSurface=function(){return this.B};_.t.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.Rj(b?b.buffered:void 0,a)};_.t.getPosition=function(){var a=this.B.getMedia();if(a)return a.currentTime;this.log.warn("No media element available, can not report current time!");return 0};
372
+ _.t.seek=function(a){var b=this,c=this.getPosition();if(void 0===a||null===a||typeof a!==_.k||a===c)return Promise.resolve();var d=this.B.getMedia();if(!d)return this.log.warn("No media element available, can not set current time!"),Promise.reject();var e=a-c;return.1>=Math.abs(e)?(this.log.info("Skip seek. Delta "+Math.abs(e)+" \x3c 0.1"),Promise.resolve()):new Promise(function(f,g){function h(){if(d.readyState>HTMLMediaElement.HAVE_NOTHING)m();else b.K.one(d,_.xd,m)}function l(n){var p=b.getPosition(),
373
+ q=.1>=Math.abs(a-p),r=.25<p-a,w=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,z=n.type===_.le,C=n.type===_.ce,E=n.type===_.Fe,F=C&&w;r=z||q&&F||E&&r;b.log.debug("Checking seeking state after "+n.type+" event. Seek completed:",r,"Current Time:",p,"Target Time:",a,"Native Event:",z,"Time reached",q,"Timeupdate:",E,"Progress:",C,"ReadyState:",w,"Progress Ready:",F);r?(b.ye=!1,b.Ld=!1,b.K.off(d,_.le,l),b.K.off(d,_.Fe,l),b.K.off(d,_.ce,l),b.kg(),b.trigger(new _.J(_.Me)),f()):C&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
374
+ d.currentTime=a)}function m(){b.trigger(new _.J(_.Ne));b.K.on(d,_.le,l);b.K.on(d,_.Fe,l);b.K.on(d,_.ce,l);b.log.info("Seeking to "+a+". Delta "+e);b.ye=!0;b.Ld=!0;d.currentTime=a}b.getState()===_.Xm?(b.log.debug("Player is in IDLE state. Postpone seek."),b.K.one(b,_.se,function(){switch(b.getState()){case _.bn:case _.ln:case _.kn:b.log.debug("Valid seek state reached.");h();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):h()})};
375
+ _.t.getVolume=function(){var a=this.B.getMedia();if(a)return a.volume;this.log.warn("No media element available, can not report volume!");return null};_.t.setVolume=function(a){var b=this.B.getMedia();b?_.K.la(a)?0>a||1<a?this.log.warn(oa+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(oa+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.t.isMuted=function(){return this.B.getMedia().muted};
376
+ _.t.setMuted=function(a){var b=this.B.getMedia();typeof a===_.uc&&(b.muted=a)};_.t.getDuration=function(){return this.o?this.B.getMedia().duration:-1};_.t.getTrackManager=function(){return this.Rc};_.t.getPlaybackRate=function(){var a=this.B.getMedia();return a&&a.playbackRate||1};_.t.setPlaybackRate=function(a){var b=this.B.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.t.setSourceIndex=function(a){this.Cd=a};_.t.getSourceIndex=function(){return this.Cd};
377
+ _.t.getLoadedSource=function(){return this.o&&-1!==this.Cd?this.o[this.Cd]:null};_.t.getPeriods=function(){return[]};_.t.getNetworkEngine=function(){return this.Xf};_.t.setNetworkEngine=function(a){this.Xf=a};_.t.getTextDisplayer=function(){return this.J};_.t.getTimelineCues=function(){return[]};_.t.resetAbr=function(){};
378
+ _.t.Aj=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.Fe||a.type===_.ce)this.vg.debug(d);else{var e="";switch(a.type){case _.ee:e="Rate: "+this.getPlaybackRate();break;case fd:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.Zd:case _.$d:case "suspend":case _.Ze:case pe:case _.me:case _.le:case _.Fe:case _.ce:case xc:case yc:b=
379
+ this.getBufferInfo().Da(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.je:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.vg.info(d)}a.type!==_.jd&&this.trigger(new _.J(a.type,{detail:a}))};_.t.kg=function(){};_.ck.prototype.getTextDisplayer=_.ck.prototype.getTextDisplayer;_.ck.prototype.setNetworkEngine=_.ck.prototype.setNetworkEngine;_.ck.prototype.getNetworkEngine=_.ck.prototype.getNetworkEngine;var fk;fk=new _.H("clpp.Components");_.dk=new Map;_.D("clpp.utils.Uint8ArrayUtils",_.ik);_.ik.toStandardBase64=_.jk;_.ik.concat=_.pk;_.ik.equal=_.ok;_.ik.toHex=_.nk;_.ik.fromHex=_.mk;_.ik.fromBase64=_.lk;_.ik.toBase64Url=_.kk;qk.prototype.release=function(){this.a=this.f=null};_.D("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.mb,SW_SECURE_DECODE:_.nb,HW_SECURE_CRYPTO:Na,HW_SECURE_DECODE:Oa,HW_SECURE_ALL:"HW_SECURE_ALL"});_.D("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.D("clpp.drm.KeySystem",{NONE:_.Kd,CLEAR_KEY:_.Td,WIDEVINE:_.Tc,PLAYREADY:_.Sc,FAIRPLAY:_.Rc,PRIMETIME:_.Qc});_.uk={};_.D("clpp.drm.registerDrmEnvironment",_.vk);var yk={V1_STAGING:[10,191,2,8,3,18,16,40,112,52,84,192,8,246,54,24,173,231,68,61,182,196,200,24,139,231,249,144,5,34,142,2,48,130,1,10,2,130,1,1,0,181,33,18,184,208,93,2,63,204,93,149,226,194,81,193,198,73,180,23,124,216,210,190,239,53,91,176,103,67,222,102,30,61,42,188,49,130,183,153,70,213,95,220,8,223,233,84,7,129,94,154,98,116,179,34,162,199,245,224,103,187,95,10,192,122,137,212,90,234,148,178,81,111,7,91,102,239,129,29,13,38,225,185,166,184,148,242,185,133,121,98,170,23,28,79,102,99,13,62,76,
380
380
  96,39,24,137,127,94,30,249,182,170,245,173,77,186,42,126,20,23,109,241,52,161,211,24,91,90,33,138,192,90,76,65,240,129,239,255,128,163,160,64,197,11,9,187,199,64,238,220,216,241,77,103,90,145,152,15,146,202,125,220,100,106,6,173,173,81,1,247,74,14,73,140,192,31,0,83,43,172,33,120,80,189,144,94,144,146,54,86,183,223,239,239,66,72,103,103,243,62,246,40,61,79,66,84,171,114,88,147,144,190,229,88,8,241,214,104,8,13,69,216,147,194,188,162,247,77,96,160,192,208,160,153,60,239,1,96,71,3,51,76,54,56,19,148,
381
381
  134,188,157,175,36,253,103,160,127,154,217,67,2,3,1,0,1,58,18,115,116,97,103,105,110,103,46,103,111,111,103,108,101,46,99,111,109,18,128,3,152,62,48,53,38,117,244,11,167,21,252,36,155,218,229,212,172,114,73,162,102,101,33,228,54,85,115,149,41,114,31,248,128,224,170,239,197,226,123,201,128,218,234,218,191,63,195,134,208,132,160,44,130,83,120,72,204,117,63,244,151,176,17,167,218,151,120,138,0,226,170,107,132,205,125,113,192,122,72,235,246,22,2,204,165,163,243,32,48,167,41,92,48,218,145,91,145,220,24,
382
382
  185,188,149,147,184,222,139,181,15,13,237,193,41,56,184,233,224,57,205,222,24,250,130,232,27,176,50,99,15,233,85,216,90,86,108,225,84,48,11,246,212,193,189,18,105,102,53,107,40,125,101,123,24,206,99,208,239,212,95,197,38,158,151,234,177,28,181,99,229,86,67,178,111,244,159,16,156,33,1,175,202,243,91,131,47,40,143,13,157,69,150,14,37,158,133,251,93,36,219,210,207,130,118,76,93,217,191,114,126,251,233,200,97,248,105,50,31,106,222,24,144,95,77,146,249,166,218,101,54,219,132,117,135,29,22,142,135,11,178,
@@ -390,77 +390,77 @@ this.getBufferInfo().Da(c);e="State "+this.getSurface().getMedia().readyState+"
390
390
  21,58,231,13,118,215,58,166,74,44,51,103,50,120,198,197,213,64,34,105,66,115,72,235,88,51,28,238,54,93,147,140,187,28,173,50,109,5,234,155,141,29,52,234,135,38,55,103,111,116,98,171,210,13,211,129,249,70,57,64,155,151,38,8,225,188,229,3,247,234,26,46,91,211,250,252,38,87,111,205,37,108,74,168,112,74,116,191,73,170,243,167,54,36,20,23,72,67,35,181,159,241,102,250,221,22,18,92,161,54,236,172,183,214,18,160,199,92,46,171,180,211,90,64,62,144,121,201,77,74,211,17,244,49,124,244,120,116,148,234,184,79,
391
391
  136,12,176,34,231,39,149,87,28,219,2,3,1,0,1,58,12,99,97,115,116,108,97,98,115,46,99,111,109,64,1,18,128,3,50,97,151,165,120,63,210,172,84,187,10,36,166,202,149,32,118,107,37,251,186,217,170,254,4,95,20,85,66,157,43,154,24,66,136,147,101,223,78,204,173,228,175,111,100,168,97,164,222,84,160,51,79,233,227,223,105,252,85,11,242,129,199,206,11,9,236,118,163,118,204,179,159,69,108,223,229,114,176,8,26,36,9,23,103,233,62,55,162,154,209,96,98,102,80,173,114,233,213,36,56,135,65,188,245,176,95,70,189,199,
392
392
  143,81,72,182,124,207,225,238,28,172,144,110,89,44,12,137,51,52,239,130,117,119,15,207,200,229,142,166,8,80,79,111,255,191,70,47,189,108,75,234,184,241,119,21,255,98,167,124,132,30,239,102,113,7,132,96,39,134,123,220,209,255,110,222,35,147,0,77,125,253,129,139,66,158,126,221,13,117,113,163,143,235,9,130,180,3,133,94,152,45,199,69,168,182,95,122,82,25,203,10,99,191,186,193,238,225,224,140,156,142,171,110,26,214,32,240,6,218,138,10,47,114,133,17,1,151,43,213,223,198,210,186,81,18,50,221,84,177,180,
393
- 26,58,164,235,113,177,235,207,22,230,8,119,76,167,166,176,173,209,214,53,116,116,231,227,221,238,174,87,249,19,166,195,81,47,210,172,15,75,251,202,192,80,85,213,23,17,178,104,181,193,115,239,91,72,230,167,55,143,10,250,26,54,8,60,13,213,206,235,3,215,179,205,232,1,144,158,35,48,196,149,117,219,63,196,130,117,40,165,193,65,215,122,44,201,218,67,216,6,131,178,5,168,229,21,137,112,215,254,127,48,160,181,68,49,255,64,46,247,236,85,155,146,208,5,219,252,37,174,31,218,136,135,55,119,112]};_.zk.prototype.Ka=function(a,b){this.g[a]=b};_.C("clpp.drm.DrmEnvironment",_.zk);_.zk.prototype.setDrmSystem=_.zk.prototype.Ka;_.Bk.prototype.getPosition=function(){return this.a};_.Bk.prototype.ya=function(){return this.f.byteLength};_.Bk.prototype.seek=function(a){(0>a||a>this.f.byteLength)&&_.Ck();this.a=a};_.Bk.prototype.seek=_.Bk.prototype.seek;_.Ek.prototype.getPosition=function(){return this.a};_.Ek.prototype.ya=function(){return this.f.byteLength};_.Ek.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.Gk();this.a+=a};_.Ek.prototype.seek=function(a){if(0>a||a>this.f.byteLength)throw _.Gk();this.a=a};
394
- _.C("clpp.utils.dataview.DataViewReader",_.Ek);_.t=_.Nk.prototype;_.t.M=function(a,b){var c=Rk(a);this.g[c]=Dq;this.f[c]=b;return this};_.t.W=function(a,b){var c=Rk(a);this.g[c]=Eq;this.f[c]=b;return this};_.t.stop=function(){this.a=!0};_.t.parse=function(a,b){var c=_.N(a);c=new _.Ek(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.Fk(c)&&!this.a;)this.Qd(0,c,b)};
395
- _.t.Qd=function(a,b,c){var d=b.getPosition(),e=_.U(b),f=_.U(b),g=!1;this.h.debug("Parsing MP4 box",_.Sk(f));switch(e){case 0:e=b.ya()-d;break;case 1:e=_.Lk(b),g=!0}var h=this.f[f];if(h){var l=null,m=null;this.g[f]==Eq&&(m=_.U(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.ya()&&(n=b.ya());n-=b.getPosition();b=0<n?_.Mk(b,n):new Uint8Array(0);b=new _.Ek(new DataView(b.buffer,b.byteOffset,b.byteLength),!1);h({Xa:this,ng:c||!1,version:l,flags:m,G:b,size:e,start:d+a,ve:f,vi:g})}else a=Math.min(d+
396
- e-b.getPosition(),b.ya()-b.getPosition()),b.skip(a)};_.C("clpp.utils.Mp4Parser",_.Nk);_.Nk.typeToString=_.Sk;_.Nk.allData=_.Qk;_.Nk.sampleDescription=_.Pk;_.Nk.children=_.Ok;_.Nk.prototype.parseNext=_.Nk.prototype.Qd;_.Nk.prototype.parse=_.Nk.prototype.parse;_.Nk.prototype.stop=_.Nk.prototype.stop;_.Nk.prototype.fullBox=_.Nk.prototype.W;_.Nk.prototype.box=_.Nk.prototype.M;_.Nk.headerSize=_.Tk;var Dq=0,Eq=1;_.C("clpp.utils.FairplayUtils",Uk);Uk.parseFairPlayResponse=_.$k;Uk.formatFairPlayRequest=_.Zk;Uk.createFairplayPayload=Yk;Uk.extractContentId=_.Wk;Uk.extractExtXKeyUri=Vk;var ll=new _.H("clpp.drm.DrmToday"),bl="PRODUCTION",dl="STAGING",el="TEST",Fq={PRODUCTION:bl,STAGING:dl,TEST:el};_.C("clpp.drm.DrmToday.Environment",Fq);_.C("clpp.drm.DrmToday.WidevineCertificates",{V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"});
397
- for(var gl="/license-proxy-widevine/cenc/",hl="/license-proxy-headerauth/drmtoday/RightsManager.asmx",il="/license-server-fairplay/",tl={"00000":"Success","01000":"General Internal Error","02000":"General Request Error","03000":"General Request Authentication Error",3E4:"General DRM error",4E4:"General Widevine Modular error",40001:"Widevine Device Certificate Revocation (wv 127)",40002:"Widevine Device Certificate Revocation - Permanently (wv 175)",41E3:"General Widevine Classic error",42E3:"General Playready error",
398
- 43E3:"General Fairplay error",44E3:"General OMA error",44001:"OMA Device registration failed",45E3:"General CDRM error",45001:"CDRM Device registration failed",6E4:"CSL",60001:"CSL - INVALID",60100:"CSL - Denied by Stream Limiting",7E4:"General Output Protection",70001:"All keys filtered by EOP settings",8E4:"TAKE DOWN",80001:"TAKE DOWN - Denied by Take Down",9E4:"General GBL error",90001:"License delivery prohibited in your region"},Gq={video:[_.ob,void 0],audio:[_.nb,void 0]},Hq={video:["3000"],
399
- audio:["2000"]},Iq=_.u(Object.keys(Fq)),Jq=Iq.next();!Jq.done;Jq=Iq.next()){var al=Jq.value,Kq=Ba;al!==bl&&(Kq+="_"+al);var Lq=new _.zk(Kq),Mq=null;switch(al){case bl:Mq=yk("V1_PROD");break;case dl:Mq=yk("V2");break;case el:Mq=null}Lq.Ka(_.Rc,{licenseUrl:jl(_.Rc),videoRobustness:Gq.video,audioRobustness:Gq.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:Mq,modifiers:{licenseRequest:_.nl,licenseResponse:_.sl}});Lq.Ka(_.Pc,{licenseUrl:jl(_.Pc),certificateUrl:fl()+
400
- "/license-server-fairplay/cert/",modifiers:{licenseRequest:_.pl,licenseResponse:_.ql,extractContentId:_.ml,certificateRequest:_.rl}});Lq.Ka(_.Qc,{licenseUrl:jl(_.Qc),videoRobustness:Hq.video,audioRobustness:Hq.audio,modifiers:{licenseRequest:ol}});_.uk(Lq)};_.C("clpp.drm.eme.EmeFactory",vl);var wl=[];vl.Apis={STANDARD:mb,APPLE:"APPLE",WEBKIT:"WEBKIT",NOP:"NOP"};var Fl;_.Ml=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];Fl=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.v(El,Dl);_.v(_.Il,Dl);Ol.prototype.h=function(a){if(1<a.version)_.G("Unrecognized PSSH version found!");else{var b=_.mk(_.Mk(a.G,16)),c=[];if(0<a.version)for(var d=_.U(a.G),e=0;e<d;++e){var f=_.mk(_.Mk(a.G,16));c.push(f)}d=_.U(a.G);a.G.skip(d);this.g.push.apply(this.g,c);this.f.push(b);this.a.push({start:a.start,end:a.start+a.size-1});a.G.getPosition()!=a.G.ya()&&_.G("Mismatch between box size and data size!")}};_.t=_.Sl.prototype;_.t.destroy=function(){var a=this;return _.B(function(b){if(1==b.a){if(a.j)return _.x(b,a.Ma,0);a.j=!0;return _.x(b,Ul(a),4)}a.Ma.resolve();return b.H(0)})};_.t.keySystem=function(){return this.f?_.qm(this.f.keySystem):""};_.t.getDrmInfo=function(){return this.f};_.t.kg=function(a){var b=this;return _.B(function(c){return b.F&&b.K===Vl?c["return"]():!b.h.delayLicenseRequestUntilPlayed||b.B&&!b.B.paused||b.Sa?_.x(c,Gm(b,a),0):(b.ba.push(a),c.H(0))})};
401
- _.t.gg=function(a){var b=this,c=a.target;this.a.info("Key status changed for session",c.sessionId);var d=this.g.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if(typeof h==_.ve){var l=h;h=g;g=l}if(xm(b.f.keySystem)&&16===h.byteLength&&_.Ti()){l=_.sh(h);var m=l.getUint32(0,!0),n=l.getUint16(4,!0),p=l.getUint16(6,!0);l.setUint32(0,m,!1);l.setUint16(4,n,!1);l.setUint16(6,p,!1)}d&&g!==te&&(d.loaded=!0);d&&d.za&&d.za.resolve();"expired"===g&&(e=!0);l=_.N(h);var q=_.mk(l);"00"===q&&d&&d.keyId?q=d.keyId:
402
- b.f.keySystem.startsWith(_.Pc)&&16!==l.byteLength&&(q=uh(l));(l=q||"")?b.a.info(Sa+q+"': "+g):b.a.info("Key status global keys: "+g);b.m.set(l,g);d&&!d.keyId&&b.g.forEach(function(r,w){w===c||r.keyId!==q||r.loaded||(r.loaded=!0)})});d&&d.loaded&&d.cb.forEach(function(g){b.m.get(g)===te&&(b.a.warn(Sa+g+da),b.m.set(g,_.Td))});for(a=0;a<this.f.initData.length;a++){var f=this.f.initData[a];f.keyId&&this.m.get(f.keyId)===te&&_.nk(f.initData,d.initData)&&(this.a.warn(Sa+f.keyId+da),this.m.set(f.keyId,_.Td))}a=
403
- c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.ob&&(this.a.debug("Session has expired",c.sessionId),(a=this.g.get(c))&&a.Cc&&a.Cc.stop(),this.g["delete"](c),c.close()["catch"](function(){}));sm(this)&&(this.I.resolve(),1!==this.g.size||e?this.aa.Z(.5):Ql(this))};var Vl=0,Pl=3;var Hm=new Map,Im=new _.H("clpp.text");_.Rm.prototype.getStats=function(){return{width:this.o,height:this.g,streamBandwidth:this.m,decodedFrames:this.h,droppedFrames:this.j,corruptedFrames:this.B,estimatedBandwidth:this.f,loadLatency:this.w,playTime:Nm(this.a,_.kn),pauseTime:Nm(this.a,_.jn),bufferingTime:Nm(this.a,_.an),stateHistory:Om(this.a),switchHistory:Qm(this.A)}};_.Tm.prototype.value=function(){void 0==this.a&&(this.a=this.f());return this.a};var Um=new _.Tm(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.wd],[HTMLMediaElement.HAVE_CURRENT_DATA,_.vd],[HTMLMediaElement.HAVE_FUTURE_DATA,vc],[HTMLMediaElement.HAVE_ENOUGH_DATA,wc]])});Zm.prototype.Ub=function(a,b){this.l&&this.l.trigger(new _.J(a,{detail:b}))};Zm.prototype.getState=function(){return bn(this,"")};Zm.prototype.U=function(a){(a=a&&a.detail)&&a.severity&&a.severity===_.M&&fn(this,_.gn)};Zm.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.l.namespace());this.a.release()};_.C("clpp.version",_.ea);_.C("clpp.name",_.ta);_.Bj="application/x-mpegurl";_.C("clpp.Type",{DASH:_.cc,HLS:_.Bj,SMOOTH_STREAMING:_.hc,MP4:_.Te});_.og="scte35";_.mg=Je;_.C("clpp.TimelineCueType",{SCTE35:_.og,DASH_CALLBACK:_.Id,UNKNOWN:_.mg});_.C("clpp.utils.media.detectType",mn);var pn=new _.H("clpp.sources");_.v(qn,_.bk);_.t=qn.prototype;_.t.init=function(a,b){_.bk.prototype.init.call(this,a,b);this.h=new Zm(this);fn(this.h,_.Wm)};_.t.namespace=function(){return Kc};
404
- _.t.unload=function(){var a=this,b;return _.B(function(c){if(!a.o)return c.H(0);a.log.debug(_.kb,a.o);a.D&&(a.D.stop(),a.D=null);(b=a.getTrackManager())&&b.release();a.A&&(a.A.destroy(),a.A=null);a.K&&(a.K.destroy(),a.K=null);a.j&&a.j.release();a.m&&(a.m.destroy(),a.m=null);_.hg(a.g);a.f&&(a.f=new _.Rm);a.F=null;a.o=null;a.I=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());return _.x(c,un(a),0)})};
405
- _.t.release=function(){var a=this;return _.bk.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.h&&fn(a.h,_.Wm)})};
406
- _.t.destroy=function(){var a=this;if(this.w)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.w=!0;return _.bk.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Da);var b=a.getTrackManager();b&&b.destroy();a.j&&(a.j.destroy()["catch"](function(c){a.log.warn("Error while disposing metadata handler",c)}),a.j=null);a.h&&(a.h.destroy(),a.h=null);a.f=null})};_.t.getDrmInfo=function(){return this.m?this.m.getDrmInfo():null};
407
- _.t.getTrackManager=function(){return this.Sc};
408
- _.t.load=function(a){var b=this,c,d,e,f,g;return _.B(function(h){switch(h.a){case 1:if(b.w)return h["return"](rn());if(!b.getSurface()||!b.getSurface().getMedia())return h["return"](Promise.reject("No surface or no media element in surface"));c=_.K;d=b.B.getMedia();b.J=Date.now()/1E3;b.f=new _.Rm;b.g.on(b,_.se,function(){b.f&&_.Mm(b.f.a,b.getState())});fn(b.h,_.hn);b.o=_.on(a);_.ak(a)&&(b.configuration=_.Zj(b.zd,a));b.log.debug(_.Ua,b.configuration);b.log.debug(_.fb,b.o);e=_.Km(b.configuration,["html",
409
- "native"]);b.K=e.create(b);b.K.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.dk(_.ze)&&!_.$i()&&(b.A=new Dg(b),b.A.start(d));b.j?b.j.release():b.j=new jg(b);lg(b.j,d);f=b.getTrackManager();f.load();d.loop=!!b.configuration.loop;c.S(b.configuration.volume)||b.setVolume(b.configuration.volume);c.S(b.configuration.muted)||b.setMuted(b.configuration.muted);b.g.one(d,vc,function(){b.trigger(new _.J(_.Bq))});null==b.configuration.startTime&&zn(b,d);_.zf(h,2);return _.x(h,tn(b,d),4);case 4:return _.x(h,
410
- wn(b),5);case 5:return _.x(h,yn(b).P,6);case 6:_.Af(h,0);break;case 2:g=_.Bf(h),b.I=!1,b.onError(g),_.z(h)}})};_.t.onError=function(a){this.I||(a.severity===_.M&&null!==this.h&&fn(this.h,_.gn),this.trigger(new _.J(_.hd,{detail:a})))};_.t.Df=function(){return new vj};_.t.getState=function(){return null!==this.h?this.h.getState().currentState:_.Xm};
393
+ 26,58,164,235,113,177,235,207,22,230,8,119,76,167,166,176,173,209,214,53,116,116,231,227,221,238,174,87,249,19,166,195,81,47,210,172,15,75,251,202,192,80,85,213,23,17,178,104,181,193,115,239,91,72,230,167,55,143,10,250,26,54,8,60,13,213,206,235,3,215,179,205,232,1,144,158,35,48,196,149,117,219,63,196,130,117,40,165,193,65,215,122,44,201,218,67,216,6,131,178,5,168,229,21,137,112,215,254,127,48,160,181,68,49,255,64,46,247,236,85,155,146,208,5,219,252,37,174,31,218,136,135,55,119,112]};_.Ak.prototype.Ka=function(a,b){this.g[a]=b};_.D("clpp.drm.DrmEnvironment",_.Ak);_.Ak.prototype.setDrmSystem=_.Ak.prototype.Ka;_.Ck.prototype.getPosition=function(){return this.a};_.Ck.prototype.za=function(){return this.f.byteLength};_.Ck.prototype.seek=function(a){(0>a||a>this.f.byteLength)&&_.Dk();this.a=a};_.Ck.prototype.seek=_.Ck.prototype.seek;_.Fk.prototype.getPosition=function(){return this.a};_.Fk.prototype.za=function(){return this.f.byteLength};_.Fk.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.Hk();this.a+=a};_.Fk.prototype.seek=function(a){if(0>a||a>this.f.byteLength)throw _.Hk();this.a=a};
394
+ _.D("clpp.utils.dataview.DataViewReader",_.Fk);_.t=_.Ok.prototype;_.t.L=function(a,b){var c=Sk(a);this.g[c]=Eq;this.f[c]=b;return this};_.t.V=function(a,b){var c=Sk(a);this.g[c]=Fq;this.f[c]=b;return this};_.t.stop=function(){this.a=!0};_.t.parse=function(a,b){var c=_.N(a);c=new _.Fk(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.Gk(c)&&!this.a;)this.Qd(0,c,b)};
395
+ _.t.Qd=function(a,b,c){var d=b.getPosition(),e=_.U(b),f=_.U(b),g=!1;this.h.debug("Parsing MP4 box",_.Tk(f));switch(e){case 0:e=b.za()-d;break;case 1:e=_.Mk(b),g=!0}var h=this.f[f];if(h){var l=null,m=null;this.g[f]==Fq&&(m=_.U(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.za()&&(n=b.za());n-=b.getPosition();b=0<n?_.Nk(b,n):new Uint8Array(0);b=new _.Fk(new DataView(b.buffer,b.byteOffset,b.byteLength),!1);h({parser:this,partialOkay:c||!1,version:l,flags:m,reader:b,size:e,start:d+a,headerSize:f,
396
+ has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.za()-b.getPosition()),b.skip(a)};_.D("clpp.utils.Mp4Parser",_.Ok);_.Ok.typeToString=_.Tk;_.Ok.allData=_.Rk;_.Ok.sampleDescription=_.Qk;_.Ok.children=_.Pk;_.Ok.prototype.parseNext=_.Ok.prototype.Qd;_.Ok.prototype.parse=_.Ok.prototype.parse;_.Ok.prototype.stop=_.Ok.prototype.stop;_.Ok.prototype.fullBox=_.Ok.prototype.V;_.Ok.prototype.box=_.Ok.prototype.L;_.Ok.headerSize=_.Uk;var Eq=0,Fq=1;_.D("clpp.utils.FairplayUtils",Vk);Vk.parseFairPlayResponse=_.al;Vk.formatFairPlayRequest=_.$k;Vk.createFairplayPayload=Zk;Vk.extractContentId=_.Xk;Vk.extractExtXKeyUri=Wk;var ml=new _.H("clpp.drm.DrmToday"),dl="PRODUCTION",el="STAGING",fl="TEST",Gq={PRODUCTION:dl,STAGING:el,TEST:fl};_.D("clpp.drm.DrmToday.Environment",Gq);_.D("clpp.drm.DrmToday.WidevineCertificates",{V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"});
397
+ for(var hl="/license-proxy-widevine/cenc/",il="/license-proxy-headerauth/drmtoday/RightsManager.asmx",jl="/license-server-fairplay/",ul={"00000":"Success","01000":"General Internal Error","02000":"General Request Error","03000":"General Request Authentication Error",3E4:"General DRM error",4E4:"General Widevine Modular error",40001:"Widevine Device Certificate Revocation (wv 127)",40002:"Widevine Device Certificate Revocation - Permanently (wv 175)",41E3:"General Widevine Classic error",42E3:"General Playready error",
398
+ 43E3:"General Fairplay error",44E3:"General OMA error",44001:"OMA Device registration failed",45E3:"General CDRM error",45001:"CDRM Device registration failed",6E4:"CSL",60001:"CSL - INVALID",60100:"CSL - Denied by Stream Limiting",7E4:"General Output Protection",70001:"All keys filtered by EOP settings",8E4:"TAKE DOWN",80001:"TAKE DOWN - Denied by Take Down",9E4:"General GBL error",90001:"License delivery prohibited in your region"},Hq={video:[_.nb,void 0],audio:[_.mb,void 0]},Iq={video:["3000"],
399
+ audio:["2000"]},Jq=_.u(Object.keys(Gq)),Kq=Jq.next();!Kq.done;Kq=Jq.next()){var bl=Kq.value,Lq=za;bl!==dl&&(Lq+="_"+bl);var Mq=new _.Ak(Lq),Nq=null;switch(bl){case dl:Nq=zk("V1_PROD");break;case el:Nq=zk("V2");break;case fl:Nq=null}Mq.Ka(_.Tc,{licenseUrl:kl(_.Tc),videoRobustness:Hq.video,audioRobustness:Hq.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:Nq,modifiers:{licenseRequest:_.ol,licenseResponse:_.tl}});Mq.Ka(_.Rc,{licenseUrl:kl(_.Rc),certificateUrl:gl()+
400
+ "/license-server-fairplay/cert/",modifiers:{licenseRequest:_.ql,licenseResponse:_.rl,extractContentId:_.nl,certificateRequest:_.sl}});Mq.Ka(_.Sc,{licenseUrl:kl(_.Sc),videoRobustness:Iq.video,audioRobustness:Iq.audio,modifiers:{licenseRequest:pl}});_.vk(Mq)};_.D("clpp.drm.eme.EmeFactory",wl);var xl=[];wl.Apis={STANDARD:lb,APPLE:"APPLE",WEBKIT:"WEBKIT",NOP:"NOP"};var Gl;_.Nl=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];Gl=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.v(Fl,El);_.v(_.Jl,El);Pl.prototype.h=function(a){if(1<a.version)_.G("Unrecognized PSSH version found!");else{var b=_.nk(_.Nk(a.reader,16)),c=[];if(0<a.version)for(var d=_.U(a.reader),e=0;e<d;++e){var f=_.nk(_.Nk(a.reader,16));c.push(f)}d=_.U(a.reader);a.reader.skip(d);this.g.push.apply(this.g,c);this.f.push(b);this.a.push({start:a.start,end:a.start+a.size-1});a.reader.getPosition()!=a.reader.za()&&_.G("Mismatch between box size and data size!")}};_.t=_.Tl.prototype;_.t.destroy=function(){var a=this;return _.A(function(b){if(1==b.a){if(a.j)return _.x(b,a.ua,0);a.j=!0;return _.x(b,Vl(a),4)}a.ua.resolve();return b.G(0)})};_.t.keySystem=function(){return this.f?_.rm(this.f.keySystem):""};_.t.getDrmInfo=function(){return this.f};_.t.jg=function(a){var b=this;return _.A(function(c){return b.F&&b.J===Wl?c["return"]():!b.h.delayLicenseRequestUntilPlayed||b.B&&!b.B.paused||b.Ra?_.x(c,Hm(b,a),0):(b.ba.push(a),c.G(0))})};
401
+ _.t.fg=function(a){var b=this,c=a.target;this.a.info("Key status changed for session",c.sessionId);var d=this.g.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if(typeof h==_.ve){var l=h;h=g;g=l}if(Dm(b.f.keySystem)&&16===h.byteLength&&_.Ui()){l=_.sh(h);var m=l.getUint32(0,!0),n=l.getUint16(4,!0),p=l.getUint16(6,!0);l.setUint32(0,m,!1);l.setUint16(4,n,!1);l.setUint16(6,p,!1)}d&&g!==te&&(d.loaded=!0);d&&d.Aa&&d.Aa.resolve();"expired"===g&&(e=!0);l=_.N(h);var q=_.nk(l);"00"===q&&d&&d.keyId?q=d.keyId:
402
+ b.f.keySystem.startsWith(_.Rc)&&16!==l.byteLength&&(q=uh(l));(l=q||"")?b.a.info(Sa+q+"': "+g):b.a.info("Key status global keys: "+g);b.m.set(l,g);d&&!d.keyId&&b.g.forEach(function(r,w){w===c||r.keyId!==q||r.loaded||(r.loaded=!0)})});d&&d.loaded&&d.bb.forEach(function(g){b.m.get(g)===te&&(b.a.warn(Sa+g+da),b.m.set(g,_.Ud))});for(a=0;a<this.f.initData.length;a++){var f=this.f.initData[a];f.keyId&&this.m.get(f.keyId)===te&&_.ok(f.initData,d.initData)&&(this.a.warn(Sa+f.keyId+da),this.m.set(f.keyId,_.Ud))}a=
403
+ c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.nb&&(this.a.debug("Session has expired",c.sessionId),(a=this.g.get(c))&&a.Ac&&a.Ac.stop(),this.g["delete"](c),c.close()["catch"](function(){}));tm(this)&&(this.H.resolve(),1!==this.g.size||e?this.aa.Z(.5):Rl(this))};var Wl=0,Ql=3;var Im=new Map,Jm=new _.H("clpp.text");_.Sm.prototype.getStats=function(){return{width:this.o,height:this.g,streamBandwidth:this.m,decodedFrames:this.h,droppedFrames:this.j,corruptedFrames:this.B,estimatedBandwidth:this.f,loadLatency:this.w,playTime:Om(this.a,_.ln),pauseTime:Om(this.a,_.kn),bufferingTime:Om(this.a,_.bn),stateHistory:Pm(this.a),switchHistory:Rm(this.A)}};_.Um.prototype.value=function(){void 0==this.a&&(this.a=this.f());return this.a};var Vm=new _.Um(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.xd],[HTMLMediaElement.HAVE_CURRENT_DATA,_.wd],[HTMLMediaElement.HAVE_FUTURE_DATA,xc],[HTMLMediaElement.HAVE_ENOUGH_DATA,yc]])});$m.prototype.Tb=function(a,b){this.l&&this.l.trigger(new _.J(a,{detail:b}))};$m.prototype.getState=function(){return cn(this,"")};$m.prototype.T=function(a){(a=a&&a.detail)&&a.severity&&a.severity===_.M&&gn(this,_.hn)};$m.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.l.namespace());this.a.release()};_.D("clpp.version",_.ea);_.D("clpp.name",_.sa);_.Cj="application/x-mpegurl";_.D("clpp.Type",{DASH:_.dc,HLS:_.Cj,SMOOTH_STREAMING:_.ic,MP4:_.Te});_.og="scte35";_.mg=Je;_.D("clpp.TimelineCueType",{SCTE35:_.og,DASH_CALLBACK:_.Jd,UNKNOWN:_.mg});_.D("clpp.utils.media.detectType",nn);var qn=new _.H("clpp.sources");_.v(rn,_.ck);_.t=rn.prototype;_.t.init=function(a,b){_.ck.prototype.init.call(this,a,b);this.h=new $m(this);gn(this.h,_.Xm)};_.t.namespace=function(){return Mc};
404
+ _.t.unload=function(){var a=this,b;return _.A(function(c){if(!a.o)return c.G(0);a.log.debug(_.jb,a.o);a.D&&(a.D.stop(),a.D=null);(b=a.getTrackManager())&&b.release();a.A&&(a.A.destroy(),a.A=null);a.J&&(a.J.destroy(),a.J=null);a.j&&a.j.release();a.m&&(a.m.destroy(),a.m=null);_.hg(a.g);a.f&&(a.f=new _.Sm);a.F=null;a.o=null;a.H=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());return _.x(c,vn(a),0)})};
405
+ _.t.release=function(){var a=this;return _.ck.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.h&&gn(a.h,_.Xm)})};
406
+ _.t.destroy=function(){var a=this;if(this.w)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.w=!0;return _.ck.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Da);var b=a.getTrackManager();b&&b.destroy();a.j&&(a.j.destroy()["catch"](function(c){a.log.warn("Error while disposing metadata handler",c)}),a.j=null);a.h&&(a.h.destroy(),a.h=null);a.f=null})};_.t.getDrmInfo=function(){return this.m?this.m.getDrmInfo():null};
407
+ _.t.getTrackManager=function(){return this.Rc};
408
+ _.t.load=function(a){var b=this,c,d,e,f,g;return _.A(function(h){switch(h.a){case 1:if(b.w)return h["return"](sn());if(!b.getSurface()||!b.getSurface().getMedia())return h["return"](Promise.reject("No surface or no media element in surface"));c=_.K;d=b.B.getMedia();b.I=Date.now()/1E3;b.f=new _.Sm;b.g.on(b,_.se,function(){b.f&&_.Nm(b.f.a,b.getState())});gn(b.h,_.jn);b.o=_.pn(a);_.bk(a)&&(b.configuration=_.ak(b.zd,a));b.log.debug(_.Ua,b.configuration);b.log.debug(_.eb,b.o);e=_.Lm(b.configuration,["html",
409
+ "native"]);b.J=e.create(b);b.J.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.ek(_.ze)&&!_.aj()&&(b.A=new Dg(b),b.A.start(d));b.j?b.j.release():b.j=new jg(b);lg(b.j,d);f=b.getTrackManager();f.load();d.loop=!!b.configuration.loop;c.R(b.configuration.volume)||b.setVolume(b.configuration.volume);c.R(b.configuration.muted)||b.setMuted(b.configuration.muted);b.g.one(d,xc,function(){b.trigger(new _.J(_.Cq))});null==b.configuration.startTime&&An(b,d);_.zf(h,2);return _.x(h,un(b,d),4);case 4:return _.x(h,
410
+ xn(b),5);case 5:return _.x(h,zn(b).O,6);case 6:_.Af(h,0);break;case 2:g=_.Bf(h),b.H=!1,b.onError(g),_.y(h)}})};_.t.onError=function(a){this.H||(a.severity===_.M&&null!==this.h&&gn(this.h,_.hn),this.trigger(new _.J(_.jd,{detail:a})))};_.t.Cf=function(){return new wj};_.t.getState=function(){return null!==this.h?this.h.getState().currentState:_.Ym};
411
411
  _.t.getPresentationStartTime=function(){if(this.a&&this.a.getStartDate&&this.isLive()){var a=this.a.getStartDate();return isNaN(a.getTime())?(this.log.warn("EXT-X-PROGRAM-DATETIME required to get presentation start time as Date!"),null):a.getTime()/1E3}return null};_.t.getSeekRange=function(){var a=this.getSurface().getMedia();if(a&&a.src){a=a.seekable;if(a.length)return this.F=a={start:a.start(0),end:a.end(a.length-1)};if(this.F)return this.F}return{start:0,end:0}};
412
412
  _.t.isLive=function(){return this.a&&this.a.src?Infinity===this.a.duration:!1};
413
- _.t.getStats=function(){if(!this.f||!this.a)return _.Sm();this.f&&_.Mm(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.o=a.videoWidth;b.g=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.j=Number(a.droppedVideoFrames),b.h=c,this.f.B=Number(a.corruptedVideoFrames));if(a=this.getTrackManager())if(a=a.ga())a.bandwidth&&(this.f.m=a.bandwidth),a.Rc&&(this.f.f=a.Rc);return this.f.getStats()};
414
- _.t.getTimelineCues=function(){return this.j?this.j.getTimelineCues():[]};An.prototype.a=function(){return Kc};An.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.cc,e=c===_.hc,f=c===_.Bj;return _.Xi()||d||e||f&&!_.Yi()?0:""!==ej().canPlayType(c)?f&&_.Yi()&&window.MediaSource&&MediaSource.isTypeSupported&&!b.streaming.preferNativeHlsOnSafari?1:2:0};An.prototype.create=function(){return new qn};_.ag(new An);_.C("clpp.ads.PodType",{PREROLL:0,MIDROLL:1,POSTROLL:2});_.C("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1});_.C("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var Cn=new _.H("clpp.ads"),Bn=[];_.C("clpp.utils.dom.createHTMLElement",_.Jn);Kn.prototype.set=function(a){this.g.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=Mn(this,a)};Kn.prototype.get=function(){return this.a};_.t=Qn.prototype;_.t.getMedia=function(){return this.g.get()};_.t.getContainer=function(){return this.f.get()};_.t.getSafeContainer=function(){return this.f};_.t.getId=function(){return this.m};_.t.getUniqueCssClass=function(){return this.o};_.t.getCastElement=function(){return this.h};_.t.isFullscreen=function(){return!!document.fullscreenElement};_.t.hideMediaElement=function(){var a=this.getMedia();a?_.Hn(a,Gc):this.a.debug("No media element available that could be hidden")};
415
- _.t.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(Gc):this.a.debug("No media element available that could be shown")};_.t.addElementToContainer=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.getContainer();if(!d)throw Error("No container is available. Unable to add element");b&&_.Hn(a,_.Fc);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
416
- _.t.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.t.hide=function(a){_.Hn(a,Gc)};_.t.show=function(a){a.classList.remove(Gc)};_.t.release=function(){this.j.release()};Qn.prototype.removeElementFromContainer=Qn.prototype.removeElementFromContainer;Qn.prototype.addElementToContainer=Qn.prototype.addElementToContainer;Qn.prototype.getCastElement=Qn.prototype.getCastElement;
417
- Qn.prototype.getContainer=Qn.prototype.getContainer;Qn.prototype.getMedia=Qn.prototype.getMedia;var Nn={disableContainer:!1,crossorigin:"anonymous",containerEl:null},On=1;Sn.prototype.release=function(){this.a.release();Wn(this);this.l=null};_.C("clpp.polyfill.installAll",Zn);var Yn=[];_.C("clpp.polyfill.register",_.$n);bo.prototype.verify=function(a,b){var c={kty:"RSA",n:a.n,e:a.e},d=this.g+"."+this.f,e=this.h;return new Promise(function(f,g){try{var h=window&&window.crypto&&window.crypto.subtle}catch(m){}if(h){var l={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};h.importKey("jwk",c,l,!1,["verify"]).then(function(m){var n=_.zh(d),p=_.kk(e);return h.verify(l,m,p.buffer,n.buffer)}).then(function(m){m?f():g(sb)})["catch"](g)}else b?g("Web Crypto API is not supported"):f()})};var Nq={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},Vj="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";co.prototype.verify=function(){var a=this;return(new Promise(function(b,c){try{var d=eo(a);b(d)}catch(e){c()}})).then(function(b){return b.verify(Nq)})["catch"](function(b){if(b&&b!==sb){var c=window.location.href;var d=new _.Lg(c);c=d.Za||d.Oa?d:new _.Lg("//"+c);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(c.Oa))return Promise.resolve()}throw b;})};var po="vod",oo="live";_.v(V,_.Rj);_.t=V.prototype;_.t.on=function(a,b,c){return _.Rj.prototype.on.call(this,a,b,c)};_.t.one=function(a,b,c){return _.Rj.prototype.one.call(this,a,b,c)};_.t.off=function(a,b){return _.Rj.prototype.off.call(this,a,b)};_.t.init=function(){};_.t.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.J(_.hd,{detail:a}))};_.t.bc=function(a){a=this.N[a];void 0===a&&(a=null);return a};_.t.getSurface=function(){return this.h};_.t.getConfiguration=function(){return _.K.Na(this.f)};
418
- _.t.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.t.unload=function(){return this.a?this.a.unload():Promise.resolve()};_.t.release=function(){var a=this;if(null!=this.m)return this.g.info("Player release already in progress"),this.m;this.g.debug("Releasing player");this.m=wo(this);return this.m["finally"](function(){a.g.debug("Player released");a.m=null})};
419
- _.t.destroy=function(){var a=this;if(this.F)return this.g.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.F=!0;return this.release().then(function(){a.g.debug(Da);a.trigger(new _.J("destroying"));return a.hc(_.Nd)}).then(function(){a.a&&a.a.removeDelegate(a);a.cd.clear();a.V.release();if(a.a)return a.a.destroy()}).then(function(){gk(function(b){b.Ca()});_.ck.clear();a.a=null;a.trigger(new _.J("destroyed"))})};
420
- _.t.load=function(a){var b=this,c;return _.B(function(d){switch(d.a){case 1:return _.zf(d,2),_.x(d,_.zo(b,a),4);case 4:return _.x(d,_.Ao(b),5);case 5:return _.x(d,_.Co(b),6);case 6:_.Af(d,0);break;case 2:c=_.Bf(d);if(b.m)throw b.g.info("Load interrupted while a player release is pending"),new _.L(_.M,7,7E3);throw c;}})};
421
- _.t.hc=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];var e=this;d=this.L.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.mf(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};_.t.use=function(a){a=new a;a.Ja(this);_.fk(a)};_.t.remove=function(a){if(this.getState()<=_.Wm||this.J){var b="";gk(function(c){c instanceof a&&(b=c.id(),c.Ca())});if(b)return _.ck["delete"](b),this.K=!0}return!1};
422
- _.t.play=function(){return this.a?this.j&&this.a.namespace()!==_.Hc?this.j.start(this.a):this.a.play():Promise.reject("No player initialized. You need to load content before calling play.")};_.t.pause=function(){return this.a?this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};_.t.getTrackManager=function(){return this.a&&this.a.getTrackManager()};_.t.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.Qj};
423
- _.t.getState=function(){return this.a?this.a.getState():_.Wm};_.t.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.t.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.t.isPaused=function(){return this.a&&this.a.isPaused()||!1};_.t.getPosition=function(){return this.a?this.a.getPosition():0};_.t.seek=function(a){return this.getState()===_.gn?Promise.reject("Cannot seek in current state."):this.a?this.a.seek(a):Promise.reject("delegate does not exist")};
413
+ _.t.getStats=function(){if(!this.f||!this.a)return _.Tm();this.f&&_.Nm(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.o=a.videoWidth;b.g=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.j=Number(a.droppedVideoFrames),b.h=c,this.f.B=Number(a.corruptedVideoFrames));if(a=this.getTrackManager())if(a=a.ha())a.bandwidth&&(this.f.m=a.bandwidth),a.Qc&&(this.f.f=a.Qc);return this.f.getStats()};
414
+ _.t.getTimelineCues=function(){return this.j?this.j.getTimelineCues():[]};Bn.prototype.a=function(){return Mc};Bn.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.dc,e=c===_.ic,f=c===_.Cj;return _.Yi()||d||e||f&&!_.Zi()?0:""!==dj().canPlayType(c)?f&&_.Zi()&&window.MediaSource&&MediaSource.isTypeSupported&&!b.streaming.preferNativeHlsOnSafari?1:2:0};Bn.prototype.create=function(){return new rn};_.ag(new Bn);_.D("clpp.ads.PodType",{PREROLL:0,MIDROLL:1,POSTROLL:2});_.D("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1});_.D("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var Dn=new _.H("clpp.ads"),Cn=[];_.D("clpp.utils.dom.createHTMLElement",_.Kn);Ln.prototype.set=function(a){this.g.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=Nn(this,a)};Ln.prototype.get=function(){return this.a};_.t=Rn.prototype;_.t.getMedia=function(){return this.g.get()};_.t.getContainer=function(){return this.f.get()};_.t.getSafeContainer=function(){return this.f};_.t.getId=function(){return this.m};_.t.getUniqueCssClass=function(){return this.o};_.t.getCastElement=function(){return this.h};_.t.isFullscreen=function(){return!!document.fullscreenElement};_.t.hideMediaElement=function(){var a=this.getMedia();a?_.In(a,Ic):this.a.debug("No media element available that could be hidden")};
415
+ _.t.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(Ic):this.a.debug("No media element available that could be shown")};_.t.addElementToContainer=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.getContainer();if(!d)throw Error("No container is available. Unable to add element");b&&_.In(a,_.Hc);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
416
+ _.t.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.t.hide=function(a){_.In(a,Ic)};_.t.show=function(a){a.classList.remove(Ic)};_.t.release=function(){this.j.release()};Rn.prototype.removeElementFromContainer=Rn.prototype.removeElementFromContainer;Rn.prototype.addElementToContainer=Rn.prototype.addElementToContainer;Rn.prototype.getCastElement=Rn.prototype.getCastElement;
417
+ Rn.prototype.getContainer=Rn.prototype.getContainer;Rn.prototype.getMedia=Rn.prototype.getMedia;var On={disableContainer:!1,crossorigin:"anonymous",containerEl:null},Pn=1;Tn.prototype.release=function(){this.a.release();Xn(this);this.l=null};_.D("clpp.polyfill.installAll",$n);var Zn=[];_.D("clpp.polyfill.register",_.ao);co.prototype.verify=function(a,b){var c={kty:"RSA",n:a.n,e:a.e},d=this.g+"."+this.f,e=this.h;return new Promise(function(f,g){try{var h=window&&window.crypto&&window.crypto.subtle}catch(m){}if(h){var l={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};h.importKey("jwk",c,l,!1,["verify"]).then(function(m){var n=_.zh(d),p=_.lk(e);return h.verify(l,m,p.buffer,n.buffer)}).then(function(m){m?f():g(qb)})["catch"](g)}else b?g("Web Crypto API is not supported"):f()})};var Oq={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},Wj="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";eo.prototype.verify=function(){var a=this;return(new Promise(function(b,c){try{var d=fo(a);b(d)}catch(e){c()}})).then(function(b){return b.verify(Oq)})["catch"](function(b){if(b&&b!==qb){var c=window.location.href;var d=new _.Lg(c);c=d.Xa||d.Na?d:new _.Lg("//"+c);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(c.Na))return Promise.resolve()}throw b;})};var qo="vod",po="live";_.v(V,_.Sj);_.t=V.prototype;_.t.on=function(a,b,c){return _.Sj.prototype.on.call(this,a,b,c)};_.t.one=function(a,b,c){return _.Sj.prototype.one.call(this,a,b,c)};_.t.off=function(a,b){return _.Sj.prototype.off.call(this,a,b)};_.t.init=function(){};_.t.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.J(_.jd,{detail:a}))};_.t.$b=function(a){a=this.M[a];void 0===a&&(a=null);return a};_.t.getSurface=function(){return this.h};_.t.getConfiguration=function(){return _.K.Ma(this.f)};
418
+ _.t.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.t.unload=function(){return this.a?this.a.unload():Promise.resolve()};_.t.release=function(){var a=this;if(null!=this.m)return this.g.info("Player release already in progress"),this.m;this.g.debug("Releasing player");this.m=xo(this);return this.m["finally"](function(){a.g.debug("Player released");a.m=null})};
419
+ _.t.destroy=function(){var a=this;if(this.F)return this.g.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.F=!0;return this.release().then(function(){a.g.debug(Da);a.trigger(new _.J("destroying"));return a.fc(_.Od)}).then(function(){a.a&&a.a.removeDelegate(a);a.bd.clear();a.U.release();if(a.a)return a.a.destroy()}).then(function(){hk(function(b){b.Ca()});_.dk.clear();a.a=null;a.trigger(new _.J("destroyed"))})};
420
+ _.t.load=function(a){var b=this,c;return _.A(function(d){switch(d.a){case 1:return _.zf(d,2),_.x(d,_.Ao(b,a),4);case 4:return _.x(d,_.Bo(b),5);case 5:return _.x(d,_.Do(b),6);case 6:_.Af(d,0);break;case 2:c=_.Bf(d);if(b.m)throw b.g.info("Load interrupted while a player release is pending"),new _.L(_.M,7,7E3);throw c;}})};
421
+ _.t.fc=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];var e=this;d=this.K.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.mf(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};_.t.use=function(a){a=new a;a.Ia(this);_.gk(a)};_.t.remove=function(a){if(this.getState()<=_.Xm||this.I){var b="";hk(function(c){c instanceof a&&(b=c.id(),c.Ca())});if(b)return _.dk["delete"](b),this.J=!0}return!1};
422
+ _.t.play=function(){return this.a?this.j&&this.a.namespace()!==_.Jc?this.j.start(this.a):this.a.play():Promise.reject("No player initialized. You need to load content before calling play.")};_.t.pause=function(){return this.a?this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};_.t.getTrackManager=function(){return this.a&&this.a.getTrackManager()};_.t.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.Rj};
423
+ _.t.getState=function(){return this.a?this.a.getState():_.Xm};_.t.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.t.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.t.isPaused=function(){return this.a&&this.a.isPaused()||!1};_.t.getPosition=function(){return this.a?this.a.getPosition():0};_.t.seek=function(a){return this.getState()===_.hn?Promise.reject("Cannot seek in current state."):this.a?this.a.seek(a):Promise.reject("delegate does not exist")};
424
424
  _.t.getPresentationStartTime=function(){return this.a?this.a.getPresentationStartTime():null};_.t.getSeekRange=function(){return this.a?this.a.getSeekRange():{start:0,end:0}};_.t.getVolume=function(){return this.a?this.a.getVolume():null};_.t.setVolume=function(a){this.a&&this.a.setVolume(a)};_.t.getDuration=function(){return this.a?this.a.getDuration():-1};_.t.getAdsManager=function(){return this.j};_.t.namespace=function(){return this.a&&this.a.namespace()||"Undefined"};
425
- _.t.canPlay=function(a,b){return this.a?this.a.canPlay(a,b):0};_.t.getPlaybackRate=function(){return this.a?this.a.getPlaybackRate():1};_.t.setPlaybackRate=function(a){this.a&&this.a.setPlaybackRate(a)};_.t.isMuted=function(){return this.a&&this.a.isMuted()||!1};_.t.setMuted=function(a){this.a&&this.a.setMuted(a)};_.t.getNetworkEngine=function(){return this.I};_.t.setNetworkEngine=function(a){this.I=a};_.t.getTextDisplayer=function(){return this.a&&this.a.getTextDisplayer()};
425
+ _.t.canPlay=function(a,b){return this.a?this.a.canPlay(a,b):0};_.t.getPlaybackRate=function(){return this.a?this.a.getPlaybackRate():1};_.t.setPlaybackRate=function(a){this.a&&this.a.setPlaybackRate(a)};_.t.isMuted=function(){return this.a&&this.a.isMuted()||!1};_.t.setMuted=function(a){this.a&&this.a.setMuted(a)};_.t.getNetworkEngine=function(){return this.H};_.t.setNetworkEngine=function(a){this.H=a};_.t.getTextDisplayer=function(){return this.a&&this.a.getTextDisplayer()};
426
426
  _.t.isLive=function(){return!!this.a&&this.a.isLive()};_.t.getStats=function(){return this.a?this.a.getStats():null};_.t.Gd=function(){return Object.freeze(this.o)};_.t.setSourceIndex=function(a){this.a&&this.a.setSourceIndex(a)};_.t.getSourceIndex=function(){return this.a?this.a.getSourceIndex():-1};_.t.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};_.t.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.t.resetAbr=function(){this.a&&this.a.resetAbr()};
427
- _.t.setDrmCustomDataModifier=function(a){this.Dc=a;yo(this)};_.t.setCdnErrorCallback=function(a){this.D=a;this.a&&this.a.setCdnErrorCallback(this.D)};_.t.ag=function(){this.ne=!0};_.C("clpp.Player",V);V.registerPlugin=_.Do;V.prototype.setCdnErrorCallback=V.prototype.setCdnErrorCallback;V.prototype.setDrmCustomDataModifier=V.prototype.setDrmCustomDataModifier;V.prototype.resetAbr=V.prototype.resetAbr;V.prototype.getTimelineCues=V.prototype.getTimelineCues;V.prototype.getLoadedSource=V.prototype.getLoadedSource;
427
+ _.t.setDrmCustomDataModifier=function(a){this.Cc=a;zo(this)};_.t.setCdnErrorCallback=function(a){this.D=a;this.a&&this.a.setCdnErrorCallback(this.D)};_.t.$f=function(){this.ne=!0};_.D("clpp.Player",V);V.registerPlugin=_.Eo;V.prototype.setCdnErrorCallback=V.prototype.setCdnErrorCallback;V.prototype.setDrmCustomDataModifier=V.prototype.setDrmCustomDataModifier;V.prototype.resetAbr=V.prototype.resetAbr;V.prototype.getTimelineCues=V.prototype.getTimelineCues;V.prototype.getLoadedSource=V.prototype.getLoadedSource;
428
428
  V.prototype.getSources=V.prototype.Gd;V.prototype.getStats=V.prototype.getStats;V.prototype.isLive=V.prototype.isLive;V.prototype.getTextDisplayer=V.prototype.getTextDisplayer;V.prototype.setNetworkEngine=V.prototype.setNetworkEngine;V.prototype.getNetworkEngine=V.prototype.getNetworkEngine;V.prototype.setMuted=V.prototype.setMuted;V.prototype.isMuted=V.prototype.isMuted;V.prototype.setPlaybackRate=V.prototype.setPlaybackRate;V.prototype.getPlaybackRate=V.prototype.getPlaybackRate;
429
429
  V.prototype.namespace=V.prototype.namespace;V.prototype.getAdsManager=V.prototype.getAdsManager;V.prototype.getDuration=V.prototype.getDuration;V.prototype.setVolume=V.prototype.setVolume;V.prototype.getVolume=V.prototype.getVolume;V.prototype.getSeekRange=V.prototype.getSeekRange;V.prototype.getPresentationStartTime=V.prototype.getPresentationStartTime;V.prototype.seek=V.prototype.seek;V.prototype.getPosition=V.prototype.getPosition;V.prototype.isPaused=V.prototype.isPaused;V.prototype.isEnded=V.prototype.isEnded;
430
430
  V.prototype.getState=V.prototype.getState;V.prototype.getBufferInfo=V.prototype.getBufferInfo;V.prototype.getTrackManager=V.prototype.getTrackManager;V.prototype.pause=V.prototype.pause;V.prototype.play=V.prototype.play;V.prototype.remove=V.prototype.remove;V.prototype.use=V.prototype.use;V.prototype.load=V.prototype.load;V.prototype.destroy=V.prototype.destroy;V.prototype.release=V.prototype.release;V.prototype.getDrmInfo=V.prototype.getDrmInfo;V.prototype.getConfiguration=V.prototype.getConfiguration;
431
- V.prototype.getSurface=V.prototype.getSurface;V.prototype.getPlugin=V.prototype.bc;V.prototype.off=V.prototype.off;V.prototype.one=V.prototype.one;V.prototype.on=V.prototype.on;_.Wm=0;_.hn=1;_.an=2;_.kn=3;_.jn=4;_.cn=5;_.gn=6;_.Xm=7;_.en={IDLE:_.Wm,PREPARING:_.hn,BUFFERING:_.an,PLAYING:_.kn,PAUSED:_.jn,ENDED:_.cn,ERROR:_.gn,UNSET:_.Xm};V.State=_.en;var to=[];_.t=W.prototype;_.t.sb=function(){};_.t.tb=function(){};_.t.yb=function(){};_.t.getId=function(){};_.t.getCreativeId=function(){};_.t.getApiFramework=function(){};_.t.getAdSystem=function(){};_.t.getAdvertiserName=function(){};_.t.getTitle=function(){};_.t.getDuration=function(){};_.t.getSkipTimeOffset=function(){};_.t.fc=function(){};_.t.Kb=function(){};_.t.getMediaUrl=function(){};_.t.vb=function(){};_.t.ub=function(){};_.t.hb=function(){};_.t.Va=function(){};_.t.getPodIndex=function(){};
432
- _.t.Lb=function(){};_.t.Mb=function(){};_.t.xb=function(){};_.t.getWrapperAdIds=function(){};_.t.getWrapperAdSystems=function(){};_.t.getWrapperCreativeIds=function(){};_.C("clpp.ads.IAd",W);W.prototype.getWrapperCreativeIds=W.prototype.getWrapperCreativeIds;W.prototype.getWrapperAdSystems=W.prototype.getWrapperAdSystems;W.prototype.getWrapperAdIds=W.prototype.getWrapperAdIds;W.prototype.getSequenceLength=W.prototype.xb;W.prototype.getPositionInSequence=W.prototype.Mb;
433
- W.prototype.getPodTimeOffset=W.prototype.Lb;W.prototype.getPodIndex=W.prototype.getPodIndex;W.prototype.getPodType=W.prototype.Va;W.prototype.getMediaBitrate=W.prototype.hb;W.prototype.getMediaHeight=W.prototype.ub;W.prototype.getMediaWidth=W.prototype.vb;W.prototype.getMediaUrl=W.prototype.getMediaUrl;W.prototype.getClickThroughUrl=W.prototype.Kb;W.prototype.isBumper=W.prototype.fc;W.prototype.getSkipTimeOffset=W.prototype.getSkipTimeOffset;W.prototype.getDuration=W.prototype.getDuration;
434
- W.prototype.getTitle=W.prototype.getTitle;W.prototype.getAdvertiserName=W.prototype.getAdvertiserName;W.prototype.getAdSystem=W.prototype.getAdSystem;W.prototype.getApiFramework=W.prototype.getApiFramework;W.prototype.getCreativeId=W.prototype.getCreativeId;W.prototype.getId=W.prototype.getId;W.prototype.getTechnology=W.prototype.yb;W.prototype.getAdManagerVersion=W.prototype.tb;W.prototype.getAdManagerName=W.prototype.sb;Eo.prototype.name=function(){};Eo.prototype.ca=function(){};Eo.prototype.create=function(){};_.C("clpp.ads.IAdsManagerFactory",Eo);Eo.prototype.create=Eo.prototype.create;Eo.prototype.isSupported=Eo.prototype.ca;Eo.prototype.name=Eo.prototype.name;_.t=Fo.prototype;_.t.load=function(){};_.t.start=function(){};_.t.resume=function(){};_.t.pause=function(){};_.t.skip=function(){};_.t.getVolume=function(){};_.t.setVolume=function(){};_.t.getPosition=function(){};_.t.dispose=function(){};_.C("clpp.ads.IAdsManager",Fo);Fo.prototype.getPosition=Fo.prototype.getPosition;Fo.prototype.setVolume=Fo.prototype.setVolume;Fo.prototype.getVolume=Fo.prototype.getVolume;Fo.prototype.skip=Fo.prototype.skip;Fo.prototype.pause=Fo.prototype.pause;
435
- Fo.prototype.resume=Fo.prototype.resume;_.t=Go.prototype;_.t.load=function(){return Promise.resolve()};_.t.start=function(a){return a.play()};_.t.resume=function(){};_.t.pause=function(){};_.t.skip=function(){};_.t.getVolume=function(){return 1};_.t.setVolume=function(){};_.t.getPosition=function(){return-1};_.t.dispose=function(){return _.B(function(a){_.z(a)})};Go.prototype.dispose=Go.prototype.dispose;Go.prototype.getPosition=Go.prototype.getPosition;Go.prototype.setVolume=Go.prototype.setVolume;Go.prototype.getVolume=Go.prototype.getVolume;
436
- Go.prototype.skip=Go.prototype.skip;Go.prototype.pause=Go.prototype.pause;Go.prototype.resume=Go.prototype.resume;Go.prototype.start=Go.prototype.start;Go.prototype.load=Go.prototype.load;En.prototype.name=function(){return"clpp.ads.NopAdsManagerFactory"};En.prototype.ca=function(){return!0};En.prototype.create=function(){return new Go};En.prototype.create=En.prototype.create;En.prototype.isSupported=En.prototype.ca;En.prototype.name=En.prototype.name;Ho.prototype.getCuePoints=function(){};Ho.prototype.Nb=function(){};Ho.prototype.ib=function(){};_.C("clpp.ads.IAdsTimeline",Ho);Ho.prototype.hasPostroll=Ho.prototype.ib;Ho.prototype.hasPreroll=Ho.prototype.Nb;Ho.prototype.getCuePoints=Ho.prototype.getCuePoints;_.Io.prototype.Yb=function(){};_.Io.prototype.release=function(){};_.t=Jo.prototype;_.t.wd=function(a){this.a=a};_.t.Wc=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(Xa)};_.t.Fd=function(){return this.a&&this.a.mediaKeys};_.t.Ac=function(a,b){return navigator.requestMediaKeySystemAccess(a,b)};_.t.Vc=function(){return mb};Ko.prototype.a=function(){return mb};Ko.prototype.ca=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};
437
- Ko.prototype.create=function(){return new Jo};xl(new Ko,1E3);_.t=Lo.prototype;_.t.getStatus=function(){return this.a};_.t.forEach=function(a){this.a&&a(this.a,Oq.value())};_.t.get=function(a){if(this.has(a))return this.a};_.t.has=function(a){var b=Oq.value();return this.a&&nh(a,b)?!0:!1};_.t.entries=function(){};_.t.keys=function(){};_.t.values=function(){};var Oq=new _.Tm(function(){return th(new Uint8Array([0]))});_.t=No.prototype;_.t.wd=function(){};_.t.Wc=function(a){_.Sf("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.t.Fd=function(){return null};_.t.Ac=function(){_.Sf("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.t.Vc=function(){return"NOP"};Oo.prototype.a=function(){return"NOP"};Oo.prototype.ca=function(){return!0};Oo.prototype.create=function(){return new No};
438
- xl(new Oo,-1);_.t=Po.prototype;_.t.wd=function(a){this.f=a};_.t.Wc=function(a){var b=this.a;b&&b!==a&&So(b,null);return(this.a=a)?So(a,this.f):Promise.resolve()};_.t.Fd=function(){return this.a};_.t.Ac=function(a,b){_.Sf("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new Qo(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.t.Vc=function(){return"APPLE"};Qo.prototype.createMediaKeys=function(){var a=new Ro(this.keySystem);return Promise.resolve(a)};
439
- Qo.prototype.getConfiguration=function(){_.Sf("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};Ro.prototype.createSession=function(a){a=void 0===a?Be:a;this.a.debug("Creating Apple MediaKeys Session");if(a!==Be)throw new TypeError("Session type "+a+ba);return new To(this.h,"__session_"+this.j++)};Ro.prototype.setServerCertificate=function(){this.a.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.v(To,_.Rj);_.t=To.prototype;
440
- _.t.generateRequest=function(a,b){var c=this;if(this.m)return Promise.reject(pb);this.f.debug("generateRequest");this.h=new _.Th;try{var d=this.o.createSession(_.Te,_.N(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,df,function(e){var f=c.keyStatuses.getStatus();c.f.debug("Received Key Message in "+c.sessionId);c.h&&(c.h.resolve(),c.h=null);e=new _.J(Ad,{messageType:void 0===f||f===te?sd:rd,message:th(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,bf,function(e){c.f.debug("onWebkitKeyAdded_",
441
- e);c.g&&(Uo(c,"usable"),c.g.resolve(),c.g=null)});this.j.on(d,cf,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===te)c.f.warn("Ignoring webkit key error for session "+c.sessionId);else if(c.f.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.g)c.g.reject(e),
442
- c.g=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:Uo(c,"output-not-allowed");break;default:Uo(c,_.od)}});Uo(this,te)}catch(e){this.h.reject(e)}return this.h};_.t.load=function(){this.f.debug("load");return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.t.update=function(a){if(this.m)return Promise.reject(pb);this.f.debug("update");this.g=new _.Th;try{this.a.update(_.N(a))}catch(b){this.g.reject(b)}return this.g};
443
- _.t.close=function(){if(this.m)return this.closed;this.f.info("Closing Key Session "+this.sessionId);this.m=!0;try{this.a.close(),this.closed.resolve(),_.hg(this.j)}catch(a){this.closed.reject(a)}return this.closed};_.t.remove=function(){this.f.debug("remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};Vo.prototype.a=function(){return"APPLE"};Vo.prototype.ca=function(){return!!window.WebKitMediaKeys};
444
- Vo.prototype.create=function(){return new Po};xl(new Vo,1100);_.t=Wo.prototype;_.t.wd=function(a){this.a=a};_.t.Wc=function(a){_.Sf("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(Xa);var b=this.f;b&&b!==a&&ap(b,null);(this.f=a)&&ap(a,this.a);return Promise.resolve()};_.t.Fd=function(){return this.f};_.t.Ac=function(a,b){_.Sf("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.Re);c=d.length?d[0]:document.createElement(_.Re)}var e=new Xo(this.g,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
445
- _.t.Vc=function(){return"WEBKIT"};Xo.prototype.createMediaKeys=function(){return Promise.resolve(new Yo(this.g,this.a))};Xo.prototype.getConfiguration=function(){return this.f};Yo.prototype.createSession=function(a){a=void 0===a?Be:a;if(a!==Be&&a!==_.Wd)throw new TypeError("Session type "+a+ba);if(!this.a)throw a=Error("Media element is missing."),a.name=Ra,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new bp(this.g,this.a,this.m,a);this.h.push(a);return a};
446
- Yo.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.v(bp,_.Rj);_.t=bp.prototype;_.t.generateRequest=function(a,b){_.Sf("WebkitEmeManager.MediaKeySession.generateRequest");return dp(this,b,null)};_.t.load=function(a){_.Sf(Cb);return this.j===_.Wd?dp(this,null,a):Promise.reject(Error(bb))};_.t.update=function(a){_.Sf(Cb);var b=new _.Th;ep(this,b,a);return b};
447
- _.t.close=function(){_.Sf("WebkitEmeManager.MediaKeySession.close");if(this.j!==_.Wd){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=cp(this,"cancelKeyRequest");try{this.h[a](this.g,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.t.remove=function(){_.Sf("WebkitEmeManager.MediaKeySession.remove");return this.j!==_.Wd?Promise.reject(Error(bb)):this.close()};fp.prototype.a=function(){return"WEBKIT"};
448
- fp.prototype.ca=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};fp.prototype.create=function(){return new Wo};xl(new fp);_.v(gp,_.zk);gp.prototype.kd=function(a,b){for(var c=a.drm.customData.headers||{},d=_.u(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};gp.prototype.Hf=function(a,b){var c=Vk(b);switch(this.o){case Pq:return c;case Qq:return(new _.qi(c)).a;default:throw Error("Unknown content ID strategy");}};gp.prototype.eg=function(a,b){b.headers[va]=ic;this.kd(a,b);var c={spc:_.ik(b.body)};b.body=_.Bh(_.si(c,!0))};
449
- gp.prototype.fg=function(a,b){var c=_.vh(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.kk(c).buffer};_.C(Ic,gp);gp.prototype.onFairPlayLicenseResponse=gp.prototype.fg;gp.prototype.onFairPlayLicenseRequest=gp.prototype.eg;gp.prototype.extractFairPlayContentId=gp.prototype.Hf;gp.prototype.onLicenseRequest=gp.prototype.kd;gp.prototype.constructor=gp.prototype.constructor;gp.NAME=Pa;var Qq="hostname",Pq="full-skd";
450
- gp.FairPlayContentIdStrategy={HOSTNAME:Qq,FULL_SKD:Pq};_.v(hp,_.Io);_.t=hp.prototype;_.t.Ja=function(a){this.l=a};_.t.Ca=function(){this.l=null};_.t.Yb=function(){var a=this.l.getConfiguration();if(a.drm&&a.drm&&a.drm.env===Pa){a=a.drm.customData;if(!a)throw new _.L(_.M,7,7100,_.Sc);a=new gp(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||Pq);_.uk(a)}};_.t.release=function(){};_.t.id=function(){return"headerdrm"};_.C("clpp.drm.HeaderDrmComponent",hp);_.$n(function(){ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(a,b){b=void 0!==b?b:this.byteLength;a=Math.floor(a);b=Math.floor(b);0>a&&(a+=this.byteLength);0>b&&(b+=this.byteLength);a=Math.min(Math.max(0,a),this.byteLength);b=Math.min(Math.max(0,b),this.byteLength);if(0>=b-a)return new ArrayBuffer(0);var c=new ArrayBuffer(b-a),d=_.N(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});_.$n(function(){_.Sf("mathRound.install")});_.$n(function(){if(window.Document){var a=Element.prototype;a.requestFullscreen=a.requestFullscreen||a.mozRequestFullScreen||a.msRequestFullscreen||a.webkitRequestFullscreen;a=Document.prototype;a.exitFullscreen=a.exitFullscreen||a.mozCancelFullScreen||a.msExitFullscreen||a.webkitExitFullscreen;id in document||(Object.defineProperty(document,id,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
451
- {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",ip);document.addEventListener("webkitfullscreenerror",ip);document.addEventListener("mozfullscreenchange",ip);document.addEventListener("mozfullscreenerror",ip);document.addEventListener("MSFullscreenChange",ip);document.addEventListener("MSFullscreenError",ip)}});_.$n(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Sf("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=kp,document.exitPictureInPicture=lp,document.addEventListener("webkitpresentationmodechanged",jp,!0))}});_.$n(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=mp)}});_.$n(function(){if(window.VTTCue)_.Rf("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Rf(Bb),window.VTTCue=np;else if(6===a)_.Rf("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=op;else{try{var b=!!np(1,2,"")}catch(c){b=!1}b&&(_.Rf(Bb),window.VTTCue=np)}}else _.Tf("VTTCue not available.")});var pp;_.$n(function(){_.Sf("InputEvent.install");_.Ui("Trident/")&&HTMLInputElement.prototype.addEventListener!==qp&&(_.Rf("Patching input event support on IE."),pp=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=qp)});_.$n(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.$n(function(){_.Sf("VideoPlayPromise.install");if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b["catch"](function(){});return b}}});_.yp.prototype.start=function(){var a=this;this.a=new ResizeObserver(function(b){b=b[0];a.h(b.contentRect.width,b.contentRect.height,a.f.isFullscreen())});this.a.observe(this.g)};_.yp.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.Ap.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.Re);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.Th;c=c.play();var e=(new _.Ri(function(){b(a)})).Z(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===db?b(!0):b(!1)}):b(!0);return d};
452
- var zp=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,
431
+ V.prototype.getSurface=V.prototype.getSurface;V.prototype.getPlugin=V.prototype.$b;V.prototype.off=V.prototype.off;V.prototype.one=V.prototype.one;V.prototype.on=V.prototype.on;_.Xm=0;_.jn=1;_.bn=2;_.ln=3;_.kn=4;_.dn=5;_.hn=6;_.Ym=7;_.fn={IDLE:_.Xm,PREPARING:_.jn,BUFFERING:_.bn,PLAYING:_.ln,PAUSED:_.kn,ENDED:_.dn,ERROR:_.hn,UNSET:_.Ym};V.State=_.fn;var uo=[];_.t=W.prototype;_.t.rb=function(){};_.t.sb=function(){};_.t.xb=function(){};_.t.getId=function(){};_.t.getCreativeId=function(){};_.t.getApiFramework=function(){};_.t.getAdSystem=function(){};_.t.getAdvertiserName=function(){};_.t.getTitle=function(){};_.t.getDuration=function(){};_.t.getSkipTimeOffset=function(){};_.t.dc=function(){};_.t.Jb=function(){};_.t.getMediaUrl=function(){};_.t.ub=function(){};_.t.tb=function(){};_.t.gb=function(){};_.t.Ua=function(){};_.t.getPodIndex=function(){};
432
+ _.t.Kb=function(){};_.t.Lb=function(){};_.t.wb=function(){};_.t.getWrapperAdIds=function(){};_.t.getWrapperAdSystems=function(){};_.t.getWrapperCreativeIds=function(){};_.D("clpp.ads.IAd",W);W.prototype.getWrapperCreativeIds=W.prototype.getWrapperCreativeIds;W.prototype.getWrapperAdSystems=W.prototype.getWrapperAdSystems;W.prototype.getWrapperAdIds=W.prototype.getWrapperAdIds;W.prototype.getSequenceLength=W.prototype.wb;W.prototype.getPositionInSequence=W.prototype.Lb;
433
+ W.prototype.getPodTimeOffset=W.prototype.Kb;W.prototype.getPodIndex=W.prototype.getPodIndex;W.prototype.getPodType=W.prototype.Ua;W.prototype.getMediaBitrate=W.prototype.gb;W.prototype.getMediaHeight=W.prototype.tb;W.prototype.getMediaWidth=W.prototype.ub;W.prototype.getMediaUrl=W.prototype.getMediaUrl;W.prototype.getClickThroughUrl=W.prototype.Jb;W.prototype.isBumper=W.prototype.dc;W.prototype.getSkipTimeOffset=W.prototype.getSkipTimeOffset;W.prototype.getDuration=W.prototype.getDuration;
434
+ W.prototype.getTitle=W.prototype.getTitle;W.prototype.getAdvertiserName=W.prototype.getAdvertiserName;W.prototype.getAdSystem=W.prototype.getAdSystem;W.prototype.getApiFramework=W.prototype.getApiFramework;W.prototype.getCreativeId=W.prototype.getCreativeId;W.prototype.getId=W.prototype.getId;W.prototype.getTechnology=W.prototype.xb;W.prototype.getAdManagerVersion=W.prototype.sb;W.prototype.getAdManagerName=W.prototype.rb;Fo.prototype.name=function(){};Fo.prototype.ca=function(){};Fo.prototype.create=function(){};_.D("clpp.ads.IAdsManagerFactory",Fo);Fo.prototype.create=Fo.prototype.create;Fo.prototype.isSupported=Fo.prototype.ca;Fo.prototype.name=Fo.prototype.name;_.t=Go.prototype;_.t.load=function(){};_.t.start=function(){};_.t.resume=function(){};_.t.pause=function(){};_.t.skip=function(){};_.t.getVolume=function(){};_.t.setVolume=function(){};_.t.getPosition=function(){};_.t.dispose=function(){};_.D("clpp.ads.IAdsManager",Go);Go.prototype.getPosition=Go.prototype.getPosition;Go.prototype.setVolume=Go.prototype.setVolume;Go.prototype.getVolume=Go.prototype.getVolume;Go.prototype.skip=Go.prototype.skip;Go.prototype.pause=Go.prototype.pause;
435
+ Go.prototype.resume=Go.prototype.resume;_.t=Ho.prototype;_.t.load=function(){return Promise.resolve()};_.t.start=function(a){return a.play()};_.t.resume=function(){};_.t.pause=function(){};_.t.skip=function(){};_.t.getVolume=function(){return 1};_.t.setVolume=function(){};_.t.getPosition=function(){return-1};_.t.dispose=function(){return _.A(function(a){_.y(a)})};Ho.prototype.dispose=Ho.prototype.dispose;Ho.prototype.getPosition=Ho.prototype.getPosition;Ho.prototype.setVolume=Ho.prototype.setVolume;Ho.prototype.getVolume=Ho.prototype.getVolume;
436
+ Ho.prototype.skip=Ho.prototype.skip;Ho.prototype.pause=Ho.prototype.pause;Ho.prototype.resume=Ho.prototype.resume;Ho.prototype.start=Ho.prototype.start;Ho.prototype.load=Ho.prototype.load;Fn.prototype.name=function(){return"clpp.ads.NopAdsManagerFactory"};Fn.prototype.ca=function(){return!0};Fn.prototype.create=function(){return new Ho};Fn.prototype.create=Fn.prototype.create;Fn.prototype.isSupported=Fn.prototype.ca;Fn.prototype.name=Fn.prototype.name;Io.prototype.getCuePoints=function(){};Io.prototype.Mb=function(){};Io.prototype.hb=function(){};_.D("clpp.ads.IAdsTimeline",Io);Io.prototype.hasPostroll=Io.prototype.hb;Io.prototype.hasPreroll=Io.prototype.Mb;Io.prototype.getCuePoints=Io.prototype.getCuePoints;_.Jo.prototype.Xb=function(){};_.Jo.prototype.release=function(){};_.t=Ko.prototype;_.t.wd=function(a){this.a=a};_.t.Vc=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(Xa)};_.t.Fd=function(){return this.a&&this.a.mediaKeys};_.t.yc=function(a,b){return navigator.requestMediaKeySystemAccess(a,b)};_.t.Uc=function(){return lb};Lo.prototype.a=function(){return lb};Lo.prototype.ca=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};
437
+ Lo.prototype.create=function(){return new Ko};yl(new Lo,1E3);_.t=Mo.prototype;_.t.getStatus=function(){return this.a};_.t.forEach=function(a){this.a&&a(this.a,Pq.value())};_.t.get=function(a){if(this.has(a))return this.a};_.t.has=function(a){var b=Pq.value();return this.a&&nh(a,b)?!0:!1};_.t.entries=function(){};_.t.keys=function(){};_.t.values=function(){};var Pq=new _.Um(function(){return th(new Uint8Array([0]))});_.t=Oo.prototype;_.t.wd=function(){};_.t.Vc=function(a){_.Sf("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.t.Fd=function(){return null};_.t.yc=function(){_.Sf("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.t.Uc=function(){return"NOP"};Po.prototype.a=function(){return"NOP"};Po.prototype.ca=function(){return!0};Po.prototype.create=function(){return new Oo};
438
+ yl(new Po,-1);_.t=Qo.prototype;_.t.wd=function(a){this.f=a};_.t.Vc=function(a){var b=this.a;b&&b!==a&&To(b,null);return(this.a=a)?To(a,this.f):Promise.resolve()};_.t.Fd=function(){return this.a};_.t.yc=function(a,b){_.Sf("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new Ro(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.t.Uc=function(){return"APPLE"};Ro.prototype.createMediaKeys=function(){var a=new So(this.keySystem);return Promise.resolve(a)};
439
+ Ro.prototype.getConfiguration=function(){_.Sf("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};So.prototype.createSession=function(a){a=void 0===a?Be:a;this.a.debug("Creating Apple MediaKeys Session");if(a!==Be)throw new TypeError("Session type "+a+ba);return new Uo(this.h,"__session_"+this.j++)};So.prototype.setServerCertificate=function(){this.a.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.v(Uo,_.Sj);_.t=Uo.prototype;
440
+ _.t.generateRequest=function(a,b){var c=this;if(this.m)return Promise.reject(ob);this.f.debug("generateRequest");this.h=new _.Sh;try{var d=this.o.createSession(_.Te,_.N(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,df,function(e){var f=c.keyStatuses.getStatus();c.f.debug("Received Key Message in "+c.sessionId);c.h&&(c.h.resolve(),c.h=null);e=new _.J(Bd,{messageType:void 0===f||f===te?td:sd,message:th(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,bf,function(e){c.f.debug("onWebkitKeyAdded_",
441
+ e);c.g&&(Vo(c,"usable"),c.g.resolve(),c.g=null)});this.j.on(d,cf,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===te)c.f.warn("Ignoring webkit key error for session "+c.sessionId);else if(c.f.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.g)c.g.reject(e),
442
+ c.g=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:Vo(c,"output-not-allowed");break;default:Vo(c,_.pd)}});Vo(this,te)}catch(e){this.h.reject(e)}return this.h};_.t.load=function(){this.f.debug("load");return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.t.update=function(a){if(this.m)return Promise.reject(ob);this.f.debug("update");this.g=new _.Sh;try{this.a.update(_.N(a))}catch(b){this.g.reject(b)}return this.g};
443
+ _.t.close=function(){if(this.m)return this.closed;this.f.info("Closing Key Session "+this.sessionId);this.m=!0;try{this.a.close(),this.closed.resolve(),_.hg(this.j)}catch(a){this.closed.reject(a)}return this.closed};_.t.remove=function(){this.f.debug("remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};Wo.prototype.a=function(){return"APPLE"};Wo.prototype.ca=function(){return!!window.WebKitMediaKeys};
444
+ Wo.prototype.create=function(){return new Qo};yl(new Wo,1100);_.t=Xo.prototype;_.t.wd=function(a){this.a=a};_.t.Vc=function(a){_.Sf("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(Xa);var b=this.f;b&&b!==a&&bp(b,null);(this.f=a)&&bp(a,this.a);return Promise.resolve()};_.t.Fd=function(){return this.f};_.t.yc=function(a,b){_.Sf("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.Re);c=d.length?d[0]:document.createElement(_.Re)}var e=new Yo(this.g,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
445
+ _.t.Uc=function(){return"WEBKIT"};Yo.prototype.createMediaKeys=function(){return Promise.resolve(new Zo(this.g,this.a))};Yo.prototype.getConfiguration=function(){return this.f};Zo.prototype.createSession=function(a){a=void 0===a?Be:a;if(a!==Be&&a!==_.Xd)throw new TypeError("Session type "+a+ba);if(!this.a)throw a=Error("Media element is missing."),a.name=Ra,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new cp(this.g,this.a,this.m,a);this.h.push(a);return a};
446
+ Zo.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.v(cp,_.Sj);_.t=cp.prototype;_.t.generateRequest=function(a,b){_.Sf("WebkitEmeManager.MediaKeySession.generateRequest");return ep(this,b,null)};_.t.load=function(a){_.Sf(Ab);return this.j===_.Xd?ep(this,null,a):Promise.reject(Error(ab))};_.t.update=function(a){_.Sf(Ab);var b=new _.Sh;fp(this,b,a);return b};
447
+ _.t.close=function(){_.Sf("WebkitEmeManager.MediaKeySession.close");if(this.j!==_.Xd){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=dp(this,"cancelKeyRequest");try{this.h[a](this.g,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.t.remove=function(){_.Sf("WebkitEmeManager.MediaKeySession.remove");return this.j!==_.Xd?Promise.reject(Error(ab)):this.close()};gp.prototype.a=function(){return"WEBKIT"};
448
+ gp.prototype.ca=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};gp.prototype.create=function(){return new Xo};yl(new gp);_.v(hp,_.Ak);hp.prototype.jd=function(a,b){for(var c=a.drm.customData.headers||{},d=_.u(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};hp.prototype.Gf=function(a,b){var c=Wk(b);switch(this.o){case Qq:return c;case Rq:return(new _.pi(c)).a;default:throw Error("Unknown content ID strategy");}};hp.prototype.dg=function(a,b){b.headers[va]=jc;this.jd(a,b);var c={spc:_.jk(b.body)};b.body=_.Bh(_.ri(c,!0))};
449
+ hp.prototype.eg=function(a,b){var c=_.vh(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.lk(c).buffer};_.D(Kc,hp);hp.prototype.onFairPlayLicenseResponse=hp.prototype.eg;hp.prototype.onFairPlayLicenseRequest=hp.prototype.dg;hp.prototype.extractFairPlayContentId=hp.prototype.Gf;hp.prototype.onLicenseRequest=hp.prototype.jd;hp.prototype.constructor=hp.prototype.constructor;hp.NAME=Pa;var Rq="hostname",Qq="full-skd";
450
+ hp.FairPlayContentIdStrategy={HOSTNAME:Rq,FULL_SKD:Qq};_.v(ip,_.Jo);_.t=ip.prototype;_.t.Ia=function(a){this.l=a};_.t.Ca=function(){this.l=null};_.t.Xb=function(){var a=this.l.getConfiguration();if(a.drm&&a.drm&&a.drm.env===Pa){a=a.drm.customData;if(!a)throw new _.L(_.M,7,7100,_.Uc);a=new hp(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||Qq);_.vk(a)}};_.t.release=function(){};_.t.id=function(){return"headerdrm"};_.D("clpp.drm.HeaderDrmComponent",ip);_.ao(function(){ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(a,b){b=void 0!==b?b:this.byteLength;a=Math.floor(a);b=Math.floor(b);0>a&&(a+=this.byteLength);0>b&&(b+=this.byteLength);a=Math.min(Math.max(0,a),this.byteLength);b=Math.min(Math.max(0,b),this.byteLength);if(0>=b-a)return new ArrayBuffer(0);var c=new ArrayBuffer(b-a),d=_.N(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});_.ao(function(){_.Sf("mathRound.install")});_.ao(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;kd in document||(Object.defineProperty(document,kd,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
451
+ {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",jp);document.addEventListener("webkitfullscreenerror",jp);document.addEventListener("mozfullscreenchange",jp);document.addEventListener("mozfullscreenerror",jp);document.addEventListener("MSFullscreenChange",jp);document.addEventListener("MSFullscreenError",jp)}});_.ao(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Sf("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=lp,document.exitPictureInPicture=mp,document.addEventListener("webkitpresentationmodechanged",kp,!0))}});_.ao(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=np)}});_.ao(function(){if(window.VTTCue)_.Rf("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Rf(zb),window.VTTCue=op;else if(6===a)_.Rf("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=pp;else{try{var b=!!op(1,2,"")}catch(c){b=!1}b&&(_.Rf(zb),window.VTTCue=op)}}else _.Tf("VTTCue not available.")});var qp;_.ao(function(){_.Sf("InputEvent.install");_.Vi("Trident/")&&HTMLInputElement.prototype.addEventListener!==rp&&(_.Rf("Patching input event support on IE."),qp=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=rp)});_.ao(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.ao(function(){_.Sf("VideoPlayPromise.install");if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b["catch"](function(){});return b}}});_.zp.prototype.start=function(){var a=this;this.a=new ResizeObserver(function(b){b=b[0];a.h(b.contentRect.width,b.contentRect.height,a.f.isFullscreen())});this.a.observe(this.g)};_.zp.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.Bp.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.Re);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.Sh;c=c.play();var e=(new _.Si(function(){b(a)})).Z(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===cb?b(!0):b(!1)}):b(!0);return d};
452
+ var Ap=new Uint8Array([0,0,0,28,102,116,121,112,105,115,111,109,0,0,2,0,105,115,111,109,105,115,111,50,109,112,52,49,0,0,0,8,102,114,101,101,0,0,2,239,109,100,97,116,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
453
453
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,167,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
454
454
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,55,167,128,0,0,0,0,
455
455
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,0,0,2,194,109,111,111,118,0,0,0,108,109,118,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,232,0,0,0,47,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,1,236,116,114,97,107,0,0,0,92,116,107,104,100,0,0,0,3,0,0,0,0,
456
456
  0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,47,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,101,100,116,115,0,0,0,28,101,108,115,116,0,0,0,0,0,0,0,1,0,0,0,47,0,0,0,0,0,1,0,0,0,0,1,100,109,100,105,97,0,0,0,32,109,100,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,68,0,0,8,0,85,196,0,0,0,0,0,45,104,100,108,114,0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0,0,0,1,15,109,105,110,102,
457
457
  0,0,0,16,115,109,104,100,0,0,0,0,0,0,0,0,0,0,0,36,100,105,110,102,0,0,0,28,100,114,101,102,0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1,0,0,0,211,115,116,98,108,0,0,0,103,115,116,115,100,0,0,0,0,0,0,0,1,0,0,0,87,109,112,52,97,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,2,0,16,0,0,0,0,172,68,0,0,0,0,0,51,101,115,100,115,0,0,0,0,3,128,128,128,34,0,2,0,4,128,128,128,20,64,21,0,0,0,0,1,244,0,0,1,243,249,5,128,128,128,2,18,16,6,128,128,128,1,2,0,0,0,24,115,116,116,115,0,0,0,0,0,0,0,1,0,0,0,2,0,0,4,0,0,0,0,28,
458
- 115,116,115,99,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,28,115,116,115,122,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,115,0,0,1,116,0,0,0,20,115,116,99,111,0,0,0,0,0,0,0,1,0,0,0,44,0,0,0,98,117,100,116,97,0,0,0,90,109,101,116,97,0,0,0,0,0,0,0,33,104,100,108,114,0,0,0,0,0,0,0,0,109,100,105,114,97,112,112,108,0,0,0,0,0,0,0,0,0,0,0,0,45,105,108,115,116,0,0,0,37,169,116,111,111,0,0,0,29,100,97,116,97,0,0,0,1,0,0,0,0,76,97,118,102,53,54,46,52,48,46,49,48,49]);_.Rq=new _.H("clpp.media.TimestampParser");_.Dp={};_.Fp={};var Kp=window.XMLHttpRequest;_.v(Sp,_.Uh);Sp.prototype.then=function(a,b){this.P=this.P.then(a,b);return this};Sp.prototype["catch"]=function(a){this.P=this.P["catch"](a);return this};Sp.prototype.abort=function(){var a=this;if(this.a)return Promise.resolve();this.a=!0;return this.g.then(function(b){a.m&&clearTimeout(a.m);a.j&&a.j();return b.abort()})["catch"](function(){})};var Yp=window.fetch,Wp=window.AbortController,Vp=window.Headers;_.$p={};_.t=_.bq.prototype;_.t.getBackgroundColor=function(){return this.K};_.t.setBackgroundColor=function(a){this.K=a;this.pb()};_.t.getWindowColor=function(){return this.V};_.t.setWindowColor=function(a){this.V=a;this.pb()};_.t.getFontFamily=function(){return this.T};_.t.setFontFamily=function(a){this.T=a;this.pb()};_.t.getFontColor=function(){return this.R};_.t.setFontColor=function(a){this.R=a;this.pb()};_.t.getFontSize=function(){return this.I};_.t.setFontSize=function(a){this.I=a;this.pb()};
459
- _.t.getFontSizePercent=function(){return null===this.A?Sq:this.A};_.t.setFontSizePercent=function(a){this.A=a;this.pb()};_.t.getEdgeColor=function(){return this.F};_.t.setEdgeColor=function(a){this.F=a;this.pb()};_.t.getEdgeType=function(){return this.m};_.t.setEdgeType=function(a){this.m=a;this.pb()};_.bq.prototype.setEdgeType=_.bq.prototype.setEdgeType;_.bq.prototype.getEdgeType=_.bq.prototype.getEdgeType;_.bq.prototype.setEdgeColor=_.bq.prototype.setEdgeColor;_.bq.prototype.getEdgeColor=_.bq.prototype.getEdgeColor;
460
- _.bq.prototype.setFontSizePercent=_.bq.prototype.setFontSizePercent;_.bq.prototype.getFontSizePercent=_.bq.prototype.getFontSizePercent;_.bq.prototype.setFontSize=_.bq.prototype.setFontSize;_.bq.prototype.getFontSize=_.bq.prototype.getFontSize;_.bq.prototype.setFontColor=_.bq.prototype.setFontColor;_.bq.prototype.getFontColor=_.bq.prototype.getFontColor;_.bq.prototype.setFontFamily=_.bq.prototype.setFontFamily;_.bq.prototype.getFontFamily=_.bq.prototype.getFontFamily;
461
- _.bq.prototype.setWindowColor=_.bq.prototype.setWindowColor;_.bq.prototype.getWindowColor=_.bq.prototype.getWindowColor;_.bq.prototype.setBackgroundColor=_.bq.prototype.setBackgroundColor;_.bq.prototype.getBackgroundColor=_.bq.prototype.getBackgroundColor;var Sq=1/15;var cq="raised",dq="depressed",fq="dropshadow",eq="uniform";_.C("clpp.text.EdgeType",{NONE:_.Jd,RAISED:cq,DEPRESSED:dq,DROP_SHADOW:fq,UNIFORM:eq});hq.prototype.parseInit=function(a){try{var b=_.$p[_.ec]||null;if(b){var c=new b(this.g);c.parseInit(a)}else this.f.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=_.$p[_.fc]||null;d?(c=new d(this.g),c.parseInit(a)):this.f.warn("The clpp.vtt.Mp4VttParser class is not available. Please register the vtt component first.")}catch(e){c=null}if(c)this.a=c;else throw new _.L(_.M,2,2011);}};
462
- hq.prototype.parseMedia=function(a,b){if(!this.a)throw new _.L(_.M,2,2011);return this.a.parseMedia(a,b)};_.$p[_.dc]=hq;_.v(_.jq,_.bq);_.t=_.jq.prototype;_.t.append=function(){};_.t.remove=function(){return!0};_.t.isTextVisible=function(){return this.o};_.t.setTextVisibility=function(a){this.o=a};
463
- _.t.pb=function(){if(!this.h){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.gq(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.g.textContent="."+this.f+"::cue {"+b+"}"}};_.t.destroy=function(){this.j.classList.remove(this.f);document.head.removeChild(this.g);this.h=!0;return Promise.resolve()};var iq=0;kq.prototype.ca=function(){return!0};kq.prototype.create=function(a){return new _.jq(a)};_.Jm("native",new kq);_.lq.prototype.onContentWillLoad=function(){return Promise.resolve()};_.lq.prototype.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.lq.prototype.onPlayerWillDestroy=function(){};_.lq.prototype.onPlayerWillRelease=function(){};}.call(g,this));
458
+ 115,116,115,99,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,28,115,116,115,122,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,115,0,0,1,116,0,0,0,20,115,116,99,111,0,0,0,0,0,0,0,1,0,0,0,44,0,0,0,98,117,100,116,97,0,0,0,90,109,101,116,97,0,0,0,0,0,0,0,33,104,100,108,114,0,0,0,0,0,0,0,0,109,100,105,114,97,112,112,108,0,0,0,0,0,0,0,0,0,0,0,0,45,105,108,115,116,0,0,0,37,169,116,111,111,0,0,0,29,100,97,116,97,0,0,0,1,0,0,0,0,76,97,118,102,53,54,46,52,48,46,49,48,49]);_.Sq=new _.H("clpp.media.TimestampParser");_.Ep={};_.Gp={};var Lp=window.XMLHttpRequest;_.v(Tp,_.Th);Tp.prototype.then=function(a,b){this.O=this.O.then(a,b);return this};Tp.prototype["catch"]=function(a){this.O=this.O["catch"](a);return this};Tp.prototype.abort=function(){var a=this;if(this.a)return Promise.resolve();this.a=!0;return this.g.then(function(b){a.m&&clearTimeout(a.m);a.j&&a.j();return b.abort()})["catch"](function(){})};var Zp=window.fetch,Xp=window.AbortController,Wp=window.Headers;_.aq={};_.t=_.cq.prototype;_.t.getBackgroundColor=function(){return this.J};_.t.setBackgroundColor=function(a){this.J=a;this.ob()};_.t.getWindowColor=function(){return this.U};_.t.setWindowColor=function(a){this.U=a;this.ob()};_.t.getFontFamily=function(){return this.S};_.t.setFontFamily=function(a){this.S=a;this.ob()};_.t.getFontColor=function(){return this.P};_.t.setFontColor=function(a){this.P=a;this.ob()};_.t.getFontSize=function(){return this.H};_.t.setFontSize=function(a){this.H=a;this.ob()};
459
+ _.t.getFontSizePercent=function(){return null===this.A?Tq:this.A};_.t.setFontSizePercent=function(a){this.A=a;this.ob()};_.t.getEdgeColor=function(){return this.F};_.t.setEdgeColor=function(a){this.F=a;this.ob()};_.t.getEdgeType=function(){return this.m};_.t.setEdgeType=function(a){this.m=a;this.ob()};_.cq.prototype.setEdgeType=_.cq.prototype.setEdgeType;_.cq.prototype.getEdgeType=_.cq.prototype.getEdgeType;_.cq.prototype.setEdgeColor=_.cq.prototype.setEdgeColor;_.cq.prototype.getEdgeColor=_.cq.prototype.getEdgeColor;
460
+ _.cq.prototype.setFontSizePercent=_.cq.prototype.setFontSizePercent;_.cq.prototype.getFontSizePercent=_.cq.prototype.getFontSizePercent;_.cq.prototype.setFontSize=_.cq.prototype.setFontSize;_.cq.prototype.getFontSize=_.cq.prototype.getFontSize;_.cq.prototype.setFontColor=_.cq.prototype.setFontColor;_.cq.prototype.getFontColor=_.cq.prototype.getFontColor;_.cq.prototype.setFontFamily=_.cq.prototype.setFontFamily;_.cq.prototype.getFontFamily=_.cq.prototype.getFontFamily;
461
+ _.cq.prototype.setWindowColor=_.cq.prototype.setWindowColor;_.cq.prototype.getWindowColor=_.cq.prototype.getWindowColor;_.cq.prototype.setBackgroundColor=_.cq.prototype.setBackgroundColor;_.cq.prototype.getBackgroundColor=_.cq.prototype.getBackgroundColor;var Tq=1/15;var dq="raised",eq="depressed",gq="dropshadow",fq="uniform";_.D("clpp.text.EdgeType",{NONE:_.Kd,RAISED:dq,DEPRESSED:eq,DROP_SHADOW:gq,UNIFORM:fq});iq.prototype.parseInit=function(a){try{var b=_.aq[_.fc]||null;if(b){var c=new b(this.g);c.parseInit(a)}else this.f.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=_.aq[_.gc]||null;d?(c=new d(this.g),c.parseInit(a)):this.f.warn("The clpp.vtt.Mp4VttParser class is not available. Please register the vtt component first.")}catch(e){c=null}if(c)this.a=c;else throw new _.L(_.M,2,2011);}};
462
+ iq.prototype.parseMedia=function(a,b){if(!this.a)throw new _.L(_.M,2,2011);return this.a.parseMedia(a,b)};_.aq[ec]=iq;_.v(_.kq,_.cq);_.t=_.kq.prototype;_.t.append=function(){};_.t.remove=function(){return!0};_.t.isTextVisible=function(){return this.o};_.t.setTextVisibility=function(a){this.o=a};
463
+ _.t.ob=function(){if(!this.h){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.hq(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.g.textContent="."+this.f+"::cue {"+b+"}"}};_.t.destroy=function(){this.j.classList.remove(this.f);document.head.removeChild(this.g);this.h=!0;return Promise.resolve()};var jq=0;lq.prototype.ca=function(){return!0};lq.prototype.create=function(a){return new _.kq(a)};_.Km("native",new lq);_.mq.prototype.onContentWillLoad=function(){return Promise.resolve()};_.mq.prototype.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.mq.prototype.onPlayerWillDestroy=function(){};_.mq.prototype.onPlayerWillRelease=function(){};}.call(g,this));
464
464
  g.clpp._ = _;
465
465
  if (typeof(module)!="undefined"&&module.exports) {module.exports=g.clpp;}
466
466
  else if (typeof(define)!="undefined" && define.amd) {define(function(){return g.clpp;});}