Bike!Bike! Website!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

47 lines
93 KiB

/*!CK:3426572715!*//*1427086744,*/
if (self.CavalryLogger) { CavalryLogger.start_js(["xWrym"]); }
__d("VideoPlayerInitializationEvents",[],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();e.exports={PLAYER_INITIALIZATION:"player_initialization",PLAYER_ALLOCATED:"player_allocated",REQUESTED_PLAYING:"requested_playing",STARTED_PLAYING:"started_playing",PLAYER_SENT_REQUEST:"player_sent",PLAYER_RECEIVED_FIRST_BYTE:"player_received_first_byte",BUFFER_READY:"buffer_ready",METADATA_READY:"metadata_ready"};},null);
__d("VideoPlayerLoggerEvents",[],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();e.exports={AUTOPLAY_PREFERENCE_CHANGED:"autoplay_preference_changed",END_STALL_TIME:"end_stall_time",AUTOPLAY_PREFERENCE_STATUS:"autoplay_preference_status",ERROR_ALERT_SHOWN:"video_error_alert_shown",NOT_AUTOPLAYING:"not_autoplaying",VIDEO_CHANNEL_NO_RELATED_VIDEO:"video_channel_no_related_video",VIDEO_ORIENTATION_CHANGED:"video_orientation_changed",ASSETS_LOADED:"assets_loaded",BUFFERED:"buffered",CANCELLED_REQUESTED_PLAYING:"cancelled_requested_playing",CAROUSEL_CHANGE:"carousel_change",DISPLAYED:"displayed",ENTERED_HD:"entered_hd",ENTERED_FALLBACK:"entered_fallback",ENTERED_FS:"entered_fs",EXITED_HD:"exited_hd",EXITED_FS:"exited_fs",ERROR:"error",FINISHED_PLAYING:"finished_playing",IMPRESSION:"impression",INVALID_URL:"invalid_url",MUTED:"muted",PAUSED:"paused",PLAY_REQUESTED:"play_requested",PLAYER_FORMAT_CHANGED:"player_format_changed",PLAYER_LOADED:"player_loaded",PROGRESS:"progress",READY_TO_PLAY:"ready_to_play",REPLAYED:"replayed",REQUESTED:"requested",REQUESTED_PLAYING:"requested_playing",SCRUBBED:"scrubbed",STARTED_PLAYING:"started_playing",STARTED_RECEIVING_BYTES:"started_receiving_bytes",STOPPED_PLAYING:"stopped_playing",UNMUTED:"unmuted",UNPAUSED:"unpaused",VOLUME_CHANGED:"volume_changed",VOLUME_DECREASE:"volume_decrease",VOLUME_INCREASE:"volume_increase",VIDEO_PLAYING:"video_playing",VIDEO_SKIP_AD:"video_skip_ad",VIDEO_CHAINING_IMPRESSION:"video_chaining_impression",PLAYING_LIVE_STARTED:"playing_live_started",PLAYING_LIVE_STOPPED:"playing_live_stopped",COMPLETION:"completion",VIEW:"view"};},null);
__d("VideoPlayerLoggerSource",[],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();e.exports={ADS:"ads",ANIMATED_IMAGE_SHARE:"animated_image_share",BROADCAST_REQUEST_ATTACHMENT:"broadcast_request_attachment",EMBEDDED:"embedded",EMBEDDED_VIDEO:"embedded_video",HTML5:"html5",INLINE:"inline",CHAINED:"chained",CHAINED_SUGGESTION:"chained_suggestion",CHANNEL:"channel",INSIGHTS:"insights",LOOKBACK:"lookback",MESSAGING:"messaging",MISC:"misc",MOBILE:"mobile",PAGES_FINCH_MAIN_VIDEO:"pages_finch_main_video",PAGES_FINCH_THUMBNAIL_VIDEO:"pages_finch_thumbnail_video",PAGES_FINCH_TRAILER:"pages_finch_trailer",PAGES_VIDEO_SET:"pages_video_set",PERMALINK:"permalink",REPORT_FLOW:"report_flow",SNOWLIFT:"snowlift",TRAILER_OG_ATTACHMENT:"trailer_og_attachment",TRAILER_TIMELINE_COLLECTIONS:"trailer_timeline_collections",TRAILER_TIMELINE_UNIT:"trailer_timeline_unit",VIDEOHUB_PLAYLIST:"videohub_playlist",VIDEOHUB_FEATURED:"videohub_featured"};},null);
__d("VideoPlayerVersions",[],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();e.exports={HTML5:"html5",SILVERCITY:"silvercity",PLEASANTVILLE:"pleasantville"};},null);
__d("HVideoPlayerMixin",["EventListener","VideoPlayerLoggerEvents"],function(a,b,c,d,e,f,g,h){b.__markCompiled&&b.__markCompiled();var i=-1,j={initLogger:function(k){var l=this.getSubscriptions();this._loggedEvents={};this._logFunction=k;var m=this.getVideoElement();this._lastStartTimePosition=i;this._muted=m.muted;this._pausedPosition=i;this._seeking=false;this._seekSourceTimePosition=i;this._volume=m.volume;this._lastPlayedTime=i;if(m.readyState>=m.HAVE_FUTURE_DATA){this._logReadyToPlay();}else l.addSubscriptions(g.listen(m,'canplay',this._logReadyToPlay.bind(this)));l.addSubscriptions(g.listen(m,'pause',this._onPause.bind(this)),g.listen(m,'playing',this._onPlay.bind(this)),g.listen(m,'seeked',this._onSeeked.bind(this)),g.listen(m,'seeking',this._onSeeking.bind(this)),g.listen(m,'timeupdate',this._onTimeUpdate.bind(this)),g.listen(m,'volumechange',this._onVolumeChange.bind(this)));},_logOnce:function(event,k){if(this._loggedEvents[event])return;this._logEvent(event,k);},_logEvent:function(event,k){this._loggedEvents[event]=true;var l=k?k:{};l.video_id=this.getVideoID();if(!l.hasOwnProperty('video_time_position'))l.video_time_position=this.getVideoElement().currentTime;l.time=Math.round(Date.now()/1000);if(this.getAdClientToken){var m=this.getAdClientToken();if(m)l.ad_client_token=m;}this._logFunction(event,l);},_logReadyToPlay:function(){this._logOnce(h.READY_TO_PLAY);},_onPause:function(k){var l=this.getVideoElement(),event=l.ended?h.FINISHED_PLAYING:h.PAUSED,m=this._lastPlayedTime,n=k.lastPauseReason;if(event===h.FINISHED_PLAYING){m=Math.max(m,l.duration);}else if(this.preventPauseLoggingInMixin===true){return;}else if(this.preventPauseLoggingInMixin===false)n=n||'unloaded';this._logEvent(event,{video_last_start_time_position:this._lastStartTimePosition===i?this._lastPlayedTime:this._lastStartTimePosition,video_time_position:m,reason:n});this._lastStartTimePosition=i;},addWatchTimeData:function(k){if(this._lastStartTimePosition!=i&&this._lastPlayedTime!=i){k.video_last_start_time_position=this._lastStartTimePosition;k.video_time_position=this._lastPlayedTime;this._lastStartTimePosition=i;}return k;},getLastPlayReason:function(){return null;},getVideoPlayReason:function(){return null;},_onPlay:function(){var k=this.getLastPlayReason(),event=this._loggedEvents[h.STARTED_PLAYING]?h.UNPAUSED:h.STARTED_PLAYING,l={reason:k,video_play_reason:this.getVideoPlayReason()};this._logEvent(event,l);this._lastStartTimePosition=this.getVideoElement().currentTime.toFixed(2);this._lastPlayedTime=this.getVideoElement().currentTime.toFixed(2);},_onSeeked:function(){var k={video_seek_source_time_position:this._seekSourceTimePosition};if(this._lastStartTimePosition!==i){k.video_last_start_time_position=this._lastStartTimePosition;}else k.video_last_start_time_position=this._seekSourceTimePosition;this._logEvent(h.SCRUBBED,k);var l=this.getVideoElement();if(l.paused){this._lastStartTimePosition=i;}else this._lastStartTimePosition=l.currentTime;this._seekSourceTimePosition=i;this._seeking=false;},_onSeeking:function(){if(!this._seeking){this._seekSourceTimePosition=this.getVideoElement().currentTime.toFixed(2);this._seeking=true;}},_onTimeUpdate:function(){var k=this.getVideoElement();if(!k.paused)this._lastPlayedTime=k.currentTime.toFixed(2);},_onVolumeChange:function(){var k=this.getVideoElement(),l={},event=null;if(k.muted!==this._muted&&k.volume===this._volume&&k.volume>0){event=k.muted?h.MUTED:h.UNMUTED;}else{event=k.volume>this._volume?h.VOLUME_INCREASE:h.VOLUME_DECREASE;l.current_volume=k.volume;}this._logEvent(event,l);this._muted=k.muted;this._volume=k.volume;}};e.exports=j;},null);
__d("VideoPlayerLoggerErrors",[],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();e.exports={ENTERED_FALLBACK:'entered_fallback',ERROR_CALLING_FLASH:'error_calling_flash'};},null);
__d("VideoPlayerLoggerErrorStates",[],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();e.exports={PLAYBACK_FAILURE:'playback_failure',PLAYER_FAILURE:'player_failure'};},null);
__d("VideoPlayerLoggerFallbackReasons",[],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();e.exports={TIMEOUT:'timeout',FLASH_ERROR:'flash_error',FLASH_UNAVAILABLE:'flash_unavailable'};},null);
__d("VideoPlayerLoggerPlayerStates",[],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();e.exports={STARTED:'started',UNPAUSED:'unpaused'};},null);
__d("VideoPlayerLogger",["Banzai","ErrorUtils","TimeSpentImmediateActiveSecondsLogger","VideoPlayerLoggerEvents","VideoPlayerLoggerErrors","VideoPlayerLoggerErrorStates","VideoPlayerLoggerFallbackReasons","VideoPlayerLoggerSource","VideoPlayerInitializationEvents","VideoPlayerLoggerPlayerStates","copyProperties","ex"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){b.__markCompiled&&b.__markCompiled();var s='video_player';function t(u,v){"use strict";this.$VideoPlayerLogger0=u;this.$VideoPlayerLogger1=null;this.$VideoPlayerLogger2={};this.$VideoPlayerLogger3=v;this.$VideoPlayerLogger4=0;this.$VideoPlayerLogger5();}t.prototype.logEvent=function(event,u){"use strict";q(u,this.$VideoPlayerLogger3);if(this.$VideoPlayerLogger2.hasOwnProperty(event)){u.initial_event=false;}else u.initial_event=this.$VideoPlayerLogger2[event]=true;if(!u.hasOwnProperty('time_ms'))u.time_ms=Date.now();if(!u.hasOwnProperty('time'))u.time=Math.round(u.time_ms/1000);if(this.$VideoPlayerLogger1)q(u,this.$VideoPlayerLogger1);switch(event){case o.PLAYER_INITIALIZATION:this.$VideoPlayerLogger6=u.time_ms;break;case o.REQUESTED_PLAYING:case o.STARTED_PLAYING:case o.PLAYER_ALLOCATED:case o.PLAYER_SENT_REQUEST:case o.PLAYER_RECEIVED_FIRST_BYTE:case o.BUFFER_READY:case o.METADATA_READY:if(!u.initial_event)break;u.elapsed_time_since_init=Date.now()-this.$VideoPlayerLogger6;break;}switch(event){case j.REQUESTED_PLAYING:this.$VideoPlayerLogger5();this.$VideoPlayerLogger7();this.$VideoPlayerLogger8=true;if(this.$VideoPlayerLogger2[j.STARTED_PLAYING]){u.state=p.UNPAUSED;}else u.state=p.STARTED;break;case j.STARTED_PLAYING:case j.UNPAUSED:case j.FINISHED_PLAYING:case j.CANCELLED_REQUESTED_PLAYING:case j.ERROR:case j.PAUSED:if(event===j.ERROR&&u.state!==l.PLAYBACK_FAILURE)break;if(event===j.CANCELLED_REQUESTED_PLAYING)if(this.$VideoPlayerLogger2[j.STARTED_PLAYING]){u.state=p.UNPAUSED;}else u.state=p.STARTED;if(this.$VideoPlayerLogger8)this.$VideoPlayerLogger9();this.$VideoPlayerLoggera(u);this.$VideoPlayerLogger5();break;}var v={logData:u,event:event,scriptPath:this.$VideoPlayerLoggerb,source:this.$VideoPlayerLogger0};if(!event)h.reportError(new Error(r('VideoPlayerLogger: Missing event name')),false);if(this.$VideoPlayerLogger0===n.ANIMATED_IMAGE_SHARE)return;if(u.ad_client_token){g.post(s,v,g.VITAL);}else g.post(s,v);if(event===j.FINISHED_PLAYING||event===j.PAUSED){var w=u.time_ms||Date.now(),x=u.video_time_position-u.video_last_start_time_position;if(x>=0)i.maybeReportActiveInterval('video',w-Math.floor(x*1000),w);}};t.prototype.setScriptPath=function(u){"use strict";this.$VideoPlayerLoggerb=u;};t.prototype.setFTData=function(u){"use strict";this.$VideoPlayerLogger1=u;};t.prototype.startBuffering=function(){"use strict";this.$VideoPlayerLogger7();};t.prototype.endBuffering=function(){"use strict";if(this.$VideoPlayerLoggerc>0)this.$VideoPlayerLogger9();};t.prototype.$VideoPlayerLogger7=function(){"use strict";this.$VideoPlayerLoggerc=Date.now();};t.prototype.$VideoPlayerLogger9=function(){"use strict";var u=(Date.now()-this.$VideoPlayerLoggerc);this.$VideoPlayerLoggerd=this.$VideoPlayerLoggerd+u;this.$VideoPlayerLogger4=this.$VideoPlayerLogger4+u;this.$VideoPlayerLoggere++;};t.prototype.getCurrentStallTime=function(){"use strict";return this.$VideoPlayerLogger4;};t.prototype.$VideoPlayerLoggera=function(u){"use strict";u.stall_time=Math.max(0,this.$VideoPlayerLoggerd);u.stall_count=this.$VideoPlayerLoggere;};t.prototype.$VideoPlayerLogger5=function(){"use strict";this.$VideoPlayerLoggerd=0;this.$VideoPlayerLoggerc=0;this.$VideoPlayerLoggere=0;this.$VideoPlayerLogger8=false;};q(t,{Sources:n,Errors:k,FallbackReasons:m,ErrorStates:l,PlayerStates:p});e.exports=t;},null);
__d("XPubcontentRelatedVideoInlineController",["XController"],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();e.exports=b("XController").create("\/pubcontent\/related_video_inline\/",{fbvideo_id:{type:"Int",required:true},root_video_id:{type:"Int"}});},null);
__d("EntstreamAttachmentRelatedFBVideo",["Arbiter","AsyncRequest","AttachmentRelatedShareConstants","csx","cx","CSS","DOM","DOMQuery","Event","ge","Parent","VideoPlayerReason","XPubcontentRelatedVideoInlineController"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s){b.__markCompiled&&b.__markCompiled();var t={addHoverListener:function(u,v){var w=p(v),x=m.scry(w,"^div._3f-c")[0];o.listen(x,'mouseover',this.doHover.bind(this,u));o.listen(x,'mouseout',this.doHoverOut.bind(this,u));},addClickOutListener:function(u,v){var w=p(v);o.listen(w,'click',this.doHoverOut.bind(this,u));},doHover:function(u){u.play(r.USER);u.mute();},doHoverOut:function(u,v){u.pause(r.USER);},loadRelatedLSCInlineFBVideoAttachmentInRelatedCard:function(u,v,w,x,y,z){var aa=null;if(typeof v==='string'){aa=p(v);}else aa=v;if(!aa)return;var ba=null;if(typeof u==='string'){ba=p(u);}else ba=u;if(!ba)return;o.listen(ba,'click',function(event){var ca=event.srcElement?event.srcElement:event.target;if(ca)for(var da in z){var ea=p(z[da]);if(ea&&n.contains(ea,ca))return;}if(event.isDefaultRequested())return;event.preventDefault();var fa=null;if(y){var ga=m.scry(aa,"^ul._5h5a")[0];if(!ga)return;fa=ga.previousSibling;}else fa=ba.children[0];setTimeout(function(){var ha=s.getURIBuilder();ha.setInt('fbvideo_id',w);ha.setInt('root_video_id',x);new h().setURI(ha.getURI()).setRelativeTo(fa).send();},1000);});},loadRelatedLSCInlineFBVideoAttachment:function(u,v,w){var x=null;if(!x)return;o.listen(x,'click',function(event){if(event.isDefaultRequested())return;event.preventDefault();var y="^div._4-u2",z="_4zdu",aa=m.scry(x,y),ba=aa.length===1?aa[0]:null,ca=ba.parentNode,da=ca.previousSibling;while(!da){ca=ca.parentNode;da=ca.previousSibling;}if(!l.hasClass(da,z)){var ea=m.create('div',{className:z}),fa=m.insertBefore(ba.parentNode,ea),ga=fa.length>=1?fa[0]:null;}else ga=da;if(ga.childNodes[0])l.hide(ga.childNodes[0]);var ha="div._4icy",ia=m.scry(ca,ha)[0];if(ia){var ja="_4icx";l.setClass(ia,ja);}setTimeout(function(){var ka=s.getURIBuilder();ka.setInt('fbvideo_id',v);new h().setURI(ka.getURI()).setRelativeTo(ga).send();if(w)g.inform(i.FBVIDEO_CLICK,{attachment:x,fbvideo_id:v,continued_chaining:true});if(ia)if(w){m.remove(ia);}else l.setClass(ia,"_4icy");},1000);});},loadRelatedFBVideos:function(u,v){var w=p(u);if(!w)return;var x="_4zdu",y=q.byClass(w,x);if(y)return;var z=o.listen(w,'click',function(){z.remove();g.inform(i.FBVIDEO_CLICK,{attachment:w,fbvideo_id:v});});}};e.exports=t;},null);
__d("flash-js",["copyProperties"],function(a,b,c,d,e,f,g){b.__markCompiled&&b.__markCompiled();function h(){}g(h,{INIT:'flash/init',READY:'flash/ready',FAILED:'flash/failed'});e.exports=h;},null);
__d("legacy:flash-js",["flash-js"],function(a,b,c,d){b.__markCompiled&&b.__markCompiled();a.Flash=b('flash-js');},3);
__d("getLayoutRoot",["DOMQuery","csx"],function(a,b,c,d,e,f,g,h){b.__markCompiled&&b.__markCompiled();var i=null;function j(){if(!i)i=g.scry(document.body,"._li")[0];return i;}e.exports=j;},null);
__d("SpotlightViewerUnmountOnClose",[],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();function g(h){"use strict";this.$SpotlightViewerUnmountOnClose0=h;}g.prototype.enable=function(){"use strict";this.$SpotlightViewerUnmountOnClose1=this.$SpotlightViewerUnmountOnClose0.subscribeOnce('close',this.$SpotlightViewerUnmountOnClose0.unmountComponent.bind(this.$SpotlightViewerUnmountOnClose0));};g.prototype.disable=function(){"use strict";this.$SpotlightViewerUnmountOnClose1&&this.$SpotlightViewerUnmountOnClose1.unsubscribe();delete this.$SpotlightViewerUnmountOnClose1;};e.exports=g;},null);
__d("CurationCaretNux",["csx","cx","ge","tidyEvent","AsyncRequest","CSS","DataStore","DOM","Event","Parent","Rect"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){b.__markCompiled&&b.__markCompiled();var r="div._1zpr",s="_5jmm",t='CurationCaretNux_instance',u='CurationCaretNux_caretMenuLoaded',v=100,w="caret_nux",x="save_option_nux",y="seen",z="dismissed",aa="focus",ba="click",ca="scroll",da=false;function ea(fa,ga,ha,ia){"use strict";var ja=i(ia);if(ja){this.container=ja;this.caret=ha;this.caretNux=fa.instance;this.caretNuxData=fa;this.saveOptionNux=ga.instance;this.saveOptionNuxData=ga;this.popoverTriggered=false;var ka=p.byClass(ja,s);m.set(ka,t,this);this.$CurationCaretNux0();}}ea.prototype.$CurationCaretNux0=function(){"use strict";var fa=n.scry(this.container,r);if(fa.length>0)j([o.listen(fa[0],'click',function(){if(da)return;this.caretNux.subscribe('show',function(){this.$CurationCaretNux1();}.bind(this));this.caretNux.subscribe('hide',function(){this.$CurationCaretNux2();if(da){this.$CurationCaretNux3(w,y);this.$CurationCaretNux3(w,z);}}.bind(this));this.$CurationCaretNux4();this.interactionTime=0;setTimeout(function(){if(!this.$CurationCaretNux5()){da=true;this.caretNux.show();}}.bind(this),this.caretNuxData.min_consume_duration);setTimeout(function(){if(!this.$CurationCaretNux5()){da=false;this.caretNux.hide();}}.bind(this),this.caretNuxData.max_consume_duration);var ga=Date.now();setTimeout(function(){this.$CurationCaretNux6(function(){if(!this.interactionTime)this.interactionTime=Date.now()-ga;}.bind(this));}.bind(this),0);}.bind(this))]);};ea.prototype.$CurationCaretNux5=function(){"use strict";return this.interactionTime&&this.interactionTime>0;};ea.prototype.$CurationCaretNux1=function(){"use strict";this.caretClickListener=o.listen(this.caret,'click',function(){this.caretNux.hide();if(this.saveOptionNux){this.popoverTriggered=true;this.$CurationCaretNux7();}}.bind(this));var fa=false;this.$CurationCaretNux6(function(ga){if(fa||ga===ba||!this.caretNux.isShown())return;var ha=q.getViewportWithoutScrollbarsBounds(),ia=q.getElementBounds(this.caretNux.getContentRoot());ia=ia.sub(0,v);if(ha.contains(ia)){this.$CurationCaretNux3(w,y);fa=true;}}.bind(this));};ea.prototype.$CurationCaretNux2=function(){"use strict";this.caretClickListener.remove();this.$CurationCaretNux8();};ea.prototype.$CurationCaretNux7=function(){"use strict";if(this.$CurationCaretNux9()&&this.popoverTriggered)setTimeout(function(){var fa=n.scry(document,"li.save_caret_menu_item");for(var ga=0;ga<fa.length;ga++){var ha=fa[ga],ia=p.byClass(ha,"uiLayer");if(ia&&l.shown(ia)){this.saveOptionNux.setContext(ha);break;}}this.saveOptionNux.show();this.$CurationCaretNux3(x,y);var ja=m.get(this.caret,'Popover');ja&&ja.subscribeOnce('hide',function(){this.saveOptionNux.hide();}.bind(this));}.bind(this),0);};ea.prototype.$CurationCaretNux3=function(fa,ga){"use strict";var ha;if(fa===w){ha=this.caretNuxData;}else if(fa===x){ha=this.saveOptionNuxData;}else throw "Invalid nux type";var ia;if(ga===y){ia=ha.seen_uri;ha.seen_uri=null;}else if(ga===z){ia=ha.dismiss_uri;ha.dismiss_uri=null;}else throw "Invalid impression type";if(ia){var ja=new k(ia);if(this.interactionTime&&fa===w)ja.setData({interaction_time:this.interactionTime});ja.send();}};ea.prototype.$CurationCaretNux6=function(fa){"use strict";this.$CurationCaretNuxa.push(fa);};ea.prototype.$CurationCaretNuxb=function(fa){"use strict";this.$CurationCaretNuxa.forEach(function(ga){ga.call(this,fa);},this);};ea.prototype.$CurationCaretNux4=function(){"use strict";if(!this.$CurationCaretNuxc){this.$CurationCaretNuxa=[];this.$CurationCaretNuxc=[o.listen(window,'click',this.$CurationCaretNuxb.bind(this,ba)),o.listen(window,'focus',this.$CurationCaretNuxb.bind(this,aa)),o.listen(window,'scroll',this.$CurationCaretNuxb.bind(this,ca))];}};ea.prototype.$CurationCaretNux8=function(fa){"use strict";if(this.$CurationCaretNuxc){while(this.$CurationCaretNuxc.length)this.$CurationCaretNuxc.pop().remove();this.$CurationCaretNuxc=null;this.$CurationCaretNuxa=null;}};ea.prototype.$CurationCaretNux9=function(){"use strict";var fa=p.byClass(this.container,s);return m.get(fa,u)===true;};ea.saveOptionLoaded=function(fa){"use strict";var ga=i(fa);if(ga){var ha=p.byClass(ga,s);m.set(ha,u,true);var ia=m.get(ha,t);ia&&ia.$CurationCaretNux7();}};e.exports=ea;},null);
__d("legacy:swfobject",["swfobject"],function(a,b,c,d,e,f,g){b.__markCompiled&&b.__markCompiled();a.deconcept=g;a.SWFObject=g.SWFObject;a.showFlashErrorDialog=g.showFlashErrorDialog;},3);
__d("VideoChannelViewChainLengthManager",["guid"],function(a,b,c,d,e,f,g){b.__markCompiled&&b.__markCompiled();var h={generateNewSessionID:function(){this._currentSessionID=g();},getLoggingData:function(){return {video_chaining_depth_level:this.getCurrentChainLength(),video_chaining_session_id:this.getCurrentSessionID()};},registerChainingInfos:function(i,j){var k=i;if(j){var l=j.decode();k=l.root_id;}if(k)k=k.toString();this.registerVideoID(k,i);},registerVideoID:function(i,j){var k=0;if(i!==j)k=1;if(!this._currentRootVideoID||this._currentRootVideoID!==i){this.generateNewSessionID();this._currentRootVideoID=i;this._chainLength=k;}else if(this._currentVideoID!==j)this.incrementChainLength();this._currentVideoID=j;},incrementChainLength:function(){this._chainLength=this._chainLength+1;},getCurrentSessionID:function(){return this._currentSessionID;},getCurrentChainLength:function(){if(this._chainLength===(void 0)){return null;}else return this._chainLength;}};e.exports=h;},null);
__d("VideoAutoplayControllerX",["DOMDimensions","Event","SubscriptionsHandler","VideoPlayerReason","Visibility","destroyOnUnload","throttle"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){b.__markCompiled&&b.__markCompiled();var n=null,o=500;function p(){"use strict";this.$VideoAutoplayControllerX0=null;this.$VideoAutoplayControllerX1=null;this.$VideoAutoplayControllerX2=new i();this.$VideoAutoplayControllerX3=new i();this.$VideoAutoplayControllerX4=[];this.setAutoplayInterval(o);l(function(){this.$VideoAutoplayControllerX5();if(this===n)n=null;}.bind(this));}p.prototype.setAutoplayInterval=function(q){"use strict";if(q===this.$VideoAutoplayControllerX6)return;this.$VideoAutoplayControllerX6=q;this.$VideoAutoplayControllerX7();};p.registerVideoUnit=function(q){"use strict";if(n==null)n=new p();n.$VideoAutoplayControllerX8();n.$VideoAutoplayControllerX4.push(q);if(q.isVisible())n.$VideoAutoplayControllerX9();};p.prototype.$VideoAutoplayControllerX5=function(){"use strict";this.$VideoAutoplayControllerX2.release();this.$VideoAutoplayControllerX3.release();this.$VideoAutoplayControllerXa.remove();this.$VideoAutoplayControllerXa=null;};p.prototype.$VideoAutoplayControllerX8=function(){"use strict";if(!this.$VideoAutoplayControllerX4.length){this.$VideoAutoplayControllerX3.addSubscriptions(h.listen(window,'resize',this.$VideoAutoplayControllerX9.bind(this)),h.listen(window,'blur',this.$VideoAutoplayControllerXb.bind(this)),h.listen(window,'focus',this.$VideoAutoplayControllerXc.bind(this)),k.addListener(k.HIDDEN,this.$VideoAutoplayControllerXb.bind(this)),k.addListener(k.VISIBLE,this.$VideoAutoplayControllerXc.bind(this)));if(!this.$VideoAutoplayControllerXa)this.$VideoAutoplayControllerX7();}};p.prototype.$VideoAutoplayControllerX7=function(){"use strict";if(this.$VideoAutoplayControllerXa)this.$VideoAutoplayControllerXa.remove();this.$VideoAutoplayControllerXa=h.listen(window,'scroll',m(this.$VideoAutoplayControllerX9.bind(this),this.$VideoAutoplayControllerX6));};p.prototype.$VideoAutoplayControllerXd=function(){"use strict";var q=[];this.$VideoAutoplayControllerX4.forEach(function(r){if(r.isVisible()){q.push(r);if(!r.wasVisible){r.wasVisible=true;r.logDisplayed();}}else r.wasVisible=false;});return q;};p.prototype.$VideoAutoplayControllerXb=function(){"use strict";if(!this.$VideoAutoplayControllerX0){this.$VideoAutoplayControllerX0=this.$VideoAutoplayControllerX1;this.$VideoAutoplayControllerXe(j.PAGE_VISIBILITY);}};p.prototype.$VideoAutoplayControllerXc=function(){"use strict";if(this.$VideoAutoplayControllerX0){this.$VideoAutoplayControllerX1=this.$VideoAutoplayControllerX0;this.$VideoAutoplayControllerX0=null;this.$VideoAutoplayControllerX1.playWithoutUnmute(j.PAGE_VISIBILITY);}};p.prototype.$VideoAutoplayControllerXe=function(q){"use strict";if(this.$VideoAutoplayControllerX1){this.$VideoAutoplayControllerX1.pause(q);this.$VideoAutoplayControllerX1=null;}};p.prototype.$VideoAutoplayControllerXf=function(){"use strict";if(this.$VideoAutoplayControllerX1.addListener){this.$VideoAutoplayControllerX2.release();this.$VideoAutoplayControllerX2.engage();this.$VideoAutoplayControllerX2.addSubscriptions.apply(this.$VideoAutoplayControllerX2,['finishPlayback','turnOffAutoplay'].map(function(event){return this.$VideoAutoplayControllerX1.addListener(event,function(){this.$VideoAutoplayControllerX2.release();this.$VideoAutoplayControllerX1=null;}.bind(this));}.bind(this)));}};p.prototype.$VideoAutoplayControllerX9=function(){"use strict";var q=this.$VideoAutoplayControllerXd(),r=q.length,s=null;if(r==1){s=q[0];s=s.isAutoplayable()?s:null;}else if(r>1){var t=g.getViewportDimensions().height/2;q.forEach(function(u){if(!u.isAutoplayable())return;var v=u.getDOMPosition(),w=v.y+v.height/2,x=Math.abs(w-t);u.playPriority=x;if(!s||u.playPriority<s.playPriority)s=u;});}if(this.$VideoAutoplayControllerX1){if(s!=this.$VideoAutoplayControllerX1){this.$VideoAutoplayControllerXe(j.AUTOPLAY);this.$VideoAutoplayControllerX1=s;if(this.$VideoAutoplayControllerX1){this.$VideoAutoplayControllerXf();this.$VideoAutoplayControllerX1.playWithoutUnmute(j.AUTOPLAY);}}}else if(s){this.$VideoAutoplayControllerX1=s;this.$VideoAutoplayControllerXf();this.$VideoAutoplayControllerX1.playWithoutUnmute(j.AUTOPLAY);}};e.exports=p;},null);
__d("VideoPlayerAdditionalLogDataGetter",[],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();function g(h){"use strict";if(typeof h==='function'){this.$VideoPlayerAdditionalLogDataGetter0=null;this.$VideoPlayerAdditionalLogDataGetter1=h;}else{this.$VideoPlayerAdditionalLogDataGetter0=h;this.$VideoPlayerAdditionalLogDataGetter1=null;}}g.prototype.get=function(){"use strict";if(this.$VideoPlayerAdditionalLogDataGetter1)return this.$VideoPlayerAdditionalLogDataGetter1();return this.$VideoPlayerAdditionalLogDataGetter0;};e.exports=g;},null);
__d("VideoPlayerApiEvents",[],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();var g=['buffered','buffering','beginPlayback','updateStatus','logEvent','pausePlayback','clickForTracking','finishPlayback','unmuteVideo','muteVideo','changeVolume','turnOffAutoplay','expandVideo','updateBuffer','updateMetadata','qualityChange','error'];e.exports=g;},null);
__d("SpotlightVideoDimensions",["PhotoViewerDimensions","Vector"],function(a,b,c,d,e,f,g,h){b.__markCompiled&&b.__markCompiled();var i=520;function j(k){"use strict";this.$SpotlightVideoDimensions0=new g();this.$SpotlightVideoDimensions1=k;}j.prototype.getStageAndVideoDimensions=function(k){"use strict";var l=this.$SpotlightVideoDimensions0.getMaxStageDimensions(),m=this.$SpotlightVideoDimensions0.getImageDimensionsForStage(k,l.sub(this.$SpotlightVideoDimensions1,0)),n=new h(m.x+this.$SpotlightVideoDimensions1,Math.max(m.y,i));return {stageDimensions:n,videoDimensions:m};};e.exports=j;},null);
__d("VideoSpotlight",["LayerHideOnBlur","LayerHideOnEscape","ReactLayer","Spotlight","cx","getLayoutRoot","invariant"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){b.__markCompiled&&b.__markCompiled();var n=i.createClass({getDefaultEnabledBehaviors:function(){return {hideOnBlur:g,hideOnEscape:h};},createLayer:function(o){m(l());var p=this.enumerateBehaviors(this.props.behaviors),q={addedBehaviors:p,rootClassName:"_5v-m"},r=new j(q,o);r.conditionShow(this.props.shown);r.setInsertParent(l());if(this.props.onHide)r.subscribe('hide',this.props.onHide);return r;},receiveProps:function(o){this.layer.conditionShow(o.shown);}});e.exports=n;},null);
__d("SpotlightVideoViewer",["ArbiterMixin","BehaviorsMixin","Event","React","ReactLayeredComponentMixin","SpotlightVideoDimensions","SpotlightViewerClose","SpotlightViewerUnmountOnClose","SpotlightViewport","SubscriptionsHandler","Style","Vector","VideoSpotlight","cx","getViewportDimensions","invariant"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v){b.__markCompiled&&b.__markCompiled();var w=360,x=j.createClass({displayName:"SpotlightVideoViewer",mixins:[g,h,k],behaviors:[n],componentWillMount:function(){this.enableBehaviors(this.behaviors);},componentDidMount:function(){this._subscriptions.addSubscriptions(i.listen(window,'resize',this._onResize));this._popOutVideo();},componentWillUnmount:function(){this._subscriptions.release();this.destroyBehaviors();},getInitialState:function(){this._dimensions=new l(w);this._originalDimensions=new r(this.props.videoElement.offsetWidth,this.props.videoElement.offsetHeight);this._targetDimensions=this._originalDimensions.mul(2);this._subscriptions=new p();return {dimensions:this._dimensions.getStageAndVideoDimensions(this._targetDimensions)};},renderLayers:function(){var y={height:this.state.dimensions.stageDimensions.y+'px'};return {videoLayer:j.createElement(s,{onHide:this._popInVideo,shown:true},j.createElement("div",{className:"_n3"},j.createElement(o,{stageDimensions:this.state.dimensions.stageDimensions},j.createElement(m,{onClick:this._handleClose}),j.createElement("div",{className:"rfloat _5xg6",style:y},j.createElement("div",{className:"_5xg7"},' ',"UFI Section",' ')))))};},render:function(){return j.createElement("div",null);},_handleClose:function(){this.inform('close');},_onResize:function(){this.setState({dimensions:this._dimensions.getStageAndVideoDimensions(this._targetDimensions)});this._repositionVideo();},_popOutVideo:function(){v(this.props.videoElement);q.apply(this.props.videoElement,{position:'fixed','z-index':'401'});this._repositionVideo();},_popInVideo:function(){this._handleClose();v(this.props.videoElement);var y=this._originalDimensions.x,z=this._originalDimensions.y;q.apply(this.props.videoElement,{left:0,height:z+'px',position:'static',top:0,width:y+'px','z-index':'auto'});q.apply(this.props.swfElement,{height:z+'px',width:y+'px'});},_repositionVideo:function(){var y=u.withoutScrollbars(),z=this.state.dimensions.videoDimensions.y,aa=this.state.dimensions.videoDimensions.x-1,ba=y.width/2-this.state.dimensions.stageDimensions.x/2+1,ca=y.height/2-z/2;q.apply(this.props.videoElement,{height:z+'px',left:ba+'px',top:ca+'px',width:aa+'px'});q.apply(this.props.swfElement,{height:z+'px',width:aa+'px'});}});e.exports=x;},null);
__d("VideoViewer",["DOM","React","SpotlightVideoViewer"],function(a,b,c,d,e,f,g,h,i){b.__markCompiled&&b.__markCompiled();var j={_viewerContainer:null,bootstrapWithElement:function(k,l){var m=h.createElement(i,{swfElement:l,videoElement:k});j.renderViewer(m);},renderViewer:function(k){if(!this._viewerContainer){this._viewerContainer=g.create('div');document.body.appendChild(this._viewerContainer);}k=h.render(k,this._viewerContainer);k.subscribeOnce('close',function(){g.empty(this._viewerContainer);}.bind(this));}};e.exports=j;},null);
__d("logVideosClickTracking",["clickRefAction"],function(a,b,c,d,e,f,g){b.__markCompiled&&b.__markCompiled();function h(i){g('click',i,null,'FORCE');}e.exports=h;},null);
__d("VideoInlinePlayerController",["Arbiter","AttachmentRelatedShareConstants","CSS","DOM","DOMDimensions","Event","EventEmitter","LitestandStoryInsertionStatus","Run","SubscriptionsHandler","VideoAutoplayPlayButton","VideoPlayerAdditionalLogDataGetter","VideoPlayerApiEvents","VideoPlayerLoggerEvents","VideoPlayerLoggerErrors","VideoPlayerLoggerErrorStates","VideoPlayerLoggerFallbackReasons","VideoViewer","cx","logVideosClickTracking","VideoPlayerReason"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa){b.__markCompiled&&b.__markCompiled();var ba=1,ca=100,da=10000;for(var ea in m)if(m.hasOwnProperty(ea))ga[ea]=m[ea];var fa=m===null?null:m.prototype;ga.prototype=Object.create(fa);ga.prototype.constructor=ga;ga.__superConstructor__=m;function ga(ha,ia){"use strict";fa.constructor.call(this);this.$VideoInlinePlayerController0=ia;this.$VideoInlinePlayerController1=ha;this.$VideoInlinePlayerController2=this.isAutoplayable();this.$VideoInlinePlayerController3=new p();this.$VideoInlinePlayerController4=null;o.onLeave(function(){this.$VideoInlinePlayerController3.release();}.bind(this));this.$VideoInlinePlayerController5=false;if(q.getClicked(ia.flash_id))this.$VideoInlinePlayerController5=true;this.$VideoInlinePlayerController6=ia.controller;this.$VideoInlinePlayerController6.setAdditionalLogDataGetter(new r(function(){return {autoplay_eligible:this.isAutoplayable()};}.bind(this)));if(this.$VideoInlinePlayerController6.isImplementationUnavailable())this.$VideoInlinePlayerController7();this.$VideoInlinePlayerController8();if(this.$VideoInlinePlayerController9('fallback'))return;if(this.$VideoInlinePlayerController5)this.$VideoInlinePlayerControllera(aa.USER);this.$VideoInlinePlayerControllerb();q.unregister(this.$VideoInlinePlayerController0.flash_id);if(this.$VideoInlinePlayerController1.thumbnails)this.$VideoInlinePlayerController1.thumbnails.forEach(function(ja){this.$VideoInlinePlayerController3.addSubscriptions(l.listen(ja,'click',function(){return this.$VideoInlinePlayerControllerc();}.bind(this)));}.bind(this));this.$VideoInlinePlayerController3.addSubscriptions(l.listen(this.$VideoInlinePlayerController1.play_icon,'click',function(){return this.$VideoInlinePlayerControllerc();}.bind(this)),n.registerBlocker(function(){return this.$VideoInlinePlayerController9('playing');}.bind(this)));if(this.$VideoInlinePlayerControllerd()){this.$VideoInlinePlayerController1.pivotThumbs.forEach(function(ja){this.$VideoInlinePlayerController3.addSubscriptions(l.listen(ja,'click',function(){this.$VideoInlinePlayerControllere();}.bind(this)));}.bind(this));this.$VideoInlinePlayerController3.addSubscriptions(l.listen(this.$VideoInlinePlayerController1.pivotNextText,'click',function(){this.$VideoInlinePlayerControllerc();}.bind(this)));this.$VideoInlinePlayerController3.addSubscriptions(l.listen(this.$VideoInlinePlayerController1.pivotReplayText,'click',function(){this.$VideoInlinePlayerControllere();}.bind(this)));}}ga.prototype.$VideoInlinePlayerControllerf=function(){"use strict";return !!this.$VideoInlinePlayerController0.show_play_button_on_finish;};ga.prototype.isVisible=function(){"use strict";if(this.$VideoInlinePlayerController6.isFullscreen())return true;var ha=k.getViewportDimensions().height,ia=this.getDOMPosition();if(ia.height===0)return false;var ja=ia.y+(1-ba)*ia.height,ka=ia.y+ba*ia.height;if(ja>=0&&ka<ha)return true;return false;};ga.prototype.$VideoInlinePlayerController7=function(){"use strict";this.$VideoInlinePlayerControllerg(false,w.FLASH_UNAVAILABLE);};ga.prototype.isAutoplayable=function(){"use strict";return this.$VideoInlinePlayerController0.viewport_autoplay&&!this.$VideoInlinePlayerControllerh;};ga.prototype.$VideoInlinePlayerControllera=function(ha){"use strict";if(this.$VideoInlinePlayerController2){this.$VideoInlinePlayerController2=false;this.$VideoInlinePlayerController6.unmute();}this.$VideoInlinePlayerController6.play(ha);};ga.prototype.getCurrentTimePosition=function(){"use strict";return this.$VideoInlinePlayerController6.getCurrentTimePosition();};ga.prototype.playWithoutUnmute=function(ha){"use strict";this.$VideoInlinePlayerController6.play(ha);};ga.prototype.$VideoInlinePlayerControllerc=function(){"use strict";this.$VideoInlinePlayerControllera(aa.USER);z(this.$VideoInlinePlayerController6.getVideoNode());};ga.prototype.$VideoInlinePlayerControllere=function(){"use strict";this.$VideoInlinePlayerController6.previousVideo();this.$VideoInlinePlayerControllera(aa.USER);};ga.prototype.getVideoID=function(){"use strict";return this.$VideoInlinePlayerController6.getVideoID();};ga.prototype.$VideoInlinePlayerControlleri=function(){"use strict";return this.$VideoInlinePlayerController6.getVideoIndex();};ga.prototype.$VideoInlinePlayerControllerj=function(){"use strict";this.$VideoInlinePlayerControllerk();};ga.prototype.$VideoInlinePlayerControllerl=function(){"use strict";i.show(this.$VideoInlinePlayerController1.spinner);};ga.prototype.$VideoInlinePlayerController8=function(){"use strict";var ha=[['expandVideo',function(){return this.$VideoInlinePlayerControllerm();}.bind(this)],['finishPlayback',function(){return this.$VideoInlinePlayerControllern();}.bind(this)],['turnOffAutoplay',function(){return this.$VideoInlinePlayerControllero();}.bind(this)],['unmuteVideo',function(){return this.$VideoInlinePlayerControllerp();}.bind(this)],['stateChange',function(){return this.$VideoInlinePlayerControllerk();}.bind(this)],['switchVideo',function(){return this.$VideoInlinePlayerControllerj();}.bind(this)],['fallbackPlay',function(){return this.$VideoInlinePlayerControllerq();}.bind(this)],['buffered',function(){return this.$VideoInlinePlayerControllerk();}.bind(this)],['buffering',function(){return this.$VideoInlinePlayerControllerk();}.bind(this)],['error',function(){return this.$VideoInlinePlayerControllerr();}.bind(this)],['playRequested',function(){return this.$VideoInlinePlayerControllerl();}.bind(this)]],ia=function(event){return this.emit.bind(this,event);}.bind(this);this.$VideoInlinePlayerController3.addSubscriptions.apply(this.$VideoInlinePlayerController3,ha.map(function(ja){return this.$VideoInlinePlayerController6.addListener.apply(this.$VideoInlinePlayerController6,ja);}.bind(this)).concat(s.map(function(event){return this.$VideoInlinePlayerController6.addListener(event,ia(event));}.bind(this))));};ga.prototype.logDisplayed=function(){"use strict";this.$VideoInlinePlayerController6.logEvent(t.DISPLAYED,{autoplay_reason:this.$VideoInlinePlayerController0.autoplay_reason});};ga.prototype.$VideoInlinePlayerControllerr=function(){"use strict";this.$VideoInlinePlayerControllerg(true,w.FLASH_ERROR);};ga.prototype.$VideoInlinePlayerControllerq=function(){"use strict";var ha={error:u.ENTERED_FALLBACK,error_description:"fallback_reason: "+this.$VideoInlinePlayerController4,state:v.PLAYBACK_FAILURE};this.$VideoInlinePlayerController6.logEvent(t.ERROR,ha);};ga.prototype.$VideoInlinePlayerControllerg=function(ha,ia){"use strict";ha=ha===(void 0)?true:ha;this.$VideoInlinePlayerController4=ia;this.$VideoInlinePlayerControllerh=true;this.$VideoInlinePlayerController6.setState('fallback');this.$VideoInlinePlayerController6.logEvent(t.ENTERED_FALLBACK,{reason:ia,flash_available:ha});};ga.prototype.$VideoInlinePlayerControllerb=function(){"use strict";setTimeout(function(){if(this.$VideoInlinePlayerController9('loading')){this.$VideoInlinePlayerControllerg(true,w.TIMEOUT);this.$VideoInlinePlayerController6.cancelPlayRequest();}}.bind(this),da);};ga.prototype.$VideoInlinePlayerControllerm=function(){"use strict";x.bootstrapWithElement(this.$VideoInlinePlayerController1.video_container,this.$VideoInlinePlayerController6.getVideoNode());};ga.prototype.$VideoInlinePlayerControllerp=function(){"use strict";this.$VideoInlinePlayerControllers();};ga.prototype.$VideoInlinePlayerControllerd=function(){"use strict";return this.$VideoInlinePlayerController6.getVideosCount()>1;};ga.prototype.$VideoInlinePlayerControllern=function(){"use strict";if(this.$VideoInlinePlayerControllerd())this.$VideoInlinePlayerController6.nextVideo();this.$VideoInlinePlayerControllert();};ga.prototype.handleFlashApiFactoryError=function(ha,ia){"use strict";fa.handleFlashApiFactoryError.call(this,ha,ia);this.$VideoInlinePlayerControllerg(true,w.FLASH_ERROR);};ga.prototype.$VideoInlinePlayerControllert=function(){"use strict";this.$VideoInlinePlayerControllerh=true;};ga.prototype.$VideoInlinePlayerControllero=function(){"use strict";this.$VideoInlinePlayerControllert();};ga.prototype.$VideoInlinePlayerControllerk=function(){"use strict";this.$VideoInlinePlayerControlleru();this.$VideoInlinePlayerControllerv();this.$VideoInlinePlayerControllerw();this.$VideoInlinePlayerControllerx();this.$VideoInlinePlayerControllery();this.$VideoInlinePlayerControllerz();};ga.prototype.getDOMPosition=function(){"use strict";return this.$VideoInlinePlayerController6.getDOMPosition();};ga.prototype.pause=function(ha){"use strict";this.$VideoInlinePlayerController6.pause(ha);};ga.prototype.$VideoInlinePlayerControlleru=function(){"use strict";if(this.$VideoInlinePlayerController9('fallback')){this.$VideoInlinePlayerController3.release();var ha=this.$VideoInlinePlayerController1;j.remove(this.$VideoInlinePlayerController6.getVideoNode());j.replace(ha.video_container,ha.fallback_link);j.appendContent(ha.fallback_link,ha.video_container);}};ga.prototype.$VideoInlinePlayerControllerx=function(){"use strict";if(this.$VideoInlinePlayerController9('fallback')||(this.$VideoInlinePlayerController9('loading')&&!this.$VideoInlinePlayerController6.isPlayRequestPending()&&!this.$VideoInlinePlayerController5&&!this.isAutoplayable())||((this.$VideoInlinePlayerController9('ready')||this.$VideoInlinePlayerController9('paused'))&&!this.$VideoInlinePlayerController6.isPlayRequestPending())){i.addClass(this.$VideoInlinePlayerController1.play_icon,"_5vos");}else if(this.$VideoInlinePlayerController9('finished')){if(!this.$VideoInlinePlayerControllerf()){return;}else if(!this.$VideoInlinePlayerControllerd())i.addClass(this.$VideoInlinePlayerController1.play_icon,"_5vos");}else if(!this.$VideoInlinePlayerController9('finished')||!this.$VideoInlinePlayerControllerd()){i.removeClass(this.$VideoInlinePlayerController1.play_icon,"_5vos");i.removeClass(this.$VideoInlinePlayerController1.play_icon,"_5vov");}};ga.prototype.$VideoInlinePlayerControllery=function(){"use strict";if(this.$VideoInlinePlayerController6.isBuffering()||(this.$VideoInlinePlayerController9('loading')&&(this.$VideoInlinePlayerController5||this.isAutoplayable()))||(this.$VideoInlinePlayerController9('ready')&&this.$VideoInlinePlayerController6.isPlayRequestPending())){i.show(this.$VideoInlinePlayerController1.spinner);}else i.hide(this.$VideoInlinePlayerController1.spinner);};ga.prototype.$VideoInlinePlayerControllerz=function(){"use strict";if(!this.$VideoInlinePlayerController1.thumbnails)return;if(this.$VideoInlinePlayerController9('playing')||this.$VideoInlinePlayerController9('paused')){this.$VideoInlinePlayerController1.thumbnails.forEach(function(ha){i.hide(ha);});}else i.show(this.$VideoInlinePlayerController1.thumbnails[this.$VideoInlinePlayerControlleri()]);};ga.prototype.$VideoInlinePlayerControllerw=function(){"use strict";if(!this.$VideoInlinePlayerControllerd())return;var ha=this.$VideoInlinePlayerController1.pivotThumbs;ha.forEach(function(ja){i.removeClass(ja,"_5vlu");i.removeClass(ja,"_5vou");i.addClass(ja,"_5vot");});i.removeClass(this.$VideoInlinePlayerController1.pivotReplayText,"_5vm5");i.removeClass(this.$VideoInlinePlayerController1.pivotNextText,"_5vm5");if(this.$VideoInlinePlayerController9('finished')){var ia=ha[this.$VideoInlinePlayerControllerA()];i.removeClass(ia,"_5vot");i.addClass(ia,"_5vlu");setTimeout(function(){if(!this.$VideoInlinePlayerController9('finished'))return;i.addClass(ia,"_5vou");i.addClass(this.$VideoInlinePlayerController1.pivotReplayText,"_5vm5");i.addClass(this.$VideoInlinePlayerController1.pivotNextText,"_5vm5");i.addClass(this.$VideoInlinePlayerController1.play_icon,"_5vov");}.bind(this),ca);}};ga.prototype.$VideoInlinePlayerControllerv=function(){"use strict";if(!this.$VideoInlinePlayerControllerd())return;var ha=this.$VideoInlinePlayerController1.story_footers;for(var ia=0;ia<ha.length;ia++)i.conditionShow(ha[ia],ia===this.$VideoInlinePlayerControlleri());};ga.prototype.$VideoInlinePlayerControllerB=function(){"use strict";var ha=this.$VideoInlinePlayerControllerC();return (this.$VideoInlinePlayerControlleri()+1)%ha;};ga.prototype.$VideoInlinePlayerControllerA=function(){"use strict";var ha=this.$VideoInlinePlayerControllerC();return (this.$VideoInlinePlayerControlleri()-1+ha)%ha;};ga.prototype.$VideoInlinePlayerControllerC=function(){"use strict";return this.$VideoInlinePlayerController6.getVideosCount();};ga.prototype.$VideoInlinePlayerControllers=function(){"use strict";g.inform(h.FBVIDEO_CLICK,{attachment:this.$VideoInlinePlayerController1.video_container,fbvideo_id:this.$VideoInlinePlayerController0.video_ids[0]});};ga.prototype.$VideoInlinePlayerController9=function(ha){"use strict";return this.$VideoInlinePlayerController6.isState(ha);};e.exports=ga;},null);
__d("XVideoRhcController",["XController"],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();e.exports=b("XController").create("\/video\/righthandcolumn\/",{video_id:{type:"String",required:true}});},null);
__d("VideoRhcController",["AsyncRequest","CSS","DOMDimensions","DockingElement","Event","StickyRHC","SubscriptionsHandler","VideoPlayerReason","ViewportBounds","XVideoRhcController","destroyOnUnload","throttle"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r){b.__markCompiled&&b.__markCompiled();var s=500,t=null;function u(){"use strict";this.$VideoRhcController0=null;this.$VideoRhcController1=new m();this.$VideoRhcController2=null;this.$VideoRhcController3=null;this.$VideoRhcController4=null;this.$VideoRhcController5=null;this.$VideoRhcController6=null;q(function(){if(this.$VideoRhcController5)this.$VideoRhcController5.remove();this.$VideoRhcController0=null;if(this.$VideoRhcController1)this.$VideoRhcController1.release();this.$VideoRhcController1=null;this.$VideoRhcController2=null;this.$VideoRhcController3=null;if(this.$VideoRhcController4)this.$VideoRhcController4.destroy();this.$VideoRhcController4=null;this.$VideoRhcController5=null;this.$VideoRhcController6=null;if(this===t)t=null;}.bind(this));}u.getInstance=function(){"use strict";if(t==null)t=new u();return t;};u.addRhcRootElement=function(v){"use strict";var w=u.getInstance();w.setRhcRootElement(v);};u.initRhcVideoUnit=function(v,w){"use strict";var x=u.getInstance();x.setRhcVideoUnit(v,w);};u.registerVideoUnit=function(v){"use strict";var w=u.getInstance();w.$VideoRhcController7();v.addListener('beginPlayback',function(x){return w.$VideoRhcController8(v,x.reason);});v.addListener('unmuteVideo',function(x){return w.$VideoRhcController9(v);});};u.prototype.setRhcRootElement=function(v){"use strict";this.$VideoRhcController2=v;this.$VideoRhcController4=new j(this.$VideoRhcController2);this.$VideoRhcController4.setOffset(o.getTop());};u.prototype.setRhcVideoUnit=function(v,w){"use strict";this.$VideoRhcController3=v;this.$VideoRhcController6=w;this.$VideoRhcController6.onclick=function(){this.$VideoRhcControllera();}.bind(this);};u.prototype.$VideoRhcController8=function(v,w){"use strict";if(w!==n.USER)return;this.$VideoRhcController9(v);};u.prototype.$VideoRhcController9=function(v){"use strict";this.$VideoRhcController0=v;if(!this.$VideoRhcController0||!this.$VideoRhcController2)return;this.$VideoRhcControllera();var w=p.getURIBuilder().setString('video_id',this.$VideoRhcController0.getVideoID()).getURI();this.request=new g().setMethod('GET').setURI(w).setReadOnly(true).send();this.$VideoRhcControllerb();};u.prototype.$VideoRhcControllerb=function(){"use strict";this.$VideoRhcController1.release();this.$VideoRhcController1.engage();this.$VideoRhcController1.addSubscriptions.apply(this.$VideoRhcController1,['finishPlayback','pausePlayback'].map(function(event){return this.$VideoRhcController0.addListener(event,function(){this.$VideoRhcController1.release();this.$VideoRhcController0=null;}.bind(this));}.bind(this)));};u.prototype.$VideoRhcController7=function(){"use strict";if(this.$VideoRhcController5)return;this.$VideoRhcController5=k.listen(window,'scroll',r(this.$VideoRhcControllerc.bind(this),s));};u.prototype.$VideoRhcControllera=function(){"use strict";var v=i.getElementDimensions(this.$VideoRhcController2).height;if(this.$VideoRhcController2)h.hide(this.$VideoRhcController2);l.getInstances().forEach(function(w){w.setOffset(w.getOffset()-v);});if(this.$VideoRhcController3)this.$VideoRhcController3.pause(n.PAGE_VISIBILITY);};u.prototype.$VideoRhcControllerd=function(){"use strict";if(!this.$VideoRhcController2||h.shown(this.$VideoRhcController2))return;if(this.$VideoRhcController3&&this.$VideoRhcController0){this.$VideoRhcController3.play(n.PAGE_VISIBILITY);this.$VideoRhcController3.once('beginPlayback',function(){this.$VideoRhcController3.seek(this.$VideoRhcController0.getCurrentTimePosition());this.$VideoRhcController0.pause(n.PAGE_VISIBILITY);}.bind(this));h.show(this.$VideoRhcController2);}l.getInstances().forEach(function(v){v.setOffset(v.getOffset()+i.getElementDimensions(this.$VideoRhcController2).height);}.bind(this));};u.prototype.$VideoRhcControllerc=function(){"use strict";if(this.$VideoRhcController0&&this.$VideoRhcController2&&!this.$VideoRhcController0.isVisible())this.$VideoRhcControllerd();};e.exports=u;},null);
__d("VideoFeedRegister",["VideoAutoplayControllerX","VideoInlinePlayerController","VideoRhcController"],function(a,b,c,d,e,f,g,h,i){b.__markCompiled&&b.__markCompiled();var j='video_watch_and_scroll',k={registerVideoUnit:function(l,m,n){var o=new h(l,m);g.registerVideoUnit(o);if(n[j])i.registerVideoUnit(o);}};e.exports=k;},null);
__d("AbstractVideoPlayerApi",["EventEmitter","VideoPlayerApiEvents","arrayContains","invariant"],function(a,b,c,d,e,f,g,h,i,j){b.__markCompiled&&b.__markCompiled();for(var k in g)if(g.hasOwnProperty(k))m[k]=g[k];var l=g===null?null:g.prototype;m.prototype=Object.create(l);m.prototype.constructor=m;m.__superConstructor__=g;function m(){"use strict";l.constructor.call(this);}m.prototype.addListener=function(){"use strict";for(var n=[],o=0,p=arguments.length;o<p;o++)n.push(arguments[o]);return l.addListener.apply(this,n);};m.prototype.emit=function(){"use strict";for(var n=[],o=0,p=arguments.length;o<p;o++)n.push(arguments[o]);return l.emit.apply(this,n);};m.isImplementationUnavailable=function(){"use strict";return true;};e.exports=m;},null);
__d("VideoData",[],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();function g(h){"use strict";this.$VideoData0=h;}g.prototype.hasHD=function(){"use strict";return !!this.$VideoData0.hd_src;};g.prototype.getEncodingTag=function(){"use strict";return this.$VideoData0.encoding_tag;};g.prototype.getVideoID=function(){"use strict";return this.$VideoData0.video_id;};g.prototype.getRotation=function(){"use strict";return this.$VideoData0.rotation;};g.prototype.hasSubtitles=function(){"use strict";return !!this.$VideoData0.subtitles_src;};g.prototype.getSubtitlesSrc=function(){"use strict";return this.$VideoData0.subtitles_src;};g.prototype.getPlayableSrcSD=function(){"use strict";if(this.$VideoData0.sd_src_no_ratelimit)return this.$VideoData0.sd_src_no_ratelimit;return this.$VideoData0.sd_src;};g.prototype.getPlayableSrcHD=function(){"use strict";if(this.$VideoData0.hd_src_no_ratelimit)return this.$VideoData0.hd_src_no_ratelimit;return this.$VideoData0.hd_src;};g.prototype.hasRateLimit=function(){"use strict";return !!this.$VideoData0.sd_src_no_ratelimit;};g.prototype.isHLS=function(){"use strict";return this.$VideoData0.is_hls;};g.prototype.getHDTag=function(){"use strict";return this.$VideoData0.hd_tag;};g.prototype.getSDTag=function(){"use strict";return this.$VideoData0.sd_tag;};e.exports=g;},null);
__d("VideoPlayerFlashApi",["AbstractVideoPlayerApi","Arbiter","DOMQuery","Flash","SubscriptionsHandler","VideoPlayerApiEvents","VideoPlayerLoggerErrors","VideoPlayerLoggerEvents","destroyOnUnload","invariant"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p){b.__markCompiled&&b.__markCompiled();function q(v){if(v.hasAttribute('data-flash'))return v.getAttribute('id');return i.find(v,'div[data-flash]').getAttribute('id');}function r(v){var w=i.scry(v,'embed');if(!w.length)w=i.scry(v,'object');p(w.length);return w[0];}for(var s in g)if(g.hasOwnProperty(s))u[s]=g[s];var t=g===null?null:g.prototype;u.prototype=Object.create(t);u.prototype.constructor=u;u.__superConstructor__=g;function u(v,w){"use strict";t.constructor.call(this);this.$VideoPlayerFlashApi0=r(v);this.$VideoPlayerFlashApi1=q(v);this.$VideoPlayerFlashApi2=false;this.$VideoPlayerFlashApi3=new k();this.$VideoPlayerFlashApi3.addSubscriptions(h.subscribe(l.map(function(x){return 'flash/'+x;}),this.$VideoPlayerFlashApi4.bind(this)));o(function(){return this.$VideoPlayerFlashApi3.release();}.bind(this));this.$VideoPlayerFlashApi5=w;}u.onImplementationReady=function(v,w){"use strict";var x=q(v),y=h.subscribe('flash/ready',function(z,aa){if(aa.divID===x){h.unsubscribeCurrentSubscription();h.releaseCurrentPersistentEvent();w(v);}});o(function(){return y.unsubscribe();});};u.isImplementationUnavailable=function(){"use strict";return !j.isAvailable();};u.prototype.$VideoPlayerFlashApi4=function(v,w){"use strict";if(w.divID!==this.$VideoPlayerFlashApi1)return;var x=v.substr('flash/'.length);switch(x){case 'beginPlayback':this.$VideoPlayerFlashApi6=w.position;this.$VideoPlayerFlashApi7=w.position;this.$VideoPlayerFlashApi2=true;break;case 'updateStatus':this.$VideoPlayerFlashApi7=w.position;break;case 'finishPlayback':this.$VideoPlayerFlashApi7=this.getPlaybackDuration();case 'pausePlayback':this.$VideoPlayerFlashApi2=false;}this.emit(x,w);};u.prototype.pause=function(v){"use strict";for(var w=[],x=1,y=arguments.length;x<y;x++)w.push(arguments[x]);if(v==='unloaded'&&typeof this.$VideoPlayerFlashApi0.pauseVideo!=='function'){if(this.$VideoPlayerFlashApi2)this.emit('logEvent',{logData:{event:n.PAUSED,reason:'unloaded',video_last_start_time_position:this.$VideoPlayerFlashApi6,video_time_position:this.$VideoPlayerFlashApi7}});return;}this.$VideoPlayerFlashApi2=false;this.$VideoPlayerFlashApi8('pauseVideo',[v].concat(w));};u.prototype.play=function(){"use strict";for(var v=[],w=0,x=arguments.length;w<x;w++)v.push(arguments[w]);this.$VideoPlayerFlashApi8('playVideo',v,true);};u.prototype.seek=function(){"use strict";for(var v=[],w=0,x=arguments.length;w<x;w++)v.push(arguments[w]);this.$VideoPlayerFlashApi8('seekVideo',v);};u.prototype.switchVideo=function(){"use strict";for(var v=[],w=0,x=arguments.length;w<x;w++)v.push(arguments[w]);this.$VideoPlayerFlashApi8('switchVideo',v);};u.prototype.unmute=function(){"use strict";for(var v=[],w=0,x=arguments.length;w<x;w++)v.push(arguments[w]);this.$VideoPlayerFlashApi8('unmuteVideo',v);};u.prototype.mute=function(){"use strict";for(var v=[],w=0,x=arguments.length;w<x;w++)v.push(arguments[w]);this.$VideoPlayerFlashApi8('muteVideo',v);};u.prototype.isMuted=function(){"use strict";for(var v=[],w=0,x=arguments.length;w<x;w++)v.push(arguments[w]);return this.$VideoPlayerFlashApi8('isVideoMuted',v);};u.prototype.getPlaybackDuration=function(){"use strict";for(var v=[],w=0,x=arguments.length;w<x;w++)v.push(arguments[w]);return this.$VideoPlayerFlashApi8('getVideoDuration',v);};u.prototype.getVolume=function(){"use strict";for(var v=[],w=0,x=arguments.length;w<x;w++)v.push(arguments[w]);return this.$VideoPlayerFlashApi8('getVideoVolume',v);};u.prototype.setDimensions=function(v,w){"use strict";};u.prototype.getVideoInfo=function(){"use strict";for(var v=[],w=0,x=arguments.length;w<x;w++)v.push(arguments[w]);var y=this.$VideoPlayerFlashApi8('getVideoInfo',v,false);if(y){return JSON.parse(y);}else return null;};u.prototype.setVolume=function(){"use strict";for(var v=[],w=0,x=arguments.length;w<x;w++)v.push(arguments[w]);this.$VideoPlayerFlashApi8('setVolume',v);};u.prototype.hasHD=function(){"use strict";for(var v=[],w=0,x=arguments.length;w<x;w++)v.push(arguments[w]);return this.$VideoPlayerFlashApi8('hasVideoHD',v);};u.prototype.isHD=function(){"use strict";for(var v=[],w=0,x=arguments.length;w<x;w++)v.push(arguments[w]);return this.$VideoPlayerFlashApi8('isVideoHD',v);};u.prototype.toggleHD=function(){"use strict";for(var v=[],w=0,x=arguments.length;w<x;w++)v.push(arguments[w]);this.$VideoPlayerFlashApi8('toggleVideoHD',v);};u.prototype.$VideoPlayerFlashApi8=function(v,w,x){"use strict";try{if(typeof this.$VideoPlayerFlashApi0[v]==='function'){return this.$VideoPlayerFlashApi0[v].apply(this.$VideoPlayerFlashApi0,w);}else throw new Error(v+' is not a valid method on the flash object');}catch(y){if(this.$VideoPlayerFlashApi9)return;this.$VideoPlayerFlashApi9=true;if(this.$VideoPlayerFlashApi5){this.$VideoPlayerFlashApi5(y,x);}else this.emit('error',{error:m.ERROR_CALLING_FLASH,message:y.message,isPlayback:x});this.$VideoPlayerFlashApi9=false;}};e.exports=u;},null);
__d("HTMLMediaElementReadyStates",[],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();var g={HAVE_NOTHING:0,HAVE_METADATA:1,HAVE_CURRENT_DATA:2,HAVE_FUTURE_DATA:3,HAVE_ENOUGH_DATA:4};e.exports=g;},null);
__d("SubRipText",[],function(a,b,c,d,e,f){b.__markCompiled&&b.__markCompiled();function g(q){var r=Number(q.substr(0,q.length-1)),s=q.substr(-1);switch(s){case 's':return r;case 'm':return r*60;case 'h':return r*3600;}var t=q.split(':');r=Number(t[t.length-1].replace(/,/,'.'));if(t.length>1)r+=Number(t[t.length-2])*60;if(t.length>2)r+=Number(t[t.length-3])*3600;return r;}function h(q){var r=q.split(/\r\n|\r|\n/).map(function(w){return w.trim();}),s=[],t=0;do{var u=r.indexOf('',t);if(u<0)u=r.length;var v=j(r.slice(t,u));if(v)s.push(v);t=u+1;}while(t>0&&t<r.length);return s;}function i(q){var r=q.split('-->');if(r.length!=2)return null;var s=g(r[0].trim()),t=g(r[1].trim());if(Number.isNaN(t)||Number.isNaN(s))return null;return {begin:s,end:t};}function j(q){if(q.length<3)return null;var r=k(q[0]),s=i(q[1]);if(!s)return null;return {counter:r,begin:s.begin,end:s.end,text:q.slice(2,6)};}function k(q){return Number(q.trim());}function l(q){var r=q.split('.');if(r[0].length<2)return "0"+r.join('.');return r.join('.');}function m(q){var r=l(Math.floor(q/3600).toString()),s=l(Math.floor(q%3600/60).toString()),t=l((q%60).toFixed(3));return (r+":"+s+":"+t);}function n(q){return (q.counter+"\n"+m(q.begin)+" --> "+m(q.end)+"\n"+q.text.join('\n')+"\n");}function o(q){return ("WEBVTT\n\n"+q.map(function(r){return n(r);}).join('\n'));}function p(q){"use strict";this.$SubRipText0=h(q);this.$SubRipText0.sort(function(r,s){return r.counter-s.counter;});this.$SubRipText1=this.$SubRipText0.map(function(r,s){return s;}).sort(function(r,s){return this.$SubRipText0[r].begin-this.$SubRipText0[s].begin;}.bind(this));this.invalidateCache();}p.prototype.$SubRipText2=function(q){"use strict";return this.$SubRipText0[this.$SubRipText1[q]];};p.prototype.$SubRipText3=function(q){"use strict";var r=this.$SubRipText4;while(r<this.$SubRipText1.length){var s=this.$SubRipText2(r);if(s.begin<=q){this.$SubRipText5.push(s);r++;}else break;}this.$SubRipText4=r;};p.prototype.$SubRipText6=function(q){"use strict";this.$SubRipText5=this.$SubRipText5.filter(function(r){return r.end>q;});};p.prototype.invalidateCache=function(){"use strict";this.$SubRipText7=0;this.$SubRipText5=[];this.$SubRipText4=0;};p.prototype.getSubtitles=function(q){"use strict";if(q<this.$SubRipText7)this.invalidateCache();this.$SubRipText7=q;this.$SubRipText3(q);this.$SubRipText6(q);return this.$SubRipText5.reduce(function(r,s){return r.concat(s.text);},[]);};p.prototype.renderVTT=function(){"use strict";return o(this.$SubRipText0);};e.exports=p;},null);
__d("onCanPlayHTMLMediaElement",["EventListener","HTMLMediaElementReadyStates","invariant","setImmediate"],function(a,b,c,d,e,f,g,h,i,j){b.__markCompiled&&b.__markCompiled();function k(m){return m>=h.HAVE_FUTURE_DATA;}function l(m,n){i(m instanceof window.HTMLMediaElement);if(k(m.readyState))j(n);return g.listen(m,'canplay',n);}l.once=function(m,n){var o=l(m,function(){for(var p=[],q=0,r=arguments.length;q<r;q++)p.push(arguments[q]);o.remove();n.apply(this,p);}.bind(this));};e.exports=l;},null);
__d("supportsHTML5Video",["DOM","memoize"],function(a,b,c,d,e,f,g,h){b.__markCompiled&&b.__markCompiled();e.exports=h(function(){return !!g.create('video').canPlayType;});},null);
__d("VideoPlayerHTML5Api",["AbstractVideoPlayerApi","Arbiter","BlobFactory","CSS","DOM","DOMDimensions","EventListener","HTMLMediaElementReadyStates","HVideoPlayerMixin","SubscriptionsHandler","SubRipText","VideoData","VideoPlayerLoggerEvents","VideoPlayerReason","VideoPlayerVersions","XHRRequest","classWithMixins","cx","getCrossOriginTransport","mixin","setImmediate","onCanPlayHTMLMediaElement","supportsHTML5Video"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca){b.__markCompiled&&b.__markCompiled();var da=a.URL||a.webkitURL;function ea(ma){switch(ma){case 1:return 'The fetching process for the media resource was aborted by the '+'user agent at the users request.';case 2:return 'A network error of some description caused the user agent to '+'stop fetching the media resource, after the resource was '+'established to be usable.';case 3:return 'An error of some description occurred while decoding the '+'media resource, after the resource was established to be usable.';case 4:return 'The media resource indicated by the src attribute was not '+'suitable.';}}function fa(ma){switch(ma){case 1:return 'MEDIA_ERR_ABORTED';case 2:return 'MEDIA_ERR_NETWORK';case 3:return 'MEDIA_ERR_DECODE';case 4:return 'MEDIA_ERR_SRC_NOT_SUPPORTED';default:return 'Error code '+ma+' is unknown';}}function ga(ma){if(ma.readyState>=n.HAVE_METADATA){return ma.muted;}else return !!ma.getAttribute('muted')||ma.muted;}var ha=-1,ia=w(g,z(o));for(var ja in ia)if(ia.hasOwnProperty(ja))la[ja]=ia[ja];var ka=ia===null?null:ia.prototype;la.prototype=Object.create(ka);la.prototype.constructor=la;la.__superConstructor__=ia;function la(ma){"use strict";ka.constructor.call(this);this.$VideoPlayerHTML5Api0=ma;this.$VideoPlayerHTML5Api1=ma.id;var na=l.getElementDimensions(this.$VideoPlayerHTML5Api0);this.$VideoPlayerHTML5Api2=na.width;this.$VideoPlayerHTML5Api3=na.height;this.$VideoPlayerHTML5Api4=JSON.parse(ma.getAttribute('data-config'));this.$VideoPlayerHTML5Api5={};this.$VideoPlayerHTML5Api6=ha;this.$VideoPlayerHTML5Api7=ga(ma);this.$VideoPlayerHTML5Api8=this.$VideoPlayerHTML5Api7;this.$VideoPlayerHTML5Api9=ma.volume;this.$VideoPlayerHTML5Apia=false;this.$VideoPlayerHTML5Apib=ha;this.$VideoPlayerHTML5Apic=null;this.$VideoPlayerHTML5Apid=false;this.$VideoPlayerHTML5Apie=this.$VideoPlayerHTML5Api4.disableNativeControls;this.$VideoPlayerHTML5Apif=ma.controls;this.$VideoPlayerHTML5Apig=this.$VideoPlayerHTML5Api4.subtitlesActive;this.$VideoPlayerHTML5Apih={};this.restoreControls();this.preventPauseLoggingInMixin=false;this.$VideoPlayerHTML5Apii=new p();this.$VideoPlayerHTML5Apij();this.$VideoPlayerHTML5Apik=this.$VideoPlayerHTML5Api4.defaultHD;this.$VideoPlayerHTML5Apil=this.$VideoPlayerHTML5Api4.autoFullscreenHD;this.switchVideo(0);this.initLogger(this.$VideoPlayerHTML5Apim.bind(this));}la.prototype.getAdClientToken=function(){"use strict";this.$VideoPlayerHTML5Api4.ad_client_token;};la.prototype.getVideoID=function(){"use strict";if(this.$VideoPlayerHTML5Apin)return this.$VideoPlayerHTML5Apin.getVideoID();return this.$VideoPlayerHTML5Api4.video_id;};la.prototype.getDOMElement=function(){"use strict";return this.$VideoPlayerHTML5Api0;};la.prototype.getVideoElement=function(){"use strict";return this.$VideoPlayerHTML5Api0;};la.prototype.getSubscriptions=function(){"use strict";return this.$VideoPlayerHTML5Apii;};la.onImplementationReady=function(ma,na){"use strict";aa(na);};la.prototype.getVideoInfo=function(){"use strict";if(!this.$VideoPlayerHTML5Apin)return null;return {isHLS:this.$VideoPlayerHTML5Apin.isHLS(),isHD:this.$VideoPlayerHTML5Apik,hasHD:this.$VideoPlayerHTML5Apin.hasHD(),resourceUrl:this.$VideoPlayerHTML5Apio(),subtitles:this.$VideoPlayerHTML5Apin.hasSubtitles(),hasUnlimitedSrc:this.$VideoPlayerHTML5Apin.hasRateLimit(),useUnlimitedSrc:false,tagSD:this.$VideoPlayerHTML5Apin.getSDTag(),tagHD:this.$VideoPlayerHTML5Apin.getHDTag()};};la.isImplementationUnavailable=function(){"use strict";return !ca();};la.prototype.pause=function(ma){"use strict";this.$VideoPlayerHTML5Apic=ma;if(ma==='unloaded'&&!this.$VideoPlayerHTML5Api0.paused){this.$VideoPlayerHTML5Apim(s.PAUSED,this.addWatchTimeData({reason:'unloaded'}));this.preventPauseLoggingInMixin=true;}this.$VideoPlayerHTML5Apid=false;this.$VideoPlayerHTML5Api0.pause();};la.prototype.play=function(ma){"use strict";if(!this.$VideoPlayerHTML5Apip)this.$VideoPlayerHTML5Apip=ma;this.$VideoPlayerHTML5Apiq=ma;if(ma===t.USER&&this.$VideoPlayerHTML5Api8)this.unmute();this.$VideoPlayerHTML5Apid=true;if(!this.$VideoPlayerHTML5Api0.paused)return this.$VideoPlayerHTML5Apir();if(this.$VideoPlayerHTML5Api0.readyState>=n.HAVE_METADATA||this.$VideoPlayerHTML5Api0.currentTime>0){this.$VideoPlayerHTML5Api0.play();}else{ba.once(this.$VideoPlayerHTML5Api0,function(){if(this.$VideoPlayerHTML5Apid)this.$VideoPlayerHTML5Api0.play();}.bind(this));this.$VideoPlayerHTML5Apis();}};la.prototype.$VideoPlayerHTML5Apis=function(){"use strict";this.$VideoPlayerHTML5Api0.setAttribute('preload','auto');this.$VideoPlayerHTML5Api0.load();this.$VideoPlayerHTML5Api0.muted=this.$VideoPlayerHTML5Api7;};la.prototype.seek=function(ma){"use strict";this.$VideoPlayerHTML5Api0.currentTime=ma;};la.prototype.removeRotation=function(){"use strict";j.removeClass(this.$VideoPlayerHTML5Api0,"_56jr");j.removeClass(this.$VideoPlayerHTML5Api0,"_56js");j.removeClass(this.$VideoPlayerHTML5Api0,"_56jt");this.$VideoPlayerHTML5Api0.style.marginLeft='';this.$VideoPlayerHTML5Api0.style.marginTop='';this.$VideoPlayerHTML5Api0.style.width='';this.$VideoPlayerHTML5Api0.style.height='';};la.prototype.applyRotation=function(ma){"use strict";if(!ma)return;j.conditionClass(this.$VideoPlayerHTML5Api0,"_56jr",ma==90);j.conditionClass(this.$VideoPlayerHTML5Api0,"_56js",ma==180);j.conditionClass(this.$VideoPlayerHTML5Api0,"_56jt",ma==270);if(ma==180)return;var na=this.$VideoPlayerHTML5Api3,oa=this.$VideoPlayerHTML5Api2,pa=(na-oa)/2,qa=(oa-na)/2;this.$VideoPlayerHTML5Api0.style.marginLeft=qa+'px';this.$VideoPlayerHTML5Api0.style.marginTop=pa+'px';this.$VideoPlayerHTML5Api0.style.height=oa+'px';this.$VideoPlayerHTML5Api0.style.width=na+'px';};la.prototype.switchVideo=function(ma){"use strict";if(!this.$VideoPlayerHTML5Api4.videoData||this.$VideoPlayerHTML5Api4.videoData.length<=ma)return;this.$VideoPlayerHTML5Apin=new r(this.$VideoPlayerHTML5Api4.videoData[ma]);this.$VideoPlayerHTML5Api0.src=this.$VideoPlayerHTML5Apio();this.$VideoPlayerHTML5Apit();if(this.$VideoPlayerHTML5Apin.hasSubtitles())this.$VideoPlayerHTML5Apiu(this.$VideoPlayerHTML5Apin.getSubtitlesSrc());this.removeRotation();this.applyRotation(this.$VideoPlayerHTML5Apin.getRotation());};la.prototype.$VideoPlayerHTML5Apit=function(){"use strict";k.setContent(this.$VideoPlayerHTML5Api0,null);};la.prototype.$VideoPlayerHTML5Apiv=function(){"use strict";Array.prototype.forEach.call(this.$VideoPlayerHTML5Api0.textTracks,function(ma){return ma.mode='showing';});};la.prototype.$VideoPlayerHTML5Apiw=function(){"use strict";Array.prototype.forEach.call(this.$VideoPlayerHTML5Api0.textTracks,function(ma){return ma.mode='hidden';});};la.prototype.$VideoPlayerHTML5Apix=function(ma){"use strict";var na=new q(ma),oa=i.getBlob([na.renderVTT()],{type:'text/vtt'});return da.createObjectURL(oa);};la.prototype.$VideoPlayerHTML5Apiy=function(ma){"use strict";var na=k.create('track',{kind:'captions',src:ma});m.listen(na,'load',function(){if(this.$VideoPlayerHTML5Apig)this.$VideoPlayerHTML5Apiv();}.bind(this));na.track.mode='hidden';k.appendContent(this.$VideoPlayerHTML5Api0,na);};la.prototype.$VideoPlayerHTML5Apiu=function(ma){"use strict";if(ma in this.$VideoPlayerHTML5Apih)return this.$VideoPlayerHTML5Apiy(this.$VideoPlayerHTML5Apih[ma]);if(!da||!i.isSupported())return;new v(ma).setTransportBuilder(y).setMethod('GET').setResponseHandler(function(na){this.$VideoPlayerHTML5Apih[ma]=this.$VideoPlayerHTML5Apix(na);this.$VideoPlayerHTML5Apiy(this.$VideoPlayerHTML5Apih[ma]);}.bind(this)).send();};la.prototype.unmute=function(){"use strict";this.$VideoPlayerHTML5Api8=false;this.$VideoPlayerHTML5Api0.muted=false;};la.prototype.mute=function(){"use strict";this.$VideoPlayerHTML5Api0.muted=true;};la.prototype.setDimensions=function(ma,na){"use strict";this.removeRotation();this.$VideoPlayerHTML5Api2=ma;this.$VideoPlayerHTML5Api3=na;this.applyRotation(this.$VideoPlayerHTML5Apin.getRotation());};la.prototype.showControls=function(){"use strict";this.$VideoPlayerHTML5Api0.controls=!this.$VideoPlayerHTML5Apie;};la.prototype.restoreControls=function(){"use strict";this.$VideoPlayerHTML5Api0.controls=this.$VideoPlayerHTML5Apif&&!this.$VideoPlayerHTML5Apie;};la.prototype.$VideoPlayerHTML5Apij=function(){"use strict";this.$VideoPlayerHTML5Apii.addSubscriptions(m.listen(this.$VideoPlayerHTML5Api0,'playing',this.$VideoPlayerHTML5Apiz.bind(this)),m.listen(this.$VideoPlayerHTML5Api0,'play',this.$VideoPlayerHTML5Apir.bind(this)),m.listen(this.$VideoPlayerHTML5Api0,'ended',this.$VideoPlayerHTML5ApiA.bind(this)),m.listen(this.$VideoPlayerHTML5Api0,'error',this.$VideoPlayerHTML5ApiB.bind(this)),m.listen(this.$VideoPlayerHTML5Api0,'waiting',this.$VideoPlayerHTML5ApiC.bind(this)),m.listen(this.$VideoPlayerHTML5Api0,'pause',this.$VideoPlayerHTML5ApiD.bind(this)),m.listen(this.$VideoPlayerHTML5Api0,'volumechange',this.$VideoPlayerHTML5ApiE.bind(this)),m.listen(this.$VideoPlayerHTML5Api0,'mousedown',this.$VideoPlayerHTML5ApiF.bind(this)),m.listen(this.$VideoPlayerHTML5Api0,'mouseup',this.$VideoPlayerHTML5ApiG.bind(this)),m.listen(this.$VideoPlayerHTML5Api0,'timeupdate',this.$VideoPlayerHTML5ApiH.bind(this)),m.listen(this.$VideoPlayerHTML5Api0,'click',this.$VideoPlayerHTML5ApiI.bind(this)),m.listen(this.$VideoPlayerHTML5Api0,'loadedmetadata',this.$VideoPlayerHTML5ApiJ.bind(this)),m.listen(this.$VideoPlayerHTML5Api0,'progress',this.$VideoPlayerHTML5ApiK.bind(this)),m.capture(this.$VideoPlayerHTML5Api0.parentNode,'pause',this.$VideoPlayerHTML5ApiL.bind(this)));};la.prototype.$VideoPlayerHTML5ApiL=function(ma){"use strict";if(ma.target!==this.$VideoPlayerHTML5Api0)return;if(!this.$VideoPlayerHTML5Api0.ended){if(this.$VideoPlayerHTML5Apic==='unloaded'){this.preventPauseLoggingInMixin=false;ma.preventDefault();ma.stopPropagation();}ma.lastPauseReason=this.$VideoPlayerHTML5Apic;}};la.prototype.$VideoPlayerHTML5ApiK=function(){"use strict";var ma=this.$VideoPlayerHTML5Api0.buffered,na=0,oa=0,pa=ma.length;while(pa-->0){var qa=ma.end(pa),ra=ma.start(pa);if(ra<=this.$VideoPlayerHTML5Api0.currentTime){oa=ra;na=qa-ra;break;}}this.$VideoPlayerHTML5ApiM('flash/updateBuffer',{duration:na,offset:oa});};la.prototype.$VideoPlayerHTML5ApiH=function(){"use strict";this.$VideoPlayerHTML5ApiM('flash/updateStatus',{position:+this.$VideoPlayerHTML5Api0.currentTime.toFixed(3)});};la.prototype.$VideoPlayerHTML5ApiI=function(ma){"use strict";if(ma.button!==0)return;if(this.$VideoPlayerHTML5ApiN){this.pause(t.USER);}else this.play(t.USER);ma.preventDefault();ma.stopPropagation();};la.prototype.$VideoPlayerHTML5ApiC=function(){"use strict";this.$VideoPlayerHTML5ApiO=true;this.$VideoPlayerHTML5ApiM('flash/buffering');};la.prototype.setVolume=function(ma){"use strict";this.$VideoPlayerHTML5Api0.volume=ma;};la.prototype.$VideoPlayerHTML5ApiE=function(){"use strict";if(this.$VideoPlayerHTML5Api0.muted!==this.$VideoPlayerHTML5Api7&&this.$VideoPlayerHTML5Api0.volume===this.$VideoPlayerHTML5Api9&&this.$VideoPlayerHTML5Api0.volume>0){if(!this.$VideoPlayerHTML5Api0.muted){this.$VideoPlayerHTML5ApiM('flash/turnOffAutoplay');this.$VideoPlayerHTML5ApiM('flash/unmuteVideo');}else this.$VideoPlayerHTML5ApiM('flash/muteVideo');}else this.$VideoPlayerHTML5ApiM('flash/changeVolume',{volume:this.$VideoPlayerHTML5Api0.volume});this.$VideoPlayerHTML5Api7=this.$VideoPlayerHTML5Api0.muted;this.$VideoPlayerHTML5Api9=this.$VideoPlayerHTML5Api0.volume;};la.prototype.$VideoPlayerHTML5ApiF=function(ma){"use strict";if(ma.button===0)this.$VideoPlayerHTML5Apia=true;};la.prototype.$VideoPlayerHTML5ApiG=function(ma){"use strict";if(ma.button===0)this.$VideoPlayerHTML5Apia=false;};la.prototype.$VideoPlayerHTML5Apiz=function(){"use strict";if(this.$VideoPlayerHTML5ApiO){this.$VideoPlayerHTML5ApiO=false;this.$VideoPlayerHTML5ApiM('flash/buffered');}};la.prototype.$VideoPlayerHTML5Apir=function(){"use strict";this.$VideoPlayerHTML5ApiN=true;this.$VideoPlayerHTML5Apid=false;this.showControls();this.$VideoPlayerHTML5ApiM('flash/beginPlayback',{position:this.$VideoPlayerHTML5Api0.currentTime.toFixed(2),reason:this.$VideoPlayerHTML5Apiq});};la.prototype.$VideoPlayerHTML5ApiD=function(ma){"use strict";if(this.$VideoPlayerHTML5Api0.ended)return;if(this.$VideoPlayerHTML5Api0.seeking&&this.$VideoPlayerHTML5Apic===t.SEEK)return;if(this.$VideoPlayerHTML5Apia)return;if(this.$VideoPlayerHTML5Apic===t.SEEK){this.$VideoPlayerHTML5Apic=null;return;}if(this.$VideoPlayerHTML5Apic===null||this.$VideoPlayerHTML5Apic===t.USER)this.$VideoPlayerHTML5ApiM('flash/turnOffAutoplay');this.$VideoPlayerHTML5Apic=null;this.$VideoPlayerHTML5ApiN=false;this.restoreControls();this.$VideoPlayerHTML5ApiM('flash/pausePlayback',{position:this.$VideoPlayerHTML5Api0.currentTime.toFixed(2)});};la.prototype.$VideoPlayerHTML5ApiP=function(){"use strict";k.setContent(this.$VideoPlayerHTML5Api0,null);};la.prototype.$VideoPlayerHTML5ApiA=function(){"use strict";this.restoreControls();this.$VideoPlayerHTML5ApiN=false;this.$VideoPlayerHTML5ApiM('flash/finishPlayback');};la.prototype.$VideoPlayerHTML5ApiJ=function(){"use strict";this.$VideoPlayerHTML5ApiM('flash/updateMetadata');};la.prototype.$VideoPlayerHTML5ApiB=function(){"use strict";if(!this.$VideoPlayerHTML5Api0.error)return;this.emit('error',{error:fa(this.$VideoPlayerHTML5Api0.error.code),isPlayback:this.$VideoPlayerHTML5Apid,message:ea(this.$VideoPlayerHTML5Api0.error.code)});};la.prototype.$VideoPlayerHTML5Apim=function(event,ma){"use strict";ma.player_version=u.PLEASANTVILLE;this.$VideoPlayerHTML5ApiM('flash/logEvent',{logData:Object.assign({event:event},ma)});};la.prototype.$VideoPlayerHTML5ApiM=function(event,ma){"use strict";h.inform(event,Object.assign({divID:this.$VideoPlayerHTML5Api1},ma));this.emit(event.substr('flash/'.length),ma);};la.prototype.getLastPlayReason=function(){"use strict";return this.$VideoPlayerHTML5Apiq;};la.prototype.getVideoPlayReason=function(){"use strict";return this.$VideoPlayerHTML5Apip;};la.prototype.isMuted=function(){"use strict";return this.$VideoPlayerHTML5Api7;};la.prototype.getPlaybackDuration=function(){"use strict";return this.$VideoPlayerHTML5Api0.duration||0;};la.prototype.getVolume=function(){"use strict";return this.$VideoPlayerHTML5Api0.volume;};la.prototype.hasHD=function(){"use strict";if(!this.$VideoPlayerHTML5Apin)return false;return this.$VideoPlayerHTML5Apin.hasHD();};la.prototype.isHD=function(){"use strict";return this.$VideoPlayerHTML5Apik;};la.prototype.$VideoPlayerHTML5Apio=function(){"use strict";return (this.$VideoPlayerHTML5Apik&&this.$VideoPlayerHTML5Apin.hasHD())?this.$VideoPlayerHTML5Apin.getPlayableSrcHD():this.$VideoPlayerHTML5Apin.getPlayableSrcSD();};la.prototype.toggleSubtitles=function(){"use strict";this.$VideoPlayerHTML5Apig=!this.$VideoPlayerHTML5Apig;if(this.$VideoPlayerHTML5Apig){this.$VideoPlayerHTML5Apiv();}else this.$VideoPlayerHTML5Apiw();};la.prototype.hasSubtitles=function(){"use strict";return this.$VideoPlayerHTML5Apin.hasSubtitles();};la.prototype.areSubtitlesActive=function(){"use strict";return this.$VideoPlayerHTML5Apig;};la.prototype.toggleHD=function(){"use strict";if(!this.$VideoPlayerHTML5Apin)return;var ma=this.$VideoPlayerHTML5Api0.currentTime;this.$VideoPlayerHTML5Apik=!this.$VideoPlayerHTML5Apik;this.$VideoPlayerHTML5Api0.src=this.$VideoPlayerHTML5Apio();ba.once(this.$VideoPlayerHTML5Api0,function(){this.$VideoPlayerHTML5Api0.currentTime=ma;if(this.$VideoPlayerHTML5Apid)this.$VideoPlayerHTML5Api0.play();this.emit('qualityChange');}.bind(this));this.$VideoPlayerHTML5Apim(s.PAUSED,this.addWatchTimeData({reason:'toggle_hd'}));this.$VideoPlayerHTML5Apim(s.REQUESTED_PLAYING,{reason:t.USER});this.$VideoPlayerHTML5Apid=true;this.$VideoPlayerHTML5Apis();};e.exports=la;},null);
__d("VideoPlayerApiFactory",["VideoPlayerFlashApi","VideoPlayerHTML5Api"],function(a,b,c,d,e,f,g,h){b.__markCompiled&&b.__markCompiled();var i={create:function(j,k){var l=this._getImplementationModule(j);return new l(j,k);},_getImplementationModule:function(j){var k=null;if(j.tagName==='VIDEO'){k=h;}else k=g;return k;},onImplementationReady:function(j,k){var l=this._getImplementationModule(j);l.onImplementationReady(j,function(m){return k(m,l);});}};e.exports=i;},null);
__d("VideoCTAEndscreen",["CSS","Event","VideoPlayerReason","SubscriptionsHandler","VideoPlayerLoggerEvents","VideoPlayerReason","logVideosClickTracking"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){b.__markCompiled&&b.__markCompiled();function n(o,p){"use strict";this.$VideoCTAEndscreen0=o;this.$VideoCTAEndscreen1=p.endscreenElement;this.$VideoCTAEndscreen2=p.replayElement;this.$VideoCTAEndscreen3=new j();this.$VideoCTAEndscreen3.addSubscriptions(h.listen(this.$VideoCTAEndscreen2,'click',function(){return this.$VideoCTAEndscreen4();}.bind(this)),o.addListener('finishPlayback',function(){return this.$VideoCTAEndscreen5();}.bind(this)),o.addListener('beginPlayback',function(){return this.$VideoCTAEndscreen6();}.bind(this)));}n.prototype.$VideoCTAEndscreen4=function(){"use strict";var o={reason:i.USER};this.$VideoCTAEndscreen0.logEvent(k.REPLAYED,o);m(this.$VideoCTAEndscreen0.getVideoNode());this.$VideoCTAEndscreen0.play(l.USER);};n.prototype.$VideoCTAEndscreen5=function(){"use strict";g.show(this.$VideoCTAEndscreen1);};n.prototype.$VideoCTAEndscreen6=function(){"use strict";g.hide(this.$VideoCTAEndscreen1);};e.exports=n;},null);
__d("VideoPlayerController",["Arbiter","Banzai","DOMDimensions","CSS","EventEmitter","Flash","FullScreen","Run","ScriptPath","SubscriptionsHandler","JSLogger","VideoChannelViewChainLengthManager","VideoPlayerApiEvents","VideoPlayerApiFactory","VideoPlayerLogger","VideoPlayerLoggerErrors","VideoPlayerLoggerErrorStates","VideoPlayerLoggerEvents","VideoPlayerInitializationEvents","VideoPlayerVersions","VideosRenderingInstrumentation","Visibility","VideoPlayerReason","arrayContains","collectDataAttributes","cx","destroyOnUnload","emptyFunction","getElementPosition","invariant","logVideosClickTracking"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,aa,ba,ca,da,ea,fa,ga,ha,ia,ja,ka){b.__markCompiled&&b.__markCompiled();for(var la in k)if(k.hasOwnProperty(la))na[la]=k[la];var ma=k===null?null:k.prototype;na.prototype=Object.create(ma);na.prototype.constructor=na;na.__superConstructor__=k;function na(oa,pa){"use strict";var qa=oa.video_id,ra=oa.video_ids,sa=oa.chaining_token,ta=oa.source,ua=oa.ad_client_token,va=oa.should_autoplay,wa=oa.player_version,xa=oa.autoplay_setting,ya=oa.additional_logdata_getter,za=oa.apiModule,ab=pa.root_element,bb=pa.container_element,cb=pa.video_element;ma.constructor.call(this);this.$VideoPlayerController0=0;this.$VideoPlayerController1=va;this.$VideoPlayerController2=xa;this.$VideoPlayerController3=ua;this.$VideoPlayerController4=wa;this.$VideoPlayerController5=cb;this.$VideoPlayerController6=ab;this.$VideoPlayerController7=bb;this.$VideoPlayerController8=false;this.$VideoPlayerController9=false;this.$VideoPlayerControllera=qa;this.$VideoPlayerControllerb=ra||[qa];this.$VideoPlayerControllerc=sa;this.$VideoPlayerControllerd=ya||{get:ha};this.$VideoPlayerControllere=za;this.$VideoPlayerControllerf=null;this.$VideoPlayerControllerg=null;this.$VideoPlayerControllerh=new u(ta);this.collectFeedTrackingData();this.$VideoPlayerControllerh.setScriptPath(o.getScriptPath());var db=aa.retrieveRenderTime(this.$VideoPlayerController6);this.$VideoPlayerControlleri=Date.now()-db;this.logEvent(y.PLAYER_INITIALIZATION,{time_ms:db});this.$VideoPlayerControllerj=false;this.setState('loading');if(this.isImplementationUnavailable()){this.$VideoPlayerControllerk();return;}this.$VideoPlayerControllerl();h.subscribe(h.SHUTDOWN,function(){this.pause('unloaded');}.bind(this));if(this.$VideoPlayerController1)if(ba.isHidden()){ba.once(ba.VISIBLE,function(){this.play(ca.AUTOPLAY);}.bind(this));}else this.play(ca.AUTOPLAY);this.$VideoPlayerControllerm=0;this.$VideoPlayerControllern=false;this.$VideoPlayerControllero=new p();this.$VideoPlayerControllero.addSubscriptions(g.subscribe('layer_shown',function(eb,fb){if(fb.type==='DialogX'||fb.type==='PhotoSnowlift'){this.$VideoPlayerControllerm=this.$VideoPlayerControllerm+1;if(this.$VideoPlayerControllerm>0)if(this.isState('playing')){this.pause(ca.PAGE_VISIBILITY);this.$VideoPlayerControllern=true;}}}.bind(this)),g.subscribe('layer_hidden',function(eb,fb){if(fb.type==='DialogX'||fb.type==='PhotoSnowlift'){this.$VideoPlayerControllerm=this.$VideoPlayerControllerm-1;if(this.$VideoPlayerControllerm===0)if(this.$VideoPlayerControllern){this.play(ca.PAGE_VISIBILITY);this.$VideoPlayerControllern=false;}}}.bind(this)),g.subscribe(q.DUMP_EVENT,function(eb,fb){return this.$VideoPlayerControllerq(eb,fb);}.bind(this)));ga(function(){return this.$VideoPlayerControllero.release();}.bind(this));n.onLeave(function(){return this.pause('unloaded');}.bind(this));}na.prototype.collectFeedTrackingData=function(){"use strict";this.$VideoPlayerControllerh.setFTData(ea(this.getRootNode(),['ft']));};na.prototype.$VideoPlayerControllerq=function(oa,pa){"use strict";pa.video_player_debug_info=pa.video_player_debug_info||{};pa.video_player_debug_info[this.getVideoID()]=this.getDebugInfo();};na.prototype.setAdditionalLogDataGetter=function(oa){"use strict";this.$VideoPlayerControllerd=oa;};na.prototype.$VideoPlayerControllerl=function(){"use strict";if(this.$VideoPlayerControllere){this.$VideoPlayerControllere.onImplementationReady(this.getVideoNode(),function(){return this.onApiReady();}.bind(this));}else t.onImplementationReady(this.getVideoNode(),function(){return this.onApiReady();}.bind(this));};na.prototype.hasCTAEndscreen=function(){"use strict";return !!this.$VideoPlayerControllerr;};na.prototype.isImplementationUnavailable=function(){"use strict";if(this.$VideoPlayerControllere)return this.$VideoPlayerControllere.isImplementationUnavailable();return !this.isPlayerVersion(z.HTML5)&&!l.isAvailable();};na.prototype.$VideoPlayerControllerk=function(){"use strict";var oa={error:v.ERROR_CALLING_FLASH,state:w.PLAYER_FAILURE};this.logEvent(x.ERROR,oa);this.$VideoPlayerController1=false;};na.prototype.$VideoPlayerControllers=function(oa,pa,qa){"use strict";var ra={error:oa,error_description:pa,error_user_info:this.getDebugInfo(),state:qa?w.PLAYBACK_FAILURE:w.PLAYER_FAILURE};this.logEvent(x.ERROR,ra);if(qa&&this.$VideoPlayerControllerj)this.$VideoPlayerControllerj=false;};na.prototype.setDimensions=function(oa,pa){"use strict";this.$VideoPlayerController7.style.width=oa+'px';this.$VideoPlayerController7.style.height=pa+'px';if(this.isState('loading')){this.$VideoPlayerControllert={width:oa,height:pa};}else if(this.getVideoAPI().setDimensions)this.getVideoAPI().setDimensions(oa,pa);};na.prototype.handleFlashApiFactoryError=function(oa,pa){"use strict";this.$VideoPlayerControllers(v.ERROR_CALLING_FLASH,oa.message,pa);};na.prototype.isPlayRequestPending=function(){"use strict";return this.$VideoPlayerControllerj;};na.prototype.play=function(oa){"use strict";this.$VideoPlayerControlleru();if(!this.$VideoPlayerControllerv)this.$VideoPlayerControllerv=oa;if(!this.$VideoPlayerControllerj){var pa=this.$VideoPlayerControllerw({reason:oa});this.logEvent(x.REQUESTED_PLAYING,pa);}this.sendPlayRequest(oa);};na.prototype.sendPlayRequest=function(oa){"use strict";if(this.isState('fallback')){this.emit('fallbackPlay');return;}this.$VideoPlayerControllerj=true;if(this.isState('loading')){this.$VideoPlayerControllerx={reason:oa};}else{if(!this.getVideoAPI().isMuted()&&this.$VideoPlayerControllery)this.logEvent(x.UNMUTED);this.$VideoPlayerControllery=false;this.getVideoAPI().play(oa);}};na.prototype.getOriginalPlayReason=function(){"use strict";return this.$VideoPlayerControllerv;};na.prototype.reset=function(){"use strict";if(this.isState('loading')||this.isState('fallback'))return;this.resetPositions();this.$VideoPlayerControllerz();this.$VideoPlayerControllerA=null;this.setState('loading');this.$VideoPlayerControllerl();};na.prototype.cancelPlayRequest=function(){"use strict";if(this.$VideoPlayerControllerj){var oa={reason:this.getOriginalPlayReason()};this.$VideoPlayerControllerj=false;this.logEvent(x.CANCELLED_REQUESTED_PLAYING,oa);}};na.prototype.getVideoAPI=function(){"use strict";return this.$VideoPlayerControllerA;};na.prototype.getVideoNode=function(){"use strict";return this.$VideoPlayerController5;};na.prototype.getRootNode=function(){"use strict";return this.$VideoPlayerController6;};na.prototype.onApiReady=function(oa){"use strict";this.$VideoPlayerControllerA=t.create(this.getVideoNode(),this.handleFlashApiFactoryError.bind(this));this.setState('ready');this.logEvent(y.PLAYER_ALLOCATED);this.$VideoPlayerControllery=!this.getVideoAPI().isMuted();this.$VideoPlayerControllerB();if(this.$VideoPlayerControllerx){this.sendPlayRequest(this.$VideoPlayerControllerx.reason);this.$VideoPlayerControllerx=null;}if(this.$VideoPlayerControllert){this.setDimensions(this.$VideoPlayerControllert.width,this.$VideoPlayerControllert.height);this.$VideoPlayerControllert=null;}if(this.$VideoPlayerControllerC){this.getVideoAPI().unmute();this.$VideoPlayerControllerC=null;}var pa={is_auto_played:this.isAutoplayable()};if(oa)pa.init_delay=oa;this.logEvent(x.PLAYER_LOADED,pa);};na.prototype.resetPositions=function(){"use strict";this.$VideoPlayerControllerf=null;this.$VideoPlayerControllerg=null;};na.prototype.getCurrentTimePosition=function(){"use strict";return this.$VideoPlayerControllerf;};na.prototype.$VideoPlayerControlleru=function(){"use strict";r.registerChainingInfos(this.getVideoID(),this.$VideoPlayerControllerc);};na.prototype.$VideoPlayerControllerD=function(oa){"use strict";var pa=oa&&('playing_live' in oa)&&oa.playing_live;if(pa==this.$VideoPlayerController9)return;if(pa){this.logEvent(x.PLAYING_LIVE_STARTED);}else this.logEvent(x.PLAYING_LIVE_STOPPED);this.$VideoPlayerController9=pa;j.conditionClass(this.$VideoPlayerController7,"_2vq_",this.$VideoPlayerController9);};na.prototype.$VideoPlayerControllerE=function(oa){"use strict";this.$VideoPlayerControllerD(oa);var pa=oa.position;this.$VideoPlayerControllerj=false;if(pa!==(void 0))this.$VideoPlayerControllerg=pa;this.setState('playing');};na.prototype.$VideoPlayerControllerF=function(oa){"use strict";this.$VideoPlayerControllerD(oa);var pa=oa.position;if(pa!==(void 0))this.$VideoPlayerControllerf=pa;};na.prototype.$VideoPlayerControllerG=function(oa){"use strict";var event=oa.event;delete oa.event;this.logEvent(event,oa);};na.prototype.$VideoPlayerControllerH=function(){"use strict";this.$VideoPlayerControllerD({});this.resetPositions();if(!this.isState('finished'))this.setState('paused');};na.prototype.$VideoPlayerControllerI=function(){"use strict";this.$VideoPlayerControllerD({});this.resetPositions();this.setState('finished');};na.prototype.getVideosCount=function(){"use strict";return this.$VideoPlayerControllerb.length;};na.prototype.$VideoPlayerControllerJ=function(){"use strict";var oa=this.getVideosCount();return (this.$VideoPlayerController0+1)%oa;};na.prototype.getVolume=function(){"use strict";return this.getVideoAPI().getVolume();};na.prototype.$VideoPlayerControllerK=function(){"use strict";var oa=this.isFullscreen();j.conditionClass(this.$VideoPlayerController7,"_5gr8",oa);j.conditionClass(this.$VideoPlayerController7,"_52fb",oa);if(!oa&&this.$VideoPlayerControllerL){this.$VideoPlayerControllerL.unsubscribe();this.$VideoPlayerControllerL=null;}if(this.$VideoPlayerControllerM!=oa){this.logEvent(oa?x.ENTERED_FS:x.EXITED_FS);this.emit('toggleFullscreen');}this.$VideoPlayerControllerM=oa;};na.prototype.isFullscreen=function(){"use strict";return m.isFullScreen()&&this.$VideoPlayerController7===m.getFullScreenElement();};na.prototype.toggleFullscreen=function(){"use strict";if(m.toggleFullScreen(this.$VideoPlayerController7)){j.addClass(this.$VideoPlayerController7,"_5gr8");this.$VideoPlayerControllerL=m.subscribe('changed',this.$VideoPlayerControllerK.bind(this));}};na.prototype.$VideoPlayerControllerN=function(){"use strict";var oa=this.getVideosCount();return (this.$VideoPlayerController0-1+oa)%oa;};na.prototype.$VideoPlayerControllerO=function(oa){"use strict";this.logEvent(x.CAROUSEL_CHANGE,{source_index:this.$VideoPlayerController0,target_index:oa});this.getVideoAPI().switchVideo(oa);this.$VideoPlayerController0=oa;this.emit('switchVideo');};na.prototype.unmute=function(){"use strict";if(!this.isState('loading')){this.getVideoAPI().unmute();}else this.$VideoPlayerControllerC=true;};na.prototype.isMuted=function(){"use strict";return this.getVideoAPI().isMuted();};na.prototype.mute=function(){"use strict";this.getVideoAPI().mute();};na.prototype.getPlaybackDuration=function(){"use strict";return this.getVideoAPI().getPlaybackDuration();};na.prototype.getPlaybackPosition=function(){"use strict";return this.$VideoPlayerControllerf||0;};na.prototype.nextVideo=function(){"use strict";this.$VideoPlayerControllerO(this.$VideoPlayerControllerJ());};na.prototype.previousVideo=function(){"use strict";this.$VideoPlayerControllerO(this.$VideoPlayerControllerN());};na.prototype.getVideoIndex=function(){"use strict";return this.$VideoPlayerController0;};na.prototype.getVideoID=function(){"use strict";return this.$VideoPlayerControllerb[this.getVideoIndex()];};na.prototype.$VideoPlayerControllerB=function(){"use strict";var oa=this.$VideoPlayerControllerA;this.$VideoPlayerControllerP=new p();var pa=[['buffered',function(){return this.setBuffering(false);}.bind(this)],['buffering',function(){return this.setBuffering(true);}.bind(this)],['beginPlayback',function(ra){return this.$VideoPlayerControllerE(ra);}.bind(this)],['updateStatus',function(ra){return this.$VideoPlayerControllerF(ra);}.bind(this)],['logEvent',function(ra){return this.$VideoPlayerControllerG(ra.logData);}.bind(this)],['pausePlayback',function(){return this.$VideoPlayerControllerH();}.bind(this)],['clickForTracking',function(){return ka(this.getVideoNode());}.bind(this)],['error',function(ra){return this.$VideoPlayerControllers(ra.error,ra.message,ra.isPlayback);}.bind(this)],['finishPlayback',function(){return this.$VideoPlayerControllerI();}.bind(this)]],qa=function(event){return this.emit.bind(this,event);}.bind(this);this.$VideoPlayerControllerP.addSubscriptions.apply(this.$VideoPlayerControllerP,pa.map(function(ra){return oa.addListener.apply(oa,ra);}).concat(s.map(function(event){return oa.addListener(event,qa(event));})));};na.prototype.$VideoPlayerControllerz=function(){"use strict";if(this.$VideoPlayerControllerP)this.$VideoPlayerControllerP.release();};na.prototype.seek=function(oa){"use strict";this.getVideoAPI().seek(oa);};na.prototype.pause=function(oa){"use strict";if(this.isState('loading')){this.$VideoPlayerControllerx=null;}else if(this.isState('playing')){this.getVideoAPI().pause(oa);}else if(this.isState('ready'))this.getVideoAPI().pause(oa);this.cancelPlayRequest();};na.prototype.isPlayerVersion=function(oa){"use strict";return this.$VideoPlayerController4===oa;};na.prototype.isAutoplayable=function(){"use strict";return this.$VideoPlayerController1;};na.prototype.isBuffering=function(){"use strict";return this.$VideoPlayerController8;};na.prototype.setBuffering=function(oa){"use strict";if(oa!==this.$VideoPlayerController8){this.$VideoPlayerController8=oa;if(this.$VideoPlayerController8){this.$VideoPlayerControllerh.startBuffering();}else this.$VideoPlayerControllerh.endBuffering();}};na.prototype.setVolume=function(oa){"use strict";this.getVideoAPI().setVolume(oa);};na.prototype.getDOMPosition=function(){"use strict";return ia(this.getRootNode());};na.prototype.$VideoPlayerControllerQ=function(){"use strict";var oa=this.getDOMPosition(),pa=i.getViewportDimensions().height,qa=null;if(oa.y<=0){qa=oa.y;}else if(oa.y+oa.height<pa){qa=0;}else qa=oa.y+oa.height-pa;return {viewport_distance:qa,unit_height:oa.height};};na.prototype.$VideoPlayerControllerR=function(){"use strict";var oa=l.getVersion();if(oa)oa=oa.join('.');return Object.assign(Object.assign({},this.$VideoPlayerControllerQ(),{ad_client_token:this.$VideoPlayerController3,autoplay_eligible:this.isAutoplayable(),autoplay_setting:this.$VideoPlayerController2,player_version:this.$VideoPlayerController4,flash_version:oa,video_id:this.getVideoID(),player_state:this.$VideoPlayerControllerS,video_time_position:this.$VideoPlayerControllerf||0},r.getLoggingData()),this.$VideoPlayerControllerd.get());};na.prototype.$VideoPlayerControllerT=function(){"use strict";if(this.isState('loading')||this.isState('fallback'))return null;return this.getVideoAPI().getVideoInfo();};na.prototype.getDebugInfo=function(){"use strict";var oa=this.$VideoPlayerControllerT(),pa={initializationTime:this.$VideoPlayerControlleri,version:this.$VideoPlayerController4,stallTime:this.$VideoPlayerControllerh.getCurrentStallTime(),state:this.$VideoPlayerControllerS},qa={videoID:this.getVideoID()};if(!oa)return {player:pa,currentVideo:qa};return {currentVideo:Object.assign({},qa,{isHLS:oa.isHLS,isHD:oa.isHD,hasHD:oa.hasHD,resourceUrl:oa.resourceUrl,hasSubtitles:!!(oa.subtitles&&oa.subtitles.length),hasRateLimit:!!oa.hasUnlimitedSrc,isRateLimited:oa.hasUnlimitedSrc&&!oa.useUnlimitedSrc,tagHD:oa.tagHD,tagSD:oa.tagSD}),player:pa};};na.prototype.hasSubtitles=function(){"use strict";return this.getVideoAPI().hasSubtitles();};na.prototype.areSubtitlesActive=function(){"use strict";return this.getVideoAPI().areSubtitlesActive();};na.prototype.toggleSubtitles=function(){"use strict";this.getVideoAPI().toggleSubtitles();};na.prototype.isHD=function(){"use strict";return this.getVideoAPI().isHD();};na.prototype.hasHD=function(){"use strict";return this.getVideoAPI().hasHD();};na.prototype.toggleHD=function(){"use strict";this.getVideoAPI().toggleHD();};na.prototype.$VideoPlayerControllerw=function(oa){"use strict";var pa=this.$VideoPlayerControllerT();if(pa!=null)return Object.assign({resource_url:pa.resourceUrl,hls:pa.isHLS,hd:pa.isHD},oa);return oa;};na.prototype.logEvent=function(event,oa){"use strict";var pa=Object.assign(this.$VideoPlayerControllerR(),oa);this.$VideoPlayerControllerh.logEvent(event,pa);};na.prototype.setState=function(oa){"use strict";if(this.isState('fallback'))return;this.$VideoPlayerControllerS=oa;if(this.$VideoPlayerControllerS==='fallback'){j.addClass(this.getRootNode(),"_3-n5");this.$VideoPlayerControllerz();}this.emit('stateChange');};na.prototype.isState=function(oa){"use strict";return this.$VideoPlayerControllerS===oa;};na.playerStates=['finished','loading','paused','playing','ready','fallback'];e.exports=na;},null);
__d("VideoCover",["CSS","EventListener","VideoPlayerReason","invariant"],function(a,b,c,d,e,f,g,h,i,j){b.__markCompiled&&b.__markCompiled();function k(l,m,n){"use strict";j(n.length===l.getVideosCount());this.$VideoCover0=m;this.$VideoCover1=n;this.$VideoCover2=l;l.addListener('beginPlayback',this.$VideoCover3.bind(this));l.addListener('finishPlayback',this.$VideoCover4.bind(this));l.addListener('switchVideo',this.$VideoCover5.bind(this));h.listen(this.$VideoCover0,'click',function(){return this.$VideoCover2.play(i.USER);}.bind(this));}k.prototype.getCurrentCover=function(){"use strict";return this.$VideoCover1[this.$VideoCover2.getVideoIndex()];};k.prototype.$VideoCover3=function(){"use strict";g.hide(this.$VideoCover0);};k.prototype.$VideoCover4=function(){"use strict";g.show(this.$VideoCover0);};k.prototype.$VideoCover5=function(){"use strict";this.$VideoCover1.forEach(function(l){return g.hide(l);});g.show(this.getCurrentCover());};e.exports=k;},null);