@castlabs/prestoplay 6.19.0 → 6.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/cjs/cl.adobe.js +3 -3
  3. package/cjs/cl.airplay.js +3 -3
  4. package/cjs/cl.broadpeak.js +7 -7
  5. package/cjs/cl.cast.js +106 -106
  6. package/cjs/cl.conviva.js +32 -32
  7. package/cjs/cl.core.js +536 -534
  8. package/cjs/cl.crypto.js +9 -9
  9. package/cjs/cl.dash.js +77 -77
  10. package/cjs/cl.externs.js +1 -1
  11. package/cjs/cl.freewheel.js +18 -19
  12. package/cjs/cl.hls.js +69 -69
  13. package/cjs/cl.hlssmpte.js +6 -6
  14. package/cjs/cl.htmlcue.js +28 -29
  15. package/cjs/cl.ima.js +23 -23
  16. package/cjs/cl.mse.js +305 -307
  17. package/cjs/cl.muxdata.js +15 -15
  18. package/cjs/cl.onboard.js +3 -3
  19. package/cjs/cl.persistent.js +13 -13
  20. package/cjs/cl.playlist.js +6 -6
  21. package/cjs/cl.sessions.js +16 -16
  22. package/cjs/cl.simid.js +15 -15
  23. package/cjs/cl.smooth.js +70 -71
  24. package/cjs/cl.thumbnails.js +26 -26
  25. package/cjs/cl.tizen.js +69 -69
  26. package/cjs/cl.ttml.js +28 -29
  27. package/cjs/cl.verimatrix.js +5 -5
  28. package/cjs/cl.vimond.js +11 -12
  29. package/cjs/cl.vr.js +18 -18
  30. package/cjs/cl.vtt.js +14 -14
  31. package/cjs/cl.youbora.js +16 -16
  32. package/cl.adobe.js +3 -3
  33. package/cl.airplay.js +3 -3
  34. package/cl.broadpeak.js +5 -5
  35. package/cl.cast.js +84 -84
  36. package/cl.conviva.js +26 -26
  37. package/cl.core.js +386 -386
  38. package/cl.crypto.js +6 -6
  39. package/cl.dash.js +71 -71
  40. package/cl.externs.js +1 -1
  41. package/cl.freewheel.js +15 -15
  42. package/cl.hls.js +74 -74
  43. package/cl.hlssmpte.js +5 -5
  44. package/cl.htmlcue.js +25 -26
  45. package/cl.ima.js +14 -14
  46. package/cl.mse.js +271 -270
  47. package/cl.muxdata.js +11 -11
  48. package/cl.onboard.js +4 -4
  49. package/cl.persistent.js +10 -10
  50. package/cl.playlist.js +5 -5
  51. package/cl.sessions.js +10 -10
  52. package/cl.simid.js +13 -13
  53. package/cl.smooth.js +58 -58
  54. package/cl.thumbnails.js +17 -17
  55. package/cl.tizen.js +56 -56
  56. package/cl.ttml.js +22 -22
  57. package/cl.verimatrix.js +4 -4
  58. package/cl.vimond.js +9 -8
  59. package/cl.vr.js +14 -14
  60. package/cl.vtt.js +12 -12
  61. package/cl.youbora.js +12 -12
  62. package/package.json +1 -1
