;/*FB_PKG_DELIM*/ __d("ReactPropTransferer",["cr:8910"],(function(t,n,r,o,a,i,l){l.default=n("cr:8910")}),98); __d("cloneWithProps_DEPRECATED",["ReactPropTransferer","react","warning"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u="children",c=!1;function d(e,t){var n=r("ReactPropTransferer").mergeProps(t,e.props);return!Object.prototype.hasOwnProperty.call(n,u)&&Object.prototype.hasOwnProperty.call(e.props,u)&&(n.children=e.props.children),s.createElement(e.type,n)}l.default=d}),98); __d("AbstractButton.react",["cx","Link.react","cloneWithProps_DEPRECATED","joinClasses","mergeRefs","react"],(function(t,n,r,o,a,i,l,s){var e=["buttonRef","depressed","disabled","image","imageRight","label","labelIsHidden"],u,c=u||(u=o("react")),d=u.Component,m=(function(t){function n(){for(var e,n=arguments.length,r=new Array(n),o=0;o1?n-1:0),a=1;a0&&this.$BasicContainer$p_1.setStores(c),this.setState(function(e){return l(t,e,o,a,t.$BasicContainer$p_4)})}},o.componentDidMount=function(){var t=this;if(e.prototype.componentDidMount&&e.prototype.componentDidMount.call(this),this.$BasicContainer$p_4.isRevoked===!0){var n=this.$BasicContainer$p_3;this.$BasicContainer$p_4=function(){return n==null?void 0:n()},this.$BasicContainer$p_4.isRevoked=!1,this.$BasicContainer$p_4.revoke=function(){t.$BasicContainer$p_4.isRevoked=!0,n=null}}this.$BasicContainer$p_2||(this.$BasicContainer$p_5(this.props,this.context),this.$BasicContainer$p_3(),this.$BasicContainer$p_2=!0)},o.componentWillUnmount=function(){e.prototype.componentWillUnmount&&e.prototype.componentWillUnmount.call(this),this.$BasicContainer$p_1.reset(),this.$BasicContainer$p_2=!1,this.$BasicContainer$p_4.revoke()},o.$BasicContainer$p_5=function(t,n){var e=this,r=s(t,n);r.length>0&&(this.$BasicContainer$p_1.setStores(r),this.$BasicContainer$p_1.addListener(function(){e.setState(function(t,r){return l(e,t,r,n)})}))},t})(e),a=n.pure&&!(e.prototype instanceof c)?_(a):a,o("FluxContainerNameUtils").nameContainer(a,n.name!=null&&n.name!==""?n.name:e.displayName||e.name),a}function _(e){var t=(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o0){var o=!1,a=r("concatArrays")(n.map(function(e){var t=e?e.getActionTypes==null?void 0:e.getActionTypes():null;return t==null&&(o=!0),t}).filter(Boolean));o?t=null:t=(e||(e=r("distinctArray")))(t.concat(a))}}this.$1=t}return this.$1},n.getDispatcher=function(){return this.__dispatcher},n.getDispatchToken=function(){return this.$2},n.getDependencyDispatchTokens=function(){return this.$5||(this.$5=this.getDependencyStores().map(function(e){return e&&(e.getDispatchToken==null?void 0:e.getDispatchToken())})),this.$5},n.getDependencyStores=function(){return this.$4||(this.$4=(e||(e=r("distinctArray")))(this.__getDependencyStores())),this.$4},n.addStoreDependency=function(t){var e=this.__dispatcher.registerDependency;e&&e(this.getDispatchToken(),t.getDispatchToken())},n.hasChanged=function(){return this.__dispatcher.isDispatching()||s(0,1147,this.__className),this.__changed},n.__setAsUnchanged=function(){this.__changed=!1},n.__emitChange=function(){this.__dispatcher.isDispatching()||s(0,1148,this.__className),!this.__changed&&(o("FluxStoreInstrumentation").onEmitChange(this.__moduleID!=null?this.__moduleID:"unknown"),this.__changed=!0)},n.__invokeOnDispatch=function(t){this.__changed=!1;var e=r("FluxStoreOnDispatchInstrumentation").hasCallback()?(u||(u=r("performanceAbsoluteNow")))():null;if(this.__onDispatch(t),e!=null){var n;r("FluxStoreOnDispatchInstrumentation").call((n=this.__moduleID)!=null?n:"unknown",(u||(u=r("performanceAbsoluteNow")))()-e)}this.__inform()},n.__inform=function(t){this.$3=this.__changed||this.$3;var e=this.__dispatcher,n=e.shouldAllowInforms==null||e.shouldAllowInforms();n&&this.$3&&(this.$3=!1,this.__emitter.emit(t!=null&&t!==""?t:this.__changeEvent))},n.__onDispatch=function(t){s(0,1149,this.__className)},n.__getActionTypes=function(){return null},n.__getDependencyStores=function(){return[]},n.__getIDForDispatcher=function(){return this.__className},t})(),m=d,p=d;l.default=p}),98); __d("TypedFluxStore",["FluxStore"],(function(t,n,r,o,a,i,l){"use strict";l.default=r("FluxStore")}),98); __d("abstractMethod",["invariant"],(function(t,n,r,o,a,i,l,s){"use strict";function e(e,t){s(0,1537,e,t)}l.default=e}),98); __d("FluxReduceStore",["invariant","AdsTransitionExemptActions","TypedFluxStore","abstractMethod","react","requireWeak"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=(e||(e=o("react"))).startTransition,c=null;try{r("requireWeak")("AdsEditorTransitionConfig",function(e){c=e})}catch(e){}var d=(function(e){function t(t){var n;return n=e.call(this,t)||this,n.$FluxReduceStore$p_1=n.getInitialState(),n}babelHelpers.inheritsLoose(t,e);var n=t.prototype;return n.getState=function(){return this.$FluxReduceStore$p_1},n.getInitialState=function(){return r("abstractMethod")("FluxReduceStore","getInitialState")},n.reduce=function(t,n){return r("abstractMethod")("FluxReduceStore","reduce")},n.__reduceForDispatch=function(t,n){return this.reduce(t,n)},n.areEqual=function(t,n){return t===n},n.__invokeOnDispatch=function(t,n){var e;n===void 0&&(n=!0);var o=typeof t=="object"?t:null,a=o==null?void 0:o.action,i=(e=typeof a=="object"?a==null?void 0:a.type:null)!=null?e:o==null?void 0:o.type,l=typeof i=="string"?i:null;if(c!=null&&c.shouldUseTransitions()&&!r("AdsTransitionExemptActions").shouldSkipTransition(l)){this.__invokeOnDispatchWithTransition(t,n);return}this.__invokeOnDispatchWithoutTransition(t,n)},n.__invokeOnDispatchWithTransition=function(t,n){var e=this;n===void 0&&(n=!0),u(function(){e.__invokeOnDispatchWithoutTransition(t,n)})},n.__invokeOnDispatchWithoutTransition=function(t,n){n===void 0&&(n=!0),this.__changed=!1;var e=this.$FluxReduceStore$p_1,r=this.__reduceForDispatch(e,t);r!==void 0||s(0,2189,this.constructor.name),this.areEqual(e,r)||(this.$FluxReduceStore$p_1=r,this.__emitChange()),n&&this.__inform()},n.__setState=function(t){this.$FluxReduceStore$p_1=t},t})(r("TypedFluxStore"));d.__moduleID=i.id,l.default=d}),98); __d("LeftRight.react",["cx","invariant","joinClasses","react"],(function(t,n,r,o,a,i,l,s,u){"use strict";var e=["root"],c,d=c||(c=o("react")),m=(function(t){function n(){return t.apply(this,arguments)||this}babelHelpers.inheritsLoose(n,t);var o=n.prototype;return o.getChildrenArr=function(){var e=[];return d.Children.forEach(this.props.children,function(t){return e.push(t)}),e},o.render=function(){var t=this.getChildrenArr();t.length===1||t.length===2||u(0,5615);var o=this.props.direction||n.DIRECTION.both,a=o===n.DIRECTION.both,i=a||o===n.DIRECTION.left?"_ohe":"",l=a||o===n.DIRECTION.right?"_ohf":"",s=d.jsx("div",{className:i,children:t[0]},"left"),c=t.length<2?null:d.jsx("div",{className:l,children:t[1]},"right"),m=o===n.DIRECTION.right&&c?[c,s]:[s,c],p=this.props,_=p.root,f=babelHelpers.objectWithoutPropertiesLoose(p,e);return d.jsx("div",babelHelpers.extends({},f,{ref:_,className:r("joinClasses")(this.props.className,"clearfix"),children:m}))},n})(d.Component);m.DIRECTION={left:"left",right:"right",both:"both"},l.default=m}),98); __d("ImageBlock.react",["cx","invariant","DangerouslyAccessReactElementInternals_DO_NOT_USE_IN_NEW_CODE","LeftRight.react","joinClasses","react"],(function(t,n,r,o,a,i,l,s,u){var e=["contentClassName","imageClassName","spacing"],c,d=c||(c=o("react"));function m(e){var t=e.children;return t&&(t.length===2||t.length===3)||u(0,97),t[0]!==null||u(0,98),t}function p(e){return"img _8o"+(e==="small"?" _8r":"")+(e==="medium"?" _8s":"")+(e==="large"?" _8t":"")}var _=(function(t){function n(){return t.apply(this,arguments)||this}babelHelpers.inheritsLoose(n,t);var o=n.prototype;return o.render=function(){var t=m(this.props),n=t[0],o=t[1],a=t[2],i=this.props,l=i.contentClassName,s=i.imageClassName,u=i.spacing,c=babelHelpers.objectWithoutPropertiesLoose(i,e),_=r("DangerouslyAccessReactElementInternals_DO_NOT_USE_IN_NEW_CODE")(n).props,f=_.alt,g=_.className,h=_.tabIndex,y=_.title,C={className:r("joinClasses")(g,p(u),s)};r("DangerouslyAccessReactElementInternals_DO_NOT_USE_IN_NEW_CODE")(n).type==="img"?f===void 0&&(C.alt=""):(r("DangerouslyAccessReactElementInternals_DO_NOT_USE_IN_NEW_CODE")(n).type==="a"||r("DangerouslyAccessReactElementInternals_DO_NOT_USE_IN_NEW_CODE")(n).type==="link")&&h===void 0&&y===void 0&&r("DangerouslyAccessReactElementInternals_DO_NOT_USE_IN_NEW_CODE")(n).props["aria-label"]===void 0&&(C.tabIndex="-1",C["aria-hidden"]="true"),n=d.cloneElement(n,C);var b=!0;this.props.flexibleContent!=null&&(b=this.props.flexibleContent);var v=r("joinClasses")(l,(b?"_42ef":"")+(u==="small"?" _8u":"")),S;return a?S=d.jsxs(r("LeftRight.react"),{className:v,direction:r("LeftRight.react").DIRECTION.right,children:[o,a]}):S=d.jsx("div",{className:v,children:o}),d.jsxs(r("LeftRight.react"),babelHelpers.extends({},c,{direction:r("LeftRight.react").DIRECTION.left,children:[n,S]}))},n})(d.Component);_.defaultProps={spacing:"small"},l.default=_}),98); __d("ImmutableRecordWithV4Types",["immutable"],(function(t,n,r,o,a,i,l){"use strict";l.Record=r("immutable").Record}),98); __d("LineClamp.react",["cx","DOMContainer.react","Locale","getElementText","getVendorPrefixedName","joinClasses","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react")),c=r("getVendorPrefixedName")("lineClamp"),d=(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;ot.offsetHeight;else{if(!this.innerElement)return e;e=this.innerElement.offsetHeight>t.offsetHeight}return e},n.componentDidMount=function(){this.$3()},n.componentDidUpdate=function(){this.$3()},n.render=function(){var e=this.$5(),t=r("joinClasses")(this.props.className,"_4ik4"+(e?" _4ik5":"")+(this.props.width?" _8hwj":"")),n=this.props.hasXHPChildren===!0?u.jsx(r("DOMContainer.react"),{children:this.props.children}):this.props.children,o={},a=this.props,i=a.lineHeight,l=a.width;i!=null&&i&&(o={lineHeight:i+"px"},this.props.fitHeightToShorterText===!0?o=babelHelpers.extends({},o,{maxHeight:i*this.props.lines}):o=babelHelpers.extends({},o,{height:i*this.props.lines})),l!=null&&l&&(o=babelHelpers.extends({},o,{width:l+"px"})),e?o[c]=this.props.lines:(t=r("joinClasses")(t,"clearfix"),this.props.customEllipsisDisableGradient===!0?n=[u.jsx("div",{className:"_1osu"},"spacer"),this.$1(),u.jsx("div",{className:"_1osv",ref:this.$2,children:this.props.children},"inner")]:n=[u.jsx("div",{className:"_4ik6",ref:this.$2,children:n},"inner"),this.$1()]);var s={};if(this.props.enableTooltipOnOverflow===!0&&(s["data-hover"]="tooltip",this.state.enableTooltip)){var d=e?this.rootElement:this.innerElement;s["data-tooltip-content"]=d!=null?r("getElementText")(d):"",this.props.tooltipDelay!=null&&(s["data-tooltip-delay"]=this.props.tooltipDelay)}return u.jsx("div",babelHelpers.extends({},s,{className:t,ref:this.$4,style:o,children:n}))},t})(u.Component);l.default=d}),98); __d("LiveVideoPlayerDispatcher",["ExplicitRegistrationReactDispatcher"],(function(t,n,r,o,a,i,l){"use strict";var e=(function(e){function t(t){var n;return n=e.call(this,t)||this,n.dispatch=n.dispatch.bind(n),n}return babelHelpers.inheritsLoose(t,e),t})(r("ExplicitRegistrationReactDispatcher")),s=new e({strict:!0});l.default=s}),98); __d("LiveVideoPlayerActions",["LiveVideoPlayerDispatcher"],(function(t,n,r,o,a,i,l){function e(e,t){var n={type:"SET_IS_REWOUND",isRewound:t,vpc:e};r("LiveVideoPlayerDispatcher").dispatch(n)}function s(e){var t={type:"DISMISS_REWIND_COMMENT_OVERLAY",playerID:e};r("LiveVideoPlayerDispatcher").dispatch(t)}l.setIsRewound=e,l.dismissRewindCommentOverlay=s}),98); __d("LiveVideoRewindTypedLogger",["Banzai","GeneratedLoggerUtils"],(function(t,n,r,o,a,i){"use strict";var e=(function(){function e(){this.$1={}}var t=e.prototype;return t.log=function(t){n("GeneratedLoggerUtils").log("logger:LiveVideoRewindLoggerConfig",this.$1,n("Banzai").BASIC,t)},t.logVital=function(t){n("GeneratedLoggerUtils").log("logger:LiveVideoRewindLoggerConfig",this.$1,n("Banzai").VITAL,t)},t.logImmediately=function(t){n("GeneratedLoggerUtils").log("logger:LiveVideoRewindLoggerConfig",this.$1,{signal:!0},t)},t.clear=function(){return this.$1={},this},t.getData=function(){return babelHelpers.extends({},this.$1)},t.updateData=function(t){return this.$1=babelHelpers.extends({},this.$1,t),this},t.setActionSequenceNumber=function(t){return this.$1.action_sequence_number=t,this},t.setDeviceid=function(t){return this.$1.deviceid=t,this},t.setEvent=function(t){return this.$1.event=t,this},t.setPositionAfter=function(t){return this.$1.position_after=t,this},t.setPositionBefore=function(t){return this.$1.position_before=t,this},t.setSessionID=function(t){return this.$1.session_id=t,this},t.setVideoDuration=function(t){return this.$1.video_duration=t,this},t.setVideoID=function(t){return this.$1.video_id=t,this},e})(),l={action_sequence_number:!0,deviceid:!0,event:!0,position_after:!0,position_before:!0,session_id:!0,video_duration:!0,video_id:!0};i.default=e}),66); __d("LiveRewindUtils",["LiveVideoPlayerActions","LiveVideoRewindTypedLogger","uuidv4"],(function(t,n,r,o,a,i){"use strict";var e=5,l=new Map,s=250;function u(t){for(var n=0,r=0;re?n-e:0}function c(e,t){var n=e;if(t.length()<1)return 0;if(e<=0)return t.start(0);for(var r=0;rn.end(o)&&(a=n.end(o));var i=a+t,l=n.end(n.length()-1),s=n.start(0);if(i<=s)return s;if(i>=l)return l;if(i>=n.start(o)&&i<=n.end(o))return i;if(in.start(o)){if(o>=n.length()-1)return l;var p=n.end(o)-a,f=t-p,g=n.start(o+1);return m(g,f,n,o+1)}return 0}function p(t,n){var r=n!=null?n:e,o=t.end(t.length()-1);return m(o,-1*r,t)}function _(e,t){if(t.length()<1)return 0;for(var n=0;no?(c=u,p||(f=u),l>=(_||e)&&(d=!0,m=u),n("Arbiter").inform("useractivity/activity",{event:r,idleness:l,last_inform:c})):lr("VideoPlayerExperiments").reloadingPixelBoundary+e&&this.$6(t)}else t.getDistanceToViewport()<0&&!t.isVisible()&&this.$5(t)},t.addVideoUnit=function(t){this.$1.has(t)||(this.$1.add(t),this.$2.set(t,{y:t.getDistanceToViewport(),timestamp:new Date().valueOf(),v:0,abortedLoading:!1}))},t.removeVideoUnit=function(t){this.$1.delete(t),this.$2.delete(t)},t.calculateFutureScrollPosition=function(t){var e=t.y1-t.y0,n=t.t1-t.t0,r=e/n,o=r-t.v0,a=o/n,i=t.t,l=a*i*i/2+i*r+t.y1;return{v1:r,a:a,S:l}},t.preloadClosestVideoUnits=function(t){var e=this;this.$7(t).forEach(function(t){return e.$6(t)})},t.$7=function(t){return Array.from(this.$1).filter(function(e){return e.getDistanceToViewport()>=0}).sort(function(e,t){return e.getDistanceToViewport()-t.getDistanceToViewport()}).slice(0,t)},t.$6=function(t){var e=this.$2.get(t);e||s(0,3497);var n;e&&(n=e.abortedLoading,e.abortedLoading=!1),n===!0&&t.preload()},t.$5=function(t){var e=this.$2.get(t);e||s(0,3497);var n;e&&(n=e.abortedLoading,e.abortedLoading=!0),n!==!0&&typeof t.abortLoading=="function"&&t.abortLoading()},t.$4=function(t){var e=r("getViewportDimensions")().height,n=1600,o=e/2,a=o+n,i=-o,l=i-n,u=this.$2.get(t);if(u||s(0,3497),!!u){var c=t.getDistanceToViewport(),d=u.y;u.y=c;var m=new Date().valueOf(),p=u.timestamp;u.timestamp=m;var _=u.v;if(l<=c&&a>=c){u.abortedLoading&&this.$6(t);return}var f=500,g=this.calculateFutureScrollPosition({y0:d,y1:c,t0:p,t1:m,v0:_,t:f});u.v=g.v1;var h=g.S;u.abortedLoading?(cl||c>a&&hr;);return n=n.slice(0,o),n.length<=e}}function s(e,t,n){var o=null;return function(){for(var a=arguments.length,i=new Array(a),l=0;l-1){this.$10.splice(e,1);var n=t.getVideoPlayerController();n&&n.unregisterOption("VideoAutoplayControllerBase/VideoScrollTracker","getLastScrollDirection")}},n.getPlayingVideoUnit=function(){return this.$3},n.setPlayingVideoUnit=function(t){this.$3=t,this.$3&&this.setupPlayingVideoUnitSubscriptions()},n.getLastScrollDirection=function(){return this.$11?this.$11.getLastScrollDirection():null},n.playVideo=function(t,n){if(r("VideoPlayerExperiments").disableAutoplayForInactiveTab&&r("Visibility").isHidden()){if(r("VideoPlayerExperiments").removeHiddenVideoTracking){this.setPlayingVideoUnit(null);return}this.$2=t;return}if(this.setPlayingVideoUnit(t),this.$3){var e=this.$6;e?this.$7=e.call(this,n):this.$3.playWithoutUnmute(n)}},n.setupPlayingVideoUnitSubscriptions=function(){throw new Error("Should be overridden")},n.addSubscriberVideoUnit=function(){var e=this;if(!this.getVideoUnits().length){var t;this.$5.addSubscriptions(r("Event").listen(window,"resize",function(){return e.updateAutoplay()}),r("Event").listen(window,"blur",function(){return e.$12()}),r("Event").listen(window,"focus",function(){return e.$13()}),(t=r("Visibility")).addListener(t.HIDDEN,function(){return e.$12()}),t.addListener(t.VISIBLE,function(){return e.$13()}),r("Arbiter").subscribe(o("DesktopHscrollUnitEventConstants").HSCROLL_ITEM_SHOWN_EVENT,function(){return e.updateAutoplay()})),this.$14()||this.$15()}},n.$12=function(){r("VideoPlayerExperiments").removeHiddenVideoTracking?this.$16("page_visibility_initiated"):this.$2||(this.$2=this.getPlayingVideoUnit(),this.$16("page_visibility_initiated"))},n.$13=function(){r("VideoPlayerExperiments").removeHiddenVideoTracking?this.updateAutoplay():this.$2&&(this.playVideo(this.$2,"page_visibility_initiated"),this.$2=null)},n.$15=function(){var e=this,t=function(){e.$11&&e.$11.onScroll(),e.updateAutoplay()};this.$4&&this.$4.remove(),this.$8=r("throttle")(t,this.$1),this.$9=r("debounce")(function(){return e.updateAutoplay()},this.$1);var n=function(){return t()};this.$4=r("Event").listen(window,"scroll",n)},n.$14=function(){return!!this.$4},n.getClosestVideoUnits=function(t){return this.$10.filter(function(e){return e.getDistanceToViewport()>=0}).sort(function(e,t){return e.getDistanceToViewport()-t.getDistanceToViewport()}).slice(0,t)},n.getVisibleUnits=function(){var e=[];return this.$10.forEach(function(t){var n=t.getVideoPlayerController();t.isVisible()?(e.push(t),t.wasVisible||(t.wasVisible=!0,t.logDisplayed(),n&&n.emit("becomeVisible"))):t.wasVisible&&(n&&n.emit("becomeInvisible"),t.wasVisible=!1)}),e},n.$17=function(t){var e=o("VideoPlayerShakaGlobalConfig").getBool("oz_www_allow_abort_loading_from_autoplay_controller",!1),n=r("ShakaConstants").strings.defer_which_video_to_abort_loading_decisioning_logic,a=t.getVideoPlayerController();if(!e&&a&&a.isPlayerVersion("oz"))return!1;var i=a?a.isLiveVideo():null;return i!==null&&(n==="vod"&&i||n==="live"&&!i)?!1:r("VideoAutoplayControllerAbortLoadingHelper").shouldAbortLoadingVideoUnit(t)},n.pausePlayingVideo=function(t,n){var e=this.$3;if(e){var o=function(){if(!e.isState("playing")){if(r("VideoPlayerExperiments").abortLoadingReUpStillVisibleVideos&&e.isVisible()){r("setTimeout")(o,r("ShakaConstants").numbers.abort_loading_delay);return}typeof e.abortLoading=="function"&&e.abortLoading()}};if(e.isVisible()){var a=e.getVideoPlayerController();if(a&&a.isPlayRequestPending())return}this.$7()||e.pause(t),r("VideoPlayerExperiments").decoupleAbortLoadingFromPause||this.$17(e)&&n!==!0&&r("setTimeout")(o,r("ShakaConstants").numbers.abort_loading_delay),this.$3=null}},n.$16=function(t){this.pausePlayingVideo(t,!0)},n.updateAutoplay=function(){throw new Error("Should be overridden")},t})();l.default=u}),98); __d("XVideoAutoplayNuxAsyncController",["XController"],(function(t,n,r,o,a,i){a.exports=n("XController").create("/video/autoplay/nux/",{})}),null); __d("VideoAutoplayControllerX",["csx","AsyncRequest","AsyncTypedRequest","DOM","DocumentFocusForMutedVideoAutoplayRule","Event","Network","Run","ShakaConstants","SubscriptionsHandler","ThisControllerNoLongerExists","VideoAutoplayControllerAbortLoadingHelper","VideoAutoplayControllerBase","VideoPlayerExperiments","XVideoAutoplayNuxAsyncController","clearTimeout","destroyOnUnload","getViewportDimensions","setTimeout"],(function(t,n,r,o,a,i,l,s){"use strict";var e=null,u=!1;function c(e){return e?!0:!r("VideoPlayerExperiments").delayAutoplayUntilAfterLoad||u}var d=(function(t){function n(){var n;n=t.call(this,r("VideoPlayerExperiments").videoPollingFrequency)||this,n.$VideoAutoplayControllerX$p_4=!1,n.$VideoAutoplayControllerX$p_5=!1,n.$VideoAutoplayControllerX$p_6=0,n.$VideoAutoplayControllerX$p_17=new(r("VideoAutoplayControllerAbortLoadingHelper")),n.$VideoAutoplayControllerX$p_10=new(r("SubscriptionsHandler")),n.$VideoAutoplayControllerX$p_18=new(r("SubscriptionsHandler")),n.$VideoAutoplayControllerX$p_12=!0,n.$VideoAutoplayControllerX$p_9=!0,n.$VideoAutoplayControllerX$p_13=!0,n.$VideoAutoplayControllerX$p_2=null,n.$VideoAutoplayControllerX$p_1=null,n.$VideoAutoplayControllerX$p_14=!1,n.$VideoAutoplayControllerX$p_3=null,n.$VideoAutoplayControllerX$p_7=!1,n.$VideoAutoplayControllerX$p_16=!1,n.$VideoAutoplayControllerX$p_15=!1;var a=r("XVideoAutoplayNuxAsyncController").getURIBuilder().getURI();return new(r("AsyncTypedRequest"))(a).setMethod("GET").setReadOnly(!0).send(),r("destroyOnUnload")(function(){n.$VideoAutoplayControllerX$p_19(),r("VideoPlayerExperiments").disableAutoplayOnHomePgUpPgDownEnd&&(n.$VideoAutoplayControllerX$p_11!=null&&r("clearTimeout")(n.$VideoAutoplayControllerX$p_11),n.$VideoAutoplayControllerX$p_8.remove()),n===e&&(e=null)}),o("Run").onAfterLoad(function(){u=!0,r("VideoPlayerExperiments").delayAutoplayUntilAfterLoad&&e&&e.updateAutoplay(),document.hasFocus()||r("Event").fire(window,"blur"),r("VideoPlayerExperiments").disableAutoplayOnHomePgUpPgDownEnd&&n.$VideoAutoplayControllerX$p_20()}),n.$VideoAutoplayControllerX$p_21(),n}babelHelpers.inheritsLoose(n,t),n.$VideoAutoplayControllerX$p_22=function(t){return r("VideoPlayerExperiments").fixVPCCallBeforeLoaded?!(t.isState("fallback")||t.isState("loading")):!0};var a=n.prototype;return a.$VideoAutoplayControllerX$p_20=function(){var e=this,t=33,n=34,o=35,a=36;this.$VideoAutoplayControllerX$p_11=null;var i=function(){e.$VideoAutoplayControllerX$p_23(e.$VideoAutoplayControllerX$p_9),r("clearTimeout")(e.$VideoAutoplayControllerX$p_11),e.$VideoAutoplayControllerX$p_11=null};this.$VideoAutoplayControllerX$p_8=r("Event").listen(document.body,"keydown",function(l){var s=-1;switch(l.keyCode){case t:case n:s=r("VideoPlayerExperiments").pressPgUpPgDownAutoplayShutoffInterval;break;case o:case a:s=r("VideoPlayerExperiments").pressHomeEndAutoplayShutoffInterval;break;default:break}s>-1&&(e.$VideoAutoplayControllerX$p_11!=null&&e.$VideoAutoplayControllerX$p_11!==0?(r("clearTimeout")(e.$VideoAutoplayControllerX$p_11),e.$VideoAutoplayControllerX$p_11=r("setTimeout")(i,s)):e.$VideoAutoplayControllerX$p_12&&(e.$VideoAutoplayControllerX$p_23(!1),e.$VideoAutoplayControllerX$p_11=r("setTimeout")(i,s)))})},a.$VideoAutoplayControllerX$p_23=function(t){this.$VideoAutoplayControllerX$p_12=t,this.updateAutoplay()},n.registerVideoUnit=function(o){e==null&&(e=new n),e.addSubscriberVideoUnit(),e.registerDefaultAutoplayRules(o),e.addVideoUnit(o);var t=new(r("SubscriptionsHandler"));return t.addSubscriptions.apply(t,e.$VideoAutoplayControllerX$p_24(o)),e.$VideoAutoplayControllerX$p_25(),o.isVisible()&&c(o.shouldImmediatelyAutoplayOnRegister())&&e.updateAutoplay(),e.shouldRestoreAllSubsequentStreamBufferSizes()&&e.restoreStreamBufferSize(),function(){e&&e.removeVideoUnit(o),t.release(),e&&o===e.getPlayingVideoUnit()&&(e.$VideoAutoplayControllerX$p_18.release(),e.setPlayingVideoUnit(null))}},n.setShouldAutoplay=function(r){e==null&&(e=new n),e.$VideoAutoplayControllerX$p_12=r,e.$VideoAutoplayControllerX$p_13=r,e.$VideoAutoplayControllerX$p_9=r,e.updateAutoplay()},a.$VideoAutoplayControllerX$p_19=function(){this.$VideoAutoplayControllerX$p_10.release(),this.$VideoAutoplayControllerX$p_18.release()},n.setAutoplayNux=function(n,o){var t=e;if(t){t.$VideoAutoplayControllerX$p_2=n,t.$VideoAutoplayControllerX$p_1=o,t.$VideoAutoplayControllerX$p_14=!0;var a=r("DOM").find(o.getContentRoot(),"._5cqr");r("Event").listen(a,"click",function(){t.$VideoAutoplayControllerX$p_26()});var i=r("DOM").scry(o.getContentRoot(),"._36gl")[0];i&&r("Event").listen(i,"click",function(){t.$VideoAutoplayControllerX$p_26()})}},a.$VideoAutoplayControllerX$p_26=function(){this.$VideoAutoplayControllerX$p_1&&this.$VideoAutoplayControllerX$p_1.hide(),this.$VideoAutoplayControllerX$p_14=!1;var e=o("ThisControllerNoLongerExists").__DEADBUILDER__("flhg1h0jl").getURI();new(r("AsyncRequest"))(e).setAllowCrossPageTransition().send()},a.registerDefaultAutoplayRules=function(t){r("VideoPlayerExperiments").useBringYourOwnAutoplayRule&&r("VideoPlayerExperiments").pauseMutedIfNoDocumentFocus&&t.registerAutoplayRule(new(r("DocumentFocusForMutedVideoAutoplayRule"))(t))},a.setupPlayingVideoUnitSubscriptions=function(){var e=this,t=this.getPlayingVideoUnit();t&&t.addListener&&(this.$VideoAutoplayControllerX$p_10.release(),this.$VideoAutoplayControllerX$p_10.engage(),t.isLooping()||this.$VideoAutoplayControllerX$p_10.addSubscriptions(t.addListener("finishPlayback",function(){e.setPlayingVideoUnit(null)})),this.$VideoAutoplayControllerX$p_10.addSubscriptions(t.addListener("turnOffAutoplay",function(){e.setPlayingVideoUnit(null)}),t.addListener("pausePlayback",function(){e.$VideoAutoplayControllerX$p_25()}),t.addListener("finishPlayback",function(){e.$VideoAutoplayControllerX$p_25()}),r("Network").addListener("online",function(){e.$VideoAutoplayControllerX$p_25()}),r("Network").addListener("offline",function(){e.$VideoAutoplayControllerX$p_25()})))},a.$VideoAutoplayControllerX$p_25=function(){var e=this;if(r("VideoPlayerExperiments").webVideosBlockAutoplayWhenOffline)if(r("Network").isOnline())this.$VideoAutoplayControllerX$p_12=this.$VideoAutoplayControllerX$p_13;else{this.$VideoAutoplayControllerX$p_13=this.$VideoAutoplayControllerX$p_12,this.$VideoAutoplayControllerX$p_12=!1;return}for(var t=this.getVideoUnits(),o=0;o1){var a=r("getViewportDimensions")().height/2;t.forEach(function(t){if(t.isAutoplayable()&&!(r("VideoPlayerExperiments").useBringYourOwnAutoplayRule&&!e.$VideoAutoplayControllerX$p_28(t))){var n=t.getDOMPosition(),i=n.y+n.height/2,l=Math.abs(i-a);t.playPriority=l,(!o||o.playPriority==null||t.playPriority=o){if(this.$VideoAutoplayControllerX$p_6=t,this.$VideoAutoplayControllerX$p_5){for(var s=this.getVisibleUnits(),u=0;u=0&&(e=o+1)}else for(var a=r("getViewportDimensions")().height/2,i=0;i0){e=i;break}}if(e!==-1)for(var c=0;c0;return this.$3||e},t.$14=function(t,n,r){var e={};e.event=t,e.request_status=n,e.perf_time_ms=Date.now()-r},t.fetchFirstStory=function(t,n,o){var e=this,a=n;if(a===null&&this.$5.length!==0){var i=this.$5.indexOf(this.$7);a=this.$6[i]}var l={caller:this.$4,channel_id:this.$8,is_first_story:!0,root_video_id:this.$7,setup_interactions:o,use_video_placeholder:t,video_ids:[this.$7]};this.$11!=null&&(l.ad_impression_token=this.$11),a&&(l.feed_tracking_data=[JSON.stringify(a)]);var s=Date.now(),u=new(r("AsyncRequest"))(r("XVideoChannelViewStoryAsyncControllerRouteBuilder").buildUri(l)).setAllowCrossPageTransition(!0).setHandler(function(){e.$14("fetch_first_story","succeeded",s),e.$15()}).setErrorHandler(function(){e.$14("fetch_first_story","failed",s),e.$15()}).setAbortHandler(function(){e.$14("fetch_first_story","aborted",s),e.$15()});this.$1=u,this.$10=Date.now(),u.send()},t.getPreloadedData=function(){return{stories:this.$12,thumbnails:this.$13}},t.$16=function(t,n){var e=this;if(this.$8){var a=o("ThisControllerNoLongerExists").__DEADBUILDER__("jp6s5648o").setString("id",this.$8).setEnum("caller",this.$4).setString("original_video_id",this.$7).setInt("story_count",t);this.$2&&a.setString("cursor",this.$2.toString());var i=Date.now(),l=a.getURI(),s=new(r("AsyncRequest"))(l).setAllowCrossPageTransition(!0).setHandler(function(t){e.$14("fetch_stories_from_entquery","succeeded",i),e.$2=t.getPayload().cursor,e.$3=t.getPayload().hasNextPage,e.$15(),e.$17(t,function(t,r){return e.$12=[].concat(e.$12,t),e.$13=[].concat(e.$13,r),n(t,r)})}).setErrorHandler(function(){e.$14("fetch_stories_from_entquery","failed",i),e.$15()}).setAbortHandler(function(){e.$14("fetch_stories_from_entquery","aborted",i),e.$15()});this.$1=s,s.send()}},t.$18=function(t,n,o){var e=this,a=this.$9.end,i=this.$5.length-a,l=a+Math.min(i,t);if(i>0){var s=this.$5.slice(a,l),u=this.$6.slice(a,l).map(function(e){return JSON.stringify(e)}),c=Date.now();this.$1=new(r("AsyncRequest"))(r("XVideoChannelViewStoryAsyncControllerRouteBuilder").buildUri({caller:this.$4,channel_id:this.$8,feed_tracking_data:u,root_video_id:this.$7,video_ids:s})).setAllowCrossPageTransition(!0).setErrorHandler(function(){e.$14("fetch_stories_forward","failed",c),e.$15()}).setAbortHandler(function(){e.$14("fetch_stories_forward","aborted",c),e.$15()}).setHandler(function(t){e.$14("fetch_stories_forward","succeeded",c),e.$9.end=l,e.$15(),e.$17(t,function(t,r){return e.$12=[].concat(e.$12,t),e.$13=[].concat(e.$13,r),n(t,r)})}),this.$1.send(),o&&o(i)}else this.$3&&(this.$16(t,n),o&&o(t))},t.$19=function(t,n,o){var e=this,a=this.$9.start;if(a>0){var i=Math.max(a-t,0),l=this.$5.slice(i,a),s=this.$6.slice(i,a).map(function(e){return JSON.stringify(e)}),u=Date.now();this.$1=new(r("AsyncRequest"))(r("XVideoChannelViewStoryAsyncControllerRouteBuilder").buildUri({caller:this.$4,channel_id:this.$8,feed_tracking_data:s,root_video_id:this.$7,video_ids:l})).setAllowCrossPageTransition(!0).setErrorHandler(function(){e.$14("fetch_stories_backward","failed",u),e.$15()}).setAbortHandler(function(){e.$14("fetch_stories_backward","aborted",u),e.$15()}).setHandler(function(t){e.$14("fetch_stories_backward","succeeded",u),e.$9.start=i,e.$15(),e.$17(t,n)}),this.$1.send(),o&&o(a-i)}},t.fetchStories=function(t,n,r){var e=3;this.$1||(t?this.$18(e,n,r):this.$19(e,n,r))},t.$17=function(t,n){var e=t.getPayload(),o=r("HTML").replaceJSONWrapper(e.stories).getNodes(),a=e.thumbnails.map(function(e){return r("HTML").replaceJSONWrapper(e).getRootNode()});n(o,a)},t.$15=function(){this.$1=null},e})();l.default=e}),98); __d("VideoClipButton.react",["cx","fbt","ix","AbstractButton.react","Arbiter","Image.react","TooltipData","XUISpinner.react","XUIText.react","react"],(function(t,n,r,o,a,i,l,s,u,c){"use strict";var e,d=e||(e=o("react")),m=u._(/*BTDS*/"Generando clip..."),p=(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o2)return null;if(n.length===2){if(n[1].length===0)return null;for(var r=n[1];r.length<3;)r+="0";var a=Number(r);if(isNaN(a)||a<0||a>=o("DateConsts").MS_PER_SEC)return null;t+=a/o("DateConsts").MS_PER_SEC}var i=n[0].split(":");if(i.length>3)return null;for(var l=0;l=60)return null;t+=s*Math.pow(60,i.length-l-1)}return t}function u(e){var t,n=Math.round(e*(t=o("DateConsts")).MS_PER_SEC)/t.MS_PER_SEC,r=Math.floor(n/t.SEC_PER_HOUR),a=n-r*t.SEC_PER_HOUR,i=Math.floor(a/t.SEC_PER_MIN),l=Math.floor(a-i*t.SEC_PER_MIN),s=Math.round(a*t.MS_PER_SEC),u=("0"+r).slice(-2),c=("0"+i).slice(-2),d=("0"+l).slice(-2),m=("00"+s).slice(-3),p="";return r>0&&(p+=u+":"),p+=c+":"+d+"."+m}function c(e,t){var n=Math.ceil(e)*o("DateConsts").MS_PER_SEC;if(n=a)return[];var i=r("VideoInstreamAdsConstants.experimental").AD_INSERTION_START_TIME_OFFSET_MS/o("DateConsts").MS_PER_SEC,l=t-r("VideoInstreamAdsConstants.experimental").AD_INSERTION_END_TIME_OFFSET_MS/o("DateConsts").MS_PER_SEC,s=r("VideoInstreamAdsConstants.experimental").AD_INSERTION_INTERVAL_MS/o("DateConsts").MS_PER_SEC;if(e.length===0||!n)return[{start:i,end:l}];var u=[];return e.forEach(function(t,n){if(n===0){var r=t.timeOffset-s;r>=i&&u.push({start:i,end:r})}if(n-1>=0){var o=e[n-1].timeOffset+s,a=t.timeOffset-s;o<=a&&u.push({start:o,end:a})}if(n===e.length-1){var c=t.timeOffset+s;c<=l&&u.push({start:c,end:l})}}),u}function m(e,t,n,r){if(e==null)return!1;for(var o=d(n,t,r),a=0;a=o[a].start&&e<=o[a].end)return!0;return!1}function p(e,t,n,a){var i=e[t];if(i.timeOffset*o("DateConsts").MS_PER_SEC=i.timeOffset)&&(i.timeOffset-e[l].timeOffset)*o("DateConsts").MS_PER_SEC=t&&(a=t-.01)}else if(e.keyCode===r("Keys").LEFT){if(e.preventDefault(),e.stopPropagation(),n.props.isLiveVideo&&n.props.onLiveRewindSeekBack){n.props.onLiveRewindSeekBack();return}a-=5,a<0&&(a=0)}else if(e.keyCode===r("Keys").HOME){if(e.preventDefault(),e.stopPropagation(),n.props.isLiveVideo&&n.props.onLiveRewindToBeginning){n.props.onLiveRewindToBeginning();return}a=0}else if(e.keyCode===r("Keys").END){if(e.preventDefault(),e.stopPropagation(),n.props.isLiveVideo&&n.props.onLiveRewindToLive){n.props.onLiveRewindToLive();return}a=t-.01}else return;n.props.onScrubEnd&&n.props.onScrubEnd(a)}},n.$6=new Map([[0,""]]),n.$10=0,n.state={awaitingUpdate:!1,hoverNub:!1,mouseOver:!1,nubEngaged:!1,previewRatio:0,scrubRatio:0,timecodeRatio:0,timecodeTimestamp:0,scrubberPreviewSpriteIndex:0,scrubberPreviewBackgroundPosition:{x:0,y:0},previewThumbnailInformation:{timeIntervalBetweenImages:0,maxImagesPerSprite:0,imagesPerRow:0,imagesPerColumn:0,previewScrubberWidth:0,previewScrubberHeight:0,stereoMode:null,scrubberVideoURI:null,useScrubberVideo:!1},lastSpriteDimension:{numRow:0,numColumn:0},shouldIgnoreClipStartTS:!1},n}babelHelpers.inheritsLoose(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(t,n){return r("shallowCompare")(this,t,n)},n.onDragNubBeginImpl=function(t,n){var e=this.$12();this.setState({nubEngaged:!0,scrubRatio:d(n,e)}),this.props.onScrubBegin&&this.props.onScrubBegin(),t.stopPropagation(),t.preventDefault()},n.UNSAFE_componentWillReceiveProps=function(t){if(this.setState({awaitingUpdate:!1}),this.props.alwaysShowThumbnail){this.$9=null,this.$8=null;var e=this.$12(),n=e.x+e.width*this.getPlayedRatio(t.playbackDuration,t.playbackPosition);this.$13(n,e)}},n.componentDidUpdate=function(t,n){var e=this;if(!n.nubEngaged&&this.state.nubEngaged){var o;this.$1=(o=r("EventListener")).listen(document,"mousemove",function(t){var n=t.clientX;e.onDragNubUpdate(n),t.preventDefault(),t.stopPropagation()}),this.$2=o.listen(document,"mouseup",function(t){var n=t.clientX;e.onDragNubRelease(n),t.preventDefault(),t.stopPropagation()}),this.$4=o.listen(document,"touchmove",function(t){var n=m(t.changedTouches,e.$11);n!=null&&(e.onDragNubUpdate(n.clientX),t.preventDefault(),t.stopPropagation())}),this.$3=o.listen(document,"touchend",function(t){var n=m(t.changedTouches,e.$11);n!=null&&(e.$11=null,e.onDragNubRelease(n.clientX),t.preventDefault(),t.stopPropagation())})}else n.nubEngaged&&!this.state.nubEngaged&&(this.$1&&this.$1.remove(),this.$2&&this.$2.remove(),this.$4&&this.$4.remove(),this.$3&&this.$3.remove());!n.mouseOver&&this.state.mouseOver?this.$5=r("EventListener").listen(document,"mousemove",function(t){var n=e.$12();e.$13(t.clientX,n),t.preventDefault(),t.stopPropagation()}):n.mouseOver&&!this.state.mouseOver&&this.$5&&this.$5.remove()},n.$13=function(t,n){var e,r=this.props.playbackDuration;if(r){var o=d(t,n)*r,a=(e=this.$8)!=null?e:this.$14();if(this.props.hasScrubberPreview)this.props.previewThumbnailInformation&&(this.state.previewThumbnailInformation.previewScrubberWidth===0&&this.retrievePreviewThumbnailInfo(),this.state.previewThumbnailInformation.useScrubberVideo&&this.state.previewThumbnailInformation.scrubberVideoURI!==null?this.updatePreviewThumbnailVideo(o,a,t):this.props.scrubberPreviewSprites&&this.updatePreviewThumbnail(this.props.scrubberPreviewSprites,o,a,t));else{var i=d(t,n)-Math.ceil(a.width/2)/n.width;this.setState({timecodeTimestamp:o,timecodeRatio:i})}}},n.updatePreviewThumbnail=function(t,n,r,o){this.setState({timecodeTimestamp:n});var e=Math.floor(n);if(this.isSpriteMapURIFetched()||(this.$6=t),this.state.previewThumbnailInformation){var a=this.state.previewThumbnailInformation;this.updatePreviewThumbnailImage(e,a)}this.updatePreviewThumbnailLocation(r,o)},n.updatePreviewThumbnailVideo=function(t,n,r){this.setState({timecodeTimestamp:t});var e=o("ReactDOM_DEPRECATED").findDOMNode_DEPRECATED(this.refs.previewThumbnailVideo);e.currentTime=t/30,this.updatePreviewThumbnailLocation(n,r)},n.updatePreviewThumbnailLocation=function(t,n){var e,r,o=(e=this.$9)!=null?e:this.$15(),a=(r=this.$7)!=null?r:this.$12(),i=d(n,a)-Math.ceil(o.width/2)/a.width,l=(o.width-t.width)/(2*o.width);this.setState({timecodeRatio:l,previewRatio:i})},n.updatePreviewThumbnailImage=function(t,n){var e=o("VideoScrubberPreviewSpriteCalculation").getImageCoordinatesInSpriteByTime(t,n),r=o("VideoScrubberPreviewSpriteCalculation").getSpriteIndex(t,n.maxImagesPerSprite,n.timeIntervalBetweenImages);if(r==this.getNumberOfSprites()&&this.state.lastSpriteDimension.numRow==0&&this.$6){var a=this.$6.get(r),i=new Image,l=this.onLastImageLoad;i.onload=function(){l(i.width,i.height)},i.src=a}this.setState({scrubberPreviewSpriteIndex:r,scrubberPreviewBackgroundPosition:e})},n.retrievePreviewThumbnailInfo=function(){this.setState({previewThumbnailInformation:this.props.previewThumbnailInformation})},n.isSpriteMapURIFetched=function(){return this.$6?this.$6.size>1:!1},n.$12=function(){var e=r("getElementPosition")(o("ReactDOM_DEPRECATED").findDOMNode_DEPRECATED(this.refs.bar));return this.$7=e,e},n.$14=function(){var e=r("getElementPosition")(o("ReactDOM_DEPRECATED").findDOMNode_DEPRECATED(this.refs.timecode));return this.$8=e,e},n.$15=function(){var e=r("getElementPosition")(o("ReactDOM_DEPRECATED").findDOMNode_DEPRECATED(this.refs.previewThumbnailContainer));return this.$9=e,e},n.onDragNubUpdate=function(t){var e=this.$12();this.$13(t,e),this.setState({scrubRatio:d(t,e)})},n.onDragNubRelease=function(t){var e=this.$12();this.$13(t,e);var n=this.props.playbackDuration,r=d(t,e),a=this.state.awaitingUpdate;if(n){var i=r*n;this.props.onScrubEnd&&(this.props.onScrubEnd(i),a=!0);var l=this.props.videoClipInfo;l&&l.start_time_in_ms!==null&&i<=l.start_time_in_ms/o("DateConsts").MS_PER_SEC&&this.setState({shouldIgnoreClipStartTS:!0})}else this.props.onScrubEnd&&this.props.onScrubEnd(0);this.setState({nubEngaged:!1,awaitingUpdate:a,scrubRatio:r})},n.renderNub=function(){var e=c.jsx("div",{ref:r("stringRefShim")(this,"nub"),className:"_2yua _4sxb"+(this.props.showVideoSliderWarningTooltip?" _83lq":""),onMouseEnter:this.onMouseEnterScrubberNub,onMouseLeave:this.onMouseLeaveScrubberNub});return this.props.showVideoSliderWarningTooltip?c.jsx(r("Tooltip.react"),{className:"_83lm _4sxb",tooltip:"Rewinding, pausing or skipping ahead in the video will be seen by all viewers.",children:e}):e},n.getPlayedRatio=function(t,n){if(this.state.nubEngaged||this.state.awaitingUpdate)return this.state.scrubRatio;if(!t||!n)return 0;var e=n/t;return this.getRangeLimitedRatio(e)},n.getBufferedRatio=function(){var e=this.props.playbackDuration,t=this.props.bufferedPosition;if(!e||!t)return 0;var n=t/e;return this.getRangeLimitedRatio(n)},n.getRangeLimitedRatio=function(t){return isNaN(t)||t<0||t>1?0:t},n.getNumberOfSprites=function(){return this.$6?this.$6.size:0},n.getAdBreakIndicators=function(){if(!this.props.playbackDuration||!this.props.adBreaks)return null;for(var e=[],t=0;ti)){var l={left:a/i*100+"%"},s=[];this.props.adBreaksDisableReasons&&(s=this.props.adBreaksDisableReasons[t]);var u="[FB Only] The in-stream ad is disabled for "+s.join(", ")+".";e.push(c.jsx("div",{style:l,className:(s.length===0?"_1p4l":"")+(s.length>0?" _1p4m":"")+(n.getIsAdBreakAutoInserted()&&s.length===0?" _1p4n":"")+(n.getIsAdBreakAutoInserted()&&s.length>0?" _1p4o":""),children:s.length>0?c.jsx(r("Tooltip.react"),{tooltip:u,children:"X"}):null},"ad_break_indicator_"+t))}}}return c.jsx("div",{children:e})},n.getInsertedAdBreaks=function(){var e=this;if(!this.props.playbackDuration||!this.props.insertedAdBreaks)return null;var t=[];return this.props.insertedAdBreaks.map(function(n,r){var o=n.timeOffset,a=e.props.playbackDuration,i={left:"calc("+o/a*100+"% - 2px)"};t.push(c.jsx("div",{style:i,className:(e.props.isAdBreakInsertionWithoutGapRule?"":"_1p4q")+(e.props.isAdBreakInsertionWithoutGapRule?" _1p4r":"")+(e.props.isAdBreakDisabled?" _1p4s":""),children:e.props.isAdBreakInsertionWithoutGapRule?null:r+1},"inserted_ad_break"+r))}),c.jsx("div",{children:t})},n.getEligibleAdBreaksTimeSegments=function(){var e=this;if(!this.props.playbackDuration||!this.props.insertedAdBreaks||this.props.isAdBreakInsertionWithoutGapRule&&this.props.insertedAdBreaks&&this.props.insertedAdBreaks.length>=r("VideoInstreamAdsConstants.experimental").AD_INSERTION_MAXIMUM_NUMBER_OF_AD_BREAKS)return null;var t=0;this.state.awaitingUpdate?t=this.$10:t=this.props.playbackPosition;var n=this.props.playbackDuration,a=o("VideoInstreamUtils").getEligibleTimeSegments(this.props.insertedAdBreaks,n,!this.props.isAdBreakInsertionWithoutGapRule);this.state.nubEngaged?this.$10=this.state.timecodeTimestamp:this.$10=t;var i=[];return a.forEach(function(t,r){var o=(t.end-t.start)/n*100,a=e.$10>=t.start&&e.$10<=t.end,l={left:"calc("+t.start/n*100+"% - 2px)",width:o+"%"};i.push(c.jsx("span",{className:"_1p4t"+(a?" _1p4u":""),style:l},"time_segment"+r))}),c.jsx("div",{className:"_1p50",children:i})},n.getInsertedStarsCues=function(){var e=this.props.selectedStarsCueTimestamp;if(!this.props.playbackDuration||e==null)return null;var t=this.props.playbackDuration,n={left:"calc("+e/t*100+"% - 10px)"},o={left:"calc("+e/t*100+"% - 3px)"};return c.jsxs("div",{children:[c.jsx(r("Image.react"),{src:u("1198335"),style:n,className:"_9evr"}),c.jsx("div",{style:o,className:"_9evs"})]})},n.getEligibleStarsCueTimeSegments=function(){var e=this,t=10;if(!this.props.playbackDuration||this.props.showEligibleStarsCueTimeSegments!==!0)return null;var n=0;this.state.awaitingUpdate?n=this.$10:n=this.props.playbackPosition;var r=this.props.playbackDuration,o=[{start:t,end:r}];this.state.nubEngaged?this.$10=this.state.timecodeTimestamp:this.$10=n;var a=[];return o.forEach(function(t,n){var o=(t.end-t.start)/r*100,i=e.$10>=t.start&&e.$10<=t.end,l={left:"calc("+t.start/r*100+"% - 2px)",width:o+"%"};a.push(c.jsx("span",{className:"_9evt"+(i?" _1p4u":""),style:l},"time_segment"+n))}),c.jsx("div",{className:"_9evu",children:a})},n.getPollTimeSegments=function(){var e,t=this;if(!this.props.playbackDuration)return null;var n=0;if(!this.props.showPollCard)return null;this.state.awaitingUpdate?n=this.$10:n=this.props.playbackPosition;var o=this.props.playbackDuration,a=(e=this.props.pollTimestamps)!=null?e:[];this.state.nubEngaged?this.$10=this.state.timecodeTimestamp:this.$10=n;var i=[];return a.forEach(function(e,n){var a={left:"calc("+e/o*100+"%)"},l=t.$10>=e;i.push(c.jsx(r("ClickableArea.react"),{onClick:function(o){o.stopPropagation(),o.persist(),t.props.onScrubEnd(e),r("Arbiter").inform("PollIconClicked")},children:c.jsx("span",{className:"_80r-",style:a,children:c.jsx(r("Image.react"),{className:"_80rd",src:u(l?"936893":"936896")})},"poll_segment"+n)},n)),i.push(c.jsx("span",{className:"_80re",style:a},"time_segment"+n))}),c.jsx("div",{className:"_80rf",children:i})},n.render=function(){var e=r("joinClasses")(this.props.className,"_2yu5"+(this.state.nubEngaged?" _2yu6":"")),t=(this.props.hasScrubberPreview?"_3iit":"")+(this.props.hasScrubberPreview?"":" _3iiu"),n={width:this.getPlayedRatio(this.props.playbackDuration,this.props.playbackPosition)*100+"%"},a={width:this.getBufferedRatio()*100+"%"},i=this.props.videoClipInfo,l="0%";if(i){var s=this.getRangeLimitedRatio(i.start_time_in_ms/o("DateConsts").MS_PER_SEC/this.props.playbackDuration);l=s*100+"%",this.state.shouldIgnoreClipStartTS||(n={width:this.getRangeLimitedRatio(this.getPlayedRatio(this.props.playbackDuration,this.props.playbackPosition)-s)*100+"%",marginLeft:l},a={width:this.getRangeLimitedRatio(this.getBufferedRatio()-s)*100+"%",marginLeft:l})}var u={left:this.state.timecodeRatio*100+"%",display:this.state.hoverNub?"none":"block"},d={},m={},p=null,_=null,f=null;if((this.state.mouseOver||this.state.nubEngaged||this.props.alwaysShowThumbnail)&&(f=c.jsx(r("VideoPlaybackTimer.react"),{className:t,isInScrubberPreview:!0,onMouseEnter:this.onMouseEnterOnThumbnailOrTimecode,onMouseLeave:this.onMouseLeaveOnThumbnailOrTimecode,playbackPosTimestamp:0,ref:r("stringRefShim")(this,"timecode"),remainingTimestamp:this.state.timecodeTimestamp,style:u}),this.props.hasScrubberPreview&&this.state.previewThumbnailInformation)){var g=this.state.previewThumbnailInformation.previewScrubberWidth,h=this.state.previewThumbnailInformation.previewScrubberHeight,y=100,C=100;this.getNumberOfSprites()!==this.state.scrubberPreviewSpriteIndex?(y*=this.state.previewThumbnailInformation.imagesPerRow,C*=this.state.previewThumbnailInformation.imagesPerColumn):this.state.lastSpriteDimension.numRow&&(y*=this.state.lastSpriteDimension.numRow,C*=this.state.lastSpriteDimension.numColumn);var b=this.state.previewThumbnailInformation.stereoMode;b==="left-right"?(g/=2,y*=2):b==="top-bottom"&&(h/=2,C*=2);var v=1;if(this.props.isFullscreen?v=1.5:this.props.isInTahoe&&(v=1.2),this.state.previewThumbnailInformation.useScrubberVideo&&this.state.previewThumbnailInformation.scrubberVideoURI!==null)d={width:g*v+"px",height:h*v+"px"},_=c.jsx("video",{muted:"true",preload:"auto",ref:r("stringRefShim")(this,"previewThumbnailVideo"),src:this.state.previewThumbnailInformation.scrubberVideoURI,style:d});else if(this.$6){var S="";if(this.state.scrubberPreviewSpriteIndex){var R=this.$6.get(this.state.scrubberPreviewSpriteIndex);R!=null&&R!==""&&(S="url("+R+")")}var L;y>100?L=y+"% "+C+"%":S="",d={width:g*v+"px",height:h*v+"px",backgroundImage:S,backgroundPosition:"-"+this.state.scrubberPreviewBackgroundPosition.x*v+"px -"+this.state.scrubberPreviewBackgroundPosition.y*v+"px",backgroundSize:L},_=c.jsx("div",{className:"_3iiw",ref:r("stringRefShim")(this,"previewThumbnail"),style:d})}m={left:this.state.previewRatio*100+"%",display:this.props.alwaysShowThumbnail?"block":void 0},p=c.jsxs("div",{onMouseEnter:this.onMouseEnterOnThumbnailOrTimecode,onMouseLeave:this.onMouseLeaveOnThumbnailOrTimecode,className:"_3iiv",ref:r("stringRefShim")(this,"previewThumbnailContainer"),style:m,children:[_,f]})}var E=null;this.props.pointsOfInterest.length>0&&(E=c.jsx(r("VultureJSDeadComponent.react"),{name:"VideoScrubberPointOfInterestBar"}));var k=null,I=this.getAdBreakIndicators(),T=this.props.playbackDuration>500?10:1,D=Math.round(this.getPlayedRatio(this.props.playbackDuration,this.props.playbackPosition)*100*T)/T,x="Current position is "+D+"%",$=this.props.isFullscreen||this.props.isInTahoe,P=c.jsx("div",{className:e,onKeyDown:this.onKeyDown,onMouseDown:this.onDragNubBeginClick,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onTouchStart:this.onDragNubBeginTouch,children:c.jsxs("div",{tabIndex:this.props.tabIndex,role:"slider","aria-orientation":"horizontal","aria-valuemin":0,"aria-valuemax":this.props.playbackDuration,"aria-valuenow":this.props.playbackPosition,"aria-valuetext":x,className:"_2yu7",ref:r("stringRefShim")(this,"bar"),children:[c.jsx("div",{className:"_2yu8",style:a}),c.jsx("div",{style:n,className:(this.props.isLiveVideo?"":"_2yu9")+(this.props.isLiveVideo&&!this.props.isLiveRewound?" _1p51":"")+(this.props.isLiveRewound?" _1p52":""),children:this.renderNub()}),i?c.jsx("div",{className:"_355j",style:{width:l},children:c.jsx(r("ProfileTile.react"),{id:i.sharer_id,size:$?32:24,imageProps:{className:"_355k"},tileProps:{className:"_355n",style:{marginTop:$?-16:-10}}})}):null,this.props.hasScrubberPreview?p:f,I,this.getInsertedAdBreaks(),this.getInsertedStarsCues(),this.getEligibleAdBreaksTimeSegments(),this.getEligibleStarsCueTimeSegments(),this.getPollTimeSegments()]})});return c.jsxs("div",{children:[k,P,E]})},t})(c.Component);p.defaultProps={alwaysShowThumbnail:!1,annotatedMomentsOfInterest:{},hasScrubberPreview:!1,isAdBreakInsertionWithoutGapRule:!1,isFullscreen:!1,isInTahoe:!1,isLiveRewound:!1,isLiveVideo:!1,isPlaying:!1,pointsOfInterest:[],onAnnotatedMomentOfInterestSelect:r("emptyFunction"),onPointOfInterestSelect:r("emptyFunction"),onScrubBegin:r("emptyFunction"),onScrubEnd:r("emptyFunction"),showEligibleStarsCueTimeSegments:!1,showPointOfInterestTimestamps:!1,showPollCard:!1,showVideoSliderWarningTooltip:!1,selectedStarsCueTimestamp:null},l.default=p}),98); __d("VideoVolumeSlider.react",["cx","EventListener","ReactDOM_DEPRECATED","getElementPosition","react","shallowCompare","stringRefShim"],(function(t,n,r,o,a,i,l,s){var e,u=e||(e=o("react")),c=(function(e){function t(t){var n;return n=e.call(this,t)||this,n.state={awaitingUpdate:!1,engaged:!1,volume:t.volume},n}babelHelpers.inheritsLoose(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(t,n){return r("shallowCompare")(this,t,n)},n.UNSAFE_componentWillReceiveProps=function(t){this.setState({awaitingUpdate:!1})},n.componentDidUpdate=function(t,n){if(!this.state.engaged&&n.engaged)this.$2&&this.$2.remove(),this.$1&&this.$1.remove(),this.$3&&this.$3.remove(),this.$4&&this.$4.remove();else if(this.state.engaged&&!n.engaged){var e;this.$1=(e=r("EventListener")).listen(document,"mousemove",this.onMouseMove.bind(this)),this.$2=e.listen(document,"mouseup",this.onMouseUpImpl.bind(this)),this.$3=e.listen(document,"touchmove",this.onTouchMove.bind(this)),this.$4=e.listen(document,"touchend",this.onMouseUpImpl.bind(this))}},n.onMouseDownImpl=function(t,n,r){this.props.onVolumeChangeBegin&&this.props.onVolumeChangeBegin(this.state.volume),this.props.isHorizontal===!0?this.setState({engaged:!0,volume:this.getClampedClickPositionVolume(n)}):this.setState({engaged:!0,volume:this.getClampedClickPositionVolume(r)}),t.preventDefault(),t.stopPropagation()},n.onMouseDown=function(t){t.button===0&&this.onMouseDownImpl(t,t.clientX,t.clientY)},n.onTouchDown=function(t){this.onMouseDownImpl(t,t.touches[0].clientX,t.touches[0].clientY)},n.getClampedClickPositionVolume=function(t){var e=r("getElementPosition")(o("ReactDOM_DEPRECATED").findDOMNode_DEPRECATED(this.refs.slider)),n=r("getElementPosition")(o("ReactDOM_DEPRECATED").findDOMNode_DEPRECATED(this.refs.nub)).height;if(this.props.isHorizontal===!0){var a=t+n/2-e.x;return Math.max(0,Math.min(1,a/e.width))}else{var i=e.y-t+e.height+n/2;return Math.max(0,Math.min(1,i/e.height))}},n.onMouseUpImpl=function(t){this.props.onVolumeChangeEnd&&this.props.onVolumeChangeEnd(this.state.volume),this.setState({engaged:!1,awaitingUpdate:!0}),t.preventDefault(),t.stopPropagation()},n.onMouseMoveImpl=function(t,n,r){this.props.isHorizontal===!0?this.setState({volume:this.getClampedClickPositionVolume(n)}):this.setState({volume:this.getClampedClickPositionVolume(r)}),this.props.onVolumeChange&&this.props.onVolumeChange(this.state.volume),t.preventDefault(),t.stopPropagation()},n.onMouseMove=function(t){this.onMouseMoveImpl(t,t.clientX,t.clientY)},n.onTouchMove=function(t){this.onMouseMoveImpl(t,t.touches[0].clientX,t.touches[0].clientY)},n.getVolume=function(){return this.state.engaged||this.state.awaitingUpdate?this.state.volume:this.props.volume},n.render=function(){var e=this.props.isHorizontal===!0,t=e?{width:Math.round(this.getVolume()*100)+"%"}:{height:Math.round(this.getVolume()*100)+"%"},n="_3pao"+(e?" _4sx9":"")+(this.state.engaged?" _2yu6":"");return u.jsxs("div",{className:n,onMouseDown:this.onMouseDown.bind(this),onTouchStart:this.onTouchDown.bind(this),children:[u.jsx("div",{className:"_4sxa",children:u.jsx("div",{className:"_3paq",ref:r("stringRefShim")(this,"slider"),children:u.jsx("div",{className:"_3par",style:t,children:u.jsx("div",{className:"_3pas _4sxb",ref:r("stringRefShim")(this,"nub")})})})}),u.jsx("div",{className:"_3pat"})]})},t})(u.Component);c.defaultProps={volume:0,onVolumeChange:function(t){},onVolumeChangeBegin:function(t){},onVolumeChangeEnd:function(t){}},l.default=c}),98); __d("VideoVolumeControl.react",["cx","fbt","invariant","ix","AbstractButton.react","Image.react","Keys","ReactDOM_DEPRECATED","TooltipData","VideoPlayerVolumeSettings","VideoVolumeSlider.react","react","shallowCompare","stringRefShim"],(function(t,n,r,o,a,i,l,s,u,c,d){var e,m=e||(e=o("react")),p=(function(e){function t(t){var n;return n=e.call(this,t)||this,n.onButtonClick=function(){if(n.checkLastVolumeBeforeMuteInvariant(),n.props.volume===0)return n.onSliderVolumeChange(n.state.lastVolumeBeforeMute);n.props.onToggleMuted&&n.props.onToggleMuted()},n.onButtonFocus=function(){n.setState({focused:!0})},n.onButtonBlur=function(){n.setState({focused:!1})},n.onKeyDown=function(e){var t=n.props.volume;if(e.keyCode===r("Keys").UP)e.preventDefault(),e.stopPropagation(),t+=.05,t>1&&(t=1);else if(e.keyCode===r("Keys").DOWN)e.preventDefault(),e.stopPropagation(),t-=.05,t<0&&(t=0);else return;n.onSliderVolumeChangeEnd(t)},n.onMouseOut=function(e){o("ReactDOM_DEPRECATED").findDOMNode_DEPRECATED(n.refs.button).blur()},n.onSliderVolumeChangeBegin=function(){var e=n.props.volume;e>0&&(n.setState({nubEngaged:!0,lastVolumeBeforeMute:e}),r("VideoPlayerVolumeSettings").saveLastVolumeBeforeMute(e))},n.onSliderVolumeChangeEnd=function(e){e>0?(n.setState({lastVolumeBeforeMute:e}),r("VideoPlayerVolumeSettings").saveLastVolumeBeforeMute(e),n.onSliderVolumeChange(e)):(n.props.onVolumeChange(n.state.lastVolumeBeforeMute),n.props.isMuted||n.props.onToggleMuted&&n.props.onToggleMuted()),n.setState({nubEngaged:!1})},n.onSliderVolumeChange=function(e){(e>0&&n.props.isMuted||e===0&&!n.props.isMuted)&&n.props.onToggleMuted&&n.props.onToggleMuted(),n.props.onVolumeChange&&n.props.onVolumeChange(e)},n.state={nubEngaged:!1,focused:!1,lastVolumeBeforeMute:1},n}babelHelpers.inheritsLoose(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(t,n){return r("shallowCompare")(this,t,n)},n.getVolume=function(){return this.props.isMuted?0:this.props.volume},n.checkLastVolumeBeforeMuteInvariant=function(){this.state.lastVolumeBeforeMute>0&&this.state.lastVolumeBeforeMute<=1||c(0,2385)},n.render=function(){var e=Math.round(this.getVolume()*100),t=null,n="";if(this.props.isAudioBlocked)n=u._(/*BTDS*/"Audio no disponible"),t=m.jsx("div",{children:m.jsx(r("Image.react"),{className:"x1qx5ct2 xxymvpz xw4jnvo",src:this.props.useDarkTheme?d("797748"):d("660433")})});else if(e==0)t=m.jsx(r("Image.react"),{className:"x1qx5ct2 xxymvpz xw4jnvo",src:this.props.useDarkTheme?d("462991"):d("462993")});else{var a=null;e<=33?a=this.props.useDarkTheme?d("462983"):d("462984"):e<=66?a=this.props.useDarkTheme?d("462987"):d("462988"):a=this.props.useDarkTheme?d("462971"):d("443962"),t=m.jsx("div",{className:"x1qx5ct2 x1n2onr6 xw4jnvo",children:m.jsx("div",{className:"x1qx5ct2 x10l6tqk xw4jnvo",children:m.jsx(r("Image.react"),{className:"x1qx5ct2 xxymvpz xw4jnvo",src:a})})})}var i="_2swo"+(this.state.nubEngaged?" _2yu6":"")+(this.state.focused?" _2iw8":""),l="_zbd _1agg",s=this.getVolume()?u._(/*BTDS*/"Silenciar"):u._(/*BTDS*/"Reactivar"),c=this.props.isAudioBlocked?null:m.jsx(r("VideoVolumeSlider.react"),{onVolumeChangeBegin:this.onSliderVolumeChangeBegin,onVolumeChangeEnd:this.onSliderVolumeChangeEnd,onVolumeChange:this.onSliderVolumeChange,isHorizontal:this.props.isHorizontal||!1,volume:this.getVolume()}),p=m.jsx(r("AbstractButton.react"),babelHelpers.extends({},o("TooltipData").propsFor(n,"above"),{className:l,"data-testid":void 0,image:t,label:s,labelIsHidden:!0,onBlur:this.onButtonBlur,onClick:this.onButtonClick,onFocus:this.onButtonFocus,onKeyDown:this.onKeyDown,onMouseOut:this.onMouseOut,ref:r("stringRefShim")(this,"button"),tabIndex:this.props.tabIndex,type:"button"}));return this.props.isHorizontal===!0?m.jsxs("div",{className:i,children:[p,c]}):m.jsxs("div",{className:i,children:[c,p]})},t})(m.Component);p.defaultProps={isAudioBlocked:!1,useDarkTheme:!1},l.default=p}),226); __d("VideoControls.react",["cx","fbt","ix","AbstractButton.react","BootloadedComponent.react","FluxContainer","Image.react","JSResource","LiveVideoRewindTypedLogger","TooltipData","VideoClipButton.react","VideoFBIconControl.react","VideoFullscreenControl.react","VideoPlaybackControl.react","VideoPlaybackRateControl.react","VideoPlaybackTimer.react","VideoPlayerExperiments","VideoPollCardDispatcher","VideoPollCardStore","VideoScrubber.react","VideoVolumeControl.react","emptyFunction","immutable","joinClasses","lazyLoadComponent","react","shallowCompare","stringRefShim"],(function(t,n,r,o,a,i,l,s,u,c){var e,d=e||(e=o("react")),m=r("lazyLoadComponent")(r("JSResource")("VideoActionsControl.react").__setRef("VideoControls.react")),p=36,_=(function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o0))this.props.drawer&&this.props.drawer.setHeight(55);else{var a=this.props.isInWatchAndScroll?55:p;this.props.drawer&&this.props.drawer.setHeight(a)}},n.isHidden=function(){return this.props.hidden},n.isTransparent=function(){return this.props.transparent},n.render=function(){var e=r("VideoPlayerExperiments").inlineSoundVisible,t="_1c7d"+(this.isHidden()?" _1c7e":"")+(this.isTransparent()&&!e?" _2oy-":""),n="_2w_u"+(this.props.showSidePaneToggle?" _vr5":"")+(this.props.useDarkTheme?" _vr6":""),a="_1c7f _1c7g"+(this.isTransparent()&&e?" _2oy-":""),i="_1c7f _2pvx"+(this.isTransparent()&&e?" _2oy-":""),l="_1c7f _1c7h"+(this.isTransparent()&&e?" _2oy-":""),s="_1c7f _w7o"+(this.isTransparent()&&(!this.props.isInline||this.props.isFullscreen||!this.props.isPlaying)?" _2oy-":""),p="_2w_w",_=!1;this.props.isLive&&this.props.isInTahoe&&(_=!0);var f="_1otk _3t1r _4ubd"+(_?" _w7y":""),g="_3t1r _4ubd _3t1s"+(this.props.isCommentAttachment?"":" hidden_elem"),h=null;if(!(this.props.isLive||this.props.isFBWasLive)&&!this.props.hideRemainingTime&&!this.props.isInWatchAndScroll){var y=this.props.playbackPosition-this.props.playbackDuration;h=d.jsx(r("VideoPlaybackTimer.react"),{className:"_5qsr"+(this.props.displayMilliseconds?" _w7-":""),isEmbedded:this.props.isEmbedded,playbackPosTimestamp:this.props.playbackPosition,playbackDurationTimestamp:this.props.playbackDuration,remainingTimestamp:y,displayElapsedTime:this.props.displayElapsedTime,displayMilliseconds:this.props.displayMilliseconds,displayBothTimes:!1})}var C=null,b=null,v=null,S=null,R=null,L=this.props,E=L.showInlineCopyLinkOption,k=L.showInlineVideoReportOption,I=k||E;if(!this.props.hideSettings&&!this.props.isInWatchAndScroll&&!this.props.isEmbedded&&I&&(S=d.jsx(d.Suspense,{fallback:d.jsx("span",{}),children:d.jsx(m,{disabled:this.props.isCasting,onActionsClicked:this.props.onActionsClick,permalinkURL:this.props.permalinkURL,showCopyLink:E,showReportVideo:k,tabIndex:0})})),(!this.props.isLive||this.props.hasHD)&&!this.props.hideSettings&&!this.props.isInWatchAndScroll&&r("VideoPlayerExperiments").redesign){var T,D;v=d.jsx(r("BootloadedComponent.react"),{bootloadLoader:r("JSResource")("VideoSettingsControl.react").__setRef("VideoControls.react"),bootloadPlaceholder:d.jsx("span",{}),disabled:this.props.isCasting,hasHD:this.props.hasHD,hasCaptions:this.props.hasCaptions,isHD:this.props.isHD,isInline:this.props.isInline,isLive:this.props.isLive,isSphericalVideo:this.props.isSphericalVideo,areCaptionsActive:this.props.areCaptionsActive,areCaptionsAutogenerated:this.props.areCaptionsAutogenerated,onSettingsClick:this.props.onSettingsClick,onToggleHD:this.props.onToggleHD,onToggleCaptions:this.props.onToggleCaptions,hideMoreSettingsLink:this.props.hideMoreSettingsLink,tabIndex:"0",availableQualities:this.props.availableQualities,selectedQuality:(T=this.props.selectedQuality)!=null?T:null,preferredQuality:(D=this.props.preferredQuality)!=null?D:null,canAutoSelectVideoQuality:this.props.canAutoSelectVideoQuality,onSelectQuality:this.props.onSelectQuality,showQualitySelector:this.props.showQualitySelector,qualitySelectorMinStreams:this.props.qualitySelectorMinStreams,streamingFormat:this.props.streamingFormat,videoID:this.props.videoID})}this.props.isLive&&r("VideoPlayerExperiments").hlsButton&&(R=d.jsx(r("BootloadedComponent.react"),{bootloadPlaceholder:d.jsx("span",{}),bootloadLoader:r("JSResource")("VideoToHLSControl.react").__setRef("VideoControls.react"),areHLSActive:this.props.areHLSActive,onToggleHLS:this.props.onToggleHLS,tabIndex:"0"}));var x=this.props.gamesVideoCreatorClipping&&(this.props.isInTahoe||this.props.isInline||this.props.gamesVideoClipButtonEnabled)&&this.props.gamesDefaultClipLengthInSec!=null&&this.props.gamesDefaultClipLengthInSec>0?d.jsx(r("VideoClipButton.react"),{onClipVideo:this.props.onClipVideo,defaultLengthInSec:this.props.gamesDefaultClipLengthInSec}):null,$=null;if(this.props.allowFullscreen)if(this.props.doesFullscreenEnterTahoe&&(this.props.isInline||this.props.isInWatchAndScroll)){var P=d.jsx(r("Image.react"),{className:"x1qx5ct2 xxymvpz xw4jnvo",src:c("407577")}),N=u._(/*BTDS*/"Haz clic para ampliar");$=d.jsx(r("AbstractButton.react"),babelHelpers.extends({},o("TooltipData").propsFor(N,"above"),{className:"_zbd _400z _1vek",image:P,label:N,labelIsHidden:!0,onClick:this.props.onEnterTahoe,tabIndex:"0"}))}else{var M=this.props.isFullscreen?u._(/*BTDS*/"Haz clic para salir de pantalla completa"):u._(/*BTDS*/"Haz clic para ver en pantalla completa");$=d.jsx(r("VideoFullscreenControl.react"),babelHelpers.extends({},o("TooltipData").propsFor(M,"above"),{disabled:this.props.isCasting&&!this.props.isFullscreen,isFullscreen:this.props.isFullscreen,onToggleFullscreen:this.props.onToggleFullscreen,tabIndex:"0"}))}var w=null;this.props.hasWatchAndScroll&&!this.props.isFullscreen&&!this.props.isInWatchAndScroll&&(w=d.jsx(r("BootloadedComponent.react"),{bootloadPlaceholder:d.jsx("span",{}),bootloadLoader:r("JSResource")("VideoWatchAndScrollControl.react").__setRef("VideoControls.react"),disabled:this.props.isCasting,onEnterWatchAndScroll:this.props.onEnterWatchAndScroll,isSlidingWNSEligible:this.props.isSlidingWNSEligible,onWNSNUXClose:this.props.onWNSNUXClose,showWNSNUX:this.props.showWNSNUX}));var A=null;this.props.allowCasting&&this.props.hasFoundReceiver&&(A=d.jsx(r("BootloadedComponent.react"),{bootloadPlaceholder:d.jsx("span",{}),bootloadLoader:r("JSResource")("VideoCastingControl.react").__setRef("VideoControls.react"),hasFoundReceiver:this.props.hasFoundReceiver,isCasting:this.props.isCasting,isCastingSupported:this.props.isCastingSupported,onStartCast:this.props.onStartCast,onStopCast:this.props.onStopCast}));var F=null;if(this.props.isEmbeddedPlayerRedesignEnabled)F=this.props.permalinkURL&&this.props.showPermalinkButton?d.jsx(r("VideoFBIconControl.react"),{permalinkURL:this.props.permalinkURL,playbackPosTimestamp:this.props.playbackPosition}):null;else{var O=null,B=this.props.isWatchIconEligible?c("909284"):c("804741");if(this.props.permalinkURL&&this.props.showPermalinkButton){O=d.jsx(r("Image.react"),{className:"x1qx5ct2 xxymvpz xw4jnvo",src:B});var W=u._(/*BTDS*/"Abrir en una pesta\u00f1a nueva");F=d.jsx(r("AbstractButton.react"),babelHelpers.extends({},o("TooltipData").propsFor(W,"above"),{className:"_zbd",href:this.props.permalinkURL,image:O,label:W,labelIsHidden:!0,ref:r("stringRefShim")(this,"button"),tabIndex:"0",target:"_blank",type:"button"}))}}var q=null,U=null,V=null,H=null,G=null;if((this.props.isLive||this.props.isFBWasLive)&&this.props.showPlayButtonForLive&&!this.props.isLiveRewindEnabled)U=d.jsx(r("VideoPlaybackControl.react"),{finishedPlaying:this.props.finishedPlaying,isPlaying:this.props.isPlaying,onPause:this.props.onPause,onPlay:this.props.onPlay,useDarkTheme:this.props.useDarkTheme,tabIndex:"0"});else if(!(this.props.isLive||this.props.isFBWasLive)&&!this.props.hidePlaybackControl){if(U=d.jsx(r("VideoPlaybackControl.react"),{finishedPlaying:this.props.finishedPlaying,isPlaying:this.props.isPlaying,onPause:this.props.onPause,onPlay:this.props.onPlay,useDarkTheme:this.props.useDarkTheme,tabIndex:"0"}),this.props.showPlaybackRateControl&&this.props.onSetVideoPlaybackRate){var z=u._(/*BTDS*/"Velocidad de reproducci\u00f3n");V=d.jsx(r("VideoPlaybackRateControl.react"),babelHelpers.extends({},o("TooltipData").propsFor(z,"above"),{isEmbedded:this.props.isEmbedded,tabIndex:0,onSelectPlaybackRate:this.props.onSetVideoPlaybackRate}))}if(!this.props.hidePlaybackScrubber){var j,K,Q,X,Y=!this.props.finishedPlaying&&(this.props.vpcID!==void 0?this.state.pollCardsActiveForVPC[(j=this.props.vpcID)!=null?j:""]!==null?((K=this.state.pollCardsActiveForVPC[(Q=this.props.vpcID)!=null?Q:""])!=null?K:r("immutable").List()).size===0:!0:!1);q=d.jsx(r("VideoScrubber.react"),{adBreaks:this.props.adBreaks,adBreaksDisableReasons:this.props.adBreaksDisableReasons,annotatedMomentsOfInterest:this.props.annotatedMomentsOfInterest,bufferedPosition:this.props.bufferedPosition,controlsHidden:this.props.hidden,hasScrubberPreview:this.props.hasScrubberPreview,interestLevels:this.props.interestLevels,drawer:this.props.drawer,insertedAdBreaks:this.props.insertedAdBreaks,isAdBreakDisabled:this.props.isAdBreakDisabled,isAdBreakInsertionWithoutGapRule:this.props.isAdBreakInsertionWithoutGapRule,isFullscreen:this.props.isFullscreen,isPlaying:this.props.isPlaying,onScrubBegin:this.props.onScrubBegin,onScrubEnd:this.props.onScrubEnd,playbackDuration:this.props.playbackDuration,playbackPosition:this.props.playbackPosition,pollTimestamps:this.props.pollTimestamps,showPollCard:Y,onAnnotatedMomentOfInterestSelect:this.props.onAnnotatedMomentOfInterestSelect,previewThumbnailInformation:this.props.previewThumbnailInformation,scrubberPreviewSprites:this.props.scrubberPreviewSprites,showEligibleStarsCueTimeSegments:this.props.showEligibleStarsCueTimeSegments,selectedStarsCueTimestamp:this.props.selectedStarsCueTimestamp,onPointOfInterestSelect:this.props.onPointOfInterestSelect,currentPointOfInterest:this.props.currentPointOfInterest,pointsOfInterest:this.props.pointsOfInterest,showPointOfInterestTimestamps:this.props.showPointOfInterestTimestamps,showVideoSliderWarningTooltip:(X=this.props.showVideoSliderWarningTooltip)!=null?X:!1,tabIndex:0,isInTahoe:this.props.isInTahoe,videoClipInfo:this.props.videoClipInfo})}}var J=null;this.props.hideGradient||(J=d.jsx("div",{className:"_w80"+(this.isTransparent()?" _2oy-":"")+(this.props.useLargerGradient?" _8y-6":"")}));var Z=d.jsx(r("VideoVolumeControl.react"),{isAudioBlocked:this.props.isAudioBlocked,isMuted:this.props.isMuted,onToggleMuted:this.props.onToggleMuted,onVolumeChange:this.props.onVolumeChange,volume:this.props.volume,tabIndex:"0",useDarkTheme:this.props.useDarkTheme}),ee,te,ne,re,oe,ae,ie,le,se=this.props,ue=se.onLiveRewindSeekBack,ce=se.onLiveRewindSeekForward,de=se.onLiveRewindToBeginning,me=se.onLiveRewindToLive;if(this.props.isLiveRewindEnabled&&!this.props.isEmbedded){if(this.props.liveRelativePlaybackPosition!=null){var pe=this.props.liveRelativePlaybackPosition>this.props.playbackDuration?this.props.playbackDuration:this.props.liveRelativePlaybackPosition;if(ie=this.props.isInWatchAndScroll?null:d.jsx(r("VideoPlaybackTimer.react"),{className:"_3ek9 _5qsr"+(this.props.displayMilliseconds?" _w7-":""),displayElapsedTime:!0,displayMilliseconds:this.props.displayMilliseconds,isEmbedded:this.props.isEmbedded,isLiveVideo:!0,playbackPosTimestamp:pe,playbackDurationTimestamp:this.props.isFBWasLive?this.props.playbackDuration:void 0,displayBothTimes:this.props.isFBWasLive,remainingTimestamp:-1*(this.props.playbackDuration-pe)}),ae=d.jsx(r("VideoScrubber.react"),{adBreaks:this.props.adBreaks,adBreaksDisableReasons:this.props.adBreaksDisableReasons,bufferedPosition:this.props.bufferedPosition,className:"_3ek9",controlsHidden:this.props.hidden,currentPointOfInterest:this.props.currentPointOfInterest,drawer:this.props.drawer,hasScrubberPreview:this.props.hasScrubberPreview,interestLevels:this.props.interestLevels,insertedAdBreaks:this.props.insertedAdBreaks,isAdBreakDisabled:this.props.isAdBreakDisabled,isAdBreakInsertionWithoutGapRule:this.props.isAdBreakInsertionWithoutGapRule,isFullscreen:this.props.isFullscreen,isInTahoe:this.props.isInTahoe,isLiveRewound:this.props.isLiveRewound,isLiveVideo:!0,isPlaying:this.props.isPlaying,playbackDuration:this.props.playbackDuration,playbackPosition:this.props.isLiveRewound?pe:this.props.playbackDuration,pointsOfInterest:this.props.pointsOfInterest,previewThumbnailInformation:this.props.previewThumbnailInformation,scrubberPreviewSprites:this.props.scrubberPreviewSprites,showEligibleStarsCueTimeSegments:this.props.showEligibleStarsCueTimeSegments,selectedStarsCueTimestamp:this.props.selectedStarsCueTimestamp,showPointOfInterestTimestamps:this.props.showPointOfInterestTimestamps,tabIndex:0,onLiveRewindToBeginning:this.props.onLiveRewindToBeginning,onLiveRewindSeekBack:this.props.onLiveRewindSeekBack,onLiveRewindSeekForward:this.props.onLiveRewindSeekForward,onLiveRewindToLive:this.props.onLiveRewindToLive,onPointOfInterestSelect:this.props.onPointOfInterestSelect,onScrubBegin:this.props.onScrubBegin,onScrubEnd:this.props.onScrubEnd}),this.props.showPlaybackRateControl&&this.props.onSetVideoPlaybackRate&&this.props.isLiveRewound){var _e=u._(/*BTDS*/"Velocidad de reproducci\u00f3n");V=d.jsx(r("VideoPlaybackRateControl.react"),babelHelpers.extends({},o("TooltipData").propsFor(_e,"above"),{isEmbedded:this.props.isEmbedded,tabIndex:0,onSelectPlaybackRate:this.props.onSetVideoPlaybackRate}))}new(r("LiveVideoRewindTypedLogger"))().setEvent("render_rewind_controls").setVideoID(this.props.videoID).log()}ee=de&&!this.props.isInWatchAndScroll&&!this.props.isInline?d.jsx(r("BootloadedComponent.react"),{bootloadLoader:r("JSResource")("VideoLiveRewindControl.react").__setRef("VideoControls.react"),bootloadPlaceholder:d.jsx("span",{}),asset:c("465766"),tooltip:u._(/*BTDS*/"Ir al principio"),onButtonClick:de}):null,le=this.props.isFBWasLive&&me&&!this.props.isInWatchAndScroll&&!this.props.isInline?d.jsx(r("BootloadedComponent.react"),{bootloadLoader:r("JSResource")("VideoLiveRewindControl.react").__setRef("VideoControls.react"),bootloadPlaceholder:d.jsx("span",{}),asset:c("465765"),tooltip:u._(/*BTDS*/"Ir al final"),onButtonClick:me}):null,te=ue&&!this.props.isInWatchAndScroll?d.jsx(r("BootloadedComponent.react"),{bootloadLoader:r("JSResource")("VideoLiveRewindControl.react").__setRef("VideoControls.react"),bootloadPlaceholder:d.jsx("span",{}),asset:c("465767"),tooltip:u._(/*BTDS*/"Retroceder"),onButtonClick:ue}):null;var fe=this.props.isLiveRewound?u._(/*BTDS*/"Avanzar"):void 0;ne=ce&&!this.props.isInWatchAndScroll&&!this.props.isInline?d.jsx(r("BootloadedComponent.react"),{bootloadLoader:r("JSResource")("VideoLiveRewindControl.react").__setRef("VideoControls.react"),bootloadPlaceholder:d.jsx("span",{}),asset:c("465768"),disabled:!this.props.isLiveRewound,tooltip:fe,onButtonClick:ce}):null;var ge=this.props.isLiveRewound?c("467224"):c("467223"),he=this.props.isLiveRewound?u._(/*BTDS*/"Ver en vivo"):void 0;re=me?d.jsx(r("BootloadedComponent.react"),{bootloadLoader:r("JSResource")("VideoLiveRewindControl.react").__setRef("VideoControls.react"),bootloadPlaceholder:d.jsx("span",{}),asset:ge,tooltip:he,onButtonClick:me}):null,oe=this.props.isInWatchAndScroll?null:d.jsx(r("VideoPlaybackControl.react"),{finishedPlaying:this.props.finishedPlaying,isLiveVideo:!0,isPlaying:this.props.isPlaying,onPause:this.props.onPause,onPlay:this.props.onPlay,useDarkTheme:this.props.useDarkTheme,tabIndex:"0"})}var ye=null,Ce=this.props.showControlsOnFullScreenOnly===!0?this.props.isFullscreen:!0;if(this.props.useTwoRows){var be=d.jsx(r("VideoVolumeControl.react"),{isAudioBlocked:this.props.isAudioBlocked,isMuted:this.props.isMuted,onToggleMuted:this.props.onToggleMuted,onVolumeChange:this.props.onVolumeChange,volume:this.props.volume,isHorizontal:!0,tabIndex:"0"});ye=d.jsxs("div",{className:g,children:[d.jsx("div",{className:p,children:d.jsxs("div",{className:t,children:[d.jsx("div",{className:a}),d.jsx("div",{className:i,children:q}),d.jsx("div",{className:l,children:h})]})}),d.jsx("div",{className:p,children:d.jsxs("div",{className:t,children:[d.jsxs("div",{className:a,children:[U,V,be]}),d.jsx("div",{className:i}),d.jsxs("div",{className:l,children:[b,R,C,v,w,A,$,F,x,S]})]})})]})}var ve=null;if(r("VideoPlayerExperiments").embeddedPlayerEnhancements&&this.props.isEmbedded){var Se=r("joinClasses")(t,r("VideoPlayerExperiments").embeddedPlayerEnhancements?"_w83":""),Re=r("joinClasses")(t,"_w86");ve=d.jsx("div",{className:Se,children:d.jsxs("div",{className:p,children:[d.jsxs("div",{className:Re,children:[Ce&&d.jsxs("div",{className:a,children:[U,V]}),d.jsx("div",{className:i,children:q}),d.jsx("div",{className:l,children:h})]}),d.jsxs("div",{className:t,children:[Ce&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:a}),d.jsx("div",{className:i})]}),d.jsxs("div",{className:l,children:[Ce&&d.jsxs(d.Fragment,{children:[e||Z,b,R,C,v,w,A]}),$,Ce&&d.jsxs(d.Fragment,{children:[F,x,S]})]}),d.jsx("div",{className:s,children:!e||Z})]})]})})}else ve=!this.props.useTwoRows||!this.props.isCommentAttachment?d.jsx("div",{className:f,"data-testid":void 0,children:d.jsx("div",{className:p,children:d.jsxs("div",{className:t,children:[d.jsxs("div",{className:a,children:[Ce&&d.jsxs(d.Fragment,{children:[G,U,V,H,ee,te,oe,ne]}),this.props.isFBWasLive?le:re,ie]}),d.jsxs("div",{className:i,children:[q,ae]}),d.jsxs("div",{className:l,children:[h,Ce&&d.jsxs(d.Fragment,{children:[e||Z,b,R,C,v,w,A]}),$,Ce&&d.jsxs(d.Fragment,{children:[F,x,S]})]}),d.jsx("div",{className:s,children:this.props.allowAudioButton===!1?d.jsx("div",{}):!e||Z})]})})}):null;return d.jsxs("div",{className:n,children:[J,ve,ye]})},t})(d.Component);_.defaultProps={allowCasting:!1,allowAudioButton:!0,bufferedPosition:0,displayElapsedTime:!1,showControlsOnFullScreenOnly:!1,displayMilliseconds:!1,gamesVideoClipButtonEnabled:!1,gamesVideoCreatorClipping:!1,gamesDefaultClipLengthInSec:void 0,hasFoundReceiver:!1,hidden:!1,hideGradient:!1,hidePlaybackControl:!1,hidePlaybackScrubber:!1,hideRemainingTime:!1,hideSettings:!1,hideMoreSettingsLink:!1,isAudioBlocked:!1,isCasting:!1,isCastingSupported:!1,isCommentAttachment:!1,isFBWasLive:!1,isInTahoe:!1,isLiveRewound:!1,isMuted:!1,isPlaying:!1,isSphericalVideo:!1,isWatchIconEligible:!1,onSidePaneToggle:r("emptyFunction"),onStartCast:r("emptyFunction"),onStopCast:r("emptyFunction"),playbackDuration:0,playbackPosition:0,showInlineCopyLinkOption:!1,showInlineVideoReportOption:!1,showPermalinkButton:!1,showPlaybackRateControl:!1,showPlayButtonForLive:!1,showSidePaneToggle:!1,showVideoSliderWarningTooltip:!1,showWNSNUX:!1,transparent:!1,useDarkTheme:!1,useLargerGradient:!1,useTwoRows:!1,volume:0};var f=r("FluxContainer").create(_);l.default=f}),226); __d("VideoWatchAndScrollVariables.experimental",["cr:10925"],(function(t,n,r,o,a,i,l){"use strict";l.default=n("cr:10925")}),98); __d("shouldWNSRenderToRHC",["ge"],(function(t,n,r,o,a,i,l){"use strict";function e(){return!!r("ge")("fbRHCVideoWNS-container")}l.default=e}),98); __d("VideoWatchAndScrollController",["csx","cx","invariant","Arbiter","CSS","DOM","DOMDimensions","Event","EventListener","Locale","ReactDOM_DEPRECATED","SubscriptionsHandler","Tahoe","VideoAutoplayControllerX","VideoChannelStoryFetcher","VideoFrameBuffer","VideoPlayerExperiments","VideoPlayerVolumeSettings","VideoWatchAndScrollVariables.experimental","ViewportBounds","VultureJSDeadComponent.react","cancelAnimationFrame","clearTimeout","destroyOnUnload","getViewportDimensions","ifRequired","react","setTimeoutAcrossTransitions","shouldWNSRenderToRHC","throttle"],(function(t,n,r,o,a,i,l,s,u,c){var e,d=e||(e=o("react")),m=158,p=280,_=10,f=42,g=f+_,h=476,y=230,C=["autoplay_initiated","page_visibility_initiated"],b=750,v=308,S=3,R=null;function L(){return Math.max(r("getViewportDimensions")().height,400)-f-80}var E=(function(){function e(e,t,n,o,a){var i,l=this;this.$30=new(r("SubscriptionsHandler")),this.$31=new(r("SubscriptionsHandler")),this.$1=!1,this.$2=null,this.$3=null,this.$4=!1,this.$34=n,this.$37=!1,this.$29=!1,this.$47=o,this.$48=o,this.$52=a,this.$33=new(r("VideoChannelStoryFetcher"))(t,e,this.$34,null),this.$35=[],this.$36=0,this.$38=[],this.$39=[],this.$5=m,this.$6=p,this.$10=window.document.getElementById("leftCol"),this.$11=window.document.getElementById("rightCol"),this.$12=window.document.getElementById("pagelet_bluebar"),this.$43={},this.$46=null,this.$53(),(i=this.$30).addSubscriptions.apply(i,this.$54()),r("VideoPlayerExperiments").persistentWNSEnabled||r("destroyOnUnload")(function(){l.$55(),l.$4&&l.$56(),l.$30&&l.$30.release(),l===R&&(R=null)})}var t=e.prototype;return t.$54=function(){var e=this,t=[];return t.push(r("Arbiter").subscribe("VideoChannelView/opened",function(t,n){e.$4&&(!n.controller||e.$16!==n.controller)&&e.$56()})),t.push(r("Arbiter").subscribe("fbVideoWatchAndScroll/closeWNS",function(){if(e.$4){var t=e.$16,n=t.getOption("CommercialBreakVideoAdOverlay","videoController");n&&(t=n),t.logEvent("watch_and_scroll_exited"),e.$57()}})),r("VideoPlayerExperiments").rhcWNSEnabled&&(t.push(r("Arbiter").subscribe("RHCVideoWNSController/collapseStart",function(){var t=e.$14;!t||!r("shouldWNSRenderToRHC")()||t.setState({endScreenFadeOut:!0,endScreenShown:!1})}),r("Arbiter").subscribe("RHCVideoWNSController/collapseEnd",function(){var t=e.$14;!t||!r("shouldWNSRenderToRHC")()||(e.pauseActiveVideo("user_initiated"),t.setState({endScreenFadeOut:!1}))}),r("Arbiter").subscribe("RHCVideoWNSController/expandStart",function(){var t=e.$14;!t||!e.isActiveVideoDonePlaying()||!r("shouldWNSRenderToRHC")()||t.setState({endScreenShown:!0})})),r("VideoPlayerExperiments").persistentWNSEnabled&&t.push(r("Arbiter").subscribe("RHCVideoWNSController/eject",function(t,n){r("shouldWNSRenderToRHC")()&&(e.$2=n,r("DOM").appendContent(document.body,n),e.$16.isState("playing")&&e.playActiveVideo("user_initiated"))}),r("Arbiter").subscribe("RHCVideoWNSController/dock",function(){r("shouldWNSRenderToRHC")()&&e.$16.isState("playing")&&e.playActiveVideo("user_initiated")}),r("Event").listen(window,"resize",r("throttle")(function(){r("shouldWNSRenderToRHC")()&&e.$58()})),r("Arbiter").subscribe("RHCVideoWNSController/mount",function(){e.$58()}))),t},t.$58=function(){var e=this.$14;if(!(!e||this.$37)){var t=this.$16.getVideoNode(),n=this.$59(t);this.$16.removeOffsetStylings(),this.$16.setDimensions(n.width,n.height),e.setState({height:n.height,width:n.width}),this.$46=n,r("Arbiter").inform("VideoWatchAndScrollController/resize")}},t.isActiveVideoDonePlaying=function(){var e=this.$16.getState();return e==="finished"},e.isActiveVideoDonePlaying=function(){return R?R.isActiveVideoDonePlaying():!1},t.$60=function(t,n,o){var e=this;t||c(0,185090),n.length||c(0,185091),this.$47=!0,this.$37=!1,this.$31=new(r("SubscriptionsHandler")),this.$36=o,this.$33=t,this.$38=t.getPreloadedData().thumbnails||[],this.$39=[],this.$35=n.slice(0),this.$35.forEach(function(t){e.$61(t),e.$62(t),t.updateSource("watch_scroll")});var a=this.$35.shift();this.$63(a,"user_initiated")},t.$64=function(t,n,r,o,a){var e=this;this.$9=a,this.$46=this.$59(a.videoRootNode),this.$60(t,n,r),this.$14&&this.$14.setState({channelVideoElements:o},function(){e.$65()}),this.$9=null},e.registerVideoController=function(n,r,o,a,i){if(R==null&&(R=new e(n.getVideoChannelID(),n.getVideoID(),r,a,i)),R.$30.addSubscriptions(n.addListener("enterWatchAndScroll",function(){R&&R.$66(n)}),n.addListener("crossfadeWatchAndScroll",function(){if(R){R.$67();var e=n.getVideoNode();R.$46=R.$59(e),R.$63(n,"user_initiated",!1,!0),n.unmute()}}),n.addListener("exitWatchAndScroll",function(){R&&R.$4&&R.$56()}),n.addListener("VideoChannelController/enterChannel",function(){R&&(R.$37=!0)}),n.addListener("VideoChannelController/exitChannel",function(){R&&(R.$37=!1)})),r==="wns"&&R.$35.push(n),!!o){var t=["beginPlayback","changeVolume","muteVideo","toggleFullscreen","unmuteVideo","VideoChannelController/enterChannel"];t.forEach(function(e){R&&R.$30.addSubscriptions(n.addListener(e,function(t){R&&R.$68(n,e,t)}))})}},e.isActive=function(){return R?R.$4&&!R.$37:!1},e.updateSlidingCalculations=function(){R&&R.$19&&R.$69(R.$19)},e.registerChannelVideoController=function(t){R&&(t.updateSource("watch_scroll"),R.$61(t),R.$62(t),R.$35.push(t))},e.getStoryFetcherData=function(){return R&&R.$70()},t.$70=function(){return{channelInteractionsToRegister:this.$39,channelVideoIndex:this.$36,isFromWNS:!0,rootVideoPlayerController:this.$17,storyFetcher:this.$33,videoPlayerControllers:this.$35}},e.getVideoPlaceholder=function(){return R?R.$18:null},e.getReactContainer=function(){return R?R.$14:null},e.registerChannelInteraction=function(t){R&&R.$39.push(t)},e.onEnterTahoe=function(){R&&R.$71()},t.$71=function(){this.$37=!0,this.$33.abandonRequest()},e.onEnterChannel=function(){R&&R.$72()},t.$72=function(){this.$37=!0,this.$33.abandonRequest();var e=this.$14;if(e){var t=["._23if","._23ig","._452w","._2i7a"];e.getChannelVideoElements().forEach(function(e){t.forEach(function(t){var n=r("DOM").scry(e,t),a=n[0];a&&o("CSS").show(a)});var n=r("DOM").scry(e,"._2337"),a=n[0];a&&(o("CSS").removeClass(a,"_2337"),o("CSS").addClass(a,"_3pay"))})}},e.resetFromChannelView=function(t,n,r){R&&R.$60(t,n,r)},e.startFromChannelView=function(t,n,r,o,a){R&&R.$64(t,n,r,o,a)},t.$68=function(t,n,r){if(this.$4){if(this.$16===t||r&&C.includes(r.reason)||!t.isIntentionallyViewing())return;var e=this.$16.getOption("VideoWithLiveBroadcast","isLive");e?this.$16.mute():this.$16.pause("user_initiated")}if(n==="toggleFullscreen"&&t.isFullscreen()||n==="VideoChannelController/enterChannel")this.$19&&this.$55();else if((n!=="beginPlayback"||r&&r.reason==="user_initiated"||t.getSource()==="permalink")&&t.isIntentionallyViewing()&&!t.isFullscreen()&&!t.getIsInChannel()){var o=this.$73(t.getVideoNode()),a=o.top;(a>window.scrollY||n==="beginPlayback"&&r&&r.reason==="autoplay_initiated")&&this.$69(t)}},t.$74=function(t){this.$37||t!==this.$16||this.$14&&this.$14.setState({endScreenShown:!0,playbackFinished:!0,timeUntilNext:this.$50?S:0})},t.$75=function(t){var e=this;return t.addListener("finishPlayback",function(){return e.$74(t)})},t.$69=function(t){var e=t.getVideoNode();e.offsetParent&&(this.$19=t,this.$25=r("throttle")(this.$76.bind(this),100),window.addEventListener("resize",this.$25),this.$77(e),r("VideoPlayerExperiments").enableClickOnlyWatchAndScroll||this.$78())},t.$76=function(){this.$19&&(this.$77(this.$18||this.$19.getVideoNode()),this.$26&&this.$26())},t.$79=function(t){var e=this.$73(t),n=t.scrollWidth,r=t.scrollHeight,o=y,a=h;ns?u-s+_:_,m=Math.max(m,_));var p=d*a/n;return r("VideoPlayerExperiments").rhcWNSEnabled&&(p=Math.min(p,L())),{hasEnoughSpace:e===!0||u>=l,height:p,left:m,top:c,width:d}},e.hasEnoughSpaceToEnter=function(t){if(!R||!t||!t.getVideoNode())return!1;var e=t.getVideoNode(),n=1,r=parseFloat(e.getAttribute("data-original-aspect-ratio")),o=e.parentElement;(!r||n===0)&&o&&(r=o.scrollWidth,n=o.scrollHeight);var a=y;return ra},t.$77=function(t){this.$22=this.$73(t),this.$27=t.scrollWidth,this.$28=t.scrollHeight;var e=Math.max(this.$27,this.$28);if(e.8:e-nthis.$21||window.scrollY0?this.$88(this.$36):t),this.$49?this.$49.add(t.getVideoID()):this.$49=new Set([t.getVideoID()]),this.$14&&this.$35.length>this.$36&&this.$88(this.$36+1).preload(),this.$15=this.$16.getRootNode();var m=!this.$1&&!((e=this.$52)!=null&&e.disableAlwaysStartMuted)||!this.$16.isMuted(),p=!this.$1||this.$16.isState("playing"),_=this.$1&&this.$16.isState("finished");if(!this.$1||c===!0){if((a!==!0||u)&&(u&&(this.$46=this.$59(this.$15)),this.$53(this.$15)),this.$9){if(this.$8=this.$9,this.$8.videoRootNode){this.$18=this.$89(this.$8.dimensions,this.$17.getVideoNode()),r("DOM").appendContent(this.$8.videoRootNode,this.$18);var f=r("DOM").scry(this.$8.videoRootNode,"._344x"),g=f[0];g&&r("DOM").remove(g)}}else this.$8={dimensions:o("DOMDimensions").getElementDimensions(this.$15),source:this.$16.getSource(),videoRootNode:this.$15.parentNode},this.$18=this.$89(this.$8.dimensions,this.$16.getVideoNode()),r("DOM").insertAfter(this.$15,this.$18);var h=null;this.$9&&(h=this.$9.videoRootNode),!h&&this.$15&&(h=this.$15.parentNode),h&&(this.$13=r("EventListener").listen(h,"click",function(){l.$57(),t.play("user_initiated"),r("setTimeoutAcrossTransitions")(function(){l.$68(t,"beginPlayback",{reason:"user_initiated"})},b)})),this.$16.pause("user_initiated"),this.$16.isPlayerVersion("silvercity")&&this.$16.detachRootNode();var y=this.$7?this.$7.width:this.$6,C=this.$7?this.$7.height:this.$5;this.$16.removeOffsetStylings(),this.$16.setDimensions(y,C),this.$4=!0,c===!0&&this.$90(),this.$14=o("ReactDOM_DEPRECATED").render_DEPRECATED(d.jsx(r("VultureJSDeadComponent.react"),{name:"_renderWatchAndScrollContainer"}),this.$85()),!this.$1&&r("shouldWNSRenderToRHC")()&&r("Arbiter").inform("VideoWatchAndScrollController/init"),_&&this.$74(this.$16)}else this.$16.pause("user_initiated"),this.$65();if(p&&this.$16.play(n),m&&(this.$16.unmute(),this.$16.getVolume()===0)){var v=r("VideoPlayerVolumeSettings").getLastVolumeBeforeMute()||1;this.$16.setVolume(v),this.$16.emit("unmuteVideo")}this.$16.updateSource("watch_scroll");var S=this.$33;(!this.$1||c===!0)&&S&&(S.abandonRequest(),this.$9||S.reset(t.getVideoID(),t.getVideoChannelID()),this.$91(),this.$61(t),this.$62(t)),this.$1=!0,r("shouldWNSRenderToRHC")()&&r("Arbiter").inform("VideoWatchAndScrollController/start")},t.$61=function(n){n.hasOption("WatchAndScroll","isActive")||n.registerOption("WatchAndScroll","isActive",e.isActive)},t.$62=function(t){var e=this;this.$31.addSubscriptions(this.$75(t),t.addListener("VideoChannelController/enterChannel",function(){e.$31.release()}),t.addListener("WatchAndScroll/close",function(){e.$57()}))},t.$92=function(){this.$14&&(this.$14.setState({endScreenShown:!1}),this.$16&&this.$16.play("user_initiated"))},t.$91=function(){var e=this;this.$47&&this.$33.fetchStories(!0,function(t,n){var o=e.$14;if(!(!t||!t.length||!o)){var a=o.getChannelVideoElements().concat(t);o.setState({channelVideoElements:a},function(){r("setTimeoutAcrossTransitions")(function(){e.$88(e.$36+1).preload()})}),e.$38=e.$38.concat(n)}})},t.$88=function(t){var e=this.$14?this.$14.getChannelVideoElements():[],n=[this.$17].concat(this.$35),r=null;return n.forEach(function(n){e[t].contains(n.getRootNode())&&(r=n)}),r||c(0,3965),r},t.$93=function(){if(R&&R.$50)for(var e=0;eh&&(o.height=h,o.width=o.height*n),this.$16.removeOffsetStylings(),this.$16.setDimensions(o.width,o.height),this.$53(t),this.$14&&this.$14.setState({height:o.height,playbackFinished:!1,videoIndex:this.$36,width:o.width},function(){r("shouldWNSRenderToRHC")()&&r("Arbiter").inform("VideoWatchAndScrollController/resize")}),this.$46=o,this.$16.play("autoplay_initiated"),e&&this.$16.mute(),this.$35.length<=this.$36?this.$91():this.$88(this.$36+1).preload()},t.$94=function(){var e=_;return this.$12&&(e+=this.$12.scrollHeight),Math.max(e,g)},t.$53=function(t){if(this.$46){this.$7={height:this.$46.height,left:this.$46.left,top:this.$46.top,width:this.$46.width};return}if(t){var e=t.scrollWidth,n=t.scrollHeight,r=this.$79(t),o=r*n/e;this.$7.height=o,this.$7.width=r}else this.$7={height:this.$5,left:_,top:this.$94(),width:this.$6}},t.$89=function(t,n){var e=r("DOM").create("canvas",{className:"_57n6"});if(e.height=t.height,e.width=t.width,e.getContext&&e.getContext("2d")){if(n.scrollHeight===0){var o=r("DOM").scry(n.parentNode,"._3t5i"),a=o[0];if(a){var i=e.getContext("2d");i.drawImage(a,0,0)}}else if(n instanceof window.HTMLVideoElement){var l=new(r("VideoFrameBuffer"))(e,n);l.updateFrameBuffer()}}var s=r("DOM").create("div");s.appendChild(e);var u=r("DOM").create("i",{className:"_1jto _bsl _3htz"});return s.appendChild(u),s},t.$57=function(){this.$19&&this.$55(),this.$16.pause("user_initiated");var e=this.$93();e&&e.pause("user_initiated"),R&&(R.$50=null),this.$84()},t.$95=function(){this.$16.emit("WatchAndScroll/collapse")},t.$96=function(){var e=this.$89(this.$7,this.$16.getVideoNode(),!0);this.$14&&this.$14.setState({fadeOut:!0,fadeOutPlaceholder:e}),this.$97(this.$17,this.$8),this.$18&&(r("DOM").remove(this.$18),this.$18=null),this.$13&&(this.$13.remove(),this.$13=null)},t.$97=function(t,n,a){var e;t.pause("user_initiated"),t.isPlayerVersion("silvercity")&&t.detachRootNode(),a&&o("ReactDOM_DEPRECATED").unmountComponentAtNode_DEPRECATED(a),n.dimensions&&n.dimensions.width&&n.dimensions.height&&(t.addOffsetStylings(),t.setDimensions(n.dimensions.width,n.dimensions.height)),n.videoRootNode&&r("DOM").appendContent(n.videoRootNode,t.getRootNode()),t.emit("WatchAndScroll/positionUpdated"),t.updateSource(n.source||"inline");var i=this.$73(t.getVideoNode()),l=i.top,s=r("getViewportDimensions")().height;!((e=this.$52)!=null&&e.disableMuteOnExit)&&t.getSource()!=="permalink"&&t.mute(),lwindow.scrollY+s||this.$51===!1?(t.pause("autoplay_initiated"),t.emit("resumeAutoplay")):t.play("user_initiated")},t.$90=function(){var e=this;this.$4||c(0,3966),this.$40||c(0,3967),this.$40.setState({fadeOut:!0}),this.$45=r("setTimeoutAcrossTransitions")(function(){e.$41||c(0,3968),e.$42||c(0,3969),e.$97(e.$41,e.$43,e.$42),e.$44&&(r("DOM").remove(e.$44),e.$44=null),e.$45=null},b)},t.$56=function(){var e=this;this.$4||c(0,3966),this.$14||c(0,3970),!this.$23&&r("shouldWNSRenderToRHC")()&&r("Arbiter").inform("VideoWatchAndScrollController/exit"),this.$35.forEach(function(e){return e.abortLoading()}),this.$96(),this.$45=r("setTimeoutAcrossTransitions")(function(){o("ReactDOM_DEPRECATED").unmountComponentAtNode_DEPRECATED(e.$85()),e.$86()},b)},t.$86=function(){this.$4||c(0,3966),this.$33&&this.$33.abandonRequest(),this.$36=0,this.$1=!1,this.$31.release(),this.$31=new(r("SubscriptionsHandler")),this.$8={},this.$16=null,this.$17=null,this.$4=!1,this.$35=[],this.$38=[],this.$14=null,r("clearTimeout")(this.$45),this.$45=null,this.$41&&this.$42&&this.$43&&this.$97(this.$41,this.$43,this.$42),this.$41=null,this.$43={},this.$44&&(r("DOM").remove(this.$44),this.$44=null),r("VideoAutoplayControllerX").setShouldAutoplay(!0),this.$2=null,this.$23&&(this.$46=this.$59(this.$23.getVideoNode()),this.$67(),this.$63(this.$23,"user_initiated"),this.$23=null),this.$29=!1,this.$46=null},t.$84=function(){this.$17&&this.$17.emit("exitWatchAndScroll");var e=this.$93();e&&e.emit("exitWatchAndScroll")},t.$98=function(t){if(t>0&&this.$35.length<=this.$36){r("shouldWNSRenderToRHC")()||this.$57();return}this.$36+=t,this.$65()},t.$99=function(){var e=this.$93();e&&(this.$50=null,e.emit("crossfadeWatchAndScroll"),this.$51===!0?e.play("autoplay_initiated"):(e.preload(),e.emit("showOverlay")))},t.$100=function(){this.$19&&this.$55();var e=this.$16.getOption("VideoWithLiveBroadcast","isLive");e||(this.$24=this.$16.isState("playing"),this.$16.pause("user_initiated"))},t.$101=function(){var e=this.$16.getOption("VideoWithLiveBroadcast","isLive");e||(this.$24===!0&&this.$16.play("user_initiated"),this.$24=null)},t.$102=function(){var e=this.$16.getOption("VideoWithLiveBroadcast","isLive");this.$19||e||(this.$16.isState("playing")?this.$16.pause("user_initiated"):(this.$16.isState("paused")||this.$16.isState("finished")||this.$16.isState("ready"))&&this.$16.play("user_initiated"))},t.$87=function(t){var e=this;this.$16!==t&&(r("VideoPlayerExperiments").rhcWNSEnabled&&t.addListener("WatchAndScroll/collapse",function(){if(t!=e.$16){t.removeCurrentListener();return}r("shouldWNSRenderToRHC")()&&r("Arbiter").inform("VideoWatchAndScrollController/collapse")}),this.$16=t)},t.pauseActiveVideo=function(t){this.$16&&this.$16.pause(t)},e.pauseActiveVideo=function(t){t===void 0&&(t="user_initiated"),R&&R.pauseActiveVideo(t)},t.playActiveVideo=function(t){this.$16&&this.$16.play(t)},t.registerUpNextUnit=function(t,n){var e=r("DOM").find(t,"._3iqr");!R||!e||(R.$50=t,R.$51=n,r("EventListener").listen(e,"click",function(e){if(R){var t=R.$93();t&&(e.preventDefault(),e.stopPropagation(),R.$50=null,t.emit("crossfadeWatchAndScroll"),t.play("user_initiated"))}}))},e.playActiveVideo=function(t){t===void 0&&(t="user_initiated"),R&&R.playActiveVideo(t)},t.$103=function(t){this.$7=t,this.$14&&!this.$14.getFadeOutStatus()&&(this.$16.removeOffsetStylings(),this.$16.setDimensions(t.width,t.height),this.$16.emit("WatchAndScroll/positionUpdated"))},t.$104=function(){var e=r("DOM").create("div");return r("shouldWNSRenderToRHC")()?r("ifRequired")("RHCVideoWNSController",function(t){return t.mount(e)}):r("DOM").appendContent(document.body,e),e},t.$85=function(){return this.$2||(this.$2=this.$104()),this.$2},e})();l.default=E}),98); __d("XBasicFBNuxGenShouldShowControllerRouteBuilder",["jsRouteBuilder"],(function(t,n,r,o,a,i,l){var e=r("jsRouteBuilder")("/ajax/megaphone/should_show_fbnux/",Object.freeze({should_log_view:!0}),void 0),s=e;l.default=s}),98); __d("VideoControls",["csx","cx","Arbiter","AsyncRequest","Bootloader","CSS","DeferredComponent.react","EventListener","FullScreen","LiveRewindUtils","LiveVideoPlayerActions","Parent","PlaybackSpeedExperiments","ReactDOM","SubscriptionsHandler","VideoPlayerExperiments","VideoPlayerUIComponentDrawer","VideoWatchAndScrollController","XBasicFBNuxGenShouldShowControllerRouteBuilder","cancelAnimationFrame","containsNode","destroyOnUnload","getActiveElement","logVideosClickTracking","react","requestAnimationFrame","shouldWNSRenderToRHC","throttle"],(function(t,n,r,o,a,i,l,s,u){var e,c=e||(e=o("react")),d=new Set(["embedded","embedded_video","embedded_video_preview","embedded_page_plugin","embedded_video_from_ufi"]),m=200,p=4936,_=36,f=5e3,g=(function(){function e(e,t,n){var a=this,i,l;this.$16={current:null},this.$133=function(){a.$11=!1,a.scheduleRenderReactComponent()},this.$15=e,this.$16.current=this.$15,this.$91=t,this.$124=o("ReactDOM").createRoot(t),this.$10=0,this.$84=0,this.$83=0,this.$29=0,this.$123=!1,this.$92=!1,this.$50=n.hideOnEvents.autoplay,this.$51=n.hideOnEvents.finish,this.$43=n.hideOnEvents.pause,this.$105=n.unhideOnHover,this.$44=n.hidePlaybackControl,this.$45=n.isWatchIconEligible,this.$46=n.hidePlaybackScrubber,this.$106=n.showPlaybackRateControl,this.$109=n.showVideoSliderWarningTooltip,this.$47=n.hideRemainingTime,this.$48=n.hideSettings,this.$49=n.hideMoreSettingsLink,this.$120=n.useTwoRows,this.$57=n.isCommentAttachment,this.$85=n.pointsOfInterestConfig||{},this.$18=n.displayElapsedTime||!1,this.$19=n.showControlsOnFullScreenOnly||!1,this.$20=n.displayMilliseconds||!1,this.$21=n.displayDurationLimit,this.$22=n.displayTimeOffset,this.$1=n.adBreaks,this.$2=n.adBreaksDisableReasons,this.$87=(i=n.pollTimestamps)!=null?i:[],this.$70=!1,this.$102=n.shouldShowWNSNUX,this.$11=!1,this.$38=!1,this.$52=n.insertedAdBreaks,this.$53=n.isAdBreakDisabled,this.$54=n.isAdBreakInsertionWithoutGapRule,this.$103=(l=n.showEligibleStarsCueTimeSegments)!=null?l:!1,this.$104=n.selectedStarsCueTimestamp,this.$64=n.isLiveRewindEnabled||this.$15.isFBWasLive(),this.$65=this.$15.isFBWasLive(),this.$77=null,this.$107=n.showPlayButtonForLive,this.$121=n.videoClipInfo,this.$98=!!n.videoClipInfo,this.$13=null;var s=e.isHtml5Player(),u=e.getPlayerSuborigin();this.$40=n.showButtons.watchandscroll&&s&&u!=="topic_live",this.$3=n.showButtons.casting,this.$4=n.showButtons.fullscreen&&!!r("FullScreen").isSupported(),this.$5=n.showButtons.audioButton,this.$81=n.permalinkURL,this.$99=n.shouldShowInlineCopyLinkOption,this.$100=n.shouldShowInlineVideoReportOption,this.$101=n.shouldShowPermalinkButton,this.$62=n.isLive,this.$63=n.isGamingVideo,this.$71=n.isSphericalVideo,this.$30=n.forceVisible||!1,this.$31=n.forceVisibleOnMount||!1,this.$42=n.hideGradient||!1,this.$118=n.useDarkTheme||!1,this.$55=!1,this.$41=!1,this.$68=!1,this.$69=!1,this.$108=n.showQualitySelector,this.$88=n.qualitySelectorMinStreams,this.$75=function(){return a.liveRewindToBeginning()},this.$73=function(){return a.liveRewindSeekBack()},this.$74=function(){return a.liveRewindSeekForward()},this.$76=function(){return a.liveRewindToLive()},this.$26=function(){return a.enterWatchAndScroll()},this.$25=function(){return a.enterTahoe()},this.$82=function(){return a.play()},this.$80=function(){return a.pause()},this.$93=function(){return a.scrubBegin()},this.$94=function(e){return a.scrubEnd(e)},this.$110=function(){return a.startCasting()},this.$111=function(){return a.stopCasting()},this.$113=function(){return a.toggleFullscreen()},this.$114=function(){return a.toggleHD()},this.$115=function(){return a.toggleHLS()},this.$116=function(){return a.toggleMuted()},this.$117=function(){return a.toggleCaptions()},this.$12=function(e){return a.changeVolume(e)},this.$97=function(e){return a.setVideoPlaybackRate(e)},this.$96=function(e){return a.setPreferredVideoQuality(e)},this.$24=this.$15.registerDrawer(r("VideoPlayerUIComponentDrawer").priorities.EmbeddedControls,_),this.$79=n.needsInitialVideoInfoUpdate,this.$17=this.$15.getSource(),this.$33=n.gamesVideoClipButtonEnabled,this.$34=!!n.gamesVideoCreatorClippingGK&&!d.has(this.$17),this.$35=n.gamesDefaultClipLengthInSec,this.$7=n.annotatedMomentsOfInterest||{},this.$58=n.isEmbeddedPlayerRedesignEnabled,this.$119=n.useLargerGradient||!1,r("VideoPlayerExperiments").persistentWNSEnabled||r("destroyOnUnload")(function(){var e;(e=a.$124)==null||e.unmount()});var c=this.$15.getRootNode();r("EventListener").listen(this.$91,"focusin",function(){a.$28=!0,a.scheduleRenderReactComponent()}),r("EventListener").listen(this.$91,"focusout",function(){r("containsNode")(a.$91,r("getActiveElement")())||(a.$28=!1,a.scheduleRenderReactComponent())}),r("EventListener").listen(c,"click",function(e){if(a.$28&&e.detail){var t=r("getActiveElement")();t&&t.blur()}}),r("EventListener").listen(c,"mouseleave",function(){a.$78=!1,a.scheduleRenderReactComponent()}),r("EventListener").listen(c,"mouseenter",function(){a.$78=!0,a.scheduleRenderReactComponent()}),this.$15.registerOption("VideoControls","acquireForceHideLock",function(){return a.$29++,{release:function(){a.$29--,a.scheduleRenderReactComponent()}}}),this.$15.registerOption("VideoControls","hideOnFinish",function(){return a.$51},function(e){a.$51=e}),this.$15.registerOption("VideoControls","hideOnPause",function(){return a.$43},function(e){a.$43=e}),this.$15.registerOption("VideoControls","unhideOnHover",function(){return a.$105},function(e){a.$105=e}),this.$15.registerOption("VideoControls","hidePlaybackControl",function(){return a.$44},function(e){a.$44=e,a.scheduleRenderReactComponent()}),this.$15.registerOption("VideoControls","available",function(){return!0}),this.$15.registerOption("VideoControls","areControlsVisible",function(){return a.areControlsVisible()}),["mousemove","mousedown","keydown"].forEach(function(e){r("EventListener").listen(a.$15.getRootNode(),e,r("throttle")(function(){return a.flashControls()},200))}),this.$112=new(r("SubscriptionsHandler")),this.scheduleRenderReactComponent();var m=["changeVolume","loadedSubtitles","captionsAvailabilityChanged","muteVideo","pausePlayback","stateChange","toggleFullscreen","toggleSubtitles","updateMetadata","unmuteVideo","qualityChange","casting/receiverStateChange","casting/supportStateChange","casting/castingStateChange","casting/playStateChange"];m.forEach(function(e){return a.$112.addSubscriptions(a.$15.addListener(e,function(){return a.scheduleRenderReactComponentWithVideoInfoUpdate()}))}),this.$112.addSubscriptions(this.$15.addListener("pauseRequested",function(e){a.$125(e)}),this.$15.addListener("playRequested",function(e){a.$126(e)}),this.$15.addListener("beginPlayback",function(){return a.$127()}),this.$15.addListener("updateStatus",function(e){if(a.$64){var t=a.$15.getSeekableRanges();if(a.$65&&o("PlaybackSpeedExperiments").enableWwwPlaybackSpeedControl()){var n,r,i=(n=a.$15.getCurrentTimePosition())!=null?n:0,l=t!=null&&(r=t.end(t.length()-1))!=null?r:0;i>0&&l>0&&i>=l&&a.liveRewindToLive()}t&&(a.$72=o("LiveRewindUtils").getRelativePosition(e.position,t))}a.$84=e.position,a.$22!=null&&(a.$84-=a.$22),a.scheduleRenderReactComponent()}),this.$15.addListener("casting/updateStatus",function(e){if(a.$64){var t=a.$15.getSeekableRanges();t&&(a.$72=o("LiveRewindUtils").getRelativePosition(e.position,t))}a.$84=e.position,a.scheduleRenderReactComponent()}),this.$15.addListener("seekRangeChanged",function(){if(a.$64){var e=a.$15.getSeekableRanges();e&&(a.$83=o("LiveRewindUtils").getTotalDuration(e))}}),this.$15.addListener("updateBuffer",function(e){a.$10=e.duration+e.offset,a.scheduleRenderReactComponent()}),this.$15.addListener("optionsChange",function(){a.$128()}),this.$15.addListener("resumeAutoplay",function(){a.$129(),a.scheduleRenderReactComponentWithVideoInfoUpdate()}),this.$15.addListener("turnOffAutoplay",function(){a.$56=!1}),this.$15.addListener("LivePlayer/isRewoundChanged",function(){var e=a.$15.getOption("LivePlayer","isRewound");a.$65!==e&&(a.$65=e,a.scheduleRenderReactComponent())}),this.$15.addListener("blockAudio",function(e){e||(a.$55=!0)}),this.$15.addListener("unblockAudio",function(e){e||(a.$55=!1)})),this.$102&&this.$112.addSubscriptions(this.$15.addListener("VideoWithStallRecovery/bufferingStateOn",function(){a.$38||a.$130(p)}),this.$15.addListener("VideoWithStallRecovery/bufferingStateOff",function(){a.$11=!1})),this.$112.addSubscriptions(this.$15.addListener("finishPlayback",function(){a.scheduleRenderReactComponent(!0)})),this.$128()}var t=e.prototype;return t.$131=function(){this.$95=this.$15.getOption("VideoScrubberPreviewComponent","scrubberPreviewSprites"),this.$37=this.$15.getOption("VideoScrubberPreviewComponent","hasPreviewThumbnails"),this.$86=this.$15.getOption("VideoScrubberPreviewComponent","previewThumbnailInformation")},t.$129=function(){this.$56=this.$15.getOption("FeedAutoplay","isAutoplaying")},t.$128=function(){this.$129(),this.$131()},t.$125=function(t){var e=this;this.scheduleRenderReactComponentWithVideoInfoUpdate(),this.$62&&this.$64&&t==="user_initiated"&&!this.$65&&this.$77===null&&(this.$77=window.setTimeout(function(){e.$77=null,o("LiveVideoPlayerActions").setIsRewound(e.$15,!0)},m))},t.$126=function(t){this.$62&&this.$64&&t==="user_initiated"&&this.$77!==null&&(window.clearTimeout(this.$77),this.$77=null)},t.$127=function(){this.flashControls(),this.$132(),this.$67=!0,this.scheduleRenderReactComponentWithVideoInfoUpdate()},t.$130=function(t){var e=this,n=r("XBasicFBNuxGenShouldShowControllerRouteBuilder").buildUri({nux_id:t});new(r("AsyncRequest"))().setURI(n).setMethod("GET").setReadOnly(!0).setHandler(function(t){var n=t.getPayload();e.$11=n.should_show_nux}).send()},t.updateConfig_DEPRECATED=function(t,n){this.$81=t.permalinkURL||null,this.$3=t.showButtons?t.showButtons.casting:!1,this.$62=!!t.isLive,this.$1=t.adBreaks||null,this.$119=t.useLargerGradient||!1,this.$106=t.showPlaybackRateControl||!1,this.scheduleRenderReactComponent()},t.updateAdBreaksConfig=function(t){this.$52=t.insertedAdBreaks,this.$53=t.isAdBreakDisabled,this.$54=t.isAdBreakInsertionWithoutGapRule,this.$30=!t.isPreviewingAdBreak,this.scheduleRenderReactComponent()},t.updateStarsCueConfig=function(t){this.$104=t.selectedStarsCueTimestamp,this.scheduleRenderReactComponent()},t.updateTwoRowsConfig=function(t){this.$120=t.useTwoRows,this.$57=t.isCommentAttachment,this.scheduleRenderReactComponent()},t.flashControls=function(){var e=this;this.$89||(this.$89=!0,this.scheduleRenderReactComponent()),window.clearTimeout(this.$27),this.$27=window.setTimeout(function(){e.$27=null,e.$89=!1,e.scheduleRenderReactComponent()},3e3)},t.$132=function(){var e=this;this.$31&&(window.clearTimeout(this.$32),this.$32=window.setTimeout(function(){e.$32=null,e.$31=!1,e.scheduleRenderReactComponent()},f))},t.areControlsVisible=function(){var e=this;if(!this.areControlsEnabled())return!1;if(this.$30||this.$11||this.$68||this.$69||this.$31)return!0;if(this.$15.isState("playing"))return this.$98?((this.$13==null||this.$13===0)&&(this.$13=window.setTimeout(function(){e.$98=!1},5e3)),!0):this.$50&&this.$56?!1:this.$28||this.$78&&this.$89;if(this.$15.isState("finished")){var t=this.$15.getSource()==="tahoe";return this.$15.isFullscreen()||t||!this.$51}else if(this.$15.isState("paused"))return this.$15.isFullscreen()||!this.$43||this.$105&&(this.$28||this.$78&&this.$89);return!1},t.areControlsEnabled=function(){var e=this.$15.getSource()==="tahoe";return!(this.$29>0||this.$15.isState("loading")||this.$15.isState("fallback")||this.$15.getOption("SottoPaywall","enable")||this.$15.isState("finished")&&this.$51&&!this.$15.isFullscreen()&&!e)},t.scheduleRenderReactComponentWithVideoInfoUpdate=function(){this.$79=!0,this.scheduleRenderReactComponent(!0)},t.shouldRenderComponent=function(){return this.$15.isState("loading")||this.$15.isState("fallback")?!1:this.areControlsVisible()?(this.$41=!1,!0):this.$41?!1:(this.$41=!0,!0)},t.scheduleRenderReactComponent=function(t){var e=this;t===void 0&&(t=!1),!(!t&&!this.shouldRenderComponent())&&(r("cancelAnimationFrame")(this.$90),this.$90=r("requestAnimationFrame")(function(){return e.renderReactComponent()}))},t.renderReactComponent=function(){var e=this;if(r("VideoPlayerExperiments").delayVideoControlRenderForApiReady&&this.$15.getState()==="loading"&&!this.$92){this.$92=!0,this.$15.runOnApiReady(function(){e.scheduleRenderReactComponent()});return}this.$79&&this.$134();var t=this.areControlsVisible();this.$123!==t&&(this.$15.emit("VideoControls/visibilityUpdate",{areControlsVisible:t}),t?this.$24.reserve():this.$24.release(),this.$15.isState("destroyed")||o("CSS").conditionClass(this.$15.getRootNode(),"_302m",!t)),this.$123=t;var n=this.$15.getAvailableVideoQualities(),i=this.$15.getPreferredVideoQuality(),l=this.$15.getSelectedVideoQuality(),s=this.$15.canAutoSelectVideoQuality(),u=this.$15.getStreamingFormat(),m=this.$70;this.$70=r("VideoPlayerExperiments").slidingWNSv3&&this.$40&&r("VideoWatchAndScrollController").isSlidingEnabled(this.$15),m!==this.$70&&this.$15.logEvent(this.$70?"watch_and_scroll_icon_highlighted":"watch_and_scroll_icon_unhighlighted");var p=this.$15.getSource()==="tahoe",_=this.$15.getSource()==="watch_scroll",f=this.$15.isFBIsLiveTemplated()||this.$15.isFBWasLive(),g=this.$64&&f&&(this.$15.isFBWasLive()||this.$15.getState()!=="finished"),h=c.jsx(r("DeferredComponent.react"),{deferredPlaceholder:c.jsx("span",{}),deferredComponent:function(t){return a(["VideoControls.react"],t)},allowCasting:this.$3,allowFullscreen:this.$4,allowAudioButton:this.$5,annotatedMomentsOfInterest:this.$7,areCaptionsActive:this.$8,areCaptionsAutogenerated:this.$9,areHLSActive:this.$6,bufferedPosition:this.$10,finishedPlaying:this.$15.isState("finished"),hasFoundReceiver:this.hasFoundReceiver(),hasHD:this.$36,hasCaptions:this.$39,hasWatchAndScroll:this.$40&&!this.getIsInChannel(),hidden:!this.areControlsEnabled(),hideGradient:this.$42,isAudioBlocked:this.$55,isCasting:this.isCasting(),isCastingSupported:this.isCastingSupported(),isCommentAttachment:this.$57,isEmbedded:d.has(this.$17),isEmbeddedPlayerRedesignEnabled:this.$58,isFullscreen:this.$59,isHD:this.$60,isInline:this.$61,isInTahoe:p,isInWatchAndScroll:_,isLive:this.$62,isLiveRewindEnabled:g,isLiveRewound:this.$65,isFBWasLive:this.$15.isFBWasLive(),isSphericalVideo:this.$71,isMuted:this.$66,isPlaying:this.$67,isSidePaneOpen:this.getIsInChannel()&&!!o("Parent").bySelector(this.$91,"._57bj"),isSlidingWNSEligible:this.$70,interestLevels:null,liveRelativePlaybackPosition:this.$72,drawer:this.$24,onActionsClick:function(){e.$69=!e.$69},onAnnotatedMomentOfInterestSelect:function(n){e.$15.seek(n)},onEnterWatchAndScroll:this.$26,onEnterTahoe:this.$25,doesFullscreenEnterTahoe:this.$23,onLiveRewindToBeginning:this.$75,onLiveRewindSeekBack:this.$73,onLiveRewindSeekForward:this.$74,onLiveRewindToLive:this.$76,onWNSNUXClose:this.$133,onClipVideo:this.$14,onPause:this.$80,onPlay:this.$82,onScrubBegin:this.$93,onScrubEnd:this.$94,onSetVideoPlaybackRate:this.$97,onSettingsClick:function(){e.$68=!e.$68},onSidePaneToggle:function(){r("Arbiter").inform("VideoChannelView/sidePaneToggle",{})},onStartCast:this.$110,onStopCast:this.$111,onToggleFullscreen:this.$113,onToggleHD:this.$114,onToggleHLS:this.$115,onToggleMuted:this.$116,onToggleCaptions:this.$117,onVolumeChange:this.$12,permalinkURL:this.$81,showInlineCopyLinkOption:this.$99,showInlineVideoReportOption:this.$100,showPermalinkButton:this.$101,playbackDuration:this.$83,playbackPosition:this.$84,transparent:!t,hidePlaybackControl:this.$44,isWatchIconEligible:this.$45,hidePlaybackScrubber:this.$46,showPlaybackRateControl:this.$106,showPlayButtonForLive:this.$107,showVideoSliderWarningTooltip:this.$109,hideRemainingTime:this.$47,hideSettings:this.$48,hideMoreSettingsLink:this.$49,useTwoRows:this.$120,volume:this.$122,scrubberPreviewSprites:this.$95,hasScrubberPreview:this.$37&&!_,previewThumbnailInformation:this.$86,availableQualities:n,selectedQuality:l,preferredQuality:i,canAutoSelectVideoQuality:s,onSelectQuality:this.$96,showQualitySelector:this.$108,qualitySelectorMinStreams:this.$88,streamingFormat:u,onPointOfInterestSelect:this.$85.onPointOfInterestSelect,currentPointOfInterest:this.$85.currentPointOfInterest,pointsOfInterest:this.$85.pointsOfInterest,showPointOfInterestTimestamps:this.$85.showPointOfInterestTimestamps,displayElapsedTime:this.$18,showControlsOnFullScreenOnly:this.$19,displayMilliseconds:this.$20,adBreaks:this.$1,pollTimestamps:this.$87.filter(function(t){return t<=e.$83}),vpcID:this.$15.getVideoPlayerID(),adBreaksDisableReasons:this.$2,showSidePaneToggle:!1,showWNSNUX:this.$11&&this.areControlsEnabled()&&this.$102,insertedAdBreaks:this.$52,isAdBreakDisabled:this.$53,isAdBreakInsertionWithoutGapRule:this.$54,showEligibleStarsCueTimeSegments:this.$103,selectedStarsCueTimestamp:this.$104,useDarkTheme:this.$118,videoID:this.$15.getVideoID(),videoClipInfo:this.$121?this.$121:void 0,gamesVideoClipButtonEnabled:this.$33,gamesVideoCreatorClipping:this.$34,gamesDefaultClipLengthInSec:this.$35,useLargerGradient:this.$119});o("ReactDOM").flushSync(function(){var t;(t=e.$124)==null||t.render(h)}),this.$11&&this.areControlsEnabled()&&this.$102&&(this.$38=!0)},t.$134=function(){var e=this.$15.getVideoInfo_DEPRECATED();if(e){if(this.$8=this.$15.areSubtitlesActive(),this.$9=this.$15.areSubtitlesAutogenerated(),this.$39=this.$15.hasSubtitles(),this.$36=e.hasHD,this.$60=e.isHD,this.$66=e.isMuted,this.$67=e.isPlaying||this.isCastPlaying(),this.$64){var t=this.$15.getSeekableRanges();t&&(this.$83=o("LiveRewindUtils").getTotalDuration(t))}else this.$21!=null?this.$83=Math.min(e.playbackDuration,this.$21):this.$83=e.playbackDuration;this.$122=e.volume;var n=this.$15.getOption("CommercialBreakVideoAdOverlay","videoController");n?this.$59=n.isFullscreen():this.$59=this.$15.isFullscreen();var r=this.$15.getPlayerOrigin();switch(this.$15.getSource()){case"inline":case"discover":case"continue_watching_recommendation":case"topic_live":case"entry_point":this.$61=!0;break;case"permalink":this.$61=r==="video_home";break;case"games_video_home_hero":this.$61=r==="games_video_hub";break;default:this.$61=!1;break}this.$62=e.isLiveStream,this.$6=e.areHLSActive,this.$79=!1,this.$23=this.$15.listeners("enterTahoe").length!==0}},t.toggleHD=function(){this.$15.toggleHD()},t.setPreferredVideoQuality=function(t){t!=null&&t!==""?this.$15.setPreferredVideoQuality(t):this.$15.unsetPreferredVideoQuality()},t.toggleHLS=function(){this.$15.switchToStreamType("hls")},t.enterWatchAndScroll=function(){r("shouldWNSRenderToRHC")()?this.$15.emit("crossfadeWatchAndScroll"):this.$15.emit("enterWatchAndScroll")},t.enterTahoe=function(){var e=this;this.$15.getSource()==="watch_scroll"?(this.$15.logEvent("watch_and_scroll_channel_entered"),r("Bootloader").loadModules(["TahoeController","URI"],function(t,n){var o=new n(e.$15.getVideoURL()),a=babelHelpers.extends({},n.getRequestURI().getQueryData(),{ref:"tahoe"});r("VideoWatchAndScrollController").onEnterTahoe(),t.openFromVideoPlayer(e.$15,o.setQueryData(a),e.$15.getVideoChannelID(),"wns")},"VideoControls")):this.$15.emit("enterTahoe")},t.scrubBegin=function(){this.isCasting()||this.$15.pause("seek_initiated")},t.scrubEnd=function(t){var e=t;if(this.$64){var n=this.$15.getSeekableRanges();if(n){var r=this.$72;this.$72=e,e=o("LiveRewindUtils").getAbsolutePosition(e,n);var a=o("LiveRewindUtils").getLiveHeadTimestamp(n),i=a-e<1;o("LiveVideoPlayerActions").setIsRewound(this.$15,!i),o("LiveRewindUtils").logLiveRewindEvent("scrubber",this.$15,r,null,null,e)}}this.$22!=null&&(e+=this.$22),this.$15.seek(e,"user_initiated"),this.$84=e;var l=this.$67||this.$15.isState("finished")&&!this.$51;!this.isCasting()&&l&&this.$15.play("seek_initiated")},t.toggleMuted=function(){this.$15.isMuted()?(r("logVideosClickTracking")(this.$15.getVideoNode()),this.$15.unmute()):this.$15.mute()},t.toggleFullscreen=function(){this.$15.isFullscreen()||r("logVideosClickTracking")(this.$15.getVideoNode()),this.$15.toggleFullscreen()},t.toggleCaptions=function(){this.$15.toggleSubtitles(),this.scheduleRenderReactComponent()},t.changeVolume=function(t){this.$15.setVolume(t)},t.liveRewindToBeginning=function(){o("LiveRewindUtils").goToBeginning(this.$15)},t.liveRewindSeekBack=function(){o("LiveRewindUtils").seekBack(this.$15)},t.liveRewindSeekForward=function(){o("LiveRewindUtils").seekForward(this.$15)},t.liveRewindToLive=function(){o("LiveRewindUtils").goToLive(this.$15)},t.play=function(){r("logVideosClickTracking")(this.$15.getVideoNode()),this.isCasting()?this.$15.setOption("casting","isPlaying",!0):this.$15.play("user_initiated"),this.$62&&this.$64&&o("LiveRewindUtils").logLiveRewindEvent("play",this.$15,this.$72,null,this.$72,null)},t.pause=function(){this.isCasting()?this.$15.setOption("casting","isPlaying",!1):this.$15.pause("user_initiated"),this.$62&&this.$64&&(o("LiveVideoPlayerActions").setIsRewound(this.$15,!0),o("LiveRewindUtils").logLiveRewindEvent("pause",this.$15,this.$72,null,this.$72,null))},t.setVideoPlaybackRate=function(t){this.$15.setPlaybackRate(t)},t.startCasting=function(){this.$15.setOption("casting","isCasting",!0)},t.stopCasting=function(){this.$15.setOption("casting","isCasting",!1)},t.isCastPlaying=function(){return this.$15.getOption("casting","isPlaying")},t.hasFoundReceiver=function(){return this.$15.getOption("casting","hasFoundReceiver")},t.isCasting=function(){return this.$15.getOption("casting","isCasting")},t.isCastingSupported=function(){return this.$15.getOption("casting","isSupported")},t.updatePointsOfInterestConfig=function(t){Object.assign(this.$85,t),this.scheduleRenderReactComponent()},t.updateDisplayElapsedTime=function(t){this.$18=t,this.scheduleRenderReactComponent()},t.updateDisplayTimeRangeConfig=function(t){this.$21=t.displayDurationLimit,this.$22=t.displayTimeOffset,this.scheduleRenderReactComponentWithVideoInfoUpdate()},t.getIsInChannel=function(){return this.$15.getIsInChannel()},t.$135=function(){var e=[this.$13,this.$27,this.$32,this.$77];e.forEach(function(e){return window.clearTimeout(e)}),this.$13=null,this.$27=null,this.$32=null,this.$77=null},t.unregister=function(){r("cancelAnimationFrame")(this.$90),this.$112.release(),this.$16.current=null,this.$135()},e})();l.default=g}),98); __d("VideoErrorOverlay",["SphericalVideoFallback"],(function(t,n,r,o,a,i,l){function e(e,t){"textContent"in e&&(e.textContent=t),e.innerText=t}function s(e){return"textContent"in e?e.textContent:e.innerText?e.innerText:""}var u=(function(){function t(e,t,n,r,a){var i=this;this.$1=t,this.$2=n,this.$3=r,e.registerOption("VideoErrorOverlay","title",function(){return i.getTitle()},function(e){return i.setTitle(e)}),e.registerOption("VideoErrorOverlay","message",function(){return s(i.$2)},function(e){return i.setMessage(e)}),e.registerOption("VideoErrorOverlay","linkURL",function(){return i.getLinkURL()},function(e){return i.setLinkURL(e)}),e.registerOption("VideoErrorOverlay","linkTitle",function(){return i.getLinkTitle()},function(e){return i.setLinkTitle(e)}),e.registerOption("VideoErrorOverlay","available",function(){return!0}),a&&o("SphericalVideoFallback").setup(e,a)}var n=t.prototype;return n.getTitle=function(){return this.$1?s(this.$1):""},n.setTitle=function(n){this.$1&&e(this.$1,n)},n.setMessage=function(n){e(this.$2,n)},n.getLinkURL=function(){return this.$3.href},n.setLinkURL=function(t){this.$3.href=t},n.getLinkTitle=function(){return s(this.$3)},n.setLinkTitle=function(n){e(this.$3,n)},t})();l.default=u}),98); __d("VideoHomeEvents",[],(function(t,n,r,o,a,i){var e=Object.freeze({SESSION_PREFETCH:"session_prefetch",SESSION_START:"session_start",SESSION_PAUSE:"session_pause",SESSION_RESUME:"session_resume",SESSION_END:"session_end",FOLLOW:"follow",UNFOLLOW:"unfollow",SUBSCRIBE:"subscribe",SUBSCRIBE_SOME:"subscribe_some",UNSUBSCRIBE:"unsubscribe",PIN_TOPIC:"pin_topic",UNPIN_TOPIC:"unpin_topic",MARK_VISIT:"mark_visit",MARK_VISIT_WITH_BADGE:"mark_visit_with_badge",MARK_VISIT_WATCHLIST:"mark_visit_watchlist",MARK_SESSION_END:"mark_session_end",MARK_FEED_SESSION_END:"mark_feed_session_end",SECTION_PAGINATION_ERROR:"section_pagination_error",AFTER_PARTY_REACT:"after_party_react",AFTER_PARTY_IMPRESSION:"after_party_impression",SAW_SUPER_BADGE:"saw_super_badge",ENABLE_WATCHLIST_NOTIF:"enable_watchlist_notif",DISABLE_WATCHLIST_NOTIF:"disable_watchlist_notif",VISIT_WATCHLIST_SETTING:"visit_watchlist_setting",VISIT_WATCHLIST_ADD_PAGES:"visit_watchlist_add_pages",VISIT_WATCHLIST_MANAGE:"visit_watchlist_manage",VISIT_WATCH_MANAGE:"visit_watch_manage",VISIT_NOTIF_CONTROLS:"visit_notif_controls",VISIT_VOD_NOTIF_CONTROLS:"visit_vod_notif_controls",VISIT_LIVE_NOTIF_CONTROLS:"visit_live_notif_controls",UNHIDE_ALL_IN_WATCHLIST:"unhide_all_in_watchlist",UNHIDE_PAGE_IN_WATCHLIST:"unhide_page_in_watchlist",HIDE_ALL_IN_WATCHLIST:"hide_all_in_watchlist",HIDE_PAGE_IN_WATCHLIST:"hide_page_in_watchlist",OPTED_OUT_WATCHLIST_BUSINESS_PAGES:"opted_out_watchlist_business_pages",OPTED_OUT_BUSINESS_PAGE_ON_FOLLOW:"opted_out_business_page_on_follow",FEED_PAGE_VISIT:"feed_page_visit",LIVE_REMINDER:"live_reminder",HIDE:"hide",SEE_MORE:"see_more",SEE_LESS:"see_less",SEE_MORE_FAIL:"see_more_fail",SEE_LESS_FAIL:"see_less_fail",UNDO_SEE_MORE:"undo_see_more",UNDO_SEE_LESS:"undo_see_less",UNDO_SEE_MORE_FAIL:"undo_see_more_fail",UNDO_SEE_LESS_FAIL:"undo_see_less_fail",DISPLAY_BADGE_ON_TAB:"display_badge_on_tab",REFINEMENT_SELECT:"refinement_select",REFINEMENT_UNSELECT:"refinement_unselect",VIDEO_DELETED:"video_deleted",VIDEO_STATUS_CHANGED:"video_status_changed",VIDEO_PREVIEW_LOAD:"video_preview_load",NAVIGATION:"navigation",OPEN_DIVEBAR:"open_divebar",CONTENT:"content",PULL_TO_REFRESH:"pull_to_refresh",HANDLING_APNS:"handling_apns",AUDIO_STATE:"audio_state",BADGE_FETCHED:"badge_fetched",METADATA_FETCHED:"metadata_fetched",DATA_PREFETCH:"data_prefetch",UNIT_PREFETCH:"unit_prefetch",GRAPHQL_BADGE_UPDATE_SUBSCRIPTION:"graphql_badge_update_subscription",BADGE_COUNT_FETCH_ON_BADGE_PUSH:"badge_count_fetch_on_badge_push",EMPTY_UNIT:"empty_unit",EMPTY_PAGINATION:"empty_pagination",INVALID_UNIT:"invalid_unit",INVALID_CHANNEL_TYPE:"invalid_channel_type",NO_ITEMS_WITH_HAS_NEXT_PAGE:"no_items_with_has_next_page",SKIPPED_NOT_LIVE_IMPRESSION:"skipped_not_live_impression",COLLAPSED_IMPRESSION:"collapsed_impression",COLLAPSED_NO_VIDEO:"collapsed_no_video",SKIPPED_MF_LIVE_MISMATCH_IMPRESSION:"skipped_mf_live_mismatch_impression",COLLAPSED_WAS_LIVE_LIMIT_IMPRESSION:"collapsed_was_live_limit_impression",IMPRESSION:"impression",VPV:"vpv",VPVD:"vpvd",VPV_DURATION:"vpv_duration",CLICK:"click",SWIPE:"swipe",SESSION_SUMMARY:"session_summary",WATCH_SUMMARY:"watch_summary",WATCHLIST_LOAD:"watchlist_load",UNFOLLOWED_WATCHLIST_LOAD:"unfollowed_watchlist_load",DUPLICATE:"duplicate",BACKGROUNDED:"backgrounded",FOREGROUNDED:"foregrounded",END_SCREEN_DISPLAYED:"end_screen_displayed",END_OF_DATA:"end_of_data",END_OF_SECTION:"end_of_section",MARK_DATA_DIRTY:"mark_data_dirty",TAB:"tab",TOPIC_SELECTED:"topic_selected",REDIRECT:"redirect",LOAD_LOADING_CARD_VIEW:"load_loading_card_view",LOAD_ITEMS_LOADING_CARD_VIEW:"load_items_loading_card_view",TTI:"tti",TTI_REALDATA:"tti_realdata",E2E:"e2e",LOAD_SECTION:"load_section",LOAD_ITEMS:"load_items",MULTI_MEDIA_CHAINING_PAGE_LOAD:"multi_media_chaining_page_load",REACTION_UNIT_ID_MEMCACHE_HIT:"reaction_unit_id_memcache_hit",REACTION_UNIT_ID_MEMCACHE_MISS:"reaction_unit_id_memcache_miss",VIDEO_JEWEL_IMPRESSION:"video_jewel_impression",SCROLL_PERF:"scroll_perf",SCROLL_PERF_HSCROLL:"scroll_perf_hscroll",APPENDED_HSCROLL_STORIES:"appended_hscroll_stories",LOAD_UNIT_ATTEMPT:"load_unit_attempt",UNIT_STORY_EXCEPTION:"unit_story_exception",COMPONENT_GENERATION_EXCEPTION:"component_generation_exception",BADGE_SENT:"badge_sent",VIDEO_TAB_SELECTED:"video_tab_selected",BADGE_UPDATE:"badge_update",BOOKMARK_BADGE_IMPRESSION:"bookmark_badge_impression",BADGE_COUNT_GENERATED:"badge_count_generated",BADGE_COUNT_NOT_RENDERED:"badge_count_not_rendered",BADGE_ID_GENERATED:"badge_id_generated",BADGE_TYPE_NOT_RENDERED:"badge_type_not_rendered",VIDEO_STORY_GENERATED:"video_story_generated",EMPTY_FEED_AFTER_FALLBACK:"empty_feed_after_fallback",NO_VIDEO_STORY_GENERATED:"no_video_story_generated",INVALID_QUERY_END_TIMESTAMP:"invalid_query_end_timestamp",BADGE_STORIES_COUNT:"badge_stories_count",BADGE_PREDICTION_RANKED:"badge_prediction_ranked",BADGE_COOLDOWN_RANKED:"badge_cooldown_ranked",BADGE_EXPLORATION_CACHE_RETURN:"badge_exploration_cache_return",BADGE_EXPLORATION_CACHE_SET:"badge_exploration_cache_set",AGGREGATION_SECTION_COMPONENT_NULL:"aggregation_section_component_null",AGGREGATION_INELIGIBLE:"aggregation_ineligible",HSCROLL_NUM_FETCHED:"hscroll_num_fetched",AGGREGATION_ELIGIBILITY_CHECK:"aggregation_eligibility_check",AGGREGATION_ELIGIBLE:"aggregation_eligible",PIVOT_USECASE_ELIGIBLE:"pivot_usecase_eligible",PIVOT_USECASE_INELIGIBLE:"pivot_usecase_ineligible",PIVOT_NOT_RENDERED:"pivot_not_rendered",PIVOT_AUTO_DISMISSED:"pivot_auto_dismissed",SOCIAL_GLYPH_IMPRESSION:"social_glyph_impression",RHC_IMPRESSION:"rhc_impression",SHOW_VIDEO_END_SCREEN_IMPRESSION:"show_video_end_screen_impression",SHOW_EPISODE_MASKED_IMPRESSION:"show_episode_masked_impression",SHOW_EPISODE_CONTINUE_WATCHING_IMPRESSION:"show_episode_continue_watching_impression",SHOW_EPISODE_CLICK_TO_WATCH_IMPRESSION:"show_episode_click_to_watch_impression",VIDEO_HOVERCARD_IMPRESSION:"video_hovercard_impression",PARENT_PAGE_VIDEO_END_SCREEN_IMPRESSION:"parent_page_video_end_screen_impression",SOCIAL_CONTEXT_IMPRESSION:"social_context_impression",GAMING_VERTICAL_IMPRESSION:"gaming_vertical_impression",WATCHLIST_CONTROLS_IMPRESSION:"watchlist_controls_impression",SUBSCRIPTIONS_CONTROLS_IMPRESSION:"subscriptions_controls_impression",TAHOE_TOP_BANNER_WATCH_ENTRY_POINT_IMPRESSION:"tahoe_top_banner_watch_entry_point_impression",INLINE_END_SCREEN_IMPRESSION:"inline_end_screen_impression",EMBEDDED_END_SCREEN_IMPRESSION:"embedded_end_screen_impression",TAHOE_ENDSCREEN_WATCH_ENTRY_POINT_IMPRESSION:"tahoe_endscreen_watch_entry_point_impression",TAHOE_UP_NEXT_VIDEO_WATCH_ENTRY_POINT_IMPRESSION:"tahoe_up_next_video_watch_entry_point_impression",TAHOE_SEARCH_BAR_WITH_WATCH_LOGO_IMPRESSION:"tahoe_search_bar_with_watch_logo_impression",PAUSE_SCREEN_IMPRESSION:"pause_screen_impression",EMBEDDED_LIVE_VIDEO_PROMPT_IMPRESSION:"embedded_live_video_prompt_impression",LIVE_PROMPT_IMPRESSION:"live_prompt_impression",TAHOE_END_CARD_AGGREGATION_IMPRESSION:"tahoe_end_card_aggregation_impression",TAHOE_END_CARD_AGGREGATION_FETCH:"tahoe_end_card_aggregation_fetch",INLINE_PAUSE_SCREEN_IMPRESSION:"inline_pause_screen_impression",LANGUAGE_PICKER_IMPRESSION:"language_picker_impression",RHC_LATEST_SECTION_IMPRESSION:"rhc_latest_section_impression",RHC_GET_CAUGHTUP_SECTION_IMPRESSION:"rhc_get_caughtup_section_impression",NPC_CONTROL_TIME_SKIP_FORWARD_IMPRESSION:"npc_control_time_skip_forward_impression",NPC_CONTROL_TIME_SKIP_FORWARD_LARGE_IMPRESSION:"npc_control_time_skip_forward_large_impression",NPC_CONTROL_TIME_SKIP_BACKWARD_IMPRESSION:"npc_control_time_skip_backward_impression",NPC_CONTROL_TIME_SKIP_BACKWARD_LARGE_IMPRESSION:"npc_control_time_skip_backward_large_impression",CONTROL_NPC_SKIP_VIDEO_IMPRESSION:"control_npc_skip_video_impression",NPC_CONTROL_LARGE_PLAYBACK_BUTTON_IMPRESSION:"npc_control_large_playback_button_impression",NPC_CONTROL_PLAYBACK_BUTTON_IMPRESSION:"npc_control_playback_button_impression",PAGE_FOLLOW_BUNDLE_IMPRESSION:"page_follow_bundle_impression",PAGE_FOLLOW_BUNDLE_UNIT_IMPRESSION:"page_follow_bundle_unit_impression",PAGE_FOLLOW_BUNDLE_BOTTOM_SHEET_IMPRESSION:"page_follow_bundle_bottom_sheet_impression",SOCIAL_RESHARED_VIDEO_GENERATION_ATTEMPT:"social_reshared_video_generation_attempt",SOCIAL_RESHARED_STORY_GENERATED:"social_reshared_story_generated",POPULAR_WITH_FRIENDS_GENERATION:"popular_with_friends_generation",POPULAR_WITH_FRIENDS_WARION:"popular_with_friends_warion",VIDEO_HOME_DISCOVER_FETCH_COMPLETE:"video_home_discover_fetch_complete",LONG_PRESS_MENU:"long_press_menu",INTERSTITIAL_SEEN:"interstitial_seen",WWW_FEED_INJECTION:"www_feed_injection",WWW_FEED_WNS_IMPRESSION:"www_feed_wns_impression",WWW_USER_FAILS_COB:"www_user_fails_cob",WWW_USER_PASSES_COB:"www_user_passes_cob",PAGE_LOAD:"page_load",AUTO_SCROLL:"auto_scroll",FEED_IMPRESSION:"feed_impression",FEED_PERMALINK_ELIGIBLE:"feed_permalink_eligible",FEED_PERMALINK_NOT_ELIGIBLE:"feed_permalink_not_eligible",FEED_PERMALINK_REDIRECT:"feed_permalink_redirect",FEED_WITH_VIDEO_ID:"feed_with_video_id",FEED_WITH_VIDEO:"feed_with_video",FEED_UNIT_LOADED:"feed_unit_loaded",FEED_UNIT_VIDEO_LOADED:"feed_unit_video_loaded",FEED_UNIT_VIDEO_DISPLAYED:"feed_unit_video_displayed",FEED_UNIT_VIDEO_PLAY:"feed_unit_video_play",LIVE_INJECT_FROM_FEED:"live_inject_from_feed",LIVE_INJECT_FROM_PERMALINK:"live_inject_from_permalink",VPC_LOADED:"vpv_loaded",AUTOPLAY_REGISTERED:"autoplay_registered",JS_ERROR:"js_error",WWW_LIVE_HERO_UP_NEXT_CHAIN:"www_live_hero_up_next_chain",WWW_PERMALINK_VISIT:"www_permalink_visit",WWW_LOE_PERMALINK_VISIT:"www_loe_permalink_visit",WWW_LOE_TRANSCRIPT_GATING:"www_loe_transcript_gating",WWW_COPY_LINK:"www_copy_link",WWW_LIVE_SIMILAR_DUPES:"www_live_similar_dupes",WWW_LIVE_WNS_IMPRESSION:"www_live_wns_impression",VIDEO_END_CARD_FETCH:"video_end_card_fetch",VIDEO_PAUSE_CARD_FETCH:"video_pause_card_fetch",REEL_END_CARD_FETCH:"reel_end_card_fetch",REEL_PAUSE_CARD_FETCH:"reel_pause_card_fetch",AUTOPLAY_SETTINGS_PROMPT_IMPRESSION:"autoplay_settings_prompt_impression",AUTOPLAY_TOGGLE_ON:"autoplay_toggle_on",AUTOPLAY_TOGGLE_OFF:"autoplay_toggle_off",NOTIFICATIONS_BADGE_LOAD:"notifications_badge_load",UPDATES_SURFACE_CLICK:"updates_surface_click",WWW_LATEST_PAGINATION:"www_latest_pagination",WWW_QP_NULL_SECTION:"www_qp_null_section",WWW_QP_INSUFFICIENT_VIDEOS:"www_qp_insufficient_videos",WWW_QP_DATA_IMPL:"www_qp_data_impl",WWW_QP_SCROLL_UNIT_IMPRESSION:"www_qp_scroll_unit_impression",WWW_QP_SCROLL_UNIT_CLICK:"www_qp_scroll_unit_click",WWW_QP_MOBILE_WHALES_IMPRESSION:"www_qp_mobile_whales_impression",WWW_QP_NOSTALGIA_IMPRESSION:"www_qp_nostalgia_impression",WWW_QP_RAINBOW_IMPRESSION:"www_qp_rainbow_impression",WWW_QP_WATCHLIST_PAGE_IMPRESSION:"www_qp_watchlist_page_impression",FEED_AUTO_ADVANCE:"feed_auto_advance",WATCH_AND_SCROLL_END_SCREEN_IMPRESSION:"watch_and_scroll_end_screen_impression",WATCH_AND_SCROLL_CHAINING_CLICK_ADVANCE:"watch_and_scroll_chaining_click_advance",WATCH_AND_SCROLL_CHAINING_AUTO_ADVANCE:"watch_and_scroll_chaining_auto_advance",WATCH_AND_SCROLL_CHAINING_QUERY_EMPTY:"watch_and_scroll_chaining_query_empty",WATCH_AND_SCROLL_SKIP_OVERLAY_IMPRESSION:"watch_and_scroll_skip_overlay_impression",WATCH_AND_SCROLL_TRIGGER:"watch_and_scroll_trigger",WATCH_AND_SCROLL_END_SESSION:"watch_and_scroll_end_session",MSITE_FEED_AUTO_ADVANCE:"msite_feed_auto_advance",MSITE_FEED_ALTERNATIVE_HEIGHT_AUTO_ADVANCE:"msite_feed_alternative_height_auto_advance",MSITE_FEED_ALTERNATIVE_RECT_AUTO_ADVANCE:"msite_feed_alternative_rect_auto_advance",MSITE_FEED_FAILED_AUTO_ADVANCE:"msite_feed_failed_auto_advance",MSITE_END_SCREEN_IMPRESSION:"msite_end_screen_impression",MSITE_NUM_CHARACTERS_LINES:"msite_num_characters_lines",LOGGED_OUT_MSITE_COMMENT_MODAL_IMPRESSION:"logged_out_msite_comment_modal_impression",LOGGED_OUT_MSITE_AGGREGATION_PAGE_IMPRESSION:"logged_out_msite_aggregation_page_impression",EXCEPTION:"exception",FBLITE_RELATED_VIDEOS_QUERY_EXCEPTION:"fblite_related_videos_query_exception",FBLITE_CHANNELS_OTHERS:"fblite_channels_others",MARK_VISIT_EXCEPTION:"mark_visit_exception",MARK_FEED_SESSION_END_EXCEPTION:"mark_feed_session_end_exception",MARK_WATCHLIST_SESSION_END_EXCEPTION:"mark_watchlist_session_end_exception",MARK_FEED_PAGE_VISIT_EXCEPTION:"mark_feed_page_visit_exception",LOAD_LOGGED_OUT_MSITE_CTA_FOOTER:"load_logged_out_msite_cta_footer",VIDEO_FROM_STORY_OPTIMIZATION_MISS:"video_from_story_optimization_miss",LANGUAGE_PICKER_CONFIRM_CLICK:"language_picker_confirm_click",LANGUAGE_PICKER_DISMISSED:"language_picker_dismissed",LANGUAGE_PICKER_UNKNOWN_EVENT:"language_picker_unknown_event",LANGUAGE_PICKER_PREDICTED_LANGUAGES_GENERATED:"language_picker_predicted_languages_generated",PAGE_FOLLOW_BUNDLE_FOLLOW_ALL_CLICK:"page_follow_bundle_follow_all_click",PAGE_FOLLOW_BUNDLE_FOLLOW_CLICK:"page_follow_bundle_follow_click",PAGE_FOLLOW_BUNDLE_OPEN_PAGE_CLICK:"page_follow_bundle_open_page_click",PAGES_YOU_FOLLOW_MANAGE_NOTIFS_DIALOG_IMPRESSION:"pages_you_follow_manage_notifs_dialog_impression",PAGES_YOU_FOLLOW_MANAGE_NOTIFS_DIALOG_NOTIF_SUBSCRIPTION_STATUS_CHANGE:"pages_you_follow_manage_notifs_dialog_notif_subscription_status_change",INTERLINKING:"interlinking",CREATOR_STUDIO_REELS_TAB_TABLE_IMPRESSION:"creator_studio_reels_tab_table_impression",CREATOR_STUDIO_REELS_TAB_DETAILS_SLIDING_TRAY_IMPRESSION:"creator_studio_reels_tab_details_sliding_tray_impression",CREATOR_STUDIO_VIEW_REEL_BUTTON_CLICK:"creator_studio_view_reel_button_click",CREATOR_STUDIO_DELETE_REEL_BUTTON_CLICK:"creator_studio_delete_reel_button_click",CREATOR_STUDIO_DELETE_REEL_SUCCESS:"creator_studio_delete_reel_success",CREATOR_STUDIO_DELETE_REEL_FAILURE:"creator_studio_delete_reel_failure",AUTO_GENERATE_REEL_ON_VID_UPLOAD_SUCCESS:"auto_generate_reel_on_vid_upload_success",AUTO_GENERATE_REEL_ON_VID_UPLOAD_FAILURE:"auto_generate_reel_on_vid_upload_failure",AUTO_GENERATE_DRAFT_REEL_SUCCESS:"auto_generate_draft_reel_success",AUTO_GENERATE_DRAFT_REEL_FAILURE:"auto_generate_draft_reel_failure",AUTO_GENERATE_REELS_OPT_IN_MUTATION_FAILURE:"auto_generate_reels_opt_in_mutation_failure",VIDEO_METADATA_FAILED_TO_GENERATE_IMAGE_FILE_SIZE:"video_metadata_failed_to_generate_image_file_size",NUX:"nux",VDD_CONCURRENT_VIDEOS_PLAYING:"vdd_concurrent_videos_playing"});i.default=e}),66); __d("VideoHomeClickLogger",["VideoHomeEvents","VideoHomeTypedLogger"],(function(t,n,r,o,a,i,l){"use strict";function e(e){var t=e.target,n=e.id,o=e.clickPoint,a=e.playerOrigin,i=a===void 0?"video_home":a,l=e.eventTargetInfo,s=l===void 0?null:l;new(r("VideoHomeTypedLogger"))().setEvent(r("VideoHomeEvents").CLICK).setEventTarget(t).setEventTargetID(n).setClickPoint(o).setPlayerOrigin(i).setEventTargetInfo(s).log()}function s(t,n){t.addEventListener("click",function(){e(n)})}l.logClick=e,l.init=s}),98); __d("VideoInstreamAdsConstantsJSModuleWrapper",["VideoInstreamAdsConstants"],(function(t,n,r,o,a,i,l){"use strict";l.default=r("VideoInstreamAdsConstants")}),98); __d("VideoPlayButton",["CSS","EventListener","VideoDisplayTimePlayButton"],(function(t,n,r,o,a,i,l){var e=(function(){function e(e,t,n){var a=this;this.$1=e,this.$2=t,n&&(this.$3=n.hiddenAfterFinish,this.$4=n.hiddenWhilePaused,this.$5=!!n.hiddenInFallback,this.$5=n.hiddenInFallback,this.$6=n.spherical);var i=o("VideoDisplayTimePlayButton").getClicked(this.$2);o("VideoDisplayTimePlayButton").unregister(this.$2),e.addListener("beginPlayback",function(){return a.$7()}),e.addListener("finishPlayback",function(){return a.$8()}),e.addListener("pausePlayback",function(){return a.$9()}),e.addListener("buffering",function(){return a.$10()}),e.addListener("buffered",function(){return a.$11()}),e.addListener("stateChange",function(){return a.$12()}),e.addListener("playRequested",function(e){return a.$13(e)}),e.addListener("VideoChannelController/exitChannel",function(){return a.$14()}),e.addListener("clickVideo",function(){return a.$15()}),e.addListener("TahoeController/enterTahoe",function(){return a.$16()}),r("EventListener").listen(this.$2,"click",function(){return a.$17()}),n&&n.hiddenWhileJSLoading&&!n.hiddenWhileVideoLoading&&o("CSS").show(this.$2),i&&this.$17()}var t=e.prototype;return t.$12=function(){this.$1.isState("fallback")&&(this.$5||this.$1.getIsInChannel()?o("CSS").hide(this.$2):o("CSS").show(this.$2))},t.$7=function(){o("CSS").hide(this.$2)},t.$9=function(){this.$4||this.$1.getSource()==="inline"||o("CSS").show(this.$2)},t.$13=function(t){this.$1.isState("fallback")||t==="autoplay_initiated"||o("CSS").hide(this.$2)},t.$14=function(){(this.$1.isState("paused")&&(!this.$4||this.$6)||this.$1.isState("finished")&&!this.$3)&&o("CSS").show(this.$2)},t.$16=function(){this.$1.isState("playing")||o("CSS").show(this.$2)},t.$8=function(){var e=this.$1.getOption("Looping","isLooping");this.$3||this.$1.getIsInChannel()||this.$1.getSource()==="tahoe"||e?o("CSS").hide(this.$2):o("CSS").show(this.$2)},t.$10=function(){o("CSS").hide(this.$2)},t.$11=function(){o("CSS").hide(this.$2)},t.$17=function(){this.$1.clickVideo()},t.$15=function(){this.$1.isState("fallback")||o("CSS").hide(this.$2)},e})();l.default=e}),98); __d("VideoSpinner",["cx","CSS","EventListener","ShakaConstants","setTimeout"],(function(t,n,r,o,a,i,l,s){var e=(function(){function e(e,t){var n=this;this.$2=t,this.$1=e,this.$3=!1,e.addListener("beginPlayback",function(){return n.$5()}),e.addListener("finishPlayback",function(){return n.$6()}),e.addListener("pausePlayback",function(){return n.$7()}),e.addListener("playRequested",function(){return n.$8()}),e.addListener("buffering",function(){return n.$9()}),e.addListener("buffered",function(){return n.$10()}),e.addListener("networkInterrupted",function(){return n.$11()}),e.addListener("networkResumed",function(){return n.$12()}),e.addListener("stateChange",function(){return n.$13()}),e.addListener("clickVideo",function(){return n.$14()}),e.addListener("VideoSphericalOverlay/animationUpdate",function(e,t){return n.$15(e,t)}),r("EventListener").listen(this.$2,"click",function(){return n.$16()})}var t=e.prototype;return t.$15=function(t,n){t?o("CSS").addClass(this.$2,"_1st9"):o("CSS").removeClass(this.$2,"_1st9")},t.$11=function(){this.$4=!0},t.$12=function(){this.$4=!1},t.$9=function(){var e=this,t=r("ShakaConstants").numbers.buffering_spinner_delay_ms;this.$3=!0,t===0?o("CSS").show(this.$2):r("setTimeout")(function(){e.$3&&o("CSS").show(e.$2)},t)},t.$10=function(){o("CSS").hide(this.$2),this.$3=!1},t.$5=function(){this.$3?o("CSS").show(this.$2):o("CSS").hide(this.$2)},t.$7=function(){o("CSS").hide(this.$2)},t.$8=function(){o("CSS").hide(this.$2)},t.$6=function(){o("CSS").hide(this.$2)},t.$13=function(){this.$1.isState("fallback")&&o("CSS").hide(this.$2)},t.$14=function(){this.$1.isState("fallback")||(this.$3||this.$1.isState("ready")||this.$1.isState("loading"))&&o("CSS").show(this.$2)},t.$16=function(){this.$1.clickVideo()},e})();l.default=e}),98); __d("VideoStateDirectory",["EventEmitter","VideoPlayerExperiments"],(function(t,n,r,o,a,i,l){var e=(function(e){function t(){var t;return t=e.call(this)||this,t.$VideoStateDirectory$p_1=new Map,t}babelHelpers.inheritsLoose(t,e);var n=t.prototype;return n.setPlaybackState=function(t,n,o){var e=this.$VideoStateDirectory$p_1.get(t)||{};e.currentTimePosition=n,e.playbackDuration=o,e.watched=e.currentTimePosition/e.playbackDuration>=r("VideoPlayerExperiments").watchedPercentage/100||!!e.watched,this.$VideoStateDirectory$p_1.set(t,e),this.emit(t,e)},n.setSaveState=function(t,n){var e=this.$VideoStateDirectory$p_1.get(t)||{};e.saved=n,this.emit(t,e)},n.setSubscriptionState=function(t,n){var e=this.$VideoStateDirectory$p_1.get(t)||{};e.subscribed=n,this.emit(t,e)},n.getState=function(t){return this.$VideoStateDirectory$p_1.get(t)},t})(r("EventEmitter")),s=new e;l.default=s}),98); __d("VideoWatchAndScrollVariablesJSModuleWrapper",["VideoWatchAndScrollVariables"],(function(t,n,r,o,a,i,l){"use strict";l.default=r("VideoWatchAndScrollVariables")}),98); __d("VideoWithClickPlayPause",["logVideosClickTracking"],(function(t,n,r,o,a,i){var e=(function(){"use strict";function e(e){var t=this;this.$1=e,this.$2=this.$1.getVideoNode(),this.$1.addListener("clickVideo",function(){return t.$3()}),this.$1.hasSeenClick()&&this.$3()}var t=e.prototype;return t.$3=function(){var e=this.$1.getOption("CommercialBreakVideoAdOverlay","videoController");if(this.$1.isState("playing")){if(this.$1.getOption("VideoWithLiveBroadcast","isLive")||e&&e.getOption("VideoWithLiveBroadcast","isLive")||this.$4()||this.$5())return;this.$1.pause("user_initiated")}else n("logVideosClickTracking")(this.$2),this.$1.play("user_initiated")},t.$4=function(){var e=this.$1.getOption("CommercialBreakVideoAdOverlay","videoController"),t=e&&e.getOption("VideoWithInstreamVideo","controller");return t&&!t.getConfig().canPauseAdBreak},t.$5=function(){return this.$1.getOption("VideoWithInstreamVideo","disableClickToPause")},e})();a.exports=e}),null); __d("WWWEmbeddedVideoAPIComponent",["AgnosticEmbeddedVideoApiComponent","Arbiter","UnverifiedXD"],(function(t,n,r,o,a,i,l){var e=function(t){var e=this;if(this.$1=t,this.$2=new(r("AgnosticEmbeddedVideoApiComponent"))(r("UnverifiedXD").send.bind(r("UnverifiedXD")),r("Arbiter").subscribe.bind(r("Arbiter"))),this.$2.addListener("play",function(){e.$1.play("embedded_video_api_initiated")}),this.$2.addListener("pause",function(){e.$1.pause("embedded_video_api_initiated")}),this.$2.addListener("seek",function(t,n){e.$1.seek(n.target)}),this.$2.addListener("mute",function(){e.$1.mute()}),this.$2.addListener("unmute",function(){e.$1.unmute()}),this.$2.addListener("setVolume",function(t,n){e.$1.setVolume(n.volume)}),this.$1.addListener("stateChange",function(){if(e.$1.isState("ready")){var t={isMuted:e.$1.isMuted(),volume:e.$1.getVolume(),timePosition:e.$1.getCurrentTimePosition(),duration:e.$1.getPlaybackDuration()};e.$2.notifyVideoAPIReady(t)}else e.$1.isState("playing")?e.$2.notifyStartedPlaying():e.$1.isState("paused")?e.$2.notifyPaused():e.$1.isState("finished")&&e.$2.notifyFinishedPlaying()}),this.$1.addListener("updateStatus",function(t){if(t.position!==void 0){var n={timePosition:t.position};e.$2.notifyStateUpdate(n)}}),this.$1.addListener("buffering",function(){e.$2.notifyStartedBuffering()}),this.$1.addListener("buffered",function(){e.$2.notifyFinishedBuffering()}),this.$1.addListener("error",function(){e.$2.notifyError()}),this.$1.addListener("updateMetadata",function(t){var n={duration:e.$1.getPlaybackDuration()};e.$2.notifyStateUpdate(n)}),this.$1.addListener("muteVideo",function(){var t={isMuted:!0};e.$2.notifyStateUpdate(t)}),this.$1.addListener("unmuteVideo",function(){var t={isMuted:!1};e.$2.notifyStateUpdate(t)}),this.$1.addListener("changeVolume",function(t){var n={volume:t.volume,isMuted:t.volume===0};e.$2.notifyStateUpdate(n)}),!this.$1.isState("loading")&&!this.$1.isState("fallback")){var n={isMuted:this.$1.isMuted(),volume:this.$1.getVolume(),timePosition:this.$1.getCurrentTimePosition(),duration:this.$1.getPlaybackDuration()};this.$2.notifyVideoAPIReady(n)}};l.default=e}),98); __d("decodeTrackingNode",["TrackingNodeConstants"],(function(t,n,r,o,a,i,l){"use strict";function e(e){if(e.length===0)return[0];var t=function(t,n,r){for(var e=0,a=n;a=o("TrackingNodeConstants").BASE_CODE_START&&t.charCodeAt(a)<=o("TrackingNodeConstants").BASE_CODE_END))return null;e=e*o("TrackingNodeConstants").BASE_CODE_SIZE+(t.charCodeAt(a)-o("TrackingNodeConstants").BASE_CODE_START)}return e},n=function(n,r){if(r>=n.length)return[null,r];var e=r,a=null,i=0;switch(n.charCodeAt(0)){case o("TrackingNodeConstants").ENCODED_STRING_WITH_TWO_SYMBOLS_PREFIX_CODE:a=t(n,r,2),i=o("TrackingNodeConstants").TOTAL_IDS_SUPPORTED_BY_LEGACY_ENCODING,e+=2;break;case o("TrackingNodeConstants").ENCODED_STRING_WITH_THREE_SYMBOLS_PREFIX_CODE:a=t(n,r,3),i=o("TrackingNodeConstants").TOTAL_IDS_SUPPORTED_BY_LEGACY_ENCODING+Math.pow(o("TrackingNodeConstants").BASE_CODE_SIZE,2),e+=3;break;default:return[null,r]}return a===null?[null,r]:[i+(a!=null?a:0)+1,e]},r=e.charCodeAt(0),a=1,i=0,l=0,s=0;if([o("TrackingNodeConstants").ENCODED_STRING_WITH_TWO_SYMBOLS_PREFIX_CODE,o("TrackingNodeConstants").ENCODED_STRING_WITH_THREE_SYMBOLS_PREFIX_CODE].includes(r)){var u,c=n(e,a);if(c[0]===null)return[0];s=(u=c[0])!=null?u:-1,a=c[1]}else{if(r>=o("TrackingNodeConstants").PREFIX_CODE_START&&r<=o("TrackingNodeConstants").PREFIX_CODE_END){if(e.length===1)return[0];l=r-o("TrackingNodeConstants").PREFIX_CODE_START+1,i=e.charCodeAt(1),a=2}else l=0,i=r;if(io("TrackingNodeConstants").BASE_CODE_END)return[0];s=l*o("TrackingNodeConstants").BASE_CODE_SIZE+(i-o("TrackingNodeConstants").BASE_CODE_START)+1}return e.length>a+2&&e.charAt(a)==="#"&&e.charAt(a+1)>="0"&&e.charAt(a+1)<="9"&&e.charAt(a+2)>="0"&&e.charAt(a+2)<="9"?[a+3,[s,parseInt(e.charAt(a+1)+e.charAt(a+2),10)+1]]:e.length>a&&e.charAt(a)>="0"&&e.charAt(a)<="9"?[a+1,[s,parseInt(e.charAt(a),10)+1]]:[a,[s]]}l.default=e}),98); __d("destroyOnUnloadWWW",["Run"],(function(t,n,r,o,a,i,l){function e(e){return o("Run").onLeave(e)}l.default=e}),98);