@castlabs/prestoplay 6.10.0 → 6.11.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 (60) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/cjs/cl.adobe.js +3 -3
  3. package/cjs/cl.airplay.js +3 -3
  4. package/cjs/cl.broadpeak.js +6 -6
  5. package/cjs/cl.cast.js +112 -112
  6. package/cjs/cl.conviva.js +33 -33
  7. package/cjs/cl.core.js +467 -435
  8. package/cjs/cl.crypto.js +9 -10
  9. package/cjs/cl.dash.js +72 -72
  10. package/cjs/cl.externs.js +132 -33
  11. package/cjs/cl.freewheel.js +24 -24
  12. package/cjs/cl.hls.js +78 -74
  13. package/cjs/cl.hlssmpte.js +6 -6
  14. package/cjs/cl.htmlcue.js +29 -29
  15. package/cjs/cl.ima.js +24 -24
  16. package/cjs/cl.mse.js +274 -274
  17. package/cjs/cl.muxdata.js +14 -14
  18. package/cjs/cl.onboard.js +3 -3
  19. package/cjs/cl.persistent.js +14 -14
  20. package/cjs/cl.playlist.js +6 -6
  21. package/cjs/cl.smooth.js +71 -71
  22. package/cjs/cl.thumbnails.js +24 -24
  23. package/cjs/cl.tizen.js +71 -71
  24. package/cjs/cl.ttml.js +29 -27
  25. package/cjs/cl.verimatrix.js +5 -5
  26. package/cjs/cl.vimond.js +13 -13
  27. package/cjs/cl.vr.js +19 -19
  28. package/cjs/cl.vtt.js +14 -14
  29. package/cjs/cl.youbora.js +20 -20
  30. package/cl.adobe.js +3 -3
  31. package/cl.airplay.js +3 -3
  32. package/cl.broadpeak.js +5 -5
  33. package/cl.cast.js +88 -88
  34. package/cl.conviva.js +27 -27
  35. package/cl.core.js +395 -368
  36. package/cl.crypto.js +9 -9
  37. package/cl.dash.js +67 -66
  38. package/cl.externs.js +128 -33
  39. package/cl.freewheel.js +19 -19
  40. package/cl.hls.js +64 -61
  41. package/cl.hlssmpte.js +5 -5
  42. package/cl.htmlcue.js +26 -26
  43. package/cl.ima.js +17 -17
  44. package/cl.mse.js +238 -239
  45. package/cl.muxdata.js +12 -12
  46. package/cl.onboard.js +4 -4
  47. package/cl.persistent.js +11 -11
  48. package/cl.playlist.js +5 -5
  49. package/cl.smooth.js +59 -59
  50. package/cl.thumbnails.js +17 -17
  51. package/cl.tizen.js +57 -57
  52. package/cl.ttml.js +22 -22
  53. package/cl.verimatrix.js +4 -4
  54. package/cl.vimond.js +8 -8
  55. package/cl.vr.js +14 -14
  56. package/cl.vtt.js +12 -12
  57. package/cl.youbora.js +15 -15
  58. package/clpp.styles.css +15 -0
  59. package/package.json +1 -1
  60. package/typings.d.ts +202 -19
package/cjs/cl.core.js CHANGED
@@ -1,384 +1,406 @@
1
1
  (function(){var g={}; var _ = {};
2
- (function(window){var ba,ca,da,oa,ra,ta,xa,ya,za,Aa,Da,Ka,La,Ma,Oa,Pa,Qa,Sa,Wa,Xa,Ya,Za,$a,ab,bb,kb,nb,ob,pb,qb,ub,wb,zb,Ab,Cb,Eb,gc,lc,xc,yc,Ec,Fc,Gc,Ic,Kc,Lc,Mc,Nc,Vc,ad,dd,ed,fd,kd,qd,sd,td,yd,Bd,Rd,Yd,fe,he,pe,se,Be,Je,Xe,af,bf,cf,df,ef,gf,lf,mf,nf,rf,vf,xf,wf,yf,zf,Af,Ef,Hf,Ff,Gf,If,Kf,Lf,Pf,Rf,Wf,Xf,cg,dg,ig,gg,jg,lg,kg,ng,qg,ug,wg,vg,Ig,Jg,Kg,Lg,Mg,Og,Qg,Rg,Vg,Xg,Zg,Wg,Tg,nh,qh,sh,th,wh,rh,oh,xh,Zh,ci,di,ei,hi,ii,si,ti,yi,Ai,Bi,Gi,Hi,Ii,Li,Ni,Mi,Ki,Oi,Ji,Ri,Pi,Qi,Si,Ti,Zi,aj,nj,pj,qj,rj,Bj,dj,sj,Ej,Gj,Ij,Jj,
3
- Hj,Lj,Mj,Fj,Nj,Oj,Pj,Qj,Rj,Vj,Wj,Xj,Yj,Sj,ck,dk,fk,hk,pk,qk,rk,sk,tk,zk,Bk,Mk,Sk,Vk,Wk,Yk,Zk,gl,kl,ll,ql,wl,xl,zl,Al,Cl,Gl,Ml,Vl,Xl,Zl,cm,dm,hm,Tl,Rl,lm,fm,mm,om,nm,tm,sm,qm,rm,Il,Yl,pm,Jl,km,Ql,jm,Sl,Ll,ym,Am,Bm,Cm,Dm,Nm,Rm,Sm,Um,Ym,cn,Qm,dn,en,hn,ln,mn,on,pn,kn,jn,qn,rn,sn,xn,Cn,Dn,En,In,Hn,Kn,Jn,Mn,Nn,On,Pn,Ln,Rn,Tn,Un,Vn,Wn,Xn,Yn,Zn,$n,bo,co,eo,fo,ao,io,V,ko,jo,mo,oo,po,to,qo,wo,xo,yo,zo,wn,Ao,Co,Do,Eo,Fo,Go,Ho,Io,Jo,Ko,Lo,Mo,No,Oo,Po,Qo,Ro,Uo,So,Vo,Xo,Yo,To,Wo,Zo,$o,ap,bp,cp,dp,ep,fp,gp,hp,jp,
4
- lp,mp,np,kp,pp,qp,up,zp,Ap,Cp,Bp,pi,Ep,Hp,Gp,Ip,Jp,Fp,Lp,Mp,Kp,Np,qi,Qp,li,aq,dq,pf,fq;_.aa=" is registered.";ba=" is unsupported on this platform.";ca=" to a log level. Falling back to default!";da="': 'output-restricted'";_.ea="6.10.0";_.fa="AdaptationSet";_.ha="Already destroyed. No-op";_.ia="Already released. No-op";_.ja="Autoplay is not allowed due to browser policy.";_.ma="BANDWIDTH";_.na="CODECS";oa="Can not set volume to ";_.pa="Cannot retrieve buffer information due to platform limitations";
5
- _.qa="CastlabsPlayer";ra="Content-Length";ta="Content-Type";_.ua="Could not find configured DRM environment.";_.va="DRM environment '";xa="DRM licenses loaded";ya="DRMtoday";za="DRMtodayOnboard";Aa="Destroying player";_.Ba="Disable track type ";Da="Error while decoding string!";_.Ga="Error while fetching license!";_.Ha="FairPlay Certificate URL is not defined";_.Ia="FairPlay License URL is not defined";_.Ja="GROUP-ID";Ka="HW_SECURE_CRYPTO";La="HW_SECURE_DECODE";Ma="HeaderDrm";Oa="Invalid track type: ";
6
- Pa="InvalidStateError";Qa="Key status for Key ID '";_.Ra="LANGUAGE";Sa="License verification failed: ";_.Ta="Loading player with configuration";_.Ua="MaxHeight";_.Va="MaxWidth";Wa="Missing media element";Xa="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";Ya="No event provided!";Za="No track data attached to the event, unable to add track!";$a="Not a persistent session.";ab="NotAllowedError";bb="NotSupportedError";_.cb="PlayReady License URL is not defined";
7
- _.db="Player sources";_.eb="Player state change: ";_.fb="Please make sure ";_.gb="QualityLevel";_.hb="RESOLUTION";_.ib="Releasing player with source";_.jb="Representation";kb="STANDARD";_.lb="SW_SECURE_CRYPTO";_.mb="SW_SECURE_DECODE";nb="Session is closed";ob="Setting native ";pb="Signature Verification failed";qb="Skipping Session creation. License for init data was already requested in Session: '";_.rb="SmoothStreamingMedia";_.sb="TYPE";ub="The index is not in the allowed range.";_.vb="URI";
8
- wb="Unable to translate ";_.xb="Unhandled/ignored event";_.yb="Unregistering listeners";zb="Unsupported keySystem";Ab="Using VTTCue polyfill from 3 argument TextTrackCue.";_.Bb="VIDEO";Cb="WebkitEmeManager.MediaKeySession.load";_.Db="Widevine License URL is not defined";Eb="Will create EME Manager: ";_.Fb="ad-break-started";_.Hb="ad-break-stopped";_.Ib="ad-buffering";_.Jb="ad-clicked";_.Kb="ad-completed";_.Lb="ad-first-quartile";_.Nb="ad-impression";_.Ob="ad-loaded";_.Pb="ad-midpoint";_.Qb="ad-paused";
9
- _.Sb="ad-progress";_.Tb="ad-resumed";_.Ub="ad-skipped";_.Vb="ad-started";_.Wb="ad-stopped";_.Xb="ad-third-quartile";_.Yb="addtrack";_.Zb="ads-timeline-changed";_.$b="airplay-casting-ended";_.ac="airplay-casting-started";_.cc="airplay-status-changed";_.dc="application";_.ec="application/cea-608";_.fc="application/dash+xml";gc="application/mp4";_.hc='application/mp4; codecs\x3d"stpp"';_.ic='application/mp4; codecs\x3d"wvtt"';_.jc="application/ttml+xml";_.kc="application/vnd.ms-sstr+xml";lc="application/x-www-form-urlencoded";
10
- _.mc="audio";_.nc="audio/aac";_.oc="audio/ac3";_.pc="audio/eac3";_.qc="audio/mp4";_.rc="audiobufferchanged";_.sc="autoplaynotallowed";_.tc="bitratechanged";_.uc="boolean";_.vc="bufferingended";_.wc="bufferingstarted";xc="canplay";yc="canplaythrough";_.zc="castingstarted";_.Ac="caststatuschanged";_.Bc="cdn-switch-success";_.Cc="cenc";_.Dc="center";Ec="certificate-request";Fc="change";Gc="chrome";_.Hc="clpp-fill";Ic="clpp-hidden";_.Jc="clpp.cast.CastSender";Kc="clpp.drm.HeaderDrm";Lc="clpp.drm.eme.AppleEmeManager";
11
- Mc="clpp.native.Player";Nc="clpp.utils.Platform";_.Oc="codecs";_.Pc="column-reverse";_.Qc="com.adobe.primetime";_.Rc="com.apple.fps";_.Sc="com.microsoft.playready";_.Tc="com.widevine.alpha";_.Uc="config.drm.customData is not defined";Vc="controls";_.Wc="cuechange";_.Xc="destroy()";_.Yc="disabled";_.Zc="div";_.$c="drmexpirationupdate";ad="drmrenewalstarted";_.bd="drmsessionpersisted";_.cd="drmsessionupdate";dd="drmtoday";ed="durationchange";fd="encrypted";_.gd="end";_.id="ended";_.jd="error";kd="fullscreenElement";
12
- _.ld="function";_.md="height";_.nd="hidden";_.od="image";_.pd="internal-error";qd="keystatuseschange";_.rd="left";sd="license-renewal";td="license-request";_.ud="line-left";_.vd="line-right";_.wd="loadeddata";_.xd="loadedmetadata";yd="loadstart";_.zd="mdat";_.Ad="mdia";Bd="message";_.Cd="metadata";_.Dd="mimeType";_.Ed="minf";_.Fd="moov";_.Gd="mp4";_.Hd="mpd-type-changed";_.Jd="mpeg-dash-callback-event";_.Kd="none";_.k="number";_.Ld="object";_.Md="onBitrateChanged()";_.Nd="onPlayerError()";_.Od="onPlayerWillDestroy";
13
- _.Pd="onPlayerWillRelease";_.Qd="onStateChanged()";Rd="online-status-changed";_.Sd="optional";_.Td="org.w3.clearkey";_.Ud="output-restricted";_.Vd="pause";_.Wd="persistent";_.Xd="persistent-license";Yd="picture-in-picture";_.Zd="play";_.$d="playing";_.ae="playlist-item-changed";_.be="playlist-modified";_.ce="progress";_.de="px";_.ee="ratechange";fe="released";_.ge="releasing";he="removetrack";_.ie="required";_.je="resize";_.ke="right";_.le="seeked";_.me="seeking";_.ne="showing";_.oe="sinf";pe="stalled";
14
- _.qe="start";_.re="statechanged";se="status-pending";_.ue="stbl";_.ve="string";_.we="stsd";_.xe="style";_.ye="subtitle";_.ze="subtitles-htmlcue";_.Ae="subtitles-ttml";Be="temporary";_.Ce="text";_.De="text/vtt";_.Ee="text/xml";_.Fe="timeupdate";_.Ge="trak";_.He="ttml-xml";_.Ie="und";Je="unknown";_.Ke="urn:scte:scte35";_.Le="urn:scte:scte35:2014";_.Me="user-seeked";_.Ne="user-seeking";_.Oe="value";_.Pe="vertical-lr";_.Qe="vertical-rl";_.Re="video";_.Se="video/mp2t";_.Te="video/mp4";_.Ue="videobufferchanged";
15
- _.Ve="videotrackchanged";_.We="vimond-response";Xe="visibilitychange";_.Ye="vtt-xml";_.Ze="waiting";_.$e="waitingforkey";af="webkit-org.w3.clearkey";bf="webkitkeyadded";cf="webkitkeyerror";df="webkitkeymessage";ef="webkitneedkey";_.ff="width";gf="x-dt-csl-tracking-token";lf="x-dt-follow-up-token";mf="x-dt-resp-code";nf=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
16
- _.u=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:nf(a)}};_.of=function(a){if(!(a instanceof Array)){a=_.u(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a};_.w=function(a,b){a.prototype=pf(b.prototype);a.prototype.constructor=a;if(qf)qf(a,b);else for(var c in b)if("prototype"!=c)if(Object.defineProperties){var d=Object.getOwnPropertyDescriptor(b,c);d&&Object.defineProperty(a,c,d)}else a[c]=b[c]};
17
- rf=function(){rf=function(){};sf.Symbol||(sf.Symbol=tf)};vf=function(a,b){this.a=a;uf(this,"description",{configurable:!0,writable:!0,value:b})};xf=function(){rf();var a=sf.Symbol.iterator;a||(a=sf.Symbol.iterator=sf.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.ld&&uf(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return wf(nf(this))}});xf=function(){}};wf=function(a){xf();a={next:a};a[sf.Symbol.iterator]=function(){return this};return a};
18
- yf=function(){this.w=!1;this.j=null;this.f=void 0;this.a=1;this.m=this.o=0;this.B=this.g=null};zf=function(a){if(a.w)throw new TypeError("Generator is already running");a.w=!0};Af=function(a,b){a.g={dg:b,ug:!0};a.a=a.o||a.m};_.x=function(a,b,c){a.a=c;return{value:b}};_.y=function(a){a.a=0};_.Bf=function(a,b,c){a.o=b;void 0!=c&&(a.m=c)};_.Cf=function(a,b,c){a.a=b;a.o=c||0};_.Df=function(a,b){a.o=b||0;var c=a.g.dg;a.g=null;return c};Ef=function(a){this.a=new yf;this.f=a};
19
- Hf=function(a,b){zf(a.a);var c=a.a.j;if(c)return Ff(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return Gf(a)};Ff=function(a,b,c,d){try{var e=b.call(a.a.j,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.j=null,Af(a.a,g),Gf(a)}a.a.j=null;d.call(a.a,f);return Gf(a)};
20
- Gf=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,Af(a.a,c)}a.a.w=!1;if(a.a.g){b=a.a.g;a.a.g=null;if(b.ug)throw b.dg;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
21
- If=function(a){this.next=function(b){zf(a.a);a.a.j?b=Ff(a,a.a.j.next,b,a.a.A):(a.a.A(b),b=Gf(a));return b};this["throw"]=function(b){zf(a.a);a.a.j?b=Ff(a,a.a.j["throw"],b,a.a.A):(Af(a.a,b),b=Gf(a));return b};this["return"]=function(b){return Hf(a,b)};xf();this[Symbol.iterator]=function(){return this}};_.Jf=function(a,b){var c=new If(new Ef(b));qf&&qf(c,a.prototype);return c};
22
- Kf=function(a,b){if(b){for(var c=sf,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&&uf(c,d,{configurable:!0,writable:!0,value:f})}};Lf=function(a){function b(d){return a.next(d)}function c(d){return a["throw"](d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})};_.B=function(a){return Lf(new If(new Ef(a)))};
23
- _.C=function(a,b){var c=a.split("."),d=Mf;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};Pf=function(a){return a&&0<=Nf[a]?Nf[a]:Of};Rf=function(a){if(!a)return _.G("clpp.log",wb+a+ca),-1;var b=Qf[a.toUpperCase()];return void 0===b?(_.G("clpp.log",wb+a+ca),-1):b};_.I=function(a){(this.tag=a)&&void 0===Nf[a]&&(Nf[a]=-1)};_.Tf=function(a){Sf.info.apply(Sf,arguments)};
24
- _.Uf=function(a){Sf.debug.apply(Sf,arguments)};_.G=function(a){Sf.warn.apply(Sf,arguments)};_.Vf=function(a){Sf.error.apply(Sf,arguments)};Wf=function(a,b){this.Mb=a;this.a=b};Xf=function(a,b){this.a=a;this.f=b};_.$f=function(a){if(a){var b=a.a();b in _.Yf?_.Zf.warn("Player-Factory '"+b+"' already registered"):(_.Yf[b]=a,_.Zf.info("Registered Player-Factory: '"+b+"'"))}};_.ag=function(){this.a={}};cg=function(a,b,c,d){this.f=a;this.Dc=b;this.a=c;this.dl=!!d};
25
- _.J=function(a,b){if(b)for(var c in b)this[c]=b[c];this.defaultPrevented=this.cancelable=this.bubbles=!1;this.timeStamp=window.performance&&window.performance.now?window.performance.now():Date.now();this.type=a;this.isTrusted=!1;this.target=this.currentTarget=null;this.f=this.a=!1};dg=function(a){this.a=new _.ag;this.f=a};_.eg=function(){this.a=new _.ag};
26
- _.fg=function(a,b,c,d){function e(h){for(var l=_.u(c),m=l.next();!m.done;m=l.next())a.off(b,m.value,e);d(h)}for(var f=_.u(c),g=f.next();!g.done;g=f.next())a.on(b,g.value,e)};_.hg=function(a){var b=a.a,c=[],d;for(d in b.a)c.push.apply(c,b.a[d]);for(b=0;b<c.length;++b)gg(c[b]);a.a.clear()};ig=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};gg=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
27
- jg=function(a){this.l=a;this.o=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.j=null;this.f=new _.eg;this.a=this.m=null;this.g=[];this.h=new _.I("clpp.native.Metadata")};lg=function(a,b){a.j=b;a.m=a.j.textTracks;a.f.on(a.m,_.Yb,function(c){c=c.track;c.kind===_.Cd&&kg(a,c)})};
28
- kg=function(a,b){function c(l){for(var m=_.u(d),n=m.next();!n.done;n=m.next())if(n=n.value,l.startTime===n.startTime&&l.endTime===n.endTime)return n;m={schemeIdUri:"",value:"",startTime:0,endTime:0,id:"",type:_.mg,eventElement:null};a.o&&e&&"SCTE35-IN"===l.value.key&&0<l.startTime?(m.startTime=0,m.endTime=l.startTime):(m.startTime=l.startTime,m.endTime=l.endTime);e=!1;d.push(m);return d[d.length-1]}a.h.debug("onMetadata_()");b.mode=_.nd;var d=[],e=!0;if(b.cues){for(var f=_.u(b.cues),g=f.next();!g.done;g=
29
- f.next())if(g=g.value,!ng(a,g)){var h=c(g);switch(g.value.key){case "SCTE35-IN":case "SCTE35-OUT":h.schemeIdUri=_.Le;h.type=_.og;break;case "X-CUSTOM-ID":h.id=g.value.data}}f=_.u(d);for(g=f.next();!g.done;g=f.next())a.l.trigger(new _.J(_.pg,{detail:g.value}));Array.prototype.push.apply(a.g,d);qg(a,d,b);a.f.off(b,_.Wc);a.f.on(b,_.Wc,function(l){l=l.target.activeCues;l=l.length?ng(a,l[0]):a.a;var m;if(m=l)m=a.l.getPosition(),m=l.startTime<=m&&m<l.endTime;if(m)a.a=l,a.l.trigger(new _.J(_.rg,{detail:l}));
30
- else{if(l=a.a)l=a.a,m=a.l.getPosition(),l=l.endTime<=m;l&&(l=a.a,a.a=null,a.l.trigger(new _.J(_.sg,{detail:l})))}})}};ng=function(a,b){for(var c=_.u(a.g),d=c.next();!d.done;d=c.next())if(d=d.value,b.startTime===d.startTime&&b.endTime===d.endTime)return d;return null};qg=function(a,b,c){if(a.o){for(;0<c.cues.length;)c.removeCue(c.cues[0]);b.forEach(function(d){c.addCue(new DataCue(d.startTime,d.endTime,{key:"SCTE35-OUT",data:null}))})}};_.tg=function(a){return Array.isArray(a)?a:[a]};
31
- ug=function(a,b){return a===b?!0:a.length===b.length&&a.every(function(c,d){return c===b[d]})};wg=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 vg(a,b)&&vg(b,a)};vg=function(a,b){var c=new Set(a);return b.every(function(d){return c.has(d)})};
32
- _.xg=function(a,b){b=void 0===b?{}:b;if(b.Zf){for(var c=[],d={},e=_.u(a),f=e.next();!f.done;d={Dd:d.Dd},f=e.next())d.Dd=f.value,c.some(function(g){return function(h){return b.Zf(g.Dd,h)}}(d))||c.push(d.Dd);return c}return Array.from((new Set(a)).values())};
33
- _.Eg=function(a,b,c,d){d=void 0===d?_.yg:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.zg;this.writingMode=_.Ag;this.lineInterpretation=_.Bg;this.line=null;this.lineAlign=_.Cg;this.direction=Dg;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
34
- _.Hg=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.Fg;this.scroll=Gg;this.cssClassList=[];this.writingMode=this.displayAlign=null};Ig=function(a){this.l=a;this.m=a.getTextDisplayer();this.f=this.g=null;this.a=new _.eg;this.j=!1;this.h=new _.I("clpp.native.CueHandler")};
35
- Jg=function(a,b){var c=b.track;c.kind!==_.Cd&&(c.mode===_.ne&&(c.mode=_.nd),a.a.on(c,_.Wc,function(d){d=d.target||d.srcElement;d.mode=_.nd;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.m.append(d,[]))}))};_.L=function(a,b,c,d,e){var f=Error.call(this,Kg(a,b,c,d));this.message=f.message;"stack"in f&&(this.stack=f.stack);this.severity=a;this.category=b;this.code=c;this.data=!d||_.K.$(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.L)};
36
- Kg=function(a,b,c,d){a=(a===_.M?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.K.$(d))a+=": "+d;else if(null!=d&&void 0!=d)if(null!=d.message&&void 0!=d.message)a+=": "+d.message,delete d.message;else try{a+=": "+JSON.stringify(d)}catch(e){}return a};Lg=function(a,b){var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=b};
37
- Mg=function(a,b){var c=b||ug,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,_.of(h))}};_.Ng=function(a){return null!=a};Og=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 Lg("No non-null, non-undefined value found");};
38
- _.Pg=function(a){var b;a instanceof _.Pg?(Qg(this,a.bb),this.oc=a.oc,this.Ka=a.Ka,Rg(this,a.Tc),this.Ba=a.Ba,_.Sg(this,Tg(a.a)),this.cc=a.cc):a&&(b=String(a).match(Ug))?(Qg(this,b[1]||"",!0),this.oc=Vg(b[2]||""),this.Ka=Vg(b[3]||"",!0),Rg(this,b[4]),this.Ba=Vg(b[5]||"",!0),_.Sg(this,b[6]||"",!0),this.cc=Vg(b[7]||"")):this.a=new Wg(null)};Qg=function(a,b,c){a.bb=c?Vg(b,!0):b;a.bb&&(a.bb=a.bb.replace(/:$/,""))};
39
- Rg=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Tc=b}else a.Tc=null};_.Sg=function(a,b,c){b instanceof Wg?a.a=b:(c||(b=Xg(b,Yg)),a.a=new Wg(b))};Vg=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""};Xg=function(a,b,c){return typeof a===_.ve?(a=encodeURI(a).replace(b,Zg),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};Zg=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};Wg=function(a){this.f=a||null};
40
- _.$g=function(a){if(!a.a&&(a.a={},a.g=0,a.f))for(var b=a.f.split("\x26"),c=0;c<b.length;c++){var d=b[c].indexOf("\x3d"),e=null;if(0<=d){var f=b[c].substring(0,d);e=b[c].substring(d+1)}else f=b[c];f=decodeURIComponent(f.replace(/\+/g," "));e=e||"";a.add(f,decodeURIComponent(e.replace(/\+/g," ")))}};Tg=function(a){var b=new Wg;b.f=a.f;if(a.a){var c={},d;for(d in a.a)c[d]=a.a[d].concat();b.a=c;b.g=a.g}return b};
41
- _.bh=function(a,b){for(var c=ah[a],d=0;d<c.length;d++)for(var e=0;e<b.length;e++)if(c[d].test(b[e].trim()))return b[e].trim();return a===_.Ce?"":null};_.eh=function(a,b,c){return a.map(function(d){d=_.ch(d)||"";return(d=_.dh[b][d])?d:b===_.Ce?c&&"vtt"!==c?gc:_.De:null}).filter(Boolean)[0]||null};_.ch=function(a){a=(new _.Pg(a)).Ba.split(".");return 1>=a.length?null:a.pop()};_.fh=function(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d};
42
- _.gh=function(a,b,c,d){d=void 0===d?{}:d;a=a.getAttribute(b);if(!a&&d.required)throw new _.L(_.M,4,4023,"Required attribute missing: "+b);return a?a.value:c||null};_.hh=function(a,b){this.name=a;this.value=b};_.jh=function(a,b){a=_.ih(a);b=_.ih(b);return a.split("-")[0]==b.split("-")[0]};_.ih=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=kh.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};
43
- _.lh=function(a,b){for(var c=_.u(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};nh=function(){};qh=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(oh(a)==oh(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;for(var c=_.N(a),d=_.N(b),e=_.u(ph(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!=d[f])return!1;return!0};_.N=function(a,b,c){c=void 0===c?Infinity:c;return rh(a,void 0===b?0:b,c,Uint8Array)};
44
- sh=function(a,b,c){c=void 0===c?Infinity:c;return rh(a,void 0===b?0:b,c,Uint16Array)};th=function(a,b,c){c=void 0===c?Infinity:c;return rh(a,void 0===b?0:b,c,Uint32Array)};_.uh=function(a,b,c){c=void 0===c?Infinity:c;return rh(a,void 0===b?0:b,c,Int32Array)};_.vh=function(a,b,c){c=void 0===c?Infinity:c;return rh(a,void 0===b?0:b,c,DataView)};wh=function(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
45
- rh=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=oh(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)};oh=function(a){return a instanceof ArrayBuffer?a:a.buffer};xh=function(a){for(var b="",c=0;c<a.length;c+=16E3)b+=String.fromCharCode.apply(null,a.subarray(c,c+16E3));return b};
46
- _.yh=function(a){if(!a)return"";a=_.N(a);239===a[0]&&187===a[1]&&191===a[2]&&(a=a.subarray(3));if("TextDecoder"in window){a=(new TextDecoder).decode(a);if(a.includes("\ufffd"))throw Error(Da);return a}a=escape(xh(a));try{return decodeURIComponent(a)}catch(b){throw Error(Da);}};
47
- _.Ah=function(a,b,c){if(!a)return"";if(!c&&0!==a.byteLength%2)throw zh.error("Data has an incorrect length, must be even."),Error("Data does not seem to be UTF-16 encoded!");c=_.N(a);if(b&&255===c[0]&&254===c[1]||254===c[0]&&255===c[1])a=c.subarray(2);if(a instanceof ArrayBuffer)var d=a;else c=new Uint8Array(a.byteLength),c.set(_.N(a)),d=c.buffer;a=Math.floor(a.byteLength/2);c=new Uint16Array(a);d=new DataView(d);for(var e=0;e<a;e++)c[e]=d.getUint16(2*e,b);return xh(c)};
48
- _.Bh=function(a,b){if(_.K.$(a))return a;var c="",d=!!b,e=_.N(a);239==e[0]&&187==e[1]&&191==e[2]?c=_.yh(e):254==e[0]&&255==e[1]?c=_.Ah(e.subarray(2),!1):255==e[0]&&254==e[1]&&(c=_.Ah(e.subarray(2),!0));var f=function(g,h){return g.byteLength<=h||32<=g[h]&&126>=g[h]}.bind(null,e);zh.debug("Unable to find byte-order-mark, making an educated guess.");0==e[0]&&0==e[2]?c=_.Ah(a,!1):0==e[1]&&0==e[3]?c=_.Ah(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.yh(a));if(c)return d&&(c=escape(c)),c;throw Error("Unable to detect text encoding");
49
- };_.Ch=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};_.Dh=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};_.Eh=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=th(e):2===c?f=sh(e):f=_.N(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};
50
- _.Fh=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.Gh=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};_.Hh=function(a){return!!(a&&0<a.length)};_.Ih=function(a){return!a||0===a.length};
51
- _.Jh=function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.K.isNaN(b))return"";a="bps";1E3<=Math.abs(b)&&(a="Kbps",b/=1E3);1E3<=Math.abs(b)&&(a="Mbps",b/=1E3);return b.toFixed(2).replace(/[.,]00$/,"")+a}catch(c){return""}};_.Lh=function(a){a=a.replace(/<[^>]+>/gi,"");Kh.innerHTML=a;a=Kh.textContent;return a=a.replace(/<[^>]+>/gi,"")};_.Mh=function(){};_.Oh=function(a,b){var c=void 0==b?!0:b,d=_.Nh(a).replace(/\+/g,"-").replace(/\//g,"_");return c?d:d.replace(/[=]*$/,"")};
52
- _.Ph=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};_.Qh=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};_.Rh=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};
53
- _.Sh=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};_.Th=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};_.Nh=function(a){a=xh(_.N(a));return btoa(a)};_.Uh=function(a){this.f=a;this.a=0};
54
- _.Vh=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};
55
- _.Wh=function(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new _.L(_.M,4,4016,{invalidTag:b});var d=c[1],e=c[2];c=[];var f;if(e){e=new _.Uh(e);var g;(g=_.Vh(e,/^([^,=]+)(?:,|$)/g))&&(f=g[1]);for(var h=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=_.Vh(e,h);)c.push(new _.hh(g[1],g[2]||g[3]))}return new _.fh(a,d,c,f)};_.Yh=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0,fatalStatusCodes:_.of(Xh).concat()}};
56
- Zh=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||_.of(Xh).concat()};
57
- _.ai=function(a,b){_.K.$(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.$h,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||
58
- [],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:_.of(Xh).concat(),requestStartTimestamp:null};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&
59
- Zh(c,b);return c};_.bi=function(a,b,c,d,e,f,g,h){e&&(d=e);e={uri:d,data:b||new ArrayBuffer(0),headers:a,status:c,fromCache:!!a["x-shaka-from-cache"],timeMs:g,responseStartMs:h,request:f};if(200<=c&&299>=c&&202!==c)return e;g=null;try{g=_.Bh(b,!0)}catch(l){}_.Uf("HTTP error text:",g);throw new _.L(0<=(f.fatalStatusCodes||[]).indexOf(c)?_.M:1,1,1001,{url:d,status:c,responseText:g,headers:a,request:f,response:e});};
60
- ci=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};di=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};ei=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()};_.fi=function(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c};
61
- _.gi=function(a,b){this.P=a;this.A=b;this.a=!1};hi=function(a,b){a.P.then(function(){return b(!0)},function(){return b(!1)});return a};ii=function(a,b,c){try{var d=a(b);if(d&&d.P&&d.abort)return c.resolve(d.P),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){})["catch"](function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}};_.ji=function(){this.a=[]};
62
- _.ki=function(a,b){a.a.push(hi(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};_.ri=function(){this.f=[];this.g=[];this.o=!1;this.m=new _.ji;this.a={};this.j=0;this.a.data=li;!window.fetch||!window.AbortController||_.mi(6)||_.ni()&&68<_.oi().browserVersion.major?(this.a.http=pi,this.a.https=pi):(this.a.http=qi,this.a.https=qi)};si=function(a,b){var c;return _.B(function(d){if(1==d.a)return _.x(d,a.fetch(b),2);c=d.f;return d["return"](_.yh(c.data))})};
63
- ti=function(a,b,c,d){d=void 0===d?"HEAD":d;var e,f;return _.B(function(g){switch(g.a){case 1:if(!navigator.onLine)return g["return"](!1);if(!b){g.G(2);break}e=_.ai(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.Bf(g,4);return _.x(g,a.fetch(e).P,6);case 6:_.Cf(g,2);break;case 4:if(f=_.Df(g),1002===f.code||1003===f.code)return g["return"](!1);case 2:return g["return"](!0)}})};
64
- _.ui=function(a,b){this.id=a;this.type=b;this.roles=[];this.channelsCount=this.src=this.mimeType=this.frameRate=this.label=this.originalLanguage=this.language=this.kind=null;this.renditions=[];this.accessibility=[]};_.vi=function(a){return a&&a!==_.Ie?a:null};
65
- yi=function(a){if(!a)throw new _.L(_.M,3,3101,Oa+a);if(!_.K.$(a))throw new _.L(_.M,3,3101,Oa+a+". Track type must be a string!");switch(a.toLowerCase()){case _.P:return _.P;case _.R:return _.R;case _.wi:return _.wi;case xi:return xi}throw new _.L(_.M,3,3101,"Unknown track type: "+a+".");};Ai=function(a,b){a=yi(a);var c=_.vi(b.kind),d=b.id;d||(d=String(_.zi++));d=new _.ui(d,c===_.Cd?xi:a);d.kind=c;d.label=_.vi(b.label);d.language=_.vi(b.language);d.originalLanguage=b.originalLanguage||d.language;return d};
66
- Bi=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};_.Ci=function(a,b){this.track=b;this.id=a;this.originalId=this.drm=this.drmInfo=this.codec=this.Zc=this.bandwidth=this.height=this.width=null};
67
- _.Di=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;_.Fh(this.path,
68
- "/")||(this.path="/"+this.path);this.f=b.search;this.g=b.hash};_.Ei=function(a){return a.scheme+"//"+(a.a+(a.port?":"+a.port:"")+a.path+a.g+a.f)};_.Fi=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)},""):""};
69
- Gi=function(a){var b={};a=a||"";a=a.substring(a.indexOf("?")+1);a=_.u(a.split("\x26"));for(var c=a.next();!c.done;c=a.next()){var d=c.value.split("\x3d");c=decodeURIComponent(d[0]);d=decodeURIComponent(d[1]||"");c&&(b[c]=d)}return b};Hi=function(a,b){return a.startsWith("http:://")||a.startsWith("https:://")?a:(new URL(a,b)).toString()};
70
- Ii=function(a){this.f=a;this.h=new _.I("clpp.native.hls.HlsMetadataParser");this.a=Mg(this.g.bind(this),function(b,c){return b[0]===c[0]&&b[1].enableHlsVideoTrackInfo===c[1].enableHlsVideoTrackInfo&&b[1].enableMetadata===c[1].enableMetadata})};
71
- Li=function(a,b,c){var d,e,f,g,h;return _.B(function(l){if(1==l.a)return _.x(l,Ji(a,b,c),2);d=l.f;e=d.mimeType;f=d.renditions;g=new _.ui("dummy",_.wi);h=f.map(function(m,n){var p=new _.Ci("R"+n,g);p.bandwidth=m.bandwidth;p.Zc=m.Zc;p.codec=m.codec;p.width=m.width;p.height=m.height;return p});Ki(h);return l["return"]({renditions:h,mimeType:e||void 0})})};
72
- Ni=function(a){a=a.split("\n").filter(function(c){return c.trim().startsWith("#EXT-X-MEDIA:")}).map(function(c){return Mi(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};
73
- Mi=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.Wh(0,a);a=b(_.sb);a=null!=a?{AUDIO:_.R,VIDEO:_.wi,SUBTITLES:_.P}[a]:void 0;return{type:a,groupId:b(_.Ja),name:b("NAME"),language:b(_.Ra),Sl:b("AUTOSELECT"),"default":b("DEFAULT"),$l:b("FORCED"),Of:b("CHARACTERISTICS"),uri:b(_.vb)}};Ki=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.");};
74
- Oi=function(a,b){var c,d;return _.B(function(e){if(1==e.a)return c=_.ai(b),_.x(e,si(a.f,c),2);d=e.f;return e["return"](d)})};Ji=function(a,b,c){var d,e,f,g;return _.B(function(h){if(1==h.a)return d=Pi(b),e=Qi(b,c),f=d[0]?d[0].codec:null,_.x(h,Ri(a,e,f),2);g=h.f;return h["return"]({mimeType:g,renditions:d})})};Ri=function(a,b,c){var d,e;return _.B(function(f){if(1==f.a)return b&&c?_.x(f,Oi(a,b),2):f["return"](null);d=f.f;e=[Si(d,b),Ti(d,b)].filter(Boolean);return f["return"](_.eh(e,_.Re,c))})};
75
- Pi=function(a){return a.split("\n").filter(function(b){return b.trim().startsWith("#EXT-X-STREAM-INF:")}).map(function(b){var c=_.Wh(0,b);if(c.getAttribute(_.Bb))throw Error("Playlist contains alternative video streams.");var d=_.gh(c,_.hb);b=d?Number(d.split("x")[0]):null;d=d?Number(d.split("x")[1]):null;var e=_.gh(c,_.ma);e=e?Number(e):null;var f=_.gh(c,"AVERAGE-BANDWIDTH");f=f?Number(f):null;c=_.gh(c,_.na);c=_.bh(_.Re,c?c.split(","):[]);return{bandwidth:e,Zc:f,codec:c,width:b,height:d,mimeType:null}})};
76
- Qi=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?Hi(c,b):null};Si=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?Hi(c,b):null};Ti=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.gh(_.Wh(0,c),_.vb))?Hi(c,b):null:null};
77
- _.Vi=function(a,b,c){for(var d=_.u(_.Ui),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.Wi=function(a){a=_.Ui.indexOf(a);0<=a&&_.Ui.splice(a,1)};_.S=function(){};_.Xi=function(a,b){var c=a;b&&(c+='; codecs\x3d"'+b+'"');return c};_.Yi=function(a){this.f=a;this.a=null};Zi=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};
78
- _.$i=function(a){this.f=a;this.a=null};aj=function(){};_.bj=function(){return!!navigator.userAgent.match(/Edge?\//)};_.mi=function(a){return _.cj("Tizen"+(a?" "+String(a):""))};_.ni=function(){return _.cj("Web0S")};_.ej=function(){return _.ni()&&79===dj().major};_.fj=function(){return _.cj("CrKey")};_.gj=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.mi()};_.jj=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.gj()&&1<navigator.maxTouchPoints};
79
- _.kj=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};_.cj=function(a){return(navigator.userAgent||"").includes(a)};nj=function(){if(lj)return lj;mj||(mj=new _.$i(function(){lj=null}));(lj=document.querySelector(_.Re)||document.querySelector(_.mc))||(lj=document.createElement(_.Re));mj.aa(1);return lj};pj=function(a,b){try{return parseInt(b,10)}catch(c){oj.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
80
- qj=function(a){var b={major:-1,name:Je};if(!a)return b;var c=a.replace(/_/g,".");b.name=c;c=c.split(".");1<=c.length&&(b.major=pj(a,c[0]));2<=c.length&&(b.minor=pj(a,c[1]));3<=c.length&&(b.patch=pj(a,c[2]));4<=c.length&&(b.build=pj(a,c[3]));return b};rj=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};
81
- Bj=function(){var a=sj();if(!a)return tj;var b=a.match(/^.+?(?=\))/);if(!b)return tj;b=b[0];if(rj(b,["iphone","ipad"]))return uj;if(rj(b,["android"]))return vj;if(rj(b,["macintosh"]))return wj;if(rj(b,["windows nt"]))return xj;if(rj(b,["tizen"]))return yj;if(rj(b,["web0s"]))return zj;if(rj(b,["linux"]))return Aj;oj.warn("Unable to identify OS from user agent: "+a);return tj};
82
- dj=function(){var a=sj(),b=["ie","edge","opera","firefox","safari",Gc];var c=Bj();for(var d=Cj[c],e=0,f=b.length;e<f;e++)if(c=d[b[e]]&&a.match(d[b[e]]))return qj(c[1]);return qj("")};sj=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
83
- _.oi=function(){var a=Bj();var b=Bj();var c=Cj[b];if(c){c=sj().match(c.os_version)[1];c=qj(c);if(b===xj)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=qj("");a:{c=sj();var d=["ie","edge","opera","firefox","safari",Gc],e=Bj();e=Cj[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=Dj}return{os:a,osVersion:b,browser:c,browserVersion:dj()}};
84
- Ej=function(){this.h=new _.I("clpp.native.TrackManager");this.l=null;this.f=new _.eg;this.g=[];this.B=0;this.o={};this.D=[];this.a=new Map;this.w=null;this.m=new Map;this.A=!0;this.J=this.ff.bind(this,_.P);this.M=this.hf.bind(this,_.P);this.K=this.gf.bind(this,_.P);this.N=this.ff.bind(this,_.wi);this.V=this.hf.bind(this,_.wi);this.T=this.gf.bind(this,_.wi);this.F=this.ff.bind(this,_.R);this.I=this.hf.bind(this,_.R);this.H=this.gf.bind(this,_.R);this.j=null};
85
- Gj=function(a,b){var c,d,e,f,g,h,l,m;return _.B(function(n){if(1==n.a){c=a.l.getConfiguration();d=_.Vi(c,b.mimeType,_.De);if(!d)return a.h.warn("Track mimetype is not supported",b),n["return"]();e=_.ai(b.url);return _.x(n,a.l.getNetworkEngine().fetch(e).P,2)}(f=n.f)&&f.data&&(g="External_"+a.B++,a.o[g]=b,h=d.a(_.N(f.data)),l=URL.createObjectURL(new Blob([h])),m={url:l,kind:b.kind,language:b.language,label:b.label,mimeType:_.De},Fj(a,m,g));_.y(n)})};Ij=function(a,b,c){return Hj(a)&&b===_.wi&&!!c.enableHlsVideoTrackInfo};
86
- Jj=function(a,b,c){return Hj(a)&&(b===_.R||b===_.P)&&!!c.enableMetadata};Hj=function(a){a=a.l.getLoadedSource();return!(!a||a.type!==_.Kj&&!a.url.endsWith(".m3u8"))&&_.gj()};Lj=function(a,b,c){var d,e;return _.B(function(f){if(1==f.a)return(d=a.l.getLoadedSource())&&a.j?_.x(f,a.j.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}));_.y(f)})};
87
- Mj=function(a,b,c){var d,e,f,g;return _.B(function(h){if(1==h.a)return(d=a.l.getLoadedSource())&&a.j?_.x(h,a.j.a(d.url,c),2):h["return"]();e=h.f;e.Qc&&(f=b.type+":"+b.label,(g=e.Qc.get(f))&&g.Of&&(b.accessibility=g.Of.split(",").map(function(l){return l.trim()}).map(function(l){return{value:l,type:b.type,protocol:"HLS"}})));_.y(h)})};
88
- Fj=function(a,b,c){if(a.l){var d=a.l.getSurface().getMedia();if(d){var e=document.createElement("track");e.id=c;e.kind=b.kind;e.srclang=b.language;b.label&&(e.label=b.label);e.src=_.Ih(b.url)?URL.createObjectURL(new Blob([])):b.url;d.appendChild(e);a.D.push(e)}}};Nj=function(a,b){if(!a.l)return null;var c=a.l.getSurface();if(!c)return null;c=c.getMedia();if(!c)return null;switch(b){case _.R:return c.audioTracks;case _.wi:return c.videoTracks;case _.P:return c.textTracks;default:return null}};
89
- Oj=function(a,b){var c=Nj(a,b);c&&(c=Array.from(c),b===_.P&&(c=c.filter(function(d){return d.kind!==_.Cd})));return c};Pj=function(a,b){return a.g.filter(function(c){return c.type===b})};Qj=function(a,b){var c=a.a.get(b)||null;return c&&c.renditions[0]};Rj=function(a,b){var c=a.m.get(b);return c&&c.renditions[0]};
90
- Vj=function(a,b,c){var d=Oj(a,b);if(c){if(void 0===a.g.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.h.debug("Activate track type "+b+" with ID: "+c.id);if(d){a.m.set(b,c);var e=!0,f=!1;switch(b){case _.P:var g="mode";e=_.ne;f=_.Yc;break;case _.R:g="enabled";break;case _.wi:g="selected"}if(g){d=_.u(d);for(var h=d.next();!h.done;h=d.next())h=h.value,h[g]=Sj(c,h,c.type)?e:
91
- f}}}else if(a.h.debug(_.Ba+b),a.a.get(b)&&d&&b===_.P){g=_.u(d);for(h=g.next();!h.done;h=g.next())h.value.mode=_.Yc;a.a.set(b,null)}b===_.R?a.l.trigger(new _.J(_.Tj)):b===_.P&&a.l.trigger(new _.J(_.Uj))};Wj=function(a){return a.enabled||a.selected||a.mode===_.ne||a.mode===_.nd};
92
- Xj=function(a,b,c){c=_.tg(c).filter(function(e){return e});a.h.info("Find preferred tracks for",b,c);var d=Pj(a,b);c.some(function(e){var f=_.ih(e);return(e=d.find(function(g){g=_.ih(g.language||"");return _.jh(f,g)}))?(a.h.info("Will select track with id",e.id),Vj(a,b,e),!0):!1})};Yj=function(a){(a=a.l.getTextDisplayer())&&a.remove(0,Infinity)};
93
- Sj=function(a,b,c){return a.type!==c?!1:void 0!==b.id&&null!==b.id&&""!==b.id?a.id===b.id:_.K.pa(a,{kind:_.vi(b.kind),language:_.vi(b.language),label:_.vi(b.label)},["kind","language","label"])};_.Zj=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};_.ak=function(){this.md=new dg(this);this.kd=[]};ck=function(a){return a.name===ab&&bk.some(function(b){return a.message.startsWith(b)})};dk=function(){};
94
- _.gk=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.jj()&&(a=360);var b=_.Yh();b.maxAttempts=3;a={source:"",license:ek,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,manifest:{attemptParameters:_.Yh(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,
95
- restrictions:fk(a)},drm:null,enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:"main",preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],volume:null,startTime:null,loop:!1,lowLatencyMode:!1,suggestedPresentationDelay:void 0,muted:void 0,forceWaitForTracks:!1,streaming:{attemptParameters:b,bufferingGoal:10,rebufferingGoal:2,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,relativeTextTimestamp:!1,startAtSegmentBoundary:!1,
96
- 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,chasingRate:1.15,startChasingAt:5,stopChasingAt:2,chaseJumpDistance:10,patchEdgeWhenMixedContent:!1,ignoreDrift:!1,disableFragmentSupport:!1,disableMergedFragments:!1,ignoreManagedMediaSourceStreamingHints:!1},
97
- restrictions:fk(),tizen:{sideStreamText:_.mi(2)},safari:{enableHlsVideoTrackInfo:!1,enableMetadata:!1}};if(_.cj("Edge/")||_.mi())a.streaming.gapDetectionThreshold=.5;_.ni()&&(a.streaming.stallEnabled=!1);_.ej()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=.02);_.mi()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=0);a.vr={enable:!1,attachMouseListener:!0,fieldOfView:70,sensitivity:1,invertHorizontalControl:!1,
98
- invertVerticalControl:!1};return a};
99
- _.ik=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(!b)return _.gk();c=[_.gk()];var d=!1;b=_.u(b);for(var e=b.next();!e.done;e=b.next())e=e.value,null!==e&&void 0!==e&&(_.K.$(e)&&(e={source:e}),e.lowLatencyMode&&!d&&(c.push({suggestedPresentationDelay:0,streaming:{rebufferingGoal:.1,bufferLimitUpdateInterval:.01,attemptParameters:{maxAttempts:3,baseDelay:250,backoffFactor:1}},abr:{bandwidthUpgradeTarget:.6,bandwidthDowngradeTarget:.95},manifest:{hlsLowLatency:!0}}),d=!0),
100
- c.push(e));c=_.K.wa.apply(null,c);_.K.$(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.K.R(c.volume)&&(!_.K.la(c.volume)||_.K.isNaN(c.volume)))throw new _.L(_.M,7,7100,"config.volume is not a number");if(!_.K.R(c.preferredTextLanguage)&&!_.K.$(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.L(_.M,7,7100,"config.preferredTextLanguage is not a string or an array");if(!_.K.R(c.preferredAudioLanguage)&&!_.K.$(c.preferredAudioLanguage)&&!Array.isArray(c.preferredAudioLanguage))throw new _.L(_.M,
101
- 7,7100,"config.preferredAudioLanguage is not a string or an array");if(!_.K.R(c.preferredAudioCodec)&&!_.K.$(c.preferredAudioCodec)&&!Array.isArray(c.preferredAudioCodec))throw new _.L(_.M,7,7100,"config.preferredAudioCodec is not a string or an array");if(!_.K.R(c.preferredVideoCodec)&&!_.K.$(c.preferredVideoCodec)&&!Array.isArray(c.preferredVideoCodec))throw new _.L(_.M,7,7100,"config.preferredVideoCodec is not a string or an array");if(!_.K.R(c.drm)){if(c.drm.env&&!_.K.$(c.drm.env))throw new _.L(_.M,
102
- 7,7100,"config.drm.env is not a string");if(c.drm.offlineId&&!_.K.$(c.drm.offlineId))throw new _.L(_.M,7,7100,"config.drm.offlineId is not a string");}if(d=c.streaming){d.bufferingGoal=Number(d.bufferingGoal);d.rebufferingGoal=Number(d.rebufferingGoal);d.bufferBehind=Number(d.bufferBehind);d.smallGapLimit=Number(d.smallGapLimit);d.durationBackoff=Number(d.durationBackoff);if(!_.K.la(d.bufferingGoal)||_.K.isNaN(d.bufferingGoal))throw new _.L(_.M,7,7100,"config.streaming.bufferingGoal is not a number");
103
- if(!_.K.la(d.rebufferingGoal)||_.K.isNaN(d.rebufferingGoal))throw new _.L(_.M,7,7100,"config.streaming.rebufferingGoal is not a number");if(d.rebufferingGoal>d.bufferingGoal)throw new _.L(_.M,7,7100,"config.streaming.rebufferingGoal must be \x3e\x3d bufferingGoal");if(!_.K.la(d.bufferBehind)||_.K.isNaN(d.bufferBehind))throw new _.L(_.M,7,7100,"config.streaming.bufferBehind is not a number");if(!_.K.la(d.smallGapLimit)||_.K.isNaN(d.smallGapLimit))throw new _.L(_.M,7,7100,"config.streaming.smallGapLimit is not a number");
104
- if(!_.K.la(d.durationBackoff)||_.K.isNaN(d.durationBackoff))throw new _.L(_.M,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.K.R(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.k)throw new _.L(_.M,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");hk(c.restrictions);hk(c.abr.restrictions);c.abr.initialRestrictions&&hk(c.abr.initialRestrictions)}return c};
105
- fk=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}};
106
- hk=function(a){_.K.R(a.maxPixels)&&(a.maxPixels=Infinity);_.K.R(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.K.R(a.maxHeight)&&(a.maxHeight=Infinity);_.K.R(a.maxWidth)&&(a.maxWidth=Infinity);_.K.R(a.minPixels)&&(a.minPixels=0);_.K.R(a.minBandwidth)&&(a.minBandwidth=0);_.K.R(a.minHeight)&&(a.minHeight=0);_.K.R(a.minWidth)&&(a.minWidth=0);a.minWidth=Number(a.minWidth);a.maxWidth=Number(a.maxWidth);a.minHeight=Number(a.minHeight);a.maxHeight=Number(a.maxHeight);a.minBandwidth=Number(a.minBandwidth);
107
- a.maxBandwidth=Number(a.maxBandwidth);a.minPixels=Number(a.minPixels);a.maxPixels=Number(a.maxPixels);if(Number.isNaN(a.minWidth)||Number.isNaN(a.maxWidth)||Number.isNaN(a.minHeight)||Number.isNaN(a.maxHeight)||Number.isNaN(a.minBandwidth)||Number.isNaN(a.maxBandwidth)||Number.isNaN(a.minPixels)||Number.isNaN(a.maxPixels))throw new _.L(_.M,7,7100,"Restrictions contain NaN");};_.jk=function(a){return typeof a===_.Ld&&!Array.isArray(a)&&"source"in a};
108
- _.kk=function(a){_.ak.call(this);this.log=new _.I(a);this.configuration=this.Pd=_.gk();this.w=this.D=null;this.Yd=this.Te=!1;this.jh=new _.I("clpp.video.events");this.$c=null;this.Rd=-1;this.ul=this.cl.bind(this);this.Bg=new _.ri;this.M=new _.eg;this.wc=this.Ic=this.K=null};_.mk=function(a){return _.lk.get(a)||null};_.ok=function(a){_.lk.get(a.id())?nk.warn("Component already in use."):_.lk.set(a.id(),a)};pk=function(a){for(var b=_.u(_.lk.values()),c=b.next();!c.done;c=b.next())a(c.value)};
109
- qk=function(){this.a=this.f=null;this.h=new _.I("clpp.drm.csl")};rk=function(a,b){3===b.type&&(a.f&&(a.h.debug("Attaching tracking token"),b.headers[gf]=a.f),a.a&&(b.headers[lf]=a.a))};
110
- sk=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[gf];a.a=b.headers[lf];var c=b.headers["x-dt-csl-renewal-info"];a.f&&a.h.debug("Loaded tracking token "+a.f);a.a&&a.h.debug("Loaded followup token "+a.a);if(c)return c=JSON.parse(_.yh(_.Ph(c))),{delay:c.renewalPeriod,Pl:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};tk=function(a){return _.Fh(a,_.Rc)||_.Fh(a,_.Sc)};_.vk=function(a){_.uk[a.J]=a};
111
- _.xk=function(a){var b={attemptParameters:_.Yh(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,enableSessionCacheForSkd:!1,ignoreUnrecognizedInitData:!0,Wa:{}};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!==a.ignoreUnrecognizedInitData&&
112
- (b.ignoreUnrecognizedInitData=!!a.ignoreUnrecognizedInitData),a.env)){var c=_.uk[a.env]||null;if(!c)throw _.Uf(_.ua,_.fb+a.env+_.aa),new _.L(_.M,6,6015,_.va+a.env+"' is missing.");b.Wa=_.wk(c,a.customData)||{};_.Fh(a.env.toLowerCase(),dd)&&(b.enforceSingleSession=!0)}return b};zk=function(a){a=yk[a];if(!a)return null;var b=_.oi();return b.os===vj&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.Ak=function(a){this.J=a;this.f={}};
113
- Bk=function(a,b){var c=_.oi();if(c.os!==vj||c.browser!==Gc)return a||b};
114
- _.wk=function(a,b){var c={},d=b?b.widevineVideoRobustness:void 0,e=b?b.widevineAudioRobustness:void 0,f=b?b.serverCertificate:void 0,g=a.f[_.Tc];g&&(c[_.Tc]={licenseUrl:g.licenseUrl,videoRobustness:Bk(d,g.videoRobustness),audioRobustness:Bk(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:Og(b?b.widevineDistinctiveIdentifierRequired:void 0,g.distinctiveIdentifierRequired,!1),persistentStateRequired:Og(b?b.widevinePersistentStateRequired:void 0,g.persistentStateRequired,!1),
115
- serverCertificate:void 0===f?g.serverCertificate:null===f?null:typeof f===_.ve?zk(f):f});(g=a.f[_.Rc])&&(c[_.Rc]={licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.f[_.Sc])&&(c[_.Sc]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});
116
- return c};_.Ck=function(a,b){b=void 0===b?!1:b;this.f=_.K.la(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.g=b;this.buffer=this.f.buffer};_.Ek=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.N(a.f.buffer);b=_.N(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.Dk()}};_.T=function(a,b){try{a.f.setUint32(a.a,b,a.g),a.a+=4}catch(c){_.Dk()}};_.Dk=function(){throw new _.L(_.M,3,3E3);};_.Fk=function(a,b){this.f=a;this.g=void 0===b?!0:b;this.a=0};_.Gk=function(a){return a.a<a.f.byteLength};
117
- _.Ik=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){_.Hk()}};_.Jk=function(a){try{var b=a.f.getUint16(a.a,a.g);a.a+=2;return b}catch(c){_.Hk()}};_.U=function(a){try{var b=a.f.getUint32(a.a,a.g);a.a+=4;return b}catch(c){_.Hk()}};_.Kk=function(a){try{var b=a.f.getInt32(a.a,a.g);a.a+=4;return b}catch(c){_.Hk()}};
118
- _.Lk=function(a){var b=0,c=0;try{!0===a.g?(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){_.Hk()}if(2097151<c)throw new _.L(_.M,3,3001);a.a+=8;return c*Math.pow(2,32)+b};Mk=function(a,b){for(var c=new Uint8Array(b),d=0;d<b;d++)c[d]=_.Ik(a);return c};_.Nk=function(a,b){a.a+b>a.f.byteLength&&_.Hk();var c=a.a+a.f.byteOffset;c=a.f.buffer.slice(c,c+b);a.a+=b;return _.N(c)};
119
- _.Hk=function(){throw new _.L(_.M,3,3E3,"Buffer read out of bounds.");};_.Ok=function(){this.g=[];this.f=[];this.a=!1;this.h=new _.I("clpp.mp4")};_.Pk=function(a){for(;_.Gk(a.reader)&&!a.parser.a;)a.parser.de(a.start+a.headerSize,a.reader,a.partialOkay)};_.Qk=function(a){for(var b=_.U(a.reader);0<b&&!a.parser.a;--b)a.parser.de(a.start+a.headerSize,a.reader,a.partialOkay)};_.Rk=function(a){return function(b){var c=b.reader.Ea()-b.reader.getPosition();a(_.Nk(b.reader,c))}};
120
- Sk=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.Tk=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};_.Uk=function(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)};Vk=function(){};Wk=function(a){var b="";try{b=_.Bh(a)}catch(c){}return b};_.Xk=function(a){a=Wk(a);var b="";a.length&&(b=(new _.Di(a)).a);return b};
121
- Yk=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.yh(a)),d=_.Ph(c.sinf[0]);(new _.Ok).L(_.oe,_.Pk).L("schi",_.Pk).L("tenc",function(e){e.reader.skip(6);_.Ik(e.reader)&&(e.reader.skip(1),b=_.Rh(_.Nk(e.reader,16)));e.parser.stop()}).parse(d)}catch(e){}return b};
122
- Zk=function(a,b,c){if(!c||!c.byteLength)throw new _.L(_.M,6,6102);var d;typeof b===_.ve?d=_.Dh(b,!0):d=b;a=_.Dh(Wk(a),!0);b=new _.Ck(12+a.byteLength+d.byteLength+c.byteLength,!0);_.T(b,a.byteLength);_.Ek(b,_.N(a));_.T(b,d.byteLength);_.Ek(b,_.N(d));_.T(b,c.byteLength);_.Ek(b,_.N(c));return _.N(b.buffer)};_.$k=function(a){var b=_.N(a.body);b=_.Oh(b);a.headers[ta]=lc;a.body=_.Ch("spc\x3d"+b).buffer};
123
- _.al=function(a){try{var b=_.yh(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=wh(_.Ph(b))};
124
- gl=function(){var a=bl;if(a===dl)return"https://lic.drmtoday.com";if(a===el)return"https://lic.staging.drmtoday.com";if(a===fl)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};kl=function(a){var b=gl();if(a==_.Tc)return b+hl;if(a==_.Sc)return b+il;if(a==_.Rc)return b+jl;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
125
- ll=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
126
- _.nl=function(a,b,c){b=Wk(b);c=c&&c.customData?c.customData:{};b=new _.Di(ll(b));var d=Gi(b.f);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.Hh(""+a)&&(d.assetId=a,ml.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.Hh(""+e)&&(d.variantId=e,ml.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],ml.debug("KeyId found in FPS SKD. Removing other parameters")):
127
- a=["assetId","variantId"];b.f=_.Fi(d,!1,a);"/"!==b.path||b.j.includes(b.a+"/")||(b.path="");b=_.Ei(b);return c.fpsContentId=b};_.pl=function(a,b,c,d){d=void 0===d?!0:d;c=a.drm;c&&c.env.startsWith(ya)?c.customData&&(_.ol(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)):ml.warn(Xa)};
128
- ql=function(a,b,c){_.pl(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.Pg(b.uris[0]);c.a.add(_.Wd,a);b.uris[0]=c.toString()};
129
- _.rl=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.pl(a,b,c,!1);b.headers[ta]=lc;c={spc:_.Nh(b.body)};if((a=a.drm)&&a.env.startsWith(za)&&d){a={};var e=Gi((new _.Di(ll(d))).f);d=e.keyId;if(e=e.assetId)ml.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(ml.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(ml.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(ml.info("Adding assetID to FPS payload:",a.assetId),c.assetId=a.assetId)}b.body=
130
- _.Eh(_.Fi(c,!0))};_.sl=function(a,b){ml.debug("Clearing response data");if(200===b.status){var c=_.yh(b.data).trim();"\x3cckc\x3e"===c.substr(0,5)&&"\x3c/ckc\x3e"===c.substr(-6)&&(c=c.slice(5,-6));b.data=_.Ph(c).buffer}};_.tl=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(ya))ml.warn(Xa);else if(c.customData&&c.customData.merchant&&!c.env.startsWith(za)){var d=new _.Pg(b.uris[0]),e=d.Ba;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.Ba=e;b.uris[0]=d.toString()}};
131
- _.ul=function(a,b){try{var c=_.N(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));ml.debug("Widevine License response",d);var e=atob(d.license),f=new Uint8Array(e.length);for(c=0;c<e.length;++c)f[c]=e.charCodeAt(c);b.data=f.buffer}catch(g){ml.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data")}};
132
- _.ol=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};_.K.Bj(d)&&(a.headers["dt-custom-data"]=btoa(JSON.stringify(d)));(c=c.customData.authToken)&&(a.headers["x-dt-auth-token"]=c)}};wl=function(a){var b={},c=a?a[mf]:void 0;a=vl[a?a[mf]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};xl=function(){};
133
- zl=function(a,b){b=void 0===b?0:b;_.Tf("Registering EME Factory: "+a.a());for(var c={priority:b,Mb:a},d=0;d<yl.length;++d)if(yl[d].priority<b){yl.splice(d,0,c);return}yl.push(c)};
134
- Al=function(a){if(a){var b=yl.find(function(d){return d.Mb.a()===a}).Mb;if(b&&b.ba())return _.Tf(Eb+b.a()),b.create();_.Tf("Cannot create selected EME manager. Choosing by priority list.")}b=_.u(yl);for(var c=b.next();!c.done;c=b.next())if(c=c.value.Mb,c.ba())return _.Tf(Eb+c.a()),c.create();throw Error("Missing EME managers");};_.Bl=function(a,b,c){this.j=new Uint8Array(a);this.a=b;this.f=c};Cl=function(){_.Bl.apply(this,arguments)};
135
- _.El=function(a){var b=_.Qh(a);b=parseInt(b.byteLength,10).toString(16);b=_.Qh("12"+b+a);return new Cl(Dl,a,b)};
136
- _.Fl=function(a){function b(r){switch(r){case 0:do if(!_.Gk(d))throw Error("not enough data to skip!");while(_.Ik(d)&128);break;case 1:d.skip(8);break;case 2:d.skip(c());break;case 3:for(;4!==(r=c()&7);)b(r);break;case 5:d.skip(4);break;default:throw Error("invalid wire type "+r);}}function c(){for(var r=_.Ik(d),v=(r&127)>>>0,z=7;128<=r&&28>=z;)r=_.Ik(d),v=(v|(r&(28>z?127:15))<<z)>>>0,z+=7;return 28<z?-1:v}var d=new _.Fk(new DataView(a.buffer,a.byteOffset,a.byteLength),!1);a=_.U(d);var e=_.U(d);e=
137
- _.Tk(e);var f=_.U(d),g=f>>>24;f&=16777215;var h=_.Nk(d,16);h=_.Rh(h);if(0<g){var l=_.U(d);d.skip(16*l)}l=_.U(d);for(var m=[],n=null;_.Gk(d);){var p=c(),q=p&7;p>>>=3;if(2===q){q=c();if(0>q)throw Error("unable to read length of field "+p);q=Mk(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.Uf("Parsed WV PSSH Box","size",a,"name",e,"version",g,"flags",f,"size",l,"systemId",h,"contentId (base64)",n?_.Nh(n):"","keyIds",m.map(function(r){return _.Rh(r)}));return 0<m.length?_.El(_.Rh(m[0])):null};
138
- Gl=function(a){this.f=[];this.g=[];this.a=[];8<=a.byteLength&&(new _.Ok).Y("pssh",this.j.bind(this)).parse(a.buffer);0==this.a.length&&_.G("No pssh box found!")};
139
- _.Kl=function(a){var b=this;this.C=a;this.M=new Set;this.B=this.I=this.o=null;this.da=!1;this.a=null;this.J=Hl;this.A=new _.eg;this.N=new qk;this.f=new Map;this.K=[];this.H=new _.fi;this.g=null;this.U=function(c){b.w=!0;b.D=!1;b.H.reject(c);a.onError(c)};this.m=new Map;this.ma=new Map;this.ga=new _.$i(function(){return Il(b)});this.j=!1;this.Ia=new _.fi;this.F=!1;this.ha=[];this.Xa=!1;this.V=0;this.h=new _.I("clpp.drm.DrmEngine");this.na=(new _.$i(function(){Jl(b)})).fb(1);this.H["catch"](function(){});
2
+ (function(window){var ba,ca,da,ea,oa,qa,ua,va,za,Aa,Ca,Da,Ga,Na,Oa,Pa,Qa,Ra,Sa,Ta,Va,Za,$a,ab,bb,cb,db,eb,fb,hb,lb,qb,tb,ub,vb,wb,zb,Cb,Fb,Gb,Jb,Lb,lc,qc,Cc,Dc,Jc,Kc,Lc,Nc,Oc,Qc,Rc,Sc,Tc,Uc,$c,cd,hd,jd,kd,md,nd,od,qd,td,ud,vd,zd,Gd,Id,Jd,Pd,Sd,ge,ne,pe,qe,re,se,te,ue,ze,Ae,Be,Fe,He,Pe,Se,Ze,gf,hf,Af,Ef,Ff,Gf,Hf,If,Kf,Lf,Mf,Nf,Rf,Vf,Xf,Wf,Yf,Zf,$f,dg,gg,eg,fg,hg,jg,kg,pg,rg,wg,xg,Cg,Dg,Ig,Gg,Jg,Lg,Kg,Ng,Qg,Ug,Wg,Vg,hh,ih,jh,kh,lh,nh,oh,qh,rh,vh,yh,Ah,th,Nh,Qh,Sh,Th,Wh,Rh,Oh,Xh,$h,yi,Ci,Di,Ei,Hi,Ii,Si,Ti,Yi,$i,aj,gj,
3
+ hj,kj,mj,lj,jj,nj,ij,qj,oj,pj,rj,sj,yj,Aj,Nj,Pj,Qj,Rj,bk,Fj,Sj,ek,gk,ik,jk,hk,lk,mk,fk,nk,ok,pk,qk,rk,vk,wk,xk,yk,sk,Ck,Dk,Fk,Hk,Pk,Qk,Rk,Sk,Tk,Uk,Vk,Wk,Xk,Yk,Zk,$k,gl,sl,yl,Bl,Cl,El,Fl,Ml,Ql,Rl,Wl,bm,cm,em,fm,km,lm,rm,sm,xm,Dm,Mm,Om,Qm,Um,Vm,Zm,Km,Im,en,Xm,fn,hn,gn,sn,rn,pn,qn,zm,Pm,jn,Am,dn,Hm,$m,an,tn,cn,Jm,Cm,yn,An,Bn,Cn,Dn,In,Mn,Nn,Pn,Tn,Yn,Ln,Zn,$n,co,go,ho,jo,ko,fo,eo,lo,mo,no,so,xo,yo,zo,Do,Co,Fo,Eo,Ho,Io,Jo,Ko,Go,Mo,Oo,Po,Qo,Ro,So,To,Uo,Vo,Xo,Yo,Zo,$o,Wo,cp,X,ep,dp,gp,ip,jp,lp,pp,mp,rp,up,
4
+ wp,vp,yp,Ap,Bp,Dp,Ep,Fp,Cp,tp,Gp,sp,Hp,Ip,Jp,Kp,ro,Lp,Np,Op,Pp,Qp,Rp,Sp,Tp,Up,Vp,Wp,Xp,Yp,Zp,$p,aq,bq,eq,cq,fq,hq,iq,dq,gq,jq,kq,lq,mq,nq,oq,pq,qq,rq,sq,uq,wq,xq,yq,vq,Aq,Bq,Fq,Kq,Lq,Nq,Mq,Pi,Pq,Sq,Rq,Tq,Uq,Qq,Wq,Xq,Vq,Yq,$q,Qi,cr,Li,nr,qr,Pf,sr;_.aa=" is registered.";ba=" is unsupported on this platform.";ca=" to a log level. Falling back to default!";da="': 'output-restricted'";ea=".start";_.fa="6.11.0";_.ha="AdaptationSet";_.ia="Already destroyed. No-op";_.ja="Already released. No-op";_.ka="Autoplay is not allowed due to browser policy.";
5
+ _.na="BANDWIDTH";oa="CHECKSUM";_.pa="CODECS";qa="Can not set volume to ";_.ra="Cannot retrieve buffer information due to platform limitations";_.sa="CastlabsPlayer";ua="Content-Length";va="Content-Type";_.wa="Could not find configured DRM environment.";_.xa="DRM environment '";za="DRM licenses loaded";Aa="DRMtoday";Ca="DRMtodayOnboard";Da="Destroying player";_.Fa="Disable track type ";Ga="Error while decoding string!";_.Ia="Error while fetching license!";_.Ka="FairPlay Certificate URL is not defined";
6
+ _.La="FairPlay License URL is not defined";_.Ma="GROUP-ID";Na="HW_SECURE_ALL";Oa="HW_SECURE_CRYPTO";Pa="HW_SECURE_DECODE";Qa="HeaderDrm";Ra="Invalid track type: ";Sa="InvalidStateError";Ta="Key status for Key ID '";_.Ua="LANGUAGE";Va="License verification failed: ";_.Wa="Loading player with configuration";_.Xa="MaxHeight";_.Ya="MaxWidth";Za="Missing media element";$a="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";ab="No event provided!";bb="No items in the playlist";
7
+ cb="No track data attached to the event, unable to add track!";db="Not a persistent session.";eb="NotAllowedError";fb="NotSupportedError";_.gb="PlayReady License URL is not defined";hb="Player not ready yet.";_.ib="Player sources";_.jb="Player state change: ";_.kb="Please make sure ";lb="Preloading is not supported by this player.";_.mb="QualityLevel";_.nb="RESOLUTION";_.ob="Releasing player with source";_.pb="Representation";qb="STANDARD";_.rb="SW_SECURE_CRYPTO";_.sb="SW_SECURE_DECODE";tb="Session is closed";
8
+ ub="Setting native ";vb="Signature Verification failed";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.";_.Ab="URI";Cb="Unable to translate ";_.Db="Unhandled/ignored event";_.Eb="Unregistering listeners";Fb="Unsupported keySystem";Gb="Using VTTCue polyfill from 3 argument TextTrackCue.";_.Ib="VIDEO";Jb="WebkitEmeManager.MediaKeySession.load";_.Kb="Widevine License URL is not defined";
9
+ Lb="Will create EME Manager: ";_.Mb="ad-break-started";_.Nb="ad-break-stopped";_.Ob="ad-buffering";_.Pb="ad-clicked";_.Qb="ad-completed";_.Rb="ad-first-quartile";_.Sb="ad-impression";_.Tb="ad-loaded";_.Ub="ad-midpoint";_.Vb="ad-paused";_.Xb="ad-progress";_.Yb="ad-resumed";_.Zb="ad-skipped";_.$b="ad-started";_.ac="ad-stopped";_.bc="ad-third-quartile";_.cc="addtrack";_.dc="ads-timeline-changed";_.ec="airplay-casting-ended";_.fc="airplay-casting-started";_.hc="airplay-status-changed";_.ic="application";
10
+ _.jc="application/cea-608";_.kc="application/dash+xml";lc="application/mp4";_.mc='application/mp4; codecs\x3d"stpp"';_.nc='application/mp4; codecs\x3d"wvtt"';_.oc="application/ttml+xml";_.pc="application/vnd.ms-sstr+xml";qc="application/x-www-form-urlencoded";_.rc="audio";_.sc="audio/aac";_.tc="audio/ac3";_.uc="audio/eac3";_.vc="audio/mp4";_.wc="audiobufferchanged";_.xc="autoplaynotallowed";_.yc="bitratechanged";_.zc="boolean";_.Ac="bufferingended";_.Bc="bufferingstarted";Cc="canplay";Dc="canplaythrough";
11
+ _.Ec="castingstarted";_.Fc="caststatuschanged";_.Gc="cdn-switch-success";_.Hc="cenc";_.Ic="center";Jc="certificate-request";Kc="change";Lc="chrome";_.Mc="clpp-fill";Nc="clpp-hidden";Oc="clpp-mc-playlist";_.Pc="clpp.cast.CastSender";Qc="clpp.drm.HeaderDrm";Rc="clpp.drm.eme.AppleEmeManager";Sc="clpp.native.Player";Tc="clpp.plist.McPlaylist";Uc="clpp.utils.Platform";_.Vc="codecs";_.Wc="column-reverse";_.Xc="com.adobe.primetime";_.Yc="com.apple.fps";_.Zc="com.microsoft.playready";$c="com.microsoft.playready.recommendation";
12
+ _.ad="com.widevine.alpha";_.bd="config.drm.customData is not defined";cd="controls";_.dd="cuechange";_.ed="destroy()";_.fd="disabled";_.gd="div";hd="drm.license.req.";jd="drm.mediaKeys.end";kd="drm.mediaKeys.start";md="drm.onPlay.end";nd="drm.onPlay.start";od="drm.sess.update.";_.pd="drmexpirationupdate";qd="drmrenewalstarted";_.rd="drmsessionpersisted";_.sd="drmsessionupdate";td="drmtoday";ud="durationchange";vd="encrypted";_.wd="end";_.xd="ended";_.yd="error";zd="fullscreenElement";_.Ad="function";
13
+ _.Bd="height";_.Cd="hidden";_.Dd="html";_.Ed="image";_.Fd="internal-error";Gd="keystatuseschange";_.Hd="left";Id="license-renewal";Jd="license-request";_.Kd="line-left";_.Ld="line-right";_.Nd="loadeddata";_.Od="loadedmetadata";Pd="loadstart";_.Qd="mdat";_.Rd="mdia";Sd="message";_.Td="metadata";_.Ud="mimeType";_.Vd="minf";_.Wd="moov";_.Xd="mp4";_.Yd="mpd-type-changed";_.Zd="mpeg-dash-callback-event";_.$d="none";_.k="number";_.ae="object";_.be="onBitrateChanged()";_.ce="onPlayerError()";_.de="onPlayerWillDestroy";
14
+ _.ee="onPlayerWillRelease";_.fe="onStateChanged()";ge="online-status-changed";_.he="optional";_.ie="org.w3.clearkey";_.je="output-restricted";_.ke="pause";_.le="persistent";_.me="persistent-license";ne="picture-in-picture";_.oe="play";pe="player.afterLoad.end";qe="player.afterLoad.start";re="player.beforeLoad.end";se="player.beforeLoad.start";te="player.load.end";ue="player.load.start";_.ve="playing";_.we="playlist-item-changed";_.xe="playlist-modified";ze="playlist.next.end";Ae="playlist.next.start";
15
+ Be="preload-failed";_.Ce="progress";_.De="px";_.Ee="ratechange";Fe="released";_.Ge="releasing";He="removetrack";_.Ie="required";_.Je="resize";_.Ke="right";_.Le="seeked";_.Me="seeking";_.Ne="showing";_.Oe="sinf";Pe="stalled";_.Qe="start";_.Re="statechanged";Se="status-pending";_.Te="stbl";_.Ue="string";_.Ve="stsd";_.We="style";_.Xe="subtitle";_.Ye="subtitles-htmlcue";Ze="temporary";_.$e="text";_.af="text/vtt";_.bf="text/xml";_.cf="timeupdate";_.df="trak";_.ef="ttml-xml";_.ff="und";gf="unknown";
16
+ hf="update";_.jf="urn:scte:scte35";_.kf="urn:scte:scte35:2014";_.lf="user-seeked";_.mf="user-seeking";_.of="value";_.sf="vertical-lr";_.tf="vertical-rl";_.uf="video";_.vf="video/mp2t";_.wf="video/mp4";_.xf="videobufferchanged";_.yf="videotrackchanged";_.zf="vimond-response";Af="visibilitychange";_.Bf="vtt-xml";_.Cf="waiting";_.Df="waitingforkey";Ef="webkit-org.w3.clearkey";Ff="webkitkeyadded";Gf="webkitkeyerror";Hf="webkitkeymessage";If="webkitneedkey";_.Jf="width";Kf="x-dt-csl-tracking-token";
17
+ Lf="x-dt-follow-up-token";Mf="x-dt-resp-code";Nf=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};_.u=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:Nf(a)}};_.Of=function(a){if(!(a instanceof Array)){a=_.u(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a};
18
+ _.w=function(a,b){a.prototype=Pf(b.prototype);a.prototype.constructor=a;if(Qf)Qf(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]};Rf=function(){Rf=function(){};Sf.Symbol||(Sf.Symbol=Tf)};Vf=function(a,b){this.a=a;Uf(this,"description",{configurable:!0,writable:!0,value:b})};
19
+ Xf=function(){Rf();var a=Sf.Symbol.iterator;a||(a=Sf.Symbol.iterator=Sf.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.Ad&&Uf(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return Wf(Nf(this))}});Xf=function(){}};Wf=function(a){Xf();a={next:a};a[Sf.Symbol.iterator]=function(){return this};return a};Yf=function(){this.w=!1;this.j=null;this.f=void 0;this.a=1;this.l=this.o=0;this.B=this.g=null};Zf=function(a){if(a.w)throw new TypeError("Generator is already running");a.w=!0};
20
+ $f=function(a,b){a.g={gg:b,Cg:!0};a.a=a.o||a.l};_.x=function(a,b,c){a.a=c;return{value:b}};_.y=function(a){a.a=0};_.B=function(a,b,c){a.o=b;void 0!=c&&(a.l=c)};_.ag=function(a,b,c){a.a=b;a.o=c||0};_.D=function(a,b){a.o=b||0;var c=a.g.gg;a.g=null;return c};_.bg=function(a){a.B=[a.g];a.o=0;a.l=0};_.cg=function(a){var b=a.B.splice(0)[0];(b=a.g=a.g||b)?b.Cg?a.a=a.o||a.l:void 0!=b.G&&a.l<b.G?(a.a=b.G,a.g=null):a.a=a.l:a.a=0};dg=function(a){this.a=new Yf;this.f=a};
21
+ gg=function(a,b){Zf(a.a);var c=a.a.j;if(c)return eg(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return fg(a)};eg=function(a,b,c,d){try{var e=b.call(a.a.j,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.j=null,$f(a.a,g),fg(a)}a.a.j=null;d.call(a.a,f);return fg(a)};
22
+ fg=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,$f(a.a,c)}a.a.w=!1;if(a.a.g){b=a.a.g;a.a.g=null;if(b.Cg)throw b.gg;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
23
+ hg=function(a){this.next=function(b){Zf(a.a);a.a.j?b=eg(a,a.a.j.next,b,a.a.A):(a.a.A(b),b=fg(a));return b};this["throw"]=function(b){Zf(a.a);a.a.j?b=eg(a,a.a.j["throw"],b,a.a.A):($f(a.a,b),b=fg(a));return b};this["return"]=function(b){return gg(a,b)};Xf();this[Symbol.iterator]=function(){return this}};_.ig=function(a,b){var c=new hg(new dg(b));Qf&&Qf(c,a.prototype);return c};
24
+ jg=function(a,b){if(b){for(var c=Sf,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&&Uf(c,d,{configurable:!0,writable:!0,value:f})}};kg=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())})};_.G=function(a){return kg(new hg(new dg(a)))};
25
+ _.I=function(a,b){var c=a.split("."),d=lg;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};pg=function(a){return a&&0<=mg[a]?mg[a]:og};rg=function(a){if(!a)return _.J("clpp.log",Cb+a+ca),-1;var b=qg[a.toUpperCase()];return void 0===b?(_.J("clpp.log",Cb+a+ca),-1):b};_.K=function(a){(this.tag=a)&&void 0===mg[a]&&(mg[a]=-1)};_.tg=function(a){sg.info.apply(sg,arguments)};
26
+ _.ug=function(a){sg.debug.apply(sg,arguments)};_.J=function(a){sg.warn.apply(sg,arguments)};_.vg=function(a){sg.error.apply(sg,arguments)};wg=function(a,b){this.Kb=a;this.a=b};xg=function(a,b){this.player=a;this.a=b};_.Ag=function(a){if(a){var b=a.a();b in _.yg?_.zg.warn("Player-Factory '"+b+"' already registered"):(_.yg[b]=a,_.zg.info("Registered Player-Factory: '"+b+"'"))}};_.Bg=function(){this.a={}};Cg=function(a,b,c,d){this.f=a;this.Bc=b;this.a=c;this.ql=!!d};
27
+ _.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};Dg=function(a){this.a=new _.Bg;this.f=a};_.Eg=function(){this.a=new _.Bg};
28
+ _.Fg=function(a,b,c,d){function e(h){for(var l=_.u(c),m=l.next();!m.done;m=l.next())a.off(b,m.value,e);d(h)}for(var f=_.u(c),g=f.next();!g.done;g=f.next())a.on(b,g.value,e)};_.Hg=function(a){var b=a.a,c=[],d;for(d in b.a)c.push.apply(c,b.a[d]);for(b=0;b<c.length;++b)Gg(c[b]);a.a.clear()};Ig=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};Gg=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
29
+ Jg=function(a){this.m=a;this.o=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.j=null;this.f=new _.Eg;this.a=this.l=null;this.g=[];this.h=new _.K("clpp.native.Metadata")};Lg=function(a,b){a.j=b;a.l=a.j.textTracks;a.f.on(a.l,_.cc,function(c){c=c.track;c.kind===_.Td&&Kg(a,c)})};
30
+ Kg=function(a,b){function c(l){for(var m=_.u(d),n=m.next();!n.done;n=m.next())if(n=n.value,l.startTime===n.startTime&&l.endTime===n.endTime)return n;m={schemeIdUri:"",value:"",startTime:0,endTime:0,id:"",type:_.Mg,eventElement:null};a.o&&e&&"SCTE35-IN"===l.value.key&&0<l.startTime?(m.startTime=0,m.endTime=l.startTime):(m.startTime=l.startTime,m.endTime=l.endTime);e=!1;d.push(m);return d[d.length-1]}a.h.debug("onMetadata_()");b.mode=_.Cd;var d=[],e=!0;if(b.cues){for(var f=_.u(b.cues),g=f.next();!g.done;g=
31
+ f.next())if(g=g.value,!Ng(a,g)){var h=c(g);switch(g.value.key){case "SCTE35-IN":case "SCTE35-OUT":h.schemeIdUri=_.kf;h.type=_.Og;break;case "X-CUSTOM-ID":h.id=g.value.data}}f=_.u(d);for(g=f.next();!g.done;g=f.next())a.m.trigger(new _.L(_.Pg,{detail:g.value}));Array.prototype.push.apply(a.g,d);Qg(a,d,b);a.f.off(b,_.dd);a.f.on(b,_.dd,function(l){l=l.target.activeCues;l=l.length?Ng(a,l[0]):a.a;var m;if(m=l)m=a.m.getPosition(),m=l.startTime<=m&&m<l.endTime;if(m)a.a=l,a.m.trigger(new _.L(_.Rg,{detail:l}));
32
+ else{if(l=a.a)l=a.a,m=a.m.getPosition(),l=l.endTime<=m;l&&(l=a.a,a.a=null,a.m.trigger(new _.L(_.Sg,{detail:l})))}})}};Ng=function(a,b){for(var c=_.u(a.g),d=c.next();!d.done;d=c.next())if(d=d.value,b.startTime===d.startTime&&b.endTime===d.endTime)return d;return null};Qg=function(a,b,c){if(a.o){for(;0<c.cues.length;)c.removeCue(c.cues[0]);b.forEach(function(d){c.addCue(new DataCue(d.startTime,d.endTime,{key:"SCTE35-OUT",data:null}))})}};_.Tg=function(a){return Array.isArray(a)?a:[a]};
33
+ Ug=function(a,b){return a===b?!0:a.length===b.length&&a.every(function(c,d){return c===b[d]})};Wg=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 Vg(a,b)&&Vg(b,a)};Vg=function(a,b){var c=new Set(a);return b.every(function(d){return c.has(d)})};
34
+ _.Xg=function(a,b){b=void 0===b?{}:b;if(b.$f){for(var c=[],d={},e=_.u(a),f=e.next();!f.done;d={Cd:d.Cd},f=e.next())d.Cd=f.value,c.some(function(g){return function(h){return b.$f(g.Cd,h)}}(d))||c.push(d.Cd);return c}return Array.from((new Set(a)).values())};
35
+ _.dh=function(a,b,c,d){d=void 0===d?_.Yg:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.Zg;this.writingMode=_.$g;this.lineInterpretation=_.ah;this.line=null;this.lineAlign=_.bh;this.direction=ch;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
36
+ _.gh=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.eh;this.scroll=fh;this.cssClassList=[];this.writingMode=this.displayAlign=null};hh=function(a){this.m=a;this.l=a.getTextDisplayer();this.f=this.g=null;this.a=new _.Eg;this.j=!1;this.h=new _.K("clpp.native.CueHandler")};
37
+ ih=function(a,b){var c=b.track;c.kind!==_.Td&&(c.mode===_.Ne&&(c.mode=_.Cd),a.a.on(c,_.dd,function(d){d=d.target||d.srcElement;d.mode=_.Cd;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.l.append(d,[]))}))};_.N=function(a,b,c,d,e){var f=Error.call(this,jh(a,b,c,d));this.message=f.message;"stack"in f&&(this.stack=f.stack);this.severity=a;this.category=b;this.code=c;this.data=!d||_.M.Z(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.N)};
38
+ jh=function(a,b,c,d){a=(a===_.O?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.M.Z(d))a+=": "+d;else if(null!=d&&void 0!=d)if(null!=d.message&&void 0!=d.message)a+=": "+d.message,delete d.message;else try{a+=": "+JSON.stringify(d)}catch(e){}return a};kh=function(a,b){var c=Error.call(this,a);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=b};
39
+ lh=function(a,b){var c=b||Ug,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,_.Of(h))}};_.mh=function(a){return null!=a};nh=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 kh("No non-null, non-undefined value found");};
40
+ oh=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}};_.ph=function(a){var b;a instanceof _.ph?(qh(this,a.ab),this.mc=a.mc,this.Ka=a.Ka,rh(this,a.Qc),this.Aa=a.Aa,_.sh(this,th(a.a)),this.bc=a.bc):a&&(b=String(a).match(uh))?(qh(this,b[1]||"",!0),this.mc=vh(b[2]||""),this.Ka=vh(b[3]||"",!0),rh(this,b[4]),this.Aa=vh(b[5]||"",!0),_.sh(this,b[6]||"",!0),this.bc=vh(b[7]||"")):this.a=new _.wh(null)};
41
+ qh=function(a,b,c){a.ab=c?vh(b,!0):b;a.ab&&(a.ab=a.ab.replace(/:$/,""))};rh=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Qc=b}else a.Qc=null};_.sh=function(a,b,c){b instanceof _.wh?a.a=b:(c||(b=yh(b,zh)),a.a=new _.wh(b))};vh=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""};yh=function(a,b,c){return typeof a===_.Ue?(a=encodeURI(a).replace(b,Ah),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
42
+ Ah=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};_.wh=function(a){this.f=a||null};th=function(a){var b=new _.wh;b.f=a.f;if(a.a){var c={},d;for(d in a.a)c[d]=a.a[d].concat();b.a=c;b.g=a.g}return b};_.Ch=function(a,b){for(var c=Bh[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===_.$e?"":null};
43
+ _.Fh=function(a,b,c){return a.map(function(d){d=_.Dh(d)||"";return(d=_.Eh[b][d])?d:b===_.$e?c&&"vtt"!==c?lc:_.af:null}).filter(Boolean)[0]||null};_.Dh=function(a){a=(new _.ph(a)).Aa.split(".");return 1>=a.length?null:a.pop()};_.Gh=function(a,b,c,d){this.id=a;this.name=b;this.attributes=c;this.value=void 0===d?null:d};_.Hh=function(a,b,c,d){d=void 0===d?{}:d;a=a.getAttribute(b);if(!a&&d.required)throw new _.N(_.O,4,4023,"Required attribute missing: "+b);return a?a.value:c||null};
44
+ _.Ih=function(a,b){this.name=a;this.value=b};_.Kh=function(a,b){a=_.Jh(a);b=_.Jh(b);return a.split("-")[0]==b.split("-")[0]};_.Jh=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=Lh.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};_.Mh=function(a,b){for(var c=_.u(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};Nh=function(){};
45
+ Qh=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(Oh(a)==Oh(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;for(var c=_.R(a),d=_.R(b),e=_.u(Ph(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!=d[f])return!1;return!0};_.R=function(a,b,c){c=void 0===c?Infinity:c;return Rh(a,void 0===b?0:b,c,Uint8Array)};Sh=function(a,b,c){c=void 0===c?Infinity:c;return Rh(a,void 0===b?0:b,c,Uint16Array)};
46
+ Th=function(a,b,c){c=void 0===c?Infinity:c;return Rh(a,void 0===b?0:b,c,Uint32Array)};_.Uh=function(a,b,c){c=void 0===c?Infinity:c;return Rh(a,void 0===b?0:b,c,Int32Array)};_.Vh=function(a,b,c){c=void 0===c?Infinity:c;return Rh(a,void 0===b?0:b,c,DataView)};Wh=function(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
47
+ Rh=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=Oh(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)};Oh=function(a){return a instanceof ArrayBuffer?a:a.buffer};Xh=function(a){for(var b="",c=0;c<a.length;c+=16E3)b+=String.fromCharCode.apply(null,a.subarray(c,c+16E3));return b};
48
+ _.Yh=function(a){if(!a)return"";a=_.R(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(Ga);return a}a=escape(Xh(a));try{return decodeURIComponent(a)}catch(b){throw Error(Ga);}};
49
+ $h=function(a,b,c){if(!a)return"";if(!c&&0!==a.byteLength%2)throw Zh.error("Data has an incorrect length, must be even."),Error("Data does not seem to be UTF-16 encoded!");c=_.R(a);if(b&&255===c[0]&&254===c[1]||254===c[0]&&255===c[1])a=c.subarray(2);if(a instanceof ArrayBuffer)var d=a;else c=new Uint8Array(a.byteLength),c.set(_.R(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 Xh(c)};
50
+ _.ai=function(a,b){if(_.M.Z(a))return a;var c="",d=!!b,e=_.R(a);239==e[0]&&187==e[1]&&191==e[2]?c=_.Yh(e):254==e[0]&&255==e[1]?c=$h(e.subarray(2),!1):255==e[0]&&254==e[1]&&(c=$h(e.subarray(2),!0));var f=function(g,h){return g.byteLength<=h||32<=g[h]&&126>=g[h]}.bind(null,e);Zh.debug("Unable to find byte-order-mark, making an educated guess.");0==e[0]&&0==e[2]?c=$h(a,!1):0==e[1]&&0==e[3]?c=$h(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.Yh(a));if(c)return d&&(c=escape(c)),c;throw Error("Unable to detect text encoding");
51
+ };_.bi=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};_.ci=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};_.di=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=Th(e):2===c?f=Sh(e):f=_.R(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};
52
+ _.ei=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.fi=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};_.gi=function(a){return!!(a&&0<a.length)};_.hi=function(a){return!a||0===a.length};
53
+ _.ii=function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.M.isNaN(b))return"";a="bps";1E3<=Math.abs(b)&&(a="Kbps",b/=1E3);1E3<=Math.abs(b)&&(a="Mbps",b/=1E3);return b.toFixed(2).replace(/[.,]00$/,"")+a}catch(c){return""}};_.ki=function(a){a=a.replace(/<[^>]+>/gi,"");ji.innerHTML=a;a=ji.textContent;return a=a.replace(/<[^>]+>/gi,"")};_.li=function(){};_.ni=function(a,b){var c=void 0==b?!0:b,d=_.mi(a).replace(/\+/g,"-").replace(/\//g,"_");return c?d:d.replace(/[=]*$/,"")};
54
+ _.oi=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};_.pi=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};_.qi=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};
55
+ _.ri=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};_.si=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};_.mi=function(a){a=Xh(_.R(a));return btoa(a)};_.ti=function(a){this.f=a;this.a=0};
56
+ _.ui=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};
57
+ _.vi=function(a,b){var c=b.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!c)throw new _.N(_.O,4,4016,{invalidTag:b});var d=c[1],e=c[2];c=[];var f;if(e){e=new _.ti(e);var g;(g=_.ui(e,/^([^,=]+)(?:,|$)/g))&&(f=g[1]);for(var h=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;g=_.ui(e,h);)c.push(new _.Ih(g[1],g[2]||g[3]))}return new _.Gh(a,d,c,f)};_.xi=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0,fatalStatusCodes:_.Of(wi).concat()}};
58
+ yi=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||_.Of(wi).concat()};
59
+ _.Ai=function(a,b){_.M.Z(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.zi,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||
60
+ [],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:_.Of(wi).concat(),requestStartTimestamp:null};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&
61
+ yi(c,b);return c};_.Bi=function(a,b,c,d,e,f,g,h){e&&(d=e);e={uri:d,data:b||new ArrayBuffer(0),headers:a,status:c,fromCache:!!a["x-shaka-from-cache"],timeMs:g,responseStartMs:h,request:f};if(200<=c&&299>=c&&202!==c)return e;g=null;try{g=_.ai(b,!0)}catch(l){}_.ug("HTTP error text:",g);throw new _.N(0<=(f.fatalStatusCodes||[]).indexOf(c)?_.O:1,1,1001,{url:d,status:c,responseText:g,headers:a,request:f,response:e});};
62
+ Ci=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};Di=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};Ei=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()};_.Fi=function(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c};
63
+ _.Gi=function(a,b){this.O=a;this.A=b;this.a=!1};Hi=function(a,b){a.O.then(function(){return b(!0)},function(){return b(!1)});return a};Ii=function(a,b,c){try{var d=a(b);if(d&&d.O&&d.abort)return c.resolve(d.O),function(){return d.abort()};c.resolve(d);return function(){return Promise.resolve(d).then(function(){})["catch"](function(){})}}catch(e){return c.reject(e),function(){return Promise.resolve()}}};_.Ji=function(){this.a=[]};
64
+ _.Ki=function(a,b){a.a.push(Hi(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};_.Ri=function(){this.f=[];this.g=[];this.o=!1;this.l=new _.Ji;this.a={};this.j=0;this.a.data=Li;!window.fetch||!window.AbortController||_.Mi(6)||_.Ni()&&68<_.Oi().browserVersion.major?(this.a.http=Pi,this.a.https=Pi):(this.a.http=Qi,this.a.https=Qi)};Si=function(a,b){var c;return _.G(function(d){if(1==d.a)return _.x(d,a.fetch(b),2);c=d.f;return d["return"](_.Yh(c.data))})};
65
+ Ti=function(a,b,c,d){d=void 0===d?"HEAD":d;var e,f;return _.G(function(g){switch(g.a){case 1:if(!navigator.onLine)return g["return"](!1);if(!b){g.G(2);break}e=_.Ai(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.B(g,4);return _.x(g,a.fetch(e).O,6);case 6:_.ag(g,2);break;case 4:if(f=_.D(g),1002===f.code||1003===f.code)return g["return"](!1);case 2:return g["return"](!0)}})};
66
+ _.Ui=function(a,b){this.id=a;this.type=b;this.roles=[];this.channelsCount=this.src=this.mimeType=this.frameRate=this.label=this.originalLanguage=this.language=this.kind=null;this.renditions=[];this.accessibility=[]};_.Vi=function(a){return a&&a!==_.ff?a:null};
67
+ Yi=function(a){if(!a)throw new _.N(_.O,3,3101,Ra+a);if(!_.M.Z(a))throw new _.N(_.O,3,3101,Ra+a+". Track type must be a string!");switch(a.toLowerCase()){case _.S:return _.S;case _.T:return _.T;case _.Wi:return _.Wi;case Xi:return Xi}throw new _.N(_.O,3,3101,"Unknown track type: "+a+".");};$i=function(a,b){a=Yi(a);var c=_.Vi(b.kind),d=b.id;d||(d=String(_.Zi++));d=new _.Ui(d,c===_.Td?Xi:a);d.kind=c;d.label=_.Vi(b.label);d.language=_.Vi(b.language);d.originalLanguage=b.originalLanguage||d.language;return d};
68
+ aj=function(a){return"@@scheme:"+(a.scheme||"")+("@@value:"+a.value)+("@@id:"+(a.id||"")+"@@type:"+(a.type||""))+("@@protocol:"+(a.protocol||""))};_.bj=function(a,b){this.track=b;this.id=a;this.originalId=this.drm=this.drmInfo=this.codec=this.Xc=this.bandwidth=this.height=this.width=null};
69
+ _.cj=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;_.ei(this.path,
70
+ "/")||(this.path="/"+this.path);this.f=b.search;this.g=b.hash};_.dj=function(a){return a.scheme+"//"+(a.a+(a.port?":"+a.port:"")+a.path+a.g+a.f)};_.ej=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)},""):""};
71
+ _.fj=function(a){var b={};a=a||"";a=a.substring(a.indexOf("?")+1);a=_.u(a.split("\x26"));for(var c=a.next();!c.done;c=a.next()){var d=c.value.split("\x3d");c=decodeURIComponent(d[0]);d=decodeURIComponent(d[1]||"");c&&(b[c]=d)}return b};gj=function(a,b){return a.startsWith("http:://")||a.startsWith("https:://")?a:(new URL(a,b)).toString()};
72
+ hj=function(a){this.f=a;this.h=new _.K("clpp.native.hls.HlsMetadataParser");this.a=lh(this.g.bind(this),function(b,c){return b[0]===c[0]&&b[1].enableHlsVideoTrackInfo===c[1].enableHlsVideoTrackInfo&&b[1].enableMetadata===c[1].enableMetadata})};
73
+ kj=function(a,b,c){var d,e,f,g,h;return _.G(function(l){if(1==l.a)return _.x(l,ij(a,b,c),2);d=l.f;e=d.mimeType;f=d.renditions;g=new _.Ui("dummy",_.Wi);h=f.map(function(m,n){var p=new _.bj("R"+n,g);p.bandwidth=m.bandwidth;p.Xc=m.Xc;p.codec=m.codec;p.width=m.width;p.height=m.height;return p});jj(h);return l["return"]({renditions:h,mimeType:e||void 0})})};
74
+ mj=function(a){a=a.split("\n").filter(function(c){return c.trim().startsWith("#EXT-X-MEDIA:")}).map(function(c){return lj(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};
75
+ lj=function(a){function b(d){return(d=c.getAttribute(d))?d.value:void 0}var c=_.vi(0,a);a=b(_.yb);a=null!=a?{AUDIO:_.T,VIDEO:_.Wi,SUBTITLES:_.S}[a]:void 0;return{type:a,groupId:b(_.Ma),name:b("NAME"),language:b(_.Ua),fm:b("AUTOSELECT"),"default":b("DEFAULT"),nm:b("FORCED"),Of:b("CHARACTERISTICS"),uri:b(_.Ab)}};jj=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.");};
76
+ nj=function(a,b){var c,d;return _.G(function(e){if(1==e.a)return c=_.Ai(b),_.x(e,Si(a.f,c),2);d=e.f;return e["return"](d)})};ij=function(a,b,c){var d,e,f,g;return _.G(function(h){if(1==h.a)return d=oj(b),e=pj(b,c),f=d[0]?d[0].codec:null,_.x(h,qj(a,e,f),2);g=h.f;return h["return"]({mimeType:g,renditions:d})})};qj=function(a,b,c){var d,e;return _.G(function(f){if(1==f.a)return b&&c?_.x(f,nj(a,b),2):f["return"](null);d=f.f;e=[rj(d,b),sj(d,b)].filter(Boolean);return f["return"](_.Fh(e,_.uf,c))})};
77
+ oj=function(a){return a.split("\n").filter(function(b){return b.trim().startsWith("#EXT-X-STREAM-INF:")}).map(function(b){var c=_.vi(0,b);if(c.getAttribute(_.Ib))throw Error("Playlist contains alternative video streams.");var d=_.Hh(c,_.nb);b=d?Number(d.split("x")[0]):null;d=d?Number(d.split("x")[1]):null;var e=_.Hh(c,_.na);e=e?Number(e):null;var f=_.Hh(c,"AVERAGE-BANDWIDTH");f=f?Number(f):null;c=_.Hh(c,_.pa);c=_.Ch(_.uf,c?c.split(","):[]);return{bandwidth:e,Xc:f,codec:c,width:b,height:d,mimeType:null}})};
78
+ pj=function(a,b){var c=a.split("\n").filter(function(d){return d.trim().endsWith(".m3u8")})[0];return c?gj(c,b):null};rj=function(a,b){var c=a.split("\n").find(function(d){return!d.startsWith("#")&&0<d.trim().length});return c?gj(c,b):null};sj=function(a,b){var c=a.split("\n").find(function(d){return d.startsWith("#EXT-X-MAP:")});return c?(c=_.Hh(_.vi(0,c),_.Ab))?gj(c,b):null:null};
79
+ _.uj=function(a,b,c){for(var d=_.u(_.tj),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.vj=function(a){a=_.tj.indexOf(a);0<=a&&_.tj.splice(a,1)};_.U=function(){};_.wj=function(a,b){var c=a;b&&(c+='; codecs\x3d"'+b+'"');return c};_.xj=function(a){this.f=a;this.a=null};yj=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};
80
+ _.zj=function(a){this.f=a;this.a=null};Aj=function(){};_.Dj=function(){return!!navigator.userAgent.match(/Edge?\//)};_.Mi=function(a){return _.Ej("Tizen"+(a?" "+String(a):""))};_.Ni=function(){return _.Ej("Web0S")};_.Gj=function(){return _.Ni()&&79===Fj().major};_.Hj=function(){return _.Ej("CrKey")};_.Ij=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.Mi()};_.Jj=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.Ij()&&1<navigator.maxTouchPoints};
81
+ _.Kj=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};_.Ej=function(a){return(navigator.userAgent||"").includes(a)};Nj=function(){if(Lj)return Lj;Mj||(Mj=new _.zj(function(){Lj=null}));(Lj=document.querySelector(_.uf)||document.querySelector(_.rc))||(Lj=document.createElement(_.uf));Mj.$(1);return Lj};Pj=function(a,b){try{return parseInt(b,10)}catch(c){Oj.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
82
+ Qj=function(a){var b={major:-1,name:gf};if(!a)return b;var c=a.replace(/_/g,".");b.name=c;c=c.split(".");1<=c.length&&(b.major=Pj(a,c[0]));2<=c.length&&(b.minor=Pj(a,c[1]));3<=c.length&&(b.patch=Pj(a,c[2]));4<=c.length&&(b.build=Pj(a,c[3]));return b};Rj=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};
83
+ bk=function(){var a=Sj();if(!a)return Tj;var b=a.match(/^.+?(?=\))/);if(!b)return Tj;b=b[0];if(Rj(b,["iphone","ipad"]))return Uj;if(Rj(b,["android"]))return Vj;if(Rj(b,["macintosh"]))return Wj;if(Rj(b,["windows nt"]))return Xj;if(Rj(b,["tizen"]))return Yj;if(Rj(b,["web0s"]))return Zj;if(Rj(b,["linux"]))return ak;Oj.warn("Unable to identify OS from user agent: "+a);return Tj};
84
+ Fj=function(){var a=Sj(),b=["ie","edge","opera","firefox","safari",Lc];var c=bk();for(var d=ck[c],e=0,f=b.length;e<f;e++)if(c=d[b[e]]&&a.match(d[b[e]]))return Qj(c[1]);return Qj("")};Sj=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
85
+ _.Oi=function(){var a=bk();var b=bk();var c=ck[b];if(c){c=Sj().match(c.os_version)[1];c=Qj(c);if(b===Xj)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=Qj("");a:{c=Sj();var d=["ie","edge","opera","firefox","safari",Lc],e=bk();e=ck[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=dk}return{os:a,osVersion:b,browser:c,browserVersion:Fj()}};
86
+ ek=function(){this.h=new _.K("clpp.native.TrackManager");this.m=null;this.f=new _.Eg;this.g=[];this.B=0;this.o={};this.D=[];this.a=new Map;this.w=null;this.l=new Map;this.A=!0;this.J=this.gf.bind(this,_.S);this.M=this.jf.bind(this,_.S);this.K=this.hf.bind(this,_.S);this.P=this.gf.bind(this,_.Wi);this.V=this.jf.bind(this,_.Wi);this.T=this.hf.bind(this,_.Wi);this.F=this.gf.bind(this,_.T);this.I=this.jf.bind(this,_.T);this.H=this.hf.bind(this,_.T);this.j=null};
87
+ gk=function(a,b){var c,d,e,f,g,h,l,m;return _.G(function(n){if(1==n.a){c=a.m.getConfiguration();d=_.uj(c,b.mimeType,_.af);if(!d)return a.h.warn("Track mimetype is not supported",b),n["return"]();e=_.Ai(b.url);return _.x(n,a.m.getNetworkEngine().fetch(e).O,2)}(f=n.f)&&f.data&&(g="External_"+a.B++,a.o[g]=b,h=d.a(_.R(f.data)),l=URL.createObjectURL(new Blob([h])),m={url:l,kind:b.kind,language:b.language,label:b.label,mimeType:_.af},fk(a,m,g));_.y(n)})};ik=function(a,b,c){return hk(a)&&b===_.Wi&&!!c.enableHlsVideoTrackInfo};
88
+ jk=function(a,b,c){return hk(a)&&(b===_.T||b===_.S)&&!!c.enableMetadata};hk=function(a){a=a.m.getLoadedSource();return!(!a||a.type!==_.kk&&!a.url.endsWith(".m3u8"))&&_.Ij()};lk=function(a,b,c){var d,e;return _.G(function(f){if(1==f.a)return(d=a.m.getLoadedSource())&&a.j?_.x(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}));_.y(f)})};
89
+ mk=function(a,b,c){var d,e,f,g;return _.G(function(h){if(1==h.a)return(d=a.m.getLoadedSource())&&a.j?_.x(h,a.j.a(d.url,c),2):h["return"]();e=h.f;e.Nc&&(f=b.type+":"+b.label,(g=e.Nc.get(f))&&g.Of&&(b.accessibility=g.Of.split(",").map(function(l){return l.trim()}).map(function(l){return{value:l,type:b.type,protocol:"HLS"}})));_.y(h)})};
90
+ fk=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);e.src=_.hi(b.url)?URL.createObjectURL(new Blob([])):b.url;d.appendChild(e);a.D.push(e)}}};nk=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 _.T:return c.audioTracks;case _.Wi:return c.videoTracks;case _.S:return c.textTracks;default:return null}};
91
+ ok=function(a,b){var c=nk(a,b);c&&(c=Array.from(c),b===_.S&&(c=c.filter(function(d){return d.kind!==_.Td})));return c};pk=function(a,b){return a.g.filter(function(c){return c.type===b})};qk=function(a,b){var c=a.a.get(b)||null;return c&&c.renditions[0]};rk=function(a,b){var c=a.l.get(b);return c&&c.renditions[0]};
92
+ vk=function(a,b,c){var d=ok(a,b);if(c){if(void 0===a.g.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.h.debug("Activate track type "+b+" with ID: "+c.id);if(d){a.l.set(b,c);var e=!0,f=!1;switch(b){case _.S:var g="mode";e=_.Ne;f=_.fd;break;case _.T:g="enabled";break;case _.Wi:g="selected"}if(g){d=_.u(d);for(var h=d.next();!h.done;h=d.next())h=h.value,h[g]=sk(c,h,c.type)?e:
93
+ f}}}else if(a.h.debug(_.Fa+b),a.a.get(b)&&d&&b===_.S){g=_.u(d);for(h=g.next();!h.done;h=g.next())h.value.mode=_.fd;a.a.set(b,null)}b===_.T?a.m.trigger(new _.L(_.tk)):b===_.S&&a.m.trigger(new _.L(_.uk))};wk=function(a){return a.enabled||a.selected||a.mode===_.Ne||a.mode===_.Cd};
94
+ xk=function(a,b,c){c=_.Tg(c).filter(function(e){return e});a.h.info("Find preferred tracks for",b,c);var d=pk(a,b);c.some(function(e){var f=_.Jh(e);return(e=d.find(function(g){g=_.Jh(g.language||"");return _.Kh(f,g)}))?(a.h.info("Will select track with id",e.id),vk(a,b,e),!0):!1})};yk=function(a){(a=a.m.getTextDisplayer())&&a.remove(0,Infinity)};
95
+ sk=function(a,b,c){return a.type!==c?!1:void 0!==b.id&&null!==b.id&&""!==b.id?a.id===b.id:_.M.pa(a,{kind:_.Vi(b.kind),language:_.Vi(b.language),label:_.Vi(b.label)},["kind","language","label"])};_.zk=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};_.Ak=function(){this.kd=new Dg(this);this.gd=[]};Ck=function(a){return a.name===eb&&Bk.some(function(b){return a.message.startsWith(b)})};Dk=function(){};
96
+ _.Gk=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.Jj()&&(a=360);var b=_.xi();b.maxAttempts=3;a={source:"",license:Ek,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,manifest:{attemptParameters:_.xi(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,
97
+ restrictions:Fk(a),useCmsd:!1},drm:null,enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:"main",preferredTextRole:"",preferredAudioChannelCount:2,preferredAudioCodec:[],preferredVideoCodec:[],volume:null,startTime:null,loop:!1,lowLatencyMode:!1,suggestedPresentationDelay:void 0,muted:void 0,forceWaitForTracks:!1,streaming:{attemptParameters:b,bufferingGoal:10,rebufferingGoal:2,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,relativeTextTimestamp:!1,
98
+ 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,chasingRate:1.15,startChasingAt:5,stopChasingAt:2,chaseJumpDistance:10,patchEdgeWhenMixedContent:!1,ignoreDrift:!1,disableFragmentSupport:!1,disableMergedFragments:!1,
99
+ ignoreManagedMediaSourceStreamingHints:!1},restrictions:Fk(),tizen:{sideStreamText:_.Mi(2)},safari:{enableHlsVideoTrackInfo:!1,enableMetadata:!1}};if(_.Ej("Edge/")||_.Mi())a.streaming.gapDetectionThreshold=.5;_.Ni()&&(a.streaming.stallEnabled=!1);_.Gj()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=.02);_.Mi()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=0);a.vr={enable:!1,attachMouseListener:!0,
100
+ fieldOfView:70,sensitivity:1,invertHorizontalControl:!1,invertVerticalControl:!1};return a};
101
+ _.Ik=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(!b)return _.Gk();c=[_.Gk()];var d=!1;b=_.u(b);for(var e=b.next();!e.done;e=b.next())e=e.value,null!==e&&void 0!==e&&(_.M.Z(e)&&(e={source:e}),e.lowLatencyMode&&!d&&(c.push({suggestedPresentationDelay:0,streaming:{rebufferingGoal:.1,bufferLimitUpdateInterval:.01,attemptParameters:{maxAttempts:3,baseDelay:250,backoffFactor:1}},abr:{bandwidthUpgradeTarget:.6,bandwidthDowngradeTarget:.95},manifest:{hlsLowLatency:!0}}),d=!0),
102
+ c.push(e));c=_.M.va.apply(null,c);_.M.Z(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.M.R(c.volume)&&(!_.M.la(c.volume)||_.M.isNaN(c.volume)))throw new _.N(_.O,7,7100,"config.volume is not a number");if(!_.M.R(c.preferredTextLanguage)&&!_.M.Z(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.N(_.O,7,7100,"config.preferredTextLanguage is not a string or an array");if(!_.M.R(c.preferredAudioLanguage)&&!_.M.Z(c.preferredAudioLanguage)&&!Array.isArray(c.preferredAudioLanguage))throw new _.N(_.O,
103
+ 7,7100,"config.preferredAudioLanguage is not a string or an array");if(!_.M.R(c.preferredAudioCodec)&&!_.M.Z(c.preferredAudioCodec)&&!Array.isArray(c.preferredAudioCodec))throw new _.N(_.O,7,7100,"config.preferredAudioCodec is not a string or an array");if(!_.M.R(c.preferredVideoCodec)&&!_.M.Z(c.preferredVideoCodec)&&!Array.isArray(c.preferredVideoCodec))throw new _.N(_.O,7,7100,"config.preferredVideoCodec is not a string or an array");if(!_.M.R(c.drm)){if(c.drm.env&&!_.M.Z(c.drm.env))throw new _.N(_.O,
104
+ 7,7100,"config.drm.env is not a string");if(c.drm.offlineId&&!_.M.Z(c.drm.offlineId))throw new _.N(_.O,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(!_.M.la(d.bufferingGoal)||_.M.isNaN(d.bufferingGoal))throw new _.N(_.O,7,7100,"config.streaming.bufferingGoal is not a number");
105
+ if(!_.M.la(d.rebufferingGoal)||_.M.isNaN(d.rebufferingGoal))throw new _.N(_.O,7,7100,"config.streaming.rebufferingGoal is not a number");if(d.rebufferingGoal>d.bufferingGoal)throw new _.N(_.O,7,7100,"config.streaming.rebufferingGoal must be \x3e\x3d bufferingGoal");if(!_.M.la(d.bufferBehind)||_.M.isNaN(d.bufferBehind))throw new _.N(_.O,7,7100,"config.streaming.bufferBehind is not a number");if(!_.M.la(d.smallGapLimit)||_.M.isNaN(d.smallGapLimit))throw new _.N(_.O,7,7100,"config.streaming.smallGapLimit is not a number");
106
+ if(!_.M.la(d.durationBackoff)||_.M.isNaN(d.durationBackoff))throw new _.N(_.O,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.M.R(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.k)throw new _.N(_.O,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");Hk(c.restrictions);Hk(c.abr.restrictions);c.abr.initialRestrictions&&Hk(c.abr.initialRestrictions)}return c};
107
+ Fk=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}};
108
+ Hk=function(a){_.M.R(a.maxPixels)&&(a.maxPixels=Infinity);_.M.R(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.M.R(a.maxHeight)&&(a.maxHeight=Infinity);_.M.R(a.maxWidth)&&(a.maxWidth=Infinity);_.M.R(a.minPixels)&&(a.minPixels=0);_.M.R(a.minBandwidth)&&(a.minBandwidth=0);_.M.R(a.minHeight)&&(a.minHeight=0);_.M.R(a.minWidth)&&(a.minWidth=0);a.minWidth=Number(a.minWidth);a.maxWidth=Number(a.maxWidth);a.minHeight=Number(a.minHeight);a.maxHeight=Number(a.maxHeight);a.minBandwidth=Number(a.minBandwidth);
109
+ a.maxBandwidth=Number(a.maxBandwidth);a.minPixels=Number(a.minPixels);a.maxPixels=Number(a.maxPixels);if(Number.isNaN(a.minWidth)||Number.isNaN(a.maxWidth)||Number.isNaN(a.minHeight)||Number.isNaN(a.maxHeight)||Number.isNaN(a.minBandwidth)||Number.isNaN(a.maxBandwidth)||Number.isNaN(a.minPixels)||Number.isNaN(a.maxPixels))throw new _.N(_.O,7,7100,"Restrictions contain NaN");};_.Jk=function(a){return typeof a===_.ae&&!Array.isArray(a)&&"source"in a};
110
+ _.Kk=function(a){_.Ak.call(this);this.log=new _.K(a);this.configuration=this.Pd=_.Gk();this.w=this.D=null;this.$d=this.Ve=!1;this.th=new _.K("clpp.video.events");this.Yc=null;this.Qd=-1;this.Nl=this.pl.bind(this);this.Ue=new _.Ri;this.P=new _.Eg;this.uc=this.Fc=this.M=null};_.Mk=function(a){return _.Lk.get(a)||null};_.Ok=function(a){_.Lk.get(a.id())?Nk.warn("Component already in use."):_.Lk.set(a.id(),a)};Pk=function(a){return Array.from(_.Lk.values()).find(function(b){return b instanceof a})||null};
111
+ Qk=function(a){for(var b=_.u(_.Lk.values()),c=b.next();!c.done;c=b.next())a(c.value)};Rk=function(a){Qk(function(b){b.o(a)})};Sk=function(a){Qk(function(b){b.g(a)})};Tk=function(){Qk(function(){})};Uk=function(){Qk(function(){})};Vk=function(a){if(null!==Pk(a))return null;a=new a;a.f();_.Ok(a);Nk.info("Installed component:",a.id());return a};Wk=function(a){if(a=Pk(a))a.a(),_.Lk["delete"](a.id()),Nk.info("Uninstalled component:",a.id())};Xk=function(){this.a=this.f=null;this.h=new _.K("clpp.drm.csl")};
112
+ Yk=function(a,b){3===b.type&&(a.f&&(a.h.debug("Attaching tracking token"),b.headers[Kf]=a.f),a.a&&(b.headers[Lf]=a.a))};Zk=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[Kf];a.a=b.headers[Lf];var c=b.headers["x-dt-csl-renewal-info"];a.f&&a.h.debug("Loaded tracking token "+a.f);a.a&&a.h.debug("Loaded followup token "+a.a);if(c)return c=JSON.parse(_.Yh(_.oi(c))),{delay:c.renewalPeriod,cm:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};
113
+ $k=function(a){return _.ei(a,_.Yc)||_.ei(a,_.Zc)};_.bl=function(a){_.al[a.J]=a};
114
+ _.el=function(a){var b={attemptParameters:_.xi(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,enableSessionCacheForSkd:!1,ignoreUnrecognizedInitData:!0,Va:{}};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!==a.ignoreUnrecognizedInitData&&
115
+ (b.ignoreUnrecognizedInitData=!!a.ignoreUnrecognizedInitData),a.env)){var c=_.al[a.env]||null;if(!c)throw _.ug(_.wa,_.kb+a.env+_.aa),new _.N(_.O,6,6015,_.xa+a.env+"' is missing.");b.Va=_.dl(c,a.customData)||{};_.ei(a.env.toLowerCase(),td)&&(b.enforceSingleSession=!0)}return b};gl=function(a){a=fl[a];if(!a)return null;var b=_.Oi();return b.os===Vj&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.hl=function(a){this.J=a;this.f={}};
116
+ _.dl=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[_.ad];g&&(c[_.ad]={licenseUrl:g.licenseUrl,videoRobustness:oh(d,g.videoRobustness),audioRobustness:oh(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:nh(b?b.widevineDistinctiveIdentifierRequired:void 0,g.distinctiveIdentifierRequired,!1),persistentStateRequired:nh(b?b.widevinePersistentStateRequired:void 0,g.persistentStateRequired,!1),
117
+ serverCertificate:void 0===f?g.serverCertificate:null===f?null:typeof f===_.Ue?gl(f):f});(g=a.f[_.Yc])&&(c[_.Yc]={licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.f[_.Zc])&&(c[_.Zc]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});
118
+ return c};_.il=function(a,b){b=void 0===b?!1:b;this.f=_.M.la(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.g=b;this.buffer=this.f.buffer};_.kl=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.R(a.f.buffer);b=_.R(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.jl()}};_.V=function(a,b){try{a.f.setUint32(a.a,b,a.g),a.a+=4}catch(c){_.jl()}};_.jl=function(){throw new _.N(_.O,3,3E3);};_.ll=function(a,b){this.f=a;this.g=void 0===b?!0:b;this.a=0};_.ml=function(a){return a.a<a.f.byteLength};
119
+ _.ol=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){_.nl()}};_.pl=function(a){try{var b=a.f.getUint16(a.a,a.g);a.a+=2;return b}catch(c){_.nl()}};_.W=function(a){try{var b=a.f.getUint32(a.a,a.g);a.a+=4;return b}catch(c){_.nl()}};_.ql=function(a){try{var b=a.f.getInt32(a.a,a.g);a.a+=4;return b}catch(c){_.nl()}};
120
+ _.rl=function(a){var b=0,c=0;try{!0===a.g?(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){_.nl()}if(2097151<c)throw new _.N(_.O,3,3001);a.a+=8;return c*Math.pow(2,32)+b};sl=function(a,b){for(var c=new Uint8Array(b),d=0;d<b;d++)c[d]=_.ol(a);return c};_.tl=function(a,b){a.a+b>a.f.byteLength&&_.nl();var c=a.a+a.f.byteOffset;c=a.f.buffer.slice(c,c+b);a.a+=b;return _.R(c)};
121
+ _.nl=function(){throw new _.N(_.O,3,3E3,"Buffer read out of bounds.");};_.ul=function(){this.g=[];this.f=[];this.a=!1;this.h=new _.K("clpp.mp4")};_.vl=function(a){for(;_.ml(a.reader)&&!a.parser.a;)a.parser.ee(a.start+a.headerSize,a.reader,a.partialOkay)};_.wl=function(a){for(var b=_.W(a.reader);0<b&&!a.parser.a;--b)a.parser.ee(a.start+a.headerSize,a.reader,a.partialOkay)};_.xl=function(a){return function(b){var c=b.reader.Fa()-b.reader.getPosition();a(_.tl(b.reader,c))}};
122
+ yl=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.zl=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};_.Al=function(a){return 8+(a.has64BitSize?8:0)+(null!=a.flags?4:0)};Bl=function(){};Cl=function(a){var b="";try{b=_.ai(a)}catch(c){}return b};_.Dl=function(a){a=Cl(a);var b="";a.length&&(b=(new _.cj(a)).a);return b};
123
+ El=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.Yh(a)),d=_.oi(c.sinf[0]);(new _.ul).L(_.Oe,_.vl).L("schi",_.vl).L("tenc",function(e){e.reader.skip(6);_.ol(e.reader)&&(e.reader.skip(1),b=_.qi(_.tl(e.reader,16)));e.parser.stop()}).parse(d)}catch(e){}return b};
124
+ Fl=function(a,b,c){if(!c||!c.byteLength)throw new _.N(_.O,6,6102);var d;typeof b===_.Ue?d=_.ci(b,!0):d=b;a=_.ci(Cl(a),!0);b=new _.il(12+a.byteLength+d.byteLength+c.byteLength,!0);_.V(b,a.byteLength);_.kl(b,_.R(a));_.V(b,d.byteLength);_.kl(b,_.R(d));_.V(b,c.byteLength);_.kl(b,_.R(c));return _.R(b.buffer)};_.Gl=function(a){var b=_.R(a.body);b=_.ni(b);a.headers[va]=qc;a.body=_.bi("spc\x3d"+b).buffer};
125
+ _.Hl=function(a){try{var b=_.Yh(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=Wh(_.oi(b))};
126
+ Ml=function(){var a=Il;if(a===Jl)return"https://lic.drmtoday.com";if(a===Kl)return"https://lic.staging.drmtoday.com";if(a===Ll)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};Ql=function(a){var b=Ml();if(a==_.ad)return b+Nl;if(a==_.Zc)return b+Ol;if(a==_.Yc)return b+Pl;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
127
+ Rl=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
128
+ _.Tl=function(a,b,c){b=Cl(b);c=c&&c.customData?c.customData:{};b=new _.cj(Rl(b));var d=_.fj(b.f);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.gi(""+a)&&(d.assetId=a,Sl.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.gi(""+e)&&(d.variantId=e,Sl.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],Sl.debug("KeyId found in FPS SKD. Removing other parameters")):
129
+ a=["assetId","variantId"];b.f=_.ej(d,!1,a);"/"!==b.path||b.j.includes(b.a+"/")||(b.path="");b=_.dj(b);return c.fpsContentId=b};_.Vl=function(a,b,c,d){d=void 0===d?!0:d;c=a.drm;c&&c.env.startsWith(Aa)?c.customData&&(_.Ul(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)):Sl.warn($a)};
130
+ Wl=function(a,b,c){_.Vl(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.ph(b.uris[0]);c.a.add(_.le,a);b.uris[0]=c.toString()};
131
+ _.Xl=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.Vl(a,b,c,!1);b.headers[va]=qc;c={spc:_.mi(b.body)};if((a=a.drm)&&a.env.startsWith(Ca)&&d){a={};var e=_.fj((new _.cj(Rl(d))).f);d=e.keyId;if(e=e.assetId)Sl.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(Sl.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(Sl.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(Sl.info("Adding assetID to FPS payload:",a.assetId),c.assetId=a.assetId)}b.body=
132
+ _.di(_.ej(c,!0))};_.Yl=function(a,b){Sl.debug("Clearing response data");if(200===b.status){var c=_.Yh(b.data).trim();"\x3cckc\x3e"===c.substr(0,5)&&"\x3c/ckc\x3e"===c.substr(-6)&&(c=c.slice(5,-6));b.data=_.oi(c).buffer}};_.Zl=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(Aa))Sl.warn($a);else if(c.customData&&c.customData.merchant&&!c.env.startsWith(Ca)){var d=new _.ph(b.uris[0]),e=d.Aa;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.Aa=e;b.uris[0]=d.toString()}};
133
+ _.$l=function(a,b){try{var c=_.R(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));Sl.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){Sl.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data")}};
134
+ _.Ul=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};_.M.Kj(d)&&(a.headers["dt-custom-data"]=btoa(JSON.stringify(d)));(c=c.customData.authToken)&&(a.headers["x-dt-auth-token"]=c)}};bm=function(a){var b={},c=a?a[Mf]:void 0;a=am[a?a[Mf]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};cm=function(){};
135
+ em=function(a,b){b=void 0===b?0:b;_.tg("Registering EME Factory: "+a.a());for(var c={priority:b,Kb:a},d=0;d<dm.length;++d)if(dm[d].priority<b){dm.splice(d,0,c);return}dm.push(c)};
136
+ fm=function(a){if(a){var b=dm.find(function(d){return d.Kb.a()===a}).Kb;if(b&&b.aa())return _.tg(Lb+b.a()),b.create();_.tg("Cannot create selected EME manager. Choosing by priority list.")}b=_.u(dm);for(var c=b.next();!c.done;c=b.next())if(c=c.value.Kb,c.aa())return _.tg(Lb+c.a()),c.create();throw Error("Missing EME managers");};_.hm=function(a,b){var c=_.gm(a,b);return 1!=c.length?null:c[0]};
137
+ _.gm=function(a,b){return Array.prototype.filter.call(a.childNodes,function(c){return c instanceof Element&&c.tagName==b})};_.im=function(a){return Array.prototype.every.call(a.childNodes,function(b){return b.nodeType==Node.TEXT_NODE||b.nodeType==Node.CDATA_SECTION_NODE})?a.textContent.trim():null};
138
+ _.jm=function(a,b){var c=new DOMParser,d=null,e=null;try{e=c.parseFromString(a,_.bf)}catch(f){}e&&e.documentElement.tagName==b&&(d=e.documentElement);return d&&0<d.getElementsByTagName("parsererror").length?null:d};km=function(a,b,c){this.j=new Uint8Array(a);this.a=b;this.f=c};lm=function(){km.apply(this,arguments)};_.nm=function(a){var b=_.pi(a);b=parseInt(b.byteLength,10).toString(16);b=_.pi("12"+b+a);return new lm(mm,a,b)};
139
+ _.om=function(a){function b(t){switch(t){case 0:do if(!_.ml(d))throw Error("not enough data to skip!");while(_.ol(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=_.ol(d),v=(t&127)>>>0,z=7;128<=t&&28>=z;)t=_.ol(d),v=(v|(t&(28>z?127:15))<<z)>>>0,z+=7;return 28<z?-1:v}var d=new _.ll(new DataView(a.buffer,a.byteOffset,a.byteLength),!1);a=_.W(d);var e=_.W(d);e=
140
+ _.zl(e);var f=_.W(d),g=f>>>24;f&=16777215;var h=_.tl(d,16);h=_.qi(h);if(0<g){var l=_.W(d);d.skip(16*l)}l=_.W(d);for(var m=[],n=null;_.ml(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=sl(d,q);2===p?m.push(q):4===p&&(n=q)}else b(q)}_.ug("Parsed WV PSSH Box","size",a,"name",e,"version",g,"flags",f,"size",l,"systemId",h,"contentId (base64)",n?_.mi(n):"","keyIds",m.map(function(t){return _.qi(t)}));return 0<m.length?_.nm(_.qi(m[0])):null};
141
+ _.pm=function(a,b,c,d,e,f){f=void 0===f?null:f;km.call(this,a,b,d);this.version=e;this.g=c;this.l=f};
142
+ _.vm=function(a){a:{var b=new _.ll(new DataView(a.buffer),!0);_.W(b);for(_.pl(b);_.ml(b);)if(1===_.pl(b)){var c=_.pl(b);b=_.tl(b,c);break a}b=null}b||(b=a);a=$h(b,!0);c=_.jm(a,"WRMHEADER");a=c.getAttribute("version");var d=_.hm(c,"DATA");c=(c=_.hm(d,"LA_URL"))?_.im(c):"";var e;if(e=_.hm(d,"KID"))if(e=_.im(e)){var f=_.hm(d,oa);e={value:e,Ae:f?f.textContent.trim():null}}else e=null;else e=null;d=e?[e]:(e=rm(d))?[e]:(d=sm(d))?d:null;e=d&&d[0]||{};d=e.Ae;e=_.oi(void 0===e.value?"":e.value);e=_.tm(e);
143
+ e=_.qi(e);return new _.pm(_.um,e,c,b,a,d)};_.tm=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=_.R(a);a.set(b,0);return a};rm=function(a){a=_.hm(a,"PROTECTINFO");if(!a)return null;var b=_.hm(a,"KID");if(!b)return null;a=b.getAttribute("VALUE");if(!a)return null;var c=b.getAttribute(oa);b=b.getAttribute("ALGID");return{value:a,Ae:c,Dh:b}};
144
+ sm=function(a){a=_.hm(a,"PROTECTINFO");if(!a)return null;a=_.hm(a,"KIDS");if(!a)return null;var b=_.gm(a,"KID");if(!b.length)return null;a=[];b=_.u(b);for(var c=b.next();!c.done;c=b.next()){var d=c.value;if(c=d.getAttribute("VALUE")){var e=d.getAttribute(oa);d=d.getAttribute("ALGID");a.push({value:c,Ae:e,Dh:d})}}return a.length?a:null};_.wm=function(a){performance.mark(a)};
145
+ xm=function(a){this.f=[];this.g=[];this.a=[];8<=a.byteLength&&(new _.ul).X("pssh",this.j.bind(this)).parse(a.buffer);0==this.a.length&&_.J("No pssh box found!")};
146
+ _.Bm=function(a){var b=this;this.C=a;this.M=new Set;this.B=this.I=this.o=null;this.ca=!1;this.a=null;this.J=ym;this.A=new _.Eg;this.P=new Xk;this.f=new Map;this.K=[];this.H=new _.Fi;this.g=null;this.U=function(c){b.w=!0;b.D=!1;b.H.reject(c);a.onError(c)};this.l=new Map;this.ma=new Map;this.ea=new _.zj(function(){return zm(b)});this.j=!1;this.Da=new _.Fi;this.F=!1;this.ha=[];this.Ra=!1;this.V=0;this.h=new _.K("clpp.drm.DrmEngine");this.na=(new _.zj(function(){Am(b)})).eb(1);this.H["catch"](function(){});
140
147
  this.w=this.D=!1;this.T=null};
141
- Ml=function(a){var b,c,d,e,f;return _.B(function(g){switch(g.a){case 1:a.A.release();a.A=null;a.N.release();a.N=null;a.w=!1;a.D=!1;a.H.reject();a.na.stop();a.na=null;a.ga.stop();a.ga=null;b=Array.from(a.f.keys());c=_.u(a.f.values());for(d=c.next();!d.done;d=c.next())e=d.value,e.Gc&&e.Gc.stop();a.f.clear();return _.x(g,Promise.all(b.map(function(h){return Promise.resolve().then(function(){var l;return _.B(function(m){if(1==m.a)return a.h.debug("Closing session",h.sessionId),_.Bf(m,2),_.x(m,Ll(h),4);
142
- if(2!=m.a)return _.Cf(m,0);l=_.Df(m);a.h.warn("Error while closing session",l);_.y(m)})})})),2);case 2:if(!a.B){g.G(3);break}_.Bf(g,4);return _.x(g,a.o.ed(null),6);case 6:_.Cf(g,5);break;case 4:f=_.Df(g),a.h.warn("Error while resetting media keys",f);case 5:a.B=null;case 3:a.o=null,a.a=null,a.M.clear(),a.I=null,a.K=[],a.g=null,a.U=null,a.C=null,a.V=0,a.T=null,_.y(g)}})};
143
- _.Pl=function(a,b,c){a.J=Nl;a.K=c;a.F=0<c.length;a.h.debug("Using Persisted Licenses: "+a.F);a.g&&a.g.enableSessionCacheForSkd&&a.h.info("Enabled session cache for SKD license requests");return _.Ol(a,b)};
144
- _.Ol=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.K.Ff(a.g.Wa);Ql(b,d)}var e=Rl(a);if(e){var f=_.u(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos=[e]}e=_.u(b);for(d=e.next();!d.done;d=e.next())for(d=_.u(d.value.drmInfos),f=d.next();!f.done;f=d.next())Sl(f.value,a.g.Wa);d=Tl(a,b);if(!d.size)return a.da=!0,Promise.resolve();d=_.Ul(a,d);return c?d:d["catch"](function(){})};
145
- Vl=function(a){var b;return _.B(function(c){switch(c.a){case 1:if(a.o.Ud())return c["return"]();if(!a.T){c.G(2);break}return _.x(c,a.T,3);case 3:return c["return"]();case 2:return _.Bf(c,4),a.T=a.o.ed(a.I),_.x(c,a.T,6);case 6:_.Cf(c,0);break;case 4:b=_.Df(c);if(a.j)return c["return"]();a.U(new _.L(_.M,6,6003,b.message,b));_.y(c)}})};
146
- Xl=function(a,b){return _.B(function(c){if(1==c.a)return a.h.info("Handle encrypted event for type "+b.initDataType),_.x(c,Vl(a),2);if(!b.initData)return c["return"]();_.Wl(a,b.initDataType,_.N(b.initData));_.y(c)})};
147
- _.bm=function(a,b){if(!a.I)return _.fg(a.A,b,[fd,"msneedkey",ef,"needkey"],function(){a.U(new _.L(_.M,6,6010))}),Promise.resolve();a.B=b;a.o.Md(b);a.A.one(a.B,_.Zd,function(){return Yl(a)});a.A.on(a.B,_.$e,function(e){var f=a.D;a.D=!a.w;!f&&a.D&&(a.h.info("Waiting for DRM license key delivery"),a.C.onEvent(e))});var c=a.a.initData.find(function(e){return 0<e.initData.length}),d=Promise.resolve();if(c||a.o.dd()!==kb||a.K.length)d=Vl(a);c=Promise.resolve();_.ni()&&38===dj().major||(a.a&&a.a.keySystem!==
148
- _.Td&&!a.a.serverCertificate&&(c=Zl(a)),c=c.then(function(){return _.$l(a)}));return Promise.all([d,c]).then(function(){a.j||(_.am(a),a.A.on(a.B,fd,function(e){return Xl(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.a&&a.a.keySystem===_.Tc&&1>a.V&&a.a.serverCertificate&&a.a.serverCertificate.length)return a.h.warn("Detected invalid widevine server certificate!. Retrying"),a.U(new _.L(1,6,6004)),a.a.serverCertificate=null,a.V++,_.bm(a,b);1<=a.V&&a.h.info("Could not get valid widevine server certificate. Giving up");
149
- throw e;}})};_.$l=function(a){var b,c;return _.B(function(d){if(1==d.a){if(!(a.I&&a.a&&a.a.serverCertificate&&a.a.serverCertificate.length))return d.G(0);_.Bf(d,3);return _.x(d,a.I.setServerCertificate(a.a.serverCertificate),5)}if(3!=d.a)return b=d.f,void 0===b||b||a.h.debug("Server certificates are not supported by the key system. The server certificate has been ignored."),_.Cf(d,0);c=_.Df(d);throw new _.L(_.M,6,6004,{browserError:c.message});})};
150
- Zl=function(a){var b=a.keySystem(),c=a.g.Wa[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.C.getConfiguration();return cm(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,h=f&&f.certificateResponse;f=_.ai([d],a.g.attemptParameters);f.type=3;f.licenseRequestType=Ec;g&&f.requestModifiers.push(function(l){return g(e,l)});h&&f.responseModifiers.push(function(l){return h(e,l)});a.h.debug("Fetching certificate");return a.C.Db.fetch(f).P}).then(function(f){a.a.serverCertificate=
151
- _.N(f.data)})["catch"](function(f){var g=f.data.headers;g=Object.assign({message:"Error while fetching certificate!",url:f.data.url,status:f.data.status,response:f.data.response},g?{headers:g}:{},wl(g));throw new _.L(_.M,6,6100,g,f);})};cm=function(a,b){var c,d;return _.B(function(e){c=a.C.Mc();return c?(d=b&&b.drm&&b.drm.customData)?_.x(e,c(d),0):e["return"]():e["return"]()})};dm=function(a,b){if(!a)return!1;for(var c=0;c<b.Qd.length;c++)if(_.Sh(a,b.Qd[c]))return!0;return!1};
152
- _.am=function(a){for(var b=a.a?a.a.initData||[]:[],c=_.u(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=!_.mi(2);if(a.g.enforceSingleSession&&!a.keySystem().startsWith(_.Rc)){var f=a.f.values();f=_.u(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.Sh(d.initData,g.initData)?(a.h.info("Skipping Session creation. Existing init data in single session mode!"),e=!1):g.periodId===d.periodId&&(a.h.info("Skipping Session creation. Merging init data for period in single session mode for Key ID "+(d.keyId+
153
- ".")),dm(d.initData,g)||(g.Qd.push(d.initData),d.keyId&&!g.gb.includes(d.keyId)&&g.gb.push(d.keyId),a.m.get(d.keyId)||a.m.set(d.keyId,se)),e=!1)}!e||a.F&&a.J===Nl||(_.em(a,d.keyId,d.initData)&&(e=!1),e&&(a.h.info("Request new media key session on create"),fm(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.u(a.K);for(d=c.next();!d.done;d=c.next())_.gm(a,d.value);b.length||a.K.length||(a.w||a.h.info(xa),a.w=!0,a.D=!1,a.H.resolve());return a.H};
154
- _.Wl=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.F||a.J!==Nl)){var e=a.keySystem();if(!e.startsWith(_.Rc)&&b===_.Cc){var f=new Gl(c);if(1<f.a.length&&(e={"org.w3.clearkey":"1077efecc0b24d02ace33c1e52e2fb4b","com.widevine.alpha":"edef8ba979d64acea3c827dcd51d21ed","com.microsoft.playready":"9a04f07998404286ab92e65be0885f95","com.adobe.primetime":"f239e769efa348509c16a903c6932efb"}[e]))for(var g=0;g<f.f.length;g++)if(e===f.f[g]){c=c.subarray(f.a[g].start,f.a[g].end+1);break}}(a.B.webkitCurrentPlaybackTargetIsWireless||
155
- _.mi(2)||a.keySystem().startsWith(_.Rc)||!_.em(a,d,c,!0))&&fm(a,d,null,b,c)}};
156
- _.em=function(a,b,c,d){d=void 0===d?!1:d;for(var e=_.u(a.f.keys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.f.get(f);if(_.Sh(c,g.initData))return b?g.gb.includes(b)?d&&a.h.info("Skipping Session creation. License for init data with Key ID "+(b+" was already requested in Session: '")+(f.sessionId+"'. ")):(g.gb.push(b),a.m.get(b)||a.m.set(b,se),d&&a.h.info(qb+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.h.info(qb+(f.sessionId+"'")),!0;if(dm(c,g))return d&&a.h.info("Skipping Session creation. License for init data was already requested [extra]"),
157
- !0}return!1};hm=function(a){var b=Infinity;a=a.f.keys();a=_.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,isNaN(c.expiration)||(b=Math.min(b,c.expiration));return b};
158
- Tl=function(a,b){for(var c=new Set,d=_.u(b),e=d.next();!e.done;e=d.next()){var f=_.u(e.value.drmInfos);for(e=f.next();!e.done;e=f.next())c.add(e.value)}d=_.u(c);for(e=d.next();!e.done;e=d.next())Sl(e.value,a.g.Wa);f=a.F?_.ie:_.Sd;var g=a.F?[_.Xd]:[Be];d=new Map;c=_.u(c);for(e=c.next();!e.done;e=c.next())e=e.value,d.set(e.keySystem,{initDataTypes:[_.Cc],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.Sd,persistentState:f,sessionTypes:g,label:e.keySystem,drmInfos:[]});c={};f=_.u(b);
159
- for(e=f.next();!e.done;c={ke:c.ke,re:c.re},e=f.next()){e=e.value;g=e.audio;var h=e.video;c.ke=g?_.Xi(g.mimeType,g.codecs):"";c.re=h?_.Xi(h.mimeType,h.codecs):"";var l={},m=_.u(e.drmInfos);for(e=m.next();!e.done;l={Jb:l.Jb},e=m.next())e=e.value,l.Jb=d.get(e.keySystem),l.Jb.drmInfos.push(e),e.initData&&e.initData.length&&(l.Jb.initDataTypes=_.of(new Set(e.initData.map(function(n){return n.initDataType}))).concat()),e.distinctiveIdentifierRequired&&(l.Jb.distinctiveIdentifier=_.ie),e.persistentStateRequired&&
160
- (l.Jb.persistentState=_.ie),g&&_.tg(e.audioRobustness).forEach(function(n,p){return function(q){p.Jb.audioCapabilities.push({robustness:q||"",contentType:n.ke})}}(c,l)),h&&_.tg(e.videoRobustness).forEach(function(n,p){return function(q){p.Jb.videoCapabilities.push({robustness:q||"",contentType:n.re})}}(c,l))}return d};
161
- _.Ul=function(a,b){function c(n,p,q){p.drmInfos.some(function(r){return!!r.licenseServerUri})==n&&(g=g["catch"](function(){if(a.j)return null;if(q===_.Sc){var r=a.C.getConfiguration();if(!_.bj()||r.streaming.patchEdgeWhenMixedContent||a.g.Wa[q].useLegacySystem)d(p);else return a.o.Ec("com.microsoft.playready.recommendation",[p])["catch"](function(){d(p);return a.o.Ec(q,[p])})}return a.o.Ec(q,[p])}))}function d(n){for(var p=_.u(n.audioCapabilities),q=p.next();!q.done;q=p.next())delete q.value.robustness;
162
- n=_.u(n.videoCapabilities);for(p=n.next();!p.done;p=n.next())delete p.value.robustness}if(1==b.size&&b.has(""))return Promise.reject(new _.L(_.M,6,6E3));null===a.o&&(a.o=Al(a.g.emeApi));for(var e=_.u(b.values()),f=e.next();!f.done;f=e.next())f=f.value,0==f.audioCapabilities.length&&delete f.audioCapabilities,0==f.videoCapabilities.length&&delete f.videoCapabilities;var g=e=new _.fi,h=a.g.preferredDrmSystem;if(!h)if(f=_.oi(),f.os===xj&&10<=f.osVersion.major&&"edge"===f.browser)h=_.Sc;else if("safari"===
163
- f.browser)h=_.Rc;else if(f.browser===Gc||"firefox"===f.browser)h=_.Tc;h&&(f=b.get(h))&&(c(!0,f,h),c(!1,f,h));f={};for(var l=_.u([!0,!1]),m=l.next();!m.done;f={pe:f.pe},m=l.next())f.pe=m.value,b.forEach(function(n){return function(p,q){q!==h&&c(n.pe,p,q)}}(f));g=g["catch"](function(n){throw new _.L(_.M,6,6001,null,n);});g=g.then(function(n){if(a.j)return null;a.M.clear();var p=n.getConfiguration();a.h.debug("Got MediaKeySystemAccess with configuration",p);var q=p.videoCapabilities||[],r=_.u(p.audioCapabilities||
164
- []);for(p=r.next();!p.done;p=r.next())a.M.add(p.value.contentType);q=_.u(q);for(p=q.next();!p.done;p=q.next())a.M.add(p.value.contentType);q=n.keySystem;p=b.get(_.im(n.keySystem));r=[];var v=[],z=[],A=[];jm(p.drmInfos,r,v,z,A);1<v.length&&_.G("Multiple unique server certificates found! Only the first will be used.");1<r.length&&_.G("Multiple unique license server URIs found! Only the first will be used.");a.a={keySystem:q,licenseServerUri:r[0],distinctiveIdentifierRequired:p.distinctiveIdentifier==
165
- _.ie,persistentStateRequired:p.persistentState==_.ie,audioRobustness:p.audioCapabilities?p.audioCapabilities[0].robustness:"",videoRobustness:p.videoCapabilities?p.videoCapabilities[0].robustness:"",serverCertificate:v[0],initData:z,keyIds:A,periodId:null};if(!a.a.licenseServerUri)throw new _.L(_.M,6,6012,a.a.keySystem);return n.createMediaKeys()}).then(function(n){a.j||(a.h.info("Created MediaKeys for key system",a.a.keySystem),a.I=n,a.da=!0)})["catch"](function(n){if(!a.j){a.a=null;a.M.clear();
166
- if(n instanceof _.L)throw n;throw new _.L(_.M,6,6002,{browserError:n.message});}});e.reject();return g};
167
- Rl=function(a){a=_.K.Ff(a.g.Wa[_.Td]||{});if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.Qh(f),h=_.Qh(e);g={kty:"oct",kid:_.Oh(g,!1),k:_.Oh(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.Ch(d),initDataType:"keyids"}];return{keySystem:_.Td,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
148
+ Dm=function(a){var b,c,d,e,f;return _.G(function(g){switch(g.a){case 1:a.A.release();a.A=null;a.P.release();a.P=null;a.w=!1;a.D=!1;a.H.reject();a.na.stop();a.na=null;a.ea.stop();a.ea=null;b=Array.from(a.f.keys());c=_.u(a.f.values());for(d=c.next();!d.done;d=c.next())e=d.value,e.Dc&&e.Dc.stop();a.f.clear();return _.x(g,Promise.all(b.map(function(h){return Promise.resolve().then(function(){var l;return _.G(function(m){if(1==m.a)return a.h.debug("Closing session",h.sessionId),_.B(m,2),_.x(m,Cm(h),4);
149
+ if(2!=m.a)return _.ag(m,0);l=_.D(m);a.h.warn("Error while closing session",l);_.y(m)})})})),2);case 2:if(!a.B){g.G(3);break}_.B(g,4);return _.x(g,a.o.bd(null),6);case 6:_.ag(g,5);break;case 4:f=_.D(g),a.h.warn("Error while resetting media keys",f);case 5:a.B=null;case 3:a.o=null,a.a=null,a.M.clear(),a.I=null,a.K=[],a.g=null,a.U=null,a.C=null,a.V=0,a.T=null,_.y(g)}})};
150
+ _.Gm=function(a,b,c){a.J=Em;a.K=c;a.F=0<c.length;a.h.debug("Using Persisted Licenses: "+a.F);a.g&&a.g.enableSessionCacheForSkd&&a.h.info("Enabled session cache for SKD license requests");return _.Fm(a,b)};
151
+ _.Fm=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.M.Ff(a.g.Va);Hm(b,d)}var e=Im(a);if(e){var f=_.u(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos=[e]}e=_.u(b);for(d=e.next();!d.done;d=e.next())for(d=_.u(d.value.drmInfos),f=d.next();!f.done;f=d.next())Jm(f.value,a.g.Va);d=Km(a,b);if(!d.size)return a.ca=!0,Promise.resolve();_.wm(kd);d=_.Lm(a,d);return(c?d:d["catch"](function(){})).then(function(){_.wm(jd);performance.measure("DRM queryMediaKeys_()",kd,jd)})};
152
+ Mm=function(a){var b;return _.G(function(c){switch(c.a){case 1:if(a.o.Sd())return c["return"]();if(!a.T){c.G(2);break}return _.x(c,a.T,3);case 3:return c["return"]();case 2:return _.B(c,4),a.T=a.o.bd(a.I),_.x(c,a.T,6);case 6:_.ag(c,0);break;case 4:b=_.D(c);if(a.j)return c["return"]();a.U(new _.N(_.O,6,6003,b.message,b));_.y(c)}})};
153
+ Om=function(a,b){return _.G(function(c){if(1==c.a)return a.h.info("Handle encrypted event for type "+b.initDataType),_.x(c,Mm(a),2);if(!b.initData)return c["return"]();_.Nm(a,b.initDataType,_.R(b.initData));_.y(c)})};
154
+ _.Tm=function(a,b){if(!a.I)return _.Fg(a.A,b,[vd,"msneedkey",If,"needkey"],function(){a.U(new _.N(_.O,6,6010))}),Promise.resolve();a.B=b;a.o.Ld(b);a.A.one(a.B,_.oe,function(){return Pm(a)});a.A.on(a.B,_.Df,function(e){var f=a.D;a.D=!a.w;!f&&a.D&&(a.h.info("Waiting for DRM license key delivery"),a.C.onEvent(e))});var c=a.a.initData.find(function(e){return 0<e.initData.length}),d=Promise.resolve();if(c||a.o.$c()!==qb||a.K.length)d=Mm(a);c=Promise.resolve();_.Ni()&&38===Fj().major||(a.a&&a.a.keySystem!==
155
+ _.ie&&!a.a.serverCertificate&&(c=Qm(a)),c=c.then(function(){return _.Rm(a)}));return Promise.all([d,c]).then(function(){a.j||(_.Sm(a),a.A.on(a.B,vd,function(e){return Om(a,e)}))})["catch"](function(e){if(!a.j){if(6004===e.code&&a.a&&a.a.keySystem===_.ad&&1>a.V&&a.a.serverCertificate&&a.a.serverCertificate.length)return a.h.warn("Detected invalid widevine server certificate!. Retrying"),a.U(new _.N(1,6,6004)),a.a.serverCertificate=null,a.V++,_.Tm(a,b);1<=a.V&&a.h.info("Could not get valid widevine server certificate. Giving up");
156
+ throw e;}})};_.Rm=function(a){var b,c;return _.G(function(d){if(1==d.a){if(!(a.I&&a.a&&a.a.serverCertificate&&a.a.serverCertificate.length))return d.G(0);_.B(d,3);return _.x(d,a.I.setServerCertificate(a.a.serverCertificate),5)}if(3!=d.a)return b=d.f,void 0===b||b||a.h.debug("Server certificates are not supported by the key system. The server certificate has been ignored."),_.ag(d,0);c=_.D(d);throw new _.N(_.O,6,6004,{browserError:c.message});})};
157
+ Qm=function(a){var b=a.keySystem(),c=a.g.Va[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.C.getConfiguration();return Um(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,h=f&&f.certificateResponse;f=_.Ai([d],a.g.attemptParameters);f.type=3;f.licenseRequestType=Jc;g&&f.requestModifiers.push(function(l){return g(e,l)});h&&f.responseModifiers.push(function(l){return h(e,l)});a.h.debug("Fetching certificate");return a.C.Cb.fetch(f).O}).then(function(f){a.a.serverCertificate=
158
+ _.R(f.data)})["catch"](function(f){var g=f.data.headers;g=Object.assign({message:"Error while fetching certificate!",url:f.data.url,status:f.data.status,response:f.data.response},g?{headers:g}:{},bm(g));throw new _.N(_.O,6,6100,g,f);})};Um=function(a,b){var c,d;return _.G(function(e){c=a.C.Jc();return c?(d=b&&b.drm&&b.drm.customData)?_.x(e,c(d),0):e["return"]():e["return"]()})};Vm=function(a,b){if(!a)return!1;for(var c=0;c<b.Od.length;c++)if(_.ri(a,b.Od[c]))return!0;return!1};
159
+ _.Sm=function(a){for(var b=a.a?a.a.initData||[]:[],c=_.u(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=!_.Mi(2);if(a.g.enforceSingleSession&&!a.keySystem().startsWith(_.Yc)){var f=a.f.values();f=_.u(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.ri(d.initData,g.initData)?(a.h.info("Skipping Session creation. Existing init data in single session mode!"),e=!1):g.periodId===d.periodId&&(a.h.info("Skipping Session creation. Merging init data for period in single session mode for Key ID "+(d.keyId+
160
+ ".")),Vm(d.initData,g)||(g.Od.push(d.initData),d.keyId&&!g.Wa.includes(d.keyId)&&g.Wa.push(d.keyId),a.l.get(d.keyId)||a.l.set(d.keyId,Se)),e=!1)}!e||a.F&&a.J===Em||(_.Wm(a,d.keyId,d.initData)&&(e=!1),e&&(a.h.info("Request new media key session on create"),Xm(a,d.keyId,d.periodId,d.initDataType,d.initData)))}c=_.u(a.K);for(d=c.next();!d.done;d=c.next())_.Ym(a,d.value);b.length||a.K.length||(a.w||a.h.info(za),a.w=!0,a.D=!1,a.H.resolve());return a.H};
161
+ _.Nm=function(a,b,c,d){d=void 0===d?"":d;if(c.length&&(!a.F||a.J!==Em)){var e=a.keySystem();if(!e.startsWith(_.Yc)&&b===_.Hc){var f=new xm(c);if(1<f.a.length&&(e={"org.w3.clearkey":"1077efecc0b24d02ace33c1e52e2fb4b","com.widevine.alpha":"edef8ba979d64acea3c827dcd51d21ed","com.microsoft.playready":"9a04f07998404286ab92e65be0885f95","com.adobe.primetime":"f239e769efa348509c16a903c6932efb"}[e]))for(var g=0;g<f.f.length;g++)if(e===f.f[g]){c=c.subarray(f.a[g].start,f.a[g].end+1);break}}(a.B.webkitCurrentPlaybackTargetIsWireless||
162
+ _.Mi(2)||a.keySystem().startsWith(_.Yc)||!_.Wm(a,d,c,!0))&&Xm(a,d,null,b,c)}};
163
+ _.Wm=function(a,b,c,d){d=void 0===d?!1:d;for(var e=_.u(a.f.keys()),f=e.next();!f.done;f=e.next()){f=f.value;var g=a.f.get(f);if(_.ri(c,g.initData))return b?g.Wa.includes(b)?d&&a.h.info("Skipping Session creation. License for init data with Key ID "+(b+" was already requested in Session: '")+(f.sessionId+"'. ")):(g.Wa.push(b),a.l.get(b)||a.l.set(b,Se),d&&a.h.info(wb+(f.sessionId+"'Adding Key ID ")+(b+" to session meta-data."))):d&&a.h.info(wb+(f.sessionId+"'")),!0;if(Vm(c,g))return d&&a.h.info("Skipping Session creation. License for init data was already requested [extra]"),
164
+ !0}return!1};Zm=function(a){var b=Infinity;a=a.f.keys();a=_.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,isNaN(c.expiration)||(b=Math.min(b,c.expiration));return b};
165
+ Km=function(a,b){for(var c=new Set,d=_.u(b),e=d.next();!e.done;e=d.next()){var f=_.u(e.value.drmInfos);for(e=f.next();!e.done;e=f.next())e=e.value,Jm(e,a.g.Va),c.add(e)}f=a.F?_.Ie:_.he;var g=a.F?[_.me]:[Ze];d=new Map;c=_.u(c);for(e=c.next();!e.done;e=c.next())e=e.value,d.set(e.keySystem,{initDataTypes:[_.Hc],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.he,persistentState:f,sessionTypes:g,label:e.keySystem,drmInfos:[]});c={};f=_.u(b);for(e=f.next();!e.done;c={ne:c.ne,ue:c.ue},
166
+ e=f.next()){e=e.value;g=e.audio;var h=e.video;c.ne=g?_.wj(g.mimeType,g.codecs):"";c.ue=h?_.wj(h.mimeType,h.codecs):"";var l={},m=_.u(e.drmInfos);for(e=m.next();!e.done;l={fb:l.fb},e=m.next())e=e.value,l.fb=d.get(e.keySystem),l.fb.drmInfos.push(e),e.initData&&e.initData.length&&(l.fb.initDataTypes=_.Of(new Set(e.initData.map(function(n){return n.initDataType}))).concat()),e.distinctiveIdentifierRequired&&(l.fb.distinctiveIdentifier=_.Ie),e.persistentStateRequired&&(l.fb.persistentState=_.Ie),g&&_.Tg(e.audioRobustness).forEach(function(n,
167
+ p){return function(q){var t={robustness:q||"",contentType:n.ne};p.fb.audioCapabilities.find(function(v){return v.robustness===t.robustness&&v.contentType===t.contentType})||p.fb.audioCapabilities.push(t)}}(c,l)),h&&_.Tg(e.videoRobustness).forEach(function(n,p){return function(q){var t={robustness:q||"",contentType:n.ue};p.fb.videoCapabilities.find(function(v){return v.robustness===t.robustness&&v.contentType===t.contentType})||p.fb.videoCapabilities.push(t)}}(c,l))}return d};
168
+ _.Lm=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===_.Zc){if(_.Dj()&&!a.g.Va[p].useLegacySystem)return n.label=$c,a.o.$b($c,[n])["catch"](function(){a.h.warn("Unable to create com.microsoft.playready.recommendation. Falling back to com.microsoft.playready.");n.label=_.Zc;$m(n);return a.o.$b(p,[n])});$m(n)}return a.o.$b(p,[n])["catch"](function(q){a:{if(p===_.ad&&an(n)){var t=_.Oi();if(an(n)&&t.os===Vj&&
169
+ t.browser===Lc){a.h.warn("requestMediaKeySystemAccess() failed",q);a.h.warn("Will try to recover by removing the robustness attribute of videoCapabilities and audioCapabilities.");$m(n);q=a.o.$b(p,[n]);break a}}throw q;}return q})}))}if(1==b.size&&b.has(""))return Promise.reject(new _.N(_.O,6,6E3));null===a.o&&(a.o=fm(a.g.emeApi));for(var d=_.u(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;
170
+ var f=d=new _.Fi,g=a.g.preferredDrmSystem;if(!g)if(e=_.Oi(),e.os===Xj&&10<=e.osVersion.major&&"edge"===e.browser)g=_.Zc;else if("safari"===e.browser)g=_.Yc;else if(e.browser===Lc||"firefox"===e.browser)g=_.ad;g&&(e=b.get(g))&&(c(!0,e,g),c(!1,e,g));e={};for(var h=_.u([!0,!1]),l=h.next();!l.done;e={se:e.se},l=h.next())e.se=l.value,b.forEach(function(m){return function(n,p){p!==g&&c(m.se,n,p)}}(e));f=f["catch"](function(m){throw new _.N(_.O,6,6001,null,m);});f=f.then(function(m){if(a.j)return null;a.M.clear();
171
+ var n=m.getConfiguration();a.h.info("Got MediaKeySystemAccess with configuration",n);var p=n.videoCapabilities||[],q=_.u(n.audioCapabilities||[]);for(n=q.next();!n.done;n=q.next())a.M.add(n.value.contentType);p=_.u(p);for(n=p.next();!n.done;n=p.next())a.M.add(n.value.contentType);p=m.keySystem;n=b.get(_.bn(m.keySystem));q=[];var t=[],v=[],z=[];cn(n.drmInfos,q,t,v,z);1<t.length&&_.J("Multiple unique server certificates found! Only the first will be used.");1<q.length&&_.J("Multiple unique license server URIs found! Only the first will be used.");
172
+ a.a={keySystem:p,licenseServerUri:q[0],distinctiveIdentifierRequired:n.distinctiveIdentifier==_.Ie,persistentStateRequired:n.persistentState==_.Ie,audioRobustness:n.audioCapabilities?n.audioCapabilities[0].robustness:"",videoRobustness:n.videoCapabilities?n.videoCapabilities[0].robustness:"",serverCertificate:t[0],initData:v,keyIds:z,periodId:null};if(!a.a.licenseServerUri)throw new _.N(_.O,6,6012,a.a.keySystem);return m.createMediaKeys()}).then(function(m){a.j||(a.h.info("Created MediaKeys for key system",
173
+ a.a.keySystem),a.I=m,a.ca=!0)})["catch"](function(m){if(!a.j){a.a=null;a.M.clear();if(m instanceof _.N)throw m;throw new _.N(_.O,6,6002,{browserError:m.message});}});d.reject();return f};
174
+ Im=function(a){a=_.M.Ff(a.g.Va[_.ie]||{});if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.pi(f),h=_.pi(e);g={kty:"oct",kid:_.ni(g,!1),k:_.ni(h,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.bi(d),initDataType:"keyids"}];return{keySystem:_.ie,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
168
175
  initData:d,keyIds:[],periodId:null}};
169
- _.gm=function(a,b){try{a.h.debug("Attempting to load an offline session",b);var c=a.I.createSession(_.Xd)}catch(f){var d=new _.L(_.M,6,6005,{browserError:f.message});a.U(d);return Promise.reject(d)}a.A.on(c,Bd,a.Og.bind(a));a.A.on(c,qd,a.Kg.bind(a));var e={initData:null,loaded:!1,$e:Infinity,rb:null,Fa:new _.fi,periodId:null,Qd:[],keyId:null,gb:[],initDataType:null,bc:null,sessionContext:{ldlDelay:0,customData:{}}};e.Fa["catch"](function(){});a.f.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.h.debug("Loaded offline session",
170
- b,f);if(!f)return a.f["delete"](c),a.U(new _.L(_.M,6,6013)),null;e.loaded=!0;km(a)&&(a.w||a.h.info(xa),a.w=!0,a.D=!1,a.H.resolve());return c},function(f){a.j||(a.f["delete"](c),a.U(new _.L(_.M,6,6005,{browserError:f.message})))})};lm=function(a,b,c,d){if(!b&&c!==_.oe)return!1;d=b||Yk(d);a=_.u(a.f.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||c===_.oe&&(e.keyId||Yk(e.initData))===d)return!0;return!1};
171
- fm=function(a,b,c,d,e,f,g){f=void 0===f?null:f;g=void 0===g?!1:g;var h,l,m,n,p,q,r,v,z,A,D,F,E,H,Q,O,Ca,sa,wa,Fa,Ea;_.B(function(ka){switch(ka.a){case 1:if(!e.length)return a.h.warn("Empty init data"),ka["return"]();h=b;if(!h)try{h=mm(a,d,e,f)}catch(la){if(a.h.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:la,initDataType:d,
172
- initData:e}),a.g.ignoreUnrecognizedInitData)return ka["return"]()}if(g){ka.G(2);break}if(!lm(a,h,d,e)){ka.G(2);break}l=!0;if("skd"!==d||a.g.enableSessionCacheForSkd){ka.G(4);break}m=_.u(a.f.keys());n=m.next();case 5:if(n.done){ka.G(4);break}p=n.value;q=a.f.get(p);if(!h||q.keyId!==h){ka.G(6);break}a.h.warn("Close and re-open session for "+h);_.Bf(ka,9);return _.x(ka,p.close(),11);case 11:_.Cf(ka,10);break;case 9:r=_.Df(ka),a.h.warn("Unable to close session",r);case 10:l=!1;case 6:n=m.next();ka.G(5);
173
- break;case 4:if(l)return a.h.warn("Skip creating a new session for "+h),ka["return"]();case 2:try{z=a.F?_.Xd:Be,v=a.I.createSession(z),a.h.info("Created new "+z+" session for Key ID: '"+h+"'. Init data type: "+(d+"."))}catch(la){return a.U(new _.L(_.M,6,6005,{browserError:la.message})),ka["return"]()}a.A.on(v,Bd,a.Og.bind(a));a.A.on(v,qd,a.Kg.bind(a));A={bc:f,Qd:[],initData:e,initDataType:d,keyId:h,gb:h?[h]:[],loaded:!1,$e:Infinity,periodId:c,rb:null,Fa:new _.fi,sessionContext:{ldlDelay:0,customData:{}}};
174
- A.Fa["catch"](function(){});f&&(D=a.f.get(f),A.sessionContext=D.sessionContext);a.f.set(v,A);h&&!a.m.get(h)&&a.m.set(h,se);if(e)for(F=0;F<a.a.initData.length;F++)E=a.a.initData[F],E.keyId&&!A.gb.includes(E.keyId)&&_.Sh(E.initData,e)&&(A.keyId||(A.keyId=E.keyId),A.gb.push(E.keyId),a.m.get(E.keyId)||a.m.set(E.keyId,se));H=_.K;Q=H.nb;O=a.C.getConfiguration();Ca=a.keySystem();sa=a.g.Wa[Ca];Fa=(wa=sa.modifiers)&&wa.transformInitData;Q(Fa)||(Fa=nm);try{e=Fa({playerConfig:O,initData:e,initDataType:d,drmInfo:a.a,
175
- drmSystemConfig:sa,sessionContext:A.sessionContext,emeApi:a.o.dd()})}catch(la){return Ea=la,la instanceof _.L||(Ea=new _.L(_.M,6,6016,la)),A.Fa&&A.Fa.reject(la),a.U(Ea),ka["return"]()}a.h.info("Generate License Request for key ID: '"+h+"'");v.generateRequest(d,e.buffer)["catch"](function(la){if(!a.j){var Na=null;la.errorCode&&la.errorCode.systemCode&&(Na=la.errorCode.systemCode,0>Na&&(Na+=Math.pow(2,32)),Na="0x"+Na.toString(16));a.U(new _.L(_.M,6,6006,{browserError:la.message,error:la,extended:Na},
176
- la))}});_.y(ka)}})};
177
- mm=function(a,b,c,d){d=void 0===d?null:d;if("skd"===b){a:{var e=d;e=void 0===e?null:e;b=a.keySystem();d=a.g.Wa[b];b=a.C.getConfiguration();d=d&&d.modifiers&&d.modifiers.extractContentId;_.K.nb(d)||(d=om);try{var f={ldlDelay:0,customData:{}};e&&(f=a.f.get(e).sessionContext);var g=d(b,c,f);a.h.debug("Extracted Content ID '"+g+"' from SKD");var h=g;break a}catch(l){a.h.warn("Unable to extract Content ID from SKD",l)}h=""}return h}if(b===_.oe)return Yk(c)||"";if(b===_.Cc){h=a.keySystem();try{if(h.match(/^com\.widevine\.alpha/)&&
178
- (e=_.Fl(c)))return e.a}catch(l){throw a.h.warn("Unable to extract Key ID from PSSH data.",{error:l,keySystem:h}),l;}}return""};om=function(a,b){var c=_.Xk(b);_.Uf("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
179
- nm=function(a){var b=a.playerConfig,c=a.initData,d=a.drmInfo,e=a.drmSystemConfig,f=a.sessionContext,g=a.emeApi;if("skd"===a.initDataType&&"APPLE"===g){a=_.K.nb;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=om);a="";try{a=e(b,c,f)}catch(h){throw new _.L(_.M,6,6103);}if(!a.length)throw new _.L(_.M,6,6101,"Content ID is an empty string");c=Zk(c,a,d)}return c};
180
- tm=function(a,b){var c=b.target,d=a.f.get(c),e=a.keySystem(),f=!1;e.match(/^com\.widevine\.alpha/)&&b.message&&2===b.message.byteLength?(f=!0,a.h.info("WV Server certificate request for SID:'"+(c.sessionId+" from msg '")+(b.messageType+"'"))):a.h.info("License request for SID:'"+(c.sessionId+"'/KID:'"+d.keyId+"' from msg '")+(b.messageType+"'"));var g=a.a.licenseServerUri;e=a.g.Wa[e];"individualization-request"===b.messageType&&e&&e.individualizationServer&&(g=e.individualizationServer);var h=_.ai([g],
181
- a.g.attemptParameters);h.type=3;h.body=b.message;h.method="POST";h.licenseRequestType=b.messageType===td&&d.bc?sd:f?Ec:b.messageType;h.sessionId=c.sessionId;if(h.licenseRequestType===sd)a.C.onEvent(new _.J(ad));pm(a.a.keySystem)&&qm(a,h);rk(a.N,h);var l=Date.now();return rm(a,h,d.sessionContext).then(function(){a.h.debug("Sending DRM license request to",g,h);return a.C.Db.fetch(h).P}).then(function(m){if(a.j)return Promise.reject();var n=Date.now()-l,p=sm(a,m),q="";p&&(q=" RID:"+p);p=m&&m.data?m.data.byteLength:
182
- -1;f?a.h.info("WV Server certificate response for SID:'"+(c.sessionId+"' ")+(p+" bytes in ")+(n+"ms"+q)):a.h.info("License response for SID:'"+(c.sessionId+"'/KID:'")+(d.keyId+"' ")+(p+" bytes in ")+(n+"ms"+q));var r=sk(a.N,m);return c.update(m.data).then(function(){if(!f){var v=hm(a),z=r?Date.now()+1E3*r.delay:Number.NaN;v=new _.J(_.cd,{keySystem:a.keySystem(),expirationTime:v,expectedRenewalTime:z});a.C.onEvent(v);d&&(d.rb&&d.rb.resolve(),d.bc&&(v=d.bc,a.h.info("Closing expired session '"+v.sessionId+
183
- "'"),Ll(v)["catch"](function(){a.h.warn("Unable to close expired session in time")}),(v=a.f.get(d.bc))&&v.Gc&&v.Gc.stop(),a.f["delete"](d.bc),d.bc=null),(new _.$i(function(){a.j||(d.loaded=!0,d.Fa&&d.Fa.resolve(),km(a)&&(a.w||a.h.info(xa),a.w=!0,a.D=!1,a.H.resolve()))})).aa(5),null!==d.initData&&(0<d.sessionContext.ldlDelay||r&&tk(a.keySystem()))&&(v=new _.$i(function(){!a.j&&a.N&&(a.h.info("Updating CSL Sessions"),pm(a.keySystem())?fm(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):a.keySystem().startsWith(_.Rc)&&
184
- c.update(_.Ch("renew")))}),d.Gc=v,v.aa(r?r.delay:d.sessionContext.ldlDelay)))}})},function(m){var n,p,q,r;return _.B(function(v){if(a.j)return v["return"]();n=m.data.headers;p=wl(n);q=Object.assign({message:_.Ga,url:m.data.url,status:m.data.status,response:m.data.response},n?{headers:n}:{},p);r=new _.L(_.M,6,6007,q,m);a.U(r);d&&d.rb&&d.rb.reject(r);d&&d.Fa&&d.Fa.reject(r);_.y(v)})})["catch"](function(m){a.j||(m===nb?a.h.info("Ignore update for closed sessions"):(m=new _.L(_.M,6,6008,{browserError:m.message}),
185
- a.U(m),d&&d.rb&&d.rb.reject(m),d&&d.Fa&&d.Fa.reject(m)))})};sm=function(a,b){if(!b||!b.headers)return"";var c=b.headers["x-dt-li"];if(c)try{return JSON.parse(_.yh(_.Ph(c))).ti}catch(d){a.h.warn("Unable to parse DRMtoday Request ID",d)}return""};
186
- qm=function(a,b){var c=_.Ah(b.body,!0,!0);if(c.includes("PlayReadyKeyMessage")){a.h.debug("Unwrapping PlayReady request.");c=(new DOMParser).parseFromString(c,"application/xml");for(var d=c.getElementsByTagName("HttpHeader"),e=0;e<d.length;++e)b.headers[d[e].querySelector("name").textContent]=d[e].querySelector(_.Oe).textContent;b.body=_.Ph(c.querySelector("Challenge").textContent).buffer}else a.h.debug("PlayReady request is already unwrapped."),b.headers[ta]="text/xml; charset\x3dutf-8"};
187
- rm=function(a,b,c){var d,e,f,g,h,l;return _.B(function(m){if(1==m.a)return d=a.C.getConfiguration(),_.x(m,cm(a,d),2);e=a.keySystem();h=(g=(f=a.g.Wa[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;h?b.requestModifiers.push(function(n){return h(d,n,c)}):e.startsWith(_.Rc)&&b.requestModifiers.push(function(n){return _.$k(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Rc)&&b.responseModifiers.push(function(n){return _.al(n)});_.y(m)})};
188
- Il=function(a){var b=a.m,c=a.ma;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"==d})&&a.U(new _.L(_.M,6,6014));a.C.df(_.K.Gf(c));a.w||a.h.info(xa);a.w=!0;a.D=!1};Yl=function(a){var b;return _.B(function(c){b=a.ha.map(function(d){return tm(a,d)});a.Xa=!0;a.ha=[];return _.x(c,Promise.all(b),0)})};pm=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};_.im=function(a){return pm(a)?_.Sc:a};
189
- Jl=function(a){a.f.forEach(function(b,c){var d=b.$e,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.C.onExpirationUpdated(c.sessionId,e),b.$e=e)})};km=function(a){a=a.f.values();return _.lh(a,function(b){return b.loaded})};
190
- Ql=function(a,b){var c=[];b.forEach(function(f,g){c.push({keySystem:g,licenseServerUri:f.licenseUrl,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:[]})});for(var d=_.u(a),e=d.next();!e.done;e=d.next())e.value.drmInfos=c};
191
- jm=function(a,b,c,d,e){var f={};a=_.u(a);for(var g=a.next();!g.done;f={za:f.za},g=a.next()){f.za=g.value;b.includes(f.za.licenseServerUri)||b.push(f.za.licenseServerUri);f.za.serverCertificate&&(c.some(function(m){return function(n){return _.Sh(n,m.za.serverCertificate)}}(f))||c.push(f.za.serverCertificate));if(f.za.initData){var h=_.u(f.za.initData);for(g=h.next();!g.done;g=h.next())g.value.periodId=f.za.periodId;h={};var l=_.u(f.za.initData);for(g=l.next();!g.done;h={Cd:h.Cd},g=l.next())h.Cd=g.value,
192
- d.some(function(m){return function(n){var p=m.Cd;return n.keyId&&n.keyId==p.keyId&&n.periodId===p.periodId?!0:!1}}(h))||d.push(h.Cd)}if(f.za.keyIds)for(g=0;g<f.za.keyIds.length;++g)e.includes(f.za.keyIds[g])||e.push(f.za.keyIds[g])}};
193
- Sl=function(a,b){if(a.keySystem){var c=_.im(a.keySystem),d=b[c];c===_.Td&&a.licenseServerUri||(d&&(a.licenseServerUri=d.licenseUrl||""),a.keyIds||(a.keyIds=[]),d&&(a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=d.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=d.persistentStateRequired),a.videoRobustness||(a.videoRobustness=d.videoRobustness||""),a.audioRobustness||(a.audioRobustness=d.audioRobustness||""),a.serverCertificate||(a.serverCertificate=
194
- d.serverCertificate||null)))}};Ll=function(a){var b,c;return _.B(function(d){if(1==d.a)return b=new Promise(function(e){(new _.$i(e)).aa(1)}),_.x(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.G("Timeout waiting for session close");_.y(d)})};_.wm=function(a,b){a&&b&&(um.set(a,b),vm.info("Registered TextDisplayerFactory: '"+a+"'"))};
195
- _.xm=function(a,b){var c=b.find(function(d){return(d=um.get(d))?d.ba(a):!1});if(null==c)return vm.warn("Subtitles may not work as expected. No compatible text displayer found for this platform."),null;vm.info("Chosen the text displayer: "+c);return um.get(c)};ym=function(){this.a=null;this.f=[]};_.zm=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})}};
196
- Am=function(a,b){var c=0;a.a&&a.a.state==b&&(c+=a.a.duration);for(var d=_.u(a.f),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state==b?e.duration:0;return c};Bm=function(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=_.u(a.f),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.a&&c.push(b(a.a));return c};Cm=function(){this.g=this.f=this.j=null;this.a=[]};Dm=function(a){return a.a.map(function(b){return _.K.Ua(b)})};
197
- _.Em=function(){this.f=this.o=this.A=this.D=this.j=this.m=this.g=this.w=NaN;this.a=new ym;this.B=new Cm};_.Fm=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:[]}};_.Lm=function(a){this.f=a;this.a=void 0};Nm=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Mm.value().get(b),c.one(a,b,d))};
198
- Rm=function(a){this.h=new _.I("clpp.StateManager");this.l=a;this.a=new _.eg;this.f=_.Om;this.A=_.Pm;this.I=0;this.w=-1;this.M=this.o=this.J=this.B=0;this.j=this.m=this.F=!1;this.H=0;this.g=null;this.K=0;this.N=_.gj();this.D=!1;this.J=Date.now();Qm(this)};Sm=function(a,b){return Object.keys(b)[a]};
199
- Um=function(a,b){var c={type:_.re};b===_.wc||b===_.vc?(c.reason=a.w,b===_.wc?c.timeSinceLastStateChangeMS=a.I:c.bufferedTimeMS=a.B):(a.f===_.Tm&&(c.reason=a.w),a.A===_.Tm&&(c.reason=a.w,c.bufferedTimeMS=a.B),c.currentState=a.f,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.I);return c};
200
- Ym=function(a,b){if(a.f===b)return!1;var c=Date.now(),d=a.f===_.Tm;a.A=a.f;a.f=b;a.A===_.Vm&&(a.J=c,a.o=0);a.o||(a.o=a.J||c);a.I=c-a.o;a.o=c;b===_.Tm?(a.M=a.o,a.w=a.m?1:2,a.h.info("Buffering started. Reason: "+Sm(a.w-1,_.Wm)),c=Um(a,_.wc),a.Xb(_.wc,c)):d&&(a.B=a.o-a.M,a.h.info("Buffering finished. Reason: "+Sm(a.w-1,_.Wm)+". Buffering time: "+a.B+" ms"),c=Um(a,_.vc),a.Xb(_.vc,c));c=Sm(a.A,_.Xm);d=Sm(a.f,_.Xm);a.h.info(_.eb+c+" -\x3e "+d);a.Xb(_.re,Um(a,""));return!0};
201
- cn=function(a,b){if(a.f===_.Zm)a.h.warn("Player is in error state, aborting any further state checks");else{var c=a.l.isPaused();var d=a.l.getPosition();var e=a.l.getDuration();if(d=a.l.isEnded()||a.f===_.Vm&&1>=Math.abs(d-e)||c&&d>=e)Ym(a,_.Vm)&&a.h.debug("Player claims to be in ended state, not checking more");else if(b!==_.Fe){e=a.l.getPosition();e=null!==e&&void 0!==e&&0<=e?a.l.getBufferInfo().Ja(e,!0):-1;a.H=e;e=a.l.getSurface().getMedia();a.g=e?e.readyState:null;a.K=a.l.getPlaybackRate()||1;
202
- e=typeof a.g===_.k&&2>a.g&&2===e.networkState;var f=typeof a.g===_.k&&0>=a.H&&a.f===_.Om,g=typeof a.g===_.k&&2>=a.g&&a.j;e=a.m||f||e||g;!a.N||a.l.isLive()||a.f!==_.Tm||e||(f=b===_.le&&4===a.g,(g=a.A===_.$m)&&!a.D?e=!0:g||a.D||f||(e=!0));f=!1;e?f=Ym(a,_.Tm):c?f=Ym(a,_.an):a.F&&(f=Ym(a,_.bn));f&&(a.D=!1);a.h.debug("Video state check for event "+b+":: seeking: "+a.m+", waiting: "+a.j+", playing: "+a.F+", paused: "+c+", readyState: "+a.g+", rate: "+a.K+", buffer: "+a.H+", ended: "+d+". Changed state: "+
203
- f+", Current state: "+Sm(a.f,_.Xm))}}};
204
- Qm=function(a){function b(d){return cn(a,d.type)}a.h.debug("Start watching for video events for "+a.l.namespace());var c=a.l;a.a.on(c,_.id,function(){a.j=!1;Ym(a,_.Vm)});a.a.on(c,xc,b);a.a.on(c,_.$d,function(){a.F=!0;a.j=!1;cn(a,_.$d)});a.a.on(c,_.Vd,function(){a.F=!1;a.j=!1;cn(a,_.Vd)});a.a.on(c,_.Fe,b);a.a.on(c,_.ee,b);a.a.on(c,_.le,function(d){a.m=!1;a.j=!1;cn(a,d.type)});a.a.on(c,_.me,function(d){a.m=!0;cn(a,d.type)});a.a.on(c,pe,b);a.a.on(c,_.Ze,function(){a.j=!0;cn(a,_.Ze)});a.a.on(c,_.jd,function(d){return a.U(d)});
205
- a.a.on(c,_.xd,b);a.a.on(c,yc,function(){a.D=!0;cn(a,yc)});a.a.on(c,_.Ne,function(d){a.m=!0;cn(a,d.type)});a.a.on(c,_.Me,function(d){a.m=!1;a.j=!1;cn(a,d.type)})};dn=function(a){a=(new _.Pg(a)).Ba;if(!a)return null;a=a.toUpperCase();return _.Gh(a,".MPD")?_.fc:_.Gh(a,".M3U8")?_.Kj:_.Gh(a,".MP4")?_.Te:_.Gh(a,"MANIFEST")||_.Gh(a,".ISM")?_.kc:null};
206
- _.fn=function(a){var b;_.jk(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.ve||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=en(b[c]);d&&a.push(d)}return a};
207
- en=function(a){var b=null;_.K.$(a)&&(a={url:a});typeof a===_.Ld&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.K.R(a.drmProtected)||typeof a.drmProtected!==_.uc||(b.drmProtected=a.drmProtected),_.K.R(a.isLive)||typeof a.isLive!==_.uc||(b.isLive=a.isLive),_.K.R(a.name)||typeof a.name!==_.ve||(b.name=a.name),_.K.R(a.Hb)||typeof a.Hb!==_.ve||(b.Hb=a.Hb),_.K.R(a.audioMimeType)||typeof a.audioMimeType!==_.ve||(b.audioMimeType=a.audioMimeType));b&&!b.type&&(b.type=dn(a.url),b.type?
208
- gn.debug("Detect media type "+b.type+" for "+a.url):gn.warn("Unable to detect media type for "+a.url));return b};hn=function(){_.kk.call(this,Mc);this.A=this.I=!1;this.m=this.B=this.o=this.a=this.j=null;this.g=new _.eg;this.H=this.F=this.f=this.J=null};
209
- ln=function(a,b){return a.A?jn():new Promise(function(c){a.a||(a.g.on(b,_.jd,function(){var d=kn(a);if(d)a.onError(d)}),a.g.on(b,_.je,function(){var d=b.videoWidth,e=b.videoHeight,f=a.getTrackManager();f&&0<d&&0<e&&(f.w={width:d,height:e});a.trigger(new _.J(_.tc,{detail:{width:d,height:e}}))}),a.a=b);c()})};mn=function(a){return a.A?jn():new Promise(function(b){if(a.a){var c=a.a;a.g.off(c,_.jd);a.g.off(c,_.je);a.a=null}b()})};
210
- on=function(a){var b,c,d,e,f;return _.B(function(g){if(1==g.a){if(a.A)return g["return"](jn());b=a.w[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=_.nn;d=_.xk(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.o=new _.Kl({Db:e,onError:function(h){return a.onError(h)},df:function(){},onExpirationUpdated:function(h,l){a.trigger(new _.J(_.$c,
211
- {expirationTime:l}))},onEvent:function(h){h instanceof _.J?a.dispatchEvent(h):a.log.debug(_.xb,h.type)},getConfiguration:function(){return a.getConfiguration()},Mc:function(){return a.Mc()}});a.o.g=d;f={id:0,language:_.Ie,primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:Promise.resolve.bind(Promise),findSegmentPosition:function(){return null},getSegmentReference:function(){return null},adjustSegmentDurations:function(){},getDuration:a.getDuration.bind(a),initSegmentReference:null,
212
- ta:0,mimeType:_.Te,codecs:"",encrypted:!0,keyId:null,language:_.Ie,originalLanguage:_.Ie,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,em:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,Ql:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.x(g,_.Pl(a.o,[f],[]),2)}return 3!=g.a?_.x(g,_.bm(a.o,a.a),3):g["return"](Promise.resolve())})};
213
- pn=function(a,b){Nm(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.g,function(){a.getState()!==_.Zm&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};kn=function(a){if(null===a.w||!a.a.error)return null;var b=a.a.error.code;if(1===b)return null;var c=a.a.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new _.L(_.M,3,3016,{code:b,Yl:c,message:a.a.error.message})};jn=function(){return Promise.reject(new _.L(_.M,7,7E3))};
214
- qn=function(a){if(a.A)return new _.gi(jn(),function(){});var b=a.w[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.J;c&&pn(a,c);if(d.preload!==_.Kd)a.g.one(d,_.xd,function(){var g=Date.now()/1E3-e;a.f.A=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.mi()||_.ni())&&d.load();var f=new _.fi;a.g.one(d,pe,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.F||(a.F=(new _.$i(function(){f.reject(new _.L(_.M,3,3100,{message:"Unable to load media source successfully from "+
215
- b.url,uri:b.url},d.error))})).aa(g))});Nm(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.g,function(){return f.resolve()});d.error?f.reject(kn(a)):d.preload===_.Kd&&(a.log.warn('With \x3cvideo preload\x3d"none"\x3e, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way. Please do not use preload\x3d"none" with PRESTOplay for Web Apps.'),f.resolve());a.g.one(d,_.jd,function(){f.reject(kn(a))});
216
- return new _.gi(f,function(){var g=new _.L(_.M,7,7001);f.reject(g);return Promise.resolve()})};
217
- rn=function(a,b){Nm(b,HTMLMediaElement.HAVE_CURRENT_DATA,a.g,function(){if(a.isLive()&&a.getState()!==_.Zm){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)}))}})};sn=function(){};
218
- _.vn=function(a){a&&(0<=tn.indexOf(a)?un.warn("Factory '"+a.name()+"' is already registered"):(tn.push(a),un.info("Factory "+a.name()+"' has been registered.")))};xn=function(a,b){var c=tn.find(function(d){return d.ba(a,b)});c||(c=new wn);un.info("Chosen ads: "+c.name());return c};_.yn=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};_.zn=function(a,b){a.classList.add(b)};
219
- _.An=function(a,b){if(a&&typeof b===_.Ld)for(var c in b)a.style[c]=b[c]};_.Bn=function(a){return document.createElement(a)};Cn=function(){this.a=null;this.g=new Set;this.f=null;this.set(null)};Dn=function(a,b){a.a&&0!==b.length&&(a.a.classList.add(b),a.g.add(b))};En=function(a,b){var c=new MutationObserver(function(){var d=Array.from(a.g.values());vg(Array.from(b.classList),Array.from(d))||b.classList.add.apply(b.classList,_.of(d))});c.observe(b,{attributes:!0,attributeFilter:["class"]});return c};
220
- In=function(a,b){this.h=new _.I("clpp.PlayerSurface");this.w=_.K.wa(Fn,b);this.f=new Cn;this.g=null;this.a=new Cn;this.m=Gn;Gn+=1;this.o="clpp-video-"+this.m;this.j=new _.eg;if(null==a)throw new _.L(_.M,7,7102,"No Media element was provided");if(a instanceof Element)var c=a;else if(c=document.getElementById(a),!c)throw new _.L(_.M,7,7004,"Media element not found");var d=this.w;this.h.debug("Initializing Player Surface on ",c);if("cast-media-player"===c.tagName.toLowerCase())this.g=c;else{if(!(c instanceof
221
- HTMLMediaElement))throw new _.L(_.M,7,7005,"Media element is not instance of HTMLMediaElement");if(!c.hasAttribute("crossorigin")){var e=d.crossorigin;this.h.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 _.L(_.M,7,7006,"Container element is not a direct parent of media element");e=d.containerEl}else{e=document.createElement(_.Zc);c.parentNode?c.parentNode.replaceChild(e,
222
- c):this.h.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=_.u(f);for(g=f.next();!g.done;g=f.next())g=g.value,c.classList.remove(g),_.zn(e,g);e.style.cssText=c.style.cssText;c.removeAttribute(_.xe);f=_.u([_.ff,_.md]);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+_.de);_.mi()||c.removeAttribute(g)}e.appendChild(c)}e&&
223
- (this.a.set(e),Dn(this.a,"clpp-container"),Dn(this.a,this.o),Dn(this.f,_.Hc),Dn(this.f,"clpp-video"));d.webOSStartupPatch&&Hn(this,c,e)}};Hn=function(a,b,c){(_.ni()&&53===dj().major||_.ni()&&68===dj().major||_.ej())&&!b.hasAttribute(Vc)&&(b.style.opacity="0",b.setAttribute(Vc,""),a.j.one(b,ed,function(){b.removeAttribute(Vc);b.style.opacity="1";c&&(c.style.opacity="1")}))};Kn=function(a){this.l=a;this.j=this.l.getNetworkEngine();this.a=new _.eg;this.g=null;this.f=!0;Jn(this)};
224
- Jn=function(a){a.a.on(window,"offline",function(){Ln(a,!1)});a.a.on(window,"online",function(){a.f||Mn(a)});a.a.on(a.l,pe,function(){return Nn(a)});a.a.on(a.l,"suspend",function(){return Nn(a)});a.a.on(a.l,_.Ze,function(){return Nn(a)});a.a.on(a.l,_.$d,function(){a.f||Mn(a)});a.a.on(a.l,_.ce,function(){a.f||Mn(a)});a.a.on(a.l,_.re,function(){switch(a.l.getState()){case _.Tm:Nn(a);break;default:Nn(a)}})};Mn=function(a){a.l.getConfiguration().connectivityCheck&&(On(a),a.g=(new _.$i(function(){return Pn(a)})).aa(5))};
225
- Nn=function(a){a.f&&Mn(a)};On=function(a){a.g&&(a.g.stop(),a.g=null)};Pn=function(a){var b,c;return _.B(function(d){if(1==d.a)return(b=a.l.getConfiguration().connectivityCheck)&&a.l?_.x(d,ti(a.j,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;Ln(a,c);_.y(d)})};Ln=function(a,b){On(a);a.f!==b&&(a.f=b,a.l&&a.l.getConfiguration().connectivityCheck&&a.l.trigger(new _.J(Rd,{online:a.f})))};Rn=function(){for(var a=0;a<Qn.length;++a)Qn[a].Dc()};
226
- _.Sn=function(a,b){b=b||0;for(var c={priority:b,Dc:a},d=0;d<Qn.length;d++)if(Qn[d].priority<b){Qn.splice(d,0,c);return}Qn.push(c)};Tn=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};Un=function(a,b,c){this.g=a;this.f=b;JSON.parse(_.yh(_.Ph(a)));this.a=JSON.parse(_.yh(_.Ph(b)));this.j=c};Vn=function(a){this.license=a;this.a=null;this.h=new _.I("clpp.utils.LicenseKey")};
227
- Wn=function(a){if(!a.a){var b=a.license.split(".");if(3!==b.length)throw Error("Expected to find 3 data sections in JWT raw data");b=new Un(b[0],b[1],b[2]);a.a=b}return a.a};Xn=function(a){switch((a.Vd()[0]||{src:"",type:""}).type){case _.fc:a="dash";break;case _.kc:a="ss";break;case _.Kj:a="hls";break;case _.Te:a=_.Gd;break;default:a=""}return a};Yn=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};
228
- Zn=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};$n=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};bo=function(a){var b=a.getConfiguration(),c="no";b.drm&&!_.K.pa(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(dd)||ao(a).endsWith("drmtoday.com"))&&(c=dd);return c};
229
- co=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.keySystem){case _.Tc:b="wv";break;case _.Sc:b="pr";break;case _.Rc:b="fps"}return b};eo=function(a){a=a.getDrmInfo();var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};fo=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.videoRobustness){case La:case "HW_SECURE_ALL":b="L1";break;case Ka:b="L2";break;case _.mb:case _.lb:b="L3"}return b};ao=function(a){a=a.getDrmInfo();return(new _.Pg(a&&a.licenseServerUri||"")).Ka};
230
- io=function(a,b){var c="ie"===_.oi().browser,d=b.getConfiguration(),e=_.of(Array.from(_.lk.keys())).concat(_.of(b.tj()));d={"CL-KEY":a.license,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ea,"CL-USER-ID":Yn(d),"CL-ASSET-ID":Zn(d),"CL-SESSION-ID":$n(d),"CL-PLAYBACK-TYPE":b.isLive()?go:ho,"CL-CONTENT-TYPE":Xn(b),"CL-PLUGINS":e.join(" "),"CL-DRM":bo(b),"CL-DRM-CDM":co(b),"CL-DRM-SEC-LEVEL":fo(b),"CL-DRM-OFFLINE":eo(b),"CL-DRM-IP":ao(b)};c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=
231
- e);e=_.ai(["https://downloads.castlabs.com/r/register/"]);e.method="GET";e.headers=d;return(new _.ri).fetch(e).P.then(function(f){200===f.status&&c&&window.localStorage.setItem("cl_et",f.headers.etag);return Promise.resolve()})["catch"](function(f){a:{var g=Wn(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=
232
- h+(": "+l)}else f=l+"!";l=f;break;case 412:g=7103;l="License requires a viewer ID. It should be supplied either via the `viewerId` config or in case of DRMtoday via the `drm.customData.userID` config.";break;default:f=Promise.resolve();break a}a.h.error(Sa+l);f=Promise.reject(new _.L(_.M,7,g,l))}}return f})};
233
- V=function(a,b,c){_.ak.call(this);var d=this;Rn();this.h=new _.I("clpp.Player");if(!a)throw new _.L(_.M,7,7102);this.A=new _.eg;this.f=this.T=b||_.gk();this.m=null;void 0===this.f.license&&(this.f.license=ek,this.h.warn("You are using the embedded demo license!"));if(!this.f.license)throw this.h.error("You provided null or empty string as your license. Please check your license configuration."),new _.L(_.M,7,7101,"No license provided in configuration!");this.g=new In(a,c);this.a=this.w=null;this.H=
234
- new _.ri;this.j=null;this.K=[];this.M={};this.o=null;this.I=!0;this.J=this.F=!1;this.D=this.Ic=null;this.Ce=!1;this.V=new Kn(this);this.N=!1;this.B=function(f){(f=f.detail)&&f.currentState===_.bn&&(d.off(_.re,d.B),jo(d))};this.on(_.re,function(){d.getState()===_.Zm&&d.unload()});this.on(_.ac,this.Eg.bind(this));this.on(_.$b,this.Eg.bind(this));ko(this,this.f.license);this.g.getMedia()&&(a=this.g.getMedia(),a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),this.h.debug("Removed autoplay attribute from video element. Auto play will be handled by configuration."),
235
- void 0===this.f.autoplay&&(this.f.autoplay=!0,this.h.debug("Setting autoplay in configuration since it was specified in the video element"))));a=[];b=_.u(lo);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.h.error("Error while creating player plugin",f)}}mo(this,a);_.lk.clear()};_.no=function(a,b){b!==a.a&&(a.a&&(a.a.removeDelegate(a),a.a.destroy()),a.a=b,a.a&&(a.a.init(a.g,a.f),a.a.setNetworkEngine(a.getNetworkEngine()),a.a.addDelegate(a)))};
236
- ko=function(a,b){a.w=new Vn(b);a.w.verify()["catch"](function(c){setTimeout(function(){a.h.error(Sa+c);a.trigger(new _.J(_.jd,{detail:new _.L(_.M,7,7101)}));a.destroy()},1E3)})};
237
- jo=function(a){if(!a.N){a.N=!0;a.g.getMedia()||a.g.getCastElement();a.w||(a.w=new Vn(a.f.license));var b=Object.keys(a.M);io(a.w,{getConfiguration:a.getConfiguration.bind(a),Vd:a.Vd.bind(a),getDrmInfo:a.getDrmInfo.bind(a),tj:function(){return b},isLive:a.isLive.bind(a)}).then(function(){a.h.debug("License verified remotely")})["catch"](function(c){setTimeout(Tn,1E3,{release:a.release.bind(a),destroy:a.destroy.bind(a),onError:a.onError.bind(a)},c)})}};
238
- mo=function(a,b){a.K=b;for(var c=_.u(a.K),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.id();e&&(a.M[e]=d)}a.kc("onPlayerCreated")};
239
- oo=function(a){var b,c;return _.B(function(d){if(1==d.a){if(a.I)return a.h.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.off(_.re,a.B);a.A.off(a,_.re,a.B);a.A.off(document,Xe);a.trigger(new _.J(_.ge));a.N=!1;a.g&&a.g.release();return a.j?_.x(d,a.j.dispose(),3):d.G(2)}2!=d.a&&(a.j=null);pk(function(e){e.release()});if(a.a)return b=null,c=a.a.on(_.re,function(e){b=e}),d["return"](a.kc(_.Pd).then(function(){a.a.removeDelegate(a);return Promise.all([a.a.release(),
240
- a.H.release()])}).then(function(){a.h.debug("Releasing player completed");b&&(a.h.debug("Re-post state change event after release"),a.trigger(b))})["finally"](function(){a.a.off(_.re,c);a.trigger(new _.J(fe))}));a.trigger(new _.J(fe));return d["return"](new Promise(function(e){return e()}))})};
241
- po=function(a,b,c){return new Promise(function(d,e){var f;if(b){for(var g=f=null,h=0;h<b.length;h++);h=Object.values(_.Yf);for(var l=0;l<b.length;l++)for(var m=0;m<h.length;m++){var n={Mb:h[m],confidence:h[m].canPlay(b[l],c)};if(null===f||f.confidence<n.confidence)f=n,g=l}f&&typeof g===_.k&&0<f.confidence?(_.Zf.debug("Player Factory '"+f.Mb.a()+"' can play",b[g]),f=new Wf(f.Mb,g)):(_.Zf.error("No compatible Player Factory found for sources:",b),f=null)}else f=null;f?(g=f.Mb.create(),d(new Xf(g,f.a))):
242
- (f=new _.J(_.jd,{detail:new _.L(_.M,7,7003)}),a.trigger(f),e(f))})};
243
- _.ro=function(a,b){var c,d,e,f;return _.B(function(g){switch(g.a){case 1:if(a.F)throw Error("Player is already destroyed.");if(!a.g)throw Error("No surface associated with this player!");return _.x(g,a.release(),2);case 2:a.o=_.fn(b);c=_.jk(b);a.f=_.ik(a.T,c?b:{},{source:a.o});if(0===a.o.length)throw Error("Invalid request to load: could not find source to load");a.I=!1;e=0;if(!a.J&&2===a.canPlay(a.o[0],a.f)){g.G(3);break}return _.x(g,po(a,a.o,a.f),4);case 4:f=g.f,d=f.a,e=f.f,a.J=!1;case 3:d?_.no(a,
244
- d):a.a.addDelegate(a);qo(a);a.a&&a.a.setCdnErrorCallback(a.D);a.j=xn(a,a.f).create(a);a.setSourceIndex(e);if(a.f.pauseWhenInBackground)a.A.on(document,Xe,function(){document.hidden?(a.h.debug("Player is hidden: pausing..."),a.pause()):(a.h.debug("Player is visible: resuming..."),a.play())});pk(function(h){h.ac()});return _.x(g,a.kc("onContentWillLoad",a.f.source[e]),0)}})};
245
- _.so=function(a){return _.B(function(b){a.g.getMedia()||a.g.getCastElement();a.A.on(a,_.re,a.B);a.trigger(new _.J(yd));return _.x(b,Promise.all([a.a.load(a.f),a.j.load()]),0)})};to=function(a){var b=_.tg(a.f.preferredTextLanguage).filter(function(d){return d}),c=a.getTrackManager().ia();b.some(function(d){var e=_.ih(d);return(d=c.find(function(f){f=_.ih(f.language||"");return _.jh(f,e)}))?(a.getTrackManager().Ga(d),!0):!1})};
246
- _.uo=function(a){var b,c,d,e;return _.B(function(f){if(1==f.a){b=[];if(a.f.remoteTextTracks)for(c=_.u(a.f.remoteTextTracks),d=c.next();!d.done;d=c.next())e=d.value,b.push(a.getTrackManager().addTextTrack(e));return _.x(f,Promise.all(b),2)}return 3!=f.a?(to(a),pk(function(){}),_.x(f,a.kc("onContentLoaded"),3)):a.f.autoplay?_.x(f,a.play(),0):f.G(0)})};qo=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.B(function(c){if(!a.Ic||!a.Ce)return c.G(0);a.Ce=!1;return _.x(c,a.Ic(b),0)})})};
247
- _.vo=function(a){a&&(0<=lo.indexOf(a)||lo.push(a))};wo=function(){};xo=function(){};yo=function(){};zo=function(){};wn=function(){};Ao=function(){};_.Bo=function(){};Co=function(){this.a=null;this.h=new _.I("clpp.drm.eme.StandardEmeManager")};Do=function(){};Eo=function(){this.size=0;this.a=void 0;this.h=new _.I("clpp.drm.eme.MediaKeyStatusMap")};Fo=function(a,b){a.size=void 0===b?0:1;a.h.debug("Setting key status to",b);a.a=b};Go=function(){};Ho=function(){};Io=function(){this.a=this.f=null};
248
- Jo=function(a,b){this.keySystem=a;if(a.startsWith(_.Rc))for(var c=_.u(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.ie)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.Sd,distinctiveIdentifier:_.Sd,initDataTypes:e.initDataTypes,sessionTypes:[Be],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var h=_.u(e.audioCapabilities),l=h.next();!l.done;l=h.next())l=l.value,l.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&
249
- (d.audioCapabilities.push(l),g=!0));if(e.videoCapabilities)for(e=_.u(e.videoCapabilities),l=e.next();!l.done;l=e.next())h=l.value,h.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,h.contentType.split(";")[0])&&(d.videoCapabilities.push(h),g=!0));f||(g=WebKitMediaKeys.isTypeSupported(this.keySystem,_.Te));d=g?d:null}if(d){this.a=d;return}}c=Error(zb);c.name=bb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
250
- Ko=function(a){this.f=null;this.g=new WebKitMediaKeys(a);this.a=new _.eg;this.j=0;this.h=new _.I(Lc);this.h.info("Created Media Keys for "+a)};
251
- Lo=function(a,b){a.f=b;_.hg(a.a);if(!b)return Promise.resolve();a.a.on(b,fd,function(c){_.Uf("AppleEmeManager.cancelNativeMediaEncryptedEvent_",c);"MediaEncryptedEvent"in window&&c instanceof MediaEncryptedEvent&&(a.h.info("Cancel native MediaEncryptedEvent when using Apple-prefixed EME"),c.stopImmediatePropagation())});a.a.on(b,ef,function(c){a.h.debug("Handle webkitNeedKey event");c=_.N(c.initData);if(_.vh(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");
252
- c=_.Ah(c.subarray(4),!0);c=_.Ch(c);var d=new Event(fd);d.initDataType="skd";d.initData=wh(c);a.f.dispatchEvent(d)});Nm(b,HTMLMediaElement.HAVE_METADATA,a.a,function(){return b.webkitSetMediaKeys(a.g)});return Promise.resolve()};Mo=function(a,b){_.ak.call(this);this.a=null;this.o=a;this.f=this.g=null;this.j=new _.eg;this.sessionId=b;this.expiration=NaN;this.closed=new _.fi;this.m=!1;this.keyStatuses=new Eo;this.h=new _.I(Lc)};No=function(a,b){Fo(a.keyStatuses,b);a.dispatchEvent(new _.J(qd))};Oo=function(){};
253
- Po=function(){this.f=this.a=null;this.g="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.g="webkit")};
254
- Qo=function(a,b,c,d){this.g=a;this.a=this.keySystem=c;a=!1;c===_.Td&&(this.a=af,a=!1);var e=!1;d=_.u(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=[],h=[],l=!1;if(f.audioCapabilities)for(var m=_.u(f.audioCapabilities),n=m.next();!n.done;n=m.next())n=n.value,n.contentType&&(l=!0,b.canPlayType(n.contentType.split(";")[0],this.a)&&(g.push(n),e=!0));if(f.videoCapabilities)for(g=_.u(f.videoCapabilities),n=g.next();!n.done;n=g.next())m=n.value,m.contentType&&(l=!0,b.canPlayType(m.contentType,
255
- this.a)&&(h.push(m),e=!0));l||(e=b.canPlayType(_.Te,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.ie||a||(e=!1);if(e){this.f=f;return}}b=zb;if(c===_.Td||c===_.Tc)b="None of the requested configurations were supported.";c=Error(b);c.name=bb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};Ro=function(a,b){this.g=a;this.o=b;this.a=null;this.f=new _.eg;this.j=[];this.m=new Map};
256
- Uo=function(a,b){a.a=b;_.hg(a.f);b&&(a.f.on(b,a.g+"needkey",function(c){var d=new Event(fd);d.initDataType=_.Cc;d.initData=wh(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.g+"keymessage",function(c){var d=So(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.J(Bd,{messageType:e?td:sd,message:c.message});_.Uf("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.Vf("Session not found",c.sessionId)}),a.f.on(b,a.g+"keyadded",function(c){if(c=
257
- So(a,c.sessionId))_.Uf("WebkitEmeManager.MediaKeySession.ready"),To(c,"usable"),c.a&&c.a.resolve(),c.a=null}),a.f.on(b,a.g+"keyerror",function(c){var d=So(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?To(d,_.Ud):1===e?To(d,"expired"):
258
- To(d,_.pd))}}))};So=function(a,b){var c=a.m.get(b);return c?c:(c=a.j.shift())?(c.sessionId=b,a.m.set(b,c),c):null};Vo=function(a,b,c,d){_.ak.call(this);this.w=a;this.j=b;this.o=!1;this.a=this.f=null;this.g=c;this.m=d;this.sessionId="";this.expiration=NaN;this.closed=new _.fi;this.keyStatuses=new Eo};
259
- Xo=function(a,b,c){if(a.o)return Promise.reject(Error("The session is already initialized."));a.o=!0;try{if(a.m===_.Xd)if(c)var d=_.N(_.Ch("LOAD_SESSION|"+c));else{var e=_.Ch("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.N(b),e.byteLength);d=f}else d=_.N(b)}catch(h){return Promise.reject(h)}a.f=new _.fi;var g=Wo(a,"generateKeyRequest");try{a.j[g](a.g,d)}catch(h){if(h.name!==Pa)return a.f=null,Promise.reject(h);(new _.$i(function(){try{a.j[g](a.g,d)}catch(l){a.f.reject(l),
260
- a.f=null}})).aa(.01)}return a.f};Yo=function(a,b,c){if(a.a)a.a.then(function(){return Yo(a,b,c)})["catch"](function(){return Yo(a,b,c)});else{a.a=b;if(a.g===af){var d=_.yh(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=_.Ph(e.keys[0].k);e=_.Ph(e.keys[0].kid)}else d=_.N(c),e=null;var f=Wo(a,"addKey");try{a.j[f](a.g,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};To=function(a,b){Fo(a.keyStatuses,b);a.dispatchEvent(new _.J(qd))};
261
- Wo=function(a,b){return a.w?a.w+b.charAt(0).toUpperCase()+b.slice(1):b};Zo=function(){};
262
- $o=function(a,b,c,d,e){_.Ak.call(this,Ma);this.m=a;this.j=b;this.g=c;this.a=d;this.o=e;this.h=new _.I(Kc);_.Ih(this.m)?this.h.warn(_.Db):this.Sa(_.Tc,{licenseUrl:this.m,videoRobustness:[_.mb,void 0],audioRobustness:[_.lb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.ud.bind(this)}});_.Ih(this.j)?this.h.warn(_.cb):this.Sa(_.Sc,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.ud.bind(this)}});
263
- _.Ih(this.g)?this.h.warn(_.Ia):_.Ih(this.a)?this.h.warn(_.Ha):this.Sa(_.Rc,{licenseUrl:this.g,certificateUrl:this.a,modifiers:{licenseRequest:this.Ig.bind(this),licenseResponse:this.Jg.bind(this),certificateRequest:this.ud.bind(this),extractContentId:this.fg.bind(this)}})};ap=function(){this.l=null};bp=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.ld)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
264
- cp=function(a){a=a.target;if(a.webkitPresentationMode===Yd){document.pictureInPictureElement=a;var b=new Event("enterpictureinpicture");a.dispatchEvent(b)}else document.pictureInPictureElement===a&&(document.pictureInPictureElement=null),b=new Event("leavepictureinpicture"),a.dispatchEvent(b)};dp=function(){return this.webkitSupportsPresentationMode(Yd)?(this.webkitSetPresentationMode(Yd),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
265
- ep=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};fp=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};gp=function(a,b,c){return new window.TextTrackCue(a,b,c)};
266
- hp=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};jp=function(a,b,c){if("input"===a)switch(this.type){case "range":a=Fc}ip.call(this,a,b,c)};lp=function(){this.a=kp()};mp=function(a){return kp()-a.a};np=function(a){var b=new lp;b.a=a.a;return b};kp=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};_.op=function(a){var b=[];a=_.u(a);for(var c=a.next();!c.done;c=a.next()){c=_.u(c.value.variants);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};
267
- pp=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.g=b;this.f=0};qp=function(a,b){var c=a.f+b.byteLength;if(c>a.a.byteLength){var d=a.a;a.a=new Uint8Array(Math.max(Math.ceil(a.a.buffer.byteLength*a.g),c));a.a.set(d)}a.a.set(b,a.f);a.f+=b.byteLength};_.rp=function(a,b,c){this.f=a;this.j=b;this.g=c||this.f.getMedia();this.a=null};_.tp=function(){this.a=new Blob([sp],{type:_.Te})};
268
- _.vp=function(a,b,c,d){var e,f;return _.B(function(g){if(1==g.a)return _.Bf(g,2),_.x(g,up(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.Df(g);f.a(_.M);throw f;})};
269
- up=function(a,b,c,d){var e,f,g,h;return _.B(function(l){if(1==l.a){if(d){if(e=_.wp[d.toLowerCase()])return l["return"](e);_.G("Could not determine manifest type using MIME type ",d)}if(f=_.xp(a)){if(g=_.yp[f])return l["return"](g);_.G("Could not determine manifest type for extension ",f)}else _.G("Could not find extension for ",a);return d?l.G(2):_.x(l,zp(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(h=_.wp[d])return l["return"](h);_.G("Could not determine manifest type using MIME type",d)}throw new _.L(_.M,4,
270
- 4E3,{url:a});})};zp=function(a,b,c){var d,e,f;return _.B(function(g){if(1==g.a)return d=_.ai(a),Zh(d,c),d.type=1,d.method="HEAD",_.x(g,b.fetch(d).P,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.xp=function(a){a=(new _.Pg(a)).Ba.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()};Ap=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.g=new lp};
271
- Cp=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(Bp(a,d),di(c,d.byteLength,mp(a.g)),a.g.a=kp());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 Cp(a,b,c)})})};Bp=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};
272
- pi=function(a){var b=a.uris[a.uriIndex],c=new Dp,d=new lp,e=np(d),f=0,g,h=new _.fi;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=mp(e));p.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!l&&(p=p.getResponseHeader(ra),ci(a,p),l=!0)};c.onload=function(p){p=p.target;var q=(p.getAllResponseHeaders()||"").trim().split("\r\n"),r={};
273
- q=_.u(q);for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),r[v[0].toLowerCase()]=v.slice(1).join(": ");try{var z=mp(e);m||di(a,p.response?p.response.length:0,z);var A=_.bi(r,p.response,p.status,b,p.responseURL,a,z,g);a.rateLimitBps?ei(a.rateLimitBps,mp(e),a.bytesLoaded).then(function(){h.resolve(A)}):h.resolve(A)}catch(D){h.reject(D)}};c.onerror=function(p){p=p.target;if(0>=p.status)h.reject(new _.L(1,1,1002,{url:b,request:a,status:p.status}));else{var q=p.getAllResponseHeaders(),r={};if(q){q=
274
- _.u(q.trim().split("\r\n"));for(var v=q.next();!v.done;v=q.next())v=v.value.split(": "),r[v[0].toLowerCase()]=v.slice(1).join(": ")}p=_.bi(r,p.response,p.status,b,p.responseURL,a,mp(e),g);h.resolve(p)}};c.ontimeout=function(){h.reject(new _.L(1,1,1003,{url:b,request:a}))};c.onprogress=function(p){var q=mp(d);d.a=kp();if(100<q||p.lengthComputable&&p.loaded===p.total)di(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{P:h,
275
- request:a,abort:function(){c.abort();h.reject(new _.L(1,1,7001,{url:b,request:a}));return Promise.resolve()}}};Ep=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.j=new pp(a);this.length=a;this.A=b;this.f=this.a=this.g=0;this.m=null;this.o=-1;this.w=new lp};
276
- Hp=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,mp(a.w)),a.w.a=kp());if(f)return f=Fp(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){qp(a.j,e);a.a=a.g;a.f=a.j.f;a.m=new DataView(a.j.a.buffer,0,a.j.f);e=Gp(a);for(f=[];e;)f.push(e),e=Gp(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],
277
- 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 Hp(a,b,c,d)})})};Gp=function(a){if(0<=a.o&&a.f<a.o)return null;for(var b=Ip(a);null!==b;){if(b.name===_.zd){var c={start:a.g,end:b.end,length:b.end-a.g,data:new DataView(a.j.a.buffer,a.g,b.end-a.g),count:1};a.g=b.end;return c}b=Ip(a)}return null};
278
- Ip=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=Jp(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=Jp(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.m.getUint32(a.a,!1);var f=a.m.getUint32(a.a+4,!1)}catch(g){throw new _.L(_.M,3,3E3);}if(2097151<e)throw new _.L(_.M,3,3E3);a.a+=8;c=e*Math.pow(2,32)+f}c=b+c;a.o=c;return a.f>=c?(a.a=c,{name:d,start:b,end:c}):null};
279
- Jp=function(a){var b=a.m.getUint32(a.a,!1);a.a+=4;return b};Fp=function(a){var b=null;a.g!==a.f&&(b={start:a.g,end:a.f,length:a.f-a.g,data:new DataView(a.j.a.buffer,a.g,a.f-a.g),count:-1});return b};Lp=function(a){_.gi.call(this,new _.fi,function(){return Promise.resolve()});this.B=a;this.g=null;this.w=this.P;this.f=-1;this.j=this.m=this.o=null;Kp(this)};Mp=function(a,b,c){a.o=setTimeout(b,c)};
280
- Kp=function(a){a.g=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=Np(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*Np(e.request.fuzzFactor,.5));a.f*=Np(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,h){a.m=h;Mp(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.L(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
281
- return e.plugin(e.request)});var b=0,c=0,d=0;return a.g.then(function(e){var f=e.request;f.currentAttempt+=1;b=f.currentAttempt;c=f.maxAttempts;d=f.uris.length;return e.P}).then(function(e){a.w.resolve(e)})["catch"](function(e){if(e instanceof _.L){var f=b<d,g=7001!==e.code,h=b<c;if((1===e.severity||f)&&g&&h)return Kp(a);g&&e.a(_.M);a.w.reject(e)}else a.w.reject(e)})};Np=function(a,b){return null===a||void 0===a?b:a};
282
- qi=function(a){var b=new Op,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new Pp,e={cd:!1,lh:!1};b={P:Qp(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.cd||(e.cd=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.lh=!0;d.abort()},a);b.P=b.P["finally"](function(){window.clearTimeout(f)})}return b};
283
- Qp=function(a,b,c,d){var e,f,g,h,l,m,n,p,q,r,v,z,A,D,F,E;return _.B(function(H){switch(H.a){case 1:return e=Rp,l=new lp,m=np(l),_.Bf(H,2),_.x(H,e(a,c),4);case 4:f=H.f;h=mp(l);n=f.headers.get(ra);ci(b,n);p=n?parseInt(n,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return v=f.body.getReader(),z=new Ep(p,!b.disableMergedFragments),A=function(Q,O){if(d.cd)return null;O&&O.data&&(di(b,O.data.byteLength,mp(l)),l.a=kp());return b.onFragment&&O?b.rateLimitBps?ei(b.rateLimitBps,mp(m),b.bytesLoaded).then(function(){return b.onFragment(O)}):
284
- b.onFragment(O):null},_.x(H,Hp(z,v,A,b.onProgress),10);q=f.body.getReader();r=new Ap(p);return _.x(H,Cp(r,q,b),7);case 7:g=H.f;if(!b.rateLimitBps){H.G(6);break}return _.x(H,ei(b.rateLimitBps,mp(m),g.byteLength),6);case 10:g=H.f;case 6:_.Cf(H,3);break;case 2:D=_.Df(H);if(d.cd)throw new _.L(1,1,7001,{url:a,request:b});if(d.lh)throw new _.L(1,1,1003,{url:a,request:b});_.Vf("Error while fetching data:",D);throw new _.L(1,1,1002,{url:a,error:D,request:b,status:-1},D);case 3:F={};E=f.headers;E.forEach(function(Q,
285
- O){F[O.trim()]=Q});if(d.cd)throw new _.L(1,1,7001,{url:a,request:b});return H["return"](_.bi(F,g,f.status,a,f.url,b,mp(m),h))}})};li=function(a){try{var b=a.uris[a.uriIndex],c=_.Sp(b);return{P:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{P:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
286
- _.Sp=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.Vf("Bad data URI, failed to parse scheme"),new _.L(_.M,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.Vf("Bad data URI, failed to extract encoding and MIME type"),new _.L(_.M,1,1004,{uri:a});var c=b[0];a=window.decodeURIComponent(b.slice(1).join(","));b=c.split(";");c=b[0];var d=!1;1<b.length&&"base64"===b[b.length-1]&&(d=!0,b.pop());return{data:d?_.Ph(a).buffer:_.Ch(a).buffer,contentType:c}};_.Up=function(a){delete _.Tp[a]};
287
- _.Vp=function(a){a=a.getConfiguration();a=_.K.Ua(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.ve?a.backgroundColor:null;this.V=typeof a.windowColor===_.ve?a.windowColor:null;this.N=typeof a.fontColor===_.ve?a.fontColor:null;this.T=typeof a.fontFamily===_.ve?a.fontFamily:null;this.I=typeof a.fontSize===_.ve?a.fontSize:null;this.B=typeof a.fontSizePercent===_.k?a.fontSizePercent:null;this.H=typeof a.edgeColor===_.ve?a.edgeColor:"rgba(0, 0, 0, 1)";this.o=null;typeof a.edgeType===
288
- _.ve&&(this.o=a.edgeType)};_.$p=function(a){if(!a.o)return null;var b=a.H;switch(a.o){case Wp:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case Xp:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case Yp:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case Zp:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.Kd}};aq=function(a){this.f=a;this.a=null;this.h=new _.I("clpp.text.Mp4TextParser")};
289
- _.cq=function(a){_.Vp.call(this,a);this.m=a.getSurface().getMedia();this.f="clpp-video-"+bq++;this.g=document.createElement(_.xe);this.j=this.w=!1;_.zn(this.m,this.f);document.head.appendChild(this.g);this.sb()};dq=function(){};_.eq=function(){};pf=typeof Object.create==_.ld?Object.create:function(a){function b(){}b.prototype=a;return new b};
290
- if(typeof Object.setPrototypeOf==_.ld)fq=Object.setPrototypeOf;else{var gq;a:{var hq={sh:!0},iq={};try{iq.__proto__=hq;gq=iq.sh;break a}catch(a){}gq=!1}fq=gq?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
291
- var qf=fq,uf=typeof Object.defineProperties==_.ld?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},sf="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;vf.prototype.toString=function(){return this.a};var tf=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new vf("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
292
- yf.prototype.A=function(a){this.f=a};yf.prototype["return"]=function(a){this.g={"return":a};this.a=this.m};yf.prototype.G=function(a){this.a=a};
293
- Kf("Promise",function(a){function b(g){this.f=0;this.m=void 0;this.a=[];var h=this.g();try{g(h.resolve,h.reject)}catch(l){h.reject(l)}}function c(){this.a=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.f=function(g){if(null==this.a){this.a=[];var h=this;this.g(function(){h.m()})}this.a.push(g)};var e=sf.setTimeout;c.prototype.g=function(g){e(g,0)};c.prototype.m=function(){for(;this.a&&this.a.length;){var g=this.a;this.a=[];for(var h=0;h<g.length;++h){var l=
294
- g[h];g[h]=null;try{l()}catch(m){this.j(m)}}}this.a=null};c.prototype.j=function(g){this.g(function(){throw g;})};b.prototype.g=function(){function g(m){return function(n){l||(l=!0,m.call(h,n))}}var h=this,l=!1;return{resolve:g(this.D),reject:g(this.j)}};b.prototype.D=function(g){if(g===this)this.j(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.F(g);else{a:switch(typeof g){case _.Ld:var h=null!=g;break a;case _.ld:h=!0;break a;default:h=!1}h?this.B(g):this.o(g)}};
295
- b.prototype.B=function(g){var h=void 0;try{h=g.then}catch(l){this.j(l);return}typeof h==_.ld?this.H(h,g):this.o(g)};b.prototype.j=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.m=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.F=function(g){var h=this.g();
296
- g.Hd(h.resolve,h.reject)};b.prototype.H=function(g,h){var l=this.g();try{g.call(h,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,h){function l(q,r){return typeof q==_.ld?function(v){try{m(q(v))}catch(z){n(z)}}:r}var m,n,p=new b(function(q,r){m=q;n=r});this.Hd(l(g,m),l(h,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.Hd=function(g,h){function l(){switch(m.f){case 1:g(m.m);break;case 2:h(m.m);break;default:throw Error("Unexpected state: "+
297
- m.f);}}var m=this;null==this.a?f.f(l):this.a.push(l)};b.resolve=d;b.reject=function(g){return new b(function(h,l){l(g)})};b.race=function(g){return new b(function(h,l){for(var m=_.u(g),n=m.next();!n.done;n=m.next())d(n.value).Hd(h,l)})};b.all=function(g){var h=_.u(g),l=h.next();return l.done?d([]):new b(function(m,n){function p(v){return function(z){q[v]=z;r--;0==r&&m(q)}}var q=[],r=0;do q.push(void 0),r++,d(l.value).Hd(p(q.length-1),n),l=h.next();while(!l.done)})};return b});var Mf=this||self;
298
- Mf.a=!0;_.K={qh:20,Ua:function(a){var b=_.K.R,c=_.K.wg,d=_.K.wa;return b(a)||c(a)?a:d(a)}};_.C("clpp.utils.obj.cloneItem",_.K.Ua);_.K.wa=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];c={};for(var d=0;d<b.length;d++)null!=b[d]&&(c=_.K.zg(c,{merging:b[d]},1));return c.merging||null};_.C("clpp.utils.obj.merge",_.K.wa);_.K.Bj=function(a){for(var b in a)if(void 0!==a[b])return!0;return!1};
299
- _.K.zg=function(a,b,c){var d=_.K.R,e=_.K.wg,f=_.K.zg,g=_.K.nb,h=_.K.Lj,l=_.K.vg,m=_.K.Hj,n=_.K.Pc;c+=1;if(d(a)||!n(a))a={};for(var p in b)n=b[p],e(n)||d(n)||g(n)||m(n)?a[p]=n:h(n)?a[p]=n.subarray(0):n instanceof Array?a[p]=f([],n,c):!d(n)&&l(n)&&c<_.K.qh&&(a[p]=f(a[p],n,c));return a};_.K.wg=function(a){a=typeof a;return a===_.ve||a===_.k||a===_.uc};_.K.Hj=function(a){return a instanceof Element};_.K.R=function(a){return null===a||"undefined"===typeof a};_.K.Pc=function(a){return typeof a===_.Ld};
300
- _.K.nb=function(a){return typeof a===_.ld};_.K.$=function(a){return typeof a===_.ve};_.K.la=function(a){return typeof a===_.k};_.K.tg=function(a){return typeof a===_.uc};_.K.vg=function(a){var b=_.K.Pc,c=_.K.R;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.K.Lj=function(a){var b=_.K.Pc,c=_.K.nb;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
301
- _.K.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||!_.K.Pc(a)||!_.K.Pc(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var h=e[g];if(_.K.R(d)||0>d.indexOf(h))if(f[h]=!0,a[h]!==b[h])return!1}if(_.K.R(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.K.R(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
302
- _.K.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.K.Ij=function(a,b,c){return a>=b&&a<=c};_.K.Ff=function(a){for(var b=new Map,c=_.u(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b};_.K.Gf=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};var Qf={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.C("clpp.log.Level",Qf);var Of=3,Nf={},jq=[];_.C("clpp.log.getLoggers",function(){return _.K.Ua(Nf)});_.C("clpp.log.addInterceptor",function(a){a&&jq.push(a)});_.C("clpp.log.removeInterceptor",function(a){a&&(a=jq.indexOf(a),0<=a&&jq.splice(a,1))});_.C("clpp.log.getTagLevel",Pf);_.C("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Nf[a]});_.C("clpp.log.setTagLevel",function(a,b){a&&(_.K.$(b)&&(b=Rf(b)),Nf[a]=b)});
303
- _.C("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.K.$(a)&&(a=Rf(a));Of=a});_.C("clpp.log.getLogLevel",function(){return Of});_.t=_.I.prototype;
304
- _.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=Pf(this.tag);if(0<=d){if(d<c)return}else if(Of<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):
305
- 1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.u(jq);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)};
306
- _.t.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.t.Ti=function(a){return a?this.tag?new _.I(this.tag+"."+a):new _.I(a):this};_.C("clpp.log.Logger",_.I);_.I.prototype.createChild=_.I.prototype.Ti;_.I.prototype.error=_.I.prototype.error;_.I.prototype.warn=_.I.prototype.warn;_.I.prototype.debug=_.I.prototype.debug;_.I.prototype.info=_.I.prototype.info;_.I.prototype.log=_.I.prototype.log;var Sf=new _.I("clpp");_.C("clpp.log.info",_.Tf);
307
- _.C("clpp.log.debug",_.Uf);_.C("clpp.log.warn",_.G);_.C("clpp.log.error",_.Vf);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.Zf=new _.I("clpp.players");_.Yf={};_.ag.prototype.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.ag.prototype.get=function(a){return(a=this.a[a])?a.slice():[]};_.ag.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};_.ag.prototype.clear=function(){this.a={}};cg.prototype.Xb=function(a){try{this.Dc.handleEvent?this.Dc.handleEvent(a):this.Dc.call(this.a,a)}catch(b){_.Vf("clpp","Uncaught exception in event handler for event '"+this.f+"'",b,b?b.message:null,b?b.stack:null)}};_.J.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};_.J.prototype.stopImmediatePropagation=function(){this.f=!0};_.J.prototype.stopPropagation=function(){};_.t=dg.prototype;
308
- _.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].Xb(a),b[c].dl&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.t.on=function(a,b,c){this.a.push(a,new cg(a,b,c||this.f));return b};_.t.one=function(a,b,c){this.a.push(a,new cg(a,b,c||this.f,!0));return b};_.t.off=function(a,b){var c=this.a.get(a),d=!1;if(c)for(var e=0;e<c.length;e++)c[e].Dc===b&&(d=this.a.remove(a,c[e])||d);return d};_.t.clear=function(){this.a.clear()};_.eg.prototype.release=function(){_.hg(this)};_.eg.prototype.on=function(a,b,c,d){a=new ig(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.eg.prototype.one=function(a,b,c){function d(f){e.off(a,b,d);return c(f)}var e=this;this.on(a,b,d)};_.eg.prototype.off=function(a,b,c){for(var d=this.a.get(b)||[],e=0;e<d.length;++e){var f=d[e];f.target!=a||c!=f.a&&c||(gg(f),this.a.remove(b,f))}};jg.prototype.release=function(){this.f.release();this.g=[];this.a=null};jg.prototype.destroy=function(){var a=this;return _.B(function(b){a.release();a.m=null;a.j=null;_.y(b)})};jg.prototype.getTimelineCues=function(){return this.g};_.Eg.prototype.pa=function(a){return this.payload===a.payload&&this.startTime===a.startTime&&this.endTime===a.endTime&&this.payloadType===a.payloadType};_.C("clpp.text.Cue",_.Eg);_.Eg.positionAlign={LEFT:_.ud,RIGHT:_.vd,CENTER:_.Dc,AUTO:"auto"};_.yg=_.Ce;_.Eg.payloadType={TEXT:_.yg,VTT_XML:_.Ye,TTML_XML:_.He};_.zg=_.Dc;_.kq={LEFT:_.rd,RIGHT:_.ke,CENTER:_.zg,START:_.rd,END:_.ke};_.Eg.textAlign=_.kq;var Dg="ltr";_.Eg.direction={HORIZONTAL_LEFT_TO_RIGHT:Dg,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.Ag="horizontal-tb";
309
- _.Eg.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Ag,VERTICAL_LEFT_TO_RIGHT:_.Pe,VERTICAL_RIGHT_TO_LEFT:_.Qe};_.Bg=0;_.Eg.lineInterpretation={LINE_NUMBER:_.Bg,PERCENTAGE:1};_.Cg=_.qe;_.lq={CENTER:_.Dc,START:_.Cg,END:_.gd};_.Eg.lineAlign=_.lq;_.C("clpp.text.CueRegion",_.Hg);_.Fg=1;_.Hg.units={PX:0,PERCENTAGE:_.Fg,LINES:2};var Gg="";_.Hg.scrollMode={NONE:Gg,UP:"up"};_.Hg.displayAlign={BEFORE:"flex-end",CENTER:_.Dc,AFTER:"flex-start"};
310
- _.Hg.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Pc,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};Ig.prototype.destroy=function(){this.a.release();this.j=!1;this.m=this.a=this.g=this.f=null;return Promise.resolve()};Ig.prototype.start=function(a){var b=this;this.j?this.h.warn("Already started. Ignoring request..."):(this.j=!0,this.g=a,this.f=this.g.textTracks,this.a.on(this.f,_.Yb,function(c){return Jg(b,c)}),this.a.on(this.f,Fc,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.ne&&(e.mode=_.nd)}}))};
311
- Ig.prototype.o=function(a){var b=new _.Eg(a.startTime,a.endTime,a.text,_.Ye);if(_.K.$(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Pe;break;case "rl":b.writingMode=_.Qe}_.K.la(a.size)&&(b.size=a.size);if(_.K.$(a.align))switch(a.align){case _.rd:case _.qe:b.textAlign=_.rd;break;case _.Dc:b.textAlign=_.zg;break;case _.ke:case _.gd:b.textAlign=_.ke}_.K.la(a.position)&&(b.position=a.position);if(_.K.$(a.positionAlign))switch(a.positionAlign){case _.ud:b.positionAlign=_.ud;break;case _.Dc:b.positionAlign=
312
- _.Dc;break;case _.vd:b.positionAlign=_.vd}_.K.la(a.line)&&(b.line=a.line);if(_.K.$(a.lineAlign))switch(a.lineAlign){case _.qe:b.lineAlign=_.Cg;break;case _.Dc:b.lineAlign=_.Dc;break;case _.gd:b.lineAlign=_.gd}_.K.tg(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.Bg:1);return b};_.w(_.L,Error);_.L.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=Kg(this.severity,this.category,this.code,this.data))};_.L.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.C("clpp.Error",_.L);_.M=2;_.L.Severity={RECOVERABLE:1,FATAL:_.M};_.L.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
313
- _.L.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,UNKNOWN_DATA_URI_ENCODING:1005,REQUEST_MODIFIER_ERROR:1006,RESPONSE_MODIFIER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,FETCH_OR_APPEND_ERROR:2010,INVALID_MP4:2011,
176
+ _.Ym=function(a,b){try{a.h.debug("Attempting to load an offline session",b);var c=a.I.createSession(_.me)}catch(f){var d=new _.N(_.O,6,6005,{browserError:f.message});a.U(d);return Promise.reject(d)}a.A.on(c,Sd,a.Vg.bind(a));a.A.on(c,Gd,a.Rg.bind(a));var e={initData:null,loaded:!1,af:Infinity,qb:null,Ga:new _.Fi,periodId:null,Od:[],keyId:null,Wa:[],initDataType:null,ac:null,sessionContext:{ldlDelay:0,customData:{}}};e.Ga["catch"](function(){});a.f.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.h.debug("Loaded offline session",
177
+ b,f);if(!f)return a.f["delete"](c),a.U(new _.N(_.O,6,6013)),null;e.loaded=!0;dn(a)&&(a.w||a.h.info(za),a.w=!0,a.D=!1,a.H.resolve());return c},function(f){a.j||(a.f["delete"](c),a.U(new _.N(_.O,6,6005,{browserError:f.message})))})};en=function(a,b,c,d){if(!b&&c!==_.Oe)return!1;d=b||El(d);a=_.u(a.f.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||b&&e.Wa.includes(b)||c===_.Oe&&(e.keyId||El(e.initData))===d)return!0;return!1};
178
+ Xm=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,C,F,E,H,Q,P,Ba,ta,ya,Ja,Ha;_.G(function(ma){switch(ma.a){case 1:if(!e.length)return a.h.warn("Empty init data"),ma["return"]();h=b;if(!h)try{h=fn(a,d,e,f)}catch(la){if(a.h.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:la,initDataType:d,
179
+ initData:e}),a.g.ignoreUnrecognizedInitData)return ma["return"]()}if(g){ma.G(2);break}if(!en(a,h,d,e)){ma.G(2);break}l=!0;if("skd"!==d||a.g.enableSessionCacheForSkd){ma.G(4);break}m=_.u(a.f.keys());n=m.next();case 5:if(n.done){ma.G(4);break}p=n.value;q=a.f.get(p);if(!h||q.keyId!==h){ma.G(6);break}a.h.warn("Close and re-open session for "+h);_.B(ma,9);return _.x(ma,p.close(),11);case 11:_.ag(ma,10);break;case 9:t=_.D(ma),a.h.warn("Unable to close session",t);case 10:l=!1;case 6:n=m.next();ma.G(5);
180
+ break;case 4:if(l)return a.h.warn("Skip creating a new session for "+h),ma["return"]();case 2:try{z=a.F?_.me:Ze,v=a.I.createSession(z),a.h.info("Created new "+z+" session for Key ID: '"+h+"'. Init data type: "+(d+"."))}catch(la){return a.U(new _.N(_.O,6,6005,{browserError:la.message})),ma["return"]()}a.A.on(v,Sd,a.Vg.bind(a));a.A.on(v,Gd,a.Rg.bind(a));A={ac:f,Od:[],initData:e,initDataType:d,keyId:h,Wa:h?[h]:[],loaded:!1,af:Infinity,periodId:c,qb:null,Ga:new _.Fi,sessionContext:{ldlDelay:0,customData:{}}};
181
+ A.Ga["catch"](function(){});f&&(C=a.f.get(f),A.sessionContext=C.sessionContext);a.f.set(v,A);h&&!a.l.get(h)&&a.l.set(h,Se);if(e)for(F=0;F<a.a.initData.length;F++)E=a.a.initData[F],E.keyId&&!A.Wa.includes(E.keyId)&&_.ri(E.initData,e)&&(A.keyId||(A.keyId=E.keyId),A.Wa.push(E.keyId),a.l.get(E.keyId)||a.l.set(E.keyId,Se));H=_.M;Q=H.mb;P=a.C.getConfiguration();Ba=a.keySystem();ta=a.g.Va[Ba];Ja=(ya=ta.modifiers)&&ya.transformInitData;Q(Ja)||(Ja=gn);try{e=Ja({playerConfig:P,initData:e,initDataType:d,drmInfo:a.a,
182
+ drmSystemConfig:ta,sessionContext:A.sessionContext,emeApi:a.o.$c()})}catch(la){return Ha=la,la instanceof _.N||(Ha=new _.N(_.O,6,6016,la)),A.Ga&&A.Ga.reject(la),a.U(Ha),ma["return"]()}a.h.info("Generate License Request for key ID: '"+h+"'");v.generateRequest(d,e.buffer)["catch"](function(la){if(!a.j){var Ea=null;la.errorCode&&la.errorCode.systemCode&&(Ea=la.errorCode.systemCode,0>Ea&&(Ea+=Math.pow(2,32)),Ea="0x"+Ea.toString(16));a.U(new _.N(_.O,6,6006,{browserError:la.message,error:la,extended:Ea},
183
+ la))}});_.y(ma)}})};
184
+ fn=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.g.Va[f];f=a.C.getConfiguration();g=g&&g.modifiers&&g.modifiers.extractContentId;_.M.mb(g)||(g=hn);try{var h={ldlDelay:0,customData:{}};e&&(h=a.f.get(e).sessionContext);var l=g(f,c,h);a.h.debug("Extracted Content ID '"+l+"' from SKD");var m=l;break a}catch(F){a.h.warn("Unable to extract Content ID from SKD",F)}m=""}return m}if(b===_.Oe)return El(c)||"";if(b===_.Hc){m=a.keySystem();try{if(m.match(/^com\.widevine\.alpha/)){var n=
185
+ _.om(c);if(n)return n.a}else if(jn(m)){e=new _.ll(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);f=_.W(e);var p=_.W(e);g=_.zl(p);var q=_.W(e);c=q>>>24;l=q&16777215;h=_.tl(e,16);var t=_.qi(h);if(0<c){var v=_.W(e);e.skip(16*v)}var z=_.W(e),A=_.tl(e,z),C=_.vm(A);_.ug("Parsed PR PSSH Box","size",f,"name",g,"version",c,"flags",l,"size",z,"systemId",t,"keyId",C.a);if(C)return C.a}}catch(F){throw a.h.warn("Unable to extract Key ID from PSSH data.",{error:F,keySystem:m}),F;}}return""};
186
+ hn=function(a,b){var c=_.Dl(b);_.ug("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
187
+ gn=function(a){var b=a.playerConfig,c=a.initData,d=a.drmInfo,e=a.drmSystemConfig,f=a.sessionContext,g=a.emeApi;if("skd"===a.initDataType&&"APPLE"===g){a=_.M.mb;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=hn);a="";try{a=e(b,c,f)}catch(h){throw new _.N(_.O,6,6103);}if(!a.length)throw new _.N(_.O,6,6101,"Content ID is an empty string");c=Fl(c,a,d)}return c};
188
+ sn=function(a,b){var c=b.target,d=a.f.get(c),e=a.keySystem(),f=!1;e.match(/^com\.widevine\.alpha/)&&b.message&&2===b.message.byteLength?(f=!0,a.h.info("WV Server certificate request for SID:'"+(c.sessionId+" from msg '")+(b.messageType+"'"))):a.h.info("License request for SID:'"+(c.sessionId+"'/KID:'"+d.keyId+"' from msg '")+(b.messageType+"'"));var g=a.a.licenseServerUri;e=a.g.Va[e];"individualization-request"===b.messageType&&e&&e.individualizationServer&&(g=e.individualizationServer);var h=_.Ai([g],
189
+ a.g.attemptParameters);h.type=3;h.body=b.message;h.method="POST";h.licenseRequestType=b.messageType===Jd&&d.ac?Id:f?Jc:b.messageType;h.sessionId=c.sessionId;if(h.licenseRequestType===Id)a.C.onEvent(new _.L(qd));jn(a.a.keySystem)&&pn(a,h);Yk(a.P,h);var l=Math.floor(b.timeStamp),m=Date.now();return qn(a,h,d.sessionContext).then(function(){_.wm(hd+l+ea);a.h.debug("Sending DRM license request to",g,h);return a.C.Cb.fetch(h).O}).then(function(n){_.wm(hd+l+".end");performance.measure(hd+l,hd+l+ea,hd+l+
190
+ ".end");if(a.j)return Promise.reject();var p=Date.now()-m,q=rn(a,n),t="";q&&(t=" RID:"+q);q=n&&n.data?n.data.byteLength:-1;f?a.h.info("WV Server certificate response for SID:'"+(c.sessionId+"' ")+(q+" bytes in ")+(p+"ms"+t)):a.h.info("License response for SID:'"+(c.sessionId+"'/KID:'")+(d.keyId+"' ")+(q+" bytes in ")+(p+"ms"+t));var v=Zk(a.P,n);_.wm(od+l+ea);return c.update(n.data).then(function(){_.wm(od+l+".end");performance.measure(od+l,od+l+ea,od+l+".end");if(!f){var z=Zm(a),A=v?Date.now()+1E3*
191
+ v.delay:Number.NaN;z=new _.L(_.sd,{keySystem:a.keySystem(),expirationTime:z,expectedRenewalTime:A});a.C.onEvent(z);d&&(d.qb&&d.qb.resolve(),d.ac&&(z=d.ac,a.h.info("Closing expired session '"+z.sessionId+"'"),Cm(z)["catch"](function(){a.h.warn("Unable to close expired session in time")}),(z=a.f.get(d.ac))&&z.Dc&&z.Dc.stop(),a.f["delete"](d.ac),d.ac=null),(new _.zj(function(){a.j||(d.loaded=!0,d.Ga&&d.Ga.resolve(),dn(a)&&(a.w||a.h.info(za),a.w=!0,a.D=!1,a.H.resolve()))})).$(5),null!==d.initData&&(0<
192
+ d.sessionContext.ldlDelay||v&&$k(a.keySystem()))&&(z=new _.zj(function(){!a.j&&a.P&&(a.h.info("Updating CSL Sessions"),jn(a.keySystem())?Xm(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):a.keySystem().startsWith(_.Yc)&&c.update(_.bi("renew")))}),d.Dc=z,z.$(v?v.delay:d.sessionContext.ldlDelay)))}})},function(n){var p,q,t,v;return _.G(function(z){if(a.j)return z["return"]();p=n.data.headers;q=bm(p);t=Object.assign({message:_.Ia,url:n.data.url,status:n.data.status,response:n.data.response},p?{headers:p}:
193
+ {},q);v=new _.N(_.O,6,6007,t,n);a.U(v);d&&d.qb&&d.qb.reject(v);d&&d.Ga&&d.Ga.reject(v);_.y(z)})})["catch"](function(n){a.j||(n===tb?a.h.info("Ignore update for closed sessions"):(n=new _.N(_.O,6,6008,{browserError:n.message}),a.U(n),d&&d.qb&&d.qb.reject(n),d&&d.Ga&&d.Ga.reject(n)))})};rn=function(a,b){if(!b||!b.headers)return"";var c=b.headers["x-dt-li"];if(c)try{return JSON.parse(_.Yh(_.oi(c))).ti}catch(d){a.h.warn("Unable to parse DRMtoday Request ID",d)}return""};
194
+ pn=function(a,b){var c=$h(b.body,!0,!0);if(c.includes("PlayReadyKeyMessage")){a.h.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(_.of).textContent;b.body=_.oi(c.querySelector("Challenge").textContent).buffer}else a.h.debug("PlayReady request is already unwrapped."),b.headers[va]="text/xml; charset\x3dutf-8"};
195
+ qn=function(a,b,c){var d,e,f,g,h,l;return _.G(function(m){if(1==m.a)return d=a.C.getConfiguration(),_.x(m,Um(a,d),2);e=a.keySystem();h=(g=(f=a.g.Va[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;h?b.requestModifiers.push(function(n){return h(d,n,c)}):e.startsWith(_.Yc)&&b.requestModifiers.push(function(n){return _.Gl(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Yc)&&b.responseModifiers.push(function(n){return _.Hl(n)});_.y(m)})};
196
+ zm=function(a){var b=a.l,c=a.ma;c.clear();b.forEach(function(d,e){return c.set(e,d)});b=Array.from(c.values());b.length&&b.every(function(d){return"expired"==d})&&a.U(new _.N(_.O,6,6014));a.C.ef(_.M.Gf(c));a.w||a.h.info(za);a.w=!0;a.D=!1};Pm=function(a){var b;return _.G(function(c){if(1==c.a)return _.wm(nd),b=a.ha.map(function(d){return sn(a,d)}),a.Ra=!0,a.ha=[],_.x(c,Promise.all(b),2);_.wm(md);performance.measure("drm.onPlay",nd,md);_.y(c)})};jn=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};
197
+ _.bn=function(a){return jn(a)?_.Zc:a};Am=function(a){a.f.forEach(function(b,c){var d=b.af,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.C.onExpirationUpdated(c.sessionId,e),b.af=e)})};dn=function(a){a=a.f.values();return _.Mh(a,function(b){return b.loaded})};
198
+ Hm=function(a,b){var c=[];b.forEach(function(f,g){c.push({keySystem:g,licenseServerUri:f.licenseUrl,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,initData:[],keyIds:[]})});for(var d=_.u(a),e=d.next();!e.done;e=d.next())e.value.drmInfos=c};$m=function(a){for(var b=_.u(a.audioCapabilities||[]),c=b.next();!c.done;c=b.next())delete c.value.robustness;a=_.u(a.videoCapabilities||[]);for(b=a.next();!b.done;b=a.next())delete b.value.robustness};
199
+ an=function(a){return(a.audioCapabilities||[]).some(tn)||(a.videoCapabilities||[]).some(tn)};tn=function(a){return null!=a.robustness&&""!==a.robustness};
200
+ cn=function(a,b,c,d,e){var f={};a=_.u(a);for(var g=a.next();!g.done;f={za:f.za},g=a.next()){f.za=g.value;b.includes(f.za.licenseServerUri)||b.push(f.za.licenseServerUri);f.za.serverCertificate&&(c.some(function(m){return function(n){return _.ri(n,m.za.serverCertificate)}}(f))||c.push(f.za.serverCertificate));if(f.za.initData){var h=_.u(f.za.initData);for(g=h.next();!g.done;g=h.next())g.value.periodId=f.za.periodId;h={};var l=_.u(f.za.initData);for(g=l.next();!g.done;h={Bd:h.Bd},g=l.next())h.Bd=g.value,
201
+ d.some(function(m){return function(n){var p=m.Bd;return n.keyId&&n.keyId==p.keyId&&n.periodId===p.periodId?!0:!1}}(h))||d.push(h.Bd)}if(f.za.keyIds)for(g=0;g<f.za.keyIds.length;++g)e.includes(f.za.keyIds[g])||e.push(f.za.keyIds[g])}};
202
+ Jm=function(a,b){if(a.keySystem){var c=_.bn(a.keySystem),d=b[c];c===_.ie&&a.licenseServerUri||(d&&(a.licenseServerUri=d.licenseUrl||""),a.keyIds||(a.keyIds=[]),d&&(a.distinctiveIdentifierRequired||(a.distinctiveIdentifierRequired=d.distinctiveIdentifierRequired),a.persistentStateRequired||(a.persistentStateRequired=d.persistentStateRequired),a.videoRobustness||(a.videoRobustness=d.videoRobustness||""),a.audioRobustness||(a.audioRobustness=d.audioRobustness||""),a.serverCertificate||(a.serverCertificate=
203
+ d.serverCertificate||null)))}};Cm=function(a){var b,c;return _.G(function(d){if(1==d.a)return b=new Promise(function(e){(new _.zj(e)).$(1)}),_.x(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.J("Timeout waiting for session close");_.y(d)})};_.wn=function(a,b){a&&b&&(_.un.set(a,b),_.vn.info("Registered TextDisplayerFactory: '"+a+"'"))};
204
+ _.xn=function(a,b){var c=b.find(function(d){return(d=_.un.get(d))?d.aa(a):!1});if(null==c)return _.vn.warn("Subtitles may not work as expected. No compatible text displayer found for this platform."),null;_.vn.info("Chosen the text displayer: "+c);return _.un.get(c)};yn=function(){this.a=null;this.f=[]};_.zn=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})}};
205
+ An=function(a,b){var c=0;a.a&&a.a.state==b&&(c+=a.a.duration);for(var d=_.u(a.f),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state==b?e.duration:0;return c};Bn=function(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=_.u(a.f),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.a&&c.push(b(a.a));return c};Cn=function(){this.g=this.f=this.j=null;this.a=[]};Dn=function(a){return a.a.map(function(b){return _.M.Sa(b)})};
206
+ _.En=function(){this.f=this.o=this.A=this.D=this.j=this.l=this.g=this.w=NaN;this.a=new yn;this.B=new Cn};_.Fn=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:[]}};_.Gn=function(a){this.f=a;this.a=void 0};In=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Hn.value().get(b),c.one(a,b,d))};
207
+ Mn=function(a){this.h=new _.K("clpp.StateManager");this.m=a;this.a=new _.Eg;this.f=_.Jn;this.A=_.Kn;this.I=0;this.w=-1;this.M=this.o=this.J=this.B=0;this.j=this.l=this.F=!1;this.H=0;this.g=null;this.K=0;this.P=_.Ij();this.D=!1;this.J=Date.now();Ln(this)};Nn=function(a,b){return Object.keys(b)[a]};
208
+ Pn=function(a,b){var c={type:_.Re};b===_.Bc||b===_.Ac?(c.reason=a.w,b===_.Bc?c.timeSinceLastStateChangeMS=a.I:c.bufferedTimeMS=a.B):(a.f===_.On&&(c.reason=a.w),a.A===_.On&&(c.reason=a.w,c.bufferedTimeMS=a.B),c.currentState=a.f,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.I);return c};
209
+ Tn=function(a,b){if(a.f===b)return!1;var c=Date.now(),d=a.f===_.On;a.A=a.f;a.f=b;a.A===_.Qn&&(a.J=c,a.o=0);a.o||(a.o=a.J||c);a.I=c-a.o;a.o=c;b===_.On?(a.M=a.o,a.w=a.l?1:2,a.h.info("Buffering started. Reason: "+Nn(a.w-1,_.Rn)),c=Pn(a,_.Bc),a.Wb(_.Bc,c)):d&&(a.B=a.o-a.M,a.h.info("Buffering finished. Reason: "+Nn(a.w-1,_.Rn)+". Buffering time: "+a.B+" ms"),c=Pn(a,_.Ac),a.Wb(_.Ac,c));c=Nn(a.A,_.Sn);d=Nn(a.f,_.Sn);a.h.info(_.jb+c+" -\x3e "+d);a.Wb(_.Re,Pn(a,""));return!0};
210
+ Yn=function(a,b){if(a.f===_.Un)a.h.warn("Player is in error state, aborting any further state checks");else{var c=a.m.isPaused();var d=a.m.getPosition();var e=a.m.getDuration();if(d=a.m.isEnded()||a.f===_.Qn&&1>=Math.abs(d-e)||c&&d>=e)Tn(a,_.Qn)&&a.h.debug("Player claims to be in ended state, not checking more");else if(b!==_.cf){e=a.m.getPosition();e=null!==e&&void 0!==e&&0<=e?a.m.getBufferInfo().Ja(e,!0):-1;a.H=e;e=a.m.getSurface().getMedia();a.g=e?e.readyState:null;a.K=a.m.getPlaybackRate()||1;
211
+ e=typeof a.g===_.k&&2>a.g&&2===e.networkState;var f=typeof a.g===_.k&&0>=a.H&&a.f===_.Jn,g=typeof a.g===_.k&&2>=a.g&&a.j;e=a.l||f||e||g;!a.P||a.m.isLive()||a.f!==_.On||e||(f=b===_.Le&&4===a.g,(g=a.A===_.Vn)&&!a.D?e=!0:g||a.D||f||(e=!0));f=!1;e?f=Tn(a,_.On):c?f=Tn(a,_.Wn):a.F&&(f=Tn(a,_.Xn));f&&(a.D=!1);a.h.debug("Video state check for event "+b+":: seeking: "+a.l+", waiting: "+a.j+", playing: "+a.F+", paused: "+c+", readyState: "+a.g+", rate: "+a.K+", buffer: "+a.H+", ended: "+d+". Changed state: "+
212
+ f+", Current state: "+Nn(a.f,_.Sn))}}};
213
+ Ln=function(a){function b(d){return Yn(a,d.type)}a.h.debug("Start watching for video events for "+a.m.namespace());var c=a.m;a.a.on(c,_.xd,function(){a.j=!1;Tn(a,_.Qn)});a.a.on(c,Cc,b);a.a.on(c,_.ve,function(){a.F=!0;a.j=!1;Yn(a,_.ve)});a.a.on(c,_.ke,function(){a.F=!1;a.j=!1;Yn(a,_.ke)});a.a.on(c,_.cf,b);a.a.on(c,_.Ee,b);a.a.on(c,_.Le,function(d){a.l=!1;a.j=!1;Yn(a,d.type)});a.a.on(c,_.Me,function(d){a.l=!0;Yn(a,d.type)});a.a.on(c,Pe,b);a.a.on(c,_.Cf,function(){a.j=!0;Yn(a,_.Cf)});a.a.on(c,_.yd,function(d){return a.U(d)});
214
+ a.a.on(c,_.Od,b);a.a.on(c,Dc,function(){a.D=!0;Yn(a,Dc)});a.a.on(c,_.mf,function(d){a.l=!0;Yn(a,d.type)});a.a.on(c,_.lf,function(d){a.l=!1;a.j=!1;Yn(a,d.type)})};Zn=function(a){a=(new _.ph(a)).Aa;if(!a)return null;a=a.toUpperCase();return _.fi(a,".MPD")?_.kc:_.fi(a,".M3U8")?_.kk:_.fi(a,".MP4")?_.wf:_.fi(a,"MANIFEST")||_.fi(a,".ISM")?_.pc:null};
215
+ _.ao=function(a){var b;_.Jk(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.Ue||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=$n(b[c]);d&&a.push(d)}return a};
216
+ $n=function(a){var b=null;_.M.Z(a)&&(a={url:a});typeof a===_.ae&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.M.R(a.drmProtected)||typeof a.drmProtected!==_.zc||(b.drmProtected=a.drmProtected),_.M.R(a.isLive)||typeof a.isLive!==_.zc||(b.isLive=a.isLive),_.M.R(a.name)||typeof a.name!==_.Ue||(b.name=a.name),_.M.R(a.Gb)||typeof a.Gb!==_.Ue||(b.Gb=a.Gb),_.M.R(a.audioMimeType)||typeof a.audioMimeType!==_.Ue||(b.audioMimeType=a.audioMimeType));b&&!b.type&&(b.type=Zn(a.url),b.type?
217
+ bo.debug("Detect media type "+b.type+" for "+a.url):bo.warn("Unable to detect media type for "+a.url));return b};co=function(){_.Kk.call(this,Sc);this.A=this.I=!1;this.l=this.B=this.o=this.a=this.j=null;this.g=new _.Eg;this.H=this.F=this.f=this.J=null};
218
+ go=function(a,b){return a.A?eo():new Promise(function(c){a.a||(a.g.on(b,_.yd,function(){var d=fo(a);if(d)a.onError(d)}),a.g.on(b,_.Je,function(){var d=b.videoWidth,e=b.videoHeight,f=a.getTrackManager();f&&0<d&&0<e&&(f.w={width:d,height:e});a.trigger(new _.L(_.yc,{detail:{width:d,height:e}}))}),a.a=b);c()})};ho=function(a){return a.A?eo():new Promise(function(b){if(a.a){var c=a.a;a.g.off(c,_.yd);a.g.off(c,_.Je);a.a=null}b()})};
219
+ jo=function(a){var b,c,d,e,f;return _.G(function(g){if(1==g.a){if(a.A)return g["return"](eo());b=a.w[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=_.io;d=_.el(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.o=new _.Bm({Cb:e,onError:function(h){return a.onError(h)},ef:function(){},onExpirationUpdated:function(h,l){a.trigger(new _.L(_.pd,
220
+ {expirationTime:l}))},onEvent:function(h){h instanceof _.L?a.dispatchEvent(h):a.log.debug(_.Db,h.type)},getConfiguration:function(){return a.getConfiguration()},Jc:function(){return a.Jc()}});a.o.g=d;f={id:0,language:_.ff,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,
221
+ Ba:0,mimeType:_.wf,codecs:"",encrypted:!0,keyId:null,language:_.ff,originalLanguage:_.ff,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,sm:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,dm:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.x(g,_.Gm(a.o,[f],[]),2)}return 3!=g.a?_.x(g,_.Tm(a.o,a.a),3):g["return"](Promise.resolve())})};
222
+ ko=function(a,b){In(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.g,function(){a.getState()!==_.Un&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};fo=function(a){if(null===a.w||!a.a.error)return null;var b=a.a.error.code;if(1===b)return null;var c=a.a.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new _.N(_.O,3,3016,{code:b,lm:c,message:a.a.error.message})};eo=function(){return Promise.reject(new _.N(_.O,7,7E3))};
223
+ lo=function(a){if(a.A)return new _.Gi(eo(),function(){});var b=a.w[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.J;c&&ko(a,c);if(d.preload!==_.$d)a.g.one(d,_.Od,function(){var g=Date.now()/1E3-e;a.f.A=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.Mi()||_.Ni())&&d.load();var f=new _.Fi;a.g.one(d,Pe,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.F||(a.F=(new _.zj(function(){f.reject(new _.N(_.O,3,3100,{message:"Unable to load media source successfully from "+
224
+ b.url,uri:b.url},d.error))})).$(g))});In(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.g,function(){return f.resolve()});d.error?f.reject(fo(a)):d.preload===_.$d&&(a.log.warn('With \x3cvideo preload\x3d"none"\x3e, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way. Please do not use preload\x3d"none" with PRESTOplay for Web Apps.'),f.resolve());a.g.one(d,_.yd,function(){f.reject(fo(a))});
225
+ return new _.Gi(f,function(){var g=new _.N(_.O,7,7001);f.reject(g);return Promise.resolve()})};
226
+ mo=function(a,b){In(b,HTMLMediaElement.HAVE_CURRENT_DATA,a.g,function(){if(a.isLive()&&a.getState()!==_.Un){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)}))}})};no=function(){};
227
+ _.qo=function(a){a&&(0<=oo.indexOf(a)?po.warn("Factory '"+a.name()+"' is already registered"):(oo.push(a),po.info("Factory "+a.name()+"' has been registered.")))};so=function(a,b){var c=oo.find(function(d){return d.aa(a,b)});c||(c=new ro);po.info("Chosen ads: "+c.name());return c};_.to=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};_.uo=function(a,b){a.classList.add(b)};
228
+ _.vo=function(a,b){if(a&&typeof b===_.ae)for(var c in b)a.style[c]=b[c]};_.wo=function(a){return document.createElement(a)};xo=function(){this.a=null;this.g=new Set;this.f=null;this.set(null)};yo=function(a,b){a.a&&0!==b.length&&(a.a.classList.add(b),a.g.add(b))};zo=function(a,b){var c=new MutationObserver(function(){var d=Array.from(a.g.values());Vg(Array.from(b.classList),Array.from(d))||b.classList.add.apply(b.classList,_.Of(d))});c.observe(b,{attributes:!0,attributeFilter:["class"]});return c};
229
+ Do=function(a,b){this.h=new _.K("clpp.PlayerSurface");this.w=_.M.va(Ao,b);this.f=new xo;this.g=null;this.a=new xo;this.l=Bo;Bo+=1;this.o="clpp-video-"+this.l;this.j=new _.Eg;if(null==a)throw new _.N(_.O,7,7102,"No Media element was provided");if(a instanceof Element)var c=a;else if(c=document.getElementById(a),!c)throw new _.N(_.O,7,7004,"Media element not found");var d=this.w;this.h.debug("Initializing Player Surface on ",c);if("cast-media-player"===c.tagName.toLowerCase())this.g=c;else{if(!(c instanceof
230
+ HTMLMediaElement))throw new _.N(_.O,7,7005,"Media element is not instance of HTMLMediaElement");if(!c.hasAttribute("crossorigin")){var e=d.crossorigin;this.h.info("Setting media elements crossorigin to "+e);c.setAttribute("crossorigin",e)}this.f.set(c);if(d.disableContainer)e=null;else if(d.containerEl){if(c.parentNode!==d.containerEl)throw new _.N(_.O,7,7006,"Container element is not a direct parent of media element");e=d.containerEl}else{e=document.createElement(_.gd);c.parentNode?c.parentNode.replaceChild(e,
231
+ c):this.h.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=_.u(f);for(g=f.next();!g.done;g=f.next())g=g.value,c.classList.remove(g),_.uo(e,g);e.style.cssText=c.style.cssText;c.removeAttribute(_.We);f=_.u([_.Jf,_.Bd]);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+_.De);_.Mi()||c.removeAttribute(g)}e.appendChild(c)}e&&
232
+ (this.a.set(e),yo(this.a,"clpp-container"),yo(this.a,this.o),yo(this.f,_.Mc),yo(this.f,"clpp-video"));d.webOSStartupPatch&&Co(this,c,e)}};Co=function(a,b,c){(_.Ni()&&53===Fj().major||_.Ni()&&68===Fj().major||_.Gj())&&!b.hasAttribute(cd)&&(b.style.opacity="0",b.setAttribute(cd,""),a.j.one(b,ud,function(){b.removeAttribute(cd);b.style.opacity="1";c&&(c.style.opacity="1")}))};Fo=function(a){this.m=a;this.j=this.m.getNetworkEngine();this.a=new _.Eg;this.g=null;this.f=!0;Eo(this)};
233
+ Eo=function(a){a.a.on(window,"offline",function(){Go(a,!1)});a.a.on(window,"online",function(){a.f||Ho(a)});a.a.on(a.m,Pe,function(){return Io(a)});a.a.on(a.m,"suspend",function(){return Io(a)});a.a.on(a.m,_.Cf,function(){return Io(a)});a.a.on(a.m,_.ve,function(){a.f||Ho(a)});a.a.on(a.m,_.Ce,function(){a.f||Ho(a)});a.a.on(a.m,_.Re,function(){switch(a.m.getState()){case _.On:Io(a);break;default:Io(a)}})};Ho=function(a){a.m.getConfiguration().connectivityCheck&&(Jo(a),a.g=(new _.zj(function(){return Ko(a)})).$(5))};
234
+ Io=function(a){a.f&&Ho(a)};Jo=function(a){a.g&&(a.g.stop(),a.g=null)};Ko=function(a){var b,c;return _.G(function(d){if(1==d.a)return(b=a.m.getConfiguration().connectivityCheck)&&a.m?_.x(d,Ti(a.j,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;Go(a,c);_.y(d)})};Go=function(a,b){Jo(a);a.f!==b&&(a.f=b,a.m&&a.m.getConfiguration().connectivityCheck&&a.m.trigger(new _.L(ge,{online:a.f})))};Mo=function(){for(var a=0;a<Lo.length;++a)Lo[a].Bc()};
235
+ _.No=function(a,b){b=b||0;for(var c={priority:b,Bc:a},d=0;d<Lo.length;d++)if(Lo[d].priority<b){Lo.splice(d,0,c);return}Lo.push(c)};Oo=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};Po=function(a,b,c){this.g=a;this.f=b;JSON.parse(_.Yh(_.oi(a)));this.a=JSON.parse(_.Yh(_.oi(b)));this.j=c};Qo=function(a){this.license=a;this.a=null;this.h=new _.K("clpp.utils.LicenseKey")};
236
+ Ro=function(a){if(!a.a){var b=a.license.split(".");if(3!==b.length)throw Error("Expected to find 3 data sections in JWT raw data");b=new Po(b[0],b[1],b[2]);a.a=b}return a.a};So=function(a){switch((a.Td()[0]||{src:"",type:""}).type){case _.kc:a="dash";break;case _.pc:a="ss";break;case _.kk:a="hls";break;case _.wf:a=_.Xd;break;default:a=""}return a};To=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};
237
+ Uo=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};Vo=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};Xo=function(a){var b=a.getConfiguration(),c="no";b.drm&&!_.M.pa(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(td)||Wo(a).endsWith("drmtoday.com"))&&(c=td);return c};
238
+ Yo=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.keySystem){case _.ad:b="wv";break;case _.Zc:b="pr";break;case _.Yc:b="fps"}return b};Zo=function(a){a=a.getDrmInfo();var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};$o=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.videoRobustness){case Pa:case Na:b="L1";break;case Oa:b="L2";break;case _.sb:case _.rb:b="L3"}return b};Wo=function(a){a=a.getDrmInfo();return(new _.ph(a&&a.licenseServerUri||"")).Ka};
239
+ cp=function(a,b){var c="ie"===_.Oi().browser,d=b.getConfiguration(),e=_.Of(Array.from(_.Lk.keys())).concat(_.Of(b.Bj()));d={"CL-KEY":a.license,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.fa,"CL-USER-ID":To(d),"CL-ASSET-ID":Uo(d),"CL-SESSION-ID":Vo(d),"CL-PLAYBACK-TYPE":b.isLive()?ap:bp,"CL-CONTENT-TYPE":So(b),"CL-PLUGINS":e.join(" "),"CL-DRM":Xo(b),"CL-DRM-CDM":Yo(b),"CL-DRM-SEC-LEVEL":$o(b),"CL-DRM-OFFLINE":Zo(b),"CL-DRM-IP":Wo(b)};c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=
240
+ e);e=_.Ai(["https://downloads.castlabs.com/r/register/"]);e.method="GET";e.headers=d;return(new _.Ri).fetch(e).O.then(function(f){200===f.status&&c&&window.localStorage.setItem("cl_et",f.headers.etag);return Promise.resolve()})["catch"](function(f){a:{var g=Ro(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=
241
+ h+(": "+l)}else f=l+"!";l=f;break;case 412:g=7103;l="License requires a viewer ID. It should be supplied either via the `viewerId` config or in case of DRMtoday via the `drm.customData.userID` config.";break;default:f=Promise.resolve();break a}a.h.error(Va+l);f=Promise.reject(new _.N(_.O,7,g,l))}}return f})};
242
+ X=function(a,b,c){_.Ak.call(this);var d=this;Mo();this.h=new _.K("clpp.Player");if(!a)throw new _.N(_.O,7,7102);this.A=new _.Eg;this.f=this.T=b||_.Gk();this.l=null;void 0===this.f.license&&(this.f.license=Ek,this.h.warn("You are using the embedded demo license!"));if(!this.f.license)throw this.h.error("You provided null or empty string as your license. Please check your license configuration."),new _.N(_.O,7,7101,"No license provided in configuration!");this.g=new Do(a,c);this.a=this.w=null;this.B=
243
+ new _.Ri;this.j=null;this.K=[];this.M={};this.o=null;this.I=!0;this.J=this.H=!1;this.F=this.Fc=null;this.Fe=!1;this.V=new Fo(this);this.P=!1;this.D=function(f){(f=f.detail)&&f.currentState===_.Xn&&(d.off(_.Re,d.D),dp(d))};this.on(_.Re,function(){d.getState()===_.Un&&d.unload()});this.on(_.fc,this.Lg.bind(this));this.on(_.ec,this.Lg.bind(this));ep(this,this.f.license);this.g.getMedia()&&(a=this.g.getMedia(),a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),this.h.debug("Removed autoplay attribute from video element. Auto play will be handled by configuration."),
244
+ void 0===this.f.autoplay&&(this.f.autoplay=!0,this.h.debug("Setting autoplay in configuration since it was specified in the video element"))));a=[];b=_.u(fp);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.h.error("Error while creating player plugin",f)}}gp(this,a);Rk(this)};_.hp=function(a,b){b!==a.a&&(a.a&&(a.a.removeDelegate(a),a.a.destroy()),a.a=b,a.a&&(a.a.init(a.g,a.f),a.a.setNetworkEngine(a.getNetworkEngine()),a.a.addDelegate(a)))};
245
+ ep=function(a,b){a.w=new Qo(b);a.w.verify()["catch"](function(c){setTimeout(function(){a.h.error(Va+c);a.trigger(new _.L(_.yd,{detail:new _.N(_.O,7,7101)}));a.destroy()},1E3)})};
246
+ dp=function(a){if(!a.P){a.P=!0;a.g.getMedia()||a.g.getCastElement();a.w||(a.w=new Qo(a.f.license));var b=Object.keys(a.M);cp(a.w,{getConfiguration:a.getConfiguration.bind(a),Td:a.Td.bind(a),getDrmInfo:a.getDrmInfo.bind(a),Bj:function(){return b},isLive:a.isLive.bind(a)}).then(function(){a.h.debug("License verified remotely")})["catch"](function(c){setTimeout(Oo,1E3,{release:a.release.bind(a),destroy:a.destroy.bind(a),onError:a.onError.bind(a)},c)})}};
247
+ gp=function(a,b){a.K=b;for(var c=_.u(a.K),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.id();e&&(a.M[e]=d)}a.ic("onPlayerCreated")};
248
+ ip=function(a){var b,c;return _.G(function(d){if(1==d.a){if(a.I)return a.h.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.off(_.Re,a.D);a.A.off(a,_.Re,a.D);a.A.off(document,Af);a.trigger(new _.L(_.Ge));a.P=!1;a.g&&a.g.release();return a.j?_.x(d,a.j.dispose(),3):d.G(2)}2!=d.a&&(a.j=null);if(a.a)return b=null,c=a.a.on(_.Re,function(e){b=e}),d["return"](a.ic(_.ee).then(function(){a.a.removeDelegate(a);return Promise.all([a.a.release(),a.B.release()])}).then(function(){a.h.debug("Releasing player completed");
249
+ b&&(a.h.debug("Re-post state change event after release"),a.trigger(b))})["finally"](function(){a.a.off(_.Re,c);a.trigger(new _.L(Fe))}));a.trigger(new _.L(Fe));return d["return"](new Promise(function(e){return e()}))})};
250
+ jp=function(a,b,c){return new Promise(function(d,e){var f;if(b){for(var g=f=null,h=0;h<b.length;h++);h=Object.values(_.yg);for(var l=0;l<b.length;l++)for(var m=0;m<h.length;m++){var n={Kb:h[m],confidence:h[m].canPlay(b[l],c)};if(null===f||f.confidence<n.confidence)f=n,g=l}f&&typeof g===_.k&&0<f.confidence?(_.zg.debug("Player Factory '"+f.Kb.a()+"' can play",b[g]),f=new wg(f.Kb,g)):(_.zg.error("No compatible Player Factory found for sources:",b),f=null)}else f=null;f?(g=f.Kb.create(),d(new xg(g,f.a))):
251
+ (f=new _.L(_.yd,{detail:new _.N(_.O,7,7003)}),a.trigger(f),e(f))})};lp=function(a){var b;return _.G(function(c){if(1==c.a){if(!a.a)return a.h.warn(hb),c["return"]();b=a.a;if(!b.Rf)return a.h.warn(lb),c["return"]();a.trigger(new _.L(Pd));return _.x(c,b.Rf(),2)}return _.x(c,_.kp(a),0)})};
252
+ _.np=function(a,b){var c,d,e,f;return _.G(function(g){switch(g.a){case 1:_.wm(se);if(a.H)throw Error("Player is already destroyed.");if(!a.g)throw Error("No surface associated with this player!");return _.x(g,a.release(),2);case 2:a.o=_.ao(b);c=_.Jk(b);a.f=_.Ik(a.T,c?b:{},{source:a.o});if(0===a.o.length)throw Error("Invalid request to load: could not find source to load");a.I=!1;e=0;if(!a.J&&2===a.canPlay(a.o[0],a.f)){g.G(3);break}return _.x(g,jp(a,a.o,a.f),4);case 4:f=g.f,d=f.player,e=f.a,a.J=!1;
253
+ case 3:d?_.hp(a,d):a.a.addDelegate(a);mp(a);a.a&&a.a.setCdnErrorCallback(a.F);a.j=so(a,a.f).create(a);a.setSourceIndex(e);if(a.f.pauseWhenInBackground)a.A.on(document,Af,function(){document.hidden?(a.h.debug("Player is hidden: pausing..."),a.pause()):(a.h.debug("Player is visible: resuming..."),a.play())});Sk(a);return _.x(g,a.ic("onContentWillLoad",a.f.source[e]),5);case 5:_.wm(re),performance.measure("player.beforeLoad",se,re),_.y(g)}})};
254
+ _.op=function(a){return _.G(function(b){a.g.getMedia()||a.g.getCastElement();a.A.on(a,_.Re,a.D);a.trigger(new _.L(Pd));return _.x(b,Promise.all([a.a.load(a.f),a.j.load()]),0)})};pp=function(a){var b=_.Tg(a.f.preferredTextLanguage).filter(function(d){return d}),c=a.getTrackManager().ia();b.some(function(d){var e=_.Jh(d);return(d=c.find(function(f){f=_.Jh(f.language||"");return _.Kh(f,e)}))?(a.getTrackManager().Ia(d),!0):!1})};
255
+ _.kp=function(a){var b,c,d,e;return _.G(function(f){switch(f.a){case 1:_.wm(qe);b=[];if(a.f.remoteTextTracks)for(c=_.u(a.f.remoteTextTracks),d=c.next();!d.done;d=c.next())e=d.value,b.push(a.getTrackManager().addTextTrack(e));return _.x(f,Promise.all(b),2);case 2:return pp(a),Tk(),_.x(f,a.ic("onContentLoaded"),3);case 3:if(!a.f.autoplay){f.G(4);break}return _.x(f,a.play(),4);case 4:_.wm(pe),performance.measure("player.afterLoad",qe,pe),_.y(f)}})};
256
+ mp=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.G(function(c){if(!a.Fc||!a.Fe)return c.G(0);a.Fe=!1;return _.x(c,a.Fc(b),0)})})};_.qp=function(a){a&&(0<=fp.indexOf(a)||fp.push(a))};rp=function(a){this.a=a.map(function(b){return{videoId:b.getSurface().getMedia().id,player:b,Fd:!0,ready:Promise.resolve()}});this.h=new _.K("clpp.plist.PlayerPool")};
257
+ up=function(a){_.Ak.call(this);var b=this;this.w=_.M.va({transition:_.ke},a);this.f=[];this.a=0;var c=sp(a.anchorId);this.o=new rp(c);this.g=null;this.j=!1;this.l=new Map;this.A=a.toggleVisible;this.h=new _.K(Tc);this.o.a.forEach(function(d){return tp(b,d.player,!1)})};wp=function(a){return Promise.all(Array.from(a.l.keys()).map(function(b){return vp(a,b)}))};
258
+ vp=function(a,b){var c;return _.G(function(d){if(1==d.a){c=a.l.get(b);if(!c)return d.G(0);a.h.info("Stop preloading item (index: "+b+")");return c.player?_.x(d,a.o.release(c.player),3):d.G(3)}a.l["delete"](b);_.y(d)})};yp=function(a,b){var c;return _.G(function(d){if(1==d.a)return a.h.info("Stop current playback (index: "+b.index+")"),c=b.player,b.player=null,b.videoEl=null,b.role=xp,c.pause(),_.x(d,a.o.release(c),2);tp(a,c,!1);_.y(d)})};
259
+ Ap=function(a,b){var c;return _.G(function(d){if(1==d.a)return _.x(d,a.o.get(),2);c=d.f;a.g=b;b.role=zp;a.g.player=c;a.g.videoEl=c.getSurface().getMedia();tp(a,c,!0);return _.x(d,c.load(b.config),0)})};
260
+ Bp=function(a,b){return _.G(function(c){switch(c.a){case 1:if(!b.player)return c["return"]();if("preloading"!==b.state){c.G(2);break}a.h.info("Wait for preloading to finish");_.B(c,3);return _.x(c,b.preloadPromise,5);case 5:_.ag(c,2);break;case 3:_.D(c);case 2:a.g=b;b.role=zp;tp(a,b.player,!0);if("preloaded"===b.state)return _.wm(Ae),_.x(c,lp(b.player),10);if(b.state!==Be){c.G(0);break}return _.x(c,b.player.load(b.config),0);case 10:_.wm(ze),performance.measure("playlist.next",Ae,ze),_.y(c)}})};
261
+ Dp=function(a){var b;return _.G(function(c){b=a.a+1;a.h.info("Preload following item (index: "+b+")");return _.x(c,Cp(a,b),0)})};Ep=function(a){var b;return _.G(function(c){b=a.a-1;a.h.info("Preload preceding item (index: "+b+")");return _.x(c,Cp(a,b),0)})};Fp=function(a){var b;_.G(function(c){if(0===a.a)return _.x(c,Dp(a),0);if(a.a===a.f.length-1)return _.x(c,Ep(a),0);b=[a.a-1,a.a+1];a.h.info("Preload items (indices: "+b+")");return _.x(c,Promise.all(b.map(function(d){return Cp(a,d)})),0)})};
262
+ Cp=function(a,b){var c,d,e;return _.G(function(f){switch(f.a){case 1:return _.x(f,a.o.get(),2);case 2:return c=f.f,d=a.f[b],d.player=c,d.videoEl=c.getSurface().getMedia(),d.role=xp,d.state="preloading",a.trigger(new _.L(hf)),_.B(f,3),a.l.set(b,d),d.preloadPromise=c.preload(d.config),_.x(f,d.preloadPromise,5);case 5:d.state="preloaded";a.trigger(new _.L(hf));_.ag(f,0);break;case 3:e=_.D(f),7001===e.code?(a.h.info("Preload aborted (index: "+b+")"),d.state="preload-aborted"):(a.h.warn("Preload failed (index: "+
263
+ b+")",e),a.trigger(new _.L(_.yd,{detail:e})),d.state=Be),a.trigger(new _.L(hf)),_.y(f)}})};tp=function(a,b,c){var d=b.getSurface().getMedia();b=b.getSurface().getUniqueCssClass();d&&(c?(a.h.info("Show video element ."+b),d.classList.add("clpp-visible")):(a.h.info("Hide video element ."+b),d.classList.remove("clpp-visible")),a.A&&a.A(d,c))};
264
+ Gp=function(a){var b;return _.G(function(c){if(1==c.a)return _.x(c,a.o.destroy(),2);b=document.getElementById(a.w.anchorId);if(!b)return c["return"]();b.classList.remove(Oc);b.innerHTML="";_.y(c)})};
265
+ sp=function(a){var b=document.getElementById(a);if(!b)throw Error("Anchor element not found");b.classList.add(Oc);return Array.from({length:3}).map(function(){var c=document.createElement(_.uf);c.classList.add("clpp-mc-playlist-video-el");var d=document.createElement(_.gd);d.classList.add("clpp-mc-playlist-item");d.appendChild(c);b.appendChild(d);return new X(c)})};Hp=function(){};Ip=function(){};Jp=function(){};Kp=function(){};ro=function(){};Lp=function(){};_.Mp=function(){};
266
+ Np=function(){this.a=null;this.h=new _.K("clpp.drm.eme.StandardEmeManager")};Op=function(){};Pp=function(){this.size=0;this.a=void 0;this.h=new _.K("clpp.drm.eme.MediaKeyStatusMap")};Qp=function(a,b){a.size=void 0===b?0:1;a.h.debug("Setting key status to",b);a.a=b};Rp=function(){};Sp=function(){};Tp=function(){this.a=this.f=null};
267
+ Up=function(a,b){this.keySystem=a;if(a.startsWith(_.Yc))for(var c=_.u(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.Ie)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.he,distinctiveIdentifier:_.he,initDataTypes:e.initDataTypes,sessionTypes:[Ze],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var h=_.u(e.audioCapabilities),l=h.next();!l.done;l=h.next())l=l.value,l.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&
268
+ (d.audioCapabilities.push(l),g=!0));if(e.videoCapabilities)for(e=_.u(e.videoCapabilities),l=e.next();!l.done;l=e.next())h=l.value,h.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,h.contentType.split(";")[0])&&(d.videoCapabilities.push(h),g=!0));f||(g=WebKitMediaKeys.isTypeSupported(this.keySystem,_.wf));d=g?d:null}if(d){this.a=d;return}}c=Error(Fb);c.name=fb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
269
+ Vp=function(a){this.f=null;this.g=new WebKitMediaKeys(a);this.a=new _.Eg;this.j=0;this.h=new _.K(Rc);this.h.info("Created Media Keys for "+a)};
270
+ Wp=function(a,b){a.f=b;_.Hg(a.a);if(!b)return Promise.resolve();a.a.on(b,vd,function(c){_.ug("AppleEmeManager.cancelNativeMediaEncryptedEvent_",c);"MediaEncryptedEvent"in window&&c instanceof MediaEncryptedEvent&&(a.h.info("Cancel native MediaEncryptedEvent when using Apple-prefixed EME"),c.stopImmediatePropagation())});a.a.on(b,If,function(c){a.h.debug("Handle webkitNeedKey event");c=_.R(c.initData);if(_.Vh(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");
271
+ c=$h(c.subarray(4),!0);c=_.bi(c);var d=new Event(vd);d.initDataType="skd";d.initData=Wh(c);a.f.dispatchEvent(d)});In(b,HTMLMediaElement.HAVE_METADATA,a.a,function(){return b.webkitSetMediaKeys(a.g)});return Promise.resolve()};Xp=function(a,b){_.Ak.call(this);this.a=null;this.o=a;this.f=this.g=null;this.j=new _.Eg;this.sessionId=b;this.expiration=NaN;this.closed=new _.Fi;this.l=!1;this.keyStatuses=new Pp;this.h=new _.K(Rc)};Yp=function(a,b){Qp(a.keyStatuses,b);a.dispatchEvent(new _.L(Gd))};Zp=function(){};
272
+ $p=function(){this.f=this.a=null;this.g="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.g="webkit")};
273
+ aq=function(a,b,c,d){this.g=a;this.a=this.keySystem=c;a=!1;c===_.ie&&(this.a=Ef,a=!1);var e=!1;d=_.u(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=[],h=[],l=!1;if(f.audioCapabilities)for(var m=_.u(f.audioCapabilities),n=m.next();!n.done;n=m.next())n=n.value,n.contentType&&(l=!0,b.canPlayType(n.contentType.split(";")[0],this.a)&&(g.push(n),e=!0));if(f.videoCapabilities)for(g=_.u(f.videoCapabilities),n=g.next();!n.done;n=g.next())m=n.value,m.contentType&&(l=!0,b.canPlayType(m.contentType,
274
+ this.a)&&(h.push(m),e=!0));l||(e=b.canPlayType(_.wf,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.Ie||a||(e=!1);if(e){this.f=f;return}}b=Fb;if(c===_.ie||c===_.ad)b="None of the requested configurations were supported.";c=Error(b);c.name=fb;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};bq=function(a,b){this.g=a;this.o=b;this.a=null;this.f=new _.Eg;this.j=[];this.l=new Map};
275
+ eq=function(a,b){a.a=b;_.Hg(a.f);b&&(a.f.on(b,a.g+"needkey",function(c){var d=new Event(vd);d.initDataType=_.Hc;d.initData=Wh(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.g+"keymessage",function(c){var d=cq(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.L(Sd,{messageType:e?Jd:Id,message:c.message});_.ug("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.vg("Session not found",c.sessionId)}),a.f.on(b,a.g+"keyadded",function(c){(c=
276
+ cq(a,c.sessionId))&&c.ready()}),a.f.on(b,a.g+"keyerror",function(c){var d=cq(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?dq(d,_.je):1===e?dq(d,"expired"):dq(d,_.Fd))}}))};
277
+ cq=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};fq=function(a,b,c,d){_.Ak.call(this);this.w=a;this.j=b;this.o=!1;this.a=this.f=null;this.g=c;this.l=d;this.sessionId="";this.expiration=NaN;this.closed=new _.Fi;this.keyStatuses=new Pp};
278
+ hq=function(a,b,c){if(a.o)return Promise.reject(Error("The session is already initialized."));a.o=!0;try{if(a.l===_.me)if(c)var d=_.R(_.bi("LOAD_SESSION|"+c));else{var e=_.bi("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.R(b),e.byteLength);d=f}else d=_.R(b)}catch(h){return Promise.reject(h)}a.f=new _.Fi;var g=gq(a,"generateKeyRequest");try{a.j[g](a.g,d)}catch(h){if(h.name!==Sa)return a.f=null,Promise.reject(h);(new _.zj(function(){try{a.j[g](a.g,d)}catch(l){a.f.reject(l),
279
+ a.f=null}})).$(.01)}return a.f};iq=function(a,b,c){if(a.a)a.a.then(function(){return iq(a,b,c)})["catch"](function(){return iq(a,b,c)});else{a.a=b;if(a.g===Ef){var d=_.Yh(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=_.oi(e.keys[0].k);e=_.oi(e.keys[0].kid)}else d=_.R(c),e=null;var f=gq(a,"addKey");try{a.j[f](a.g,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};dq=function(a,b){Qp(a.keyStatuses,b);a.dispatchEvent(new _.L(Gd))};
280
+ gq=function(a,b){return a.w?a.w+b.charAt(0).toUpperCase()+b.slice(1):b};jq=function(){};
281
+ kq=function(a,b,c,d,e){_.hl.call(this,Qa);this.l=a;this.j=b;this.g=c;this.a=d;this.o=e;this.h=new _.K(Qc);_.hi(this.l)?this.h.warn(_.Kb):this.Pa(_.ad,{licenseUrl:this.l,videoRobustness:[_.sb,void 0],audioRobustness:[_.rb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.td.bind(this)}});_.hi(this.j)?this.h.warn(_.gb):this.Pa(_.Zc,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.td.bind(this)}});
282
+ _.hi(this.g)?this.h.warn(_.La):_.hi(this.a)?this.h.warn(_.Ka):this.Pa(_.Yc,{licenseUrl:this.g,certificateUrl:this.a,modifiers:{licenseRequest:this.Pg.bind(this),licenseResponse:this.Qg.bind(this),certificateRequest:this.td.bind(this),extractContentId:this.ig.bind(this)}})};lq=function(){};mq=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.Ad)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
283
+ nq=function(a){a=a.target;if(a.webkitPresentationMode===ne){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)};oq=function(){return this.webkitSupportsPresentationMode(ne)?(this.webkitSetPresentationMode(ne),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
284
+ pq=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};qq=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};rq=function(a,b,c){return new window.TextTrackCue(a,b,c)};
285
+ sq=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};uq=function(a,b,c){if("input"===a)switch(this.type){case "range":a=Kc}tq.call(this,a,b,c)};wq=function(){this.a=vq()};xq=function(a){return vq()-a.a};yq=function(a){var b=new wq;b.a=a.a;return b};vq=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};_.zq=function(a){var b=[];a=_.u(a);for(var c=a.next();!c.done;c=a.next()){c=_.u(c.value.variants);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};
286
+ Aq=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.g=b;this.f=0};Bq=function(a,b){var c=a.f+b.byteLength;if(c>a.a.byteLength){var d=a.a;a.a=new Uint8Array(Math.max(Math.ceil(a.a.buffer.byteLength*a.g),c));a.a.set(d)}a.a.set(b,a.f);a.f+=b.byteLength};_.Cq=function(a,b,c){this.f=a;this.j=b;this.g=c||this.f.getMedia();this.a=null};_.Eq=function(){this.a=new Blob([Dq],{type:_.wf})};
287
+ _.Gq=function(a,b,c,d){var e,f;return _.G(function(g){if(1==g.a)return _.B(g,2),_.x(g,Fq(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.D(g);f.a(_.O);throw f;})};
288
+ Fq=function(a,b,c,d){var e,f,g,h;return _.G(function(l){if(1==l.a){if(d){if(e=_.Hq[d.toLowerCase()])return l["return"](e);_.J("Could not determine manifest type using MIME type ",d)}if(f=_.Iq(a)){if(g=_.Jq[f])return l["return"](g);_.J("Could not determine manifest type for extension ",f)}else _.J("Could not find extension for ",a);return d?l.G(2):_.x(l,Kq(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(h=_.Hq[d])return l["return"](h);_.J("Could not determine manifest type using MIME type",d)}throw new _.N(_.O,4,
289
+ 4E3,{url:a});})};Kq=function(a,b,c){var d,e,f;return _.G(function(g){if(1==g.a)return d=_.Ai(a),yi(d,c),d.type=1,d.method="HEAD",_.x(g,b.fetch(d).O,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.Iq=function(a){a=(new _.ph(a)).Aa.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()};Lq=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.g=new wq};
290
+ Nq=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(Mq(a,d),Di(c,d.byteLength,xq(a.g)),a.g.a=vq());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 Nq(a,b,c)})})};Mq=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};
291
+ Pi=function(a){var b=a.uris[a.uriIndex],c=new Oq,d=new wq,e=yq(d),f=0,g,h=new _.Fi;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=xq(e));p.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!l&&(p=p.getResponseHeader(ua),Ci(a,p),l=!0)};c.onload=function(p){p=p.target;var q=(p.getAllResponseHeaders()||"").trim().split("\r\n"),t={};
292
+ q=_.u(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=xq(e);m||Di(a,p.response?p.response.length:0,z);var A=_.Bi(t,p.response,p.status,b,p.responseURL,a,z,g);a.rateLimitBps?Ei(a.rateLimitBps,xq(e),a.bytesLoaded).then(function(){h.resolve(A)}):h.resolve(A)}catch(C){h.reject(C)}};c.onerror=function(p){p=p.target;if(0>=p.status)h.reject(new _.N(1,1,1002,{url:b,request:a,status:p.status}));else{var q=p.getAllResponseHeaders(),t={};if(q){q=
293
+ _.u(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=_.Bi(t,p.response,p.status,b,p.responseURL,a,xq(e),g);h.resolve(p)}};c.ontimeout=function(){h.reject(new _.N(1,1,1003,{url:b,request:a}))};c.onprogress=function(p){var q=xq(d);d.a=vq();if(100<q||p.lengthComputable&&p.loaded===p.total)Di(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{O:h,
294
+ request:a,abort:function(){c.abort();h.reject(new _.N(1,1,7001,{url:b,request:a}));return Promise.resolve()}}};Pq=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.j=new Aq(a);this.length=a;this.A=b;this.f=this.a=this.g=0;this.l=null;this.o=-1;this.w=new wq};
295
+ Sq=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,xq(a.w)),a.w.a=vq());if(f)return f=Qq(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){Bq(a.j,e);a.a=a.g;a.f=a.j.f;a.l=new DataView(a.j.a.buffer,0,a.j.f);e=Rq(a);for(f=[];e;)f.push(e),e=Rq(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],
296
+ 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 Sq(a,b,c,d)})})};Rq=function(a){if(0<=a.o&&a.f<a.o)return null;for(var b=Tq(a);null!==b;){if(b.name===_.Qd){var c={start:a.g,end:b.end,length:b.end-a.g,data:new DataView(a.j.a.buffer,a.g,b.end-a.g),count:1};a.g=b.end;return c}b=Tq(a)}return null};
297
+ Tq=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=Uq(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=Uq(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 _.N(_.O,3,3E3);}if(2097151<e)throw new _.N(_.O,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};
298
+ Uq=function(a){var b=a.l.getUint32(a.a,!1);a.a+=4;return b};Qq=function(a){var b=null;a.g!==a.f&&(b={start:a.g,end:a.f,length:a.f-a.g,data:new DataView(a.j.a.buffer,a.g,a.f-a.g),count:-1});return b};Wq=function(a){_.Gi.call(this,new _.Fi,function(){return Promise.resolve()});this.B=a;this.g=null;this.w=this.O;this.f=-1;this.j=this.l=this.o=null;Vq(this)};Xq=function(a,b,c){a.o=setTimeout(b,c)};
299
+ Vq=function(a){a.g=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=Yq(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*Yq(e.request.fuzzFactor,.5));a.f*=Yq(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,h){a.l=h;Xq(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.N(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
300
+ return e.plugin(e.request)});var b=0,c=0,d=0;return a.g.then(function(e){var f=e.request;f.currentAttempt+=1;b=f.currentAttempt;c=f.maxAttempts;d=f.uris.length;return e.O}).then(function(e){a.w.resolve(e)})["catch"](function(e){if(e instanceof _.N){var f=b<d,g=7001!==e.code,h=b<c;if((1===e.severity||f)&&g&&h)return Vq(a);g&&e.a(_.O);a.w.reject(e)}else a.w.reject(e)})};Yq=function(a,b){return null===a||void 0===a?b:a};
301
+ _.Zq=function(a){this.a=!1;this.g=a;this.j=this.l.bind(this);this.g.Vc(this.j);this.f=null};
302
+ $q=function(a){var b=a.split("\x3d"),c=b[0];b=b[1];if(!c)throw new kh("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 kh("Parsing CMSD, not recognized value type of "+a);};
303
+ Qi=function(a){var b=new ar,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new br,e={Zc:!1,qh:!1};b={O:cr(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.Zc||(e.Zc=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.qh=!0;d.abort()},a);b.O=b.O["finally"](function(){window.clearTimeout(f)})}return b};
304
+ cr=function(a,b,c,d){var e,f,g,h,l,m,n,p,q,t,v,z,A,C,F,E;return _.G(function(H){switch(H.a){case 1:return e=dr,l=new wq,m=yq(l),_.B(H,2),_.x(H,e(a,c),4);case 4:f=H.f;h=xq(l);n=f.headers.get(ua);Ci(b,n);p=n?parseInt(n,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return v=f.body.getReader(),z=new Pq(p,!b.disableMergedFragments),A=function(Q,P){if(d.Zc)return null;P&&P.data&&(Di(b,P.data.byteLength,xq(l)),l.a=vq());return b.onFragment&&P?b.rateLimitBps?Ei(b.rateLimitBps,xq(m),b.bytesLoaded).then(function(){return b.onFragment(P)}):
305
+ b.onFragment(P):null},_.x(H,Sq(z,v,A,b.onProgress),10);q=f.body.getReader();t=new Lq(p);return _.x(H,Nq(t,q,b),7);case 7:g=H.f;if(!b.rateLimitBps){H.G(6);break}return _.x(H,Ei(b.rateLimitBps,xq(m),g.byteLength),6);case 10:g=H.f;case 6:_.ag(H,3);break;case 2:C=_.D(H);if(d.Zc)throw new _.N(1,1,7001,{url:a,request:b});if(d.qh)throw new _.N(1,1,1003,{url:a,request:b});_.vg("Error while fetching data:",C);throw new _.N(1,1,1002,{url:a,error:C,request:b,status:-1},C);case 3:F={};E=f.headers;E.forEach(function(Q,
306
+ P){F[P.trim()]=Q});if(d.Zc)throw new _.N(1,1,7001,{url:a,request:b});return H["return"](_.Bi(F,g,f.status,a,f.url,b,xq(m),h))}})};Li=function(a){try{var b=a.uris[a.uriIndex],c=_.er(b);return{O:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{O:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
307
+ _.er=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.vg("Bad data URI, failed to parse scheme"),new _.N(_.O,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.vg("Bad data URI, failed to extract encoding and MIME type"),new _.N(_.O,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?_.oi(a).buffer:_.bi(a).buffer,contentType:c}};_.gr=function(a){delete _.fr[a]};
308
+ _.hr=function(a){a=a.getConfiguration();a=_.M.Sa(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.Ue?a.backgroundColor:null;this.V=typeof a.windowColor===_.Ue?a.windowColor:null;this.P=typeof a.fontColor===_.Ue?a.fontColor:null;this.T=typeof a.fontFamily===_.Ue?a.fontFamily:null;this.I=typeof a.fontSize===_.Ue?a.fontSize:null;this.B=typeof a.fontSizePercent===_.k?a.fontSizePercent:null;this.H=typeof a.edgeColor===_.Ue?a.edgeColor:"rgba(0, 0, 0, 1)";this.o=null;typeof a.edgeType===
309
+ _.Ue&&(this.o=a.edgeType)};_.mr=function(a){if(!a.o)return null;var b=a.H;switch(a.o){case ir:return"-2px -2px 0 "+b+", -1px -1px 0 "+b;case jr:return"2px 2px 0 "+b+", 1px 1px 0 "+b;case kr:return"-1px 0 "+b+", 0 1px "+b+", 1px 0 "+b+", 0 -1px "+b;case lr:return"2px 2px 3px "+b+", 2px 2px 4px "+b+", 2px 2px 5px "+b;default:return _.$d}};nr=function(a){this.f=a;this.a=null;this.h=new _.K("clpp.text.Mp4TextParser")};
310
+ _.pr=function(a){_.hr.call(this,a);this.l=a.getSurface().getMedia();this.f="clpp-video-"+or++;this.g=document.createElement(_.We);this.j=this.w=!1;_.uo(this.l,this.f);document.head.appendChild(this.g);this.rb()};qr=function(){};_.rr=function(){};Pf=typeof Object.create==_.Ad?Object.create:function(a){function b(){}b.prototype=a;return new b};
311
+ if(typeof Object.setPrototypeOf==_.Ad)sr=Object.setPrototypeOf;else{var tr;a:{var ur={Ah:!0},vr={};try{vr.__proto__=ur;tr=vr.Ah;break a}catch(a){}tr=!1}sr=tr?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
312
+ var Qf=sr,Uf=typeof Object.defineProperties==_.Ad?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},Sf="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;Vf.prototype.toString=function(){return this.a};var Tf=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new Vf("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
313
+ Yf.prototype.A=function(a){this.f=a};Yf.prototype["return"]=function(a){this.g={"return":a};this.a=this.l};Yf.prototype.G=function(a){this.a=a};
314
+ jg("Promise",function(a){function b(g){this.f=0;this.l=void 0;this.a=[];var h=this.g();try{g(h.resolve,h.reject)}catch(l){h.reject(l)}}function c(){this.a=null}function d(g){return g instanceof b?g:new b(function(h){h(g)})}if(a)return a;c.prototype.f=function(g){if(null==this.a){this.a=[];var h=this;this.g(function(){h.l()})}this.a.push(g)};var e=Sf.setTimeout;c.prototype.g=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=
315
+ g[h];g[h]=null;try{l()}catch(m){this.j(m)}}}this.a=null};c.prototype.j=function(g){this.g(function(){throw g;})};b.prototype.g=function(){function g(m){return function(n){l||(l=!0,m.call(h,n))}}var h=this,l=!1;return{resolve:g(this.D),reject:g(this.j)}};b.prototype.D=function(g){if(g===this)this.j(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.F(g);else{a:switch(typeof g){case _.ae:var h=null!=g;break a;case _.Ad:h=!0;break a;default:h=!1}h?this.B(g):this.o(g)}};
316
+ b.prototype.B=function(g){var h=void 0;try{h=g.then}catch(l){this.j(l);return}typeof h==_.Ad?this.H(h,g):this.o(g)};b.prototype.j=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.F=function(g){var h=this.g();
317
+ g.Gd(h.resolve,h.reject)};b.prototype.H=function(g,h){var l=this.g();try{g.call(h,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,h){function l(q,t){return typeof q==_.Ad?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.Gd(l(g,m),l(h,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.Gd=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: "+
318
+ m.f);}}var m=this;null==this.a?f.f(l):this.a.push(l)};b.resolve=d;b.reject=function(g){return new b(function(h,l){l(g)})};b.race=function(g){return new b(function(h,l){for(var m=_.u(g),n=m.next();!n.done;n=m.next())d(n.value).Gd(h,l)})};b.all=function(g){var h=_.u(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).Gd(p(q.length-1),n),l=h.next();while(!l.done)})};return b});var lg=this||self;
319
+ lg.a=!0;_.M={xh:20,Sa:function(a){var b=_.M.R,c=_.M.Eg,d=_.M.va;return b(a)||c(a)?a:d(a)}};_.I("clpp.utils.obj.cloneItem",_.M.Sa);_.M.va=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];c={};for(var d=0;d<b.length;d++)null!=b[d]&&(c=_.M.Ig(c,{merging:b[d]},1));return c.merging||null};_.I("clpp.utils.obj.merge",_.M.va);_.M.Kj=function(a){for(var b in a)if(void 0!==a[b])return!0;return!1};
320
+ _.M.Ig=function(a,b,c){var d=_.M.R,e=_.M.Eg,f=_.M.Ig,g=_.M.mb,h=_.M.Vj,l=_.M.Dg,m=_.M.Rj,n=_.M.Mc;c+=1;if(d(a)||!n(a))a={};for(var p in b)n=b[p],e(n)||d(n)||g(n)||m(n)?a[p]=n:h(n)?a[p]=n.subarray(0):n instanceof Array?a[p]=f([],n,c):!d(n)&&l(n)&&c<_.M.xh&&(a[p]=f(a[p],n,c));return a};_.M.Eg=function(a){a=typeof a;return a===_.Ue||a===_.k||a===_.zc};_.M.Rj=function(a){return a instanceof Element};_.M.R=function(a){return null===a||"undefined"===typeof a};_.M.Mc=function(a){return typeof a===_.ae};
321
+ _.M.mb=function(a){return typeof a===_.Ad};_.M.Z=function(a){return typeof a===_.Ue};_.M.la=function(a){return typeof a===_.k};_.M.Bg=function(a){return typeof a===_.zc};_.M.Dg=function(a){var b=_.M.Mc,c=_.M.R;if(c(a)||!b(a))return!1;a=Object.getPrototypeOf(a);return a===Object.prototype||null===a};_.M.Vj=function(a){var b=_.M.Mc,c=_.M.mb;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};
322
+ _.M.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||!_.M.Mc(a)||!_.M.Mc(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var h=e[g];if(_.M.R(d)||0>d.indexOf(h))if(f[h]=!0,a[h]!==b[h])return!1}if(_.M.R(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.M.R(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
323
+ _.M.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.M.Sj=function(a,b,c){return a>=b&&a<=c};_.M.Ff=function(a){for(var b=new Map,c=_.u(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b};_.M.Gf=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};var qg={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.I("clpp.log.Level",qg);var og=3,mg={},wr=[];_.I("clpp.log.getLoggers",function(){return _.M.Sa(mg)});_.I("clpp.log.addInterceptor",function(a){a&&wr.push(a)});_.I("clpp.log.removeInterceptor",function(a){a&&(a=wr.indexOf(a),0<=a&&wr.splice(a,1))});_.I("clpp.log.getTagLevel",pg);_.I("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=mg[a]});_.I("clpp.log.setTagLevel",function(a,b){a&&(_.M.Z(b)&&(b=rg(b)),mg[a]=b)});
324
+ _.I("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.M.Z(a)&&(a=rg(a));og=a});_.I("clpp.log.getLogLevel",function(){return og});_.r=_.K.prototype;
325
+ _.r.log=function(a,b){if(window.console){if(1<arguments.length){var c=arguments[0];Array.prototype.shift.call(arguments)}else c=3;var d=pg(this.tag);if(0<=d){if(d<c)return}else if(og<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):
326
+ 1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.u(wr);for(var e=d.next();!e.done;e=d.next())e=e.value,e.call(e,c,arguments)}};_.r.info=function(a){Array.prototype.unshift.call(arguments,3);this.log.apply(this,arguments)};_.r.debug=function(a){Array.prototype.unshift.call(arguments,4);this.log.apply(this,arguments)};_.r.warn=function(a){Array.prototype.unshift.call(arguments,2);this.log.apply(this,arguments)};
327
+ _.r.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.r.aj=function(a){return a?this.tag?new _.K(this.tag+"."+a):new _.K(a):this};_.I("clpp.log.Logger",_.K);_.K.prototype.createChild=_.K.prototype.aj;_.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 sg=new _.K("clpp");_.I("clpp.log.info",_.tg);
328
+ _.I("clpp.log.debug",_.ug);_.I("clpp.log.warn",_.J);_.I("clpp.log.error",_.vg);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.zg=new _.K("clpp.players");_.yg={};_.Bg.prototype.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.Bg.prototype.get=function(a){return(a=this.a[a])?a.slice():[]};_.Bg.prototype.remove=function(a,b){var c=this.a[a];if(!c)return!1;for(var d=!1,e=0;e<c.length;++e)c[e]==b&&(c.splice(e,1),--e,d=!0);return d};_.Bg.prototype.clear=function(){this.a={}};Cg.prototype.Wb=function(a){try{this.Bc.handleEvent?this.Bc.handleEvent(a):this.Bc.call(this.a,a)}catch(b){_.vg("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(){};_.r=Dg.prototype;
329
+ _.r.trigger=function(a){var b=this.a.get(a.type);if(b)for(var c=0;c<b.length&&(a.target=this.f,a.currentTarget=this.f,b[c].Wb(a),b[c].ql&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.r.on=function(a,b,c){this.a.push(a,new Cg(a,b,c||this.f));return b};_.r.one=function(a,b,c){this.a.push(a,new Cg(a,b,c||this.f,!0));return b};_.r.off=function(a,b){var c=this.a.get(a),d=!1;if(c)for(var e=0;e<c.length;e++)c[e].Bc===b&&(d=this.a.remove(a,c[e])||d);return d};_.r.clear=function(){this.a.clear()};_.Eg.prototype.release=function(){_.Hg(this)};_.Eg.prototype.on=function(a,b,c,d){a=new Ig(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.Eg.prototype.one=function(a,b,c){function d(f){e.off(a,b,d);return c(f)}var e=this;this.on(a,b,d)};_.Eg.prototype.off=function(a,b,c){for(var d=this.a.get(b)||[],e=0;e<d.length;++e){var f=d[e];f.target!=a||c!=f.a&&c||(Gg(f),this.a.remove(b,f))}};Jg.prototype.release=function(){this.f.release();this.g=[];this.a=null};Jg.prototype.destroy=function(){var a=this;return _.G(function(b){a.release();a.l=null;a.j=null;_.y(b)})};Jg.prototype.getTimelineCues=function(){return this.g};_.dh.prototype.pa=function(a){return this.payload===a.payload&&this.startTime===a.startTime&&this.endTime===a.endTime&&this.payloadType===a.payloadType};_.I("clpp.text.Cue",_.dh);_.dh.positionAlign={LEFT:_.Kd,RIGHT:_.Ld,CENTER:_.Ic,AUTO:"auto"};_.Yg=_.$e;_.dh.payloadType={TEXT:_.Yg,VTT_XML:_.Bf,TTML_XML:_.ef};_.Zg=_.Ic;_.xr={LEFT:_.Hd,RIGHT:_.Ke,CENTER:_.Zg,START:_.Hd,END:_.Ke};_.dh.textAlign=_.xr;var ch="ltr";_.dh.direction={HORIZONTAL_LEFT_TO_RIGHT:ch,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.$g="horizontal-tb";
330
+ _.dh.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.$g,VERTICAL_LEFT_TO_RIGHT:_.sf,VERTICAL_RIGHT_TO_LEFT:_.tf};_.ah=0;_.dh.lineInterpretation={LINE_NUMBER:_.ah,PERCENTAGE:1};_.bh=_.Qe;_.yr={CENTER:_.Ic,START:_.bh,END:_.wd};_.dh.lineAlign=_.yr;_.I("clpp.text.CueRegion",_.gh);_.eh=1;_.gh.units={PX:0,PERCENTAGE:_.eh,LINES:2};var fh="";_.gh.scrollMode={NONE:fh,UP:"up"};_.gh.displayAlign={BEFORE:"flex-end",CENTER:_.Ic,AFTER:"flex-start"};
331
+ _.gh.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Wc,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};hh.prototype.destroy=function(){this.a.release();this.j=!1;this.l=this.a=this.g=this.f=null;return Promise.resolve()};hh.prototype.start=function(a){var b=this;this.j?this.h.warn("Already started. Ignoring request..."):(this.j=!0,this.g=a,this.f=this.g.textTracks,this.a.on(this.f,_.cc,function(c){return ih(b,c)}),this.a.on(this.f,Kc,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.Ne&&(e.mode=_.Cd)}}))};
332
+ hh.prototype.o=function(a){var b=new _.dh(a.startTime,a.endTime,a.text,_.Bf);if(_.M.Z(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.sf;break;case "rl":b.writingMode=_.tf}_.M.la(a.size)&&(b.size=a.size);if(_.M.Z(a.align))switch(a.align){case _.Hd:case _.Qe:b.textAlign=_.Hd;break;case _.Ic:b.textAlign=_.Zg;break;case _.Ke:case _.wd:b.textAlign=_.Ke}_.M.la(a.position)&&(b.position=a.position);if(_.M.Z(a.positionAlign))switch(a.positionAlign){case _.Kd:b.positionAlign=_.Kd;break;case _.Ic:b.positionAlign=
333
+ _.Ic;break;case _.Ld:b.positionAlign=_.Ld}_.M.la(a.line)&&(b.line=a.line);if(_.M.Z(a.lineAlign))switch(a.lineAlign){case _.Qe:b.lineAlign=_.bh;break;case _.Ic:b.lineAlign=_.Ic;break;case _.wd:b.lineAlign=_.wd}_.M.Bg(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.ah:1);return b};_.w(_.N,Error);_.N.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=jh(this.severity,this.category,this.code,this.data))};_.N.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.I("clpp.Error",_.N);_.O=2;_.N.Severity={RECOVERABLE:1,FATAL:_.O};_.N.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
334
+ _.N.Code={UNSUPPORTED_SCHEME:1E3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,UNKNOWN_DATA_URI_ENCODING:1005,REQUEST_MODIFIER_ERROR:1006,RESPONSE_MODIFIER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,INVALID_TEXT_HEADER:2E3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,FETCH_OR_APPEND_ERROR:2010,INVALID_MP4:2011,
314
335
  TEXT_PARSER_MISSING:2012,THUMBNAILS_FAILED_TO_LOAD:2013,BUFFER_READ_OUT_OF_BOUNDS:3E3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,
315
336
  MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,MP4_PARSER_ERROR:3019,MEDIA_LOAD_ERROR:3100,INVALID_TRACK_TYPE:3101,UNKNOWN_TRACK:3102,MEDIA_DECRYPTION_ERROR:3103,PLAY_NOT_ALLOWED:3200,UNABLE_TO_GUESS_MANIFEST_TYPE:4E3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,
316
337
  DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,UNPLAYABLE_PERIOD:4011,RESTRICTIONS_CANNOT_BE_MET:4012,NO_PERIODS:4014,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_COULD_NOT_GUESS_MIME_TYPE:4021,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027,
317
338
  DASH_XLINK_DEPTH_LIMIT:4028,HLS_COULD_NOT_PARSE_SEGMENT_START_TIME:4030,CONTENT_UNSUPPORTED_BY_BROWSER:4032,SMOOTH_INVALID_MANIFEST_XML:4033,SMOOTH_EMPTY_PRESENTATION:4034,SMOOTH_MEDIA_PROCESSING_ERROR:4035,SMOOTH_INVALID_VERSION:4036,SMOOTH_INVALID_FRAGMENT_METADATA:4037,SMOOTH_REQUIRED_ATTRIBUTE_MISSING:4038,SMOOTH_TRUNCATED_MEDIA_FILE:4039,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4040,HLS_MSE_ENCRYPTED_TS_NOT_SUPPORTED:4041,HLS_PLAYLIST_NOT_UTF8:4042,HLS_PLAYLIST_EMPTY:4043,HLS_INVALID_VALUE:4044,
318
- HLS_DISCONTINUITY_NOT_SUPPORTED:4045,HLS_UNSUPPORTED_FEATURE:4046,INVALID_STREAMS_CHOSEN:5005,NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,REQUESTED_DRM_ENVIRONMENT_UNAVAILABLE:6015,
319
- 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,INVALID_CONTAINER_ELEMENT:7006,INVALID_CONFIGURATION:7100,INVALID_LICENSE:7101,NO_ELEMENT:7102,USER_ID_NOT_PROVIDED:7103,
320
- 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,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,
321
- MUX_SDK_MISSING:9301,MUXDATA_INIT_ERROR:9302,IMA_SDK_MISSING:1E4,IMA_INVALID_CONFIGURATION:10001,IMA_UNSUPPORTED_PLATFORM:10002,AD_ERROR:10003,BROADPEAK_SDK_MISSING:11E3,BROADPEAK_SESSION_ERROR:11001,FREEWHEEL_SDK_MISSING:12E3,FREEWHEEL_INVALID_CONFIGURATION:12001,CONTENT_TRANSFORMATION_FAILED:14E3};_.w(Lg,Error);var Ug=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;_.t=_.Pg.prototype;_.t.bb="";_.t.oc="";_.t.Ka="";_.t.Tc=null;_.t.Ba="";_.t.cc="";_.t.toString=function(){var a=[],b=this.bb;b&&a.push(Xg(b,mq,!0),":");if(b=this.Ka){a.push("//");var c=this.oc;c&&a.push(Xg(c,mq,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Tc;null!=b&&a.push(":",String(b))}if(b=this.Ba)this.Ka&&"/"!=b.charAt(0)&&a.push("/"),a.push(Xg(b,"/"==b.charAt(0)?nq:oq,!0));(b=this.a.toString())&&a.push("?",b);(b=this.cc)&&a.push("#",Xg(b,pq));return a.join("")};
322
- _.t.resolve=function(a){var b=new _.Pg(this);"data"===b.bb&&(b=new _.Pg);var c=!!a.bb;c?Qg(b,a.bb):c=!!a.oc;c?b.oc=a.oc:c=!!a.Ka;c?b.Ka=a.Ka:c=null!=a.Tc;var d=a.Ba;if(c)Rg(b,a.Tc);else if(c=!!a.Ba){if("/"!=d.charAt(0))if(this.Ka&&!this.Ba)d="/"+d;else{var e=b.Ba.lastIndexOf("/");-1!=e&&(d=b.Ba.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(""):
323
- ".."==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.Ba=d:c=""!==a.a.toString();c?_.Sg(b,Tg(a.a)):c=!!a.cc;c&&(b.cc=a.cc);return b};var mq=/[#\/\?@]/g,oq=/[#\?:]/g,nq=/[#\?]/g,Yg=/[#\?@]/g,pq=/#/g;Wg.prototype.a=null;Wg.prototype.g=null;Wg.prototype.add=function(a,b){_.$g(this);this.f=null;var c=this.a.hasOwnProperty(a)&&this.a[a];c||(this.a[a]=c=[]);c.push(b);null!==this.g&&this.g++;return this};
324
- Wg.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")};_.nn={VIDEO:_.Re,AUDIO:_.mc,TEXT:_.Ce,zl:_.dc,IMAGE:_.od,Kl:_.ye};_.qq=1/15;var ah={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av1$/],text:[/^vtt$/,/^wvtt/,/^stpp/]};_.dh={text:{mp4:gc,m4s:gc,m4i:gc,cmft:gc,vtt:_.De,ttml:_.jc},video:{mp4:_.Te,m4s:_.Te,m4i:_.Te,m4v:_.Te,cmfv:_.Te,ts:_.Se},audio:{mp4:_.qc,m4s:_.qc,m4i:_.qc,m4a:_.qc,cmfa:_.qc,ts:_.Se,aac:_.nc,ec3:_.pc,ac3:_.oc},image:{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.fh.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};_.fh.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name==a});return b.length?b[0]:null};var kh=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",
325
- "cs"],["dan","da"],["deu","de"],[_.Zc,"dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice",
339
+ HLS_DISCONTINUITY_NOT_SUPPORTED:4045,HLS_UNSUPPORTED_FEATURE:4046,HLS_INCOMPATIBLE_PLAYLIST_UPDATE:4047,INVALID_STREAMS_CHOSEN:5005,NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,
340
+ 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,INVALID_CONTAINER_ELEMENT:7006,INVALID_CONFIGURATION:7100,
341
+ 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,YOUBORA_SDK_MISSING:9100,YOUBORA_INVALID_CONFIGURATION:9101,YOUBORA_SDK_VERSION_NOT_SUPPORTED:9102,VIMOND_INVALID_CONFIGURATION:9200,
342
+ 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,BROADPEAK_SDK_MISSING:11E3,BROADPEAK_SESSION_ERROR:11001,FREEWHEEL_SDK_MISSING:12E3,FREEWHEEL_INVALID_CONFIGURATION:12001,CONTENT_TRANSFORMATION_FAILED:14E3};_.w(kh,Error);var uh=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;_.r=_.ph.prototype;_.r.ab="";_.r.mc="";_.r.Ka="";_.r.Qc=null;_.r.Aa="";_.r.bc="";_.r.toString=function(){var a=[],b=this.ab;b&&a.push(yh(b,zr,!0),":");if(b=this.Ka){a.push("//");var c=this.mc;c&&a.push(yh(c,zr,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Qc;null!=b&&a.push(":",String(b))}if(b=this.Aa)this.Ka&&"/"!=b.charAt(0)&&a.push("/"),a.push(yh(b,"/"==b.charAt(0)?Ar:Br,!0));(b=this.a.toString())&&a.push("?",b);(b=this.bc)&&a.push("#",yh(b,Cr));return a.join("")};
343
+ _.r.resolve=function(a){var b=new _.ph(this);"data"===b.ab&&(b=new _.ph);var c=!!a.ab;c?qh(b,a.ab):c=!!a.mc;c?b.mc=a.mc:c=!!a.Ka;c?b.Ka=a.Ka:c=null!=a.Qc;var d=a.Aa;if(c)rh(b,a.Qc);else if(c=!!a.Aa){if("/"!=d.charAt(0))if(this.Ka&&!this.Aa)d="/"+d;else{var e=b.Aa.lastIndexOf("/");-1!=e&&(d=b.Aa.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(""):
344
+ ".."==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.Aa=d:c=""!==a.a.toString();c?_.sh(b,th(a.a)):c=!!a.bc;c&&(b.bc=a.bc);return b};var zr=/[#\/\?@]/g,Br=/[#\?:]/g,Ar=/[#\?]/g,zh=/[#\?@]/g,Cr=/#/g;_.wh.prototype.a=null;_.wh.prototype.g=null;
345
+ _.wh.prototype.add=function(a,b){if(!this.a&&(this.a={},this.g=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.g&&this.g++;return this};
346
+ _.wh.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")};_.io={VIDEO:_.uf,AUDIO:_.rc,TEXT:_.$e,Ol:_.ic,IMAGE:_.Ed,zh:_.Xe};_.Dr=1/15;var Bh={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av1$/],text:[/^vtt$/,/^wvtt/,/^stpp/]};_.Eh={text:{mp4:lc,m4s:lc,m4i:lc,cmft:lc,vtt:_.af,ttml:_.oc},video:{mp4:_.wf,m4s:_.wf,m4i:_.wf,m4v:_.wf,cmfv:_.wf,ts:_.vf},audio:{mp4:_.vc,m4s:_.vc,m4i:_.vc,m4a:_.vc,cmfa:_.vc,ts:_.vf,aac:_.sc,ec3:_.uc,ac3:_.tc},image:{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}};_.Gh.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};_.Gh.prototype.getAttribute=function(a){var b=this.attributes.filter(function(c){return c.name==a});return b.length?b[0]:null};var Lh=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",
347
+ "cs"],["dan","da"],["deu","de"],[_.gd,"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",
326
348
  "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",
327
349
  "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",
328
350
  "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",
329
- "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);var ph=function rq(a){var c;return _.Jf(rq,function(d){1==d.a&&(c=0);if(3!=d.a)return c<a?_.x(d,c,3):d.G(0);c++;return d.G(2)})};_.C("clpp.utils.BufferUtils",nh);nh.toArrayBuffer=wh;nh.toDataView=_.vh;nh.toInt32Array=_.uh;nh.toUint32Array=th;nh.toUint16Array=sh;nh.toUint8Array=_.N;nh.equal=qh;var zh=new _.I("clpp.utils.strings");_.C("clpp.utils.strings.fromUtf8",_.yh);_.C("clpp.utils.strings.fromBytesAutoDetect",_.Bh);_.C("clpp.utils.strings.toUtf8",_.Ch);_.C("clpp.utils.strings.toUtf16",_.Dh);_.C("clpp.utils.strings.toByteArray",_.Eh);_.C("clpp.utils.strings.startsWith",_.Fh);_.C("clpp.utils.strings.endsWith",_.Gh);_.C("clpp.utils.strings.bitrateToString",_.Jh);
330
- _.C("clpp.utils.strings.durationToString",function(a,b){function c(h){return function(l,m){return d(h,m.length-1)}}function d(h,l){return h.length<l?d("0"+h,l):h}b=void 0===b?"%h:%mm:%ss":b;if(null===a||void 0===a)a=0;if(null===b||void 0===b)b="%h:%mm:%ss";var e=Math.floor(a/3600),f=Math.floor((a-3600*e)/60),g=Math.floor(a-3600*e-60*f);return b.replace(/(%h+)/,c(String(e))).replace(/(%m+)/,c(String(f))).replace(/(%s+)/,c(String(g)))});
331
- _.C("clpp.utils.strings.hashCode",function(a){var b=0;if(0===a.length)return b;for(var c=0;c<a.length;c++)b=(b<<5)-b+a.charCodeAt(c),b|=0;return b});var Kh=document.createElement("span");_.C("clpp.utils.Uint8ArrayUtils",_.Mh);_.Mh.toStandardBase64=_.Nh;_.Mh.concat=_.Th;_.Mh.equal=_.Sh;_.Mh.toHex=_.Rh;_.Mh.fromHex=_.Qh;_.Mh.fromBase64=_.Ph;_.Mh.toBase64Url=_.Oh;var Xh=[403,401];_.C("clpp.net.DEFAULT_FATAL_STATUS_CODES",Xh);_.C("clpp.net.makeRequest",_.ai);_.$h=6;_.C("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.$h});_.fi.prototype.resolve=function(){};_.fi.prototype.reject=function(){};_.gi.prototype.abort=function(){this.a=!0;return this.A()};_.gi.prototype.Kd=function(a,b){function c(){e.reject(new _.L(_.M,7,7001));return d.abort()}var d=this,e=new _.fi;this.P.then(function(f){d.a?e.reject(new _.L(_.M,7,7001)):a?c=ii(a,f,e):e.resolve(f)},function(f){b?c=ii(b,f,e):e.reject(f)});return new _.gi(e,function(){return c()})};_.gi.aborted=function(){var a=Promise.reject(new _.L(_.M,7,7001));a["catch"](function(){});return new _.gi(a,function(){return Promise.resolve()})};
332
- _.gi.prototype.chain=_.gi.prototype.Kd;_.ji.prototype.destroy=function(){for(var a=[],b=_.u(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.P["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.t=_.ri.prototype;_.t.ll=function(a){0<a?_.G("Rate limit set to "+a+"bps"):_.G("Rate limit disabled");this.j=a};_.t.release=function(){return this.m.destroy()};_.t.destroy=function(){this.o=!0;this.f=[];this.g=[];return this.m.destroy()};_.t.Df=function(a){this.f.push(a)};_.t.Gd=function(a){this.g.push(a)};_.t.$g=function(a){this.f=this.f.filter(function(b){return b!==a})};_.t.ee=function(a){this.g=this.g.filter(function(b){return b!==a})};
333
- _.t.fetch=function(a){var b=this;if(this.o)return new Lp(Promise.reject(new _.L(1,1,7001,{url:a.uris[a.uriIndex],request:a})));this.j&&0<this.j&&(a.rateLimitBps=this.j);for(var c=[],d=_.u(this.f),e=d.next();!e.done;e=d.next())c.push(e.value);if(a.requestModifiers)for(d=_.u(a.requestModifiers),e=d.next();!e.done;e=d.next())c.push(e.value);a.requestModifiers=c;c=[];d=_.u(this.g);for(e=d.next();!e.done;e=d.next())c.push(e.value);if(a.responseModifiers)for(d=_.u(a.responseModifiers),e=d.next();!e.done;e=
334
- d.next())c.push(e.value);a.responseModifiers=c;d=c=new _.fi;try{var f={},g=_.u(a.requestModifiers);for(e=g.next();!e.done;f={me:f.me},e=g.next())f.me=e.value,d=d.then(function(m){return function(n){if(h.a)throw new _.L(_.M,1,7001,n?{url:n.uris[n.uriIndex],request:n}:null);return m.me(n)||n}}(f))["catch"](function(m){if(m instanceof _.L)throw m;throw new _.L(_.M,1,1006,null,m);});d=d.then(function(m){var n=new _.Pg(m.uris[m.uriIndex]),p=n.bb;p||(p=location.protocol,p=p.slice(0,-1),Qg(n,p),m.uris[m.uriIndex]=
335
- n.toString());p=b.a[p];if(!p)throw new _.L(_.M,1,1E3,{url:n.toString()});return{request:m,plugin:p}});var h=new Lp(d);g={};var l=_.u(a.responseModifiers);for(e=l.next();!e.done;g={Ed:g.Ed},e=l.next())g.Ed=e.value,h.then(function(m){return function(n){function p(){if(h.a)throw new _.L(_.M,1,7001,n?{url:n.request.uris[n.request.uriIndex],request:n.request}:null);}p();var q=m.Ed(n)||n;p();return q}}(g))["catch"](function(m){return function(n){if(n instanceof _.L&&n.data&&n.data.response){var p=m.Ed(n.data.response);
336
- if(p)return p.then(function(){return Promise.reject(n)})}return Promise.reject(n)}}(g))["catch"](function(m){if(m instanceof _.L)throw m;throw new _.L(_.M,1,1007,null,m);});_.ki(this.m,h);c.resolve(a);return h}catch(m){return new Lp(Promise.reject(m))}};_.C("clpp.net.NetworkEngine",_.ri);_.ri.prototype.fetch=_.ri.prototype.fetch;_.ri.prototype.removeResponseModifier=_.ri.prototype.ee;_.ri.prototype.removeRequestModifier=_.ri.prototype.$g;_.ri.prototype.addResponseModifier=_.ri.prototype.Gd;
337
- _.ri.prototype.addRequestModifier=_.ri.prototype.Df;_.ri.prototype.setRateLimit=_.ri.prototype.ll;var xi;_.ui.prototype.pa=function(a){return this.type===a.type&&this.channelsCount===a.channelsCount&&this.frameRate===a.frameRate&&this.kind===a.kind&&this.label===a.label&&this.language===a.language&&this.mimeType===a.mimeType&&wg(this.roles,a.roles)&&wg(this.accessibility,a.accessibility,Bi)};_.ui.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.C("clpp.Track",_.ui);_.ui.prototype.toString=_.ui.prototype.toString;
338
- _.C("clpp.Rendition",_.Ci);_.zi=1;_.wi=_.Re;_.R=_.mc;_.P=_.Ce;xi=_.Cd;_.sq={VIDEO:_.wi,AUDIO:_.R,TEXT:_.P,METADATA:xi};_.ui.Type=_.sq;_.C("clpp.utils.url.queryString",_.Fi);Ii.prototype.g=function(a,b){var c=this,d,e,f,g,h,l,m;return _.B(function(n){switch(n.a){case 1:return d=null,_.Bf(n,2),_.x(n,Oi(c,a),4);case 4:d=n.f;_.Cf(n,3);break;case 2:return e=_.Df(n),c.h.warn("Failed to fetch playlist in order metadata from HLS playlist.",e.message),n["return"](Promise.resolve({}));case 3:f={};_.Bf(n,5);if(!b.enableHlsVideoTrackInfo){n.G(7);break}return _.x(n,Li(c,d,a),8);case 8:g=n.f,f.renditions=g.renditions,f.mimeType=g.mimeType;case 7:_.Cf(n,6);break;case 5:h=_.Df(n),c.h.warn("Failed to parse video metadata from HLS playlist.",
339
- h.message);case 6:return _.Bf(n,9),_.x(n,Ni(d),11);case 11:l=n.f;f.Qc=l;_.Cf(n,10);break;case 9:m=_.Df(n),c.h.warn("Failed to parse metadata from HLS playlist.",m.message);case 10:return n["return"](f)}})};_.Ui=[];_.t=_.S.prototype;_.t.we=function(){return!0};_.t.fj=function(a){return this.getVideoTracks().find(function(b){return _.K.pa(b,a,a&&Object.keys(a))})};_.t.bj=function(a){return this.getAudioTracks().find(function(b){return _.K.pa(b,a,a&&Object.keys(a))})};_.t.dj=function(a){return this.ia().find(function(b){return _.K.pa(b,a,a&&Object.keys(a))})};_.t.ej=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.K.pa(b,a,a&&Object.keys(a))})};
340
- _.t.aj=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.K.pa(b,a,a&&Object.keys(a))})};_.t.cj=function(a){return this.ia().flatMap(function(b){return b.renditions}).find(function(b){return _.K.pa(b,a,a&&Object.keys(a))})};_.C("clpp.TrackManager",_.S);_.S.prototype.isAbrEnabled=_.S.prototype.ka;_.S.prototype.addTextTrack=_.S.prototype.addTextTrack;_.S.prototype.findTextRendition=_.S.prototype.cj;_.S.prototype.findAudioRendition=_.S.prototype.aj;
341
- _.S.prototype.findVideoRendition=_.S.prototype.ej;_.S.prototype.findTextTrack=_.S.prototype.dj;_.S.prototype.findAudioTrack=_.S.prototype.bj;_.S.prototype.findVideoTrack=_.S.prototype.fj;_.S.prototype.setTextRendition=_.S.prototype.qb;_.S.prototype.setAudioRendition=_.S.prototype.pb;_.S.prototype.setVideoRendition=_.S.prototype.cb;_.S.prototype.setTextTrack=_.S.prototype.Ga;_.S.prototype.setAudioTrack=_.S.prototype.ya;_.S.prototype.setVideoTrack=_.S.prototype.eb;_.S.prototype.getTextTrack=_.S.prototype.ra;
342
- _.S.prototype.getAudioTrack=_.S.prototype.qa;_.S.prototype.getVideoTrack=_.S.prototype.Pa;_.S.prototype.getLoadingTextRendition=_.S.prototype.jb;_.S.prototype.getLoadingAudioRendition=_.S.prototype.ib;_.S.prototype.getLoadingVideoRendition=_.S.prototype.Za;_.S.prototype.getTextRendition=_.S.prototype.Na;_.S.prototype.getAudioRendition=_.S.prototype.La;_.S.prototype.getVideoRendition=_.S.prototype.fa;_.S.prototype.getTextTracks=_.S.prototype.ia;_.S.prototype.getAudioTracks=_.S.prototype.getAudioTracks;
343
- _.S.prototype.getVideoTracks=_.S.prototype.getVideoTracks;_.S.prototype.canSelectVideoTracks=_.S.prototype.we;_.tq=new Map;_.uq=(new Map).set(_.Oc,_.Oc).set("frameRate","framerate").set("bandwidth","bitrate").set(_.ff,_.ff).set(_.md,_.md).set("channelsCount","channels");_.Yi.prototype.aa=function(a){return Zi(this,a,!1)};_.Yi.prototype.fb=function(a){return Zi(this,a,!0)};_.Yi.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.$i.prototype.wf=function(){this.stop();this.f();return this};_.$i.prototype.aa=function(a){var b=this;this.stop();this.a=(new _.Yi(function(){b.f()})).aa(a);return this};_.$i.prototype.fb=function(a){var b=this;this.stop();this.a=(new _.Yi(function(){b.f()})).fb(a);return this};_.$i.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.C("clpp.utils.Timer",_.$i);_.$i.prototype.stop=_.$i.prototype.stop;_.$i.prototype.tickEvery=_.$i.prototype.fb;_.$i.prototype.tickAfter=_.$i.prototype.aa;
344
- _.$i.prototype.tickNow=_.$i.prototype.wf;_.C(Nc,aj);aj.getInfo=_.oi;
345
- var mj=null,lj=null,oj=new _.I(Nc),vj="android",uj="ios",Aj="linux",wj="osx",xj="windows",yj="tizen",zj="webos",tj=Je,Dj=Je,Cj={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,
351
+ "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);var Ph=function Er(a){var c;return _.ig(Er,function(d){1==d.a&&(c=0);if(3!=d.a)return c<a?_.x(d,c,3):d.G(0);c++;return d.G(2)})};_.I("clpp.utils.BufferUtils",Nh);Nh.toArrayBuffer=Wh;Nh.toDataView=_.Vh;Nh.toInt32Array=_.Uh;Nh.toUint32Array=Th;Nh.toUint16Array=Sh;Nh.toUint8Array=_.R;Nh.equal=Qh;var Zh=new _.K("clpp.utils.strings");_.I("clpp.utils.strings.fromUtf8",_.Yh);_.I("clpp.utils.strings.fromBytesAutoDetect",_.ai);_.I("clpp.utils.strings.toUtf8",_.bi);_.I("clpp.utils.strings.toUtf16",_.ci);_.I("clpp.utils.strings.toByteArray",_.di);_.I("clpp.utils.strings.startsWith",_.ei);_.I("clpp.utils.strings.endsWith",_.fi);_.I("clpp.utils.strings.bitrateToString",_.ii);
352
+ _.I("clpp.utils.strings.durationToString",function(a,b){function c(h){return function(l,m){return d(h,m.length-1)}}function d(h,l){return h.length<l?d("0"+h,l):h}b=void 0===b?"%h:%mm:%ss":b;if(null===a||void 0===a)a=0;if(null===b||void 0===b)b="%h:%mm:%ss";var e=Math.floor(a/3600),f=Math.floor((a-3600*e)/60),g=Math.floor(a-3600*e-60*f);return b.replace(/(%h+)/,c(String(e))).replace(/(%m+)/,c(String(f))).replace(/(%s+)/,c(String(g)))});
353
+ _.I("clpp.utils.strings.hashCode",function(a){var b=0;if(0===a.length)return b;for(var c=0;c<a.length;c++)b=(b<<5)-b+a.charCodeAt(c),b|=0;return b});var ji=document.createElement("span");_.I("clpp.utils.Uint8ArrayUtils",_.li);_.li.toStandardBase64=_.mi;_.li.concat=_.si;_.li.equal=_.ri;_.li.toHex=_.qi;_.li.fromHex=_.pi;_.li.fromBase64=_.oi;_.li.toBase64Url=_.ni;var wi=[403,401];_.I("clpp.net.DEFAULT_FATAL_STATUS_CODES",wi);_.I("clpp.net.makeRequest",_.Ai);_.zi=6;_.I("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.zi});_.Fi.prototype.resolve=function(){};_.Fi.prototype.reject=function(){};_.Gi.prototype.abort=function(){this.a=!0;return this.A()};_.Gi.prototype.Jd=function(a,b){function c(){e.reject(new _.N(_.O,7,7001));return d.abort()}var d=this,e=new _.Fi;this.O.then(function(f){d.a?e.reject(new _.N(_.O,7,7001)):a?c=Ii(a,f,e):e.resolve(f)},function(f){b?c=Ii(b,f,e):e.reject(f)});return new _.Gi(e,function(){return c()})};_.Gi.aborted=function(){var a=Promise.reject(new _.N(_.O,7,7001));a["catch"](function(){});return new _.Gi(a,function(){return Promise.resolve()})};
354
+ _.Gi.prototype.chain=_.Gi.prototype.Jd;_.Ji.prototype.destroy=function(){for(var a=[],b=_.u(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.O["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};_.r=_.Ri.prototype;_.r.Al=function(a){0<a?_.J("Rate limit set to "+a+"bps"):_.J("Rate limit disabled");this.j=a};_.r.release=function(){return this.l.destroy()};_.r.destroy=function(){this.o=!0;this.f=[];this.g=[];return this.l.destroy()};_.r.Df=function(a){this.f.push(a)};_.r.Vc=function(a){this.g.push(a)};_.r.fh=function(a){this.f=this.f.filter(function(b){return b!==a})};_.r.fe=function(a){this.g=this.g.filter(function(b){return b!==a})};
355
+ _.r.fetch=function(a){var b=this;if(this.o)return new Wq(Promise.reject(new _.N(1,1,7001,{url:a.uris[a.uriIndex],request:a})));this.j&&0<this.j&&(a.rateLimitBps=this.j);for(var c=[],d=_.u(this.f),e=d.next();!e.done;e=d.next())c.push(e.value);if(a.requestModifiers)for(d=_.u(a.requestModifiers),e=d.next();!e.done;e=d.next())c.push(e.value);a.requestModifiers=c;c=[];d=_.u(this.g);for(e=d.next();!e.done;e=d.next())c.push(e.value);if(a.responseModifiers)for(d=_.u(a.responseModifiers),e=d.next();!e.done;e=
356
+ d.next())c.push(e.value);a.responseModifiers=c;d=c=new _.Fi;try{var f={},g=_.u(a.requestModifiers);for(e=g.next();!e.done;f={pe:f.pe},e=g.next())f.pe=e.value,d=d.then(function(m){return function(n){if(h.a)throw new _.N(_.O,1,7001,n?{url:n.uris[n.uriIndex],request:n}:null);return m.pe(n)||n}}(f))["catch"](function(m){if(m instanceof _.N)throw m;throw new _.N(_.O,1,1006,null,m);});d=d.then(function(m){var n=new _.ph(m.uris[m.uriIndex]),p=n.ab;p||(p=location.protocol,p=p.slice(0,-1),qh(n,p),m.uris[m.uriIndex]=
357
+ n.toString());p=b.a[p];if(!p)throw new _.N(_.O,1,1E3,{url:n.toString()});return{request:m,plugin:p}});var h=new Wq(d);g={};var l=_.u(a.responseModifiers);for(e=l.next();!e.done;g={Dd:g.Dd},e=l.next())g.Dd=e.value,h.then(function(m){return function(n){function p(){if(h.a)throw new _.N(_.O,1,7001,n?{url:n.request.uris[n.request.uriIndex],request:n.request}:null);}p();var q=m.Dd(n)||n;p();return q}}(g))["catch"](function(m){return function(n){if(n instanceof _.N&&n.data&&n.data.response){var p=m.Dd(n.data.response);
358
+ if(p)return p.then(function(){return Promise.reject(n)})}return Promise.reject(n)}}(g))["catch"](function(m){if(m instanceof _.N)throw m;throw new _.N(_.O,1,1007,null,m);});_.Ki(this.l,h);c.resolve(a);return h}catch(m){return new Wq(Promise.reject(m))}};_.I("clpp.net.NetworkEngine",_.Ri);_.Ri.prototype.fetch=_.Ri.prototype.fetch;_.Ri.prototype.removeResponseModifier=_.Ri.prototype.fe;_.Ri.prototype.removeRequestModifier=_.Ri.prototype.fh;_.Ri.prototype.addResponseModifier=_.Ri.prototype.Vc;
359
+ _.Ri.prototype.addRequestModifier=_.Ri.prototype.Df;_.Ri.prototype.setRateLimit=_.Ri.prototype.Al;var Xi;_.Ui.prototype.pa=function(a){return this.type===a.type&&this.channelsCount===a.channelsCount&&this.frameRate===a.frameRate&&this.kind===a.kind&&this.label===a.label&&this.language===a.language&&this.mimeType===a.mimeType&&Wg(this.roles,a.roles)&&Wg(this.accessibility,a.accessibility,aj)};_.Ui.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.I("clpp.Track",_.Ui);_.Ui.prototype.toString=_.Ui.prototype.toString;
360
+ _.I("clpp.Rendition",_.bj);_.Zi=1;_.Wi=_.uf;_.T=_.rc;_.S=_.$e;Xi=_.Td;_.Fr={VIDEO:_.Wi,AUDIO:_.T,TEXT:_.S,METADATA:Xi};_.Ui.Type=_.Fr;_.I("clpp.utils.url.queryString",_.ej);hj.prototype.g=function(a,b){var c=this,d,e,f,g,h,l,m;return _.G(function(n){switch(n.a){case 1:return d=null,_.B(n,2),_.x(n,nj(c,a),4);case 4:d=n.f;_.ag(n,3);break;case 2:return e=_.D(n),c.h.warn("Failed to fetch playlist in order metadata from HLS playlist.",e.message),n["return"](Promise.resolve({}));case 3:f={};_.B(n,5);if(!b.enableHlsVideoTrackInfo){n.G(7);break}return _.x(n,kj(c,d,a),8);case 8:g=n.f,f.renditions=g.renditions,f.mimeType=g.mimeType;case 7:_.ag(n,6);break;case 5:h=_.D(n),c.h.warn("Failed to parse video metadata from HLS playlist.",
361
+ h.message);case 6:return _.B(n,9),_.x(n,mj(d),11);case 11:l=n.f;f.Nc=l;_.ag(n,10);break;case 9:m=_.D(n),c.h.warn("Failed to parse metadata from HLS playlist.",m.message);case 10:return n["return"](f)}})};_.tj=[];_.r=_.U.prototype;_.r.ze=function(){return!0};_.r.nj=function(a){return this.getVideoTracks().find(function(b){return _.M.pa(b,a,a&&Object.keys(a))})};_.r.jj=function(a){return this.getAudioTracks().find(function(b){return _.M.pa(b,a,a&&Object.keys(a))})};_.r.lj=function(a){return this.ia().find(function(b){return _.M.pa(b,a,a&&Object.keys(a))})};_.r.mj=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.M.pa(b,a,a&&Object.keys(a))})};
362
+ _.r.ij=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.M.pa(b,a,a&&Object.keys(a))})};_.r.kj=function(a){return this.ia().flatMap(function(b){return b.renditions}).find(function(b){return _.M.pa(b,a,a&&Object.keys(a))})};_.I("clpp.TrackManager",_.U);_.U.prototype.isAbrEnabled=_.U.prototype.ka;_.U.prototype.addTextTrack=_.U.prototype.addTextTrack;_.U.prototype.findTextRendition=_.U.prototype.kj;_.U.prototype.findAudioRendition=_.U.prototype.ij;
363
+ _.U.prototype.findVideoRendition=_.U.prototype.mj;_.U.prototype.findTextTrack=_.U.prototype.lj;_.U.prototype.findAudioTrack=_.U.prototype.jj;_.U.prototype.findVideoTrack=_.U.prototype.nj;_.U.prototype.setTextRendition=_.U.prototype.pb;_.U.prototype.setAudioRendition=_.U.prototype.ob;_.U.prototype.setVideoRendition=_.U.prototype.bb;_.U.prototype.setTextTrack=_.U.prototype.Ia;_.U.prototype.setAudioTrack=_.U.prototype.xa;_.U.prototype.setVideoTrack=_.U.prototype.cb;_.U.prototype.getTextTrack=_.U.prototype.ra;
364
+ _.U.prototype.getAudioTrack=_.U.prototype.qa;_.U.prototype.getVideoTrack=_.U.prototype.Oa;_.U.prototype.getLoadingTextRendition=_.U.prototype.ib;_.U.prototype.getLoadingAudioRendition=_.U.prototype.hb;_.U.prototype.getLoadingVideoRendition=_.U.prototype.Ya;_.U.prototype.getTextRendition=_.U.prototype.Ma;_.U.prototype.getAudioRendition=_.U.prototype.La;_.U.prototype.getVideoRendition=_.U.prototype.ga;_.U.prototype.getTextTracks=_.U.prototype.ia;_.U.prototype.getAudioTracks=_.U.prototype.getAudioTracks;
365
+ _.U.prototype.getVideoTracks=_.U.prototype.getVideoTracks;_.U.prototype.canSelectVideoTracks=_.U.prototype.ze;_.Gr=new Map;_.Hr=(new Map).set(_.Vc,_.Vc).set("frameRate","framerate").set("bandwidth","bitrate").set(_.Jf,_.Jf).set(_.Bd,_.Bd).set("channelsCount","channels");_.xj.prototype.$=function(a){return yj(this,a,!1)};_.xj.prototype.eb=function(a){return yj(this,a,!0)};_.xj.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.zj.prototype.xf=function(){this.stop();this.f();return this};_.zj.prototype.$=function(a){var b=this;this.stop();this.a=(new _.xj(function(){b.f()})).$(a);return this};_.zj.prototype.eb=function(a){var b=this;this.stop();this.a=(new _.xj(function(){b.f()})).eb(a);return this};_.zj.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.I("clpp.utils.Timer",_.zj);_.zj.prototype.stop=_.zj.prototype.stop;_.zj.prototype.tickEvery=_.zj.prototype.eb;_.zj.prototype.tickAfter=_.zj.prototype.$;
366
+ _.zj.prototype.tickNow=_.zj.prototype.xf;_.I(Uc,Aj);Aj.getInfo=_.Oi;
367
+ var Mj=null,Lj=null,Oj=new _.K(Uc),Vj="android",Uj="ios",ak="linux",Wj="osx",Xj="windows",Yj="tizen",Zj="webos",Tj=gf,dk=gf,ck={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,
346
368
  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,
347
369
  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},
348
- 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}};_.w(Ej,_.S);_.t=Ej.prototype;_.t.we=function(){return!_.gj()};
349
- _.t.ff=function(a,b){var c=this,d,e,f,g,h,l,m,n,p,q,r,v,z,A,D,F,E,H;return _.B(function(Q){if(1==Q.a){if(!b)return c.h.warn(Ya),Q["return"]();d=b.track;if(!d)return c.h.warn(Za),Q["return"]();e=a===_.R;f=a===_.wi;g=a===_.P;h=e||f;l=b.target;if(m=c.g.find(function(O){return Sj(O,d,a)}))return c.h.warn("Track from event already exists",d,m),Q["return"]();n=Ai(a,d);p=Wj(d);if(g){if(d.kind===_.Cd)return Q["return"]();void 0!==d.id?q=c.o[d.id]:(r=Object.values(c.o),q=r.find(function(O){return Sj(n,O,a)}));
350
- n.kind&&"captions"===n.kind&&(n.mimeType=_.ec);q&&(n.src=q.url,n.mimeType=q.mimeType)}else if(m=c.g.find(function(O){return O.type===a&&_.K.pa(O,n,["kind","label","language"])}))return m.id=d.id,p&&(c.h.debug(ob+a+" track active"),c.a.set(a,m)),c.h.debug("Track from event seems to already exists, flipped native track to",d),Q["return"]();_.Bf(Q,2);v=new _.Ci(n.id,n);n.renditions.push(v);c.g.push(n);z=c.l.getConfiguration().safari;return Ij(c,a,z)?_.x(Q,Lj(c,n,z),5):Jj(c,a,z)?_.x(Q,Mj(c,n,z),5):Q.G(5)}if(2!=
351
- Q.a)return c.h.debug(a+" Track added",n),c.l.trigger(new _.J(_.vq)),A=Pj(c,a).length,D=!(!l||!l.length),F=l&&l.length||0,E=function(){c.h.debug(ob+a+" track active. Native track active: "+(p+". Number of tracks: ")+A,d);c.a.set(a,n)},p?E():1===A&&h&&(f?E():D&&1!==F||E()),_.Cf(Q,0);H=_.Df(Q);c.h.error("Error while converting track data",H);_.y(Q)})};
352
- _.t.hf=function(a,b){if(b){var c=b.track;if(!c)this.h.warn(Za);else if(a===_.P&&c.kind!==_.Cd){var d=this.g.find(function(e){return Sj(e,c,a)});d&&(this.g.splice(this.g.indexOf(d),1),(this.a.get(a)||null)===d&&(this.a.set(a,null),Yj(this)),this.h.debug(a+" Track removed, id: ",d.id))}}else this.h.warn(Ya)};
353
- _.t.gf=function(a,b){this.h.debug(a+" Track changed",b);a===_.P&&Yj(this);var c=Oj(this,a);if(c)for(var d={uc:0};d.uc<c.length;d={uc:d.uc},++d.uc)if(Wj(c[d.uc])){if(d=this.g.find(function(e){return function(f){return Sj(f,c[e.uc],a)}}(d)))this.a.set(a,d),this.h.debug("Track change detected, id:",d.id),d===this.m.get(a)&&this.m.set(a,null),a===_.R?this.l.trigger(new _.J(_.Tj)):a===_.P&&this.l.trigger(new _.J(_.Uj));break}};_.t.initialize=function(a){this.l=a;this.j=new Ii(a.getNetworkEngine())};
354
- _.t.load=function(){this.A=!1;var a=Nj(this,_.P);a&&(this.f.on(a,_.Yb,this.J),this.f.on(a,he,this.M),this.f.on(a,Fc,this.K));if(a=Nj(this,_.R))this.f.on(a,_.Yb,this.F),this.f.on(a,he,this.I),this.f.on(a,Fc,this.H);if(a=Nj(this,_.wi))this.f.on(a,_.Yb,this.N),this.f.on(a,he,this.V),this.f.on(a,Fc,this.T);this.f.one(this.l,yc,this.zi.bind(this))};_.t.release=function(){this.A=!0;this.g=[];this.o={};this.a.clear();this.m.clear();this.f.release()};_.t.destroy=function(){this.release();this.l=null};
355
- _.t.getVideoTracks=function(){return Pj(this,_.wi)};_.t.getAudioTracks=function(){return Pj(this,_.R)};_.t.ia=function(){return Pj(this,_.P)};_.t.fa=function(){var a=this,b=this.a.get(_.wi)||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.La=function(){return Qj(this,_.R)};_.t.Na=function(){return Qj(this,_.P)};_.t.Za=function(){return Rj(this,_.wi)};
356
- _.t.ib=function(){return Rj(this,_.R)};_.t.jb=function(){return Rj(this,_.P)};_.t.Pa=function(){return this.a.get(_.wi)||null};_.t.qa=function(){return this.a.get(_.R)||null};_.t.ra=function(){return this.a.get(_.P)||null};_.t.eb=function(a){Vj(this,_.wi,a)};_.t.ya=function(a){Vj(this,_.R,a)};_.t.Ga=function(a){Vj(this,_.P,a)};_.t.cb=function(a){Vj(this,_.wi,a&&a.track)};_.t.pb=function(a){Vj(this,_.R,a&&a.track)};_.t.qb=function(a){Vj(this,_.P,a&&a.track)};
357
- _.t.addTextTrack=function(a){var b=this,c;return _.B(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.B++,b.o[c]=a,Fj(b,a,c),d.G(0)):_.x(d,Gj(b,a),0)})};_.t.ka=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};
358
- _.t.zi=function(){var a=this,b,c,d;return _.B(function(e){if(1==e.a){b=a.l.getConfiguration();Xj(a,_.R,b.preferredAudioLanguage);c=Oj(a,_.P);if(c.some(function(f){return Wj(f)}))return e.G(2);d=Nj(a,_.P);return _.x(e,new Promise(function(f){a.f.one(d,Fc,f);(new _.$i(f)).aa(1)}),2)}if(a.A)return e["return"]();Xj(a,_.P,b.preferredTextLanguage);_.y(e)})};Ej.prototype.isAbrEnabled=Ej.prototype.ka;Ej.prototype.addTextTrack=Ej.prototype.addTextTrack;Ej.prototype.setTextRendition=Ej.prototype.qb;
359
- Ej.prototype.setAudioRendition=Ej.prototype.pb;Ej.prototype.setVideoRendition=Ej.prototype.cb;Ej.prototype.setTextTrack=Ej.prototype.Ga;Ej.prototype.setAudioTrack=Ej.prototype.ya;Ej.prototype.setVideoTrack=Ej.prototype.eb;Ej.prototype.getTextTrack=Ej.prototype.ra;Ej.prototype.getAudioTrack=Ej.prototype.qa;Ej.prototype.getVideoTrack=Ej.prototype.Pa;Ej.prototype.getLoadingTextRendition=Ej.prototype.jb;Ej.prototype.getLoadingAudioRendition=Ej.prototype.ib;Ej.prototype.getLoadingVideoRendition=Ej.prototype.Za;
360
- Ej.prototype.getTextRendition=Ej.prototype.Na;Ej.prototype.getAudioRendition=Ej.prototype.La;Ej.prototype.getVideoRendition=Ej.prototype.fa;Ej.prototype.getTextTracks=Ej.prototype.ia;Ej.prototype.getAudioTracks=Ej.prototype.getAudioTracks;Ej.prototype.getVideoTracks=Ej.prototype.getVideoTracks;Ej.prototype.canSelectVideoTracks=Ej.prototype.we;_.t=_.Zj.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(ub);};_.t.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(ub);};_.t.ub=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.Da=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
361
- _.t.hc=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};
362
- _.t.Ja=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.Da();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};_.C("clpp.BufferInfo",_.Zj);_.Zj.prototype.bufferedAheadOf=_.Zj.prototype.Ja;
363
- _.Zj.prototype.isBuffered=_.Zj.prototype.hc;_.Zj.prototype.bufferEnd=_.Zj.prototype.Da;_.Zj.prototype.bufferStart=_.Zj.prototype.ub;_.Zj.prototype.end=_.Zj.prototype.end;_.Zj.prototype.start=_.Zj.prototype.start;_.t=_.ak.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.md.on(a,b,c)};_.t.one=function(a,b,c){return this.md.one(a,b,c)};_.t.off=function(a,b){return this.md.off(a,b)};_.t.addDelegate=function(a){a&&(0<=this.kd.indexOf(a)||this.kd.push(a))};_.t.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};_.t.removeDelegate=function(a){a&&(a=this.kd.indexOf(a),0<=a&&this.kd.splice(a,1))};
364
- _.t.trigger=function(a){this.md.trigger(a);for(var b=_.u(this.kd),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.ak.prototype.off=_.ak.prototype.off;_.ak.prototype.one=_.ak.prototype.one;_.ak.prototype.on=_.ak.prototype.on;_.ak.prototype.removeEventListener=_.ak.prototype.removeEventListener;_.ak.prototype.addEventListener=_.ak.prototype.addEventListener;_.C("clpp.events.ERROR",_.jd);_.C("clpp.events.LOADEDMETADATA",_.xd);_.C("clpp.events.BUFFERING_ENDED",_.vc);_.C("clpp.events.BUFFERING_STARTED",_.wc);_.C("clpp.events.STATE_CHANGED",_.re);_.Tj="audiotrackchanged";_.C("clpp.events.AUDIO_TRACK_CHANGED",_.Tj);_.Uj="texttrackchanged";_.C("clpp.events.TEXT_TRACK_CHANGED",_.Uj);_.C("clpp.events.VIDEO_TRACK_CHANGED",_.Ve);_.C("clpp.events.BITRATE_CHANGED",_.tc);_.vq="tracksadded";_.C("clpp.events.TRACKS_ADDED",_.vq);_.C("clpp.events.LOAD_START",yd);
365
- _.C("clpp.events.RELEASING",_.ge);_.C("clpp.events.RELEASED",fe);_.C("clpp.events.DESTROYING","destroying");_.C("clpp.events.DESTROYED","destroyed");_.C("clpp.events.VIDEO_BUFFER_CHANGED",_.Ue);_.C("clpp.events.AUDIO_BUFFER_CHANGED",_.rc);_.C("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.C("clpp.events.DRM_SESSION_UPDATE",_.cd);_.C("clpp.events.DRM_SESSION_PERSISTED",_.bd);_.C("clpp.events.DRM_RENEWAL_STARTED",ad);_.C("clpp.events.DRM_EXPIRATION_UPDATE",_.$c);
366
- _.C("clpp.events.AUTOPLAY_NOT_ALLOWED",_.sc);_.C("clpp.events.PLAY",_.Zd);_.C("clpp.events.SEEKING",_.me);_.C("clpp.events.SEEKED",_.le);_.C("clpp.events.USER_SEEKING",_.Ne);_.C("clpp.events.USER_SEEKED",_.Me);_.Wm={SEEKING:1,NO_DATA:2};_.C("clpp.events.BufferingReasons",_.Wm);_.C("clpp.events.ADS_TIMELINE_CHANGED",_.Zb);_.C("clpp.events.AD_LOADED",_.Ob);_.C("clpp.events.AD_BREAK_STARTED",_.Fb);_.C("clpp.events.AD_STARTED",_.Vb);_.C("clpp.events.AD_BUFFERING",_.Ib);_.C("clpp.events.AD_PROGRESS",_.Sb);
367
- _.C("clpp.events.AD_FIRST_QUARTILE",_.Lb);_.C("clpp.events.AD_MIDPOINT",_.Pb);_.C("clpp.events.AD_THIRD_QUARTILE",_.Xb);_.C("clpp.events.AD_PAUSED",_.Qb);_.C("clpp.events.AD_RESUMED",_.Tb);_.C("clpp.events.AD_SKIPPED",_.Ub);_.C("clpp.events.AD_CLICKED",_.Jb);_.C("clpp.events.AD_IMPRESSION",_.Nb);_.C("clpp.events.AD_COMPLETED",_.Kb);_.C("clpp.events.AD_STOPPED",_.Wb);_.C("clpp.events.AD_BREAK_STOPPED",_.Hb);_.C("clpp.events.CASTING_STARTED",_.zc);_.C("clpp.events.CASTING_ENDED","castingended");
368
- _.C("clpp.events.CAST_STATUS_CHANGED",_.Ac);_.C("clpp.events.AIRPLAY_STATUS_CHANGED",_.cc);_.C("clpp.events.AIRPLAY_CASTING_STARTED",_.ac);_.C("clpp.events.AIRPLAY_CASTING_ENDED",_.$b);_.pg="timeline-cue-added";_.C("clpp.events.TIMELINE_CUE_ADDED",_.pg);_.rg="timeline-cue-enter";_.C("clpp.events.TIMELINE_CUE_ENTER",_.rg);_.sg="timeline-cue-exit";_.C("clpp.events.TIMELINE_CUE_EXIT",_.sg);_.C("clpp.events.MPD_TYPE_CHANGED",_.Hd);_.C("clpp.events.VIMOND_RESPONSE",_.We);
369
- _.C("clpp.events.PLAYLIST_ITEM_CHANGED",_.ae);_.C("clpp.events.PLAYLIST_MODIFIED",_.be);_.C("clpp.events.CDN_SWITCH_SUCCESS",_.Bc);_.C("clpp.events.ONLINE_STATUS_CHANGED",Rd);var bk=["play() failed because the user didn't interact","The play method is not allowed by the user agent","The request is not allowed by the user agent or the platform"];_.C("clpp.utils.PlayerConfiguration",dk);dk.create=_.ik;var wq=["abort",xc,yc,ed,"emptied",fd,_.id,_.jd,"interruptbegin","interruptend",_.wd,_.xd,yd,"mozaudioavailable",_.Vd,_.Zd,_.$d,_.ce,_.ee,_.le,_.me,pe,"suspend",_.Fe,"volumechange",_.Ze,_.$e,_.je,ef,df,bf,cf];_.w(_.kk,_.ak);_.t=_.kk.prototype;_.t.init=function(a,b){this.configuration=this.Pd=b;this.D=a;this.log.info("Initializing Player surface");var c=this.D.getMedia();this.log.info("Attaching media element listeners");for(var d=_.u(wq),e=d.next();!e.done;e=d.next())e=e.value,this.M.on(c,e,this.ul,e!==_.jd);this.$c||(this.$c=this.ag());this.$c.initialize(this);this.D.showMediaElement()};_.t.release=function(){this.K&&(this.K.destroy(),this.K=null);return Promise.resolve()};
370
- _.t.destroy=function(){this.M.release();return Promise.resolve()};_.t.canPlay=function(a,b){return _.Yf[this.namespace()].canPlay(a,b)};
371
- _.t.play=function(){var a=this;if(!this.w)return Promise.reject("No sources specified yet. You need to load content before calling play.");var b=this.D.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||""};ck(d)?(a.trigger(new _.J(_.sc)),a.log.warn(_.ja)):d.name===ab&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
372
- _.t.pause=function(){var a=this;return this.w?new Promise(function(b,c){var d=a.getState();if(d!==_.Tm&&d!==_.Vm&&d!==_.bn&&d!==_.an)c();else if(a.D.getMedia().pause(),a.getState()===_.bn)a.M.one(a,_.re,function(){b()});else b()}):Promise.reject("No sources specified yet. You need to load content before calling pause.")};_.t.isPaused=function(){return this.D.getMedia().paused};_.t.isEnded=function(){return this.D.getMedia().ended};_.t.getConfiguration=function(){return this.configuration};
373
- _.t.setDrmCustomDataModifier=function(a){this.Ic=a};_.t.setCdnErrorCallback=function(a){this.wc=a};_.t.Mc=function(){return this.Ic};_.t.getSurface=function(){return this.D};_.t.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.Zj(b?b.buffered:void 0,a)};_.t.getPosition=function(){var a=this.D.getMedia();if(a)return a.currentTime;this.log.warn("No media element available, can not report current time!");return 0};
374
- _.t.seek=function(a){var b=this,c=this.getPosition();if(void 0===a||null===a||typeof a!==_.k||a===c)return Promise.resolve();var d=this.D.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,_.xd,m)}function l(n){var p=b.getPosition(),
375
- q=.1>=Math.abs(a-p),r=.25<p-a,v=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,z=n.type===_.le,A=n.type===_.ce,D=n.type===_.Fe,F=A&&v;r=z||q&&F||D&&r;b.log.debug("Checking seeking state after "+n.type+" event. Seek completed:",r,"Current Time:",p,"Target Time:",a,"Native Event:",z,"Time reached",q,"Timeupdate:",D,"Progress:",A,"ReadyState:",v,"Progress Ready:",F);r?(b.Te=!1,b.Yd=!1,b.M.off(d,_.le,l),b.M.off(d,_.Fe,l),b.M.off(d,_.ce,l),b.Pg(),b.trigger(new _.J(_.Me)),f()):A&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
376
- d.currentTime=a)}function m(){b.trigger(new _.J(_.Ne));b.M.on(d,_.le,l);b.M.on(d,_.Fe,l);b.M.on(d,_.ce,l);b.log.info("Seeking to "+a+". Delta "+e);b.Te=!0;b.Yd=!0;d.currentTime=a}b.getState()===_.Om?(b.log.debug("Player is in IDLE state. Postpone seek."),b.M.one(b,_.re,function(){switch(b.getState()){case _.Tm:case _.bn:case _.an:b.log.debug("Valid seek state reached.");h();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):h()})};
377
- _.t.getVolume=function(){var a=this.D.getMedia();if(a)return a.volume;this.log.warn("No media element available, can not report volume!");return null};_.t.setVolume=function(a){var b=this.D.getMedia();b?_.K.la(a)?0>a||1<a?this.log.warn(oa+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(oa+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.t.isMuted=function(){return this.D.getMedia().muted};
378
- _.t.setMuted=function(a){var b=this.D.getMedia();typeof a===_.uc&&(b.muted=a)};_.t.getDuration=function(){return this.w?this.D.getMedia().duration:-1};_.t.getTrackManager=function(){return this.$c};_.t.getPlaybackRate=function(){var a=this.D.getMedia();return a&&a.playbackRate||1};_.t.setPlaybackRate=function(a){var b=this.D.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.t.setSourceIndex=function(a){this.Rd=a};_.t.getSourceIndex=function(){return this.Rd};
379
- _.t.getLoadedSource=function(){return this.w&&-1!==this.Rd?this.w[this.Rd]:null};_.t.getPeriods=function(){return[]};_.t.getNetworkEngine=function(){return this.Bg};_.t.setNetworkEngine=function(a){this.Bg=a};_.t.getTextDisplayer=function(){return this.K};_.t.getTimelineCues=function(){return[]};_.t.resetAbr=function(){};
380
- _.t.cl=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.Fe||a.type===_.ce)this.jh.debug(d);else{var e="";switch(a.type){case _.ee:e="Rate: "+this.getPlaybackRate();break;case ed:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.Zd:case _.$d:case "suspend":case _.Ze:case pe:case _.me:case _.le:case _.Fe:case _.ce:case xc:case yc:b=
381
- this.getBufferInfo().Ja(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.je:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.jh.info(d)}a.type!==_.jd&&this.trigger(new _.J(a.type,{detail:a}))};_.t.Pg=function(){};_.kk.prototype.getTextDisplayer=_.kk.prototype.getTextDisplayer;_.kk.prototype.setNetworkEngine=_.kk.prototype.setNetworkEngine;_.kk.prototype.getNetworkEngine=_.kk.prototype.getNetworkEngine;var nk;nk=new _.I("clpp.Components");_.lk=new Map;qk.prototype.release=function(){this.a=this.f=null};_.C("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.lb,SW_SECURE_DECODE:_.mb,HW_SECURE_CRYPTO:Ka,HW_SECURE_DECODE:La,HW_SECURE_ALL:"HW_SECURE_ALL"});_.C("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.C("clpp.drm.KeySystem",{NONE:_.Kd,CLEAR_KEY:_.Td,WIDEVINE:_.Tc,PLAYREADY:_.Sc,FAIRPLAY:_.Rc,PRIMETIME:_.Qc});_.uk={};_.C("clpp.drm.registerDrmEnvironment",_.vk);var yk={V1_STAGING:[10,191,2,8,3,18,16,40,112,52,84,192,8,246,54,24,173,231,68,61,182,196,200,24,139,231,249,144,5,34,142,2,48,130,1,10,2,130,1,1,0,181,33,18,184,208,93,2,63,204,93,149,226,194,81,193,198,73,180,23,124,216,210,190,239,53,91,176,103,67,222,102,30,61,42,188,49,130,183,153,70,213,95,220,8,223,233,84,7,129,94,154,98,116,179,34,162,199,245,224,103,187,95,10,192,122,137,212,90,234,148,178,81,111,7,91,102,239,129,29,13,38,225,185,166,184,148,242,185,133,121,98,170,23,28,79,102,99,13,62,76,
370
+ 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}};_.w(ek,_.U);_.r=ek.prototype;_.r.ze=function(){return!_.Ij()};
371
+ _.r.gf=function(a,b){var c=this,d,e,f,g,h,l,m,n,p,q,t,v,z,A,C,F,E,H;return _.G(function(Q){if(1==Q.a){if(!b)return c.h.warn(ab),Q["return"]();d=b.track;if(!d)return c.h.warn(cb),Q["return"]();e=a===_.T;f=a===_.Wi;g=a===_.S;h=e||f;l=b.target;if(m=c.g.find(function(P){return sk(P,d,a)}))return c.h.warn("Track from event already exists",d,m),Q["return"]();n=$i(a,d);p=wk(d);if(g){if(d.kind===_.Td)return Q["return"]();void 0!==d.id?q=c.o[d.id]:(t=Object.values(c.o),q=t.find(function(P){return sk(n,P,a)}));
372
+ n.kind&&"captions"===n.kind&&(n.mimeType=_.jc);q&&(n.src=q.url,n.mimeType=q.mimeType)}else if(m=c.g.find(function(P){return P.type===a&&_.M.pa(P,n,["kind","label","language"])}))return m.id=d.id,p&&(c.h.debug(ub+a+" track active"),c.a.set(a,m)),c.h.debug("Track from event seems to already exists, flipped native track to",d),Q["return"]();_.B(Q,2);v=new _.bj(n.id,n);n.renditions.push(v);c.g.push(n);z=c.m.getConfiguration().safari;return ik(c,a,z)?_.x(Q,lk(c,n,z),5):jk(c,a,z)?_.x(Q,mk(c,n,z),5):Q.G(5)}if(2!=
373
+ Q.a)return c.h.debug(a+" Track added",n),c.m.trigger(new _.L(_.Ir)),A=pk(c,a).length,C=!(!l||!l.length),F=l&&l.length||0,E=function(){c.h.debug(ub+a+" track active. Native track active: "+(p+". Number of tracks: ")+A,d);c.a.set(a,n)},p?E():1===A&&h&&(f?E():C&&1!==F||E()),_.ag(Q,0);H=_.D(Q);c.h.error("Error while converting track data",H);_.y(Q)})};
374
+ _.r.jf=function(a,b){if(b){var c=b.track;if(!c)this.h.warn(cb);else if(a===_.S&&c.kind!==_.Td){var d=this.g.find(function(e){return sk(e,c,a)});d&&(this.g.splice(this.g.indexOf(d),1),(this.a.get(a)||null)===d&&(this.a.set(a,null),yk(this)),this.h.debug(a+" Track removed, id: ",d.id))}}else this.h.warn(ab)};
375
+ _.r.hf=function(a,b){this.h.debug(a+" Track changed",b);a===_.S&&yk(this);var c=ok(this,a);if(c)for(var d={rc:0};d.rc<c.length;d={rc:d.rc},++d.rc)if(wk(c[d.rc])){if(d=this.g.find(function(e){return function(f){return sk(f,c[e.rc],a)}}(d)))this.a.set(a,d),this.h.debug("Track change detected, id:",d.id),d===this.l.get(a)&&this.l.set(a,null),a===_.T?this.m.trigger(new _.L(_.tk)):a===_.S&&this.m.trigger(new _.L(_.uk));break}};_.r.initialize=function(a){this.m=a;this.j=new hj(a.getNetworkEngine())};
376
+ _.r.load=function(){this.A=!1;var a=nk(this,_.S);a&&(this.f.on(a,_.cc,this.J),this.f.on(a,He,this.M),this.f.on(a,Kc,this.K));if(a=nk(this,_.T))this.f.on(a,_.cc,this.F),this.f.on(a,He,this.I),this.f.on(a,Kc,this.H);if(a=nk(this,_.Wi))this.f.on(a,_.cc,this.P),this.f.on(a,He,this.V),this.f.on(a,Kc,this.T);this.f.one(this.m,Dc,this.Hi.bind(this))};_.r.release=function(){this.A=!0;this.g=[];this.o={};this.a.clear();this.l.clear();this.f.release()};_.r.destroy=function(){this.release();this.m=null};
377
+ _.r.getVideoTracks=function(){return pk(this,_.Wi)};_.r.getAudioTracks=function(){return pk(this,_.T)};_.r.ia=function(){return pk(this,_.S)};_.r.ga=function(){var a=this,b=this.a.get(_.Wi)||null;if(!b)return null;if(this.w){var c=b.renditions.find(function(d){return d.width===a.w.width&&d.height===a.w.height});if(c)return c}return b.renditions[0]||null};_.r.La=function(){return qk(this,_.T)};_.r.Ma=function(){return qk(this,_.S)};_.r.Ya=function(){return rk(this,_.Wi)};
378
+ _.r.hb=function(){return rk(this,_.T)};_.r.ib=function(){return rk(this,_.S)};_.r.Oa=function(){return this.a.get(_.Wi)||null};_.r.qa=function(){return this.a.get(_.T)||null};_.r.ra=function(){return this.a.get(_.S)||null};_.r.cb=function(a){vk(this,_.Wi,a)};_.r.xa=function(a){vk(this,_.T,a)};_.r.Ia=function(a){vk(this,_.S,a)};_.r.bb=function(a){vk(this,_.Wi,a&&a.track)};_.r.ob=function(a){vk(this,_.T,a&&a.track)};_.r.pb=function(a){vk(this,_.S,a&&a.track)};
379
+ _.r.addTextTrack=function(a){var b=this,c;return _.G(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.B++,b.o[c]=a,fk(b,a,c),d.G(0)):_.x(d,gk(b,a),0)})};_.r.ka=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};
380
+ _.r.Hi=function(){var a=this,b,c,d;return _.G(function(e){if(1==e.a){b=a.m.getConfiguration();xk(a,_.T,b.preferredAudioLanguage);c=ok(a,_.S);if(c.some(function(f){return wk(f)}))return e.G(2);d=nk(a,_.S);return _.x(e,new Promise(function(f){a.f.one(d,Kc,f);(new _.zj(f)).$(1)}),2)}if(a.A)return e["return"]();xk(a,_.S,b.preferredTextLanguage);_.y(e)})};ek.prototype.isAbrEnabled=ek.prototype.ka;ek.prototype.addTextTrack=ek.prototype.addTextTrack;ek.prototype.setTextRendition=ek.prototype.pb;
381
+ ek.prototype.setAudioRendition=ek.prototype.ob;ek.prototype.setVideoRendition=ek.prototype.bb;ek.prototype.setTextTrack=ek.prototype.Ia;ek.prototype.setAudioTrack=ek.prototype.xa;ek.prototype.setVideoTrack=ek.prototype.cb;ek.prototype.getTextTrack=ek.prototype.ra;ek.prototype.getAudioTrack=ek.prototype.qa;ek.prototype.getVideoTrack=ek.prototype.Oa;ek.prototype.getLoadingTextRendition=ek.prototype.ib;ek.prototype.getLoadingAudioRendition=ek.prototype.hb;ek.prototype.getLoadingVideoRendition=ek.prototype.Ya;
382
+ ek.prototype.getTextRendition=ek.prototype.Ma;ek.prototype.getAudioRendition=ek.prototype.La;ek.prototype.getVideoRendition=ek.prototype.ga;ek.prototype.getTextTracks=ek.prototype.ia;ek.prototype.getAudioTracks=ek.prototype.getAudioTracks;ek.prototype.getVideoTracks=ek.prototype.getVideoTracks;ek.prototype.canSelectVideoTracks=ek.prototype.ze;_.r=_.zk.prototype;_.r.start=function(a){if(this.f)return this.f.start(a);if(a<this.a.length)return this.a[a].start;throw Error(zb);};_.r.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(zb);};_.r.tb=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:1===this.length&&0>this.start(0)?0:this.start(0)};_.r.Ea=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
383
+ _.r.fc=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};
384
+ _.r.Ja=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.Ea();null!=d&&(c=Math.max(0,d-a))}else for(d=this.length-1;0<=d&&this.end(d)>a;--d)c+=this.end(d)-Math.max(this.start(d),a);return c};_.r.toString=function(){for(var a="",b=0;b<this.length;b++)0<b&&(a+=" "),a+=this.start(b).toFixed(3)+"-"+this.end(b).toFixed(3);return a};_.I("clpp.BufferInfo",_.zk);_.zk.prototype.bufferedAheadOf=_.zk.prototype.Ja;
385
+ _.zk.prototype.isBuffered=_.zk.prototype.fc;_.zk.prototype.bufferEnd=_.zk.prototype.Ea;_.zk.prototype.bufferStart=_.zk.prototype.tb;_.zk.prototype.end=_.zk.prototype.end;_.zk.prototype.start=_.zk.prototype.start;_.r=_.Ak.prototype;_.r.addEventListener=function(a,b){this.on(a,b)};_.r.removeEventListener=function(a,b){this.off(a,b)};_.r.on=function(a,b,c){return this.kd.on(a,b,c)};_.r.one=function(a,b,c){return this.kd.one(a,b,c)};_.r.off=function(a,b){return this.kd.off(a,b)};_.r.addDelegate=function(a){a&&(0<=this.gd.indexOf(a)||this.gd.push(a))};_.r.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};_.r.removeDelegate=function(a){a&&(a=this.gd.indexOf(a),0<=a&&this.gd.splice(a,1))};
386
+ _.r.trigger=function(a){this.kd.trigger(a);for(var b=_.u(this.gd),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.Ak.prototype.off=_.Ak.prototype.off;_.Ak.prototype.one=_.Ak.prototype.one;_.Ak.prototype.on=_.Ak.prototype.on;_.Ak.prototype.removeEventListener=_.Ak.prototype.removeEventListener;_.Ak.prototype.addEventListener=_.Ak.prototype.addEventListener;_.I("clpp.events.ERROR",_.yd);_.I("clpp.events.LOADEDMETADATA",_.Od);_.I("clpp.events.BUFFERING_ENDED",_.Ac);_.I("clpp.events.BUFFERING_STARTED",_.Bc);_.I("clpp.events.STATE_CHANGED",_.Re);_.tk="audiotrackchanged";_.I("clpp.events.AUDIO_TRACK_CHANGED",_.tk);_.uk="texttrackchanged";_.I("clpp.events.TEXT_TRACK_CHANGED",_.uk);_.I("clpp.events.VIDEO_TRACK_CHANGED",_.yf);_.I("clpp.events.BITRATE_CHANGED",_.yc);_.Ir="tracksadded";_.I("clpp.events.TRACKS_ADDED",_.Ir);_.I("clpp.events.LOAD_START",Pd);
387
+ _.I("clpp.events.RELEASING",_.Ge);_.I("clpp.events.RELEASED",Fe);_.I("clpp.events.DESTROYING","destroying");_.I("clpp.events.DESTROYED","destroyed");_.I("clpp.events.VIDEO_BUFFER_CHANGED",_.xf);_.I("clpp.events.AUDIO_BUFFER_CHANGED",_.wc);_.I("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.I("clpp.events.DRM_SESSION_UPDATE",_.sd);_.I("clpp.events.DRM_SESSION_PERSISTED",_.rd);_.I("clpp.events.DRM_RENEWAL_STARTED",qd);_.I("clpp.events.DRM_EXPIRATION_UPDATE",_.pd);
388
+ _.I("clpp.events.AUTOPLAY_NOT_ALLOWED",_.xc);_.I("clpp.events.PLAY",_.oe);_.I("clpp.events.SEEKING",_.Me);_.I("clpp.events.SEEKED",_.Le);_.I("clpp.events.USER_SEEKING",_.mf);_.I("clpp.events.USER_SEEKED",_.lf);_.Rn={SEEKING:1,NO_DATA:2};_.I("clpp.events.BufferingReasons",_.Rn);_.I("clpp.events.ADS_TIMELINE_CHANGED",_.dc);_.I("clpp.events.AD_LOADED",_.Tb);_.I("clpp.events.AD_BREAK_STARTED",_.Mb);_.I("clpp.events.AD_STARTED",_.$b);_.I("clpp.events.AD_BUFFERING",_.Ob);_.I("clpp.events.AD_PROGRESS",_.Xb);
389
+ _.I("clpp.events.AD_FIRST_QUARTILE",_.Rb);_.I("clpp.events.AD_MIDPOINT",_.Ub);_.I("clpp.events.AD_THIRD_QUARTILE",_.bc);_.I("clpp.events.AD_PAUSED",_.Vb);_.I("clpp.events.AD_RESUMED",_.Yb);_.I("clpp.events.AD_SKIPPED",_.Zb);_.I("clpp.events.AD_CLICKED",_.Pb);_.I("clpp.events.AD_IMPRESSION",_.Sb);_.I("clpp.events.AD_COMPLETED",_.Qb);_.I("clpp.events.AD_STOPPED",_.ac);_.I("clpp.events.AD_BREAK_STOPPED",_.Nb);_.I("clpp.events.CASTING_STARTED",_.Ec);_.I("clpp.events.CASTING_ENDED","castingended");
390
+ _.I("clpp.events.CAST_STATUS_CHANGED",_.Fc);_.I("clpp.events.AIRPLAY_STATUS_CHANGED",_.hc);_.I("clpp.events.AIRPLAY_CASTING_STARTED",_.fc);_.I("clpp.events.AIRPLAY_CASTING_ENDED",_.ec);_.Pg="timeline-cue-added";_.I("clpp.events.TIMELINE_CUE_ADDED",_.Pg);_.Rg="timeline-cue-enter";_.I("clpp.events.TIMELINE_CUE_ENTER",_.Rg);_.Sg="timeline-cue-exit";_.I("clpp.events.TIMELINE_CUE_EXIT",_.Sg);_.I("clpp.events.MPD_TYPE_CHANGED",_.Yd);_.I("clpp.events.VIMOND_RESPONSE",_.zf);
391
+ _.I("clpp.events.PLAYLIST_ITEM_CHANGED",_.we);_.I("clpp.events.PLAYLIST_MODIFIED",_.xe);_.I("clpp.events.CDN_SWITCH_SUCCESS",_.Gc);_.I("clpp.events.ONLINE_STATUS_CHANGED",ge);var Bk=["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"];_.I("clpp.utils.PlayerConfiguration",Dk);Dk.create=_.Ik;var Jr=["abort",Cc,Dc,ud,"emptied",vd,_.xd,_.yd,"interruptbegin","interruptend",_.Nd,_.Od,Pd,"mozaudioavailable",_.ke,_.oe,_.ve,_.Ce,_.Ee,_.Le,_.Me,Pe,"suspend",_.cf,"volumechange",_.Cf,_.Df,_.Je,If,Hf,Ff,Gf];_.w(_.Kk,_.Ak);_.r=_.Kk.prototype;_.r.init=function(a,b){this.configuration=this.Pd=b;this.D=a;this.log.info("Initializing Player surface");var c=this.D.getMedia();this.log.info("Attaching media element listeners");for(var d=_.u(Jr),e=d.next();!e.done;e=d.next())e=e.value,this.P.on(c,e,this.Nl,e!==_.yd);this.Yc||(this.Yc=this.dg());this.Yc.initialize(this);this.D.showMediaElement()};_.r.release=function(){this.M&&(this.M.destroy(),this.M=null);return Promise.resolve()};
392
+ _.r.destroy=function(){this.P.release();return this.Ue.release()};_.r.canPlay=function(a,b){return _.yg[this.namespace()].canPlay(a,b)};
393
+ _.r.play=function(){var a=this;if(!this.w)return Promise.reject("No sources specified yet. You need to load content before calling play.");var b=this.D.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||""};Ck(d)?(a.trigger(new _.L(_.xc)),a.log.warn(_.ka)):d.name===eb&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
394
+ _.r.pause=function(){var a=this;return this.w?new Promise(function(b,c){var d=a.getState();if(d!==_.On&&d!==_.Qn&&d!==_.Xn&&d!==_.Wn)c();else if(a.D.getMedia().pause(),a.getState()===_.Xn)a.P.one(a,_.Re,function(){b()});else b()}):Promise.reject("No sources specified yet. You need to load content before calling pause.")};_.r.isPaused=function(){return this.D.getMedia().paused};_.r.isEnded=function(){return this.D.getMedia().ended};_.r.getConfiguration=function(){return this.configuration};
395
+ _.r.setDrmCustomDataModifier=function(a){this.Fc=a};_.r.setCdnErrorCallback=function(a){this.uc=a};_.r.Jc=function(){return this.Fc};_.r.getSurface=function(){return this.D};_.r.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.zk(b?b.buffered:void 0,a)};_.r.getPosition=function(){var a=this.D.getMedia();if(a)return a.currentTime;this.log.warn("No media element available, can not report current time!");return 0};
396
+ _.r.seek=function(a){var b=this,c=this.getPosition();if(void 0===a||null===a||typeof a!==_.k||a===c)return Promise.resolve();var d=this.D.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,_.Od,m)}function l(n){var p=b.getPosition(),
397
+ q=.1>=Math.abs(a-p),t=.25<p-a,v=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,z=n.type===_.Le,A=n.type===_.Ce,C=n.type===_.cf,F=A&&v;t=z||q&&F||C&&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:",C,"Progress:",A,"ReadyState:",v,"Progress Ready:",F);t?(b.Ve=!1,b.$d=!1,b.P.off(d,_.Le,l),b.P.off(d,_.cf,l),b.P.off(d,_.Ce,l),b.Wg(),b.trigger(new _.L(_.lf)),f()):A&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
398
+ d.currentTime=a)}function m(){b.trigger(new _.L(_.mf));b.P.on(d,_.Le,l);b.P.on(d,_.cf,l);b.P.on(d,_.Ce,l);b.log.info("Seeking to "+a+". Delta "+e);b.Ve=!0;b.$d=!0;d.currentTime=a}b.getState()===_.Jn?(b.log.debug("Player is in IDLE state. Postpone seek."),b.P.one(b,_.Re,function(){switch(b.getState()){case _.On:case _.Xn:case _.Wn:b.log.debug("Valid seek state reached.");h();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):h()})};
399
+ _.r.getVolume=function(){var a=this.D.getMedia();if(a)return a.volume;this.log.warn("No media element available, can not report volume!");return null};_.r.setVolume=function(a){var b=this.D.getMedia();b?_.M.la(a)?0>a||1<a?this.log.warn(qa+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(qa+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.r.isMuted=function(){return this.D.getMedia().muted};
400
+ _.r.setMuted=function(a){var b=this.D.getMedia();typeof a===_.zc&&(b.muted=a)};_.r.getDuration=function(){return this.w?this.D.getMedia().duration:-1};_.r.getTrackManager=function(){return this.Yc};_.r.getPlaybackRate=function(){var a=this.D.getMedia();return a&&a.playbackRate||1};_.r.setPlaybackRate=function(a){var b=this.D.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.r.setSourceIndex=function(a){this.Qd=a};_.r.getSourceIndex=function(){return this.Qd};
401
+ _.r.getLoadedSource=function(){return this.w&&-1!==this.Qd?this.w[this.Qd]:null};_.r.getPeriods=function(){return[]};_.r.getNetworkEngine=function(){return this.Ue};_.r.setNetworkEngine=function(a){this.Ue=a};_.r.getTextDisplayer=function(){return this.M};_.r.getTimelineCues=function(){return[]};_.r.resetAbr=function(){};
402
+ _.r.pl=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.cf||a.type===_.Ce)this.th.debug(d);else{var e="";switch(a.type){case _.Ee:e="Rate: "+this.getPlaybackRate();break;case ud:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.oe:case _.ve:case "suspend":case _.Cf:case Pe:case _.Me:case _.Le:case _.cf:case _.Ce:case Cc:case Dc:b=
403
+ this.getBufferInfo().Ja(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.Je:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.th.info(d)}a.type!==_.yd&&this.trigger(new _.L(a.type,{detail:a}))};_.r.Wg=function(){};_.Kk.prototype.getTextDisplayer=_.Kk.prototype.getTextDisplayer;_.Kk.prototype.setNetworkEngine=_.Kk.prototype.setNetworkEngine;_.Kk.prototype.getNetworkEngine=_.Kk.prototype.getNetworkEngine;var Nk;Nk=new _.K("clpp.Components");_.Lk=new Map;_.I("clpp.install",function(a){Vk(a)});_.I("clpp.uninstall",function(a){Wk(a)});Xk.prototype.release=function(){this.a=this.f=null};_.I("clpp.drm.WidevineRobustnessLevel",{SW_SECURE_CRYPTO:_.rb,SW_SECURE_DECODE:_.sb,HW_SECURE_CRYPTO:Oa,HW_SECURE_DECODE:Pa,HW_SECURE_ALL:Na});_.I("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.I("clpp.drm.KeySystem",{NONE:_.$d,CLEAR_KEY:_.ie,WIDEVINE:_.ad,PLAYREADY:_.Zc,FAIRPLAY:_.Yc,PRIMETIME:_.Xc});_.al={};_.I("clpp.drm.registerDrmEnvironment",_.bl);var fl={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,
382
404
  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,
383
405
  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,
384
406
  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,
@@ -392,77 +414,87 @@ this.getBufferInfo().Ja(c);e="State "+this.getSurface().getMedia().readyState+"
392
414
  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,
393
415
  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,
394
416
  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,
395
- 26,58,164,235,113,177,235,207,22,230,8,119,76,167,166,176,173,209,214,53,116,116,231,227,221,238,174,87,249,19,166,195,81,47,210,172,15,75,251,202,192,80,85,213,23,17,178,104,181,193,115,239,91,72,230,167,55,143,10,250,26,54,8,60,13,213,206,235,3,215,179,205,232,1,144,158,35,48,196,149,117,219,63,196,130,117,40,165,193,65,215,122,44,201,218,67,216,6,131,178,5,168,229,21,137,112,215,254,127,48,160,181,68,49,255,64,46,247,236,85,155,146,208,5,219,252,37,174,31,218,136,135,55,119,112]};_.Ak.prototype.Sa=function(a,b){this.f[a]=b};_.C("clpp.drm.DrmEnvironment",_.Ak);_.Ak.prototype.setDrmSystem=_.Ak.prototype.Sa;_.Ck.prototype.getPosition=function(){return this.a};_.Ck.prototype.Ea=function(){return this.f.byteLength};_.Ck.prototype.seek=function(a){(0>a||a>=this.f.byteLength)&&_.Dk();this.a=a};_.Fk.prototype.getPosition=function(){return this.a};_.Fk.prototype.Ea=function(){return this.f.byteLength};_.Fk.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.Hk();this.a+=a};_.Fk.prototype.seek=function(a){if(0>a||a>=this.f.byteLength)throw _.Hk();this.a=a};_.C("clpp.utils.dataview.DataViewReader",_.Fk);_.t=_.Ok.prototype;_.t.L=function(a,b){var c=Sk(a);this.g[c]=xq;this.f[c]=b;return this};_.t.Y=function(a,b){var c=Sk(a);this.g[c]=yq;this.f[c]=b;return this};_.t.stop=function(){this.a=!0};_.t.parse=function(a,b){var c=_.N(a);c=new _.Fk(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.Gk(c)&&!this.a;)this.de(0,c,b)};
396
- _.t.de=function(a,b,c){var d=b.getPosition(),e=_.U(b),f=_.U(b),g=!1;this.h.debug("Parsing MP4 box",_.Tk(f));switch(e){case 0:e=b.Ea()-d;break;case 1:e=_.Lk(b),g=!0}var h=this.f[f];if(h){var l=null,m=null;this.g[f]==yq&&(m=_.U(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.Ea()&&(n=b.Ea());n-=b.getPosition();b=0<n?_.Nk(b,n):new Uint8Array(0);b=new _.Fk(new DataView(b.buffer,b.byteOffset,b.byteLength),!1);h({parser:this,partialOkay:c||!1,version:l,flags:m,reader:b,size:e,start:d+a,headerSize:f,
397
- has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.Ea()-b.getPosition()),b.skip(a)};_.C("clpp.utils.Mp4Parser",_.Ok);_.Ok.typeToString=_.Tk;_.Ok.allData=_.Rk;_.Ok.sampleDescription=_.Qk;_.Ok.children=_.Pk;_.Ok.prototype.parseNext=_.Ok.prototype.de;_.Ok.prototype.parse=_.Ok.prototype.parse;_.Ok.prototype.stop=_.Ok.prototype.stop;_.Ok.prototype.fullBox=_.Ok.prototype.Y;_.Ok.prototype.box=_.Ok.prototype.L;_.Ok.headerSize=_.Uk;var xq=0,yq=1;_.C("clpp.utils.FairplayUtils",Vk);Vk.parseFairPlayResponse=_.al;Vk.formatFairPlayRequest=_.$k;Vk.createFairplayPayload=Zk;Vk.extractContentId=_.Xk;Vk.extractExtXKeyUri=Wk;var ml=new _.I("clpp.drm.DrmToday"),dl="PRODUCTION",el="STAGING",fl="TEST",zq={PRODUCTION:dl,STAGING:el,TEST:fl};_.C("clpp.drm.DrmToday.Environment",zq);_.C("clpp.drm.DrmToday.WidevineCertificates",{V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"});
398
- for(var hl="/license-proxy-widevine/cenc/",il="/license-proxy-headerauth/drmtoday/RightsManager.asmx",jl="/license-server-fairplay/",vl={"00000":"Success","01000":"General Internal Error","02000":"General Request Error","03000":"General Request Authentication Error",3E4:"General DRM error",4E4:"General Widevine Modular error",40001:"Widevine Device Certificate Revocation (wv 127)",40002:"Widevine Device Certificate Revocation - Permanently (wv 175)",41E3:"General Widevine Classic error",42E3:"General Playready error",
399
- 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"},Aq={video:[_.mb,void 0],audio:[_.lb,void 0]},Bq={video:["3000"],
400
- audio:["2000"]},Cq=_.u(Object.keys(zq)),Dq=Cq.next();!Dq.done;Dq=Cq.next()){var bl=Dq.value,Eq=ya;bl!==dl&&(Eq+="_"+bl);var Fq=new _.Ak(Eq),Gq=null;switch(bl){case dl:Gq=zk("V1_PROD");break;case el:Gq=zk("V2");break;case fl:Gq=null}Fq.Sa(_.Tc,{licenseUrl:kl(_.Tc),videoRobustness:Aq.video,audioRobustness:Aq.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:Gq,modifiers:{licenseRequest:_.pl,licenseResponse:_.ul}});Fq.Sa(_.Rc,{licenseUrl:kl(_.Rc),certificateUrl:gl()+
401
- "/license-server-fairplay/cert/",modifiers:{licenseRequest:_.rl,licenseResponse:_.sl,extractContentId:_.nl,certificateRequest:_.tl}});Fq.Sa(_.Sc,{licenseUrl:kl(_.Sc),videoRobustness:Bq.video,audioRobustness:Bq.audio,modifiers:{licenseRequest:ql}});_.vk(Fq)};_.C("clpp.drm.eme.EmeFactory",xl);var yl=[];xl.Apis={STANDARD:kb,APPLE:"APPLE",WEBKIT:"WEBKIT",NOP:"NOP"};var Dl=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.w(Cl,_.Bl);Gl.prototype.j=function(a){if(1<a.version)_.G("Unrecognized PSSH version found!");else{var b=_.Rh(_.Nk(a.reader,16)),c=[];if(0<a.version)for(var d=_.U(a.reader),e=0;e<d;++e){var f=_.Rh(_.Nk(a.reader,16));c.push(f)}d=_.U(a.reader);a.reader.skip(d);this.g.push.apply(this.g,c);this.f.push(b);this.a.push({start:a.start,end:a.start+a.size-1});a.reader.getPosition()!=a.reader.Ea()&&_.G("Mismatch between box size and data size!")}};_.t=_.Kl.prototype;_.t.destroy=function(){var a=this;return _.B(function(b){if(1==b.a){if(a.j)return _.x(b,a.Ia,0);a.j=!0;return _.x(b,Ml(a),4)}a.Ia.resolve();return b.G(0)})};_.t.keySystem=function(){return this.a?_.im(this.a.keySystem):""};_.t.getDrmInfo=function(){return this.a};_.t.Og=function(a){var b=this;return _.B(function(c){return b.F&&b.J===Nl?c["return"]():!b.g.delayLicenseRequestUntilPlayed||b.B&&!b.B.paused||b.Xa?_.x(c,tm(b,a),0):(b.ha.push(a),c.G(0))})};
402
- _.t.Kg=function(a){var b=this,c=a.target;this.h.info("Key status changed for session",c.sessionId);var d=this.f.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if(typeof h==_.ve){var l=h;h=g;g=l}if(pm(b.a.keySystem)&&16===h.byteLength&&_.bj()){l=_.vh(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!==se&&(d.loaded=!0);d&&d.Fa&&d.Fa.resolve();"expired"===g&&(e=!0);l=_.N(h);var q=_.Rh(l);"00"===q&&d&&d.keyId?q=d.keyId:
403
- b.a.keySystem.startsWith(_.Rc)&&16!==l.byteLength&&(q=xh(l));(l=q||"")?b.h.info(Qa+q+"': "+g):b.h.info("Key status global keys: "+g);b.m.set(l,g);d&&!d.keyId&&b.f.forEach(function(r,v){v===c||r.keyId!==q||r.loaded||(r.loaded=!0)})});d&&d.loaded&&d.gb.forEach(function(g){b.m.get(g)===se&&(b.h.warn(Qa+g+da),b.m.set(g,_.Ud))});for(a=0;a<this.a.initData.length;a++){var f=this.a.initData[a];f.keyId&&this.m.get(f.keyId)===se&&_.Sh(f.initData,d.initData)&&(this.h.warn(Qa+f.keyId+da),this.m.set(f.keyId,_.Ud))}a=
404
- c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.rb&&(this.h.debug("Session has expired",c.sessionId),(a=this.f.get(c))&&a.Gc&&a.Gc.stop(),this.f["delete"](c),c.close()["catch"](function(){}));km(this)&&(this.H.resolve(),1!==this.f.size||e?this.ga.aa(.5):Il(this))};var Nl=0,Hl=3;var um=new Map,vm=new _.I("clpp.text");_.Em.prototype.getStats=function(){return{width:this.w,height:this.g,streamBandwidth:this.o,decodedFrames:this.j,droppedFrames:this.m,corruptedFrames:this.D,estimatedBandwidth:this.f,loadLatency:this.A,playTime:Am(this.a,_.bn),pauseTime:Am(this.a,_.an),bufferingTime:Am(this.a,_.Tm),stateHistory:Bm(this.a),switchHistory:Dm(this.B)}};_.Lm.prototype.value=function(){void 0==this.a&&(this.a=this.f());return this.a};var Mm=new _.Lm(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.xd],[HTMLMediaElement.HAVE_CURRENT_DATA,_.wd],[HTMLMediaElement.HAVE_FUTURE_DATA,xc],[HTMLMediaElement.HAVE_ENOUGH_DATA,yc]])});Rm.prototype.Xb=function(a,b){this.l&&this.l.trigger(new _.J(a,{detail:b}))};Rm.prototype.getState=function(){return Um(this,"")};Rm.prototype.U=function(a){(a=a&&a.detail)&&a.severity&&a.severity===_.M&&Ym(this,_.Zm)};Rm.prototype.destroy=function(){this.h.debug("Stop watching for video events for "+this.l.namespace());this.a.release()};_.C("clpp.version",_.ea);_.C("clpp.name",_.qa);_.Kj="application/x-mpegurl";_.C("clpp.Type",{DASH:_.fc,HLS:_.Kj,SMOOTH_STREAMING:_.kc,MP4:_.Te});_.og="scte35";_.mg=Je;_.C("clpp.TimelineCueType",{SCTE35:_.og,DASH_CALLBACK:_.Jd,UNKNOWN:_.mg});_.C("clpp.utils.media.detectType",dn);var gn=new _.I("clpp.sources");_.w(hn,_.kk);_.t=hn.prototype;_.t.init=function(a,b){_.kk.prototype.init.call(this,a,b);this.j=new Rm(this);Ym(this.j,_.Om)};_.t.namespace=function(){return Mc};
405
- _.t.unload=function(){var a=this,b;return _.B(function(c){if(!a.w)return c.G(0);a.log.debug(_.ib,a.w);a.F&&(a.F.stop(),a.F=null);(b=a.getTrackManager())&&b.release();a.B&&(a.B.destroy(),a.B=null);a.K&&(a.K.destroy(),a.K=null);a.m&&a.m.release();a.o&&(a.o.destroy(),a.o=null);_.hg(a.g);a.f&&(a.f=new _.Em);a.H=null;a.w=null;a.I=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());return _.x(c,mn(a),0)})};
406
- _.t.release=function(){var a=this;return _.kk.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.j&&Ym(a.j,_.Om)})};
407
- _.t.destroy=function(){var a=this;if(this.A)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.A=!0;return _.kk.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Aa);var b=a.getTrackManager();b&&b.destroy();a.m&&(a.m.destroy()["catch"](function(c){a.log.warn("Error while disposing metadata handler",c)}),a.m=null);a.j&&(a.j.destroy(),a.j=null);a.f=null})};_.t.getDrmInfo=function(){return this.o?this.o.getDrmInfo():null};
408
- _.t.detach=function(){};_.t.getTrackManager=function(){return this.$c};
409
- _.t.load=function(a){var b=this,c,d,e,f,g;return _.B(function(h){switch(h.a){case 1:if(b.A)return h["return"](jn());if(!b.getSurface()||!b.getSurface().getMedia())return h["return"](Promise.reject("No surface or no media element in surface"));c=_.K;d=b.D.getMedia();b.J=Date.now()/1E3;b.f=new _.Em;b.g.on(b,_.re,function(){b.f&&_.zm(b.f.a,b.getState())});Ym(b.j,_.$m);b.w=_.fn(a);_.jk(a)&&(b.configuration=_.ik(b.Pd,a));b.log.debug(_.Ta,b.configuration);b.log.debug(_.db,b.w);e=_.xm(b.configuration,["html",
410
- "native"]);b.K=e.create(b);b.K.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.mk(_.ze)&&!_.kj()&&(b.B=new Ig(b),b.B.start(d));b.m?b.m.release():b.m=new jg(b);lg(b.m,d);f=b.getTrackManager();f.load();d.loop=!!b.configuration.loop;c.R(b.configuration.volume)||b.setVolume(b.configuration.volume);c.R(b.configuration.muted)||b.setMuted(b.configuration.muted);b.g.one(d,xc,function(){b.trigger(new _.J(_.vq))});null==b.configuration.startTime&&rn(b,d);_.Bf(h,2);return _.x(h,ln(b,d),4);case 4:return _.x(h,
411
- on(b),5);case 5:return _.x(h,qn(b).P,6);case 6:_.Cf(h,0);break;case 2:g=_.Df(h),b.I=!1,b.onError(g),_.y(h)}})};_.t.onError=function(a){this.I||(a.severity===_.M&&null!==this.j&&Ym(this.j,_.Zm),this.trigger(new _.J(_.jd,{detail:a})))};_.t.ag=function(){return new Ej};_.t.getState=function(){return null!==this.j?this.j.getState().currentState:_.Pm};
412
- _.t.getPresentationStartTime=function(){if(this.a&&this.a.getStartDate&&this.isLive()){var a=this.a.getStartDate();return isNaN(a.getTime())?(this.log.warn("EXT-X-PROGRAM-DATETIME required to get presentation start time as Date!"),null):a.getTime()/1E3}return null};_.t.getSeekRange=function(){var a=this.getSurface().getMedia();if(a&&a.src){a=a.seekable;if(a.length)return this.H=a={start:a.start(0),end:a.end(a.length-1)};if(this.H)return this.H}return{start:0,end:0}};
413
- _.t.isLive=function(){return this.a&&this.a.src?Infinity===this.a.duration:!1};
414
- _.t.getStats=function(){if(!this.f||!this.a)return _.Fm();this.f&&_.zm(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.w=a.videoWidth;b.g=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.m=Number(a.droppedVideoFrames),b.j=c,this.f.D=Number(a.corruptedVideoFrames));if(a=this.getTrackManager())if(a=a.fa())a.bandwidth&&(this.f.o=a.bandwidth),a.Zc&&(this.f.f=a.Zc);return this.f.getStats()};
415
- _.t.getTimelineCues=function(){return this.m?this.m.getTimelineCues():[]};sn.prototype.a=function(){return Mc};sn.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.fc,e=c===_.kc,f=c===_.Kj;return _.fj()||d||e||f&&!_.gj()?0:""!==nj().canPlayType(c)?f&&_.gj()&&(window.ManagedMediaSource||window.MediaSource&&MediaSource.isTypeSupported)&&!b.streaming.preferNativeHlsOnSafari?1:2:0};sn.prototype.create=function(){return new hn};_.$f(new sn);_.C("clpp.ads.PodType",{PREROLL:0,MIDROLL:1,POSTROLL:2});_.C("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1});_.C("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var un=new _.I("clpp.ads"),tn=[];_.C("clpp.utils.dom.createHTMLElement",_.Bn);Cn.prototype.set=function(a){this.g.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=En(this,a)};Cn.prototype.get=function(){return this.a};_.t=In.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.m};_.t.getUniqueCssClass=function(){return this.o};_.t.getCastElement=function(){return this.g};_.t.isFullscreen=function(){return!!document.fullscreenElement};_.t.hideMediaElement=function(){var a=this.getMedia();a?_.zn(a,Ic):this.h.debug("No media element available that could be hidden")};
416
- _.t.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(Ic):this.h.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&&_.zn(a,_.Hc);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
417
- _.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){_.zn(a,Ic)};_.t.show=function(a){a.classList.remove(Ic)};_.t.release=function(){this.j.release()};In.prototype.removeElementFromContainer=In.prototype.removeElementFromContainer;In.prototype.addElementToContainer=In.prototype.addElementToContainer;In.prototype.getCastElement=In.prototype.getCastElement;
418
- In.prototype.getContainer=In.prototype.getContainer;In.prototype.getMedia=In.prototype.getMedia;var Fn={disableContainer:!1,webOSStartupPatch:!0,crossorigin:"anonymous",containerEl:null},Gn=1;Kn.prototype.release=function(){this.a.release();On(this);this.l=null};_.C("clpp.polyfill.installAll",Rn);var Qn=[];_.C("clpp.polyfill.register",_.Sn);Un.prototype.verify=function(a,b){var c={kty:"RSA",n:a.n,e:a.e},d=this.g+"."+this.f,e=this.j;return new Promise(function(f,g){try{var h=window&&window.crypto&&window.crypto.subtle}catch(m){}if(h){var l={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};h.importKey("jwk",c,l,!1,["verify"]).then(function(m){var n=_.Ch(d),p=_.Ph(e);return h.verify(l,m,p.buffer,n.buffer)}).then(function(m){m?f():g(pb)})["catch"](g)}else b?g("Web Crypto API is not supported"):f()})};var Hq={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},ek="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";Vn.prototype.verify=function(){var a=this;return(new Promise(function(b,c){try{var d=Wn(a);b(d)}catch(e){c()}})).then(function(b){return b.verify(Hq)})["catch"](function(b){if(b&&b!==pb){var c=window.location.href;var d=new _.Pg(c);c=d.bb||d.Ka?d:new _.Pg("//"+c);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(c.Ka))return Promise.resolve()}throw b;})};var ho="vod",go="live";_.w(V,_.ak);_.t=V.prototype;_.t.on=function(a,b,c){return _.ak.prototype.on.call(this,a,b,c)};_.t.one=function(a,b,c){return _.ak.prototype.one.call(this,a,b,c)};_.t.off=function(a,b){return _.ak.prototype.off.call(this,a,b)};_.t.init=function(){};_.t.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.J(_.jd,{detail:a}))};_.t.dc=function(a){a=this.M[a];void 0===a&&(a=null);return a};_.t.getSurface=function(){return this.g};_.t.getConfiguration=function(){return _.K.Ua(this.f)};
419
- _.t.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.t.unload=function(){return this.a?this.a.unload():Promise.resolve()};_.t.detach=function(){return this.a?this.a.detach():Promise.resolve()};_.t.release=function(){var a=this;if(null!=this.m)return this.h.info("Player release already in progress"),this.m;this.h.debug("Releasing player");this.m=oo(this);return this.m["finally"](function(){a.h.debug("Player released");a.m=null})};
420
- _.t.destroy=function(){var a=this;if(this.F)return this.h.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.F=!0;return this.release().then(function(){a.h.debug(Aa);a.trigger(new _.J("destroying"));return a.kc(_.Od)}).then(function(){a.a&&a.a.removeDelegate(a);a.md.clear();a.V.release();if(a.a)return a.a.destroy()}).then(function(){pk(function(b){b.Ha()});_.lk.clear();a.a=null;a.trigger(new _.J("destroyed"))})};
421
- _.t.load=function(a){var b=this,c;return _.B(function(d){switch(d.a){case 1:return _.Bf(d,2),_.x(d,_.ro(b,a),4);case 4:return _.x(d,_.so(b),5);case 5:return _.x(d,_.uo(b),6);case 6:_.Cf(d,0);break;case 2:c=_.Df(d);if(b.m)throw b.h.info("Load interrupted while a player release is pending"),new _.L(_.M,7,7E3);throw c;}})};
422
- _.t.kc=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];var e=this;d=this.K.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.of(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};_.t.use=function(a){a=new a;a.Qa(this);_.ok(a)};_.t.remove=function(a){if(this.getState()<=_.Om||this.I){var b="";pk(function(c){c instanceof a&&(b=c.id(),c.Ha())});if(b)return _.lk["delete"](b),this.J=!0}return!1};
423
- _.t.play=function(){return this.a?this.j&&this.a.namespace()!==_.Jc?this.j.start(this.a):this.a.play():Promise.reject("No player initialized. You need to load content before calling play.")};_.t.pause=function(){return this.a?this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};_.t.getTrackManager=function(){return this.a&&this.a.getTrackManager()};_.t.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.Zj};
424
- _.t.getState=function(){return this.a?this.a.getState():_.Om};_.t.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.t.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.t.isPaused=function(){return this.a&&this.a.isPaused()||!1};_.t.getPosition=function(){return this.a?this.a.getPosition():0};_.t.seek=function(a){return this.getState()===_.Zm?Promise.reject("Cannot seek in current state."):this.a?this.a.seek(a):Promise.reject("delegate does not exist")};
425
- _.t.getPresentationStartTime=function(){return this.a?this.a.getPresentationStartTime():null};_.t.getSeekRange=function(){return this.a?this.a.getSeekRange():{start:0,end:0}};_.t.Nc=function(){var a=this.a;return a&&a.Nc?a.Nc():null};_.t.getVolume=function(){return this.a?this.a.getVolume():null};_.t.setVolume=function(a){this.a&&this.a.setVolume(a)};_.t.getDuration=function(){return this.a?this.a.getDuration():-1};_.t.getAdsManager=function(){return this.j};
426
- _.t.namespace=function(){return this.a&&this.a.namespace()||"Undefined"};_.t.canPlay=function(a,b){return this.a?this.a.canPlay(a,b):0};_.t.getPlaybackRate=function(){return this.a?this.a.getPlaybackRate():1};_.t.setPlaybackRate=function(a){this.a&&this.a.setPlaybackRate(a)};_.t.isMuted=function(){return this.a&&this.a.isMuted()||!1};_.t.setMuted=function(a){this.a&&this.a.setMuted(a)};_.t.getNetworkEngine=function(){return this.H};_.t.setNetworkEngine=function(a){this.H=a};
427
- _.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.Vd=function(){return Object.freeze(this.o)};_.t.setSourceIndex=function(a){this.a&&this.a.setSourceIndex(a)};_.t.getSourceIndex=function(){return this.a?this.a.getSourceIndex():-1};_.t.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};
428
- _.t.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.t.resetAbr=function(){this.a&&this.a.resetAbr()};_.t.setDrmCustomDataModifier=function(a){this.Ic=a;qo(this)};_.t.setCdnErrorCallback=function(a){this.D=a;this.a&&this.a.setCdnErrorCallback(this.D)};_.t.Eg=function(){this.Ce=!0};_.C("clpp.Player",V);V.registerPlugin=_.vo;V.prototype.setCdnErrorCallback=V.prototype.setCdnErrorCallback;V.prototype.setDrmCustomDataModifier=V.prototype.setDrmCustomDataModifier;
429
- V.prototype.resetAbr=V.prototype.resetAbr;V.prototype.getTimelineCues=V.prototype.getTimelineCues;V.prototype.getLoadedSource=V.prototype.getLoadedSource;V.prototype.getSources=V.prototype.Vd;V.prototype.getStats=V.prototype.getStats;V.prototype.isLive=V.prototype.isLive;V.prototype.getTextDisplayer=V.prototype.getTextDisplayer;V.prototype.setNetworkEngine=V.prototype.setNetworkEngine;V.prototype.getNetworkEngine=V.prototype.getNetworkEngine;V.prototype.setMuted=V.prototype.setMuted;
430
- V.prototype.isMuted=V.prototype.isMuted;V.prototype.setPlaybackRate=V.prototype.setPlaybackRate;V.prototype.getPlaybackRate=V.prototype.getPlaybackRate;V.prototype.namespace=V.prototype.namespace;V.prototype.getAdsManager=V.prototype.getAdsManager;V.prototype.getDuration=V.prototype.getDuration;V.prototype.setVolume=V.prototype.setVolume;V.prototype.getVolume=V.prototype.getVolume;V.prototype.getTimelineOffset=V.prototype.Nc;V.prototype.getSeekRange=V.prototype.getSeekRange;
431
- V.prototype.getPresentationStartTime=V.prototype.getPresentationStartTime;V.prototype.seek=V.prototype.seek;V.prototype.getPosition=V.prototype.getPosition;V.prototype.isPaused=V.prototype.isPaused;V.prototype.isEnded=V.prototype.isEnded;V.prototype.getState=V.prototype.getState;V.prototype.getBufferInfo=V.prototype.getBufferInfo;V.prototype.getTrackManager=V.prototype.getTrackManager;V.prototype.pause=V.prototype.pause;V.prototype.play=V.prototype.play;V.prototype.remove=V.prototype.remove;
432
- V.prototype.use=V.prototype.use;V.prototype.load=V.prototype.load;V.prototype.destroy=V.prototype.destroy;V.prototype.release=V.prototype.release;V.prototype.getDrmInfo=V.prototype.getDrmInfo;V.prototype.getConfiguration=V.prototype.getConfiguration;V.prototype.getSurface=V.prototype.getSurface;V.prototype.getPlugin=V.prototype.dc;V.prototype.off=V.prototype.off;V.prototype.one=V.prototype.one;V.prototype.on=V.prototype.on;_.Om=0;_.$m=1;_.Tm=2;_.bn=3;_.an=4;_.Vm=5;_.Zm=6;_.Pm=7;
433
- _.Xm={IDLE:_.Om,PREPARING:_.$m,BUFFERING:_.Tm,PLAYING:_.bn,PAUSED:_.an,ENDED:_.Vm,ERROR:_.Zm,UNSET:_.Pm};V.State=_.Xm;var lo=[];_.t=wo.prototype;_.t.vb=function(){};_.t.wb=function(){};_.t.Bb=function(){};_.t.getId=function(){};_.t.getCreativeId=function(){};_.t.getApiFramework=function(){};_.t.getAdSystem=function(){};_.t.getAdvertiserName=function(){};_.t.getTitle=function(){};_.t.getDuration=function(){};_.t.getSkipTimeOffset=function(){};_.t.ic=function(){};_.t.Nb=function(){};_.t.getMediaUrl=function(){};_.t.yb=function(){};_.t.xb=function(){};_.t.kb=function(){};_.t.$a=function(){};_.t.getPodIndex=function(){};
434
- _.t.Ob=function(){};_.t.Pb=function(){};_.t.Ab=function(){};_.t.getWrapperAdIds=function(){};_.t.getWrapperAdSystems=function(){};_.t.getWrapperCreativeIds=function(){};_.C("clpp.ads.IAd",wo);wo.prototype.getWrapperCreativeIds=wo.prototype.getWrapperCreativeIds;wo.prototype.getWrapperAdSystems=wo.prototype.getWrapperAdSystems;wo.prototype.getWrapperAdIds=wo.prototype.getWrapperAdIds;wo.prototype.getSequenceLength=wo.prototype.Ab;wo.prototype.getPositionInSequence=wo.prototype.Pb;
435
- wo.prototype.getPodTimeOffset=wo.prototype.Ob;wo.prototype.getPodIndex=wo.prototype.getPodIndex;wo.prototype.getPodType=wo.prototype.$a;wo.prototype.getMediaBitrate=wo.prototype.kb;wo.prototype.getMediaHeight=wo.prototype.xb;wo.prototype.getMediaWidth=wo.prototype.yb;wo.prototype.getMediaUrl=wo.prototype.getMediaUrl;wo.prototype.getClickThroughUrl=wo.prototype.Nb;wo.prototype.isBumper=wo.prototype.ic;wo.prototype.getSkipTimeOffset=wo.prototype.getSkipTimeOffset;wo.prototype.getDuration=wo.prototype.getDuration;
436
- wo.prototype.getTitle=wo.prototype.getTitle;wo.prototype.getAdvertiserName=wo.prototype.getAdvertiserName;wo.prototype.getAdSystem=wo.prototype.getAdSystem;wo.prototype.getApiFramework=wo.prototype.getApiFramework;wo.prototype.getCreativeId=wo.prototype.getCreativeId;wo.prototype.getId=wo.prototype.getId;wo.prototype.getTechnology=wo.prototype.Bb;wo.prototype.getAdManagerVersion=wo.prototype.wb;wo.prototype.getAdManagerName=wo.prototype.vb;xo.prototype.name=function(){};xo.prototype.ba=function(){};xo.prototype.create=function(){};_.C("clpp.ads.IAdsManagerFactory",xo);xo.prototype.create=xo.prototype.create;xo.prototype.isSupported=xo.prototype.ba;xo.prototype.name=xo.prototype.name;_.t=yo.prototype;_.t.load=function(){};_.t.start=function(){};_.t.resume=function(){};_.t.pause=function(){};_.t.skip=function(){};_.t.getVolume=function(){};_.t.setVolume=function(){};_.t.getPosition=function(){};_.t.dispose=function(){};_.C("clpp.ads.IAdsManager",yo);yo.prototype.getPosition=yo.prototype.getPosition;yo.prototype.setVolume=yo.prototype.setVolume;yo.prototype.getVolume=yo.prototype.getVolume;yo.prototype.skip=yo.prototype.skip;yo.prototype.pause=yo.prototype.pause;
437
- yo.prototype.resume=yo.prototype.resume;_.t=zo.prototype;_.t.load=function(){return Promise.resolve()};_.t.start=function(a){return a.play()};_.t.resume=function(){};_.t.pause=function(){};_.t.skip=function(){};_.t.getVolume=function(){return 1};_.t.setVolume=function(){};_.t.getPosition=function(){return-1};_.t.dispose=function(){return _.B(function(a){_.y(a)})};zo.prototype.dispose=zo.prototype.dispose;zo.prototype.getPosition=zo.prototype.getPosition;zo.prototype.setVolume=zo.prototype.setVolume;zo.prototype.getVolume=zo.prototype.getVolume;
438
- zo.prototype.skip=zo.prototype.skip;zo.prototype.pause=zo.prototype.pause;zo.prototype.resume=zo.prototype.resume;zo.prototype.start=zo.prototype.start;zo.prototype.load=zo.prototype.load;wn.prototype.name=function(){return"clpp.ads.NopAdsManagerFactory"};wn.prototype.ba=function(){return!0};wn.prototype.create=function(){return new zo};wn.prototype.create=wn.prototype.create;wn.prototype.isSupported=wn.prototype.ba;wn.prototype.name=wn.prototype.name;Ao.prototype.getCuePoints=function(){};Ao.prototype.Qb=function(){};Ao.prototype.lb=function(){};_.C("clpp.ads.IAdsTimeline",Ao);Ao.prototype.hasPostroll=Ao.prototype.lb;Ao.prototype.hasPreroll=Ao.prototype.Qb;Ao.prototype.getCuePoints=Ao.prototype.getCuePoints;_.Bo.prototype.ac=function(){};_.Bo.prototype.release=function(){};_.t=Co.prototype;_.t.Md=function(a){this.a=a};_.t.ed=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(Wa)};_.t.Ud=function(){return this.a&&this.a.mediaKeys};_.t.Ec=function(a,b){this.h.debug("Requesting media key system access for",a,b.map(function(c){return Object.assign({},c,{drmInfos:c.drmInfos.map(function(){return"_anonymous_"})})}));return navigator.requestMediaKeySystemAccess(a,b)["catch"](function(c){c.message&&(c=Error(c.message+" (keySystem: "+a+")"));return Promise.reject(c)})};
439
- _.t.dd=function(){return kb};Do.prototype.a=function(){return kb};Do.prototype.ba=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};Do.prototype.create=function(){return new Co};zl(new Do,1E3);_.t=Eo.prototype;_.t.getStatus=function(){return this.a};_.t.forEach=function(a){this.a&&a(this.a,Iq.value())};_.t.get=function(a){if(this.has(a))return this.a};_.t.has=function(a){var b=Iq.value();return this.a&&qh(a,b)?!0:!1};_.t.entries=function(){};_.t.keys=function(){};_.t.values=function(){};var Iq=new _.Lm(function(){return wh(new Uint8Array([0]))});_.t=Go.prototype;_.t.Md=function(){};_.t.ed=function(a){_.Uf("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.t.Ud=function(){return null};_.t.Ec=function(){_.Uf("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.t.dd=function(){return"NOP"};Ho.prototype.a=function(){return"NOP"};Ho.prototype.ba=function(){return!0};Ho.prototype.create=function(){return new Go};
440
- zl(new Ho,-1);_.t=Io.prototype;_.t.Md=function(a){this.f=a};_.t.ed=function(a){var b=this.a;b&&b!==a&&Lo(b,null);return(this.a=a)?Lo(a,this.f):Promise.resolve()};_.t.Ud=function(){return this.a};_.t.Ec=function(a,b){_.Uf("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new Jo(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.t.dd=function(){return"APPLE"};Jo.prototype.createMediaKeys=function(){var a=new Ko(this.keySystem);return Promise.resolve(a)};
441
- Jo.prototype.getConfiguration=function(){_.Uf("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};Ko.prototype.createSession=function(a){a=void 0===a?Be:a;this.h.debug("Creating Apple MediaKeys Session");if(a!==Be)throw new TypeError("Session type "+a+ba);return new Mo(this.g,"__session_"+this.j++)};Ko.prototype.setServerCertificate=function(){this.h.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.w(Mo,_.ak);_.t=Mo.prototype;
442
- _.t.generateRequest=function(a,b){var c=this;if(this.m)return Promise.reject(nb);this.h.debug("generateRequest");this.g=new _.fi;try{var d=this.o.createSession(_.Te,_.N(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,df,function(e){var f=c.keyStatuses.getStatus();c.h.debug("Received Key Message in "+c.sessionId);c.g&&(c.g.resolve(),c.g=null);e=new _.J(Bd,{messageType:void 0===f||f===se?td:sd,message:wh(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,bf,function(e){c.h.debug("onWebkitKeyAdded_",
443
- e);c.f&&(No(c,"usable"),c.f.resolve(),c.f=null)});this.j.on(d,cf,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===se)c.h.warn("Ignoring webkit key error for session "+c.sessionId);else if(c.h.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.g)c.g.reject(e),c.g=null;else if(null!==c.f)c.f.reject(e),
444
- 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,_.pd)}});No(this,se)}catch(e){this.g.reject(e)}return this.g};_.t.load=function(){this.h.debug("load");return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.t.update=function(a){if(this.m)return Promise.reject(nb);this.h.debug("update");this.f=new _.fi;try{this.a.update(_.N(a))}catch(b){this.f.reject(b)}return this.f};
445
- _.t.close=function(){if(this.m)return this.closed;this.h.info("Closing Key Session "+this.sessionId);this.m=!0;try{this.a.close(),this.closed.resolve(),_.hg(this.j)}catch(a){this.closed.reject(a)}return this.closed};_.t.remove=function(){this.h.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"APPLE"};Oo.prototype.ba=function(){return!!window.WebKitMediaKeys};
446
- Oo.prototype.create=function(){return new Io};zl(new Oo,1100);_.t=Po.prototype;_.t.Md=function(a){this.a=a};_.t.ed=function(a){_.Uf("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(Wa);var b=this.f;b&&b!==a&&Uo(b,null);(this.f=a)&&Uo(a,this.a);return Promise.resolve()};_.t.Ud=function(){return this.f};_.t.Ec=function(a,b){_.Uf("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.Re);c=d.length?d[0]:document.createElement(_.Re)}var e=new Qo(this.g,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
447
- _.t.dd=function(){return"WEBKIT"};Qo.prototype.createMediaKeys=function(){return Promise.resolve(new Ro(this.g,this.a))};Qo.prototype.getConfiguration=function(){return this.f};Ro.prototype.createSession=function(a){a=void 0===a?Be:a;if(a!==Be&&a!==_.Xd)throw new TypeError("Session type "+a+ba);if(!this.a)throw a=Error("Media element is missing."),a.name=Pa,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new Vo(this.g,this.a,this.o,a);this.j.push(a);return a};
448
- Ro.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.w(Vo,_.ak);_.t=Vo.prototype;_.t.generateRequest=function(a,b){_.Uf("WebkitEmeManager.MediaKeySession.generateRequest");return Xo(this,b,null)};_.t.load=function(a){_.Uf(Cb);return this.m===_.Xd?Xo(this,null,a):Promise.reject(Error($a))};_.t.update=function(a){_.Uf(Cb);var b=new _.fi;Yo(this,b,a);return b};
449
- _.t.close=function(){_.Uf("WebkitEmeManager.MediaKeySession.close");if(this.m!==_.Xd){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=Wo(this,"cancelKeyRequest");try{this.j[a](this.g,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.t.remove=function(){_.Uf("WebkitEmeManager.MediaKeySession.remove");return this.m!==_.Xd?Promise.reject(Error($a)):this.close()};Zo.prototype.a=function(){return"WEBKIT"};
450
- Zo.prototype.ba=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};Zo.prototype.create=function(){return new Po};zl(new Zo);_.w($o,_.Ak);$o.prototype.ud=function(a,b){for(var c=a.drm.customData.headers||{},d=_.u(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};$o.prototype.fg=function(a,b){var c=Wk(b);switch(this.o){case Jq:return c;case Kq:return(new _.Di(c)).a;default:throw Error("Unknown content ID strategy");}};$o.prototype.Ig=function(a,b){b.headers[ta]=lc;this.ud(a,b);var c={spc:_.Nh(b.body)};b.body=_.Eh(_.Fi(c,!0))};
451
- $o.prototype.Jg=function(a,b){var c=_.yh(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.Ph(c).buffer};_.C(Kc,$o);$o.prototype.onFairPlayLicenseResponse=$o.prototype.Jg;$o.prototype.onFairPlayLicenseRequest=$o.prototype.Ig;$o.prototype.extractFairPlayContentId=$o.prototype.fg;$o.prototype.onLicenseRequest=$o.prototype.ud;$o.prototype.constructor=$o.prototype.constructor;$o.NAME=Ma;var Kq="hostname",Jq="full-skd";
452
- $o.FairPlayContentIdStrategy={HOSTNAME:Kq,FULL_SKD:Jq};_.w(ap,_.Bo);_.t=ap.prototype;_.t.Qa=function(a){this.l=a};_.t.Ha=function(){this.l=null};_.t.ac=function(){var a=this.l.getConfiguration();if(a.drm&&a.drm&&a.drm.env===Ma){a=a.drm.customData;if(!a)throw new _.L(_.M,7,7100,_.Uc);a=new $o(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||Jq);_.vk(a)}};_.t.release=function(){};_.t.id=function(){return"headerdrm"};_.C("clpp.drm.HeaderDrmComponent",ap);_.Sn(function(){ArrayBuffer.prototype.slice||(ArrayBuffer.prototype.slice=function(a,b){b=void 0!==b?b:this.byteLength;a=Math.floor(a);b=Math.floor(b);0>a&&(a+=this.byteLength);0>b&&(b+=this.byteLength);a=Math.min(Math.max(0,a),this.byteLength);b=Math.min(Math.max(0,b),this.byteLength);if(0>=b-a)return new ArrayBuffer(0);var c=new ArrayBuffer(b-a),d=_.N(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});_.Sn(function(){_.Uf("mathRound.install")});_.Sn(function(){if(window.Document){var a=Element.prototype;a.requestFullscreen=a.requestFullscreen||a.mozRequestFullScreen||a.msRequestFullscreen||a.webkitRequestFullscreen;a=Document.prototype;a.exitFullscreen=a.exitFullscreen||a.mozCancelFullScreen||a.msExitFullscreen||a.webkitExitFullscreen;kd in document||(Object.defineProperty(document,kd,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
453
- {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",bp);document.addEventListener("webkitfullscreenerror",bp);document.addEventListener("mozfullscreenchange",bp);document.addEventListener("mozfullscreenerror",bp);document.addEventListener("MSFullscreenChange",bp);document.addEventListener("MSFullscreenError",bp)}});_.Sn(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Uf("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=dp,document.exitPictureInPicture=ep,document.addEventListener("webkitpresentationmodechanged",cp,!0))}});_.Sn(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=fp)}});_.Sn(function(){if(window.VTTCue)_.Tf("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Tf(Ab),window.VTTCue=gp;else if(6===a)_.Tf("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=hp;else{try{var b=!!gp(1,2,"")}catch(c){b=!1}b&&(_.Tf(Ab),window.VTTCue=gp)}}else _.Vf("VTTCue not available.")});var ip;_.Sn(function(){_.Uf("InputEvent.install");_.cj("Trident/")&&HTMLInputElement.prototype.addEventListener!==jp&&(_.Tf("Patching input event support on IE."),ip=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=jp)});_.Sn(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.Sn(function(){_.Uf("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}}});_.rp.prototype.start=function(){var a=this;this.a=new ResizeObserver(function(b){b=b[0];a.j(b.contentRect.width,b.contentRect.height,a.f.isFullscreen())});this.a.observe(this.g)};_.rp.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.tp.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.Re);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.fi;c=c.play();var e=(new _.$i(function(){b(a)})).aa(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===bb?b(!0):b(!1)}):b(!0);return d};
454
- var sp=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,
417
+ 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]};_.hl.prototype.Pa=function(a,b){this.f[a]=b};_.I("clpp.drm.DrmEnvironment",_.hl);_.hl.prototype.setDrmSystem=_.hl.prototype.Pa;_.il.prototype.getPosition=function(){return this.a};_.il.prototype.Fa=function(){return this.f.byteLength};_.il.prototype.seek=function(a){(0>a||a>=this.f.byteLength)&&_.jl();this.a=a};_.ll.prototype.getPosition=function(){return this.a};_.ll.prototype.Fa=function(){return this.f.byteLength};_.ll.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.nl();this.a+=a};_.ll.prototype.seek=function(a){if(0>a||a>=this.f.byteLength)throw _.nl();this.a=a};_.I("clpp.utils.dataview.DataViewReader",_.ll);_.r=_.ul.prototype;_.r.L=function(a,b){var c=yl(a);this.g[c]=Kr;this.f[c]=b;return this};_.r.X=function(a,b){var c=yl(a);this.g[c]=Lr;this.f[c]=b;return this};_.r.stop=function(){this.a=!0};_.r.parse=function(a,b){var c=_.R(a);c=new _.ll(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.ml(c)&&!this.a;)this.ee(0,c,b)};
418
+ _.r.ee=function(a,b,c){var d=b.getPosition(),e=_.W(b),f=_.W(b),g=!1;this.h.debug("Parsing MP4 box",_.zl(f));switch(e){case 0:e=b.Fa()-d;break;case 1:e=_.rl(b),g=!0}var h=this.f[f];if(h){var l=null,m=null;this.g[f]==Lr&&(m=_.W(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.Fa()&&(n=b.Fa());n-=b.getPosition();b=0<n?_.tl(b,n):new Uint8Array(0);b=new _.ll(new DataView(b.buffer,b.byteOffset,b.byteLength),!1);h({parser:this,partialOkay:c||!1,version:l,flags:m,reader:b,size:e,start:d+a,headerSize:f,
419
+ has64BitSize:g})}else a=Math.min(d+e-b.getPosition(),b.Fa()-b.getPosition()),b.skip(a)};_.I("clpp.utils.Mp4Parser",_.ul);_.ul.typeToString=_.zl;_.ul.allData=_.xl;_.ul.sampleDescription=_.wl;_.ul.children=_.vl;_.ul.prototype.parseNext=_.ul.prototype.ee;_.ul.prototype.parse=_.ul.prototype.parse;_.ul.prototype.stop=_.ul.prototype.stop;_.ul.prototype.fullBox=_.ul.prototype.X;_.ul.prototype.box=_.ul.prototype.L;_.ul.headerSize=_.Al;var Kr=0,Lr=1;_.I("clpp.utils.FairplayUtils",Bl);Bl.parseFairPlayResponse=_.Hl;Bl.formatFairPlayRequest=_.Gl;Bl.createFairplayPayload=Fl;Bl.extractContentId=_.Dl;Bl.extractExtXKeyUri=Cl;var Sl=new _.K("clpp.drm.DrmToday"),Jl="PRODUCTION",Kl="STAGING",Ll="TEST",Mr={PRODUCTION:Jl,STAGING:Kl,TEST:Ll};_.I("clpp.drm.DrmToday.Environment",Mr);_.I("clpp.drm.DrmToday.WidevineCertificates",{V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"});
420
+ for(var Nl="/license-proxy-widevine/cenc/",Ol="/license-proxy-headerauth/drmtoday/RightsManager.asmx",Pl="/license-server-fairplay/",am={"00000":"Success","01000":"General Internal Error","02000":"General Request Error","03000":"General Request Authentication Error",3E4:"General DRM error",4E4:"General Widevine Modular error",40001:"Widevine Device Certificate Revocation (wv 127)",40002:"Widevine Device Certificate Revocation - Permanently (wv 175)",41E3:"General Widevine Classic error",42E3:"General Playready error",
421
+ 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"},Nr={video:[Na,Pa,Oa,_.sb,_.rb],audio:[_.sb,_.rb]},Or={video:["3000",
422
+ "2000","150"],audio:["2000","150"]},Pr=_.u(Object.keys(Mr)),Qr=Pr.next();!Qr.done;Qr=Pr.next()){var Il=Qr.value,Rr=Aa;Il!==Jl&&(Rr+="_"+Il);var Sr=new _.hl(Rr),Tr=null;switch(Il){case Jl:Tr=gl("V1_PROD");break;case Kl:Tr=gl("V2");break;case Ll:Tr=null}Sr.Pa(_.ad,{licenseUrl:Ql(_.ad),videoRobustness:Nr.video,audioRobustness:Nr.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:Tr,modifiers:{licenseRequest:_.Vl,licenseResponse:_.$l}});Sr.Pa(_.Yc,{licenseUrl:Ql(_.Yc),
423
+ certificateUrl:Ml()+"/license-server-fairplay/cert/",modifiers:{licenseRequest:_.Xl,licenseResponse:_.Yl,extractContentId:_.Tl,certificateRequest:_.Zl}});Sr.Pa(_.Zc,{licenseUrl:Ql(_.Zc),videoRobustness:Or.video,audioRobustness:Or.audio,modifiers:{licenseRequest:Wl}});_.bl(Sr)};_.I("clpp.drm.eme.EmeFactory",cm);var dm=[];cm.Apis={STANDARD:qb,APPLE:"APPLE",WEBKIT:"WEBKIT",NOP:"NOP"};var mm;_.um=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];mm=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.w(lm,km);_.w(_.pm,km);xm.prototype.j=function(a){if(1<a.version)_.J("Unrecognized PSSH version found!");else{var b=_.qi(_.tl(a.reader,16)),c=[];if(0<a.version)for(var d=_.W(a.reader),e=0;e<d;++e){var f=_.qi(_.tl(a.reader,16));c.push(f)}d=_.W(a.reader);a.reader.skip(d);this.g.push.apply(this.g,c);this.f.push(b);this.a.push({start:a.start,end:a.start+a.size-1});a.reader.getPosition()!=a.reader.Fa()&&_.J("Mismatch between box size and data size!")}};_.r=_.Bm.prototype;_.r.destroy=function(){var a=this;return _.G(function(b){if(1==b.a){if(a.j)return _.x(b,a.Da,0);a.j=!0;return _.x(b,Dm(a),4)}a.Da.resolve();return b.G(0)})};_.r.keySystem=function(){return this.a?_.bn(this.a.keySystem):""};_.r.getDrmInfo=function(){return this.a};
424
+ _.r.Vg=function(a){var b=this,c,d,e;return _.G(function(f){if(1==f.a){if(b.F&&b.J===Em)return f["return"]();c=Math.floor(a.timeStamp);d="drm.msg."+c+ea;e="drm.msg."+c+".end";_.wm(d);return!b.g.delayLicenseRequestUntilPlayed||b.B&&!b.B.paused||b.Ra?_.x(f,sn(b,a),2):(b.ha.push(a),f.G(2))}_.wm(e);performance.measure("drm.sess.msg."+c,d,e);_.y(f)})};
425
+ _.r.Rg=function(a){var b=this,c=a.target;this.h.info("Key status changed for session",c.sessionId);var d=this.f.get(c),e=!1;c.keyStatuses.forEach(function(g,h){if(typeof h==_.Ue){var l=h;h=g;g=l}if(jn(b.a.keySystem)&&16===h.byteLength&&_.Dj()){l=_.Vh(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!==Se&&(d.loaded=!0);d&&d.Ga&&d.Ga.resolve();"expired"===g&&(e=!0);l=_.R(h);var q=_.qi(l);"00"===q&&d&&d.keyId?q=d.keyId:
426
+ b.a.keySystem.startsWith(_.Yc)&&16!==l.byteLength&&(q=Xh(l));(l=q||"")?b.h.info(Ta+q+"': "+g):b.h.info("Key status global keys: "+g);b.l.set(l,g);d&&!d.keyId&&b.f.forEach(function(t,v){v===c||t.keyId!==q||t.loaded||(t.loaded=!0)})});d&&d.loaded&&d.Wa.forEach(function(g){b.l.get(g)===Se&&(b.h.warn(Ta+g+da),b.l.set(g,_.je))});for(a=0;a<this.a.initData.length;a++){var f=this.a.initData[a];f.keyId&&this.l.get(f.keyId)===Se&&_.ri(f.initData,d.initData)&&(this.h.warn(Ta+f.keyId+da),this.l.set(f.keyId,_.je))}a=
427
+ c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.qb&&(this.h.debug("Session has expired",c.sessionId),(a=this.f.get(c))&&a.Dc&&a.Dc.stop(),this.f["delete"](c),c.close()["catch"](function(){}));dn(this)&&(this.H.resolve(),1!==this.f.size||e?this.ea.$(.5):zm(this))};var Em=0,ym=3;_.un=new Map;_.vn=new _.K("clpp.text");_.En.prototype.getStats=function(){return{width:this.w,height:this.g,streamBandwidth:this.o,decodedFrames:this.j,droppedFrames:this.l,corruptedFrames:this.D,estimatedBandwidth:this.f,loadLatency:this.A,playTime:An(this.a,_.Xn),pauseTime:An(this.a,_.Wn),bufferingTime:An(this.a,_.On),stateHistory:Bn(this.a),switchHistory:Dn(this.B)}};_.Gn.prototype.value=function(){void 0==this.a&&(this.a=this.f());return this.a};var Hn=new _.Gn(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.Od],[HTMLMediaElement.HAVE_CURRENT_DATA,_.Nd],[HTMLMediaElement.HAVE_FUTURE_DATA,Cc],[HTMLMediaElement.HAVE_ENOUGH_DATA,Dc]])});Mn.prototype.Wb=function(a,b){this.m&&this.m.trigger(new _.L(a,{detail:b}))};Mn.prototype.getState=function(){return Pn(this,"")};Mn.prototype.U=function(a){(a=a&&a.detail)&&a.severity&&a.severity===_.O&&Tn(this,_.Un)};Mn.prototype.destroy=function(){this.h.debug("Stop watching for video events for "+this.m.namespace());this.a.release()};_.I("clpp.version",_.fa);_.I("clpp.name",_.sa);_.kk="application/x-mpegurl";_.I("clpp.Type",{DASH:_.kc,HLS:_.kk,SMOOTH_STREAMING:_.pc,MP4:_.wf});_.Og="scte35";_.Mg=gf;_.I("clpp.TimelineCueType",{SCTE35:_.Og,DASH_CALLBACK:_.Zd,UNKNOWN:_.Mg});_.I("clpp.utils.media.detectType",Zn);var bo=new _.K("clpp.sources");_.w(co,_.Kk);_.r=co.prototype;_.r.init=function(a,b){_.Kk.prototype.init.call(this,a,b);this.j=new Mn(this);Tn(this.j,_.Jn)};_.r.namespace=function(){return Sc};
428
+ _.r.unload=function(){var a=this,b;return _.G(function(c){if(!a.w)return c.G(0);a.log.debug(_.ob,a.w);a.F&&(a.F.stop(),a.F=null);(b=a.getTrackManager())&&b.release();a.B&&(a.B.destroy(),a.B=null);a.M&&(a.M.destroy(),a.M=null);a.l&&a.l.release();a.o&&(a.o.destroy(),a.o=null);_.Hg(a.g);a.f&&(a.f=new _.En);a.H=null;a.w=null;a.I=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());return _.x(c,ho(a),0)})};
429
+ _.r.release=function(){var a=this;return _.Kk.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.j&&Tn(a.j,_.Jn)})};
430
+ _.r.destroy=function(){var a=this;if(this.A)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.A=!0;return _.Kk.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(Da);var b=a.getTrackManager();b&&b.destroy();a.l&&(a.l.destroy()["catch"](function(c){a.log.warn("Error while disposing metadata handler",c)}),a.l=null);a.j&&(a.j.destroy(),a.j=null);a.f=null})};_.r.getDrmInfo=function(){return this.o?this.o.getDrmInfo():null};
431
+ _.r.detach=function(){};_.r.getTrackManager=function(){return this.Yc};
432
+ _.r.load=function(a){var b=this,c,d,e,f,g;return _.G(function(h){switch(h.a){case 1:if(b.A)return h["return"](eo());if(!b.getSurface()||!b.getSurface().getMedia())return h["return"](Promise.reject("No surface or no media element in surface"));c=_.M;d=b.D.getMedia();b.J=Date.now()/1E3;b.f=new _.En;b.g.on(b,_.Re,function(){b.f&&_.zn(b.f.a,b.getState())});Tn(b.j,_.Vn);b.w=_.ao(a);_.Jk(a)&&(b.configuration=_.Ik(b.Pd,a));b.log.debug(_.Wa,b.configuration);b.log.debug(_.ib,b.w);e=_.xn(b.configuration,[_.Dd,
433
+ "native"]);b.M=e.create(b);b.M.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.Mk(_.Ye)&&!_.Kj()&&(b.B=new hh(b),b.B.start(d));b.l?b.l.release():b.l=new Jg(b);Lg(b.l,d);f=b.getTrackManager();f.load();d.loop=!!b.configuration.loop;c.R(b.configuration.volume)||b.setVolume(b.configuration.volume);c.R(b.configuration.muted)||b.setMuted(b.configuration.muted);b.g.one(d,Cc,function(){b.trigger(new _.L(_.Ir))});null==b.configuration.startTime&&mo(b,d);_.B(h,2);return _.x(h,go(b,d),4);case 4:return _.x(h,
434
+ jo(b),5);case 5:return _.x(h,lo(b).O,6);case 6:_.ag(h,0);break;case 2:g=_.D(h),b.I=!1,b.onError(g),_.y(h)}})};_.r.onError=function(a){this.I||(a.severity===_.O&&null!==this.j&&Tn(this.j,_.Un),this.trigger(new _.L(_.yd,{detail:a})))};_.r.dg=function(){return new ek};_.r.getState=function(){return null!==this.j?this.j.getState().currentState:_.Kn};
435
+ _.r.getPresentationStartTime=function(){if(this.a&&this.a.getStartDate&&this.isLive()){var a=this.a.getStartDate();return isNaN(a.getTime())?(this.log.warn("EXT-X-PROGRAM-DATETIME required to get presentation start time as Date!"),null):a.getTime()/1E3}return null};_.r.getSeekRange=function(){var a=this.getSurface().getMedia();if(a&&a.src){a=a.seekable;if(a.length)return this.H=a={start:a.start(0),end:a.end(a.length-1)};if(this.H)return this.H}return{start:0,end:0}};
436
+ _.r.isLive=function(){return this.a&&this.a.src?Infinity===this.a.duration:!1};
437
+ _.r.getStats=function(){if(!this.f||!this.a)return _.Fn();this.f&&_.zn(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.w=a.videoWidth;b.g=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.l=Number(a.droppedVideoFrames),b.j=c,this.f.D=Number(a.corruptedVideoFrames));if(a=this.getTrackManager())if(a=a.ga())a.bandwidth&&(this.f.o=a.bandwidth),a.Xc&&(this.f.f=a.Xc);return this.f.getStats()};
438
+ _.r.getTimelineCues=function(){return this.l?this.l.getTimelineCues():[]};no.prototype.a=function(){return Sc};no.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.kc,e=c===_.pc,f=c===_.kk;return _.Hj()||d||e||f&&!_.Ij()?0:""!==Nj().canPlayType(c)?f&&_.Ij()&&(window.ManagedMediaSource||window.MediaSource&&MediaSource.isTypeSupported)&&!b.streaming.preferNativeHlsOnSafari?1:2:0};no.prototype.create=function(){return new co};_.Ag(new no);_.I("clpp.ads.PodType",{PREROLL:0,MIDROLL:1,POSTROLL:2});_.I("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1});_.I("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var po=new _.K("clpp.ads"),oo=[];_.I("clpp.utils.dom.createHTMLElement",_.wo);xo.prototype.set=function(a){this.g.clear();this.f&&(this.f.disconnect(),this.f=null);if(this.a=a)this.f=zo(this,a)};xo.prototype.get=function(){return this.a};_.r=Do.prototype;_.r.getMedia=function(){return this.f.get()};_.r.getContainer=function(){return this.a.get()};_.r.getSafeContainer=function(){return this.a};_.r.getId=function(){return this.l};_.r.getUniqueCssClass=function(){return this.o};_.r.getCastElement=function(){return this.g};_.r.isFullscreen=function(){return!!document.fullscreenElement};_.r.hideMediaElement=function(){var a=this.getMedia();a?_.uo(a,Nc):this.h.debug("No media element available that could be hidden")};
439
+ _.r.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(Nc):this.h.debug("No media element available that could be shown")};_.r.addElementToContainer=function(a,b,c){b=void 0===b?!1:b;c=void 0===c?!1:c;var d=this.getContainer();if(!d)throw Error("No container is available. Unable to add element");b&&_.uo(a,_.Mc);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};
440
+ _.r.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.r.hide=function(a){_.uo(a,Nc)};_.r.show=function(a){a.classList.remove(Nc)};_.r.release=function(){this.j.release()};Do.prototype.removeElementFromContainer=Do.prototype.removeElementFromContainer;Do.prototype.addElementToContainer=Do.prototype.addElementToContainer;Do.prototype.getCastElement=Do.prototype.getCastElement;
441
+ Do.prototype.getContainer=Do.prototype.getContainer;Do.prototype.getMedia=Do.prototype.getMedia;var Ao={disableContainer:!1,webOSStartupPatch:!0,crossorigin:"anonymous",containerEl:null},Bo=1;Fo.prototype.release=function(){this.a.release();Jo(this);this.m=null};_.I("clpp.polyfill.installAll",Mo);var Lo=[];_.I("clpp.polyfill.register",_.No);Po.prototype.verify=function(a,b){var c={kty:"RSA",n:a.n,e:a.e},d=this.g+"."+this.f,e=this.j;return new Promise(function(f,g){try{var h=window&&window.crypto&&window.crypto.subtle}catch(m){}if(h){var l={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};h.importKey("jwk",c,l,!1,["verify"]).then(function(m){var n=_.bi(d),p=_.oi(e);return h.verify(l,m,p.buffer,n.buffer)}).then(function(m){m?f():g(vb)})["catch"](g)}else b?g("Web Crypto API is not supported"):f()})};var Ur={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},Ek="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";Qo.prototype.verify=function(){var a=this;return(new Promise(function(b,c){try{var d=Ro(a);b(d)}catch(e){c()}})).then(function(b){return b.verify(Ur)})["catch"](function(b){if(b&&b!==vb){var c=window.location.href;var d=new _.ph(c);c=d.ab||d.Ka?d:new _.ph("//"+c);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(c.Ka))return Promise.resolve()}throw b;})};var bp="vod",ap="live";_.w(X,_.Ak);_.r=X.prototype;_.r.on=function(a,b,c){return _.Ak.prototype.on.call(this,a,b,c)};_.r.one=function(a,b,c){return _.Ak.prototype.one.call(this,a,b,c)};_.r.off=function(a,b){return _.Ak.prototype.off.call(this,a,b)};_.r.init=function(){};_.r.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.L(_.yd,{detail:a}))};_.r.cc=function(a){a=this.M[a];void 0===a&&(a=null);return a};_.r.getSurface=function(){return this.g};_.r.getConfiguration=function(){return _.M.Sa(this.f)};
442
+ _.r.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.r.unload=function(){return this.a?this.a.unload():Promise.resolve()};_.r.detach=function(){return this.a?this.a.detach():Promise.resolve()};_.r.release=function(){var a=this;if(null!=this.l)return this.h.info("Player release already in progress"),this.l;this.h.debug("Releasing player");this.l=ip(this);return this.l["finally"](function(){a.h.debug("Player released");a.l=null})};
443
+ _.r.destroy=function(){var a=this;if(this.H)return this.h.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.H=!0;return this.release().then(function(){a.h.debug(Da);a.trigger(new _.L("destroying"));return a.ic(_.de)}).then(function(){a.a&&a.a.removeDelegate(a);a.kd.clear();a.V.release();if(a.a)return a.a.destroy()}).then(function(){return a.B.destroy()}).then(function(){Uk();a.a=null;a.trigger(new _.L("destroyed"))})};
444
+ _.r.load=function(a){var b=this,c;return _.G(function(d){switch(d.a){case 1:return _.B(d,2),_.wm(ue),_.x(d,_.np(b,a),4);case 4:return _.x(d,_.op(b),5);case 5:return _.x(d,_.kp(b),6);case 6:_.wm(te);performance.measure("player.load",ue,te);_.ag(d,0);break;case 2:c=_.D(d);if(b.l)throw b.h.info("Load interrupted while a player release is pending"),new _.N(_.O,7,7E3);throw c;}})};
445
+ _.r.preload=function(a){var b=this,c;return _.G(function(d){if(1==d.a)return _.x(d,_.np(b,a),2);if(!b.a)return b.h.warn(hb),d["return"]();c=b.a;return c.preload?_.x(d,c.preload(b.f),0):(b.h.warn(lb),d["return"]())})};_.r.ic=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];var e=this;d=this.K.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.Of(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};_.r.use=function(a){(a=Vk(a))&&a.o(this)};
446
+ _.r.remove=function(a){return(this.getState()<=_.Jn||this.I)&&null!==Pk(a)?(Wk(a),this.J=!0):!1};_.r.play=function(){return this.a?this.j&&this.a.namespace()!==_.Pc?this.j.start(this.a):this.a.play():Promise.reject("No player initialized. You need to load content before calling play.")};_.r.pause=function(){return this.a?this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};_.r.getTrackManager=function(){return this.a&&this.a.getTrackManager()};
447
+ _.r.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.zk};_.r.getState=function(){return this.a?this.a.getState():_.Jn};_.r.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.r.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.r.isPaused=function(){return this.a&&this.a.isPaused()||!1};_.r.getPosition=function(){return this.a?this.a.getPosition():0};
448
+ _.r.seek=function(a){return this.getState()===_.Un?Promise.reject("Cannot seek in current state."):this.a?this.a.seek(a):Promise.reject("delegate does not exist")};_.r.getPresentationStartTime=function(){return this.a?this.a.getPresentationStartTime():null};_.r.getSeekRange=function(){return this.a?this.a.getSeekRange():{start:0,end:0}};_.r.Kc=function(){var a=this.a;return a&&a.Kc?a.Kc():null};_.r.getVolume=function(){return this.a?this.a.getVolume():null};_.r.setVolume=function(a){this.a&&this.a.setVolume(a)};
449
+ _.r.getDuration=function(){return this.a?this.a.getDuration():-1};_.r.getAdsManager=function(){return this.j};_.r.namespace=function(){return this.a&&this.a.namespace()||"Undefined"};_.r.canPlay=function(a,b){return this.a?this.a.canPlay(a,b):0};_.r.getPlaybackRate=function(){return this.a?this.a.getPlaybackRate():1};_.r.setPlaybackRate=function(a){this.a&&this.a.setPlaybackRate(a)};_.r.isMuted=function(){return this.a&&this.a.isMuted()||!1};_.r.setMuted=function(a){this.a&&this.a.setMuted(a)};
450
+ _.r.getNetworkEngine=function(){return this.B};_.r.setNetworkEngine=function(a){this.B=a};_.r.getTextDisplayer=function(){return this.a&&this.a.getTextDisplayer()};_.r.isLive=function(){return!!this.a&&this.a.isLive()};_.r.getStats=function(){return this.a?this.a.getStats():null};_.r.Td=function(){return Object.freeze(this.o)};_.r.setSourceIndex=function(a){this.a&&this.a.setSourceIndex(a)};_.r.getSourceIndex=function(){return this.a?this.a.getSourceIndex():-1};
451
+ _.r.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};_.r.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.r.resetAbr=function(){this.a&&this.a.resetAbr()};_.r.setDrmCustomDataModifier=function(a){this.Fc=a;mp(this)};_.r.setCdnErrorCallback=function(a){this.F=a;this.a&&this.a.setCdnErrorCallback(this.F)};_.r.Lg=function(){this.Fe=!0};_.I("clpp.Player",X);X.registerPlugin=_.qp;X.prototype.setCdnErrorCallback=X.prototype.setCdnErrorCallback;
452
+ 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.Td;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;
453
+ 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;
454
+ 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;
455
+ 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.cc;X.prototype.off=X.prototype.off;X.prototype.one=X.prototype.one;X.prototype.on=X.prototype.on;_.Jn=0;_.Vn=1;_.On=2;_.Xn=3;_.Wn=4;_.Qn=5;_.Un=6;_.Kn=7;
456
+ _.Sn={IDLE:_.Jn,PREPARING:_.Vn,BUFFERING:_.On,PLAYING:_.Xn,PAUSED:_.Wn,ENDED:_.Qn,ERROR:_.Un,UNSET:_.Kn};X.State=_.Sn;var fp=[];rp.prototype.has=function(){return this.a.some(function(a){return a.Fd})};rp.prototype.get=function(){var a=this,b;return _.G(function(c){if(1==c.a){b=a.a.find(function(d){return d.Fd});if(!b)throw Error("No available players in the pool");b.Fd=!1;return _.x(c,b.ready,2)}return c["return"](b.player)})};
457
+ rp.prototype.release=function(a){var b=this,c=this.a.find(function(d){return d.player===a});if(!c)return Promise.resolve();c.Fd=!0;c.ready=new Promise(function(d){a.unload()["catch"](function(e){b.h.error("Failed to unload player",e)}).then(d)});return c.ready};rp.prototype.destroy=function(){var a=this;return _.G(function(b){return _.x(b,Promise.all(a.a.map(function(c){return c.player.destroy()})),0)})};_.w(up,_.Ak);_.r=up.prototype;_.r.ld=function(){return this.g};_.r.vj=function(){return this.g?this.g.player:null};_.r.rg=function(){return this.l.get(this.a+1)||null};_.r.tg=function(){return this.l.get(this.a-1)||null};_.r.Ej=function(){return[this.tg(),this.rg()].filter(Boolean)};_.r.yl=function(a){if(0<this.f.length)throw Error("Cannot re-set items in the playlist");this.h.info("Set items",a);this.f=a.map(function(b,c){return{config:b,index:c,preloadPromise:Promise.resolve()}})};
458
+ _.r.xl=function(a){if(0===this.f.length)throw Error(bb);if(0>a||a>this.f.length-1)throw Error("Index out of bounds");this.a=a};_.r.Wd=function(){return this.a<this.f.length-1};_.r.xg=function(){return 0<this.a};
459
+ _.r.hl=function(){var a=this,b,c;return _.G(function(d){switch(d.a){case 1:if(a.j)return a.h.warn("Cannot play first item while busy"),d["return"]();if(0===a.f.length)return a.h.warn(bb),d["return"]();a.j=!0;a.h.info("First (index: "+a.a+")");b=a.f[a.a];_.B(d,2,3);a.h.info("First loading (index: "+a.a+")");return _.x(d,Ap(a,b),5);case 5:a.h.info("First playing (index: "+a.a+")");case 3:_.bg(d);a.j=!1;Fp(a);_.cg(d);break;case 2:throw c=_.D(d),a.h.error("First failed (index: "+a.a+")"),c;}})};
460
+ _.r.il=function(){var a=this,b,c,d;return _.G(function(e){switch(e.a){case 1:if(a.j)return a.h.warn("Cannot play next item while busy"),e["return"]();if(!a.Wd())return a.h.warn("There are no more items in the playlist"),e["return"]();a.j=!0;a.a+=1;a.h.info("Next (index: "+a.a+")");b=a.g;a.w.transition===_.ke&&b.player.pause();vp(a,a.a+-2);a.l["delete"](a.a);c=a.f[a.a];_.B(e,2,3);a.h.info("Next loading (index: "+a.a+")");return _.x(e,Bp(a,c),5);case 5:a.h.info("Next playing (index: "+a.a+")");case 3:_.bg(e);
461
+ a.j=!1;b&&yp(a,b);Fp(a);_.cg(e);break;case 2:throw d=_.D(e),a.h.error("Next failed (index: "+a.a+")"),d;}})};
462
+ _.r.jl=function(){var a=this,b,c,d;return _.G(function(e){switch(e.a){case 1:if(a.j)return a.h.warn("Cannot play previous item while busy"),e["return"]();if(!a.xg())return a.h.warn("There are no more previous items in the playlist"),e["return"]();a.j=!0;--a.a;a.h.info("Previous (index: "+a.a+")");b=a.g;a.w.transition===_.ke&&b.player.pause();vp(a,a.a+2);a.l["delete"](a.a);c=a.f[a.a];_.B(e,2,3);a.h.info("Previous loading (index: "+a.a+")");return _.x(e,Bp(a,c),5);case 5:a.h.info("Previous playing (index: "+
463
+ a.a+")");case 3:_.bg(e);a.j=!1;b&&yp(a,b);Fp(a);_.cg(e);break;case 2:throw d=_.D(e),a.h.error("Previous failed (index: "+a.a+")"),d;}})};_.r.destroy=function(){var a=this;return _.G(function(b){return 1==b.a?(a.h.info("Destroy"),_.x(b,Promise.all([wp(a),a.g?yp(a,a.g):Promise.resolve()]),2)):_.x(b,Gp(a),0)})};_.I(Tc,up);up.prototype.destroy=up.prototype.destroy;up.prototype.playPrev=up.prototype.jl;up.prototype.playNext=up.prototype.il;up.prototype.playFirst=up.prototype.hl;up.prototype.hasPrev=up.prototype.xg;
464
+ up.prototype.hasNext=up.prototype.Wd;up.prototype.setIndex=up.prototype.xl;up.prototype.setItems=up.prototype.yl;up.prototype.getPreloading=up.prototype.Ej;up.prototype.getPrev=up.prototype.tg;up.prototype.getNext=up.prototype.rg;up.prototype.getCurrentPlayer=up.prototype.vj;up.prototype.getCurrent=up.prototype.ld;var xp="preload",zp="main";_.r=Hp.prototype;_.r.ub=function(){};_.r.vb=function(){};_.r.Ab=function(){};_.r.getId=function(){};_.r.getCreativeId=function(){};_.r.getApiFramework=function(){};_.r.getAdSystem=function(){};_.r.getAdvertiserName=function(){};_.r.getTitle=function(){};_.r.getDuration=function(){};_.r.getSkipTimeOffset=function(){};_.r.gc=function(){};_.r.Lb=function(){};_.r.getMediaUrl=function(){};_.r.xb=function(){};_.r.wb=function(){};_.r.jb=function(){};_.r.Za=function(){};_.r.getPodIndex=function(){};
465
+ _.r.Mb=function(){};_.r.Nb=function(){};_.r.zb=function(){};_.r.getWrapperAdIds=function(){};_.r.getWrapperAdSystems=function(){};_.r.getWrapperCreativeIds=function(){};_.I("clpp.ads.IAd",Hp);Hp.prototype.getWrapperCreativeIds=Hp.prototype.getWrapperCreativeIds;Hp.prototype.getWrapperAdSystems=Hp.prototype.getWrapperAdSystems;Hp.prototype.getWrapperAdIds=Hp.prototype.getWrapperAdIds;Hp.prototype.getSequenceLength=Hp.prototype.zb;Hp.prototype.getPositionInSequence=Hp.prototype.Nb;
466
+ Hp.prototype.getPodTimeOffset=Hp.prototype.Mb;Hp.prototype.getPodIndex=Hp.prototype.getPodIndex;Hp.prototype.getPodType=Hp.prototype.Za;Hp.prototype.getMediaBitrate=Hp.prototype.jb;Hp.prototype.getMediaHeight=Hp.prototype.wb;Hp.prototype.getMediaWidth=Hp.prototype.xb;Hp.prototype.getMediaUrl=Hp.prototype.getMediaUrl;Hp.prototype.getClickThroughUrl=Hp.prototype.Lb;Hp.prototype.isBumper=Hp.prototype.gc;Hp.prototype.getSkipTimeOffset=Hp.prototype.getSkipTimeOffset;Hp.prototype.getDuration=Hp.prototype.getDuration;
467
+ Hp.prototype.getTitle=Hp.prototype.getTitle;Hp.prototype.getAdvertiserName=Hp.prototype.getAdvertiserName;Hp.prototype.getAdSystem=Hp.prototype.getAdSystem;Hp.prototype.getApiFramework=Hp.prototype.getApiFramework;Hp.prototype.getCreativeId=Hp.prototype.getCreativeId;Hp.prototype.getId=Hp.prototype.getId;Hp.prototype.getTechnology=Hp.prototype.Ab;Hp.prototype.getAdManagerVersion=Hp.prototype.vb;Hp.prototype.getAdManagerName=Hp.prototype.ub;Ip.prototype.name=function(){};Ip.prototype.aa=function(){};Ip.prototype.create=function(){};_.I("clpp.ads.IAdsManagerFactory",Ip);Ip.prototype.create=Ip.prototype.create;Ip.prototype.isSupported=Ip.prototype.aa;Ip.prototype.name=Ip.prototype.name;_.r=Jp.prototype;_.r.load=function(){};_.r.start=function(){};_.r.resume=function(){};_.r.pause=function(){};_.r.skip=function(){};_.r.getVolume=function(){};_.r.setVolume=function(){};_.r.getPosition=function(){};_.r.dispose=function(){};_.I("clpp.ads.IAdsManager",Jp);Jp.prototype.getPosition=Jp.prototype.getPosition;Jp.prototype.setVolume=Jp.prototype.setVolume;Jp.prototype.getVolume=Jp.prototype.getVolume;Jp.prototype.skip=Jp.prototype.skip;Jp.prototype.pause=Jp.prototype.pause;
468
+ Jp.prototype.resume=Jp.prototype.resume;_.r=Kp.prototype;_.r.load=function(){return Promise.resolve()};_.r.start=function(a){return a.play()};_.r.resume=function(){};_.r.pause=function(){};_.r.skip=function(){};_.r.getVolume=function(){return 1};_.r.setVolume=function(){};_.r.getPosition=function(){return-1};_.r.dispose=function(){return _.G(function(a){_.y(a)})};Kp.prototype.dispose=Kp.prototype.dispose;Kp.prototype.getPosition=Kp.prototype.getPosition;Kp.prototype.setVolume=Kp.prototype.setVolume;Kp.prototype.getVolume=Kp.prototype.getVolume;
469
+ Kp.prototype.skip=Kp.prototype.skip;Kp.prototype.pause=Kp.prototype.pause;Kp.prototype.resume=Kp.prototype.resume;Kp.prototype.start=Kp.prototype.start;Kp.prototype.load=Kp.prototype.load;ro.prototype.name=function(){return"clpp.ads.NopAdsManagerFactory"};ro.prototype.aa=function(){return!0};ro.prototype.create=function(){return new Kp};ro.prototype.create=ro.prototype.create;ro.prototype.isSupported=ro.prototype.aa;ro.prototype.name=ro.prototype.name;Lp.prototype.getCuePoints=function(){};Lp.prototype.Ob=function(){};Lp.prototype.kb=function(){};_.I("clpp.ads.IAdsTimeline",Lp);Lp.prototype.hasPostroll=Lp.prototype.kb;Lp.prototype.hasPreroll=Lp.prototype.Ob;Lp.prototype.getCuePoints=Lp.prototype.getCuePoints;_.Mp.prototype.f=function(){};_.Mp.prototype.a=function(){};_.Mp.prototype.g=function(){};_.Mp.prototype.o=function(){};_.r=Np.prototype;_.r.Ld=function(a){this.a=a};_.r.bd=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(Za)};_.r.Sd=function(){return this.a&&this.a.mediaKeys};_.r.$b=function(a,b){this.h.debug("Requesting media key system access for",a,b.map(function(c){return Object.assign({},c,{drmInfos:c.drmInfos.map(function(){return"_anonymous_"})})}));return navigator.requestMediaKeySystemAccess(a,b)["catch"](function(c){c.message&&(c=Error(c.message+" (keySystem: "+a+")"));return Promise.reject(c)})};
470
+ _.r.$c=function(){return qb};Op.prototype.a=function(){return qb};Op.prototype.aa=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};Op.prototype.create=function(){return new Np};em(new Op,1E3);_.r=Pp.prototype;_.r.getStatus=function(){return this.a};_.r.forEach=function(a){this.a&&a(this.a,Vr.value())};_.r.get=function(a){if(this.has(a))return this.a};_.r.has=function(a){var b=Vr.value();return this.a&&Qh(a,b)?!0:!1};_.r.entries=function(){};_.r.keys=function(){};_.r.values=function(){};var Vr=new _.Gn(function(){return Wh(new Uint8Array([0]))});_.r=Rp.prototype;_.r.Ld=function(){};_.r.bd=function(a){_.ug("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.r.Sd=function(){return null};_.r.$b=function(){_.ug("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.r.$c=function(){return"NOP"};Sp.prototype.a=function(){return"NOP"};Sp.prototype.aa=function(){return!0};Sp.prototype.create=function(){return new Rp};
471
+ em(new Sp,-1);_.r=Tp.prototype;_.r.Ld=function(a){this.f=a};_.r.bd=function(a){var b=this.a;b&&b!==a&&Wp(b,null);return(this.a=a)?Wp(a,this.f):Promise.resolve()};_.r.Sd=function(){return this.a};_.r.$b=function(a,b){_.ug("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new Up(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.r.$c=function(){return"APPLE"};Up.prototype.createMediaKeys=function(){var a=new Vp(this.keySystem);return Promise.resolve(a)};
472
+ Up.prototype.getConfiguration=function(){_.ug("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};Vp.prototype.createSession=function(a){a=void 0===a?Ze:a;this.h.debug("Creating Apple MediaKeys Session");if(a!==Ze)throw new TypeError("Session type "+a+ba);return new Xp(this.g,"__session_"+this.j++)};Vp.prototype.setServerCertificate=function(){this.h.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.w(Xp,_.Ak);_.r=Xp.prototype;
473
+ _.r.generateRequest=function(a,b){var c=this;if(this.l)return Promise.reject(tb);this.h.debug("generateRequest");this.g=new _.Fi;try{var d=this.o.createSession(_.wf,_.R(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,Hf,function(e){var f=c.keyStatuses.getStatus();c.h.debug("Received Key Message in "+c.sessionId);c.g&&(c.g.resolve(),c.g=null);e=new _.L(Sd,{messageType:void 0===f||f===Se?Jd:Id,message:Wh(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,Ff,function(e){c.h.debug("onWebkitKeyAdded_",
474
+ e);c.f&&(Yp(c,"usable"),c.f.resolve(),c.f=null)});this.j.on(d,Gf,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===Se)c.h.warn("Ignoring webkit key error for session "+c.sessionId);else if(c.h.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.g)c.g.reject(e),c.g=null;else if(null!==c.f)c.f.reject(e),
475
+ c.f=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:Yp(c,"output-not-allowed");break;default:Yp(c,_.Fd)}});Yp(this,Se)}catch(e){this.g.reject(e)}return this.g};_.r.load=function(){this.h.debug("load");return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.r.update=function(a){if(this.l)return Promise.reject(tb);this.h.debug(hf);this.f=new _.Fi;try{this.a.update(_.R(a))}catch(b){this.f.reject(b)}return this.f};
476
+ _.r.close=function(){if(this.l)return this.closed;this.h.info("Closing Key Session "+this.sessionId);this.l=!0;try{this.a.close(),this.closed.resolve(),_.Hg(this.j)}catch(a){this.closed.reject(a)}return this.closed};_.r.remove=function(){this.h.debug("remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};Zp.prototype.a=function(){return"APPLE"};Zp.prototype.aa=function(){return!!window.WebKitMediaKeys};
477
+ Zp.prototype.create=function(){return new Tp};em(new Zp,1100);_.r=$p.prototype;_.r.Ld=function(a){this.a=a};_.r.bd=function(a){_.ug("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(Za);var b=this.f;b&&b!==a&&eq(b,null);(this.f=a)&&eq(a,this.a);return Promise.resolve()};_.r.Sd=function(){return this.f};_.r.$b=function(a,b){_.ug("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.uf);c=d.length?d[0]:document.createElement(_.uf)}var e=new aq(this.g,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
478
+ _.r.$c=function(){return"WEBKIT"};aq.prototype.createMediaKeys=function(){return Promise.resolve(new bq(this.g,this.a))};aq.prototype.getConfiguration=function(){return this.f};bq.prototype.createSession=function(a){a=void 0===a?Ze:a;if(a!==Ze&&a!==_.me)throw new TypeError("Session type "+a+ba);if(!this.a)throw a=Error("Media element is missing."),a.name=Sa,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new fq(this.g,this.a,this.o,a);this.j.push(a);return a};
479
+ bq.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.w(fq,_.Ak);_.r=fq.prototype;_.r.ready=function(){_.ug("WebkitEmeManager.MediaKeySession.ready");dq(this,"usable");this.a&&this.a.resolve();this.a=null};_.r.generateRequest=function(a,b){_.ug("WebkitEmeManager.MediaKeySession.generateRequest");return hq(this,b,null)};_.r.load=function(a){_.ug(Jb);return this.l===_.me?hq(this,null,a):Promise.reject(Error(db))};_.r.update=function(a){_.ug(Jb);var b=new _.Fi;iq(this,b,a);return b};
480
+ _.r.close=function(){_.ug("WebkitEmeManager.MediaKeySession.close");if(this.l!==_.me){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=gq(this,"cancelKeyRequest");try{this.j[a](this.g,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.r.remove=function(){_.ug("WebkitEmeManager.MediaKeySession.remove");return this.l!==_.me?Promise.reject(Error(db)):this.close()};jq.prototype.a=function(){return"WEBKIT"};
481
+ jq.prototype.aa=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};jq.prototype.create=function(){return new $p};em(new jq);_.w(kq,_.hl);kq.prototype.td=function(a,b){for(var c=a.drm.customData.headers||{},d=_.u(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};kq.prototype.ig=function(a,b){var c=Cl(b);switch(this.o){case Wr:return c;case Xr:return(new _.cj(c)).a;default:throw Error("Unknown content ID strategy");}};kq.prototype.Pg=function(a,b){b.headers[va]=qc;this.td(a,b);var c={spc:_.mi(b.body)};b.body=_.di(_.ej(c,!0))};
482
+ kq.prototype.Qg=function(a,b){var c=_.Yh(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.oi(c).buffer};_.I(Qc,kq);kq.prototype.onFairPlayLicenseResponse=kq.prototype.Qg;kq.prototype.onFairPlayLicenseRequest=kq.prototype.Pg;kq.prototype.extractFairPlayContentId=kq.prototype.ig;kq.prototype.onLicenseRequest=kq.prototype.td;kq.prototype.constructor=kq.prototype.constructor;kq.NAME=Qa;var Xr="hostname",Wr="full-skd";
483
+ kq.FairPlayContentIdStrategy={HOSTNAME:Xr,FULL_SKD:Wr};_.w(lq,_.Mp);lq.prototype.g=function(a){a=a.getConfiguration();if(a.drm&&a.drm&&a.drm.env===Qa){a=a.drm.customData;if(!a)throw new _.N(_.O,7,7100,_.bd);a=new kq(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||Wr);_.bl(a)}};lq.prototype.a=function(){delete _.al.HeaderDrm};lq.prototype.id=function(){return"headerdrm"};_.I("clpp.drm.HeaderDrmComponent",lq);_.No(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=_.R(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});_.No(function(){_.ug("mathRound.install")});_.No(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;zd in document||(Object.defineProperty(document,zd,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
484
+ {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",mq);document.addEventListener("webkitfullscreenerror",mq);document.addEventListener("mozfullscreenchange",mq);document.addEventListener("mozfullscreenerror",mq);document.addEventListener("MSFullscreenChange",mq);document.addEventListener("MSFullscreenError",mq)}});_.No(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.ug("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=oq,document.exitPictureInPicture=pq,document.addEventListener("webkitpresentationmodechanged",nq,!0))}});_.No(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=qq)}});_.No(function(){if(window.VTTCue)_.tg("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.tg(Gb),window.VTTCue=rq;else if(6===a)_.tg("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=sq;else{try{var b=!!rq(1,2,"")}catch(c){b=!1}b&&(_.tg(Gb),window.VTTCue=rq)}}else _.vg("VTTCue not available.")});var tq;_.No(function(){_.ug("InputEvent.install");_.Ej("Trident/")&&HTMLInputElement.prototype.addEventListener!==uq&&(_.tg("Patching input event support on IE."),tq=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=uq)});_.No(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.No(function(){_.ug("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}}});_.Cq.prototype.start=function(){var a=this;this.a=new ResizeObserver(function(b){b=b[0];a.j(b.contentRect.width,b.contentRect.height,a.f.isFullscreen())});this.a.observe(this.g)};_.Cq.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.Eq.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.uf);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.Fi;c=c.play();var e=(new _.zj(function(){b(a)})).$(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===fb?b(!0):b(!1)}):b(!0);return d};
485
+ var Dq=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,
455
486
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
456
487
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
457
488
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
458
489
  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,
459
490
  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,
460
- 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]);_.Lq=new _.I("clpp.media.TimestampParser");_.wp={};_.yp={};var Dp=window.XMLHttpRequest;_.w(Lp,_.gi);Lp.prototype.then=function(a,b){this.P=this.P.then(a,b);return this};Lp.prototype["catch"]=function(a){this.P=this.P["catch"](a);return this};Lp.prototype.abort=function(){var a=this;if(this.a)return Promise.resolve();this.a=!0;return this.g.then(function(b){a.o&&clearTimeout(a.o);a.m&&a.m();return b.abort()})["catch"](function(){})};var Rp=window.fetch,Pp=window.AbortController,Op=window.Headers;_.Tp={};_.t=_.Vp.prototype;_.t.getBackgroundColor=function(){return this.K};_.t.setBackgroundColor=function(a){this.K=a;this.sb()};_.t.getWindowColor=function(){return this.V};_.t.setWindowColor=function(a){this.V=a;this.sb()};_.t.getFontFamily=function(){return this.T};_.t.setFontFamily=function(a){this.T=a;this.sb()};_.t.getFontColor=function(){return this.N};_.t.setFontColor=function(a){this.N=a;this.sb()};_.t.getFontSize=function(){return this.I};_.t.setFontSize=function(a){this.I=a;this.sb()};
461
- _.t.getFontSizePercent=function(){return null===this.B?Mq:this.B};_.t.setFontSizePercent=function(a){this.B=a;this.sb()};_.t.getEdgeColor=function(){return this.H};_.t.setEdgeColor=function(a){this.H=a;this.sb()};_.t.getEdgeType=function(){return this.o};_.t.setEdgeType=function(a){this.o=a;this.sb()};_.Vp.prototype.setEdgeType=_.Vp.prototype.setEdgeType;_.Vp.prototype.getEdgeType=_.Vp.prototype.getEdgeType;_.Vp.prototype.setEdgeColor=_.Vp.prototype.setEdgeColor;_.Vp.prototype.getEdgeColor=_.Vp.prototype.getEdgeColor;
462
- _.Vp.prototype.setFontSizePercent=_.Vp.prototype.setFontSizePercent;_.Vp.prototype.getFontSizePercent=_.Vp.prototype.getFontSizePercent;_.Vp.prototype.setFontSize=_.Vp.prototype.setFontSize;_.Vp.prototype.getFontSize=_.Vp.prototype.getFontSize;_.Vp.prototype.setFontColor=_.Vp.prototype.setFontColor;_.Vp.prototype.getFontColor=_.Vp.prototype.getFontColor;_.Vp.prototype.setFontFamily=_.Vp.prototype.setFontFamily;_.Vp.prototype.getFontFamily=_.Vp.prototype.getFontFamily;
463
- _.Vp.prototype.setWindowColor=_.Vp.prototype.setWindowColor;_.Vp.prototype.getWindowColor=_.Vp.prototype.getWindowColor;_.Vp.prototype.setBackgroundColor=_.Vp.prototype.setBackgroundColor;_.Vp.prototype.getBackgroundColor=_.Vp.prototype.getBackgroundColor;var Mq=1/15;var Wp="raised",Xp="depressed",Zp="dropshadow",Yp="uniform";_.C("clpp.text.EdgeType",{NONE:_.Kd,RAISED:Wp,DEPRESSED:Xp,DROP_SHADOW:Zp,UNIFORM:Yp});aq.prototype.parseInit=function(a){try{var b=_.Tp[_.hc]||null;if(b){var c=new b(this.f);c.parseInit(a)}else this.h.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=_.Tp[_.ic]||null;d?(c=new d(this.f),c.parseInit(a)):this.h.warn("The clpp.vtt.Mp4VttParser class is not available. Please register the vtt component first.")}catch(e){c=null}if(c)this.a=c;else throw new _.L(_.M,2,2011);}};
464
- aq.prototype.parseMedia=function(a,b){if(!this.a)throw new _.L(_.M,2,2011);return this.a.parseMedia(a,b)};_.Tp[gc]=aq;_.w(_.cq,_.Vp);_.t=_.cq.prototype;_.t.append=function(){};_.t.remove=function(){return!0};_.t.isTextVisible=function(){return this.w};_.t.setTextVisibility=function(a){this.w=a};
465
- _.t.sb=function(){if(!this.j){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.$p(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.g.textContent="."+this.f+"::cue {"+b+"}"}};_.t.destroy=function(){this.m.classList.remove(this.f);document.head.removeChild(this.g);this.j=!0;return Promise.resolve()};var bq=0;dq.prototype.ba=function(){return!0};dq.prototype.create=function(a){return new _.cq(a)};_.wm("native",new dq);_.eq.prototype.onContentWillLoad=function(){return Promise.resolve()};_.eq.prototype.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.eq.prototype.onPlayerWillDestroy=function(){};_.eq.prototype.onPlayerWillRelease=function(){};}.call(g,this));
491
+ 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]);_.Yr=new _.K("clpp.media.TimestampParser");_.Hq={};_.Jq={};var Oq=window.XMLHttpRequest;_.w(Wq,_.Gi);Wq.prototype.then=function(a,b){this.O=this.O.then(a,b);return this};Wq.prototype["catch"]=function(a){this.O=this.O["catch"](a);return this};Wq.prototype.abort=function(){var a=this;if(this.a)return Promise.resolve();this.a=!0;return this.g.then(function(b){a.o&&clearTimeout(a.o);a.l&&a.l();return b.abort()})["catch"](function(){})};_.Zq.prototype.enabled=function(){return this.a};_.Zq.prototype.qg=function(){return this.a&&this.f&&this.f.has(Zr)?1E3*this.f.get(Zr):null};_.Zq.prototype.release=function(){this.f=null;this.a=!1;this.g.fe(this.j)};
492
+ _.Zq.prototype.l=function(a){if(this.a){var b=a.headers["cmsd-dynamic"];if(b){try{var c=new Map,d=b.split(";");for(b=0;b<d.length;b++){var e=$q(d[b]),f=e.key,g=e.value;Object.values($r).includes(f)&&c.set(f,g)}var h=c}catch(l){as.error("CmsdManager parseCmsdDynamicHeader_ failed:",l),h=null}this.f=h}}return a};_.Zq.prototype.getEstimatedThroughput=_.Zq.prototype.qg;var Zr="etp",$r={Tl:Zr},as=new _.K("clpp.net.CmsdManager");var dr=window.fetch,br=window.AbortController,ar=window.Headers;_.fr={};_.r=_.hr.prototype;_.r.getBackgroundColor=function(){return this.K};_.r.setBackgroundColor=function(a){this.K=a;this.rb()};_.r.getWindowColor=function(){return this.V};_.r.setWindowColor=function(a){this.V=a;this.rb()};_.r.getFontFamily=function(){return this.T};_.r.setFontFamily=function(a){this.T=a;this.rb()};_.r.getFontColor=function(){return this.P};_.r.setFontColor=function(a){this.P=a;this.rb()};_.r.getFontSize=function(){return this.I};_.r.setFontSize=function(a){this.I=a;this.rb()};
493
+ _.r.getFontSizePercent=function(){return null===this.B?bs:this.B};_.r.setFontSizePercent=function(a){this.B=a;this.rb()};_.r.getEdgeColor=function(){return this.H};_.r.setEdgeColor=function(a){this.H=a;this.rb()};_.r.getEdgeType=function(){return this.o};_.r.setEdgeType=function(a){this.o=a;this.rb()};_.hr.prototype.setEdgeType=_.hr.prototype.setEdgeType;_.hr.prototype.getEdgeType=_.hr.prototype.getEdgeType;_.hr.prototype.setEdgeColor=_.hr.prototype.setEdgeColor;_.hr.prototype.getEdgeColor=_.hr.prototype.getEdgeColor;
494
+ _.hr.prototype.setFontSizePercent=_.hr.prototype.setFontSizePercent;_.hr.prototype.getFontSizePercent=_.hr.prototype.getFontSizePercent;_.hr.prototype.setFontSize=_.hr.prototype.setFontSize;_.hr.prototype.getFontSize=_.hr.prototype.getFontSize;_.hr.prototype.setFontColor=_.hr.prototype.setFontColor;_.hr.prototype.getFontColor=_.hr.prototype.getFontColor;_.hr.prototype.setFontFamily=_.hr.prototype.setFontFamily;_.hr.prototype.getFontFamily=_.hr.prototype.getFontFamily;
495
+ _.hr.prototype.setWindowColor=_.hr.prototype.setWindowColor;_.hr.prototype.getWindowColor=_.hr.prototype.getWindowColor;_.hr.prototype.setBackgroundColor=_.hr.prototype.setBackgroundColor;_.hr.prototype.getBackgroundColor=_.hr.prototype.getBackgroundColor;var bs=1/15;var ir="raised",jr="depressed",lr="dropshadow",kr="uniform";_.I("clpp.text.EdgeType",{NONE:_.$d,RAISED:ir,DEPRESSED:jr,DROP_SHADOW:lr,UNIFORM:kr});nr.prototype.parseInit=function(a){try{var b=_.fr[_.mc]||null;if(b){var c=new b(this.f);c.parseInit(a)}else this.h.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=_.fr[_.nc]||null;d?(c=new d(this.f),c.parseInit(a)):this.h.warn("The clpp.vtt.Mp4VttParser class is not available. Please register the vtt component first.")}catch(e){c=null}if(c)this.a=c;else throw new _.N(_.O,2,2011);}};
496
+ nr.prototype.parseMedia=function(a,b){if(!this.a)throw new _.N(_.O,2,2011);return this.a.parseMedia(a,b)};_.fr[lc]=nr;_.w(_.pr,_.hr);_.r=_.pr.prototype;_.r.append=function(){};_.r.remove=function(){return!0};_.r.isTextVisible=function(){return this.w};_.r.setTextVisibility=function(a){this.w=a};
497
+ _.r.rb=function(){if(!this.j){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.mr(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.g.textContent="."+this.f+"::cue {"+b+"}"}};_.r.destroy=function(){this.l.classList.remove(this.f);document.head.removeChild(this.g);this.j=!0;return Promise.resolve()};var or=0;qr.prototype.aa=function(){return!0};qr.prototype.create=function(a){return new _.pr(a)};_.wn("native",new qr);_.rr.prototype.onContentWillLoad=function(){return Promise.resolve()};_.rr.prototype.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.rr.prototype.onPlayerWillDestroy=function(){};_.rr.prototype.onPlayerWillRelease=function(){};}.call(g,this));
466
498
  g.clpp._ = _;
467
499
  if (typeof(module)!="undefined"&&module.exports) {module.exports=g.clpp;}
468
500
  else if (typeof(define)!="undefined" && define.amd) {define(function(){return g.clpp;});}