package/cjs/cl.cast.js CHANGED
@@ -1,119 +1,119 @@
1
1
  (function(){var g={}; var _ = _ || {}
2
- var f=function(window){var oU="Cannot seek during ads playout.",pU="Cannot switch track",qU="Media session does not exist.",rU="No receivers available",sU="Reset ABR functionality not available on cast.",tU="SDK not yet ready",uU="Sender is destroyed.",vU="clpp.cast.CastProxy",wU="clpp.cast.Player",xU="clpp.cast.Receiver",yU="urn:x-cast:castlabs",zU="urn:x-cast:com.google.cast.media",AU=function(a){return _.I(function(b){return 1==b.a?_.y(b,a.Ac(_.Ye),2):_.y(b,a.Ac(_.Xe),0)})},BU=function(a,b){this.log=new _.K(b);this.player=
3
- a;this.j=null;this.f=_.jp;this.l=_.kp;this.h=2;this.B=Date.now();this.A=-1},CU=function(a){return JSON.stringify(a,function(b,c){if("license"!==b&&typeof c!==_.re){if(c instanceof Event){var d={},e;for(e in c){var f=c[e];typeof f===_.Ue?"detail"===e&&(d[e]=f):e in Event||(d[e]=f)}return d}return typeof c===_.k?isNaN(c)?"NaN":isFinite(c)?c:0>c?"-Infinity":"Infinity":c}})},DU=function(a){if(typeof a!==_.fg)return a;try{return JSON.parse(a,function(b,c){return"NaN"===c?NaN:"-Infinity"===c?-Infinity:
4
- "Infinity"===c?Infinity:c})}catch(b){return a}},EU=function(a,b,c,d){var e,f,g,h,l,m,n,p;return _.I(function(q){if(1==q.a){if(b.includes(a.mimeType))return q["return"](a);g=f=e=null;for(h=0;h<b.length&&!f;)g=b[h++],f=_.Hk(d,a.mimeType,g);if(!f||!g)return q.F(2);l=_.Jj(a.url);return _.y(q,c.fetch(l).U,3)}2!=q.a&&(m=q.f)&&m.data&&(n=f.a(_.lj(m.data)),p=URL.createObjectURL(new Blob([n])),e={url:p,kind:a.kind,language:a.language,label:a.label,mimeType:g});return q["return"](e)})},FU=function(a,b){if(window.chrome&&
5
- chrome.cast&&chrome.cast.media){var c=chrome.cast.media.HlsSegmentFormat;var d=chrome.cast.media.HlsVideoSegmentFormat}else if(window.cast&&cast.framework&&cast.framework.messages)c=cast.framework.messages.HlsSegmentFormat,d=cast.framework.messages.HlsVideoSegmentFormat;else return;switch(a){case _.Hg:return d.FMP4;case _.Gg:return b===_.gk?d.MPEG2_TS:c.TS;case _.ad:return c.AAC;case _.bd:return c.AC3;case _.cd:return c.E_AC3;case "audio/mpeg":return c.MP3;case _.dd:return c.FMP4}},HU=function(a){a=
6
- void 0===a?GU:a;var b=cast.framework.messages||chrome.cast.media;if(!b)throw new _.N(1,8,8001);var c=b.MetadataType,d=b.GenericMediaMetadata,e=b.MovieMediaMetadata,f=b.TvShowMediaMetadata,g=b.MusicTrackMediaMetadata,h=b.PhotoMediaMetadata;b=b.AudiobookChapterMediaMetadata;switch(a){case c.MOVIE:return new e;case c.TV_SHOW:return new f;case c.MUSIC_TRACK:return new g;case c.PHOTO:return new h;case c.AUDIOBOOK_CHAPTER:return new b;default:return new d}},IU=function(a){BU.call(this,a,"clpp.cast.SenderStateManager");
7
- this.o=this.a=null;this.w=this.Ub.bind(this)},JU=function(){this.g=new _.K("clpp.cast.SenderTrackManager");this.a=null;this.h=[];this.f={}},KU=function(a){a=a.a?a.a.a:null;return(a?a.activeTrackIds||[]:[]).map(function(b){return b.toString()})},MU=function(a,b){var c=KU(a);return LU(a,b).find(function(d){return c.includes(d.id)})||null},LU=function(a,b){return a.h.filter(function(c){return c.type===b})},OU=function(a,b,c){var d=a.a.a;if(d)if(c){a.f[b]=c.renditions[0];c=[+c.id];if(b!==_.T){var e=a.xa();
8
- e&&c.push(+e.id)}c=new chrome.cast.media.EditTracksInfoRequest(c);d.editTracksInfo(c,function(){a.f[b]=null;NU(a,b)},function(f){a.f[b]=null;a.g.debug(pU,f)})}else b===_.T&&(c=new chrome.cast.media.EditTracksInfoRequest([]),d.editTracksInfo(c,function(){NU(a,b)},function(f){a.g.debug(pU,f)}))},NU=function(a,b){b===_.fk?a.a.trigger(new _.L(_.Nl)):b===_.T&&a.a.trigger(new _.L(_.Ol))},SU=function(a,b,c,d){_.Ul.call(this);this.g=new _.K(_.Bd);this.ba=a;this.o=new _.Vk(b);this.$=c;this.fa=d;this.h=this.J=
9
- _.$l();this.C=[];this.B=0;this.L=new _.Zj;this.H=this.l=this.a=null;this.A=this.w=!1;this.ga="";this.Fa=1E6;this.f=new JU;this.f.initialize(this);this.j=new IU(this);this.I=new _.Sh;this.K=null;this.G=new Set;this.P=this.gm.bind(this);this.ta=this.Am.bind(this);this.ca=this.sm.bind(this);this.V=this.km.bind(this);this.N=null;window.cast||Object.defineProperty(window,"cast",{get:function(){return window.cast_},set:function(e){window.cast_=e;window.setTimeout(function(){PU(!0)},0)}});QU(this);RU.add(this)},
10
- TU=function(a){var b,c;return _.I(function(d){if(1==d.a)return RU["delete"](a),a.w&&(a.w=!1,b=cast.framework.CastContext.getInstance(),b.removeEventListener(cast.framework.CastContextEventType.CAST_STATE_CHANGED,a.P),b.removeEventListener(cast.framework.CastContextEventType.SESSION_STATE_CHANGED,a.ta)),c=[],a.f&&(c.push(a.f.destroy()),a.f=null),a.j&&(c.push(a.j.destroy()),a.j=null),_.y(d,Promise.all(c),2);a.A=!1;a.o&&(a.o.stop(),a.o=null);a.$=null;a.fa=null;_.A(d)})},VU=function(a){if(!a)return null;
11
- a:{var b=a.metadataType;var c=Object.entries(UU);c=_.w(c);for(var d=c.next();!d.done;d=c.next()){d=_.w(d.value);var e=d.next().value;if(d.next().value===b){b=e;break a}}b=null}if(!b)return null;b=HU(UU[b]);return Object.assign(b,a)},WU=function(a){var b=void 0===b?GU:b;return Object.values(UU).includes(a)?a:b},$U=function(a){var b={},c;for(c in a)void 0!==a[c]&&(b[c]=a[c]);return b},QU=function(a){if(!a.w&&window.chrome&&chrome.cast&&chrome.cast.isAvailable&&window.cast&&cast.framework&&cast.framework.CastContext&&
12
- a.ba.length){a.w=!0;a.o.vg();var b=cast.framework.CastContext.getInstance(),c=new cast.framework.CastOptions;c.receiverApplicationId=a.ba;c.autoJoinPolicy=chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED;b.setOptions(c);b.addEventListener(cast.framework.CastContextEventType.CAST_STATE_CHANGED,a.P);b.addEventListener(cast.framework.CastContextEventType.SESSION_STATE_CHANGED,a.ta);eV&&a.o.ea(.02)}},jV=function(a){var b=a.getPosition();a.a&&a.a.media?(a=a.a.media.startAbsoluteTime,a=typeof a!==_.k?null:a):a=
13
- null;a=null===a?null:a+b;return null===a?b:a},lV=function(a,b){kV(a,b.getMediaSession());b.addEventListener(cast.framework.SessionEventType.MEDIA_SESSION,a.ca);b.addMessageListener(yU,a.V)},kV=function(a,b){a.a=b;a.a&&(a.I.release(),a.H=null,a.l=null,a.l=new cast.framework.RemotePlayer,a.H=new cast.framework.RemotePlayerController(a.l),a.I.on(a.H,cast.framework.RemotePlayerEventType.CURRENT_TIME_CHANGED,a.rj.bind(a)),a.f&&a.f.load(),a.j&&a.j.init(),a.trigger(new _.L(_.He)))},mV=function(a){return _.I(function(b){return a.Hb()?
14
- b.F(0):_.y(b,cast.framework.CastContext.getInstance().requestSession(),0)})},nV=function(a,b){var c,d,e,f,g,h,l,m,n,p,q,t,v,z,C,H,E;return _.I(function(B){switch(B.a){case 1:return c=chrome.cast.media.StreamType,d=_.jv,_.y(B,mV(a),2);case 2:if(!b)return B["return"]();e=cast.framework.CastContext.getInstance();f=e.getCurrentSession();g=new chrome.cast.media.MediaInfo(b.source.url,b.source.type);g.streamType=b.isLive?c.LIVE:c.BUFFERED;h=b;l=h.Yb;m=h.audioMimeType;g.hlsVideoSegmentFormat=FU(l,d.VIDEO);
15
- g.hlsSegmentFormat=FU(m,d.AUDIO);if(!b.bb){B.F(3);break}if(!a.N){B.F(4);break}return _.y(B,Promise.resolve(a.N(b.bb)),5);case 5:if(n=B.f)b.bb=n;case 4:a.h=b.bb;a.C=_.Bp(a.h);a.B=a.C.findIndex(function(G){return G.url===b.source.url});if(!b.bb.remoteTextTracks){B.F(6);break}return _.y(B,Promise.all(b.bb.remoteTextTracks.map(a.Bk.bind(a))),7);case 7:p=B.f,g.tracks=p.filter(function(G){return G}),b.bb.remoteTextTracks=void 0;case 6:delete b.bb.autoplay,b.bb.startTime=null,g.customData={playerConfiguration:CU(b.bb)};
16
- case 3:q=a.zb()||{};t=WU(q.metadataType);typeof b.gg===_.k&&(v={metadataType:t,sectionStartAbsoluteTime:b.gg});b.source.name&&(z={metadataType:t,title:b.source.name});C=$U(q);if(H=VU(Object.assign({},v,z,C)))g.metadata=H;E=new chrome.cast.media.LoadRequest(g);typeof b.autoplay===_.jd&&(E.autoplay=b.autoplay);typeof b.currentTime===_.k&&(E.currentTime=b.currentTime);return _.y(B,f.loadMedia(E),0)}})},oV=function(a,b,c){c=void 0===c?0:c;var d,e;return _.I(function(f){(d=a.f.xa())&&d.language&&(a.h.preferredTextLanguage=
17
- d.language);(e=a.f.ma())&&e.language&&(a.h.preferredAudioLanguage=e.language);return _.y(f,nV(a,{source:a.getLoadedSource(),currentTime:c,isLive:a.isLive(),gg:a.getPresentationStartTime(),autoplay:b,bb:a.h}),0)})},PU=function(a){if(a){a=_.w(RU);for(var b=a.next();!b.done;b=a.next())QU(b.value)}},qV=function(a,b,c){_.Ul.call(this);var d=this;this.f=a;this.h=b;this.j=typeof c===_.re?c:function(e,f){d.f&&e!==_.qp&&e!==_.jp&&d.f.load(f)};this.a=pV(this);this.g=new _.K(vU);this.f&&this.forwardEventsTo(this.f)},
18
- pV=function(a){return new SU(a.h,function(){a.trigger(new _.L(_.qd))},function(b,c){var d=a.f.getConfiguration();d.source=c.source;d.autoplay=!1;d.startTime=c.currentTime?Math.max(c.currentTime-1,0):null;d.ima&&d.startTime&&(d.ima.playAdsAfterTime=d.startTime);c.Ig&&(d.preferredAudioLanguage=c.Ig);c.Ii&&(d.preferredTextLanguage=c.Ii);_.ds(a.f,null);a.trigger(new _.L("castingended"));a.j(b,d)},function(){return rV(a)})},rV=function(a){var b;return _.I(function(c){if(1==c.a)return a.trigger(new _.L(_.pd)),
19
- b=a.f.a,b!==a.a&&a.f&&a.a?_.y(c,a.f.release(),2):c["return"]();_.ds(a.f,a.a);_.A(c)})},sV=function(a){BU.call(this,a,"clpp.cast.StateManager");this.I=this.vj.bind(this);this.H=this.uj.bind(this);this.w=this.om.bind(this);this.o=this.fm.bind(this);this.K=this.xj.bind(this);this.J=this.wj.bind(this);this.L=this.Dm.bind(this);this.G=this.rm.bind(this);this.C=this.S.bind(this);this.a=this.tj.bind(this)},tV=function(a,b,c,d,e){this.a=a;this.f=b;this.l=typeof c===_.k?c:1;this.h=typeof d===_.k?d:1;this.j=
20
- typeof e===_.k?e:0},uV=function(a){this.a=a},wV=function(a){this.m=a;this.a=null;this.h=this.yj.bind(this);this.f=[cast.framework.events.EventType.PLAYER_LOADING,cast.framework.events.EventType.BREAK_CLIP_LOADING,cast.framework.events.EventType.BREAK_STARTED,cast.framework.events.EventType.BREAK_ENDED,cast.framework.events.EventType.BREAK_CLIP_STARTED,cast.framework.events.EventType.BREAK_CLIP_ENDED,cast.framework.events.EventType.PLAYING,cast.framework.events.EventType.PAUSE,cast.framework.events.EventType.BUFFERING];
21
- vV().addEventListener(this.f,this.h)},zV=function(a,b,c){var d,e,f,g,h,l,m;return _.I(function(n){if(1==n.a){d=b.adTagUrl;if(!d)return n["return"]();_.D(n,2);xV=!1;e=_.Jj(d);return _.y(n,c.fetch(e).U,4)}if(2!=n.a){if((f=n.f)&&f.data)if(g=_.S.aa(f.data),h=new DOMParser,l=h.parseFromString(g,_.mg),l.getElementsByTagName("vmap:VMAP").length)_.Dh("VMAP detected."),a.vmapAdsRequest=yV(g);else if(l.getElementsByTagName("VAST").length){_.Dh("VAST detected.");var p=new cast.framework.messages.BreakClip("bc1");
22
- p.vastAdsRequest=yV(g);var q=new cast.framework.messages.Break("b1",[p.id],0);a.breakClips=[p];a.breaks=[q]}else _.Dh("Unsupported schema."),xV=!0;return _.oh(n,0)}m=_.F(n);_.Dh("Failed to fetch an ad",m);xV=!0;_.A(n)})},yV=function(a){var b=new cast.framework.messages.VastAdsRequest;b.adsResponse=a;return b},vV=function(){return cast.framework.CastReceiverContext.getInstance().getPlayerManager()},BV=function(a,b,c){if(c instanceof cast.framework.events.BreaksEvent||-1!==a.getPosition()){var d=null;
23
- (c=AV(a,c))&&(d={ad:c});a.m.trigger(new _.L(b,d))}},CV=function(a,b){var c=new _.N(1,10,10003,{errorType:b});a.m.onError(c)},AV=function(a,b){var c=null;if(a.a&&b instanceof cast.framework.events.BreaksEvent){var d=null,e=null,f;typeof b.breakClipId===_.fg&&(d=a.a.getBreakClipById(b.breakClipId));typeof b.breakId===_.fg&&(e=a.a.getBreakById(b.breakId),!e&&d&&(e=a.a.getBreaks().find(function(g){return g.breakClipIds.includes(d.id)})||null),e&&(f=a.a.getBreaks().filter(function(g){return 0<=g.position}).sort(function(g,
24
- h){return g.position-h.position}).findIndex(function(g){return g===e})));c=new tV(d,e,b.index,b.total,f)}return c},DV=function(a){this.fb=a;this.a=this.f.bind(this)},EV=function(){return[cast.framework.events.EventType.PLAYER_LOAD_COMPLETE,cast.framework.events.EventType.TIMED_METADATA_CHANGED,cast.framework.events.EventType.TIMED_METADATA_ENTER,cast.framework.events.EventType.TIMED_METADATA_EXIT]},FV=function(a){var b=a.dashTimedMetadata,c=_.wg;b&&(c=b.schemeIdUri);return{type:c.startsWith(_.vg)?
25
- _.ci:_.ai,schemeIdUri:c,id:a.id||"",startTime:a.startTime,endTime:a.endTime,value:b&&b.value||"",eventElement:b?b.eventElement:null}},GV=function(){this.g=new _.K("clpp.cast.TrackManager");this.m=null;this.o=1E9;this.h=[];this.j=[];this.l=this.Xm.bind(this);this.a=this.f=null},HV=function(){return cast.framework.CastReceiverContext.getInstance().getPlayerManager()},JV=function(a){a.a=HV().getTextTracksManager();var b=a.a.getTracks();a.j=IV(_.T,b)},KV=function(a,b,c,d){c=_.hi(c).filter(function(h){return h});
26
- var e=!1,f=[];b===_.fk?f=a.getAudioTracks():b===_.T&&(f=a.ia());if(c=c.find(function(h){var l=_.cj(h);return f.some(function(m){m=_.cj(m.language||"");return _.dj(l,m)})})){var g=_.cj(c);c=f.filter(function(h){h=_.cj(h.language||"");return _.dj(g,h)});f=c.length?c:f;e=e||!!c.length}_.S.Me(d)&&(c=f.filter(function(h){return h.roles.includes(d)}),f=c.length?c:f,e=e||!!c.length);e&&f[0]&&(e=f[0],a.g.info("Will select track",e),b===_.fk?a.Da(e):b===_.T&&a.Qa(e))},IV=function(a,b){for(var c=[],d=_.w(b),
27
- e=d.next();!e.done;e=d.next()){e=e.value;var f=new _.dk(e.trackId.toString(),a);f.roles=e.roles||[];f.kind=e.subtype||null;f.language=e.language||null;f.originalLanguage=e.language||null;f.label=e.name||null;f.src=e.trackContentId||null;f.mimeType=e.trackContentType||null;e.customData&&(f.mimeType=e.customData.mimeType||f.mimeType,f.src=e.customData.url||f.src);f.renditions.push(new _.ok(f.id,f));c.push(f)}return c},LV=function(){_.Ul.call(this);this.g=new _.K(wU);this.h=this.w=_.$l();this.A=null;
28
- this.l=-1;this.G=new _.Zj;this.f=this.o=this.j=this.a=this.B=null;this.C=!1},MV=function(){return cast.framework.CastReceiverContext.getInstance().getPlayerManager()},PV=function(a,b){function c(){b.protectionSystem=cast.framework.ContentProtection.NONE;b.licenseUrl=void 0;b.licenseRequestHandler=void 0;b.licenseHandler=void 0}if(a&&a.drm){var d=a.drm,e=_.xm(d);if(e){var f=[_.Nd];_.Bp(a)[0].type!==_.Yc&&f.unshift(_.Pd);d.preferredDrmSystem===_.Nd&&f.reverse();for(var g,h;f.length&&!h;)g=f.shift(),
29
- h=e.eb[g];h?(d=g===_.Pd?cast.framework.ContentProtection.WIDEVINE:g===_.Nd?cast.framework.ContentProtection.PLAYREADY:void 0,b.protectionSystem=d,b.licenseUrl=h.licenseUrl,d={ldlDelay:0,customData:{}},NV(b,h,a,d),OV(b,h,a,d)):c()}else c()}else c()},NV=function(a,b,c,d){b.modifiers.licenseRequest?a.licenseRequestHandler=function(e){var f=_.Jj({method:_.Ib,uris:[e.url]});e.headers&&(f.headers=e.headers);f.body=e.content;f.allowCrossSiteCredentials=e.withCredentials;b.modifiers.licenseRequest(c,f,d);
30
- e.url=f.uris[0];e.headers=f.headers;e.content=f.body;e.withCredentials=f.allowCrossSiteCredentials}:a.licenseRequestHandler=void 0},OV=function(a,b,c,d){b.modifiers.licenseResponse?a.licenseHandler=function(e,f){var g;return _.I(function(h){return 1==h.a?(g=_.Kj(Object.assign({},f.headers),e.buffer,200,""),_.y(h,b.modifiers.licenseResponse(c,g,d),2)):h["return"](_.lj(g.data))})}:a.licenseHandler=void 0},QV=function(){this.a=!1;this.g=new _.K(xU);this.f=this.m=null;this.h=new Set;this.A=this.qm.bind(this);
31
- this.w=this.sj.bind(this);this.j=null;this.o=new _.Sh;this.l=null},SV=function(){return RV||(RV=new QV)},TV=function(){return cast.framework.CastReceiverContext.getInstance()},UV=function(){var a=TV().getPlayerManager().getMediaInformation();return a&&a.metadata?a.metadata:null},VV=function(a,b){var c=TV().getPlayerManager().getMediaInformation();if(c){b?c.metadata=b:delete c.metadata;var d=!0;d=void 0===d?!1:d;TV().getPlayerManager().setMediaInformation(c,d)}else a.g.warn("No mediaInformation is present. Skipping metadata update.")},
32
- XV=function(a,b){a.g.debug("Detected HLS, parsing");var c=cast.framework.messages.HlsVideoSegmentFormat,d=TV();c=(TV().getPlayerManager().getMediaInformation()||{}).hlsVideoSegmentFormat===c.FMP4?_.Hg:_.Gg;b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");for(var e=b.split(/\n+/m),f=[],g=0;g<e.length;){var h=e[g].trim();if(e[g].startsWith("#EXT-X-STREAM-INF")){var l=WV(h,_.sa),m=WV(h,_.Qb),n=_.w([]),p=n.next().value;n=n.next().value;m&&(m=_.w(m.split("x").map(function(q){return+q})),p=m.next().value,n=m.next().value);
33
- if(!d.canDisplayType(c,l,p,n)){g+=2;continue}}f.push(h);++g}return f.join("\n")},WV=function(a,b){b+="\x3d";var c=a.indexOf(b);if(0<=c){var d=a.substring(c+b.length);d.startsWith('"')?(d=d.substring(1),d=d.substring(0,d.indexOf('"'))):(c=d.indexOf(","),0<=c&&(d=d.substring(0,c)))}return d},YV=function(a){this.f=a;this.a=null;this.h=new _.Sh;this.j=[cast.framework.RemotePlayerEventType.IS_PLAYING_BREAK_CHANGED,cast.framework.RemotePlayerEventType.CURRENT_BREAK_CLIP_NUMBER_CHANGED,cast.framework.RemotePlayerEventType.MEDIA_INFO_CHANGED,
34
- cast.framework.RemotePlayerEventType.IS_PAUSED_CHANGED]},$V=function(a,b){var c=null,d=ZV(a);d&&(c={ad:d});a.f.trigger(new _.L(b,c))},ZV=function(a){var b=null;if(a.a&&a.a.mediaInfo){b=a.a.mediaInfo;var c=null,d=null,e=a.a.currentBreakClipNumber;if(b.breaks&&(c=b.breaks.find(function(h){return h.id===a.a.breakId})||null)){var f=c.breakClipIds.length;var g=0>=c.position?c.position:b.breaks.filter(function(h){return 0<=h.position}).sort(function(h,l){return h.position-l.position}).findIndex(function(h){return h===
35
- c})}b.breakClips&&(d=b.breakClips.find(function(h){return h.id===a.a.breakClipId})||null);b=new tV(d,c,e,f,g)}return b},aW=function(){},bW=function(){};_.u=BU.prototype;_.u.release=function(){this.va(_.jp)};_.u.destroy=function(){this.j=this.player=null;return Promise.resolve()};_.u.getState=function(){return this.f};_.u.onError=function(a){a.severity===_.O&&this.va(_.up)};
36
- _.u.va=function(a){if(a!==this.f)if(this.f===_.up&&a!==_.jp)this.log.debug("Player is in ERROR state and can not switch to",a);else{var b=Date.now();this.l=this.f;this.f=a;this.f===_.op?(this.A=b,this.player.trigger(new _.L(_.ld,{detail:{bufferedTimeMS:-1,reason:this.h}}))):this.l===_.op&&this.player.trigger(new _.L(_.kd,{detail:{bufferedTimeMS:b-this.A,reason:this.h}}));a={currentState:this.f,previousState:this.l,timeSinceLastStateChangeMS:b-this.B};this.B=b;this.j&&_.$o(this.j,this.f);this.player.trigger(new _.L(_.cg,
37
- {detail:a}))}};_.J("clpp.cast.CastUtils",function(){});var GU=0,UU={GENERIC:GU,MOVIE:1,TV_SHOW:2,MUSIC_TRACK:3,PHOTO:4,AUDIOBOOK_CHAPTER:5};_.x(IU,BU);IU.prototype.init=function(){var a=this.player,b=a.a;b&&(this.a&&this.a.removeUpdateListener(this.w),this.a=b,this.a.addUpdateListener(this.w),this.o=a.l)};IU.prototype.destroy=function(){var a=this;return _.I(function(b){a.a&&(a.a.removeUpdateListener(a.w),a.a=null);return _.y(b,BU.prototype.destroy.call(a),0)})};IU.prototype.va=function(a){var b=this.player.l;b&&b.isPlayingBreak||BU.prototype.va.call(this,a)};
38
- IU.prototype.Ub=function(){if(this.a&&this.o&&!this.o.isPlayingBreak)switch(this.a.playerState){case chrome.cast.media.PlayerState.IDLE:switch(this.a.idleReason){case chrome.cast.media.IdleReason.FINISHED:this.va(_.qp);break;case chrome.cast.media.IdleReason.ERROR:this.va(_.up);break;default:this.va(_.jp)}break;case chrome.cast.media.PlayerState.PLAYING:this.va(_.xp);break;case chrome.cast.media.PlayerState.PAUSED:this.va(_.wp);break;case chrome.cast.media.PlayerState.BUFFERING:this.va(_.op)}};_.x(JU,_.U);_.u=JU.prototype;_.u.initialize=function(a){this.a=a};_.u.release=function(){this.h=[];this.f={}};
39
- _.u.load=function(){this.release();var a=this.a.a;a&&(a=a.media)&&(this.h=(a=a.tracks)?a.map(function(b){switch(b.type){case chrome.cast.media.TrackType.VIDEO:var c=_.gk;break;case chrome.cast.media.TrackType.AUDIO:c=_.fk;break;case chrome.cast.media.TrackType.TEXT:c=_.T}c=new _.dk(b.trackId.toString(),c);c.kind=b.subtype;c.language=b.language;c.label=b.name;c.src=b.trackContentId;c.mimeType=b.trackContentType;b.customData&&(c.src=b.customData.url||c.src,c.mimeType=b.customData.mimeType||c.mimeType);
40
- c.renditions.push(new _.ok(c.id,c));return c}):[],this.a.trigger(new _.L(_.lv)))};_.u.destroy=function(){this.a=null};_.u.getVideoTracks=function(){return LU(this,_.gk)};_.u.getAudioTracks=function(){return LU(this,_.fk)};_.u.ia=function(){return LU(this,_.T)};_.u.na=function(){var a=this.Oa();return a?a.renditions[0]:null};_.u.Sa=function(){var a=this.ma();return a?a.renditions[0]:null};_.u.Na=function(){var a=this.xa();return a?a.renditions[0]:null};_.u.lb=function(){return this.f[_.gk]||null};
41
- _.u.Ab=function(){return this.f[_.fk]||null};_.u.Bb=function(){return this.f[_.T]||null};_.u.Oa=function(){return MU(this,_.gk)};_.u.ma=function(){return MU(this,_.fk)};_.u.xa=function(){return MU(this,_.T)};_.u.wb=function(a){OU(this,_.gk,a)};_.u.Da=function(a){OU(this,_.fk,a)};_.u.Qa=function(a){OU(this,_.T,a)};_.u.cb=function(a){this.wb(a&&a.track)};_.u.ub=function(a){this.Da(a&&a.track)};_.u.vb=function(a){this.Qa(a&&a.track)};_.u.addTextTrack=function(){return _.I(function(a){_.A(a)})};
42
- _.u.qa=function(){return!0};JU.prototype.isAbrEnabled=JU.prototype.qa;JU.prototype.addTextTrack=JU.prototype.addTextTrack;JU.prototype.setTextRendition=JU.prototype.vb;JU.prototype.setAudioRendition=JU.prototype.ub;JU.prototype.setVideoRendition=JU.prototype.cb;JU.prototype.setTextTrack=JU.prototype.Qa;JU.prototype.setAudioTrack=JU.prototype.Da;JU.prototype.setVideoTrack=JU.prototype.wb;JU.prototype.getTextTrack=JU.prototype.xa;JU.prototype.getAudioTrack=JU.prototype.ma;
43
- JU.prototype.getVideoTrack=JU.prototype.Oa;JU.prototype.getLoadingTextRendition=JU.prototype.Bb;JU.prototype.getLoadingAudioRendition=JU.prototype.Ab;JU.prototype.getLoadingVideoRendition=JU.prototype.lb;JU.prototype.getTextRendition=JU.prototype.Na;JU.prototype.getAudioRendition=JU.prototype.Sa;JU.prototype.getVideoRendition=JU.prototype.na;JU.prototype.getTextTracks=JU.prototype.ia;JU.prototype.getAudioTracks=JU.prototype.getAudioTracks;JU.prototype.getVideoTracks=JU.prototype.getVideoTracks;_.x(SU,_.Ul);_.u=SU.prototype;_.u.init=function(a,b){this.h=this.J=b};_.u.unload=function(){var a=this;return new Promise(function(b,c){a.f&&a.f.release();a.a&&!a.a.idleReason||b();a.a.stop(null,b,c)})};_.u.release=function(){var a=this;return this.unload().then(function(){a.j&&a.j.release()})};_.u.getTimeline=function(){return null};_.u.setupPlaylist=function(){return Promise.reject(_.Eb)};_.u.appendLoad=function(){return Promise.reject(_.Eb)};_.u.seekWith=function(){return Promise.reject(_.Eb)};
2
+ var f=function(window){var pU="Cannot seek during ads playout.",qU="Cannot switch track",rU="Media session does not exist.",sU="No receivers available",tU="Reset ABR functionality not available on cast.",uU="SDK not yet ready",vU="Sender is destroyed.",wU="clpp.cast.CastProxy",xU="clpp.cast.Player",yU="clpp.cast.Receiver",zU="urn:x-cast:castlabs",AU="urn:x-cast:com.google.cast.media",BU=function(a){return _.I(function(b){return 1==b.a?_.y(b,a.Ac(_.Ze),2):_.y(b,a.Ac(_.Ye),0)})},CU=function(a,b){this.log=new _.K(b);this.player=
3
+ a;this.j=null;this.f=_.op;this.l=_.pp;this.h=2;this.B=Date.now();this.A=-1},DU=function(a){return JSON.stringify(a,function(b,c){if("license"!==b&&typeof c!==_.se){if(c instanceof Event){var d={},e;for(e in c){var f=c[e];typeof f===_.Ve?"detail"===e&&(d[e]=f):e in Event||(d[e]=f)}return d}return typeof c===_.k?isNaN(c)?"NaN":isFinite(c)?c:0>c?"-Infinity":"Infinity":c}})},EU=function(a){if(typeof a!==_.gg)return a;try{return JSON.parse(a,function(b,c){return"NaN"===c?NaN:"-Infinity"===c?-Infinity:
4
+ "Infinity"===c?Infinity:c})}catch(b){return a}},FU=function(a,b,c,d){var e,f,g,h,l,m,n,p;return _.I(function(q){if(1==q.a){if(b.includes(a.mimeType))return q["return"](a);g=f=e=null;for(h=0;h<b.length&&!f;)g=b[h++],f=_.Hk(d,a.mimeType,g);if(!f||!g)return q.F(2);l=_.uj(a.url);return _.y(q,c.fetch(l).U,3)}2!=q.a&&(m=q.f)&&m.data&&(n=f.a(_.Wi(m.data)),p=URL.createObjectURL(new Blob([n])),e={url:p,kind:a.kind,language:a.language,label:a.label,mimeType:g});return q["return"](e)})},GU=function(a,b){if(window.chrome&&
5
+ chrome.cast&&chrome.cast.media){var c=chrome.cast.media.HlsSegmentFormat;var d=chrome.cast.media.HlsVideoSegmentFormat}else if(window.cast&&cast.framework&&cast.framework.messages)c=cast.framework.messages.HlsSegmentFormat,d=cast.framework.messages.HlsVideoSegmentFormat;else return;switch(a){case _.Ig:return d.FMP4;case _.Hg:return b===_.Uj?d.MPEG2_TS:c.TS;case _.bd:return c.AAC;case _.cd:return c.AC3;case _.dd:return c.E_AC3;case "audio/mpeg":return c.MP3;case _.ed:return c.FMP4}},IU=function(a){a=
6
+ void 0===a?HU:a;var b=cast.framework.messages||chrome.cast.media;if(!b)throw new _.N(1,8,8001);var c=b.MetadataType,d=b.GenericMediaMetadata,e=b.MovieMediaMetadata,f=b.TvShowMediaMetadata,g=b.MusicTrackMediaMetadata,h=b.PhotoMediaMetadata;b=b.AudiobookChapterMediaMetadata;switch(a){case c.MOVIE:return new e;case c.TV_SHOW:return new f;case c.MUSIC_TRACK:return new g;case c.PHOTO:return new h;case c.AUDIOBOOK_CHAPTER:return new b;default:return new d}},JU=function(a){CU.call(this,a,"clpp.cast.SenderStateManager");
7
+ this.o=this.a=null;this.w=this.Ub.bind(this)},KU=function(){this.g=new _.K("clpp.cast.SenderTrackManager");this.a=null;this.h=[];this.f={}},LU=function(a){a=a.a?a.a.a:null;return(a?a.activeTrackIds||[]:[]).map(function(b){return b.toString()})},NU=function(a,b){var c=LU(a);return MU(a,b).find(function(d){return c.includes(d.id)})||null},MU=function(a,b){return a.h.filter(function(c){return c.type===b})},PU=function(a,b,c){var d=a.a.a;if(d)if(c){a.f[b]=c.renditions[0];c=[+c.id];if(b!==_.T){var e=a.xa();
8
+ e&&c.push(+e.id)}c=new chrome.cast.media.EditTracksInfoRequest(c);d.editTracksInfo(c,function(){a.f[b]=null;OU(a,b)},function(f){a.f[b]=null;a.g.debug(qU,f)})}else b===_.T&&(c=new chrome.cast.media.EditTracksInfoRequest([]),d.editTracksInfo(c,function(){OU(a,b)},function(f){a.g.debug(qU,f)}))},OU=function(a,b){b===_.Tj?a.a.trigger(new _.L(_.Nl)):b===_.T&&a.a.trigger(new _.L(_.Ol))},TU=function(a,b,c,d){_.Ul.call(this);this.g=new _.K(_.Cd);this.ba=a;this.o=new _.Vk(b);this.$=c;this.fa=d;this.h=this.J=
9
+ _.em();this.C=[];this.B=0;this.L=new _.Nj;this.H=this.l=this.a=null;this.A=this.w=!1;this.ga="";this.Fa=1E6;this.f=new KU;this.f.initialize(this);this.j=new JU(this);this.I=new _.Oh;this.K=null;this.G=new Set;this.P=this.gm.bind(this);this.ta=this.Am.bind(this);this.ca=this.sm.bind(this);this.V=this.km.bind(this);this.N=null;window.cast||Object.defineProperty(window,"cast",{get:function(){return window.cast_},set:function(e){window.cast_=e;window.setTimeout(function(){QU(!0)},0)}});RU(this);SU.add(this)},
10
+ UU=function(a){var b,c;return _.I(function(d){if(1==d.a)return SU["delete"](a),a.w&&(a.w=!1,b=cast.framework.CastContext.getInstance(),b.removeEventListener(cast.framework.CastContextEventType.CAST_STATE_CHANGED,a.P),b.removeEventListener(cast.framework.CastContextEventType.SESSION_STATE_CHANGED,a.ta)),c=[],a.f&&(c.push(a.f.destroy()),a.f=null),a.j&&(c.push(a.j.destroy()),a.j=null),_.y(d,Promise.all(c),2);a.A=!1;a.o&&(a.o.stop(),a.o=null);a.$=null;a.fa=null;_.A(d)})},WU=function(a){if(!a)return null;
11
+ a:{var b=a.metadataType;var c=Object.entries(VU);c=_.w(c);for(var d=c.next();!d.done;d=c.next()){d=_.w(d.value);var e=d.next().value;if(d.next().value===b){b=e;break a}}b=null}if(!b)return null;b=IU(VU[b]);return Object.assign(b,a)},XU=function(a){var b=void 0===b?HU:b;return Object.values(VU).includes(a)?a:b},aV=function(a){var b={},c;for(c in a)void 0!==a[c]&&(b[c]=a[c]);return b},RU=function(a){if(!a.w&&window.chrome&&chrome.cast&&chrome.cast.isAvailable&&window.cast&&cast.framework&&cast.framework.CastContext&&
12
+ a.ba.length){a.w=!0;a.o.vg();var b=cast.framework.CastContext.getInstance(),c=new cast.framework.CastOptions;c.receiverApplicationId=a.ba;c.autoJoinPolicy=chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED;b.setOptions(c);b.addEventListener(cast.framework.CastContextEventType.CAST_STATE_CHANGED,a.P);b.addEventListener(cast.framework.CastContextEventType.SESSION_STATE_CHANGED,a.ta);fV&&a.o.ea(.02)}},kV=function(a){var b=a.getPosition();a.a&&a.a.media?(a=a.a.media.startAbsoluteTime,a=typeof a!==_.k?null:a):a=
13
+ null;a=null===a?null:a+b;return null===a?b:a},mV=function(a,b){lV(a,b.getMediaSession());b.addEventListener(cast.framework.SessionEventType.MEDIA_SESSION,a.ca);b.addMessageListener(zU,a.V)},lV=function(a,b){a.a=b;a.a&&(a.I.release(),a.H=null,a.l=null,a.l=new cast.framework.RemotePlayer,a.H=new cast.framework.RemotePlayerController(a.l),a.I.on(a.H,cast.framework.RemotePlayerEventType.CURRENT_TIME_CHANGED,a.rj.bind(a)),a.f&&a.f.load(),a.j&&a.j.init(),a.trigger(new _.L(_.Ie)))},nV=function(a){return _.I(function(b){return a.Hb()?
14
+ b.F(0):_.y(b,cast.framework.CastContext.getInstance().requestSession(),0)})},oV=function(a,b){var c,d,e,f,g,h,l,m,n,p,q,t,v,z,C,H,E;return _.I(function(B){switch(B.a){case 1:return c=chrome.cast.media.StreamType,d=_.mv,_.y(B,nV(a),2);case 2:if(!b)return B["return"]();e=cast.framework.CastContext.getInstance();f=e.getCurrentSession();g=new chrome.cast.media.MediaInfo(b.source.url,b.source.type);g.streamType=b.isLive?c.LIVE:c.BUFFERED;h=b;l=h.Yb;m=h.audioMimeType;g.hlsVideoSegmentFormat=GU(l,d.VIDEO);
15
+ g.hlsSegmentFormat=GU(m,d.AUDIO);if(!b.bb){B.F(3);break}if(!a.N){B.F(4);break}return _.y(B,Promise.resolve(a.N(b.bb)),5);case 5:if(n=B.f)b.bb=n;case 4:a.h=b.bb;a.C=_.Gp(a.h);a.B=a.C.findIndex(function(G){return G.url===b.source.url});if(!b.bb.remoteTextTracks){B.F(6);break}return _.y(B,Promise.all(b.bb.remoteTextTracks.map(a.Bk.bind(a))),7);case 7:p=B.f,g.tracks=p.filter(function(G){return G}),b.bb.remoteTextTracks=void 0;case 6:delete b.bb.autoplay,b.bb.startTime=null,g.customData={playerConfiguration:DU(b.bb)};
16
+ case 3:q=a.zb()||{};t=XU(q.metadataType);typeof b.gg===_.k&&(v={metadataType:t,sectionStartAbsoluteTime:b.gg});b.source.name&&(z={metadataType:t,title:b.source.name});C=aV(q);if(H=WU(Object.assign({},v,z,C)))g.metadata=H;E=new chrome.cast.media.LoadRequest(g);typeof b.autoplay===_.kd&&(E.autoplay=b.autoplay);typeof b.currentTime===_.k&&(E.currentTime=b.currentTime);return _.y(B,f.loadMedia(E),0)}})},pV=function(a,b,c){c=void 0===c?0:c;var d,e;return _.I(function(f){(d=a.f.xa())&&d.language&&(a.h.preferredTextLanguage=
17
+ d.language);(e=a.f.ma())&&e.language&&(a.h.preferredAudioLanguage=e.language);return _.y(f,oV(a,{source:a.getLoadedSource(),currentTime:c,isLive:a.isLive(),gg:a.getPresentationStartTime(),autoplay:b,bb:a.h}),0)})},QU=function(a){if(a){a=_.w(SU);for(var b=a.next();!b.done;b=a.next())RU(b.value)}},qV=function(a){this.a=a},rV=function(a,b,c,d,e){this.a=a;this.f=b;this.l=typeof c===_.k?c:1;this.h=typeof d===_.k?d:1;this.j=typeof e===_.k?e:0},tV=function(a){this.m=a;this.a=null;this.h=this.yj.bind(this);
18
+ this.f=[cast.framework.events.EventType.PLAYER_LOADING,cast.framework.events.EventType.BREAK_CLIP_LOADING,cast.framework.events.EventType.BREAK_STARTED,cast.framework.events.EventType.BREAK_ENDED,cast.framework.events.EventType.BREAK_CLIP_STARTED,cast.framework.events.EventType.BREAK_CLIP_ENDED,cast.framework.events.EventType.PLAYING,cast.framework.events.EventType.PAUSE,cast.framework.events.EventType.BUFFERING];sV().addEventListener(this.f,this.h)},wV=function(a,b,c){var d,e,f,g,h,l,m;return _.I(function(n){if(1==
19
+ n.a){d=b.adTagUrl;if(!d)return n["return"]();_.D(n,2);uV=!1;e=_.uj(d);return _.y(n,c.fetch(e).U,4)}if(2!=n.a){if((f=n.f)&&f.data)if(g=_.S.aa(f.data),h=new DOMParser,l=h.parseFromString(g,_.ng),l.getElementsByTagName("vmap:VMAP").length)_.Eh("VMAP detected."),a.vmapAdsRequest=vV(g);else if(l.getElementsByTagName("VAST").length){_.Eh("VAST detected.");var p=new cast.framework.messages.BreakClip("bc1");p.vastAdsRequest=vV(g);var q=new cast.framework.messages.Break("b1",[p.id],0);a.breakClips=[p];a.breaks=
20
+ [q]}else _.Eh("Unsupported schema."),uV=!0;return _.ph(n,0)}m=_.F(n);_.Eh("Failed to fetch an ad",m);uV=!0;_.A(n)})},vV=function(a){var b=new cast.framework.messages.VastAdsRequest;b.adsResponse=a;return b},sV=function(){return cast.framework.CastReceiverContext.getInstance().getPlayerManager()},yV=function(a,b,c){if(c instanceof cast.framework.events.BreaksEvent||-1!==a.getPosition()){var d=null;(c=xV(a,c))&&(d={ad:c});a.m.trigger(new _.L(b,d))}},zV=function(a,b){var c=new _.N(1,10,10003,{errorType:b});
21
+ a.m.onError(c)},xV=function(a,b){var c=null;if(a.a&&b instanceof cast.framework.events.BreaksEvent){var d=null,e=null,f;typeof b.breakClipId===_.gg&&(d=a.a.getBreakClipById(b.breakClipId));typeof b.breakId===_.gg&&(e=a.a.getBreakById(b.breakId),!e&&d&&(e=a.a.getBreaks().find(function(g){return g.breakClipIds.includes(d.id)})||null),e&&(f=a.a.getBreaks().filter(function(g){return 0<=g.position}).sort(function(g,h){return g.position-h.position}).findIndex(function(g){return g===e})));c=new rV(d,e,b.index,
22
+ b.total,f)}return c},AV=function(a){this.f=a;this.a=null;this.h=new _.Oh;this.j=[cast.framework.RemotePlayerEventType.IS_PLAYING_BREAK_CHANGED,cast.framework.RemotePlayerEventType.CURRENT_BREAK_CLIP_NUMBER_CHANGED,cast.framework.RemotePlayerEventType.MEDIA_INFO_CHANGED,cast.framework.RemotePlayerEventType.IS_PAUSED_CHANGED]},CV=function(a,b){var c=null,d=BV(a);d&&(c={ad:d});a.f.trigger(new _.L(b,c))},BV=function(a){var b=null;if(a.a&&a.a.mediaInfo){b=a.a.mediaInfo;var c=null,d=null,e=a.a.currentBreakClipNumber;
23
+ if(b.breaks&&(c=b.breaks.find(function(h){return h.id===a.a.breakId})||null)){var f=c.breakClipIds.length;var g=0>=c.position?c.position:b.breaks.filter(function(h){return 0<=h.position}).sort(function(h,l){return h.position-l.position}).findIndex(function(h){return h===c})}b.breakClips&&(d=b.breakClips.find(function(h){return h.id===a.a.breakClipId})||null);b=new rV(d,c,e,f,g)}return b},DV=function(a){CU.call(this,a,"clpp.cast.StateManager");this.I=this.vj.bind(this);this.H=this.uj.bind(this);this.w=
24
+ this.om.bind(this);this.o=this.fm.bind(this);this.K=this.xj.bind(this);this.J=this.wj.bind(this);this.L=this.Dm.bind(this);this.G=this.rm.bind(this);this.C=this.S.bind(this);this.a=this.tj.bind(this)},EV=function(a){this.fb=a;this.a=this.f.bind(this)},FV=function(){return[cast.framework.events.EventType.PLAYER_LOAD_COMPLETE,cast.framework.events.EventType.TIMED_METADATA_CHANGED,cast.framework.events.EventType.TIMED_METADATA_ENTER,cast.framework.events.EventType.TIMED_METADATA_EXIT]},GV=function(a){var b=
25
+ a.dashTimedMetadata,c=_.xg;b&&(c=b.schemeIdUri);return{type:c.startsWith(_.wg)?_.Zh:_.Xh,schemeIdUri:c,id:a.id||"",startTime:a.startTime,endTime:a.endTime,value:b&&b.value||"",eventElement:b?b.eventElement:null}},HV=function(){this.g=new _.K("clpp.cast.TrackManager");this.m=null;this.o=1E9;this.h=[];this.j=[];this.l=this.Xm.bind(this);this.a=this.f=null},IV=function(){return cast.framework.CastReceiverContext.getInstance().getPlayerManager()},KV=function(a){a.a=IV().getTextTracksManager();var b=a.a.getTracks();
26
+ a.j=JV(_.T,b)},LV=function(a,b,c,d){c=_.di(c).filter(function(h){return h});var e=!1,f=[];b===_.Tj?f=a.getAudioTracks():b===_.T&&(f=a.ia());if(c=c.find(function(h){var l=_.Ni(h);return f.some(function(m){m=_.Ni(m.language||"");return _.Oi(l,m)})})){var g=_.Ni(c);c=f.filter(function(h){h=_.Ni(h.language||"");return _.Oi(g,h)});f=c.length?c:f;e=e||!!c.length}_.S.Me(d)&&(c=f.filter(function(h){return h.roles.includes(d)}),f=c.length?c:f,e=e||!!c.length);e&&f[0]&&(e=f[0],a.g.info("Will select track",
27
+ e),b===_.Tj?a.Da(e):b===_.T&&a.Qa(e))},JV=function(a,b){for(var c=[],d=_.w(b),e=d.next();!e.done;e=d.next()){e=e.value;var f=new _.Rj(e.trackId.toString(),a);f.roles=e.roles||[];f.kind=e.subtype||null;f.language=e.language||null;f.originalLanguage=e.language||null;f.label=e.name||null;f.src=e.trackContentId||null;f.mimeType=e.trackContentType||null;e.customData&&(f.mimeType=e.customData.mimeType||f.mimeType,f.src=e.customData.url||f.src);f.renditions.push(new _.ak(f.id,f));c.push(f)}return c},MV=
28
+ function(){_.Ul.call(this);this.g=new _.K(xU);this.h=this.w=_.em();this.A=null;this.l=-1;this.G=new _.Nj;this.f=this.o=this.j=this.a=this.B=null;this.C=!1},NV=function(){return cast.framework.CastReceiverContext.getInstance().getPlayerManager()},QV=function(a,b){function c(){b.protectionSystem=cast.framework.ContentProtection.NONE;b.licenseUrl=void 0;b.licenseRequestHandler=void 0;b.licenseHandler=void 0}if(a&&a.drm){var d=a.drm,e=_.Cm(d);if(e){var f=[_.Od];_.Gp(a)[0].type!==_.Zc&&f.unshift(_.Qd);
29
+ d.preferredDrmSystem===_.Od&&f.reverse();for(var g,h;f.length&&!h;)g=f.shift(),h=e.eb[g];h?(d=g===_.Qd?cast.framework.ContentProtection.WIDEVINE:g===_.Od?cast.framework.ContentProtection.PLAYREADY:void 0,b.protectionSystem=d,b.licenseUrl=h.licenseUrl,d={ldlDelay:0,customData:{}},OV(b,h,a,d),PV(b,h,a,d)):c()}else c()}else c()},OV=function(a,b,c,d){b.modifiers.licenseRequest?a.licenseRequestHandler=function(e){var f=_.uj({method:_.Jb,uris:[e.url]});e.headers&&(f.headers=e.headers);f.body=e.content;
30
+ f.allowCrossSiteCredentials=e.withCredentials;b.modifiers.licenseRequest(c,f,d);e.url=f.uris[0];e.headers=f.headers;e.content=f.body;e.withCredentials=f.allowCrossSiteCredentials}:a.licenseRequestHandler=void 0},PV=function(a,b,c,d){b.modifiers.licenseResponse?a.licenseHandler=function(e,f){var g;return _.I(function(h){return 1==h.a?(g=_.yj(Object.assign({},f.headers),e.buffer,200,""),_.y(h,b.modifiers.licenseResponse(c,g,d),2)):h["return"](_.Wi(g.data))})}:a.licenseHandler=void 0},RV=function(){this.a=
31
+ !1;this.g=new _.K(yU);this.f=this.m=null;this.h=new Set;this.A=this.qm.bind(this);this.w=this.sj.bind(this);this.j=null;this.o=new _.Oh;this.l=null},TV=function(){return SV||(SV=new RV)},UV=function(){return cast.framework.CastReceiverContext.getInstance()},VV=function(){var a=UV().getPlayerManager().getMediaInformation();return a&&a.metadata?a.metadata:null},WV=function(a,b){var c=UV().getPlayerManager().getMediaInformation();if(c){b?c.metadata=b:delete c.metadata;var d=!0;d=void 0===d?!1:d;UV().getPlayerManager().setMediaInformation(c,
32
+ d)}else a.g.warn("No mediaInformation is present. Skipping metadata update.")},YV=function(a,b){a.g.debug("Detected HLS, parsing");var c=cast.framework.messages.HlsVideoSegmentFormat,d=UV();c=(UV().getPlayerManager().getMediaInformation()||{}).hlsVideoSegmentFormat===c.FMP4?_.Ig:_.Hg;b=b.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n");for(var e=b.split(/\n+/m),f=[],g=0;g<e.length;){var h=e[g].trim();if(e[g].startsWith("#EXT-X-STREAM-INF")){var l=XV(h,_.ta),m=XV(h,_.Rb),n=_.w([]),p=n.next().value;n=n.next().value;
33
+ m&&(m=_.w(m.split("x").map(function(q){return+q})),p=m.next().value,n=m.next().value);if(!d.canDisplayType(c,l,p,n)){g+=2;continue}}f.push(h);++g}return f.join("\n")},XV=function(a,b){b+="\x3d";var c=a.indexOf(b);if(0<=c){var d=a.substring(c+b.length);d.startsWith('"')?(d=d.substring(1),d=d.substring(0,d.indexOf('"'))):(c=d.indexOf(","),0<=c&&(d=d.substring(0,c)))}return d},ZV=function(){},$V=function(){},bW=function(a,b,c){_.Ul.call(this);var d=this;this.f=a;this.h=b;this.j=typeof c===_.se?c:function(e,
34
+ f){d.f&&e!==_.vp&&e!==_.op&&d.f.load(f)};this.a=aW(this);this.g=new _.K(wU);this.f&&this.forwardEventsTo(this.f)},aW=function(a){return new TU(a.h,function(){a.trigger(new _.L(_.rd))},function(b,c){var d=a.f.getConfiguration();d.source=c.source;d.autoplay=!1;d.startTime=c.currentTime?Math.max(c.currentTime-1,0):null;d.ima&&d.startTime&&(d.ima.playAdsAfterTime=d.startTime);c.Ig&&(d.preferredAudioLanguage=c.Ig);c.Ii&&(d.preferredTextLanguage=c.Ii);_.Zs(a.f,null);a.trigger(new _.L("castingended"));a.j(b,
35
+ d)},function(){return cW(a)})},cW=function(a){var b;return _.I(function(c){if(1==c.a)return a.trigger(new _.L(_.qd)),b=a.f.a,b!==a.a&&a.f&&a.a?_.y(c,a.f.release(),2):c["return"]();_.Zs(a.f,a.a);_.A(c)})};_.u=CU.prototype;_.u.release=function(){this.va(_.op)};_.u.destroy=function(){this.j=this.player=null;return Promise.resolve()};_.u.getState=function(){return this.f};_.u.onError=function(a){a.severity===_.O&&this.va(_.zp)};
36
+ _.u.va=function(a){if(a!==this.f)if(this.f===_.zp&&a!==_.op)this.log.debug("Player is in ERROR state and can not switch to",a);else{var b=Date.now();this.l=this.f;this.f=a;this.f===_.tp?(this.A=b,this.player.trigger(new _.L(_.md,{detail:{bufferedTimeMS:-1,reason:this.h}}))):this.l===_.tp&&this.player.trigger(new _.L(_.ld,{detail:{bufferedTimeMS:b-this.A,reason:this.h}}));a={currentState:this.f,previousState:this.l,timeSinceLastStateChangeMS:b-this.B};this.B=b;this.j&&_.ep(this.j,this.f);this.player.trigger(new _.L(_.dg,
37
+ {detail:a}))}};_.J("clpp.cast.CastUtils",function(){});var HU=0,VU={GENERIC:HU,MOVIE:1,TV_SHOW:2,MUSIC_TRACK:3,PHOTO:4,AUDIOBOOK_CHAPTER:5};_.x(JU,CU);JU.prototype.init=function(){var a=this.player,b=a.a;b&&(this.a&&this.a.removeUpdateListener(this.w),this.a=b,this.a.addUpdateListener(this.w),this.o=a.l)};JU.prototype.destroy=function(){var a=this;return _.I(function(b){a.a&&(a.a.removeUpdateListener(a.w),a.a=null);return _.y(b,CU.prototype.destroy.call(a),0)})};JU.prototype.va=function(a){var b=this.player.l;b&&b.isPlayingBreak||CU.prototype.va.call(this,a)};
38
+ JU.prototype.Ub=function(){if(this.a&&this.o&&!this.o.isPlayingBreak)switch(this.a.playerState){case chrome.cast.media.PlayerState.IDLE:switch(this.a.idleReason){case chrome.cast.media.IdleReason.FINISHED:this.va(_.vp);break;case chrome.cast.media.IdleReason.ERROR:this.va(_.zp);break;default:this.va(_.op)}break;case chrome.cast.media.PlayerState.PLAYING:this.va(_.Cp);break;case chrome.cast.media.PlayerState.PAUSED:this.va(_.Bp);break;case chrome.cast.media.PlayerState.BUFFERING:this.va(_.tp)}};_.x(KU,_.U);_.u=KU.prototype;_.u.initialize=function(a){this.a=a};_.u.release=function(){this.h=[];this.f={}};
39
+ _.u.load=function(){this.release();var a=this.a.a;a&&(a=a.media)&&(this.h=(a=a.tracks)?a.map(function(b){switch(b.type){case chrome.cast.media.TrackType.VIDEO:var c=_.Uj;break;case chrome.cast.media.TrackType.AUDIO:c=_.Tj;break;case chrome.cast.media.TrackType.TEXT:c=_.T}c=new _.Rj(b.trackId.toString(),c);c.kind=b.subtype;c.language=b.language;c.label=b.name;c.src=b.trackContentId;c.mimeType=b.trackContentType;b.customData&&(c.src=b.customData.url||c.src,c.mimeType=b.customData.mimeType||c.mimeType);
40
+ c.renditions.push(new _.ak(c.id,c));return c}):[],this.a.trigger(new _.L(_.qv)))};_.u.destroy=function(){this.a=null};_.u.getVideoTracks=function(){return MU(this,_.Uj)};_.u.getAudioTracks=function(){return MU(this,_.Tj)};_.u.ia=function(){return MU(this,_.T)};_.u.na=function(){var a=this.Oa();return a?a.renditions[0]:null};_.u.Sa=function(){var a=this.ma();return a?a.renditions[0]:null};_.u.Na=function(){var a=this.xa();return a?a.renditions[0]:null};_.u.lb=function(){return this.f[_.Uj]||null};
41
+ _.u.Ab=function(){return this.f[_.Tj]||null};_.u.Bb=function(){return this.f[_.T]||null};_.u.Oa=function(){return NU(this,_.Uj)};_.u.ma=function(){return NU(this,_.Tj)};_.u.xa=function(){return NU(this,_.T)};_.u.wb=function(a){PU(this,_.Uj,a)};_.u.Da=function(a){PU(this,_.Tj,a)};_.u.Qa=function(a){PU(this,_.T,a)};_.u.cb=function(a){this.wb(a&&a.track)};_.u.ub=function(a){this.Da(a&&a.track)};_.u.vb=function(a){this.Qa(a&&a.track)};_.u.addTextTrack=function(){return _.I(function(a){_.A(a)})};
42
+ _.u.qa=function(){return!0};KU.prototype.isAbrEnabled=KU.prototype.qa;KU.prototype.addTextTrack=KU.prototype.addTextTrack;KU.prototype.setTextRendition=KU.prototype.vb;KU.prototype.setAudioRendition=KU.prototype.ub;KU.prototype.setVideoRendition=KU.prototype.cb;KU.prototype.setTextTrack=KU.prototype.Qa;KU.prototype.setAudioTrack=KU.prototype.Da;KU.prototype.setVideoTrack=KU.prototype.wb;KU.prototype.getTextTrack=KU.prototype.xa;KU.prototype.getAudioTrack=KU.prototype.ma;
43
+ KU.prototype.getVideoTrack=KU.prototype.Oa;KU.prototype.getLoadingTextRendition=KU.prototype.Bb;KU.prototype.getLoadingAudioRendition=KU.prototype.Ab;KU.prototype.getLoadingVideoRendition=KU.prototype.lb;KU.prototype.getTextRendition=KU.prototype.Na;KU.prototype.getAudioRendition=KU.prototype.Sa;KU.prototype.getVideoRendition=KU.prototype.na;KU.prototype.getTextTracks=KU.prototype.ia;KU.prototype.getAudioTracks=KU.prototype.getAudioTracks;KU.prototype.getVideoTracks=KU.prototype.getVideoTracks;_.x(TU,_.Ul);_.u=TU.prototype;_.u.init=function(a,b){this.h=this.J=b};_.u.unload=function(){var a=this;return new Promise(function(b,c){a.f&&a.f.release();a.a&&!a.a.idleReason||b();a.a.stop(null,b,c)})};_.u.release=function(){var a=this;return this.unload().then(function(){a.j&&a.j.release()})};_.u.getTimeline=function(){return null};_.u.setupPlaylist=function(){return Promise.reject(_.Fb)};_.u.appendLoad=function(){return Promise.reject(_.Fb)};_.u.seekWith=function(){return Promise.reject(_.Fb)};
44
44
  _.u.setSeekInterceptor=function(){};_.u.destroy=function(){return _.I(function(a){_.A(a)})};_.u.de=function(a){this.N=a};_.u.yc=function(){return this.w};_.u.Hb=function(){return this.A};_.u.Kf=function(){return this.ga};
