@castlabs/prestoplay 6.2.7 → 6.3.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 (58) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/cjs/cl.adobe.js +3 -3
  3. package/cjs/cl.airplay.js +3 -3
  4. package/cjs/cl.broadpeak.js +6 -6
  5. package/cjs/cl.cast.js +110 -106
  6. package/cjs/cl.conviva.js +33 -32
  7. package/cjs/cl.core.js +395 -383
  8. package/cjs/cl.crypto.js +9 -9
  9. package/cjs/cl.dash.js +69 -68
  10. package/cjs/cl.externs.js +98 -47
  11. package/cjs/cl.freewheel.js +24 -24
  12. package/cjs/cl.hls.js +44 -43
  13. package/cjs/cl.hlssmpte.js +6 -6
  14. package/cjs/cl.htmlcue.js +32 -30
  15. package/cjs/cl.ima.js +23 -23
  16. package/cjs/cl.mse.js +250 -255
  17. package/cjs/cl.muxdata.js +12 -11
  18. package/cjs/cl.onboard.js +3 -3
  19. package/cjs/cl.persistent.js +14 -14
  20. package/cjs/cl.playlist.js +6 -5
  21. package/cjs/cl.smooth.js +70 -70
  22. package/cjs/cl.thumbnails.js +22 -22
  23. package/cjs/cl.tizen.js +71 -71
  24. package/cjs/cl.ttml.js +26 -26
  25. package/cjs/cl.verimatrix.js +5 -5
  26. package/cjs/cl.vimond.js +13 -13
  27. package/cjs/cl.vr.js +18 -18
  28. package/cjs/cl.vtt.js +14 -14
  29. package/cjs/cl.youbora.js +19 -18
  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 +86 -82
  34. package/cl.conviva.js +27 -27
  35. package/cl.core.js +346 -334
  36. package/cl.crypto.js +8 -8
  37. package/cl.dash.js +63 -62
  38. package/cl.externs.js +98 -47
  39. package/cl.freewheel.js +19 -19
  40. package/cl.hls.js +37 -36
  41. package/cl.hlssmpte.js +5 -5
  42. package/cl.htmlcue.js +25 -24
  43. package/cl.ima.js +16 -16
  44. package/cl.mse.js +220 -224
  45. package/cl.muxdata.js +8 -9
  46. package/cl.onboard.js +4 -4
  47. package/cl.persistent.js +9 -9
  48. package/cl.playlist.js +5 -4
  49. package/cl.smooth.js +57 -57
  50. package/cl.thumbnails.js +17 -17
  51. package/cl.tizen.js +57 -57
  52. package/cl.ttml.js +21 -21
  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/package.json +1 -1
package/cjs/cl.core.js CHANGED
@@ -1,340 +1,350 @@
1
1
  (function(){var g={}; var _ = {};
2
- (function(window){var ba,ca,la,oa,qa,ta,ua,va,ya,Ea,Fa,Ga,Ha,Ia,Ja,Ka,Pa,Qa,Ta,Ua,Va,Wa,db,hb,jb,lb,mb,ob,pb,qb,sb,Yb,kc,lc,rc,sc,uc,xc,yc,zc,Hc,Nc,Qc,Rc,Sc,Xc,cd,ed,fd,kd,nd,Hd,Od,Wd,Yd,fe,ie,re,ze,Ne,Re,Se,Te,Ue,Ve,Xe,Ye,Ze,$e,ff,kf,mf,lf,nf,of,pf,tf,wf,uf,vf,xf,zf,Af,Ef,Gf,Lf,Mf,Rf,Sf,$f,Wf,ag,cg,bg,eg,hg,ug,vg,wg,Bg,Dg,Gg,Jg,Lg,Mg,Pg,Kg,Hg,Qg,eh,ih,jh,kh,nh,xh,yh,zh,Bh,Ah,Ch,Dh,Eh,Fh,Gh,Jh,Kh,Lh,Qh,Rh,Vh,Wh,Xh,$h,bi,di,ai,Yh,li,mi,xi,zi,Ai,Bi,Mi,pi,Ci,Pi,Ri,Ti,cj,lj,mj,nj,oj,uj,wj,Lj,Mj,Nj,Pj,Wj,ak,bk,fk,lk,mk,
3
- ok,pk,uk,xk,Dk,Mk,Ok,Qk,Uk,Vk,Yk,Kk,Ik,Wk,dl,bl,hl,fl,gl,zk,Pk,el,Ak,al,Hk,$k,Jk,Ck,il,ol,ql,rl,sl,tl,yl,Cl,Dl,Fl,Jl,Ol,Bl,Pl,Ql,Tl,Wl,Xl,Zl,$l,Vl,Ul,am,bm,gm,sm,rm,tm,um,wm,vm,ym,zm,Am,Bm,xm,Dm,Fm,Gm,Hm,Im,Jm,Km,Lm,Mm,Om,Pm,Qm,Rm,Nm,Um,S,Wm,Vm,Ym,$m,an,en,bn,U,hn,jn,kn,fm,ln,nn,on,pn,qn,rn,sn,tn,un,vn,wn,xn,yn,zn,An,Bn,En,Cn,Fn,Hn,In,Dn,Gn,Jn,Kn,Ln,Mn,Nn,On,Pn,Qn,Rn,Sn,Un,Wn,Xn,Yn,Vn,bo,co,ho,mo,no,po,oo,ii,ro,uo,to,vo,wo,so,yo,zo,xo,Ao,ji,Do,ei,Po,So,bf,Uo;_.aa=" is registered.";ba=" is unsupported on this platform.";
4
- ca=" to a log level. Falling back to default!";_.da="6.2.7";_.ea="AdaptationSet";_.ha="Already destroyed. No-op";_.ia="Already released. No-op";_.ja="Autoplay is not allowed due to browser policy.";_.ka="CODECS";la="Can not set volume to ";_.ma="Cannot retrieve buffer information due to platform limitations";_.na="CastlabsPlayer";oa="Content-Length";qa="Content-Type";_.ra="Could not find configured DRM environment.";_.sa="DRM environment '";ta="DRM licenses loaded";ua="DRMtoday";va="Destroying player";
5
- _.wa="Disable track type ";ya="Error while decoding string!";_.Aa="Error while fetching license!";_.Ca="FairPlay Certificate URL is not defined";_.Da="FairPlay License URL is not defined";Ea="HW_SECURE_CRYPTO";Fa="HW_SECURE_DECODE";Ga="HeaderDrm";Ha="Ignoring duplicate init data.";Ia="Invalid track type: ";Ja="InvalidStateError";Ka="License verification failed: ";_.La="Loading player with configuration";_.Ma="MaxHeight";_.Oa="MaxWidth";Pa="Missing media element";Qa="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";
6
- Ta="No event provided!";Ua="No track data attached to the event, unable to add track!";Va="Not a persistent session.";Wa="NotSupportedError";_.Xa="PlayReady License URL is not defined";_.Ya="Player sources";_.Za="Player state change: ";_.$a="Please make sure ";_.ab="QualityLevel";_.bb="Releasing player with source";_.cb="Representation";db="STANDARD";_.fb="SW_SECURE_CRYPTO";_.gb="SW_SECURE_DECODE";hb="Setting native ";jb="Signature Verification failed";_.kb="SmoothStreamingMedia";lb="The index is not in the allowed range.";
7
- mb="Unable to translate ";_.nb="Unregistering listeners";ob="Unsupported keySystem";pb="Using VTTCue polyfill from 3 argument TextTrackCue.";qb="WebkitEmeManager.MediaKeySession.load";_.rb="Widevine License URL is not defined";sb="Will create EME Manager: ";_.tb="ad-break-started";_.ub="ad-break-stopped";_.vb="ad-buffering";_.wb="ad-clicked";_.xb="ad-completed";_.yb="ad-first-quartile";_.zb="ad-impression";_.Ab="ad-loaded";_.Cb="ad-midpoint";_.Db="ad-paused";_.Eb="ad-progress";_.Fb="ad-resumed";
8
- _.Gb="ad-skipped";_.Hb="ad-started";_.Ib="ad-stopped";_.Jb="ad-third-quartile";_.Kb="addtrack";_.Lb="ads-timeline-changed";_.Mb="airplay-casting-ended";_.Nb="airplay-casting-started";_.Ob="airplay-status-changed";_.Pb="application";_.Qb="application/cea-608";_.Rb="application/dash+xml";_.Sb="application/mp4";_.Tb='application/mp4; codecs\x3d"stpp"';_.Ub='application/mp4; codecs\x3d"wvtt"';_.Vb="application/ttml+xml";_.Wb="application/vnd.ms-sstr+xml";_.Xb="application/x-mpegurl";Yb="application/x-www-form-urlencoded";
9
- _.Zb="audio";_.$b="audio/aac";_.ac="audio/ac3";_.bc="audio/eac3";_.cc="audio/mp4";_.dc="audiobufferchanged";_.ec="autoplaynotallowed";_.fc="bitratechanged";_.hc="boolean";_.ic="bufferingended";_.jc="bufferingstarted";kc="canplay";lc="canplaythrough";_.mc="castingstarted";_.nc="caststatuschanged";_.oc="cdn-switch-success";_.pc="cenc";_.qc="center";rc="change";sc="clpp-container";_.tc="clpp-fill";uc="clpp-hidden";_.wc="clpp.cast.CastSender";xc="clpp.drm.HeaderDrm";yc="clpp.native.Player";zc="clpp.utils.Platform";
10
- _.Ac="codecs";_.Bc="column-reverse";_.Cc="com.adobe.primetime";_.Dc="com.apple.fps";_.Ec="com.microsoft.playready";_.Fc="com.widevine.alpha";_.Gc="config.drm.customData is not defined";Hc="controls";_.Ic="cuechange";_.Jc="destroy()";_.Kc="disabled";_.Lc="div";_.Mc="drmexpirationupdate";Nc="drmrenewalstarted";_.Oc="drmsessionpersisted";_.Pc="drmsessionupdate";Qc="drmtoday";Rc="durationchange";Sc="encrypted";_.Tc="end";_.Uc="ended";_.Vc="error";Xc="fullscreenElement";_.Yc="function";_.Zc="height";
11
- _.$c="hidden";_.ad="image";_.bd="internal-error";cd="keystatuseschange";_.dd="left";ed="license-renewal";fd="license-request";_.gd="line-left";_.hd="line-right";_.id="loadeddata";_.jd="loadedmetadata";kd="loadstart";_.ld="mdat";_.md="mdia";nd="message";_.od="metadata";_.pd="mimeType";_.qd="minf";_.rd="moov";_.sd="mp4";_.td="mpd-type-changed";_.ud="mpeg-dash-callback-event";_.xd="native";_.yd="none";_.zd="number";_.Ad="object";_.Bd="onBitrateChanged()";_.Cd="onContentLoaded";_.Dd="onPlayerError()";
12
- _.Ed="onPlayerWillDestroy";_.Fd="onPlayerWillRelease";_.Gd="onStateChanged()";Hd="online-status-changed";_.Id="optional";_.Jd="org.w3.clearkey";_.Kd="output-restricted";_.Ld="pause";_.Md="persistent";_.Nd="persistent-license";Od="picture-in-picture";_.Pd="play";_.Qd="playing";_.Rd="playlist-item-changed";_.Sd="playlist-modified";_.Td="progress";_.Ud="px";_.Vd="ratechange";Wd="released";_.Xd="releasing";Yd="removetrack";_.Zd="required";_.$d="resize";_.ae="right";_.be="seeked";_.ce="seeking";_.de="showing";
13
- _.ee="single-native";fe="stalled";_.ge="start";_.he="statechanged";ie="status-pending";_.je="stbl";_.le="string";_.me="stsd";_.ne="style";_.oe="subtitle";_.pe="subtitles-htmlcue";_.qe="subtitles-ttml";re="temporary";_.se="text";_.te="text/vtt";_.ue="text/xml";_.ve="timeupdate";_.we="trak";_.xe="ttml-xml";_.ye="und";ze="unknown";_.Ae="urn:scte:scte35";_.Be="urn:scte:scte35:2014";_.Ce="user-seeked";_.De="user-seeking";_.Ee="value";_.Fe="vertical-lr";_.Ge="vertical-rl";_.He="video";_.Ie="video/mp2t";
14
- _.Je="video/mp4";_.Ke="videobufferchanged";_.Le="videotrackchanged";_.Me="vimond-response";Ne="visibilitychange";_.Oe="vtt-xml";_.Pe="waiting";_.Qe="waitingforkey";Re="webkit-org.w3.clearkey";Se="webkitkeyadded";Te="webkitkeyerror";Ue="webkitkeymessage";Ve="webkitneedkey";_.We="width";Xe="x-dt-csl-tracking-token";Ye="x-dt-follow-up-token";Ze="x-dt-resp-code";$e=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};
15
- _.t=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:$e(a)}};_.af=function(a){if(!(a instanceof Array)){a=_.t(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a};_.u=function(a,b){a.prototype=bf(b.prototype);a.prototype.constructor=a;if(ef)ef(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]};
16
- ff=function(){ff=function(){};gf.Symbol||(gf.Symbol=hf)};kf=function(a,b){this.a=a;jf(this,"description",{configurable:!0,writable:!0,value:b})};mf=function(){ff();var a=gf.Symbol.iterator;a||(a=gf.Symbol.iterator=gf.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.Yc&&jf(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return lf($e(this))}});mf=function(){}};lf=function(a){mf();a={next:a};a[gf.Symbol.iterator]=function(){return this};return a};
17
- nf=function(){this.o=!1;this.h=null;this.f=void 0;this.a=1;this.j=this.m=0;this.A=this.g=null};of=function(a){if(a.o)throw new TypeError("Generator is already running");a.o=!0};pf=function(a,b){a.g={uf:b,Ff:!0};a.a=a.m||a.j};_.v=function(a,b,c){a.a=c;return{value:b}};_.w=function(a){a.a=0};_.qf=function(a,b,c){a.m=b;void 0!=c&&(a.j=c)};_.rf=function(a,b,c){a.a=b;a.m=c||0};_.sf=function(a,b){a.m=b||0;var c=a.g.uf;a.g=null;return c};tf=function(a){this.a=new nf;this.f=a};
18
- wf=function(a,b){of(a.a);var c=a.a.h;if(c)return uf(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return vf(a)};uf=function(a,b,c,d){try{var e=b.call(a.a.h,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.a.o=!1,e;var f=e.value}catch(g){return a.a.h=null,pf(a.a,g),vf(a)}a.a.h=null;d.call(a.a,f);return vf(a)};
19
- vf=function(a){for(;a.a.a;)try{var b=a.f(a.a);if(b)return a.a.o=!1,{value:b.value,done:!1}}catch(c){a.a.f=void 0,pf(a.a,c)}a.a.o=!1;if(a.a.g){b=a.a.g;a.a.g=null;if(b.Ff)throw b.uf;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
20
- xf=function(a){this.next=function(b){of(a.a);a.a.h?b=uf(a,a.a.h.next,b,a.a.w):(a.a.w(b),b=vf(a));return b};this["throw"]=function(b){of(a.a);a.a.h?b=uf(a,a.a.h["throw"],b,a.a.w):(pf(a.a,b),b=vf(a));return b};this["return"]=function(b){return wf(a,b)};mf();this[Symbol.iterator]=function(){return this}};_.yf=function(a,b){var c=new xf(new tf(b));ef&&ef(c,a.prototype);return c};
21
- zf=function(a,b){if(b){for(var c=gf,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&&jf(c,d,{configurable:!0,writable:!0,value:f})}};Af=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())})};_.z=function(a){return Af(new xf(new tf(a)))};
22
- _.A=function(a,b){var c=a.split("."),d=Bf;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};Ef=function(a){return a&&0<=Cf[a]?Cf[a]:Df};Gf=function(a){if(!a)return _.B("clpp.log",mb+a+ca),-1;var b=Ff[a.toUpperCase()];return void 0===b?(_.B("clpp.log",mb+a+ca),-1):b};_.D=function(a){(this.a=a)&&void 0===Cf[a]&&(Cf[a]=-1)};_.If=function(a){Hf.info.apply(Hf,arguments)};
23
- _.Jf=function(a){Hf.debug.apply(Hf,arguments)};_.B=function(a){Hf.warn.apply(Hf,arguments)};_.Kf=function(a){Hf.error.apply(Hf,arguments)};Lf=function(a,b){this.Gb=a;this.a=b};Mf=function(a,b){this.a=a;this.f=b};_.Pf=function(a){if(a){var b=a.a();b in _.Nf?_.Of.warn("Player-Factory '"+b+"' already registered"):(_.Nf[b]=a,_.Of.info("Registered Player-Factory: '"+b+"'"))}};_.Qf=function(){this.a={}};Rf=function(a,b,c,d){this.f=a;this.wc=b;this.a=c;this.vj=!!d};
24
- _.E=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};Sf=function(a){this.a=new _.Qf;this.f=a};_.Tf=function(){this.a=new _.Qf};
25
- _.Vf=function(a,b,c,d){function e(k){for(var l=_.t(c),m=l.next();!m.done;m=l.next())a.off(b,m.value,e);d(k)}for(var f=_.t(c),g=f.next();!g.done;g=f.next())a.on(b,g.value,e)};_.Zf=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)Wf(c[b]);a.a.clear()};$f=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};Wf=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
26
- ag=function(a){this.l=a;this.m=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.h=null;this.f=new _.Tf;this.a=this.j=null;this.g=[];this.o=new _.D("clpp.native.Metadata")};cg=function(a,b){a.h=b;a.j=a.h.textTracks;a.f.on(a.j,_.Kb,function(c){c=c.track;c.kind===_.od&&bg(a,c)})};
27
- bg=function(a,b){function c(l){for(var m=_.t(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:_.dg,eventElement:null};a.m&&e&&"SCTE35-IN"===l.value.key&&0<l.startTime?(m.startTime=0,m.endTime=l.startTime):(m.startTime=l.startTime,m.endTime=l.endTime);e=!1;d.push(m);return d[d.length-1]}a.o.debug("onMetadata_()");b.mode=_.$c;var d=[],e=!0;if(b.cues){for(var f=_.t(b.cues),g=f.next();!g.done;g=
28
- f.next())if(g=g.value,!eg(a,g)){var k=c(g);switch(g.value.key){case "SCTE35-IN":case "SCTE35-OUT":k.schemeIdUri=_.Be;k.type=_.fg;break;case "X-CUSTOM-ID":k.id=g.value.data}}f=_.t(d);for(g=f.next();!g.done;g=f.next())a.l.trigger(new _.E(_.gg,{detail:g.value}));Array.prototype.push.apply(a.g,d);hg(a,d,b);a.f.off(b,_.Ic);a.f.on(b,_.Ic,function(l){l=l.target.activeCues;l=l.length?eg(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 _.E(_.ig,{detail:l}));
29
- 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 _.E(_.jg,{detail:l})))}})}};eg=function(a,b){for(var c=_.t(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};hg=function(a,b,c){if(a.m){for(;0<c.cues.length;)c.removeCue(c.cues[0]);b.forEach(function(d){c.addCue(new DataCue(d.startTime,d.endTime,{key:"SCTE35-OUT",data:null}))})}};
30
- _.qg=function(a,b,c,d){d=void 0===d?_.kg:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.lg;this.writingMode=_.mg;this.lineInterpretation=_.ng;this.line=null;this.lineAlign=_.og;this.direction=pg;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
31
- _.tg=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.rg;this.scroll=sg;this.cssClassList=[];this.writingMode=this.displayAlign=null};ug=function(a){this.l=a;this.j=a.getTextDisplayer();this.f=this.g=null;this.a=new _.Tf;this.h=!1;this.m=new _.D("clpp.native.CueHandler")};
32
- vg=function(a,b){var c=b.track;c.kind!==_.od&&(c.mode===_.de&&(c.mode=_.$c),a.a.on(c,_.Ic,function(d){d=d.target||d.srcElement;d.mode=_.$c;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.j.append(d,[]))}))};_.J=function(a,b,c,d,e){var f=Error.call(this,wg(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||_.H.Z(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.J)};
33
- wg=function(a,b,c,d){a=(a===_.K?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.H.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};_.xg=function(a,b){this.id=a;this.type=b;this.roles=[];this.channelsCount=this.src=this.mimeType=this.frameRate=this.label=this.language=this.kind=null;this.renditions=[]};_.yg=function(a){return a&&a!==_.ye?a:null};
34
- Bg=function(a){if(!a)throw new _.J(_.K,3,3101,Ia+a);if(!_.H.Z(a))throw new _.J(_.K,3,3101,Ia+a+". Track type must be a string!");switch(a.toLowerCase()){case _.L:return _.L;case _.N:return _.N;case _.zg:return _.zg;case Ag:return Ag}throw new _.J(_.K,3,3101,"Unknown track type: "+a+".");};Dg=function(a,b){a=Bg(a);var c=_.yg(b.kind),d=b.id;d||(d=String(_.Cg++));d=new _.xg(d,c===_.od?Ag:a);d.kind=c;d.label=_.yg(b.label);d.language=_.yg(b.language);return d};
35
- _.Eg=function(a,b){this.track=b;this.id=a;this.originalId=this.drmInfo=this.codec=this.bandwidth=this.height=this.width=null};_.P=function(){};_.Fg=function(a,b){for(var c=_.t(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};Gg=function(){};
36
- Jg=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(Hg(a)==Hg(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;for(var c=_.Q(a),d=_.Q(b),e=_.t(Ig(a.byteLength)),f=e.next();!f.done;f=e.next())if(f=f.value,c[f]!=d[f])return!1;return!0};_.Q=function(a,b,c){c=void 0===c?Infinity:c;return Kg(a,void 0===b?0:b,c,Uint8Array)};Lg=function(a,b,c){c=void 0===c?Infinity:c;return Kg(a,void 0===b?0:b,c,Uint16Array)};
37
- Mg=function(a,b,c){c=void 0===c?Infinity:c;return Kg(a,void 0===b?0:b,c,Uint32Array)};_.Ng=function(a,b,c){c=void 0===c?Infinity:c;return Kg(a,void 0===b?0:b,c,Int32Array)};_.Og=function(a,b,c){c=void 0===c?Infinity:c;return Kg(a,void 0===b?0:b,c,DataView)};Pg=function(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
38
- Kg=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=Hg(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)};Hg=function(a){return a instanceof ArrayBuffer?a:a.buffer};Qg=function(a){for(var b="",c=0;c<a.length;c+=16E3)b+=String.fromCharCode.apply(null,a.subarray(c,c+16E3));return b};
39
- _.Rg=function(a){if(!a)return"";a=_.Q(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(ya);return a}a=escape(Qg(a));try{return decodeURIComponent(a)}catch(b){throw Error(ya);}};
40
- _.Tg=function(a,b,c){if(!a)return"";if(!c&&0!==a.byteLength%2)throw Sg.error("Data has an incorrect length, must be even."),Error("Data does not seem to be UTF-16 encoded!");c=_.Q(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(_.Q(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 Qg(c)};
41
- _.Ug=function(a,b){if(_.H.Z(a))return a;var c="",d=!!b,e=_.Q(a);239==e[0]&&187==e[1]&&191==e[2]?c=_.Rg(e):254==e[0]&&255==e[1]?c=_.Tg(e.subarray(2),!1):255==e[0]&&254==e[1]&&(c=_.Tg(e.subarray(2),!0));var f=function(g,k){return g.byteLength<=k||32<=g[k]&&126>=g[k]}.bind(null,e);Sg.debug("Unable to find byte-order-mark, making an educated guess.");0==e[0]&&0==e[2]?c=_.Tg(a,!1):0==e[1]&&0==e[3]?c=_.Tg(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.Rg(a));if(c)return d&&(c=escape(c)),c;throw Error("Unable to detect text encoding");
42
- };_.Vg=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};_.Wg=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};_.Xg=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=Mg(e):2===c?f=Lg(e):f=_.Q(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};
43
- _.Yg=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.Zg=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};_.$g=function(a){return!!(a&&0<a.length)};_.ah=function(a){return!a||0===a.length};_.ch=function(a){a=a.replace(/<[^>]+>/gi,"");bh.innerHTML=a;a=bh.textContent;return a=a.replace(/<[^>]+>/gi,"")};_.dh=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0}};
44
- eh=function(a,b){a.timeout=b.timeout;a.baseDelay=b.baseDelay;a.backoffFactor=b.backoffFactor;a.fuzzFactor=b.fuzzFactor;a.maxAttempts=b.maxAttempts};
45
- _.gh=function(a,b){_.H.Z(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.fh,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||
46
- [],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};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&eh(c,b);return c};
47
- _.hh=function(a,b,c,d,e,f,g){e&&(d=e);e={uri:d,data:b||new ArrayBuffer(0),headers:a,status:c,fromCache:!!a["x-shaka-from-cache"],timeMs:g,request:f};if(200<=c&&299>=c&&202!==c)return e;g=null;try{g=_.Ug(b,!0)}catch(k){}_.Jf("HTTP error text:",g);throw new _.J(401===c||403===c?_.K:1,1,1001,{url:d,status:c,responseText:g,headers:a,request:f,response:e});};ih=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};
48
- jh=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};kh=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()};_.lh=function(a){this.f=a;this.a=null};nh=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};
49
- _.oh=function(a){this.f=a;this.a=null};_.qh=function(a,b,c){for(var d=_.t(_.ph),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.rh=function(a){a=_.ph.indexOf(a);0<=a&&_.ph.splice(a,1)};_.th=function(a,b){a=_.sh(a);b=_.sh(b);return a.split("-")[0]==b.split("-")[0]};_.sh=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=uh.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};_.vh=function(a,b){var c=a;b&&(c+='; codecs\x3d"'+b+'"');return c};
50
- _.wh=function(a){return Array.isArray(a)?a:[a]};xh=function(){this.a=new _.D("clpp.native.TrackManager");this.l=null;this.g=new _.Tf;this.h=[];this.w=0;this.m={};this.A=[];this.f=new Map;this.j=new Map;this.o=!0;this.G=this.Ee.bind(this,_.L);this.J=this.Ge.bind(this,_.L);this.I=this.Fe.bind(this,_.L);this.K=this.Ee.bind(this,_.zg);this.O=this.Ge.bind(this,_.zg);this.L=this.Fe.bind(this,_.zg);this.B=this.Ee.bind(this,_.N);this.D=this.Ge.bind(this,_.N);this.C=this.Fe.bind(this,_.N)};
51
- yh=function(a){(a=a.l.getTextDisplayer())&&a.remove(0,Infinity)};zh=function(a,b,c){return a.type!==c?!1:void 0!==b.id&&null!==b.id&&""!==b.id?a.id===b.id:_.H.Oa(a,{kind:_.yg(b.kind),language:_.yg(b.language),label:_.yg(b.label)},["kind","language","label"])};
52
- Bh=function(a,b){var c,d,e,f,g,k,l,m;return _.z(function(n){if(1==n.a){c=a.l.getConfiguration();d=_.qh(c,b.mimeType,_.te);if(!d)return a.a.warn("Track mimetype is not supported",b),n["return"]();e=_.gh(b.url);return _.v(n,a.l.getNetworkEngine().fetch(e).N,2)}(f=n.f)&&f.data&&(g="External_"+a.w++,a.m[g]=b,k=d.a(_.Q(f.data)),l=URL.createObjectURL(new Blob([k])),m={url:l,kind:b.kind,language:b.language,label:b.label,mimeType:_.te},Ah(a,m,g));_.w(n)})};
53
- Ah=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=_.ah(b.url)?URL.createObjectURL(new Blob([])):b.url;d.appendChild(e);a.A.push(e)}}};Ch=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 _.N:return c.audioTracks;case _.zg:return c.videoTracks;case _.L:return c.textTracks;default:return null}};
54
- Dh=function(a,b){var c=Ch(a,b);c&&(c=Array.from(c),b===_.L&&(c=c.filter(function(d){return d.kind!==_.od})));return c};Eh=function(a,b){return a.h.filter(function(c){return c.type===b})};Fh=function(a,b){var c=a.f.get(b)||null;return c&&c.renditions[0]};Gh=function(a,b){var c=a.j.get(b);return c&&c.renditions[0]};
55
- Jh=function(a,b,c){var d=Dh(a,b);if(c){if(void 0===a.h.find(function(l){return l.id===c.id}))throw Error("Unknown track with ID "+c.id+" and type "+b);if(c.type!==b)throw Error("Types mismatch for track "+c.type+" and arg "+b);a.a.debug("Activate track type "+b+" with ID: "+c.id);if(d){a.j.set(b,c);var e=!0,f=!1;switch(b){case _.L:var g="mode";e=_.de;f=_.Kc;break;case _.N:g="enabled";break;case _.zg:g="selected"}if(g){d=_.t(d);for(var k=d.next();!k.done;k=d.next())k=k.value,k[g]=zh(c,k,c.type)?e:
56
- f}}}else if(a.a.debug(_.wa+b),a.f.get(b)&&d&&b===_.L){g=_.t(d);for(k=g.next();!k.done;k=g.next())k.value.mode=_.Kc;a.f.set(b,null)}b===_.N?a.l.trigger(new _.E(_.Hh)):b===_.L&&a.l.trigger(new _.E(_.Ih))};Kh=function(a){return a.enabled||a.selected||a.mode===_.de||a.mode===_.$c};
57
- Lh=function(a,b,c){c=_.wh(c).filter(function(e){return e});a.a.info("Find preferred tracks for",b,c);var d=Eh(a,b);c.some(function(e){var f=_.sh(e);return(e=d.find(function(g){g=_.sh(g.language||"");return _.th(f,g)}))?(a.a.info("Will select track with id",e.id),Jh(a,b,e),!0):!1})};_.Mh=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};_.Nh=function(){this.Tc=new Sf(this);this.Sc=[]};
58
- _.Oh=function(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c};_.Ph=function(a,b){this.N=a;this.w=b;this.a=!1};Qh=function(a,b){a.N.then(function(){return b(!0)},function(){return b(!1)});return a};Rh=function(a,b,c){try{var d=a(b);if(d&&d.N&&d.abort)return c.resolve(d.N),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()}}};
59
- _.Sh=function(){this.a=[]};_.Th=function(a,b){a.a.push(Qh(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};_.Uh=function(a){var b;a instanceof _.Uh?(Vh(this,a.Ta),this.kc=a.kc,this.Ia=a.Ia,Wh(this,a.Hc),this.ma=a.ma,Xh(this,Yh(a.a)),this.Yb=a.Yb):a&&(b=String(a).match(Zh))?(Vh(this,b[1]||"",!0),this.kc=$h(b[2]||""),this.Ia=$h(b[3]||"",!0),Wh(this,b[4]),this.ma=$h(b[5]||"",!0),Xh(this,b[6]||"",!0),this.Yb=$h(b[7]||"")):this.a=new ai(null)};
60
- Vh=function(a,b,c){a.Ta=c?$h(b,!0):b;a.Ta&&(a.Ta=a.Ta.replace(/:$/,""))};Wh=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Hc=b}else a.Hc=null};Xh=function(a,b,c){b instanceof ai?a.a=b:(c||(b=bi(b,ci)),a.a=new ai(b))};$h=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""};bi=function(a,b,c){return typeof a===_.le?(a=encodeURI(a).replace(b,di),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
61
- di=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};ai=function(a){this.f=a||null};Yh=function(a){var b=new ai;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};_.ki=function(){this.f=[];this.g=[];this.m=!1;this.j=new _.Sh;this.a={};this.h=0;this.a.data=ei;!window.fetch||!window.AbortController||_.fi(6)||_.gi()&&68<_.hi().browserVersion.major?(this.a.http=ii,this.a.https=ii):(this.a.http=ji,this.a.https=ji)};
62
- li=function(a,b,c,d){d=void 0===d?"HEAD":d;var e,f;return _.z(function(g){switch(g.a){case 1:if(!navigator.onLine)return g["return"](!1);if(!b){g.H(2);break}e=_.gh(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.qf(g,4);return _.v(g,a.fetch(e).N,6);case 6:_.rf(g,2);break;case 4:if(f=_.sf(g),1002===f.code||1003===f.code)return g["return"](!1);case 2:return g["return"](!0)}})};mi=function(){};_.ni=function(){return!!navigator.userAgent.match(/Edge?\//)};
63
- _.fi=function(a){return _.oi("Tizen"+(a?" "+String(a):""))};_.gi=function(){return _.oi("Web0S")};_.qi=function(){return _.gi()&&79===pi().major};_.ri=function(){return _.oi("CrKey")};_.si=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.fi()};_.ti=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.si()&&1<navigator.maxTouchPoints};_.ui=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};
64
- _.oi=function(a){return(navigator.userAgent||"").includes(a)};xi=function(){if(vi)return vi;wi||(wi=new _.oh(function(){vi=null}));(vi=document.querySelector(_.He)||document.querySelector(_.Zb))||(vi=document.createElement(_.He));wi.$(1);return vi};zi=function(a,b){try{return parseInt(b,10)}catch(c){yi.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
65
- Ai=function(a){var b={major:-1,name:ze};if(!a)return b;var c=a.replace(/_/g,".");b.name=c;c=c.split(".");1<=c.length&&(b.major=zi(a,c[0]));2<=c.length&&(b.minor=zi(a,c[1]));3<=c.length&&(b.patch=zi(a,c[2]));4<=c.length&&(b.build=zi(a,c[3]));return b};Bi=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};
66
- Mi=function(){var a=Ci();if(!a)return Di;var b=a.match(/^.+?(?=\))/);if(!b)return Di;b=b[0];if(Bi(b,["iphone","ipad"]))return Ei;if(Bi(b,["android"]))return Fi;if(Bi(b,["macintosh"]))return Gi;if(Bi(b,["windows nt"]))return Ii;if(Bi(b,["tizen"]))return Ji;if(Bi(b,["web0s"]))return Ki;if(Bi(b,["linux"]))return Li;yi.warn("Unable to identify OS from user agent: "+a);return Di};
67
- pi=function(){var a=Ci(),b="ie edge opera firefox safari chrome".split(" ");var c=Mi();for(var d=Ni[c],e=0,f=b.length;e<f;e++)if(c=d[b[e]]&&a.match(d[b[e]]))return Ai(c[1]);return Ai("")};Ci=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
68
- _.hi=function(){var a=Mi();var b=Mi();var c=Ni[b];if(c){c=Ci().match(c.os_version)[1];c=Ai(c);if(b===Ii)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=Ai("");a:{c=Ci();var d="ie edge opera firefox safari chrome".split(" "),e=Mi();e=Ni[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=Oi}return{os:a,osVersion:b,browser:c,browserVersion:pi()}};Pi=function(){};
69
- _.Si=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.ti()&&(a=360);var b=_.dh();b.maxAttempts=3;a={source:"",license:Qi,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,manifest:{attemptParameters:_.dh(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,
70
- restrictions:Ri(a)},drm:null,enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:"",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,
71
- gapDetectionThreshold:.1,smallGapLimit:.5,jumpLargeGaps:!0,durationBackoff:1,maxSegmentToMediaOffset:1,forceNativeTS:!1,preferNativeHlsOnSafari:!0,safeSeekOffset:5,stallEnabled:!0,stallThreshold:3,stallSkip:.5,bufferLimitUpdateInterval:.5,overridePasp:!1,enableLiveEdgeChasing:!1,chasingRate:1.15,startChasingAt:5,stopChasingAt:2,chaseJumpDistance:10,patchEdgeWhenMixedContent:!1,ignoreDrift:!1,disableFragmentSupport:!1,disableMergedFragments:!1},restrictions:Ri(),tizen:{sideStreamText:_.fi(2)}};if(_.oi("Edge/")||
72
- _.fi())a.streaming.gapDetectionThreshold=.5;_.gi()&&(a.streaming.stallEnabled=!1);_.qi()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=.02);_.fi()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=0);a.vr={enable:!1,attachMouseListener:!0,fieldOfView:70};return a};
73
- _.Ui=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(!b)return _.Si();c=[_.Si()];var d=!1;b=_.t(b);for(var e=b.next();!e.done;e=b.next())e=e.value,null!==e&&void 0!==e&&(_.H.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:{ik:{clockSyncUri:"//time.akamai.com"}}}),
74
- d=!0),c.push(e));c=_.H.Sa.apply(null,c);_.H.Z(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.H.R(c.volume)&&(!_.H.la(c.volume)||_.H.isNaN(c.volume)))throw new _.J(_.K,7,7100,"config.volume is not a number");if(!_.H.R(c.preferredTextLanguage)&&!_.H.Z(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.J(_.K,7,7100,"config.preferredTextLanguage is not a string or an array");if(!_.H.R(c.preferredAudioLanguage)&&!_.H.Z(c.preferredAudioLanguage)&&
75
- !Array.isArray(c.preferredAudioLanguage))throw new _.J(_.K,7,7100,"config.preferredAudioLanguage is not a string or an array");if(!_.H.R(c.preferredAudioCodec)&&!_.H.Z(c.preferredAudioCodec)&&!Array.isArray(c.preferredAudioCodec))throw new _.J(_.K,7,7100,"config.preferredAudioCodec is not a string or an array");if(!_.H.R(c.preferredVideoCodec)&&!_.H.Z(c.preferredVideoCodec)&&!Array.isArray(c.preferredVideoCodec))throw new _.J(_.K,7,7100,"config.preferredVideoCodec is not a string or an array");if(!_.H.R(c.drm)){if(c.drm.env&&
76
- !_.H.Z(c.drm.env))throw new _.J(_.K,7,7100,"config.drm.env is not a string");if(c.drm.offlineId&&!_.H.Z(c.drm.offlineId))throw new _.J(_.K,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(!_.H.la(d.bufferingGoal)||_.H.isNaN(d.bufferingGoal))throw new _.J(_.K,7,7100,"config.streaming.bufferingGoal is not a number");
77
- if(!_.H.la(d.rebufferingGoal)||_.H.isNaN(d.rebufferingGoal))throw new _.J(_.K,7,7100,"config.streaming.rebufferingGoal is not a number");if(d.rebufferingGoal>d.bufferingGoal)throw new _.J(_.K,7,7100,"config.streaming.rebufferingGoal must be \x3e\x3d bufferingGoal");if(!_.H.la(d.bufferBehind)||_.H.isNaN(d.bufferBehind))throw new _.J(_.K,7,7100,"config.streaming.bufferBehind is not a number");if(!_.H.la(d.smallGapLimit)||_.H.isNaN(d.smallGapLimit))throw new _.J(_.K,7,7100,"config.streaming.smallGapLimit is not a number");
78
- if(!_.H.la(d.durationBackoff)||_.H.isNaN(d.durationBackoff))throw new _.J(_.K,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.H.R(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.zd)throw new _.J(_.K,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");Ti(c.restrictions);Ti(c.abr.restrictions);c.abr.initialRestrictions&&Ti(c.abr.initialRestrictions)}return c};
79
- Ri=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}};
80
- Ti=function(a){_.H.R(a.maxPixels)&&(a.maxPixels=Infinity);_.H.R(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.H.R(a.maxHeight)&&(a.maxHeight=Infinity);_.H.R(a.maxWidth)&&(a.maxWidth=Infinity);_.H.R(a.minPixels)&&(a.minPixels=0);_.H.R(a.minBandwidth)&&(a.minBandwidth=0);_.H.R(a.minHeight)&&(a.minHeight=0);_.H.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);
81
- 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 _.J(_.K,7,7100,"Restrictions contain NaN");};_.Vi=function(a){return typeof a===_.Ad&&!Array.isArray(a)&&"source"in a};
82
- _.Wi=function(a){_.Nh.call(this);this.log=new _.D(a);this.configuration=this.od=_.Si();this.o=this.A=null;this.Bd=this.qe=!1;this.lg=new _.D("clpp.video.events");this.sd=null;this.qd=-1;this.Oj=this.uj.bind(this);this.Kf=new _.ki;this.K=new _.Tf;this.Ma=this.zc=this.J=null};_.$i=function(a){return _.Xi.get(a)||null};_.bj=function(a){_.Xi.get(a.id())?aj.warn("Component already in use."):_.Xi.set(a.id(),a)};cj=function(a){for(var b=_.t(_.Xi.values()),c=b.next();!c.done;c=b.next())a(c.value)};_.dj=function(){};
83
- _.fj=function(a,b){var c=void 0==b?!0:b,d=_.ej(a).replace(/\+/g,"-").replace(/\//g,"_");return c?d:d.replace(/[=]*$/,"")};_.gj=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};_.hj=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};
84
- _.ij=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};_.jj=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};_.kj=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};_.ej=function(a){a=Qg(_.Q(a));return btoa(a)};
85
- lj=function(){this.a=this.f=null;this.g=new _.D("clpp.drm.csl")};mj=function(a,b){3===b.type&&(a.f&&(a.g.debug("Attaching tracking token"),b.headers[Xe]=a.f),a.a&&(b.headers[Ye]=a.a))};
86
- nj=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[Xe];a.a=b.headers[Ye];var c=b.headers["x-dt-csl-renewal-info"];a.f&&a.g.debug("Loaded tracking token "+a.f);a.a&&a.g.debug("Loaded followup token "+a.a);if(c)return c=JSON.parse(_.Rg(_.gj(c))),{delay:c.renewalPeriod,dk:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};oj=function(a){return _.Yg(a,_.Dc)||_.Yg(a,_.Ec)};_.qj=function(a){_.pj[a.J]=a};
87
- _.sj=function(a){var b={attemptParameters:_.dh(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,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),a.env)){var c=_.pj[a.env]||null;if(!c)throw _.Jf(_.ra,_.$a+a.env+_.aa),new _.J(_.K,6,6015,_.sa+a.env+"' is missing.");b.Wa=_.rj(c,a.customData)||
88
- {};_.Yg(a.env.toLowerCase(),Qc)&&(b.enforceSingleSession=!0)}return b};uj=function(a){a=tj[a];if(!a)return null;var b=_.hi();return b.os===Fi&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.vj=function(a){this.J=a;this.g={}};wj=function(a,b){var c=_.hi();if(c.os!==Fi||"chrome"!==c.browser)return a||b};
89
- _.rj=function(a,b){var c={},d=b?b.widevineVideoRobustness:void 0,e=b?b.widevineAudioRobustness:void 0,f=b?b.serverCertificate:void 0,g=a.g[_.Fc];g&&(c[_.Fc]={licenseUrl:g.licenseUrl,videoRobustness:wj(d,g.videoRobustness),audioRobustness:wj(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:g.distinctiveIdentifierRequired,persistentStateRequired:g.persistentStateRequired,serverCertificate:void 0===f?g.serverCertificate:null===f?null:typeof f===_.le?uj(f):f});(g=a.g[_.Dc])&&(c[_.Dc]=
90
- {licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.g[_.Ec])&&(c[_.Ec]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});return c};
91
- _.xj=function(a,b){this.f=_.H.la(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.g=!!b;this.buffer=this.f.buffer};_.zj=function(a,b,c){var d=c||0;c=b.byteLength-d;var e=_.Q(a.f.buffer);b=_.Q(b.buffer,d,c);try{e.set(b,a.a),a.a+=c}catch(f){_.yj()}};_.R=function(a,b){try{a.f.setUint32(a.a,b,a.g),a.a+=4}catch(c){_.yj()}};_.yj=function(){throw new _.J(_.K,3,3E3);};_.Aj=function(a,b){this.f=a;this.g=void 0===b?!0:b;this.a=0};_.Bj=function(a){return a.a<a.f.byteLength};
92
- _.Dj=function(a){try{var b=a.f.getUint16(a.a,a.g);a.a+=2;return b}catch(c){_.Cj()}};_.Ej=function(a){try{var b=a.f.getUint32(a.a,a.g);a.a+=4;return b}catch(c){_.Cj()}};_.Fj=function(a){try{var b=a.f.getInt32(a.a,a.g);a.a+=4;return b}catch(c){_.Cj()}};_.Gj=function(a){var b=0;try{if(a.g){var c=a.f.getUint32(a.a,!0);b=a.f.getUint32(a.a+4,!0)}else b=a.f.getUint32(a.a,!1),c=a.f.getUint32(a.a+4,!1)}catch(d){_.Cj()}if(2097151<b)throw new _.J(_.K,3,3001);a.a+=8;return b*Math.pow(2,32)+c};
93
- _.Hj=function(a,b){a.a+b>a.f.byteLength&&_.Cj();var c=a.f.buffer.slice(a.a,a.a+b);a.a+=b;return _.Q(c)};_.Cj=function(){throw new _.J(_.K,3,3E3);};
94
- _.Ij=function(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.f=d?"":b.hostname;this.port=b.port;this.path=b.pathname;_.Yg(this.path,"/")||(this.path=
95
- "/"+this.path);this.a=b.search;this.g=b.hash};_.Jj=function(a){return a.scheme+"//"+(a.f+(a.port?":"+a.port:"")+a.path+a.g+a.a)};_.Kj=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)},""):""};
96
- Lj=function(a){var b={};a=a||"";a=a.substring(a.indexOf("?")+1);a=_.t(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};Mj=function(){};Nj=function(a){var b="";try{b=_.Ug(a)}catch(c){}return b};_.Oj=function(a){a=Nj(a);var b="";a.length&&(b=(new _.Ij(a)).f);return b};
97
- Pj=function(a,b,c){if(!c||!c.byteLength)throw new _.J(_.K,6,6102);var d;typeof b===_.le?d=_.Wg(b,!0):d=b;a=_.Wg(Nj(a),!0);b=new _.xj(12+a.byteLength+d.byteLength+c.byteLength,!0);_.R(b,a.byteLength);_.zj(b,_.Q(a));_.R(b,d.byteLength);_.zj(b,_.Q(d));_.R(b,c.byteLength);_.zj(b,_.Q(c));return _.Q(b.buffer)};_.Qj=function(a){var b=_.Q(a.body);b=_.fj(b);a.headers[qa]=Yb;a.body=_.Vg("spc\x3d"+b).buffer};
98
- _.Rj=function(a){try{var b=_.Rg(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=Pg(_.gj(b))};
99
- Wj=function(){var a=Sj;if(a===Tj)return"https://lic.drmtoday.com";if(a===Uj)return"https://lic.staging.drmtoday.com";if(a===Vj)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};ak=function(a){var b=Wj();if(a==_.Fc)return b+Xj;if(a==_.Ec)return b+Yj;if(a==_.Dc)return b+Zj;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
100
- bk=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
101
- _.dk=function(a,b,c){b=Nj(b);c=c&&c.customData?c.customData:{};b=new _.Ij(bk(b));var d=Lj(b.a);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.$g(""+a)&&(d.assetId=a,ck.info("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.$g(""+e)&&(d.variantId=e,ck.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],ck.info("KeyId found in FPS SKD. Removing other parameters")):
102
- a=["assetId","variantId"];b.a=_.Kj(d,!1,a);b=_.Jj(b);return c.fpsContentId=b};
103
- _.ek=function(a,b,c,d){d=void 0===d?!0:d;a=a.drm;a&&a.env.startsWith(ua)?a.customData&&(c=btoa(JSON.stringify({userId:a.customData.userId,sessionId:a.customData.sessionId,merchant:a.customData.merchant})),b.headers["dt-custom-data"]=c,a.customData.authToken&&(b.headers["x-dt-auth-token"]=""+a.customData.authToken),c=b.uris[0],d&&a.customData.assetId&&(c+="?assetId\x3d"+encodeURI(""+a.customData.assetId),a.customData.variantId&&(c+="\x26variantId\x3d"+encodeURI(""+a.customData.variantId)),b.uris[0]=
104
- c)):ck.warn(Qa)};fk=function(a,b,c){_.ek(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.Uh(b.uris[0]);c.a.add(_.Md,a);b.uris[0]=c.toString()};
105
- _.gk=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.ek(a,b,c,!1);b.headers[qa]=Yb;c={spc:_.ej(b.body)};if((a=a.drm)&&a.env.startsWith("DRMtodayOnboard")&&d){a={};var e=Lj((new _.Ij(bk(d))).a);d=e.keyId;if(e=e.assetId)ck.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(ck.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(ck.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(ck.info("Adding assetID to FPS payload:",a.assetId),c.assetId=
106
- a.assetId)}b.body=_.Xg(_.Kj(c,!0))};_.hk=function(a,b){ck.debug("Clearing response data");if(200===b.status){var c=_.Rg(b.data).trim();"\x3cckc\x3e"===c.substr(0,5)&&"\x3c/ckc\x3e"===c.substr(-6)&&(c=c.slice(5,-6));b.data=_.gj(c).buffer}};_.ik=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(ua))ck.warn(Qa);else if(c.customData&&c.customData.merchant){var d=new _.Uh(b.uris[0]),e=d.ma;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.ma=e;b.uris[0]=d.toString()}};
107
- _.jk=function(a,b){try{var c=_.Q(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));ck.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){ck.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data")}};lk=function(a){var b={},c=a?a[Ze]:void 0;a=kk[a?a[Ze]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};mk=function(){};
108
- ok=function(a,b){b=void 0===b?0:b;_.If("Registering EME Factory: "+a.a());for(var c={priority:b,Gb:a},d=0;d<nk.length;++d)if(nk[d].priority<b){nk.splice(d,0,c);return}nk.push(c)};
109
- pk=function(a){if(a){var b=nk.find(function(d){return d.Gb.a()===a}).Gb;if(b&&b.W())return _.If(sb+b.a()),b.create();_.If("Cannot create selected EME manager. Choosing by priority list.")}b=_.t(nk);for(var c=b.next();!c.done;c=b.next())if(c=c.value.Gb,c.W())return _.If(sb+c.a()),c.create();throw Error("Missing EME managers");};_.qk=function(){this.g=[];this.f=[];this.a=!1;this.h=new _.D("clpp.mp4")};_.rk=function(a){for(;_.Bj(a.F)&&!a.cb.a;)a.cb.Fd(a.start+a.le,a.F,a.Zf)};
110
- _.sk=function(a){for(var b=_.Ej(a.F);0<b&&!a.cb.a;--b)a.cb.Fd(a.start+a.le,a.F,a.Zf)};_.tk=function(a){return function(b){var c=b.F.Ba()-b.F.getPosition();a(_.Hj(b.F,c))}};uk=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.vk=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};_.wk=function(a){return 8+(a.ni?8:0)+(null!=a.flags?4:0)};
111
- xk=function(a){this.f=[];this.g=[];this.a=[];8<=a.byteLength&&(new _.qk).V("pssh",this.h.bind(this)).parse(a.buffer);0==this.a.length&&_.B("No pssh box found!")};
112
- _.Bk=function(a){var b=this;this.m=a;this.L=new Set;this.B=this.I=this.w=null;this.Y=!1;this.f=null;this.K=yk;this.A=new _.Tf;this.O=new lj;this.g=new Map;this.J=[];this.G=new _.Oh;this.h=null;this.S=function(c){b.o=!0;b.C=!1;b.G.reject(c);a.onError(c)};this.kb=new Map;this.ga=new Map;this.aa=new _.oh(function(){return zk(b)});this.j=!1;this.Ha=new _.Oh;this.D=!1;this.ca=[];this.Ma=!1;this.U=0;this.a=new _.D("clpp.drm.DrmEngine");this.wa=(new _.oh(function(){Ak(b)})).Xa(1);this.G["catch"](function(){});
2
+ (function(window){var ba,da,ma,pa,sa,va,wa,xa,ya,Aa,Ea,Fa,Ga,Ha,Ia,Ka,La,Qa,Sa,Ta,Ua,Va,Wa,Xa,fb,ib,jb,kb,mb,ob,rb,sb,tb,vb,$b,mc,nc,uc,vc,xc,zc,Ac,Bc,Cc,Kc,Qc,Tc,Uc,Wc,$c,fd,hd,id,nd,qd,Hd,Od,Wd,Yd,ge,je,se,Ae,Oe,Se,Te,Ue,Ve,We,Ye,Ze,$e,af,gf,lf,nf,mf,of,pf,qf,uf,xf,vf,wf,yf,Af,Bf,Ff,Hf,Mf,Nf,Sf,Tf,bg,$f,cg,eg,dg,gg,jg,wg,xg,yg,Dg,Fg,Ig,Lg,Ng,Og,Rg,Mg,Jg,Sg,Vg,gh,kh,lh,nh,ph,zh,Ah,Bh,Dh,Ch,Eh,Fh,Gh,Hh,Ih,Lh,Mh,Nh,Sh,Th,Xh,Yh,Zh,bi,di,fi,ci,$h,ni,pi,qi,Bi,Di,Ei,Fi,Ri,ti,Gi,Ui,Wi,Yi,hj,qj,rj,sj,tj,zj,Bj,Hj,Tj,Zj,ak,
3
+ bk,dk,ek,lk,pk,qk,uk,Ak,Bk,Dk,Ek,Jk,Kk,Sk,Yk,hl,jl,ll,pl,ql,tl,fl,dl,xl,rl,yl,Al,zl,Fl,El,Cl,Dl,Uk,kl,Bl,Vk,wl,bl,vl,el,Xk,Gl,Ml,Ol,Pl,Ql,Rl,Wl,$l,am,cm,gm,lm,Zl,mm,sm,vm,ym,zm,Bm,Cm,xm,wm,Dm,Em,Jm,Qm,Pm,Rm,Sm,Um,Tm,Wm,Xm,Ym,Zm,Vm,an,cn,dn,en,fn,gn,hn,jn,kn,mn,nn,on,pn,ln,sn,U,un,tn,wn,yn,zn,Dn,An,V,Gn,Hn,In,Im,Jn,Ln,Mn,Nn,On,Pn,Qn,Rn,Sn,Tn,Un,Vn,Wn,Xn,Yn,Zn,$n,co,ao,eo,go,ho,bo,fo,io,jo,ko,lo,mo,no,oo,po,qo,ro,to,vo,wo,xo,uo,Bo,Co,Go,Lo,Mo,Oo,No,ki,Qo,To,So,Uo,Vo,Ro,Xo,Yo,Wo,Zo,li,bp,gi,np,qp,ef,
4
+ sp;_.aa=" is registered.";ba=" is unsupported on this platform.";da=" to a log level. Falling back to default!";_.ea="6.3.0";_.ha="AdaptationSet";_.ia="Already destroyed. No-op";_.ja="Already released. No-op";_.ka="Autoplay is not allowed due to browser policy.";_.la="CODECS";ma="Can not set volume to ";_.na="Cannot retrieve buffer information due to platform limitations";_.oa="CastlabsPlayer";pa="Content-Length";sa="Content-Type";_.ta="Could not find configured DRM environment.";_.ua="DRM environment '";
5
+ va="DRM licenses loaded";wa="DRMtoday";xa="DRMtodayOnboard";ya="Destroying player";_.za="Disable track type ";Aa="Error while decoding string!";_.Ba="Error while fetching license!";_.Ca="FairPlay Certificate URL is not defined";_.Da="FairPlay License URL is not defined";Ea="HW_SECURE_CRYPTO";Fa="HW_SECURE_DECODE";Ga="HeaderDrm";Ha="Ignoring duplicate init data.";Ia="Invalid track type: ";Ka="InvalidStateError";La="License verification failed: ";_.Ma="Loading player with configuration";_.Na="MaxHeight";
6
+ _.Pa="MaxWidth";Qa="Missing media element";Sa="No drmtoday configuration found in player configuration. Unable to modify the DRM license request!";Ta="No event provided!";Ua="No track data attached to the event, unable to add track!";Va="Not a persistent session.";Wa="NotAllowedError";Xa="NotSupportedError";_.Ya="PlayReady License URL is not defined";_.Za="Player sources";_.$a="Player state change: ";_.ab="Please make sure ";_.cb="QualityLevel";_.db="Releasing player with source";_.eb="Representation";
7
+ fb="STANDARD";_.gb="SW_SECURE_CRYPTO";_.hb="SW_SECURE_DECODE";ib="Session is closed";jb="Setting native ";kb="Signature Verification failed";_.lb="SmoothStreamingMedia";mb="The index is not in the allowed range.";ob="Unable to translate ";_.pb="Unhandled/ignored event";_.qb="Unregistering listeners";rb="Unsupported keySystem";sb="Using VTTCue polyfill from 3 argument TextTrackCue.";tb="WebkitEmeManager.MediaKeySession.load";_.ub="Widevine License URL is not defined";vb="Will create EME Manager: ";
8
+ _.wb="ad-break-started";_.xb="ad-break-stopped";_.yb="ad-buffering";_.zb="ad-clicked";_.Ab="ad-completed";_.Bb="ad-first-quartile";_.Cb="ad-impression";_.Db="ad-loaded";_.Eb="ad-midpoint";_.Fb="ad-paused";_.Gb="ad-progress";_.Hb="ad-resumed";_.Ib="ad-skipped";_.Jb="ad-started";_.Kb="ad-stopped";_.Lb="ad-third-quartile";_.Mb="addtrack";_.Nb="ads-timeline-changed";_.Ob="airplay-casting-ended";_.Pb="airplay-casting-started";_.Qb="airplay-status-changed";_.Rb="application";_.Sb="application/cea-608";
9
+ _.Tb="application/dash+xml";_.Ub="application/mp4";_.Vb='application/mp4; codecs\x3d"stpp"';_.Wb='application/mp4; codecs\x3d"wvtt"';_.Xb="application/ttml+xml";_.Yb="application/vnd.ms-sstr+xml";_.Zb="application/x-mpegurl";$b="application/x-www-form-urlencoded";_.ac="audio";_.bc="audio/aac";_.cc="audio/ac3";_.dc="audio/eac3";_.ec="audio/mp4";_.fc="audiobufferchanged";_.gc="autoplaynotallowed";_.ic="bitratechanged";_.jc="boolean";_.kc="bufferingended";_.lc="bufferingstarted";mc="canplay";nc="canplaythrough";
10
+ _.oc="castingstarted";_.pc="caststatuschanged";_.qc="cdn-switch-success";_.rc="cenc";_.sc="center";uc="change";vc="clpp-container";_.wc="clpp-fill";xc="clpp-hidden";_.yc="clpp.cast.CastSender";zc="clpp.drm.HeaderDrm";Ac="clpp.drm.eme.AppleEmeManager";Bc="clpp.native.Player";Cc="clpp.utils.Platform";_.Dc="codecs";_.Ec="column-reverse";_.Fc="com.adobe.primetime";_.Gc="com.apple.fps";_.Hc="com.microsoft.playready";_.Ic="com.widevine.alpha";_.Jc="config.drm.customData is not defined";Kc="controls";
11
+ _.Lc="cuechange";_.Mc="destroy()";_.Nc="disabled";_.Oc="div";_.Pc="drmexpirationupdate";Qc="drmrenewalstarted";_.Rc="drmsessionpersisted";_.Sc="drmsessionupdate";Tc="drmtoday";Uc="durationchange";Wc="encrypted";_.Xc="end";_.Yc="ended";_.Zc="error";$c="fullscreenElement";_.ad="function";_.bd="height";_.cd="hidden";_.dd="image";_.ed="internal-error";fd="keystatuseschange";_.gd="left";hd="license-renewal";id="license-request";_.jd="line-left";_.kd="line-right";_.ld="loadeddata";_.md="loadedmetadata";
12
+ nd="loadstart";_.od="mdat";_.pd="mdia";qd="message";_.rd="metadata";_.sd="mimeType";_.td="minf";_.vd="moov";_.wd="mp4";_.xd="mpd-type-changed";_.yd="mpeg-dash-callback-event";_.zd="native";_.Ad="none";_.h="number";_.Bd="object";_.Cd="onBitrateChanged()";_.Dd="onPlayerError()";_.Ed="onPlayerWillDestroy";_.Fd="onPlayerWillRelease";_.Gd="onStateChanged()";Hd="online-status-changed";_.Id="optional";_.Jd="org.w3.clearkey";_.Kd="output-restricted";_.Ld="pause";_.Md="persistent";_.Nd="persistent-license";
13
+ Od="picture-in-picture";_.Pd="play";_.Qd="playing";_.Rd="playlist-item-changed";_.Sd="playlist-modified";_.Td="progress";_.Ud="px";_.Vd="ratechange";Wd="released";_.Xd="releasing";Yd="removetrack";_.Zd="required";_.$d="resize";_.ae="right";_.be="seeked";_.ce="seeking";_.de="showing";_.ee="sinf";_.fe="single-native";ge="stalled";_.he="start";_.ie="statechanged";je="status-pending";_.le="stbl";_.me="string";_.ne="stsd";_.oe="style";_.pe="subtitle";_.qe="subtitles-htmlcue";_.re="subtitles-ttml";se="temporary";
14
+ _.te="text";_.ue="text/vtt";_.ve="text/xml";_.we="timeupdate";_.xe="trak";_.ye="ttml-xml";_.ze="und";Ae="unknown";_.Be="urn:scte:scte35";_.Ce="urn:scte:scte35:2014";_.De="user-seeked";_.Ee="user-seeking";_.Fe="value";_.Ge="vertical-lr";_.He="vertical-rl";_.Ie="video";_.Je="video/mp2t";_.Ke="video/mp4";_.Le="videobufferchanged";_.Me="videotrackchanged";_.Ne="vimond-response";Oe="visibilitychange";_.Pe="vtt-xml";_.Qe="waiting";_.Re="waitingforkey";Se="webkit-org.w3.clearkey";Te="webkitkeyadded";
15
+ Ue="webkitkeyerror";Ve="webkitkeymessage";We="webkitneedkey";_.Xe="width";Ye="x-dt-csl-tracking-token";Ze="x-dt-follow-up-token";$e="x-dt-resp-code";af=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:af(a)}};_.df=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};
16
+ _.v=function(a,b){a.prototype=ef(b.prototype);a.prototype.constructor=a;if(ff)ff(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]};gf=function(){gf=function(){};hf.Symbol||(hf.Symbol=jf)};lf=function(a,b){this.a=a;kf(this,"description",{configurable:!0,writable:!0,value:b})};
17
+ nf=function(){gf();var a=hf.Symbol.iterator;a||(a=hf.Symbol.iterator=hf.Symbol("Symbol.iterator"));typeof Array.prototype[a]!=_.ad&&kf(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return mf(af(this))}});nf=function(){}};mf=function(a){nf();a={next:a};a[hf.Symbol.iterator]=function(){return this};return a};of=function(){this.o=!1;this.h=null;this.f=void 0;this.a=1;this.j=this.m=0;this.A=this.g=null};pf=function(a){if(a.o)throw new TypeError("Generator is already running");a.o=!0};
18
+ qf=function(a,b){a.g={uf:b,Ff:!0};a.a=a.m||a.j};_.w=function(a,b,c){a.a=c;return{value:b}};_.z=function(a){a.a=0};_.rf=function(a,b,c){a.m=b;void 0!=c&&(a.j=c)};_.sf=function(a,b,c){a.a=b;a.m=c||0};_.tf=function(a,b){a.m=b||0;var c=a.g.uf;a.g=null;return c};uf=function(a){this.a=new of;this.f=a};xf=function(a,b){pf(a.a);var c=a.a.h;if(c)return vf(a,"return"in c?c["return"]:function(d){return{value:d,done:!0}},b,a.a["return"]);a.a["return"](b);return wf(a)};
19
+ vf=function(a,b,c,d){try{var e=b.call(a.a.h,c);if(!(e instanceof Object))throw new TypeError("Iterator result "+e+" is not an object");if(!e.done)return a.a.o=!1,e;var f=e.value}catch(g){return a.a.h=null,qf(a.a,g),wf(a)}a.a.h=null;d.call(a.a,f);return wf(a)};wf=function(a){for(;a.a.a;)try{var b=a.f(a.a);if(b)return a.a.o=!1,{value:b.value,done:!1}}catch(c){a.a.f=void 0,qf(a.a,c)}a.a.o=!1;if(a.a.g){b=a.a.g;a.a.g=null;if(b.Ff)throw b.uf;return{value:b["return"],done:!0}}return{value:void 0,done:!0}};
20
+ yf=function(a){this.next=function(b){pf(a.a);a.a.h?b=vf(a,a.a.h.next,b,a.a.w):(a.a.w(b),b=wf(a));return b};this["throw"]=function(b){pf(a.a);a.a.h?b=vf(a,a.a.h["throw"],b,a.a.w):(qf(a.a,b),b=wf(a));return b};this["return"]=function(b){return xf(a,b)};nf();this[Symbol.iterator]=function(){return this}};_.zf=function(a,b){var c=new yf(new uf(b));ff&&ff(c,a.prototype);return c};
21
+ Af=function(a,b){if(b){for(var c=hf,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&&kf(c,d,{configurable:!0,writable:!0,value:f})}};Bf=function(a){function b(d){return a.next(d)}function c(d){return a["throw"](d)}return new Promise(function(d,e){function f(g){g.done?d(g.value):Promise.resolve(g.value).then(b,c).then(f,e)}f(a.next())})};_.A=function(a){return Bf(new yf(new uf(a)))};
22
+ _.B=function(a,b){var c=a.split("."),d=Cf;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};Ff=function(a){return a&&0<=Df[a]?Df[a]:Ef};Hf=function(a){if(!a)return _.D("clpp.log",ob+a+da),-1;var b=Gf[a.toUpperCase()];return void 0===b?(_.D("clpp.log",ob+a+da),-1):b};_.G=function(a){(this.a=a)&&void 0===Df[a]&&(Df[a]=-1)};_.Jf=function(a){If.info.apply(If,arguments)};
23
+ _.Kf=function(a){If.debug.apply(If,arguments)};_.D=function(a){If.warn.apply(If,arguments)};_.Lf=function(a){If.error.apply(If,arguments)};Mf=function(a,b){this.Gb=a;this.a=b};Nf=function(a,b){this.a=a;this.f=b};_.Qf=function(a){if(a){var b=a.a();b in _.Of?_.Pf.warn("Player-Factory '"+b+"' already registered"):(_.Of[b]=a,_.Pf.info("Registered Player-Factory: '"+b+"'"))}};_.Rf=function(){this.a={}};Sf=function(a,b,c,d){this.f=a;this.wc=b;this.a=c;this.hj=!!d};
24
+ _.I=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};Tf=function(a){this.a=new _.Rf;this.f=a};_.Wf=function(){this.a=new _.Rf};
25
+ _.Xf=function(a,b,c,d){function e(k){for(var l=_.u(c),m=l.next();!m.done;m=l.next())a.off(b,m.value,e);d(k)}for(var f=_.u(c),g=f.next();!g.done;g=f.next())a.on(b,g.value,e)};_.ag=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)$f(c[b]);a.a.clear()};bg=function(a,b,c,d){this.target=a;this.type=b;this.a=c;this.f=d;this.target.addEventListener(b,c,d)};$f=function(a){a.target.removeEventListener(a.type,a.a,a.f);a.target=null;a.a=null};
26
+ cg=function(a){this.l=a;this.m=a.getConfiguration().streaming.addMissingTimelineCues||!1;this.h=null;this.f=new _.Wf;this.a=this.j=null;this.g=[];this.o=new _.G("clpp.native.Metadata")};eg=function(a,b){a.h=b;a.j=a.h.textTracks;a.f.on(a.j,_.Mb,function(c){c=c.track;c.kind===_.rd&&dg(a,c)})};
27
+ dg=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:_.fg,eventElement:null};a.m&&e&&"SCTE35-IN"===l.value.key&&0<l.startTime?(m.startTime=0,m.endTime=l.startTime):(m.startTime=l.startTime,m.endTime=l.endTime);e=!1;d.push(m);return d[d.length-1]}a.o.debug("onMetadata_()");b.mode=_.cd;var d=[],e=!0;if(b.cues){for(var f=_.u(b.cues),g=f.next();!g.done;g=
28
+ f.next())if(g=g.value,!gg(a,g)){var k=c(g);switch(g.value.key){case "SCTE35-IN":case "SCTE35-OUT":k.schemeIdUri=_.Ce;k.type=_.hg;break;case "X-CUSTOM-ID":k.id=g.value.data}}f=_.u(d);for(g=f.next();!g.done;g=f.next())a.l.trigger(new _.I(_.ig,{detail:g.value}));Array.prototype.push.apply(a.g,d);jg(a,d,b);a.f.off(b,_.Lc);a.f.on(b,_.Lc,function(l){l=l.target.activeCues;l=l.length?gg(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 _.I(_.kg,{detail:l}));
29
+ 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 _.I(_.lg,{detail:l})))}})}};gg=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};jg=function(a,b,c){if(a.m){for(;0<c.cues.length;)c.removeCue(c.cues[0]);b.forEach(function(d){c.addCue(new DataCue(d.startTime,d.endTime,{key:"SCTE35-OUT",data:null}))})}};
30
+ _.sg=function(a,b,c,d){d=void 0===d?_.mg:d;this.startTime=a;this.endTime=b;this.payload=c;this.payloadType=d;this.positionAlign=this.position=null;this.size=100;this.textAlign=_.ng;this.writingMode=_.og;this.lineInterpretation=_.pg;this.line=null;this.lineAlign=_.qg;this.direction=rg;this.region=null;this.cssClassList=[];this.id=this.backgroundImage="";this.containerRows=null};
31
+ _.vg=function(){this.id="";this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0;this.height=this.width=100;this.viewportAnchorUnits=this.widthUnits=this.heightUnits=_.tg;this.scroll=ug;this.cssClassList=[];this.writingMode=this.displayAlign=null};wg=function(a){this.l=a;this.j=a.getTextDisplayer();this.f=this.g=null;this.a=new _.Wf;this.h=!1;this.m=new _.G("clpp.native.CueHandler")};
32
+ xg=function(a,b){var c=b.track;c.kind!==_.rd&&(c.mode===_.de&&(c.mode=_.cd),a.a.on(c,_.Lc,function(d){d=d.target||d.srcElement;d.mode=_.cd;d.activeCues&&(d=Array.from(d.activeCues).map(a.o),a.j.append(d,[]))}))};_.K=function(a,b,c,d,e){var f=Error.call(this,yg(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||_.J.Z(d)?{}:d;this.cause=void 0===e?null:e;this.f=!1;Error.captureStackTrace&&Error.captureStackTrace(this,_.K)};
33
+ yg=function(a,b,c,d){a=(a===_.M?"FATAL":"RECOVERABLE")+" Clpp-Error [Category "+b+" - Code "+c+"]";if(_.J.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};_.zg=function(a,b){this.id=a;this.type=b;this.roles=[];this.channelsCount=this.src=this.mimeType=this.frameRate=this.label=this.language=this.kind=null;this.renditions=[]};_.Ag=function(a){return a&&a!==_.ze?a:null};
34
+ Dg=function(a){if(!a)throw new _.K(_.M,3,3101,Ia+a);if(!_.J.Z(a))throw new _.K(_.M,3,3101,Ia+a+". Track type must be a string!");switch(a.toLowerCase()){case _.N:return _.N;case _.P:return _.P;case _.Bg:return _.Bg;case Cg:return Cg}throw new _.K(_.M,3,3101,"Unknown track type: "+a+".");};Fg=function(a,b){a=Dg(a);var c=_.Ag(b.kind),d=b.id;d||(d=String(_.Eg++));d=new _.zg(d,c===_.rd?Cg:a);d.kind=c;d.label=_.Ag(b.label);d.language=_.Ag(b.language);return d};
35
+ _.Gg=function(a,b){this.track=b;this.id=a;this.originalId=this.drmInfo=this.codec=this.bandwidth=this.height=this.width=null};_.Q=function(){};_.Hg=function(a,b){for(var c=_.u(a),d=c.next();!d.done;d=c.next())if(!b(d.value))return!1;return!0};Ig=function(){};
36
+ Lg=function(a,b){if(!a&&!b)return!0;if(!a||!b||a.byteLength!=b.byteLength)return!1;if(Jg(a)==Jg(b)&&(a.byteOffset||0)==(b.byteOffset||0))return!0;for(var c=_.R(a),d=_.R(b),e=_.u(Kg(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 Mg(a,void 0===b?0:b,c,Uint8Array)};Ng=function(a,b,c){c=void 0===c?Infinity:c;return Mg(a,void 0===b?0:b,c,Uint16Array)};
37
+ Og=function(a,b,c){c=void 0===c?Infinity:c;return Mg(a,void 0===b?0:b,c,Uint32Array)};_.Pg=function(a,b,c){c=void 0===c?Infinity:c;return Mg(a,void 0===b?0:b,c,Int32Array)};_.Qg=function(a,b,c){c=void 0===c?Infinity:c;return Mg(a,void 0===b?0:b,c,DataView)};Rg=function(a){return a instanceof ArrayBuffer?a:0==a.byteOffset&&a.byteLength==a.buffer.byteLength?a.buffer:(new Uint8Array(a)).buffer};
38
+ Mg=function(a,b,c,d){var e=d.BYTES_PER_ELEMENT||1,f=Jg(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)};Jg=function(a){return a instanceof ArrayBuffer?a:a.buffer};Sg=function(a){for(var b="",c=0;c<a.length;c+=16E3)b+=String.fromCharCode.apply(null,a.subarray(c,c+16E3));return b};
39
+ _.Tg=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(Aa);return a}a=escape(Sg(a));try{return decodeURIComponent(a)}catch(b){throw Error(Aa);}};
40
+ Vg=function(a,b,c){if(!a)return"";if(!c&&0!==a.byteLength%2)throw Ug.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 Sg(c)};
41
+ _.Wg=function(a,b){if(_.J.Z(a))return a;var c="",d=!!b,e=_.R(a);239==e[0]&&187==e[1]&&191==e[2]?c=_.Tg(e):254==e[0]&&255==e[1]?c=Vg(e.subarray(2),!1):255==e[0]&&254==e[1]&&(c=Vg(e.subarray(2),!0));var f=function(g,k){return g.byteLength<=k||32<=g[k]&&126>=g[k]}.bind(null,e);Ug.debug("Unable to find byte-order-mark, making an educated guess.");0==e[0]&&0==e[2]?c=Vg(a,!1):0==e[1]&&0==e[3]?c=Vg(a,!0):f(0)&&f(1)&&f(2)&&f(3)&&(c=_.Tg(a));if(c)return d&&(c=escape(c)),c;throw Error("Unable to detect text encoding");
42
+ };_.Xg=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};_.Yg=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};_.Zg=function(a,b){var c=b||1,d=a.length,e=new ArrayBuffer(d*c),f;4===c?f=Og(e):2===c?f=Ng(e):f=_.R(e);for(c=0;c<d;c++)f[c]=a.charCodeAt(c);return e};
43
+ _.$g=function(a,b){return String.prototype.startsWith?a.startsWith(b):0===a.indexOf(b)};_.ah=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};_.bh=function(a){return!!(a&&0<a.length)};_.ch=function(a){return!a||0===a.length};_.eh=function(a){a=a.replace(/<[^>]+>/gi,"");dh.innerHTML=a;a=dh.textContent;return a=a.replace(/<[^>]+>/gi,"")};_.fh=function(){return{maxAttempts:1,baseDelay:1E3,backoffFactor:2,fuzzFactor:.5,timeout:0}};
44
+ gh=function(a,b){a.timeout=b.timeout;a.baseDelay=b.baseDelay;a.backoffFactor=b.backoffFactor;a.fuzzFactor=b.fuzzFactor;a.maxAttempts=b.maxAttempts};
45
+ _.ih=function(a,b){_.J.Z(a)&&(a={uris:[a]});Array.isArray(a)&&(a={uris:a});var c={uris:a.uris||[],type:a.type||_.hh,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||
46
+ [],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};a.keyInfo&&(c.keyInfo=a.keyInfo);b&&gh(c,b);return c};
47
+ _.jh=function(a,b,c,d,e,f,g){e&&(d=e);e={uri:d,data:b||new ArrayBuffer(0),headers:a,status:c,fromCache:!!a["x-shaka-from-cache"],timeMs:g,request:f};if(200<=c&&299>=c&&202!==c)return e;g=null;try{g=_.Wg(b,!0)}catch(k){}_.Kf("HTTP error text:",g);throw new _.K(401===c||403===c?_.M:1,1,1001,{url:d,status:c,responseText:g,headers:a,request:f,response:e});};kh=function(a,b){var c=parseInt(b,10);Number.isNaN(c)&&(c=-1);a.bytesTotal=c;a.bytesLoaded=0;a.bytesRemaining=c};
48
+ lh=function(a,b,c){0<a.bytesRemaining&&(a.bytesRemaining-=b);a.bytesLoaded+=b;if(a.onProgress)a.onProgress(b,c)};nh=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()};_.oh=function(a){this.f=a;this.a=null};ph=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};
49
+ _.qh=function(a){this.f=a;this.a=null};_.sh=function(a,b,c){for(var d=_.u(_.rh),e=d.next();!e.done;e=d.next())if(e=e.value,e.probe(b,c))return e.create(a);return null};_.th=function(a){a=_.rh.indexOf(a);0<=a&&_.rh.splice(a,1)};_.vh=function(a,b){a=_.uh(a);b=_.uh(b);return a.split("-")[0]==b.split("-")[0]};_.uh=function(a){var b=(a||"").split("-");a=b[0]||"";b=b[1]||"";a=a.toLowerCase();a=wh.get(a)||a;return(b=b.toUpperCase())?a+"-"+b:a};_.xh=function(a,b){var c=a;b&&(c+='; codecs\x3d"'+b+'"');return c};
50
+ _.yh=function(a){return Array.isArray(a)?a:[a]};zh=function(){this.a=new _.G("clpp.native.TrackManager");this.l=null;this.g=new _.Wf;this.h=[];this.w=0;this.m={};this.A=[];this.f=new Map;this.j=new Map;this.o=!0;this.G=this.De.bind(this,_.N);this.J=this.Fe.bind(this,_.N);this.I=this.Ee.bind(this,_.N);this.K=this.De.bind(this,_.Bg);this.N=this.Fe.bind(this,_.Bg);this.L=this.Ee.bind(this,_.Bg);this.B=this.De.bind(this,_.P);this.D=this.Fe.bind(this,_.P);this.C=this.Ee.bind(this,_.P)};
51
+ Ah=function(a){(a=a.l.getTextDisplayer())&&a.remove(0,Infinity)};Bh=function(a,b,c){return a.type!==c?!1:void 0!==b.id&&null!==b.id&&""!==b.id?a.id===b.id:_.J.Ja(a,{kind:_.Ag(b.kind),language:_.Ag(b.language),label:_.Ag(b.label)},["kind","language","label"])};
52
+ Dh=function(a,b){var c,d,e,f,g,k,l,m;return _.A(function(n){if(1==n.a){c=a.l.getConfiguration();d=_.sh(c,b.mimeType,_.ue);if(!d)return a.a.warn("Track mimetype is not supported",b),n["return"]();e=_.ih(b.url);return _.w(n,a.l.getNetworkEngine().fetch(e).O,2)}(f=n.f)&&f.data&&(g="External_"+a.w++,a.m[g]=b,k=d.a(_.R(f.data)),l=URL.createObjectURL(new Blob([k])),m={url:l,kind:b.kind,language:b.language,label:b.label,mimeType:_.ue},Ch(a,m,g));_.z(n)})};
53
+ Ch=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=_.ch(b.url)?URL.createObjectURL(new Blob([])):b.url;d.appendChild(e);a.A.push(e)}}};Eh=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 _.P:return c.audioTracks;case _.Bg:return c.videoTracks;case _.N:return c.textTracks;default:return null}};
54
+ Fh=function(a,b){var c=Eh(a,b);c&&(c=Array.from(c),b===_.N&&(c=c.filter(function(d){return d.kind!==_.rd})));return c};Gh=function(a,b){return a.h.filter(function(c){return c.type===b})};Hh=function(a,b){var c=a.f.get(b)||null;return c&&c.renditions[0]};Ih=function(a,b){var c=a.j.get(b);return c&&c.renditions[0]};
55
+ Lh=function(a,b,c){var d=Fh(a,b);if(c){if(void 0===a.h.find(function(l){return l.id===c.id}))throw Error("Unknown track with ID "+c.id+" and type "+b);if(c.type!==b)throw Error("Types mismatch for track "+c.type+" and arg "+b);a.a.debug("Activate track type "+b+" with ID: "+c.id);if(d){a.j.set(b,c);var e=!0,f=!1;switch(b){case _.N:var g="mode";e=_.de;f=_.Nc;break;case _.P:g="enabled";break;case _.Bg:g="selected"}if(g){d=_.u(d);for(var k=d.next();!k.done;k=d.next())k=k.value,k[g]=Bh(c,k,c.type)?e:
56
+ f}}}else if(a.a.debug(_.za+b),a.f.get(b)&&d&&b===_.N){g=_.u(d);for(k=g.next();!k.done;k=g.next())k.value.mode=_.Nc;a.f.set(b,null)}b===_.P?a.l.trigger(new _.I(_.Jh)):b===_.N&&a.l.trigger(new _.I(_.Kh))};Mh=function(a){return a.enabled||a.selected||a.mode===_.de||a.mode===_.cd};
57
+ Nh=function(a,b,c){c=_.yh(c).filter(function(e){return e});a.a.info("Find preferred tracks for",b,c);var d=Gh(a,b);c.some(function(e){var f=_.uh(e);return(e=d.find(function(g){g=_.uh(g.language||"");return _.vh(f,g)}))?(a.a.info("Will select track with id",e.id),Lh(a,b,e),!0):!1})};_.Oh=function(a,b){this.length=(this.f=a)?a.length:0;this.a=[];this.type=void 0===b?"total":b};_.Ph=function(){this.Uc=new Tf(this);this.Tc=[]};
58
+ _.Qh=function(){var a,b,c=new Promise(function(d,e){a=d;b=e});c.resolve=a;c.reject=b;return c};_.Rh=function(a,b){this.O=a;this.w=b;this.a=!1};Sh=function(a,b){a.O.then(function(){return b(!0)},function(){return b(!1)});return a};Th=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()}}};
59
+ _.Uh=function(){this.a=[]};_.Vh=function(a,b){a.a.push(Sh(b,function(){var c=a.a,d=c.indexOf(b);-1<d&&c.splice(d,1)}))};_.Wh=function(a){var b;a instanceof _.Wh?(Xh(this,a.Va),this.kc=a.kc,this.Ia=a.Ia,Yh(this,a.Hc),this.ma=a.ma,Zh(this,$h(a.a)),this.Xb=a.Xb):a&&(b=String(a).match(ai))?(Xh(this,b[1]||"",!0),this.kc=bi(b[2]||""),this.Ia=bi(b[3]||"",!0),Yh(this,b[4]),this.ma=bi(b[5]||"",!0),Zh(this,b[6]||"",!0),this.Xb=bi(b[7]||"")):this.a=new ci(null)};
60
+ Xh=function(a,b,c){a.Va=c?bi(b,!0):b;a.Va&&(a.Va=a.Va.replace(/:$/,""))};Yh=function(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Hc=b}else a.Hc=null};Zh=function(a,b,c){b instanceof ci?a.a=b:(c||(b=di(b,ei)),a.a=new ci(b))};bi=function(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""};di=function(a,b,c){return typeof a===_.me?(a=encodeURI(a).replace(b,fi),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null};
61
+ fi=function(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)};ci=function(a){this.f=a||null};$h=function(a){var b=new ci;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};_.mi=function(){this.f=[];this.g=[];this.m=!1;this.j=new _.Uh;this.a={};this.h=0;this.a.data=gi;!window.fetch||!window.AbortController||_.hi(6)||_.ii()&&68<_.ji().browserVersion.major?(this.a.http=ki,this.a.https=ki):(this.a.http=li,this.a.https=li)};
62
+ ni=function(a,b,c,d){d=void 0===d?"HEAD":d;var e,f;return _.A(function(g){switch(g.a){case 1:if(!navigator.onLine)return g["return"](!1);if(!b){g.H(2);break}e=_.ih(b,c);e.method=d;c||(e.timeout=5E3);e.headers["cache-control"]="no-cache";_.rf(g,4);return _.w(g,a.fetch(e).O,6);case 6:_.sf(g,2);break;case 4:if(f=_.tf(g),1002===f.code||1003===f.code)return g["return"](!1);case 2:return g["return"](!0)}})};pi=function(a){return a.name===Wa&&oi.some(function(b){return a.message.startsWith(b)})};qi=function(){};
63
+ _.ri=function(){return!!navigator.userAgent.match(/Edge?\//)};_.hi=function(a){return _.si("Tizen"+(a?" "+String(a):""))};_.ii=function(){return _.si("Web0S")};_.ui=function(){return _.ii()&&79===ti().major};_.vi=function(){return _.si("CrKey")};_.wi=function(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!_.hi()};_.xi=function(){return/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)?!0:_.wi()&&1<navigator.maxTouchPoints};_.yi=function(){return/(?:iPhone|iPad|iPod)/.test(navigator.userAgent)};
64
+ _.si=function(a){return(navigator.userAgent||"").includes(a)};Bi=function(){if(zi)return zi;Ai||(Ai=new _.qh(function(){zi=null}));(zi=document.querySelector(_.Ie)||document.querySelector(_.ac))||(zi=document.createElement(_.Ie));Ai.$(1);return zi};Di=function(a,b){try{return parseInt(b,10)}catch(c){Ci.warn("Unable to parse version number for '"+b+"' from '"+a+"'")}return-1};
65
+ Ei=function(a){var b={major:-1,name:Ae};if(!a)return b;var c=a.replace(/_/g,".");b.name=c;c=c.split(".");1<=c.length&&(b.major=Di(a,c[0]));2<=c.length&&(b.minor=Di(a,c[1]));3<=c.length&&(b.patch=Di(a,c[2]));4<=c.length&&(b.build=Di(a,c[3]));return b};Fi=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};
66
+ Ri=function(){var a=Gi();if(!a)return Hi;var b=a.match(/^.+?(?=\))/);if(!b)return Hi;b=b[0];if(Fi(b,["iphone","ipad"]))return Ii;if(Fi(b,["android"]))return Li;if(Fi(b,["macintosh"]))return Mi;if(Fi(b,["windows nt"]))return Ni;if(Fi(b,["tizen"]))return Oi;if(Fi(b,["web0s"]))return Pi;if(Fi(b,["linux"]))return Qi;Ci.warn("Unable to identify OS from user agent: "+a);return Hi};
67
+ ti=function(){var a=Gi(),b="ie edge opera firefox safari chrome".split(" ");var c=Ri();for(var d=Si[c],e=0,f=b.length;e<f;e++)if(c=d[b[e]]&&a.match(d[b[e]]))return Ei(c[1]);return Ei("")};Gi=function(){var a=window.navigator.userAgent;return a=a.toLowerCase()};
68
+ _.ji=function(){var a=Ri();var b=Ri();var c=Si[b];if(c){c=Gi().match(c.os_version)[1];c=Ei(c);if(b===Ni)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=Ei("");a:{c=Gi();var d="ie edge opera firefox safari chrome".split(" "),e=Ri();e=Si[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=Ti}return{os:a,osVersion:b,browser:c,browserVersion:ti()}};Ui=function(){};
69
+ _.Xi=function(){var a=Infinity;navigator.connection&&navigator.connection.saveData&&_.xi()&&(a=360);var b=_.fh();b.maxAttempts=3;a={source:"",license:Vi,viewerId:void 0,autoplay:void 0,pauseWhenInBackground:!1,manifest:{attemptParameters:_.fh(),availabilityWindowOverride:NaN,clockSyncUri:"",ignoreDrmInfo:!1,xlinkFailGracefully:!1,autoCorrectDrift:!0},abr:{enabled:!0,defaultBandwidthEstimate:1E3,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,useSwitchIntervalForInitialSwitch:!1,
70
+ restrictions:Wi(a)},drm:null,enableHtmlCue:!0,preferredAudioLanguage:"",preferredTextLanguage:"",preferredAudioRole:"",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,
71
+ gapDetectionThreshold:.1,smallGapLimit:.5,jumpLargeGaps:!0,durationBackoff:1,maxSegmentToMediaOffset:1,forceNativeTS:!1,preferNativeHlsOnSafari:!0,safeSeekOffset:5,stallEnabled:!0,stallThreshold:3,stallSkip:.5,bufferLimitUpdateInterval:.5,overridePasp:!1,enableLiveEdgeChasing:!1,chasingRate:1.15,startChasingAt:5,stopChasingAt:2,chaseJumpDistance:10,patchEdgeWhenMixedContent:!1,ignoreDrift:!1,disableFragmentSupport:!1,disableMergedFragments:!1},restrictions:Wi(),tizen:{sideStreamText:_.hi(2)}};if(_.si("Edge/")||
72
+ _.hi())a.streaming.gapDetectionThreshold=.5;_.ii()&&(a.streaming.stallEnabled=!1);_.ui()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=1,a.streaming.gapDetectionThreshold=.02);_.hi()&&(a.streaming.stallEnabled=!0,a.streaming.stallThreshold=1,a.streaming.stallSkip=0);a.vr={enable:!1,attachMouseListener:!0,fieldOfView:70};return a};
73
+ _.Zi=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c]=arguments[c];if(!b)return _.Xi();c=[_.Xi()];var d=!1;b=_.u(b);for(var e=b.next();!e.done;e=b.next())e=e.value,null!==e&&void 0!==e&&(_.J.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:{Rj:{clockSyncUri:"//time.akamai.com"}}}),
74
+ d=!0),c.push(e));c=_.J.Ta.apply(null,c);_.J.Z(c.volume)&&(""===""+c.volume?c.volume=null:c.volume=Number(c.volume));if(!_.J.R(c.volume)&&(!_.J.la(c.volume)||_.J.isNaN(c.volume)))throw new _.K(_.M,7,7100,"config.volume is not a number");if(!_.J.R(c.preferredTextLanguage)&&!_.J.Z(c.preferredTextLanguage)&&!Array.isArray(c.preferredTextLanguage))throw new _.K(_.M,7,7100,"config.preferredTextLanguage is not a string or an array");if(!_.J.R(c.preferredAudioLanguage)&&!_.J.Z(c.preferredAudioLanguage)&&
75
+ !Array.isArray(c.preferredAudioLanguage))throw new _.K(_.M,7,7100,"config.preferredAudioLanguage is not a string or an array");if(!_.J.R(c.preferredAudioCodec)&&!_.J.Z(c.preferredAudioCodec)&&!Array.isArray(c.preferredAudioCodec))throw new _.K(_.M,7,7100,"config.preferredAudioCodec is not a string or an array");if(!_.J.R(c.preferredVideoCodec)&&!_.J.Z(c.preferredVideoCodec)&&!Array.isArray(c.preferredVideoCodec))throw new _.K(_.M,7,7100,"config.preferredVideoCodec is not a string or an array");if(!_.J.R(c.drm)){if(c.drm.env&&
76
+ !_.J.Z(c.drm.env))throw new _.K(_.M,7,7100,"config.drm.env is not a string");if(c.drm.offlineId&&!_.J.Z(c.drm.offlineId))throw new _.K(_.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(!_.J.la(d.bufferingGoal)||_.J.isNaN(d.bufferingGoal))throw new _.K(_.M,7,7100,"config.streaming.bufferingGoal is not a number");
77
+ if(!_.J.la(d.rebufferingGoal)||_.J.isNaN(d.rebufferingGoal))throw new _.K(_.M,7,7100,"config.streaming.rebufferingGoal is not a number");if(d.rebufferingGoal>d.bufferingGoal)throw new _.K(_.M,7,7100,"config.streaming.rebufferingGoal must be \x3e\x3d bufferingGoal");if(!_.J.la(d.bufferBehind)||_.J.isNaN(d.bufferBehind))throw new _.K(_.M,7,7100,"config.streaming.bufferBehind is not a number");if(!_.J.la(d.smallGapLimit)||_.J.isNaN(d.smallGapLimit))throw new _.K(_.M,7,7100,"config.streaming.smallGapLimit is not a number");
78
+ if(!_.J.la(d.durationBackoff)||_.J.isNaN(d.durationBackoff))throw new _.K(_.M,7,7100,"config.streaming.durationBackoff is not a number");d=c.manifest;if(_.J.R(d.availabilityWindowOverride))d.availabilityWindowOverride=NaN;else if(typeof d.availabilityWindowOverride!==_.h)throw new _.K(_.M,7,7100,"Invalid value for |manifest.availabilityWindowOverride|");Yi(c.restrictions);Yi(c.abr.restrictions);c.abr.initialRestrictions&&Yi(c.abr.initialRestrictions)}return c};
79
+ Wi=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}};
80
+ Yi=function(a){_.J.R(a.maxPixels)&&(a.maxPixels=Infinity);_.J.R(a.maxBandwidth)&&(a.maxBandwidth=Infinity);_.J.R(a.maxHeight)&&(a.maxHeight=Infinity);_.J.R(a.maxWidth)&&(a.maxWidth=Infinity);_.J.R(a.minPixels)&&(a.minPixels=0);_.J.R(a.minBandwidth)&&(a.minBandwidth=0);_.J.R(a.minHeight)&&(a.minHeight=0);_.J.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);
81
+ 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 _.K(_.M,7,7100,"Restrictions contain NaN");};_.$i=function(a){return typeof a===_.Bd&&!Array.isArray(a)&&"source"in a};
82
+ _.cj=function(a){_.Ph.call(this);this.log=new _.G(a);this.configuration=this.pd=_.Xi();this.o=this.A=null;this.Cd=this.pe=!1;this.lg=new _.G("clpp.video.events");this.td=null;this.rd=-1;this.xj=this.gj.bind(this);this.Kf=new _.mi;this.K=new _.Wf;this.Oa=this.zc=this.J=null};_.ej=function(a){return _.dj.get(a)||null};_.gj=function(a){_.dj.get(a.id())?fj.warn("Component already in use."):_.dj.set(a.id(),a)};hj=function(a){for(var b=_.u(_.dj.values()),c=b.next();!c.done;c=b.next())a(c.value)};_.ij=function(){};
83
+ _.kj=function(a,b){var c=void 0==b?!0:b,d=_.jj(a).replace(/\+/g,"-").replace(/\//g,"_");return c?d:d.replace(/[=]*$/,"")};_.lj=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};_.mj=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};
84
+ _.nj=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};_.oj=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};_.pj=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};_.jj=function(a){a=Sg(_.R(a));return btoa(a)};
85
+ qj=function(){this.a=this.f=null;this.g=new _.G("clpp.drm.csl")};rj=function(a,b){3===b.type&&(a.f&&(a.g.debug("Attaching tracking token"),b.headers[Ye]=a.f),a.a&&(b.headers[Ze]=a.a))};
86
+ sj=function(a,b){if(b.request&&3===b.request.type){a.f=b.headers[Ye];a.a=b.headers[Ze];var c=b.headers["x-dt-csl-renewal-info"];a.f&&a.g.debug("Loaded tracking token "+a.f);a.a&&a.g.debug("Loaded followup token "+a.a);if(c)return c=JSON.parse(_.Tg(_.lj(c))),{delay:c.renewalPeriod,Lj:{maxAttempts:c.retryCount,baseDelay:1E3*c.retryPeriod,backoffFactor:1,fuzzFactor:0,timeout:0}}}return null};tj=function(a){return _.$g(a,_.Gc)||_.$g(a,_.Hc)};_.vj=function(a){_.uj[a.J]=a};
87
+ _.xj=function(a){var b={attemptParameters:_.fh(),enforceSingleSession:!1,delayLicenseRequestUntilPlayed:!1,Ma:{}};if(a&&(b.enforceSingleSession=!!a.enforceSingleSession,b.delayLicenseRequestUntilPlayed=!!a.delayLicenseRequestUntilPlayed,b.preferredDrmSystem=a.preferredDrmSystem,b.emeApi=a.emeApi,a.attemptParameters&&(b.attemptParameters=a.attemptParameters),a.env)){var c=_.uj[a.env]||null;if(!c)throw _.Kf(_.ta,_.ab+a.env+_.aa),new _.K(_.M,6,6015,_.ua+a.env+"' is missing.");b.Ma=_.wj(c,a.customData)||
88
+ {};_.$g(a.env.toLowerCase(),Tc)&&(b.enforceSingleSession=!0)}return b};zj=function(a){a=yj[a];if(!a)return null;var b=_.ji();return b.os===Li&&4===b.osVersion.major&&4===b.osVersion.minor?null:new Uint8Array(a)};_.Aj=function(a){this.J=a;this.g={}};Bj=function(a,b){var c=_.ji();if(c.os!==Li||"chrome"!==c.browser)return a||b};
89
+ _.wj=function(a,b){var c={},d=b?b.widevineVideoRobustness:void 0,e=b?b.widevineAudioRobustness:void 0,f=b?b.serverCertificate:void 0,g=a.g[_.Ic];g&&(c[_.Ic]={licenseUrl:g.licenseUrl,videoRobustness:Bj(d,g.videoRobustness),audioRobustness:Bj(e,g.audioRobustness),modifiers:g.modifiers,distinctiveIdentifierRequired:g.distinctiveIdentifierRequired,persistentStateRequired:g.persistentStateRequired,serverCertificate:void 0===f?g.serverCertificate:null===f?null:typeof f===_.me?zj(f):f});(g=a.g[_.Gc])&&(c[_.Gc]=
90
+ {licenseUrl:g.licenseUrl,certificateUrl:g.certificateUrl,modifiers:g.modifiers});d=b?b.playReadyVideoRobustness:void 0;e=b?b.playReadyAudioRobustness:void 0;(g=a.g[_.Hc])&&(c[_.Hc]={licenseUrl:g.licenseUrl,videoRobustness:d||g.videoRobustness,audioRobustness:e||g.audioRobustness,individualizationServer:g.individualizationServer,useLegacySystem:g.useLegacySystem,modifiers:g.modifiers});return c};
91
+ _.Cj=function(a,b){this.f=_.J.la(a)?new DataView(new ArrayBuffer(a),0,a):a;this.a=0;this.g=!!b;this.buffer=this.f.buffer};_.Ej=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){_.Dj()}};_.T=function(a,b){try{a.f.setUint32(a.a,b,a.g),a.a+=4}catch(c){_.Dj()}};_.Dj=function(){throw new _.K(_.M,3,3E3);};_.Fj=function(a,b){this.f=a;this.g=void 0===b?!0:b;this.a=0};_.Gj=function(a){return a.a<a.f.byteLength};
92
+ _.Ij=function(a){try{var b=a.f.getUint8(a.a);a.a+=1;return b}catch(c){Hj()}};_.Jj=function(a){try{var b=a.f.getUint16(a.a,a.g);a.a+=2;return b}catch(c){Hj()}};_.Kj=function(a){try{var b=a.f.getUint32(a.a,a.g);a.a+=4;return b}catch(c){Hj()}};_.Lj=function(a){try{var b=a.f.getInt32(a.a,a.g);a.a+=4;return b}catch(c){Hj()}};
93
+ _.Mj=function(a){var b=0;try{if(a.g){var c=a.f.getUint32(a.a,!0);b=a.f.getUint32(a.a+4,!0)}else b=a.f.getUint32(a.a,!1),c=a.f.getUint32(a.a+4,!1)}catch(d){Hj()}if(2097151<b)throw new _.K(_.M,3,3001);a.a+=8;return b*Math.pow(2,32)+c};_.Nj=function(a,b){a.a+b>a.f.byteLength&&Hj();var c=a.f.buffer.slice(a.a,a.a+b);a.a+=b;return _.R(c)};_.Oj=function(a){if(1>a.a)throw Hj();--a.a};Hj=function(){throw new _.K(_.M,3,3E3);};_.Pj=function(){this.g=[];this.f=[];this.a=!1;this.h=new _.G("clpp.mp4")};
94
+ _.Qj=function(a){for(;_.Gj(a.F)&&!a.Ua.a;)a.Ua.Gd(a.start+a.ke,a.F,a.Zf)};_.Rj=function(a){for(var b=_.Kj(a.F);0<b&&!a.Ua.a;--b)a.Ua.Gd(a.start+a.ke,a.F,a.Zf)};_.Sj=function(a){return function(b){var c=b.F.Aa()-b.F.getPosition();a(_.Nj(b.F,c))}};Tj=function(a){for(var b=0,c=0;c<a.length;c++)b=b<<8|a.charCodeAt(c);return b};_.Uj=function(a){return String.fromCharCode(a>>24&255,a>>16&255,a>>8&255,a&255)};_.Vj=function(a){return 8+(a.$h?8:0)+(null!=a.flags?4:0)};
95
+ _.Wj=function(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.f=d?"":b.hostname;this.port=b.port;this.path=b.pathname;_.$g(this.path,"/")||(this.path=
96
+ "/"+this.path);this.a=b.search;this.g=b.hash};_.Xj=function(a){return a.scheme+"//"+(a.f+(a.port?":"+a.port:"")+a.path+a.g+a.a)};_.Yj=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)},""):""};
97
+ Zj=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};ak=function(){};bk=function(a){var b="";try{b=_.Wg(a)}catch(c){}return b};_.ck=function(a){a=bk(a);var b="";a.length&&(b=(new _.Wj(a)).f);return b};
98
+ dk=function(a){if(!a)return null;var b=null;try{var c=JSON.parse(_.Tg(a)),d=_.lj(c.sinf[0]);(new _.Pj).M(_.ee,_.Qj).M("schi",_.Qj).M("tenc",function(e){e.F.skip(6);_.Ij(e.F)&&(e.F.skip(1),b=_.nj(_.Nj(e.F,16)));e.Ua.stop()}).parse(d)}catch(e){}return b};
99
+ ek=function(a,b,c){if(!c||!c.byteLength)throw new _.K(_.M,6,6102);var d;typeof b===_.me?d=_.Yg(b,!0):d=b;a=_.Yg(bk(a),!0);b=new _.Cj(12+a.byteLength+d.byteLength+c.byteLength,!0);_.T(b,a.byteLength);_.Ej(b,_.R(a));_.T(b,d.byteLength);_.Ej(b,_.R(d));_.T(b,c.byteLength);_.Ej(b,_.R(c));return _.R(b.buffer)};_.fk=function(a){var b=_.R(a.body);b=_.kj(b);a.headers[sa]=$b;a.body=_.Xg("spc\x3d"+b).buffer};
100
+ _.gk=function(a){try{var b=_.Tg(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=Rg(_.lj(b))};
101
+ lk=function(){var a=hk;if(a===ik)return"https://lic.drmtoday.com";if(a===jk)return"https://lic.staging.drmtoday.com";if(a===kk)return"https://lic.test.drmtoday.com";throw Error("Unknown DRMtoday environment '"+a+"'. Can not infer DRMtoday base URL!");};pk=function(a){var b=lk();if(a==_.Ic)return b+mk;if(a==_.Hc)return b+nk;if(a==_.Gc)return b+ok;throw Error("Unknown DRM Key-System '"+a+"'. Can not infer license URL!");};
102
+ qk=function(a){a=a.replace(/assetid/gi,"assetId");a=a.replace(/variantid/gi,"variantId");return a=a.replace(/keyid/gi,"keyId")};
103
+ _.sk=function(a,b,c){b=bk(b);c=c&&c.customData?c.customData:{};b=new _.Wj(qk(b));var d=Zj(b.a);if(a&&a.drm&&a.drm.customData){var e=a.drm.customData;a=e.assetId;e=e.variantId;a&&_.bh(""+a)&&(d.assetId=a,rk.debug("Using assetId from the configuration instead of the value from the HLS manifest."));e&&_.bh(""+e)&&(d.variantId=e,rk.info("Using variantId from the configuration instead of the value from the HLS manifest."))}d.keyId?(a=["keyId"],rk.debug("KeyId found in FPS SKD. Removing other parameters")):
104
+ a=["assetId","variantId"];b.a=_.Yj(d,!1,a);b=_.Xj(b);return c.fpsContentId=b};
105
+ _.tk=function(a,b,c,d){d=void 0===d?!0:d;a=a.drm;a&&a.env.startsWith(wa)?a.customData&&(c=btoa(JSON.stringify({userId:a.customData.userId,sessionId:a.customData.sessionId,merchant:a.customData.merchant})),b.headers["dt-custom-data"]=c,a.customData.authToken&&(b.headers["x-dt-auth-token"]=""+a.customData.authToken),c=b.uris[0],d&&a.customData.assetId&&(c+="?assetId\x3d"+encodeURI(""+a.customData.assetId),a.customData.variantId&&(c+="\x26variantId\x3d"+encodeURI(""+a.customData.variantId)),b.uris[0]=
106
+ c)):rk.warn(Sa)};uk=function(a,b,c){_.tk(a,b,c);a=a.drm;a=!(!a||!a.offlineId);c=new _.Wh(b.uris[0]);c.a.add(_.Md,a);b.uris[0]=c.toString()};
107
+ _.vk=function(a,b,c){var d=c&&c.customData&&c.customData.fpsContentId;_.tk(a,b,c,!1);b.headers[sa]=$b;c={spc:_.jj(b.body)};if((a=a.drm)&&a.env.startsWith(xa)&&d){a={};var e=Zj((new _.Wj(qk(d))).a);d=e.keyId;if(e=e.assetId)rk.info("Applying assetId from HLS manifest."),a.assetId=e;d&&(rk.info("Applying keyId from HLS manifest."),a.keyId=d);a.keyId&&(rk.info("Adding keyID to FPS payload:",a.keyId),c.keyId=a.keyId);a.assetId&&(rk.info("Adding assetID to FPS payload:",a.assetId),c.assetId=a.assetId)}b.body=
108
+ _.Zg(_.Yj(c,!0))};_.wk=function(a,b){rk.debug("Clearing response data");if(200===b.status){var c=_.Tg(b.data).trim();"\x3cckc\x3e"===c.substr(0,5)&&"\x3c/ckc\x3e"===c.substr(-6)&&(c=c.slice(5,-6));b.data=_.lj(c).buffer}};_.xk=function(a,b){var c=a.drm;if(!c||!c.env.startsWith(wa))rk.warn(Sa);else if(c.customData&&c.customData.merchant&&!c.env.startsWith(xa)){var d=new _.Wh(b.uris[0]),e=d.ma;e.endsWith("/")||(e+="/");e+=c.customData.merchant;d.ma=e;b.uris[0]=d.toString()}};
109
+ _.yk=function(a,b){try{var c=_.R(b.data),d=JSON.parse(String.fromCharCode.apply(null,c));rk.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){rk.debug("Unable to parse DRMtoday response JSON, assuming the response contained raw data")}};Ak=function(a){var b={},c=a?a[$e]:void 0;a=zk[a?a[$e]:void 0];c&&(b.drmTodayErrorCode=c);a&&(b.drmTodayErrorMessage=a);return b};Bk=function(){};
110
+ Dk=function(a,b){b=void 0===b?0:b;_.Jf("Registering EME Factory: "+a.a());for(var c={priority:b,Gb:a},d=0;d<Ck.length;++d)if(Ck[d].priority<b){Ck.splice(d,0,c);return}Ck.push(c)};
111
+ Ek=function(a){if(a){var b=Ck.find(function(d){return d.Gb.a()===a}).Gb;if(b&&b.W())return _.Jf(vb+b.a()),b.create();_.Jf("Cannot create selected EME manager. Choosing by priority list.")}b=_.u(Ck);for(var c=b.next();!c.done;c=b.next())if(c=c.value.Gb,c.W())return _.Jf(vb+c.a()),c.create();throw Error("Missing EME managers");};_.Gk=function(a,b){var c=_.Fk(a,b);return 1!=c.length?null:c[0]};
112
+ _.Fk=function(a,b){return Array.prototype.filter.call(a.childNodes,function(c){return c instanceof Element&&c.tagName==b})};_.Hk=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};
113
+ _.Ik=function(a,b){var c=new DOMParser,d=null,e=null;try{e=c.parseFromString(a,_.ve)}catch(f){}e&&e.documentElement.tagName==b&&(d=e.documentElement);return d&&0<d.getElementsByTagName("parsererror").length?null:d};Jk=function(a,b,c){this.h=new Uint8Array(a);this.a=b;this.f=c};Kk=function(){Jk.apply(this,arguments)};_.Mk=function(a){var b=_.mj(a);b=parseInt(b.byteLength,10).toString(16);b=_.mj("12"+b+a);return new Kk(Lk,a,b)};
114
+ _.Nk=function(a){a=new _.Fj(new DataView(a.buffer),!1);a.skip(12);a.skip(16);a.skip(4);var b=_.Ij(a);_.Oj(a);8===b&&a.skip(2);if(18!==_.Ij(a))return _.D("Unable to parse WV PSSH Data. KeyIdType does not match!"),null;b=_.Ij(a);if(16!==b)return _.D("Unable to parse WV PSSH Data. KeyID length is "+b),null;for(var c=new Uint8Array(b),d=0;d<b;d++)c[d]=_.Ij(a);a=_.nj(c);return _.Mk(a)};_.Ok=function(a,b,c,d,e,f){f=void 0===f?null:f;Jk.call(this,a,b,d);this.version=e;this.g=c;this.j=f};
115
+ _.Rk=function(a){a:{a=new _.Fj(new DataView(a.buffer),!0);_.Kj(a);for(_.Jj(a);_.Gj(a);)if(1===_.Jj(a)){var b=_.Jj(a);a=_.Nj(a,b);break a}a=null}b=Vg(a,!0);var c=_.Ik(b,"WRMHEADER");b=c.getAttribute("version");var d=_.Gk(c,"DATA");c=(c=_.Gk(d,"LA_URL"))?_.Hk(c):"";var e="",f=_.Gk(d,"KID");if(f){e=_.Hk(f)||"";var g=f.getAttribute("CHECKSUM")}else if((f=_.Gk(d,"PROTECTINFO"))&&(f=_.Gk(f,"KIDS"))&&(e=_.Gk(f,"KID").getAttribute("VALUE")||""),d=_.Gk(d,"CHECKSUM"))g=d.textContent;d=_.lj(e);d=_.Pk(d);d=_.nj(d);
116
+ return new _.Ok(_.Qk,d,c,a,b,g)};_.Pk=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};Sk=function(a){this.f=[];this.g=[];this.a=[];8<=a.byteLength&&(new _.Pj).V("pssh",this.h.bind(this)).parse(a.buffer);0==this.a.length&&_.D("No pssh box found!")};
117
+ _.Wk=function(a){var b=this;this.m=a;this.L=new Set;this.B=this.I=this.w=null;this.Y=!1;this.f=null;this.K=Tk;this.A=new _.Wf;this.N=new qj;this.g=new Map;this.J=[];this.G=new _.Qh;this.h=null;this.S=function(c){b.o=!0;b.C=!1;b.G.reject(c);a.onError(c)};this.mb=new Map;this.ga=new Map;this.aa=new _.qh(function(){return Uk(b)});this.j=!1;this.Ga=new _.Qh;this.D=!1;this.ca=[];this.Oa=!1;this.U=0;this.a=new _.G("clpp.drm.DrmEngine");this.wa=(new _.qh(function(){Vk(b)})).Ya(1);this.G["catch"](function(){});
113
118
  this.o=this.C=!1;this.T=null};
114
- Dk=function(a){var b,c,d,e;return _.z(function(f){switch(f.a){case 1:a.A.release();a.A=null;a.O.release();a.O=null;a.o=!1;a.C=!1;a.G.reject();a.wa.stop();a.wa=null;a.aa.stop();a.aa=null;b=Array.from(a.g.keys());c=_.t(a.g.values());for(d=c.next();!d.done;d=c.next())e=d.value,e.yc&&e.yc.stop();a.g.clear();return _.v(f,Promise.all(b.map(function(g){return Promise.resolve().then(function(){return _.z(function(k){if(1==k.a)return a.a.debug("Closing session",g.sessionId),_.qf(k,2),_.v(k,Ck(g),4);if(2!=
115
- k.a)return _.rf(k,0);_.sf(k);_.w(k)})})})),2);case 2:if(!a.B){f.H(3);break}_.qf(f,4);return _.v(f,a.w.Pc(null),6);case 6:_.rf(f,5);break;case 4:_.sf(f);case 5:a.B=null;case 3:a.w=null,a.f=null,a.L.clear(),a.I=null,a.J=[],a.h=null,a.S=null,a.m=null,a.U=0,a.T=null,_.w(f)}})};_.Gk=function(a,b,c){a.K=Ek;a.J=c;a.D=0<c.length;a.a.debug("Using Persisted Licenses: "+a.D);return _.Fk(a,b)};
116
- _.Fk=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.H.Ye(a.h.Wa);Hk(b,d)}var e=Ik(a);if(e){var f=_.t(b);for(d=f.next();!d.done;d=f.next())d.value.drmInfos=[e]}e=_.t(b);for(d=e.next();!d.done;d=e.next())for(d=_.t(d.value.drmInfos),f=d.next();!f.done;f=d.next())Jk(f.value,a.h.Wa);d=Kk(a,b);if(!d.size)return a.Y=!0,Promise.resolve();a.w=pk(a.h.emeApi);d=_.Lk(a,d);return c?d:d["catch"](function(){})};
117
- Mk=function(a){var b;return _.z(function(c){switch(c.a){case 1:if(a.w.ud())return c["return"]();if(!a.T){c.H(2);break}return _.v(c,a.T,3);case 3:return c["return"]();case 2:return _.qf(c,4),a.T=a.w.Pc(a.I),_.v(c,a.T,6);case 6:_.rf(c,0);break;case 4:b=_.sf(c);if(a.j)return c["return"]();a.S(new _.J(_.K,6,6003,b.message,b));_.w(c)}})};Ok=function(a,b){return _.z(function(c){if(1==c.a)return _.v(c,Mk(a),2);if(!b.initData)return c["return"]();_.Nk(a,b.initDataType,_.Q(b.initData));_.w(c)})};
118
- _.Tk=function(a,b){if(!a.I)return _.Vf(a.A,b,[Sc,"msneedkey",Ve,"needkey"],function(){a.S(new _.J(_.K,6,6010))}),Promise.resolve();a.B=b;a.w.md(b);a.A.one(a.B,_.Pd,function(){return Pk(a)});a.A.on(a.B,_.Qe,function(f){var g=a.C;a.C=!a.o;!g&&a.C&&(a.a.info("Waiting for DRM license key delivery"),a.m.onEvent(f))});var c=a.f.initData.find(function(f){return 0<f.initData.length}),d=Promise.resolve();if(c||a.w.Oc()!==db||a.J.length)d=Mk(a);var e=Promise.resolve();_.gi()&&38===pi().major||(a.f&&a.f.keySystem!==
119
- _.Jd&&!a.f.serverCertificate&&(e=Qk(a)),e=e.then(function(){return _.Rk(a)}));return Promise.all([d,e]).then(function(){if(!a.j&&(_.Sk(a),_.fi(2)||!c&&!a.J.length))a.A.on(a.B,Sc,function(f){return Ok(a,f)})})["catch"](function(f){if(!a.j){if(6004===f.code&&a.f&&a.f.keySystem===_.Fc&&1>a.U&&a.f.serverCertificate&&a.f.serverCertificate.length)return a.a.warn("Detected invalid widevine server certificate!. Retrying"),a.S(new _.J(1,6,6004)),a.f.serverCertificate=null,a.U++,_.Tk(a,b);1<=a.U&&a.a.info("Could not get valid widevine server certificate. Giving up");
120
- throw f;}})};_.Rk=function(a){var b,c;return _.z(function(d){if(1==d.a){if(!(a.I&&a.f&&a.f.serverCertificate&&a.f.serverCertificate.length))return d.H(0);_.qf(d,3);return _.v(d,a.I.setServerCertificate(a.f.serverCertificate),5)}if(3!=d.a)return b=d.f,void 0===b||b||a.a.warn("Server certificates are not supported by the key system. The server certificate has been ignored."),_.rf(d,0);c=_.sf(d);throw new _.J(_.K,6,6004,{browserError:c.message});})};
121
- Qk=function(a){var b=a.keySystem(),c=a.h.Wa[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.m.getConfiguration();return Uk(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,k=f&&f.certificateResponse;f=_.gh([d],a.h.attemptParameters);f.type=3;g&&f.requestModifiers.push(function(l){return g(e,l)});k&&f.responseModifiers.push(function(l){return k(e,l)});a.a.debug("Fetching certificate");return a.m.wb.fetch(f).N}).then(function(f){a.f.serverCertificate=_.Q(f.data)})["catch"](function(f){var g=
122
- 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}:{},lk(g));throw new _.J(_.K,6,6100,g,f);})};Uk=function(a,b){var c,d;return _.z(function(e){c=a.m.Cc();return c?(d=b&&b.drm&&b.drm.customData)?_.v(e,c(d),0):e["return"]():e["return"]()})};Vk=function(a,b){for(var c=0;c<b.rd.length;c++)if(_.jj(a,b.rd[c]))return!0;return!1};
123
- _.Sk=function(a){for(var b=a.f?a.f.initData||[]:[],c=_.t(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=!_.fi(2);if(a.h.enforceSingleSession&&!a.keySystem().startsWith(_.Dc)){var f=a.g.values();f=_.t(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.jj(d.initData,g.initData)?(a.a.debug(Ha),e=!1):g.periodId===d.periodId&&(a.a.debug("Ignore duplicated init data with same period id"),Vk(d.initData,g)||g.rd.push(d.initData),e=!1)}!e||a.D&&a.K===Ek||Wk(a,d.keyId,d.periodId,d.initDataType,d.initData)}c=
124
- _.t(a.J);for(d=c.next();!d.done;d=c.next())_.Xk(a,d.value);b.length||a.J.length||(a.o||a.a.info(ta),a.o=!0,a.C=!1,a.G.resolve());return a.G};
125
- _.Nk=function(a,b,c){if(c.length&&(!a.D||a.K!==Ek)){var d=a.keySystem();if(!d.startsWith(_.Dc)){var e=new xk(c);if(1<e.a.length&&(d={"org.w3.clearkey":"1077efecc0b24d02ace33c1e52e2fb4b","com.widevine.alpha":"edef8ba979d64acea3c827dcd51d21ed","com.microsoft.playready":"9a04f07998404286ab92e65be0885f95","com.adobe.primetime":"f239e769efa348509c16a903c6932efb"}[d]))for(var f=0;f<e.f.length;f++)if(d===e.f[f]){c=c.subarray(e.a[f].start,e.a[f].end+1);break}}e=a.g.values();if(!a.B.webkitCurrentPlaybackTargetIsWireless&&
126
- !_.fi(2)&&!a.keySystem().startsWith(_.Dc))for(e=_.t(e),d=e.next();!d.done;d=e.next()){d=d.value;if(_.jj(c,d.initData)){a.a.debug(Ha);return}if(Vk(c,d)){a.a.debug("Ignoring duplicate init data (extra).");return}}Wk(a,"",null,b,c)}};Yk=function(a){var b=Infinity;a=a.g.keys();a=_.t(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};
127
- Kk=function(a,b){for(var c=new Set,d=_.t(b),e=d.next();!e.done;e=d.next()){var f=_.t(e.value.drmInfos);for(e=f.next();!e.done;e=f.next())c.add(e.value)}d=_.t(c);for(e=d.next();!e.done;e=d.next())Jk(e.value,a.h.Wa);f=a.D?_.Zd:_.Id;var g=a.D?[_.Nd]:[re];d=new Map;c=_.t(c);for(e=c.next();!e.done;e=c.next())e=e.value,d.set(e.keySystem,{initDataTypes:[_.pc],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.Id,persistentState:f,sessionTypes:g,label:e.keySystem,drmInfos:[]});c={};f=_.t(b);
128
- for(e=f.next();!e.done;c={Md:c.Md,Td:c.Td},e=f.next()){e=e.value;g=e.audio;var k=e.video;c.Md=g?_.vh(g.mimeType,g.codecs):"";c.Td=k?_.vh(k.mimeType,k.codecs):"";var l={},m=_.t(e.drmInfos);for(e=m.next();!e.done;l={Cb:l.Cb},e=m.next())e=e.value,l.Cb=d.get(e.keySystem),l.Cb.drmInfos.push(e),e.initData&&e.initData.length&&(l.Cb.initDataTypes=_.af(new Set(e.initData.map(function(n){return n.initDataType}))).concat()),e.distinctiveIdentifierRequired&&(l.Cb.distinctiveIdentifier=_.Zd),e.persistentStateRequired&&
129
- (l.Cb.persistentState=_.Zd),g&&_.wh(e.audioRobustness).forEach(function(n,p){return function(q){p.Cb.audioCapabilities.push({robustness:q||"",contentType:n.Md})}}(c,l)),k&&_.wh(e.videoRobustness).forEach(function(n,p){return function(q){p.Cb.videoCapabilities.push({robustness:q||"",contentType:n.Td})}}(c,l))}return d};
130
- _.Lk=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===_.Ec){var r=a.m.getConfiguration();if(!_.ni()||r.streaming.patchEdgeWhenMixedContent||a.h.Wa[q].useLegacySystem)d(p);else return a.w.xc("com.microsoft.playready.recommendation",[p])["catch"](function(){d(p);return a.w.xc(q,[p])})}return a.w.xc(q,[p])}))}function d(n){for(var p=_.t(n.audioCapabilities),q=p.next();!q.done;q=p.next())delete q.value.robustness;
131
- n=_.t(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 _.J(_.K,6,6E3));for(var e=_.t(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 _.Oh,k=a.h.preferredDrmSystem;k||(f=_.hi(),f.os===Ii&&10<=f.osVersion.major&&"edge"===f.browser&&(k=_.Ec));k&&(f=b.get(k))&&(c(!0,f,k),c(!1,f,k));f={};for(var l=
132
- _.t([!0,!1]),m=l.next();!m.done;f={Rd:f.Rd},m=l.next())f.Rd=m.value,b.forEach(function(n){return function(p,q){q!==k&&c(n.Rd,p,q)}}(f));g=g["catch"](function(){throw new _.J(_.K,6,6001);});g=g.then(function(n){if(a.j)return null;a.L.clear();var p=n.getConfiguration();a.a.debug("Got MediaKeySystemAccess with configuration",p);var q=p.videoCapabilities||[],r=_.t(p.audioCapabilities||[]);for(p=r.next();!p.done;p=r.next())a.L.add(p.value.contentType);q=_.t(q);for(p=q.next();!p.done;p=q.next())a.L.add(p.value.contentType);
133
- q=n.keySystem;p=b.get(_.Zk(n.keySystem));r=[];var x=[],y=[],C=[];$k(p.drmInfos,r,x,y,C);1<x.length&&_.B("Multiple unique server certificates found! Only the first will be used.");1<r.length&&_.B("Multiple unique license server URIs found! Only the first will be used.");a.f={keySystem:q,licenseServerUri:r[0],distinctiveIdentifierRequired:p.distinctiveIdentifier==_.Zd,persistentStateRequired:p.persistentState==_.Zd,audioRobustness:p.audioCapabilities?p.audioCapabilities[0].robustness:"",videoRobustness:p.videoCapabilities?
134
- p.videoCapabilities[0].robustness:"",serverCertificate:x[0],initData:y,keyIds:C,periodId:null};if(!a.f.licenseServerUri)throw new _.J(_.K,6,6012,a.f.keySystem);return n.createMediaKeys()}).then(function(n){a.j||(a.a.info("Created MediaKeys object for key system",a.f.keySystem),a.I=n,a.Y=!0)})["catch"](function(n){if(!a.j){a.f=null;a.L.clear();if(n instanceof _.J)throw n;throw new _.J(_.K,6,6002,{browserError:n.message});}});e.reject();return g};
135
- Ik=function(a){a=_.H.Ye(a.h.Wa[_.Jd]||{});if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.hj(f),k=_.hj(e);g={kty:"oct",kid:_.fj(g,!1),k:_.fj(k,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.Vg(d),initDataType:"keyids"}];return{keySystem:_.Jd,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
119
+ Yk=function(a){var b,c,d,e,f;return _.A(function(g){switch(g.a){case 1:a.A.release();a.A=null;a.N.release();a.N=null;a.o=!1;a.C=!1;a.G.reject();a.wa.stop();a.wa=null;a.aa.stop();a.aa=null;b=Array.from(a.g.keys());c=_.u(a.g.values());for(d=c.next();!d.done;d=c.next())e=d.value,e.yc&&e.yc.stop();a.g.clear();return _.w(g,Promise.all(b.map(function(k){return Promise.resolve().then(function(){var l;return _.A(function(m){if(1==m.a)return a.a.debug("Closing session",k.sessionId),_.rf(m,2),_.w(m,Xk(k),4);
120
+ if(2!=m.a)return _.sf(m,0);l=_.tf(m);a.a.warn("Error while closing session",l);_.z(m)})})})),2);case 2:if(!a.B){g.H(3);break}_.rf(g,4);return _.w(g,a.w.Qc(null),6);case 6:_.sf(g,5);break;case 4:f=_.tf(g),a.a.warn("Error while resetting media keys",f);case 5:a.B=null;case 3:a.w=null,a.f=null,a.L.clear(),a.I=null,a.J=[],a.h=null,a.S=null,a.m=null,a.U=0,a.T=null,_.z(g)}})};_.al=function(a,b,c){a.K=Zk;a.J=c;a.D=0<c.length;a.a.debug("Using Persisted Licenses: "+a.D);return _.$k(a,b)};
121
+ _.$k=function(a,b){var c=b.some(function(g){return 0<g.drmInfos.length});if(!c){var d=_.J.Ye(a.h.Ma);bl(b,d)}var e=dl(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())el(f.value,a.h.Ma);d=fl(a,b);if(!d.size)return a.Y=!0,Promise.resolve();a.w=Ek(a.h.emeApi);d=_.gl(a,d);return c?d:d["catch"](function(){})};
122
+ hl=function(a){var b;return _.A(function(c){switch(c.a){case 1:if(a.w.vd())return c["return"]();if(!a.T){c.H(2);break}return _.w(c,a.T,3);case 3:return c["return"]();case 2:return _.rf(c,4),a.T=a.w.Qc(a.I),_.w(c,a.T,6);case 6:_.sf(c,0);break;case 4:b=_.tf(c);if(a.j)return c["return"]();a.S(new _.K(_.M,6,6003,b.message,b));_.z(c)}})};
123
+ jl=function(a,b){return _.A(function(c){if(1==c.a)return a.a.info("Handle encrypted event for type "+b.initDataType),_.w(c,hl(a),2);if(!b.initData)return c["return"]();_.il(a,b.initDataType,_.R(b.initData));_.z(c)})};
124
+ _.ol=function(a,b){if(!a.I)return _.Xf(a.A,b,[Wc,"msneedkey",We,"needkey"],function(){a.S(new _.K(_.M,6,6010))}),Promise.resolve();a.B=b;a.w.nd(b);a.A.one(a.B,_.Pd,function(){return kl(a)});a.A.on(a.B,_.Re,function(f){var g=a.C;a.C=!a.o;!g&&a.C&&(a.a.info("Waiting for DRM license key delivery"),a.m.onEvent(f))});var c=a.f.initData.find(function(f){return 0<f.initData.length}),d=Promise.resolve();if(c||a.w.Pc()!==fb||a.J.length)d=hl(a);var e=Promise.resolve();_.ii()&&38===ti().major||(a.f&&a.f.keySystem!==
125
+ _.Jd&&!a.f.serverCertificate&&(e=ll(a)),e=e.then(function(){return _.ml(a)}));return Promise.all([d,e]).then(function(){if(!a.j&&(_.nl(a),_.hi(2)||!c&&!a.J.length))a.A.on(a.B,Wc,function(f){return jl(a,f)})})["catch"](function(f){if(!a.j){if(6004===f.code&&a.f&&a.f.keySystem===_.Ic&&1>a.U&&a.f.serverCertificate&&a.f.serverCertificate.length)return a.a.warn("Detected invalid widevine server certificate!. Retrying"),a.S(new _.K(1,6,6004)),a.f.serverCertificate=null,a.U++,_.ol(a,b);1<=a.U&&a.a.info("Could not get valid widevine server certificate. Giving up");
126
+ throw f;}})};_.ml=function(a){var b,c;return _.A(function(d){if(1==d.a){if(!(a.I&&a.f&&a.f.serverCertificate&&a.f.serverCertificate.length))return d.H(0);_.rf(d,3);return _.w(d,a.I.setServerCertificate(a.f.serverCertificate),5)}if(3!=d.a)return b=d.f,void 0===b||b||a.a.debug("Server certificates are not supported by the key system. The server certificate has been ignored."),_.sf(d,0);c=_.tf(d);throw new _.K(_.M,6,6004,{browserError:c.message});})};
127
+ ll=function(a){var b=a.keySystem(),c=a.h.Ma[b],d=c.certificateUrl||"";if(""===d)return Promise.resolve();var e=a.m.getConfiguration();return pl(a,e).then(function(){var f=c.modifiers,g=f&&f.certificateRequest,k=f&&f.certificateResponse;f=_.ih([d],a.h.attemptParameters);f.type=3;f.licenseRequestType="certificate-request";g&&f.requestModifiers.push(function(l){return g(e,l)});k&&f.responseModifiers.push(function(l){return k(e,l)});a.a.debug("Fetching certificate");return a.m.xb.fetch(f).O}).then(function(f){a.f.serverCertificate=
128
+ _.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}:{},Ak(g));throw new _.K(_.M,6,6100,g,f);})};pl=function(a,b){var c,d;return _.A(function(e){c=a.m.Cc();return c?(d=b&&b.drm&&b.drm.customData)?_.w(e,c(d),0):e["return"]():e["return"]()})};ql=function(a,b){for(var c=0;c<b.sd.length;c++)if(_.oj(a,b.sd[c]))return!0;return!1};
129
+ _.nl=function(a){for(var b=a.f?a.f.initData||[]:[],c=_.u(b),d=c.next();!d.done;d=c.next()){d=d.value;var e=!_.hi(2);if(a.h.enforceSingleSession&&!a.keySystem().startsWith(_.Gc)){var f=a.g.values();f=_.u(f);for(var g=f.next();!g.done;g=f.next())g=g.value,_.oj(d.initData,g.initData)?(a.a.debug(Ha),e=!1):g.periodId===d.periodId&&(a.a.debug("Ignore duplicated init data with same period id"),ql(d.initData,g)||g.sd.push(d.initData),e=!1)}!e||a.D&&a.K===Zk||(a.a.info("Request new media key session on create"),
130
+ rl(a,d.keyId,d.periodId,d.initDataType,d.initData))}c=_.u(a.J);for(d=c.next();!d.done;d=c.next())_.sl(a,d.value);b.length||a.J.length||(a.o||a.a.info(va),a.o=!0,a.C=!1,a.G.resolve());return a.G};
131
+ _.il=function(a,b,c){if(c.length&&(!a.D||a.K!==Zk)){var d=a.keySystem();if(!d.startsWith(_.Gc)){var e=new Sk(c);if(1<e.a.length&&(d={"org.w3.clearkey":"1077efecc0b24d02ace33c1e52e2fb4b","com.widevine.alpha":"edef8ba979d64acea3c827dcd51d21ed","com.microsoft.playready":"9a04f07998404286ab92e65be0885f95","com.adobe.primetime":"f239e769efa348509c16a903c6932efb"}[d]))for(var f=0;f<e.f.length;f++)if(d===e.f[f]){c=c.subarray(e.a[f].start,e.a[f].end+1);break}}e=a.g.values();if(!a.B.webkitCurrentPlaybackTargetIsWireless&&
132
+ !_.hi(2)&&!a.keySystem().startsWith(_.Gc))for(e=_.u(e),d=e.next();!d.done;d=e.next()){d=d.value;if(_.oj(c,d.initData)){a.a.debug(Ha);return}if(ql(c,d)){a.a.debug("Ignoring duplicate init data (extra).");return}}rl(a,"",null,b,c)}};tl=function(a){var b=Infinity;a=a.g.keys();a=_.u(a);for(var c=a.next();!c.done;c=a.next())c=c.value,isNaN(c.expiration)||(b=Math.min(b,c.expiration));return b};
133
+ fl=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())el(e.value,a.h.Ma);f=a.D?_.Zd:_.Id;var g=a.D?[_.Nd]:[se];d=new Map;c=_.u(c);for(e=c.next();!e.done;e=c.next())e=e.value,d.set(e.keySystem,{initDataTypes:[_.rc],audioCapabilities:[],videoCapabilities:[],distinctiveIdentifier:_.Id,persistentState:f,sessionTypes:g,label:e.keySystem,drmInfos:[]});c={};f=_.u(b);
134
+ for(e=f.next();!e.done;c={Md:c.Md,Td:c.Td},e=f.next()){e=e.value;g=e.audio;var k=e.video;c.Md=g?_.xh(g.mimeType,g.codecs):"";c.Td=k?_.xh(k.mimeType,k.codecs):"";var l={},m=_.u(e.drmInfos);for(e=m.next();!e.done;l={Db:l.Db},e=m.next())e=e.value,l.Db=d.get(e.keySystem),l.Db.drmInfos.push(e),e.initData&&e.initData.length&&(l.Db.initDataTypes=_.df(new Set(e.initData.map(function(n){return n.initDataType}))).concat()),e.distinctiveIdentifierRequired&&(l.Db.distinctiveIdentifier=_.Zd),e.persistentStateRequired&&
135
+ (l.Db.persistentState=_.Zd),g&&_.yh(e.audioRobustness).forEach(function(n,p){return function(q){p.Db.audioCapabilities.push({robustness:q||"",contentType:n.Md})}}(c,l)),k&&_.yh(e.videoRobustness).forEach(function(n,p){return function(q){p.Db.videoCapabilities.push({robustness:q||"",contentType:n.Td})}}(c,l))}return d};
136
+ _.gl=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===_.Hc){var r=a.m.getConfiguration();if(!_.ri()||r.streaming.patchEdgeWhenMixedContent||a.h.Ma[q].useLegacySystem)d(p);else return a.w.xc("com.microsoft.playready.recommendation",[p])["catch"](function(){d(p);return a.w.xc(q,[p])})}return a.w.xc(q,[p])}))}function d(n){for(var p=_.u(n.audioCapabilities),q=p.next();!q.done;q=p.next())delete q.value.robustness;
137
+ 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 _.K(_.M,6,6E3));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 _.Qh,k=a.h.preferredDrmSystem;k||(f=_.ji(),f.os===Ni&&10<=f.osVersion.major&&"edge"===f.browser&&(k=_.Hc));k&&(f=b.get(k))&&(c(!0,f,k),c(!1,f,k));f={};for(var l=
138
+ _.u([!0,!1]),m=l.next();!m.done;f={Rd:f.Rd},m=l.next())f.Rd=m.value,b.forEach(function(n){return function(p,q){q!==k&&c(n.Rd,p,q)}}(f));g=g["catch"](function(n){throw new _.K(_.M,6,6001,null,n);});g=g.then(function(n){if(a.j)return null;a.L.clear();var p=n.getConfiguration();a.a.debug("Got MediaKeySystemAccess with configuration",p);var q=p.videoCapabilities||[],r=_.u(p.audioCapabilities||[]);for(p=r.next();!p.done;p=r.next())a.L.add(p.value.contentType);q=_.u(q);for(p=q.next();!p.done;p=q.next())a.L.add(p.value.contentType);
139
+ q=n.keySystem;p=b.get(_.ul(n.keySystem));r=[];var x=[],y=[],C=[];vl(p.drmInfos,r,x,y,C);1<x.length&&_.D("Multiple unique server certificates found! Only the first will be used.");1<r.length&&_.D("Multiple unique license server URIs found! Only the first will be used.");a.f={keySystem:q,licenseServerUri:r[0],distinctiveIdentifierRequired:p.distinctiveIdentifier==_.Zd,persistentStateRequired:p.persistentState==_.Zd,audioRobustness:p.audioCapabilities?p.audioCapabilities[0].robustness:"",videoRobustness:p.videoCapabilities?
140
+ p.videoCapabilities[0].robustness:"",serverCertificate:x[0],initData:y,keyIds:C,periodId:null};if(!a.f.licenseServerUri)throw new _.K(_.M,6,6012,a.f.keySystem);return n.createMediaKeys()}).then(function(n){a.j||(a.a.info("Created MediaKeys object for key system",a.f.keySystem),a.I=n,a.Y=!0)})["catch"](function(n){if(!a.j){a.f=null;a.L.clear();if(n instanceof _.K)throw n;throw new _.K(_.M,6,6002,{browserError:n.message});}});e.reject();return g};
141
+ dl=function(a){a=_.J.Ye(a.h.Ma[_.Jd]||{});if(0==a.size)return null;var b=[],c=[];a.forEach(function(e,f){var g=_.mj(f),k=_.mj(e);g={kty:"oct",kid:_.kj(g,!1),k:_.kj(k,!1)};b.push(g);c.push(g.kid)});a=JSON.stringify({keys:b});var d=JSON.stringify({kids:c});d=[{initData:_.Xg(d),initDataType:"keyids"}];return{keySystem:_.Jd,licenseServerUri:"data:application/json;base64,"+window.btoa(a),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,
136
142
  initData:d,keyIds:[],periodId:null}};
137
- _.Xk=function(a,b){try{a.a.debug("Attempting to load an offline session",b);var c=a.I.createSession(_.Nd)}catch(f){var d=new _.J(_.K,6,6005,{browserError:f.message});a.S(d);return Promise.reject(d)}a.A.on(c,nd,a.Wf.bind(a));a.A.on(c,cd,a.Sf.bind(a));var e={initData:null,loaded:!1,ye:Infinity,ib:null,periodId:null,rd:[],keyId:null,initDataType:null,Xb:null,sessionContext:{ldlDelay:0,customData:{}}};a.g.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.a.debug("Loaded offline session",
138
- b,f);if(!f)return a.g["delete"](c),a.S(new _.J(_.K,6,6013)),null;e.loaded=!0;al(a)&&(a.o||a.a.info(ta),a.o=!0,a.C=!1,a.G.resolve());return c},function(f){a.j||(a.g["delete"](c),a.S(new _.J(_.K,6,6005,{browserError:f.message})))})};
139
- Wk=function(a,b,c,d,e,f){f=void 0===f?null:f;if(e.length){try{var g=a.D?_.Nd:re;a.a.debug("Creating new "+g+" session.");var k=a.I.createSession(g)}catch(m){a.S(new _.J(_.K,6,6005,{browserError:m.message}));return}a.A.on(k,nd,a.Wf.bind(a));a.A.on(k,cd,a.Sf.bind(a));b={Xb:f,rd:[],initData:e,initDataType:d,keyId:b,loaded:!1,ye:Infinity,periodId:c,ib:null,sessionContext:{ldlDelay:0,customData:{}}};f&&(f=a.g.get(f),b.sessionContext=f.sessionContext);a.g.set(k,b);f=_.H.tb;c=a.m.getConfiguration();g=a.keySystem();
140
- g=a.h.Wa[g];var l=g.modifiers;l=l&&l.transformInitData;f(l)||(l=bl);try{e=l({playerConfig:c,initData:e,initDataType:d,drmInfo:a.f,drmSystemConfig:g,sessionContext:b.sessionContext,emeApi:a.w.Oc()})}catch(m){d=m;m instanceof _.J||(d=new _.J(_.K,6,6016,m));a.S(d);return}k.generateRequest(d,e.buffer)["catch"](function(m){if(!a.j){a.g["delete"](k);var n=null;m.errorCode&&m.errorCode.systemCode&&(n=m.errorCode.systemCode,0>n&&(n+=Math.pow(2,32)),n="0x"+n.toString(16));a.S(new _.J(_.K,6,6006,{browserError:m.message,
141
- error:m,extended:n},m))}})}};dl=function(a,b){var c=_.Oj(b);_.Jf("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
142
- bl=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=_.H.tb;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=dl);a="";try{a=e(b,c,f)}catch(k){throw new _.J(_.K,6,6103);}if(!a.length)throw new _.J(_.K,6,6101,"Content ID is an empty string");c=Pj(c,a,d)}return c};
143
- hl=function(a,b){var c=b.target;a.a.debug("Sending license request for session",c.sessionId);var d=a.g.get(c),e=a.f.licenseServerUri,f=a.keySystem();f=a.h.Wa[f];"individualization-request"===b.messageType&&f&&f.individualizationServer&&(e=f.individualizationServer);var g=_.gh([e],a.h.attemptParameters);g.type=3;g.body=b.message;g.method="POST";g.licenseRequestType=b.messageType===fd&&d.Xb?ed:b.messageType;g.sessionId=c.sessionId;if(g.licenseRequestType===ed)a.m.onEvent(new _.E(Nc));el(a.f.keySystem)&&
144
- fl(a,g);mj(a.O,g);var k=Date.now();return gl(a,g,d.sessionContext).then(function(){a.a.debug("Sending DRM license request to",e,g);return a.m.wb.fetch(g).N}).then(function(l){if(a.j)return Promise.reject();a.a.info("Received license response in "+(Date.now()-k)+"ms");var m=nj(a.O,l);return c.update(l.data).then(function(){var n=Yk(a),p=m?Date.now()+1E3*m.delay:Number.NaN;n=new _.E(_.Pc,{keySystem:a.keySystem(),expirationTime:n,expectedRenewalTime:p});a.m.onEvent(n);d&&(d.ib&&d.ib.resolve(),d.Xb&&
145
- (Ck(d.Xb)["catch"](function(){a.a.warn("Unable to close expired session in time")}),(n=a.g.get(d.Xb))&&n.yc&&n.yc.stop(),a.g["delete"](d.Xb),d.Xb=null),(new _.oh(function(){a.j||(d.loaded=!0,al(a)&&(a.o||a.a.info("DRM licenses loaded!!!"),a.o=!0,a.C=!1,a.G.resolve()))})).$(5),null!==d.initData&&(0<d.sessionContext.ldlDelay||m&&oj(a.keySystem()))&&(n=new _.oh(function(){!a.j&&a.O&&(a.a.info("Updating CSL Sessions"),el(a.keySystem())?Wk(a,d.keyId,d.periodId,d.initDataType,d.initData,c):a.keySystem().startsWith(_.Dc)&&
146
- c.update(_.Vg("renew")))}),d.yc=n,n.$(m?m.delay:d.sessionContext.ldlDelay)))})},function(l){var m,n,p,q;return _.z(function(r){if(a.j)return r["return"]();m=l.data.headers;n=lk(m);p=Object.assign({message:_.Aa,url:l.data.url,status:l.data.status,response:l.data.response},m?{headers:m}:{},n);q=new _.J(_.K,6,6007,p,l);a.S(q);d&&d.ib&&d.ib.reject(q);_.w(r)})})["catch"](function(l){a.j||(l=new _.J(_.K,6,6008,{browserError:l.message}),a.S(l),d&&d.ib&&d.ib.reject(l))})};
147
- fl=function(a,b){var c=_.Tg(b.body,!0,!0);if(c.includes("PlayReadyKeyMessage")){a.a.debug("Unwrapping PlayReady request.");c=(new DOMParser).parseFromString(c,"application/xml");for(var d=c.getElementsByTagName("HttpHeader"),e=0;e<d.length;++e)b.headers[d[e].querySelector("name").textContent]=d[e].querySelector(_.Ee).textContent;b.body=_.gj(c.querySelector("Challenge").textContent).buffer}else a.a.debug("PlayReady request is already unwrapped."),b.headers[qa]="text/xml; charset\x3dutf-8"};
148
- gl=function(a,b,c){var d,e,f,g,k,l;return _.z(function(m){if(1==m.a)return d=a.m.getConfiguration(),_.v(m,Uk(a,d),2);e=a.keySystem();k=(g=(f=a.h.Wa[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;k?b.requestModifiers.push(function(n){return k(d,n,c)}):e.startsWith(_.Dc)&&b.requestModifiers.push(function(n){return _.Qj(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Dc)&&b.responseModifiers.push(function(n){return _.Rj(n)});_.w(m)})};
149
- zk=function(a){var b=a.kb,c=a.ga;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.S(new _.J(_.K,6,6014));a.m.Ce(_.H.Ze(c));a.o||a.a.info(ta);a.o=!0;a.C=!1};Pk=function(a){var b;return _.z(function(c){b=a.ca.map(function(d){return hl(a,d)});a.Ma=!0;a.ca=[];return _.v(c,Promise.all(b),0)})};el=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};_.Zk=function(a){return el(a)?_.Ec:a};
150
- Ak=function(a){a.g.forEach(function(b,c){var d=b.ye,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.m.onExpirationUpdated(c.sessionId,e),b.ye=e)})};al=function(a){a=a.g.values();return _.Fg(a,function(b){return b.loaded})};
151
- Hk=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=_.t(a),e=d.next();!e.done;e=d.next())e.value.drmInfos=c};
152
- $k=function(a,b,c,d,e){var f={};a=_.t(a);for(var g=a.next();!g.done;f={oa:f.oa},g=a.next()){f.oa=g.value;b.includes(f.oa.licenseServerUri)||b.push(f.oa.licenseServerUri);f.oa.serverCertificate&&(c.some(function(m){return function(n){return _.jj(n,m.oa.serverCertificate)}}(f))||c.push(f.oa.serverCertificate));if(f.oa.initData){var k=_.t(f.oa.initData);for(g=k.next();!g.done;g=k.next())g.value.periodId=f.oa.periodId;k={};var l=_.t(f.oa.initData);for(g=l.next();!g.done;k={fd:k.fd},g=l.next())k.fd=g.value,
153
- d.some(function(m){return function(n){var p=m.fd;return n.keyId&&n.keyId==p.keyId&&n.periodId===p.periodId?!0:n.initDataType==p.initDataType&&_.jj(n.initData,p.initData)&&n.periodId===p.periodId}}(k))||d.push(k.fd)}if(f.oa.keyIds)for(g=0;g<f.oa.keyIds.length;++g)e.includes(f.oa.keyIds[g])||e.push(f.oa.keyIds[g])}};
154
- Jk=function(a,b){if(a.keySystem){var c=_.Zk(a.keySystem),d=b[c];c===_.Jd&&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=
155
- d.serverCertificate||null)))}};Ck=function(a){var b,c;return _.z(function(d){if(1==d.a)return b=new Promise(function(e){(new _.oh(e)).$(1)}),_.v(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.B("Timeout waiting for session close");_.w(d)})};il=function(){};_.ll=function(a,b){a&&b&&(jl.set(a,b),kl.info("Registered TextDisplayerFactory: '"+a+"'"))};
156
- _.ml=function(a,b){var c=b.find(function(d){return(d=jl.get(d))?d.W(a):!1});kl.info("Chosen the text displayer: "+c);return c?jl.get(c):null};_.nl=function(a){return null!=a};ol=function(){this.a=null;this.f=[]};_.pl=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})}};
157
- ql=function(a,b){var c=0;a.a&&a.a.state==b&&(c+=a.a.duration);for(var d=_.t(a.f),e=d.next();!e.done;e=d.next())e=e.value,c+=e.state==b?e.duration:0;return c};rl=function(a){function b(f){return{timestamp:f.timestamp,state:f.state,duration:f.duration}}for(var c=[],d=_.t(a.f),e=d.next();!e.done;e=d.next())c.push(b(e.value));a.a&&c.push(b(a.a));return c};sl=function(){this.g=this.f=this.h=null;this.a=[]};tl=function(a){return a.a.map(function(b){return _.H.ya(b)})};
158
- _.ul=function(){this.m=this.A=this.o=this.B=this.g=this.h=this.f=this.j=NaN;this.a=new ol;this.w=new sl};_.vl=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:[]}};_.wl=function(a){this.f=a;this.a=void 0};yl=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=xl.value().get(b),c.one(a,b,d))};
159
- Cl=function(a){this.g=new _.D("clpp.StateManager");this.l=a;this.a=new _.Tf;this.f=_.zl;this.A=_.Al;this.I=0;this.w=-1;this.L=this.o=this.J=this.B=0;this.j=this.m=this.D=!1;this.G=0;this.h=null;this.K=0;this.O=_.si();this.C=!1;this.J=Date.now();Bl(this)};Dl=function(a,b){return Object.keys(b)[a]};
160
- Fl=function(a,b){var c={type:_.he};b===_.jc||b===_.ic?(c.reason=a.w,b===_.jc?c.timeSinceLastStateChangeMS=a.I:c.bufferedTimeMS=a.B):(a.f===_.El&&(c.reason=a.w),a.A===_.El&&(c.reason=a.w,c.bufferedTimeMS=a.B),c.currentState=a.f,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.I);return c};
161
- Jl=function(a,b){if(a.f===b)return!1;var c=Date.now(),d=a.f===_.El;a.A=a.f;a.f=b;a.A===_.Gl&&(a.J=c,a.o=0);a.o||(a.o=a.J||c);a.I=c-a.o;a.o=c;b===_.El?(a.L=a.o,a.w=a.m?1:2,a.g.info("Buffering started. Reason: "+Dl(a.w-1,_.Hl)),c=Fl(a,_.jc),a.Qb(_.jc,c)):d&&(a.B=a.o-a.L,a.g.info("Buffering finished. Reason: "+Dl(a.w-1,_.Hl)+". Buffering time: "+a.B+" ms"),c=Fl(a,_.ic),a.Qb(_.ic,c));c=Dl(a.A,_.Il);d=Dl(a.f,_.Il);a.g.info(_.Za+c+" -\x3e "+d);a.Qb(_.he,Fl(a,""));return!0};
162
- Ol=function(a,b){if(a.f===_.Kl)a.g.warn("Player is in error state, aborting any further state checks");else{var c=a.l.isPaused();var d=a.l.getPosition();var e=a.l.getDuration();if(d=a.l.isEnded()||a.f===_.Gl&&1>=Math.abs(d-e)||c&&d>=e)Jl(a,_.Gl)&&a.g.debug("Player claims to be in ended state, not checking more");else if(b!==_.ve){e=a.l.getPosition();e=null!==e&&void 0!==e&&0<=e?a.l.getBufferInfo().xa(e,!0):-1;a.G=e;e=a.l.getSurface().getMedia();a.h=e?e.readyState:null;a.K=a.l.getPlaybackRate()||1;
163
- e=typeof a.h===_.zd&&2>a.h&&2===e.networkState;var f=typeof a.h===_.zd&&0>=a.G&&a.f===_.zl,g=typeof a.h===_.zd&&2>=a.h&&a.j;e=a.m||f||e||g;!a.O||a.l.isLive()||a.f!==_.El||e||(f=b===_.be&&4===a.h,(g=a.A===_.Ll)&&!a.C?e=!0:g||a.C||f||(e=!0));f=!1;e?f=Jl(a,_.El):c?f=Jl(a,_.Ml):a.D&&(f=Jl(a,_.Nl));f&&(a.C=!1);a.g.debug("Video state check for event "+b+":: seeking: "+a.m+", waiting: "+a.j+", playing: "+a.D+", paused: "+c+", readyState: "+a.h+", rate: "+a.K+", buffer: "+a.G+", ended: "+d+". Changed state: "+
164
- f+", Current state: "+Dl(a.f,_.Il))}}};
165
- Bl=function(a){function b(d){return Ol(a,d.type)}a.g.debug("Start watching for video events for "+a.l.namespace());var c=a.l;a.a.on(c,_.Uc,function(){a.j=!1;Jl(a,_.Gl)});a.a.on(c,kc,b);a.a.on(c,_.Qd,function(){a.D=!0;a.j=!1;Ol(a,_.Qd)});a.a.on(c,_.Ld,function(){a.D=!1;a.j=!1;Ol(a,_.Ld)});a.a.on(c,_.ve,b);a.a.on(c,_.Vd,b);a.a.on(c,_.be,function(d){a.m=!1;a.j=!1;Ol(a,d.type)});a.a.on(c,_.ce,function(d){a.m=!0;Ol(a,d.type)});a.a.on(c,fe,b);a.a.on(c,_.Pe,function(){a.j=!0;Ol(a,_.Pe)});a.a.on(c,_.Vc,function(d){return a.S(d)});
166
- a.a.on(c,_.jd,b);a.a.on(c,lc,function(){a.C=!0;Ol(a,lc)});a.a.on(c,_.De,function(d){a.m=!0;Ol(a,d.type)});a.a.on(c,_.Ce,function(d){a.m=!1;a.j=!1;Ol(a,d.type)})};Pl=function(a){a=(new _.Uh(a)).ma;if(!a)return null;a=a.toUpperCase();return _.Zg(a,".MPD")?_.Rb:_.Zg(a,".M3U8")?_.Xb:_.Zg(a,".MP4")?_.Je:_.Zg(a,"MANIFEST")||_.Zg(a,".ISM")?_.Wb:null};
167
- _.Rl=function(a){var b;_.Vi(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.le||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=Ql(b[c]);d&&a.push(d)}return a};
168
- Ql=function(a){var b=null;_.H.Z(a)&&(a={url:a});typeof a===_.Ad&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.H.R(a.drmProtected)||typeof a.drmProtected!==_.hc||(b.drmProtected=a.drmProtected),_.H.R(a.isLive)||typeof a.isLive!==_.hc||(b.isLive=a.isLive),_.H.R(a.name)||typeof a.name!==_.le||(b.name=a.name),_.H.R(a.Ab)||typeof a.Ab!==_.le||(b.Ab=a.Ab),_.H.R(a.audioMimeType)||typeof a.audioMimeType!==_.le||(b.audioMimeType=a.audioMimeType));b&&!b.type&&(b.type=Pl(a.url),b.type?
169
- Sl.debug("Detect media type "+b.type+" for "+a.url):Sl.warn("Unable to detect media type for "+a.url));return b};Tl=function(){_.Wi.call(this,yc);this.w=this.G=!1;this.j=this.B=this.m=this.a=this.h=null;this.g=new _.Tf;this.D=this.C=this.f=this.I=null};Wl=function(a,b){return a.w?Ul():new Promise(function(c){a.a||(a.g.on(b,_.Vc,function(){var d=Vl(a);if(d)a.onError(d)}),a.g.on(b,_.$d,function(){a.trigger(new _.E(_.fc,{detail:{width:b.videoWidth,height:b.videoHeight}}))}),a.a=b);c()})};
170
- Xl=function(a){return a.w?Ul():new Promise(function(b){if(a.a){var c=a.a;a.g.off(c,_.Vc);a.g.off(c,_.$d);a.a=null}b()})};
171
- Zl=function(a){var b,c,d,e,f;return _.z(function(g){if(1==g.a){if(a.w)return g["return"](Ul());b=a.o[a.getSourceIndex()];if(!a.configuration.drm||!1===b.drmProtected)return a.log.debug("No DRM configuration present.","Skipping DRM engine initialization"),g["return"](Promise.resolve());c=_.Yl;d=_.sj(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.m=new _.Bk({wb:e,onError:function(k){return a.onError(k)},Ce:function(){},onExpirationUpdated:function(k,l){a.trigger(new _.E(_.Mc,
172
- {expirationTime:l}))},onEvent:function(k){return a.trigger(k)},getConfiguration:function(){return a.getConfiguration()},Cc:function(){return a.Cc()}});a.m.h=d;f={id:0,language:_.ye,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,xb:0,mimeType:_.Je,codecs:"",encrypted:!0,
173
- keyId:null,language:_.ye,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,rk:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,ek:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.v(g,_.Gk(a.m,[f],[]),2)}return 3!=g.a?_.v(g,_.Tk(a.m,a.a),3):g["return"](Promise.resolve())})};
174
- $l=function(a,b){yl(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.g,function(){a.getState()!==_.Kl&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};Vl=function(a){if(null===a.o||!a.a.error)return null;var b=a.a.error.code;if(1===b)return null;var c=a.a.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new _.J(_.K,3,3016,{code:b,lk:c,message:a.a.error.message})};Ul=function(){return Promise.reject(new _.J(_.K,7,7E3))};
175
- am=function(a){if(a.w)return new _.Ph(Ul(),function(){});var b=a.o[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.I;c&&$l(a,c);if(d.preload!==_.yd)a.g.one(d,_.jd,function(){var g=Date.now()/1E3-e;a.f.o=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.fi()||_.gi())&&d.load();var f=new _.Oh;a.g.one(d,fe,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.C||(a.C=(new _.oh(function(){f.reject(new _.J(_.K,3,3100,{message:"Unable to load media source successfully from "+
176
- b.url,uri:b.url},d.error))})).$(g))});yl(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.g,function(){return f.resolve()});d.error?f.reject(Vl(a)):d.preload===_.yd&&(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,_.Vc,function(){f.reject(Vl(a))});
177
- return new _.Ph(f,function(){var g=new _.J(_.K,7,7001);f.reject(g);return Promise.resolve()})};bm=function(){};_.em=function(a){a&&(0<=cm.indexOf(a)?dm.warn("Factory '"+a.name()+"' is already registered"):(cm.push(a),dm.info("Factory "+a.name()+"' has been registered.")))};gm=function(a,b){var c=cm.find(function(d){return d.W(a,b)});c||(c=new fm);dm.info("Chosen ads: "+c.name());return c};
178
- _.hm=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};_.im=function(a,b){a.classList.add(b)};_.om=function(a,b){if(a&&typeof b===_.Ad)for(var c in b)a.style[c]=b[c]};_.pm=function(a){return document.createElement(a)};
179
- sm=function(a,b){this.h=new _.D("clpp.PlayerSurface");var c=_.H.Sa({},qm,b);c.containerEl=(b||null)&&b.containerEl;this.g=typeof a===_.le?document.getElementById(a):a;this.f=this.j=this.a=null;this.m=new _.Tf;rm(this,c)};
180
- rm=function(a,b){a.h.debug("Initializing Player Surface on ",a.g);a.g instanceof Element&&(a.g instanceof HTMLMediaElement?(a.a=a.g,(_.gi()&&53===pi().major||_.gi()&&68===pi().major||_.qi())&&!a.a.hasAttribute(Hc)&&(a.a.style.opacity="0",a.a.setAttribute(Hc,""),a.m.one(a.a,Rc,function(){a.a.removeAttribute(Hc);a.a.style.opacity="1";a.f&&(a.f.style.opacity="1")}))):"cast-media-player"===a.g.tagName.toLowerCase()&&(a.j=a.g));b.containerEl?(a.f=b.containerEl,_.im(a.f,sc)):b.disableContainer||a.j||(a.f=
181
- tm(),a.g.parentNode?a.g.parentNode.replaceChild(a.f,a.g):a.g.parentNode||a.h.warn("Player Surface Element has no parent. Can not inject container. You have to manually add playerSurface.getContainer() to the DOM!"),a.a&&a.f.appendChild(a.a));if(a.a){if(!a.a.hasAttribute("crossorigin")){var c=b.crossorigin;a.h.info("Setting media elements crossorigin to "+c);a.a.setAttribute("crossorigin",c)}a.f&&(b.containerEl||um(a),_.im(a.a,_.tc))}};tm=function(){var a=document.createElement(_.Lc);_.im(a,sc);return a};
182
- um=function(a){if(a.a&&a.f){for(var b=a.a,c=[],d=0;d<b.classList.length;d++)c.push(b.classList[d]);b=_.t(c);for(c=b.next();!c.done;c=b.next())c=c.value,a.a.classList.remove(c),_.im(a.f,c);a.f.style.cssText=a.a.style.cssText;a.a.removeAttribute(_.ne);b=_.t([_.We,_.Zc]);for(c=b.next();!c.done;c=b.next())c=c.value,d=a.a.getAttribute(c),d=parseInt(d,10),isNaN(d)||(a.f.style[c]=d+_.Ud),_.fi()||a.a.removeAttribute(c)}};
183
- wm=function(a){this.l=a;this.h=this.l.getNetworkEngine();this.a=new _.Tf;this.g=null;this.f=!0;vm(this)};vm=function(a){a.a.on(window,"offline",function(){xm(a,!1)});a.a.on(window,"online",function(){a.f||ym(a)});a.a.on(a.l,fe,function(){return zm(a)});a.a.on(a.l,"suspend",function(){return zm(a)});a.a.on(a.l,_.Pe,function(){return zm(a)});a.a.on(a.l,_.Qd,function(){a.f||ym(a)});a.a.on(a.l,_.Td,function(){a.f||ym(a)});a.a.on(a.l,_.he,function(){switch(a.l.getState()){case _.El:zm(a);break;default:zm(a)}})};
184
- ym=function(a){a.l.getConfiguration().connectivityCheck&&(Am(a),a.g=(new _.oh(function(){return Bm(a)})).$(5))};zm=function(a){a.f&&ym(a)};Am=function(a){a.g&&(a.g.stop(),a.g=null)};Bm=function(a){var b,c;return _.z(function(d){if(1==d.a)return(b=a.l.getConfiguration().connectivityCheck)&&a.l?_.v(d,li(a.h,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;xm(a,c);_.w(d)})};xm=function(a,b){Am(a);a.f!==b&&(a.f=b,a.l&&a.l.getConfiguration().connectivityCheck&&a.l.trigger(new _.E(Hd,{online:a.f})))};
185
- Dm=function(){for(var a=0;a<Cm.length;++a)Cm[a].wc()};_.Em=function(a,b){b=b||0;for(var c={priority:b,wc:a},d=0;d<Cm.length;d++)if(Cm[d].priority<b){Cm.splice(d,0,c);return}Cm.push(c)};Fm=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};Gm=function(a,b,c){this.g=a;this.f=b;JSON.parse(_.Rg(_.gj(a)));this.a=JSON.parse(_.Rg(_.gj(b)));this.h=c};Hm=function(a){this.license=a;this.a=null;this.f=new _.D("clpp.utils.LicenseKey")};
186
- Im=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 Gm(b[0],b[1],b[2]);a.a=b}return a.a};Jm=function(a){switch((a.vd()[0]||{src:"",type:""}).type){case _.Rb:a="dash";break;case _.Wb:a="ss";break;case _.Xb:a="hls";break;case _.Je:a=_.sd;break;default:a=""}return a};Km=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};
187
- Lm=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};Mm=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};Om=function(a){var b=a.getConfiguration(),c="no";b.drm&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(Qc)||Nm(a).endsWith("drmtoday.com"))&&(c=Qc);return c};Pm=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.keySystem){case _.Fc:b="wv";break;case _.Ec:b="pr";break;case _.Dc:b="fps"}return b};
188
- Qm=function(a){a=a.getDrmInfo();var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};Rm=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.videoRobustness){case Fa:case "HW_SECURE_ALL":b="L1";break;case Ea:b="L2";break;case _.gb:case _.fb:b="L3"}return b};Nm=function(a){a=a.getDrmInfo();return(new _.Uh(a&&a.licenseServerUri||"")).Ia};
189
- Um=function(a,b){if(!window.location.protocol.startsWith("http"))return a.f.debug("Registration protocol check",location.protocol,location.protocol.startsWith("http")),Promise.resolve();var c="ie"===_.hi().browser,d=b.getConfiguration(),e=_.af(Array.from(_.Xi.keys())).concat(_.af(b.ki()));d={"CL-KEY":a.license,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.da,"CL-USER-ID":Km(d),"CL-ASSET-ID":Lm(d),"CL-SESSION-ID":Mm(d),"CL-PLAYBACK-TYPE":b.isLive()?Sm:Tm,"CL-CONTENT-TYPE":Jm(b),"CL-PLUGINS":e.join(" "),
190
- "CL-DRM":Om(b),"CL-DRM-CDM":Pm(b),"CL-DRM-SEC-LEVEL":Rm(b),"CL-DRM-OFFLINE":Qm(b),"CL-DRM-IP":Nm(b)};c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=e);e=_.gh(["https://downloads.castlabs.com/r/register/"]);e.method="GET";e.headers=d;return(new _.ki).fetch(e).N.then(function(f){200===f.status&&c&&window.localStorage.setItem("cl_et",f.headers.etag);return Promise.resolve()})["catch"](function(f){a:{var g=Im(a);f=f.data;var k=f.status;if(g.a&&g.a.ilv)f=Promise.resolve();else{switch(k){case 403:case 404:g=
191
- 7101;var l="castLabs Player license is invalid";if(403===k){k=l;l="";try{l=JSON.parse(decodeURIComponent(f.responseText)).message}catch(m){}f=k+(": "+l)}else f=l+"!";l=f;break;case 412:g=7103;l="userID is required for playback!";break;default:f=Promise.resolve();break a}a.f.error(Ka+l);f=Promise.reject(new _.J(_.K,7,g,l))}}return f})};
192
- S=function(a,b,c){_.Nh.call(this);var d=this;Dm();this.g=new _.D("clpp.Player");if(!a)throw new _.J(_.K,7,7102);this.A=new _.Tf;this.f=this.T=b||_.Si();this.m=null;void 0===this.f.license&&(this.f.license=Qi,this.g.warn("You are using the embedded demo license!"));if(!this.f.license)throw this.g.error("You provided null or empty string as your license. Please check your license configuration."),new _.J(_.K,7,7101,"No license provided in configuration!");this.h=new sm(a,c);this.a=this.w=null;this.G=
193
- new _.ki;this.j=null;this.K=[];this.L={};this.o=null;this.I=!0;this.J=this.D=!1;this.C=this.zc=null;this.be=!1;this.U=new wm(this);this.O=!1;this.B=function(f){(f=f.detail)&&f.currentState===_.Nl&&(d.off(_.he,d.B),Vm(d))};this.on(_.he,function(){d.getState()===_.Kl&&d.unload()});this.on(_.Nb,this.Mf.bind(this));this.on(_.Mb,this.Mf.bind(this));Wm(this,this.f.license);this.h.getMedia()&&(a=this.h.getMedia(),a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),this.g.debug("Removed autoplay attribute from video element. Auto play will be handled by configuration."),
194
- void 0===this.f.autoplay&&(this.f.autoplay=!0,this.g.debug("Setting autoplay in configuration since it was specified in the video element"))));a=[];b=_.t(Xm);for(c=b.next();!c.done;c=b.next()){c=c.value;try{var e=c.create(this.f);e&&a.push(e)}catch(f){this.g.error("Error while creating player plugin",f)}}Ym(this,a);_.Xi.clear()};_.Zm=function(a,b){b!==a.a&&(a.a&&(a.a.removeDelegate(a),a.a.destroy()),a.a=b,a.a&&(a.a.init(a.h,a.f),a.a.setNetworkEngine(a.getNetworkEngine()),a.a.addDelegate(a)))};
195
- Wm=function(a,b){a.w=new Hm(b);a.w.verify()["catch"](function(c){setTimeout(function(){a.g.error(Ka+c);a.trigger(new _.E(_.Vc,{detail:new _.J(_.K,7,7101)}));a.destroy()},1E3)})};
196
- Vm=function(a){if(!a.O){a.O=!0;a.h.getMedia()||a.h.getCastElement();a.w||(a.w=new Hm(a.f.license));var b=Object.keys(a.L);Um(a.w,{getConfiguration:a.getConfiguration.bind(a),vd:a.vd.bind(a),getDrmInfo:a.getDrmInfo.bind(a),ki:function(){return b},isLive:a.isLive.bind(a)}).then(function(){a.g.debug("License verified remotely")})["catch"](function(c){setTimeout(Fm,1E3,{release:a.release.bind(a),destroy:a.destroy.bind(a),onError:a.onError.bind(a)},c)})}};
197
- Ym=function(a,b){a.K=b;for(var c=_.t(a.K),d=c.next();!d.done;d=c.next()){d=d.value;var e=d.id();e&&(a.L[e]=d)}a.gc("onPlayerCreated")};
198
- $m=function(a){var b,c;return _.z(function(d){if(1==d.a){if(a.I)return a.g.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.off(_.he,a.B);a.A.off(a,_.he,a.B);a.A.off(document,Ne);a.trigger(new _.E(_.Xd));a.O=!1;a.h&&a.h.release();return a.j?_.v(d,a.j.dispose(),3):d.H(2)}2!=d.a&&(a.j=null);cj(function(e){e.release()});if(a.a)return b=null,c=a.a.on(_.he,function(e){b=e}),d["return"](a.gc(_.Fd).then(function(){a.a.removeDelegate(a);return Promise.all([a.a.release(),
199
- a.G.release()])}).then(function(){a.g.debug("Releasing player completed");b&&(a.g.debug("Re-post state change event after release"),a.trigger(b))})["finally"](function(){a.a.off(_.he,c);a.trigger(new _.E(Wd))}));a.trigger(new _.E(Wd));return d["return"](new Promise(function(e){return e()}))})};
200
- an=function(a,b,c){return new Promise(function(d,e){var f;if(b){for(var g=f=null,k=0;k<b.length;k++);k=Object.values(_.Nf);for(var l=0;l<b.length;l++)for(var m=0;m<k.length;m++){var n={Gb:k[m],confidence:k[m].canPlay(b[l],c)};if(null===f||f.confidence<n.confidence)f=n,g=l}f&&typeof g===_.zd&&0<f.confidence?(_.Of.debug("Player Factory '"+f.Gb.a()+"' can play",b[g]),f=new Lf(f.Gb,g)):(_.Of.error("No compatible Player Factory found for sources:",b),f=null)}else f=null;f?(g=f.Gb.create(),d(new Mf(g,f.a))):
201
- (f=new _.E(_.Vc,{detail:new _.J(_.K,7,7003)}),a.trigger(f),e(f))})};
202
- _.cn=function(a,b){var c,d,e,f;return _.z(function(g){switch(g.a){case 1:if(a.D)throw Error("Player is already destroyed.");if(!a.h)throw Error("No surface associated with this player!");return _.v(g,a.release(),2);case 2:a.o=_.Rl(b);c=_.Vi(b);a.f=_.Ui(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.H(3);break}return _.v(g,an(a,a.o,a.f),4);case 4:f=g.f,d=f.a,e=f.f,a.J=!1;case 3:d?_.Zm(a,
203
- d):a.a.addDelegate(a);bn(a);a.a&&a.a.setCdnErrorCallback(a.C);a.j=gm(a,a.f).create(a);a.setSourceIndex(e);if(a.f.pauseWhenInBackground)a.A.on(document,Ne,function(){document.hidden?(a.g.debug("Player is hidden: pausing..."),a.pause()):(a.g.debug("Player is visible: resuming..."),a.play())});cj(function(k){k.Vb()});return _.v(g,a.gc("onContentWillLoad",a.f.source[e]),0)}})};
204
- _.dn=function(a){return _.z(function(b){a.h.getMedia()||a.h.getCastElement();a.A.on(a,_.he,a.B);a.trigger(new _.E(kd));return _.v(b,Promise.all([a.a.load(a.f),a.j.load()]),0)})};en=function(a){var b=_.wh(a.f.preferredTextLanguage).filter(function(d){return d}),c=a.getTrackManager().ea();b.some(function(d){var e=_.sh(d);return(d=c.find(function(f){f=_.sh(f.language||"");return _.th(f,e)}))?(a.getTrackManager().ua(d),!0):!1})};
205
- _.fn=function(a){var b,c,d,e;return _.z(function(f){if(1==f.a){b=[];if(a.f.remoteTextTracks)for(c=_.t(a.f.remoteTextTracks),d=c.next();!d.done;d=c.next())e=d.value,b.push(a.getTrackManager().addTextTrack(e));return _.v(f,Promise.all(b),2)}return 3!=f.a?(en(a),cj(function(){}),_.v(f,a.gc(_.Cd),3)):a.f.autoplay?_.v(f,a.play(),0):f.H(0)})};bn=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.z(function(c){if(!a.zc||!a.be)return c.H(0);a.be=!1;return _.v(c,a.zc(b),0)})})};
206
- _.gn=function(a){a&&(0<=Xm.indexOf(a)||Xm.push(a))};U=function(){};hn=function(){};jn=function(){};kn=function(){};fm=function(){};ln=function(){};_.mn=function(){};nn=function(){this.a=null};on=function(){};pn=function(){this.size=0;this.a=void 0};qn=function(){};rn=function(){};sn=function(){this.a=this.f=null};
207
- tn=function(a,b){this.keySystem=a;if(a.startsWith(_.Dc))for(var c=_.t(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.Zd)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.Id,distinctiveIdentifier:_.Id,initDataTypes:e.initDataTypes,sessionTypes:[re],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var k=_.t(e.audioCapabilities),l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&
208
- (d.audioCapabilities.push(l),g=!0));if(e.videoCapabilities)for(e=_.t(e.videoCapabilities),l=e.next();!l.done;l=e.next())k=l.value,k.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,k.contentType.split(";")[0])&&(d.videoCapabilities.push(k),g=!0));f||(g=WebKitMediaKeys.isTypeSupported(this.keySystem,_.Je));d=g?d:null}if(d){this.a=d;return}}c=Error(ob);c.name=Wa;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
209
- un=function(a){_.Jf("AppleEmeManager.MediaKeys");this.f=null;this.g=new WebKitMediaKeys(a);this.a=new _.Tf};
210
- vn=function(a,b){a.f=b;_.Zf(a.a);if(!b)return Promise.resolve();a.a.on(b,Sc,function(c){_.Jf("AppleEmeManager.cancelNativeMediaEncryptedEvent_",c);c instanceof MediaEncryptedEvent&&(_.If("Cancel native MediaEncryptedEvent when using Apple-prefixed EME"),c.stopImmediatePropagation())});a.a.on(b,Ve,function(c){_.Jf("AppleEmeManager.onWebkitNeedKey_",c);c=_.Q(c.initData);if(_.Og(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");c=_.Tg(c.subarray(4),!0);c=_.Vg(c);
211
- var d=new Event(Sc);d.initDataType="skd";d.initData=Pg(c);a.f.dispatchEvent(d)});yl(b,HTMLMediaElement.HAVE_METADATA,a.a,function(){return b.webkitSetMediaKeys(a.g)});return Promise.resolve()};wn=function(a){_.Jf("AppleEmeManager.MediaKeySession");_.Nh.call(this);this.g=null;this.j=a;this.a=this.f=null;this.h=new _.Tf;this.sessionId="";this.expiration=NaN;this.closed=new _.Oh;this.keyStatuses=new pn};xn=function(a,b){var c=a.keyStatuses;c.size=void 0===b?0:1;c.a=b;a.dispatchEvent(new _.E(cd))};
212
- yn=function(){};zn=function(){this.f=this.a=null;this.g="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.g="webkit")};
213
- An=function(a,b,c,d){this.g=a;this.a=this.keySystem=c;a=!1;c===_.Jd&&(this.a=Re,a=!1);var e=!1;d=_.t(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=[],k=[],l=!1;if(f.audioCapabilities)for(var m=_.t(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=_.t(f.videoCapabilities),n=g.next();!n.done;n=g.next())m=n.value,m.contentType&&(l=!0,b.canPlayType(m.contentType,
214
- this.a)&&(k.push(m),e=!0));l||(e=b.canPlayType(_.Je,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.Zd||a||(e=!1);if(e){this.f=f;return}}b=ob;if(c===_.Jd||c===_.Fc)b="None of the requested configurations were supported.";c=Error(b);c.name=Wa;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};Bn=function(a,b){this.g=a;this.m=b;this.a=null;this.f=new _.Tf;this.h=[];this.j=new Map};
215
- En=function(a,b){a.a=b;_.Zf(a.f);b&&(a.f.on(b,a.g+"needkey",function(c){var d=new Event(Sc);d.initDataType=_.pc;d.initData=Pg(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.g+"keymessage",function(c){var d=Cn(a,c.sessionId);d?(c=new _.E(nd,{messageType:void 0===d.keyStatuses.a?fd:ed,message:c.message}),_.Jf("WebkitEmeManager.MediaKeySession.generated"),d.f&&(d.f.resolve(),d.f=null),d.dispatchEvent(c)):_.Kf("Session not found",c.sessionId)}),a.f.on(b,a.g+"keyadded",function(c){if(c=Cn(a,c.sessionId))_.Jf("WebkitEmeManager.MediaKeySession.ready"),
216
- Dn(c,"usable"),c.a&&c.a.resolve(),c.a=null}),a.f.on(b,a.g+"keyerror",function(c){var d=Cn(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?Dn(d,_.Kd):1===e?Dn(d,"expired"):Dn(d,_.bd))}}))};
217
- Cn=function(a,b){var c=a.j.get(b);return c?c:(c=a.h.shift())?(c.sessionId=b,a.j.set(b,c),c):null};Fn=function(a,b,c,d){_.Nh.call(this);this.o=a;this.h=b;this.m=!1;this.a=this.f=null;this.g=c;this.j=d;this.sessionId="";this.expiration=NaN;this.closed=new _.Oh;this.keyStatuses=new pn};
218
- Hn=function(a,b,c){if(a.m)return Promise.reject(Error("The session is already initialized."));a.m=!0;try{if(a.j===_.Nd)if(c)var d=_.Q(_.Vg("LOAD_SESSION|"+c));else{var e=_.Vg("PERSISTENT|"),f=new Uint8Array(e.byteLength+b.byteLength);f.set(e,0);f.set(_.Q(b),e.byteLength);d=f}else d=_.Q(b)}catch(k){return Promise.reject(k)}a.f=new _.Oh;var g=Gn(a,"generateKeyRequest");try{a.h[g](a.g,d)}catch(k){if(k.name!==Ja)return a.f=null,Promise.reject(k);(new _.oh(function(){try{a.h[g](a.g,d)}catch(l){a.f.reject(l),
219
- a.f=null}})).$(.01)}return a.f};In=function(a,b,c){if(a.a)a.a.then(function(){return In(a,b,c)})["catch"](function(){return In(a,b,c)});else{a.a=b;if(a.g===Re){var d=_.Rg(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=_.gj(e.keys[0].k);e=_.gj(e.keys[0].kid)}else d=_.Q(c),e=null;var f=Gn(a,"addKey");try{a.h[f](a.g,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};
220
- Dn=function(a,b){var c=a.keyStatuses;c.size=void 0===b?0:1;c.a=b;a.dispatchEvent(new _.E(cd))};Gn=function(a,b){return a.o?a.o+b.charAt(0).toUpperCase()+b.slice(1):b};Jn=function(){};
221
- Kn=function(a,b,c,d,e){_.vj.call(this,Ga);this.m=a;this.j=b;this.h=c;this.f=d;this.o=e;this.a=new _.D(xc);_.ah(this.m)?this.a.warn(_.rb):this.Fa(_.Fc,{licenseUrl:this.m,videoRobustness:[_.gb,void 0],audioRobustness:[_.fb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.Zc.bind(this)}});_.ah(this.j)?this.a.warn(_.Xa):this.Fa(_.Ec,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.Zc.bind(this)}});
222
- _.ah(this.h)?this.a.warn(_.Da):_.ah(this.f)?this.a.warn(_.Ca):this.Fa(_.Dc,{licenseUrl:this.h,certificateUrl:this.f,modifiers:{licenseRequest:this.Qf.bind(this),licenseResponse:this.Rf.bind(this),certificateRequest:this.Zc.bind(this),extractContentId:this.wf.bind(this)}})};Ln=function(){this.l=null};Mn=function(a){var b=a.type.replace(/^(webkit|moz|MS)/,"").toLowerCase();if(typeof Event===_.Yc)var c=new Event(b,a);else c=document.createEvent("Event"),c.initEvent(b,a.bubbles,a.cancelable);a.target.dispatchEvent(c)};
223
- Nn=function(a){a=a.target;if(a.webkitPresentationMode===Od){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)};On=function(){return this.webkitSupportsPresentationMode(Od)?(this.webkitSetPresentationMode(Od),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
224
- Pn=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};Qn=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};Rn=function(a,b,c){return new window.TextTrackCue(a,b,c)};
225
- Sn=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};Un=function(a,b,c){if("input"===a)switch(this.type){case "range":a=rc}Tn.call(this,a,b,c)};Wn=function(){this.a=Vn()};Xn=function(a){return Vn()-a.a};Yn=function(a){var b=new Wn;b.a=a.a;return b};Vn=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};_.Zn=function(a){this.f=a;this.a=0};
226
- _.$n=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};_.ao=function(a){var b=[];a=_.t(a);for(var c=a.next();!c.done;c=a.next()){c=_.t(c.value.variants);for(var d=c.next();!d.done;d=c.next())b.push(d.value)}return b};bo=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.g=b;this.f=0};
227
- co=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};_.eo=function(a,b,c){this.f=a;this.g=b;this.h=c||this.f.getMedia();this.a=null};_.go=function(){this.a=new Blob([fo],{type:_.Je})};_.io=function(a,b,c,d){var e,f;return _.z(function(g){if(1==g.a)return _.qf(g,2),_.v(g,ho(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.sf(g);f.a(_.K);throw f;})};
228
- ho=function(a,b,c,d){var e,f,g,k;return _.z(function(l){if(1==l.a){if(d){if(e=_.jo[d.toLowerCase()])return l["return"](e);_.B("Could not determine manifest type using MIME type ",d)}if(f=_.ko(a)){if(g=_.lo[f])return l["return"](g);_.B("Could not determine manifest type for extension ",f)}else _.B("Could not find extension for ",a);return d?l.H(2):_.v(l,mo(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(k=_.jo[d])return l["return"](k);_.B("Could not determine manifest type using MIME type",d)}throw new _.J(_.K,4,
229
- 4E3,{url:a});})};mo=function(a,b,c){var d,e,f;return _.z(function(g){if(1==g.a)return d=_.gh(a),eh(d,c),d.type=1,d.method="HEAD",_.v(g,b.fetch(d).N,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.ko=function(a){a=(new _.Uh(a)).ma.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()};no=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.g=new Wn};
230
- po=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(oo(a,d),jh(c,d.byteLength,Xn(a.g)),a.g.a=Vn());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 po(a,b,c)})})};oo=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};
231
- ii=function(a){var b=a.uris[a.uriIndex],c=new qo,d=new Wn,e=Yn(d),f=0,g=new _.Oh;c.open(a.method,b,!0);c.responseType="arraybuffer";c.timeout=a.timeout;c.withCredentials=a.allowCrossSiteCredentials;var k=!1,l=!1;c.onreadystatechange=function(n){n=n.target;n.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!k&&(n=n.getResponseHeader(oa),ih(a,n),k=!0)};c.onload=function(n){n=n.target;var p=(n.getAllResponseHeaders()||"").trim().split("\r\n"),q={};p=_.t(p);for(var r=p.next();!r.done;r=p.next())r=r.value.split(": "),
232
- q[r[0].toLowerCase()]=r.slice(1).join(": ");try{var x=Xn(e);l||jh(a,n.response?n.response.length:0,x);var y=_.hh(q,n.response,n.status,b,n.responseURL,a,x);a.rateLimitBps?kh(a.rateLimitBps,Xn(e),a.bytesLoaded).then(function(){g.resolve(y)}):g.resolve(y)}catch(C){g.reject(C)}};c.onerror=function(n){n=n.target;if(0>=n.status)g.reject(new _.J(1,1,1002,{url:b,request:a,status:n.status}));else{var p=n.getAllResponseHeaders(),q={};if(p){p=_.t(p.trim().split("\r\n"));for(var r=p.next();!r.done;r=p.next())r=
233
- r.value.split(": "),q[r[0].toLowerCase()]=r.slice(1).join(": ")}n=_.hh(q,n.response,n.status,b,n.responseURL,a,Xn(e));g.resolve(n)}};c.ontimeout=function(){g.reject(new _.J(1,1,1003,{url:b,request:a}))};c.onprogress=function(n){var p=Xn(d);d.a=Vn();if(100<p||n.lengthComputable&&n.loaded===n.total)jh(a,n.loaded-f,p),f=n.loaded,l=!0};for(var m in a.headers)c.setRequestHeader(m.toLowerCase(),a.headers[m]);c.send(a.body);return{N:g,request:a,abort:function(){c.abort();g.reject(new _.J(1,1,7001,{url:b,
234
- request:a}));return Promise.resolve()}}};ro=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.h=new bo(a);this.length=a;this.w=b;this.f=this.a=this.g=0;this.j=null;this.m=-1;this.o=new Wn};
235
- uo=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,Xn(a.o)),a.o.a=Vn());if(f)return f=so(a),(f=c(!0,f))?f.then(function(){return a.h.a.buffer}):Promise.resolve(a.h.a.buffer);var g=Promise.resolve();if(null!=e){co(a.h,e);a.a=a.g;a.f=a.h.f;a.j=new DataView(a.h.a.buffer,0,a.h.f);e=to(a);for(f=[];e;)f.push(e),e=to(a);if(!a.w)f.forEach(function(m){g=g.then(function(){return c(!1,m)})});else if(0<f.length){e=f[0];if(1<f.length){e=f[0];var k=f[f.length-1],
236
- l=k.end-e.start;e={start:e.start,end:k.end,length:l,data:new DataView(a.h.a.buffer,e.start,l),count:f.length}}(f=c(!1,e))&&(g=f)}}return g.then(function(){return uo(a,b,c,d)})})};to=function(a){if(0<=a.m&&a.f<a.m)return null;for(var b=vo(a);null!==b;){if(b.name===_.ld){var c={start:a.g,end:b.end,length:b.end-a.g,data:new DataView(a.h.a.buffer,a.g,b.end-a.g),count:1};a.g=b.end;return c}b=vo(a)}return null};
237
- vo=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=wo(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=wo(a);d=String.fromCharCode(d>>24&255,d>>16&255,d>>8&255,d&255);switch(c){case 0:c=a.f-b;break;case 1:if(a.a+8>=a.f)return a.a=a.f,null;try{var e=a.j.getUint32(a.a,!1);var f=a.j.getUint32(a.a+4,!1)}catch(g){throw new _.J(_.K,3,3E3);}if(2097151<e)throw new _.J(_.K,3,3E3);a.a+=8;c=e*Math.pow(2,32)+f}c=b+c;a.m=c;return a.f>=c?(a.a=c,{name:d,start:b,end:c}):null};
238
- wo=function(a){var b=a.j.getUint32(a.a,!1);a.a+=4;return b};so=function(a){var b=null;a.g!==a.f&&(b={start:a.g,end:a.f,length:a.f-a.g,data:new DataView(a.h.a.buffer,a.g,a.f-a.g),count:-1});return b};yo=function(a){_.Ph.call(this,new _.Oh,function(){return Promise.resolve()});this.A=a;this.g=null;this.o=this.N;this.f=-1;this.h=this.j=this.m=null;xo(this)};zo=function(a,b,c){a.m=setTimeout(b,c)};
239
- xo=function(a){a.g=a.A.then(function(e){a.h=e.request;e.request.uriIndex=e.request.currentAttempt%e.request.uris.length;if(0<e.request.currentAttempt){-1===a.f&&(a.f=Ao(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*Ao(e.request.fuzzFactor,.5));a.f*=Ao(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,k){a.j=k;zo(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.J(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
240
- 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.N}).then(function(e){a.o.resolve(e)})["catch"](function(e){if(e instanceof _.J){if((1===e.severity||b<d)&&7001!==e.code&&b<c)return xo(a);7001!==e.code&&e.a(_.K);a.o.reject(e)}else a.o.reject(e)})};Ao=function(a,b){return null===a||void 0===a?b:a};
241
- ji=function(a){var b=new Bo,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new Co,e={Nc:!1,kg:!1};b={N:Do(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.Nc||(e.Nc=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.kg=!0;d.abort()},a);b.N=b.N["finally"](function(){window.clearTimeout(f)})}return b};
242
- Do=function(a,b,c,d){var e,f,g,k,l,m,n,p,q,r,x,y,C,I,F;return _.z(function(G){switch(G.a){case 1:return e=Eo,k=new Wn,l=Yn(k),_.qf(G,2),_.v(G,e(a,c),4);case 4:f=G.f;m=f.headers.get(oa);ih(b,m);n=m?parseInt(m,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return r=f.body.getReader(),x=new ro(n,!b.disableMergedFragments),y=function(M,O){if(d.Nc)return null;O&&O.data&&(jh(b,O.data.byteLength,Xn(k)),k.a=Vn());return b.onFragment&&O?b.rateLimitBps?kh(b.rateLimitBps,Xn(l),b.bytesLoaded).then(function(){return b.onFragment(O)}):
243
- b.onFragment(O):null},_.v(G,uo(x,r,y,b.onProgress),10);p=f.body.getReader();q=new no(n);return _.v(G,po(q,p,b),7);case 7:g=G.f;if(!b.rateLimitBps){G.H(6);break}return _.v(G,kh(b.rateLimitBps,Xn(l),g.byteLength),6);case 10:g=G.f;case 6:_.rf(G,3);break;case 2:C=_.sf(G);if(d.Nc)throw new _.J(1,1,7001,{url:a,request:b});if(d.kg)throw new _.J(1,1,1003,{url:a,request:b});_.Kf("Error while fetching data:",C);throw new _.J(1,1,1002,{url:a,error:C,request:b,status:-1},C);case 3:I={};F=f.headers;F.forEach(function(M,
244
- O){I[O.trim()]=M});if(d.Nc)throw new _.J(1,1,7001,{url:a,request:b});return G["return"](_.hh(I,g,f.status,a,f.url,b,Xn(l)))}})};ei=function(a){try{var b=a.uris[a.uriIndex],c=_.Fo(b);return{N:Promise.resolve({uri:b,data:c.data,request:a,headers:{"content-type":c.contentType}}),request:a,abort:function(){return Promise.resolve()}}}catch(d){return{N:Promise.reject(d),request:a,abort:function(){return Promise.resolve()}}}};
245
- _.Fo=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.Kf("Bad data URI, failed to parse scheme"),new _.J(_.K,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.Kf("Bad data URI, failed to extract encoding and MIME type"),new _.J(_.K,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?_.gj(a).buffer:_.Vg(a).buffer,contentType:c}};_.Ho=function(a){delete _.Go[a]};
246
- _.Jo=function(a){a=a.getConfiguration();a=_.H.ya(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.le?a.backgroundColor:null;this.Y=typeof a.windowColor===_.le?a.windowColor:null;this.T=typeof a.fontColor===_.le?a.fontColor:null;this.U=typeof a.fontFamily===_.le?a.fontFamily:null;this.I=typeof a.fontSize===_.le?a.fontSize:null;this.D=typeof a.fontSizePercent===_.zd?a.fontSizePercent:null;this.G=typeof a.edgeColor===_.le?a.edgeColor:"rgba(0, 0, 0, 1)";this.B=_.Io;typeof a.edgeType===
247
- _.le&&(this.B=a.edgeType)};_.Oo=function(a){var b=_.yd,c=a.G;switch(a.B){case Ko:b="-2px -2px 0 "+c+", -1px -1px 0 "+c;break;case Lo:b="2px 2px 0 "+c+", 1px 1px 0 "+c;break;case Mo:b="-1px 0 "+c+", 0 1px "+c+", 1px 0 "+c+", 0 -1px "+c;break;case No:b="2px 2px 3px "+c+", 2px 2px 4px "+c+", 2px 2px 5px "+c}return b};Po=function(a){this.g=a;this.a=null;this.f=new _.D("clpp.text.Mp4TextParser")};
248
- _.Ro=function(a){_.Jo.call(this,a);this.j=a.getSurface().getMedia();this.f="clpp-video-"+Qo++;this.g=document.createElement(_.ne);this.h=this.m=!1;_.im(this.j,this.f);document.head.appendChild(this.g);this.jb()};So=function(){};_.To=function(){};bf=typeof Object.create==_.Yc?Object.create:function(a){function b(){}b.prototype=a;return new b};
249
- if(typeof Object.setPrototypeOf==_.Yc)Uo=Object.setPrototypeOf;else{var Vo;a:{var Wo={qg:!0},Xo={};try{Xo.__proto__=Wo;Vo=Xo.qg;break a}catch(a){}Vo=!1}Uo=Vo?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
250
- var ef=Uo,jf=typeof Object.defineProperties==_.Yc?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},gf="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;kf.prototype.toString=function(){return this.a};var hf=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new kf("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
251
- nf.prototype.w=function(a){this.f=a};nf.prototype["return"]=function(a){this.g={"return":a};this.a=this.j};nf.prototype.H=function(a){this.a=a};
252
- zf("Promise",function(a){function b(g){this.f=0;this.j=void 0;this.a=[];var k=this.g();try{g(k.resolve,k.reject)}catch(l){k.reject(l)}}function c(){this.a=null}function d(g){return g instanceof b?g:new b(function(k){k(g)})}if(a)return a;c.prototype.f=function(g){if(null==this.a){this.a=[];var k=this;this.g(function(){k.j()})}this.a.push(g)};var e=gf.setTimeout;c.prototype.g=function(g){e(g,0)};c.prototype.j=function(){for(;this.a&&this.a.length;){var g=this.a;this.a=[];for(var k=0;k<g.length;++k){var l=
253
- g[k];g[k]=null;try{l()}catch(m){this.h(m)}}}this.a=null};c.prototype.h=function(g){this.g(function(){throw g;})};b.prototype.g=function(){function g(m){return function(n){l||(l=!0,m.call(k,n))}}var k=this,l=!1;return{resolve:g(this.B),reject:g(this.h)}};b.prototype.B=function(g){if(g===this)this.h(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.C(g);else{a:switch(typeof g){case _.Ad:var k=null!=g;break a;case _.Yc:k=!0;break a;default:k=!1}k?this.A(g):this.m(g)}};
254
- b.prototype.A=function(g){var k=void 0;try{k=g.then}catch(l){this.h(l);return}typeof k==_.Yc?this.D(k,g):this.m(g)};b.prototype.h=function(g){this.o(2,g)};b.prototype.m=function(g){this.o(1,g)};b.prototype.o=function(g,k){if(0!=this.f)throw Error("Cannot settle("+g+", "+k+"): Promise already settled in state"+this.f);this.f=g;this.j=k;this.w()};b.prototype.w=function(){if(null!=this.a){for(var g=0;g<this.a.length;++g)f.f(this.a[g]);this.a=null}};var f=new c;b.prototype.C=function(g){var k=this.g();
255
- g.jd(k.resolve,k.reject)};b.prototype.D=function(g,k){var l=this.g();try{g.call(k,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,k){function l(q,r){return typeof q==_.Yc?function(x){try{m(q(x))}catch(y){n(y)}}:r}var m,n,p=new b(function(q,r){m=q;n=r});this.jd(l(g,m),l(k,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.jd=function(g,k){function l(){switch(m.f){case 1:g(m.j);break;case 2:k(m.j);break;default:throw Error("Unexpected state: "+
256
- m.f);}}var m=this;null==this.a?f.f(l):this.a.push(l)};b.resolve=d;b.reject=function(g){return new b(function(k,l){l(g)})};b.race=function(g){return new b(function(k,l){for(var m=_.t(g),n=m.next();!n.done;n=m.next())d(n.value).jd(k,l)})};b.all=function(g){var k=_.t(g),l=k.next();return l.done?d([]):new b(function(m,n){function p(x){return function(y){q[x]=y;r--;0==r&&m(q)}}var q=[],r=0;do q.push(void 0),r++,d(l.value).jd(p(q.length-1),n),l=k.next();while(!l.done)})};return b});var Bf=this||self;
257
- Bf.a=!0;_.H={pg:20,ya:function(a){var b=_.H.R,c=_.H.Gf,d=_.H.Sa;return b(a)||c(a)?a:d(a)}};_.A("clpp.utils.obj.cloneItem",_.H.ya);_.H.Sa=function(a){for(var b={},c=0;c<arguments.length;c++)null!==arguments[c]&&void 0!==arguments[c]&&(b=_.H.If(b,{merging:arguments[c]}));return b.merging};_.A("clpp.utils.obj.merge",_.H.Sa);
258
- _.H.If=function(a,b,c){var d=_.H.R,e=_.H.Gf,f=_.H.If,g=_.H.tb,k=_.H.si,l=_.H.pi,m=_.H.Ec;c=c+1||1;if(d(a)||!m(a))a={};for(var n in b)m=b[n],e(m)||d(m)||g(m)?a[n]=m:k(m)?a[n]=m.subarray(0):m instanceof Array?a[n]=f([],m):!d(m)&&l(m)&&c<_.H.pg&&(a[n]=f(a[n],m,c));return a};_.H.Gf=function(a){a=typeof a;return a===_.le||a===_.zd||a===_.hc};_.H.R=function(a){return null===a||"undefined"===typeof a};_.H.Ec=function(a){return typeof a===_.Ad};_.H.tb=function(a){return typeof a===_.Yc};
259
- _.H.Z=function(a){return typeof a===_.le};_.H.la=function(a){return typeof a===_.zd};_.H.Ef=function(a){return typeof a===_.hc};_.H.si=function(a){var b=_.H.Ec,c=_.H.tb;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};_.H.pi=function(a){var b=_.H.Ec,c=_.H.R;return!c(a)&&b(a)&&a.constructor===Object};
260
- _.H.Oa=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||!_.H.Ec(a)||!_.H.Ec(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var k=e[g];if(_.H.R(d)||0>d.indexOf(k))if(f[k]=!0,a[k]!==b[k])return!1}if(_.H.R(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.H.R(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
261
- _.H.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.H.Ye=function(a){for(var b=new Map,c=_.t(Object.keys(a)),d=c.next();!d.done;d=c.next())d=d.value,b.set(d,a[d]);return b};_.H.Ze=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};var Ff={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.A("clpp.log.Level",Ff);var Df=3,Cf={},Yo=[];_.A("clpp.log.getLoggers",function(){return _.H.ya(Cf)});_.A("clpp.log.addInterceptor",function(a){a&&Yo.push(a)});_.A("clpp.log.removeInterceptor",function(a){a&&(a=Yo.indexOf(a),0<=a&&Yo.splice(a,1))});_.A("clpp.log.getTagLevel",Ef);_.A("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Cf[a]});_.A("clpp.log.setTagLevel",function(a,b){a&&(_.H.Z(b)&&(b=Gf(b)),Cf[a]=b)});
262
- _.A("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.H.Z(a)&&(a=Gf(a));Df=a});_.A("clpp.log.getLogLevel",function(){return Df});_.h=_.D.prototype;
263
- _.h.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=Ef(this.a);if(0<=d){if(d<c)return}else if(Df<c)return;this.a&&Array.prototype.unshift.call(arguments,"["+this.a+"]");d=new Date;d.toISOString&&(d=d.toISOString().substring(11).replace("Z",""),Array.prototype.unshift.call(arguments,d));4===c?console.log.apply(console,arguments):3===c?console.info.apply(console,arguments):2===c?console.warn.apply(console,arguments):
264
- 1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.t(Yo);for(var e=d.next();!e.done;e=d.next())e=e.value,e.call(e,c,arguments)}};_.h.info=function(a){Array.prototype.unshift.call(arguments,3);this.log.apply(this,arguments)};_.h.debug=function(a){Array.prototype.unshift.call(arguments,4);this.log.apply(this,arguments)};_.h.warn=function(a){Array.prototype.unshift.call(arguments,2);this.log.apply(this,arguments)};
265
- _.h.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.h.Th=function(a){return a?this.a?new _.D(this.a+"."+a):new _.D(a):this};_.A("clpp.log.Logger",_.D);_.D.prototype.createChild=_.D.prototype.Th;_.D.prototype.error=_.D.prototype.error;_.D.prototype.warn=_.D.prototype.warn;_.D.prototype.debug=_.D.prototype.debug;_.D.prototype.info=_.D.prototype.info;_.D.prototype.log=_.D.prototype.log;var Hf=new _.D("clpp");_.A("clpp.log.info",_.If);
266
- _.A("clpp.log.debug",_.Jf);_.A("clpp.log.warn",_.B);_.A("clpp.log.error",_.Kf);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.Of=new _.D("clpp.players");_.Nf={};_.Qf.prototype.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.Qf.prototype.get=function(a){return(a=this.a[a])?a.slice():[]};_.Qf.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};_.Qf.prototype.clear=function(){this.a={}};Rf.prototype.Qb=function(a){try{this.wc.handleEvent?this.wc.handleEvent(a):this.wc.call(this.a,a)}catch(b){_.Kf("clpp","Uncaught exception in event handler for event '"+this.f+"'",b,b?b.message:null,b?b.stack:null)}};_.E.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};_.E.prototype.stopImmediatePropagation=function(){this.f=!0};_.E.prototype.stopPropagation=function(){};_.h=Sf.prototype;
267
- _.h.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].Qb(a),b[c].vj&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.h.on=function(a,b,c){this.a.push(a,new Rf(a,b,c||this.f));return b};_.h.one=function(a,b,c){this.a.push(a,new Rf(a,b,c||this.f,!0));return b};_.h.off=function(a,b){var c=this.a.get(a),d=!1;if(c)for(var e=0;e<c.length;e++)c[e].wc===b&&(d=this.a.remove(a,c[e])||d);return d};_.h.clear=function(){this.a.clear()};
268
- _.A("clpp.EventBus",Sf);Sf.prototype.clear=Sf.prototype.clear;Sf.prototype.off=Sf.prototype.off;Sf.prototype.one=Sf.prototype.one;Sf.prototype.on=Sf.prototype.on;Sf.prototype.trigger=Sf.prototype.trigger;_.Tf.prototype.release=function(){_.Zf(this)};_.Tf.prototype.on=function(a,b,c,d){a=new $f(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.Tf.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)};_.Tf.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||(Wf(f),this.a.remove(b,f))}};ag.prototype.release=function(){this.f.release();this.g=[];this.a=null};ag.prototype.destroy=function(){var a=this;return _.z(function(b){a.release();a.j=null;a.h=null;_.w(b)})};ag.prototype.getTimelineCues=function(){return this.g};_.A("clpp.text.Cue",_.qg);_.qg.positionAlign={LEFT:_.gd,RIGHT:_.hd,CENTER:_.qc,AUTO:"auto"};_.kg=_.se;_.qg.payloadType={TEXT:_.kg,VTT_XML:_.Oe,TTML_XML:_.xe};_.lg=_.qc;_.Zo={LEFT:_.dd,RIGHT:_.ae,CENTER:_.lg,START:_.dd,END:_.ae};_.qg.textAlign=_.Zo;var pg="ltr";_.qg.direction={HORIZONTAL_LEFT_TO_RIGHT:pg,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.mg="horizontal-tb";_.qg.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.mg,VERTICAL_LEFT_TO_RIGHT:_.Fe,VERTICAL_RIGHT_TO_LEFT:_.Ge};_.ng=0;
269
- _.qg.lineInterpretation={LINE_NUMBER:_.ng,PERCENTAGE:1};_.og=_.ge;_.$o={CENTER:_.qc,START:_.og,END:_.Tc};_.qg.lineAlign=_.$o;_.A("clpp.text.CueRegion",_.tg);_.rg=1;_.tg.units={PX:0,PERCENTAGE:_.rg,LINES:2};var sg="";_.tg.scrollMode={NONE:sg,UP:"up"};_.tg.displayAlign={BEFORE:"flex-end",CENTER:_.qc,AFTER:"flex-start"};_.tg.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Bc,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};ug.prototype.destroy=function(){this.a.release();this.h=!1;this.j=this.a=this.g=this.f=null;return Promise.resolve()};ug.prototype.start=function(a){var b=this;this.h?this.m.warn("Already started. Ignoring request..."):(this.h=!0,this.g=a,this.f=this.g.textTracks,this.a.on(this.f,_.Kb,function(c){return vg(b,c)}),this.a.on(this.f,rc,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.de&&(e.mode=_.$c)}}))};
270
- ug.prototype.o=function(a){var b=new _.qg(a.startTime,a.endTime,a.text,_.Oe);if(_.H.Z(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Fe;break;case "rl":b.writingMode=_.Ge}_.H.la(a.size)&&(b.size=a.size);if(_.H.Z(a.align))switch(a.align){case _.dd:case _.ge:b.textAlign=_.dd;break;case _.qc:b.textAlign=_.lg;break;case _.ae:case _.Tc:b.textAlign=_.ae}_.H.la(a.position)&&(b.position=a.position);if(_.H.Z(a.positionAlign))switch(a.positionAlign){case _.gd:b.positionAlign=_.gd;break;case _.qc:b.positionAlign=
271
- _.qc;break;case _.hd:b.positionAlign=_.hd}_.H.la(a.line)&&(b.line=a.line);if(_.H.Z(a.lineAlign))switch(a.lineAlign){case _.ge:b.lineAlign=_.og;break;case _.qc:b.lineAlign=_.qc;break;case _.Tc:b.lineAlign=_.Tc}_.H.Ef(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.ng:1);return b};_.u(_.J,Error);_.J.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=wg(this.severity,this.category,this.code,this.data))};_.J.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.A("clpp.Error",_.J);_.K=2;_.J.Severity={RECOVERABLE:1,FATAL:_.K};_.J.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
272
- _.J.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,
143
+ _.sl=function(a,b){try{a.a.debug("Attempting to load an offline session",b);var c=a.I.createSession(_.Nd)}catch(f){var d=new _.K(_.M,6,6005,{browserError:f.message});a.S(d);return Promise.reject(d)}a.A.on(c,qd,a.Wf.bind(a));a.A.on(c,fd,a.Sf.bind(a));var e={initData:null,loaded:!1,xe:Infinity,kb:null,periodId:null,sd:[],keyId:null,initDataType:null,Wb:null,sessionContext:{ldlDelay:0,customData:{}}};a.g.set(c,e);return c.load(b).then(function(f){if(a.j)return null;a.a.debug("Loaded offline session",
144
+ b,f);if(!f)return a.g["delete"](c),a.S(new _.K(_.M,6,6013)),null;e.loaded=!0;wl(a)&&(a.o||a.a.info(va),a.o=!0,a.C=!1,a.G.resolve());return c},function(f){a.j||(a.g["delete"](c),a.S(new _.K(_.M,6,6005,{browserError:f.message})))})};xl=function(a,b,c,d){if(!b&&c!==_.ee)return!1;d=b||dk(d);a=_.u(a.g.values());for(var e=a.next();!e.done;e=a.next())if(e=e.value,b&&e.keyId===b||c===_.ee&&(e.keyId||dk(e.initData))===d)return!0;return!1};
145
+ rl=function(a,b,c,d,e,f,g){f=void 0===f?null:f;g=void 0===g?!1:g;var k,l,m,n,p,q,r,x,y,C,H,F,E,L,O,S,ra,W;_.A(function(ca){switch(ca.a){case 1:if(!e.length)return ca["return"]();k=b||yl(a,d,e,f);if(g){ca.H(2);break}if(!xl(a,k,d,e)){ca.H(2);break}l=!0;m=_.u(a.g.keys());n=m.next();case 4:if(n.done){ca.H(6);break}p=n.value;q=a.g.get(p);if(!k||q.keyId!==k||"skd"!==d){ca.H(5);break}a.a.warn("Close and re-open session for "+k);return _.w(ca,p.close(),8);case 8:l=!1;case 5:n=m.next();ca.H(4);break;case 6:if(l)return a.a.warn("Skip creating a new session for "+
146
+ k),ca["return"]();case 2:try{x=a.D?_.Nd:se,r=a.I.createSession(x),a.a.info("Created new "+x+" session for Key ID: '"+k+"'. Init data type: "+(d+"."))}catch(fa){return a.S(new _.K(_.M,6,6005,{browserError:fa.message})),ca["return"]()}a.A.on(r,qd,a.Wf.bind(a));a.A.on(r,fd,a.Sf.bind(a));y={Wb:f,sd:[],initData:e,initDataType:d,keyId:k,loaded:!1,xe:Infinity,periodId:c,kb:null,sessionContext:{ldlDelay:0,customData:{}}};f&&(C=a.g.get(f),y.sessionContext=C.sessionContext);a.g.set(r,y);H=_.J;F=H.fb;E=a.m.getConfiguration();
147
+ L=a.keySystem();O=a.h.Ma[L];ra=(S=O.modifiers)&&S.transformInitData;F(ra)||(ra=zl);try{e=ra({playerConfig:E,initData:e,initDataType:d,drmInfo:a.f,drmSystemConfig:O,sessionContext:y.sessionContext,emeApi:a.w.Pc()})}catch(fa){return W=fa,fa instanceof _.K||(W=new _.K(_.M,6,6016,fa)),a.S(W),ca["return"]()}a.a.debug("Generate License Request for key ID: '"+k+"'");r.generateRequest(d,e.buffer)["catch"](function(fa){if(!a.j){var qa=null;fa.errorCode&&fa.errorCode.systemCode&&(qa=fa.errorCode.systemCode,
148
+ 0>qa&&(qa+=Math.pow(2,32)),qa="0x"+qa.toString(16));a.S(new _.K(_.M,6,6006,{browserError:fa.message,error:fa,extended:qa},fa))}});_.z(ca)}})};
149
+ yl=function(a,b,c,d){d=void 0===d?null:d;if("skd"===b){a:{b=d;b=void 0===b?null:b;d=a.keySystem();var e=a.h.Ma[d];d=a.m.getConfiguration();e=e&&e.modifiers&&e.modifiers.extractContentId;_.J.fb(e)||(e=Al);try{var f={ldlDelay:0,customData:{}};b&&(f=a.g.get(b).sessionContext);var g=e(d,c,f);a.a.debug("Extracted Content ID '"+g+"' from SKD");var k=g;break a}catch(l){a.a.warn("Unable to extract Content ID from SKD",l)}k=""}return k}if(b===_.ee)return dk(c)||"";if(b===_.rc)try{e=a.keySystem();if(Bl(e))return _.Rk(c).a||
150
+ "";if(e.match(/^com\.widevine\.alpha/))return _.Nk(c).a||""}catch(l){a.a.warn("Unable to extract Key ID from PSSH data",l)}return""};Al=function(a,b){var c=_.ck(b);_.Kf("Using default Content ID extractor. The hostname part from HLS #EXT-X-KEY:URI skd:// will be used.","Extracted Content ID: "+c);return c};
151
+ zl=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=_.J.fb;d=d.serverCertificate;e=e&&e.modifiers&&e.modifiers.extractContentId;a(e)||(e=Al);a="";try{a=e(b,c,f)}catch(k){throw new _.K(_.M,6,6103);}if(!a.length)throw new _.K(_.M,6,6101,"Content ID is an empty string");c=ek(c,a,d)}return c};
152
+ Fl=function(a,b){var c=b.target,d=a.g.get(c);a.a.info("License request for SID:'"+(c.sessionId+"'/KID:'"+d.keyId+"' from msg '")+(b.messageType+"'"));var e=a.f.licenseServerUri,f=a.keySystem();f=a.h.Ma[f];"individualization-request"===b.messageType&&f&&f.individualizationServer&&(e=f.individualizationServer);var g=_.ih([e],a.h.attemptParameters);g.type=3;g.body=b.message;g.method="POST";g.licenseRequestType=b.messageType===id&&d.Wb?hd:b.messageType;g.sessionId=c.sessionId;if(g.licenseRequestType===
153
+ hd)a.m.onEvent(new _.I(Qc));Bl(a.f.keySystem)&&Cl(a,g);rj(a.N,g);var k=Date.now();return Dl(a,g,d.sessionContext).then(function(){a.a.debug("Sending DRM license request to",e,g);return a.m.xb.fetch(g).O}).then(function(l){if(a.j)return Promise.reject();var m=Date.now()-k,n=El(a,l),p="";n&&(p=" RID:"+n);a.a.info("License response for SID:'"+(c.sessionId+"'/KID:'")+(d.keyId+"' ")+((l&&l.data?l.data.byteLength:-1)+" bytes in ")+(m+"ms"+p));var q=sj(a.N,l);return c.update(l.data).then(function(){var r=
154
+ tl(a),x=q?Date.now()+1E3*q.delay:Number.NaN;r=new _.I(_.Sc,{keySystem:a.keySystem(),expirationTime:r,expectedRenewalTime:x});a.m.onEvent(r);d&&(d.kb&&d.kb.resolve(),d.Wb&&(r=d.Wb,a.a.info("Closing expired session '"+r.sessionId+"'"),Xk(r)["catch"](function(){a.a.warn("Unable to close expired session in time")}),(r=a.g.get(d.Wb))&&r.yc&&r.yc.stop(),a.g["delete"](d.Wb),d.Wb=null),(new _.qh(function(){a.j||(d.loaded=!0,wl(a)&&(a.o||a.a.info(va),a.o=!0,a.C=!1,a.G.resolve()))})).$(5),null!==d.initData&&
155
+ (0<d.sessionContext.ldlDelay||q&&tj(a.keySystem()))&&(r=new _.qh(function(){!a.j&&a.N&&(a.a.info("Updating CSL Sessions"),Bl(a.keySystem())?rl(a,d.keyId,d.periodId,d.initDataType,d.initData,c,!0):a.keySystem().startsWith(_.Gc)&&c.update(_.Xg("renew")))}),d.yc=r,r.$(q?q.delay:d.sessionContext.ldlDelay)))})},function(l){var m,n,p,q;return _.A(function(r){if(a.j)return r["return"]();m=l.data.headers;n=Ak(m);p=Object.assign({message:_.Ba,url:l.data.url,status:l.data.status,response:l.data.response},m?
156
+ {headers:m}:{},n);q=new _.K(_.M,6,6007,p,l);a.S(q);d&&d.kb&&d.kb.reject(q);_.z(r)})})["catch"](function(l){a.j||(l===ib?a.a.info("Ignore update for closed sessions"):(l=new _.K(_.M,6,6008,{browserError:l.message}),a.S(l),d&&d.kb&&d.kb.reject(l)))})};El=function(a,b){if(!b||!b.headers)return"";var c=b.headers["x-dt-li"];if(c)try{return JSON.parse(_.Tg(_.lj(c))).ti}catch(d){a.a.warn("Unable to parse DRMtoday Request ID",d)}return""};
157
+ Cl=function(a,b){var c=Vg(b.body,!0,!0);if(c.includes("PlayReadyKeyMessage")){a.a.debug("Unwrapping PlayReady request.");c=(new DOMParser).parseFromString(c,"application/xml");for(var d=c.getElementsByTagName("HttpHeader"),e=0;e<d.length;++e)b.headers[d[e].querySelector("name").textContent]=d[e].querySelector(_.Fe).textContent;b.body=_.lj(c.querySelector("Challenge").textContent).buffer}else a.a.debug("PlayReady request is already unwrapped."),b.headers[sa]="text/xml; charset\x3dutf-8"};
158
+ Dl=function(a,b,c){var d,e,f,g,k,l;return _.A(function(m){if(1==m.a)return d=a.m.getConfiguration(),_.w(m,pl(a,d),2);e=a.keySystem();k=(g=(f=a.h.Ma[e])&&f.modifiers)&&g.licenseRequest;l=g&&g.licenseResponse;k?b.requestModifiers.push(function(n){return k(d,n,c)}):e.startsWith(_.Gc)&&b.requestModifiers.push(function(n){return _.fk(n)});l?b.responseModifiers.push(function(n){return l(d,n,c)}):e.startsWith(_.Gc)&&b.responseModifiers.push(function(n){return _.gk(n)});_.z(m)})};
159
+ Uk=function(a){var b=a.mb,c=a.ga;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.S(new _.K(_.M,6,6014));a.m.Be(_.J.Ze(c));a.o||a.a.info(va);a.o=!0;a.C=!1};kl=function(a){var b;return _.A(function(c){b=a.ca.map(function(d){return Fl(a,d)});a.Oa=!0;a.ca=[];return _.w(c,Promise.all(b),0)})};Bl=function(a){return!!a.match(/^com\.(microsoft|chromecast)\.playready/)};_.ul=function(a){return Bl(a)?_.Hc:a};
160
+ Vk=function(a){a.g.forEach(function(b,c){var d=b.xe,e=c.expiration;isNaN(e)&&(e=Infinity);e!=d&&(a.m.onExpirationUpdated(c.sessionId,e),b.xe=e)})};wl=function(a){a=a.g.values();return _.Hg(a,function(b){return b.loaded})};
161
+ bl=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};
162
+ vl=function(a,b,c,d,e){var f={};a=_.u(a);for(var g=a.next();!g.done;f={oa:f.oa},g=a.next()){f.oa=g.value;b.includes(f.oa.licenseServerUri)||b.push(f.oa.licenseServerUri);f.oa.serverCertificate&&(c.some(function(m){return function(n){return _.oj(n,m.oa.serverCertificate)}}(f))||c.push(f.oa.serverCertificate));if(f.oa.initData){var k=_.u(f.oa.initData);for(g=k.next();!g.done;g=k.next())g.value.periodId=f.oa.periodId;k={};var l=_.u(f.oa.initData);for(g=l.next();!g.done;k={gd:k.gd},g=l.next())k.gd=g.value,
163
+ d.some(function(m){return function(n){var p=m.gd;return n.keyId&&n.keyId==p.keyId&&n.periodId===p.periodId?!0:n.initDataType==p.initDataType&&_.oj(n.initData,p.initData)&&n.periodId===p.periodId}}(k))||d.push(k.gd)}if(f.oa.keyIds)for(g=0;g<f.oa.keyIds.length;++g)e.includes(f.oa.keyIds[g])||e.push(f.oa.keyIds[g])}};
164
+ el=function(a,b){if(a.keySystem){var c=_.ul(a.keySystem),d=b[c];c===_.Jd&&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=
165
+ d.serverCertificate||null)))}};Xk=function(a){var b,c;return _.A(function(d){if(1==d.a)return b=new Promise(function(e){(new _.qh(e)).$(1)}),_.w(d,Promise.race([a.close().then(function(){return!0}),b.then(function(){return!1})]),2);(c=d.f)||_.D("Timeout waiting for session close");_.z(d)})};Gl=function(){};_.Jl=function(a,b){a&&b&&(Hl.set(a,b),Il.info("Registered TextDisplayerFactory: '"+a+"'"))};
166
+ _.Kl=function(a,b){var c=b.find(function(d){return(d=Hl.get(d))?d.W(a):!1});Il.info("Chosen the text displayer: "+c);return c?Hl.get(c):null};_.Ll=function(a){return null!=a};Ml=function(){this.a=null;this.f=[]};_.Nl=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})}};
167
+ Ol=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};Pl=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};Ql=function(){this.g=this.f=this.h=null;this.a=[]};Rl=function(a){return a.a.map(function(b){return _.J.Ha(b)})};
168
+ _.Sl=function(){this.m=this.A=this.o=this.B=this.g=this.h=this.f=this.j=NaN;this.a=new Ml;this.w=new Ql};_.Tl=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:[]}};_.Ul=function(a){this.f=a;this.a=void 0};Wl=function(a,b,c,d){b===HTMLMediaElement.HAVE_NOTHING||a.readyState>=b?d():(b=Vl.value().get(b),c.one(a,b,d))};
169
+ $l=function(a){this.g=new _.G("clpp.StateManager");this.l=a;this.a=new _.Wf;this.f=_.Xl;this.A=_.Yl;this.I=0;this.w=-1;this.L=this.o=this.J=this.B=0;this.j=this.m=this.D=!1;this.G=0;this.h=null;this.K=0;this.N=_.wi();this.C=!1;this.J=Date.now();Zl(this)};am=function(a,b){return Object.keys(b)[a]};
170
+ cm=function(a,b){var c={type:_.ie};b===_.lc||b===_.kc?(c.reason=a.w,b===_.lc?c.timeSinceLastStateChangeMS=a.I:c.bufferedTimeMS=a.B):(a.f===_.bm&&(c.reason=a.w),a.A===_.bm&&(c.reason=a.w,c.bufferedTimeMS=a.B),c.currentState=a.f,c.previousState=a.A,c.timeSinceLastStateChangeMS=a.I);return c};
171
+ gm=function(a,b){if(a.f===b)return!1;var c=Date.now(),d=a.f===_.bm;a.A=a.f;a.f=b;a.A===_.dm&&(a.J=c,a.o=0);a.o||(a.o=a.J||c);a.I=c-a.o;a.o=c;b===_.bm?(a.L=a.o,a.w=a.m?1:2,a.g.info("Buffering started. Reason: "+am(a.w-1,_.em)),c=cm(a,_.lc),a.Qb(_.lc,c)):d&&(a.B=a.o-a.L,a.g.info("Buffering finished. Reason: "+am(a.w-1,_.em)+". Buffering time: "+a.B+" ms"),c=cm(a,_.kc),a.Qb(_.kc,c));c=am(a.A,_.fm);d=am(a.f,_.fm);a.g.info(_.$a+c+" -\x3e "+d);a.Qb(_.ie,cm(a,""));return!0};
172
+ lm=function(a,b){if(a.f===_.hm)a.g.warn("Player is in error state, aborting any further state checks");else{var c=a.l.isPaused();var d=a.l.getPosition();var e=a.l.getDuration();if(d=a.l.isEnded()||a.f===_.dm&&1>=Math.abs(d-e)||c&&d>=e)gm(a,_.dm)&&a.g.debug("Player claims to be in ended state, not checking more");else if(b!==_.we){e=a.l.getPosition();e=null!==e&&void 0!==e&&0<=e?a.l.getBufferInfo().xa(e,!0):-1;a.G=e;e=a.l.getSurface().getMedia();a.h=e?e.readyState:null;a.K=a.l.getPlaybackRate()||1;
173
+ e=typeof a.h===_.h&&2>a.h&&2===e.networkState;var f=typeof a.h===_.h&&0>=a.G&&a.f===_.Xl,g=typeof a.h===_.h&&2>=a.h&&a.j;e=a.m||f||e||g;!a.N||a.l.isLive()||a.f!==_.bm||e||(f=b===_.be&&4===a.h,(g=a.A===_.im)&&!a.C?e=!0:g||a.C||f||(e=!0));f=!1;e?f=gm(a,_.bm):c?f=gm(a,_.jm):a.D&&(f=gm(a,_.km));f&&(a.C=!1);a.g.debug("Video state check for event "+b+":: seeking: "+a.m+", waiting: "+a.j+", playing: "+a.D+", paused: "+c+", readyState: "+a.h+", rate: "+a.K+", buffer: "+a.G+", ended: "+d+". Changed state: "+
174
+ f+", Current state: "+am(a.f,_.fm))}}};
175
+ Zl=function(a){function b(d){return lm(a,d.type)}a.g.debug("Start watching for video events for "+a.l.namespace());var c=a.l;a.a.on(c,_.Yc,function(){a.j=!1;gm(a,_.dm)});a.a.on(c,mc,b);a.a.on(c,_.Qd,function(){a.D=!0;a.j=!1;lm(a,_.Qd)});a.a.on(c,_.Ld,function(){a.D=!1;a.j=!1;lm(a,_.Ld)});a.a.on(c,_.we,b);a.a.on(c,_.Vd,b);a.a.on(c,_.be,function(d){a.m=!1;a.j=!1;lm(a,d.type)});a.a.on(c,_.ce,function(d){a.m=!0;lm(a,d.type)});a.a.on(c,ge,b);a.a.on(c,_.Qe,function(){a.j=!0;lm(a,_.Qe)});a.a.on(c,_.Zc,function(d){return a.S(d)});
176
+ a.a.on(c,_.md,b);a.a.on(c,nc,function(){a.C=!0;lm(a,nc)});a.a.on(c,_.Ee,function(d){a.m=!0;lm(a,d.type)});a.a.on(c,_.De,function(d){a.m=!1;a.j=!1;lm(a,d.type)})};mm=function(a){a=(new _.Wh(a)).ma;if(!a)return null;a=a.toUpperCase();return _.ah(a,".MPD")?_.Tb:_.ah(a,".M3U8")?_.Zb:_.ah(a,".MP4")?_.Ke:_.ah(a,"MANIFEST")||_.ah(a,".ISM")?_.Yb:null};
177
+ _.tm=function(a){var b;_.$i(a)?b=a.source:b=a;Array.isArray(b)||(b=[b]);b=b.filter(function(e){return typeof e===_.me||"url"in e});a=[];for(var c=0;c<b.length;c++){var d=sm(b[c]);d&&a.push(d)}return a};
178
+ sm=function(a){var b=null;_.J.Z(a)&&(a={url:a});typeof a===_.Bd&&!Array.isArray(a)&&"url"in a&&(b={url:a.url,type:a.type?a.type:null},_.J.R(a.drmProtected)||typeof a.drmProtected!==_.jc||(b.drmProtected=a.drmProtected),_.J.R(a.isLive)||typeof a.isLive!==_.jc||(b.isLive=a.isLive),_.J.R(a.name)||typeof a.name!==_.me||(b.name=a.name),_.J.R(a.Bb)||typeof a.Bb!==_.me||(b.Bb=a.Bb),_.J.R(a.audioMimeType)||typeof a.audioMimeType!==_.me||(b.audioMimeType=a.audioMimeType));b&&!b.type&&(b.type=mm(a.url),b.type?
179
+ um.debug("Detect media type "+b.type+" for "+a.url):um.warn("Unable to detect media type for "+a.url));return b};vm=function(){_.cj.call(this,Bc);this.w=this.G=!1;this.j=this.B=this.m=this.a=this.h=null;this.g=new _.Wf;this.D=this.C=this.f=this.I=null};ym=function(a,b){return a.w?wm():new Promise(function(c){a.a||(a.g.on(b,_.Zc,function(){var d=xm(a);if(d)a.onError(d)}),a.g.on(b,_.$d,function(){a.trigger(new _.I(_.ic,{detail:{width:b.videoWidth,height:b.videoHeight}}))}),a.a=b);c()})};
180
+ zm=function(a){return a.w?wm():new Promise(function(b){if(a.a){var c=a.a;a.g.off(c,_.Zc);a.g.off(c,_.$d);a.a=null}b()})};
181
+ Bm=function(a){var b,c,d,e,f;return _.A(function(g){if(1==g.a){if(a.w)return g["return"](wm());b=a.o[a.getSourceIndex()];if(!a.configuration.drm||!1===b.drmProtected)return a.log.debug("No DRM configuration present.","Skipping DRM engine initialization"),g["return"](Promise.resolve());c=_.Am;d=_.xj(a.configuration.drm);a.log.debug("Drm configuration: ",d);e=a.getNetworkEngine();a.m=new _.Wk({xb:e,onError:function(k){return a.onError(k)},Be:function(){},onExpirationUpdated:function(k,l){a.trigger(new _.I(_.Pc,
182
+ {expirationTime:l}))},onEvent:function(k){k instanceof _.I?a.dispatchEvent(k):a.log.debug(_.pb,k.type)},getConfiguration:function(){return a.getConfiguration()},Cc:function(){return a.Cc()}});a.m.h=d;f={id:0,language:_.ze,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,
183
+ yb:0,mimeType:_.Ke,codecs:"",encrypted:!0,keyId:null,language:_.ze,label:null,type:c.VIDEO,primary:!1,frameRate:void 0,Zj:void 0,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],channelsCount:null,Mj:null,closedCaptions:null},bandwidth:100,drmInfos:[],allowedByApplication:!0,allowedByKeySystem:!0};return _.w(g,_.al(a.m,[f],[]),2)}return 3!=g.a?_.w(g,_.ol(a.m,a.a),3):g["return"](Promise.resolve())})};
184
+ Cm=function(a,b){Wl(a.a,HTMLMediaElement.HAVE_CURRENT_DATA,a.g,function(){a.getState()!==_.hm&&a.seek(b)["catch"](function(c){a.log.warn("Error while seeking to start position.",c)})})};xm=function(a){if(null===a.o||!a.a.error)return null;var b=a.a.error.code;if(1===b)return null;var c=a.a.error.msExtendedCode;c&&(0>c&&(c+=Math.pow(2,32)),c=c.toString(16));return new _.K(_.M,3,3016,{code:b,Uj:c,message:a.a.error.message})};wm=function(){return Promise.reject(new _.K(_.M,7,7E3))};
185
+ Dm=function(a){if(a.w)return new _.Rh(wm(),function(){});var b=a.o[a.getSourceIndex()],c=a.configuration.startTime||null,d=a.a,e=a.I;c&&Cm(a,c);if(d.preload!==_.Ad)a.g.one(d,_.md,function(){var g=Date.now()/1E3-e;a.f.o=g;a.log.debug("Time to load: ",g)});d.src=b.url;(_.hi()||_.ii())&&d.load();var f=new _.Qh;a.g.one(d,ge,function(){var g=a.getConfiguration().manifest.attemptParameters.timeout||30;a.C||(a.C=(new _.qh(function(){f.reject(new _.K(_.M,3,3100,{message:"Unable to load media source successfully from "+
186
+ b.url,uri:b.url},d.error))})).$(g))});Wl(d,a.configuration.forceWaitForTracks?HTMLMediaElement.HAVE_CURRENT_DATA:HTMLMediaElement.HAVE_METADATA,a.g,function(){return f.resolve()});d.error?f.reject(xm(a)):d.preload===_.Ad&&(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,_.Zc,function(){f.reject(xm(a))});
187
+ return new _.Rh(f,function(){var g=new _.K(_.M,7,7001);f.reject(g);return Promise.resolve()})};Em=function(){};_.Hm=function(a){a&&(0<=Fm.indexOf(a)?Gm.warn("Factory '"+a.name()+"' is already registered"):(Fm.push(a),Gm.info("Factory "+a.name()+"' has been registered.")))};Jm=function(a,b){var c=Fm.find(function(d){return d.W(a,b)});c||(c=new Im);Gm.info("Chosen ads: "+c.name());return c};
188
+ _.Km=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};_.Lm=function(a,b){a.classList.add(b)};_.Mm=function(a,b){if(a&&typeof b===_.Bd)for(var c in b)a.style[c]=b[c]};_.Nm=function(a){return document.createElement(a)};
189
+ Qm=function(a,b){this.h=new _.G("clpp.PlayerSurface");var c=_.J.Ta({},Om,b);c.containerEl=(b||null)&&b.containerEl;this.g=typeof a===_.me?document.getElementById(a):a;this.f=this.j=this.a=null;this.m=new _.Wf;Pm(this,c)};
190
+ Pm=function(a,b){a.h.debug("Initializing Player Surface on ",a.g);a.g instanceof Element&&(a.g instanceof HTMLMediaElement?(a.a=a.g,(_.ii()&&53===ti().major||_.ii()&&68===ti().major||_.ui())&&!a.a.hasAttribute(Kc)&&(a.a.style.opacity="0",a.a.setAttribute(Kc,""),a.m.one(a.a,Uc,function(){a.a.removeAttribute(Kc);a.a.style.opacity="1";a.f&&(a.f.style.opacity="1")}))):"cast-media-player"===a.g.tagName.toLowerCase()&&(a.j=a.g));b.containerEl?(a.f=b.containerEl,_.Lm(a.f,vc)):b.disableContainer||a.j||(a.f=
191
+ Rm(),a.g.parentNode?a.g.parentNode.replaceChild(a.f,a.g):a.g.parentNode||a.h.warn("Player Surface Element has no parent. Can not inject container. You have to manually add playerSurface.getContainer() to the DOM!"),a.a&&a.f.appendChild(a.a));if(a.a){if(!a.a.hasAttribute("crossorigin")){var c=b.crossorigin;a.h.info("Setting media elements crossorigin to "+c);a.a.setAttribute("crossorigin",c)}a.f&&(b.containerEl||Sm(a),_.Lm(a.a,_.wc))}};Rm=function(){var a=document.createElement(_.Oc);_.Lm(a,vc);return a};
192
+ Sm=function(a){if(a.a&&a.f){for(var b=a.a,c=[],d=0;d<b.classList.length;d++)c.push(b.classList[d]);b=_.u(c);for(c=b.next();!c.done;c=b.next())c=c.value,a.a.classList.remove(c),_.Lm(a.f,c);a.f.style.cssText=a.a.style.cssText;a.a.removeAttribute(_.oe);b=_.u([_.Xe,_.bd]);for(c=b.next();!c.done;c=b.next())c=c.value,d=a.a.getAttribute(c),d=parseInt(d,10),isNaN(d)||(a.f.style[c]=d+_.Ud),_.hi()||a.a.removeAttribute(c)}};
193
+ Um=function(a){this.l=a;this.h=this.l.getNetworkEngine();this.a=new _.Wf;this.g=null;this.f=!0;Tm(this)};Tm=function(a){a.a.on(window,"offline",function(){Vm(a,!1)});a.a.on(window,"online",function(){a.f||Wm(a)});a.a.on(a.l,ge,function(){return Xm(a)});a.a.on(a.l,"suspend",function(){return Xm(a)});a.a.on(a.l,_.Qe,function(){return Xm(a)});a.a.on(a.l,_.Qd,function(){a.f||Wm(a)});a.a.on(a.l,_.Td,function(){a.f||Wm(a)});a.a.on(a.l,_.ie,function(){switch(a.l.getState()){case _.bm:Xm(a);break;default:Xm(a)}})};
194
+ Wm=function(a){a.l.getConfiguration().connectivityCheck&&(Ym(a),a.g=(new _.qh(function(){return Zm(a)})).$(5))};Xm=function(a){a.f&&Wm(a)};Ym=function(a){a.g&&(a.g.stop(),a.g=null)};Zm=function(a){var b,c;return _.A(function(d){if(1==d.a)return(b=a.l.getConfiguration().connectivityCheck)&&a.l?_.w(d,ni(a.h,b.url,b.attemptParameters,b.method),2):d["return"]();c=d.f;Vm(a,c);_.z(d)})};Vm=function(a,b){Ym(a);a.f!==b&&(a.f=b,a.l&&a.l.getConfiguration().connectivityCheck&&a.l.trigger(new _.I(Hd,{online:a.f})))};
195
+ an=function(){for(var a=0;a<$m.length;++a)$m[a].wc()};_.bn=function(a,b){b=b||0;for(var c={priority:b,wc:a},d=0;d<$m.length;d++)if($m[d].priority<b){$m.splice(d,0,c);return}$m.push(c)};cn=function(a,b){a.onError(b);a.release().then(function(){return a.destroy()})};dn=function(a,b,c){this.g=a;this.f=b;JSON.parse(_.Tg(_.lj(a)));this.a=JSON.parse(_.Tg(_.lj(b)));this.h=c};en=function(a){this.license=a;this.a=null;this.f=new _.G("clpp.utils.LicenseKey")};
196
+ fn=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 dn(b[0],b[1],b[2]);a.a=b}return a.a};gn=function(a){switch((a.wd()[0]||{src:"",type:""}).type){case _.Tb:a="dash";break;case _.Yb:a="ss";break;case _.Zb:a="hls";break;case _.Ke:a=_.wd;break;default:a=""}return a};hn=function(a){return a.viewerId?a.viewerId:(a=a.drm||null)&&a.customData&&a.customData.userId?""+a.customData.userId:""};
197
+ jn=function(a){return(a=a.drm||null)&&a.customData&&a.customData.assetId?""+a.customData.assetId:""};kn=function(a){return(a=a.drm||null)&&a.customData&&a.customData.sessionId?""+a.customData.sessionId:""};mn=function(a){var b=a.getConfiguration(),c="no";b.drm&&!_.J.Ja(b.drm,{})&&(c="custom",b.drm.env&&b.drm.env.toLowerCase().startsWith(Tc)||ln(a).endsWith("drmtoday.com"))&&(c=Tc);return c};
198
+ nn=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.keySystem){case _.Ic:b="wv";break;case _.Hc:b="pr";break;case _.Gc:b="fps"}return b};on=function(a){a=a.getDrmInfo();var b=!1;a&&(b=a.persistentStateRequired);return b.toString()};pn=function(a){a=a.getDrmInfo();var b="";if(a)switch(a.videoRobustness){case Fa:case "HW_SECURE_ALL":b="L1";break;case Ea:b="L2";break;case _.hb:case _.gb:b="L3"}return b};ln=function(a){a=a.getDrmInfo();return(new _.Wh(a&&a.licenseServerUri||"")).Ia};
199
+ sn=function(a,b){var c="ie"===_.ji().browser,d=b.getConfiguration(),e=_.df(Array.from(_.dj.keys())).concat(_.df(b.Xh()));d={"CL-KEY":a.license,"CL-LOCATION":window.location.href,"CL-SDK-VERSION":_.ea,"CL-USER-ID":hn(d),"CL-ASSET-ID":jn(d),"CL-SESSION-ID":kn(d),"CL-PLAYBACK-TYPE":b.isLive()?qn:rn,"CL-CONTENT-TYPE":gn(b),"CL-PLUGINS":e.join(" "),"CL-DRM":mn(b),"CL-DRM-CDM":nn(b),"CL-DRM-SEC-LEVEL":pn(b),"CL-DRM-OFFLINE":on(b),"CL-DRM-IP":ln(b)};c&&(e=window.localStorage.getItem("cl_et"))&&(d["CL-ETAG"]=
200
+ e);e=_.ih(["https://downloads.castlabs.com/r/register/"]);e.method="GET";e.headers=d;return(new _.mi).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=fn(a);f=f.data;var k=f.status;if(g.a&&g.a.ilv)f=Promise.resolve();else{switch(k){case 403:case 404:g=7101;var l="castLabs Player license is invalid";if(403===k){k=l;l="";try{l=JSON.parse(decodeURIComponent(f.responseText)).message}catch(m){}f=
201
+ k+(": "+l)}else f=l+"!";l=f;break;case 412:g=7103;l="userID is required for playback!";break;default:f=Promise.resolve();break a}a.f.error(La+l);f=Promise.reject(new _.K(_.M,7,g,l))}}return f})};
202
+ U=function(a,b,c){_.Ph.call(this);var d=this;an();this.g=new _.G("clpp.Player");if(!a)throw new _.K(_.M,7,7102);this.A=new _.Wf;this.f=this.T=b||_.Xi();this.m=null;void 0===this.f.license&&(this.f.license=Vi,this.g.warn("You are using the embedded demo license!"));if(!this.f.license)throw this.g.error("You provided null or empty string as your license. Please check your license configuration."),new _.K(_.M,7,7101,"No license provided in configuration!");this.h=new Qm(a,c);this.a=this.w=null;this.G=
203
+ new _.mi;this.j=null;this.K=[];this.L={};this.o=null;this.I=!0;this.J=this.D=!1;this.C=this.zc=null;this.ae=!1;this.U=new Um(this);this.N=!1;this.B=function(f){(f=f.detail)&&f.currentState===_.km&&(d.off(_.ie,d.B),tn(d))};this.on(_.ie,function(){d.getState()===_.hm&&d.unload()});this.on(_.Pb,this.Mf.bind(this));this.on(_.Ob,this.Mf.bind(this));un(this,this.f.license);this.h.getMedia()&&(a=this.h.getMedia(),a.hasAttribute("autoplay")&&(a.removeAttribute("autoplay"),this.g.debug("Removed autoplay attribute from video element. Auto play will be handled by configuration."),
204
+ void 0===this.f.autoplay&&(this.f.autoplay=!0,this.g.debug("Setting autoplay in configuration since it was specified in the video element"))));a=[];b=_.u(vn);for(c=b.next();!c.done;c=b.next()){c=c.value;try{var e=c.create(this.f);e&&a.push(e)}catch(f){this.g.error("Error while creating player plugin",f)}}wn(this,a);_.dj.clear()};_.xn=function(a,b){b!==a.a&&(a.a&&(a.a.removeDelegate(a),a.a.destroy()),a.a=b,a.a&&(a.a.init(a.h,a.f),a.a.setNetworkEngine(a.getNetworkEngine()),a.a.addDelegate(a)))};
205
+ un=function(a,b){a.w=new en(b);a.w.verify()["catch"](function(c){setTimeout(function(){a.g.error(La+c);a.trigger(new _.I(_.Zc,{detail:new _.K(_.M,7,7101)}));a.destroy()},1E3)})};
206
+ tn=function(a){if(!a.N){a.N=!0;a.h.getMedia()||a.h.getCastElement();a.w||(a.w=new en(a.f.license));var b=Object.keys(a.L);sn(a.w,{getConfiguration:a.getConfiguration.bind(a),wd:a.wd.bind(a),getDrmInfo:a.getDrmInfo.bind(a),Xh:function(){return b},isLive:a.isLive.bind(a)}).then(function(){a.g.debug("License verified remotely")})["catch"](function(c){setTimeout(cn,1E3,{release:a.release.bind(a),destroy:a.destroy.bind(a),onError:a.onError.bind(a)},c)})}};
207
+ wn=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.L[e]=d)}a.fc("onPlayerCreated")};
208
+ yn=function(a){var b,c;return _.A(function(d){if(1==d.a){if(a.I)return a.g.debug("The player is already released. No-op"),d["return"](new Promise(function(e){return e()}));a.off(_.ie,a.B);a.A.off(a,_.ie,a.B);a.A.off(document,Oe);a.trigger(new _.I(_.Xd));a.N=!1;a.h&&a.h.release();return a.j?_.w(d,a.j.dispose(),3):d.H(2)}2!=d.a&&(a.j=null);hj(function(e){e.release()});if(a.a)return b=null,c=a.a.on(_.ie,function(e){b=e}),d["return"](a.fc(_.Fd).then(function(){a.a.removeDelegate(a);return Promise.all([a.a.release(),
209
+ a.G.release()])}).then(function(){a.g.debug("Releasing player completed");b&&(a.g.debug("Re-post state change event after release"),a.trigger(b))})["finally"](function(){a.a.off(_.ie,c);a.trigger(new _.I(Wd))}));a.trigger(new _.I(Wd));return d["return"](new Promise(function(e){return e()}))})};
210
+ zn=function(a,b,c){return new Promise(function(d,e){var f;if(b){for(var g=f=null,k=0;k<b.length;k++);k=Object.values(_.Of);for(var l=0;l<b.length;l++)for(var m=0;m<k.length;m++){var n={Gb:k[m],confidence:k[m].canPlay(b[l],c)};if(null===f||f.confidence<n.confidence)f=n,g=l}f&&typeof g===_.h&&0<f.confidence?(_.Pf.debug("Player Factory '"+f.Gb.a()+"' can play",b[g]),f=new Mf(f.Gb,g)):(_.Pf.error("No compatible Player Factory found for sources:",b),f=null)}else f=null;f?(g=f.Gb.create(),d(new Nf(g,f.a))):
211
+ (f=new _.I(_.Zc,{detail:new _.K(_.M,7,7003)}),a.trigger(f),e(f))})};
212
+ _.Bn=function(a,b){var c,d,e,f;return _.A(function(g){switch(g.a){case 1:if(a.D)throw Error("Player is already destroyed.");if(!a.h)throw Error("No surface associated with this player!");return _.w(g,a.release(),2);case 2:a.o=_.tm(b);c=_.$i(b);a.f=_.Zi(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.H(3);break}return _.w(g,zn(a,a.o,a.f),4);case 4:f=g.f,d=f.a,e=f.f,a.J=!1;case 3:d?_.xn(a,
213
+ d):a.a.addDelegate(a);An(a);a.a&&a.a.setCdnErrorCallback(a.C);a.j=Jm(a,a.f).create(a);a.setSourceIndex(e);if(a.f.pauseWhenInBackground)a.A.on(document,Oe,function(){document.hidden?(a.g.debug("Player is hidden: pausing..."),a.pause()):(a.g.debug("Player is visible: resuming..."),a.play())});hj(function(k){k.Ub()});return _.w(g,a.fc("onContentWillLoad",a.f.source[e]),0)}})};
214
+ _.Cn=function(a){return _.A(function(b){a.h.getMedia()||a.h.getCastElement();a.A.on(a,_.ie,a.B);a.trigger(new _.I(nd));return _.w(b,Promise.all([a.a.load(a.f),a.j.load()]),0)})};Dn=function(a){var b=_.yh(a.f.preferredTextLanguage).filter(function(d){return d}),c=a.getTrackManager().ea();b.some(function(d){var e=_.uh(d);return(d=c.find(function(f){f=_.uh(f.language||"");return _.vh(f,e)}))?(a.getTrackManager().ua(d),!0):!1})};
215
+ _.En=function(a){var b,c,d,e;return _.A(function(f){if(1==f.a){b=[];if(a.f.remoteTextTracks)for(c=_.u(a.f.remoteTextTracks),d=c.next();!d.done;d=c.next())e=d.value,b.push(a.getTrackManager().addTextTrack(e));return _.w(f,Promise.all(b),2)}return 3!=f.a?(Dn(a),hj(function(){}),_.w(f,a.fc("onContentLoaded"),3)):a.f.autoplay?_.w(f,a.play(),0):f.H(0)})};An=function(a){a.a&&a.a.setDrmCustomDataModifier(function(b){return _.A(function(c){if(!a.zc||!a.ae)return c.H(0);a.ae=!1;return _.w(c,a.zc(b),0)})})};
216
+ _.Fn=function(a){a&&(0<=vn.indexOf(a)||vn.push(a))};V=function(){};Gn=function(){};Hn=function(){};In=function(){};Im=function(){};Jn=function(){};_.Kn=function(){};Ln=function(){this.a=null};Mn=function(){};Nn=function(){this.size=0;this.a=void 0;this.f=new _.G("clpp.drm.eme.MediaKeyStatusMap")};On=function(a,b){a.size=void 0===b?0:1;a.f.debug("Setting key status to",b);a.a=b};Pn=function(){};Qn=function(){};Rn=function(){this.a=this.f=null};
217
+ Sn=function(a,b){this.keySystem=a;if(a.startsWith(_.Gc))for(var c=_.u(b),d=c.next();!d.done;d=c.next()){var e=d.value;if(e.persistentState===_.Zd)d=null;else{d={audioCapabilities:[],videoCapabilities:[],persistentState:_.Id,distinctiveIdentifier:_.Id,initDataTypes:e.initDataTypes,sessionTypes:[se],label:e.label};var f=!1,g=!1;if(e.audioCapabilities)for(var k=_.u(e.audioCapabilities),l=k.next();!l.done;l=k.next())l=l.value,l.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&
218
+ (d.audioCapabilities.push(l),g=!0));if(e.videoCapabilities)for(e=_.u(e.videoCapabilities),l=e.next();!l.done;l=e.next())k=l.value,k.contentType&&(f=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,k.contentType.split(";")[0])&&(d.videoCapabilities.push(k),g=!0));f||(g=WebKitMediaKeys.isTypeSupported(this.keySystem,_.Ke));d=g?d:null}if(d){this.a=d;return}}c=Error(rb);c.name=Xa;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};
219
+ Tn=function(a){this.g=null;this.h=new WebKitMediaKeys(a);this.f=new _.Wf;this.j=0;this.a=new _.G(Ac);this.a.info("Created Media Keys for "+a)};
220
+ Un=function(a,b){a.g=b;_.ag(a.f);if(!b)return Promise.resolve();a.f.on(b,Wc,function(c){_.Kf("AppleEmeManager.cancelNativeMediaEncryptedEvent_",c);c instanceof MediaEncryptedEvent&&(a.a.info("Cancel native MediaEncryptedEvent when using Apple-prefixed EME"),c.stopImmediatePropagation())});a.f.on(b,We,function(c){a.a.debug("Handle webkitNeedKey event");c=_.R(c.initData);if(_.Qg(c).getUint32(0,!0)+4!==c.byteLength)throw new RangeError("Malformed FairPlay init data");c=Vg(c.subarray(4),!0);c=_.Xg(c);
221
+ var d=new Event(Wc);d.initDataType="skd";d.initData=Rg(c);a.g.dispatchEvent(d)});Wl(b,HTMLMediaElement.HAVE_METADATA,a.f,function(){return b.webkitSetMediaKeys(a.h)});return Promise.resolve()};Vn=function(a,b){_.Ph.call(this);this.a=null;this.o=a;this.g=this.h=null;this.j=new _.Wf;this.sessionId=b;this.expiration=NaN;this.closed=new _.Qh;this.m=!1;this.keyStatuses=new Nn;this.f=new _.G(Ac)};Wn=function(a,b){On(a.keyStatuses,b);a.dispatchEvent(new _.I(fd))};Xn=function(){};
222
+ Yn=function(){this.f=this.a=null;this.g="";HTMLMediaElement.prototype.webkitGenerateKeyRequest&&(this.g="webkit")};
223
+ Zn=function(a,b,c,d){this.g=a;this.a=this.keySystem=c;a=!1;c===_.Jd&&(this.a=Se,a=!1);var e=!1;d=_.u(d);for(var f=d.next();!f.done;f=d.next()){f=f.value;var g=[],k=[],l=!1;if(f.audioCapabilities)for(var m=_.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,
224
+ this.a)&&(k.push(m),e=!0));l||(e=b.canPlayType(_.Ke,this.a)||b.canPlayType("video/webm",this.a));f.persistentState!==_.Zd||a||(e=!1);if(e){this.f=f;return}}b=rb;if(c===_.Jd||c===_.Ic)b="None of the requested configurations were supported.";c=Error(b);c.name=Xa;c.code=DOMException.NOT_SUPPORTED_ERR;throw c;};$n=function(a,b){this.g=a;this.m=b;this.a=null;this.f=new _.Wf;this.h=[];this.j=new Map};
225
+ co=function(a,b){a.a=b;_.ag(a.f);b&&(a.f.on(b,a.g+"needkey",function(c){var d=new Event(Wc);d.initDataType=_.rc;d.initData=Rg(c.initData);a.a.dispatchEvent(d)}),a.f.on(b,a.g+"keymessage",function(c){var d=ao(a,c.sessionId);if(d){var e=void 0===d.keyStatuses.getStatus();c=new _.I(qd,{messageType:e?id:hd,message:c.message});_.Kf("WebkitEmeManager.MediaKeySession.generated");d.f&&(d.f.resolve(),d.f=null);d.dispatchEvent(c)}else _.Lf("Session not found",c.sessionId)}),a.f.on(b,a.g+"keyadded",function(c){if(c=
226
+ ao(a,c.sessionId))_.Kf("WebkitEmeManager.MediaKeySession.ready"),bo(c,"usable"),c.a&&c.a.resolve(),c.a=null}),a.f.on(b,a.g+"keyerror",function(c){var d=ao(a,c.sessionId);if(d){var e=Error("EME v0.1b key error"),f=c.errorCode;f.systemCode=c.systemCode;e.errorCode=f;!c.sessionId&&d.f?(45===c.systemCode&&(e.message="Unsupported session type."),d.f.reject(e),d.f=null):c.sessionId&&d.a?(d.a.reject(e),d.a=null):(e=c.systemCode,c.errorCode.code===MediaKeyError.MEDIA_KEYERR_OUTPUT?bo(d,_.Kd):1===e?bo(d,"expired"):
227
+ bo(d,_.ed))}}))};ao=function(a,b){var c=a.j.get(b);return c?c:(c=a.h.shift())?(c.sessionId=b,a.j.set(b,c),c):null};eo=function(a,b,c,d){_.Ph.call(this);this.o=a;this.h=b;this.m=!1;this.a=this.f=null;this.g=c;this.j=d;this.sessionId="";this.expiration=NaN;this.closed=new _.Qh;this.keyStatuses=new Nn};
228
+ go=function(a,b,c){if(a.m)return Promise.reject(Error("The session is already initialized."));a.m=!0;try{if(a.j===_.Nd)if(c)var d=_.R(_.Xg("LOAD_SESSION|"+c));else{var e=_.Xg("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(k){return Promise.reject(k)}a.f=new _.Qh;var g=fo(a,"generateKeyRequest");try{a.h[g](a.g,d)}catch(k){if(k.name!==Ka)return a.f=null,Promise.reject(k);(new _.qh(function(){try{a.h[g](a.g,d)}catch(l){a.f.reject(l),
229
+ a.f=null}})).$(.01)}return a.f};ho=function(a,b,c){if(a.a)a.a.then(function(){return ho(a,b,c)})["catch"](function(){return ho(a,b,c)});else{a.a=b;if(a.g===Se){var d=_.Tg(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=_.lj(e.keys[0].k);e=_.lj(e.keys[0].kid)}else d=_.R(c),e=null;var f=fo(a,"addKey");try{a.h[f](a.g,d,e,a.sessionId)}catch(g){a.a.reject(g),a.a=null}}};bo=function(a,b){On(a.keyStatuses,b);a.dispatchEvent(new _.I(fd))};
230
+ fo=function(a,b){return a.o?a.o+b.charAt(0).toUpperCase()+b.slice(1):b};io=function(){};
231
+ jo=function(a,b,c,d,e){_.Aj.call(this,Ga);this.m=a;this.j=b;this.h=c;this.f=d;this.o=e;this.a=new _.G(zc);_.ch(this.m)?this.a.warn(_.ub):this.Ea(_.Ic,{licenseUrl:this.m,videoRobustness:[_.hb,void 0],audioRobustness:[_.gb,void 0],persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:null,modifiers:{licenseRequest:this.$c.bind(this)}});_.ch(this.j)?this.a.warn(_.Ya):this.Ea(_.Hc,{licenseUrl:this.j,videoRobustness:["3000"],audioRobustness:["2000"],modifiers:{licenseRequest:this.$c.bind(this)}});
232
+ _.ch(this.h)?this.a.warn(_.Da):_.ch(this.f)?this.a.warn(_.Ca):this.Ea(_.Gc,{licenseUrl:this.h,certificateUrl:this.f,modifiers:{licenseRequest:this.Qf.bind(this),licenseResponse:this.Rf.bind(this),certificateRequest:this.$c.bind(this),extractContentId:this.wf.bind(this)}})};ko=function(){this.l=null};lo=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)};
233
+ mo=function(a){a=a.target;if(a.webkitPresentationMode===Od){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)};no=function(){return this.webkitSupportsPresentationMode(Od)?(this.webkitSetPresentationMode(Od),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))};
234
+ oo=function(){var a=document.pictureInPictureElement;return a?(a.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))};po=function(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}};qo=function(a,b,c){return new window.TextTrackCue(a,b,c)};
235
+ ro=function(a,b,c){return new window.TextTrackCue(a+"-"+b+"-"+c,a,b,c)};to=function(a,b,c){if("input"===a)switch(this.type){case "range":a=uc}so.call(this,a,b,c)};vo=function(){this.a=uo()};wo=function(a){return uo()-a.a};xo=function(a){var b=new vo;b.a=a.a;return b};uo=function(){return window.performance&&window.performance.now?window.performance.now():Date.now()};_.yo=function(a){this.f=a;this.a=0};
236
+ _.zo=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};_.Ao=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};Bo=function(a){var b=void 0===b?2:b;this.a=new Uint8Array(a);this.g=b;this.f=0};
237
+ Co=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};_.Do=function(a,b,c){this.f=a;this.g=b;this.h=c||this.f.getMedia();this.a=null};_.Fo=function(){this.a=new Blob([Eo],{type:_.Ke})};_.Ho=function(a,b,c,d){var e,f;return _.A(function(g){if(1==g.a)return _.rf(g,2),_.w(g,Go(a,b,c,d),4);if(2!=g.a)return e=g.f,g["return"](new e);f=_.tf(g);f.a(_.M);throw f;})};
238
+ Go=function(a,b,c,d){var e,f,g,k;return _.A(function(l){if(1==l.a){if(d){if(e=_.Io[d.toLowerCase()])return l["return"](e);_.D("Could not determine manifest type using MIME type ",d)}if(f=_.Jo(a)){if(g=_.Ko[f])return l["return"](g);_.D("Could not determine manifest type for extension ",f)}else _.D("Could not find extension for ",a);return d?l.H(2):_.w(l,Lo(a,b,c),3)}if(2!=l.a&&(d=l.f)){if(k=_.Io[d])return l["return"](k);_.D("Could not determine manifest type using MIME type",d)}throw new _.K(_.M,4,
239
+ 4E3,{url:a});})};Lo=function(a,b,c){var d,e,f;return _.A(function(g){if(1==g.a)return d=_.ih(a),gh(d,c),d.type=1,d.method="HEAD",_.w(g,b.fetch(d).O,2);e=g.f;f=e.headers["content-type"];return g["return"](f?f.toLowerCase():"")})};_.Jo=function(a){a=(new _.Wh(a)).ma.split("/").pop().split(".");return 1==a.length?"":a.pop().toLowerCase()};Mo=function(a){this.a=new Uint8Array(a||65536);this.f=0;this.g=new vo};
240
+ Oo=function(a,b,c){return b.read().then(function(d){var e=d.done;d=d.value;null!=d&&(No(a,d),lh(c,d.byteLength,wo(a.g)),a.g.a=uo());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 Oo(a,b,c)})})};No=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};
241
+ ki=function(a){var b=a.uris[a.uriIndex],c=new Po,d=new vo,e=xo(d),f=0,g=new _.Qh;c.open(a.method,b,!0);c.responseType="arraybuffer";c.timeout=a.timeout;c.withCredentials=a.allowCrossSiteCredentials;var k=!1,l=!1;c.onreadystatechange=function(n){n=n.target;n.readyState>=XMLHttpRequest.HEADERS_RECEIVED&&!k&&(n=n.getResponseHeader(pa),kh(a,n),k=!0)};c.onload=function(n){n=n.target;var p=(n.getAllResponseHeaders()||"").trim().split("\r\n"),q={};p=_.u(p);for(var r=p.next();!r.done;r=p.next())r=r.value.split(": "),
242
+ q[r[0].toLowerCase()]=r.slice(1).join(": ");try{var x=wo(e);l||lh(a,n.response?n.response.length:0,x);var y=_.jh(q,n.response,n.status,b,n.responseURL,a,x);a.rateLimitBps?nh(a.rateLimitBps,wo(e),a.bytesLoaded).then(function(){g.resolve(y)}):g.resolve(y)}catch(C){g.reject(C)}};c.onerror=function(n){n=n.target;if(0>=n.status)g.reject(new _.K(1,1,1002,{url:b,request:a,status:n.status}));else{var p=n.getAllResponseHeaders(),q={};if(p){p=_.u(p.trim().split("\r\n"));for(var r=p.next();!r.done;r=p.next())r=
243
+ r.value.split(": "),q[r[0].toLowerCase()]=r.slice(1).join(": ")}n=_.jh(q,n.response,n.status,b,n.responseURL,a,wo(e));g.resolve(n)}};c.ontimeout=function(){g.reject(new _.K(1,1,1003,{url:b,request:a}))};c.onprogress=function(n){var p=wo(d);d.a=uo();if(100<p||n.lengthComputable&&n.loaded===n.total)lh(a,n.loaded-f,p),f=n.loaded,l=!0};for(var m in a.headers)c.setRequestHeader(m.toLowerCase(),a.headers[m]);c.send(a.body);return{O:g,request:a,abort:function(){c.abort();g.reject(new _.K(1,1,7001,{url:b,
244
+ request:a}));return Promise.resolve()}}};Qo=function(a,b){a=void 0===a?1E6:a;b=void 0===b?!0:b;this.h=new Bo(a);this.length=a;this.w=b;this.f=this.a=this.g=0;this.j=null;this.m=-1;this.o=new vo};
245
+ To=function(a,b,c,d){return b.read().then(function(e){var f=e.done;e=e.value;d&&e&&(d(e.byteLength,wo(a.o)),a.o.a=uo());if(f)return f=Ro(a),(f=c(!0,f))?f.then(function(){return a.h.a.buffer}):Promise.resolve(a.h.a.buffer);var g=Promise.resolve();if(null!=e){Co(a.h,e);a.a=a.g;a.f=a.h.f;a.j=new DataView(a.h.a.buffer,0,a.h.f);e=So(a);for(f=[];e;)f.push(e),e=So(a);if(!a.w)f.forEach(function(m){g=g.then(function(){return c(!1,m)})});else if(0<f.length){e=f[0];if(1<f.length){e=f[0];var k=f[f.length-1],
246
+ l=k.end-e.start;e={start:e.start,end:k.end,length:l,data:new DataView(a.h.a.buffer,e.start,l),count:f.length}}(f=c(!1,e))&&(g=f)}}return g.then(function(){return To(a,b,c,d)})})};So=function(a){if(0<=a.m&&a.f<a.m)return null;for(var b=Uo(a);null!==b;){if(b.name===_.od){var c={start:a.g,end:b.end,length:b.end-a.g,data:new DataView(a.h.a.buffer,a.g,b.end-a.g),count:1};a.g=b.end;return c}b=Uo(a)}return null};
247
+ Uo=function(a){var b=a.a;if(a.a+4>=a.f)return a.a=a.f,null;var c=Vo(a);if(a.a+4>=a.f)return a.a=a.f,null;var d=Vo(a);d=String.fromCharCode(d>>24&255,d>>16&255,d>>8&255,d&255);switch(c){case 0:c=a.f-b;break;case 1:if(a.a+8>=a.f)return a.a=a.f,null;try{var e=a.j.getUint32(a.a,!1);var f=a.j.getUint32(a.a+4,!1)}catch(g){throw new _.K(_.M,3,3E3);}if(2097151<e)throw new _.K(_.M,3,3E3);a.a+=8;c=e*Math.pow(2,32)+f}c=b+c;a.m=c;return a.f>=c?(a.a=c,{name:d,start:b,end:c}):null};
248
+ Vo=function(a){var b=a.j.getUint32(a.a,!1);a.a+=4;return b};Ro=function(a){var b=null;a.g!==a.f&&(b={start:a.g,end:a.f,length:a.f-a.g,data:new DataView(a.h.a.buffer,a.g,a.f-a.g),count:-1});return b};Xo=function(a){_.Rh.call(this,new _.Qh,function(){return Promise.resolve()});this.A=a;this.g=null;this.o=this.O;this.f=-1;this.h=this.j=this.m=null;Wo(this)};Yo=function(a,b,c){a.m=setTimeout(b,c)};
249
+ Wo=function(a){a.g=a.A.then(function(e){a.h=e.request;e.request.uriIndex=e.request.currentAttempt%e.request.uris.length;if(0<e.request.currentAttempt){-1===a.f&&(a.f=Zo(e.request.baseDelay,1E3));var f=a.f*(1+(2*Math.random()-1)*Zo(e.request.fuzzFactor,.5));a.f*=Zo(e.request.backoffFactor,2);if(0<f)return(new Promise(function(g,k){a.j=k;Yo(a,function(){g(e.plugin(e.request))},f)}))["catch"](function(g){if(!a.a)throw g;})}if(a.a)throw new _.K(1,1,7001,{url:e.request.uris[e.request.uriIndex],request:e.request});
250
+ return e.plugin(e.request)});var b=0,c=0,d=0;return a.g.then(function(e){var f=e.request;f.currentAttempt+=1;b=f.currentAttempt;c=f.maxAttempts;d=f.uris.length;return e.O}).then(function(e){a.o.resolve(e)})["catch"](function(e){if(e instanceof _.K){if((1===e.severity||b<d)&&7001!==e.code&&b<c)return Wo(a);7001!==e.code&&e.a(_.M);a.o.reject(e)}else a.o.reject(e)})};Zo=function(a,b){return null===a||void 0===a?b:a};
251
+ li=function(a){var b=new $o,c;for(c in a.headers)b.append(c.toLowerCase(),a.headers[c]);var d=new ap,e={Oc:!1,kg:!1};b={O:bp(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.Oc||(e.Oc=!0,d.abort());return Promise.resolve()}};if(a=a.timeout){var f=window.setTimeout(function(){e.kg=!0;d.abort()},a);b.O=b.O["finally"](function(){window.clearTimeout(f)})}return b};
252
+ bp=function(a,b,c,d){var e,f,g,k,l,m,n,p,q,r,x,y,C,H,F;return _.A(function(E){switch(E.a){case 1:return e=cp,k=new vo,l=xo(k),_.rf(E,2),_.w(E,e(a,c),4);case 4:f=E.f;m=f.headers.get(pa);kh(b,m);n=m?parseInt(m,10):0;if(b.onFragment&&!b.disableFragmentSupport&&2===b.type)return r=f.body.getReader(),x=new Qo(n,!b.disableMergedFragments),y=function(L,O){if(d.Oc)return null;O&&O.data&&(lh(b,O.data.byteLength,wo(k)),k.a=uo());return b.onFragment&&O?b.rateLimitBps?nh(b.rateLimitBps,wo(l),b.bytesLoaded).then(function(){return b.onFragment(O)}):
253
+ b.onFragment(O):null},_.w(E,To(x,r,y,b.onProgress),10);p=f.body.getReader();q=new Mo(n);return _.w(E,Oo(q,p,b),7);case 7:g=E.f;if(!b.rateLimitBps){E.H(6);break}return _.w(E,nh(b.rateLimitBps,wo(l),g.byteLength),6);case 10:g=E.f;case 6:_.sf(E,3);break;case 2:C=_.tf(E);if(d.Oc)throw new _.K(1,1,7001,{url:a,request:b});if(d.kg)throw new _.K(1,1,1003,{url:a,request:b});_.Lf("Error while fetching data:",C);throw new _.K(1,1,1002,{url:a,error:C,request:b,status:-1},C);case 3:H={};F=f.headers;F.forEach(function(L,
254
+ O){H[O.trim()]=L});if(d.Oc)throw new _.K(1,1,7001,{url:a,request:b});return E["return"](_.jh(H,g,f.status,a,f.url,b,wo(l)))}})};gi=function(a){try{var b=a.uris[a.uriIndex],c=_.dp(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()}}}};
255
+ _.dp=function(a){var b=a.split(":");if(2>b.length||"data"!==b[0])throw _.Lf("Bad data URI, failed to parse scheme"),new _.K(_.M,1,1004,{uri:a});b=b.slice(1).join(":").split(",");if(2>b.length)throw _.Lf("Bad data URI, failed to extract encoding and MIME type"),new _.K(_.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?_.lj(a).buffer:_.Xg(a).buffer,contentType:c}};_.fp=function(a){delete _.ep[a]};
256
+ _.hp=function(a){a=a.getConfiguration();a=_.J.Ha(a.textStyle||a.textstyle||{});this.K=typeof a.backgroundColor===_.me?a.backgroundColor:null;this.Y=typeof a.windowColor===_.me?a.windowColor:null;this.T=typeof a.fontColor===_.me?a.fontColor:null;this.U=typeof a.fontFamily===_.me?a.fontFamily:null;this.I=typeof a.fontSize===_.me?a.fontSize:null;this.C=typeof a.fontSizePercent===_.h?a.fontSizePercent:null;this.G=typeof a.edgeColor===_.me?a.edgeColor:"rgba(0, 0, 0, 1)";this.B=_.gp;typeof a.edgeType===
257
+ _.me&&(this.B=a.edgeType)};_.mp=function(a){var b=_.Ad,c=a.G;switch(a.B){case ip:b="-2px -2px 0 "+c+", -1px -1px 0 "+c;break;case jp:b="2px 2px 0 "+c+", 1px 1px 0 "+c;break;case kp:b="-1px 0 "+c+", 0 1px "+c+", 1px 0 "+c+", 0 -1px "+c;break;case lp:b="2px 2px 3px "+c+", 2px 2px 4px "+c+", 2px 2px 5px "+c}return b};np=function(a){this.g=a;this.a=null;this.f=new _.G("clpp.text.Mp4TextParser")};
258
+ _.pp=function(a){_.hp.call(this,a);this.j=a.getSurface().getMedia();this.f="clpp-video-"+op++;this.g=document.createElement(_.oe);this.h=this.m=!1;_.Lm(this.j,this.f);document.head.appendChild(this.g);this.lb()};qp=function(){};_.rp=function(){};ef=typeof Object.create==_.ad?Object.create:function(a){function b(){}b.prototype=a;return new b};
259
+ if(typeof Object.setPrototypeOf==_.ad)sp=Object.setPrototypeOf;else{var tp;a:{var up={qg:!0},vp={};try{vp.__proto__=up;tp=vp.qg;break a}catch(a){}tp=!1}sp=tp?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null}
260
+ var ff=sp,kf=typeof Object.defineProperties==_.ad?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},hf="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;lf.prototype.toString=function(){return this.a};var jf=function(){function a(c){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new lf("jscomp_symbol_"+(c||"")+"_"+b++,c)}var b=0;return a}();
261
+ of.prototype.w=function(a){this.f=a};of.prototype["return"]=function(a){this.g={"return":a};this.a=this.j};of.prototype.H=function(a){this.a=a};
262
+ Af("Promise",function(a){function b(g){this.f=0;this.j=void 0;this.a=[];var k=this.g();try{g(k.resolve,k.reject)}catch(l){k.reject(l)}}function c(){this.a=null}function d(g){return g instanceof b?g:new b(function(k){k(g)})}if(a)return a;c.prototype.f=function(g){if(null==this.a){this.a=[];var k=this;this.g(function(){k.j()})}this.a.push(g)};var e=hf.setTimeout;c.prototype.g=function(g){e(g,0)};c.prototype.j=function(){for(;this.a&&this.a.length;){var g=this.a;this.a=[];for(var k=0;k<g.length;++k){var l=
263
+ g[k];g[k]=null;try{l()}catch(m){this.h(m)}}}this.a=null};c.prototype.h=function(g){this.g(function(){throw g;})};b.prototype.g=function(){function g(m){return function(n){l||(l=!0,m.call(k,n))}}var k=this,l=!1;return{resolve:g(this.B),reject:g(this.h)}};b.prototype.B=function(g){if(g===this)this.h(new TypeError("A Promise cannot resolve to itself"));else if(g instanceof b)this.C(g);else{a:switch(typeof g){case _.Bd:var k=null!=g;break a;case _.ad:k=!0;break a;default:k=!1}k?this.A(g):this.m(g)}};
264
+ b.prototype.A=function(g){var k=void 0;try{k=g.then}catch(l){this.h(l);return}typeof k==_.ad?this.D(k,g):this.m(g)};b.prototype.h=function(g){this.o(2,g)};b.prototype.m=function(g){this.o(1,g)};b.prototype.o=function(g,k){if(0!=this.f)throw Error("Cannot settle("+g+", "+k+"): Promise already settled in state"+this.f);this.f=g;this.j=k;this.w()};b.prototype.w=function(){if(null!=this.a){for(var g=0;g<this.a.length;++g)f.f(this.a[g]);this.a=null}};var f=new c;b.prototype.C=function(g){var k=this.g();
265
+ g.kd(k.resolve,k.reject)};b.prototype.D=function(g,k){var l=this.g();try{g.call(k,l.resolve,l.reject)}catch(m){l.reject(m)}};b.prototype.then=function(g,k){function l(q,r){return typeof q==_.ad?function(x){try{m(q(x))}catch(y){n(y)}}:r}var m,n,p=new b(function(q,r){m=q;n=r});this.kd(l(g,m),l(k,n));return p};b.prototype["catch"]=function(g){return this.then(void 0,g)};b.prototype.kd=function(g,k){function l(){switch(m.f){case 1:g(m.j);break;case 2:k(m.j);break;default:throw Error("Unexpected state: "+
266
+ m.f);}}var m=this;null==this.a?f.f(l):this.a.push(l)};b.resolve=d;b.reject=function(g){return new b(function(k,l){l(g)})};b.race=function(g){return new b(function(k,l){for(var m=_.u(g),n=m.next();!n.done;n=m.next())d(n.value).kd(k,l)})};b.all=function(g){var k=_.u(g),l=k.next();return l.done?d([]):new b(function(m,n){function p(x){return function(y){q[x]=y;r--;0==r&&m(q)}}var q=[],r=0;do q.push(void 0),r++,d(l.value).kd(p(q.length-1),n),l=k.next();while(!l.done)})};return b});var Cf=this||self;
267
+ Cf.a=!0;_.J={pg:20,Ha:function(a){var b=_.J.R,c=_.J.Gf,d=_.J.Ta;return b(a)||c(a)?a:d(a)}};_.B("clpp.utils.obj.cloneItem",_.J.Ha);_.J.Ta=function(a){for(var b={},c=0;c<arguments.length;c++)null!==arguments[c]&&void 0!==arguments[c]&&(b=_.J.If(b,{merging:arguments[c]}));return b.merging};_.B("clpp.utils.obj.merge",_.J.Ta);
268
+ _.J.If=function(a,b,c){var d=_.J.R,e=_.J.Gf,f=_.J.If,g=_.J.fb,k=_.J.di,l=_.J.bi,m=_.J.Ec;c=c+1||1;if(d(a)||!m(a))a={};for(var n in b)m=b[n],e(m)||d(m)||g(m)?a[n]=m:k(m)?a[n]=m.subarray(0):m instanceof Array?a[n]=f([],m):!d(m)&&l(m)&&c<_.J.pg&&(a[n]=f(a[n],m,c));return a};_.J.Gf=function(a){a=typeof a;return a===_.me||a===_.h||a===_.jc};_.J.R=function(a){return null===a||"undefined"===typeof a};_.J.Ec=function(a){return typeof a===_.Bd};_.J.fb=function(a){return typeof a===_.ad};
269
+ _.J.Z=function(a){return typeof a===_.me};_.J.la=function(a){return typeof a===_.h};_.J.Ef=function(a){return typeof a===_.jc};_.J.di=function(a){var b=_.J.Ec,c=_.J.fb;return!!(b(a)&&a.buffer&&a.buffer instanceof ArrayBuffer&&c(a.subarray))};_.J.bi=function(a){var b=_.J.Ec,c=_.J.R;return!c(a)&&b(a)&&a.constructor===Object};
270
+ _.J.Ja=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||!_.J.Ec(a)||!_.J.Ec(b))return!1;for(var e=c||Object.keys(a),f={},g=0;g<e.length;g++){var k=e[g];if(_.J.R(d)||0>d.indexOf(k))if(f[k]=!0,a[k]!==b[k])return!1}if(_.J.R(c))for(a=Object.keys(b),b=0;b<a.length;b++)if(c=a[b],(_.J.R(d)||0>d.indexOf(c))&&!f[c])return!1;return!0};
271
+ _.J.isNaN=function(a){return(Number.hasOwnProperty("isNaN")?Number.isNaN:function(b){return b!==b})(a)};_.J.Ye=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};_.J.Ze=function(a){var b={};a.forEach(function(c,d){b[d]=c});return b};var Gf={DEFAULT:-1,NONE:0,ERROR:1,WARNING:2,INFO:3,DEBUG:4};_.B("clpp.log.Level",Gf);var Ef=3,Df={},wp=[];_.B("clpp.log.getLoggers",function(){return _.J.Ha(Df)});_.B("clpp.log.addInterceptor",function(a){a&&wp.push(a)});_.B("clpp.log.removeInterceptor",function(a){a&&(a=wp.indexOf(a),0<=a&&wp.splice(a,1))});_.B("clpp.log.getTagLevel",Ff);_.B("clpp.log.hasTagLevel",function(a){return void 0===a?!1:0<=Df[a]});_.B("clpp.log.setTagLevel",function(a,b){a&&(_.J.Z(b)&&(b=Hf(b)),Df[a]=b)});
272
+ _.B("clpp.log.setLogLevel",function(a){-1===a&&(a=3);_.J.Z(a)&&(a=Hf(a));Ef=a});_.B("clpp.log.getLogLevel",function(){return Ef});_.t=_.G.prototype;
273
+ _.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=Ff(this.a);if(0<=d){if(d<c)return}else if(Ef<c)return;this.a&&Array.prototype.unshift.call(arguments,"["+this.a+"]");d=new Date;d.toISOString&&(d=d.toISOString().substring(11).replace("Z",""),Array.prototype.unshift.call(arguments,d));4===c?console.log.apply(console,arguments):3===c?console.info.apply(console,arguments):2===c?console.warn.apply(console,arguments):
274
+ 1===c?console.error.apply(console,arguments):console.log.apply(console,arguments);d=_.u(wp);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)};
275
+ _.t.error=function(a){Array.prototype.unshift.call(arguments,1);this.log.apply(this,arguments)};_.t.Hh=function(a){return a?this.a?new _.G(this.a+"."+a):new _.G(a):this};_.B("clpp.log.Logger",_.G);_.G.prototype.createChild=_.G.prototype.Hh;_.G.prototype.error=_.G.prototype.error;_.G.prototype.warn=_.G.prototype.warn;_.G.prototype.debug=_.G.prototype.debug;_.G.prototype.info=_.G.prototype.info;_.G.prototype.log=_.G.prototype.log;var If=new _.G("clpp");_.B("clpp.log.info",_.Jf);
276
+ _.B("clpp.log.debug",_.Kf);_.B("clpp.log.warn",_.D);_.B("clpp.log.error",_.Lf);(function(){var a=console.assert;a?a.bind||(console.assert=function(){a.apply(console,arguments)}):console.assert=function(){}})();_.Pf=new _.G("clpp.players");_.Of={};_.Rf.prototype.push=function(a,b){a in this.a?this.a[a].push(b):this.a[a]=[b]};_.Rf.prototype.get=function(a){return(a=this.a[a])?a.slice():[]};_.Rf.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};_.Rf.prototype.clear=function(){this.a={}};Sf.prototype.Qb=function(a){try{this.wc.handleEvent?this.wc.handleEvent(a):this.wc.call(this.a,a)}catch(b){_.Lf("clpp","Uncaught exception in event handler for event '"+this.f+"'",b,b?b.message:null,b?b.stack:null)}};_.I.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)};_.I.prototype.stopImmediatePropagation=function(){this.f=!0};_.I.prototype.stopPropagation=function(){};_.t=Tf.prototype;
277
+ _.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].Qb(a),b[c].hj&&this.a.remove(a.type,b[c]),!a||!a.f);c++);};_.t.on=function(a,b,c){this.a.push(a,new Sf(a,b,c||this.f));return b};_.t.one=function(a,b,c){this.a.push(a,new Sf(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].wc===b&&(d=this.a.remove(a,c[e])||d);return d};_.t.clear=function(){this.a.clear()};
278
+ _.B("clpp.EventBus",Tf);Tf.prototype.clear=Tf.prototype.clear;Tf.prototype.off=Tf.prototype.off;Tf.prototype.one=Tf.prototype.one;Tf.prototype.on=Tf.prototype.on;Tf.prototype.trigger=Tf.prototype.trigger;_.Wf.prototype.release=function(){_.ag(this)};_.Wf.prototype.on=function(a,b,c,d){a=new bg(a,b,c,void 0===d?!1:d);this.a.push(b,a)};_.Wf.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)};_.Wf.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||($f(f),this.a.remove(b,f))}};cg.prototype.release=function(){this.f.release();this.g=[];this.a=null};cg.prototype.destroy=function(){var a=this;return _.A(function(b){a.release();a.j=null;a.h=null;_.z(b)})};cg.prototype.getTimelineCues=function(){return this.g};_.B("clpp.text.Cue",_.sg);_.sg.positionAlign={LEFT:_.jd,RIGHT:_.kd,CENTER:_.sc,AUTO:"auto"};_.mg=_.te;_.sg.payloadType={TEXT:_.mg,VTT_XML:_.Pe,TTML_XML:_.ye};_.ng=_.sc;_.xp={LEFT:_.gd,RIGHT:_.ae,CENTER:_.ng,START:_.gd,END:_.ae};_.sg.textAlign=_.xp;var rg="ltr";_.sg.direction={HORIZONTAL_LEFT_TO_RIGHT:rg,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};_.og="horizontal-tb";_.sg.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.og,VERTICAL_LEFT_TO_RIGHT:_.Ge,VERTICAL_RIGHT_TO_LEFT:_.He};_.pg=0;
279
+ _.sg.lineInterpretation={LINE_NUMBER:_.pg,PERCENTAGE:1};_.qg=_.he;_.yp={CENTER:_.sc,START:_.qg,END:_.Xc};_.sg.lineAlign=_.yp;_.B("clpp.text.CueRegion",_.vg);_.tg=1;_.vg.units={PX:0,PERCENTAGE:_.tg,LINES:2};var ug="";_.vg.scrollMode={NONE:ug,UP:"up"};_.vg.displayAlign={BEFORE:"flex-end",CENTER:_.sc,AFTER:"flex-start"};_.vg.writingMode={HORIZONTAL_TOP_TO_BOTTOM:_.Ec,VERTICAL_LEFT_TO_RIGHT:"row-reverse",VERTICAL_RIGHT_TO_LEFT:"row"};wg.prototype.destroy=function(){this.a.release();this.h=!1;this.j=this.a=this.g=this.f=null;return Promise.resolve()};wg.prototype.start=function(a){var b=this;this.h?this.m.warn("Already started. Ignoring request..."):(this.h=!0,this.g=a,this.f=this.g.textTracks,this.a.on(this.f,_.Mb,function(c){return xg(b,c)}),this.a.on(this.f,uc,function(){for(var c=b.f,d=0;d<c.length;d++){var e=c[d];e.mode===_.de&&(e.mode=_.cd)}}))};
280
+ wg.prototype.o=function(a){var b=new _.sg(a.startTime,a.endTime,a.text,_.Pe);if(_.J.Z(a.vertical))switch(a.vertical){case "lr":b.writingMode=_.Ge;break;case "rl":b.writingMode=_.He}_.J.la(a.size)&&(b.size=a.size);if(_.J.Z(a.align))switch(a.align){case _.gd:case _.he:b.textAlign=_.gd;break;case _.sc:b.textAlign=_.ng;break;case _.ae:case _.Xc:b.textAlign=_.ae}_.J.la(a.position)&&(b.position=a.position);if(_.J.Z(a.positionAlign))switch(a.positionAlign){case _.jd:b.positionAlign=_.jd;break;case _.sc:b.positionAlign=
281
+ _.sc;break;case _.kd:b.positionAlign=_.kd}_.J.la(a.line)&&(b.line=a.line);if(_.J.Z(a.lineAlign))switch(a.lineAlign){case _.he:b.lineAlign=_.qg;break;case _.sc:b.lineAlign=_.sc;break;case _.Xc:b.lineAlign=_.Xc}_.J.Ef(a.snapToLines)&&(b.lineInterpretation=a.snapToLines?_.pg:1);return b};_.v(_.K,Error);_.K.prototype.a=function(a){this.severity!==a&&(this.severity=a,this.message=yg(this.severity,this.category,this.code,this.data))};_.K.prototype.toString=function(){var a=this.message;this.cause&&(a+="\n Caused by "+this.cause);return a};_.B("clpp.Error",_.K);_.M=2;_.K.Severity={RECOVERABLE:1,FATAL:_.M};_.K.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,PLUGIN:9,ADS:10};
282
+ _.K.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,
273
283
  TEXT_PARSER_MISSING:2012,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,MEDIA_SOURCE_OPERATION_FAILED:3014,
274
284
  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,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,
275
285
  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,DASH_XLINK_DEPTH_LIMIT:4028,
276
286
  HLS_COULD_NOT_PARSE_SEGMENT_START_TIME:4030,CONTENT_UNSUPPORTED_BY_BROWSER:4032,SMOOTH_INVALID_MANIFEST_XML:4033,SMOOTH_EMPTY_PRESENTATION:4034,SMOOTH_MEDIA_PROCESSING_ERROR:4035,SMOOTH_INVALID_VERSION:4036,SMOOTH_INVALID_FRAGMENT_METADATA:4037,SMOOTH_REQUIRED_ATTRIBUTE_MISSING:4038,SMOOTH_TRUNCATED_MEDIA_FILE:4039,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4040,HLS_MSE_ENCRYPTED_TS_NOT_SUPPORTED:4041,INVALID_STREAMS_CHOSEN:5005,NO_RECOGNIZED_KEY_SYSTEMS:6E3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,
277
287
  FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,REQUESTED_DRM_ENVIRONMENT_UNAVAILABLE:6015,INIT_DATA_TRANSFORM_ERROR:6016,CERTIFICATE_REQUEST_FAILED:6100,NO_CONTENT_ID:6101,SERVER_CERTIFICATE_REQUIRED:6102,EXTRACT_CONTENT_ID_MODIFIER_ERROR:6103,
278
288
  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,INVALID_CONFIGURATION:7100,INVALID_LICENSE:7101,NO_ELEMENT:7102,USER_ID_NOT_PROVIDED:7103,KEY_LOAD_ERROR:7104,TIZEN_INTERNAL_ERROR:7200,CAF_INTERNAL_ERROR:7300,INTERNAL_CAST_ERROR:8E3,CAST_API_NOT_READY:8001,NO_RECEIVERS_AVAILABLE:8002,ALREADY_CASTING:8003,NO_CAST_SESSION:8004,CONVIVA_SDK_NOT_LOADED:9E3,CONVIVA_INVALID_CONFIGURATION:9001,
279
- CONVIVA_RUNTIME_ERROR:9002,GL_CONTEXT_ERROR:9003,GL_SHADER_ERROR:9004,YOUBORA_SDK_MISSING:9100,YOUBORA_INVALID_CONFIGURATION:9101,VIMOND_INVALID_CONFIGURATION:9200,VIMOND_SESSION_ERROR:9201,MUXDATA_INVALID_CONFIGURATION:9300,MUX_SDK_MISSING:9301,MUXDATA_INIT_ERROR:9302,IMA_SDK_MISSING:1E4,IMA_INVALID_CONFIGURATION:10001,IMA_UNSUPPORTED_PLATFORM:10002,AD_ERROR:10003,BROADPEAK_SDK_MISSING:11E3,BROADPEAK_SESSION_ERROR:11001,FREEWHEEL_SDK_MISSING:12E3,FREEWHEEL_INVALID_CONFIGURATION:12001,CONTENT_TRANSFORMATION_FAILED:14E3};var Ag;_.xg.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.A("clpp.Track",_.xg);_.xg.prototype.toString=_.xg.prototype.toString;_.A("clpp.Rendition",_.Eg);_.Cg=1;_.zg=_.He;_.N=_.Zb;_.L=_.se;Ag=_.od;_.ap={VIDEO:_.zg,AUDIO:_.N,TEXT:_.L,Yj:Ag};_.xg.Type=_.ap;_.h=_.P.prototype;_.h.bi=function(a){return this.getVideoTracks().find(function(b){return _.H.Oa(b,a,a&&Object.keys(a))})};_.h.Yh=function(a){return this.getAudioTracks().find(function(b){return _.H.Oa(b,a,a&&Object.keys(a))})};_.h.$h=function(a){return this.ea().find(function(b){return _.H.Oa(b,a,a&&Object.keys(a))})};_.h.ai=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.H.Oa(b,a,a&&Object.keys(a))})};
280
- _.h.Xh=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.H.Oa(b,a,a&&Object.keys(a))})};_.h.Zh=function(a){return this.ea().flatMap(function(b){return b.renditions}).find(function(b){return _.H.Oa(b,a,a&&Object.keys(a))})};_.A("clpp.TrackManager",_.P);_.P.prototype.isAbrEnabled=_.P.prototype.ka;_.P.prototype.addTextTrack=_.P.prototype.addTextTrack;_.P.prototype.findTextRendition=_.P.prototype.Zh;_.P.prototype.findAudioRendition=_.P.prototype.Xh;
281
- _.P.prototype.findVideoRendition=_.P.prototype.ai;_.P.prototype.findTextTrack=_.P.prototype.$h;_.P.prototype.findAudioTrack=_.P.prototype.Yh;_.P.prototype.findVideoTrack=_.P.prototype.bi;_.P.prototype.setTextRendition=_.P.prototype.hb;_.P.prototype.setAudioRendition=_.P.prototype.gb;_.P.prototype.setVideoRendition=_.P.prototype.Ua;_.P.prototype.setTextTrack=_.P.prototype.ua;_.P.prototype.setAudioTrack=_.P.prototype.na;_.P.prototype.setVideoTrack=_.P.prototype.Va;_.P.prototype.getTextTrack=_.P.prototype.ja;
282
- _.P.prototype.getAudioTrack=_.P.prototype.ia;_.P.prototype.getVideoTrack=_.P.prototype.Da;_.P.prototype.getLoadingTextRendition=_.P.prototype.Za;_.P.prototype.getLoadingAudioRendition=_.P.prototype.Ya;_.P.prototype.getLoadingVideoRendition=_.P.prototype.Pa;_.P.prototype.getTextRendition=_.P.prototype.Ca;_.P.prototype.getAudioRendition=_.P.prototype.Aa;_.P.prototype.getVideoRendition=_.P.prototype.fa;_.P.prototype.getTextTracks=_.P.prototype.ea;_.P.prototype.getAudioTracks=_.P.prototype.getAudioTracks;
283
- _.P.prototype.getVideoTracks=_.P.prototype.getVideoTracks;var Ig=function bp(a){var c;return _.yf(bp,function(d){1==d.a&&(c=0);if(3!=d.a)return c<a?_.v(d,c,3):d.H(0);c++;return d.H(2)})};_.A("clpp.utils.BufferUtils",Gg);Gg.toArrayBuffer=Pg;Gg.toDataView=_.Og;Gg.toInt32Array=_.Ng;Gg.toUint32Array=Mg;Gg.toUint16Array=Lg;Gg.toUint8Array=_.Q;Gg.equal=Jg;var Sg=new _.D("clpp.utils.strings");_.A("clpp.utils.strings.fromUtf8",_.Rg);_.A("clpp.utils.strings.fromBytesAutoDetect",_.Ug);_.A("clpp.utils.strings.toUtf8",_.Vg);_.A("clpp.utils.strings.toUtf16",_.Wg);_.A("clpp.utils.strings.toByteArray",_.Xg);_.A("clpp.utils.strings.startsWith",_.Yg);_.A("clpp.utils.strings.endsWith",_.Zg);
284
- _.A("clpp.utils.strings.bitrateToString",function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.H.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""}});
285
- _.A("clpp.utils.strings.durationToString",function(a,b){function c(k){return function(l,m){return d(k,m.length-1)}}function d(k,l){return k.length<l?d("0"+k,l):k}b=void 0===b?"%h:%mm:%ss":b;if(null===a||void 0===a)a=0;if(null===b||void 0===b)b="%h:%mm:%ss";var e=Math.floor(a/3600),f=Math.floor((a-3600*e)/60),g=Math.floor(a-3600*e-60*f);return b.replace(/(%h+)/,c(String(e))).replace(/(%m+)/,c(String(f))).replace(/(%s+)/,c(String(g)))});
286
- _.A("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 bh=document.createElement("span");_.A("clpp.net.makeRequest",_.gh);_.fh=6;_.A("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.fh});_.lh.prototype.$=function(a){return nh(this,a,!1)};_.lh.prototype.Xa=function(a){return nh(this,a,!0)};_.lh.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.oh.prototype.Re=function(){this.stop();this.f();return this};_.oh.prototype.$=function(a){var b=this;this.stop();this.a=(new _.lh(function(){b.f()})).$(a);return this};_.oh.prototype.Xa=function(a){var b=this;this.stop();this.a=(new _.lh(function(){b.f()})).Xa(a);return this};_.oh.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.A("clpp.utils.Timer",_.oh);_.oh.prototype.stop=_.oh.prototype.stop;_.oh.prototype.tickEvery=_.oh.prototype.Xa;_.oh.prototype.tickAfter=_.oh.prototype.$;
287
- _.oh.prototype.tickNow=_.oh.prototype.Re;_.ph=[];var uh=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",
288
- "cs"],["dan","da"],["deu","de"],[_.Lc,"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",
289
+ CONVIVA_RUNTIME_ERROR:9002,GL_CONTEXT_ERROR:9003,GL_SHADER_ERROR:9004,YOUBORA_SDK_MISSING:9100,YOUBORA_INVALID_CONFIGURATION:9101,VIMOND_INVALID_CONFIGURATION:9200,VIMOND_SESSION_ERROR:9201,MUXDATA_INVALID_CONFIGURATION:9300,MUX_SDK_MISSING:9301,MUXDATA_INIT_ERROR:9302,IMA_SDK_MISSING:1E4,IMA_INVALID_CONFIGURATION:10001,IMA_UNSUPPORTED_PLATFORM:10002,AD_ERROR:10003,BROADPEAK_SDK_MISSING:11E3,BROADPEAK_SESSION_ERROR:11001,FREEWHEEL_SDK_MISSING:12E3,FREEWHEEL_INVALID_CONFIGURATION:12001,CONTENT_TRANSFORMATION_FAILED:14E3};var Cg;_.zg.prototype.toString=function(){return"Track type: "+this.type+" id: "+this.id+"\n renditions size: "+this.renditions.length};_.B("clpp.Track",_.zg);_.zg.prototype.toString=_.zg.prototype.toString;_.B("clpp.Rendition",_.Gg);_.Eg=1;_.Bg=_.Ie;_.P=_.ac;_.N=_.te;Cg=_.rd;_.zp={VIDEO:_.Bg,AUDIO:_.P,TEXT:_.N,METADATA:Cg};_.zg.Type=_.zp;_.t=_.Q.prototype;_.t.Ph=function(a){return this.getVideoTracks().find(function(b){return _.J.Ja(b,a,a&&Object.keys(a))})};_.t.Lh=function(a){return this.getAudioTracks().find(function(b){return _.J.Ja(b,a,a&&Object.keys(a))})};_.t.Nh=function(a){return this.ea().find(function(b){return _.J.Ja(b,a,a&&Object.keys(a))})};_.t.Oh=function(a){return this.getVideoTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.J.Ja(b,a,a&&Object.keys(a))})};
290
+ _.t.Kh=function(a){return this.getAudioTracks().flatMap(function(b){return b.renditions}).find(function(b){return _.J.Ja(b,a,a&&Object.keys(a))})};_.t.Mh=function(a){return this.ea().flatMap(function(b){return b.renditions}).find(function(b){return _.J.Ja(b,a,a&&Object.keys(a))})};_.B("clpp.TrackManager",_.Q);_.Q.prototype.isAbrEnabled=_.Q.prototype.ka;_.Q.prototype.addTextTrack=_.Q.prototype.addTextTrack;_.Q.prototype.findTextRendition=_.Q.prototype.Mh;_.Q.prototype.findAudioRendition=_.Q.prototype.Kh;
291
+ _.Q.prototype.findVideoRendition=_.Q.prototype.Oh;_.Q.prototype.findTextTrack=_.Q.prototype.Nh;_.Q.prototype.findAudioTrack=_.Q.prototype.Lh;_.Q.prototype.findVideoTrack=_.Q.prototype.Ph;_.Q.prototype.setTextRendition=_.Q.prototype.jb;_.Q.prototype.setAudioRendition=_.Q.prototype.ib;_.Q.prototype.setVideoRendition=_.Q.prototype.Wa;_.Q.prototype.setTextTrack=_.Q.prototype.ua;_.Q.prototype.setAudioTrack=_.Q.prototype.na;_.Q.prototype.setVideoTrack=_.Q.prototype.Xa;_.Q.prototype.getTextTrack=_.Q.prototype.ja;
292
+ _.Q.prototype.getAudioTrack=_.Q.prototype.ia;_.Q.prototype.getVideoTrack=_.Q.prototype.Ca;_.Q.prototype.getLoadingTextRendition=_.Q.prototype.ab;_.Q.prototype.getLoadingAudioRendition=_.Q.prototype.$a;_.Q.prototype.getLoadingVideoRendition=_.Q.prototype.Qa;_.Q.prototype.getTextRendition=_.Q.prototype.Ba;_.Q.prototype.getAudioRendition=_.Q.prototype.za;_.Q.prototype.getVideoRendition=_.Q.prototype.fa;_.Q.prototype.getTextTracks=_.Q.prototype.ea;_.Q.prototype.getAudioTracks=_.Q.prototype.getAudioTracks;
293
+ _.Q.prototype.getVideoTracks=_.Q.prototype.getVideoTracks;var Kg=function Ap(a){var c;return _.zf(Ap,function(d){1==d.a&&(c=0);if(3!=d.a)return c<a?_.w(d,c,3):d.H(0);c++;return d.H(2)})};_.B("clpp.utils.BufferUtils",Ig);Ig.toArrayBuffer=Rg;Ig.toDataView=_.Qg;Ig.toInt32Array=_.Pg;Ig.toUint32Array=Og;Ig.toUint16Array=Ng;Ig.toUint8Array=_.R;Ig.equal=Lg;var Ug=new _.G("clpp.utils.strings");_.B("clpp.utils.strings.fromUtf8",_.Tg);_.B("clpp.utils.strings.fromBytesAutoDetect",_.Wg);_.B("clpp.utils.strings.toUtf8",_.Xg);_.B("clpp.utils.strings.toUtf16",_.Yg);_.B("clpp.utils.strings.toByteArray",_.Zg);_.B("clpp.utils.strings.startsWith",_.$g);_.B("clpp.utils.strings.endsWith",_.ah);
294
+ _.B("clpp.utils.strings.bitrateToString",function(a){if(void 0===a||null===a||""===a)return"";try{var b=Number(a);if(_.J.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""}});
295
+ _.B("clpp.utils.strings.durationToString",function(a,b){function c(k){return function(l,m){return d(k,m.length-1)}}function d(k,l){return k.length<l?d("0"+k,l):k}b=void 0===b?"%h:%mm:%ss":b;if(null===a||void 0===a)a=0;if(null===b||void 0===b)b="%h:%mm:%ss";var e=Math.floor(a/3600),f=Math.floor((a-3600*e)/60),g=Math.floor(a-3600*e-60*f);return b.replace(/(%h+)/,c(String(e))).replace(/(%m+)/,c(String(f))).replace(/(%s+)/,c(String(g)))});
296
+ _.B("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 dh=document.createElement("span");_.B("clpp.net.makeRequest",_.ih);_.hh=6;_.B("clpp.net.RequestType",{MANIFEST:1,SEGMENT:2,LICENSE:3,APP:4,TIMING:5,OTHER:_.hh});_.oh.prototype.$=function(a){return ph(this,a,!1)};_.oh.prototype.Ya=function(a){return ph(this,a,!0)};_.oh.prototype.stop=function(){this.a&&(this.a(),this.a=null)};_.qh.prototype.Re=function(){this.stop();this.f();return this};_.qh.prototype.$=function(a){var b=this;this.stop();this.a=(new _.oh(function(){b.f()})).$(a);return this};_.qh.prototype.Ya=function(a){var b=this;this.stop();this.a=(new _.oh(function(){b.f()})).Ya(a);return this};_.qh.prototype.stop=function(){this.a&&(this.a.stop(),this.a=null)};_.B("clpp.utils.Timer",_.qh);_.qh.prototype.stop=_.qh.prototype.stop;_.qh.prototype.tickEvery=_.qh.prototype.Ya;_.qh.prototype.tickAfter=_.qh.prototype.$;
297
+ _.qh.prototype.tickNow=_.qh.prototype.Re;_.rh=[];var wh=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",
298
+ "cs"],["dan","da"],["deu","de"],[_.Oc,"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",
289
299
  "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",
290
300
  "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",
291
301
  "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",
292
- "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);_.cp=(new Map).set(_.Ac,_.Ac).set("frameRate","framerate").set("bandwidth","bitrate").set(_.We,_.We).set(_.Zc,_.Zc).set("channelsCount","channels");_.u(xh,_.P);_.h=xh.prototype;
293
- _.h.Ee=function(a,b){if(b){var c=b.track;if(c){var d=this.h.find(function(l){return zh(l,c,a)});if(d)this.a.warn("Track from event already exists",c,d);else{var e=Dg(a,c),f=Kh(c);if(a===_.L){if(c.kind===_.od)return;var g;void 0!==c.id?g=this.m[c.id]:g=Object.values(this.m).find(function(l){return zh(e,l,a)});e.kind&&"captions"===e.kind&&(e.mimeType=_.Qb);g&&(e.src=g.url,e.mimeType=g.mimeType)}else if(d=this.h.find(function(l){return l.type===a&&_.H.Oa(l,e,["kind","label","language"])})){d.id=c.id;
294
- f&&(this.a.debug(hb+a+" track active"),this.f.set(a,d));this.a.debug("Track from event seems to already exists, flipped native track to",c);return}try{e.renditions.push(new _.Eg(e.id,e));this.h.push(e);this.a.debug(a+" Track added",e);this.l.trigger(new _.E(_.dp));var k=Eh(this,a).length;d=a===_.zg||a===_.N;if(f||1===k&&d)this.a.debug(hb+a+" track active. Native track active: "+(f+". Number of tracks: ")+k,c),this.f.set(a,e)}catch(l){this.a.error("Error while converting track data",l)}}}else this.a.warn(Ua)}else this.a.warn(Ta)};
295
- _.h.Ge=function(a,b){if(b){var c=b.track;if(!c)this.a.warn(Ua);else if(a===_.L&&c.kind!==_.od){var d=this.h.find(function(e){return zh(e,c,a)});d&&(this.h.splice(this.h.indexOf(d),1),(this.f.get(a)||null)===d&&(this.f.set(a,null),yh(this)),this.a.debug(a+" Track removed, id: ",d.id))}}else this.a.warn(Ta)};
296
- _.h.Fe=function(a,b){this.a.debug(a+" Track changed",b);a===_.L&&yh(this);var c=Dh(this,a);if(c)for(var d={pc:0};d.pc<c.length;d={pc:d.pc},++d.pc)if(Kh(c[d.pc])){if(d=this.h.find(function(e){return function(f){return zh(f,c[e.pc],a)}}(d)))this.f.set(a,d),this.a.debug("Track change detected, id:",d.id),d===this.j.get(a)&&this.j.set(a,null),a===_.N?this.l.trigger(new _.E(_.Hh)):a===_.L&&this.l.trigger(new _.E(_.Ih));break}};_.h.Fb=function(a){this.l=a};
297
- _.h.load=function(){this.o=!1;var a=Ch(this,_.L);a&&(this.g.on(a,_.Kb,this.G),this.g.on(a,Yd,this.J),this.g.on(a,rc,this.I));if(a=Ch(this,_.N))this.g.on(a,_.Kb,this.B),this.g.on(a,Yd,this.D),this.g.on(a,rc,this.C);if(a=Ch(this,_.zg))this.g.on(a,_.Kb,this.K),this.g.on(a,Yd,this.O),this.g.on(a,rc,this.L);this.g.one(this.l,lc,this.Ah.bind(this))};_.h.release=function(){this.o=!0;this.h=[];this.m={};this.f.clear();this.j.clear();this.g.release()};_.h.destroy=function(){this.release();this.l=null};
298
- _.h.getVideoTracks=function(){return Eh(this,_.zg)};_.h.getAudioTracks=function(){return Eh(this,_.N)};_.h.ea=function(){return Eh(this,_.L)};_.h.fa=function(){return Fh(this,_.zg)};_.h.Aa=function(){return Fh(this,_.N)};_.h.Ca=function(){return Fh(this,_.L)};_.h.Pa=function(){return Gh(this,_.zg)};_.h.Ya=function(){return Gh(this,_.N)};_.h.Za=function(){return Gh(this,_.L)};_.h.Da=function(){return this.f.get(_.zg)||null};_.h.ia=function(){return this.f.get(_.N)||null};
299
- _.h.ja=function(){return this.f.get(_.L)||null};_.h.Va=function(a){Jh(this,_.zg,a)};_.h.na=function(a){Jh(this,_.N,a)};_.h.ua=function(a){Jh(this,_.L,a)};_.h.Ua=function(a){Jh(this,_.zg,a&&a.track)};_.h.gb=function(a){Jh(this,_.N,a&&a.track)};_.h.hb=function(a){Jh(this,_.L,a&&a.track)};_.h.addTextTrack=function(a){var b=this,c;return _.z(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.w++,b.m[c]=a,Ah(b,a,c),d.H(0)):_.v(d,Bh(b,a),0)})};
300
- _.h.Ah=function(){var a=this,b,c,d;return _.z(function(e){if(1==e.a){b=a.l.getConfiguration();Lh(a,_.N,b.preferredAudioLanguage);c=Dh(a,_.L);if(c.some(function(f){return Kh(f)}))return e.H(2);d=Ch(a,_.L);return _.v(e,new Promise(function(f){a.g.one(d,rc,f);(new _.oh(f)).$(1)}),2)}if(a.o)return e["return"]();Lh(a,_.L,b.preferredTextLanguage);_.w(e)})};_.h.ka=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};xh.prototype.isAbrEnabled=xh.prototype.ka;
301
- xh.prototype.addTextTrack=xh.prototype.addTextTrack;xh.prototype.setTextRendition=xh.prototype.hb;xh.prototype.setAudioRendition=xh.prototype.gb;xh.prototype.setVideoRendition=xh.prototype.Ua;xh.prototype.setTextTrack=xh.prototype.ua;xh.prototype.setAudioTrack=xh.prototype.na;xh.prototype.setVideoTrack=xh.prototype.Va;xh.prototype.getTextTrack=xh.prototype.ja;xh.prototype.getAudioTrack=xh.prototype.ia;xh.prototype.getVideoTrack=xh.prototype.Da;xh.prototype.getLoadingTextRendition=xh.prototype.Za;
302
- xh.prototype.getLoadingAudioRendition=xh.prototype.Ya;xh.prototype.getLoadingVideoRendition=xh.prototype.Pa;xh.prototype.getTextRendition=xh.prototype.Ca;xh.prototype.getAudioRendition=xh.prototype.Aa;xh.prototype.getVideoRendition=xh.prototype.fa;xh.prototype.getTextTracks=xh.prototype.ea;xh.prototype.getAudioTracks=xh.prototype.getAudioTracks;xh.prototype.getVideoTracks=xh.prototype.getVideoTracks;_.h=_.Mh.prototype;_.h.start=function(a){if(this.f)return this.f.start(a);if(a<this.a.length)return this.a[a].start;throw Error(lb);};_.h.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(lb);};_.h.lb=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)};_.h.ra=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
303
- _.h.bc=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};
304
- _.h.xa=function(a,b){b=void 0===b?!1:b;if(!this.length||1===this.length&&1E-6>this.end(0)-this.start(0))return 0;var c=0;if(b){var d=this.ra();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};_.A("clpp.BufferInfo",_.Mh);_.Mh.prototype.bufferedAheadOf=_.Mh.prototype.xa;_.Mh.prototype.isBuffered=_.Mh.prototype.bc;_.Mh.prototype.bufferEnd=_.Mh.prototype.ra;_.Mh.prototype.bufferStart=_.Mh.prototype.lb;_.Mh.prototype.end=_.Mh.prototype.end;
305
- _.Mh.prototype.start=_.Mh.prototype.start;_.h=_.Nh.prototype;_.h.trigger=function(a){this.Tc.trigger(a);for(var b=_.t(this.Sc),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.h.addEventListener=function(a,b){this.on(a,b)};_.h.removeEventListener=function(a,b){this.off(a,b)};_.h.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};_.h.on=function(a,b,c){return this.Tc.on(a,b,c)};_.h.one=function(a,b,c){return this.Tc.one(a,b,c)};_.h.off=function(a,b){return this.Tc.off(a,b)};
306
- _.h.addDelegate=function(a){a&&(0<=this.Sc.indexOf(a)||this.Sc.push(a))};_.h.removeDelegate=function(a){a&&(a=this.Sc.indexOf(a),0<=a&&this.Sc.splice(a,1))};_.Nh.prototype.off=_.Nh.prototype.off;_.Nh.prototype.one=_.Nh.prototype.one;_.Nh.prototype.on=_.Nh.prototype.on;_.Nh.prototype.removeEventListener=_.Nh.prototype.removeEventListener;_.Nh.prototype.addEventListener=_.Nh.prototype.addEventListener;_.A("clpp.events.ERROR",_.Vc);_.A("clpp.events.LOADEDMETADATA",_.jd);_.A("clpp.events.BUFFERING_ENDED",_.ic);_.A("clpp.events.BUFFERING_STARTED",_.jc);_.A("clpp.events.STATE_CHANGED",_.he);_.Hh="audiotrackchanged";_.A("clpp.events.AUDIO_TRACK_CHANGED",_.Hh);_.Ih="texttrackchanged";_.A("clpp.events.TEXT_TRACK_CHANGED",_.Ih);_.A("clpp.events.VIDEO_TRACK_CHANGED",_.Le);_.A("clpp.events.BITRATE_CHANGED",_.fc);_.dp="tracksadded";_.A("clpp.events.TRACKS_ADDED",_.dp);_.A("clpp.events.LOAD_START",kd);
307
- _.A("clpp.events.RELEASING",_.Xd);_.A("clpp.events.RELEASED",Wd);_.A("clpp.events.DESTROYING","destroying");_.A("clpp.events.DESTROYED","destroyed");_.A("clpp.events.VIDEO_BUFFER_CHANGED",_.Ke);_.A("clpp.events.AUDIO_BUFFER_CHANGED",_.dc);_.A("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.A("clpp.events.DRM_SESSION_UPDATE",_.Pc);_.A("clpp.events.DRM_SESSION_PERSISTED",_.Oc);_.A("clpp.events.DRM_RENEWAL_STARTED",Nc);_.A("clpp.events.DRM_EXPIRATION_UPDATE",_.Mc);
308
- _.A("clpp.events.AUTOPLAY_NOT_ALLOWED",_.ec);_.A("clpp.events.PLAY",_.Pd);_.A("clpp.events.SEEKING",_.ce);_.A("clpp.events.SEEKED",_.be);_.A("clpp.events.USER_SEEKING",_.De);_.A("clpp.events.USER_SEEKED",_.Ce);_.Hl={SEEKING:1,NO_DATA:2};_.A("clpp.events.BufferingReasons",_.Hl);_.A("clpp.events.ADS_TIMELINE_CHANGED",_.Lb);_.A("clpp.events.AD_LOADED",_.Ab);_.A("clpp.events.AD_BREAK_STARTED",_.tb);_.A("clpp.events.AD_STARTED",_.Hb);_.A("clpp.events.AD_BUFFERING",_.vb);_.A("clpp.events.AD_PROGRESS",_.Eb);
309
- _.A("clpp.events.AD_FIRST_QUARTILE",_.yb);_.A("clpp.events.AD_MIDPOINT",_.Cb);_.A("clpp.events.AD_THIRD_QUARTILE",_.Jb);_.A("clpp.events.AD_PAUSED",_.Db);_.A("clpp.events.AD_RESUMED",_.Fb);_.A("clpp.events.AD_SKIPPED",_.Gb);_.A("clpp.events.AD_CLICKED",_.wb);_.A("clpp.events.AD_IMPRESSION",_.zb);_.A("clpp.events.AD_COMPLETED",_.xb);_.A("clpp.events.AD_STOPPED",_.Ib);_.A("clpp.events.AD_BREAK_STOPPED",_.ub);_.A("clpp.events.CASTING_STARTED",_.mc);_.A("clpp.events.CASTING_ENDED","castingended");
310
- _.A("clpp.events.CAST_STATUS_CHANGED",_.nc);_.A("clpp.events.AIRPLAY_STATUS_CHANGED",_.Ob);_.A("clpp.events.AIRPLAY_CASTING_STARTED",_.Nb);_.A("clpp.events.AIRPLAY_CASTING_ENDED",_.Mb);_.gg="timeline-cue-added";_.A("clpp.events.TIMELINE_CUE_ADDED",_.gg);_.ig="timeline-cue-enter";_.A("clpp.events.TIMELINE_CUE_ENTER",_.ig);_.jg="timeline-cue-exit";_.A("clpp.events.TIMELINE_CUE_EXIT",_.jg);_.A("clpp.events.MPD_TYPE_CHANGED",_.td);_.A("clpp.events.VIMOND_RESPONSE",_.Me);
311
- _.A("clpp.events.PLAYLIST_ITEM_CHANGED",_.Rd);_.A("clpp.events.PLAYLIST_MODIFIED",_.Sd);_.A("clpp.events.CDN_SWITCH_SUCCESS",_.oc);_.A("clpp.events.ONLINE_STATUS_CHANGED",Hd);_.Oh.prototype.resolve=function(){};_.Oh.prototype.reject=function(){};_.Ph.prototype.abort=function(){this.a=!0;return this.w()};_.Ph.prototype.kd=function(a,b){function c(){e.reject(new _.J(_.K,7,7001));return d.abort()}var d=this,e=new _.Oh;this.N.then(function(f){d.a?e.reject(new _.J(_.K,7,7001)):a?c=Rh(a,f,e):e.resolve(f)},function(f){b?c=Rh(b,f,e):e.reject(f)});return new _.Ph(e,function(){return c()})};_.Ph.aborted=function(){var a=Promise.reject(new _.J(_.K,7,7001));a["catch"](function(){});return new _.Ph(a,function(){return Promise.resolve()})};
312
- _.Ph.prototype.chain=_.Ph.prototype.kd;_.Sh.prototype.destroy=function(){for(var a=[],b=_.t(this.a),c=b.next();!c.done;c=b.next())c=c.value,c.N["catch"](function(){}),a.push(c.abort());this.a=[];return Promise.all(a)};var Zh=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;_.h=_.Uh.prototype;_.h.Ta="";_.h.kc="";_.h.Ia="";_.h.Hc=null;_.h.ma="";_.h.Yb="";_.h.toString=function(){var a=[],b=this.Ta;b&&a.push(bi(b,ep,!0),":");if(b=this.Ia){a.push("//");var c=this.kc;c&&a.push(bi(c,ep,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Hc;null!=b&&a.push(":",String(b))}if(b=this.ma)this.Ia&&"/"!=b.charAt(0)&&a.push("/"),a.push(bi(b,"/"==b.charAt(0)?fp:gp,!0));(b=this.a.toString())&&a.push("?",b);(b=this.Yb)&&a.push("#",bi(b,hp));return a.join("")};
313
- _.h.resolve=function(a){var b=new _.Uh(this);"data"===b.Ta&&(b=new _.Uh);var c=!!a.Ta;c?Vh(b,a.Ta):c=!!a.kc;c?b.kc=a.kc:c=!!a.Ia;c?b.Ia=a.Ia:c=null!=a.Hc;var d=a.ma;if(c)Wh(b,a.Hc);else if(c=!!a.ma){if("/"!=d.charAt(0))if(this.Ia&&!this.ma)d="/"+d;else{var e=b.ma.lastIndexOf("/");-1!=e&&(d=b.ma.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var k=d[g++];"."==k?e&&g==d.length&&f.push(""):
314
- ".."==k?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(k),e=!0)}d=f.join("/")}}c?b.ma=d:c=""!==a.a.toString();c?Xh(b,Yh(a.a)):c=!!a.Yb;c&&(b.Yb=a.Yb);return b};var ep=/[#\/\?@]/g,gp=/[#\?:]/g,fp=/[#\?]/g,ci=/[#\?@]/g,hp=/#/g;ai.prototype.a=null;ai.prototype.g=null;
315
- ai.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};
316
- ai.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")};_.h=_.ki.prototype;_.h.Fj=function(a){0<a?_.B("Rate limit set to "+a+"bps"):_.B("Rate limit disabled");this.h=a};_.h.release=function(){return this.j.destroy()};_.h.destroy=function(){this.m=!0;this.f=[];this.g=[];return this.j.destroy()};_.h.Ag=function(a){this.f.push(a)};_.h.Vd=function(a){this.g.push(a)};_.h.wj=function(a){this.f=this.f.filter(function(b){return b!==a})};_.h.Ke=function(a){this.g=this.g.filter(function(b){return b!==a})};
317
- _.h.fetch=function(a){var b=this;if(this.m)return new yo(Promise.reject(new _.J(1,1,7001,{url:a.uris[a.uriIndex],request:a})));this.h&&0<this.h&&(a.rateLimitBps=this.h);for(var c=[],d=_.t(this.f),e=d.next();!e.done;e=d.next())c.push(e.value);if(a.requestModifiers)for(d=_.t(a.requestModifiers),e=d.next();!e.done;e=d.next())c.push(e.value);a.requestModifiers=c;c=[];d=_.t(this.g);for(e=d.next();!e.done;e=d.next())c.push(e.value);if(a.responseModifiers)for(d=_.t(a.responseModifiers),e=d.next();!e.done;e=
318
- d.next())c.push(e.value);a.responseModifiers=c;d=c=new _.Oh;try{var f={},g=_.t(a.requestModifiers);for(e=g.next();!e.done;f={Od:f.Od},e=g.next())f.Od=e.value,d=d.then(function(m){return function(n){if(k.a)throw new _.J(_.K,1,7001,n?{url:n.uris[n.uriIndex],request:n}:null);return m.Od(n)||n}}(f))["catch"](function(m){if(m instanceof _.J)throw m;throw new _.J(_.K,1,1006,null,m);});d=d.then(function(m){var n=new _.Uh(m.uris[m.uriIndex]),p=n.Ta;p||(p=location.protocol,p=p.slice(0,-1),Vh(n,p),m.uris[m.uriIndex]=
319
- n.toString());p=b.a[p];if(!p)throw new _.J(_.K,1,1E3,{url:n.toString()});return{request:m,plugin:p}});var k=new yo(d);g={};var l=_.t(a.responseModifiers);for(e=l.next();!e.done;g={gd:g.gd},e=l.next())g.gd=e.value,k.then(function(m){return function(n){function p(){if(k.a)throw new _.J(_.K,1,7001,n?{url:n.request.uris[n.request.uriIndex],request:n.request}:null);}p();var q=m.gd(n)||n;p();return q}}(g))["catch"](function(m){return function(n){if(n instanceof _.J&&n.data&&n.data.response){var p=m.gd(n.data.response);
320
- if(p)return p.then(function(){return Promise.reject(n)})}return Promise.reject(n)}}(g))["catch"](function(m){if(m instanceof _.J)throw m;throw new _.J(_.K,1,1007,null,m);});_.Th(this.j,k);c.resolve(a);return k}catch(m){return new yo(Promise.reject(m))}};_.ki.prototype.fetch=_.ki.prototype.fetch;_.ki.prototype.removeResponseModifier=_.ki.prototype.Ke;_.ki.prototype.removeRequestModifier=_.ki.prototype.wj;_.ki.prototype.addResponseModifier=_.ki.prototype.Vd;_.ki.prototype.addRequestModifier=_.ki.prototype.Ag;
321
- _.ki.prototype.setRateLimit=_.ki.prototype.Fj;_.A(zc,mi);mi.getInfo=_.hi;
322
- var wi=null,vi=null,yi=new _.D(zc),Fi="android",Ei="ios",Li="linux",Gi="osx",Ii="windows",Ji="tizen",Ki="webos",Di=ze,Oi=ze,Ni={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,
302
+ "vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);_.Bp=(new Map).set(_.Dc,_.Dc).set("frameRate","framerate").set("bandwidth","bitrate").set(_.Xe,_.Xe).set(_.bd,_.bd).set("channelsCount","channels");_.v(zh,_.Q);_.t=zh.prototype;
303
+ _.t.De=function(a,b){if(b){var c=b.track;if(c){var d=this.h.find(function(l){return Bh(l,c,a)});if(d)this.a.warn("Track from event already exists",c,d);else{var e=Fg(a,c),f=Mh(c);if(a===_.N){if(c.kind===_.rd)return;var g;void 0!==c.id?g=this.m[c.id]:g=Object.values(this.m).find(function(l){return Bh(e,l,a)});e.kind&&"captions"===e.kind&&(e.mimeType=_.Sb);g&&(e.src=g.url,e.mimeType=g.mimeType)}else if(d=this.h.find(function(l){return l.type===a&&_.J.Ja(l,e,["kind","label","language"])})){d.id=c.id;
304
+ f&&(this.a.debug(jb+a+" track active"),this.f.set(a,d));this.a.debug("Track from event seems to already exists, flipped native track to",c);return}try{e.renditions.push(new _.Gg(e.id,e));this.h.push(e);this.a.debug(a+" Track added",e);this.l.trigger(new _.I(_.Cp));var k=Gh(this,a).length;d=a===_.Bg||a===_.P;if(f||1===k&&d)this.a.debug(jb+a+" track active. Native track active: "+(f+". Number of tracks: ")+k,c),this.f.set(a,e)}catch(l){this.a.error("Error while converting track data",l)}}}else this.a.warn(Ua)}else this.a.warn(Ta)};
305
+ _.t.Fe=function(a,b){if(b){var c=b.track;if(!c)this.a.warn(Ua);else if(a===_.N&&c.kind!==_.rd){var d=this.h.find(function(e){return Bh(e,c,a)});d&&(this.h.splice(this.h.indexOf(d),1),(this.f.get(a)||null)===d&&(this.f.set(a,null),Ah(this)),this.a.debug(a+" Track removed, id: ",d.id))}}else this.a.warn(Ta)};
306
+ _.t.Ee=function(a,b){this.a.debug(a+" Track changed",b);a===_.N&&Ah(this);var c=Fh(this,a);if(c)for(var d={pc:0};d.pc<c.length;d={pc:d.pc},++d.pc)if(Mh(c[d.pc])){if(d=this.h.find(function(e){return function(f){return Bh(f,c[e.pc],a)}}(d)))this.f.set(a,d),this.a.debug("Track change detected, id:",d.id),d===this.j.get(a)&&this.j.set(a,null),a===_.P?this.l.trigger(new _.I(_.Jh)):a===_.N&&this.l.trigger(new _.I(_.Kh));break}};_.t.initialize=function(a){this.l=a};
307
+ _.t.load=function(){this.o=!1;var a=Eh(this,_.N);a&&(this.g.on(a,_.Mb,this.G),this.g.on(a,Yd,this.J),this.g.on(a,uc,this.I));if(a=Eh(this,_.P))this.g.on(a,_.Mb,this.B),this.g.on(a,Yd,this.D),this.g.on(a,uc,this.C);if(a=Eh(this,_.Bg))this.g.on(a,_.Mb,this.K),this.g.on(a,Yd,this.N),this.g.on(a,uc,this.L);this.g.one(this.l,nc,this.oh.bind(this))};_.t.release=function(){this.o=!0;this.h=[];this.m={};this.f.clear();this.j.clear();this.g.release()};_.t.destroy=function(){this.release();this.l=null};
308
+ _.t.getVideoTracks=function(){return Gh(this,_.Bg)};_.t.getAudioTracks=function(){return Gh(this,_.P)};_.t.ea=function(){return Gh(this,_.N)};_.t.fa=function(){return Hh(this,_.Bg)};_.t.za=function(){return Hh(this,_.P)};_.t.Ba=function(){return Hh(this,_.N)};_.t.Qa=function(){return Ih(this,_.Bg)};_.t.$a=function(){return Ih(this,_.P)};_.t.ab=function(){return Ih(this,_.N)};_.t.Ca=function(){return this.f.get(_.Bg)||null};_.t.ia=function(){return this.f.get(_.P)||null};
309
+ _.t.ja=function(){return this.f.get(_.N)||null};_.t.Xa=function(a){Lh(this,_.Bg,a)};_.t.na=function(a){Lh(this,_.P,a)};_.t.ua=function(a){Lh(this,_.N,a)};_.t.Wa=function(a){Lh(this,_.Bg,a&&a.track)};_.t.ib=function(a){Lh(this,_.P,a&&a.track)};_.t.jb=function(a){Lh(this,_.N,a&&a.track)};_.t.addTextTrack=function(a){var b=this,c;return _.A(function(d){return a.mimeType.match(/text\/vtt/)?(c="External_"+b.w++,b.m[c]=a,Ch(b,a,c),d.H(0)):_.w(d,Dh(b,a),0)})};
310
+ _.t.oh=function(){var a=this,b,c,d;return _.A(function(e){if(1==e.a){b=a.l.getConfiguration();Nh(a,_.P,b.preferredAudioLanguage);c=Fh(a,_.N);if(c.some(function(f){return Mh(f)}))return e.H(2);d=Eh(a,_.N);return _.w(e,new Promise(function(f){a.g.one(d,uc,f);(new _.qh(f)).$(1)}),2)}if(a.o)return e["return"]();Nh(a,_.N,b.preferredTextLanguage);_.z(e)})};_.t.ka=function(){return 1>=this.getVideoTracks().flatMap(function(a){return a.renditions}).length};zh.prototype.isAbrEnabled=zh.prototype.ka;
311
+ zh.prototype.addTextTrack=zh.prototype.addTextTrack;zh.prototype.setTextRendition=zh.prototype.jb;zh.prototype.setAudioRendition=zh.prototype.ib;zh.prototype.setVideoRendition=zh.prototype.Wa;zh.prototype.setTextTrack=zh.prototype.ua;zh.prototype.setAudioTrack=zh.prototype.na;zh.prototype.setVideoTrack=zh.prototype.Xa;zh.prototype.getTextTrack=zh.prototype.ja;zh.prototype.getAudioTrack=zh.prototype.ia;zh.prototype.getVideoTrack=zh.prototype.Ca;zh.prototype.getLoadingTextRendition=zh.prototype.ab;
312
+ zh.prototype.getLoadingAudioRendition=zh.prototype.$a;zh.prototype.getLoadingVideoRendition=zh.prototype.Qa;zh.prototype.getTextRendition=zh.prototype.Ba;zh.prototype.getAudioRendition=zh.prototype.za;zh.prototype.getVideoRendition=zh.prototype.fa;zh.prototype.getTextTracks=zh.prototype.ea;zh.prototype.getAudioTracks=zh.prototype.getAudioTracks;zh.prototype.getVideoTracks=zh.prototype.getVideoTracks;_.t=_.Oh.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(mb);};_.t.end=function(a){if(this.f)return this.f.end(a);if(a<this.a.length)return this.a[a].end;throw Error(mb);};_.t.nb=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.ra=function(){return!this.length||1===this.length&&1E-6>this.end(0)-this.start(0)?null:this.end(this.length-1)};
313
+ _.t.ac=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};
314
+ _.t.xa=function(a,b){b=void 0===b?!1:b;if(!this.length||1===this.length&&1E-6>this.end(0)-this.start(0))return 0;var c=0;if(b){var d=this.ra();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};_.B("clpp.BufferInfo",_.Oh);_.Oh.prototype.bufferedAheadOf=_.Oh.prototype.xa;_.Oh.prototype.isBuffered=_.Oh.prototype.ac;_.Oh.prototype.bufferEnd=_.Oh.prototype.ra;_.Oh.prototype.bufferStart=_.Oh.prototype.nb;_.Oh.prototype.end=_.Oh.prototype.end;
315
+ _.Oh.prototype.start=_.Oh.prototype.start;_.t=_.Ph.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.Uc.on(a,b,c)};_.t.one=function(a,b,c){return this.Uc.one(a,b,c)};_.t.off=function(a,b){return this.Uc.off(a,b)};_.t.addDelegate=function(a){a&&(0<=this.Tc.indexOf(a)||this.Tc.push(a))};_.t.dispatchEvent=function(a){this.trigger(a);return a.defaultPrevented};_.t.removeDelegate=function(a){a&&(a=this.Tc.indexOf(a),0<=a&&this.Tc.splice(a,1))};
316
+ _.t.trigger=function(a){this.Uc.trigger(a);for(var b=_.u(this.Tc),c=b.next();!c.done;c=b.next())c.value.dispatchEvent(a)};_.Ph.prototype.off=_.Ph.prototype.off;_.Ph.prototype.one=_.Ph.prototype.one;_.Ph.prototype.on=_.Ph.prototype.on;_.Ph.prototype.removeEventListener=_.Ph.prototype.removeEventListener;_.Ph.prototype.addEventListener=_.Ph.prototype.addEventListener;_.B("clpp.events.ERROR",_.Zc);_.B("clpp.events.LOADEDMETADATA",_.md);_.B("clpp.events.BUFFERING_ENDED",_.kc);_.B("clpp.events.BUFFERING_STARTED",_.lc);_.B("clpp.events.STATE_CHANGED",_.ie);_.Jh="audiotrackchanged";_.B("clpp.events.AUDIO_TRACK_CHANGED",_.Jh);_.Kh="texttrackchanged";_.B("clpp.events.TEXT_TRACK_CHANGED",_.Kh);_.B("clpp.events.VIDEO_TRACK_CHANGED",_.Me);_.B("clpp.events.BITRATE_CHANGED",_.ic);_.Cp="tracksadded";_.B("clpp.events.TRACKS_ADDED",_.Cp);_.B("clpp.events.LOAD_START",nd);
317
+ _.B("clpp.events.RELEASING",_.Xd);_.B("clpp.events.RELEASED",Wd);_.B("clpp.events.DESTROYING","destroying");_.B("clpp.events.DESTROYED","destroyed");_.B("clpp.events.VIDEO_BUFFER_CHANGED",_.Le);_.B("clpp.events.AUDIO_BUFFER_CHANGED",_.fc);_.B("clpp.events.DOWNLOAD_TRACE","downloadtrace");_.B("clpp.events.DRM_SESSION_UPDATE",_.Sc);_.B("clpp.events.DRM_SESSION_PERSISTED",_.Rc);_.B("clpp.events.DRM_RENEWAL_STARTED",Qc);_.B("clpp.events.DRM_EXPIRATION_UPDATE",_.Pc);
318
+ _.B("clpp.events.AUTOPLAY_NOT_ALLOWED",_.gc);_.B("clpp.events.PLAY",_.Pd);_.B("clpp.events.SEEKING",_.ce);_.B("clpp.events.SEEKED",_.be);_.B("clpp.events.USER_SEEKING",_.Ee);_.B("clpp.events.USER_SEEKED",_.De);_.em={SEEKING:1,NO_DATA:2};_.B("clpp.events.BufferingReasons",_.em);_.B("clpp.events.ADS_TIMELINE_CHANGED",_.Nb);_.B("clpp.events.AD_LOADED",_.Db);_.B("clpp.events.AD_BREAK_STARTED",_.wb);_.B("clpp.events.AD_STARTED",_.Jb);_.B("clpp.events.AD_BUFFERING",_.yb);_.B("clpp.events.AD_PROGRESS",_.Gb);
319
+ _.B("clpp.events.AD_FIRST_QUARTILE",_.Bb);_.B("clpp.events.AD_MIDPOINT",_.Eb);_.B("clpp.events.AD_THIRD_QUARTILE",_.Lb);_.B("clpp.events.AD_PAUSED",_.Fb);_.B("clpp.events.AD_RESUMED",_.Hb);_.B("clpp.events.AD_SKIPPED",_.Ib);_.B("clpp.events.AD_CLICKED",_.zb);_.B("clpp.events.AD_IMPRESSION",_.Cb);_.B("clpp.events.AD_COMPLETED",_.Ab);_.B("clpp.events.AD_STOPPED",_.Kb);_.B("clpp.events.AD_BREAK_STOPPED",_.xb);_.B("clpp.events.CASTING_STARTED",_.oc);_.B("clpp.events.CASTING_ENDED","castingended");
320
+ _.B("clpp.events.CAST_STATUS_CHANGED",_.pc);_.B("clpp.events.AIRPLAY_STATUS_CHANGED",_.Qb);_.B("clpp.events.AIRPLAY_CASTING_STARTED",_.Pb);_.B("clpp.events.AIRPLAY_CASTING_ENDED",_.Ob);_.ig="timeline-cue-added";_.B("clpp.events.TIMELINE_CUE_ADDED",_.ig);_.kg="timeline-cue-enter";_.B("clpp.events.TIMELINE_CUE_ENTER",_.kg);_.lg="timeline-cue-exit";_.B("clpp.events.TIMELINE_CUE_EXIT",_.lg);_.B("clpp.events.MPD_TYPE_CHANGED",_.xd);_.B("clpp.events.VIMOND_RESPONSE",_.Ne);
321
+ _.B("clpp.events.PLAYLIST_ITEM_CHANGED",_.Rd);_.B("clpp.events.PLAYLIST_MODIFIED",_.Sd);_.B("clpp.events.CDN_SWITCH_SUCCESS",_.qc);_.B("clpp.events.ONLINE_STATUS_CHANGED",Hd);_.Qh.prototype.resolve=function(){};_.Qh.prototype.reject=function(){};_.Rh.prototype.abort=function(){this.a=!0;return this.w()};_.Rh.prototype.ld=function(a,b){function c(){e.reject(new _.K(_.M,7,7001));return d.abort()}var d=this,e=new _.Qh;this.O.then(function(f){d.a?e.reject(new _.K(_.M,7,7001)):a?c=Th(a,f,e):e.resolve(f)},function(f){b?c=Th(b,f,e):e.reject(f)});return new _.Rh(e,function(){return c()})};_.Rh.aborted=function(){var a=Promise.reject(new _.K(_.M,7,7001));a["catch"](function(){});return new _.Rh(a,function(){return Promise.resolve()})};
322
+ _.Rh.prototype.chain=_.Rh.prototype.ld;_.Uh.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)};var ai=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;_.t=_.Wh.prototype;_.t.Va="";_.t.kc="";_.t.Ia="";_.t.Hc=null;_.t.ma="";_.t.Xb="";_.t.toString=function(){var a=[],b=this.Va;b&&a.push(di(b,Dp,!0),":");if(b=this.Ia){a.push("//");var c=this.kc;c&&a.push(di(c,Dp,!0),"@");a.push(encodeURIComponent(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Hc;null!=b&&a.push(":",String(b))}if(b=this.ma)this.Ia&&"/"!=b.charAt(0)&&a.push("/"),a.push(di(b,"/"==b.charAt(0)?Ep:Fp,!0));(b=this.a.toString())&&a.push("?",b);(b=this.Xb)&&a.push("#",di(b,Gp));return a.join("")};
323
+ _.t.resolve=function(a){var b=new _.Wh(this);"data"===b.Va&&(b=new _.Wh);var c=!!a.Va;c?Xh(b,a.Va):c=!!a.kc;c?b.kc=a.kc:c=!!a.Ia;c?b.Ia=a.Ia:c=null!=a.Hc;var d=a.ma;if(c)Yh(b,a.Hc);else if(c=!!a.ma){if("/"!=d.charAt(0))if(this.Ia&&!this.ma)d="/"+d;else{var e=b.ma.lastIndexOf("/");-1!=e&&(d=b.ma.substr(0,e+1)+d)}if(".."==d||"."==d)d="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){e=0==d.lastIndexOf("/",0);d=d.split("/");for(var f=[],g=0;g<d.length;){var k=d[g++];"."==k?e&&g==d.length&&f.push(""):
324
+ ".."==k?((1<f.length||1==f.length&&""!=f[0])&&f.pop(),e&&g==d.length&&f.push("")):(f.push(k),e=!0)}d=f.join("/")}}c?b.ma=d:c=""!==a.a.toString();c?Zh(b,$h(a.a)):c=!!a.Xb;c&&(b.Xb=a.Xb);return b};var Dp=/[#\/\?@]/g,Fp=/[#\?:]/g,Ep=/[#\?]/g,ei=/[#\?@]/g,Gp=/#/g;ci.prototype.a=null;ci.prototype.g=null;
325
+ ci.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};
326
+ ci.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")};_.t=_.mi.prototype;_.t.pj=function(a){0<a?_.D("Rate limit set to "+a+"bps"):_.D("Rate limit disabled");this.h=a};_.t.release=function(){return this.j.destroy()};_.t.destroy=function(){this.m=!0;this.f=[];this.g=[];return this.j.destroy()};_.t.tg=function(a){this.f.push(a)};_.t.Ud=function(a){this.g.push(a)};_.t.ij=function(a){this.f=this.f.filter(function(b){return b!==a})};_.t.Ke=function(a){this.g=this.g.filter(function(b){return b!==a})};
327
+ _.t.fetch=function(a){var b=this;if(this.m)return new Xo(Promise.reject(new _.K(1,1,7001,{url:a.uris[a.uriIndex],request:a})));this.h&&0<this.h&&(a.rateLimitBps=this.h);for(var c=[],d=_.u(this.f),e=d.next();!e.done;e=d.next())c.push(e.value);if(a.requestModifiers)for(d=_.u(a.requestModifiers),e=d.next();!e.done;e=d.next())c.push(e.value);a.requestModifiers=c;c=[];d=_.u(this.g);for(e=d.next();!e.done;e=d.next())c.push(e.value);if(a.responseModifiers)for(d=_.u(a.responseModifiers),e=d.next();!e.done;e=
328
+ d.next())c.push(e.value);a.responseModifiers=c;d=c=new _.Qh;try{var f={},g=_.u(a.requestModifiers);for(e=g.next();!e.done;f={Od:f.Od},e=g.next())f.Od=e.value,d=d.then(function(m){return function(n){if(k.a)throw new _.K(_.M,1,7001,n?{url:n.uris[n.uriIndex],request:n}:null);return m.Od(n)||n}}(f))["catch"](function(m){if(m instanceof _.K)throw m;throw new _.K(_.M,1,1006,null,m);});d=d.then(function(m){var n=new _.Wh(m.uris[m.uriIndex]),p=n.Va;p||(p=location.protocol,p=p.slice(0,-1),Xh(n,p),m.uris[m.uriIndex]=
329
+ n.toString());p=b.a[p];if(!p)throw new _.K(_.M,1,1E3,{url:n.toString()});return{request:m,plugin:p}});var k=new Xo(d);g={};var l=_.u(a.responseModifiers);for(e=l.next();!e.done;g={hd:g.hd},e=l.next())g.hd=e.value,k.then(function(m){return function(n){function p(){if(k.a)throw new _.K(_.M,1,7001,n?{url:n.request.uris[n.request.uriIndex],request:n.request}:null);}p();var q=m.hd(n)||n;p();return q}}(g))["catch"](function(m){return function(n){if(n instanceof _.K&&n.data&&n.data.response){var p=m.hd(n.data.response);
330
+ if(p)return p.then(function(){return Promise.reject(n)})}return Promise.reject(n)}}(g))["catch"](function(m){if(m instanceof _.K)throw m;throw new _.K(_.M,1,1007,null,m);});_.Vh(this.j,k);c.resolve(a);return k}catch(m){return new Xo(Promise.reject(m))}};_.mi.prototype.fetch=_.mi.prototype.fetch;_.mi.prototype.removeResponseModifier=_.mi.prototype.Ke;_.mi.prototype.removeRequestModifier=_.mi.prototype.ij;_.mi.prototype.addResponseModifier=_.mi.prototype.Ud;_.mi.prototype.addRequestModifier=_.mi.prototype.tg;
331
+ _.mi.prototype.setRateLimit=_.mi.prototype.pj;var oi=["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"];_.B(Cc,qi);qi.getInfo=_.ji;
332
+ var Ai=null,zi=null,Ci=new _.G(Cc),Li="android",Ii="ios",Qi="linux",Mi="osx",Ni="windows",Oi="tizen",Pi="webos",Hi=Ae,Ti=Ae,Si={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,
323
333
  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,
324
334
  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},
325
- 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}};_.A("clpp.utils.PlayerConfiguration",Pi);Pi.create=_.Ui;var ip=["abort",kc,lc,Rc,"emptied",Sc,_.Uc,_.Vc,"interruptbegin","interruptend",_.id,_.jd,kd,"mozaudioavailable",_.Ld,_.Pd,_.Qd,_.Td,_.Vd,_.be,_.ce,fe,"suspend",_.ve,"volumechange",_.Pe,_.Qe,_.$d,Ve,Ue,Se,Te];_.u(_.Wi,_.Nh);_.h=_.Wi.prototype;_.h.init=function(a,b){this.configuration=this.od=b;this.A=a;this.log.info("Initializing Player surface");var c=this.A.getMedia();this.log.info("Attaching media element listeners");for(var d=_.t(ip),e=d.next();!e.done;e=d.next())e=e.value,this.K.on(c,e,this.Oj,e!==_.Vc);this.sd||(this.sd=this.rf());this.sd.Fb(this);this.A.showMediaElement()};_.h.release=function(){this.J&&(this.J.destroy(),this.J=null);return Promise.resolve()};
326
- _.h.destroy=function(){this.K.release();return Promise.resolve()};_.h.canPlay=function(a,b){return _.Nf[this.namespace()].canPlay(a,b)};
327
- _.h.play=function(){var a=this;if(!this.o)return Promise.reject("No sources specified yet. You need to load content before calling play.");var b=this.A.getMedia().play();return Promise.resolve(b)["catch"](function(c){a.log.info("Caught play promise exception",c);var d=c.message||"",e=c.stack||"";"NotAllowedError"===(c.name||"")&&(0===e.indexOf(_.Pd)||0<=d.indexOf(_.Pd))&&(a.trigger(new _.E(_.ec)),a.log.warn(_.ja));throw c;})};
328
- _.h.pause=function(){var a=this;return this.o?new Promise(function(b,c){var d=a.getState();if(d!==_.El&&d!==_.Gl&&d!==_.Nl&&d!==_.Ml)c();else if(a.A.getMedia().pause(),a.getState()===_.Nl)a.K.one(a,_.he,function(){b()});else b()}):Promise.reject("No sources specified yet. You need to load content before calling pause.")};_.h.isPaused=function(){return this.A.getMedia().paused};_.h.isEnded=function(){return this.A.getMedia().ended};_.h.getConfiguration=function(){return this.configuration};
329
- _.h.setDrmCustomDataModifier=function(a){this.zc=a};_.h.setCdnErrorCallback=function(a){this.Ma=a};_.h.Cc=function(){return this.zc};_.h.getSurface=function(){return this.A};_.h.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.Mh(b?b.buffered:void 0,a)};_.h.getPosition=function(){var a=this.A.getMedia();if(a)return a.currentTime;this.log.warn("No media element available, can not report current time!");return 0};
330
- _.h.seek=function(a){var b=this,c=this.getPosition();if(void 0===a||null===a||typeof a!==_.zd||a===c)return Promise.resolve();var d=this.A.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 k(){if(d.readyState>HTMLMediaElement.HAVE_NOTHING)m();else b.K.one(d,_.jd,m)}function l(n){var p=b.getPosition(),
331
- q=.1>=Math.abs(a-p),r=.25<p-a,x=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,y=n.type===_.be,C=n.type===_.Td,I=n.type===_.ve,F=C&&x;r=y||q&&F||I&&r;b.log.debug("Checking seeking state after "+n.type+" event. Seek completed:",r,"Current Time:",p,"Target Time:",a,"Native Event:",y,"Time reached",q,"Timeupdate:",I,"Progress:",C,"ReadyState:",x,"Progress Ready:",F);r?(b.qe=!1,b.Bd=!1,b.K.off(d,_.be,l),b.K.off(d,_.ve,l),b.K.off(d,_.Td,l),b.Xf(),b.trigger(new _.E(_.Ce)),f()):C&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
332
- d.currentTime=a)}function m(){b.trigger(new _.E(_.De));b.K.on(d,_.be,l);b.K.on(d,_.ve,l);b.K.on(d,_.Td,l);b.log.info("Seeking to "+a+". Delta "+e);b.qe=!0;b.Bd=!0;d.currentTime=a}b.getState()===_.zl?(b.log.debug("Player is in IDLE state. Postpone seek."),b.K.one(b,_.he,function(){switch(b.getState()){case _.El:case _.Nl:case _.Ml:b.log.debug("Valid seek state reached.");k();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):k()})};
333
- _.h.getVolume=function(){var a=this.A.getMedia();if(a)return a.volume;this.log.warn("No media element available, can not report volume!");return null};_.h.setVolume=function(a){var b=this.A.getMedia();b?_.H.la(a)?0>a||1<a?this.log.warn(la+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(la+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.h.isMuted=function(){return this.A.getMedia().muted};
334
- _.h.setMuted=function(a){var b=this.A.getMedia();typeof a===_.hc&&(b.muted=a)};_.h.getDuration=function(){return this.o?this.A.getMedia().duration:-1};_.h.getTrackManager=function(){return this.sd};_.h.getPlaybackRate=function(){var a=this.A.getMedia();return a&&a.playbackRate||1};_.h.setPlaybackRate=function(a){var b=this.A.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.h.setSourceIndex=function(a){this.qd=a};_.h.getSourceIndex=function(){return this.qd};
335
- _.h.getLoadedSource=function(){return this.o&&-1!==this.qd?this.o[this.qd]:null};_.h.getPeriods=function(){return[]};_.h.getNetworkEngine=function(){return this.Kf};_.h.setNetworkEngine=function(a){this.Kf=a};_.h.getTextDisplayer=function(){return this.J};_.h.getTimelineCues=function(){return[]};_.h.resetAbr=function(){};
336
- _.h.uj=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.ve||a.type===_.Td)this.lg.debug(d);else{var e="";switch(a.type){case _.Vd:e="Rate: "+this.getPlaybackRate();break;case Rc:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.Pd:case _.Qd:case "suspend":case _.Pe:case fe:case _.ce:case _.be:case _.ve:case _.Td:case kc:case lc:b=
337
- this.getBufferInfo().xa(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.$d:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.lg.info(d)}a.type!==_.Vc&&this.trigger(new _.E(a.type,{detail:a}))};_.h.Xf=function(){};_.Wi.prototype.getTextDisplayer=_.Wi.prototype.getTextDisplayer;_.Wi.prototype.setNetworkEngine=_.Wi.prototype.setNetworkEngine;_.Wi.prototype.getNetworkEngine=_.Wi.prototype.getNetworkEngine;var aj;aj=new _.D("clpp.Components");_.Xi=new Map;_.A("clpp.utils.Uint8ArrayUtils",_.dj);_.dj.toStandardBase64=_.ej;_.dj.concat=_.kj;_.dj.equal=_.jj;_.dj.toHex=_.ij;_.dj.fromHex=_.hj;_.dj.fromBase64=_.gj;_.dj.toBase64Url=_.fj;lj.prototype.release=function(){this.a=this.f=null};var jp={SW_SECURE_CRYPTO:_.fb,SW_SECURE_DECODE:_.gb,HW_SECURE_CRYPTO:Ea,HW_SECURE_DECODE:Fa,HW_SECURE_ALL:"HW_SECURE_ALL"};_.A("clpp.drm.WidevineRobustnessLevel",jp);_.A("clpp.drm.RobustnessLevel",jp);_.A("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.A("clpp.drm.KeySystem",{NONE:_.yd,CLEAR_KEY:_.Jd,WIDEVINE:_.Fc,PLAYREADY:_.Ec,FAIRPLAY:_.Dc,PRIMETIME:_.Cc});_.pj={};_.A("clpp.drm.registerDrmEnvironment",_.qj);var tj={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,
335
+ 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}};_.B("clpp.utils.PlayerConfiguration",Ui);Ui.create=_.Zi;var Hp=["abort",mc,nc,Uc,"emptied",Wc,_.Yc,_.Zc,"interruptbegin","interruptend",_.ld,_.md,nd,"mozaudioavailable",_.Ld,_.Pd,_.Qd,_.Td,_.Vd,_.be,_.ce,ge,"suspend",_.we,"volumechange",_.Qe,_.Re,_.$d,We,Ve,Te,Ue];_.v(_.cj,_.Ph);_.t=_.cj.prototype;_.t.init=function(a,b){this.configuration=this.pd=b;this.A=a;this.log.info("Initializing Player surface");var c=this.A.getMedia();this.log.info("Attaching media element listeners");for(var d=_.u(Hp),e=d.next();!e.done;e=d.next())e=e.value,this.K.on(c,e,this.xj,e!==_.Zc);this.td||(this.td=this.rf());this.td.initialize(this);this.A.showMediaElement()};_.t.release=function(){this.J&&(this.J.destroy(),this.J=null);return Promise.resolve()};
336
+ _.t.destroy=function(){this.K.release();return Promise.resolve()};_.t.canPlay=function(a,b){return _.Of[this.namespace()].canPlay(a,b)};
337
+ _.t.play=function(){var a=this;if(!this.o)return Promise.reject("No sources specified yet. You need to load content before calling play.");var b=this.A.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||""};pi(d)?(a.trigger(new _.I(_.gc)),a.log.warn(_.ka)):d.name===Wa&&a.log.warn('Unrecognized "NotAllowedError" on play(). '+(c.name+": "+c.message));throw c;})};
338
+ _.t.pause=function(){var a=this;return this.o?new Promise(function(b,c){var d=a.getState();if(d!==_.bm&&d!==_.dm&&d!==_.km&&d!==_.jm)c();else if(a.A.getMedia().pause(),a.getState()===_.km)a.K.one(a,_.ie,function(){b()});else b()}):Promise.reject("No sources specified yet. You need to load content before calling pause.")};_.t.isPaused=function(){return this.A.getMedia().paused};_.t.isEnded=function(){return this.A.getMedia().ended};_.t.getConfiguration=function(){return this.configuration};
339
+ _.t.setDrmCustomDataModifier=function(a){this.zc=a};_.t.setCdnErrorCallback=function(a){this.Oa=a};_.t.Cc=function(){return this.zc};_.t.getSurface=function(){return this.A};_.t.getBufferInfo=function(a){var b=this.getSurface().getMedia();return new _.Oh(b?b.buffered:void 0,a)};_.t.getPosition=function(){var a=this.A.getMedia();if(a)return a.currentTime;this.log.warn("No media element available, can not report current time!");return 0};
340
+ _.t.seek=function(a){var b=this,c=this.getPosition();if(void 0===a||null===a||typeof a!==_.h||a===c)return Promise.resolve();var d=this.A.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 k(){if(d.readyState>HTMLMediaElement.HAVE_NOTHING)m();else b.K.one(d,_.md,m)}function l(n){var p=b.getPosition(),
341
+ q=.1>=Math.abs(a-p),r=.25<p-a,x=d.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA,y=n.type===_.be,C=n.type===_.Td,H=n.type===_.we,F=C&&x;r=y||q&&F||H&&r;b.log.debug("Checking seeking state after "+n.type+" event. Seek completed:",r,"Current Time:",p,"Target Time:",a,"Native Event:",y,"Time reached",q,"Timeupdate:",H,"Progress:",C,"ReadyState:",x,"Progress Ready:",F);r?(b.pe=!1,b.Cd=!1,b.K.off(d,_.be,l),b.K.off(d,_.we,l),b.K.off(d,_.Td,l),b.Xf(),b.trigger(new _.I(_.De)),f()):C&&c===p&&(b.log.debug("Seek seemed to have been ignored. Trying again"),
342
+ d.currentTime=a)}function m(){b.trigger(new _.I(_.Ee));b.K.on(d,_.be,l);b.K.on(d,_.we,l);b.K.on(d,_.Td,l);b.log.info("Seeking to "+a+". Delta "+e);b.pe=!0;b.Cd=!0;d.currentTime=a}b.getState()===_.Xl?(b.log.debug("Player is in IDLE state. Postpone seek."),b.K.one(b,_.ie,function(){switch(b.getState()){case _.bm:case _.km:case _.jm:b.log.debug("Valid seek state reached.");k();break;default:b.log.warn("Invalid seek target state. Aborting seek"),g()}})):k()})};
343
+ _.t.getVolume=function(){var a=this.A.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.A.getMedia();b?_.J.la(a)?0>a||1<a?this.log.warn(ma+a+".\n Value must be between 0 and 1."):b.volume=a:this.log.warn(ma+a+". Volume must be a number"):this.log.warn("No media element available, can not set volume !")};_.t.isMuted=function(){return this.A.getMedia().muted};
344
+ _.t.setMuted=function(a){var b=this.A.getMedia();typeof a===_.jc&&(b.muted=a)};_.t.getDuration=function(){return this.o?this.A.getMedia().duration:-1};_.t.getTrackManager=function(){return this.td};_.t.getPlaybackRate=function(){var a=this.A.getMedia();return a&&a.playbackRate||1};_.t.setPlaybackRate=function(a){var b=this.A.getMedia();void 0!==a&&b&&(b.playbackRate=a)};_.t.setSourceIndex=function(a){this.rd=a};_.t.getSourceIndex=function(){return this.rd};
345
+ _.t.getLoadedSource=function(){return this.o&&-1!==this.rd?this.o[this.rd]:null};_.t.getPeriods=function(){return[]};_.t.getNetworkEngine=function(){return this.Kf};_.t.setNetworkEngine=function(a){this.Kf=a};_.t.getTextDisplayer=function(){return this.J};_.t.getTimelineCues=function(){return[]};_.t.resetAbr=function(){};
346
+ _.t.gj=function(a){var b=this.getSurface().getMedia(),c=this.getPosition(),d="Received Video Element Event: '"+a.type+"' with playhead at: "+c;if(a.type===_.we||a.type===_.Td)this.lg.debug(d);else{var e="";switch(a.type){case _.Vd:e="Rate: "+this.getPlaybackRate();break;case Uc:e="Duration: "+this.getDuration();break;case "volumechange":e="Volume: "+this.getVolume()+" Muted: "+this.isMuted();break;case _.Pd:case _.Qd:case "suspend":case _.Qe:case ge:case _.ce:case _.be:case _.we:case _.Td:case mc:case nc:b=
347
+ this.getBufferInfo().xa(c);e="State "+this.getSurface().getMedia().readyState+" Buffer: "+b;break;case _.$d:null!=b&&(e="Size: "+b.videoWidth+"x"+b.videoHeight)}e&&(d+=". "+e);this.lg.info(d)}a.type!==_.Zc&&this.trigger(new _.I(a.type,{detail:a}))};_.t.Xf=function(){};_.cj.prototype.getTextDisplayer=_.cj.prototype.getTextDisplayer;_.cj.prototype.setNetworkEngine=_.cj.prototype.setNetworkEngine;_.cj.prototype.getNetworkEngine=_.cj.prototype.getNetworkEngine;var fj;fj=new _.G("clpp.Components");_.dj=new Map;_.B("clpp.utils.Uint8ArrayUtils",_.ij);_.ij.toStandardBase64=_.jj;_.ij.concat=_.pj;_.ij.equal=_.oj;_.ij.toHex=_.nj;_.ij.fromHex=_.mj;_.ij.fromBase64=_.lj;_.ij.toBase64Url=_.kj;qj.prototype.release=function(){this.a=this.f=null};var Ip={SW_SECURE_CRYPTO:_.gb,SW_SECURE_DECODE:_.hb,HW_SECURE_CRYPTO:Ea,HW_SECURE_DECODE:Fa,HW_SECURE_ALL:"HW_SECURE_ALL"};_.B("clpp.drm.WidevineRobustnessLevel",Ip);_.B("clpp.drm.RobustnessLevel",Ip);_.B("clpp.drm.PlayreadyRobustnessLevel",{SL150:"150",SL2000:"2000",SL3000:"3000"});_.B("clpp.drm.KeySystem",{NONE:_.Ad,CLEAR_KEY:_.Jd,WIDEVINE:_.Ic,PLAYREADY:_.Hc,FAIRPLAY:_.Gc,PRIMETIME:_.Fc});_.uj={};_.B("clpp.drm.registerDrmEnvironment",_.vj);var yj={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,
338
348
  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,
339
349
  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,
340
350
  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,
@@ -348,71 +358,73 @@ this.getBufferInfo().xa(c);e="State "+this.getSurface().getMedia().readyState+"
348
358
  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,
349
359
  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,
350
360
  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,
351
- 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]};_.vj.prototype.Fa=function(a,b){this.g[a]=b};_.A("clpp.drm.DrmEnvironment",_.vj);_.vj.prototype.setDrmSystem=_.vj.prototype.Fa;_.xj.prototype.getPosition=function(){return this.a};_.xj.prototype.Ba=function(){return this.f.byteLength};_.xj.prototype.seek=function(a){(0>a||a>this.f.byteLength)&&_.yj();this.a=a};_.xj.prototype.seek=_.xj.prototype.seek;_.Aj.prototype.getPosition=function(){return this.a};_.Aj.prototype.Ba=function(){return this.f.byteLength};_.Aj.prototype.skip=function(a){this.a+a>this.f.byteLength&&_.Cj();this.a+=a};_.Aj.prototype.seek=function(a){if(0>a||a>this.f.byteLength)throw _.Cj();this.a=a};_.A("clpp.utils.url.queryString",_.Kj);_.A("clpp.utils.FairplayUtils",Mj);Mj.parseFairPlayResponse=_.Rj;Mj.formatFairPlayRequest=_.Qj;Mj.createFairplayPayload=Pj;Mj.extractContentId=_.Oj;Mj.extractExtXKeyUri=Nj;var ck=new _.D("clpp.drm.DrmToday"),Tj="PRODUCTION",Uj="STAGING",Vj="TEST",kp={PRODUCTION:Tj,STAGING:Uj,TEST:Vj};_.A("clpp.drm.DrmToday.Environment",kp);_.A("clpp.drm.DrmToday.WidevineCertificates",{V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"});
352
- for(var Xj="/license-proxy-widevine/cenc/",Yj="/license-proxy-headerauth/drmtoday/RightsManager.asmx",Zj="/license-server-fairplay/",kk={"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",
353
- 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"},lp={video:[_.gb,void 0],audio:[_.fb,void 0]},mp={video:["3000"],
354
- audio:["2000"]},np=_.t(Object.keys(kp)),op=np.next();!op.done;op=np.next()){var Sj=op.value,pp=ua;Sj!==Tj&&(pp+="_"+Sj);var qp=new _.vj(pp),rp=null;switch(Sj){case Tj:rp=uj("V1_PROD");break;case Uj:rp=uj("V2");break;case Vj:rp=null}qp.Fa(_.Fc,{licenseUrl:ak(_.Fc),videoRobustness:lp.video,audioRobustness:lp.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:rp,modifiers:{licenseRequest:_.ek,licenseResponse:_.jk}});qp.Fa(_.Dc,{licenseUrl:ak(_.Dc),certificateUrl:Wj()+
355
- "/license-server-fairplay/cert/",modifiers:{licenseRequest:_.gk,licenseResponse:_.hk,extractContentId:_.dk,certificateRequest:_.ik}});qp.Fa(_.Ec,{licenseUrl:ak(_.Ec),videoRobustness:mp.video,audioRobustness:mp.audio,modifiers:{licenseRequest:fk}});_.qj(qp)};_.A("clpp.drm.eme.EmeFactory",mk);var nk=[];mk.Apis={STANDARD:db,APPLE:"APPLE",WEBKIT:"WEBKIT",NOP:"NOP"};_.h=_.qk.prototype;_.h.M=function(a,b){var c=uk(a);this.g[c]=sp;this.f[c]=b;return this};_.h.V=function(a,b){var c=uk(a);this.g[c]=tp;this.f[c]=b;return this};_.h.stop=function(){this.a=!0};_.h.parse=function(a,b){var c=_.Q(a);c=new _.Aj(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.Bj(c)&&!this.a;)this.Fd(0,c,b)};
356
- _.h.Fd=function(a,b,c){var d=b.getPosition(),e=_.Ej(b),f=_.Ej(b),g=!1;this.h.debug("Parsing MP4 box",_.vk(f));switch(e){case 0:e=b.Ba()-d;break;case 1:e=_.Gj(b),g=!0}var k=this.f[f];if(k){var l=null,m=null;this.g[f]==tp&&(m=_.Ej(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.Ba()&&(n=b.Ba());n-=b.getPosition();b=0<n?_.Hj(b,n):new Uint8Array(0);b=new _.Aj(new DataView(b.buffer,b.byteOffset,b.byteLength),!1);k({cb:this,Zf:c||!1,version:l,flags:m,F:b,size:e,start:d+a,le:f,ni:g})}else a=
357
- Math.min(d+e-b.getPosition(),b.Ba()-b.getPosition()),b.skip(a)};_.A("clpp.utils.Mp4Parser",_.qk);_.qk.typeToString=_.vk;_.qk.allData=_.tk;_.qk.sampleDescription=_.sk;_.qk.children=_.rk;_.qk.prototype.parseNext=_.qk.prototype.Fd;_.qk.prototype.parse=_.qk.prototype.parse;_.qk.prototype.stop=_.qk.prototype.stop;_.qk.prototype.fullBox=_.qk.prototype.V;_.qk.prototype.box=_.qk.prototype.M;_.qk.headerSize=_.wk;var sp=0,tp=1;xk.prototype.h=function(a){if(1<a.version)_.B("Unrecognized PSSH version found!");else{var b=_.ij(_.Hj(a.F,16)),c=[];if(0<a.version)for(var d=_.Ej(a.F),e=0;e<d;++e){var f=_.ij(_.Hj(a.F,16));c.push(f)}d=_.Ej(a.F);a.F.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.F.getPosition()!=a.F.Ba()&&_.B("Mismatch between box size and data size!")}};_.h=_.Bk.prototype;_.h.destroy=function(){var a=this;return _.z(function(b){if(1==b.a){if(a.j)return _.v(b,a.Ha,0);a.j=!0;return _.v(b,Dk(a),4)}a.Ha.resolve();return b.H(0)})};_.h.keySystem=function(){return this.f?_.Zk(this.f.keySystem):""};_.h.getDrmInfo=function(){return this.f};_.h.Wf=function(a){var b=this;return _.z(function(c){return b.D&&b.K===Ek?c["return"]():!b.h.delayLicenseRequestUntilPlayed||b.B&&!b.B.paused||b.Ma?_.v(c,hl(b,a),0):(b.ca.push(a),c.H(0))})};
358
- _.h.Sf=function(a){var b=this,c=a.target;this.a.debug("Key status changed for session",c.sessionId);var d=this.g.get(c),e=!1;c.keyStatuses.forEach(function(f,g){if(typeof g==_.le){var k=g;g=f;f=k}if(el(b.f.keySystem)&&16===g.byteLength&&_.ni()){k=_.Og(g);var l=k.getUint32(0,!0),m=k.getUint16(4,!0),n=k.getUint16(6,!0);k.setUint32(0,l,!1);k.setUint16(4,m,!1);k.setUint16(6,n,!1)}f!=ie&&(d.loaded=!0);"expired"==f&&(e=!0);var p=_.ij(_.Q(g));b.a.debug("Key status for",p,f);b.kb.set(p,f);d&&!d.keyId&&b.g.forEach(function(q,
359
- r){r===c||q.keyId!==p||q.loaded||(q.loaded=!0)})});a=c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.ib&&(this.a.debug("Session has expired",c.sessionId),(a=this.g.get(c))&&a.yc&&a.yc.stop(),this.g["delete"](c),c.close()["catch"](function(){}));al(this)&&(this.G.resolve(),1!==this.g.size||e?this.aa.$(.5):zk(this))};var Ek=0,yk=3;il.prototype.W=function(){};il.prototype.create=function(){};_.A("clpp.text.TextDisplayerFactory",il);il.prototype.create=il.prototype.create;il.prototype.isSupported=il.prototype.W;var jl=new Map,kl=new _.D("clpp.text");il.Type={HTML:"html",NATIVE:_.xd,SINGLE_NATIVE:_.ee};_.Yl={VIDEO:_.He,AUDIO:_.Zb,TEXT:_.se,Pj:_.Pb,Xj:_.ad,$j:_.oe};_.up=1/15;_.ul.prototype.getStats=function(){return{width:this.j,height:this.f,streamBandwidth:this.A,decodedFrames:this.g,droppedFrames:this.h,corruptedFrames:this.B,estimatedBandwidth:this.m,loadLatency:this.o,playTime:ql(this.a,_.Nl),pauseTime:ql(this.a,_.Ml),bufferingTime:ql(this.a,_.El),stateHistory:rl(this.a),switchHistory:tl(this.w)}};_.wl.prototype.value=function(){void 0==this.a&&(this.a=this.f());return this.a};var xl=new _.wl(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.jd],[HTMLMediaElement.HAVE_CURRENT_DATA,_.id],[HTMLMediaElement.HAVE_FUTURE_DATA,kc],[HTMLMediaElement.HAVE_ENOUGH_DATA,lc]])});Cl.prototype.Qb=function(a,b){this.l&&this.l.trigger(new _.E(a,{detail:b}))};Cl.prototype.getState=function(){return Fl(this,"")};Cl.prototype.S=function(a){(a=a&&a.detail)&&a.severity&&a.severity===_.K&&Jl(this,_.Kl)};Cl.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.l.namespace());this.a.release()};_.A("clpp.version",_.da);_.A("clpp.name",_.na);_.A("clpp.Type",{DASH:_.Rb,HLS:_.Xb,SMOOTH_STREAMING:_.Wb,MP4:_.Je});_.fg="scte35";_.dg=ze;_.A("clpp.TimelineCueType",{SCTE35:_.fg,DASH_CALLBACK:_.ud,UNKNOWN:_.dg});_.A("clpp.utils.media.detectType",Pl);var Sl=new _.D("clpp.sources");_.u(Tl,_.Wi);_.h=Tl.prototype;_.h.init=function(a,b){_.Wi.prototype.init.call(this,a,b);this.h=new Cl(this);Jl(this.h,_.zl)};_.h.namespace=function(){return yc};
360
- _.h.unload=function(){var a=this,b;return _.z(function(c){if(!a.o)return c.H(0);a.log.debug(_.bb,a.o);a.C&&(a.C.stop(),a.C=null);(b=a.getTrackManager())&&b.release();a.B&&(a.B.destroy(),a.B=null);a.J&&(a.J.destroy(),a.J=null);a.j&&a.j.release();a.m&&(a.m.destroy(),a.m=null);_.Zf(a.g);a.f&&(a.f=new _.ul);a.D=null;a.o=null;a.G=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());return _.v(c,Xl(a),0)})};
361
- _.h.release=function(){var a=this;return _.Wi.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.h&&Jl(a.h,_.zl)})};
362
- _.h.destroy=function(){var a=this;if(this.w)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.w=!0;return _.Wi.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(va);var b=a.getTrackManager();b&&b.destroy();a.j&&(a.j.destroy()["catch"](function(c){a.log.warn("Error while disposing metadata handler",c)}),a.j=null);a.h&&(a.h.destroy(),a.h=null);a.f=null})};_.h.getDrmInfo=function(){return this.m?this.m.getDrmInfo():null};
363
- _.h.load=function(a){var b=this,c,d,e,f,g;return _.z(function(k){switch(k.a){case 1:if(b.w)return k["return"](Ul());if(!b.getSurface()||!b.getSurface().getMedia())return k["return"](Promise.reject("No surface or no media element in surface"));c=_.H;d=b.A.getMedia();b.I=Date.now()/1E3;b.f=new _.ul;b.g.on(b,_.he,function(){b.f&&_.pl(b.f.a,b.getState())});Jl(b.h,_.Ll);b.o=_.Rl(a);_.Vi(a)&&(b.configuration=_.Ui(b.od,a));b.log.debug(_.La,b.configuration);b.log.debug(_.Ya,b.o);e=_.ml(b.configuration,["html",
364
- _.xd]);b.J=e.create(b);b.J.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.$i(_.pe)&&!_.ui()&&(b.B=new ug(b),b.B.start(d));b.j?b.j.release():b.j=new ag(b);cg(b.j,d);f=b.getTrackManager();f.load();d.loop=!!b.configuration.loop;c.R(b.configuration.volume)||b.setVolume(b.configuration.volume);c.R(b.configuration.muted)||b.setMuted(b.configuration.muted);b.g.one(d,kc,function(){b.trigger(new _.E(_.dp))});_.qf(k,2);return _.v(k,Wl(b,d),4);case 4:return _.v(k,Zl(b),5);case 5:return _.v(k,am(b).N,
365
- 6);case 6:_.rf(k,0);break;case 2:g=_.sf(k),b.G=!1,b.onError(g),_.w(k)}})};_.h.onError=function(a){this.G||(a.severity===_.K&&null!==this.h&&Jl(this.h,_.Kl),this.trigger(new _.E(_.Vc,{detail:a})))};_.h.rf=function(){return new xh};_.h.getState=function(){return null!==this.h?this.h.getState().currentState:_.Al};
366
- _.h.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!"),0):a.getTime()/1E3}return 0};_.h.getSeekRange=function(){var a=this.getSurface().getMedia();if(a&&a.src){a=a.seekable;if(a.length)return this.D=a={start:a.start(0),end:a.end(a.length-1)};if(this.D)return this.D}return{start:0,end:0}};
367
- _.h.isLive=function(){return this.a&&this.a.src?Infinity===this.a.duration:!1};_.h.getStats=function(){if(!this.f||!this.a)return _.vl();this.f&&_.pl(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.j=a.videoWidth;b.f=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.h=Number(a.droppedVideoFrames),b.g=c,this.f.B=Number(a.corruptedVideoFrames));return this.f.getStats()};
368
- _.h.getTimelineCues=function(){return this.j?this.j.getTimelineCues():[]};bm.prototype.a=function(){return yc};bm.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.Rb,e=c===_.Wb,f=c===_.Xb;return _.ri()||d||e||f&&!_.si()?0:""!==xi().canPlayType(c)?f&&_.si()&&window.MediaSource&&MediaSource.isTypeSupported&&!b.streaming.preferNativeHlsOnSafari?1:2:0};bm.prototype.create=function(){return new Tl};_.Pf(new bm);_.A("clpp.ads.PodType",{PREROLL:0,MIDROLL:1,POSTROLL:2});_.A("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1});_.A("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var dm=new _.D("clpp.ads"),cm=[];_.A("clpp.utils.dom.createHTMLElement",_.pm);_.h=sm.prototype;_.h.getMedia=function(){return this.a};_.h.getContainer=function(){return this.f};_.h.getCastElement=function(){return this.j};_.h.isFullscreen=function(){return!!document.fullscreenElement};_.h.hideMediaElement=function(){var a=this.getMedia();a?_.im(a,uc):this.h.debug("No media element available that could be hidden")};_.h.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(uc):this.h.debug("No media element available that could be shown")};
369
- _.h.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&&_.im(a,_.tc);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};_.h.removeElementFromContainer=function(a){var b=this.getContainer();if(!b)throw Error("No container is available. Unable to remove element");b.removeChild(a)};_.h.hide=function(a){_.im(a,uc)};_.h.show=function(a){a.classList.remove(uc)};_.h.release=function(){this.m.release()};
370
- sm.prototype.removeElementFromContainer=sm.prototype.removeElementFromContainer;sm.prototype.addElementToContainer=sm.prototype.addElementToContainer;sm.prototype.getCastElement=sm.prototype.getCastElement;sm.prototype.getContainer=sm.prototype.getContainer;sm.prototype.getMedia=sm.prototype.getMedia;var qm={disableContainer:!1,crossorigin:"anonymous",containerEl:null};wm.prototype.release=function(){this.a.release();Am(this);this.l=null};_.A("clpp.polyfill.installAll",Dm);var Cm=[];_.A("clpp.polyfill.register",_.Em);Gm.prototype.verify=function(a,b){var c={kty:"RSA",n:a.n,e:a.e},d=this.g+"."+this.f,e=this.h;return new Promise(function(f,g){try{var k=window&&window.crypto&&window.crypto.subtle}catch(m){}if(k){var l={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};k.importKey("jwk",c,l,!1,["verify"]).then(function(m){var n=_.Vg(d),p=_.gj(e);return k.verify(l,m,p.buffer,n.buffer)}).then(function(m){m?f():g(jb)})["catch"](g)}else b?g("Web Crypto API is not supported"):f()})};var vp={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},Qi="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";Hm.prototype.verify=function(){var a=this;return(new Promise(function(b,c){try{var d=Im(a);b(d)}catch(e){c()}})).then(function(b){return b.verify(vp)})["catch"](function(b){if(b&&b!==jb){var c=window.location.href;var d=new _.Uh(c);c=d.Ta||d.Ia?d:new _.Uh("//"+c);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(c.Ia))return Promise.resolve()}throw b;})};var Tm="vod",Sm="live";_.u(S,_.Nh);_.h=S.prototype;_.h.init=function(){};_.h.onError=function(a){if(null!==this.a)this.a.onError(a);else this.trigger(new _.E(_.Vc,{detail:a}))};_.h.Zb=function(a){a=this.L[a];void 0===a&&(a=null);return a};_.h.getSurface=function(){return this.h};_.h.getConfiguration=function(){return _.H.ya(this.f)};_.h.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.h.unload=function(){return this.a?this.a.unload():Promise.resolve()};
371
- _.h.release=function(){var a=this;if(null!=this.m)return this.g.info("Player release already in progress"),this.m;this.g.debug("Releasing player");this.m=$m(this);return this.m["finally"](function(){a.g.debug("Player released");a.m=null})};
372
- _.h.destroy=function(){var a=this;if(this.D)return this.g.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.D=!0;return this.release().then(function(){a.g.debug(va);a.trigger(new _.E("destroying"));return a.gc(_.Ed)}).then(function(){a.a&&a.a.removeDelegate(a);a.Tc.clear();a.U.release();if(a.a)return a.a.destroy()}).then(function(){cj(function(b){b.va()});_.Xi.clear();a.a=null;a.trigger(new _.E("destroyed"))})};
373
- _.h.load=function(a){var b=this,c;return _.z(function(d){switch(d.a){case 1:return _.qf(d,2),_.v(d,_.cn(b,a),4);case 4:return _.v(d,_.dn(b),5);case 5:return _.v(d,_.fn(b),6);case 6:_.rf(d,0);break;case 2:c=_.sf(d);if(b.m)throw b.g.info("Load interrupted while a player release is pending"),new _.J(_.K,7,7E3);throw c;}})};
374
- _.h.gc=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(_.af(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};_.h.use=function(a){a=new a;a.Ea(this);_.bj(a)};_.h.remove=function(a){if(this.getState()<=_.zl||this.I){var b="";cj(function(c){c instanceof a&&(b=c.id(),c.va())});if(b)return _.Xi["delete"](b),this.J=!0}return!1};
375
- _.h.play=function(){return this.a?this.j&&this.a.namespace()!==_.wc?this.j.start(this.a):this.a.play():Promise.reject("No player initialized. You need to load content before calling play.")};_.h.pause=function(){return this.a?this.a.pause():Promise.reject("No player initialized. You need to load content before calling pause.")};_.h.getTrackManager=function(){return this.a&&this.a.getTrackManager()};_.h.getBufferInfo=function(a){return this.a?this.a.getBufferInfo(a):new _.Mh};
376
- _.h.getState=function(){return this.a?this.a.getState():_.zl};_.h.getPeriods=function(){return this.a?this.a.getPeriods():[]};_.h.isEnded=function(){return this.a&&this.a.isEnded()||!1};_.h.isPaused=function(){return this.a&&this.a.isPaused()||!1};_.h.getPosition=function(){return this.a?this.a.getPosition():0};_.h.seek=function(a){return this.getState()===_.Kl?Promise.reject("Cannot seek in current state."):this.a?this.a.seek(a):Promise.reject("delegate does not exist")};
377
- _.h.getPresentationStartTime=function(){return this.a?this.a.getPresentationStartTime():0};_.h.getSeekRange=function(){return this.a?this.a.getSeekRange():{start:0,end:0}};_.h.getVolume=function(){return this.a?this.a.getVolume():null};_.h.setVolume=function(a){this.a&&this.a.setVolume(a)};_.h.getDuration=function(){return this.a?this.a.getDuration():-1};_.h.getAdsManager=function(){return this.j};_.h.namespace=function(){return this.a&&this.a.namespace()||"Undefined"};
378
- _.h.canPlay=function(a,b){return this.a?this.a.canPlay(a,b):0};_.h.getPlaybackRate=function(){return this.a?this.a.getPlaybackRate():1};_.h.setPlaybackRate=function(a){this.a&&this.a.setPlaybackRate(a)};_.h.isMuted=function(){return this.a&&this.a.isMuted()||!1};_.h.setMuted=function(a){this.a&&this.a.setMuted(a)};_.h.getNetworkEngine=function(){return this.G};_.h.setNetworkEngine=function(a){this.G=a};_.h.getTextDisplayer=function(){return this.a&&this.a.getTextDisplayer()};
379
- _.h.isLive=function(){return!!this.a&&this.a.isLive()};_.h.getStats=function(){return this.a?this.a.getStats():null};_.h.vd=function(){return Object.freeze(this.o)};_.h.setSourceIndex=function(a){this.a&&this.a.setSourceIndex(a)};_.h.getSourceIndex=function(){return this.a?this.a.getSourceIndex():-1};_.h.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};_.h.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.h.resetAbr=function(){this.a&&this.a.resetAbr()};
380
- _.h.setDrmCustomDataModifier=function(a){this.zc=a;bn(this)};_.h.setCdnErrorCallback=function(a){this.C=a;this.a&&this.a.setCdnErrorCallback(this.C)};_.h.Mf=function(){this.be=!0};_.A("clpp.Player",S);S.registerPlugin=_.gn;S.prototype.setCdnErrorCallback=S.prototype.setCdnErrorCallback;S.prototype.setDrmCustomDataModifier=S.prototype.setDrmCustomDataModifier;S.prototype.resetAbr=S.prototype.resetAbr;S.prototype.getTimelineCues=S.prototype.getTimelineCues;S.prototype.getLoadedSource=S.prototype.getLoadedSource;
381
- S.prototype.getSources=S.prototype.vd;S.prototype.getStats=S.prototype.getStats;S.prototype.isLive=S.prototype.isLive;S.prototype.getTextDisplayer=S.prototype.getTextDisplayer;S.prototype.setNetworkEngine=S.prototype.setNetworkEngine;S.prototype.getNetworkEngine=S.prototype.getNetworkEngine;S.prototype.setMuted=S.prototype.setMuted;S.prototype.isMuted=S.prototype.isMuted;S.prototype.setPlaybackRate=S.prototype.setPlaybackRate;S.prototype.getPlaybackRate=S.prototype.getPlaybackRate;
382
- S.prototype.namespace=S.prototype.namespace;S.prototype.getAdsManager=S.prototype.getAdsManager;S.prototype.getDuration=S.prototype.getDuration;S.prototype.setVolume=S.prototype.setVolume;S.prototype.getVolume=S.prototype.getVolume;S.prototype.getSeekRange=S.prototype.getSeekRange;S.prototype.getPresentationStartTime=S.prototype.getPresentationStartTime;S.prototype.seek=S.prototype.seek;S.prototype.getPosition=S.prototype.getPosition;S.prototype.isPaused=S.prototype.isPaused;S.prototype.isEnded=S.prototype.isEnded;
383
- S.prototype.getState=S.prototype.getState;S.prototype.getBufferInfo=S.prototype.getBufferInfo;S.prototype.getTrackManager=S.prototype.getTrackManager;S.prototype.pause=S.prototype.pause;S.prototype.play=S.prototype.play;S.prototype.remove=S.prototype.remove;S.prototype.use=S.prototype.use;S.prototype.load=S.prototype.load;S.prototype.destroy=S.prototype.destroy;S.prototype.release=S.prototype.release;S.prototype.getDrmInfo=S.prototype.getDrmInfo;S.prototype.getConfiguration=S.prototype.getConfiguration;
384
- S.prototype.getSurface=S.prototype.getSurface;S.prototype.getPlugin=S.prototype.Zb;_.zl=0;_.Ll=1;_.El=2;_.Nl=3;_.Ml=4;_.Gl=5;_.Kl=6;_.Al=7;_.Il={IDLE:_.zl,PREPARING:_.Ll,BUFFERING:_.El,PLAYING:_.Nl,PAUSED:_.Ml,ENDED:_.Gl,ERROR:_.Kl,UNSET:_.Al};S.State=_.Il;var Xm=[];_.h=U.prototype;_.h.mb=function(){};_.h.nb=function(){};_.h.sb=function(){};_.h.ba=function(){};_.h.getCreativeId=function(){};_.h.getApiFramework=function(){};_.h.getAdSystem=function(){};_.h.getAdvertiserName=function(){};_.h.getTitle=function(){};_.h.getDuration=function(){};_.h.getSkipTimeOffset=function(){};_.h.cc=function(){};_.h.Hb=function(){};_.h.getMediaUrl=function(){};_.h.pb=function(){};_.h.ob=function(){};_.h.$a=function(){};_.h.Qa=function(){};_.h.getPodIndex=function(){};_.h.Ib=function(){};
385
- _.h.Jb=function(){};_.h.rb=function(){};_.h.getWrapperAdIds=function(){};_.h.getWrapperAdSystems=function(){};_.h.getWrapperCreativeIds=function(){};_.A("clpp.ads.IAd",U);U.prototype.getWrapperCreativeIds=U.prototype.getWrapperCreativeIds;U.prototype.getWrapperAdSystems=U.prototype.getWrapperAdSystems;U.prototype.getWrapperAdIds=U.prototype.getWrapperAdIds;U.prototype.getSequenceLength=U.prototype.rb;U.prototype.getPositionInSequence=U.prototype.Jb;U.prototype.getPodTimeOffset=U.prototype.Ib;
386
- U.prototype.getPodIndex=U.prototype.getPodIndex;U.prototype.getPodType=U.prototype.Qa;U.prototype.getMediaBitrate=U.prototype.$a;U.prototype.getMediaHeight=U.prototype.ob;U.prototype.getMediaWidth=U.prototype.pb;U.prototype.getMediaUrl=U.prototype.getMediaUrl;U.prototype.getClickThroughUrl=U.prototype.Hb;U.prototype.isBumper=U.prototype.cc;U.prototype.getSkipTimeOffset=U.prototype.getSkipTimeOffset;U.prototype.getDuration=U.prototype.getDuration;U.prototype.getTitle=U.prototype.getTitle;
387
- U.prototype.getAdvertiserName=U.prototype.getAdvertiserName;U.prototype.getAdSystem=U.prototype.getAdSystem;U.prototype.getApiFramework=U.prototype.getApiFramework;U.prototype.getCreativeId=U.prototype.getCreativeId;U.prototype.getId=U.prototype.ba;U.prototype.getTechnology=U.prototype.sb;U.prototype.getAdManagerVersion=U.prototype.nb;U.prototype.getAdManagerName=U.prototype.mb;hn.prototype.name=function(){};hn.prototype.W=function(){};hn.prototype.create=function(){};_.A("clpp.ads.IAdsManagerFactory",hn);hn.prototype.create=hn.prototype.create;hn.prototype.isSupported=hn.prototype.W;hn.prototype.name=hn.prototype.name;_.h=jn.prototype;_.h.load=function(){};_.h.start=function(){};_.h.resume=function(){};_.h.pause=function(){};_.h.skip=function(){};_.h.getVolume=function(){};_.h.setVolume=function(){};_.h.getPosition=function(){};_.h.dispose=function(){};_.A("clpp.ads.IAdsManager",jn);jn.prototype.getPosition=jn.prototype.getPosition;jn.prototype.setVolume=jn.prototype.setVolume;jn.prototype.getVolume=jn.prototype.getVolume;jn.prototype.skip=jn.prototype.skip;jn.prototype.pause=jn.prototype.pause;
388
- jn.prototype.resume=jn.prototype.resume;_.h=kn.prototype;_.h.load=function(){return Promise.resolve()};_.h.start=function(a){return a.play()};_.h.resume=function(){};_.h.pause=function(){};_.h.skip=function(){};_.h.getVolume=function(){return 1};_.h.setVolume=function(){};_.h.getPosition=function(){return-1};_.h.dispose=function(){return _.z(function(a){_.w(a)})};kn.prototype.dispose=kn.prototype.dispose;kn.prototype.getPosition=kn.prototype.getPosition;kn.prototype.setVolume=kn.prototype.setVolume;kn.prototype.getVolume=kn.prototype.getVolume;
389
- kn.prototype.skip=kn.prototype.skip;kn.prototype.pause=kn.prototype.pause;kn.prototype.resume=kn.prototype.resume;kn.prototype.start=kn.prototype.start;kn.prototype.load=kn.prototype.load;fm.prototype.name=function(){return"clpp.ads.NopAdsManagerFactory"};fm.prototype.W=function(){return!0};fm.prototype.create=function(){return new kn};fm.prototype.create=fm.prototype.create;fm.prototype.isSupported=fm.prototype.W;fm.prototype.name=fm.prototype.name;ln.prototype.getCuePoints=function(){};ln.prototype.Kb=function(){};ln.prototype.ab=function(){};_.A("clpp.ads.IAdsTimeline",ln);ln.prototype.hasPostroll=ln.prototype.ab;ln.prototype.hasPreroll=ln.prototype.Kb;ln.prototype.getCuePoints=ln.prototype.getCuePoints;_.mn.prototype.Vb=function(){};_.mn.prototype.release=function(){};_.h=nn.prototype;_.h.md=function(a){this.a=a};_.h.Pc=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(Pa)};_.h.ud=function(){return this.a&&this.a.mediaKeys};_.h.xc=function(a,b){return navigator.requestMediaKeySystemAccess(a,b)};_.h.Oc=function(){return db};on.prototype.a=function(){return db};on.prototype.W=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};
390
- on.prototype.create=function(){return new nn};ok(new on,1E3);_.h=pn.prototype;_.h.forEach=function(a){this.a&&a(this.a,wp.value())};_.h.get=function(a){if(this.has(a))return this.a};_.h.has=function(a){var b=wp.value();return this.a&&Jg(a,b)?!0:!1};_.h.entries=function(){};_.h.keys=function(){};_.h.values=function(){};var wp=new _.wl(function(){return Pg(new Uint8Array([0]))});_.h=qn.prototype;_.h.md=function(){};_.h.Pc=function(a){_.Jf("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.h.ud=function(){return null};_.h.xc=function(){_.Jf("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.h.Oc=function(){return"NOP"};rn.prototype.a=function(){return"NOP"};rn.prototype.W=function(){return!0};rn.prototype.create=function(){return new qn};
391
- ok(new rn,-1);_.h=sn.prototype;_.h.md=function(a){this.f=a};_.h.Pc=function(a){var b=this.a;b&&b!==a&&vn(b,null);return(this.a=a)?vn(a,this.f):Promise.resolve()};_.h.ud=function(){return this.a};_.h.xc=function(a,b){_.Jf("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new tn(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.h.Oc=function(){return"APPLE"};tn.prototype.createMediaKeys=function(){var a=new un(this.keySystem);return Promise.resolve(a)};
392
- tn.prototype.getConfiguration=function(){_.Jf("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};un.prototype.createSession=function(a){a=void 0===a?re:a;_.Jf("AppleEmeManager.MediaKeys.createSession");if(a!==re)throw new TypeError("Session type "+a+ba);return new wn(this.g)};un.prototype.setServerCertificate=function(){_.Jf("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.u(wn,_.Nh);_.h=wn.prototype;
393
- _.h.generateRequest=function(a,b){var c=this;_.Jf("AppleEmeManager.MediaKeySession.generateRequest");this.f=new _.Oh;try{var d=this.j.createSession(_.Je,_.Q(b));this.g=d;this.sessionId=d.sessionId||"";this.h.on(d,Ue,function(e){_.Jf("AppleEmeManager.onWebkitKeyMessage_",e);c.f&&(c.f.resolve(),c.f=null);e=new _.E(nd,{messageType:void 0===c.keyStatuses.a?fd:ed,message:Pg(e.message.buffer)});c.dispatchEvent(e)});this.h.on(d,Se,function(e){_.Jf("AppleEmeManager.onWebkitKeyAdded_",e);c.a&&(xn(c,"usable"),
394
- c.a.resolve(),c.a=null)});this.h.on(d,Te,function(e){_.Jf("AppleEmeManager.onWebkitKeyError_",e);e=Error("EME AppleEmeManager key error");e.errorCode=c.g.error;if(null!==c.f)c.f.reject(e),c.f=null;else if(null!==c.a)c.a.reject(e),c.a=null;else switch(c.g.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:xn(c,"output-not-allowed");break;default:xn(c,_.bd)}});xn(this,ie)}catch(e){this.f.reject(e)}return this.f};
395
- _.h.load=function(){_.Jf("AppleEmeManager.MediaKeySession.load");return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.h.update=function(a){_.Jf("AppleEmeManager.MediaKeySession.update");this.a=new _.Oh;try{this.g.update(_.Q(a))}catch(b){this.a.reject(b)}return this.a};_.h.close=function(){_.Jf("AppleEmeManager.MediaKeySession.close");try{this.g.close(),this.closed.resolve(),_.Zf(this.h)}catch(a){this.closed.reject(a)}return this.closed};
396
- _.h.remove=function(){_.Jf("AppleEmeManager.MediaKeySession.remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};yn.prototype.a=function(){return"APPLE"};yn.prototype.W=function(){return!!window.WebKitMediaKeys};yn.prototype.create=function(){return new sn};ok(new yn,1100);_.h=zn.prototype;_.h.md=function(a){this.a=a};_.h.Pc=function(a){_.Jf("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(Pa);var b=this.f;b&&b!==a&&En(b,null);(this.f=a)&&En(a,this.a);return Promise.resolve()};_.h.ud=function(){return this.f};_.h.xc=function(a,b){_.Jf("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.He);c=d.length?d[0]:document.createElement(_.He)}var e=new An(this.g,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
397
- _.h.Oc=function(){return"WEBKIT"};An.prototype.createMediaKeys=function(){return Promise.resolve(new Bn(this.g,this.a))};An.prototype.getConfiguration=function(){return this.f};Bn.prototype.createSession=function(a){a=void 0===a?re:a;if(a!==re&&a!==_.Nd)throw new TypeError("Session type "+a+ba);if(!this.a)throw a=Error("Media element is missing."),a.name=Ja,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new Fn(this.g,this.a,this.m,a);this.h.push(a);return a};
398
- Bn.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.u(Fn,_.Nh);_.h=Fn.prototype;_.h.generateRequest=function(a,b){_.Jf("WebkitEmeManager.MediaKeySession.generateRequest");return Hn(this,b,null)};_.h.load=function(a){_.Jf(qb);return this.j===_.Nd?Hn(this,null,a):Promise.reject(Error(Va))};_.h.update=function(a){_.Jf(qb);var b=new _.Oh;In(this,b,a);return b};
399
- _.h.close=function(){_.Jf("WebkitEmeManager.MediaKeySession.close");if(this.j!==_.Nd){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=Gn(this,"cancelKeyRequest");try{this.h[a](this.g,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.h.remove=function(){_.Jf("WebkitEmeManager.MediaKeySession.remove");return this.j!==_.Nd?Promise.reject(Error(Va)):this.close()};Jn.prototype.a=function(){return"WEBKIT"};
400
- Jn.prototype.W=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};Jn.prototype.create=function(){return new zn};ok(new Jn);_.u(Kn,_.vj);Kn.prototype.Zc=function(a,b){for(var c=a.drm.customData.headers||{},d=_.t(Object.keys(c)),e=d.next();!e.done;e=d.next())e=e.value,b.headers[e]=c[e]};Kn.prototype.wf=function(a,b){var c=Nj(b);switch(this.o){case xp:return c;case yp:return(new _.Ij(c)).f;default:throw Error("Unknown content ID strategy");}};Kn.prototype.Qf=function(a,b){b.headers[qa]=Yb;this.Zc(a,b);var c={spc:_.ej(b.body)};b.body=_.Xg(_.Kj(c,!0))};
401
- Kn.prototype.Rf=function(a,b){var c=_.Rg(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.gj(c).buffer};_.A(xc,Kn);Kn.prototype.onFairPlayLicenseResponse=Kn.prototype.Rf;Kn.prototype.onFairPlayLicenseRequest=Kn.prototype.Qf;Kn.prototype.extractFairPlayContentId=Kn.prototype.wf;Kn.prototype.onLicenseRequest=Kn.prototype.Zc;Kn.prototype.constructor=Kn.prototype.constructor;Kn.NAME=Ga;var yp="hostname",xp="full-skd";
402
- Kn.FairPlayContentIdStrategy={HOSTNAME:yp,FULL_SKD:xp};_.u(Ln,_.mn);_.h=Ln.prototype;_.h.Ea=function(a){this.l=a};_.h.va=function(){this.l=null};_.h.Vb=function(){var a=this.l.getConfiguration();if(a.drm&&a.drm&&a.drm.env===Ga){a=a.drm.customData;if(!a)throw new _.J(_.K,7,7100,_.Gc);a=new Kn(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||xp);_.qj(a)}};_.h.release=function(){};_.h.id=function(){return"headerdrm"};_.A("clpp.drm.HeaderDrmComponent",Ln);_.Em(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=_.Q(c),e=new Uint8Array(this,a,b-a);d.set(e);return c})});_.Em(function(){_.Jf("mathRound.install")});_.Em(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;Xc in document||(Object.defineProperty(document,Xc,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
403
- {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",Mn);document.addEventListener("webkitfullscreenerror",Mn);document.addEventListener("mozfullscreenchange",Mn);document.addEventListener("mozfullscreenerror",Mn);document.addEventListener("MSFullscreenChange",Mn);document.addEventListener("MSFullscreenError",Mn)}});_.Em(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Jf("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=On,document.exitPictureInPicture=Pn,document.addEventListener("webkitpresentationmodechanged",Nn,!0))}});_.Em(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=Qn)}});_.Em(function(){if(window.VTTCue)_.If("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.If(pb),window.VTTCue=Rn;else if(6===a)_.If("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=Sn;else{try{var b=!!Rn(1,2,"")}catch(c){b=!1}b&&(_.If(pb),window.VTTCue=Rn)}}else _.Kf("VTTCue not available.")});var Tn;_.Em(function(){_.Jf("InputEvent.install");_.oi("Trident/")&&HTMLInputElement.prototype.addEventListener!==Un&&(_.If("Patching input event support on IE."),Tn=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=Un)});_.Em(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.Em(function(){_.Jf("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}}});_.eo.prototype.start=function(){var a=this;this.a=new ResizeObserver(function(b){b=b[0];a.g(b.contentRect.width,b.contentRect.height,a.f.isFullscreen())});this.a.observe(this.h)};_.eo.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.go.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.He);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.Oh;c=c.play();var e=(new _.oh(function(){b(a)})).$(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===Wa?b(!0):b(!1)}):b(!0);return d};
404
- var fo=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,
361
+ 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]};_.Aj.prototype.Ea=function(a,b){this.g[a]=b};_.B("clpp.drm.DrmEnvironment",_.Aj);_.Aj.prototype.setDrmSystem=_.Aj.prototype.Ea;_.Cj.prototype.getPosition=function(){return this.a};_.Cj.prototype.Aa=function(){return this.f.byteLength};_.Cj.prototype.seek=function(a){(0>a||a>this.f.byteLength)&&_.Dj();this.a=a};_.Cj.prototype.seek=_.Cj.prototype.seek;_.Fj.prototype.getPosition=function(){return this.a};_.Fj.prototype.Aa=function(){return this.f.byteLength};_.Fj.prototype.skip=function(a){this.a+a>this.f.byteLength&&Hj();this.a+=a};_.Fj.prototype.seek=function(a){if(0>a||a>this.f.byteLength)throw Hj();this.a=a};_.t=_.Pj.prototype;_.t.M=function(a,b){var c=Tj(a);this.g[c]=Jp;this.f[c]=b;return this};_.t.V=function(a,b){var c=Tj(a);this.g[c]=Kp;this.f[c]=b;return this};_.t.stop=function(){this.a=!0};_.t.parse=function(a,b){var c=_.R(a);c=new _.Fj(new DataView(c.buffer,c.byteOffset,c.byteLength),!1);for(this.a=!1;_.Gj(c)&&!this.a;)this.Gd(0,c,b)};
362
+ _.t.Gd=function(a,b,c){var d=b.getPosition(),e=_.Kj(b),f=_.Kj(b),g=!1;this.h.debug("Parsing MP4 box",_.Uj(f));switch(e){case 0:e=b.Aa()-d;break;case 1:e=_.Mj(b),g=!0}var k=this.f[f];if(k){var l=null,m=null;this.g[f]==Kp&&(m=_.Kj(b),l=m>>>24,m&=16777215);f=b.getPosition()-d;var n=d+e;c&&n>b.Aa()&&(n=b.Aa());n-=b.getPosition();b=0<n?_.Nj(b,n):new Uint8Array(0);b=new _.Fj(new DataView(b.buffer,b.byteOffset,b.byteLength),!1);k({Ua:this,Zf:c||!1,version:l,flags:m,F:b,size:e,start:d+a,ke:f,$h:g})}else a=
363
+ Math.min(d+e-b.getPosition(),b.Aa()-b.getPosition()),b.skip(a)};_.B("clpp.utils.Mp4Parser",_.Pj);_.Pj.typeToString=_.Uj;_.Pj.allData=_.Sj;_.Pj.sampleDescription=_.Rj;_.Pj.children=_.Qj;_.Pj.prototype.parseNext=_.Pj.prototype.Gd;_.Pj.prototype.parse=_.Pj.prototype.parse;_.Pj.prototype.stop=_.Pj.prototype.stop;_.Pj.prototype.fullBox=_.Pj.prototype.V;_.Pj.prototype.box=_.Pj.prototype.M;_.Pj.headerSize=_.Vj;var Jp=0,Kp=1;_.B("clpp.utils.url.queryString",_.Yj);_.B("clpp.utils.FairplayUtils",ak);ak.parseFairPlayResponse=_.gk;ak.formatFairPlayRequest=_.fk;ak.createFairplayPayload=ek;ak.extractContentId=_.ck;ak.extractExtXKeyUri=bk;var rk=new _.G("clpp.drm.DrmToday"),ik="PRODUCTION",jk="STAGING",kk="TEST",Lp={PRODUCTION:ik,STAGING:jk,TEST:kk};_.B("clpp.drm.DrmToday.Environment",Lp);_.B("clpp.drm.DrmToday.WidevineCertificates",{V1_PROD:"V1_PROD",V1_STAGING:"V1_STAGING",V2:"V2"});
364
+ for(var mk="/license-proxy-widevine/cenc/",nk="/license-proxy-headerauth/drmtoday/RightsManager.asmx",ok="/license-server-fairplay/",zk={"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",
365
+ 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"},Mp={video:[_.hb,void 0],audio:[_.gb,void 0]},Np={video:["3000"],
366
+ audio:["2000"]},Op=_.u(Object.keys(Lp)),Pp=Op.next();!Pp.done;Pp=Op.next()){var hk=Pp.value,Qp=wa;hk!==ik&&(Qp+="_"+hk);var Rp=new _.Aj(Qp),Sp=null;switch(hk){case ik:Sp=zj("V1_PROD");break;case jk:Sp=zj("V2");break;case kk:Sp=null}Rp.Ea(_.Ic,{licenseUrl:pk(_.Ic),videoRobustness:Mp.video,audioRobustness:Mp.audio,persistentStateRequired:!1,distinctiveIdentifierRequired:!1,serverCertificate:Sp,modifiers:{licenseRequest:_.tk,licenseResponse:_.yk}});Rp.Ea(_.Gc,{licenseUrl:pk(_.Gc),certificateUrl:lk()+
367
+ "/license-server-fairplay/cert/",modifiers:{licenseRequest:_.vk,licenseResponse:_.wk,extractContentId:_.sk,certificateRequest:_.xk}});Rp.Ea(_.Hc,{licenseUrl:pk(_.Hc),videoRobustness:Np.video,audioRobustness:Np.audio,modifiers:{licenseRequest:uk}});_.vj(Rp)};_.B("clpp.drm.eme.EmeFactory",Bk);var Ck=[];Bk.Apis={STANDARD:fb,APPLE:"APPLE",WEBKIT:"WEBKIT",NOP:"NOP"};var Lk;_.Qk=[154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149];Lk=[237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237];_.v(Kk,Jk);_.v(_.Ok,Jk);Sk.prototype.h=function(a){if(1<a.version)_.D("Unrecognized PSSH version found!");else{var b=_.nj(_.Nj(a.F,16)),c=[];if(0<a.version)for(var d=_.Kj(a.F),e=0;e<d;++e){var f=_.nj(_.Nj(a.F,16));c.push(f)}d=_.Kj(a.F);a.F.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.F.getPosition()!=a.F.Aa()&&_.D("Mismatch between box size and data size!")}};_.t=_.Wk.prototype;_.t.destroy=function(){var a=this;return _.A(function(b){if(1==b.a){if(a.j)return _.w(b,a.Ga,0);a.j=!0;return _.w(b,Yk(a),4)}a.Ga.resolve();return b.H(0)})};_.t.keySystem=function(){return this.f?_.ul(this.f.keySystem):""};_.t.getDrmInfo=function(){return this.f};_.t.Wf=function(a){var b=this;return _.A(function(c){return b.D&&b.K===Zk?c["return"]():!b.h.delayLicenseRequestUntilPlayed||b.B&&!b.B.paused||b.Oa?_.w(c,Fl(b,a),0):(b.ca.push(a),c.H(0))})};
368
+ _.t.Sf=function(a){var b=this,c=a.target;this.a.info("Key status changed for session",c.sessionId);var d=this.g.get(c),e=!1;c.keyStatuses.forEach(function(f,g){if(typeof g==_.me){var k=g;g=f;f=k}if(Bl(b.f.keySystem)&&16===g.byteLength&&_.ri()){k=_.Qg(g);var l=k.getUint32(0,!0),m=k.getUint16(4,!0),n=k.getUint16(6,!0);k.setUint32(0,l,!1);k.setUint16(4,m,!1);k.setUint16(6,n,!1)}d&&f!==je&&(d.loaded=!0);"expired"===f&&(e=!0);k=_.R(g);var p=_.nj(k);"00"===p&&d&&d.keyId?p=d.keyId:b.f.keySystem.startsWith(_.Gc)&&
369
+ 16!==k.byteLength&&(p=Sg(k));(k=p||"")?b.a.info("Key status for Key ID '"+p+"': "+f):b.a.info("Key status global keys: "+f);b.mb.set(k,f);d&&!d.keyId&&b.g.forEach(function(q,r){r===c||q.keyId!==p||q.loaded||(q.loaded=!0)})});a=c.expiration-Date.now();(0>a||e&&1E3>a)&&d&&!d.kb&&(this.a.debug("Session has expired",c.sessionId),(a=this.g.get(c))&&a.yc&&a.yc.stop(),this.g["delete"](c),c.close()["catch"](function(){}));wl(this)&&(this.G.resolve(),1!==this.g.size||e?this.aa.$(.5):Uk(this))};
370
+ var Zk=0,Tk=3;Gl.prototype.W=function(){};Gl.prototype.create=function(){};_.B("clpp.text.TextDisplayerFactory",Gl);Gl.prototype.create=Gl.prototype.create;Gl.prototype.isSupported=Gl.prototype.W;var Hl=new Map,Il=new _.G("clpp.text");Gl.Type={HTML:"html",NATIVE:_.zd,SINGLE_NATIVE:_.fe};_.Am={VIDEO:_.Ie,AUDIO:_.ac,TEXT:_.te,yj:_.Rb,IMAGE:_.dd,Hj:_.pe};_.Tp=1/15;_.Sl.prototype.getStats=function(){return{width:this.j,height:this.f,streamBandwidth:this.A,decodedFrames:this.g,droppedFrames:this.h,corruptedFrames:this.B,estimatedBandwidth:this.m,loadLatency:this.o,playTime:Ol(this.a,_.km),pauseTime:Ol(this.a,_.jm),bufferingTime:Ol(this.a,_.bm),stateHistory:Pl(this.a),switchHistory:Rl(this.w)}};_.Ul.prototype.value=function(){void 0==this.a&&(this.a=this.f());return this.a};var Vl=new _.Ul(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,_.md],[HTMLMediaElement.HAVE_CURRENT_DATA,_.ld],[HTMLMediaElement.HAVE_FUTURE_DATA,mc],[HTMLMediaElement.HAVE_ENOUGH_DATA,nc]])});$l.prototype.Qb=function(a,b){this.l&&this.l.trigger(new _.I(a,{detail:b}))};$l.prototype.getState=function(){return cm(this,"")};$l.prototype.S=function(a){(a=a&&a.detail)&&a.severity&&a.severity===_.M&&gm(this,_.hm)};$l.prototype.destroy=function(){this.g.debug("Stop watching for video events for "+this.l.namespace());this.a.release()};_.B("clpp.version",_.ea);_.B("clpp.name",_.oa);_.B("clpp.Type",{DASH:_.Tb,HLS:_.Zb,SMOOTH_STREAMING:_.Yb,MP4:_.Ke});_.hg="scte35";_.fg=Ae;_.B("clpp.TimelineCueType",{SCTE35:_.hg,DASH_CALLBACK:_.yd,UNKNOWN:_.fg});_.B("clpp.utils.media.detectType",mm);var um=new _.G("clpp.sources");_.v(vm,_.cj);_.t=vm.prototype;_.t.init=function(a,b){_.cj.prototype.init.call(this,a,b);this.h=new $l(this);gm(this.h,_.Xl)};_.t.namespace=function(){return Bc};
371
+ _.t.unload=function(){var a=this,b;return _.A(function(c){if(!a.o)return c.H(0);a.log.debug(_.db,a.o);a.C&&(a.C.stop(),a.C=null);(b=a.getTrackManager())&&b.release();a.B&&(a.B.destroy(),a.B=null);a.J&&(a.J.destroy(),a.J=null);a.j&&a.j.release();a.m&&(a.m.destroy(),a.m=null);_.ag(a.g);a.f&&(a.f=new _.Sl);a.D=null;a.o=null;a.G=!1;a.a&&(a.a.removeAttribute("src"),a.a.load());return _.w(c,zm(a),0)})};
372
+ _.t.release=function(){var a=this;return _.cj.prototype.release.call(this).then(function(){return a.unload()}).then(function(){a.h&&gm(a.h,_.Xl)})};
373
+ _.t.destroy=function(){var a=this;if(this.w)return this.log.warn("Player is already destroyed!"),Promise.resolve();this.w=!0;return _.cj.prototype.destroy.call(this).then(function(){return a.release()}).then(function(){a.log.debug(ya);var b=a.getTrackManager();b&&b.destroy();a.j&&(a.j.destroy()["catch"](function(c){a.log.warn("Error while disposing metadata handler",c)}),a.j=null);a.h&&(a.h.destroy(),a.h=null);a.f=null})};_.t.getDrmInfo=function(){return this.m?this.m.getDrmInfo():null};
374
+ _.t.load=function(a){var b=this,c,d,e,f,g;return _.A(function(k){switch(k.a){case 1:if(b.w)return k["return"](wm());if(!b.getSurface()||!b.getSurface().getMedia())return k["return"](Promise.reject("No surface or no media element in surface"));c=_.J;d=b.A.getMedia();b.I=Date.now()/1E3;b.f=new _.Sl;b.g.on(b,_.ie,function(){b.f&&_.Nl(b.f.a,b.getState())});gm(b.h,_.im);b.o=_.tm(a);_.$i(a)&&(b.configuration=_.Zi(b.pd,a));b.log.debug(_.Ma,b.configuration);b.log.debug(_.Za,b.o);e=_.Kl(b.configuration,["html",
375
+ _.zd]);b.J=e.create(b);b.J.setTextVisibility(!0);b.configuration.enableHtmlCue&&_.ej(_.qe)&&!_.yi()&&(b.B=new wg(b),b.B.start(d));b.j?b.j.release():b.j=new cg(b);eg(b.j,d);f=b.getTrackManager();f.load();d.loop=!!b.configuration.loop;c.R(b.configuration.volume)||b.setVolume(b.configuration.volume);c.R(b.configuration.muted)||b.setMuted(b.configuration.muted);b.g.one(d,mc,function(){b.trigger(new _.I(_.Cp))});_.rf(k,2);return _.w(k,ym(b,d),4);case 4:return _.w(k,Bm(b),5);case 5:return _.w(k,Dm(b).O,
376
+ 6);case 6:_.sf(k,0);break;case 2:g=_.tf(k),b.G=!1,b.onError(g),_.z(k)}})};_.t.onError=function(a){this.G||(a.severity===_.M&&null!==this.h&&gm(this.h,_.hm),this.trigger(new _.I(_.Zc,{detail:a})))};_.t.rf=function(){return new zh};_.t.getState=function(){return null!==this.h?this.h.getState().currentState:_.Yl};
377
+ _.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.D=a={start:a.start(0),end:a.end(a.length-1)};if(this.D)return this.D}return{start:0,end:0}};
378
+ _.t.isLive=function(){return this.a&&this.a.src?Infinity===this.a.duration:!1};_.t.getStats=function(){if(!this.f||!this.a)return _.Tl();this.f&&_.Nl(this.f.a,this.getState());var a=this.a,b=this.f,c=a.videoHeight;b.j=a.videoWidth;b.f=c;a.getVideoPlaybackQuality&&(a=a.getVideoPlaybackQuality(),b=this.f,c=Number(a.totalVideoFrames),b.h=Number(a.droppedVideoFrames),b.g=c,this.f.B=Number(a.corruptedVideoFrames));return this.f.getStats()};
379
+ _.t.getTimelineCues=function(){return this.j?this.j.getTimelineCues():[]};Em.prototype.a=function(){return Bc};Em.prototype.canPlay=function(a,b){var c=a.type||"",d=c===_.Tb,e=c===_.Yb,f=c===_.Zb;return _.vi()||d||e||f&&!_.wi()?0:""!==Bi().canPlayType(c)?f&&_.wi()&&window.MediaSource&&MediaSource.isTypeSupported&&!b.streaming.preferNativeHlsOnSafari?1:2:0};Em.prototype.create=function(){return new vm};_.Qf(new Em);_.B("clpp.ads.PodType",{PREROLL:0,MIDROLL:1,POSTROLL:2});_.B("clpp.ads.Technology",{CLIENT_SIDE:0,SERVER_SIDE:1});_.B("clpp.ads.ErrorType",{LOAD:0,PLAY:1,OTHER:2});var Gm=new _.G("clpp.ads"),Fm=[];_.B("clpp.utils.dom.createHTMLElement",_.Nm);_.t=Qm.prototype;_.t.getMedia=function(){return this.a};_.t.getContainer=function(){return this.f};_.t.getCastElement=function(){return this.j};_.t.isFullscreen=function(){return!!document.fullscreenElement};_.t.hideMediaElement=function(){var a=this.getMedia();a?_.Lm(a,xc):this.h.debug("No media element available that could be hidden")};_.t.showMediaElement=function(){var a=this.getMedia();a?a.classList.remove(xc):this.h.debug("No media element available that could be shown")};
380
+ _.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&&_.Lm(a,_.wc);c?d.insertBefore(a,d.firstElementChild):d.appendChild(a)};_.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){_.Lm(a,xc)};_.t.show=function(a){a.classList.remove(xc)};_.t.release=function(){this.m.release()};
381
+ Qm.prototype.removeElementFromContainer=Qm.prototype.removeElementFromContainer;Qm.prototype.addElementToContainer=Qm.prototype.addElementToContainer;Qm.prototype.getCastElement=Qm.prototype.getCastElement;Qm.prototype.getContainer=Qm.prototype.getContainer;Qm.prototype.getMedia=Qm.prototype.getMedia;var Om={disableContainer:!1,crossorigin:"anonymous",containerEl:null};Um.prototype.release=function(){this.a.release();Ym(this);this.l=null};_.B("clpp.polyfill.installAll",an);var $m=[];_.B("clpp.polyfill.register",_.bn);dn.prototype.verify=function(a,b){var c={kty:"RSA",n:a.n,e:a.e},d=this.g+"."+this.f,e=this.h;return new Promise(function(f,g){try{var k=window&&window.crypto&&window.crypto.subtle}catch(m){}if(k){var l={name:"RSASSA-PKCS1-v1_5",hash:{name:"SHA-256"}};k.importKey("jwk",c,l,!1,["verify"]).then(function(m){var n=_.Xg(d),p=_.lj(e);return k.verify(l,m,p.buffer,n.buffer)}).then(function(m){m?f():g(kb)})["catch"](g)}else b?g("Web Crypto API is not supported"):f()})};var Up={n:"vXdoJIQCz6sZ9pbduNukEHOR0H2dHlwuuBUAR5Ot7WLEYvav5mn63yxr6F6TIl8RHTFw2siXQhHblZH2Y89o8vhcZRFkYXo6h0igEVafu-n0w52UEcH8Cqzlb8Q7x03Qb8OcKLngSzDkwe5Y2Aix6I66RRVNLLssqyjp2n5tXs4JQmYdqY6hhpGhmBN84naeCTdcPpAYhCw8jqbTSNrJp5hjU4GVvOiUtoYCvdESV9xrOR7fPCFXhWfLtC3i1k1zVoIM7YW5qD0F676jhqkF-GmDuCHpRY2I2Cxui-ytYEVIM6_pylSIlmYLjARmv2jXz9aV_WvHLh6B8Yx0slNGCQ",e:"AQAB"},Vi="eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJ1cmxzIjpbIjovL2Nhc3RsYWJzLmNvbSJdLCJ0eXBlIjoiV2ViIiwia2lkIjoxOTUwLCJpbHYiOmZhbHNlfQ.jzGGRcbFr_2QET-4tbMcpR5pSaj7eV7X2d1HWw_VKQpPg3zCwSZSDuqw225dIYyAYwLSiElbozbZPSArkBXOsoUm-KZRUPF4m7WG0T7Uza5G-QaQw57BbbfcSsooSpatC997kHKLMTjO71By9Olcu5ykN164nZpGQtZNzQjYag-bnUaMVI5vvhzjlvDihORQ9V_qRlEh0-mpoz6W0-36HGAbWIXWq0kxPh6inbovby-ZmFpqGrVjWOEFa55EARZXPNW9ERupW5xrrYHZdwwTpdRTY5IwEnobS85yTrLhK8Y2MV4jlQLTtQp372fKDsuU6q6_4XvmNq1SgAoKoaf41g";en.prototype.verify=function(){var a=this;return(new Promise(function(b,c){try{var d=fn(a);b(d)}catch(e){c()}})).then(function(b){return b.verify(Up)})["catch"](function(b){if(b&&b!==kb){var c=window.location.href;var d=new _.Wh(c);c=d.Va||d.Ia?d:new _.Wh("//"+c);if(/(^127\.)|(^10\.)|(^172\.1[6-9]\.)|(^172\.2[0-9]\.)|(^172\.3[0-1]\.)|(^192\.168\.)|(^localhost)/.test(c.Ia))return Promise.resolve()}throw b;})};var rn="vod",qn="live";_.v(U,_.Ph);_.t=U.prototype;_.t.on=function(a,b,c){return _.Ph.prototype.on.call(this,a,b,c)};_.t.one=function(a,b,c){return _.Ph.prototype.one.call(this,a,b,c)};_.t.off=function(a,b){return _.Ph.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 _.I(_.Zc,{detail:a}))};_.t.Yb=function(a){a=this.L[a];void 0===a&&(a=null);return a};_.t.getSurface=function(){return this.h};_.t.getConfiguration=function(){return _.J.Ha(this.f)};
382
+ _.t.getDrmInfo=function(){return this.a?this.a.getDrmInfo():null};_.t.unload=function(){return this.a?this.a.unload():Promise.resolve()};_.t.release=function(){var a=this;if(null!=this.m)return this.g.info("Player release already in progress"),this.m;this.g.debug("Releasing player");this.m=yn(this);return this.m["finally"](function(){a.g.debug("Player released");a.m=null})};
383
+ _.t.destroy=function(){var a=this;if(this.D)return this.g.debug("The player is already destroyed. No-op"),new Promise(function(b){return b()});this.D=!0;return this.release().then(function(){a.g.debug(ya);a.trigger(new _.I("destroying"));return a.fc(_.Ed)}).then(function(){a.a&&a.a.removeDelegate(a);a.Uc.clear();a.U.release();if(a.a)return a.a.destroy()}).then(function(){hj(function(b){b.va()});_.dj.clear();a.a=null;a.trigger(new _.I("destroyed"))})};
384
+ _.t.load=function(a){var b=this,c;return _.A(function(d){switch(d.a){case 1:return _.rf(d,2),_.w(d,_.Bn(b,a),4);case 4:return _.w(d,_.Cn(b),5);case 5:return _.w(d,_.En(b),6);case 6:_.sf(d,0);break;case 2:c=_.tf(d);if(b.m)throw b.g.info("Load interrupted while a player release is pending"),new _.K(_.M,7,7E3);throw c;}})};
385
+ _.t.fc=function(a,b){for(var c=[],d=1;d<arguments.length;++d)c[d-1]=arguments[d];var e=this;d=this.K.map(function(f){var g=f[a];return g.call.apply(g,[f,e].concat(_.df(c)))}).filter(function(f){return f instanceof Promise});return Promise.all(d)};_.t.use=function(a){a=new a;a.Da(this);_.gj(a)};_.t.remove=function(a){if(this.getState()<=_.Xl||this.I){var b="";hj(function(c){c instanceof a&&(b=c.id(),c.va())});if(b)return _.dj["delete"](b),this.J=!0}return!1};
386
+ _.t.play=function(){return this.a?this.j&&this.a.namespace()!==_.yc?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 _.Oh};
387
+ _.t.getState=function(){return this.a?this.a.getState():_.Xl};_.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()===_.hm?Promise.reject("Cannot seek in current state."):this.a?this.a.seek(a):Promise.reject("delegate does not exist")};
388
+ _.t.getPresentationStartTime=function(){return this.a?this.a.getPresentationStartTime():null};_.t.getSeekRange=function(){return this.a?this.a.getSeekRange():{start:0,end:0}};_.t.getVolume=function(){return this.a?this.a.getVolume():null};_.t.setVolume=function(a){this.a&&this.a.setVolume(a)};_.t.getDuration=function(){return this.a?this.a.getDuration():-1};_.t.getAdsManager=function(){return this.j};_.t.namespace=function(){return this.a&&this.a.namespace()||"Undefined"};
389
+ _.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.G};_.t.setNetworkEngine=function(a){this.G=a};_.t.getTextDisplayer=function(){return this.a&&this.a.getTextDisplayer()};
390
+ _.t.isLive=function(){return!!this.a&&this.a.isLive()};_.t.getStats=function(){return this.a?this.a.getStats():null};_.t.wd=function(){return Object.freeze(this.o)};_.t.setSourceIndex=function(a){this.a&&this.a.setSourceIndex(a)};_.t.getSourceIndex=function(){return this.a?this.a.getSourceIndex():-1};_.t.getLoadedSource=function(){return this.a&&this.a.getLoadedSource()};_.t.getTimelineCues=function(){return this.a?this.a.getTimelineCues():[]};_.t.resetAbr=function(){this.a&&this.a.resetAbr()};
391
+ _.t.setDrmCustomDataModifier=function(a){this.zc=a;An(this)};_.t.setCdnErrorCallback=function(a){this.C=a;this.a&&this.a.setCdnErrorCallback(this.C)};_.t.Mf=function(){this.ae=!0};_.B("clpp.Player",U);U.registerPlugin=_.Fn;U.prototype.setCdnErrorCallback=U.prototype.setCdnErrorCallback;U.prototype.setDrmCustomDataModifier=U.prototype.setDrmCustomDataModifier;U.prototype.resetAbr=U.prototype.resetAbr;U.prototype.getTimelineCues=U.prototype.getTimelineCues;U.prototype.getLoadedSource=U.prototype.getLoadedSource;
392
+ U.prototype.getSources=U.prototype.wd;U.prototype.getStats=U.prototype.getStats;U.prototype.isLive=U.prototype.isLive;U.prototype.getTextDisplayer=U.prototype.getTextDisplayer;U.prototype.setNetworkEngine=U.prototype.setNetworkEngine;U.prototype.getNetworkEngine=U.prototype.getNetworkEngine;U.prototype.setMuted=U.prototype.setMuted;U.prototype.isMuted=U.prototype.isMuted;U.prototype.setPlaybackRate=U.prototype.setPlaybackRate;U.prototype.getPlaybackRate=U.prototype.getPlaybackRate;
393
+ U.prototype.namespace=U.prototype.namespace;U.prototype.getAdsManager=U.prototype.getAdsManager;U.prototype.getDuration=U.prototype.getDuration;U.prototype.setVolume=U.prototype.setVolume;U.prototype.getVolume=U.prototype.getVolume;U.prototype.getSeekRange=U.prototype.getSeekRange;U.prototype.getPresentationStartTime=U.prototype.getPresentationStartTime;U.prototype.seek=U.prototype.seek;U.prototype.getPosition=U.prototype.getPosition;U.prototype.isPaused=U.prototype.isPaused;U.prototype.isEnded=U.prototype.isEnded;
394
+ U.prototype.getState=U.prototype.getState;U.prototype.getBufferInfo=U.prototype.getBufferInfo;U.prototype.getTrackManager=U.prototype.getTrackManager;U.prototype.pause=U.prototype.pause;U.prototype.play=U.prototype.play;U.prototype.remove=U.prototype.remove;U.prototype.use=U.prototype.use;U.prototype.load=U.prototype.load;U.prototype.destroy=U.prototype.destroy;U.prototype.release=U.prototype.release;U.prototype.getDrmInfo=U.prototype.getDrmInfo;U.prototype.getConfiguration=U.prototype.getConfiguration;
395
+ U.prototype.getSurface=U.prototype.getSurface;U.prototype.getPlugin=U.prototype.Yb;U.prototype.off=U.prototype.off;U.prototype.one=U.prototype.one;U.prototype.on=U.prototype.on;_.Xl=0;_.im=1;_.bm=2;_.km=3;_.jm=4;_.dm=5;_.hm=6;_.Yl=7;_.fm={IDLE:_.Xl,PREPARING:_.im,BUFFERING:_.bm,PLAYING:_.km,PAUSED:_.jm,ENDED:_.dm,ERROR:_.hm,UNSET:_.Yl};U.State=_.fm;var vn=[];_.t=V.prototype;_.t.ob=function(){};_.t.pb=function(){};_.t.ub=function(){};_.t.ba=function(){};_.t.getCreativeId=function(){};_.t.getApiFramework=function(){};_.t.getAdSystem=function(){};_.t.getAdvertiserName=function(){};_.t.getTitle=function(){};_.t.getDuration=function(){};_.t.getSkipTimeOffset=function(){};_.t.bc=function(){};_.t.Hb=function(){};_.t.getMediaUrl=function(){};_.t.rb=function(){};_.t.qb=function(){};_.t.bb=function(){};_.t.Ra=function(){};_.t.getPodIndex=function(){};_.t.Ib=function(){};
396
+ _.t.Jb=function(){};_.t.tb=function(){};_.t.getWrapperAdIds=function(){};_.t.getWrapperAdSystems=function(){};_.t.getWrapperCreativeIds=function(){};_.B("clpp.ads.IAd",V);V.prototype.getWrapperCreativeIds=V.prototype.getWrapperCreativeIds;V.prototype.getWrapperAdSystems=V.prototype.getWrapperAdSystems;V.prototype.getWrapperAdIds=V.prototype.getWrapperAdIds;V.prototype.getSequenceLength=V.prototype.tb;V.prototype.getPositionInSequence=V.prototype.Jb;V.prototype.getPodTimeOffset=V.prototype.Ib;
397
+ V.prototype.getPodIndex=V.prototype.getPodIndex;V.prototype.getPodType=V.prototype.Ra;V.prototype.getMediaBitrate=V.prototype.bb;V.prototype.getMediaHeight=V.prototype.qb;V.prototype.getMediaWidth=V.prototype.rb;V.prototype.getMediaUrl=V.prototype.getMediaUrl;V.prototype.getClickThroughUrl=V.prototype.Hb;V.prototype.isBumper=V.prototype.bc;V.prototype.getSkipTimeOffset=V.prototype.getSkipTimeOffset;V.prototype.getDuration=V.prototype.getDuration;V.prototype.getTitle=V.prototype.getTitle;
398
+ V.prototype.getAdvertiserName=V.prototype.getAdvertiserName;V.prototype.getAdSystem=V.prototype.getAdSystem;V.prototype.getApiFramework=V.prototype.getApiFramework;V.prototype.getCreativeId=V.prototype.getCreativeId;V.prototype.getId=V.prototype.ba;V.prototype.getTechnology=V.prototype.ub;V.prototype.getAdManagerVersion=V.prototype.pb;V.prototype.getAdManagerName=V.prototype.ob;Gn.prototype.name=function(){};Gn.prototype.W=function(){};Gn.prototype.create=function(){};_.B("clpp.ads.IAdsManagerFactory",Gn);Gn.prototype.create=Gn.prototype.create;Gn.prototype.isSupported=Gn.prototype.W;Gn.prototype.name=Gn.prototype.name;_.t=Hn.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(){};_.B("clpp.ads.IAdsManager",Hn);Hn.prototype.getPosition=Hn.prototype.getPosition;Hn.prototype.setVolume=Hn.prototype.setVolume;Hn.prototype.getVolume=Hn.prototype.getVolume;Hn.prototype.skip=Hn.prototype.skip;Hn.prototype.pause=Hn.prototype.pause;
399
+ Hn.prototype.resume=Hn.prototype.resume;_.t=In.prototype;_.t.load=function(){return Promise.resolve()};_.t.start=function(a){return a.play()};_.t.resume=function(){};_.t.pause=function(){};_.t.skip=function(){};_.t.getVolume=function(){return 1};_.t.setVolume=function(){};_.t.getPosition=function(){return-1};_.t.dispose=function(){return _.A(function(a){_.z(a)})};In.prototype.dispose=In.prototype.dispose;In.prototype.getPosition=In.prototype.getPosition;In.prototype.setVolume=In.prototype.setVolume;In.prototype.getVolume=In.prototype.getVolume;
400
+ In.prototype.skip=In.prototype.skip;In.prototype.pause=In.prototype.pause;In.prototype.resume=In.prototype.resume;In.prototype.start=In.prototype.start;In.prototype.load=In.prototype.load;Im.prototype.name=function(){return"clpp.ads.NopAdsManagerFactory"};Im.prototype.W=function(){return!0};Im.prototype.create=function(){return new In};Im.prototype.create=Im.prototype.create;Im.prototype.isSupported=Im.prototype.W;Im.prototype.name=Im.prototype.name;Jn.prototype.getCuePoints=function(){};Jn.prototype.Kb=function(){};Jn.prototype.cb=function(){};_.B("clpp.ads.IAdsTimeline",Jn);Jn.prototype.hasPostroll=Jn.prototype.cb;Jn.prototype.hasPreroll=Jn.prototype.Kb;Jn.prototype.getCuePoints=Jn.prototype.getCuePoints;_.Kn.prototype.Ub=function(){};_.Kn.prototype.release=function(){};_.t=Ln.prototype;_.t.nd=function(a){this.a=a};_.t.Qc=function(a){return this.a?this.a.setMediaKeys(a):Promise.reject(Qa)};_.t.vd=function(){return this.a&&this.a.mediaKeys};_.t.xc=function(a,b){return navigator.requestMediaKeySystemAccess(a,b)};_.t.Pc=function(){return fb};Mn.prototype.a=function(){return fb};Mn.prototype.W=function(){return!!(window.MediaKeys&&navigator.requestMediaKeySystemAccess&&window.MediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)};
401
+ Mn.prototype.create=function(){return new Ln};Dk(new Mn,1E3);_.t=Nn.prototype;_.t.getStatus=function(){return this.a};_.t.forEach=function(a){this.a&&a(this.a,Vp.value())};_.t.get=function(a){if(this.has(a))return this.a};_.t.has=function(a){var b=Vp.value();return this.a&&Lg(a,b)?!0:!1};_.t.entries=function(){};_.t.keys=function(){};_.t.values=function(){};var Vp=new _.Ul(function(){return Rg(new Uint8Array([0]))});_.t=Pn.prototype;_.t.nd=function(){};_.t.Qc=function(a){_.Kf("NopEmeManager.setMediaKeys");return null===a?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))};_.t.vd=function(){return null};_.t.xc=function(){_.Kf("NopEmeManager.requestMediaKeySystemAccess");return Promise.reject(Error("The key system specified is not supported."))};_.t.Pc=function(){return"NOP"};Qn.prototype.a=function(){return"NOP"};Qn.prototype.W=function(){return!0};Qn.prototype.create=function(){return new Pn};
402
+ Dk(new Qn,-1);_.t=Rn.prototype;_.t.nd=function(a){this.f=a};_.t.Qc=function(a){var b=this.a;b&&b!==a&&Un(b,null);return(this.a=a)?Un(a,this.f):Promise.resolve()};_.t.vd=function(){return this.a};_.t.xc=function(a,b){_.Kf("AppleEmeManager.requestMediaKeySystemAccess");try{var c=new Sn(a,b);return Promise.resolve(c)}catch(d){return Promise.reject(d)}};_.t.Pc=function(){return"APPLE"};Sn.prototype.createMediaKeys=function(){var a=new Tn(this.keySystem);return Promise.resolve(a)};
403
+ Sn.prototype.getConfiguration=function(){_.Kf("AppleEmeManager.MediaKeySystemAccess.getConfiguration");return this.a};Tn.prototype.createSession=function(a){a=void 0===a?se:a;this.a.debug("Creating Apple MediaKeys Session");if(a!==se)throw new TypeError("Session type "+a+ba);return new Vn(this.h,"__session_"+this.j++)};Tn.prototype.setServerCertificate=function(){this.a.debug("AppleEmeManager.MediaKeys.setServerCertificate");return Promise.resolve(!1)};_.v(Vn,_.Ph);_.t=Vn.prototype;
404
+ _.t.generateRequest=function(a,b){var c=this;if(this.m)return Promise.reject(ib);this.f.debug("generateRequest");this.h=new _.Qh;try{var d=this.o.createSession(_.Ke,_.R(b));this.a=d;this.sessionId=d.sessionId||this.sessionId||"";this.j.on(d,Ve,function(e){var f=c.keyStatuses.getStatus();c.f.debug("Received Key Message in "+c.sessionId);c.h&&(c.h.resolve(),c.h=null);e=new _.I(qd,{messageType:void 0===f||f===je?id:hd,message:Rg(e.message.buffer)});c.dispatchEvent(e)});this.j.on(d,Te,function(e){c.f.debug("onWebkitKeyAdded_",
405
+ e);c.g&&(Wn(c,"usable"),c.g.resolve(),c.g=null)});this.j.on(d,Ue,function(){var e=c.keyStatuses.getStatus();if(c.a&&c.a&&c.a.error&&c.a.error.code===WebKitMediaKeyError.MEDIA_KEYERR_DOMAIN&&e===je)c.f.warn("Ignoring webkit key error for session "+c.sessionId);else if(c.f.error("Received key error in session "+c.sessionId+" with code "+(c.a.error.code+". Session Status ")+(e+".")),e=Error("EME AppleEmeManager key error"),e.errorCode=c.a.error,null!==c.h)c.h.reject(e),c.h=null;else if(null!==c.g)c.g.reject(e),
406
+ c.g=null;else switch(c.a.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:Wn(c,"output-not-allowed");break;default:Wn(c,_.ed)}});Wn(this,je)}catch(e){this.h.reject(e)}return this.h};_.t.load=function(){this.f.debug("load");return Promise.reject(Error("MediaKeySession.load not yet supported"))};_.t.update=function(a){if(this.m)return Promise.reject(ib);this.f.debug("update");this.g=new _.Qh;try{this.a.update(_.R(a))}catch(b){this.g.reject(b)}return this.g};
407
+ _.t.close=function(){if(this.m)return this.closed;this.f.info("Closing Key Session "+this.sessionId);this.m=!0;try{this.a.close(),this.closed.resolve(),_.ag(this.j)}catch(a){this.closed.reject(a)}return this.closed};_.t.remove=function(){this.f.debug("remove");return Promise.reject(Error("MediaKeySession is only applicable for persistent licenses, which are not supported on this platform"))};Xn.prototype.a=function(){return"APPLE"};Xn.prototype.W=function(){return!!window.WebKitMediaKeys};
408
+ Xn.prototype.create=function(){return new Rn};Dk(new Xn,1100);_.t=Yn.prototype;_.t.nd=function(a){this.a=a};_.t.Qc=function(a){_.Kf("WebkitEmeManager.setMediaKeys");if(!this.a)return Promise.reject(Qa);var b=this.f;b&&b!==a&&co(b,null);(this.f=a)&&co(a,this.a);return Promise.resolve()};_.t.vd=function(){return this.f};_.t.xc=function(a,b){_.Kf("WebkitEmeManager.requestMediaKeySystemAccess");try{if(this.a)var c=this.a;else{var d=document.getElementsByTagName(_.Ie);c=d.length?d[0]:document.createElement(_.Ie)}var e=new Zn(this.g,c,a,b);return Promise.resolve(e)}catch(f){return Promise.reject(f)}};
409
+ _.t.Pc=function(){return"WEBKIT"};Zn.prototype.createMediaKeys=function(){return Promise.resolve(new $n(this.g,this.a))};Zn.prototype.getConfiguration=function(){return this.f};$n.prototype.createSession=function(a){a=void 0===a?se:a;if(a!==se&&a!==_.Nd)throw new TypeError("Session type "+a+ba);if(!this.a)throw a=Error("Media element is missing."),a.name=Ka,a.code=DOMException.INVALID_STATE_ERR,a;this.a.src||(this.a.src="about:blank");a=new eo(this.g,this.a,this.m,a);this.h.push(a);return a};
410
+ $n.prototype.setServerCertificate=function(){return Promise.resolve(!1)};_.v(eo,_.Ph);_.t=eo.prototype;_.t.generateRequest=function(a,b){_.Kf("WebkitEmeManager.MediaKeySession.generateRequest");return go(this,b,null)};_.t.load=function(a){_.Kf(tb);return this.j===_.Nd?go(this,null,a):Promise.reject(Error(Va))};_.t.update=function(a){_.Kf(tb);var b=new _.Qh;ho(this,b,a);return b};
411
+ _.t.close=function(){_.Kf("WebkitEmeManager.MediaKeySession.close");if(this.j!==_.Nd){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var a=fo(this,"cancelKeyRequest");try{this.h[a](this.g,this.sessionId)}catch(b){}}this.closed.resolve();return this.closed};_.t.remove=function(){_.Kf("WebkitEmeManager.MediaKeySession.remove");return this.j!==_.Nd?Promise.reject(Error(Va)):this.close()};io.prototype.a=function(){return"WEBKIT"};
412
+ io.prototype.W=function(){return!(!HTMLMediaElement.prototype.webkitGenerateKeyRequest&&!HTMLMediaElement.prototype.generateKeyRequest)};io.prototype.create=function(){return new Yn};Dk(new io);_.v(jo,_.Aj);jo.prototype.$c=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]};jo.prototype.wf=function(a,b){var c=bk(b);switch(this.o){case Wp:return c;case Xp:return(new _.Wj(c)).f;default:throw Error("Unknown content ID strategy");}};jo.prototype.Qf=function(a,b){b.headers[sa]=$b;this.$c(a,b);var c={spc:_.jj(b.body)};b.body=_.Zg(_.Yj(c,!0))};
413
+ jo.prototype.Rf=function(a,b){var c=_.Tg(b.data).trim(),d="\x3c/ckc\x3e"===c.substr(-6);"\x3cckc\x3e"===c.substr(0,5)&&d&&(c=c.slice(5,-6));b.data=_.lj(c).buffer};_.B(zc,jo);jo.prototype.onFairPlayLicenseResponse=jo.prototype.Rf;jo.prototype.onFairPlayLicenseRequest=jo.prototype.Qf;jo.prototype.extractFairPlayContentId=jo.prototype.wf;jo.prototype.onLicenseRequest=jo.prototype.$c;jo.prototype.constructor=jo.prototype.constructor;jo.NAME=Ga;var Xp="hostname",Wp="full-skd";
414
+ jo.FairPlayContentIdStrategy={HOSTNAME:Xp,FULL_SKD:Wp};_.v(ko,_.Kn);_.t=ko.prototype;_.t.Da=function(a){this.l=a};_.t.va=function(){this.l=null};_.t.Ub=function(){var a=this.l.getConfiguration();if(a.drm&&a.drm&&a.drm.env===Ga){a=a.drm.customData;if(!a)throw new _.K(_.M,7,7100,_.Jc);a=new jo(a.widevineLicenseUrl,a.playReadyLicenseUrl,a.fairPlayLicenseUrl,a.fairPlayCertificateUrl,a.fairPlayContentIdStrategy||Wp);_.vj(a)}};_.t.release=function(){};_.t.id=function(){return"headerdrm"};_.B("clpp.drm.HeaderDrmComponent",ko);_.bn(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})});_.bn(function(){_.Kf("mathRound.install")});_.bn(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;$c in document||(Object.defineProperty(document,$c,{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",
415
+ {get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitSupportsFullscreen||document.webkitFullscreenEnabled}}));document.addEventListener("webkitfullscreenchange",lo);document.addEventListener("webkitfullscreenerror",lo);document.addEventListener("mozfullscreenchange",lo);document.addEventListener("mozfullscreenerror",lo);document.addEventListener("MSFullscreenChange",lo);document.addEventListener("MSFullscreenError",lo)}});_.bn(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;a.requestPictureInPicture&&document.exitPictureInPicture||!a.webkitSupportsPresentationMode||(_.Kf("PiPWebkit.install"),document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,a.requestPictureInPicture=no,document.exitPictureInPicture=oo,document.addEventListener("webkitpresentationmodechanged",mo,!0))}});_.bn(function(){if(window.HTMLVideoElement){var a=HTMLVideoElement.prototype;!a.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in a&&(a.getVideoPlaybackQuality=po)}});_.bn(function(){if(window.VTTCue)_.Jf("Using native VTTCue.");else if(window.TextTrackCue){var a=TextTrackCue.length;if(3===a)_.Jf(sb),window.VTTCue=qo;else if(6===a)_.Jf("Using VTTCue polyfill from 6 argument TextTrackCue."),window.VTTCue=ro;else{try{var b=!!qo(1,2,"")}catch(c){b=!1}b&&(_.Jf(sb),window.VTTCue=qo)}}else _.Lf("VTTCue not available.")});var so;_.bn(function(){_.Kf("InputEvent.install");_.si("Trident/")&&HTMLInputElement.prototype.addEventListener!==to&&(_.Jf("Patching input event support on IE."),so=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=to)});_.bn(function(){navigator.languages||Object.defineProperty(navigator,"languages",{get:function(){return navigator.language?[navigator.language]:["en"]}})});_.bn(function(){_.Kf("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}}});_.Do.prototype.start=function(){var a=this;this.a=new ResizeObserver(function(b){b=b[0];a.g(b.contentRect.width,b.contentRect.height,a.f.isFullscreen())});this.a.observe(this.h)};_.Do.prototype.stop=function(){this.a&&(this.a.disconnect(),this.a=null)};_.Fo.prototype.canPlay=function(a){function b(f){e.stop();d.resolve(f)}var c=document.createElement(_.Ie);c.setAttribute("playsinline","playsinline");a&&(c.muted=!0,c.setAttribute("muted","muted"));c.src=URL.createObjectURL(this.a);var d=new _.Qh;c=c.play();var e=(new _.qh(function(){b(a)})).$(.25);void 0!==c?c.then(function(){return b(!0)})["catch"](function(f){f&&f.message&&f.message===Xa?b(!0):b(!1)}):b(!0);return d};
416
+ var Eo=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,
405
417
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
406
418
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
407
419
  0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,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,
408
420
  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,
409
421
  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,
410
- 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]);_.jo={};_.lo={};var qo=window.XMLHttpRequest;_.u(yo,_.Ph);yo.prototype.then=function(a,b){this.N=this.N.then(a,b);return this};yo.prototype["catch"]=function(a){this.N=this.N["catch"](a);return this};yo.prototype.abort=function(){var a=this;if(this.a)return Promise.resolve();this.a=!0;return this.g.then(function(b){a.m&&clearTimeout(a.m);a.j&&a.j();return b.abort()})["catch"](function(){})};var Eo=window.fetch,Co=window.AbortController,Bo=window.Headers;_.Go={};_.h=_.Jo.prototype;_.h.getBackgroundColor=function(){return this.K};_.h.setBackgroundColor=function(a){this.K=a;this.jb()};_.h.getWindowColor=function(){return this.Y};_.h.setWindowColor=function(a){this.Y=a;this.jb()};_.h.getFontFamily=function(){return this.U};_.h.setFontFamily=function(a){this.U=a;this.jb()};_.h.getFontColor=function(){return this.T};_.h.setFontColor=function(a){this.T=a;this.jb()};_.h.getFontSize=function(){return this.I};_.h.setFontSize=function(a){this.I=a;this.jb()};
411
- _.h.getFontSizePercent=function(){return null===this.D?zp:this.D};_.h.setFontSizePercent=function(a){this.D=a;this.jb()};_.h.getEdgeColor=function(){return this.G};_.h.setEdgeColor=function(a){this.G=a;this.jb()};_.h.getEdgeType=function(){return this.B};_.h.setEdgeType=function(a){this.B=a;this.jb()};_.Jo.prototype.setEdgeType=_.Jo.prototype.setEdgeType;_.Jo.prototype.getEdgeType=_.Jo.prototype.getEdgeType;_.Jo.prototype.setEdgeColor=_.Jo.prototype.setEdgeColor;_.Jo.prototype.getEdgeColor=_.Jo.prototype.getEdgeColor;
412
- _.Jo.prototype.setFontSizePercent=_.Jo.prototype.setFontSizePercent;_.Jo.prototype.getFontSizePercent=_.Jo.prototype.getFontSizePercent;_.Jo.prototype.setFontSize=_.Jo.prototype.setFontSize;_.Jo.prototype.getFontSize=_.Jo.prototype.getFontSize;_.Jo.prototype.setFontColor=_.Jo.prototype.setFontColor;_.Jo.prototype.getFontColor=_.Jo.prototype.getFontColor;_.Jo.prototype.setFontFamily=_.Jo.prototype.setFontFamily;_.Jo.prototype.getFontFamily=_.Jo.prototype.getFontFamily;
413
- _.Jo.prototype.setWindowColor=_.Jo.prototype.setWindowColor;_.Jo.prototype.getWindowColor=_.Jo.prototype.getWindowColor;_.Jo.prototype.setBackgroundColor=_.Jo.prototype.setBackgroundColor;_.Jo.prototype.getBackgroundColor=_.Jo.prototype.getBackgroundColor;var zp=1/15;var Ko,Lo,No,Mo;_.Io=_.yd;Ko="raised";Lo="depressed";No="dropshadow";Mo="uniform";_.A("clpp.text.EdgeType",{NONE:_.Io,RAISED:Ko,DEPRESSED:Lo,DROP_SHADOW:No,UNIFORM:Mo});Po.prototype.parseInit=function(a){try{var b=_.Go[_.Tb]||null;if(b){var c=new b(this.g);c.parseInit(a)}else this.f.warn("The clpp.ttml.Mp4TtmlParser class is not available. Please register the ttml component first.")}catch(e){c=null}if(c)this.a=c;else{try{var d=_.Go[_.Ub]||null;d?(c=new d(this.g),c.parseInit(a)):this.f.warn("The clpp.vtt.Mp4VttParser class is not available. Please register the vtt component first.")}catch(e){c=null}if(c)this.a=c;else throw new _.J(_.K,2,2011);}};
414
- Po.prototype.parseMedia=function(a,b){if(!this.a)throw new _.J(_.K,2,2011);return this.a.parseMedia(a,b)};_.Go[_.Sb]=Po;_.u(_.Ro,_.Jo);_.h=_.Ro.prototype;_.h.append=function(){};_.h.remove=function(){return!0};_.h.isTextVisible=function(){return this.m};_.h.setTextVisibility=function(a){this.m=a};
415
- _.h.jb=function(){if(!this.h){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.Oo(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.g.textContent="."+this.f+"::cue {"+b+"}"}};_.h.destroy=function(){this.j.classList.remove(this.f);document.head.removeChild(this.g);this.h=!0;return Promise.resolve()};var Qo=0;So.prototype.W=function(){return!0};So.prototype.create=function(a){return new _.Ro(a)};So.prototype.create=So.prototype.create;So.prototype.isSupported=So.prototype.W;_.ll(_.xd,new So);_.To.prototype.onContentWillLoad=function(){return Promise.resolve()};_.To.prototype.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.To.prototype.onPlayerWillDestroy=function(){};_.To.prototype.onPlayerWillRelease=function(){};}.call(g,this));
422
+ 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]);_.Io={};_.Ko={};var Po=window.XMLHttpRequest;_.v(Xo,_.Rh);Xo.prototype.then=function(a,b){this.O=this.O.then(a,b);return this};Xo.prototype["catch"]=function(a){this.O=this.O["catch"](a);return this};Xo.prototype.abort=function(){var a=this;if(this.a)return Promise.resolve();this.a=!0;return this.g.then(function(b){a.m&&clearTimeout(a.m);a.j&&a.j();return b.abort()})["catch"](function(){})};var cp=window.fetch,ap=window.AbortController,$o=window.Headers;_.ep={};_.t=_.hp.prototype;_.t.getBackgroundColor=function(){return this.K};_.t.setBackgroundColor=function(a){this.K=a;this.lb()};_.t.getWindowColor=function(){return this.Y};_.t.setWindowColor=function(a){this.Y=a;this.lb()};_.t.getFontFamily=function(){return this.U};_.t.setFontFamily=function(a){this.U=a;this.lb()};_.t.getFontColor=function(){return this.T};_.t.setFontColor=function(a){this.T=a;this.lb()};_.t.getFontSize=function(){return this.I};_.t.setFontSize=function(a){this.I=a;this.lb()};
423
+ _.t.getFontSizePercent=function(){return null===this.C?Yp:this.C};_.t.setFontSizePercent=function(a){this.C=a;this.lb()};_.t.getEdgeColor=function(){return this.G};_.t.setEdgeColor=function(a){this.G=a;this.lb()};_.t.getEdgeType=function(){return this.B};_.t.setEdgeType=function(a){this.B=a;this.lb()};_.hp.prototype.setEdgeType=_.hp.prototype.setEdgeType;_.hp.prototype.getEdgeType=_.hp.prototype.getEdgeType;_.hp.prototype.setEdgeColor=_.hp.prototype.setEdgeColor;_.hp.prototype.getEdgeColor=_.hp.prototype.getEdgeColor;
424
+ _.hp.prototype.setFontSizePercent=_.hp.prototype.setFontSizePercent;_.hp.prototype.getFontSizePercent=_.hp.prototype.getFontSizePercent;_.hp.prototype.setFontSize=_.hp.prototype.setFontSize;_.hp.prototype.getFontSize=_.hp.prototype.getFontSize;_.hp.prototype.setFontColor=_.hp.prototype.setFontColor;_.hp.prototype.getFontColor=_.hp.prototype.getFontColor;_.hp.prototype.setFontFamily=_.hp.prototype.setFontFamily;_.hp.prototype.getFontFamily=_.hp.prototype.getFontFamily;
425
+ _.hp.prototype.setWindowColor=_.hp.prototype.setWindowColor;_.hp.prototype.getWindowColor=_.hp.prototype.getWindowColor;_.hp.prototype.setBackgroundColor=_.hp.prototype.setBackgroundColor;_.hp.prototype.getBackgroundColor=_.hp.prototype.getBackgroundColor;var Yp=1/15;var ip,jp,lp,kp;_.gp=_.Ad;ip="raised";jp="depressed";lp="dropshadow";kp="uniform";_.B("clpp.text.EdgeType",{NONE:_.gp,RAISED:ip,DEPRESSED:jp,DROP_SHADOW:lp,UNIFORM:kp});np.prototype.parseInit=function(a){try{var b=_.ep[_.Vb]||null;if(b){var c=new b(this.g);c.parseInit(a)}else this.f.warn("The clpp.ttml.Mp4TtmlParser class is not available. Please register the ttml component first.")}catch(e){c=null}if(c)this.a=c;else{try{var d=_.ep[_.Wb]||null;d?(c=new d(this.g),c.parseInit(a)):this.f.warn("The clpp.vtt.Mp4VttParser class is not available. Please register the vtt component first.")}catch(e){c=null}if(c)this.a=c;else throw new _.K(_.M,2,2011);}};
426
+ np.prototype.parseMedia=function(a,b){if(!this.a)throw new _.K(_.M,2,2011);return this.a.parseMedia(a,b)};_.ep[_.Ub]=np;_.v(_.pp,_.hp);_.t=_.pp.prototype;_.t.append=function(){};_.t.remove=function(){return!0};_.t.isTextVisible=function(){return this.m};_.t.setTextVisibility=function(a){this.m=a};
427
+ _.t.lb=function(){if(!this.h){var a={"background-color":this.getBackgroundColor(),color:this.getFontColor(),"font-family":this.getFontFamily(),"font-size":this.getFontSize(),"text-shadow":_.mp(this)},b=Object.keys(a).map(function(c){return null!==a[c]?c+":"+a[c]+";":""}).join("");this.g.textContent="."+this.f+"::cue {"+b+"}"}};_.t.destroy=function(){this.j.classList.remove(this.f);document.head.removeChild(this.g);this.h=!0;return Promise.resolve()};var op=0;qp.prototype.W=function(){return!0};qp.prototype.create=function(a){return new _.pp(a)};qp.prototype.create=qp.prototype.create;qp.prototype.isSupported=qp.prototype.W;_.Jl(_.zd,new qp);_.rp.prototype.onContentWillLoad=function(){return Promise.resolve()};_.rp.prototype.onContentLoaded=function(a,b){for(var c=1;c<arguments.length;++c);return Promise.resolve()};_.rp.prototype.onPlayerWillDestroy=function(){};_.rp.prototype.onPlayerWillRelease=function(){};}.call(g,this));
416
428
  g.clpp._ = _;
417
429
  if (typeof(module)!="undefined"&&module.exports) {module.exports=g.clpp;}
418
430
  else if (typeof(define)!="undefined" && define.amd) {define(function(){return g.clpp;});}