;/*FB_PKG_DELIM*/ __d("VideoPlayerApiEvents",[],(function(a,b,c,d,e,f){a=["buffered","buffering","bufferingProgress","beginPlayback","updateStatus","logEvent","pausePlayback","playbackNotAllowed","clickVideo","clickForTracking","finishPlayback","unmuteVideo","muteVideo","changeVolume","turnOffAutoplay","updateBuffer","updateMetadata","qualityChange","updateViewportBegin","updateViewportMove","updateViewportEnd","dimensionsChange","viewportChange","wheelScroll","error","loadedSubtitles","toggleSubtitles","captionsAvailabilityChanged","toggleFullscreen","seekEnd","seekRangeChanged","streamInterrupted","streamResumed","networkInterrupted","networkResumed","debug/dashPlayerEvent","abortedLoading","restoringAfterAbort","restoredAfterAbort","sphericalOrientationChange","videoNodeStaled","replicaSwitch","initialLiveManifestRequestFailure"];f["default"]=a}),66); __d("AbstractVideoPlayerApi",["invariant","EventEmitter","VideoPlayerApiEvents"],(function(a,b,c,d,e,f,g,h){a=function(a){function b(){return a.apply(this,arguments)||this}babelHelpers.inheritsLoose(b,a);var c=b.prototype;c.addListener=function(){for(var b=arguments.length,c=new Array(b),d=0;d=c("HTMLMediaElementReadyStates").HAVE_METADATA)return a.muted;else return a.hasAttribute("muted")||a.muted}g["default"]=a}),98); __d("HVideoPlayerMixin",["EventListener","UserAgent","VideoPlayerHTML5Experiments","dangerouslyOverrideMediaElementEndedProperty","getHTMLMediaElementMutedState","getVideoBrowserTabId"],(function(a,b,c,d,e,f){var g=-1,h=!!(window.performance&&window.performance.now&&window.performance.timing&&window.performance.timing.navigationStart);function i(a,b){a.time_ms=Date.now();b=b.timeStamp;if(b&&h){var c=Math.floor(b).toString().length,d=Date.now().toString().length,e=window.performance.now();if(c===d+3)b=Math.floor(b/1e3),a.time_ms=b;else if(c===d)a.time_ms=b;else if(b<=e){c=window.performance.timing.navigationStart;a.time_ms=c+Math.floor(b)}}return a}var j={initLogger:function(a,c,d,e,f,h,i){var k=this;this._loggedEvents={};this._logFunction=a;j._fixOverwrittenGetVideoCurrentTime=e;j._fireSeekEvents=f;this._useEventTime=c;this._recentPausedTime=null;j._audioOnly=!1;j._enablePlaybackSpeedLogging=i;var l=this.getVideoElement();if(h){var m=l.pause;l.pause=function(){k._recentPausedTime=l.currentTime;return m.apply(l)}}d&&(this._overwriteVideoCurrentTimeProperty(l),j._didOverwriteVideoCurrentTimeProperty||(this.preventSeekLoggingInMixin=!0));this._lastStartTimePosition=g;j._muted=b("getHTMLMediaElementMutedState")(l);this._pausedPosition=g;j._seeking=!1;this._seekSourceTimePosition=g;this._currentTimeAtSeekStart=g;this._volume=l.volume;j._hasBlockedPausedRepresentationEnded=!1;j._logNextPlayingEvent=!0;this._lastLoggedPlaybackSpeed=null;this._lastPlayedTime=g;a=!1;l.readyState>=l.HAVE_FUTURE_DATA?this._logReadyToPlay():a=!0;if(this.skipSubscriptions())return;e=this.getSubscriptions();a&&e.addSubscriptions(b("EventListener").listen(l,"canplay",this._logReadyToPlay.bind(this)));e.addSubscriptions(b("EventListener").listen(l,"ended",this.onEnded.bind(this)),b("EventListener").listen(l,"pause",this.onPause.bind(this)),b("EventListener").listen(l,"playing",this.onPlaying.bind(this)),b("EventListener").listen(l,"seeked",this.onSeeked.bind(this)),b("EventListener").listen(l,"seeking",this.onSeeking.bind(this)),b("EventListener").listen(l,"play",this.onPlay.bind(this)),b("EventListener").listen(l,"loadedmetadata",this.onLoadedMetadata.bind(this)),b("EventListener").listen(l,"timeupdate",this.onTimeUpdate.bind(this)),b("EventListener").listen(l,"volumechange",this.onVolumeChange.bind(this)));j._enablePlaybackSpeedLogging&&e.addSubscriptions(b("EventListener").listen(l,"ratechange",this.onPlaybackRateChange.bind(this)))},skipSubscriptions:function(){return!1},onCanPlay:function(a){this._logReadyToPlay(a)},onPlay:function(a){j._logNextPlayingEvent=!0,j._ignoreNextPlaying=!1,j._pendingPlayRequest=!0},logHeartbeat:function(){if(b("VideoPlayerHTML5Experiments").heartbeatUpdateWatchTime){this._logEvent("heart_beat",this._getWatchTimeClosingLogData({}));var a=this._getVideoCurrentTime();this._lastStartTimePosition=a;this._lastPlayedTime=a}else this._logEvent("heart_beat")},_getWatchTimeClosingLogData:function(a){this._lastPlayedTime=this._getVideoCurrentTime();return this._amendEventTime(babelHelpers["extends"]({video_last_start_time_position:this._lastStartTimePosition===g?this._lastPlayedTime:this._lastStartTimePosition,video_time_position:this._lastPlayedTime},a))},_logOnce:function(a,b){if(this._loggedEvents[a])return;this._logEvent(a,b)},setAudioOnly:function(a){j._audioOnly=a},_logEvent:function(a,c){this._loggedEvents[a]=!0;c=c?c:{};c.video_id=this.getVideoID();c.browser_tab_id=b("getVideoBrowserTabId")();j._audioOnly&&(c.audio_only=!0);c.has_blocked_paused_representation_ended=j._hasBlockedPausedRepresentationEnded;Object.prototype.hasOwnProperty.call(c,"video_time_position")||(c.video_time_position=this._getVideoCurrentTime());c.time_ms||(c.time_ms=Date.now());c.time=Math.round(c.time_ms/1e3);if(this.getAdClientToken){var d=this.getAdClientToken();d&&(c.ad_client_token=d)}this.getPlayerFormat&&(c.player_format=this.getPlayerFormat());this.getPlayerOrigin&&(c.player_origin=this.getPlayerOrigin());this.getPlayerSuborigin&&(c.player_suborigin=this.getPlayerSuborigin());if(j._enablePlaybackSpeedLogging){d=this.getVideoElement().playbackRate;d=d!==0?d:this._lastLoggedPlaybackSpeed;c.current_playback_speed=d;this._lastLoggedPlaybackSpeed=d}this._logFunction(a,c)},_logReadyToPlay:function(){return},__setPendingPlayRequest:function(a){j._pendingPlayRequest=a},onPause:function(a){j._logNextPlayingEvent=!0;var c=this.getVideoElement();if(j._pendingPlayRequest){var d={debug_reason:this.getLastPlayReason()};j._pendingPlayRequest=!1;this._logEvent("cancelled_requested_playing",d);return}d=!!this._getVideoPlayerShakaConfig();d=c.ended||d&&b("dangerouslyOverrideMediaElementEndedProperty").isEnded(a)?"finished_playing":"paused";var e=this._recentPausedTime==null?this._getVideoCurrentTime():this._recentPausedTime;this._recentPausedTime=null;e&&(this._lastPlayedTime=e);e=this._lastPlayedTime;var f=this._lastStartTimePosition===g?this._lastPlayedTime:this._lastStartTimePosition;b("VideoPlayerHTML5Experiments").preventNegativeTimePositions&&(this._lastPlayedTime<0&&(e=0,this._lastStartTimePosition<0&&(f=0)));var h=a.lastPauseReason;if(d==="finished_playing")e=Math.max(e,c.duration);else if(this.preventPauseLoggingInMixin===!0)return;else this.preventPauseLoggingInMixin===!1&&(h=h||"unloaded");this._logEvent(d,this._amendEventTime({video_last_start_time_position:f,video_time_position:e,debug_reason:h},a));this._lastStartTimePosition=g},onEnded:function(){j._logNextPlayingEvent=!0,this._lastStartTimePosition!==g&&b("UserAgent").isBrowser("IE")&&this.onPause({})},onBlockedPausedRepresentationEnded:function(){j._hasBlockedPausedRepresentationEnded=!0},logRepresentationEnded:function(a){if(a){a={representation_id:a.representationID,next_representation_id:a.nextRepresentationID,stream_switch_reason:a.streamSwitchReason};b("VideoPlayerHTML5Experiments").newStateChangeCalculation&&(a=this._getWatchTimeClosingLogData(a));this._logEvent("representation_ended",a);if(b("VideoPlayerHTML5Experiments").newStateChangeCalculation){a=this._getVideoCurrentTime();this._lastStartTimePosition=a;this._lastPlayedTime=a}}},addWatchTimeData:function(a){this._lastStartTimePosition!=g&&this._lastPlayedTime!=g&&(a.video_last_start_time_position=this._lastStartTimePosition,a.video_time_position=this._lastPlayedTime,this._lastStartTimePosition=g);return a},getLastPlayReason:function(){return null},getVideoPlayReason:function(){return null},onPlaying:function(a){if(!j._logNextPlayingEvent)return;b("VideoPlayerHTML5Experiments").superficialUnpauseEventsFix&&(j._logNextPlayingEvent=!1);if(j._ignoreNextPlaying){j._ignoreNextPlaying=!1;return}var c=this.getLastPlayReason();j._pendingPlayRequest=!1;var d=this._loggedEvents.started_playing?"unpaused":"started_playing";c=this._amendEventTime({debug_reason:c,video_play_reason:this.getVideoPlayReason()},a);a=this._getVideoCurrentTime();if(b("VideoPlayerHTML5Experiments").useCurrentTimeAdjustment){var e=this.getVideoElement().currentTime;e=e-a;c.time_ms-=Math.round(e*1e3)}this._logEvent(d,c);this._lastStartTimePosition=a;this._lastPlayedTime=a;this._currentTimeAtLoadedMetadataCache=null},allowNextSeekInMixin:function(){j._allowNextSeek=!0},onSeeked:function(a){j._seeking=!1;var b=this._seekSourceTimePosition;this._seekSourceTimePosition=g;var c=this._currentTimeAtSeekStart;this._currentTimeAtSeekStart=g;if(this.preventSeekLoggingInMixin&&!j._allowNextSeek){j._pendingPlayRequest||(j._ignoreNextPlaying=!0);return}j._allowNextSeek=!1;j._ignoreNextPlaying=!1;var d={video_seek_source_time_position:b,video_last_start_time_position:b};this._fixOvewrittenGetVideoCurrentTime&&(d.video_seek_source_time_position=c);this.preventSeekLoggingInMixin&&(this._lastStartTimePosition!==g?d.video_last_start_time_position=this._lastStartTimePosition:d.video_last_start_time_position=b);b="scrubbed";j._fireSeekEvents&&(b="seeked",d={seek_from_video_time_position:c});this._logEvent(b,this._amendEventTime(d,a));c=this.getVideoElement();c.paused?this._lastStartTimePosition=g:this._lastStartTimePosition=this._getVideoCurrentTime()},onSeeking:function(a){this._currentTimeAtLoadedMetadataCache=null;j._seeking||(this._seekSourceTimePosition=this._getVideoCurrentTime(),j._seeking=!0);if(j._fixOverwrittenGetVideoCurrentTime)return;this._currentTimeAtSeekStart=g},onTimeUpdate:function(a){this._currentTimeAtLoadedMetadataCache=null;a=this.getVideoElement();a.paused||(this._lastPlayedTime=this._getVideoCurrentTime())},onPlaybackRateChange:function(a){var b=this.getVideoElement();b=b.playbackRate;this._lastLoggedPlaybackSpeed!=null&&b!==0&&b!==this._lastLoggedPlaybackSpeed&&this._logEvent("playback_speed_changed",this._amendEventTime({},a))},onVolumeChange:function(a){var c=this.getVideoElement(),d={},e=null;if(b("VideoPlayerHTML5Experiments").useFixedVolumeLogging){var f=c.muted,g=j._muted,h=c.volume,i=this._volume;d.current_volume=Math.round(h*100);this._volume=h;j._muted=f;f=f||h==0;g=g||i==0;if(g&&f)return;if(g!=f)f?e="muted":e="unmuted";else{if(i==h)return;h0?e=c.muted?"muted":"unmuted":(e=c.volume>this._volume?"volume_increase":"volume_decrease",d.current_volume=Math.round(c.volume*100)),j._muted=c.muted,this._volume=c.volume;this._logEvent(e,this._amendEventTime(d,a))},_amendEventTime:function(a,c){var d=this._useEventTime;b("VideoPlayerHTML5Experiments").fixEventTimeLogging&&(d=d&&c);if(d)return i(a,c);else a.time_ms=Date.now();return a},_getVideoCurrentTime:function(){var a;j._fixOverwrittenGetVideoCurrentTime?a=this.getVideoElement().currentTime:a=this._currentTimeAtSeekStart===g?this.getVideoElement().currentTime:this._currentTimeAtSeekStart;a=a.toFixed(2);b("VideoPlayerHTML5Experiments").useCurrentTimeAdjustment&&(this._currentTimeAtLoadedMetadataCache!=null&&(a=this._currentTimeAtLoadedMetadataCache.toFixed(2)));return b("VideoPlayerHTML5Experiments").fixCurrentTimeType?+a:a},_getVideoPlayerShakaConfig:function(){return this.getVideoPlayerShakaConfig&&typeof this.getVideoPlayerShakaConfig==="function"?this.getVideoPlayerShakaConfig():null},onLoadedMetadata:function(a){this._currentTimeAtLoadedMetadataCache=this.getVideoElement().currentTime},_overwriteVideoCurrentTimeProperty:function(a){var b=this;j._didOverwriteVideoCurrentTimeProperty=!1;try{var c=Object.getOwnPropertyDescriptor&&Object.getOwnPropertyDescriptor(HTMLMediaElement.prototype,"currentTime");if(!c)return;if(typeof c.get!=="function"||typeof c.set!=="function")return;Object.defineProperty&&Object.defineProperty(a,"currentTime",{get:function(){return c.get.call(this)},set:function(d){b._currentTimeAtSeekStart===g&&(b._currentTimeAtSeekStart=c.get.call(a)),c.set.call(a,d)},configurable:!0,enumerable:!0});j._didOverwriteVideoCurrentTimeProperty=!0}catch(a){}}};e.exports=j}),null); __d("LiveVideoCopyrightActionSubscription_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="9269552419821189"}),null); __d("LiveVideoCopyrightActionSubscription.graphql",["LiveVideoCopyrightActionSubscription_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"input"}],c=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"LiveVideoCopyrightActionSubscribeResponsePayload",kind:"LinkedField",name:"live_video_copyright_action_subscribe",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"action",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"timestamp",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"LiveVideoCopyrightActionSubscription",selections:c,type:"Subscription",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"LiveVideoCopyrightActionSubscription",selections:c},params:{id:b("LiveVideoCopyrightActionSubscription_facebookRelayOperation"),metadata:{subscriptionName:"live_video_copyright_action_subscribe"},name:"LiveVideoCopyrightActionSubscription",operationKind:"subscription",text:null}}}();e.exports=a}),null); __d("LiveVideoCopyrightActionSubscription",["BaseGraphQLSubscription","LiveVideoCopyrightActionSubscription.graphql"],(function(a,b,c,d,e,f,g){var h;a=function(a){function c(){return a.apply(this,arguments)||this}babelHelpers.inheritsLoose(c,a);var d=c.prototype;d.getTopic=function(a){return"gqls/"+this.getSubscriptionName()+"/video_id_"+a};d.getQuery=function(){return h!==void 0?h:h=b("LiveVideoCopyrightActionSubscription.graphql")};d.getQueryParameters=function(a){return{input:{video_id:a}}};return c}(c("BaseGraphQLSubscription"));g["default"]=a}),98); __d("MediaBufferingDetector",["Event","EventEmitter","SubscriptionsHandler","VideoPlayerExperiments","VideoPlayerHTML5Experiments","VideoPlayerShakaGlobalConfig","clearInterval","performanceNow","setInterval"],(function(a,b,c,d,e,f,g){var h;a=function(a){function b(b,d){var e;e=a.call(this)||this;e.$MediaBufferingDetector$p_1=b;e.$MediaBufferingDetector$p_2=new(c("SubscriptionsHandler"))();e.$MediaBufferingDetector$p_1.paused||e.$MediaBufferingDetector$p_8();e.$MediaBufferingDetector$p_2.addSubscriptions(c("Event").listen(e.$MediaBufferingDetector$p_1,"playing",function(){return e.$MediaBufferingDetector$p_9()}),c("Event").listen(e.$MediaBufferingDetector$p_1,"pause",function(){return e.$MediaBufferingDetector$p_10()}),c("Event").listen(e.$MediaBufferingDetector$p_1,"ended",function(){return e.$MediaBufferingDetector$p_11()}),c("Event").listen(e.$MediaBufferingDetector$p_1,"timeupdate",function(){return e.$MediaBufferingDetector$p_12()}));e.$MediaBufferingDetector$p_13("drop_buffering_detection_from_html5_api",!1)&&e.$MediaBufferingDetector$p_2.addSubscriptions(c("Event").listen(e.$MediaBufferingDetector$p_1,"waiting",function(){return e.$MediaBufferingDetector$p_14()}));return e}babelHelpers.inheritsLoose(b,a);var e=b.prototype;e.$MediaBufferingDetector$p_15=function(){var a=(h||(h=c("performanceNow")))(),b=this.$MediaBufferingDetector$p_1.currentTime;a=a-this.$MediaBufferingDetector$p_5;b=b-this.$MediaBufferingDetector$p_6;b=b*1e3;b=a-b;var d=c("VideoPlayerHTML5Experiments").disableBufferAtEndOfPlayback&&this.$MediaBufferingDetector$p_1.currentTime===this.$MediaBufferingDetector$p_1.duration;a*.2a)break;if(f<=a&&g>=a+1){d=!0;break}}d&&(a===this.$StaleVideoMonitor$p_2?this.emit("stale",(h||(h=c("performanceNow")))()-this.$StaleVideoMonitor$p_3,(a-this.$StaleVideoMonitor$p_2)*1e3):this.$StaleVideoMonitor$p_8())}};d.$StaleVideoMonitor$p_9=function(a){var b=this;this.$StaleVideoMonitor$p_10();this.$StaleVideoMonitor$p_4=c("setTimeoutAcrossTransitions")(function(){return b.$StaleVideoMonitor$p_7()},a)};d.$StaleVideoMonitor$p_10=function(){this.$StaleVideoMonitor$p_4!==null&&(c("clearTimeout")(this.$StaleVideoMonitor$p_4),this.$StaleVideoMonitor$p_4=null)};d.$StaleVideoMonitor$p_8=function(){this.$StaleVideoMonitor$p_6()};d.$StaleVideoMonitor$p_6=function(){this.$StaleVideoMonitor$p_5&&(this.$StaleVideoMonitor$p_2=this.$StaleVideoMonitor$p_5.currentTime,this.$StaleVideoMonitor$p_3=(h||(h=c("performanceNow")))(),this.$StaleVideoMonitor$p_9(i))};d.$StaleVideoMonitor$p_11=function(){this.$StaleVideoMonitor$p_1&&this.$StaleVideoMonitor$p_1.release()};d.notifyBuffering=function(){this.$StaleVideoMonitor$p_10()};d.notifyBuffered=function(){this.$StaleVideoMonitor$p_9(i)};d.destroy=function(){this.$StaleVideoMonitor$p_11(),this.$StaleVideoMonitor$p_10(),this.$StaleVideoMonitor$p_5=null};return b}(c("EventEmitter"));g["default"]=a}),98); __d("TimeRanges",["invariant"],(function(a,b,c,d,e,f,g,h){a=function(){function a(a){this.$1=[],this.$1=a}var b=a.prototype;b.start=function(a){this.$1[a]||h(0,2205);return this.$1[a].startTime};b.end=function(a){this.$1[a]||h(0,2205);return this.$1[a].endTime};b.length=function(){return this.$1.length};return a}();g["default"]=a}),98); __d("VideoAsyncLoggerHelper",["SubscriptionsHandler"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b,d){var e,f=new(c("SubscriptionsHandler"))(),g=!1,h=function(){g||(a(),g=!0),e&&(clearTimeout(e),e=null),f.release()};e=setTimeout(h,0);b.forEach(function(a){f.addSubscriptions(d.addListener(a,h))})}g.operateAsync=a}),98); __d("VideoCaptionsTextSize",[],(function(a,b,c,d,e,f){a=Object.freeze({BIGGEST:200,BIGGER:175,BIG:150,MEDIUM:125,DEFAULT:100,SMALL:75,SMALLEST:50});f["default"]=a}),66); __d("VideoChannelViewChainLengthManager",["guid"],(function(a,b,c,d,e,f,g){var h=function(){function a(a){this.$2=0,this.$5={},this.$1=c("guid")(),this.$3=a,this.$5[a]=0,this.$4=a}var b=a.prototype;b.registerVideoID=function(a){this.$5[a]===void 0&&(this.$2++,this.$5[a]=this.$2),this.$4=a};b.getSessionID=function(){return this.$1};b.getCurrentChainLength=function(){return this.$5[this.$4]!==void 0?this.$5[this.$4]:null};return a}(),i={};function j(a){a=a.toString();i[a]||(i[a]=new h(a))}function a(a){a=a&&a.toString();a=i[a];return!a?{video_chaining_depth_level:null,video_chaining_session_id:null}:{video_chaining_depth_level:a.getCurrentChainLength(),video_chaining_session_id:a.getSessionID()}}function k(a,b){a=a.toString();j(a);i[a].registerVideoID(b)}function b(a,b){var c=a;if(b){b=b.decode();b.root_id&&(c=b.root_id)}c&&(c=c.toString());k(c,a)}g.getLoggingData=a;g.registerChainingInfos=b}),98); __d("VideoConfig",[],(function(a,b,c,d,e,f){function a(a){Object.assign(this,a)}e.exports=a}),null); __d("VideoControllerPlayingStateEmitter",["EventEmitter","SubscriptionsHandler"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){function b(b){var c;c=a.call(this)||this;c.$VideoControllerPlayingStateEmitter$p_2=null;c.$VideoControllerPlayingStateEmitter$p_3=b;return c}babelHelpers.inheritsLoose(b,a);var d=b.prototype;d.enable=function(){var a=this;this.$VideoControllerPlayingStateEmitter$p_4().addSubscriptions(this.$VideoControllerPlayingStateEmitter$p_3.addListener("stateChange",function(){var b=a.$VideoControllerPlayingStateEmitter$p_2;a.$VideoControllerPlayingStateEmitter$p_2=a.$VideoControllerPlayingStateEmitter$p_3.getState();if(a.$VideoControllerPlayingStateEmitter$p_2===b)return;a.$VideoControllerPlayingStateEmitter$p_5(a.$VideoControllerPlayingStateEmitter$p_2)}));this.$VideoControllerPlayingStateEmitter$p_2=this.$VideoControllerPlayingStateEmitter$p_3.getState();this.$VideoControllerPlayingStateEmitter$p_5(this.$VideoControllerPlayingStateEmitter$p_2)};d.setOnPlaying=function(a){this.$VideoControllerPlayingStateEmitter$p_4().addSubscriptions(this.addListener("play",a))};d.setOnPaused=function(a){this.$VideoControllerPlayingStateEmitter$p_4().addSubscriptions(this.addListener("pause",a))};d.disable=function(){this.$VideoControllerPlayingStateEmitter$p_2=null,this.$VideoControllerPlayingStateEmitter$p_1&&(this.$VideoControllerPlayingStateEmitter$p_1.release(),this.$VideoControllerPlayingStateEmitter$p_1=null)};d.$VideoControllerPlayingStateEmitter$p_4=function(){this.$VideoControllerPlayingStateEmitter$p_1||(this.$VideoControllerPlayingStateEmitter$p_1=new(c("SubscriptionsHandler"))());return this.$VideoControllerPlayingStateEmitter$p_1};d.$VideoControllerPlayingStateEmitter$p_5=function(a){a==="playing"?this.emit("play"):a==="paused"&&this.emit("pause")};return b}(c("EventEmitter"));g["default"]=a}),98); __d("VideoCover",["invariant","Animation","Bootloader","CSS","EventListener","Promise","SubscriptionsHandler","promiseDone","setTimeout"],(function(a,b,c,d,e,f,g,h){var i;a=function(){function a(a,e,f,g,j,k){var l=this;g===void 0&&(g=null);j===void 0&&(j=!1);k===void 0&&(k=0);this.$7=new(c("SubscriptionsHandler"))();this.$15=function(){l.$5&&d("CSS").show(l.$1)};this.$16=function(){l.$5&&d("CSS").hide(l.$1)};this.$11=function(){l.$3!=null&&l.$3.length>0?c("Bootloader").loadModules(["PhotoSnowlift"],function(a){return a.bootstrap(l.$3)},"VideoCover"):l.$8&&l.$8.clickVideo()};this.$12=function(){l.$9&&l.$8&&!l.$8.hasSeenClick()?c("promiseDone")(new(i||(i=b("Promise")))(function(a){return c("setTimeout")(a,l.$10)}),function(a){return l.$17()},function(a){return l.$17()}):d("CSS").hide(l.$1)};this.$14=function(){if(l.$8){var a=l.$8.getOption("Looping","isLooping");if(l.$4||a)return;d("CSS").show(l.$1)}};this.$13=function(){l.$8&&l.$8.isState("fallback")&&l.$6&&d("CSS").show(l.$1)};a instanceof Element||h(0,4829);this.$1=a;e[0]instanceof Element||h(0,4830);this.$2=e[0];this.$3=f;this.$9=j;this.$10=k;g&&(this.$4=g.hiddenAfterFinish,this.$5=g.showWhileBuffering,this.$6=g.showAfterFallback);c("EventListener").listen(this.$1,"click",this.$11)}var e=a.prototype;e.disable=function(){this.$7.release(),this.$8&&this.$8.unregisterOption("VideoCover","coverElement"),this.$8=null};e.enable=function(a){var b=this;this.$8=a;a.getState()==="playing"&&this.$12();this.$7.addSubscriptions(a.addListener("stateChange",this.$13),a.addListener("beginPlayback",this.$12),a.addListener("finishPlayback",this.$14),a.addListener("buffering",this.$15),a.addListener("buffered",this.$16));a.registerOption("VideoCover","coverElement",function(){return b.$1})};e.getCurrentCover=function(){return this.$2};e.setSnowLiftURI=function(a){this.$3=a};e.$17=function(){new(c("Animation"))(this.$1).from("opacity",1).to("opacity",0).duration(1e3).hide().go()};return a}();g["default"]=a}),98); __d("VideoData",["invariant"],(function(a,b,c,d,e,f,g,h){a=function(){function a(a){this.$1=a||{aspect_ratio:0,original_height:0,original_width:0,video_id:""}}var b=a.prototype;b.hasHD=function(){return!!this.$1.hd_src};b.getP2PSettings=function(){return this.$1.p2p_settings};b.getEncodingTag=function(){return this.$1.encoding_tag};b.getContentCategory=function(){return this.$1.content_category};b.getVideoID=function(){return this.$1.video_id};b.getVideoURL=function(){return this.$1.video_url};b.getAspectRatio=function(){return this.$1.aspect_ratio};b.getRotation=function(){return this.$1.rotation||0};b.getCaptionsAutogeneratedIndicatorConfig=function(){return this.$1.captions_autogenerated_indicator_config};b.hasSubtitles=function(){return!!this.$1.subtitles_src};b.hasDashManifest=function(){return!!this.$1.dash_manifest};b.getDashManifest=function(){return this.$1.dash_manifest};b.getDashPrefetchedRepresentationIDs=function(){return this.$1.dash_prefetched_representation_ids};b.getSubtitlesSrc=function(){this.$1.subtitles_src||h(0,1109);return this.$1.subtitles_src};b.getPlayableSrcSD=function(){return this.$1.sd_src_no_ratelimit?this.$1.sd_src_no_ratelimit:this.getPlayableSrcRateLimitedSD()};b.getPlayableSrcHD=function(){return this.$1.hd_src_no_ratelimit?this.$1.hd_src_no_ratelimit:this.getPlayableSrcRateLimitedHD()};b.getPlayableSrcRateLimitedSD=function(){return this.$1.sd_src};b.getPlayableSrcRateLimitedHD=function(){return this.$1.hd_src};b.getLiveManifestUrl=function(){this.isLiveStream()||h(0,1110);return this.getPlayableSrcRateLimitedSD()};b.hasRateLimit=function(){return!!this.$1.sd_src_no_ratelimit};b.getStreamType=function(){this.$1.stream_type||h(0,1111);return this.$1.stream_type};b.isBroadcast=function(){return!!this.$1.is_broadcast};b.isServableViaFbms=function(){return!!this.$1.is_servable_via_fbms};b.isLiveStream=function(){return!!this.$1.is_live_stream};b.isHls=function(){return!!this.$1.is_hls};b.isGaming=function(){return this.$1.content_category==="gaming"};b.isLowLatency=function(){return!!this.$1.is_low_latency};b.getDesiredLatencyMs=function(){return this.$1.desired_latency_ms};b.getLatencyToleranceMs=function(){return this.$1.latency_tolerance_ms};b.isFacecastAudio=function(){return!!this.$1.is_facecast_audio};b.liveRoutingToken=function(){return this.$1.live_routing_token};b.getHDTag=function(){return this.$1.hd_tag};b.getSDTag=function(){return this.$1.sd_tag};b.getProjection=function(){return this.$1.projection};b.getPlayerVersionOverwrite=function(){return this.$1.player_version_overwrite};b.getFalloverData=function(){var b=this.$1.fallover_data;return b?b.map(function(b){return new a(b)}):[]};b.getSphericalConfig=function(){return this.$1.spherical_config};b.isSpherical=function(){return!!this.$1.is_spherical};b.getOriginalHeight=function(){return this.$1.original_height};b.getOriginalWidth=function(){return this.$1.original_width};b.getOverrideConfig=function(){return this.$1.override_config};b.getRawData=function(){return this.$1};b.getPrefetchCache=function(){return this.$1.prefetch_cache};b.getWidevineCert=function(){return this.$1.widevine_cert};b.getFairplayCert=function(){return this.$1.fairplay_cert};b.getDRMHelper=function(){var a;return(a=this.$1)==null||(a=a.extra_drm_info)==null?void 0:a.drm_helper};b.getGraphApiVideoLicenseUri=function(){var a;return(a=this.$1)==null||(a=a.extra_drm_info)==null?void 0:a.graph_api_video_license_uri};b.getVideoLicenseUriMap=function(){var a;return(a=this.$1)==null||(a=a.extra_drm_info)==null?void 0:a.video_license_uri_map};b.isLiveTraceEnabledOnPlayer=function(){return!!this.$1.is_live_trace_enabled_on_player};b.getManifestServiceParam=function(){var a;return(a=this.$1)==null?void 0:a.ms_param};return a}();g["default"]=a}),98); __d("VideoNodeStaledScreen",["CSS","EventListener","SubscriptionsHandler"],(function(a,b,c,d,e,f,g){a=function(){function a(a){var b=this;this.$3=new(c("SubscriptionsHandler"))();this.$5=function(){d("CSS").show(b.$1)};this.$4=function(){d("CSS").hide(b.$1)};this.$1=a;this.$2=null;c("EventListener").listen(this.$1,"click",this.$4)}var b=a.prototype;b.enable=function(a){this.$2=a,this.$3.addSubscriptions(this.$2.addListener("videoNodeStaled",this.$5))};b.disable=function(){this.$3.release(),this.$2=null};return a}();g["default"]=a}),98); __d("VideoPermalinkURI",[],(function(a,b,c,d,e,f){function a(a){return g(a)!==null}function g(a){if(i(a)){var b=a.getQueryData();return b.v!=null?{video_id:String(b.v),set_token:b.set!=null?String(b.set):b.set}:null}b=a.getPath();b[b.length-1]==="/"&&(b=b.substring(0,b.length-1));a=b.split("/");if(a.length>=3&&a[2]==="videos")if(a.length===4&&h(a[3]))return{video_id:a[3],set_token:null};else if(a.length===5){if(h(a[4]))return{video_id:a[4],set_token:a[3]};else if(h(a[3]))return{video_id:a[3],story_id:a[4]}}else if(a.length===6&&h(a[4]))return{video_id:a[4],set_token:a[3],story_id:a[5]};return null}function h(a){return/^\d+$/.exec(a)!==null}function i(a){a=a.getPath();a[a.length-1]==="/"&&(a=a.substring(0,a.length-1));return a==="/photo.php"||a==="/force_photo/photo.php"||a==="/photo"||a==="/force_photo/photo/index.php"||a==="/photo/index.php"||a==="/force_photo/photo"||a==="/video.php"||a==="/video/video.php"?!0:!1}function b(a){a=a.getDomain();return a==="fb.watch"||a==="fbwat.ch"}function c(a,b){return a+b+"/"}f.isValid=a;f.parse=g;f.isNumeric=h;f.isValidLegacy=i;f.isValidFBWatchDomain=b;f.getCustomStoryURI=c}),66); __d("VideoPlayerABRQualityTracker",[],(function(a,b,c,d,e,f){a=function(){function a(a){this.$1=a,this.$2=null}var b=a.prototype;b.setLastQualitySwitchReason=function(a){this.$2=a};b.getABREvaluation=function(){var a=[];this.$1&&(a=this.$1.flushABREvaluationSet());var b=0,c=0,d=0,e=0,f=this.$2;for(var g=0;g0};c.$37=function(a){if(this.$34())return;this.$16=this.$27;this.$15=Date.now();a!==void 0&&this.$5.started_playing&&(this.$17=a)};c.$47=function(){if(this.$48())return;this.$21=Date.now()};c.$48=function(){return this.$21>0};c.$49=function(){return!this.$48()?0:Date.now()-this.$21};c.$50=function(){return this.$34()?Date.now()-this.$15:0};c.$40=function(){if(this.$48()){var a=this.$49();this.$22+=a;this.$20+=a;this.$23+=1;this.$19+=1}};c.$46=function(){this.$48()&&(this.$21=0)};c.$33=function(){this.$22=0,this.$23=0,this.$46()};c.$39=function(){if(this.$34()){var a=this.$50();this.$17!==null&&(this.$18=a);this.$14+=a;this.$8+=a;this.$12++;a>200&&this.$13++;this.$7++;this.$16&&(this.$10+=a,this.$9++,this.$16=!1);k&&this.$6.push(n())}};c.$42=function(){this.$34()&&(this.$15=0)};c.$35=function(a){return a&&typeof a==="object"?JSON.stringify(a):a};c.$36=function(){var a=this;this.$29||(this.$29=setInterval(function(){return a.$51()},i))};c.$51=function(){var a=typeof this.$26==="function"&&this.$26(),b=typeof this.$25==="function"&&this.$25();typeof a==="number"&&typeof b==="number"&&(a!==this.$30||b!==0)&&(this.$28.push({time_stamp:n(),total_frames:a,dropped_frames:b}),this.$30=a)};c.$45=function(){if(!this.$28.length)return null;var a=[];for(var b of this.$28)a.push([b.time_stamp,b.total_frames,b.dropped_frames]);this.$28=[];return JSON.stringify(a)};c.stopCollectingVideoFramesInfo=function(){clearInterval(this.$29),this.$29=null,this.$28=[]};c.getCumulativeStallCount=function(){return this.$7};c.getCumulativeInPlayStallCount=function(){return this.$9};c.getStallCount=function(){return this.$12};c.getCumulativeStallTime=function(){return this.$8+this.$50()};c.getCumulativeInPlayStallTime=function(){return this.$10+(this.$16?this.$50():0)};c.getCumulativeInterruptCount=function(){return this.$19};c.getCumulativeInterruptTime=function(){return this.$20+this.$49()};c.$43=function(a){a.stall_time=Math.max(0,this.$14),a.stall_count=this.$12,a.stall_count_200_ms=this.$13,this.$18&&(a.first_stall_time=this.$18,a.first_stall_start_position=this.$17)};c.$44=function(a){a.interrupt_time=Math.max(0,this.$22),a.interrupt_count=this.$23};c.$41=function(){var a=n(),b=a-m;this.$6=this.$6.filter(function(a){return a>=b});k||this.$12>0&&this.$6.push(a);return this.$6.length};c.$32=function(){this.$14=0,this.$15=0,this.$12=0,this.$13=0,this.$17=null,this.$18=0};c.$38=function(){this.$6=[]};c.getFTdata=function(){return this.$3};return a}();a.Sources=b("VideoPlayerLoggerSource");a.Errors=b("VideoPlayerLoggerErrors");a.FallbackReasons=b("VideoPlayerLoggerFallbackReasons");a.ErrorStates=b("VideoPlayerLoggerErrorStates");a.PlayerStates=b("VideoPlayerLoggerPlayerStates");e.exports=a}),null); __d("VideoPlayerQualitiesArray",[],(function(a,b,c,d,e,f){"use strict";var g=720,h=2160;function a(a){return a}function i(a){return a.length>0?a[a.length-1]:void 0}function j(a){return a.length>0?a[0]:void 0}function b(a){return a.length>1}function k(a,b){a=i(a);return a!=null&&b!=null&&b===a}function c(a){return a!=null&&(a==="HD"||parseInt(a,10)>=g)}function d(a){return a!=null&&parseInt(a,10)>=h}function e(a,b){var c=j(a),d=i(a);if(k(a,b)){if(c!=null)return c}else if(d!=null)return d;return void 0}f.ensureVideoPlayerQualitiesArray=a;f.getHighestVideoQuality=i;f.getLowestVideoQuality=j;f.hasHDVideoQuality=b;f.isHDSelectedVideoQuality=k;f.isVideoQualityTypicallyConsideredHD=c;f.isVideoQualityTypicallyConsideredHD4K=d;f.getPreferredVideoQualityForToggleHD=e}),66); __d("VideoPlayerReasonTransitionHelper",[],(function(a,b,c,d,e,f){a=function(){function a(a){this.$1=a}var b=a.prototype;b.getReason=function(){return this.$1};return a}();f["default"]=a}),66); __d("VideoPlayerShakaBandwidthEstimator",["CacheStorage","Run","requireWeak"],(function(a,b,c,d,e,f,g){var h;c("requireWeak")("Shaka",function(a){h=a.util.EWMACacheBandwidthEstimator});var i=null,j=!1,k=30,l=2e6,m=25e4,n=123034;a=function(){function a(){var a=this,b=new(c("CacheStorage"))("localstorage","_video_"),e=b.get("bandwidthEstimate");this.$1={isMockObject:!0,getBandwidth:function(a){return e},getFastMovingBandwidth:function(){return e}};h&&(this.$1=new h(k,l,function(){},e),this.$1.isMockObject=!1);d("Run").onUnload(function(){b.set("bandwidthEstimate",a.$1.getBandwidth())})}var b=a.prototype;b.getEstimator=function(){return this.$1};a.getInstance=function(){(i===null||i.getEstimator().isMockObject&&h)&&(i=new a());return i};a.getEstimator=function(){return a.getInstance().getEstimator()};a.getBandwidth=function(b){var c=a.getEstimator();return c.getBandwidth(b)};a.getBandwidthByVideoType=function(b){return a.getBandwidth(a.getBandwidthModel(b))};a.getBandwidthModel=function(a){return a?"aggressive":"conservative"};a.isAutoplayBandwidthRestrained=function(b){var c=a.getEstimator(),d;j?d=c.getFastMovingBandwidth():d=c.getBandwidth();c=b?m:n;d===null||d>=c?j=!1:j=!0;return j};return a}();g["default"]=a}),98); __d("VideoPlayerShakaConfigContextProvider",[],(function(a,b,c,d,e,f){"use strict";a=function(){function a(){this.$1={}}var b=a.prototype;b.setContext=function(a,b){if(this.$1[a]!==b){var c;this.$1=babelHelpers["extends"]({},this.$1,(c={},c[a]=b,c))}};b.setAllContexts=function(a){this.$1=a};b.getAllContexts=function(){return this.$1};return a}();f["default"]=a}),66); __d("VideoPlayerShakaConfig",["VideoPlayerContextSensitiveConfigResolver","VideoPlayerShakaConfigContextProvider"],(function(a,b,c,d,e,f,g){var h={};a=function(){function a(a,b,d){this.$1=new(c("VideoPlayerShakaConfigContextProvider"))(),this.$2=b||null,this.$3=new(c("VideoPlayerContextSensitiveConfigResolver"))(d),this.$3.setContexts(a||{}),a&&this.$1.setAllContexts(a)}a.setGlobalOverrideConfig=function(a){h=a};var b=a.prototype;b.setContext=function(a,b){var c=this.$1.getAllContexts();this.$1.setContext(a,b);a=this.$1.getAllContexts();c!==a&&this.$3.setContexts(a)};b.setOverrideConfig=function(a){this.$2=a};b.getBool=function(a,b){a=this.$4(a,b);return typeof a==="boolean"?a:b};b.getNumber=function(a,b){a=this.$4(a,b);return typeof a==="number"?a:b};b.getString=function(a,b){a=this.$4(a,b);return typeof a==="string"?a:b};b.getAllContexts=function(){return this.$1.getAllContexts()};b.$4=function(a,b){if(!!h&&typeof h[a]===typeof b)return h[a];if(typeof this.$3.getValue(a)===typeof b)return this.$3.getValue(a);return!!this.$2&&typeof this.$2[a]===typeof b?this.$2[a]:null};return a}();g["default"]=a}),98); __d("VideoPlayerUIComponentDrawerController",["VideoPlayerUIComponentDrawer"],(function(a,b,c,d,e,f,g){"use strict";var h=function(a,b){return a.getPriority()-b.getPriority()};a=function(){function a(){this.$1=[]}var b=a.prototype;b.register=function(a,b){var d=this;b=new(c("VideoPlayerUIComponentDrawer"))(a,b);b.addListener("reserve",function(){return d.$2(a)});b.addListener("release",function(){return d.$2(a)});b.addListener("heightChange",function(){return d.$2(a)});this.$1.push(b);this.$1.sort(h);return b};b.$2=function(a){var b=0;this.$1.forEach(function(c){c.getPriority()>a&&c.emit("reposition",b),c.isReserved()&&(b+=c.getHeight())})};return a}();g["default"]=a}),98); __d("VideoViewabilityKeyEvents",[],(function(a,b,c,d,e,f){e.exports={Events:["entered_fs","exited_fs","finished_playing","paused","player_format_changed","started_playing","unpaused"]}}),null); __d("ViewabilityVideoElement",["UITinyViewportAction","getElementPosition","getViewportDimensions"],(function(a,b,c,d,e,f,g){var h=42;a=function(){function a(a,b,c,d){d===void 0&&(d=!1),this.$1=a,this.$2=b,this.$3=c,this.$4=d}var b=a.prototype;b.feedViewabilityPercentage=function(){var a=c("UITinyViewportAction").isTinyHeight();return this.$5(!a)};b.viewabilityPercentage=function(){return this.$5(!1)};b.isTopElement=function(a,b,c){b=document.elementFromPoint(b,c);return b===a||!!a&&a.contains(b)||!!b&&b.contains(a)};b.$5=function(a){var b=c("getViewportDimensions")(),d=b.width;b=b.height;var e=this.$4&&this.$3?this.$3:this.$1;e=c("getElementPosition")(e);if(e.width===0||e.height===0)return 0;var f=e.x,g=e.x+e.width,i=e.y,j=e.y+e.height;a=a?h:0;if(g<=0||f>=d||j<=a||i>=b)return 0;g=Math.min(g,d)-Math.max(f,0);d=Math.min(j,b)-Math.max(i,a);return g*d*100/(e.width*e.height)};return a}();g["default"]=a}),98); __d("VideoViewabilityLogging",["VideoPlayerExperiments","ViewabilityVideoElement","performanceNow"],(function(a,b,c,d,e,f,g){var h,i=new Map([[0,0],[25,25],[50,50],[75,75],[100,100]]);a=function(){function a(a,b,d,e){var f=this;this.$14=function(a){if(!f.$8())return;a=(h||(h=c("performanceNow")))();a-f.$1>c("VideoPlayerExperiments").viewabilityPollingRate&&(f.$12(),f.$1=a);f.$13()};this.$11=function(){f.$16()};this.$10=function(){f.setLastLoggedViewability(f.getViewability()),f.$15()};this.$1=0;this.$5=a;this.$6=new(c("ViewabilityVideoElement"))(b,d,e,this.$5.isSpherical());this.$7()}var b=a.prototype;b.getViewability=function(){var a;this.$5.isInline()?a=this.$6.feedViewabilityPercentage():a=this.$6.viewabilityPercentage();c("VideoPlayerExperiments").pauseVideosOnViewability&&a<50&&this.$8()&&this.$5.pause();return this.$9(a)};b.setLastLoggedViewability=function(a){this.$4=a};b.$7=function(){this.$5.addListener("beginPlayback",this.$10),this.$5.addListener("pausePlayback",this.$11)};b.$12=function(){var a=this.getViewability();a!=this.$4&&(this.$5.logEvent("viewability_changed",{current_viewability_percentage:a,last_viewability_percentage:this.$4}),this.$4=a)};b.$13=function(){var a=this,b=c("VideoPlayerExperiments").organicViewabilityLoggingUseSetTimeout,d=c("VideoPlayerExperiments").organicViewabilityLoggingPollingTimeMs;b=!this.$5.isAd()&&b?function(){a.$3=window.setTimeout(function(){return a.$14((h||(h=c("performanceNow")))())},d)}:function(){a.$2=window.requestAnimationFrame(a.$14)};b()};b.$15=function(){this.$13()};b.$16=function(){this.$17()};b.$17=function(){var a=this,b=c("VideoPlayerExperiments").organicViewabilityLoggingUseSetTimeout;b=!this.$5.isAd()&&b?function(){return window.clearTimeout(a.$3)}:function(){return window.cancelAnimationFrame(a.$2)};b()};b.$8=function(){return this.$5.getVideoAPI().isPaused()!==void 0?!this.$5.getVideoAPI().isPaused():this.$5.getState()==="playing"};b.$9=function(a){var b=-2;if(a<=0)return b;for(var c of i){var d=c[0],e=c[1];a>=d&&(b=e)}return b};return a}();g["default"]=a}),98); __d("VideoVisibilityObserver",["EventEmitter","VideoPlayerExperiments","intersectionObserverEntryIsIntersecting"],(function(a,b,c,d,e,f,g){var h=[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1];a=44;var i="-"+a+"px 0px 0px";b=function(a){function b(b){var d;d=a.call(this)||this;d.$VideoVisibilityObserver$p_4=function(a){a=a[a.length-1];var b=d.$VideoVisibilityObserver$p_1,e=d.$VideoVisibilityObserver$p_2;d.$VideoVisibilityObserver$p_1=a.intersectionRatio;d.$VideoVisibilityObserver$p_2=c("intersectionObserverEntryIsIntersecting")(a);(b!==d.$VideoVisibilityObserver$p_1||e!==d.$VideoVisibilityObserver$p_2)&&d.emit("visibilityChanged",d.$VideoVisibilityObserver$p_1)};d.$VideoVisibilityObserver$p_1=0;d.$VideoVisibilityObserver$p_2=!1;var e=h,f=c("VideoPlayerExperiments").videoVisibilityObserverUseMinimumThreshold;f&&(e=[.5]);d.$VideoVisibilityObserver$p_3=new IntersectionObserver(d.$VideoVisibilityObserver$p_4,{threshold:e,rootMargin:i});d.$VideoVisibilityObserver$p_3.observe(b);return d}babelHelpers.inheritsLoose(b,a);var d=b.prototype;d.destroy=function(){this.$VideoVisibilityObserver$p_3&&(this.$VideoVisibilityObserver$p_3.disconnect(),this.$VideoVisibilityObserver$p_3=null)};d.getIsIntersecting=function(){return this.$VideoVisibilityObserver$p_2};d.getCurrentIntersectionRatio=function(){return this.$VideoVisibilityObserver$p_1};return b}(c("EventEmitter"));g["default"]=b}),98); __d("ViewportTrackingHelper",["DOMDimensions","ge","getElementPosition","getElementRect","getViewportDimensions"],(function(a,b,c,d,e,f,g){"use strict";function a(a,b){if(a===b)return!0;while(a&&a.parentElement){if(a.parentElement===b)return!0;a=a.parentElement}return!1}function h(a,b){return j(c("getViewportDimensions")(),a,b)}function b(a,b){var d=c("ge")("pagelet_bluebar");return d==null?h(a,b):j(c("getViewportDimensions")(),a,b,d.clientHeight)}var i=function(a,b){a=c("getElementRect")(a);b=c("getElementRect")(b);return b.top>=a.top&&b.bottom<=a.bottom&&b.left>=a.left&&b.right<=a.right};function j(a,b,e,f){f===void 0&&(f=0);var g=c("getElementPosition")(b);b=d("DOMDimensions").getElementDimensions(b);if(!g.x&&!g.y&&!b.height&&!b.width)return!1;f=Math.max(g.y,f);g=Math.min(g.y+b.height,a.height);a=Math.min(b.height,e);return g-f>=a}function e(a,b){var c=k(a);a=d("DOMDimensions").getElementDimensions(a);a=Math.min(a.height,b);return c>=a?c:0}function k(a){var b=c("getElementPosition")(a);a=d("DOMDimensions").getElementDimensions(a);if(!b.x&&!b.y&&!a.x&&!a.y)return 0;var e=c("getViewportDimensions")().height,f=Math.max(b.y,0);b=Math.min(b.y+a.height,e);return b-f}function f(a){var b=!1,c=[];for(var d=0;d0){a=f.$VideoPlayerController73==="tahoe"&&f.isLiveVideo();f.isState("playing")&&!(a&&c("TahoeVariables").neverAutoPauseLive)&&!f.$VideoPlayerController122&&(f.pause("page_visibility_initiated"),f.$VideoPlayerController69=!0)}}}),c("Arbiter").subscribe("layer_hidden",function(a,b){$.has(b.type)&&(c("VideoPlayerExperiments").addViewabilityFixEnabled?f.$VideoPlayerController21=Math.max(0,f.$VideoPlayerController21-1):f.$VideoPlayerController21-=1,f.$VideoPlayerController21===0&&(b.type!=="Spotlight"&&c("Bootloader").loadModules(["VideoAutoplayControllerX"],function(a){a.setShouldAutoplay(!0)},"VideoPlayerController"),f.$VideoPlayerController69&&(f.play("page_visibility_initiated"),f.$VideoPlayerController69=!1)))}))}f.$VideoPlayerController7.addSubscriptions(c("Arbiter").subscribe("share_dialog_closed",function(a,b){if(!b.root)return;if(!f.$VideoPlayerController70)return;d("ViewportTrackingHelper").isDescendantOf(f.$VideoPlayerController70,b.root)&&f.mute()}));c("VideoPlayerMemLeakExperiments").www_videos_memleak_on_tv?f.$VideoPlayerController7.addSubscriptions(d("Run").onLeave(function(){if(f.$VideoPlayerController100||c("VideoPlayerExperiments").persistentWNSEnabled&&f.$VideoPlayerController73==="watch_scroll")return;f.cleanOnLeave()})):d("Run").onLeave(function(){if(f.$VideoPlayerController100||c("VideoPlayerExperiments").persistentWNSEnabled&&f.$VideoPlayerController73==="watch_scroll")return;f.cleanOnLeave()});f.$VideoPlayerController12=K||[];f.$VideoPlayerController12.forEach(function(a){var b=c("getVideoComponentName")(a)||"";a&&typeof a.enable==="function"?c("VideoPlayerExperiments").enableComponentGuards?(o||(o=c("ErrorUtils"))).applyWithGuard(a.enable,a,[f],null,"VideoPlayerController Component Enable Guard: "+b):a.enable(f):c("FBLogger")("video").warn("no_enable_method_on_component: %s",b)});f.$VideoPlayerController52=1;f.$VideoPlayerController94=!1;f.$VideoPlayerController91&&(f.shouldCalculateViewability()?(f.$VideoPlayerController94=c("VideoPlayerExperiments").enableViewabilityLogging||c("VideoPlayerExperiments").enableVideoSampledViewabilityLogging&&!!f.$VideoPlayerController113,f.isInstreamAd()&&(f.$VideoPlayerController94=f.$VideoPlayerController94&&(c("VideoPlayerExperiments").enableInstreamAdViewabilityLogging||c("VideoPlayerExperiments").enableVideoSampledViewabilityLogging&&!!f.$VideoPlayerController113))):f.$VideoPlayerController94=c("VideoPlayerExperiments").enableViewabilityLoggingForOrganic);f.$VideoPlayerController94&&f.$VideoPlayerController91&&(f.$VideoPlayerController95=new(c("VideoViewabilityLogging"))(f,f.$VideoPlayerController91,f.$VideoPlayerController70,f.$VideoPlayerController15));f.$VideoPlayerController32=!1;f.$VideoPlayerController34=fa;f.isLiveVideo()&&(f.$VideoPlayerController16=c("LiveVideoCopyrightActionSubscription").subscribe(f.getVideoID(),function(a){if(a.live_video_copyright_action_subscribe==null)return;var b=a.live_video_copyright_action_subscribe.action.toLowerCase();switch(b){case"block":if(f.$VideoPlayerController34)break;f.emit("blockVideo");f.destroy();break;case"mute":f.emit("blockAudio",f.$VideoPlayerController34);f.$VideoPlayerController32=!0;f.$VideoPlayerController34||f.mute();break;case"unmute":f.emit("unblockAudio",f.$VideoPlayerController34);f.$VideoPlayerController32=!1;f.$VideoPlayerController34||f.unmute();break}f.$VideoPlayerController134(a.live_video_copyright_action_subscribe.action,a.live_video_copyright_action_subscribe.timestamp)}));f.$VideoPlayerController135();return f}babelHelpers.inheritsLoose(e,a);var f=e.prototype;f.$VideoPlayerController135=function(){var a="v:"+this.$VideoPlayerController31;this.addListener("beginPlayback",function(){d("WebSessionExtender").subscribe(a,"video-on-blue")});this.addListener("pausePlayback",function(){d("WebSessionExtender").unsubscribe(a)});this.addListener("finishPlayback",function(){d("WebSessionExtender").unsubscribe(a)})};f.setVideoPriorityAdjustment=function(a){this.$VideoPlayerController112.notifyAdjustment(a)};f.addListener=function(){var b;for(var c=arguments.length,d=new Array(c),e=0;e=0;d--){var e=b[d],f=c("getVideoComponentName")(e)||"";e&&typeof e.disable==="function"?c("VideoPlayerExperiments").enableComponentGuards?(o||(o=c("ErrorUtils"))).applyWithGuard(e.disable,e,[this],null,"VideoPlayerController Component Disable Guard: "+f):e.disable(this):c("FBLogger")("video").warn("no_disable_method_on_component: %s",f)}this.$VideoPlayerController86&&this.getVideoAPI().destroy(a);this.$VideoPlayerController50.stopCollectingVideoFramesInfo();this.setState("destroyed");this.$VideoPlayerController7.release();a.skipRemoveAllListeners||this.removeAllListeners();this.$VideoPlayerController23&&(this.$VideoPlayerController23.unsubscribe(),this.$VideoPlayerController23=null);this.stopHeartbeat();c("VideoPlayerMemLeakExperiments").www_videos_memleak_on_tv?(this.$VideoPlayerController20.stopUnifiedCVC(),this.$VideoPlayerController20.leave()):this.$VideoPlayerController20.stopUnifiedCVC();this.$VideoPlayerController16&&(this.$VideoPlayerController16.unsubscribe(),this.$VideoPlayerController16=null);c("VideoPlayerMemLeakExperiments").www_videos_memleak_on_tv&&(this.$VideoPlayerController6&&this.$VideoPlayerController6.release())};f.collectFeedTrackingData=function(){if(this.$VideoPlayerController83){var a={tn:"","tn-debug":","},b={};for(var e=0;e1};f.$VideoPlayerController129=function(){var a={error:"IMPLEMENTATION_NOT_SUPPORTED",state:d("VideoPlayerLoggerErrorStates").PLAYER_FAILURE,error_description:"Implementation unavailable",error_user_info:this.getDebugInfo()};this.logEvent("error",a);this.$VideoPlayerController71=!1};f.logError=function(a){a=this.$VideoPlayerController46=a;var b=a.error,e=a.message,f=a.isPlayback,g=a.httpStatus,h=a.url;a=a.stack;var i=this.getDebugInfo();a&&(i.player.stack=a);a=g==null||g===""?b:g;delete i.player.loggedError;delete i.player.lastError;i={error:b,error_description:e,error_user_info:i,error_code:a,error_domain:b,resource_url:h,state:f?d("VideoPlayerLoggerErrorStates").PLAYBACK_FAILURE:d("VideoPlayerLoggerErrorStates").PLAYER_FAILURE};g===410||g==="410"||(this.$VideoPlayerController49=this.logEvent("error",i),this.destroy());this.$VideoPlayerController38&&Math.random()<.01&&c("FBLogger")("360video").warn("360 video player error: %s %s",b,e);f&&this.$VideoPlayerController55&&this.$VideoPlayerController128(!1)};f.setRotation=function(a){this.getVideoAPI().setRotation(a)};f.setDimensions=function(a,b){var d=this.getContainerNode();d.style.width=a+"px";d.style.height=b+"px";d=this.getVideoNode();d.style.width=a+"px";d.style.height=b+"px";if(this.isState("loading"))this.$VideoPlayerController64={width:a,height:b};else{if(this.isPlayerVersion("silvercity")&&(this.$VideoPlayerController39||c("VideoPlayerResizeSettings").disable_flash_set_dimensions))return;this.setVideoPlayerAPIDimensions(a,b)}};f.isPlayRequestPending=function(){return this.$VideoPlayerController55};f.$VideoPlayerController128=function(a){if(this.$VideoPlayerController55===a)return;this.$VideoPlayerController55=a;this.emit("pendingPlayRequestChanged")};f.updateAutoplayRestrained=function(){var a=this;c("ifRequired")("VideoPlayerHTML5Shaka",function(b){b=b.isAutoplayBandwidthRestrained(a.$VideoPlayerController42);a.$VideoPlayerController136(b)})};f.$VideoPlayerController136=function(a){a?this.emit("turnOffAutoplay",{reason:"poor_network_quality"}):this.emit("resumeAutoplay",{reason:"poor_network_quality"});var b=this.getVideoAPI();b&&b.setPreloadDisabled(a)};f.restoreStreamBufferSize=function(){var a=this.getVideoAPI();a&&a.restoreStreamBufferSize()};f.getDataInsertionPosition=function(){return this.$VideoPlayerController27&&this.$VideoPlayerController27.getAttribute("data-insertion-position")};f.getDataFt=function(){return this.$VideoPlayerController27&&this.$VideoPlayerController27.getAttribute("data-ft")};f.play=function(a){var b=this,e=null;a instanceof c("VideoPlayerReasonTransitionHelper")?e=a.getReason():e=a;a=this.getVideoNodeNullable();if(a&&a.scrollIntoView&&e==="user_initiated"&&!this.$VideoPlayerController22){var f=this.getDOMPosition(),g=f.y>=0;f=f.y+f.height<=c("getViewportDimensions")().height;!g?a.scrollIntoView(!0):f||a.scrollIntoView(!1)}this.$VideoPlayerController137();this.$VideoPlayerController54||(this.$VideoPlayerController54=e);this.$VideoPlayerController110=this.getOption("VideoWithCommercialBreak","controller");if(this.$VideoPlayerController110&&this.$VideoPlayerController110.shouldPlayPreRollAds(e)){this.$VideoPlayerController110.schedulePreRollAds();return}if(!this.$VideoPlayerController55){this.$VideoPlayerController53=this.$VideoPlayerController138();var h=this.$VideoPlayerController139({debug_reason:e});g=this.$VideoPlayerController73;c("VideoPlayerExperiments").delayFormatChangeEvent&&g&&this.$VideoPlayerController96&&this.$VideoPlayerController47&&s(g)!==this.$VideoPlayerController47&&!this.$VideoPlayerController39&&(this.logEvent("player_format_changed"),this.$VideoPlayerController47=s(g));c("VideoPlayerExperiments").logRequestedPlayingAsync?d("VideoAsyncLoggerHelper").operateAsync(function(){b.logEvent("requested_playing",h)},["started_playing","unpaused"],this.$VideoPlayerController119):this.logEvent("requested_playing",h);this.$VideoPlayerController96=!0}this.$VideoPlayerController140(e);this.emit("playRequested",e);this.sendPlayRequest(e);e==="loop_initiated"&&this.$VideoPlayerController52++};f.sendPlayRequest=function(a){var b=this;if(this.isState("fallback")){this.emit("fallbackPlay");c("VideoPlayerExperiments").endBufferingOnFallbackPlay&&this.$VideoPlayerController50.endBuffering();return}this.$VideoPlayerController128(!0);this.isState("loading")?this.$VideoPlayerController65={reason:a}:(!this.getVideoAPI().isMuted()&&this.$VideoPlayerController51&&(c("VideoPlayerExperiments").logUnmutedAsync?d("VideoAsyncLoggerHelper").operateAsync(function(){b.logEvent("unmuted")},["started_playing","unpaused"],this.$VideoPlayerController119):this.logEvent("unmuted")),this.$VideoPlayerController51=!1,this.$VideoPlayerController141(),this.getVideoAPI().play(a))};f.getOriginalPlayReason=function(){return this.$VideoPlayerController54};f.reset=function(){var a=this,c=(k||(k=b("Promise"))).resolve();if(this.isState("loading")||this.isState("fallback")&&!this.isFallbackRecoverable())return c;this.resetPositions();this.$VideoPlayerController142();var d=k.resolve();this.$VideoPlayerController86&&this.$VideoPlayerController86.destroy&&(d=this.$VideoPlayerController86.destroy());this.$VideoPlayerController86=null;this.setState("loading");c=d.then(function(){a.$VideoPlayerController130()});return c};f.detachRootNode=function(){var a=this;if(!this.$VideoPlayerController70)return;c("DOM").remove(this.$VideoPlayerController70);if(this.isState("fallback")||this.isState("loading"))return;this.setState("loading");this.$VideoPlayerController5.onImplementationReady(this.getVideoNode(),function(){return a.$VideoPlayerController143()})};f.getVideoAPI=function(){this.$VideoPlayerController86||j(0,3695);return this.$VideoPlayerController86};f.getVideoNodeNullable=function(){return this.$VideoPlayerController91};f.getVideoNode=function(){return this.getVideoNodeNullable()};f.getRootNodeNullable=function(){return this.$VideoPlayerController70};f.getRootNode=function(){return this.getRootNodeNullable()};f.getContainerNodeNullable=function(){return this.$VideoPlayerController15};f.getContainerNode=function(){return this.getContainerNodeNullable()};f.getVideoResolution=function(){var a=this.getVideoNode();return{height:a.videoHeight,width:a.videoWidth}};f.$VideoPlayerController143=function(){this.setState("ready"),this.$VideoPlayerController51=!this.getVideoAPI().isMuted(),this.$VideoPlayerController82=!this.$VideoPlayerController3,this.getVideoAPI().setSubtitlesStyle&&this.getVideoAPI().setSubtitlesStyle(this.$VideoPlayerController75),this.getVideoAPI().setAutogeneratedCaptionsOptions&&this.getVideoAPI().setAutogeneratedCaptionsOptions(this.$VideoPlayerController76),this.$VideoPlayerController65&&(this.sendPlayRequest(this.$VideoPlayerController65.reason),this.$VideoPlayerController65=null),this.$VideoPlayerController64&&(this.setDimensions(this.$VideoPlayerController64.width,this.$VideoPlayerController64.height),this.$VideoPlayerController64=null),this.$VideoPlayerController66&&(this.getVideoAPI().unmute(),this.$VideoPlayerController66=null)};f.onApiReady=function(){var a=this;this.$VideoPlayerController4&&(this.$VideoPlayerController4.id=this.$VideoPlayerController31,this.$VideoPlayerController4.customLiveManifestUrlParams=this.$VideoPlayerController19,this.$VideoPlayerController80&&(this.$VideoPlayerController4.fallbackSources=this.$VideoPlayerController80),this.$VideoPlayerController4.playerOrigin=this.$VideoPlayerController57,this.$VideoPlayerController4.playerSuborigin=this.$VideoPlayerController58,this.$VideoPlayerController4.getSource=function(){return a.getSource()},this.$VideoPlayerController4.shakaConfig=this.$VideoPlayerController14,this.$VideoPlayerController4.playerInstanceKey=this.$VideoPlayerController114,this.$VideoPlayerController117&&(this.$VideoPlayerController4.videoLiveTrace=this.$VideoPlayerController117),this.$VideoPlayerController4.disableLogging=this.$VideoPlayerController125);this.$VideoPlayerController86=new this.$VideoPlayerController5(this.getVideoNode(),this.$VideoPlayerController4);this.$VideoPlayerController144();this.getVideoAPI().setup();this.$VideoPlayerController143();var b={is_auto_played:this.isAutoplayable()};this.logEvent("player_loaded",b);this.$VideoPlayerController86&&this.$VideoPlayerController50.setABRQualityTracker(new(c("VideoPlayerABRQualityTracker"))(this.$VideoPlayerController86.getLocalEstimator()));b=this.getVideoProjection();b&&(this.$VideoPlayerController61=b);this.emit("apiReady")};f.getLocalEstimator=function(){if(this.$VideoPlayerController86)return this.$VideoPlayerController86.getLocalEstimator();else return null};f.runOnApiReady=function(a){a===void 0&&(a=function(){}),!this.isState("loading")?a():this.once("apiReady",a)};f.resetPositions=function(){this.$VideoPlayerController18=0};f.getCurrentTimePosition=function(){if(this.isState("playing")){var a=this.getVideoAPI().getCurrentTimePosition();a!=null&&a!==void 0&&(this.$VideoPlayerController18=a)}return this.$VideoPlayerController18};f.getBufferEndPosition=function(){if(this.isState("loading"))return 0;var a=this.getVideoAPI().getBufferEndPosition();return a!=null?a:this.getCurrentTimePosition()};f.$VideoPlayerController137=function(){if(!this.$VideoPlayerController9){d("VideoChannelViewChainLengthManager").registerChainingInfos(this.getVideoID(),this.$VideoPlayerController11);var a=this.getVideoID();if(this.$VideoPlayerController11){var b=this.$VideoPlayerController11.decode();a=b.root_id}this.$VideoPlayerController9=d("VideoChannelViewChainLengthManager").getLoggingData(a)}};f.$VideoPlayerController145=function(a){this.$VideoPlayerController128(!1);a=a.position;a!==void 0&&(this.$VideoPlayerController18=a);this.setState("playing");this.areHLSActive()&&this.$VideoPlayerController146();this.startHeartbeat();this.$VideoPlayerController20.startUnifiedCVC()};f.$VideoPlayerController147=function(a){var b=a.position;this.$VideoPlayerController117&&this.isState("playing")&&this.$VideoPlayerController117.onUpdateStatus(a);b!==void 0&&(this.$VideoPlayerController18=b);this.$VideoPlayerController17=this.getVideoAPI().getCurrentlyPlayingVideoStreamInfoID()};f.$VideoPlayerController148=function(a){return this.$VideoPlayerController97.has(a)};f.runOnceOnApiEventLogged=function(a,b){if(this.$VideoPlayerController148(a))b();else var c=this.addListener("apiEventLogged",function(d){d===a&&(b(),c.remove())})};f.$VideoPlayerController149=function(a){var b=a.event;this.$VideoPlayerController97.add(b);delete a.event;this.logEvent(b,a);this.emit("apiEventLogged",b)};f.$VideoPlayerController150=function(){this.isState("finished")||this.setState("paused"),this.stopHeartbeat(),this.$VideoPlayerController20.stopUnifiedCVC()};f.$VideoPlayerController151=function(a){a=a.position;a!==void 0&&(this.$VideoPlayerController18=a)};f.$VideoPlayerController152=function(){this.setState("finished"),this.$VideoPlayerController69=!1,this.stopHeartbeat(),this.$VideoPlayerController20.stopUnifiedCVC()};f.getVolume=function(){return this.getVideoAPI().getVolume()};f.$VideoPlayerController126=function(a,b){return a?"full_screen":b?(a=s(b))!=null?a:"unknown":"inline"};f.logFullscreenChanged=function(a){var b={player_format:this.$VideoPlayerController126(a,this.$VideoPlayerController73)};c("VideoPlayerHTML5Experiments").enteredExitedFsLoggingFix?this.logEvent(a?"entered_fs":"exited_fs",b):this.logEvent(a?"entered_fs":"exited_fs")};f.setVideoPlayerAPIDimensions=function(a,b){this.getVideoAPI().setDimensions&&this.getVideoAPI().setDimensions(a,b)};f.removeOffsetStylings=function(){var a=this.$VideoPlayerController104;if(a==null)return;this.$VideoPlayerController103===1?(this.getVideoNode().style.setProperty("left","0"),d("CSS").removeClass(this.getVideoNode(),"_blh")):this.$VideoPlayerController103===0&&(this.getVideoNode().style.setProperty("top","0"),d("CSS").removeClass(this.getVideoNode(),"_bli"))};f.addOffsetStylings=function(){var a=this.$VideoPlayerController104;if(a==null)return;this.$VideoPlayerController103===1?(this.getVideoNode().style.setProperty("left",a+"px"),d("CSS").addClass(this.getVideoNode(),"_blh")):this.$VideoPlayerController103===0&&(this.getVideoNode().style.setProperty("top",a+"px"),d("CSS").addClass(this.getVideoNode(),"_bli"))};f.hasDialog=function(){return this.$VideoPlayerController21>0};f.isTahoe=function(){return this.$VideoPlayerController73==="tahoe"};f.isFullscreen=function(){return this.$VideoPlayerController40||c("FullScreen").isFullScreen()&&this.$VideoPlayerController15===c("getFullScreenElement")()};f.toggleFullscreen=function(){var a=this,b=this.isFullscreen(),e=this.getContainerNode();c("FullScreen").toggleFullScreen(e)&&(b||(this.$VideoPlayerController40=!0,e.setAttribute("data-fullscreen","true")),d("CSS").addClass(e,"_1hwh"),this.$VideoPlayerController28=c("FullScreen").subscribe("changed",function(){return a.$VideoPlayerController153()}))};f.instreamVideoStart=function(){d("CSS").addClass(this.getContainerNode(),"_24pm")};f.instreamVideoEnd=function(){d("CSS").removeClass(this.getContainerNode(),"_24pm")};f.unmute=function(){if(!this.$VideoPlayerController34&&this.$VideoPlayerController32)return;!this.isState("loading")?(this.getVideoAPI().unmute(),c("VideoPlayerVolumeSettings").saveVolume(c("VideoPlayerVolumeSettings").getLastVolumeBeforeMute()),this.$VideoPlayerController82&&this.getVideoAPI().areSubtitlesActive()&&this.$VideoPlayerController154()):this.$VideoPlayerController66=!0};f.isAudioBlocked=function(){return this.$VideoPlayerController32};f.isMuted=function(){return this.$VideoPlayerController86?this.getVideoAPI().isMuted():this.$VideoPlayerController77};f.mute=function(){this.$VideoPlayerController82&&!this.getVideoAPI().areSubtitlesActive()&&this.$VideoPlayerController154(),this.getVideoAPI().mute(),c("VideoPlayerVolumeSettings").saveVolume(0)};f.getMediaID=function(){return this.getVideoID()};f.getPlaybackDuration=function(){return this.getVideoAPI().getPlaybackDuration()};f.getPlayerFormat=function(){return this.$VideoPlayerController126(this.isFullscreen(),this.$VideoPlayerController73)};f.getVideoID=function(){return this.$VideoPlayerController90};f.getVideoChannelID=function(){return this.$VideoPlayerController87};f.getVideoListID=function(){return this.$VideoPlayerController88};f.getVideoURL=function(){return this.$VideoPlayerController93};f.$VideoPlayerController144=function(){var a=this,b=this.getVideoAPI(),d=new(c("SubscriptionsHandler"))();this.$VideoPlayerController6=d;var e={buffered:function(){return a.setBuffering(!1)},buffering:function(){return a.setBuffering(!0)},bufferingProgress:function(b){return a.$VideoPlayerController155(b)},streamInterrupted:function(){return a.$VideoPlayerController50.startInterrupt()},streamResumed:function(){return a.$VideoPlayerController50.endInterrupt()},beginPlayback:function(b){return a.$VideoPlayerController145(b)},updateStatus:function(b){return a.$VideoPlayerController147(b)},logEvent:function(b){return a.$VideoPlayerController149(b.logData)},pausePlayback:function(){return a.$VideoPlayerController150()},seekEnd:function(b){return a.$VideoPlayerController151(b)},clickForTracking:function(){return c("logVideosClickTracking")(a.getVideoNode())},error:function(b){return a.logError(b)},finishPlayback:function(){return a.$VideoPlayerController152()},networkInterrupted:function(){return a.$VideoPlayerController156()},networkResumed:function(){return a.$VideoPlayerController157()},replicaSwitch:function(b){return a.switchReplicaSet(b)}};d.addSubscriptions.apply(d,Object.keys(e).map(function(a){return b.addListener(a,e[a])}));d.addSubscriptions.apply(d,c("VideoPlayerApiEvents").map(function(d){return c("forwardEvent")(b,a,d)}))};f.$VideoPlayerController142=function(){this.$VideoPlayerController6&&this.$VideoPlayerController6.release()};f.seek=function(a,b){this.emit("seekRequested",a,b),this.getVideoAPI().seek(a)};f.pause=function(a){this.isState("loading")?this.$VideoPlayerController65=null:this.isState("playing")?this.getVideoAPI().pause(a):this.$VideoPlayerController55&&this.getVideoAPI().pause(a),this.$VideoPlayerController128(!1),this.$VideoPlayerController69=!1,this.$VideoPlayerController158(a),this.emit("pauseRequested",a)};f.stopHeartbeat=function(){c("clearInterval")(this.$VideoPlayerController30),this.$VideoPlayerController30=null,this.$VideoPlayerController20.stopUnifiedCVC()};f.startHeartbeat=function(){if(this.$VideoPlayerController30||!c("VideoPlayerHTML5Experiments").heartbeatIntervalMS)return;this.$VideoPlayerController30=c("setInterval")(this.emitHeartbeat,c("VideoPlayerHTML5Experiments").heartbeatIntervalMS)};f.isPlayerVersion=function(a){return this.getPlayerVersion()===a||this.$VideoPlayerController101&&this.$VideoPlayerController159(a)===this.getPlayerVersion()};f.isHtml5Player=function(){return this.isPlayerVersion("pleasantville")||this.isPlayerVersion("oz")};f.isAutoplayable=function(){return this.$VideoPlayerController71};f.getImmediatePlayReason=function(){return this.$VideoPlayerController72};f.$VideoPlayerController160=function(){return d("ViewportTrackingHelper").isVisible(this.getVideoNode(),0)};f.$VideoPlayerController131=function(){var a=this;if(c("Visibility").isHidden()){var b=c("Visibility").once(c("Visibility").VISIBLE,function(){return a.$VideoPlayerController131()});c("VideoPlayerExperiments").unsubscribeImmediateplay&&this.$VideoPlayerController7.addSubscriptions(b)}else{if(!this.$VideoPlayerController160()&&this.$VideoPlayerController72!=="watch_time_not_logged"&&this.$VideoPlayerController72!=="gbm_not_logged_autploay"){c("FBLogger")("video").warn("immediateplay on a hidden video player: %s %s %s %s",this.getPlayerOrigin(),this.getPlayerSuborigin(),this.getSource(),d("ScriptPath").getScriptPath());return}this.play("autoplay_initiated")}};f.isBuffering=function(){return this.$VideoPlayerController35};f.$VideoPlayerController161=function(){var a=Math.floor(Date.now()/1e3);this.$VideoPlayerController111=this.$VideoPlayerController111.filter(function(b){return b.time+3>a});this.$VideoPlayerController111.some(function(b){if(b.time===a){b.count+=1;return!0}return!1})||this.$VideoPlayerController111.push({time:a,count:1})};f.$VideoPlayerController162=function(){var a=Math.floor(Date.now()/1e3);return this.$VideoPlayerController111.reduce(function(b,c){return(c.time+3>a?c.count:0)+b},0)};f.$VideoPlayerController155=function(a){this.emit("bufferingProgress",a)};f.setBuffering=function(a){if(a!==this.$VideoPlayerController35){this.$VideoPlayerController35=a;if(this.$VideoPlayerController35){a=c("ShakaConstants").numbers.buffering_count_threshold;if(a){this.$VideoPlayerController161();if(this.$VideoPlayerController162()>=a){this.logError({error:"EXCEED_BUFFER_FREQUENCY_THRESHOLD",message:"video has entered buffering state "+a+" times in the last 3 seconds.",isPlayback:this.isPlayRequestPending()});return this.emit("error","EXCEED_BUFFER_FREQUENCY_THRESHOLD")}}this.$VideoPlayerController50.startBuffering(this.getCurrentTimePosition());this.$VideoPlayerController163()&&(this.$VideoPlayerController164(),this.$VideoPlayerController99=c("setTimeout")(this.$VideoPlayerController165,this.$VideoPlayerController163()));this.$VideoPlayerController166()}else this.$VideoPlayerController50.endBuffering(),this.$VideoPlayerController164(),this.isState("paused")&&this.$VideoPlayerController167();this.emit("bufferingChanged")}};f.setVideoStreamOffset=function(a){var b=this.getVideoAPI();typeof b.setVideoStreamOffset==="function"&&b.setVideoStreamOffset(a)};f.$VideoPlayerController164=function(){this.$VideoPlayerController99&&(c("clearTimeout")(this.$VideoPlayerController99),this.$VideoPlayerController99=null)};f.$VideoPlayerController167=function(){this.$VideoPlayerController108&&this.play("network_resumed")};f.$VideoPlayerController166=function(){this.$VideoPlayerController35&&this.$VideoPlayerController107&&this.isState("playing")&&this.pause("network_interrupted")};f.$VideoPlayerController140=function(a){this.$VideoPlayerController108=!1};f.$VideoPlayerController158=function(a){a==="network_interrupted"?this.$VideoPlayerController108=!0:this.$VideoPlayerController108=!1};f.$VideoPlayerController156=function(){this.$VideoPlayerController107=!0,this.$VideoPlayerController166()};f.$VideoPlayerController157=function(){this.$VideoPlayerController107=!1,this.$VideoPlayerController167()};f.isVideoPlaying=function(){return this.getState()==="playing"};f.isLiveVideo=function(){return this.$VideoPlayerController42};f.isGaming=function(){return this.$VideoPlayerController43};f.isVideo=function(){return!0};f.isBroadcast=function(){return!!this.$VideoPlayerController33};f.isInline=function(){return!!this.$VideoPlayerController73&&s(this.$VideoPlayerController73)==="inline"&&!this.isFullscreen()};f.isFacecastAudio=function(){return this.$VideoPlayerController37};f.isStreamInterrupted=function(){var a=this.$VideoPlayerController86;return!!(a&&a.isStreamInterrupted&&a.isStreamInterrupted())};f.setVolume=function(a){if(!this.$VideoPlayerController34&&this.$VideoPlayerController32)return;c("VideoPlayerVolumeSettings").saveVolume(a);this.getVideoAPI().setVolume(a)};f.getDOMPosition=function(){var a=this.getRootNodeNullable();return a?c("getElementPosition")(a):{x:0,y:0,width:0,height:0}};f.clickVideo=function(){this.emit("clickVideo"),this.$VideoPlayerController29=!0};f.mouseMove=function(a){this.emit("mouseMove",a)};f.mouseUp=function(a){this.emit("mouseUp",a)};f.mouseLeave=function(a){this.emit("mouseLeave",a)};f.hasSeenClick=function(){return!!this.$VideoPlayerController29};f.isAd=function(){return!!this.$VideoPlayerController2};f.shouldCalculateViewability=function(){if(this.isAd())return!0;var a=this.$VideoPlayerController50.getFTdata();if(a==null)return!1;a=a.ft;return a==null?!1:!!a.ei};f.isInstreamAd=function(){return!!this.$VideoPlayerController41};f.getAdClientToken=function(){return this.$VideoPlayerController2};f.getLastScrollDirection=function(){return this.getOption("VideoAutoplayControllerBase/VideoScrollTracker","getLastScrollDirection")||null};f.$VideoPlayerController168=function(){var a=this,b=null,e=null,f=!1,g=null,h=null,i=null,j=null,k=null;if(!this.isState("loading")&&!this.isState("fallback")){this.$VideoPlayerController17===null&&(this.$VideoPlayerController17=this.getVideoAPI().getCurrentlyPlayingVideoStreamInfoID());b=this.getVideoAPI().getEstimatedBandwidth();e=this.getVideoAPI().getAvailableVideoQualities().length;f=this.getVideoAPI().getIsAbrEnabled();g=this.getPlaybackDuration();k=this.getAudioStreamId();var l=this.getVideoAPI().getDimensionsForDevice();i=l&&l.height;h=l&&l.width;j=d("VideoPlayerConnectionQuality").evaluate(function(){return a.getVideoAPI().getEstimatedBandwidth()})}var m=babelHelpers["extends"]({},this.$VideoPlayerController81);this.$VideoPlayerController25.forEach(function(b,c){m[c]=b(c,a)});l={};this.getOption("SphericalVideoSpatialAudioController","hasSpatialAudio")&&(l.audio_ch_conf=this.getOption("SphericalVideoSpatialAudioController","getSpatialAudioChannelLayout"));var n=this.isLiveVideo()&&!!p&&p.getIsRewound(this.getVideoPlayerID());return babelHelpers["extends"]({ad_client_token:this.$VideoPlayerController2,available_qualities:e,access_token:this.$VideoPlayerController1,autoplay_eligible:this.isAutoplayable(),autoplay_setting:this.$VideoPlayerController8,broadcaster_origin:this.$VideoPlayerController98,projection:this.$VideoPlayerController61,player_version:this.getPlayerVersion(),flash_version:c("ifRequired")("Flash",function(a){return a.getVersionString()}),video_id:this.getVideoID(),permalink_share_id:this.$VideoPlayerController56,player_state:this.$VideoPlayerController74,player_origin:this.$VideoPlayerController57,player_suborigin:this.$VideoPlayerController58,player_suborigin_derived:this.$VideoPlayerController59,playback_is_broadcast:this.$VideoPlayerController33,player_instance_key:this.$VideoPlayerController114,playback_duration:g,referrer:document.referrer,streaming_format:this.getStreamingFormat(),video_time_position:this.getCurrentTimePosition(),video_buffer_end_position:this.$VideoPlayerController86?this.getBufferEndPosition():0,is_servable_via_fbms:this.$VideoPlayerController44,playback_is_live_streaming:this.$VideoPlayerController42,playback_is_drm:this.isDrm(),is_templated_manifest:this.isFBIsLiveTemplated()||this.isFBWasLive(),is_fbms:this.isFBMS(),is_predictive_playback:this.ispDASH(),is_live_video_rewound:n,last_scroll_direction:this.getLastScrollDirection(),video_channel_id:this.$VideoPlayerController87,video_list_id:this.$VideoPlayerController88,fb_manifest_identifier:this.getFbManifestIdentifier(),reaction_video_channel_type:this.$VideoPlayerController67,reaction_video_channel_subtype:this.$VideoPlayerController68,fbcdn_pop:this.$VideoPlayerController53,representation_id:this.$VideoPlayerController17,audio_representation_id:k,video_bandwidth:b,video_player_height:i,video_player_width:h,dash_perf_logging_enabled:this.$VideoPlayerController169(),data_connection_quality:j,is_abr_enabled:f,position_in_unit:this.$VideoPlayerController115,feed_position:this.getDataInsertionPosition(),upstream_player_source:this.$VideoPlayerController84,should_log_video_viewability:this.$VideoPlayerController113,detectionID:this.$VideoPlayerController116,is_ads_preview:this.$VideoPlayerController120,is_injected_ads:this.$VideoPlayerController121,live_linear_channel_id:this.$VideoPlayerController123},this.$VideoPlayerController89,this.$VideoPlayerController9,m,l,{iframe_embed_referrer:this.$VideoPlayerController124})};f.$VideoPlayerController138=function(){var a=this.getVideoInfo_DEPRECATED();if(!a)return null;a=a.resourceUrl;a=/scontent-([a-z]+)\./.exec(a);return!a?null:a[1]};f.getVideoInfo_DEPRECATED=function(){return this.isState("loading")||this.isState("fallback")?null:this.getVideoAPI().getVideoInfo()};f.getDebugInfo=function(){var a=this.getVideoInfo_DEPRECATED(),b={initializationTime:this.$VideoPlayerController62,initializationTimestamp:this.$VideoPlayerController63,version:this.getPlayerVersion(),stallCount:this.$VideoPlayerController50.getCumulativeStallCount(),stallTime:this.$VideoPlayerController50.getCumulativeStallTime(),inPlayStallCount:this.$VideoPlayerController50.getCumulativeInPlayStallCount(),inPlayStallTime:this.$VideoPlayerController50.getCumulativeInPlayStallTime(),interruptCount:this.$VideoPlayerController50.getCumulativeInterruptCount(),interruptTime:this.$VideoPlayerController50.getCumulativeInterruptTime(),state:this.$VideoPlayerController74,canPlayType:(n||(n=c("mapObject")))(c("VideoMimeTypes"),c("canVideoPlayType")),loggedError:this.$VideoPlayerController49,lastError:this.$VideoPlayerController46,droppedFrames:!!this.$VideoPlayerController86&&this.$VideoPlayerController86.getDroppedFrames(),totalFrames:!!this.$VideoPlayerController86&&this.$VideoPlayerController86.getTotalFrames(),videoSource:!!this.$VideoPlayerController86&&this.$VideoPlayerController86.getVideoNodeSource(),viewabilityPercentage:!!this.$VideoPlayerController95&&!(c("VideoPlayerExperiments").organicViewabilityLoggingNoOrganicLogging&&!this.isAd())&&this.$VideoPlayerController95.getViewability(),stack:void 0},d={videoID:this.getVideoID(),isDrm:this.$VideoPlayerController86&&this.$VideoPlayerController86.isDrm()};if(!a)return{player:b,currentVideo:d};var e=this.getVideoAPI().getDimensionsForDevice();return{currentVideo:babelHelpers["extends"]({},d,{streamType:a.streamType,isLiveStream:a.isLiveStream,liveManifestUrl:a.liveManifestUrl,isHD:a.isHD,hasHD:a.hasHD,resourceUrl:a.resourceUrl,hasSubtitles:a.hasSubtitles,hasRateLimit:!!a.hasUnlimitedSrc,isRateLimited:a.hasUnlimitedSrc&&!a.useUnlimitedSrc,tagHD:a.tagHD,tagSD:a.tagSD,projection:this.$VideoPlayerController61,streamId:this.$VideoPlayerController17,audioStreamId:this.getVideoAPI().getAudioStreamInfoIDDebug(),dashAudioFormat:this.getVideoAPI().getDashAudioConfiguration()}),player:babelHelpers["extends"]({},b,{dimensions:e})}};f.getLastError=function(){return this.$VideoPlayerController46};f.isAkamai=function(){var a=this.getVideoInfo_DEPRECATED();return a?a.liveManifestUrl&&a.liveManifestUrl.includes("akamaihd"):!1};f.getLoggedError=function(){return this.$VideoPlayerController49};f.getTotalFrames=function(){return this.$VideoPlayerController86?this.$VideoPlayerController86.getTotalFrames():0};f.getDroppedFrames=function(){return this.$VideoPlayerController86?this.$VideoPlayerController86.getDroppedFrames():0};f.getInterruptCount=function(){return this.$VideoPlayerController50.getCumulativeInterruptCount()};f.getInterruptTime=function(){return this.$VideoPlayerController50.getCumulativeInterruptTime()};f.getVideoStreamId=function(){return this.getVideoAPI().getCurrentlyPlayingVideoStreamInfoID()};f.getAudioStreamId=function(){return this.getVideoAPI().getCurrentlyPlayingAudioStreamInfoID()||this.getVideoAPI().getAudioStreamInfoIDDebug()};f.getVideoTracks=function(){return this.getVideoAPI().getVideoTracksDebug()};f.getAudioDashFormat=function(){return this.getVideoAPI().getDashAudioConfigurationDebug()};f.getCumulativeStallCount=function(){return this.$VideoPlayerController50.getCumulativeStallCount()};f.getCumulativeStallTime=function(){return this.$VideoPlayerController50.getCumulativeStallTime()};f.getStallCount=function(){return this.$VideoPlayerController50.getStallCount()};f.getStreamType=function(){var a=this.getVideoInfo_DEPRECATED();return a?a.streamType:"n/a"};f.hasSubtitles=function(){return this.getVideoAPI().hasSubtitles()};f.getVideoState=function(){return this.$VideoPlayerController74};f.areSubtitlesActive=function(){return this.getVideoAPI().areSubtitlesActive()};f.areSubtitlesAutogenerated=function(){return this.getVideoAPI().areSubtitlesAutogenerated()};f.areHLSActive=function(){return this.getVideoAPI().areHLSActive()};f.toggleSubtitles=function(){this.$VideoPlayerController154(),this.logEvent("caption_change"),this.$VideoPlayerController82=!1};f.updateSubtitleStyle=function(a){this.$VideoPlayerController75=a,this.getVideoAPI()&&this.getVideoAPI().setSubtitlesStyle&&this.getVideoAPI().setSubtitlesStyle(a)};f.$VideoPlayerController154=function(){this.getVideoAPI().toggleSubtitles(),this.$VideoPlayerController141()};f.$VideoPlayerController141=function(){this.hasSubtitles()&&this.areSubtitlesActive()?this.$VideoPlayerController10="on":this.$VideoPlayerController10="off"};f.isHD=function(){return d("VideoPlayerQualitiesArray").isHDSelectedVideoQuality(this.getAvailableVideoQualities(),this.getSelectedVideoQuality())};f.hasHD=function(){var a=d("VideoPlayerQualitiesArray").getHighestVideoQuality(this.getAvailableVideoQualities());return a!=null};f.toggleHD=function(){var a=d("VideoPlayerQualitiesArray").getPreferredVideoQualityForToggleHD(this.getAvailableVideoQualities(),this.getSelectedVideoQuality());a!=null&&this.setPreferredVideoQuality(a)};f.setPreferredVideoQuality=function(a){this.getVideoAPI().setPreferredVideoQuality(a)};f.unsetPreferredVideoQuality=function(){this.getVideoAPI().unsetPreferredVideoQuality()};f.getPreferredVideoQuality=function(){var a;return(a=this.getVideoAPI().getPreferredVideoQuality())!=null?a:null};f.getSelectedVideoQuality=function(){var a;return(a=this.getVideoAPI().getSelectedVideoQuality())!=null?a:null};f.getAvailableVideoQualities=function(){return this.getVideoAPI().getAvailableVideoQualities()};f.getVideoProjection=function(){return this.getVideoAPI().getVideoProjection()};f.canAutoSelectVideoQuality=function(){return this.getVideoAPI().canAutoSelectVideoQuality()};f.switchToStreamType=function(a){this.getVideoAPI().switchToStreamType(a)};f.$VideoPlayerController146=function(){this.getVideoAPI().replaceVideoDataFromURL(c("XVideoDataController").getURIBuilder().setString("video_id",this.getVideoID()).setInt("scrubbing_preference",q).setString("source",this.$VideoPlayerController73).getURI().toString())};f.$VideoPlayerController139=function(a){var b=this.getVideoInfo_DEPRECATED();return b!=null?babelHelpers["extends"]({resource_url:b.resourceUrl,liveStream:b.isLiveStream,hd:b.isHD},a):a};f.$VideoPlayerController170=function(){var a=this.getDOMPosition(),b=c("getViewportDimensions")().height,d;a.y<=0?d=a.y:a.y+a.heightd&&(this.$VideoPlayerController125=!0,this.$VideoPlayerController50&&this.$VideoPlayerController50.disable());d=++this.$VideoPlayerController26;b=Object.assign(this.$VideoPlayerController168(),b);var e=this.getOriginalPlayReason();e&&a!=="displayed"&&(b.video_play_reason=e);a==="finished_playing"&&(b.viewport_distance=this.$VideoPlayerController170());(a==="muted"||a==="unmuted"||a==="started_playing"||a==="caption_change"||a==="unpaused")&&(b.caption_state=this.$VideoPlayerController10);this.$VideoPlayerController94&&!(c("VideoPlayerExperiments").organicViewabilityLoggingNoOrganicLogging&&!this.isAd())&&c("VideoViewabilityKeyEvents").Events.includes(a)&&(b.current_viewability_percentage=this.$VideoPlayerController95.getViewability(),this.$VideoPlayerController95.setLastLoggedViewability(b.current_viewability_percentage));b.event_seq_num=d;this.$VideoPlayerController78.has(a)&&(c("VideoPlayerExperiments").logSBLVpts&&(b.vpts=(l||(l=c("performanceAbsoluteNow")))()),b.seq_num=++this.$VideoPlayerController79);a==="played_for_three_seconds"&&(b.detection_id=this.$VideoPlayerController116,this.emit("videoView/runFraudDetector"));if(a==="requested_playing"){e=this.$VideoPlayerController117?this.$VideoPlayerController117.getLiveTraceContext():null;e!=null&&(b.live_trace_stream_id=e.streamId,b.live_trace_stream_type=e.streamType,b.live_trace_source_id=e.sourceId)}if(this.$VideoPlayerController117&&(a==="paused"||a==="finished_playing"||a==="heart_beat")){d=this.$VideoPlayerController117.getAndFlushTracedFrames();d!=null&&(b.frame_events=JSON.stringify(d))}e=c("SRTVideoData").getInstance();e!=null&&e.getJobID()&&(b.srt_job_id=e.getJobID(),b.srt_job_tracking_id=e.getJobTrackingID());d=this.$VideoPlayerController50.logEvent(a,b);this.emit("debug/vpcLogEvent",d);return d};f.getState=function(){return this.$VideoPlayerController74};f.getStreamingFormat=function(){var a=this.getVideoInfo_DEPRECATED()||{};return a.streamType||this.$VideoPlayerController45};f.setPlaybackRate=function(a){this.getVideoAPI().setPlaybackRate&&this.getVideoAPI().setPlaybackRate(a)};f.getPlaybackRate=function(){return this.getVideoAPI().getPlaybackRate?this.getVideoAPI().getPlaybackRate():1};f.setState=function(a){if(this.isState("destroyed")||this.isState("fallback")&&!this.isFallbackRecoverable())return;this.$VideoPlayerController74=a;this.$VideoPlayerController74==="fallback"&&(d("CSS").addClass(this.getRootNode(),"_3-n5"),this.$VideoPlayerController142());this.emit("stateChange")};f.isState=function(a){return this.$VideoPlayerController74===a};f.isIntentionallyViewing=function(){return this.isState("playing")&&!this.isMuted()};f.abortLoading=function(a){if(this.isState("loading")||this.isState("fallback"))return;c("VideoPlayerExperiments").seekZeroWhenAbortLoadingFinishedVideos&&!(c("VideoPlayerExperiments").seekZeroOnlyVodVideo&&this.$VideoPlayerController42)&&this.isState("finished")&&this.seek(0);this.getVideoAPI().abortLoading(a||{});this.stopHeartbeat();this.$VideoPlayerController20.stopUnifiedCVC()};f.preload=function(){if(this.isState("loading")||this.isState("fallback"))return;this.getVideoAPI().preload()};f.getPlayerVersion=function(){var a;this.$VideoPlayerController86&&(a=this.getVideoAPI());var b=a&&a.getUpdatedPlayerVersion?a.getUpdatedPlayerVersion.bind(a):this.$VideoPlayerController5.getPlayerVersion;b=b?b():this.$VideoPlayerController60;return this.$VideoPlayerController101?this.$VideoPlayerController159(b):b};f.$VideoPlayerController159=function(a){switch(a){case"silvercity":return"react_silvercity";case"pleasantville":return"react_pleasantville";case"oz":return"react_oz";default:return"react"}};f.registerOption=function(a,b,c,d){var e=this.$VideoPlayerController13.get(a);e||(e=new Map(),this.$VideoPlayerController13.set(a,e));if(e.has(b))throw new Error("An option can only be registered once for each component");e.set(b,{getter:c,setter:d});this.emit("optionsChange")};f.unregisterOption=function(a,b){var c=this.$VideoPlayerController13.get(a);if(!c)throw new Error('The component "'+a+'" has no options registered');if(!c.has(b))throw new Error('The component "'+a+'" has no option "'+b+'" registered');c["delete"](b);c.size||this.$VideoPlayerController13["delete"](a);this.emit("optionsChange")};f.getComponents=function(){return this.$VideoPlayerController13.keys()};f.getOptions=function(a){a=this.$VideoPlayerController13.get(a);return a?a.keys():c("enumerate")([])};f.hasOption=function(a,b){a=this.$VideoPlayerController13.get(a);return!!a&&a.has(b)};f.getOption=function(a,b){a=this.$VideoPlayerController13.get(a);if(!a)return void 0;a=a.get(b);return!a?void 0:a.getter()};f.setOption=function(a,b,c){a=this.$VideoPlayerController13.get(a);if(!a)throw new Error("Component not registered");a=a.get(b);if(!a)throw new Error("Option not registered");b=a.setter;if(b)return b(c);throw new Error("Read-only option")};f.showDebugOverlayView=function(a){this.emit("showDebugOverlay",a)};f.$VideoPlayerController132=function(){var a=d("DOMQuery").scry(this.$VideoPlayerController70,"^._5pat");return a.length?a[0]:null};f.registerDrawer=function(a,b){return this.$VideoPlayerController24.register(a,b)};f.getVideoPath=function(){return this.$VideoPlayerController92};f.setAllowCrossPageTransition=function(a){this.$VideoPlayerController100=a};f.cleanOnLeave=function(){this.pause("unloaded"),this.destroy()};f.switchReplicaSet=function(a){var b=this.isState("playing");this.getVideoAPI().switchReplicaSet(a.replica,{url:a.url,status:a.status,timestamp:a.timestamp});b&&this.play("autoplay_initiated")};f.switchToFullVideo=function(){var a=this;this.pause("unloaded");this.getVideoAPI().reloadDashManifest().done(function(){a.play(new(c("VideoPlayerReasonTransitionHelper"))("user_initiated")),a.emit("switchedToFullVideo")})};f.$VideoPlayerController133=function(){return this.getIsInChannel()||this.$VideoPlayerController73==="living_room"||this.$VideoPlayerController73==="topic_channel_living_room"||this.$VideoPlayerController57==="intern_curation"||this.$VideoPlayerController57==="games_video_hub"};f.getDashAudioConfiguration=function(){return this.getVideoAPI().getDashAudioConfiguration()};f.setEnableLiveheadCatchup=function(a){var b=this.getVideoAPI();b&&b.setEnableLiveheadCatchup(a)};f.setIsLiveRewindActive=function(a){var b=this.getVideoAPI();b&&b.setIsLiveRewindActive(a)};f.isFBWasLive=function(){var a=this.$VideoPlayerController86&&this.getVideoAPI();return!!(a&&a.isFBWasLive())};f.isFBIsLiveTemplated=function(){var a=this.$VideoPlayerController86&&this.getVideoAPI();return!!(a&&a.isFBIsLiveTemplated())};f.getFbManifestIdentifier=function(){var a=this.$VideoPlayerController86&&this.getVideoAPI();return a?a.getFbManifestIdentifier():""};f.isDrm=function(){var a=this.$VideoPlayerController86&&this.getVideoAPI();return a&&a.isDrm()};f.isFBMS=function(){var a=this.$VideoPlayerController86&&this.getVideoAPI();return!!(a&&a.isFBMS())};f.ispDASH=function(){var a=this.$VideoPlayerController86&&this.getVideoAPI();return!!(a&&a.ispDASH())};f.isLiveheadCatchupEnabled=function(){var a=this.getVideoAPI();return a?a.isLiveheadCatchupEnabled():!1};f.getBandwidthEstimate=function(){var a=this.getVideoAPI();return a?a.getBandwidthEstimate():null};f.getSeekableRanges=function(){var a=this.getVideoAPI();return a?a.getSeekableRanges():null};f.isBroadcaster=function(){return this.$VideoPlayerController34||!1};f.isWatchAndScroll=function(){return this.$VideoPlayerController73==="watch_scroll"};f.$VideoPlayerController169=function(){var a=this.$VideoPlayerController86&&this.getVideoAPI();return a?a.isDashPerfLoggingEnabled():null};f.$VideoPlayerController134=function(a,b){j(0,54449)};f.$VideoPlayerController163=function(){return this.isPlayRequestPending()?this.$VideoPlayerController105:this.$VideoPlayerController106};return e}(c("MediaController"));g["default"]=a}),98); __d("VideoPlayerFairplayLicenseHandler",["EventEmitter","FBLogger","JSResourceForInteraction","Promise","SubscriptionsHandler","cr:1335238","unrecoverableViolation"],(function(a,b,c,d,e,f,g){var h,i=c("JSResourceForInteraction")("XHRRequest").__setRef("VideoPlayerFairplayLicenseHandler"),j=window.WebKitMediaKeys;a=function(a){function d(d,e,f,g){var h;h=a.call(this)||this;h.$VideoPlayerFairplayLicenseHandler$p_5=new(c("SubscriptionsHandler"))();h.$VideoPlayerFairplayLicenseHandler$p_1=e;h.$VideoPlayerFairplayLicenseHandler$p_2=d;h.$VideoPlayerFairplayLicenseHandler$p_3=f;h.$VideoPlayerFairplayLicenseHandler$p_4=g;h.$VideoPlayerFairplayLicenseHandler$p_5.addSubscriptions(b("cr:1335238").listen(e,"webkitneedkey",function(a){try{h.$VideoPlayerFairplayLicenseHandler$p_6(a.initData)}catch(a){h.$VideoPlayerFairplayLicenseHandler$p_7()}}));return h}babelHelpers.inheritsLoose(d,a);var e=d.prototype;e.destroy=function(){this.$VideoPlayerFairplayLicenseHandler$p_5.release(),this.$VideoPlayerFairplayLicenseHandler$p_1=null,this.$VideoPlayerFairplayLicenseHandler$p_4=null};e.$VideoPlayerFairplayLicenseHandler$p_6=function(a){var d=this,e=this.$VideoPlayerFairplayLicenseHandler$p_1;if(e==null)return;var f=new Uint16Array(a.buffer);f=String.fromCharCode.apply(null,f).substring(8);var g;if(e.webkitKeys==null){if(j!=null&&j.isTypeSupported("com.apple.fps.1_0","video/mp4"))g="com.apple.fps.1_0";else throw c("unrecoverableViolation")("Key System not supported","FairplayLicenseHandler");e.webkitSetMediaKeys(new j(g))}g=e.webkitKeys;if(g==null)throw c("unrecoverableViolation")("Could not create MediaKeys","FairplayLicenseHandler");e=this.concatInitDataIdAndCertificate(a,f);a=g.createSession("video/mp4",e);if(!a)throw c("unrecoverableViolation")("Could not create key session","FairplayLicenseHandler");a.contentId=f;this.$VideoPlayerFairplayLicenseHandler$p_5.addSubscriptions(b("cr:1335238").listen(a,"webkitkeymessage",function(a){d.$VideoPlayerFairplayLicenseHandler$p_8(a.target,a.message)}),b("cr:1335238").listen(a,"webkitkeyerror",function(a){d.emit("error",{error:"Fairplay webkitkeyerror"})}))};e.concatInitDataIdAndCertificate=function(a,b){var c=new Uint16Array(new ArrayBuffer(b.length*2));for(var d=0,e=b.length;d255)&&(d=!0);f[g]=i}b.update(f)}catch(b){i=b;g=typeof a!=="string"?"response was "+typeof a:a===""?"response was empty string":d?"key character overflow":"key potentially malformed";e=c("FBLogger")("VideoPlayerFairplayLicenseHandler");i instanceof Error&&(e=e.catching(i));e.warn("Fairplay License update failed: %s - %s",String(i),g);this.emit("error",{error:"Fairplay License update failed"})}};e.$VideoPlayerFairplayLicenseHandler$p_7=function(){this.emit("error",{error:"Fairplay Key creation failed"})};e.$VideoPlayerFairplayLicenseHandler$p_10=function(){this.emit("error",{error:"Fairplay Content ID not found"})};e.$VideoPlayerFairplayLicenseHandler$p_9=function(){this.emit("error",{error:"Fairplay Content ID empty"})};e.$VideoPlayerFairplayLicenseHandler$p_12=function(){this.emit("error",{error:"Fairplay License fetch failed"})};d.newIfSupported=function(a,b,c,e){return j!=null?new d(a,b,c,e):null};return d}(c("EventEmitter"));g["default"]=a}),98); __d("VideoPlayerHTML5ApiCea608State",["Bootloader","Deferred","FBLogger"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a){var b=this,d=a.onReady,e=a.onCaptionsLoaded,f=a.captionsDisplay;this.$1=null;this.$2=[];this.$3=null;this.$4={changedCount:0,dequeuedCount:0,erroredCount:0,processedCount:0,processStartedCount:0,queuedCount:0};this.source=null;this.captionsDisplay=null;this.$1=c("Bootloader").loadModules(["VideoPlayerCea608CaptionsSource"],function(a){a=new a({onCaptionsLoaded:e,onCaptionsChanged:function(a,c){b.$4.changedCount++,b.captionsDisplay&&b.captionsDisplay.handleCaptionsChanged(a,c)}});b.source=a;b.captionsDisplay=f;d(b)},"VideoPlayerHTML5ApiCea608State")}var b=a.prototype;b.enqueueBytes=function(a){this.$4.queuedCount++,this.$2.push(a),this.$5()};b.processQueue=function(){this.$5()};b.getStats=function(){return this.$4};b.getCurrentScreenRepresentation=function(){return this.source?this.source.getCurrentScreenRepresentation():null};b.destroy=function(){this.$1&&(this.$1.remove(),this.$1=null),this.captionsDisplay&&(this.captionsDisplay.destroy(),this.captionsDisplay=null),this.source&&(this.source.destroy(),this.source=null),this.$4={changedCount:0,dequeuedCount:0,erroredCount:0,processedCount:0,processStartedCount:0,queuedCount:0}};b.$5=function(){var a=this,b=this.source;if(!b)return;var d=this.$2,e=this.$3,f=function(){var f=d.shift();if(!e){var g=new(c("Deferred"))();g.resolve();e=g.getPromise()}a.$4.dequeuedCount++;a.$3=e=e.then(function(){a.$4.processStartedCount++;return b.processBytes(f).then(function(){a.$4.processedCount++})["catch"](function(b){a.$4.erroredCount++,c("FBLogger")("video").catching(b).mustfix("[VideoPlayerHTML5ApiCea608State] Caught error from CEA-608 source processBytes")})})};while(d.length)f()};return a}();g["default"]=a}),98); __d("VideoPlayerHTML5ApiWebVttState",["Bootloader","unrecoverableViolation"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a){var b=this,d=a.onReady,e=a.onCaptionsLoaded,f=a.captionsDisplay;this.$1=null;this.source=null;this.captionsDisplay=null;this.$1=c("Bootloader").loadModules(["VideoPlayerWebVttCaptionsSource"],function(a){a=new a({onCaptionsLoaded:e,onCaptionsChanged:function(a,c){b.captionsDisplay&&b.captionsDisplay.handleCaptionsChanged(a,c)}});b.source=a;b.captionsDisplay=f;d(b)},"VideoPlayerHTML5ApiWebVttState")}var b=a.prototype;b.loadFromUrl=function(a){var b=this.source;if(!b)throw c("unrecoverableViolation")("[VideoPlayerHTML5ApiWebVttState] Called loadFromUrl when not ready; call from onReady callback.","video_captions");b.loadFromUrl(a)};b.getCurrentScreenRepresentation=function(){return this.source?this.source.getCurrentScreenRepresentation():null};b.destroy=function(){this.$1&&(this.$1.remove(),this.$1=null),this.captionsDisplay&&(this.captionsDisplay.destroy(),this.captionsDisplay=null),this.source&&(this.source.destroy(),this.source=null)};return a}();g["default"]=a}),98); __d("VideoPlayerHTML5CaptionsDisplayStyle",["cx","CSS","VideoCaptionsBackgroundOpacity","VideoCaptionsTextSize","isTruthy"],(function(a,b,c,d,e,f,g,h){"use strict";var i={Black:"20, 22, 26",Blue:"0, 0, 255",Green:"0, 255, 0",Cyan:"0, 255, 255",Red:"255, 0, 0",Magenta:"255, 0, 255",White:"255, 255, 255",Yellow:"255, 255, 0"},j={DEFAULT_BACKGROUND_COLOR:"Black",DEFAULT_BACKGROUND_OPACITY:c("VideoCaptionsBackgroundOpacity").DEFAULT,DEFAULT_TEXT_COLOR:"White",DEFAULT_TEXT_SIZE:c("VideoCaptionsTextSize").DEFAULT,DEFAULT_TEXT_OPACITY:100};a=function(){function a(a,b,c,d){this.$5="center",this.$1=a,this.$2=b,this.setBackgroundColor(c.background.color),this.setBackgroundOpacity(c.background.opacity),this.setTextColor(c.text.color),this.setTextSize(c.text.size),this.setTextOpacity(c.text.opacity),this.setTextTypeface(c.text.typeface),this.setTextEdge(c.text.edge),this.setTextAlignment(d),this.updateStyle()}var b=a.prototype;b.setBackgroundColor=function(a){a!=null&&Object.prototype.hasOwnProperty.call(i,a)?this.$3=a:this.$3=j.DEFAULT_BACKGROUND_COLOR};b.setBackgroundOpacity=function(a){c("isTruthy")(a)&&a>=c("VideoCaptionsBackgroundOpacity").TRANSPARENT&&a<=c("VideoCaptionsBackgroundOpacity").OPAQUE?this.$4=a:this.$4=j.DEFAULT_BACKGROUND_OPACITY};b.setTextColor=function(a){a!=null&&Object.prototype.hasOwnProperty.call(i,a)?this.$6=a:this.$6=j.DEFAULT_TEXT_COLOR};b.setTextSize=function(a){a!=null&&a>=c("VideoCaptionsTextSize").SMALLEST&&a<=c("VideoCaptionsTextSize").BIGGEST?this.$7=a:this.$7=j.DEFAULT_TEXT_SIZE};b.setTextOpacity=function(a){a!=null&&a>=c("VideoCaptionsBackgroundOpacity").LIGHT&&a<=c("VideoCaptionsBackgroundOpacity").OPAQUE?this.$8=a:this.$8=j.DEFAULT_TEXT_OPACITY};b.setTextTypeface=function(a){this.$9=a};b.setTextEdge=function(a){this.$10=a};b.setTextAlignment=function(a){this.$5=a!=null?a:"center"};b.updateStyle=function(){var a,b=this.$4;this.$4===c("VideoCaptionsBackgroundOpacity").TRANSPARENT&&(b=0);b=b!=null?b:j.DEFAULT_BACKGROUND_OPACITY;a=(a=this.$3)!=null?a:j.DEFAULT_BACKGROUND_COLOR;b=b/100;b="rgba("+i[a]+", "+b+")";this.$1.style.backgroundColor=b;this.$1.style.color=(b=this.$6)!=null?b:j.DEFAULT_TEXT_COLOR;b="0 0 10px rgb("+i[a]+"), 0 0 5px rgba("+i[a]+", .8)";this.$1.style.textShadow=b;a=this.$7!=null&&this.$7!=null?this.$7:c("VideoCaptionsTextSize").DEFAULT;d("CSS").conditionClass(this.$2,"_5z64",a<=c("VideoCaptionsTextSize").SMALLEST);d("CSS").conditionClass(this.$2,"_5z65",a>c("VideoCaptionsTextSize").SMALLEST&&a<=c("VideoCaptionsTextSize").SMALL);d("CSS").conditionClass(this.$2,"_5z66",a>c("VideoCaptionsTextSize").DEFAULT&&a<=c("VideoCaptionsTextSize").MEDIUM);d("CSS").conditionClass(this.$2,"_5z67",a>c("VideoCaptionsTextSize").MEDIUM&&a<=c("VideoCaptionsTextSize").BIG);d("CSS").conditionClass(this.$2,"_5z68",a>c("VideoCaptionsTextSize").BIG&&a<=c("VideoCaptionsTextSize").BIGGER);d("CSS").conditionClass(this.$2,"_5z69",a>c("VideoCaptionsTextSize").BIGGER);d("CSS").conditionClass(this.$2,"_6mk2",this.$5==="left");d("CSS").conditionClass(this.$1,"_6mk2",this.$5==="left")};return a}();g["default"]=a}),98); __d("VideoPlayerHTML5CaptionsDisplay",["csx","cx","CSS","CaptionSettings","DOM","DOMQuery","VideoPlayerHTML5CaptionsDisplayStyle","clearTimeout","setTimeout"],(function(a,b,c,d,e,f,g,h,i){a=function(){function a(a){var b,e=a.append,f=a.drawer,g=a.existingNodesContainer,h=a.boundingBox;a=a.areCaptionsAutogenerated;this.$4=null;this.$5=null;this.$6="";this.$7=null;this.$8=null;this.$9=!1;this.$10=null;this.$12=null;g=(g=d("DOMQuery").scry(g,"._30vn")[0])!=null?g:null;b=g?(b=d("DOMQuery").find(g,"._30vo"))!=null?b:null:null;g||(g=c("DOM").create("div",{className:"_30vn hidden_elem"}));b||(b=c("DOM").create("span",{className:"_30vo hidden_elem"}),c("DOM").setContent(g,b));this.$1=a;this.$4=g;this.$5=b;this.$12=e(g);this.$7=f;this.$8=f.addListener("reposition",this.$13.bind(this));this.$11=h;this.$14()}var b=a.prototype;b.handleBoundingBoxChanged=function(a){this.$11=a,this.$14()};b.handleCaptionsChanged=function(a,b){if(this.$9)return;this.$15(a);this.$16(b)};b.setAutogeneratedCaptionsOptions=function(a){this.$2=a};b.setCaptionsStyle=function(a){var b=this.$10;a=a?a:d("CaptionSettings").DefaultCaptionSettings;if(b)b.setBackgroundColor(a.background.color),b.setBackgroundOpacity(a.background.opacity),b.setTextColor(a.text.color),b.setTextSize(a.text.size),b.setTextOpacity(a.text.opacity),b.setTextTypeface(a.text.typeface),b.setTextEdge(a.text.edge),b.updateStyle();else{b=this.$5;var e=this.$4;b&&e&&(this.$10=new(c("VideoPlayerHTML5CaptionsDisplayStyle"))(b,e,a,"center"))}};b.showCaptions=function(){var a=this,b=this.$4;b&&d("CSS").removeClass(b,"hidden_elem");b=this.$7;b&&(b.reposition(),b.reserve());b=this.$2;b!=null&&this.$1&&(this.$17(),c("clearTimeout")(this.$3),this.$3=c("setTimeout")(function(){a.$3=null,a.$18()},b.duration))};b.hideCaptions=function(){var a=this.$4;a&&d("CSS").addClass(a,"hidden_elem");a=this.$7;a&&a.release();this.$3&&(c("clearTimeout")(this.$3),this.$3=null)};b.destroy=function(){var a=this.$8;a&&(a.remove(),this.$8=null);a=this.$7;a&&(a.release(),a.removeAllListeners(),this.$7=null);a=this.$12;a&&a();this.$4=null;this.$5=null;this.$3&&(c("clearTimeout")(this.$3),this.$3=null)};b.$14=function(){var a=this.$11,b=this.$4;b&&(a.width<350?(d("CSS").removeClass(b,"_30vp"),d("CSS").addClass(b,"_30vq")):a.width<800?(d("CSS").removeClass(b,"_30vp"),d("CSS").removeClass(b,"_30vq")):(d("CSS").removeClass(b,"_30vq"),d("CSS").addClass(b,"_30vp")))};b.$18=function(){this.$9=!1,this.handleCaptionsChanged([],{textAlignment:"center"})};b.$17=function(){var a=this.$2;a!=null&&(this.handleCaptionsChanged([a.text],{textAlignment:"center"}),this.$9=!0)};b.$13=function(a){var b=this.$4;b&&c("DOM").setAttributes(b,{style:"bottom:"+a+"px;"})};b.$16=function(a){a=a.textAlignment;var b=this.$10;if(b)b.setTextAlignment(a),b.updateStyle();else{b=this.$5;var e=this.$4;b&&e&&(this.$10=new(c("VideoPlayerHTML5CaptionsDisplayStyle"))(b,e,d("CaptionSettings").DefaultCaptionSettings,a))}};b.$15=function(a){a=a.map(function(a){return a.trim()}).filter(function(a){return!!a}).join("\n").trim();var b=this.$6;this.$6=a;var e=this.$4,f=this.$5,g=this.$7;if(!e||!f||!g)return;this.$14();a!==b&&c("DOM").setContent(f,a);a?(d("CSS").removeClass(f,"hidden_elem"),g.setHeight(e.offsetHeight)):(d("CSS").addClass(f,"hidden_elem"),g.setHeight(0))};return a}();g["default"]=a}),98); __d("VideoPlayerHTML5TrackNodeManager",["BlobFactory","DOM"],(function(a,b,c,d,e,f,g){var h=a.URL||a.webkitURL;b=function(){function a(a){var b=a.videoEl;a=a.parsedSubRipText;this.$1=null;this.$2=null;this.$3=null;this.$2=b;this.$3=a;this.$4()}var b=a.prototype;b.$4=function(){if(!h||!c("BlobFactory").isSupported())return;if(this.$3){var a=c("BlobFactory").getBlob([this.$3.renderVTT()],{type:"text/vtt"});a=h.createObjectURL(a);this.$1=c("DOM").create("track",{kind:"captions",src:a});c("DOM").appendContent(this.$2,this.$1)}this.$2&&Array.prototype.forEach.call(this.$2.textTracks,function(a){a.mode="hidden"})};b.destroy=function(){this.$1&&(c("DOM").remove(this.$1),this.$1=null)};return a}();g["default"]=b}),98); __d("VideoQualityClassInternal",[],(function(a,b,c,d,e,f){e.exports={orderedValues:["sd","hd","uhd"]}}),null); __d("VideoQualityClasses",["VideoQualityClassInternal"],(function(a,b,c,d,e,f,g){g["default"]=c("VideoQualityClassInternal").orderedValues}),98); __d("classWithMixins",[],(function(a,b,c,d,e,f){function a(a,b){var c=function(){a.apply(this,arguments)};c.prototype=Object.assign(Object.create(a.prototype),b.prototype);return c}f["default"]=a}),66); __d("dispatchEvent",[],(function(a,b,c,d,e,f){function b(b,c){var d;typeof a.Event==="function"?d=new a.Event(c):(d=a.document.createEvent("Event"),d.initEvent(c,!0,!0));b.dispatchEvent(d)}f["default"]=b}),66); __d("supportsHTML5Video",["DOM","memoize"],(function(a,b,c,d,e,f,g){a=c("memoize")(function(){return!!c("DOM").create("video").canPlayType});g["default"]=a}),98); __d("isHTML5VideoImplementationUnavailable",["VideoMimeTypes","canVideoPlayType","supportsHTML5Video"],(function(a,b,c,d,e,f,g){function a(a){if(a){a=c("canVideoPlayType")(c("VideoMimeTypes").h264main30avc);return a!=="probably"}return!c("supportsHTML5Video")()}g["default"]=a}),98); __d("onCanPlayHTMLMediaElement",["invariant","EventListener","HTMLMediaElementReadyStates","setImmediate"],(function(a,b,c,d,e,f,g,h){function i(a){return a>=c("HTMLMediaElementReadyStates").HAVE_FUTURE_DATA}function j(a,b){a instanceof window.HTMLMediaElement||h(0,4493);i(a.readyState)&&c("setImmediate")(b);return c("EventListener").listen(a,"canplay",b)}j.once=function(a,b){var c=this,d=j(a,function(){if(!d)return;d.remove();d=null;for(var a=arguments.length,e=new Array(a),f=0;f=c("HTMLMediaElementReadyStates").HAVE_METADATA}function i(a,b){h(a.readyState)&&c("setImmediate")(b);return c("EventListener").listen(a,"loadedmetadata",b)}i.once=function(a,b){var c=this,d=i(a,function(){d.remove();for(var a=arguments.length,e=new Array(a),f=0;f=d;e.$VideoPlayerHTML5Api28=e.$VideoPlayerHTML5Api7.minQuality;e.$VideoPlayerHTML5Api29=e.$VideoPlayerHTML5Api7.maxQuality;e.$VideoPlayerHTML5Api2=e.$VideoPlayerHTML5Api7.accessToken;e.$VideoPlayerHTML5Api38=e.$VideoPlayerHTML5Api7.startTimestamp;e.$VideoPlayerHTML5Api34=q;e.$VideoPlayerHTML5Api4=!!e.$VideoPlayerHTML5Api7.autoFullscreenHD;e.$VideoPlayerHTML5Api31=null;e.$VideoPlayerHTML5Api48=!1;e.$VideoPlayerHTML5Api49=!1;e.$VideoPlayerHTML5Api50=!!e.$VideoPlayerHTML5Api7.unloadShouldCancelPendingRequest;e.$VideoPlayerHTML5Api44=null;e.$VideoPlayerHTML5Api51=null;return e}babelHelpers.inheritsLoose(c,a);var d=c.prototype;d.setup=function(){var a;this.switchVideo(0);this.initLogger(this.$VideoPlayerHTML5Api69.bind(this),this.$VideoPlayerHTML5Api7.useEventTime,this.$VideoPlayerHTML5Api61("overwrite_video_current_time_property",!1),this.$VideoPlayerHTML5Api61("fix_overwritten_get_video_current_time",!1),this.$VideoPlayerHTML5Api61("fire_seek_events",!1),this.$VideoPlayerHTML5Api61("fix_pause_current_time_in_mixin",!1),(a=b("PlaybackSpeedExperiments").enablePlaybackSpeedLogging())!=null?a:!1)};d.getAdClientToken=function(){this.$VideoPlayerHTML5Api7.ad_client_token};d.$VideoPlayerHTML5Api65=function(a,c){this.$VideoPlayerHTML5Api69("stale",{stale_detect_time_delta:a,stale_video_current_time_delta:c});if(this.$VideoPlayerHTML5Api7.nudgeStaleVideo&&typeof this.$VideoPlayerHTML5Api7.staleVideoNudgeAmountMs==="number"){a=this.getCurrentTimePosition();this.seek((a!=null?a:0)+this.$VideoPlayerHTML5Api7.staleVideoNudgeAmountMs/1e3)}b("VideoPlayerExperiments").showStaleOverlayOnVideoNodeStaled&&this.emit("videoNodeStaled")};d.$VideoPlayerHTML5Api63=function(){this.emit("buffering"),this.$VideoPlayerHTML5Api37.notifyBuffering(),this.$VideoPlayerHTML5Api44&&this.$VideoPlayerHTML5Api44.bufferingStart(Date.now())};d.$VideoPlayerHTML5Api64=function(){this.emit("buffered"),this.$VideoPlayerHTML5Api37.notifyBuffered(),this.$VideoPlayerHTML5Api44&&this.$VideoPlayerHTML5Api44.bufferingEnd(Date.now())};d.$VideoPlayerHTML5Api70=function(a){this.emit("bufferingProgress",a)};d.$VideoPlayerHTML5Api71=function(a){this.emit("initialLiveManifestRequestFailure",a)};d.$VideoPlayerHTML5Api72=function(a){this.emit("replicaSwitch",a)};d.$VideoPlayerHTML5Api73=function(){this.emit("networkInterrupted")};d.$VideoPlayerHTML5Api74=function(){this.emit("networkResumed")};d.$VideoPlayerHTML5Api75=function(){this.emit("streamInterrupted"),this.$VideoPlayerHTML5Api48=!0,this.$VideoPlayerHTML5Api76()};d.$VideoPlayerHTML5Api77=function(){this.emit("seekRangeChanged")};d.$VideoPlayerHTML5Api78=function(){this.emit("streamResumed"),this.$VideoPlayerHTML5Api48=!1};d.$VideoPlayerHTML5Api61=function(a,c){return this.$VideoPlayerHTML5Api41?this.$VideoPlayerHTML5Api41.getBool(a,c):b("VideoPlayerShakaGlobalConfig").getBool(a,c)};d.getVideoPlayerShakaConfig=function(){return this.$VideoPlayerHTML5Api41||b("VideoPlayerShakaGlobalConfig")};d.isStreamInterrupted=function(){return this.$VideoPlayerHTML5Api48};d.getVideoID=function(){return this.$VideoPlayerHTML5Api8?this.$VideoPlayerHTML5Api8.getVideoID():this.$VideoPlayerHTML5Api7.video_id};d.getDroppedFrames=function(){return k(this.$VideoPlayerHTML5Api35)};d.getTotalFrames=function(){return l(this.$VideoPlayerHTML5Api35)};d.isDrm=function(){return this.$VideoPlayerHTML5Api36?this.$VideoPlayerHTML5Api36.isDrm():!1};d.getDebug=function(){return{VideoPlayerHTML5DashPlayer:this.$VideoPlayerHTML5Api36}};d.getDOMElement=function(){return this.$VideoPlayerHTML5Api35};d.getVideoElement=function(){return this.$VideoPlayerHTML5Api35};d.getSubscriptions=function(){return this.$VideoPlayerHTML5Api42};c.onImplementationReady=function(a,b){b()};d.destroy=function(a){var c=this;a===void 0&&(a={});if(this.$VideoPlayerHTML5Api11)return this.$VideoPlayerHTML5Api12?this.$VideoPlayerHTML5Api12:(i||(i=b("Promise"))).resolve();this.$VideoPlayerHTML5Api36&&this.$VideoPlayerHTML5Api36.disableP2PPlayback();this.$VideoPlayerHTML5Api11=!0;b("VideoPlayerMemLeakExperiments").clear_handlers_on_destroy&&this.$VideoPlayerHTML5Api5.destroy();var d=null;a.renderStillFrame===!0?d=this.abortLoading(a):(b("VideoPlayerHTML5Experiments").destroyWithoutStillFrame?d=this.abortLoadingWithoutStillFrame():d=this.abortLoading(a),this.$VideoPlayerHTML5Api79(),this.$VideoPlayerHTML5Api80&&b("DOM").remove(this.$VideoPlayerHTML5Api80));this.$VideoPlayerHTML5Api12=d.then(function(){c.$VideoPlayerHTML5Api12=null},function(){c.$VideoPlayerHTML5Api12=null});b("VideoPlayerMemLeakExperiments").clear_handlers_on_destroy&&this.$VideoPlayerHTML5Api42.release();return this.$VideoPlayerHTML5Api12};d.getVideoInfo=function(){var a=this.$VideoPlayerHTML5Api8;if(!a)return null;var b=this.$VideoPlayerHTML5Api36,c=this.getAvailableVideoQualities();return{isHD:o(c,this.getSelectedVideoQuality()),streamType:a.getStreamType(),hasHD:n(c),areSubtitlesActive:this.areSubtitlesActive(),areSubtitlesAutogenerated:this.areSubtitlesAutogenerated(),isMuted:this.isMuted(),isPlaying:this.$VideoPlayerHTML5Api18,playbackDuration:this.getPlaybackDuration(),volume:this.getVolume(),resourceUrl:b?"DASH manifest":this.$VideoPlayerHTML5Api81(),hasSubtitles:this.hasSubtitles(),hasUnlimitedSrc:a.hasRateLimit(),useUnlimitedSrc:!this.$VideoPlayerHTML5Api20,projection:this.getVideoProjection(),tagSD:a.getSDTag(),tagHD:a.getHDTag(),isLiveStream:a.isLiveStream(),liveManifestUrl:a.isLiveStream()?b?(c=b.getManifestUrl())!=null?c:null:(b=a.getLiveManifestUrl())!=null?b:null:null}};c.isImplementationUnavailable=function(a){return b("isHTML5VideoImplementationUnavailable")(a)};d.pause=function(a){this.$VideoPlayerHTML5Api23=a;if(a==="unloaded"&&!this.isPaused()){a=this.$VideoPlayerHTML5Api50||b("VideoPlayerHTML5Experiments").unloadShouldCancelPendingRequest;a&&this.$VideoPlayerHTML5Api17?this.$VideoPlayerHTML5Api69("cancelled_requested_playing",this.addWatchTimeData({reason:"unloaded"})):this.$VideoPlayerHTML5Api69("paused",this.addWatchTimeData({reason:"unloaded"}));this.$VideoPlayerHTML5Api49=!0;this.preventPauseLoggingInMixin=!0}this.$VideoPlayerHTML5Api82();this.$VideoPlayerHTML5Api36?this.$VideoPlayerHTML5Api36.pause():this.$VideoPlayerHTML5Api35.pause()};d.$VideoPlayerHTML5Api68=function(a){this.$VideoPlayerHTML5Api17=a};d.preload=function(){this.$VideoPlayerHTML5Api32||(this.$VideoPlayerHTML5Api1&&this.$VideoPlayerHTML5Api83(),this.$VideoPlayerHTML5Api32=!0,this.$VideoPlayerHTML5Api35.setAttribute("preload","auto"))};d.isPreloading=function(){return this.$VideoPlayerHTML5Api32};d.play=function(a){var c=this;this.$VideoPlayerHTML5Api43||(this.$VideoPlayerHTML5Api43=a);this.$VideoPlayerHTML5Api24=a;if(!this.isPaused()){b("VideoPlayerHTML5Experiments").shouldDispatchPlayingEvent?(b("dispatchEvent")(this.$VideoPlayerHTML5Api35,"play"),b("setTimeout")(function(){return b("dispatchEvent")(c.$VideoPlayerHTML5Api35,"playing")},0)):this.$VideoPlayerHTML5Api84();return}this.$VideoPlayerHTML5Api30=!0;this.$VideoPlayerHTML5Api68(!0);if(this.$VideoPlayerHTML5Api1){b("dispatchEvent")(this.$VideoPlayerHTML5Api35,"play");this.$VideoPlayerHTML5Api83();this.$VideoPlayerHTML5Api3=!0;return}this.$VideoPlayerHTML5Api85()};d.$VideoPlayerHTML5Api82=function(){this.$VideoPlayerHTML5Api3&&this.isPaused()&&b("dispatchEvent")(this.$VideoPlayerHTML5Api35,"pause"),this.$VideoPlayerHTML5Api68(!1),this.$VideoPlayerHTML5Api86()};d.$VideoPlayerHTML5Api86=function(){this.$VideoPlayerHTML5Api30=!1,this.$VideoPlayerHTML5Api3=!1};d.$VideoPlayerHTML5Api87=function(){this.$VideoPlayerHTML5Api35.setAttribute("preload","auto"),this.$VideoPlayerHTML5Api32=!0,this.$VideoPlayerHTML5Api35.load(),this.$VideoPlayerHTML5Api35.muted=this.$VideoPlayerHTML5Api27};d.seek=function(a){var c=this.$VideoPlayerHTML5Api61("clear_buffer_on_seek_back",!1),d=this.$VideoPlayerHTML5Api41&&b("ShakaConstants").numbers.clear_buffer_on_seek_back_delta;this.$VideoPlayerHTML5Api36&&c&&typeof d==="number"&&this.$VideoPlayerHTML5Api35.currentTime-a>=d&&this.$VideoPlayerHTML5Api36.clearBufferAfterSeekingIfLowerQuality(a);this.$VideoPlayerHTML5Api44&&this.$VideoPlayerHTML5Api44.seekStart();this.allowNextSeekInMixin();if(this.$VideoPlayerHTML5Api61("current_time_during_ready_state_zero_throws",!1))this.$VideoPlayerHTML5Api35.readyState!==0&&(this.$VideoPlayerHTML5Api35.currentTime=a);else try{this.$VideoPlayerHTML5Api35.currentTime=a}catch(a){}this.$VideoPlayerHTML5Api44&&this.$VideoPlayerHTML5Api44.seekEnd()};d.removeRotation=function(){b("CSS").removeClass(this.$VideoPlayerHTML5Api35,"_56jr"),b("CSS").removeClass(this.$VideoPlayerHTML5Api35,"_56js"),b("CSS").removeClass(this.$VideoPlayerHTML5Api35,"_56jt"),this.$VideoPlayerHTML5Api35.style.marginLeft="",this.$VideoPlayerHTML5Api35.style.marginTop="",this.$VideoPlayerHTML5Api35.style.width="",this.$VideoPlayerHTML5Api35.style.height=""};d.applyRotation=function(a){if(!a)return;b("CSS").conditionClass(this.$VideoPlayerHTML5Api35,"_56jr",a==90);b("CSS").conditionClass(this.$VideoPlayerHTML5Api35,"_56js",a==180);b("CSS").conditionClass(this.$VideoPlayerHTML5Api35,"_56jt",a==270);if(a==180)return;a=this.$VideoPlayerHTML5Api14;var c=this.$VideoPlayerHTML5Api47,d=(a-c)/2,e=(c-a)/2;this.$VideoPlayerHTML5Api35.style.marginLeft=e+"px";this.$VideoPlayerHTML5Api35.style.marginTop=d+"px";this.$VideoPlayerHTML5Api35.style.height=c+"px";this.$VideoPlayerHTML5Api35.style.width=a+"px"};d.$VideoPlayerHTML5Api88=function(a){this.$VideoPlayerHTML5Api41&&this.$VideoPlayerHTML5Api41.setContext("content_category",a.getContentCategory()||"content_category"),this.$VideoPlayerHTML5Api41&&a.isLowLatency()&&this.$VideoPlayerHTML5Api41.setContext("latency_level","low"),this.$VideoPlayerHTML5Api41&&a.isServableViaFbms()&&this.$VideoPlayerHTML5Api41.setContext("servable_via_fmbs",a.isServableViaFbms())};d.switchVideo=function(a){var c=this;if(!this.$VideoPlayerHTML5Api7.videoData||this.$VideoPlayerHTML5Api7.videoData.length<=a)return;var d=new(b("VideoData"))(this.$VideoPlayerHTML5Api7.videoData[a]);this.$VideoPlayerHTML5Api8=d;a=d.getFairplayCert();b("cr:936794")!=null&&a!=null&&(this.$VideoPlayerHTML5Api51=b("cr:936794").newIfSupported(a,this.getVideoElement(),d.getVideoID(),this.$VideoPlayerHTML5Api7.videoLicenseUriMap));d.getOverrideConfig()&&this.$VideoPlayerHTML5Api41&&this.$VideoPlayerHTML5Api41.setOverrideConfig(d.getOverrideConfig());this.$VideoPlayerHTML5Api88(d);a=d.isLiveStream()&&d.isHls();if(!a&&(d.hasDashManifest()||d.isLiveStream())&&this.$VideoPlayerHTML5Api7.VideoPlayerHTML5Shaka&&this.$VideoPlayerHTML5Api7.VideoPlayerHTML5Shaka.isSupported(d)&&!this.$VideoPlayerHTML5Api7.fallbackSources){this.$VideoPlayerHTML5Api5.destroy();a=d.getDashManifest();var e;if(d.isLiveStream()){e=d.getLiveManifestUrl();var f=this.$VideoPlayerHTML5Api16;if(e!=null&&f!=null){var g=new(j||(j=b("URI")))(e);f=Object.entries(f);f.forEach(function(a){var b=a[0];a=a[1];b=b;if(b==="msx"){var c;b=(c=d.getManifestServiceParam())!=null?c:b}g.addQueryData(b,a)});e=g.toString()}}f=t(this.$VideoPlayerHTML5Api7.initialRepresentationIds)||d.getDashPrefetchedRepresentationIDs();var i=this.$VideoPlayerHTML5Api7.seekHandler,k=i;i&&(k=function(a){!c.getCurrentTimePosition()?c.$VideoPlayerHTML5Api35.currentTime=a:c.$VideoPlayerHTML5Api17?c.seek(a):i(a)});f=new this.$VideoPlayerHTML5Api7.VideoPlayerHTML5Shaka(this.$VideoPlayerHTML5Api35,f,{accessToken:this.$VideoPlayerHTML5Api2,config:this.$VideoPlayerHTML5Api7.shakaConfig,minPlayQuality:this.$VideoPlayerHTML5Api28,maxPlayQuality:this.$VideoPlayerHTML5Api29,width:this.$VideoPlayerHTML5Api47,height:this.$VideoPlayerHTML5Api14,manifest:a,manifestUrl:e,isLive:d.isLiveStream(),isServableViaFbms:d.isServableViaFbms(),startTimestamp:this.$VideoPlayerHTML5Api38,videoID:this.getVideoID(),playerInstanceKey:this.$VideoPlayerHTML5Api7.playerInstanceKey,disableStreaming:this.$VideoPlayerHTML5Api7.disableStreaming,playerOrigin:this.$VideoPlayerHTML5Api7.playerOrigin,playerSuborigin:this.$VideoPlayerHTML5Api7.playerSuborigin,resolutionConstraintMaxHeight:this.$VideoPlayerHTML5Api7.resolutionConstraintMaxHeight,resolutionConstraintMaxWidth:this.$VideoPlayerHTML5Api7.resolutionConstraintMaxWidth,isSpherical:this.$VideoPlayerHTML5Api7.isSpherical,getSource:this.$VideoPlayerHTML5Api7.getSource,vpcPlayingStateEmitter:this.$VideoPlayerHTML5Api7.vpcPlayingStateEmitter,seekHandler:k,streamPriorityAdjuster:this.$VideoPlayerHTML5Api7.streamPriorityAdjuster,videoLiveTrace:this.$VideoPlayerHTML5Api7.videoLiveTrace?this.$VideoPlayerHTML5Api7.videoLiveTrace:null,videoLicenseUriMap:this.$VideoPlayerHTML5Api7.videoLicenseUriMap?this.$VideoPlayerHTML5Api7.videoLicenseUriMap:{},prefetchCache:d.getPrefetchCache(),graphApiVideoLicenseUri:this.$VideoPlayerHTML5Api7.graphApiVideoLicenseUri,widevineCert:d.getWidevineCert(),OzDrmHelper:this.$VideoPlayerHTML5Api7.OzDrmHelper,videoWatchTimeTracker:this.$VideoPlayerHTML5Api44,desiredLatencyMs:d.getDesiredLatencyMs(),latencyToleranceMs:d.getLatencyToleranceMs(),disableAbr:this.$VideoPlayerHTML5Api7.isSpherical===!0&&this.$VideoPlayerHTML5Api61("disable_360_abr",!1),p2pModuleLoader:this.$VideoPlayerHTML5Api7.p2pModuleLoader,p2pSettings:d.getP2PSettings(),disableLogging:this.$VideoPlayerHTML5Api7.disableLogging});b("VideoPlayerMemLeakExperiments").www_videos_memleak_on_tv?this.$VideoPlayerHTML5Api42.addSubscriptions(f.addListener("seekRangeChanged",function(){return c.$VideoPlayerHTML5Api77()}),f.addListener("bufferingStart",function(){return c.$VideoPlayerHTML5Api63()}),f.addListener("bufferingEnd",function(){return c.$VideoPlayerHTML5Api64()}),f.addListener("bufferingProgress",this.$VideoPlayerHTML5Api70.bind(this)),f.addListener("tracksChanged",function(){return c.emit("qualityChange")}),f.addListener("streamInterrupted",function(){return c.$VideoPlayerHTML5Api75()}),f.addListener("streamResumed",function(){return c.$VideoPlayerHTML5Api78()}),f.addListener("initialLiveManifestRequestFailure",this.$VideoPlayerHTML5Api71.bind(this)),f.addListener("replicaSwitch",this.$VideoPlayerHTML5Api72.bind(this)),f.addListener("networkInterrupted",function(){return c.$VideoPlayerHTML5Api73()}),f.addListener("networkResumed",function(){return c.$VideoPlayerHTML5Api74()}),f.addListener("adaptation",function(a){a=a.reason;b("VideoPlayerHTML5Experiments").dropQualityChange||c.$VideoPlayerHTML5Api69("quality_change",{reason:a});c.emit("qualityChange")}),f.addListener("representation_ended",function(a){c.logRepresentationEnded(a)}),f.addListener("blocked_paused_representation_ended",function(){c.onBlockedPausedRepresentationEnded()}),f.addListener("debug/dashPlayerEvent",function(a){return c.emit("debug/dashPlayerEvent",a)}),f.addListener("error",function(a){return c.$VideoPlayerHTML5Api89(a)}),f.addListener("cea608AvailabilityChanged",function(){var a=c.$VideoPlayerHTML5Api36;a&&a.areInbandCaptionsExpected()?c.$VideoPlayerHTML5Api53=!0:(c.$VideoPlayerHTML5Api53=!1,c.$VideoPlayerHTML5Api76());c.$VideoPlayerHTML5Api90();c.emit("captionsAvailabilityChanged")}),f.addListener("cea608CaptionsBytesReceived",function(a){var b=a.timescale;a=a.videoBytes;b!=null&&!isNaN(b)||h(0,18732);a!=null||h(0,18733);b={timescale:b,videoBytes:a};a=c.$VideoPlayerHTML5Api57;a||(a=c.$VideoPlayerHTML5Api91());a.enqueueBytes(b)}),f.addListener("p2pPluginReady",function(){c.p2pPluginReady()})):(f.addListener("seekRangeChanged",function(){return c.$VideoPlayerHTML5Api77()}),f.addListener("bufferingStart",function(){return c.$VideoPlayerHTML5Api63()}),f.addListener("bufferingEnd",function(){return c.$VideoPlayerHTML5Api64()}),f.addListener("bufferingProgress",this.$VideoPlayerHTML5Api70.bind(this)),f.addListener("tracksChanged",function(){return c.emit("qualityChange")}),f.addListener("streamInterrupted",function(){return c.$VideoPlayerHTML5Api75()}),f.addListener("streamResumed",function(){return c.$VideoPlayerHTML5Api78()}),f.addListener("initialLiveManifestRequestFailure",this.$VideoPlayerHTML5Api71.bind(this)),f.addListener("replicaSwitch",this.$VideoPlayerHTML5Api72.bind(this)),f.addListener("networkInterrupted",function(){return c.$VideoPlayerHTML5Api73()}),f.addListener("networkResumed",function(){return c.$VideoPlayerHTML5Api74()}),f.addListener("adaptation",function(a){a=a.reason;b("VideoPlayerHTML5Experiments").dropQualityChange||c.$VideoPlayerHTML5Api69("quality_change",{reason:a});c.emit("qualityChange")}),f.addListener("representation_ended",function(a){c.logRepresentationEnded(a)}),f.addListener("blocked_paused_representation_ended",function(){c.onBlockedPausedRepresentationEnded()}),f.addListener("debug/dashPlayerEvent",function(a){return c.emit("debug/dashPlayerEvent",a)}),f.addListener("error",function(a){return c.$VideoPlayerHTML5Api89(a)}),f.addListener("cea608AvailabilityChanged",function(){var a=c.$VideoPlayerHTML5Api36;a&&a.areInbandCaptionsExpected()?c.$VideoPlayerHTML5Api53=!0:(c.$VideoPlayerHTML5Api53=!1,c.$VideoPlayerHTML5Api76());c.$VideoPlayerHTML5Api90();c.emit("captionsAvailabilityChanged")}),f.addListener("cea608CaptionsBytesReceived",function(a){var b=a.timescale;a=a.videoBytes;b!=null&&!isNaN(b)||h(0,18732);a!=null||h(0,18733);b={timescale:b,videoBytes:a};a=c.$VideoPlayerHTML5Api57;a||(a=c.$VideoPlayerHTML5Api91());a.enqueueBytes(b)}),f.addListener("p2pPluginReady",function(){c.p2pPluginReady()}));f.setup();this.$VideoPlayerHTML5Api36=f}else{a=this.$VideoPlayerHTML5Api81();typeof a==="string"&&a!==""&&(this.$VideoPlayerHTML5Api35.src=a);this.$VideoPlayerHTML5Api38!=null&&this.$VideoPlayerHTML5Api38!==0&&this.seek(this.$VideoPlayerHTML5Api38)}this.$VideoPlayerHTML5Api76();this.hasSubtitles()&&d.hasSubtitles()&&this.$VideoPlayerHTML5Api92(d.getSubtitlesSrc());this.removeRotation();this.applyRotation(d.getRotation())};d.switchToStreamType=function(a){};d.replaceVideoDataFromURL=function(a){};d.getDashAudioConfiguration=function(){return this.$VideoPlayerHTML5Api36?this.$VideoPlayerHTML5Api36.getDashAudioConfiguration():"none"};d.getAudioStreamInfoIDDebug=function(){if(this.$VideoPlayerHTML5Api36){var a=this.$VideoPlayerHTML5Api36.getDebug();if(a.VideoSource){a=a.VideoSource.getAudioTracks();for(a of a)if(a.active)return a.streamInfoID}}return null};d.getVideoTracksDebug=function(){if(this.$VideoPlayerHTML5Api36){var a=this.$VideoPlayerHTML5Api36.getDebug();if(a.VideoSource)return a.VideoSource.getVideoTracks()}return null};d.getCurrentlyPlayingVideoStreamInfoID=function(){var a=this.getCurrentTimePosition();if(this.$VideoPlayerHTML5Api36)return a!=null?this.$VideoPlayerHTML5Api36.getVideoStreamInfoIDForTimePosition(a):null;else if(!this.$VideoPlayerHTML5Api8)return null;else return this.$VideoPlayerHTML5Api19?this.$VideoPlayerHTML5Api8.getHDTag():this.$VideoPlayerHTML5Api8.getSDTag()};d.getCurrentlyPlayingAudioStreamInfoID=function(){var a=this.getCurrentTimePosition();return this.$VideoPlayerHTML5Api36&&a!=null?this.$VideoPlayerHTML5Api36.getAudioStreamInfoIDForTimePosition(a):null};d.getLocalEstimator=function(){return this.$VideoPlayerHTML5Api36?this.$VideoPlayerHTML5Api36.getLocalEstimator():null};d.unmute=function(){if(this.$VideoPlayerHTML5Api1){this.$VideoPlayerHTML5Api1.mutedState=!1;this.$VideoPlayerHTML5Api27=!1;this.emit("unmuteVideo");return}this.$VideoPlayerHTML5Api35.muted=!1};d.mute=function(){if(this.$VideoPlayerHTML5Api1){this.$VideoPlayerHTML5Api1.mutedState=!0;this.$VideoPlayerHTML5Api27=!0;this.emit("muteVideo");return}this.$VideoPlayerHTML5Api35.muted=!0};d.setRotation=function(a){this.removeRotation(),this.applyRotation(a)};d.setDimensions=function(a,b){var c;this.removeRotation();this.$VideoPlayerHTML5Api47=a;this.$VideoPlayerHTML5Api14=b;this.$VideoPlayerHTML5Api8&&this.applyRotation(this.$VideoPlayerHTML5Api8.getRotation());this.$VideoPlayerHTML5Api39&&this.$VideoPlayerHTML5Api39.updateDimensions(a,b);this.$VideoPlayerHTML5Api36&&this.$VideoPlayerHTML5Api36.setDimensions(a,b);c=(c=this.$VideoPlayerHTML5Api58)!=null?c:this.$VideoPlayerHTML5Api60;if(c){var d=this.$VideoPlayerHTML5Api93();c.handleBoundingBoxChanged(d)}this.emit("dimensionsChange",a,b)};d.setVideoStreamOffset=function(a){this.$VideoPlayerHTML5Api36&&this.$VideoPlayerHTML5Api36.setVideoStreamOffset(a)};d.$VideoPlayerHTML5Api94=function(){this.$VideoPlayerHTML5Api35.controls=!this.$VideoPlayerHTML5Api9};d.$VideoPlayerHTML5Api66=function(){this.$VideoPlayerHTML5Api35.controls=this.$VideoPlayerHTML5Api35.controls&&!this.$VideoPlayerHTML5Api9};d.$VideoPlayerHTML5Api67=function(){this.$VideoPlayerHTML5Api13=b("EventListener").listen(this.$VideoPlayerHTML5Api35,"error",this.$VideoPlayerHTML5Api95.bind(this)),b("VideoPlayerMemLeakExperiments").clear_html5_error_handler||this.$VideoPlayerHTML5Api42.addSubscriptions(this.$VideoPlayerHTML5Api13),this.$VideoPlayerHTML5Api42.addSubscriptions(b("EventListener").listen(this.$VideoPlayerHTML5Api35,"playing",this.$VideoPlayerHTML5Api96.bind(this)),b("EventListener").listen(this.$VideoPlayerHTML5Api35,"play",this.$VideoPlayerHTML5Api84.bind(this)),b("EventListener").listen(this.$VideoPlayerHTML5Api35,"ended",this.$VideoPlayerHTML5Api97.bind(this)),b("EventListener").listen(this.$VideoPlayerHTML5Api35,"waiting",this.$VideoPlayerHTML5Api98.bind(this)),b("EventListener").listen(this.$VideoPlayerHTML5Api35,"pause",this.$VideoPlayerHTML5Api99.bind(this)),b("EventListener").listen(this.$VideoPlayerHTML5Api35,"volumechange",this.$VideoPlayerHTML5Api100.bind(this)),b("EventListener").listen(this.$VideoPlayerHTML5Api35,"mousedown",this.$VideoPlayerHTML5Api101.bind(this)),b("EventListener").listen(this.$VideoPlayerHTML5Api35,"mouseup",this.$VideoPlayerHTML5Api102.bind(this)),b("EventListener").listen(this.$VideoPlayerHTML5Api35,"timeupdate",this.$VideoPlayerHTML5Api103.bind(this)),b("EventListener").listen(this.$VideoPlayerHTML5Api35,"click",this.$VideoPlayerHTML5Api104.bind(this)),b("EventListener").listen(this.$VideoPlayerHTML5Api35,"loadedmetadata",this.$VideoPlayerHTML5Api105.bind(this)),b("EventListener").listen(this.$VideoPlayerHTML5Api35,"progress",this.$VideoPlayerHTML5Api106.bind(this)),b("EventListener").listen(this.$VideoPlayerHTML5Api35,"seeked",this.$VideoPlayerHTML5Api107.bind(this)),b("EventListener").capture(this.$VideoPlayerHTML5Api35.parentNode,"pause",this.$VideoPlayerHTML5Api108.bind(this)))};d.$VideoPlayerHTML5Api109=function(a){this.preventPauseLoggingInMixin=!1,a.preventDefault(),a.stopPropagation()};d.$VideoPlayerHTML5Api108=function(a){if(a.target!==this.$VideoPlayerHTML5Api35)return;this.$VideoPlayerHTML5Api35.ended||(this.$VideoPlayerHTML5Api49&&this.$VideoPlayerHTML5Api109(a),a.lastPauseReason=this.$VideoPlayerHTML5Api23);this.$VideoPlayerHTML5Api49=!1;this.$VideoPlayerHTML5Api44&&this.$VideoPlayerHTML5Api44.pause()};d.$VideoPlayerHTML5Api106=function(){var a=this.$VideoPlayerHTML5Api35.buffered,b=0,c=0,d=a.length;while(d-->0){var e=a.end(d),f=a.start(d);if(f<=this.$VideoPlayerHTML5Api35.currentTime){c=f;b=e-f;break}}this.$VideoPlayerHTML5Api110("flash/updateBuffer",{duration:b,offset:c})};d.$VideoPlayerHTML5Api103=function(){var a,b;this.$VideoPlayerHTML5Api1?b=this.$VideoPlayerHTML5Api1.currentTime:b=this.$VideoPlayerHTML5Api35.currentTime;a=(a=(a=this.$VideoPlayerHTML5Api56)==null?void 0:a.source)!=null?a:(a=this.$VideoPlayerHTML5Api57)==null?void 0:a.source;a&&a.handleTimeUpdate(b);this.$VideoPlayerHTML5Api110("flash/updateStatus",{position:+b.toFixed(3)})};d.$VideoPlayerHTML5Api104=function(a){if(a.button!==0)return;this.emit("clickVideo");a.preventDefault()};d.isPaused=function(){return b("VideoPlayerHTML5Experiments").fixIE11EndedPausedState?this.$VideoPlayerHTML5Api35.paused||this.$VideoPlayerHTML5Api35.ended:this.$VideoPlayerHTML5Api35.paused};d.$VideoPlayerHTML5Api111=function(){var a=this.$VideoPlayerHTML5Api35.buffered;return a.length>0&&a.start(0)===0&&a.end(0)===this.$VideoPlayerHTML5Api35.duration};d.$VideoPlayerHTML5Api98=function(){if(this.$VideoPlayerHTML5Api61("drop_buffering_detection_from_html5_api",!1))return;this.$VideoPlayerHTML5Api111()||(this.$VideoPlayerHTML5Api46=!0,this.$VideoPlayerHTML5Api110("flash/buffering"))};d.setVolume=function(a){this.$VideoPlayerHTML5Api35.volume=a};d.$VideoPlayerHTML5Api100=function(){this.$VideoPlayerHTML5Api35.muted!==this.$VideoPlayerHTML5Api27&&this.$VideoPlayerHTML5Api35.volume===this.$VideoPlayerHTML5Api45&&this.$VideoPlayerHTML5Api35.volume>0?(this.$VideoPlayerHTML5Api27=this.$VideoPlayerHTML5Api35.muted,this.$VideoPlayerHTML5Api45=this.$VideoPlayerHTML5Api35.volume,!this.$VideoPlayerHTML5Api35.muted?this.$VideoPlayerHTML5Api110("flash/unmuteVideo"):this.$VideoPlayerHTML5Api110("flash/muteVideo")):(this.$VideoPlayerHTML5Api27=this.$VideoPlayerHTML5Api35.muted,this.$VideoPlayerHTML5Api45=this.$VideoPlayerHTML5Api35.volume,this.$VideoPlayerHTML5Api110("flash/changeVolume",{volume:this.$VideoPlayerHTML5Api35.volume})),this.$VideoPlayerHTML5Api35.muted||this.$VideoPlayerHTML5Api110("flash/turnOffAutoplay",{reason:"unmuted"})};d.$VideoPlayerHTML5Api101=function(a){a.button===0&&(this.$VideoPlayerHTML5Api26=!0)};d.$VideoPlayerHTML5Api102=function(a){a.button===0&&(this.$VideoPlayerHTML5Api26=!1)};d.$VideoPlayerHTML5Api96=function(){this.$VideoPlayerHTML5Api68(!1),this.$VideoPlayerHTML5Api46&&(this.$VideoPlayerHTML5Api46=!1,this.$VideoPlayerHTML5Api110("flash/buffered")),this.$VideoPlayerHTML5Api44&&this.$VideoPlayerHTML5Api44.playing()};d.$VideoPlayerHTML5Api84=function(){this.$VideoPlayerHTML5Api18=!0,this.$VideoPlayerHTML5Api94(),this.$VideoPlayerHTML5Api90(),this.$VideoPlayerHTML5Api110("flash/beginPlayback",{position:+this.$VideoPlayerHTML5Api35.currentTime.toFixed(2),reason:this.$VideoPlayerHTML5Api24})};d.$VideoPlayerHTML5Api99=function(a){var c=this.$VideoPlayerHTML5Api61("abort_loading_decisioning_logic",!1);if(this.$VideoPlayerHTML5Api35.ended||c&&b("dangerouslyOverrideMediaElementEndedProperty").isEnded(a)){this.$VideoPlayerHTML5Api18=!1;this.$VideoPlayerHTML5Api68(!1);return}if(this.$VideoPlayerHTML5Api35.seeking&&this.$VideoPlayerHTML5Api23==="seek_initiated")return;if(!this.$VideoPlayerHTML5Api61("ignore_left_button_when_pausing",!0)&&this.$VideoPlayerHTML5Api26)return;if(this.$VideoPlayerHTML5Api23==="seek_initiated"||this.$VideoPlayerHTML5Api23==="hive_reload"){this.$VideoPlayerHTML5Api23=null;return}(this.$VideoPlayerHTML5Api23===null||this.$VideoPlayerHTML5Api23==="user_initiated")&&this.$VideoPlayerHTML5Api110("flash/turnOffAutoplay",{reason:"manually_paused"});this.$VideoPlayerHTML5Api23=null;this.$VideoPlayerHTML5Api18=!1;this.$VideoPlayerHTML5Api68(!1);this.$VideoPlayerHTML5Api66();this.$VideoPlayerHTML5Api110("flash/pausePlayback",{position:this.$VideoPlayerHTML5Api35.currentTime.toFixed(2)})};d.$VideoPlayerHTML5Api97=function(){var a;if(this.$VideoPlayerHTML5Api1)return;this.$VideoPlayerHTML5Api66();this.$VideoPlayerHTML5Api18=!1;this.$VideoPlayerHTML5Api68(!1);this.$VideoPlayerHTML5Api110("flash/finishPlayback");a=(a=this.$VideoPlayerHTML5Api58)!=null?a:this.$VideoPlayerHTML5Api60;a&&a.hideCaptions()};d.$VideoPlayerHTML5Api107=function(){this.emit("seekEnd",{position:+this.$VideoPlayerHTML5Api35.currentTime.toFixed(3)})};d.getEstimatedBandwidth=function(){return this.$VideoPlayerHTML5Api36&&this.$VideoPlayerHTML5Api7.VideoPlayerHTML5Shaka?this.$VideoPlayerHTML5Api7.VideoPlayerHTML5Shaka.getEstimatedBandwidth():null};d.$VideoPlayerHTML5Api105=function(){this.$VideoPlayerHTML5Api110("flash/updateMetadata")};d.$VideoPlayerHTML5Api89=function(a){this.emit("error",babelHelpers["extends"]({},a,{isPlayback:this.$VideoPlayerHTML5Api30}))};d.$VideoPlayerHTML5Api95=function(){if(this.$VideoPlayerHTML5Api1)return;if(!this.$VideoPlayerHTML5Api35.error)return;var a=this.$VideoPlayerHTML5Api35.error,c=a.message;(c==null||c==="")&&(c=b("getErrorMessageFromMediaErrorCode")(a.code));this.emit("error",{error:b("getErrorNameFromMediaErrorCode")(a.code),isPlayback:this.$VideoPlayerHTML5Api30,message:c})};d.$VideoPlayerHTML5Api69=function(a,b){b=babelHelpers["extends"]({event:a},b);a==="started_playing"&&this.$VideoPlayerHTML5Api36&&(b.longest_init_response_time=this.$VideoPlayerHTML5Api36.getLongestInitResponseTime());b.projection=this.getVideoProjection();this.$VideoPlayerHTML5Api110("flash/logEvent",{logData:b})};d.$VideoPlayerHTML5Api110=function(a,c){b("Arbiter").inform(a,babelHelpers["extends"]({divID:this.$VideoPlayerHTML5Api15},c)),this.emit(a.substr("flash/".length),c)};d.getLastPlayReason=function(){return this.$VideoPlayerHTML5Api24};d.getVideoPlayReason=function(){return this.$VideoPlayerHTML5Api43};d.isMuted=function(){return this.$VideoPlayerHTML5Api27};d.setPlaybackRate=function(a){this.$VideoPlayerHTML5Api36?this.$VideoPlayerHTML5Api36.setPlaybackRate(a):this.$VideoPlayerHTML5Api35.playbackRate=a};d.getPlaybackRate=function(){if(this.$VideoPlayerHTML5Api36)return this.$VideoPlayerHTML5Api36.getPlaybackRate();else return this.$VideoPlayerHTML5Api35.playbackRate};d.getPlaybackDuration=function(){return this.$VideoPlayerHTML5Api1?this.$VideoPlayerHTML5Api1.playbackDuration:this.$VideoPlayerHTML5Api35.duration||0};d.getVolume=function(){return this.$VideoPlayerHTML5Api35.volume};d.getCurrentTimePosition=function(){return this.$VideoPlayerHTML5Api35.currentTime};d.getBufferEndPosition=function(){var a=this.$VideoPlayerHTML5Api35.buffered;if(a&&a.length>0){var b=a.length-1;return a.end(b)}return null};d.$VideoPlayerHTML5Api81=function(){if(this.$VideoPlayerHTML5Api7.fallbackSources)return this.$VideoPlayerHTML5Api19&&this.$VideoPlayerHTML5Api7.fallbackSources.HD?this.$VideoPlayerHTML5Api7.fallbackSources.HD:this.$VideoPlayerHTML5Api7.fallbackSources.SD;var a=this.$VideoPlayerHTML5Api8;if(a)if(this.$VideoPlayerHTML5Api19&&a.hasHD())return this.$VideoPlayerHTML5Api112();else return this.$VideoPlayerHTML5Api113();return null};d.$VideoPlayerHTML5Api112=function(){var a=this.$VideoPlayerHTML5Api8;if(a)if(this.$VideoPlayerHTML5Api20){var b;return(b=a.getPlayableSrcRateLimitedHD())!=null?b:null}else{return(b=a.getPlayableSrcHD())!=null?b:null}return null};d.$VideoPlayerHTML5Api113=function(){var a=this.$VideoPlayerHTML5Api8;if(a)if(this.$VideoPlayerHTML5Api20){var b;return(b=a.getPlayableSrcRateLimitedSD())!=null?b:null}else{return(b=a.getPlayableSrcSD())!=null?b:null}return null};d.toggleSubtitles=function(){this.$VideoPlayerHTML5Api53=!this.$VideoPlayerHTML5Api53,this.$VideoPlayerHTML5Api90(),this.emit("toggleSubtitles")};d.$VideoPlayerHTML5Api114=function(){return!1};d.hasSubtitles=function(){var a=this.$VideoPlayerHTML5Api8,b=this.$VideoPlayerHTML5Api36;if(this.$VideoPlayerHTML5Api114())return!1;a=a?a.hasSubtitles():!1;if(a)return a;else if(b)return b.areInbandCaptionsExpected();else return!1};d.areSubtitlesActive=function(){return this.$VideoPlayerHTML5Api53};d.areSubtitlesAutogenerated=function(){return this.$VideoPlayerHTML5Api36?this.$VideoPlayerHTML5Api36.areInbandCaptionsAutogenerated():!1};d.areHLSActive=function(){return!1};d.setAutogeneratedCaptionsOptions=function(a){this.$VideoPlayerHTML5Api55=a;a=(a=this.$VideoPlayerHTML5Api58)!=null?a:this.$VideoPlayerHTML5Api60;a&&a.setAutogeneratedCaptionsOptions(this.$VideoPlayerHTML5Api55)};d.setSubtitlesStyle=function(a){this.$VideoPlayerHTML5Api54=a;a=(a=this.$VideoPlayerHTML5Api58)!=null?a:this.$VideoPlayerHTML5Api60;a&&a.setCaptionsStyle(this.$VideoPlayerHTML5Api54)};d.$VideoPlayerHTML5Api90=function(){var a=this.$VideoPlayerHTML5Api36;a&&a.areInbandCaptionsExpected()&&(this.$VideoPlayerHTML5Api114()?a.setEnableInbandCaptionsParsing(!1):a.setEnableInbandCaptionsParsing(this.$VideoPlayerHTML5Api54.enabled));a=(a=this.$VideoPlayerHTML5Api58)!=null?a:this.$VideoPlayerHTML5Api60;a&&(this.$VideoPlayerHTML5Api53?a.showCaptions():a.hideCaptions())};d.$VideoPlayerHTML5Api115=function(){var a;a=(a=(a=this.$VideoPlayerHTML5Api56)==null?void 0:a.source)!=null?a:(a=this.$VideoPlayerHTML5Api57)==null?void 0:a.source;a&&a.handleTimeUpdate(this.$VideoPlayerHTML5Api35.currentTime);this.$VideoPlayerHTML5Api18&&this.$VideoPlayerHTML5Api90();this.emit("loadedSubtitles")};d.$VideoPlayerHTML5Api116=function(){var a=this,c=this.$VideoPlayerHTML5Api7.subtitleDrawer;if(!c||!(c instanceof b("VideoPlayerUIComponentDrawer")))return null;c=new(b("VideoPlayerHTML5CaptionsDisplay"))({append:function(c){if(!a.$VideoPlayerHTML5Api35.parentNode){b("FBLogger")("video").info("Missing video player parent element to append the captions display");return function(){}}b("DOM").insertAfter(a.$VideoPlayerHTML5Api35,c);return function(){b("DOM").remove(c)}},areCaptionsAutogenerated:this.areSubtitlesAutogenerated(),drawer:c,existingNodesContainer:this.$VideoPlayerHTML5Api35.parentNode,boundingBox:this.$VideoPlayerHTML5Api93()});c.setCaptionsStyle(this.$VideoPlayerHTML5Api54);c.setAutogeneratedCaptionsOptions(this.$VideoPlayerHTML5Api55);return c};d.$VideoPlayerHTML5Api93=function(){var a=this.$VideoPlayerHTML5Api35.getBoundingClientRect();return{width:a.width,height:a.height}};d.$VideoPlayerHTML5Api92=function(a){var c=this;this.$VideoPlayerHTML5Api76();this.$VideoPlayerHTML5Api58=this.$VideoPlayerHTML5Api116();this.$VideoPlayerHTML5Api56=new(b("VideoPlayerHTML5ApiWebVttState"))({onReady:function(b){c.$VideoPlayerHTML5Api59&&(c.$VideoPlayerHTML5Api59.destroy(),c.$VideoPlayerHTML5Api59=null),b.loadFromUrl(a)},onCaptionsLoaded:function(a){c.$VideoPlayerHTML5Api115(),c.$VideoPlayerHTML5Api59=new(b("VideoPlayerHTML5TrackNodeManager"))({videoEl:c.$VideoPlayerHTML5Api35,parsedSubRipText:a})},captionsDisplay:this.$VideoPlayerHTML5Api58});return this.$VideoPlayerHTML5Api56};d.$VideoPlayerHTML5Api91=function(){var a=this;this.$VideoPlayerHTML5Api76();this.$VideoPlayerHTML5Api60=this.$VideoPlayerHTML5Api116();this.$VideoPlayerHTML5Api57=new(b("VideoPlayerHTML5ApiCea608State"))({onReady:function(a){a.processQueue()},onCaptionsLoaded:function(){a.$VideoPlayerHTML5Api115()},captionsDisplay:this.$VideoPlayerHTML5Api60});return this.$VideoPlayerHTML5Api57};d.$VideoPlayerHTML5Api76=function(){this.$VideoPlayerHTML5Api57&&(this.$VideoPlayerHTML5Api57.destroy(),this.$VideoPlayerHTML5Api57=null),this.$VideoPlayerHTML5Api56&&(this.$VideoPlayerHTML5Api56.destroy(),this.$VideoPlayerHTML5Api56=null),this.$VideoPlayerHTML5Api59&&(this.$VideoPlayerHTML5Api59.destroy(),this.$VideoPlayerHTML5Api59=null)};d.setStillFrameEnabled=function(a){this.$VideoPlayerHTML5Api40=!a};d.$VideoPlayerHTML5Api62=function(){if(this.$VideoPlayerHTML5Api61("use_dimensions_fallbacks",!0)){var a=b("DOMDimensions").getElementDimensions(this.$VideoPlayerHTML5Api35);if(a.width!==0&&a.height!==0)return a;else{a=this.$VideoPlayerHTML5Api35.getAttribute("data-video-width");var c=this.$VideoPlayerHTML5Api35.getAttribute("data-video-height");return{width:Number(a)||this.$VideoPlayerHTML5Api35.width||r,height:Number(c)||this.$VideoPlayerHTML5Api35.height||s}}}else return b("DOMDimensions").getElementDimensions(this.$VideoPlayerHTML5Api35)};d.getDimensionsForDevice=function(){var a=window.devicePixelRatio||1,b=this.$VideoPlayerHTML5Api62();return{width:b.width*a,height:b.height*a}};d.$VideoPlayerHTML5Api117=function(){if(this.$VideoPlayerHTML5Api40)return;if(!this.$VideoPlayerHTML5Api39){var a=this.$VideoPlayerHTML5Api62();a=b("DOM").create("canvas",{width:a.width,height:a.height,className:"_3t5i"});b("DOM").insertAfter(this.$VideoPlayerHTML5Api35,a);this.$VideoPlayerHTML5Api39=a=new(b("VideoFrameBuffer"))(a,this.$VideoPlayerHTML5Api35)}else a=this.$VideoPlayerHTML5Api39;b("CSS").show(a.getDOMNode());a.updateFrameBuffer();b("CSS").hide(this.$VideoPlayerHTML5Api35)};d.$VideoPlayerHTML5Api79=function(){if(!this.$VideoPlayerHTML5Api39)return;b("CSS").hide(this.$VideoPlayerHTML5Api39.getDOMNode());b("CSS").show(this.$VideoPlayerHTML5Api35)};d.$VideoPlayerHTML5Api83=function(a){var c=this;a===void 0&&(a=null);var d=this.$VideoPlayerHTML5Api1;if(!d)return(i||(i=b("Promise"))).resolve();if(this.$VideoPlayerHTML5Api21)return this.$VideoPlayerHTML5Api22||(i||(i=b("Promise"))).resolve();var e=[];this.$VideoPlayerHTML5Api21=!0;this.emit("restoringAfterAbort");this.allowNextSeekInMixin();var f=a==null?d.currentTime:a;if(this.$VideoPlayerHTML5Api36){a=function(){return c.$VideoPlayerHTML5Api36&&c.$VideoPlayerHTML5Api36.reload(f)||(i||(i=b("Promise"))).resolve()};a=this.$VideoPlayerHTML5Api10?this.$VideoPlayerHTML5Api10.then(a):a();e.push(a)}else{a=(a=this.$VideoPlayerHTML5Api81())!=null?a:"";a!==""&&(this.$VideoPlayerHTML5Api35.src=a);this.$VideoPlayerHTML5Api35.preload=d.preload}var g=new(b("Deferred"))();e.push(g.getPromise());var h=function(){var a=c.$VideoPlayerHTML5Api85();c.$VideoPlayerHTML5Api61("create_restore_abort_loading_promise",!1)?g.resolve(a):g.resolve()};b("seekHTMLMediaElementTo")(this.$VideoPlayerHTML5Api35,f,function(){c.$VideoPlayerHTML5Api79(),c.$VideoPlayerHTML5Api1&&(c.$VideoPlayerHTML5Api35.muted=c.$VideoPlayerHTML5Api1.mutedState,c.$VideoPlayerHTML5Api1=null,c.emit("restoredAfterAbort")),c.$VideoPlayerHTML5Api21=!1,c.$VideoPlayerHTML5Api22=null,b("onCanPlayHTMLMediaElement").once(c.$VideoPlayerHTML5Api35,h)});this.$VideoPlayerHTML5Api22=(i||(i=b("Promise"))).all(e).then(function(){});return this.$VideoPlayerHTML5Api22};d.abortLoadingWithoutStillFrame=function(){var a=this;if(this.$VideoPlayerHTML5Api1)return this.$VideoPlayerHTML5Api10?this.$VideoPlayerHTML5Api10:(i||(i=b("Promise"))).resolve();var c=this.$VideoPlayerHTML5Api35.currentTime,d=this.isMuted(),e=this.$VideoPlayerHTML5Api35.duration,f=this.isPaused(),g=this.$VideoPlayerHTML5Api35.preload;this.$VideoPlayerHTML5Api32=!1;this.$VideoPlayerHTML5Api1={mutedState:d,currentTime:c,playbackDuration:e,preload:g};f&&this.$VideoPlayerHTML5Api18&&b("dispatchEvent")(this.$VideoPlayerHTML5Api35,"pause");this.emit("abortedLoading");this.$VideoPlayerHTML5Api76();if(this.$VideoPlayerHTML5Api36){this.$VideoPlayerHTML5Api10=this.$VideoPlayerHTML5Api36.unload().then(function(){a.$VideoPlayerHTML5Api10=null})["catch"](function(){a.$VideoPlayerHTML5Api10=null});return this.$VideoPlayerHTML5Api10}this.$VideoPlayerHTML5Api35.preload="none";this.$VideoPlayerHTML5Api35.removeAttribute("src");this.$VideoPlayerHTML5Api35.load();return(i||(i=b("Promise"))).resolve()};d.abortLoading=function(a){a===void 0&&(a={});if(this.$VideoPlayerHTML5Api1)return this.$VideoPlayerHTML5Api10?this.$VideoPlayerHTML5Api10:(i||(i=b("Promise"))).resolve();a.disableStillFrame!==!0&&this.$VideoPlayerHTML5Api117();return this.abortLoadingWithoutStillFrame()};d.setPreferredVideoQuality=function(a){var c=this;this.$VideoPlayerHTML5Api31=a;if(!this.$VideoPlayerHTML5Api8)return;if(this.$VideoPlayerHTML5Api36){this.$VideoPlayerHTML5Api36.setPreferredVideoQuality(a);return}b("VideoPlayerHTML5Experiments").newStateChangeCalculation||(this.$VideoPlayerHTML5Api69("paused",this.addWatchTimeData({reason:"toggle_hd"})),this.$VideoPlayerHTML5Api69("requested_playing",{reason:"user_initiated"}));this.$VideoPlayerHTML5Api19=!this.$VideoPlayerHTML5Api19;var d=this.$VideoPlayerHTML5Api35.currentTime,e=this.$VideoPlayerHTML5Api35.muted,f=this.$VideoPlayerHTML5Api35.volume;a=(a=this.$VideoPlayerHTML5Api81())!=null?a:"";a!==""&&(this.$VideoPlayerHTML5Api35.src=a);b("onCanPlayHTMLMediaElement").once(this.$VideoPlayerHTML5Api35,function(){c.$VideoPlayerHTML5Api35.currentTime=d,c.$VideoPlayerHTML5Api35.muted=e,c.$VideoPlayerHTML5Api35.volume=f,c.$VideoPlayerHTML5Api85(),c.emit("qualityChange")});this.$VideoPlayerHTML5Api30=!0;this.$VideoPlayerHTML5Api68(!0);this.$VideoPlayerHTML5Api87()};d.unsetPreferredVideoQuality=function(){this.$VideoPlayerHTML5Api31=null,this.$VideoPlayerHTML5Api36&&this.$VideoPlayerHTML5Api36.unsetPreferredVideoQuality()};d.getPreferredVideoQuality=function(){return this.$VideoPlayerHTML5Api31};d.getSelectedVideoQuality=function(){return this.$VideoPlayerHTML5Api36?this.$VideoPlayerHTML5Api36.getSelectedVideoQuality():this.$VideoPlayerHTML5Api19?"HD":"SD"};d.getAvailableVideoQualities=function(){if(this.$VideoPlayerHTML5Api7.fallbackSources)return m(this.$VideoPlayerHTML5Api7.fallbackSources.HD?["SD","HD"]:["SD"]);if(!this.$VideoPlayerHTML5Api8)return m([]);return this.$VideoPlayerHTML5Api36?this.$VideoPlayerHTML5Api36.getAvailableVideoQualities():m(this.$VideoPlayerHTML5Api8.hasHD()?["SD","HD"]:["SD"])};d.getIsAbrEnabled=function(){return this.$VideoPlayerHTML5Api36?this.$VideoPlayerHTML5Api36.getIsAbrEnabled():!1};d.canAutoSelectVideoQuality=function(){return this.$VideoPlayerHTML5Api36?this.$VideoPlayerHTML5Api36.canAutoSelectVideoQuality():!1};d.setPreloadDisabled=function(a){this.$VideoPlayerHTML5Api36&&this.$VideoPlayerHTML5Api36.setPreloadDisabled(a)};d.restoreStreamBufferSize=function(){this.$VideoPlayerHTML5Api36&&this.$VideoPlayerHTML5Api36.restoreStreamBufferSize()};c.getPlayerVersion=function(){return"pleasantville"};d.getUpdatedPlayerVersion=function(){return this.$VideoPlayerHTML5Api36?this.$VideoPlayerHTML5Api36.getPlayerVersion()||c.getPlayerVersion():c.getPlayerVersion()};d.getVideoNodeSource=function(){return this.$VideoPlayerHTML5Api35.src||""};d.getVideoProjection=function(){if(this.$VideoPlayerHTML5Api33)return this.$VideoPlayerHTML5Api33;var a=this.$VideoPlayerHTML5Api36;if(a){this.$VideoPlayerHTML5Api33=(a=a.getVideoProjection())!=null?a:null;if(this.$VideoPlayerHTML5Api33)return this.$VideoPlayerHTML5Api33}a=this.$VideoPlayerHTML5Api8;if(a){this.$VideoPlayerHTML5Api33=(a=a.getProjection())!=null?a:null}return this.$VideoPlayerHTML5Api33};d.$VideoPlayerHTML5Api118=function(){var a=this.getCurrentTimePosition();a!=null&&(this.$VideoPlayerHTML5Api6=a)};d.$VideoPlayerHTML5Api119=function(){this.$VideoPlayerHTML5Api6!=null&&this.$VideoPlayerHTML5Api6!==0?(this.$VideoPlayerHTML5Api34=this.$VideoPlayerHTML5Api6,this.$VideoPlayerHTML5Api6=null):this.$VideoPlayerHTML5Api34=q};d.reloadDashManifest=function(){var a=this.$VideoPlayerHTML5Api36;if(a){this.$VideoPlayerHTML5Api118();this.abortLoading();return this.$VideoPlayerHTML5Api120(function(){return a.refreshDashManifest()},this.$VideoPlayerHTML5Api34)}return(i||(i=b("Promise"))).reject()};d.$VideoPlayerHTML5Api120=function(a,b){var c=this;return a().then(function(){c.$VideoPlayerHTML5Api83(b),c.$VideoPlayerHTML5Api119()})};d.switchReplicaSet=function(a,b){var c=this,d=this.$VideoPlayerHTML5Api36,e={failover_response_code:b.status,original_url:"",replica:a},f="";if(d){f=d.getManifestUrl()||f;e.original_url=f;this.$VideoPlayerHTML5Api69("replica_switch",{error_code:b.status,error_user_info:{failover_response_code:b.status,url:b.url||"",replica:a}});try{this.abortLoading(),d.switchReplicaSet(a)}catch(a){this.$VideoPlayerHTML5Api69("replica_switch_failed",{reason:a.toString(),error_user_info:e});return}this.$VideoPlayerHTML5Api83().then(function(){c.$VideoPlayerHTML5Api69("replica_switch_success",{error_code:b.status,error_user_info:e})})["catch"](function(a){c.$VideoPlayerHTML5Api69("replica_switch_failed",{reason:a.toString(),error_user_info:e})})}};d.p2pPluginReady=function(){var a=this;this.$VideoPlayerHTML5Api69("live_p2p_playback_reloading",{});var b=function(b){a.$VideoPlayerHTML5Api21=!1,a.$VideoPlayerHTML5Api1=null,a.$VideoPlayerHTML5Api69("live_p2p_playback_plugin_failed",{reason:b.toString()}),a.$VideoPlayerHTML5Api36&&a.$VideoPlayerHTML5Api36.disableP2PPlayback(),a.abortLoading(),a.$VideoPlayerHTML5Api83().then(function(){a.$VideoPlayerHTML5Api36&&(a.$VideoPlayerHTML5Api30||a.$VideoPlayerHTML5Api18)&&a.$VideoPlayerHTML5Api36.play()})["catch"](a.$VideoPlayerHTML5Api95.bind(a))};try{this.$VideoPlayerHTML5Api23="hive_reload";this.abortLoading();var c=function(){a.$VideoPlayerHTML5Api36&&(a.$VideoPlayerHTML5Api30||a.$VideoPlayerHTML5Api18)&&a.$VideoPlayerHTML5Api36.play(),a.$VideoPlayerHTML5Api69("live_p2p_playback_plugin_loaded",{})};this.$VideoPlayerHTML5Api83().then(c)["catch"](b)}catch(a){b(a)}};d.$VideoPlayerHTML5Api85=function(){var a=this,c=(i||(i=b("Promise"))).resolve();if(this.$VideoPlayerHTML5Api30){if(this.$VideoPlayerHTML5Api3)var d=b("EventListener").capture(this.$VideoPlayerHTML5Api35.parentNode,"play",function(a){b("Event").kill(a),d.remove()});this.$VideoPlayerHTML5Api35.ended&&!this.$VideoPlayerHTML5Api35.paused&&b("dispatchEvent")(this.$VideoPlayerHTML5Api35,"play");if(this.$VideoPlayerHTML5Api36){var e=this.$VideoPlayerHTML5Api36;c=e.play()}else b("VideoPlayerHTML5Experiments").preloadOnPlay&&(this.$VideoPlayerHTML5Api35.preload="auto"),c=this.$VideoPlayerHTML5Api35.play();c&&c["catch"]&&c["catch"](function(c){if(c!=null&&c.name==="NotAllowedError")a.$VideoPlayerHTML5Api69("cancelled_requested_playing",{reason:"not_allowed"}),a.$VideoPlayerHTML5Api110("flash/playbackNotAllowed");else if(!(c!=null&&c.name==="AbortError")){var d;c=new Error("Unexpected .play() promise rejection: "+(c!=null?((d=c.name)!=null?d:"(no name)")+": "+((d=c.message)!=null?d:"(no message)"):"(unknown)"));b("FBLogger")("video").catching(c).info(c.message)}a.$VideoPlayerHTML5Api68(!1)})}this.$VideoPlayerHTML5Api86();return c};d.setEnableLiveheadCatchup=function(a){this.$VideoPlayerHTML5Api36&&this.$VideoPlayerHTML5Api36.setEnableLiveheadCatchup(a)};d.setIsLiveRewindActive=function(a){this.$VideoPlayerHTML5Api52=a,b("PlaybackSpeedExperiments").enableWwwPlaybackSpeedControl()&&!a&&this.setPlaybackRate(1),this.setEnableLiveheadCatchup(!a)};d.isFBWasLive=function(){return!!(this.$VideoPlayerHTML5Api36&&this.$VideoPlayerHTML5Api36.isFBWasLive())};d.isFBIsLiveTemplated=function(){return!!(this.$VideoPlayerHTML5Api36&&this.$VideoPlayerHTML5Api36.isFBIsLiveTemplated())};d.getFbManifestIdentifier=function(){return this.$VideoPlayerHTML5Api36?this.$VideoPlayerHTML5Api36.getFbManifestIdentifier():""};d.isFBMS=function(){return!!(this.$VideoPlayerHTML5Api36&&this.$VideoPlayerHTML5Api36.isFBMS())};d.ispDASH=function(){return!!(this.$VideoPlayerHTML5Api36&&this.$VideoPlayerHTML5Api36.ispDASH())};d.isLiveheadCatchupEnabled=function(){return this.$VideoPlayerHTML5Api36?this.$VideoPlayerHTML5Api36.isLiveheadCatchupEnabled():!1};d.getBandwidthEstimate=function(){return this.$VideoPlayerHTML5Api36?this.$VideoPlayerHTML5Api36.getBandwidthEstimate():null};d.getSeekableRanges=function(){if(this.$VideoPlayerHTML5Api36)return this.$VideoPlayerHTML5Api36.getSeekableRanges();var a=[];if(this.$VideoPlayerHTML5Api35){var c=this.$VideoPlayerHTML5Api35.seekable;for(var d=0;d