45
- _.u.sendMessage=function(a,b){var c=this,d,e,f;return _.I(function(g){switch(g.a){case 1:e=cast.framework.CastContext.getInstance().getCurrentSession();if(!e){d=new _.N(1,8,8004,void 0);g.F(2);break}_.D(g,3);return _.y(g,e.sendMessage(a,CU(b)),5);case 5:_.oh(g,2);break;case 3:f=_.F(g),d=new _.N(1,8,8E3,{detailedErrorCode:f});case 2:if(d)c.onError(d);_.A(g)}})};
46
- _.u.cast=function(){var a=this,b,c;return _.I(function(d){if(1==d.a){if(!a.yc())throw a.g.warn(tU),new _.N(1,8,8001,void 0);if(!eV)throw a.g.warn(rU),new _.N(1,8,8002,void 0);if(a.Hb())throw a.g.warn("Already casting"),new _.N(1,8,8003,void 0);_.D(d,2);return _.y(d,mV(a),4)}if(2!=d.a)return _.oh(d,0);b=_.F(d);c={};b instanceof chrome.cast.Error?(c.detailedErrorCode=b.code,c.details=b.details,c.reason=b.description):c.detailedErrorCode=b;throw new _.N(1,8,8E3,c);})};_.u.Hf=function(){this.Hb()&&cast.framework.CastContext.getInstance().endCurrentSession(!0)};
47
- _.u.addMessageListener=function(a){typeof a===_.re&&this.G.add(a)};_.u.removeMessageListener=function(a){typeof a===_.re&&this.G["delete"](a)};_.u.play=function(){var a=this;return this.isEnded()?oV(this,!0):new Promise(function(b,c){if(!a.a)return c(qU);a.a.play(null,b,c)})};_.u.pause=function(){var a=this;return new Promise(function(b,c){a.isEnded()&&b();if(!a.a)return c(qU);a.a.pause(null,b,c)})};_.u.isPaused=function(){return!!this.a&&this.a.playerState===chrome.cast.media.PlayerState.PAUSED};
48
- _.u.isEnded=function(){return this.getState()===_.qp};_.u.seek=function(a){var b=this;return this.isEnded()?oV(this,!1,a):new Promise(function(c,d){b.a||d(qU);b.l.isPlayingBreak&&d(oU);var e=new chrome.cast.media.SeekRequest;e.currentTime=a;b.trigger(new _.L(_.yg));b.a.seek(e,function(){b.trigger(new _.L(_.xg));c()},d)})};_.u.getPosition=function(){return this.getMediaPosition()};_.u.getMediaPosition=function(){return this.a&&this.a.getEstimatedTime()||0};_.u.getDuration=function(){return this.getMediaDuration()};
49
- _.u.getMediaDuration=function(){if(!this.a||!this.a.media)return-1;var a=this.a.media.duration;return typeof a!==_.k?-1:-1===a?Infinity:a};_.u.setDrmCustomDataModifier=function(){};_.u.setCdnErrorCallback=function(){};_.u.detach=function(){};_.u.getPlaybackRate=function(){return this.a&&this.a.playbackRate||0};_.u.setPlaybackRate=function(a){this.a&&0<a&&this.sendMessage(zU,{type:"SET_PLAYBACK_RATE",requestId:Math.round(1E3*Math.random()),mediaSessionId:this.a.mediaSessionId,playbackRate:a})};
45
+ _.u.sendMessage=function(a,b){var c=this,d,e,f;return _.I(function(g){switch(g.a){case 1:e=cast.framework.CastContext.getInstance().getCurrentSession();if(!e){d=new _.N(1,8,8004,void 0);g.F(2);break}_.D(g,3);return _.y(g,e.sendMessage(a,DU(b)),5);case 5:_.ph(g,2);break;case 3:f=_.F(g),d=new _.N(1,8,8E3,{detailedErrorCode:f});case 2:if(d)c.onError(d);_.A(g)}})};
46
+ _.u.cast=function(){var a=this,b,c;return _.I(function(d){if(1==d.a){if(!a.yc())throw a.g.warn(uU),new _.N(1,8,8001,void 0);if(!fV)throw a.g.warn(sU),new _.N(1,8,8002,void 0);if(a.Hb())throw a.g.warn("Already casting"),new _.N(1,8,8003,void 0);_.D(d,2);return _.y(d,nV(a),4)}if(2!=d.a)return _.ph(d,0);b=_.F(d);c={};b instanceof chrome.cast.Error?(c.detailedErrorCode=b.code,c.details=b.details,c.reason=b.description):c.detailedErrorCode=b;throw new _.N(1,8,8E3,c);})};_.u.Hf=function(){this.Hb()&&cast.framework.CastContext.getInstance().endCurrentSession(!0)};
47
+ _.u.addMessageListener=function(a){typeof a===_.se&&this.G.add(a)};_.u.removeMessageListener=function(a){typeof a===_.se&&this.G["delete"](a)};_.u.play=function(){var a=this;return this.isEnded()?pV(this,!0):new Promise(function(b,c){if(!a.a)return c(rU);a.a.play(null,b,c)})};_.u.pause=function(){var a=this;return new Promise(function(b,c){a.isEnded()&&b();if(!a.a)return c(rU);a.a.pause(null,b,c)})};_.u.isPaused=function(){return!!this.a&&this.a.playerState===chrome.cast.media.PlayerState.PAUSED};
48
+ _.u.isEnded=function(){return this.getState()===_.vp};_.u.seek=function(a){var b=this;return this.isEnded()?pV(this,!1,a):new Promise(function(c,d){b.a||d(rU);b.l.isPlayingBreak&&d(pU);var e=new chrome.cast.media.SeekRequest;e.currentTime=a;b.trigger(new _.L(_.zg));b.a.seek(e,function(){b.trigger(new _.L(_.yg));c()},d)})};_.u.getPosition=function(){return this.getMediaPosition()};_.u.getMediaPosition=function(){return this.a&&this.a.getEstimatedTime()||0};_.u.getDuration=function(){return this.getMediaDuration()};
49
+ _.u.getMediaDuration=function(){if(!this.a||!this.a.media)return-1;var a=this.a.media.duration;return typeof a!==_.k?-1:-1===a?Infinity:a};_.u.setDrmCustomDataModifier=function(){};_.u.setCdnErrorCallback=function(){};_.u.detach=function(){};_.u.getPlaybackRate=function(){return this.a&&this.a.playbackRate||0};_.u.setPlaybackRate=function(a){this.a&&0<a&&this.sendMessage(AU,{type:"SET_PLAYBACK_RATE",requestId:Math.round(1E3*Math.random()),mediaSessionId:this.a.mediaSessionId,playbackRate:a})};
50
50
  _.u.getVolume=function(){return this.a&&this.a.volume.level};_.u.setVolume=function(a){this.a&&0<=a&&1>=a&&(a=new chrome.cast.media.VolumeRequest(new chrome.cast.Volume(a)),this.a.setVolume(a))};_.u.isMuted=function(){return this.a&&this.a.volume.muted};_.u.setMuted=function(a){this.a&&(a=new chrome.cast.media.VolumeRequest(new chrome.cast.Volume(void 0,a)),this.a.setVolume(a))};
