@castlabs/prestoplay 6.23.1 → 6.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/cjs/cl.adobe.js +3 -3
  3. package/cjs/cl.airplay.js +3 -3
  4. package/cjs/cl.broadpeak.js +7 -7
  5. package/cjs/cl.cast.js +116 -116
  6. package/cjs/cl.conviva.js +32 -32
  7. package/cjs/cl.core.js +607 -591
  8. package/cjs/cl.crypto.js +9 -9
  9. package/cjs/cl.dash.js +88 -86
  10. package/cjs/cl.externs.js +105 -54
  11. package/cjs/cl.freewheel.js +25 -24
  12. package/cjs/cl.hls.js +77 -71
  13. package/cjs/cl.hlssmpte.js +6 -6
  14. package/cjs/cl.htmlcue.js +30 -30
  15. package/cjs/cl.ima.js +24 -23
  16. package/cjs/cl.mse.js +352 -342
  17. package/cjs/cl.muxdata.js +15 -15
  18. package/cjs/cl.onboard.js +3 -3
  19. package/cjs/cl.persistent.js +15 -14
  20. package/cjs/cl.playlist.js +6 -6
  21. package/cjs/cl.sessions.js +16 -16
  22. package/cjs/cl.simid.js +15 -15
  23. package/cjs/cl.smooth.js +72 -72
  24. package/cjs/cl.thumbnails.js +26 -26
  25. package/cjs/cl.tizen.js +72 -72
  26. package/cjs/cl.ttml.js +29 -29
  27. package/cjs/cl.verimatrix.js +5 -5
  28. package/cjs/cl.vimond.js +12 -12
  29. package/cjs/cl.vr.js +19 -19
  30. package/cjs/cl.vtt.js +14 -14
  31. package/cjs/cl.yospace.js +4 -4
  32. package/cjs/cl.youbora.js +37 -37
  33. package/cl.adobe.js +3 -3
  34. package/cl.airplay.js +3 -3
  35. package/cl.broadpeak.js +5 -5
  36. package/cl.cast.js +88 -88
  37. package/cl.conviva.js +27 -27
  38. package/cl.core.js +491 -478
  39. package/cl.crypto.js +9 -9
  40. package/cl.dash.js +82 -80
  41. package/cl.externs.js +105 -54
  42. package/cl.freewheel.js +19 -19
  43. package/cl.hls.js +79 -74
  44. package/cl.hlssmpte.js +5 -5
  45. package/cl.htmlcue.js +26 -26
  46. package/cl.ima.js +18 -17
  47. package/cl.mse.js +310 -306
  48. package/cl.muxdata.js +13 -13
  49. package/cl.onboard.js +4 -4
  50. package/cl.persistent.js +10 -10
  51. package/cl.playlist.js +5 -5
  52. package/cl.sessions.js +10 -10
  53. package/cl.simid.js +13 -13
  54. package/cl.smooth.js +60 -59
  55. package/cl.thumbnails.js +19 -19
  56. package/cl.tizen.js +57 -57
  57. package/cl.ttml.js +22 -22
  58. package/cl.verimatrix.js +4 -4
  59. package/cl.vimond.js +8 -8
  60. package/cl.vr.js +14 -14
  61. package/cl.vtt.js +12 -12
  62. package/cl.yospace.js +3 -3
  63. package/cl.youbora.js +28 -28
  64. package/package.json +1 -1
  65. package/typings.d.ts +54 -25
package/cjs/cl.core.js CHANGED
@@ -1,428 +1,449 @@
1
1
  (function(){var g={}; var _ = {};
2
- (function(window){var ba,ca,ea,fa,ha,pa,ta,xa,ya,Ba,Ca,Ga,Ia,Ja,Na,Ra,Ta,Wa,Ya,Za,$a,db,eb,fb,gb,hb,ib,jb,kb,lb,mb,nb,pb,qb,vb,wb,xb,yb,zb,Ab,Bb,Db,Eb,Ib,Mb,Tb,Ub,Vb,Wb,Zb,ac,dc,ec,hc,ic,kc,lc,mc,nc,oc,pc,yc,zc,Ac,Tc,Yc,dd,kd,ld,sd,td,ud,wd,xd,yd,Ad,Bd,Cd,Dd,Ed,Fd,Md,Nd,Pd,Ud,$d,ae,be,ce,de,ee,ge,he,ie,le,ne,pe,ve,Ce,Ee,Fe,Ne,ff,nf,pf,qf,rf,sf,tf,uf,vf,wf,xf,yf,Cf,Gf,Hf,If,Jf,Kf,Mf,Qf,Sf,gg,jg,qg,wg,zg,Gg,Pg,Tg,Ug,Vg,Wg,Xg,Zg,$g,ah,fh,jh,nh,ph,oh,qh,rh,sh,xh,Ah,yh,zh,Bh,Dh,Eh,Ih,Lh,Qh,Uh,Wh,Xh,Zh,bi,$h,di,fi,ei,ji,
3
- pi,oi,ni,si,vi,ui,ti,hi,gi,ri,ii,yi,zi,Ai,Ci,Ei,Di,Gi,Ri,Si,Ti,Vi,Xi,Yi,$i,bj,fj,hj,jj,dj,mj,Bj,Cj,Fj,Jj,Lj,Mj,Pj,Kj,Gj,Qj,Xj,dk,ek,hk,ik,jk,lk,mk,nk,qk,Ck,Dk,Ek,Fk,Gk,Mk,Ok,Pk,Vk,Wk,Zk,al,$k,Yk,bl,Xk,fl,dl,el,gl,hl,ol,xl,zl,Al,Ll,Nl,Ol,Pl,Zl,Ql,bm,dm,fm,gm,em,im,jm,cm,km,lm,mm,nm,om,sm,tm,um,vm,pm,zm,Am,Cm,Fm,Hm,Nm,Om,Pm,Qm,Rm,Sm,Tm,Um,Vm,Wm,Xm,cn,qn,wn,zn,An,Cn,Dn,Ln,Pn,Qn,Vn,ao,bo,eo,fo,ho,io,jo,ko,lo,mo,no,oo,po,qo,xo,yo,zo,Co,Ao,Do,Fo,Go,Bo,Eo,Ho,Io,Jo,Ko,No,Po,Qo,Wo,Xo,dp,jp,sp,pp,qp,wp,yp,
4
- Bp,Fp,Gp,Kp,up,op,Rp,Ip,Sp,Up,Tp,bq,Yp,Xp,$p,cq,aq,eq,Zp,dq,fp,zp,Vp,gp,Qp,np,Mp,Np,hq,Pp,tp,rp,ip,mq,oq,pq,qq,rq,xq,yq,Aq,Eq,Jq,wq,Kq,Lq,Oq,Rq,Sq,Tq,Vq,Wq,Qq,Pq,Xq,Yq,Zq,$q,dr,er,fr,gr,hr,mr,nr,or,sr,rr,xr,zr,Ar,Br,Mr,Or,Nr,Cr,Hr,Pr,Qr,vr,Kr,tr,Rr,Jr,Fr,Gr,Er,Ir,Dr,Sr,Ur,Lr,Xr,wr,ur,Yr,Wr,yr,ds,es,gs,fs,is,hs,bs,ls,ks,os,cs,rs,js,ps,Zr,ms,zs,ns,qs,ts,ss,ys,Cs,vs,Ds,Es,Gs,Fs,Is,Js,Ks,Ls,Hs,Ns,Ps,Qs,Ss,Ts,Us,Vs,Ws,Xs,Ys,Zs,at,bt,ct,dt,$s,gt,it,ht,jt,kt,X,pt,tt,rt,ut,wt,vt,yt,zt,Et,Gt,Ft,Bt,ot,At,It,
5
- Jt,Kt,Nt,Ot,Mt,Lt,Rt,Tt,St,Wt,Ut,Zt,$t,Yt,bu,cu,du,au,Qt,eu,Pt,hu,iu,ju,lu,mu,nu,ou,pu,qu,ru,su,tu,vu,yu,zu,Au,xu,Cu,Du,Ju,Ou,Pu,Ru,Qu,zk,Tu,Wu,Vu,Xu,Yu,Uu,$u,av,Zu,bv,Ak,ev,vk,Hv,Kv,hh,Mv;_.aa=" is registered.";ba=" is unsupported on this platform.";ca=" to a log level. Falling back to default!";_.da="#text";ea="': 'output-restricted'";fa="() is ongoing!";ha=".start";_.ia="6.23.1";_.ja="AdaptationSet";_.ka="Already destroyed. No-op";_.la="Already released. No-op";_.ma="Autoplay is not allowed due to browser policy.";
6
- _.na="BANDWIDTH";_.oa="BASIC";pa="CHECKSUM";_.qa="CLOSED-CAPTIONS";_.sa="CODECS";ta="Can not set volume to ";_.ua="Cannot retrieve buffer information due to platform limitations";_.va="CastlabsPlayer";_.wa="Configuration is valid";xa="Content-Length";ya="Content-Type";_.za="Could not find configured DRM environment.";_.Aa="DRM environment '";Ba="DRM licenses loaded";Ca="DRMtoday";Ga="DRMtodayOnboard";_.Ha="DURATION";Ia="Destroying player";Ja="EXT-X-BYTERANGE";_.Ka="EXT-X-DATERANGE";_.La="EXT-X-DISCONTINUITY";
7
- _.Ma="EXT-X-DISCONTINUITY-SEQUENCE";Na="EXT-X-ENDLIST";_.Oa="EXT-X-KEY";_.Pa="EXT-X-MAP";_.Qa="EXT-X-MEDIA-SEQUENCE";Ra="EXT-X-PART-INF";Ta="EXT-X-PLAYLIST-TYPE";_.Ua="EXT-X-PRELOAD-HINT";_.Va="EXT-X-PROGRAM-DATE-TIME";Wa="EXT-X-SERVER-CONTROL";_.Xa="EXT-X-STREAM-INF";Ya="EXT-X-TARGETDURATION";Za="Error while decoding string!";$a="Error while fetching certificate!";_.ab="FairPlay Certificate URL is not defined";_.bb="FairPlay License URL is not defined";_.cb="GROUP-ID";db="HW_SECURE_ALL";eb="HW_SECURE_CRYPTO";
8
- fb="HW_SECURE_DECODE";gb="HeaderDrm";hb="Hide video element .";ib="Interstitial ";jb="Interstitial cue ";kb="Interstitials ";lb="Invalid track type: ";mb="InvalidStateError";nb="Key status for Key ID '";_.ob="LANGUAGE";pb="License verification failed: ";qb="Load interrupted while a player release is pending";_.rb="Loading player with configuration";_.tb="MaxHeight";_.ub="MaxWidth";vb="Missing media element";wb="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";
9
- xb="No event provided!";yb="No items in the playlist";zb="No sources provided!";Ab="No track data attached to the event, unable to add track!";Bb="Not a persistent session.";_.Cb="Not supported";Db="NotAllowedError";Eb="NotSupportedError";_.Fb="PLAYLIST";_.Gb="POST";_.Hb="PlayReady License URL is not defined";Ib="Player not ready yet.";_.Jb="Player sources";_.Kb="Player state change: ";_.Lb="Please make sure ";Mb="Preloading is not supported by this player.";_.Nb="QualityLevel";_.Ob="RESOLUTION";
10
- _.Pb="Representation";_.Qb="SUBTITLES";_.Rb="SW_SECURE_CRYPTO";_.Sb="SW_SECURE_DECODE";Tb="Session is closed";Ub="Setting native ";Vb="Show video element .";Wb="Skipping Session creation. License for init data was already requested in Session: '";_.Xb="SmoothStreamingMedia";_.Yb="TYPE";Zb="The index is not in the allowed range.";_.$b="URI";ac="Unable to translate ";_.bc="Unhandled/ignored event";_.cc="Unregistering listeners";dc="Unsupported keySystem";ec="Using VTTCue polyfill from 3 argument TextTrackCue.";
11
- _.fc="VIDEO";_.gc="VOD";hc="Wait for preloading to finish";ic="WebkitEmeManager.MediaKeySession.load";_.jc="Widevine License URL is not defined";kc="Will create EME Manager: ";lc="X-AD-CREATIVE-SIGNALING";mc="X-ASSET-LIST";nc="X-ASSET-URI";oc="X-PLAYOUT-LIMIT";pc="X-RESUME-OFFSET";_.qc="ad-break-started";_.sc="ad-break-stopped";_.uc="ad-buffering";_.vc="ad-clicked";_.wc="ad-completed";_.xc="ad-first-quartile";yc="ad-hls-asset-list-request";zc="ad-hls-asset-list-response";Ac="ad-hls-resoled";
12
- _.Bc="ad-impression";_.Cc="ad-loaded";_.Dc="ad-midpoint";_.Ec="ad-paused";_.Fc="ad-progress";_.Gc="ad-resumed";_.Hc="ad-skipped";_.Ic="ad-started";_.Jc="ad-stopped";_.Kc="ad-third-quartile";_.Lc="addtrack";_.Mc="ads-timeline-changed";_.Nc="airplay-casting-ended";_.Oc="airplay-casting-started";_.Pc="airplay-status-changed";_.Qc="application";_.Rc="application/cea-608";_.Sc="application/dash+xml";Tc="application/mp4";_.Uc='application/mp4; codecs\x3d"stpp"';_.Vc='application/mp4; codecs\x3d"wvtt"';
13
- _.Wc="application/ttml+xml";_.Xc="application/vnd.ms-sstr+xml";Yc="application/x-www-form-urlencoded";_.Zc="audio";_.$c="audio/aac";_.ad="audio/ac3";_.bd="audio/eac3";_.cd="audio/mp4";dd='audio/mp4;codecs\x3d"mp4a.40.2"';_.ed="audiobufferchanged";_.fd="autoplaynotallowed";_.gd="bitratechanged";_.hd="boolean";_.id="bufferingended";_.jd="bufferingstarted";kd="canplay";ld="canplaythrough";_.md="caption";_.nd="castingstarted";_.od="caststatuschanged";_.pd="cdn-switch-success";_.qd="cenc";_.rd="center";
14
- sd="certificate-request";td="change";ud="chrome";_.vd="clpp-fill";wd="clpp-hidden";xd="clpp-mc-playlist";yd="clpp-visible";_.zd="clpp.cast.CastSender";Ad="clpp.drm.HeaderDrm";Bd="clpp.drm.eme.AppleEmeManager";Cd="clpp.drm.eme.EmeFactory";Dd="clpp.native.Player";Ed="clpp.plist.McPlaylist";Fd="clpp.utils.Platform";_.Gd="codecs";_.Hd="column-reverse";_.Jd="com.adobe.primetime";_.Kd="com.apple.fps";Md="com.apple.hls.interstitial";Nd="com.apple.quicktime.HLS";_.Od="com.microsoft.playready";Pd="com.microsoft.playready.recommendation";
15
- _.Qd="com.widevine.alpha";_.Rd="config.drm.customData is not defined";_.Sd="content-steering-change";_.Td="content-steering-location-ban-update";Ud="controls";_.Vd="cuechange";_.Wd="decoder";_.Xd="destroy()";_.Yd="disabled";_.Zd="div";$d="drm.license.req.";ae="drm.mediaKeys.end";be="drm.mediaKeys.start";ce="drm.onPlay.end";de="drm.onPlay.start";ee="drm.sess.update.";_.fe="drmexpirationupdate";ge="drmlicenserequested";he="drmrenewalstarted";ie="drmsessioncreated";_.je="drmsessionpersisted";_.ke="drmsessionupdate";
16
- le="drmtoday";ne="durationchange";_.oe="ec-3";pe="encrypted";_.qe="end";_.re="ended";_.se="error";_.te="estimatedThroughputKbps";_.ue="forced";ve="fullscreenElement";_.we="function";_.xe="height";_.ye="hidden";_.ze="html";_.Ae="image";_.Be="internal-error";Ce="keystatuseschange";_.De="left";Ee="license-renewal";Fe="license-request";_.Ge="line-left";_.He="line-right";_.Ie="live-turned-static";_.Je="load";_.Ke="loadeddata";_.Me="loadedmetadata";Ne="loadstart";_.Oe="main";_.Pe="mdat";_.Qe="mdia";
17
- _.Re="message";_.Se="metadata";_.Te="mimeType";_.Ue="minf";_.Ve="moov";_.We="mpd-type-changed";_.Xe="mpeg-dash-callback-event";_.Ye="none";_.k="number";_.Ze="object";_.$e="onBitrateChanged()";_.af="onContentLoaded";_.bf="onPlayerError()";_.cf="onPlayerWillDestroy";_.df="onPlayerWillRelease";_.ef="onStateChanged()";ff="online-status-changed";_.gf="optional";_.hf="org.w3.clearkey";_.jf="output-restricted";_.kf="pause";_.lf="persistent";_.mf="persistent-license";nf="picture-in-picture";_.of="play";
18
- pf="player.afterLoad.end";qf="player.afterLoad.start";rf="player.appendLoad.end";sf="player.appendLoad.start";tf="player.beforeLoad.end";uf="player.beforeLoad.start";vf="player.load.end";wf="player.load.start";xf="player.setupPlaylist.end";yf="player.setupPlaylist.start";_.zf="playing";_.Af="playlist-item-changed";_.Bf="playlist-modified";Cf="playlist.next.end";Gf="playlist.next.start";Hf="preload-aborted";If="preload-failed";Jf="preloaded";Kf="preloading";_.Lf="prevent";Mf="primary-content";
19
- _.Nf="progress";_.Of="px";_.Pf="ratechange";Qf="released";_.Rf="releasing";Sf="removetrack";_.Tf="required";_.Uf="resize";_.Vf="right";_.Wf="sc-playlist-ended";_.Xf="sc-playlist-item-changed";_.Yf="sc-playlist-live-turned-static";_.Zf="sc-playlist-timeline-changed";_.$f="seeked";_.ag="seeking";_.bg="showing";_.cg="simid-creative-started";_.dg="simid-creative-stopped";_.eg="sinf";_.fg="smooth";gg="stalled";_.hg="start";_.ig="statechanged";jg="status-pending";_.kg="stbl";_.lg="string";_.mg="stsd";
20
- _.ng="style";_.og="subtitle";_.pg="subtitles-htmlcue";qg="temporary";_.rg="text/vtt";_.sg="text/xml";_.tg="timeupdate";_.ug="trak";_.vg="ttml-xml";wg="unauthenticated";_.xg="und";_.yg="unknown";zg="update";_.Ag="urn:scte:scte35";_.Bg="urn:scte:scte35:2014";_.Cg="user-seeked";_.Dg="user-seeking";_.Eg="value";Gg="version";_.Hg="vertical-lr";_.Jg="vertical-rl";_.r="video";_.Kg="video/mp2t";_.Lg="video/mp4";_.Mg="videobufferchanged";_.Ng="videotrackchanged";_.Og="vimond-response";Pg="visibilitychange";
21
- _.Qg="vtt-xml";_.Rg="waiting";_.Sg="waitingforkey";Tg="webkit-org.w3.clearkey";Ug="webkitkeyadded";Vg="webkitkeyerror";Wg="webkitkeymessage";Xg="webkitneedkey";_.Yg="width";Zg="x-dt-csl-tracking-token";$g="x-dt-follow-up-token";ah="x-dt-resp-code";_.bh="yospace-session-ended";_.ch="yospace-session-started";_.eh=function(a){return function(){return _.dh[a].apply(this,arguments)}};fh=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
22
- _.w=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:fh(a)}};_.gh=function(a){if(!(a instanceof Array)){a=_.w(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a};_.x=function(a,b){a.prototype=hh(b.prototype);a.prototype.constructor=a;if(ih)ih(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c]};
23
- jh=function(){jh=function(){};kh.Symbol||(kh.Symbol=lh)};nh=function(a,b){this.a=a;mh(this,"description",{configurable:!0,writable:!0,value:b})};ph=function(){jh();var a=kh.Symbol.iterator;a||(a=kh.Symbol.iterator=kh.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.we&&mh(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return oh(fh(this))}});ph=function(){}};oh=function(a){ph();a={next:a};a[kh.Symbol.iterator]=function(){return this};return a};
24
- qh=function(){this.w=!1;this.l=null;this.f=void 0;this.a=1;this.j=this.o=0;this.B=this.h=null};rh=function(a){if(a.w)throw new TypeError("Generator is already running");a.w=!0};sh=function(a,b){a.h={Vh:b,yi:!0};a.a=a.o||a.j};_.y=function(a,b,c){a.a=c;return{value:b}};_.B=function(a){a.a=0};_.C=function(a,b,c){a.o=b;void 0!=c&&(a.j=c)};_.th=function(a){a.o=0;a.j=2};_.uh=function(a,b){a.a=b;a.o=0};_.E=function(a){a.o=0;var b=a.h.Vh;a.h=null;return b};_.vh=function(a){a.B=[a.h];a.o=0;a.j=0};
25
- _.wh=function(a){var b=a.B.splice(0)[0];(b=a.h=a.h||b)?b.yi?a.a=a.o||a.j:void 0!=b.F&&a.j<b.F?(a.a=b.F,a.h=null):a.a=a.j:a.a=0};xh=function(a){this.a=new qh;this.f=a};Ah=function(a,b){rh(a.a);var c=a.a.l;if(c)return yh(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return zh(a)};
26
- yh=function(a,b,c,d){try{var e=b.call(a.a.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.a.w=!1,e;var f=e.value}catch(g){return a.a.l=null,sh(a.a,g),zh(a)}a.a.l=null;d.call(a.a,f);return zh(a)};zh=function(a){for(;a.a.a;)try{var b=a.f(a.a);if(b)return a.a.w=!1,{value:b.value,done:!1}}catch(c){a.a.f=void 0,sh(a.a,c)}a.a.w=!1;if(a.a.h){b=a.a.h;a.a.h=null;if(b.yi)throw b.Vh;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
27
- Bh=function(a){this.next=function(b){rh(a.a);a.a.l?b=yh(a,a.a.l.next,b,a.a.A):(a.a.A(b),b=zh(a));return b};this["throw"]=function(b){rh(a.a);a.a.l?b=yh(a,a.a.l["throw"],b,a.a.A):(sh(a.a,b),b=zh(a));return b};this["return"]=function(b){return Ah(a,b)};ph();this[Symbol.iterator]=function(){return this}};_.Ch=function(a,b){var c=new Bh(new xh(b));ih&&ih(c,a.prototype);return c};
28
- Dh=function(a,b){if(b){for(var c=kh,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&&mh(c,d,{configurable:!0,writable:!0,value:f})}};Eh=function(a){function b(d){return a.next(d)}function c(d){return a["throw"](d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})};_.I=function(a){return Eh(new Bh(new xh(a)))};
29
- _.J=function(a,b){var c=a.split("."),d=Fh;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};Ih=function(a){return a&&0<=Gh[a]?Gh[a]:Hh};Lh=function(a){if(!a)return _.Jh("clpp.log",ac+a+ca),-1;var b=Kh[a.toUpperCase()];return void 0===b?(_.Jh("clpp.log",ac+a+ca),-1):b};_.K=function(a){(this.tag=a)&&void 0===Gh[a]&&(Gh[a]=-1)};_.Nh=function(a){Mh.info.apply(Mh,arguments)};
30
- _.Oh=function(a){Mh.debug.apply(Mh,arguments)};_.Jh=function(a){Mh.warn.apply(Mh,arguments)};_.Ph=function(a){Mh.error.apply(Mh,arguments)};Qh=function(a,b){this.hb=a;this.sourceIndex=b};_.Th=function(a){if(a){var b=a.a();b in _.Rh?_.Sh.warn("Player-Factory '"+b+"' already registered"):(_.Rh[b]=a,_.Sh.info("Registered Player-Factory: '"+b+"'"))}};Uh=function(a){return Object.values(_.Rh).find(a)||null};_.Vh=function(){this.a={}};Wh=function(a,b,c,d){this.f=a;this.$c=b;this.a=c;this.Sn=!!d};
31
- _.L=function(a,b){if(b)for(var c in b)this[c]=b[c];this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.f=this.a=!1};Xh=function(a){this.a=new _.Vh;this.f=a};_.Yh=function(){this.a=new _.Vh};
32
- Zh=function(a,b,c){function d(h){for(var l=_.w(e),m=l.next();!m.done;m=l.next())a.off(b,m.value,d);c(h)}for(var e=[pe,"msneedkey",Xg,"needkey"],f=_.w(e),g=f.next();!g.done;g=f.next())a.on(b,g.value,d)};_.ai=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)$h(c[b]);a.a.clear()};bi=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};$h=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
33
- di=function(a){this.m=a;this.l=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.j=new _.Yh;this.f=new Set;this.a=new Set;this.h=null;this.g=new _.K("clpp.native.Metadata")};fi=function(a,b){a.j.on(b,_.Lc,function(c){c=c.track;c.kind===_.Se&&ei(a,c)})};
34
- ei=function(a,b){a.g.debug("onMetadataTrackAdded_()");b.mode=_.ye;var c=!b.cues||0===b.cues.length;if(a.m.isLive()||!c){var d=b.cues;c=gi(d);hi(c);a.a=ii(c,a.l);0<a.a.size&&(ji(a,a.a),a.m.trigger(new _.L(_.ki)));a.j.on(b,_.Vd,function(){for(var e=a.m.getPosition(),f=_.w(a.a),g=f.next();!g.done;g=f.next()){var h,l=a;g=g.value;if(Infinity===g.endTime){if(h=!l.f.has(g)){h=g.startTime;var m=h+.5;h=h<=e&&e<=m}h&&(l.f.add(g),l.m.trigger(new _.L(_.li,{detail:g})))}else h=g.startTime<=e&&e<=g.endTime,!h&&
35
- l.f.has(g)?(l.f["delete"](g),l.m.trigger(new _.L(_.mi,{detail:g}))):h&&!l.f.has(g)&&(l.f.add(g),l.m.trigger(new _.L(_.li,{detail:g})))}});a.m.isLive()&&(a.h=setInterval(function(){if(b.cues){var e=a.m.getSeekRange().start;for(var f=[],g=_.w(b.cues),h=g.next();!h.done;h=g.next())h=h.value,h.endTime<e&&f.push(h);ni(a,b,f);0<f.length&&a.g.debug("Evicted "+f.length+" old cues.");g=_.w(a.a);for(h=g.next();!h.done;h=g.next())h=h.value,h.endTime<e&&a.a["delete"](h);e=0<f.length}else e=!1;oi(a,b);f=gi(d);
36
- var l=ii(f,a.l);g=new Set;h=!1;l=_.w(l);for(var m=l.next();!m.done;m=l.next()){m=m.value;var n=pi(a,m);n?(m.customAttributes&&(n.customAttributes=_.N.ta(n.customAttributes||{},m.customAttributes)||void 0),h=!0):(a.a.add(m),g.add(m))}h=0<g.size||h;hi(f);(e||h)&&a.m.trigger(new _.L(_.ki));ji(a,g)},6E3))}};ji=function(a,b){for(var c=_.w(b),d=c.next();!d.done;d=c.next())a.m.trigger(new _.L(_.qi,{detail:d.value}))};
37
- pi=function(a,b){return Array.from(a.a.values()).find(function(c){return b.startTime===c.startTime&&b.endTime===c.endTime})||null};oi=function(a,b){if(b.cues){var c=ri(b.cues).filter(function(l){return l.type===Nd}),d=c.filter(function(l){return l.Fg}),e=c.filter(function(l){return!l.Fg});c=[];e=_.w(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var g=_.w(d),h=g.next();!h.done;h=g.next())h=h.value,si(f,h)&&(c.push(f),h.Sh=f.startTime)}ni(a,b,c);0<c.length&&a.g.debug("Removed "+c.length+" duplicated cues.")}};
38
- ni=function(a,b,c){c=_.w(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;try{b.removeCue(d)}catch(e){a.g.debug("Failed to remove cue",d,e)}}};si=function(a,b){var c=a.endTime-a.startTime,d=b.endTime-b.startTime,e=a.Sh||a.startTime,f=b.Sh||b.startTime;return(Infinity===c&&Infinity===d||.01>Math.abs(c-d))&&.5>Math.abs(e-f)&&a.value.key===b.value.key&&a.value.data===b.value.data};
39
- vi=function(a){var b=[],c={};a=_.w(a);for(var d=a.next();!d.done;c={zd:c.zd},d=a.next())c.zd=d.value,(d=b.find(function(e){return function(f){var g=e.zd;return f.startTime===g.startTime&&f.endTime===g.endTime}}(c)))?ti(c.zd,d):(d=ui(c.zd),b.push(d));return b};ui=function(a){var b=a.startTime,c=a.endTime;b={schemeIdUri:"",value:"",startTime:b,endTime:c,id:"T"+b.toFixed(2)+"-"+c.toFixed(2),type:_.wi,eventElement:null};ti(a,b);return b};
40
- ti=function(a,b){if(a.key.startsWith("X-"))b.customAttributes||(b.customAttributes={}),b.customAttributes[a.key]=a.value,"X-CUSTOM-ID"===a.key&&(b.id=a.value);else if("SCTE35-OUT"===a.key||"SCTE35-IN"===a.key)b.schemeIdUri=_.Bg,b.type=_.xi};hi=function(a){a.forEach(function(b){b.Fg=!0})};gi=function(a){return ri(a).filter(function(b){return b.type===Nd&&!b.Fg})};ri=function(a){var b=[];a=_.w(a);for(var c=a.next();!c.done;c=a.next())b.push(c.value);return b};
41
- ii=function(a,b){var c=a.map(function(d){return{startTime:d.startTime,endTime:d.endTime,key:d.value.key,value:d.value.data,zi:!1}});c=yi(c);b&&(c=zi(c));return new Set(vi(c))};yi=function(a){var b=new Set(a),c=new Set(a.filter(function(d){return"SCTE35-OUT"===d.key}).map(Ai));a.filter(function(d){return"SCTE35-IN"===d.key}).forEach(function(d){c.has(Ai(d))||(d.zi=!0)});return Array.from(b.values())};zi=function(a){a.forEach(function(b){b.zi&&(b.endTime=b.startTime,b.startTime=0)});return a};
42
- Ai=function(a){return a.startTime+"-"+a.endTime};_.Bi=function(a){return Array.isArray(a)?a:[a]};Ci=function(a,b){return a===b?!0:a.length===b.length&&a.every(function(c,d){return c===b[d]})};Ei=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 Di(a,b)&&Di(b,a)};Di=function(a,b){var c=new Set(a);return b.every(function(d){return c.has(d)})};
43
- _.Fi=function(a,b){b=void 0===b?{}:b;if(b.Mh){for(var c=[],d={},e=_.w(a),f=e.next();!f.done;d={Ee:d.Ee},f=e.next())d.Ee=f.value,c.some(function(g){return function(h){return b.Mh(g.Ee,h)}}(d))||c.push(d.Ee);return c}return Array.from((new Set(a)).values())};Gi=function(a,b){var c=new Set(a),d=new Set(b);return{Tn:a.filter(function(e){return!d.has(e)}),lp:a.filter(function(e){return d.has(e)}),Jj:b.filter(function(e){return!c.has(e)})}};
44
- _.Ni=function(a,b,c,d){d=void 0===d?_.Hi:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.Ii;this.writingMode=_.Ji;this.lineInterpretation=_.Ki;this.line=null;this.lineAlign=_.Li;this.direction=Mi;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
45
- _.Qi=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.Oi;this.scroll=Pi;this.cssClassList=[];this.writingMode=this.displayAlign=null};Ri=function(a){this.m=a;this.l=a.getTextDisplayer();this.f=this.h=null;this.a=new _.Yh;this.j=!1;this.g=new _.K("clpp.native.CueHandler")};
46
- Si=function(a,b){var c=b.track;c.kind!==_.Se&&(c.mode===_.bg&&(c.mode=_.ye),a.a.on(c,_.Vd,function(d){d=d.target||d.srcElement;d.mode=_.ye;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.l.append(d,[]))}))};_.P=function(a,b,c,d,e){var f=Error.call(this,Ti(a,b,c,d));this.message=f.message;"stack"in f&&(this.stack=f.stack);this.severity=a;this.category=b;this.code=c;this.data=!d||_.N.fa(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.P)};
47
- Ti=function(a,b,c,d){a=(a===_.Q?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.N.fa(d))a+=": "+d;else if(null!=d)if(null!=d.message)a+=": "+d.message,delete d.message;else try{a+=": "+JSON.stringify(d)}catch(e){}return a};_.Ui=function(a,b){var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=b};
48
- Vi=function(a,b){var c=b||Ci,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,_.gh(h))}};_.Wi=function(a){return null!=a};Xi=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}throw new _.Ui("No non-null, non-undefined value found");};
49
- Yi=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}};_.Zi=function(a){var b;a instanceof _.Zi?($i(this,a.Ab),this.Mc=a.Mc,_.aj(this,a.rb),bj(this,a.vd),this.Ma=a.Ma,_.cj(this,dj(a.a)),this.Cc=a.Cc):a&&(b=String(a).match(ej))?($i(this,b[1]||"",!0),this.Mc=fj(b[2]||""),_.aj(this,b[3]||"",!0),bj(this,b[4]),this.Ma=fj(b[5]||"",!0),_.cj(this,b[6]||"",!0),this.Cc=fj(b[7]||"")):this.a=new _.gj(null)};
50
- $i=function(a,b,c){a.Ab=c?fj(b,!0):b;a.Ab&&(a.Ab=a.Ab.replace(/:$/,""))};_.aj=function(a,b,c){a.rb=c?fj(b,!0):b};bj=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.vd=b}else a.vd=null};_.cj=function(a,b,c){b instanceof _.gj?a.a=b:(c||(b=hj(b,ij)),a.a=new _.gj(b))};fj=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""};hj=function(a,b,c){return typeof a===_.lg?(a=encodeURI(a).replace(b,jj),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
51
- jj=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};_.gj=function(a){this.f=a||null};_.kj=function(a){if(!a.a&&(a.a={},a.h=0,a.f))for(var b=a.f.split("\x26"),c=0;c<b.length;c++){var d=b[c].indexOf("\x3d"),e=null;if(0<=d){var f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));e=e||"";a.add(f,decodeURIComponent(e.replace(/\+/g," ")))}};
52
- dj=function(a){var b=new _.gj;b.f=a.f;if(a.a){var c={},d;for(d in a.a)c[d]=a.a[d].concat();b.a=c;b.h=a.h}return b};mj=function(a,b){for(var c=_.w(lj[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=_.w(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a===_.R?"":null};_.oj=function(a,b){for(var c=nj[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===_.R?"":null};
53
- _.rj=function(a,b,c){return a.map(function(d){d=_.pj(d)||"";return(d=_.qj[b][d])?d:b===_.R?c&&"vtt"!==c?Tc:_.rg:null}).filter(Boolean)[0]||null};_.pj=function(a){a=(new _.Zi(a)).Ma.split(".");return 1>=a.length?null:a.pop()};_.sj=function(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d};_.tj=function(a,b,c,d){d=void 0===d?{}:d;a=a.getAttribute(b);if(!a&&d.required)throw new _.P(_.Q,4,4023,"Required attribute missing: "+b);return a?a.value:c||null};
54
- _.uj=function(a,b){return _.tj(a,b,void 0,{required:!0})};_.vj=function(a,b){this.name=a;this.value=b};
55
- _.wj=function(a,b,c,d,e,f,g,h,l,m,n,p,q,u,v,z,A){l=void 0===l?!1:l;m=void 0===m?null:m;n=void 0===n?null:n;p=void 0===p?null:p;q=void 0===q?null:q;u=void 0===u?[]:u;v=void 0===v?null:v;z=void 0===z?"":z;this.position=a;this.startTime=b;this.endTime=c;this.Ga=g;this.$a=d;this.Ca=e;this.oa=f;this.keyInfo=(void 0===h?null:h)||null;this.jd=_.N.R(l)?!1:!!l;this.timescale=m;this.horizontalTiles=n;this.verticalTiles=p;this.durationPerTile=q;this.a=u||[];this.h=!1;this.initSegment=v;this.te=z;this.Qa=A};
56
- _.xj=function(a,b,c,d,e,f,g,h,l,m,n,p,q,u,v){u=void 0===u?[]:u;_.wj.call(this,a,b,c,d,e,f,g,void 0===h?null:h,void 0===l?!1:l,void 0===m?null:m,void 0===n?null:n,void 0===p?null:p,void 0===q?null:q,u,void 0===v?null:v);this.na=0};_.zj=function(a,b){a=_.yj(a);b=_.yj(b);return a.split("-")[0]===b.split("-")[0]};_.yj=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Aj.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};Bj=function(a){if(null!==a&&void 0!==a)return Number(a)};
57
- Cj=function(a){return a.reduce(function(b,c){return b+c},0)};_.Dj=function(a){if(typeof a!==_.lg)return null;var b=a.trim().match(/^(\d+)x(\d+)$/);if(!b)return null;a=parseInt(b[1],10);b=parseInt(b[2],10);return 0>=a||0>=b?null:{ee:a,Ae:b,oo:a*b}};_.Ej=function(a,b){for(var c=_.w(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};Fj=function(){};
58
- Jj=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!==b.byteLength)return!1;if(Gj(a)===Gj(b)&&(a.byteOffset||0)===(b.byteOffset||0))return!0;for(var c=_.Hj(a),d=_.Hj(b),e=_.w(Ij(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!==d[f])return!1;return!0};_.Hj=function(a,b,c){c=void 0===c?Infinity:c;return Kj(a,void 0===b?0:b,c,Uint8Array)};Lj=function(a,b,c){c=void 0===c?Infinity:c;return Kj(a,void 0===b?0:b,c,Uint16Array)};
59
- Mj=function(a,b,c){c=void 0===c?Infinity:c;return Kj(a,void 0===b?0:b,c,Uint32Array)};_.Nj=function(a,b,c){c=void 0===c?Infinity:c;return Kj(a,void 0===b?0:b,c,Int32Array)};_.Oj=function(a,b,c){c=void 0===c?Infinity:c;return Kj(a,void 0===b?0:b,c,DataView)};Pj=function(a){return a instanceof ArrayBuffer?a:0===a.byteOffset&&a.byteLength===a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
60
- Kj=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=Gj(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)};Gj=function(a){return a instanceof ArrayBuffer?a:a.buffer};Qj=function(){};_.Sj=function(a,b){b=void 0===b?!0:b;var c=_.Rj(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")};
61
- _.Tj=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};_.Uj=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};_.Vj=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};
62
- _.Wj=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};Xj=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};_.Rj=function(a){a=_.T.fromCharCode(_.Hj(a));return btoa(a)};_.Yj=function(a){this.f=a;this.a=0};
63
- _.Zj=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};
64
- _.ak=function(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new _.P(_.Q,4,4016,{invalidTag:b});var d=c[1],e=c[2];c=[];var f;if(e){e=new _.Yj(e);var g;(g=_.Zj(e,/^([^,=]+)(?:,|$)/g))&&g[1]&&(f=g[1].trim());for(var h=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=_.Zj(e,h);)c.push(new _.vj(g[1],g[2]||g[3]||""))}return new _.sj(a,d,c,f)};_.ck=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0,fatalStatusCodes:_.gh(bk).concat()}};
65
- dk=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||_.gh(bk).concat()};ek=function(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b};
66
- _.gk=function(a,b){_.N.fa(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.fk,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||
67
- [],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:_.gh(bk).concat(),requestStartTimestamp:null};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&
68
- dk(c,b);return c};_.kk=function(a,b,c,d,e,f,g,h){a={uri:e||d,data:b,headers:a,status:c,timeMs:g,responseStartMs:h,request:f};if(hk(c))return ik(a);throw jk(a);};hk=function(a){return 200<=a&&299>=a&&202!==a};ik=function(a){return{uri:a.uri,data:a.data||new ArrayBuffer(0),headers:a.headers,status:a.status,fromCache:!!a.headers["x-shaka-from-cache"],timeMs:a.timeMs,responseStartMs:a.responseStartMs,request:a.request}};
69
- jk=function(a){a=ik(a);try{var b=_.T.Zd(a.data,!0)}catch(d){b=null}_.Oh("HTTP error text:",b);var c=a.request;return new _.P(0<=(c?c.fatalStatusCodes||[]:[]).indexOf(a.status)?_.Q:1,1,1001,{url:a.uri,status:a.status,responseText:b,headers:a.headers,request:a.request,response:a})};lk=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};
70
- mk=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};nk=function(a,b,c){if(0>=a)return Promise.resolve();var d=8*c/a-b/1E3;return 0<d?new Promise(function(e){setTimeout(e,1E3*d)}):Promise.resolve()};
71
- _.ok=function(){this.ij=this.wf=this.done=!1;this.error=this.value=null;var a,b,c=new Promise(function(d,e){a=function(f){this.done=this.wf=!0;this.value=f;d(f)};b=function(f){this.done=this.ij=!0;this.error=f;e(f)}});c.wf=!1;c.done=!1;c.ij=!1;c.value=null;c.error=null;c.resolve=a;c.reject=b;return c};_.pk=function(a,b){this.T=a;this.A=b;this.a=!1};qk=function(a,b){a.T.then(function(){return b(!0)},function(){return b(!1)});return a};_.tk=function(){this.a=[]};
72
- _.uk=function(a,b){a.a.push(qk(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};_.Bk=function(){this.f=[];this.h=[];this.j=[];this.w=!1;this.o=new _.tk;this.a={};this.headers=new Map;this.l=0;this.a.data=vk;!window.fetch||!window.AbortController||_.wk(6)||_.xk()&&68<_.yk().browserVersion.major?(this.a.http=zk,this.a.https=zk):(this.a.http=Ak,this.a.https=Ak)};Ck=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return c=_.T,_.y(e,a.fetch(b),2);d=e.f;return e["return"](c.Ki(c.ba(d.data)))})};
73
- Dk=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.y(e,Ck(a,b),2);c=e.f;try{d=JSON.parse(c);if(null==d||typeof d!==_.Ze)throw Error("Not an object");return e["return"](d)}catch(f){throw new _.Ui("Failed to parse JSON response","json-failed");}})};
74
- Ek=function(a,b,c,d){d=void 0===d?"HEAD":d;var e,f;return _.I(function(g){switch(g.a){case 1:if(!navigator.onLine)return g["return"](!1);if(!b){g.F(2);break}e=_.gk(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.C(g,4);return _.y(g,a.fetch(e).T,6);case 6:_.uh(g,2);break;case 4:if(f=_.E(g),1002===f.code||1003===f.code)return g["return"](!1);case 2:return g["return"](!0)}})};
75
- Fk=function(a,b){for(var c=_.w(a.headers),d=c.next();!d.done;d=c.next()){var e=_.w(d.value);d=e.next().value;e=e.next().value;b.headers[d]||(b.headers[d]=e)}};Gk=function(a,b){var c=new _.Zi(b.uris[b.uriIndex]),d=c.Ab;d||(d=location.protocol,d=d.slice(0,-1),$i(c,d),b.uris[b.uriIndex]=c.toString());var e=a.a[d];if(!e)throw new _.P(_.Q,1,1E3,{url:c.toString()});return function(f){return e(f)}};
76
- _.Hk=function(a,b){this.id=a;this.type=b;this.roles=[];this.frameRate=this.label=this.originalLanguage=this.language=this.kind=null;this.trickPlay=!1;this.channelsCount=this.src=this.mimeType=null;this.spatialAudio=!1;this.renditions=[];this.accessibility=[]};_.Ik=function(a){return a&&a!==_.xg?a:null};
77
- Mk=function(a){if(!a)throw new _.P(_.Q,3,3101,lb+a);if(!_.N.fa(a))throw new _.P(_.Q,3,3101,lb+a+". Track type must be a string!");switch(a.toLowerCase()){case _.U:return _.U;case _.Jk:return _.Jk;case _.Kk:return _.Kk;case Lk:return Lk}throw new _.P(_.Q,3,3101,"Unknown track type: "+a+".");};
78
- Ok=function(a,b){a=Mk(a);var c=_.Ik(b.kind),d=b.id;d||(d=String(_.Nk++));d=new _.Hk(d,c===_.Se?Lk:a);d.kind=c;d.label=_.Ik(b.label);d.language=_.Ik(b.language);d.originalLanguage=b.originalLanguage||d.language;return d};Pk=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};_.Qk=function(a,b){this.track=b;this.id=a;this.originalId=this.codec=this.Gd=this.bandwidth=this.height=this.width=null};
79
- _.Rk=function(a){this.j=a;this.scheme=null;var b=document.createElement("a"),c=a.match(/^(.*:)(\/\/(.*))$/),d=!1;if(c){if(this.scheme=c[1],b.href=c[2],":"===b.protocol||""===b.host&&""===b.pathname)b.href="//dummy.com/"+c[3],d=!0}else{b.href=a;if(":"===b.protocol||""===b.host&&""===b.pathname)b.href="//dummy.com/"+a.match(/\/?\/?(.*)/)[1],d=!0;this.scheme=b.protocol}""===this.scheme&&(this.scheme=window.location.protocol);this.a=d?"":b.hostname;this.port=b.port;this.path=b.pathname;_.T.startsWith(this.path,
80
- "/")||(this.path="/"+this.path);this.f=b.search;this.h=b.hash};_.Sk=function(a){return a.scheme+"//"+(a.a+(a.port?":"+a.port:"")+a.path+a.h+a.f)};_.Tk=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)},""):""};
81
- _.Uk=function(a){var b={};a=a||"";a=a.substring(a.indexOf("?")+1);a=_.w(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};Vk=function(a,b){return a.startsWith("http:://")||a.startsWith("https:://")?a:(new URL(a,b)).toString()};
82
- Wk=function(a){this.f=a;this.g=new _.K("clpp.native.hls.HlsMetadataParser");this.a=Vi(this.h.bind(this),function(b,c){return b[0]===c[0]&&b[1].enableHlsVideoTrackInfo===c[1].enableHlsVideoTrackInfo&&b[1].enableMetadata===c[1].enableMetadata})};
83
- Zk=function(a,b,c){var d,e,f,g,h;return _.I(function(l){if(1==l.a)return _.y(l,Xk(a,b,c),2);d=l.f;e=d.mimeType;f=d.renditions;g=new _.Hk("dummy",_.Kk);h=f.map(function(m,n){var p=new _.Qk("R"+n,g);p.bandwidth=m.bandwidth;p.Gd=m.Gd;p.codec=m.codec;p.width=m.width;p.height=m.height;return p});Yk(h);return l["return"]({renditions:h,mimeType:e||void 0})})};
84
- al=function(a){a=a.split("\n").filter(function(c){return c.trim().startsWith("#EXT-X-MEDIA:")}).map(function(c){return $k(c)});var b=new Map;a.forEach(function(c){if(c.type&&c.name){var d=c.type+":"+c.name;if(b.has(d))throw Error("#EXT-X-MEDIA:NAME attributes are not unique. It is impossible to map HLS metadata to Safari data structures.");b.set(d,c)}});return b};
85
- $k=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.ak(0,a);a=b(_.Yb);a=null!=a?{AUDIO:_.Jk,VIDEO:_.Kk,SUBTITLES:_.U}[a]:void 0;return{type:a,groupId:b(_.cb),name:b("NAME"),language:b(_.ob),Ro:b("AUTOSELECT"),"default":b("DEFAULT"),bp:b("FORCED"),sh:b("CHARACTERISTICS"),uri:b(_.$b)}};Yk=function(a){var b=new Set;a.forEach(function(c){b.add(c.width+"x"+c.height)});if(b.size<a.length)throw Error("Playlist contains multiple renditions with the same resolution.");};
86
- bl=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return c=_.gk(b),_.y(e,Ck(a.f,c),2);d=e.f;return e["return"](d)})};Xk=function(a,b,c){var d,e,f,g;return _.I(function(h){if(1==h.a)return d=dl(b),e=el(b,c),f=d[0]?d[0].codec:null,_.y(h,fl(a,e,f),2);g=h.f;return h["return"]({mimeType:g,renditions:d})})};fl=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return b&&c?_.y(f,bl(a,b),2):f["return"](null);d=f.f;e=[gl(d,b),hl(d,b)].filter(Boolean);return f["return"](_.rj(e,_.r,c))})};
87
- dl=function(a){return a.split("\n").filter(function(b){return b.trim().startsWith("#EXT-X-STREAM-INF:")}).map(function(b){var c=_.ak(0,b);if(c.getAttribute(_.fc))throw Error("Playlist contains alternative video streams.");var d=_.tj(c,_.Ob);b=d?Number(d.split("x")[0]):null;d=d?Number(d.split("x")[1]):null;var e=_.tj(c,_.na);e=e?Number(e):null;var f=_.tj(c,"AVERAGE-BANDWIDTH");f=f?Number(f):null;c=_.tj(c,_.sa);c=_.oj(_.r,c?c.split(","):[]);return{bandwidth:e,Gd:f,codec:c,width:b,height:d,mimeType:null}})};
88
- el=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?Vk(c,b):null};gl=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?Vk(c,b):null};hl=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.tj(_.ak(0,c),_.$b))?Vk(c,b):null:null};
89
- _.jl=function(a,b,c){for(var d=_.w(_.il),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.kl=function(a){a=_.il.indexOf(a);0<=a&&_.il.splice(a,1)};_.ll=function(){};ol=function(a,b){var c=ml;nl.set(a.toLowerCase().split(";")[0]+"-"+c,{priority:c,plugin:b})};_.sl=function(a,b){for(var c=_.w([pl,ql,rl,ml]),d=c.next();!d.done;d=c.next())if(d=nl.get(a.toLowerCase().split(";")[0]+"-"+d.value)){var e=d.plugin(),f=e.isSupported(a,b);e.destroy();if(f)return d.plugin}return null};
90
- _.tl=function(a,b){var c=a;b&&(c+=';codecs\x3d"'+b+'"');return c.replace(/\s/g,"")};_.ul=function(a){return a.split(";")[0]};_.vl=function(a){a=a.split(/\s*;\s*/);a.shift();return(a=a.find(function(b){return b.startsWith("codecs\x3d")}))?a.split("\x3d")[1].replace(/^"|"$/g,"").split(/\s*,\s*/).join(","):""};_.wl=function(a){this.f=a;this.a=null};
91
- xl=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};_.yl=function(a){this.f=a;this.a=null};zl=function(a){return 0>=a?Promise.resolve():new Promise(function(b){setTimeout(function(){b()},1E3*a)})};Al=function(){};_.Bl=function(){return!!navigator.userAgent.match(/Edge?\//)};_.wk=function(a){return _.Cl("Tizen"+(a?" "+String(a):""))};_.xk=function(){return _.Cl("Web0S")};
92
- _.El=function(){return _.xk()&&79===_.Dl().major};_.Fl=function(){return _.Cl("CrKey")};_.Gl=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.wk()};_.Hl=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.Gl()&&1<navigator.maxTouchPoints};_.Il=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};_.Cl=function(a){return(navigator.userAgent||"").includes(a)};
93
- Ll=function(){if(Jl)return Jl;Kl||(Kl=new _.yl(function(){Jl=null}));(Jl=document.querySelector(_.r)||document.querySelector(_.Zc))||(Jl=document.createElement(_.r));Kl.ea(1);return Jl};Nl=function(a,b){try{return parseInt(b,10)}catch(c){Ml.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
94
- Ol=function(a){var b={major:-1,name:_.yg};if(!a)return b;var c=a.replace(/_/g,".");b.name=c;c=c.split(".");1<=c.length&&(b.major=Nl(a,c[0]));2<=c.length&&(b.minor=Nl(a,c[1]));3<=c.length&&(b.patch=Nl(a,c[2]));4<=c.length&&(b.build=Nl(a,c[3]));return b};Pl=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};
95
- Zl=function(){var a=Ql();if(!a)return Rl;var b=a.match(/^.+?(?=\))/);if(!b)return Rl;b=b[0];if(Pl(b,["iphone","ipad"]))return Sl;if(Pl(b,["android"]))return Tl;if(Pl(b,["macintosh"]))return Ul;if(Pl(b,["windows nt"]))return Vl;if(Pl(b,["tizen"]))return Wl;if(Pl(b,["web0s"]))return Xl;if(Pl(b,["linux"]))return Yl;Ml.warn("Unable to identify OS from user agent: "+a);return Rl};
96
- _.Dl=function(){var a=Ql(),b=["ie","edge","opera","firefox","safari",ud];var c=Zl();for(var d=$l[c],e=0,f=b.length;e<f;e++)if(c=d[b[e]]&&a.match(d[b[e]]))return Ol(c[1]);return Ol("")};Ql=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
97
- _.yk=function(){var a=Zl();var b=Zl();var c=$l[b];if(c){c=Ql().match(c.os_version)[1];c=Ol(c);if(b===Vl)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=Ol("");a:{c=Ql();var d=["ie","edge","opera","firefox","safari",ud],e=Zl();e=$l[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=am}return{os:a,osVersion:b,browser:c,browserVersion:_.Dl()}};
98
- bm=function(){this.g=new _.K("clpp.native.TrackManager");this.m=null;this.f=new _.Yh;this.h=[];this.B=0;this.o={};this.C=[];this.a=new Map;this.w=null;this.l=new Map;this.A=!0;this.J=this.yg.bind(this,_.U);this.L=this.Ag.bind(this,_.U);this.K=this.zg.bind(this,_.U);this.M=this.yg.bind(this,_.Kk);this.U=this.Ag.bind(this,_.Kk);this.P=this.zg.bind(this,_.Kk);this.G=this.yg.bind(this,_.Jk);this.I=this.Ag.bind(this,_.Jk);this.H=this.zg.bind(this,_.Jk);this.j=null};
99
- dm=function(a,b){var c,d,e,f,g,h,l,m;return _.I(function(n){if(1==n.a){c=a.m.getConfiguration();d=_.jl(c,b.mimeType,_.rg);if(!d)return a.g.warn("Track MIME type is not supported",b),n["return"]();e=_.gk(b.url);return _.y(n,a.m.getNetworkEngine().fetch(e).T,2)}(f=n.f)&&f.data&&(g="External_"+a.B++,a.o[g]=b,h=d.a(_.Hj(f.data)),l=URL.createObjectURL(new Blob([h])),m={url:l,kind:b.kind,language:b.language,label:b.label,mimeType:_.rg},cm(a,m,g));_.B(n)})};fm=function(a,b,c){return em(a)&&b===_.Kk&&!!c.enableHlsVideoTrackInfo};
100
- gm=function(a,b,c){return em(a)&&(b===_.Jk||b===_.U)&&!!c.enableMetadata};em=function(a){a=a.m.getLoadedSource();return!(!a||a.type!==_.hm&&!a.url.endsWith(".m3u8"))&&_.Gl()};im=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return(d=a.m.getLoadedSource())&&a.j?_.y(f,a.j.a(d.url,c),2):f["return"]();e=f.f;e.mimeType&&(b.mimeType=e.mimeType);e.renditions&&0<e.renditions.length&&(b.renditions=e.renditions,b.renditions.forEach(function(g){g.track=b}));_.B(f)})};
101
- jm=function(a,b,c){var d,e,f,g;return _.I(function(h){if(1==h.a)return(d=a.m.getLoadedSource())&&a.j?_.y(h,a.j.a(d.url,c),2):h["return"]();e=h.f;e.td&&(f=b.type+":"+b.label,(g=e.td.get(f))&&g.sh&&(b.accessibility=g.sh.split(",").map(function(l){return l.trim()}).map(function(l){return{value:l,type:b.type,protocol:"HLS"}})));_.B(h)})};
102
- cm=function(a,b,c){if(a.m){var d=a.m.getSurface().getMedia();if(d){var e=document.createElement("track");e.id=c;e.kind=b.kind;e.srclang=b.language;b.label&&(e.label=b.label);_.T.empty(b.url)?e.src=URL.createObjectURL(new Blob([])):e.src=b.url;d.appendChild(e);a.C.push(e)}}};km=function(a,b){if(!a.m)return null;var c=a.m.getSurface();if(!c)return null;c=c.getMedia();if(!c)return null;switch(b){case _.Jk:return c.audioTracks;case _.Kk:return c.videoTracks;case _.U:return c.textTracks;default:return null}};
103
- lm=function(a,b){var c=km(a,b);c&&(c=Array.from(c),b===_.U&&(c=c.filter(function(d){return d.kind!==_.Se})));return c};mm=function(a,b){return a.h.filter(function(c){return c.type===b})};nm=function(a,b){var c=a.a.get(b)||null;return c&&c.renditions[0]};om=function(a,b){var c=a.l.get(b);return c&&c.renditions[0]};
104
- sm=function(a,b,c){var d=lm(a,b);if(c){if(void 0===a.h.find(function(l){return l.id===c.id}))throw Error("Unknown track with ID "+c.id+" and type "+b);if(c.type!==b)throw Error("Types mismatch for track "+c.type+" and arg "+b);a.g.debug("Activate track type "+b+" with ID: "+c.id);if(d){a.l.set(b,c);var e=!0,f=!1;switch(b){case _.U:var g="mode";e=_.bg;f=_.Yd;break;case _.Jk:g="enabled";break;case _.Kk:g="selected"}if(g){d=_.w(d);for(var h=d.next();!h.done;h=d.next())h=h.value,h[g]=pm(c,h,c.type)?e:
105
- f}}}else if(a.g.debug("Disable track type "+b),a.a.get(b)&&d&&b===_.U){g=_.w(d);for(h=g.next();!h.done;h=g.next())h.value.mode=_.Yd;a.a.set(b,null)}b===_.Jk?a.m.trigger(new _.L(_.qm)):b===_.U&&a.m.trigger(new _.L(_.rm))};tm=function(a){return a.enabled||a.selected||a.mode===_.bg||a.mode===_.ye};
106
- um=function(a,b,c){c=_.Bi(c).filter(function(e){return e});a.g.info("Find preferred tracks for",b,c);var d=mm(a,b);c.some(function(e){var f=_.yj(e);return(e=d.find(function(g){g=_.yj(g.language||"");return _.zj(f,g)}))?(a.g.info("Will select track with id",e.id),sm(a,b,e),!0):!1})};vm=function(a){(a=a.m.getTextDisplayer())&&a.remove(0,Infinity)};
107
- pm=function(a,b,c){return a.type!==c?!1:void 0!==b.id&&null!==b.id&&""!==b.id?a.id===b.id:_.N.pa(a,{kind:_.Ik(b.kind),language:_.Ik(b.language),label:_.Ik(b.label)},["kind","language","label"])};_.wm=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};_.xm=function(){this.Xd=new Xh(this);this.Ud=[]};zm=function(a){return a.name===Db&&ym.some(function(b){return a.message.startsWith(b)})};Am=function(){};
108
- _.Em=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.Hl()&&(a=360);var b=_.ck();b.maxAttempts=3;a={source:"",license:Bm,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,ads:{hls:{enable:!0,resolutionOffsetSec:35}},manifest:{attemptParameters:_.ck(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0,timeline:{version:1,type:void 0}},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,
109
- bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,restrictions:Cm(a),useCmsd:!0},contentSteering:{enabled:!0,attemptParameters:_.ck()},drm:null,enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:_.Oe,preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],preferSpatialAudio:!1,preferForcedSubtitles:!1,volume:null,startTime:null,loop:!1,lowLatencyMode:!1,suggestedPresentationDelay:void 0,muted:void 0,forceWaitForTracks:!1,
110
- xmlParser:_.Dm,streaming:{attemptParameters:b,bufferingGoal:10,rebufferingGoal:2,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,relativeTextTimestamp:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.1,disableAudioTracks:!1,disableVideoTracks:!1,smallGapLimit:.5,jumpLargeGaps:!0,durationBackoff:1,maxSegmentToMediaOffset:1,forceNativeTS:!1,preferNativeHlsOnSafari:!0,safeSeekOffset:5,stallEnabled:!0,stallThreshold:3,stallSkip:.5,bufferLimitUpdateInterval:.5,overridePasp:!1,enableLiveEdgeChasing:!1,
111
- chasingRate:1.15,startChasingAt:5,stopChasingAt:2,chaseJumpDistance:10,patchEdgeWhenMixedContent:!1,ignoreDrift:!1,disableFragmentSupport:!1,disableMergedFragments:!1,ignoreManagedMediaSourceStreamingHints:!1},mediaSource:{codecSwitchingStrategy:_.Lf},restrictions:Cm(),tizen:{sideStreamText:_.wk(2)},safari:{enableHlsVideoTrackInfo:!1,enableMetadata:!1},mse:{sendPlaybackSessionIdHeader:!1},trickPlay:{speedUpMode:_.Wd,preferTrickPlayTracks:!0},playlist:{timeline:"basic",content:_.gc,cropTimeline:!1},
112
- yospace:{enabled:!1}};if(_.wk()||_.xk())a.ads.hls.enable=!1;if(_.Cl("Edge/")||_.wk())a.streaming.gapDetectionThreshold=.5;_.xk()&&(a.streaming.stallEnabled=!1);_.El()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=.02);_.wk()&&(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};
2
+ (function(window){var ba,ca,ea,fa,ha,sa,va,za,Aa,Ga,Ha,Ia,Ka,La,Ra,Wa,Xa,$a,bb,cb,db,hb,ib,jb,kb,lb,mb,nb,ob,pb,rb,sb,wb,yb,zb,Bb,Cb,Db,Eb,Gb,Hb,Lb,Pb,Wb,Xb,Yb,Zb,bc,dc,gc,hc,ic,lc,mc,oc,pc,qc,rc,sc,tc,uc,wc,Dc,Ec,Fc,Yc,cd,id,rd,sd,zd,Ad,Bd,Dd,Ed,Fd,Gd,Id,Jd,Kd,Ld,Md,Nd,Td,Ud,Wd,ae,ge,he,ie,je,ke,le,ne,oe,pe,ue,ve,xe,De,Ke,Me,Ne,Ve,of,vf,xf,yf,zf,Af,Bf,Cf,Df,Ef,Ff,Hf,Of,Pf,Qf,Rf,Sf,Tf,Vf,Zf,ag,pg,sg,zg,Mg,Qg,Wg,dh,hh,ih,jh,kh,lh,nh,oh,ph,uh,yh,Ch,Eh,Dh,Fh,Gh,Hh,Mh,Ph,Nh,Oh,Qh,Sh,Th,Xh,$h,ei,ii,li,ni,oi,pi,ri,si,qi,
3
+ ui,vi,xi,Ai,yi,Bi,Di,Ci,Hi,Ki,Ji,Ii,Mi,Pi,Oi,Ni,Fi,Ei,Li,Gi,Si,Ti,Ui,Wi,Yi,Xi,$i,kj,lj,mj,oj,qj,rj,tj,uj,yj,Aj,Cj,wj,Ej,Sj,Tj,Zj,dk,fk,gk,jk,ek,ak,mk,nk,qk,rk,sk,uk,vk,wk,zk,Lk,Mk,Nk,Ok,Pk,Vk,Xk,Yk,el,fl,il,kl,jl,hl,ll,gl,ol,ml,nl,pl,ql,xl,Fl,Ql,Sl,Tl,Ul,dm,Vl,gm,im,km,lm,jm,nm,om,hm,pm,qm,rm,sm,tm,vm,wm,xm,ym,um,Cm,Dm,Fm,Im,Km,Qm,Rm,Sm,Tm,Um,Vm,Wm,Xm,Ym,fn,gn,hn,on,Bn,Hn,Kn,Ln,Nn,On,Xn,ao,bo,ho,no,oo,qo,ro,to,uo,vo,wo,xo,yo,zo,Ao,Bo,Co,Do,Eo,Fo,Io,Go,Jo,Lo,Mo,Ho,Ko,To,Uo,Vo,Wo,Zo,ap,bp,hp,ip,qp,
4
+ wp,Fp,Cp,Dp,Jp,Lp,Op,Sp,Tp,Xp,Hp,Bp,dq,Vp,eq,gq,fq,oq,kq,jq,mq,pq,nq,rq,lq,qq,sp,Mp,hq,tp,cq,Ap,Zp,$p,uq,bq,Gp,Ep,vp,zq,Bq,Cq,Dq,Eq,Kq,Lq,Nq,Rq,Wq,Jq,Xq,Yq,ar,cr,dr,fr,gr,br,hr,ir,jr,kr,or,pr,qr,rr,sr,xr,yr,zr,Dr,Cr,Ir,Mr,Or,Pr,Qr,Kr,cs,Jr,Rr,Lr,ds,es,Gr,as,Er,fs,hs,$r,Xr,Yr,Wr,Zr,Vr,gs,js,bs,ms,Hr,Fr,Sr,ns,os,ls,Nr,vs,ws,ys,ps,xs,Es,As,zs,ss,Ds,Cs,Is,us,Ls,Bs,Js,qs,ts,Fs,Ts,Gs,Ks,Ns,Ms,Vs,Ss,Ys,rs,Ps,Zs,$s,bt,at,dt,et,ft,gt,ct,it,kt,lt,nt,ot,pt,qt,rt,st,tt,ut,wt,xt,yt,zt,vt,Ct,Et,Dt,Ft,Gt,X,Lt,Pt,
5
+ Nt,Qt,St,Rt,Ut,Vt,$t,bu,au,Xt,Kt,Wt,du,eu,fu,iu,ju,hu,gu,mu,ou,nu,ru,pu,uu,vu,tu,xu,yu,zu,wu,lu,Au,ku,Du,Eu,Fu,Hu,Iu,Ju,Ku,Lu,Mu,Nu,Ou,Pu,Ru,Tu,Uu,Vu,Su,Xu,Yu,ev,jv,kv,mv,lv,Ik,ov,rv,qv,sv,uv,pv,wv,xv,vv,yv,Jk,Bv,Ek,Ov,fw,wh,hw;_.aa=" is registered.";ba=" is unsupported on this platform.";ca=" to a log level. Falling back to default!";_.da="#text";ea="': 'output-restricted'";fa="() is ongoing!";ha=".start";_.ia="6.25.0";_.ja="AUDIO";_.ka="AdaptationSet";_.ma="Already destroyed. No-op";_.na="Already released. No-op";
6
+ _.oa="Autoplay is not allowed due to browser policy.";_.pa="BANDWIDTH";_.qa="BASIC";sa="CHECKSUM";_.ta="CLOSED-CAPTIONS";_.ua="CODECS";va="Can not set volume to ";_.wa="Cannot retrieve buffer information due to platform limitations";_.xa="CastlabsPlayer";_.ya="Configuration is valid";za="Content-Length";Aa="Content-Type";_.Ea="Could not find configured DRM environment.";_.Fa="DRM environment '";Ga="DRM licenses loaded";Ha="DRMtoday";Ia="DRMtodayOnboard";_.Ja="DURATION";Ka="Destroying player";La="EXT-X-BYTERANGE";
7
+ _.Na="EXT-X-DATERANGE";_.Oa="EXT-X-DEFINE";_.Pa="EXT-X-DISCONTINUITY";_.Qa="EXT-X-DISCONTINUITY-SEQUENCE";Ra="EXT-X-ENDLIST";_.Sa="EXT-X-KEY";_.Ta="EXT-X-MAP";_.Ua="EXT-X-MEDIA";_.Va="EXT-X-MEDIA-SEQUENCE";Wa="EXT-X-PART-INF";Xa="EXT-X-PLAYLIST-TYPE";_.Ya="EXT-X-PRELOAD-HINT";_.Za="EXT-X-PROGRAM-DATE-TIME";$a="EXT-X-SERVER-CONTROL";_.ab="EXT-X-STREAM-INF";bb="EXT-X-TARGETDURATION";cb="Error while decoding string!";db="Error while fetching certificate!";_.eb="FairPlay Certificate URL is not defined";
8
+ _.fb="FairPlay License URL is not defined";_.gb="GROUP-ID";hb="HW_SECURE_ALL";ib="HW_SECURE_CRYPTO";jb="HW_SECURE_DECODE";kb="HeaderDrm";lb="Hide video element .";mb="Interstitial ";nb="Invalid track type: ";ob="InvalidStateError";pb="Key status for Key ID '";_.qb="LANGUAGE";rb="License verification failed: ";sb="Load interrupted while a player release is pending";_.tb="Loading player with configuration";_.ub="MaxHeight";_.vb="MaxWidth";wb="Missing media element";_.xb="NAME";yb="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";
9
+ zb="No event provided!";Bb="No items in the playlist";Cb="No sources provided!";Db="No track data attached to the event, unable to add track!";Eb="Not a persistent session.";_.Fb="Not supported";Gb="NotAllowedError";Hb="NotSupportedError";_.Ib="PLAYLIST";_.Jb="POST";_.Kb="PlayReady License URL is not defined";Lb="Player not ready yet.";_.Mb="Player sources";_.Nb="Player state change: ";_.Ob="Please make sure ";Pb="Preloading is not supported by this player.";_.Qb="QualityLevel";_.Rb="RESOLUTION";
10
+ _.Sb="Representation";_.Tb="SUBTITLES";_.Ub="SW_SECURE_CRYPTO";_.Vb="SW_SECURE_DECODE";Wb="Session is closed";Xb="Setting native ";Yb="Show video element .";Zb="Skipping Session creation. License for init data was already requested in Session: '";_.$b="SmoothStreamingMedia";_.ac="TYPE";bc="The index is not in the allowed range.";_.cc="URI";dc="Unable to translate ";_.ec="Unhandled/ignored event";_.fc="Unregistering listeners";gc="Unsupported keySystem";hc="Updating playout limit for interstitial";
11
+ ic="Using VTTCue polyfill from 3 argument TextTrackCue.";_.jc="VIDEO";_.kc="VOD";lc="Wait for preloading to finish";mc="WebkitEmeManager.MediaKeySession.load";_.nc="Widevine License URL is not defined";oc="Will create EME Manager: ";pc="X-AD-CREATIVE-SIGNALING";qc="X-ASSET-LIST";rc="X-ASSET-URI";sc="X-PLAYOUT-LIMIT";tc="X-RESTRICT";uc="X-RESUME-OFFSET";wc="X-TIMELINE-OCCUPIES";_.xc="ad-break-started";_.yc="ad-break-stopped";_.zc="ad-buffering";_.Ac="ad-clicked";_.Bc="ad-completed";_.Cc="ad-first-quartile";
12
+ Dc="ad-hls-asset-list-request";Ec="ad-hls-asset-list-response";Fc="ad-hls-resoled";_.Gc="ad-impression";_.Hc="ad-loaded";_.Ic="ad-midpoint";_.Jc="ad-paused";_.Kc="ad-progress";_.Lc="ad-resumed";_.Mc="ad-skipped";_.Nc="ad-started";_.Oc="ad-stopped";_.Pc="ad-third-quartile";_.Qc="addtrack";_.Rc="ads-timeline-changed";_.Sc="airplay-casting-ended";_.Tc="airplay-casting-started";_.Uc="airplay-status-changed";_.Vc="application";_.Wc="application/cea-608";_.Xc="application/dash+xml";Yc="application/mp4";
13
+ _.Zc='application/mp4; codecs\x3d"stpp"';_.$c='application/mp4; codecs\x3d"wvtt"';_.ad="application/ttml+xml";_.bd="application/vnd.ms-sstr+xml";cd="application/x-www-form-urlencoded";_.dd="audio";_.ed="audio/aac";_.fd="audio/ac3";_.gd="audio/eac3";_.hd="audio/mp4";id='audio/mp4;codecs\x3d"mp4a.40.2"';_.jd="audiobufferchanged";_.kd="audiotrackchanged";_.ld="autoplaynotallowed";_.md="bitratechanged";_.nd="boolean";_.od="bufferingended";_.qd="bufferingstarted";rd="canplay";sd="canplaythrough";
14
+ _.td="caption";_.ud="castingstarted";_.vd="caststatuschanged";_.wd="cdn-switch-success";_.xd="cenc";_.yd="center";zd="certificate-request";Ad="change";Bd="chrome";_.Cd="clpp-fill";Dd="clpp-hidden";Ed="clpp-mc-playlist";Fd="clpp-visible";Gd="clpp.PlayerFleet";_.Hd="clpp.cast.CastSender";Id="clpp.drm.HeaderDrm";Jd="clpp.drm.eme.AppleEmeManager";Kd="clpp.drm.eme.EmeFactory";Ld="clpp.native.Player";Md="clpp.plist.McPlaylist";Nd="clpp.utils.Platform";_.Od="codecs";_.Pd="column-reverse";_.Rd="com.adobe.primetime";
15
+ _.Sd="com.apple.fps";Td="com.apple.hls.interstitial";Ud="com.apple.quicktime.HLS";_.Vd="com.microsoft.playready";Wd="com.microsoft.playready.recommendation";_.Xd="com.widevine.alpha";_.Yd="config.drm.customData is not defined";_.Zd="content-steering-change";_.$d="content-steering-location-ban-update";ae="controls";_.be="cuechange";_.ce="decoder";_.de="destroy()";_.ee="disabled";_.fe="div";ge="drm.license.req.";he="drm.mediaKeys.end";ie="drm.mediaKeys.start";je="drm.onPlay.end";ke="drm.onPlay.start";
16
+ le="drm.sess.update.";_.me="drmexpirationupdate";ne="drmlicenserequested";oe="drmrenewalstarted";pe="drmsessioncreated";_.se="drmsessionpersisted";_.te="drmsessionupdate";ue="drmtoday";ve="durationchange";_.we="ec-3";xe="encrypted";_.ye="end";_.ze="ended";_.Ae="error";_.Be="estimatedThroughputKbps";_.Ce="forced";De="fullscreenElement";_.Ee="function";_.Fe="height";_.Ge="hidden";_.He="html";_.Ie="image";_.Je="internal-error";Ke="keystatuseschange";_.Le="left";Me="license-renewal";Ne="license-request";
17
+ _.Oe="line-left";_.Qe="line-right";_.Re="live-turned-static";_.Se="load";_.Te="loadeddata";_.Ue="loadedmetadata";Ve="loadstart";_.We="main";_.Xe="mdat";_.Ye="mdia";_.Ze="message";_.$e="metadata";_.af="mimeType";_.bf="minf";_.cf="moov";_.df="mpd-type-changed";_.ef="mpeg-dash-callback-event";_.ff="none";_.k="number";_.gf="object";_.hf="onBitrateChanged()";_.jf="onContentLoaded";_.kf="onPlayerError()";_.lf="onPlayerWillDestroy";_.mf="onPlayerWillRelease";_.nf="onStateChanged()";of="online-status-changed";
18
+ _.pf="optional";_.qf="org.w3.clearkey";_.rf="output-restricted";_.sf="pause";_.tf="persistent";_.uf="persistent-license";vf="picture-in-picture";_.wf="play";xf="player.afterLoad.end";yf="player.afterLoad.start";zf="player.appendLoad.end";Af="player.appendLoad.start";Bf="player.beforeLoad.end";Cf="player.beforeLoad.start";Df="player.load.end";Ef="player.load.start";Ff="player.setupPlaylist.end";Hf="player.setupPlaylist.start";_.Lf="playing";_.Mf="playlist-item-changed";_.Nf="playlist-modified";
19
+ Of="playlist.next.end";Pf="playlist.next.start";Qf="preload-aborted";Rf="preload-failed";Sf="preloaded";Tf="preloading";_.Uf="prevent";Vf="primary-content";_.Wf="progress";_.Xf="px";_.Yf="ratechange";Zf="released";_.$f="releasing";ag="removetrack";_.bg="required";_.cg="resize";_.dg="right";_.eg="sc-playlist-ended";_.fg="sc-playlist-item-changed";_.gg="sc-playlist-live-turned-static";_.hg="sc-playlist-timeline-changed";_.ig="seeked";_.jg="seeking";_.kg="showing";_.lg="simid-creative-started";
20
+ _.mg="simid-creative-stopped";_.ng="sinf";_.og="smooth";pg="stalled";_.qg="start";_.rg="statechanged";sg="status-pending";_.tg="stbl";_.ug="string";_.vg="stsd";_.wg="style";_.xg="subtitle";_.yg="subtitles-htmlcue";zg="temporary";_.Ag="text/vtt";_.Bg="text/xml";_.Cg="texttrackchanged";_.Dg="timeline-cue-added";_.Eg="timeline-cue-enter";_.Fg="timeline-cue-exit";_.Gg="timeline-cues-changed";_.Hg="timeupdate";_.Ig="tracksadded";_.Jg="trak";_.Kg="ttml-xml";Mg="unauthenticated";_.Ng="und";_.Pg="unknown";
21
+ Qg="update";_.Rg="urn:scte:scte35";_.Sg="urn:scte:scte35:2014";_.Tg="user-seeked";_.Ug="user-seeking";_.Vg="value";Wg="version";_.Xg="vertical-lr";_.Yg="vertical-rl";_.r="video";_.Zg="video/mp2t";_.$g="video/mp4";_.ah="videobufferchanged";_.bh="videotrackchanged";_.ch="vimond-response";dh="visibilitychange";_.eh="vtt-xml";_.fh="waiting";_.gh="waitingforkey";hh="webkit-org.w3.clearkey";ih="webkitkeyadded";jh="webkitkeyerror";kh="webkitkeymessage";lh="webkitneedkey";_.mh="width";nh="x-dt-csl-tracking-token";
22
+ oh="x-dt-follow-up-token";ph="x-dt-resp-code";_.qh="yospace-session-ended";_.rh="yospace-session-started";_.th=function(a){return function(){return _.sh[a].apply(this,arguments)}};uh=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};_.w=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:uh(a)}};_.vh=function(a){if(!(a instanceof Array)){a=_.w(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a};
23
+ _.x=function(a,b){a.prototype=wh(b.prototype);a.prototype.constructor=a;if(xh)xh(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c]};yh=function(){yh=function(){};zh.Symbol||(zh.Symbol=Ah)};Ch=function(a,b){this.a=a;Bh(this,"description",{configurable:!0,writable:!0,value:b})};
24
+ Eh=function(){yh();var a=zh.Symbol.iterator;a||(a=zh.Symbol.iterator=zh.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.Ee&&Bh(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return Dh(uh(this))}});Eh=function(){}};Dh=function(a){Eh();a={next:a};a[zh.Symbol.iterator]=function(){return this};return a};Fh=function(){this.w=!1;this.l=null;this.f=void 0;this.a=1;this.j=this.o=0;this.B=this.h=null};Gh=function(a){if(a.w)throw new TypeError("Generator is already running");a.w=!0};
25
+ Hh=function(a,b){a.h={Zh:b,Ci:!0};a.a=a.o||a.j};_.y=function(a,b,c){a.a=c;return{value:b}};_.C=function(a){a.a=0};_.D=function(a,b,c){a.o=b;void 0!=c&&(a.j=c)};_.Ih=function(a){a.o=0;a.j=2};_.Jh=function(a,b){a.a=b;a.o=0};_.H=function(a){a.o=0;var b=a.h.Zh;a.h=null;return b};_.Kh=function(a){a.B=[a.h];a.o=0;a.j=0};_.Lh=function(a){var b=a.B.splice(0)[0];(b=a.h=a.h||b)?b.Ci?a.a=a.o||a.j:void 0!=b.F&&a.j<b.F?(a.a=b.F,a.h=null):a.a=a.j:a.a=0};Mh=function(a){this.a=new Fh;this.f=a};
26
+ Ph=function(a,b){Gh(a.a);var c=a.a.l;if(c)return Nh(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return Oh(a)};Nh=function(a,b,c,d){try{var e=b.call(a.a.l,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.a.w=!1,e;var f=e.value}catch(g){return a.a.l=null,Hh(a.a,g),Oh(a)}a.a.l=null;d.call(a.a,f);return Oh(a)};
27
+ Oh=function(a){for(;a.a.a;)try{var b=a.f(a.a);if(b)return a.a.w=!1,{value:b.value,done:!1}}catch(c){a.a.f=void 0,Hh(a.a,c)}a.a.w=!1;if(a.a.h){b=a.a.h;a.a.h=null;if(b.Ci)throw b.Zh;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
28
+ Qh=function(a){this.next=function(b){Gh(a.a);a.a.l?b=Nh(a,a.a.l.next,b,a.a.A):(a.a.A(b),b=Oh(a));return b};this["throw"]=function(b){Gh(a.a);a.a.l?b=Nh(a,a.a.l["throw"],b,a.a.A):(Hh(a.a,b),b=Oh(a));return b};this["return"]=function(b){return Ph(a,b)};Eh();this[Symbol.iterator]=function(){return this}};_.Rh=function(a,b){var c=new Qh(new Mh(b));xh&&xh(c,a.prototype);return c};
29
+ Sh=function(a,b){if(b){for(var c=zh,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&&Bh(c,d,{configurable:!0,writable:!0,value:f})}};Th=function(a){function b(d){return a.next(d)}function c(d){return a["throw"](d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})};_.I=function(a){return Th(new Qh(new Mh(a)))};
30
+ _.J=function(a,b){var c=a.split("."),d=Uh;c[0]in d||"undefined"==typeof d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d[e]&&d[e]!==Object.prototype[e]?d=d[e]:d=d[e]={}:d[e]=b};Xh=function(a){return a&&0<=Vh[a]?Vh[a]:Wh};$h=function(a){if(!a)return _.Yh("clpp.log",dc+a+ca),-1;var b=Zh[a.toUpperCase()];return void 0===b?(_.Yh("clpp.log",dc+a+ca),-1):b};_.K=function(a){(this.tag=a)&&void 0===Vh[a]&&(Vh[a]=-1)};_.bi=function(a){ai.info.apply(ai,arguments)};
31
+ _.ci=function(a){ai.debug.apply(ai,arguments)};_.Yh=function(a){ai.warn.apply(ai,arguments)};_.di=function(a){ai.error.apply(ai,arguments)};ei=function(a,b){this.ob=a;this.sourceIndex=b};_.hi=function(a){if(a){var b=a.a();b in _.fi?_.gi.warn("Player-Factory '"+b+"' already registered"):(_.fi[b]=a,_.gi.info("Registered Player-Factory: '"+b+"'"))}};ii=function(a){return Object.values(_.fi).find(a)||null};_.ji=function(a){this.f=a;this.a=null};
32
+ li=function(a,b,c){function d(){e&&a.f()}a.stop();var e=!0,f=null;a.a=function(){c?clearInterval(f):clearTimeout(f);e=!1};f=c?setInterval(d,1E3*b):setTimeout(d,1E3*b);return a};_.mi=function(a){this.f=a;this.a=null};ni=function(a){return 0>=a?Promise.resolve():new Promise(function(b){setTimeout(function(){b()},1E3*a)})};oi=function(){this.Oc=null;this.f=[];this.h=[];this.Ca=new _.K(Gd);this.a=null;this.j=!1};pi=function(a){return[a.Oc].concat(_.vh(a.f)).filter(function(b){return null!=b})};
33
+ ri=function(a,b){var c;_.I(function(d){c=function(){return Promise.all(a.f.filter(function(e){return null!=e.getLoadedSource()}).map(b))};return _.y(d,qi(a,c),0)})};si=function(a,b){var c;return _.I(function(d){c=function(){return Promise.all(pi(a).map(b))};return _.y(d,qi(a,c),0)})};qi=function(a,b){return _.I(function(c){if(1==c.a)return a.a?_.y(c,a.a,2):c.F(2);a.a=b().then(function(){a.a=null});_.C(c)})};_.ti=function(){this.a={}};ui=function(a,b,c,d){this.f=a;this.hd=b;this.a=c;this.jo=!!d};
34
+ _.L=function(a,b){if(b)for(var c in b)this[c]=b[c];this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.f=this.a=!1};vi=function(a){this.a=new _.ti;this.f=a};_.wi=function(){this.a=new _.ti};
35
+ xi=function(a,b,c){function d(h){for(var l=_.w(e),m=l.next();!m.done;m=l.next())a.off(b,m.value,d);c(h)}for(var e=[xe,"msneedkey",lh,"needkey"],f=_.w(e),g=f.next();!g.done;g=f.next())a.on(b,g.value,d)};_.zi=function(a){var b=a.a,c=[],d;for(d in b.a)c.push.apply(c,b.a[d]);for(b=0;b<c.length;++b)yi(c[b]);a.a.clear()};Ai=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};yi=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
36
+ Bi=function(a){this.m=a;this.l=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.j=new _.wi;this.f=new Set;this.a=new Set;this.h=null;this.g=new _.K("clpp.native.Metadata")};Di=function(a,b){a.j.on(b,_.Qc,function(c){c=c.track;c.kind===_.$e&&Ci(a,c)})};
37
+ Ci=function(a,b){a.g.debug("onMetadataTrackAdded_()");b.mode=_.Ge;var c=!b.cues||0===b.cues.length;if(a.m.isLive()||!c){var d=b.cues;c=Ei(d);Fi(c);a.a=Gi(c,a.l);0<a.a.size&&(Hi(a,a.a),a.m.trigger(new _.L(_.Gg)));a.j.on(b,_.be,function(){for(var e=a.m.getPosition(),f=_.w(a.a),g=f.next();!g.done;g=f.next()){var h,l=a;g=g.value;if(Infinity===g.endTime){if(h=!l.f.has(g)){h=g.startTime;var m=h+.5;h=h<=e&&e<=m}h&&(l.f.add(g),l.m.trigger(new _.L(_.Eg,{detail:g})))}else h=g.startTime<=e&&e<=g.endTime,!h&&
38
+ l.f.has(g)?(l.f["delete"](g),l.m.trigger(new _.L(_.Fg,{detail:g}))):h&&!l.f.has(g)&&(l.f.add(g),l.m.trigger(new _.L(_.Eg,{detail:g})))}});a.m.isLive()&&(a.h=setInterval(function(){if(b.cues){var e=a.m.getSeekRange().start;for(var f=[],g=_.w(b.cues),h=g.next();!h.done;h=g.next())h=h.value,h.endTime<e&&f.push(h);Ii(a,b,f);0<f.length&&a.g.debug("Evicted "+f.length+" old cues.");g=_.w(a.a);for(h=g.next();!h.done;h=g.next())h=h.value,h.endTime<e&&a.a["delete"](h);e=0<f.length}else e=!1;Ji(a,b);f=Ei(d);
39
+ var l=Gi(f,a.l);g=new Set;h=!1;l=_.w(l);for(var m=l.next();!m.done;m=l.next()){m=m.value;var n=Ki(a,m);n?(m.customAttributes&&(n.customAttributes=_.N.ua(n.customAttributes||{},m.customAttributes)||void 0),h=!0):(a.a.add(m),g.add(m))}h=0<g.size||h;Fi(f);(e||h)&&a.m.trigger(new _.L(_.Gg));Hi(a,g)},6E3))}};Hi=function(a,b){for(var c=_.w(b),d=c.next();!d.done;d=c.next())a.m.trigger(new _.L(_.Dg,{detail:d.value}))};
40
+ Ki=function(a,b){return Array.from(a.a.values()).find(function(c){return b.startTime===c.startTime&&b.endTime===c.endTime})||null};Ji=function(a,b){if(b.cues){var c=Li(b.cues).filter(function(l){return l.type===Ud}),d=c.filter(function(l){return l.Hg}),e=c.filter(function(l){return!l.Hg});c=[];e=_.w(e);for(var f=e.next();!f.done;f=e.next()){f=f.value;for(var g=_.w(d),h=g.next();!h.done;h=g.next())h=h.value,Mi(f,h)&&(c.push(f),h.Wh=f.startTime)}Ii(a,b,c);0<c.length&&a.g.debug("Removed "+c.length+" duplicated cues.")}};
41
+ Ii=function(a,b,c){c=_.w(c);for(var d=c.next();!d.done;d=c.next()){d=d.value;try{b.removeCue(d)}catch(e){a.g.debug("Failed to remove cue",d,e)}}};Mi=function(a,b){var c=a.endTime-a.startTime,d=b.endTime-b.startTime,e=a.Wh||a.startTime,f=b.Wh||b.startTime;return(Infinity===c&&Infinity===d||.01>Math.abs(c-d))&&.5>Math.abs(e-f)&&a.value.key===b.value.key&&a.value.data===b.value.data};
42
+ Pi=function(a){var b=[],c={};a=_.w(a);for(var d=a.next();!d.done;c={Gd:c.Gd},d=a.next())c.Gd=d.value,(d=b.find(function(e){return function(f){var g=e.Gd;return f.startTime===g.startTime&&f.endTime===g.endTime}}(c)))?Ni(c.Gd,d):(d=Oi(c.Gd),b.push(d));return b};Oi=function(a){var b=a.startTime,c=a.endTime;b={schemeIdUri:"",value:"",startTime:b,endTime:c,id:"T"+b.toFixed(2)+"-"+c.toFixed(2),type:_.Qi,eventElement:null};Ni(a,b);return b};
43
+ Ni=function(a,b){if(a.key.startsWith("X-"))b.customAttributes||(b.customAttributes={}),b.customAttributes[a.key]=a.value,"X-CUSTOM-ID"===a.key&&(b.id=a.value);else if("SCTE35-OUT"===a.key||"SCTE35-IN"===a.key)b.schemeIdUri=_.Sg,b.type=_.Ri};Fi=function(a){a.forEach(function(b){b.Hg=!0})};Ei=function(a){return Li(a).filter(function(b){return b.type===Ud&&!b.Hg})};Li=function(a){var b=[];a=_.w(a);for(var c=a.next();!c.done;c=a.next())b.push(c.value);return b};
44
+ Gi=function(a,b){var c=a.map(function(d){return{startTime:d.startTime,endTime:d.endTime,key:d.value.key,value:d.value.data,Di:!1}});c=Si(c);b&&(c=Ti(c));return new Set(Pi(c))};Si=function(a){var b=new Set(a),c=new Set(a.filter(function(d){return"SCTE35-OUT"===d.key}).map(Ui));a.filter(function(d){return"SCTE35-IN"===d.key}).forEach(function(d){c.has(Ui(d))||(d.Di=!0)});return Array.from(b.values())};Ti=function(a){a.forEach(function(b){b.Di&&(b.endTime=b.startTime,b.startTime=0)});return a};
45
+ Ui=function(a){return a.startTime+"-"+a.endTime};_.Vi=function(a){return Array.isArray(a)?a:[a]};Wi=function(a,b){return a===b?!0:a.length===b.length&&a.every(function(c,d){return c===b[d]})};Yi=function(a,b,c){if(null==a&&null==b)return!0;if(null==a||null==b)return!1;a=c?a.map(c):a;b=c?b.map(c):b;return Xi(a,b)&&Xi(b,a)};Xi=function(a,b){var c=new Set(a);return b.every(function(d){return c.has(d)})};
46
+ _.Zi=function(a,b){b=void 0===b?{}:b;if(b.Rh){for(var c=[],d={},e=_.w(a),f=e.next();!f.done;d={Le:d.Le},f=e.next())d.Le=f.value,c.some(function(g){return function(h){return b.Rh(g.Le,h)}}(d))||c.push(d.Le);return c}return Array.from((new Set(a)).values())};$i=function(a,b){var c=new Set(a),d=new Set(b);return{ko:a.filter(function(e){return!d.has(e)}),Dp:a.filter(function(e){return d.has(e)}),Rj:b.filter(function(e){return!c.has(e)})}};
47
+ _.gj=function(a,b,c,d){d=void 0===d?_.aj:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.bj;this.writingMode=_.cj;this.lineInterpretation=_.dj;this.line=null;this.lineAlign=_.ej;this.direction=fj;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
48
+ _.jj=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.hj;this.scroll=ij;this.cssClassList=[];this.writingMode=this.displayAlign=null};kj=function(a){this.m=a;this.l=a.getTextDisplayer();this.f=this.h=null;this.a=new _.wi;this.j=!1;this.g=new _.K("clpp.native.CueHandler")};
49
+ lj=function(a,b){var c=b.track;c.kind!==_.$e&&(c.mode===_.kg&&(c.mode=_.Ge),a.a.on(c,_.be,function(d){d=d.target||d.srcElement;d.mode=_.Ge;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.l.append(d,[]))}))};_.O=function(a,b,c,d,e){var f=Error.call(this,mj(a,b,c,d));this.message=f.message;"stack"in f&&(this.stack=f.stack);this.severity=a;this.category=b;this.code=c;this.data=!d||_.N.ha(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.O)};
50
+ mj=function(a,b,c,d){a=(a===_.P?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.N.ha(d))a+=": "+d;else if(null!=d)if(null!=d.message)a+=": "+d.message,delete d.message;else try{a+=": "+JSON.stringify(d)}catch(e){}return a};_.nj=function(a,b){var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=b};
51
+ oj=function(a,b){var c=b||Wi,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,_.vh(h))}};_.pj=function(a){return null!=a};qj=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}throw new _.nj("No non-null, non-undefined value found");};
52
+ rj=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];for(c=0;c<b.length;c++){var d=b[c];if(null!==d&&void 0!==d)return d}};_.sj=function(a){var b;a instanceof _.sj?(tj(this,a.Gb),this.Tc=a.Tc,this.bb=a.bb,uj(this,a.Cd),this.Pa=a.Pa,_.vj(this,wj(a.a)),this.Ic=a.Ic):a&&(b=String(a).match(xj))?(tj(this,b[1]||"",!0),this.Tc=yj(b[2]||""),this.bb=yj(b[3]||"",!0),uj(this,b[4]),this.Pa=yj(b[5]||"",!0),_.vj(this,b[6]||"",!0),this.Ic=yj(b[7]||"")):this.a=new _.zj(null)};
53
+ tj=function(a,b,c){a.Gb=c?yj(b,!0):b;a.Gb&&(a.Gb=a.Gb.replace(/:$/,""))};uj=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Cd=b}else a.Cd=null};_.vj=function(a,b,c){b instanceof _.zj?a.a=b:(c||(b=Aj(b,Bj)),a.a=new _.zj(b))};yj=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""};Aj=function(a,b,c){return typeof a===_.ug?(a=encodeURI(a).replace(b,Cj),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
54
+ Cj=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};_.zj=function(a){this.f=a||null};wj=function(a){var b=new _.zj;b.f=a.f;if(a.a){var c={},d;for(d in a.a)c[d]=a.a[d].concat();b.a=c;b.h=a.h}return b};Ej=function(a,b){for(var c=_.w(Dj[a]),d=c.next();!d.done;d=c.next()){d=d.value;for(var e=_.w(b),f=e.next();!f.done;f=e.next())if(f=f.value,d.test(f.trim()))return f.trim()}return a===_.Q?"":null};
55
+ _.Gj=function(a,b){for(var c=Fj[a],d=0;d<c.length;d++)for(var e=0;e<b.length;e++)if(c[d].test(b[e].trim()))return b[e].trim();return a===_.Q?"":null};_.Jj=function(a,b,c){return a.map(function(d){d=_.Hj(d)||"";return(d=_.Ij[b][d])?d:b===_.Q?c&&"vtt"!==c?Yc:_.Ag:null}).filter(Boolean)[0]||null};_.Hj=function(a){a=(new _.sj(a)).Pa.split(".");return 1>=a.length?null:a.pop()};_.Kj=function(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d};
56
+ _.S=function(a,b,c,d){d=void 0===d?{}:d;a=a.getAttribute(b);if(!a&&d.required)throw new _.O(_.P,4,4023,"Required attribute missing: "+b);return a?a.value:c||null};_.Lj=function(a,b){return _.S(a,b,void 0,{required:!0})};_.Mj=function(a,b){this.name=a;this.value=b};
57
+ _.Nj=function(a,b,c,d,e,f,g,h,l,m,n,p,q,t,v,z,A){l=void 0===l?!1:l;m=void 0===m?null:m;n=void 0===n?null:n;p=void 0===p?null:p;q=void 0===q?null:q;t=void 0===t?[]:t;v=void 0===v?null:v;z=void 0===z?"":z;this.position=a;this.startTime=b;this.endTime=c;this.Ja=g;this.eb=d;this.Da=e;this.pa=f;this.keyInfo=(void 0===h?null:h)||null;this.sd=_.N.R(l)?!1:!!l;this.timescale=m;this.horizontalTiles=n;this.verticalTiles=p;this.durationPerTile=q;this.a=t||[];this.h=!1;this.initSegment=v;this.ye=z;this.Ta=A};
58
+ _.Oj=function(a,b,c,d,e,f,g,h,l,m,n,p,q,t,v){t=void 0===t?[]:t;_.Nj.call(this,a,b,c,d,e,f,g,void 0===h?null:h,void 0===l?!1:l,void 0===m?null:m,void 0===n?null:n,void 0===p?null:p,void 0===q?null:q,t,void 0===v?null:v);this.oa=0};_.Qj=function(a,b){a=_.Pj(a);b=_.Pj(b);return a.split("-")[0]===b.split("-")[0]};_.Pj=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Rj.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};Sj=function(a){if(null!==a&&void 0!==a)return Number(a)};
59
+ Tj=function(a){return a.reduce(function(b,c){return b+c},0)};_.Uj=function(a){if(typeof a!==_.ug)return null;var b=a.trim().match(/^(\d+)x(\d+)$/);if(!b)return null;a=parseInt(b[1],10);b=parseInt(b[2],10);return 0>=a||0>=b?null:{je:a,Ge:b,Go:a*b}};_.Vj=function(a){this.f=a;this.a=0};_.Wj=function(a,b){b.lastIndex=a.a;var c=b.exec(a.f);c=null==c?null:{position:c.index,length:c[0].length,results:c};if(a.a===a.f.length||null===c||c.position!==a.a)return null;a.a+=c.length;return c.results};
60
+ _.Xj=function(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new _.O(_.P,4,4016,{invalidTag:b});var d=c[1],e=c[2];c=[];var f;if(e){e=new _.Vj(e);var g;(g=_.Wj(e,/^([^,=]+)(?:,|$)/g))&&g[1]&&(f=g[1].trim());for(var h=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=_.Wj(e,h);)c.push(new _.Mj(g[1],g[2]||g[3]||""))}return new _.Kj(a,d,c,f)};_.Yj=function(a,b){for(var c=_.w(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};Zj=function(){};
61
+ dk=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!==b.byteLength)return!1;if(ak(a)===ak(b)&&(a.byteOffset||0)===(b.byteOffset||0))return!0;for(var c=_.bk(a),d=_.bk(b),e=_.w(ck(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!==d[f])return!1;return!0};_.bk=function(a,b,c){c=void 0===c?Infinity:c;return ek(a,void 0===b?0:b,c,Uint8Array)};fk=function(a,b,c){c=void 0===c?Infinity:c;return ek(a,void 0===b?0:b,c,Uint16Array)};
62
+ gk=function(a,b,c){c=void 0===c?Infinity:c;return ek(a,void 0===b?0:b,c,Uint32Array)};_.hk=function(a,b,c){c=void 0===c?Infinity:c;return ek(a,void 0===b?0:b,c,Int32Array)};_.ik=function(a,b,c){c=void 0===c?Infinity:c;return ek(a,void 0===b?0:b,c,DataView)};jk=function(a){return a instanceof ArrayBuffer?a:0===a.byteOffset&&a.byteLength===a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
63
+ ek=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=ak(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)};ak=function(a){return a instanceof ArrayBuffer?a:a.buffer};_.lk=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0,fatalStatusCodes:_.vh(kk).concat()}};
64
+ mk=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||_.vh(kk).concat()};nk=function(a){var b={};a.forEach(function(c,d){b[d.trim()]=c});return b};
65
+ _.pk=function(a,b){_.N.ha(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.ok,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||
66
+ [],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:_.vh(kk).concat(),requestStartTimestamp:null};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&
67
+ mk(c,b);return c};_.tk=function(a,b,c,d,e,f,g,h){a={uri:e||d,data:b,headers:a,status:c,timeMs:g,responseStartMs:h,request:f};if(qk(c))return rk(a);throw sk(a);};qk=function(a){return 200<=a&&299>=a&&202!==a};rk=function(a){return{uri:a.uri,data:a.data||new ArrayBuffer(0),headers:a.headers,status:a.status,fromCache:!!a.headers["x-shaka-from-cache"],timeMs:a.timeMs,responseStartMs:a.responseStartMs,request:a.request}};
68
+ sk=function(a){a=rk(a);try{var b=_.T.ce(a.data,!0)}catch(d){b=null}_.ci("HTTP error text:",b);var c=a.request;return new _.O(0<=(c?c.fatalStatusCodes||[]:[]).indexOf(a.status)?_.P:1,1,1001,{url:a.uri,status:a.status,responseText:b,headers:a.headers,request:a.request,response:a})};uk=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};
69
+ vk=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};wk=function(a,b,c){if(0>=a)return Promise.resolve();var d=8*c/a-b/1E3;return 0<d?new Promise(function(e){setTimeout(e,1E3*d)}):Promise.resolve()};
70
+ _.xk=function(){this.nj=this.Cf=this.done=!1;this.error=this.value=null;var a,b,c=new Promise(function(d,e){a=function(f){this.done=this.Cf=!0;this.value=f;d(f)};b=function(f){this.done=this.nj=!0;this.error=f;e(f)}});c.Cf=!1;c.done=!1;c.nj=!1;c.value=null;c.error=null;c.resolve=a;c.reject=b;return c};_.yk=function(a,b){this.T=a;this.A=b;this.a=!1};zk=function(a,b){a.T.then(function(){return b(!0)},function(){return b(!1)});return a};_.Ak=function(){this.a=[]};
71
+ _.Bk=function(a,b){a.a.push(zk(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};_.Kk=function(){this.f=[];this.h=[];this.j=[];this.w=!1;this.o=new _.Ak;this.a={};this.headers=new Map;this.l=0;this.a.data=Ek;!window.fetch||!window.AbortController||_.Fk(6)||_.Gk()&&68<_.Hk().browserVersion.major?(this.a.http=Ik,this.a.https=Ik):(this.a.http=Jk,this.a.https=Jk)};Lk=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return c=_.T,_.y(e,a.fetch(b),2);d=e.f;return e["return"](c.Pi(c.ea(d.data)))})};
72
+ Mk=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.y(e,Lk(a,b),2);c=e.f;try{d=JSON.parse(c);if(null==d||typeof d!==_.gf)throw Error("Not an object");return e["return"](d)}catch(f){throw new _.nj("Failed to parse JSON response","json-failed");}})};
73
+ Nk=function(a,b,c,d){d=void 0===d?"HEAD":d;var e,f;return _.I(function(g){switch(g.a){case 1:if(!navigator.onLine)return g["return"](!1);if(!b){g.F(2);break}e=_.pk(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.D(g,4);return _.y(g,a.fetch(e).T,6);case 6:_.Jh(g,2);break;case 4:if(f=_.H(g),1002===f.code||1003===f.code)return g["return"](!1);case 2:return g["return"](!0)}})};
74
+ Ok=function(a,b){for(var c=_.w(a.headers),d=c.next();!d.done;d=c.next()){var e=_.w(d.value);d=e.next().value;e=e.next().value;b.headers[d]||(b.headers[d]=e)}};Pk=function(a,b){var c=new _.sj(b.uris[b.uriIndex]),d=c.Gb;d||(d=location.protocol,d=d.slice(0,-1),tj(c,d),b.uris[b.uriIndex]=c.toString());var e=a.a[d];if(!e)throw new _.O(_.P,1,1E3,{url:c.toString()});return function(f){return e(f)}};
75
+ _.Qk=function(a,b){this.id=a;this.type=b;this.roles=[];this.frameRate=this.label=this.originalLanguage=this.language=this.kind=null;this.trickPlay=!1;this.channelsCount=this.src=this.mimeType=null;this.spatialAudio=!1;this.renditions=[];this.accessibility=[]};_.Rk=function(a){return a&&a!==_.Ng?a:null};
76
+ Vk=function(a){if(!a)throw new _.O(_.P,3,3101,nb+a);if(!_.N.ha(a))throw new _.O(_.P,3,3101,nb+a+". Track type must be a string!");switch(a.toLowerCase()){case _.Sk:return _.Sk;case _.V:return _.V;case _.Tk:return _.Tk;case Uk:return Uk}throw new _.O(_.P,3,3101,"Unknown track type: "+a+".");};
77
+ Xk=function(a,b){a=Vk(a);var c=_.Rk(b.kind),d=b.id;d||(d=String(_.Wk++));d=new _.Qk(d,c===_.$e?Uk:a);d.kind=c;d.label=_.Rk(b.label);d.language=_.Rk(b.language);d.originalLanguage=b.originalLanguage||d.language;return d};Yk=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};_.Zk=function(a,b){this.track=b;this.id=a;this.originalId=this.codec=this.Nd=this.bandwidth=this.height=this.width=null;this.a=!1};
78
+ _.$k=function(a){this.j=a;this.scheme=null;var b=document.createElement("a"),c=a.match(/^(.*:)(\/\/(.*))$/),d=!1;if(c){if(this.scheme=c[1],b.href=c[2],":"===b.protocol||""===b.host&&""===b.pathname)b.href="//dummy.com/"+c[3],d=!0}else{b.href=a;if(":"===b.protocol||""===b.host&&""===b.pathname)b.href="//dummy.com/"+a.match(/\/?\/?(.*)/)[1],d=!0;this.scheme=b.protocol}""===this.scheme&&(this.scheme=window.location.protocol);this.a=d?"":b.hostname;this.port=b.port;this.path=b.pathname;_.T.startsWith(this.path,
79
+ "/")||(this.path="/"+this.path);this.f=b.search;this.h=b.hash};_.al=function(a){return a.scheme+"//"+(a.a+(a.port?":"+a.port:"")+a.path+a.h+a.f)};_.bl=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)},""):""};
80
+ _.dl=function(a){var b={};a=a||"";a=a.substring(a.indexOf("?")+1);a=_.w(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};el=function(a,b){return a.startsWith("http:://")||a.startsWith("https:://")?a:(new URL(a,b)).toString()};
81
+ fl=function(a){this.f=a;this.g=new _.K("clpp.native.hls.HlsMetadataParser");this.a=oj(this.h.bind(this),function(b,c){return b[0]===c[0]&&b[1].enableHlsVideoTrackInfo===c[1].enableHlsVideoTrackInfo&&b[1].enableMetadata===c[1].enableMetadata})};
82
+ il=function(a,b,c){var d,e,f,g,h;return _.I(function(l){if(1==l.a)return _.y(l,gl(a,b,c),2);d=l.f;e=d.mimeType;f=d.renditions;g=new _.Qk("dummy",_.Tk);h=f.map(function(m,n){var p=new _.Zk("R"+n,g);p.bandwidth=m.bandwidth;p.Nd=m.Nd;p.codec=m.codec;p.width=m.width;p.height=m.height;return p});hl(h);return l["return"]({renditions:h,mimeType:e||void 0})})};
83
+ kl=function(a){a=a.split("\n").filter(function(c){return c.trim().startsWith("#EXT-X-MEDIA:")}).map(function(c){return jl(c)});var b=new Map;a.forEach(function(c){if(c.type&&c.name){var d=c.type+":"+c.name;if(b.has(d))throw Error("#EXT-X-MEDIA:NAME attributes are not unique. It is impossible to map HLS metadata to Safari data structures.");b.set(d,c)}});return b};
84
+ jl=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.Xj(0,a);a=b(_.ac);a=null!=a?{AUDIO:_.V,VIDEO:_.Tk,SUBTITLES:_.Sk}[a]:void 0;return{type:a,groupId:b(_.gb),name:b(_.xb),language:b(_.qb),jp:b("AUTOSELECT"),"default":b("DEFAULT"),up:b("FORCED"),xh:b("CHARACTERISTICS"),uri:b(_.cc)}};hl=function(a){var b=new Set;a.forEach(function(c){b.add(c.width+"x"+c.height)});if(b.size<a.length)throw Error("Playlist contains multiple renditions with the same resolution.");};
85
+ ll=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return c=_.pk(b),_.y(e,Lk(a.f,c),2);d=e.f;return e["return"](d)})};gl=function(a,b,c){var d,e,f,g;return _.I(function(h){if(1==h.a)return d=ml(b),e=nl(b,c),f=d[0]?d[0].codec:null,_.y(h,ol(a,e,f),2);g=h.f;return h["return"]({mimeType:g,renditions:d})})};ol=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return b&&c?_.y(f,ll(a,b),2):f["return"](null);d=f.f;e=[pl(d,b),ql(d,b)].filter(Boolean);return f["return"](_.Jj(e,_.r,c))})};
86
+ ml=function(a){return a.split("\n").filter(function(b){return b.trim().startsWith("#EXT-X-STREAM-INF:")}).map(function(b){var c=_.Xj(0,b);if(c.getAttribute(_.jc))throw Error("Playlist contains alternative video streams.");var d=_.S(c,_.Rb);b=d?Number(d.split("x")[0]):null;d=d?Number(d.split("x")[1]):null;var e=_.S(c,_.pa);e=e?Number(e):null;var f=_.S(c,"AVERAGE-BANDWIDTH");f=f?Number(f):null;c=_.S(c,_.ua);c=_.Gj(_.r,c?c.split(","):[]);return{bandwidth:e,Nd:f,codec:c,width:b,height:d,mimeType:null}})};
87
+ nl=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?el(c,b):null};pl=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?el(c,b):null};ql=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.S(_.Xj(0,c),_.cc))?el(c,b):null:null};_.sl=function(a,b,c){for(var d=_.w(_.rl),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};
88
+ _.tl=function(a){a=_.rl.indexOf(a);0<=a&&_.rl.splice(a,1)};_.ul=function(){};xl=function(a,b){var c=vl;wl.set(a.toLowerCase().split(";")[0]+"-"+c,{priority:c,plugin:b})};_.Bl=function(a,b){for(var c=_.w([yl,zl,Al,vl]),d=c.next();!d.done;d=c.next())if(d=wl.get(a.toLowerCase().split(";")[0]+"-"+d.value)){var e=d.plugin(),f=e.isSupported(a,b);e.destroy();if(f)return d.plugin}return null};_.Cl=function(a,b){var c=a;b&&(c+=';codecs\x3d"'+b+'"');return c.replace(/\s/g,"")};_.Dl=function(a){return a.split(";")[0]};
89
+ _.El=function(a){a=a.split(/\s*;\s*/);a.shift();return(a=a.find(function(b){return b.startsWith("codecs\x3d")}))?a.split("\x3d")[1].replace(/^"|"$/g,"").split(/\s*,\s*/).join(","):""};Fl=function(){};_.Gl=function(){return!!navigator.userAgent.match(/Edge?\//)};_.Fk=function(a){return _.Hl("Tizen"+(a?" "+String(a):""))};_.Gk=function(){return _.Hl("Web0S")};_.Jl=function(){return _.Gk()&&79===_.Il().major};_.Kl=function(){return _.Hl("CrKey")};
90
+ _.Ll=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.Fk()};_.Ml=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.Ll()&&1<navigator.maxTouchPoints};_.Nl=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};_.Hl=function(a){return(navigator.userAgent||"").includes(a)};
91
+ Ql=function(){if(Ol)return Ol;Pl||(Pl=new _.mi(function(){Ol=null}));(Ol=document.querySelector(_.r)||document.querySelector(_.dd))||(Ol=document.createElement(_.r));Pl.fa(1);return Ol};Sl=function(a,b){try{return parseInt(b,10)}catch(c){Rl.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
92
+ Tl=function(a){var b={major:-1,name:_.Pg};if(!a)return b;var c=a.replace(/_/g,".");b.name=c;c=c.split(".");1<=c.length&&(b.major=Sl(a,c[0]));2<=c.length&&(b.minor=Sl(a,c[1]));3<=c.length&&(b.patch=Sl(a,c[2]));4<=c.length&&(b.build=Sl(a,c[3]));return b};Ul=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};
93
+ dm=function(){var a=Vl();if(!a)return Wl;var b=a.match(/^.+?(?=\))/);if(!b)return Wl;b=b[0];if(Ul(b,["iphone","ipad"]))return Xl;if(Ul(b,["android"]))return Yl;if(Ul(b,["macintosh"]))return Zl;if(Ul(b,["windows nt"]))return $l;if(Ul(b,["tizen"]))return am;if(Ul(b,["web0s"]))return bm;if(Ul(b,["linux"]))return cm;Rl.warn("Unable to identify OS from user agent: "+a);return Wl};
94
+ _.Il=function(){var a=Vl(),b=["ie","edge","opera","firefox","safari",Bd];var c=dm();for(var d=em[c],e=0,f=b.length;e<f;e++)if(c=d[b[e]]&&a.match(d[b[e]]))return Tl(c[1]);return Tl("")};Vl=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
95
+ _.Hk=function(){var a=dm();var b=dm();var c=em[b];if(c){c=Vl().match(c.os_version)[1];c=Tl(c);if(b===$l)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=Tl("");a:{c=Vl();var d=["ie","edge","opera","firefox","safari",Bd],e=dm();e=em[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=fm}return{os:a,osVersion:b,browser:c,browserVersion:_.Il()}};
96
+ gm=function(){this.g=new _.K("clpp.native.TrackManager");this.m=null;this.f=new _.wi;this.h=[];this.B=0;this.o={};this.C=[];this.a=new Map;this.w=null;this.l=new Map;this.A=!0;this.J=this.Cg.bind(this,_.Sk);this.L=this.Eg.bind(this,_.Sk);this.K=this.Dg.bind(this,_.Sk);this.M=this.Cg.bind(this,_.Tk);this.U=this.Eg.bind(this,_.Tk);this.P=this.Dg.bind(this,_.Tk);this.G=this.Cg.bind(this,_.V);this.I=this.Eg.bind(this,_.V);this.H=this.Dg.bind(this,_.V);this.j=null};
97
+ im=function(a,b){var c,d,e,f,g,h,l,m;return _.I(function(n){if(1==n.a){c=a.m.getConfiguration();d=_.sl(c,b.mimeType,_.Ag);if(!d)return a.g.warn("Track MIME type is not supported",b),n["return"]();e=_.pk(b.url);return _.y(n,a.m.getNetworkEngine().fetch(e).T,2)}(f=n.f)&&f.data&&(g="External_"+a.B++,a.o[g]=b,h=d.a(_.bk(f.data)),l=URL.createObjectURL(new Blob([h])),m={url:l,kind:b.kind,language:b.language,label:b.label,mimeType:_.Ag},hm(a,m,g));_.C(n)})};km=function(a,b,c){return jm(a)&&b===_.Tk&&!!c.enableHlsVideoTrackInfo};
98
+ lm=function(a,b,c){return jm(a)&&(b===_.V||b===_.Sk)&&!!c.enableMetadata};jm=function(a){a=a.m.getLoadedSource();return!(!a||a.type!==_.mm&&!a.url.endsWith(".m3u8"))&&_.Ll()};nm=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a)return(d=a.m.getLoadedSource())&&a.j?_.y(f,a.j.a(d.url,c),2):f["return"]();e=f.f;e.mimeType&&(b.mimeType=e.mimeType);e.renditions&&0<e.renditions.length&&(b.renditions=e.renditions,b.renditions.forEach(function(g){g.track=b}));_.C(f)})};
99
+ om=function(a,b,c){var d,e,f,g;return _.I(function(h){if(1==h.a)return(d=a.m.getLoadedSource())&&a.j?_.y(h,a.j.a(d.url,c),2):h["return"]();e=h.f;e.Qc&&(f=b.type+":"+b.label,(g=e.Qc.get(f))&&g.xh&&(b.accessibility=g.xh.split(",").map(function(l){return l.trim()}).map(function(l){return{value:l,type:b.type,protocol:"HLS"}})));_.C(h)})};
100
+ hm=function(a,b,c){if(a.m){var d=a.m.getSurface().getMedia();if(d){var e=document.createElement("track");e.id=c;e.kind=b.kind;e.srclang=b.language;b.label&&(e.label=b.label);_.T.empty(b.url)?e.src=URL.createObjectURL(new Blob([])):e.src=b.url;d.appendChild(e);a.C.push(e)}}};pm=function(a,b){if(!a.m)return null;var c=a.m.getSurface();if(!c)return null;c=c.getMedia();if(!c)return null;switch(b){case _.V:return c.audioTracks;case _.Tk:return c.videoTracks;case _.Sk:return c.textTracks;default:return null}};
101
+ qm=function(a,b){var c=pm(a,b);c&&(c=Array.from(c),b===_.Sk&&(c=c.filter(function(d){return d.kind!==_.$e})));return c};rm=function(a,b){return a.h.filter(function(c){return c.type===b})};sm=function(a,b){var c=a.a.get(b)||null;return c&&c.renditions[0]};tm=function(a,b){var c=a.l.get(b);return c&&c.renditions[0]};
102
+ vm=function(a,b,c){var d=qm(a,b);if(c){if(void 0===a.h.find(function(l){return l.id===c.id}))throw Error("Unknown track with ID "+c.id+" and type "+b);if(c.type!==b)throw Error("Types mismatch for track "+c.type+" and arg "+b);a.g.debug("Activate track type "+b+" with ID: "+c.id);if(d){a.l.set(b,c);var e=!0,f=!1;switch(b){case _.Sk:var g="mode";e=_.kg;f=_.ee;break;case _.V:g="enabled";break;case _.Tk:g="selected"}if(g){d=_.w(d);for(var h=d.next();!h.done;h=d.next())h=h.value,h[g]=um(c,h,c.type)?e:
103
+ f}}}else if(a.g.debug("Disable track type "+b),a.a.get(b)&&d&&b===_.Sk){g=_.w(d);for(h=g.next();!h.done;h=g.next())h.value.mode=_.ee;a.a.set(b,null)}b===_.V?a.m.trigger(new _.L(_.kd)):b===_.Sk&&a.m.trigger(new _.L(_.Cg))};wm=function(a){return a.enabled||a.selected||a.mode===_.kg||a.mode===_.Ge};
104
+ xm=function(a,b,c){c=_.Vi(c).filter(function(e){return e});a.g.info("Find preferred tracks for",b,c);var d=rm(a,b);c.some(function(e){var f=_.Pj(e);return(e=d.find(function(g){g=_.Pj(g.language||"");return _.Qj(f,g)}))?(a.g.info("Will select track with id",e.id),vm(a,b,e),!0):!1})};ym=function(a){(a=a.m.getTextDisplayer())&&a.remove(0,Infinity)};
105
+ um=function(a,b,c){return a.type!==c?!1:void 0!==b.id&&null!==b.id&&""!==b.id?a.id===b.id:_.N.qa(a,{kind:_.Rk(b.kind),language:_.Rk(b.language),label:_.Rk(b.label)},["kind","language","label"])};_.zm=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};_.Am=function(){this.ae=new vi(this);this.Yd=[]};Cm=function(a){return a.name===Gb&&Bm.some(function(b){return a.message.startsWith(b)})};Dm=function(){};
106
+ _.Hm=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.Ml()&&(a=360);var b=_.lk();b.maxAttempts=3;a={source:"",license:Em,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,ads:{hls:{enable:!0,resolutionOffsetSec:35}},manifest:{attemptParameters:_.lk(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0,timeline:{version:1,type:void 0}},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,
107
+ bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,restrictions:Fm(a),useCmsd:!0},contentSteering:{enabled:!0,attemptParameters:_.lk()},drm:null,enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:_.We,preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],preferSpatialAudio:!1,preferForcedSubtitles:!1,volume:null,startTime:null,loop:!1,lowLatencyMode:!1,suggestedPresentationDelay:void 0,muted:void 0,forceWaitForTracks:!1,
108
+ xmlParser:_.Gm,streaming:{attemptParameters:b,bufferingGoal:10,rebufferingGoal:2,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,relativeTextTimestamp:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.1,disableAudioTracks:!1,disableVideoTracks:!1,smallGapLimit:.5,jumpLargeGaps:!0,gapTolerance:.001,durationBackoff:1,maxSegmentToMediaOffset:1,forceNativeTS:!1,preferNativeHlsOnSafari:!0,safeSeekOffset:5,stallEnabled:!0,stallThreshold:3,stallSkip:.5,bufferLimitUpdateInterval:.5,overridePasp:!1,
109
+ enableLiveEdgeChasing:!1,chasingRate:1.15,startChasingAt:5,stopChasingAt:2,chaseJumpDistance:10,patchEdgeWhenMixedContent:!1,ignoreDrift:!1,disableFragmentSupport:!1,disableMergedFragments:!1,ignoreManagedMediaSourceStreamingHints:!1},mediaSource:{codecSwitchingStrategy:_.Uf},restrictions:Fm(),tizen:{sideStreamText:_.Fk(2)},safari:{enableHlsVideoTrackInfo:!1,enableMetadata:!1},mse:{sendPlaybackSessionIdHeader:!1},trickPlay:{speedUpMode:_.ce,preferTrickPlayTracks:!0},playlist:{timeline:"basic",content:_.kc,
110
+ cropTimeline:!1},yospace:{enabled:!1}};if(_.Fk()||_.Gk())a.ads.hls.enable=!1;if(_.Hl("Edge/")||_.Fk())a.streaming.gapDetectionThreshold=.5;_.Gk()&&(a.streaming.stallEnabled=!1);_.Jl()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=.02);_.Fk()&&(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};
113
111
  return a};
114
- _.Gm=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(!b)return _.Em();c=[_.Em()];var d=!1;b=_.w(b);for(var e=b.next();!e.done;e=b.next())e=e.value,null!==e&&void 0!==e&&(_.N.fa(e)&&(e={source:e}),e.lowLatencyMode&&!d&&(c.push({streaming:{rebufferingGoal:.1,bufferLimitUpdateInterval:.01,attemptParameters:{maxAttempts:3,baseDelay:250,backoffFactor:1}},abr:{bandwidthUpgradeTarget:.6,bandwidthDowngradeTarget:.95},manifest:{lowLatencyMode:!0}}),d=!0),c.push(e),null!=e.suggestedPresentationDelay&&
115
- c.push({manifest:{suggestedPresentationDelay:e.suggestedPresentationDelay}}));c=_.N.ta.apply(null,c);_.N.fa(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.N.R(c.volume)&&(!_.N.xa(c.volume)||_.N.isNaN(c.volume)))throw new _.P(_.Q,7,7100,"config.volume is not a number");if(!_.N.R(c.preferredTextLanguage)&&!_.N.fa(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.P(_.Q,7,7100,"config.preferredTextLanguage is not a string or an array");if(!_.N.R(c.preferredAudioLanguage)&&
116
- !_.N.fa(c.preferredAudioLanguage)&&!Array.isArray(c.preferredAudioLanguage))throw new _.P(_.Q,7,7100,"config.preferredAudioLanguage is not a string or an array");if(!_.N.R(c.preferredAudioCodec)&&!_.N.fa(c.preferredAudioCodec)&&!Array.isArray(c.preferredAudioCodec))throw new _.P(_.Q,7,7100,"config.preferredAudioCodec is not a string or an array");if(!_.N.R(c.preferredVideoCodec)&&!_.N.fa(c.preferredVideoCodec)&&!Array.isArray(c.preferredVideoCodec))throw new _.P(_.Q,7,7100,"config.preferredVideoCodec is not a string or an array");
117
- if(!_.N.R(c.drm)){if(c.drm.env&&!_.N.fa(c.drm.env))throw new _.P(_.Q,7,7100,"config.drm.env is not a string");if(c.drm.offlineId&&!_.N.fa(c.drm.offlineId))throw new _.P(_.Q,7,7100,"config.drm.offlineId is not a string");}if(d=c.streaming){d.bufferingGoal=Number(d.bufferingGoal);d.rebufferingGoal=Number(d.rebufferingGoal);d.bufferBehind=Number(d.bufferBehind);d.smallGapLimit=Number(d.smallGapLimit);d.durationBackoff=Number(d.durationBackoff);if(!_.N.xa(d.bufferingGoal)||_.N.isNaN(d.bufferingGoal))throw new _.P(_.Q,
118
- 7,7100,"config.streaming.bufferingGoal is not a number");if(!_.N.xa(d.rebufferingGoal)||_.N.isNaN(d.rebufferingGoal))throw new _.P(_.Q,7,7100,"config.streaming.rebufferingGoal is not a number");if(d.rebufferingGoal>d.bufferingGoal)throw new _.P(_.Q,7,7100,"config.streaming.rebufferingGoal must be \x3e\x3d bufferingGoal");if(!_.N.xa(d.bufferBehind)||_.N.isNaN(d.bufferBehind))throw new _.P(_.Q,7,7100,"config.streaming.bufferBehind is not a number");if(!_.N.xa(d.smallGapLimit)||_.N.isNaN(d.smallGapLimit))throw new _.P(_.Q,
119
- 7,7100,"config.streaming.smallGapLimit is not a number");if(!_.N.xa(d.durationBackoff)||_.N.isNaN(d.durationBackoff))throw new _.P(_.Q,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.N.R(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.k)throw new _.P(_.Q,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");Fm(c.restrictions);Fm(c.abr.restrictions);c.abr.initialRestrictions&&Fm(c.abr.initialRestrictions)}return c};
120
- Cm=function(a){a=void 0===a?Infinity:a;return{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:a,minPixels:0,maxPixels:Infinity,minBandwidth:0,maxBandwidth:Infinity}};
121
- Fm=function(a){_.N.R(a.maxPixels)&&(a.maxPixels=Infinity);_.N.R(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.N.R(a.maxHeight)&&(a.maxHeight=Infinity);_.N.R(a.maxWidth)&&(a.maxWidth=Infinity);_.N.R(a.minPixels)&&(a.minPixels=0);_.N.R(a.minBandwidth)&&(a.minBandwidth=0);_.N.R(a.minHeight)&&(a.minHeight=0);_.N.R(a.minWidth)&&(a.minWidth=0);a.minWidth=Number(a.minWidth);a.maxWidth=Number(a.maxWidth);a.minHeight=Number(a.minHeight);a.maxHeight=Number(a.maxHeight);a.minBandwidth=Number(a.minBandwidth);
122
- a.maxBandwidth=Number(a.maxBandwidth);a.minPixels=Number(a.minPixels);a.maxPixels=Number(a.maxPixels);if(Number.isNaN(a.minWidth)||Number.isNaN(a.maxWidth)||Number.isNaN(a.minHeight)||Number.isNaN(a.maxHeight)||Number.isNaN(a.minBandwidth)||Number.isNaN(a.maxBandwidth)||Number.isNaN(a.minPixels)||Number.isNaN(a.maxPixels))throw new _.P(_.Q,7,7100,"Restrictions contain NaN");};Hm=function(a){return typeof a===_.Ze&&!Array.isArray(a)&&"source"in a};
123
- _.Im=function(a){_.xm.call(this);this.log=new _.K(a);this.configuration=this.Ja=_.Em();this.aa=this.C=null;this.me=this.Kg=!1;this.eh=new _.K("clpp.video.events");this.Hd=null;this.af=-1;this.yj=this.Rn.bind(this);this.Hg=new _.Bk;this.M=new _.Yh;this.Gg=this.Uc=this.kd=this.U=null};_.Km=function(a){return _.Jm.get(a)||null};_.Mm=function(a){_.Jm.get(a.id())?Lm.warn("Component already in use."):_.Jm.set(a.id(),a)};
124
- Nm=function(a){return Array.from(_.Jm.values()).find(function(b){return b instanceof a})||null};Om=function(a){for(var b=_.w(_.Jm.values()),c=b.next();!c.done;c=b.next())a(c.value)};Pm=function(a){Om(function(b){b.o(a)})};Qm=function(a){Om(function(b){b.h(a)})};Rm=function(){Om(function(){})};Sm=function(){Om(function(){})};Tm=function(a){if(null!==Nm(a))return null;a=new a;a.f();_.Mm(a);Lm.info("Installed component:",a.id());return a};
125
- Um=function(a){if(a=Nm(a))a.a(),_.Jm["delete"](a.id()),Lm.info("Uninstalled component:",a.id())};Vm=function(){this.a=this.f=null;this.g=new _.K("clpp.drm.csl")};Wm=function(a,b){3===b.type&&(a.f&&(a.g.debug("Attaching tracking token"),b.headers[Zg]=a.f),a.a&&(b.headers[$g]=a.a))};
126
- Xm=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[Zg];a.a=b.headers[$g];var c=b.headers["x-dt-csl-renewal-info"];a.f&&a.g.debug("Loaded tracking token "+a.f);a.a&&a.g.debug("Loaded followup token "+a.a);if(c)return c=JSON.parse(_.T.ba(_.Tj(c))),{delay:c.renewalPeriod,No:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};_.Zm=function(a){_.Ym[a.J]=a};
127
- _.an=function(a){var b={attemptParameters:_.ck(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,enableSessionCacheForSkd:!1,ignoreUnrecognizedInitData:!0,Pa:{},widevineVersion:_.Qd};if(a&&(b.enforceSingleSession=!!a.enforceSingleSession,b.delayLicenseRequestUntilPlayed=!!a.delayLicenseRequestUntilPlayed,b.preferredDrmSystem=a.preferredDrmSystem,b.emeApi=a.emeApi,a.attemptParameters&&(b.attemptParameters=a.attemptParameters),b.enableSessionCacheForSkd=!!a.enableSessionCacheForSkd,void 0!==
128
- a.ignoreUnrecognizedInitData&&(b.ignoreUnrecognizedInitData=!!a.ignoreUnrecognizedInitData),typeof a.widevineVersion===_.lg&&0<a.widevineVersion.length&&(b.widevineVersion=a.widevineVersion),a.env)){var c=_.Ym[a.env]||null;if(!c)throw _.Oh(_.za,_.Lb+a.env+_.aa),new _.P(_.Q,6,6015,_.Aa+a.env+"' is missing.");b.Pa=_.$m(c,a.customData)||{};_.T.startsWith(a.env.toLowerCase(),le)&&(b.enforceSingleSession=!0)}return b};
129
- cn=function(a){a=bn[a];if(!a)return null;var b=_.yk();return b.os===Tl&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.dn=function(a){this.J=a;this.f={}};
130
- _.$m=function(a,b){var c={},d=b?b.widevineVideoRobustness:void 0,e=b?b.widevineAudioRobustness:void 0,f=b?b.serverCertificate:void 0,g=a.f[_.Qd];g&&(c[_.Qd]={licenseUrl:g.licenseUrl,videoRobustness:Yi(d,g.videoRobustness),audioRobustness:Yi(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:Xi(b?b.widevineDistinctiveIdentifierRequired:void 0,g.distinctiveIdentifierRequired,!1),persistentStateRequired:Xi(b?b.widevinePersistentStateRequired:void 0,g.persistentStateRequired,!1),
131
- serverCertificate:void 0===f?g.serverCertificate:null===f?null:typeof f===_.lg?cn(f):f});(g=a.f[_.Kd])&&(c[_.Kd]={licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.f[_.Od])&&(c[_.Od]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});
132
- return c};_.en=function(a,b){b=void 0===b?!1:b;this.f=_.N.xa(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.h=b;this.buffer=this.f.buffer};_.gn=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.Hj(a.f.buffer);b=_.Hj(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.fn()}};_.W=function(a,b){try{a.f.setUint32(a.a,b,a.h),a.a+=4}catch(c){_.fn()}};_.fn=function(){throw new _.P(_.Q,3,3E3);};_.hn=function(a,b){this.f=a;this.h=void 0===b?!0:b;this.a=0};_.jn=function(a){return a.a<a.f.byteLength};
133
- _.ln=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){_.kn()}};_.mn=function(a){try{var b=a.f.getUint16(a.a,a.h);a.a+=2;return b}catch(c){_.kn()}};_.nn=function(a){try{var b=a.f.getUint32(a.a,a.h);a.a+=4;return b}catch(c){_.kn()}};_.on=function(a){try{var b=a.f.getInt32(a.a,a.h);a.a+=4;return b}catch(c){_.kn()}};
134
- _.pn=function(a){var b=0,c=0;try{!0===a.h?(b=a.f.getUint32(a.a,!0),c=a.f.getUint32(a.a+4,!0)):(c=a.f.getUint32(a.a,!1),b=a.f.getUint32(a.a+4,!1))}catch(d){_.kn()}if(2097151<c)throw new _.P(_.Q,3,3001);a.a+=8;return c*Math.pow(2,32)+b};qn=function(a,b){for(var c=new Uint8Array(b),d=0;d<b;d++)c[d]=_.ln(a);return c};_.rn=function(a,b){a.a+b>a.f.byteLength&&_.kn();var c=a.a+a.f.byteOffset;c=a.f.buffer.slice(c,c+b);a.a+=b;return _.Hj(c)};
135
- _.kn=function(){throw new _.P(_.Q,3,3E3,"Buffer read out of bounds.");};_.sn=function(){this.h=[];this.f=[];this.a=!1;this.g=new _.K("clpp.mp4")};_.tn=function(a){for(;_.jn(a.reader)&&!a.parser.a;)a.parser.rf(a.start+a.headerSize,a.reader,a.partialOkay)};_.un=function(a){for(var b=_.nn(a.reader);0<b&&!a.parser.a;--b)a.parser.rf(a.start+a.headerSize,a.reader,a.partialOkay)};_.vn=function(a){return function(b){var c=b.reader.Sa()-b.reader.getPosition();a(_.rn(b.reader,c))}};
136
- wn=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.xn=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};_.yn=function(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)};zn=function(){};An=function(a){var b="";try{b=_.T.Zd(a)}catch(c){}return b};_.Bn=function(a){a=An(a);var b="";a.length&&(b=(new _.Rk(a)).a);return b};
137
- Cn=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.T.ba(a)),d=_.Tj(c.sinf[0]);(new _.sn).N(_.eg,_.tn).N("schi",_.tn).N("tenc",function(e){e.reader.skip(6);_.ln(e.reader)&&(e.reader.skip(1),b=_.Vj(_.rn(e.reader,16)));e.parser.stop()}).parse(d)}catch(e){}return b};
138
- Dn=function(a,b,c){if(!c||!c.byteLength)throw new _.P(_.Q,6,6102);var d;typeof b===_.lg?d=_.T.zf(b,!0):d=b;a=_.T.zf(An(a),!0);b=new _.en(12+a.byteLength+d.byteLength+c.byteLength,!0);_.W(b,a.byteLength);_.gn(b,_.Hj(a));_.W(b,d.byteLength);_.gn(b,_.Hj(d));_.W(b,c.byteLength);_.gn(b,_.Hj(c));return _.Hj(b.buffer)};_.En=function(a){var b=_.Hj(a.body);b=_.Sj(b);a.headers[ya]=Yc;a.body=_.T.cb("spc\x3d"+b).buffer};
139
- _.Fn=function(a){try{var b=_.T.ba(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=Pj(_.Tj(b))};
140
- Ln=function(){var a=Gn;if(a===Hn)return"https://lic.drmtoday.com";if(a===In)return"https://lic.staging.drmtoday.com";if(a===Jn)return"https://lic-demo.staging.drmtoday.com";if(a===Kn)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};Pn=function(a){var b=Ln();if(a===_.Qd)return b+Mn;if(a===_.Od)return b+Nn;if(a===_.Kd)return b+On;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
141
- Qn=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
142
- _.Sn=function(a,b,c){b=An(b);c=c&&c.customData?c.customData:{};b=new _.Rk(Qn(b));var d=_.Uk(b.f);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.T.jf(""+a)&&(d.assetId=a,Rn.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.T.jf(""+e)&&(d.variantId=e,Rn.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],Rn.debug("KeyId found in FPS SKD. Removing other parameters")):
143
- a=["assetId","variantId"];b.f=_.Tk(d,!1,a);"/"!==b.path||b.j.includes(b.a+"/")||(b.path="");b=_.Sk(b);return c.fpsContentId=b};_.Un=function(a,b,c,d){d=void 0===d?!0:d;c=a.drm;c&&c.env.startsWith(Ca)?c.customData&&(_.Tn(b,a),a=b.uris[0],d&&c.customData.assetId&&(a+="?assetId\x3d"+encodeURI(""+c.customData.assetId),c.customData.variantId&&(a+="\x26variantId\x3d"+encodeURI(""+c.customData.variantId)),b.uris[0]=a)):Rn.warn(wb)};
144
- Vn=function(a,b,c){_.Un(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.Zi(b.uris[0]);c.a.add(_.lf,a);b.uris[0]=c.toString()};
145
- _.Wn=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.Un(a,b,c,!1);b.headers[ya]=Yc;c={spc:_.Rj(b.body)};if((a=a.drm)&&a.env.startsWith(Ga)&&d){a={};var e=_.Uk((new _.Rk(Qn(d))).f);d=e.keyId;if(e=e.assetId)Rn.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(Rn.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(Rn.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(Rn.info("Adding assetID to FPS payload:",a.assetId),c.assetId=a.assetId)}b.body=
146
- _.T.xd(_.Tk(c,!0))};_.Xn=function(a,b){Rn.debug("Clearing response data");if(200===b.status){var c=_.T.ba(b.data).trim();"\x3cckc\x3e"===c.substr(0,5)&&"\x3c/ckc\x3e"===c.substr(-6)&&(c=c.slice(5,-6));b.data=_.Tj(c).buffer}};_.Yn=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(Ca))Rn.warn(wb);else if(c.customData&&c.customData.merchant&&!c.env.startsWith(Ga)){var d=new _.Zi(b.uris[0]),e=d.Ma;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.Ma=e;b.uris[0]=d.toString()}};
147
- _.Zn=function(a,b){try{var c=_.Hj(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));Rn.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){Rn.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data")}};
148
- _.Tn=function(a,b){var c=b.drm;if(c&&c.customData){var d={userId:c.customData.userId,sessionId:c.customData.sessionId,merchant:c.customData.merchant};_.N.Fc(d)&&(a.headers["dt-custom-data"]=btoa(JSON.stringify(d)));(c=c.customData.authToken)&&(a.headers["x-dt-auth-token"]=c)}};ao=function(a){var b={},c=a?a[ah]:void 0;a=$n[a?a[ah]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};
149
- bo=function(a){a=a["x-dt-li"];if(!a)return null;try{var b=JSON.parse(atob(a));a={};b.ti&&(a.requestId=b.ti);b.rpd&&(a.delay=Number(b.rpd)/1E3);return a}catch(c){return Rn.warn("Unable to parse DRMtoday License Info header (x-dt-li)",c),null}};_.co=function(a){this.f=a;this.a=void 0};eo=function(){this.size=0;this.a=void 0;this.g=new _.K("clpp.drm.eme.MediaKeyStatusMap")};fo=function(a,b){a.size=void 0===b?0:1;a.g.debug("Setting key status to",b);a.a=b};
150
- ho=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=go.value().get(b),c.one(a,b,d))};io=function(){this.a=this.f=null};
151
- jo=function(a,b){this.keySystem=a;if(a.startsWith(_.Kd))for(var c=_.w(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.Tf)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.gf,distinctiveIdentifier:_.gf,initDataTypes:e.initDataTypes,sessionTypes:[qg],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var h=_.w(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])&&
152
- (d.audioCapabilities.push(l),g=!0));if(e.videoCapabilities)for(e=_.w(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,_.Lg));d=g?d:null}if(d){this.a=d;return}}c=Error(dc);c.name=Eb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
153
- ko=function(a){this.f=null;this.h=new WebKitMediaKeys(a);this.a=new _.Yh;this.j=0;this.g=new _.K(Bd);this.g.info("Created Media Keys for "+a)};
154
- lo=function(a,b){a.f=b;_.ai(a.a);if(!b)return Promise.resolve();a.a.on(b,pe,function(c){_.Oh("AppleEmeManager.cancelNativeMediaEncryptedEvent_",c);"MediaEncryptedEvent"in window&&c instanceof MediaEncryptedEvent&&(a.g.info("Cancel native MediaEncryptedEvent when using Apple-prefixed EME"),c.stopImmediatePropagation())});a.a.on(b,Xg,function(c){a.g.debug("Handle webkitNeedKey event");c=_.Hj(c.initData);if(_.Oj(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");
155
- c=_.T.Dc(c.subarray(4),!0);c=_.T.cb(c);var d=new Event(pe);d.initDataType="skd";d.initData=Pj(c);a.f.dispatchEvent(d)});ho(b,HTMLMediaElement.HAVE_METADATA,a.a,function(){return b.webkitSetMediaKeys(a.h)});return Promise.resolve()};mo=function(a,b){_.xm.call(this);this.a=null;this.o=a;this.f=this.h=null;this.j=new _.Yh;this.sessionId=b;this.expiration=NaN;this.closed=new _.ok;this.l=!1;this.keyStatuses=new eo;this.g=new _.K(Bd)};no=function(a,b){fo(a.keyStatuses,b);a.dispatchEvent(new _.L(Ce))};
156
- oo=function(){};po=function(){this.a=null;this.g=new _.K("clpp.drm.eme.StandardEmeManager")};qo=function(){};xo=function(){this.f=this.a=null;this.h="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.h="webkit")};
157
- yo=function(a,b,c,d){this.h=a;this.a=this.keySystem=c;a=!1;c===_.hf&&(this.a=Tg,a=!1);var e=!1;d=_.w(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=_.w(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=_.w(f.videoCapabilities),n=g.next();!n.done;n=g.next())m=n.value,m.contentType&&(l=!0,b.canPlayType(m.contentType,
158
- this.a)&&(h.push(m),e=!0));l||(e=b.canPlayType(_.Lg,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.Tf||a||(e=!1);if(e){this.f=f;return}}b=dc;if(c===_.hf||c===_.Qd)b="None of the requested configurations were supported.";c=Error(b);c.name=Eb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};zo=function(a,b){this.h=a;this.o=b;this.a=null;this.f=new _.Yh;this.j=[];this.l=new Map};
159
- Co=function(a,b){a.a=b;_.ai(a.f);b&&(a.f.on(b,a.h+"needkey",function(c){var d=new Event(pe);d.initDataType=_.qd;d.initData=Pj(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.h+"keymessage",function(c){var d=Ao(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.L(_.Re,{messageType:e?Fe:Ee,message:c.message});_.Oh("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.Ph("Session not found",c.sessionId)}),a.f.on(b,a.h+"keyadded",function(c){(c=
160
- Ao(a,c.sessionId))&&c.ready()}),a.f.on(b,a.h+"keyerror",function(c){var d=Ao(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?Bo(d,_.jf):1===e?Bo(d,"expired"):Bo(d,_.Be))}}))};
161
- Ao=function(a,b){var c=a.l.get(b);return c?c:(c=a.j.shift())?(c.sessionId=b,a.l.set(b,c),c):null};Do=function(a,b,c,d){_.xm.call(this);this.w=a;this.j=b;this.o=!1;this.a=this.f=null;this.h=c;this.l=d;this.sessionId="";this.expiration=NaN;this.closed=new _.ok;this.keyStatuses=new eo};
162
- Fo=function(a,b,c){if(a.o)return Promise.reject(Error("The session is already initialized."));a.o=!0;try{if(a.l===_.mf)if(c)var d=_.Hj(_.T.cb("LOAD_SESSION|"+c));else{var e=_.T.cb("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.Hj(b),e.byteLength);d=f}else d=_.Hj(b)}catch(h){return Promise.reject(h)}a.f=new _.ok;var g=Eo(a,"generateKeyRequest");try{a.j[g](a.h,d)}catch(h){if(h.name!==mb)return a.f=null,Promise.reject(h);(new _.yl(function(){try{a.j[g](a.h,d)}catch(l){a.f.reject(l),
163
- a.f=null}})).ea(.01)}return a.f};Go=function(a,b,c){if(a.a)a.a.then(function(){return Go(a,b,c)})["catch"](function(){return Go(a,b,c)});else{a.a=b;if(a.h===Tg){var d=_.T.ba(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=_.Tj(e.keys[0].k);e=_.Tj(e.keys[0].kid)}else d=_.Hj(c),e=null;var f=Eo(a,"addKey");try{a.j[f](a.h,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};Bo=function(a,b){fo(a.keyStatuses,b);a.dispatchEvent(new _.L(Ce))};
164
- Eo=function(a,b){return a.w?a.w+b.charAt(0).toUpperCase()+b.slice(1):b};Ho=function(){};Io=function(){};Jo=function(){};Ko=function(){};No=function(a,b){var c=Lo;if(a){var d=c.find(function(e){return e.a()===a});if(d)return Mo.info(kc+d.a()),d.create();Mo.info("Cannot create selected EME manager, falling back to the default.")}if(b&&(d=c.find(function(e){return e.a()===b})))return Mo.info(kc+d.a()),d.create();c=c[0];if(!c)throw Error("Missing EME managers.");Mo.info(kc+c.a());return c.create()};
165
- _.Oo=function(){};Po=function(a,b,c){this.j=new Uint8Array(a);this.a=b;this.f=c};Qo=function(){Po.apply(this,arguments)};_.So=function(a){var b=_.Uj(a);b=parseInt(b.byteLength,10).toString(16);b=_.Uj("12"+b+a);return new Qo(Ro,a,b)};
166
- _.To=function(a){function b(u){switch(u){case 0:do if(!_.jn(d))throw Error("not enough data to skip!");while(_.ln(d)&128);break;case 1:d.skip(8);break;case 2:d.skip(c());break;case 3:for(;4!==(u=c()&7);)b(u);break;case 5:d.skip(4);break;default:throw Error("invalid wire type "+u);}}function c(){for(var u=_.ln(d),v=(u&127)>>>0,z=7;128<=u&&28>=z;)u=_.ln(d),v=(v|(u&(28>z?127:15))<<z)>>>0,z+=7;return 28<z?-1:v}var d=new _.hn(new DataView(a.buffer,a.byteOffset,a.byteLength),!1);a=_.nn(d);var e=_.nn(d);
167
- e=_.xn(e);var f=_.nn(d),g=f>>>24;f&=16777215;var h=_.rn(d,16);h=_.Vj(h);if(0<g){var l=_.nn(d);d.skip(16*l)}l=_.nn(d);for(var m=[],n=null;_.jn(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=qn(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.Oh("Parsed WV PSSH Box","size",a,"name",e,Gg,g,"flags",f,"size",l,"systemId",h,"contentId (base64)",n?_.Rj(n):"","keyIds",m.map(function(u){return _.Vj(u)}));return 0<m.length?_.So(_.Vj(m[0])):null};
168
- _.Uo=function(a,b,c,d,e,f){f=void 0===f?null:f;Po.call(this,a,b,d);this.version=e;this.h=c;this.l=f};
169
- _.$o=function(a){var b=_.Vo;a:{var c=new _.hn(new DataView(a.buffer),!0);_.nn(c);for(_.mn(c);_.jn(c);)if(1===_.mn(c)){var d=_.mn(c);c=_.rn(c,d);break a}c=null}c||(c=a);a=_.T.Dc(c,!0);d=b.se(a,"WRMHEADER");a=d.getAttribute(Gg)||"";d=b.Ka(d,"DATA");var e=b.Ka(d,"LA_URL");b=e?b.ra(e):"";e=_.Vo;var f=e.Ka(d,"KID");if(f)if(f=e.ra(f)){var g=e.Ka(d,pa);e=g?e.ra(g):null;e={value:f,Tf:e}}else e=null;else e=null;d=e?[e]:(e=Wo(d))?[e]:(d=Xo(d))?d:null;e=d&&d[0]||{};d=e.Tf;e=_.Tj(void 0===e.value?"":e.value);
170
- e=_.Yo(e);e=_.Vj(e);return new _.Uo(_.Zo,e,b,c,a,d)};_.Yo=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=_.Hj(a);a.set(b,0);return a};Wo=function(a){var b=_.Vo;a=b.Ka(a,"PROTECTINFO");if(!a)return null;var c=b.Ka(a,"KID");if(!c)return null;b=c.getAttribute("VALUE");if(!b)return null;a=c.getAttribute(pa);c=c.getAttribute("ALGID");return{value:b,Tf:a,Lj:c}};
171
- Xo=function(a){var b=_.Vo;a=b.Ka(a,"PROTECTINFO");if(!a)return null;a=b.Ka(a,"KIDS");if(!a)return null;a=b.X(a,"KID");if(!a.length)return null;b=[];a=_.w(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;if(c=d.getAttribute("VALUE")){var e=d.getAttribute(pa);d=d.getAttribute("ALGID");b.push({value:c,Tf:e,Lj:d})}}return b.length?b:null};_.bp=function(a){ap&&performance.mark(a)};_.cp=function(a,b,c){ap&&performance.measure(a,b,c)};
172
- dp=function(a){this.f=[];this.h=[];this.a=[];8<=a.byteLength&&(new _.sn).Z("pssh",this.j.bind(this)).parse(a.buffer);0===this.a.length&&_.Jh("No pssh box found!")};
173
- _.hp=function(a,b){var c=this;this.D=a;this.jc=b;this.K=new Set;this.C=this.J=this.l=null;this.ca=!1;this.a=null;this.L=ep;this.B=new _.Yh;this.P=new Vm;this.h=new Map;this.M=[];this.I=new _.ok;this.Fb=0;this.f=null;this.w=function(d){c.A=!0;c.G=!1;c.I.reject(d);a.onError(d)};this.o=new Map;this.ia=new Map;this.da=new _.yl(function(){return fp(c)});this.j=!1;this.Ja=new _.ok;this.H=!1;this.ha=[];this.fb=!1;this.$=0;this.g=new _.K("clpp.drm.DrmEngine");this.ya=(new _.yl(function(){gp(c)})).Eb(1);this.I["catch"](function(){});
112
+ _.Jm=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(!b)return _.Hm();c=[_.Hm()];var d=!1;b=_.w(b);for(var e=b.next();!e.done;e=b.next())e=e.value,null!==e&&void 0!==e&&(_.N.ha(e)&&(e={source:e}),e.lowLatencyMode&&!d&&(c.push({streaming:{rebufferingGoal:.1,bufferLimitUpdateInterval:.01,attemptParameters:{maxAttempts:3,baseDelay:250,backoffFactor:1}},abr:{bandwidthUpgradeTarget:.6,bandwidthDowngradeTarget:.95},manifest:{lowLatencyMode:!0}}),d=!0),c.push(e),null!=e.suggestedPresentationDelay&&
113
+ c.push({manifest:{suggestedPresentationDelay:e.suggestedPresentationDelay}}));c=_.N.ua.apply(null,c);_.N.ha(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.N.R(c.volume)&&(!_.N.xa(c.volume)||_.N.isNaN(c.volume)))throw new _.O(_.P,7,7100,"config.volume is not a number");if(!_.N.R(c.preferredTextLanguage)&&!_.N.ha(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.O(_.P,7,7100,"config.preferredTextLanguage is not a string or an array");if(!_.N.R(c.preferredAudioLanguage)&&
114
+ !_.N.ha(c.preferredAudioLanguage)&&!Array.isArray(c.preferredAudioLanguage))throw new _.O(_.P,7,7100,"config.preferredAudioLanguage is not a string or an array");if(!_.N.R(c.preferredAudioCodec)&&!_.N.ha(c.preferredAudioCodec)&&!Array.isArray(c.preferredAudioCodec))throw new _.O(_.P,7,7100,"config.preferredAudioCodec is not a string or an array");if(!_.N.R(c.preferredVideoCodec)&&!_.N.ha(c.preferredVideoCodec)&&!Array.isArray(c.preferredVideoCodec))throw new _.O(_.P,7,7100,"config.preferredVideoCodec is not a string or an array");
115
+ if(!_.N.R(c.drm)){if(c.drm.env&&!_.N.ha(c.drm.env))throw new _.O(_.P,7,7100,"config.drm.env is not a string");if(c.drm.offlineId&&!_.N.ha(c.drm.offlineId))throw new _.O(_.P,7,7100,"config.drm.offlineId is not a string");}if(d=c.streaming){d.bufferingGoal=Number(d.bufferingGoal);d.rebufferingGoal=Number(d.rebufferingGoal);d.bufferBehind=Number(d.bufferBehind);d.smallGapLimit=Number(d.smallGapLimit);d.durationBackoff=Number(d.durationBackoff);if(!_.N.xa(d.bufferingGoal)||_.N.isNaN(d.bufferingGoal))throw new _.O(_.P,
116
+ 7,7100,"config.streaming.bufferingGoal is not a number");if(!_.N.xa(d.rebufferingGoal)||_.N.isNaN(d.rebufferingGoal))throw new _.O(_.P,7,7100,"config.streaming.rebufferingGoal is not a number");if(d.rebufferingGoal>d.bufferingGoal)throw new _.O(_.P,7,7100,"config.streaming.rebufferingGoal must be \x3e\x3d bufferingGoal");if(!_.N.xa(d.bufferBehind)||_.N.isNaN(d.bufferBehind))throw new _.O(_.P,7,7100,"config.streaming.bufferBehind is not a number");if(!_.N.xa(d.smallGapLimit)||_.N.isNaN(d.smallGapLimit))throw new _.O(_.P,
117
+ 7,7100,"config.streaming.smallGapLimit is not a number");if(!_.N.xa(d.durationBackoff)||_.N.isNaN(d.durationBackoff))throw new _.O(_.P,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.N.R(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.k)throw new _.O(_.P,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");Im(c.restrictions);Im(c.abr.restrictions);c.abr.initialRestrictions&&Im(c.abr.initialRestrictions)}return c};
118
+ Fm=function(a){a=void 0===a?Infinity:a;return{minWidth:0,maxWidth:Infinity,minHeight:0,maxHeight:a,minPixels:0,maxPixels:Infinity,minBandwidth:0,maxBandwidth:Infinity}};
119
+ Im=function(a){_.N.R(a.maxPixels)&&(a.maxPixels=Infinity);_.N.R(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.N.R(a.maxHeight)&&(a.maxHeight=Infinity);_.N.R(a.maxWidth)&&(a.maxWidth=Infinity);_.N.R(a.minPixels)&&(a.minPixels=0);_.N.R(a.minBandwidth)&&(a.minBandwidth=0);_.N.R(a.minHeight)&&(a.minHeight=0);_.N.R(a.minWidth)&&(a.minWidth=0);a.minWidth=Number(a.minWidth);a.maxWidth=Number(a.maxWidth);a.minHeight=Number(a.minHeight);a.maxHeight=Number(a.maxHeight);a.minBandwidth=Number(a.minBandwidth);
120
+ a.maxBandwidth=Number(a.maxBandwidth);a.minPixels=Number(a.minPixels);a.maxPixels=Number(a.maxPixels);if(Number.isNaN(a.minWidth)||Number.isNaN(a.maxWidth)||Number.isNaN(a.minHeight)||Number.isNaN(a.maxHeight)||Number.isNaN(a.minBandwidth)||Number.isNaN(a.maxBandwidth)||Number.isNaN(a.minPixels)||Number.isNaN(a.maxPixels))throw new _.O(_.P,7,7100,"Restrictions contain NaN");};Km=function(a){return typeof a===_.gf&&!Array.isArray(a)&&"source"in a};
121
+ _.Lm=function(a){_.Am.call(this);this.log=new _.K(a);this.configuration=this.kb=_.Hm();this.ba=this.G=null;this.re=this.Ng=!1;this.ih=new _.K("clpp.video.events");this.Od=null;this.gf=-1;this.Ej=this.io.bind(this);this.Jg=new _.Kk;this.P=new _.wi;this.Ig=this.cd=this.td=this.U=null};_.Nm=function(a){return _.Mm.get(a)||null};_.Pm=function(a){_.Mm.get(a.id())?Om.warn("Component already in use."):_.Mm.set(a.id(),a)};
122
+ Qm=function(a){return Array.from(_.Mm.values()).find(function(b){return b instanceof a})||null};Rm=function(a){for(var b=_.w(_.Mm.values()),c=b.next();!c.done;c=b.next())a(c.value)};Sm=function(a){Rm(function(b){b.o(a)})};Tm=function(a){Rm(function(b){b.h(a)})};Um=function(){Rm(function(){})};Vm=function(){Rm(function(){})};Wm=function(a){if(null!==Qm(a))return null;a=new a;a.f();_.Pm(a);Om.info("Installed component:",a.id());return a};
123
+ Xm=function(a){if(a=Qm(a))a.a(),_.Mm["delete"](a.id()),Om.info("Uninstalled component:",a.id())};Ym=function(){};_.$m=function(a,b){b=void 0===b?!0:b;var c=_.Zm(a).replace(/\+/g,"-").replace(/\//g,"_");return b?c:c.replace(/[=]*$/,"")};_.an=function(a){a=window.atob(a.replace(/-/g,"+").replace(/_/g,"/"));for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b};
124
+ _.bn=function(a){for(var b=new Uint8Array(a.length/2),c=0;c<a.length;c+=2)b[c/2]=window.parseInt(a.substr(c,2),16);return b};_.cn=function(a){for(var b="",c=0;c<a.length;++c){var d=a[c].toString(16);1===d.length&&(d="0"+d);b+=d}return b};_.dn=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.length!==b.length)return!1;for(var c=0;c<a.length;++c)if(a[c]!==b[c])return!1;return!0};
125
+ _.en=function(a){for(var b=0,c=0;c<arguments.length;++c)b+=arguments[c].length;b=new Uint8Array(+b);for(var d=c=0;d<arguments.length;++d)b.set(arguments[d],c),c+=arguments[d].length;return b};_.Zm=function(a){a=_.T.fromCharCode(_.bk(a));return btoa(a)};fn=function(){this.a=this.f=null;this.g=new _.K("clpp.drm.csl")};gn=function(a,b){3===b.type&&(a.f&&(a.g.debug("Attaching tracking token"),b.headers[nh]=a.f),a.a&&(b.headers[oh]=a.a))};
126
+ hn=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[nh];a.a=b.headers[oh];var c=b.headers["x-dt-csl-renewal-info"];a.f&&a.g.debug("Loaded tracking token "+a.f);a.a&&a.g.debug("Loaded followup token "+a.a);if(c)return c=JSON.parse(_.T.ea(_.an(c))),{delay:c.renewalPeriod,fp:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};_.kn=function(a){_.jn[a.J]=a};
127
+ _.mn=function(a){var b={attemptParameters:_.lk(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,enableSessionCacheForSkd:!1,ignoreUnrecognizedInitData:!0,Sa:{},widevineVersion:_.Xd};if(a&&(b.enforceSingleSession=!!a.enforceSingleSession,b.delayLicenseRequestUntilPlayed=!!a.delayLicenseRequestUntilPlayed,b.preferredDrmSystem=a.preferredDrmSystem,b.emeApi=a.emeApi,a.attemptParameters&&(b.attemptParameters=a.attemptParameters),b.enableSessionCacheForSkd=!!a.enableSessionCacheForSkd,void 0!==
128
+ a.ignoreUnrecognizedInitData&&(b.ignoreUnrecognizedInitData=!!a.ignoreUnrecognizedInitData),typeof a.widevineVersion===_.ug&&0<a.widevineVersion.length&&(b.widevineVersion=a.widevineVersion),a.env)){var c=_.jn[a.env]||null;if(!c)throw _.ci(_.Ea,_.Ob+a.env+_.aa),new _.O(_.P,6,6015,_.Fa+a.env+"' is missing.");b.Sa=_.ln(c,a.customData)||{};_.T.startsWith(a.env.toLowerCase(),ue)&&(b.enforceSingleSession=!0)}return b};
129
+ on=function(a){a=nn[a];if(!a)return null;var b=_.Hk();return b.os===Yl&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.pn=function(a){this.J=a;this.f={}};
130
+ _.ln=function(a,b){var c={},d=b?b.widevineVideoRobustness:void 0,e=b?b.widevineAudioRobustness:void 0,f=b?b.serverCertificate:void 0,g=a.f[_.Xd];g&&(c[_.Xd]={licenseUrl:g.licenseUrl,videoRobustness:rj(d,g.videoRobustness),audioRobustness:rj(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:qj(b?b.widevineDistinctiveIdentifierRequired:void 0,g.distinctiveIdentifierRequired,!1),persistentStateRequired:qj(b?b.widevinePersistentStateRequired:void 0,g.persistentStateRequired,!1),
131
+ serverCertificate:void 0===f?g.serverCertificate:null===f?null:typeof f===_.ug?on(f):f});(g=a.f[_.Sd])&&(c[_.Sd]={licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.f[_.Vd])&&(c[_.Vd]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});
132
+ return c};_.qn=function(a,b){b=void 0===b?!1:b;this.f=_.N.xa(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.h=b;this.buffer=this.f.buffer};_.sn=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.bk(a.f.buffer);b=_.bk(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.rn()}};_.W=function(a,b){try{a.f.setUint32(a.a,b,a.h),a.a+=4}catch(c){_.rn()}};_.rn=function(){throw new _.O(_.P,3,3E3);};_.tn=function(a,b){this.f=a;this.h=void 0===b?!0:b;this.a=0};_.un=function(a){return a.a<a.f.byteLength};
133
+ _.wn=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){_.vn()}};_.xn=function(a){try{var b=a.f.getUint16(a.a,a.h);a.a+=2;return b}catch(c){_.vn()}};_.yn=function(a){try{var b=a.f.getUint32(a.a,a.h);a.a+=4;return b}catch(c){_.vn()}};_.zn=function(a){try{var b=a.f.getInt32(a.a,a.h);a.a+=4;return b}catch(c){_.vn()}};
134
+ _.An=function(a){var b=0,c=0;try{!0===a.h?(b=a.f.getUint32(a.a,!0),c=a.f.getUint32(a.a+4,!0)):(c=a.f.getUint32(a.a,!1),b=a.f.getUint32(a.a+4,!1))}catch(d){_.vn()}if(2097151<c)throw new _.O(_.P,3,3001);a.a+=8;return c*Math.pow(2,32)+b};Bn=function(a,b){for(var c=new Uint8Array(b),d=0;d<b;d++)c[d]=_.wn(a);return c};_.Cn=function(a,b){a.a+b>a.f.byteLength&&_.vn();var c=a.a+a.f.byteOffset;c=a.f.buffer.slice(c,c+b);a.a+=b;return _.bk(c)};
135
+ _.vn=function(){throw new _.O(_.P,3,3E3,"Buffer read out of bounds.");};_.Dn=function(){this.h=[];this.f=[];this.a=!1;this.g=new _.K("clpp.mp4")};_.En=function(a){for(;_.un(a.reader)&&!a.parser.a;)a.parser.zf(a.start+a.headerSize,a.reader,a.partialOkay)};_.Fn=function(a){for(var b=_.yn(a.reader);0<b&&!a.parser.a;--b)a.parser.zf(a.start+a.headerSize,a.reader,a.partialOkay)};_.Gn=function(a){return function(b){var c=b.reader.Wa()-b.reader.getPosition();a(_.Cn(b.reader,c))}};
136
+ Hn=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.In=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};_.Jn=function(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)};Kn=function(){};Ln=function(a){var b="";try{b=_.T.ce(a)}catch(c){}return b};_.Mn=function(a){a=Ln(a);var b="";a.length&&(b=(new _.$k(a)).a);return b};
137
+ Nn=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.T.ea(a)),d=_.an(c.sinf[0]);(new _.Dn).N(_.ng,_.En).N("schi",_.En).N("tenc",function(e){e.reader.skip(6);_.wn(e.reader)&&(e.reader.skip(1),b=_.cn(_.Cn(e.reader,16)));e.parser.stop()}).parse(d)}catch(e){}return b};
138
+ On=function(a,b,c){if(!c||!c.byteLength)throw new _.O(_.P,6,6102);var d;typeof b===_.ug?d=_.T.Ff(b,!0):d=b;a=_.T.Ff(Ln(a),!0);b=new _.qn(12+a.byteLength+d.byteLength+c.byteLength,!0);_.W(b,a.byteLength);_.sn(b,_.bk(a));_.W(b,d.byteLength);_.sn(b,_.bk(d));_.W(b,c.byteLength);_.sn(b,_.bk(c));return _.bk(b.buffer)};_.Pn=function(a){var b=_.bk(a.body);b=_.$m(b);a.headers[Aa]=cd;a.body=_.T.ib("spc\x3d"+b).buffer};
139
+ _.Rn=function(a){try{var b=_.T.ea(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=jk(_.an(b))};
140
+ Xn=function(){var a=Sn;if(a===Tn)return"https://lic.drmtoday.com";if(a===Un)return"https://lic.staging.drmtoday.com";if(a===Vn)return"https://lic-demo.staging.drmtoday.com";if(a===Wn)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};ao=function(a){var b=Xn();if(a===_.Xd)return b+Yn;if(a===_.Vd)return b+Zn;if(a===_.Sd)return b+$n;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
141
+ bo=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
142
+ _.eo=function(a,b,c){b=Ln(b);c=c&&c.customData?c.customData:{};b=new _.$k(bo(b));var d=_.dl(b.f);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.T.qf(""+a)&&(d.assetId=a,co.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.T.qf(""+e)&&(d.variantId=e,co.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],co.debug("KeyId found in FPS SKD. Removing other parameters")):
143
+ a=["assetId","variantId"];b.f=_.bl(d,!1,a);"/"!==b.path||b.j.includes(b.a+"/")||(b.path="");b=_.al(b);return c.fpsContentId=b};_.go=function(a,b,c,d){d=void 0===d?!0:d;c=a.drm;c&&c.env.startsWith(Ha)?c.customData&&(_.fo(b,a),a=b.uris[0],d&&c.customData.assetId&&(a+="?assetId\x3d"+encodeURI(""+c.customData.assetId),c.customData.variantId&&(a+="\x26variantId\x3d"+encodeURI(""+c.customData.variantId)),b.uris[0]=a)):co.warn(yb)};
144
+ ho=function(a,b,c){_.go(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.sj(b.uris[0]);c.a.add(_.tf,a);b.uris[0]=c.toString()};
145
+ _.io=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.go(a,b,c,!1);b.headers[Aa]=cd;c={spc:_.Zm(b.body)};if((a=a.drm)&&a.env.startsWith(Ia)&&d){a={};var e=_.dl((new _.$k(bo(d))).f);d=e.keyId;if(e=e.assetId)co.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(co.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(co.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(co.info("Adding assetID to FPS payload:",a.assetId),c.assetId=a.assetId)}b.body=
146
+ _.T.Ed(_.bl(c,!0))};_.jo=function(a,b){co.debug("Clearing response data");if(200===b.status){var c=_.T.ea(b.data).trim();"\x3cckc\x3e"===c.substr(0,5)&&"\x3c/ckc\x3e"===c.substr(-6)&&(c=c.slice(5,-6));b.data=_.an(c).buffer}};_.ko=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(Ha))co.warn(yb);else if(c.customData&&c.customData.merchant&&!c.env.startsWith(Ia)){var d=new _.sj(b.uris[0]),e=d.Pa;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.Pa=e;b.uris[0]=d.toString()}};
147
+ _.lo=function(a,b){try{var c=_.bk(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));co.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){co.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data")}};
148
+ _.fo=function(a,b){var c=b.drm;if(c&&c.customData){var d={userId:c.customData.userId,sessionId:c.customData.sessionId,merchant:c.customData.merchant};_.N.Lc(d)&&(a.headers["dt-custom-data"]=btoa(JSON.stringify(d)));(c=c.customData.authToken)&&(a.headers["x-dt-auth-token"]=c)}};no=function(a){var b={},c=a?a[ph]:void 0;a=mo[a?a[ph]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};
149
+ oo=function(a){a=a["x-dt-li"];if(!a)return null;try{var b=JSON.parse(atob(a));a={};b.ti&&(a.requestId=b.ti);b.rpd&&(a.delay=Number(b.rpd)/1E3);return a}catch(c){return co.warn("Unable to parse DRMtoday License Info header (x-dt-li)",c),null}};_.po=function(a){this.f=a;this.a=void 0};qo=function(){this.size=0;this.a=void 0;this.g=new _.K("clpp.drm.eme.MediaKeyStatusMap")};ro=function(a,b){a.size=void 0===b?0:1;a.g.debug("Setting key status to",b);a.a=b};
150
+ to=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=so.value().get(b),c.one(a,b,d))};uo=function(){this.a=this.f=null};
151
+ vo=function(a,b){this.keySystem=a;if(a.startsWith(_.Sd))for(var c=_.w(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.bg)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.pf,distinctiveIdentifier:_.pf,initDataTypes:e.initDataTypes,sessionTypes:[zg],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var h=_.w(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])&&
152
+ (d.audioCapabilities.push(l),g=!0));if(e.videoCapabilities)for(e=_.w(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,_.$g));d=g?d:null}if(d){this.a=d;return}}c=Error(gc);c.name=Hb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
153
+ wo=function(a){this.f=null;this.h=new WebKitMediaKeys(a);this.a=new _.wi;this.j=0;this.g=new _.K(Jd);this.g.info("Created Media Keys for "+a)};
154
+ xo=function(a,b){a.f=b;_.zi(a.a);if(!b)return Promise.resolve();a.a.on(b,xe,function(c){_.ci("AppleEmeManager.cancelNativeMediaEncryptedEvent_",c);"MediaEncryptedEvent"in window&&c instanceof MediaEncryptedEvent&&(a.g.info("Cancel native MediaEncryptedEvent when using Apple-prefixed EME"),c.stopImmediatePropagation())});a.a.on(b,lh,function(c){a.g.debug("Handle webkitNeedKey event");c=_.bk(c.initData);if(_.ik(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");
155
+ c=_.T.Jc(c.subarray(4),!0);c=_.T.ib(c);var d=new Event(xe);d.initDataType="skd";d.initData=jk(c);a.f.dispatchEvent(d)});to(b,HTMLMediaElement.HAVE_METADATA,a.a,function(){return b.webkitSetMediaKeys(a.h)});return Promise.resolve()};yo=function(a,b){_.Am.call(this);this.a=null;this.o=a;this.f=this.h=null;this.j=new _.wi;this.sessionId=b;this.expiration=NaN;this.closed=new _.xk;this.l=!1;this.keyStatuses=new qo;this.g=new _.K(Jd)};zo=function(a,b){ro(a.keyStatuses,b);a.dispatchEvent(new _.L(Ke))};
156
+ Ao=function(){};Bo=function(){this.a=null;this.g=new _.K("clpp.drm.eme.StandardEmeManager")};Co=function(){};Do=function(){this.f=this.a=null;this.h="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.h="webkit")};
157
+ Eo=function(a,b,c,d){this.h=a;this.a=this.keySystem=c;a=!1;c===_.qf&&(this.a=hh,a=!1);var e=!1;d=_.w(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=_.w(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=_.w(f.videoCapabilities),n=g.next();!n.done;n=g.next())m=n.value,m.contentType&&(l=!0,b.canPlayType(m.contentType,
158
+ this.a)&&(h.push(m),e=!0));l||(e=b.canPlayType(_.$g,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.bg||a||(e=!1);if(e){this.f=f;return}}b=gc;if(c===_.qf||c===_.Xd)b="None of the requested configurations were supported.";c=Error(b);c.name=Hb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};Fo=function(a,b){this.h=a;this.o=b;this.a=null;this.f=new _.wi;this.j=[];this.l=new Map};
159
+ Io=function(a,b){a.a=b;_.zi(a.f);b&&(a.f.on(b,a.h+"needkey",function(c){var d=new Event(xe);d.initDataType=_.xd;d.initData=jk(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.h+"keymessage",function(c){var d=Go(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.L(_.Ze,{messageType:e?Ne:Me,message:c.message});_.ci("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.di("Session not found",c.sessionId)}),a.f.on(b,a.h+"keyadded",function(c){(c=
160
+ Go(a,c.sessionId))&&c.ready()}),a.f.on(b,a.h+"keyerror",function(c){var d=Go(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?Ho(d,_.rf):1===e?Ho(d,"expired"):Ho(d,_.Je))}}))};
161
+ Go=function(a,b){var c=a.l.get(b);return c?c:(c=a.j.shift())?(c.sessionId=b,a.l.set(b,c),c):null};Jo=function(a,b,c,d){_.Am.call(this);this.w=a;this.j=b;this.o=!1;this.a=this.f=null;this.h=c;this.l=d;this.sessionId="";this.expiration=NaN;this.closed=new _.xk;this.keyStatuses=new qo};
162
+ Lo=function(a,b,c){if(a.o)return Promise.reject(Error("The session is already initialized."));a.o=!0;try{if(a.l===_.uf)if(c)var d=_.bk(_.T.ib("LOAD_SESSION|"+c));else{var e=_.T.ib("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.bk(b),e.byteLength);d=f}else d=_.bk(b)}catch(h){return Promise.reject(h)}a.f=new _.xk;var g=Ko(a,"generateKeyRequest");try{a.j[g](a.h,d)}catch(h){if(h.name!==ob)return a.f=null,Promise.reject(h);(new _.mi(function(){try{a.j[g](a.h,d)}catch(l){a.f.reject(l),
163
+ a.f=null}})).fa(.01)}return a.f};Mo=function(a,b,c){if(a.a)a.a.then(function(){return Mo(a,b,c)})["catch"](function(){return Mo(a,b,c)});else{a.a=b;if(a.h===hh){var d=_.T.ea(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=_.an(e.keys[0].k);e=_.an(e.keys[0].kid)}else d=_.bk(c),e=null;var f=Ko(a,"addKey");try{a.j[f](a.h,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};Ho=function(a,b){ro(a.keyStatuses,b);a.dispatchEvent(new _.L(Ke))};
164
+ Ko=function(a,b){return a.w?a.w+b.charAt(0).toUpperCase()+b.slice(1):b};To=function(){};Uo=function(){};Vo=function(){};Wo=function(){};Zo=function(a,b){var c=Xo;if(a){var d=c.find(function(e){return e.a()===a});if(d)return Yo.info(oc+d.a()),d.create();Yo.info("Cannot create selected EME manager, falling back to the default.")}if(b&&(d=c.find(function(e){return e.a()===b})))return Yo.info(oc+d.a()),d.create();c=c[0];if(!c)throw Error("Missing EME managers.");Yo.info(oc+c.a());return c.create()};
165
+ _.$o=function(){};ap=function(a,b,c){this.j=new Uint8Array(a);this.a=b;this.f=c};bp=function(){ap.apply(this,arguments)};_.dp=function(a){var b=_.bn(a);b=parseInt(b.byteLength,10).toString(16);b=_.bn("12"+b+a);return new bp(cp,a,b)};
166
+ _.ep=function(a){function b(t){switch(t){case 0:do if(!_.un(d))throw Error("not enough data to skip!");while(_.wn(d)&128);break;case 1:d.skip(8);break;case 2:d.skip(c());break;case 3:for(;4!==(t=c()&7);)b(t);break;case 5:d.skip(4);break;default:throw Error("invalid wire type "+t);}}function c(){for(var t=_.wn(d),v=(t&127)>>>0,z=7;128<=t&&28>=z;)t=_.wn(d),v=(v|(t&(28>z?127:15))<<z)>>>0,z+=7;return 28<z?-1:v}var d=new _.tn(new DataView(a.buffer,a.byteOffset,a.byteLength),!1);a=_.yn(d);var e=_.yn(d);
167
+ e=_.In(e);var f=_.yn(d),g=f>>>24;f&=16777215;var h=_.Cn(d,16);h=_.cn(h);if(0<g){var l=_.yn(d);d.skip(16*l)}l=_.yn(d);for(var m=[],n=null;_.un(d);){var p=c(),q=p&7;p>>>=3;if(2===q){q=c();if(0>q)throw Error("unable to read length of field "+p);q=Bn(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.ci("Parsed WV PSSH Box","size",a,"name",e,Wg,g,"flags",f,"size",l,"systemId",h,"contentId (base64)",n?_.Zm(n):"","keyIds",m.map(function(t){return _.cn(t)}));return 0<m.length?_.dp(_.cn(m[0])):null};
168
+ _.fp=function(a,b,c,d,e,f){f=void 0===f?null:f;ap.call(this,a,b,d);this.version=e;this.h=c;this.l=f};
169
+ _.lp=function(a){var b=_.gp;a:{var c=new _.tn(new DataView(a.buffer),!0);_.yn(c);for(_.xn(c);_.un(c);)if(1===_.xn(c)){var d=_.xn(c);c=_.Cn(c,d);break a}c=null}c||(c=a);a=_.T.Jc(c,!0);d=b.we(a,"WRMHEADER");a=d.getAttribute(Wg)||"";d=b.Ma(d,"DATA");var e=b.Ma(d,"LA_URL");b=e?b.sa(e):"";e=_.gp;var f=e.Ma(d,"KID");if(f)if(f=e.sa(f)){var g=e.Ma(d,sa);e=g?e.sa(g):null;e={value:f,Zf:e}}else e=null;else e=null;d=e?[e]:(e=hp(d))?[e]:(d=ip(d))?d:null;e=d&&d[0]||{};d=e.Zf;e=_.an(void 0===e.value?"":e.value);
170
+ e=_.jp(e);e=_.cn(e);return new _.fp(_.kp,e,b,c,a,d)};_.jp=function(a){var b=[];b.push(a[3]);b.push(a[2]);b.push(a[1]);b.push(a[0]);b.push(a[5]);b.push(a[4]);b.push(a[7]);b.push(a[6]);a=_.bk(a);a.set(b,0);return a};hp=function(a){var b=_.gp;a=b.Ma(a,"PROTECTINFO");if(!a)return null;var c=b.Ma(a,"KID");if(!c)return null;b=c.getAttribute("VALUE");if(!b)return null;a=c.getAttribute(sa);c=c.getAttribute("ALGID");return{value:b,Zf:a,Tj:c}};
171
+ ip=function(a){var b=_.gp;a=b.Ma(a,"PROTECTINFO");if(!a)return null;a=b.Ma(a,"KIDS");if(!a)return null;a=b.Z(a,"KID");if(!a.length)return null;b=[];a=_.w(a);for(var c=a.next();!c.done;c=a.next()){var d=c.value;if(c=d.getAttribute("VALUE")){var e=d.getAttribute(sa);d=d.getAttribute("ALGID");b.push({value:c,Zf:e,Tj:d})}}return b.length?b:null};_.np=function(a){mp&&performance.mark(a)};
172
+ _.pp=function(a,b,c){mp&&(b=performance.measure(a,b,c),null!=b&&op.info('Step: "'+a+'" took '+b.duration.toFixed(0)+" ms."))};qp=function(a){this.f=[];this.h=[];this.a=[];8<=a.byteLength&&(new _.Dn).aa("pssh",this.j.bind(this)).parse(a.buffer);0===this.a.length&&_.Yh("No pssh box found!")};
173
+ _.up=function(a,b){var c=this;this.D=a;this.Zb=b;this.K=new Set;this.C=this.J=this.l=null;this.ca=!1;this.a=null;this.L=rp;this.B=new _.wi;this.P=new fn;this.h=new Map;this.M=[];this.I=new _.xk;this.Lb=0;this.f=null;this.w=function(d){c.A=!0;c.G=!1;c.I.reject(d);a.onError(d)};this.o=new Map;this.ja=new Map;this.da=new _.mi(function(){return sp(c)});this.j=!1;this.Ea=new _.xk;this.H=!1;this.ga=[];this.kb=!1;this.Y=0;this.g=new _.K("clpp.drm.DrmEngine");this.ya=(new _.mi(function(){tp(c)})).Kb(1);this.I["catch"](function(){});
174
174
  this.A=this.G=!1;this.U=null};
175
- jp=function(a){var b,c,d,e,f;return _.I(function(g){switch(g.a){case 1:a.B.release();a.B=null;a.P.release();a.P=null;a.A=!1;a.G=!1;a.I.reject();a.ya.stop();a.ya=null;a.da.stop();a.da=null;b=Array.from(a.h.keys());c=_.w(a.h.values());for(d=c.next();!d.done;d=c.next())e=d.value,e.hd&&e.hd.stop();a.h.clear();return _.y(g,Promise.all(b.map(function(h){return Promise.resolve().then(function(){var l;return _.I(function(m){if(1==m.a)return a.g.debug("Closing session",h.sessionId),_.C(m,2),_.y(m,ip(h),4);
176
- if(2!=m.a)return _.uh(m,0);l=_.E(m);a.g.warn("Error while closing session",l);_.B(m)})})})),2);case 2:if(!a.C){g.F(3);break}_.C(g,4);return _.y(g,a.l.Nd(null),6);case 6:_.uh(g,5);break;case 4:f=_.E(g),a.g.warn("Error while resetting media keys",f);case 5:a.C=null;case 3:a.l=null,a.a=null,a.K.clear(),a.J=null,a.M=[],a.f=null,a.w=null,a.D=null,a.$=0,a.U=null,_.B(g)}})};
177
- _.mp=function(a,b,c){c=void 0===c?[]:c;a.L=kp;a.M=c;a.H=0<c.length;a.g.debug("Using Persisted Licenses: "+a.H);a.f&&a.f.enableSessionCacheForSkd&&a.g.info("Enabled session cache for SKD license requests");return _.lp(a,b)};
178
- sp=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.N.fh(a.f.Pa);np(b,d)}var e=a.f.Pa[_.Kd];d=b.some(function(g){return g.drmInfos.some(function(h){return h.keySystem===_.Kd})});if(!1!==a.f.Qo&&_.Gl()&&!d&&e){var f=_.w(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos.push({keySystem:_.Kd,licenseServerUri:e.licenseUrl,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:[],
179
- periodId:null})}if(e=op(a))for(f=_.w(b),d=f.next();!d.done;d=f.next())d.value.drmInfos=[e];d=pp(b);qp(a,d);d=_.w(d);for(e=d.next();!e.done;e=d.next())rp(e.value,a.f.Pa);return c};_.lp=function(a,b){var c=sp(a,b),d=pp(b);d=_.w(d);for(var e=d.next();!e.done;e=d.next())tp(a,e.value,a.f.Pa);d=up(a,b);if(!d.size)return a.ca=!0,Promise.resolve();_.bp(be);d=_.vp(a,d);return(c?d:d["catch"](function(){})).then(function(){_.bp(ae);_.cp("DRM queryMediaKeys_()",be,ae)})};
180
- pp=function(a){var b=[];a=_.w(a);for(var c=a.next();!c.done;c=a.next()){c=_.w(c.value.drmInfos);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};qp=function(a,b){for(var c=_.w(b),d=c.next();!d.done;d=c.next())d=d.value,""===d.licenseServerUri||a.f.Pa[d.keySystem]||(a.f.Pa[d.keySystem]={licenseUrl:""})};
181
- wp=function(a){var b;return _.I(function(c){switch(c.a){case 1:if(a.l.Xe())return c["return"]();if(!a.U){c.F(2);break}return _.y(c,a.U,3);case 3:return c["return"]();case 2:return _.C(c,4),a.U=a.l.Nd(a.J),_.y(c,a.U,6);case 6:_.uh(c,0);break;case 4:b=_.E(c);if(a.j)return c["return"]();a.w(new _.P(_.Q,6,6003,b.message,b));_.B(c)}})};
182
- yp=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Handle encrypted event for type "+b.initDataType),_.y(c,wp(a),2);if(!b.initData)return c["return"]();_.xp(a,b.initDataType,_.Hj(b.initData));_.B(c)})};
183
- _.Ep=function(a,b){if(!a.J)return Zh(a.B,b,function(){a.w(new _.P(_.Q,6,6010))}),Promise.resolve();a.C=b;a.l.Ne(b);a.B.one(a.C,_.of,function(){return zp(a)});a.B.on(a.C,_.Sg,function(e){var f=a.G;a.G=!a.A;!f&&a.G&&(a.g.info("Waiting for DRM license key delivery"),a.D.onEvent(e))});var c=a.a.initData.find(function(e){return 0<e.initData.length}),d=Promise.resolve();if(c||a.l.Md()!==Ap||a.M.length)d=wp(a);c=Promise.resolve();_.xk()&&38===_.Dl().major||(a.a&&a.a.keySystem!==_.hf&&!a.a.serverCertificate&&
184
- (c=Bp(a)),c=c.then(function(){return _.Cp(a)}));return Promise.all([d,c]).then(function(){a.j||(_.Dp(a),a.B.on(a.C,pe,function(e){return yp(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.a&&a.a.keySystem===_.Qd&&1>a.$&&a.a.serverCertificate&&a.a.serverCertificate.length)return a.g.warn("Detected invalid widevine server certificate!. Retrying"),a.w(new _.P(1,6,6004)),a.a.serverCertificate=null,a.$++,_.Ep(a,b);1<=a.$&&a.g.info("Could not get valid widevine server certificate. Giving up");
185
- throw e;}})};_.Cp=function(a){var b,c;return _.I(function(d){if(1==d.a){if(!(a.J&&a.a&&a.a.serverCertificate&&a.a.serverCertificate.length))return d.F(0);_.C(d,3);return _.y(d,a.J.setServerCertificate(a.a.serverCertificate),5)}if(3!=d.a)return b=d.f,void 0===b||b||a.g.debug("Server certificates are not supported by the key system. The server certificate has been ignored."),_.uh(d,0);c=_.E(d);throw new _.P(_.Q,6,6004,{browserError:c.message});})};
186
- Bp=function(a){var b=a.keySystem(),c=a.f.Pa[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.D.getConfiguration();return Fp(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,h=f&&f.certificateResponse;f=_.gk([d],a.f.attemptParameters);f.type=3;f.licenseRequestType=sd;g&&f.requestModifiers.push(function(l){return g(e,l)});h&&f.responseModifiers.push(function(l){return h(e,l)});a.g.debug("Fetching certificate");return a.D.xb.fetch(f).T}).then(function(f){a.a.serverCertificate=
187
- _.Hj(f.data)})["catch"](function(f){var g=f.data.headers;g=Object.assign({message:$a,url:f.data.url,status:f.data.status,response:f.data.response},g?{headers:g}:{},ao(g));throw new _.P(_.Q,6,6100,g,f);})};Fp=function(a,b){var c,d;return _.I(function(e){c=a.D.md();return c?(d=b&&b.drm&&b.drm.customData)?_.y(e,c(d),0):e["return"]():e["return"]()})};Gp=function(a,b){if(!a)return!1;for(var c=0;c<b.Te.length;c++)if(_.Wj(a,b.Te[c]))return!0;return!1};
188
- _.Dp=function(a){for(var b=a.a?a.a.initData||[]:[],c=_.w(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=!_.wk(2);if(a.f.enforceSingleSession&&!a.keySystem().startsWith(_.Kd)){var f=a.h.values();f=_.w(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.Wj(d.initData,g.initData)?(a.g.info("Skipping Session creation. Existing init data in single session mode!"),e=!1):g.periodId===d.periodId&&(a.g.info("Skipping Session creation. Merging init data for period in single session mode for Key ID "+(d.keyId+
189
- ".")),Gp(d.initData,g)||(g.Te.push(d.initData),d.keyId&&!g.qb.includes(d.keyId)&&g.qb.push(d.keyId),a.o.get(d.keyId)||a.o.set(d.keyId,jg)),e=!1)}!e||a.H&&a.L===kp||(_.Hp(a,d.keyId,d.initData)&&(e=!1),e&&(a.g.info("Request new media key session on create"),Ip(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.w(a.M);for(d=c.next();!d.done;d=c.next())_.Jp(a,d.value);b.length||a.M.length||(a.A||a.g.info(Ba),a.A=!0,a.G=!1,a.I.resolve());return a.I};
190
- _.xp=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.H||a.L!==kp)){var e=a.keySystem();if(!e.startsWith(_.Kd)&&b===_.qd){var f=new dp(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.C.webkitCurrentPlaybackTargetIsWireless||
191
- _.wk(2)||a.keySystem().startsWith(_.Kd)||!_.Hp(a,d,c,!0))&&Ip(a,d,null,b,c)}};
192
- _.Hp=function(a,b,c,d){d=void 0===d?!1:d;for(var e=_.w(a.h.keys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.h.get(f);if(_.Wj(c,g.initData))return b?g.qb.includes(b)?d&&a.g.info("Skipping Session creation. License for init data with Key ID "+(b+" was already requested in Session: '")+(f.sessionId+"'. ")):(g.qb.push(b),a.o.get(b)||a.o.set(b,jg),d&&a.g.info(Wb+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.g.info(Wb+(f.sessionId+"'")),!0;if(Gp(c,g))return d&&a.g.info("Skipping Session creation. License for init data was already requested [extra]"),
193
- !0}return!1};Kp=function(a){var b=Infinity;a=a.h.keys();a=_.w(a);for(var c=a.next();!c.done;c=a.next())c=c.value,isNaN(c.expiration)||(b=Math.min(b,c.expiration));return b};
194
- up=function(a,b){var c=new Set(pp(b)),d=a.H?_.Tf:_.gf,e=a.H?[_.mf]:[qg],f=new Map,g=_.w(c);for(c=g.next();!c.done;c=g.next())c=c.value,f.set(c.keySystem,{initDataTypes:[_.qd],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.gf,persistentState:d,sessionTypes:e,label:c.keySystem,drmInfos:[]});d={};e=_.w(b);for(c=e.next();!c.done;d={Df:d.Df,Bd:d.Bd,Lf:d.Lf,Cd:d.Cd},c=e.next()){c=c.value;g=c.audio;var h=c.video;d.Df=g?_.Lp(g):"";d.Bd=null;g&&"ac-3"===g.codecs.toLowerCase()&&_.wk()&&(d.Bd=
195
- _.Lp(g,_.oe));d.Lf=h?_.Lp(h):"";d.Cd=null;h&&"ac-3"===h.codecs.toLowerCase()&&_.wk()&&(d.Cd=_.Lp(h,_.oe));var l={},m=_.w(c.drmInfos);for(c=m.next();!c.done;l={eb:l.eb},c=m.next())c=c.value,l.eb=f.get(c.keySystem),l.eb.drmInfos.push(c),c.initData&&c.initData.length&&(l.eb.initDataTypes=_.gh(new Set(c.initData.map(function(n){return n.initDataType}))).concat()),c.distinctiveIdentifierRequired&&(l.eb.distinctiveIdentifier=_.Tf),c.persistentStateRequired&&(l.eb.persistentState=_.Tf),g&&_.Bi(c.audioRobustness).forEach(function(n,
196
- p){return function(q){var u={robustness:q||"",contentType:n.Df};p.eb.audioCapabilities.find(function(v){return v.robustness===u.robustness&&v.contentType===u.contentType})||p.eb.audioCapabilities.push(u);n.Bd&&p.eb.audioCapabilities.push({robustness:q||"",contentType:n.Bd})}}(d,l)),h&&_.Bi(c.videoRobustness).forEach(function(n,p){return function(q){var u={robustness:q||"",contentType:n.Lf};p.eb.videoCapabilities.find(function(v){return v.robustness===u.robustness&&v.contentType===u.contentType})||
197
- p.eb.videoCapabilities.push(u);n.Cd&&p.eb.videoCapabilities.push({robustness:q||"",contentType:n.Cd})}}(d,l))}return f};_.Lp=function(a,b){var c=_.tl(a.mimeType,b||a.codecs);if(_.sl(c,a.type)){var d=a.type,e=_.sl(c,d);e&&(e=e(),c=e.convertCodecs(d,c),e.destroy())}return c};
198
- _.vp=function(a,b){function c(m,n,p){n.drmInfos.some(function(q){return!!q.licenseServerUri})===m&&(f=f["catch"](function(){if(a.j)return null;if(p===_.Od){if(_.Bl()&&!a.f.Pa[p].useLegacySystem)return n.label=Pd,a.l.Tb(Pd,[n])["catch"](function(){a.g.warn("Unable to create com.microsoft.playready.recommendation. Falling back to com.microsoft.playready.");n.label=_.Od;Mp(n);return a.l.Tb(p,[n])});Mp(n)}if(p===_.Qd&&a.f.widevineVersion!==_.Qd){var q=a.f.widevineVersion;if(!q.startsWith(_.Qd))return a.g.error('Invalid "widevineVersion" value "'+
199
- q+'".'),Promise.reject();var u=Object.assign({},n,{label:q,distinctiveIdentifier:_.gf,persistentState:_.gf});return a.l.Tb(q,[u])["catch"](function(){return a.l.Tb(p,[n])})}return a.l.Tb(p,[n])["catch"](function(v){a:{if(p===_.Qd&&Np(n)){var z=_.yk();if(Np(n)&&z.os===Tl&&z.browser===ud){a.g.warn("requestMediaKeySystemAccess() failed",v);a.g.warn("Will try to recover by removing the robustness attribute of videoCapabilities and audioCapabilities.");Mp(n);v=a.l.Tb(p,[n]);break a}}throw v;}return v})}))}
200
- if(1===b.size&&b.has(""))return Promise.reject(new _.P(_.Q,6,6E3));null===a.l&&(a.l=No(a.f.emeApi,a.jc));for(var d=_.w(b.values()),e=d.next();!e.done;e=d.next())e=e.value,0===e.audioCapabilities.length&&delete e.audioCapabilities,0===e.videoCapabilities.length&&delete e.videoCapabilities;var f=d=new _.ok,g=a.f.preferredDrmSystem;if(!g)if(e=_.yk(),e.os===Vl&&10<=e.osVersion.major&&"edge"===e.browser)g=_.Od;else if("safari"===e.browser)g=_.Kd;else if(e.browser===ud||"firefox"===e.browser)g=_.Qd;g&&
201
- (e=b.get(g))&&(c(!0,e,g),c(!1,e,g));e={};for(var h=_.w([!0,!1]),l=h.next();!l.done;e={Kf:e.Kf},l=h.next())e.Kf=l.value,b.forEach(function(m){return function(n,p){p!==g&&c(m.Kf,n,p)}}(e));f=f["catch"](function(){throw new _.P(_.Q,6,6001,"Failed to get MediaKeySystemAccess.");});f=f.then(function(m){if(a.j)return null;a.K.clear();var n=m.getConfiguration();a.g.info("Got MediaKeySystemAccess with configuration",n);var p=n.videoCapabilities||[],q=_.w(n.audioCapabilities||[]);for(n=q.next();!n.done;n=
202
- q.next())a.K.add(n.value.contentType.toLowerCase());p=_.w(p);for(n=p.next();!n.done;n=p.next())a.K.add(n.value.contentType.toLowerCase());p=m.keySystem;n=b.get(_.Op(m.keySystem));q=[];var u=[],v=[],z=[];Pp(n.drmInfos,q,u,v,z);1<u.length&&_.Jh("Multiple unique server certificates found! Only the first will be used.");1<q.length&&_.Jh("Multiple unique license server URIs found! Only the first will be used.");a.a={keySystem:p,licenseServerUri:q[0],distinctiveIdentifierRequired:n.distinctiveIdentifier===
203
- _.Tf,persistentStateRequired:n.persistentState===_.Tf,audioRobustness:n.audioCapabilities?n.audioCapabilities[0].robustness:"",videoRobustness:n.videoCapabilities?n.videoCapabilities[0].robustness:"",serverCertificate:u[0],initData:v,keyIds:z,periodId:null};if(!a.a.licenseServerUri)throw new _.P(_.Q,6,6012,a.a.keySystem);return m.createMediaKeys()}).then(function(m){a.j||(a.g.info("Created MediaKeys for key system",a.a.keySystem),a.J=m,a.ca=!0)})["catch"](function(m){if(!a.j){a.a=null;a.K.clear();
204
- if(m instanceof _.P)throw m;throw new _.P(_.Q,6,6002,{browserError:m.message});}});d.reject();return f};
205
- op=function(a){a=_.N.fh(a.f.Pa[_.hf]||{});if(0===a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.Uj(f),h=_.Uj(e);g={kty:"oct",kid:_.Sj(g,!1),k:_.Sj(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.T.cb(d),initDataType:"keyids"}];return{keySystem:_.hf,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
175
+ wp=function(a){var b,c,d,e,f;return _.I(function(g){switch(g.a){case 1:a.B.release();a.B=null;a.P.release();a.P=null;a.A=!1;a.G=!1;a.I.reject();a.ya.stop();a.ya=null;a.da.stop();a.da=null;b=Array.from(a.h.keys());c=_.w(a.h.values());for(d=c.next();!d.done;d=c.next())e=d.value,e.qd&&e.qd.stop();a.h.clear();return _.y(g,Promise.all(b.map(function(h){return Promise.resolve().then(function(){var l;return _.I(function(m){if(1==m.a)return a.g.debug("Closing session",h.sessionId),_.D(m,2),_.y(m,vp(h),4);
176
+ if(2!=m.a)return _.Jh(m,0);l=_.H(m);a.g.warn("Error while closing session",l);_.C(m)})})})),2);case 2:if(!a.C){g.F(3);break}_.D(g,4);return _.y(g,a.l.Td(null),6);case 6:_.Jh(g,5);break;case 4:f=_.H(g),a.g.warn("Error while resetting media keys",f);case 5:a.C=null;case 3:a.l=null,a.a=null,a.K.clear(),a.J=null,a.M=[],a.f=null,a.w=null,a.D=null,a.Y=0,a.U=null,_.C(g)}})};
177
+ _.zp=function(a,b,c){c=void 0===c?[]:c;a.L=xp;a.M=c;a.H=0<c.length;a.g.debug("Using Persisted Licenses: "+a.H);a.f&&a.f.enableSessionCacheForSkd&&a.g.info("Enabled session cache for SKD license requests");return _.yp(a,b)};
178
+ Fp=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.N.kh(a.f.Sa);Ap(b,d)}var e=a.f.Sa[_.Sd];d=b.some(function(g){return g.drmInfos.some(function(h){return h.keySystem===_.Sd})});if(!1!==a.f.ip&&_.Ll()&&!d&&e){var f=_.w(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos.push({keySystem:_.Sd,licenseServerUri:e.licenseUrl,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:[],
179
+ periodId:null})}if(e=Bp(a))for(f=_.w(b),d=f.next();!d.done;d=f.next())d.value.drmInfos=[e];d=Cp(b);Dp(a,d);d=_.w(d);for(e=d.next();!e.done;e=d.next())Ep(e.value,a.f.Sa);return c};_.yp=function(a,b){var c=Fp(a,b),d=Cp(b);d=_.w(d);for(var e=d.next();!e.done;e=d.next())Gp(a,e.value,a.f.Sa);d=Hp(a,b);if(!d.size)return a.ca=!0,Promise.resolve();_.np(ie);d=_.Ip(a,d);return(c?d:d["catch"](function(){})).then(function(){_.np(he);_.pp("DRM queryMediaKeys_()",ie,he)})};
180
+ Cp=function(a){var b=[];a=_.w(a);for(var c=a.next();!c.done;c=a.next()){c=_.w(c.value.drmInfos);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};Dp=function(a,b){for(var c=_.w(b),d=c.next();!d.done;d=c.next())d=d.value,""===d.licenseServerUri||a.f.Sa[d.keySystem]||(a.f.Sa[d.keySystem]={licenseUrl:""})};
181
+ Jp=function(a){var b;return _.I(function(c){switch(c.a){case 1:if(a.l.df())return c["return"]();if(!a.U){c.F(2);break}return _.y(c,a.U,3);case 3:return c["return"]();case 2:return _.D(c,4),a.U=a.l.Td(a.J),_.y(c,a.U,6);case 6:_.Jh(c,0);break;case 4:b=_.H(c);if(a.j)return c["return"]();a.w(new _.O(_.P,6,6003,b.message,b));_.C(c)}})};
182
+ Lp=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Handle encrypted event for type "+b.initDataType),_.y(c,Jp(a),2);if(!b.initData)return c["return"]();_.Kp(a,b.initDataType,_.bk(b.initData));_.C(c)})};
183
+ _.Rp=function(a,b){if(!a.J)return xi(a.B,b,function(){a.w(new _.O(_.P,6,6010))}),Promise.resolve();a.C=b;a.l.Ue(b);a.B.one(a.C,_.wf,function(){return Mp(a)});a.B.on(a.C,_.gh,function(e){var f=a.G;a.G=!a.A;!f&&a.G&&(a.g.info("Waiting for DRM license key delivery"),a.D.onEvent(e))});var c=a.a.initData.find(function(e){return 0<e.initData.length}),d=Promise.resolve();if(c||a.l.Sd()!==Np||a.M.length)d=Jp(a);c=Promise.resolve();_.Gk()&&38===_.Il().major||(a.a&&a.a.keySystem!==_.qf&&!a.a.serverCertificate&&
184
+ (c=Op(a)),c=c.then(function(){return _.Pp(a)}));return Promise.all([d,c]).then(function(){a.j||(_.Qp(a),a.B.on(a.C,xe,function(e){return Lp(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.a&&a.a.keySystem===_.Xd&&1>a.Y&&a.a.serverCertificate&&a.a.serverCertificate.length)return a.g.warn("Detected invalid widevine server certificate!. Retrying"),a.w(new _.O(1,6,6004)),a.a.serverCertificate=null,a.Y++,_.Rp(a,b);1<=a.Y&&a.g.info("Could not get valid widevine server certificate. Giving up");
185
+ throw e;}})};_.Pp=function(a){var b,c;return _.I(function(d){if(1==d.a){if(!(a.J&&a.a&&a.a.serverCertificate&&a.a.serverCertificate.length))return d.F(0);_.D(d,3);return _.y(d,a.J.setServerCertificate(a.a.serverCertificate),5)}if(3!=d.a)return b=d.f,void 0===b||b||a.g.debug("Server certificates are not supported by the key system. The server certificate has been ignored."),_.Jh(d,0);c=_.H(d);throw new _.O(_.P,6,6004,{browserError:c.message});})};
186
+ Op=function(a){var b=a.keySystem(),c=a.f.Sa[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.D.getConfiguration();return Sp(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,h=f&&f.certificateResponse;f=_.pk([d],a.f.attemptParameters);f.type=3;f.licenseRequestType=zd;g&&f.requestModifiers.push(function(l){return g(e,l)});h&&f.responseModifiers.push(function(l){return h(e,l)});a.g.debug("Fetching certificate");return a.D.Eb.fetch(f).T}).then(function(f){a.a.serverCertificate=
187
+ _.bk(f.data)})["catch"](function(f){var g=f.data.headers;g=Object.assign({message:db,url:f.data.url,status:f.data.status,response:f.data.response},g?{headers:g}:{},no(g));throw new _.O(_.P,6,6100,g,f);})};Sp=function(a,b){var c,d;return _.I(function(e){c=a.D.vd();return c?(d=b&&b.drm&&b.drm.customData)?_.y(e,c(d),0):e["return"]():e["return"]()})};Tp=function(a,b){if(!a)return!1;for(var c=0;c<b.$e.length;c++)if(_.dn(a,b.$e[c]))return!0;return!1};
188
+ _.Qp=function(a){for(var b=a.a?a.a.initData||[]:[],c=_.w(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=!_.Fk(2);if(a.f.enforceSingleSession&&!a.keySystem().startsWith(_.Sd)){var f=a.h.values();f=_.w(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.dn(d.initData,g.initData)?(a.g.info("Skipping Session creation. Existing init data in single session mode!"),e=!1):g.periodId===d.periodId&&(a.g.info("Skipping Session creation. Merging init data for period in single session mode for Key ID "+(d.keyId+
189
+ ".")),Tp(d.initData,g)||(g.$e.push(d.initData),d.keyId&&!g.wb.includes(d.keyId)&&g.wb.push(d.keyId),a.o.get(d.keyId)||a.o.set(d.keyId,sg)),e=!1)}!e||a.H&&a.L===xp||(_.Up(a,d.keyId,d.initData)&&(e=!1),e&&(a.g.info("Request new media key session on create"),Vp(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.w(a.M);for(d=c.next();!d.done;d=c.next())_.Wp(a,d.value);b.length||a.M.length||(a.A||a.g.info(Ga),a.A=!0,a.G=!1,a.I.resolve());return a.I};
190
+ _.Kp=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.H||a.L!==xp)){var e=a.keySystem();if(!e.startsWith(_.Sd)&&b===_.xd){var f=new qp(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.C.webkitCurrentPlaybackTargetIsWireless||
191
+ _.Fk(2)||a.keySystem().startsWith(_.Sd)||!_.Up(a,d,c,!0))&&Vp(a,d,null,b,c)}};
192
+ _.Up=function(a,b,c,d){d=void 0===d?!1:d;for(var e=_.w(a.h.keys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.h.get(f);if(_.dn(c,g.initData))return b?g.wb.includes(b)?d&&a.g.info("Skipping Session creation. License for init data with Key ID "+(b+" was already requested in Session: '")+(f.sessionId+"'. ")):(g.wb.push(b),a.o.get(b)||a.o.set(b,sg),d&&a.g.info(Zb+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.g.info(Zb+(f.sessionId+"'")),!0;if(Tp(c,g))return d&&a.g.info("Skipping Session creation. License for init data was already requested [extra]"),
193
+ !0}return!1};Xp=function(a){var b=Infinity;a=a.h.keys();a=_.w(a);for(var c=a.next();!c.done;c=a.next())c=c.value,isNaN(c.expiration)||(b=Math.min(b,c.expiration));return b};
194
+ Hp=function(a,b){var c=new Set(Cp(b)),d=a.H?_.bg:_.pf,e=a.H?[_.uf]:[zg],f=new Map,g=_.w(c);for(c=g.next();!c.done;c=g.next())c=c.value,f.set(c.keySystem,{initDataTypes:[_.xd],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.pf,persistentState:d,sessionTypes:e,label:c.keySystem,drmInfos:[]});d={};e=_.w(b);for(c=e.next();!c.done;d={If:d.If,Hd:d.Hd,Qf:d.Qf,Jd:d.Jd},c=e.next()){c=c.value;g=c.audio;var h=c.video;d.If=g?_.Yp(g):"";d.Hd=null;g&&"ac-3"===g.codecs.toLowerCase()&&_.Fk()&&(d.Hd=
195
+ _.Yp(g,_.we));d.Qf=h?_.Yp(h):"";d.Jd=null;h&&"ac-3"===h.codecs.toLowerCase()&&_.Fk()&&(d.Jd=_.Yp(h,_.we));var l={},m=_.w(c.drmInfos);for(c=m.next();!c.done;l={jb:l.jb},c=m.next())c=c.value,l.jb=f.get(c.keySystem),l.jb.drmInfos.push(c),c.initData&&c.initData.length&&(l.jb.initDataTypes=_.vh(new Set(c.initData.map(function(n){return n.initDataType}))).concat()),c.distinctiveIdentifierRequired&&(l.jb.distinctiveIdentifier=_.bg),c.persistentStateRequired&&(l.jb.persistentState=_.bg),g&&_.Vi(c.audioRobustness).forEach(function(n,
196
+ p){return function(q){var t={robustness:q||"",contentType:n.If};p.jb.audioCapabilities.find(function(v){return v.robustness===t.robustness&&v.contentType===t.contentType})||p.jb.audioCapabilities.push(t);n.Hd&&p.jb.audioCapabilities.push({robustness:q||"",contentType:n.Hd})}}(d,l)),h&&_.Vi(c.videoRobustness).forEach(function(n,p){return function(q){var t={robustness:q||"",contentType:n.Qf};p.jb.videoCapabilities.find(function(v){return v.robustness===t.robustness&&v.contentType===t.contentType})||
197
+ p.jb.videoCapabilities.push(t);n.Jd&&p.jb.videoCapabilities.push({robustness:q||"",contentType:n.Jd})}}(d,l))}return f};_.Yp=function(a,b){var c=_.Cl(a.mimeType,b||a.codecs);if(_.Bl(c,a.type)){var d=a.type,e=_.Bl(c,d);e&&(e=e(),c=e.convertCodecs(d,c),e.destroy())}return c};
198
+ _.Ip=function(a,b){function c(m,n,p){n.drmInfos.some(function(q){return!!q.licenseServerUri})===m&&(f=f["catch"](function(){if(a.j)return null;if(p===_.Vd){if(_.Gl()&&!a.f.Sa[p].useLegacySystem)return n.label=Wd,a.l.$b(Wd,[n])["catch"](function(){a.g.warn("Unable to create com.microsoft.playready.recommendation. Falling back to com.microsoft.playready.");n.label=_.Vd;Zp(n);return a.l.$b(p,[n])});Zp(n)}if(p===_.Xd&&a.f.widevineVersion!==_.Xd){var q=a.f.widevineVersion;if(!q.startsWith(_.Xd))return a.g.error('Invalid "widevineVersion" value "'+
199
+ q+'".'),Promise.reject();var t=Object.assign({},n,{label:q,distinctiveIdentifier:_.pf,persistentState:_.pf});return a.l.$b(q,[t])["catch"](function(){return a.l.$b(p,[n])})}return a.l.$b(p,[n])["catch"](function(v){a:{if(p===_.Xd&&$p(n)){var z=_.Hk();if($p(n)&&z.os===Yl&&z.browser===Bd){a.g.warn("requestMediaKeySystemAccess() failed",v);a.g.warn("Will try to recover by removing the robustness attribute of videoCapabilities and audioCapabilities.");Zp(n);v=a.l.$b(p,[n]);break a}}throw v;}return v})}))}
200
+ if(1===b.size&&b.has(""))return Promise.reject(new _.O(_.P,6,6E3));null===a.l&&(a.l=Zo(a.f.emeApi,a.Zb));for(var d=_.w(b.values()),e=d.next();!e.done;e=d.next())e=e.value,0===e.audioCapabilities.length&&delete e.audioCapabilities,0===e.videoCapabilities.length&&delete e.videoCapabilities;var f=d=new _.xk,g=a.f.preferredDrmSystem;if(!g)if(e=_.Hk(),e.os===$l&&10<=e.osVersion.major&&"edge"===e.browser)g=_.Vd;else if("safari"===e.browser)g=_.Sd;else if(e.browser===Bd||"firefox"===e.browser)g=_.Xd;g&&
201
+ (e=b.get(g))&&(c(!0,e,g),c(!1,e,g));e={};for(var h=_.w([!0,!1]),l=h.next();!l.done;e={Pf:e.Pf},l=h.next())e.Pf=l.value,b.forEach(function(m){return function(n,p){p!==g&&c(m.Pf,n,p)}}(e));f=f["catch"](function(){throw new _.O(_.P,6,6001,"Failed to get MediaKeySystemAccess.");});f=f.then(function(m){if(a.j)return null;a.K.clear();var n=m.getConfiguration();a.g.info("Got MediaKeySystemAccess with configuration",n);var p=n.videoCapabilities||[],q=_.w(n.audioCapabilities||[]);for(n=q.next();!n.done;n=
202
+ q.next())a.K.add(n.value.contentType.toLowerCase());p=_.w(p);for(n=p.next();!n.done;n=p.next())a.K.add(n.value.contentType.toLowerCase());p=m.keySystem;n=b.get(_.aq(m.keySystem));q=[];var t=[],v=[],z=[];bq(n.drmInfos,q,t,v,z);1<t.length&&_.Yh("Multiple unique server certificates found! Only the first will be used.");1<q.length&&_.Yh("Multiple unique license server URIs found! Only the first will be used.");a.a={keySystem:p,licenseServerUri:q[0],distinctiveIdentifierRequired:n.distinctiveIdentifier===
203
+ _.bg,persistentStateRequired:n.persistentState===_.bg,audioRobustness:n.audioCapabilities?n.audioCapabilities[0].robustness:"",videoRobustness:n.videoCapabilities?n.videoCapabilities[0].robustness:"",serverCertificate:t[0],initData:v,keyIds:z,periodId:null};if(!a.a.licenseServerUri)throw new _.O(_.P,6,6012,a.a.keySystem);return m.createMediaKeys()}).then(function(m){a.j||(a.g.info("Created MediaKeys for key system",a.a.keySystem),a.J=m,a.ca=!0)})["catch"](function(m){if(!a.j){a.a=null;a.K.clear();
204
+ if(m instanceof _.O)throw m;throw new _.O(_.P,6,6002,{browserError:m.message});}});d.reject();return f};
205
+ Bp=function(a){a=_.N.kh(a.f.Sa[_.qf]||{});if(0===a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.bn(f),h=_.bn(e);g={kty:"oct",kid:_.$m(g,!1),k:_.$m(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.T.ib(d),initDataType:"keyids"}];return{keySystem:_.qf,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
206
206
  initData:d,keyIds:[],periodId:null}};
207
- _.Jp=function(a,b){try{a.g.debug("Attempting to load an offline session",b);var c=a.J.createSession(_.mf)}catch(f){var d=new _.P(_.Q,6,6005,{browserError:f.message});a.w(d);return Promise.reject(d)}a.B.on(c,_.Re,a.Wi.bind(a));a.B.on(c,Ce,a.Ri.bind(a));var e={initData:null,loaded:!1,qg:Infinity,tc:null,lb:new _.ok,periodId:null,Te:[],keyId:null,qb:[],initDataType:null,Ac:null,sessionContext:{ldlDelay:0,customData:{}}};e.lb["catch"](function(){});a.h.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.g.debug("Loaded offline session",
208
- b,f);if(!f)return a.h["delete"](c),a.w(new _.P(_.Q,6,6013)),null;e.loaded=!0;Qp(a)&&(a.A||a.g.info(Ba),a.A=!0,a.G=!1,a.I.resolve());return c},function(f){a.j||(a.h["delete"](c),a.w(new _.P(_.Q,6,6005,{browserError:f.message})))})};Rp=function(a,b,c,d){if(!b&&c!==_.eg)return!1;d=b||Cn(d);a=_.w(a.h.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||b&&e.qb.includes(b)||c===_.eg&&(e.keyId||Cn(e.initData))===d)return!0;return!1};
209
- Ip=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,u,v,z,A,H,G,D,F,M,O,S,V,ra,Da,Ea;_.I(function(Fa){switch(Fa.a){case 1:if(!e.length)return a.g.warn("Empty init data"),Fa["return"]();h=b;if(!h)try{h=Sp(a,d,e,f)}catch(Sa){if(a.g.warn("Ignoring unrecognized init data. This may be caused by unsupported or malformed init data. Set `drm.ignoreUnrecognizedInitData \x3d false` if you want to override this behavior and use the init data after all.",{error:Sa,initDataType:d,
210
- initData:e}),a.f.ignoreUnrecognizedInitData)return Fa["return"]()}if(g){Fa.F(2);break}if(!Rp(a,h,d,e)){Fa.F(2);break}l=!0;if("skd"!==d||a.f.enableSessionCacheForSkd){Fa.F(4);break}m=_.w(a.h.keys());n=m.next();case 5:if(n.done){Fa.F(4);break}p=n.value;q=a.h.get(p);if(!h||q.keyId!==h){Fa.F(6);break}a.g.warn("Close and re-open session for "+h);_.C(Fa,9);return _.y(Fa,p.close(),11);case 11:_.uh(Fa,10);break;case 9:u=_.E(Fa),a.g.warn("Unable to close session",u);case 10:l=!1;case 6:n=m.next();Fa.F(5);
211
- break;case 4:if(l)return a.g.warn("Skip creating a new session for "+h),Fa["return"]();case 2:try{z=a.H?_.mf:qg,v=a.J.createSession(z),a.D.onEvent(new _.L(ie,{keySystem:a.keySystem()})),a.g.info("Created new "+z+" session for Key ID: '"+h+"'. Init data type: "+(d+"."))}catch(Sa){return a.w(new _.P(_.Q,6,6005,{browserError:Sa.message})),Fa["return"]()}a.B.on(v,_.Re,a.Wi.bind(a));a.B.on(v,Ce,a.Ri.bind(a));A={Ac:f,Te:[],initData:e,initDataType:d,keyId:h,qb:h?[h]:[],loaded:!1,qg:Infinity,periodId:c,tc:null,
212
- lb:new _.ok,sessionContext:{ldlDelay:0,customData:{}}};A.lb["catch"](function(){});f&&(H=a.h.get(f),A.sessionContext=H.sessionContext);a.h.set(v,A);h&&!a.o.get(h)&&a.o.set(h,jg);if(e)for(G=0;G<a.a.initData.length;G++)D=a.a.initData[G],D.keyId&&!A.qb.includes(D.keyId)&&_.Wj(D.initData,e)&&(A.keyId||(A.keyId=D.keyId),A.qb.push(D.keyId),a.o.get(D.keyId)||a.o.set(D.keyId,jg));F=_.N;M=F.Pb;O=a.D.getConfiguration();S=a.keySystem();V=a.f.Pa[S];Da=(ra=V.modifiers)&&ra.transformInitData;M(Da)||(Da=Tp);try{e=
213
- Da({playerConfig:O,initData:e,initDataType:d,drmInfo:a.a,drmSystemConfig:V,sessionContext:A.sessionContext,emeApi:a.l.Md()})}catch(Sa){return Ea=Sa,Sa instanceof _.P||(Ea=new _.P(_.Q,6,6016,Sa)),A.lb&&A.lb.reject(Sa),a.w(Ea),Fa["return"]()}a.g.info("Generate License Request for key ID: '"+h+"'");v.generateRequest(d,e.buffer)["catch"](function(Sa){if(!a.j){var sb=null;Sa.errorCode&&Sa.errorCode.systemCode&&(sb=Sa.errorCode.systemCode,0>sb&&(sb+=Math.pow(2,32)),sb="0x"+sb.toString(16));a.w(new _.P(_.Q,
214
- 6,6006,{browserError:Sa.message,error:Sa,extended:sb},Sa))}});_.B(Fa)}})};
215
- Sp=function(a,b,c,d){d=void 0===d?null:d;if("skd"===b){a:{var e=d;e=void 0===e?null:e;var f=a.keySystem(),g=a.f.Pa[f];f=a.D.getConfiguration();g=g&&g.modifiers&&g.modifiers.extractContentId;_.N.Pb(g)||(g=Up);try{var h={ldlDelay:0,customData:{}};e&&(h=a.h.get(e).sessionContext);var l=g(f,c,h);a.g.debug("Extracted Content ID '"+l+"' from SKD");var m=l;break a}catch(G){a.g.warn("Unable to extract Content ID from SKD",G)}m=""}return m}if(b===_.eg)return Cn(c)||"";if(b===_.qd){m=a.keySystem();try{if(m.match(/^com\.widevine\.alpha/)){var n=
216
- _.To(c);if(n)return n.a}else if(Vp(m)){e=new _.hn(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);f=_.nn(e);var p=_.nn(e);g=_.xn(p);var q=_.nn(e);c=q>>>24;l=q&16777215;h=_.rn(e,16);var u=_.Vj(h);if(0<c){var v=_.nn(e);e.skip(16*v)}var z=_.nn(e),A=_.rn(e,z),H=_.$o(A);_.Oh("Parsed PR PSSH Box","size",f,"name",g,Gg,c,"flags",l,"size",z,"systemId",u,"keyId",H.a);if(H)return H.a}}catch(G){throw a.g.warn("Unable to extract Key ID from PSSH data.",{error:G,keySystem:m}),G;}}return""};
217
- Up=function(a,b){var c=_.Bn(b);_.Oh("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
218
- Tp=function(a){var b=a.playerConfig,c=a.initData,d=a.drmInfo,e=a.drmSystemConfig,f=a.sessionContext,g=a.emeApi;if("skd"===a.initDataType&&g===Wp){a=_.N.Pb;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=Up);a="";try{a=e(b,c,f)}catch(h){throw new _.P(_.Q,6,6103);}if(!a.length)throw new _.P(_.Q,6,6101,"Content ID is an empty string");c=Dn(c,a,d)}return c};
219
- bq=function(a,b){var c,d,e,f,g,h,l,m,n,p,q,u,v,z,A,H,G,D;return _.I(function(F){switch(F.a){case 1:c=b.target;d=a.h.get(c);if(!d)return a.g.error("Session metadata not found for "+c.sessionId+"."),F["return"]();e=a.a.licenseServerUri;if(!Xp(a,b)){F.F(2);break}return _.y(F,Yp(a,e,b,c,d),3);case 3:return F["return"]();case 2:f=a.Fb;if(!(0<f)){F.F(4);break}a.g.info("Delaying license request by "+f+" s.");return _.y(F,zl(f),5);case 5:if(a.j)return F["return"]();case 4:g=a.keySystem();h=a.f.Pa[g];"individualization-request"===
220
- b.messageType&&h&&h.individualizationServer&&(e=h.individualizationServer);l=_.gk([e],a.f.attemptParameters);l.type=3;l.body=b.message;l.method=_.Gb;l.licenseRequestType=b.messageType===Fe&&d.Ac?Ee:b.messageType;l.sessionId=c.sessionId;if(l.licenseRequestType===Ee)a.D.onEvent(new _.L(he));Vp(a.a.keySystem)&&Zp(a,l);Wm(a.P,l);m=String(Math.floor(b.timeStamp));return _.y(F,$p(a,l,d,m,e,c.sessionId,b.messageType,f),6);case 6:n=F.f;if(!n)return F["return"]();p=Xm(a.P,n);return _.y(F,aq(a,c,n.data,d,m),
221
- 7);case 7:q=F.f;if(!q)return F["return"]();u=Kp(a);v=p?Date.now()+1E3*p.delay:Number.NaN;a.D.onEvent(new _.L(_.ke,{keySystem:g,expirationTime:u,expectedRenewalTime:v}));d.tc&&d.tc.resolve();d.Ac&&(z=d.Ac,a.g.info("Closing expired session '"+z.sessionId+"'"),ip(z)["catch"](function(){a.g.warn("Unable to close expired session in time")}),(A=a.h.get(d.Ac))&&A.hd&&A.hd.stop(),a.h["delete"](d.Ac),d.Ac=null);H=new _.yl(function(){a.j||(d.loaded=!0,d.lb&&d.lb.resolve(),Qp(a)&&(a.A||a.g.info(Ba),a.A=!0,a.G=
222
- !1,a.I.resolve()))});H.ea(5);null!==d.initData&&(0<d.sessionContext.ldlDelay||p&&(_.T.startsWith(g,_.Kd)||_.T.startsWith(g,_.Od)))&&(G=new _.yl(function(){!a.j&&a.P&&(a.g.info("Updating CSL Sessions"),Vp(g)?Ip(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):g.startsWith(_.Kd)&&c.update(_.T.cb("renew")))}),d.hd=G,D=p?p.delay:d.sessionContext.ldlDelay,G.ea(D));_.B(F)}})};
223
- Yp=function(a,b,c,d,e){var f,g,h;return _.I(function(l){if(1==l.a)return f=_.gk([b],a.f.attemptParameters),f.type=3,f.body=c.message,f.method=_.Gb,f.licenseRequestType=sd,f.sessionId=d.sessionId,_.y(l,cq(a,f,e,b,d.sessionId,c.messageType),2);g=l.f;if(!g)return l["return"]();h=String(Math.floor(c.timeStamp));return _.y(l,aq(a,d,g.data,e,h),0)})};Xp=function(a,b){return!!a.keySystem().match(/^com\.widevine\.alpha/)&&b.message&&2===b.message.byteLength};
224
- $p=function(a,b,c,d,e,f,g,h){var l,m,n,p,q,u,v,z,A,H,G,D;return _.I(function(F){switch(F.a){case 1:return a.g.info("License request for SID:'"+(f+"'/KID:'"+c.keyId+"' from msg '")+(g+"'.")),_.y(F,dq(a,b,c.sessionContext),2);case 2:return a.g.debug("Sending DRM license request to",e,b),a.D.onEvent(new _.L(ge,{delay:h})),l=Date.now(),_.bp($d+d+ha),m=null,_.C(F,3),_.y(F,a.D.xb.fetch(b).T,5);case 5:m=F.f;_.uh(F,4);break;case 3:n=_.E(F);if(a.j)return F["return"](null);p=n;q=p.data.headers;u=ao(q);v=Object.assign({message:"Error while fetching DRM license!",
225
- url:p.data.url,status:p.data.status,response:p.data.response},q?{headers:q}:{},u);z=new _.P(_.Q,6,6007,v,p);eq(a,z,c);return F["return"](null);case 4:_.bp($d+d+".end");_.cp($d+d,$d+d+ha,$d+d+".end");A=Date.now()-l;if(H=bo(m.headers))a.Fb=H.delay||0;G="";H&&H.requestId&&(G=" RID:"+H.requestId);D=m.data.byteLength;a.g.info("License response for SID:'"+(f+"'/KID:'")+(c.keyId+"' ")+(D+" bytes in ")+(A+"ms"+G));return a.j?F["return"](null):F["return"](m)}})};
226
- cq=function(a,b,c,d,e,f){var g,h,l,m,n,p,q,u,v,z,A,H;return _.I(function(G){switch(G.a){case 1:return a.g.info("WV Server certificate request for SID:'"+(e+" from msg '"+f+"'.")),_.y(G,dq(a,b,c.sessionContext),2);case 2:return a.g.debug("Sending Widevine certificate request to",d,b),g=Date.now(),h=null,_.C(G,3),_.y(G,a.D.xb.fetch(b).T,5);case 5:h=G.f;_.uh(G,4);break;case 3:l=_.E(G);if(a.j)return G["return"](null);m=l;n=m.data.headers;p=ao(n);q=Object.assign({message:$a,url:m.data.url,status:m.data.status,
227
- response:m.data.response},n?{headers:n}:{},p);u=new _.P(_.Q,6,6100,q,m);eq(a,u,c);return G["return"](null);case 4:return v=Date.now()-g,z=bo(h.headers),A="",z&&z.requestId&&(A=" RID:"+z.requestId),H=h.data.byteLength,a.g.info("WV Server certificate response for SID:'"+(e+"' ")+(H+" bytes in ")+(v+"ms"+A)),a.j?G["return"](null):G["return"](h)}})};
228
- aq=function(a,b,c,d,e){var f,g;return _.I(function(h){switch(h.a){case 1:return _.bp(ee+e+ha),_.C(h,2),_.y(h,b.update(c),4);case 4:_.uh(h,3);break;case 2:f=_.E(h);if(a.j)return h["return"](!1);if(f===Tb)return a.g.info("Ignore update for closed sessions"),h["return"](!1);g=new _.P(_.Q,6,6008,{browserError:f.message});eq(a,g,d);return h["return"](!1);case 3:return _.bp(ee+e+".end"),_.cp(ee+e,ee+e+ha,ee+e+".end"),a.j?h["return"](!1):h["return"](!0)}})};
229
- eq=function(a,b,c){a.j||(a.w(b),c.tc&&c.tc.reject(b),c.lb&&c.lb.reject(b))};
230
- Zp=function(a,b){var c=_.T.Dc(b.body,!0,!0);if(c.includes("PlayReadyKeyMessage")){a.g.debug("Unwrapping PlayReady request.");c=(new DOMParser).parseFromString(c,"application/xml");for(var d=c.getElementsByTagName("HttpHeader"),e=0;e<d.length;++e)b.headers[d[e].querySelector("name").textContent]=d[e].querySelector(_.Eg).textContent;b.body=_.Tj(c.querySelector("Challenge").textContent).buffer}else a.g.debug("PlayReady request is already unwrapped."),b.headers[ya]="text/xml; charset\x3dutf-8"};
231
- dq=function(a,b,c){var d,e,f,g,h,l;return _.I(function(m){if(1==m.a)return d=a.D.getConfiguration(),_.y(m,Fp(a,d),2);e=a.keySystem();h=(g=(f=a.f.Pa[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;h?b.requestModifiers.push(function(n){return h(d,n,c)}):e.startsWith(_.Kd)&&b.requestModifiers.push(function(n){return _.En(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Kd)&&b.responseModifiers.push(function(n){return _.Fn(n)});_.B(m)})};
232
- fp=function(a){var b=a.o,c=a.ia;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"===d})&&a.w(new _.P(_.Q,6,6014));a.D.vg(_.N.gh(c));a.A||a.g.info(Ba);a.A=!0;a.G=!1};zp=function(a){var b;return _.I(function(c){if(1==c.a)return _.bp(de),b=a.ha.map(function(d){return bq(a,d)}),a.fb=!0,a.ha=[],_.y(c,Promise.all(b),2);_.bp(ce);_.cp("drm.onPlay",de,ce);_.B(c)})};Vp=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};
233
- _.Op=function(a){return Vp(a)?_.Od:a};_.gq=function(a,b){return a.length&&b.length?0<_.fq(a,b).length:!0};
234
- _.fq=function(a,b){if(!a.length)return b;if(!b.length)return a;for(var c=[],d=0;d<a.length;d++)for(var e={},f=0;f<b.length;e={Dd:e.Dd},f++)if(a[d].keySystem===b[f].keySystem&&a[d].periodId===b[f].periodId){var g=a[d];f=b[f];var h=[];h=h.concat(g.initData||[]);h=h.concat(f.initData||[]);e.Dd=_.gh(g.keyIds||[]).concat();f.keyIds&&f.keyIds.length&&f.keyIds.forEach(function(l){return function(m){l.Dd.includes(m)||l.Dd.push(m)}}(e));c.push({keySystem:g.keySystem,licenseServerUri:g.licenseServerUri||f.licenseServerUri,
235
- licenseServerUriOrigin:g.licenseServerUriOrigin||f.licenseServerUriOrigin,distinctiveIdentifierRequired:g.distinctiveIdentifierRequired||f.distinctiveIdentifierRequired,persistentStateRequired:g.persistentStateRequired||f.persistentStateRequired,videoRobustness:g.videoRobustness||f.videoRobustness,audioRobustness:g.audioRobustness||f.audioRobustness,serverCertificate:g.serverCertificate||f.serverCertificate,initData:h,keyIds:e.Dd,periodId:g.periodId});break}return c};
236
- gp=function(a){a.h.forEach(function(b,c){var d=b.qg,e=c.expiration;isNaN(e)&&(e=Infinity);e!==d&&(a.D.ug(c.sessionId,e),b.qg=e)})};Qp=function(a){a=a.h.values();return _.Ej(a,function(b){return b.loaded})};
237
- np=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=_.w(a),e=d.next();!e.done;e=d.next())e.value.drmInfos=c};Mp=function(a){for(var b=_.w(a.audioCapabilities||[]),c=b.next();!c.done;c=b.next())delete c.value.robustness;a=_.w(a.videoCapabilities||[]);for(b=a.next();!b.done;b=a.next())delete b.value.robustness};
238
- Np=function(a){return(a.audioCapabilities||[]).some(hq)||(a.videoCapabilities||[]).some(hq)};hq=function(a){return null!=a.robustness&&""!==a.robustness};
239
- Pp=function(a,b,c,d,e){var f={};a=_.w(a);for(var g=a.next();!g.done;f={Ia:f.Ia},g=a.next()){f.Ia=g.value;b.includes(f.Ia.licenseServerUri)||b.push(f.Ia.licenseServerUri);f.Ia.serverCertificate&&(c.some(function(m){return function(n){return _.Wj(n,m.Ia.serverCertificate)}}(f))||c.push(f.Ia.serverCertificate));if(f.Ia.initData){var h=_.w(f.Ia.initData);for(g=h.next();!g.done;g=h.next())g.value.periodId=f.Ia.periodId;h={};var l=_.w(f.Ia.initData);for(g=l.next();!g.done;h={De:h.De},g=l.next())h.De=g.value,
240
- d.some(function(m){return function(n){var p=m.De;return n.keyId&&n.keyId===p.keyId&&n.periodId===p.periodId?!0:!1}}(h))||d.push(h.De)}if(f.Ia.keyIds)for(g=0;g<f.Ia.keyIds.length;++g)e.includes(f.Ia.keyIds[g])||e.push(f.Ia.keyIds[g])}};
241
- tp=function(a,b,c){var d=_.Op(b.keySystem);c=c[d];d===_.hf&&b.licenseServerUri?a.g.debug("Using Clear Key data URI for",d):c&&c.licenseUrl?(b.licenseServerUri=c.licenseUrl,a.g.debug("Using license server URI from user-configured clpp.drm.DrmEnvironment (licenseUrl) for",d)):a.g.debug("Using license server URI from the manifest for ",d)};
242
- rp=function(a,b){var c=b[_.Op(a.keySystem)];a.keyIds||(a.keyIds=[]);c&&(a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.videoRobustness||(a.videoRobustness=c.videoRobustness||""),a.audioRobustness||(a.audioRobustness=c.audioRobustness||""),a.serverCertificate||(a.serverCertificate=c.serverCertificate||null))};
243
- ip=function(a){var b,c;return _.I(function(d){if(1==d.a)return b=new Promise(function(e){(new _.yl(e)).ea(1)}),_.y(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.Jh("Timeout waiting for session close");_.B(d)})};_.kq=function(a,b){a&&b&&(_.iq.set(a,b),_.jq.info("Registered TextDisplayerFactory: '"+a+"'"))};
244
- _.lq=function(a,b){var c=b.find(function(d){return(d=_.iq.get(d))?d.a(a):!1});if(null==c)return _.jq.warn("Subtitles may not work as expected. No compatible text displayer found for this platform."),null;_.jq.info("Chosen the text displayer: "+c);return _.iq.get(c)};mq=function(){this.a=null;this.f=[]};_.nq=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})}};
245
- oq=function(a,b){var c=0;a.a&&a.a.state===b&&(c+=a.a.duration);for(var d=_.w(a.f),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state===b?e.duration:0;return c};pq=function(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=_.w(a.f),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.a&&c.push(b(a.a));return c};qq=function(){this.h=this.f=this.j=null;this.a=[]};rq=function(a){return a.a.map(function(b){return _.N.gb(b)})};
246
- _.sq=function(){this.f=this.o=this.A=this.C=this.j=this.l=this.h=this.w=NaN;this.a=new mq;this.B=new qq};_.tq=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:[]}};
247
- xq=function(a){this.g=new _.K("clpp.StateManager");this.m=a;this.a=new _.Yh;this.f=_.uq;this.A=_.vq;this.I=0;this.w=-1;this.L=this.o=this.J=this.B=0;this.j=this.h=this.G=!1;this.H=0;this.l=null;this.K=0;this.M=_.Gl();this.C=!1;this.J=Date.now();wq(this)};yq=function(a,b){return Object.keys(b)[a]};
248
- Aq=function(a,b){var c={type:_.ig};b===_.jd||b===_.id?(c.reason=a.w,b===_.jd?c.timeSinceLastStateChangeMS=a.I:c.bufferedTimeMS=a.B):(a.f===_.zq&&(c.reason=a.w),a.A===_.zq&&(c.reason=a.w,c.bufferedTimeMS=a.B),c.currentState=a.f,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.I);return c};
249
- Eq=function(a,b){if(a.f===b)return!1;var c=Date.now(),d=a.f===_.zq;a.A=a.f;a.f=b;a.A===_.Bq&&(a.J=c,a.o=0);a.o||(a.o=a.J||c);a.I=c-a.o;a.o=c;b===_.zq?(a.L=a.o,a.w=a.h?1:2,a.g.info("Buffering started. Reason: "+yq(a.w-1,_.Cq)),c=Aq(a,_.jd),a.Xa(_.jd,c)):d&&(a.B=a.o-a.L,a.g.info("Buffering finished. Reason: "+yq(a.w-1,_.Cq)+". Buffering time: "+a.B+" ms"),c=Aq(a,_.id),a.Xa(_.id,c));c=yq(a.A,_.Dq);d=yq(a.f,_.Dq);a.g.info(_.Kb+c+" -\x3e "+d);a.Xa(_.ig,Aq(a,""));return!0};
250
- Jq=function(a,b){if(a.f===_.Fq)a.g.warn("Player is in error state, aborting any further state checks");else{var c=a.m.isPaused(),d=a.m?a.m.isEnded():!1;if(d)a.h||(a.j=!1,Eq(a,_.Bq));else if(b!==_.tg){var e=a.m.getPosition();e=null!==e&&void 0!==e&&0<=e?a.m.getBufferInfo().Ea(e,!0):-1;a.H=e;e=a.m.getSurface().getMedia();a.l=e?e.readyState:null;a.K=a.m.getPlaybackRate()||1;e=typeof a.l===_.k&&2>a.l&&2===e.networkState;var f=typeof a.l===_.k&&0>=a.H&&a.f===_.uq,g=typeof a.l===_.k&&2>=a.l&&a.j;e=a.h||
251
- f||e||g;!a.M||a.m.isLive()||a.f!==_.zq||e||(f=b===_.$f&&4===a.l,(g=a.A===_.Gq)&&!a.C?e=!0:g||a.C||f||(e=!0));f=!1;e?f=Eq(a,_.zq):c?f=Eq(a,_.Hq):a.G&&(f=Eq(a,_.Iq));f&&(a.C=!1);a.g.debug("Video state check for event "+b+":: seeking: "+a.h+", waiting: "+a.j+", playing: "+a.G+", paused: "+c+", readyState: "+a.l+", rate: "+a.K+", buffer: "+a.H+", ended: "+d+". Changed state: "+f+", Current state: "+yq(a.f,_.Dq))}}};
252
- wq=function(a){function b(d){return Jq(a,d.type)}a.g.debug("Start watching for video events for "+a.m.namespace());var c=a.m;a.a.on(c,_.re,function(){a.h||(a.j=!1,Eq(a,_.Bq))});a.a.on(c,kd,b);a.a.on(c,_.zf,function(){a.G=!0;a.j=!1;Jq(a,_.zf)});a.a.on(c,_.kf,function(){a.G=!1;a.j=!1;Jq(a,_.kf)});a.a.on(c,_.tg,b);a.a.on(c,_.Pf,b);a.a.on(c,_.$f,function(d){a.h=!1;a.j=!1;Jq(a,d.type)});a.a.on(c,_.ag,function(d){a.h=!0;Jq(a,d.type)});a.a.on(c,gg,b);a.a.on(c,_.Rg,function(){a.j=!0;Jq(a,_.Rg)});a.a.on(c,
253
- _.se,function(d){(d=d&&d.detail)&&d.severity&&d.severity===_.Q&&Eq(a,_.Fq)});a.a.on(c,_.Me,b);a.a.on(c,ld,function(){a.C=!0;Jq(a,ld)});a.a.on(c,_.Dg,function(d){a.h=!0;Jq(a,d.type)});a.a.on(c,_.Cg,function(d){a.h=!1;a.j=!1;Jq(a,d.type)})};Kq=function(a){a=(new _.Zi(a)).Ma;if(!a)return null;a=a.toUpperCase();return _.T.endsWith(a,".MPD")?_.Sc:_.T.endsWith(a,".M3U8")?_.hm:_.T.endsWith(a,".MP4")?_.Lg:_.T.endsWith(a,".MP3")?"audio/mp3":_.T.endsWith(a,"MANIFEST")||_.T.endsWith(a,".ISM")?_.Xc:null};
254
- _.Mq=function(a){var b;Hm(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.lg||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=Lq(b[c]);d&&a.push(d)}return a};
255
- Lq=function(a){var b=null;_.N.fa(a)&&(a={url:a});typeof a===_.Ze&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.N.R(a.drmProtected)||typeof a.drmProtected!==_.hd||(b.drmProtected=a.drmProtected),_.N.R(a.isLive)||typeof a.isLive!==_.hd||(b.isLive=a.isLive),_.N.R(a.name)||typeof a.name!==_.lg||(b.name=a.name),_.N.R(a.gc)||typeof a.gc!==_.lg||(b.gc=a.gc),_.N.R(a.audioMimeType)||typeof a.audioMimeType!==_.lg||(b.audioMimeType=a.audioMimeType));b&&!b.type&&(b.type=Kq(a.url),b.type?
256
- Nq.debug("Detect media type "+b.type+" for "+a.url):Nq.warn("Unable to detect media type for "+a.url));return b};Oq=function(){_.Im.call(this,Dd);this.w=this.H=!1;this.l=this.A=this.o=this.a=this.j=null;this.h=new _.Yh;this.G=this.B=this.f=this.I=null};
257
- Rq=function(a,b){return a.w?Pq():new Promise(function(c){a.a||(a.h.on(b,_.se,function(){var d=Qq(a);if(d)a.onError(d)}),a.h.on(b,_.Uf,function(){var d=b.videoWidth,e=b.videoHeight,f=a.getTrackManager();f&&0<d&&0<e&&(f.w={width:d,height:e});a.trigger(new _.L(_.gd,{detail:{width:d,height:e}}))}),a.a=b);c()})};Sq=function(a){return a.w?Pq():new Promise(function(b){if(a.a){var c=a.a;a.h.off(c,_.se);a.h.off(c,_.Uf);a.a=null}b()})};Tq=function(a){var b=_.Gl()?Wp:void 0;return new _.hp(a,b)};
258
- Vq=function(a){var b,c,d,e,f;return _.I(function(g){if(1==g.a){if(a.w)return g["return"](Pq());b=a.aa[a.getSourceIndex()];if(!a.configuration.drm||!1===b.drmProtected)return a.log.debug("No DRM configuration present.","Skipping DRM engine initialization"),g["return"](Promise.resolve());c=_.Uq;d=_.an(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.o=Tq({xb:e,onError:function(h){return a.onError(h)},vg:function(){},ug:function(h,l){a.trigger(new _.L(_.fe,{expirationTime:l}))},
259
- onEvent:function(h){h instanceof _.L?a.dispatchEvent(h):a.log.debug(_.bc,h.type)},getConfiguration:function(){return a.getConfiguration()},md:function(){return a.md()}});a.o.f=d;f={id:0,language:_.xg,primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:Promise.resolve.bind(Promise),findSegmentPosition:function(){return null},getSegmentReference:function(){return null},adjustSegmentDurations:function(){},getDuration:a.getDuration.bind(a),initSegmentReference:null,Ga:0,mimeType:_.Lg,
260
- codecs:"",encrypted:!0,keyId:null,language:_.xg,originalLanguage:_.xg,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,hp:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,spatialAudio:!1,Oo:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.y(g,_.mp(a.o,[f]),2)}return 3!=g.a?_.y(g,_.Ep(a.o,a.a),3):g["return"](Promise.resolve())})};
261
- Wq=function(a,b){ho(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){a.getState()!==_.Fq&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};Qq=function(a){if(null===a.aa||!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 _.P(_.Q,3,3016,{code:b,$o:c,message:a.a.error.message})};Pq=function(){return Promise.reject(new _.P(_.Q,7,7E3))};
262
- Xq=function(a){if(a.w)return new _.pk(Pq(),function(){});var b=a.aa[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.I;c&&Wq(a,c);if(d.preload!==_.Ye)a.h.one(d,_.Me,function(){var g=Date.now()/1E3-e;a.f.A=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.wk()||_.xk())&&d.load();var f=new _.ok;a.h.one(d,gg,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.B||(a.B=(new _.yl(function(){f.reject(new _.P(_.Q,3,3100,{message:"Unable to load media source successfully from "+
263
- b.url,uri:b.url},d.error))})).ea(g))});ho(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.h,function(){return f.resolve()});d.error?f.reject(Qq(a)):d.preload===_.Ye&&(a.log.warn('With \x3cvideo preload\x3d"none"\x3e, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way. Please do not use preload\x3d"none" with PRESTOplay for Web Apps.'),f.resolve());a.h.one(d,_.se,function(){f.reject(Qq(a))});
264
- return new _.pk(f,function(){var g=new _.P(_.Q,7,7001);f.reject(g);return Promise.resolve()})};
265
- Yq=function(a,b){ho(b,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){if(a.isLive()&&a.getState()!==_.Fq){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)}))}})};
266
- Zq=function(a,b){var c=!1;a.h.on(b,_.ag,function(){c=b.paused});a.h.on(b,_.$f,function(){.2>b.duration-b.currentTime&&b.paused&&!c&&(a.log.warn("Player was auto-paused during seek to the end, auto-resuming."),b.play())})};$q=function(){};_.cr=function(a){0<=ar.indexOf(a)?br.warn("Factory '"+a.name()+"' is already registered"):(ar.push(a),br.info("Factory '"+a.name()+"' has been registered."))};
267
- dr=function(a,b){var c=ar.find(function(d){return d.a(a,b)})||null;c&&br.info("Chosen ads manager: "+c.name());return c};er=function(){};fr=function(){};gr=function(a,b,c,d,e){this.w=this.o=this.l=!1;this.B=a;this.a=b;this.f=c;this.h=d;this.j=0;this.A=e+":"+b;this.C=e;this.videoEl=null};hr=function(a){this.a=a.map(function(b){return{videoId:b.getSurface().getMedia().id,player:b,Ke:!0,ready:Promise.resolve()}});this.g=new _.K("clpp.plist.PlayerPool")};
268
- _.ir=function(a,b){var c=document.createElement(a),d;for(d in b){var e=b[d];null===e||void 0===e?c.setAttribute(d,""):c.setAttribute(d,e)}return c};_.jr=function(a,b){a.classList.add(b)};_.kr=function(a,b){if(a&&typeof b===_.Ze)for(var c in b)a.style[c]=b[c]};_.lr=function(a){return document.createElement(a)};mr=function(){this.a=null;this.h=new Set;this.f=null;this.set(null)};nr=function(a,b){a.a&&0!==b.length&&(a.a.classList.add(b),a.h.add(b))};
269
- or=function(a,b){var c=new MutationObserver(function(){var d=Array.from(a.h.values());Di(Array.from(b.classList),Array.from(d))||b.classList.add.apply(b.classList,_.gh(d))});c.observe(b,{attributes:!0,attributeFilter:["class"]});return c};
270
- sr=function(a,b){this.g=new _.K("clpp.PlayerSurface");this.w=_.N.ta(pr,b);this.f=new mr;this.h=null;this.a=new mr;this.l=qr;qr+=1;this.o="clpp-video-"+this.l;this.j=new _.Yh;if(null==a)throw new _.P(_.Q,7,7102,"No Media element was provided");if(a instanceof Element)var c=a;else if(c=document.getElementById(a),!c)throw new _.P(_.Q,7,7004,"Media element not found");var d=this.w;this.g.debug("Initializing Player Surface on ",c);if("cast-media-player"===c.tagName.toLowerCase())this.h=c;else{if(!(c instanceof
271
- HTMLMediaElement))throw new _.P(_.Q,7,7005,"Media element is not instance of HTMLMediaElement");if(!c.hasAttribute("crossorigin")){var e=d.crossorigin;this.g.info("Setting media elements crossorigin to "+e);c.setAttribute("crossorigin",e)}this.f.set(c);if(d.disableContainer)e=null;else if(d.containerEl){if(c.parentNode!==d.containerEl)throw new _.P(_.Q,7,7006,"Container element is not a direct parent of media element");e=d.containerEl}else{e=document.createElement(_.Zd);c.parentNode?c.parentNode.replaceChild(e,
272
- c):this.g.warn("Player Surface Element has no parent. Can not inject container. You have to manually add playerSurface.getContainer() to the DOM!");for(var f=[],g=0;g<c.classList.length;g++)f.push(c.classList[g]);f=_.w(f);for(g=f.next();!g.done;g=f.next())g=g.value,c.classList.remove(g),_.jr(e,g);e.style.cssText=c.style.cssText;c.removeAttribute(_.ng);f=_.w([_.Yg,_.xe]);for(g=f.next();!g.done;g=f.next()){g=g.value;var h=c.getAttribute(g);h=parseInt(h,10);isNaN(h)||(e.style[g]=h+_.Of);_.wk()||c.removeAttribute(g)}e.appendChild(c)}e&&
273
- (this.a.set(e),nr(this.a,"clpp-container"),nr(this.a,this.o),nr(this.f,_.vd),nr(this.f,"clpp-video"));d.webOSStartupPatch&&rr(this,c,e)}};rr=function(a,b,c){(_.xk()&&53===_.Dl().major||_.xk()&&68===_.Dl().major||_.El())&&!b.hasAttribute(Ud)&&(b.style.opacity="0",b.setAttribute(Ud,""),a.j.one(b,ne,function(){b.removeAttribute(Ud);b.style.opacity="1";c&&(c.style.opacity="1")}))};
274
- xr=function(a){var b=this;this.h=a;this.w=!!a.sideAdContainer;this.j=[];this.f=a.hj;this.C=tr(a);this.B=[];var c=ur(this,this.C,this.h.wl);this.o=new hr(c);this.a=null;this.A=!1;this.l=new Map;this.G=a.toggleVisible;this.g=new _.K("clpp.interstitial.MultiController");vr(this).forEach(function(d){return wr(b,d,!1)})};
275
- zr=function(a){var b;return _.I(function(c){if(1==c.a)return(b=a.a)?"loaded"===b.state?c.F(2):_.y(c,b.qd,2):c["return"]();if(4!=c.a)return _.y(c,b.player.play(),4);b.state=_.zf;yr(b);_.B(c)})};Ar=function(a,b){a.g.info("Add items",b);a.j=a.j.concat(b.map(function(c){return Object.assign({},c,{state:"idle",disposers:[],preloadPromise:Promise.resolve(),qd:Promise.resolve()})}))};
276
- Br=function(a,b){0!==a.j.length&&(b?(a.g.info("Remove items",b),a.j=a.j.filter(function(c){return!b.includes(c.id)})):(a.g.info("Remove all items"),a.j=[]))};
277
- Mr=function(a,b,c){var d,e,f,g,h;return _.I(function(l){switch(l.a){case 1:if(a.A)return a.g.warn("Cannot "+c+" item while busy (ID: "+b+")"),l["return"]();d=Cr(a,b);if(!d)return a.g.warn("Item not found (ID: "+b+")"),l["return"]();a.g.info(c+" item (ID: "+b+")");a.A=!0;if(e=a.a)e.player.isPaused()||(a.w?e.primary?e.player.setMuted(!0):e.player.pause():e.player.pause()),e.player.setMuted(!0);(f=a.l.has(b))&&a.l["delete"](b);_.C(l,2,3);if(c===_.of)return(g=e&&d.primary)?_.y(l,Dr(a,d),10):f?_.y(l,Er(a,
278
- d),10):_.y(l,Fr(a,d),10);if(f){a.g.error("Loading preloaded items is not supported");l.F(6);break}return _.y(l,Gr(a,d),6);case 10:yr(d);case 6:Hr(a,d);d.player.setMuted(!1);d.kc&&Ir(a,d,d.kc);if(d.yb)d.player.one(_.re,d.yb);d.Si&&d.Si(d.player.getDuration());case 3:_.vh(l);a.A=!1;e&&Jr(a,e);Kr(a);Lr(a,d.next);_.wh(l);break;case 2:throw h=_.E(l),a.g.error("Item failed to "+c+" (ID: "+b+")"),h;}})};Or=function(a,b){var c=Nr(a);c?c.ga=b:a.g.error("Failed to get primary item. Cannot configure resume position.")};
279
- Nr=function(a){return a.j.find(function(b){return!!b.primary})||null};Cr=function(a,b){return a.j.find(function(c){return c.id===b})||null};
280
- Hr=function(a,b){var c=b.transition;if(c&&!c.$n){if(c.yb){var d=c.yb,e=function(){a.g.info("Transition onEnded to (ID: "+d+")");a.play(d)};b.player.one(_.re,e);b.disposers.push(function(){b.player.off(_.re,e)})}c.wg&&Pr(a,b,function(){var f=a.a.kc;f&&(a.f.trigger(new _.L(_.Jc,{ad:f})),a.f.trigger(new _.L(_.wc,{ad:f})),f.a===f.f&&a.f.trigger(new _.L(_.sc,{id:b.Ze})))});c.$n=!0}};
281
- Pr=function(a,b,c){function d(){b.player.off(_.tg,f)}function e(){var l=b.player.getPosition();l>=g.position?(c(),a.g.info("Transition onPosition to (ID: "+g.itemId+"), playback position: "+(l.toFixed(3)+" s, transition point: ")+(g.position.toFixed(3)+" s. ")),a.play(g.itemId),l=!0):l=!1;l?h=null:h=requestAnimationFrame(e)}function f(){var l=b.player.getPosition();.5>=g.position-l&&(d(),e())}var g=b.transition.wg,h=null;g.ga&&Or(a,g.ga);b.player.on(_.tg,f);b.disposers.push(function(){null!=h&&(cancelAnimationFrame(h),
282
- h=null)});b.disposers.push(d)};Qr=function(a){a.a&&(a.a.disposers.forEach(function(b){return b()}),a.a.disposers=[],a.a.kc&&Ir(a,a.a,a.a.kc),Hr(a,a.a),Kr(a),Lr(a,a.a.next))};vr=function(a){return[a.f].concat(_.gh(a.o.a.map(function(b){return b.player})))};Kr=function(a){return Promise.all(Array.from(a.l.keys()).map(function(b){return Rr(a,b)}))};
283
- tr=function(a){if(a.sideAdContainer)a=a.sideAdContainer;else if(a=a.hj.getSurface().getContainer(),!a)throw Error("Primary player does not have a container");return a};Rr=function(a,b){var c;return _.I(function(d){if(1==d.a){c=a.l.get(b);if(!c)return d.F(0);a.g.info("Stop preloading item (ID: "+b+")");return c.player?_.y(d,Sr(a,c.player),3):d.F(3)}a.l["delete"](b);_.B(d)})};
284
- Jr=function(a,b){var c;return _.I(function(d){if(1==d.a){c=b.player;if(b.primary)return a.g.info("Pause primary playback"),a.w||wr(a,c,!1),d.F(0);a.g.info("Stop previous playback (ID: "+b.id+")");b.disposers.forEach(function(e){return e()});b.disposers=[];b.player=null;b.videoEl=null;b.role=Tr;return _.y(d,Sr(a,c),3)}wr(a,c,!1);_.B(d)})};Fr=function(a,b){return _.I(function(c){if(1==c.a)return _.y(c,Gr(a,b),2);if(3!=c.a)return _.y(c,b.player.play(),3);b.state=_.zf;_.B(c)})};
285
- Gr=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.y(d,Ur(a,!!b.primary),2);if(3!=d.a)return c=d.f,a.a=b,b.role=Vr,a.a.player=c,a.a.videoEl=c.getSurface().getMedia(),wr(a,c,!0),b.state="loading",b.qd=Wr(c,b.config),_.y(d,b.qd,3);b.state="loaded";_.B(d)})};
286
- Er=function(a,b){var c;return _.I(function(d){switch(d.a){case 1:c=b.player;if(!c)return d["return"]();if(b.state!==Kf){d.F(2);break}a.g.info(hc);_.C(d,3);return _.y(d,b.preloadPromise,5);case 5:_.uh(d,2);break;case 3:_.E(d);case 2:a.a=b;b.role=Vr;wr(a,c,!0);if(b.state===Jf)return _.y(d,c.play(),7);if(b.state!==If){d.F(7);break}return _.y(d,Wr(c,b.config),7);case 7:b.state=_.zf,_.B(d)}})};
287
- Ir=function(a,b,c){function d(){a.f.trigger(new _.L(_.Jc,{ad:c}));a.f.trigger(new _.L(_.wc,{ad:c}));c.a===c.f&&a.f.trigger(new _.L(_.sc,{id:b.Ze}))}function e(){a.f.trigger(new _.L(_.uc,{ad:c}))}function f(){a.f.trigger(new _.L(_.Gc,{ad:c}))}function g(){l.isEnded()||a.f.trigger(new _.L(_.Ec,{ad:c}))}function h(){var m=l.getPosition(),n=c.getDuration();c.j=m;a.f.trigger(new _.L(_.Fc,{ad:c}));!c.l&&m>=n/4&&(c.l=!0,a.f.trigger(new _.L(_.xc,{ad:c})));!c.o&&m>=n/2&&(c.o=!0,a.f.trigger(new _.L(_.Dc,{ad:c})));
288
- !c.w&&m>=3*n/4&&(c.w=!0,a.f.trigger(new _.L(_.Kc,{ad:c})))}var l=b.player;l.on(_.tg,h);l.on(_.kf,g);l.on(_.zf,f);l.on(_.jd,e);l.one(_.re,d);b.disposers.push(function(){l.off(_.tg,h);l.off(_.kf,g);l.off(_.zf,f);l.off(_.jd,e);l.off(_.re,d)});1===c.a&&a.f.trigger(new _.L(_.qc,{id:b.Ze}));c.videoEl=l.getSurface().getMedia();a.f.trigger(new _.L(_.Bc,{ad:c}));a.f.trigger(new _.L(_.Ic,{ad:c}))};
289
- Dr=function(a,b){return _.I(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==Kf){c.F(2);break}a.g.info("Wait for seek to finish");_.C(c,3);return _.y(c,b.preloadPromise,5);case 5:_.uh(c,2);break;case 3:_.E(c);case 2:a.a=b;b.role=Vr;wr(a,b.player,!0);b.state="loading";if(a.w){b.player.setMuted(!1);c.F(6);break}return _.y(c,b.player.play(),6);case 6:b.state=_.zf,_.B(c)}})};Sr=function(a,b){return _.I(function(c){return b===a.f?c.F(0):_.y(c,a.o.release(b),0)})};
290
- Ur=function(a,b){var c;return _.I(function(d){if(1==d.a)return b?d["return"](a.f):_.y(d,a.o.get(),2);c=d.f;if(!c)throw Error("No player available");return d["return"](c)})};Lr=function(a,b){var c;_.I(function(d){if(0===b.length)return d["return"]();a.g.info("Preload items (IDs: "+b+")");c=a.j.filter(function(e){return b.includes(e.id)})||[];return _.y(d,Promise.all(c.map(function(e){return Xr(a,e)})),0)})};
291
- Xr=function(a,b){var c,d,e,f;return _.I(function(g){switch(g.a){case 1:if(!b.primary){g.F(2);break}b.state=Kf;a.l.set(b.id,b);if(!b.ga||a.w){g.F(3);break}c=b.player;a.g.info("Preparing to resume at",b.ga);c.setMuted(!0);return _.y(g,c.seek(b.ga),3);case 3:return b.state=Jf,g["return"]();case 2:return d=b.id,_.y(g,Ur(a,!1),5);case 5:return e=g.f,b.player=e,b.videoEl=e.getSurface().getMedia(),b.role=Tr,b.state=Kf,_.C(g,6),a.l.set(d,b),b.config.autoplay&&(a.g.warn("Autoplay should not be used for preloaded streams. Force disabling autoplay (ID: "+
292
- (d+")")),b.config.autoplay=!1),b.preloadPromise=Wr(e,b.config),_.y(g,b.preloadPromise,8);case 8:b.state=Jf;_.uh(g,0);break;case 6:f=_.E(g),7001===f.code?(a.g.info("Preload aborted (ID: "+d+")"),b.state=Hf):(a.g.warn("Preload failed (ID: "+d+")",f),b.state=If),_.B(g)}})};
293
- wr=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.debug(Vb+b),d.classList.add(yd),d.classList.remove("clpp-hide")):(a.g.debug(hb+b),d.classList.remove(yd),d.classList.add("clpp-hide")),a.G&&a.G(d,c))};
294
- ur=function(a,b,c){return Array.from({length:2}).map(function(d,e){var f=document.createElement(_.r);b.appendChild(f);var g=a.h.hb.create();f=new sr(f);g.init(f,c);g.setSourceIndex(0);var h=f.getContainer();if(!h)throw Error("Failed to create player surface container element");h.classList.add("secondary");f.getMedia().classList.add("v-"+e);a.B.push(h);return g})};Yr=function(a){a.B.forEach(function(b){return a.C.removeChild(b)});a.B=[];wr(a,a.f,!0)};
295
- Wr=function(a,b){return _.I(function(c){return 1==c.a?_.y(c,a.release(),2):_.y(c,a.load(b),0)})};yr=function(a){if(a.kc&&0===a.kc.getDuration()){var b=a.player.getDuration();a.kc.h=b}a.pf&&a.pf()};
296
- ds=function(a){_.xm.call(this);var b=this;this.h=_.N.ta({Mn:.5},a);this.g=new _.K("clpp.interstitial.Player");this.j=a.player;this.j.setSeekInterceptor(function(c){var d=Zr(b,c);return d&&[$r,as].includes(d.state)?(b.g.info("Seeking into an interstitial",d.ka),bs(b,d)["catch"](function(){b.j.seek(c)}),!1):!0});this.a=new xr({wl:this.h.config,hj:a.player,preloadMedia:!0,hb:a.hb,sideAdContainer:this.h.sideAdContainer});this.l=[];this.f=[];this.o=!1;cs(this,a.player)};
297
- es=function(a){return(a=a.a.getCurrentItem())&&!a.primary?a.player:null};
298
- gs=function(a){var b,c,d;_.I(function(e){var f=a.a;Ar(f,[{id:Mf,primary:!0,config:f.f.getConfiguration(),next:[]}]);var g=Nr(f);if(!g)throw Error("Failed to find primary item");f.a=g;g.role=Vr;g.player=f.f;g.videoEl=g.player.getSurface().getMedia();wr(f,g.player,!0);b=a.j;c=b.getConfiguration();d=!c.autoplay;a.o=fs(a,d,b.isLive(),!1);if(a.o){f=a.a;g=f.o;if(g=g.a[0]?g.a[0].player:null)f.w||wr(f,f.f,!1),wr(f,g,!0);return e.F(0)}return c.autoplay?_.y(e,zr(a.a),0):e.F(0)})};
299
- fs=function(a,b,c,d){var e=hs(a);a.g.info("Interstitial cues found",e);var f=e;if(d){f=Gi(a.f.map(function(n){return n.ka}),e.map(function(n){return n.id}));is(a,f.Tn);var g=new Set(f.Jj);f=e.filter(function(n){return g.has(n.id)})}if(!js(a,f))return!1;var h=[],l=[],m=[];f.forEach(function(n){var p=n.customAttributes.CUE||[];p.includes(_.Gb)?l.push(n):!d&&p.includes("PRE")?h.push(n):!c&&n.startTime<a.h.Mn?h.push(n):m.push(n)});1<h.length?a.g.warn("Multiple preroll interstitials not supported. Will display only the 1st one."):
300
- h[0]&&ks(a,h[0],b);m.forEach(function(n){return ls(a,n,1)});1<l.length?a.g.warn("Multiple postroll interstitials not supported. Will display only the 1st one."):l[0]&&ls(a,l[0],2);a.g.info("Interstitials changed",a.f);return 0<h.length};is=function(a,b){var c=new Set(b);a.f.forEach(function(d){c.has(d.ka)&&![$r,as].includes(d.state)&&a.g.warn("Removing an interstitial in active state",d)});a.f=a.f.filter(function(d){return!c.has(d.ka)})};
301
- hs=function(a){return a.j.getTimelineCues().filter(function(b){return b.schemeIdUri===Md&&b.customAttributes})};bs=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.y(d,ms(a,b),2);c=d.f;if(!c)throw Error("Failed to bind");return _.y(d,ns(a,b,1,!1),0)})};
302
- ls=function(a,b,c){var d=b.customAttributes[pc],e=b.id,f=b.startTime,g=b.endTime,h=$r,l=b.customAttributes[mc],m=b.customAttributes[nc],n=null==d?null:b.startTime+d,p=b.customAttributes[oc];if(b=b.customAttributes[lc])try{var q=JSON.parse(atob(b))}catch(u){q=null}else q=null;c={ka:e,startTime:f,endTime:g,state:h,hh:l,ih:m,Da:null,ga:n,Yn:d,fj:p,Dg:c,pj:q};a.f.push(c);return c};
303
- ks=function(a,b,c){var d,e,f;_.I(function(g){if(1==g.a)return d=ls(a,b,0),_.y(g,ms(a,d),2);e=g.f;f=d.Da?d.Da.length:0;if(e&&0<f)return ns(a,d,0,c),a.g.info("Preroll interstitial "+d.ka+" scheduled"),g.F(0);e?a.g.warn("Preroll interstitial has no assets, skipping"):a.g.error("Preroll interstitial failed, skipping");return c?g.F(0):_.y(g,zr(a.a),0)})};os=function(a){a.l.forEach(function(b){return b()});a.l=[]};
304
- cs=function(a,b){function c(){fs(a,!1,!0,!0)}function d(){var e,f,g,h,l;return _.I(function(m){switch(m.a){case 1:e=b.getPosition();f=ps(a,e);if(!f){m.F(2);break}a.g.info(ib+f.ka+" coming up at "+(f.startTime+" s"));return _.y(m,ms(a,f),3);case 3:(g=m.f)&&qs(a,f,b);case 2:h=rs(a);if(!(h&&h.state===$r&&b.getDuration()-e<a.h.resolutionOffsetSec)){m.F(0);break}return _.y(m,ms(a,h),5);case 5:if(l=m.f)if(h.Da&&0!==h.Da.length){var n=a.a.getCurrentItem();if(n){var p=ss(a,h,2),q=p[0].id;n.next=[q];n.transition=
305
- {yb:q};ts(a,h,p);a.g.info("Postroll interstitial "+h.ka+" scheduled")}}else a.g.warn("Postroll interstitial has no assets, ignoring.");_.B(m)}})}b.addEventListener(_.tg,d);a.l.push(function(){b.removeEventListener(_.tg,d)});b.addEventListener(_.ki,c);a.l.push(function(){b.removeEventListener(_.ki,c)})};rs=function(a){return a.f.find(function(b){return 2===b.Dg})||null};
306
- js=function(a,b){for(var c=b.sort(function(m,n){return m.startTime-n.startTime}),d=a.h.resolutionOffsetSec,e=[],f=0;f<c.length-1;f++){var g=c[f],h=c[f+1];h&&h.startTime-g.endTime<d&&e.push(kb+g.id+" and "+h.id+" are too close to each other (less than "+(d+" s)."));h&&h.startTime<=g.endTime&&e.push(kb+g.id+" and "+h.id+" overlap.")}var l=[];b.forEach(function(m){var n=m.customAttributes[nc],p=m.customAttributes[oc];m.customAttributes[mc]||n?null!=p&&1>p&&a.g.warn(jb+m.id+" is invalid X-PLAYOUT-LIMIT is less than 1 s.",
307
- m):l.push(jb+m.id+" is invalid it contains neither X-ASSET-LIST nor X-ASSET-URI.")});0<l.length?a.g.error("Invalid interstitials, all interstitials will be skipped. "+l.join(" ")):0<e.length&&a.g.warn("Unsupported format of interstitials, playback may not behave correctly. "+e.join(" "));return 0===l.length};ps=function(a,b){return a.f.find(function(c){var d=c.startTime-b;return 1===c.Dg&&[$r,as].includes(c.state)&&0<d&&d<=a.h.resolutionOffsetSec})||null};
308
- Zr=function(a,b){return a.f.find(function(c){return 1===c.Dg&&b>c.startTime&&b<c.endTime})||null};
309
- ms=function(a,b){var c,d,e;return _.I(function(f){switch(f.a){case 1:b.state=us;if(!b.hh){b.ih?(b.Da=[{URI:b.ih,DURATION:b.endTime-b.startTime}],a.Xa(new _.L(Ac,{id:b.ka,detail:vs(b)})),b.state=ws):b.state=xs;f.F(2);break}_.C(f,3);a.g.info("Load X-ASSET-LIST for "+b.ka);a.Xa(new _.L(yc));return _.y(f,ys(a,b.hh),5);case 5:c=f.f;b.Da=c.ASSETS;b.Da&&0!==b.Da.length||a.g.info(ib+b.ka+" has no assets, will be smoothly skipped");null==b.ga&&(d=Cj(b.Da.map(function(g){return g.DURATION})),b.ga=b.startTime+
310
- d);b.state=ws;a.Xa(new _.L(zc));a.Xa(new _.L(Ac,{id:b.ka,detail:c}));_.uh(f,2);break;case 3:e=_.E(f),a.g.error("Failed to load X-ASSET-LIST",e),b.state=xs;case 2:return f["return"](b.state===ws)}})};zs=function(a,b){var c=a.h.Kn;if(c){var d=new URL(b);d.searchParams.set("_HLS_primary_id",c);return d.toString()}return b};
311
- ns=function(a,b,c,d){var e,f;return _.I(function(g){e=a.a.getCurrentItem();if(!e)return g["return"]();f=ss(a,b,c);ts(a,b,f);null!=b.ga&&Or(a.a,b.ga);return d?_.y(g,a.a.load(f[0].id),0):_.y(g,a.a.play(f[0].id),0)})};
312
- qs=function(a,b,c){if(b.Da)if(0===b.Da.length){var d=function(){c.isLive()?a.g.info("Skipping empty live interstitial "+b.ka):null!=b.ga&&0!==b.Yn?c.seek(b.ga):a.g.info("Empty VOD interstitial "+b.ka+", continuing to next segment")};c.one(_.li,d);a.l.push(function(){c.off(_.li,d)});a.g.info(ib+b.ka+" scheduled to be skipped")}else{var e=a.a.getCurrentItem();if(e){var f=ss(a,b,1),g=f[0].id;null!=b.ga&&Or(a.a,b.ga);e.next=[g];e.transition={wg:{position:b.startTime,itemId:g,ga:b.ga}};ts(a,b,f);a.g.info(ib+
313
- b.ka+" scheduled for "+(b.startTime+" s"))}}};ts=function(a,b,c){Ar(a.a,c);Qr(a.a);b.state=As;a.Xa(new _.L(_.Cc,{detail:null}))};
314
- ss=function(a,b,c){var d=0,e=b.Da.map(function(m,n){var p=b.ka+"-"+n;d+=m.DURATION;return{id:p,config:{source:{url:zs(a,m.URI),type:_.hm}},duration:m.DURATION,Rd:d,Ze:b.ka,next:[],kc:new gr(c,n+1,b.Da.length,m.DURATION,b.ka)}});e.forEach(function(m,n){var p=n===e.length-1;p&&2===c||(p?(m.next=[Mf],m.transition={yb:Mf}):(p=p?Mf:m.Ze+"-"+(n+1),m.next=[p],m.transition={yb:p}))});e.forEach(function(m){m.pf=function(){a.g.info("Playing interstitial asset "+m.id,m)}});if(null!=b.fj){var f=b.fj;a.g.info("Playout limit for "+
315
- b.ka+" is "+(f+" s"));var g=e[e.length-1],h=f-(g.Rd-g.duration);0>=f?e=[]:f<g.Rd?(e=e.filter(function(m){return m.Rd-m.duration<=f}),.1>Math.abs(h-g.duration)?g.transition.yb=Mf:g.transition.wg={position:h,itemId:Mf,ga:null}):f>g.Rd&&a.g.info("Playout limit ("+f+") islarger than total duration: ("+(g.Rd+")"))}var l=e[0].pf;e[0].pf=function(){a.g.info("Playing interstitial "+c+" "+b.ka+" with "+(b.Da.length+" assets and will resume primary content ")+((b.ga?"at "+b.ga.toFixed(1)+" s":"after interstitial ended")+
316
- "."),e);l()};e[0].Si=function(m){null==b.ga&&(b.ga=b.startTime+m,Or(a.a,b.ga),a.g.info("Primary content will resume at",b.ga));b.state=Bs};e[e.length-1].yb=function(){b.state=as;Br(a.a,e.map(function(m){return m.id}))};return e};ys=function(a,b){var c,d,e,f,g,h;return _.I(function(l){if(1==l.a){c=a.a.Ve();if(!c)throw Error("No player found");d=c.getNetworkEngine();e=_.gk(zs(a,b));return _.y(l,Dk(d,e),2)}f=l.f;g=Cs(f);if(!g)throw new _.Ui("Invalid X-ASSET-LIST list response");h=f;return l["return"](h)})};
317
- Cs=function(a){return a&&a.ASSETS&&Array.isArray(a.ASSETS)?a.ASSETS.every(function(b){return typeof b.URI===_.lg&&typeof b.DURATION===_.k}):!1};vs=function(a){var b={URI:a.Da[0].URI,DURATION:a.Da[0].DURATION};a.pj&&(b[lc]=a.pj);return{ASSETS:[b]}};Ds=function(){this.a=null};
318
- Es=function(){try{var a=URL.createObjectURL(new Blob);URL.revokeObjectURL(a);return a.slice(a.lastIndexOf("/")+1)}catch(c){var b=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(d){var e=(b+16*Math.random())%16|0;b=Math.floor(b/16);return("x"===d?e:e&3|8).toString(16)})}};Gs=function(a){this.m=a;this.j=this.m.getNetworkEngine();this.a=new _.Yh;this.h=null;this.f=!0;Fs(this)};
319
- Fs=function(a){a.a.on(window,"offline",function(){Hs(a,!1)});a.a.on(window,"online",function(){a.f||Is(a)});a.a.on(a.m,gg,function(){return Js(a)});a.a.on(a.m,"suspend",function(){return Js(a)});a.a.on(a.m,_.Rg,function(){return Js(a)});a.a.on(a.m,_.zf,function(){a.f||Is(a)});a.a.on(a.m,_.Nf,function(){a.f||Is(a)});a.a.on(a.m,_.ig,function(){switch(a.m.getState()){case _.zq:Js(a);break;default:Js(a)}})};Is=function(a){a.m.getConfiguration().connectivityCheck&&(Ks(a),a.h=(new _.yl(function(){return Ls(a)})).ea(5))};
320
- Js=function(a){a.f&&Is(a)};Ks=function(a){a.h&&(a.h.stop(),a.h=null)};Ls=function(a){var b,c;return _.I(function(d){if(1==d.a)return(b=a.m.getConfiguration().connectivityCheck)&&a.m?_.y(d,Ek(a.j,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;Hs(a,c);_.B(d)})};Hs=function(a,b){Ks(a);a.f!==b&&(a.f=b,a.m&&a.m.getConfiguration().connectivityCheck&&a.m.trigger(new _.L(ff,{online:a.f})))};Ns=function(){for(var a=0;a<Ms.length;++a)Ms[a].$c()};
321
- _.Os=function(a,b){b=b||0;for(var c={priority:b,$c:a},d=0;d<Ms.length;d++)if(Ms[d].priority<b){Ms.splice(d,0,c);return}Ms.push(c)};Ps=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};Qs=function(a,b,c){var d=_.T.ba;this.h=a;this.f=b;JSON.parse(d(_.Tj(a)));this.a=JSON.parse(d(_.Tj(b)));this.j=c};
322
- Ss=function(a){var b=Rs,c=_.T.cb,d={kty:"RSA",n:b.n,e:b.e},e=a.h+"."+a.f,f=a.j;return new Promise(function(g,h){try{var l=window&&window.crypto&&window.crypto.subtle}catch(n){}if(l){var m={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};l.importKey("jwk",d,m,!1,["verify"]).then(function(n){var p=c(e),q=_.Tj(f);return l.verify(m,n,q.buffer,p.buffer)}).then(function(n){n?g():h(new _.Ui("Signature Verification failed",wg))})["catch"](h)}else g()})};Ts=function(a){this.f=a;this.a=null;this.g=new _.K("clpp.utils.LicenseKey")};
323
- Us=function(a){if(!a.a){var b=a.f.split(".");if(3!==b.length)throw Error("Expected to find 3 data sections in JWT raw data");b=new Qs(b[0],b[1],b[2]);a.a=b}return a.a};
324
- Vs=function(a){var b,c,d;return _.I(function(e){if(1==e.a)return b=Us(a),_.C(e,2),_.y(e,Ss(b),4);if(2!=e.a)return _.uh(e,0);if((c=_.E(e))&&c.code===wg)throw c;var f=window.location.href,g=new _.Zi(f);d=g.Ab||g.rb?g:new _.Zi("//"+f);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(d.rb))return e["return"]();throw c;})};
325
- Ws=function(a){switch((a.aa[0]||{src:"",type:""}).type){case _.Sc:a="dash";break;case _.Xc:a="ss";break;case _.hm:a="hls";break;case _.Lg:a="mp4";break;default:a=""}return a};Xs=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};Ys=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};Zs=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};
326
- at=function(a){var b=a.configuration,c="no";b.drm&&!_.N.pa(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(le)||$s(a).endsWith("drmtoday.com"))&&(c=le);return c};bt=function(a){a=a.drmInfo;var b="";if(a)switch(a.keySystem){case _.Qd:b="wv";break;case _.Od:b="pr";break;case _.Kd:b="fps"}return b};ct=function(a){a=a.drmInfo;var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};
327
- dt=function(a){a=a.drmInfo;var b="";if(a)switch(a.videoRobustness){case fb:case db:b="L1";break;case eb:b="L2";break;case _.Sb:case _.Rb:b="L3"}return b};$s=function(a){a=a.drmInfo;return(new _.Zi(a&&a.licenseServerUri||"")).rb};
328
- gt=function(a,b){var c="ie"===_.yk().browser,d=b.configuration,e=_.gh(Array.from(_.Jm.keys())).concat(_.gh(b.gj));d={"CL-KEY":a.f,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ia,"CL-USER-ID":Xs(d),"CL-ASSET-ID":Ys(d),"CL-SESSION-ID":Zs(d),"CL-PLAYBACK-TYPE":b.isLive?et:ft,"CL-CONTENT-TYPE":Ws(b),"CL-PLUGINS":e.join(" "),"CL-DRM":at(b),"CL-DRM-CDM":bt(b),"CL-DRM-SEC-LEVEL":dt(b),"CL-DRM-OFFLINE":ct(b),"CL-DRM-IP":$s(b)};c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=e);e=_.gk(["https://downloads.castlabs.com/r/register/"]);
329
- e.method="GET";e.headers=d;return(new _.Bk).fetch(e).T.then(function(f){200===f.status&&c&&window.localStorage.setItem("cl_et",f.headers.etag);return Promise.resolve()})["catch"](function(f){a:{var g=Us(a);f=f.data;var h=f.status;if(g.a&&g.a.ilv)f=Promise.resolve();else{switch(h){case 403:case 404:g=7101;var l="castLabs Player license is invalid";if(403===h){h=l;l="";try{l=JSON.parse(decodeURIComponent(f.responseText)).message}catch(m){}f=h+(": "+l)}else f=l+"!";l=f;break;case 412:g=7103;l="License requires a viewer ID. It should be supplied either via the `viewerId` config or in case of DRMtoday via the `drm.customData.userID` config.";
330
- break;default:f=Promise.resolve();break a}a.g.error(pb+l);f=Promise.reject(new _.P(_.Q,7,g,l))}}return f})};it=function(a){this.m=a;this.f=a.getNetworkEngine();this.h=ht(this);this.f.Yc(this.h);this.a=null};
331
- ht=function(a){return function(b){var c=b.headers,d=b=null,e=_.N.ii(c,"cmsd-dynamic");c=_.N.ii(c,"cmsd-static");e&&(b=jt(e),a.a=b);if(c)try{e={};var f=c.split(",");for(c=0;c<f.length;c++){var g=kt(f[c]),h=g.key,l=g.value;Object.keys(lt).includes(h)&&(e[lt[h]]=l)}d=_.N.Fc(e)?e:null}catch(m){mt.error("CmsdManager parseCmsdStaticHeader_ failed:",m),d=null}(b||d)&&a.m.trigger(new _.L("cmsd-event",{Zo:b,np:d}))}};
332
- jt=function(a){try{var b=a.split(",").map(function(c){var d={};c=c.split(";");for(var e=0;e<c.length;e++){var f=kt(c[e]),g=f.key;f=f.value;Object.keys(nt).includes(g)&&(d[nt[g]]=f)}return d}).filter(function(c){return _.N.Fc(c)});return 0<b.length?b:null}catch(c){return mt.error("CmsdManager parseCmsdDynamicHeader_ failed:",c),null}};
333
- kt=function(a){var b=a.split("\x3d"),c=b[0];b=b[1];if(!c)throw new _.Ui("Parsing CMSD, missing parameter or wrong format");if(c&&!b)return{key:c,value:!0};var d=b[0];if('"'===d&&'"'===b[b.length-1])return{key:c,value:b.replaceAll(/(^")|("$)/g,"")};if(/^[-0-9]/.test(d))return{key:c,value:parseInt(b,10)};if(/^[a-zA-Z*]/.test(d))return{key:c,value:b};throw new _.Ui("Parsing CMSD, not recognized value type of "+a);};
334
- X=function(a,b,c){_.xm.call(this);var d=this;Ns();this.g=new _.K("clpp.Player");if(!a)throw new _.P(_.Q,7,7102);this.ya=new _.Yh;this.f=this.C=b||_.Em();this.l=null;void 0===this.f.license&&(this.f.license=Bm,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 _.P(_.Q,7,7101,"No license provided in configuration!");this.j=new sr(a,c);this.H=this.A=this.a=this.G=
335
- null;this.J=new _.Bk;this.h=null;this.ha=[];this.ia=!0;this.L={};this.Ja=null;this.$=!0;this.ca=this.U=!1;this.M=this.kd=null;this.$f=!1;this.fb=new Gs(this);this.B=null;this.on(_.ig,function(){d.getState()===_.Fq&&(d.a?d.a.unload():Promise.resolve())});this.on(_.Oc,this.Mi.bind(this));this.on(_.Nc,this.Mi.bind(this));this.on(_.ki,function(){return ot(d)});pt(this,this.f.license);this.j.getMedia()&&(a=this.j.getMedia(),a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),this.g.debug("Removed autoplay attribute from video element. Auto play will be handled by configuration."),
336
- void 0===this.f.autoplay&&(this.f.autoplay=!0,this.g.debug("Setting autoplay in configuration since it was specified in the video element"))));a=[];b=_.w(qt);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)}}rt(this,a);this.P=_.oa;Pm(this)};
337
- _.st=function(a,b,c){c=void 0===c?null:c;null!=b&&b===a.a?a.a.forwardEventsTo(a):(a.a&&(a.a.stopForwardingEventsTo(a),a.a.destroy(),a.a=null,a.A=null),b&&(b.init(a.j,a.C),b.setNetworkEngine(a.getNetworkEngine()),b.forwardEventsTo(a),a.a=b,a.A=c))};pt=function(a,b){a.G=new Ts(b);Vs(a.G)["catch"](function(c){setTimeout(function(){a.g.error(pb+c);a.trigger(new _.L(_.se,{detail:new _.P(_.Q,7,7101)}));a.destroy()},1E3)})};
338
- tt=function(a,b){var c,d;_.I(function(e){if(1==e.a)return a.j.getMedia()||a.j.getCastElement(),a.G||(a.G=new Ts(a.f.license)),_.C(e,2),a.g.debug("Verifying license remotely"),_.y(e,gt(a.G,b),4);if(2!=e.a)return a.g.debug("License verified remotely"),_.uh(e,0);c=_.E(e);a.g.debug("License rejected by remote",c);d={release:a.release.bind(a),destroy:a.destroy.bind(a),onError:a.onError.bind(a)};setTimeout(Ps,1E3,d,c);_.B(e)})};
339
- rt=function(a,b){a.ha=b;for(var c=_.w(a.ha),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.id();e&&(a.L[e]=d)}a.Jc("onPlayerCreated")};
340
- ut=function(a){var b,c;return _.I(function(d){switch(d.a){case 1:if(a.$)return a.g.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.ya.off(document,Pg);a.trigger(new _.L(_.Rf));a.j&&a.j.release();if(!a.h){d.F(2);break}return _.y(d,a.h.yc(),3);case 3:a.h=null;case 2:if(!a.B){d.F(4);break}return _.y(d,a.B.release(),5);case 5:a.B=null;case 4:if(a.a)return b=null,c=a.a.on(_.ig,function(e){b=e}),d["return"](a.Jc(_.df).then(function(){a.a.stopForwardingEventsTo(a);
341
- return Promise.all([a.a.release(),a.J.release()])}).then(function(){a.g.debug("Releasing player completed");b&&(a.g.debug("Re-post state change event after release"),a.trigger(b))})["finally"](function(){a.a.off(_.ig,c);a.trigger(new _.L(Qf))}));a.trigger(new _.L(Qf));return d["return"](new Promise(function(e){return e()}))}})};
342
- wt=function(a,b,c){if(a.P===_.Fb)b=vt(b,c);else if(2!==(a.a?a.a.canPlay(b[0],c):0)||a.ca){a.ca=!1;if(b){for(var d=a=null,e=0;e<b.length;e++);e=Object.values(_.Rh);for(var f=0;f<b.length;f++)for(var g=0;g<e.length;g++){var h={hb:e[g],confidence:e[g].canPlay(b[f],c)};if(null===a||a.confidence<h.confidence)a=h,d=f}a&&typeof d===_.k&&0<a.confidence?(_.Sh.debug("Player Factory '"+a.hb.a()+"' can play",b[d]),b=new Qh(a.hb,d)):(_.Sh.debug("No compatible Player Factory found for sources:",b),b=null)}else b=
343
- null;if(!b)throw new _.P(_.Q,7,7003,"No player factory compatible with given sources found!");c=b.hb;a=c.create();b={hb:c,player:a,sourceIndex:b.sourceIndex}}else b={hb:a.A,player:a.a,sourceIndex:0};return b};vt=function(a,b){var c=Uh(function(d){return d.f(_.Fb)&&a.every(function(e){return 2===d.canPlay(e,b)})});if(!c)throw new _.P(_.Q,7,7003,"No compatible player implementing playlist mode found!");return{hb:c,player:c.create(),sourceIndex:0}};
344
- yt=function(a){var b;return _.I(function(c){if(1==c.a){if(!a.a)return a.g.warn(Ib),c["return"]();b=a.a;if(!b.wh)return a.g.warn(Mb),c["return"]();a.trigger(new _.L(Ne));return _.y(c,b.wh(),2)}return _.y(c,_.xt(a),0)})};
345
- _.Ct=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a){if(a.U)throw new _.P(_.Q,7,7E3,"Player is already destroyed.");if(!a.j)throw new _.P(_.Q,7,7E3,"No surface associated with this player!");_.bp(uf);return _.y(f,a.release(),2)}if(3!=f.a){d=c||_.Mq(b);if(!b||0===d.length)throw new _.P(_.Q,7,7003,zb);a.Ja=d;a.f=_.Gm(a.C,b,{source:d});a.$=!1;e=wt(a,d,a.f);_.st(a,e.player,e.hb);zt(a,a.a);a.a&&a.a.setSourceIndex(e.sourceIndex);At(a);a.a&&a.a.setCdnErrorCallback(a.M);Bt(a,a.f);a.B=new it(a);
346
- a.a.setCmsdManager(a.B);if(a.f.pauseWhenInBackground)a.ya.on(document,Pg,function(){document.hidden?(a.g.debug("Player is hidden: pausing..."),a.pause()):(a.g.debug("Player is visible: resuming..."),a.play())});Qm(a);return _.y(f,a.Jc("onContentWillLoad",a.f.source[e.sourceIndex]),3)}_.bp(tf);_.cp("player.beforeLoad",uf,tf);_.B(f)})};
347
- _.Dt=function(a){return _.I(function(b){a.j.getMedia()||a.j.getCastElement();a.trigger(new _.L(Ne));return _.y(b,Promise.all([a.a.load(a.f),a.h?a.h.load():Promise.resolve()]),0)})};zt=function(a,b){try{var c=crypto.randomUUID()}catch(d){c=Es()}a.g.info("Playback session started, ID:",c);b.setPlaybackSessionId(c);a.H=c};Et=function(a){a.H&&(a.g.info("Playback session ended, ID:",a.H),a.H=null,a.a&&a.a.setPlaybackSessionId(null))};
348
- Gt=function(a){var b,c,d,e;_.I(function(f){if(1==f.a){b=[];if(a.f.remoteTextTracks)for(c=_.w(a.f.remoteTextTracks),d=c.next();!d.done;d=c.next())e=d.value,b.push(a.getTrackManager().addTextTrack(e));return _.y(f,Promise.all(b),2)}Ft(a);_.B(f)})};
349
- Ft=function(a){var b=_.Bi(a.f.preferredTextLanguage).filter(function(f){return f}),c=a.f.preferForcedSubtitles,d=a.getTrackManager().la().filter(function(f){return c?f.kind===_.ue:f.kind!==_.ue});if(0===d.length)c&&a.g.warn("Forced subtitles are configured to be preferred, but no forced subtitles are available.");else{if(c&&0===b.length){var e=a.getTrackManager().qa();e&&e.language?(e=_.yj(e.language||""),b.push(e)):(e=a.getTrackManager().La())&&e.language&&(e=_.yj(e.language||""),b.push(e));0===
350
- b.length&&a.g.warn("Forced subtitles are configured to be preferred, but neither the preferred text language is set, nor the audio or video track language is available to determine which forced subtitles language to select.")}b.some(function(f){var g=_.yj(f);if(f=d.find(function(h){h=_.yj(h.language||"");return _.zj(h,g)}))return a.getTrackManager().Wa(f),!0;c&&a.g.warn("Forced subtitles are configured to be preferred, but no forced subtitles match the preferred languages: ",b);return!1})}};
351
- _.xt=function(a){var b;return _.I(function(c){if(1==c.a)return _.bp(qf),tt(a,{configuration:a.getConfiguration(),aa:a.mi(),drmInfo:a.getDrmInfo(),gj:Object.keys(a.L),isLive:a.isLive()}),Gt(a),Rm(),_.y(c,a.Jc(_.af),2);if(3!=c.a)return a.f.autoplay?(b=a.h?a.h.Zc():!0)?_.y(c,a.play(),3):c.F(3):c.F(3);_.bp(pf);_.cp("player.afterLoad",qf,pf);_.B(c)})};Bt=function(a,b){var c=dr(a,b);c&&(a.h=c.create(a))};
352
- ot=function(a){if(!a.h&&a.A&&a.a&&a.f.ads.hls.enable&&a.getTimelineCues().some(function(c){return c.schemeIdUri===Md})){var b=a.f.mse.sendPlaybackSessionIdHeader?a.H:null;a.h=new Ds;a.h.cd(a.a,a.A,b)}};At=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.I(function(c){if(!a.kd||!a.$f)return c.F(0);a.$f=!1;return _.y(c,a.kd(b),0)})})};_.Ht=function(a){a&&(0<=qt.indexOf(a)||qt.push(a))};
353
- It=function(a,b,c){X.call(this,a,b,c);a={manifest:{timeline:{version:2},keepTimelineLive:!0},streaming:{preferNativeHlsOnSafari:!1,enableLiveEdgeChasing:!1,startAtSegmentBoundary:!1}};this.C=_.N.ta(this.C,a);this.f=_.N.ta(this.f,a);this.I=0;this.o=[];this.da=!1;this.w=null;this.K=[]};Jt=function(a){a.K.forEach(function(b){return b()});a.K=[]};
354
- Kt=function(a,b){function c(f){a.I=a.o.findIndex(function(g){return g.id===f.id})}a.addEventListener(_.Xf,c);a.K.push(function(){a.removeEventListener(_.Xf,c)});if(b.endTime){var d=b.endTime,e=function(){a.getPosition()>=d&&(a.removeEventListener(_.tg,e),a.g.info("Playlist end time reached. Stopping playback."),a.trigger(new _.L(_.Wf)),a.pause())};a.addEventListener(_.tg,e);a.K.push(function(){a.removeEventListener(_.tg,e)})}};
355
- Nt=function(a,b){var c,d;return _.I(function(e){switch(e.a){case 1:return _.C(e,2),_.bp(yf),a.P=_.Fb,a.ia=!1,c=b.slice(1).map(function(f){return{config:f,aa:_.Mq(f)}}),_.y(e,_.Ct(a,b[0]),4);case 4:return c.forEach(function(f){Lt(a,f.config,f.aa)}),a.trigger(new _.L(Ne)),_.y(e,a.a.setupPlaylist(b),5);case 5:return _.y(e,_.xt(a),6);case 6:c.forEach(function(f){Mt(a,f.config,f.aa)});_.bp(xf);_.cp("player.setupPlaylist",yf,xf);_.uh(e,0);break;case 2:d=_.E(e);if(a.l)throw a.g.info(qb),new _.P(_.Q,7,7E3);
356
- throw d;}})};Ot=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.C(e,2),_.bp(sf),c=_.Mq(b),Lt(a,b,c),_.y(e,a.a.appendLoad(b),4);if(2!=e.a)return Mt(a,b,c),_.bp(rf),_.cp("player.appendLoad",sf,rf),_.uh(e,0);d=_.E(e);if(a.l)throw a.g.info(qb),new _.P(_.Q,7,7E3,{id:b.id});throw d;})};Mt=function(a,b,c){tt(a,{configuration:b,aa:c,drmInfo:a.getDrmInfo(),gj:Object.keys(a.L),isLive:c[0].isLive})};
357
- Lt=function(a,b,c){if(0===c.length)throw new _.P(_.Q,7,7003,{message:zb,id:b.id});if(1<c.length)throw new _.P(_.Q,7,7003,{message:"Multiple sources not supported!",id:b.id,source:c});if(2!==(a.a?a.a.canPlay(c[0],a.f):0))throw new _.P(_.Q,7,7003,{message:"Source not supported by the current player!",id:b.id,source:c[0]});};
358
- Rt=function(a){_.xm.call(this);var b=this;this.h=_.N.ta({transition:_.kf,preloadMedia:!1},a);this.j=[];this.a=0;var c=Pt(a.anchorId,this.h.config);this.w=new hr(c);this.f=null;this.l=!1;this.o=new Map;this.A=a.toggleVisible;this.g=new _.K(Ed);this.w.a.forEach(function(d){return Qt(b,d.player,!1)})};Tt=function(a){return Promise.all(Array.from(a.o.keys()).map(function(b){return St(a,b)}))};
359
- St=function(a,b){var c;return _.I(function(d){if(1==d.a){c=a.o.get(b);if(!c)return d.F(0);a.g.info("Stop preloading item (index: "+b+")");return c.player?_.y(d,Ut(a,c),3):d.F(3)}a.o["delete"](b);_.B(d)})};Wt=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Stop current playback (index: "+b.index+")"),b.player.pause(),Qt(a,b.player,!1),_.y(c,Ut(a,b),2);b.player=null;b.videoEl=null;b.role=Vt;_.B(c)})};
360
- Ut=function(a,b){return _.I(function(c){b.disposers.forEach(function(d){return d()});b.disposers=[];return b.player?_.y(c,a.w.release(b.player),0):c.F(0)})};Zt=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.y(d,a.w.get(),2);if(3!=d.a)return c=d.f,a.f=b,b.role=Xt,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),Qt(a,c,!0),_.y(d,c.load(b.config),3);Yt(a,b);return b.config.autoplay?d.F(0):_.y(d,c.play(),0)})};
361
- $t=function(a,b){return _.I(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==Kf){c.F(2);break}a.g.info(hc);_.C(c,3);return _.y(c,b.preloadPromise,5);case 5:_.uh(c,2);break;case 3:_.E(c);case 2:a.f=b;b.role=Xt;Qt(a,b.player,!0);if(b.state===Jf)return _.bp(Gf),a.h.preloadMedia?_.y(c,b.player.play(),11):_.y(c,yt(b.player),11);if(b.state!==If){c.F(7);break}return _.y(c,b.player.load(b.config),7);case 11:_.bp(Cf),_.cp("playlist.next",Gf,Cf);case 7:if(Yt(a,b),b.config.autoplay)c.F(0);
362
- else return _.y(c,b.player.play(),0)}})};Yt=function(a,b){if(a.h.autoplayNext){var c=function(){a.g.info("Automatically transition to next item");a.ej()};b.player.on(_.re,c);var d=b.player;b.disposers.push(function(){d.off(_.re,c)})}};bu=function(a){var b;return _.I(function(c){b=a.a+1;a.g.info("Preload following item (index: "+b+")");return _.y(c,au(a,b),0)})};cu=function(a){var b;return _.I(function(c){b=a.a-1;a.g.info("Preload preceding item (index: "+b+")");return _.y(c,au(a,b),0)})};
363
- du=function(a){var b;_.I(function(c){if(0===a.a)return _.y(c,bu(a),0);if(a.a===a.j.length-1)return _.y(c,cu(a),0);b=[a.a-1,a.a+1];a.g.info("Preload items (indices: "+b+")");return _.y(c,Promise.all(b.map(function(d){return au(a,d)})),0)})};
364
- au=function(a,b){var c,d,e;return _.I(function(f){switch(f.a){case 1:return _.y(f,a.w.get(),2);case 2:return c=f.f,d=a.j[b],d.player=c,d.videoEl=c.getSurface().getMedia(),d.role=Vt,d.state=Kf,a.trigger(new _.L(zg)),_.C(f,3),a.o.set(b,d),a.h.preloadMedia?(d.config.autoplay&&(a.g.warn("Autoplay should not be used for preloaded streams. Force disabling autoplay (index: "+(b+")")),d.config.autoplay=!1),d.preloadPromise=c.load(d.config)):d.preloadPromise=c.preload(d.config),_.y(f,d.preloadPromise,5);case 5:d.state=
365
- Jf;a.trigger(new _.L(zg));_.uh(f,0);break;case 3:e=_.E(f),7001===e.code?(a.g.info("Preload aborted (index: "+b+")"),d.state=Hf):(a.g.warn("Preload failed (index: "+b+")",e),a.trigger(new _.L(_.se,{detail:e})),d.state=If),a.trigger(new _.L(zg)),_.B(f)}})};Qt=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.info(Vb+b),d.classList.add(yd)):(a.g.info(hb+b),d.classList.remove(yd)),a.A&&a.A(d,c))};
366
- eu=function(a){var b;return _.I(function(c){if(1==c.a)return _.y(c,a.w.destroy(),2);b=document.getElementById(a.h.anchorId);if(!b)return c["return"]();b.classList.remove(xd);b.innerHTML="";_.B(c)})};
367
- Pt=function(a,b){var c=document.getElementById(a);if(!c)throw Error("Anchor element not found");c.classList.add(xd);return Array.from({length:3}).map(function(){var d=document.createElement(_.r);d.classList.add("clpp-mc-playlist-video-el");var e=document.createElement(_.Zd);e.classList.add("clpp-mc-playlist-item");e.appendChild(d);c.appendChild(e);return new X(d,b)})};
368
- _.gu=function(a){if(fu.has(a))return fu.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);fu.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),fu.set(a,b),b):!1};hu=function(a){this.h=a;this.f={keepOriginalTimestamps:!0,remux:!1};this.a=new muxjs.mp4.Transmuxer(this.f)};
369
- iu=function(a,b){var c=b.replace(/mp2t/i,"mp4");a===_.Zc&&(c=c.replace(_.r,_.Zc));var d=/avc1\.(66|77|100)\.(\d+)/.exec(c);if(d){var e="avc1.",f=d[1],g=Number(d[2]);e=("66"===f?e+"4200":"77"===f?e+"4d00":e+"6400")+(g>>4).toString(16);e+=(g&15).toString(16);c=c.replace(d[0],e)}return c};ju=function(){};_.ku=function(){};
370
- lu=function(a,b,c,d,e){_.dn.call(this,gb);this.l=a;this.j=b;this.h=c;this.a=d;this.o=e;this.g=new _.K(Ad);_.T.empty(this.l)?this.g.warn(_.jc):this.ab(_.Qd,{licenseUrl:this.l,videoRobustness:[_.Sb,void 0],audioRobustness:[_.Rb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.re.bind(this)}});_.T.empty(this.j)?this.g.warn(_.Hb):this.ab(_.Od,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.re.bind(this)}});
371
- _.T.empty(this.h)?this.g.warn(_.bb):_.T.empty(this.a)?this.g.warn(_.ab):this.ab(_.Kd,{licenseUrl:this.h,certificateUrl:this.a,modifiers:{licenseRequest:this.Pi.bind(this),licenseResponse:this.Qi.bind(this),certificateRequest:this.re.bind(this),extractContentId:this.Xh.bind(this)}})};mu=function(){};nu=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.we)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
372
- ou=function(a){a=a.target;if(a.webkitPresentationMode===nf){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)};pu=function(){return this.webkitSupportsPresentationMode(nf)?(this.webkitSetPresentationMode(nf),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
373
- qu=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};ru=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};su=function(a,b,c){return new window.TextTrackCue(a,b,c)};
374
- tu=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};vu=function(a,b,c){if("input"===a)switch(this.type){case "range":a=td}uu.call(this,a,b,c)};yu=function(){this.a=xu()};zu=function(a){return xu()-a.a};Au=function(a){var b=new yu;b.a=a.a;return b};xu=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};_.Bu=function(a){var b=[];a=_.w(a);for(var c=a.next();!c.done;c=a.next()){c=_.w(c.value.variants);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};
375
- Cu=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.h=b;this.f=0};Du=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.h),c));a.a.set(d)}a.a.set(b,a.f);a.f+=b.byteLength};_.Eu=function(a,b,c){this.h=a;this.j=b;this.f=c||this.h.getMedia();this.a=null};_.Gu=function(){this.a=new Blob([Fu],{type:_.Lg})};_.Hu=function(a,b,c,d){this.id=a;this.f=b;this.a=c;this.h=d};_.Iu=function(){this.a=[];this.f=-1;this.h=null};
376
- _.Ku=function(a,b,c,d){var e,f;return _.I(function(g){if(1==g.a)return _.C(g,2),_.y(g,Ju(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.E(g);f.a(_.Q);throw f;})};
377
- Ju=function(a,b,c,d){var e,f,g,h;return _.I(function(l){if(1==l.a){if(d){if(e=_.Lu[d.toLowerCase()])return l["return"](e);_.Jh("Could not determine manifest type using MIME type ",d)}if(f=_.Mu(a)){if(g=_.Nu[f])return l["return"](g);_.Jh("Could not determine manifest type for extension ",f)}else _.Jh("Could not find extension for ",a);return d?l.F(2):_.y(l,Ou(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(h=_.Lu[d])return l["return"](h);_.Jh("Could not determine manifest type using MIME type",d)}throw new _.P(_.Q,
378
- 4,4E3,{url:a});})};Ou=function(a,b,c){var d,e,f;return _.I(function(g){if(1==g.a)return d=_.gk(a),dk(d,c),d.type=1,d.method="HEAD",_.y(g,b.fetch(d).T,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.Mu=function(a){a=(new _.Zi(a)).Ma.split("/").pop().split(".");return 1===a.length?"":a.pop().toLowerCase()};Pu=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.h=new yu};
379
- Ru=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(Qu(a,d),mk(c,d.byteLength,zu(a.h)),a.h.a=xu());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 Ru(a,b,c)})})};Qu=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};
380
- zk=function(a){var b=a.uris[a.uriIndex],c=new Su,d=new yu,e=Au(d),f=0,g,h=new _.ok;c.open(a.method,b,!0);c.responseType="arraybuffer";c.timeout=a.timeout;c.withCredentials=a.allowCrossSiteCredentials;var l=!1,m=!1;c.onreadystatechange=function(p){p=p.target;p.readyState>=XMLHttpRequest.LOADING&&0===f&&(g=zu(e));p.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!l&&(p=p.getResponseHeader(xa),lk(a,p),l=!0)};c.onload=function(p){p=p.target;var q=(p.getAllResponseHeaders()||"").trim().split("\r\n"),u={};
381
- q=_.w(q);for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),u[v[0].toLowerCase()]=v.slice(1).join(": ");try{var z=zu(e);m||mk(a,p.response?p.response.length:0,z);var A=_.kk(u,p.response,p.status,b,p.responseURL,a,z,g);a.rateLimitBps?nk(a.rateLimitBps,zu(e),a.bytesLoaded).then(function(){h.resolve(A)}):h.resolve(A)}catch(H){h.reject(H)}};c.onerror=function(p){p=p.target;if(0>=p.status)h.reject(new _.P(1,1,1002,{url:b,request:a,status:p.status}));else{var q=p.getAllResponseHeaders(),u={};if(q){q=
382
- _.w(q.trim().split("\r\n"));for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),u[v[0].toLowerCase()]=v.slice(1).join(": ")}p=_.kk(u,p.response,p.status,b,p.responseURL,a,zu(e),g);h.resolve(p)}};c.ontimeout=function(){h.reject(new _.P(1,1,1003,{url:b,request:a}))};c.onprogress=function(p){var q=zu(d);d.a=xu();if(100<q||p.lengthComputable&&p.loaded===p.total)mk(a,p.loaded-f,q),f=p.loaded,m=!0};for(var n in a.headers)c.setRequestHeader(n.toLowerCase(),a.headers[n]);c.send(a.body);return{T:h,
383
- request:a,abort:function(){c.abort();h.reject(new _.P(1,1,7001,{url:b,request:a}));return Promise.resolve()}}};Tu=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.j=new Cu(a);this.length=a;this.A=b;this.f=this.a=this.h=0;this.l=null;this.o=-1;this.w=new yu};
384
- Wu=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,zu(a.w)),a.w.a=xu());if(f)return f=Uu(a),(f=c(!0,f))?f.then(function(){return a.j.a.buffer}):Promise.resolve(a.j.a.buffer);var g=Promise.resolve();if(null!=e){Du(a.j,e);a.a=a.h;a.f=a.j.f;a.l=new DataView(a.j.a.buffer,0,a.j.f);e=Vu(a);for(f=[];e;)f.push(e),e=Vu(a);if(!a.A)f.forEach(function(m){g=g.then(function(){return c(!1,m)})});else if(0<f.length){e=f[0];if(1<f.length){e=f[0];var h=f[f.length-1],
385
- l=h.end-e.start;e={start:e.start,end:h.end,length:l,data:new DataView(a.j.a.buffer,e.start,l),count:f.length}}(f=c(!1,e))&&(g=f)}}return g.then(function(){return Wu(a,b,c,d)})})};Vu=function(a){if(0<=a.o&&a.f<a.o)return null;for(var b=Xu(a);null!==b;){if(b.name===_.Pe){var c={start:a.h,end:b.end,length:b.end-a.h,data:new DataView(a.j.a.buffer,a.h,b.end-a.h),count:1};a.h=b.end;return c}b=Xu(a)}return null};
386
- Xu=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=Yu(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=Yu(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.l.getUint32(a.a,!1);var f=a.l.getUint32(a.a+4,!1)}catch(g){throw new _.P(_.Q,3,3E3);}if(2097151<e)throw new _.P(_.Q,3,3E3);a.a+=8;c=e*Math.pow(2,32)+f}c=b+c;a.o=c;return a.f>=c?(a.a=c,{name:d,start:b,end:c}):null};
387
- Yu=function(a){var b=a.l.getUint32(a.a,!1);a.a+=4;return b};Uu=function(a){var b=null;a.h!==a.f&&(b={start:a.h,end:a.f,length:a.f-a.h,data:new DataView(a.j.a.buffer,a.h,a.f-a.h),count:-1});return b};$u=function(a){_.pk.call(this,new _.ok,function(){return Promise.resolve()});this.B=a;this.h=null;this.w=this.T;this.f=-1;this.j=this.l=this.o=null;Zu(this)};av=function(a,b,c){a.o=setTimeout(b,c)};
388
- Zu=function(a){a.h=a.B.then(function(e){a.j=e.request;e.request.uriIndex=e.request.currentAttempt%e.request.uris.length;if(0<e.request.currentAttempt){-1===a.f&&(a.f=bv(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*bv(e.request.fuzzFactor,.5));a.f*=bv(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,h){a.l=h;av(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.P(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
389
- return e.plugin(e.request)});var b=0,c=0,d=0;return a.h.then(function(e){var f=e.request;f.currentAttempt+=1;b=f.currentAttempt;c=f.maxAttempts;d=f.uris.length;return e.T}).then(function(e){a.w.resolve(e)})["catch"](function(e){if(e instanceof _.P){var f=b<d,g=7001!==e.code,h=b<c;if((1===e.severity||f)&&g&&h)return Zu(a);g&&e.a(_.Q);a.w.reject(e)}else a.w.reject(e)})};bv=function(a,b){return null===a||void 0===a?b:a};
390
- Ak=function(a){var b=new cv,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new dv,e={Ld:!1,sj:!1};b={T:ev(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.Ld||(e.Ld=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.sj=!0;d.abort()},a);b.T=b.T["finally"](function(){window.clearTimeout(f)})}return b};
391
- ev=function(a,b,c,d){var e,f,g,h,l,m,n,p,q,u,v,z,A,H,G,D,F;return _.I(function(M){switch(M.a){case 1:return e=fv,f=new yu,g=Au(f),_.C(M,2),_.y(M,e(a,c),4);case 4:h=M.f;l=ek(h.headers);m={uri:h.url,data:null,headers:l,status:h.status,timeMs:0,responseStartMs:zu(g),request:b};if(hk(h.status)){M.F(5);break}n=m;return _.y(M,h.arrayBuffer(),6);case 6:throw n.data=M.f,m.timeMs=zu(f),jk(m);case 5:p=h.headers.get(xa);lk(b,p);q=p?parseInt(p,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return A=
392
- h.body.getReader(),H=new Tu(q,!b.disableMergedFragments),G=function(O,S){if(d.Ld)return null;S&&S.data&&(mk(b,S.data.byteLength,zu(g)),g.a=xu());return b.onFragment&&S?b.rateLimitBps?nk(b.rateLimitBps,zu(f),b.bytesLoaded).then(function(){return b.onFragment(S)}):b.onFragment(S):null},D=m,_.y(M,Wu(H,A,G,b.onProgress),12);u=h.body.getReader();v=new Pu(q);return _.y(M,Ru(v,u,b),9);case 9:z=M.f;if(!b.rateLimitBps){M.F(10);break}return _.y(M,nk(b.rateLimitBps,zu(f),z.byteLength),10);case 10:m.data=z;M.F(8);
393
- break;case 12:D.data=M.f;case 8:if(d.Ld)throw Error("Request was aborted");m.timeMs=zu(f);return M["return"](ik(m));case 2:F=_.E(M);if(d.Ld)throw new _.P(1,1,7001,{url:a,request:b});if(d.sj)throw new _.P(1,1,1003,{url:a,request:b});if(F&&1001===F.code)throw F;_.Ph("Error while fetching data:",F);throw new _.P(1,1,1002,{url:a,error:F,request:b,status:-1},F);}})};
394
- vk=function(a){try{var b=a.uris[a.uriIndex],c=_.gv(b);return{T:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{T:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
395
- _.gv=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.Ph("Bad data URI, failed to parse scheme"),new _.P(_.Q,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.Ph("Bad data URI, failed to extract encoding and MIME type"),new _.P(_.Q,1,1004,{uri:a});var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"===b[b.length-1]&&(d=!0,b.pop());return{data:d?_.Tj(a).buffer:_.T.cb(a).buffer,contentType:c}};
396
- _.iv=function(a,b){var c=_.tl(_.ul(a),_.vl(a));_.hv[c]=b};_.rv=function(a){a=_.tl(_.ul(a),_.vl(a));return _.hv[a]||null};_.Av=function(a){a=_.tl(_.ul(a),_.vl(a));delete _.hv[a]};
397
- _.Bv=function(a){a=a.getConfiguration();a=_.N.gb(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.lg?a.backgroundColor:null;this.U=typeof a.windowColor===_.lg?a.windowColor:null;this.M=typeof a.fontColor===_.lg?a.fontColor:null;this.P=typeof a.fontFamily===_.lg?a.fontFamily:null;this.I=typeof a.fontSize===_.lg?a.fontSize:null;this.B=typeof a.fontSizePercent===_.k?a.fontSizePercent:null;this.H=typeof a.edgeColor===_.lg?a.edgeColor:"rgba(0, 0, 0, 1)";this.o=null;typeof a.edgeType===
398
- _.lg&&(this.o=a.edgeType)};_.Gv=function(a){if(!a.o)return null;var b=a.H;switch(a.o){case Cv:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case Dv:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case Ev:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case Fv:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.Ye}};Hv=function(a){this.f=a;this.a=null;this.g=new _.K("clpp.text.Mp4TextParser")};
399
- _.Jv=function(a){_.Bv.call(this,a);this.l=a.getSurface().getMedia();this.f="clpp-video-"+Iv++;this.h=document.createElement(_.ng);this.j=this.w=!1;_.jr(this.l,this.f);document.head.appendChild(this.h);this.Rb()};Kv=function(){};_.Lv=function(){};_.dh=[];hh=typeof Object.create==_.we?Object.create:function(a){function b(){}b.prototype=a;return new b};
400
- if(typeof Object.setPrototypeOf==_.we)Mv=Object.setPrototypeOf;else{var Nv;a:{var Ov={Hj:!0},Pv={};try{Pv.__proto__=Ov;Nv=Pv.Hj;break a}catch(a){}Nv=!1}Mv=Nv?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
401
- var ih=Mv,mh=typeof Object.defineProperties==_.we?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},kh="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;nh.prototype.toString=function(){return this.a};var lh=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new nh("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
402
- qh.prototype.A=function(a){this.f=a};qh.prototype["return"]=function(a){this.h={"return":a};this.a=this.j};qh.prototype.F=function(a){this.a=a};
403
- Dh("Promise",function(a){function b(g){this.f=0;this.l=void 0;this.a=[];var h=this.j();try{g(h.resolve,h.reject)}catch(l){h.reject(l)}}function c(){this.a=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.f=function(g){if(null==this.a){this.a=[];var h=this;this.h(function(){h.l()})}this.a.push(g)};var e=kh.setTimeout;c.prototype.h=function(g){e(g,0)};c.prototype.l=function(){for(;this.a&&this.a.length;){var g=this.a;this.a=[];for(var h=0;h<g.length;++h){var l=
404
- g[h];g[h]=null;try{l()}catch(m){this.j(m)}}}this.a=null};c.prototype.j=function(g){this.h(function(){throw g;})};b.prototype.j=function(){function g(m){return function(n){l||(l=!0,m.call(h,n))}}var h=this,l=!1;return{resolve:g(this.C),reject:g(this.h)}};b.prototype.C=function(g){if(g===this)this.h(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.G(g);else{a:switch(typeof g){case _.Ze:var h=null!=g;break a;case _.we:h=!0;break a;default:h=!1}h?this.B(g):this.o(g)}};
405
- b.prototype.B=function(g){var h=void 0;try{h=g.then}catch(l){this.h(l);return}typeof h==_.we?this.H(h,g):this.o(g)};b.prototype.h=function(g){this.w(2,g)};b.prototype.o=function(g){this.w(1,g)};b.prototype.w=function(g,h){if(0!=this.f)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.f);this.f=g;this.l=h;this.A()};b.prototype.A=function(){if(null!=this.a){for(var g=0;g<this.a.length;++g)f.f(this.a[g]);this.a=null}};var f=new c;b.prototype.G=function(g){var h=this.j();
406
- g.Le(h.resolve,h.reject)};b.prototype.H=function(g,h){var l=this.j();try{g.call(h,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,h){function l(q,u){return typeof q==_.we?function(v){try{m(q(v))}catch(z){n(z)}}:u}var m,n,p=new b(function(q,u){m=q;n=u});this.Le(l(g,m),l(h,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.Le=function(g,h){function l(){switch(m.f){case 1:g(m.l);break;case 2:h(m.l);break;default:throw Error("Unexpected state: "+
407
- m.f);}}var m=this;null==this.a?f.f(l):this.a.push(l)};b.resolve=d;b.reject=function(g){return new b(function(h,l){l(g)})};b.race=function(g){return new b(function(h,l){for(var m=_.w(g),n=m.next();!n.done;n=m.next())d(n.value).Le(h,l)})};b.all=function(g){var h=_.w(g),l=h.next();return l.done?d([]):new b(function(m,n){function p(v){return function(z){q[v]=z;u--;0==u&&m(q)}}var q=[],u=0;do q.push(void 0),u++,d(l.value).Le(p(q.length-1),n),l=h.next();while(!l.done)})};return b});var Fh=this||self;
408
- Fh.a=!0;_.N={Ej:20,gb:function(a){var b=_.N.R,c=_.N.Bi,d=_.N.ta;return b(a)||c(a)?a:d(a)}};_.J("clpp.utils.obj.cloneItem",_.N.gb);_.N.ta=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];c={};for(var d=0;d<b.length;d++)null!=b[d]&&(c=_.N.Ii(c,{merging:b[d]},1));return c.merging||null};_.J("clpp.utils.obj.merge",_.N.ta);_.N.Fc=function(a){for(var b in a)if(void 0!==a[b])return!0;return!1};
409
- _.N.Ii=function(a,b,c){var d=_.N.R,e=_.N.Bi,f=_.N.Ii,g=_.N.Pb,h=_.N.rm,l=_.N.kg,m=_.N.nm,n=_.N.pd;c+=1;if(d(a)||!n(a))a={};for(var p in b)n=b[p],e(n)||d(n)||g(n)||m(n)?a[p]=n:h(n)?a[p]=n.subarray(0):n instanceof Array?a[p]=f([],n,c):!d(n)&&l(n)&&c<_.N.Ej&&(a[p]=f(a[p],n,c));return a};_.N.Bi=function(a){a=typeof a;return a===_.lg||a===_.k||a===_.hd};_.N.nm=function(a){return a instanceof Element};_.N.R=function(a){return null===a||"undefined"===typeof a};_.N.pd=function(a){return typeof a===_.Ze};
410
- _.N.Pb=function(a){return typeof a===_.we};_.N.fa=function(a){return typeof a===_.lg};_.N.xa=function(a){return typeof a===_.k};_.N.wi=function(a){return typeof a===_.hd};_.N.kg=function(a){var b=_.N.pd,c=_.N.R;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.N.rm=function(a){var b=_.N.pd,c=_.N.Pb;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
411
- _.N.pa=function(a,b,c,d){if(a===b||null===a&&null===b||void 0===a&&void 0===b)return!0;if(null===a&&null!==b||null!==a&&null===b||void 0!==a&&void 0===b||void 0===a&&void 0!==b||!_.N.pd(a)||!_.N.pd(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var h=e[g];if(_.N.R(d)||0>d.indexOf(h))if(f[h]=!0,a[h]!==b[h])return!1}if(_.N.R(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.N.R(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
412
- _.N.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.N.om=function(a,b,c){return a>=b&&a<=c};_.N.fh=function(a){for(var b=new Map,c=_.w(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b};_.N.gh=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};
413
- _.N.ii=function(a,b){for(var c=b.toLowerCase(),d=_.w(Object.entries(a)),e=d.next();!e.done;e=d.next()){var f=_.w(e.value);e=f.next().value;f=f.next().value;if(e.toLowerCase()===c)return f}return null};_.N.Di=function(a,b){for(var c in a){if(!(c in b))return!1;var d=a[c],e=b[c];if(d&&typeof d===_.Ze&&e&&typeof e===_.Ze){if(!_.N.Di(d,e))return!1}else if(void 0!==d&&void 0!==e&&d!==e)return!1}return!0};
414
- _.N.Ei=function(a,b){if(!_.N.Di(a,b))return!1;for(var c in b){if(!(c in a))return!0;var d=a[c],e=b[c];if(!d&&e||d&&typeof d===_.Ze&&e&&typeof e===_.Ze&&_.N.Ei(d,e))return!0}return!1};var Kh={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.J("clpp.log.Level",Kh);var Hh=3,Gh={},Qv=[];_.J("clpp.log.getLoggers",function(){return _.N.gb(Gh)});_.J("clpp.log.addInterceptor",function(a){a&&Qv.push(a)});_.J("clpp.log.removeInterceptor",function(a){a&&(a=Qv.indexOf(a),0<=a&&Qv.splice(a,1))});_.J("clpp.log.getTagLevel",Ih);_.J("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Gh[a]});_.J("clpp.log.setTagLevel",function(a,b){a&&(_.N.fa(b)&&(b=Lh(b)),Gh[a]=b)});
415
- _.J("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.N.fa(a)&&(a=Lh(a));Hh=a});_.J("clpp.log.getLogLevel",function(){return Hh});_.t=_.K.prototype;
416
- _.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=Ih(this.tag);if(0<=d){if(d<c)return}else if(Hh<c)return;this.tag&&Array.prototype.unshift.call(arguments,"["+this.tag+"]");d=new Date;d.toISOString&&(d=d.toISOString().substring(11).replace("Z",""),Array.prototype.unshift.call(arguments,d));4===c?console.log.apply(console,arguments):3===c?console.info.apply(console,arguments):2===c?console.warn.apply(console,arguments):
417
- 1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.w(Qv);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)};
418
- _.t.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.t.ql=function(a){return a?this.tag?new _.K(this.tag+"."+a):new _.K(a):this};_.J("clpp.log.Logger",_.K);_.K.prototype.createChild=_.K.prototype.ql;_.K.prototype.error=_.K.prototype.error;_.K.prototype.warn=_.K.prototype.warn;_.K.prototype.debug=_.K.prototype.debug;_.K.prototype.info=_.K.prototype.info;_.K.prototype.log=_.K.prototype.log;var Mh=new _.K("clpp");_.J("clpp.log.info",_.Nh);
419
- _.J("clpp.log.debug",_.Oh);_.J("clpp.log.warn",_.Jh);_.J("clpp.log.error",_.Ph);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.Sh=new _.K("clpp.players");_.Rh={};_.Vh.prototype.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.Vh.prototype.get=function(a){return(a=this.a[a])?a.slice():[]};_.Vh.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};_.Vh.prototype.clear=function(){this.a={}};Wh.prototype.Xa=function(a){try{this.$c.handleEvent?this.$c.handleEvent(a):this.$c.call(this.a,a)}catch(b){_.Ph("clpp","Uncaught exception in event handler for event '"+this.f+"'",b,b?b.message:null,b?b.stack:null)}};_.L.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};_.L.prototype.stopImmediatePropagation=function(){this.f=!0};_.L.prototype.stopPropagation=function(){};_.t=Xh.prototype;
420
- _.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].Xa(a),b[c].Sn&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.t.on=function(a,b,c){this.a.push(a,new Wh(a,b,c||this.f));return b};_.t.one=function(a,b,c){this.a.push(a,new Wh(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].$c===b&&(d=this.a.remove(a,c[e])||d);return d};_.t.clear=function(){this.a.clear()};_.Yh.prototype.release=function(){_.ai(this)};_.Yh.prototype.on=function(a,b,c,d){a=new bi(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.Yh.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)};_.Yh.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||($h(f),this.a.remove(b,f))}};di.prototype.release=function(){this.j.release();this.a=new Set;this.f.clear();null!=this.h&&(clearInterval(this.h),this.h=null)};di.prototype.destroy=function(){var a=this;return _.I(function(b){a.release();_.B(b)})};di.prototype.getTimelineCues=function(){return Array.from(this.a.values()).sort(function(a,b){return a.startTime-b.startTime})};_.Ni.prototype.pa=function(a){return this.payload===a.payload&&this.startTime===a.startTime&&this.endTime===a.endTime&&this.payloadType===a.payloadType};_.J("clpp.text.Cue",_.Ni);_.Ni.positionAlign={LEFT:_.Ge,RIGHT:_.He,CENTER:_.rd,AUTO:"auto"};_.Hi="text";_.Ni.payloadType={TEXT:_.Hi,VTT_XML:_.Qg,TTML_XML:_.vg};_.Ii=_.rd;_.Rv={LEFT:_.De,RIGHT:_.Vf,CENTER:_.Ii,START:_.De,END:_.Vf};_.Ni.textAlign=_.Rv;var Mi="ltr";_.Ni.direction={HORIZONTAL_LEFT_TO_RIGHT:Mi,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.Ji="horizontal-tb";
421
- _.Ni.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Ji,VERTICAL_LEFT_TO_RIGHT:_.Hg,VERTICAL_RIGHT_TO_LEFT:_.Jg};_.Ki=0;_.Ni.lineInterpretation={LINE_NUMBER:_.Ki,PERCENTAGE:1};_.Li=_.hg;_.Sv={CENTER:_.rd,START:_.Li,END:_.qe};_.Ni.lineAlign=_.Sv;_.J("clpp.text.CueRegion",_.Qi);_.Oi=1;_.Qi.units={PX:0,PERCENTAGE:_.Oi,LINES:2};var Pi="";_.Qi.scrollMode={NONE:Pi,UP:"up"};_.Qi.displayAlign={BEFORE:"flex-end",CENTER:_.rd,AFTER:"flex-start"};
422
- _.Qi.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Hd,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};Ri.prototype.destroy=function(){this.a.release();this.j=!1;this.l=this.a=this.h=this.f=null;return Promise.resolve()};Ri.prototype.start=function(a){var b=this;this.j?this.g.warn("Already started. Ignoring request..."):(this.j=!0,this.h=a,this.f=this.h.textTracks,this.a.on(this.f,_.Lc,function(c){return Si(b,c)}),this.a.on(this.f,td,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.bg&&(e.mode=_.ye)}}))};
423
- Ri.prototype.o=function(a){var b=new _.Ni(a.startTime,a.endTime,a.text,_.Qg);if(_.N.fa(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Hg;break;case "rl":b.writingMode=_.Jg}_.N.xa(a.size)&&(b.size=a.size);if(_.N.fa(a.align))switch(a.align){case _.De:case _.hg:b.textAlign=_.De;break;case _.rd:b.textAlign=_.Ii;break;case _.Vf:case _.qe:b.textAlign=_.Vf}_.N.xa(a.position)&&(b.position=a.position);if(_.N.fa(a.positionAlign))switch(a.positionAlign){case _.Ge:b.positionAlign=_.Ge;break;case _.rd:b.positionAlign=
424
- _.rd;break;case _.He:b.positionAlign=_.He}_.N.xa(a.line)&&(b.line=a.line);if(_.N.fa(a.lineAlign))switch(a.lineAlign){case _.hg:b.lineAlign=_.Li;break;case _.rd:b.lineAlign=_.rd;break;case _.qe:b.lineAlign=_.qe}_.N.wi(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.Ki:1);return b};_.x(_.P,Error);_.P.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=Ti(this.severity,this.category,this.code,this.data))};_.P.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.J("clpp.Error",_.P);_.Q=2;_.P.Severity={RECOVERABLE:1,FATAL:_.Q};_.P.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
425
- _.P.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,
207
+ _.Wp=function(a,b){try{a.g.debug("Attempting to load an offline session",b);var c=a.J.createSession(_.uf)}catch(f){var d=new _.O(_.P,6,6005,{browserError:f.message});a.w(d);return Promise.reject(d)}a.B.on(c,_.Ze,a.aj.bind(a));a.B.on(c,Ke,a.Wi.bind(a));var e={initData:null,loaded:!1,vg:Infinity,zc:null,sb:new _.xk,periodId:null,$e:[],keyId:null,wb:[],initDataType:null,Gc:null,sessionContext:{ldlDelay:0,customData:{}}};e.sb["catch"](function(){});a.h.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.g.debug("Loaded offline session",
208
+ b,f);if(!f)return a.h["delete"](c),a.w(new _.O(_.P,6,6013)),null;e.loaded=!0;cq(a)&&(a.A||a.g.info(Ga),a.A=!0,a.G=!1,a.I.resolve());return c},function(f){a.j||(a.h["delete"](c),a.w(new _.O(_.P,6,6005,{browserError:f.message})))})};dq=function(a,b,c,d){if(!b&&c!==_.ng)return!1;d=b||Nn(d);a=_.w(a.h.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||b&&e.wb.includes(b)||c===_.ng&&(e.keyId||Nn(e.initData))===d)return!0;return!1};
209
+ Vp=function(a,b,c,d,e,f,g){f=void 0===f?null:f;g=void 0===g?!1:g;var h,l,m,n,p,q,t,v,z,A,E,G,B,F,M,R,la,U,ra,Ba,Ca;_.I(function(Da){switch(Da.a){case 1:if(!e.length)return a.g.warn("Empty init data"),Da["return"]();h=b;if(!h)try{h=eq(a,d,e,f)}catch(Ma){if(a.g.warn("Ignoring unrecognized init data. This may be caused by unsupported or malformed init data. Set `drm.ignoreUnrecognizedInitData \x3d false` if you want to override this behavior and use the init data after all.",{error:Ma,initDataType:d,
210
+ initData:e}),a.f.ignoreUnrecognizedInitData)return Da["return"]()}if(g){Da.F(2);break}if(!dq(a,h,d,e)){Da.F(2);break}l=!0;if("skd"!==d||a.f.enableSessionCacheForSkd){Da.F(4);break}m=_.w(a.h.keys());n=m.next();case 5:if(n.done){Da.F(4);break}p=n.value;q=a.h.get(p);if(!h||q.keyId!==h){Da.F(6);break}a.g.warn("Close and re-open session for "+h);_.D(Da,9);return _.y(Da,p.close(),11);case 11:_.Jh(Da,10);break;case 9:t=_.H(Da),a.g.warn("Unable to close session",t);case 10:l=!1;case 6:n=m.next();Da.F(5);
211
+ break;case 4:if(l)return a.g.warn("Skip creating a new session for "+h),Da["return"]();case 2:try{z=a.H?_.uf:zg,v=a.J.createSession(z),a.D.onEvent(new _.L(pe,{keySystem:a.keySystem()})),a.g.info("Created new "+z+" session for Key ID: '"+h+"'. Init data type: "+(d+"."))}catch(Ma){return a.w(new _.O(_.P,6,6005,{browserError:Ma.message})),Da["return"]()}a.B.on(v,_.Ze,a.aj.bind(a));a.B.on(v,Ke,a.Wi.bind(a));A={Gc:f,$e:[],initData:e,initDataType:d,keyId:h,wb:h?[h]:[],loaded:!1,vg:Infinity,periodId:c,zc:null,
212
+ sb:new _.xk,sessionContext:{ldlDelay:0,customData:{}}};A.sb["catch"](function(){});f&&(E=a.h.get(f),A.sessionContext=E.sessionContext);a.h.set(v,A);h&&!a.o.get(h)&&a.o.set(h,sg);if(e)for(G=0;G<a.a.initData.length;G++)B=a.a.initData[G],B.keyId&&!A.wb.includes(B.keyId)&&_.dn(B.initData,e)&&(A.keyId||(A.keyId=B.keyId),A.wb.push(B.keyId),a.o.get(B.keyId)||a.o.set(B.keyId,sg));F=_.N;M=F.Vb;R=a.D.getConfiguration();la=a.keySystem();U=a.f.Sa[la];Ba=(ra=U.modifiers)&&ra.transformInitData;M(Ba)||(Ba=fq);try{e=
213
+ Ba({playerConfig:R,initData:e,initDataType:d,drmInfo:a.a,drmSystemConfig:U,sessionContext:A.sessionContext,emeApi:a.l.Sd()})}catch(Ma){return Ca=Ma,Ma instanceof _.O||(Ca=new _.O(_.P,6,6016,Ma)),A.sb&&A.sb.reject(Ma),a.w(Ca),Da["return"]()}a.g.info("Generate License Request for key ID: '"+h+"'");v.generateRequest(d,e.buffer)["catch"](function(Ma){if(!a.j){var Ab=null;Ma.errorCode&&Ma.errorCode.systemCode&&(Ab=Ma.errorCode.systemCode,0>Ab&&(Ab+=Math.pow(2,32)),Ab="0x"+Ab.toString(16));a.w(new _.O(_.P,
214
+ 6,6006,{browserError:Ma.message,error:Ma,extended:Ab},Ma))}});_.C(Da)}})};
215
+ eq=function(a,b,c,d){d=void 0===d?null:d;if("skd"===b){a:{var e=d;e=void 0===e?null:e;var f=a.keySystem(),g=a.f.Sa[f];f=a.D.getConfiguration();g=g&&g.modifiers&&g.modifiers.extractContentId;_.N.Vb(g)||(g=gq);try{var h={ldlDelay:0,customData:{}};e&&(h=a.h.get(e).sessionContext);var l=g(f,c,h);a.g.debug("Extracted Content ID '"+l+"' from SKD");var m=l;break a}catch(G){a.g.warn("Unable to extract Content ID from SKD",G)}m=""}return m}if(b===_.ng)return Nn(c)||"";if(b===_.xd){m=a.keySystem();try{if(m.match(/^com\.widevine\.alpha/)){var n=
216
+ _.ep(c);if(n)return n.a}else if(hq(m)){e=new _.tn(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);f=_.yn(e);var p=_.yn(e);g=_.In(p);var q=_.yn(e);c=q>>>24;l=q&16777215;h=_.Cn(e,16);var t=_.cn(h);if(0<c){var v=_.yn(e);e.skip(16*v)}var z=_.yn(e),A=_.Cn(e,z),E=_.lp(A);_.ci("Parsed PR PSSH Box","size",f,"name",g,Wg,c,"flags",l,"size",z,"systemId",t,"keyId",E.a);if(E)return E.a}}catch(G){throw a.g.warn("Unable to extract Key ID from PSSH data.",{error:G,keySystem:m}),G;}}return""};
217
+ gq=function(a,b){var c=_.Mn(b);_.ci("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
218
+ fq=function(a){var b=a.playerConfig,c=a.initData,d=a.drmInfo,e=a.drmSystemConfig,f=a.sessionContext,g=a.emeApi;if("skd"===a.initDataType&&g===iq){a=_.N.Vb;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=gq);a="";try{a=e(b,c,f)}catch(h){throw new _.O(_.P,6,6103);}if(!a.length)throw new _.O(_.P,6,6101,"Content ID is an empty string");c=On(c,a,d)}return c};
219
+ oq=function(a,b){var c,d,e,f,g,h,l,m,n,p,q,t,v,z,A,E,G,B;return _.I(function(F){switch(F.a){case 1:c=b.target;d=a.h.get(c);if(!d)return a.g.error("Session metadata not found for "+c.sessionId+"."),F["return"]();e=a.a.licenseServerUri;if(!jq(a,b)){F.F(2);break}return _.y(F,kq(a,e,b,c,d),3);case 3:return F["return"]();case 2:f=a.Lb;if(!(0<f)){F.F(4);break}a.g.info("Delaying license request by "+f+" s.");return _.y(F,ni(f),5);case 5:if(a.j)return F["return"]();case 4:g=a.keySystem();h=a.f.Sa[g];"individualization-request"===
220
+ b.messageType&&h&&h.individualizationServer&&(e=h.individualizationServer);l=_.pk([e],a.f.attemptParameters);l.type=3;l.body=b.message;l.method=_.Jb;l.licenseRequestType=b.messageType===Ne&&d.Gc?Me:b.messageType;l.sessionId=c.sessionId;if(l.licenseRequestType===Me)a.D.onEvent(new _.L(oe));hq(a.a.keySystem)&&lq(a,l);gn(a.P,l);m=String(Math.floor(b.timeStamp));return _.y(F,mq(a,l,d,m,e,c.sessionId,b.messageType,f),6);case 6:n=F.f;if(!n)return F["return"]();p=hn(a.P,n);return _.y(F,nq(a,c,n.data,d,m),
221
+ 7);case 7:q=F.f;if(!q)return F["return"]();t=Xp(a);v=p?Date.now()+1E3*p.delay:Number.NaN;a.D.onEvent(new _.L(_.te,{keySystem:g,expirationTime:t,expectedRenewalTime:v}));d.zc&&d.zc.resolve();d.Gc&&(z=d.Gc,a.g.info("Closing expired session '"+z.sessionId+"'"),vp(z)["catch"](function(){a.g.warn("Unable to close expired session in time")}),(A=a.h.get(d.Gc))&&A.qd&&A.qd.stop(),a.h["delete"](d.Gc),d.Gc=null);E=new _.mi(function(){a.j||(d.loaded=!0,d.sb&&d.sb.resolve(),cq(a)&&(a.A||a.g.info(Ga),a.A=!0,a.G=
222
+ !1,a.I.resolve()))});E.fa(5);null!==d.initData&&(0<d.sessionContext.ldlDelay||p&&(_.T.startsWith(g,_.Sd)||_.T.startsWith(g,_.Vd)))&&(G=new _.mi(function(){!a.j&&a.P&&(a.g.info("Updating CSL Sessions"),hq(g)?Vp(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):g.startsWith(_.Sd)&&c.update(_.T.ib("renew")))}),d.qd=G,B=p?p.delay:d.sessionContext.ldlDelay,G.fa(B));_.C(F)}})};
223
+ kq=function(a,b,c,d,e){var f,g,h;return _.I(function(l){if(1==l.a)return f=_.pk([b],a.f.attemptParameters),f.type=3,f.body=c.message,f.method=_.Jb,f.licenseRequestType=zd,f.sessionId=d.sessionId,_.y(l,pq(a,f,e,b,d.sessionId,c.messageType),2);g=l.f;if(!g)return l["return"]();h=String(Math.floor(c.timeStamp));return _.y(l,nq(a,d,g.data,e,h),0)})};jq=function(a,b){return!!a.keySystem().match(/^com\.widevine\.alpha/)&&b.message&&2===b.message.byteLength};
224
+ mq=function(a,b,c,d,e,f,g,h){var l,m,n,p,q,t,v,z,A,E,G,B;return _.I(function(F){switch(F.a){case 1:return a.g.info("License request for SID:'"+(f+"'/KID:'"+c.keyId+"' from msg '")+(g+"'.")),_.y(F,qq(a,b,c.sessionContext),2);case 2:return a.g.debug("Sending DRM license request to",e,b),a.D.onEvent(new _.L(ne,{delay:h})),l=Date.now(),_.np(ge+d+ha),m=null,_.D(F,3),_.y(F,a.D.Eb.fetch(b).T,5);case 5:m=F.f;_.Jh(F,4);break;case 3:n=_.H(F);if(a.j)return F["return"](null);p=n;q=p.data.headers;t=no(q);v=Object.assign({message:"Error while fetching DRM license!",
225
+ url:p.data.url,status:p.data.status,response:p.data.response},q?{headers:q}:{},t);z=new _.O(_.P,6,6007,v,p);rq(a,z,c);return F["return"](null);case 4:_.np(ge+d+".end");_.pp(ge+d,ge+d+ha,ge+d+".end");A=Date.now()-l;if(E=oo(m.headers))a.Lb=E.delay||0;G="";E&&E.requestId&&(G=" RID:"+E.requestId);B=m.data.byteLength;a.g.info("License response for SID:'"+(f+"'/KID:'")+(c.keyId+"' ")+(B+" bytes in ")+(A+"ms"+G));return a.j?F["return"](null):F["return"](m)}})};
226
+ pq=function(a,b,c,d,e,f){var g,h,l,m,n,p,q,t,v,z,A,E;return _.I(function(G){switch(G.a){case 1:return a.g.info("WV Server certificate request for SID:'"+(e+" from msg '"+f+"'.")),_.y(G,qq(a,b,c.sessionContext),2);case 2:return a.g.debug("Sending Widevine certificate request to",d,b),g=Date.now(),h=null,_.D(G,3),_.y(G,a.D.Eb.fetch(b).T,5);case 5:h=G.f;_.Jh(G,4);break;case 3:l=_.H(G);if(a.j)return G["return"](null);m=l;n=m.data.headers;p=no(n);q=Object.assign({message:db,url:m.data.url,status:m.data.status,
227
+ response:m.data.response},n?{headers:n}:{},p);t=new _.O(_.P,6,6100,q,m);rq(a,t,c);return G["return"](null);case 4:return v=Date.now()-g,z=oo(h.headers),A="",z&&z.requestId&&(A=" RID:"+z.requestId),E=h.data.byteLength,a.g.info("WV Server certificate response for SID:'"+(e+"' ")+(E+" bytes in ")+(v+"ms"+A)),a.j?G["return"](null):G["return"](h)}})};
228
+ nq=function(a,b,c,d,e){var f,g;return _.I(function(h){switch(h.a){case 1:return _.np(le+e+ha),_.D(h,2),_.y(h,b.update(c),4);case 4:_.Jh(h,3);break;case 2:f=_.H(h);if(a.j)return h["return"](!1);if(f===Wb)return a.g.info("Ignore update for closed sessions"),h["return"](!1);g=new _.O(_.P,6,6008,{browserError:f.message});rq(a,g,d);return h["return"](!1);case 3:return _.np(le+e+".end"),_.pp(le+e,le+e+ha,le+e+".end"),a.j?h["return"](!1):h["return"](!0)}})};
229
+ rq=function(a,b,c){a.j||(a.w(b),c.zc&&c.zc.reject(b),c.sb&&c.sb.reject(b))};
230
+ lq=function(a,b){var c=_.T.Jc(b.body,!0,!0);if(c.includes("PlayReadyKeyMessage")){a.g.debug("Unwrapping PlayReady request.");c=(new DOMParser).parseFromString(c,"application/xml");for(var d=c.getElementsByTagName("HttpHeader"),e=0;e<d.length;++e)b.headers[d[e].querySelector("name").textContent]=d[e].querySelector(_.Vg).textContent;b.body=_.an(c.querySelector("Challenge").textContent).buffer}else a.g.debug("PlayReady request is already unwrapped."),b.headers[Aa]="text/xml; charset\x3dutf-8"};
231
+ qq=function(a,b,c){var d,e,f,g,h,l;return _.I(function(m){if(1==m.a)return d=a.D.getConfiguration(),_.y(m,Sp(a,d),2);e=a.keySystem();h=(g=(f=a.f.Sa[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;h?b.requestModifiers.push(function(n){return h(d,n,c)}):e.startsWith(_.Sd)&&b.requestModifiers.push(function(n){return _.Pn(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Sd)&&b.responseModifiers.push(function(n){return _.Rn(n)});_.C(m)})};
232
+ sp=function(a){var b=a.o,c=a.ja;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"===d})&&a.w(new _.O(_.P,6,6014));a.D.Ag(_.N.lh(c));a.A||a.g.info(Ga);a.A=!0;a.G=!1};Mp=function(a){var b;return _.I(function(c){if(1==c.a)return _.np(ke),b=a.ga.map(function(d){return oq(a,d)}),a.kb=!0,a.ga=[],_.y(c,Promise.all(b),2);_.np(je);_.pp("drm.onPlay",ke,je);_.C(c)})};hq=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};
233
+ _.aq=function(a){return hq(a)?_.Vd:a};_.tq=function(a,b){return a.length&&b.length?0<_.sq(a,b).length:!0};
234
+ _.sq=function(a,b){if(!a.length)return b;if(!b.length)return a;for(var c=[],d=0;d<a.length;d++)for(var e={},f=0;f<b.length;e={Kd:e.Kd},f++)if(a[d].keySystem===b[f].keySystem&&a[d].periodId===b[f].periodId){var g=a[d];f=b[f];var h=[];h=h.concat(g.initData||[]);h=h.concat(f.initData||[]);e.Kd=_.vh(g.keyIds||[]).concat();f.keyIds&&f.keyIds.length&&f.keyIds.forEach(function(l){return function(m){l.Kd.includes(m)||l.Kd.push(m)}}(e));c.push({keySystem:g.keySystem,licenseServerUri:g.licenseServerUri||f.licenseServerUri,
235
+ licenseServerUriOrigin:g.licenseServerUriOrigin||f.licenseServerUriOrigin,distinctiveIdentifierRequired:g.distinctiveIdentifierRequired||f.distinctiveIdentifierRequired,persistentStateRequired:g.persistentStateRequired||f.persistentStateRequired,videoRobustness:g.videoRobustness||f.videoRobustness,audioRobustness:g.audioRobustness||f.audioRobustness,serverCertificate:g.serverCertificate||f.serverCertificate,initData:h,keyIds:e.Kd,periodId:g.periodId});break}return c};
236
+ tp=function(a){a.h.forEach(function(b,c){var d=b.vg,e=c.expiration;isNaN(e)&&(e=Infinity);e!==d&&(a.D.zg(c.sessionId,e),b.vg=e)})};cq=function(a){a=a.h.values();return _.Yj(a,function(b){return b.loaded})};
237
+ Ap=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=_.w(a),e=d.next();!e.done;e=d.next())e.value.drmInfos=c};Zp=function(a){for(var b=_.w(a.audioCapabilities||[]),c=b.next();!c.done;c=b.next())delete c.value.robustness;a=_.w(a.videoCapabilities||[]);for(b=a.next();!b.done;b=a.next())delete b.value.robustness};
238
+ $p=function(a){return(a.audioCapabilities||[]).some(uq)||(a.videoCapabilities||[]).some(uq)};uq=function(a){return null!=a.robustness&&""!==a.robustness};
239
+ bq=function(a,b,c,d,e){var f={};a=_.w(a);for(var g=a.next();!g.done;f={La:f.La},g=a.next()){f.La=g.value;b.includes(f.La.licenseServerUri)||b.push(f.La.licenseServerUri);f.La.serverCertificate&&(c.some(function(m){return function(n){return _.dn(n,m.La.serverCertificate)}}(f))||c.push(f.La.serverCertificate));if(f.La.initData){var h=_.w(f.La.initData);for(g=h.next();!g.done;g=h.next())g.value.periodId=f.La.periodId;h={};var l=_.w(f.La.initData);for(g=l.next();!g.done;h={Ke:h.Ke},g=l.next())h.Ke=g.value,
240
+ d.some(function(m){return function(n){var p=m.Ke;return n.keyId&&n.keyId===p.keyId&&n.periodId===p.periodId?!0:!1}}(h))||d.push(h.Ke)}if(f.La.keyIds)for(g=0;g<f.La.keyIds.length;++g)e.includes(f.La.keyIds[g])||e.push(f.La.keyIds[g])}};
241
+ Gp=function(a,b,c){var d=_.aq(b.keySystem);c=c[d];d===_.qf&&b.licenseServerUri?a.g.debug("Using Clear Key data URI for",d):c&&c.licenseUrl?(b.licenseServerUri=c.licenseUrl,a.g.debug("Using license server URI from user-configured clpp.drm.DrmEnvironment (licenseUrl) for",d)):a.g.debug("Using license server URI from the manifest for ",d)};
242
+ Ep=function(a,b){var c=b[_.aq(a.keySystem)];a.keyIds||(a.keyIds=[]);c&&(a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=c.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=c.persistentStateRequired),a.videoRobustness||(a.videoRobustness=c.videoRobustness||""),a.audioRobustness||(a.audioRobustness=c.audioRobustness||""),a.serverCertificate||(a.serverCertificate=c.serverCertificate||null))};
243
+ vp=function(a){var b,c;return _.I(function(d){if(1==d.a)return b=new Promise(function(e){(new _.mi(e)).fa(1)}),_.y(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.Yh("Timeout waiting for session close");_.C(d)})};_.xq=function(a,b){a&&b&&(_.vq.set(a,b),_.wq.info("Registered TextDisplayerFactory: '"+a+"'"))};
244
+ _.yq=function(a,b){var c=b.find(function(d){return(d=_.vq.get(d))?d.a(a):!1});if(null==c)return _.wq.warn("Subtitles may not work as expected. No compatible text displayer found for this platform."),null;_.wq.info("Chosen the text displayer: "+c);return _.vq.get(c)};zq=function(){this.a=null;this.f=[]};_.Aq=function(a,b){if(null==a.a)a.a={timestamp:Date.now()/1E3,state:b,duration:0};else{var c=Date.now()/1E3;a.a.duration=c-a.a.timestamp;a.a.state!==b&&(a.f.push(a.a),a.a={timestamp:c,state:b,duration:0})}};
245
+ Bq=function(a,b){var c=0;a.a&&a.a.state===b&&(c+=a.a.duration);for(var d=_.w(a.f),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state===b?e.duration:0;return c};Cq=function(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=_.w(a.f),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.a&&c.push(b(a.a));return c};Dq=function(){this.h=this.f=this.j=null;this.a=[]};Eq=function(a){return a.a.map(function(b){return _.N.nb(b)})};
246
+ _.Fq=function(){this.h=this.w=this.B=this.C=this.l=this.o=this.j=this.A=NaN;this.a=new zq;this.f=new Dq};_.Gq=function(){return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,estimatedBandwidth:NaN,loadLatency:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,switchHistory:[],stateHistory:[]}};
247
+ Kq=function(a){this.g=new _.K("clpp.StateManager");this.m=a;this.a=new _.wi;this.f=_.Hq;this.A=_.Iq;this.I=0;this.w=-1;this.L=this.o=this.J=this.B=0;this.j=this.h=this.G=!1;this.H=0;this.l=null;this.K=0;this.M=_.Ll();this.C=!1;this.J=Date.now();Jq(this)};Lq=function(a,b){return Object.keys(b)[a]};
248
+ Nq=function(a,b){var c={type:_.rg};b===_.qd||b===_.od?(c.reason=a.w,b===_.qd?c.timeSinceLastStateChangeMS=a.I:c.bufferedTimeMS=a.B):(a.f===_.Mq&&(c.reason=a.w),a.A===_.Mq&&(c.reason=a.w,c.bufferedTimeMS=a.B),c.currentState=a.f,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.I);return c};
249
+ Rq=function(a,b){if(a.f===b)return!1;var c=Date.now(),d=a.f===_.Mq;a.A=a.f;a.f=b;a.A===_.Oq&&(a.J=c,a.o=0);a.o||(a.o=a.J||c);a.I=c-a.o;a.o=c;b===_.Mq?(a.L=a.o,a.w=a.h?1:2,a.g.info("Buffering started. Reason: "+Lq(a.w-1,_.Pq)),c=Nq(a,_.qd),a.ab(_.qd,c)):d&&(a.B=a.o-a.L,a.g.info("Buffering finished. Reason: "+Lq(a.w-1,_.Pq)+". Buffering time: "+a.B+" ms"),c=Nq(a,_.od),a.ab(_.od,c));c=Lq(a.A,_.Qq);d=Lq(a.f,_.Qq);a.g.info(_.Nb+c+" -\x3e "+d);a.ab(_.rg,Nq(a,""));return!0};
250
+ Wq=function(a,b){if(a.f===_.Sq)a.g.warn("Player is in error state, aborting any further state checks");else{var c=a.m.isPaused(),d=a.m?a.m.isEnded():!1;if(d)a.h||(a.j=!1,Rq(a,_.Oq));else if(b!==_.Hg){var e=a.m.getPosition();e=null!==e&&void 0!==e&&0<=e?a.m.getBufferInfo().Ga(e,!0):-1;a.H=e;e=a.m.getSurface().getMedia();a.l=e?e.readyState:null;a.K=a.m.getPlaybackRate()||1;e=typeof a.l===_.k&&2>a.l&&2===e.networkState;var f=typeof a.l===_.k&&0>=a.H&&a.f===_.Hq,g=typeof a.l===_.k&&2>=a.l&&a.j;e=a.h||
251
+ f||e||g;!a.M||a.m.isLive()||a.f!==_.Mq||e||(f=b===_.ig&&4===a.l,(g=a.A===_.Tq)&&!a.C?e=!0:g||a.C||f||(e=!0));f=!1;e?f=Rq(a,_.Mq):c?f=Rq(a,_.Uq):a.G&&(f=Rq(a,_.Vq));f&&(a.C=!1);a.g.debug("Video state check for event "+b+":: seeking: "+a.h+", waiting: "+a.j+", playing: "+a.G+", paused: "+c+", readyState: "+a.l+", rate: "+a.K+", buffer: "+a.H+", ended: "+d+". Changed state: "+f+", Current state: "+Lq(a.f,_.Qq))}}};
252
+ Jq=function(a){function b(d){return Wq(a,d.type)}a.g.debug("Start watching for video events for "+a.m.namespace());var c=a.m;a.a.on(c,_.ze,function(){a.h||(a.j=!1,Rq(a,_.Oq))});a.a.on(c,rd,b);a.a.on(c,_.Lf,function(){a.G=!0;a.j=!1;Wq(a,_.Lf)});a.a.on(c,_.sf,function(){a.G=!1;a.j=!1;Wq(a,_.sf)});a.a.on(c,_.Hg,b);a.a.on(c,_.Yf,b);a.a.on(c,_.ig,function(d){a.h=!1;a.j=!1;Wq(a,d.type)});a.a.on(c,_.jg,function(d){a.h=!0;Wq(a,d.type)});a.a.on(c,pg,b);a.a.on(c,_.fh,function(){a.j=!0;Wq(a,_.fh)});a.a.on(c,
253
+ _.Ae,function(d){(d=d&&d.detail)&&d.severity&&d.severity===_.P&&Rq(a,_.Sq)});a.a.on(c,_.Ue,b);a.a.on(c,sd,function(){a.C=!0;Wq(a,sd)});a.a.on(c,_.Ug,function(d){a.h=!0;Wq(a,d.type)});a.a.on(c,_.Tg,function(d){a.h=!1;a.j=!1;Wq(a,d.type)})};Xq=function(a){a=(new _.sj(a)).Pa;if(!a)return null;a=a.toUpperCase();return _.T.endsWith(a,".MPD")?_.Xc:_.T.endsWith(a,".M3U8")?_.mm:_.T.endsWith(a,".MP4")?_.$g:_.T.endsWith(a,".MP3")?"audio/mp3":_.T.endsWith(a,"MANIFEST")||_.T.endsWith(a,".ISM")?_.bd:null};
254
+ _.Zq=function(a){var b;Km(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.ug||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=Yq(b[c]);d&&a.push(d)}return a};
255
+ Yq=function(a){var b=null;_.N.ha(a)&&(a={url:a});typeof a===_.gf&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.N.R(a.drmProtected)||typeof a.drmProtected!==_.nd||(b.drmProtected=a.drmProtected),_.N.R(a.isLive)||typeof a.isLive!==_.nd||(b.isLive=a.isLive),_.N.R(a.name)||typeof a.name!==_.ug||(b.name=a.name),_.N.R(a.mc)||typeof a.mc!==_.ug||(b.mc=a.mc),_.N.R(a.audioMimeType)||typeof a.audioMimeType!==_.ug||(b.audioMimeType=a.audioMimeType));b&&!b.type&&(b.type=Xq(a.url),b.type?
256
+ $q.debug("Detect media type "+b.type+" for "+a.url):$q.warn("Unable to detect media type for "+a.url));return b};ar=function(){_.Lm.call(this,Ld);this.w=this.H=!1;this.l=this.A=this.o=this.a=this.j=null;this.h=new _.wi;this.C=this.B=this.f=this.I=null};
257
+ cr=function(a,b){if(a.w)throw new _.O(_.P,7,7E3);a.a||(a.h.on(b,_.Ae,function(){var c=br(a);if(c)a.onError(c)}),a.h.on(b,_.cg,function(){var c=b.videoWidth,d=b.videoHeight,e=a.getTrackManager();e&&0<c&&0<d&&(e.w={width:c,height:d});a.trigger(new _.L(_.md,{detail:{width:c,height:d}}))}),a.a=b)};dr=function(a){var b=_.Ll()?iq:void 0;return new _.up(a,b)};
258
+ fr=function(a){var b,c,d,e,f;return _.I(function(g){if(1==g.a){if(a.w)return g["return"](Promise.reject(new _.O(_.P,7,7E3)));b=a.ba[a.getSourceIndex()];if(!a.configuration.drm||!1===b.drmProtected)return a.log.debug("No DRM configuration present.","Skipping DRM engine initialization"),g["return"](Promise.resolve());c=_.er;d=_.mn(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.o=dr({Eb:e,onError:function(h){return a.onError(h)},Ag:function(){},zg:function(h,l){a.trigger(new _.L(_.me,
259
+ {expirationTime:l}))},onEvent:function(h){h instanceof _.L?a.dispatchEvent(h):a.log.debug(_.ec,h.type)},getConfiguration:function(){return a.getConfiguration()},vd:function(){return a.vd()}});a.o.f=d;f={id:0,language:_.Ng,primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:Promise.resolve.bind(Promise),findSegmentPosition:function(){return null},getSegmentReference:function(){return null},adjustSegmentDurations:function(){},getDuration:a.getDuration.bind(a),initSegmentReference:null,
260
+ Ja:0,mimeType:_.$g,codecs:"",encrypted:!0,keyId:null,language:_.Ng,originalLanguage:_.Ng,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,zp:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,spatialAudio:!1,gp:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.y(g,_.zp(a.o,[f]),2)}return _.y(g,_.Rp(a.o,a.a),0)})};
261
+ gr=function(a,b){to(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){a.getState()!==_.Sq&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};br=function(a){if(null===a.ba||!a.a.error)return null;var b=a.a.error.code;if(1===b)return null;var c=a.a.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new _.O(_.P,3,3016,{code:b,sp:c,message:a.a.error.message})};
262
+ hr=function(a){if(a.w)return new _.yk(Promise.reject(new _.O(_.P,7,7E3)),function(){});var b=a.ba[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.I;c&&gr(a,c);if(d.preload!==_.ff)a.h.one(d,_.Ue,function(){var g=Date.now()/1E3-e;a.f.B=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.Fk()||_.Gk())&&d.load();var f=new _.xk;a.h.one(d,pg,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.B||(a.B=(new _.mi(function(){f.reject(new _.O(_.P,3,3100,{message:"Unable to load media source successfully from "+
263
+ b.url,uri:b.url},d.error))})).fa(g))});to(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.h,function(){return f.resolve()});d.error?f.reject(br(a)):d.preload===_.ff&&(a.log.warn('With \x3cvideo preload\x3d"none"\x3e, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way. Please do not use preload\x3d"none" with PRESTOplay for Web Apps.'),f.resolve());a.h.one(d,_.Ae,function(){f.reject(br(a))});
264
+ return new _.yk(f,function(){var g=new _.O(_.P,7,7001);f.reject(g);return Promise.resolve()})};
265
+ ir=function(a,b){to(b,HTMLMediaElement.HAVE_CURRENT_DATA,a.h,function(){if(a.isLive()&&a.getState()!==_.Sq){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)}))}})};
266
+ jr=function(a,b){var c=!1;a.h.on(b,_.jg,function(){c=b.paused});a.h.on(b,_.ig,function(){.2>b.duration-b.currentTime&&b.paused&&!c&&(a.log.warn("Player was auto-paused during seek to the end, auto-resuming."),b.play())})};kr=function(){};_.nr=function(a){0<=lr.indexOf(a)?mr.warn("Factory '"+a.name()+"' is already registered"):(lr.push(a),mr.info("Factory '"+a.name()+"' has been registered."))};
267
+ or=function(a,b){var c=lr.find(function(d){return d.a(a,b)})||null;c&&mr.info("Chosen ads manager: "+c.name());return c};pr=function(){};qr=function(){};rr=function(a,b,c,d,e,f){this.w=this.o=this.l=!1;this.C=a;this.h=b;this.f=c;this.a=d;this.j=0;this.B=e+":"+b;this.G=e;this.videoEl=null;this.A=f};sr=function(a){this.a=a.map(function(b){return{videoId:b.getSurface().getMedia().id,player:b,Re:!0,ready:Promise.resolve()}});this.g=new _.K("clpp.plist.PlayerPool")};
268
+ _.tr=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};_.ur=function(a,b){a.classList.add(b)};_.vr=function(a,b){if(a&&typeof b===_.gf)for(var c in b)a.style[c]=b[c]};_.wr=function(a){return document.createElement(a)};xr=function(){this.a=null;this.h=new Set;this.f=null;this.set(null)};yr=function(a,b){a.a&&0!==b.length&&(a.a.classList.add(b),a.h.add(b))};
269
+ zr=function(a,b){var c=new MutationObserver(function(){var d=Array.from(a.h.values());Xi(Array.from(b.classList),Array.from(d))||b.classList.add.apply(b.classList,_.vh(d))});c.observe(b,{attributes:!0,attributeFilter:["class"]});return c};
270
+ Dr=function(a,b){this.g=new _.K("clpp.PlayerSurface");this.w=_.N.ua(Ar,b);this.f=new xr;this.h=null;this.a=new xr;this.l=Br;Br+=1;this.o="clpp-video-"+this.l;this.j=new _.wi;if(null==a)throw new _.O(_.P,7,7102,"No Media element was provided");if(a instanceof Element)var c=a;else if(c=document.getElementById(a),!c)throw new _.O(_.P,7,7004,"Media element not found");var d=this.w;this.g.debug("Initializing Player Surface on ",c);if("cast-media-player"===c.tagName.toLowerCase())this.h=c;else{if(!(c instanceof
271
+ HTMLMediaElement))throw new _.O(_.P,7,7005,"Media element is not instance of HTMLMediaElement");if(!c.hasAttribute("crossorigin")){var e=d.crossorigin;this.g.info("Setting media elements crossorigin to "+e);c.setAttribute("crossorigin",e)}this.f.set(c);if(d.disableContainer)e=null;else if(d.containerEl){if(c.parentNode!==d.containerEl)throw new _.O(_.P,7,7006,"Container element is not a direct parent of media element");e=d.containerEl}else{e=document.createElement(_.fe);c.parentNode?c.parentNode.replaceChild(e,
272
+ c):this.g.warn("Player Surface Element has no parent. Can not inject container. You have to manually add playerSurface.getContainer() to the DOM!");for(var f=[],g=0;g<c.classList.length;g++)f.push(c.classList[g]);f=_.w(f);for(g=f.next();!g.done;g=f.next())g=g.value,c.classList.remove(g),_.ur(e,g);e.style.cssText=c.style.cssText;c.removeAttribute(_.wg);f=_.w([_.mh,_.Fe]);for(g=f.next();!g.done;g=f.next()){g=g.value;var h=c.getAttribute(g);h=parseInt(h,10);isNaN(h)||(e.style[g]=h+_.Xf);_.Fk()||c.removeAttribute(g)}e.appendChild(c)}e&&
273
+ (this.a.set(e),yr(this.a,"clpp-container"),yr(this.a,this.o),yr(this.f,_.Cd),yr(this.f,"clpp-video"));d.webOSStartupPatch&&Cr(this,c,e)}};Cr=function(a,b,c){(_.Gk()&&53===_.Il().major||_.Gk()&&68===_.Il().major||_.Jl())&&!b.hasAttribute(ae)&&(b.style.opacity="0",b.setAttribute(ae,""),a.j.one(b,ve,function(){b.removeAttribute(ae);b.style.opacity="1";c&&(c.style.opacity="1")}))};
274
+ Ir=function(a){var b=this;this.h=a;this.w=!!a.sideAdContainer;this.j=[];this.a=a.mj;this.G=Er(a);this.B=[];var c=Fr(this,this.G,this.h.Fl);this.o=new sr(c);this.f=null;this.A=!1;this.l=new Map;this.H=a.toggleVisible;this.g=new _.K("clpp.interstitial.MultiController");this.C=!1;Gr(this).forEach(function(d){return Hr(b,d,!1)})};
275
+ Mr=function(a,b){var c,d,e,f,g,h,l,m,n,p,q,t,v;return _.I(function(z){if(1==z.a){a.g.info("Crop ads by playout limit",b);c=Jr(a);d=a.getCurrentItem();if(!c||!d||!d.lb||null==c.V)return z["return"]();e=a.j.filter(function(A){return!A.primary});f=Math.max.apply(Math,_.vh(e.map(function(A){return A.xb})));if(b>f)return a.g.info("Playout limit is greater than ad pod duration, ignored."),z["return"]();g=d.player.getPosition()+(d.xb-d.duration);h=e.sort(function(A,E){return E.xb-A.xb})[0];l=c.V;m=b<=g;
276
+ if(!m)return z.F(2);n=f-g;c.V-=n;a.g.warn("Playout limit exceeded, immediately returning to primary at "+(c.V.toFixed(1)+" instead of ")+l.toFixed(1));return _.y(z,Kr(a,c.id,_.wf),3)}if(2!=z.a)return h.Ha&&h.Ha(),p=d.lb,a.a.trigger(new _.L(_.Oc,{ad:p})),a.a.trigger(new _.L(_.Bc,{ad:p})),a.a.trigger(new _.L(_.yc,{id:d.Oa})),z["return"]();a.g.warn("Limiting playout of ads to",b);q=e.find(function(A){return b<=A.xb&&b>=A.xb-A.duration});if(!q)return a.g.warn("Cannot find ad hit by limit"),z["return"]();
277
+ t=b-(q.xb-q.duration);q.lb.a=t;v=f-b;c.V-=v;a.g.info("Last ad is now ",q.lb.Cb(),"with cropped duration",t,"and primary will resume at",c.V.toFixed(1),"instead of",l.toFixed(1));h.Ha&&(q.Ha=h.Ha);q.transition={vf:{position:t,itemId:c.id,V:c.V}};Lr(a,q);_.C(z)})};Or=function(a){var b;return _.I(function(c){if(1==c.a)return(b=a.f)?"loaded"===b.state?c.F(2):_.y(c,b.zd,2):c["return"]();if(4!=c.a)return _.y(c,b.player.play(),4);b.state=_.Lf;Nr(b);_.C(c)})};
278
+ Pr=function(a,b){a.g.info("Add items",b);a.j=a.j.concat(b.map(function(c){return Object.assign({},c,{state:"idle",disposers:[],preloadPromise:Promise.resolve(),zd:Promise.resolve()})}))};Qr=function(a,b){0!==a.j.length&&(b?(a.g.info("Remove items",b),a.j=a.j.filter(function(c){return!b.includes(c.id)})):(a.g.info("Remove all items"),a.j=[]))};
279
+ Kr=function(a,b,c){var d,e,f,g,h;return _.I(function(l){switch(l.a){case 1:if(a.A)return a.g.warn("Cannot "+c+" item while busy (ID: "+b+")"),l["return"]();d=Rr(a,b);if(!d)return a.g.warn("Item not found (ID: "+b+")"),l["return"]();a.g.info(c+" item (ID: "+b+")");a.A=!0;if(e=a.f)e.player.isPaused()||(a.w?e.primary?Sr(a,e.Oa,Tr):e.player.pause():e.player.pause()),e.primary?Sr(a,e.Oa,Tr):Sr(a,e.Oa,Ur);(f=a.l.has(b))&&a.l["delete"](b);_.D(l,2,3);if(c===_.wf)return(g=e&&d.primary)?_.y(l,Vr(a,d),10):f?
280
+ _.y(l,Wr(a,d),10):_.y(l,Xr(a,d),10);if(f){a.g.error("Loading preloaded items is not supported");l.F(6);break}return _.y(l,Yr(a,d),6);case 10:Nr(d);case 6:Lr(a,d);d.primary?Sr(a,d.Oa,Ur):Sr(a,d.Oa,Tr);d.lb&&Zr(a,d,d.lb);if(d.Ha)d.player.one(_.ze,d.Ha);d.Xi&&d.Xi(d.player.getDuration());case 3:_.Kh(l);a.A=!1;e&&$r(a,e);as(a);bs(a,d.next);_.Lh(l);break;case 2:throw h=_.H(l),a.g.error("Item failed to "+c+" (ID: "+b+")"),h;}})};cs=function(a,b){var c=Jr(a);c?c.V=b:a.g.error("Failed to get primary item. Cannot configure resume position.")};
281
+ Jr=function(a){return a.j.find(function(b){return!!b.primary})||null};Rr=function(a,b){return a.j.find(function(c){return c.id===b})||null};
282
+ Lr=function(a,b){var c=b.transition;if(c&&!c.ro){if(c.Ha){var d=c.Ha,e=function(){a.g.info("Transition onEnded to (ID: "+d+")");a.play(d)};b.player.one(_.ze,e);b.disposers.push(function(){b.player.off(_.ze,e)})}c.vf&&ds(a,b,function(){var f=a.f.lb;f&&(b.disposers.forEach(function(g){return g()}),b.disposers=[],a.a.trigger(new _.L(_.Oc,{ad:f})),a.a.trigger(new _.L(_.Bc,{ad:f})),a.a.trigger(new _.L(_.yc,{id:b.Oa})))});c.ro=!0}};
283
+ ds=function(a,b,c){function d(){b.player.off(_.Hg,f)}function e(){var l=b.player.getPosition();l>=g.position?(c(),a.g.info("Transition onPosition to (ID: "+g.itemId+"), playback position: "+(l.toFixed(3)+" s, transition point: ")+(g.position.toFixed(3)+" s. ")),a.play(g.itemId),l=!0):l=!1;l?h=null:h=requestAnimationFrame(e)}function f(){var l=b.player.getPosition();.5>=g.position-l&&(d(),e())}var g=b.transition.vf,h=null;g.V&&cs(a,g.V);b.player.on(_.Hg,f);b.disposers.push(function(){null!=h&&(cancelAnimationFrame(h),
284
+ h=null)});b.disposers.push(d)};es=function(a){a.f&&(a.f.disposers.forEach(function(b){return b()}),a.f.disposers=[],a.f.lb&&Zr(a,a.f,a.f.lb),Lr(a,a.f),as(a),bs(a,a.f.next))};Gr=function(a){return[a.a].concat(_.vh(a.o.a.map(function(b){return b.player})))};as=function(a){return Promise.all(Array.from(a.l.keys()).map(function(b){return fs(a,b)}))};
285
+ Er=function(a){if(a.sideAdContainer)a=a.sideAdContainer;else if(a=a.mj.getSurface().getContainer(),!a)throw Error("Primary player does not have a container");return a};fs=function(a,b){var c;return _.I(function(d){if(1==d.a){c=a.l.get(b);if(!c)return d.F(0);a.g.info("Stop preloading item (ID: "+b+")");return c.player?_.y(d,gs(a,c.player),3):d.F(3)}a.l["delete"](b);_.C(d)})};hs=function(a){return _.I(function(b){if(1==b.a)return a.f?_.y(b,$r(a,a.f),3):b.F(0);Hr(a,a.a,!0);_.C(b)})};
286
+ $r=function(a,b){var c;return _.I(function(d){if(1==d.a){c=b.player;if(b.primary)return a.g.info("Pause primary playback"),a.w||Hr(a,c,!1),d.F(0);a.g.info("Stop previous playback (ID: "+b.id+")");b.disposers.forEach(function(e){return e()});b.disposers=[];b.player=null;b.videoEl=null;b.role=is;return b.Lg?(a.g.info("Release player (ID: "+b.id+") after delay "+(b.Lg+" ms.")),_.y(d,new Promise(function(e){setTimeout(function(){return _.I(function(f){if(1==f.a)return _.y(f,gs(a,c),2);Hr(a,c,!1);a.a.trigger(new _.L("ad-hls-released"));
287
+ e();_.C(f)})},b.Lg)}),0)):_.y(d,gs(a,c),5)}Hr(a,c,!1);return d.F(0)})};Xr=function(a,b){return _.I(function(c){if(1==c.a)return _.y(c,Yr(a,b),2);if(3!=c.a)return _.y(c,b.player.play(),3);b.state=_.Lf;_.C(c)})};Yr=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.y(d,js(a,!!b.primary),2);if(3!=d.a)return c=d.f,a.f=b,b.role=ks,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),Hr(a,c,!0),b.state="loading",b.zd=ls(c,b.config),_.y(d,b.zd,3);b.state="loaded";_.C(d)})};
288
+ Wr=function(a,b){var c;return _.I(function(d){switch(d.a){case 1:c=b.player;if(!c)return d["return"]();if(b.state!==Tf){d.F(2);break}a.g.info(lc);_.D(d,3);return _.y(d,b.preloadPromise,5);case 5:_.Jh(d,2);break;case 3:_.H(d);case 2:a.f=b;b.role=ks;Hr(a,c,!0);if(b.state===Sf)return _.y(d,c.play(),7);if(b.state!==Rf){d.F(7);break}return _.y(d,ls(c,b.config),7);case 7:b.state=_.Lf,_.C(d)}})};
289
+ Zr=function(a,b,c){function d(){a.a.trigger(new _.L(_.Oc,{ad:c}));a.a.trigger(new _.L(_.Bc,{ad:c}));c.h===c.f&&a.a.trigger(new _.L(_.yc,{id:b.Oa}))}function e(){a.a.trigger(new _.L(_.zc,{ad:c}))}function f(){a.a.trigger(new _.L(_.Lc,{ad:c}))}function g(){l.isEnded()||a.a.trigger(new _.L(_.Jc,{ad:c}))}function h(){var m=l.getPosition(),n=c.getDuration();c.j=m;a.a.trigger(new _.L(_.Kc,{ad:c}));!c.l&&m>=n/4&&(c.l=!0,a.a.trigger(new _.L(_.Cc,{ad:c})));!c.o&&m>=n/2&&(c.o=!0,a.a.trigger(new _.L(_.Ic,{ad:c})));
290
+ !c.w&&m>=3*n/4&&(c.w=!0,a.a.trigger(new _.L(_.Pc,{ad:c})))}var l=b.player;l.on(_.Hg,h);l.on(_.sf,g);l.on(_.Lf,f);l.on(_.qd,e);l.one(_.ze,d);b.disposers.push(function(){l.off(_.Hg,h);l.off(_.sf,g);l.off(_.Lf,f);l.off(_.qd,e);l.off(_.ze,d)});1===c.h&&a.a.trigger(new _.L(_.xc,{id:b.Oa}));c.videoEl=l.getSurface().getMedia();a.a.trigger(new _.L(_.Gc,{ad:c}));a.a.trigger(new _.L(_.Nc,{ad:c}))};
291
+ Vr=function(a,b){return _.I(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==Tf){c.F(2);break}a.g.info("Wait for seek to finish");_.D(c,3);return _.y(c,b.preloadPromise,5);case 5:_.Jh(c,2);break;case 3:_.H(c);case 2:if(!b.V){c.F(6);break}return _.y(c,b.player.seek(b.V,!0),6);case 6:a.f=b;b.role=ks;Hr(a,b.player,!0);b.state="loading";if(a.w){Sr(a,b.Oa,Ur);c.F(8);break}return _.y(c,b.player.play(),8);case 8:b.state=_.Lf,_.C(c)}})};
292
+ gs=function(a,b){return _.I(function(c){return b===a.a?c.F(0):_.y(c,a.o.release(b),0)})};js=function(a,b){var c;return _.I(function(d){if(1==d.a)return b?d["return"](a.a):_.y(d,a.o.get(),2);c=d.f;if(!c)throw Error("No player available");return d["return"](c)})};bs=function(a,b){var c;_.I(function(d){if(0===b.length)return d["return"]();a.g.info("Preload items (IDs: "+b+")");c=a.j.filter(function(e){return b.includes(e.id)})||[];return _.y(d,Promise.all(c.map(function(e){return ms(a,e)})),0)})};
293
+ ms=function(a,b){var c,d,e,f,g;return _.I(function(h){switch(h.a){case 1:if(!b.primary){h.F(2);break}b.state=Tf;a.l.set(b.id,b);if(!b.V||a.w){h.F(3);break}c=b.player;a.g.info("Preparing to resume at",b.V);Sr(a,b.Oa,Tr);return _.y(h,c.seek(b.V,!0),3);case 3:return b.state=Sf,h["return"]();case 2:return d=b.id,_.y(h,js(a,!1),5);case 5:e=h.f;b.player=e;b.videoEl=e.getSurface().getMedia();b.role=is;b.state=Tf;_.D(h,6);a.l.set(d,b);b.config.autoplay&&(a.g.warn("Autoplay should not be used for preloaded streams. Force disabling autoplay (ID: "+
294
+ (d+")")),b.config.autoplay=!1);if(f=a.a.getBandwidthEstimate())b.config.abr||(b.config.abr={}),b.config.abr.defaultBandwidthEstimate=f;b.preloadPromise=ls(e,b.config);return _.y(h,b.preloadPromise,8);case 8:b.state=Sf;_.Jh(h,0);break;case 6:g=_.H(h),7001===g.code?(a.g.info("Preload aborted (ID: "+d+")"),b.state=Qf):(a.g.warn("Preload failed (ID: "+d+")",g),b.state=Rf),_.C(h)}})};
295
+ Hr=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.debug(Yb+b),d.classList.add(Fd),d.classList.remove("clpp-hide")):(a.g.debug(lb+b),d.classList.remove(Fd),d.classList.add("clpp-hide")),a.H&&a.H(d,c))};
296
+ Fr=function(a,b,c){return Array.from({length:2}).map(function(d,e){var f=document.createElement(_.r);b.appendChild(f);var g=a.h.ob.create();f=new Dr(f);g.init(f,c);g.setSourceIndex(0);var h=f.getContainer();if(!h)throw Error("Failed to create player surface container element");h.classList.add("secondary");f.getMedia().classList.add("v-"+e);a.B.push(h);return g})};
297
+ Sr=function(a,b,c){a.a.getConfiguration().muted||a.C?(a.a.setMuted(!0),ns(a,!0)):(a.h.onAudioDecision&&(c=a.h.onAudioDecision(b)),c===Ur?(a.a.setMuted(!1),ns(a,!0)):c===Tr?(a.a.setMuted(!0),ns(a,!1)):a.g.warn("Audio decision not supported",c))};ns=function(a,b){a.j.filter(function(c){return!c.primary&&c.player}).forEach(function(c){return c.player.setMuted(b)})};os=function(a){a.B.forEach(function(b){return a.G.removeChild(b)});a.B=[];Hr(a,a.a,!0)};
298
+ ls=function(a,b){return _.I(function(c){return 1==c.a?_.y(c,a.release(),2):_.y(c,a.load(b),0)})};Nr=function(a){if(a.lb){var b=a.player.getDuration();a.maxDuration&&(b=Math.min(b,a.maxDuration));a.lb.a=b}a.xf&&a.xf()};
299
+ vs=function(a){_.Am.call(this);var b=this;this.h=_.N.ua({bo:.5},a);this.g=new _.K("clpp.interstitial.Player");this.j=a.player;this.j.setSeekInterceptor(function(c,d){d||ps(b,c);var e=qs(b,c);if(e){if(rs(e))return b.g.info("Seeking into an interstitial",e.ia),ss(b,e)["catch"](function(){b.j.seek(c)}),!1}else{var f=ts(b,c);f&&!f.Kl&&(b.g.info("Trigger interstitial due to jump over it",f,"will resume at",c),ss(b,f,c)["catch"](function(){f.Kl=new Date;b.j.seek(c)}))}return!0});this.a=new Ir({Fl:this.h.config,
300
+ mj:a.player,preloadMedia:!0,ob:a.ob,sideAdContainer:this.h.sideAdContainer,onAudioDecision:this.h.onAudioDecision});this.l=[];this.f=[];this.o=!1;us(this,a.player)};ws=function(a){return(a=a.a.getCurrentItem())&&!a.primary?a.player:null};
301
+ ys=function(a){var b,c,d;_.I(function(e){var f=a.a;Pr(f,[{id:Vf,primary:!0,config:f.a.getConfiguration(),next:[],xb:0,duration:0,Oa:null}]);var g=Jr(f);if(!g)throw Error("Failed to find primary item");f.f=g;g.role=ks;g.player=f.a;g.videoEl=g.player.getSurface().getMedia();Hr(f,g.player,!0);b=a.j;c=b.getConfiguration();d=!c.autoplay;a.o=xs(a,d,b.isLive(),!1);if(a.o){f=a.a;g=f.o;if(g=g.a[0]?g.a[0].player:null)f.w||Hr(f,f.a,!1),Hr(f,g,!0);return e.F(0)}return c.autoplay?_.y(e,Or(a.a),0):e.F(0)})};
302
+ ps=function(a,b){var c=a.j.getPosition();b>=c||a.f.filter(function(d){return 1===d.xe&&!d.once&&d.Oi&&d.startTime>b}).forEach(function(d){d.eh=!0})};
303
+ xs=function(a,b,c,d){var e=zs(a);a.g.info("Interstitial cues found",e);var f=e;if(d){f=$i(a.f.map(function(n){return n.ia}),e.map(function(n){return n.id}));As(a,f.ko);var g=new Set(f.Rj);f=e.filter(function(n){return g.has(n.id)})}if(!Bs(a,f))return!1;var h=[],l=[],m=[];f.forEach(function(n){var p=n.customAttributes.CUE||[];p.includes(_.Jb)?l.push(n):!d&&p.includes("PRE")?h.push(n):!c&&n.startTime<a.h.bo?h.push(n):m.push(n)});1<h.length?a.g.warn("Multiple preroll interstitials not supported. Will display only the 1st one."):
304
+ h[0]&&Cs(a,h[0],b);m.forEach(function(n){return Ds(a,n,1)});1<l.length?a.g.warn("Multiple postroll interstitials not supported. Will display only the 1st one."):l[0]&&Ds(a,l[0],2);Es(a,e);a.g.info("Interstitials changed",a.f);return 0<h.length};
305
+ Es=function(a,b){var c,d,e,f;_.I(function(g){c=a.a.getCurrentItem();if(!c)return g["return"]();if(c.primary)return a.f.forEach(function(h){var l=b.find(function(n){return n.id===h.ia});if(l){var m=l.customAttributes[sc];null==h.sc&&null!=m&&(a.g.info(hc,l.id,"Playout limit",m),h.sc=m)}}),g["return"]();d=b.find(function(h){return h.id===c.Oa});if(!d)return g["return"]();e=d.customAttributes[sc];if(null==e)return g["return"]();f=a.f.find(function(h){return h.ia===d.id});if(!f||null!=f.sc)return g["return"]();
306
+ a.g.info(hc,d.id,"Playout limit",e);f.sc=e;return _.y(g,Mr(a.a,e),0)})};As=function(a,b){var c=new Set(b);a.f.forEach(function(d){c.has(d.ia)&&!rs(d)&&a.g.warn("Removing an interstitial in active state",d)});a.f=a.f.filter(function(d){return!c.has(d.ia)})};zs=function(a){return a.j.getTimelineCues().filter(function(b){return b.schemeIdUri===Td&&b.customAttributes})};
307
+ ss=function(a,b,c){var d;return _.I(function(e){if(1==e.a)return _.y(e,Fs(a,b),2);d=e.f;if(!d)throw Error("Failed to bind");return _.y(e,Gs(a,b,1,!1,c),0)})};
308
+ Ds=function(a,b,c){var d=b.customAttributes[rc],e=b.customAttributes[qc],f=b.customAttributes[uc],g=b.customAttributes[sc],h=b.customAttributes[tc]||[];b.customAttributes[wc]||(b.customAttributes[wc]=null==f||0<f?"RANGE":"POINT");var l=b.id,m=b.startTime,n=b.endTime,p=Hs,q=null==f?null:Math.max(0,b.startTime+f),t="POINT"===b.customAttributes[wc],v=!h.includes("SKIP");h=!h.includes("JUMP");var z=b.customAttributes[pc];if(z)try{var A=JSON.parse(atob(z))}catch(E){A=null}else A=null;b={ia:l,startTime:m,
309
+ endTime:n,state:p,mh:e,nh:d,Fa:null,V:q,po:f,sc:g,xe:c,Bm:t,ak:v,$j:h,vj:A,Oi:null!=f&&0>f,once:(b.customAttributes.CUE||[]).includes("ONCE"),sj:!1,eh:!0};a.f.push(b);return b};
310
+ Cs=function(a,b,c){var d,e,f,g,h;_.I(function(l){switch(l.a){case 1:return d=Ds(a,b,0),_.y(l,Fs(a,d),2);case 2:e=l.f;f=d.Fa?d.Fa.length:0;if(e&&0<f){_.D(l,9);var m=Gs(a,d,0,c);a.g.info("Preroll interstitial "+d.ia+" scheduled");return _.y(l,m,11)}if(e){a.g.warn("Preroll interstitial has no assets, skipping");l.F(5);break}a.g.error("Preroll interstitial failed, skipping");return _.y(l,hs(a.a),5);case 5:if(c){l.F(0);break}return _.y(l,Or(a.a),0);case 11:_.Jh(l,0);break;case 9:g=_.H(l);a.g.error("Preroll interstitial failed.",
311
+ g);if(h=Jr(a.a))return _.y(l,a.a.play(h.id),0);l.F(0)}})};Is=function(a){a.l.forEach(function(b){return b()});a.l=[]};
312
+ us=function(a,b){function c(){xs(a,!1,!0,!0)}function d(){var e,f,g,h,l;return _.I(function(m){switch(m.a){case 1:e=b.getPosition();f=Js(a,e);if(!f){m.F(2);break}a.g.info(mb+f.ia+" coming up at "+(f.startTime+" s"));return _.y(m,Fs(a,f),3);case 3:(g=m.f)&&Ks(a,f,b);case 2:h=Ls(a);if(!(h&&h.state===Hs&&b.getDuration()-e<a.h.resolutionOffsetSec)){m.F(0);break}return _.y(m,Fs(a,h),5);case 5:if(l=m.f)if(h.Fa&&0!==h.Fa.length){var n=a.a.getCurrentItem();if(n){var p=Ms(a,h,2);if(0!==p.length){var q=p[0].id;
313
+ n.next=[q];n.transition={Ha:q};Ns(a,h,p);a.g.info("Postroll interstitial "+h.ia+" scheduled")}}}else a.g.warn("Postroll interstitial has no assets, ignoring.");_.C(m)}})}b.addEventListener(_.Hg,d);a.l.push(function(){b.removeEventListener(_.Hg,d)});b.addEventListener(_.Gg,c);a.l.push(function(){b.removeEventListener(_.Gg,c)})};Ls=function(a){return a.f.find(function(b){return 2===b.xe})||null};
314
+ Bs=function(a,b){for(var c=b.sort(function(n,p){return n.startTime-p.startTime}),d=a.h.resolutionOffsetSec,e=Infinity,f=[],g=0;g<c.length-1;g++){var h=c[g],l=c[g+1];l&&(e=Math.min(e,l.startTime-h.endTime));l&&l.startTime<=h.endTime&&f.push("Interstitials "+h.id+" and "+l.id+" overlap.")}e<d&&(c=e/2,a.h.resolutionOffsetSec=c,a.g.info("Interstitials are closer than configured resolutionOffsetSec ("+(d+" s) auto-reconfiguring to ")+(c+" s.")));var m=[];b.forEach(function(n){var p=n.customAttributes[rc];
315
+ n.customAttributes[qc]||p||m.push("Interstitial cue "+n.id+" is invalid it contains neither X-ASSET-LIST nor X-ASSET-URI.")});0<m.length?a.g.error("Invalid interstitials, all interstitials will be skipped. "+m.join(" ")):0<f.length&&a.g.warn("Unsupported format of interstitials, playback may not behave correctly. "+f.join(" "));return 0===m.length};Js=function(a,b){return a.f.find(function(c){var d=c.startTime-b;return 1===c.xe&&rs(c)&&0<d&&d<=a.h.resolutionOffsetSec})||null};
316
+ qs=function(a,b){return a.f.find(function(c){return!c.Bm&&1===c.xe&&b>c.startTime&&b<c.endTime})||null};ts=function(a,b){var c=a.j.getPosition();return a.f.filter(function(d){return 1===d.xe&&!d.$j}).sort(function(d,e){return e.startTime-d.startTime}).find(function(d){return d.startTime>c&&d.startTime<b})||null};
317
+ Fs=function(a,b){var c,d,e,f;return _.I(function(g){switch(g.a){case 1:b.state=Os;if(!b.mh){b.nh?(b.Fa=[{URI:b.nh,DURATION:b.endTime-b.startTime}],a.ab(new _.L(Fc,{id:b.ia,detail:Ps(b)})),b.state=Qs):b.state=Rs;g.F(2);break}_.D(g,3);a.g.info("Load X-ASSET-LIST for "+b.ia);a.ab(new _.L(Dc));return _.y(g,Ss(a,b.mh),5);case 5:c=g.f;b.Fa=c.ASSETS;b.Fa&&0!==b.Fa.length||a.g.info(mb+b.ia+" has no assets, will be smoothly skipped");null==b.V&&(d=Tj(b.Fa.map(function(h){return h.DURATION})),e=null==b.sc?
318
+ d:Math.min(b.sc,d),b.V=b.startTime+e);b.state=Qs;a.ab(new _.L(Ec));a.ab(new _.L(Fc,{id:b.ia,detail:c}));_.Jh(g,2);break;case 3:f=_.H(g),a.g.error("Failed to load X-ASSET-LIST",f),b.state=Rs;case 2:return g["return"](b.state===Qs)}})};Ts=function(a,b){var c=a.h.$n;if(c){var d=new URL(b);d.searchParams.set("_HLS_primary_id",c);return d.toString()}return b};
319
+ Gs=function(a,b,c,d,e){var f,g,h,l;return _.I(function(m){f=a.a.getCurrentItem();if(!f)return m["return"]();g=Ms(a,b,c);if(0===g.length)return m["return"]();Ns(a,b,g);h=0===c&&a.j.isLive();h||(l=e||b.V)&&cs(a.a,l);return d?_.y(m,a.a.load(g[0].id),0):_.y(m,a.a.play(g[0].id),0)})};
320
+ Ks=function(a,b,c){if(b.Fa)if(0===b.Fa.length){var d=function(){c.isLive()?a.g.info("Skipping empty live interstitial "+b.ia):null!=b.V&&0!==b.po?c.seek(b.V):a.g.info("Empty VOD interstitial "+b.ia+", continuing to next segment")};c.one(_.Eg,d);a.l.push(function(){c.off(_.Eg,d)});a.g.info(mb+b.ia+" scheduled to be skipped")}else{var e=a.a.getCurrentItem();if(e){var f=Ms(a,b,1);if(0!==f.length){var g=f[0].id;null!=b.V&&cs(a.a,b.V);e.next=[g];e.transition={vf:{position:b.startTime,itemId:g,V:b.V}};
321
+ Ns(a,b,f);a.g.info(mb+b.ia+" scheduled for "+(b.startTime+" s"))}}}};Ns=function(a,b,c){Pr(a.a,c);es(a.a);b.state=Us;a.ab(new _.L(_.Hc,{detail:null}))};
322
+ Ms=function(a,b,c){var d=0,e=b.Fa.map(function(h,l){var m=b.ia+"-"+l;d+=h.DURATION;return{id:m,config:{source:{url:Ts(a,h.URI),type:_.mm}},duration:h.DURATION,xb:d,Oa:b.ia,next:[],lb:new rr(c,l+1,b.Fa.length,h.DURATION,b.ia,b.ak)}});e.forEach(function(h,l){var m=l===e.length-1;m&&2===c||(m?(h.next=[Vf],h.transition={Ha:Vf}):(m=m?Vf:h.Oa+"-"+(l+1),h.next=[m],h.transition={Ha:m}))});e.forEach(function(h){h.xf=function(){a.g.info("Playing interstitial asset "+h.id,h)}});if(null!=b.sc&&(e=Vs(a,b,e),0===
323
+ e.length))return[];var f=e[0].xf;e[0].xf=function(){b.sj=!0;b.Oi&&(b.eh=!1);a.g.info("Playing interstitial "+c+" "+b.ia+" with "+(b.Fa.length+" assets and will resume primary content ")+((b.V?"at "+b.V.toFixed(1)+" s":"after interstitial ended")+"."),e);f()};e[0].Xi=function(h){null==b.V&&(b.V=b.startTime+h,cs(a.a,b.V),a.g.info("Primary content will resume at",b.V));b.state=Ws};var g=e[e.length-1];g.Ha=function(){b.state=Xs;Qr(a.a,e.map(function(h){return h.id}));2===c&&hs(a.a)};g.Lg=a.h.adReleaseDelayMs;
324
+ return e};Vs=function(a,b,c){var d=b.sc;a.g.info("Playout limit for "+b.ia+" is "+(d+" s"));b=c[c.length-1].xb;if(d>=b)return a.g.info("Playout limit ("+d+") islarger or equal to total duration: ("+(b+").")),c;if(0>=d)return a.g.info("Discarding all ads."),[];var e=c.filter(function(f){return f.xb-f.duration<=d});e.forEach(function(f){f.lb.f=e.length});a=e[e.length-1];c=d-(a.xb-a.duration);.1>Math.abs(c-a.duration)?a.transition.Ha=Vf:a.transition.vf={position:c,itemId:Vf,V:null};a.maxDuration=c;return e};
325
+ Ss=function(a,b){var c,d,e,f,g,h;return _.I(function(l){if(1==l.a){c=a.a.bf();if(!c)throw Error("No player found");d=c.getNetworkEngine();e=_.pk(Ts(a,b));return _.y(l,Mk(d,e),2)}f=l.f;g=Ys(f);if(!g)throw new _.nj("Invalid X-ASSET-LIST list response");h=f;return l["return"](h)})};Ys=function(a){return a&&a.ASSETS&&Array.isArray(a.ASSETS)?a.ASSETS.every(function(b){return typeof b.URI===_.ug&&typeof b.DURATION===_.k}):!1};rs=function(a){return a.eh&&!(a.once&&a.sj)&&[Hs,Xs].includes(a.state)};
326
+ Ps=function(a){var b={URI:a.Fa[0].URI,DURATION:a.Fa[0].DURATION};a.vj&&(b[pc]=a.vj);return{ASSETS:[b]}};Zs=function(){this.a=null};$s=function(){try{var a=URL.createObjectURL(new Blob);URL.revokeObjectURL(a);return a.slice(a.lastIndexOf("/")+1)}catch(c){var b=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(d){var e=(b+16*Math.random())%16|0;b=Math.floor(b/16);return("x"===d?e:e&3|8).toString(16)})}};
327
+ bt=function(a){this.m=a;this.j=this.m.getNetworkEngine();this.a=new _.wi;this.h=null;this.f=!0;at(this)};at=function(a){a.a.on(window,"offline",function(){ct(a,!1)});a.a.on(window,"online",function(){a.f||dt(a)});a.a.on(a.m,pg,function(){return et(a)});a.a.on(a.m,"suspend",function(){return et(a)});a.a.on(a.m,_.fh,function(){return et(a)});a.a.on(a.m,_.Lf,function(){a.f||dt(a)});a.a.on(a.m,_.Wf,function(){a.f||dt(a)});a.a.on(a.m,_.rg,function(){switch(a.m.getState()){case _.Mq:et(a);break;default:et(a)}})};
328
+ dt=function(a){a.m.getConfiguration().connectivityCheck&&(ft(a),a.h=(new _.mi(function(){return gt(a)})).fa(5))};et=function(a){a.f&&dt(a)};ft=function(a){a.h&&(a.h.stop(),a.h=null)};gt=function(a){var b,c;return _.I(function(d){if(1==d.a)return(b=a.m.getConfiguration().connectivityCheck)&&a.m?_.y(d,Nk(a.j,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;ct(a,c);_.C(d)})};ct=function(a,b){ft(a);a.f!==b&&(a.f=b,a.m&&a.m.getConfiguration().connectivityCheck&&a.m.trigger(new _.L(of,{online:a.f})))};
329
+ it=function(){for(var a=0;a<ht.length;++a)ht[a].hd()};_.jt=function(a){var b=b||0;a={priority:b,hd:a};for(var c=0;c<ht.length;c++)if(ht[c].priority<b){ht.splice(c,0,a);return}ht.push(a)};kt=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};lt=function(a,b,c){var d=_.T.ea;this.h=a;this.f=b;JSON.parse(d(_.an(a)));this.a=JSON.parse(d(_.an(b)));this.j=c};
330
+ nt=function(a){var b=mt,c=_.T.ib,d={kty:"RSA",n:b.n,e:b.e},e=a.h+"."+a.f,f=a.j;return new Promise(function(g,h){try{var l=window&&window.crypto&&window.crypto.subtle}catch(n){}if(l){var m={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};l.importKey("jwk",d,m,!1,["verify"]).then(function(n){var p=c(e),q=_.an(f);return l.verify(m,n,q.buffer,p.buffer)}).then(function(n){n?g():h(new _.nj("Signature Verification failed",Mg))})["catch"](h)}else g()})};ot=function(a){this.f=a;this.a=null;this.g=new _.K("clpp.utils.LicenseKey")};
331
+ pt=function(a){if(!a.a){var b=a.f.split(".");if(3!==b.length)throw Error("Expected to find 3 data sections in JWT raw data");b=new lt(b[0],b[1],b[2]);a.a=b}return a.a};
332
+ qt=function(a){var b,c,d;return _.I(function(e){if(1==e.a)return b=pt(a),_.D(e,2),_.y(e,nt(b),4);if(2!=e.a)return _.Jh(e,0);if((c=_.H(e))&&c.code===Mg)throw c;var f=window.location.href,g=new _.sj(f);d=g.Gb||g.bb?g:new _.sj("//"+f);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(d.bb))return e["return"]();throw c;})};
333
+ rt=function(a){switch((a.ba[0]||{src:"",type:""}).type){case _.Xc:a="dash";break;case _.bd:a="ss";break;case _.mm:a="hls";break;case _.$g:a="mp4";break;default:a=""}return a};st=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};tt=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};ut=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};
334
+ wt=function(a){var b=a.configuration,c="no";b.drm&&!_.N.qa(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(ue)||vt(a).endsWith("drmtoday.com"))&&(c=ue);return c};xt=function(a){a=a.drmInfo;var b="";if(a)switch(a.keySystem){case _.Xd:b="wv";break;case _.Vd:b="pr";break;case _.Sd:b="fps"}return b};yt=function(a){a=a.drmInfo;var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};
335
+ zt=function(a){a=a.drmInfo;var b="";if(a)switch(a.videoRobustness){case jb:case hb:b="L1";break;case ib:b="L2";break;case _.Vb:case _.Ub:b="L3"}return b};vt=function(a){a=a.drmInfo;return(new _.sj(a&&a.licenseServerUri||"")).bb};
336
+ Ct=function(a,b){var c="ie"===_.Hk().browser,d=b.configuration,e=_.vh(Array.from(_.Mm.keys())).concat(_.vh(b.lj));d={"CL-KEY":a.f,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ia,"CL-USER-ID":st(d),"CL-ASSET-ID":tt(d),"CL-SESSION-ID":ut(d),"CL-PLAYBACK-TYPE":b.isLive?At:Bt,"CL-CONTENT-TYPE":rt(b),"CL-PLUGINS":e.join(" "),"CL-DRM":wt(b),"CL-DRM-CDM":xt(b),"CL-DRM-SEC-LEVEL":zt(b),"CL-DRM-OFFLINE":yt(b),"CL-DRM-IP":vt(b)};c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=e);e=_.pk(["https://downloads.castlabs.com/r/register/"]);
337
+ e.method="GET";e.headers=d;return(new _.Kk).fetch(e).T.then(function(f){200===f.status&&c&&window.localStorage.setItem("cl_et",f.headers.etag);return Promise.resolve()})["catch"](function(f){a:{var g=pt(a);f=f.data;var h=f.status;if(g.a&&g.a.ilv)f=Promise.resolve();else{switch(h){case 403:case 404:g=7101;var l="castLabs Player license is invalid";if(403===h){h=l;l="";try{l=JSON.parse(decodeURIComponent(f.responseText)).message}catch(m){}f=h+(": "+l)}else f=l+"!";l=f;break;case 412:g=7103;l="License requires a viewer ID. It should be supplied either via the `viewerId` config or in case of DRMtoday via the `drm.customData.userID` config.";
338
+ break;default:f=Promise.resolve();break a}a.g.error(rb+l);f=Promise.reject(new _.O(_.P,7,g,l))}}return f})};Et=function(a){this.m=a;this.f=a.getNetworkEngine();this.h=Dt(this);this.f.fd(this.h);this.a=null};
339
+ Dt=function(a){return function(b){var c=b.headers,d=b=null,e=_.N.ni(c,"cmsd-dynamic");c=_.N.ni(c,"cmsd-static");e&&(b=Ft(e),a.a=b);if(c)try{e={};var f=c.split(",");for(c=0;c<f.length;c++){var g=Gt(f[c]),h=g.key,l=g.value;Object.keys(Ht).includes(h)&&(e[Ht[h]]=l)}d=_.N.Lc(e)?e:null}catch(m){It.error("CmsdManager parseCmsdStaticHeader_ failed:",m),d=null}(b||d)&&a.m.trigger(new _.L("cmsd-event",{rp:b,Fp:d}))}};
340
+ Ft=function(a){try{var b=a.split(",").map(function(c){var d={};c=c.split(";");for(var e=0;e<c.length;e++){var f=Gt(c[e]),g=f.key;f=f.value;Object.keys(Jt).includes(g)&&(d[Jt[g]]=f)}return d}).filter(function(c){return _.N.Lc(c)});return 0<b.length?b:null}catch(c){return It.error("CmsdManager parseCmsdDynamicHeader_ failed:",c),null}};
341
+ Gt=function(a){var b=a.split("\x3d"),c=b[0];b=b[1];if(!c)throw new _.nj("Parsing CMSD, missing parameter or wrong format");if(c&&!b)return{key:c,value:!0};var d=b[0];if('"'===d&&'"'===b[b.length-1])return{key:c,value:b.replaceAll(/(^")|("$)/g,"")};if(/^[-0-9]/.test(d))return{key:c,value:parseInt(b,10)};if(/^[a-zA-Z*]/.test(d))return{key:c,value:b};throw new _.nj("Parsing CMSD, not recognized value type of "+a);};
342
+ X=function(a,b,c){_.Am.call(this);var d=this;it();this.g=new _.K("clpp.Player");if(!a)throw new _.O(_.P,7,7102);this.ya=new _.wi;this.f=this.C=b||_.Hm();this.l=null;void 0===this.f.license&&(this.f.license=Em,this.g.warn("You are using the embedded demo license!"));if(!this.f.license)throw this.g.error("You provided null or empty string as your license. Please check your license configuration."),new _.O(_.P,7,7101,"No license provided in configuration!");this.j=new Dr(a,c);this.H=this.A=this.a=this.G=
343
+ null;this.J=new _.Kk;this.h=null;this.ga=[];this.ja=!0;this.L={};this.Ea=null;this.Y=!0;this.ca=this.U=!1;this.M=this.td=null;this.fg=!1;this.kb=new bt(this);this.B=null;this.on(_.rg,function(){d.getState()===_.Sq&&(d.a?d.a.unload():Promise.resolve())});this.on(_.Tc,this.Ri.bind(this));this.on(_.Sc,this.Ri.bind(this));this.on(_.Gg,function(){return Kt(d)});Lt(this,this.f.license);this.j.getMedia()&&(a=this.j.getMedia(),a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),this.g.debug("Removed autoplay attribute from video element. Auto play will be handled by configuration."),
344
+ void 0===this.f.autoplay&&(this.f.autoplay=!0,this.g.debug("Setting autoplay in configuration since it was specified in the video element"))));a=[];b=_.w(Mt);for(c=b.next();!c.done;c=b.next()){c=c.value;try{var e=c.create(this.f);e&&a.push(e)}catch(f){this.g.error("Error while creating player plugin",f)}}Nt(this,a);this.P=_.qa;Sm(this)};
345
+ _.Ot=function(a,b,c){c=void 0===c?null:c;null!=b&&b===a.a?a.a.forwardEventsTo(a):(a.a&&(a.a.stopForwardingEventsTo(a),a.a.destroy(),a.a=null,a.A=null),b&&(b.init(a.j,a.C),b.setNetworkEngine(a.getNetworkEngine()),b.forwardEventsTo(a),a.a=b,a.A=c))};Lt=function(a,b){a.G=new ot(b);qt(a.G)["catch"](function(c){setTimeout(function(){a.g.error(rb+c);a.trigger(new _.L(_.Ae,{detail:new _.O(_.P,7,7101)}));a.destroy()},1E3)})};
346
+ Pt=function(a,b){var c,d;_.I(function(e){if(1==e.a)return a.j.getMedia()||a.j.getCastElement(),a.G||(a.G=new ot(a.f.license)),_.D(e,2),a.g.debug("Verifying license remotely"),_.y(e,Ct(a.G,b),4);if(2!=e.a)return a.g.debug("License verified remotely"),_.Jh(e,0);c=_.H(e);a.g.debug("License rejected by remote",c);d={release:a.release.bind(a),destroy:a.destroy.bind(a),onError:a.onError.bind(a)};setTimeout(kt,1E3,d,c);_.C(e)})};
347
+ Nt=function(a,b){a.ga=b;for(var c=_.w(a.ga),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.id();e&&(a.L[e]=d)}a.Rc("onPlayerCreated")};
348
+ Qt=function(a){var b,c;return _.I(function(d){switch(d.a){case 1:if(a.Y)return a.g.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.ya.off(document,dh);a.trigger(new _.L(_.$f));a.j&&a.j.release();if(!a.h){d.F(2);break}return _.y(d,a.h.Ec(),3);case 3:a.h=null;case 2:if(!a.B){d.F(4);break}return _.y(d,a.B.release(),5);case 5:a.B=null;case 4:if(a.a)return b=null,c=a.a.on(_.rg,function(e){b=e}),d["return"](a.Rc(_.mf).then(function(){a.a.stopForwardingEventsTo(a);
349
+ return Promise.all([a.a.release(),a.J.release()])}).then(function(){a.g.debug("Releasing player completed");b&&(a.g.debug("Re-post state change event after release"),a.trigger(b))})["finally"](function(){a.a.off(_.rg,c);a.trigger(new _.L(Zf))}));a.trigger(new _.L(Zf));return d["return"](new Promise(function(e){return e()}))}})};
350
+ St=function(a,b,c){if(a.P===_.Ib)b=Rt(b,c);else if(2!==(a.a?a.a.canPlay(b[0],c):0)||a.ca){a.ca=!1;if(b){for(var d=a=null,e=0;e<b.length;e++);e=Object.values(_.fi);for(var f=0;f<b.length;f++)for(var g=0;g<e.length;g++){var h={ob:e[g],confidence:e[g].canPlay(b[f],c)};if(null===a||a.confidence<h.confidence)a=h,d=f}a&&typeof d===_.k&&0<a.confidence?(_.gi.debug("Player Factory '"+a.ob.a()+"' can play",b[d]),b=new ei(a.ob,d)):(_.gi.debug("No compatible Player Factory found for sources:",b),b=null)}else b=
351
+ null;if(!b)throw new _.O(_.P,7,7003,"No player factory compatible with given sources found!");c=b.ob;a=c.create();b={ob:c,player:a,sourceIndex:b.sourceIndex}}else b={ob:a.A,player:a.a,sourceIndex:0};return b};Rt=function(a,b){var c=ii(function(d){return d.f(_.Ib)&&a.every(function(e){return 2===d.canPlay(e,b)})});if(!c)throw new _.O(_.P,7,7003,"No compatible player implementing playlist mode found!");return{ob:c,player:c.create(),sourceIndex:0}};
352
+ Ut=function(a){var b;return _.I(function(c){if(1==c.a){if(!a.a)return a.g.warn(Lb),c["return"]();b=a.a;if(!b.Bh)return a.g.warn(Pb),c["return"]();a.trigger(new _.L(Ve));return _.y(c,b.Bh(),2)}return _.y(c,_.Tt(a),0)})};
353
+ _.Yt=function(a,b,c){var d,e;return _.I(function(f){if(1==f.a){if(a.U)throw new _.O(_.P,7,7E3,"Player is already destroyed.");if(!a.j)throw new _.O(_.P,7,7E3,"No surface associated with this player!");_.np(Cf);return _.y(f,a.release(),2)}if(3!=f.a){d=c||_.Zq(b);if(!b||0===d.length)throw new _.O(_.P,7,7003,Cb);a.Ea=d;a.f=_.Jm(a.C,b,{source:d});a.Y=!1;e=St(a,d,a.f);_.Ot(a,e.player,e.ob);Vt(a,a.a);a.a&&a.a.setSourceIndex(e.sourceIndex);Wt(a);a.a&&a.a.setCdnErrorCallback(a.M);Xt(a,a.f);a.B=new Et(a);
354
+ a.a.setCmsdManager(a.B);if(a.f.pauseWhenInBackground)a.ya.on(document,dh,function(){document.hidden?(a.g.debug("Player is hidden: pausing..."),a.pause()):(a.g.debug("Player is visible: resuming..."),a.play())});Tm(a);return _.y(f,a.Rc("onContentWillLoad",a.f.source[e.sourceIndex]),3)}_.np(Bf);_.pp("player.beforeLoad",Cf,Bf);_.C(f)})};
355
+ _.Zt=function(a){return _.I(function(b){a.j.getMedia()||a.j.getCastElement();a.trigger(new _.L(Ve));return _.y(b,Promise.all([a.a.load(a.f),a.h?a.h.load():Promise.resolve()]),0)})};Vt=function(a,b){try{var c=crypto.randomUUID()}catch(d){c=$s()}a.g.info("Playback session started, ID:",c);b.setPlaybackSessionId(c);a.H=c};$t=function(a){a.H&&(a.g.info("Playback session ended, ID:",a.H),a.H=null,a.a&&a.a.setPlaybackSessionId(null))};
356
+ bu=function(a){var b,c,d,e;_.I(function(f){if(1==f.a){b=[];if(a.f.remoteTextTracks)for(c=_.w(a.f.remoteTextTracks),d=c.next();!d.done;d=c.next())e=d.value,b.push(a.getTrackManager().addTextTrack(e));return _.y(f,Promise.all(b),2)}au(a);_.C(f)})};
357
+ au=function(a){var b=_.Vi(a.f.preferredTextLanguage).filter(function(f){return f}),c=a.f.preferForcedSubtitles,d=a.getTrackManager().ma().filter(function(f){return c?f.kind===_.Ce:f.kind!==_.Ce});if(0===d.length)c&&a.g.warn("Forced subtitles are configured to be preferred, but no forced subtitles are available.");else{if(c&&0===b.length){var e=a.getTrackManager().ra();e&&e.language?(e=_.Pj(e.language||""),b.push(e)):(e=a.getTrackManager().Na())&&e.language&&(e=_.Pj(e.language||""),b.push(e));0===
358
+ b.length&&a.g.warn("Forced subtitles are configured to be preferred, but neither the preferred text language is set, nor the audio or video track language is available to determine which forced subtitles language to select.")}b.some(function(f){var g=_.Pj(f);if(f=d.find(function(h){h=_.Pj(h.language||"");return _.Qj(h,g)}))return a.getTrackManager().$a(f),!0;c&&a.g.warn("Forced subtitles are configured to be preferred, but no forced subtitles match the preferred languages: ",b);return!1})}};
359
+ _.Tt=function(a){var b;return _.I(function(c){if(1==c.a)return _.np(yf),Pt(a,{configuration:a.getConfiguration(),ba:a.si(),drmInfo:a.getDrmInfo(),lj:Object.keys(a.L),isLive:a.isLive()}),bu(a),Um(),_.y(c,a.Rc(_.jf),2);if(3!=c.a)return a.f.autoplay?(b=a.h?a.h.gd():!0)?_.y(c,a.play(),3):c.F(3):c.F(3);_.np(xf);_.pp("player.afterLoad",yf,xf);_.C(c)})};Xt=function(a,b){var c=or(a,b);c&&(a.h=c.create(a))};
360
+ Kt=function(a){if(!a.h&&a.A&&a.a&&a.f.ads.hls.enable&&a.getTimelineCues().some(function(c){return c.schemeIdUri===Td})){var b=a.f.mse.sendPlaybackSessionIdHeader?a.H:null;a.h=new Zs;a.h.kd(a.a,a.A,b)}};Wt=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.I(function(c){if(!a.td||!a.fg)return c.F(0);a.fg=!1;return _.y(c,a.td(b),0)})})};_.cu=function(a){a&&(0<=Mt.indexOf(a)||Mt.push(a))};
361
+ du=function(a,b,c){X.call(this,a,b,c);a={manifest:{timeline:{version:2},keepTimelineLive:!0},streaming:{preferNativeHlsOnSafari:!1,enableLiveEdgeChasing:!1,startAtSegmentBoundary:!1}};this.C=_.N.ua(this.C,a);this.f=_.N.ua(this.f,a);this.I=0;this.o=[];this.da=!1;this.w=null;this.K=[]};eu=function(a){a.K.forEach(function(b){return b()});a.K=[]};
362
+ fu=function(a,b){function c(f){a.I=a.o.findIndex(function(g){return g.id===f.id})}a.addEventListener(_.fg,c);a.K.push(function(){a.removeEventListener(_.fg,c)});if(b.endTime){var d=b.endTime,e=function(){a.getPosition()>=d&&(a.removeEventListener(_.Hg,e),a.g.info("Playlist end time reached. Stopping playback."),a.trigger(new _.L(_.eg)),a.pause())};a.addEventListener(_.Hg,e);a.K.push(function(){a.removeEventListener(_.Hg,e)})}};
363
+ iu=function(a,b){var c,d;return _.I(function(e){switch(e.a){case 1:return _.D(e,2),_.np(Hf),a.P=_.Ib,a.ja=!1,c=b.slice(1).map(function(f){return{config:f,ba:_.Zq(f)}}),_.y(e,_.Yt(a,b[0]),4);case 4:return c.forEach(function(f){gu(a,f.config,f.ba)}),a.trigger(new _.L(Ve)),_.y(e,a.a.setupPlaylist(b),5);case 5:return _.y(e,_.Tt(a),6);case 6:c.forEach(function(f){hu(a,f.config,f.ba)});_.np(Ff);_.pp("player.setupPlaylist",Hf,Ff);_.Jh(e,0);break;case 2:d=_.H(e);if(a.l)throw a.g.info(sb),new _.O(_.P,7,7E3);
364
+ throw d;}})};ju=function(a,b){var c,d;return _.I(function(e){if(1==e.a)return _.D(e,2),_.np(Af),c=_.Zq(b),gu(a,b,c),_.y(e,a.a.appendLoad(b),4);if(2!=e.a)return hu(a,b,c),_.np(zf),_.pp("player.appendLoad",Af,zf),_.Jh(e,0);d=_.H(e);if(a.l)throw a.g.info(sb),new _.O(_.P,7,7E3,{id:b.id});throw d;})};hu=function(a,b,c){Pt(a,{configuration:b,ba:c,drmInfo:a.getDrmInfo(),lj:Object.keys(a.L),isLive:c[0].isLive})};
365
+ gu=function(a,b,c){if(0===c.length)throw new _.O(_.P,7,7003,{message:Cb,id:b.id});if(1<c.length)throw new _.O(_.P,7,7003,{message:"Multiple sources not supported!",id:b.id,source:c});if(2!==(a.a?a.a.canPlay(c[0],a.f):0))throw new _.O(_.P,7,7003,{message:"Source not supported by the current player!",id:b.id,source:c[0]});};
366
+ mu=function(a){_.Am.call(this);var b=this;this.h=_.N.ua({transition:_.sf,preloadMedia:!1},a);this.j=[];this.a=0;var c=ku(a.anchorId,this.h.config);this.w=new sr(c);this.f=null;this.l=!1;this.o=new Map;this.A=a.toggleVisible;this.g=new _.K(Md);this.w.a.forEach(function(d){return lu(b,d.player,!1)})};ou=function(a){return Promise.all(Array.from(a.o.keys()).map(function(b){return nu(a,b)}))};
367
+ nu=function(a,b){var c;return _.I(function(d){if(1==d.a){c=a.o.get(b);if(!c)return d.F(0);a.g.info("Stop preloading item (index: "+b+")");return c.player?_.y(d,pu(a,c),3):d.F(3)}a.o["delete"](b);_.C(d)})};ru=function(a,b){return _.I(function(c){if(1==c.a)return a.g.info("Stop current playback (index: "+b.index+")"),b.player.pause(),lu(a,b.player,!1),_.y(c,pu(a,b),2);b.player=null;b.videoEl=null;b.role=qu;_.C(c)})};
368
+ pu=function(a,b){return _.I(function(c){b.disposers.forEach(function(d){return d()});b.disposers=[];return b.player?_.y(c,a.w.release(b.player),0):c.F(0)})};uu=function(a,b){var c;return _.I(function(d){if(1==d.a)return _.y(d,a.w.get(),2);if(3!=d.a)return c=d.f,a.f=b,b.role=su,a.f.player=c,a.f.videoEl=c.getSurface().getMedia(),lu(a,c,!0),_.y(d,c.load(b.config),3);tu(a,b);return b.config.autoplay?d.F(0):_.y(d,c.play(),0)})};
369
+ vu=function(a,b){return _.I(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if(b.state!==Tf){c.F(2);break}a.g.info(lc);_.D(c,3);return _.y(c,b.preloadPromise,5);case 5:_.Jh(c,2);break;case 3:_.H(c);case 2:a.f=b;b.role=su;lu(a,b.player,!0);if(b.state===Sf)return _.np(Pf),a.h.preloadMedia?_.y(c,b.player.play(),11):_.y(c,Ut(b.player),11);if(b.state!==Rf){c.F(7);break}return _.y(c,b.player.load(b.config),7);case 11:_.np(Of),_.pp("playlist.next",Pf,Of);case 7:if(tu(a,b),b.config.autoplay)c.F(0);
370
+ else return _.y(c,b.player.play(),0)}})};tu=function(a,b){if(a.h.autoplayNext){var c=function(){a.g.info("Automatically transition to next item");a.kj()};b.player.on(_.ze,c);var d=b.player;b.disposers.push(function(){d.off(_.ze,c)})}};xu=function(a){var b;return _.I(function(c){b=a.a+1;a.g.info("Preload following item (index: "+b+")");return _.y(c,wu(a,b),0)})};yu=function(a){var b;return _.I(function(c){b=a.a-1;a.g.info("Preload preceding item (index: "+b+")");return _.y(c,wu(a,b),0)})};
371
+ zu=function(a){var b;_.I(function(c){if(0===a.a)return _.y(c,xu(a),0);if(a.a===a.j.length-1)return _.y(c,yu(a),0);b=[a.a-1,a.a+1];a.g.info("Preload items (indices: "+b+")");return _.y(c,Promise.all(b.map(function(d){return wu(a,d)})),0)})};
372
+ wu=function(a,b){var c,d,e;return _.I(function(f){switch(f.a){case 1:return _.y(f,a.w.get(),2);case 2:return c=f.f,d=a.j[b],d.player=c,d.videoEl=c.getSurface().getMedia(),d.role=qu,d.state=Tf,a.trigger(new _.L(Qg)),_.D(f,3),a.o.set(b,d),a.h.preloadMedia?(d.config.autoplay&&(a.g.warn("Autoplay should not be used for preloaded streams. Force disabling autoplay (index: "+(b+")")),d.config.autoplay=!1),d.preloadPromise=c.load(d.config)):d.preloadPromise=c.preload(d.config),_.y(f,d.preloadPromise,5);case 5:d.state=
373
+ Sf;a.trigger(new _.L(Qg));_.Jh(f,0);break;case 3:e=_.H(f),7001===e.code?(a.g.info("Preload aborted (index: "+b+")"),d.state=Qf):(a.g.warn("Preload failed (index: "+b+")",e),a.trigger(new _.L(_.Ae,{detail:e})),d.state=Rf),a.trigger(new _.L(Qg)),_.C(f)}})};lu=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.g.info(Yb+b),d.classList.add(Fd)):(a.g.info(lb+b),d.classList.remove(Fd)),a.A&&a.A(d,c))};
374
+ Au=function(a){var b;return _.I(function(c){if(1==c.a)return _.y(c,a.w.destroy(),2);b=document.getElementById(a.h.anchorId);if(!b)return c["return"]();b.classList.remove(Ed);b.innerHTML="";_.C(c)})};
375
+ ku=function(a,b){var c=document.getElementById(a);if(!c)throw Error("Anchor element not found");c.classList.add(Ed);return Array.from({length:3}).map(function(){var d=document.createElement(_.r);d.classList.add("clpp-mc-playlist-video-el");var e=document.createElement(_.fe);e.classList.add("clpp-mc-playlist-item");e.appendChild(d);c.appendChild(e);return new X(d,b)})};
376
+ _.Cu=function(a){if(Bu.has(a))return Bu.get(a);if(window.ManagedMediaSource){var b=ManagedMediaSource.isTypeSupported(a);Bu.set(a,b);return b}return window.MediaSource?(b=MediaSource.isTypeSupported(a),Bu.set(a,b),b):!1};Du=function(a){this.h=a;this.f={keepOriginalTimestamps:!0,remux:!1};this.a=new muxjs.mp4.Transmuxer(this.f)};
377
+ Eu=function(a,b){var c=b.replace(/mp2t/i,"mp4");a===_.dd&&(c=c.replace(_.r,_.dd));var d=/avc1\.(66|77|100)\.(\d+)/.exec(c);if(d){var e="avc1.",f=d[1],g=Number(d[2]);e=("66"===f?e+"4200":"77"===f?e+"4d00":e+"6400")+(g>>4).toString(16);e+=(g&15).toString(16);c=c.replace(d[0],e)}return c};Fu=function(){};_.Gu=function(){};
378
+ Hu=function(a,b,c,d,e){_.pn.call(this,kb);this.l=a;this.j=b;this.h=c;this.a=d;this.o=e;this.g=new _.K(Id);_.T.empty(this.l)?this.g.warn(_.nc):this.gb(_.Xd,{licenseUrl:this.l,videoRobustness:[_.Vb,void 0],audioRobustness:[_.Ub,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.ve.bind(this)}});_.T.empty(this.j)?this.g.warn(_.Kb):this.gb(_.Vd,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.ve.bind(this)}});
379
+ _.T.empty(this.h)?this.g.warn(_.fb):_.T.empty(this.a)?this.g.warn(_.eb):this.gb(_.Sd,{licenseUrl:this.h,certificateUrl:this.a,modifiers:{licenseRequest:this.Ui.bind(this),licenseResponse:this.Vi.bind(this),certificateRequest:this.ve.bind(this),extractContentId:this.ai.bind(this)}})};Iu=function(){};Ju=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.Ee)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
380
+ Ku=function(a){a=a.target;if(a.webkitPresentationMode===vf){document.pictureInPictureElement=a;var b=new Event("enterpictureinpicture");a.dispatchEvent(b)}else document.pictureInPictureElement===a&&(document.pictureInPictureElement=null),b=new Event("leavepictureinpicture"),a.dispatchEvent(b)};Lu=function(){return this.webkitSupportsPresentationMode(vf)?(this.webkitSetPresentationMode(vf),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
381
+ Mu=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};Nu=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};Ou=function(a,b,c){return new window.TextTrackCue(a,b,c)};
382
+ Pu=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};Ru=function(a,b,c){if("input"===a)switch(this.type){case "range":a=Ad}Qu.call(this,a,b,c)};Tu=function(){this.a=Su()};Uu=function(a){return Su()-a.a};Vu=function(a){var b=new Tu;b.a=a.a;return b};Su=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};_.Wu=function(a){var b=[];a=_.w(a);for(var c=a.next();!c.done;c=a.next()){c=_.w(c.value.variants);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};
383
+ Xu=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.h=b;this.f=0};Yu=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.h),c));a.a.set(d)}a.a.set(b,a.f);a.f+=b.byteLength};_.Zu=function(a,b,c){this.h=a;this.j=b;this.f=c||this.h.getMedia();this.a=null};_.bv=function(){this.a=new Blob([av],{type:_.$g})};_.cv=function(a,b,c,d){this.id=a;this.f=b;this.a=c;this.h=d};_.dv=function(){this.a=[];this.f=-1;this.h=null};
384
+ _.fv=function(a,b,c,d){var e,f;return _.I(function(g){if(1==g.a)return _.D(g,2),_.y(g,ev(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.H(g);f.a(_.P);throw f;})};
385
+ ev=function(a,b,c,d){var e,f,g,h;return _.I(function(l){if(1==l.a){if(d){if(e=_.gv[d.toLowerCase()])return l["return"](e);_.Yh("Could not determine manifest type using MIME type ",d)}if(f=_.hv(a)){if(g=_.iv[f])return l["return"](g);_.Yh("Could not determine manifest type for extension ",f)}else _.Yh("Could not find extension for ",a);return d?l.F(2):_.y(l,jv(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(h=_.gv[d])return l["return"](h);_.Yh("Could not determine manifest type using MIME type",d)}throw new _.O(_.P,
386
+ 4,4E3,{url:a});})};jv=function(a,b,c){var d,e,f;return _.I(function(g){if(1==g.a)return d=_.pk(a),mk(d,c),d.type=1,d.method="HEAD",_.y(g,b.fetch(d).T,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.hv=function(a){a=(new _.sj(a)).Pa.split("/").pop().split(".");return 1===a.length?"":a.pop().toLowerCase()};kv=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.h=new Tu};
387
+ mv=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(lv(a,d),vk(c,d.byteLength,Uu(a.h)),a.h.a=Su());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 mv(a,b,c)})})};lv=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};
388
+ Ik=function(a){var b=a.uris[a.uriIndex],c=new nv,d=new Tu,e=Vu(d),f=0,g,h=new _.xk;c.open(a.method,b,!0);c.responseType="arraybuffer";c.timeout=a.timeout;c.withCredentials=a.allowCrossSiteCredentials;var l=!1,m=!1;c.onreadystatechange=function(p){p=p.target;p.readyState>=XMLHttpRequest.LOADING&&0===f&&(g=Uu(e));p.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!l&&(p=p.getResponseHeader(za),uk(a,p),l=!0)};c.onload=function(p){p=p.target;var q=(p.getAllResponseHeaders()||"").trim().split("\r\n"),t={};
389
+ q=_.w(q);for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),t[v[0].toLowerCase()]=v.slice(1).join(": ");try{var z=Uu(e);m||vk(a,p.response?p.response.length:0,z);var A=_.tk(t,p.response,p.status,b,p.responseURL,a,z,g);a.rateLimitBps?wk(a.rateLimitBps,Uu(e),a.bytesLoaded).then(function(){h.resolve(A)}):h.resolve(A)}catch(E){h.reject(E)}};c.onerror=function(p){p=p.target;if(0>=p.status)h.reject(new _.O(1,1,1002,{url:b,request:a,status:p.status}));else{var q=p.getAllResponseHeaders(),t={};if(q){q=
390
+ _.w(q.trim().split("\r\n"));for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),t[v[0].toLowerCase()]=v.slice(1).join(": ")}p=_.tk(t,p.response,p.status,b,p.responseURL,a,Uu(e),g);h.resolve(p)}};c.ontimeout=function(){h.reject(new _.O(1,1,1003,{url:b,request:a}))};c.onprogress=function(p){var q=Uu(d);d.a=Su();if(100<q||p.lengthComputable&&p.loaded===p.total)vk(a,p.loaded-f,q),f=p.loaded,m=!0};for(var n in a.headers)c.setRequestHeader(n.toLowerCase(),a.headers[n]);c.send(a.body);return{T:h,
391
+ request:a,abort:function(){c.abort();h.reject(new _.O(1,1,7001,{url:b,request:a}));return Promise.resolve()}}};ov=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.j=new Xu(a);this.length=a;this.A=b;this.f=this.a=this.h=0;this.l=null;this.o=-1;this.w=new Tu};
392
+ rv=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,Uu(a.w)),a.w.a=Su());if(f)return f=pv(a),(f=c(!0,f))?f.then(function(){return a.j.a.buffer}):Promise.resolve(a.j.a.buffer);var g=Promise.resolve();if(null!=e){Yu(a.j,e);a.a=a.h;a.f=a.j.f;a.l=new DataView(a.j.a.buffer,0,a.j.f);e=qv(a);for(f=[];e;)f.push(e),e=qv(a);if(!a.A)f.forEach(function(m){g=g.then(function(){return c(!1,m)})});else if(0<f.length){e=f[0];if(1<f.length){e=f[0];var h=f[f.length-1],
393
+ l=h.end-e.start;e={start:e.start,end:h.end,length:l,data:new DataView(a.j.a.buffer,e.start,l),count:f.length}}(f=c(!1,e))&&(g=f)}}return g.then(function(){return rv(a,b,c,d)})})};qv=function(a){if(0<=a.o&&a.f<a.o)return null;for(var b=sv(a);null!==b;){if(b.name===_.Xe){var c={start:a.h,end:b.end,length:b.end-a.h,data:new DataView(a.j.a.buffer,a.h,b.end-a.h),count:1};a.h=b.end;return c}b=sv(a)}return null};
394
+ sv=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=uv(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=uv(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.l.getUint32(a.a,!1);var f=a.l.getUint32(a.a+4,!1)}catch(g){throw new _.O(_.P,3,3E3);}if(2097151<e)throw new _.O(_.P,3,3E3);a.a+=8;c=e*Math.pow(2,32)+f}c=b+c;a.o=c;return a.f>=c?(a.a=c,{name:d,start:b,end:c}):null};
395
+ uv=function(a){var b=a.l.getUint32(a.a,!1);a.a+=4;return b};pv=function(a){var b=null;a.h!==a.f&&(b={start:a.h,end:a.f,length:a.f-a.h,data:new DataView(a.j.a.buffer,a.h,a.f-a.h),count:-1});return b};wv=function(a){_.yk.call(this,new _.xk,function(){return Promise.resolve()});this.B=a;this.h=null;this.w=this.T;this.f=-1;this.j=this.l=this.o=null;vv(this)};xv=function(a,b,c){a.o=setTimeout(b,c)};
396
+ vv=function(a){a.h=a.B.then(function(e){a.j=e.request;e.request.uriIndex=e.request.currentAttempt%e.request.uris.length;if(0<e.request.currentAttempt){-1===a.f&&(a.f=yv(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*yv(e.request.fuzzFactor,.5));a.f*=yv(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,h){a.l=h;xv(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.O(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
397
+ return e.plugin(e.request)});var b=0,c=0,d=0;return a.h.then(function(e){var f=e.request;f.currentAttempt+=1;b=f.currentAttempt;c=f.maxAttempts;d=f.uris.length;return e.T}).then(function(e){a.w.resolve(e)})["catch"](function(e){if(e instanceof _.O){var f=b<d,g=7001!==e.code,h=b<c;if((1===e.severity||f)&&g&&h)return vv(a);g&&e.a(_.P);a.w.reject(e)}else a.w.reject(e)})};yv=function(a,b){return null===a||void 0===a?b:a};
398
+ Jk=function(a){var b=new zv,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new Av,e={Rd:!1,yj:!1};b={T:Bv(a.uris[a.uriIndex],a,{body:a.body||void 0,headers:b,method:a.method,signal:d.signal,credentials:a.allowCrossSiteCredentials?"include":void 0},e),request:a,abort:function(){e.Rd||(e.Rd=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.yj=!0;d.abort()},a);b.T=b.T["finally"](function(){window.clearTimeout(f)})}return b};
399
+ Bv=function(a,b,c,d){var e,f,g,h,l,m,n,p,q,t,v,z,A,E,G,B,F;return _.I(function(M){switch(M.a){case 1:return e=Cv,f=new Tu,g=Vu(f),_.D(M,2),_.y(M,e(a,c),4);case 4:h=M.f;l=nk(h.headers);m={uri:h.url,data:null,headers:l,status:h.status,timeMs:0,responseStartMs:Uu(g),request:b};if(qk(h.status)){M.F(5);break}n=m;return _.y(M,h.arrayBuffer(),6);case 6:throw n.data=M.f,m.timeMs=Uu(f),sk(m);case 5:p=h.headers.get(za);uk(b,p);q=p?parseInt(p,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return A=
400
+ h.body.getReader(),E=new ov(q,!b.disableMergedFragments),G=function(R,la){if(d.Rd)return null;la&&la.data&&(vk(b,la.data.byteLength,Uu(g)),g.a=Su());return b.onFragment&&la?b.rateLimitBps?wk(b.rateLimitBps,Uu(f),b.bytesLoaded).then(function(){return b.onFragment(la)}):b.onFragment(la):null},B=m,_.y(M,rv(E,A,G,b.onProgress),12);t=h.body.getReader();v=new kv(q);return _.y(M,mv(v,t,b),9);case 9:z=M.f;if(!b.rateLimitBps){M.F(10);break}return _.y(M,wk(b.rateLimitBps,Uu(f),z.byteLength),10);case 10:m.data=
401
+ z;M.F(8);break;case 12:B.data=M.f;case 8:if(d.Rd)throw Error("Request was aborted");m.timeMs=Uu(f);return M["return"](rk(m));case 2:F=_.H(M);if(d.Rd)throw new _.O(1,1,7001,{url:a,request:b});if(d.yj)throw new _.O(1,1,1003,{url:a,request:b});if(F&&1001===F.code)throw F;_.di("Error while fetching data:",F);throw new _.O(1,1,1002,{url:a,error:F,request:b,status:-1},F);}})};
402
+ Ek=function(a){try{var b=a.uris[a.uriIndex],c=_.Dv(b);return{T:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{T:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
403
+ _.Dv=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.di("Bad data URI, failed to parse scheme"),new _.O(_.P,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.di("Bad data URI, failed to extract encoding and MIME type"),new _.O(_.P,1,1004,{uri:a});var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"===b[b.length-1]&&(d=!0,b.pop());return{data:d?_.an(a).buffer:_.T.ib(a).buffer,contentType:c}};
404
+ _.Fv=function(a,b){var c=_.Cl(_.Dl(a),_.El(a));_.Ev[c]=b};_.Gv=function(a){a=_.Cl(_.Dl(a),_.El(a));return _.Ev[a]||null};_.Hv=function(a){a=_.Cl(_.Dl(a),_.El(a));delete _.Ev[a]};
405
+ _.Iv=function(a){a=a.getConfiguration();a=_.N.nb(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.ug?a.backgroundColor:null;this.U=typeof a.windowColor===_.ug?a.windowColor:null;this.M=typeof a.fontColor===_.ug?a.fontColor:null;this.P=typeof a.fontFamily===_.ug?a.fontFamily:null;this.I=typeof a.fontSize===_.ug?a.fontSize:null;this.B=typeof a.fontSizePercent===_.k?a.fontSizePercent:null;this.H=typeof a.edgeColor===_.ug?a.edgeColor:"rgba(0, 0, 0, 1)";this.o=null;typeof a.edgeType===
406
+ _.ug&&(this.o=a.edgeType)};_.Nv=function(a){if(!a.o)return null;var b=a.H;switch(a.o){case Jv:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case Kv:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case Lv:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case Mv:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.ff}};Ov=function(a){this.f=a;this.a=null;this.g=new _.K("clpp.text.Mp4TextParser")};
407
+ _.ew=function(a){_.Iv.call(this,a);this.l=a.getSurface().getMedia();this.f="clpp-video-"+Xv++;this.h=document.createElement(_.wg);this.j=this.w=!1;_.ur(this.l,this.f);document.head.appendChild(this.h);this.Xb()};fw=function(){};_.gw=function(){};_.sh=[];wh=typeof Object.create==_.Ee?Object.create:function(a){function b(){}b.prototype=a;return new b};
408
+ if(typeof Object.setPrototypeOf==_.Ee)hw=Object.setPrototypeOf;else{var iw;a:{var jw={Nj:!0},kw={};try{kw.__proto__=jw;iw=kw.Nj;break a}catch(a){}iw=!1}hw=iw?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
409
+ var xh=hw,Bh=typeof Object.defineProperties==_.Ee?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},zh="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;Ch.prototype.toString=function(){return this.a};var Ah=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new Ch("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
410
+ Fh.prototype.A=function(a){this.f=a};Fh.prototype["return"]=function(a){this.h={"return":a};this.a=this.j};Fh.prototype.F=function(a){this.a=a};
411
+ Sh("Promise",function(a){function b(g){this.f=0;this.l=void 0;this.a=[];var h=this.j();try{g(h.resolve,h.reject)}catch(l){h.reject(l)}}function c(){this.a=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.f=function(g){if(null==this.a){this.a=[];var h=this;this.h(function(){h.l()})}this.a.push(g)};var e=zh.setTimeout;c.prototype.h=function(g){e(g,0)};c.prototype.l=function(){for(;this.a&&this.a.length;){var g=this.a;this.a=[];for(var h=0;h<g.length;++h){var l=
412
+ g[h];g[h]=null;try{l()}catch(m){this.j(m)}}}this.a=null};c.prototype.j=function(g){this.h(function(){throw g;})};b.prototype.j=function(){function g(m){return function(n){l||(l=!0,m.call(h,n))}}var h=this,l=!1;return{resolve:g(this.C),reject:g(this.h)}};b.prototype.C=function(g){if(g===this)this.h(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.G(g);else{a:switch(typeof g){case _.gf:var h=null!=g;break a;case _.Ee:h=!0;break a;default:h=!1}h?this.B(g):this.o(g)}};
413
+ b.prototype.B=function(g){var h=void 0;try{h=g.then}catch(l){this.h(l);return}typeof h==_.Ee?this.H(h,g):this.o(g)};b.prototype.h=function(g){this.w(2,g)};b.prototype.o=function(g){this.w(1,g)};b.prototype.w=function(g,h){if(0!=this.f)throw Error("Cannot settle("+g+", "+h+"): Promise already settled in state"+this.f);this.f=g;this.l=h;this.A()};b.prototype.A=function(){if(null!=this.a){for(var g=0;g<this.a.length;++g)f.f(this.a[g]);this.a=null}};var f=new c;b.prototype.G=function(g){var h=this.j();
414
+ g.Se(h.resolve,h.reject)};b.prototype.H=function(g,h){var l=this.j();try{g.call(h,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,h){function l(q,t){return typeof q==_.Ee?function(v){try{m(q(v))}catch(z){n(z)}}:t}var m,n,p=new b(function(q,t){m=q;n=t});this.Se(l(g,m),l(h,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.Se=function(g,h){function l(){switch(m.f){case 1:g(m.l);break;case 2:h(m.l);break;default:throw Error("Unexpected state: "+
415
+ m.f);}}var m=this;null==this.a?f.f(l):this.a.push(l)};b.resolve=d;b.reject=function(g){return new b(function(h,l){l(g)})};b.race=function(g){return new b(function(h,l){for(var m=_.w(g),n=m.next();!n.done;n=m.next())d(n.value).Se(h,l)})};b.all=function(g){var h=_.w(g),l=h.next();return l.done?d([]):new b(function(m,n){function p(v){return function(z){q[v]=z;t--;0==t&&m(q)}}var q=[],t=0;do q.push(void 0),t++,d(l.value).Se(p(q.length-1),n),l=h.next();while(!l.done)})};return b});var Uh=this||self;
416
+ Uh.a=!0;_.N={Lj:20,nb:function(a){var b=_.N.R,c=_.N.Fi,d=_.N.ua;return b(a)||c(a)?a:d(a)}};_.J("clpp.utils.obj.cloneItem",_.N.nb);_.N.ua=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];c={};for(var d=0;d<b.length;d++)null!=b[d]&&(c=_.N.Mi(c,{merging:b[d]},1));return c.merging||null};_.J("clpp.utils.obj.merge",_.N.ua);_.N.Lc=function(a){for(var b in a)if(void 0!==a[b])return!0;return!1};
417
+ _.N.Mi=function(a,b,c){var d=_.N.R,e=_.N.Fi,f=_.N.Mi,g=_.N.Vb,h=_.N.Em,l=_.N.pg,m=_.N.zm,n=_.N.xd;c+=1;if(d(a)||!n(a))a={};for(var p in b)n=b[p],e(n)||d(n)||g(n)||m(n)?a[p]=n:h(n)?a[p]=n.subarray(0):n instanceof Array?a[p]=f([],n,c):!d(n)&&l(n)&&c<_.N.Lj&&(a[p]=f(a[p],n,c));return a};_.N.Fi=function(a){a=typeof a;return a===_.ug||a===_.k||a===_.nd};_.N.zm=function(a){return a instanceof Element};_.N.R=function(a){return null===a||"undefined"===typeof a};_.N.xd=function(a){return typeof a===_.gf};
418
+ _.N.Vb=function(a){return typeof a===_.Ee};_.N.ha=function(a){return typeof a===_.ug};_.N.xa=function(a){return typeof a===_.k};_.N.Ai=function(a){return typeof a===_.nd};_.N.pg=function(a){var b=_.N.xd,c=_.N.R;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.N.Em=function(a){var b=_.N.xd,c=_.N.Vb;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
419
+ _.N.qa=function(a,b,c,d){if(a===b||null===a&&null===b||void 0===a&&void 0===b)return!0;if(null===a&&null!==b||null!==a&&null===b||void 0!==a&&void 0===b||void 0===a&&void 0!==b||!_.N.xd(a)||!_.N.xd(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var h=e[g];if(_.N.R(d)||0>d.indexOf(h))if(f[h]=!0,a[h]!==b[h])return!1}if(_.N.R(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.N.R(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
420
+ _.N.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.N.Am=function(a,b,c){return a>=b&&a<=c};_.N.kh=function(a){for(var b=new Map,c=_.w(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b};_.N.lh=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};
421
+ _.N.ni=function(a,b){for(var c=b.toLowerCase(),d=_.w(Object.entries(a)),e=d.next();!e.done;e=d.next()){var f=_.w(e.value);e=f.next().value;f=f.next().value;if(e.toLowerCase()===c)return f}return null};_.N.Hi=function(a,b){for(var c in a){if(!(c in b))return!1;var d=a[c],e=b[c];if(d&&typeof d===_.gf&&e&&typeof e===_.gf){if(!_.N.Hi(d,e))return!1}else if(void 0!==d&&void 0!==e&&d!==e)return!1}return!0};
422
+ _.N.Ii=function(a,b){if(!_.N.Hi(a,b))return!1;for(var c in b){if(!(c in a))return!0;var d=a[c],e=b[c];if(!d&&e||d&&typeof d===_.gf&&e&&typeof e===_.gf&&_.N.Ii(d,e))return!0}return!1};var Zh={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.J("clpp.log.Level",Zh);var Wh=0,Vh={},lw=[];_.J("clpp.log.getLoggers",function(){return _.N.nb(Vh)});_.J("clpp.log.addInterceptor",function(a){a&&lw.push(a)});_.J("clpp.log.removeInterceptor",function(a){a&&(a=lw.indexOf(a),0<=a&&lw.splice(a,1))});_.J("clpp.log.getTagLevel",Xh);_.J("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Vh[a]});_.J("clpp.log.setTagLevel",function(a,b){a&&(_.N.ha(b)&&(b=$h(b)),Vh[a]=b)});
423
+ _.J("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.N.ha(a)&&(a=$h(a));Wh=a});_.J("clpp.log.getLogLevel",function(){return Wh});_.u=_.K.prototype;
424
+ _.u.log=function(a,b){if(window.console){if(1<arguments.length){var c=arguments[0];Array.prototype.shift.call(arguments)}else c=3;var d=Xh(this.tag);if(0<=d){if(d<c)return}else if(Wh<c)return;this.tag&&Array.prototype.unshift.call(arguments,"["+this.tag+"]");d=new Date;d.toISOString&&(d=d.toISOString().substring(11).replace("Z",""),Array.prototype.unshift.call(arguments,d));4===c?console.log.apply(console,arguments):3===c?console.info.apply(console,arguments):2===c?console.warn.apply(console,arguments):
425
+ 1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.w(lw);for(var e=d.next();!e.done;e=d.next())e=e.value,e.call(e,c,arguments)}};_.u.info=function(a){Array.prototype.unshift.call(arguments,3);this.log.apply(this,arguments)};_.u.debug=function(a){Array.prototype.unshift.call(arguments,4);this.log.apply(this,arguments)};_.u.warn=function(a){Array.prototype.unshift.call(arguments,2);this.log.apply(this,arguments)};
426
+ _.u.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.u.zl=function(a){return a?this.tag?new _.K(this.tag+"."+a):new _.K(a):this};_.J("clpp.log.Logger",_.K);_.K.prototype.createChild=_.K.prototype.zl;_.K.prototype.error=_.K.prototype.error;_.K.prototype.warn=_.K.prototype.warn;_.K.prototype.debug=_.K.prototype.debug;_.K.prototype.info=_.K.prototype.info;_.K.prototype.log=_.K.prototype.log;var ai=new _.K("clpp");_.J("clpp.log.info",_.bi);
427
+ _.J("clpp.log.debug",_.ci);_.J("clpp.log.warn",_.Yh);_.J("clpp.log.error",_.di);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.gi=new _.K("clpp.players");_.fi={};_.J("clpp.events.ERROR",_.Ae);_.J("clpp.events.LOADEDMETADATA",_.Ue);_.J("clpp.events.BUFFERING_ENDED",_.od);_.J("clpp.events.BUFFERING_STARTED",_.qd);_.J("clpp.events.STATE_CHANGED",_.rg);_.J("clpp.events.AUDIO_TRACK_CHANGED",_.kd);_.J("clpp.events.TEXT_TRACK_CHANGED",_.Cg);_.J("clpp.events.VIDEO_TRACK_CHANGED",_.bh);_.J("clpp.events.BITRATE_CHANGED",_.md);_.J("clpp.events.TRACKS_ADDED",_.Ig);_.J("clpp.events.LOAD_START",Ve);_.J("clpp.events.RELEASING",_.$f);_.J("clpp.events.RELEASED",Zf);
428
+ _.J("clpp.events.DESTROYING","destroying");_.J("clpp.events.DESTROYED","destroyed");_.J("clpp.events.VIDEO_BUFFER_CHANGED",_.ah);_.J("clpp.events.AUDIO_BUFFER_CHANGED",_.jd);_.J("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.J("clpp.events.DRM_SESSION_CREATED",pe);_.J("clpp.events.DRM_SESSION_UPDATE",_.te);_.J("clpp.events.DRM_SESSION_PERSISTED",_.se);_.J("clpp.events.DRM_RENEWAL_STARTED",oe);_.J("clpp.events.DRM_EXPIRATION_UPDATE",_.me);_.J("clpp.events.DRM_LICENSE_REQUESTED",ne);
429
+ _.J("clpp.events.AUTOPLAY_NOT_ALLOWED",_.ld);_.J("clpp.events.PLAY",_.wf);_.J("clpp.events.SEEKING",_.jg);_.J("clpp.events.SEEKED",_.ig);_.J("clpp.events.USER_SEEKING",_.Ug);_.J("clpp.events.USER_SEEKED",_.Tg);_.Pq={SEEKING:1,NO_DATA:2};_.J("clpp.events.BufferingReasons",_.Pq);_.J("clpp.events.ADS_TIMELINE_CHANGED",_.Rc);_.J("clpp.events.AD_LOADED",_.Hc);_.J("clpp.events.AD_BREAK_STARTED",_.xc);_.J("clpp.events.AD_STARTED",_.Nc);_.J("clpp.events.AD_BUFFERING",_.zc);_.J("clpp.events.AD_PROGRESS",_.Kc);
430
+ _.J("clpp.events.AD_FIRST_QUARTILE",_.Cc);_.J("clpp.events.AD_MIDPOINT",_.Ic);_.J("clpp.events.AD_THIRD_QUARTILE",_.Pc);_.J("clpp.events.AD_PAUSED",_.Jc);_.J("clpp.events.AD_RESUMED",_.Lc);_.J("clpp.events.AD_SKIPPED",_.Mc);_.J("clpp.events.AD_CLICKED",_.Ac);_.J("clpp.events.AD_IMPRESSION",_.Gc);_.J("clpp.events.AD_COMPLETED",_.Bc);_.J("clpp.events.AD_STOPPED",_.Oc);_.J("clpp.events.AD_BREAK_STOPPED",_.yc);_.J("clpp.events.AD_HLS_ASSET_LIST_REQUEST",Dc);
431
+ _.J("clpp.events.AD_HLS_ASSET_LIST_RESPONSE",Ec);_.J("clpp.events.AD_HLS_RESOLVED",Fc);_.J("clpp.events.SIMID_CREATIVE_STARTED",_.lg);_.J("clpp.events.SIMID_CREATIVE_STOPPED",_.mg);_.J("clpp.events.CASTING_STARTED",_.ud);_.J("clpp.events.CASTING_ENDED","castingended");_.J("clpp.events.CAST_STATUS_CHANGED",_.vd);_.J("clpp.events.AIRPLAY_STATUS_CHANGED",_.Uc);_.J("clpp.events.AIRPLAY_CASTING_STARTED",_.Tc);_.J("clpp.events.AIRPLAY_CASTING_ENDED",_.Sc);_.J("clpp.events.TIMELINE_CUE_ADDED",_.Dg);
432
+ _.J("clpp.events.TIMELINE_CUE_ENTER",_.Eg);_.J("clpp.events.TIMELINE_CUE_EXIT",_.Fg);_.J("clpp.events.TIMELINE_CUES_CHANGED",_.Gg);_.J("clpp.events.MPD_TYPE_CHANGED",_.df);_.J("clpp.events.LIVE_TURNED_STATIC",_.Re);_.J("clpp.events.VIMOND_RESPONSE",_.ch);_.J("clpp.events.PLAYLIST_ITEM_CHANGED",_.Mf);_.J("clpp.events.PLAYLIST_MODIFIED",_.Nf);_.J("clpp.events.SC_PLAYLIST_TIMELINE_CHANGED",_.hg);_.J("clpp.events.SC_PLAYLIST_ITEM_CHANGED",_.fg);_.J("clpp.events.SC_PLAYLIST_ENDED",_.eg);
433
+ _.J("clpp.events.SC_PLAYLIST_LIVE_TURNED_STATIC",_.gg);_.J("clpp.events.CDN_SWITCH_SUCCESS",_.wd);_.J("clpp.events.ONLINE_STATUS_CHANGED",of);_.J("clpp.events.CMSD_EVENT","cmsd-event");_.J("clpp.events.YOSPACE_SESSION_STARTED",_.rh);_.J("clpp.events.YOSPACE_SESSION_ENDED",_.qh);_.J("clpp.events.CONTENT_STEERING_CHANGE",_.Zd);_.J("clpp.events.CONTENT_STEERING_LOCATION_BAN_UPDATE",_.$d);_.ji.prototype.fa=function(a){return li(this,a,!1)};_.ji.prototype.Kb=function(a){return li(this,a,!0)};_.ji.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.mi.prototype.Xg=function(){this.stop();this.f();return this};_.mi.prototype.fa=function(a){var b=this;this.stop();this.a=(new _.ji(function(){b.f()})).fa(a);return this};_.mi.prototype.Kb=function(a){var b=this;this.stop();this.a=(new _.ji(function(){b.f()})).Kb(a);return this};_.mi.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.J("clpp.utils.Timer",_.mi);_.mi.prototype.stop=_.mi.prototype.stop;_.mi.prototype.tickEvery=_.mi.prototype.Kb;_.mi.prototype.tickAfter=_.mi.prototype.fa;
434
+ _.mi.prototype.tickNow=_.mi.prototype.Xg;_.u=oi.prototype;_.u.load=function(a){var b=this;return _.I(function(c){return b.Oc?_.y(c,si(b,function(d){return _.I(function(e){return _.y(e,d.load(a),0)})}),0):(b.Ca.warn("No main player, cannot load."),c["return"]())})};_.u.xo=function(a){this.j=a;this.Ca.info("Looping set to",a)};_.u.Qj=function(a){this.f.push(a)};
435
+ _.u.Pj=function(a){if(this.Oc)this.Ca.warn("Main player already set.");else{this.Oc=a;var b=this.Pm.bind(this),c=this.Qm.bind(this),d=this.ek.bind(this);a.on(_.rg,b);a.on(_.Hg,c);a.on(_.ze,d);this.h.push(function(){a.off(_.rg,b);a.off(_.Hg,c);a.on(_.ze,d)})}};_.u.clear=function(){this.Oc=null;this.f=[];this.h.forEach(function(a){return a()});this.h=[]};
436
+ _.u.ek=function(){var a=this;return _.I(function(b){if(!a.j)return b.F(0);a.Ca.info("Looping playback.");return _.y(b,si(a,function(c){return _.I(function(d){return 1==d.a?_.y(d,c.seek(0),2):_.y(d,c.play(),0)})}),0)})};
437
+ _.u.Pm=function(a){var b=this;this.a||(a=a.detail.currentState,a===_.Vq?(this.Ca.info("Mirroring playing."),ri(this,function(c){return _.I(function(d){return _.y(d,c.play(),0)})})):[_.Uq,_.Mq,_.Sq].includes(a)&&(this.Ca.info("Mirroring paused/buffering/error."),ri(this,function(c){var d,e;return _.I(function(f){if(1==f.a)return d=Math.round(b.Oc.getPosition())-.1,_.y(f,c.seek(d),2);if(3!=f.a)return _.y(f,ni(.2),3);e=c.getState();return e!==_.Vq&&e!==_.Mq?f.F(0):_.y(f,c.pause(),0)})})))};
438
+ _.u.Qm=function(){var a=this;this.a||ri(this,function(b){var c,d,e,f,g,h,l;return _.I(function(m){switch(m.a){case 1:if(!b.isPaused()){m.F(2);break}return _.y(m,b.play(),2);case 2:c=a.Oc.getPosition();d=b.getPosition();e=c-d;f=Math.abs(e);g=b.getPlaybackRate();h=b.getState();if(h!==_.Vq||.05>=f)return m["return"]();var n=Math.abs(e);l=Math.min(Math.max(1+(.05>=n?0:n/(1>n?6:3))*Math.sign(e),.2),5);if(!(5<=f)){m.F(4);break}b.setPlaybackRate(1);return _.y(m,b.seek(c),5);case 5:return m["return"]();case 4:if(g===
439
+ l)return 1!==l&&a.Ca.info("Delta "+e.toFixed(1)+" s."),m["return"]();1===l?a.Ca.info("Secondary caught up."):1>l?a.Ca.info("Secondary slowing down to catch up. Rate: "+(l.toFixed(1)+", delta: "+e.toFixed(1)+" s")):1<l&&a.Ca.info("Secondary speeding up to catch up. Rate: "+(l.toFixed(1)+", delta: "+e.toFixed(1)+" s"));b.setPlaybackRate(l);_.C(m)}})})};_.J(Gd,oi);oi.prototype.clear=oi.prototype.clear;oi.prototype.addMainPlayer=oi.prototype.Pj;oi.prototype.addSecondaryPlayer=oi.prototype.Qj;
440
+ oi.prototype.setLoop=oi.prototype.xo;oi.prototype.load=oi.prototype.load;_.ti.prototype.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.ti.prototype.get=function(a){return(a=this.a[a])?a.slice():[]};_.ti.prototype.remove=function(a,b){var c=this.a[a];if(!c)return!1;for(var d=!1,e=0;e<c.length;++e)c[e]===b&&(c.splice(e,1),--e,d=!0);return d};_.ti.prototype.clear=function(){this.a={}};ui.prototype.ab=function(a){try{this.hd.handleEvent?this.hd.handleEvent(a):this.hd.call(this.a,a)}catch(b){_.di("clpp","Uncaught exception in event handler for event '"+this.f+"'",b,b?b.message:null,b?b.stack:null)}};_.L.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};_.L.prototype.stopImmediatePropagation=function(){this.f=!0};_.L.prototype.stopPropagation=function(){};_.u=vi.prototype;
441
+ _.u.trigger=function(a){var b=this.a.get(a.type);if(b)for(var c=0;c<b.length&&(a.target=this.f,a.currentTarget=this.f,b[c].ab(a),b[c].jo&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.u.on=function(a,b,c){this.a.push(a,new ui(a,b,c||this.f));return b};_.u.one=function(a,b,c){this.a.push(a,new ui(a,b,c||this.f,!0));return b};_.u.off=function(a,b){var c=this.a.get(a),d=!1;if(c)for(var e=0;e<c.length;e++)c[e].hd===b&&(d=this.a.remove(a,c[e])||d);return d};_.u.clear=function(){this.a.clear()};_.wi.prototype.release=function(){_.zi(this)};_.wi.prototype.on=function(a,b,c,d){a=new Ai(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.wi.prototype.one=function(a,b,c){function d(f){e.off(a,b,d);return c(f)}var e=this;this.on(a,b,d)};_.wi.prototype.off=function(a,b,c){for(var d=this.a.get(b)||[],e=0;e<d.length;++e){var f=d[e];f.target!==a||c!==f.a&&c||(yi(f),this.a.remove(b,f))}};Bi.prototype.release=function(){this.j.release();this.a=new Set;this.f.clear();null!=this.h&&(clearInterval(this.h),this.h=null)};Bi.prototype.destroy=function(){var a=this;return _.I(function(b){a.release();_.C(b)})};Bi.prototype.getTimelineCues=function(){return Array.from(this.a.values()).sort(function(a,b){return a.startTime-b.startTime})};_.gj.prototype.qa=function(a){return this.payload===a.payload&&this.startTime===a.startTime&&this.endTime===a.endTime&&this.payloadType===a.payloadType};_.J("clpp.text.Cue",_.gj);_.gj.positionAlign={LEFT:_.Oe,RIGHT:_.Qe,CENTER:_.yd,AUTO:"auto"};_.aj="text";_.gj.payloadType={TEXT:_.aj,VTT_XML:_.eh,TTML_XML:_.Kg};_.bj=_.yd;_.mw={LEFT:_.Le,RIGHT:_.dg,CENTER:_.bj,START:_.Le,END:_.dg};_.gj.textAlign=_.mw;var fj="ltr";_.gj.direction={HORIZONTAL_LEFT_TO_RIGHT:fj,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.cj="horizontal-tb";
442
+ _.gj.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.cj,VERTICAL_LEFT_TO_RIGHT:_.Xg,VERTICAL_RIGHT_TO_LEFT:_.Yg};_.dj=0;_.gj.lineInterpretation={LINE_NUMBER:_.dj,PERCENTAGE:1};_.ej=_.qg;_.nw={CENTER:_.yd,START:_.ej,END:_.ye};_.gj.lineAlign=_.nw;_.J("clpp.text.CueRegion",_.jj);_.hj=1;_.jj.units={PX:0,PERCENTAGE:_.hj,LINES:2};var ij="";_.jj.scrollMode={NONE:ij,UP:"up"};_.jj.displayAlign={BEFORE:"flex-end",CENTER:_.yd,AFTER:"flex-start"};
443
+ _.jj.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Pd,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};kj.prototype.destroy=function(){this.a.release();this.j=!1;this.l=this.a=this.h=this.f=null;return Promise.resolve()};kj.prototype.start=function(a){var b=this;this.j?this.g.warn("Already started. Ignoring request..."):(this.j=!0,this.h=a,this.f=this.h.textTracks,this.a.on(this.f,_.Qc,function(c){return lj(b,c)}),this.a.on(this.f,Ad,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.kg&&(e.mode=_.Ge)}}))};
444
+ kj.prototype.o=function(a){var b=new _.gj(a.startTime,a.endTime,a.text,_.eh);if(_.N.ha(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Xg;break;case "rl":b.writingMode=_.Yg}_.N.xa(a.size)&&(b.size=a.size);if(_.N.ha(a.align))switch(a.align){case _.Le:case _.qg:b.textAlign=_.Le;break;case _.yd:b.textAlign=_.bj;break;case _.dg:case _.ye:b.textAlign=_.dg}_.N.xa(a.position)&&(b.position=a.position);if(_.N.ha(a.positionAlign))switch(a.positionAlign){case _.Oe:b.positionAlign=_.Oe;break;case _.yd:b.positionAlign=
445
+ _.yd;break;case _.Qe:b.positionAlign=_.Qe}_.N.xa(a.line)&&(b.line=a.line);if(_.N.ha(a.lineAlign))switch(a.lineAlign){case _.qg:b.lineAlign=_.ej;break;case _.yd:b.lineAlign=_.yd;break;case _.ye:b.lineAlign=_.ye}_.N.Ai(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.dj:1);return b};_.x(_.O,Error);_.O.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=mj(this.severity,this.category,this.code,this.data))};_.O.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.J("clpp.Error",_.O);_.P=2;_.O.Severity={RECOVERABLE:1,FATAL:_.P};_.O.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
446
+ _.O.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,UNKNOWN_DATA_URI_ENCODING:1005,REQUEST_MODIFIER_ERROR:1006,RESPONSE_MODIFIER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,FETCH_OR_APPEND_ERROR:2010,INVALID_MP4:2011,
426
447
  TEXT_PARSER_MISSING:2012,THUMBNAILS_FAILED_TO_LOAD:2013,THUMBNAIL_ERROR:2014,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,
427
448
  MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,MP4_PARSER_ERROR:3019,MEDIA_LOAD_ERROR:3100,INVALID_TRACK_TYPE:3101,UNKNOWN_TRACK:3102,MEDIA_DECRYPTION_ERROR:3103,PLAY_NOT_ALLOWED:3200,PAUSE_FAILED:3201,UNABLE_TO_GUESS_MANIFEST_TYPE:4E3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,
428
449
  DASH_NO_COMMON_KEY_SYSTEM:4008,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,
@@ -431,90 +452,83 @@ HLS_INVALID_VALUE:4044,HLS_DISCONTINUITY_NOT_SUPPORTED:4045,HLS_UNSUPPORTED_FEAT
431
452
  NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,REQUESTED_DRM_ENVIRONMENT_UNAVAILABLE:6015,INIT_DATA_TRANSFORM_ERROR:6016,CERTIFICATE_REQUEST_FAILED:6100,NO_CONTENT_ID:6101,SERVER_CERTIFICATE_REQUIRED:6102,EXTRACT_CONTENT_ID_MODIFIER_ERROR:6103,FAILED_TO_PERSIST_SESSION:6200,FAILED_TO_REMOVE_SESSION:6201,INVALID_SESSION_STORAGE_IMPLEMENTATION:6202,LOAD_INTERRUPTED:7E3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,CANNOT_LOAD_SOURCE:7003,MEDIA_ELEMENT_NOT_FOUND:7004,INVALID_MEDIA_ELEMENT:7005,
432
453
  INVALID_CONTAINER_ELEMENT:7006,INVALID_ARGUMENT:7007,WRONG_ORDER_OF_OPERATIONS:7008,NOT_SUPPORTED:7009,INVALID_CONFIGURATION:7100,INVALID_LICENSE:7101,NO_ELEMENT:7102,USER_ID_NOT_PROVIDED:7103,KEY_LOAD_ERROR:7104,TIZEN_INTERNAL_ERROR:7200,CAF_INTERNAL_ERROR:7300,INTERNAL_CAST_ERROR:8E3,CAST_API_NOT_READY:8001,NO_RECEIVERS_AVAILABLE:8002,ALREADY_CASTING:8003,NO_CAST_SESSION:8004,CONVIVA_SDK_NOT_LOADED:9E3,CONVIVA_INVALID_CONFIGURATION:9001,CONVIVA_RUNTIME_ERROR:9002,GL_CONTEXT_ERROR:9003,GL_SHADER_ERROR:9004,
433
454
  YOUBORA_SDK_MISSING:9100,YOUBORA_INVALID_CONFIGURATION:9101,YOUBORA_SDK_VERSION_NOT_SUPPORTED:9102,VIMOND_INVALID_CONFIGURATION:9200,VIMOND_SESSION_ERROR:9201,MUXDATA_INVALID_CONFIGURATION:9300,MUX_SDK_MISSING:9301,MUXDATA_INIT_ERROR:9302,IMA_SDK_MISSING:1E4,IMA_INVALID_CONFIGURATION:10001,IMA_UNSUPPORTED_PLATFORM:10002,AD_ERROR:10003,SIMID_CONTAINER_MISSING:10100,BROADPEAK_SDK_MISSING:11E3,BROADPEAK_SESSION_ERROR:11001,FREEWHEEL_SDK_MISSING:12E3,FREEWHEEL_INVALID_CONFIGURATION:12001,CONTENT_TRANSFORMATION_FAILED:14E3,
434
- SESSIONS_INVALID_CONFIGURATION:15E3};_.x(_.Ui,Error);var ej=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;_.t=_.Zi.prototype;_.t.Ab="";_.t.Mc="";_.t.rb="";_.t.vd=null;_.t.Ma="";_.t.Cc="";_.t.toString=function(){var a=[],b=this.Ab;b&&a.push(hj(b,Tv,!0),":");if(b=this.rb){a.push("//");var c=this.Mc;c&&a.push(hj(c,Tv,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.vd;null!=b&&a.push(":",String(b))}if(b=this.Ma)this.rb&&"/"!=b.charAt(0)&&a.push("/"),a.push(hj(b,"/"==b.charAt(0)?Uv:Vv,!0));(b=this.a.toString())&&a.push("?",b);(b=this.Cc)&&a.push("#",hj(b,Wv));return a.join("")};
435
- _.t.resolve=function(a){var b=new _.Zi(this);"data"===b.Ab&&(b=new _.Zi);var c=!!a.Ab;c?$i(b,a.Ab):c=!!a.Mc;c?b.Mc=a.Mc:c=!!a.rb;c?_.aj(b,a.rb):c=null!=a.vd;var d=a.Ma;if(c)bj(b,a.vd);else if(c=!!a.Ma){if("/"!=d.charAt(0))if(this.rb&&!this.Ma)d="/"+d;else{var e=b.Ma.lastIndexOf("/");-1!=e&&(d=b.Ma.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):
436
- ".."==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.Ma=d:c=""!==a.a.toString();c?_.cj(b,dj(a.a)):c=!!a.Cc;c&&(b.Cc=a.Cc);return b};var Tv=/[#\/\?@]/g,Vv=/[#\?:]/g,Uv=/[#\?]/g,ij=/[#\?@]/g,Wv=/#/g;_.gj.prototype.a=null;_.gj.prototype.h=null;_.gj.prototype.add=function(a,b){_.kj(this);this.f=null;var c=this.a.hasOwnProperty(a)&&this.a[a];c||(this.a[a]=c=[]);c.push(b);null!==this.h&&this.h++;return this};
437
- _.gj.prototype.toString=function(){if(this.f)return this.f;if(!this.a)return"";var a=[],b;for(b in this.a)for(var c=encodeURIComponent(b),d=this.a[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="\x3d"+encodeURIComponent(d[e]));a.push(f)}return this.f=a.join("\x26")};var lj;_.R="text";_.Uq={VIDEO:_.r,AUDIO:_.Zc,TEXT:_.R,Bo:_.Qc,IMAGE:_.Ae,Gj:_.og};_.Xv=1/15;lj={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4/,/^dts[cex]$/,/^iamf/,/^mhm[12]/],video:[/^avc/,/^hev/,/^hvc/,/^vvc/,/^vvi/,/^vp0?[89]/,/^av01/,/^dvh/,/^dva/,/^dav/]};lj[_.R]=[/^vtt$/,/^wvtt/,/^stpp/];var nj={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av0?1/],text:[/^vtt$/,/^wvtt/,/^stpp/]};_.qj={text:{mp4:Tc,m4s:Tc,m4i:Tc,cmft:Tc,vtt:_.rg,ttml:_.Wc},video:{mp4:_.Lg,m4s:_.Lg,m4i:_.Lg,m4v:_.Lg,cmfv:_.Lg,ts:_.Kg},audio:{mp4:_.cd,m4s:_.cd,m4i:_.cd,m4a:_.cd,cmfa:_.cd,ts:_.Kg,aac:_.$c,ec3:_.bd,ac3:_.ad},image:{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.sj.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};_.sj.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name===a});return b.length?b[0]:null};_.sj.prototype.hasAttribute=function(a){return null!=this.getAttribute(a)};_.wj.prototype.getPosition=function(){return this.position};_.wj.prototype.de=function(){return this.oa?this.oa-this.Ca+1:null};_.wj.prototype.f=_.eh(0);_.x(_.xj,_.wj);var Aj=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze",
438
- "cs"],["dan","da"],["deu","de"],[_.Zd,"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",
455
+ SESSIONS_INVALID_CONFIGURATION:15E3};_.x(_.nj,Error);var xj=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;_.u=_.sj.prototype;_.u.Gb="";_.u.Tc="";_.u.bb="";_.u.Cd=null;_.u.Pa="";_.u.Ic="";_.u.toString=function(){var a=[],b=this.Gb;b&&a.push(Aj(b,ow,!0),":");if(b=this.bb){a.push("//");var c=this.Tc;c&&a.push(Aj(c,ow,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Cd;null!=b&&a.push(":",String(b))}if(b=this.Pa)this.bb&&"/"!=b.charAt(0)&&a.push("/"),a.push(Aj(b,"/"==b.charAt(0)?pw:qw,!0));(b=this.a.toString())&&a.push("?",b);(b=this.Ic)&&a.push("#",Aj(b,rw));return a.join("")};
456
+ _.u.resolve=function(a){var b=new _.sj(this);"data"===b.Gb&&(b=new _.sj);var c=!!a.Gb;c?tj(b,a.Gb):c=!!a.Tc;c?b.Tc=a.Tc:c=!!a.bb;c?b.bb=a.bb:c=null!=a.Cd;var d=a.Pa;if(c)uj(b,a.Cd);else if(c=!!a.Pa){if("/"!=d.charAt(0))if(this.bb&&!this.Pa)d="/"+d;else{var e=b.Pa.lastIndexOf("/");-1!=e&&(d=b.Pa.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var h=d[g++];"."==h?e&&g==d.length&&f.push(""):
457
+ ".."==h?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(h),e=!0)}d=f.join("/")}}c?b.Pa=d:c=""!==a.a.toString();c?_.vj(b,wj(a.a)):c=!!a.Ic;c&&(b.Ic=a.Ic);return b};var ow=/[#\/\?@]/g,qw=/[#\?:]/g,pw=/[#\?]/g,Bj=/[#\?@]/g,rw=/#/g;_.zj.prototype.a=null;_.zj.prototype.h=null;
458
+ _.zj.prototype.add=function(a,b){if(!this.a&&(this.a={},this.h=0,this.f))for(var c=this.f.split("\x26"),d=0;d<c.length;d++){var e=c[d].indexOf("\x3d"),f=null;if(0<=e){var g=c[d].substring(0,e);f=c[d].substring(e+1)}else g=c[d];g=decodeURIComponent(g.replace(/\+/g," "));f=f||"";this.add(g,decodeURIComponent(f.replace(/\+/g," ")))}this.f=null;(c=this.a.hasOwnProperty(a)&&this.a[a])||(this.a[a]=c=[]);c.push(b);null!==this.h&&this.h++;return this};
459
+ _.zj.prototype.toString=function(){if(this.f)return this.f;if(!this.a)return"";var a=[],b;for(b in this.a)for(var c=encodeURIComponent(b),d=this.a[b],e=0;e<d.length;e++){var f=c;""!==d[e]&&(f+="\x3d"+encodeURIComponent(d[e]));a.push(f)}return this.f=a.join("\x26")};var Dj;_.Q="text";_.er={VIDEO:_.r,AUDIO:_.dd,TEXT:_.Q,So:_.Vc,IMAGE:_.Ie,jh:_.xg};_.sw=1/15;Dj={audio:[/^vorbis$/,/^Opus$/,/^opus$/,/^fLaC$/,/^flac$/,/^mp4a/,/^[ae]c-3$/,/^ac-4/,/^dts[cex]$/,/^iamf/,/^mhm[12]/],video:[/^avc/,/^hev/,/^hvc/,/^vvc/,/^vvi/,/^vp0?[89]/,/^av01/,/^dvh/,/^dva/,/^dav/]};Dj[_.Q]=[/^vtt$/,/^wvtt/,/^stpp/];var Fj={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av0?1/],text:[/^vtt$/,/^wvtt/,/^stpp/]};_.Ij={text:{mp4:Yc,m4s:Yc,m4i:Yc,cmft:Yc,vtt:_.Ag,ttml:_.ad},video:{mp4:_.$g,m4s:_.$g,m4f:_.$g,m4i:_.$g,m4v:_.$g,cmfv:_.$g,ts:_.Zg},audio:{mp4:_.hd,m4s:_.hd,m4f:_.hd,m4i:_.hd,m4a:_.hd,cmfa:_.hd,ts:_.Zg,aac:_.ed,ec3:_.gd,ac3:_.fd},image:{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.Kj.prototype.toString=function(){function a(d){return d.name+"\x3d"+(isNaN(Number(d.value))?'"'+d.value+'"':d.value)}var b="#"+this.name,c=this.attributes?this.attributes.map(a):[];this.value&&c.unshift(this.value);0<c.length&&(b+=":"+c.join(","));return b};_.Kj.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name===a});return b.length?b[0]:null};_.Kj.prototype.hasAttribute=function(a){return null!=this.getAttribute(a)};_.Nj.prototype.getPosition=function(){return this.position};_.Nj.prototype.he=function(){return this.pa?this.pa-this.Da+1:null};_.Nj.prototype.f=_.th(0);_.x(_.Oj,_.Nj);var Rj=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze",
460
+ "cs"],["dan","da"],["deu","de"],[_.fe,"dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice",
439
461
  "is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao",
440
462
  "mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san",
441
463
  "sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie",
442
- "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);var Ij=function Yv(a){var c;return _.Ch(Yv,function(d){1==d.a&&(c=0);if(3!=d.a)return c<a?_.y(d,c,3):d.F(0);c++;return d.F(2)})};_.J("clpp.utils.BufferUtils",Fj);Fj.toArrayBuffer=Pj;Fj.toDataView=_.Oj;Fj.toInt32Array=_.Nj;Fj.toUint32Array=Mj;Fj.toUint16Array=Lj;Fj.toUint8Array=_.Hj;Fj.equal=Jj;_.T={};_.T.sd=new _.K("clpp.utils.strings");_.T.Dj=16E3;_.T.fromCharCode=function(a){for(var b=_.T.Dj,c="",d=0;d<a.length;d+=b)c+=String.fromCharCode.apply(null,a.subarray(d,d+b));return c};_.T.ba=function(a){if(!a)return"";a=_.Hj(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(Za);return a}a=escape(_.T.fromCharCode(a));try{return decodeURIComponent(a)}catch(b){throw Error(Za);}};
443
- _.J("clpp.utils.strings.fromUtf8",_.T.ba);
444
- _.T.Dc=function(a,b,c){if(!a)return"";var d=_.T.sd;if(!c&&0!==a.byteLength%2)throw d.error("Data has an incorrect length, must be even."),Error("Data does not seem to be UTF-16 encoded!");c=_.Hj(a);if(b&&255===c[0]&&254===c[1]||254===c[0]&&255===c[1])a=c.subarray(2);a instanceof ArrayBuffer?d=a:(c=new Uint8Array(a.byteLength),c.set(_.Hj(a)),d=c.buffer);a=Math.floor(a.byteLength/2);c=new Uint16Array(a);d=new DataView(d);for(var e=0;e<a;e++)c[e]=d.getUint16(2*e,b);return _.T.fromCharCode(c)};
445
- _.T.Zd=function(a,b){if(_.N.fa(a))return a;var c="",d=!!b,e=_.Hj(a);239===e[0]&&187===e[1]&&191===e[2]?c=_.T.ba(e):254===e[0]&&255===e[1]?c=_.T.Dc(e.subarray(2),!1):255===e[0]&&254===e[1]&&(c=_.T.Dc(e.subarray(2),!0));var f=function(g,h){return g.byteLength<=h||32<=g[h]&&126>=g[h]}.bind(null,e);_.T.sd.debug("Unable to find byte-order-mark, making an educated guess.");0===e[0]&&0===e[2]?c=_.T.Dc(a,!1):0===e[1]&&0===e[3]?c=_.T.Dc(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.T.ba(a));if(c)return d&&(c=escape(c)),
446
- c;throw Error("Unable to detect text encoding");};_.J("clpp.utils.strings.fromBytesAutoDetect",_.T.Zd);_.T.cb=function(a){if("TextEncoder"in window)return(new TextEncoder).encode(a);a=encodeURIComponent(a);a=unescape(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b};_.J("clpp.utils.strings.toUtf8",_.T.cb);_.T.zf=function(a,b){for(var c=new Uint8Array(2*a.length),d=new DataView(c.buffer),e=0;e<a.length;++e)d.setUint16(2*e,a.charCodeAt(e),b);return c.buffer};
447
- _.J("clpp.utils.strings.toUtf16",_.T.zf);_.T.xd=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=Mj(e):2===c?f=Lj(e):f=_.Hj(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};_.J("clpp.utils.strings.toByteArray",_.T.xd);_.T.startsWith=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.J("clpp.utils.strings.startsWith",_.T.startsWith);
448
- _.T.endsWith=function(a,b){if(String.prototype.endsWith)return a.endsWith(b);var c=a.length-b.length,d=a.lastIndexOf(b,c);return-1!==d&&d===c};_.J("clpp.utils.strings.endsWith",_.T.endsWith);_.T.jf=function(a){return!!(a&&0<a.length)};_.T.empty=function(a){return!a||0===a.length};_.T.To=function(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()};_.T.Wo=function(a){return a.replace(/-(\w)/g,function(b,c){return c.toUpperCase()})};
449
- _.T.Pf=function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.N.isNaN(b))return"";a="bps";1E3<=Math.abs(b)&&(a="Kbps",b/=1E3);1E3<=Math.abs(b)&&(a="Mbps",b/=1E3);return b.toFixed(2).replace(/[.,]00$/,"")+a}catch(c){return""}};_.J("clpp.utils.strings.bitrateToString",_.T.Pf);
450
- _.T.yl=function(a,b){function c(h){return function(l,m){return d(h,m.length-1)}}function d(h,l){return h.length<l?d("0"+h,l):h}b=void 0===b?"%h:%mm:%ss":b;if(null===a||void 0===a)a=0;if(null===b||void 0===b)b="%h:%mm:%ss";var e=Math.floor(a/3600),f=Math.floor((a-3600*e)/60),g=Math.floor(a-3600*e-60*f);return b.replace(/(%h+)/,c(String(e))).replace(/(%m+)/,c(String(f))).replace(/(%s+)/,c(String(g)))};_.J("clpp.utils.strings.durationToString",_.T.yl);
451
- _.T.Al=function(a,b){for(var c in b)if(b[c]===a)return c;return""};_.T.fm=function(a){var b=0;if(0===a.length)return b;for(var c=0;c<a.length;c++)b=(b<<5)-b+a.charCodeAt(c),b|=0;return b};_.J("clpp.utils.strings.hashCode",_.T.fm);_.T.uo=function(a){_.T.oj.innerHTML=a;return _.T.oj.textContent};_.T.oj=document.createElement("span");_.T.Rg=function(a){a=a.replace(/<[^>]+>/gi,"");a=_.T.uo(a);return a=a.replace(/<[^>]+>/gi,"")};_.T.Ki=function(a){return a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")};_.J("clpp.utils.Uint8ArrayUtils",Qj);Qj.toStandardBase64=_.Rj;Qj.concat=Xj;Qj.equal=_.Wj;Qj.toHex=_.Vj;Qj.fromHex=_.Uj;Qj.fromBase64=_.Tj;Qj.toBase64Url=_.Sj;_.Y={Ub:function(a,b){return a.filter(function(c){return c.name===b})},tj:function(a){var b=/^[a-zA-Z0-9_-]+$/,c=new Set;a.forEach(function(d){var e=_.tj(d,"VALUE"),f=_.tj(d,"NAME"),g=_.tj(d,"IMPORT"),h=_.tj(d,"QUERYPARAM");if(1!==[f,g,h].filter(Boolean).length||f&&null==e)throw new _.P(_.Q,4,4044,{message:"Invalid tag.",text:d.toString()});d=f||g||h;if(c.has(d))throw new _.P(_.Q,4,4044,'EXT-X-DEFINE redefined variable "'+d+'".');if(!b.test(d))throw new _.P(_.Q,4,4044,'EXT-X-DEFINE invalid variable name "'+
452
- d+'".');c.add(d)})},dg:function(a,b){var c=Array.isArray(b)?b:[b];return a.filter(function(d){d=_.uj(d,_.Yb);return c.includes(d)})},od:function(a,b){return a.some(function(c){return c.name===b})},Za:function(a,b,c){c=void 0===c?{}:c;a=a.find(function(d){return d.name===b})||null;if(!a&&c.required)throw new _.P(_.Q,4,4024,{missingTag:b});return a},ki:function(a,b){return _.Y.Za(a,b,{required:!0})},Sl:function(a,b,c){c=void 0===c?0:c;return(a=_.Y.Za(a,b))?Number(a.value):c},ap:function(a,b,c){return a.filter(function(d){var e=
453
- d.getAttribute(_.Yb);d=d.getAttribute(_.cb);return e.value===b&&d.value===c})},Fn:function(a){var b=_.Y.Za(a,"EXT-X-TILES");if(!b)return{ee:1,Ae:1,durationPerTile:null};a=_.tj(b,"LAYOUT")||"1x1";b=_.tj(b,_.Ha);a=_.Dj(a);return{ee:a.ee,Ae:a.Ae,durationPerTile:b?Number(b):null}},Qd:function(a,b,c){c=void 0===c?!0:c;a=new _.Zi(a);b=new _.Zi(b);b=a.resolve(b).toString();return c?b:decodeURI(b)},xi:function(a){return/^#(?!EXT)/m.test(a)},tm:function(a,b){Array.isArray(a)||(a=[a]);a.forEach(function(c){for(var d=
454
- _.w(_.Y.xf(c)),e=d.next();!e.done;e=d.next())b(e.value,c)})},xf:function(a){var b=new Set;a.variants.forEach(function(c){c.audio&&b.add(c.audio);c.video&&b.add(c.video)});a.textStreams.forEach(function(c){return b.add(c)});a.thumbStreams.forEach(function(c){return b.add(c)});return Array.from(b)},gm:function(a){return a.some(function(b){return _.Y.od(b.Y,Na)})},Qj:function(a){return _.Y.xf(a).filter(_.Y.vi)},bj:function(a){if(_.Y.Za(a,Na))return _.gc;a=_.Y.Za(a,Ta);if(!a)return"LIVE";if(a.value===
455
- _.gc)return _.gc;if("EVENT"===a.value)return"EVENT";throw new _.P(_.Q,4,4044,"Invalid EXT-X-PLAYLIST-TYPE value: "+a.value);},Nh:function(a){a={AUDIO:_.Zc,VIDEO:_.r,SUBTITLES:_.R,"CLOSED-CAPTIONS":_.R}[a.toUpperCase()];if(!a)throw new _.P(_.Q,4,4044,"EXT-X-MEDIA tag has an invalid TYPE attribute.");return a},pl:function(a){var b=_.uj(a,_.Yb).toUpperCase();if(_.Y.Nh(b)!==_.R)return null;a=a.getAttribute("FORCED");a=!(!a||!a.value||"YES"!==a.value.toUpperCase());var c=_.og;b===_.qa&&(c=_.md);a&&(c=
456
- _.ue);return c},Zi:function(a,b,c){c=void 0===c?!1:c;var d=0,e=null;if(a){d=a.split("@");a=Number(d[0]);if(0>=a)throw new _.P(_.Q,4,4044,"Byte range length must be positive.");if(d[1]){if(d=Number(d[1]),0>d)throw new _.P(_.Q,4,4044,"Byte range start byte must not be negative.");}else{if(c)throw new _.P(_.Q,4,4044,"Invalid byte range, offset is required but missing.");if(null==b)throw new _.P(_.Q,4,4044,"Invalid byte range, cannot calculate offset based on previous byte ranges.");d=b+1}e=d+a-1}return{Ca:d,
457
- oa:e}},aj:function(a,b){var c=_.Y.Za(a,Ja);return _.Y.Zi(c?c.value:null,b)},An:function(a){a=_.Y.ki(a,"EXTINF").value.split(",");return{duration:Number(a[0]),title:a[1]||null}},cj:function(a,b){function c(f){return null==f?null:Number(f)}b=void 0===b?{}:b;var d={qh:!1,Uj:!1,Vj:null,hm:null,dj:null},e=_.Y.Za(a,Wa,{required:b.kj});if(!e)return d;d.qh="YES"===_.tj(e,"CAN-BLOCK-RELOAD");d.Uj="YES"===_.tj(e,"CAN-SKIP-DATERANGES");d.Vj=c(_.tj(e,"CAN-SKIP-UNTIL"));d.hm=c(_.tj(e,"HOLD-BACK"));d.dj=c(_.tj(e,
458
- "PART-HOLD-BACK",void 0,{required:b.kj}));return d},$i:function(a,b,c){c=void 0===c?!1:c;a=_.tj(a,"BYTERANGE");return _.Y.Zi(a,b,c)},Dn:function(a){var b=_.Y.Ub(a,"EXT-X-MEDIA"),c=_.Y.Ub(a,_.Xa);a=_.Y.Ub(a,"EXT-X-IMAGE-STREAM-INF");return{td:{Oj:_.Y.dg(b,["AUDIO",_.fc]),closedCaptions:_.Y.dg(b,_.qa),mo:_.Y.dg(b,_.Qb)},Be:c,ig:a}},rl:function(a,b){var c=_.Y.aj(a.Y,null);return new _.xj(0,0,0,function(){return[a.a]},c.Ca,c.oa,0,b)},fg:function(a,b){if(null==a)return null;var c=Object.assign({},a);null==
459
- c.iv&&(c.iv=Xj(new Uint8Array(12),new Uint8Array([b>>24&255,b>>16&255,b>>8&255,b&255])));return c},Zl:function(a){var b=a.S;a=b[0].startTime;b=b[b.length-1].endTime;return{nc:a,df:b,duration:b-a}},Wl:function(a){var b=Infinity,c=Infinity;_.Y.Qj(a).forEach(function(d){d=_.Y.Zl(d);b=Math.min(b,d.nc);c=Math.min(c,d.duration)});return{nc:b,duration:c}},vi:function(a){return a.type===_.Zc||a.type===_.r},Bl:function(a){return a.filter(_.Y.vi)},Ul:function(a){return a.map(function(b){return _.Y.Wl(b).duration}).reduce(function(b,
460
- c){return b+c},0)},Ol:function(a,b){return a&&b?_.gq(a.drmInfos,b.drmInfos)?_.fq(a.drmInfos,b.drmInfos):null:a?a.drmInfos:b?b.drmInfos:null},tl:function(a,b){return(b?b.Zb():"")+" - "+(a?a.Zb():"")},Ph:function(a){return(a.video?a.video.uc:"")+" - "+(a.audio?a.audio.uc:"")},Cn:function(a,b,c,d){if(b===_.gc)return{delay:0,ze:0};b=_.Y.Za(a,Ra);if(c&&b)return c=Number(_.uj(b,"PART-TARGET")),null!=d?{delay:d,ze:c}:{delay:_.Y.cj(a,{kj:!0}).dj,ze:c};a=_.Y.ki(a,Ya);a=Number(a.value);return null!=d?{delay:d,
461
- ze:a}:{delay:3*a,ze:a}},Re:function(a,b){return a+":"+b},qo:function(a){var b=_.Y.Re,c=new Map;a.forEach(function(d){var e=b(d.a(),d.f());c.has(e)?(e=c.get(e),e.includes(d)||e.push(d)):c.set(e,[d])});return c},fi:function(a){return _.yj(a||_.xg)},wn:function(a){var b=new Map;a=_.w(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=_.tj(c,_.ob);d=_.Y.fi(d);var e=_.uj(c,_.cb);c=_.uj(c,"INSTREAM-ID");b.has(e)||b.set(e,new Map);b.get(e).set(c,d)}return b},xl:function(a){return a.filter(function(b){return"mp4a.40.34"!==
462
- b})},Gn:function(a){if(!a.hasAttribute("FRAME-RATE")&&!a.hasAttribute(_.Ob))return null;var b=_.tj(a,"FRAME-RATE");a=_.tj(a,_.Ob);var c=_.w(a?a.split("x"):[null,null]);a=c.next().value;c=c.next().value;return{frameRate:Bj(b),width:Bj(a),height:Bj(c)}},sm:function(a){return"EXT-X-MEDIA"!==a.name?!0:_.tj(a,_.Yb)===_.Qb},xn:function(a,b,c,d){var e=_.tj(a,"ID"),f=_.tj(a,"START-DATE");if(null===e||null===f)return _.Y.g.warn("Invalid EXT-X-DATERANGE missing mandatory ID or START-DATE attribute, ignoring the EXT-X-DATERANGE tag.",
463
- a),null;b=d?c-b:-b;var g=new Date(f);f=g.getTime()/1E3+b;e={id:e,startTime:f,startDate:g};c=Bj(_.tj(a,_.Ha));void 0!==c&&0<=c&&(e.duration=c);d=Bj(_.tj(a,"PLANNED-DURATION"));void 0!==d&&0<=d&&(e.plannedDuration=d);var h=_.tj(a,"CLASS");null!==h&&(e.schemeIdUri=h);var l=_.tj(a,"END-DATE");l=l?new Date(l):null;null!==l&&l.getTime()>=g.getTime()&&(e.endDate=l);g=_.Y.vn(a)||{};var m=_.tj(a,"CUE");m&&(g.CUE=m.split(","));if(h===Md){h=_.Y.Bn(a);if(null===h)return _.Y.g.warn("Invalid interstitial attributes, ignoring the EXT-X-DATERANGE tag.",
464
- a),null;g=Object.assign(g,h)}_.N.Fc(g)&&(e.customAttributes=g);e.endTime=l?l.getTime()/1E3+b:c?f+c:d?f+d:f;e.type=_.wi;return e},vn:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.w(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c.name.trim().startsWith("X-")&&(a[c.name]=c.value);return _.N.Fc(a)?a:null},Bn:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.w(b);for(var c=b.next();!c.done;c=b.next())switch(c=c.value,c.name){case nc:a[nc]=c.value;break;case mc:a[mc]=
465
- c.value;break;case pc:a[pc]=Bj(c.value);break;case oc:a[oc]=Bj(c.value);break;case "X-SNAP":a["X-SNAP"]=c.value.split(",");break;case "X-RESTRICT":a["X-RESTRICT"]=c.value.split(",")}return a[nc]&&a[mc]||!a[nc]&&!a[mc]?(_.Y.g.warn("Invalid EXT-X-DATERANGE Interstitial attributes X-ASSET-URI, X-ASSET-LIST"),null):_.N.Fc(a)?a:null},Zh:function(a,b){if(!a)return null;var c=a.uc;return b.find(function(d){return d.Zb()===c})||null}};_.Y.g=new _.K("clpp.hls.Utils");_.Zv=new Set([_.Ma,Na,"EXT-X-I-FRAMES-ONLY",_.Qa,Ra,Ta,Wa,Ya]);_.$v=new Set(["EXTINF",Ja,_.La,_.Oa,_.Pa,_.Va]);_.aw=new Set(["EXT-X-PART",_.Ua]);_.bw=new Set([_.Ka]);var bk=[403,401];_.J("clpp.net.DEFAULT_FATAL_STATUS_CODES",bk);_.J("clpp.net.makeRequest",_.gk);_.fk=6;_.J("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.fk,CONTENT_STEERING:7});_.ok.prototype.resolve=function(){};_.ok.prototype.reject=function(){};_.pk.prototype.abort=function(){this.a=!0;return this.A()};_.tk.prototype.destroy=function(){for(var a=[],b=_.w(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.T["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.t=_.Bk.prototype;_.t.ho=function(a){0<a?_.Jh("Rate limit set to "+a+"bps"):_.Jh("Rate limit disabled");this.l=a};_.t.release=function(){return this.o.destroy()};_.t.destroy=function(){this.w=!0;this.f=[];this.h=[];return this.o.destroy()};_.t.Nf=function(a){this.f.push(a)};_.t.Yc=function(a){this.h.push(a)};_.t.Jg=function(a){this.f=this.f.filter(function(b){return b!==a})};_.t.ue=function(a){this.h=this.h.filter(function(b){return b!==a})};
466
- _.t.fetch=function(a){var b=this;if(this.w)return new $u(Promise.reject(new _.P(1,1,7001,{url:a.uris[a.uriIndex],request:a})));this.l&&0<this.l&&(a.rateLimitBps=this.l);for(var c=[],d=_.w(this.f),e=d.next();!e.done;e=d.next())c.push(e.value);if(a.requestModifiers)for(d=_.w(a.requestModifiers),e=d.next();!e.done;e=d.next())c.push(e.value);a.requestModifiers=c;Fk(this,a);c=[];d=_.w(this.h);for(e=d.next();!e.done;e=d.next())c.push(e.value);if(a.responseModifiers)for(d=_.w(a.responseModifiers),e=d.next();!e.done;e=
467
- d.next())c.push(e.value);a.responseModifiers=c;d=c=new _.ok;try{var f={},g=_.w(a.requestModifiers);for(e=g.next();!e.done;f={Gf:f.Gf},e=g.next())f.Gf=e.value,d=d.then(function(n){return function(p){if(h.a)throw new _.P(_.Q,1,7001,p?{url:p.uris[p.uriIndex],request:p}:null);return n.Gf(p)||p}}(f))["catch"](function(n){if(n instanceof _.P)throw n;throw new _.P(_.Q,1,1006,null,n);});d=d.then(function(n){return{request:n,plugin:Gk(b,n)}});var h=new $u(d);g={};var l=_.w(a.responseModifiers);for(e=l.next();!e.done;g=
468
- {Fe:g.Fe},e=l.next())g.Fe=e.value,h.then(function(n){return function(p){function q(){if(h.a)throw new _.P(_.Q,1,7001,p?{url:p.request.uris[p.request.uriIndex],request:p.request}:null);}q();var u=n.Fe(p)||p;q();return u}}(g))["catch"](function(n){return function(p){if(p instanceof _.P&&p.data&&p.data.response){var q=n.Fe(p.data.response);if(q&&q.then)return q.then(function(){return Promise.reject(p)})}return Promise.reject(p)}}(g))["catch"](function(n){if(n instanceof _.P)throw n;throw new _.P(_.Q,
469
- 1,1007,null,n);});l={};var m=_.w(this.j);for(e=m.next();!e.done;l={Hf:l.Hf},e=m.next())l.Hf=e.value,h["catch"](function(n){return function(p){p instanceof _.P&&p.data&&p.data.response||n.Hf({uri:a.uris[a.uriIndex],data:(new Uint8Array(0)).buffer,status:-1,timeMs:0,headers:{},request:a});return Promise.reject(p)}}(l))["catch"](function(n){if(n instanceof _.P)throw n;throw new _.P(_.Q,1,1007,null,n);});_.uk(this.o,h);c.resolve(a);return h}catch(n){return new $u(Promise.reject(n))}};
470
- _.J("clpp.net.NetworkEngine",_.Bk);_.Bk.prototype.fetch=_.Bk.prototype.fetch;_.Bk.prototype.removeResponseModifier=_.Bk.prototype.ue;_.Bk.prototype.removeRequestModifier=_.Bk.prototype.Jg;_.Bk.prototype.addResponseModifier=_.Bk.prototype.Yc;_.Bk.prototype.addRequestModifier=_.Bk.prototype.Nf;_.Bk.prototype.setRateLimit=_.Bk.prototype.ho;var Lk;_.Hk.prototype.pa=function(a){return this.type===a.type&&this.channelsCount===a.channelsCount&&this.frameRate===a.frameRate&&this.trickPlay===a.trickPlay&&this.kind===a.kind&&this.label===a.label&&this.language===a.language&&this.mimeType===a.mimeType&&Ei(this.roles,a.roles)&&Ei(this.accessibility,a.accessibility,Pk)};_.Hk.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.J("clpp.Track",_.Hk);
471
- _.Hk.prototype.toString=_.Hk.prototype.toString;_.J("clpp.Rendition",_.Qk);_.Nk=1;_.Kk=_.r;_.Jk=_.Zc;_.U="text";Lk=_.Se;_.cw={VIDEO:_.Kk,AUDIO:_.Jk,TEXT:_.U,METADATA:Lk};_.Hk.Type=_.cw;_.J("clpp.utils.url.queryString",_.Tk);Wk.prototype.h=function(a,b){var c=this,d,e,f,g,h,l,m;return _.I(function(n){switch(n.a){case 1:return d=null,_.C(n,2),_.y(n,bl(c,a),4);case 4:d=n.f;_.uh(n,3);break;case 2:return e=_.E(n),c.g.warn("Failed to fetch playlist in order metadata from HLS playlist.",e.message),n["return"](Promise.resolve({}));case 3:f={};_.C(n,5);if(!b.enableHlsVideoTrackInfo){n.F(7);break}return _.y(n,Zk(c,d,a),8);case 8:g=n.f,f.renditions=g.renditions,f.mimeType=g.mimeType;case 7:_.uh(n,6);break;case 5:h=_.E(n),c.g.warn("Failed to parse video metadata from HLS playlist.",
472
- h.message);case 6:return _.C(n,9),_.y(n,al(d),11);case 11:l=n.f;f.td=l;_.uh(n,10);break;case 9:m=_.E(n),c.g.warn("Failed to parse metadata from HLS playlist.",m.message);case 10:return n["return"](f)}})};_.il=[];_.t=_.ll.prototype;_.t.Sf=function(){return!0};_.t.Hl=function(a){return this.getVideoTracks().find(function(b){return _.N.pa(b,a,a&&Object.keys(a))})};_.t.Dl=function(a){return this.getAudioTracks().find(function(b){return _.N.pa(b,a,a&&Object.keys(a))})};_.t.Fl=function(a){return this.la().find(function(b){return _.N.pa(b,a,a&&Object.keys(a))})};_.t.Gl=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.N.pa(b,a,a&&Object.keys(a))})};
473
- _.t.Cl=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.N.pa(b,a,a&&Object.keys(a))})};_.t.El=function(a){return this.la().flatMap(function(b){return b.renditions}).find(function(b){return _.N.pa(b,a,a&&Object.keys(a))})};_.J("clpp.TrackManager",_.ll);_.ll.prototype.isAbrEnabled=_.ll.prototype.wa;_.ll.prototype.addTextTrack=_.ll.prototype.addTextTrack;_.ll.prototype.findTextRendition=_.ll.prototype.El;_.ll.prototype.findAudioRendition=_.ll.prototype.Cl;
474
- _.ll.prototype.findVideoRendition=_.ll.prototype.Gl;_.ll.prototype.findTextTrack=_.ll.prototype.Fl;_.ll.prototype.findAudioTrack=_.ll.prototype.Dl;_.ll.prototype.findVideoTrack=_.ll.prototype.Hl;_.ll.prototype.setTextRendition=_.ll.prototype.Cb;_.ll.prototype.setAudioRendition=_.ll.prototype.Bb;_.ll.prototype.setVideoRendition=_.ll.prototype.ob;_.ll.prototype.setTextTrack=_.ll.prototype.Wa;_.ll.prototype.setAudioTrack=_.ll.prototype.Ha;_.ll.prototype.setVideoTrack=_.ll.prototype.Db;
475
- _.ll.prototype.getTextTrack=_.ll.prototype.Ba;_.ll.prototype.getAudioTrack=_.ll.prototype.qa;_.ll.prototype.getVideoTrack=_.ll.prototype.La;_.ll.prototype.getLoadingTextRendition=_.ll.prototype.Ib;_.ll.prototype.getLoadingAudioRendition=_.ll.prototype.Hb;_.ll.prototype.getLoadingVideoRendition=_.ll.prototype.vb;_.ll.prototype.getTextRendition=_.ll.prototype.Va;_.ll.prototype.getAudioRendition=_.ll.prototype.Ya;_.ll.prototype.getVideoRendition=_.ll.prototype.ma;_.ll.prototype.getTextTracks=_.ll.prototype.la;
476
- _.ll.prototype.getAudioTracks=_.ll.prototype.getAudioTracks;_.ll.prototype.getVideoTracks=_.ll.prototype.getVideoTracks;_.ll.prototype.canSelectVideoTracks=_.ll.prototype.Sf;var nl=new Map,ml=1,rl=2,ql=3,pl=4;_.dw=(new Map).set(_.Gd,_.Gd).set("frameRate","framerate").set("bandwidth","bitrate").set(_.Yg,_.Yg).set(_.xe,_.xe).set("channelsCount","channels");_.wl.prototype.ea=function(a){return xl(this,a,!1)};_.wl.prototype.Eb=function(a){return xl(this,a,!0)};_.wl.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.yl.prototype.Ug=function(){this.stop();this.f();return this};_.yl.prototype.ea=function(a){var b=this;this.stop();this.a=(new _.wl(function(){b.f()})).ea(a);return this};_.yl.prototype.Eb=function(a){var b=this;this.stop();this.a=(new _.wl(function(){b.f()})).Eb(a);return this};_.yl.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.J("clpp.utils.Timer",_.yl);_.yl.prototype.stop=_.yl.prototype.stop;_.yl.prototype.tickEvery=_.yl.prototype.Eb;_.yl.prototype.tickAfter=_.yl.prototype.ea;
477
- _.yl.prototype.tickNow=_.yl.prototype.Ug;_.J(Fd,Al);Al.getInfo=_.yk;
478
- var Kl=null,Jl=null,Ml=new _.K(Fd),Tl="android",Sl="ios",Yl="linux",Ul="osx",Vl="windows",Wl="tizen",Xl="webos",Rl=_.yg,am=_.yg,$l={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,
464
+ "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);_.Y={ac:function(a,b){return a.filter(function(c){return c.name===b})},zj:function(a){var b=/^[a-zA-Z0-9_-]+$/,c=new Set;a.forEach(function(d){var e=_.S(d,"VALUE"),f=_.S(d,_.xb),g=_.S(d,"IMPORT"),h=_.S(d,"QUERYPARAM");if(1!==[f,g,h].filter(Boolean).length||f&&null==e)throw new _.O(_.P,4,4044,{message:"Invalid tag.",text:d.toString()});d=f||g||h;if(c.has(d))throw new _.O(_.P,4,4044,'EXT-X-DEFINE redefined variable "'+d+'".');if(!b.test(d))throw new _.O(_.P,4,4044,'EXT-X-DEFINE invalid variable name "'+
465
+ d+'".');c.add(d)})},jg:function(a,b){var c=Array.isArray(b)?b:[b];return a.filter(function(d){d=_.Lj(d,_.ac);return c.includes(d)})},me:function(a,b){return a.some(function(c){return c.name===b})},cb:function(a,b,c){c=void 0===c?{}:c;a=a.find(function(d){return d.name===b})||null;if(!a&&c.required)throw new _.O(_.P,4,4024,{missingTag:b});return a},pi:function(a,b){return _.Y.cb(a,b,{required:!0})},dm:function(a,b,c){c=void 0===c?0:c;return(a=_.Y.cb(a,b))?Number(a.value):c},tp:function(a,b,c){return a.filter(function(d){var e=
466
+ d.getAttribute(_.ac);d=d.getAttribute(_.gb);return e.value===b&&d.value===c})},Vn:function(a){var b=_.Y.cb(a,"EXT-X-TILES");if(!b)return{je:1,Ge:1,durationPerTile:null};a=_.S(b,"LAYOUT")||"1x1";b=_.S(b,_.Ja);a=_.Uj(a);return{je:a.je,Ge:a.Ge,durationPerTile:b?Number(b):null}},od:function(a,b,c){c=void 0===c?!0:c;a=new _.sj(a);b=new _.sj(b);b=a.resolve(b).toString();return c?b:decodeURI(b)},Bi:function(a){return/^#(?!EXT)/m.test(a)},Gm:function(a,b){Array.isArray(a)||(a=[a]);a.forEach(function(c){for(var d=
467
+ _.w(_.Y.Df(c)),e=d.next();!e.done;e=d.next())b(e.value,c)})},Df:function(a){var b=new Set;a.variants.forEach(function(c){c.audio&&b.add(c.audio);c.video&&b.add(c.video)});a.textStreams.forEach(function(c){return b.add(c)});a.thumbStreams.forEach(function(c){return b.add(c)});return Array.from(b)},sm:function(a){return a.some(function(b){return _.Y.me(b.$,Ra)})},Wj:function(a){return _.Y.Df(a).filter(_.Y.zi)},hj:function(a){if(_.Y.cb(a,Ra))return _.kc;a=_.Y.cb(a,Xa);if(!a)return"LIVE";if(a.value===
468
+ _.kc)return _.kc;if("EVENT"===a.value)return"EVENT";throw new _.O(_.P,4,4044,"Invalid EXT-X-PLAYLIST-TYPE value: "+a.value);},Sh:function(a){a={AUDIO:_.dd,VIDEO:_.r,SUBTITLES:_.Q,"CLOSED-CAPTIONS":_.Q}[a.toUpperCase()];if(!a)throw new _.O(_.P,4,4044,"EXT-X-MEDIA tag has an invalid TYPE attribute.");return a},yl:function(a){var b=_.Lj(a,_.ac).toUpperCase();if(_.Y.Sh(b)!==_.Q)return null;a=a.getAttribute("FORCED");a=!(!a||!a.value||"YES"!==a.value.toUpperCase());var c=_.xg;b===_.ta&&(c=_.td);a&&(c=
469
+ _.Ce);return c},ej:function(a,b,c){c=void 0===c?!1:c;var d=0,e=null;if(a){d=a.split("@");a=Number(d[0]);if(0>=a)throw new _.O(_.P,4,4044,"Byte range length must be positive.");if(d[1]){if(d=Number(d[1]),0>d)throw new _.O(_.P,4,4044,"Byte range start byte must not be negative.");}else{if(c)throw new _.O(_.P,4,4044,"Invalid byte range, offset is required but missing.");if(null==b)throw new _.O(_.P,4,4044,"Invalid byte range, cannot calculate offset based on previous byte ranges.");d=b+1}e=d+a-1}return{Da:d,
470
+ pa:e}},gj:function(a,b){var c=_.Y.cb(a,La);return _.Y.ej(c?c.value:null,b)},Qn:function(a){a=_.Y.pi(a,"EXTINF").value.split(",");return{duration:Number(a[0]),title:a[1]||null}},ij:function(a,b){function c(f){return null==f?null:Number(f)}b=void 0===b?{}:b;var d={vh:!1,bk:!1,ck:null,tm:null,jj:null},e=_.Y.cb(a,$a,{required:b.pj});if(!e)return d;d.vh="YES"===_.S(e,"CAN-BLOCK-RELOAD");d.bk="YES"===_.S(e,"CAN-SKIP-DATERANGES");d.ck=c(_.S(e,"CAN-SKIP-UNTIL"));d.tm=c(_.S(e,"HOLD-BACK"));d.jj=c(_.S(e,"PART-HOLD-BACK",
471
+ void 0,{required:b.pj}));return d},fj:function(a,b,c){c=void 0===c?!1:c;a=_.S(a,"BYTERANGE");return _.Y.ej(a,b,c)},Un:function(a){var b=_.Y.ac(a,_.Ua),c=_.Y.ac(a,_.ab);a=_.Y.ac(a,"EXT-X-IMAGE-STREAM-INF");return{Qc:{qh:_.Y.jg(b,[_.ja,_.jc]),closedCaptions:_.Y.jg(b,_.ta),Eo:_.Y.jg(b,_.Tb)},He:c,ng:a}},Al:function(a,b){var c=_.Y.gj(a.$,null);return new _.Oj(0,0,0,function(){return[a.a]},c.Da,c.pa,0,b)},km:function(a){var b=a.S;a=b[0].startTime;b=b[b.length-1].endTime;return{rc:a,kf:b,duration:b-a}},
472
+ hm:function(a){var b=Infinity,c=Infinity;_.Y.Wj(a).forEach(function(d){d=_.Y.km(d);b=Math.min(b,d.rc);c=Math.min(c,d.duration)});return{rc:b,duration:c}},zi:function(a){return a.type===_.dd||a.type===_.r},Ll:function(a){return a.filter(_.Y.zi)},fm:function(a){return a.map(function(b){return _.Y.hm(b).duration}).reduce(function(b,c){return b+c},0)},$l:function(a,b){return a&&b?_.tq(a.drmInfos,b.drmInfos)?_.sq(a.drmInfos,b.drmInfos):null:a?a.drmInfos:b?b.drmInfos:null},Cl:function(a,b){return(b?b.ec():
473
+ "")+" - "+(a?a.ec():"")},Th:function(a){return(a.video?a.video.Ac:"")+" - "+(a.audio?a.audio.Ac:"")},Tn:function(a,b,c,d,e){if(b===_.kc)return{delay:0,Fe:0};b=_.Y.cb(a,Wa);if(c&&b)return e=Number(_.Lj(b,"PART-TARGET")),null!=d?{delay:d,Fe:e}:{delay:_.Y.ij(a,{pj:!0}).jj,Fe:e};a=_.Y.pi(a,bb);a=Number(a.value);e=e||a;return null!=d?{delay:d,Fe:e}:{delay:3*a,Fe:e}},Ye:function(a,b){return a+":"+b},Io:function(a){var b=_.Y.Ye,c=new Map;a.forEach(function(d){var e=b(d.a(),d.f());c.has(e)?(e=c.get(e),e.includes(d)||
474
+ e.push(d)):c.set(e,[d])});return c},ki:function(a){return _.Pj(a||_.Ng)},Mn:function(a){var b=new Map;a=_.w(a);for(var c=a.next();!c.done;c=a.next()){c=c.value;var d=_.S(c,_.qb);d=_.Y.ki(d);var e=_.Lj(c,_.gb);c=_.Lj(c,"INSTREAM-ID");b.has(e)||b.set(e,new Map);b.get(e).set(c,d)}return b},Gl:function(a){return a.filter(function(b){return"mp4a.40.34"!==b})},Wn:function(a){if(!a.hasAttribute("FRAME-RATE")&&!a.hasAttribute(_.Rb))return null;var b=_.S(a,"FRAME-RATE");a=_.S(a,_.Rb);var c=_.w(a?a.split("x"):
475
+ [null,null]);a=c.next().value;c=c.next().value;return{frameRate:Sj(b),width:Sj(a),height:Sj(c)}},Fm:function(a){return a.name!==_.Ua?!0:_.S(a,_.ac)===_.Tb},Nn:function(a,b,c,d){var e=_.S(a,"ID"),f=_.S(a,"START-DATE");if(null===e||null===f)return _.Y.g.warn("Invalid EXT-X-DATERANGE missing mandatory ID or START-DATE attribute, ignoring the EXT-X-DATERANGE tag.",a),null;b=d?c-b:-b;var g=new Date(f);f=g.getTime()/1E3+b;e={id:e,startTime:f,startDate:g};c=Sj(_.S(a,_.Ja));void 0!==c&&0<=c&&(e.duration=
476
+ c);d=Sj(_.S(a,"PLANNED-DURATION"));void 0!==d&&0<=d&&(e.plannedDuration=d);var h=_.S(a,"CLASS");null!==h&&(e.schemeIdUri=h);var l=_.S(a,"END-DATE");l=l?new Date(l):null;null!==l&&l.getTime()>=g.getTime()&&(e.endDate=l);g=_.Y.Ln(a)||{};var m=_.S(a,"CUE");m&&(g.CUE=m.split(","));if(h===Td){h=_.Y.Rn(a);if(null===h)return _.Y.g.warn("Invalid interstitial attributes, ignoring the EXT-X-DATERANGE tag.",a),null;g=Object.assign(g,h)}_.N.Lc(g)&&(e.customAttributes=g);e.endTime=l?l.getTime()/1E3+b:c?f+c:d?
477
+ f+d:f;e.type=_.Qi;return e},Ln:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.w(b);for(var c=b.next();!c.done;c=b.next())c=c.value,c.name.trim().startsWith("X-")&&(a[c.name]=c.value);return _.N.Lc(a)?a:null},Rn:function(a){var b=a.attributes;if(null==b)return null;a={};b=_.w(b);for(var c=b.next();!c.done;c=b.next())switch(c=c.value,c.name){case rc:a[rc]=c.value;break;case qc:a[qc]=c.value;break;case uc:a[uc]=Sj(c.value);break;case sc:a[sc]=Sj(c.value);break;case "X-SNAP":a["X-SNAP"]=
478
+ c.value.split(",");break;case tc:a[tc]=c.value.split(",")}return a[rc]&&a[qc]||!a[rc]&&!a[qc]?(_.Y.g.warn("Invalid EXT-X-DATERANGE Interstitial attributes X-ASSET-URI, X-ASSET-LIST"),null):_.N.Lc(a)?a:null},bi:function(a,b){if(!a)return null;var c=a.Ac;return b.find(function(d){return d.ec()===c})||null},gi:function(a){return(a=_.S(a,"CHANNELS"))?parseInt(a.split("/")[0],10):null}};_.Y.g=new _.K("clpp.hls.Utils");_.tw=new Set([_.Qa,Ra,"EXT-X-I-FRAMES-ONLY",_.Va,Wa,Xa,$a,bb]);_.uw=new Set(["EXTINF",La,_.Pa,_.Sa,_.Ta,_.Za]);_.vw=new Set(["EXT-X-PART",_.Ya]);_.ww=new Set([_.Oa]);_.xw=new Set([_.Na]);var ck=function yw(a){var c;return _.Rh(yw,function(d){1==d.a&&(c=0);if(3!=d.a)return c<a?_.y(d,c,3):d.F(0);c++;return d.F(2)})};_.J("clpp.utils.BufferUtils",Zj);Zj.toArrayBuffer=jk;Zj.toDataView=_.ik;Zj.toInt32Array=_.hk;Zj.toUint32Array=gk;Zj.toUint16Array=fk;Zj.toUint8Array=_.bk;Zj.equal=dk;_.T={};_.T.Ca=new _.K("clpp.utils.strings");_.T.Kj=16E3;_.T.fromCharCode=function(a){for(var b=_.T.Kj,c="",d=0;d<a.length;d+=b)c+=String.fromCharCode.apply(null,a.subarray(d,d+b));return c};_.T.ea=function(a){if(!a)return"";a=_.bk(a);239===a[0]&&187===a[1]&&191===a[2]&&(a=a.subarray(3));if("TextDecoder"in window){a=(new TextDecoder).decode(a);if(a.includes("\ufffd"))throw Error(cb);return a}a=escape(_.T.fromCharCode(a));try{return decodeURIComponent(a)}catch(b){throw Error(cb);}};
479
+ _.J("clpp.utils.strings.fromUtf8",_.T.ea);
480
+ _.T.Jc=function(a,b,c){if(!a)return"";var d=_.T.Ca;if(!c&&0!==a.byteLength%2)throw d.error("Data has an incorrect length, must be even."),Error("Data does not seem to be UTF-16 encoded!");c=_.bk(a);if(b&&255===c[0]&&254===c[1]||254===c[0]&&255===c[1])a=c.subarray(2);a instanceof ArrayBuffer?d=a:(c=new Uint8Array(a.byteLength),c.set(_.bk(a)),d=c.buffer);a=Math.floor(a.byteLength/2);c=new Uint16Array(a);d=new DataView(d);for(var e=0;e<a;e++)c[e]=d.getUint16(2*e,b);return _.T.fromCharCode(c)};
481
+ _.T.ce=function(a,b){if(_.N.ha(a))return a;var c="",d=!!b,e=_.bk(a);239===e[0]&&187===e[1]&&191===e[2]?c=_.T.ea(e):254===e[0]&&255===e[1]?c=_.T.Jc(e.subarray(2),!1):255===e[0]&&254===e[1]&&(c=_.T.Jc(e.subarray(2),!0));var f=function(g,h){return g.byteLength<=h||32<=g[h]&&126>=g[h]}.bind(null,e);_.T.Ca.debug("Unable to find byte-order-mark, making an educated guess.");0===e[0]&&0===e[2]?c=_.T.Jc(a,!1):0===e[1]&&0===e[3]?c=_.T.Jc(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.T.ea(a));if(c)return d&&(c=escape(c)),
482
+ c;throw Error("Unable to detect text encoding");};_.J("clpp.utils.strings.fromBytesAutoDetect",_.T.ce);_.T.ib=function(a){if("TextEncoder"in window)return(new TextEncoder).encode(a);a=encodeURIComponent(a);a=unescape(a);for(var b=new Uint8Array(a.length),c=0;c<a.length;++c)b[c]=a.charCodeAt(c);return b};_.J("clpp.utils.strings.toUtf8",_.T.ib);_.T.Ff=function(a,b){for(var c=new Uint8Array(2*a.length),d=new DataView(c.buffer),e=0;e<a.length;++e)d.setUint16(2*e,a.charCodeAt(e),b);return c.buffer};
483
+ _.J("clpp.utils.strings.toUtf16",_.T.Ff);_.T.Ed=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=gk(e):2===c?f=fk(e):f=_.bk(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};_.J("clpp.utils.strings.toByteArray",_.T.Ed);_.T.startsWith=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.J("clpp.utils.strings.startsWith",_.T.startsWith);
484
+ _.T.endsWith=function(a,b){if(String.prototype.endsWith)return a.endsWith(b);var c=a.length-b.length,d=a.lastIndexOf(b,c);return-1!==d&&d===c};_.J("clpp.utils.strings.endsWith",_.T.endsWith);_.T.qf=function(a){return!!(a&&0<a.length)};_.T.empty=function(a){return!a||0===a.length};_.T.lp=function(a){return a.replace(/([A-Z])/g,"-$1").toLowerCase()};_.T.op=function(a){return a.replace(/-(\w)/g,function(b,c){return c.toUpperCase()})};
485
+ _.T.Vf=function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.N.isNaN(b))return"";a="bps";1E3<=Math.abs(b)&&(a="Kbps",b/=1E3);1E3<=Math.abs(b)&&(a="Mbps",b/=1E3);return b.toFixed(2).replace(/[.,]00$/,"")+a}catch(c){return""}};_.J("clpp.utils.strings.bitrateToString",_.T.Vf);
486
+ _.T.Hl=function(a,b){function c(h){return function(l,m){return d(h,m.length-1)}}function d(h,l){return h.length<l?d("0"+h,l):h}b=void 0===b?"%h:%mm:%ss":b;if(null===a||void 0===a)a=0;if(null===b||void 0===b)b="%h:%mm:%ss";var e=Math.floor(a/3600),f=Math.floor((a-3600*e)/60),g=Math.floor(a-3600*e-60*f);return b.replace(/(%h+)/,c(String(e))).replace(/(%m+)/,c(String(f))).replace(/(%s+)/,c(String(g)))};_.J("clpp.utils.strings.durationToString",_.T.Hl);
487
+ _.T.Jl=function(a,b){for(var c in b)if(b[c]===a)return c;return""};_.T.rm=function(a){var b=0;if(0===a.length)return b;for(var c=0;c<a.length;c++)b=(b<<5)-b+a.charCodeAt(c),b|=0;return b};_.J("clpp.utils.strings.hashCode",_.T.rm);_.T.Lo=function(a){_.T.uj.innerHTML=a;return _.T.uj.textContent};_.T.uj=document.createElement("span");_.T.Ug=function(a){a=a.replace(/<[^>]+>/gi,"");a=_.T.Lo(a);return a=a.replace(/<[^>]+>/gi,"")};_.T.Pi=function(a){return a.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")};var kk=[403,401];_.J("clpp.net.DEFAULT_FATAL_STATUS_CODES",kk);_.J("clpp.net.makeRequest",_.pk);_.ok=6;_.J("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.ok,CONTENT_STEERING:7});_.xk.prototype.resolve=function(){};_.xk.prototype.reject=function(){};_.yk.prototype.abort=function(){this.a=!0;return this.A()};_.Ak.prototype.destroy=function(){for(var a=[],b=_.w(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.T["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.u=_.Kk.prototype;_.u.zo=function(a){0<a?_.Yh("Rate limit set to "+a+"bps"):_.Yh("Rate limit disabled");this.l=a};_.u.release=function(){return this.o.destroy()};_.u.destroy=function(){this.w=!0;this.f=[];this.h=[];return this.o.destroy()};_.u.Sf=function(a){this.f.push(a)};_.u.fd=function(a){this.h.push(a)};_.u.Mg=function(a){this.f=this.f.filter(function(b){return b!==a})};_.u.ze=function(a){this.h=this.h.filter(function(b){return b!==a})};
488
+ _.u.fetch=function(a){var b=this;if(this.w)return new wv(Promise.reject(new _.O(1,1,7001,{url:a.uris[a.uriIndex],request:a})));this.l&&0<this.l&&(a.rateLimitBps=this.l);for(var c=[],d=_.w(this.f),e=d.next();!e.done;e=d.next())c.push(e.value);if(a.requestModifiers)for(d=_.w(a.requestModifiers),e=d.next();!e.done;e=d.next())c.push(e.value);a.requestModifiers=c;Ok(this,a);c=[];d=_.w(this.h);for(e=d.next();!e.done;e=d.next())c.push(e.value);if(a.responseModifiers)for(d=_.w(a.responseModifiers),e=d.next();!e.done;e=
489
+ d.next())c.push(e.value);a.responseModifiers=c;d=c=new _.xk;try{var f={},g=_.w(a.requestModifiers);for(e=g.next();!e.done;f={Lf:f.Lf},e=g.next())f.Lf=e.value,d=d.then(function(n){return function(p){if(h.a)throw new _.O(_.P,1,7001,p?{url:p.uris[p.uriIndex],request:p}:null);return n.Lf(p)||p}}(f))["catch"](function(n){if(n instanceof _.O)throw n;throw new _.O(_.P,1,1006,null,n);});d=d.then(function(n){return{request:n,plugin:Pk(b,n)}});var h=new wv(d);g={};var l=_.w(a.responseModifiers);for(e=l.next();!e.done;g=
490
+ {Me:g.Me},e=l.next())g.Me=e.value,h.then(function(n){return function(p){function q(){if(h.a)throw new _.O(_.P,1,7001,p?{url:p.request.uris[p.request.uriIndex],request:p.request}:null);}q();var t=n.Me(p)||p;q();return t}}(g))["catch"](function(n){return function(p){if(p instanceof _.O&&p.data&&p.data.response){var q=n.Me(p.data.response);if(q&&q.then)return q.then(function(){return Promise.reject(p)})}return Promise.reject(p)}}(g))["catch"](function(n){if(n instanceof _.O)throw n;throw new _.O(_.P,
491
+ 1,1007,null,n);});l={};var m=_.w(this.j);for(e=m.next();!e.done;l={Mf:l.Mf},e=m.next())l.Mf=e.value,h["catch"](function(n){return function(p){p instanceof _.O&&p.data&&p.data.response||n.Mf({uri:a.uris[a.uriIndex],data:(new Uint8Array(0)).buffer,status:-1,timeMs:0,headers:{},request:a});return Promise.reject(p)}}(l))["catch"](function(n){if(n instanceof _.O)throw n;throw new _.O(_.P,1,1007,null,n);});_.Bk(this.o,h);c.resolve(a);return h}catch(n){return new wv(Promise.reject(n))}};
492
+ _.J("clpp.net.NetworkEngine",_.Kk);_.Kk.prototype.fetch=_.Kk.prototype.fetch;_.Kk.prototype.removeResponseModifier=_.Kk.prototype.ze;_.Kk.prototype.removeRequestModifier=_.Kk.prototype.Mg;_.Kk.prototype.addResponseModifier=_.Kk.prototype.fd;_.Kk.prototype.addRequestModifier=_.Kk.prototype.Sf;_.Kk.prototype.setRateLimit=_.Kk.prototype.zo;var Uk;_.Qk.prototype.qa=function(a){return this.type===a.type&&this.channelsCount===a.channelsCount&&this.frameRate===a.frameRate&&this.trickPlay===a.trickPlay&&this.kind===a.kind&&this.label===a.label&&this.language===a.language&&this.mimeType===a.mimeType&&Yi(this.roles,a.roles)&&Yi(this.accessibility,a.accessibility,Yk)};_.Qk.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.J("clpp.Track",_.Qk);
493
+ _.Qk.prototype.toString=_.Qk.prototype.toString;_.J("clpp.Rendition",_.Zk);_.Wk=1;_.Tk=_.r;_.V=_.dd;_.Sk="text";Uk=_.$e;_.zw={VIDEO:_.Tk,AUDIO:_.V,TEXT:_.Sk,METADATA:Uk};_.Qk.Type=_.zw;_.J("clpp.utils.url.queryString",_.bl);fl.prototype.h=function(a,b){var c=this,d,e,f,g,h,l,m;return _.I(function(n){switch(n.a){case 1:return d=null,_.D(n,2),_.y(n,ll(c,a),4);case 4:d=n.f;_.Jh(n,3);break;case 2:return e=_.H(n),c.g.warn("Failed to fetch playlist in order metadata from HLS playlist.",e.message),n["return"](Promise.resolve({}));case 3:f={};_.D(n,5);if(!b.enableHlsVideoTrackInfo){n.F(7);break}return _.y(n,il(c,d,a),8);case 8:g=n.f,f.renditions=g.renditions,f.mimeType=g.mimeType;case 7:_.Jh(n,6);break;case 5:h=_.H(n),c.g.warn("Failed to parse video metadata from HLS playlist.",
494
+ h.message);case 6:return _.D(n,9),_.y(n,kl(d),11);case 11:l=n.f;f.Qc=l;_.Jh(n,10);break;case 9:m=_.H(n),c.g.warn("Failed to parse metadata from HLS playlist.",m.message);case 10:return n["return"](f)}})};_.rl=[];_.u=_.ul.prototype;_.u.Yf=function(){return!0};_.u.Sl=function(a){return this.getVideoTracks().find(function(b){return _.N.qa(b,a,a&&Object.keys(a))})};_.u.Ol=function(a){return this.getAudioTracks().find(function(b){return _.N.qa(b,a,a&&Object.keys(a))})};_.u.Ql=function(a){return this.ma().find(function(b){return _.N.qa(b,a,a&&Object.keys(a))})};_.u.Rl=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.N.qa(b,a,a&&Object.keys(a))})};
495
+ _.u.Nl=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.N.qa(b,a,a&&Object.keys(a))})};_.u.Pl=function(a){return this.ma().flatMap(function(b){return b.renditions}).find(function(b){return _.N.qa(b,a,a&&Object.keys(a))})};_.J("clpp.TrackManager",_.ul);_.ul.prototype.isAbrEnabled=_.ul.prototype.wa;_.ul.prototype.addTextTrack=_.ul.prototype.addTextTrack;_.ul.prototype.findTextRendition=_.ul.prototype.Pl;_.ul.prototype.findAudioRendition=_.ul.prototype.Nl;
496
+ _.ul.prototype.findVideoRendition=_.ul.prototype.Rl;_.ul.prototype.findTextTrack=_.ul.prototype.Ql;_.ul.prototype.findAudioTrack=_.ul.prototype.Ol;_.ul.prototype.findVideoTrack=_.ul.prototype.Sl;_.ul.prototype.setTextRendition=_.ul.prototype.Ib;_.ul.prototype.setAudioRendition=_.ul.prototype.Hb;_.ul.prototype.setVideoRendition=_.ul.prototype.ub;_.ul.prototype.setTextTrack=_.ul.prototype.$a;_.ul.prototype.setAudioTrack=_.ul.prototype.Ka;_.ul.prototype.setVideoTrack=_.ul.prototype.Jb;
497
+ _.ul.prototype.getTextTrack=_.ul.prototype.Ba;_.ul.prototype.getAudioTrack=_.ul.prototype.ra;_.ul.prototype.getVideoTrack=_.ul.prototype.Na;_.ul.prototype.getLoadingTextRendition=_.ul.prototype.Ob;_.ul.prototype.getLoadingAudioRendition=_.ul.prototype.Nb;_.ul.prototype.getLoadingVideoRendition=_.ul.prototype.Bb;_.ul.prototype.getTextRendition=_.ul.prototype.Za;_.ul.prototype.getAudioRendition=_.ul.prototype.Va;_.ul.prototype.getVideoRendition=_.ul.prototype.na;_.ul.prototype.getTextTracks=_.ul.prototype.ma;
498
+ _.ul.prototype.getAudioTracks=_.ul.prototype.getAudioTracks;_.ul.prototype.getVideoTracks=_.ul.prototype.getVideoTracks;_.ul.prototype.canSelectVideoTracks=_.ul.prototype.Yf;var wl=new Map,vl=1,Al=2,zl=3,yl=4;_.Aw=(new Map).set(_.Od,_.Od).set("frameRate","framerate").set("bandwidth","bitrate").set(_.mh,_.mh).set(_.Fe,_.Fe).set("channelsCount","channels");_.J(Nd,Fl);Fl.getInfo=_.Hk;
499
+ var Pl=null,Ol=null,Rl=new _.K(Nd),Yl="android",Xl="ios",cm="linux",Zl="osx",$l="windows",am="tizen",bm="webos",Wl=_.Pg,fm=_.Pg,em={windows:{os_version:/windows\s+?nt\s([\d.]+)/i,ie:/windows\s+?nt.+?trident\/[\d.]+.*rv:([\d.]+)/i,edge:/windows\s+?nt.+?edge?\/([\d.]+)/i,chrome:/windows\s+?nt.+?chrome\/([\d.]+)/i,firefox:/windows\s+?nt.+?firefox\/([\d.]+)/i,opera:/windows\s+?nt.+?opr\/([\d.]+)/i},osx:{os_version:/macintosh.+?([\d._]+)/i,safari:/macintosh.+?version\/([\d._]+).+?safari/i,edge:/macintosh.+?edge?\/([\d._]+)/i,
479
500
  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,
480
501
  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},
481
- 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}};_.x(bm,_.ll);_.t=bm.prototype;_.t.Sf=function(){return!_.Gl()};
482
- _.t.yg=function(a,b){var c=this,d,e,f,g,h,l,m,n,p,q,u,v,z,A,H,G,D,F;return _.I(function(M){if(1==M.a){if(!b)return c.g.warn(xb),M["return"]();d=b.track;if(!d)return c.g.warn(Ab),M["return"]();e=a===_.Jk;f=a===_.Kk;g=a===_.U;h=e||f;l=b.target;if(m=c.h.find(function(O){return pm(O,d,a)}))return c.g.warn("Track from event already exists",d,m),M["return"]();n=Ok(a,d);p=tm(d);if(g){if(d.kind===_.Se)return M["return"]();void 0!==d.id?q=c.o[d.id]:(u=Object.values(c.o),q=u.find(function(O){return pm(n,O,
483
- a)}));n.kind&&"captions"===n.kind&&(n.mimeType=_.Rc);q&&(n.src=q.url,n.mimeType=q.mimeType)}else if(m=c.h.find(function(O){return O.type===a&&_.N.pa(O,n,["kind","label","language"])}))return m.id=d.id,p&&(c.g.debug(Ub+a+" track active"),c.a.set(a,m)),c.g.debug("Track from event seems to already exists, flipped native track to",d),M["return"]();_.C(M,2);v=new _.Qk(n.id,n);n.renditions.push(v);c.h.push(n);z=c.m.getConfiguration().safari;return fm(c,a,z)?_.y(M,im(c,n,z),5):gm(c,a,z)?_.y(M,jm(c,n,z),
484
- 5):M.F(5)}if(2!=M.a)return c.g.debug(a+" Track added",n),c.m.trigger(new _.L(_.ew)),A=mm(c,a).length,H=!(!l||!l.length),G=l&&l.length||0,D=function(){c.g.debug(Ub+a+" track active. Native track active: "+(p+". Number of tracks: ")+A,d);c.a.set(a,n)},p?D():1===A&&h&&(f?D():H&&1!==G||D()),_.uh(M,0);F=_.E(M);c.g.error("Error while converting track data",F);_.B(M)})};
485
- _.t.Ag=function(a,b){if(b){var c=b.track;if(!c)this.g.warn(Ab);else if(a===_.U&&c.kind!==_.Se){var d=this.h.find(function(e){return pm(e,c,a)});d&&(this.h.splice(this.h.indexOf(d),1),(this.a.get(a)||null)===d&&(this.a.set(a,null),vm(this)),this.g.debug(a+" Track removed, id: ",d.id))}}else this.g.warn(xb)};
486
- _.t.zg=function(a,b){this.g.debug(a+" Track changed",b);a===_.U&&vm(this);var c=lm(this,a);if(c)for(var d={Sc:0};d.Sc<c.length;d={Sc:d.Sc},++d.Sc)if(tm(c[d.Sc])){if(d=this.h.find(function(e){return function(f){return pm(f,c[e.Sc],a)}}(d)))this.a.set(a,d),this.g.debug("Track change detected, id:",d.id),d===this.l.get(a)&&this.l.set(a,null),a===_.Jk?this.m.trigger(new _.L(_.qm)):a===_.U&&this.m.trigger(new _.L(_.rm));break}};_.t.initialize=function(a){this.m=a;this.j=new Wk(a.getNetworkEngine())};
487
- _.t.load=function(){this.A=!1;var a=km(this,_.U);a&&(this.f.on(a,_.Lc,this.J),this.f.on(a,Sf,this.L),this.f.on(a,td,this.K));if(a=km(this,_.Jk))this.f.on(a,_.Lc,this.G),this.f.on(a,Sf,this.I),this.f.on(a,td,this.H);if(a=km(this,_.Kk))this.f.on(a,_.Lc,this.M),this.f.on(a,Sf,this.U),this.f.on(a,td,this.P);this.f.one(this.m,ld,this.Uk.bind(this))};_.t.release=function(){this.A=!0;this.h=[];this.o={};this.a.clear();this.l.clear();this.f.release()};_.t.destroy=function(){this.release();this.m=null};
488
- _.t.getVideoTracks=function(){return mm(this,_.Kk)};_.t.getAudioTracks=function(){return mm(this,_.Jk)};_.t.la=function(){return mm(this,_.U)};_.t.ma=function(){var a=this,b=this.a.get(_.Kk)||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.Ya=function(){return nm(this,_.Jk)};_.t.Va=function(){return nm(this,_.U)};_.t.vb=function(){return om(this,_.Kk)};
489
- _.t.Hb=function(){return om(this,_.Jk)};_.t.Ib=function(){return om(this,_.U)};_.t.La=function(){return this.a.get(_.Kk)||null};_.t.qa=function(){return this.a.get(_.Jk)||null};_.t.Ba=function(){return this.a.get(_.U)||null};_.t.Db=function(a){sm(this,_.Kk,a)};_.t.Ha=function(a){sm(this,_.Jk,a)};_.t.Wa=function(a){sm(this,_.U,a)};_.t.ob=function(a){sm(this,_.Kk,a&&a.track)};_.t.Bb=function(a){sm(this,_.Jk,a&&a.track)};_.t.Cb=function(a){sm(this,_.U,a&&a.track)};
490
- _.t.addTextTrack=function(a){var b=this,c;return _.I(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.B++,b.o[c]=a,cm(b,a,c),d.F(0)):_.y(d,dm(b,a),0)})};_.t.wa=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};
491
- _.t.Uk=function(){var a=this,b,c,d;return _.I(function(e){if(1==e.a){b=a.m.getConfiguration();um(a,_.Jk,b.preferredAudioLanguage);c=lm(a,_.U);if(c.some(function(f){return tm(f)}))return e.F(2);d=km(a,_.U);return _.y(e,new Promise(function(f){a.f.one(d,td,f);(new _.yl(f)).ea(1)}),2)}if(a.A)return e["return"]();um(a,_.U,b.preferredTextLanguage);_.B(e)})};bm.prototype.isAbrEnabled=bm.prototype.wa;bm.prototype.addTextTrack=bm.prototype.addTextTrack;bm.prototype.setTextRendition=bm.prototype.Cb;
492
- bm.prototype.setAudioRendition=bm.prototype.Bb;bm.prototype.setVideoRendition=bm.prototype.ob;bm.prototype.setTextTrack=bm.prototype.Wa;bm.prototype.setAudioTrack=bm.prototype.Ha;bm.prototype.setVideoTrack=bm.prototype.Db;bm.prototype.getTextTrack=bm.prototype.Ba;bm.prototype.getAudioTrack=bm.prototype.qa;bm.prototype.getVideoTrack=bm.prototype.La;bm.prototype.getLoadingTextRendition=bm.prototype.Ib;bm.prototype.getLoadingAudioRendition=bm.prototype.Hb;bm.prototype.getLoadingVideoRendition=bm.prototype.vb;
493
- bm.prototype.getTextRendition=bm.prototype.Va;bm.prototype.getAudioRendition=bm.prototype.Ya;bm.prototype.getVideoRendition=bm.prototype.ma;bm.prototype.getTextTracks=bm.prototype.la;bm.prototype.getAudioTracks=bm.prototype.getAudioTracks;bm.prototype.getVideoTracks=bm.prototype.getVideoTracks;bm.prototype.canSelectVideoTracks=bm.prototype.Sf;_.t=_.wm.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(Zb);};_.t.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(Zb);};_.t.Ra=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.ja=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
494
- _.t.Nb=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};
495
- _.t.Ea=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.ja();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};_.J("clpp.BufferInfo",_.wm);_.wm.prototype.bufferedAheadOf=_.wm.prototype.Ea;
496
- _.wm.prototype.isBuffered=_.wm.prototype.Nb;_.wm.prototype.bufferEnd=_.wm.prototype.ja;_.wm.prototype.bufferStart=_.wm.prototype.Ra;_.wm.prototype.end=_.wm.prototype.end;_.wm.prototype.start=_.wm.prototype.start;_.t=_.xm.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.Xd.on(a,b,c)};_.t.one=function(a,b,c){return this.Xd.one(a,b,c)};_.t.off=function(a,b){return this.Xd.off(a,b)};_.t.forwardEventsTo=function(a){a&&(0<=this.Ud.indexOf(a)||this.Ud.push(a))};_.t.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};
497
- _.t.stopForwardingEventsTo=function(a){a&&(a=this.Ud.indexOf(a),0<=a&&this.Ud.splice(a,1))};_.t.trigger=function(a){this.Xd.trigger(a);for(var b=_.w(this.Ud),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.xm.prototype.off=_.xm.prototype.off;_.xm.prototype.one=_.xm.prototype.one;_.xm.prototype.on=_.xm.prototype.on;_.xm.prototype.removeEventListener=_.xm.prototype.removeEventListener;_.xm.prototype.addEventListener=_.xm.prototype.addEventListener;_.J("clpp.events.ERROR",_.se);_.J("clpp.events.LOADEDMETADATA",_.Me);_.J("clpp.events.BUFFERING_ENDED",_.id);_.J("clpp.events.BUFFERING_STARTED",_.jd);_.J("clpp.events.STATE_CHANGED",_.ig);_.qm="audiotrackchanged";_.J("clpp.events.AUDIO_TRACK_CHANGED",_.qm);_.rm="texttrackchanged";_.J("clpp.events.TEXT_TRACK_CHANGED",_.rm);_.J("clpp.events.VIDEO_TRACK_CHANGED",_.Ng);_.J("clpp.events.BITRATE_CHANGED",_.gd);_.ew="tracksadded";_.J("clpp.events.TRACKS_ADDED",_.ew);_.J("clpp.events.LOAD_START",Ne);
498
- _.J("clpp.events.RELEASING",_.Rf);_.J("clpp.events.RELEASED",Qf);_.J("clpp.events.DESTROYING","destroying");_.J("clpp.events.DESTROYED","destroyed");_.J("clpp.events.VIDEO_BUFFER_CHANGED",_.Mg);_.J("clpp.events.AUDIO_BUFFER_CHANGED",_.ed);_.J("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.J("clpp.events.DRM_SESSION_CREATED",ie);_.J("clpp.events.DRM_SESSION_UPDATE",_.ke);_.J("clpp.events.DRM_SESSION_PERSISTED",_.je);_.J("clpp.events.DRM_RENEWAL_STARTED",he);
499
- _.J("clpp.events.DRM_EXPIRATION_UPDATE",_.fe);_.J("clpp.events.DRM_LICENSE_REQUESTED",ge);_.J("clpp.events.AUTOPLAY_NOT_ALLOWED",_.fd);_.J("clpp.events.PLAY",_.of);_.J("clpp.events.SEEKING",_.ag);_.J("clpp.events.SEEKED",_.$f);_.J("clpp.events.USER_SEEKING",_.Dg);_.J("clpp.events.USER_SEEKED",_.Cg);_.Cq={SEEKING:1,NO_DATA:2};_.J("clpp.events.BufferingReasons",_.Cq);_.J("clpp.events.ADS_TIMELINE_CHANGED",_.Mc);_.J("clpp.events.AD_LOADED",_.Cc);_.J("clpp.events.AD_BREAK_STARTED",_.qc);
500
- _.J("clpp.events.AD_STARTED",_.Ic);_.J("clpp.events.AD_BUFFERING",_.uc);_.J("clpp.events.AD_PROGRESS",_.Fc);_.J("clpp.events.AD_FIRST_QUARTILE",_.xc);_.J("clpp.events.AD_MIDPOINT",_.Dc);_.J("clpp.events.AD_THIRD_QUARTILE",_.Kc);_.J("clpp.events.AD_PAUSED",_.Ec);_.J("clpp.events.AD_RESUMED",_.Gc);_.J("clpp.events.AD_SKIPPED",_.Hc);_.J("clpp.events.AD_CLICKED",_.vc);_.J("clpp.events.AD_IMPRESSION",_.Bc);_.J("clpp.events.AD_COMPLETED",_.wc);_.J("clpp.events.AD_STOPPED",_.Jc);
501
- _.J("clpp.events.AD_BREAK_STOPPED",_.sc);_.J("clpp.events.AD_HLS_ASSET_LIST_REQUEST",yc);_.J("clpp.events.AD_HLS_ASSET_LIST_RESPONSE",zc);_.J("clpp.events.AD_HLS_RESOLVED",Ac);_.J("clpp.events.SIMID_CREATIVE_STARTED",_.cg);_.J("clpp.events.SIMID_CREATIVE_STOPPED",_.dg);_.J("clpp.events.CASTING_STARTED",_.nd);_.J("clpp.events.CASTING_ENDED","castingended");_.J("clpp.events.CAST_STATUS_CHANGED",_.od);_.J("clpp.events.AIRPLAY_STATUS_CHANGED",_.Pc);_.J("clpp.events.AIRPLAY_CASTING_STARTED",_.Oc);
502
- _.J("clpp.events.AIRPLAY_CASTING_ENDED",_.Nc);_.qi="timeline-cue-added";_.J("clpp.events.TIMELINE_CUE_ADDED",_.qi);_.li="timeline-cue-enter";_.J("clpp.events.TIMELINE_CUE_ENTER",_.li);_.mi="timeline-cue-exit";_.J("clpp.events.TIMELINE_CUE_EXIT",_.mi);_.ki="timeline-cues-changed";_.J("clpp.events.TIMELINE_CUES_CHANGED",_.ki);_.J("clpp.events.MPD_TYPE_CHANGED",_.We);_.J("clpp.events.LIVE_TURNED_STATIC",_.Ie);_.J("clpp.events.VIMOND_RESPONSE",_.Og);_.J("clpp.events.PLAYLIST_ITEM_CHANGED",_.Af);
503
- _.J("clpp.events.PLAYLIST_MODIFIED",_.Bf);_.J("clpp.events.SC_PLAYLIST_TIMELINE_CHANGED",_.Zf);_.J("clpp.events.SC_PLAYLIST_ITEM_CHANGED",_.Xf);_.J("clpp.events.SC_PLAYLIST_ENDED",_.Wf);_.J("clpp.events.SC_PLAYLIST_LIVE_TURNED_STATIC",_.Yf);_.J("clpp.events.CDN_SWITCH_SUCCESS",_.pd);_.J("clpp.events.ONLINE_STATUS_CHANGED",ff);_.J("clpp.events.CMSD_EVENT","cmsd-event");_.J("clpp.events.YOSPACE_SESSION_STARTED",_.ch);_.J("clpp.events.YOSPACE_SESSION_ENDED",_.bh);
504
- _.J("clpp.events.CONTENT_STEERING_CHANGE",_.Sd);_.J("clpp.events.CONTENT_STEERING_LOCATION_BAN_UPDATE",_.Td);var ym=["play() failed because the user didn't interact","The play method is not allowed by the user agent","The request is not allowed by the user agent or the platform"];_.J("clpp.version",_.ia);_.J("clpp.name",_.va);_.hm="application/x-mpegurl";_.J("clpp.Type",{DASH:_.Sc,HLS:_.hm,SMOOTH_STREAMING:_.Xc,MP4:_.Lg,MP3:"audio/mp3"});_.xi="scte35";_.wi="hls-daterange";_.J("clpp.TimelineCueType",{SCTE35:_.xi,DASH_CALLBACK:_.Xe,HLS_DATERANGE:_.wi,UNKNOWN:_.yg});_.J("clpp.SpeedUpMode",{DECODER:_.Wd,SEEK:"seek"});_.J("clpp.CodecSwitchingStrategy",{PREVENT:_.Lf,SMOOTH:_.fg});_.J("clpp.utils.PlayerConfiguration",Am);Am.create=_.Gm;var fw=["abort",kd,ld,ne,"emptied",pe,_.re,_.se,"interruptbegin","interruptend",_.Ke,_.Me,Ne,"mozaudioavailable",_.kf,_.of,_.zf,_.Nf,_.Pf,_.$f,_.ag,gg,"suspend",_.tg,"volumechange",_.Rg,_.Sg,_.Uf,Xg,Wg,Ug,Vg];_.x(_.Im,_.xm);_.t=_.Im.prototype;_.t.init=function(a,b){this.configuration=this.Ja=b;this.C=a;this.log.info("Initializing Player surface");var c=this.C.getMedia();this.log.info("Attaching media element listeners");for(var d=_.w(fw),e=d.next();!e.done;e=d.next())e=e.value,this.M.on(c,e,this.yj,e!==_.se);this.Hd||(this.Hd=this.Qh());this.Hd.initialize(this);this.C.showMediaElement()};_.t.release=function(){this.U&&(this.U.destroy(),this.U=null);return Promise.resolve()};
505
- _.t.destroy=function(){this.M.release();return this.Hg.release()};_.t.canPlay=function(a,b){return _.Rh[this.namespace()].canPlay(a,b)};_.t.getTimeline=function(){return null};_.t.setupPlaylist=function(){return Promise.reject(_.Cb)};_.t.appendLoad=function(){return Promise.reject(_.Cb)};_.t.seekWith=function(){return Promise.reject(_.Cb)};_.t.detach=function(){return Promise.resolve()};_.t.setSeekInterceptor=function(){};_.t.setPlaybackSessionId=function(){};
506
- _.t.play=function(){var a=this;if(!this.aa)return Promise.reject("No sources specified yet. You need to load content before calling play.");var b=this.C.getMedia().play();return Promise.resolve(b)["catch"](function(c){a.log.info("Caught play promise exception",c);var d={name:c.name||"",message:c.message||"",stack:c.stack||""};zm(d)?(a.trigger(new _.L(_.fd)),a.log.warn(_.ma)):d.name===Db&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
507
- _.t.pause=function(){var a=this;return this.aa?new Promise(function(b,c){var d=a.getState();if(d!==_.zq&&d!==_.Bq&&d!==_.Iq&&d!==_.Hq)c(new _.P(_.Q,7,3201,"The player state does not allow pause."));else if(a.C.getMedia().pause(),a.getState()===_.Iq)a.M.one(a,_.ig,function(){b()});else b()}):Promise.reject(new _.P(_.Q,7,3201,"No sources specified yet. You need to load content before calling pause."))};_.t.isPaused=function(){return this.C.getMedia().paused};_.t.isEnded=function(){return this.C.getMedia().ended};
508
- _.t.getConfiguration=function(){return this.configuration};_.t.setDrmCustomDataModifier=function(a){this.kd=a};_.t.setCdnErrorCallback=function(a){this.Uc=a};_.t.md=function(){return this.kd};_.t.getSurface=function(){return this.C};_.t.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.wm(b?b.buffered:void 0,a)};_.t.getPosition=function(){return this.getMediaPosition()};
509
- _.t.getMediaPosition=function(){var a=this.C.getMedia();if(a)return a.currentTime;this.log.warn("No media element available, can not report current time!");return 0};
510
- _.t.seek=function(a){var b=this,c=this.getMediaPosition();if(void 0===a||null===a||typeof a!==_.k||a===c)return Promise.resolve();var d=this.C.getMedia();if(!d)return this.log.warn("No media element available, can not set current time!"),Promise.reject();var e=a-c;return.1>=Math.abs(e)?(this.log.info("Skip seek. Delta "+Math.abs(e)+" \x3c 0.1"),Promise.resolve()):new Promise(function(f,g){function h(){if(d.readyState>HTMLMediaElement.HAVE_NOTHING)m();else b.M.one(d,_.Me,m)}function l(n){var p=b.getMediaPosition(),
511
- q=.1>=Math.abs(a-p),u=.25<p-a,v=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,z=n.type===_.$f,A=n.type===_.Nf,H=n.type===_.tg,G=A&&v;u=z||q&&G||H&&u;b.log.debug("Checking seeking state after "+n.type+" event. Seek completed:",u,"Current Time:",p,"Target Time:",a,"Native Event:",z,"Time reached",q,"Timeupdate:",H,"Progress:",A,"ReadyState:",v,"Progress Ready:",G);u?(b.Kg=!1,b.me=!1,b.M.off(d,_.$f,l),b.M.off(d,_.tg,l),b.M.off(d,_.Nf,l),b.Xi(),b.trigger(new _.L(_.Cg)),f()):A&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
512
- d.currentTime=a)}function m(){b.trigger(new _.L(_.Dg));b.M.on(d,_.$f,l);b.M.on(d,_.tg,l);b.M.on(d,_.Nf,l);b.log.info("Seeking to "+a+". Delta "+e);b.Kg=!0;b.me=!0;d.currentTime=a}b.getState()===_.uq?(b.log.debug("Player is in IDLE state. Postpone seek."),b.M.one(b,_.ig,function(){switch(b.getState()){case _.zq:case _.Iq:case _.Hq:b.log.debug("Valid seek state reached.");h();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):h()})};
513
- _.t.getVolume=function(){var a=this.C.getMedia();if(a)return a.volume;this.log.warn("No media element available, can not report volume!");return null};_.t.setVolume=function(a){var b=this.C.getMedia();b?_.N.xa(a)?0>a||1<a?this.log.warn(ta+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(ta+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.t.isMuted=function(){return this.C.getMedia().muted};
514
- _.t.setMuted=function(a){var b=this.C.getMedia();typeof a===_.hd&&(b.muted=a)};_.t.getDuration=function(){return this.getMediaDuration()};_.t.getMediaDuration=function(){return this.aa?this.C.getMedia().duration:-1};_.t.getTrackManager=function(){return this.Hd};_.t.getPlaybackRate=function(){var a=this.C.getMedia();return a&&a.playbackRate||1};_.t.setPlaybackRate=function(a){var b=this.C.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.t.setSourceIndex=function(a){this.af=a};_.t.getSourceIndex=function(){return this.af};
515
- _.t.getLoadedSource=function(){return this.aa&&-1!==this.af?this.aa[this.af]:null};_.t.getPeriods=function(){return[]};_.t.getNetworkEngine=function(){return this.Hg};_.t.setNetworkEngine=function(a){this.Hg=a};_.t.setCmsdManager=function(a){this.Gg=a};_.t.getTextDisplayer=function(){return this.U};_.t.getTimelineCues=function(){return[]};_.t.getCueTimeline=function(){return null};_.t.resetAbr=function(){};
516
- _.t.Rn=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.tg||a.type===_.Nf)this.eh.debug(d);else{var e="";switch(a.type){case _.Pf:e="Rate: "+this.getPlaybackRate();break;case ne:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.of:case _.zf:case "suspend":case _.Rg:case gg:case _.ag:case _.$f:case _.tg:case _.Nf:case kd:case ld:b=
517
- this.getBufferInfo().Ea(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.Uf:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.eh.info(d)}a.type!==_.se&&this.trigger(new _.L(a.type,{detail:a}))};_.t.Xi=function(){};var Lm;Lm=new _.K("clpp.Components");_.Jm=new Map;_.J("clpp.install",function(a){Tm(a)});_.J("clpp.uninstall",function(a){Um(a)});Vm.prototype.release=function(){this.a=this.f=null};_.J("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.Rb,SW_SECURE_DECODE:_.Sb,HW_SECURE_CRYPTO:eb,HW_SECURE_DECODE:fb,HW_SECURE_ALL:db});_.J("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.J("clpp.drm.KeySystem",{NONE:_.Ye,CLEAR_KEY:_.hf,WIDEVINE:_.Qd,PLAYREADY:_.Od,FAIRPLAY:_.Kd,PRIMETIME:_.Jd});_.Ym={};_.J("clpp.drm.registerDrmEnvironment",_.Zm);var bn={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,
502
+ 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}};_.x(gm,_.ul);_.u=gm.prototype;_.u.Yf=function(){return!_.Ll()};
503
+ _.u.Cg=function(a,b){var c=this,d,e,f,g,h,l,m,n,p,q,t,v,z,A,E,G,B,F;return _.I(function(M){if(1==M.a){if(!b)return c.g.warn(zb),M["return"]();d=b.track;if(!d)return c.g.warn(Db),M["return"]();e=a===_.V;f=a===_.Tk;g=a===_.Sk;h=e||f;l=b.target;if(m=c.h.find(function(R){return um(R,d,a)}))return c.g.warn("Track from event already exists",d,m),M["return"]();n=Xk(a,d);p=wm(d);if(g){if(d.kind===_.$e)return M["return"]();void 0!==d.id?q=c.o[d.id]:(t=Object.values(c.o),q=t.find(function(R){return um(n,R,
504
+ a)}));n.kind&&"captions"===n.kind&&(n.mimeType=_.Wc);q&&(n.src=q.url,n.mimeType=q.mimeType)}else if(m=c.h.find(function(R){return R.type===a&&_.N.qa(R,n,["kind","label","language"])}))return m.id=d.id,p&&(c.g.debug(Xb+a+" track active"),c.a.set(a,m)),c.g.debug("Track from event seems to already exists, flipped native track to",d),M["return"]();_.D(M,2);v=new _.Zk(n.id,n);n.renditions.push(v);c.h.push(n);z=c.m.getConfiguration().safari;return km(c,a,z)?_.y(M,nm(c,n,z),5):lm(c,a,z)?_.y(M,om(c,n,z),
505
+ 5):M.F(5)}if(2!=M.a)return c.g.debug(a+" Track added",n),c.m.trigger(new _.L(_.Ig)),A=rm(c,a).length,E=!(!l||!l.length),G=l&&l.length||0,B=function(){c.g.debug(Xb+a+" track active. Native track active: "+(p+". Number of tracks: ")+A,d);c.a.set(a,n)},p?B():1===A&&h&&(f?B():E&&1!==G||B()),_.Jh(M,0);F=_.H(M);c.g.error("Error while converting track data",F);_.C(M)})};
506
+ _.u.Eg=function(a,b){if(b){var c=b.track;if(!c)this.g.warn(Db);else if(a===_.Sk&&c.kind!==_.$e){var d=this.h.find(function(e){return um(e,c,a)});d&&(this.h.splice(this.h.indexOf(d),1),(this.a.get(a)||null)===d&&(this.a.set(a,null),ym(this)),this.g.debug(a+" Track removed, id: ",d.id))}}else this.g.warn(zb)};
507
+ _.u.Dg=function(a,b){this.g.debug(a+" Track changed",b);a===_.Sk&&ym(this);var c=qm(this,a);if(c)for(var d={Zc:0};d.Zc<c.length;d={Zc:d.Zc},++d.Zc)if(wm(c[d.Zc])){if(d=this.h.find(function(e){return function(f){return um(f,c[e.Zc],a)}}(d)))this.a.set(a,d),this.g.debug("Track change detected, id:",d.id),d===this.l.get(a)&&this.l.set(a,null),a===_.V?this.m.trigger(new _.L(_.kd)):a===_.Sk&&this.m.trigger(new _.L(_.Cg));break}};_.u.initialize=function(a){this.m=a;this.j=new fl(a.getNetworkEngine())};
508
+ _.u.load=function(){this.A=!1;var a=pm(this,_.Sk);a&&(this.f.on(a,_.Qc,this.J),this.f.on(a,ag,this.L),this.f.on(a,Ad,this.K));if(a=pm(this,_.V))this.f.on(a,_.Qc,this.G),this.f.on(a,ag,this.I),this.f.on(a,Ad,this.H);if(a=pm(this,_.Tk))this.f.on(a,_.Qc,this.M),this.f.on(a,ag,this.U),this.f.on(a,Ad,this.P);this.f.one(this.m,sd,this.cl.bind(this))};_.u.release=function(){this.A=!0;this.h=[];this.o={};this.a.clear();this.l.clear();this.f.release()};_.u.destroy=function(){this.release();this.m=null};
509
+ _.u.getVideoTracks=function(){return rm(this,_.Tk)};_.u.getAudioTracks=function(){return rm(this,_.V)};_.u.ma=function(){return rm(this,_.Sk)};_.u.na=function(){var a=this,b=this.a.get(_.Tk)||null;if(!b)return null;if(this.w){var c=b.renditions.find(function(d){return d.width===a.w.width&&d.height===a.w.height});if(c)return c}return b.renditions[0]||null};_.u.Va=function(){return sm(this,_.V)};_.u.Za=function(){return sm(this,_.Sk)};_.u.Bb=function(){return tm(this,_.Tk)};
510
+ _.u.Nb=function(){return tm(this,_.V)};_.u.Ob=function(){return tm(this,_.Sk)};_.u.Na=function(){return this.a.get(_.Tk)||null};_.u.ra=function(){return this.a.get(_.V)||null};_.u.Ba=function(){return this.a.get(_.Sk)||null};_.u.Jb=function(a){vm(this,_.Tk,a)};_.u.Ka=function(a){vm(this,_.V,a)};_.u.$a=function(a){vm(this,_.Sk,a)};_.u.ub=function(a){vm(this,_.Tk,a&&a.track)};_.u.Hb=function(a){vm(this,_.V,a&&a.track)};_.u.Ib=function(a){vm(this,_.Sk,a&&a.track)};
511
+ _.u.addTextTrack=function(a){var b=this,c;return _.I(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.B++,b.o[c]=a,hm(b,a,c),d.F(0)):_.y(d,im(b,a),0)})};_.u.wa=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};
512
+ _.u.cl=function(){var a=this,b,c,d;return _.I(function(e){if(1==e.a){b=a.m.getConfiguration();xm(a,_.V,b.preferredAudioLanguage);c=qm(a,_.Sk);if(c.some(function(f){return wm(f)}))return e.F(2);d=pm(a,_.Sk);return _.y(e,new Promise(function(f){a.f.one(d,Ad,f);(new _.mi(f)).fa(1)}),2)}if(a.A)return e["return"]();xm(a,_.Sk,b.preferredTextLanguage);_.C(e)})};gm.prototype.isAbrEnabled=gm.prototype.wa;gm.prototype.addTextTrack=gm.prototype.addTextTrack;gm.prototype.setTextRendition=gm.prototype.Ib;
513
+ gm.prototype.setAudioRendition=gm.prototype.Hb;gm.prototype.setVideoRendition=gm.prototype.ub;gm.prototype.setTextTrack=gm.prototype.$a;gm.prototype.setAudioTrack=gm.prototype.Ka;gm.prototype.setVideoTrack=gm.prototype.Jb;gm.prototype.getTextTrack=gm.prototype.Ba;gm.prototype.getAudioTrack=gm.prototype.ra;gm.prototype.getVideoTrack=gm.prototype.Na;gm.prototype.getLoadingTextRendition=gm.prototype.Ob;gm.prototype.getLoadingAudioRendition=gm.prototype.Nb;gm.prototype.getLoadingVideoRendition=gm.prototype.Bb;
514
+ gm.prototype.getTextRendition=gm.prototype.Za;gm.prototype.getAudioRendition=gm.prototype.Va;gm.prototype.getVideoRendition=gm.prototype.na;gm.prototype.getTextTracks=gm.prototype.ma;gm.prototype.getAudioTracks=gm.prototype.getAudioTracks;gm.prototype.getVideoTracks=gm.prototype.getVideoTracks;gm.prototype.canSelectVideoTracks=gm.prototype.Yf;_.u=_.zm.prototype;_.u.start=function(a){if(this.f)return this.f.start(a);if(a<this.a.length)return this.a[a].start;throw Error(bc);};_.u.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(bc);};_.u.Ua=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:1===this.length&&0>this.start(0)?0:this.start(0)};_.u.la=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
515
+ _.u.Tb=function(a,b,c){b=void 0===b?!0:b;c=void 0===c?0:c;if(!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)||a>this.end(this.length-1))return!1;if(b)return c+a>=this.start(0)&&a<=this.end(this.length-1);for(b=0;b<this.length;b++)if(c+a>=this.start(b)&&a<=this.end(b))return!0;return!1};
516
+ _.u.Ga=function(a,b){b=void 0===b?!1:b;if(!this.length||1===this.length&&1E-6>this.end(0)-this.start(0))return 0;var c=0;if(b){var d=this.la();null!=d&&(c=Math.max(0,d-a))}else for(d=this.length-1;0<=d&&this.end(d)>a;--d)c+=this.end(d)-Math.max(this.start(d),a);return c};_.u.toString=function(){for(var a="",b=0;b<this.length;b++)0<b&&(a+=" "),a+=this.start(b).toFixed(3)+"-"+this.end(b).toFixed(3);return a};_.J("clpp.BufferInfo",_.zm);_.zm.prototype.bufferedAheadOf=_.zm.prototype.Ga;
517
+ _.zm.prototype.isBuffered=_.zm.prototype.Tb;_.zm.prototype.bufferEnd=_.zm.prototype.la;_.zm.prototype.bufferStart=_.zm.prototype.Ua;_.zm.prototype.end=_.zm.prototype.end;_.zm.prototype.start=_.zm.prototype.start;_.u=_.Am.prototype;_.u.addEventListener=function(a,b){this.on(a,b)};_.u.removeEventListener=function(a,b){this.off(a,b)};_.u.on=function(a,b,c){return this.ae.on(a,b,c)};_.u.one=function(a,b,c){return this.ae.one(a,b,c)};_.u.off=function(a,b){return this.ae.off(a,b)};_.u.forwardEventsTo=function(a){a&&(0<=this.Yd.indexOf(a)||this.Yd.push(a))};_.u.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};
518
+ _.u.stopForwardingEventsTo=function(a){a&&(a=this.Yd.indexOf(a),0<=a&&this.Yd.splice(a,1))};_.u.trigger=function(a){this.ae.trigger(a);for(var b=_.w(this.Yd),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.Am.prototype.off=_.Am.prototype.off;_.Am.prototype.one=_.Am.prototype.one;_.Am.prototype.on=_.Am.prototype.on;_.Am.prototype.removeEventListener=_.Am.prototype.removeEventListener;_.Am.prototype.addEventListener=_.Am.prototype.addEventListener;var Bm=["play() failed because the user didn't interact","The play method is not allowed by the user agent","The request is not allowed by the user agent or the platform"];_.J("clpp.version",_.ia);_.J("clpp.name",_.xa);_.mm="application/x-mpegurl";_.J("clpp.Type",{DASH:_.Xc,HLS:_.mm,SMOOTH_STREAMING:_.bd,MP4:_.$g,MP3:"audio/mp3"});_.Ri="scte35";_.Qi="hls-daterange";_.J("clpp.TimelineCueType",{SCTE35:_.Ri,DASH_CALLBACK:_.ef,HLS_DATERANGE:_.Qi,UNKNOWN:_.Pg});_.J("clpp.SpeedUpMode",{DECODER:_.ce,SEEK:"seek"});_.J("clpp.CodecSwitchingStrategy",{PREVENT:_.Uf,SMOOTH:_.og});_.J("clpp.utils.PlayerConfiguration",Dm);Dm.create=_.Jm;var Bw=["abort",rd,sd,ve,"emptied",xe,_.ze,_.Ae,"interruptbegin","interruptend",_.Te,_.Ue,Ve,"mozaudioavailable",_.sf,_.wf,_.Lf,_.Wf,_.Yf,_.ig,_.jg,pg,"suspend",_.Hg,"volumechange",_.fh,_.gh,_.cg,lh,kh,ih,jh];_.x(_.Lm,_.Am);_.u=_.Lm.prototype;_.u.init=function(a,b){this.configuration=this.kb=b;this.G=a;this.log.info("Initializing Player surface");var c=this.G.getMedia();this.log.info("Attaching media element listeners");for(var d=_.w(Bw),e=d.next();!e.done;e=d.next())e=e.value,this.P.on(c,e,this.Ej,e!==_.Ae);this.Od||(this.Od=this.Uh());this.Od.initialize(this);this.G.showMediaElement()};_.u.release=function(){this.U&&(this.U.destroy(),this.U=null);return Promise.resolve()};
519
+ _.u.destroy=function(){this.P.release();return this.Jg.release()};_.u.canPlay=function(a,b){return _.fi[this.namespace()].canPlay(a,b)};_.u.getTimeline=function(){return null};_.u.setupPlaylist=function(){return Promise.reject(_.Fb)};_.u.appendLoad=function(){return Promise.reject(_.Fb)};_.u.seekWith=function(){return Promise.reject(_.Fb)};_.u.detach=function(){return Promise.resolve()};_.u.setSeekInterceptor=function(){};_.u.setPlaybackSessionId=function(){};_.u.getBandwidthEstimate=function(){return null};
520
+ _.u.play=function(){var a=this;if(!this.ba)return Promise.reject("No sources specified yet. You need to load content before calling play.");var b=this.G.getMedia().play();return Promise.resolve(b)["catch"](function(c){a.log.info("Caught play promise exception",c);var d={name:c.name||"",message:c.message||"",stack:c.stack||""};Cm(d)?(a.trigger(new _.L(_.ld)),a.log.warn(_.oa)):d.name===Gb&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
521
+ _.u.pause=function(){var a=this;return this.ba?new Promise(function(b,c){var d=a.getState();if(d!==_.Mq&&d!==_.Oq&&d!==_.Vq&&d!==_.Uq)c(new _.O(_.P,7,3201,"The player state does not allow pause."));else if(a.G.getMedia().pause(),a.getState()===_.Vq)a.P.one(a,_.rg,function(){b()});else b()}):Promise.reject(new _.O(_.P,7,3201,"No sources specified yet. You need to load content before calling pause."))};_.u.isPaused=function(){return this.G.getMedia().paused};_.u.isEnded=function(){return this.G.getMedia().ended};
522
+ _.u.getConfiguration=function(){return this.configuration};_.u.setDrmCustomDataModifier=function(a){this.td=a};_.u.setCdnErrorCallback=function(a){this.cd=a};_.u.vd=function(){return this.td};_.u.getSurface=function(){return this.G};_.u.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.zm(b?b.buffered:void 0,a)};_.u.getPosition=function(){return this.getMediaPosition()};
523
+ _.u.getMediaPosition=function(){var a=this.G.getMedia();if(a)return a.currentTime;this.log.warn("No media element available, can not report current time!");return 0};
524
+ _.u.seek=function(a){var b=this,c=this.getMediaPosition();if(void 0===a||null===a||typeof a!==_.k||a===c)return Promise.resolve();var d=this.G.getMedia();if(!d)return this.log.warn("No media element available, can not set current time!"),Promise.reject();var e=a-c;return.1>=Math.abs(e)?(this.log.info("Skip seek. Delta "+Math.abs(e)+" \x3c 0.1"),Promise.resolve()):new Promise(function(f,g){function h(){if(d.readyState>HTMLMediaElement.HAVE_NOTHING)m();else b.P.one(d,_.Ue,m)}function l(n){var p=b.getMediaPosition(),
525
+ q=.1>=Math.abs(a-p),t=.25<p-a,v=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,z=n.type===_.ig,A=n.type===_.Wf,E=n.type===_.Hg,G=A&&v;t=z||q&&G||E&&t;b.log.debug("Checking seeking state after "+n.type+" event. Seek completed:",t,"Current Time:",p,"Target Time:",a,"Native Event:",z,"Time reached",q,"Timeupdate:",E,"Progress:",A,"ReadyState:",v,"Progress Ready:",G);t?(b.Ng=!1,b.re=!1,b.P.off(d,_.ig,l),b.P.off(d,_.Hg,l),b.P.off(d,_.Wf,l),b.bj(),b.trigger(new _.L(_.Tg)),f()):A&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
526
+ d.currentTime=a)}function m(){b.trigger(new _.L(_.Ug));b.P.on(d,_.ig,l);b.P.on(d,_.Hg,l);b.P.on(d,_.Wf,l);b.log.info("Seeking to "+a+". Delta "+e);b.Ng=!0;b.re=!0;d.currentTime=a}b.getState()===_.Hq?(b.log.debug("Player is in IDLE state. Postpone seek."),b.P.one(b,_.rg,function(){switch(b.getState()){case _.Mq:case _.Vq:case _.Uq:b.log.debug("Valid seek state reached.");h();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):h()})};
527
+ _.u.getVolume=function(){var a=this.G.getMedia();if(a)return a.volume;this.log.warn("No media element available, can not report volume!");return null};_.u.setVolume=function(a){var b=this.G.getMedia();b?_.N.xa(a)?0>a||1<a?this.log.warn(va+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(va+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.u.isMuted=function(){return this.G.getMedia().muted};
528
+ _.u.setMuted=function(a){var b=this.G.getMedia();typeof a===_.nd&&(b.muted=a)};_.u.getDuration=function(){return this.getMediaDuration()};_.u.getMediaDuration=function(){return this.ba?this.G.getMedia().duration:-1};_.u.getTrackManager=function(){return this.Od};_.u.getPlaybackRate=function(){var a=this.G.getMedia();return a&&a.playbackRate||1};_.u.setPlaybackRate=function(a){var b=this.G.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.u.setSourceIndex=function(a){this.gf=a};_.u.getSourceIndex=function(){return this.gf};
529
+ _.u.getLoadedSource=function(){return this.ba&&-1!==this.gf?this.ba[this.gf]:null};_.u.getPeriods=function(){return[]};_.u.getNetworkEngine=function(){return this.Jg};_.u.setNetworkEngine=function(a){this.Jg=a};_.u.setCmsdManager=function(a){this.Ig=a};_.u.getTextDisplayer=function(){return this.U};_.u.getTimelineCues=function(){return[]};_.u.getCueTimeline=function(){return null};_.u.resetAbr=function(){};
530
+ _.u.io=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.Hg||a.type===_.Wf)this.ih.debug(d);else{var e="";switch(a.type){case _.Yf:e="Rate: "+this.getPlaybackRate();break;case ve:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.wf:case _.Lf:case "suspend":case _.fh:case pg:case _.jg:case _.ig:case _.Hg:case _.Wf:case rd:case sd:b=
531
+ this.getBufferInfo().Ga(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.cg:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.ih.info(d)}a.type!==_.Ae&&this.trigger(new _.L(a.type,{detail:a}))};_.u.bj=function(){};var Om;Om=new _.K("clpp.Components");_.Mm=new Map;_.J("clpp.install",function(a){Wm(a)});_.J("clpp.uninstall",function(a){Xm(a)});_.J("clpp.utils.Uint8ArrayUtils",Ym);Ym.toStandardBase64=_.Zm;Ym.concat=_.en;Ym.equal=_.dn;Ym.toHex=_.cn;Ym.fromHex=_.bn;Ym.fromBase64=_.an;Ym.toBase64Url=_.$m;fn.prototype.release=function(){this.a=this.f=null};_.J("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.Ub,SW_SECURE_DECODE:_.Vb,HW_SECURE_CRYPTO:ib,HW_SECURE_DECODE:jb,HW_SECURE_ALL:hb});_.J("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.J("clpp.drm.KeySystem",{NONE:_.ff,CLEAR_KEY:_.qf,WIDEVINE:_.Xd,PLAYREADY:_.Vd,FAIRPLAY:_.Sd,PRIMETIME:_.Rd});_.jn={};_.J("clpp.drm.registerDrmEnvironment",_.kn);var nn={V1_STAGING:[10,191,2,8,3,18,16,40,112,52,84,192,8,246,54,24,173,231,68,61,182,196,200,24,139,231,249,144,5,34,142,2,48,130,1,10,2,130,1,1,0,181,33,18,184,208,93,2,63,204,93,149,226,194,81,193,198,73,180,23,124,216,210,190,239,53,91,176,103,67,222,102,30,61,42,188,49,130,183,153,70,213,95,220,8,223,233,84,7,129,94,154,98,116,179,34,162,199,245,224,103,187,95,10,192,122,137,212,90,234,148,178,81,111,7,91,102,239,129,29,13,38,225,185,166,184,148,242,185,133,121,98,170,23,28,79,102,99,13,62,76,
518
532
  96,39,24,137,127,94,30,249,182,170,245,173,77,186,42,126,20,23,109,241,52,161,211,24,91,90,33,138,192,90,76,65,240,129,239,255,128,163,160,64,197,11,9,187,199,64,238,220,216,241,77,103,90,145,152,15,146,202,125,220,100,106,6,173,173,81,1,247,74,14,73,140,192,31,0,83,43,172,33,120,80,189,144,94,144,146,54,86,183,223,239,239,66,72,103,103,243,62,246,40,61,79,66,84,171,114,88,147,144,190,229,88,8,241,214,104,8,13,69,216,147,194,188,162,247,77,96,160,192,208,160,153,60,239,1,96,71,3,51,76,54,56,19,148,
519
533
  134,188,157,175,36,253,103,160,127,154,217,67,2,3,1,0,1,58,18,115,116,97,103,105,110,103,46,103,111,111,103,108,101,46,99,111,109,18,128,3,152,62,48,53,38,117,244,11,167,21,252,36,155,218,229,212,172,114,73,162,102,101,33,228,54,85,115,149,41,114,31,248,128,224,170,239,197,226,123,201,128,218,234,218,191,63,195,134,208,132,160,44,130,83,120,72,204,117,63,244,151,176,17,167,218,151,120,138,0,226,170,107,132,205,125,113,192,122,72,235,246,22,2,204,165,163,243,32,48,167,41,92,48,218,145,91,145,220,24,
520
534
  185,188,149,147,184,222,139,181,15,13,237,193,41,56,184,233,224,57,205,222,24,250,130,232,27,176,50,99,15,233,85,216,90,86,108,225,84,48,11,246,212,193,189,18,105,102,53,107,40,125,101,123,24,206,99,208,239,212,95,197,38,158,151,234,177,28,181,99,229,86,67,178,111,244,159,16,156,33,1,175,202,243,91,131,47,40,143,13,157,69,150,14,37,158,133,251,93,36,219,210,207,130,118,76,93,217,191,114,126,251,233,200,97,248,105,50,31,106,222,24,144,95,77,146,249,166,218,101,54,219,132,117,135,29,22,142,135,11,178,
@@ -528,102 +542,104 @@ this.getBufferInfo().Ea(c);e="State "+this.getSurface().getMedia().readyState+"
528
542
  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,
529
543
  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,
530
544
  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,
531
- 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]};_.dn.prototype.ab=function(a,b){this.f[a]=b};_.J("clpp.drm.DrmEnvironment",_.dn);_.dn.prototype.setDrmSystem=_.dn.prototype.ab;_.en.prototype.getPosition=function(){return this.a};_.en.prototype.Sa=function(){return this.f.byteLength};_.en.prototype.seek=function(a){(0>a||a>=this.f.byteLength)&&_.fn();this.a=a};_.hn.prototype.getPosition=function(){return this.a};_.hn.prototype.Sa=function(){return this.f.byteLength};_.hn.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.kn();this.a+=a};_.hn.prototype.seek=function(a){if(0>a||a>=this.f.byteLength)throw _.kn();this.a=a};_.J("clpp.utils.dataview.DataViewReader",_.hn);_.t=_.sn.prototype;_.t.N=function(a,b){var c=wn(a);this.h[c]=gw;this.f[c]=b;return this};_.t.Z=function(a,b){var c=wn(a);this.h[c]=hw;this.f[c]=b;return this};_.t.stop=function(){this.a=!0};_.t.parse=function(a,b){var c=_.Hj(a);c=new _.hn(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.jn(c)&&!this.a;)this.rf(0,c,b)};
532
- _.t.rf=function(a,b,c){var d=b.getPosition(),e=_.nn(b),f=_.nn(b),g=!1;this.g.debug("Parsing MP4 box",_.xn(f));switch(e){case 0:e=b.Sa()-d;break;case 1:e=_.pn(b),g=!0}var h=this.f[f];if(h){var l=null,m=null;this.h[f]===hw&&(m=_.nn(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.Sa()&&(n=b.Sa());n-=b.getPosition();b=0<n?_.rn(b,n):new Uint8Array(0);b=new _.hn(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+
533
- a,headerSize:f,has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.Sa()-b.getPosition()),b.skip(a)};_.J("clpp.utils.Mp4Parser",_.sn);_.sn.typeToString=_.xn;_.sn.allData=_.vn;_.sn.sampleDescription=_.un;_.sn.children=_.tn;_.sn.prototype.parseNext=_.sn.prototype.rf;_.sn.prototype.parse=_.sn.prototype.parse;_.sn.prototype.stop=_.sn.prototype.stop;_.sn.prototype.fullBox=_.sn.prototype.Z;_.sn.prototype.box=_.sn.prototype.N;_.sn.headerSize=_.yn;var gw=0,hw=1;_.J("clpp.utils.FairplayUtils",zn);zn.parseFairPlayResponse=_.Fn;zn.formatFairPlayRequest=_.En;zn.createFairplayPayload=Dn;zn.extractContentId=_.Bn;zn.extractExtXKeyUri=An;var Rn=new _.K("clpp.drm.DrmToday"),Hn="PRODUCTION",In="STAGING",Jn="DEMO",Kn="TEST",iw={PRODUCTION:Hn,STAGING:In,DEMO:Jn,TEST:Kn};_.J("clpp.drm.DrmToday.Environment",iw);_.J("clpp.drm.DrmToday.WidevineCertificates",{V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"});
534
- for(var Mn="/license-proxy-widevine/cenc/",Nn="/license-proxy-headerauth/drmtoday/RightsManager.asmx",On="/license-server-fairplay/",$n={"00000":"Success","01000":"General Internal Error","02000":"General Request Error","03000":"General Request Authentication Error",10001:"Bad Request",3E4:"General DRM error",4E4:"General Widevine Modular error",40001:"Widevine Device Certificate Revocation (wv 127)",40002:"Widevine Device Certificate Revocation - Permanently (wv 175)",41E3:"General Widevine Classic error",
535
- 42E3:"General Playready error",43E3:"General Fairplay error",44E3:"General OMA error",44001:"OMA Device registration failed",45E3:"General CDRM error",45001:"CDRM Device registration failed",6E4:"CSL",60001:"CSL - INVALID",60100:"CSL - Denied by Stream Limiting",7E4:"General Output Protection",70001:"All keys filtered by EOP settings",8E4:"TAKE DOWN",80001:"TAKE DOWN - Denied by Take Down",9E4:"General GBL error",90001:"License delivery prohibited in your region"},jw={video:[db,fb,eb,_.Sb,_.Rb],audio:[db,
536
- fb,eb,_.Sb,_.Rb]},kw={video:["3000","2000","150"],audio:["2000","150"]},lw=_.w(Object.keys(iw)),mw=lw.next();!mw.done;mw=lw.next()){var Gn=mw.value,nw=Ca;Gn!==Hn&&(nw+="_"+Gn);var ow=new _.dn(nw),pw=null;switch(Gn){case Hn:case In:case Jn:pw=cn("V2");break;case Kn:pw=null}ow.ab(_.Qd,{licenseUrl:Pn(_.Qd),videoRobustness:jw.video,audioRobustness:jw.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:pw,modifiers:{licenseRequest:_.Un,licenseResponse:_.Zn}});ow.ab(_.Kd,
537
- {licenseUrl:Pn(_.Kd),certificateUrl:Ln()+"/license-server-fairplay/cert/",modifiers:{licenseRequest:_.Wn,licenseResponse:_.Xn,extractContentId:_.Sn,certificateRequest:_.Yn}});ow.ab(_.Od,{licenseUrl:Pn(_.Od),videoRobustness:kw.video,audioRobustness:kw.audio,modifiers:{licenseRequest:Vn}});_.Zm(ow)};_.co.prototype.value=function(){void 0===this.a&&(this.a=this.f());return this.a};_.t=eo.prototype;_.t.getStatus=function(){return this.a};_.t.forEach=function(a){this.a&&a(this.a,qw.value())};_.t.get=function(a){if(this.has(a))return this.a};_.t.has=function(a){var b=qw.value();return this.a&&Jj(a,b)?!0:!1};_.t.entries=function(){};_.t.keys=function(){};_.t.values=function(){};var qw=new _.co(function(){return Pj(new Uint8Array([0]))});var go=new _.co(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.Me],[HTMLMediaElement.HAVE_CURRENT_DATA,_.Ke],[HTMLMediaElement.HAVE_FUTURE_DATA,kd],[HTMLMediaElement.HAVE_ENOUGH_DATA,ld]])});_.t=io.prototype;_.t.Ne=function(a){this.f=a};_.t.Nd=function(a){var b=this.a;b&&b!==a&&lo(b,null);return(this.a=a)?lo(a,this.f):Promise.resolve()};_.t.Xe=function(){return this.a};_.t.Tb=function(a,b){_.Oh("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new jo(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.t.Md=function(){return Wp};jo.prototype.createMediaKeys=function(){var a=new ko(this.keySystem);return Promise.resolve(a)};
538
- jo.prototype.getConfiguration=function(){_.Oh("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};ko.prototype.createSession=function(a){a=void 0===a?qg:a;this.g.debug("Creating Apple MediaKeys Session");if(a!==qg)throw new TypeError("Session type "+a+ba);return new mo(this.h,"__session_"+this.j++)};ko.prototype.setServerCertificate=function(){this.g.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.x(mo,_.xm);_.t=mo.prototype;
539
- _.t.generateRequest=function(a,b){var c=this;if(this.l)return Promise.reject(Tb);this.g.debug("generateRequest");this.h=new _.ok;try{var d=this.o.createSession(_.Lg,_.Hj(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,Wg,function(e){var f=c.keyStatuses.getStatus();c.g.debug("Received Key Message in "+c.sessionId);c.h&&(c.h.resolve(),c.h=null);e=new _.L(_.Re,{messageType:void 0===f||f===jg?Fe:Ee,message:Pj(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,Ug,function(e){c.g.debug("onWebkitKeyAdded_",
540
- e);c.f&&(no(c,"usable"),c.f.resolve(),c.f=null)});this.j.on(d,Vg,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===jg)c.g.warn("Ignoring webkit key error for session "+c.sessionId);else if(c.g.error("Received key error in session "+c.sessionId+" with code "+(c.a.error.code+". Session Status ")+(e+".")),e=Error("EME AppleEmeManager key error"),e.errorCode=c.a.error,null!==c.h)c.h.reject(e),c.h=null;else if(null!==c.f)c.f.reject(e),
541
- c.f=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:no(c,"output-not-allowed");break;default:no(c,_.Be)}});no(this,jg)}catch(e){this.h.reject(e)}return this.h};_.t.load=function(){this.g.debug(_.Je);return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.t.update=function(a){if(this.l)return Promise.reject(Tb);this.g.debug(zg);this.f=new _.ok;try{this.a.update(_.Hj(a))}catch(b){this.f.reject(b)}return this.f};
542
- _.t.close=function(){if(this.l)return this.closed;this.g.info("Closing Key Session "+this.sessionId);this.l=!0;try{this.a.close(),this.closed.resolve(),_.ai(this.j)}catch(a){this.closed.reject(a)}return this.closed};_.t.remove=function(){this.g.debug("remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};oo.prototype.a=function(){return Wp};oo.prototype.f=function(){return!!window.WebKitMediaKeys};
543
- oo.prototype.create=function(){return new io};_.t=po.prototype;_.t.Ne=function(a){this.a=a};_.t.Nd=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(vb)};_.t.Xe=function(){return this.a&&this.a.mediaKeys};
544
- _.t.Tb=function(a,b){var c=this;this.g.info("Requesting media key system access for",a,b.map(function(d){return Object.assign({},d,{drmInfos:d.drmInfos.map(function(){return"_anonymous_"})})}));return navigator.requestMediaKeySystemAccess(a,b)["catch"](function(d){c.g.info("Failed to request media key system access for "+(a+"."),d);return Promise.reject(d)})};_.t.Md=function(){return Ap};qo.prototype.a=function(){return Ap};
545
- qo.prototype.f=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};qo.prototype.create=function(){return new po};_.t=xo.prototype;_.t.Ne=function(a){this.a=a};_.t.Nd=function(a){_.Oh("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(vb);var b=this.f;b&&b!==a&&Co(b,null);(this.f=a)&&Co(a,this.a);return Promise.resolve()};_.t.Xe=function(){return this.f};_.t.Tb=function(a,b){_.Oh("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.r);c=d.length?d[0]:document.createElement(_.r)}var e=new yo(this.h,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
546
- _.t.Md=function(){return rw};yo.prototype.createMediaKeys=function(){return Promise.resolve(new zo(this.h,this.a))};yo.prototype.getConfiguration=function(){return this.f};zo.prototype.createSession=function(a){a=void 0===a?qg:a;if(a!==qg&&a!==_.mf)throw new TypeError("Session type "+a+ba);if(!this.a)throw a=Error("Media element is missing."),a.name=mb,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new Do(this.h,this.a,this.o,a);this.j.push(a);return a};
547
- zo.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.x(Do,_.xm);_.t=Do.prototype;_.t.ready=function(){_.Oh("WebkitEmeManager.MediaKeySession.ready");Bo(this,"usable");this.a&&this.a.resolve();this.a=null};_.t.generateRequest=function(a,b){_.Oh("WebkitEmeManager.MediaKeySession.generateRequest");return Fo(this,b,null)};_.t.load=function(a){_.Oh(ic);return this.l===_.mf?Fo(this,null,a):Promise.reject(Error(Bb))};_.t.update=function(a){_.Oh(ic);var b=new _.ok;Go(this,b,a);return b};
548
- _.t.close=function(){_.Oh("WebkitEmeManager.MediaKeySession.close");if(this.l!==_.mf){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=Eo(this,"cancelKeyRequest");try{this.j[a](this.h,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.t.remove=function(){_.Oh("WebkitEmeManager.MediaKeySession.remove");return this.l!==_.mf?Promise.reject(Error(Bb)):this.close()};Ho.prototype.a=function(){return rw};
549
- Ho.prototype.f=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};Ho.prototype.create=function(){return new xo};_.t=Io.prototype;_.t.Ne=function(){};_.t.Nd=function(a){_.Oh("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.t.Xe=function(){return null};_.t.Tb=function(){_.Oh("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.t.Md=function(){return sw};Jo.prototype.a=function(){return sw};Jo.prototype.f=function(){return!0};Jo.prototype.create=function(){return new Io};_.J(Cd,Ko);var Mo=new _.K(Cd),Lo=[];Lo=[new qo,new oo,new Ho,new Jo].filter(function(a){return a.f()});var Ap="STANDARD",Wp="APPLE",rw="WEBKIT",sw="NOP";Ko.Apis={STANDARD:Ap,APPLE:Wp,WEBKIT:rw,NOP:sw};_.t=_.Oo.prototype;_.t.Ka=function(a,b){var c=this.X(a,b);return 1!==c.length?null:c[0]};_.t.Vb=_.eh(2);_.t.X=function(a,b){return Array.from(a.childNodes).filter(function(c){return c instanceof Element&&c.tagName===b})};_.t.Bc=_.eh(4);_.t.getAttributeNS=function(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null};_.t.ra=function(a){return Array.from(a.childNodes).every(function(b){return b.nodeType===Node.TEXT_NODE||b.nodeType===Node.CDATA_SECTION_NODE})?a.textContent.trim():null};
550
- _.t.V=_.eh(6);_.t.se=function(a,b){var c=new DOMParser,d=null;try{d=c.parseFromString(a,_.sg)}catch(e){}if(!d)return null;c=d.documentElement;return b&&c.tagName!==b||0<d.getElementsByTagName("parsererror").length?null:c};_.t.Ue=_.eh(8);_.t.fd=_.eh(10);_.t.tf=_.eh(12);_.t.removeChild=function(a,b){a.removeChild(b)};_.t.ff=_.eh(14);_.t.ef=_.eh(16);_.t.uf=_.eh(18);_.t.ye=_.eh(20);_.Vo=new _.Oo;_.tw=new _.K("clpp.xml.Parser");_.Dm="dom";var Ro;_.Zo=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];Ro=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.x(Qo,Po);_.x(_.Uo,Po);var ap=!!(performance&&performance.mark&&performance.measure);dp.prototype.j=function(a){if(1<a.version)_.Jh("Unrecognized PSSH version found!");else{var b=_.Vj(_.rn(a.reader,16)),c=[];if(0<a.version)for(var d=_.nn(a.reader),e=0;e<d;++e){var f=_.Vj(_.rn(a.reader,16));c.push(f)}d=_.nn(a.reader);a.reader.skip(d);this.h.push.apply(this.h,c);this.f.push(b);this.a.push({start:a.start,end:a.start+a.size-1});a.reader.getPosition()!==a.reader.Sa()&&_.Jh("Mismatch between box size and data size!")}};_.t=_.hp.prototype;_.t.destroy=function(){var a=this;return _.I(function(b){if(1==b.a){if(a.j)return _.y(b,a.Ja,0);a.j=!0;return _.y(b,jp(a),4)}a.Ja.resolve();return b.F(0)})};_.t.keySystem=function(){return this.a?_.Op(this.a.keySystem):""};_.t.getDrmInfo=function(){return this.a};_.t.Wi=function(a){var b=this;return _.I(function(c){return b.H&&b.L===kp?c["return"]():!b.f.delayLicenseRequestUntilPlayed||b.C&&!b.C.paused||b.fb?_.y(c,bq(b,a),0):(b.ha.push(a),c.F(0))})};
551
- _.t.Ri=function(a){var b=this,c=a.target;this.g.info("Key status changed for session",c.sessionId);var d=this.h.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if(typeof h===_.lg){var l=h;h=g;g=l}if(Vp(b.a.keySystem)&&16===h.byteLength&&_.Bl()){l=_.Oj(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!==jg&&(d.loaded=!0);d&&d.lb&&d.lb.resolve();"expired"===g&&(e=!0);l=_.Hj(h);var q=_.Vj(l);"00"===q&&d&&d.keyId?q=d.keyId:
552
- b.a.keySystem.startsWith(_.Kd)&&16!==l.byteLength&&(q=_.T.fromCharCode(l));(l=q||"")?b.g.info(nb+q+"': "+g):b.g.info("Key status global keys: "+g);b.o.set(l,g);d&&!d.keyId&&b.h.forEach(function(u,v){v===c||u.keyId!==q||u.loaded||(u.loaded=!0)})});d&&d.loaded&&d.qb.forEach(function(g){b.o.get(g)===jg&&(b.g.warn(nb+g+ea),b.o.set(g,_.jf))});for(a=0;a<this.a.initData.length;a++){var f=this.a.initData[a];f.keyId&&this.o.get(f.keyId)===jg&&_.Wj(f.initData,d.initData)&&(this.g.warn(nb+f.keyId+ea),this.o.set(f.keyId,
553
- _.jf))}a=c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.tc&&(this.g.debug("Session has expired",c.sessionId),(a=this.h.get(c))&&a.hd&&a.hd.stop(),this.h["delete"](c),c.close()["catch"](function(){}));Qp(this)&&(this.I.resolve(),1!==this.h.size||e?this.da.ea(.5):fp(this))};var kp=0,ep=3;_.iq=new Map;_.jq=new _.K("clpp.text");_.sq.prototype.getStats=function(){return{width:this.w,height:this.h,streamBandwidth:this.o,decodedFrames:this.j,droppedFrames:this.l,corruptedFrames:this.C,estimatedBandwidth:this.f,loadLatency:this.A,playTime:oq(this.a,_.Iq),pauseTime:oq(this.a,_.Hq),bufferingTime:oq(this.a,_.zq),stateHistory:pq(this.a),switchHistory:rq(this.B)}};xq.prototype.Xa=function(a,b){this.m&&this.m.trigger(new _.L(a,{detail:b}))};xq.prototype.getState=function(){return Aq(this,"")};xq.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.m.namespace());this.a.release()};_.J("clpp.utils.media.detectType",Kq);var Nq=new _.K("clpp.sources");_.x(Oq,_.Im);_.t=Oq.prototype;_.t.init=function(a,b){_.Im.prototype.init.call(this,a,b);this.j=new xq(this);Eq(this.j,_.uq)};_.t.namespace=function(){return Dd};
554
- _.t.unload=function(){var a=this,b;return _.I(function(c){if(!a.aa)return c.F(0);a.log.debug("Releasing player with source",a.aa);a.B&&(a.B.stop(),a.B=null);(b=a.getTrackManager())&&b.release();a.A&&(a.A.destroy(),a.A=null);a.U&&(a.U.destroy(),a.U=null);a.l&&a.l.release();a.o&&(a.o.destroy(),a.o=null);_.ai(a.h);a.f&&(a.f=new _.sq);a.G=null;a.aa=null;a.H=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());return _.y(c,Sq(a),0)})};
555
- _.t.release=function(){var a=this;return _.Im.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.j&&Eq(a.j,_.uq)})};
556
- _.t.destroy=function(){var a=this;if(this.w)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.w=!0;return _.Im.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Ia);var b=a.getTrackManager();b&&b.destroy();a.l&&(a.l.destroy()["catch"](function(c){a.log.warn("Error while disposing metadata handler",c)}),a.l=null);a.j&&(a.j.destroy(),a.j=null);a.f=null})};_.t.getDrmInfo=function(){return this.o?this.o.getDrmInfo():null};
557
- _.t.getTrackManager=function(){return this.Hd};
558
- _.t.load=function(a){var b=this,c,d,e,f,g;return _.I(function(h){switch(h.a){case 1:if(b.w)return h["return"](Pq());if(!b.getSurface()||!b.getSurface().getMedia())return h["return"](Promise.reject("No surface or no media element in surface"));c=_.N;d=b.C.getMedia();b.I=Date.now()/1E3;b.f=new _.sq;b.h.on(b,_.ig,function(){b.f&&_.nq(b.f.a,b.getState())});Eq(b.j,_.Gq);b.aa=_.Mq(a);b.configuration=_.Gm(b.Ja,a);b.log.debug(_.rb,b.configuration);b.log.debug(_.Jb,b.aa);e=_.lq(b.configuration,[_.ze,"native"]);
559
- b.U=e.create(b);b.U.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.Km(_.pg)&&!_.Il()&&(b.A=new Ri(b),b.A.start(d));b.l?b.l.release():b.l=new di(b);d.textTracks&&fi(b.l,d.textTracks);f=b.getTrackManager();f.load();d.loop=!!b.configuration.loop;c.R(b.configuration.volume)||b.setVolume(b.configuration.volume);c.R(b.configuration.muted)||b.setMuted(b.configuration.muted);b.h.one(d,kd,function(){b.trigger(new _.L(_.ew))});null==b.configuration.startTime&&Yq(b,d);_.Gl()&&Zq(b,d);_.C(h,2);return _.y(h,
560
- Rq(b,d),4);case 4:return _.y(h,Vq(b),5);case 5:return _.y(h,Xq(b).T,6);case 6:_.uh(h,0);break;case 2:g=_.E(h),b.H=!1,b.onError(g),_.B(h)}})};_.t.onError=function(a){this.H||(a.severity===_.Q&&null!==this.j&&Eq(this.j,_.Fq),this.trigger(new _.L(_.se,{detail:a})))};_.t.Qh=function(){return new bm};_.t.getState=function(){return null!==this.j?this.j.getState().currentState:_.vq};
561
- _.t.getPresentationStartTime=function(){if(this.a&&this.a.getStartDate&&this.isLive()){var a=this.a.getStartDate();return isNaN(a.getTime())?null:a.getTime()/1E3}return null};_.t.getSeekRange=function(){var a=this.getSurface().getMedia();if(a&&a.src){a=a.seekable;if(a.length)return this.G=a={start:a.start(0),end:a.end(a.length-1)};if(this.G)return this.G}return{start:0,end:0}};_.t.isLive=function(){return this.a&&this.a.src?Infinity===this.a.duration:!1};
562
- _.t.getStats=function(){if(!this.f||!this.a)return _.tq();this.f&&_.nq(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.w=a.videoWidth;b.h=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.l=Number(a.droppedVideoFrames),b.j=c,this.f.C=Number(a.corruptedVideoFrames));if(a=this.getTrackManager())if(a=a.ma())a.bandwidth&&(this.f.o=a.bandwidth),a.Gd&&(this.f.f=a.Gd);return this.f.getStats()};
563
- _.t.getTimelineCues=function(){return this.l?this.l.getTimelineCues():[]};_.t.getCueTimeline=function(){return null};$q.prototype.a=function(){return Dd};$q.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.Sc,e=c===_.Xc,f=c===_.hm;return _.Fl()||d||e||f&&!_.Gl()?0:""!==Ll().canPlayType(c)?f&&_.Gl()&&(window.ManagedMediaSource||window.MediaSource&&MediaSource.isTypeSupported)&&!b.streaming.preferNativeHlsOnSafari?1:2:0};$q.prototype.f=function(a){return a===_.oa};$q.prototype.create=function(){return new Oq};
564
- _.Th(new $q);_.J("clpp.ads.PodType",{PREROLL:0,MIDROLL:1,POSTROLL:2});_.J("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1,SERVER_GUIDED:2});_.J("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var br=new _.K("clpp.ads"),ar=[];_.t=er.prototype;_.t.load=function(){};_.t.start=function(){};_.t.cd=function(){};_.t.resume=function(){};_.t.pause=function(){};_.t.skip=function(){};_.t.getVolume=function(){};_.t.setVolume=function(){};_.t.getPosition=function(){};_.t.yc=function(){};_.t.Zc=function(){};_.J("clpp.ads.IAdsManager",er);er.prototype.getPosition=er.prototype.getPosition;er.prototype.setVolume=er.prototype.setVolume;er.prototype.getVolume=er.prototype.getVolume;er.prototype.skip=er.prototype.skip;
565
- er.prototype.pause=er.prototype.pause;er.prototype.resume=er.prototype.resume;_.t=fr.prototype;_.t.sb=function(){};_.t.tb=function(){};_.t.wb=function(){};_.t.getId=function(){};_.t.getCreativeId=function(){};_.t.Xb=function(){};_.t.getApiFramework=function(){};_.t.getAdSystem=function(){};_.t.getAdvertiserName=function(){};_.t.getTitle=function(){};_.t.getDuration=function(){};_.t.getPosition=function(){};_.t.getSkipTimeOffset=function(){};_.t.ac=function(){};_.t.ub=function(){};_.t.getMediaUrl=function(){};_.t.jb=function(){};_.t.ib=function(){};_.t.Ta=function(){};
566
- _.t.Ua=function(){};_.t.getPodIndex=function(){};_.t.Jb=function(){};_.t.Kb=function(){};_.t.kb=function(){};_.t.getWrapperAdIds=function(){};_.t.getWrapperAdSystems=function(){};_.t.getWrapperCreativeIds=function(){};_.t.$b=function(){};_.J("clpp.ads.IAd",fr);fr.prototype.getVideoElement=fr.prototype.$b;fr.prototype.getWrapperCreativeIds=fr.prototype.getWrapperCreativeIds;fr.prototype.getWrapperAdSystems=fr.prototype.getWrapperAdSystems;fr.prototype.getWrapperAdIds=fr.prototype.getWrapperAdIds;
567
- fr.prototype.getSequenceLength=fr.prototype.kb;fr.prototype.getPositionInSequence=fr.prototype.Kb;fr.prototype.getPodTimeOffset=fr.prototype.Jb;fr.prototype.getPodIndex=fr.prototype.getPodIndex;fr.prototype.getPodType=fr.prototype.Ua;fr.prototype.getMediaBitrate=fr.prototype.Ta;fr.prototype.getMediaHeight=fr.prototype.ib;fr.prototype.getMediaWidth=fr.prototype.jb;fr.prototype.getMediaUrl=fr.prototype.getMediaUrl;fr.prototype.getClickThroughUrl=fr.prototype.ub;fr.prototype.isBumper=fr.prototype.ac;
568
- fr.prototype.getSkipTimeOffset=fr.prototype.getSkipTimeOffset;fr.prototype.getPosition=fr.prototype.getPosition;fr.prototype.getDuration=fr.prototype.getDuration;fr.prototype.getTitle=fr.prototype.getTitle;fr.prototype.getAdvertiserName=fr.prototype.getAdvertiserName;fr.prototype.getAdSystem=fr.prototype.getAdSystem;fr.prototype.getApiFramework=fr.prototype.getApiFramework;fr.prototype.getSourceId=fr.prototype.Xb;fr.prototype.getCreativeId=fr.prototype.getCreativeId;fr.prototype.getId=fr.prototype.getId;
569
- fr.prototype.getTechnology=fr.prototype.wb;fr.prototype.getAdManagerVersion=fr.prototype.tb;fr.prototype.getAdManagerName=fr.prototype.sb;_.t=gr.prototype;_.t.sb=function(){return""};_.t.tb=function(){return""};_.t.wb=function(){return 2};_.t.getId=function(){return this.A};_.t.getCreativeId=function(){return""};_.t.Xb=function(){return this.C};_.t.getApiFramework=function(){return null};_.t.getAdSystem=function(){return""};_.t.getAdvertiserName=function(){return""};_.t.getTitle=function(){return""};_.t.getDuration=function(){return this.h};_.t.getPosition=function(){return this.j};_.t.getSkipTimeOffset=function(){return-1};
570
- _.t.ac=function(){return!1};_.t.ub=function(){return null};_.t.getMediaUrl=function(){return null};_.t.jb=function(){return 0};_.t.ib=function(){return 0};_.t.Ta=function(){return 0};_.t.Ua=function(){return this.B};_.t.getPodIndex=function(){return 0};_.t.Jb=function(){return 0};_.t.Kb=function(){return this.a};_.t.kb=function(){return this.f};_.t.getWrapperAdIds=function(){return[]};_.t.getWrapperAdSystems=function(){return[]};_.t.getWrapperCreativeIds=function(){return[]};_.t.$b=function(){return this.videoEl};
571
- gr.prototype.getVideoElement=gr.prototype.$b;gr.prototype.getWrapperCreativeIds=gr.prototype.getWrapperCreativeIds;gr.prototype.getWrapperAdSystems=gr.prototype.getWrapperAdSystems;gr.prototype.getWrapperAdIds=gr.prototype.getWrapperAdIds;gr.prototype.getSequenceLength=gr.prototype.kb;gr.prototype.getPositionInSequence=gr.prototype.Kb;gr.prototype.getPodTimeOffset=gr.prototype.Jb;gr.prototype.getPodIndex=gr.prototype.getPodIndex;gr.prototype.getPodType=gr.prototype.Ua;
572
- gr.prototype.getMediaBitrate=gr.prototype.Ta;gr.prototype.getMediaHeight=gr.prototype.ib;gr.prototype.getMediaWidth=gr.prototype.jb;gr.prototype.getMediaUrl=gr.prototype.getMediaUrl;gr.prototype.getClickThroughUrl=gr.prototype.ub;gr.prototype.isBumper=gr.prototype.ac;gr.prototype.getSkipTimeOffset=gr.prototype.getSkipTimeOffset;gr.prototype.getPosition=gr.prototype.getPosition;gr.prototype.getDuration=gr.prototype.getDuration;gr.prototype.getTitle=gr.prototype.getTitle;
573
- gr.prototype.getAdvertiserName=gr.prototype.getAdvertiserName;gr.prototype.getAdSystem=gr.prototype.getAdSystem;gr.prototype.getApiFramework=gr.prototype.getApiFramework;gr.prototype.getSourceId=gr.prototype.Xb;gr.prototype.getCreativeId=gr.prototype.getCreativeId;gr.prototype.getId=gr.prototype.getId;gr.prototype.getTechnology=gr.prototype.wb;gr.prototype.getAdManagerVersion=gr.prototype.tb;gr.prototype.getAdManagerName=gr.prototype.sb;hr.prototype.has=function(){return this.a.some(function(a){return a.Ke})};hr.prototype.get=function(){var a=this,b;return _.I(function(c){if(1==c.a){b=a.a.find(function(d){return d.Ke});if(!b)throw Error("No available players in the pool");b.Ke=!1;return _.y(c,b.ready,2)}return c["return"](b.player)})};
574
- hr.prototype.release=function(a){var b=this,c=this.a.find(function(d){return d.player===a});if(!c)return Promise.resolve();c.Ke=!0;c.ready=new Promise(function(d){a.release()["catch"](function(e){b.g.error("Failed to unload player",e)}).then(d)});return c.ready};hr.prototype.destroy=function(){var a=this;return _.I(function(b){return _.y(b,Promise.all(a.a.map(function(c){return c.player.destroy()})),0)})};_.J("clpp.utils.dom.createHTMLElement",_.lr);mr.prototype.set=function(a){this.h.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=or(this,a)};mr.prototype.get=function(){return this.a};_.t=sr.prototype;_.t.getMedia=function(){return this.f.get()};_.t.getContainer=function(){return this.a.get()};_.t.getSafeContainer=function(){return this.a};_.t.getId=function(){return this.l};_.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?_.jr(a,wd):this.g.debug("No media element available that could be hidden")};
575
- _.t.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(wd):this.g.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&&_.jr(a,_.vd);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
576
- _.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){_.jr(a,wd)};_.t.show=function(a){a.classList.remove(wd)};_.t.release=function(){this.j.release()};sr.prototype.removeElementFromContainer=sr.prototype.removeElementFromContainer;sr.prototype.addElementToContainer=sr.prototype.addElementToContainer;sr.prototype.getCastElement=sr.prototype.getCastElement;
577
- sr.prototype.getContainer=sr.prototype.getContainer;sr.prototype.getMedia=sr.prototype.getMedia;var pr={disableContainer:!1,webOSStartupPatch:!0,crossorigin:"anonymous",containerEl:null},qr=1;_.t=xr.prototype;_.t.getCurrentItem=function(){return this.a};_.t.Ve=function(){return this.a?this.a.player:null};_.t.gi=function(){return Array.from(this.l.values())};_.t.ge=function(){return 0<this.l.size};_.t.play=function(a){return Mr(this,a,_.of)};_.t.load=function(a){return Mr(this,a,_.Je)};_.t.release=function(){var a=this;return _.I(function(b){if(1==b.a)return _.y(b,Promise.all([Kr(a),a.a?Jr(a,a.a):Promise.resolve()]),2);a.a=null;a.A=!1;Br(a);_.B(b)})};
578
- _.t.destroy=function(){var a=this;return _.I(function(b){if(1==b.a)return a.g.info("Destroy"),_.y(b,a.release(),2);if(3!=b.a)return _.y(b,a.o.destroy(),3);Yr(a);_.B(b)})};var Tr="preload",Vr=_.Oe;_.x(ds,_.xm);ds.prototype.destroy=function(){var a=this;return _.I(function(b){os(a);a.f=[];a.o=!1;a.j.setSeekInterceptor(null);return _.y(b,a.a.destroy(),0)})};ds.prototype.Mb=function(){return this.o};ds.prototype.isLive=function(){var a=this.a.Ve();return a?a.isLive():null};ds.prototype.Xa=function(a){this.j.trigger(a)};var $r=0,us=1,ws=2,xs=3,As=4,Bs=5,as=6;_.t=Ds.prototype;_.t.load=function(){return Promise.resolve()};_.t.start=function(){return Promise.resolve()};_.t.cd=function(a,b,c){var d=a.getConfiguration();a=Object.assign({},{config:d,player:a,hb:b},d.ads.hls||{},{Kn:c});this.a=new ds(a);gs(this.a)};_.t.resume=function(){var a=es(this.a);a&&a.play()};_.t.pause=function(){var a=es(this.a);a&&a.pause()};_.t.skip=function(){};_.t.getVolume=function(){var a=es(this.a);return a?a.getVolume()||0:0};_.t.setVolume=function(a){var b=es(this.a);if(b)return b.setVolume(a)};
579
- _.t.getPosition=function(){var a=es(this.a);return a?a.getPosition():-1};_.t.Zc=function(){return!this.a.Mb()};_.t.yc=function(){return this.a.destroy()};Ds.prototype.getPosition=Ds.prototype.getPosition;Ds.prototype.setVolume=Ds.prototype.setVolume;Ds.prototype.getVolume=Ds.prototype.getVolume;Ds.prototype.skip=Ds.prototype.skip;Ds.prototype.pause=Ds.prototype.pause;Ds.prototype.resume=Ds.prototype.resume;Gs.prototype.release=function(){this.a.release();Ks(this);this.m=null};_.J("clpp.polyfill.installAll",Ns);var Ms=[];_.J("clpp.polyfill.register",_.Os);var Rs={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},Bm="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";var ft="vod",et="live";var nt,lt,mt;it.prototype.release=function(){this.a=null;this.f.ue(this.h)};_.uw="maxSuggestedBitrateKbps";nt={du:"duress",etp:_.te,mb:_.uw,rd:"responseDelay",rtt:"roundTripTime"};lt={at:"availabilityTime",br:"encodedBitrateKbps",ht:"heldTime",n:"intermediaryIdentifier",nor:"nextObjectResponse",nrr:"nextRangeResponse",d:"objectDuration",ot:"objectType",su:"startup",st:"streamType",sf:"streamingFormat",v:Gg};mt=new _.K("clpp.net.CmsdManager");_.x(X,_.xm);_.t=X.prototype;_.t.on=function(a,b,c){return _.xm.prototype.on.call(this,a,b,c)};_.t.one=function(a,b,c){return _.xm.prototype.one.call(this,a,b,c)};_.t.off=function(a,b){return _.xm.prototype.off.call(this,a,b)};_.t.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.L(_.se,{detail:a}))};_.t.ce=function(a){a=this.L[a];void 0===a&&(a=null);return a};_.t.getSurface=function(){return this.j};_.t.getConfiguration=function(){return _.N.gb(this.f)};
580
- _.t.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.t.detach=function(){return this.a?this.a.detach():Promise.resolve()};_.t.release=function(){var a=this;if(null!=this.l)return this.g.info("Player release already in progress"),this.l;this.g.debug("Releasing player");this.l=ut(this);return this.l["finally"](function(){Et(a);a.g.debug("Player released");a.l=null})};
581
- _.t.destroy=function(){var a=this;if(this.U)return this.g.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.U=!0;return this.release().then(function(){a.g.debug(Ia);a.trigger(new _.L("destroying"));return a.Jc(_.cf)}).then(function(){a.a&&a.a.stopForwardingEventsTo(a);a.Xd.clear();a.fb.release();if(a.a)return a.a.destroy()}).then(function(){return a.J.destroy()}).then(function(){Sm();a.a=null;a.A=null;a.trigger(new _.L("destroyed"))})};
582
- _.t.load=function(a){var b=this,c,d,e;return _.I(function(f){switch(f.a){case 1:_.C(f,2);_.bp(wf);b.P=_.oa;b.ia=!0;c=_.Mq(a);d=Hm(a)?a:{};if(d.license)throw new _.P(_.Q,7,7100,"License cannot be passed into the load method.");return _.y(f,_.Ct(b,d,c),4);case 4:return _.y(f,_.Dt(b),5);case 5:return _.y(f,_.xt(b),6);case 6:_.bp(vf);_.cp("player.load",wf,vf);_.uh(f,0);break;case 2:e=_.E(f);Et(b);if(b.l)throw b.g.info(qb),new _.P(_.Q,7,7E3);throw e;}})};
583
- _.t.preload=function(a){var b=this,c;return _.I(function(d){if(1==d.a)return _.y(d,_.Ct(b,a),2);if(!b.a)return b.g.warn(Ib),d["return"]();c=b.a;return c.preload?_.y(d,c.preload(b.f),0):(b.g.warn(Mb),d["return"]())})};_.t.Jc=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!this.ia)return Promise.resolve();var e=this;d=this.ha.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.gh(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};
584
- _.t.use=function(a){(a=Tm(a))&&a.o(this)};_.t.remove=function(a){return(this.getState()<=_.uq||this.$)&&null!==Nm(a)?(Um(a),this.ca=!0):!1};_.t.play=function(){return this.a?!this.h||this.h instanceof Ds||this.a.namespace()===_.zd?this.a.play():this.h.start(this.a):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.")};
585
- _.t.getTrackManager=function(){return this.a&&this.a.getTrackManager()};_.t.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.wm};_.t.getState=function(){return this.a?this.a.getState():_.uq};_.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};
586
- _.t.seek=function(a){return this.getState()===_.Fq?Promise.reject("Cannot seek in current state."):this.a?this.a.seek(a):Promise.reject("delegate does not exist")};_.t.getPresentationStartTime=function(){return this.a?this.a.getPresentationStartTime():null};_.t.getSeekRange=function(){return this.a?this.a.getSeekRange():{start:0,end:0}};_.t.Ec=function(){var a=this.a;return a&&a.Ec?a.Ec():null};_.t.getVolume=function(){return this.a?this.a.getVolume():null};_.t.setVolume=function(a){this.a&&this.a.setVolume(a)};
587
- _.t.getDuration=function(){return this.a?this.a.getDuration():-1};_.t.getAdsManager=function(){return this.h};_.t.namespace=function(){return this.a&&this.a.namespace()||"Undefined"};_.t.getPlaybackRate=function(){return this.a?this.a.getPlaybackRate():1};_.t.setPlaybackRate=function(a,b){this.a&&this.a.setPlaybackRate(a,b)};_.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.J};
588
- _.t.setNetworkEngine=function(a){this.J=a};_.t.getTextDisplayer=function(){return this.a&&this.a.getTextDisplayer()};_.t.isLive=function(){return!!this.a&&this.a.isLive()};_.t.getStats=function(){return this.a?this.a.getStats():null};_.t.mi=function(){return Object.freeze(this.Ja)};_.t.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};_.t.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.t.getCueTimeline=function(){return this.a?this.a.getCueTimeline():null};
589
- _.t.resetAbr=function(){this.a&&this.a.resetAbr()};_.t.setDrmCustomDataModifier=function(a){this.kd=a;At(this)};_.t.setCdnErrorCallback=function(a){this.M=a;this.a&&this.a.setCdnErrorCallback(this.M)};_.t.Mi=function(){this.$f=!0};_.J("clpp.Player",X);X.registerPlugin=_.Ht;X.prototype.setCdnErrorCallback=X.prototype.setCdnErrorCallback;X.prototype.setDrmCustomDataModifier=X.prototype.setDrmCustomDataModifier;X.prototype.resetAbr=X.prototype.resetAbr;X.prototype.getTimelineCues=X.prototype.getTimelineCues;
590
- X.prototype.getLoadedSource=X.prototype.getLoadedSource;X.prototype.getSources=X.prototype.mi;X.prototype.getStats=X.prototype.getStats;X.prototype.isLive=X.prototype.isLive;X.prototype.getTextDisplayer=X.prototype.getTextDisplayer;X.prototype.setNetworkEngine=X.prototype.setNetworkEngine;X.prototype.getNetworkEngine=X.prototype.getNetworkEngine;X.prototype.setMuted=X.prototype.setMuted;X.prototype.isMuted=X.prototype.isMuted;X.prototype.setPlaybackRate=X.prototype.setPlaybackRate;
591
- X.prototype.getPlaybackRate=X.prototype.getPlaybackRate;X.prototype.namespace=X.prototype.namespace;X.prototype.getAdsManager=X.prototype.getAdsManager;X.prototype.getDuration=X.prototype.getDuration;X.prototype.setVolume=X.prototype.setVolume;X.prototype.getVolume=X.prototype.getVolume;X.prototype.getTimelineOffset=X.prototype.Ec;X.prototype.getSeekRange=X.prototype.getSeekRange;X.prototype.getPresentationStartTime=X.prototype.getPresentationStartTime;X.prototype.seek=X.prototype.seek;
592
- X.prototype.getPosition=X.prototype.getPosition;X.prototype.isPaused=X.prototype.isPaused;X.prototype.isEnded=X.prototype.isEnded;X.prototype.getState=X.prototype.getState;X.prototype.getBufferInfo=X.prototype.getBufferInfo;X.prototype.getTrackManager=X.prototype.getTrackManager;X.prototype.pause=X.prototype.pause;X.prototype.play=X.prototype.play;X.prototype.remove=X.prototype.remove;X.prototype.use=X.prototype.use;X.prototype.load=X.prototype.load;X.prototype.destroy=X.prototype.destroy;
593
- X.prototype.release=X.prototype.release;X.prototype.getDrmInfo=X.prototype.getDrmInfo;X.prototype.getConfiguration=X.prototype.getConfiguration;X.prototype.getSurface=X.prototype.getSurface;X.prototype.getPlugin=X.prototype.ce;X.prototype.off=X.prototype.off;X.prototype.one=X.prototype.one;X.prototype.on=X.prototype.on;_.uq=0;_.Gq=1;_.zq=2;_.Iq=3;_.Hq=4;_.Bq=5;_.Fq=6;_.vq=7;_.Dq={IDLE:_.uq,PREPARING:_.Gq,BUFFERING:_.zq,PLAYING:_.Iq,PAUSED:_.Hq,ENDED:_.Bq,ERROR:_.Fq,UNSET:_.vq};X.State=_.Dq;
594
- var qt=[];_.x(It,X);_.t=It.prototype;
595
- _.t.open=function(a,b){var c=this,d,e,f,g,h,l,m;return _.I(function(n){if(1==n.a){if(c.w)throw new _.P(_.Q,7,7008,"Cannot call open() while "+c.w+fa);if(0!==a)throw new _.P(_.Q,7,7007,"The index parameter only supports the value of 0.");if(0===b.length)throw new _.P(_.Q,7,7003,zb);if(b.some(function(p){return!p.id||!p.source}))throw new _.P(_.Q,7,7100,"Some config is missing required properties `id` or `source`!");d=new Set(b.map(function(p){return p.id}));if(d.size!==b.length)throw new _.P(_.Q,7,
596
- 7100,"Some config contains a non-unique property `id`!");if(e=b[0].playlist){f=e.timeline;g=["flat","basic"];if(f&&!g.includes(f))throw new _.P(_.Q,7,7100,"Unsupported `playlist.timeline` config value!");h=e.startTime;if(null!=h&&(typeof h!==_.k||0>h))throw new _.P(_.Q,7,7100,"Invalid `playlist.startTime` config value!");l=e.endTime;if(null!=l&&(typeof l!==_.k||0>l||null!=h&&l<=h))throw new _.P(_.Q,7,7100,"Invalid `playlist.endTime` config value!");m=e.content;if("DVR"===m&&!l)throw new _.P(_.Q,7,
597
- 7100,"`playlist.endTime` config value is required for DVR content!");}_.th(n);Jt(c);c.w="open";return _.y(n,Nt(c,b),4)}2!=n.a&&(c.I=0,c.o=b,c.da=!0,Kt(c,b[0].playlist||{}));_.vh(n);c.w=null;return _.wh(n)})};
598
- _.t.Ij=function(a){var b=this,c;return _.I(function(d){if(1==d.a){if(b.w)throw new _.P(_.Q,7,7008,"Cannot call addItem() while "+b.w+fa);if(!b.da)throw new _.P(_.Q,7,7008,"open() must be called before addItem()!");if(!a.id||!a.source)throw new _.P(_.Q,7,7100,"The config is missing required properties `id` or `source`!");c=new Set(b.o.map(function(e){return e.id}));if(c.has(a.id))throw new _.P(_.Q,7,7100,"A config with this `id` already exists in the playlist!");_.th(d);b.w="addItem";b.o.push(a);return _.y(d,
599
- Ot(b,a),2)}_.vh(d);b.w=null;return _.wh(d)})};_.t.getCurrentItem=function(){return this.o[this.I]||null};_.t.getCurrentItemIndex=function(){return this.I};_.t.Xl=function(){return _.gh(this.o).concat()};_.t.de=function(){return this.o.length};_.t.getTimeline=function(){return this.a?this.a.getTimeline():null};_.t.seekWith=function(a){return this.a?this.a.seekWith(a):Promise.resolve()};_.t.release=function(){this.o=[];this.I=0;this.da=!1;return X.prototype.release.call(this)};
600
- _.t.destroy=function(){Jt(this);return X.prototype.destroy.call(this)};_.t.setCdnErrorCallback=function(){throw new _.P(1,7,7009,"CDN switching is not supported!");};_.J("clpp.plist.ScPlaylist",It);It.prototype.setCdnErrorCallback=It.prototype.setCdnErrorCallback;It.prototype.destroy=It.prototype.destroy;It.prototype.release=It.prototype.release;It.prototype.seekWith=It.prototype.seekWith;It.prototype.getTimeline=It.prototype.getTimeline;It.prototype.getSize=It.prototype.de;
601
- It.prototype.getPlaylist=It.prototype.Xl;It.prototype.getCurrentItemIndex=It.prototype.getCurrentItemIndex;It.prototype.getCurrentItem=It.prototype.getCurrentItem;It.prototype.addItem=It.prototype.Ij;It.prototype.open=It.prototype.open;_.x(Rt,_.xm);_.t=Rt.prototype;_.t.be=function(){return this.f};_.t.Ve=function(){return this.f?this.f.player:null};_.t.ei=function(){return this.o.get(this.a+1)||null};_.t.hi=function(){return this.o.get(this.a-1)||null};_.t.gi=function(){return[this.hi(),this.ei()].filter(Boolean)};_.t.co=function(a){if(0<this.j.length)throw Error("Cannot re-set items in the playlist");this.g.info("Set items",a);this.j=a.map(function(b,c){return{config:b,index:c,preloadPromise:Promise.resolve(),disposers:[]}})};
602
- _.t.bo=function(a){if(0===this.j.length)throw Error(yb);if(0>a||a>this.j.length-1)throw Error("Index out of bounds");this.a=a};_.t.ge=function(){return this.a<this.j.length-1};_.t.oi=function(){return 0<this.a};
603
- _.t.In=function(){var a=this,b,c;return _.I(function(d){switch(d.a){case 1:if(a.l)return a.g.warn("Cannot play first item while busy"),d["return"]();if(0===a.j.length)return a.g.warn(yb),d["return"]();a.l=!0;a.g.info("First (index: "+a.a+")");b=a.j[a.a];_.C(d,2,3);a.g.info("First loading (index: "+a.a+")");return _.y(d,Zt(a,b),5);case 5:a.g.info("First playing (index: "+a.a+")");case 3:_.vh(d);a.l=!1;du(a);_.wh(d);break;case 2:throw c=_.E(d),a.g.error("First failed (index: "+a.a+")"),c;}})};
604
- _.t.ej=function(){var a=this,b,c,d;return _.I(function(e){switch(e.a){case 1:if(a.l)return a.g.warn("Cannot play next item while busy"),e["return"]();if(!a.ge())return a.g.warn("There are no more items in the playlist"),e["return"]();a.l=!0;a.a+=1;a.g.info("Next (index: "+a.a+")");b=a.f;a.h.transition===_.kf&&b.player.pause();St(a,a.a+-2);a.o["delete"](a.a);c=a.j[a.a];_.C(e,2,3);a.g.info("Next loading (index: "+a.a+")");return _.y(e,$t(a,c),5);case 5:a.g.info("Next playing (index: "+a.a+")");case 3:_.vh(e);
605
- a.l=!1;b&&Wt(a,b);du(a);_.wh(e);break;case 2:throw d=_.E(e),a.g.error("Next failed (index: "+a.a+")"),d;}})};
606
- _.t.Jn=function(){var a=this,b,c,d;return _.I(function(e){switch(e.a){case 1:if(a.l)return a.g.warn("Cannot play previous item while busy"),e["return"]();if(!a.oi())return a.g.warn("There are no more previous items in the playlist"),e["return"]();a.l=!0;--a.a;a.g.info("Previous (index: "+a.a+")");b=a.f;a.h.transition===_.kf&&b.player.pause();St(a,a.a+2);a.o["delete"](a.a);c=a.j[a.a];_.C(e,2,3);a.g.info("Previous loading (index: "+a.a+")");return _.y(e,$t(a,c),5);case 5:a.g.info("Previous playing (index: "+
607
- a.a+")");case 3:_.vh(e);a.l=!1;b&&Wt(a,b);du(a);_.wh(e);break;case 2:throw d=_.E(e),a.g.error("Previous failed (index: "+a.a+")"),d;}})};_.t.destroy=function(){var a=this;return _.I(function(b){return 1==b.a?(a.g.info("Destroy"),_.y(b,Promise.all([Tt(a),a.f?Wt(a,a.f):Promise.resolve()]),2)):_.y(b,eu(a),0)})};_.J(Ed,Rt);Rt.prototype.destroy=Rt.prototype.destroy;Rt.prototype.playPrev=Rt.prototype.Jn;Rt.prototype.playNext=Rt.prototype.ej;Rt.prototype.playFirst=Rt.prototype.In;Rt.prototype.hasPrev=Rt.prototype.oi;
608
- Rt.prototype.hasNext=Rt.prototype.ge;Rt.prototype.setIndex=Rt.prototype.bo;Rt.prototype.setItems=Rt.prototype.co;Rt.prototype.getPreloading=Rt.prototype.gi;Rt.prototype.getPrev=Rt.prototype.hi;Rt.prototype.getNext=Rt.prototype.ei;Rt.prototype.getCurrentPlayer=Rt.prototype.Ve;Rt.prototype.getCurrent=Rt.prototype.be;var Vt="preload",Xt=_.Oe;var fu=new Map;_.t=hu.prototype;_.t.destroy=function(){this.a.dispose();this.a=null};_.t.reset=function(){this.a=new muxjs.mp4.Transmuxer(this.f)};_.t.isSupported=function(a,b){var c="mp2t"===a.toLowerCase().split(";")[0].split("/")[1],d=a.toLowerCase().split(";")[0]===_.$c;if(!window.muxjs||!c&&!d)return!1;if(d)return _.gu(dd);if(b)return _.gu(iu(b,a));c=iu(_.Zc,a);d=iu(_.r,a);return _.gu(c)||_.gu(d)};_.t.isMuxed=function(a,b){return 1<this.demuxMimeTypes(a,b).size};
609
- _.t.demuxMimeTypes=function(a,b){var c=new Map;c.set(a,b);try{var d=_.ul(b),e=_.vl(b).split(","),f=new Map,g=mj(_.Zc,e),h=mj(_.r,e);g&&f.set(_.Zc,this.convertCodecs(_.Zc,_.tl(d,g)));h&&f.set(_.r,this.convertCodecs(_.r,_.tl(d,h)));return f}catch(l){return c}};_.t.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]===_.$c?dd:"mp2t"===b.toLowerCase().split(";")[0].split("/")[1]?iu(a,b):b};_.t.getOriginalMimeType=function(){return this.h};
610
- _.t.transmux=function(a){function b(){g={video:Xj.apply(Qj,_.gh(d)),captions:f,audio:Xj.apply(Qj,_.gh(e))}}function c(h){f=h.captions;var l=new Uint8Array(h.data.byteLength+h.initSegment.byteLength);l.set(h.initSegment,0);l.set(h.data,h.initSegment.byteLength);h.type===vw?d.push(l):h.type===ww&&e.push(l)}var d=[],e=[],f=[],g=null;a=_.Hj(a);this.a.on("data",c);this.a.on("done",b);this.a.push(a);this.a.flush();this.a.off("data",c);this.a.off("done",b);if(!g)throw new _.P(_.Q,3,3018);return g};
611
- ol(_.$c,function(){return new hu(_.$c)});ol(_.Kg,function(){return new hu(_.Kg)});var ww=_.Zc,vw=_.r;ju.prototype.getCuePoints=function(){};ju.prototype.Mb=function(){};ju.prototype.Lb=function(){};_.J("clpp.ads.IAdsTimeline",ju);ju.prototype.hasPostroll=ju.prototype.Lb;ju.prototype.hasPreroll=ju.prototype.Mb;ju.prototype.getCuePoints=ju.prototype.getCuePoints;_.ku.prototype.f=function(){};_.ku.prototype.a=function(){};_.ku.prototype.h=function(){};_.ku.prototype.o=function(){};_.x(lu,_.dn);lu.prototype.re=function(a,b){for(var c=a.drm.customData.headers||{},d=_.w(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};lu.prototype.Xh=function(a,b){var c=An(b);switch(this.o){case xw:return c;case yw:return(new _.Rk(c)).a;default:throw Error("Unknown content ID strategy");}};lu.prototype.Pi=function(a,b){b.headers[ya]=Yc;this.re(a,b);var c={spc:_.Rj(b.body)};b.body=_.T.xd(_.Tk(c,!0))};
612
- lu.prototype.Qi=function(a,b){var c=_.T.ba(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.Tj(c).buffer};_.J(Ad,lu);lu.prototype.onFairPlayLicenseResponse=lu.prototype.Qi;lu.prototype.onFairPlayLicenseRequest=lu.prototype.Pi;lu.prototype.extractFairPlayContentId=lu.prototype.Xh;lu.prototype.onLicenseRequest=lu.prototype.re;lu.prototype.constructor=lu.prototype.constructor;lu.NAME=gb;var yw="hostname",xw="full-skd";
613
- lu.FairPlayContentIdStrategy={HOSTNAME:yw,FULL_SKD:xw};_.x(mu,_.ku);mu.prototype.h=function(a){a=a.getConfiguration();if(a.drm&&a.drm&&a.drm.env===gb){a=a.drm.customData;if(!a)throw new _.P(_.Q,7,7100,_.Rd);a=new lu(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||xw);_.Zm(a)}};mu.prototype.a=function(){delete _.Ym.HeaderDrm};mu.prototype.id=function(){return"headerdrm"};_.J("clpp.drm.HeaderDrmComponent",mu);_.Os(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=_.Hj(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});_.Os(function(){_.Oh("mathRound.install")});_.Os(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;ve in document||(Object.defineProperty(document,ve,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
614
- {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",nu);document.addEventListener("webkitfullscreenerror",nu);document.addEventListener("mozfullscreenchange",nu);document.addEventListener("mozfullscreenerror",nu);document.addEventListener("MSFullscreenChange",nu);document.addEventListener("MSFullscreenError",nu)}});_.Os(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Oh("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=pu,document.exitPictureInPicture=qu,document.addEventListener("webkitpresentationmodechanged",ou,!0))}});_.Os(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=ru)}});_.Os(function(){if(window.VTTCue)_.Nh("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Nh(ec),window.VTTCue=su;else if(6===a)_.Nh("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=tu;else{try{var b=!!su(1,2,"")}catch(c){b=!1}b&&(_.Nh(ec),window.VTTCue=su)}}else _.Ph("VTTCue not available.")});var uu;_.Os(function(){_.Oh("InputEvent.install");_.Cl("Trident/")&&HTMLInputElement.prototype.addEventListener!==vu&&(_.Nh("Patching input event support on IE."),uu=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=vu)});_.Os(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.Os(function(){_.Oh("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}}});_.Eu.prototype.start=function(){var a=this;this.a=new ResizeObserver(function(b){b=b[0];a.j(b.contentRect.width,b.contentRect.height,a.h.isFullscreen())});this.f&&this.a.observe(this.f)};_.Eu.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.Gu.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.r);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.ok;c=c.play();var e=(new _.yl(function(){b(a)})).ea(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===Eb?b(!0):b(!1)}):b(!0);return d};
615
- var Fu=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,
545
+ 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]};_.pn.prototype.gb=function(a,b){this.f[a]=b};_.J("clpp.drm.DrmEnvironment",_.pn);_.pn.prototype.setDrmSystem=_.pn.prototype.gb;_.qn.prototype.getPosition=function(){return this.a};_.qn.prototype.Wa=function(){return this.f.byteLength};_.qn.prototype.seek=function(a){(0>a||a>=this.f.byteLength)&&_.rn();this.a=a};_.tn.prototype.getPosition=function(){return this.a};_.tn.prototype.Wa=function(){return this.f.byteLength};_.tn.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.vn();this.a+=a};_.tn.prototype.seek=function(a){if(0>a||a>=this.f.byteLength)throw _.vn();this.a=a};_.J("clpp.utils.dataview.DataViewReader",_.tn);_.u=_.Dn.prototype;_.u.N=function(a,b){var c=Hn(a);this.h[c]=Cw;this.f[c]=b;return this};_.u.aa=function(a,b){var c=Hn(a);this.h[c]=Dw;this.f[c]=b;return this};_.u.stop=function(){this.a=!0};_.u.parse=function(a,b){var c=_.bk(a);c=new _.tn(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.un(c)&&!this.a;)this.zf(0,c,b)};
546
+ _.u.zf=function(a,b,c){var d=b.getPosition(),e=_.yn(b),f=_.yn(b),g=!1;this.g.debug("Parsing MP4 box",_.In(f));switch(e){case 0:e=b.Wa()-d;break;case 1:e=_.An(b),g=!0}var h=this.f[f];if(h){var l=null,m=null;this.h[f]===Dw&&(m=_.yn(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.Wa()&&(n=b.Wa());n-=b.getPosition();b=0<n?_.Cn(b,n):new Uint8Array(0);b=new _.tn(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+
547
+ a,headerSize:f,has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.Wa()-b.getPosition()),b.skip(a)};_.J("clpp.utils.Mp4Parser",_.Dn);_.Dn.typeToString=_.In;_.Dn.allData=_.Gn;_.Dn.sampleDescription=_.Fn;_.Dn.children=_.En;_.Dn.prototype.parseNext=_.Dn.prototype.zf;_.Dn.prototype.parse=_.Dn.prototype.parse;_.Dn.prototype.stop=_.Dn.prototype.stop;_.Dn.prototype.fullBox=_.Dn.prototype.aa;_.Dn.prototype.box=_.Dn.prototype.N;_.Dn.headerSize=_.Jn;var Cw=0,Dw=1;_.J("clpp.utils.FairplayUtils",Kn);Kn.parseFairPlayResponse=_.Rn;Kn.formatFairPlayRequest=_.Pn;Kn.createFairplayPayload=On;Kn.extractContentId=_.Mn;Kn.extractExtXKeyUri=Ln;var co=new _.K("clpp.drm.DrmToday"),Tn="PRODUCTION",Un="STAGING",Vn="DEMO",Wn="TEST",Ew={PRODUCTION:Tn,STAGING:Un,DEMO:Vn,TEST:Wn};_.J("clpp.drm.DrmToday.Environment",Ew);_.J("clpp.drm.DrmToday.WidevineCertificates",{V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"});
548
+ for(var Yn="/license-proxy-widevine/cenc/",Zn="/license-proxy-headerauth/drmtoday/RightsManager.asmx",$n="/license-server-fairplay/",mo={"00000":"Success","01000":"General Internal Error","02000":"General Request Error","03000":"General Request Authentication Error",10001:"Bad Request",3E4:"General DRM error",4E4:"General Widevine Modular error",40001:"Widevine Device Certificate Revocation (wv 127)",40002:"Widevine Device Certificate Revocation - Permanently (wv 175)",41E3:"General Widevine Classic error",
549
+ 42E3:"General Playready error",43E3:"General Fairplay error",44E3:"General OMA error",44001:"OMA Device registration failed",45E3:"General CDRM error",45001:"CDRM Device registration failed",6E4:"CSL",60001:"CSL - INVALID",60100:"CSL - Denied by Stream Limiting",7E4:"General Output Protection",70001:"All keys filtered by EOP settings",8E4:"TAKE DOWN",80001:"TAKE DOWN - Denied by Take Down",9E4:"General GBL error",90001:"License delivery prohibited in your region"},Fw={video:[hb,jb,ib,_.Vb,_.Ub],audio:[hb,
550
+ jb,ib,_.Vb,_.Ub]},Gw={video:["3000","2000","150"],audio:["2000","150"]},Hw=_.w(Object.keys(Ew)),Iw=Hw.next();!Iw.done;Iw=Hw.next()){var Sn=Iw.value,Jw=Ha;Sn!==Tn&&(Jw+="_"+Sn);var Kw=new _.pn(Jw),Lw=null;switch(Sn){case Tn:case Un:case Vn:Lw=on("V2");break;case Wn:Lw=null}Kw.gb(_.Xd,{licenseUrl:ao(_.Xd),videoRobustness:Fw.video,audioRobustness:Fw.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:Lw,modifiers:{licenseRequest:_.go,licenseResponse:_.lo}});Kw.gb(_.Sd,
551
+ {licenseUrl:ao(_.Sd),certificateUrl:Xn()+"/license-server-fairplay/cert/",modifiers:{licenseRequest:_.io,licenseResponse:_.jo,extractContentId:_.eo,certificateRequest:_.ko}});Kw.gb(_.Vd,{licenseUrl:ao(_.Vd),videoRobustness:Gw.video,audioRobustness:Gw.audio,modifiers:{licenseRequest:ho}});_.kn(Kw)};_.po.prototype.value=function(){void 0===this.a&&(this.a=this.f());return this.a};_.u=qo.prototype;_.u.getStatus=function(){return this.a};_.u.forEach=function(a){this.a&&a(this.a,Mw.value())};_.u.get=function(a){if(this.has(a))return this.a};_.u.has=function(a){var b=Mw.value();return this.a&&dk(a,b)?!0:!1};_.u.entries=function(){};_.u.keys=function(){};_.u.values=function(){};var Mw=new _.po(function(){return jk(new Uint8Array([0]))});var so=new _.po(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.Ue],[HTMLMediaElement.HAVE_CURRENT_DATA,_.Te],[HTMLMediaElement.HAVE_FUTURE_DATA,rd],[HTMLMediaElement.HAVE_ENOUGH_DATA,sd]])});_.u=uo.prototype;_.u.Ue=function(a){this.f=a};_.u.Td=function(a){var b=this.a;b&&b!==a&&xo(b,null);return(this.a=a)?xo(a,this.f):Promise.resolve()};_.u.df=function(){return this.a};_.u.$b=function(a,b){_.ci("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new vo(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.u.Sd=function(){return iq};vo.prototype.createMediaKeys=function(){var a=new wo(this.keySystem);return Promise.resolve(a)};
552
+ vo.prototype.getConfiguration=function(){_.ci("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};wo.prototype.createSession=function(a){a=void 0===a?zg:a;this.g.debug("Creating Apple MediaKeys Session");if(a!==zg)throw new TypeError("Session type "+a+ba);return new yo(this.h,"__session_"+this.j++)};wo.prototype.setServerCertificate=function(){this.g.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.x(yo,_.Am);_.u=yo.prototype;
553
+ _.u.generateRequest=function(a,b){var c=this;if(this.l)return Promise.reject(Wb);this.g.debug("generateRequest");this.h=new _.xk;try{var d=this.o.createSession(_.$g,_.bk(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,kh,function(e){var f=c.keyStatuses.getStatus();c.g.debug("Received Key Message in "+c.sessionId);c.h&&(c.h.resolve(),c.h=null);e=new _.L(_.Ze,{messageType:void 0===f||f===sg?Ne:Me,message:jk(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,ih,function(e){c.g.debug("onWebkitKeyAdded_",
554
+ e);c.f&&(zo(c,"usable"),c.f.resolve(),c.f=null)});this.j.on(d,jh,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===sg)c.g.warn("Ignoring webkit key error for session "+c.sessionId);else if(c.g.error("Received key error in session "+c.sessionId+" with code "+(c.a.error.code+". Session Status ")+(e+".")),e=Error("EME AppleEmeManager key error"),e.errorCode=c.a.error,null!==c.h)c.h.reject(e),c.h=null;else if(null!==c.f)c.f.reject(e),
555
+ c.f=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:zo(c,"output-not-allowed");break;default:zo(c,_.Je)}});zo(this,sg)}catch(e){this.h.reject(e)}return this.h};_.u.load=function(){this.g.debug(_.Se);return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.u.update=function(a){if(this.l)return Promise.reject(Wb);this.g.debug(Qg);this.f=new _.xk;try{this.a.update(_.bk(a))}catch(b){this.f.reject(b)}return this.f};
556
+ _.u.close=function(){if(this.l)return this.closed;this.g.info("Closing Key Session "+this.sessionId);this.l=!0;try{this.a.close(),this.closed.resolve(),_.zi(this.j)}catch(a){this.closed.reject(a)}return this.closed};_.u.remove=function(){this.g.debug("remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};Ao.prototype.a=function(){return iq};Ao.prototype.f=function(){return!!window.WebKitMediaKeys};
557
+ Ao.prototype.create=function(){return new uo};_.u=Bo.prototype;_.u.Ue=function(a){this.a=a};_.u.Td=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(wb)};_.u.df=function(){return this.a&&this.a.mediaKeys};
558
+ _.u.$b=function(a,b){var c=this;this.g.info("Requesting media key system access for",a,b.map(function(d){return Object.assign({},d,{drmInfos:d.drmInfos.map(function(){return"_anonymous_"})})}));return navigator.requestMediaKeySystemAccess(a,b)["catch"](function(d){c.g.info("Failed to request media key system access for "+(a+"."),d);return Promise.reject(d)})};_.u.Sd=function(){return Np};Co.prototype.a=function(){return Np};
559
+ Co.prototype.f=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};Co.prototype.create=function(){return new Bo};_.u=Do.prototype;_.u.Ue=function(a){this.a=a};_.u.Td=function(a){_.ci("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(wb);var b=this.f;b&&b!==a&&Io(b,null);(this.f=a)&&Io(a,this.a);return Promise.resolve()};_.u.df=function(){return this.f};_.u.$b=function(a,b){_.ci("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.r);c=d.length?d[0]:document.createElement(_.r)}var e=new Eo(this.h,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
560
+ _.u.Sd=function(){return Nw};Eo.prototype.createMediaKeys=function(){return Promise.resolve(new Fo(this.h,this.a))};Eo.prototype.getConfiguration=function(){return this.f};Fo.prototype.createSession=function(a){a=void 0===a?zg:a;if(a!==zg&&a!==_.uf)throw new TypeError("Session type "+a+ba);if(!this.a)throw a=Error("Media element is missing."),a.name=ob,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new Jo(this.h,this.a,this.o,a);this.j.push(a);return a};
561
+ Fo.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.x(Jo,_.Am);_.u=Jo.prototype;_.u.ready=function(){_.ci("WebkitEmeManager.MediaKeySession.ready");Ho(this,"usable");this.a&&this.a.resolve();this.a=null};_.u.generateRequest=function(a,b){_.ci("WebkitEmeManager.MediaKeySession.generateRequest");return Lo(this,b,null)};_.u.load=function(a){_.ci(mc);return this.l===_.uf?Lo(this,null,a):Promise.reject(Error(Eb))};_.u.update=function(a){_.ci(mc);var b=new _.xk;Mo(this,b,a);return b};
562
+ _.u.close=function(){_.ci("WebkitEmeManager.MediaKeySession.close");if(this.l!==_.uf){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=Ko(this,"cancelKeyRequest");try{this.j[a](this.h,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.u.remove=function(){_.ci("WebkitEmeManager.MediaKeySession.remove");return this.l!==_.uf?Promise.reject(Error(Eb)):this.close()};To.prototype.a=function(){return Nw};
563
+ To.prototype.f=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};To.prototype.create=function(){return new Do};_.u=Uo.prototype;_.u.Ue=function(){};_.u.Td=function(a){_.ci("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.u.df=function(){return null};_.u.$b=function(){_.ci("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.u.Sd=function(){return Ow};Vo.prototype.a=function(){return Ow};Vo.prototype.f=function(){return!0};Vo.prototype.create=function(){return new Uo};_.J(Kd,Wo);var Yo=new _.K(Kd),Xo=[];Xo=[new Co,new Ao,new To,new Vo].filter(function(a){return a.f()});var Np="STANDARD",iq="APPLE",Nw="WEBKIT",Ow="NOP";Wo.Apis={STANDARD:Np,APPLE:iq,WEBKIT:Nw,NOP:Ow};_.u=_.$o.prototype;_.u.Ma=function(a,b){var c=this.Z(a,b);return 1!==c.length?null:c[0]};_.u.bc=_.th(2);_.u.Z=function(a,b){return Array.from(a.childNodes).filter(function(c){return c instanceof Element&&c.tagName===b})};_.u.Hc=_.th(4);_.u.getAttributeNS=function(a,b,c){return a.hasAttributeNS(b,c)?a.getAttributeNS(b,c):null};_.u.sa=function(a){return Array.from(a.childNodes).every(function(b){return b.nodeType===Node.TEXT_NODE||b.nodeType===Node.CDATA_SECTION_NODE})?a.textContent.trim():null};
564
+ _.u.W=_.th(6);_.u.we=function(a,b){var c=new DOMParser,d=null;try{d=c.parseFromString(a,_.Bg)}catch(e){}if(!d)return null;c=d.documentElement;return b&&c.tagName!==b||0<d.getElementsByTagName("parsererror").length?null:c};_.u.af=_.th(8);_.u.nd=_.th(10);_.u.Af=_.th(12);_.u.removeChild=function(a,b){a.removeChild(b)};_.u.mf=_.th(14);_.u.lf=_.th(16);_.u.Bf=_.th(18);_.u.Ee=_.th(20);_.gp=new _.$o;_.Pw=new _.K("clpp.xml.Parser");_.Gm="dom";var cp;_.kp=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];cp=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.x(bp,ap);_.x(_.fp,ap);var mp=!!(performance&&performance.mark&&performance.measure),op=new _.K("clpp.perf");qp.prototype.j=function(a){if(1<a.version)_.Yh("Unrecognized PSSH version found!");else{var b=_.cn(_.Cn(a.reader,16)),c=[];if(0<a.version)for(var d=_.yn(a.reader),e=0;e<d;++e){var f=_.cn(_.Cn(a.reader,16));c.push(f)}d=_.yn(a.reader);a.reader.skip(d);this.h.push.apply(this.h,c);this.f.push(b);this.a.push({start:a.start,end:a.start+a.size-1});a.reader.getPosition()!==a.reader.Wa()&&_.Yh("Mismatch between box size and data size!")}};_.u=_.up.prototype;_.u.destroy=function(){var a=this;return _.I(function(b){if(1==b.a){if(a.j)return _.y(b,a.Ea,0);a.j=!0;return _.y(b,wp(a),4)}a.Ea.resolve();return b.F(0)})};_.u.keySystem=function(){return this.a?_.aq(this.a.keySystem):""};_.u.getDrmInfo=function(){return this.a};_.u.aj=function(a){var b=this;return _.I(function(c){return b.H&&b.L===xp?c["return"]():!b.f.delayLicenseRequestUntilPlayed||b.C&&!b.C.paused||b.kb?_.y(c,oq(b,a),0):(b.ga.push(a),c.F(0))})};
565
+ _.u.Wi=function(a){var b=this,c=a.target;this.g.info("Key status changed for session",c.sessionId);var d=this.h.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if(typeof h===_.ug){var l=h;h=g;g=l}if(hq(b.a.keySystem)&&16===h.byteLength&&_.Gl()){l=_.ik(h);var m=l.getUint32(0,!0),n=l.getUint16(4,!0),p=l.getUint16(6,!0);l.setUint32(0,m,!1);l.setUint16(4,n,!1);l.setUint16(6,p,!1)}d&&g!==sg&&(d.loaded=!0);d&&d.sb&&d.sb.resolve();"expired"===g&&(e=!0);l=_.bk(h);var q=_.cn(l);"00"===q&&d&&d.keyId?q=d.keyId:
566
+ b.a.keySystem.startsWith(_.Sd)&&16!==l.byteLength&&(q=_.T.fromCharCode(l));(l=q||"")?b.g.info(pb+q+"': "+g):b.g.info("Key status global keys: "+g);b.o.set(l,g);d&&!d.keyId&&b.h.forEach(function(t,v){v===c||t.keyId!==q||t.loaded||(t.loaded=!0)})});d&&d.loaded&&d.wb.forEach(function(g){b.o.get(g)===sg&&(b.g.warn(pb+g+ea),b.o.set(g,_.rf))});for(a=0;a<this.a.initData.length;a++){var f=this.a.initData[a];f.keyId&&this.o.get(f.keyId)===sg&&_.dn(f.initData,d.initData)&&(this.g.warn(pb+f.keyId+ea),this.o.set(f.keyId,
567
+ _.rf))}a=c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.zc&&(this.g.debug("Session has expired",c.sessionId),(a=this.h.get(c))&&a.qd&&a.qd.stop(),this.h["delete"](c),c.close()["catch"](function(){}));cq(this)&&(this.I.resolve(),1!==this.h.size||e?this.da.fa(.5):sp(this))};var xp=0,rp=3;_.vq=new Map;_.wq=new _.K("clpp.text");_.Fq.prototype.getStats=function(){return{width:this.A,height:this.j,streamBandwidth:this.w,decodedFrames:this.l,droppedFrames:this.o,corruptedFrames:this.C,estimatedBandwidth:this.h,loadLatency:this.B,playTime:Bq(this.a,_.Vq),pauseTime:Bq(this.a,_.Uq),bufferingTime:Bq(this.a,_.Mq),stateHistory:Cq(this.a),switchHistory:Eq(this.f)}};Kq.prototype.ab=function(a,b){this.m&&this.m.trigger(new _.L(a,{detail:b}))};Kq.prototype.getState=function(){return Nq(this,"")};Kq.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.m.namespace());this.a.release()};_.J("clpp.utils.media.detectType",Xq);var $q=new _.K("clpp.sources");_.x(ar,_.Lm);_.u=ar.prototype;_.u.init=function(a,b){_.Lm.prototype.init.call(this,a,b);this.j=new Kq(this);Rq(this.j,_.Hq)};_.u.namespace=function(){return Ld};
568
+ _.u.unload=function(){var a=this,b;return _.I(function(c){if(a.ba){a.log.debug("Releasing player with source",a.ba);a.B&&(a.B.stop(),a.B=null);(b=a.getTrackManager())&&b.release();a.A&&(a.A.destroy(),a.A=null);a.U&&(a.U.destroy(),a.U=null);a.l&&a.l.release();a.o&&(a.o.destroy(),a.o=null);_.zi(a.h);a.f&&(a.f=new _.Fq);a.C=null;a.ba=null;a.H=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());if(a.w)throw new _.O(_.P,7,7E3);if(a.a){var d=a.a;a.h.off(d,_.Ae);a.h.off(d,_.cg);a.a=null}}_.C(c)})};
569
+ _.u.release=function(){var a=this;return _.Lm.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.j&&Rq(a.j,_.Hq)})};
570
+ _.u.destroy=function(){var a=this;if(this.w)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.w=!0;return _.Lm.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Ka);var b=a.getTrackManager();b&&b.destroy();a.l&&(a.l.destroy()["catch"](function(c){a.log.warn("Error while disposing metadata handler",c)}),a.l=null);a.j&&(a.j.destroy(),a.j=null);a.f=null})};_.u.getDrmInfo=function(){return this.o?this.o.getDrmInfo():null};
571
+ _.u.getTrackManager=function(){return this.Od};
572
+ _.u.load=function(a){var b=this,c,d,e,f,g;return _.I(function(h){switch(h.a){case 1:if(b.w)return h["return"](Promise.reject(new _.O(_.P,7,7E3)));if(!b.getSurface()||!b.getSurface().getMedia())return h["return"](Promise.reject("No surface or no media element in surface"));c=_.N;d=b.G.getMedia();b.I=Date.now()/1E3;b.f=new _.Fq;b.h.on(b,_.rg,function(){b.f&&_.Aq(b.f.a,b.getState())});Rq(b.j,_.Tq);b.ba=_.Zq(a);b.configuration=_.Jm(b.kb,a);b.log.debug(_.tb,b.configuration);b.log.debug(_.Mb,b.ba);e=_.yq(b.configuration,
573
+ [_.He,"native"]);b.U=e.create(b);b.U.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.Nm(_.yg)&&!_.Nl()&&(b.A=new kj(b),b.A.start(d));b.l?b.l.release():b.l=new Bi(b);d.textTracks&&Di(b.l,d.textTracks);f=b.getTrackManager();f.load();d.loop=!!b.configuration.loop;c.R(b.configuration.volume)||b.setVolume(b.configuration.volume);c.R(b.configuration.muted)||b.setMuted(b.configuration.muted);b.h.one(d,rd,function(){b.trigger(new _.L(_.Ig))});null==b.configuration.startTime&&ir(b,d);_.Ll()&&jr(b,d);
574
+ _.D(h,2);cr(b,d);return _.y(h,fr(b),4);case 4:return _.y(h,hr(b).T,5);case 5:_.Jh(h,0);break;case 2:g=_.H(h),b.H=!1,b.onError(g),_.C(h)}})};_.u.onError=function(a){this.H||(a.severity===_.P&&null!==this.j&&Rq(this.j,_.Sq),this.trigger(new _.L(_.Ae,{detail:a})))};_.u.Uh=function(){return new gm};_.u.getState=function(){return null!==this.j?this.j.getState().currentState:_.Iq};
575
+ _.u.getPresentationStartTime=function(){if(this.a&&this.a.getStartDate&&this.isLive()){var a=this.a.getStartDate();return isNaN(a.getTime())?null:a.getTime()/1E3}return null};_.u.getSeekRange=function(){var a=this.getSurface().getMedia();if(a&&a.src){a=a.seekable;if(a.length)return this.C=a={start:a.start(0),end:a.end(a.length-1)};if(this.C)return this.C}return{start:0,end:0}};_.u.isLive=function(){return this.a&&this.a.src?Infinity===this.a.duration:!1};
576
+ _.u.getStats=function(){if(!this.f||!this.a)return _.Gq();this.f&&_.Aq(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.A=a.videoWidth;b.j=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.o=Number(a.droppedVideoFrames),b.l=c,this.f.C=Number(a.corruptedVideoFrames));if(a=this.getTrackManager())if(a=a.na())a.bandwidth&&(this.f.w=a.bandwidth),a.Nd&&(this.f.h=a.Nd);return this.f.getStats()};
577
+ _.u.getTimelineCues=function(){return this.l?this.l.getTimelineCues():[]};_.u.getCueTimeline=function(){return null};kr.prototype.a=function(){return Ld};kr.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.Xc,e=c===_.bd,f=c===_.mm;return _.Kl()||d||e||f&&!_.Ll()?0:""!==Ql().canPlayType(c)?f&&_.Ll()&&(window.ManagedMediaSource||window.MediaSource&&MediaSource.isTypeSupported)&&!b.streaming.preferNativeHlsOnSafari?1:2:0};kr.prototype.f=function(a){return a===_.qa};kr.prototype.create=function(){return new ar};
578
+ _.hi(new kr);_.J("clpp.ads.PodType",{PREROLL:0,MIDROLL:1,POSTROLL:2});_.J("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1,SERVER_GUIDED:2});_.J("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var mr=new _.K("clpp.ads"),lr=[];_.u=pr.prototype;_.u.load=function(){};_.u.start=function(){};_.u.kd=function(){};_.u.resume=function(){};_.u.pause=function(){};_.u.skip=function(){};_.u.getVolume=function(){};_.u.setVolume=function(){};_.u.getPosition=function(){};_.u.Ec=function(){};_.u.gd=function(){};_.J("clpp.ads.IAdsManager",pr);pr.prototype.getPosition=pr.prototype.getPosition;pr.prototype.setVolume=pr.prototype.setVolume;pr.prototype.getVolume=pr.prototype.getVolume;pr.prototype.skip=pr.prototype.skip;
579
+ pr.prototype.pause=pr.prototype.pause;pr.prototype.resume=pr.prototype.resume;_.u=qr.prototype;_.u.yb=function(){};_.u.zb=function(){};_.u.Db=function(){};_.u.getId=function(){};_.u.getCreativeId=function(){};_.u.cc=function(){};_.u.getApiFramework=function(){};_.u.getAdSystem=function(){};_.u.getAdvertiserName=function(){};_.u.getTitle=function(){};_.u.getDuration=function(){};_.u.getPosition=function(){};_.u.getSkipTimeOffset=function(){};_.u.gc=function(){};_.u.Ab=function(){};_.u.getMediaUrl=function(){};_.u.qb=function(){};_.u.pb=function(){};_.u.Xa=function(){};
580
+ _.u.Ya=function(){};_.u.getPodIndex=function(){};_.u.Pb=function(){};_.u.Cb=function(){};_.u.rb=function(){};_.u.getWrapperAdIds=function(){};_.u.getWrapperAdSystems=function(){};_.u.getWrapperCreativeIds=function(){};_.u.fc=function(){};_.u.canSeek=function(){};_.J("clpp.ads.IAd",qr);qr.prototype.canSeek=qr.prototype.canSeek;qr.prototype.getVideoElement=qr.prototype.fc;qr.prototype.getWrapperCreativeIds=qr.prototype.getWrapperCreativeIds;qr.prototype.getWrapperAdSystems=qr.prototype.getWrapperAdSystems;
581
+ qr.prototype.getWrapperAdIds=qr.prototype.getWrapperAdIds;qr.prototype.getSequenceLength=qr.prototype.rb;qr.prototype.getPositionInSequence=qr.prototype.Cb;qr.prototype.getPodTimeOffset=qr.prototype.Pb;qr.prototype.getPodIndex=qr.prototype.getPodIndex;qr.prototype.getPodType=qr.prototype.Ya;qr.prototype.getMediaBitrate=qr.prototype.Xa;qr.prototype.getMediaHeight=qr.prototype.pb;qr.prototype.getMediaWidth=qr.prototype.qb;qr.prototype.getMediaUrl=qr.prototype.getMediaUrl;
582
+ qr.prototype.getClickThroughUrl=qr.prototype.Ab;qr.prototype.isBumper=qr.prototype.gc;qr.prototype.getSkipTimeOffset=qr.prototype.getSkipTimeOffset;qr.prototype.getPosition=qr.prototype.getPosition;qr.prototype.getDuration=qr.prototype.getDuration;qr.prototype.getTitle=qr.prototype.getTitle;qr.prototype.getAdvertiserName=qr.prototype.getAdvertiserName;qr.prototype.getAdSystem=qr.prototype.getAdSystem;qr.prototype.getApiFramework=qr.prototype.getApiFramework;qr.prototype.getSourceId=qr.prototype.cc;
583
+ qr.prototype.getCreativeId=qr.prototype.getCreativeId;qr.prototype.getId=qr.prototype.getId;qr.prototype.getTechnology=qr.prototype.Db;qr.prototype.getAdManagerVersion=qr.prototype.zb;qr.prototype.getAdManagerName=qr.prototype.yb;_.u=rr.prototype;_.u.yb=function(){return""};_.u.zb=function(){return""};_.u.Db=function(){return 2};_.u.getId=function(){return this.B};_.u.getCreativeId=function(){return""};_.u.cc=function(){return this.G};_.u.getApiFramework=function(){return null};_.u.getAdSystem=function(){return""};_.u.getAdvertiserName=function(){return""};_.u.getTitle=function(){return""};_.u.getDuration=function(){return this.a};_.u.getPosition=function(){return this.j};_.u.getSkipTimeOffset=function(){return-1};
584
+ _.u.canSeek=function(){return this.A};_.u.gc=function(){return!1};_.u.Ab=function(){return null};_.u.getMediaUrl=function(){return null};_.u.qb=function(){return 0};_.u.pb=function(){return 0};_.u.Xa=function(){return 0};_.u.Ya=function(){return this.C};_.u.getPodIndex=function(){return 0};_.u.Pb=function(){return 0};_.u.Cb=function(){return this.h};_.u.rb=function(){return this.f};_.u.getWrapperAdIds=function(){return[]};_.u.getWrapperAdSystems=function(){return[]};_.u.getWrapperCreativeIds=function(){return[]};
585
+ _.u.fc=function(){return this.videoEl};rr.prototype.getVideoElement=rr.prototype.fc;rr.prototype.getWrapperCreativeIds=rr.prototype.getWrapperCreativeIds;rr.prototype.getWrapperAdSystems=rr.prototype.getWrapperAdSystems;rr.prototype.getWrapperAdIds=rr.prototype.getWrapperAdIds;rr.prototype.getSequenceLength=rr.prototype.rb;rr.prototype.getPositionInSequence=rr.prototype.Cb;rr.prototype.getPodTimeOffset=rr.prototype.Pb;rr.prototype.getPodIndex=rr.prototype.getPodIndex;rr.prototype.getPodType=rr.prototype.Ya;
586
+ rr.prototype.getMediaBitrate=rr.prototype.Xa;rr.prototype.getMediaHeight=rr.prototype.pb;rr.prototype.getMediaWidth=rr.prototype.qb;rr.prototype.getMediaUrl=rr.prototype.getMediaUrl;rr.prototype.getClickThroughUrl=rr.prototype.Ab;rr.prototype.isBumper=rr.prototype.gc;rr.prototype.canSeek=rr.prototype.canSeek;rr.prototype.getSkipTimeOffset=rr.prototype.getSkipTimeOffset;rr.prototype.getPosition=rr.prototype.getPosition;rr.prototype.getDuration=rr.prototype.getDuration;rr.prototype.getTitle=rr.prototype.getTitle;
587
+ rr.prototype.getAdvertiserName=rr.prototype.getAdvertiserName;rr.prototype.getAdSystem=rr.prototype.getAdSystem;rr.prototype.getApiFramework=rr.prototype.getApiFramework;rr.prototype.getSourceId=rr.prototype.cc;rr.prototype.getCreativeId=rr.prototype.getCreativeId;rr.prototype.getId=rr.prototype.getId;rr.prototype.getTechnology=rr.prototype.Db;rr.prototype.getAdManagerVersion=rr.prototype.zb;rr.prototype.getAdManagerName=rr.prototype.yb;sr.prototype.has=function(){return this.a.some(function(a){return a.Re})};sr.prototype.get=function(){var a=this,b;return _.I(function(c){if(1==c.a){b=a.a.find(function(d){return d.Re});if(!b)throw Error("No available players in the pool");b.Re=!1;return _.y(c,b.ready,2)}return c["return"](b.player)})};
588
+ sr.prototype.release=function(a){var b=this,c=this.a.find(function(d){return d.player===a});if(!c)return Promise.resolve();c.Re=!0;c.ready=new Promise(function(d){a.release()["catch"](function(e){b.g.error("Failed to unload player",e)}).then(d)});return c.ready};sr.prototype.destroy=function(){var a=this;return _.I(function(b){return _.y(b,Promise.all(a.a.map(function(c){return c.player.destroy()})),0)})};_.J("clpp.utils.dom.createHTMLElement",_.wr);xr.prototype.set=function(a){this.h.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=zr(this,a)};xr.prototype.get=function(){return this.a};_.u=Dr.prototype;_.u.getMedia=function(){return this.f.get()};_.u.getContainer=function(){return this.a.get()};_.u.getSafeContainer=function(){return this.a};_.u.getId=function(){return this.l};_.u.getUniqueCssClass=function(){return this.o};_.u.getCastElement=function(){return this.h};_.u.isFullscreen=function(){return!!document.fullscreenElement};_.u.hideMediaElement=function(){var a=this.getMedia();a?_.ur(a,Dd):this.g.debug("No media element available that could be hidden")};
589
+ _.u.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(Dd):this.g.debug("No media element available that could be shown")};_.u.addElementToContainer=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.getContainer();if(!d)throw Error("No container is available. Unable to add element");b&&_.ur(a,_.Cd);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
590
+ _.u.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.u.hide=function(a){_.ur(a,Dd)};_.u.show=function(a){a.classList.remove(Dd)};_.u.release=function(){this.j.release()};Dr.prototype.removeElementFromContainer=Dr.prototype.removeElementFromContainer;Dr.prototype.addElementToContainer=Dr.prototype.addElementToContainer;Dr.prototype.getCastElement=Dr.prototype.getCastElement;
591
+ Dr.prototype.getContainer=Dr.prototype.getContainer;Dr.prototype.getMedia=Dr.prototype.getMedia;var Ar={disableContainer:!1,webOSStartupPatch:!0,crossorigin:"anonymous",containerEl:null},Br=1;_.u=Ir.prototype;_.u.getCurrentItem=function(){return this.f};_.u.bf=function(){return this.f?this.f.player:null};_.u.li=function(){return Array.from(this.l.values())};_.u.le=function(){return 0<this.l.size};_.u.play=function(a){return Kr(this,a,_.wf)};_.u.load=function(a){return Kr(this,a,_.Se)};_.u.release=function(){var a=this;return _.I(function(b){if(1==b.a)return _.y(b,Promise.all([as(a),a.f?$r(a,a.f):Promise.resolve()]),2);a.f=null;a.A=!1;Qr(a);_.C(b)})};
592
+ _.u.destroy=function(){var a=this;return _.I(function(b){if(1==b.a)return a.g.info("Destroy"),_.y(b,a.release(),2);if(3!=b.a)return _.y(b,a.o.destroy(),3);os(a);_.C(b)})};_.u.isMuted=function(){return this.C};var is="preload",ks=_.We,Ur="primary",Tr="ad";_.x(vs,_.Am);_.u=vs.prototype;_.u.destroy=function(){var a=this;return _.I(function(b){Is(a);a.f=[];a.o=!1;a.j.setSeekInterceptor(null);return _.y(b,a.a.destroy(),0)})};_.u.Sb=function(){return this.o};_.u.setMuted=function(a){var b=this.a;(b.C=a)?(b.a.setMuted(!0),ns(b,!0)):(a=(a=b.getCurrentItem())?a.Oa:null,Sr(b,a,a?Tr:Ur))};_.u.isMuted=function(){return this.a.isMuted()};_.u.isLive=function(){var a=this.a.bf();return a?a.isLive():null};_.u.ab=function(a){this.j.trigger(a)};
593
+ var Hs=0,Os=1,Qs=2,Rs=3,Us=4,Ws=5,Xs=6;_.u=Zs.prototype;_.u.load=function(){return Promise.resolve()};_.u.start=function(){return Promise.resolve()};_.u.kd=function(a,b,c){var d=a.getConfiguration();a=Object.assign({},{config:d,player:a,ob:b},d.ads.hls||{},{$n:c});this.a=new vs(a);ys(this.a)};_.u.setMuted=function(a){this.a&&this.a.setMuted(a)};_.u.isMuted=function(){return this.a?this.a.isMuted():!0};_.u.resume=function(){var a=ws(this.a);a&&a.play()};_.u.pause=function(){var a=ws(this.a);a&&a.pause()};_.u.skip=function(){};
594
+ _.u.getVolume=function(){var a=ws(this.a);return a?a.getVolume()||0:0};_.u.setVolume=function(a){var b=ws(this.a);if(b)return b.setVolume(a)};_.u.getPosition=function(){var a=ws(this.a);return a?a.getPosition():-1};_.u.gd=function(){return!this.a.Sb()};_.u.Ec=function(){return this.a.destroy()};Zs.prototype.getPosition=Zs.prototype.getPosition;Zs.prototype.setVolume=Zs.prototype.setVolume;Zs.prototype.getVolume=Zs.prototype.getVolume;Zs.prototype.skip=Zs.prototype.skip;Zs.prototype.pause=Zs.prototype.pause;
595
+ Zs.prototype.resume=Zs.prototype.resume;bt.prototype.release=function(){this.a.release();ft(this);this.m=null};var ht=[];var mt={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},Em="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";var Bt="vod",At="live";var Jt,Ht,It;Et.prototype.release=function(){this.a=null;this.f.ze(this.h)};_.Qw="maxSuggestedBitrateKbps";Jt={du:"duress",etp:_.Be,mb:_.Qw,rd:"responseDelay",rtt:"roundTripTime"};Ht={at:"availabilityTime",br:"encodedBitrateKbps",ht:"heldTime",n:"intermediaryIdentifier",nor:"nextObjectResponse",nrr:"nextRangeResponse",d:"objectDuration",ot:"objectType",su:"startup",st:"streamType",sf:"streamingFormat",v:Wg};It=new _.K("clpp.net.CmsdManager");_.x(X,_.Am);_.u=X.prototype;_.u.on=function(a,b,c){return _.Am.prototype.on.call(this,a,b,c)};_.u.one=function(a,b,c){return _.Am.prototype.one.call(this,a,b,c)};_.u.off=function(a,b){return _.Am.prototype.off.call(this,a,b)};_.u.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.L(_.Ae,{detail:a}))};_.u.ge=function(a){a=this.L[a];void 0===a&&(a=null);return a};_.u.getSurface=function(){return this.j};_.u.getConfiguration=function(){return _.N.nb(this.f)};
596
+ _.u.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.u.detach=function(){return this.a?this.a.detach():Promise.resolve()};_.u.release=function(){var a=this;if(null!=this.l)return this.g.info("Player release already in progress"),this.l;this.g.debug("Releasing player");this.l=Qt(this);return this.l["finally"](function(){$t(a);a.g.debug("Player released");a.l=null})};
597
+ _.u.destroy=function(){var a=this;if(this.U)return this.g.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.U=!0;return this.release().then(function(){a.g.debug(Ka);a.trigger(new _.L("destroying"));return a.Rc(_.lf)}).then(function(){a.a&&a.a.stopForwardingEventsTo(a);a.ae.clear();a.kb.release();if(a.a)return a.a.destroy()}).then(function(){return a.J.destroy()}).then(function(){Vm();a.a=null;a.A=null;a.trigger(new _.L("destroyed"))})};
598
+ _.u.load=function(a){var b=this,c,d,e;return _.I(function(f){switch(f.a){case 1:_.D(f,2);_.np(Ef);b.P=_.qa;b.ja=!0;c=_.Zq(a);d=Km(a)?a:{};if(d.license)throw new _.O(_.P,7,7100,"License cannot be passed into the load method.");return _.y(f,_.Yt(b,d,c),4);case 4:return _.y(f,_.Zt(b),5);case 5:return _.y(f,_.Tt(b),6);case 6:_.np(Df);_.pp("player.load",Ef,Df);_.Jh(f,0);break;case 2:e=_.H(f);$t(b);if(b.l)throw b.g.info(sb),new _.O(_.P,7,7E3);throw e;}})};
599
+ _.u.preload=function(a){var b=this,c;return _.I(function(d){if(1==d.a)return _.y(d,_.Yt(b,a),2);if(!b.a)return b.g.warn(Lb),d["return"]();c=b.a;return c.preload?_.y(d,c.preload(b.f),0):(b.g.warn(Pb),d["return"]())})};_.u.Rc=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];if(!this.ja)return Promise.resolve();var e=this;d=this.ga.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.vh(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};
600
+ _.u.use=function(a){(a=Wm(a))&&a.o(this)};_.u.remove=function(a){return(this.getState()<=_.Hq||this.Y)&&null!==Qm(a)?(Xm(a),this.ca=!0):!1};_.u.play=function(){return this.a?!this.h||this.h instanceof Zs||this.a.namespace()===_.Hd?this.a.play():this.h.start(this.a):Promise.reject("No player initialized. You need to load content before calling play.")};_.u.pause=function(){return this.a?this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};
601
+ _.u.getTrackManager=function(){return this.a&&this.a.getTrackManager()};_.u.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.zm};_.u.getState=function(){return this.a?this.a.getState():_.Hq};_.u.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.u.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.u.isPaused=function(){return this.a&&this.a.isPaused()||!1};_.u.getPosition=function(){return this.a?this.a.getPosition():0};
602
+ _.u.seek=function(a){return this.getState()===_.Sq?Promise.reject("Cannot seek in current state."):this.a?this.a.seek(a):Promise.reject("delegate does not exist")};_.u.getPresentationStartTime=function(){return this.a?this.a.getPresentationStartTime():null};_.u.getSeekRange=function(){return this.a?this.a.getSeekRange():{start:0,end:0}};_.u.Kc=function(){var a=this.a;return a&&a.Kc?a.Kc():null};_.u.getVolume=function(){return this.a?this.a.getVolume():null};_.u.setVolume=function(a){this.a&&this.a.setVolume(a)};
603
+ _.u.getDuration=function(){return this.a?this.a.getDuration():-1};_.u.getAdsManager=function(){return this.h};_.u.namespace=function(){return this.a&&this.a.namespace()||"Undefined"};_.u.getPlaybackRate=function(){return this.a?this.a.getPlaybackRate():1};_.u.setPlaybackRate=function(a,b){this.a&&this.a.setPlaybackRate(a,b)};_.u.isMuted=function(){return this.h&&this.h instanceof Zs?this.h.isMuted():this.a&&this.a.isMuted()||!1};
604
+ _.u.setMuted=function(a){this.a&&this.a.setMuted(a);this.h&&this.h instanceof Zs&&this.h.setMuted(a)};_.u.getNetworkEngine=function(){return this.J};_.u.setNetworkEngine=function(a){this.J=a};_.u.getTextDisplayer=function(){return this.a&&this.a.getTextDisplayer()};_.u.isLive=function(){return!!this.a&&this.a.isLive()};_.u.getStats=function(){return this.a?this.a.getStats():null};_.u.si=function(){return Object.freeze(this.Ea)};_.u.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};
605
+ _.u.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.u.getCueTimeline=function(){return this.a?this.a.getCueTimeline():null};_.u.resetAbr=function(){this.a&&this.a.resetAbr()};_.u.setDrmCustomDataModifier=function(a){this.td=a;Wt(this)};_.u.setCdnErrorCallback=function(a){this.M=a;this.a&&this.a.setCdnErrorCallback(this.M)};_.u.Ri=function(){this.fg=!0};_.J("clpp.Player",X);X.registerPlugin=_.cu;X.prototype.setCdnErrorCallback=X.prototype.setCdnErrorCallback;
606
+ X.prototype.setDrmCustomDataModifier=X.prototype.setDrmCustomDataModifier;X.prototype.resetAbr=X.prototype.resetAbr;X.prototype.getTimelineCues=X.prototype.getTimelineCues;X.prototype.getLoadedSource=X.prototype.getLoadedSource;X.prototype.getSources=X.prototype.si;X.prototype.getStats=X.prototype.getStats;X.prototype.isLive=X.prototype.isLive;X.prototype.getTextDisplayer=X.prototype.getTextDisplayer;X.prototype.setNetworkEngine=X.prototype.setNetworkEngine;X.prototype.getNetworkEngine=X.prototype.getNetworkEngine;
607
+ X.prototype.setMuted=X.prototype.setMuted;X.prototype.isMuted=X.prototype.isMuted;X.prototype.setPlaybackRate=X.prototype.setPlaybackRate;X.prototype.getPlaybackRate=X.prototype.getPlaybackRate;X.prototype.namespace=X.prototype.namespace;X.prototype.getAdsManager=X.prototype.getAdsManager;X.prototype.getDuration=X.prototype.getDuration;X.prototype.setVolume=X.prototype.setVolume;X.prototype.getVolume=X.prototype.getVolume;X.prototype.getTimelineOffset=X.prototype.Kc;X.prototype.getSeekRange=X.prototype.getSeekRange;
608
+ X.prototype.getPresentationStartTime=X.prototype.getPresentationStartTime;X.prototype.seek=X.prototype.seek;X.prototype.getPosition=X.prototype.getPosition;X.prototype.isPaused=X.prototype.isPaused;X.prototype.isEnded=X.prototype.isEnded;X.prototype.getState=X.prototype.getState;X.prototype.getBufferInfo=X.prototype.getBufferInfo;X.prototype.getTrackManager=X.prototype.getTrackManager;X.prototype.pause=X.prototype.pause;X.prototype.play=X.prototype.play;X.prototype.remove=X.prototype.remove;
609
+ X.prototype.use=X.prototype.use;X.prototype.load=X.prototype.load;X.prototype.destroy=X.prototype.destroy;X.prototype.release=X.prototype.release;X.prototype.getDrmInfo=X.prototype.getDrmInfo;X.prototype.getConfiguration=X.prototype.getConfiguration;X.prototype.getSurface=X.prototype.getSurface;X.prototype.getPlugin=X.prototype.ge;X.prototype.off=X.prototype.off;X.prototype.one=X.prototype.one;X.prototype.on=X.prototype.on;_.Hq=0;_.Tq=1;_.Mq=2;_.Vq=3;_.Uq=4;_.Oq=5;_.Sq=6;_.Iq=7;
610
+ _.Qq={IDLE:_.Hq,PREPARING:_.Tq,BUFFERING:_.Mq,PLAYING:_.Vq,PAUSED:_.Uq,ENDED:_.Oq,ERROR:_.Sq,UNSET:_.Iq};X.State=_.Qq;var Mt=[];_.x(du,X);_.u=du.prototype;
611
+ _.u.open=function(a,b){var c=this,d,e,f,g,h,l,m;return _.I(function(n){if(1==n.a){if(c.w)throw new _.O(_.P,7,7008,"Cannot call open() while "+c.w+fa);if(0!==a)throw new _.O(_.P,7,7007,"The index parameter only supports the value of 0.");if(0===b.length)throw new _.O(_.P,7,7003,Cb);if(b.some(function(p){return!p.id||!p.source}))throw new _.O(_.P,7,7100,"Some config is missing required properties `id` or `source`!");d=new Set(b.map(function(p){return p.id}));if(d.size!==b.length)throw new _.O(_.P,7,
612
+ 7100,"Some config contains a non-unique property `id`!");if(e=b[0].playlist){f=e.timeline;g=["flat","basic"];if(f&&!g.includes(f))throw new _.O(_.P,7,7100,"Unsupported `playlist.timeline` config value!");h=e.startTime;if(null!=h&&(typeof h!==_.k||0>h))throw new _.O(_.P,7,7100,"Invalid `playlist.startTime` config value!");l=e.endTime;if(null!=l&&(typeof l!==_.k||0>l||null!=h&&l<=h))throw new _.O(_.P,7,7100,"Invalid `playlist.endTime` config value!");m=e.content;if("DVR"===m&&!l)throw new _.O(_.P,7,
613
+ 7100,"`playlist.endTime` config value is required for DVR content!");}_.Ih(n);eu(c);c.w="open";return _.y(n,iu(c,b),4)}2!=n.a&&(c.I=0,c.o=b,c.da=!0,fu(c,b[0].playlist||{}));_.Kh(n);c.w=null;return _.Lh(n)})};
614
+ _.u.Oj=function(a){var b=this,c;return _.I(function(d){if(1==d.a){if(b.w)throw new _.O(_.P,7,7008,"Cannot call addItem() while "+b.w+fa);if(!b.da)throw new _.O(_.P,7,7008,"open() must be called before addItem()!");if(!a.id||!a.source)throw new _.O(_.P,7,7100,"The config is missing required properties `id` or `source`!");c=new Set(b.o.map(function(e){return e.id}));if(c.has(a.id))throw new _.O(_.P,7,7100,"A config with this `id` already exists in the playlist!");_.Ih(d);b.w="addItem";b.o.push(a);return _.y(d,
615
+ ju(b,a),2)}_.Kh(d);b.w=null;return _.Lh(d)})};_.u.getCurrentItem=function(){return this.o[this.I]||null};_.u.getCurrentItemIndex=function(){return this.I};_.u.im=function(){return _.vh(this.o).concat()};_.u.he=function(){return this.o.length};_.u.getTimeline=function(){return this.a?this.a.getTimeline():null};_.u.seekWith=function(a){return this.a?this.a.seekWith(a):Promise.resolve()};_.u.release=function(){this.o=[];this.I=0;this.da=!1;return X.prototype.release.call(this)};
616
+ _.u.destroy=function(){eu(this);return X.prototype.destroy.call(this)};_.u.setCdnErrorCallback=function(){throw new _.O(1,7,7009,"CDN switching is not supported!");};_.J("clpp.plist.ScPlaylist",du);du.prototype.setCdnErrorCallback=du.prototype.setCdnErrorCallback;du.prototype.destroy=du.prototype.destroy;du.prototype.release=du.prototype.release;du.prototype.seekWith=du.prototype.seekWith;du.prototype.getTimeline=du.prototype.getTimeline;du.prototype.getSize=du.prototype.he;
617
+ du.prototype.getPlaylist=du.prototype.im;du.prototype.getCurrentItemIndex=du.prototype.getCurrentItemIndex;du.prototype.getCurrentItem=du.prototype.getCurrentItem;du.prototype.addItem=du.prototype.Oj;du.prototype.open=du.prototype.open;_.x(mu,_.Am);_.u=mu.prototype;_.u.fe=function(){return this.f};_.u.bf=function(){return this.f?this.f.player:null};_.u.ji=function(){return this.o.get(this.a+1)||null};_.u.mi=function(){return this.o.get(this.a-1)||null};_.u.li=function(){return[this.mi(),this.ji()].filter(Boolean)};_.u.vo=function(a){if(0<this.j.length)throw Error("Cannot re-set items in the playlist");this.g.info("Set items",a);this.j=a.map(function(b,c){return{config:b,index:c,preloadPromise:Promise.resolve(),disposers:[]}})};
618
+ _.u.uo=function(a){if(0===this.j.length)throw Error(Bb);if(0>a||a>this.j.length-1)throw Error("Index out of bounds");this.a=a};_.u.le=function(){return this.a<this.j.length-1};_.u.vi=function(){return 0<this.a};
619
+ _.u.Yn=function(){var a=this,b,c;return _.I(function(d){switch(d.a){case 1:if(a.l)return a.g.warn("Cannot play first item while busy"),d["return"]();if(0===a.j.length)return a.g.warn(Bb),d["return"]();a.l=!0;a.g.info("First (index: "+a.a+")");b=a.j[a.a];_.D(d,2,3);a.g.info("First loading (index: "+a.a+")");return _.y(d,uu(a,b),5);case 5:a.g.info("First playing (index: "+a.a+")");case 3:_.Kh(d);a.l=!1;zu(a);_.Lh(d);break;case 2:throw c=_.H(d),a.g.error("First failed (index: "+a.a+")"),c;}})};
620
+ _.u.kj=function(){var a=this,b,c,d;return _.I(function(e){switch(e.a){case 1:if(a.l)return a.g.warn("Cannot play next item while busy"),e["return"]();if(!a.le())return a.g.warn("There are no more items in the playlist"),e["return"]();a.l=!0;a.a+=1;a.g.info("Next (index: "+a.a+")");b=a.f;a.h.transition===_.sf&&b.player.pause();nu(a,a.a+-2);a.o["delete"](a.a);c=a.j[a.a];_.D(e,2,3);a.g.info("Next loading (index: "+a.a+")");return _.y(e,vu(a,c),5);case 5:a.g.info("Next playing (index: "+a.a+")");case 3:_.Kh(e);
621
+ a.l=!1;b&&ru(a,b);zu(a);_.Lh(e);break;case 2:throw d=_.H(e),a.g.error("Next failed (index: "+a.a+")"),d;}})};
622
+ _.u.Zn=function(){var a=this,b,c,d;return _.I(function(e){switch(e.a){case 1:if(a.l)return a.g.warn("Cannot play previous item while busy"),e["return"]();if(!a.vi())return a.g.warn("There are no more previous items in the playlist"),e["return"]();a.l=!0;--a.a;a.g.info("Previous (index: "+a.a+")");b=a.f;a.h.transition===_.sf&&b.player.pause();nu(a,a.a+2);a.o["delete"](a.a);c=a.j[a.a];_.D(e,2,3);a.g.info("Previous loading (index: "+a.a+")");return _.y(e,vu(a,c),5);case 5:a.g.info("Previous playing (index: "+
623
+ a.a+")");case 3:_.Kh(e);a.l=!1;b&&ru(a,b);zu(a);_.Lh(e);break;case 2:throw d=_.H(e),a.g.error("Previous failed (index: "+a.a+")"),d;}})};_.u.destroy=function(){var a=this;return _.I(function(b){return 1==b.a?(a.g.info("Destroy"),_.y(b,Promise.all([ou(a),a.f?ru(a,a.f):Promise.resolve()]),2)):_.y(b,Au(a),0)})};_.J(Md,mu);mu.prototype.destroy=mu.prototype.destroy;mu.prototype.playPrev=mu.prototype.Zn;mu.prototype.playNext=mu.prototype.kj;mu.prototype.playFirst=mu.prototype.Yn;mu.prototype.hasPrev=mu.prototype.vi;
624
+ mu.prototype.hasNext=mu.prototype.le;mu.prototype.setIndex=mu.prototype.uo;mu.prototype.setItems=mu.prototype.vo;mu.prototype.getPreloading=mu.prototype.li;mu.prototype.getPrev=mu.prototype.mi;mu.prototype.getNext=mu.prototype.ji;mu.prototype.getCurrentPlayer=mu.prototype.bf;mu.prototype.getCurrent=mu.prototype.fe;var qu="preload",su=_.We;var Bu=new Map;_.u=Du.prototype;_.u.destroy=function(){this.a.dispose();this.a=null};_.u.reset=function(){this.a=new muxjs.mp4.Transmuxer(this.f)};_.u.isSupported=function(a,b){var c="mp2t"===a.toLowerCase().split(";")[0].split("/")[1],d=a.toLowerCase().split(";")[0]===_.ed;if(!window.muxjs||!c&&!d)return!1;if(d)return _.Cu(id);if(b)return _.Cu(Eu(b,a));c=Eu(_.dd,a);d=Eu(_.r,a);return _.Cu(c)||_.Cu(d)};_.u.isMuxed=function(a,b){return 1<this.demuxMimeTypes(a,b).size};
625
+ _.u.demuxMimeTypes=function(a,b){var c=new Map;c.set(a,b);try{var d=_.Dl(b),e=_.El(b).split(","),f=new Map,g=Ej(_.dd,e),h=Ej(_.r,e);g&&f.set(_.dd,this.convertCodecs(_.dd,_.Cl(d,g)));h&&f.set(_.r,this.convertCodecs(_.r,_.Cl(d,h)));return f}catch(l){return c}};_.u.convertCodecs=function(a,b){return b.toLowerCase().split(";")[0]===_.ed?id:"mp2t"===b.toLowerCase().split(";")[0].split("/")[1]?Eu(a,b):b};_.u.getOriginalMimeType=function(){return this.h};
626
+ _.u.transmux=function(a){function b(){g={video:_.en.apply(Ym,_.vh(d)),captions:f,audio:_.en.apply(Ym,_.vh(e))}}function c(h){f=h.captions;var l=new Uint8Array(h.data.byteLength+h.initSegment.byteLength);l.set(h.initSegment,0);l.set(h.data,h.initSegment.byteLength);h.type===Rw?d.push(l):h.type===Sw&&e.push(l)}var d=[],e=[],f=[],g=null;a=_.bk(a);this.a.on("data",c);this.a.on("done",b);this.a.push(a);this.a.flush();this.a.off("data",c);this.a.off("done",b);if(!g)throw new _.O(_.P,3,3018);return g};
627
+ xl(_.ed,function(){return new Du(_.ed)});xl(_.Zg,function(){return new Du(_.Zg)});var Sw=_.dd,Rw=_.r;Fu.prototype.getCuePoints=function(){};Fu.prototype.Sb=function(){};Fu.prototype.Rb=function(){};_.J("clpp.ads.IAdsTimeline",Fu);Fu.prototype.hasPostroll=Fu.prototype.Rb;Fu.prototype.hasPreroll=Fu.prototype.Sb;Fu.prototype.getCuePoints=Fu.prototype.getCuePoints;_.Gu.prototype.f=function(){};_.Gu.prototype.a=function(){};_.Gu.prototype.h=function(){};_.Gu.prototype.o=function(){};_.x(Hu,_.pn);Hu.prototype.ve=function(a,b){for(var c=a.drm.customData.headers||{},d=_.w(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};Hu.prototype.ai=function(a,b){var c=Ln(b);switch(this.o){case Tw:return c;case Uw:return(new _.$k(c)).a;default:throw Error("Unknown content ID strategy");}};Hu.prototype.Ui=function(a,b){b.headers[Aa]=cd;this.ve(a,b);var c={spc:_.Zm(b.body)};b.body=_.T.Ed(_.bl(c,!0))};
628
+ Hu.prototype.Vi=function(a,b){var c=_.T.ea(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.an(c).buffer};_.J(Id,Hu);Hu.prototype.onFairPlayLicenseResponse=Hu.prototype.Vi;Hu.prototype.onFairPlayLicenseRequest=Hu.prototype.Ui;Hu.prototype.extractFairPlayContentId=Hu.prototype.ai;Hu.prototype.onLicenseRequest=Hu.prototype.ve;Hu.prototype.constructor=Hu.prototype.constructor;Hu.NAME=kb;var Uw="hostname",Tw="full-skd";
629
+ Hu.FairPlayContentIdStrategy={HOSTNAME:Uw,FULL_SKD:Tw};_.x(Iu,_.Gu);Iu.prototype.h=function(a){a=a.getConfiguration();if(a.drm&&a.drm&&a.drm.env===kb){a=a.drm.customData;if(!a)throw new _.O(_.P,7,7100,_.Yd);a=new Hu(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||Tw);_.kn(a)}};Iu.prototype.a=function(){delete _.jn.HeaderDrm};Iu.prototype.id=function(){return"headerdrm"};_.J("clpp.drm.HeaderDrmComponent",Iu);_.jt(function(){ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(a,b){b=void 0!==b?b:this.byteLength;a=Math.floor(a);b=Math.floor(b);0>a&&(a+=this.byteLength);0>b&&(b+=this.byteLength);a=Math.min(Math.max(0,a),this.byteLength);b=Math.min(Math.max(0,b),this.byteLength);if(0>=b-a)return new ArrayBuffer(0);var c=new ArrayBuffer(b-a),d=_.bk(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});_.jt(function(){_.ci("mathRound.install")});_.jt(function(){if(window.Document){var a=Element.prototype;a.requestFullscreen=a.requestFullscreen||a.mozRequestFullScreen||a.msRequestFullscreen||a.webkitRequestFullscreen;a=Document.prototype;a.exitFullscreen=a.exitFullscreen||a.mozCancelFullScreen||a.msExitFullscreen||a.webkitExitFullscreen;De in document||(Object.defineProperty(document,De,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
630
+ {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",Ju);document.addEventListener("webkitfullscreenerror",Ju);document.addEventListener("mozfullscreenchange",Ju);document.addEventListener("mozfullscreenerror",Ju);document.addEventListener("MSFullscreenChange",Ju);document.addEventListener("MSFullscreenError",Ju)}});_.jt(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.ci("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=Lu,document.exitPictureInPicture=Mu,document.addEventListener("webkitpresentationmodechanged",Ku,!0))}});_.jt(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=Nu)}});_.jt(function(){if(window.VTTCue)_.bi("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.bi(ic),window.VTTCue=Ou;else if(6===a)_.bi("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=Pu;else{try{var b=!!Ou(1,2,"")}catch(c){b=!1}b&&(_.bi(ic),window.VTTCue=Ou)}}else _.di("VTTCue not available.")});var Qu;_.jt(function(){_.ci("InputEvent.install");_.Hl("Trident/")&&HTMLInputElement.prototype.addEventListener!==Ru&&(_.bi("Patching input event support on IE."),Qu=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=Ru)});_.jt(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.jt(function(){_.ci("VideoPlayPromise.install");if(window.HTMLMediaElement){var a=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var b=a.apply(this);b&&b["catch"](function(){});return b}}});_.Zu.prototype.start=function(){var a=this;this.a=new ResizeObserver(function(b){b=b[0];a.j(b.contentRect.width,b.contentRect.height,a.h.isFullscreen())});this.f&&this.a.observe(this.f)};_.Zu.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.bv.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.r);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.xk;c=c.play();var e=(new _.mi(function(){b(a)})).fa(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===Hb?b(!0):b(!1)}):b(!0);return d};
631
+ var av=new Uint8Array([0,0,0,28,102,116,121,112,105,115,111,109,0,0,2,0,105,115,111,109,105,115,111,50,109,112,52,49,0,0,0,8,102,114,101,101,0,0,2,239,109,100,97,116,33,16,5,32,164,27,255,192,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
616
632
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
617
633
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
618
634
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,112,0,0,2,194,109,111,111,118,0,0,0,108,109,118,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,232,0,0,0,47,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,1,236,116,114,97,107,0,0,0,92,116,107,104,100,0,0,0,3,0,0,0,0,
619
635
  0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,47,0,0,0,0,0,0,0,0,0,0,0,1,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,101,100,116,115,0,0,0,28,101,108,115,116,0,0,0,0,0,0,0,1,0,0,0,47,0,0,0,0,0,1,0,0,0,0,1,100,109,100,105,97,0,0,0,32,109,100,104,100,0,0,0,0,0,0,0,0,0,0,0,0,0,0,172,68,0,0,8,0,85,196,0,0,0,0,0,45,104,100,108,114,0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0,0,0,1,15,109,105,110,102,
620
636
  0,0,0,16,115,109,104,100,0,0,0,0,0,0,0,0,0,0,0,36,100,105,110,102,0,0,0,28,100,114,101,102,0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1,0,0,0,211,115,116,98,108,0,0,0,103,115,116,115,100,0,0,0,0,0,0,0,1,0,0,0,87,109,112,52,97,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,2,0,16,0,0,0,0,172,68,0,0,0,0,0,51,101,115,100,115,0,0,0,0,3,128,128,128,34,0,2,0,4,128,128,128,20,64,21,0,0,0,0,1,244,0,0,1,243,249,5,128,128,128,2,18,16,6,128,128,128,1,2,0,0,0,24,115,116,116,115,0,0,0,0,0,0,0,1,0,0,0,2,0,0,4,0,0,0,0,28,
621
- 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]);_.t=_.Hu.prototype;_.t.getDuration=function(){return this.a};_.t.getId=function(){return this.id};_.t.Yb=function(){return this.f};_.t.le=function(){return this.h};_.t.pa=function(a){return this.getId()===a.getId()&&this.Yb()===a.Yb()&&this.getDuration()===a.getDuration()&&this.le()===a.le()};_.J("clpp.media.TimelineWindow",_.Hu);_.Hu.prototype.isDynamic=_.Hu.prototype.le;_.Hu.prototype.getStart=_.Hu.prototype.Yb;_.Hu.prototype.getId=_.Hu.prototype.getId;_.Hu.prototype.getDuration=_.Hu.prototype.getDuration;_.zw=new _.K("clpp.media.TimestampParser");_.t=_.Iu.prototype;_.t.am=function(a){return this.a[a]||null};_.t.bm=function(){return this.a.length};_.t.cm=function(){return this.a};_.t.ci=function(){return this.a[this.f]||null};_.t.Pl=function(){return this.f};_.J("clpp.media.Timeline",_.Iu);_.Iu.prototype.getCurrentWindowIndex=_.Iu.prototype.Pl;_.Iu.prototype.getCurrentWindow=_.Iu.prototype.ci;_.Iu.prototype.getWindows=_.Iu.prototype.cm;_.Iu.prototype.getWindowCount=_.Iu.prototype.bm;_.Iu.prototype.getWindow=_.Iu.prototype.am;_.Lu={};_.Nu={};var Su=window.XMLHttpRequest;_.x($u,_.pk);$u.prototype.then=function(a,b){this.T=this.T.then(a,b);return this};$u.prototype["catch"]=function(a){this.T=this.T["catch"](a);return this};$u.prototype.abort=function(){var a=this;if(this.a)return Promise.resolve();this.a=!0;return this.h.then(function(b){a.o&&clearTimeout(a.o);a.l&&a.l();return b.abort()})["catch"](function(){})};var fv=window.fetch,dv=window.AbortController,cv=window.Headers;_.hv={};_.t=_.Bv.prototype;_.t.getBackgroundColor=function(){return this.K};_.t.setBackgroundColor=function(a){this.K=a;this.Rb()};_.t.getWindowColor=function(){return this.U};_.t.setWindowColor=function(a){this.U=a;this.Rb()};_.t.getFontFamily=function(){return this.P};_.t.setFontFamily=function(a){this.P=a;this.Rb()};_.t.getFontColor=function(){return this.M};_.t.setFontColor=function(a){this.M=a;this.Rb()};_.t.getFontSize=function(){return this.I};_.t.setFontSize=function(a){this.I=a;this.Rb()};
622
- _.t.getFontSizePercent=function(){return null===this.B?Aw:this.B};_.t.setFontSizePercent=function(a){this.B=a;this.Rb()};_.t.getEdgeColor=function(){return this.H};_.t.setEdgeColor=function(a){this.H=a;this.Rb()};_.t.getEdgeType=function(){return this.o};_.t.setEdgeType=function(a){this.o=a;this.Rb()};_.Bv.prototype.setEdgeType=_.Bv.prototype.setEdgeType;_.Bv.prototype.getEdgeType=_.Bv.prototype.getEdgeType;_.Bv.prototype.setEdgeColor=_.Bv.prototype.setEdgeColor;_.Bv.prototype.getEdgeColor=_.Bv.prototype.getEdgeColor;
623
- _.Bv.prototype.setFontSizePercent=_.Bv.prototype.setFontSizePercent;_.Bv.prototype.getFontSizePercent=_.Bv.prototype.getFontSizePercent;_.Bv.prototype.setFontSize=_.Bv.prototype.setFontSize;_.Bv.prototype.getFontSize=_.Bv.prototype.getFontSize;_.Bv.prototype.setFontColor=_.Bv.prototype.setFontColor;_.Bv.prototype.getFontColor=_.Bv.prototype.getFontColor;_.Bv.prototype.setFontFamily=_.Bv.prototype.setFontFamily;_.Bv.prototype.getFontFamily=_.Bv.prototype.getFontFamily;
624
- _.Bv.prototype.setWindowColor=_.Bv.prototype.setWindowColor;_.Bv.prototype.getWindowColor=_.Bv.prototype.getWindowColor;_.Bv.prototype.setBackgroundColor=_.Bv.prototype.setBackgroundColor;_.Bv.prototype.getBackgroundColor=_.Bv.prototype.getBackgroundColor;var Aw=1/15;var Cv="raised",Dv="depressed",Fv="dropshadow",Ev="uniform";_.J("clpp.text.EdgeType",{NONE:_.Ye,RAISED:Cv,DEPRESSED:Dv,DROP_SHADOW:Fv,UNIFORM:Ev});Hv.prototype.parseInit=function(a){try{var b=_.rv(_.Uc);if(b){var c=new b(this.f);c.parseInit(a)}else this.g.warn("The clpp.ttml.Mp4TtmlParser class is not available. Please register the ttml component first.")}catch(e){c=null}if(c)this.a=c;else{try{var d=_.rv(_.Vc);d?(c=new d(this.f),c.parseInit(a)):this.g.warn("The clpp.vtt.Mp4VttParser class is not available. Please register the vtt component first.")}catch(e){c=null}if(c)this.a=c;else throw new _.P(_.Q,2,2011);}};
625
- Hv.prototype.parseMedia=function(a,b){if(!this.a)throw new _.P(_.Q,2,2011);return this.a.parseMedia(a,b)};_.iv(Tc,Hv);_.x(_.Jv,_.Bv);_.t=_.Jv.prototype;_.t.append=function(){};_.t.remove=function(){return!0};_.t.isTextVisible=function(){return this.w};_.t.setTextVisibility=function(a){this.w=a};
626
- _.t.Rb=function(){if(!this.j){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.Gv(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.h.textContent="."+this.f+"::cue {"+b+"}"}};_.t.destroy=function(){this.l.classList.remove(this.f);document.head.removeChild(this.h);this.j=!0;return Promise.resolve()};var Iv=0;Kv.prototype.a=function(){return!0};Kv.prototype.create=function(a){return new _.Jv(a)};_.kq("native",new Kv);_.t=_.Lv.prototype;_.t.onPlayerCreated=function(){};_.t.onContentWillLoad=function(){return Promise.resolve()};_.t.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.t.onPlayerWillDestroy=function(){};_.t.onPlayerWillRelease=function(){};}.call(g,this));
637
+ 115,116,115,99,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,2,0,0,0,1,0,0,0,28,115,116,115,122,0,0,0,0,0,0,0,0,0,0,0,2,0,0,1,115,0,0,1,116,0,0,0,20,115,116,99,111,0,0,0,0,0,0,0,1,0,0,0,44,0,0,0,98,117,100,116,97,0,0,0,90,109,101,116,97,0,0,0,0,0,0,0,33,104,100,108,114,0,0,0,0,0,0,0,0,109,100,105,114,97,112,112,108,0,0,0,0,0,0,0,0,0,0,0,0,45,105,108,115,116,0,0,0,37,169,116,111,111,0,0,0,29,100,97,116,97,0,0,0,1,0,0,0,0,76,97,118,102,53,54,46,52,48,46,49,48,49]);_.u=_.cv.prototype;_.u.getDuration=function(){return this.a};_.u.getId=function(){return this.id};_.u.dc=function(){return this.f};_.u.qe=function(){return this.h};_.u.qa=function(a){return this.getId()===a.getId()&&this.dc()===a.dc()&&this.getDuration()===a.getDuration()&&this.qe()===a.qe()};_.J("clpp.media.TimelineWindow",_.cv);_.cv.prototype.isDynamic=_.cv.prototype.qe;_.cv.prototype.getStart=_.cv.prototype.dc;_.cv.prototype.getId=_.cv.prototype.getId;_.cv.prototype.getDuration=_.cv.prototype.getDuration;_.Vw=new _.K("clpp.media.TimestampParser");_.u=_.dv.prototype;_.u.mm=function(a){return this.a[a]||null};_.u.nm=function(){return this.a.length};_.u.om=function(){return this.a};_.u.hi=function(){return this.a[this.f]||null};_.u.am=function(){return this.f};_.J("clpp.media.Timeline",_.dv);_.dv.prototype.getCurrentWindowIndex=_.dv.prototype.am;_.dv.prototype.getCurrentWindow=_.dv.prototype.hi;_.dv.prototype.getWindows=_.dv.prototype.om;_.dv.prototype.getWindowCount=_.dv.prototype.nm;_.dv.prototype.getWindow=_.dv.prototype.mm;_.gv={};_.iv={};var nv=window.XMLHttpRequest;_.x(wv,_.yk);wv.prototype.then=function(a,b){this.T=this.T.then(a,b);return this};wv.prototype["catch"]=function(a){this.T=this.T["catch"](a);return this};wv.prototype.abort=function(){var a=this;if(this.a)return Promise.resolve();this.a=!0;return this.h.then(function(b){a.o&&clearTimeout(a.o);a.l&&a.l();return b.abort()})["catch"](function(){})};var Cv=window.fetch,Av=window.AbortController,zv=window.Headers;_.Ev={};_.u=_.Iv.prototype;_.u.getBackgroundColor=function(){return this.K};_.u.setBackgroundColor=function(a){this.K=a;this.Xb()};_.u.getWindowColor=function(){return this.U};_.u.setWindowColor=function(a){this.U=a;this.Xb()};_.u.getFontFamily=function(){return this.P};_.u.setFontFamily=function(a){this.P=a;this.Xb()};_.u.getFontColor=function(){return this.M};_.u.setFontColor=function(a){this.M=a;this.Xb()};_.u.getFontSize=function(){return this.I};_.u.setFontSize=function(a){this.I=a;this.Xb()};
638
+ _.u.getFontSizePercent=function(){return null===this.B?Ww:this.B};_.u.setFontSizePercent=function(a){this.B=a;this.Xb()};_.u.getEdgeColor=function(){return this.H};_.u.setEdgeColor=function(a){this.H=a;this.Xb()};_.u.getEdgeType=function(){return this.o};_.u.setEdgeType=function(a){this.o=a;this.Xb()};_.Iv.prototype.setEdgeType=_.Iv.prototype.setEdgeType;_.Iv.prototype.getEdgeType=_.Iv.prototype.getEdgeType;_.Iv.prototype.setEdgeColor=_.Iv.prototype.setEdgeColor;_.Iv.prototype.getEdgeColor=_.Iv.prototype.getEdgeColor;
639
+ _.Iv.prototype.setFontSizePercent=_.Iv.prototype.setFontSizePercent;_.Iv.prototype.getFontSizePercent=_.Iv.prototype.getFontSizePercent;_.Iv.prototype.setFontSize=_.Iv.prototype.setFontSize;_.Iv.prototype.getFontSize=_.Iv.prototype.getFontSize;_.Iv.prototype.setFontColor=_.Iv.prototype.setFontColor;_.Iv.prototype.getFontColor=_.Iv.prototype.getFontColor;_.Iv.prototype.setFontFamily=_.Iv.prototype.setFontFamily;_.Iv.prototype.getFontFamily=_.Iv.prototype.getFontFamily;
640
+ _.Iv.prototype.setWindowColor=_.Iv.prototype.setWindowColor;_.Iv.prototype.getWindowColor=_.Iv.prototype.getWindowColor;_.Iv.prototype.setBackgroundColor=_.Iv.prototype.setBackgroundColor;_.Iv.prototype.getBackgroundColor=_.Iv.prototype.getBackgroundColor;var Ww=1/15;var Jv="raised",Kv="depressed",Mv="dropshadow",Lv="uniform";_.J("clpp.text.EdgeType",{NONE:_.ff,RAISED:Jv,DEPRESSED:Kv,DROP_SHADOW:Mv,UNIFORM:Lv});Ov.prototype.parseInit=function(a){try{var b=_.Gv(_.Zc);if(b){var c=new b(this.f);c.parseInit(a)}else this.g.warn("The clpp.ttml.Mp4TtmlParser class is not available. Please register the ttml component first.")}catch(e){c=null}if(c)this.a=c;else{try{var d=_.Gv(_.$c);d?(c=new d(this.f),c.parseInit(a)):this.g.warn("The clpp.vtt.Mp4VttParser class is not available. Please register the vtt component first.")}catch(e){c=null}if(c)this.a=c;else throw new _.O(_.P,2,2011);}};
641
+ Ov.prototype.parseMedia=function(a,b){if(!this.a)throw new _.O(_.P,2,2011);return this.a.parseMedia(a,b)};_.Fv(Yc,Ov);_.x(_.ew,_.Iv);_.u=_.ew.prototype;_.u.append=function(){};_.u.remove=function(){return!0};_.u.isTextVisible=function(){return this.w};_.u.setTextVisibility=function(a){this.w=a};
642
+ _.u.Xb=function(){if(!this.j){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.Nv(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.h.textContent="."+this.f+"::cue {"+b+"}"}};_.u.destroy=function(){this.l.classList.remove(this.f);document.head.removeChild(this.h);this.j=!0;return Promise.resolve()};var Xv=0;fw.prototype.a=function(){return!0};fw.prototype.create=function(a){return new _.ew(a)};_.xq("native",new fw);_.u=_.gw.prototype;_.u.onPlayerCreated=function(){};_.u.onContentWillLoad=function(){return Promise.resolve()};_.u.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.u.onPlayerWillDestroy=function(){};_.u.onPlayerWillRelease=function(){};}.call(g,this));
627
643
  g.clpp._ = _;
628
644
  if (typeof(module)!="undefined"&&module.exports) {module.exports=g.clpp;}
629
645
  else if (typeof(define)!="undefined" && define.amd) {define(function(){return g.clpp;});}