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