51
- _.u.getPresentationStartTime=function(){if(!this.a||!this.a.media||!this.a.media.metadata)return null;var a=this.a.media.metadata.sectionStartAbsoluteTime;return typeof a!==_.k?null:1E-8===a?0:a};_.u.getSeekRange=function(){var a={start:0,end:this.getDuration()};if(this.isLive()){var b=this.a.getEstimatedLiveSeekableRange();b&&typeof b.start===_.k&&typeof b.end===_.k&&(a={start:b.start,end:b.end})}return a};_.u.getState=function(){return this.j?this.j.getState():_.kp};
52
- _.u.getStats=function(){return this.a&&this.a.customData&&this.a.customData.stats?DU(this.a.customData.stats):_.fp()};_.u.isLive=function(){return Infinity===this.getDuration()};_.u.load=function(a){var b=this,c,d;return _.I(function(e){if(!b.yc())return b.g.warn(tU),e["return"]();if(!eV)return b.g.warn(rU),e["return"]();b.C=_.Bp(a);b.h=_.bm(b.J,a);c=b.C[b.B];d={source:c,isLive:c.isLive,autoplay:b.h.autoplay,bb:b.h,Yb:c.Yb,audioMimeType:c.audioMimeType};return _.y(e,nV(b,d),0)})};
51
+ _.u.getPresentationStartTime=function(){if(!this.a||!this.a.media||!this.a.media.metadata)return null;var a=this.a.media.metadata.sectionStartAbsoluteTime;return typeof a!==_.k?null:1E-8===a?0:a};_.u.getSeekRange=function(){var a={start:0,end:this.getDuration()};if(this.isLive()){var b=this.a.getEstimatedLiveSeekableRange();b&&typeof b.start===_.k&&typeof b.end===_.k&&(a={start:b.start,end:b.end})}return a};_.u.getState=function(){return this.j?this.j.getState():_.pp};
52
+ _.u.getStats=function(){return this.a&&this.a.customData&&this.a.customData.stats?EU(this.a.customData.stats):_.kp()};_.u.isLive=function(){return Infinity===this.getDuration()};_.u.load=function(a){var b=this,c,d;return _.I(function(e){if(!b.yc())return b.g.warn(uU),e["return"]();if(!fV)return b.g.warn(sU),e["return"]();b.C=_.Gp(a);b.h=_.gm(b.J,a);c=b.C[b.B];d={source:c,isLive:c.isLive,autoplay:b.h.autoplay,bb:b.h,Yb:c.Yb,audioMimeType:c.audioMimeType};return _.y(e,oV(b,d),0)})};
53
53
  _.u.getBufferInfo=function(){return new _.Tl};_.u.getTrackManager=function(){return this.f};_.u.getConfiguration=function(){return this.h};_.u.getSurface=function(){return null};_.u.setNetworkEngine=function(a){this.L=a};_.u.getNetworkEngine=function(){return this.L};_.u.getSourceIndex=function(){return this.B};_.u.setSourceIndex=function(a){this.B=a};_.u.setCmsdManager=function(){};_.u.getLoadedSource=function(){return this.C[this.B]};_.u.getPeriods=function(){return[]};_.u.getDrmInfo=function(){return null};
54
- _.u.getTimelineCues=function(){return[]};_.u.getCueTimeline=function(){return null};_.u.resetAbr=function(){this.g.warn(sU)};_.u.onError=function(a){if(a&&(this.trigger(new _.L(_.ne,{detail:a})),this.j))this.j.onError(a)};_.u.namespace=function(){return _.Bd};_.u.canPlay=function(){return this.yc()?2:0};_.u.zb=function(){return this.K};_.u.Xb=function(a){this.K=VU(a)};_.u.wf=function(){this.K=null};
55
- _.u.pg=function(a){var b=this.zb()||{};a={metadataType:WU(b.metadataType),title:a};this.Xb(Object.assign({},b,a))};_.u.ng=function(a){var b=this.zb()||{},c=WU(b.metadataType);a=new chrome.cast.Image(a);this.Xb(Object.assign({},b,{metadataType:c,images:[a]}))};_.u.mg=function(a){var b=this.zb()||{};this.Xb(Object.assign({},b,{metadataType:3,artist:a}))};_.u.og=function(a){var b=this.zb()||{};a={metadataType:WU(b.metadataType),releaseDate:a};this.Xb(Object.assign({},b,a))};
56
- _.u.gm=function(a){var b=cast.framework.CastContext.getInstance(),c=a.castState===cast.framework.CastState.CONNECTED;eV=a.castState!==cast.framework.CastState.NO_DEVICES_AVAILABLE;this.ga=c?b.getCurrentSession().getCastDevice().friendlyName:"";this.o.vg()};
57
- _.u.Am=function(a){this.g.debug("state: "+a.sessionState+", details:",a);switch(a.sessionState){case cast.framework.SessionState.SESSION_STARTED:this.A=!0;lV(this,a.session);break;case cast.framework.SessionState.SESSION_RESUMED:this.Hb()||(this.A=!0,lV(this,a.session),this.fa());break;case cast.framework.SessionState.SESSION_ENDED:if(this.Hb()&&this.a){var b=this.a.media,c=this.f.ma(),d=this.f.xa();c=c&&c.language||void 0;d=d&&d.language||void 0;this.$(this.getState(),{source:{url:b.contentId,type:b.contentType,
58
- isLive:this.isLive()},currentTime:jV(this),Ii:d,Ig:c})}a.session.removeEventListener(cast.framework.SessionEventType.MEDIA_SESSION,this.ca);a.session.removeMessageListener(yU,this.V);this.A=!1;this.a=null;this.I.release();this.l=this.H=null}};_.u.sm=function(a){this.g.debug("New media session",a.mediaSession);kV(this,a.mediaSession)};_.u.km=function(a,b){if(a===yU&&0<this.G.size){var c=DU(b);this.G.forEach(function(d){return d(c)})}};_.u.rj=function(){this.trigger(new _.L(_.og))};
59
- _.u.Bk=function(a){var b=this,c,d;return _.I(function(e){if(1==e.a)return c=null,_.y(e,EU(a,[_.lg,_.Xc],b.L,b.h),2);if(d=e.f)c=new chrome.cast.media.Track(b.Fa++,chrome.cast.media.TrackType.TEXT),c.language=d.language,c.name=d.label||null,c.trackContentId=d.url,c.trackContentType=d.mimeType,c.customData={mimeType:a.mimeType,url:a.url};return e["return"](c)})};_.u.getTextDisplayer=function(){return null};SU.prototype.getTextDisplayer=SU.prototype.getTextDisplayer;SU.prototype.getNetworkEngine=SU.prototype.getNetworkEngine;
60
- SU.prototype.setNetworkEngine=SU.prototype.setNetworkEngine;var eV=!1,RU=new Set;window.__onGCastApiAvailable=PU;_.x(qV,_.Ul);_.u=qV.prototype;_.u.destroy=function(){var a=this;return _.I(function(b){if(1==b.a)return a.a?_.y(b,TU(a.a),3):b.F(2);2!=b.a&&(a.a=null);a.f&&a.stopForwardingEventsTo(a.f);_.A(b)})};_.u.tf=function(){return!!this.a&&this.a.yc()&&eV};_.u.Hb=function(){return!!this.a&&this.a.Hb()};_.u.Kf=function(){return this.a?this.a.Kf():""};_.u.de=function(a){this.a&&this.a.de(a)};
61
- _.u.cast=function(a){var b=this,c,d,e;return _.I(function(f){switch(f.a){case 1:if(!b.a)return f["return"]();_.D(f,2);return _.y(f,b.a.cast(),4);case 4:if(!b.f||!b.a)return f["return"]();var g=null,h=b.f.getLoadedSource();if(h){var l=b.f.getTrackManager();g=l.getVideoTracks()[0];if(g&&g.mimeType)var m=g.mimeType;g=b.f.getConfiguration();var n=l.ma();if(n){if(n.mimeType)var p=n.mimeType;n.language&&(g.preferredAudioLanguage=n.language);n.roles.length&&(g.preferredAudioRole=n.roles[0])}if(l=l.xa())l.language&&
62
- (g.preferredTextLanguage=l.language),l.roles.length&&(g.preferredTextRole=l.roles[0]);l=h&&typeof h.isLive===_.jd?h.isLive:b.f.isLive();g={source:h,isLive:l,autoplay:!b.f.isPaused(),currentTime:Math.max(b.f.getPosition()-1,0),gg:b.f.getPresentationStartTime(),Yb:m,audioMimeType:p,bb:g}}c=g;return _.y(f,rV(b),5);case 5:if(!b.a)return f["return"]();c&&(c.autoplay=!b.f.isPaused());if(a)return _.y(f,b.f.load(a),7);if(b.a.a){f.F(7);break}return _.y(f,nV(b.a,c),7);case 7:_.oh(f,0);break;case 2:d=_.F(f),
63
- b.g.error("Error while trying to cast",d),e=new _.L(_.ne,{detail:d}),b.trigger(e),_.A(f)}})};_.u.Hf=function(){this.a&&this.a.Hf()};_.u.nj=function(a){var b=this;return _.I(function(c){if(1==c.a){if(a===b.h)return c["return"]();b.h=a;return b.a?_.y(c,TU(b.a),2):c.F(2)}b.a=pV(b);_.A(c)})};_.u.sendMessage=function(a){var b=this;return _.I(function(c){return b.a?_.y(c,b.a.sendMessage(yU,a),0):(b.g.warn(uU),c["return"]())})};_.u.addMessageListener=function(a){this.a?this.a.addMessageListener(a):this.g.warn(uU)};
64
- _.u.removeMessageListener=function(a){this.a?this.a.removeMessageListener(a):this.g.warn(uU)};_.u.zb=function(){return this.a&&this.a.zb()};_.u.Xb=function(a){this.a&&this.a.Xb(a)};_.u.wf=function(){this.a&&this.a.wf()};_.u.pg=function(a){this.a&&this.a.pg(a)};_.u.ng=function(a){this.a&&this.a.ng(a)};_.u.mg=function(a){this.a&&this.a.mg(a)};_.u.og=function(a){this.a&&this.a.og(a)};_.J(vU,qV);qV.prototype.setContentReleaseDate=qV.prototype.og;qV.prototype.setContentArtist=qV.prototype.mg;
65
- qV.prototype.setContentImage=qV.prototype.ng;qV.prototype.setContentTitle=qV.prototype.pg;qV.prototype.clearContentMetadata=qV.prototype.wf;qV.prototype.setContentMetadata=qV.prototype.Xb;qV.prototype.getContentMetadata=qV.prototype.zb;qV.prototype.removeMessageListener=qV.prototype.removeMessageListener;qV.prototype.addMessageListener=qV.prototype.addMessageListener;qV.prototype.sendMessage=qV.prototype.sendMessage;qV.prototype.changeReceiverId=qV.prototype.nj;qV.prototype.forceDisconnect=qV.prototype.Hf;
66
- qV.prototype.cast=qV.prototype.cast;qV.prototype.setPlayerConfigInterceptor=qV.prototype.de;qV.prototype.getReceiverName=qV.prototype.Kf;qV.prototype.isCasting=qV.prototype.Hb;qV.prototype.canCast=qV.prototype.tf;qV.prototype.destroy=qV.prototype.destroy;_.x(sV,BU);_.u=sV.prototype;
54
+ _.u.getTimelineCues=function(){return[]};_.u.getCueTimeline=function(){return null};_.u.resetAbr=function(){this.g.warn(tU)};_.u.onError=function(a){if(a&&(this.trigger(new _.L(_.oe,{detail:a})),this.j))this.j.onError(a)};_.u.namespace=function(){return _.Cd};_.u.canPlay=function(){return this.yc()?2:0};_.u.zb=function(){return this.K};_.u.Xb=function(a){this.K=WU(a)};_.u.wf=function(){this.K=null};
55
+ _.u.pg=function(a){var b=this.zb()||{};a={metadataType:XU(b.metadataType),title:a};this.Xb(Object.assign({},b,a))};_.u.ng=function(a){var b=this.zb()||{},c=XU(b.metadataType);a=new chrome.cast.Image(a);this.Xb(Object.assign({},b,{metadataType:c,images:[a]}))};_.u.mg=function(a){var b=this.zb()||{};this.Xb(Object.assign({},b,{metadataType:3,artist:a}))};_.u.og=function(a){var b=this.zb()||{};a={metadataType:XU(b.metadataType),releaseDate:a};this.Xb(Object.assign({},b,a))};
56
+ _.u.gm=function(a){var b=cast.framework.CastContext.getInstance(),c=a.castState===cast.framework.CastState.CONNECTED;fV=a.castState!==cast.framework.CastState.NO_DEVICES_AVAILABLE;this.ga=c?b.getCurrentSession().getCastDevice().friendlyName:"";this.o.vg()};
57
+ _.u.Am=function(a){this.g.debug("state: "+a.sessionState+", details:",a);switch(a.sessionState){case cast.framework.SessionState.SESSION_STARTED:this.A=!0;mV(this,a.session);break;case cast.framework.SessionState.SESSION_RESUMED:this.Hb()||(this.A=!0,mV(this,a.session),this.fa());break;case cast.framework.SessionState.SESSION_ENDED:if(this.Hb()&&this.a){var b=this.a.media,c=this.f.ma(),d=this.f.xa();c=c&&c.language||void 0;d=d&&d.language||void 0;this.$(this.getState(),{source:{url:b.contentId,type:b.contentType,
58
+ isLive:this.isLive()},currentTime:kV(this),Ii:d,Ig:c})}a.session.removeEventListener(cast.framework.SessionEventType.MEDIA_SESSION,this.ca);a.session.removeMessageListener(zU,this.V);this.A=!1;this.a=null;this.I.release();this.l=this.H=null}};_.u.sm=function(a){this.g.debug("New media session",a.mediaSession);lV(this,a.mediaSession)};_.u.km=function(a,b){if(a===zU&&0<this.G.size){var c=EU(b);this.G.forEach(function(d){return d(c)})}};_.u.rj=function(){this.trigger(new _.L(_.pg))};
59
+ _.u.Bk=function(a){var b=this,c,d;return _.I(function(e){if(1==e.a)return c=null,_.y(e,FU(a,[_.mg,_.Yc],b.L,b.h),2);if(d=e.f)c=new chrome.cast.media.Track(b.Fa++,chrome.cast.media.TrackType.TEXT),c.language=d.language,c.name=d.label||null,c.trackContentId=d.url,c.trackContentType=d.mimeType,c.customData={mimeType:a.mimeType,url:a.url};return e["return"](c)})};_.u.getTextDisplayer=function(){return null};TU.prototype.getTextDisplayer=TU.prototype.getTextDisplayer;TU.prototype.getNetworkEngine=TU.prototype.getNetworkEngine;
60
+ TU.prototype.setNetworkEngine=TU.prototype.setNetworkEngine;var fV=!1,SU=new Set;window.__onGCastApiAvailable=QU;qV.prototype.getCuePoints=function(){return this.a.map(function(a){return a.position})};qV.prototype.Fb=function(){return!!this.a.find(function(a){return 0===a.position})};qV.prototype.Eb=function(){return!!this.a.find(function(a){return-1===a.position})};qV.prototype.hasPostroll=qV.prototype.Eb;qV.prototype.hasPreroll=qV.prototype.Fb;qV.prototype.getCuePoints=qV.prototype.getCuePoints;_.u=rV.prototype;_.u.jb=function(){return"Google Cast Framework"};_.u.kb=function(){return cast.framework.VERSION};_.u.qb=function(){return 0};_.u.getId=function(){return""};_.u.getCreativeId=function(){return""};_.u.getApiFramework=function(){return null};_.u.getAdSystem=function(){return""};_.u.getAdvertiserName=function(){return""};_.u.getTitle=function(){return this.a.title||""};_.u.getDuration=function(){return this.a.duration||0};_.u.getPosition=function(){return 0};
61
+ _.u.getSkipTimeOffset=function(){return this.a.whenSkippable||0};_.u.Sb=function(){return!1};_.u.yb=function(){return this.a.clickThroughUrl||null};_.u.getMediaUrl=function(){return this.a.contentUrl||this.a.contentId||null};_.u.ob=function(){return 0};_.u.nb=function(){return 0};_.u.ab=function(){return 0};_.u.Ua=function(){switch(this.Cb()){case 0:return 0;case -1:return 2;default:return 1}};_.u.getPodIndex=function(){return this.j};_.u.Cb=function(){return this.f.position};_.u.Db=function(){return this.l};
62
+ _.u.pb=function(){return this.h};_.u.getWrapperAdIds=function(){return[]};_.u.getWrapperAdSystems=function(){return[]};_.u.getWrapperCreativeIds=function(){return[]};rV.prototype.getWrapperCreativeIds=rV.prototype.getWrapperCreativeIds;rV.prototype.getWrapperAdSystems=rV.prototype.getWrapperAdSystems;rV.prototype.getWrapperAdIds=rV.prototype.getWrapperAdIds;rV.prototype.getSequenceLength=rV.prototype.pb;rV.prototype.getPositionInSequence=rV.prototype.Db;rV.prototype.getPodTimeOffset=rV.prototype.Cb;
63
+ rV.prototype.getPodIndex=rV.prototype.getPodIndex;rV.prototype.getPodType=rV.prototype.Ua;rV.prototype.getMediaBitrate=rV.prototype.ab;rV.prototype.getMediaHeight=rV.prototype.nb;rV.prototype.getMediaWidth=rV.prototype.ob;rV.prototype.getMediaUrl=rV.prototype.getMediaUrl;rV.prototype.getClickThroughUrl=rV.prototype.yb;rV.prototype.isBumper=rV.prototype.Sb;rV.prototype.getSkipTimeOffset=rV.prototype.getSkipTimeOffset;rV.prototype.getPosition=rV.prototype.getPosition;rV.prototype.getDuration=rV.prototype.getDuration;
64
+ rV.prototype.getTitle=rV.prototype.getTitle;rV.prototype.getAdvertiserName=rV.prototype.getAdvertiserName;rV.prototype.getAdSystem=rV.prototype.getAdSystem;rV.prototype.getApiFramework=rV.prototype.getApiFramework;rV.prototype.getCreativeId=rV.prototype.getCreativeId;rV.prototype.getId=rV.prototype.getId;rV.prototype.getTechnology=rV.prototype.qb;rV.prototype.getAdManagerVersion=rV.prototype.kb;rV.prototype.getAdManagerName=rV.prototype.jb;_.u=tV.prototype;_.u.load=function(){var a=this;return _.I(function(b){uV&&(uV=!1,zV(a,0));_.A(b)})};_.u.start=function(){return _.I(function(a){sV().play();_.A(a)})};_.u.Vc=function(){};_.u.resume=function(){-1!==this.getPosition()&&sV().play()};_.u.pause=function(){-1!==this.getPosition()&&sV().pause()};_.u.skip=function(){};_.u.getVolume=function(){return this.m.getVolume()||0};_.u.setVolume=function(a){this.m.setVolume(a)};
65
+ _.u.getPosition=function(){var a=this.a&&this.a.getBreakClipCurrentTimeSec();return typeof a===_.k?a:-1};_.u.Rc=function(){return!0};_.u.pc=function(){var a=this;return _.I(function(b){sV().removeEventListener(a.f,a.h);_.A(b)})};
66
+ _.u.yj=function(a){var b=cast.framework.events.EndedReason;switch(a.type){case cast.framework.events.EventType.PLAYER_LOADING:this.a=sV().getBreakManager();this.a.setPlayWatchedBreak(!0);a=this.a.getBreaks();this.m.trigger(new _.L(_.Oc,{adsTimeline:new qV(a)}));break;case cast.framework.events.EventType.BREAK_CLIP_LOADING:yV(this,_.Ec,a);break;case cast.framework.events.EventType.BREAK_STARTED:yV(this,_.vc,a);break;case cast.framework.events.EventType.BREAK_ENDED:yV(this,_.wc,a);break;case cast.framework.events.EventType.BREAK_CLIP_STARTED:yV(this,
67
+ _.Kc,a);break;case cast.framework.events.EventType.BREAK_CLIP_ENDED:a.endedReason===b.SKIPPED?(yV(this,_.Jc,a),yV(this,_.Lc,a)):a.endedReason===b.STOPPED?yV(this,_.Lc,a):a.endedReason===b.END_OF_STREAM?(yV(this,_.zc,a),yV(this,_.Lc,a)):a.endedReason===b.ERROR&&zV(this,1);break;case cast.framework.events.EventType.PLAYING:yV(this,_.Ic,a);break;case cast.framework.events.EventType.PAUSE:yV(this,_.Gc,a);break;case cast.framework.events.EventType.BUFFERING:a.isBuffering?yV(this,_.xc,a):yV(this,_.Ic,a)}};
68
+ tV.prototype.getPosition=tV.prototype.getPosition;tV.prototype.setVolume=tV.prototype.setVolume;tV.prototype.getVolume=tV.prototype.getVolume;tV.prototype.skip=tV.prototype.skip;tV.prototype.pause=tV.prototype.pause;tV.prototype.resume=tV.prototype.resume;var uV=!1;_.u=AV.prototype;_.u.load=function(){var a=this,b,c,d,e,f;return _.I(function(g){a.a=a.f.l;if(a.a)for(b=a.a.controller,c=a.Fm.bind(a),d=_.w(a.j),e=d.next();!e.done;e=d.next())f=e.value,a.h.on(b,f,c);_.A(g)})};_.u.start=function(){return _.I(function(a){_.A(a)})};_.u.Vc=function(){};_.u.resume=function(){this.a&&this.a.isPlayingBreak&&this.a.isPaused&&this.a.controller.playOrPause()};_.u.pause=function(){this.a&&this.a.isPlayingBreak&&!this.a.isPaused&&this.a.controller.playOrPause()};
69
+ _.u.skip=function(){var a=this.f.a;a&&this.f.sendMessage(AU,{type:"SKIP_AD",requestId:Math.round(1E3*Math.random()),mediaSessionId:a.mediaSessionId})};_.u.getVolume=function(){return this.f.getVolume()||0};_.u.setVolume=function(a){this.f.setVolume(a)};_.u.getPosition=function(){var a=-1,b=this.f.a;b&&(b=b.getEstimatedBreakClipTime(),typeof b===_.k&&(a=b));return a};_.u.Rc=function(){return!0};_.u.pc=function(){var a=this;return _.I(function(b){a.h.release();_.A(b)})};
70
+ _.u.Fm=function(a){switch(a.field){case "mediaInfo":a.value&&(a=a.value,a.breaks&&this.f.trigger(new _.L(_.Oc,{adsTimeline:new qV(a.breaks)})));break;case "isPlayingBreak":a.value?CV(this,_.vc):(CV(this,_.zc),CV(this,_.Lc),CV(this,_.wc));break;case "currentBreakClipNumber":0<=a.value&&(0<a.value&&(CV(this,_.zc),CV(this,_.Lc)),CV(this,_.Kc));break;case "isPaused":this.a.isPlayingBreak&&(a.value?CV(this,_.Gc):CV(this,_.Ic))}};AV.prototype.getPosition=AV.prototype.getPosition;
71
+ AV.prototype.setVolume=AV.prototype.setVolume;AV.prototype.getVolume=AV.prototype.getVolume;AV.prototype.skip=AV.prototype.skip;AV.prototype.pause=AV.prototype.pause;AV.prototype.resume=AV.prototype.resume;_.x(DV,CU);_.u=DV.prototype;
67
72
  _.u.init=function(){var a=cast.framework.events.EventType,b=cast.framework.CastReceiverContext.getInstance().getPlayerManager();b.addEventListener(a.PLAYING,this.I);b.addEventListener(a.PAUSE,this.H);b.addEventListener(a.MEDIA_FINISHED,this.w);b.addEventListener(a.BUFFERING,this.o);b.addEventListener(a.SEEKING,this.K);b.addEventListener(a.SEEKED,this.J);b.addEventListener(a.STALLED,this.L);b.addEventListener(a.PLAYER_LOADING,this.G);b.addEventListener(a.ERROR,this.C);b.addEventListener(a.BITRATE_CHANGED,this.a)};
68
73
  _.u.destroy=function(){var a=this,b,c;return _.I(function(d){b=cast.framework.events.EventType;c=cast.framework.CastReceiverContext.getInstance().getPlayerManager();c.removeEventListener(b.PLAYING,a.I);c.removeEventListener(b.PAUSE,a.H);c.removeEventListener(b.MEDIA_FINISHED,a.w);c.removeEventListener(b.BUFFERING,a.o);c.removeEventListener(b.SEEKING,a.K);c.removeEventListener(b.SEEKED,a.J);c.removeEventListener(b.STALLED,a.L);c.removeEventListener(b.PLAYER_LOADING,a.G);c.removeEventListener(b.ERROR,
69
- a.C);c.removeEventListener(b.BITRATE_CHANGED,a.a);return _.y(d,BU.prototype.destroy.call(a),0)})};_.u.vj=function(){this.player.trigger(new _.L(_.hf));this.va(_.xp)};_.u.uj=function(){this.va(_.wp)};_.u.om=function(){this.va(_.qp)};_.u.fm=function(a){a.isBuffering?this.va(_.op):(a=this.player.isPaused()?_.wp:_.xp,this.va(a))};_.u.xj=function(){this.h=1;this.player.trigger(new _.L(_.yg))};_.u.wj=function(){this.player.trigger(new _.L(_.xg))};_.u.Dm=function(){this.h=2};_.u.rm=function(){this.va(_.vp)};
70
- _.u.tj=function(a){var b=this.player.getStats();this.player.trigger(new _.L(_.id,{detail:{bandwidth:a.totalBitrate,width:b.width,height:b.height}}))};_.u.S=function(a){a=new _.N(_.O,7,7300,{detailedErrorCode:a.detailedErrorCode,error:a.error,reason:a.reason});this.player.trigger(new _.L(_.ne,{detail:a}));this.va(_.up)};_.u=tV.prototype;_.u.jb=function(){return"Google Cast Framework"};_.u.kb=function(){return cast.framework.VERSION};_.u.qb=function(){return 0};_.u.getId=function(){return""};_.u.getCreativeId=function(){return""};_.u.getApiFramework=function(){return null};_.u.getAdSystem=function(){return""};_.u.getAdvertiserName=function(){return""};_.u.getTitle=function(){return this.a.title||""};_.u.getDuration=function(){return this.a.duration||0};_.u.getPosition=function(){return 0};
71
- _.u.getSkipTimeOffset=function(){return this.a.whenSkippable||0};_.u.Sb=function(){return!1};_.u.yb=function(){return this.a.clickThroughUrl||null};_.u.getMediaUrl=function(){return this.a.contentUrl||this.a.contentId||null};_.u.ob=function(){return 0};_.u.nb=function(){return 0};_.u.ab=function(){return 0};_.u.Ua=function(){switch(this.Cb()){case 0:return 0;case -1:return 2;default:return 1}};_.u.getPodIndex=function(){return this.j};_.u.Cb=function(){return this.f.position};_.u.Db=function(){return this.l};
72
- _.u.pb=function(){return this.h};_.u.getWrapperAdIds=function(){return[]};_.u.getWrapperAdSystems=function(){return[]};_.u.getWrapperCreativeIds=function(){return[]};tV.prototype.getWrapperCreativeIds=tV.prototype.getWrapperCreativeIds;tV.prototype.getWrapperAdSystems=tV.prototype.getWrapperAdSystems;tV.prototype.getWrapperAdIds=tV.prototype.getWrapperAdIds;tV.prototype.getSequenceLength=tV.prototype.pb;tV.prototype.getPositionInSequence=tV.prototype.Db;tV.prototype.getPodTimeOffset=tV.prototype.Cb;
73
- tV.prototype.getPodIndex=tV.prototype.getPodIndex;tV.prototype.getPodType=tV.prototype.Ua;tV.prototype.getMediaBitrate=tV.prototype.ab;tV.prototype.getMediaHeight=tV.prototype.nb;tV.prototype.getMediaWidth=tV.prototype.ob;tV.prototype.getMediaUrl=tV.prototype.getMediaUrl;tV.prototype.getClickThroughUrl=tV.prototype.yb;tV.prototype.isBumper=tV.prototype.Sb;tV.prototype.getSkipTimeOffset=tV.prototype.getSkipTimeOffset;tV.prototype.getPosition=tV.prototype.getPosition;tV.prototype.getDuration=tV.prototype.getDuration;
74
- tV.prototype.getTitle=tV.prototype.getTitle;tV.prototype.getAdvertiserName=tV.prototype.getAdvertiserName;tV.prototype.getAdSystem=tV.prototype.getAdSystem;tV.prototype.getApiFramework=tV.prototype.getApiFramework;tV.prototype.getCreativeId=tV.prototype.getCreativeId;tV.prototype.getId=tV.prototype.getId;tV.prototype.getTechnology=tV.prototype.qb;tV.prototype.getAdManagerVersion=tV.prototype.kb;tV.prototype.getAdManagerName=tV.prototype.jb;uV.prototype.getCuePoints=function(){return this.a.map(function(a){return a.position})};uV.prototype.Fb=function(){return!!this.a.find(function(a){return 0===a.position})};uV.prototype.Eb=function(){return!!this.a.find(function(a){return-1===a.position})};uV.prototype.hasPostroll=uV.prototype.Eb;uV.prototype.hasPreroll=uV.prototype.Fb;uV.prototype.getCuePoints=uV.prototype.getCuePoints;_.u=wV.prototype;_.u.load=function(){var a=this;return _.I(function(b){xV&&(xV=!1,CV(a,0));_.A(b)})};_.u.start=function(){return _.I(function(a){vV().play();_.A(a)})};_.u.Vc=function(){};_.u.resume=function(){-1!==this.getPosition()&&vV().play()};_.u.pause=function(){-1!==this.getPosition()&&vV().pause()};_.u.skip=function(){};_.u.getVolume=function(){return this.m.getVolume()||0};_.u.setVolume=function(a){this.m.setVolume(a)};
75
- _.u.getPosition=function(){var a=this.a&&this.a.getBreakClipCurrentTimeSec();return typeof a===_.k?a:-1};_.u.Rc=function(){return!0};_.u.pc=function(){var a=this;return _.I(function(b){vV().removeEventListener(a.f,a.h);_.A(b)})};
76
- _.u.yj=function(a){var b=cast.framework.events.EndedReason;switch(a.type){case cast.framework.events.EventType.PLAYER_LOADING:this.a=vV().getBreakManager();this.a.setPlayWatchedBreak(!0);a=this.a.getBreaks();this.m.trigger(new _.L(_.Nc,{adsTimeline:new uV(a)}));break;case cast.framework.events.EventType.BREAK_CLIP_LOADING:BV(this,_.Dc,a);break;case cast.framework.events.EventType.BREAK_STARTED:BV(this,_.uc,a);break;case cast.framework.events.EventType.BREAK_ENDED:BV(this,_.vc,a);break;case cast.framework.events.EventType.BREAK_CLIP_STARTED:BV(this,
77
- _.Jc,a);break;case cast.framework.events.EventType.BREAK_CLIP_ENDED:a.endedReason===b.SKIPPED?(BV(this,_.Ic,a),BV(this,_.Kc,a)):a.endedReason===b.STOPPED?BV(this,_.Kc,a):a.endedReason===b.END_OF_STREAM?(BV(this,_.yc,a),BV(this,_.Kc,a)):a.endedReason===b.ERROR&&CV(this,1);break;case cast.framework.events.EventType.PLAYING:BV(this,_.Hc,a);break;case cast.framework.events.EventType.PAUSE:BV(this,_.Fc,a);break;case cast.framework.events.EventType.BUFFERING:a.isBuffering?BV(this,_.wc,a):BV(this,_.Hc,a)}};
78
- wV.prototype.getPosition=wV.prototype.getPosition;wV.prototype.setVolume=wV.prototype.setVolume;wV.prototype.getVolume=wV.prototype.getVolume;wV.prototype.skip=wV.prototype.skip;wV.prototype.pause=wV.prototype.pause;wV.prototype.resume=wV.prototype.resume;var xV=!1;DV.prototype.init=function(){cast.framework.CastReceiverContext.getInstance().getPlayerManager().addEventListener(EV(),this.a)};DV.prototype.release=function(){cast.framework.CastReceiverContext.getInstance().getPlayerManager().removeEventListener(EV(),this.a)};DV.prototype.getTimelineCues=function(){return cast.framework.CastReceiverContext.getInstance().getPlayerManager().getTimedMetadata().map(function(a){return FV(a)})};
79
- DV.prototype.f=function(a){if(a instanceof cast.framework.events.TimedMetadataEvent){var b=null;switch(a.type){case cast.framework.events.EventType.TIMED_METADATA_CHANGED:b=_.di;break;case cast.framework.events.EventType.TIMED_METADATA_ENTER:b=_.fi;break;case cast.framework.events.EventType.TIMED_METADATA_EXIT:b=_.gi}b&&this.fb(new _.L(b,{detail:FV(a.timedMetadataInfo)}))}else for(a=_.w(this.getTimelineCues()),b=a.next();!b.done;b=a.next())this.fb(new _.L(_.di,{detail:b.value}))};_.x(GV,_.U);_.u=GV.prototype;_.u.initialize=function(a){this.m=a;HV().addEventListener(cast.framework.events.EventType.PLAYER_LOAD_COMPLETE,this.l)};_.u.release=function(){this.h=[];this.j=[];this.a=this.f=null};_.u.load=function(){};_.u.destroy=function(){this.m=null;HV().removeEventListener(cast.framework.events.EventType.PLAYER_LOAD_COMPLETE,this.l)};_.u.getVideoTracks=function(){return[]};_.u.getAudioTracks=function(){return this.h};_.u.ia=function(){return this.j};_.u.na=function(){return null};
74
+ a.C);c.removeEventListener(b.BITRATE_CHANGED,a.a);return _.y(d,CU.prototype.destroy.call(a),0)})};_.u.vj=function(){this.player.trigger(new _.L(_.jf));this.va(_.Cp)};_.u.uj=function(){this.va(_.Bp)};_.u.om=function(){this.va(_.vp)};_.u.fm=function(a){a.isBuffering?this.va(_.tp):(a=this.player.isPaused()?_.Bp:_.Cp,this.va(a))};_.u.xj=function(){this.h=1;this.player.trigger(new _.L(_.zg))};_.u.wj=function(){this.player.trigger(new _.L(_.yg))};_.u.Dm=function(){this.h=2};_.u.rm=function(){this.va(_.Ap)};
75
+ _.u.tj=function(a){var b=this.player.getStats();this.player.trigger(new _.L(_.jd,{detail:{bandwidth:a.totalBitrate,width:b.width,height:b.height}}))};_.u.S=function(a){a=new _.N(_.O,7,7300,{detailedErrorCode:a.detailedErrorCode,error:a.error,reason:a.reason});this.player.trigger(new _.L(_.oe,{detail:a}));this.va(_.zp)};EV.prototype.init=function(){cast.framework.CastReceiverContext.getInstance().getPlayerManager().addEventListener(FV(),this.a)};EV.prototype.release=function(){cast.framework.CastReceiverContext.getInstance().getPlayerManager().removeEventListener(FV(),this.a)};EV.prototype.getTimelineCues=function(){return cast.framework.CastReceiverContext.getInstance().getPlayerManager().getTimedMetadata().map(function(a){return GV(a)})};
76
+ EV.prototype.f=function(a){if(a instanceof cast.framework.events.TimedMetadataEvent){var b=null;switch(a.type){case cast.framework.events.EventType.TIMED_METADATA_CHANGED:b=_.$h;break;case cast.framework.events.EventType.TIMED_METADATA_ENTER:b=_.bi;break;case cast.framework.events.EventType.TIMED_METADATA_EXIT:b=_.ci}b&&this.fb(new _.L(b,{detail:GV(a.timedMetadataInfo)}))}else for(a=_.w(this.getTimelineCues()),b=a.next();!b.done;b=a.next())this.fb(new _.L(_.$h,{detail:b.value}))};_.x(HV,_.U);_.u=HV.prototype;_.u.initialize=function(a){this.m=a;IV().addEventListener(cast.framework.events.EventType.PLAYER_LOAD_COMPLETE,this.l)};_.u.release=function(){this.h=[];this.j=[];this.a=this.f=null};_.u.load=function(){};_.u.destroy=function(){this.m=null;IV().removeEventListener(cast.framework.events.EventType.PLAYER_LOAD_COMPLETE,this.l)};_.u.getVideoTracks=function(){return[]};_.u.getAudioTracks=function(){return this.h};_.u.ia=function(){return this.j};_.u.na=function(){return null};
80
77
  _.u.Sa=function(){var a=this.ma();return a&&a.renditions[0]};_.u.Na=function(){var a=this.xa();return a&&a.renditions[0]};_.u.lb=function(){return null};_.u.Ab=function(){return null};_.u.Bb=function(){return null};_.u.Oa=function(){return null};_.u.ma=function(){var a=null;if(this.f){var b=this.f.getActiveId();typeof b===_.k&&(b=b.toString(),a=this.getAudioTracks().find(function(c){return c.id===b})||null)}return a};
81
78
  _.u.xa=function(){var a=null;if(this.a){var b=this.a.getActiveIds()[0];typeof b===_.k&&(b=b.toString(),a=this.ia().find(function(c){return c.id===b})||null)}return a};_.u.wb=function(){this.g.warn("Video tracks unavailable on Cast")};_.u.Da=function(a){a&&this.f&&this.f.setActiveById(+a.id)};_.u.Qa=function(a){this.a&&(a?this.a.setActiveByIds([+a.id]):this.a.setActiveByIds([]))};_.u.cb=function(){this.g.warn("Video renditions unavailable on Cast")};_.u.ub=function(a){this.Da(a&&a.track)};
82
79
  _.u.vb=function(a){this.Qa(a&&a.track)};
83
- _.u.addTextTrack=function(a){var b=this,c,d,e;return _.I(function(f){if(1==f.a)return c=b.m.getConfiguration(),_.y(f,EU(a,Object.values(cast.framework.messages.CaptionMimeType),b.m.getNetworkEngine(),c),2);if((d=f.f)&&b.a){e=new cast.framework.messages.Track(b.o++,cast.framework.messages.TrackType.TEXT);e.isInband=!1;e.language=d.language;e.name=d.label;e.subtype=d.kind;e.trackContentId=d.url;e.trackContentType=d.mimeType;e.customData={mimeType:a.mimeType,url:a.url};try{b.a.addTracks([e]),JV(b)}catch(g){throw b.g.warn("failed on track",
84
- a),g;}}_.A(f)})};_.u.qa=function(){return!0};_.u.Xm=function(){this.f=HV().getAudioTracksManager();var a=this.f.getTracks();this.h=IV(_.fk,a);JV(this);a=this.m.getConfiguration();KV(this,_.fk,a.preferredAudioLanguage,a.preferredAudioRole);KV(this,_.T,a.preferredTextLanguage,a.preferredTextRole)};GV.prototype.isAbrEnabled=GV.prototype.qa;GV.prototype.addTextTrack=GV.prototype.addTextTrack;GV.prototype.setTextRendition=GV.prototype.vb;GV.prototype.setAudioRendition=GV.prototype.ub;
85
- GV.prototype.setVideoRendition=GV.prototype.cb;GV.prototype.setTextTrack=GV.prototype.Qa;GV.prototype.setAudioTrack=GV.prototype.Da;GV.prototype.setVideoTrack=GV.prototype.wb;GV.prototype.getTextTrack=GV.prototype.xa;GV.prototype.getAudioTrack=GV.prototype.ma;GV.prototype.getVideoTrack=GV.prototype.Oa;GV.prototype.getLoadingTextRendition=GV.prototype.Bb;GV.prototype.getLoadingAudioRendition=GV.prototype.Ab;GV.prototype.getLoadingVideoRendition=GV.prototype.lb;GV.prototype.getTextRendition=GV.prototype.Na;
86
- GV.prototype.getAudioRendition=GV.prototype.Sa;GV.prototype.getVideoRendition=GV.prototype.na;GV.prototype.getTextTracks=GV.prototype.ia;GV.prototype.getAudioTracks=GV.prototype.getAudioTracks;GV.prototype.getVideoTracks=GV.prototype.getVideoTracks;_.x(LV,_.Ul);_.u=LV.prototype;_.u.init=function(a,b){var c=this;this.B=a;b&&(this.h=this.w=b);var d=MV();d.setMessageInterceptor(cast.framework.messages.MessageType.MEDIA_STATUS,this.tm.bind(this));d.setMediaPlaybackInfoHandler(this.cj.bind(this));this.a=new sV(this);this.a.init();this.j=new GV;this.j.initialize(this);this.o=new DV(function(e){return c.trigger(e)});this.o.init()};
87
- _.u.unload=function(){var a=cast.framework.messages.PlayerState,b=MV();b.getPlayerState()!==a.IDLE&&b.stop();this.j&&this.j.release();this.o&&this.o.release();this.f=null;return Promise.resolve()};_.u.release=function(){var a=this;return this.unload().then(function(){a.a&&a.a.release()})};_.u.destroy=function(){var a=this;return _.I(function(b){if(1==b.a)return a.B=null,a.w=_.$l(),a.h=a.w,a.l=-1,a.A=null,a.a?_.y(b,a.a.destroy(),3):b.F(2);2!=b.a&&(a.a=null);a.j&&(a.j.destroy(),a.j=null);_.A(b)})};
88
- _.u.play=function(){var a=MV();if(null!==a.getBreakManager().getBreakClipCurrentTimeSec())return Promise.reject("Cannot play during ads playout.");a.play();return Promise.resolve()};_.u.pause=function(){var a=MV();if(null!==a.getBreakManager().getBreakClipCurrentTimeSec())return Promise.reject("Cannot pause during ads playout.");a.pause();return Promise.resolve()};_.u.isPaused=function(){return MV().getPlayerState()===cast.framework.messages.PlayerState.PAUSED};
89
- _.u.isEnded=function(){return MV().getPlayerState()===cast.framework.messages.PlayerState.IDLE};_.u.seek=function(a){var b=MV();if(null!==b.getBreakManager().getBreakClipCurrentTimeSec())return Promise.reject(oU);b.seek(a);return Promise.resolve()};_.u.getPosition=function(){return this.getMediaPosition()};_.u.setSeekInterceptor=function(){};_.u.getMediaPosition=function(){return MV().getCurrentTimeSec()};_.u.getDuration=function(){return this.getMediaDuration()};
90
- _.u.getMediaDuration=function(){var a=MV().getDurationSec();return typeof a===_.k?-1===a?Infinity:a:-1};_.u.getPlaybackRate=function(){return MV().getPlaybackRate()};_.u.setPlaybackRate=function(a){if(0<a){var b=new cast.framework.messages.SetPlaybackRateRequestData;b.playbackRate=a;MV().sendLocalMediaRequest(b)}};_.u.getVolume=function(){return cast.framework.CastReceiverContext.getInstance().getSystemVolume().level||null};_.u.setVolume=function(a){0<=a&&1>=a&&cast.framework.CastReceiverContext.getInstance().setSystemVolumeLevel(a)};
80
+ _.u.addTextTrack=function(a){var b=this,c,d,e;return _.I(function(f){if(1==f.a)return c=b.m.getConfiguration(),_.y(f,FU(a,Object.values(cast.framework.messages.CaptionMimeType),b.m.getNetworkEngine(),c),2);if((d=f.f)&&b.a){e=new cast.framework.messages.Track(b.o++,cast.framework.messages.TrackType.TEXT);e.isInband=!1;e.language=d.language;e.name=d.label;e.subtype=d.kind;e.trackContentId=d.url;e.trackContentType=d.mimeType;e.customData={mimeType:a.mimeType,url:a.url};try{b.a.addTracks([e]),KV(b)}catch(g){throw b.g.warn("failed on track",
81
+ a),g;}}_.A(f)})};_.u.qa=function(){return!0};_.u.Xm=function(){this.f=IV().getAudioTracksManager();var a=this.f.getTracks();this.h=JV(_.Tj,a);KV(this);a=this.m.getConfiguration();LV(this,_.Tj,a.preferredAudioLanguage,a.preferredAudioRole);LV(this,_.T,a.preferredTextLanguage,a.preferredTextRole)};HV.prototype.isAbrEnabled=HV.prototype.qa;HV.prototype.addTextTrack=HV.prototype.addTextTrack;HV.prototype.setTextRendition=HV.prototype.vb;HV.prototype.setAudioRendition=HV.prototype.ub;
82
+ HV.prototype.setVideoRendition=HV.prototype.cb;HV.prototype.setTextTrack=HV.prototype.Qa;HV.prototype.setAudioTrack=HV.prototype.Da;HV.prototype.setVideoTrack=HV.prototype.wb;HV.prototype.getTextTrack=HV.prototype.xa;HV.prototype.getAudioTrack=HV.prototype.ma;HV.prototype.getVideoTrack=HV.prototype.Oa;HV.prototype.getLoadingTextRendition=HV.prototype.Bb;HV.prototype.getLoadingAudioRendition=HV.prototype.Ab;HV.prototype.getLoadingVideoRendition=HV.prototype.lb;HV.prototype.getTextRendition=HV.prototype.Na;
83
+ HV.prototype.getAudioRendition=HV.prototype.Sa;HV.prototype.getVideoRendition=HV.prototype.na;HV.prototype.getTextTracks=HV.prototype.ia;HV.prototype.getAudioTracks=HV.prototype.getAudioTracks;HV.prototype.getVideoTracks=HV.prototype.getVideoTracks;_.x(MV,_.Ul);_.u=MV.prototype;_.u.init=function(a,b){var c=this;this.B=a;b&&(this.h=this.w=b);var d=NV();d.setMessageInterceptor(cast.framework.messages.MessageType.MEDIA_STATUS,this.tm.bind(this));d.setMediaPlaybackInfoHandler(this.cj.bind(this));this.a=new DV(this);this.a.init();this.j=new HV;this.j.initialize(this);this.o=new EV(function(e){return c.trigger(e)});this.o.init()};
84
+ _.u.unload=function(){var a=cast.framework.messages.PlayerState,b=NV();b.getPlayerState()!==a.IDLE&&b.stop();this.j&&this.j.release();this.o&&this.o.release();this.f=null;return Promise.resolve()};_.u.release=function(){var a=this;return this.unload().then(function(){a.a&&a.a.release()})};_.u.destroy=function(){var a=this;return _.I(function(b){if(1==b.a)return a.B=null,a.w=_.em(),a.h=a.w,a.l=-1,a.A=null,a.a?_.y(b,a.a.destroy(),3):b.F(2);2!=b.a&&(a.a=null);a.j&&(a.j.destroy(),a.j=null);_.A(b)})};
85
+ _.u.play=function(){var a=NV();if(null!==a.getBreakManager().getBreakClipCurrentTimeSec())return Promise.reject("Cannot play during ads playout.");a.play();return Promise.resolve()};_.u.pause=function(){var a=NV();if(null!==a.getBreakManager().getBreakClipCurrentTimeSec())return Promise.reject("Cannot pause during ads playout.");a.pause();return Promise.resolve()};_.u.isPaused=function(){return NV().getPlayerState()===cast.framework.messages.PlayerState.PAUSED};
86
+ _.u.isEnded=function(){return NV().getPlayerState()===cast.framework.messages.PlayerState.IDLE};_.u.seek=function(a){var b=NV();if(null!==b.getBreakManager().getBreakClipCurrentTimeSec())return Promise.reject(pU);b.seek(a);return Promise.resolve()};_.u.getPosition=function(){return this.getMediaPosition()};_.u.setSeekInterceptor=function(){};_.u.getMediaPosition=function(){return NV().getCurrentTimeSec()};_.u.getDuration=function(){return this.getMediaDuration()};
87
+ _.u.getMediaDuration=function(){var a=NV().getDurationSec();return typeof a===_.k?-1===a?Infinity:a:-1};_.u.getPlaybackRate=function(){return NV().getPlaybackRate()};_.u.setPlaybackRate=function(a){if(0<a){var b=new cast.framework.messages.SetPlaybackRateRequestData;b.playbackRate=a;NV().sendLocalMediaRequest(b)}};_.u.getVolume=function(){return cast.framework.CastReceiverContext.getInstance().getSystemVolume().level||null};_.u.setVolume=function(a){0<=a&&1>=a&&cast.framework.CastReceiverContext.getInstance().setSystemVolumeLevel(a)};
91
88
  _.u.setMuted=function(a){cast.framework.CastReceiverContext.getInstance().setSystemVolumeMuted(a)};_.u.isMuted=function(){return cast.framework.CastReceiverContext.getInstance().getSystemVolume().muted||null};
92
- _.u.getLoadedSource=function(){var a=MV().getMediaInformation();if(a){var b=MV().getPlaybackConfig();b=!!b&&b.protectionSystem!==cast.framework.ContentProtection.NONE;var c=this.A&&-1!==this.l?this.A[this.l]:null;c=c?c.name:void 0;!c&&a.metadata&&(c=a.metadata.title);return{url:a.contentId,type:a.contentType,ko:b,name:c}}return null};_.u.getDrmInfo=function(){return null};_.u.getPresentationStartTime=function(){return MV().getStartAbsoluteTime()};
93
- _.u.getSeekRange=function(){var a={start:0,end:this.getDuration()};if(this.isLive()){var b=MV().getLiveSeekableRange();b&&typeof b.start===_.k&&typeof b.end===_.k&&(a={start:b.start,end:b.end})}return a};_.u.getState=function(){return this.a?this.a.getState():_.kp};
94
- _.u.getStats=function(){var a=_.fp();if(this.f){a=MV().getStats();this.f.f=a.estimatedBandwidth||NaN;this.f.o=a.streamBandwidth||NaN;var b=this.f,c=a.height||NaN;b.w=a.width||NaN;b.h=c;b=this.f;c=typeof a.decodedFrames===_.k?a.decodedFrames:NaN;b.l=typeof a.droppedFrames===_.k?a.droppedFrames:NaN;b.j=c;a=this.f.getStats()}return a};_.u.isLive=function(){return Infinity===this.getDuration()};
95
- _.u.load=function(a){var b=this,c,d;return _.I(function(e){b.f=new _.ep;b.a.j=b.f.a;b.A=_.Bp(a);b.h=_.bm(b.w,a);if(b.C)return b.C=!1,e["return"]();c=b.A[b.l];d=new cast.framework.messages.LoadRequestData;d.autoplay=b.h.autoplay;typeof b.h.startTime===_.k&&(d.currentTime=b.h.startTime);c.type&&(d.media.contentType=c.type);d.media.contentId=c.url;d.media.customData={playerConfiguration:CU(b.h),local:!0};return _.y(e,MV().load(d),0)})};_.u.getBufferInfo=function(){this.g.warn(_.ua);return new _.Tl};
96
- _.u.getTrackManager=function(){return this.j};_.u.getConfiguration=function(){return this.h};_.u.getSurface=function(){return this.B};_.u.getTimeline=function(){return null};_.u.setupPlaylist=function(){return Promise.reject(_.Eb)};_.u.appendLoad=function(){return Promise.reject(_.Eb)};_.u.seekWith=function(){return Promise.reject(_.Eb)};_.u.setNetworkEngine=function(a){this.G=a};_.u.setCmsdManager=function(){};_.u.getNetworkEngine=function(){return this.G};_.u.getSourceIndex=function(){return this.l};
97
- _.u.setSourceIndex=function(a){this.l=a};_.u.getPeriods=function(){return[]};_.u.namespace=function(){return wU};_.u.getTimelineCues=function(){return this.o&&this.o.getTimelineCues()||[]};_.u.getCueTimeline=function(){return null};_.u.resetAbr=function(){this.g.warn(sU)};_.u.onError=function(a){this.trigger(new _.L(_.ne,{detail:a}))};_.u.canPlay=function(){return _.al()?2:0};
98
- _.u.tm=function(a){a=Object.assign({},a);a.customData||(a.customData={});a.customData.stats=CU(this.getStats());var b=MV(),c=a.media||b.getMediaInformation();b=b.getStartAbsoluteTime();c&&typeof b===_.k&&c.startAbsoluteTime!==b&&(this.g.info("Syncing startAbsoluteTime.Old value: "+(c.startAbsoluteTime+", new value: ")+b),c.startAbsoluteTime=b,a=Object.assign({},a,{media:c}));c=cast.framework.messages.StreamType;b=a.media;var d=!!b,e=this.isLive(),f=d&&!b.metadata,g=!!a.liveSeekableRange;if(d&&g&&
99
- (!e||e&&f)){d=MV().getStartAbsoluteTime();if(typeof d===_.k){b.startAbsoluteTime=d;var h;f?h=new cast.framework.messages.GenericMediaMetadata:h=b.metadata;h.sectionStartAbsoluteTime=d;b.metadata=h}b.streamType=c.LIVE;a=Object.assign({},a,{media:b})}return a};
100
- _.u.cj=function(a,b){var c=null;a.media.customData&&(c=DU(a.media.customData.playerConfiguration));var d=c?c.abr||null:null;d&&typeof d.defaultBandwidthEstimate===_.k?b.initialBandwidth=d.defaultBandwidthEstimate:b.initialBandwidth=void 0;PV(c,b);return b};_.u.getTextDisplayer=function(){return null};_.u.setDrmCustomDataModifier=function(){};_.u.setCdnErrorCallback=function(){};_.u.detach=function(){};LV.prototype.getTextDisplayer=LV.prototype.getTextDisplayer;LV.prototype.getNetworkEngine=LV.prototype.getNetworkEngine;
101
- LV.prototype.setNetworkEngine=LV.prototype.setNetworkEngine;_.u=QV.prototype;_.u.init=function(a){var b=this;a&&(this.f=new LV,_.ds(a,this.f),this.m=a,this.o.on(window,"unload",function(){return _.I(function(c){return b.m&&b.m.getState()!==_.jp?_.y(c,AU(b.m),0):c.F(0)})}))};
102
- _.u.start=function(){if(!this.a&&window.cast&&cast.framework&&cast.framework.CastReceiverContext){this.a=!0;var a=TV(),b=TV().getPlayerManager(),c=new cast.framework.CastReceiverOptions;c.customNamespaces={};c.customNamespaces[yU]=cast.framework.system.MessageType.JSON;c.shakaVersion="4.3.4";var d=new cast.framework.PlaybackConfig;d.manifestHandler=this.Ll.bind(this);d.shakaConfig={streaming:{ignoreTextStreamFailures:!0}};d.enableSmoothLiveRefresh=!0;c.playbackConfig=d;if(d=this.m&&this.m.getSurface().getMedia())c.mediaElement=
103
- d;c.disableIdleTimeout=!0;c.maxInactivity=Infinity;b.setMessageInterceptor(cast.framework.messages.MessageType.LOAD,this.Kl.bind(this));b.addEventListener(cast.framework.events.EventType.PLAYER_LOAD_COMPLETE,this.A);a.start(c);a.addCustomMessageListener(yU,this.w)}};
104
- _.u.stop=function(){if(this.a){this.a=!1;this.o.release();var a=TV();TV().getPlayerManager().removeEventListener(cast.framework.events.EventType.PLAYER_LOAD_COMPLETE,this.A);a.removeCustomMessageListener(yU,this.w);a.stop();this.m=this.f=null}};_.u.de=function(a){this.j=a};_.u.rn=function(a){this.l=a};_.u.on=function(a,b){TV().addEventListener(a,b)};_.u.off=function(a,b){TV().removeEventListener(a,b)};_.u.addMessageListener=function(a){typeof a===_.re&&this.h.add(a)};
105
- _.u.removeMessageListener=function(a){typeof a===_.re&&this.h["delete"](a)};_.u.sendMessage=function(a,b){TV().sendCustomMessage(yU,b,CU(a))};_.u.yc=function(){return this.a};_.u.zb=function(){return UV()};_.u.Xb=function(a){VV(this,a)};_.u.In=function(a){var b=UV(),c=null;a?c=Object.assign({},b,a):c=b;VV(this,c)};
106
- _.u.Ll=function(a){a=a.trim();if(a.startsWith("#EXTM3U"))return XV(this,a);try{var b=(new DOMParser).parseFromString(a,_.mg)}catch(t){return a}var c=b.getElementsByTagName("MPD")[0];if(c){a=c;this.g.debug("Detected DASH, parsing");b=TV();c=a.getElementsByTagName("Period");for(var d=c.length-1;0<=d;--d){for(var e=c[d].getElementsByTagName(_.ja),f=e.length-1;0<=f;--f){var g=e[f].getAttribute("contentType");if(g===_.r||g===_.$c){g=e[f].getAttribute(_.Oe);for(var h=e[f].getElementsByTagName(_.Rb),l=h.length-
107
- 1;0<=l;--l){var m=h[l].getAttribute(_.Oe)||g,n=h[l].getAttribute(_.Id),p=h[l].getAttribute(_.Ug)||void 0,q=h[l].getAttribute(_.se)||void 0;void 0!==p&&(p=+p);void 0!==q&&(q=+q);b.canDisplayType(m,n,p,q)||e[f].removeChild(h[l])}e[f].getElementsByTagName(_.Rb).length||c[d].removeChild(e[f])}}c[d].getElementsByTagName(_.ja).length||a.removeChild(c[d])}return(new XMLSerializer).serializeToString(a)}if(c=b.getElementsByTagName(_.$b)[0]){a=c;this.g.debug("Detected Smooth, parsing");b=TV();c=a.getElementsByTagName("StreamIndex");
108
- for(d=c.length-1;0<=d;--d)if(c[d].getAttribute("Type")===_.r){e=c[d].getElementsByTagName(_.Pb);for(f=e.length-1;0<=f;--f)g=e[f].getAttribute(_.wb)||void 0,h=e[f].getAttribute(_.vb)||void 0,void 0!==g&&(g=+g),void 0!==h&&(h=+h),b.canDisplayType(_.Hg,void 0,g,h)||c[d].removeChild(e[f]);c[d].getElementsByTagName(_.Pb).length||a.removeChild(c[d])}a=(new XMLSerializer).serializeToString(a)}return a};
109
- _.u.Kl=function(a){var b=this,c,d,e,f,g,h;return _.I(function(l){switch(l.a){case 1:c=a;c.media.customData&&(d=DU(c.media.customData.playerConfiguration));if(!b.m||!d){l.F(2);break}if(!b.j){l.F(3);break}return _.y(l,Promise.resolve(b.j(d)),4);case 4:d=(e=l.f)||d;case 3:if(!d.ima){l.F(5);break}return _.y(l,zV(c.media,d.ima,b.m.getNetworkEngine()),5);case 5:typeof d.startTime===_.k&&d.startTime!==c.currentTime?c.currentTime=d.startTime:d.startTime=c.currentTime||null;if(c.media.customData.local){l.F(7);
110
- break}b.f.C=!0;return _.y(l,_.ms(b.m,d),8);case 8:return _.y(l,_.ns(b.m),9);case 9:f=b.m.getLoadedSource(),c.media.contentId=f.url,c.media.contentType=f.type,f.Yb&&(c.media.hlsVideoSegmentFormat=FU(f.Yb,_.gk)),f.audioMimeType&&(c.media.hlsSegmentFormat=FU(f.audioMimeType,_.fk));case 7:if((g=c.media.metadata)&&typeof g.sectionStartAbsoluteTime===_.k){var m=g.sectionStartAbsoluteTime;g.sectionStartAbsoluteTime=0===m?1E-8:m}void 0===c.autoplay&&(c.autoplay=b.m.getConfiguration().autoplay);case 2:if(!b.l){l.F(10);
111
- break}return _.y(l,Promise.resolve(b.l(c)),11);case 11:(h=l.f)&&(c=h);case 10:return l["return"](c)}})};_.u.qm=function(a){if(this.m&&(!a.media.customData||!a.media.customData.local)){a=_.M.Bl;var b=TV().getPlayerManager(),c=b.getLiveSeekableRange();if(c){var d=c.start;c=c.end;var e=this.m.getConfiguration().startTime;typeof d!==_.k||typeof c!==_.k||typeof e!==_.k||a(e,d,c)||(b=b.getMediaTimeForAbsoluteTime(e),typeof b===_.k&&a(b,d,c)&&this.m.seek(b))}_.is(this.m)}};
112
- _.u.sj=function(a){if(0<this.h.size){var b=DU(a.data);this.h.forEach(function(c){return c(b)})}};_.J(xU,QV);QV.prototype.updateContentMetadata=QV.prototype.In;QV.prototype.setContentMetadata=QV.prototype.Xb;QV.prototype.getContentMetadata=QV.prototype.zb;QV.prototype.isApiReady=QV.prototype.yc;QV.prototype.sendMessage=QV.prototype.sendMessage;QV.prototype.removeMessageListener=QV.prototype.removeMessageListener;QV.prototype.addMessageListener=QV.prototype.addMessageListener;QV.prototype.off=QV.prototype.off;
113
- QV.prototype.on=QV.prototype.on;QV.prototype.setLoadRequestDataInterceptor=QV.prototype.rn;QV.prototype.setPlayerConfigInterceptor=QV.prototype.de;QV.prototype.stop=QV.prototype.stop;QV.prototype.start=QV.prototype.start;QV.prototype.init=QV.prototype.init;QV.getInstance=SV;var RV=null;_.u=YV.prototype;_.u.load=function(){var a=this,b,c,d,e,f;return _.I(function(g){a.a=a.f.l;if(a.a)for(b=a.a.controller,c=a.Fm.bind(a),d=_.w(a.j),e=d.next();!e.done;e=d.next())f=e.value,a.h.on(b,f,c);_.A(g)})};_.u.start=function(){return _.I(function(a){_.A(a)})};_.u.Vc=function(){};_.u.resume=function(){this.a&&this.a.isPlayingBreak&&this.a.isPaused&&this.a.controller.playOrPause()};_.u.pause=function(){this.a&&this.a.isPlayingBreak&&!this.a.isPaused&&this.a.controller.playOrPause()};
114
- _.u.skip=function(){var a=this.f.a;a&&this.f.sendMessage(zU,{type:"SKIP_AD",requestId:Math.round(1E3*Math.random()),mediaSessionId:a.mediaSessionId})};_.u.getVolume=function(){return this.f.getVolume()||0};_.u.setVolume=function(a){this.f.setVolume(a)};_.u.getPosition=function(){var a=-1,b=this.f.a;b&&(b=b.getEstimatedBreakClipTime(),typeof b===_.k&&(a=b));return a};_.u.Rc=function(){return!0};_.u.pc=function(){var a=this;return _.I(function(b){a.h.release();_.A(b)})};
115
- _.u.Fm=function(a){switch(a.field){case "mediaInfo":a.value&&(a=a.value,a.breaks&&this.f.trigger(new _.L(_.Nc,{adsTimeline:new uV(a.breaks)})));break;case "isPlayingBreak":a.value?$V(this,_.uc):($V(this,_.yc),$V(this,_.Kc),$V(this,_.vc));break;case "currentBreakClipNumber":0<=a.value&&(0<a.value&&($V(this,_.yc),$V(this,_.Kc)),$V(this,_.Jc));break;case "isPaused":this.a.isPlayingBreak&&(a.value?$V(this,_.Fc):$V(this,_.Hc))}};YV.prototype.getPosition=YV.prototype.getPosition;
116
- YV.prototype.setVolume=YV.prototype.setVolume;YV.prototype.getVolume=YV.prototype.getVolume;YV.prototype.skip=YV.prototype.skip;YV.prototype.pause=YV.prototype.pause;YV.prototype.resume=YV.prototype.resume;aW.prototype.name=function(){return"clpp.cast.ads.SenderAdsManagerFactory"};aW.prototype.a=function(a,b){return a.namespace()!==_.Bd?!1:!(!b||!b.ima)};aW.prototype.create=function(a){return new YV(a.a)};_.Rp(new aW);bW.prototype.name=function(){return"clpp.cast.ads.AdsManagerFactory"};bW.prototype.a=function(a,b){return SV().yc()?!(!b||!b.ima):!1};bW.prototype.create=function(a){return new wV(a)};_.Rp(new bW);};
89
+ _.u.getLoadedSource=function(){var a=NV().getMediaInformation();if(a){var b=NV().getPlaybackConfig();b=!!b&&b.protectionSystem!==cast.framework.ContentProtection.NONE;var c=this.A&&-1!==this.l?this.A[this.l]:null;c=c?c.name:void 0;!c&&a.metadata&&(c=a.metadata.title);return{url:a.contentId,type:a.contentType,ko:b,name:c}}return null};_.u.getDrmInfo=function(){return null};_.u.getPresentationStartTime=function(){return NV().getStartAbsoluteTime()};
90
+ _.u.getSeekRange=function(){var a={start:0,end:this.getDuration()};if(this.isLive()){var b=NV().getLiveSeekableRange();b&&typeof b.start===_.k&&typeof b.end===_.k&&(a={start:b.start,end:b.end})}return a};_.u.getState=function(){return this.a?this.a.getState():_.pp};
91
+ _.u.getStats=function(){var a=_.kp();if(this.f){a=NV().getStats();this.f.f=a.estimatedBandwidth||NaN;this.f.o=a.streamBandwidth||NaN;var b=this.f,c=a.height||NaN;b.w=a.width||NaN;b.h=c;b=this.f;c=typeof a.decodedFrames===_.k?a.decodedFrames:NaN;b.l=typeof a.droppedFrames===_.k?a.droppedFrames:NaN;b.j=c;a=this.f.getStats()}return a};_.u.isLive=function(){return Infinity===this.getDuration()};
92
+ _.u.load=function(a){var b=this,c,d;return _.I(function(e){b.f=new _.jp;b.a.j=b.f.a;b.A=_.Gp(a);b.h=_.gm(b.w,a);if(b.C)return b.C=!1,e["return"]();c=b.A[b.l];d=new cast.framework.messages.LoadRequestData;d.autoplay=b.h.autoplay;typeof b.h.startTime===_.k&&(d.currentTime=b.h.startTime);c.type&&(d.media.contentType=c.type);d.media.contentId=c.url;d.media.customData={playerConfiguration:DU(b.h),local:!0};return _.y(e,NV().load(d),0)})};_.u.getBufferInfo=function(){this.g.warn(_.va);return new _.Tl};
93
+ _.u.getTrackManager=function(){return this.j};_.u.getConfiguration=function(){return this.h};_.u.getSurface=function(){return this.B};_.u.getTimeline=function(){return null};_.u.setupPlaylist=function(){return Promise.reject(_.Fb)};_.u.appendLoad=function(){return Promise.reject(_.Fb)};_.u.seekWith=function(){return Promise.reject(_.Fb)};_.u.setNetworkEngine=function(a){this.G=a};_.u.setCmsdManager=function(){};_.u.getNetworkEngine=function(){return this.G};_.u.getSourceIndex=function(){return this.l};
94
+ _.u.setSourceIndex=function(a){this.l=a};_.u.getPeriods=function(){return[]};_.u.namespace=function(){return xU};_.u.getTimelineCues=function(){return this.o&&this.o.getTimelineCues()||[]};_.u.getCueTimeline=function(){return null};_.u.resetAbr=function(){this.g.warn(tU)};_.u.onError=function(a){this.trigger(new _.L(_.oe,{detail:a}))};_.u.canPlay=function(){return _.al()?2:0};
95
+ _.u.tm=function(a){a=Object.assign({},a);a.customData||(a.customData={});a.customData.stats=DU(this.getStats());var b=NV(),c=a.media||b.getMediaInformation();b=b.getStartAbsoluteTime();c&&typeof b===_.k&&c.startAbsoluteTime!==b&&(this.g.info("Syncing startAbsoluteTime.Old value: "+(c.startAbsoluteTime+", new value: ")+b),c.startAbsoluteTime=b,a=Object.assign({},a,{media:c}));c=cast.framework.messages.StreamType;b=a.media;var d=!!b,e=this.isLive(),f=d&&!b.metadata,g=!!a.liveSeekableRange;if(d&&g&&
96
+ (!e||e&&f)){d=NV().getStartAbsoluteTime();if(typeof d===_.k){b.startAbsoluteTime=d;var h;f?h=new cast.framework.messages.GenericMediaMetadata:h=b.metadata;h.sectionStartAbsoluteTime=d;b.metadata=h}b.streamType=c.LIVE;a=Object.assign({},a,{media:b})}return a};
97
+ _.u.cj=function(a,b){var c=null;a.media.customData&&(c=EU(a.media.customData.playerConfiguration));var d=c?c.abr||null:null;d&&typeof d.defaultBandwidthEstimate===_.k?b.initialBandwidth=d.defaultBandwidthEstimate:b.initialBandwidth=void 0;QV(c,b);return b};_.u.getTextDisplayer=function(){return null};_.u.setDrmCustomDataModifier=function(){};_.u.setCdnErrorCallback=function(){};_.u.detach=function(){};MV.prototype.getTextDisplayer=MV.prototype.getTextDisplayer;MV.prototype.getNetworkEngine=MV.prototype.getNetworkEngine;
98
+ MV.prototype.setNetworkEngine=MV.prototype.setNetworkEngine;_.u=RV.prototype;_.u.init=function(a){var b=this;a&&(this.f=new MV,_.Zs(a,this.f),this.m=a,this.o.on(window,"unload",function(){return _.I(function(c){return b.m&&b.m.getState()!==_.op?_.y(c,BU(b.m),0):c.F(0)})}))};
99
+ _.u.start=function(){if(!this.a&&window.cast&&cast.framework&&cast.framework.CastReceiverContext){this.a=!0;var a=UV(),b=UV().getPlayerManager(),c=new cast.framework.CastReceiverOptions;c.customNamespaces={};c.customNamespaces[zU]=cast.framework.system.MessageType.JSON;c.shakaVersion="4.3.4";var d=new cast.framework.PlaybackConfig;d.manifestHandler=this.Ll.bind(this);d.shakaConfig={streaming:{ignoreTextStreamFailures:!0}};d.enableSmoothLiveRefresh=!0;c.playbackConfig=d;if(d=this.m&&this.m.getSurface().getMedia())c.mediaElement=
100
+ d;c.disableIdleTimeout=!0;c.maxInactivity=Infinity;b.setMessageInterceptor(cast.framework.messages.MessageType.LOAD,this.Kl.bind(this));b.addEventListener(cast.framework.events.EventType.PLAYER_LOAD_COMPLETE,this.A);a.start(c);a.addCustomMessageListener(zU,this.w)}};
101
+ _.u.stop=function(){if(this.a){this.a=!1;this.o.release();var a=UV();UV().getPlayerManager().removeEventListener(cast.framework.events.EventType.PLAYER_LOAD_COMPLETE,this.A);a.removeCustomMessageListener(zU,this.w);a.stop();this.m=this.f=null}};_.u.de=function(a){this.j=a};_.u.rn=function(a){this.l=a};_.u.on=function(a,b){UV().addEventListener(a,b)};_.u.off=function(a,b){UV().removeEventListener(a,b)};_.u.addMessageListener=function(a){typeof a===_.se&&this.h.add(a)};
102
+ _.u.removeMessageListener=function(a){typeof a===_.se&&this.h["delete"](a)};_.u.sendMessage=function(a,b){UV().sendCustomMessage(zU,b,DU(a))};_.u.yc=function(){return this.a};_.u.zb=function(){return VV()};_.u.Xb=function(a){WV(this,a)};_.u.In=function(a){var b=VV(),c=null;a?c=Object.assign({},b,a):c=b;WV(this,c)};
103
+ _.u.Ll=function(a){a=a.trim();if(a.startsWith("#EXTM3U"))return YV(this,a);try{var b=(new DOMParser).parseFromString(a,_.ng)}catch(t){return a}var c=b.getElementsByTagName("MPD")[0];if(c){a=c;this.g.debug("Detected DASH, parsing");b=UV();c=a.getElementsByTagName("Period");for(var d=c.length-1;0<=d;--d){for(var e=c[d].getElementsByTagName(_.la),f=e.length-1;0<=f;--f){var g=e[f].getAttribute("contentType");if(g===_.r||g===_.ad){g=e[f].getAttribute(_.Pe);for(var h=e[f].getElementsByTagName(_.Sb),l=h.length-
104
+ 1;0<=l;--l){var m=h[l].getAttribute(_.Pe)||g,n=h[l].getAttribute(_.Jd),p=h[l].getAttribute(_.Vg)||void 0,q=h[l].getAttribute(_.te)||void 0;void 0!==p&&(p=+p);void 0!==q&&(q=+q);b.canDisplayType(m,n,p,q)||e[f].removeChild(h[l])}e[f].getElementsByTagName(_.Sb).length||c[d].removeChild(e[f])}}c[d].getElementsByTagName(_.la).length||a.removeChild(c[d])}return(new XMLSerializer).serializeToString(a)}if(c=b.getElementsByTagName(_.ac)[0]){a=c;this.g.debug("Detected Smooth, parsing");b=UV();c=a.getElementsByTagName("StreamIndex");
105
+ for(d=c.length-1;0<=d;--d)if(c[d].getAttribute("Type")===_.r){e=c[d].getElementsByTagName(_.Qb);for(f=e.length-1;0<=f;--f)g=e[f].getAttribute(_.xb)||void 0,h=e[f].getAttribute(_.wb)||void 0,void 0!==g&&(g=+g),void 0!==h&&(h=+h),b.canDisplayType(_.Ig,void 0,g,h)||c[d].removeChild(e[f]);c[d].getElementsByTagName(_.Qb).length||a.removeChild(c[d])}a=(new XMLSerializer).serializeToString(a)}return a};
106
+ _.u.Kl=function(a){var b=this,c,d,e,f,g,h;return _.I(function(l){switch(l.a){case 1:c=a;c.media.customData&&(d=EU(c.media.customData.playerConfiguration));if(!b.m||!d){l.F(2);break}if(!b.j){l.F(3);break}return _.y(l,Promise.resolve(b.j(d)),4);case 4:d=(e=l.f)||d;case 3:if(!d.ima){l.F(5);break}return _.y(l,wV(c.media,d.ima,b.m.getNetworkEngine()),5);case 5:typeof d.startTime===_.k&&d.startTime!==c.currentTime?c.currentTime=d.startTime:d.startTime=c.currentTime||null;if(c.media.customData.local){l.F(7);
107
+ break}b.f.C=!0;return _.y(l,_.ht(b.m,d),8);case 8:return _.y(l,_.it(b.m),9);case 9:f=b.m.getLoadedSource(),c.media.contentId=f.url,c.media.contentType=f.type,f.Yb&&(c.media.hlsVideoSegmentFormat=GU(f.Yb,_.Uj)),f.audioMimeType&&(c.media.hlsSegmentFormat=GU(f.audioMimeType,_.Tj));case 7:if((g=c.media.metadata)&&typeof g.sectionStartAbsoluteTime===_.k){var m=g.sectionStartAbsoluteTime;g.sectionStartAbsoluteTime=0===m?1E-8:m}void 0===c.autoplay&&(c.autoplay=b.m.getConfiguration().autoplay);case 2:if(!b.l){l.F(10);
108
+ break}return _.y(l,Promise.resolve(b.l(c)),11);case 11:(h=l.f)&&(c=h);case 10:return l["return"](c)}})};_.u.qm=function(a){if(this.m&&(!a.media.customData||!a.media.customData.local)){a=_.M.Bl;var b=UV().getPlayerManager(),c=b.getLiveSeekableRange();if(c){var d=c.start;c=c.end;var e=this.m.getConfiguration().startTime;typeof d!==_.k||typeof c!==_.k||typeof e!==_.k||a(e,d,c)||(b=b.getMediaTimeForAbsoluteTime(e),typeof b===_.k&&a(b,d,c)&&this.m.seek(b))}_.dt(this.m)}};
109
+ _.u.sj=function(a){if(0<this.h.size){var b=EU(a.data);this.h.forEach(function(c){return c(b)})}};_.J(yU,RV);RV.prototype.updateContentMetadata=RV.prototype.In;RV.prototype.setContentMetadata=RV.prototype.Xb;RV.prototype.getContentMetadata=RV.prototype.zb;RV.prototype.isApiReady=RV.prototype.yc;RV.prototype.sendMessage=RV.prototype.sendMessage;RV.prototype.removeMessageListener=RV.prototype.removeMessageListener;RV.prototype.addMessageListener=RV.prototype.addMessageListener;RV.prototype.off=RV.prototype.off;
110
+ RV.prototype.on=RV.prototype.on;RV.prototype.setLoadRequestDataInterceptor=RV.prototype.rn;RV.prototype.setPlayerConfigInterceptor=RV.prototype.de;RV.prototype.stop=RV.prototype.stop;RV.prototype.start=RV.prototype.start;RV.prototype.init=RV.prototype.init;RV.getInstance=TV;var SV=null;ZV.prototype.name=function(){return"clpp.cast.ads.AdsManagerFactory"};ZV.prototype.a=function(a,b){return TV().yc()?!(!b||!b.ima):!1};ZV.prototype.create=function(a){return new tV(a)};_.Yp(new ZV);$V.prototype.name=function(){return"clpp.cast.ads.SenderAdsManagerFactory"};$V.prototype.a=function(a,b){return a.namespace()!==_.Cd?!1:!(!b||!b.ima)};$V.prototype.create=function(a){return new AV(a.a)};_.Yp(new $V);_.x(bW,_.Ul);_.u=bW.prototype;_.u.destroy=function(){var a=this;return _.I(function(b){if(1==b.a)return a.a?_.y(b,UU(a.a),3):b.F(2);2!=b.a&&(a.a=null);a.f&&a.stopForwardingEventsTo(a.f);_.A(b)})};_.u.tf=function(){return!!this.a&&this.a.yc()&&fV};_.u.Hb=function(){return!!this.a&&this.a.Hb()};_.u.Kf=function(){return this.a?this.a.Kf():""};_.u.de=function(a){this.a&&this.a.de(a)};
111
+ _.u.cast=function(a){var b=this,c,d,e;return _.I(function(f){switch(f.a){case 1:if(!b.a)return f["return"]();_.D(f,2);return _.y(f,b.a.cast(),4);case 4:if(!b.f||!b.a)return f["return"]();var g=null,h=b.f.getLoadedSource();if(h){var l=b.f.getTrackManager();g=l.getVideoTracks()[0];if(g&&g.mimeType)var m=g.mimeType;g=b.f.getConfiguration();var n=l.ma();if(n){if(n.mimeType)var p=n.mimeType;n.language&&(g.preferredAudioLanguage=n.language);n.roles.length&&(g.preferredAudioRole=n.roles[0])}if(l=l.xa())l.language&&
112
+ (g.preferredTextLanguage=l.language),l.roles.length&&(g.preferredTextRole=l.roles[0]);l=h&&typeof h.isLive===_.kd?h.isLive:b.f.isLive();g={source:h,isLive:l,autoplay:!b.f.isPaused(),currentTime:Math.max(b.f.getPosition()-1,0),gg:b.f.getPresentationStartTime(),Yb:m,audioMimeType:p,bb:g}}c=g;return _.y(f,cW(b),5);case 5:if(!b.a)return f["return"]();c&&(c.autoplay=!b.f.isPaused());if(a)return _.y(f,b.f.load(a),7);if(b.a.a){f.F(7);break}return _.y(f,oV(b.a,c),7);case 7:_.ph(f,0);break;case 2:d=_.F(f),
113
+ b.g.error("Error while trying to cast",d),e=new _.L(_.oe,{detail:d}),b.trigger(e),_.A(f)}})};_.u.Hf=function(){this.a&&this.a.Hf()};_.u.nj=function(a){var b=this;return _.I(function(c){if(1==c.a){if(a===b.h)return c["return"]();b.h=a;return b.a?_.y(c,UU(b.a),2):c.F(2)}b.a=aW(b);_.A(c)})};_.u.sendMessage=function(a){var b=this;return _.I(function(c){return b.a?_.y(c,b.a.sendMessage(zU,a),0):(b.g.warn(vU),c["return"]())})};_.u.addMessageListener=function(a){this.a?this.a.addMessageListener(a):this.g.warn(vU)};
114
+ _.u.removeMessageListener=function(a){this.a?this.a.removeMessageListener(a):this.g.warn(vU)};_.u.zb=function(){return this.a&&this.a.zb()};_.u.Xb=function(a){this.a&&this.a.Xb(a)};_.u.wf=function(){this.a&&this.a.wf()};_.u.pg=function(a){this.a&&this.a.pg(a)};_.u.ng=function(a){this.a&&this.a.ng(a)};_.u.mg=function(a){this.a&&this.a.mg(a)};_.u.og=function(a){this.a&&this.a.og(a)};_.J(wU,bW);bW.prototype.setContentReleaseDate=bW.prototype.og;bW.prototype.setContentArtist=bW.prototype.mg;
115
+ bW.prototype.setContentImage=bW.prototype.ng;bW.prototype.setContentTitle=bW.prototype.pg;bW.prototype.clearContentMetadata=bW.prototype.wf;bW.prototype.setContentMetadata=bW.prototype.Xb;bW.prototype.getContentMetadata=bW.prototype.zb;bW.prototype.removeMessageListener=bW.prototype.removeMessageListener;bW.prototype.addMessageListener=bW.prototype.addMessageListener;bW.prototype.sendMessage=bW.prototype.sendMessage;bW.prototype.changeReceiverId=bW.prototype.nj;bW.prototype.forceDisconnect=bW.prototype.Hf;
116
+ bW.prototype.cast=bW.prototype.cast;bW.prototype.setPlayerConfigInterceptor=bW.prototype.de;bW.prototype.getReceiverName=bW.prototype.Kf;bW.prototype.isCasting=bW.prototype.Hb;bW.prototype.canCast=bW.prototype.tf;bW.prototype.destroy=bW.prototype.destroy;};
117
117
  if(typeof(module)!="undefined"&&module.exports){var x=require("./cl.core.js");_ = x._;(f.call(g,this));module.exports=g;}
118
118
  else if (typeof(define)!="undefined"&&define.amd) {define(["./cl.core"], function(c){_=c._;(f.call(g,this));return g;});}
119
119
  else{_=this.clpp._;(f.call(g,this));}